158 lines
558 KiB
JavaScript
158 lines
558 KiB
JavaScript
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function r(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(a){if(a.ep)return;a.ep=!0;const i=r(a);fetch(a.href,i)}})();function sd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var od={exports:{}},ws={};/**
|
||
* @license React
|
||
* react-jsx-runtime.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var cy=Symbol.for("react.transitional.element"),fy=Symbol.for("react.fragment");function ud(e,t,r){var n=null;if(r!==void 0&&(n=""+r),t.key!==void 0&&(n=""+t.key),"key"in t){r={};for(var a in t)a!=="key"&&(r[a]=t[a])}else r=t;return t=r.ref,{$$typeof:cy,type:e,key:n,ref:t!==void 0?t:null,props:r}}ws.Fragment=fy;ws.jsx=ud;ws.jsxs=ud;od.exports=ws;var le=od.exports,cd={exports:{}},we={};/**
|
||
* @license React
|
||
* react.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Vu=Symbol.for("react.transitional.element"),hy=Symbol.for("react.portal"),dy=Symbol.for("react.fragment"),py=Symbol.for("react.strict_mode"),my=Symbol.for("react.profiler"),yy=Symbol.for("react.consumer"),vy=Symbol.for("react.context"),gy=Symbol.for("react.forward_ref"),by=Symbol.for("react.suspense"),wy=Symbol.for("react.memo"),fd=Symbol.for("react.lazy"),_y=Symbol.for("react.activity"),cf=Symbol.iterator;function xy(e){return e===null||typeof e!="object"?null:(e=cf&&e[cf]||e["@@iterator"],typeof e=="function"?e:null)}var hd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},dd=Object.assign,pd={};function ka(e,t,r){this.props=e,this.context=t,this.refs=pd,this.updater=r||hd}ka.prototype.isReactComponent={};ka.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("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")};ka.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function md(){}md.prototype=ka.prototype;function Ku(e,t,r){this.props=e,this.context=t,this.refs=pd,this.updater=r||hd}var Yu=Ku.prototype=new md;Yu.constructor=Ku;dd(Yu,ka.prototype);Yu.isPureReactComponent=!0;var ff=Array.isArray;function Go(){}var He={H:null,A:null,T:null,S:null},yd=Object.prototype.hasOwnProperty;function Xu(e,t,r){var n=r.ref;return{$$typeof:Vu,type:e,key:t,ref:n!==void 0?n:null,props:r}}function Sy(e,t){return Xu(e.type,t,e.props)}function Pu(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vu}function Ey(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var hf=/\/+/g;function Ys(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Ey(""+e.key):t.toString(36)}function Ty(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Go,Go):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Yn(e,t,r,n,a){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(i){case"bigint":case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case Vu:case hy:l=!0;break;case fd:return l=e._init,Yn(l(e._payload),t,r,n,a)}}if(l)return a=a(e),l=n===""?"."+Ys(e,0):n,ff(a)?(r="",l!=null&&(r=l.replace(hf,"$&/")+"/"),Yn(a,t,r,"",function(d){return d})):a!=null&&(Pu(a)&&(a=Sy(a,r+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(hf,"$&/")+"/")+l)),t.push(a)),1;l=0;var s=n===""?".":n+":";if(ff(e))for(var u=0;u<e.length;u++)n=e[u],i=s+Ys(n,u),l+=Yn(n,t,r,i,a);else if(u=xy(e),typeof u=="function")for(e=u.call(e),u=0;!(n=e.next()).done;)n=n.value,i=s+Ys(n,u++),l+=Yn(n,t,r,i,a);else if(i==="object"){if(typeof e.then=="function")return Yn(Ty(e),t,r,n,a);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 l}function ll(e,t,r){if(e==null)return e;var n=[],a=0;return Yn(e,n,"","",function(i){return t.call(r,i,a++)}),n}function Ay(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var df=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ny={map:ll,forEach:function(e,t,r){ll(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return ll(e,function(){t++}),t},toArray:function(e){return ll(e,function(t){return t})||[]},only:function(e){if(!Pu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};we.Activity=_y;we.Children=Ny;we.Component=ka;we.Fragment=dy;we.Profiler=my;we.PureComponent=Ku;we.StrictMode=py;we.Suspense=by;we.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=He;we.__COMPILER_RUNTIME={__proto__:null,c:function(e){return He.H.useMemoCache(e)}};we.cache=function(e){return function(){return e.apply(null,arguments)}};we.cacheSignal=function(){return null};we.cloneElement=function(e,t,r){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var n=dd({},e.props),a=e.key;if(t!=null)for(i in t.key!==void 0&&(a=""+t.key),t)!yd.call(t,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&t.ref===void 0||(n[i]=t[i]);var i=arguments.length-2;if(i===1)n.children=r;else if(1<i){for(var l=Array(i),s=0;s<i;s++)l[s]=arguments[s+2];n.children=l}return Xu(e.type,a,n)};we.createContext=function(e){return e={$$typeof:vy,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:yy,_context:e},e};we.createElement=function(e,t,r){var n,a={},i=null;if(t!=null)for(n in t.key!==void 0&&(i=""+t.key),t)yd.call(t,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(a[n]=t[n]);var l=arguments.length-2;if(l===1)a.children=r;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];a.children=s}if(e&&e.defaultProps)for(n in l=e.defaultProps,l)a[n]===void 0&&(a[n]=l[n]);return Xu(e,i,a)};we.createRef=function(){return{current:null}};we.forwardRef=function(e){return{$$typeof:gy,render:e}};we.isValidElement=Pu;we.lazy=function(e){return{$$typeof:fd,_payload:{_status:-1,_result:e},_init:Ay}};we.memo=function(e,t){return{$$typeof:wy,type:e,compare:t===void 0?null:t}};we.startTransition=function(e){var t=He.T,r={};He.T=r;try{var n=e(),a=He.S;a!==null&&a(r,n),typeof n=="object"&&n!==null&&typeof n.then=="function"&&n.then(Go,df)}catch(i){df(i)}finally{t!==null&&r.types!==null&&(t.types=r.types),He.T=t}};we.unstable_useCacheRefresh=function(){return He.H.useCacheRefresh()};we.use=function(e){return He.H.use(e)};we.useActionState=function(e,t,r){return He.H.useActionState(e,t,r)};we.useCallback=function(e,t){return He.H.useCallback(e,t)};we.useContext=function(e){return He.H.useContext(e)};we.useDebugValue=function(){};we.useDeferredValue=function(e,t){return He.H.useDeferredValue(e,t)};we.useEffect=function(e,t){return He.H.useEffect(e,t)};we.useEffectEvent=function(e){return He.H.useEffectEvent(e)};we.useId=function(){return He.H.useId()};we.useImperativeHandle=function(e,t,r){return He.H.useImperativeHandle(e,t,r)};we.useInsertionEffect=function(e,t){return He.H.useInsertionEffect(e,t)};we.useLayoutEffect=function(e,t){return He.H.useLayoutEffect(e,t)};we.useMemo=function(e,t){return He.H.useMemo(e,t)};we.useOptimistic=function(e,t){return He.H.useOptimistic(e,t)};we.useReducer=function(e,t,r){return He.H.useReducer(e,t,r)};we.useRef=function(e){return He.H.useRef(e)};we.useState=function(e){return He.H.useState(e)};we.useSyncExternalStore=function(e,t,r){return He.H.useSyncExternalStore(e,t,r)};we.useTransition=function(){return He.H.useTransition()};we.version="19.2.6";cd.exports=we;var lt=cd.exports;const Oy=sd(lt);var vd={exports:{}},_s={},gd={exports:{}},bd={};/**
|
||
* @license React
|
||
* scheduler.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/(function(e){function t(X,V){var re=X.length;X.push(V);e:for(;0<re;){var Q=re-1>>>1,te=X[Q];if(0<a(te,V))X[Q]=V,X[re]=te,re=Q;else break e}}function r(X){return X.length===0?null:X[0]}function n(X){if(X.length===0)return null;var V=X[0],re=X.pop();if(re!==V){X[0]=re;e:for(var Q=0,te=X.length,Z=te>>>1;Q<Z;){var D=2*(Q+1)-1,I=X[D],Y=D+1,$=X[Y];if(0>a(I,re))Y<te&&0>a($,I)?(X[Q]=$,X[Y]=re,Q=Y):(X[Q]=I,X[D]=re,Q=D);else if(Y<te&&0>a($,re))X[Q]=$,X[Y]=re,Q=Y;else break e}}return V}function a(X,V){var re=X.sortIndex-V.sortIndex;return re!==0?re:X.id-V.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var u=[],d=[],y=1,g=null,v=3,h=!1,_=!1,E=!1,R=!1,m=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;function b(X){for(var V=r(d);V!==null;){if(V.callback===null)n(d);else if(V.startTime<=X)n(d),V.sortIndex=V.expirationTime,t(u,V);else break;V=r(d)}}function A(X){if(E=!1,b(X),!_)if(r(u)!==null)_=!0,S||(S=!0,M());else{var V=r(d);V!==null&&P(A,V.startTime-X)}}var S=!1,B=-1,z=5,O=-1;function G(){return R?!0:!(e.unstable_now()-O<z)}function ee(){if(R=!1,S){var X=e.unstable_now();O=X;var V=!0;try{e:{_=!1,E&&(E=!1,f(B),B=-1),h=!0;var re=v;try{t:{for(b(X),g=r(u);g!==null&&!(g.expirationTime>X&&G());){var Q=g.callback;if(typeof Q=="function"){g.callback=null,v=g.priorityLevel;var te=Q(g.expirationTime<=X);if(X=e.unstable_now(),typeof te=="function"){g.callback=te,b(X),V=!0;break t}g===r(u)&&n(u),b(X)}else n(u);g=r(u)}if(g!==null)V=!0;else{var Z=r(d);Z!==null&&P(A,Z.startTime-X),V=!1}}break e}finally{g=null,v=re,h=!1}V=void 0}}finally{V?M():S=!1}}}var M;if(typeof p=="function")M=function(){p(ee)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,C=K.port2;K.port1.onmessage=ee,M=function(){C.postMessage(null)}}else M=function(){m(ee,0)};function P(X,V){B=m(function(){X(e.unstable_now())},V)}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(X){X.callback=null},e.unstable_forceFrameRate=function(X){0>X||125<X?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<X?Math.floor(1e3/X):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(X){switch(v){case 1:case 2:case 3:var V=3;break;default:V=v}var re=v;v=V;try{return X()}finally{v=re}},e.unstable_requestPaint=function(){R=!0},e.unstable_runWithPriority=function(X,V){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var re=v;v=X;try{return V()}finally{v=re}},e.unstable_scheduleCallback=function(X,V,re){var Q=e.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?Q+re:Q):re=Q,X){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=re+te,X={id:y++,callback:V,priorityLevel:X,startTime:re,expirationTime:te,sortIndex:-1},re>Q?(X.sortIndex=re,t(d,X),r(u)===null&&X===r(d)&&(E?(f(B),B=-1):E=!0,P(A,re-Q))):(X.sortIndex=te,t(u,X),_||h||(_=!0,S||(S=!0,M()))),X},e.unstable_shouldYield=G,e.unstable_wrapCallback=function(X){var V=v;return function(){var re=v;v=V;try{return X.apply(this,arguments)}finally{v=re}}}})(bd);gd.exports=bd;var Ry=gd.exports,wd={exports:{}},gt={};/**
|
||
* @license React
|
||
* react-dom.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Cy=lt;function _d(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function zr(){}var vt={d:{f:zr,r:function(){throw Error(_d(522))},D:zr,C:zr,L:zr,m:zr,X:zr,S:zr,M:zr},p:0,findDOMNode:null},Dy=Symbol.for("react.portal");function ky(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Dy,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}var si=Cy.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function xs(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}gt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=vt;gt.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(_d(299));return ky(e,t,null,r)};gt.flushSync=function(e){var t=si.T,r=vt.p;try{if(si.T=null,vt.p=2,e)return e()}finally{si.T=t,vt.p=r,vt.d.f()}};gt.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,vt.d.C(e,t))};gt.prefetchDNS=function(e){typeof e=="string"&&vt.d.D(e)};gt.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var r=t.as,n=xs(r,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,i=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;r==="style"?vt.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:n,integrity:a,fetchPriority:i}):r==="script"&&vt.d.X(e,{crossOrigin:n,integrity:a,fetchPriority:i,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};gt.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var r=xs(t.as,t.crossOrigin);vt.d.M(e,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&vt.d.M(e)};gt.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var r=t.as,n=xs(r,t.crossOrigin);vt.d.L(e,r,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};gt.preloadModule=function(e,t){if(typeof e=="string")if(t){var r=xs(t.as,t.crossOrigin);vt.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else vt.d.m(e)};gt.requestFormReset=function(e){vt.d.r(e)};gt.unstable_batchedUpdates=function(e,t){return e(t)};gt.useFormState=function(e,t,r){return si.H.useFormState(e,t,r)};gt.useFormStatus=function(){return si.H.useHostTransitionStatus()};gt.version="19.2.6";function xd(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(xd)}catch(e){console.error(e)}}xd(),wd.exports=gt;var By=wd.exports;/**
|
||
* @license React
|
||
* react-dom-client.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var tt=Ry,Sd=lt,My=By;function oe(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Ed(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Fi(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function Td(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 Ad(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function pf(e){if(Fi(e)!==e)throw Error(oe(188))}function zy(e){var t=e.alternate;if(!t){if(t=Fi(e),t===null)throw Error(oe(188));return t!==e?null:e}for(var r=e,n=t;;){var a=r.return;if(a===null)break;var i=a.alternate;if(i===null){if(n=a.return,n!==null){r=n;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===r)return pf(a),e;if(i===n)return pf(a),t;i=i.sibling}throw Error(oe(188))}if(r.return!==n.return)r=a,n=i;else{for(var l=!1,s=a.child;s;){if(s===r){l=!0,r=a,n=i;break}if(s===n){l=!0,n=a,r=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===r){l=!0,r=i,n=a;break}if(s===n){l=!0,n=i,r=a;break}s=s.sibling}if(!l)throw Error(oe(189))}}if(r.alternate!==n)throw Error(oe(190))}if(r.tag!==3)throw Error(oe(188));return r.stateNode.current===r?e:t}function Nd(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Nd(e),t!==null)return t;e=e.sibling}return null}var Fe=Object.assign,Uy=Symbol.for("react.element"),sl=Symbol.for("react.transitional.element"),ti=Symbol.for("react.portal"),Wn=Symbol.for("react.fragment"),Od=Symbol.for("react.strict_mode"),Vo=Symbol.for("react.profiler"),Rd=Symbol.for("react.consumer"),_r=Symbol.for("react.context"),Zu=Symbol.for("react.forward_ref"),Ko=Symbol.for("react.suspense"),Yo=Symbol.for("react.suspense_list"),Wu=Symbol.for("react.memo"),Ur=Symbol.for("react.lazy"),Xo=Symbol.for("react.activity"),Ly=Symbol.for("react.memo_cache_sentinel"),mf=Symbol.iterator;function Ka(e){return e===null||typeof e!="object"?null:(e=mf&&e[mf]||e["@@iterator"],typeof e=="function"?e:null)}var jy=Symbol.for("react.client.reference");function Po(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===jy?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Wn:return"Fragment";case Vo:return"Profiler";case Od:return"StrictMode";case Ko:return"Suspense";case Yo:return"SuspenseList";case Xo:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case ti:return"Portal";case _r:return e.displayName||"Context";case Rd:return(e._context.displayName||"Context")+".Consumer";case Zu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Wu:return t=e.displayName||null,t!==null?t:Po(e.type)||"Memo";case Ur:t=e._payload,e=e._init;try{return Po(e(t))}catch{}}return null}var ri=Array.isArray,ge=Sd.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Re=My.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Sn={pending:!1,data:null,method:null,action:null},Zo=[],Qn=-1;function sr(e){return{current:e}}function it(e){0>Qn||(e.current=Zo[Qn],Zo[Qn]=null,Qn--)}function ze(e,t){Qn++,Zo[Qn]=e.current,e.current=t}var lr=sr(null),Si=sr(null),Pr=sr(null),Gl=sr(null);function Vl(e,t){switch(ze(Pr,t),ze(Si,e),ze(lr,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?_h(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=_h(t),e=Zm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}it(lr),ze(lr,e)}function ya(){it(lr),it(Si),it(Pr)}function Wo(e){e.memoizedState!==null&&ze(Gl,e);var t=lr.current,r=Zm(t,e.type);t!==r&&(ze(Si,e),ze(lr,r))}function Kl(e){Si.current===e&&(it(lr),it(Si)),Gl.current===e&&(it(Gl),Mi._currentValue=Sn)}var Xs,yf;function gn(e){if(Xs===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Xs=t&&t[1]||"",yf=-1<r.stack.indexOf(`
|
||
at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||
`+Xs+e+yf}var Ps=!1;function Zs(e,t){if(!e||Ps)return"";Ps=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var g=function(){throw Error()};if(Object.defineProperty(g.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(g,[])}catch(h){var v=h}Reflect.construct(e,[],g)}else{try{g.call()}catch(h){v=h}e.call(g.prototype)}}else{try{throw Error()}catch(h){v=h}(g=e())&&typeof g.catch=="function"&&g.catch(function(){})}}catch(h){if(h&&v&&typeof h.stack=="string")return[h.stack,v.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=n.DetermineComponentFrameRoot(),l=i[0],s=i[1];if(l&&s){var u=l.split(`
|
||
`),d=s.split(`
|
||
`);for(a=n=0;n<u.length&&!u[n].includes("DetermineComponentFrameRoot");)n++;for(;a<d.length&&!d[a].includes("DetermineComponentFrameRoot");)a++;if(n===u.length||a===d.length)for(n=u.length-1,a=d.length-1;1<=n&&0<=a&&u[n]!==d[a];)a--;for(;1<=n&&0<=a;n--,a--)if(u[n]!==d[a]){if(n!==1||a!==1)do if(n--,a--,0>a||u[n]!==d[a]){var y=`
|
||
`+u[n].replace(" at new "," at ");return e.displayName&&y.includes("<anonymous>")&&(y=y.replace("<anonymous>",e.displayName)),y}while(1<=n&&0<=a);break}}}finally{Ps=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?gn(r):""}function Hy(e,t){switch(e.tag){case 26:case 27:case 5:return gn(e.type);case 16:return gn("Lazy");case 13:return e.child!==t&&t!==null?gn("Suspense Fallback"):gn("Suspense");case 19:return gn("SuspenseList");case 0:case 15:return Zs(e.type,!1);case 11:return Zs(e.type.render,!1);case 1:return Zs(e.type,!0);case 31:return gn("Activity");default:return""}}function vf(e){try{var t="",r=null;do t+=Hy(e,r),r=e,e=e.return;while(e);return t}catch(n){return`
|
||
Error generating stack: `+n.message+`
|
||
`+n.stack}}var Qo=Object.prototype.hasOwnProperty,Qu=tt.unstable_scheduleCallback,Ws=tt.unstable_cancelCallback,Fy=tt.unstable_shouldYield,Iy=tt.unstable_requestPaint,Dt=tt.unstable_now,qy=tt.unstable_getCurrentPriorityLevel,Cd=tt.unstable_ImmediatePriority,Dd=tt.unstable_UserBlockingPriority,Yl=tt.unstable_NormalPriority,Gy=tt.unstable_LowPriority,kd=tt.unstable_IdlePriority,Vy=tt.log,Ky=tt.unstable_setDisableYieldValue,Ii=null,kt=null;function Gr(e){if(typeof Vy=="function"&&Ky(e),kt&&typeof kt.setStrictMode=="function")try{kt.setStrictMode(Ii,e)}catch{}}var Bt=Math.clz32?Math.clz32:Py,Yy=Math.log,Xy=Math.LN2;function Py(e){return e>>>=0,e===0?32:31-(Yy(e)/Xy|0)|0}var ol=256,ul=262144,cl=4194304;function bn(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ss(e,t,r){var n=e.pendingLanes;if(n===0)return 0;var a=0,i=e.suspendedLanes,l=e.pingedLanes;e=e.warmLanes;var s=n&134217727;return s!==0?(n=s&~i,n!==0?a=bn(n):(l&=s,l!==0?a=bn(l):r||(r=s&~e,r!==0&&(a=bn(r))))):(s=n&~i,s!==0?a=bn(s):l!==0?a=bn(l):r||(r=n&~e,r!==0&&(a=bn(r)))),a===0?0:t!==0&&t!==a&&!(t&i)&&(i=a&-a,r=t&-t,i>=r||i===32&&(r&4194048)!==0)?t:a}function qi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Zy(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Bd(){var e=cl;return cl<<=1,!(cl&62914560)&&(cl=4194304),e}function Qs(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Gi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Wy(e,t,r,n,a,i){var l=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var s=e.entanglements,u=e.expirationTimes,d=e.hiddenUpdates;for(r=l&~r;0<r;){var y=31-Bt(r),g=1<<y;s[y]=0,u[y]=-1;var v=d[y];if(v!==null)for(d[y]=null,y=0;y<v.length;y++){var h=v[y];h!==null&&(h.lane&=-536870913)}r&=~g}n!==0&&Md(e,n,0),i!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=i&~(l&~t))}function Md(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-Bt(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|r&261930}function zd(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Bt(r),a=1<<n;a&t|e[n]&t&&(e[n]|=t),r&=~a}}function Ud(e,t){var r=t&-t;return r=r&42?1:Ju(r),r&(e.suspendedLanes|t)?0:r}function Ju(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function $u(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Ld(){var e=Re.p;return e!==0?e:(e=window.event,e===void 0?32:l0(e.type))}function gf(e,t){var r=Re.p;try{return Re.p=e,t()}finally{Re.p=r}}var on=Math.random().toString(36).slice(2),ot="__reactFiber$"+on,Tt="__reactProps$"+on,Ba="__reactContainer$"+on,Jo="__reactEvents$"+on,Qy="__reactListeners$"+on,Jy="__reactHandles$"+on,bf="__reactResources$"+on,Vi="__reactMarker$"+on;function ec(e){delete e[ot],delete e[Tt],delete e[Jo],delete e[Qy],delete e[Jy]}function Jn(e){var t=e[ot];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Ba]||r[ot]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Ah(e);e!==null;){if(r=e[ot])return r;e=Ah(e)}return t}e=r,r=e.parentNode}return null}function Ma(e){if(e=e[ot]||e[Ba]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ni(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(oe(33))}function oa(e){var t=e[bf];return t||(t=e[bf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function at(e){e[Vi]=!0}var jd=new Set,Hd={};function Un(e,t){va(e,t),va(e+"Capture",t)}function va(e,t){for(Hd[e]=t,e=0;e<t.length;e++)jd.add(t[e])}var $y=RegExp("^[: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]*$"),wf={},_f={};function ev(e){return Qo.call(_f,e)?!0:Qo.call(wf,e)?!1:$y.test(e)?_f[e]=!0:(wf[e]=!0,!1)}function Ol(e,t,r){if(ev(t))if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+r)}}function fl(e,t,r){if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+r)}}function fr(e,t,r,n){if(n===null)e.removeAttribute(r);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(t,r,""+n)}}function jt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function tv(e,t,r){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function $o(e){if(!e._valueTracker){var t=Fd(e)?"checked":"value";e._valueTracker=tv(e,t,""+e[t])}}function Id(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Fd(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Xl(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}}var rv=/[\n"\\]/g;function It(e){return e.replace(rv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function eu(e,t,r,n,a,i,l,s){e.name="",l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.type=l:e.removeAttribute("type"),t!=null?l==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+jt(t)):e.value!==""+jt(t)&&(e.value=""+jt(t)):l!=="submit"&&l!=="reset"||e.removeAttribute("value"),t!=null?tu(e,l,jt(t)):r!=null?tu(e,l,jt(r)):n!=null&&e.removeAttribute("value"),a==null&&i!=null&&(e.defaultChecked=!!i),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.name=""+jt(s):e.removeAttribute("name")}function qd(e,t,r,n,a,i,l,s){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||r!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){$o(e);return}r=r!=null?""+jt(r):"",t=t!=null?""+jt(t):r,s||t===e.value||(e.value=t),e.defaultValue=t}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=s?e.checked:!!n,e.defaultChecked=!!n,l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(e.name=l),$o(e)}function tu(e,t,r){t==="number"&&Xl(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function ua(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a<r.length;a++)t["$"+r[a]]=!0;for(r=0;r<e.length;r++)a=t.hasOwnProperty("$"+e[r].value),e[r].selected!==a&&(e[r].selected=a),a&&n&&(e[r].defaultSelected=!0)}else{for(r=""+jt(r),t=null,a=0;a<e.length;a++){if(e[a].value===r){e[a].selected=!0,n&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function Gd(e,t,r){if(t!=null&&(t=""+jt(t),t!==e.value&&(e.value=t),r==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=r!=null?""+jt(r):""}function Vd(e,t,r,n){if(t==null){if(n!=null){if(r!=null)throw Error(oe(92));if(ri(n)){if(1<n.length)throw Error(oe(93));n=n[0]}r=n}r==null&&(r=""),t=r}r=jt(t),e.defaultValue=r,n=e.textContent,n===r&&n!==""&&n!==null&&(e.value=n),$o(e)}function ga(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var nv=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function xf(e,t,r){var n=t.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,r):typeof r!="number"||r===0||nv.has(t)?t==="float"?e.cssFloat=r:e[t]=(""+r).trim():e[t]=r+"px"}function Kd(e,t,r){if(t!=null&&typeof t!="object")throw Error(oe(62));if(e=e.style,r!=null){for(var n in r)!r.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var a in t)n=t[a],t.hasOwnProperty(a)&&r[a]!==n&&xf(e,a,n)}else for(var i in t)t.hasOwnProperty(i)&&xf(e,i,t[i])}function tc(e){if(e.indexOf("-")===-1)return!1;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 av=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),iv=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Rl(e){return iv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function xr(){}var ru=null;function rc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $n=null,ca=null;function Sf(e){var t=Ma(e);if(t&&(e=t.stateNode)){var r=e[Tt]||null;e:switch(e=t.stateNode,t.type){case"input":if(eu(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+It(""+t)+'"][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var a=n[Tt]||null;if(!a)throw Error(oe(90));eu(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<r.length;t++)n=r[t],n.form===e.form&&Id(n)}break e;case"textarea":Gd(e,r.value,r.defaultValue);break e;case"select":t=r.value,t!=null&&ua(e,!!r.multiple,t,!1)}}}var Js=!1;function Yd(e,t,r){if(Js)return e(t,r);Js=!0;try{var n=e(t);return n}finally{if(Js=!1,($n!==null||ca!==null)&&(zs(),$n&&(t=$n,e=ca,ca=$n=null,Sf(t),e)))for(t=0;t<e.length;t++)Sf(e[t])}}function Ei(e,t){var r=e.stateNode;if(r===null)return null;var n=r[Tt]||null;if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(oe(231,t,typeof r));return r}var Or=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),nu=!1;if(Or)try{var Ya={};Object.defineProperty(Ya,"passive",{get:function(){nu=!0}}),window.addEventListener("test",Ya,Ya),window.removeEventListener("test",Ya,Ya)}catch{nu=!1}var Vr=null,nc=null,Cl=null;function Xd(){if(Cl)return Cl;var e,t=nc,r=t.length,n,a="value"in Vr?Vr.value:Vr.textContent,i=a.length;for(e=0;e<r&&t[e]===a[e];e++);var l=r-e;for(n=1;n<=l&&t[r-n]===a[i-n];n++);return Cl=a.slice(e,1<n?1-n:void 0)}function Dl(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 hl(){return!0}function Ef(){return!1}function At(e){function t(r,n,a,i,l){this._reactName=r,this._targetInst=a,this.type=n,this.nativeEvent=i,this.target=l,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?hl:Ef,this.isPropagationStopped=Ef,this}return Fe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=hl)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=hl)},persist:function(){},isPersistent:hl}),t}var Ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Es=At(Ln),Ki=Fe({},Ln,{view:0,detail:0}),lv=At(Ki),$s,eo,Xa,Ts=Fe({},Ki,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ac,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!==Xa&&(Xa&&e.type==="mousemove"?($s=e.screenX-Xa.screenX,eo=e.screenY-Xa.screenY):eo=$s=0,Xa=e),$s)},movementY:function(e){return"movementY"in e?e.movementY:eo}}),Tf=At(Ts),sv=Fe({},Ts,{dataTransfer:0}),ov=At(sv),uv=Fe({},Ki,{relatedTarget:0}),to=At(uv),cv=Fe({},Ln,{animationName:0,elapsedTime:0,pseudoElement:0}),fv=At(cv),hv=Fe({},Ln,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),dv=At(hv),pv=Fe({},Ln,{data:0}),Af=At(pv),mv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},yv={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"},vv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=vv[e])?!!t[e]:!1}function ac(){return gv}var bv=Fe({},Ki,{key:function(e){if(e.key){var t=mv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Dl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?yv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ac,charCode:function(e){return e.type==="keypress"?Dl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Dl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),wv=At(bv),_v=Fe({},Ts,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Nf=At(_v),xv=Fe({},Ki,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ac}),Sv=At(xv),Ev=Fe({},Ln,{propertyName:0,elapsedTime:0,pseudoElement:0}),Tv=At(Ev),Av=Fe({},Ts,{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}),Nv=At(Av),Ov=Fe({},Ln,{newState:0,oldState:0}),Rv=At(Ov),Cv=[9,13,27,32],ic=Or&&"CompositionEvent"in window,oi=null;Or&&"documentMode"in document&&(oi=document.documentMode);var Dv=Or&&"TextEvent"in window&&!oi,Pd=Or&&(!ic||oi&&8<oi&&11>=oi),Of=" ",Rf=!1;function Zd(e,t){switch(e){case"keyup":return Cv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ea=!1;function kv(e,t){switch(e){case"compositionend":return Wd(t);case"keypress":return t.which!==32?null:(Rf=!0,Of);case"textInput":return e=t.data,e===Of&&Rf?null:e;default:return null}}function Bv(e,t){if(ea)return e==="compositionend"||!ic&&Zd(e,t)?(e=Xd(),Cl=nc=Vr=null,ea=!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 Pd&&t.locale!=="ko"?null:t.data;default:return null}}var Mv={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 Cf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Mv[e.type]:t==="textarea"}function Qd(e,t,r,n){$n?ca?ca.push(n):ca=[n]:$n=n,t=fs(t,"onChange"),0<t.length&&(r=new Es("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var ui=null,Ti=null;function zv(e){Ym(e,0)}function As(e){var t=ni(e);if(Id(t))return e}function Df(e,t){if(e==="change")return t}var Jd=!1;if(Or){var ro;if(Or){var no="oninput"in document;if(!no){var kf=document.createElement("div");kf.setAttribute("oninput","return;"),no=typeof kf.oninput=="function"}ro=no}else ro=!1;Jd=ro&&(!document.documentMode||9<document.documentMode)}function Bf(){ui&&(ui.detachEvent("onpropertychange",$d),Ti=ui=null)}function $d(e){if(e.propertyName==="value"&&As(Ti)){var t=[];Qd(t,Ti,e,rc(e)),Yd(zv,t)}}function Uv(e,t,r){e==="focusin"?(Bf(),ui=t,Ti=r,ui.attachEvent("onpropertychange",$d)):e==="focusout"&&Bf()}function Lv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return As(Ti)}function jv(e,t){if(e==="click")return As(t)}function Hv(e,t){if(e==="input"||e==="change")return As(t)}function Fv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zt=typeof Object.is=="function"?Object.is:Fv;function Ai(e,t){if(zt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var a=r[n];if(!Qo.call(t,a)||!zt(e[a],t[a]))return!1}return!0}function Mf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zf(e,t){var r=Mf(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Mf(r)}}function ep(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ep(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function tp(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Xl(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Xl(e.document)}return t}function lc(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")}var Iv=Or&&"documentMode"in document&&11>=document.documentMode,ta=null,au=null,ci=null,iu=!1;function Uf(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;iu||ta==null||ta!==Xl(n)||(n=ta,"selectionStart"in n&&lc(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),ci&&Ai(ci,n)||(ci=n,n=fs(au,"onSelect"),0<n.length&&(t=new Es("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=ta)))}function mn(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var ra={animationend:mn("Animation","AnimationEnd"),animationiteration:mn("Animation","AnimationIteration"),animationstart:mn("Animation","AnimationStart"),transitionrun:mn("Transition","TransitionRun"),transitionstart:mn("Transition","TransitionStart"),transitioncancel:mn("Transition","TransitionCancel"),transitionend:mn("Transition","TransitionEnd")},ao={},rp={};Or&&(rp=document.createElement("div").style,"AnimationEvent"in window||(delete ra.animationend.animation,delete ra.animationiteration.animation,delete ra.animationstart.animation),"TransitionEvent"in window||delete ra.transitionend.transition);function jn(e){if(ao[e])return ao[e];if(!ra[e])return e;var t=ra[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in rp)return ao[e]=t[r];return e}var np=jn("animationend"),ap=jn("animationiteration"),ip=jn("animationstart"),qv=jn("transitionrun"),Gv=jn("transitionstart"),Vv=jn("transitioncancel"),lp=jn("transitionend"),sp=new Map,lu="abort auxClick beforeToggle 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(" ");lu.push("scrollEnd");function Qt(e,t){sp.set(e,t),Un(t,[e])}var Pl=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Lt=[],na=0,sc=0;function Ns(){for(var e=na,t=sc=na=0;t<e;){var r=Lt[t];Lt[t++]=null;var n=Lt[t];Lt[t++]=null;var a=Lt[t];Lt[t++]=null;var i=Lt[t];if(Lt[t++]=null,n!==null&&a!==null){var l=n.pending;l===null?a.next=a:(a.next=l.next,l.next=a),n.pending=a}i!==0&&op(r,a,i)}}function Os(e,t,r,n){Lt[na++]=e,Lt[na++]=t,Lt[na++]=r,Lt[na++]=n,sc|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function oc(e,t,r,n){return Os(e,t,r,n),Zl(e)}function Hn(e,t){return Os(e,null,null,t),Zl(e)}function op(e,t,r){e.lanes|=r;var n=e.alternate;n!==null&&(n.lanes|=r);for(var a=!1,i=e.return;i!==null;)i.childLanes|=r,n=i.alternate,n!==null&&(n.childLanes|=r),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(a=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,a&&t!==null&&(a=31-Bt(r),e=i.hiddenUpdates,n=e[a],n===null?e[a]=[t]:n.push(t),t.lane=r|536870912),i):null}function Zl(e){if(50<bi)throw bi=0,Nu=null,Error(oe(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var aa={};function Kv(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rt(e,t,r,n){return new Kv(e,t,r,n)}function uc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Tr(e,t){var r=e.alternate;return r===null?(r=Rt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function up(e,t){e.flags&=65011714;var r=e.alternate;return r===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,t=r.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function kl(e,t,r,n,a,i){var l=0;if(n=e,typeof e=="function")uc(e)&&(l=1);else if(typeof e=="string")l=Wg(e,r,lr.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Xo:return e=Rt(31,r,t,a),e.elementType=Xo,e.lanes=i,e;case Wn:return En(r.children,a,i,t);case Od:l=8,a|=24;break;case Vo:return e=Rt(12,r,t,a|2),e.elementType=Vo,e.lanes=i,e;case Ko:return e=Rt(13,r,t,a),e.elementType=Ko,e.lanes=i,e;case Yo:return e=Rt(19,r,t,a),e.elementType=Yo,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _r:l=10;break e;case Rd:l=9;break e;case Zu:l=11;break e;case Wu:l=14;break e;case Ur:l=16,n=null;break e}l=29,r=Error(oe(130,e===null?"null":typeof e,"")),n=null}return t=Rt(l,r,t,a),t.elementType=e,t.type=n,t.lanes=i,t}function En(e,t,r,n){return e=Rt(7,e,n,t),e.lanes=r,e}function io(e,t,r){return e=Rt(6,e,null,t),e.lanes=r,e}function cp(e){var t=Rt(18,null,null,0);return t.stateNode=e,t}function lo(e,t,r){return t=Rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Lf=new WeakMap;function qt(e,t){if(typeof e=="object"&&e!==null){var r=Lf.get(e);return r!==void 0?r:(t={value:e,source:t,stack:vf(t)},Lf.set(e,t),t)}return{value:e,source:t,stack:vf(t)}}var ia=[],la=0,Wl=null,Ni=0,Ht=[],Ft=0,nn=null,rr=1,nr="";function br(e,t){ia[la++]=Ni,ia[la++]=Wl,Wl=e,Ni=t}function fp(e,t,r){Ht[Ft++]=rr,Ht[Ft++]=nr,Ht[Ft++]=nn,nn=e;var n=rr;e=nr;var a=32-Bt(n)-1;n&=~(1<<a),r+=1;var i=32-Bt(t)+a;if(30<i){var l=a-a%5;i=(n&(1<<l)-1).toString(32),n>>=l,a-=l,rr=1<<32-Bt(t)+a|r<<a|n,nr=i+e}else rr=1<<i|r<<a|n,nr=e}function cc(e){e.return!==null&&(br(e,1),fp(e,1,0))}function fc(e){for(;e===Wl;)Wl=ia[--la],ia[la]=null,Ni=ia[--la],ia[la]=null;for(;e===nn;)nn=Ht[--Ft],Ht[Ft]=null,nr=Ht[--Ft],Ht[Ft]=null,rr=Ht[--Ft],Ht[Ft]=null}function hp(e,t){Ht[Ft++]=rr,Ht[Ft++]=nr,Ht[Ft++]=nn,rr=t.id,nr=t.overflow,nn=e}var ut=null,je=null,Ne=!1,Zr=null,Gt=!1,su=Error(oe(519));function an(e){var t=Error(oe(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Oi(qt(t,e)),su}function jf(e){var t=e.stateNode,r=e.type,n=e.memoizedProps;switch(t[ot]=e,t[Tt]=n,r){case"dialog":Ee("cancel",t),Ee("close",t);break;case"iframe":case"object":case"embed":Ee("load",t);break;case"video":case"audio":for(r=0;r<ki.length;r++)Ee(ki[r],t);break;case"source":Ee("error",t);break;case"img":case"image":case"link":Ee("error",t),Ee("load",t);break;case"details":Ee("toggle",t);break;case"input":Ee("invalid",t),qd(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":Ee("invalid",t);break;case"textarea":Ee("invalid",t),Vd(t,n.value,n.defaultValue,n.children)}r=n.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||t.textContent===""+r||n.suppressHydrationWarning===!0||Pm(t.textContent,r)?(n.popover!=null&&(Ee("beforetoggle",t),Ee("toggle",t)),n.onScroll!=null&&Ee("scroll",t),n.onScrollEnd!=null&&Ee("scrollend",t),n.onClick!=null&&(t.onclick=xr),t=!0):t=!1,t||an(e,!0)}function Hf(e){for(ut=e.return;ut;)switch(ut.tag){case 5:case 31:case 13:Gt=!1;return;case 27:case 3:Gt=!0;return;default:ut=ut.return}}function qn(e){if(e!==ut)return!1;if(!Ne)return Hf(e),Ne=!0,!1;var t=e.tag,r;if((r=t!==3&&t!==27)&&((r=t===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||ku(e.type,e.memoizedProps)),r=!r),r&&je&&an(e),Hf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(oe(317));je=Th(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(oe(317));je=Th(e)}else t===27?(t=je,un(e.type)?(e=Uu,Uu=null,je=e):je=t):je=ut?Kt(e.stateNode.nextSibling):null;return!0}function Cn(){je=ut=null,Ne=!1}function so(){var e=Zr;return e!==null&&(St===null?St=e:St.push.apply(St,e),Zr=null),e}function Oi(e){Zr===null?Zr=[e]:Zr.push(e)}var ou=sr(null),Fn=null,Sr=null;function Hr(e,t,r){ze(ou,t._currentValue),t._currentValue=r}function Ar(e){e._currentValue=ou.current,it(ou)}function uu(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function cu(e,t,r,n){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var i=a.dependencies;if(i!==null){var l=a.child;i=i.firstContext;e:for(;i!==null;){var s=i;i=a;for(var u=0;u<t.length;u++)if(s.context===t[u]){i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),uu(i.return,r,e),n||(l=null);break e}i=s.next}}else if(a.tag===18){if(l=a.return,l===null)throw Error(oe(341));l.lanes|=r,i=l.alternate,i!==null&&(i.lanes|=r),uu(l,r,e),l=null}else l=a.child;if(l!==null)l.return=a;else for(l=a;l!==null;){if(l===e){l=null;break}if(a=l.sibling,a!==null){a.return=l.return,l=a;break}l=l.return}a=l}}function za(e,t,r,n){e=null;for(var a=t,i=!1;a!==null;){if(!i){if(a.flags&524288)i=!0;else if(a.flags&262144)break}if(a.tag===10){var l=a.alternate;if(l===null)throw Error(oe(387));if(l=l.memoizedProps,l!==null){var s=a.type;zt(a.pendingProps.value,l.value)||(e!==null?e.push(s):e=[s])}}else if(a===Gl.current){if(l=a.alternate,l===null)throw Error(oe(387));l.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(Mi):e=[Mi])}a=a.return}e!==null&&cu(t,e,r,n),t.flags|=262144}function Ql(e){for(e=e.firstContext;e!==null;){if(!zt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Dn(e){Fn=e,Sr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ft(e){return dp(Fn,e)}function dl(e,t){return Fn===null&&Dn(e),dp(e,t)}function dp(e,t){var r=t._currentValue;if(t={context:t,memoizedValue:r,next:null},Sr===null){if(e===null)throw Error(oe(308));Sr=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Sr=Sr.next=t;return r}var Yv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(r,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(r){return r()})}},Xv=tt.unstable_scheduleCallback,Pv=tt.unstable_NormalPriority,Je={$$typeof:_r,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function hc(){return{controller:new Yv,data:new Map,refCount:0}}function Yi(e){e.refCount--,e.refCount===0&&Xv(Pv,function(){e.controller.abort()})}var fi=null,fu=0,ba=0,fa=null;function Zv(e,t){if(fi===null){var r=fi=[];fu=0,ba=Lc(),fa={status:"pending",value:void 0,then:function(n){r.push(n)}}}return fu++,t.then(Ff,Ff),t}function Ff(){if(--fu===0&&fi!==null){fa!==null&&(fa.status="fulfilled");var e=fi;fi=null,ba=0,fa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Wv(e,t){var r=[],n={status:"pending",value:null,reason:null,then:function(a){r.push(a)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var a=0;a<r.length;a++)(0,r[a])(t)},function(a){for(n.status="rejected",n.reason=a,a=0;a<r.length;a++)(0,r[a])(void 0)}),n}var If=ge.S;ge.S=function(e,t){Nm=Dt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Zv(e,t),If!==null&&If(e,t)};var Tn=sr(null);function dc(){var e=Tn.current;return e!==null?e:Me.pooledCache}function Bl(e,t){t===null?ze(Tn,Tn.current):ze(Tn,t.pool)}function pp(){var e=dc();return e===null?null:{parent:Je._currentValue,pool:e}}var Ua=Error(oe(460)),pc=Error(oe(474)),Rs=Error(oe(542)),Jl={then:function(){}};function qf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function mp(e,t,r){switch(r=e[r],r===void 0?e.push(t):r!==t&&(t.then(xr,xr),t=r),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Vf(e),e;default:if(typeof t.status=="string")t.then(xr,xr);else{if(e=Me,e!==null&&100<e.shellSuspendCounter)throw Error(oe(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=n}},function(n){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Vf(e),e}throw An=t,Ua}}function wn(e){try{var t=e._init;return t(e._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?(An=r,Ua):r}}var An=null;function Gf(){if(An===null)throw Error(oe(459));var e=An;return An=null,e}function Vf(e){if(e===Ua||e===Rs)throw Error(oe(483))}var ha=null,Ri=0;function pl(e){var t=Ri;return Ri+=1,ha===null&&(ha=[]),mp(ha,e,t)}function Pa(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ml(e,t){throw t.$$typeof===Uy?Error(oe(525)):(e=Object.prototype.toString.call(t),Error(oe(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function yp(e){function t(m,f){if(e){var p=m.deletions;p===null?(m.deletions=[f],m.flags|=16):p.push(f)}}function r(m,f){if(!e)return null;for(;f!==null;)t(m,f),f=f.sibling;return null}function n(m){for(var f=new Map;m!==null;)m.key!==null?f.set(m.key,m):f.set(m.index,m),m=m.sibling;return f}function a(m,f){return m=Tr(m,f),m.index=0,m.sibling=null,m}function i(m,f,p){return m.index=p,e?(p=m.alternate,p!==null?(p=p.index,p<f?(m.flags|=67108866,f):p):(m.flags|=67108866,f)):(m.flags|=1048576,f)}function l(m){return e&&m.alternate===null&&(m.flags|=67108866),m}function s(m,f,p,b){return f===null||f.tag!==6?(f=io(p,m.mode,b),f.return=m,f):(f=a(f,p),f.return=m,f)}function u(m,f,p,b){var A=p.type;return A===Wn?y(m,f,p.props.children,b,p.key):f!==null&&(f.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===Ur&&wn(A)===f.type)?(f=a(f,p.props),Pa(f,p),f.return=m,f):(f=kl(p.type,p.key,p.props,null,m.mode,b),Pa(f,p),f.return=m,f)}function d(m,f,p,b){return f===null||f.tag!==4||f.stateNode.containerInfo!==p.containerInfo||f.stateNode.implementation!==p.implementation?(f=lo(p,m.mode,b),f.return=m,f):(f=a(f,p.children||[]),f.return=m,f)}function y(m,f,p,b,A){return f===null||f.tag!==7?(f=En(p,m.mode,b,A),f.return=m,f):(f=a(f,p),f.return=m,f)}function g(m,f,p){if(typeof f=="string"&&f!==""||typeof f=="number"||typeof f=="bigint")return f=io(""+f,m.mode,p),f.return=m,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case sl:return p=kl(f.type,f.key,f.props,null,m.mode,p),Pa(p,f),p.return=m,p;case ti:return f=lo(f,m.mode,p),f.return=m,f;case Ur:return f=wn(f),g(m,f,p)}if(ri(f)||Ka(f))return f=En(f,m.mode,p,null),f.return=m,f;if(typeof f.then=="function")return g(m,pl(f),p);if(f.$$typeof===_r)return g(m,dl(m,f),p);ml(m,f)}return null}function v(m,f,p,b){var A=f!==null?f.key:null;if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return A!==null?null:s(m,f,""+p,b);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case sl:return p.key===A?u(m,f,p,b):null;case ti:return p.key===A?d(m,f,p,b):null;case Ur:return p=wn(p),v(m,f,p,b)}if(ri(p)||Ka(p))return A!==null?null:y(m,f,p,b,null);if(typeof p.then=="function")return v(m,f,pl(p),b);if(p.$$typeof===_r)return v(m,f,dl(m,p),b);ml(m,p)}return null}function h(m,f,p,b,A){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return m=m.get(p)||null,s(f,m,""+b,A);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case sl:return m=m.get(b.key===null?p:b.key)||null,u(f,m,b,A);case ti:return m=m.get(b.key===null?p:b.key)||null,d(f,m,b,A);case Ur:return b=wn(b),h(m,f,p,b,A)}if(ri(b)||Ka(b))return m=m.get(p)||null,y(f,m,b,A,null);if(typeof b.then=="function")return h(m,f,p,pl(b),A);if(b.$$typeof===_r)return h(m,f,p,dl(f,b),A);ml(f,b)}return null}function _(m,f,p,b){for(var A=null,S=null,B=f,z=f=0,O=null;B!==null&&z<p.length;z++){B.index>z?(O=B,B=null):O=B.sibling;var G=v(m,B,p[z],b);if(G===null){B===null&&(B=O);break}e&&B&&G.alternate===null&&t(m,B),f=i(G,f,z),S===null?A=G:S.sibling=G,S=G,B=O}if(z===p.length)return r(m,B),Ne&&br(m,z),A;if(B===null){for(;z<p.length;z++)B=g(m,p[z],b),B!==null&&(f=i(B,f,z),S===null?A=B:S.sibling=B,S=B);return Ne&&br(m,z),A}for(B=n(B);z<p.length;z++)O=h(B,m,z,p[z],b),O!==null&&(e&&O.alternate!==null&&B.delete(O.key===null?z:O.key),f=i(O,f,z),S===null?A=O:S.sibling=O,S=O);return e&&B.forEach(function(ee){return t(m,ee)}),Ne&&br(m,z),A}function E(m,f,p,b){if(p==null)throw Error(oe(151));for(var A=null,S=null,B=f,z=f=0,O=null,G=p.next();B!==null&&!G.done;z++,G=p.next()){B.index>z?(O=B,B=null):O=B.sibling;var ee=v(m,B,G.value,b);if(ee===null){B===null&&(B=O);break}e&&B&&ee.alternate===null&&t(m,B),f=i(ee,f,z),S===null?A=ee:S.sibling=ee,S=ee,B=O}if(G.done)return r(m,B),Ne&&br(m,z),A;if(B===null){for(;!G.done;z++,G=p.next())G=g(m,G.value,b),G!==null&&(f=i(G,f,z),S===null?A=G:S.sibling=G,S=G);return Ne&&br(m,z),A}for(B=n(B);!G.done;z++,G=p.next())G=h(B,m,z,G.value,b),G!==null&&(e&&G.alternate!==null&&B.delete(G.key===null?z:G.key),f=i(G,f,z),S===null?A=G:S.sibling=G,S=G);return e&&B.forEach(function(M){return t(m,M)}),Ne&&br(m,z),A}function R(m,f,p,b){if(typeof p=="object"&&p!==null&&p.type===Wn&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case sl:e:{for(var A=p.key;f!==null;){if(f.key===A){if(A=p.type,A===Wn){if(f.tag===7){r(m,f.sibling),b=a(f,p.props.children),b.return=m,m=b;break e}}else if(f.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===Ur&&wn(A)===f.type){r(m,f.sibling),b=a(f,p.props),Pa(b,p),b.return=m,m=b;break e}r(m,f);break}else t(m,f);f=f.sibling}p.type===Wn?(b=En(p.props.children,m.mode,b,p.key),b.return=m,m=b):(b=kl(p.type,p.key,p.props,null,m.mode,b),Pa(b,p),b.return=m,m=b)}return l(m);case ti:e:{for(A=p.key;f!==null;){if(f.key===A)if(f.tag===4&&f.stateNode.containerInfo===p.containerInfo&&f.stateNode.implementation===p.implementation){r(m,f.sibling),b=a(f,p.children||[]),b.return=m,m=b;break e}else{r(m,f);break}else t(m,f);f=f.sibling}b=lo(p,m.mode,b),b.return=m,m=b}return l(m);case Ur:return p=wn(p),R(m,f,p,b)}if(ri(p))return _(m,f,p,b);if(Ka(p)){if(A=Ka(p),typeof A!="function")throw Error(oe(150));return p=A.call(p),E(m,f,p,b)}if(typeof p.then=="function")return R(m,f,pl(p),b);if(p.$$typeof===_r)return R(m,f,dl(m,p),b);ml(m,p)}return typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint"?(p=""+p,f!==null&&f.tag===6?(r(m,f.sibling),b=a(f,p),b.return=m,m=b):(r(m,f),b=io(p,m.mode,b),b.return=m,m=b),l(m)):r(m,f)}return function(m,f,p,b){try{Ri=0;var A=R(m,f,p,b);return ha=null,A}catch(B){if(B===Ua||B===Rs)throw B;var S=Rt(29,B,null,m.mode);return S.lanes=b,S.return=m,S}finally{}}}var kn=yp(!0),vp=yp(!1),Lr=!1;function mc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Wr(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Qr(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Oe&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,t=Zl(e),op(e,null,r),t}return Os(e,n,t,r),Zl(e)}function hi(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,zd(e,r)}}function oo(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var l={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};i===null?a=i=l:i=i.next=l,r=r.next}while(r!==null);i===null?a=i=t:i=i.next=t}else a=i=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:n.shared,callbacks:n.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}var du=!1;function di(){if(du){var e=fa;if(e!==null)throw e}}function pi(e,t,r,n){du=!1;var a=e.updateQueue;Lr=!1;var i=a.firstBaseUpdate,l=a.lastBaseUpdate,s=a.shared.pending;if(s!==null){a.shared.pending=null;var u=s,d=u.next;u.next=null,l===null?i=d:l.next=d,l=u;var y=e.alternate;y!==null&&(y=y.updateQueue,s=y.lastBaseUpdate,s!==l&&(s===null?y.firstBaseUpdate=d:s.next=d,y.lastBaseUpdate=u))}if(i!==null){var g=a.baseState;l=0,y=d=u=null,s=i;do{var v=s.lane&-536870913,h=v!==s.lane;if(h?(Ae&v)===v:(n&v)===v){v!==0&&v===ba&&(du=!0),y!==null&&(y=y.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var _=e,E=s;v=t;var R=r;switch(E.tag){case 1:if(_=E.payload,typeof _=="function"){g=_.call(R,g,v);break e}g=_;break e;case 3:_.flags=_.flags&-65537|128;case 0:if(_=E.payload,v=typeof _=="function"?_.call(R,g,v):_,v==null)break e;g=Fe({},g,v);break e;case 2:Lr=!0}}v=s.callback,v!==null&&(e.flags|=64,h&&(e.flags|=8192),h=a.callbacks,h===null?a.callbacks=[v]:h.push(v))}else h={lane:v,tag:s.tag,payload:s.payload,callback:s.callback,next:null},y===null?(d=y=h,u=g):y=y.next=h,l|=v;if(s=s.next,s===null){if(s=a.shared.pending,s===null)break;h=s,s=h.next,h.next=null,a.lastBaseUpdate=h,a.shared.pending=null}}while(!0);y===null&&(u=g),a.baseState=u,a.firstBaseUpdate=d,a.lastBaseUpdate=y,i===null&&(a.shared.lanes=0),sn|=l,e.lanes=l,e.memoizedState=g}}function gp(e,t){if(typeof e!="function")throw Error(oe(191,e));e.call(t)}function bp(e,t){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)gp(r[e],t)}var wa=sr(null),$l=sr(0);function Kf(e,t){e=kr,ze($l,e),ze(wa,t),kr=e|t.baseLanes}function pu(){ze($l,kr),ze(wa,wa.current)}function yc(){kr=$l.current,it(wa),it($l)}var Ut=sr(null),Vt=null;function Fr(e){var t=e.alternate;ze(Pe,Pe.current&1),ze(Ut,e),Vt===null&&(t===null||wa.current!==null||t.memoizedState!==null)&&(Vt=e)}function mu(e){ze(Pe,Pe.current),ze(Ut,e),Vt===null&&(Vt=e)}function wp(e){e.tag===22?(ze(Pe,Pe.current),ze(Ut,e),Vt===null&&(Vt=e)):Ir()}function Ir(){ze(Pe,Pe.current),ze(Ut,Ut.current)}function Ot(e){it(Ut),Vt===e&&(Vt=null),it(Pe)}var Pe=sr(0);function es(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||Mu(r)||zu(r)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){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 Rr=0,_e=null,Be=null,We=null,ts=!1,da=!1,Bn=!1,rs=0,Ci=0,pa=null,Qv=0;function Ke(){throw Error(oe(321))}function vc(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!zt(e[r],t[r]))return!1;return!0}function gc(e,t,r,n,a,i){return Rr=i,_e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ge.H=e===null||e.memoizedState===null?Qp:Rc,Bn=!1,i=r(n,a),Bn=!1,da&&(i=xp(t,r,n,a)),_p(e),i}function _p(e){ge.H=Di;var t=Be!==null&&Be.next!==null;if(Rr=0,We=Be=_e=null,ts=!1,Ci=0,pa=null,t)throw Error(oe(300));e===null||$e||(e=e.dependencies,e!==null&&Ql(e)&&($e=!0))}function xp(e,t,r,n){_e=e;var a=0;do{if(da&&(pa=null),Ci=0,da=!1,25<=a)throw Error(oe(301));if(a+=1,We=Be=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}ge.H=Jp,i=t(r,n)}while(da);return i}function Jv(){var e=ge.H,t=e.useState()[0];return t=typeof t.then=="function"?Xi(t):t,e=e.useState()[0],(Be!==null?Be.memoizedState:null)!==e&&(_e.flags|=1024),t}function bc(){var e=rs!==0;return rs=0,e}function wc(e,t,r){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r}function _c(e){if(ts){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ts=!1}Rr=0,We=Be=_e=null,da=!1,Ci=rs=0,pa=null}function mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return We===null?_e.memoizedState=We=e:We=We.next=e,We}function Ze(){if(Be===null){var e=_e.alternate;e=e!==null?e.memoizedState:null}else e=Be.next;var t=We===null?_e.memoizedState:We.next;if(t!==null)We=t,Be=e;else{if(e===null)throw _e.alternate===null?Error(oe(467)):Error(oe(310));Be=e,e={memoizedState:Be.memoizedState,baseState:Be.baseState,baseQueue:Be.baseQueue,queue:Be.queue,next:null},We===null?_e.memoizedState=We=e:We=We.next=e}return We}function Cs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Xi(e){var t=Ci;return Ci+=1,pa===null&&(pa=[]),e=mp(pa,e,t),t=_e,(We===null?t.memoizedState:We.next)===null&&(t=t.alternate,ge.H=t===null||t.memoizedState===null?Qp:Rc),e}function Ds(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Xi(e);if(e.$$typeof===_r)return ft(e)}throw Error(oe(438,String(e)))}function xc(e){var t=null,r=_e.updateQueue;if(r!==null&&(t=r.memoCache),t==null){var n=_e.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),r===null&&(r=Cs(),_e.updateQueue=r),r.memoCache=t,r=t.data[t.index],r===void 0)for(r=t.data[t.index]=Array(e),n=0;n<e;n++)r[n]=Ly;return t.index++,r}function Cr(e,t){return typeof t=="function"?t(e):t}function Ml(e){var t=Ze();return Sc(t,Be,e)}function Sc(e,t,r){var n=e.queue;if(n===null)throw Error(oe(311));n.lastRenderedReducer=r;var a=e.baseQueue,i=n.pending;if(i!==null){if(a!==null){var l=a.next;a.next=i.next,i.next=l}t.baseQueue=a=i,n.pending=null}if(i=e.baseState,a===null)e.memoizedState=i;else{t=a.next;var s=l=null,u=null,d=t,y=!1;do{var g=d.lane&-536870913;if(g!==d.lane?(Ae&g)===g:(Rr&g)===g){var v=d.revertLane;if(v===0)u!==null&&(u=u.next={lane:0,revertLane:0,gesture:null,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),g===ba&&(y=!0);else if((Rr&v)===v){d=d.next,v===ba&&(y=!0);continue}else g={lane:0,revertLane:d.revertLane,gesture:null,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null},u===null?(s=u=g,l=i):u=u.next=g,_e.lanes|=v,sn|=v;g=d.action,Bn&&r(i,g),i=d.hasEagerState?d.eagerState:r(i,g)}else v={lane:g,revertLane:d.revertLane,gesture:d.gesture,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null},u===null?(s=u=v,l=i):u=u.next=v,_e.lanes|=g,sn|=g;d=d.next}while(d!==null&&d!==t);if(u===null?l=i:u.next=s,!zt(i,e.memoizedState)&&($e=!0,y&&(r=fa,r!==null)))throw r;e.memoizedState=i,e.baseState=l,e.baseQueue=u,n.lastRenderedState=i}return a===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function uo(e){var t=Ze(),r=t.queue;if(r===null)throw Error(oe(311));r.lastRenderedReducer=e;var n=r.dispatch,a=r.pending,i=t.memoizedState;if(a!==null){r.pending=null;var l=a=a.next;do i=e(i,l.action),l=l.next;while(l!==a);zt(i,t.memoizedState)||($e=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function Sp(e,t,r){var n=_e,a=Ze(),i=Ne;if(i){if(r===void 0)throw Error(oe(407));r=r()}else r=t();var l=!zt((Be||a).memoizedState,r);if(l&&(a.memoizedState=r,$e=!0),a=a.queue,Ec(Ap.bind(null,n,a,e),[e]),a.getSnapshot!==t||l||We!==null&&We.memoizedState.tag&1){if(n.flags|=2048,_a(9,{destroy:void 0},Tp.bind(null,n,a,r,t),null),Me===null)throw Error(oe(349));i||Rr&127||Ep(n,t,r)}return r}function Ep(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=_e.updateQueue,t===null?(t=Cs(),_e.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function Tp(e,t,r,n){t.value=r,t.getSnapshot=n,Np(t)&&Op(e)}function Ap(e,t,r){return r(function(){Np(t)&&Op(e)})}function Np(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!zt(e,r)}catch{return!0}}function Op(e){var t=Hn(e,2);t!==null&&Et(t,e,2)}function yu(e){var t=mt();if(typeof e=="function"){var r=e;if(e=r(),Bn){Gr(!0);try{r()}finally{Gr(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cr,lastRenderedState:e},t}function Rp(e,t,r,n){return e.baseState=r,Sc(e,Be,typeof n=="function"?n:Cr)}function $v(e,t,r,n,a){if(Bs(e))throw Error(oe(485));if(e=t.action,e!==null){var i={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(l){i.listeners.push(l)}};ge.T!==null?r(!0):i.isTransition=!1,n(i),r=t.pending,r===null?(i.next=t.pending=i,Cp(t,i)):(i.next=r.next,t.pending=r.next=i)}}function Cp(e,t){var r=t.action,n=t.payload,a=e.state;if(t.isTransition){var i=ge.T,l={};ge.T=l;try{var s=r(a,n),u=ge.S;u!==null&&u(l,s),Yf(e,t,s)}catch(d){vu(e,t,d)}finally{i!==null&&l.types!==null&&(i.types=l.types),ge.T=i}}else try{i=r(a,n),Yf(e,t,i)}catch(d){vu(e,t,d)}}function Yf(e,t,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(n){Xf(e,t,n)},function(n){return vu(e,t,n)}):Xf(e,t,r)}function Xf(e,t,r){t.status="fulfilled",t.value=r,Dp(t),e.state=r,t=e.pending,t!==null&&(r=t.next,r===t?e.pending=null:(r=r.next,t.next=r,Cp(e,r)))}function vu(e,t,r){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=r,Dp(t),t=t.next;while(t!==n)}e.action=null}function Dp(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function kp(e,t){return t}function Pf(e,t){if(Ne){var r=Me.formState;if(r!==null){e:{var n=_e;if(Ne){if(je){t:{for(var a=je,i=Gt;a.nodeType!==8;){if(!i){a=null;break t}if(a=Kt(a.nextSibling),a===null){a=null;break t}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){je=Kt(a.nextSibling),n=a.data==="F!";break e}}an(n)}n=!1}n&&(t=r[0])}}return r=mt(),r.memoizedState=r.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:kp,lastRenderedState:t},r.queue=n,r=Pp.bind(null,_e,n),n.dispatch=r,n=yu(!1),i=Oc.bind(null,_e,!1,n.queue),n=mt(),a={state:t,dispatch:null,action:e,pending:null},n.queue=a,r=$v.bind(null,_e,a,i,r),a.dispatch=r,n.memoizedState=e,[t,r,!1]}function Zf(e){var t=Ze();return Bp(t,Be,e)}function Bp(e,t,r){if(t=Sc(e,t,kp)[0],e=Ml(Cr)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Xi(t)}catch(l){throw l===Ua?Rs:l}else n=t;t=Ze();var a=t.queue,i=a.dispatch;return r!==t.memoizedState&&(_e.flags|=2048,_a(9,{destroy:void 0},eg.bind(null,a,r),null)),[n,i,e]}function eg(e,t){e.action=t}function Wf(e){var t=Ze(),r=Be;if(r!==null)return Bp(t,r,e);Ze(),t=t.memoizedState,r=Ze();var n=r.queue.dispatch;return r.memoizedState=e,[t,n,!1]}function _a(e,t,r,n){return e={tag:e,create:r,deps:n,inst:t,next:null},t=_e.updateQueue,t===null&&(t=Cs(),_e.updateQueue=t),r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function Mp(){return Ze().memoizedState}function zl(e,t,r,n){var a=mt();_e.flags|=e,a.memoizedState=_a(1|t,{destroy:void 0},r,n===void 0?null:n)}function ks(e,t,r,n){var a=Ze();n=n===void 0?null:n;var i=a.memoizedState.inst;Be!==null&&n!==null&&vc(n,Be.memoizedState.deps)?a.memoizedState=_a(t,i,r,n):(_e.flags|=e,a.memoizedState=_a(1|t,i,r,n))}function Qf(e,t){zl(8390656,8,e,t)}function Ec(e,t){ks(2048,8,e,t)}function tg(e){_e.flags|=4;var t=_e.updateQueue;if(t===null)t=Cs(),_e.updateQueue=t,t.events=[e];else{var r=t.events;r===null?t.events=[e]:r.push(e)}}function zp(e){var t=Ze().memoizedState;return tg({ref:t,nextImpl:e}),function(){if(Oe&2)throw Error(oe(440));return t.impl.apply(void 0,arguments)}}function Up(e,t){return ks(4,2,e,t)}function Lp(e,t){return ks(4,4,e,t)}function jp(e,t){if(typeof t=="function"){e=e();var r=t(e);return function(){typeof r=="function"?r():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Hp(e,t,r){r=r!=null?r.concat([e]):null,ks(4,4,jp.bind(null,t,e),r)}function Tc(){}function Fp(e,t){var r=Ze();t=t===void 0?null:t;var n=r.memoizedState;return t!==null&&vc(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Ip(e,t){var r=Ze();t=t===void 0?null:t;var n=r.memoizedState;if(t!==null&&vc(t,n[1]))return n[0];if(n=e(),Bn){Gr(!0);try{e()}finally{Gr(!1)}}return r.memoizedState=[n,t],n}function Ac(e,t,r){return r===void 0||Rr&1073741824&&!(Ae&261930)?e.memoizedState=t:(e.memoizedState=r,e=Rm(),_e.lanes|=e,sn|=e,r)}function qp(e,t,r,n){return zt(r,t)?r:wa.current!==null?(e=Ac(e,r,n),zt(e,t)||($e=!0),e):!(Rr&42)||Rr&1073741824&&!(Ae&261930)?($e=!0,e.memoizedState=r):(e=Rm(),_e.lanes|=e,sn|=e,t)}function Gp(e,t,r,n,a){var i=Re.p;Re.p=i!==0&&8>i?i:8;var l=ge.T,s={};ge.T=s,Oc(e,!1,t,r);try{var u=a(),d=ge.S;if(d!==null&&d(s,u),u!==null&&typeof u=="object"&&typeof u.then=="function"){var y=Wv(u,n);mi(e,t,y,Mt(e))}else mi(e,t,n,Mt(e))}catch(g){mi(e,t,{then:function(){},status:"rejected",reason:g},Mt())}finally{Re.p=i,l!==null&&s.types!==null&&(l.types=s.types),ge.T=l}}function rg(){}function gu(e,t,r,n){if(e.tag!==5)throw Error(oe(476));var a=Vp(e).queue;Gp(e,a,t,Sn,r===null?rg:function(){return Kp(e),r(n)})}function Vp(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Sn,baseState:Sn,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cr,lastRenderedState:Sn},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cr,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Kp(e){var t=Vp(e);t.next===null&&(t=e.alternate.memoizedState),mi(e,t.next.queue,{},Mt())}function Nc(){return ft(Mi)}function Yp(){return Ze().memoizedState}function Xp(){return Ze().memoizedState}function ng(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var r=Mt();e=Wr(r);var n=Qr(t,e,r);n!==null&&(Et(n,t,r),hi(n,t,r)),t={cache:hc()},e.payload=t;return}t=t.return}}function ag(e,t,r){var n=Mt();r={lane:n,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Bs(e)?Zp(t,r):(r=oc(e,t,r,n),r!==null&&(Et(r,e,n),Wp(r,t,n)))}function Pp(e,t,r){var n=Mt();mi(e,t,r,n)}function mi(e,t,r,n){var a={lane:n,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(Bs(e))Zp(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,r);if(a.hasEagerState=!0,a.eagerState=s,zt(s,l))return Os(e,t,a,0),Me===null&&Ns(),!1}catch{}finally{}if(r=oc(e,t,a,n),r!==null)return Et(r,e,n),Wp(r,t,n),!0}return!1}function Oc(e,t,r,n){if(n={lane:2,revertLane:Lc(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Bs(e)){if(t)throw Error(oe(479))}else t=oc(e,r,n,2),t!==null&&Et(t,e,2)}function Bs(e){var t=e.alternate;return e===_e||t!==null&&t===_e}function Zp(e,t){da=ts=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Wp(e,t,r){if(r&4194048){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,zd(e,r)}}var Di={readContext:ft,use:Ds,useCallback:Ke,useContext:Ke,useEffect:Ke,useImperativeHandle:Ke,useLayoutEffect:Ke,useInsertionEffect:Ke,useMemo:Ke,useReducer:Ke,useRef:Ke,useState:Ke,useDebugValue:Ke,useDeferredValue:Ke,useTransition:Ke,useSyncExternalStore:Ke,useId:Ke,useHostTransitionStatus:Ke,useFormState:Ke,useActionState:Ke,useOptimistic:Ke,useMemoCache:Ke,useCacheRefresh:Ke};Di.useEffectEvent=Ke;var Qp={readContext:ft,use:Ds,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:ft,useEffect:Qf,useImperativeHandle:function(e,t,r){r=r!=null?r.concat([e]):null,zl(4194308,4,jp.bind(null,t,e),r)},useLayoutEffect:function(e,t){return zl(4194308,4,e,t)},useInsertionEffect:function(e,t){zl(4,2,e,t)},useMemo:function(e,t){var r=mt();t=t===void 0?null:t;var n=e();if(Bn){Gr(!0);try{e()}finally{Gr(!1)}}return r.memoizedState=[n,t],n},useReducer:function(e,t,r){var n=mt();if(r!==void 0){var a=r(t);if(Bn){Gr(!0);try{r(t)}finally{Gr(!1)}}}else a=t;return n.memoizedState=n.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},n.queue=e,e=e.dispatch=ag.bind(null,_e,e),[n.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:function(e){e=yu(e);var t=e.queue,r=Pp.bind(null,_e,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:Tc,useDeferredValue:function(e,t){var r=mt();return Ac(r,e,t)},useTransition:function(){var e=yu(!1);return e=Gp.bind(null,_e,e.queue,!0,!1),mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var n=_e,a=mt();if(Ne){if(r===void 0)throw Error(oe(407));r=r()}else{if(r=t(),Me===null)throw Error(oe(349));Ae&127||Ep(n,t,r)}a.memoizedState=r;var i={value:r,getSnapshot:t};return a.queue=i,Qf(Ap.bind(null,n,i,e),[e]),n.flags|=2048,_a(9,{destroy:void 0},Tp.bind(null,n,i,r,t),null),r},useId:function(){var e=mt(),t=Me.identifierPrefix;if(Ne){var r=nr,n=rr;r=(n&~(1<<32-Bt(n)-1)).toString(32)+r,t="_"+t+"R_"+r,r=rs++,0<r&&(t+="H"+r.toString(32)),t+="_"}else r=Qv++,t="_"+t+"r_"+r.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Nc,useFormState:Pf,useActionState:Pf,useOptimistic:function(e){var t=mt();t.memoizedState=t.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=r,t=Oc.bind(null,_e,!0,r),r.dispatch=t,[e,t]},useMemoCache:xc,useCacheRefresh:function(){return mt().memoizedState=ng.bind(null,_e)},useEffectEvent:function(e){var t=mt(),r={impl:e};return t.memoizedState=r,function(){if(Oe&2)throw Error(oe(440));return r.impl.apply(void 0,arguments)}}},Rc={readContext:ft,use:Ds,useCallback:Fp,useContext:ft,useEffect:Ec,useImperativeHandle:Hp,useInsertionEffect:Up,useLayoutEffect:Lp,useMemo:Ip,useReducer:Ml,useRef:Mp,useState:function(){return Ml(Cr)},useDebugValue:Tc,useDeferredValue:function(e,t){var r=Ze();return qp(r,Be.memoizedState,e,t)},useTransition:function(){var e=Ml(Cr)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:Xi(e),t]},useSyncExternalStore:Sp,useId:Yp,useHostTransitionStatus:Nc,useFormState:Zf,useActionState:Zf,useOptimistic:function(e,t){var r=Ze();return Rp(r,Be,e,t)},useMemoCache:xc,useCacheRefresh:Xp};Rc.useEffectEvent=zp;var Jp={readContext:ft,use:Ds,useCallback:Fp,useContext:ft,useEffect:Ec,useImperativeHandle:Hp,useInsertionEffect:Up,useLayoutEffect:Lp,useMemo:Ip,useReducer:uo,useRef:Mp,useState:function(){return uo(Cr)},useDebugValue:Tc,useDeferredValue:function(e,t){var r=Ze();return Be===null?Ac(r,e,t):qp(r,Be.memoizedState,e,t)},useTransition:function(){var e=uo(Cr)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:Xi(e),t]},useSyncExternalStore:Sp,useId:Yp,useHostTransitionStatus:Nc,useFormState:Wf,useActionState:Wf,useOptimistic:function(e,t){var r=Ze();return Be!==null?Rp(r,Be,e,t):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:xc,useCacheRefresh:Xp};Jp.useEffectEvent=zp;function co(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Fe({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var bu={enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Mt(),a=Wr(n);a.payload=t,r!=null&&(a.callback=r),t=Qr(e,a,n),t!==null&&(Et(t,e,n),hi(t,e,n))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Mt(),a=Wr(n);a.tag=1,a.payload=t,r!=null&&(a.callback=r),t=Qr(e,a,n),t!==null&&(Et(t,e,n),hi(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Mt(),n=Wr(r);n.tag=2,t!=null&&(n.callback=t),t=Qr(e,n,r),t!==null&&(Et(t,e,r),hi(t,e,r))}};function Jf(e,t,r,n,a,i,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,i,l):t.prototype&&t.prototype.isPureReactComponent?!Ai(r,n)||!Ai(a,i):!0}function $f(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&bu.enqueueReplaceState(t,t.state,null)}function Mn(e,t){var r=t;if("ref"in t){r={};for(var n in t)n!=="ref"&&(r[n]=t[n])}if(e=e.defaultProps){r===t&&(r=Fe({},r));for(var a in e)r[a]===void 0&&(r[a]=e[a])}return r}function $p(e){Pl(e)}function em(e){console.error(e)}function tm(e){Pl(e)}function ns(e,t){try{var r=e.onUncaughtError;r(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function eh(e,t,r){try{var n=e.onCaughtError;n(r.value,{componentStack:r.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function wu(e,t,r){return r=Wr(r),r.tag=3,r.payload={element:null},r.callback=function(){ns(e,t)},r}function rm(e){return e=Wr(e),e.tag=3,e}function nm(e,t,r,n){var a=r.type.getDerivedStateFromError;if(typeof a=="function"){var i=n.value;e.payload=function(){return a(i)},e.callback=function(){eh(t,r,n)}}var l=r.stateNode;l!==null&&typeof l.componentDidCatch=="function"&&(e.callback=function(){eh(t,r,n),typeof a!="function"&&(Jr===null?Jr=new Set([this]):Jr.add(this));var s=n.stack;this.componentDidCatch(n.value,{componentStack:s!==null?s:""})})}function ig(e,t,r,n,a){if(r.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=r.alternate,t!==null&&za(t,r,a,!0),r=Ut.current,r!==null){switch(r.tag){case 31:case 13:return Vt===null?os():r.alternate===null&&Ye===0&&(Ye=3),r.flags&=-257,r.flags|=65536,r.lanes=a,n===Jl?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([n]):t.add(n),xo(e,n,a)),!1;case 22:return r.flags|=65536,n===Jl?r.flags|=16384:(t=r.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},r.updateQueue=t):(r=t.retryQueue,r===null?t.retryQueue=new Set([n]):r.add(n)),xo(e,n,a)),!1}throw Error(oe(435,r.tag))}return xo(e,n,a),os(),!1}if(Ne)return t=Ut.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,n!==su&&(e=Error(oe(422),{cause:n}),Oi(qt(e,r)))):(n!==su&&(t=Error(oe(423),{cause:n}),Oi(qt(t,r))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,n=qt(n,r),a=wu(e.stateNode,n,a),oo(e,a),Ye!==4&&(Ye=2)),!1;var i=Error(oe(520),{cause:n});if(i=qt(i,r),gi===null?gi=[i]:gi.push(i),Ye!==4&&(Ye=2),t===null)return!0;n=qt(n,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=a&-a,r.lanes|=e,e=wu(r.stateNode,n,e),oo(r,e),!1;case 1:if(t=r.type,i=r.stateNode,(r.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Jr===null||!Jr.has(i))))return r.flags|=65536,a&=-a,r.lanes|=a,a=rm(a),nm(a,e,r,n),oo(r,a),!1}r=r.return}while(r!==null);return!1}var Cc=Error(oe(461)),$e=!1;function st(e,t,r,n){t.child=e===null?vp(t,null,r,n):kn(t,e.child,r,n)}function th(e,t,r,n,a){r=r.render;var i=t.ref;if("ref"in n){var l={};for(var s in n)s!=="ref"&&(l[s]=n[s])}else l=n;return Dn(t),n=gc(e,t,r,l,i,a),s=bc(),e!==null&&!$e?(wc(e,t,a),Dr(e,t,a)):(Ne&&s&&cc(t),t.flags|=1,st(e,t,n,a),t.child)}function rh(e,t,r,n,a){if(e===null){var i=r.type;return typeof i=="function"&&!uc(i)&&i.defaultProps===void 0&&r.compare===null?(t.tag=15,t.type=i,am(e,t,i,n,a)):(e=kl(r.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Dc(e,a)){var l=i.memoizedProps;if(r=r.compare,r=r!==null?r:Ai,r(l,n)&&e.ref===t.ref)return Dr(e,t,a)}return t.flags|=1,e=Tr(i,n),e.ref=t.ref,e.return=t,t.child=e}function am(e,t,r,n,a){if(e!==null){var i=e.memoizedProps;if(Ai(i,n)&&e.ref===t.ref)if($e=!1,t.pendingProps=n=i,Dc(e,a))e.flags&131072&&($e=!0);else return t.lanes=e.lanes,Dr(e,t,a)}return _u(e,t,r,n,a)}function im(e,t,r,n){var a=n.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if(t.flags&128){if(i=i!==null?i.baseLanes|r:r,e!==null){for(n=t.child=e.child,a=0;n!==null;)a=a|n.lanes|n.childLanes,n=n.sibling;n=a&~i}else n=0,t.child=null;return nh(e,t,i,r,n)}if(r&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Bl(t,i!==null?i.cachePool:null),i!==null?Kf(t,i):pu(),wp(t);else return n=t.lanes=536870912,nh(e,t,i!==null?i.baseLanes|r:r,r,n)}else i!==null?(Bl(t,i.cachePool),Kf(t,i),Ir(),t.memoizedState=null):(e!==null&&Bl(t,null),pu(),Ir());return st(e,t,a,r),t.child}function ai(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function nh(e,t,r,n,a){var i=dc();return i=i===null?null:{parent:Je._currentValue,pool:i},t.memoizedState={baseLanes:r,cachePool:i},e!==null&&Bl(t,null),pu(),wp(t),e!==null&&za(e,t,n,!0),t.childLanes=a,null}function Ul(e,t){return t=as({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ah(e,t,r){return kn(t,e.child,null,r),e=Ul(t,t.pendingProps),e.flags|=2,Ot(t),t.memoizedState=null,e}function lg(e,t,r){var n=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ne){if(n.mode==="hidden")return e=Ul(t,n),t.lanes=536870912,ai(null,e);if(mu(t),(e=je)?(e=Qm(e,Gt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:nn!==null?{id:rr,overflow:nr}:null,retryLane:536870912,hydrationErrors:null},r=cp(e),r.return=t,t.child=r,ut=t,je=null)):e=null,e===null)throw an(t);return t.lanes=536870912,null}return Ul(t,n)}var i=e.memoizedState;if(i!==null){var l=i.dehydrated;if(mu(t),a)if(t.flags&256)t.flags&=-257,t=ah(e,t,r);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(oe(558));else if($e||za(e,t,r,!1),a=(r&e.childLanes)!==0,$e||a){if(n=Me,n!==null&&(l=Ud(n,r),l!==0&&l!==i.retryLane))throw i.retryLane=l,Hn(e,l),Et(n,e,l),Cc;os(),t=ah(e,t,r)}else e=i.treeContext,je=Kt(l.nextSibling),ut=t,Ne=!0,Zr=null,Gt=!1,e!==null&&hp(t,e),t=Ul(t,n),t.flags|=4096;return t}return e=Tr(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ll(e,t){var r=t.ref;if(r===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(oe(284));(e===null||e.ref!==r)&&(t.flags|=4194816)}}function _u(e,t,r,n,a){return Dn(t),r=gc(e,t,r,n,void 0,a),n=bc(),e!==null&&!$e?(wc(e,t,a),Dr(e,t,a)):(Ne&&n&&cc(t),t.flags|=1,st(e,t,r,a),t.child)}function ih(e,t,r,n,a,i){return Dn(t),t.updateQueue=null,r=xp(t,n,r,a),_p(e),n=bc(),e!==null&&!$e?(wc(e,t,i),Dr(e,t,i)):(Ne&&n&&cc(t),t.flags|=1,st(e,t,r,i),t.child)}function lh(e,t,r,n,a){if(Dn(t),t.stateNode===null){var i=aa,l=r.contextType;typeof l=="object"&&l!==null&&(i=ft(l)),i=new r(n,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=bu,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=n,i.state=t.memoizedState,i.refs={},mc(t),l=r.contextType,i.context=typeof l=="object"&&l!==null?ft(l):aa,i.state=t.memoizedState,l=r.getDerivedStateFromProps,typeof l=="function"&&(co(t,r,l,n),i.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(l=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),l!==i.state&&bu.enqueueReplaceState(i,i.state,null),pi(t,n,i,a),di(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){i=t.stateNode;var s=t.memoizedProps,u=Mn(r,s);i.props=u;var d=i.context,y=r.contextType;l=aa,typeof y=="object"&&y!==null&&(l=ft(y));var g=r.getDerivedStateFromProps;y=typeof g=="function"||typeof i.getSnapshotBeforeUpdate=="function",s=t.pendingProps!==s,y||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s||d!==l)&&$f(t,i,n,l),Lr=!1;var v=t.memoizedState;i.state=v,pi(t,n,i,a),di(),d=t.memoizedState,s||v!==d||Lr?(typeof g=="function"&&(co(t,r,g,n),d=t.memoizedState),(u=Lr||Jf(t,r,u,n,v,d,l))?(y||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=d),i.props=n,i.state=d,i.context=l,n=u):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,hu(e,t),l=t.memoizedProps,y=Mn(r,l),i.props=y,g=t.pendingProps,v=i.context,d=r.contextType,u=aa,typeof d=="object"&&d!==null&&(u=ft(d)),s=r.getDerivedStateFromProps,(d=typeof s=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==g||v!==u)&&$f(t,i,n,u),Lr=!1,v=t.memoizedState,i.state=v,pi(t,n,i,a),di();var h=t.memoizedState;l!==g||v!==h||Lr||e!==null&&e.dependencies!==null&&Ql(e.dependencies)?(typeof s=="function"&&(co(t,r,s,n),h=t.memoizedState),(y=Lr||Jf(t,r,y,n,v,h,u)||e!==null&&e.dependencies!==null&&Ql(e.dependencies))?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,h,u),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,h,u)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=h),i.props=n,i.state=h,i.context=u,n=y):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),n=!1)}return i=n,Ll(e,t),n=(t.flags&128)!==0,i||n?(i=t.stateNode,r=n&&typeof r.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&n?(t.child=kn(t,e.child,null,a),t.child=kn(t,null,r,a)):st(e,t,r,a),t.memoizedState=i.state,e=t.child):e=Dr(e,t,a),e}function sh(e,t,r,n){return Cn(),t.flags|=256,st(e,t,r,n),t.child}var fo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ho(e){return{baseLanes:e,cachePool:pp()}}function po(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=Ct),e}function lm(e,t,r){var n=t.pendingProps,a=!1,i=(t.flags&128)!==0,l;if((l=i)||(l=e!==null&&e.memoizedState===null?!1:(Pe.current&2)!==0),l&&(a=!0,t.flags&=-129),l=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ne){if(a?Fr(t):Ir(),(e=je)?(e=Qm(e,Gt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:nn!==null?{id:rr,overflow:nr}:null,retryLane:536870912,hydrationErrors:null},r=cp(e),r.return=t,t.child=r,ut=t,je=null)):e=null,e===null)throw an(t);return zu(e)?t.lanes=32:t.lanes=536870912,null}var s=n.children;return n=n.fallback,a?(Ir(),a=t.mode,s=as({mode:"hidden",children:s},a),n=En(n,a,r,null),s.return=t,n.return=t,s.sibling=n,t.child=s,n=t.child,n.memoizedState=ho(r),n.childLanes=po(e,l,r),t.memoizedState=fo,ai(null,n)):(Fr(t),xu(t,s))}var u=e.memoizedState;if(u!==null&&(s=u.dehydrated,s!==null)){if(i)t.flags&256?(Fr(t),t.flags&=-257,t=mo(e,t,r)):t.memoizedState!==null?(Ir(),t.child=e.child,t.flags|=128,t=null):(Ir(),s=n.fallback,a=t.mode,n=as({mode:"visible",children:n.children},a),s=En(s,a,r,null),s.flags|=2,n.return=t,s.return=t,n.sibling=s,t.child=n,kn(t,e.child,null,r),n=t.child,n.memoizedState=ho(r),n.childLanes=po(e,l,r),t.memoizedState=fo,t=ai(null,n));else if(Fr(t),zu(s)){if(l=s.nextSibling&&s.nextSibling.dataset,l)var d=l.dgst;l=d,n=Error(oe(419)),n.stack="",n.digest=l,Oi({value:n,source:null,stack:null}),t=mo(e,t,r)}else if($e||za(e,t,r,!1),l=(r&e.childLanes)!==0,$e||l){if(l=Me,l!==null&&(n=Ud(l,r),n!==0&&n!==u.retryLane))throw u.retryLane=n,Hn(e,n),Et(l,e,n),Cc;Mu(s)||os(),t=mo(e,t,r)}else Mu(s)?(t.flags|=192,t.child=e.child,t=null):(e=u.treeContext,je=Kt(s.nextSibling),ut=t,Ne=!0,Zr=null,Gt=!1,e!==null&&hp(t,e),t=xu(t,n.children),t.flags|=4096);return t}return a?(Ir(),s=n.fallback,a=t.mode,u=e.child,d=u.sibling,n=Tr(u,{mode:"hidden",children:n.children}),n.subtreeFlags=u.subtreeFlags&65011712,d!==null?s=Tr(d,s):(s=En(s,a,r,null),s.flags|=2),s.return=t,n.return=t,n.sibling=s,t.child=n,ai(null,n),n=t.child,s=e.child.memoizedState,s===null?s=ho(r):(a=s.cachePool,a!==null?(u=Je._currentValue,a=a.parent!==u?{parent:u,pool:u}:a):a=pp(),s={baseLanes:s.baseLanes|r,cachePool:a}),n.memoizedState=s,n.childLanes=po(e,l,r),t.memoizedState=fo,ai(e.child,n)):(Fr(t),r=e.child,e=r.sibling,r=Tr(r,{mode:"visible",children:n.children}),r.return=t,r.sibling=null,e!==null&&(l=t.deletions,l===null?(t.deletions=[e],t.flags|=16):l.push(e)),t.child=r,t.memoizedState=null,r)}function xu(e,t){return t=as({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function as(e,t){return e=Rt(22,e,null,t),e.lanes=0,e}function mo(e,t,r){return kn(t,e.child,null,r),e=xu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function oh(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),uu(e.return,t,r)}function yo(e,t,r,n,a,i){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:a,treeForkCount:i}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=n,l.tail=r,l.tailMode=a,l.treeForkCount=i)}function sm(e,t,r){var n=t.pendingProps,a=n.revealOrder,i=n.tail;n=n.children;var l=Pe.current,s=(l&2)!==0;if(s?(l=l&1|2,t.flags|=128):l&=1,ze(Pe,l),st(e,t,n,r),n=Ne?Ni:0,!s&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&oh(e,r,t);else if(e.tag===19)oh(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"forwards":for(r=t.child,a=null;r!==null;)e=r.alternate,e!==null&&es(e)===null&&(a=r),r=r.sibling;r=a,r===null?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),yo(t,!1,a,r,i,n);break;case"backwards":case"unstable_legacy-backwards":for(r=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&es(e)===null){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}yo(t,!0,r,null,i,n);break;case"together":yo(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function Dr(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),sn|=t.lanes,!(r&t.childLanes))if(e!==null){if(za(e,t,r,!1),(r&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(oe(153));if(t.child!==null){for(e=t.child,r=Tr(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Tr(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Dc(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&Ql(e)))}function sg(e,t,r){switch(t.tag){case 3:Vl(t,t.stateNode.containerInfo),Hr(t,Je,e.memoizedState.cache),Cn();break;case 27:case 5:Wo(t);break;case 4:Vl(t,t.stateNode.containerInfo);break;case 10:Hr(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,mu(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(Fr(t),t.flags|=128,null):r&t.child.childLanes?lm(e,t,r):(Fr(t),e=Dr(e,t,r),e!==null?e.sibling:null);Fr(t);break;case 19:var a=(e.flags&128)!==0;if(n=(r&t.childLanes)!==0,n||(za(e,t,r,!1),n=(r&t.childLanes)!==0),a){if(n)return sm(e,t,r);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),ze(Pe,Pe.current),n)break;return null;case 22:return t.lanes=0,im(e,t,r,t.pendingProps);case 24:Hr(t,Je,e.memoizedState.cache)}return Dr(e,t,r)}function om(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps)$e=!0;else{if(!Dc(e,r)&&!(t.flags&128))return $e=!1,sg(e,t,r);$e=!!(e.flags&131072)}else $e=!1,Ne&&t.flags&1048576&&fp(t,Ni,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=wn(t.elementType),t.type=e,typeof e=="function")uc(e)?(n=Mn(e,n),t.tag=1,t=lh(null,t,e,n,r)):(t.tag=0,t=_u(null,t,e,n,r));else{if(e!=null){var a=e.$$typeof;if(a===Zu){t.tag=11,t=th(null,t,e,n,r);break e}else if(a===Wu){t.tag=14,t=rh(null,t,e,n,r);break e}}throw t=Po(e)||e,Error(oe(306,t,""))}}return t;case 0:return _u(e,t,t.type,t.pendingProps,r);case 1:return n=t.type,a=Mn(n,t.pendingProps),lh(e,t,n,a,r);case 3:e:{if(Vl(t,t.stateNode.containerInfo),e===null)throw Error(oe(387));n=t.pendingProps;var i=t.memoizedState;a=i.element,hu(e,t),pi(t,n,null,r);var l=t.memoizedState;if(n=l.cache,Hr(t,Je,n),n!==i.cache&&cu(t,[Je],r,!0),di(),n=l.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:l.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=sh(e,t,n,r);break e}else if(n!==a){a=qt(Error(oe(424)),t),Oi(a),t=sh(e,t,n,r);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(je=Kt(e.firstChild),ut=t,Ne=!0,Zr=null,Gt=!0,r=vp(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(Cn(),n===a){t=Dr(e,t,r);break e}st(e,t,n,r)}t=t.child}return t;case 26:return Ll(e,t),e===null?(r=Oh(t.type,null,t.pendingProps,null))?t.memoizedState=r:Ne||(r=t.type,e=t.pendingProps,n=hs(Pr.current).createElement(r),n[ot]=t,n[Tt]=e,ht(n,r,e),at(n),t.stateNode=n):t.memoizedState=Oh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Wo(t),e===null&&Ne&&(n=t.stateNode=Jm(t.type,t.pendingProps,Pr.current),ut=t,Gt=!0,a=je,un(t.type)?(Uu=a,je=Kt(n.firstChild)):je=a),st(e,t,t.pendingProps.children,r),Ll(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ne&&((a=n=je)&&(n=Lg(n,t.type,t.pendingProps,Gt),n!==null?(t.stateNode=n,ut=t,je=Kt(n.firstChild),Gt=!1,a=!0):a=!1),a||an(t)),Wo(t),a=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,n=i.children,ku(a,i)?n=null:l!==null&&ku(a,l)&&(t.flags|=32),t.memoizedState!==null&&(a=gc(e,t,Jv,null,null,r),Mi._currentValue=a),Ll(e,t),st(e,t,n,r),t.child;case 6:return e===null&&Ne&&((e=r=je)&&(r=jg(r,t.pendingProps,Gt),r!==null?(t.stateNode=r,ut=t,je=null,e=!0):e=!1),e||an(t)),null;case 13:return lm(e,t,r);case 4:return Vl(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=kn(t,null,n,r):st(e,t,n,r),t.child;case 11:return th(e,t,t.type,t.pendingProps,r);case 7:return st(e,t,t.pendingProps,r),t.child;case 8:return st(e,t,t.pendingProps.children,r),t.child;case 12:return st(e,t,t.pendingProps.children,r),t.child;case 10:return n=t.pendingProps,Hr(t,t.type,n.value),st(e,t,n.children,r),t.child;case 9:return a=t.type._context,n=t.pendingProps.children,Dn(t),a=ft(a),n=n(a),t.flags|=1,st(e,t,n,r),t.child;case 14:return rh(e,t,t.type,t.pendingProps,r);case 15:return am(e,t,t.type,t.pendingProps,r);case 19:return sm(e,t,r);case 31:return lg(e,t,r);case 22:return im(e,t,r,t.pendingProps);case 24:return Dn(t),n=ft(Je),e===null?(a=dc(),a===null&&(a=Me,i=hc(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=r),a=i),t.memoizedState={parent:n,cache:a},mc(t),Hr(t,Je,a)):(e.lanes&r&&(hu(e,t),pi(t,null,null,r),di()),a=e.memoizedState,i=t.memoizedState,a.parent!==n?(a={parent:n,cache:n},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Hr(t,Je,n)):(n=i.cache,Hr(t,Je,n),n!==a.cache&&cu(t,[Je],r,!0))),st(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error(oe(156,t.tag))}function hr(e){e.flags|=4}function vo(e,t,r,n,a){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(km())e.flags|=8192;else throw An=Jl,pc}else e.flags&=-16777217}function uh(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!t0(t))if(km())e.flags|=8192;else throw An=Jl,pc}function yl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Bd():536870912,e.lanes|=t,xa|=t)}function Za(e,t){if(!Ne)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags&65011712,n|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function og(e,t,r){var n=t.pendingProps;switch(fc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return Ue(t),null;case 3:return r=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ar(Je),ya(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(qn(t)?hr(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,so())),Ue(t),null;case 26:var a=t.type,i=t.memoizedState;return e===null?(hr(t),i!==null?(Ue(t),uh(t,i)):(Ue(t),vo(t,a,null,n,r))):i?i!==e.memoizedState?(hr(t),Ue(t),uh(t,i)):(Ue(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&hr(t),Ue(t),vo(t,a,e,n,r)),null;case 27:if(Kl(t),r=Pr.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&hr(t);else{if(!n){if(t.stateNode===null)throw Error(oe(166));return Ue(t),null}e=lr.current,qn(t)?jf(t):(e=Jm(a,n,r),t.stateNode=e,hr(t))}return Ue(t),null;case 5:if(Kl(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&hr(t);else{if(!n){if(t.stateNode===null)throw Error(oe(166));return Ue(t),null}if(i=lr.current,qn(t))jf(t);else{var l=hs(Pr.current);switch(i){case 1:i=l.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=l.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=l.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=l.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":i=l.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof n.is=="string"?l.createElement("select",{is:n.is}):l.createElement("select"),n.multiple?i.multiple=!0:n.size&&(i.size=n.size);break;default:i=typeof n.is=="string"?l.createElement(a,{is:n.is}):l.createElement(a)}}i[ot]=t,i[Tt]=n;e:for(l=t.child;l!==null;){if(l.tag===5||l.tag===6)i.appendChild(l.stateNode);else if(l.tag!==4&&l.tag!==27&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break e;for(;l.sibling===null;){if(l.return===null||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}t.stateNode=i;e:switch(ht(i,a,n),a){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&hr(t)}}return Ue(t),vo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,r),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&hr(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(oe(166));if(e=Pr.current,qn(t)){if(e=t.stateNode,r=t.memoizedProps,n=null,a=ut,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}e[ot]=t,e=!!(e.nodeValue===r||n!==null&&n.suppressHydrationWarning===!0||Pm(e.nodeValue,r)),e||an(t,!0)}else e=hs(e).createTextNode(n),e[ot]=t,t.stateNode=e}return Ue(t),null;case 31:if(r=t.memoizedState,e===null||e.memoizedState!==null){if(n=qn(t),r!==null){if(e===null){if(!n)throw Error(oe(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(oe(557));e[ot]=t}else Cn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ue(t),e=!1}else r=so(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return t.flags&256?(Ot(t),t):(Ot(t),null);if(t.flags&128)throw Error(oe(558))}return Ue(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=qn(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(oe(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(oe(317));a[ot]=t}else Cn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ue(t),a=!1}else a=so(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Ot(t),t):(Ot(t),null)}return Ot(t),t.flags&128?(t.lanes=r,t):(r=n!==null,e=e!==null&&e.memoizedState!==null,r&&(n=t.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool),i=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==a&&(n.flags|=2048)),r!==e&&r&&(t.child.flags|=8192),yl(t,t.updateQueue),Ue(t),null);case 4:return ya(),e===null&&jc(t.stateNode.containerInfo),Ue(t),null;case 10:return Ar(t.type),Ue(t),null;case 19:if(it(Pe),n=t.memoizedState,n===null)return Ue(t),null;if(a=(t.flags&128)!==0,i=n.rendering,i===null)if(a)Za(n,!1);else{if(Ye!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=es(e),i!==null){for(t.flags|=128,Za(n,!1),e=i.updateQueue,t.updateQueue=e,yl(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)up(r,e),r=r.sibling;return ze(Pe,Pe.current&1|2),Ne&&br(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&Dt()>ls&&(t.flags|=128,a=!0,Za(n,!1),t.lanes=4194304)}else{if(!a)if(e=es(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,yl(t,e),Za(n,!0),n.tail===null&&n.tailMode==="hidden"&&!i.alternate&&!Ne)return Ue(t),null}else 2*Dt()-n.renderingStartTime>ls&&r!==536870912&&(t.flags|=128,a=!0,Za(n,!1),t.lanes=4194304);n.isBackwards?(i.sibling=t.child,t.child=i):(e=n.last,e!==null?e.sibling=i:t.child=i,n.last=i)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=Dt(),e.sibling=null,r=Pe.current,ze(Pe,a?r&1|2:r&1),Ne&&br(t,n.treeForkCount),e):(Ue(t),null);case 22:case 23:return Ot(t),yc(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?r&536870912&&!(t.flags&128)&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),r=t.updateQueue,r!==null&&yl(t,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==r&&(t.flags|=2048),e!==null&&it(Tn),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ar(Je),Ue(t),null;case 25:return null;case 30:return null}throw Error(oe(156,t.tag))}function ug(e,t){switch(fc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ar(Je),ya(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Kl(t),null;case 31:if(t.memoizedState!==null){if(Ot(t),t.alternate===null)throw Error(oe(340));Cn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ot(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(oe(340));Cn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return it(Pe),null;case 4:return ya(),null;case 10:return Ar(t.type),null;case 22:case 23:return Ot(t),yc(),e!==null&&it(Tn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ar(Je),null;case 25:return null;default:return null}}function um(e,t){switch(fc(t),t.tag){case 3:Ar(Je),ya();break;case 26:case 27:case 5:Kl(t);break;case 4:ya();break;case 31:t.memoizedState!==null&&Ot(t);break;case 13:Ot(t);break;case 19:it(Pe);break;case 10:Ar(t.type);break;case 22:case 23:Ot(t),yc(),e!==null&&it(Tn);break;case 24:Ar(Je)}}function Pi(e,t){try{var r=t.updateQueue,n=r!==null?r.lastEffect:null;if(n!==null){var a=n.next;r=a;do{if((r.tag&e)===e){n=void 0;var i=r.create,l=r.inst;n=i(),l.destroy=n}r=r.next}while(r!==a)}}catch(s){De(t,t.return,s)}}function ln(e,t,r){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&e)===e){var l=n.inst,s=l.destroy;if(s!==void 0){l.destroy=void 0,a=t;var u=r,d=s;try{d()}catch(y){De(a,u,y)}}}n=n.next}while(n!==i)}}catch(y){De(t,t.return,y)}}function cm(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;try{bp(t,r)}catch(n){De(e,e.return,n)}}}function fm(e,t,r){r.props=Mn(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(n){De(e,t,n)}}function yi(e,t){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof r=="function"?e.refCleanup=r(n):r.current=n}}catch(a){De(e,t,a)}}function ar(e,t){var r=e.ref,n=e.refCleanup;if(r!==null)if(typeof n=="function")try{n()}catch(a){De(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(a){De(e,t,a)}else r.current=null}function hm(e){var t=e.type,r=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":r.autoFocus&&n.focus();break e;case"img":r.src?n.src=r.src:r.srcSet&&(n.srcset=r.srcSet)}}catch(a){De(e,e.return,a)}}function go(e,t,r){try{var n=e.stateNode;Dg(n,e.type,r,t),n[Tt]=t}catch(a){De(e,e.return,a)}}function dm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&un(e.type)||e.tag===4}function bo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dm(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.tag===27&&un(e.type)||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 Su(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,t):(t=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,t.appendChild(e),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=xr));else if(n!==4&&(n===27&&un(e.type)&&(r=e.stateNode,t=null),e=e.child,e!==null))for(Su(e,t,r),e=e.sibling;e!==null;)Su(e,t,r),e=e.sibling}function is(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(n===27&&un(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(is(e,t,r),e=e.sibling;e!==null;)is(e,t,r),e=e.sibling}function pm(e){var t=e.stateNode,r=e.memoizedProps;try{for(var n=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);ht(t,n,r),t[ot]=e,t[Tt]=r}catch(i){De(e,e.return,i)}}var wr=!1,Qe=!1,wo=!1,ch=typeof WeakSet=="function"?WeakSet:Set,nt=null;function cg(e,t){if(e=e.containerInfo,Cu=ys,e=tp(e),lc(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var l=0,s=-1,u=-1,d=0,y=0,g=e,v=null;t:for(;;){for(var h;g!==r||a!==0&&g.nodeType!==3||(s=l+a),g!==i||n!==0&&g.nodeType!==3||(u=l+n),g.nodeType===3&&(l+=g.nodeValue.length),(h=g.firstChild)!==null;)v=g,g=h;for(;;){if(g===e)break t;if(v===r&&++d===a&&(s=l),v===i&&++y===n&&(u=l),(h=g.nextSibling)!==null)break;g=v,v=g.parentNode}g=h}r=s===-1||u===-1?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(Du={focusedElem:e,selectionRange:r},ys=!1,nt=t;nt!==null;)if(t=nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,nt=e;else for(;nt!==null;){switch(t=nt,i=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(r=0;r<e.length;r++)a=e[r],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&i!==null){e=void 0,r=t,a=i.memoizedProps,i=i.memoizedState,n=r.stateNode;try{var _=Mn(r.type,a);e=n.getSnapshotBeforeUpdate(_,i),n.__reactInternalSnapshotBeforeUpdate=e}catch(E){De(r,r.return,E)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,r=e.nodeType,r===9)Bu(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Bu(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(oe(163))}if(e=t.sibling,e!==null){e.return=t.return,nt=e;break}nt=t.return}}function mm(e,t,r){var n=r.flags;switch(r.tag){case 0:case 11:case 15:pr(e,r),n&4&&Pi(5,r);break;case 1:if(pr(e,r),n&4)if(e=r.stateNode,t===null)try{e.componentDidMount()}catch(l){De(r,r.return,l)}else{var a=Mn(r.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(l){De(r,r.return,l)}}n&64&&cm(r),n&512&&yi(r,r.return);break;case 3:if(pr(e,r),n&64&&(e=r.updateQueue,e!==null)){if(t=null,r.child!==null)switch(r.child.tag){case 27:case 5:t=r.child.stateNode;break;case 1:t=r.child.stateNode}try{bp(e,t)}catch(l){De(r,r.return,l)}}break;case 27:t===null&&n&4&&pm(r);case 26:case 5:pr(e,r),t===null&&n&4&&hm(r),n&512&&yi(r,r.return);break;case 12:pr(e,r);break;case 31:pr(e,r),n&4&&gm(e,r);break;case 13:pr(e,r),n&4&&bm(e,r),n&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=bg.bind(null,r),Hg(e,r))));break;case 22:if(n=r.memoizedState!==null||wr,!n){t=t!==null&&t.memoizedState!==null||Qe,a=wr;var i=Qe;wr=n,(Qe=t)&&!i?gr(e,r,(r.subtreeFlags&8772)!==0):pr(e,r),wr=a,Qe=i}break;case 30:break;default:pr(e,r)}}function ym(e){var t=e.alternate;t!==null&&(e.alternate=null,ym(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ec(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ie=null,xt=!1;function dr(e,t,r){for(r=r.child;r!==null;)vm(e,t,r),r=r.sibling}function vm(e,t,r){if(kt&&typeof kt.onCommitFiberUnmount=="function")try{kt.onCommitFiberUnmount(Ii,r)}catch{}switch(r.tag){case 26:Qe||ar(r,t),dr(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:Qe||ar(r,t);var n=Ie,a=xt;un(r.type)&&(Ie=r.stateNode,xt=!1),dr(e,t,r),wi(r.stateNode),Ie=n,xt=a;break;case 5:Qe||ar(r,t);case 6:if(n=Ie,a=xt,Ie=null,dr(e,t,r),Ie=n,xt=a,Ie!==null)if(xt)try{(Ie.nodeType===9?Ie.body:Ie.nodeName==="HTML"?Ie.ownerDocument.body:Ie).removeChild(r.stateNode)}catch(i){De(r,t,i)}else try{Ie.removeChild(r.stateNode)}catch(i){De(r,t,i)}break;case 18:Ie!==null&&(xt?(e=Ie,Sh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),Aa(e)):Sh(Ie,r.stateNode));break;case 4:n=Ie,a=xt,Ie=r.stateNode.containerInfo,xt=!0,dr(e,t,r),Ie=n,xt=a;break;case 0:case 11:case 14:case 15:ln(2,r,t),Qe||ln(4,r,t),dr(e,t,r);break;case 1:Qe||(ar(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"&&fm(r,t,n)),dr(e,t,r);break;case 21:dr(e,t,r);break;case 22:Qe=(n=Qe)||r.memoizedState!==null,dr(e,t,r),Qe=n;break;default:dr(e,t,r)}}function gm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Aa(e)}catch(r){De(t,t.return,r)}}}function bm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Aa(e)}catch(r){De(t,t.return,r)}}function fg(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ch),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ch),t;default:throw Error(oe(435,e.tag))}}function vl(e,t){var r=fg(e);t.forEach(function(n){if(!r.has(n)){r.add(n);var a=wg.bind(null,e,n);n.then(a,a)}})}function bt(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var a=r[n],i=e,l=t,s=l;e:for(;s!==null;){switch(s.tag){case 27:if(un(s.type)){Ie=s.stateNode,xt=!1;break e}break;case 5:Ie=s.stateNode,xt=!1;break e;case 3:case 4:Ie=s.stateNode.containerInfo,xt=!0;break e}s=s.return}if(Ie===null)throw Error(oe(160));vm(i,l,a),Ie=null,xt=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)wm(t,e),t=t.sibling}var Wt=null;function wm(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:bt(t,e),wt(e),n&4&&(ln(3,e,e.return),Pi(3,e),ln(5,e,e.return));break;case 1:bt(t,e),wt(e),n&512&&(Qe||r===null||ar(r,r.return)),n&64&&wr&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?n:r.concat(n))));break;case 26:var a=Wt;if(bt(t,e),wt(e),n&512&&(Qe||r===null||ar(r,r.return)),n&4){var i=r!==null?r.memoizedState:null;if(n=e.memoizedState,r===null)if(n===null)if(e.stateNode===null){e:{n=e.type,r=e.memoizedProps,a=a.ownerDocument||a;t:switch(n){case"title":i=a.getElementsByTagName("title")[0],(!i||i[Vi]||i[ot]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(n),a.head.insertBefore(i,a.querySelector("head > title"))),ht(i,n,r),i[ot]=e,at(i),n=i;break e;case"link":var l=Ch("link","href",a).get(n+(r.href||""));if(l){for(var s=0;s<l.length;s++)if(i=l[s],i.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&i.getAttribute("rel")===(r.rel==null?null:r.rel)&&i.getAttribute("title")===(r.title==null?null:r.title)&&i.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){l.splice(s,1);break t}}i=a.createElement(n),ht(i,n,r),a.head.appendChild(i);break;case"meta":if(l=Ch("meta","content",a).get(n+(r.content||""))){for(s=0;s<l.length;s++)if(i=l[s],i.getAttribute("content")===(r.content==null?null:""+r.content)&&i.getAttribute("name")===(r.name==null?null:r.name)&&i.getAttribute("property")===(r.property==null?null:r.property)&&i.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&i.getAttribute("charset")===(r.charSet==null?null:r.charSet)){l.splice(s,1);break t}}i=a.createElement(n),ht(i,n,r),a.head.appendChild(i);break;default:throw Error(oe(468,n))}i[ot]=e,at(i),n=i}e.stateNode=n}else Dh(a,e.type,e.stateNode);else e.stateNode=Rh(a,n,e.memoizedProps);else i!==n?(i===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):i.count--,n===null?Dh(a,e.type,e.stateNode):Rh(a,n,e.memoizedProps)):n===null&&e.stateNode!==null&&go(e,e.memoizedProps,r.memoizedProps)}break;case 27:bt(t,e),wt(e),n&512&&(Qe||r===null||ar(r,r.return)),r!==null&&n&4&&go(e,e.memoizedProps,r.memoizedProps);break;case 5:if(bt(t,e),wt(e),n&512&&(Qe||r===null||ar(r,r.return)),e.flags&32){a=e.stateNode;try{ga(a,"")}catch(_){De(e,e.return,_)}}n&4&&e.stateNode!=null&&(a=e.memoizedProps,go(e,a,r!==null?r.memoizedProps:a)),n&1024&&(wo=!0);break;case 6:if(bt(t,e),wt(e),n&4){if(e.stateNode===null)throw Error(oe(162));n=e.memoizedProps,r=e.stateNode;try{r.nodeValue=n}catch(_){De(e,e.return,_)}}break;case 3:if(Fl=null,a=Wt,Wt=ds(t.containerInfo),bt(t,e),Wt=a,wt(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Aa(t.containerInfo)}catch(_){De(e,e.return,_)}wo&&(wo=!1,_m(e));break;case 4:n=Wt,Wt=ds(e.stateNode.containerInfo),bt(t,e),wt(e),Wt=n;break;case 12:bt(t,e),wt(e);break;case 31:bt(t,e),wt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,vl(e,n)));break;case 13:bt(t,e),wt(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(Ms=Dt()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,vl(e,n)));break;case 22:a=e.memoizedState!==null;var u=r!==null&&r.memoizedState!==null,d=wr,y=Qe;if(wr=d||a,Qe=y||u,bt(t,e),Qe=y,wr=d,wt(e),n&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(r===null||u||wr||Qe||_n(e)),r=null,t=e;;){if(t.tag===5||t.tag===26){if(r===null){u=r=t;try{if(i=u.stateNode,a)l=i.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none";else{s=u.stateNode;var g=u.memoizedProps.style,v=g!=null&&g.hasOwnProperty("display")?g.display:null;s.style.display=v==null||typeof v=="boolean"?"":(""+v).trim()}}catch(_){De(u,u.return,_)}}}else if(t.tag===6){if(r===null){u=t;try{u.stateNode.nodeValue=a?"":u.memoizedProps}catch(_){De(u,u.return,_)}}}else if(t.tag===18){if(r===null){u=t;try{var h=u.stateNode;a?Eh(h,!0):Eh(u.stateNode,!1)}catch(_){De(u,u.return,_)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(r=n.retryQueue,r!==null&&(n.retryQueue=null,vl(e,r))));break;case 19:bt(t,e),wt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,vl(e,n)));break;case 30:break;case 21:break;default:bt(t,e),wt(e)}}function wt(e){var t=e.flags;if(t&2){try{for(var r,n=e.return;n!==null;){if(dm(n)){r=n;break}n=n.return}if(r==null)throw Error(oe(160));switch(r.tag){case 27:var a=r.stateNode,i=bo(e);is(e,i,a);break;case 5:var l=r.stateNode;r.flags&32&&(ga(l,""),r.flags&=-33);var s=bo(e);is(e,s,l);break;case 3:case 4:var u=r.stateNode.containerInfo,d=bo(e);Su(e,d,u);break;default:throw Error(oe(161))}}catch(y){De(e,e.return,y)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function _m(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;_m(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function pr(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)mm(e,t.alternate,t),t=t.sibling}function _n(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ln(4,t,t.return),_n(t);break;case 1:ar(t,t.return);var r=t.stateNode;typeof r.componentWillUnmount=="function"&&fm(t,t.return,r),_n(t);break;case 27:wi(t.stateNode);case 26:case 5:ar(t,t.return),_n(t);break;case 22:t.memoizedState===null&&_n(t);break;case 30:_n(t);break;default:_n(t)}e=e.sibling}}function gr(e,t,r){for(r=r&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,a=e,i=t,l=i.flags;switch(i.tag){case 0:case 11:case 15:gr(a,i,r),Pi(4,i);break;case 1:if(gr(a,i,r),n=i,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(d){De(n,n.return,d)}if(n=i,a=n.updateQueue,a!==null){var s=n.stateNode;try{var u=a.shared.hiddenCallbacks;if(u!==null)for(a.shared.hiddenCallbacks=null,a=0;a<u.length;a++)gp(u[a],s)}catch(d){De(n,n.return,d)}}r&&l&64&&cm(i),yi(i,i.return);break;case 27:pm(i);case 26:case 5:gr(a,i,r),r&&n===null&&l&4&&hm(i),yi(i,i.return);break;case 12:gr(a,i,r);break;case 31:gr(a,i,r),r&&l&4&&gm(a,i);break;case 13:gr(a,i,r),r&&l&4&&bm(a,i);break;case 22:i.memoizedState===null&&gr(a,i,r),yi(i,i.return);break;case 30:break;default:gr(a,i,r)}t=t.sibling}}function kc(e,t){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&Yi(r))}function Bc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Yi(e))}function Pt(e,t,r,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)xm(e,t,r,n),t=t.sibling}function xm(e,t,r,n){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Pt(e,t,r,n),a&2048&&Pi(9,t);break;case 1:Pt(e,t,r,n);break;case 3:Pt(e,t,r,n),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Yi(e)));break;case 12:if(a&2048){Pt(e,t,r,n),e=t.stateNode;try{var i=t.memoizedProps,l=i.id,s=i.onPostCommit;typeof s=="function"&&s(l,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(u){De(t,t.return,u)}}else Pt(e,t,r,n);break;case 31:Pt(e,t,r,n);break;case 13:Pt(e,t,r,n);break;case 23:break;case 22:i=t.stateNode,l=t.alternate,t.memoizedState!==null?i._visibility&2?Pt(e,t,r,n):vi(e,t):i._visibility&2?Pt(e,t,r,n):(i._visibility|=2,Xn(e,t,r,n,(t.subtreeFlags&10256)!==0||!1)),a&2048&&kc(l,t);break;case 24:Pt(e,t,r,n),a&2048&&Bc(t.alternate,t);break;default:Pt(e,t,r,n)}}function Xn(e,t,r,n,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,l=t,s=r,u=n,d=l.flags;switch(l.tag){case 0:case 11:case 15:Xn(i,l,s,u,a),Pi(8,l);break;case 23:break;case 22:var y=l.stateNode;l.memoizedState!==null?y._visibility&2?Xn(i,l,s,u,a):vi(i,l):(y._visibility|=2,Xn(i,l,s,u,a)),a&&d&2048&&kc(l.alternate,l);break;case 24:Xn(i,l,s,u,a),a&&d&2048&&Bc(l.alternate,l);break;default:Xn(i,l,s,u,a)}t=t.sibling}}function vi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var r=e,n=t,a=n.flags;switch(n.tag){case 22:vi(r,n),a&2048&&kc(n.alternate,n);break;case 24:vi(r,n),a&2048&&Bc(n.alternate,n);break;default:vi(r,n)}t=t.sibling}}var ii=8192;function Gn(e,t,r){if(e.subtreeFlags&ii)for(e=e.child;e!==null;)Sm(e,t,r),e=e.sibling}function Sm(e,t,r){switch(e.tag){case 26:Gn(e,t,r),e.flags&ii&&e.memoizedState!==null&&Qg(r,Wt,e.memoizedState,e.memoizedProps);break;case 5:Gn(e,t,r);break;case 3:case 4:var n=Wt;Wt=ds(e.stateNode.containerInfo),Gn(e,t,r),Wt=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=ii,ii=16777216,Gn(e,t,r),ii=n):Gn(e,t,r));break;default:Gn(e,t,r)}}function Em(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Wa(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var r=0;r<t.length;r++){var n=t[r];nt=n,Am(n,e)}Em(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Tm(e),e=e.sibling}function Tm(e){switch(e.tag){case 0:case 11:case 15:Wa(e),e.flags&2048&&ln(9,e,e.return);break;case 3:Wa(e);break;case 12:Wa(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,jl(e)):Wa(e);break;default:Wa(e)}}function jl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var r=0;r<t.length;r++){var n=t[r];nt=n,Am(n,e)}Em(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ln(8,t,t.return),jl(t);break;case 22:r=t.stateNode,r._visibility&2&&(r._visibility&=-3,jl(t));break;default:jl(t)}e=e.sibling}}function Am(e,t){for(;nt!==null;){var r=nt;switch(r.tag){case 0:case 11:case 15:ln(8,r,t);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var n=r.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:Yi(r.memoizedState.cache)}if(n=r.child,n!==null)n.return=r,nt=n;else e:for(r=e;nt!==null;){n=nt;var a=n.sibling,i=n.return;if(ym(n),n===r){nt=null;break e}if(a!==null){a.return=i,nt=a;break e}nt=i}}}var hg={getCacheForType:function(e){var t=ft(Je),r=t.data.get(e);return r===void 0&&(r=e(),t.data.set(e,r)),r},cacheSignal:function(){return ft(Je).controller.signal}},dg=typeof WeakMap=="function"?WeakMap:Map,Oe=0,Me=null,Te=null,Ae=0,Ce=0,Nt=null,Kr=!1,La=!1,Mc=!1,kr=0,Ye=0,sn=0,Nn=0,zc=0,Ct=0,xa=0,gi=null,St=null,Eu=!1,Ms=0,Nm=0,ls=1/0,ss=null,Jr=null,et=0,$r=null,Sa=null,Nr=0,Tu=0,Au=null,Om=null,bi=0,Nu=null;function Mt(){return Oe&2&&Ae!==0?Ae&-Ae:ge.T!==null?Lc():Ld()}function Rm(){if(Ct===0)if(!(Ae&536870912)||Ne){var e=ul;ul<<=1,!(ul&3932160)&&(ul=262144),Ct=e}else Ct=536870912;return e=Ut.current,e!==null&&(e.flags|=32),Ct}function Et(e,t,r){(e===Me&&(Ce===2||Ce===9)||e.cancelPendingCommit!==null)&&(Ea(e,0),Yr(e,Ae,Ct,!1)),Gi(e,r),(!(Oe&2)||e!==Me)&&(e===Me&&(!(Oe&2)&&(Nn|=r),Ye===4&&Yr(e,Ae,Ct,!1)),or(e))}function Cm(e,t,r){if(Oe&6)throw Error(oe(327));var n=!r&&(t&127)===0&&(t&e.expiredLanes)===0||qi(e,t),a=n?yg(e,t):_o(e,t,!0),i=n;do{if(a===0){La&&!n&&Yr(e,t,0,!1);break}else{if(r=e.current.alternate,i&&!pg(r)){a=_o(e,t,!1),i=!1;continue}if(a===2){if(i=t,e.errorRecoveryDisabledLanes&i)var l=0;else l=e.pendingLanes&-536870913,l=l!==0?l:l&536870912?536870912:0;if(l!==0){t=l;e:{var s=e;a=gi;var u=s.current.memoizedState.isDehydrated;if(u&&(Ea(s,l).flags|=256),l=_o(s,l,!1),l!==2){if(Mc&&!u){s.errorRecoveryDisabledLanes|=i,Nn|=i,a=4;break e}i=St,St=a,i!==null&&(St===null?St=i:St.push.apply(St,i))}a=l}if(i=!1,a!==2)continue}}if(a===1){Ea(e,0),Yr(e,t,0,!0);break}e:{switch(n=e,i=a,i){case 0:case 1:throw Error(oe(345));case 4:if((t&4194048)!==t)break;case 6:Yr(n,t,Ct,!Kr);break e;case 2:St=null;break;case 3:case 5:break;default:throw Error(oe(329))}if((t&62914560)===t&&(a=Ms+300-Dt(),10<a)){if(Yr(n,t,Ct,!Kr),Ss(n,0,!0)!==0)break e;Nr=t,n.timeoutHandle=Wm(fh.bind(null,n,r,St,ss,Eu,t,Ct,Nn,xa,Kr,i,"Throttled",-0,0),a);break e}fh(n,r,St,ss,Eu,t,Ct,Nn,xa,Kr,i,null,-0,0)}}break}while(!0);or(e)}function fh(e,t,r,n,a,i,l,s,u,d,y,g,v,h){if(e.timeoutHandle=-1,g=t.subtreeFlags,g&8192||(g&16785408)===16785408){g={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:xr},Sm(t,i,g);var _=(i&62914560)===i?Ms-Dt():(i&4194048)===i?Nm-Dt():0;if(_=Jg(g,_),_!==null){Nr=i,e.cancelPendingCommit=_(dh.bind(null,e,t,i,r,n,a,l,s,u,y,g,null,v,h)),Yr(e,i,l,!d);return}}dh(e,t,i,r,n,a,l,s,u)}function pg(e){for(var t=e;;){var r=t.tag;if((r===0||r===11||r===15)&&t.flags&16384&&(r=t.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var n=0;n<r.length;n++){var a=r[n],i=a.getSnapshot;a=a.value;try{if(!zt(i(),a))return!1}catch{return!1}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Yr(e,t,r,n){t&=~zc,t&=~Nn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var a=t;0<a;){var i=31-Bt(a),l=1<<i;n[i]=-1,a&=~l}r!==0&&Md(e,r,t)}function zs(){return Oe&6?!0:(Zi(0),!1)}function Uc(){if(Te!==null){if(Ce===0)var e=Te.return;else e=Te,Sr=Fn=null,_c(e),ha=null,Ri=0,e=Te;for(;e!==null;)um(e.alternate,e),e=e.return;Te=null}}function Ea(e,t){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,Mg(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),Nr=0,Uc(),Me=e,Te=r=Tr(e.current,null),Ae=t,Ce=0,Nt=null,Kr=!1,La=qi(e,t),Mc=!1,xa=Ct=zc=Nn=sn=Ye=0,St=gi=null,Eu=!1,t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var a=31-Bt(n),i=1<<a;t|=e[a],n&=~i}return kr=t,Ns(),r}function Dm(e,t){_e=null,ge.H=Di,t===Ua||t===Rs?(t=Gf(),Ce=3):t===pc?(t=Gf(),Ce=4):Ce=t===Cc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Nt=t,Te===null&&(Ye=1,ns(e,qt(t,e.current)))}function km(){var e=Ut.current;return e===null?!0:(Ae&4194048)===Ae?Vt===null:(Ae&62914560)===Ae||Ae&536870912?e===Vt:!1}function Bm(){var e=ge.H;return ge.H=Di,e===null?Di:e}function Mm(){var e=ge.A;return ge.A=hg,e}function os(){Ye=4,Kr||(Ae&4194048)!==Ae&&Ut.current!==null||(La=!0),!(sn&134217727)&&!(Nn&134217727)||Me===null||Yr(Me,Ae,Ct,!1)}function _o(e,t,r){var n=Oe;Oe|=2;var a=Bm(),i=Mm();(Me!==e||Ae!==t)&&(ss=null,Ea(e,t)),t=!1;var l=Ye;e:do try{if(Ce!==0&&Te!==null){var s=Te,u=Nt;switch(Ce){case 8:Uc(),l=6;break e;case 3:case 2:case 9:case 6:Ut.current===null&&(t=!0);var d=Ce;if(Ce=0,Nt=null,sa(e,s,u,d),r&&La){l=0;break e}break;default:d=Ce,Ce=0,Nt=null,sa(e,s,u,d)}}mg(),l=Ye;break}catch(y){Dm(e,y)}while(!0);return t&&e.shellSuspendCounter++,Sr=Fn=null,Oe=n,ge.H=a,ge.A=i,Te===null&&(Me=null,Ae=0,Ns()),l}function mg(){for(;Te!==null;)zm(Te)}function yg(e,t){var r=Oe;Oe|=2;var n=Bm(),a=Mm();Me!==e||Ae!==t?(ss=null,ls=Dt()+500,Ea(e,t)):La=qi(e,t);e:do try{if(Ce!==0&&Te!==null){t=Te;var i=Nt;t:switch(Ce){case 1:Ce=0,Nt=null,sa(e,t,i,1);break;case 2:case 9:if(qf(i)){Ce=0,Nt=null,hh(t);break}t=function(){Ce!==2&&Ce!==9||Me!==e||(Ce=7),or(e)},i.then(t,t);break e;case 3:Ce=7;break e;case 4:Ce=5;break e;case 7:qf(i)?(Ce=0,Nt=null,hh(t)):(Ce=0,Nt=null,sa(e,t,i,7));break;case 5:var l=null;switch(Te.tag){case 26:l=Te.memoizedState;case 5:case 27:var s=Te;if(l?t0(l):s.stateNode.complete){Ce=0,Nt=null;var u=s.sibling;if(u!==null)Te=u;else{var d=s.return;d!==null?(Te=d,Us(d)):Te=null}break t}}Ce=0,Nt=null,sa(e,t,i,5);break;case 6:Ce=0,Nt=null,sa(e,t,i,6);break;case 8:Uc(),Ye=6;break e;default:throw Error(oe(462))}}vg();break}catch(y){Dm(e,y)}while(!0);return Sr=Fn=null,ge.H=n,ge.A=a,Oe=r,Te!==null?0:(Me=null,Ae=0,Ns(),Ye)}function vg(){for(;Te!==null&&!Fy();)zm(Te)}function zm(e){var t=om(e.alternate,e,kr);e.memoizedProps=e.pendingProps,t===null?Us(e):Te=t}function hh(e){var t=e,r=t.alternate;switch(t.tag){case 15:case 0:t=ih(r,t,t.pendingProps,t.type,void 0,Ae);break;case 11:t=ih(r,t,t.pendingProps,t.type.render,t.ref,Ae);break;case 5:_c(t);default:um(r,t),t=Te=up(t,kr),t=om(r,t,kr)}e.memoizedProps=e.pendingProps,t===null?Us(e):Te=t}function sa(e,t,r,n){Sr=Fn=null,_c(t),ha=null,Ri=0;var a=t.return;try{if(ig(e,a,t,r,Ae)){Ye=1,ns(e,qt(r,e.current)),Te=null;return}}catch(i){if(a!==null)throw Te=a,i;Ye=1,ns(e,qt(r,e.current)),Te=null;return}t.flags&32768?(Ne||n===1?e=!0:La||Ae&536870912?e=!1:(Kr=e=!0,(n===2||n===9||n===3||n===6)&&(n=Ut.current,n!==null&&n.tag===13&&(n.flags|=16384))),Um(t,e)):Us(t)}function Us(e){var t=e;do{if(t.flags&32768){Um(t,Kr);return}e=t.return;var r=og(t.alternate,t,kr);if(r!==null){Te=r;return}if(t=t.sibling,t!==null){Te=t;return}Te=t=e}while(t!==null);Ye===0&&(Ye=5)}function Um(e,t){do{var r=ug(e.alternate,e);if(r!==null){r.flags&=32767,Te=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!t&&(e=e.sibling,e!==null)){Te=e;return}Te=e=r}while(e!==null);Ye=6,Te=null}function dh(e,t,r,n,a,i,l,s,u){e.cancelPendingCommit=null;do Ls();while(et!==0);if(Oe&6)throw Error(oe(327));if(t!==null){if(t===e.current)throw Error(oe(177));if(i=t.lanes|t.childLanes,i|=sc,Wy(e,r,i,l,s,u),e===Me&&(Te=Me=null,Ae=0),Sa=t,$r=e,Nr=r,Tu=i,Au=a,Om=n,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,_g(Yl,function(){return Im(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,t.subtreeFlags&13878||n){n=ge.T,ge.T=null,a=Re.p,Re.p=2,l=Oe,Oe|=4;try{cg(e,t,r)}finally{Oe=l,Re.p=a,ge.T=n}}et=1,Lm(),jm(),Hm()}}function Lm(){if(et===1){et=0;var e=$r,t=Sa,r=(t.flags&13878)!==0;if(t.subtreeFlags&13878||r){r=ge.T,ge.T=null;var n=Re.p;Re.p=2;var a=Oe;Oe|=4;try{wm(t,e);var i=Du,l=tp(e.containerInfo),s=i.focusedElem,u=i.selectionRange;if(l!==s&&s&&s.ownerDocument&&ep(s.ownerDocument.documentElement,s)){if(u!==null&&lc(s)){var d=u.start,y=u.end;if(y===void 0&&(y=d),"selectionStart"in s)s.selectionStart=d,s.selectionEnd=Math.min(y,s.value.length);else{var g=s.ownerDocument||document,v=g&&g.defaultView||window;if(v.getSelection){var h=v.getSelection(),_=s.textContent.length,E=Math.min(u.start,_),R=u.end===void 0?E:Math.min(u.end,_);!h.extend&&E>R&&(l=R,R=E,E=l);var m=zf(s,E),f=zf(s,R);if(m&&f&&(h.rangeCount!==1||h.anchorNode!==m.node||h.anchorOffset!==m.offset||h.focusNode!==f.node||h.focusOffset!==f.offset)){var p=g.createRange();p.setStart(m.node,m.offset),h.removeAllRanges(),E>R?(h.addRange(p),h.extend(f.node,f.offset)):(p.setEnd(f.node,f.offset),h.addRange(p))}}}}for(g=[],h=s;h=h.parentNode;)h.nodeType===1&&g.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<g.length;s++){var b=g[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}ys=!!Cu,Du=Cu=null}finally{Oe=a,Re.p=n,ge.T=r}}e.current=t,et=2}}function jm(){if(et===2){et=0;var e=$r,t=Sa,r=(t.flags&8772)!==0;if(t.subtreeFlags&8772||r){r=ge.T,ge.T=null;var n=Re.p;Re.p=2;var a=Oe;Oe|=4;try{mm(e,t.alternate,t)}finally{Oe=a,Re.p=n,ge.T=r}}et=3}}function Hm(){if(et===4||et===3){et=0,Iy();var e=$r,t=Sa,r=Nr,n=Om;t.subtreeFlags&10256||t.flags&10256?et=5:(et=0,Sa=$r=null,Fm(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(Jr=null),$u(r),t=t.stateNode,kt&&typeof kt.onCommitFiberRoot=="function")try{kt.onCommitFiberRoot(Ii,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=ge.T,a=Re.p,Re.p=2,ge.T=null;try{for(var i=e.onRecoverableError,l=0;l<n.length;l++){var s=n[l];i(s.value,{componentStack:s.stack})}}finally{ge.T=t,Re.p=a}}Nr&3&&Ls(),or(e),a=e.pendingLanes,r&261930&&a&42?e===Nu?bi++:(bi=0,Nu=e):bi=0,Zi(0)}}function Fm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Yi(t)))}function Ls(){return Lm(),jm(),Hm(),Im()}function Im(){if(et!==5)return!1;var e=$r,t=Tu;Tu=0;var r=$u(Nr),n=ge.T,a=Re.p;try{Re.p=32>r?32:r,ge.T=null,r=Au,Au=null;var i=$r,l=Nr;if(et=0,Sa=$r=null,Nr=0,Oe&6)throw Error(oe(331));var s=Oe;if(Oe|=4,Tm(i.current),xm(i,i.current,l,r),Oe=s,Zi(0,!1),kt&&typeof kt.onPostCommitFiberRoot=="function")try{kt.onPostCommitFiberRoot(Ii,i)}catch{}return!0}finally{Re.p=a,ge.T=n,Fm(e,t)}}function ph(e,t,r){t=qt(r,t),t=wu(e.stateNode,t,2),e=Qr(e,t,2),e!==null&&(Gi(e,2),or(e))}function De(e,t,r){if(e.tag===3)ph(e,e,r);else for(;t!==null;){if(t.tag===3){ph(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Jr===null||!Jr.has(n))){e=qt(r,e),r=rm(2),n=Qr(t,r,2),n!==null&&(nm(r,n,t,e),Gi(n,2),or(n));break}}t=t.return}}function xo(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new dg;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(r)||(Mc=!0,a.add(r),e=gg.bind(null,e,t,r),t.then(e,e))}function gg(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,Me===e&&(Ae&r)===r&&(Ye===4||Ye===3&&(Ae&62914560)===Ae&&300>Dt()-Ms?!(Oe&2)&&Ea(e,0):zc|=r,xa===Ae&&(xa=0)),or(e)}function qm(e,t){t===0&&(t=Bd()),e=Hn(e,t),e!==null&&(Gi(e,t),or(e))}function bg(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),qm(e,r)}function wg(e,t){var r=0;switch(e.tag){case 31:case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(oe(314))}n!==null&&n.delete(t),qm(e,r)}function _g(e,t){return Qu(e,t)}var us=null,Pn=null,Ou=!1,cs=!1,So=!1,Xr=0;function or(e){e!==Pn&&e.next===null&&(Pn===null?us=Pn=e:Pn=Pn.next=e),cs=!0,Ou||(Ou=!0,Sg())}function Zi(e,t){if(!So&&cs){So=!0;do for(var r=!1,n=us;n!==null;){if(e!==0){var a=n.pendingLanes;if(a===0)var i=0;else{var l=n.suspendedLanes,s=n.pingedLanes;i=(1<<31-Bt(42|e)+1)-1,i&=a&~(l&~s),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(r=!0,mh(n,i))}else i=Ae,i=Ss(n,n===Me?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),!(i&3)||qi(n,i)||(r=!0,mh(n,i));n=n.next}while(r);So=!1}}function xg(){Gm()}function Gm(){cs=Ou=!1;var e=0;Xr!==0&&Bg()&&(e=Xr);for(var t=Dt(),r=null,n=us;n!==null;){var a=n.next,i=Vm(n,t);i===0?(n.next=null,r===null?us=a:r.next=a,a===null&&(Pn=r)):(r=n,(e!==0||i&3)&&(cs=!0)),n=a}et!==0&&et!==5||Zi(e),Xr!==0&&(Xr=0)}function Vm(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var l=31-Bt(i),s=1<<l,u=a[l];u===-1?(!(s&r)||s&n)&&(a[l]=Zy(s,t)):u<=t&&(e.expiredLanes|=s),i&=~s}if(t=Me,r=Ae,r=Ss(e,e===t?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,r===0||e===t&&(Ce===2||Ce===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&Ws(n),e.callbackNode=null,e.callbackPriority=0;if(!(r&3)||qi(e,r)){if(t=r&-r,t===e.callbackPriority)return t;switch(n!==null&&Ws(n),$u(r)){case 2:case 8:r=Dd;break;case 32:r=Yl;break;case 268435456:r=kd;break;default:r=Yl}return n=Km.bind(null,e),r=Qu(r,n),e.callbackPriority=t,e.callbackNode=r,t}return n!==null&&n!==null&&Ws(n),e.callbackPriority=2,e.callbackNode=null,2}function Km(e,t){if(et!==0&&et!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(Ls()&&e.callbackNode!==r)return null;var n=Ae;return n=Ss(e,e===Me?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(Cm(e,n,t),Vm(e,Dt()),e.callbackNode!=null&&e.callbackNode===r?Km.bind(null,e):null)}function mh(e,t){if(Ls())return null;Cm(e,t,!0)}function Sg(){zg(function(){Oe&6?Qu(Cd,xg):Gm()})}function Lc(){if(Xr===0){var e=ba;e===0&&(e=ol,ol<<=1,!(ol&261888)&&(ol=256)),Xr=e}return Xr}function yh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Rl(""+e)}function vh(e,t){var r=t.ownerDocument.createElement("input");return r.name=t.name,r.value=t.value,e.id&&r.setAttribute("form",e.id),t.parentNode.insertBefore(r,t),e=new FormData(e),r.parentNode.removeChild(r),e}function Eg(e,t,r,n,a){if(t==="submit"&&r&&r.stateNode===a){var i=yh((a[Tt]||null).action),l=n.submitter;l&&(t=(t=l[Tt]||null)?yh(t.formAction):l.getAttribute("formAction"),t!==null&&(i=t,l=null));var s=new Es("action","action",null,n,a);e.push({event:s,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Xr!==0){var u=l?vh(a,l):new FormData(a);gu(r,{pending:!0,data:u,method:a.method,action:i},null,u)}}else typeof i=="function"&&(s.preventDefault(),u=l?vh(a,l):new FormData(a),gu(r,{pending:!0,data:u,method:a.method,action:i},i,u))},currentTarget:a}]})}}for(var Eo=0;Eo<lu.length;Eo++){var To=lu[Eo],Tg=To.toLowerCase(),Ag=To[0].toUpperCase()+To.slice(1);Qt(Tg,"on"+Ag)}Qt(np,"onAnimationEnd");Qt(ap,"onAnimationIteration");Qt(ip,"onAnimationStart");Qt("dblclick","onDoubleClick");Qt("focusin","onFocus");Qt("focusout","onBlur");Qt(qv,"onTransitionRun");Qt(Gv,"onTransitionStart");Qt(Vv,"onTransitionCancel");Qt(lp,"onTransitionEnd");va("onMouseEnter",["mouseout","mouseover"]);va("onMouseLeave",["mouseout","mouseover"]);va("onPointerEnter",["pointerout","pointerover"]);va("onPointerLeave",["pointerout","pointerover"]);Un("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Un("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Un("onBeforeInput",["compositionend","keypress","textInput","paste"]);Un("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Un("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Un("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ki="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(" "),Ng=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ki));function Ym(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],a=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var l=n.length-1;0<=l;l--){var s=n[l],u=s.instance,d=s.currentTarget;if(s=s.listener,u!==i&&a.isPropagationStopped())break e;i=s,a.currentTarget=d;try{i(a)}catch(y){Pl(y)}a.currentTarget=null,i=u}else for(l=0;l<n.length;l++){if(s=n[l],u=s.instance,d=s.currentTarget,s=s.listener,u!==i&&a.isPropagationStopped())break e;i=s,a.currentTarget=d;try{i(a)}catch(y){Pl(y)}a.currentTarget=null,i=u}}}}function Ee(e,t){var r=t[Jo];r===void 0&&(r=t[Jo]=new Set);var n=e+"__bubble";r.has(n)||(Xm(t,e,2,!1),r.add(n))}function Ao(e,t,r){var n=0;t&&(n|=4),Xm(r,e,n,t)}var gl="_reactListening"+Math.random().toString(36).slice(2);function jc(e){if(!e[gl]){e[gl]=!0,jd.forEach(function(r){r!=="selectionchange"&&(Ng.has(r)||Ao(r,!1,e),Ao(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[gl]||(t[gl]=!0,Ao("selectionchange",!1,t))}}function Xm(e,t,r,n){switch(l0(t)){case 2:var a=t1;break;case 8:a=r1;break;default:a=qc}r=a.bind(null,t,r,e),a=void 0,!nu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),n?a!==void 0?e.addEventListener(t,r,{capture:!0,passive:a}):e.addEventListener(t,r,!0):a!==void 0?e.addEventListener(t,r,{passive:a}):e.addEventListener(t,r,!1)}function No(e,t,r,n,a){var i=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var l=n.tag;if(l===3||l===4){var s=n.stateNode.containerInfo;if(s===a)break;if(l===4)for(l=n.return;l!==null;){var u=l.tag;if((u===3||u===4)&&l.stateNode.containerInfo===a)return;l=l.return}for(;s!==null;){if(l=Jn(s),l===null)return;if(u=l.tag,u===5||u===6||u===26||u===27){n=i=l;continue e}s=s.parentNode}}n=n.return}Yd(function(){var d=i,y=rc(r),g=[];e:{var v=sp.get(e);if(v!==void 0){var h=Es,_=e;switch(e){case"keypress":if(Dl(r)===0)break e;case"keydown":case"keyup":h=wv;break;case"focusin":_="focus",h=to;break;case"focusout":_="blur",h=to;break;case"beforeblur":case"afterblur":h=to;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=Tf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=ov;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=Sv;break;case np:case ap:case ip:h=fv;break;case lp:h=Tv;break;case"scroll":case"scrollend":h=lv;break;case"wheel":h=Nv;break;case"copy":case"cut":case"paste":h=dv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Nf;break;case"toggle":case"beforetoggle":h=Rv}var E=(t&4)!==0,R=!E&&(e==="scroll"||e==="scrollend"),m=E?v!==null?v+"Capture":null:v;E=[];for(var f=d,p;f!==null;){var b=f;if(p=b.stateNode,b=b.tag,b!==5&&b!==26&&b!==27||p===null||m===null||(b=Ei(f,m),b!=null&&E.push(Bi(f,b,p))),R)break;f=f.return}0<E.length&&(v=new h(v,_,null,r,y),g.push({event:v,listeners:E}))}}if(!(t&7)){e:{if(v=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",v&&r!==ru&&(_=r.relatedTarget||r.fromElement)&&(Jn(_)||_[Ba]))break e;if((h||v)&&(v=y.window===y?y:(v=y.ownerDocument)?v.defaultView||v.parentWindow:window,h?(_=r.relatedTarget||r.toElement,h=d,_=_?Jn(_):null,_!==null&&(R=Fi(_),E=_.tag,_!==R||E!==5&&E!==27&&E!==6)&&(_=null)):(h=null,_=d),h!==_)){if(E=Tf,b="onMouseLeave",m="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(E=Nf,b="onPointerLeave",m="onPointerEnter",f="pointer"),R=h==null?v:ni(h),p=_==null?v:ni(_),v=new E(b,f+"leave",h,r,y),v.target=R,v.relatedTarget=p,b=null,Jn(y)===d&&(E=new E(m,f+"enter",_,r,y),E.target=p,E.relatedTarget=R,b=E),R=b,h&&_)t:{for(E=Og,m=h,f=_,p=0,b=m;b;b=E(b))p++;b=0;for(var A=f;A;A=E(A))b++;for(;0<p-b;)m=E(m),p--;for(;0<b-p;)f=E(f),b--;for(;p--;){if(m===f||f!==null&&m===f.alternate){E=m;break t}m=E(m),f=E(f)}E=null}else E=null;h!==null&&gh(g,v,h,E,!1),_!==null&&R!==null&&gh(g,R,_,E,!0)}}e:{if(v=d?ni(d):window,h=v.nodeName&&v.nodeName.toLowerCase(),h==="select"||h==="input"&&v.type==="file")var S=Df;else if(Cf(v))if(Jd)S=Hv;else{S=Lv;var B=Uv}else h=v.nodeName,!h||h.toLowerCase()!=="input"||v.type!=="checkbox"&&v.type!=="radio"?d&&tc(d.elementType)&&(S=Df):S=jv;if(S&&(S=S(e,d))){Qd(g,S,r,y);break e}B&&B(e,v,d),e==="focusout"&&d&&v.type==="number"&&d.memoizedProps.value!=null&&tu(v,"number",v.value)}switch(B=d?ni(d):window,e){case"focusin":(Cf(B)||B.contentEditable==="true")&&(ta=B,au=d,ci=null);break;case"focusout":ci=au=ta=null;break;case"mousedown":iu=!0;break;case"contextmenu":case"mouseup":case"dragend":iu=!1,Uf(g,r,y);break;case"selectionchange":if(Iv)break;case"keydown":case"keyup":Uf(g,r,y)}var z;if(ic)e:{switch(e){case"compositionstart":var O="onCompositionStart";break e;case"compositionend":O="onCompositionEnd";break e;case"compositionupdate":O="onCompositionUpdate";break e}O=void 0}else ea?Zd(e,r)&&(O="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(O="onCompositionStart");O&&(Pd&&r.locale!=="ko"&&(ea||O!=="onCompositionStart"?O==="onCompositionEnd"&&ea&&(z=Xd()):(Vr=y,nc="value"in Vr?Vr.value:Vr.textContent,ea=!0)),B=fs(d,O),0<B.length&&(O=new Af(O,e,null,r,y),g.push({event:O,listeners:B}),z?O.data=z:(z=Wd(r),z!==null&&(O.data=z)))),(z=Dv?kv(e,r):Bv(e,r))&&(O=fs(d,"onBeforeInput"),0<O.length&&(B=new Af("onBeforeInput","beforeinput",null,r,y),g.push({event:B,listeners:O}),B.data=z)),Eg(g,e,d,r,y)}Ym(g,t)})}function Bi(e,t,r){return{instance:e,listener:t,currentTarget:r}}function fs(e,t){for(var r=t+"Capture",n=[];e!==null;){var a=e,i=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||i===null||(a=Ei(e,r),a!=null&&n.unshift(Bi(e,a,i)),a=Ei(e,t),a!=null&&n.push(Bi(e,a,i))),e.tag===3)return n;e=e.return}return[]}function Og(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function gh(e,t,r,n,a){for(var i=t._reactName,l=[];r!==null&&r!==n;){var s=r,u=s.alternate,d=s.stateNode;if(s=s.tag,u!==null&&u===n)break;s!==5&&s!==26&&s!==27||d===null||(u=d,a?(d=Ei(r,i),d!=null&&l.unshift(Bi(r,d,u))):a||(d=Ei(r,i),d!=null&&l.push(Bi(r,d,u)))),r=r.return}l.length!==0&&e.push({event:t,listeners:l})}var Rg=/\r\n?/g,Cg=/\u0000|\uFFFD/g;function bh(e){return(typeof e=="string"?e:""+e).replace(Rg,`
|
||
`).replace(Cg,"")}function Pm(e,t){return t=bh(t),bh(e)===t}function ke(e,t,r,n,a,i){switch(r){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||ga(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&ga(e,""+n);break;case"className":fl(e,"class",n);break;case"tabIndex":fl(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":fl(e,r,n);break;case"style":Kd(e,n,i);break;case"data":if(t!=="object"){fl(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||r!=="href")){e.removeAttribute(r);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(r);break}n=Rl(""+n),e.setAttribute(r,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(r,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(r==="formAction"?(t!=="input"&&ke(e,t,"name",a.name,a,null),ke(e,t,"formEncType",a.formEncType,a,null),ke(e,t,"formMethod",a.formMethod,a,null),ke(e,t,"formTarget",a.formTarget,a,null)):(ke(e,t,"encType",a.encType,a,null),ke(e,t,"method",a.method,a,null),ke(e,t,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(r);break}n=Rl(""+n),e.setAttribute(r,n);break;case"onClick":n!=null&&(e.onclick=xr);break;case"onScroll":n!=null&&Ee("scroll",e);break;case"onScrollEnd":n!=null&&Ee("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(oe(61));if(r=n.__html,r!=null){if(a.children!=null)throw Error(oe(60));e.innerHTML=r}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}r=Rl(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(r,""+n):e.removeAttribute(r);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":n===!0?e.setAttribute(r,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(r,n):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(r,n):e.removeAttribute(r);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(r):e.setAttribute(r,n);break;case"popover":Ee("beforetoggle",e),Ee("toggle",e),Ol(e,"popover",n);break;case"xlinkActuate":fr(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":fr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":fr(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":fr(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":fr(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":fr(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":fr(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":fr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":fr(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Ol(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=av.get(r)||r,Ol(e,r,n))}}function Ru(e,t,r,n,a,i){switch(r){case"style":Kd(e,n,i);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(oe(61));if(r=n.__html,r!=null){if(a.children!=null)throw Error(oe(60));e.innerHTML=r}}break;case"children":typeof n=="string"?ga(e,n):(typeof n=="number"||typeof n=="bigint")&&ga(e,""+n);break;case"onScroll":n!=null&&Ee("scroll",e);break;case"onScrollEnd":n!=null&&Ee("scrollend",e);break;case"onClick":n!=null&&(e.onclick=xr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Hd.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(a=r.endsWith("Capture"),t=r.slice(2,a?r.length-7:void 0),i=e[Tt]||null,i=i!=null?i[r]:null,typeof i=="function"&&e.removeEventListener(t,i,a),typeof n=="function")){typeof i!="function"&&i!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(t,n,a);break e}r in e?e[r]=n:n===!0?e.setAttribute(r,""):Ol(e,r,n)}}}function ht(e,t,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ee("error",e),Ee("load",e);var n=!1,a=!1,i;for(i in r)if(r.hasOwnProperty(i)){var l=r[i];if(l!=null)switch(i){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(oe(137,t));default:ke(e,t,i,l,r,null)}}a&&ke(e,t,"srcSet",r.srcSet,r,null),n&&ke(e,t,"src",r.src,r,null);return;case"input":Ee("invalid",e);var s=i=l=a=null,u=null,d=null;for(n in r)if(r.hasOwnProperty(n)){var y=r[n];if(y!=null)switch(n){case"name":a=y;break;case"type":l=y;break;case"checked":u=y;break;case"defaultChecked":d=y;break;case"value":i=y;break;case"defaultValue":s=y;break;case"children":case"dangerouslySetInnerHTML":if(y!=null)throw Error(oe(137,t));break;default:ke(e,t,n,y,r,null)}}qd(e,i,s,u,d,l,a,!1);return;case"select":Ee("invalid",e),n=l=i=null;for(a in r)if(r.hasOwnProperty(a)&&(s=r[a],s!=null))switch(a){case"value":i=s;break;case"defaultValue":l=s;break;case"multiple":n=s;default:ke(e,t,a,s,r,null)}t=i,r=l,e.multiple=!!n,t!=null?ua(e,!!n,t,!1):r!=null&&ua(e,!!n,r,!0);return;case"textarea":Ee("invalid",e),i=a=n=null;for(l in r)if(r.hasOwnProperty(l)&&(s=r[l],s!=null))switch(l){case"value":n=s;break;case"defaultValue":a=s;break;case"children":i=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(oe(91));break;default:ke(e,t,l,s,r,null)}Vd(e,n,a,i);return;case"option":for(u in r)if(r.hasOwnProperty(u)&&(n=r[u],n!=null))switch(u){case"selected":e.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:ke(e,t,u,n,r,null)}return;case"dialog":Ee("beforetoggle",e),Ee("toggle",e),Ee("cancel",e),Ee("close",e);break;case"iframe":case"object":Ee("load",e);break;case"video":case"audio":for(n=0;n<ki.length;n++)Ee(ki[n],e);break;case"image":Ee("error",e),Ee("load",e);break;case"details":Ee("toggle",e);break;case"embed":case"source":case"link":Ee("error",e),Ee("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(d in r)if(r.hasOwnProperty(d)&&(n=r[d],n!=null))switch(d){case"children":case"dangerouslySetInnerHTML":throw Error(oe(137,t));default:ke(e,t,d,n,r,null)}return;default:if(tc(t)){for(y in r)r.hasOwnProperty(y)&&(n=r[y],n!==void 0&&Ru(e,t,y,n,r,void 0));return}}for(s in r)r.hasOwnProperty(s)&&(n=r[s],n!=null&&ke(e,t,s,n,r,null))}function Dg(e,t,r,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,l=null,s=null,u=null,d=null,y=null;for(h in r){var g=r[h];if(r.hasOwnProperty(h)&&g!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":u=g;default:n.hasOwnProperty(h)||ke(e,t,h,null,n,g)}}for(var v in n){var h=n[v];if(g=r[v],n.hasOwnProperty(v)&&(h!=null||g!=null))switch(v){case"type":i=h;break;case"name":a=h;break;case"checked":d=h;break;case"defaultChecked":y=h;break;case"value":l=h;break;case"defaultValue":s=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(oe(137,t));break;default:h!==g&&ke(e,t,v,h,n,g)}}eu(e,l,s,u,d,y,i,a);return;case"select":h=l=s=v=null;for(i in r)if(u=r[i],r.hasOwnProperty(i)&&u!=null)switch(i){case"value":break;case"multiple":h=u;default:n.hasOwnProperty(i)||ke(e,t,i,null,n,u)}for(a in n)if(i=n[a],u=r[a],n.hasOwnProperty(a)&&(i!=null||u!=null))switch(a){case"value":v=i;break;case"defaultValue":s=i;break;case"multiple":l=i;default:i!==u&&ke(e,t,a,i,n,u)}t=s,r=l,n=h,v!=null?ua(e,!!r,v,!1):!!n!=!!r&&(t!=null?ua(e,!!r,t,!0):ua(e,!!r,r?[]:"",!1));return;case"textarea":h=v=null;for(s in r)if(a=r[s],r.hasOwnProperty(s)&&a!=null&&!n.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:ke(e,t,s,null,n,a)}for(l in n)if(a=n[l],i=r[l],n.hasOwnProperty(l)&&(a!=null||i!=null))switch(l){case"value":v=a;break;case"defaultValue":h=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(oe(91));break;default:a!==i&&ke(e,t,l,a,n,i)}Gd(e,v,h);return;case"option":for(var _ in r)if(v=r[_],r.hasOwnProperty(_)&&v!=null&&!n.hasOwnProperty(_))switch(_){case"selected":e.selected=!1;break;default:ke(e,t,_,null,n,v)}for(u in n)if(v=n[u],h=r[u],n.hasOwnProperty(u)&&v!==h&&(v!=null||h!=null))switch(u){case"selected":e.selected=v&&typeof v!="function"&&typeof v!="symbol";break;default:ke(e,t,u,v,n,h)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var E in r)v=r[E],r.hasOwnProperty(E)&&v!=null&&!n.hasOwnProperty(E)&&ke(e,t,E,null,n,v);for(d in n)if(v=n[d],h=r[d],n.hasOwnProperty(d)&&v!==h&&(v!=null||h!=null))switch(d){case"children":case"dangerouslySetInnerHTML":if(v!=null)throw Error(oe(137,t));break;default:ke(e,t,d,v,n,h)}return;default:if(tc(t)){for(var R in r)v=r[R],r.hasOwnProperty(R)&&v!==void 0&&!n.hasOwnProperty(R)&&Ru(e,t,R,void 0,n,v);for(y in n)v=n[y],h=r[y],!n.hasOwnProperty(y)||v===h||v===void 0&&h===void 0||Ru(e,t,y,v,n,h);return}}for(var m in r)v=r[m],r.hasOwnProperty(m)&&v!=null&&!n.hasOwnProperty(m)&&ke(e,t,m,null,n,v);for(g in n)v=n[g],h=r[g],!n.hasOwnProperty(g)||v===h||v==null&&h==null||ke(e,t,g,v,n,h)}function wh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function kg(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,r=performance.getEntriesByType("resource"),n=0;n<r.length;n++){var a=r[n],i=a.transferSize,l=a.initiatorType,s=a.duration;if(i&&s&&wh(l)){for(l=0,s=a.responseEnd,n+=1;n<r.length;n++){var u=r[n],d=u.startTime;if(d>s)break;var y=u.transferSize,g=u.initiatorType;y&&wh(g)&&(u=u.responseEnd,l+=y*(u<s?1:(s-d)/(u-d)))}if(--n,t+=8*(i+l)/(a.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Cu=null,Du=null;function hs(e){return e.nodeType===9?e:e.ownerDocument}function _h(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Zm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function ku(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Oo=null;function Bg(){var e=window.event;return e&&e.type==="popstate"?e===Oo?!1:(Oo=e,!0):(Oo=null,!1)}var Wm=typeof setTimeout=="function"?setTimeout:void 0,Mg=typeof clearTimeout=="function"?clearTimeout:void 0,xh=typeof Promise=="function"?Promise:void 0,zg=typeof queueMicrotask=="function"?queueMicrotask:typeof xh<"u"?function(e){return xh.resolve(null).then(e).catch(Ug)}:Wm;function Ug(e){setTimeout(function(){throw e})}function un(e){return e==="head"}function Sh(e,t){var r=t,n=0;do{var a=r.nextSibling;if(e.removeChild(r),a&&a.nodeType===8)if(r=a.data,r==="/$"||r==="/&"){if(n===0){e.removeChild(a),Aa(t);return}n--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")n++;else if(r==="html")wi(e.ownerDocument.documentElement);else if(r==="head"){r=e.ownerDocument.head,wi(r);for(var i=r.firstChild;i;){var l=i.nextSibling,s=i.nodeName;i[Vi]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&i.rel.toLowerCase()==="stylesheet"||r.removeChild(i),i=l}}else r==="body"&&wi(e.ownerDocument.body);r=a}while(r);Aa(t)}function Eh(e,t){var r=e;e=0;do{var n=r.nextSibling;if(r.nodeType===1?t?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(t?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),n&&n.nodeType===8)if(r=n.data,r==="/$"){if(e===0)break;e--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||e++;r=n}while(r)}function Bu(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var r=t;switch(t=t.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":Bu(r),ec(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function Lg(e,t,r,n){for(;e.nodeType===1;){var a=r;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[Vi])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Kt(e.nextSibling),e===null)break}return null}function jg(e,t,r){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=Kt(e.nextSibling),e===null))return null;return e}function Qm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Kt(e.nextSibling),e===null))return null;return e}function Mu(e){return e.data==="$?"||e.data==="$~"}function zu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Hg(e,t){var r=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||r.readyState!=="loading")t();else{var n=function(){t(),r.removeEventListener("DOMContentLoaded",n)};r.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function Kt(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==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Uu=null;function Th(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"||r==="/&"){if(t===0)return Kt(e.nextSibling);t--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||t++}e=e.nextSibling}return null}function Ah(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(t===0)return e;t--}else r!=="/$"&&r!=="/&"||t++}e=e.previousSibling}return null}function Jm(e,t,r){switch(t=hs(r),e){case"html":if(e=t.documentElement,!e)throw Error(oe(452));return e;case"head":if(e=t.head,!e)throw Error(oe(453));return e;case"body":if(e=t.body,!e)throw Error(oe(454));return e;default:throw Error(oe(451))}}function wi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ec(e)}var Yt=new Map,Nh=new Set;function ds(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Br=Re.d;Re.d={f:Fg,r:Ig,D:qg,C:Gg,L:Vg,m:Kg,X:Xg,S:Yg,M:Pg};function Fg(){var e=Br.f(),t=zs();return e||t}function Ig(e){var t=Ma(e);t!==null&&t.tag===5&&t.type==="form"?Kp(t):Br.r(e)}var ja=typeof document>"u"?null:document;function $m(e,t,r){var n=ja;if(n&&typeof t=="string"&&t){var a=It(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof r=="string"&&(a+='[crossorigin="'+r+'"]'),Nh.has(a)||(Nh.add(a),e={rel:e,crossOrigin:r,href:t},n.querySelector(a)===null&&(t=n.createElement("link"),ht(t,"link",e),at(t),n.head.appendChild(t)))}}function qg(e){Br.D(e),$m("dns-prefetch",e,null)}function Gg(e,t){Br.C(e,t),$m("preconnect",e,t)}function Vg(e,t,r){Br.L(e,t,r);var n=ja;if(n&&e&&t){var a='link[rel="preload"][as="'+It(t)+'"]';t==="image"&&r&&r.imageSrcSet?(a+='[imagesrcset="'+It(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(a+='[imagesizes="'+It(r.imageSizes)+'"]')):a+='[href="'+It(e)+'"]';var i=a;switch(t){case"style":i=Ta(e);break;case"script":i=Ha(e)}Yt.has(i)||(e=Fe({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),Yt.set(i,e),n.querySelector(a)!==null||t==="style"&&n.querySelector(Wi(i))||t==="script"&&n.querySelector(Qi(i))||(t=n.createElement("link"),ht(t,"link",e),at(t),n.head.appendChild(t)))}}function Kg(e,t){Br.m(e,t);var r=ja;if(r&&e){var n=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+It(n)+'"][href="'+It(e)+'"]',i=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Ha(e)}if(!Yt.has(i)&&(e=Fe({rel:"modulepreload",href:e},t),Yt.set(i,e),r.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(Qi(i)))return}n=r.createElement("link"),ht(n,"link",e),at(n),r.head.appendChild(n)}}}function Yg(e,t,r){Br.S(e,t,r);var n=ja;if(n&&e){var a=oa(n).hoistableStyles,i=Ta(e);t=t||"default";var l=a.get(i);if(!l){var s={loading:0,preload:null};if(l=n.querySelector(Wi(i)))s.loading=5;else{e=Fe({rel:"stylesheet",href:e,"data-precedence":t},r),(r=Yt.get(i))&&Hc(e,r);var u=l=n.createElement("link");at(u),ht(u,"link",e),u._p=new Promise(function(d,y){u.onload=d,u.onerror=y}),u.addEventListener("load",function(){s.loading|=1}),u.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Hl(l,t,n)}l={type:"stylesheet",instance:l,count:1,state:s},a.set(i,l)}}}function Xg(e,t){Br.X(e,t);var r=ja;if(r&&e){var n=oa(r).hoistableScripts,a=Ha(e),i=n.get(a);i||(i=r.querySelector(Qi(a)),i||(e=Fe({src:e,async:!0},t),(t=Yt.get(a))&&Fc(e,t),i=r.createElement("script"),at(i),ht(i,"link",e),r.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function Pg(e,t){Br.M(e,t);var r=ja;if(r&&e){var n=oa(r).hoistableScripts,a=Ha(e),i=n.get(a);i||(i=r.querySelector(Qi(a)),i||(e=Fe({src:e,async:!0,type:"module"},t),(t=Yt.get(a))&&Fc(e,t),i=r.createElement("script"),at(i),ht(i,"link",e),r.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function Oh(e,t,r,n){var a=(a=Pr.current)?ds(a):null;if(!a)throw Error(oe(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(t=Ta(r.href),r=oa(a).hoistableStyles,n=r.get(t),n||(n={type:"style",instance:null,count:0,state:null},r.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=Ta(r.href);var i=oa(a).hoistableStyles,l=i.get(e);if(l||(a=a.ownerDocument||a,l={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,l),(i=a.querySelector(Wi(e)))&&!i._p&&(l.instance=i,l.state.loading=5),Yt.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},Yt.set(e,r),i||Zg(a,e,r,l.state))),t&&n===null)throw Error(oe(528,""));return l}if(t&&n!==null)throw Error(oe(529,""));return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ha(r),r=oa(a).hoistableScripts,n=r.get(t),n||(n={type:"script",instance:null,count:0,state:null},r.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(oe(444,e))}}function Ta(e){return'href="'+It(e)+'"'}function Wi(e){return'link[rel="stylesheet"]['+e+"]"}function e0(e){return Fe({},e,{"data-precedence":e.precedence,precedence:null})}function Zg(e,t,r,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),ht(t,"link",r),at(t),e.head.appendChild(t))}function Ha(e){return'[src="'+It(e)+'"]'}function Qi(e){return"script[async]"+e}function Rh(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+It(r.href)+'"]');if(n)return t.instance=n,at(n),n;var a=Fe({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),at(n),ht(n,"style",a),Hl(n,r.precedence,e),t.instance=n;case"stylesheet":a=Ta(r.href);var i=e.querySelector(Wi(a));if(i)return t.state.loading|=4,t.instance=i,at(i),i;n=e0(r),(a=Yt.get(a))&&Hc(n,a),i=(e.ownerDocument||e).createElement("link"),at(i);var l=i;return l._p=new Promise(function(s,u){l.onload=s,l.onerror=u}),ht(i,"link",n),t.state.loading|=4,Hl(i,r.precedence,e),t.instance=i;case"script":return i=Ha(r.src),(a=e.querySelector(Qi(i)))?(t.instance=a,at(a),a):(n=r,(a=Yt.get(i))&&(n=Fe({},r),Fc(n,a)),e=e.ownerDocument||e,a=e.createElement("script"),at(a),ht(a,"link",n),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(oe(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(n=t.instance,t.state.loading|=4,Hl(n,r.precedence,e));return t.instance}function Hl(e,t,r){for(var n=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,i=a,l=0;l<n.length;l++){var s=n[l];if(s.dataset.precedence===t)i=s;else if(i!==a)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=r.nodeType===9?r.head:r,t.insertBefore(e,t.firstChild))}function Hc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Fc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Fl=null;function Ch(e,t,r){if(Fl===null){var n=new Map,a=Fl=new Map;a.set(r,n)}else a=Fl,n=a.get(r),n||(n=new Map,a.set(r,n));if(n.has(e))return n;for(n.set(e,null),r=r.getElementsByTagName(e),a=0;a<r.length;a++){var i=r[a];if(!(i[Vi]||i[ot]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var l=i.getAttribute(t)||"";l=e+l;var s=n.get(l);s?s.push(i):n.set(l,[i])}}return n}function Dh(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function Wg(e,t,r){if(r===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function t0(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function Qg(e,t,r,n){if(r.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(r.state.loading&4)){if(r.instance===null){var a=Ta(n.href),i=t.querySelector(Wi(a));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ps.bind(e),t.then(e,e)),r.state.loading|=4,r.instance=i,at(i);return}i=t.ownerDocument||t,n=e0(n),(a=Yt.get(a))&&Hc(n,a),i=i.createElement("link"),at(i);var l=i;l._p=new Promise(function(s,u){l.onload=s,l.onerror=u}),ht(i,"link",n),r.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,t),(t=r.state.preload)&&!(r.state.loading&3)&&(e.count++,r=ps.bind(e),t.addEventListener("load",r),t.addEventListener("error",r))}}var Ro=0;function Jg(e,t){return e.stylesheets&&e.count===0&&Il(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var n=setTimeout(function(){if(e.stylesheets&&Il(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Ro===0&&(Ro=62500*kg());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Il(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Ro?50:800)+t);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function ps(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Il(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ms=null;function Il(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ms=new Map,t.forEach($g,e),ms=null,ps.call(e))}function $g(e,t){if(!(t.state.loading&4)){var r=ms.get(e);if(r)var n=r.get(null);else{r=new Map,ms.set(e,r);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var l=a[i];(l.nodeName==="LINK"||l.getAttribute("media")!=="not all")&&(r.set(l.dataset.precedence,l),n=l)}n&&r.set(null,n)}a=t.instance,l=a.getAttribute("data-precedence"),i=r.get(l)||n,i===n&&r.set(null,a),r.set(l,a),this.count++,n=ps.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),i?i.parentNode.insertBefore(a,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var Mi={$$typeof:_r,Provider:null,Consumer:null,_currentValue:Sn,_currentValue2:Sn,_threadCount:0};function e1(e,t,r,n,a,i,l,s,u){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Qs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qs(0),this.hiddenUpdates=Qs(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=l,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=u,this.incompleteTransitions=new Map}function r0(e,t,r,n,a,i,l,s,u,d,y,g){return e=new e1(e,t,r,l,u,d,y,g,s),t=1,i===!0&&(t|=24),i=Rt(3,null,null,t),e.current=i,i.stateNode=e,t=hc(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:n,isDehydrated:r,cache:t},mc(i),e}function n0(e){return e?(e=aa,e):aa}function a0(e,t,r,n,a,i){a=n0(a),n.context===null?n.context=a:n.pendingContext=a,n=Wr(t),n.payload={element:r},i=i===void 0?null:i,i!==null&&(n.callback=i),r=Qr(e,n,t),r!==null&&(Et(r,e,t),hi(r,e,t))}function kh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Ic(e,t){kh(e,t),(e=e.alternate)&&kh(e,t)}function i0(e){if(e.tag===13||e.tag===31){var t=Hn(e,67108864);t!==null&&Et(t,e,67108864),Ic(e,67108864)}}function Bh(e){if(e.tag===13||e.tag===31){var t=Mt();t=Ju(t);var r=Hn(e,t);r!==null&&Et(r,e,t),Ic(e,t)}}var ys=!0;function t1(e,t,r,n){var a=ge.T;ge.T=null;var i=Re.p;try{Re.p=2,qc(e,t,r,n)}finally{Re.p=i,ge.T=a}}function r1(e,t,r,n){var a=ge.T;ge.T=null;var i=Re.p;try{Re.p=8,qc(e,t,r,n)}finally{Re.p=i,ge.T=a}}function qc(e,t,r,n){if(ys){var a=Lu(n);if(a===null)No(e,t,n,vs,r),Mh(e,n);else if(a1(a,e,t,r,n))n.stopPropagation();else if(Mh(e,n),t&4&&-1<n1.indexOf(e)){for(;a!==null;){var i=Ma(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var l=bn(i.pendingLanes);if(l!==0){var s=i;for(s.pendingLanes|=2,s.entangledLanes|=2;l;){var u=1<<31-Bt(l);s.entanglements[1]|=u,l&=~u}or(i),!(Oe&6)&&(ls=Dt()+500,Zi(0))}}break;case 31:case 13:s=Hn(i,2),s!==null&&Et(s,i,2),zs(),Ic(i,2)}if(i=Lu(n),i===null&&No(e,t,n,vs,r),i===a)break;a=i}a!==null&&n.stopPropagation()}else No(e,t,n,null,r)}}function Lu(e){return e=rc(e),Gc(e)}var vs=null;function Gc(e){if(vs=null,e=Jn(e),e!==null){var t=Fi(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=Td(t),e!==null)return e;e=null}else if(r===31){if(e=Ad(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return vs=e,null}function l0(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(qy()){case Cd:return 2;case Dd:return 8;case Yl:case Gy:return 32;case kd:return 268435456;default:return 32}default:return 32}}var ju=!1,en=null,tn=null,rn=null,zi=new Map,Ui=new Map,qr=[],n1="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".split(" ");function Mh(e,t){switch(e){case"focusin":case"focusout":en=null;break;case"dragenter":case"dragleave":tn=null;break;case"mouseover":case"mouseout":rn=null;break;case"pointerover":case"pointerout":zi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ui.delete(t.pointerId)}}function Qa(e,t,r,n,a,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[a]},t!==null&&(t=Ma(t),t!==null&&i0(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function a1(e,t,r,n,a){switch(t){case"focusin":return en=Qa(en,e,t,r,n,a),!0;case"dragenter":return tn=Qa(tn,e,t,r,n,a),!0;case"mouseover":return rn=Qa(rn,e,t,r,n,a),!0;case"pointerover":var i=a.pointerId;return zi.set(i,Qa(zi.get(i)||null,e,t,r,n,a)),!0;case"gotpointercapture":return i=a.pointerId,Ui.set(i,Qa(Ui.get(i)||null,e,t,r,n,a)),!0}return!1}function s0(e){var t=Jn(e.target);if(t!==null){var r=Fi(t);if(r!==null){if(t=r.tag,t===13){if(t=Td(r),t!==null){e.blockedOn=t,gf(e.priority,function(){Bh(r)});return}}else if(t===31){if(t=Ad(r),t!==null){e.blockedOn=t,gf(e.priority,function(){Bh(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ql(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Lu(e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);ru=n,r.target.dispatchEvent(n),ru=null}else return t=Ma(r),t!==null&&i0(t),e.blockedOn=r,!1;t.shift()}return!0}function zh(e,t,r){ql(e)&&r.delete(t)}function i1(){ju=!1,en!==null&&ql(en)&&(en=null),tn!==null&&ql(tn)&&(tn=null),rn!==null&&ql(rn)&&(rn=null),zi.forEach(zh),Ui.forEach(zh)}function bl(e,t){e.blockedOn===t&&(e.blockedOn=null,ju||(ju=!0,tt.unstable_scheduleCallback(tt.unstable_NormalPriority,i1)))}var wl=null;function Uh(e){wl!==e&&(wl=e,tt.unstable_scheduleCallback(tt.unstable_NormalPriority,function(){wl===e&&(wl=null);for(var t=0;t<e.length;t+=3){var r=e[t],n=e[t+1],a=e[t+2];if(typeof n!="function"){if(Gc(n||r)===null)continue;break}var i=Ma(r);i!==null&&(e.splice(t,3),t-=3,gu(i,{pending:!0,data:a,method:r.method,action:n},n,a))}}))}function Aa(e){function t(u){return bl(u,e)}en!==null&&bl(en,e),tn!==null&&bl(tn,e),rn!==null&&bl(rn,e),zi.forEach(t),Ui.forEach(t);for(var r=0;r<qr.length;r++){var n=qr[r];n.blockedOn===e&&(n.blockedOn=null)}for(;0<qr.length&&(r=qr[0],r.blockedOn===null);)s0(r),r.blockedOn===null&&qr.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(n=0;n<r.length;n+=3){var a=r[n],i=r[n+1],l=a[Tt]||null;if(typeof i=="function")l||Uh(r);else if(l){var s=null;if(i&&i.hasAttribute("formAction")){if(a=i,l=i[Tt]||null)s=l.formAction;else if(Gc(a)!==null)continue}else s=l.action;typeof s=="function"?r[n+1]=s:(r.splice(n,3),n-=3),Uh(r)}}}function o0(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(l){return a=l})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),n||setTimeout(r,20)}function r(){if(!n&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(r,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function Vc(e){this._internalRoot=e}js.prototype.render=Vc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(oe(409));var r=t.current,n=Mt();a0(r,n,e,t,null,null)};js.prototype.unmount=Vc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;a0(e.current,2,null,e,null,null),zs(),t[Ba]=null}};function js(e){this._internalRoot=e}js.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ld();e={blockedOn:null,target:e,priority:t};for(var r=0;r<qr.length&&t!==0&&t<qr[r].priority;r++);qr.splice(r,0,e),r===0&&s0(e)}};var Lh=Sd.version;if(Lh!=="19.2.6")throw Error(oe(527,Lh,"19.2.6"));Re.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(oe(188)):(e=Object.keys(e).join(","),Error(oe(268,e)));return e=zy(t),e=e!==null?Nd(e):null,e=e===null?null:e.stateNode,e};var l1={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:ge,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var _l=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_l.isDisabled&&_l.supportsFiber)try{Ii=_l.inject(l1),kt=_l}catch{}}_s.createRoot=function(e,t){if(!Ed(e))throw Error(oe(299));var r=!1,n="",a=$p,i=em,l=tm;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=r0(e,1,!1,null,null,r,n,null,a,i,l,o0),e[Ba]=t.current,jc(e),new Vc(t)};_s.hydrateRoot=function(e,t,r){if(!Ed(e))throw Error(oe(299));var n=!1,a="",i=$p,l=em,s=tm,u=null;return r!=null&&(r.unstable_strictMode===!0&&(n=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onUncaughtError!==void 0&&(i=r.onUncaughtError),r.onCaughtError!==void 0&&(l=r.onCaughtError),r.onRecoverableError!==void 0&&(s=r.onRecoverableError),r.formState!==void 0&&(u=r.formState)),t=r0(e,1,!0,t,r??null,n,a,u,i,l,s,o0),t.context=n0(null),r=t.current,n=Mt(),n=Ju(n),a=Wr(n),a.callback=null,Qr(r,a,n),r=n,t.current.lanes=r,Gi(t,r),or(t),e[Ba]=t.current,jc(e),new js(t)};_s.version="19.2.6";function u0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u0)}catch(e){console.error(e)}}u0(),vd.exports=_s;var s1=vd.exports;const o1=sd(s1);var u1=Object.create,c0=Object.defineProperty,c1=Object.getOwnPropertyDescriptor,f1=Object.getOwnPropertyNames,h1=Object.getPrototypeOf,d1=Object.prototype.hasOwnProperty,f0=(e,t)=>()=>(e&&(t=e(e=0)),t),he=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),p1=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=f1(t),i=0,l=a.length,s;i<l;i++)s=a[i],!d1.call(e,s)&&s!==r&&c0(e,s,{get:(u=>t[u]).bind(null,s),enumerable:!(n=c1(t,s))||n.enumerable});return e},Kc=(e,t,r)=>(r=e!=null?u1(h1(e)):{},p1(c0(r,"default",{value:e,enumerable:!0}),e)),xl=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});function Li(e){"@babel/helpers - typeof";return Li=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},Li(e)}function m1(e,t){if(Li(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Li(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function y1(e){var t=m1(e,"string");return Li(t)=="symbol"?t:t+""}function se(e,t,r){return(t=y1(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var gs=class{constructor(e){se(this,"rootKey",void 0),this.rootKey=e}},v1=Object.seal({}),de=class extends gs{constructor(e){super(e),se(this,"root",void 0),this.root=new Array}prepForXml(e){var t;e.stack.push(this);const r=this.root.map(n=>n instanceof gs?n.prepForXml(e):n).filter(n=>n!==void 0);return e.stack.pop(),{[this.rootKey]:r.length?r.length===1&&(!((t=r[0])===null||t===void 0)&&t._attr)?r[0]:r:v1}}addChildElement(e){return this.root.push(e),this}},cn=class extends de{constructor(e,t){super(e),se(this,"includeIfEmpty",void 0),this.includeIfEmpty=t}prepForXml(e){const t=super.prepForXml(e);if(this.includeIfEmpty||t&&(typeof t[this.rootKey]!="object"||Object.keys(t[this.rootKey]).length))return t}};function jh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ye(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jh(Object(r),!0).forEach(function(n){se(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Se=class extends gs{constructor(e){super("_attr"),se(this,"xmlKeys",void 0),this.root=e}prepForXml(e){const t={};return Object.entries(this.root).forEach(([r,n])=>{if(n!==void 0){const a=this.xmlKeys&&this.xmlKeys[r]||r;t[a]=n}}),{_attr:t}}},g1=class extends gs{constructor(e){super("_attr"),this.root=e}prepForXml(e){return{_attr:Object.values(this.root).filter(({value:t})=>t!==void 0).reduce((t,{key:r,value:n})=>ye(ye({},t),{},{[r]:n}),{})}}},pt=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{val:"w:val",color:"w:color",fill:"w:fill",space:"w:space",sz:"w:sz",type:"w:type",rsidR:"w:rsidR",rsidRPr:"w:rsidRPr",rsidSect:"w:rsidSect",w:"w:w",h:"w:h",top:"w:top",right:"w:right",bottom:"w:bottom",left:"w:left",header:"w:header",footer:"w:footer",gutter:"w:gutter",linePitch:"w:linePitch",pos:"w:pos"})}},Yc=he((e,t)=>{var r=typeof Reflect=="object"?Reflect:null,n=r&&typeof r.apply=="function"?r.apply:function(B,z,O){return Function.prototype.apply.call(B,z,O)},a;r&&typeof r.ownKeys=="function"?a=r.ownKeys:Object.getOwnPropertySymbols?a=function(B){return Object.getOwnPropertyNames(B).concat(Object.getOwnPropertySymbols(B))}:a=function(B){return Object.getOwnPropertyNames(B)};function i(S){console&&console.warn&&console.warn(S)}var l=Number.isNaN||function(B){return B!==B};function s(){s.init.call(this)}t.exports=s,t.exports.once=p,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function d(S){if(typeof S!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof S)}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(S){if(typeof S!="number"||S<0||l(S))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+S+".");u=S}}),s.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(B){if(typeof B!="number"||B<0||l(B))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+B+".");return this._maxListeners=B,this};function y(S){return S._maxListeners===void 0?s.defaultMaxListeners:S._maxListeners}s.prototype.getMaxListeners=function(){return y(this)},s.prototype.emit=function(B){for(var z=[],O=1;O<arguments.length;O++)z.push(arguments[O]);var G=B==="error",ee=this._events;if(ee!==void 0)G=G&&ee.error===void 0;else if(!G)return!1;if(G){var M;if(z.length>0&&(M=z[0]),M instanceof Error)throw M;var K=new Error("Unhandled error."+(M?" ("+M.message+")":""));throw K.context=M,K}var C=ee[B];if(C===void 0)return!1;if(typeof C=="function")n(C,this,z);else for(var P=C.length,X=R(C,P),O=0;O<P;++O)n(X[O],this,z);return!0};function g(S,B,z,O){var G,ee,M;if(d(z),ee=S._events,ee===void 0?(ee=S._events=Object.create(null),S._eventsCount=0):(ee.newListener!==void 0&&(S.emit("newListener",B,z.listener?z.listener:z),ee=S._events),M=ee[B]),M===void 0)M=ee[B]=z,++S._eventsCount;else if(typeof M=="function"?M=ee[B]=O?[z,M]:[M,z]:O?M.unshift(z):M.push(z),G=y(S),G>0&&M.length>G&&!M.warned){M.warned=!0;var K=new Error("Possible EventEmitter memory leak detected. "+M.length+" "+String(B)+" listeners added. Use emitter.setMaxListeners() to increase limit");K.name="MaxListenersExceededWarning",K.emitter=S,K.type=B,K.count=M.length,i(K)}return S}s.prototype.addListener=function(B,z){return g(this,B,z,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(B,z){return g(this,B,z,!0)};function v(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(S,B,z){var O={fired:!1,wrapFn:void 0,target:S,type:B,listener:z},G=v.bind(O);return G.listener=z,O.wrapFn=G,G}s.prototype.once=function(B,z){return d(z),this.on(B,h(this,B,z)),this},s.prototype.prependOnceListener=function(B,z){return d(z),this.prependListener(B,h(this,B,z)),this},s.prototype.removeListener=function(B,z){var O,G,ee,M,K;if(d(z),G=this._events,G===void 0)return this;if(O=G[B],O===void 0)return this;if(O===z||O.listener===z)--this._eventsCount===0?this._events=Object.create(null):(delete G[B],G.removeListener&&this.emit("removeListener",B,O.listener||z));else if(typeof O!="function"){for(ee=-1,M=O.length-1;M>=0;M--)if(O[M]===z||O[M].listener===z){K=O[M].listener,ee=M;break}if(ee<0)return this;ee===0?O.shift():m(O,ee),O.length===1&&(G[B]=O[0]),G.removeListener!==void 0&&this.emit("removeListener",B,K||z)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(B){var z,O=this._events,G;if(O===void 0)return this;if(O.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):O[B]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete O[B]),this;if(arguments.length===0){var ee=Object.keys(O),M;for(G=0;G<ee.length;++G)M=ee[G],M!=="removeListener"&&this.removeAllListeners(M);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(z=O[B],typeof z=="function")this.removeListener(B,z);else if(z!==void 0)for(G=z.length-1;G>=0;G--)this.removeListener(B,z[G]);return this};function _(S,B,z){var O=S._events;if(O===void 0)return[];var G=O[B];return G===void 0?[]:typeof G=="function"?z?[G.listener||G]:[G]:z?f(G):R(G,G.length)}s.prototype.listeners=function(B){return _(this,B,!0)},s.prototype.rawListeners=function(B){return _(this,B,!1)},s.listenerCount=function(S,B){return typeof S.listenerCount=="function"?S.listenerCount(B):E.call(S,B)},s.prototype.listenerCount=E;function E(S){var B=this._events;if(B!==void 0){var z=B[S];if(typeof z=="function")return 1;if(z!==void 0)return z.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]};function R(S,B){for(var z=new Array(B),O=0;O<B;++O)z[O]=S[O];return z}function m(S,B){for(;B+1<S.length;B++)S[B]=S[B+1];S.pop()}function f(S){for(var B=new Array(S.length),z=0;z<B.length;++z)B[z]=S[z].listener||S[z];return B}function p(S,B){return new Promise(function(z,O){function G(M){S.removeListener(B,ee),O(M)}function ee(){typeof S.removeListener=="function"&&S.removeListener("error",G),z([].slice.call(arguments))}A(S,B,ee,{once:!0}),B!=="error"&&b(S,G,{once:!0})})}function b(S,B,z){typeof S.on=="function"&&A(S,"error",B,z)}function A(S,B,z,O){if(typeof S.on=="function")O.once?S.once(B,z):S.on(B,z);else if(typeof S.addEventListener=="function")S.addEventListener(B,function G(ee){O.once&&S.removeEventListener(B,G),z(ee)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof S)}}),fn=he((e,t)=>{typeof Object.create=="function"?t.exports=function(n,a){a&&(n.super_=a,n.prototype=Object.create(a.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(n,a){if(a){n.super_=a;var i=function(){};i.prototype=a.prototype,n.prototype=new i,n.prototype.constructor=n}}}),yt,Fa=f0(()=>{yt=globalThis||self});function b1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Hu(){throw new Error("setTimeout has not been defined")}function Fu(){throw new Error("clearTimeout has not been defined")}function h0(e){if(er===setTimeout)return setTimeout(e,0);if((er===Hu||!er)&&setTimeout)return er=setTimeout,setTimeout(e,0);try{return er(e,0)}catch{try{return er.call(null,e,0)}catch{return er.call(this,e,0)}}}function w1(e){if(tr===clearTimeout)return clearTimeout(e);if((tr===Fu||!tr)&&clearTimeout)return tr=clearTimeout,clearTimeout(e);try{return tr(e)}catch{try{return tr.call(null,e)}catch{return tr.call(this,e)}}}function _1(){!On||!xn||(On=!1,xn.length?ir=xn.concat(ir):_i=-1,ir.length&&d0())}function d0(){if(!On){var e=h0(_1);On=!0;for(var t=ir.length;t;){for(xn=ir,ir=[];++_i<t;)xn&&xn[_i].run();_i=-1,t=ir.length}xn=null,On=!1,w1(e)}}function Hh(e,t){this.fun=e,this.array=t}function mr(){}var Co,Ve,er,tr,ir,On,xn,_i,Fh,xe,hn=f0(()=>{Co={exports:{}},Ve=Co.exports={},function(){try{typeof setTimeout=="function"?er=setTimeout:er=Hu}catch{er=Hu}try{typeof clearTimeout=="function"?tr=clearTimeout:tr=Fu}catch{tr=Fu}}(),ir=[],On=!1,_i=-1,Ve.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];ir.push(new Hh(e,t)),ir.length===1&&!On&&h0(d0)},Hh.prototype.run=function(){this.fun.apply(null,this.array)},Ve.title="browser",Ve.browser=!0,Ve.env={},Ve.argv=[],Ve.version="",Ve.versions={},Ve.on=mr,Ve.addListener=mr,Ve.once=mr,Ve.off=mr,Ve.removeListener=mr,Ve.removeAllListeners=mr,Ve.emit=mr,Ve.prependListener=mr,Ve.prependOnceListener=mr,Ve.listeners=function(e){return[]},Ve.binding=function(e){throw new Error("process.binding is not supported")},Ve.cwd=function(){return"/"},Ve.chdir=function(e){throw new Error("process.chdir is not supported")},Ve.umask=function(){return 0},Fh=Co.exports,xe=b1(Fh)}),p0=he((e,t)=>{t.exports=Yc().EventEmitter}),x1=he(e=>{e.byteLength=u,e.toByteArray=y,e.fromByteArray=h;for(var t=[],r=[],n=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,l=a.length;i<l;++i)t[i]=a[i],r[a.charCodeAt(i)]=i;r[45]=62,r[95]=63;function s(_){var E=_.length;if(E%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var R=_.indexOf("=");R===-1&&(R=E);var m=R===E?0:4-R%4;return[R,m]}function u(_){var E=s(_),R=E[0],m=E[1];return(R+m)*3/4-m}function d(_,E,R){return(E+R)*3/4-R}function y(_){var E,R=s(_),m=R[0],f=R[1],p=new n(d(_,m,f)),b=0,A=f>0?m-4:m,S;for(S=0;S<A;S+=4)E=r[_.charCodeAt(S)]<<18|r[_.charCodeAt(S+1)]<<12|r[_.charCodeAt(S+2)]<<6|r[_.charCodeAt(S+3)],p[b++]=E>>16&255,p[b++]=E>>8&255,p[b++]=E&255;return f===2&&(E=r[_.charCodeAt(S)]<<2|r[_.charCodeAt(S+1)]>>4,p[b++]=E&255),f===1&&(E=r[_.charCodeAt(S)]<<10|r[_.charCodeAt(S+1)]<<4|r[_.charCodeAt(S+2)]>>2,p[b++]=E>>8&255,p[b++]=E&255),p}function g(_){return t[_>>18&63]+t[_>>12&63]+t[_>>6&63]+t[_&63]}function v(_,E,R){for(var m,f=[],p=E;p<R;p+=3)m=(_[p]<<16&16711680)+(_[p+1]<<8&65280)+(_[p+2]&255),f.push(g(m));return f.join("")}function h(_){for(var E,R=_.length,m=R%3,f=[],p=16383,b=0,A=R-m;b<A;b+=p)f.push(v(_,b,b+p>A?A:b+p));return m===1?(E=_[R-1],f.push(t[E>>2]+t[E<<4&63]+"==")):m===2&&(E=(_[R-2]<<8)+_[R-1],f.push(t[E>>10]+t[E>>4&63]+t[E<<2&63]+"=")),f.join("")}}),S1=he(e=>{/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */e.read=function(t,r,n,a,i){var l,s,u=i*8-a-1,d=(1<<u)-1,y=d>>1,g=-7,v=n?i-1:0,h=n?-1:1,_=t[r+v];for(v+=h,l=_&(1<<-g)-1,_>>=-g,g+=u;g>0;l=l*256+t[r+v],v+=h,g-=8);for(s=l&(1<<-g)-1,l>>=-g,g+=a;g>0;s=s*256+t[r+v],v+=h,g-=8);if(l===0)l=1-y;else{if(l===d)return s?NaN:(_?-1:1)*(1/0);s=s+Math.pow(2,a),l=l-y}return(_?-1:1)*s*Math.pow(2,l-a)},e.write=function(t,r,n,a,i,l){var s,u,d,y=l*8-i-1,g=(1<<y)-1,v=g>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=a?0:l-1,E=a?1:-1,R=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,s=g):(s=Math.floor(Math.log(r)/Math.LN2),r*(d=Math.pow(2,-s))<1&&(s--,d*=2),s+v>=1?r+=h/d:r+=h*Math.pow(2,1-v),r*d>=2&&(s++,d/=2),s+v>=g?(u=0,s=g):s+v>=1?(u=(r*d-1)*Math.pow(2,i),s=s+v):(u=r*Math.pow(2,v-1)*Math.pow(2,i),s=0));i>=8;t[n+_]=u&255,_+=E,u/=256,i-=8);for(s=s<<i|u,y+=i;y>0;t[n+_]=s&255,_+=E,s/=256,y-=8);t[n+_-E]|=R*128}});/*!
|
||
* The buffer module from node.js, for the browser.
|
||
*
|
||
* @author Feross Aboukhadijeh <https://feross.org>
|
||
* @license MIT
|
||
*/var Hs=he(e=>{var t=x1(),r=S1(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=f,e.INSPECT_MAX_BYTES=50;var a=2147483647;e.kMaxLength=a,s.TYPED_ARRAY_SUPPORT=i(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{var k=new Uint8Array(1),o={foo:function(){return 42}};return Object.setPrototypeOf(o,Uint8Array.prototype),Object.setPrototypeOf(k,o),k.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function l(k){if(k>a)throw new RangeError('The value "'+k+'" is invalid for option "size"');var o=new Uint8Array(k);return Object.setPrototypeOf(o,s.prototype),o}function s(k,o,c){if(typeof k=="number"){if(typeof o=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return g(k)}return u(k,o,c)}s.poolSize=8192;function u(k,o,c){if(typeof k=="string")return v(k,o);if(ArrayBuffer.isView(k))return _(k);if(k==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof k);if(L(k,ArrayBuffer)||k&&L(k.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(L(k,SharedArrayBuffer)||k&&L(k.buffer,SharedArrayBuffer)))return E(k,o,c);if(typeof k=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var T=k.valueOf&&k.valueOf();if(T!=null&&T!==k)return s.from(T,o,c);var H=R(k);if(H)return H;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof k[Symbol.toPrimitive]=="function")return s.from(k[Symbol.toPrimitive]("string"),o,c);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof k)}s.from=function(k,o,c){return u(k,o,c)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function d(k){if(typeof k!="number")throw new TypeError('"size" argument must be of type number');if(k<0)throw new RangeError('The value "'+k+'" is invalid for option "size"')}function y(k,o,c){return d(k),k<=0?l(k):o!==void 0?typeof c=="string"?l(k).fill(o,c):l(k).fill(o):l(k)}s.alloc=function(k,o,c){return y(k,o,c)};function g(k){return d(k),l(k<0?0:m(k)|0)}s.allocUnsafe=function(k){return g(k)},s.allocUnsafeSlow=function(k){return g(k)};function v(k,o){if((typeof o!="string"||o==="")&&(o="utf8"),!s.isEncoding(o))throw new TypeError("Unknown encoding: "+o);var c=p(k,o)|0,T=l(c),H=T.write(k,o);return H!==c&&(T=T.slice(0,H)),T}function h(k){for(var o=k.length<0?0:m(k.length)|0,c=l(o),T=0;T<o;T+=1)c[T]=k[T]&255;return c}function _(k){if(L(k,Uint8Array)){var o=new Uint8Array(k);return E(o.buffer,o.byteOffset,o.byteLength)}return h(k)}function E(k,o,c){if(o<0||k.byteLength<o)throw new RangeError('"offset" is outside of buffer bounds');if(k.byteLength<o+(c||0))throw new RangeError('"length" is outside of buffer bounds');var T;return o===void 0&&c===void 0?T=new Uint8Array(k):c===void 0?T=new Uint8Array(k,o):T=new Uint8Array(k,o,c),Object.setPrototypeOf(T,s.prototype),T}function R(k){if(s.isBuffer(k)){var o=m(k.length)|0,c=l(o);return c.length===0||k.copy(c,0,0,o),c}if(k.length!==void 0)return typeof k.length!="number"||w(k.length)?l(0):h(k);if(k.type==="Buffer"&&Array.isArray(k.data))return h(k.data)}function m(k){if(k>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return k|0}function f(k){return+k!=k&&(k=0),s.alloc(+k)}s.isBuffer=function(o){return o!=null&&o._isBuffer===!0&&o!==s.prototype},s.compare=function(o,c){if(L(o,Uint8Array)&&(o=s.from(o,o.offset,o.byteLength)),L(c,Uint8Array)&&(c=s.from(c,c.offset,c.byteLength)),!s.isBuffer(o)||!s.isBuffer(c))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(o===c)return 0;for(var T=o.length,H=c.length,W=0,q=Math.min(T,H);W<q;++W)if(o[W]!==c[W]){T=o[W],H=c[W];break}return T<H?-1:H<T?1:0},s.isEncoding=function(o){switch(String(o).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(o,c){if(!Array.isArray(o))throw new TypeError('"list" argument must be an Array of Buffers');if(o.length===0)return s.alloc(0);var T;if(c===void 0)for(c=0,T=0;T<o.length;++T)c+=o[T].length;var H=s.allocUnsafe(c),W=0;for(T=0;T<o.length;++T){var q=o[T];if(L(q,Uint8Array))W+q.length>H.length?s.from(q).copy(H,W):Uint8Array.prototype.set.call(H,q,W);else if(s.isBuffer(q))q.copy(H,W);else throw new TypeError('"list" argument must be an Array of Buffers');W+=q.length}return H};function p(k,o){if(s.isBuffer(k))return k.length;if(ArrayBuffer.isView(k)||L(k,ArrayBuffer))return k.byteLength;if(typeof k!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof k);var c=k.length,T=arguments.length>2&&arguments[2]===!0;if(!T&&c===0)return 0;for(var H=!1;;)switch(o){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":return x(k).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c*2;case"hex":return c>>>1;case"base64":return ne(k).length;default:if(H)return T?-1:x(k).length;o=(""+o).toLowerCase(),H=!0}}s.byteLength=p;function b(k,o,c){var T=!1;if((o===void 0||o<0)&&(o=0),o>this.length||((c===void 0||c>this.length)&&(c=this.length),c<=0)||(c>>>=0,o>>>=0,c<=o))return"";for(k||(k="utf8");;)switch(k){case"hex":return Q(this,o,c);case"utf8":case"utf-8":return C(this,o,c);case"ascii":return V(this,o,c);case"latin1":case"binary":return re(this,o,c);case"base64":return K(this,o,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return te(this,o,c);default:if(T)throw new TypeError("Unknown encoding: "+k);k=(k+"").toLowerCase(),T=!0}}s.prototype._isBuffer=!0;function A(k,o,c){var T=k[o];k[o]=k[c],k[c]=T}s.prototype.swap16=function(){var o=this.length;if(o%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var c=0;c<o;c+=2)A(this,c,c+1);return this},s.prototype.swap32=function(){var o=this.length;if(o%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var c=0;c<o;c+=4)A(this,c,c+3),A(this,c+1,c+2);return this},s.prototype.swap64=function(){var o=this.length;if(o%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var c=0;c<o;c+=8)A(this,c,c+7),A(this,c+1,c+6),A(this,c+2,c+5),A(this,c+3,c+4);return this},s.prototype.toString=function(){var o=this.length;return o===0?"":arguments.length===0?C(this,0,o):b.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(o){if(!s.isBuffer(o))throw new TypeError("Argument must be a Buffer");return this===o?!0:s.compare(this,o)===0},s.prototype.inspect=function(){var o="",c=e.INSPECT_MAX_BYTES;return o=this.toString("hex",0,c).replace(/(.{2})/g,"$1 ").trim(),this.length>c&&(o+=" ... "),"<Buffer "+o+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(o,c,T,H,W){if(L(o,Uint8Array)&&(o=s.from(o,o.offset,o.byteLength)),!s.isBuffer(o))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof o);if(c===void 0&&(c=0),T===void 0&&(T=o?o.length:0),H===void 0&&(H=0),W===void 0&&(W=this.length),c<0||T>o.length||H<0||W>this.length)throw new RangeError("out of range index");if(H>=W&&c>=T)return 0;if(H>=W)return-1;if(c>=T)return 1;if(c>>>=0,T>>>=0,H>>>=0,W>>>=0,this===o)return 0;for(var q=W-H,ae=T-c,ce=Math.min(q,ae),ie=this.slice(H,W),pe=o.slice(c,T),me=0;me<ce;++me)if(ie[me]!==pe[me]){q=ie[me],ae=pe[me];break}return q<ae?-1:ae<q?1:0};function S(k,o,c,T,H){if(k.length===0)return-1;if(typeof c=="string"?(T=c,c=0):c>2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),c=+c,w(c)&&(c=H?0:k.length-1),c<0&&(c=k.length+c),c>=k.length){if(H)return-1;c=k.length-1}else if(c<0)if(H)c=0;else return-1;if(typeof o=="string"&&(o=s.from(o,T)),s.isBuffer(o))return o.length===0?-1:B(k,o,c,T,H);if(typeof o=="number")return o=o&255,typeof Uint8Array.prototype.indexOf=="function"?H?Uint8Array.prototype.indexOf.call(k,o,c):Uint8Array.prototype.lastIndexOf.call(k,o,c):B(k,[o],c,T,H);throw new TypeError("val must be string, number or Buffer")}function B(k,o,c,T,H){var W=1,q=k.length,ae=o.length;if(T!==void 0&&(T=String(T).toLowerCase(),T==="ucs2"||T==="ucs-2"||T==="utf16le"||T==="utf-16le")){if(k.length<2||o.length<2)return-1;W=2,q/=2,ae/=2,c/=2}function ce(rt,Mr){return W===1?rt[Mr]:rt.readUInt16BE(Mr*W)}var ie;if(H){var pe=-1;for(ie=c;ie<q;ie++)if(ce(k,ie)===ce(o,pe===-1?0:ie-pe)){if(pe===-1&&(pe=ie),ie-pe+1===ae)return pe*W}else pe!==-1&&(ie-=ie-pe),pe=-1}else for(c+ae>q&&(c=q-ae),ie=c;ie>=0;ie--){for(var me=!0,ve=0;ve<ae;ve++)if(ce(k,ie+ve)!==ce(o,ve)){me=!1;break}if(me)return ie}return-1}s.prototype.includes=function(o,c,T){return this.indexOf(o,c,T)!==-1},s.prototype.indexOf=function(o,c,T){return S(this,o,c,T,!0)},s.prototype.lastIndexOf=function(o,c,T){return S(this,o,c,T,!1)};function z(k,o,c,T){c=Number(c)||0;var H=k.length-c;T?(T=Number(T),T>H&&(T=H)):T=H;var W=o.length;T>W/2&&(T=W/2);for(var q=0;q<T;++q){var ae=parseInt(o.substr(q*2,2),16);if(w(ae))return q;k[c+q]=ae}return q}function O(k,o,c,T){return U(x(o,k.length-c),k,c,T)}function G(k,o,c,T){return U(F(o),k,c,T)}function ee(k,o,c,T){return U(ne(o),k,c,T)}function M(k,o,c,T){return U(j(o,k.length-c),k,c,T)}s.prototype.write=function(o,c,T,H){if(c===void 0)H="utf8",T=this.length,c=0;else if(T===void 0&&typeof c=="string")H=c,T=this.length,c=0;else if(isFinite(c))c=c>>>0,isFinite(T)?(T=T>>>0,H===void 0&&(H="utf8")):(H=T,T=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var W=this.length-c;if((T===void 0||T>W)&&(T=W),o.length>0&&(T<0||c<0)||c>this.length)throw new RangeError("Attempt to write outside buffer bounds");H||(H="utf8");for(var q=!1;;)switch(H){case"hex":return z(this,o,c,T);case"utf8":case"utf-8":return O(this,o,c,T);case"ascii":case"latin1":case"binary":return G(this,o,c,T);case"base64":return ee(this,o,c,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,o,c,T);default:if(q)throw new TypeError("Unknown encoding: "+H);H=(""+H).toLowerCase(),q=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function K(k,o,c){return o===0&&c===k.length?t.fromByteArray(k):t.fromByteArray(k.slice(o,c))}function C(k,o,c){c=Math.min(k.length,c);for(var T=[],H=o;H<c;){var W=k[H],q=null,ae=W>239?4:W>223?3:W>191?2:1;if(H+ae<=c){var ce,ie,pe,me;switch(ae){case 1:W<128&&(q=W);break;case 2:ce=k[H+1],(ce&192)===128&&(me=(W&31)<<6|ce&63,me>127&&(q=me));break;case 3:ce=k[H+1],ie=k[H+2],(ce&192)===128&&(ie&192)===128&&(me=(W&15)<<12|(ce&63)<<6|ie&63,me>2047&&(me<55296||me>57343)&&(q=me));break;case 4:ce=k[H+1],ie=k[H+2],pe=k[H+3],(ce&192)===128&&(ie&192)===128&&(pe&192)===128&&(me=(W&15)<<18|(ce&63)<<12|(ie&63)<<6|pe&63,me>65535&&me<1114112&&(q=me))}}q===null?(q=65533,ae=1):q>65535&&(q-=65536,T.push(q>>>10&1023|55296),q=56320|q&1023),T.push(q),H+=ae}return X(T)}var P=4096;function X(k){var o=k.length;if(o<=P)return String.fromCharCode.apply(String,k);for(var c="",T=0;T<o;)c+=String.fromCharCode.apply(String,k.slice(T,T+=P));return c}function V(k,o,c){var T="";c=Math.min(k.length,c);for(var H=o;H<c;++H)T+=String.fromCharCode(k[H]&127);return T}function re(k,o,c){var T="";c=Math.min(k.length,c);for(var H=o;H<c;++H)T+=String.fromCharCode(k[H]);return T}function Q(k,o,c){var T=k.length;(!o||o<0)&&(o=0),(!c||c<0||c>T)&&(c=T);for(var H="",W=o;W<c;++W)H+=J[k[W]];return H}function te(k,o,c){for(var T=k.slice(o,c),H="",W=0;W<T.length-1;W+=2)H+=String.fromCharCode(T[W]+T[W+1]*256);return H}s.prototype.slice=function(o,c){var T=this.length;o=~~o,c=c===void 0?T:~~c,o<0?(o+=T,o<0&&(o=0)):o>T&&(o=T),c<0?(c+=T,c<0&&(c=0)):c>T&&(c=T),c<o&&(c=o);var H=this.subarray(o,c);return Object.setPrototypeOf(H,s.prototype),H};function Z(k,o,c){if(k%1!==0||k<0)throw new RangeError("offset is not uint");if(k+o>c)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(o,c,T){o=o>>>0,c=c>>>0,T||Z(o,c,this.length);for(var H=this[o],W=1,q=0;++q<c&&(W*=256);)H+=this[o+q]*W;return H},s.prototype.readUintBE=s.prototype.readUIntBE=function(o,c,T){o=o>>>0,c=c>>>0,T||Z(o,c,this.length);for(var H=this[o+--c],W=1;c>0&&(W*=256);)H+=this[o+--c]*W;return H},s.prototype.readUint8=s.prototype.readUInt8=function(o,c){return o=o>>>0,c||Z(o,1,this.length),this[o]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(o,c){return o=o>>>0,c||Z(o,2,this.length),this[o]|this[o+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(o,c){return o=o>>>0,c||Z(o,2,this.length),this[o]<<8|this[o+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(o,c){return o=o>>>0,c||Z(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+this[o+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(o,c){return o=o>>>0,c||Z(o,4,this.length),this[o]*16777216+(this[o+1]<<16|this[o+2]<<8|this[o+3])},s.prototype.readIntLE=function(o,c,T){o=o>>>0,c=c>>>0,T||Z(o,c,this.length);for(var H=this[o],W=1,q=0;++q<c&&(W*=256);)H+=this[o+q]*W;return W*=128,H>=W&&(H-=Math.pow(2,8*c)),H},s.prototype.readIntBE=function(o,c,T){o=o>>>0,c=c>>>0,T||Z(o,c,this.length);for(var H=c,W=1,q=this[o+--H];H>0&&(W*=256);)q+=this[o+--H]*W;return W*=128,q>=W&&(q-=Math.pow(2,8*c)),q},s.prototype.readInt8=function(o,c){return o=o>>>0,c||Z(o,1,this.length),this[o]&128?(255-this[o]+1)*-1:this[o]},s.prototype.readInt16LE=function(o,c){o=o>>>0,c||Z(o,2,this.length);var T=this[o]|this[o+1]<<8;return T&32768?T|4294901760:T},s.prototype.readInt16BE=function(o,c){o=o>>>0,c||Z(o,2,this.length);var T=this[o+1]|this[o]<<8;return T&32768?T|4294901760:T},s.prototype.readInt32LE=function(o,c){return o=o>>>0,c||Z(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24},s.prototype.readInt32BE=function(o,c){return o=o>>>0,c||Z(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]},s.prototype.readFloatLE=function(o,c){return o=o>>>0,c||Z(o,4,this.length),r.read(this,o,!0,23,4)},s.prototype.readFloatBE=function(o,c){return o=o>>>0,c||Z(o,4,this.length),r.read(this,o,!1,23,4)},s.prototype.readDoubleLE=function(o,c){return o=o>>>0,c||Z(o,8,this.length),r.read(this,o,!0,52,8)},s.prototype.readDoubleBE=function(o,c){return o=o>>>0,c||Z(o,8,this.length),r.read(this,o,!1,52,8)};function D(k,o,c,T,H,W){if(!s.isBuffer(k))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>H||o<W)throw new RangeError('"value" argument is out of bounds');if(c+T>k.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(o,c,T,H){if(o=+o,c=c>>>0,T=T>>>0,!H){var W=Math.pow(2,8*T)-1;D(this,o,c,T,W,0)}var q=1,ae=0;for(this[c]=o&255;++ae<T&&(q*=256);)this[c+ae]=o/q&255;return c+T},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(o,c,T,H){if(o=+o,c=c>>>0,T=T>>>0,!H){var W=Math.pow(2,8*T)-1;D(this,o,c,T,W,0)}var q=T-1,ae=1;for(this[c+q]=o&255;--q>=0&&(ae*=256);)this[c+q]=o/ae&255;return c+T},s.prototype.writeUint8=s.prototype.writeUInt8=function(o,c,T){return o=+o,c=c>>>0,T||D(this,o,c,1,255,0),this[c]=o&255,c+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(o,c,T){return o=+o,c=c>>>0,T||D(this,o,c,2,65535,0),this[c]=o&255,this[c+1]=o>>>8,c+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(o,c,T){return o=+o,c=c>>>0,T||D(this,o,c,2,65535,0),this[c]=o>>>8,this[c+1]=o&255,c+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(o,c,T){return o=+o,c=c>>>0,T||D(this,o,c,4,4294967295,0),this[c+3]=o>>>24,this[c+2]=o>>>16,this[c+1]=o>>>8,this[c]=o&255,c+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(o,c,T){return o=+o,c=c>>>0,T||D(this,o,c,4,4294967295,0),this[c]=o>>>24,this[c+1]=o>>>16,this[c+2]=o>>>8,this[c+3]=o&255,c+4},s.prototype.writeIntLE=function(o,c,T,H){if(o=+o,c=c>>>0,!H){var W=Math.pow(2,8*T-1);D(this,o,c,T,W-1,-W)}var q=0,ae=1,ce=0;for(this[c]=o&255;++q<T&&(ae*=256);)o<0&&ce===0&&this[c+q-1]!==0&&(ce=1),this[c+q]=(o/ae>>0)-ce&255;return c+T},s.prototype.writeIntBE=function(o,c,T,H){if(o=+o,c=c>>>0,!H){var W=Math.pow(2,8*T-1);D(this,o,c,T,W-1,-W)}var q=T-1,ae=1,ce=0;for(this[c+q]=o&255;--q>=0&&(ae*=256);)o<0&&ce===0&&this[c+q+1]!==0&&(ce=1),this[c+q]=(o/ae>>0)-ce&255;return c+T},s.prototype.writeInt8=function(o,c,T){return o=+o,c=c>>>0,T||D(this,o,c,1,127,-128),o<0&&(o=255+o+1),this[c]=o&255,c+1},s.prototype.writeInt16LE=function(o,c,T){return o=+o,c=c>>>0,T||D(this,o,c,2,32767,-32768),this[c]=o&255,this[c+1]=o>>>8,c+2},s.prototype.writeInt16BE=function(o,c,T){return o=+o,c=c>>>0,T||D(this,o,c,2,32767,-32768),this[c]=o>>>8,this[c+1]=o&255,c+2},s.prototype.writeInt32LE=function(o,c,T){return o=+o,c=c>>>0,T||D(this,o,c,4,2147483647,-2147483648),this[c]=o&255,this[c+1]=o>>>8,this[c+2]=o>>>16,this[c+3]=o>>>24,c+4},s.prototype.writeInt32BE=function(o,c,T){return o=+o,c=c>>>0,T||D(this,o,c,4,2147483647,-2147483648),o<0&&(o=4294967295+o+1),this[c]=o>>>24,this[c+1]=o>>>16,this[c+2]=o>>>8,this[c+3]=o&255,c+4};function I(k,o,c,T,H,W){if(c+T>k.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("Index out of range")}function Y(k,o,c,T,H){return o=+o,c=c>>>0,H||I(k,o,c,4),r.write(k,o,c,T,23,4),c+4}s.prototype.writeFloatLE=function(o,c,T){return Y(this,o,c,!0,T)},s.prototype.writeFloatBE=function(o,c,T){return Y(this,o,c,!1,T)};function $(k,o,c,T,H){return o=+o,c=c>>>0,H||I(k,o,c,8),r.write(k,o,c,T,52,8),c+8}s.prototype.writeDoubleLE=function(o,c,T){return $(this,o,c,!0,T)},s.prototype.writeDoubleBE=function(o,c,T){return $(this,o,c,!1,T)},s.prototype.copy=function(o,c,T,H){if(!s.isBuffer(o))throw new TypeError("argument should be a Buffer");if(T||(T=0),!H&&H!==0&&(H=this.length),c>=o.length&&(c=o.length),c||(c=0),H>0&&H<T&&(H=T),H===T||o.length===0||this.length===0)return 0;if(c<0)throw new RangeError("targetStart out of bounds");if(T<0||T>=this.length)throw new RangeError("Index out of range");if(H<0)throw new RangeError("sourceEnd out of bounds");H>this.length&&(H=this.length),o.length-c<H-T&&(H=o.length-c+T);var W=H-T;return this===o&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(c,T,H):Uint8Array.prototype.set.call(o,this.subarray(T,H),c),W},s.prototype.fill=function(o,c,T,H){if(typeof o=="string"){if(typeof c=="string"?(H=c,c=0,T=this.length):typeof T=="string"&&(H=T,T=this.length),H!==void 0&&typeof H!="string")throw new TypeError("encoding must be a string");if(typeof H=="string"&&!s.isEncoding(H))throw new TypeError("Unknown encoding: "+H);if(o.length===1){var W=o.charCodeAt(0);(H==="utf8"&&W<128||H==="latin1")&&(o=W)}}else typeof o=="number"?o=o&255:typeof o=="boolean"&&(o=Number(o));if(c<0||this.length<c||this.length<T)throw new RangeError("Out of range index");if(T<=c)return this;c=c>>>0,T=T===void 0?this.length:T>>>0,o||(o=0);var q;if(typeof o=="number")for(q=c;q<T;++q)this[q]=o;else{var ae=s.isBuffer(o)?o:s.from(o,H),ce=ae.length;if(ce===0)throw new TypeError('The value "'+o+'" is invalid for argument "value"');for(q=0;q<T-c;++q)this[q+c]=ae[q%ce]}return this};var ue=/[^+/0-9A-Za-z-_]/g;function N(k){if(k=k.split("=")[0],k=k.trim().replace(ue,""),k.length<2)return"";for(;k.length%4!==0;)k=k+"=";return k}function x(k,o){o=o||1/0;for(var c,T=k.length,H=null,W=[],q=0;q<T;++q){if(c=k.charCodeAt(q),c>55295&&c<57344){if(!H){if(c>56319){(o-=3)>-1&&W.push(239,191,189);continue}else if(q+1===T){(o-=3)>-1&&W.push(239,191,189);continue}H=c;continue}if(c<56320){(o-=3)>-1&&W.push(239,191,189),H=c;continue}c=(H-55296<<10|c-56320)+65536}else H&&(o-=3)>-1&&W.push(239,191,189);if(H=null,c<128){if((o-=1)<0)break;W.push(c)}else if(c<2048){if((o-=2)<0)break;W.push(c>>6|192,c&63|128)}else if(c<65536){if((o-=3)<0)break;W.push(c>>12|224,c>>6&63|128,c&63|128)}else if(c<1114112){if((o-=4)<0)break;W.push(c>>18|240,c>>12&63|128,c>>6&63|128,c&63|128)}else throw new Error("Invalid code point")}return W}function F(k){for(var o=[],c=0;c<k.length;++c)o.push(k.charCodeAt(c)&255);return o}function j(k,o){for(var c,T,H,W=[],q=0;q<k.length&&!((o-=2)<0);++q)c=k.charCodeAt(q),T=c>>8,H=c%256,W.push(H),W.push(T);return W}function ne(k){return t.toByteArray(N(k))}function U(k,o,c,T){for(var H=0;H<T&&!(H+c>=o.length||H>=k.length);++H)o[H+c]=k[H];return H}function L(k,o){return k instanceof o||k!=null&&k.constructor!=null&&k.constructor.name!=null&&k.constructor.name===o.name}function w(k){return k!==k}var J=function(){for(var k="0123456789abcdef",o=new Array(256),c=0;c<16;++c)for(var T=c*16,H=0;H<16;++H)o[T+H]=k[c]+k[H];return o}()}),m0=he((e,t)=>{t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var n={},a=Symbol("test"),i=Object(a);if(typeof a=="string"||Object.prototype.toString.call(a)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var l=42;n[a]=l;for(var s in n)return!1;if(typeof Object.keys=="function"&&Object.keys(n).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(n).length!==0)return!1;var u=Object.getOwnPropertySymbols(n);if(u.length!==1||u[0]!==a||!Object.prototype.propertyIsEnumerable.call(n,a))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var d=Object.getOwnPropertyDescriptor(n,a);if(d.value!==l||d.enumerable!==!0)return!1}return!0}}),Xc=he((e,t)=>{var r=m0();t.exports=function(){return r()&&!!Symbol.toStringTag}}),y0=he((e,t)=>{t.exports=Object}),E1=he((e,t)=>{t.exports=Error}),T1=he((e,t)=>{t.exports=EvalError}),A1=he((e,t)=>{t.exports=RangeError}),N1=he((e,t)=>{t.exports=ReferenceError}),v0=he((e,t)=>{t.exports=SyntaxError}),Fs=he((e,t)=>{t.exports=TypeError}),O1=he((e,t)=>{t.exports=URIError}),R1=he((e,t)=>{t.exports=Math.abs}),C1=he((e,t)=>{t.exports=Math.floor}),D1=he((e,t)=>{t.exports=Math.max}),k1=he((e,t)=>{t.exports=Math.min}),B1=he((e,t)=>{t.exports=Math.pow}),M1=he((e,t)=>{t.exports=Math.round}),z1=he((e,t)=>{t.exports=Number.isNaN||function(n){return n!==n}}),U1=he((e,t)=>{var r=z1();t.exports=function(a){return r(a)||a===0?a:a<0?-1:1}}),L1=he((e,t)=>{t.exports=Object.getOwnPropertyDescriptor}),Ji=he((e,t)=>{var r=L1();if(r)try{r([],"length")}catch{r=null}t.exports=r}),Is=he((e,t)=>{var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}t.exports=r}),j1=he((e,t)=>{var r=typeof Symbol<"u"&&Symbol,n=m0();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}),g0=he((e,t)=>{t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}),b0=he((e,t)=>{t.exports=y0().getPrototypeOf||null}),H1=he((e,t)=>{var r="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,a=Math.max,i="[object Function]",l=function(y,g){for(var v=[],h=0;h<y.length;h+=1)v[h]=y[h];for(var _=0;_<g.length;_+=1)v[_+y.length]=g[_];return v},s=function(y,g){for(var v=[],h=g,_=0;h<y.length;h+=1,_+=1)v[_]=y[h];return v},u=function(d,y){for(var g="",v=0;v<d.length;v+=1)g+=d[v],v+1<d.length&&(g+=y);return g};t.exports=function(y){var g=this;if(typeof g!="function"||n.apply(g)!==i)throw new TypeError(r+g);for(var v=s(arguments,1),h,_=function(){if(this instanceof h){var p=g.apply(this,l(v,arguments));return Object(p)===p?p:this}return g.apply(y,l(v,arguments))},E=a(0,g.length-v.length),R=[],m=0;m<E;m++)R[m]="$"+m;if(h=Function("binder","return function ("+u(R,",")+"){ return binder.apply(this,arguments); }")(_),g.prototype){var f=function(){};f.prototype=g.prototype,h.prototype=new f,f.prototype=null}return h}}),$i=he((e,t)=>{var r=H1();t.exports=Function.prototype.bind||r}),Pc=he((e,t)=>{t.exports=Function.prototype.call}),Zc=he((e,t)=>{t.exports=Function.prototype.apply}),F1=he((e,t)=>{t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}),w0=he((e,t)=>{var r=$i(),n=Zc(),a=Pc();t.exports=F1()||r.call(a,n)}),Wc=he((e,t)=>{var r=$i(),n=Fs(),a=Pc(),i=w0();t.exports=function(s){if(s.length<1||typeof s[0]!="function")throw new n("a function is required");return i(r,a,s)}}),I1=he((e,t)=>{var r=Wc(),n=Ji(),a;try{a=[].__proto__===Array.prototype}catch(u){if(!u||typeof u!="object"||!("code"in u)||u.code!=="ERR_PROTO_ACCESS")throw u}var i=!!a&&n&&n(Object.prototype,"__proto__"),l=Object,s=l.getPrototypeOf;t.exports=i&&typeof i.get=="function"?r([i.get]):typeof s=="function"?function(d){return s(d==null?d:l(d))}:!1}),_0=he((e,t)=>{var r=g0(),n=b0(),a=I1();t.exports=r?function(l){return r(l)}:n?function(l){if(!l||typeof l!="object"&&typeof l!="function")throw new TypeError("getProto: not an object");return n(l)}:a?function(l){return a(l)}:null}),q1=he((e,t)=>{var r=Function.prototype.call,n=Object.prototype.hasOwnProperty;t.exports=$i().call(r,n)}),x0=he((e,t)=>{var r,n=y0(),a=E1(),i=T1(),l=A1(),s=N1(),u=v0(),d=Fs(),y=O1(),g=R1(),v=C1(),h=D1(),_=k1(),E=B1(),R=M1(),m=U1(),f=Function,p=function(j){try{return f('"use strict"; return ('+j+").constructor;")()}catch{}},b=Ji(),A=Is(),S=function(){throw new d},B=b?function(){try{return arguments.callee,S}catch{try{return b(arguments,"callee").get}catch{return S}}}():S,z=j1()(),O=_0(),G=b0(),ee=g0(),M=Zc(),K=Pc(),C={},P=typeof Uint8Array>"u"||!O?r:O(Uint8Array),X={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":z&&O?O([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":C,"%AsyncGenerator%":C,"%AsyncGeneratorFunction%":C,"%AsyncIteratorPrototype%":C,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":i,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":f,"%GeneratorFunction%":C,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":z&&O?O(O([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!z||!O?r:O(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":l,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!z||!O?r:O(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":z&&O?O(""[Symbol.iterator]()):r,"%Symbol%":z?Symbol:r,"%SyntaxError%":u,"%ThrowTypeError%":B,"%TypedArray%":P,"%TypeError%":d,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":y,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":K,"%Function.prototype.apply%":M,"%Object.defineProperty%":A,"%Object.getPrototypeOf%":G,"%Math.abs%":g,"%Math.floor%":v,"%Math.max%":h,"%Math.min%":_,"%Math.pow%":E,"%Math.round%":R,"%Math.sign%":m,"%Reflect.getPrototypeOf%":ee};if(O)try{null.error}catch(j){X["%Error.prototype%"]=O(O(j))}var V=function j(ne){var U;if(ne==="%AsyncFunction%")U=p("async function () {}");else if(ne==="%GeneratorFunction%")U=p("function* () {}");else if(ne==="%AsyncGeneratorFunction%")U=p("async function* () {}");else if(ne==="%AsyncGenerator%"){var L=j("%AsyncGeneratorFunction%");L&&(U=L.prototype)}else if(ne==="%AsyncIteratorPrototype%"){var w=j("%AsyncGenerator%");w&&O&&(U=O(w.prototype))}return X[ne]=U,U},re={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Q=$i(),te=q1(),Z=Q.call(K,Array.prototype.concat),D=Q.call(M,Array.prototype.splice),I=Q.call(K,String.prototype.replace),Y=Q.call(K,String.prototype.slice),$=Q.call(K,RegExp.prototype.exec),ue=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,N=/\\(\\)?/g,x=function(ne){var U=Y(ne,0,1),L=Y(ne,-1);if(U==="%"&&L!=="%")throw new u("invalid intrinsic syntax, expected closing `%`");if(L==="%"&&U!=="%")throw new u("invalid intrinsic syntax, expected opening `%`");var w=[];return I(ne,ue,function(J,k,o,c){w[w.length]=o?I(c,N,"$1"):k||J}),w},F=function(ne,U){var L=ne,w;if(te(re,L)&&(w=re[L],L="%"+w[0]+"%"),te(X,L)){var J=X[L];if(J===C&&(J=V(L)),typeof J>"u"&&!U)throw new d("intrinsic "+ne+" exists, but is not available. Please file an issue!");return{alias:w,name:L,value:J}}throw new u("intrinsic "+ne+" does not exist!")};t.exports=function(ne,U){if(typeof ne!="string"||ne.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof U!="boolean")throw new d('"allowMissing" argument must be a boolean');if($(/^%?[^%]*%?$/,ne)===null)throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var L=x(ne),w=L.length>0?L[0]:"",J=F("%"+w+"%",U),k=J.name,o=J.value,c=!1,T=J.alias;T&&(w=T[0],D(L,Z([0,1],T)));for(var H=1,W=!0;H<L.length;H+=1){var q=L[H],ae=Y(q,0,1),ce=Y(q,-1);if((ae==='"'||ae==="'"||ae==="`"||ce==='"'||ce==="'"||ce==="`")&&ae!==ce)throw new u("property names with quotes must have matching quotes");if((q==="constructor"||!W)&&(c=!0),w+="."+q,k="%"+w+"%",te(X,k))o=X[k];else if(o!=null){if(!(q in o)){if(!U)throw new d("base intrinsic for "+ne+" exists, but the property is not available.");return}if(b&&H+1>=L.length){var ie=b(o,q);W=!!ie,W&&"get"in ie&&!("originalValue"in ie.get)?o=ie.get:o=o[q]}else W=te(o,q),o=o[q];W&&!c&&(X[k]=o)}}return o}}),S0=he((e,t)=>{var r=x0(),n=Wc(),a=n([r("%String.prototype.indexOf%")]);t.exports=function(l,s){var u=r(l,!!s);return typeof u=="function"&&a(l,".prototype.")>-1?n([u]):u}}),G1=he((e,t)=>{var r=Xc()(),n=S0()("Object.prototype.toString"),a=function(u){return r&&u&&typeof u=="object"&&Symbol.toStringTag in u?!1:n(u)==="[object Arguments]"},i=function(u){return a(u)?!0:u!==null&&typeof u=="object"&&"length"in u&&typeof u.length=="number"&&u.length>=0&&n(u)!=="[object Array]"&&"callee"in u&&n(u.callee)==="[object Function]"},l=function(){return a(arguments)}();a.isLegacyArguments=i,t.exports=l?a:i}),V1=he((e,t)=>{var r=Object.prototype.toString,n=Function.prototype.toString,a=/^\s*(?:function)?\*/,i=Xc()(),l=Object.getPrototypeOf,s=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch{}},u;t.exports=function(y){if(typeof y!="function")return!1;if(a.test(n.call(y)))return!0;if(!i)return r.call(y)==="[object GeneratorFunction]";if(!l)return!1;if(typeof u>"u"){var g=s();u=g?l(g):!1}return l(y)===u}}),K1=he((e,t)=>{var r=Function.prototype.toString,n=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,a,i;if(typeof n=="function"&&typeof Object.defineProperty=="function")try{a=Object.defineProperty({},"length",{get:function(){throw i}}),i={},n(function(){throw 42},null,a)}catch(b){b!==i&&(n=null)}else n=null;var l=/^\s*class\b/,s=function(A){try{var S=r.call(A);return l.test(S)}catch{return!1}},u=function(A){try{return s(A)?!1:(r.call(A),!0)}catch{return!1}},d=Object.prototype.toString,y="[object Object]",g="[object Function]",v="[object GeneratorFunction]",h="[object HTMLAllCollection]",_="[object HTML document.all class]",E="[object HTMLCollection]",R=typeof Symbol=="function"&&!!Symbol.toStringTag,m=!(0 in[,]),f=function(){return!1};if(typeof document=="object"){var p=document.all;d.call(p)===d.call(document.all)&&(f=function(A){if((m||!A)&&(typeof A>"u"||typeof A=="object"))try{var S=d.call(A);return(S===h||S===_||S===E||S===y)&&A("")==null}catch{}return!1})}t.exports=n?function(A){if(f(A))return!0;if(!A||typeof A!="function"&&typeof A!="object")return!1;try{n(A,null,a)}catch(S){if(S!==i)return!1}return!s(A)&&u(A)}:function(A){if(f(A))return!0;if(!A||typeof A!="function"&&typeof A!="object")return!1;if(R)return u(A);if(s(A))return!1;var S=d.call(A);return S!==g&&S!==v&&!/^\[object HTML/.test(S)?!1:u(A)}}),Y1=he((e,t)=>{var r=K1(),n=Object.prototype.toString,a=Object.prototype.hasOwnProperty,i=function(y,g,v){for(var h=0,_=y.length;h<_;h++)a.call(y,h)&&(v==null?g(y[h],h,y):g.call(v,y[h],h,y))},l=function(y,g,v){for(var h=0,_=y.length;h<_;h++)v==null?g(y.charAt(h),h,y):g.call(v,y.charAt(h),h,y)},s=function(y,g,v){for(var h in y)a.call(y,h)&&(v==null?g(y[h],h,y):g.call(v,y[h],h,y))};function u(d){return n.call(d)==="[object Array]"}t.exports=function(y,g,v){if(!r(g))throw new TypeError("iterator must be a function");var h;arguments.length>=3&&(h=v),u(y)?i(y,g,h):typeof y=="string"?l(y,g,h):s(y,g,h)}}),X1=he((e,t)=>{t.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]}),P1=he((e,t)=>{Fa();var r=X1(),n=typeof globalThis>"u"?yt:globalThis;t.exports=function(){for(var i=[],l=0;l<r.length;l++)typeof n[r[l]]=="function"&&(i[i.length]=r[l]);return i}}),Z1=he((e,t)=>{var r=Is(),n=v0(),a=Fs(),i=Ji();t.exports=function(s,u,d){if(!s||typeof s!="object"&&typeof s!="function")throw new a("`obj` must be an object or a function`");if(typeof u!="string"&&typeof u!="symbol")throw new a("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new a("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new a("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new a("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new a("`loose`, if provided, must be a boolean");var y=arguments.length>3?arguments[3]:null,g=arguments.length>4?arguments[4]:null,v=arguments.length>5?arguments[5]:null,h=arguments.length>6?arguments[6]:!1,_=!!i&&i(s,u);if(r)r(s,u,{configurable:v===null&&_?_.configurable:!v,enumerable:y===null&&_?_.enumerable:!y,value:d,writable:g===null&&_?_.writable:!g});else if(h||!y&&!g&&!v)s[u]=d;else throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}}),W1=he((e,t)=>{var r=Is(),n=function(){return!!r};n.hasArrayLengthDefineBug=function(){if(!r)return null;try{return r([],"length",{value:1}).length!==1}catch{return!0}},t.exports=n}),Q1=he((e,t)=>{var r=x0(),n=Z1(),a=W1()(),i=Ji(),l=Fs(),s=r("%Math.floor%");t.exports=function(d,y){if(typeof d!="function")throw new l("`fn` is not a function");if(typeof y!="number"||y<0||y>4294967295||s(y)!==y)throw new l("`length` must be a positive 32-bit integer");var g=arguments.length>2&&!!arguments[2],v=!0,h=!0;if("length"in d&&i){var _=i(d,"length");_&&!_.configurable&&(v=!1),_&&!_.writable&&(h=!1)}return(v||h||!g)&&(a?n(d,"length",y,!0,!0):n(d,"length",y)),d}}),J1=he((e,t)=>{var r=$i(),n=Zc(),a=w0();t.exports=function(){return a(r,n,arguments)}}),$1=he((e,t)=>{var r=Q1(),n=Is(),a=Wc(),i=J1();t.exports=function(s){var u=a(arguments),d=s.length-(arguments.length-1);return r(u,1+(d>0?d:0),!0)},n?n(t.exports,"apply",{value:i}):t.exports.apply=i}),E0=he((e,t)=>{Fa();var r=Y1(),n=P1(),a=$1(),i=S0(),l=Ji(),s=_0(),u=i("Object.prototype.toString"),d=Xc()(),y=typeof globalThis>"u"?yt:globalThis,g=n(),v=i("String.prototype.slice"),h=i("Array.prototype.indexOf",!0)||function(f,p){for(var b=0;b<f.length;b+=1)if(f[b]===p)return b;return-1},_={__proto__:null};d&&l&&s?r(g,function(m){var f=new y[m];if(Symbol.toStringTag in f&&s){var p=s(f),b=l(p,Symbol.toStringTag);!b&&p&&(b=l(s(p),Symbol.toStringTag)),_["$"+m]=a(b.get)}}):r(g,function(m){var f=new y[m],p=f.slice||f.set;p&&(_["$"+m]=a(p))});var E=function(f){var p=!1;return r(_,function(b,A){if(!p)try{"$"+b(f)===A&&(p=v(A,1))}catch{}}),p},R=function(f){var p=!1;return r(_,function(b,A){if(!p)try{b(f),p=v(A,1)}catch{}}),p};t.exports=function(f){if(!f||typeof f!="object")return!1;if(!d){var p=v(u(f),8,-1);return h(g,p)>-1?p:p!=="Object"?!1:R(f)}return l?E(f):null}}),eb=he((e,t)=>{var r=E0();t.exports=function(a){return!!r(a)}}),tb=he(e=>{var t=G1(),r=V1(),n=E0(),a=eb();function i(T){return T.call.bind(T)}var l=typeof BigInt<"u",s=typeof Symbol<"u",u=i(Object.prototype.toString),d=i(Number.prototype.valueOf),y=i(String.prototype.valueOf),g=i(Boolean.prototype.valueOf);if(l)var v=i(BigInt.prototype.valueOf);if(s)var h=i(Symbol.prototype.valueOf);function _(T,H){if(typeof T!="object")return!1;try{return H(T),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=a;function E(T){return typeof Promise<"u"&&T instanceof Promise||T!==null&&typeof T=="object"&&typeof T.then=="function"&&typeof T.catch=="function"}e.isPromise=E;function R(T){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(T):a(T)||I(T)}e.isArrayBufferView=R;function m(T){return n(T)==="Uint8Array"}e.isUint8Array=m;function f(T){return n(T)==="Uint8ClampedArray"}e.isUint8ClampedArray=f;function p(T){return n(T)==="Uint16Array"}e.isUint16Array=p;function b(T){return n(T)==="Uint32Array"}e.isUint32Array=b;function A(T){return n(T)==="Int8Array"}e.isInt8Array=A;function S(T){return n(T)==="Int16Array"}e.isInt16Array=S;function B(T){return n(T)==="Int32Array"}e.isInt32Array=B;function z(T){return n(T)==="Float32Array"}e.isFloat32Array=z;function O(T){return n(T)==="Float64Array"}e.isFloat64Array=O;function G(T){return n(T)==="BigInt64Array"}e.isBigInt64Array=G;function ee(T){return n(T)==="BigUint64Array"}e.isBigUint64Array=ee;function M(T){return u(T)==="[object Map]"}M.working=typeof Map<"u"&&M(new Map);function K(T){return typeof Map>"u"?!1:M.working?M(T):T instanceof Map}e.isMap=K;function C(T){return u(T)==="[object Set]"}C.working=typeof Set<"u"&&C(new Set);function P(T){return typeof Set>"u"?!1:C.working?C(T):T instanceof Set}e.isSet=P;function X(T){return u(T)==="[object WeakMap]"}X.working=typeof WeakMap<"u"&&X(new WeakMap);function V(T){return typeof WeakMap>"u"?!1:X.working?X(T):T instanceof WeakMap}e.isWeakMap=V;function re(T){return u(T)==="[object WeakSet]"}re.working=typeof WeakSet<"u"&&re(new WeakSet);function Q(T){return re(T)}e.isWeakSet=Q;function te(T){return u(T)==="[object ArrayBuffer]"}te.working=typeof ArrayBuffer<"u"&&te(new ArrayBuffer);function Z(T){return typeof ArrayBuffer>"u"?!1:te.working?te(T):T instanceof ArrayBuffer}e.isArrayBuffer=Z;function D(T){return u(T)==="[object DataView]"}D.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&D(new DataView(new ArrayBuffer(1),0,1));function I(T){return typeof DataView>"u"?!1:D.working?D(T):T instanceof DataView}e.isDataView=I;var Y=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function $(T){return u(T)==="[object SharedArrayBuffer]"}function ue(T){return typeof Y>"u"?!1:(typeof $.working>"u"&&($.working=$(new Y)),$.working?$(T):T instanceof Y)}e.isSharedArrayBuffer=ue;function N(T){return u(T)==="[object AsyncFunction]"}e.isAsyncFunction=N;function x(T){return u(T)==="[object Map Iterator]"}e.isMapIterator=x;function F(T){return u(T)==="[object Set Iterator]"}e.isSetIterator=F;function j(T){return u(T)==="[object Generator]"}e.isGeneratorObject=j;function ne(T){return u(T)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=ne;function U(T){return _(T,d)}e.isNumberObject=U;function L(T){return _(T,y)}e.isStringObject=L;function w(T){return _(T,g)}e.isBooleanObject=w;function J(T){return l&&_(T,v)}e.isBigIntObject=J;function k(T){return s&&_(T,h)}e.isSymbolObject=k;function o(T){return U(T)||L(T)||w(T)||J(T)||k(T)}e.isBoxedPrimitive=o;function c(T){return typeof Uint8Array<"u"&&(Z(T)||ue(T))}e.isAnyArrayBuffer=c,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(T){Object.defineProperty(e,T,{enumerable:!1,value:function(){throw new Error(T+" is not supported in userland")}})})}),rb=he((e,t)=>{t.exports=function(n){return n&&typeof n=="object"&&typeof n.copy=="function"&&typeof n.fill=="function"&&typeof n.readUInt8=="function"}}),T0=he(e=>{hn();var t=Object.getOwnPropertyDescriptors||function(I){for(var Y=Object.keys(I),$={},ue=0;ue<Y.length;ue++)$[Y[ue]]=Object.getOwnPropertyDescriptor(I,Y[ue]);return $},r=/%[sdj%]/g;e.format=function(D){if(!A(D)){for(var I=[],Y=0;Y<arguments.length;Y++)I.push(l(arguments[Y]));return I.join(" ")}for(var Y=1,$=arguments,ue=$.length,N=String(D).replace(r,function(F){if(F==="%%")return"%";if(Y>=ue)return F;switch(F){case"%s":return String($[Y++]);case"%d":return Number($[Y++]);case"%j":try{return JSON.stringify($[Y++])}catch{return"[Circular]"}default:return F}}),x=$[Y];Y<ue;x=$[++Y])f(x)||!O(x)?N+=" "+x:N+=" "+l(x);return N},e.deprecate=function(D,I){if(typeof xe<"u"&&xe.noDeprecation===!0)return D;if(typeof xe>"u")return function(){return e.deprecate(D,I).apply(this,arguments)};var Y=!1;function $(){if(!Y){if(xe.throwDeprecation)throw new Error(I);xe.traceDeprecation?console.trace(I):console.error(I),Y=!0}return D.apply(this,arguments)}return $};var n={},a=/^$/;if(xe.env.NODE_DEBUG){var i=xe.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+i+"$","i")}e.debuglog=function(D){if(D=D.toUpperCase(),!n[D])if(a.test(D)){var I=xe.pid;n[D]=function(){var Y=e.format.apply(e,arguments);console.error("%s %d: %s",D,I,Y)}}else n[D]=function(){};return n[D]};function l(D,I){var Y={seen:[],stylize:u};return arguments.length>=3&&(Y.depth=arguments[2]),arguments.length>=4&&(Y.colors=arguments[3]),m(I)?Y.showHidden=I:I&&e._extend(Y,I),B(Y.showHidden)&&(Y.showHidden=!1),B(Y.depth)&&(Y.depth=2),B(Y.colors)&&(Y.colors=!1),B(Y.customInspect)&&(Y.customInspect=!0),Y.colors&&(Y.stylize=s),y(Y,D,Y.depth)}e.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function s(D,I){var Y=l.styles[I];return Y?"\x1B["+l.colors[Y][0]+"m"+D+"\x1B["+l.colors[Y][1]+"m":D}function u(D,I){return D}function d(D){var I={};return D.forEach(function(Y,$){I[Y]=!0}),I}function y(D,I,Y){if(D.customInspect&&I&&M(I.inspect)&&I.inspect!==e.inspect&&!(I.constructor&&I.constructor.prototype===I)){var $=I.inspect(Y,D);return A($)||($=y(D,$,Y)),$}var ue=g(D,I);if(ue)return ue;var N=Object.keys(I),x=d(N);if(D.showHidden&&(N=Object.getOwnPropertyNames(I)),ee(I)&&(N.indexOf("message")>=0||N.indexOf("description")>=0))return v(I);if(N.length===0){if(M(I)){var F=I.name?": "+I.name:"";return D.stylize("[Function"+F+"]","special")}if(z(I))return D.stylize(RegExp.prototype.toString.call(I),"regexp");if(G(I))return D.stylize(Date.prototype.toString.call(I),"date");if(ee(I))return v(I)}var j="",ne=!1,U=["{","}"];if(R(I)&&(ne=!0,U=["[","]"]),M(I)&&(j=" [Function"+(I.name?": "+I.name:"")+"]"),z(I)&&(j=" "+RegExp.prototype.toString.call(I)),G(I)&&(j=" "+Date.prototype.toUTCString.call(I)),ee(I)&&(j=" "+v(I)),N.length===0&&(!ne||I.length==0))return U[0]+j+U[1];if(Y<0)return z(I)?D.stylize(RegExp.prototype.toString.call(I),"regexp"):D.stylize("[Object]","special");D.seen.push(I);var L;return ne?L=h(D,I,Y,x,N):L=N.map(function(w){return _(D,I,Y,x,w,ne)}),D.seen.pop(),E(L,j,U)}function g(D,I){if(B(I))return D.stylize("undefined","undefined");if(A(I)){var Y="'"+JSON.stringify(I).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return D.stylize(Y,"string")}if(b(I))return D.stylize(""+I,"number");if(m(I))return D.stylize(""+I,"boolean");if(f(I))return D.stylize("null","null")}function v(D){return"["+Error.prototype.toString.call(D)+"]"}function h(D,I,Y,$,ue){for(var N=[],x=0,F=I.length;x<F;++x)re(I,String(x))?N.push(_(D,I,Y,$,String(x),!0)):N.push("");return ue.forEach(function(j){j.match(/^\d+$/)||N.push(_(D,I,Y,$,j,!0))}),N}function _(D,I,Y,$,ue,N){var x,F,j=Object.getOwnPropertyDescriptor(I,ue)||{value:I[ue]};if(j.get?j.set?F=D.stylize("[Getter/Setter]","special"):F=D.stylize("[Getter]","special"):j.set&&(F=D.stylize("[Setter]","special")),re($,ue)||(x="["+ue+"]"),F||(D.seen.indexOf(j.value)<0?(f(Y)?F=y(D,j.value,null):F=y(D,j.value,Y-1),F.indexOf(`
|
||
`)>-1&&(N?F=F.split(`
|
||
`).map(function(ne){return" "+ne}).join(`
|
||
`).slice(2):F=`
|
||
`+F.split(`
|
||
`).map(function(ne){return" "+ne}).join(`
|
||
`))):F=D.stylize("[Circular]","special")),B(x)){if(N&&ue.match(/^\d+$/))return F;x=JSON.stringify(""+ue),x.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(x=x.slice(1,-1),x=D.stylize(x,"name")):(x=x.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),x=D.stylize(x,"string"))}return x+": "+F}function E(D,I,Y){return D.reduce(function($,ue){return ue.indexOf(`
|
||
`)>=0,$+ue.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?Y[0]+(I===""?"":I+`
|
||
`)+" "+D.join(`,
|
||
`)+" "+Y[1]:Y[0]+I+" "+D.join(", ")+" "+Y[1]}e.types=tb();function R(D){return Array.isArray(D)}e.isArray=R;function m(D){return typeof D=="boolean"}e.isBoolean=m;function f(D){return D===null}e.isNull=f;function p(D){return D==null}e.isNullOrUndefined=p;function b(D){return typeof D=="number"}e.isNumber=b;function A(D){return typeof D=="string"}e.isString=A;function S(D){return typeof D=="symbol"}e.isSymbol=S;function B(D){return D===void 0}e.isUndefined=B;function z(D){return O(D)&&C(D)==="[object RegExp]"}e.isRegExp=z,e.types.isRegExp=z;function O(D){return typeof D=="object"&&D!==null}e.isObject=O;function G(D){return O(D)&&C(D)==="[object Date]"}e.isDate=G,e.types.isDate=G;function ee(D){return O(D)&&(C(D)==="[object Error]"||D instanceof Error)}e.isError=ee,e.types.isNativeError=ee;function M(D){return typeof D=="function"}e.isFunction=M;function K(D){return D===null||typeof D=="boolean"||typeof D=="number"||typeof D=="string"||typeof D=="symbol"||typeof D>"u"}e.isPrimitive=K,e.isBuffer=rb();function C(D){return Object.prototype.toString.call(D)}function P(D){return D<10?"0"+D.toString(10):D.toString(10)}var X=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function V(){var D=new Date,I=[P(D.getHours()),P(D.getMinutes()),P(D.getSeconds())].join(":");return[D.getDate(),X[D.getMonth()],I].join(" ")}e.log=function(){console.log("%s - %s",V(),e.format.apply(e,arguments))},e.inherits=fn(),e._extend=function(D,I){if(!I||!O(I))return D;for(var Y=Object.keys(I),$=Y.length;$--;)D[Y[$]]=I[Y[$]];return D};function re(D,I){return Object.prototype.hasOwnProperty.call(D,I)}var Q=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(I){if(typeof I!="function")throw new TypeError('The "original" argument must be of type Function');if(Q&&I[Q]){var Y=I[Q];if(typeof Y!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Y,Q,{value:Y,enumerable:!1,writable:!1,configurable:!0}),Y}function Y(){for(var $,ue,N=new Promise(function(j,ne){$=j,ue=ne}),x=[],F=0;F<arguments.length;F++)x.push(arguments[F]);x.push(function(j,ne){j?ue(j):$(ne)});try{I.apply(this,x)}catch(j){ue(j)}return N}return Object.setPrototypeOf(Y,Object.getPrototypeOf(I)),Q&&Object.defineProperty(Y,Q,{value:Y,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Y,t(I))},e.promisify.custom=Q;function te(D,I){if(!D){var Y=new Error("Promise was rejected with a falsy value");Y.reason=D,D=Y}return I(D)}function Z(D){if(typeof D!="function")throw new TypeError('The "original" argument must be of type Function');function I(){for(var Y=[],$=0;$<arguments.length;$++)Y.push(arguments[$]);var ue=Y.pop();if(typeof ue!="function")throw new TypeError("The last argument must be of type Function");var N=this,x=function(){return ue.apply(N,arguments)};D.apply(this,Y).then(function(F){xe.nextTick(x.bind(null,null,F))},function(F){xe.nextTick(te.bind(null,F,x))})}return Object.setPrototypeOf(I,Object.getPrototypeOf(D)),Object.defineProperties(I,t(D)),I}e.callbackify=Z}),nb=he((e,t)=>{function r(_,E){var R=Object.keys(_);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(_);E&&(m=m.filter(function(f){return Object.getOwnPropertyDescriptor(_,f).enumerable})),R.push.apply(R,m)}return R}function n(_){for(var E=1;E<arguments.length;E++){var R=arguments[E]!=null?arguments[E]:{};E%2?r(Object(R),!0).forEach(function(m){a(_,m,R[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(R)):r(Object(R)).forEach(function(m){Object.defineProperty(_,m,Object.getOwnPropertyDescriptor(R,m))})}return _}function a(_,E,R){return E=u(E),E in _?Object.defineProperty(_,E,{value:R,enumerable:!0,configurable:!0,writable:!0}):_[E]=R,_}function i(_,E){if(!(_ instanceof E))throw new TypeError("Cannot call a class as a function")}function l(_,E){for(var R=0;R<E.length;R++){var m=E[R];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(_,u(m.key),m)}}function s(_,E,R){return E&&l(_.prototype,E),Object.defineProperty(_,"prototype",{writable:!1}),_}function u(_){var E=d(_,"string");return typeof E=="symbol"?E:String(E)}function d(_,E){if(typeof _!="object"||_===null)return _;var R=_[Symbol.toPrimitive];if(R!==void 0){var m=R.call(_,E);if(typeof m!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(_)}var y=Hs().Buffer,g=T0().inspect,v=g&&g.custom||"inspect";function h(_,E,R){y.prototype.copy.call(_,E,R)}t.exports=function(){function _(){i(this,_),this.head=null,this.tail=null,this.length=0}return s(_,[{key:"push",value:function(R){var m={data:R,next:null};this.length>0?this.tail.next=m:this.head=m,this.tail=m,++this.length}},{key:"unshift",value:function(R){var m={data:R,next:this.head};this.length===0&&(this.tail=m),this.head=m,++this.length}},{key:"shift",value:function(){if(this.length!==0){var R=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,R}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(R){if(this.length===0)return"";for(var m=this.head,f=""+m.data;m=m.next;)f+=R+m.data;return f}},{key:"concat",value:function(R){if(this.length===0)return y.alloc(0);for(var m=y.allocUnsafe(R>>>0),f=this.head,p=0;f;)h(f.data,m,p),p+=f.data.length,f=f.next;return m}},{key:"consume",value:function(R,m){var f;return R<this.head.data.length?(f=this.head.data.slice(0,R),this.head.data=this.head.data.slice(R)):R===this.head.data.length?f=this.shift():f=m?this._getString(R):this._getBuffer(R),f}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(R){var m=this.head,f=1,p=m.data;for(R-=p.length;m=m.next;){var b=m.data,A=R>b.length?b.length:R;if(A===b.length?p+=b:p+=b.slice(0,R),R-=A,R===0){A===b.length?(++f,m.next?this.head=m.next:this.head=this.tail=null):(this.head=m,m.data=b.slice(A));break}++f}return this.length-=f,p}},{key:"_getBuffer",value:function(R){var m=y.allocUnsafe(R),f=this.head,p=1;for(f.data.copy(m),R-=f.data.length;f=f.next;){var b=f.data,A=R>b.length?b.length:R;if(b.copy(m,m.length-R,0,A),R-=A,R===0){A===b.length?(++p,f.next?this.head=f.next:this.head=this.tail=null):(this.head=f,f.data=b.slice(A));break}++p}return this.length-=p,m}},{key:v,value:function(R,m){return g(this,n(n({},m),{},{depth:0,customInspect:!1}))}}]),_}()}),A0=he((e,t)=>{hn();function r(u,d){var y=this,g=this._readableState&&this._readableState.destroyed,v=this._writableState&&this._writableState.destroyed;return g||v?(d?d(u):u&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,xe.nextTick(l,this,u)):xe.nextTick(l,this,u)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(u||null,function(h){!d&&h?y._writableState?y._writableState.errorEmitted?xe.nextTick(a,y):(y._writableState.errorEmitted=!0,xe.nextTick(n,y,h)):xe.nextTick(n,y,h):d?(xe.nextTick(a,y),d(h)):xe.nextTick(a,y)}),this)}function n(u,d){l(u,d),a(u)}function a(u){u._writableState&&!u._writableState.emitClose||u._readableState&&!u._readableState.emitClose||u.emit("close")}function i(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function l(u,d){u.emit("error",d)}function s(u,d){var y=u._readableState,g=u._writableState;y&&y.autoDestroy||g&&g.autoDestroy?u.destroy(d):u.emit("error",d)}t.exports={destroy:r,undestroy:i,errorOrDestroy:s}}),Ia=he((e,t)=>{function r(d,y){d.prototype=Object.create(y.prototype),d.prototype.constructor=d,d.__proto__=y}var n={};function a(d,y,g){g||(g=Error);function v(_,E,R){return typeof y=="string"?y:y(_,E,R)}var h=function(_){r(E,_);function E(R,m,f){return _.call(this,v(R,m,f))||this}return E}(g);h.prototype.name=g.name,h.prototype.code=d,n[d]=h}function i(d,y){if(Array.isArray(d)){var g=d.length;return d=d.map(function(v){return String(v)}),g>2?"one of ".concat(y," ").concat(d.slice(0,g-1).join(", "),", or ")+d[g-1]:g===2?"one of ".concat(y," ").concat(d[0]," or ").concat(d[1]):"of ".concat(y," ").concat(d[0])}else return"of ".concat(y," ").concat(String(d))}function l(d,y,g){return d.substr(0,y.length)===y}function s(d,y,g){return(g===void 0||g>d.length)&&(g=d.length),d.substring(g-y.length,g)===y}function u(d,y,g){return typeof g!="number"&&(g=0),g+y.length>d.length?!1:d.indexOf(y,g)!==-1}a("ERR_INVALID_OPT_VALUE",function(d,y){return'The value "'+y+'" is invalid for option "'+d+'"'},TypeError),a("ERR_INVALID_ARG_TYPE",function(d,y,g){var v;typeof y=="string"&&l(y,"not ")?(v="must not be",y=y.replace(/^not /,"")):v="must be";var h;if(s(d," argument"))h="The ".concat(d," ").concat(v," ").concat(i(y,"type"));else{var _=u(d,".")?"property":"argument";h='The "'.concat(d,'" ').concat(_," ").concat(v," ").concat(i(y,"type"))}return h+=". Received type ".concat(typeof g),h},TypeError),a("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),a("ERR_METHOD_NOT_IMPLEMENTED",function(d){return"The "+d+" method is not implemented"}),a("ERR_STREAM_PREMATURE_CLOSE","Premature close"),a("ERR_STREAM_DESTROYED",function(d){return"Cannot call "+d+" after a stream was destroyed"}),a("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),a("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),a("ERR_STREAM_WRITE_AFTER_END","write after end"),a("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),a("ERR_UNKNOWN_ENCODING",function(d){return"Unknown encoding: "+d},TypeError),a("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=n}),N0=he((e,t)=>{var r=Ia().codes.ERR_INVALID_OPT_VALUE;function n(i,l,s){return i.highWaterMark!=null?i.highWaterMark:l?i[s]:null}function a(i,l,s,u){var d=n(l,u,s);if(d!=null){if(!(isFinite(d)&&Math.floor(d)===d)||d<0)throw new r(u?s:"highWaterMark",d);return Math.floor(d)}return i.objectMode?16:16*1024}t.exports={getHighWaterMark:a}}),ab=he((e,t)=>{Fa(),t.exports=r;function r(a,i){if(n("noDeprecation"))return a;var l=!1;function s(){if(!l){if(n("throwDeprecation"))throw new Error(i);n("traceDeprecation")?console.trace(i):console.warn(i),l=!0}return a.apply(this,arguments)}return s}function n(a){try{if(!yt.localStorage)return!1}catch{return!1}var i=yt.localStorage[a];return i==null?!1:String(i).toLowerCase()==="true"}}),O0=he((e,t)=>{Fa(),hn(),t.exports=O;function r(N){var x=this;this.next=null,this.entry=null,this.finish=function(){ue(x,N)}}var n;O.WritableState=B;var a={deprecate:ab()},i=p0(),l=Hs().Buffer,s=(typeof yt<"u"?yt:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function u(N){return l.from(N)}function d(N){return l.isBuffer(N)||N instanceof s}var y=A0(),g=N0().getHighWaterMark,v=Ia().codes,h=v.ERR_INVALID_ARG_TYPE,_=v.ERR_METHOD_NOT_IMPLEMENTED,E=v.ERR_MULTIPLE_CALLBACK,R=v.ERR_STREAM_CANNOT_PIPE,m=v.ERR_STREAM_DESTROYED,f=v.ERR_STREAM_NULL_VALUES,p=v.ERR_STREAM_WRITE_AFTER_END,b=v.ERR_UNKNOWN_ENCODING,A=y.errorOrDestroy;fn()(O,i);function S(){}function B(N,x,F){n=n||Na(),N=N||{},typeof F!="boolean"&&(F=x instanceof n),this.objectMode=!!N.objectMode,F&&(this.objectMode=this.objectMode||!!N.writableObjectMode),this.highWaterMark=g(this,N,"writableHighWaterMark",F),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=N.decodeStrings!==!1,this.defaultEncoding=N.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(j){V(x,j)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=N.emitClose!==!1,this.autoDestroy=!!N.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}B.prototype.getBuffer=function(){for(var x=this.bufferedRequest,F=[];x;)F.push(x),x=x.next;return F},function(){try{Object.defineProperty(B.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var z;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(z=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(x){return z.call(this,x)?!0:this!==O?!1:x&&x._writableState instanceof B}})):z=function(x){return x instanceof this};function O(N){n=n||Na();var x=this instanceof n;if(!x&&!z.call(O,this))return new O(N);this._writableState=new B(N,this,x),this.writable=!0,N&&(typeof N.write=="function"&&(this._write=N.write),typeof N.writev=="function"&&(this._writev=N.writev),typeof N.destroy=="function"&&(this._destroy=N.destroy),typeof N.final=="function"&&(this._final=N.final)),i.call(this)}O.prototype.pipe=function(){A(this,new R)};function G(N,x){var F=new p;A(N,F),xe.nextTick(x,F)}function ee(N,x,F,j){var ne;return F===null?ne=new f:typeof F!="string"&&!x.objectMode&&(ne=new h("chunk",["string","Buffer"],F)),ne?(A(N,ne),xe.nextTick(j,ne),!1):!0}O.prototype.write=function(N,x,F){var j=this._writableState,ne=!1,U=!j.objectMode&&d(N);return U&&!l.isBuffer(N)&&(N=u(N)),typeof x=="function"&&(F=x,x=null),U?x="buffer":x||(x=j.defaultEncoding),typeof F!="function"&&(F=S),j.ending?G(this,F):(U||ee(this,j,N,F))&&(j.pendingcb++,ne=K(this,j,U,N,x,F)),ne},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){var N=this._writableState;N.corked&&(N.corked--,!N.writing&&!N.corked&&!N.bufferProcessing&&N.bufferedRequest&&te(this,N))},O.prototype.setDefaultEncoding=function(x){if(typeof x=="string"&&(x=x.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((x+"").toLowerCase())>-1))throw new b(x);return this._writableState.defaultEncoding=x,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function M(N,x,F){return!N.objectMode&&N.decodeStrings!==!1&&typeof x=="string"&&(x=l.from(x,F)),x}Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function K(N,x,F,j,ne,U){if(!F){var L=M(x,j,ne);j!==L&&(F=!0,ne="buffer",j=L)}var w=x.objectMode?1:j.length;x.length+=w;var J=x.length<x.highWaterMark;if(J||(x.needDrain=!0),x.writing||x.corked){var k=x.lastBufferedRequest;x.lastBufferedRequest={chunk:j,encoding:ne,isBuf:F,callback:U,next:null},k?k.next=x.lastBufferedRequest:x.bufferedRequest=x.lastBufferedRequest,x.bufferedRequestCount+=1}else C(N,x,!1,w,j,ne,U);return J}function C(N,x,F,j,ne,U,L){x.writelen=j,x.writecb=L,x.writing=!0,x.sync=!0,x.destroyed?x.onwrite(new m("write")):F?N._writev(ne,x.onwrite):N._write(ne,U,x.onwrite),x.sync=!1}function P(N,x,F,j,ne){--x.pendingcb,F?(xe.nextTick(ne,j),xe.nextTick(Y,N,x),N._writableState.errorEmitted=!0,A(N,j)):(ne(j),N._writableState.errorEmitted=!0,A(N,j),Y(N,x))}function X(N){N.writing=!1,N.writecb=null,N.length-=N.writelen,N.writelen=0}function V(N,x){var F=N._writableState,j=F.sync,ne=F.writecb;if(typeof ne!="function")throw new E;if(X(F),x)P(N,F,j,x,ne);else{var U=Z(F)||N.destroyed;!U&&!F.corked&&!F.bufferProcessing&&F.bufferedRequest&&te(N,F),j?xe.nextTick(re,N,F,U,ne):re(N,F,U,ne)}}function re(N,x,F,j){F||Q(N,x),x.pendingcb--,j(),Y(N,x)}function Q(N,x){x.length===0&&x.needDrain&&(x.needDrain=!1,N.emit("drain"))}function te(N,x){x.bufferProcessing=!0;var F=x.bufferedRequest;if(N._writev&&F&&F.next){var j=x.bufferedRequestCount,ne=new Array(j),U=x.corkedRequestsFree;U.entry=F;for(var L=0,w=!0;F;)ne[L]=F,F.isBuf||(w=!1),F=F.next,L+=1;ne.allBuffers=w,C(N,x,!0,x.length,ne,"",U.finish),x.pendingcb++,x.lastBufferedRequest=null,U.next?(x.corkedRequestsFree=U.next,U.next=null):x.corkedRequestsFree=new r(x),x.bufferedRequestCount=0}else{for(;F;){var J=F.chunk,k=F.encoding,o=F.callback;if(C(N,x,!1,x.objectMode?1:J.length,J,k,o),F=F.next,x.bufferedRequestCount--,x.writing)break}F===null&&(x.lastBufferedRequest=null)}x.bufferedRequest=F,x.bufferProcessing=!1}O.prototype._write=function(N,x,F){F(new _("_write()"))},O.prototype._writev=null,O.prototype.end=function(N,x,F){var j=this._writableState;return typeof N=="function"?(F=N,N=null,x=null):typeof x=="function"&&(F=x,x=null),N!=null&&this.write(N,x),j.corked&&(j.corked=1,this.uncork()),j.ending||$(this,j,F),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Z(N){return N.ending&&N.length===0&&N.bufferedRequest===null&&!N.finished&&!N.writing}function D(N,x){N._final(function(F){x.pendingcb--,F&&A(N,F),x.prefinished=!0,N.emit("prefinish"),Y(N,x)})}function I(N,x){!x.prefinished&&!x.finalCalled&&(typeof N._final=="function"&&!x.destroyed?(x.pendingcb++,x.finalCalled=!0,xe.nextTick(D,N,x)):(x.prefinished=!0,N.emit("prefinish")))}function Y(N,x){var F=Z(x);if(F&&(I(N,x),x.pendingcb===0&&(x.finished=!0,N.emit("finish"),x.autoDestroy))){var j=N._readableState;(!j||j.autoDestroy&&j.endEmitted)&&N.destroy()}return F}function $(N,x,F){x.ending=!0,Y(N,x),F&&(x.finished?xe.nextTick(F):N.once("finish",F)),x.ended=!0,N.writable=!1}function ue(N,x,F){var j=N.entry;for(N.entry=null;j;){var ne=j.callback;x.pendingcb--,ne(F),j=j.next}x.corkedRequestsFree.next=N}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(x){this._writableState&&(this._writableState.destroyed=x)}}),O.prototype.destroy=y.destroy,O.prototype._undestroy=y.undestroy,O.prototype._destroy=function(N,x){x(N)}}),Na=he((e,t)=>{hn();var r=Object.keys||function(g){var v=[];for(var h in g)v.push(h);return v};t.exports=u;var n=R0(),a=O0();fn()(u,n);for(var i=r(a.prototype),l=0;l<i.length;l++){var s=i[l];u.prototype[s]||(u.prototype[s]=a.prototype[s])}function u(g){if(!(this instanceof u))return new u(g);n.call(this,g),a.call(this,g),this.allowHalfOpen=!0,g&&(g.readable===!1&&(this.readable=!1),g.writable===!1&&(this.writable=!1),g.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",d)))}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function d(){this._writableState.ended||xe.nextTick(y,this)}function y(g){g.end()}Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(v){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=v,this._writableState.destroyed=v)}})}),ib=he((e,t)=>{var r=Hs(),n=r.Buffer;function a(l,s){for(var u in l)s[u]=l[u]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(a(r,e),e.Buffer=i);function i(l,s,u){return n(l,s,u)}a(n,i),i.from=function(l,s,u){if(typeof l=="number")throw new TypeError("Argument must not be a number");return n(l,s,u)},i.alloc=function(l,s,u){if(typeof l!="number")throw new TypeError("Argument must be a number");var d=n(l);return s!==void 0?typeof u=="string"?d.fill(s,u):d.fill(s):d.fill(0),d},i.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return n(l)},i.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(l)}}),Iu=he(e=>{var t=ib().Buffer,r=t.isEncoding||function(f){switch(f=""+f,f&&f.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(f){if(!f)return"utf8";for(var p;;)switch(f){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return f;default:if(p)return;f=(""+f).toLowerCase(),p=!0}}function a(f){var p=n(f);if(typeof p!="string"&&(t.isEncoding===r||!r(f)))throw new Error("Unknown encoding: "+f);return p||f}e.StringDecoder=i;function i(f){this.encoding=a(f);var p;switch(this.encoding){case"utf16le":this.text=v,this.end=h,p=4;break;case"utf8":this.fillLast=d,p=4;break;case"base64":this.text=_,this.end=E,p=3;break;default:this.write=R,this.end=m;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(p)}i.prototype.write=function(f){if(f.length===0)return"";var p,b;if(this.lastNeed){if(p=this.fillLast(f),p===void 0)return"";b=this.lastNeed,this.lastNeed=0}else b=0;return b<f.length?p?p+this.text(f,b):this.text(f,b):p||""},i.prototype.end=g,i.prototype.text=y,i.prototype.fillLast=function(f){if(this.lastNeed<=f.length)return f.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);f.copy(this.lastChar,this.lastTotal-this.lastNeed,0,f.length),this.lastNeed-=f.length};function l(f){return f<=127?0:f>>5===6?2:f>>4===14?3:f>>3===30?4:f>>6===2?-1:-2}function s(f,p,b){var A=p.length-1;if(A<b)return 0;var S=l(p[A]);return S>=0?(S>0&&(f.lastNeed=S-1),S):--A<b||S===-2?0:(S=l(p[A]),S>=0?(S>0&&(f.lastNeed=S-2),S):--A<b||S===-2?0:(S=l(p[A]),S>=0?(S>0&&(S===2?S=0:f.lastNeed=S-3),S):0))}function u(f,p,b){if((p[0]&192)!==128)return f.lastNeed=0,"�";if(f.lastNeed>1&&p.length>1){if((p[1]&192)!==128)return f.lastNeed=1,"�";if(f.lastNeed>2&&p.length>2&&(p[2]&192)!==128)return f.lastNeed=2,"�"}}function d(f){var p=this.lastTotal-this.lastNeed,b=u(this,f);if(b!==void 0)return b;if(this.lastNeed<=f.length)return f.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);f.copy(this.lastChar,p,0,f.length),this.lastNeed-=f.length}function y(f,p){var b=s(this,f,p);if(!this.lastNeed)return f.toString("utf8",p);this.lastTotal=b;var A=f.length-(b-this.lastNeed);return f.copy(this.lastChar,0,A),f.toString("utf8",p,A)}function g(f){var p=f&&f.length?this.write(f):"";return this.lastNeed?p+"�":p}function v(f,p){if((f.length-p)%2===0){var b=f.toString("utf16le",p);if(b){var A=b.charCodeAt(b.length-1);if(A>=55296&&A<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=f[f.length-2],this.lastChar[1]=f[f.length-1],b.slice(0,-1)}return b}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=f[f.length-1],f.toString("utf16le",p,f.length-1)}function h(f){var p=f&&f.length?this.write(f):"";if(this.lastNeed){var b=this.lastTotal-this.lastNeed;return p+this.lastChar.toString("utf16le",0,b)}return p}function _(f,p){var b=(f.length-p)%3;return b===0?f.toString("base64",p):(this.lastNeed=3-b,this.lastTotal=3,b===1?this.lastChar[0]=f[f.length-1]:(this.lastChar[0]=f[f.length-2],this.lastChar[1]=f[f.length-1]),f.toString("base64",p,f.length-b))}function E(f){var p=f&&f.length?this.write(f):"";return this.lastNeed?p+this.lastChar.toString("base64",0,3-this.lastNeed):p}function R(f){return f.toString(this.encoding)}function m(f){return f&&f.length?this.write(f):""}}),Qc=he((e,t)=>{var r=Ia().codes.ERR_STREAM_PREMATURE_CLOSE;function n(s){var u=!1;return function(){if(!u){u=!0;for(var d=arguments.length,y=new Array(d),g=0;g<d;g++)y[g]=arguments[g];s.apply(this,y)}}}function a(){}function i(s){return s.setHeader&&typeof s.abort=="function"}function l(s,u,d){if(typeof u=="function")return l(s,null,u);u||(u={}),d=n(d||a);var y=u.readable||u.readable!==!1&&s.readable,g=u.writable||u.writable!==!1&&s.writable,v=function(){s.writable||_()},h=s._writableState&&s._writableState.finished,_=function(){g=!1,h=!0,y||d.call(s)},E=s._readableState&&s._readableState.endEmitted,R=function(){y=!1,E=!0,g||d.call(s)},m=function(A){d.call(s,A)},f=function(){var A;if(y&&!E)return(!s._readableState||!s._readableState.ended)&&(A=new r),d.call(s,A);if(g&&!h)return(!s._writableState||!s._writableState.ended)&&(A=new r),d.call(s,A)},p=function(){s.req.on("finish",_)};return i(s)?(s.on("complete",_),s.on("abort",f),s.req?p():s.on("request",p)):g&&!s._writableState&&(s.on("end",v),s.on("close",v)),s.on("end",R),s.on("finish",_),u.error!==!1&&s.on("error",m),s.on("close",f),function(){s.removeListener("complete",_),s.removeListener("abort",f),s.removeListener("request",p),s.req&&s.req.removeListener("finish",_),s.removeListener("end",v),s.removeListener("close",v),s.removeListener("finish",_),s.removeListener("end",R),s.removeListener("error",m),s.removeListener("close",f)}}t.exports=l}),lb=he((e,t)=>{hn();var r;function n(b,A,S){return A=a(A),A in b?Object.defineProperty(b,A,{value:S,enumerable:!0,configurable:!0,writable:!0}):b[A]=S,b}function a(b){var A=i(b,"string");return typeof A=="symbol"?A:String(A)}function i(b,A){if(typeof b!="object"||b===null)return b;var S=b[Symbol.toPrimitive];if(S!==void 0){var B=S.call(b,A);if(typeof B!="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return(A==="string"?String:Number)(b)}var l=Qc(),s=Symbol("lastResolve"),u=Symbol("lastReject"),d=Symbol("error"),y=Symbol("ended"),g=Symbol("lastPromise"),v=Symbol("handlePromise"),h=Symbol("stream");function _(b,A){return{value:b,done:A}}function E(b){var A=b[s];if(A!==null){var S=b[h].read();S!==null&&(b[g]=null,b[s]=null,b[u]=null,A(_(S,!1)))}}function R(b){xe.nextTick(E,b)}function m(b,A){return function(S,B){b.then(function(){if(A[y]){S(_(void 0,!0));return}A[v](S,B)},B)}}var f=Object.getPrototypeOf(function(){}),p=Object.setPrototypeOf((r={get stream(){return this[h]},next:function(){var A=this,S=this[d];if(S!==null)return Promise.reject(S);if(this[y])return Promise.resolve(_(void 0,!0));if(this[h].destroyed)return new Promise(function(G,ee){xe.nextTick(function(){A[d]?ee(A[d]):G(_(void 0,!0))})});var B=this[g],z;if(B)z=new Promise(m(B,this));else{var O=this[h].read();if(O!==null)return Promise.resolve(_(O,!1));z=new Promise(this[v])}return this[g]=z,z}},n(r,Symbol.asyncIterator,function(){return this}),n(r,"return",function(){var A=this;return new Promise(function(S,B){A[h].destroy(null,function(z){if(z){B(z);return}S(_(void 0,!0))})})}),r),f);t.exports=function(A){var S,B=Object.create(p,(S={},n(S,h,{value:A,writable:!0}),n(S,s,{value:null,writable:!0}),n(S,u,{value:null,writable:!0}),n(S,d,{value:null,writable:!0}),n(S,y,{value:A._readableState.endEmitted,writable:!0}),n(S,v,{value:function(O,G){var ee=B[h].read();ee?(B[g]=null,B[s]=null,B[u]=null,O(_(ee,!1))):(B[s]=O,B[u]=G)},writable:!0}),S));return B[g]=null,l(A,function(z){if(z&&z.code!=="ERR_STREAM_PREMATURE_CLOSE"){var O=B[u];O!==null&&(B[g]=null,B[s]=null,B[u]=null,O(z)),B[d]=z;return}var G=B[s];G!==null&&(B[g]=null,B[s]=null,B[u]=null,G(_(void 0,!0))),B[y]=!0}),A.on("readable",R.bind(null,B)),B}}),sb=he((e,t)=>{t.exports=function(){throw new Error("Readable.from is not available in the browser")}}),R0=he((e,t)=>{Fa(),hn(),t.exports=G;var r;G.ReadableState=O,Yc().EventEmitter;var n=function(L,w){return L.listeners(w).length},a=p0(),i=Hs().Buffer,l=(typeof yt<"u"?yt:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function s(U){return i.from(U)}function u(U){return i.isBuffer(U)||U instanceof l}var d=T0(),y;d&&d.debuglog?y=d.debuglog("stream"):y=function(){};var g=nb(),v=A0(),h=N0().getHighWaterMark,_=Ia().codes,E=_.ERR_INVALID_ARG_TYPE,R=_.ERR_STREAM_PUSH_AFTER_EOF,m=_.ERR_METHOD_NOT_IMPLEMENTED,f=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,p,b,A;fn()(G,a);var S=v.errorOrDestroy,B=["error","close","destroy","pause","resume"];function z(U,L,w){if(typeof U.prependListener=="function")return U.prependListener(L,w);!U._events||!U._events[L]?U.on(L,w):Array.isArray(U._events[L])?U._events[L].unshift(w):U._events[L]=[w,U._events[L]]}function O(U,L,w){r=r||Na(),U=U||{},typeof w!="boolean"&&(w=L instanceof r),this.objectMode=!!U.objectMode,w&&(this.objectMode=this.objectMode||!!U.readableObjectMode),this.highWaterMark=h(this,U,"readableHighWaterMark",w),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=U.emitClose!==!1,this.autoDestroy=!!U.autoDestroy,this.destroyed=!1,this.defaultEncoding=U.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,U.encoding&&(p||(p=Iu().StringDecoder),this.decoder=new p(U.encoding),this.encoding=U.encoding)}function G(U){if(r=r||Na(),!(this instanceof G))return new G(U);var L=this instanceof r;this._readableState=new O(U,this,L),this.readable=!0,U&&(typeof U.read=="function"&&(this._read=U.read),typeof U.destroy=="function"&&(this._destroy=U.destroy)),a.call(this)}Object.defineProperty(G.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(L){this._readableState&&(this._readableState.destroyed=L)}}),G.prototype.destroy=v.destroy,G.prototype._undestroy=v.undestroy,G.prototype._destroy=function(U,L){L(U)},G.prototype.push=function(U,L){var w=this._readableState,J;return w.objectMode?J=!0:typeof U=="string"&&(L=L||w.defaultEncoding,L!==w.encoding&&(U=i.from(U,L),L=""),J=!0),ee(this,U,L,!1,J)},G.prototype.unshift=function(U){return ee(this,U,null,!0,!1)};function ee(U,L,w,J,k){y("readableAddChunk",L);var o=U._readableState;if(L===null)o.reading=!1,V(U,o);else{var c;if(k||(c=K(o,L)),c)S(U,c);else if(o.objectMode||L&&L.length>0)if(typeof L!="string"&&!o.objectMode&&Object.getPrototypeOf(L)!==i.prototype&&(L=s(L)),J)o.endEmitted?S(U,new f):M(U,o,L,!0);else if(o.ended)S(U,new R);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!w?(L=o.decoder.write(L),o.objectMode||L.length!==0?M(U,o,L,!1):te(U,o)):M(U,o,L,!1)}else J||(o.reading=!1,te(U,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function M(U,L,w,J){L.flowing&&L.length===0&&!L.sync?(L.awaitDrain=0,U.emit("data",w)):(L.length+=L.objectMode?1:w.length,J?L.buffer.unshift(w):L.buffer.push(w),L.needReadable&&re(U)),te(U,L)}function K(U,L){var w;return!u(L)&&typeof L!="string"&&L!==void 0&&!U.objectMode&&(w=new E("chunk",["string","Buffer","Uint8Array"],L)),w}G.prototype.isPaused=function(){return this._readableState.flowing===!1},G.prototype.setEncoding=function(U){p||(p=Iu().StringDecoder);var L=new p(U);this._readableState.decoder=L,this._readableState.encoding=this._readableState.decoder.encoding;for(var w=this._readableState.buffer.head,J="";w!==null;)J+=L.write(w.data),w=w.next;return this._readableState.buffer.clear(),J!==""&&this._readableState.buffer.push(J),this._readableState.length=J.length,this};var C=1073741824;function P(U){return U>=C?U=C:(U--,U|=U>>>1,U|=U>>>2,U|=U>>>4,U|=U>>>8,U|=U>>>16,U++),U}function X(U,L){return U<=0||L.length===0&&L.ended?0:L.objectMode?1:U!==U?L.flowing&&L.length?L.buffer.head.data.length:L.length:(U>L.highWaterMark&&(L.highWaterMark=P(U)),U<=L.length?U:L.ended?L.length:(L.needReadable=!0,0))}G.prototype.read=function(U){y("read",U),U=parseInt(U,10);var L=this._readableState,w=U;if(U!==0&&(L.emittedReadable=!1),U===0&&L.needReadable&&((L.highWaterMark!==0?L.length>=L.highWaterMark:L.length>0)||L.ended))return y("read: emitReadable",L.length,L.ended),L.length===0&&L.ended?F(this):re(this),null;if(U=X(U,L),U===0&&L.ended)return L.length===0&&F(this),null;var J=L.needReadable;y("need readable",J),(L.length===0||L.length-U<L.highWaterMark)&&(J=!0,y("length less than watermark",J)),L.ended||L.reading?(J=!1,y("reading or ended",J)):J&&(y("do read"),L.reading=!0,L.sync=!0,L.length===0&&(L.needReadable=!0),this._read(L.highWaterMark),L.sync=!1,L.reading||(U=X(w,L)));var k;return U>0?k=x(U,L):k=null,k===null?(L.needReadable=L.length<=L.highWaterMark,U=0):(L.length-=U,L.awaitDrain=0),L.length===0&&(L.ended||(L.needReadable=!0),w!==U&&L.ended&&F(this)),k!==null&&this.emit("data",k),k};function V(U,L){if(y("onEofChunk"),!L.ended){if(L.decoder){var w=L.decoder.end();w&&w.length&&(L.buffer.push(w),L.length+=L.objectMode?1:w.length)}L.ended=!0,L.sync?re(U):(L.needReadable=!1,L.emittedReadable||(L.emittedReadable=!0,Q(U)))}}function re(U){var L=U._readableState;y("emitReadable",L.needReadable,L.emittedReadable),L.needReadable=!1,L.emittedReadable||(y("emitReadable",L.flowing),L.emittedReadable=!0,xe.nextTick(Q,U))}function Q(U){var L=U._readableState;y("emitReadable_",L.destroyed,L.length,L.ended),!L.destroyed&&(L.length||L.ended)&&(U.emit("readable"),L.emittedReadable=!1),L.needReadable=!L.flowing&&!L.ended&&L.length<=L.highWaterMark,N(U)}function te(U,L){L.readingMore||(L.readingMore=!0,xe.nextTick(Z,U,L))}function Z(U,L){for(;!L.reading&&!L.ended&&(L.length<L.highWaterMark||L.flowing&&L.length===0);){var w=L.length;if(y("maybeReadMore read 0"),U.read(0),w===L.length)break}L.readingMore=!1}G.prototype._read=function(U){S(this,new m("_read()"))},G.prototype.pipe=function(U,L){var w=this,J=this._readableState;switch(J.pipesCount){case 0:J.pipes=U;break;case 1:J.pipes=[J.pipes,U];break;default:J.pipes.push(U);break}J.pipesCount+=1,y("pipe count=%d opts=%j",J.pipesCount,L);var k=(!L||L.end!==!1)&&U!==xe.stdout&&U!==xe.stderr?c:pe;J.endEmitted?xe.nextTick(k):w.once("end",k),U.on("unpipe",o);function o(me,ve){y("onunpipe"),me===w&&ve&&ve.hasUnpiped===!1&&(ve.hasUnpiped=!0,W())}function c(){y("onend"),U.end()}var T=D(w);U.on("drain",T);var H=!1;function W(){y("cleanup"),U.removeListener("close",ce),U.removeListener("finish",ie),U.removeListener("drain",T),U.removeListener("error",ae),U.removeListener("unpipe",o),w.removeListener("end",c),w.removeListener("end",pe),w.removeListener("data",q),H=!0,J.awaitDrain&&(!U._writableState||U._writableState.needDrain)&&T()}w.on("data",q);function q(me){y("ondata");var ve=U.write(me);y("dest.write",ve),ve===!1&&((J.pipesCount===1&&J.pipes===U||J.pipesCount>1&&ne(J.pipes,U)!==-1)&&!H&&(y("false write response, pause",J.awaitDrain),J.awaitDrain++),w.pause())}function ae(me){y("onerror",me),pe(),U.removeListener("error",ae),n(U,"error")===0&&S(U,me)}z(U,"error",ae);function ce(){U.removeListener("finish",ie),pe()}U.once("close",ce);function ie(){y("onfinish"),U.removeListener("close",ce),pe()}U.once("finish",ie);function pe(){y("unpipe"),w.unpipe(U)}return U.emit("pipe",w),J.flowing||(y("pipe resume"),w.resume()),U};function D(U){return function(){var w=U._readableState;y("pipeOnDrain",w.awaitDrain),w.awaitDrain&&w.awaitDrain--,w.awaitDrain===0&&n(U,"data")&&(w.flowing=!0,N(U))}}G.prototype.unpipe=function(U){var L=this._readableState,w={hasUnpiped:!1};if(L.pipesCount===0)return this;if(L.pipesCount===1)return U&&U!==L.pipes?this:(U||(U=L.pipes),L.pipes=null,L.pipesCount=0,L.flowing=!1,U&&U.emit("unpipe",this,w),this);if(!U){var J=L.pipes,k=L.pipesCount;L.pipes=null,L.pipesCount=0,L.flowing=!1;for(var o=0;o<k;o++)J[o].emit("unpipe",this,{hasUnpiped:!1});return this}var c=ne(L.pipes,U);return c===-1?this:(L.pipes.splice(c,1),L.pipesCount-=1,L.pipesCount===1&&(L.pipes=L.pipes[0]),U.emit("unpipe",this,w),this)},G.prototype.on=function(U,L){var w=a.prototype.on.call(this,U,L),J=this._readableState;return U==="data"?(J.readableListening=this.listenerCount("readable")>0,J.flowing!==!1&&this.resume()):U==="readable"&&!J.endEmitted&&!J.readableListening&&(J.readableListening=J.needReadable=!0,J.flowing=!1,J.emittedReadable=!1,y("on readable",J.length,J.reading),J.length?re(this):J.reading||xe.nextTick(Y,this)),w},G.prototype.addListener=G.prototype.on,G.prototype.removeListener=function(U,L){var w=a.prototype.removeListener.call(this,U,L);return U==="readable"&&xe.nextTick(I,this),w},G.prototype.removeAllListeners=function(U){var L=a.prototype.removeAllListeners.apply(this,arguments);return(U==="readable"||U===void 0)&&xe.nextTick(I,this),L};function I(U){var L=U._readableState;L.readableListening=U.listenerCount("readable")>0,L.resumeScheduled&&!L.paused?L.flowing=!0:U.listenerCount("data")>0&&U.resume()}function Y(U){y("readable nexttick read 0"),U.read(0)}G.prototype.resume=function(){var U=this._readableState;return U.flowing||(y("resume"),U.flowing=!U.readableListening,$(this,U)),U.paused=!1,this};function $(U,L){L.resumeScheduled||(L.resumeScheduled=!0,xe.nextTick(ue,U,L))}function ue(U,L){y("resume",L.reading),L.reading||U.read(0),L.resumeScheduled=!1,U.emit("resume"),N(U),L.flowing&&!L.reading&&U.read(0)}G.prototype.pause=function(){return y("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(y("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function N(U){var L=U._readableState;for(y("flow",L.flowing);L.flowing&&U.read()!==null;);}G.prototype.wrap=function(U){var L=this,w=this._readableState,J=!1;U.on("end",function(){if(y("wrapped end"),w.decoder&&!w.ended){var c=w.decoder.end();c&&c.length&&L.push(c)}L.push(null)}),U.on("data",function(c){y("wrapped data"),w.decoder&&(c=w.decoder.write(c)),!(w.objectMode&&c==null)&&(!w.objectMode&&(!c||!c.length)||L.push(c)||(J=!0,U.pause()))});for(var k in U)this[k]===void 0&&typeof U[k]=="function"&&(this[k]=function(T){return function(){return U[T].apply(U,arguments)}}(k));for(var o=0;o<B.length;o++)U.on(B[o],this.emit.bind(this,B[o]));return this._read=function(c){y("wrapped _read",c),J&&(J=!1,U.resume())},this},typeof Symbol=="function"&&(G.prototype[Symbol.asyncIterator]=function(){return b===void 0&&(b=lb()),b(this)}),Object.defineProperty(G.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(G.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(G.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(L){this._readableState&&(this._readableState.flowing=L)}}),G._fromList=x,Object.defineProperty(G.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function x(U,L){if(L.length===0)return null;var w;return L.objectMode?w=L.buffer.shift():!U||U>=L.length?(L.decoder?w=L.buffer.join(""):L.buffer.length===1?w=L.buffer.first():w=L.buffer.concat(L.length),L.buffer.clear()):w=L.buffer.consume(U,L.decoder),w}function F(U){var L=U._readableState;y("endReadable",L.endEmitted),L.endEmitted||(L.ended=!0,xe.nextTick(j,L,U))}function j(U,L){if(y("endReadableNT",U.endEmitted,U.length),!U.endEmitted&&U.length===0&&(U.endEmitted=!0,L.readable=!1,L.emit("end"),U.autoDestroy)){var w=L._writableState;(!w||w.autoDestroy&&w.finished)&&L.destroy()}}typeof Symbol=="function"&&(G.from=function(U,L){return A===void 0&&(A=sb()),A(G,U,L)});function ne(U,L){for(var w=0,J=U.length;w<J;w++)if(U[w]===L)return w;return-1}}),C0=he((e,t)=>{t.exports=d;var r=Ia().codes,n=r.ERR_METHOD_NOT_IMPLEMENTED,a=r.ERR_MULTIPLE_CALLBACK,i=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,l=r.ERR_TRANSFORM_WITH_LENGTH_0,s=Na();fn()(d,s);function u(v,h){var _=this._transformState;_.transforming=!1;var E=_.writecb;if(E===null)return this.emit("error",new a);_.writechunk=null,_.writecb=null,h!=null&&this.push(h),E(v);var R=this._readableState;R.reading=!1,(R.needReadable||R.length<R.highWaterMark)&&this._read(R.highWaterMark)}function d(v){if(!(this instanceof d))return new d(v);s.call(this,v),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,v&&(typeof v.transform=="function"&&(this._transform=v.transform),typeof v.flush=="function"&&(this._flush=v.flush)),this.on("prefinish",y)}function y(){var v=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(h,_){g(v,h,_)}):g(this,null,null)}d.prototype.push=function(v,h){return this._transformState.needTransform=!1,s.prototype.push.call(this,v,h)},d.prototype._transform=function(v,h,_){_(new n("_transform()"))},d.prototype._write=function(v,h,_){var E=this._transformState;if(E.writecb=_,E.writechunk=v,E.writeencoding=h,!E.transforming){var R=this._readableState;(E.needTransform||R.needReadable||R.length<R.highWaterMark)&&this._read(R.highWaterMark)}},d.prototype._read=function(v){var h=this._transformState;h.writechunk!==null&&!h.transforming?(h.transforming=!0,this._transform(h.writechunk,h.writeencoding,h.afterTransform)):h.needTransform=!0},d.prototype._destroy=function(v,h){s.prototype._destroy.call(this,v,function(_){h(_)})};function g(v,h,_){if(h)return v.emit("error",h);if(_!=null&&v.push(_),v._writableState.length)throw new l;if(v._transformState.transforming)throw new i;return v.push(null)}}),ob=he((e,t)=>{t.exports=n;var r=C0();fn()(n,r);function n(a){if(!(this instanceof n))return new n(a);r.call(this,a)}n.prototype._transform=function(a,i,l){l(null,a)}}),ub=he((e,t)=>{var r;function n(_){var E=!1;return function(){E||(E=!0,_.apply(void 0,arguments))}}var a=Ia().codes,i=a.ERR_MISSING_ARGS,l=a.ERR_STREAM_DESTROYED;function s(_){if(_)throw _}function u(_){return _.setHeader&&typeof _.abort=="function"}function d(_,E,R,m){m=n(m);var f=!1;_.on("close",function(){f=!0}),r===void 0&&(r=Qc()),r(_,{readable:E,writable:R},function(b){if(b)return m(b);f=!0,m()});var p=!1;return function(b){if(!f&&!p){if(p=!0,u(_))return _.abort();if(typeof _.destroy=="function")return _.destroy();m(b||new l("pipe"))}}}function y(_){_()}function g(_,E){return _.pipe(E)}function v(_){return!_.length||typeof _[_.length-1]!="function"?s:_.pop()}function h(){for(var _=arguments.length,E=new Array(_),R=0;R<_;R++)E[R]=arguments[R];var m=v(E);if(Array.isArray(E[0])&&(E=E[0]),E.length<2)throw new i("streams");var f,p=E.map(function(b,A){var S=A<E.length-1;return d(b,S,A>0,function(B){f||(f=B),B&&p.forEach(y),!S&&(p.forEach(y),m(f))})});return E.reduce(g)}t.exports=h}),Jc=he((e,t)=>{t.exports=n;var r=Yc().EventEmitter;fn()(n,r),n.Readable=R0(),n.Writable=O0(),n.Duplex=Na(),n.Transform=C0(),n.PassThrough=ob(),n.finished=Qc(),n.pipeline=ub(),n.Stream=n;function n(){r.call(this)}n.prototype.pipe=function(a,i){var l=this;function s(_){a.writable&&a.write(_)===!1&&l.pause&&l.pause()}l.on("data",s);function u(){l.readable&&l.resume&&l.resume()}a.on("drain",u),!a._isStdio&&(!i||i.end!==!1)&&(l.on("end",y),l.on("close",g));var d=!1;function y(){d||(d=!0,a.end())}function g(){d||(d=!0,typeof a.destroy=="function"&&a.destroy())}function v(_){if(h(),r.listenerCount(this,"error")===0)throw _}l.on("error",v),a.on("error",v);function h(){l.removeListener("data",s),a.removeListener("drain",u),l.removeListener("end",y),l.removeListener("close",g),l.removeListener("error",v),a.removeListener("error",v),l.removeListener("end",h),l.removeListener("close",h),a.removeListener("close",h)}return l.on("end",h),l.on("close",h),a.on("close",h),a.emit("pipe",l),a}}),cb=he(e=>{(function(t){t.parser=function(N,x){return new n(N,x)},t.SAXParser=n,t.SAXStream=y,t.createStream=d,t.MAX_BUFFER_LENGTH=64*1024;var r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(N,x){if(!(this instanceof n))return new n(N,x);var F=this;i(F),F.q=F.c="",F.bufferCheckPosition=t.MAX_BUFFER_LENGTH,F.opt=x||{},F.opt.lowercase=F.opt.lowercase||F.opt.lowercasetags,F.looseCase=F.opt.lowercase?"toLowerCase":"toUpperCase",F.tags=[],F.closed=F.closedRoot=F.sawRoot=!1,F.tag=F.error=null,F.strict=!!N,F.noscript=!!(N||F.opt.noscript),F.state=O.BEGIN,F.strictEntities=F.opt.strictEntities,F.ENTITIES=F.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),F.attribList=[],F.opt.xmlns&&(F.ns=Object.create(E)),F.trackPosition=F.opt.position!==!1,F.trackPosition&&(F.position=F.line=F.column=0),ee(F,"onready")}Object.create||(Object.create=function(N){function x(){}return x.prototype=N,new x}),Object.keys||(Object.keys=function(N){var x=[];for(var F in N)N.hasOwnProperty(F)&&x.push(F);return x});function a(N){for(var x=Math.max(t.MAX_BUFFER_LENGTH,10),F=0,j=0,ne=r.length;j<ne;j++){var U=N[r[j]].length;if(U>x)switch(r[j]){case"textNode":K(N);break;case"cdata":M(N,"oncdata",N.cdata),N.cdata="";break;case"script":M(N,"onscript",N.script),N.script="";break;default:P(N,"Max buffer length exceeded: "+r[j])}F=Math.max(F,U)}N.bufferCheckPosition=t.MAX_BUFFER_LENGTH-F+N.position}function i(N){for(var x=0,F=r.length;x<F;x++)N[r[x]]=""}function l(N){K(N),N.cdata!==""&&(M(N,"oncdata",N.cdata),N.cdata=""),N.script!==""&&(M(N,"onscript",N.script),N.script="")}n.prototype={end:function(){X(this)},write:ue,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){l(this)}};var s;try{s=Jc().Stream}catch{s=function(){}}var u=t.EVENTS.filter(function(N){return N!=="error"&&N!=="end"});function d(N,x){return new y(N,x)}function y(N,x){if(!(this instanceof y))return new y(N,x);s.apply(this),this._parser=new n(N,x),this.writable=!0,this.readable=!0;var F=this;this._parser.onend=function(){F.emit("end")},this._parser.onerror=function(j){F.emit("error",j),F._parser.error=null},this._decoder=null,u.forEach(function(j){Object.defineProperty(F,"on"+j,{get:function(){return F._parser["on"+j]},set:function(ne){if(!ne)return F.removeAllListeners(j),F._parser["on"+j]=ne,ne;F.on(j,ne)},enumerable:!0,configurable:!1})})}y.prototype=Object.create(s.prototype,{constructor:{value:y}}),y.prototype.write=function(N){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(N)){if(!this._decoder){var x=Iu().StringDecoder;this._decoder=new x("utf8")}N=this._decoder.write(N)}return this._parser.write(N.toString()),this.emit("data",N),!0},y.prototype.end=function(N){return N&&N.length&&this.write(N),this._parser.end(),!0},y.prototype.on=function(N,x){var F=this;return!F._parser["on"+N]&&u.indexOf(N)!==-1&&(F._parser["on"+N]=function(){var j=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);j.splice(0,0,N),F.emit.apply(F,j)}),s.prototype.on.call(F,N,x)};var g="[CDATA[",v="DOCTYPE",h="http://www.w3.org/XML/1998/namespace",_="http://www.w3.org/2000/xmlns/",E={xml:h,xmlns:_},R=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,m=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,f=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,p=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function b(N){return N===" "||N===`
|
||
`||N==="\r"||N===" "}function A(N){return N==='"'||N==="'"}function S(N){return N===">"||b(N)}function B(N,x){return N.test(x)}function z(N,x){return!B(N,x)}var O=0;t.STATE={BEGIN:O++,BEGIN_WHITESPACE:O++,TEXT:O++,TEXT_ENTITY:O++,OPEN_WAKA:O++,SGML_DECL:O++,SGML_DECL_QUOTED:O++,DOCTYPE:O++,DOCTYPE_QUOTED:O++,DOCTYPE_DTD:O++,DOCTYPE_DTD_QUOTED:O++,COMMENT_STARTING:O++,COMMENT:O++,COMMENT_ENDING:O++,COMMENT_ENDED:O++,CDATA:O++,CDATA_ENDING:O++,CDATA_ENDING_2:O++,PROC_INST:O++,PROC_INST_BODY:O++,PROC_INST_ENDING:O++,OPEN_TAG:O++,OPEN_TAG_SLASH:O++,ATTRIB:O++,ATTRIB_NAME:O++,ATTRIB_NAME_SAW_WHITE:O++,ATTRIB_VALUE:O++,ATTRIB_VALUE_QUOTED:O++,ATTRIB_VALUE_CLOSED:O++,ATTRIB_VALUE_UNQUOTED:O++,ATTRIB_VALUE_ENTITY_Q:O++,ATTRIB_VALUE_ENTITY_U:O++,CLOSE_TAG:O++,CLOSE_TAG_SAW_WHITE:O++,SCRIPT:O++,SCRIPT_ENDING:O++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(N){var x=t.ENTITIES[N],F=typeof x=="number"?String.fromCharCode(x):x;t.ENTITIES[N]=F});for(var G in t.STATE)t.STATE[t.STATE[G]]=G;O=t.STATE;function ee(N,x,F){N[x]&&N[x](F)}function M(N,x,F){N.textNode&&K(N),ee(N,x,F)}function K(N){N.textNode=C(N.opt,N.textNode),N.textNode&&ee(N,"ontext",N.textNode),N.textNode=""}function C(N,x){return N.trim&&(x=x.trim()),N.normalize&&(x=x.replace(/\s+/g," ")),x}function P(N,x){return K(N),N.trackPosition&&(x+=`
|
||
Line: `+N.line+`
|
||
Column: `+N.column+`
|
||
Char: `+N.c),x=new Error(x),N.error=x,ee(N,"onerror",x),N}function X(N){return N.sawRoot&&!N.closedRoot&&V(N,"Unclosed root tag"),N.state!==O.BEGIN&&N.state!==O.BEGIN_WHITESPACE&&N.state!==O.TEXT&&P(N,"Unexpected end"),K(N),N.c="",N.closed=!0,ee(N,"onend"),n.call(N,N.strict,N.opt),N}function V(N,x){if(typeof N!="object"||!(N instanceof n))throw new Error("bad call to strictFail");N.strict&&P(N,x)}function re(N){N.strict||(N.tagName=N.tagName[N.looseCase]());var x=N.tags[N.tags.length-1]||N,F=N.tag={name:N.tagName,attributes:{}};N.opt.xmlns&&(F.ns=x.ns),N.attribList.length=0,M(N,"onopentagstart",F)}function Q(N,x){var F=N.indexOf(":")<0?["",N]:N.split(":"),j=F[0],ne=F[1];return x&&N==="xmlns"&&(j="xmlns",ne=""),{prefix:j,local:ne}}function te(N){if(N.strict||(N.attribName=N.attribName[N.looseCase]()),N.attribList.indexOf(N.attribName)!==-1||N.tag.attributes.hasOwnProperty(N.attribName)){N.attribName=N.attribValue="";return}if(N.opt.xmlns){var x=Q(N.attribName,!0),F=x.prefix,j=x.local;if(F==="xmlns")if(j==="xml"&&N.attribValue!==h)V(N,"xml: prefix must be bound to "+h+`
|
||
Actual: `+N.attribValue);else if(j==="xmlns"&&N.attribValue!==_)V(N,"xmlns: prefix must be bound to "+_+`
|
||
Actual: `+N.attribValue);else{var ne=N.tag,U=N.tags[N.tags.length-1]||N;ne.ns===U.ns&&(ne.ns=Object.create(U.ns)),ne.ns[j]=N.attribValue}N.attribList.push([N.attribName,N.attribValue])}else N.tag.attributes[N.attribName]=N.attribValue,M(N,"onattribute",{name:N.attribName,value:N.attribValue});N.attribName=N.attribValue=""}function Z(N,x){if(N.opt.xmlns){var F=N.tag,j=Q(N.tagName);F.prefix=j.prefix,F.local=j.local,F.uri=F.ns[j.prefix]||"",F.prefix&&!F.uri&&(V(N,"Unbound namespace prefix: "+JSON.stringify(N.tagName)),F.uri=j.prefix);var ne=N.tags[N.tags.length-1]||N;F.ns&&ne.ns!==F.ns&&Object.keys(F.ns).forEach(function(q){M(N,"onopennamespace",{prefix:q,uri:F.ns[q]})});for(var U=0,L=N.attribList.length;U<L;U++){var w=N.attribList[U],J=w[0],k=w[1],o=Q(J,!0),c=o.prefix,T=o.local,H=c===""?"":F.ns[c]||"",W={name:J,value:k,prefix:c,local:T,uri:H};c&&c!=="xmlns"&&!H&&(V(N,"Unbound namespace prefix: "+JSON.stringify(c)),W.uri=c),N.tag.attributes[J]=W,M(N,"onattribute",W)}N.attribList.length=0}N.tag.isSelfClosing=!!x,N.sawRoot=!0,N.tags.push(N.tag),M(N,"onopentag",N.tag),x||(!N.noscript&&N.tagName.toLowerCase()==="script"?N.state=O.SCRIPT:N.state=O.TEXT,N.tag=null,N.tagName=""),N.attribName=N.attribValue="",N.attribList.length=0}function D(N){if(!N.tagName){V(N,"Weird empty close tag."),N.textNode+="</>",N.state=O.TEXT;return}if(N.script){if(N.tagName!=="script"){N.script+="</"+N.tagName+">",N.tagName="",N.state=O.SCRIPT;return}M(N,"onscript",N.script),N.script=""}var x=N.tags.length,F=N.tagName;N.strict||(F=F[N.looseCase]());for(var j=F;x--&&N.tags[x].name!==j;)V(N,"Unexpected close tag");if(x<0){V(N,"Unmatched closing tag: "+N.tagName),N.textNode+="</"+N.tagName+">",N.state=O.TEXT;return}N.tagName=F;for(var ne=N.tags.length;ne-- >x;){var U=N.tag=N.tags.pop();N.tagName=N.tag.name,M(N,"onclosetag",N.tagName);var L={};for(var w in U.ns)L[w]=U.ns[w];var J=N.tags[N.tags.length-1]||N;N.opt.xmlns&&U.ns!==J.ns&&Object.keys(U.ns).forEach(function(k){var o=U.ns[k];M(N,"onclosenamespace",{prefix:k,uri:o})})}x===0&&(N.closedRoot=!0),N.tagName=N.attribValue=N.attribName="",N.attribList.length=0,N.state=O.TEXT}function I(N){var x=N.entity,F=x.toLowerCase(),j,ne="";return N.ENTITIES[x]?N.ENTITIES[x]:N.ENTITIES[F]?N.ENTITIES[F]:(x=F,x.charAt(0)==="#"&&(x.charAt(1)==="x"?(x=x.slice(2),j=parseInt(x,16),ne=j.toString(16)):(x=x.slice(1),j=parseInt(x,10),ne=j.toString(10))),x=x.replace(/^0+/,""),isNaN(j)||ne.toLowerCase()!==x?(V(N,"Invalid character entity"),"&"+N.entity+";"):String.fromCodePoint(j))}function Y(N,x){x==="<"?(N.state=O.OPEN_WAKA,N.startTagPosition=N.position):b(x)||(V(N,"Non-whitespace before first tag."),N.textNode=x,N.state=O.TEXT)}function $(N,x){var F="";return x<N.length&&(F=N.charAt(x)),F}function ue(N){var x=this;if(this.error)throw this.error;if(x.closed)return P(x,"Cannot write after close. Assign an onready handler.");if(N===null)return X(x);typeof N=="object"&&(N=N.toString());for(var F=0,j="";j=$(N,F++),x.c=j,!!j;)switch(x.trackPosition&&(x.position++,j===`
|
||
`?(x.line++,x.column=0):x.column++),x.state){case O.BEGIN:if(x.state=O.BEGIN_WHITESPACE,j==="\uFEFF")continue;Y(x,j);continue;case O.BEGIN_WHITESPACE:Y(x,j);continue;case O.TEXT:if(x.sawRoot&&!x.closedRoot){for(var ne=F-1;j&&j!=="<"&&j!=="&";)j=$(N,F++),j&&x.trackPosition&&(x.position++,j===`
|
||
`?(x.line++,x.column=0):x.column++);x.textNode+=N.substring(ne,F-1)}j==="<"&&!(x.sawRoot&&x.closedRoot&&!x.strict)?(x.state=O.OPEN_WAKA,x.startTagPosition=x.position):(!b(j)&&(!x.sawRoot||x.closedRoot)&&V(x,"Text data outside of root node."),j==="&"?x.state=O.TEXT_ENTITY:x.textNode+=j);continue;case O.SCRIPT:j==="<"?x.state=O.SCRIPT_ENDING:x.script+=j;continue;case O.SCRIPT_ENDING:j==="/"?x.state=O.CLOSE_TAG:(x.script+="<"+j,x.state=O.SCRIPT);continue;case O.OPEN_WAKA:if(j==="!")x.state=O.SGML_DECL,x.sgmlDecl="";else if(!b(j))if(B(R,j))x.state=O.OPEN_TAG,x.tagName=j;else if(j==="/")x.state=O.CLOSE_TAG,x.tagName="";else if(j==="?")x.state=O.PROC_INST,x.procInstName=x.procInstBody="";else{if(V(x,"Unencoded <"),x.startTagPosition+1<x.position){var U=x.position-x.startTagPosition;j=new Array(U).join(" ")+j}x.textNode+="<"+j,x.state=O.TEXT}continue;case O.SGML_DECL:(x.sgmlDecl+j).toUpperCase()===g?(M(x,"onopencdata"),x.state=O.CDATA,x.sgmlDecl="",x.cdata=""):x.sgmlDecl+j==="--"?(x.state=O.COMMENT,x.comment="",x.sgmlDecl=""):(x.sgmlDecl+j).toUpperCase()===v?(x.state=O.DOCTYPE,(x.doctype||x.sawRoot)&&V(x,"Inappropriately located doctype declaration"),x.doctype="",x.sgmlDecl=""):j===">"?(M(x,"onsgmldeclaration",x.sgmlDecl),x.sgmlDecl="",x.state=O.TEXT):(A(j)&&(x.state=O.SGML_DECL_QUOTED),x.sgmlDecl+=j);continue;case O.SGML_DECL_QUOTED:j===x.q&&(x.state=O.SGML_DECL,x.q=""),x.sgmlDecl+=j;continue;case O.DOCTYPE:j===">"?(x.state=O.TEXT,M(x,"ondoctype",x.doctype),x.doctype=!0):(x.doctype+=j,j==="["?x.state=O.DOCTYPE_DTD:A(j)&&(x.state=O.DOCTYPE_QUOTED,x.q=j));continue;case O.DOCTYPE_QUOTED:x.doctype+=j,j===x.q&&(x.q="",x.state=O.DOCTYPE);continue;case O.DOCTYPE_DTD:x.doctype+=j,j==="]"?x.state=O.DOCTYPE:A(j)&&(x.state=O.DOCTYPE_DTD_QUOTED,x.q=j);continue;case O.DOCTYPE_DTD_QUOTED:x.doctype+=j,j===x.q&&(x.state=O.DOCTYPE_DTD,x.q="");continue;case O.COMMENT:j==="-"?x.state=O.COMMENT_ENDING:x.comment+=j;continue;case O.COMMENT_ENDING:j==="-"?(x.state=O.COMMENT_ENDED,x.comment=C(x.opt,x.comment),x.comment&&M(x,"oncomment",x.comment),x.comment=""):(x.comment+="-"+j,x.state=O.COMMENT);continue;case O.COMMENT_ENDED:j!==">"?(V(x,"Malformed comment"),x.comment+="--"+j,x.state=O.COMMENT):x.state=O.TEXT;continue;case O.CDATA:j==="]"?x.state=O.CDATA_ENDING:x.cdata+=j;continue;case O.CDATA_ENDING:j==="]"?x.state=O.CDATA_ENDING_2:(x.cdata+="]"+j,x.state=O.CDATA);continue;case O.CDATA_ENDING_2:j===">"?(x.cdata&&M(x,"oncdata",x.cdata),M(x,"onclosecdata"),x.cdata="",x.state=O.TEXT):j==="]"?x.cdata+="]":(x.cdata+="]]"+j,x.state=O.CDATA);continue;case O.PROC_INST:j==="?"?x.state=O.PROC_INST_ENDING:b(j)?x.state=O.PROC_INST_BODY:x.procInstName+=j;continue;case O.PROC_INST_BODY:if(!x.procInstBody&&b(j))continue;j==="?"?x.state=O.PROC_INST_ENDING:x.procInstBody+=j;continue;case O.PROC_INST_ENDING:j===">"?(M(x,"onprocessinginstruction",{name:x.procInstName,body:x.procInstBody}),x.procInstName=x.procInstBody="",x.state=O.TEXT):(x.procInstBody+="?"+j,x.state=O.PROC_INST_BODY);continue;case O.OPEN_TAG:B(m,j)?x.tagName+=j:(re(x),j===">"?Z(x):j==="/"?x.state=O.OPEN_TAG_SLASH:(b(j)||V(x,"Invalid character in tag name"),x.state=O.ATTRIB));continue;case O.OPEN_TAG_SLASH:j===">"?(Z(x,!0),D(x)):(V(x,"Forward-slash in opening tag not followed by >"),x.state=O.ATTRIB);continue;case O.ATTRIB:if(b(j))continue;j===">"?Z(x):j==="/"?x.state=O.OPEN_TAG_SLASH:B(R,j)?(x.attribName=j,x.attribValue="",x.state=O.ATTRIB_NAME):V(x,"Invalid attribute name");continue;case O.ATTRIB_NAME:j==="="?x.state=O.ATTRIB_VALUE:j===">"?(V(x,"Attribute without value"),x.attribValue=x.attribName,te(x),Z(x)):b(j)?x.state=O.ATTRIB_NAME_SAW_WHITE:B(m,j)?x.attribName+=j:V(x,"Invalid attribute name");continue;case O.ATTRIB_NAME_SAW_WHITE:if(j==="=")x.state=O.ATTRIB_VALUE;else{if(b(j))continue;V(x,"Attribute without value"),x.tag.attributes[x.attribName]="",x.attribValue="",M(x,"onattribute",{name:x.attribName,value:""}),x.attribName="",j===">"?Z(x):B(R,j)?(x.attribName=j,x.state=O.ATTRIB_NAME):(V(x,"Invalid attribute name"),x.state=O.ATTRIB)}continue;case O.ATTRIB_VALUE:if(b(j))continue;A(j)?(x.q=j,x.state=O.ATTRIB_VALUE_QUOTED):(V(x,"Unquoted attribute value"),x.state=O.ATTRIB_VALUE_UNQUOTED,x.attribValue=j);continue;case O.ATTRIB_VALUE_QUOTED:if(j!==x.q){j==="&"?x.state=O.ATTRIB_VALUE_ENTITY_Q:x.attribValue+=j;continue}te(x),x.q="",x.state=O.ATTRIB_VALUE_CLOSED;continue;case O.ATTRIB_VALUE_CLOSED:b(j)?x.state=O.ATTRIB:j===">"?Z(x):j==="/"?x.state=O.OPEN_TAG_SLASH:B(R,j)?(V(x,"No whitespace between attributes"),x.attribName=j,x.attribValue="",x.state=O.ATTRIB_NAME):V(x,"Invalid attribute name");continue;case O.ATTRIB_VALUE_UNQUOTED:if(!S(j)){j==="&"?x.state=O.ATTRIB_VALUE_ENTITY_U:x.attribValue+=j;continue}te(x),j===">"?Z(x):x.state=O.ATTRIB;continue;case O.CLOSE_TAG:if(x.tagName)j===">"?D(x):B(m,j)?x.tagName+=j:x.script?(x.script+="</"+x.tagName,x.tagName="",x.state=O.SCRIPT):(b(j)||V(x,"Invalid tagname in closing tag"),x.state=O.CLOSE_TAG_SAW_WHITE);else{if(b(j))continue;z(R,j)?x.script?(x.script+="</"+j,x.state=O.SCRIPT):V(x,"Invalid tagname in closing tag."):x.tagName=j}continue;case O.CLOSE_TAG_SAW_WHITE:if(b(j))continue;j===">"?D(x):V(x,"Invalid characters in closing tag");continue;case O.TEXT_ENTITY:case O.ATTRIB_VALUE_ENTITY_Q:case O.ATTRIB_VALUE_ENTITY_U:var L,w;switch(x.state){case O.TEXT_ENTITY:L=O.TEXT,w="textNode";break;case O.ATTRIB_VALUE_ENTITY_Q:L=O.ATTRIB_VALUE_QUOTED,w="attribValue";break;case O.ATTRIB_VALUE_ENTITY_U:L=O.ATTRIB_VALUE_UNQUOTED,w="attribValue";break}j===";"?(x[w]+=I(x),x.entity="",x.state=L):B(x.entity.length?p:f,j)?x.entity+=j:(V(x,"Invalid character in entity name"),x[w]+="&"+x.entity+j,x.entity="",x.state=L);continue;default:throw new Error(x,"Unknown state: "+x.state)}return x.position>=x.bufferCheckPosition&&a(x),x}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var N=String.fromCharCode,x=Math.floor,F=function(){var j=16384,ne=[],U,L,w=-1,J=arguments.length;if(!J)return"";for(var k="";++w<J;){var o=Number(arguments[w]);if(!isFinite(o)||o<0||o>1114111||x(o)!==o)throw RangeError("Invalid code point: "+o);o<=65535?ne.push(o):(o-=65536,U=(o>>10)+55296,L=o%1024+56320,ne.push(U,L)),(w+1===J||ne.length>j)&&(k+=N.apply(null,ne),ne.length=0)}return k};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:F,configurable:!0,writable:!0}):String.fromCodePoint=F}()})(typeof e>"u"?e.sax={}:e)}),$c=he((e,t)=>{t.exports={isArray:function(r){return Array.isArray?Array.isArray(r):Object.prototype.toString.call(r)==="[object Array]"}}}),ef=he((e,t)=>{var r=$c().isArray;t.exports={copyOptions:function(n){var a,i={};for(a in n)n.hasOwnProperty(a)&&(i[a]=n[a]);return i},ensureFlagExists:function(n,a){(!(n in a)||typeof a[n]!="boolean")&&(a[n]=!1)},ensureSpacesExists:function(n){(!("spaces"in n)||typeof n.spaces!="number"&&typeof n.spaces!="string")&&(n.spaces=0)},ensureAlwaysArrayExists:function(n){(!("alwaysArray"in n)||typeof n.alwaysArray!="boolean"&&!r(n.alwaysArray))&&(n.alwaysArray=!1)},ensureKeyExists:function(n,a){(!(n+"Key"in a)||typeof a[n+"Key"]!="string")&&(a[n+"Key"]=a.compact?"_"+n:n)},checkFnExists:function(n,a){return n+"Fn"in a}}}),D0=he((e,t)=>{var r=cb(),n=ef(),a=$c().isArray,i,l;function s(p){return i=n.copyOptions(p),n.ensureFlagExists("ignoreDeclaration",i),n.ensureFlagExists("ignoreInstruction",i),n.ensureFlagExists("ignoreAttributes",i),n.ensureFlagExists("ignoreText",i),n.ensureFlagExists("ignoreComment",i),n.ensureFlagExists("ignoreCdata",i),n.ensureFlagExists("ignoreDoctype",i),n.ensureFlagExists("compact",i),n.ensureFlagExists("alwaysChildren",i),n.ensureFlagExists("addParent",i),n.ensureFlagExists("trim",i),n.ensureFlagExists("nativeType",i),n.ensureFlagExists("nativeTypeAttributes",i),n.ensureFlagExists("sanitize",i),n.ensureFlagExists("instructionHasAttributes",i),n.ensureFlagExists("captureSpacesBetweenElements",i),n.ensureAlwaysArrayExists(i),n.ensureKeyExists("declaration",i),n.ensureKeyExists("instruction",i),n.ensureKeyExists("attributes",i),n.ensureKeyExists("text",i),n.ensureKeyExists("comment",i),n.ensureKeyExists("cdata",i),n.ensureKeyExists("doctype",i),n.ensureKeyExists("type",i),n.ensureKeyExists("name",i),n.ensureKeyExists("elements",i),n.ensureKeyExists("parent",i),n.checkFnExists("doctype",i),n.checkFnExists("instruction",i),n.checkFnExists("cdata",i),n.checkFnExists("comment",i),n.checkFnExists("text",i),n.checkFnExists("instructionName",i),n.checkFnExists("elementName",i),n.checkFnExists("attributeName",i),n.checkFnExists("attributeValue",i),n.checkFnExists("attributes",i),i}function u(p){var b=Number(p);if(!isNaN(b))return b;var A=p.toLowerCase();return A==="true"?!0:A==="false"?!1:p}function d(p,b){var A;if(i.compact){if(!l[i[p+"Key"]]&&(a(i.alwaysArray)?i.alwaysArray.indexOf(i[p+"Key"])!==-1:i.alwaysArray)&&(l[i[p+"Key"]]=[]),l[i[p+"Key"]]&&!a(l[i[p+"Key"]])&&(l[i[p+"Key"]]=[l[i[p+"Key"]]]),p+"Fn"in i&&typeof b=="string"&&(b=i[p+"Fn"](b,l)),p==="instruction"&&("instructionFn"in i||"instructionNameFn"in i)){for(A in b)if(b.hasOwnProperty(A))if("instructionFn"in i)b[A]=i.instructionFn(b[A],A,l);else{var S=b[A];delete b[A],b[i.instructionNameFn(A,S,l)]=S}}a(l[i[p+"Key"]])?l[i[p+"Key"]].push(b):l[i[p+"Key"]]=b}else{l[i.elementsKey]||(l[i.elementsKey]=[]);var B={};if(B[i.typeKey]=p,p==="instruction"){for(A in b)if(b.hasOwnProperty(A))break;B[i.nameKey]="instructionNameFn"in i?i.instructionNameFn(A,b,l):A,i.instructionHasAttributes?(B[i.attributesKey]=b[A][i.attributesKey],"instructionFn"in i&&(B[i.attributesKey]=i.instructionFn(B[i.attributesKey],A,l))):("instructionFn"in i&&(b[A]=i.instructionFn(b[A],A,l)),B[i.instructionKey]=b[A])}else p+"Fn"in i&&(b=i[p+"Fn"](b,l)),B[i[p+"Key"]]=b;i.addParent&&(B[i.parentKey]=l),l[i.elementsKey].push(B)}}function y(p){if("attributesFn"in i&&p&&(p=i.attributesFn(p,l)),(i.trim||"attributeValueFn"in i||"attributeNameFn"in i||i.nativeTypeAttributes)&&p){var b;for(b in p)if(p.hasOwnProperty(b)&&(i.trim&&(p[b]=p[b].trim()),i.nativeTypeAttributes&&(p[b]=u(p[b])),"attributeValueFn"in i&&(p[b]=i.attributeValueFn(p[b],b,l)),"attributeNameFn"in i)){var A=p[b];delete p[b],p[i.attributeNameFn(b,p[b],l)]=A}}return p}function g(p){var b={};if(p.body&&(p.name.toLowerCase()==="xml"||i.instructionHasAttributes)){for(var A=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,S;(S=A.exec(p.body))!==null;)b[S[1]]=S[2]||S[3]||S[4];b=y(b)}if(p.name.toLowerCase()==="xml"){if(i.ignoreDeclaration)return;l[i.declarationKey]={},Object.keys(b).length&&(l[i.declarationKey][i.attributesKey]=b),i.addParent&&(l[i.declarationKey][i.parentKey]=l)}else{if(i.ignoreInstruction)return;i.trim&&(p.body=p.body.trim());var B={};i.instructionHasAttributes&&Object.keys(b).length?(B[p.name]={},B[p.name][i.attributesKey]=b):B[p.name]=p.body,d("instruction",B)}}function v(p,b){var A;if(typeof p=="object"&&(b=p.attributes,p=p.name),b=y(b),"elementNameFn"in i&&(p=i.elementNameFn(p,l)),i.compact){if(A={},!i.ignoreAttributes&&b&&Object.keys(b).length){A[i.attributesKey]={};var S;for(S in b)b.hasOwnProperty(S)&&(A[i.attributesKey][S]=b[S])}!(p in l)&&(a(i.alwaysArray)?i.alwaysArray.indexOf(p)!==-1:i.alwaysArray)&&(l[p]=[]),l[p]&&!a(l[p])&&(l[p]=[l[p]]),a(l[p])?l[p].push(A):l[p]=A}else l[i.elementsKey]||(l[i.elementsKey]=[]),A={},A[i.typeKey]="element",A[i.nameKey]=p,!i.ignoreAttributes&&b&&Object.keys(b).length&&(A[i.attributesKey]=b),i.alwaysChildren&&(A[i.elementsKey]=[]),l[i.elementsKey].push(A);A[i.parentKey]=l,l=A}function h(p){i.ignoreText||!p.trim()&&!i.captureSpacesBetweenElements||(i.trim&&(p=p.trim()),i.nativeType&&(p=u(p)),i.sanitize&&(p=p.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),d("text",p))}function _(p){i.ignoreComment||(i.trim&&(p=p.trim()),d("comment",p))}function E(p){var b=l[i.parentKey];i.addParent||delete l[i.parentKey],l=b}function R(p){i.ignoreCdata||(i.trim&&(p=p.trim()),d("cdata",p))}function m(p){i.ignoreDoctype||(p=p.replace(/^ /,""),i.trim&&(p=p.trim()),d("doctype",p))}function f(p){p.note=p}t.exports=function(p,b){var A=r.parser(!0,{}),S={};if(l=S,i=s(b),A.opt={strictEntities:!0},A.onopentag=v,A.ontext=h,A.oncomment=_,A.onclosetag=E,A.onerror=f,A.oncdata=R,A.ondoctype=m,A.onprocessinginstruction=g,A.write(p).close(),S[i.elementsKey]){var B=S[i.elementsKey];delete S[i.elementsKey],S[i.elementsKey]=B,delete S.text}return S}}),fb=he((e,t)=>{var r=ef(),n=D0();function a(i){var l=r.copyOptions(i);return r.ensureSpacesExists(l),l}t.exports=function(i,l){var s=a(l),u=n(i,s),d,y="compact"in s&&s.compact?"_parent":"parent";return"addParent"in s&&s.addParent?d=JSON.stringify(u,function(g,v){return g===y?"_":v},s.spaces):d=JSON.stringify(u,null,s.spaces),d.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}}),k0=he((e,t)=>{var r=ef(),n=$c().isArray,a,i;function l(A){var S=r.copyOptions(A);return r.ensureFlagExists("ignoreDeclaration",S),r.ensureFlagExists("ignoreInstruction",S),r.ensureFlagExists("ignoreAttributes",S),r.ensureFlagExists("ignoreText",S),r.ensureFlagExists("ignoreComment",S),r.ensureFlagExists("ignoreCdata",S),r.ensureFlagExists("ignoreDoctype",S),r.ensureFlagExists("compact",S),r.ensureFlagExists("indentText",S),r.ensureFlagExists("indentCdata",S),r.ensureFlagExists("indentAttributes",S),r.ensureFlagExists("indentInstruction",S),r.ensureFlagExists("fullTagEmptyElement",S),r.ensureFlagExists("noQuotesForNativeAttributes",S),r.ensureSpacesExists(S),typeof S.spaces=="number"&&(S.spaces=Array(S.spaces+1).join(" ")),r.ensureKeyExists("declaration",S),r.ensureKeyExists("instruction",S),r.ensureKeyExists("attributes",S),r.ensureKeyExists("text",S),r.ensureKeyExists("comment",S),r.ensureKeyExists("cdata",S),r.ensureKeyExists("doctype",S),r.ensureKeyExists("type",S),r.ensureKeyExists("name",S),r.ensureKeyExists("elements",S),r.checkFnExists("doctype",S),r.checkFnExists("instruction",S),r.checkFnExists("cdata",S),r.checkFnExists("comment",S),r.checkFnExists("text",S),r.checkFnExists("instructionName",S),r.checkFnExists("elementName",S),r.checkFnExists("attributeName",S),r.checkFnExists("attributeValue",S),r.checkFnExists("attributes",S),r.checkFnExists("fullTagEmptyElement",S),S}function s(A,S,B){return(!B&&A.spaces?`
|
||
`:"")+Array(S+1).join(A.spaces)}function u(A,S,B){if(S.ignoreAttributes)return"";"attributesFn"in S&&(A=S.attributesFn(A,i,a));var z,O,G,ee,M=[];for(z in A)A.hasOwnProperty(z)&&A[z]!==null&&A[z]!==void 0&&(ee=S.noQuotesForNativeAttributes&&typeof A[z]!="string"?"":'"',O=""+A[z],O=O.replace(/"/g,"""),G="attributeNameFn"in S?S.attributeNameFn(z,O,i,a):z,M.push(S.spaces&&S.indentAttributes?s(S,B+1,!1):" "),M.push(G+"="+ee+("attributeValueFn"in S?S.attributeValueFn(O,z,i,a):O)+ee));return A&&Object.keys(A).length&&S.spaces&&S.indentAttributes&&M.push(s(S,B,!1)),M.join("")}function d(A,S,B){return a=A,i="xml",S.ignoreDeclaration?"":"<?xml"+u(A[S.attributesKey],S,B)+"?>"}function y(A,S,B){if(S.ignoreInstruction)return"";var z;for(z in A)if(A.hasOwnProperty(z))break;var O="instructionNameFn"in S?S.instructionNameFn(z,A[z],i,a):z;if(typeof A[z]=="object")return a=A,i=O,"<?"+O+u(A[z][S.attributesKey],S,B)+"?>";var G=A[z]?A[z]:"";return"instructionFn"in S&&(G=S.instructionFn(G,z,i,a)),"<?"+O+(G?" "+G:"")+"?>"}function g(A,S){return S.ignoreComment?"":"<!--"+("commentFn"in S?S.commentFn(A,i,a):A)+"-->"}function v(A,S){return S.ignoreCdata?"":"<![CDATA["+("cdataFn"in S?S.cdataFn(A,i,a):A.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function h(A,S){return S.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in S?S.doctypeFn(A,i,a):A)+">"}function _(A,S){return S.ignoreText?"":(A=""+A,A=A.replace(/&/g,"&"),A=A.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in S?S.textFn(A,i,a):A)}function E(A,S){var B;if(A.elements&&A.elements.length)for(B=0;B<A.elements.length;++B)switch(A.elements[B][S.typeKey]){case"text":if(S.indentText)return!0;break;case"cdata":if(S.indentCdata)return!0;break;case"instruction":if(S.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function R(A,S,B){a=A,i=A.name;var z=[],O="elementNameFn"in S?S.elementNameFn(A.name,A):A.name;z.push("<"+O),A[S.attributesKey]&&z.push(u(A[S.attributesKey],S,B));var G=A[S.elementsKey]&&A[S.elementsKey].length||A[S.attributesKey]&&A[S.attributesKey]["xml:space"]==="preserve";return G||("fullTagEmptyElementFn"in S?G=S.fullTagEmptyElementFn(A.name,A):G=S.fullTagEmptyElement),G?(z.push(">"),A[S.elementsKey]&&A[S.elementsKey].length&&(z.push(m(A[S.elementsKey],S,B+1)),a=A,i=A.name),z.push(S.spaces&&E(A,S)?`
|
||
`+Array(B+1).join(S.spaces):""),z.push("</"+O+">")):z.push("/>"),z.join("")}function m(A,S,B,z){return A.reduce(function(O,G){var ee=s(S,B,z&&!O);switch(G.type){case"element":return O+ee+R(G,S,B);case"comment":return O+ee+g(G[S.commentKey],S);case"doctype":return O+ee+h(G[S.doctypeKey],S);case"cdata":return O+(S.indentCdata?ee:"")+v(G[S.cdataKey],S);case"text":return O+(S.indentText?ee:"")+_(G[S.textKey],S);case"instruction":var M={};return M[G[S.nameKey]]=G[S.attributesKey]?G:G[S.instructionKey],O+(S.indentInstruction?ee:"")+y(M,S,B)}},"")}function f(A,S,B){var z;for(z in A)if(A.hasOwnProperty(z))switch(z){case S.parentKey:case S.attributesKey:break;case S.textKey:if(S.indentText||B)return!0;break;case S.cdataKey:if(S.indentCdata||B)return!0;break;case S.instructionKey:if(S.indentInstruction||B)return!0;break;case S.doctypeKey:case S.commentKey:return!0;default:return!0}return!1}function p(A,S,B,z,O){a=A,i=S;var G="elementNameFn"in B?B.elementNameFn(S,A):S;if(typeof A>"u"||A===null||A==="")return"fullTagEmptyElementFn"in B&&B.fullTagEmptyElementFn(S,A)||B.fullTagEmptyElement?"<"+G+"></"+G+">":"<"+G+"/>";var ee=[];if(S){if(ee.push("<"+G),typeof A!="object")return ee.push(">"+_(A,B)+"</"+G+">"),ee.join("");A[B.attributesKey]&&ee.push(u(A[B.attributesKey],B,z));var M=f(A,B,!0)||A[B.attributesKey]&&A[B.attributesKey]["xml:space"]==="preserve";if(M||("fullTagEmptyElementFn"in B?M=B.fullTagEmptyElementFn(S,A):M=B.fullTagEmptyElement),M)ee.push(">");else return ee.push("/>"),ee.join("")}return ee.push(b(A,B,z+1,!1)),a=A,i=S,S&&ee.push((O?s(B,z,!1):"")+"</"+G+">"),ee.join("")}function b(A,S,B,z){var O,G,ee,M=[];for(G in A)if(A.hasOwnProperty(G))for(ee=n(A[G])?A[G]:[A[G]],O=0;O<ee.length;++O){switch(G){case S.declarationKey:M.push(d(ee[O],S,B));break;case S.instructionKey:M.push((S.indentInstruction?s(S,B,z):"")+y(ee[O],S,B));break;case S.attributesKey:case S.parentKey:break;case S.textKey:M.push((S.indentText?s(S,B,z):"")+_(ee[O],S));break;case S.cdataKey:M.push((S.indentCdata?s(S,B,z):"")+v(ee[O],S));break;case S.doctypeKey:M.push(s(S,B,z)+h(ee[O],S));break;case S.commentKey:M.push(s(S,B,z)+g(ee[O],S));break;default:M.push(s(S,B,z)+p(ee[O],G,S,B,f(ee[O],S)))}z=z&&!M.length}return M.join("")}t.exports=function(A,S){S=l(S);var B=[];return a=A,i="_root_",S.compact?B.push(b(A,S,0,!0)):(A[S.declarationKey]&&B.push(d(A[S.declarationKey],S,0)),A[S.elementsKey]&&A[S.elementsKey].length&&B.push(m(A[S.elementsKey],S,0,!B.length))),B.join("")}}),hb=he((e,t)=>{var r=k0();t.exports=function(n,a){n instanceof Buffer&&(n=n.toString());var i=null;if(typeof n=="string")try{i=JSON.parse(n)}catch{throw new Error("The JSON structure is invalid")}else i=n;return r(i,a)}}),B0=he((e,t)=>{t.exports={xml2js:D0(),xml2json:fb(),js2xml:k0(),json2xml:hb()}})(),tf=e=>{switch(e.type){case void 0:case"element":const t=new pb(e.name,e.attributes),r=e.elements||[];for(const n of r){const a=tf(n);a!==void 0&&t.push(a)}return t;case"text":return e.text;default:return}},db=class extends Se{},pb=class extends de{static fromXmlString(e){return tf((0,B0.xml2js)(e,{compact:!1}))}constructor(e,t){super(e),t&&this.root.push(new db(t))}push(e){this.root.push(e)}},mb=class extends de{constructor(e){super(""),this._attr=e}prepForXml(e){return{_attr:this._attr}}},M0=class extends de{constructor(e,t){super(e),t&&(this.root=t.root)}},dt=e=>{if(isNaN(e))throw new Error(`Invalid value '${e}' specified. Must be an integer.`);return Math.floor(e)},qs=e=>{const t=dt(e);if(t<0)throw new Error(`Invalid value '${e}' specified. Must be a positive integer.`);return t},z0=(e,t)=>{const r=t*2;if(e.length!==r||isNaN(+`0x${e}`))throw new Error(`Invalid hex value '${e}'. Expected ${r} digit hex value`);return e},Ih=e=>z0(e,1),rf=e=>{const t=e.slice(-2),r=e.substring(0,e.length-2);return`${Number(r)}${t}`},U0=e=>{const t=rf(e);if(parseFloat(t)<0)throw new Error(`Invalid value '${t}' specified. Expected a positive number.`);return t},Oa=e=>e==="auto"?e:z0(e.charAt(0)==="#"?e.substring(1):e,3),Er=e=>typeof e=="string"?rf(e):dt(e),yb=e=>typeof e=="string"?U0(e):qs(e),ct=e=>typeof e=="string"?U0(e):qs(e),vb=e=>{const t=e.substring(0,e.length-1);return`${Number(t)}%`},L0=e=>typeof e=="number"?dt(e):e.slice(-1)==="%"?vb(e):rf(e),gb=qs,bb=qs,wb=e=>e.toISOString(),fe=class extends de{constructor(e,t=!0){super(e),t!==!0&&this.root.push(new pt({val:t}))}},Do=class extends de{constructor(e,t){super(e),this.root.push(new pt({val:yb(t)}))}},_b=class extends de{},Rn=class extends de{constructor(e,t){super(e),this.root.push(new pt({val:t}))}},Ja=(e,t)=>new be({name:e,attributes:{value:{key:"w:val",value:t}}}),xi=class extends de{constructor(e,t){super(e),this.root.push(new pt({val:t}))}},yn=class extends de{constructor(e,t){super(e),this.root.push(t)}},be=class extends de{constructor({name:e,attributes:t,children:r}){super(e),t&&this.root.push(new g1(t)),r&&this.root.push(...r)}},$t={START:"start",LEFT:"left"},j0=e=>new be({name:"w:jc",attributes:{val:{key:"w:val",value:e}}}),Ge=(e,{color:t,size:r,space:n,style:a})=>new be({name:e,attributes:{style:{key:"w:val",value:a},color:{key:"w:color",value:t===void 0?void 0:Oa(t)},size:{key:"w:sz",value:r===void 0?void 0:gb(r)},space:{key:"w:space",value:n===void 0?void 0:bb(n)}}}),nf={SINGLE:"single",NONE:"none"},xb=class extends cn{constructor(e){super("w:pBdr"),e.top&&this.root.push(Ge("w:top",e.top)),e.bottom&&this.root.push(Ge("w:bottom",e.bottom)),e.left&&this.root.push(Ge("w:left",e.left)),e.right&&this.root.push(Ge("w:right",e.right)),e.between&&this.root.push(Ge("w:between",e.between))}},Sb=class extends de{constructor(){super("w:pBdr");const e=Ge("w:bottom",{color:"auto",space:1,style:nf.SINGLE,size:6});this.root.push(e)}},Eb=({start:e,end:t,left:r,right:n,hanging:a,firstLine:i,firstLineChars:l})=>new be({name:"w:ind",attributes:{start:{key:"w:start",value:e===void 0?void 0:Er(e)},end:{key:"w:end",value:t===void 0?void 0:Er(t)},left:{key:"w:left",value:r===void 0?void 0:Er(r)},right:{key:"w:right",value:n===void 0?void 0:Er(n)},hanging:{key:"w:hanging",value:a===void 0?void 0:ct(a)},firstLine:{key:"w:firstLine",value:i===void 0?void 0:ct(i)},firstLineChars:{key:"w:firstLineChars",value:l===void 0?void 0:dt(l)}}}),Tb=()=>new be({name:"w:br"}),af={BEGIN:"begin",END:"end",SEPARATE:"separate"},lf=(e,t)=>new be({name:"w:fldChar",attributes:{type:{key:"w:fldCharType",value:e},dirty:{key:"w:dirty",value:t}}}),Sl=e=>lf(af.BEGIN,e),El=e=>lf(af.SEPARATE,e),Tl=e=>lf(af.END,e),Ra={DEFAULT:"default",PRESERVE:"preserve"},Ca=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{space:"xml:space"})}},Ab=class extends de{constructor(){super("w:instrText"),this.root.push(new Ca({space:Ra.PRESERVE})),this.root.push("PAGE")}},Nb=class extends de{constructor(){super("w:instrText"),this.root.push(new Ca({space:Ra.PRESERVE})),this.root.push("NUMPAGES")}},Ob=class extends de{constructor(){super("w:instrText"),this.root.push(new Ca({space:Ra.PRESERVE})),this.root.push("SECTIONPAGES")}},Rb=class extends de{constructor(){super("w:instrText"),this.root.push(new Ca({space:Ra.PRESERVE})),this.root.push("SECTION")}},Gs=({fill:e,color:t,type:r})=>new be({name:"w:shd",attributes:{fill:{key:"w:fill",value:e===void 0?void 0:Oa(e)},color:{key:"w:color",value:t===void 0?void 0:Oa(t)},type:{key:"w:val",value:r}}}),Xt=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date"})}},Cb=class extends de{constructor(e){super("w:del"),this.root.push(new Xt({id:e.id,author:e.author,date:e.date}))}},Db=class extends de{constructor(e){super("w:ins"),this.root.push(new Xt({id:e.id,author:e.author,date:e.date}))}},kb={DOT:"dot"},Bb=(e=kb.DOT)=>new be({name:"w:em",attributes:{val:{key:"w:val",value:e}}}),Mb=class extends de{constructor(e){super("w:spacing"),this.root.push(new pt({val:Er(e)}))}},zb=class extends de{constructor(e){super("w:color"),this.root.push(new pt({val:Oa(e)}))}},Ub=class extends de{constructor(e){super("w:highlight"),this.root.push(new pt({val:e}))}},Lb=class extends de{constructor(e){super("w:highlightCs"),this.root.push(new pt({val:e}))}},jb=e=>new be({name:"w:lang",attributes:{value:{key:"w:val",value:e.value},eastAsia:{key:"w:eastAsia",value:e.eastAsia},bidirectional:{key:"w:bidi",value:e.bidirectional}}}),ko=(e,t)=>{if(typeof e=="string"){const n=e;return new be({name:"w:rFonts",attributes:{ascii:{key:"w:ascii",value:n},cs:{key:"w:cs",value:n},eastAsia:{key:"w:eastAsia",value:n},hAnsi:{key:"w:hAnsi",value:n},hint:{key:"w:hint",value:t}}})}const r=e;return new be({name:"w:rFonts",attributes:{ascii:{key:"w:ascii",value:r.ascii},cs:{key:"w:cs",value:r.cs},eastAsia:{key:"w:eastAsia",value:r.eastAsia},hAnsi:{key:"w:hAnsi",value:r.hAnsi},hint:{key:"w:hint",value:r.hint}}})},H0=e=>new be({name:"w:vertAlign",attributes:{val:{key:"w:val",value:e}}}),Hb=()=>H0("superscript"),Fb=()=>H0("subscript"),F0={SINGLE:"single"},Ib=(e=F0.SINGLE,t)=>new be({name:"w:u",attributes:{val:{key:"w:val",value:e},color:{key:"w:color",value:t===void 0?void 0:Oa(t)}}}),In=class extends cn{constructor(e){if(super("w:rPr"),!e)return;if(e.style&&this.push(new Rn("w:rStyle",e.style)),e.font&&(typeof e.font=="string"?this.push(ko(e.font)):"name"in e.font?this.push(ko(e.font.name,e.font.hint)):this.push(ko(e.font))),e.bold!==void 0&&this.push(new fe("w:b",e.bold)),e.boldComplexScript===void 0&&e.bold!==void 0||e.boldComplexScript){var t;this.push(new fe("w:bCs",(t=e.boldComplexScript)!==null&&t!==void 0?t:e.bold))}if(e.italics!==void 0&&this.push(new fe("w:i",e.italics)),e.italicsComplexScript===void 0&&e.italics!==void 0||e.italicsComplexScript){var r;this.push(new fe("w:iCs",(r=e.italicsComplexScript)!==null&&r!==void 0?r:e.italics))}e.smallCaps!==void 0?this.push(new fe("w:smallCaps",e.smallCaps)):e.allCaps!==void 0&&this.push(new fe("w:caps",e.allCaps)),e.strike!==void 0&&this.push(new fe("w:strike",e.strike)),e.doubleStrike!==void 0&&this.push(new fe("w:dstrike",e.doubleStrike)),e.emboss!==void 0&&this.push(new fe("w:emboss",e.emboss)),e.imprint!==void 0&&this.push(new fe("w:imprint",e.imprint)),e.noProof!==void 0&&this.push(new fe("w:noProof",e.noProof)),e.snapToGrid!==void 0&&this.push(new fe("w:snapToGrid",e.snapToGrid)),e.vanish&&this.push(new fe("w:vanish",e.vanish)),e.color&&this.push(new zb(e.color)),e.characterSpacing&&this.push(new Mb(e.characterSpacing)),e.scale!==void 0&&this.push(new xi("w:w",e.scale)),e.kern&&this.push(new Do("w:kern",e.kern)),e.position&&this.push(new Rn("w:position",e.position)),e.size!==void 0&&this.push(new Do("w:sz",e.size));const n=e.sizeComplexScript===void 0||e.sizeComplexScript===!0?e.size:e.sizeComplexScript;n&&this.push(new Do("w:szCs",n)),e.highlight&&this.push(new Ub(e.highlight));const a=e.highlightComplexScript===void 0||e.highlightComplexScript===!0?e.highlight:e.highlightComplexScript;a&&this.push(new Lb(a)),e.underline&&this.push(Ib(e.underline.type,e.underline.color)),e.effect&&this.push(new Rn("w:effect",e.effect)),e.border&&this.push(Ge("w:bdr",e.border)),e.shading&&this.push(Gs(e.shading)),e.subScript&&this.push(Fb()),e.superScript&&this.push(Hb()),e.rightToLeft!==void 0&&this.push(new fe("w:rtl",e.rightToLeft)),e.emphasisMark&&this.push(Bb(e.emphasisMark.type)),e.language&&this.push(jb(e.language)),e.specVanish&&this.push(new fe("w:specVanish",e.vanish)),e.math&&this.push(new fe("w:oMath",e.math)),e.revision&&this.push(new Gb(e.revision))}push(e){this.root.push(e)}},qb=class extends In{constructor(e){super(e),e!=null&&e.insertion&&this.push(new Db(e.insertion)),e!=null&&e.deletion&&this.push(new Cb(e.deletion))}},Gb=class extends de{constructor(e){super("w:rPrChange"),this.root.push(new Xt({id:e.id,author:e.author,date:e.date})),this.addChildElement(new In(e))}},qh=class extends de{constructor(e){if(super("w:t"),typeof e=="string")this.root.push(new Ca({space:Ra.PRESERVE})),this.root.push(e);else{var t;this.root.push(new Ca({space:(t=e.space)!==null&&t!==void 0?t:Ra.DEFAULT})),this.root.push(e.text)}}},Al={CURRENT:"CURRENT",TOTAL_PAGES:"TOTAL_PAGES",TOTAL_PAGES_IN_SECTION:"TOTAL_PAGES_IN_SECTION",CURRENT_SECTION:"SECTION"},el=class extends de{constructor(e){if(super("w:r"),se(this,"properties",void 0),this.properties=new In(e),this.root.push(this.properties),e.break)for(let t=0;t<e.break;t++)this.root.push(Tb());if(e.children)for(const t of e.children){if(typeof t=="string"){switch(t){case Al.CURRENT:this.root.push(Sl()),this.root.push(new Ab),this.root.push(El()),this.root.push(Tl());break;case Al.TOTAL_PAGES:this.root.push(Sl()),this.root.push(new Nb),this.root.push(El()),this.root.push(Tl());break;case Al.TOTAL_PAGES_IN_SECTION:this.root.push(Sl()),this.root.push(new Ob),this.root.push(El()),this.root.push(Tl());break;case Al.CURRENT_SECTION:this.root.push(Sl()),this.root.push(new Rb),this.root.push(El()),this.root.push(Tl());break;default:this.root.push(new qh(t));break}continue}this.root.push(t)}else e.text!==void 0&&this.root.push(new qh(e.text))}},ji=class extends el{constructor(e){super(typeof e=="string"?{text:e}:e)}},tl=he((e,t)=>{t.exports=r;function r(n,a){if(!n)throw new Error(a||"Assertion failed")}r.equal=function(a,i,l){if(a!=i)throw new Error(l||"Assertion failed: "+a+" != "+i)}}),ur=he(e=>{var t=tl();e.inherits=fn();function r(M,K){return(M.charCodeAt(K)&64512)!==55296||K<0||K+1>=M.length?!1:(M.charCodeAt(K+1)&64512)===56320}function n(M,K){if(Array.isArray(M))return M.slice();if(!M)return[];var C=[];if(typeof M=="string")if(K){if(K==="hex")for(M=M.replace(/[^a-z0-9]+/gi,""),M.length%2!==0&&(M="0"+M),X=0;X<M.length;X+=2)C.push(parseInt(M[X]+M[X+1],16))}else for(var P=0,X=0;X<M.length;X++){var V=M.charCodeAt(X);V<128?C[P++]=V:V<2048?(C[P++]=V>>6|192,C[P++]=V&63|128):r(M,X)?(V=65536+((V&1023)<<10)+(M.charCodeAt(++X)&1023),C[P++]=V>>18|240,C[P++]=V>>12&63|128,C[P++]=V>>6&63|128,C[P++]=V&63|128):(C[P++]=V>>12|224,C[P++]=V>>6&63|128,C[P++]=V&63|128)}else for(X=0;X<M.length;X++)C[X]=M[X]|0;return C}e.toArray=n;function a(M){for(var K="",C=0;C<M.length;C++)K+=s(M[C].toString(16));return K}e.toHex=a;function i(M){return(M>>>24|M>>>8&65280|M<<8&16711680|(M&255)<<24)>>>0}e.htonl=i;function l(M,K){for(var C="",P=0;P<M.length;P++){var X=M[P];K==="little"&&(X=i(X)),C+=u(X.toString(16))}return C}e.toHex32=l;function s(M){return M.length===1?"0"+M:M}e.zero2=s;function u(M){return M.length===7?"0"+M:M.length===6?"00"+M:M.length===5?"000"+M:M.length===4?"0000"+M:M.length===3?"00000"+M:M.length===2?"000000"+M:M.length===1?"0000000"+M:M}e.zero8=u;function d(M,K,C,P){var X=C-K;t(X%4===0);for(var V=new Array(X/4),re=0,Q=K;re<V.length;re++,Q+=4){var te;P==="big"?te=M[Q]<<24|M[Q+1]<<16|M[Q+2]<<8|M[Q+3]:te=M[Q+3]<<24|M[Q+2]<<16|M[Q+1]<<8|M[Q],V[re]=te>>>0}return V}e.join32=d;function y(M,K){for(var C=new Array(M.length*4),P=0,X=0;P<M.length;P++,X+=4){var V=M[P];K==="big"?(C[X]=V>>>24,C[X+1]=V>>>16&255,C[X+2]=V>>>8&255,C[X+3]=V&255):(C[X+3]=V>>>24,C[X+2]=V>>>16&255,C[X+1]=V>>>8&255,C[X]=V&255)}return C}e.split32=y;function g(M,K){return M>>>K|M<<32-K}e.rotr32=g;function v(M,K){return M<<K|M>>>32-K}e.rotl32=v;function h(M,K){return M+K>>>0}e.sum32=h;function _(M,K,C){return M+K+C>>>0}e.sum32_3=_;function E(M,K,C,P){return M+K+C+P>>>0}e.sum32_4=E;function R(M,K,C,P,X){return M+K+C+P+X>>>0}e.sum32_5=R;function m(M,K,C,P){var X=M[K],V=P+M[K+1]>>>0;M[K]=(V<P?1:0)+C+X>>>0,M[K+1]=V}e.sum64=m;function f(M,K,C,P){return(K+P>>>0<K?1:0)+M+C>>>0}e.sum64_hi=f;function p(M,K,C,P){return K+P>>>0}e.sum64_lo=p;function b(M,K,C,P,X,V,re,Q){var te=0,Z=K;return Z=Z+P>>>0,te+=Z<K?1:0,Z=Z+V>>>0,te+=Z<V?1:0,Z=Z+Q>>>0,te+=Z<Q?1:0,M+C+X+re+te>>>0}e.sum64_4_hi=b;function A(M,K,C,P,X,V,re,Q){return K+P+V+Q>>>0}e.sum64_4_lo=A;function S(M,K,C,P,X,V,re,Q,te,Z){var D=0,I=K;return I=I+P>>>0,D+=I<K?1:0,I=I+V>>>0,D+=I<V?1:0,I=I+Q>>>0,D+=I<Q?1:0,I=I+Z>>>0,D+=I<Z?1:0,M+C+X+re+te+D>>>0}e.sum64_5_hi=S;function B(M,K,C,P,X,V,re,Q,te,Z){return K+P+V+Q+Z>>>0}e.sum64_5_lo=B;function z(M,K,C){return(K<<32-C|M>>>C)>>>0}e.rotr64_hi=z;function O(M,K,C){return(M<<32-C|K>>>C)>>>0}e.rotr64_lo=O;function G(M,K,C){return M>>>C}e.shr64_hi=G;function ee(M,K,C){return(M<<32-C|K>>>C)>>>0}e.shr64_lo=ee}),rl=he(e=>{var t=ur(),r=tl();function n(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=n,n.prototype.update=function(i,l){if(i=t.toArray(i,l),this.pending?this.pending=this.pending.concat(i):this.pending=i,this.pendingTotal+=i.length,this.pending.length>=this._delta8){i=this.pending;var s=i.length%this._delta8;this.pending=i.slice(i.length-s,i.length),this.pending.length===0&&(this.pending=null),i=t.join32(i,0,i.length-s,this.endian);for(var u=0;u<i.length;u+=this._delta32)this._update(i,u,u+this._delta32)}return this},n.prototype.digest=function(i){return this.update(this._pad()),r(this.pending===null),this._digest(i)},n.prototype._pad=function(){var i=this.pendingTotal,l=this._delta8,s=l-(i+this.padLength)%l,u=new Array(s+this.padLength);u[0]=128;for(var d=1;d<s;d++)u[d]=0;if(i<<=3,this.endian==="big"){for(var y=8;y<this.padLength;y++)u[d++]=0;u[d++]=0,u[d++]=0,u[d++]=0,u[d++]=0,u[d++]=i>>>24&255,u[d++]=i>>>16&255,u[d++]=i>>>8&255,u[d++]=i&255}else for(u[d++]=i&255,u[d++]=i>>>8&255,u[d++]=i>>>16&255,u[d++]=i>>>24&255,u[d++]=0,u[d++]=0,u[d++]=0,u[d++]=0,y=8;y<this.padLength;y++)u[d++]=0;return u}}),I0=he(e=>{var t=ur().rotr32;function r(y,g,v,h){if(y===0)return n(g,v,h);if(y===1||y===3)return i(g,v,h);if(y===2)return a(g,v,h)}e.ft_1=r;function n(y,g,v){return y&g^~y&v}e.ch32=n;function a(y,g,v){return y&g^y&v^g&v}e.maj32=a;function i(y,g,v){return y^g^v}e.p32=i;function l(y){return t(y,2)^t(y,13)^t(y,22)}e.s0_256=l;function s(y){return t(y,6)^t(y,11)^t(y,25)}e.s1_256=s;function u(y){return t(y,7)^t(y,18)^y>>>3}e.g0_256=u;function d(y){return t(y,17)^t(y,19)^y>>>10}e.g1_256=d}),Vb=he((e,t)=>{var r=ur(),n=rl(),a=I0(),i=r.rotl32,l=r.sum32,s=r.sum32_5,u=a.ft_1,d=n.BlockHash,y=[1518500249,1859775393,2400959708,3395469782];function g(){if(!(this instanceof g))return new g;d.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(g,d),t.exports=g,g.blockSize=512,g.outSize=160,g.hmacStrength=80,g.padLength=64,g.prototype._update=function(h,_){for(var E=this.W,R=0;R<16;R++)E[R]=h[_+R];for(;R<E.length;R++)E[R]=i(E[R-3]^E[R-8]^E[R-14]^E[R-16],1);var m=this.h[0],f=this.h[1],p=this.h[2],b=this.h[3],A=this.h[4];for(R=0;R<E.length;R++){var S=~~(R/20),B=s(i(m,5),u(S,f,p,b),A,E[R],y[S]);A=b,b=p,p=i(f,30),f=m,m=B}this.h[0]=l(this.h[0],m),this.h[1]=l(this.h[1],f),this.h[2]=l(this.h[2],p),this.h[3]=l(this.h[3],b),this.h[4]=l(this.h[4],A)},g.prototype._digest=function(h){return h==="hex"?r.toHex32(this.h,"big"):r.split32(this.h,"big")}}),q0=he((e,t)=>{var r=ur(),n=rl(),a=I0(),i=tl(),l=r.sum32,s=r.sum32_4,u=r.sum32_5,d=a.ch32,y=a.maj32,g=a.s0_256,v=a.s1_256,h=a.g0_256,_=a.g1_256,E=n.BlockHash,R=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function m(){if(!(this instanceof m))return new m;E.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=R,this.W=new Array(64)}r.inherits(m,E),t.exports=m,m.blockSize=512,m.outSize=256,m.hmacStrength=192,m.padLength=64,m.prototype._update=function(p,b){for(var A=this.W,S=0;S<16;S++)A[S]=p[b+S];for(;S<A.length;S++)A[S]=s(_(A[S-2]),A[S-7],h(A[S-15]),A[S-16]);var B=this.h[0],z=this.h[1],O=this.h[2],G=this.h[3],ee=this.h[4],M=this.h[5],K=this.h[6],C=this.h[7];for(i(this.k.length===A.length),S=0;S<A.length;S++){var P=u(C,v(ee),d(ee,M,K),this.k[S],A[S]),X=l(g(B),y(B,z,O));C=K,K=M,M=ee,ee=l(G,P),G=O,O=z,z=B,B=l(P,X)}this.h[0]=l(this.h[0],B),this.h[1]=l(this.h[1],z),this.h[2]=l(this.h[2],O),this.h[3]=l(this.h[3],G),this.h[4]=l(this.h[4],ee),this.h[5]=l(this.h[5],M),this.h[6]=l(this.h[6],K),this.h[7]=l(this.h[7],C)},m.prototype._digest=function(p){return p==="hex"?r.toHex32(this.h,"big"):r.split32(this.h,"big")}}),Kb=he((e,t)=>{var r=ur(),n=q0();function a(){if(!(this instanceof a))return new a;n.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(a,n),t.exports=a,a.blockSize=512,a.outSize=224,a.hmacStrength=192,a.padLength=64,a.prototype._digest=function(l){return l==="hex"?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}}),G0=he((e,t)=>{var r=ur(),n=rl(),a=tl(),i=r.rotr64_hi,l=r.rotr64_lo,s=r.shr64_hi,u=r.shr64_lo,d=r.sum64,y=r.sum64_hi,g=r.sum64_lo,v=r.sum64_4_hi,h=r.sum64_4_lo,_=r.sum64_5_hi,E=r.sum64_5_lo,R=n.BlockHash,m=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function f(){if(!(this instanceof f))return new f;R.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=m,this.W=new Array(160)}r.inherits(f,R),t.exports=f,f.blockSize=1024,f.outSize=512,f.hmacStrength=192,f.padLength=128,f.prototype._prepareBlock=function(X,V){for(var re=this.W,Q=0;Q<32;Q++)re[Q]=X[V+Q];for(;Q<re.length;Q+=2){var te=K(re[Q-4],re[Q-3]),Z=C(re[Q-4],re[Q-3]),D=re[Q-14],I=re[Q-13],Y=ee(re[Q-30],re[Q-29]),$=M(re[Q-30],re[Q-29]),ue=re[Q-32],N=re[Q-31];re[Q]=v(te,Z,D,I,Y,$,ue,N),re[Q+1]=h(te,Z,D,I,Y,$,ue,N)}},f.prototype._update=function(X,V){this._prepareBlock(X,V);var re=this.W,Q=this.h[0],te=this.h[1],Z=this.h[2],D=this.h[3],I=this.h[4],Y=this.h[5],$=this.h[6],ue=this.h[7],N=this.h[8],x=this.h[9],F=this.h[10],j=this.h[11],ne=this.h[12],U=this.h[13],L=this.h[14],w=this.h[15];a(this.k.length===re.length);for(var J=0;J<re.length;J+=2){var k=L,o=w,c=O(N,x),T=G(N,x),H=p(N,x,F,j,ne),W=b(N,x,F,j,ne,U),q=this.k[J],ae=this.k[J+1],ce=re[J],ie=re[J+1],pe=_(k,o,c,T,H,W,q,ae,ce,ie),me=E(k,o,c,T,H,W,q,ae,ce,ie);k=B(Q,te),o=z(Q,te),c=A(Q,te,Z,D,I),T=S(Q,te,Z,D,I,Y);var ve=y(k,o,c,T),rt=g(k,o,c,T);L=ne,w=U,ne=F,U=j,F=N,j=x,N=y($,ue,pe,me),x=g(ue,ue,pe,me),$=I,ue=Y,I=Z,Y=D,Z=Q,D=te,Q=y(pe,me,ve,rt),te=g(pe,me,ve,rt)}d(this.h,0,Q,te),d(this.h,2,Z,D),d(this.h,4,I,Y),d(this.h,6,$,ue),d(this.h,8,N,x),d(this.h,10,F,j),d(this.h,12,ne,U),d(this.h,14,L,w)},f.prototype._digest=function(X){return X==="hex"?r.toHex32(this.h,"big"):r.split32(this.h,"big")};function p(P,X,V,re,Q){var te=P&V^~P&Q;return te<0&&(te+=4294967296),te}function b(P,X,V,re,Q,te){var Z=X&re^~X&te;return Z<0&&(Z+=4294967296),Z}function A(P,X,V,re,Q){var te=P&V^P&Q^V&Q;return te<0&&(te+=4294967296),te}function S(P,X,V,re,Q,te){var Z=X&re^X&te^re&te;return Z<0&&(Z+=4294967296),Z}function B(P,X){var V=i(P,X,28),re=i(X,P,2),Q=i(X,P,7),te=V^re^Q;return te<0&&(te+=4294967296),te}function z(P,X){var V=l(P,X,28),re=l(X,P,2),Q=l(X,P,7),te=V^re^Q;return te<0&&(te+=4294967296),te}function O(P,X){var V=i(P,X,14),re=i(P,X,18),Q=i(X,P,9),te=V^re^Q;return te<0&&(te+=4294967296),te}function G(P,X){var V=l(P,X,14),re=l(P,X,18),Q=l(X,P,9),te=V^re^Q;return te<0&&(te+=4294967296),te}function ee(P,X){var V=i(P,X,1),re=i(P,X,8),Q=s(P,X,7),te=V^re^Q;return te<0&&(te+=4294967296),te}function M(P,X){var V=l(P,X,1),re=l(P,X,8),Q=u(P,X,7),te=V^re^Q;return te<0&&(te+=4294967296),te}function K(P,X){var V=i(P,X,19),re=i(X,P,29),Q=s(P,X,6),te=V^re^Q;return te<0&&(te+=4294967296),te}function C(P,X){var V=l(P,X,19),re=l(X,P,29),Q=u(P,X,6),te=V^re^Q;return te<0&&(te+=4294967296),te}}),Yb=he((e,t)=>{var r=ur(),n=G0();function a(){if(!(this instanceof a))return new a;n.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(a,n),t.exports=a,a.blockSize=1024,a.outSize=384,a.hmacStrength=192,a.padLength=128,a.prototype._digest=function(l){return l==="hex"?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}}),Xb=he(e=>{e.sha1=Vb(),e.sha224=Kb(),e.sha256=q0(),e.sha384=Yb(),e.sha512=G0()}),Pb=he(e=>{var t=ur(),r=rl(),n=t.rotl32,a=t.sum32,i=t.sum32_3,l=t.sum32_4,s=r.BlockHash;function u(){if(!(this instanceof u))return new u;s.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}t.inherits(u,s),e.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(m,f){for(var p=this.h[0],b=this.h[1],A=this.h[2],S=this.h[3],B=this.h[4],z=p,O=b,G=A,ee=S,M=B,K=0;K<80;K++){var C=a(n(l(p,d(K,b,A,S),m[v[K]+f],y(K)),_[K]),B);p=B,B=S,S=n(A,10),A=b,b=C,C=a(n(l(z,d(79-K,O,G,ee),m[h[K]+f],g(K)),E[K]),M),z=M,M=ee,ee=n(G,10),G=O,O=C}C=i(this.h[1],A,ee),this.h[1]=i(this.h[2],S,M),this.h[2]=i(this.h[3],B,z),this.h[3]=i(this.h[4],p,O),this.h[4]=i(this.h[0],b,G),this.h[0]=C},u.prototype._digest=function(m){return m==="hex"?t.toHex32(this.h,"little"):t.split32(this.h,"little")};function d(R,m,f,p){return R<=15?m^f^p:R<=31?m&f|~m&p:R<=47?(m|~f)^p:R<=63?m&p|f&~p:m^(f|~p)}function y(R){return R<=15?0:R<=31?1518500249:R<=47?1859775393:R<=63?2400959708:2840853838}function g(R){return R<=15?1352829926:R<=31?1548603684:R<=47?1836072691:R<=63?2053994217:0}var v=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],h=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],_=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],E=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]}),Zb=he((e,t)=>{var r=ur(),n=tl();function a(i,l,s){if(!(this instanceof a))return new a(i,l,s);this.Hash=i,this.blockSize=i.blockSize/8,this.outSize=i.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(l,s))}t.exports=a,a.prototype._init=function(l){l.length>this.blockSize&&(l=new this.Hash().update(l).digest()),n(l.length<=this.blockSize);for(var s=l.length;s<this.blockSize;s++)l.push(0);for(s=0;s<l.length;s++)l[s]^=54;for(this.inner=new this.Hash().update(l),s=0;s<l.length;s++)l[s]^=106;this.outer=new this.Hash().update(l)},a.prototype.update=function(l,s){return this.inner.update(l,s),this},a.prototype.digest=function(l){return this.outer.update(this.inner.digest()),this.outer.digest(l)}});he(e=>{var t=e;t.utils=ur(),t.common=rl(),t.sha=Xb(),t.ripemd=Pb(),t.hmac=Zb(),t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160})();var Wb="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Qb=(e,t=21)=>(r=t)=>{let n="",a=r|0;for(;a--;)n+=e[Math.random()*e.length|0];return n},Jb=(e=21)=>{let t="",r=e|0;for(;r--;)t+=Wb[Math.random()*64|0];return t},Zt=e=>Math.floor(e*72*20),sf=(e=0)=>{let t=e;return()=>++t},$b=()=>sf(),ew=()=>sf(1),tw=()=>sf(),rw=()=>Jb().toLowerCase(),$a=e=>Qb("1234567890abcdef",e)(),nw=()=>`${$a(8)}-${$a(4)}-${$a(4)}-${$a(4)}-${$a(12)}`,Bo=e=>new Uint8Array(new TextEncoder().encode(e)),aw=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{xmlns:"xmlns"})}},iw={EXTERNAL:"External"},lw=(e,t,r,n)=>new be({name:"Relationship",attributes:{id:{key:"Id",value:e},type:{key:"Type",value:t},target:{key:"Target",value:r},targetMode:{key:"TargetMode",value:n}}}),dn=class extends de{constructor(){super("Relationships"),this.root.push(new aw({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}addRelationship(e,t,r,n){this.root.push(lw(`rId${e}`,t,r,n))}get RelationshipCount(){return this.root.length-1}},sw=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{id:"w:id",initials:"w:initials",author:"w:author",date:"w:date"})}},ow=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{"xmlns:cx":"xmlns:cx","xmlns:cx1":"xmlns:cx1","xmlns:cx2":"xmlns:cx2","xmlns:cx3":"xmlns:cx3","xmlns:cx4":"xmlns:cx4","xmlns:cx5":"xmlns:cx5","xmlns:cx6":"xmlns:cx6","xmlns:cx7":"xmlns:cx7","xmlns:cx8":"xmlns:cx8","xmlns:mc":"xmlns:mc","xmlns:aink":"xmlns:aink","xmlns:am3d":"xmlns:am3d","xmlns:o":"xmlns:o","xmlns:r":"xmlns:r","xmlns:m":"xmlns:m","xmlns:v":"xmlns:v","xmlns:wp14":"xmlns:wp14","xmlns:wp":"xmlns:wp","xmlns:w10":"xmlns:w10","xmlns:w":"xmlns:w","xmlns:w14":"xmlns:w14","xmlns:w15":"xmlns:w15","xmlns:w16cex":"xmlns:w16cex","xmlns:w16cid":"xmlns:w16cid","xmlns:w16":"xmlns:w16","xmlns:w16sdtdh":"xmlns:w16sdtdh","xmlns:w16se":"xmlns:w16se","xmlns:wpg":"xmlns:wpg","xmlns:wpi":"xmlns:wpi","xmlns:wne":"xmlns:wne","xmlns:wps":"xmlns:wps"})}},Gh=class extends de{constructor({id:e,initials:t,author:r,date:n=new Date,children:a},i){super("w:comment"),se(this,"paraId",void 0),this.paraId=i,this.root.push(new sw({id:e,initials:t,author:r,date:n.toISOString()}));for(const l of a)this.root.push(l)}prepForXml(e){const t=super.prepForXml(e);if(!t||!this.paraId)return t;const r=t["w:comment"];if(!Array.isArray(r))return t;for(let n=r.length-1;n>=0;n--){const a=r[n];if(a&&typeof a=="object"&&"w:p"in a){const i=a["w:p"];Array.isArray(i)&&i.unshift({_attr:{"w14:paraId":this.paraId,"w14:textId":this.paraId}});break}}return t}},uw=e=>(e+1).toString(16).toUpperCase().padStart(8,"0"),cw=class extends de{constructor({children:e}){if(super("w:comments"),se(this,"relationships",void 0),se(this,"threadData",void 0),this.root.push(new ow({"xmlns:cx":"http://schemas.microsoft.com/office/drawing/2014/chartex","xmlns:cx1":"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex","xmlns:cx2":"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex","xmlns:cx3":"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex","xmlns:cx4":"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex","xmlns:cx5":"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex","xmlns:cx6":"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex","xmlns:cx7":"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex","xmlns:cx8":"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:aink":"http://schemas.microsoft.com/office/drawing/2016/ink","xmlns:am3d":"http://schemas.microsoft.com/office/drawing/2017/model3d","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:m":"http://schemas.openxmlformats.org/officeDocument/2006/math","xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:wp14":"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing","xmlns:wp":"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing","xmlns:w10":"urn:schemas-microsoft-com:office:word","xmlns:w":"http://schemas.openxmlformats.org/wordprocessingml/2006/main","xmlns:w14":"http://schemas.microsoft.com/office/word/2010/wordml","xmlns:w15":"http://schemas.microsoft.com/office/word/2012/wordml","xmlns:w16cex":"http://schemas.microsoft.com/office/word/2018/wordml/cex","xmlns:w16cid":"http://schemas.microsoft.com/office/word/2016/wordml/cid","xmlns:w16":"http://schemas.microsoft.com/office/word/2018/wordml","xmlns:w16sdtdh":"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash","xmlns:w16se":"http://schemas.microsoft.com/office/word/2015/wordml/symex","xmlns:wpg":"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup","xmlns:wpi":"http://schemas.microsoft.com/office/word/2010/wordprocessingInk","xmlns:wne":"http://schemas.microsoft.com/office/word/2006/wordml","xmlns:wps":"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"})),e.some(t=>t.parentId!==void 0)){const t=new Map(e.map(r=>[r.id,uw(r.id)]));for(const r of e)this.root.push(new Gh(r,t.get(r.id)));this.threadData=e.map(r=>({paraId:t.get(r.id),parentParaId:r.parentId!==void 0?t.get(r.parentId):void 0,done:r.resolved}))}else for(const t of e)this.root.push(new Gh(t));this.relationships=new dn}get Relationships(){return this.relationships}get ThreadData(){return this.threadData}},fw=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{"xmlns:wpc":"xmlns:wpc","xmlns:mc":"xmlns:mc","xmlns:w15":"xmlns:w15","mc:Ignorable":"mc:Ignorable"})}},hw=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{paraId:"w15:paraId",paraIdParent:"w15:paraIdParent",done:"w15:done"})}},dw=class extends de{constructor(e){super("w15:commentEx"),this.root.push(new hw({paraId:e.paraId,paraIdParent:e.parentParaId,done:e.done!==void 0?e.done?"1":"0":void 0}))}},pw=class extends de{constructor(e){super("w15:commentsEx"),this.root.push(new fw({"xmlns:wpc":"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:w15":"http://schemas.microsoft.com/office/word/2012/wordml","mc:Ignorable":"w15"}));for(const t of e)this.root.push(new dw(t))}},mw=class extends _b{constructor(){super("w:endnoteRef")}},yw=class extends de{constructor(){super("w:pageBreakBefore")}},Da={AUTO:"auto"},vw=({after:e,before:t,line:r,lineRule:n,beforeAutoSpacing:a,afterAutoSpacing:i})=>new be({name:"w:spacing",attributes:{after:{key:"w:after",value:e},before:{key:"w:before",value:t},line:{key:"w:line",value:r},lineRule:{key:"w:lineRule",value:n},beforeAutoSpacing:{key:"w:beforeAutospacing",value:a},afterAutoSpacing:{key:"w:afterAutospacing",value:i}}}),Vh={HEADING_2:"Heading2",TITLE:"Title"},li=e=>new be({name:"w:pStyle",attributes:{val:{key:"w:val",value:e}}}),Kh={LEFT:"left",RIGHT:"right"},gw=({type:e,position:t,leader:r})=>new be({name:"w:tab",attributes:{val:{key:"w:val",value:e},pos:{key:"w:pos",value:t},leader:{key:"w:leader",value:r}}}),bw=e=>new be({name:"w:tabs",children:e.map(t=>gw(t))}),Mo=class extends de{constructor(e,t){super("w:numPr"),this.root.push(new ww(t)),this.root.push(new _w(e))}},ww=class extends de{constructor(e){if(super("w:ilvl"),e>9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new pt({val:e}))}},_w=class extends de{constructor(e){super("w:numId"),this.root.push(new pt({val:typeof e=="string"?`{${e}}`:e}))}},V0=class extends de{constructor(...e){super(...e),se(this,"fileChild",Symbol())}},xw=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{id:"r:id",history:"w:history",anchor:"w:anchor"})}},Sw=class extends de{constructor(e,t,r){super("w:hyperlink"),se(this,"linkId",void 0),this.linkId=t;const n=new xw({history:1,anchor:r||void 0,id:r?void 0:`rId${this.linkId}`});this.root.push(n),e.forEach(a=>{this.root.push(a)})}},Ew=class extends de{constructor(e){super("w:externalHyperlink"),this.options=e}},Tw=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{id:"w:id",name:"w:name"})}},Aw=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{id:"w:id"})}},Nw=class{constructor(e){se(this,"bookmarkUniqueNumericId",tw()),se(this,"start",void 0),se(this,"children",void 0),se(this,"end",void 0);const t=this.bookmarkUniqueNumericId();this.start=new Ow(e.id,t),this.children=e.children,this.end=new Rw(t)}},Ow=class extends de{constructor(e,t){super("w:bookmarkStart");const r=new Tw({name:e,id:t});this.root.push(r)}},Rw=class extends de{constructor(e){super("w:bookmarkEnd");const t=new Aw({id:e});this.root.push(t)}},Cw=e=>new be({name:"w:outlineLvl",attributes:{val:{key:"w:val",value:e}}}),Nl=({id:e,fontKey:t,subsetted:r},n)=>new be({name:n,attributes:ye({id:{key:"r:id",value:e}},t?{fontKey:{key:"w:fontKey",value:`{${t}}`}}:{}),children:[...r?[new fe("w:subsetted",r)]:[]]}),Dw=({name:e,altName:t,panose1:r,charset:n,family:a,notTrueType:i,pitch:l,sig:s,embedRegular:u,embedBold:d,embedItalic:y,embedBoldItalic:g})=>new be({name:"w:font",attributes:{name:{key:"w:name",value:e}},children:[...t?[Ja("w:altName",t)]:[],...r?[Ja("w:panose1",r)]:[],...n?[Ja("w:charset",n)]:[],Ja("w:family",a),...i?[new fe("w:notTrueType",i)]:[],Ja("w:pitch",l),...s?[new be({name:"w:sig",attributes:{usb0:{key:"w:usb0",value:s.usb0},usb1:{key:"w:usb1",value:s.usb1},usb2:{key:"w:usb2",value:s.usb2},usb3:{key:"w:usb3",value:s.usb3},csb0:{key:"w:csb0",value:s.csb0},csb1:{key:"w:csb1",value:s.csb1}}})]:[],...u?[Nl(u,"w:embedRegular")]:[],...d?[Nl(d,"w:embedBold")]:[],...y?[Nl(y,"w:embedItalic")]:[],...g?[Nl(g,"w:embedBoldItalic")]:[]]}),kw=({name:e,index:t,fontKey:r,characterSet:n})=>Dw({name:e,sig:{usb0:"E0002AFF",usb1:"C000247B",usb2:"00000009",usb3:"00000000",csb0:"000001FF",csb1:"00000000"},charset:n,family:"auto",pitch:"variable",embedRegular:{fontKey:r,id:`rId${t}`}}),Bw=e=>new be({name:"w:fonts",attributes:{mc:{key:"xmlns:mc",value:"http://schemas.openxmlformats.org/markup-compatibility/2006"},r:{key:"xmlns:r",value:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},w:{key:"xmlns:w",value:"http://schemas.openxmlformats.org/wordprocessingml/2006/main"},w14:{key:"xmlns:w14",value:"http://schemas.microsoft.com/office/word/2010/wordml"},w15:{key:"xmlns:w15",value:"http://schemas.microsoft.com/office/word/2012/wordml"},w16cex:{key:"xmlns:w16cex",value:"http://schemas.microsoft.com/office/word/2018/wordml/cex"},w16cid:{key:"xmlns:w16cid",value:"http://schemas.microsoft.com/office/word/2016/wordml/cid"},w16:{key:"xmlns:w16",value:"http://schemas.microsoft.com/office/word/2018/wordml"},w16sdtdh:{key:"xmlns:w16sdtdh",value:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash"},w16se:{key:"xmlns:w16se",value:"http://schemas.microsoft.com/office/word/2015/wordml/symex"},Ignorable:{key:"mc:Ignorable",value:"w14 w15 w16se w16cid w16 w16cex w16sdtdh"}},children:e.map((t,r)=>kw({name:t.name,index:r+1,fontKey:t.fontKey,characterSet:t.characterSet}))}),K0=class{constructor(e){se(this,"fontTable",void 0),se(this,"relationships",void 0),se(this,"fontOptionsWithKey",[]),this.options=e,this.fontOptionsWithKey=e.map(t=>ye(ye({},t),{},{fontKey:nw()})),this.fontTable=Bw(this.fontOptionsWithKey),this.relationships=new dn;for(let t=0;t<e.length;t++)this.relationships.addRelationship(t+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/font",`fonts/font${t+1}.odttf`)}get View(){return this.fontTable}get Relationships(){return this.relationships}},Mw=()=>new be({name:"w:wordWrap",attributes:{val:{key:"w:val",value:0}}}),zw=e=>{var t,r;return new be({name:"w:framePr",attributes:{anchorLock:{key:"w:anchorLock",value:e.anchorLock},dropCap:{key:"w:dropCap",value:e.dropCap},width:{key:"w:w",value:e.width},height:{key:"w:h",value:e.height},x:{key:"w:x",value:e.position?e.position.x:void 0},y:{key:"w:y",value:e.position?e.position.y:void 0},anchorHorizontal:{key:"w:hAnchor",value:e.anchor.horizontal},anchorVertical:{key:"w:vAnchor",value:e.anchor.vertical},spaceHorizontal:{key:"w:hSpace",value:(t=e.space)===null||t===void 0?void 0:t.horizontal},spaceVertical:{key:"w:vSpace",value:(r=e.space)===null||r===void 0?void 0:r.vertical},rule:{key:"w:hRule",value:e.rule},alignmentX:{key:"w:xAlign",value:e.alignment?e.alignment.x:void 0},alignmentY:{key:"w:yAlign",value:e.alignment?e.alignment.y:void 0},lines:{key:"w:lines",value:e.lines},wrap:{key:"w:wrap",value:e.wrap}}})},zn=class extends cn{constructor(e){if(super("w:pPr",e==null?void 0:e.includeIfEmpty),se(this,"numberingReferences",[]),!e)return this;if(e.heading&&this.push(li(e.heading)),e.bullet&&this.push(li("ListParagraph")),e.numbering&&!e.style&&!e.heading&&(e.numbering.custom||this.push(li("ListParagraph"))),e.style&&this.push(li(e.style)),e.keepNext!==void 0&&this.push(new fe("w:keepNext",e.keepNext)),e.keepLines!==void 0&&this.push(new fe("w:keepLines",e.keepLines)),e.pageBreakBefore&&this.push(new yw),e.frame&&this.push(zw(e.frame)),e.widowControl!==void 0&&this.push(new fe("w:widowControl",e.widowControl)),e.bullet&&this.push(new Mo(1,e.bullet.level)),e.numbering){var t,r;this.numberingReferences.push({reference:e.numbering.reference,instance:(t=e.numbering.instance)!==null&&t!==void 0?t:0}),this.push(new Mo(`${e.numbering.reference}-${(r=e.numbering.instance)!==null&&r!==void 0?r:0}`,e.numbering.level))}else e.numbering===!1&&this.push(new Mo(0,0));e.border&&this.push(new xb(e.border)),e.thematicBreak&&this.push(new Sb),e.shading&&this.push(Gs(e.shading)),e.wordWrap&&this.push(Mw()),e.overflowPunctuation&&this.push(new fe("w:overflowPunct",e.overflowPunctuation));const n=[...e.rightTabStop!==void 0?[{type:Kh.RIGHT,position:e.rightTabStop}]:[],...e.tabStops?e.tabStops:[],...e.leftTabStop!==void 0?[{type:Kh.LEFT,position:e.leftTabStop}]:[]];n.length>0&&this.push(bw(n)),e.bidirectional!==void 0&&this.push(new fe("w:bidi",e.bidirectional)),e.spacing&&this.push(vw(e.spacing)),e.indent&&this.push(Eb(e.indent)),e.contextualSpacing!==void 0&&this.push(new fe("w:contextualSpacing",e.contextualSpacing)),e.alignment&&this.push(j0(e.alignment)),e.outlineLevel!==void 0&&this.push(Cw(e.outlineLevel)),e.suppressLineNumbers!==void 0&&this.push(new fe("w:suppressLineNumbers",e.suppressLineNumbers)),e.autoSpaceEastAsianText!==void 0&&this.push(new fe("w:autoSpaceDN",e.autoSpaceEastAsianText)),e.run&&this.push(new qb(e.run)),e.revision&&this.push(new Uw(e.revision))}push(e){this.root.push(e)}prepForXml(e){if(!(e.viewWrapper instanceof K0))for(const t of this.numberingReferences)e.file.Numbering.createConcreteNumberingInstance(t.reference,t.instance);return super.prepForXml(e)}},Uw=class extends de{constructor(e){super("w:pPrChange"),this.root.push(new Xt({id:e.id,author:e.author,date:e.date})),this.root.push(new zn(ye(ye({},e),{},{includeIfEmpty:!0})))}},qe=class extends V0{constructor(e){if(super("w:p"),se(this,"properties",void 0),typeof e=="string")return this.properties=new zn({}),this.root.push(this.properties),this.root.push(new ji(e)),this;if(this.properties=new zn(e),this.root.push(this.properties),e.text&&this.root.push(new ji(e.text)),e.children)for(const t of e.children){if(t instanceof Nw){this.root.push(t.start);for(const r of t.children)this.root.push(r);this.root.push(t.end);continue}this.root.push(t)}}prepForXml(e){for(const t of this.root)if(t instanceof Ew){const r=this.root.indexOf(t),n=new Sw(t.options.children,rw());e.viewWrapper.Relationships.addRelationship(n.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",t.options.link,iw.EXTERNAL),this.root[r]=n}return super.prepForXml(e)}addRunToFront(e){return this.root.splice(1,0,e),this}},Lw=e=>new be({name:"w:gridCol",attributes:e!==void 0?{width:{key:"w:w",value:ct(e)}}:void 0}),Y0=class extends de{constructor(e,t){super("w:tblGrid");for(const r of e)this.root.push(Lw(r));t&&this.root.push(new Hw(t))}},jw=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{id:"w:id"})}},Hw=class extends de{constructor(e){super("w:tblGridChange"),this.root.push(new jw({id:e.id})),this.root.push(new Y0(e.columnWidths))}},Fw=class extends de{constructor(e){super("w:ins"),this.root.push(new Xt({id:e.id,author:e.author,date:e.date}))}},Iw=class extends de{constructor(e){super("w:del"),this.root.push(new Xt({id:e.id,author:e.author,date:e.date}))}},qw=class extends de{constructor(e){super("w:cellIns"),this.root.push(new Xt({id:e.id,author:e.author,date:e.date}))}},Gw=class extends de{constructor(e){super("w:cellDel"),this.root.push(new Xt({id:e.id,author:e.author,date:e.date}))}},Vw=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date",verticalMerge:"w:vMerge",verticalMergeOriginal:"w:vMergeOrig"})}},Kw=class extends de{constructor(e){super("w:cellMerge"),this.root.push(new Vw(e))}},Yw={TOP:"top",CENTER:"center",BOTTOM:"bottom"};ye(ye({},Yw),{},{BOTH:"both"});var X0=e=>new be({name:"w:vAlign",attributes:{verticalAlign:{key:"w:val",value:e}}}),P0=({marginUnitType:e=Hi.DXA,top:t,left:r,bottom:n,right:a})=>[{name:"w:top",size:t},{name:"w:left",size:r},{name:"w:bottom",size:n},{name:"w:right",size:a}].filter(i=>i.size!==void 0).map(({name:i,size:l})=>bs(i,{type:e,size:l})),Xw=e=>{const t=P0(e);if(t.length!==0)return new be({name:"w:tblCellMar",children:t})},Pw=e=>{const t=P0(e);if(t.length!==0)return new be({name:"w:tcMar",children:t})},Hi={AUTO:"auto",DXA:"dxa",PERCENTAGE:"pct"},bs=(e,{type:t=Hi.AUTO,size:r})=>{let n=r;return t===Hi.PERCENTAGE&&typeof r=="number"&&(n=`${r}%`),new be({name:e,attributes:{type:{key:"w:type",value:t},size:{key:"w:w",value:L0(n)}}})},Zw=class extends cn{constructor(e){super("w:tcBorders"),e.top&&this.root.push(Ge("w:top",e.top)),e.start&&this.root.push(Ge("w:start",e.start)),e.left&&this.root.push(Ge("w:left",e.left)),e.bottom&&this.root.push(Ge("w:bottom",e.bottom)),e.end&&this.root.push(Ge("w:end",e.end)),e.right&&this.root.push(Ge("w:right",e.right))}},Ww=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{val:"w:val"})}},Qw=class extends de{constructor(e){super("w:gridSpan"),this.root.push(new Ww({val:dt(e)}))}},Z0={CONTINUE:"continue",RESTART:"restart"},Jw=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{val:"w:val"})}},Yh=class extends de{constructor(e){super("w:vMerge"),this.root.push(new Jw({val:e}))}},$w=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{val:"w:val"})}},e_=class extends de{constructor(e){super("w:textDirection"),this.root.push(new $w({val:e}))}},W0=class extends cn{constructor(e){if(super("w:tcPr",e.includeIfEmpty),e.width&&this.root.push(bs("w:tcW",e.width)),e.columnSpan&&this.root.push(new Qw(e.columnSpan)),e.verticalMerge?this.root.push(new Yh(e.verticalMerge)):e.rowSpan&&e.rowSpan>1&&this.root.push(new Yh(Z0.RESTART)),e.borders&&this.root.push(new Zw(e.borders)),e.shading&&this.root.push(Gs(e.shading)),e.margins){const t=Pw(e.margins);t&&this.root.push(t)}e.textDirection&&this.root.push(new e_(e.textDirection)),e.verticalAlign&&this.root.push(X0(e.verticalAlign)),e.insertion&&this.root.push(new qw(e.insertion)),e.deletion&&this.root.push(new Gw(e.deletion)),e.revision&&this.root.push(new t_(e.revision)),e.cellMerge&&this.root.push(new Kw(e.cellMerge))}},t_=class extends de{constructor(e){super("w:tcPrChange"),this.root.push(new Xt({id:e.id,author:e.author,date:e.date})),this.root.push(new W0(ye(ye({},e),{},{includeIfEmpty:!0})))}},jr=class extends de{constructor(e){super("w:tc"),this.options=e,this.root.push(new W0(e));for(const t of e.children)this.root.push(t)}prepForXml(e){return this.root[this.root.length-1]instanceof qe||this.root.push(new qe({})),super.prepForXml(e)}},Vn={style:nf.NONE,size:0,color:"auto"},Kn={style:nf.SINGLE,size:4,color:"auto"},Q0=class extends de{constructor(e){var t,r,n,a,i,l;super("w:tblBorders"),this.root.push(Ge("w:top",(t=e.top)!==null&&t!==void 0?t:Kn)),this.root.push(Ge("w:left",(r=e.left)!==null&&r!==void 0?r:Kn)),this.root.push(Ge("w:bottom",(n=e.bottom)!==null&&n!==void 0?n:Kn)),this.root.push(Ge("w:right",(a=e.right)!==null&&a!==void 0?a:Kn)),this.root.push(Ge("w:insideH",(i=e.insideHorizontal)!==null&&i!==void 0?i:Kn)),this.root.push(Ge("w:insideV",(l=e.insideVertical)!==null&&l!==void 0?l:Kn))}};se(Q0,"NONE",{top:Vn,bottom:Vn,left:Vn,right:Vn,insideHorizontal:Vn,insideVertical:Vn});var r_=e=>new be({name:"w:tblOverlap",attributes:{val:{key:"w:val",value:e}}}),n_=({horizontalAnchor:e,verticalAnchor:t,absoluteHorizontalPosition:r,relativeHorizontalPosition:n,absoluteVerticalPosition:a,relativeVerticalPosition:i,bottomFromText:l,topFromText:s,leftFromText:u,rightFromText:d,overlap:y})=>new be({name:"w:tblpPr",attributes:{leftFromText:{key:"w:leftFromText",value:u===void 0?void 0:ct(u)},rightFromText:{key:"w:rightFromText",value:d===void 0?void 0:ct(d)},topFromText:{key:"w:topFromText",value:s===void 0?void 0:ct(s)},bottomFromText:{key:"w:bottomFromText",value:l===void 0?void 0:ct(l)},absoluteHorizontalPosition:{key:"w:tblpX",value:r===void 0?void 0:Er(r)},absoluteVerticalPosition:{key:"w:tblpY",value:a===void 0?void 0:Er(a)},horizontalAnchor:{key:"w:horzAnchor",value:e},relativeHorizontalPosition:{key:"w:tblpXSpec",value:n},relativeVerticalPosition:{key:"w:tblpYSpec",value:i},verticalAnchor:{key:"w:vertAnchor",value:t}},children:y?[r_(y)]:void 0}),a_=e=>new be({name:"w:tblLayout",attributes:{type:{key:"w:type",value:e}}}),i_={DXA:"dxa"},J0=({type:e=i_.DXA,value:t})=>new be({name:"w:tblCellSpacing",attributes:{type:{key:"w:type",value:e},value:{key:"w:w",value:L0(t)}}}),l_=({firstRow:e,lastRow:t,firstColumn:r,lastColumn:n,noHBand:a,noVBand:i})=>new be({name:"w:tblLook",attributes:{firstRow:{key:"w:firstRow",value:e},lastRow:{key:"w:lastRow",value:t},firstColumn:{key:"w:firstColumn",value:r},lastColumn:{key:"w:lastColumn",value:n},noHBand:{key:"w:noHBand",value:a},noVBand:{key:"w:noVBand",value:i}}}),$0=class extends cn{constructor(e){if(super("w:tblPr",e.includeIfEmpty),e.style&&this.root.push(new Rn("w:tblStyle",e.style)),e.float&&this.root.push(n_(e.float)),e.visuallyRightToLeft!==void 0&&this.root.push(new fe("w:bidiVisual",e.visuallyRightToLeft)),e.width&&this.root.push(bs("w:tblW",e.width)),e.alignment&&this.root.push(j0(e.alignment)),e.indent&&this.root.push(bs("w:tblInd",e.indent)),e.borders&&this.root.push(new Q0(e.borders)),e.shading&&this.root.push(Gs(e.shading)),e.layout&&this.root.push(a_(e.layout)),e.cellMargin){const t=Xw(e.cellMargin);t&&this.root.push(t)}e.tableLook&&this.root.push(l_(e.tableLook)),e.cellSpacing&&this.root.push(J0(e.cellSpacing)),e.revision&&this.root.push(new s_(e.revision))}},s_=class extends de{constructor(e){super("w:tblPrChange"),this.root.push(new Xt({id:e.id,author:e.author,date:e.date})),this.root.push(new $0(ye(ye({},e),{},{includeIfEmpty:!0})))}},o_=class extends V0{constructor({rows:e,width:t,columnWidths:r=Array(Math.max(...e.map(E=>E.CellCount))).fill(100),columnWidthsRevision:n,margins:a,indent:i,float:l,layout:s,style:u,borders:d,alignment:y,visuallyRightToLeft:g,tableLook:v,cellSpacing:h,revision:_}){super("w:tbl"),this.root.push(new $0({borders:d??{},width:t??{size:100},indent:i,float:l,layout:s,style:u,alignment:y,cellMargin:a,visuallyRightToLeft:g,tableLook:v,cellSpacing:h,revision:_})),this.root.push(new Y0(r,n));for(const E of e)this.root.push(E);e.forEach((E,R)=>{if(R===e.length-1)return;let m=0;E.cells.forEach(f=>{if(f.options.rowSpan&&f.options.rowSpan>1){const p=new jr({rowSpan:f.options.rowSpan-1,columnSpan:f.options.columnSpan,borders:f.options.borders,children:[],verticalMerge:Z0.CONTINUE});e[R+1].addCellToColumnIndex(p,m)}m+=f.options.columnSpan||1})})}},u_=(e,t)=>new be({name:"w:trHeight",attributes:{value:{key:"w:val",value:ct(e)},rule:{key:"w:hRule",value:t}}}),ey=class extends cn{constructor(e){super("w:trPr",e.includeIfEmpty),e.cantSplit!==void 0&&this.root.push(new fe("w:cantSplit",e.cantSplit)),e.tableHeader!==void 0&&this.root.push(new fe("w:tblHeader",e.tableHeader)),e.height&&this.root.push(u_(e.height.value,e.height.rule)),e.cellSpacing&&this.root.push(J0(e.cellSpacing)),e.insertion&&this.root.push(new Fw(e.insertion)),e.deletion&&this.root.push(new Iw(e.deletion)),e.revision&&this.root.push(new c_(e.revision))}},c_=class extends de{constructor(e){super("w:trPrChange"),this.root.push(new Xt({id:e.id,author:e.author,date:e.date})),this.root.push(new ey(ye(ye({},e),{},{includeIfEmpty:!0})))}},Xh=class extends de{constructor(e){super("w:tr"),this.options=e,this.root.push(new ey(e));for(const t of e.children)this.root.push(t)}get CellCount(){return this.options.children.length}get cells(){return this.root.filter(e=>e instanceof jr)}addCellToIndex(e,t){this.root.splice(t+1,0,e)}addCellToColumnIndex(e,t){const r=this.columnIndexToRootIndex(t,!0);this.addCellToIndex(e,r-1)}rootIndexToColumnIndex(e){if(e<1||e>=this.root.length)throw new Error(`cell 'rootIndex' should between 1 to ${this.root.length-1}`);let t=0;for(let r=1;r<e;r++){const n=this.root[r];t+=n.options.columnSpan||1}return t}columnIndexToRootIndex(e,t=!1){if(e<0)throw new Error("cell 'columnIndex' should not less than zero");let r=0,n=1;for(;r<=e;){if(n>=this.root.length){if(t)return this.root.length;throw new Error(`cell 'columnIndex' should not great than ${r-1}`)}const a=this.root[n];n+=1,r+=a&&a.options.columnSpan||1}return n-1}},f_=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}},h_=class extends de{constructor(){super("Properties"),this.root.push(new f_({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}},d_=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{xmlns:"xmlns"})}},yr=(e,t)=>new be({name:"Default",attributes:{contentType:{key:"ContentType",value:e},extension:{key:"Extension",value:t}}}),_t=(e,t)=>new be({name:"Override",attributes:{contentType:{key:"ContentType",value:e},partName:{key:"PartName",value:t}}}),p_=class extends de{constructor(){super("Types"),this.root.push(new d_({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(yr("image/png","png")),this.root.push(yr("image/jpeg","jpeg")),this.root.push(yr("image/jpeg","jpg")),this.root.push(yr("image/bmp","bmp")),this.root.push(yr("image/gif","gif")),this.root.push(yr("image/svg+xml","svg")),this.root.push(yr("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(yr("application/xml","xml")),this.root.push(yr("application/vnd.openxmlformats-officedocument.obfuscatedFont","odttf")),this.root.push(_t("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(_t("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(_t("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(_t("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(_t("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(_t("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(_t("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(_t("application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml","/word/endnotes.xml")),this.root.push(_t("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml")),this.root.push(_t("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml","/word/comments.xml")),this.root.push(_t("application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml","/word/fontTable.xml"))}addCommentsExtended(){this.root.push(_t("application/vnd.openxmlformats-officedocument.wordprocessingml.commentsExtended+xml","/word/commentsExtended.xml"))}addFooter(e){this.root.push(_t("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${e}.xml`))}addHeader(e){this.root.push(_t("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${e}.xml`))}},Ph={wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",aink:"http://schemas.microsoft.com/office/drawing/2016/ink",am3d:"http://schemas.microsoft.com/office/drawing/2017/model3d",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex"},Vs=class extends Se{constructor(e,t){super(ye({Ignorable:t},Object.fromEntries(e.map(r=>[r,Ph[r]])))),se(this,"xmlKeys",ye({Ignorable:"mc:Ignorable"},Object.fromEntries(Object.keys(Ph).map(r=>[r,`xmlns:${r}`]))))}},m_=class extends de{constructor(e){super("cp:coreProperties"),this.root.push(new Vs(["cp","dc","dcterms","dcmitype","xsi"])),e.title&&this.root.push(new yn("dc:title",e.title)),e.subject&&this.root.push(new yn("dc:subject",e.subject)),e.creator&&this.root.push(new yn("dc:creator",e.creator)),e.keywords&&this.root.push(new yn("cp:keywords",e.keywords)),e.description&&this.root.push(new yn("dc:description",e.description)),e.lastModifiedBy&&this.root.push(new yn("cp:lastModifiedBy",e.lastModifiedBy)),e.revision&&this.root.push(new yn("cp:revision",String(e.revision))),this.root.push(new Zh("dcterms:created")),this.root.push(new Zh("dcterms:modified"))}},y_=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{type:"xsi:type"})}},Zh=class extends de{constructor(e){super(e),this.root.push(new y_({type:"dcterms:W3CDTF"})),this.root.push(wb(new Date))}},v_=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}},g_=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{formatId:"fmtid",pid:"pid",name:"name"})}},b_=class extends de{constructor(e,t){super("property"),this.root.push(new g_({formatId:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e.toString(),name:t.name})),this.root.push(new w_(t.value))}},w_=class extends de{constructor(e){super("vt:lpwstr"),this.root.push(e)}},__=class extends de{constructor(e){super("Properties"),se(this,"nextId",void 0),se(this,"properties",[]),this.root.push(new v_({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"})),this.nextId=2;for(const t of e)this.addCustomProperty(t)}prepForXml(e){return this.properties.forEach(t=>this.root.push(t)),super.prepForXml(e)}addCustomProperty(e){this.properties.push(new b_(this.nextId++,e))}},x_=({space:e,count:t,separate:r,equalWidth:n,children:a})=>new be({name:"w:cols",attributes:{space:{key:"w:space",value:e===void 0?void 0:ct(e)},count:{key:"w:num",value:t===void 0?void 0:dt(t)},separate:{key:"w:sep",value:r},equalWidth:{key:"w:equalWidth",value:n}},children:!n&&a?a:void 0}),S_=({type:e,linePitch:t,charSpace:r})=>new be({name:"w:docGrid",attributes:{type:{key:"w:type",value:e},linePitch:{key:"w:linePitch",value:dt(t)},charSpace:{key:"w:charSpace",value:r?dt(r):void 0}}}),ma={DEFAULT:"default",FIRST:"first",EVEN:"even"},Wh={HEADER:"w:headerReference",FOOTER:"w:footerReference"},zo=(e,t)=>new be({name:e,attributes:{type:{key:"w:type",value:t.type||ma.DEFAULT},id:{key:"r:id",value:`rId${t.id}`}}}),E_=({countBy:e,start:t,restart:r,distance:n})=>new be({name:"w:lnNumType",attributes:{countBy:{key:"w:countBy",value:e===void 0?void 0:dt(e)},start:{key:"w:start",value:t===void 0?void 0:dt(t)},restart:{key:"w:restart",value:r},distance:{key:"w:distance",value:n===void 0?void 0:ct(n)}}}),Qh=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"})}},T_=class extends cn{constructor(e){if(super("w:pgBorders"),!e)return this;e.pageBorders?this.root.push(new Qh({display:e.pageBorders.display,offsetFrom:e.pageBorders.offsetFrom,zOrder:e.pageBorders.zOrder})):this.root.push(new Qh({})),e.pageBorderTop&&this.root.push(Ge("w:top",e.pageBorderTop)),e.pageBorderLeft&&this.root.push(Ge("w:left",e.pageBorderLeft)),e.pageBorderBottom&&this.root.push(Ge("w:bottom",e.pageBorderBottom)),e.pageBorderRight&&this.root.push(Ge("w:right",e.pageBorderRight))}},A_=(e,t,r,n,a,i,l)=>new be({name:"w:pgMar",attributes:{top:{key:"w:top",value:Er(e)},right:{key:"w:right",value:ct(t)},bottom:{key:"w:bottom",value:Er(r)},left:{key:"w:left",value:ct(n)},header:{key:"w:header",value:ct(a)},footer:{key:"w:footer",value:ct(i)},gutter:{key:"w:gutter",value:ct(l)}}}),N_=({start:e,formatType:t,separator:r})=>new be({name:"w:pgNumType",attributes:{start:{key:"w:start",value:e===void 0?void 0:dt(e)},formatType:{key:"w:fmt",value:t},separator:{key:"w:chapSep",value:r}}}),qu={PORTRAIT:"portrait",LANDSCAPE:"landscape"},O_=({width:e,height:t,orientation:r,code:n})=>{const a=ct(e),i=ct(t);return new be({name:"w:pgSz",attributes:{width:{key:"w:w",value:r===qu.LANDSCAPE?i:a},height:{key:"w:h",value:r===qu.LANDSCAPE?a:i},orientation:{key:"w:orient",value:r},code:{key:"w:code",value:n}}})},R_=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{val:"w:val"})}},C_=class extends de{constructor(e){super("w:textDirection"),this.root.push(new R_({val:e}))}},D_=e=>new be({name:"w:type",attributes:{val:{key:"w:val",value:e}}}),vn={TOP:1440,RIGHT:1440,BOTTOM:1440,LEFT:1440,HEADER:708,FOOTER:708,GUTTER:0},Uo={WIDTH:11906,HEIGHT:16838,ORIENTATION:qu.PORTRAIT},ty=class extends de{constructor({page:{size:{width:e=Uo.WIDTH,height:t=Uo.HEIGHT,orientation:r=Uo.ORIENTATION,code:n}={},margin:{top:a=vn.TOP,right:i=vn.RIGHT,bottom:l=vn.BOTTOM,left:s=vn.LEFT,header:u=vn.HEADER,footer:d=vn.FOOTER,gutter:y=vn.GUTTER}={},pageNumbers:g={},borders:v,textDirection:h}={},grid:{linePitch:_=360,charSpace:E,type:R}={},headerWrapperGroup:m={},footerWrapperGroup:f={},lineNumbers:p,titlePage:b,verticalAlign:A,column:S,type:B,revision:z}={}){super("w:sectPr"),this.addHeaderFooterGroup(Wh.HEADER,m),this.addHeaderFooterGroup(Wh.FOOTER,f),B&&this.root.push(D_(B)),this.root.push(O_({width:e,height:t,orientation:r,code:n})),this.root.push(A_(a,i,l,s,u,d,y)),v&&this.root.push(new T_(v)),p&&this.root.push(E_(p)),this.root.push(N_(g)),S&&this.root.push(x_(S)),A&&this.root.push(X0(A)),b!==void 0&&this.root.push(new fe("w:titlePg",b)),h&&this.root.push(new C_(h)),z&&this.root.push(new k_(z)),this.root.push(S_({linePitch:_,charSpace:E,type:R}))}addHeaderFooterGroup(e,t){t.default&&this.root.push(zo(e,{type:ma.DEFAULT,id:t.default.View.ReferenceId})),t.first&&this.root.push(zo(e,{type:ma.FIRST,id:t.first.View.ReferenceId})),t.even&&this.root.push(zo(e,{type:ma.EVEN,id:t.even.View.ReferenceId}))}},k_=class extends de{constructor(e){super("w:sectPrChange"),this.root.push(new Xt({id:e.id,author:e.author,date:e.date})),this.root.push(new ty(e))}},B_=class extends de{constructor(){super("w:body"),se(this,"sections",[])}addSection(e){const t=this.sections.pop();this.root.push(this.createSectionParagraph(t)),this.sections.push(new ty(e))}prepForXml(e){return this.sections.length===1&&(this.root.splice(0,1),this.root.push(this.sections.pop())),super.prepForXml(e)}push(e){this.root.push(e)}createSectionParagraph(e){const t=new qe({}),r=new zn({});return r.push(e),t.addChildElement(r),t}},M_=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"})}},z_=class extends de{constructor(e){super("w:background"),this.root.push(new M_({color:e.color===void 0?void 0:Oa(e.color),themeColor:e.themeColor,themeShade:e.themeShade===void 0?void 0:Ih(e.themeShade),themeTint:e.themeTint===void 0?void 0:Ih(e.themeTint)}))}},U_=class extends de{constructor(e){super("w:document"),se(this,"body",void 0),this.root.push(new Vs(["wpc","mc","o","r","m","v","wp14","wp","w10","w","w14","w15","wpg","wpi","wne","wps","cx","cx1","cx2","cx3","cx4","cx5","cx6","cx7","cx8","aink","am3d","w16cex","w16cid","w16","w16sdtdh","w16se"],"w14 w15 wp14")),this.body=new B_,e.background&&this.root.push(new z_(e.background)),this.root.push(this.body)}add(e){return this.body.push(e),this}get Body(){return this.body}},L_=class{constructor(e){se(this,"document",void 0),se(this,"relationships",void 0),this.document=new U_(e),this.relationships=new dn}get View(){return this.document}get Relationships(){return this.relationships}},j_=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}},H_=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{type:"w:type",id:"w:id"})}},F_=class extends el{constructor(){super({style:"EndnoteReference"}),this.root.push(new mw)}},Jh={SEPARATOR:"separator",CONTINUATION_SEPARATOR:"continuationSeparator"},Lo=class extends de{constructor(e){super("w:endnote"),this.root.push(new H_({type:e.type,id:e.id}));for(let t=0;t<e.children.length;t++){const r=e.children[t];t===0&&r.addRunToFront(new F_),this.root.push(r)}}},I_=class extends de{constructor(){super("w:continuationSeparator")}},ry=class extends el{constructor(){super({}),this.root.push(new I_)}},q_=class extends de{constructor(){super("w:separator")}},ny=class extends el{constructor(){super({}),this.root.push(new q_)}},G_=class extends de{constructor(){super("w:endnotes"),this.root.push(new j_({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));const e=new Lo({id:-1,type:Jh.SEPARATOR,children:[new qe({spacing:{after:0,line:240,lineRule:Da.AUTO},children:[new ny]})]});this.root.push(e);const t=new Lo({id:0,type:Jh.CONTINUATION_SEPARATOR,children:[new qe({spacing:{after:0,line:240,lineRule:Da.AUTO},children:[new ry]})]});this.root.push(t)}createEndnote(e,t){const r=new Lo({id:e,children:t});this.root.push(r)}},V_=class{constructor(){se(this,"endnotes",void 0),se(this,"relationships",void 0),this.endnotes=new G_,this.relationships=new dn}get View(){return this.endnotes}get Relationships(){return this.relationships}},K_=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type"})}},Y_=class extends M0{constructor(e,t){super("w:ftr",t),se(this,"refId",void 0),this.refId=e,t||this.root.push(new K_({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}))}get ReferenceId(){return this.refId}add(e){this.root.push(e)}},X_=class{constructor(e,t,r){se(this,"footer",void 0),se(this,"relationships",void 0),this.media=e,this.footer=new Y_(t,r),this.relationships=new dn}add(e){this.footer.add(e)}addChildElement(e){this.footer.addChildElement(e)}get View(){return this.footer}get Relationships(){return this.relationships}get Media(){return this.media}},P_=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{type:"w:type",id:"w:id"})}},Z_=class extends de{constructor(){super("w:footnoteRef")}},W_=class extends el{constructor(){super({style:"FootnoteReference"}),this.root.push(new Z_)}},$h={SEPERATOR:"separator",CONTINUATION_SEPERATOR:"continuationSeparator"},jo=class extends de{constructor(e){super("w:footnote"),this.root.push(new P_({type:e.type,id:e.id}));for(let t=0;t<e.children.length;t++){const r=e.children[t];t===0&&r.addRunToFront(new W_),this.root.push(r)}}},Q_=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}},J_=class extends de{constructor(){super("w:footnotes"),this.root.push(new Q_({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));const e=new jo({id:-1,type:$h.SEPERATOR,children:[new qe({spacing:{after:0,line:240,lineRule:Da.AUTO},children:[new ny]})]});this.root.push(e);const t=new jo({id:0,type:$h.CONTINUATION_SEPERATOR,children:[new qe({spacing:{after:0,line:240,lineRule:Da.AUTO},children:[new ry]})]});this.root.push(t)}createFootNote(e,t){const r=new jo({id:e,children:t});this.root.push(r)}},$_=class{constructor(){se(this,"footnotess",void 0),se(this,"relationships",void 0),this.footnotess=new J_,this.relationships=new dn}get View(){return this.footnotess}get Relationships(){return this.relationships}},ex=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type",cx:"xmlns:cx",cx1:"xmlns:cx1",cx2:"xmlns:cx2",cx3:"xmlns:cx3",cx4:"xmlns:cx4",cx5:"xmlns:cx5",cx6:"xmlns:cx6",cx7:"xmlns:cx7",cx8:"xmlns:cx8",w16cid:"xmlns:w16cid",w16se:"xmlns:w16se"})}},tx=class extends M0{constructor(e,t){super("w:hdr",t),se(this,"refId",void 0),this.refId=e,t||this.root.push(new ex({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex"}))}get ReferenceId(){return this.refId}add(e){this.root.push(e)}},rx=class{constructor(e,t,r){se(this,"header",void 0),se(this,"relationships",void 0),this.media=e,this.header=new tx(t,r),this.relationships=new dn}add(e){return this.header.add(e),this}addChildElement(e){this.header.addChildElement(e)}get View(){return this.header}get Relationships(){return this.relationships}get Media(){return this.media}},nx=class{constructor(){se(this,"map",void 0),this.map=new Map}addImage(e,t){this.map.set(e,t)}get Array(){return Array.from(this.map.values())}},vr={BULLET:"bullet"},ax=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{ilvl:"w:ilvl",tentative:"w15:tentative"})}},ix=class extends de{constructor(e){super("w:numFmt"),this.root.push(new pt({val:e}))}},lx=class extends de{constructor(e){super("w:lvlText"),this.root.push(new pt({val:e}))}},sx=class extends de{constructor(e){super("w:lvlJc"),this.root.push(new pt({val:e}))}},ox=class extends de{constructor(e){super("w:suff"),this.root.push(new pt({val:e}))}},ux=class extends de{constructor(){super("w:isLgl")}},cx=class extends de{constructor({level:e,format:t,text:r,alignment:n=$t.START,start:a=1,style:i,suffix:l,isLegalNumberingStyle:s}){if(super("w:lvl"),se(this,"paragraphProperties",void 0),se(this,"runProperties",void 0),this.root.push(new xi("w:start",dt(a))),t&&this.root.push(new ix(t)),l&&this.root.push(new ox(l)),s&&this.root.push(new ux),r&&this.root.push(new lx(r)),this.root.push(new sx(n)),i!=null&&i.style&&this.root.push(li(i.style)),this.paragraphProperties=new zn(i&&i.paragraph),this.runProperties=new In(i&&i.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties),e>9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new ax({ilvl:dt(e),tentative:1}))}},fx=class extends cx{},hx=class extends de{constructor(e){super("w:multiLevelType"),this.root.push(new pt({val:e}))}},dx=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"})}},ed=class extends de{constructor(e,t){super("w:abstractNum"),se(this,"id",void 0),this.root.push(new dx({abstractNumId:dt(e),restartNumberingAfterBreak:0})),this.root.push(new hx("hybridMultilevel")),this.id=e;for(const r of t)this.root.push(new fx(r))}},px=class extends de{constructor(e){super("w:abstractNumId"),this.root.push(new pt({val:e}))}},mx=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{numId:"w:numId"})}},td=class extends de{constructor(e){if(super("w:num"),se(this,"numId",void 0),se(this,"reference",void 0),se(this,"instance",void 0),this.numId=e.numId,this.reference=e.reference,this.instance=e.instance,this.root.push(new mx({numId:dt(e.numId)})),this.root.push(new px(dt(e.abstractNumId))),e.overrideLevels&&e.overrideLevels.length)for(const t of e.overrideLevels)this.root.push(new vx(t.num,t.start))}},yx=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{ilvl:"w:ilvl"})}},vx=class extends de{constructor(e,t){super("w:lvlOverride"),this.root.push(new yx({ilvl:e})),t!==void 0&&this.root.push(new bx(t))}},gx=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{val:"w:val"})}},bx=class extends de{constructor(e){super("w:startOverride"),this.root.push(new gx({val:e}))}},wx=class extends de{constructor(e){super("w:numbering"),se(this,"abstractNumberingMap",new Map),se(this,"concreteNumberingMap",new Map),se(this,"referenceConfigMap",new Map),se(this,"abstractNumUniqueNumericId",$b()),se(this,"concreteNumUniqueNumericId",ew()),this.root.push(new Vs(["wpc","mc","o","r","m","v","wp14","wp","w10","w","w14","w15","wpg","wpi","wne","wps"],"w14 w15 wp14"));const t=new ed(this.abstractNumUniqueNumericId(),[{level:0,format:vr.BULLET,text:"●",alignment:$t.LEFT,style:{paragraph:{indent:{left:Zt(.5),hanging:Zt(.25)}}}},{level:1,format:vr.BULLET,text:"○",alignment:$t.LEFT,style:{paragraph:{indent:{left:Zt(1),hanging:Zt(.25)}}}},{level:2,format:vr.BULLET,text:"■",alignment:$t.LEFT,style:{paragraph:{indent:{left:2160,hanging:Zt(.25)}}}},{level:3,format:vr.BULLET,text:"●",alignment:$t.LEFT,style:{paragraph:{indent:{left:2880,hanging:Zt(.25)}}}},{level:4,format:vr.BULLET,text:"○",alignment:$t.LEFT,style:{paragraph:{indent:{left:3600,hanging:Zt(.25)}}}},{level:5,format:vr.BULLET,text:"■",alignment:$t.LEFT,style:{paragraph:{indent:{left:4320,hanging:Zt(.25)}}}},{level:6,format:vr.BULLET,text:"●",alignment:$t.LEFT,style:{paragraph:{indent:{left:5040,hanging:Zt(.25)}}}},{level:7,format:vr.BULLET,text:"●",alignment:$t.LEFT,style:{paragraph:{indent:{left:5760,hanging:Zt(.25)}}}},{level:8,format:vr.BULLET,text:"●",alignment:$t.LEFT,style:{paragraph:{indent:{left:6480,hanging:Zt(.25)}}}}]);this.concreteNumberingMap.set("default-bullet-numbering",new td({numId:1,abstractNumId:t.id,reference:"default-bullet-numbering",instance:0,overrideLevels:[{num:0,start:1}]})),this.abstractNumberingMap.set("default-bullet-numbering",t);for(const r of e.config)this.abstractNumberingMap.set(r.reference,new ed(this.abstractNumUniqueNumericId(),r.levels)),this.referenceConfigMap.set(r.reference,r.levels)}prepForXml(e){for(const t of this.abstractNumberingMap.values())this.root.push(t);for(const t of this.concreteNumberingMap.values())this.root.push(t);return super.prepForXml(e)}createConcreteNumberingInstance(e,t){const r=this.abstractNumberingMap.get(e);if(!r)return;const n=`${e}-${t}`;if(this.concreteNumberingMap.has(n))return;const a=this.referenceConfigMap.get(e),i=a&&a[0].start,l={numId:this.concreteNumUniqueNumericId(),abstractNumId:r.id,reference:e,instance:t,overrideLevels:[typeof i=="number"&&Number.isInteger(i)?{num:0,start:i}:{num:0,start:1}]};this.concreteNumberingMap.set(n,new td(l))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}},_x=e=>new be({name:"w:compatSetting",attributes:{version:{key:"w:val",value:e},name:{key:"w:name",value:"compatibilityMode"},uri:{key:"w:uri",value:"http://schemas.microsoft.com/office/word"}}}),xx=class extends de{constructor(e){super("w:compat"),e.version&&this.root.push(_x(e.version)),e.useSingleBorderforContiguousCells&&this.root.push(new fe("w:useSingleBorderforContiguousCells",e.useSingleBorderforContiguousCells)),e.wordPerfectJustification&&this.root.push(new fe("w:wpJustification",e.wordPerfectJustification)),e.noTabStopForHangingIndent&&this.root.push(new fe("w:noTabHangInd",e.noTabStopForHangingIndent)),e.noLeading&&this.root.push(new fe("w:noLeading",e.noLeading)),e.spaceForUnderline&&this.root.push(new fe("w:spaceForUL",e.spaceForUnderline)),e.noColumnBalance&&this.root.push(new fe("w:noColumnBalance",e.noColumnBalance)),e.balanceSingleByteDoubleByteWidth&&this.root.push(new fe("w:balanceSingleByteDoubleByteWidth",e.balanceSingleByteDoubleByteWidth)),e.noExtraLineSpacing&&this.root.push(new fe("w:noExtraLineSpacing",e.noExtraLineSpacing)),e.doNotLeaveBackslashAlone&&this.root.push(new fe("w:doNotLeaveBackslashAlone",e.doNotLeaveBackslashAlone)),e.underlineTrailingSpaces&&this.root.push(new fe("w:ulTrailSpace",e.underlineTrailingSpaces)),e.doNotExpandShiftReturn&&this.root.push(new fe("w:doNotExpandShiftReturn",e.doNotExpandShiftReturn)),e.spacingInWholePoints&&this.root.push(new fe("w:spacingInWholePoints",e.spacingInWholePoints)),e.lineWrapLikeWord6&&this.root.push(new fe("w:lineWrapLikeWord6",e.lineWrapLikeWord6)),e.printBodyTextBeforeHeader&&this.root.push(new fe("w:printBodyTextBeforeHeader",e.printBodyTextBeforeHeader)),e.printColorsBlack&&this.root.push(new fe("w:printColBlack",e.printColorsBlack)),e.spaceWidth&&this.root.push(new fe("w:wpSpaceWidth",e.spaceWidth)),e.showBreaksInFrames&&this.root.push(new fe("w:showBreaksInFrames",e.showBreaksInFrames)),e.subFontBySize&&this.root.push(new fe("w:subFontBySize",e.subFontBySize)),e.suppressBottomSpacing&&this.root.push(new fe("w:suppressBottomSpacing",e.suppressBottomSpacing)),e.suppressTopSpacing&&this.root.push(new fe("w:suppressTopSpacing",e.suppressTopSpacing)),e.suppressSpacingAtTopOfPage&&this.root.push(new fe("w:suppressSpacingAtTopOfPage",e.suppressSpacingAtTopOfPage)),e.suppressTopSpacingWP&&this.root.push(new fe("w:suppressTopSpacingWP",e.suppressTopSpacingWP)),e.suppressSpBfAfterPgBrk&&this.root.push(new fe("w:suppressSpBfAfterPgBrk",e.suppressSpBfAfterPgBrk)),e.swapBordersFacingPages&&this.root.push(new fe("w:swapBordersFacingPages",e.swapBordersFacingPages)),e.convertMailMergeEsc&&this.root.push(new fe("w:convMailMergeEsc",e.convertMailMergeEsc)),e.truncateFontHeightsLikeWP6&&this.root.push(new fe("w:truncateFontHeightsLikeWP6",e.truncateFontHeightsLikeWP6)),e.macWordSmallCaps&&this.root.push(new fe("w:mwSmallCaps",e.macWordSmallCaps)),e.usePrinterMetrics&&this.root.push(new fe("w:usePrinterMetrics",e.usePrinterMetrics)),e.doNotSuppressParagraphBorders&&this.root.push(new fe("w:doNotSuppressParagraphBorders",e.doNotSuppressParagraphBorders)),e.wrapTrailSpaces&&this.root.push(new fe("w:wrapTrailSpaces",e.wrapTrailSpaces)),e.footnoteLayoutLikeWW8&&this.root.push(new fe("w:footnoteLayoutLikeWW8",e.footnoteLayoutLikeWW8)),e.shapeLayoutLikeWW8&&this.root.push(new fe("w:shapeLayoutLikeWW8",e.shapeLayoutLikeWW8)),e.alignTablesRowByRow&&this.root.push(new fe("w:alignTablesRowByRow",e.alignTablesRowByRow)),e.forgetLastTabAlignment&&this.root.push(new fe("w:forgetLastTabAlignment",e.forgetLastTabAlignment)),e.adjustLineHeightInTable&&this.root.push(new fe("w:adjustLineHeightInTable",e.adjustLineHeightInTable)),e.autoSpaceLikeWord95&&this.root.push(new fe("w:autoSpaceLikeWord95",e.autoSpaceLikeWord95)),e.noSpaceRaiseLower&&this.root.push(new fe("w:noSpaceRaiseLower",e.noSpaceRaiseLower)),e.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new fe("w:doNotUseHTMLParagraphAutoSpacing",e.doNotUseHTMLParagraphAutoSpacing)),e.layoutRawTableWidth&&this.root.push(new fe("w:layoutRawTableWidth",e.layoutRawTableWidth)),e.layoutTableRowsApart&&this.root.push(new fe("w:layoutTableRowsApart",e.layoutTableRowsApart)),e.useWord97LineBreakRules&&this.root.push(new fe("w:useWord97LineBreakRules",e.useWord97LineBreakRules)),e.doNotBreakWrappedTables&&this.root.push(new fe("w:doNotBreakWrappedTables",e.doNotBreakWrappedTables)),e.doNotSnapToGridInCell&&this.root.push(new fe("w:doNotSnapToGridInCell",e.doNotSnapToGridInCell)),e.selectFieldWithFirstOrLastCharacter&&this.root.push(new fe("w:selectFldWithFirstOrLastChar",e.selectFieldWithFirstOrLastCharacter)),e.applyBreakingRules&&this.root.push(new fe("w:applyBreakingRules",e.applyBreakingRules)),e.doNotWrapTextWithPunctuation&&this.root.push(new fe("w:doNotWrapTextWithPunct",e.doNotWrapTextWithPunctuation)),e.doNotUseEastAsianBreakRules&&this.root.push(new fe("w:doNotUseEastAsianBreakRules",e.doNotUseEastAsianBreakRules)),e.useWord2002TableStyleRules&&this.root.push(new fe("w:useWord2002TableStyleRules",e.useWord2002TableStyleRules)),e.growAutofit&&this.root.push(new fe("w:growAutofit",e.growAutofit)),e.useFELayout&&this.root.push(new fe("w:useFELayout",e.useFELayout)),e.useNormalStyleForList&&this.root.push(new fe("w:useNormalStyleForList",e.useNormalStyleForList)),e.doNotUseIndentAsNumberingTabStop&&this.root.push(new fe("w:doNotUseIndentAsNumberingTabStop",e.doNotUseIndentAsNumberingTabStop)),e.useAlternateEastAsianLineBreakRules&&this.root.push(new fe("w:useAltKinsokuLineBreakRules",e.useAlternateEastAsianLineBreakRules)),e.allowSpaceOfSameStyleInTable&&this.root.push(new fe("w:allowSpaceOfSameStyleInTable",e.allowSpaceOfSameStyleInTable)),e.doNotSuppressIndentation&&this.root.push(new fe("w:doNotSuppressIndentation",e.doNotSuppressIndentation)),e.doNotAutofitConstrainedTables&&this.root.push(new fe("w:doNotAutofitConstrainedTables",e.doNotAutofitConstrainedTables)),e.autofitToFirstFixedWidthCell&&this.root.push(new fe("w:autofitToFirstFixedWidthCell",e.autofitToFirstFixedWidthCell)),e.underlineTabInNumberingList&&this.root.push(new fe("w:underlineTabInNumList",e.underlineTabInNumberingList)),e.displayHangulFixedWidth&&this.root.push(new fe("w:displayHangulFixedWidth",e.displayHangulFixedWidth)),e.splitPgBreakAndParaMark&&this.root.push(new fe("w:splitPgBreakAndParaMark",e.splitPgBreakAndParaMark)),e.doNotVerticallyAlignCellWithSp&&this.root.push(new fe("w:doNotVertAlignCellWithSp",e.doNotVerticallyAlignCellWithSp)),e.doNotBreakConstrainedForcedTable&&this.root.push(new fe("w:doNotBreakConstrainedForcedTable",e.doNotBreakConstrainedForcedTable)),e.ignoreVerticalAlignmentInTextboxes&&this.root.push(new fe("w:doNotVertAlignInTxbx",e.ignoreVerticalAlignmentInTextboxes)),e.useAnsiKerningPairs&&this.root.push(new fe("w:useAnsiKerningPairs",e.useAnsiKerningPairs)),e.cachedColumnBalance&&this.root.push(new fe("w:cachedColBalance",e.cachedColumnBalance))}},Sx=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}},Ex=class extends de{constructor(e){var t,r,n,a,i,l,s,u;super("w:settings"),this.root.push(new Sx({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"})),this.root.push(new fe("w:displayBackgroundShape",!0)),e.trackRevisions!==void 0&&this.root.push(new fe("w:trackRevisions",e.trackRevisions)),e.evenAndOddHeaders!==void 0&&this.root.push(new fe("w:evenAndOddHeaders",e.evenAndOddHeaders)),e.updateFields!==void 0&&this.root.push(new fe("w:updateFields",e.updateFields)),e.defaultTabStop!==void 0&&this.root.push(new xi("w:defaultTabStop",e.defaultTabStop)),((t=e.hyphenation)===null||t===void 0?void 0:t.autoHyphenation)!==void 0&&this.root.push(new fe("w:autoHyphenation",e.hyphenation.autoHyphenation)),((r=e.hyphenation)===null||r===void 0?void 0:r.hyphenationZone)!==void 0&&this.root.push(new xi("w:hyphenationZone",e.hyphenation.hyphenationZone)),((n=e.hyphenation)===null||n===void 0?void 0:n.consecutiveHyphenLimit)!==void 0&&this.root.push(new xi("w:consecutiveHyphenLimit",e.hyphenation.consecutiveHyphenLimit)),((a=e.hyphenation)===null||a===void 0?void 0:a.doNotHyphenateCaps)!==void 0&&this.root.push(new fe("w:doNotHyphenateCaps",e.hyphenation.doNotHyphenateCaps)),this.root.push(new xx(ye(ye({},(i=e.compatibility)!==null&&i!==void 0?i:{}),{},{version:(l=(s=(u=e.compatibility)===null||u===void 0?void 0:u.version)!==null&&s!==void 0?s:e.compatibilityModeVersion)!==null&&l!==void 0?l:15})))}},ay=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{val:"w:val"})}},Tx=class extends de{constructor(e){super("w:name"),this.root.push(new ay({val:e}))}},Ax=class extends de{constructor(e){super("w:uiPriority"),this.root.push(new ay({val:dt(e)}))}},Nx=class extends Se{constructor(...e){super(...e),se(this,"xmlKeys",{type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"})}},iy=class extends de{constructor(e,t){super("w:style"),this.root.push(new Nx(e)),t.name&&this.root.push(new Tx(t.name)),t.basedOn&&this.root.push(new Rn("w:basedOn",t.basedOn)),t.next&&this.root.push(new Rn("w:next",t.next)),t.link&&this.root.push(new Rn("w:link",t.link)),t.uiPriority!==void 0&&this.root.push(new Ax(t.uiPriority)),t.semiHidden!==void 0&&this.root.push(new fe("w:semiHidden",t.semiHidden)),t.unhideWhenUsed!==void 0&&this.root.push(new fe("w:unhideWhenUsed",t.unhideWhenUsed)),t.quickFormat!==void 0&&this.root.push(new fe("w:qFormat",t.quickFormat))}},nl=class extends iy{constructor(e){super({type:"paragraph",styleId:e.id},e),se(this,"paragraphProperties",void 0),se(this,"runProperties",void 0),this.paragraphProperties=new zn(e.paragraph),this.runProperties=new In(e.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}},qa=class extends iy{constructor(e){super({type:"character",styleId:e.id},ye({uiPriority:99,unhideWhenUsed:!0},e)),se(this,"runProperties",void 0),this.runProperties=new In(e.run),this.root.push(this.runProperties)}},pn=class extends nl{constructor(e){super(ye({basedOn:"Normal",next:"Normal",quickFormat:!0},e))}},Ox=class extends pn{constructor(e){super(ye({id:"Title",name:"Title"},e))}},Rx=class extends pn{constructor(e){super(ye({id:"Heading1",name:"Heading 1"},e))}},Cx=class extends pn{constructor(e){super(ye({id:"Heading2",name:"Heading 2"},e))}},Dx=class extends pn{constructor(e){super(ye({id:"Heading3",name:"Heading 3"},e))}},kx=class extends pn{constructor(e){super(ye({id:"Heading4",name:"Heading 4"},e))}},Bx=class extends pn{constructor(e){super(ye({id:"Heading5",name:"Heading 5"},e))}},Mx=class extends pn{constructor(e){super(ye({id:"Heading6",name:"Heading 6"},e))}},zx=class extends pn{constructor(e){super(ye({id:"Strong",name:"Strong"},e))}},Ux=class extends nl{constructor(e){super(ye({id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0},e))}},Lx=class extends nl{constructor(e){super(ye({id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:Da.AUTO}},run:{size:20}},e))}},jx=class extends qa{constructor(e){super(ye({id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},e))}},Hx=class extends qa{constructor(e){super(ye({id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}},e))}},Fx=class extends nl{constructor(e){super(ye({id:"EndnoteText",name:"endnote text",link:"EndnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:Da.AUTO}},run:{size:20}},e))}},Ix=class extends qa{constructor(e){super(ye({id:"EndnoteReference",name:"endnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},e))}},qx=class extends qa{constructor(e){super(ye({id:"EndnoteTextChar",name:"Endnote Text Char",basedOn:"DefaultParagraphFont",link:"EndnoteText",semiHidden:!0,run:{size:20}},e))}},Gx=class extends qa{constructor(e){super(ye({id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:F0.SINGLE}}},e))}},Ho=class extends de{constructor(e){if(super("w:styles"),e.initialStyles&&this.root.push(e.initialStyles),e.importedStyles)for(const t of e.importedStyles)this.root.push(t);if(e.paragraphStyles)for(const t of e.paragraphStyles)this.root.push(new nl(t));if(e.characterStyles)for(const t of e.characterStyles)this.root.push(new qa(t))}},Vx=class extends de{constructor(e){super("w:pPrDefault"),this.root.push(new zn(e))}},Kx=class extends de{constructor(e){super("w:rPrDefault"),this.root.push(new In(e))}},Yx=class extends de{constructor(e){super("w:docDefaults"),se(this,"runPropertiesDefaults",void 0),se(this,"paragraphPropertiesDefaults",void 0),this.runPropertiesDefaults=new Kx(e.run),this.paragraphPropertiesDefaults=new Vx(e.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}},Xx=class{newInstance(e){const t=(0,B0.xml2js)(e,{compact:!1});let r;for(const a of t.elements||[])a.name==="w:styles"&&(r=a);if(r===void 0)throw new Error("can not find styles element");const n=r.elements||[];return{initialStyles:new mb(r.attributes),importedStyles:n.map(a=>tf(a))}}},Fo=class{newInstance(e={}){var t;return{initialStyles:new Vs(["mc","r","w","w14","w15"],"w14 w15"),importedStyles:[new Yx((t=e.document)!==null&&t!==void 0?t:{}),new Ox(ye({run:{size:56}},e.title)),new Rx(ye({run:{color:"2E74B5",size:32}},e.heading1)),new Cx(ye({run:{color:"2E74B5",size:26}},e.heading2)),new Dx(ye({run:{color:"1F4D78",size:24}},e.heading3)),new kx(ye({run:{color:"2E74B5",italics:!0}},e.heading4)),new Bx(ye({run:{color:"2E74B5"}},e.heading5)),new Mx(ye({run:{color:"1F4D78"}},e.heading6)),new zx(ye({run:{bold:!0}},e.strong)),new Ux(e.listParagraph||{}),new Gx(e.hyperlink||{}),new jx(e.footnoteReference||{}),new Lx(e.footnoteText||{}),new Hx(e.footnoteTextChar||{}),new Ix(e.endnoteReference||{}),new Fx(e.endnoteText||{}),new qx(e.endnoteTextChar||{})]}}},Px=class{constructor(e){var t,r,n,a,i,l,s,u,d,y,g,v;if(se(this,"currentRelationshipId",1),se(this,"documentWrapper",void 0),se(this,"headers",[]),se(this,"footers",[]),se(this,"coreProperties",void 0),se(this,"numbering",void 0),se(this,"media",void 0),se(this,"fileRelationships",void 0),se(this,"footnotesWrapper",void 0),se(this,"endnotesWrapper",void 0),se(this,"settings",void 0),se(this,"contentTypes",void 0),se(this,"customProperties",void 0),se(this,"appProperties",void 0),se(this,"styles",void 0),se(this,"comments",void 0),se(this,"commentsExtended",void 0),se(this,"fontWrapper",void 0),this.coreProperties=new m_(ye(ye({},e),{},{creator:(t=e.creator)!==null&&t!==void 0?t:"Un-named",revision:(r=e.revision)!==null&&r!==void 0?r:1,lastModifiedBy:(n=e.lastModifiedBy)!==null&&n!==void 0?n:"Un-named"})),this.numbering=new wx(e.numbering?e.numbering:{config:[]}),this.comments=new cw((a=e.comments)!==null&&a!==void 0?a:{children:[]}),this.comments.ThreadData&&(this.commentsExtended=new pw(this.comments.ThreadData)),this.fileRelationships=new dn,this.customProperties=new __((i=e.customProperties)!==null&&i!==void 0?i:[]),this.appProperties=new h_,this.footnotesWrapper=new $_,this.endnotesWrapper=new V_,this.contentTypes=new p_,this.documentWrapper=new L_({background:e.background}),this.settings=new Ex({compatibilityModeVersion:e.compatabilityModeVersion,compatibility:e.compatibility,evenAndOddHeaders:!!e.evenAndOddHeaderAndFooters,trackRevisions:(l=e.features)===null||l===void 0?void 0:l.trackRevisions,updateFields:(s=e.features)===null||s===void 0?void 0:s.updateFields,defaultTabStop:e.defaultTabStop,hyphenation:{autoHyphenation:(u=e.hyphenation)===null||u===void 0?void 0:u.autoHyphenation,hyphenationZone:(d=e.hyphenation)===null||d===void 0?void 0:d.hyphenationZone,consecutiveHyphenLimit:(y=e.hyphenation)===null||y===void 0?void 0:y.consecutiveHyphenLimit,doNotHyphenateCaps:(g=e.hyphenation)===null||g===void 0?void 0:g.doNotHyphenateCaps}}),this.media=new nx,e.externalStyles!==void 0){var h;const _=new Fo().newInstance((h=e.styles)===null||h===void 0?void 0:h.default),E=new Xx().newInstance(e.externalStyles);this.styles=new Ho(ye(ye({},E),{},{importedStyles:[..._.importedStyles,...E.importedStyles]}))}else e.styles?this.styles=new Ho(ye(ye({},new Fo().newInstance(e.styles.default)),e.styles)):this.styles=new Ho(new Fo().newInstance());this.addDefaultRelationships();for(const _ of e.sections)this.addSection(_);if(e.footnotes)for(const _ in e.footnotes)this.footnotesWrapper.View.createFootNote(parseFloat(_),e.footnotes[_].children);if(e.endnotes)for(const _ in e.endnotes)this.endnotesWrapper.View.createEndnote(parseFloat(_),e.endnotes[_].children);this.fontWrapper=new K0((v=e.fonts)!==null&&v!==void 0?v:[])}addSection({headers:e={},footers:t={},children:r,properties:n}){this.documentWrapper.View.Body.addSection(ye(ye({},n),{},{headerWrapperGroup:{default:e.default?this.createHeader(e.default):void 0,first:e.first?this.createHeader(e.first):void 0,even:e.even?this.createHeader(e.even):void 0},footerWrapperGroup:{default:t.default?this.createFooter(t.default):void 0,first:t.first?this.createFooter(t.first):void 0,even:t.even?this.createFooter(t.even):void 0}}));for(const a of r)this.documentWrapper.View.add(a)}createHeader(e){const t=new rx(this.media,this.currentRelationshipId++);for(const r of e.options.children)t.add(r);return this.addHeaderToDocument(t),t}createFooter(e){const t=new X_(this.media,this.currentRelationshipId++);for(const r of e.options.children)t.add(r);return this.addFooterToDocument(t),t}addHeaderToDocument(e,t=ma.DEFAULT){this.headers.push({header:e,type:t}),this.documentWrapper.Relationships.addRelationship(e.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",`header${this.headers.length}.xml`),this.contentTypes.addHeader(this.headers.length)}addFooterToDocument(e,t=ma.DEFAULT){this.footers.push({footer:e,type:t}),this.documentWrapper.Relationships.addRelationship(e.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",`footer${this.footers.length}.xml`),this.contentTypes.addFooter(this.footers.length)}addDefaultRelationships(){this.fileRelationships.addRelationship(1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument","word/document.xml"),this.fileRelationships.addRelationship(2,"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties","docProps/core.xml"),this.fileRelationships.addRelationship(3,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties","docProps/app.xml"),this.fileRelationships.addRelationship(4,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties","docProps/custom.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles","styles.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering","numbering.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes","footnotes.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes","endnotes.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings","settings.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments","comments.xml"),this.commentsExtended&&(this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.microsoft.com/office/2011/relationships/commentsExtended","commentsExtended.xml"),this.contentTypes.addCommentsExtended())}get Document(){return this.documentWrapper}get Styles(){return this.styles}get CoreProperties(){return this.coreProperties}get Numbering(){return this.numbering}get Media(){return this.media}get FileRelationships(){return this.fileRelationships}get Headers(){return this.headers.map(e=>e.header)}get Footers(){return this.footers.map(e=>e.footer)}get ContentTypes(){return this.contentTypes}get CustomProperties(){return this.customProperties}get AppProperties(){return this.appProperties}get FootNotes(){return this.footnotesWrapper}get Endnotes(){return this.endnotesWrapper}get Settings(){return this.settings}get Comments(){return this.comments}get CommentsExtended(){return this.commentsExtended}get FontTable(){return this.fontWrapper}},Zx=he((e,t)=>{Fa(),hn();/*!
|
||
|
||
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
||
<http://stuartk.com/jszip>
|
||
|
||
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
|
||
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
|
||
|
||
JSZip uses the library pako released under the MIT license :
|
||
https://github.com/nodeca/pako/blob/main/LICENSE
|
||
*/(function(r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define([],r):(typeof window<"u"?window:typeof yt<"u"?yt:typeof self<"u"?self:this).JSZip=r()})(function(){return function r(n,a,i){function l(d,y){if(!a[d]){if(!n[d]){var g=typeof xl=="function"&&xl;if(!y&&g)return g(d,!0);if(s)return s(d,!0);var v=new Error("Cannot find module '"+d+"'");throw v.code="MODULE_NOT_FOUND",v}var h=a[d]={exports:{}};n[d][0].call(h.exports,function(_){var E=n[d][1][_];return l(E||_)},h,h.exports,r,n,a,i)}return a[d].exports}for(var s=typeof xl=="function"&&xl,u=0;u<i.length;u++)l(i[u]);return l}({1:[function(r,n,a){var i=r("./utils"),l=r("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";a.encode=function(u){for(var d,y,g,v,h,_,E,R=[],m=0,f=u.length,p=f,b=i.getTypeOf(u)!=="string";m<u.length;)p=f-m,g=b?(d=u[m++],y=m<f?u[m++]:0,m<f?u[m++]:0):(d=u.charCodeAt(m++),y=m<f?u.charCodeAt(m++):0,m<f?u.charCodeAt(m++):0),v=d>>2,h=(3&d)<<4|y>>4,_=1<p?(15&y)<<2|g>>6:64,E=2<p?63&g:64,R.push(s.charAt(v)+s.charAt(h)+s.charAt(_)+s.charAt(E));return R.join("")},a.decode=function(u){var d,y,g,v,h,_,E=0,R=0,m="data:";if(u.substr(0,m.length)===m)throw new Error("Invalid base64 input, it looks like a data url.");var f,p=3*(u=u.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(u.charAt(u.length-1)===s.charAt(64)&&p--,u.charAt(u.length-2)===s.charAt(64)&&p--,p%1!=0)throw new Error("Invalid base64 input, bad content length.");for(f=l.uint8array?new Uint8Array(0|p):new Array(0|p);E<u.length;)d=s.indexOf(u.charAt(E++))<<2|(v=s.indexOf(u.charAt(E++)))>>4,y=(15&v)<<4|(h=s.indexOf(u.charAt(E++)))>>2,g=(3&h)<<6|(_=s.indexOf(u.charAt(E++))),f[R++]=d,h!==64&&(f[R++]=y),_!==64&&(f[R++]=g);return f}},{"./support":30,"./utils":32}],2:[function(r,n,a){var i=r("./external"),l=r("./stream/DataWorker"),s=r("./stream/Crc32Probe"),u=r("./stream/DataLengthProbe");function d(y,g,v,h,_){this.compressedSize=y,this.uncompressedSize=g,this.crc32=v,this.compression=h,this.compressedContent=_}d.prototype={getContentWorker:function(){var y=new l(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new u("data_length")),g=this;return y.on("end",function(){if(this.streamInfo.data_length!==g.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),y},getCompressedWorker:function(){return new l(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},d.createWorkerFrom=function(y,g,v){return y.pipe(new s).pipe(new u("uncompressedSize")).pipe(g.compressWorker(v)).pipe(new u("compressedSize")).withStreamInfo("compression",g)},n.exports=d},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(r,n,a){var i=r("./stream/GenericWorker");a.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},a.DEFLATE=r("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(r,n,a){var i=r("./utils"),l=function(){for(var s,u=[],d=0;d<256;d++){s=d;for(var y=0;y<8;y++)s=1&s?3988292384^s>>>1:s>>>1;u[d]=s}return u}();n.exports=function(s,u){return s!==void 0&&s.length?i.getTypeOf(s)!=="string"?function(d,y,g,v){var h=l,_=v+g;d^=-1;for(var E=v;E<_;E++)d=d>>>8^h[255&(d^y[E])];return-1^d}(0|u,s,s.length,0):function(d,y,g,v){var h=l,_=v+g;d^=-1;for(var E=v;E<_;E++)d=d>>>8^h[255&(d^y.charCodeAt(E))];return-1^d}(0|u,s,s.length,0):0}},{"./utils":32}],5:[function(r,n,a){a.base64=!1,a.binary=!1,a.dir=!1,a.createFolders=!0,a.date=null,a.compression=null,a.compressionOptions=null,a.comment=null,a.unixPermissions=null,a.dosPermissions=null},{}],6:[function(r,n,a){var i=null;i=typeof Promise<"u"?Promise:r("lie"),n.exports={Promise:i}},{lie:37}],7:[function(r,n,a){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",l=r("pako"),s=r("./utils"),u=r("./stream/GenericWorker"),d=i?"uint8array":"array";function y(g,v){u.call(this,"FlateWorker/"+g),this._pako=null,this._pakoAction=g,this._pakoOptions=v,this.meta={}}a.magic="\b\0",s.inherits(y,u),y.prototype.processChunk=function(g){this.meta=g.meta,this._pako===null&&this._createPako(),this._pako.push(s.transformTo(d,g.data),!1)},y.prototype.flush=function(){u.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},y.prototype.cleanUp=function(){u.prototype.cleanUp.call(this),this._pako=null},y.prototype._createPako=function(){this._pako=new l[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var g=this;this._pako.onData=function(v){g.push({data:v,meta:g.meta})}},a.compressWorker=function(g){return new y("Deflate",g)},a.uncompressWorker=function(){return new y("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(r,n,a){function i(h,_){var E,R="";for(E=0;E<_;E++)R+=String.fromCharCode(255&h),h>>>=8;return R}function l(h,_,E,R,m,f){var p,b,A=h.file,S=h.compression,B=f!==d.utf8encode,z=s.transformTo("string",f(A.name)),O=s.transformTo("string",d.utf8encode(A.name)),G=A.comment,ee=s.transformTo("string",f(G)),M=s.transformTo("string",d.utf8encode(G)),K=O.length!==A.name.length,C=M.length!==G.length,P="",X="",V="",re=A.dir,Q=A.date,te={crc32:0,compressedSize:0,uncompressedSize:0};_&&!E||(te.crc32=h.crc32,te.compressedSize=h.compressedSize,te.uncompressedSize=h.uncompressedSize);var Z=0;_&&(Z|=8),B||!K&&!C||(Z|=2048);var D=0,I=0;re&&(D|=16),m==="UNIX"?(I=798,D|=function($,ue){var N=$;return $||(N=ue?16893:33204),(65535&N)<<16}(A.unixPermissions,re)):(I=20,D|=function($){return 63&($||0)}(A.dosPermissions)),p=Q.getUTCHours(),p<<=6,p|=Q.getUTCMinutes(),p<<=5,p|=Q.getUTCSeconds()/2,b=Q.getUTCFullYear()-1980,b<<=4,b|=Q.getUTCMonth()+1,b<<=5,b|=Q.getUTCDate(),K&&(X=i(1,1)+i(y(z),4)+O,P+="up"+i(X.length,2)+X),C&&(V=i(1,1)+i(y(ee),4)+M,P+="uc"+i(V.length,2)+V);var Y="";return Y+=`
|
||
\0`,Y+=i(Z,2),Y+=S.magic,Y+=i(p,2),Y+=i(b,2),Y+=i(te.crc32,4),Y+=i(te.compressedSize,4),Y+=i(te.uncompressedSize,4),Y+=i(z.length,2),Y+=i(P.length,2),{fileRecord:g.LOCAL_FILE_HEADER+Y+z+P,dirRecord:g.CENTRAL_FILE_HEADER+i(I,2)+Y+i(ee.length,2)+"\0\0\0\0"+i(D,4)+i(R,4)+z+P+ee}}var s=r("../utils"),u=r("../stream/GenericWorker"),d=r("../utf8"),y=r("../crc32"),g=r("../signature");function v(h,_,E,R){u.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=_,this.zipPlatform=E,this.encodeFileName=R,this.streamFiles=h,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(v,u),v.prototype.push=function(h){var _=h.meta.percent||0,E=this.entriesCount,R=this._sources.length;this.accumulate?this.contentBuffer.push(h):(this.bytesWritten+=h.data.length,u.prototype.push.call(this,{data:h.data,meta:{currentFile:this.currentFile,percent:E?(_+100*(E-R-1))/E:100}}))},v.prototype.openedSource=function(h){this.currentSourceOffset=this.bytesWritten,this.currentFile=h.file.name;var _=this.streamFiles&&!h.file.dir;if(_){var E=l(h,_,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:E.fileRecord,meta:{percent:0}})}else this.accumulate=!0},v.prototype.closedSource=function(h){this.accumulate=!1;var _=this.streamFiles&&!h.file.dir,E=l(h,_,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(E.dirRecord),_)this.push({data:function(R){return g.DATA_DESCRIPTOR+i(R.crc32,4)+i(R.compressedSize,4)+i(R.uncompressedSize,4)}(h),meta:{percent:100}});else for(this.push({data:E.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},v.prototype.flush=function(){for(var h=this.bytesWritten,_=0;_<this.dirRecords.length;_++)this.push({data:this.dirRecords[_],meta:{percent:100}});var E=this.bytesWritten-h,R=function(m,f,p,b,A){var S=s.transformTo("string",A(b));return g.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(m,2)+i(m,2)+i(f,4)+i(p,4)+i(S.length,2)+S}(this.dirRecords.length,E,h,this.zipComment,this.encodeFileName);this.push({data:R,meta:{percent:100}})},v.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},v.prototype.registerPrevious=function(h){this._sources.push(h);var _=this;return h.on("data",function(E){_.processChunk(E)}),h.on("end",function(){_.closedSource(_.previous.streamInfo),_._sources.length?_.prepareNextSource():_.end()}),h.on("error",function(E){_.error(E)}),this},v.prototype.resume=function(){return!!u.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},v.prototype.error=function(h){var _=this._sources;if(!u.prototype.error.call(this,h))return!1;for(var E=0;E<_.length;E++)try{_[E].error(h)}catch{}return!0},v.prototype.lock=function(){u.prototype.lock.call(this);for(var h=this._sources,_=0;_<h.length;_++)h[_].lock()},n.exports=v},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(r,n,a){var i=r("../compressions"),l=r("./ZipFileWorker");a.generateWorker=function(s,u,d){var y=new l(u.streamFiles,d,u.platform,u.encodeFileName),g=0;try{s.forEach(function(v,h){g++;var _=function(f,p){var b=f||p,A=i[b];if(!A)throw new Error(b+" is not a valid compression method !");return A}(h.options.compression,u.compression),E=h.options.compressionOptions||u.compressionOptions||{},R=h.dir,m=h.date;h._compressWorker(_,E).withStreamInfo("file",{name:v,dir:R,date:m,comment:h.comment||"",unixPermissions:h.unixPermissions,dosPermissions:h.dosPermissions}).pipe(y)}),y.entriesCount=g}catch(v){y.error(v)}return y}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(r,n,a){function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var l=new i;for(var s in this)typeof this[s]!="function"&&(l[s]=this[s]);return l}}(i.prototype=r("./object")).loadAsync=r("./load"),i.support=r("./support"),i.defaults=r("./defaults"),i.version="3.10.1",i.loadAsync=function(l,s){return new i().loadAsync(l,s)},i.external=r("./external"),n.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(r,n,a){var i=r("./utils"),l=r("./external"),s=r("./utf8"),u=r("./zipEntries"),d=r("./stream/Crc32Probe"),y=r("./nodejsUtils");function g(v){return new l.Promise(function(h,_){var E=v.decompressed.getContentWorker().pipe(new d);E.on("error",function(R){_(R)}).on("end",function(){E.streamInfo.crc32!==v.decompressed.crc32?_(new Error("Corrupted zip : CRC32 mismatch")):h()}).resume()})}n.exports=function(v,h){var _=this;return h=i.extend(h||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),y.isNode&&y.isStream(v)?l.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",v,!0,h.optimizedBinaryString,h.base64).then(function(E){var R=new u(h);return R.load(E),R}).then(function(E){var R=[l.Promise.resolve(E)],m=E.files;if(h.checkCRC32)for(var f=0;f<m.length;f++)R.push(g(m[f]));return l.Promise.all(R)}).then(function(E){for(var R=E.shift(),m=R.files,f=0;f<m.length;f++){var p=m[f],b=p.fileNameStr,A=i.resolve(p.fileNameStr);_.file(A,p.decompressed,{binary:!0,optimizedBinaryString:!0,date:p.date,dir:p.dir,comment:p.fileCommentStr.length?p.fileCommentStr:null,unixPermissions:p.unixPermissions,dosPermissions:p.dosPermissions,createFolders:h.createFolders}),p.dir||(_.file(A).unsafeOriginalName=b)}return R.zipComment.length&&(_.comment=R.zipComment),_})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(r,n,a){var i=r("../utils"),l=r("../stream/GenericWorker");function s(u,d){l.call(this,"Nodejs stream input adapter for "+u),this._upstreamEnded=!1,this._bindStream(d)}i.inherits(s,l),s.prototype._bindStream=function(u){var d=this;(this._stream=u).pause(),u.on("data",function(y){d.push({data:y,meta:{percent:0}})}).on("error",function(y){d.isPaused?this.generatedError=y:d.error(y)}).on("end",function(){d.isPaused?d._upstreamEnded=!0:d.end()})},s.prototype.pause=function(){return!!l.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},n.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(r,n,a){var i=r("readable-stream").Readable;function l(s,u,d){i.call(this,u),this._helper=s;var y=this;s.on("data",function(g,v){y.push(g)||y._helper.pause(),d&&d(v)}).on("error",function(g){y.emit("error",g)}).on("end",function(){y.push(null)})}r("../utils").inherits(l,i),l.prototype._read=function(){this._helper.resume()},n.exports=l},{"../utils":32,"readable-stream":16}],14:[function(r,n,a){n.exports={isNode:typeof Buffer<"u",newBufferFrom:function(i,l){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(i,l);if(typeof i=="number")throw new Error('The "data" argument must not be a number');return new Buffer(i,l)},allocBuffer:function(i){if(Buffer.alloc)return Buffer.alloc(i);var l=new Buffer(i);return l.fill(0),l},isBuffer:function(i){return Buffer.isBuffer(i)},isStream:function(i){return i&&typeof i.on=="function"&&typeof i.pause=="function"&&typeof i.resume=="function"}}},{}],15:[function(r,n,a){function i(b,A,S){var B,z=s.getTypeOf(A),O=s.extend(S||{},y);O.date=O.date||new Date,O.compression!==null&&(O.compression=O.compression.toUpperCase()),typeof O.unixPermissions=="string"&&(O.unixPermissions=parseInt(O.unixPermissions,8)),O.unixPermissions&&16384&O.unixPermissions&&(O.dir=!0),O.dosPermissions&&16&O.dosPermissions&&(O.dir=!0),O.dir&&(b=m(b)),O.createFolders&&(B=R(b))&&f.call(this,B,!0);var G=z==="string"&&O.binary===!1&&O.base64===!1;S&&S.binary!==void 0||(O.binary=!G),(A instanceof g&&A.uncompressedSize===0||O.dir||!A||A.length===0)&&(O.base64=!1,O.binary=!0,A="",O.compression="STORE",z="string");var ee=null;ee=A instanceof g||A instanceof u?A:_.isNode&&_.isStream(A)?new E(b,A):s.prepareContent(b,A,O.binary,O.optimizedBinaryString,O.base64);var M=new v(b,ee,O);this.files[b]=M}var l=r("./utf8"),s=r("./utils"),u=r("./stream/GenericWorker"),d=r("./stream/StreamHelper"),y=r("./defaults"),g=r("./compressedObject"),v=r("./zipObject"),h=r("./generate"),_=r("./nodejsUtils"),E=r("./nodejs/NodejsStreamInputAdapter"),R=function(b){b.slice(-1)==="/"&&(b=b.substring(0,b.length-1));var A=b.lastIndexOf("/");return 0<A?b.substring(0,A):""},m=function(b){return b.slice(-1)!=="/"&&(b+="/"),b},f=function(b,A){return A=A!==void 0?A:y.createFolders,b=m(b),this.files[b]||i.call(this,b,null,{dir:!0,createFolders:A}),this.files[b]};function p(b){return Object.prototype.toString.call(b)==="[object RegExp]"}n.exports={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(b){var A,S,B;for(A in this.files)B=this.files[A],(S=A.slice(this.root.length,A.length))&&A.slice(0,this.root.length)===this.root&&b(S,B)},filter:function(b){var A=[];return this.forEach(function(S,B){b(S,B)&&A.push(B)}),A},file:function(b,A,S){if(arguments.length!==1)return b=this.root+b,i.call(this,b,A,S),this;if(p(b)){var B=b;return this.filter(function(O,G){return!G.dir&&B.test(O)})}var z=this.files[this.root+b];return z&&!z.dir?z:null},folder:function(b){if(!b)return this;if(p(b))return this.filter(function(z,O){return O.dir&&b.test(z)});var A=this.root+b,S=f.call(this,A),B=this.clone();return B.root=S.name,B},remove:function(b){b=this.root+b;var A=this.files[b];if(A||(b.slice(-1)!=="/"&&(b+="/"),A=this.files[b]),A&&!A.dir)delete this.files[b];else for(var S=this.filter(function(z,O){return O.name.slice(0,b.length)===b}),B=0;B<S.length;B++)delete this.files[S[B].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(b){var A,S={};try{if((S=s.extend(b||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:l.utf8encode})).type=S.type.toLowerCase(),S.compression=S.compression.toUpperCase(),S.type==="binarystring"&&(S.type="string"),!S.type)throw new Error("No output type specified.");s.checkSupport(S.type),S.platform!=="darwin"&&S.platform!=="freebsd"&&S.platform!=="linux"&&S.platform!=="sunos"||(S.platform="UNIX"),S.platform==="win32"&&(S.platform="DOS");var B=S.comment||this.comment||"";A=h.generateWorker(this,S,B)}catch(z){(A=new u("error")).error(z)}return new d(A,S.type||"string",S.mimeType)},generateAsync:function(b,A){return this.generateInternalStream(b).accumulate(A)},generateNodeStream:function(b,A){return(b=b||{}).type||(b.type="nodebuffer"),this.generateInternalStream(b).toNodejsStream(A)}}},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(r,n,a){n.exports=r("stream")},{stream:void 0}],17:[function(r,n,a){var i=r("./DataReader");function l(s){i.call(this,s);for(var u=0;u<this.data.length;u++)s[u]=255&s[u]}r("../utils").inherits(l,i),l.prototype.byteAt=function(s){return this.data[this.zero+s]},l.prototype.lastIndexOfSignature=function(s){for(var u=s.charCodeAt(0),d=s.charCodeAt(1),y=s.charCodeAt(2),g=s.charCodeAt(3),v=this.length-4;0<=v;--v)if(this.data[v]===u&&this.data[v+1]===d&&this.data[v+2]===y&&this.data[v+3]===g)return v-this.zero;return-1},l.prototype.readAndCheckSignature=function(s){var u=s.charCodeAt(0),d=s.charCodeAt(1),y=s.charCodeAt(2),g=s.charCodeAt(3),v=this.readData(4);return u===v[0]&&d===v[1]&&y===v[2]&&g===v[3]},l.prototype.readData=function(s){if(this.checkOffset(s),s===0)return[];var u=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,u},n.exports=l},{"../utils":32,"./DataReader":18}],18:[function(r,n,a){var i=r("../utils");function l(s){this.data=s,this.length=s.length,this.index=0,this.zero=0}l.prototype={checkOffset:function(s){this.checkIndex(this.index+s)},checkIndex:function(s){if(this.length<this.zero+s||s<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+s+"). Corrupted zip ?")},setIndex:function(s){this.checkIndex(s),this.index=s},skip:function(s){this.setIndex(this.index+s)},byteAt:function(){},readInt:function(s){var u,d=0;for(this.checkOffset(s),u=this.index+s-1;u>=this.index;u--)d=(d<<8)+this.byteAt(u);return this.index+=s,d},readString:function(s){return i.transformTo("string",this.readData(s))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var s=this.readInt(4);return new Date(Date.UTC(1980+(s>>25&127),(s>>21&15)-1,s>>16&31,s>>11&31,s>>5&63,(31&s)<<1))}},n.exports=l},{"../utils":32}],19:[function(r,n,a){var i=r("./Uint8ArrayReader");function l(s){i.call(this,s)}r("../utils").inherits(l,i),l.prototype.readData=function(s){this.checkOffset(s);var u=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,u},n.exports=l},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(r,n,a){var i=r("./DataReader");function l(s){i.call(this,s)}r("../utils").inherits(l,i),l.prototype.byteAt=function(s){return this.data.charCodeAt(this.zero+s)},l.prototype.lastIndexOfSignature=function(s){return this.data.lastIndexOf(s)-this.zero},l.prototype.readAndCheckSignature=function(s){return s===this.readData(4)},l.prototype.readData=function(s){this.checkOffset(s);var u=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,u},n.exports=l},{"../utils":32,"./DataReader":18}],21:[function(r,n,a){var i=r("./ArrayReader");function l(s){i.call(this,s)}r("../utils").inherits(l,i),l.prototype.readData=function(s){if(this.checkOffset(s),s===0)return new Uint8Array(0);var u=this.data.subarray(this.zero+this.index,this.zero+this.index+s);return this.index+=s,u},n.exports=l},{"../utils":32,"./ArrayReader":17}],22:[function(r,n,a){var i=r("../utils"),l=r("../support"),s=r("./ArrayReader"),u=r("./StringReader"),d=r("./NodeBufferReader"),y=r("./Uint8ArrayReader");n.exports=function(g){var v=i.getTypeOf(g);return i.checkSupport(v),v!=="string"||l.uint8array?v==="nodebuffer"?new d(g):l.uint8array?new y(i.transformTo("uint8array",g)):new s(i.transformTo("array",g)):new u(g)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(r,n,a){a.LOCAL_FILE_HEADER="PK",a.CENTRAL_FILE_HEADER="PK",a.CENTRAL_DIRECTORY_END="PK",a.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",a.ZIP64_CENTRAL_DIRECTORY_END="PK",a.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(r,n,a){var i=r("./GenericWorker"),l=r("../utils");function s(u){i.call(this,"ConvertWorker to "+u),this.destType=u}l.inherits(s,i),s.prototype.processChunk=function(u){this.push({data:l.transformTo(this.destType,u.data),meta:u.meta})},n.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(r,n,a){var i=r("./GenericWorker"),l=r("../crc32");function s(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r("../utils").inherits(s,i),s.prototype.processChunk=function(u){this.streamInfo.crc32=l(u.data,this.streamInfo.crc32||0),this.push(u)},n.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(r,n,a){var i=r("../utils"),l=r("./GenericWorker");function s(u){l.call(this,"DataLengthProbe for "+u),this.propName=u,this.withStreamInfo(u,0)}i.inherits(s,l),s.prototype.processChunk=function(u){if(u){var d=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=d+u.data.length}l.prototype.processChunk.call(this,u)},n.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(r,n,a){var i=r("../utils"),l=r("./GenericWorker");function s(u){l.call(this,"DataWorker");var d=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,u.then(function(y){d.dataIsReady=!0,d.data=y,d.max=y&&y.length||0,d.type=i.getTypeOf(y),d.isPaused||d._tickAndRepeat()},function(y){d.error(y)})}i.inherits(s,l),s.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var u=null,d=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":u=this.data.substring(this.index,d);break;case"uint8array":u=this.data.subarray(this.index,d);break;case"array":case"nodebuffer":u=this.data.slice(this.index,d)}return this.index=d,this.push({data:u,meta:{percent:this.max?this.index/this.max*100:0}})},n.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(r,n,a){function i(l){this.name=l||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(l){this.emit("data",l)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(l){this.emit("error",l)}return!0},error:function(l){return!this.isFinished&&(this.isPaused?this.generatedError=l:(this.isFinished=!0,this.emit("error",l),this.previous&&this.previous.error(l),this.cleanUp()),!0)},on:function(l,s){return this._listeners[l].push(s),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(l,s){if(this._listeners[l])for(var u=0;u<this._listeners[l].length;u++)this._listeners[l][u].call(this,s)},pipe:function(l){return l.registerPrevious(this)},registerPrevious:function(l){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=l.streamInfo,this.mergeStreamInfo(),this.previous=l;var s=this;return l.on("data",function(u){s.processChunk(u)}),l.on("end",function(){s.end()}),l.on("error",function(u){s.error(u)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var l=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),l=!0),this.previous&&this.previous.resume(),!l},flush:function(){},processChunk:function(l){this.push(l)},withStreamInfo:function(l,s){return this.extraStreamInfo[l]=s,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var l in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,l)&&(this.streamInfo[l]=this.extraStreamInfo[l])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var l="Worker "+this.name;return this.previous?this.previous+" -> "+l:l}},n.exports=i},{}],29:[function(r,n,a){var i=r("../utils"),l=r("./ConvertWorker"),s=r("./GenericWorker"),u=r("../base64"),d=r("../support"),y=r("../external"),g=null;if(d.nodestream)try{g=r("../nodejs/NodejsStreamOutputAdapter")}catch{}function v(_,E){return new y.Promise(function(R,m){var f=[],p=_._internalType,b=_._outputType,A=_._mimeType;_.on("data",function(S,B){f.push(S),E&&E(B)}).on("error",function(S){f=[],m(S)}).on("end",function(){try{R(function(S,B,z){switch(S){case"blob":return i.newBlob(i.transformTo("arraybuffer",B),z);case"base64":return u.encode(B);default:return i.transformTo(S,B)}}(b,function(S,B){var z,O=0,G=null,ee=0;for(z=0;z<B.length;z++)ee+=B[z].length;switch(S){case"string":return B.join("");case"array":return Array.prototype.concat.apply([],B);case"uint8array":for(G=new Uint8Array(ee),z=0;z<B.length;z++)G.set(B[z],O),O+=B[z].length;return G;case"nodebuffer":return Buffer.concat(B);default:throw new Error("concat : unsupported type '"+S+"'")}}(p,f),A))}catch(S){m(S)}f=[]}).resume()})}function h(_,E,R){var m=E;switch(E){case"blob":case"arraybuffer":m="uint8array";break;case"base64":m="string"}try{this._internalType=m,this._outputType=E,this._mimeType=R,i.checkSupport(m),this._worker=_.pipe(new l(m)),_.lock()}catch(f){this._worker=new s("error"),this._worker.error(f)}}h.prototype={accumulate:function(_){return v(this,_)},on:function(_,E){var R=this;return _==="data"?this._worker.on(_,function(m){E.call(R,m.data,m.meta)}):this._worker.on(_,function(){i.delay(E,arguments,R)}),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(_){if(i.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new g(this,{objectMode:this._outputType!=="nodebuffer"},_)}},n.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(r,n,a){if(a.base64=!0,a.array=!0,a.string=!0,a.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",a.nodebuffer=typeof Buffer<"u",a.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")a.blob=!1;else{var i=new ArrayBuffer(0);try{a.blob=new Blob([i],{type:"application/zip"}).size===0}catch{try{var l=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);l.append(i),a.blob=l.getBlob("application/zip").size===0}catch{a.blob=!1}}}try{a.nodestream=!!r("readable-stream").Readable}catch{a.nodestream=!1}},{"readable-stream":16}],31:[function(r,n,a){for(var i=r("./utils"),l=r("./support"),s=r("./nodejsUtils"),u=r("./stream/GenericWorker"),d=new Array(256),y=0;y<256;y++)d[y]=252<=y?6:248<=y?5:240<=y?4:224<=y?3:192<=y?2:1;d[254]=d[254]=1;function g(){u.call(this,"utf-8 decode"),this.leftOver=null}function v(){u.call(this,"utf-8 encode")}a.utf8encode=function(h){return l.nodebuffer?s.newBufferFrom(h,"utf-8"):function(_){var E,R,m,f,p,b=_.length,A=0;for(f=0;f<b;f++)(64512&(R=_.charCodeAt(f)))==55296&&f+1<b&&(64512&(m=_.charCodeAt(f+1)))==56320&&(R=65536+(R-55296<<10)+(m-56320),f++),A+=R<128?1:R<2048?2:R<65536?3:4;for(E=l.uint8array?new Uint8Array(A):new Array(A),f=p=0;p<A;f++)(64512&(R=_.charCodeAt(f)))==55296&&f+1<b&&(64512&(m=_.charCodeAt(f+1)))==56320&&(R=65536+(R-55296<<10)+(m-56320),f++),R<128?E[p++]=R:(R<2048?E[p++]=192|R>>>6:(R<65536?E[p++]=224|R>>>12:(E[p++]=240|R>>>18,E[p++]=128|R>>>12&63),E[p++]=128|R>>>6&63),E[p++]=128|63&R);return E}(h)},a.utf8decode=function(h){return l.nodebuffer?i.transformTo("nodebuffer",h).toString("utf-8"):function(_){var E,R,m,f,p=_.length,b=new Array(2*p);for(E=R=0;E<p;)if((m=_[E++])<128)b[R++]=m;else if(4<(f=d[m]))b[R++]=65533,E+=f-1;else{for(m&=f===2?31:f===3?15:7;1<f&&E<p;)m=m<<6|63&_[E++],f--;1<f?b[R++]=65533:m<65536?b[R++]=m:(m-=65536,b[R++]=55296|m>>10&1023,b[R++]=56320|1023&m)}return b.length!==R&&(b.subarray?b=b.subarray(0,R):b.length=R),i.applyFromCharCode(b)}(h=i.transformTo(l.uint8array?"uint8array":"array",h))},i.inherits(g,u),g.prototype.processChunk=function(h){var _=i.transformTo(l.uint8array?"uint8array":"array",h.data);if(this.leftOver&&this.leftOver.length){if(l.uint8array){var E=_;(_=new Uint8Array(E.length+this.leftOver.length)).set(this.leftOver,0),_.set(E,this.leftOver.length)}else _=this.leftOver.concat(_);this.leftOver=null}var R=function(f,p){var b;for((p=p||f.length)>f.length&&(p=f.length),b=p-1;0<=b&&(192&f[b])==128;)b--;return b<0||b===0?p:b+d[f[b]]>p?b:p}(_),m=_;R!==_.length&&(l.uint8array?(m=_.subarray(0,R),this.leftOver=_.subarray(R,_.length)):(m=_.slice(0,R),this.leftOver=_.slice(R,_.length))),this.push({data:a.utf8decode(m),meta:h.meta})},g.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:a.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},a.Utf8DecodeWorker=g,i.inherits(v,u),v.prototype.processChunk=function(h){this.push({data:a.utf8encode(h.data),meta:h.meta})},a.Utf8EncodeWorker=v},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,n,a){var i=r("./support"),l=r("./base64"),s=r("./nodejsUtils"),u=r("./external");function d(E){return E}function y(E,R){for(var m=0;m<E.length;++m)R[m]=255&E.charCodeAt(m);return R}r("setimmediate"),a.newBlob=function(E,R){a.checkSupport("blob");try{return new Blob([E],{type:R})}catch{try{var m=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return m.append(E),m.getBlob(R)}catch{throw new Error("Bug : can't construct the Blob.")}}};var g={stringifyByChunk:function(E,R,m){var f=[],p=0,b=E.length;if(b<=m)return String.fromCharCode.apply(null,E);for(;p<b;)R==="array"||R==="nodebuffer"?f.push(String.fromCharCode.apply(null,E.slice(p,Math.min(p+m,b)))):f.push(String.fromCharCode.apply(null,E.subarray(p,Math.min(p+m,b)))),p+=m;return f.join("")},stringifyByChar:function(E){for(var R="",m=0;m<E.length;m++)R+=String.fromCharCode(E[m]);return R},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&String.fromCharCode.apply(null,s.allocBuffer(1)).length===1}catch{return!1}}()}};function v(E){var R=65536,m=a.getTypeOf(E),f=!0;if(m==="uint8array"?f=g.applyCanBeUsed.uint8array:m==="nodebuffer"&&(f=g.applyCanBeUsed.nodebuffer),f)for(;1<R;)try{return g.stringifyByChunk(E,m,R)}catch{R=Math.floor(R/2)}return g.stringifyByChar(E)}function h(E,R){for(var m=0;m<E.length;m++)R[m]=E[m];return R}a.applyFromCharCode=v;var _={};_.string={string:d,array:function(E){return y(E,new Array(E.length))},arraybuffer:function(E){return _.string.uint8array(E).buffer},uint8array:function(E){return y(E,new Uint8Array(E.length))},nodebuffer:function(E){return y(E,s.allocBuffer(E.length))}},_.array={string:v,array:d,arraybuffer:function(E){return new Uint8Array(E).buffer},uint8array:function(E){return new Uint8Array(E)},nodebuffer:function(E){return s.newBufferFrom(E)}},_.arraybuffer={string:function(E){return v(new Uint8Array(E))},array:function(E){return h(new Uint8Array(E),new Array(E.byteLength))},arraybuffer:d,uint8array:function(E){return new Uint8Array(E)},nodebuffer:function(E){return s.newBufferFrom(new Uint8Array(E))}},_.uint8array={string:v,array:function(E){return h(E,new Array(E.length))},arraybuffer:function(E){return E.buffer},uint8array:d,nodebuffer:function(E){return s.newBufferFrom(E)}},_.nodebuffer={string:v,array:function(E){return h(E,new Array(E.length))},arraybuffer:function(E){return _.nodebuffer.uint8array(E).buffer},uint8array:function(E){return h(E,new Uint8Array(E.length))},nodebuffer:d},a.transformTo=function(E,R){return R=R||"",E?(a.checkSupport(E),_[a.getTypeOf(R)][E](R)):R},a.resolve=function(E){for(var R=E.split("/"),m=[],f=0;f<R.length;f++){var p=R[f];p==="."||p===""&&f!==0&&f!==R.length-1||(p===".."?m.pop():m.push(p))}return m.join("/")},a.getTypeOf=function(E){return typeof E=="string"?"string":Object.prototype.toString.call(E)==="[object Array]"?"array":i.nodebuffer&&s.isBuffer(E)?"nodebuffer":i.uint8array&&E instanceof Uint8Array?"uint8array":i.arraybuffer&&E instanceof ArrayBuffer?"arraybuffer":void 0},a.checkSupport=function(E){if(!i[E.toLowerCase()])throw new Error(E+" is not supported by this platform")},a.MAX_VALUE_16BITS=65535,a.MAX_VALUE_32BITS=-1,a.pretty=function(E){var R,m,f="";for(m=0;m<(E||"").length;m++)f+="\\x"+((R=E.charCodeAt(m))<16?"0":"")+R.toString(16).toUpperCase();return f},a.delay=function(E,R,m){setImmediate(function(){E.apply(m||null,R||[])})},a.inherits=function(E,R){function m(){}m.prototype=R.prototype,E.prototype=new m},a.extend=function(){var E,R,m={};for(E=0;E<arguments.length;E++)for(R in arguments[E])Object.prototype.hasOwnProperty.call(arguments[E],R)&&m[R]===void 0&&(m[R]=arguments[E][R]);return m},a.prepareContent=function(E,R,m,f,p){return u.Promise.resolve(R).then(function(b){return i.blob&&(b instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(b))!==-1)&&typeof FileReader<"u"?new u.Promise(function(A,S){var B=new FileReader;B.onload=function(z){A(z.target.result)},B.onerror=function(z){S(z.target.error)},B.readAsArrayBuffer(b)}):b}).then(function(b){var A=a.getTypeOf(b);return A?(A==="arraybuffer"?b=a.transformTo("uint8array",b):A==="string"&&(p?b=l.decode(b):m&&f!==!0&&(b=function(S){return y(S,i.uint8array?new Uint8Array(S.length):new Array(S.length))}(b))),b):u.Promise.reject(new Error("Can't read the data of '"+E+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(r,n,a){var i=r("./reader/readerFor"),l=r("./utils"),s=r("./signature"),u=r("./zipEntry"),d=r("./support");function y(g){this.files=[],this.loadOptions=g}y.prototype={checkSignature:function(g){if(!this.reader.readAndCheckSignature(g)){this.reader.index-=4;var v=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+l.pretty(v)+", expected "+l.pretty(g)+")")}},isSignature:function(g,v){var h=this.reader.index;this.reader.setIndex(g);var _=this.reader.readString(4)===v;return this.reader.setIndex(h),_},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var g=this.reader.readData(this.zipCommentLength),v=d.uint8array?"uint8array":"array",h=l.transformTo(v,g);this.zipComment=this.loadOptions.decodeFileName(h)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var g,v,h,_=this.zip64EndOfCentralSize-44;0<_;)g=this.reader.readInt(2),v=this.reader.readInt(4),h=this.reader.readData(v),this.zip64ExtensibleData[g]={id:g,length:v,value:h}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var g,v;for(g=0;g<this.files.length;g++)v=this.files[g],this.reader.setIndex(v.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),v.readLocalPart(this.reader),v.handleUTF8(),v.processAttributes()},readCentralDir:function(){var g;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(g=new u({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(g);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var g=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(g<0)throw this.isSignature(0,s.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(g);var v=g;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===l.MAX_VALUE_16BITS||this.diskWithCentralDirStart===l.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===l.MAX_VALUE_16BITS||this.centralDirRecords===l.MAX_VALUE_16BITS||this.centralDirSize===l.MAX_VALUE_32BITS||this.centralDirOffset===l.MAX_VALUE_32BITS){if(this.zip64=!0,(g=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(g),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var h=this.centralDirOffset+this.centralDirSize;this.zip64&&(h+=20,h+=12+this.zip64EndOfCentralSize);var _=v-h;if(0<_)this.isSignature(v,s.CENTRAL_FILE_HEADER)||(this.reader.zero=_);else if(_<0)throw new Error("Corrupted zip: missing "+Math.abs(_)+" bytes.")},prepareReader:function(g){this.reader=i(g)},load:function(g){this.prepareReader(g),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},n.exports=y},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(r,n,a){var i=r("./reader/readerFor"),l=r("./utils"),s=r("./compressedObject"),u=r("./crc32"),d=r("./utf8"),y=r("./compressions"),g=r("./support");function v(h,_){this.options=h,this.loadOptions=_}v.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(h){var _,E;if(h.skip(22),this.fileNameLength=h.readInt(2),E=h.readInt(2),this.fileName=h.readData(this.fileNameLength),h.skip(E),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((_=function(R){for(var m in y)if(Object.prototype.hasOwnProperty.call(y,m)&&y[m].magic===R)return y[m];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+l.pretty(this.compressionMethod)+" unknown (inner file : "+l.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,_,h.readData(this.compressedSize))},readCentralPart:function(h){this.versionMadeBy=h.readInt(2),h.skip(2),this.bitFlag=h.readInt(2),this.compressionMethod=h.readString(2),this.date=h.readDate(),this.crc32=h.readInt(4),this.compressedSize=h.readInt(4),this.uncompressedSize=h.readInt(4);var _=h.readInt(2);if(this.extraFieldsLength=h.readInt(2),this.fileCommentLength=h.readInt(2),this.diskNumberStart=h.readInt(2),this.internalFileAttributes=h.readInt(2),this.externalFileAttributes=h.readInt(4),this.localHeaderOffset=h.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");h.skip(_),this.readExtraFields(h),this.parseZIP64ExtraField(h),this.fileComment=h.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var h=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),h==0&&(this.dosPermissions=63&this.externalFileAttributes),h==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var h=i(this.extraFields[1].value);this.uncompressedSize===l.MAX_VALUE_32BITS&&(this.uncompressedSize=h.readInt(8)),this.compressedSize===l.MAX_VALUE_32BITS&&(this.compressedSize=h.readInt(8)),this.localHeaderOffset===l.MAX_VALUE_32BITS&&(this.localHeaderOffset=h.readInt(8)),this.diskNumberStart===l.MAX_VALUE_32BITS&&(this.diskNumberStart=h.readInt(4))}},readExtraFields:function(h){var _,E,R,m=h.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});h.index+4<m;)_=h.readInt(2),E=h.readInt(2),R=h.readData(E),this.extraFields[_]={id:_,length:E,value:R};h.setIndex(m)},handleUTF8:function(){var h=g.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=d.utf8decode(this.fileName),this.fileCommentStr=d.utf8decode(this.fileComment);else{var _=this.findExtraFieldUnicodePath();if(_!==null)this.fileNameStr=_;else{var E=l.transformTo(h,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(E)}var R=this.findExtraFieldUnicodeComment();if(R!==null)this.fileCommentStr=R;else{var m=l.transformTo(h,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(m)}}},findExtraFieldUnicodePath:function(){var h=this.extraFields[28789];if(h){var _=i(h.value);return _.readInt(1)!==1||u(this.fileName)!==_.readInt(4)?null:d.utf8decode(_.readData(h.length-5))}return null},findExtraFieldUnicodeComment:function(){var h=this.extraFields[25461];if(h){var _=i(h.value);return _.readInt(1)!==1||u(this.fileComment)!==_.readInt(4)?null:d.utf8decode(_.readData(h.length-5))}return null}},n.exports=v},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(r,n,a){function i(_,E,R){this.name=_,this.dir=R.dir,this.date=R.date,this.comment=R.comment,this.unixPermissions=R.unixPermissions,this.dosPermissions=R.dosPermissions,this._data=E,this._dataBinary=R.binary,this.options={compression:R.compression,compressionOptions:R.compressionOptions}}var l=r("./stream/StreamHelper"),s=r("./stream/DataWorker"),u=r("./utf8"),d=r("./compressedObject"),y=r("./stream/GenericWorker");i.prototype={internalStream:function(_){var E=null,R="string";try{if(!_)throw new Error("No output type specified.");var m=(R=_.toLowerCase())==="string"||R==="text";R!=="binarystring"&&R!=="text"||(R="string"),E=this._decompressWorker();var f=!this._dataBinary;f&&!m&&(E=E.pipe(new u.Utf8EncodeWorker)),!f&&m&&(E=E.pipe(new u.Utf8DecodeWorker))}catch(p){(E=new y("error")).error(p)}return new l(E,R,"")},async:function(_,E){return this.internalStream(_).accumulate(E)},nodeStream:function(_,E){return this.internalStream(_||"nodebuffer").toNodejsStream(E)},_compressWorker:function(_,E){if(this._data instanceof d&&this._data.compression.magic===_.magic)return this._data.getCompressedWorker();var R=this._decompressWorker();return this._dataBinary||(R=R.pipe(new u.Utf8EncodeWorker)),d.createWorkerFrom(R,_,E)},_decompressWorker:function(){return this._data instanceof d?this._data.getContentWorker():this._data instanceof y?this._data:new s(this._data)}};for(var g=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],v=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<g.length;h++)i.prototype[g[h]]=v;n.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(r,n,a){(function(i){var l,s,u=i.MutationObserver||i.WebKitMutationObserver;if(u){var d=0,y=new u(_),g=i.document.createTextNode("");y.observe(g,{characterData:!0}),l=function(){g.data=d=++d%2}}else if(i.setImmediate||i.MessageChannel===void 0)l="document"in i&&"onreadystatechange"in i.document.createElement("script")?function(){var E=i.document.createElement("script");E.onreadystatechange=function(){_(),E.onreadystatechange=null,E.parentNode.removeChild(E),E=null},i.document.documentElement.appendChild(E)}:function(){setTimeout(_,0)};else{var v=new i.MessageChannel;v.port1.onmessage=_,l=function(){v.port2.postMessage(0)}}var h=[];function _(){var E,R;s=!0;for(var m=h.length;m;){for(R=h,h=[],E=-1;++E<m;)R[E]();m=h.length}s=!1}n.exports=function(E){h.push(E)!==1||s||l()}}).call(this,typeof yt<"u"?yt:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(r,n,a){var i=r("immediate");function l(){}var s={},u=["REJECTED"],d=["FULFILLED"],y=["PENDING"];function g(m){if(typeof m!="function")throw new TypeError("resolver must be a function");this.state=y,this.queue=[],this.outcome=void 0,m!==l&&E(this,m)}function v(m,f,p){this.promise=m,typeof f=="function"&&(this.onFulfilled=f,this.callFulfilled=this.otherCallFulfilled),typeof p=="function"&&(this.onRejected=p,this.callRejected=this.otherCallRejected)}function h(m,f,p){i(function(){var b;try{b=f(p)}catch(A){return s.reject(m,A)}b===m?s.reject(m,new TypeError("Cannot resolve promise with itself")):s.resolve(m,b)})}function _(m){var f=m&&m.then;if(m&&(typeof m=="object"||typeof m=="function")&&typeof f=="function")return function(){f.apply(m,arguments)}}function E(m,f){var p=!1;function b(B){p||(p=!0,s.reject(m,B))}function A(B){p||(p=!0,s.resolve(m,B))}var S=R(function(){f(A,b)});S.status==="error"&&b(S.value)}function R(m,f){var p={};try{p.value=m(f),p.status="success"}catch(b){p.status="error",p.value=b}return p}(n.exports=g).prototype.finally=function(m){if(typeof m!="function")return this;var f=this.constructor;return this.then(function(p){return f.resolve(m()).then(function(){return p})},function(p){return f.resolve(m()).then(function(){throw p})})},g.prototype.catch=function(m){return this.then(null,m)},g.prototype.then=function(m,f){if(typeof m!="function"&&this.state===d||typeof f!="function"&&this.state===u)return this;var p=new this.constructor(l);return this.state!==y?h(p,this.state===d?m:f,this.outcome):this.queue.push(new v(p,m,f)),p},v.prototype.callFulfilled=function(m){s.resolve(this.promise,m)},v.prototype.otherCallFulfilled=function(m){h(this.promise,this.onFulfilled,m)},v.prototype.callRejected=function(m){s.reject(this.promise,m)},v.prototype.otherCallRejected=function(m){h(this.promise,this.onRejected,m)},s.resolve=function(m,f){var p=R(_,f);if(p.status==="error")return s.reject(m,p.value);var b=p.value;if(b)E(m,b);else{m.state=d,m.outcome=f;for(var A=-1,S=m.queue.length;++A<S;)m.queue[A].callFulfilled(f)}return m},s.reject=function(m,f){m.state=u,m.outcome=f;for(var p=-1,b=m.queue.length;++p<b;)m.queue[p].callRejected(f);return m},g.resolve=function(m){return m instanceof this?m:s.resolve(new this(l),m)},g.reject=function(m){var f=new this(l);return s.reject(f,m)},g.all=function(m){var f=this;if(Object.prototype.toString.call(m)!=="[object Array]")return this.reject(new TypeError("must be an array"));var p=m.length,b=!1;if(!p)return this.resolve([]);for(var A=new Array(p),S=0,B=-1,z=new this(l);++B<p;)O(m[B],B);return z;function O(G,ee){f.resolve(G).then(function(M){A[ee]=M,++S!==p||b||(b=!0,s.resolve(z,A))},function(M){b||(b=!0,s.reject(z,M))})}},g.race=function(m){var f=this;if(Object.prototype.toString.call(m)!=="[object Array]")return this.reject(new TypeError("must be an array"));var p=m.length,b=!1;if(!p)return this.resolve([]);for(var A=-1,S=new this(l);++A<p;)B=m[A],f.resolve(B).then(function(z){b||(b=!0,s.resolve(S,z))},function(z){b||(b=!0,s.reject(S,z))});var B;return S}},{immediate:36}],38:[function(r,n,a){var i={};(0,r("./lib/utils/common").assign)(i,r("./lib/deflate"),r("./lib/inflate"),r("./lib/zlib/constants")),n.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(r,n,a){var i=r("./zlib/deflate"),l=r("./utils/common"),s=r("./utils/strings"),u=r("./zlib/messages"),d=r("./zlib/zstream"),y=Object.prototype.toString,g=0,v=-1,h=0,_=8;function E(m){if(!(this instanceof E))return new E(m);this.options=l.assign({level:v,method:_,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},m||{});var f=this.options;f.raw&&0<f.windowBits?f.windowBits=-f.windowBits:f.gzip&&0<f.windowBits&&f.windowBits<16&&(f.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new d,this.strm.avail_out=0;var p=i.deflateInit2(this.strm,f.level,f.method,f.windowBits,f.memLevel,f.strategy);if(p!==g)throw new Error(u[p]);if(f.header&&i.deflateSetHeader(this.strm,f.header),f.dictionary){var b;if(b=typeof f.dictionary=="string"?s.string2buf(f.dictionary):y.call(f.dictionary)==="[object ArrayBuffer]"?new Uint8Array(f.dictionary):f.dictionary,(p=i.deflateSetDictionary(this.strm,b))!==g)throw new Error(u[p]);this._dict_set=!0}}function R(m,f){var p=new E(f);if(p.push(m,!0),p.err)throw p.msg||u[p.err];return p.result}E.prototype.push=function(m,f){var p,b,A=this.strm,S=this.options.chunkSize;if(this.ended)return!1;b=f===~~f?f:f===!0?4:0,typeof m=="string"?A.input=s.string2buf(m):y.call(m)==="[object ArrayBuffer]"?A.input=new Uint8Array(m):A.input=m,A.next_in=0,A.avail_in=A.input.length;do{if(A.avail_out===0&&(A.output=new l.Buf8(S),A.next_out=0,A.avail_out=S),(p=i.deflate(A,b))!==1&&p!==g)return this.onEnd(p),!(this.ended=!0);A.avail_out!==0&&(A.avail_in!==0||b!==4&&b!==2)||(this.options.to==="string"?this.onData(s.buf2binstring(l.shrinkBuf(A.output,A.next_out))):this.onData(l.shrinkBuf(A.output,A.next_out)))}while((0<A.avail_in||A.avail_out===0)&&p!==1);return b===4?(p=i.deflateEnd(this.strm),this.onEnd(p),this.ended=!0,p===g):b!==2||(this.onEnd(g),!(A.avail_out=0))},E.prototype.onData=function(m){this.chunks.push(m)},E.prototype.onEnd=function(m){m===g&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=l.flattenChunks(this.chunks)),this.chunks=[],this.err=m,this.msg=this.strm.msg},a.Deflate=E,a.deflate=R,a.deflateRaw=function(m,f){return(f=f||{}).raw=!0,R(m,f)},a.gzip=function(m,f){return(f=f||{}).gzip=!0,R(m,f)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(r,n,a){var i=r("./zlib/inflate"),l=r("./utils/common"),s=r("./utils/strings"),u=r("./zlib/constants"),d=r("./zlib/messages"),y=r("./zlib/zstream"),g=r("./zlib/gzheader"),v=Object.prototype.toString;function h(E){if(!(this instanceof h))return new h(E);this.options=l.assign({chunkSize:16384,windowBits:0,to:""},E||{});var R=this.options;R.raw&&0<=R.windowBits&&R.windowBits<16&&(R.windowBits=-R.windowBits,R.windowBits===0&&(R.windowBits=-15)),!(0<=R.windowBits&&R.windowBits<16)||E&&E.windowBits||(R.windowBits+=32),15<R.windowBits&&R.windowBits<48&&!(15&R.windowBits)&&(R.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new y,this.strm.avail_out=0;var m=i.inflateInit2(this.strm,R.windowBits);if(m!==u.Z_OK)throw new Error(d[m]);this.header=new g,i.inflateGetHeader(this.strm,this.header)}function _(E,R){var m=new h(R);if(m.push(E,!0),m.err)throw m.msg||d[m.err];return m.result}h.prototype.push=function(E,R){var m,f,p,b,A,S,B=this.strm,z=this.options.chunkSize,O=this.options.dictionary,G=!1;if(this.ended)return!1;f=R===~~R?R:R===!0?u.Z_FINISH:u.Z_NO_FLUSH,typeof E=="string"?B.input=s.binstring2buf(E):v.call(E)==="[object ArrayBuffer]"?B.input=new Uint8Array(E):B.input=E,B.next_in=0,B.avail_in=B.input.length;do{if(B.avail_out===0&&(B.output=new l.Buf8(z),B.next_out=0,B.avail_out=z),(m=i.inflate(B,u.Z_NO_FLUSH))===u.Z_NEED_DICT&&O&&(S=typeof O=="string"?s.string2buf(O):v.call(O)==="[object ArrayBuffer]"?new Uint8Array(O):O,m=i.inflateSetDictionary(this.strm,S)),m===u.Z_BUF_ERROR&&G===!0&&(m=u.Z_OK,G=!1),m!==u.Z_STREAM_END&&m!==u.Z_OK)return this.onEnd(m),!(this.ended=!0);B.next_out&&(B.avail_out!==0&&m!==u.Z_STREAM_END&&(B.avail_in!==0||f!==u.Z_FINISH&&f!==u.Z_SYNC_FLUSH)||(this.options.to==="string"?(p=s.utf8border(B.output,B.next_out),b=B.next_out-p,A=s.buf2string(B.output,p),B.next_out=b,B.avail_out=z-b,b&&l.arraySet(B.output,B.output,p,b,0),this.onData(A)):this.onData(l.shrinkBuf(B.output,B.next_out)))),B.avail_in===0&&B.avail_out===0&&(G=!0)}while((0<B.avail_in||B.avail_out===0)&&m!==u.Z_STREAM_END);return m===u.Z_STREAM_END&&(f=u.Z_FINISH),f===u.Z_FINISH?(m=i.inflateEnd(this.strm),this.onEnd(m),this.ended=!0,m===u.Z_OK):f!==u.Z_SYNC_FLUSH||(this.onEnd(u.Z_OK),!(B.avail_out=0))},h.prototype.onData=function(E){this.chunks.push(E)},h.prototype.onEnd=function(E){E===u.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=l.flattenChunks(this.chunks)),this.chunks=[],this.err=E,this.msg=this.strm.msg},a.Inflate=h,a.inflate=_,a.inflateRaw=function(E,R){return(R=R||{}).raw=!0,_(E,R)},a.ungzip=_},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(r,n,a){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";a.assign=function(u){for(var d=Array.prototype.slice.call(arguments,1);d.length;){var y=d.shift();if(y){if(typeof y!="object")throw new TypeError(y+"must be non-object");for(var g in y)y.hasOwnProperty(g)&&(u[g]=y[g])}}return u},a.shrinkBuf=function(u,d){return u.length===d?u:u.subarray?u.subarray(0,d):(u.length=d,u)};var l={arraySet:function(u,d,y,g,v){if(d.subarray&&u.subarray)u.set(d.subarray(y,y+g),v);else for(var h=0;h<g;h++)u[v+h]=d[y+h]},flattenChunks:function(u){var d,y,g,v,h,_;for(d=g=0,y=u.length;d<y;d++)g+=u[d].length;for(_=new Uint8Array(g),d=v=0,y=u.length;d<y;d++)h=u[d],_.set(h,v),v+=h.length;return _}},s={arraySet:function(u,d,y,g,v){for(var h=0;h<g;h++)u[v+h]=d[y+h]},flattenChunks:function(u){return[].concat.apply([],u)}};a.setTyped=function(u){u?(a.Buf8=Uint8Array,a.Buf16=Uint16Array,a.Buf32=Int32Array,a.assign(a,l)):(a.Buf8=Array,a.Buf16=Array,a.Buf32=Array,a.assign(a,s))},a.setTyped(i)},{}],42:[function(r,n,a){var i=r("./common"),l=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch{l=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{s=!1}for(var u=new i.Buf8(256),d=0;d<256;d++)u[d]=252<=d?6:248<=d?5:240<=d?4:224<=d?3:192<=d?2:1;function y(g,v){if(v<65537&&(g.subarray&&s||!g.subarray&&l))return String.fromCharCode.apply(null,i.shrinkBuf(g,v));for(var h="",_=0;_<v;_++)h+=String.fromCharCode(g[_]);return h}u[254]=u[254]=1,a.string2buf=function(g){var v,h,_,E,R,m=g.length,f=0;for(E=0;E<m;E++)(64512&(h=g.charCodeAt(E)))==55296&&E+1<m&&(64512&(_=g.charCodeAt(E+1)))==56320&&(h=65536+(h-55296<<10)+(_-56320),E++),f+=h<128?1:h<2048?2:h<65536?3:4;for(v=new i.Buf8(f),E=R=0;R<f;E++)(64512&(h=g.charCodeAt(E)))==55296&&E+1<m&&(64512&(_=g.charCodeAt(E+1)))==56320&&(h=65536+(h-55296<<10)+(_-56320),E++),h<128?v[R++]=h:(h<2048?v[R++]=192|h>>>6:(h<65536?v[R++]=224|h>>>12:(v[R++]=240|h>>>18,v[R++]=128|h>>>12&63),v[R++]=128|h>>>6&63),v[R++]=128|63&h);return v},a.buf2binstring=function(g){return y(g,g.length)},a.binstring2buf=function(g){for(var v=new i.Buf8(g.length),h=0,_=v.length;h<_;h++)v[h]=g.charCodeAt(h);return v},a.buf2string=function(g,v){var h,_,E,R,m=v||g.length,f=new Array(2*m);for(h=_=0;h<m;)if((E=g[h++])<128)f[_++]=E;else if(4<(R=u[E]))f[_++]=65533,h+=R-1;else{for(E&=R===2?31:R===3?15:7;1<R&&h<m;)E=E<<6|63&g[h++],R--;1<R?f[_++]=65533:E<65536?f[_++]=E:(E-=65536,f[_++]=55296|E>>10&1023,f[_++]=56320|1023&E)}return y(f,_)},a.utf8border=function(g,v){var h;for((v=v||g.length)>g.length&&(v=g.length),h=v-1;0<=h&&(192&g[h])==128;)h--;return h<0||h===0?v:h+u[g[h]]>v?h:v}},{"./common":41}],43:[function(r,n,a){n.exports=function(i,l,s,u){for(var d=65535&i|0,y=i>>>16&65535|0,g=0;s!==0;){for(s-=g=2e3<s?2e3:s;y=y+(d=d+l[u++]|0)|0,--g;);d%=65521,y%=65521}return d|y<<16|0}},{}],44:[function(r,n,a){n.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(r,n,a){var i=function(){for(var l,s=[],u=0;u<256;u++){l=u;for(var d=0;d<8;d++)l=1&l?3988292384^l>>>1:l>>>1;s[u]=l}return s}();n.exports=function(l,s,u,d){var y=i,g=d+u;l^=-1;for(var v=d;v<g;v++)l=l>>>8^y[255&(l^s[v])];return-1^l}},{}],46:[function(r,n,a){var i,l=r("../utils/common"),s=r("./trees"),u=r("./adler32"),d=r("./crc32"),y=r("./messages"),g=0,v=4,h=0,_=-2,E=-1,R=4,m=2,f=8,p=9,b=286,A=30,S=19,B=2*b+1,z=15,O=3,G=258,ee=G+O+1,M=42,K=113,C=1,P=2,X=3,V=4;function re(w,J){return w.msg=y[J],J}function Q(w){return(w<<1)-(4<w?9:0)}function te(w){for(var J=w.length;0<=--J;)w[J]=0}function Z(w){var J=w.state,k=J.pending;k>w.avail_out&&(k=w.avail_out),k!==0&&(l.arraySet(w.output,J.pending_buf,J.pending_out,k,w.next_out),w.next_out+=k,J.pending_out+=k,w.total_out+=k,w.avail_out-=k,J.pending-=k,J.pending===0&&(J.pending_out=0))}function D(w,J){s._tr_flush_block(w,0<=w.block_start?w.block_start:-1,w.strstart-w.block_start,J),w.block_start=w.strstart,Z(w.strm)}function I(w,J){w.pending_buf[w.pending++]=J}function Y(w,J){w.pending_buf[w.pending++]=J>>>8&255,w.pending_buf[w.pending++]=255&J}function $(w,J){var k,o,c=w.max_chain_length,T=w.strstart,H=w.prev_length,W=w.nice_match,q=w.strstart>w.w_size-ee?w.strstart-(w.w_size-ee):0,ae=w.window,ce=w.w_mask,ie=w.prev,pe=w.strstart+G,me=ae[T+H-1],ve=ae[T+H];w.prev_length>=w.good_match&&(c>>=2),W>w.lookahead&&(W=w.lookahead);do if(ae[(k=J)+H]===ve&&ae[k+H-1]===me&&ae[k]===ae[T]&&ae[++k]===ae[T+1]){T+=2,k++;do;while(ae[++T]===ae[++k]&&ae[++T]===ae[++k]&&ae[++T]===ae[++k]&&ae[++T]===ae[++k]&&ae[++T]===ae[++k]&&ae[++T]===ae[++k]&&ae[++T]===ae[++k]&&ae[++T]===ae[++k]&&T<pe);if(o=G-(pe-T),T=pe-G,H<o){if(w.match_start=J,W<=(H=o))break;me=ae[T+H-1],ve=ae[T+H]}}while((J=ie[J&ce])>q&&--c!=0);return H<=w.lookahead?H:w.lookahead}function ue(w){var J,k,o,c,T,H,W,q,ae,ce,ie=w.w_size;do{if(c=w.window_size-w.lookahead-w.strstart,w.strstart>=ie+(ie-ee)){for(l.arraySet(w.window,w.window,ie,ie,0),w.match_start-=ie,w.strstart-=ie,w.block_start-=ie,J=k=w.hash_size;o=w.head[--J],w.head[J]=ie<=o?o-ie:0,--k;);for(J=k=ie;o=w.prev[--J],w.prev[J]=ie<=o?o-ie:0,--k;);c+=ie}if(w.strm.avail_in===0)break;if(H=w.strm,W=w.window,q=w.strstart+w.lookahead,ae=c,ce=void 0,ce=H.avail_in,ae<ce&&(ce=ae),k=ce===0?0:(H.avail_in-=ce,l.arraySet(W,H.input,H.next_in,ce,q),H.state.wrap===1?H.adler=u(H.adler,W,ce,q):H.state.wrap===2&&(H.adler=d(H.adler,W,ce,q)),H.next_in+=ce,H.total_in+=ce,ce),w.lookahead+=k,w.lookahead+w.insert>=O)for(T=w.strstart-w.insert,w.ins_h=w.window[T],w.ins_h=(w.ins_h<<w.hash_shift^w.window[T+1])&w.hash_mask;w.insert&&(w.ins_h=(w.ins_h<<w.hash_shift^w.window[T+O-1])&w.hash_mask,w.prev[T&w.w_mask]=w.head[w.ins_h],w.head[w.ins_h]=T,T++,w.insert--,!(w.lookahead+w.insert<O)););}while(w.lookahead<ee&&w.strm.avail_in!==0)}function N(w,J){for(var k,o;;){if(w.lookahead<ee){if(ue(w),w.lookahead<ee&&J===g)return C;if(w.lookahead===0)break}if(k=0,w.lookahead>=O&&(w.ins_h=(w.ins_h<<w.hash_shift^w.window[w.strstart+O-1])&w.hash_mask,k=w.prev[w.strstart&w.w_mask]=w.head[w.ins_h],w.head[w.ins_h]=w.strstart),k!==0&&w.strstart-k<=w.w_size-ee&&(w.match_length=$(w,k)),w.match_length>=O)if(o=s._tr_tally(w,w.strstart-w.match_start,w.match_length-O),w.lookahead-=w.match_length,w.match_length<=w.max_lazy_match&&w.lookahead>=O){for(w.match_length--;w.strstart++,w.ins_h=(w.ins_h<<w.hash_shift^w.window[w.strstart+O-1])&w.hash_mask,k=w.prev[w.strstart&w.w_mask]=w.head[w.ins_h],w.head[w.ins_h]=w.strstart,--w.match_length!=0;);w.strstart++}else w.strstart+=w.match_length,w.match_length=0,w.ins_h=w.window[w.strstart],w.ins_h=(w.ins_h<<w.hash_shift^w.window[w.strstart+1])&w.hash_mask;else o=s._tr_tally(w,0,w.window[w.strstart]),w.lookahead--,w.strstart++;if(o&&(D(w,!1),w.strm.avail_out===0))return C}return w.insert=w.strstart<O-1?w.strstart:O-1,J===v?(D(w,!0),w.strm.avail_out===0?X:V):w.last_lit&&(D(w,!1),w.strm.avail_out===0)?C:P}function x(w,J){for(var k,o,c;;){if(w.lookahead<ee){if(ue(w),w.lookahead<ee&&J===g)return C;if(w.lookahead===0)break}if(k=0,w.lookahead>=O&&(w.ins_h=(w.ins_h<<w.hash_shift^w.window[w.strstart+O-1])&w.hash_mask,k=w.prev[w.strstart&w.w_mask]=w.head[w.ins_h],w.head[w.ins_h]=w.strstart),w.prev_length=w.match_length,w.prev_match=w.match_start,w.match_length=O-1,k!==0&&w.prev_length<w.max_lazy_match&&w.strstart-k<=w.w_size-ee&&(w.match_length=$(w,k),w.match_length<=5&&(w.strategy===1||w.match_length===O&&4096<w.strstart-w.match_start)&&(w.match_length=O-1)),w.prev_length>=O&&w.match_length<=w.prev_length){for(c=w.strstart+w.lookahead-O,o=s._tr_tally(w,w.strstart-1-w.prev_match,w.prev_length-O),w.lookahead-=w.prev_length-1,w.prev_length-=2;++w.strstart<=c&&(w.ins_h=(w.ins_h<<w.hash_shift^w.window[w.strstart+O-1])&w.hash_mask,k=w.prev[w.strstart&w.w_mask]=w.head[w.ins_h],w.head[w.ins_h]=w.strstart),--w.prev_length!=0;);if(w.match_available=0,w.match_length=O-1,w.strstart++,o&&(D(w,!1),w.strm.avail_out===0))return C}else if(w.match_available){if((o=s._tr_tally(w,0,w.window[w.strstart-1]))&&D(w,!1),w.strstart++,w.lookahead--,w.strm.avail_out===0)return C}else w.match_available=1,w.strstart++,w.lookahead--}return w.match_available&&(o=s._tr_tally(w,0,w.window[w.strstart-1]),w.match_available=0),w.insert=w.strstart<O-1?w.strstart:O-1,J===v?(D(w,!0),w.strm.avail_out===0?X:V):w.last_lit&&(D(w,!1),w.strm.avail_out===0)?C:P}function F(w,J,k,o,c){this.good_length=w,this.max_lazy=J,this.nice_length=k,this.max_chain=o,this.func=c}function j(){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=f,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 l.Buf16(2*B),this.dyn_dtree=new l.Buf16(2*(2*A+1)),this.bl_tree=new l.Buf16(2*(2*S+1)),te(this.dyn_ltree),te(this.dyn_dtree),te(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new l.Buf16(z+1),this.heap=new l.Buf16(2*b+1),te(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new l.Buf16(2*b+1),te(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ne(w){var J;return w&&w.state?(w.total_in=w.total_out=0,w.data_type=m,(J=w.state).pending=0,J.pending_out=0,J.wrap<0&&(J.wrap=-J.wrap),J.status=J.wrap?M:K,w.adler=J.wrap===2?0:1,J.last_flush=g,s._tr_init(J),h):re(w,_)}function U(w){var J=ne(w);return J===h&&function(k){k.window_size=2*k.w_size,te(k.head),k.max_lazy_match=i[k.level].max_lazy,k.good_match=i[k.level].good_length,k.nice_match=i[k.level].nice_length,k.max_chain_length=i[k.level].max_chain,k.strstart=0,k.block_start=0,k.lookahead=0,k.insert=0,k.match_length=k.prev_length=O-1,k.match_available=0,k.ins_h=0}(w.state),J}function L(w,J,k,o,c,T){if(!w)return _;var H=1;if(J===E&&(J=6),o<0?(H=0,o=-o):15<o&&(H=2,o-=16),c<1||p<c||k!==f||o<8||15<o||J<0||9<J||T<0||R<T)return re(w,_);o===8&&(o=9);var W=new j;return(w.state=W).strm=w,W.wrap=H,W.gzhead=null,W.w_bits=o,W.w_size=1<<W.w_bits,W.w_mask=W.w_size-1,W.hash_bits=c+7,W.hash_size=1<<W.hash_bits,W.hash_mask=W.hash_size-1,W.hash_shift=~~((W.hash_bits+O-1)/O),W.window=new l.Buf8(2*W.w_size),W.head=new l.Buf16(W.hash_size),W.prev=new l.Buf16(W.w_size),W.lit_bufsize=1<<c+6,W.pending_buf_size=4*W.lit_bufsize,W.pending_buf=new l.Buf8(W.pending_buf_size),W.d_buf=1*W.lit_bufsize,W.l_buf=3*W.lit_bufsize,W.level=J,W.strategy=T,W.method=k,U(w)}i=[new F(0,0,0,0,function(w,J){var k=65535;for(k>w.pending_buf_size-5&&(k=w.pending_buf_size-5);;){if(w.lookahead<=1){if(ue(w),w.lookahead===0&&J===g)return C;if(w.lookahead===0)break}w.strstart+=w.lookahead,w.lookahead=0;var o=w.block_start+k;if((w.strstart===0||w.strstart>=o)&&(w.lookahead=w.strstart-o,w.strstart=o,D(w,!1),w.strm.avail_out===0)||w.strstart-w.block_start>=w.w_size-ee&&(D(w,!1),w.strm.avail_out===0))return C}return w.insert=0,J===v?(D(w,!0),w.strm.avail_out===0?X:V):(w.strstart>w.block_start&&(D(w,!1),w.strm.avail_out),C)}),new F(4,4,8,4,N),new F(4,5,16,8,N),new F(4,6,32,32,N),new F(4,4,16,16,x),new F(8,16,32,32,x),new F(8,16,128,128,x),new F(8,32,128,256,x),new F(32,128,258,1024,x),new F(32,258,258,4096,x)],a.deflateInit=function(w,J){return L(w,J,f,15,8,0)},a.deflateInit2=L,a.deflateReset=U,a.deflateResetKeep=ne,a.deflateSetHeader=function(w,J){return w&&w.state?w.state.wrap!==2?_:(w.state.gzhead=J,h):_},a.deflate=function(w,J){var k,o,c,T;if(!w||!w.state||5<J||J<0)return w?re(w,_):_;if(o=w.state,!w.output||!w.input&&w.avail_in!==0||o.status===666&&J!==v)return re(w,w.avail_out===0?-5:_);if(o.strm=w,k=o.last_flush,o.last_flush=J,o.status===M)if(o.wrap===2)w.adler=0,I(o,31),I(o,139),I(o,8),o.gzhead?(I(o,(o.gzhead.text?1:0)+(o.gzhead.hcrc?2:0)+(o.gzhead.extra?4:0)+(o.gzhead.name?8:0)+(o.gzhead.comment?16:0)),I(o,255&o.gzhead.time),I(o,o.gzhead.time>>8&255),I(o,o.gzhead.time>>16&255),I(o,o.gzhead.time>>24&255),I(o,o.level===9?2:2<=o.strategy||o.level<2?4:0),I(o,255&o.gzhead.os),o.gzhead.extra&&o.gzhead.extra.length&&(I(o,255&o.gzhead.extra.length),I(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(w.adler=d(w.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=69):(I(o,0),I(o,0),I(o,0),I(o,0),I(o,0),I(o,o.level===9?2:2<=o.strategy||o.level<2?4:0),I(o,3),o.status=K);else{var H=f+(o.w_bits-8<<4)<<8;H|=(2<=o.strategy||o.level<2?0:o.level<6?1:o.level===6?2:3)<<6,o.strstart!==0&&(H|=32),H+=31-H%31,o.status=K,Y(o,H),o.strstart!==0&&(Y(o,w.adler>>>16),Y(o,65535&w.adler)),w.adler=1}if(o.status===69)if(o.gzhead.extra){for(c=o.pending;o.gzindex<(65535&o.gzhead.extra.length)&&(o.pending!==o.pending_buf_size||(o.gzhead.hcrc&&o.pending>c&&(w.adler=d(w.adler,o.pending_buf,o.pending-c,c)),Z(w),c=o.pending,o.pending!==o.pending_buf_size));)I(o,255&o.gzhead.extra[o.gzindex]),o.gzindex++;o.gzhead.hcrc&&o.pending>c&&(w.adler=d(w.adler,o.pending_buf,o.pending-c,c)),o.gzindex===o.gzhead.extra.length&&(o.gzindex=0,o.status=73)}else o.status=73;if(o.status===73)if(o.gzhead.name){c=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>c&&(w.adler=d(w.adler,o.pending_buf,o.pending-c,c)),Z(w),c=o.pending,o.pending===o.pending_buf_size)){T=1;break}T=o.gzindex<o.gzhead.name.length?255&o.gzhead.name.charCodeAt(o.gzindex++):0,I(o,T)}while(T!==0);o.gzhead.hcrc&&o.pending>c&&(w.adler=d(w.adler,o.pending_buf,o.pending-c,c)),T===0&&(o.gzindex=0,o.status=91)}else o.status=91;if(o.status===91)if(o.gzhead.comment){c=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>c&&(w.adler=d(w.adler,o.pending_buf,o.pending-c,c)),Z(w),c=o.pending,o.pending===o.pending_buf_size)){T=1;break}T=o.gzindex<o.gzhead.comment.length?255&o.gzhead.comment.charCodeAt(o.gzindex++):0,I(o,T)}while(T!==0);o.gzhead.hcrc&&o.pending>c&&(w.adler=d(w.adler,o.pending_buf,o.pending-c,c)),T===0&&(o.status=103)}else o.status=103;if(o.status===103&&(o.gzhead.hcrc?(o.pending+2>o.pending_buf_size&&Z(w),o.pending+2<=o.pending_buf_size&&(I(o,255&w.adler),I(o,w.adler>>8&255),w.adler=0,o.status=K)):o.status=K),o.pending!==0){if(Z(w),w.avail_out===0)return o.last_flush=-1,h}else if(w.avail_in===0&&Q(J)<=Q(k)&&J!==v)return re(w,-5);if(o.status===666&&w.avail_in!==0)return re(w,-5);if(w.avail_in!==0||o.lookahead!==0||J!==g&&o.status!==666){var W=o.strategy===2?function(q,ae){for(var ce;;){if(q.lookahead===0&&(ue(q),q.lookahead===0)){if(ae===g)return C;break}if(q.match_length=0,ce=s._tr_tally(q,0,q.window[q.strstart]),q.lookahead--,q.strstart++,ce&&(D(q,!1),q.strm.avail_out===0))return C}return q.insert=0,ae===v?(D(q,!0),q.strm.avail_out===0?X:V):q.last_lit&&(D(q,!1),q.strm.avail_out===0)?C:P}(o,J):o.strategy===3?function(q,ae){for(var ce,ie,pe,me,ve=q.window;;){if(q.lookahead<=G){if(ue(q),q.lookahead<=G&&ae===g)return C;if(q.lookahead===0)break}if(q.match_length=0,q.lookahead>=O&&0<q.strstart&&(ie=ve[pe=q.strstart-1])===ve[++pe]&&ie===ve[++pe]&&ie===ve[++pe]){me=q.strstart+G;do;while(ie===ve[++pe]&&ie===ve[++pe]&&ie===ve[++pe]&&ie===ve[++pe]&&ie===ve[++pe]&&ie===ve[++pe]&&ie===ve[++pe]&&ie===ve[++pe]&&pe<me);q.match_length=G-(me-pe),q.match_length>q.lookahead&&(q.match_length=q.lookahead)}if(q.match_length>=O?(ce=s._tr_tally(q,1,q.match_length-O),q.lookahead-=q.match_length,q.strstart+=q.match_length,q.match_length=0):(ce=s._tr_tally(q,0,q.window[q.strstart]),q.lookahead--,q.strstart++),ce&&(D(q,!1),q.strm.avail_out===0))return C}return q.insert=0,ae===v?(D(q,!0),q.strm.avail_out===0?X:V):q.last_lit&&(D(q,!1),q.strm.avail_out===0)?C:P}(o,J):i[o.level].func(o,J);if(W!==X&&W!==V||(o.status=666),W===C||W===X)return w.avail_out===0&&(o.last_flush=-1),h;if(W===P&&(J===1?s._tr_align(o):J!==5&&(s._tr_stored_block(o,0,0,!1),J===3&&(te(o.head),o.lookahead===0&&(o.strstart=0,o.block_start=0,o.insert=0))),Z(w),w.avail_out===0))return o.last_flush=-1,h}return J!==v?h:o.wrap<=0?1:(o.wrap===2?(I(o,255&w.adler),I(o,w.adler>>8&255),I(o,w.adler>>16&255),I(o,w.adler>>24&255),I(o,255&w.total_in),I(o,w.total_in>>8&255),I(o,w.total_in>>16&255),I(o,w.total_in>>24&255)):(Y(o,w.adler>>>16),Y(o,65535&w.adler)),Z(w),0<o.wrap&&(o.wrap=-o.wrap),o.pending!==0?h:1)},a.deflateEnd=function(w){var J;return w&&w.state?(J=w.state.status)!==M&&J!==69&&J!==73&&J!==91&&J!==103&&J!==K&&J!==666?re(w,_):(w.state=null,J===K?re(w,-3):h):_},a.deflateSetDictionary=function(w,J){var k,o,c,T,H,W,q,ae,ce=J.length;if(!w||!w.state||(T=(k=w.state).wrap)===2||T===1&&k.status!==M||k.lookahead)return _;for(T===1&&(w.adler=u(w.adler,J,ce,0)),k.wrap=0,ce>=k.w_size&&(T===0&&(te(k.head),k.strstart=0,k.block_start=0,k.insert=0),ae=new l.Buf8(k.w_size),l.arraySet(ae,J,ce-k.w_size,k.w_size,0),J=ae,ce=k.w_size),H=w.avail_in,W=w.next_in,q=w.input,w.avail_in=ce,w.next_in=0,w.input=J,ue(k);k.lookahead>=O;){for(o=k.strstart,c=k.lookahead-(O-1);k.ins_h=(k.ins_h<<k.hash_shift^k.window[o+O-1])&k.hash_mask,k.prev[o&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=o,o++,--c;);k.strstart=o,k.lookahead=O-1,ue(k)}return k.strstart+=k.lookahead,k.block_start=k.strstart,k.insert=k.lookahead,k.lookahead=0,k.match_length=k.prev_length=O-1,k.match_available=0,w.next_in=W,w.input=q,w.avail_in=H,k.wrap=T,h},a.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(r,n,a){n.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(r,n,a){n.exports=function(i,l){var s=i.state,u=i.next_in,d,y,g,v,h,_,E,R,m,f,p,b,A,S,B,z,O,G,ee,M,K,C=i.input,P;d=u+(i.avail_in-5),y=i.next_out,P=i.output,g=y-(l-i.avail_out),v=y+(i.avail_out-257),h=s.dmax,_=s.wsize,E=s.whave,R=s.wnext,m=s.window,f=s.hold,p=s.bits,b=s.lencode,A=s.distcode,S=(1<<s.lenbits)-1,B=(1<<s.distbits)-1;e:do{p<15&&(f+=C[u++]<<p,p+=8,f+=C[u++]<<p,p+=8),z=b[f&S];t:for(;;){if(f>>>=O=z>>>24,p-=O,(O=z>>>16&255)===0)P[y++]=65535&z;else{if(!(16&O)){if(!(64&O)){z=b[(65535&z)+(f&(1<<O)-1)];continue t}if(32&O){s.mode=12;break e}i.msg="invalid literal/length code",s.mode=30;break e}G=65535&z,(O&=15)&&(p<O&&(f+=C[u++]<<p,p+=8),G+=f&(1<<O)-1,f>>>=O,p-=O),p<15&&(f+=C[u++]<<p,p+=8,f+=C[u++]<<p,p+=8),z=A[f&B];r:for(;;){if(f>>>=O=z>>>24,p-=O,!(16&(O=z>>>16&255))){if(!(64&O)){z=A[(65535&z)+(f&(1<<O)-1)];continue r}i.msg="invalid distance code",s.mode=30;break e}if(ee=65535&z,p<(O&=15)&&(f+=C[u++]<<p,(p+=8)<O&&(f+=C[u++]<<p,p+=8)),h<(ee+=f&(1<<O)-1)){i.msg="invalid distance too far back",s.mode=30;break e}if(f>>>=O,p-=O,(O=y-g)<ee){if(E<(O=ee-O)&&s.sane){i.msg="invalid distance too far back",s.mode=30;break e}if(K=m,(M=0)===R){if(M+=_-O,O<G){for(G-=O;P[y++]=m[M++],--O;);M=y-ee,K=P}}else if(R<O){if(M+=_+R-O,(O-=R)<G){for(G-=O;P[y++]=m[M++],--O;);if(M=0,R<G){for(G-=O=R;P[y++]=m[M++],--O;);M=y-ee,K=P}}}else if(M+=R-O,O<G){for(G-=O;P[y++]=m[M++],--O;);M=y-ee,K=P}for(;2<G;)P[y++]=K[M++],P[y++]=K[M++],P[y++]=K[M++],G-=3;G&&(P[y++]=K[M++],1<G&&(P[y++]=K[M++]))}else{for(M=y-ee;P[y++]=P[M++],P[y++]=P[M++],P[y++]=P[M++],2<(G-=3););G&&(P[y++]=P[M++],1<G&&(P[y++]=P[M++]))}break}}break}}while(u<d&&y<v);u-=G=p>>3,f&=(1<<(p-=G<<3))-1,i.next_in=u,i.next_out=y,i.avail_in=u<d?d-u+5:5-(u-d),i.avail_out=y<v?v-y+257:257-(y-v),s.hold=f,s.bits=p}},{}],49:[function(r,n,a){var i=r("../utils/common"),l=r("./adler32"),s=r("./crc32"),u=r("./inffast"),d=r("./inftrees"),y=1,g=2,v=0,h=-2,_=1,E=852,R=592;function m(M){return(M>>>24&255)+(M>>>8&65280)+((65280&M)<<8)+((255&M)<<24)}function f(){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 i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function p(M){var K;return M&&M.state?(K=M.state,M.total_in=M.total_out=K.total=0,M.msg="",K.wrap&&(M.adler=1&K.wrap),K.mode=_,K.last=0,K.havedict=0,K.dmax=32768,K.head=null,K.hold=0,K.bits=0,K.lencode=K.lendyn=new i.Buf32(E),K.distcode=K.distdyn=new i.Buf32(R),K.sane=1,K.back=-1,v):h}function b(M){var K;return M&&M.state?((K=M.state).wsize=0,K.whave=0,K.wnext=0,p(M)):h}function A(M,K){var C,P;return M&&M.state?(P=M.state,K<0?(C=0,K=-K):(C=1+(K>>4),K<48&&(K&=15)),K&&(K<8||15<K)?h:(P.window!==null&&P.wbits!==K&&(P.window=null),P.wrap=C,P.wbits=K,b(M))):h}function S(M,K){var C,P;return M?(P=new f,(M.state=P).window=null,(C=A(M,K))!==v&&(M.state=null),C):h}var B,z,O=!0;function G(M){if(O){var K;for(B=new i.Buf32(512),z=new i.Buf32(32),K=0;K<144;)M.lens[K++]=8;for(;K<256;)M.lens[K++]=9;for(;K<280;)M.lens[K++]=7;for(;K<288;)M.lens[K++]=8;for(d(y,M.lens,0,288,B,0,M.work,{bits:9}),K=0;K<32;)M.lens[K++]=5;d(g,M.lens,0,32,z,0,M.work,{bits:5}),O=!1}M.lencode=B,M.lenbits=9,M.distcode=z,M.distbits=5}function ee(M,K,C,P){var X,V=M.state;return V.window===null&&(V.wsize=1<<V.wbits,V.wnext=0,V.whave=0,V.window=new i.Buf8(V.wsize)),P>=V.wsize?(i.arraySet(V.window,K,C-V.wsize,V.wsize,0),V.wnext=0,V.whave=V.wsize):(P<(X=V.wsize-V.wnext)&&(X=P),i.arraySet(V.window,K,C-P,X,V.wnext),(P-=X)?(i.arraySet(V.window,K,C-P,P,0),V.wnext=P,V.whave=V.wsize):(V.wnext+=X,V.wnext===V.wsize&&(V.wnext=0),V.whave<V.wsize&&(V.whave+=X))),0}a.inflateReset=b,a.inflateReset2=A,a.inflateResetKeep=p,a.inflateInit=function(M){return S(M,15)},a.inflateInit2=S,a.inflate=function(M,K){var C,P,X,V,re,Q,te,Z,D,I,Y,$,ue,N,x,F,j,ne,U,L,w,J,k,o,c=0,T=new i.Buf8(4),H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!M||!M.state||!M.output||!M.input&&M.avail_in!==0)return h;(C=M.state).mode===12&&(C.mode=13),re=M.next_out,X=M.output,te=M.avail_out,V=M.next_in,P=M.input,Q=M.avail_in,Z=C.hold,D=C.bits,I=Q,Y=te,J=v;e:for(;;)switch(C.mode){case _:if(C.wrap===0){C.mode=13;break}for(;D<16;){if(Q===0)break e;Q--,Z+=P[V++]<<D,D+=8}if(2&C.wrap&&Z===35615){T[C.check=0]=255&Z,T[1]=Z>>>8&255,C.check=s(C.check,T,2,0),D=Z=0,C.mode=2;break}if(C.flags=0,C.head&&(C.head.done=!1),!(1&C.wrap)||(((255&Z)<<8)+(Z>>8))%31){M.msg="incorrect header check",C.mode=30;break}if((15&Z)!=8){M.msg="unknown compression method",C.mode=30;break}if(D-=4,w=8+(15&(Z>>>=4)),C.wbits===0)C.wbits=w;else if(w>C.wbits){M.msg="invalid window size",C.mode=30;break}C.dmax=1<<w,M.adler=C.check=1,C.mode=512&Z?10:12,D=Z=0;break;case 2:for(;D<16;){if(Q===0)break e;Q--,Z+=P[V++]<<D,D+=8}if(C.flags=Z,(255&C.flags)!=8){M.msg="unknown compression method",C.mode=30;break}if(57344&C.flags){M.msg="unknown header flags set",C.mode=30;break}C.head&&(C.head.text=Z>>8&1),512&C.flags&&(T[0]=255&Z,T[1]=Z>>>8&255,C.check=s(C.check,T,2,0)),D=Z=0,C.mode=3;case 3:for(;D<32;){if(Q===0)break e;Q--,Z+=P[V++]<<D,D+=8}C.head&&(C.head.time=Z),512&C.flags&&(T[0]=255&Z,T[1]=Z>>>8&255,T[2]=Z>>>16&255,T[3]=Z>>>24&255,C.check=s(C.check,T,4,0)),D=Z=0,C.mode=4;case 4:for(;D<16;){if(Q===0)break e;Q--,Z+=P[V++]<<D,D+=8}C.head&&(C.head.xflags=255&Z,C.head.os=Z>>8),512&C.flags&&(T[0]=255&Z,T[1]=Z>>>8&255,C.check=s(C.check,T,2,0)),D=Z=0,C.mode=5;case 5:if(1024&C.flags){for(;D<16;){if(Q===0)break e;Q--,Z+=P[V++]<<D,D+=8}C.length=Z,C.head&&(C.head.extra_len=Z),512&C.flags&&(T[0]=255&Z,T[1]=Z>>>8&255,C.check=s(C.check,T,2,0)),D=Z=0}else C.head&&(C.head.extra=null);C.mode=6;case 6:if(1024&C.flags&&(Q<($=C.length)&&($=Q),$&&(C.head&&(w=C.head.extra_len-C.length,C.head.extra||(C.head.extra=new Array(C.head.extra_len)),i.arraySet(C.head.extra,P,V,$,w)),512&C.flags&&(C.check=s(C.check,P,$,V)),Q-=$,V+=$,C.length-=$),C.length))break e;C.length=0,C.mode=7;case 7:if(2048&C.flags){if(Q===0)break e;for($=0;w=P[V+$++],C.head&&w&&C.length<65536&&(C.head.name+=String.fromCharCode(w)),w&&$<Q;);if(512&C.flags&&(C.check=s(C.check,P,$,V)),Q-=$,V+=$,w)break e}else C.head&&(C.head.name=null);C.length=0,C.mode=8;case 8:if(4096&C.flags){if(Q===0)break e;for($=0;w=P[V+$++],C.head&&w&&C.length<65536&&(C.head.comment+=String.fromCharCode(w)),w&&$<Q;);if(512&C.flags&&(C.check=s(C.check,P,$,V)),Q-=$,V+=$,w)break e}else C.head&&(C.head.comment=null);C.mode=9;case 9:if(512&C.flags){for(;D<16;){if(Q===0)break e;Q--,Z+=P[V++]<<D,D+=8}if(Z!==(65535&C.check)){M.msg="header crc mismatch",C.mode=30;break}D=Z=0}C.head&&(C.head.hcrc=C.flags>>9&1,C.head.done=!0),M.adler=C.check=0,C.mode=12;break;case 10:for(;D<32;){if(Q===0)break e;Q--,Z+=P[V++]<<D,D+=8}M.adler=C.check=m(Z),D=Z=0,C.mode=11;case 11:if(C.havedict===0)return M.next_out=re,M.avail_out=te,M.next_in=V,M.avail_in=Q,C.hold=Z,C.bits=D,2;M.adler=C.check=1,C.mode=12;case 12:if(K===5||K===6)break e;case 13:if(C.last){Z>>>=7&D,D-=7&D,C.mode=27;break}for(;D<3;){if(Q===0)break e;Q--,Z+=P[V++]<<D,D+=8}switch(C.last=1&Z,D-=1,3&(Z>>>=1)){case 0:C.mode=14;break;case 1:if(G(C),C.mode=20,K!==6)break;Z>>>=2,D-=2;break e;case 2:C.mode=17;break;case 3:M.msg="invalid block type",C.mode=30}Z>>>=2,D-=2;break;case 14:for(Z>>>=7&D,D-=7&D;D<32;){if(Q===0)break e;Q--,Z+=P[V++]<<D,D+=8}if((65535&Z)!=(Z>>>16^65535)){M.msg="invalid stored block lengths",C.mode=30;break}if(C.length=65535&Z,D=Z=0,C.mode=15,K===6)break e;case 15:C.mode=16;case 16:if($=C.length){if(Q<$&&($=Q),te<$&&($=te),$===0)break e;i.arraySet(X,P,V,$,re),Q-=$,V+=$,te-=$,re+=$,C.length-=$;break}C.mode=12;break;case 17:for(;D<14;){if(Q===0)break e;Q--,Z+=P[V++]<<D,D+=8}if(C.nlen=257+(31&Z),Z>>>=5,D-=5,C.ndist=1+(31&Z),Z>>>=5,D-=5,C.ncode=4+(15&Z),Z>>>=4,D-=4,286<C.nlen||30<C.ndist){M.msg="too many length or distance symbols",C.mode=30;break}C.have=0,C.mode=18;case 18:for(;C.have<C.ncode;){for(;D<3;){if(Q===0)break e;Q--,Z+=P[V++]<<D,D+=8}C.lens[H[C.have++]]=7&Z,Z>>>=3,D-=3}for(;C.have<19;)C.lens[H[C.have++]]=0;if(C.lencode=C.lendyn,C.lenbits=7,k={bits:C.lenbits},J=d(0,C.lens,0,19,C.lencode,0,C.work,k),C.lenbits=k.bits,J){M.msg="invalid code lengths set",C.mode=30;break}C.have=0,C.mode=19;case 19:for(;C.have<C.nlen+C.ndist;){for(;F=(c=C.lencode[Z&(1<<C.lenbits)-1])>>>16&255,j=65535&c,!((x=c>>>24)<=D);){if(Q===0)break e;Q--,Z+=P[V++]<<D,D+=8}if(j<16)Z>>>=x,D-=x,C.lens[C.have++]=j;else{if(j===16){for(o=x+2;D<o;){if(Q===0)break e;Q--,Z+=P[V++]<<D,D+=8}if(Z>>>=x,D-=x,C.have===0){M.msg="invalid bit length repeat",C.mode=30;break}w=C.lens[C.have-1],$=3+(3&Z),Z>>>=2,D-=2}else if(j===17){for(o=x+3;D<o;){if(Q===0)break e;Q--,Z+=P[V++]<<D,D+=8}D-=x,w=0,$=3+(7&(Z>>>=x)),Z>>>=3,D-=3}else{for(o=x+7;D<o;){if(Q===0)break e;Q--,Z+=P[V++]<<D,D+=8}D-=x,w=0,$=11+(127&(Z>>>=x)),Z>>>=7,D-=7}if(C.have+$>C.nlen+C.ndist){M.msg="invalid bit length repeat",C.mode=30;break}for(;$--;)C.lens[C.have++]=w}}if(C.mode===30)break;if(C.lens[256]===0){M.msg="invalid code -- missing end-of-block",C.mode=30;break}if(C.lenbits=9,k={bits:C.lenbits},J=d(y,C.lens,0,C.nlen,C.lencode,0,C.work,k),C.lenbits=k.bits,J){M.msg="invalid literal/lengths set",C.mode=30;break}if(C.distbits=6,C.distcode=C.distdyn,k={bits:C.distbits},J=d(g,C.lens,C.nlen,C.ndist,C.distcode,0,C.work,k),C.distbits=k.bits,J){M.msg="invalid distances set",C.mode=30;break}if(C.mode=20,K===6)break e;case 20:C.mode=21;case 21:if(6<=Q&&258<=te){M.next_out=re,M.avail_out=te,M.next_in=V,M.avail_in=Q,C.hold=Z,C.bits=D,u(M,Y),re=M.next_out,X=M.output,te=M.avail_out,V=M.next_in,P=M.input,Q=M.avail_in,Z=C.hold,D=C.bits,C.mode===12&&(C.back=-1);break}for(C.back=0;F=(c=C.lencode[Z&(1<<C.lenbits)-1])>>>16&255,j=65535&c,!((x=c>>>24)<=D);){if(Q===0)break e;Q--,Z+=P[V++]<<D,D+=8}if(F&&!(240&F)){for(ne=x,U=F,L=j;F=(c=C.lencode[L+((Z&(1<<ne+U)-1)>>ne)])>>>16&255,j=65535&c,!(ne+(x=c>>>24)<=D);){if(Q===0)break e;Q--,Z+=P[V++]<<D,D+=8}Z>>>=ne,D-=ne,C.back+=ne}if(Z>>>=x,D-=x,C.back+=x,C.length=j,F===0){C.mode=26;break}if(32&F){C.back=-1,C.mode=12;break}if(64&F){M.msg="invalid literal/length code",C.mode=30;break}C.extra=15&F,C.mode=22;case 22:if(C.extra){for(o=C.extra;D<o;){if(Q===0)break e;Q--,Z+=P[V++]<<D,D+=8}C.length+=Z&(1<<C.extra)-1,Z>>>=C.extra,D-=C.extra,C.back+=C.extra}C.was=C.length,C.mode=23;case 23:for(;F=(c=C.distcode[Z&(1<<C.distbits)-1])>>>16&255,j=65535&c,!((x=c>>>24)<=D);){if(Q===0)break e;Q--,Z+=P[V++]<<D,D+=8}if(!(240&F)){for(ne=x,U=F,L=j;F=(c=C.distcode[L+((Z&(1<<ne+U)-1)>>ne)])>>>16&255,j=65535&c,!(ne+(x=c>>>24)<=D);){if(Q===0)break e;Q--,Z+=P[V++]<<D,D+=8}Z>>>=ne,D-=ne,C.back+=ne}if(Z>>>=x,D-=x,C.back+=x,64&F){M.msg="invalid distance code",C.mode=30;break}C.offset=j,C.extra=15&F,C.mode=24;case 24:if(C.extra){for(o=C.extra;D<o;){if(Q===0)break e;Q--,Z+=P[V++]<<D,D+=8}C.offset+=Z&(1<<C.extra)-1,Z>>>=C.extra,D-=C.extra,C.back+=C.extra}if(C.offset>C.dmax){M.msg="invalid distance too far back",C.mode=30;break}C.mode=25;case 25:if(te===0)break e;if($=Y-te,C.offset>$){if(($=C.offset-$)>C.whave&&C.sane){M.msg="invalid distance too far back",C.mode=30;break}ue=$>C.wnext?($-=C.wnext,C.wsize-$):C.wnext-$,$>C.length&&($=C.length),N=C.window}else N=X,ue=re-C.offset,$=C.length;for(te<$&&($=te),te-=$,C.length-=$;X[re++]=N[ue++],--$;);C.length===0&&(C.mode=21);break;case 26:if(te===0)break e;X[re++]=C.length,te--,C.mode=21;break;case 27:if(C.wrap){for(;D<32;){if(Q===0)break e;Q--,Z|=P[V++]<<D,D+=8}if(Y-=te,M.total_out+=Y,C.total+=Y,Y&&(M.adler=C.check=C.flags?s(C.check,X,Y,re-Y):l(C.check,X,Y,re-Y)),Y=te,(C.flags?Z:m(Z))!==C.check){M.msg="incorrect data check",C.mode=30;break}D=Z=0}C.mode=28;case 28:if(C.wrap&&C.flags){for(;D<32;){if(Q===0)break e;Q--,Z+=P[V++]<<D,D+=8}if(Z!==(4294967295&C.total)){M.msg="incorrect length check",C.mode=30;break}D=Z=0}C.mode=29;case 29:J=1;break e;case 30:J=-3;break e;case 31:return-4;case 32:default:return h}return M.next_out=re,M.avail_out=te,M.next_in=V,M.avail_in=Q,C.hold=Z,C.bits=D,(C.wsize||Y!==M.avail_out&&C.mode<30&&(C.mode<27||K!==4))&&ee(M,M.output,M.next_out,Y-M.avail_out)?(C.mode=31,-4):(I-=M.avail_in,Y-=M.avail_out,M.total_in+=I,M.total_out+=Y,C.total+=Y,C.wrap&&Y&&(M.adler=C.check=C.flags?s(C.check,X,Y,M.next_out-Y):l(C.check,X,Y,M.next_out-Y)),M.data_type=C.bits+(C.last?64:0)+(C.mode===12?128:0)+(C.mode===20||C.mode===15?256:0),(I==0&&Y===0||K===4)&&J===v&&(J=-5),J)},a.inflateEnd=function(M){if(!M||!M.state)return h;var K=M.state;return K.window&&(K.window=null),M.state=null,v},a.inflateGetHeader=function(M,K){var C;return M&&M.state&&2&(C=M.state).wrap?((C.head=K).done=!1,v):h},a.inflateSetDictionary=function(M,K){var C,P=K.length;return M&&M.state?(C=M.state).wrap!==0&&C.mode!==11?h:C.mode===11&&l(1,K,P,0)!==C.check?-3:ee(M,K,P,P)?(C.mode=31,-4):(C.havedict=1,v):h},a.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(r,n,a){var i=r("../utils/common"),l=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],u=[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],d=[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];n.exports=function(y,g,v,h,_,E,R,m){var f,p,b,A,S,B,z,O,G,ee=m.bits,M=0,K=0,C=0,P=0,X=0,V=0,re=0,Q=0,te=0,Z=0,D=null,I=0,Y=new i.Buf16(16),$=new i.Buf16(16),ue=null,N=0;for(M=0;M<=15;M++)Y[M]=0;for(K=0;K<h;K++)Y[g[v+K]]++;for(X=ee,P=15;1<=P&&Y[P]===0;P--);if(P<X&&(X=P),P===0)return _[E++]=20971520,_[E++]=20971520,m.bits=1,0;for(C=1;C<P&&Y[C]===0;C++);for(X<C&&(X=C),M=Q=1;M<=15;M++)if(Q<<=1,(Q-=Y[M])<0)return-1;if(0<Q&&(y===0||P!==1))return-1;for($[1]=0,M=1;M<15;M++)$[M+1]=$[M]+Y[M];for(K=0;K<h;K++)g[v+K]!==0&&(R[$[g[v+K]]++]=K);if(B=y===0?(D=ue=R,19):y===1?(D=l,I-=257,ue=s,N-=257,256):(D=u,ue=d,-1),M=C,S=E,re=K=Z=0,b=-1,A=(te=1<<(V=X))-1,y===1&&852<te||y===2&&592<te)return 1;for(;;){for(z=M-re,G=R[K]<B?(O=0,R[K]):R[K]>B?(O=ue[N+R[K]],D[I+R[K]]):(O=96,0),f=1<<M-re,C=p=1<<V;_[S+(Z>>re)+(p-=f)]=z<<24|O<<16|G|0,p!==0;);for(f=1<<M-1;Z&f;)f>>=1;if(f!==0?(Z&=f-1,Z+=f):Z=0,K++,--Y[M]==0){if(M===P)break;M=g[v+R[K]]}if(X<M&&(Z&A)!==b){for(re===0&&(re=X),S+=C,Q=1<<(V=M-re);V+re<P&&!((Q-=Y[V+re])<=0);)V++,Q<<=1;if(te+=1<<V,y===1&&852<te||y===2&&592<te)return 1;_[b=Z&A]=X<<24|V<<16|S-E|0}}return Z!==0&&(_[S+Z]=M-re<<24|4194304),m.bits=X,0}},{"../utils/common":41}],51:[function(r,n,a){n.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(r,n,a){var i=r("../utils/common"),l=0,s=1;function u(c){for(var T=c.length;0<=--T;)c[T]=0}var d=0,y=29,g=256,v=g+1+y,h=30,_=19,E=2*v+1,R=15,m=16,f=7,p=256,b=16,A=17,S=18,B=[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],z=[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],O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],G=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ee=new Array(2*(v+2));u(ee);var M=new Array(2*h);u(M);var K=new Array(512);u(K);var C=new Array(256);u(C);var P=new Array(y);u(P);var X,V,re,Q=new Array(h);function te(c,T,H,W,q){this.static_tree=c,this.extra_bits=T,this.extra_base=H,this.elems=W,this.max_length=q,this.has_stree=c&&c.length}function Z(c,T){this.dyn_tree=c,this.max_code=0,this.stat_desc=T}function D(c){return c<256?K[c]:K[256+(c>>>7)]}function I(c,T){c.pending_buf[c.pending++]=255&T,c.pending_buf[c.pending++]=T>>>8&255}function Y(c,T,H){c.bi_valid>m-H?(c.bi_buf|=T<<c.bi_valid&65535,I(c,c.bi_buf),c.bi_buf=T>>m-c.bi_valid,c.bi_valid+=H-m):(c.bi_buf|=T<<c.bi_valid&65535,c.bi_valid+=H)}function $(c,T,H){Y(c,H[2*T],H[2*T+1])}function ue(c,T){for(var H=0;H|=1&c,c>>>=1,H<<=1,0<--T;);return H>>>1}function N(c,T,H){var W,q,ae=new Array(R+1),ce=0;for(W=1;W<=R;W++)ae[W]=ce=ce+H[W-1]<<1;for(q=0;q<=T;q++){var ie=c[2*q+1];ie!==0&&(c[2*q]=ue(ae[ie]++,ie))}}function x(c){var T;for(T=0;T<v;T++)c.dyn_ltree[2*T]=0;for(T=0;T<h;T++)c.dyn_dtree[2*T]=0;for(T=0;T<_;T++)c.bl_tree[2*T]=0;c.dyn_ltree[2*p]=1,c.opt_len=c.static_len=0,c.last_lit=c.matches=0}function F(c){8<c.bi_valid?I(c,c.bi_buf):0<c.bi_valid&&(c.pending_buf[c.pending++]=c.bi_buf),c.bi_buf=0,c.bi_valid=0}function j(c,T,H,W){var q=2*T,ae=2*H;return c[q]<c[ae]||c[q]===c[ae]&&W[T]<=W[H]}function ne(c,T,H){for(var W=c.heap[H],q=H<<1;q<=c.heap_len&&(q<c.heap_len&&j(T,c.heap[q+1],c.heap[q],c.depth)&&q++,!j(T,W,c.heap[q],c.depth));)c.heap[H]=c.heap[q],H=q,q<<=1;c.heap[H]=W}function U(c,T,H){var W,q,ae,ce,ie=0;if(c.last_lit!==0)for(;W=c.pending_buf[c.d_buf+2*ie]<<8|c.pending_buf[c.d_buf+2*ie+1],q=c.pending_buf[c.l_buf+ie],ie++,W===0?$(c,q,T):($(c,(ae=C[q])+g+1,T),(ce=B[ae])!==0&&Y(c,q-=P[ae],ce),$(c,ae=D(--W),H),(ce=z[ae])!==0&&Y(c,W-=Q[ae],ce)),ie<c.last_lit;);$(c,p,T)}function L(c,T){var H,W,q,ae=T.dyn_tree,ce=T.stat_desc.static_tree,ie=T.stat_desc.has_stree,pe=T.stat_desc.elems,me=-1;for(c.heap_len=0,c.heap_max=E,H=0;H<pe;H++)ae[2*H]!==0?(c.heap[++c.heap_len]=me=H,c.depth[H]=0):ae[2*H+1]=0;for(;c.heap_len<2;)ae[2*(q=c.heap[++c.heap_len]=me<2?++me:0)]=1,c.depth[q]=0,c.opt_len--,ie&&(c.static_len-=ce[2*q+1]);for(T.max_code=me,H=c.heap_len>>1;1<=H;H--)ne(c,ae,H);for(q=pe;H=c.heap[1],c.heap[1]=c.heap[c.heap_len--],ne(c,ae,1),W=c.heap[1],c.heap[--c.heap_max]=H,c.heap[--c.heap_max]=W,ae[2*q]=ae[2*H]+ae[2*W],c.depth[q]=(c.depth[H]>=c.depth[W]?c.depth[H]:c.depth[W])+1,ae[2*H+1]=ae[2*W+1]=q,c.heap[1]=q++,ne(c,ae,1),2<=c.heap_len;);c.heap[--c.heap_max]=c.heap[1],function(ve,rt){var Mr,Jt,Ga,Xe,al,Ks,cr=rt.dyn_tree,of=rt.max_code,sy=rt.stat_desc.static_tree,oy=rt.stat_desc.has_stree,uy=rt.stat_desc.extra_bits,uf=rt.stat_desc.extra_base,Va=rt.stat_desc.max_length,il=0;for(Xe=0;Xe<=R;Xe++)ve.bl_count[Xe]=0;for(cr[2*ve.heap[ve.heap_max]+1]=0,Mr=ve.heap_max+1;Mr<E;Mr++)Va<(Xe=cr[2*cr[2*(Jt=ve.heap[Mr])+1]+1]+1)&&(Xe=Va,il++),cr[2*Jt+1]=Xe,of<Jt||(ve.bl_count[Xe]++,al=0,uf<=Jt&&(al=uy[Jt-uf]),Ks=cr[2*Jt],ve.opt_len+=Ks*(Xe+al),oy&&(ve.static_len+=Ks*(sy[2*Jt+1]+al)));if(il!==0){do{for(Xe=Va-1;ve.bl_count[Xe]===0;)Xe--;ve.bl_count[Xe]--,ve.bl_count[Xe+1]+=2,ve.bl_count[Va]--,il-=2}while(0<il);for(Xe=Va;Xe!==0;Xe--)for(Jt=ve.bl_count[Xe];Jt!==0;)of<(Ga=ve.heap[--Mr])||(cr[2*Ga+1]!==Xe&&(ve.opt_len+=(Xe-cr[2*Ga+1])*cr[2*Ga],cr[2*Ga+1]=Xe),Jt--)}}(c,T),N(ae,me,c.bl_count)}function w(c,T,H){var W,q,ae=-1,ce=T[1],ie=0,pe=7,me=4;for(ce===0&&(pe=138,me=3),T[2*(H+1)+1]=65535,W=0;W<=H;W++)q=ce,ce=T[2*(W+1)+1],++ie<pe&&q===ce||(ie<me?c.bl_tree[2*q]+=ie:q!==0?(q!==ae&&c.bl_tree[2*q]++,c.bl_tree[2*b]++):ie<=10?c.bl_tree[2*A]++:c.bl_tree[2*S]++,ae=q,me=(ie=0)===ce?(pe=138,3):q===ce?(pe=6,3):(pe=7,4))}function J(c,T,H){var W,q,ae=-1,ce=T[1],ie=0,pe=7,me=4;for(ce===0&&(pe=138,me=3),W=0;W<=H;W++)if(q=ce,ce=T[2*(W+1)+1],!(++ie<pe&&q===ce)){if(ie<me)for(;$(c,q,c.bl_tree),--ie!=0;);else q!==0?(q!==ae&&($(c,q,c.bl_tree),ie--),$(c,b,c.bl_tree),Y(c,ie-3,2)):ie<=10?($(c,A,c.bl_tree),Y(c,ie-3,3)):($(c,S,c.bl_tree),Y(c,ie-11,7));ae=q,me=(ie=0)===ce?(pe=138,3):q===ce?(pe=6,3):(pe=7,4)}}u(Q);var k=!1;function o(c,T,H,W){Y(c,(d<<1)+(W?1:0),3),function(q,ae,ce,ie){F(q),I(q,ce),I(q,~ce),i.arraySet(q.pending_buf,q.window,ae,ce,q.pending),q.pending+=ce}(c,T,H)}a._tr_init=function(c){k||(function(){var T,H,W,q,ae,ce=new Array(R+1);for(q=W=0;q<y-1;q++)for(P[q]=W,T=0;T<1<<B[q];T++)C[W++]=q;for(C[W-1]=q,q=ae=0;q<16;q++)for(Q[q]=ae,T=0;T<1<<z[q];T++)K[ae++]=q;for(ae>>=7;q<h;q++)for(Q[q]=ae<<7,T=0;T<1<<z[q]-7;T++)K[256+ae++]=q;for(H=0;H<=R;H++)ce[H]=0;for(T=0;T<=143;)ee[2*T+1]=8,T++,ce[8]++;for(;T<=255;)ee[2*T+1]=9,T++,ce[9]++;for(;T<=279;)ee[2*T+1]=7,T++,ce[7]++;for(;T<=287;)ee[2*T+1]=8,T++,ce[8]++;for(N(ee,v+1,ce),T=0;T<h;T++)M[2*T+1]=5,M[2*T]=ue(T,5);X=new te(ee,B,g+1,v,R),V=new te(M,z,0,h,R),re=new te(new Array(0),O,0,_,f)}(),k=!0),c.l_desc=new Z(c.dyn_ltree,X),c.d_desc=new Z(c.dyn_dtree,V),c.bl_desc=new Z(c.bl_tree,re),c.bi_buf=0,c.bi_valid=0,x(c)},a._tr_stored_block=o,a._tr_flush_block=function(c,T,H,W){var q,ae,ce=0;0<c.level?(c.strm.data_type===2&&(c.strm.data_type=function(ie){var pe,me=4093624447;for(pe=0;pe<=31;pe++,me>>>=1)if(1&me&&ie.dyn_ltree[2*pe]!==0)return l;if(ie.dyn_ltree[18]!==0||ie.dyn_ltree[20]!==0||ie.dyn_ltree[26]!==0)return s;for(pe=32;pe<g;pe++)if(ie.dyn_ltree[2*pe]!==0)return s;return l}(c)),L(c,c.l_desc),L(c,c.d_desc),ce=function(ie){var pe;for(w(ie,ie.dyn_ltree,ie.l_desc.max_code),w(ie,ie.dyn_dtree,ie.d_desc.max_code),L(ie,ie.bl_desc),pe=_-1;3<=pe&&ie.bl_tree[2*G[pe]+1]===0;pe--);return ie.opt_len+=3*(pe+1)+5+5+4,pe}(c),q=c.opt_len+3+7>>>3,(ae=c.static_len+3+7>>>3)<=q&&(q=ae)):q=ae=H+5,H+4<=q&&T!==-1?o(c,T,H,W):c.strategy===4||ae===q?(Y(c,2+(W?1:0),3),U(c,ee,M)):(Y(c,4+(W?1:0),3),function(ie,pe,me,ve){var rt;for(Y(ie,pe-257,5),Y(ie,me-1,5),Y(ie,ve-4,4),rt=0;rt<ve;rt++)Y(ie,ie.bl_tree[2*G[rt]+1],3);J(ie,ie.dyn_ltree,pe-1),J(ie,ie.dyn_dtree,me-1)}(c,c.l_desc.max_code+1,c.d_desc.max_code+1,ce+1),U(c,c.dyn_ltree,c.dyn_dtree)),x(c),W&&F(c)},a._tr_tally=function(c,T,H){return c.pending_buf[c.d_buf+2*c.last_lit]=T>>>8&255,c.pending_buf[c.d_buf+2*c.last_lit+1]=255&T,c.pending_buf[c.l_buf+c.last_lit]=255&H,c.last_lit++,T===0?c.dyn_ltree[2*H]++:(c.matches++,T--,c.dyn_ltree[2*(C[H]+g+1)]++,c.dyn_dtree[2*D(T)]++),c.last_lit===c.lit_bufsize-1},a._tr_align=function(c){Y(c,2,3),$(c,p,ee),function(T){T.bi_valid===16?(I(T,T.bi_buf),T.bi_buf=0,T.bi_valid=0):8<=T.bi_valid&&(T.pending_buf[T.pending++]=255&T.bi_buf,T.bi_buf>>=8,T.bi_valid-=8)}(c)}},{"../utils/common":41}],53:[function(r,n,a){n.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(r,n,a){(function(i){(function(l,s){if(!l.setImmediate){var u,d,y,g,v=1,h={},_=!1,E=l.document,R=Object.getPrototypeOf&&Object.getPrototypeOf(l);R=R&&R.setTimeout?R:l,u={}.toString.call(l.process)==="[object process]"?function(b){xe.nextTick(function(){f(b)})}:function(){if(l.postMessage&&!l.importScripts){var b=!0,A=l.onmessage;return l.onmessage=function(){b=!1},l.postMessage("","*"),l.onmessage=A,b}}()?(g="setImmediate$"+Math.random()+"$",l.addEventListener?l.addEventListener("message",p,!1):l.attachEvent("onmessage",p),function(b){l.postMessage(g+b,"*")}):l.MessageChannel?((y=new MessageChannel).port1.onmessage=function(b){f(b.data)},function(b){y.port2.postMessage(b)}):E&&"onreadystatechange"in E.createElement("script")?(d=E.documentElement,function(b){var A=E.createElement("script");A.onreadystatechange=function(){f(b),A.onreadystatechange=null,d.removeChild(A),A=null},d.appendChild(A)}):function(b){setTimeout(f,0,b)},R.setImmediate=function(b){typeof b!="function"&&(b=new Function(""+b));for(var A=new Array(arguments.length-1),S=0;S<A.length;S++)A[S]=arguments[S+1];return h[v]={callback:b,args:A},u(v),v++},R.clearImmediate=m}function m(b){delete h[b]}function f(b){if(_)setTimeout(f,0,b);else{var A=h[b];if(A){_=!0;try{(function(S){var B=S.callback,z=S.args;switch(z.length){case 0:B();break;case 1:B(z[0]);break;case 2:B(z[0],z[1]);break;case 3:B(z[0],z[1],z[2]);break;default:B.apply(s,z)}})(A)}finally{m(b),_=!1}}}}function p(b){b.source===l&&typeof b.data=="string"&&b.data.indexOf(g)===0&&f(+b.data.slice(g.length))}})(typeof self>"u"?i===void 0?this:i:self)}).call(this,typeof yt<"u"?yt:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})}),Wx=he((e,t)=>{var r={"&":"&",'"':""","'":"'","<":"<",">":">"};function n(a){return a&&a.replace?a.replace(/([&"<>'])/g,function(i,l){return r[l]}):a}t.exports=n}),Le=Kc(he((e,t)=>{hn();var r=Wx(),n=Jc().Stream,a=" ";function i(g,v){typeof v!="object"&&(v={indent:v});var h=v.stream?new n:null,_="",E=!1,R=v.indent?v.indent===!0?a:v.indent:"",m=!0;function f(B){m?xe.nextTick(B):B()}function p(B,z){if(z!==void 0&&(_+=z),B&&!E&&(h=h||new n,E=!0),B&&E){var O=_;f(function(){h.emit("data",O)}),_=""}}function b(B,z){d(p,u(B,R,R?1:0),z)}function A(){if(h){var B=_;f(function(){h.emit("data",B),h.emit("end"),h.readable=!1,h.emit("close")})}}function S(B){var z={version:"1.0",encoding:B.encoding||"UTF-8"};B.standalone&&(z.standalone=B.standalone),b({"?xml":{_attr:z}}),_=_.replace("/>","?>")}return f(function(){m=!1}),v.declaration&&S(v.declaration),g&&g.forEach?g.forEach(function(B,z){var O;z+1===g.length&&(O=A),b(B,O)}):b(g,A),h?(h.readable=!0,h):_}function l(){var g={_elem:u(Array.prototype.slice.call(arguments))};return g.push=function(v){if(!this.append)throw new Error("not assigned to a parent!");var h=this,_=this._elem.indent;d(this.append,u(v,_,this._elem.icount+(_?1:0)),function(){h.append(!0)})},g.close=function(v){v!==void 0&&this.push(v),this.end&&this.end()},g}function s(g,v){return new Array(v||0).join(g||"")}function u(g,v,h){h=h||0;var _=s(v,h),E,R=g,m=!1;if(typeof g=="object"&&(E=Object.keys(g)[0],R=g[E],R&&R._elem))return R._elem.name=E,R._elem.icount=h,R._elem.indent=v,R._elem.indents=_,R._elem.interrupt=R,R._elem;var f=[],p=[],b;function A(S){Object.keys(S).forEach(function(B){f.push(y(B,S[B]))})}switch(typeof R){case"object":if(R===null)break;R._attr&&A(R._attr),R._cdata&&p.push(("<![CDATA["+R._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),R.forEach&&(b=!1,p.push(""),R.forEach(function(S){typeof S=="object"?Object.keys(S)[0]=="_attr"?A(S._attr):p.push(u(S,v,h+1)):(p.pop(),b=!0,p.push(r(S)))}),b||p.push(""));break;default:p.push(r(R))}return{name:E,interrupt:m,attributes:f,content:p,icount:h,indents:_,indent:v}}function d(g,v,h){if(typeof v!="object")return g(!1,v);var _=v.interrupt?1:v.content.length;function E(){for(;v.content.length;){var m=v.content.shift();if(m!==void 0){if(R(m))return;d(g,m)}}g(!1,(_>1?v.indents:"")+(v.name?"</"+v.name+">":"")+(v.indent&&!h?`
|
||
`:"")),h&&h()}function R(m){return m.interrupt?(m.interrupt.append=g,m.interrupt.end=E,m.interrupt=!1,g(!0),!0):!1}if(g(!1,v.indents+(v.name?"<"+v.name:"")+(v.attributes.length?" "+v.attributes.join(" "):"")+(_?v.name?">":"":v.name?"/>":"")+(v.indent&&_>1?`
|
||
`:"")),!_)return g(!1,v.indent?`
|
||
`:"");R(v)||E()}function y(g,v){return g+'="'+r(v)+'"'}t.exports=i,t.exports.element=t.exports.Element=l})()),Qx=Kc(Zx()),Jx=Jc(),ei=0,Io=32,$x=32,eS=(e,t)=>{const r=t.replace(/-/g,"");if(r.length!==$x)throw new Error(`Error: Cannot extract GUID from font filename: ${t}`);const n=r.replace(/(..)/g,"$1 ").trim().split(" ").map(l=>parseInt(l,16));n.reverse();const a=e.slice(ei,Io).map((l,s)=>l^n[s%n.length]),i=new Uint8Array(ei+a.length+Math.max(0,e.length-Io));return i.set(e.slice(0,ei)),i.set(a,ei),i.set(e.slice(Io),ei+a.length),i},tS=class{format(e,t={stack:[]}){const r=e.prepForXml(t);if(r)return r;throw Error("XMLComponent did not format correctly")}},rS=class{replace(e,t,r){let n=e;return t.forEach((a,i)=>{n=n.replace(new RegExp(`{${a.fileName}}`,"g"),(r+i).toString())}),n}getMediaData(e,t){return t.Array.filter(r=>e.search(`{${r.fileName}}`)>0)}},nS=class{replace(e,t){let r=e;for(const n of t)r=r.replace(new RegExp(`{${n.reference}-${n.instance}}`,"g"),n.numId.toString());return r}},aS=class{constructor(){se(this,"formatter",void 0),se(this,"imageReplacer",void 0),se(this,"numberingReplacer",void 0),this.formatter=new tS,this.imageReplacer=new rS,this.numberingReplacer=new nS}compile(e,t,r=[]){const n=new Qx.default,a=this.xmlifyFile(e,t),i=new Map(Object.entries(a));for(const[,l]of i)if(Array.isArray(l))for(const s of l)n.file(s.path,Bo(s.data));else n.file(l.path,Bo(l.data));for(const l of r)n.file(l.path,Bo(l.data));for(const l of e.Media.Array)l.type!=="svg"?n.file(`word/media/${l.fileName}`,l.data):(n.file(`word/media/${l.fileName}`,l.data),n.file(`word/media/${l.fallback.fileName}`,l.fallback.data));for(const[l,{data:s,fontKey:u}]of e.FontTable.fontOptionsWithKey.entries())n.file(`word/fonts/font${l+1}.odttf`,eS(s,u));return n}xmlifyFile(e,t){const r=e.Document.Relationships.RelationshipCount+1,n=(0,Le.default)(this.formatter.format(e.Document.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),a=e.Comments.Relationships.RelationshipCount+1,i=(0,Le.default)(this.formatter.format(e.Comments,{viewWrapper:{View:e.Comments,Relationships:e.Comments.Relationships},file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),l=e.FootNotes.Relationships.RelationshipCount+1,s=(0,Le.default)(this.formatter.format(e.FootNotes.View,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),u=this.imageReplacer.getMediaData(n,e.Media),d=this.imageReplacer.getMediaData(i,e.Media),y=this.imageReplacer.getMediaData(s,e.Media);return ye(ye({Relationships:{data:(u.forEach((g,v)=>{e.Document.Relationships.addRelationship(r+v,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${g.fileName}`)}),e.Document.Relationships.addRelationship(e.Document.Relationships.RelationshipCount+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable","fontTable.xml"),(0,Le.default)(this.formatter.format(e.Document.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}})),path:"word/_rels/document.xml.rels"},Document:{data:(()=>{const g=this.imageReplacer.replace(n,u,r);return this.numberingReplacer.replace(g,e.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{const g=(0,Le.default)(this.formatter.format(e.Styles,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(g,e.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:(0,Le.default)(this.formatter.format(e.CoreProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:(0,Le.default)(this.formatter.format(e.Numbering,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},FileRelationships:{data:(0,Le.default)(this.formatter.format(e.FileRelationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:e.Headers.map((g,v)=>{const h=(0,Le.default)(this.formatter.format(g.View,{viewWrapper:g,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(h,e.Media).forEach((_,E)=>{g.Relationships.addRelationship(E,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${_.fileName}`)}),{data:(0,Le.default)(this.formatter.format(g.Relationships,{viewWrapper:g,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${v+1}.xml.rels`}}),FooterRelationships:e.Footers.map((g,v)=>{const h=(0,Le.default)(this.formatter.format(g.View,{viewWrapper:g,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(h,e.Media).forEach((_,E)=>{g.Relationships.addRelationship(E,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${_.fileName}`)}),{data:(0,Le.default)(this.formatter.format(g.Relationships,{viewWrapper:g,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${v+1}.xml.rels`}}),Headers:e.Headers.map((g,v)=>{const h=(0,Le.default)(this.formatter.format(g.View,{viewWrapper:g,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),_=this.imageReplacer.getMediaData(h,e.Media),E=this.imageReplacer.replace(h,_,0);return{data:this.numberingReplacer.replace(E,e.Numbering.ConcreteNumbering),path:`word/header${v+1}.xml`}}),Footers:e.Footers.map((g,v)=>{const h=(0,Le.default)(this.formatter.format(g.View,{viewWrapper:g,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),_=this.imageReplacer.getMediaData(h,e.Media),E=this.imageReplacer.replace(h,_,0);return{data:this.numberingReplacer.replace(E,e.Numbering.ConcreteNumbering),path:`word/footer${v+1}.xml`}}),ContentTypes:{data:(0,Le.default)(this.formatter.format(e.ContentTypes,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:(0,Le.default)(this.formatter.format(e.CustomProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:(0,Le.default)(this.formatter.format(e.AppProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:(()=>{const g=this.imageReplacer.replace(s,y,l);return this.numberingReplacer.replace(g,e.Numbering.ConcreteNumbering)})(),path:"word/footnotes.xml"},FootNotesRelationships:{data:(y.forEach((g,v)=>{e.FootNotes.Relationships.addRelationship(l+v,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${g.fileName}`)}),(0,Le.default)(this.formatter.format(e.FootNotes.Relationships,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}})),path:"word/_rels/footnotes.xml.rels"},Endnotes:{data:(0,Le.default)(this.formatter.format(e.Endnotes.View,{viewWrapper:e.Endnotes,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/endnotes.xml"},EndnotesRelationships:{data:(0,Le.default)(this.formatter.format(e.Endnotes.Relationships,{viewWrapper:e.Endnotes,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/_rels/endnotes.xml.rels"},Settings:{data:(0,Le.default)(this.formatter.format(e.Settings,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"},Comments:{data:(()=>{const g=this.imageReplacer.replace(i,d,a);return this.numberingReplacer.replace(g,e.Numbering.ConcreteNumbering)})(),path:"word/comments.xml"},CommentsRelationships:{data:(d.forEach((g,v)=>{e.Comments.Relationships.addRelationship(a+v,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${g.fileName}`)}),(0,Le.default)(this.formatter.format(e.Comments.Relationships,{viewWrapper:{View:e.Comments,Relationships:e.Comments.Relationships},file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}})),path:"word/_rels/comments.xml.rels"}},e.CommentsExtended?{CommentsExtended:{data:(0,Le.default)(this.formatter.format(e.CommentsExtended,{viewWrapper:{View:e.CommentsExtended,Relationships:e.Comments.Relationships},file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/commentsExtended.xml"}}:{}),{},{FontTable:{data:(0,Le.default)(this.formatter.format(e.FontTable.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/fontTable.xml"},FontTableRelationships:{data:(0,Le.default)(this.formatter.format(e.FontTable.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/_rels/fontTable.xml.rels"}})}};function rd(e,t,r,n,a,i,l){try{var s=e[i](l),u=s.value}catch(d){r(d);return}s.done?t(u):Promise.resolve(u).then(n,a)}function iS(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var i=e.apply(t,r);function l(u){rd(i,n,a,l,s,"next",u)}function s(u){rd(i,n,a,l,s,"throw",u)}l(void 0)})}}var lS={WITH_2_BLANKS:" "},nd=e=>e===!0?lS.WITH_2_BLANKS:e===!1?void 0:e,ly=class Zn{static pack(t,r,n){var a=this;return iS(function*(i,l,s,u=[]){return a.compiler.compile(i,nd(s),u).generateAsync({type:l,mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})}).apply(this,arguments)}static toString(t,r,n=[]){return Zn.pack(t,"string",r,n)}static toBuffer(t,r,n=[]){return Zn.pack(t,"nodebuffer",r,n)}static toBase64String(t,r,n=[]){return Zn.pack(t,"base64",r,n)}static toBlob(t,r,n=[]){return Zn.pack(t,"blob",r,n)}static toArrayBuffer(t,r,n=[]){return Zn.pack(t,"arraybuffer",r,n)}static toStream(t,r,n=[]){const a=new Jx.Stream;return this.compiler.compile(t,nd(r),n).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"}).then(i=>{a.emit("data",i),a.emit("end")}),a}};se(ly,"compiler",new aS);const qo=[{name:"Matthew",abbrev:"MAT"},{name:"Mark",abbrev:"MRK"},{name:"Luke",abbrev:"LUK"},{name:"John",abbrev:"JHN"},{name:"Acts",abbrev:"ACT"},{name:"Romans",abbrev:"ROM"},{name:"1 Corinthians",abbrev:"1CO"},{name:"2 Corinthians",abbrev:"2CO"},{name:"Galatians",abbrev:"GAL"},{name:"Ephesians",abbrev:"EPH"},{name:"Philippians",abbrev:"PHP"},{name:"Colossians",abbrev:"COL"},{name:"1 Thessalonians",abbrev:"1TH"},{name:"2 Thessalonians",abbrev:"2TH"},{name:"1 Timothy",abbrev:"1TI"},{name:"2 Timothy",abbrev:"2TI"},{name:"Titus",abbrev:"TIT"},{name:"Philemon",abbrev:"PHM"},{name:"Hebrews",abbrev:"HEB"},{name:"James",abbrev:"JAS"},{name:"1 Peter",abbrev:"1PE"},{name:"2 Peter",abbrev:"2PE"},{name:"1 John",abbrev:"1JN"},{name:"2 John",abbrev:"2JN"},{name:"3 John",abbrev:"3JN"},{name:"Jude",abbrev:"JUD"},{name:"Revelation",abbrev:"REV"}],ad=(e,t,r)=>`bible-study-${e}-${t}-${r}`,id=()=>{var e;return((e=crypto.randomUUID)==null?void 0:e.call(crypto))??`${Date.now()}-${Math.random()}`};function sS(e){const t=`
|
||
body { font-family: Georgia, serif; color: #0f172a; margin: 0; padding: 32px; }
|
||
.page { max-width: 900px; margin: auto; }
|
||
h1, h2 { font-family: Georgia, serif; }
|
||
h1 { margin-bottom: 0.5rem; }
|
||
.chunk { margin-bottom: 2rem; padding: 1.25rem 1.5rem; border: 1px solid #cbd5e1; border-radius: 0.75rem; background: #ffffff; }
|
||
.verse { margin: 0 0 0.75rem; line-height: 1.7; }
|
||
.scripture-ref { font-weight: 700; margin-bottom: 0.75rem; }
|
||
.notes, .greek { margin-top: 1rem; }
|
||
.greek table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
|
||
.greek th, .greek td { border: 1px solid #d1d5db; padding: 0.65rem; text-align: left; }
|
||
.greek th { background: #f8fafc; }
|
||
.definition { margin-top: 0.75rem; font-size: 0.95rem; line-height: 1.6; }
|
||
.definition-block { margin-top: 1rem; padding: 1rem; border: 1px solid #e2e8f0; border-radius: 0.75rem; background: #f8fafc; }
|
||
`,r=e.chunks.map(n=>{const a=n.startVerse===n.endVerse?`${e.book} ${e.chapter}:${n.startVerse}`:`${e.book} ${e.chapter}:${n.startVerse}-${n.endVerse}`,i=e.verses.filter(y=>y.number>=n.startVerse&&y.number<=n.endVerse).map(y=>`<p class="verse"><strong>${y.number}</strong> ${y.text}</p>`).join(""),l=n.notes.trim().replace(/\n/g,"<br />")||"<em>No notes.</em>",s=n.greekWords.map(y=>`
|
||
<tr>
|
||
<td><strong>${y.strongNumber}</strong></td>
|
||
<td>${y.lexeme||""}</td>
|
||
<td>${y.transliteration||""}</td>
|
||
<td>${y.partOfSpeech||""}</td>
|
||
<td>${y.shortDefinition||""}</td>
|
||
</tr>
|
||
`).join(""),u=oS(s),d=n.greekWords.filter(y=>y.definitionHtml).map(y=>`
|
||
<div class="definition-block">
|
||
<p><strong>${y.strongNumber} — ${y.lexeme||""}</strong></p>
|
||
<div class="definition">${y.definitionHtml}</div>
|
||
</div>
|
||
`).join("");return`
|
||
<section class="chunk">
|
||
<div class="scripture-ref">${a}</div>
|
||
${i}
|
||
<div class="notes"><strong>STUDY NOTES:</strong><p>${l}</p></div>
|
||
<div class="greek"><strong>GREEK WORDS:</strong>
|
||
${s?u:"<p><em>No Greek word notes.</em></p>"}
|
||
${d}
|
||
</div>
|
||
</section>
|
||
`}).join("");return`<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="UTF-8" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||
<title>${e.title}</title>
|
||
<style>${t}</style>
|
||
</head>
|
||
<body>
|
||
<div class="page">
|
||
<h1>${e.title}</h1>
|
||
<h2>${e.translation} — ${e.book} ${e.chapter}</h2>
|
||
${r}
|
||
</div>
|
||
</body>
|
||
</html>`}function oS(e){return`
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>Strong's</th>
|
||
<th>Greek</th>
|
||
<th>Transliteration</th>
|
||
<th>Part of Speech</th>
|
||
<th>Short Definition</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
${e}
|
||
</tbody>
|
||
</table>
|
||
`}function uS(e){const t=/Part\(s\) of speech:\s*([^<]+)/i.exec(e||"");return t&&t[1]?t[1].trim():""}function cS(e=""){const r=new DOMParser().parseFromString(e,"text/html"),n=[];return r.body.childNodes.forEach(a=>{if(a.nodeType===Node.TEXT_NODE){n.push(a.textContent||"");return}if(a.nodeName==="BR"||a.nodeName==="P"){n.push(a.textContent||""),n.push(`
|
||
`);return}n.push(a.textContent||"")}),n.join("").replace(/\n{2,}/g,`
|
||
`).trim()}function ld(e){return e.split(/\n+/).map(t=>t.trim()).filter(Boolean).map(t=>new qe({children:[new ji({text:t})]}))}function Gu(e){return typeof e=="string"?e:Array.isArray(e)?e.map(Gu).join(""):e&&typeof e=="object"?e.lineBreak||e.type==="line_break"?`
|
||
`:Array.isArray(e.content)?Gu(e.content):"":""}function fS(e){var r;if(e!=null&&e.verses&&Array.isArray(e.verses))return e.verses.map(n=>({number:n.number,text:n.text}));const t=(r=e==null?void 0:e.chapter)==null?void 0:r.content;return Array.isArray(t)?t.filter(n=>(n==null?void 0:n.type)==="verse").map(n=>({number:n.number,text:Gu(n.content).replace(/\s+/g," ").trim()})):[]}const hS=()=>{const[e,t]=lt.useState(["BSB"]),[r,n]=lt.useState({translation:"BSB",book:"Titus",bookAbbrev:"TIT",chapter:"1",title:"Titus 1 Study"}),[a,i]=lt.useState(!1),[l,s]=lt.useState(null),[u,d]=lt.useState(""),[y,g]=lt.useState(null),[v,h]=lt.useState(null),[_,E]=lt.useState(!1),[R,m]=lt.useState(""),[f,p]=lt.useState(""),b=lt.useRef(null);lt.useEffect(()=>{fetch("https://bible.helloao.org/api/available_translations.json").then(D=>D.json()).then(D=>{Array.isArray(D)&&D.length>0&&t(D)}).catch(()=>{})},[]),lt.useEffect(()=>{a||n(D=>({...D,title:`${D.book} ${D.chapter} Study`}))},[r.book,r.chapter,a]),lt.useEffect(()=>{if(l)return b.current&&window.clearTimeout(b.current),b.current=window.setTimeout(()=>{const D=ad(l.translation,l.bookAbbrev,l.chapter);window.localStorage.setItem(D,JSON.stringify(l)),d("Saved"),window.setTimeout(()=>d(""),1400)},1e3),()=>{b.current&&window.clearTimeout(b.current)}},[l]);const A=(D,I)=>{if(D==="book"){const Y=qo.find($=>$.abbrev===I)??qo[0];n($=>({...$,book:Y.name,bookAbbrev:Y.abbrev}))}else n(Y=>({...Y,[D]:I}))},S=D=>({translation:r.translation,book:r.book,bookAbbrev:r.bookAbbrev,chapter:r.chapter,title:r.title,verses:D,chunks:[],selectedChunkId:null}),B=async()=>{if(!r.bookAbbrev||!r.chapter){m("Please choose a book and chapter.");return}m(""),E(!0);try{const D=await fetch(`https://bible.helloao.org/api/${r.translation}/${r.bookAbbrev}/${r.chapter}.json`);if(!D.ok)throw new Error("Unable to load chapter.");const I=await D.json(),Y=fS(I);if(!I||!Array.isArray(Y)||Y.length===0)throw new Error("Invalid Bible data returned.");const $=ad(r.translation,r.bookAbbrev,r.chapter),ue=window.localStorage.getItem($);if(ue){const N=JSON.parse(ue);if(N&&N.bookAbbrev===r.bookAbbrev&&N.chapter===r.chapter&&window.confirm("A saved study exists for this chapter. Resume saved project?")){s(N),E(!1);return}}s(S(Y))}catch(D){m(D.message||"Failed to load chapter.")}finally{E(!1)}},z=D=>{s(I=>I&&D(I))},O=(D,I)=>{if(!l)return;if(l.chunks.find(ue=>ue.startVerse===D&&ue.endVerse===I)){p("That chunk already exists."),window.setTimeout(()=>p(""),1800);return}const $={id:id(),startVerse:D,endVerse:I,notes:"",greekWords:[]};z(ue=>({...ue,chunks:[...ue.chunks,$],selectedChunkId:$.id}))},G=(D,I)=>{if(I.shiftKey&&y!==null){const Y=Math.min(y,D),$=Math.max(y,D);O(Y,$),g(null),h(null);return}g(D),h(D)},ee=(l==null?void 0:l.chunks.find(D=>D.id===l.selectedChunkId))??null,M=(D,I)=>{z(Y=>({...Y,chunks:Y.chunks.map($=>$.id===D?{...$,...I}:$)}))},K=(D,I,Y)=>{z($=>({...$,chunks:$.chunks.map(ue=>ue.id!==D?ue:{...ue,greekWords:ue.greekWords.map(N=>N.id===I?{...N,...Y}:N)})}))},C=D=>{const I={id:id(),query:"",strongNumber:"",lexeme:"",transliteration:"",partOfSpeech:"",shortDefinition:"",definitionHtml:"",loading:!1};z(Y=>({...Y,chunks:Y.chunks.map($=>$.id===D?{...$,greekWords:[...$.greekWords,I]}:$)}))},P=(D,I)=>{z(Y=>({...Y,chunks:Y.chunks.map($=>$.id===D?{...$,greekWords:$.greekWords.filter(ue=>ue.id!==I)}:$)}))},X=async(D,I)=>{const Y=l==null?void 0:l.chunks.find(ue=>ue.id===D),$=Y==null?void 0:Y.greekWords.find(ue=>ue.id===I);if(!(!$||!$.query.trim())){K(D,I,{loading:!0});try{const ue=encodeURIComponent($.query.trim()),N=await fetch(`https://bolls.life/dictionary-definition/BDBT/${ue}/`);if(!N.ok)throw new Error("Lookup failed.");const x=await N.json();if(!Array.isArray(x)||x.length===0){K(D,I,{strongNumber:"",shortDefinition:"No definition found.",definitionHtml:""});return}const F=x[0],j=uS(F.definition||"");K(D,I,{strongNumber:F.topic||$.query,lexeme:F.lexeme||"",transliteration:F.transliteration||"",partOfSpeech:j||$.partOfSpeech||"",shortDefinition:F.short_definition||"",definitionHtml:F.definition||""})}catch{K(D,I,{shortDefinition:"Lookup failed."})}finally{K(D,I,{loading:!1})}}},V=(D,I)=>{z(Y=>{const $=Y.chunks.findIndex(F=>F.id===D);if($<0)return Y;const ue=$+I;if(ue<0||ue>=Y.chunks.length)return Y;const N=[...Y.chunks],[x]=N.splice($,1);return N.splice(ue,0,x),{...Y,chunks:N}})},re=D=>{z(I=>{var ue;const Y=I.chunks.filter(N=>N.id!==D),$=I.selectedChunkId===D?((ue=Y[0])==null?void 0:ue.id)??null:I.selectedChunkId;return{...I,chunks:Y,selectedChunkId:$}})},Q=()=>{if(!l)return;const D=sS(l),I=new Blob([D],{type:"text/html;charset=utf-8"}),Y=URL.createObjectURL(I),$=document.createElement("a");$.href=Y,$.download=`${l.book}-${l.chapter}-study.html`,document.body.appendChild($),$.click(),document.body.removeChild($),URL.revokeObjectURL(Y)},te=async()=>{if(!l)return;const D=[new qe({text:l.title,heading:Vh.TITLE}),new qe({text:`${l.translation} — ${l.book} ${l.chapter}`,spacing:{after:300}})];l.chunks.forEach(N=>{const x=N.startVerse===N.endVerse?`${l.book} ${l.chapter}:${N.startVerse}`:`${l.book} ${l.chapter}:${N.startVerse}-${N.endVerse}`;if(D.push(new qe({text:x,heading:Vh.HEADING_2})),l.verses.filter(F=>F.number>=N.startVerse&&F.number<=N.endVerse).forEach(F=>{D.push(new qe({children:[new ji({text:`${F.number}. `,bold:!0}),new ji({text:F.text})]}))}),D.push(new qe({text:"STUDY NOTES:",spacing:{before:240,after:120},bold:!0})),D.push(...ld(N.notes||"No notes.")),D.push(new qe({text:"GREEK WORDS:",spacing:{before:240,after:120},bold:!0})),N.greekWords.length>0){const F=[new Xh({tableHeader:!0,children:["Strong","Greek","Transliteration","Part of Speech","Short Definition"].map(j=>new jr({width:{size:20,type:Hi.PERCENTAGE},children:[new qe({text:j,bold:!0})]}))}),...N.greekWords.map(j=>new Xh({children:[new jr({children:[new qe(j.strongNumber||"")]}),new jr({children:[new qe(j.lexeme||"")]}),new jr({children:[new qe(j.transliteration||"")]}),new jr({children:[new qe(j.partOfSpeech||"")]}),new jr({children:[new qe(j.shortDefinition||"")]})]}))];D.push(new o_({rows:F,width:{size:100,type:Hi.PERCENTAGE}})),N.greekWords.forEach(j=>{j.definitionHtml&&(D.push(new qe({text:`${j.strongNumber} — ${j.lexeme||""}`,spacing:{before:180,after:120},bold:!0})),D.push(...ld(cS(j.definitionHtml))))})}else D.push(new qe("No Greek word notes."));D.push(new qe({text:"",spacing:{after:300}}))});const I=new Px({sections:[{children:D}]}),Y=await ly.toBlob(I),$=URL.createObjectURL(Y),ue=document.createElement("a");ue.href=$,ue.download=`${l.book}-${l.chapter}-study.docx`,document.body.appendChild(ue),ue.click(),document.body.removeChild(ue),URL.revokeObjectURL($)},Z=(D,I)=>D===I?`${D}`:`${D}-${I}`;return le.jsxs("div",{className:"min-h-screen bg-slate-50 text-slate-900",children:[le.jsx("header",{className:"border-b border-slate-200 bg-slate-900 text-white shadow-sm",children:le.jsxs("div",{className:"mx-auto flex max-w-7xl items-center justify-between px-4 py-5 sm:px-6 lg:px-8",children:[le.jsxs("div",{children:[le.jsx("p",{className:"text-sm uppercase tracking-[0.24em] text-slate-300",children:"Bible Study Project"}),le.jsx("h1",{className:"mt-2 text-2xl font-semibold",children:l?l.title:"Create a new chapter study"})]}),le.jsxs("div",{className:"flex items-center gap-3",children:[l&&le.jsx("button",{type:"button",onClick:()=>{s(null),g(null),h(null),m(""),p("")},className:"rounded-md border border-white/15 bg-white/10 px-4 py-2 text-sm text-white transition hover:bg-white/15",children:"New Project"}),l&&le.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[le.jsx("button",{type:"button",onClick:Q,className:"rounded-md bg-sky-500 px-4 py-2 text-sm font-medium text-white shadow-sm transition hover:bg-sky-400",children:"Export HTML"}),le.jsx("button",{type:"button",onClick:te,className:"rounded-md bg-emerald-500 px-4 py-2 text-sm font-medium text-white shadow-sm transition hover:bg-emerald-400",children:"Export DOCX"})]}),le.jsx("div",{className:"text-right text-sm text-slate-300",children:_?le.jsx("span",{children:"Loading…"}):u?le.jsx("span",{className:"text-emerald-300",children:u}):le.jsx("span",{children:" "})})]})]})}),le.jsx("main",{className:"mx-auto max-w-7xl px-4 py-8 sm:px-6 lg:px-8",children:l?le.jsx("section",{className:"space-y-8",children:le.jsxs("div",{className:"grid gap-8 xl:grid-cols-[1.8fr_1fr]",children:[le.jsxs("div",{className:"rounded-3xl border border-slate-200 bg-white p-6 shadow-panel",children:[le.jsxs("div",{className:"flex items-start justify-between gap-4",children:[le.jsxs("div",{children:[le.jsx("p",{className:"text-sm font-medium text-slate-500",children:"Scripture & Chunks"}),le.jsxs("h2",{className:"mt-2 text-xl font-semibold text-slate-900",children:[l.book," ",l.chapter," (",l.translation,")"]})]}),le.jsx("div",{className:"rounded-2xl bg-slate-100 px-3 py-2 text-sm text-slate-700",children:f||"Shift-click a second verse to create a chunk."})]}),le.jsxs("div",{className:"mt-6 grid gap-6 lg:grid-cols-[1.25fr_0.75fr]",children:[le.jsxs("div",{className:"rounded-3xl border border-slate-200 bg-slate-50 p-4 shadow-sm",children:[le.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[le.jsx("span",{className:"text-sm font-medium text-slate-600",children:"Chapter verses"}),le.jsx("span",{className:"text-xs text-slate-500",children:"Click a verse, then shift-click an end verse."})]}),le.jsx("div",{className:"max-h-[520px] overflow-y-auto rounded-3xl border border-slate-200 bg-white p-4 scrollbar-thin",children:l.verses.map(D=>{const I=y!==null&&D.number>=Math.min(y,v)&&D.number<=Math.max(y,v),Y=l.chunks.some($=>D.number>=$.startVerse&&D.number<=$.endVerse);return le.jsxs("button",{type:"button",onClick:$=>G(D.number,$),className:`group mb-2 w-full rounded-3xl px-4 py-3 text-left transition ${I?"bg-sky-100 ring-1 ring-sky-200":Y?"bg-slate-100":"bg-white hover:bg-slate-50"}`,children:[le.jsx("span",{className:"inline-flex h-8 w-8 items-center justify-center rounded-full bg-slate-200 text-sm font-semibold text-slate-700 transition group-hover:bg-slate-300",children:D.number}),le.jsx("span",{className:"ml-3 text-sm leading-relaxed text-slate-700",children:D.text})]},D.number)})})]}),le.jsxs("div",{className:"space-y-4 rounded-3xl border border-slate-200 bg-slate-50 p-4 shadow-sm",children:[le.jsxs("div",{className:"flex items-center justify-between gap-3",children:[le.jsx("h3",{className:"text-sm font-semibold text-slate-900",children:"Chunks"}),le.jsxs("span",{className:"text-xs text-slate-500",children:[l.chunks.length," created"]})]}),le.jsx("div",{className:"space-y-3 max-h-[520px] overflow-y-auto scrollbar-thin",children:l.chunks.length===0?le.jsx("div",{className:"rounded-3xl border border-dashed border-slate-300 bg-white p-4 text-sm text-slate-500",children:"No chunks yet. Select verse ranges to add sections."}):l.chunks.map((D,I)=>le.jsxs("div",{className:`rounded-3xl border p-4 ${l.selectedChunkId===D.id?"border-sky-300 bg-sky-50":"border-slate-200 bg-white"} shadow-sm`,children:[le.jsxs("button",{type:"button",onClick:()=>z(Y=>({...Y,selectedChunkId:D.id})),className:"mb-3 w-full text-left",children:[le.jsxs("p",{className:"text-sm font-semibold text-slate-900",children:[l.book," ",l.chapter,":",Z(D.startVerse,D.endVerse)]}),le.jsx("p",{className:"mt-1 text-sm text-slate-600",children:D.notes.slice(0,60)||"No notes yet."})]}),le.jsxs("div",{className:"flex items-center gap-2 text-sm text-slate-500",children:[le.jsx("button",{type:"button",onClick:()=>V(D.id,-1),disabled:I===0,className:"rounded-full border border-slate-300 bg-white px-2 py-1 transition hover:border-slate-400 disabled:cursor-not-allowed disabled:opacity-40",children:"↑"}),le.jsx("button",{type:"button",onClick:()=>V(D.id,1),disabled:I===l.chunks.length-1,className:"rounded-full border border-slate-300 bg-white px-2 py-1 transition hover:border-slate-400 disabled:cursor-not-allowed disabled:opacity-40",children:"↓"}),le.jsx("button",{type:"button",onClick:()=>re(D.id),className:"rounded-full border border-rose-300 bg-rose-50 px-2 py-1 text-rose-600 transition hover:bg-rose-100",children:"× Delete"})]})]},D.id))})]})]})]}),le.jsxs("div",{className:"rounded-3xl border border-slate-200 bg-white p-6 shadow-panel",children:[le.jsx("div",{className:"flex items-start justify-between",children:le.jsxs("div",{children:[le.jsx("p",{className:"text-sm font-medium text-slate-500",children:"Chunk editor"}),le.jsx("h2",{className:"mt-2 text-xl font-semibold text-slate-900",children:ee?`Section ${Z(ee.startVerse,ee.endVerse)}`:"Select a chunk"})]})}),ee?le.jsxs("div",{className:"mt-6 space-y-6",children:[le.jsxs("div",{className:"rounded-3xl border border-slate-200 bg-slate-50 p-5",children:[le.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[le.jsxs("div",{children:[le.jsx("p",{className:"text-sm font-semibold text-slate-700",children:"Scripture"}),le.jsx("p",{className:"text-xs text-slate-500",children:"Read-only passage for the selected chunk."})]}),le.jsxs("span",{className:"rounded-full bg-slate-100 px-3 py-1 text-xs uppercase tracking-[0.18em] text-slate-500",children:[l.book," ",l.chapter,":",Z(ee.startVerse,ee.endVerse)]})]}),le.jsx("div",{className:"space-y-3 font-serif text-slate-800",children:l.verses.filter(D=>D.number>=ee.startVerse&&D.number<=ee.endVerse).map(D=>le.jsxs("p",{className:"leading-relaxed",children:[le.jsxs("span",{className:"font-semibold text-slate-700",children:[D.number,"."]})," ",D.text]},D.number))})]}),le.jsxs("div",{className:"rounded-3xl border border-slate-200 bg-slate-50 p-5",children:[le.jsx("div",{className:"mb-3 flex items-center justify-between gap-4",children:le.jsxs("div",{children:[le.jsx("h3",{className:"text-sm font-semibold text-slate-900",children:"Study Notes"}),le.jsx("p",{className:"text-sm text-slate-500",children:"Write your observations, cross-references, and teaching notes here."})]})}),le.jsx("textarea",{value:ee.notes,onChange:D=>M(ee.id,{notes:D.target.value}),rows:10,placeholder:"Write your observations, cross-references, and teaching notes here...",className:"w-full resize-y rounded-3xl border border-slate-300 bg-white px-4 py-4 text-sm leading-6 text-slate-900 shadow-sm focus:border-sky-500 focus:outline-none focus:ring-2 focus:ring-sky-200"})]}),le.jsxs("div",{className:"rounded-3xl border border-slate-200 bg-slate-50 p-5",children:[le.jsxs("div",{className:"mb-5 flex items-center justify-between gap-4",children:[le.jsxs("div",{children:[le.jsx("h3",{className:"text-sm font-semibold text-slate-900",children:"Greek Word Studies"}),le.jsx("p",{className:"text-sm text-slate-500",children:"Add lexical notes, look up Strong's entries, and keep definitions with each chunk."})]}),le.jsx("button",{type:"button",onClick:()=>C(ee.id),className:"rounded-full bg-slate-900 px-4 py-2 text-sm font-semibold text-white transition hover:bg-slate-800",children:"Add Greek Word"})]}),le.jsx("div",{className:"space-y-4",children:ee.greekWords.length===0?le.jsx("div",{className:"rounded-3xl border border-dashed border-slate-300 bg-white p-5 text-sm text-slate-500",children:"No Greek words yet. Add one to begin a lookup."}):ee.greekWords.map(D=>le.jsxs("div",{className:"rounded-3xl border border-slate-200 bg-white p-4 shadow-sm",children:[le.jsxs("div",{className:"grid gap-4 sm:grid-cols-[1.4fr_1fr]",children:[le.jsxs("label",{className:"text-sm text-slate-600",children:["Strong's number or English gloss",le.jsx("input",{type:"text",value:D.query,onChange:I=>K(ee.id,D.id,{query:I.target.value}),onKeyDown:I=>{I.key==="Enter"&&(I.preventDefault(),X(ee.id,D.id))},placeholder:"G4102 or faith",className:"mt-2 block w-full rounded-2xl border border-slate-300 bg-slate-50 px-3 py-2 text-slate-900 shadow-sm focus:border-sky-500 focus:outline-none focus:ring-2 focus:ring-sky-200"})]}),le.jsxs("div",{className:"flex items-end justify-between gap-3",children:[le.jsx("button",{type:"button",onClick:()=>X(ee.id,D.id),className:"inline-flex items-center justify-center rounded-2xl bg-slate-900 px-4 py-2 text-sm font-semibold text-white transition hover:bg-slate-800",children:D.loading?"Looking up…":"Look Up"}),le.jsx("button",{type:"button",onClick:()=>P(ee.id,D.id),className:"rounded-2xl border border-rose-200 bg-rose-50 px-4 py-2 text-sm font-semibold text-rose-700 transition hover:bg-rose-100",children:"Delete"})]})]}),le.jsxs("div",{className:"mt-4 grid gap-4 sm:grid-cols-3",children:[le.jsxs("label",{className:"text-sm text-slate-600",children:["Greek word",le.jsx("input",{type:"text",value:D.lexeme,onChange:I=>K(ee.id,D.id,{lexeme:I.target.value}),className:"mt-2 block w-full rounded-2xl border border-slate-300 bg-slate-50 px-3 py-2 text-slate-900 shadow-sm focus:border-sky-500 focus:outline-none focus:ring-2 focus:ring-sky-200"})]}),le.jsxs("label",{className:"text-sm text-slate-600",children:["Transliteration",le.jsx("input",{type:"text",value:D.transliteration,onChange:I=>K(ee.id,D.id,{transliteration:I.target.value}),className:"mt-2 block w-full rounded-2xl border border-slate-300 bg-slate-50 px-3 py-2 text-slate-900 shadow-sm focus:border-sky-500 focus:outline-none focus:ring-2 focus:ring-sky-200"})]}),le.jsxs("label",{className:"text-sm text-slate-600",children:["Part of speech",le.jsx("input",{type:"text",value:D.partOfSpeech,onChange:I=>K(ee.id,D.id,{partOfSpeech:I.target.value}),placeholder:"e.g. Noun",className:"mt-2 block w-full rounded-2xl border border-slate-300 bg-slate-50 px-3 py-2 text-slate-900 shadow-sm focus:border-sky-500 focus:outline-none focus:ring-2 focus:ring-sky-200"})]})]}),le.jsx("div",{className:"mt-4 grid gap-4 sm:grid-cols-2",children:le.jsxs("label",{className:"text-sm text-slate-600",children:["Short definition",le.jsx("input",{type:"text",value:D.shortDefinition,onChange:I=>K(ee.id,D.id,{shortDefinition:I.target.value}),className:"mt-2 block w-full rounded-2xl border border-slate-300 bg-slate-50 px-3 py-2 text-slate-900 shadow-sm focus:border-sky-500 focus:outline-none focus:ring-2 focus:ring-sky-200"})]})}),D.definitionHtml?le.jsxs("details",{className:"group mt-4 rounded-3xl border border-slate-200 bg-slate-50 p-4",children:[le.jsx("summary",{className:"cursor-pointer text-sm font-semibold text-slate-900 transition hover:text-slate-700",children:"Extended definition"}),le.jsx("div",{className:"mt-3 text-sm leading-6 text-slate-700",dangerouslySetInnerHTML:{__html:D.definitionHtml}})]}):null]},D.id))})]})]}):le.jsx("div",{className:"mt-6 rounded-3xl border border-slate-200 bg-slate-50 p-8 text-center text-slate-500",children:"Select a chunk from the left panel to edit its notes and Greek studies."})]})]})}):le.jsx("section",{className:"mx-auto max-w-3xl rounded-3xl border border-slate-200 bg-white p-8 shadow-panel",children:le.jsxs("div",{className:"space-y-6",children:[le.jsxs("div",{children:[le.jsx("h2",{className:"text-xl font-semibold text-slate-900",children:"Project Setup"}),le.jsx("p",{className:"mt-2 text-sm text-slate-600",children:"Pick a translation, chapter, and title. Load the chapter to begin structuring your study into chunks."})]}),le.jsxs("div",{className:"grid gap-5 sm:grid-cols-2",children:[le.jsxs("label",{className:"block text-sm font-medium text-slate-700",children:["Translation",le.jsx("select",{value:r.translation,onChange:D=>A("translation",D.target.value),className:"mt-2 block w-full rounded-xl border border-slate-300 bg-slate-50 px-3 py-2 text-slate-900 shadow-sm focus:border-sky-500 focus:outline-none focus:ring-2 focus:ring-sky-200",children:e.map(D=>le.jsx("option",{value:D,children:D},D))})]}),le.jsxs("label",{className:"block text-sm font-medium text-slate-700",children:["Book",le.jsx("select",{value:r.bookAbbrev,onChange:D=>A("book",D.target.value),className:"mt-2 block w-full rounded-xl border border-slate-300 bg-slate-50 px-3 py-2 text-slate-900 shadow-sm focus:border-sky-500 focus:outline-none focus:ring-2 focus:ring-sky-200",children:qo.map(D=>le.jsx("option",{value:D.abbrev,children:D.name},D.abbrev))})]}),le.jsxs("label",{className:"block text-sm font-medium text-slate-700",children:["Chapter",le.jsx("input",{type:"number",min:"1",value:r.chapter,onChange:D=>A("chapter",D.target.value),className:"mt-2 block w-full rounded-xl border border-slate-300 bg-slate-50 px-3 py-2 text-slate-900 shadow-sm focus:border-sky-500 focus:outline-none focus:ring-2 focus:ring-sky-200"})]}),le.jsxs("label",{className:"block text-sm font-medium text-slate-700 sm:col-span-2",children:["Project title",le.jsx("input",{type:"text",value:r.title,onChange:D=>{i(!0),A("title",D.target.value)},className:"mt-2 block w-full rounded-xl border border-slate-300 bg-slate-50 px-3 py-2 text-slate-900 shadow-sm focus:border-sky-500 focus:outline-none focus:ring-2 focus:ring-sky-200"})]})]}),le.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[le.jsx("div",{className:"text-sm text-slate-600",children:R?le.jsx("span",{className:"text-rose-500",children:R}):"Start by loading the chapter text from HelloAO."}),le.jsx("button",{type:"button",onClick:B,disabled:_,className:"inline-flex items-center justify-center rounded-xl bg-slate-900 px-6 py-2.5 text-sm font-semibold text-white transition hover:bg-slate-800 disabled:cursor-not-allowed disabled:bg-slate-500",children:_?"Loading...":"Load Chapter"})]})]})})})]})};o1.createRoot(document.getElementById("root")).render(le.jsx(Oy.StrictMode,{children:le.jsx(hS,{})}));
|