182 lines
523 KiB
JavaScript
182 lines
523 KiB
JavaScript
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=r(i);fetch(i.href,s)}})();var Qn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Kd={exports:{}},yo={},Gd={exports:{}},be={};/**
|
||
* @license React
|
||
* react.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Wi=Symbol.for("react.element"),og=Symbol.for("react.portal"),ag=Symbol.for("react.fragment"),lg=Symbol.for("react.strict_mode"),ug=Symbol.for("react.profiler"),cg=Symbol.for("react.provider"),fg=Symbol.for("react.context"),dg=Symbol.for("react.forward_ref"),hg=Symbol.for("react.suspense"),pg=Symbol.for("react.memo"),mg=Symbol.for("react.lazy"),Tc=Symbol.iterator;function gg(t){return t===null||typeof t!="object"?null:(t=Tc&&t[Tc]||t["@@iterator"],typeof t=="function"?t:null)}var Vd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$d=Object.assign,qd={};function zn(t,e,r){this.props=t,this.context=e,this.refs=qd,this.updater=r||Vd}zn.prototype.isReactComponent={};zn.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};zn.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Xd(){}Xd.prototype=zn.prototype;function du(t,e,r){this.props=t,this.context=e,this.refs=qd,this.updater=r||Vd}var hu=du.prototype=new Xd;hu.constructor=du;$d(hu,zn.prototype);hu.isPureReactComponent=!0;var Ac=Array.isArray,Yd=Object.prototype.hasOwnProperty,pu={current:null},Zd={key:!0,ref:!0,__self:!0,__source:!0};function Qd(t,e,r){var n,i={},s=null,o=null;if(e!=null)for(n in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(s=""+e.key),e)Yd.call(e,n)&&!Zd.hasOwnProperty(n)&&(i[n]=e[n]);var a=arguments.length-2;if(a===1)i.children=r;else if(1<a){for(var l=Array(a),h=0;h<a;h++)l[h]=arguments[h+2];i.children=l}if(t&&t.defaultProps)for(n in a=t.defaultProps,a)i[n]===void 0&&(i[n]=a[n]);return{$$typeof:Wi,type:t,key:s,ref:o,props:i,_owner:pu.current}}function yg(t,e){return{$$typeof:Wi,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function mu(t){return typeof t=="object"&&t!==null&&t.$$typeof===Wi}function wg(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(r){return e[r]})}var Cc=/\/+/g;function Go(t,e){return typeof t=="object"&&t!==null&&t.key!=null?wg(""+t.key):e.toString(36)}function Cs(t,e,r,n,i){var s=typeof t;(s==="undefined"||s==="boolean")&&(t=null);var o=!1;if(t===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case Wi:case og:o=!0}}if(o)return o=t,i=i(o),t=n===""?"."+Go(o,0):n,Ac(i)?(r="",t!=null&&(r=t.replace(Cc,"$&/")+"/"),Cs(i,e,r,"",function(h){return h})):i!=null&&(mu(i)&&(i=yg(i,r+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Cc,"$&/")+"/")+t)),e.push(i)),1;if(o=0,n=n===""?".":n+":",Ac(t))for(var a=0;a<t.length;a++){s=t[a];var l=n+Go(s,a);o+=Cs(s,e,r,l,i)}else if(l=gg(t),typeof l=="function")for(t=l.call(t),a=0;!(s=t.next()).done;)s=s.value,l=n+Go(s,a++),o+=Cs(s,e,r,l,i);else if(s==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return o}function es(t,e,r){if(t==null)return t;var n=[],i=0;return Cs(t,n,"","",function(s){return e.call(r,s,i++)}),n}function vg(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(r){(t._status===0||t._status===-1)&&(t._status=1,t._result=r)},function(r){(t._status===0||t._status===-1)&&(t._status=2,t._result=r)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var lt={current:null},js={transition:null},xg={ReactCurrentDispatcher:lt,ReactCurrentBatchConfig:js,ReactCurrentOwner:pu};function Jd(){throw Error("act(...) is not supported in production builds of React.")}be.Children={map:es,forEach:function(t,e,r){es(t,function(){e.apply(this,arguments)},r)},count:function(t){var e=0;return es(t,function(){e++}),e},toArray:function(t){return es(t,function(e){return e})||[]},only:function(t){if(!mu(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};be.Component=zn;be.Fragment=ag;be.Profiler=ug;be.PureComponent=du;be.StrictMode=lg;be.Suspense=hg;be.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=xg;be.act=Jd;be.cloneElement=function(t,e,r){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var n=$d({},t.props),i=t.key,s=t.ref,o=t._owner;if(e!=null){if(e.ref!==void 0&&(s=e.ref,o=pu.current),e.key!==void 0&&(i=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(l in e)Yd.call(e,l)&&!Zd.hasOwnProperty(l)&&(n[l]=e[l]===void 0&&a!==void 0?a[l]:e[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){a=Array(l);for(var h=0;h<l;h++)a[h]=arguments[h+2];n.children=a}return{$$typeof:Wi,type:t.type,key:i,ref:s,props:n,_owner:o}};be.createContext=function(t){return t={$$typeof:fg,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:cg,_context:t},t.Consumer=t};be.createElement=Qd;be.createFactory=function(t){var e=Qd.bind(null,t);return e.type=t,e};be.createRef=function(){return{current:null}};be.forwardRef=function(t){return{$$typeof:dg,render:t}};be.isValidElement=mu;be.lazy=function(t){return{$$typeof:mg,_payload:{_status:-1,_result:t},_init:vg}};be.memo=function(t,e){return{$$typeof:pg,type:t,compare:e===void 0?null:e}};be.startTransition=function(t){var e=js.transition;js.transition={};try{t()}finally{js.transition=e}};be.unstable_act=Jd;be.useCallback=function(t,e){return lt.current.useCallback(t,e)};be.useContext=function(t){return lt.current.useContext(t)};be.useDebugValue=function(){};be.useDeferredValue=function(t){return lt.current.useDeferredValue(t)};be.useEffect=function(t,e){return lt.current.useEffect(t,e)};be.useId=function(){return lt.current.useId()};be.useImperativeHandle=function(t,e,r){return lt.current.useImperativeHandle(t,e,r)};be.useInsertionEffect=function(t,e){return lt.current.useInsertionEffect(t,e)};be.useLayoutEffect=function(t,e){return lt.current.useLayoutEffect(t,e)};be.useMemo=function(t,e){return lt.current.useMemo(t,e)};be.useReducer=function(t,e,r){return lt.current.useReducer(t,e,r)};be.useRef=function(t){return lt.current.useRef(t)};be.useState=function(t){return lt.current.useState(t)};be.useSyncExternalStore=function(t,e,r){return lt.current.useSyncExternalStore(t,e,r)};be.useTransition=function(){return lt.current.useTransition()};be.version="18.3.1";Gd.exports=be;var xr=Gd.exports;/**
|
||
* @license React
|
||
* react-jsx-runtime.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var bg=xr,_g=Symbol.for("react.element"),Eg=Symbol.for("react.fragment"),Sg=Object.prototype.hasOwnProperty,Ng=bg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,kg={key:!0,ref:!0,__self:!0,__source:!0};function eh(t,e,r){var n,i={},s=null,o=null;r!==void 0&&(s=""+r),e.key!==void 0&&(s=""+e.key),e.ref!==void 0&&(o=e.ref);for(n in e)Sg.call(e,n)&&!kg.hasOwnProperty(n)&&(i[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps,e)i[n]===void 0&&(i[n]=e[n]);return{$$typeof:_g,type:t,key:s,ref:o,props:i,_owner:Ng.current}}yo.Fragment=Eg;yo.jsx=eh;yo.jsxs=eh;Kd.exports=yo;var f=Kd.exports,th={exports:{}},bt={},rh={exports:{}},nh={};/**
|
||
* @license React
|
||
* scheduler.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/(function(t){function e(ne,q){var ae=ne.length;ne.push(q);e:for(;0<ae;){var K=ae-1>>>1,R=ne[K];if(0<i(R,q))ne[K]=q,ne[ae]=R,ae=K;else break e}}function r(ne){return ne.length===0?null:ne[0]}function n(ne){if(ne.length===0)return null;var q=ne[0],ae=ne.pop();if(ae!==q){ne[0]=ae;e:for(var K=0,R=ne.length,V=R>>>1;K<V;){var $=2*(K+1)-1,te=ne[$],z=$+1,S=ne[z];if(0>i(te,ae))z<R&&0>i(S,te)?(ne[K]=S,ne[z]=ae,K=z):(ne[K]=te,ne[$]=ae,K=$);else if(z<R&&0>i(S,ae))ne[K]=S,ne[z]=ae,K=z;else break e}}return q}function i(ne,q){var ae=ne.sortIndex-q.sortIndex;return ae!==0?ae:ne.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();t.unstable_now=function(){return o.now()-a}}var l=[],h=[],g=1,v=null,y=3,m=!1,N=!1,b=!1,A=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(ne){for(var q=r(h);q!==null;){if(q.callback===null)n(h);else if(q.startTime<=ne)n(h),q.sortIndex=q.expirationTime,e(l,q);else break;q=r(h)}}function C(ne){if(b=!1,E(ne),!N)if(r(l)!==null)N=!0,he(O);else{var q=r(h);q!==null&&Q(C,q.startTime-ne)}}function O(ne,q){N=!1,b&&(b=!1,d(G),G=-1),m=!0;var ae=y;try{for(E(q),v=r(l);v!==null&&(!(v.expirationTime>q)||ne&&!de());){var K=v.callback;if(typeof K=="function"){v.callback=null,y=v.priorityLevel;var R=K(v.expirationTime<=q);q=t.unstable_now(),typeof R=="function"?v.callback=R:v===r(l)&&n(l),E(q)}else n(l);v=r(l)}if(v!==null)var V=!0;else{var $=r(h);$!==null&&Q(C,$.startTime-q),V=!1}return V}finally{v=null,y=ae,m=!1}}var H=!1,U=null,G=-1,j=5,ee=-1;function de(){return!(t.unstable_now()-ee<j)}function L(){if(U!==null){var ne=t.unstable_now();ee=ne;var q=!0;try{q=U(!0,ne)}finally{q?X():(H=!1,U=null)}}else H=!1}var X;if(typeof p=="function")X=function(){p(L)};else if(typeof MessageChannel<"u"){var T=new MessageChannel,Z=T.port2;T.port1.onmessage=L,X=function(){Z.postMessage(null)}}else X=function(){A(L,0)};function he(ne){U=ne,H||(H=!0,X())}function Q(ne,q){G=A(function(){ne(t.unstable_now())},q)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(ne){ne.callback=null},t.unstable_continueExecution=function(){N||m||(N=!0,he(O))},t.unstable_forceFrameRate=function(ne){0>ne||125<ne?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<ne?Math.floor(1e3/ne):5},t.unstable_getCurrentPriorityLevel=function(){return y},t.unstable_getFirstCallbackNode=function(){return r(l)},t.unstable_next=function(ne){switch(y){case 1:case 2:case 3:var q=3;break;default:q=y}var ae=y;y=q;try{return ne()}finally{y=ae}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(ne,q){switch(ne){case 1:case 2:case 3:case 4:case 5:break;default:ne=3}var ae=y;y=ne;try{return q()}finally{y=ae}},t.unstable_scheduleCallback=function(ne,q,ae){var K=t.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?K+ae:K):ae=K,ne){case 1:var R=-1;break;case 2:R=250;break;case 5:R=1073741823;break;case 4:R=1e4;break;default:R=5e3}return R=ae+R,ne={id:g++,callback:q,priorityLevel:ne,startTime:ae,expirationTime:R,sortIndex:-1},ae>K?(ne.sortIndex=ae,e(h,ne),r(l)===null&&ne===r(h)&&(b?(d(G),G=-1):b=!0,Q(C,ae-K))):(ne.sortIndex=R,e(l,ne),N||m||(N=!0,he(O))),ne},t.unstable_shouldYield=de,t.unstable_wrapCallback=function(ne){var q=y;return function(){var ae=y;y=q;try{return ne.apply(this,arguments)}finally{y=ae}}}})(nh);rh.exports=nh;var Tg=rh.exports;/**
|
||
* @license React
|
||
* react-dom.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Ag=xr,xt=Tg;function fe(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ih=new Set,Si={};function Qr(t,e){Cn(t,e),Cn(t+"Capture",e)}function Cn(t,e){for(Si[t]=e,t=0;t<e.length;t++)ih.add(e[t])}var or=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fl=Object.prototype.hasOwnProperty,Cg=/^[: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]*$/,jc={},Rc={};function jg(t){return fl.call(Rc,t)?!0:fl.call(jc,t)?!1:Cg.test(t)?Rc[t]=!0:(jc[t]=!0,!1)}function Rg(t,e,r,n){if(r!==null&&r.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function Ig(t,e,r,n){if(e===null||typeof e>"u"||Rg(t,e,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function ut(t,e,r,n,i,s,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=s,this.removeEmptyString=o}var Ze={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Ze[t]=new ut(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Ze[e]=new ut(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Ze[t]=new ut(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Ze[t]=new ut(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Ze[t]=new ut(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Ze[t]=new ut(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Ze[t]=new ut(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Ze[t]=new ut(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Ze[t]=new ut(t,5,!1,t.toLowerCase(),null,!1,!1)});var gu=/[\-:]([a-z])/g;function yu(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(gu,yu);Ze[e]=new ut(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(gu,yu);Ze[e]=new ut(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(gu,yu);Ze[e]=new ut(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Ze[t]=new ut(t,1,!1,t.toLowerCase(),null,!1,!1)});Ze.xlinkHref=new ut("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Ze[t]=new ut(t,1,!1,t.toLowerCase(),null,!0,!0)});function wu(t,e,r,n){var i=Ze.hasOwnProperty(e)?Ze[e]:null;(i!==null?i.type!==0:n||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(Ig(e,r,i,n)&&(r=null),n||i===null?jg(e)&&(r===null?t.removeAttribute(e):t.setAttribute(e,""+r)):i.mustUseProperty?t[i.propertyName]=r===null?i.type===3?!1:"":r:(e=i.attributeName,n=i.attributeNamespace,r===null?t.removeAttribute(e):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?t.setAttributeNS(n,e,r):t.setAttribute(e,r))))}var cr=Ag.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ts=Symbol.for("react.element"),on=Symbol.for("react.portal"),an=Symbol.for("react.fragment"),vu=Symbol.for("react.strict_mode"),dl=Symbol.for("react.profiler"),sh=Symbol.for("react.provider"),oh=Symbol.for("react.context"),xu=Symbol.for("react.forward_ref"),hl=Symbol.for("react.suspense"),pl=Symbol.for("react.suspense_list"),bu=Symbol.for("react.memo"),pr=Symbol.for("react.lazy"),ah=Symbol.for("react.offscreen"),Ic=Symbol.iterator;function Jn(t){return t===null||typeof t!="object"?null:(t=Ic&&t[Ic]||t["@@iterator"],typeof t=="function"?t:null)}var De=Object.assign,Vo;function fi(t){if(Vo===void 0)try{throw Error()}catch(r){var e=r.stack.trim().match(/\n( *(at )?)/);Vo=e&&e[1]||""}return`
|
||
`+Vo+t}var $o=!1;function qo(t,e){if(!t||$o)return"";$o=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(h){var n=h}Reflect.construct(t,[],e)}else{try{e.call()}catch(h){n=h}t.call(e.prototype)}else{try{throw Error()}catch(h){n=h}t()}}catch(h){if(h&&n&&typeof h.stack=="string"){for(var i=h.stack.split(`
|
||
`),s=n.stack.split(`
|
||
`),o=i.length-1,a=s.length-1;1<=o&&0<=a&&i[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==s[a]){var l=`
|
||
`+i[o].replace(" at new "," at ");return t.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",t.displayName)),l}while(1<=o&&0<=a);break}}}finally{$o=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?fi(t):""}function Og(t){switch(t.tag){case 5:return fi(t.type);case 16:return fi("Lazy");case 13:return fi("Suspense");case 19:return fi("SuspenseList");case 0:case 2:case 15:return t=qo(t.type,!1),t;case 11:return t=qo(t.type.render,!1),t;case 1:return t=qo(t.type,!0),t;default:return""}}function ml(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case an:return"Fragment";case on:return"Portal";case dl:return"Profiler";case vu:return"StrictMode";case hl:return"Suspense";case pl:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case oh:return(t.displayName||"Context")+".Consumer";case sh:return(t._context.displayName||"Context")+".Provider";case xu:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case bu:return e=t.displayName||null,e!==null?e:ml(t.type)||"Memo";case pr:e=t._payload,t=t._init;try{return ml(t(e))}catch{}}return null}function Dg(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ml(e);case 8:return e===vu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Cr(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function lh(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Pg(t){var e=lh(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,s=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,s.call(this,o)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function rs(t){t._valueTracker||(t._valueTracker=Pg(t))}function uh(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=lh(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function Hs(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function gl(t,e){var r=e.checked;return De({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function Oc(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=Cr(e.value!=null?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function ch(t,e){e=e.checked,e!=null&&wu(t,"checked",e,!1)}function yl(t,e){ch(t,e);var r=Cr(e.value),n=e.type;if(r!=null)n==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(n==="submit"||n==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?wl(t,e.type,r):e.hasOwnProperty("defaultValue")&&wl(t,e.type,Cr(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Dc(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function wl(t,e,r){(e!=="number"||Hs(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var di=Array.isArray;function wn(t,e,r,n){if(t=t.options,e){e={};for(var i=0;i<r.length;i++)e["$"+r[i]]=!0;for(r=0;r<t.length;r++)i=e.hasOwnProperty("$"+t[r].value),t[r].selected!==i&&(t[r].selected=i),i&&n&&(t[r].defaultSelected=!0)}else{for(r=""+Cr(r),e=null,i=0;i<t.length;i++){if(t[i].value===r){t[i].selected=!0,n&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function vl(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(fe(91));return De({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Pc(t,e){var r=e.value;if(r==null){if(r=e.children,e=e.defaultValue,r!=null){if(e!=null)throw Error(fe(92));if(di(r)){if(1<r.length)throw Error(fe(93));r=r[0]}e=r}e==null&&(e=""),r=e}t._wrapperState={initialValue:Cr(r)}}function fh(t,e){var r=Cr(e.value),n=Cr(e.defaultValue);r!=null&&(r=""+r,r!==t.value&&(t.value=r),e.defaultValue==null&&t.defaultValue!==r&&(t.defaultValue=r)),n!=null&&(t.defaultValue=""+n)}function Lc(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function dh(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function xl(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?dh(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var ns,hh=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,r,n,i){MSApp.execUnsafeLocalFunction(function(){return t(e,r,n,i)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(ns=ns||document.createElement("div"),ns.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=ns.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Ni(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var mi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Lg=["Webkit","ms","Moz","O"];Object.keys(mi).forEach(function(t){Lg.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),mi[e]=mi[t]})});function ph(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||mi.hasOwnProperty(t)&&mi[t]?(""+e).trim():e+"px"}function mh(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=ph(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,i):t[r]=i}}var Fg=De({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function bl(t,e){if(e){if(Fg[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(fe(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(fe(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(fe(61))}if(e.style!=null&&typeof e.style!="object")throw Error(fe(62))}}function _l(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 El=null;function _u(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Sl=null,vn=null,xn=null;function Fc(t){if(t=Gi(t)){if(typeof Sl!="function")throw Error(fe(280));var e=t.stateNode;e&&(e=_o(e),Sl(t.stateNode,t.type,e))}}function gh(t){vn?xn?xn.push(t):xn=[t]:vn=t}function yh(){if(vn){var t=vn,e=xn;if(xn=vn=null,Fc(t),e)for(t=0;t<e.length;t++)Fc(e[t])}}function wh(t,e){return t(e)}function vh(){}var Xo=!1;function xh(t,e,r){if(Xo)return t(e,r);Xo=!0;try{return wh(t,e,r)}finally{Xo=!1,(vn!==null||xn!==null)&&(vh(),yh())}}function ki(t,e){var r=t.stateNode;if(r===null)return null;var n=_o(r);if(n===null)return null;r=n[e];e:switch(e){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)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break e;default:t=!1}if(t)return null;if(r&&typeof r!="function")throw Error(fe(231,e,typeof r));return r}var Nl=!1;if(or)try{var ei={};Object.defineProperty(ei,"passive",{get:function(){Nl=!0}}),window.addEventListener("test",ei,ei),window.removeEventListener("test",ei,ei)}catch{Nl=!1}function Bg(t,e,r,n,i,s,o,a,l){var h=Array.prototype.slice.call(arguments,3);try{e.apply(r,h)}catch(g){this.onError(g)}}var gi=!1,Ks=null,Gs=!1,kl=null,Mg={onError:function(t){gi=!0,Ks=t}};function Ug(t,e,r,n,i,s,o,a,l){gi=!1,Ks=null,Bg.apply(Mg,arguments)}function zg(t,e,r,n,i,s,o,a,l){if(Ug.apply(this,arguments),gi){if(gi){var h=Ks;gi=!1,Ks=null}else throw Error(fe(198));Gs||(Gs=!0,kl=h)}}function Jr(t){var e=t,r=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(r=e.return),t=e.return;while(t)}return e.tag===3?r:null}function bh(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Bc(t){if(Jr(t)!==t)throw Error(fe(188))}function Wg(t){var e=t.alternate;if(!e){if(e=Jr(t),e===null)throw Error(fe(188));return e!==t?null:t}for(var r=t,n=e;;){var i=r.return;if(i===null)break;var s=i.alternate;if(s===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===r)return Bc(i),t;if(s===n)return Bc(i),e;s=s.sibling}throw Error(fe(188))}if(r.return!==n.return)r=i,n=s;else{for(var o=!1,a=i.child;a;){if(a===r){o=!0,r=i,n=s;break}if(a===n){o=!0,n=i,r=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===r){o=!0,r=s,n=i;break}if(a===n){o=!0,n=s,r=i;break}a=a.sibling}if(!o)throw Error(fe(189))}}if(r.alternate!==n)throw Error(fe(190))}if(r.tag!==3)throw Error(fe(188));return r.stateNode.current===r?t:e}function _h(t){return t=Wg(t),t!==null?Eh(t):null}function Eh(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=Eh(t);if(e!==null)return e;t=t.sibling}return null}var Sh=xt.unstable_scheduleCallback,Mc=xt.unstable_cancelCallback,Hg=xt.unstable_shouldYield,Kg=xt.unstable_requestPaint,Me=xt.unstable_now,Gg=xt.unstable_getCurrentPriorityLevel,Eu=xt.unstable_ImmediatePriority,Nh=xt.unstable_UserBlockingPriority,Vs=xt.unstable_NormalPriority,Vg=xt.unstable_LowPriority,kh=xt.unstable_IdlePriority,wo=null,Xt=null;function $g(t){if(Xt&&typeof Xt.onCommitFiberRoot=="function")try{Xt.onCommitFiberRoot(wo,t,void 0,(t.current.flags&128)===128)}catch{}}var Ft=Math.clz32?Math.clz32:Yg,qg=Math.log,Xg=Math.LN2;function Yg(t){return t>>>=0,t===0?32:31-(qg(t)/Xg|0)|0}var is=64,ss=4194304;function hi(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function $s(t,e){var r=t.pendingLanes;if(r===0)return 0;var n=0,i=t.suspendedLanes,s=t.pingedLanes,o=r&268435455;if(o!==0){var a=o&~i;a!==0?n=hi(a):(s&=o,s!==0&&(n=hi(s)))}else o=r&~i,o!==0?n=hi(o):s!==0&&(n=hi(s));if(n===0)return 0;if(e!==0&&e!==n&&!(e&i)&&(i=n&-n,s=e&-e,i>=s||i===16&&(s&4194240)!==0))return e;if(n&4&&(n|=r&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=n;0<e;)r=31-Ft(e),i=1<<r,n|=t[r],e&=~i;return n}function Zg(t,e){switch(t){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Qg(t,e){for(var r=t.suspendedLanes,n=t.pingedLanes,i=t.expirationTimes,s=t.pendingLanes;0<s;){var o=31-Ft(s),a=1<<o,l=i[o];l===-1?(!(a&r)||a&n)&&(i[o]=Zg(a,e)):l<=e&&(t.expiredLanes|=a),s&=~a}}function Tl(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Th(){var t=is;return is<<=1,!(is&4194240)&&(is=64),t}function Yo(t){for(var e=[],r=0;31>r;r++)e.push(t);return e}function Hi(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Ft(e),t[e]=r}function Jg(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var n=t.eventTimes;for(t=t.expirationTimes;0<r;){var i=31-Ft(r),s=1<<i;e[i]=0,n[i]=-1,t[i]=-1,r&=~s}}function Su(t,e){var r=t.entangledLanes|=e;for(t=t.entanglements;r;){var n=31-Ft(r),i=1<<n;i&e|t[n]&e&&(t[n]|=e),r&=~i}}var Ne=0;function Ah(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var Ch,Nu,jh,Rh,Ih,Al=!1,os=[],br=null,_r=null,Er=null,Ti=new Map,Ai=new Map,gr=[],e0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Uc(t,e){switch(t){case"focusin":case"focusout":br=null;break;case"dragenter":case"dragleave":_r=null;break;case"mouseover":case"mouseout":Er=null;break;case"pointerover":case"pointerout":Ti.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ai.delete(e.pointerId)}}function ti(t,e,r,n,i,s){return t===null||t.nativeEvent!==s?(t={blockedOn:e,domEventName:r,eventSystemFlags:n,nativeEvent:s,targetContainers:[i]},e!==null&&(e=Gi(e),e!==null&&Nu(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function t0(t,e,r,n,i){switch(e){case"focusin":return br=ti(br,t,e,r,n,i),!0;case"dragenter":return _r=ti(_r,t,e,r,n,i),!0;case"mouseover":return Er=ti(Er,t,e,r,n,i),!0;case"pointerover":var s=i.pointerId;return Ti.set(s,ti(Ti.get(s)||null,t,e,r,n,i)),!0;case"gotpointercapture":return s=i.pointerId,Ai.set(s,ti(Ai.get(s)||null,t,e,r,n,i)),!0}return!1}function Oh(t){var e=Ur(t.target);if(e!==null){var r=Jr(e);if(r!==null){if(e=r.tag,e===13){if(e=bh(r),e!==null){t.blockedOn=e,Ih(t.priority,function(){jh(r)});return}}else if(e===3&&r.stateNode.current.memoizedState.isDehydrated){t.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Rs(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var r=Cl(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(r===null){r=t.nativeEvent;var n=new r.constructor(r.type,r);El=n,r.target.dispatchEvent(n),El=null}else return e=Gi(r),e!==null&&Nu(e),t.blockedOn=r,!1;e.shift()}return!0}function zc(t,e,r){Rs(t)&&r.delete(e)}function r0(){Al=!1,br!==null&&Rs(br)&&(br=null),_r!==null&&Rs(_r)&&(_r=null),Er!==null&&Rs(Er)&&(Er=null),Ti.forEach(zc),Ai.forEach(zc)}function ri(t,e){t.blockedOn===e&&(t.blockedOn=null,Al||(Al=!0,xt.unstable_scheduleCallback(xt.unstable_NormalPriority,r0)))}function Ci(t){function e(i){return ri(i,t)}if(0<os.length){ri(os[0],t);for(var r=1;r<os.length;r++){var n=os[r];n.blockedOn===t&&(n.blockedOn=null)}}for(br!==null&&ri(br,t),_r!==null&&ri(_r,t),Er!==null&&ri(Er,t),Ti.forEach(e),Ai.forEach(e),r=0;r<gr.length;r++)n=gr[r],n.blockedOn===t&&(n.blockedOn=null);for(;0<gr.length&&(r=gr[0],r.blockedOn===null);)Oh(r),r.blockedOn===null&&gr.shift()}var bn=cr.ReactCurrentBatchConfig,qs=!0;function n0(t,e,r,n){var i=Ne,s=bn.transition;bn.transition=null;try{Ne=1,ku(t,e,r,n)}finally{Ne=i,bn.transition=s}}function i0(t,e,r,n){var i=Ne,s=bn.transition;bn.transition=null;try{Ne=4,ku(t,e,r,n)}finally{Ne=i,bn.transition=s}}function ku(t,e,r,n){if(qs){var i=Cl(t,e,r,n);if(i===null)oa(t,e,n,Xs,r),Uc(t,n);else if(t0(i,t,e,r,n))n.stopPropagation();else if(Uc(t,n),e&4&&-1<e0.indexOf(t)){for(;i!==null;){var s=Gi(i);if(s!==null&&Ch(s),s=Cl(t,e,r,n),s===null&&oa(t,e,n,Xs,r),s===i)break;i=s}i!==null&&n.stopPropagation()}else oa(t,e,n,null,r)}}var Xs=null;function Cl(t,e,r,n){if(Xs=null,t=_u(n),t=Ur(t),t!==null)if(e=Jr(t),e===null)t=null;else if(r=e.tag,r===13){if(t=bh(e),t!==null)return t;t=null}else if(r===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return Xs=t,null}function Dh(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Gg()){case Eu:return 1;case Nh:return 4;case Vs:case Vg:return 16;case kh:return 536870912;default:return 16}default:return 16}}var wr=null,Tu=null,Is=null;function Ph(){if(Is)return Is;var t,e=Tu,r=e.length,n,i="value"in wr?wr.value:wr.textContent,s=i.length;for(t=0;t<r&&e[t]===i[t];t++);var o=r-t;for(n=1;n<=o&&e[r-n]===i[s-n];n++);return Is=i.slice(t,1<n?1-n:void 0)}function Os(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function as(){return!0}function Wc(){return!1}function _t(t){function e(r,n,i,s,o){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in t)t.hasOwnProperty(a)&&(r=t[a],this[a]=r?r(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?as:Wc,this.isPropagationStopped=Wc,this}return De(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=as)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=as)},persist:function(){},isPersistent:as}),e}var Wn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Au=_t(Wn),Ki=De({},Wn,{view:0,detail:0}),s0=_t(Ki),Zo,Qo,ni,vo=De({},Ki,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cu,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==ni&&(ni&&t.type==="mousemove"?(Zo=t.screenX-ni.screenX,Qo=t.screenY-ni.screenY):Qo=Zo=0,ni=t),Zo)},movementY:function(t){return"movementY"in t?t.movementY:Qo}}),Hc=_t(vo),o0=De({},vo,{dataTransfer:0}),a0=_t(o0),l0=De({},Ki,{relatedTarget:0}),Jo=_t(l0),u0=De({},Wn,{animationName:0,elapsedTime:0,pseudoElement:0}),c0=_t(u0),f0=De({},Wn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),d0=_t(f0),h0=De({},Wn,{data:0}),Kc=_t(h0),p0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},m0={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"},g0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function y0(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=g0[t])?!!e[t]:!1}function Cu(){return y0}var w0=De({},Ki,{key:function(t){if(t.key){var e=p0[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Os(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?m0[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cu,charCode:function(t){return t.type==="keypress"?Os(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Os(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),v0=_t(w0),x0=De({},vo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Gc=_t(x0),b0=De({},Ki,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cu}),_0=_t(b0),E0=De({},Wn,{propertyName:0,elapsedTime:0,pseudoElement:0}),S0=_t(E0),N0=De({},vo,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),k0=_t(N0),T0=[9,13,27,32],ju=or&&"CompositionEvent"in window,yi=null;or&&"documentMode"in document&&(yi=document.documentMode);var A0=or&&"TextEvent"in window&&!yi,Lh=or&&(!ju||yi&&8<yi&&11>=yi),Vc=" ",$c=!1;function Fh(t,e){switch(t){case"keyup":return T0.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bh(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ln=!1;function C0(t,e){switch(t){case"compositionend":return Bh(e);case"keypress":return e.which!==32?null:($c=!0,Vc);case"textInput":return t=e.data,t===Vc&&$c?null:t;default:return null}}function j0(t,e){if(ln)return t==="compositionend"||!ju&&Fh(t,e)?(t=Ph(),Is=Tu=wr=null,ln=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Lh&&e.locale!=="ko"?null:e.data;default:return null}}var R0={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 qc(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!R0[t.type]:e==="textarea"}function Mh(t,e,r,n){gh(n),e=Ys(e,"onChange"),0<e.length&&(r=new Au("onChange","change",null,r,n),t.push({event:r,listeners:e}))}var wi=null,ji=null;function I0(t){Yh(t,0)}function xo(t){var e=fn(t);if(uh(e))return t}function O0(t,e){if(t==="change")return e}var Uh=!1;if(or){var ea;if(or){var ta="oninput"in document;if(!ta){var Xc=document.createElement("div");Xc.setAttribute("oninput","return;"),ta=typeof Xc.oninput=="function"}ea=ta}else ea=!1;Uh=ea&&(!document.documentMode||9<document.documentMode)}function Yc(){wi&&(wi.detachEvent("onpropertychange",zh),ji=wi=null)}function zh(t){if(t.propertyName==="value"&&xo(ji)){var e=[];Mh(e,ji,t,_u(t)),xh(I0,e)}}function D0(t,e,r){t==="focusin"?(Yc(),wi=e,ji=r,wi.attachEvent("onpropertychange",zh)):t==="focusout"&&Yc()}function P0(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return xo(ji)}function L0(t,e){if(t==="click")return xo(e)}function F0(t,e){if(t==="input"||t==="change")return xo(e)}function B0(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Mt=typeof Object.is=="function"?Object.is:B0;function Ri(t,e){if(Mt(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!fl.call(e,i)||!Mt(t[i],e[i]))return!1}return!0}function Zc(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Qc(t,e){var r=Zc(t);t=0;for(var n;r;){if(r.nodeType===3){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Zc(r)}}function Wh(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Wh(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Hh(){for(var t=window,e=Hs();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=Hs(t.document)}return e}function Ru(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function M0(t){var e=Hh(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&Wh(r.ownerDocument.documentElement,r)){if(n!==null&&Ru(r)){if(e=n.start,t=n.end,t===void 0&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if(t=(e=r.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=r.textContent.length,s=Math.min(n.start,i);n=n.end===void 0?s:Math.min(n.end,i),!t.extend&&s>n&&(i=n,n=s,s=i),i=Qc(r,s);var o=Qc(r,n);i&&o&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),s>n?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=r;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<e.length;r++)t=e[r],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var U0=or&&"documentMode"in document&&11>=document.documentMode,un=null,jl=null,vi=null,Rl=!1;function Jc(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Rl||un==null||un!==Hs(n)||(n=un,"selectionStart"in n&&Ru(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}),vi&&Ri(vi,n)||(vi=n,n=Ys(jl,"onSelect"),0<n.length&&(e=new Au("onSelect","select",null,e,r),t.push({event:e,listeners:n}),e.target=un)))}function ls(t,e){var r={};return r[t.toLowerCase()]=e.toLowerCase(),r["Webkit"+t]="webkit"+e,r["Moz"+t]="moz"+e,r}var cn={animationend:ls("Animation","AnimationEnd"),animationiteration:ls("Animation","AnimationIteration"),animationstart:ls("Animation","AnimationStart"),transitionend:ls("Transition","TransitionEnd")},ra={},Kh={};or&&(Kh=document.createElement("div").style,"AnimationEvent"in window||(delete cn.animationend.animation,delete cn.animationiteration.animation,delete cn.animationstart.animation),"TransitionEvent"in window||delete cn.transitionend.transition);function bo(t){if(ra[t])return ra[t];if(!cn[t])return t;var e=cn[t],r;for(r in e)if(e.hasOwnProperty(r)&&r in Kh)return ra[t]=e[r];return t}var Gh=bo("animationend"),Vh=bo("animationiteration"),$h=bo("animationstart"),qh=bo("transitionend"),Xh=new Map,ef="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ir(t,e){Xh.set(t,e),Qr(e,[t])}for(var na=0;na<ef.length;na++){var ia=ef[na],z0=ia.toLowerCase(),W0=ia[0].toUpperCase()+ia.slice(1);Ir(z0,"on"+W0)}Ir(Gh,"onAnimationEnd");Ir(Vh,"onAnimationIteration");Ir($h,"onAnimationStart");Ir("dblclick","onDoubleClick");Ir("focusin","onFocus");Ir("focusout","onBlur");Ir(qh,"onTransitionEnd");Cn("onMouseEnter",["mouseout","mouseover"]);Cn("onMouseLeave",["mouseout","mouseover"]);Cn("onPointerEnter",["pointerout","pointerover"]);Cn("onPointerLeave",["pointerout","pointerover"]);Qr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Qr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Qr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Qr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Qr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Qr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pi="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(" "),H0=new Set("cancel close invalid load scroll toggle".split(" ").concat(pi));function tf(t,e,r){var n=t.type||"unknown-event";t.currentTarget=r,zg(n,e,void 0,t),t.currentTarget=null}function Yh(t,e){e=(e&4)!==0;for(var r=0;r<t.length;r++){var n=t[r],i=n.event;n=n.listeners;e:{var s=void 0;if(e)for(var o=n.length-1;0<=o;o--){var a=n[o],l=a.instance,h=a.currentTarget;if(a=a.listener,l!==s&&i.isPropagationStopped())break e;tf(i,a,h),s=l}else for(o=0;o<n.length;o++){if(a=n[o],l=a.instance,h=a.currentTarget,a=a.listener,l!==s&&i.isPropagationStopped())break e;tf(i,a,h),s=l}}}if(Gs)throw t=kl,Gs=!1,kl=null,t}function Ce(t,e){var r=e[Ll];r===void 0&&(r=e[Ll]=new Set);var n=t+"__bubble";r.has(n)||(Zh(e,t,2,!1),r.add(n))}function sa(t,e,r){var n=0;e&&(n|=4),Zh(r,t,n,e)}var us="_reactListening"+Math.random().toString(36).slice(2);function Ii(t){if(!t[us]){t[us]=!0,ih.forEach(function(r){r!=="selectionchange"&&(H0.has(r)||sa(r,!1,t),sa(r,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[us]||(e[us]=!0,sa("selectionchange",!1,e))}}function Zh(t,e,r,n){switch(Dh(e)){case 1:var i=n0;break;case 4:i=i0;break;default:i=ku}r=i.bind(null,e,r,t),i=void 0,!Nl||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),n?i!==void 0?t.addEventListener(e,r,{capture:!0,passive:i}):t.addEventListener(e,r,!0):i!==void 0?t.addEventListener(e,r,{passive:i}):t.addEventListener(e,r,!1)}function oa(t,e,r,n,i){var s=n;if(!(e&1)&&!(e&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var a=n.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=n.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;a!==null;){if(o=Ur(a),o===null)return;if(l=o.tag,l===5||l===6){n=s=o;continue e}a=a.parentNode}}n=n.return}xh(function(){var h=s,g=_u(r),v=[];e:{var y=Xh.get(t);if(y!==void 0){var m=Au,N=t;switch(t){case"keypress":if(Os(r)===0)break e;case"keydown":case"keyup":m=v0;break;case"focusin":N="focus",m=Jo;break;case"focusout":N="blur",m=Jo;break;case"beforeblur":case"afterblur":m=Jo;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":m=Hc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=a0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=_0;break;case Gh:case Vh:case $h:m=c0;break;case qh:m=S0;break;case"scroll":m=s0;break;case"wheel":m=k0;break;case"copy":case"cut":case"paste":m=d0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Gc}var b=(e&4)!==0,A=!b&&t==="scroll",d=b?y!==null?y+"Capture":null:y;b=[];for(var p=h,E;p!==null;){E=p;var C=E.stateNode;if(E.tag===5&&C!==null&&(E=C,d!==null&&(C=ki(p,d),C!=null&&b.push(Oi(p,C,E)))),A)break;p=p.return}0<b.length&&(y=new m(y,N,null,r,g),v.push({event:y,listeners:b}))}}if(!(e&7)){e:{if(y=t==="mouseover"||t==="pointerover",m=t==="mouseout"||t==="pointerout",y&&r!==El&&(N=r.relatedTarget||r.fromElement)&&(Ur(N)||N[ar]))break e;if((m||y)&&(y=g.window===g?g:(y=g.ownerDocument)?y.defaultView||y.parentWindow:window,m?(N=r.relatedTarget||r.toElement,m=h,N=N?Ur(N):null,N!==null&&(A=Jr(N),N!==A||N.tag!==5&&N.tag!==6)&&(N=null)):(m=null,N=h),m!==N)){if(b=Hc,C="onMouseLeave",d="onMouseEnter",p="mouse",(t==="pointerout"||t==="pointerover")&&(b=Gc,C="onPointerLeave",d="onPointerEnter",p="pointer"),A=m==null?y:fn(m),E=N==null?y:fn(N),y=new b(C,p+"leave",m,r,g),y.target=A,y.relatedTarget=E,C=null,Ur(g)===h&&(b=new b(d,p+"enter",N,r,g),b.target=E,b.relatedTarget=A,C=b),A=C,m&&N)t:{for(b=m,d=N,p=0,E=b;E;E=rn(E))p++;for(E=0,C=d;C;C=rn(C))E++;for(;0<p-E;)b=rn(b),p--;for(;0<E-p;)d=rn(d),E--;for(;p--;){if(b===d||d!==null&&b===d.alternate)break t;b=rn(b),d=rn(d)}b=null}else b=null;m!==null&&rf(v,y,m,b,!1),N!==null&&A!==null&&rf(v,A,N,b,!0)}}e:{if(y=h?fn(h):window,m=y.nodeName&&y.nodeName.toLowerCase(),m==="select"||m==="input"&&y.type==="file")var O=O0;else if(qc(y))if(Uh)O=F0;else{O=P0;var H=D0}else(m=y.nodeName)&&m.toLowerCase()==="input"&&(y.type==="checkbox"||y.type==="radio")&&(O=L0);if(O&&(O=O(t,h))){Mh(v,O,r,g);break e}H&&H(t,y,h),t==="focusout"&&(H=y._wrapperState)&&H.controlled&&y.type==="number"&&wl(y,"number",y.value)}switch(H=h?fn(h):window,t){case"focusin":(qc(H)||H.contentEditable==="true")&&(un=H,jl=h,vi=null);break;case"focusout":vi=jl=un=null;break;case"mousedown":Rl=!0;break;case"contextmenu":case"mouseup":case"dragend":Rl=!1,Jc(v,r,g);break;case"selectionchange":if(U0)break;case"keydown":case"keyup":Jc(v,r,g)}var U;if(ju)e:{switch(t){case"compositionstart":var G="onCompositionStart";break e;case"compositionend":G="onCompositionEnd";break e;case"compositionupdate":G="onCompositionUpdate";break e}G=void 0}else ln?Fh(t,r)&&(G="onCompositionEnd"):t==="keydown"&&r.keyCode===229&&(G="onCompositionStart");G&&(Lh&&r.locale!=="ko"&&(ln||G!=="onCompositionStart"?G==="onCompositionEnd"&&ln&&(U=Ph()):(wr=g,Tu="value"in wr?wr.value:wr.textContent,ln=!0)),H=Ys(h,G),0<H.length&&(G=new Kc(G,t,null,r,g),v.push({event:G,listeners:H}),U?G.data=U:(U=Bh(r),U!==null&&(G.data=U)))),(U=A0?C0(t,r):j0(t,r))&&(h=Ys(h,"onBeforeInput"),0<h.length&&(g=new Kc("onBeforeInput","beforeinput",null,r,g),v.push({event:g,listeners:h}),g.data=U))}Yh(v,e)})}function Oi(t,e,r){return{instance:t,listener:e,currentTarget:r}}function Ys(t,e){for(var r=e+"Capture",n=[];t!==null;){var i=t,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=ki(t,r),s!=null&&n.unshift(Oi(t,s,i)),s=ki(t,e),s!=null&&n.push(Oi(t,s,i))),t=t.return}return n}function rn(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function rf(t,e,r,n,i){for(var s=e._reactName,o=[];r!==null&&r!==n;){var a=r,l=a.alternate,h=a.stateNode;if(l!==null&&l===n)break;a.tag===5&&h!==null&&(a=h,i?(l=ki(r,s),l!=null&&o.unshift(Oi(r,l,a))):i||(l=ki(r,s),l!=null&&o.push(Oi(r,l,a)))),r=r.return}o.length!==0&&t.push({event:e,listeners:o})}var K0=/\r\n?/g,G0=/\u0000|\uFFFD/g;function nf(t){return(typeof t=="string"?t:""+t).replace(K0,`
|
||
`).replace(G0,"")}function cs(t,e,r){if(e=nf(e),nf(t)!==e&&r)throw Error(fe(425))}function Zs(){}var Il=null,Ol=null;function Dl(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Pl=typeof setTimeout=="function"?setTimeout:void 0,V0=typeof clearTimeout=="function"?clearTimeout:void 0,sf=typeof Promise=="function"?Promise:void 0,$0=typeof queueMicrotask=="function"?queueMicrotask:typeof sf<"u"?function(t){return sf.resolve(null).then(t).catch(q0)}:Pl;function q0(t){setTimeout(function(){throw t})}function aa(t,e){var r=e,n=0;do{var i=r.nextSibling;if(t.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){t.removeChild(i),Ci(e);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);Ci(e)}function Sr(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function of(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="$"||r==="$!"||r==="$?"){if(e===0)return t;e--}else r==="/$"&&e++}t=t.previousSibling}return null}var Hn=Math.random().toString(36).slice(2),$t="__reactFiber$"+Hn,Di="__reactProps$"+Hn,ar="__reactContainer$"+Hn,Ll="__reactEvents$"+Hn,X0="__reactListeners$"+Hn,Y0="__reactHandles$"+Hn;function Ur(t){var e=t[$t];if(e)return e;for(var r=t.parentNode;r;){if(e=r[ar]||r[$t]){if(r=e.alternate,e.child!==null||r!==null&&r.child!==null)for(t=of(t);t!==null;){if(r=t[$t])return r;t=of(t)}return e}t=r,r=t.parentNode}return null}function Gi(t){return t=t[$t]||t[ar],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function fn(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(fe(33))}function _o(t){return t[Di]||null}var Fl=[],dn=-1;function Or(t){return{current:t}}function je(t){0>dn||(t.current=Fl[dn],Fl[dn]=null,dn--)}function Ae(t,e){dn++,Fl[dn]=t.current,t.current=e}var jr={},it=Or(jr),ht=Or(!1),$r=jr;function jn(t,e){var r=t.type.contextTypes;if(!r)return jr;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in r)i[s]=e[s];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function pt(t){return t=t.childContextTypes,t!=null}function Qs(){je(ht),je(it)}function af(t,e,r){if(it.current!==jr)throw Error(fe(168));Ae(it,e),Ae(ht,r)}function Qh(t,e,r){var n=t.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(fe(108,Dg(t)||"Unknown",i));return De({},r,n)}function Js(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||jr,$r=it.current,Ae(it,t),Ae(ht,ht.current),!0}function lf(t,e,r){var n=t.stateNode;if(!n)throw Error(fe(169));r?(t=Qh(t,e,$r),n.__reactInternalMemoizedMergedChildContext=t,je(ht),je(it),Ae(it,t)):je(ht),Ae(ht,r)}var tr=null,Eo=!1,la=!1;function Jh(t){tr===null?tr=[t]:tr.push(t)}function Z0(t){Eo=!0,Jh(t)}function Dr(){if(!la&&tr!==null){la=!0;var t=0,e=Ne;try{var r=tr;for(Ne=1;t<r.length;t++){var n=r[t];do n=n(!0);while(n!==null)}tr=null,Eo=!1}catch(i){throw tr!==null&&(tr=tr.slice(t+1)),Sh(Eu,Dr),i}finally{Ne=e,la=!1}}return null}var hn=[],pn=0,eo=null,to=0,St=[],Nt=0,qr=null,rr=1,nr="";function Br(t,e){hn[pn++]=to,hn[pn++]=eo,eo=t,to=e}function ep(t,e,r){St[Nt++]=rr,St[Nt++]=nr,St[Nt++]=qr,qr=t;var n=rr;t=nr;var i=32-Ft(n)-1;n&=~(1<<i),r+=1;var s=32-Ft(e)+i;if(30<s){var o=i-i%5;s=(n&(1<<o)-1).toString(32),n>>=o,i-=o,rr=1<<32-Ft(e)+i|r<<i|n,nr=s+t}else rr=1<<s|r<<i|n,nr=t}function Iu(t){t.return!==null&&(Br(t,1),ep(t,1,0))}function Ou(t){for(;t===eo;)eo=hn[--pn],hn[pn]=null,to=hn[--pn],hn[pn]=null;for(;t===qr;)qr=St[--Nt],St[Nt]=null,nr=St[--Nt],St[Nt]=null,rr=St[--Nt],St[Nt]=null}var vt=null,wt=null,Re=!1,Pt=null;function tp(t,e){var r=kt(5,null,null,0);r.elementType="DELETED",r.stateNode=e,r.return=t,e=t.deletions,e===null?(t.deletions=[r],t.flags|=16):e.push(r)}function uf(t,e){switch(t.tag){case 5:var r=t.type;return e=e.nodeType!==1||r.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,vt=t,wt=Sr(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,vt=t,wt=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(r=qr!==null?{id:rr,overflow:nr}:null,t.memoizedState={dehydrated:e,treeContext:r,retryLane:1073741824},r=kt(18,null,null,0),r.stateNode=e,r.return=t,t.child=r,vt=t,wt=null,!0):!1;default:return!1}}function Bl(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Ml(t){if(Re){var e=wt;if(e){var r=e;if(!uf(t,e)){if(Bl(t))throw Error(fe(418));e=Sr(r.nextSibling);var n=vt;e&&uf(t,e)?tp(n,r):(t.flags=t.flags&-4097|2,Re=!1,vt=t)}}else{if(Bl(t))throw Error(fe(418));t.flags=t.flags&-4097|2,Re=!1,vt=t}}}function cf(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;vt=t}function fs(t){if(t!==vt)return!1;if(!Re)return cf(t),Re=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!Dl(t.type,t.memoizedProps)),e&&(e=wt)){if(Bl(t))throw rp(),Error(fe(418));for(;e;)tp(t,e),e=Sr(e.nextSibling)}if(cf(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(fe(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="/$"){if(e===0){wt=Sr(t.nextSibling);break e}e--}else r!=="$"&&r!=="$!"&&r!=="$?"||e++}t=t.nextSibling}wt=null}}else wt=vt?Sr(t.stateNode.nextSibling):null;return!0}function rp(){for(var t=wt;t;)t=Sr(t.nextSibling)}function Rn(){wt=vt=null,Re=!1}function Du(t){Pt===null?Pt=[t]:Pt.push(t)}var Q0=cr.ReactCurrentBatchConfig;function ii(t,e,r){if(t=r.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(fe(309));var n=r.stateNode}if(!n)throw Error(fe(147,t));var i=n,s=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===s?e.ref:(e=function(o){var a=i.refs;o===null?delete a[s]:a[s]=o},e._stringRef=s,e)}if(typeof t!="string")throw Error(fe(284));if(!r._owner)throw Error(fe(290,t))}return t}function ds(t,e){throw t=Object.prototype.toString.call(e),Error(fe(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function ff(t){var e=t._init;return e(t._payload)}function np(t){function e(d,p){if(t){var E=d.deletions;E===null?(d.deletions=[p],d.flags|=16):E.push(p)}}function r(d,p){if(!t)return null;for(;p!==null;)e(d,p),p=p.sibling;return null}function n(d,p){for(d=new Map;p!==null;)p.key!==null?d.set(p.key,p):d.set(p.index,p),p=p.sibling;return d}function i(d,p){return d=Ar(d,p),d.index=0,d.sibling=null,d}function s(d,p,E){return d.index=E,t?(E=d.alternate,E!==null?(E=E.index,E<p?(d.flags|=2,p):E):(d.flags|=2,p)):(d.flags|=1048576,p)}function o(d){return t&&d.alternate===null&&(d.flags|=2),d}function a(d,p,E,C){return p===null||p.tag!==6?(p=ma(E,d.mode,C),p.return=d,p):(p=i(p,E),p.return=d,p)}function l(d,p,E,C){var O=E.type;return O===an?g(d,p,E.props.children,C,E.key):p!==null&&(p.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===pr&&ff(O)===p.type)?(C=i(p,E.props),C.ref=ii(d,p,E),C.return=d,C):(C=Us(E.type,E.key,E.props,null,d.mode,C),C.ref=ii(d,p,E),C.return=d,C)}function h(d,p,E,C){return p===null||p.tag!==4||p.stateNode.containerInfo!==E.containerInfo||p.stateNode.implementation!==E.implementation?(p=ga(E,d.mode,C),p.return=d,p):(p=i(p,E.children||[]),p.return=d,p)}function g(d,p,E,C,O){return p===null||p.tag!==7?(p=Vr(E,d.mode,C,O),p.return=d,p):(p=i(p,E),p.return=d,p)}function v(d,p,E){if(typeof p=="string"&&p!==""||typeof p=="number")return p=ma(""+p,d.mode,E),p.return=d,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case ts:return E=Us(p.type,p.key,p.props,null,d.mode,E),E.ref=ii(d,null,p),E.return=d,E;case on:return p=ga(p,d.mode,E),p.return=d,p;case pr:var C=p._init;return v(d,C(p._payload),E)}if(di(p)||Jn(p))return p=Vr(p,d.mode,E,null),p.return=d,p;ds(d,p)}return null}function y(d,p,E,C){var O=p!==null?p.key:null;if(typeof E=="string"&&E!==""||typeof E=="number")return O!==null?null:a(d,p,""+E,C);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case ts:return E.key===O?l(d,p,E,C):null;case on:return E.key===O?h(d,p,E,C):null;case pr:return O=E._init,y(d,p,O(E._payload),C)}if(di(E)||Jn(E))return O!==null?null:g(d,p,E,C,null);ds(d,E)}return null}function m(d,p,E,C,O){if(typeof C=="string"&&C!==""||typeof C=="number")return d=d.get(E)||null,a(p,d,""+C,O);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case ts:return d=d.get(C.key===null?E:C.key)||null,l(p,d,C,O);case on:return d=d.get(C.key===null?E:C.key)||null,h(p,d,C,O);case pr:var H=C._init;return m(d,p,E,H(C._payload),O)}if(di(C)||Jn(C))return d=d.get(E)||null,g(p,d,C,O,null);ds(p,C)}return null}function N(d,p,E,C){for(var O=null,H=null,U=p,G=p=0,j=null;U!==null&&G<E.length;G++){U.index>G?(j=U,U=null):j=U.sibling;var ee=y(d,U,E[G],C);if(ee===null){U===null&&(U=j);break}t&&U&&ee.alternate===null&&e(d,U),p=s(ee,p,G),H===null?O=ee:H.sibling=ee,H=ee,U=j}if(G===E.length)return r(d,U),Re&&Br(d,G),O;if(U===null){for(;G<E.length;G++)U=v(d,E[G],C),U!==null&&(p=s(U,p,G),H===null?O=U:H.sibling=U,H=U);return Re&&Br(d,G),O}for(U=n(d,U);G<E.length;G++)j=m(U,d,G,E[G],C),j!==null&&(t&&j.alternate!==null&&U.delete(j.key===null?G:j.key),p=s(j,p,G),H===null?O=j:H.sibling=j,H=j);return t&&U.forEach(function(de){return e(d,de)}),Re&&Br(d,G),O}function b(d,p,E,C){var O=Jn(E);if(typeof O!="function")throw Error(fe(150));if(E=O.call(E),E==null)throw Error(fe(151));for(var H=O=null,U=p,G=p=0,j=null,ee=E.next();U!==null&&!ee.done;G++,ee=E.next()){U.index>G?(j=U,U=null):j=U.sibling;var de=y(d,U,ee.value,C);if(de===null){U===null&&(U=j);break}t&&U&&de.alternate===null&&e(d,U),p=s(de,p,G),H===null?O=de:H.sibling=de,H=de,U=j}if(ee.done)return r(d,U),Re&&Br(d,G),O;if(U===null){for(;!ee.done;G++,ee=E.next())ee=v(d,ee.value,C),ee!==null&&(p=s(ee,p,G),H===null?O=ee:H.sibling=ee,H=ee);return Re&&Br(d,G),O}for(U=n(d,U);!ee.done;G++,ee=E.next())ee=m(U,d,G,ee.value,C),ee!==null&&(t&&ee.alternate!==null&&U.delete(ee.key===null?G:ee.key),p=s(ee,p,G),H===null?O=ee:H.sibling=ee,H=ee);return t&&U.forEach(function(L){return e(d,L)}),Re&&Br(d,G),O}function A(d,p,E,C){if(typeof E=="object"&&E!==null&&E.type===an&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case ts:e:{for(var O=E.key,H=p;H!==null;){if(H.key===O){if(O=E.type,O===an){if(H.tag===7){r(d,H.sibling),p=i(H,E.props.children),p.return=d,d=p;break e}}else if(H.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===pr&&ff(O)===H.type){r(d,H.sibling),p=i(H,E.props),p.ref=ii(d,H,E),p.return=d,d=p;break e}r(d,H);break}else e(d,H);H=H.sibling}E.type===an?(p=Vr(E.props.children,d.mode,C,E.key),p.return=d,d=p):(C=Us(E.type,E.key,E.props,null,d.mode,C),C.ref=ii(d,p,E),C.return=d,d=C)}return o(d);case on:e:{for(H=E.key;p!==null;){if(p.key===H)if(p.tag===4&&p.stateNode.containerInfo===E.containerInfo&&p.stateNode.implementation===E.implementation){r(d,p.sibling),p=i(p,E.children||[]),p.return=d,d=p;break e}else{r(d,p);break}else e(d,p);p=p.sibling}p=ga(E,d.mode,C),p.return=d,d=p}return o(d);case pr:return H=E._init,A(d,p,H(E._payload),C)}if(di(E))return N(d,p,E,C);if(Jn(E))return b(d,p,E,C);ds(d,E)}return typeof E=="string"&&E!==""||typeof E=="number"?(E=""+E,p!==null&&p.tag===6?(r(d,p.sibling),p=i(p,E),p.return=d,d=p):(r(d,p),p=ma(E,d.mode,C),p.return=d,d=p),o(d)):r(d,p)}return A}var In=np(!0),ip=np(!1),ro=Or(null),no=null,mn=null,Pu=null;function Lu(){Pu=mn=no=null}function Fu(t){var e=ro.current;je(ro),t._currentValue=e}function Ul(t,e,r){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===r)break;t=t.return}}function _n(t,e){no=t,Pu=mn=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(ft=!0),t.firstContext=null)}function At(t){var e=t._currentValue;if(Pu!==t)if(t={context:t,memoizedValue:e,next:null},mn===null){if(no===null)throw Error(fe(308));mn=t,no.dependencies={lanes:0,firstContext:t}}else mn=mn.next=t;return e}var zr=null;function Bu(t){zr===null?zr=[t]:zr.push(t)}function sp(t,e,r,n){var i=e.interleaved;return i===null?(r.next=r,Bu(e)):(r.next=i.next,i.next=r),e.interleaved=r,lr(t,n)}function lr(t,e){t.lanes|=e;var r=t.alternate;for(r!==null&&(r.lanes|=e),r=t,t=t.return;t!==null;)t.childLanes|=e,r=t.alternate,r!==null&&(r.childLanes|=e),r=t,t=t.return;return r.tag===3?r.stateNode:null}var mr=!1;function Mu(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function op(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function sr(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Nr(t,e,r){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,_e&2){var i=n.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),n.pending=e,lr(t,r)}return i=n.interleaved,i===null?(e.next=e,Bu(n)):(e.next=i.next,i.next=e),n.interleaved=e,lr(t,r)}function Ds(t,e,r){if(e=e.updateQueue,e!==null&&(e=e.shared,(r&4194240)!==0)){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,Su(t,r)}}function df(t,e){var r=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,s=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};s===null?i=s=o:s=s.next=o,r=r.next}while(r!==null);s===null?i=s=e:s=s.next=e}else i=s=e;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:n.shared,effects:n.effects},t.updateQueue=r;return}t=r.lastBaseUpdate,t===null?r.firstBaseUpdate=e:t.next=e,r.lastBaseUpdate=e}function io(t,e,r,n){var i=t.updateQueue;mr=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,h=l.next;l.next=null,o===null?s=h:o.next=h,o=l;var g=t.alternate;g!==null&&(g=g.updateQueue,a=g.lastBaseUpdate,a!==o&&(a===null?g.firstBaseUpdate=h:a.next=h,g.lastBaseUpdate=l))}if(s!==null){var v=i.baseState;o=0,g=h=l=null,a=s;do{var y=a.lane,m=a.eventTime;if((n&y)===y){g!==null&&(g=g.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var N=t,b=a;switch(y=e,m=r,b.tag){case 1:if(N=b.payload,typeof N=="function"){v=N.call(m,v,y);break e}v=N;break e;case 3:N.flags=N.flags&-65537|128;case 0:if(N=b.payload,y=typeof N=="function"?N.call(m,v,y):N,y==null)break e;v=De({},v,y);break e;case 2:mr=!0}}a.callback!==null&&a.lane!==0&&(t.flags|=64,y=i.effects,y===null?i.effects=[a]:y.push(a))}else m={eventTime:m,lane:y,tag:a.tag,payload:a.payload,callback:a.callback,next:null},g===null?(h=g=m,l=v):g=g.next=m,o|=y;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;y=a,a=y.next,y.next=null,i.lastBaseUpdate=y,i.shared.pending=null}}while(!0);if(g===null&&(l=v),i.baseState=l,i.firstBaseUpdate=h,i.lastBaseUpdate=g,e=i.shared.interleaved,e!==null){i=e;do o|=i.lane,i=i.next;while(i!==e)}else s===null&&(i.shared.lanes=0);Yr|=o,t.lanes=o,t.memoizedState=v}}function hf(t,e,r){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var n=t[e],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(fe(191,i));i.call(n)}}}var Vi={},Yt=Or(Vi),Pi=Or(Vi),Li=Or(Vi);function Wr(t){if(t===Vi)throw Error(fe(174));return t}function Uu(t,e){switch(Ae(Li,e),Ae(Pi,t),Ae(Yt,Vi),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:xl(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=xl(e,t)}je(Yt),Ae(Yt,e)}function On(){je(Yt),je(Pi),je(Li)}function ap(t){Wr(Li.current);var e=Wr(Yt.current),r=xl(e,t.type);e!==r&&(Ae(Pi,t),Ae(Yt,r))}function zu(t){Pi.current===t&&(je(Yt),je(Pi))}var Ie=Or(0);function so(t){for(var e=t;e!==null;){if(e.tag===13){var r=e.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var ua=[];function Wu(){for(var t=0;t<ua.length;t++)ua[t]._workInProgressVersionPrimary=null;ua.length=0}var Ps=cr.ReactCurrentDispatcher,ca=cr.ReactCurrentBatchConfig,Xr=0,Oe=null,Ke=null,Ve=null,oo=!1,xi=!1,Fi=0,J0=0;function Qe(){throw Error(fe(321))}function Hu(t,e){if(e===null)return!1;for(var r=0;r<e.length&&r<t.length;r++)if(!Mt(t[r],e[r]))return!1;return!0}function Ku(t,e,r,n,i,s){if(Xr=s,Oe=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Ps.current=t===null||t.memoizedState===null?ny:iy,t=r(n,i),xi){s=0;do{if(xi=!1,Fi=0,25<=s)throw Error(fe(301));s+=1,Ve=Ke=null,e.updateQueue=null,Ps.current=sy,t=r(n,i)}while(xi)}if(Ps.current=ao,e=Ke!==null&&Ke.next!==null,Xr=0,Ve=Ke=Oe=null,oo=!1,e)throw Error(fe(300));return t}function Gu(){var t=Fi!==0;return Fi=0,t}function Ht(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ve===null?Oe.memoizedState=Ve=t:Ve=Ve.next=t,Ve}function Ct(){if(Ke===null){var t=Oe.alternate;t=t!==null?t.memoizedState:null}else t=Ke.next;var e=Ve===null?Oe.memoizedState:Ve.next;if(e!==null)Ve=e,Ke=t;else{if(t===null)throw Error(fe(310));Ke=t,t={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},Ve===null?Oe.memoizedState=Ve=t:Ve=Ve.next=t}return Ve}function Bi(t,e){return typeof e=="function"?e(t):e}function fa(t){var e=Ct(),r=e.queue;if(r===null)throw Error(fe(311));r.lastRenderedReducer=t;var n=Ke,i=n.baseQueue,s=r.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}n.baseQueue=i=s,r.pending=null}if(i!==null){s=i.next,n=n.baseState;var a=o=null,l=null,h=s;do{var g=h.lane;if((Xr&g)===g)l!==null&&(l=l.next={lane:0,action:h.action,hasEagerState:h.hasEagerState,eagerState:h.eagerState,next:null}),n=h.hasEagerState?h.eagerState:t(n,h.action);else{var v={lane:g,action:h.action,hasEagerState:h.hasEagerState,eagerState:h.eagerState,next:null};l===null?(a=l=v,o=n):l=l.next=v,Oe.lanes|=g,Yr|=g}h=h.next}while(h!==null&&h!==s);l===null?o=n:l.next=a,Mt(n,e.memoizedState)||(ft=!0),e.memoizedState=n,e.baseState=o,e.baseQueue=l,r.lastRenderedState=n}if(t=r.interleaved,t!==null){i=t;do s=i.lane,Oe.lanes|=s,Yr|=s,i=i.next;while(i!==t)}else i===null&&(r.lanes=0);return[e.memoizedState,r.dispatch]}function da(t){var e=Ct(),r=e.queue;if(r===null)throw Error(fe(311));r.lastRenderedReducer=t;var n=r.dispatch,i=r.pending,s=e.memoizedState;if(i!==null){r.pending=null;var o=i=i.next;do s=t(s,o.action),o=o.next;while(o!==i);Mt(s,e.memoizedState)||(ft=!0),e.memoizedState=s,e.baseQueue===null&&(e.baseState=s),r.lastRenderedState=s}return[s,n]}function lp(){}function up(t,e){var r=Oe,n=Ct(),i=e(),s=!Mt(n.memoizedState,i);if(s&&(n.memoizedState=i,ft=!0),n=n.queue,Vu(dp.bind(null,r,n,t),[t]),n.getSnapshot!==e||s||Ve!==null&&Ve.memoizedState.tag&1){if(r.flags|=2048,Mi(9,fp.bind(null,r,n,i,e),void 0,null),$e===null)throw Error(fe(349));Xr&30||cp(r,e,i)}return i}function cp(t,e,r){t.flags|=16384,t={getSnapshot:e,value:r},e=Oe.updateQueue,e===null?(e={lastEffect:null,stores:null},Oe.updateQueue=e,e.stores=[t]):(r=e.stores,r===null?e.stores=[t]:r.push(t))}function fp(t,e,r,n){e.value=r,e.getSnapshot=n,hp(e)&&pp(t)}function dp(t,e,r){return r(function(){hp(e)&&pp(t)})}function hp(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!Mt(t,r)}catch{return!0}}function pp(t){var e=lr(t,1);e!==null&&Bt(e,t,1,-1)}function pf(t){var e=Ht();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Bi,lastRenderedState:t},e.queue=t,t=t.dispatch=ry.bind(null,Oe,t),[e.memoizedState,t]}function Mi(t,e,r,n){return t={tag:t,create:e,destroy:r,deps:n,next:null},e=Oe.updateQueue,e===null?(e={lastEffect:null,stores:null},Oe.updateQueue=e,e.lastEffect=t.next=t):(r=e.lastEffect,r===null?e.lastEffect=t.next=t:(n=r.next,r.next=t,t.next=n,e.lastEffect=t)),t}function mp(){return Ct().memoizedState}function Ls(t,e,r,n){var i=Ht();Oe.flags|=t,i.memoizedState=Mi(1|e,r,void 0,n===void 0?null:n)}function So(t,e,r,n){var i=Ct();n=n===void 0?null:n;var s=void 0;if(Ke!==null){var o=Ke.memoizedState;if(s=o.destroy,n!==null&&Hu(n,o.deps)){i.memoizedState=Mi(e,r,s,n);return}}Oe.flags|=t,i.memoizedState=Mi(1|e,r,s,n)}function mf(t,e){return Ls(8390656,8,t,e)}function Vu(t,e){return So(2048,8,t,e)}function gp(t,e){return So(4,2,t,e)}function yp(t,e){return So(4,4,t,e)}function wp(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function vp(t,e,r){return r=r!=null?r.concat([t]):null,So(4,4,wp.bind(null,e,t),r)}function $u(){}function xp(t,e){var r=Ct();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&Hu(e,n[1])?n[0]:(r.memoizedState=[t,e],t)}function bp(t,e){var r=Ct();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&Hu(e,n[1])?n[0]:(t=t(),r.memoizedState=[t,e],t)}function _p(t,e,r){return Xr&21?(Mt(r,e)||(r=Th(),Oe.lanes|=r,Yr|=r,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,ft=!0),t.memoizedState=r)}function ey(t,e){var r=Ne;Ne=r!==0&&4>r?r:4,t(!0);var n=ca.transition;ca.transition={};try{t(!1),e()}finally{Ne=r,ca.transition=n}}function Ep(){return Ct().memoizedState}function ty(t,e,r){var n=Tr(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Sp(t))Np(e,r);else if(r=sp(t,e,r,n),r!==null){var i=at();Bt(r,t,n,i),kp(r,e,n)}}function ry(t,e,r){var n=Tr(t),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Sp(t))Np(e,i);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var o=e.lastRenderedState,a=s(o,r);if(i.hasEagerState=!0,i.eagerState=a,Mt(a,o)){var l=e.interleaved;l===null?(i.next=i,Bu(e)):(i.next=l.next,l.next=i),e.interleaved=i;return}}catch{}finally{}r=sp(t,e,i,n),r!==null&&(i=at(),Bt(r,t,n,i),kp(r,e,n))}}function Sp(t){var e=t.alternate;return t===Oe||e!==null&&e===Oe}function Np(t,e){xi=oo=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function kp(t,e,r){if(r&4194240){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,Su(t,r)}}var ao={readContext:At,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useInsertionEffect:Qe,useLayoutEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useMutableSource:Qe,useSyncExternalStore:Qe,useId:Qe,unstable_isNewReconciler:!1},ny={readContext:At,useCallback:function(t,e){return Ht().memoizedState=[t,e===void 0?null:e],t},useContext:At,useEffect:mf,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,Ls(4194308,4,wp.bind(null,e,t),r)},useLayoutEffect:function(t,e){return Ls(4194308,4,t,e)},useInsertionEffect:function(t,e){return Ls(4,2,t,e)},useMemo:function(t,e){var r=Ht();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=Ht();return e=r!==void 0?r(e):e,n.memoizedState=n.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},n.queue=t,t=t.dispatch=ty.bind(null,Oe,t),[n.memoizedState,t]},useRef:function(t){var e=Ht();return t={current:t},e.memoizedState=t},useState:pf,useDebugValue:$u,useDeferredValue:function(t){return Ht().memoizedState=t},useTransition:function(){var t=pf(!1),e=t[0];return t=ey.bind(null,t[1]),Ht().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=Oe,i=Ht();if(Re){if(r===void 0)throw Error(fe(407));r=r()}else{if(r=e(),$e===null)throw Error(fe(349));Xr&30||cp(n,e,r)}i.memoizedState=r;var s={value:r,getSnapshot:e};return i.queue=s,mf(dp.bind(null,n,s,t),[t]),n.flags|=2048,Mi(9,fp.bind(null,n,s,r,e),void 0,null),r},useId:function(){var t=Ht(),e=$e.identifierPrefix;if(Re){var r=nr,n=rr;r=(n&~(1<<32-Ft(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=Fi++,0<r&&(e+="H"+r.toString(32)),e+=":"}else r=J0++,e=":"+e+"r"+r.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},iy={readContext:At,useCallback:xp,useContext:At,useEffect:Vu,useImperativeHandle:vp,useInsertionEffect:gp,useLayoutEffect:yp,useMemo:bp,useReducer:fa,useRef:mp,useState:function(){return fa(Bi)},useDebugValue:$u,useDeferredValue:function(t){var e=Ct();return _p(e,Ke.memoizedState,t)},useTransition:function(){var t=fa(Bi)[0],e=Ct().memoizedState;return[t,e]},useMutableSource:lp,useSyncExternalStore:up,useId:Ep,unstable_isNewReconciler:!1},sy={readContext:At,useCallback:xp,useContext:At,useEffect:Vu,useImperativeHandle:vp,useInsertionEffect:gp,useLayoutEffect:yp,useMemo:bp,useReducer:da,useRef:mp,useState:function(){return da(Bi)},useDebugValue:$u,useDeferredValue:function(t){var e=Ct();return Ke===null?e.memoizedState=t:_p(e,Ke.memoizedState,t)},useTransition:function(){var t=da(Bi)[0],e=Ct().memoizedState;return[t,e]},useMutableSource:lp,useSyncExternalStore:up,useId:Ep,unstable_isNewReconciler:!1};function Ot(t,e){if(t&&t.defaultProps){e=De({},e),t=t.defaultProps;for(var r in t)e[r]===void 0&&(e[r]=t[r]);return e}return e}function zl(t,e,r,n){e=t.memoizedState,r=r(n,e),r=r==null?e:De({},e,r),t.memoizedState=r,t.lanes===0&&(t.updateQueue.baseState=r)}var No={isMounted:function(t){return(t=t._reactInternals)?Jr(t)===t:!1},enqueueSetState:function(t,e,r){t=t._reactInternals;var n=at(),i=Tr(t),s=sr(n,i);s.payload=e,r!=null&&(s.callback=r),e=Nr(t,s,i),e!==null&&(Bt(e,t,i,n),Ds(e,t,i))},enqueueReplaceState:function(t,e,r){t=t._reactInternals;var n=at(),i=Tr(t),s=sr(n,i);s.tag=1,s.payload=e,r!=null&&(s.callback=r),e=Nr(t,s,i),e!==null&&(Bt(e,t,i,n),Ds(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var r=at(),n=Tr(t),i=sr(r,n);i.tag=2,e!=null&&(i.callback=e),e=Nr(t,i,n),e!==null&&(Bt(e,t,n,r),Ds(e,t,n))}};function gf(t,e,r,n,i,s,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,s,o):e.prototype&&e.prototype.isPureReactComponent?!Ri(r,n)||!Ri(i,s):!0}function Tp(t,e,r){var n=!1,i=jr,s=e.contextType;return typeof s=="object"&&s!==null?s=At(s):(i=pt(e)?$r:it.current,n=e.contextTypes,s=(n=n!=null)?jn(t,i):jr),e=new e(r,s),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=No,t.stateNode=e,e._reactInternals=t,n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=s),e}function yf(t,e,r,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(r,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(r,n),e.state!==t&&No.enqueueReplaceState(e,e.state,null)}function Wl(t,e,r,n){var i=t.stateNode;i.props=r,i.state=t.memoizedState,i.refs={},Mu(t);var s=e.contextType;typeof s=="object"&&s!==null?i.context=At(s):(s=pt(e)?$r:it.current,i.context=jn(t,s)),i.state=t.memoizedState,s=e.getDerivedStateFromProps,typeof s=="function"&&(zl(t,e,s,r),i.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(e=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),e!==i.state&&No.enqueueReplaceState(i,i.state,null),io(t,r,i,n),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308)}function Dn(t,e){try{var r="",n=e;do r+=Og(n),n=n.return;while(n);var i=r}catch(s){i=`
|
||
Error generating stack: `+s.message+`
|
||
`+s.stack}return{value:t,source:e,stack:i,digest:null}}function ha(t,e,r){return{value:t,source:null,stack:r??null,digest:e??null}}function Hl(t,e){try{console.error(e.value)}catch(r){setTimeout(function(){throw r})}}var oy=typeof WeakMap=="function"?WeakMap:Map;function Ap(t,e,r){r=sr(-1,r),r.tag=3,r.payload={element:null};var n=e.value;return r.callback=function(){uo||(uo=!0,Jl=n),Hl(t,e)},r}function Cp(t,e,r){r=sr(-1,r),r.tag=3;var n=t.type.getDerivedStateFromError;if(typeof n=="function"){var i=e.value;r.payload=function(){return n(i)},r.callback=function(){Hl(t,e)}}var s=t.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(r.callback=function(){Hl(t,e),typeof n!="function"&&(kr===null?kr=new Set([this]):kr.add(this));var o=e.stack;this.componentDidCatch(e.value,{componentStack:o!==null?o:""})}),r}function wf(t,e,r){var n=t.pingCache;if(n===null){n=t.pingCache=new oy;var i=new Set;n.set(e,i)}else i=n.get(e),i===void 0&&(i=new Set,n.set(e,i));i.has(r)||(i.add(r),t=xy.bind(null,t,e,r),e.then(t,t))}function vf(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function xf(t,e,r,n,i){return t.mode&1?(t.flags|=65536,t.lanes=i,t):(t===e?t.flags|=65536:(t.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(e=sr(-1,1),e.tag=2,Nr(r,e,1))),r.lanes|=1),t)}var ay=cr.ReactCurrentOwner,ft=!1;function ot(t,e,r,n){e.child=t===null?ip(e,null,r,n):In(e,t.child,r,n)}function bf(t,e,r,n,i){r=r.render;var s=e.ref;return _n(e,i),n=Ku(t,e,r,n,s,i),r=Gu(),t!==null&&!ft?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,ur(t,e,i)):(Re&&r&&Iu(e),e.flags|=1,ot(t,e,n,i),e.child)}function _f(t,e,r,n,i){if(t===null){var s=r.type;return typeof s=="function"&&!tc(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(e.tag=15,e.type=s,jp(t,e,s,n,i)):(t=Us(r.type,null,n,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(s=t.child,!(t.lanes&i)){var o=s.memoizedProps;if(r=r.compare,r=r!==null?r:Ri,r(o,n)&&t.ref===e.ref)return ur(t,e,i)}return e.flags|=1,t=Ar(s,n),t.ref=e.ref,t.return=e,e.child=t}function jp(t,e,r,n,i){if(t!==null){var s=t.memoizedProps;if(Ri(s,n)&&t.ref===e.ref)if(ft=!1,e.pendingProps=n=s,(t.lanes&i)!==0)t.flags&131072&&(ft=!0);else return e.lanes=t.lanes,ur(t,e,i)}return Kl(t,e,r,n,i)}function Rp(t,e,r){var n=e.pendingProps,i=n.children,s=t!==null?t.memoizedState:null;if(n.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ae(yn,yt),yt|=r;else{if(!(r&1073741824))return t=s!==null?s.baseLanes|r:r,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,Ae(yn,yt),yt|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=s!==null?s.baseLanes:r,Ae(yn,yt),yt|=n}else s!==null?(n=s.baseLanes|r,e.memoizedState=null):n=r,Ae(yn,yt),yt|=n;return ot(t,e,i,r),e.child}function Ip(t,e){var r=e.ref;(t===null&&r!==null||t!==null&&t.ref!==r)&&(e.flags|=512,e.flags|=2097152)}function Kl(t,e,r,n,i){var s=pt(r)?$r:it.current;return s=jn(e,s),_n(e,i),r=Ku(t,e,r,n,s,i),n=Gu(),t!==null&&!ft?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,ur(t,e,i)):(Re&&n&&Iu(e),e.flags|=1,ot(t,e,r,i),e.child)}function Ef(t,e,r,n,i){if(pt(r)){var s=!0;Js(e)}else s=!1;if(_n(e,i),e.stateNode===null)Fs(t,e),Tp(e,r,n),Wl(e,r,n,i),n=!0;else if(t===null){var o=e.stateNode,a=e.memoizedProps;o.props=a;var l=o.context,h=r.contextType;typeof h=="object"&&h!==null?h=At(h):(h=pt(r)?$r:it.current,h=jn(e,h));var g=r.getDerivedStateFromProps,v=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function";v||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==n||l!==h)&&yf(e,o,n,h),mr=!1;var y=e.memoizedState;o.state=y,io(e,n,o,i),l=e.memoizedState,a!==n||y!==l||ht.current||mr?(typeof g=="function"&&(zl(e,r,g,n),l=e.memoizedState),(a=mr||gf(e,r,a,n,y,l,h))?(v||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=l),o.props=n,o.state=l,o.context=h,n=a):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{o=e.stateNode,op(t,e),a=e.memoizedProps,h=e.type===e.elementType?a:Ot(e.type,a),o.props=h,v=e.pendingProps,y=o.context,l=r.contextType,typeof l=="object"&&l!==null?l=At(l):(l=pt(r)?$r:it.current,l=jn(e,l));var m=r.getDerivedStateFromProps;(g=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==v||y!==l)&&yf(e,o,n,l),mr=!1,y=e.memoizedState,o.state=y,io(e,n,o,i);var N=e.memoizedState;a!==v||y!==N||ht.current||mr?(typeof m=="function"&&(zl(e,r,m,n),N=e.memoizedState),(h=mr||gf(e,r,h,n,y,N,l)||!1)?(g||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,N,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,N,l)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&y===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&y===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=N),o.props=n,o.state=N,o.context=l,n=h):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&y===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&y===t.memoizedState||(e.flags|=1024),n=!1)}return Gl(t,e,r,n,s,i)}function Gl(t,e,r,n,i,s){Ip(t,e);var o=(e.flags&128)!==0;if(!n&&!o)return i&&lf(e,r,!1),ur(t,e,s);n=e.stateNode,ay.current=e;var a=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return e.flags|=1,t!==null&&o?(e.child=In(e,t.child,null,s),e.child=In(e,null,a,s)):ot(t,e,a,s),e.memoizedState=n.state,i&&lf(e,r,!0),e.child}function Op(t){var e=t.stateNode;e.pendingContext?af(t,e.pendingContext,e.pendingContext!==e.context):e.context&&af(t,e.context,!1),Uu(t,e.containerInfo)}function Sf(t,e,r,n,i){return Rn(),Du(i),e.flags|=256,ot(t,e,r,n),e.child}var Vl={dehydrated:null,treeContext:null,retryLane:0};function $l(t){return{baseLanes:t,cachePool:null,transitions:null}}function Dp(t,e,r){var n=e.pendingProps,i=Ie.current,s=!1,o=(e.flags&128)!==0,a;if((a=o)||(a=t!==null&&t.memoizedState===null?!1:(i&2)!==0),a?(s=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(i|=1),Ae(Ie,i&1),t===null)return Ml(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(o=n.children,t=n.fallback,s?(n=e.mode,s=e.child,o={mode:"hidden",children:o},!(n&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Ao(o,n,0,null),t=Vr(t,n,r,null),s.return=e,t.return=e,s.sibling=t,e.child=s,e.child.memoizedState=$l(r),e.memoizedState=Vl,t):qu(e,o));if(i=t.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return ly(t,e,o,n,a,i,r);if(s){s=n.fallback,o=e.mode,i=t.child,a=i.sibling;var l={mode:"hidden",children:n.children};return!(o&1)&&e.child!==i?(n=e.child,n.childLanes=0,n.pendingProps=l,e.deletions=null):(n=Ar(i,l),n.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=Ar(a,s):(s=Vr(s,o,r,null),s.flags|=2),s.return=e,n.return=e,n.sibling=s,e.child=n,n=s,s=e.child,o=t.child.memoizedState,o=o===null?$l(r):{baseLanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=t.childLanes&~r,e.memoizedState=Vl,n}return s=t.child,t=s.sibling,n=Ar(s,{mode:"visible",children:n.children}),!(e.mode&1)&&(n.lanes=r),n.return=e,n.sibling=null,t!==null&&(r=e.deletions,r===null?(e.deletions=[t],e.flags|=16):r.push(t)),e.child=n,e.memoizedState=null,n}function qu(t,e){return e=Ao({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function hs(t,e,r,n){return n!==null&&Du(n),In(e,t.child,null,r),t=qu(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function ly(t,e,r,n,i,s,o){if(r)return e.flags&256?(e.flags&=-257,n=ha(Error(fe(422))),hs(t,e,o,n)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(s=n.fallback,i=e.mode,n=Ao({mode:"visible",children:n.children},i,0,null),s=Vr(s,i,o,null),s.flags|=2,n.return=e,s.return=e,n.sibling=s,e.child=n,e.mode&1&&In(e,t.child,null,o),e.child.memoizedState=$l(o),e.memoizedState=Vl,s);if(!(e.mode&1))return hs(t,e,o,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var a=n.dgst;return n=a,s=Error(fe(419)),n=ha(s,n,void 0),hs(t,e,o,n)}if(a=(o&t.childLanes)!==0,ft||a){if(n=$e,n!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,lr(t,i),Bt(n,t,i,-1))}return ec(),n=ha(Error(fe(421))),hs(t,e,o,n)}return i.data==="$?"?(e.flags|=128,e.child=t.child,e=by.bind(null,t),i._reactRetry=e,null):(t=s.treeContext,wt=Sr(i.nextSibling),vt=e,Re=!0,Pt=null,t!==null&&(St[Nt++]=rr,St[Nt++]=nr,St[Nt++]=qr,rr=t.id,nr=t.overflow,qr=e),e=qu(e,n.children),e.flags|=4096,e)}function Nf(t,e,r){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),Ul(t.return,e,r)}function pa(t,e,r,n,i){var s=t.memoizedState;s===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=r,s.tailMode=i)}function Pp(t,e,r){var n=e.pendingProps,i=n.revealOrder,s=n.tail;if(ot(t,e,n.children,r),n=Ie.current,n&2)n=n&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Nf(t,r,e);else if(t.tag===19)Nf(t,r,e);else if(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;t=t.return}t.sibling.return=t.return,t=t.sibling}n&=1}if(Ae(Ie,n),!(e.mode&1))e.memoizedState=null;else switch(i){case"forwards":for(r=e.child,i=null;r!==null;)t=r.alternate,t!==null&&so(t)===null&&(i=r),r=r.sibling;r=i,r===null?(i=e.child,e.child=null):(i=r.sibling,r.sibling=null),pa(e,!1,i,r,s);break;case"backwards":for(r=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&so(t)===null){e.child=i;break}t=i.sibling,i.sibling=r,r=i,i=t}pa(e,!0,r,null,s);break;case"together":pa(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Fs(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function ur(t,e,r){if(t!==null&&(e.dependencies=t.dependencies),Yr|=e.lanes,!(r&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(fe(153));if(e.child!==null){for(t=e.child,r=Ar(t,t.pendingProps),e.child=r,r.return=e;t.sibling!==null;)t=t.sibling,r=r.sibling=Ar(t,t.pendingProps),r.return=e;r.sibling=null}return e.child}function uy(t,e,r){switch(e.tag){case 3:Op(e),Rn();break;case 5:ap(e);break;case 1:pt(e.type)&&Js(e);break;case 4:Uu(e,e.stateNode.containerInfo);break;case 10:var n=e.type._context,i=e.memoizedProps.value;Ae(ro,n._currentValue),n._currentValue=i;break;case 13:if(n=e.memoizedState,n!==null)return n.dehydrated!==null?(Ae(Ie,Ie.current&1),e.flags|=128,null):r&e.child.childLanes?Dp(t,e,r):(Ae(Ie,Ie.current&1),t=ur(t,e,r),t!==null?t.sibling:null);Ae(Ie,Ie.current&1);break;case 19:if(n=(r&e.childLanes)!==0,t.flags&128){if(n)return Pp(t,e,r);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ae(Ie,Ie.current),n)break;return null;case 22:case 23:return e.lanes=0,Rp(t,e,r)}return ur(t,e,r)}var Lp,ql,Fp,Bp;Lp=function(t,e){for(var r=e.child;r!==null;){if(r.tag===5||r.tag===6)t.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};ql=function(){};Fp=function(t,e,r,n){var i=t.memoizedProps;if(i!==n){t=e.stateNode,Wr(Yt.current);var s=null;switch(r){case"input":i=gl(t,i),n=gl(t,n),s=[];break;case"select":i=De({},i,{value:void 0}),n=De({},n,{value:void 0}),s=[];break;case"textarea":i=vl(t,i),n=vl(t,n),s=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(t.onclick=Zs)}bl(r,n);var o;r=null;for(h in i)if(!n.hasOwnProperty(h)&&i.hasOwnProperty(h)&&i[h]!=null)if(h==="style"){var a=i[h];for(o in a)a.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else h!=="dangerouslySetInnerHTML"&&h!=="children"&&h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&h!=="autoFocus"&&(Si.hasOwnProperty(h)?s||(s=[]):(s=s||[]).push(h,null));for(h in n){var l=n[h];if(a=i!=null?i[h]:void 0,n.hasOwnProperty(h)&&l!==a&&(l!=null||a!=null))if(h==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(r||(r={}),r[o]=l[o])}else r||(s||(s=[]),s.push(h,r)),r=l;else h==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(h,l)):h==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(h,""+l):h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&(Si.hasOwnProperty(h)?(l!=null&&h==="onScroll"&&Ce("scroll",t),s||a===l||(s=[])):(s=s||[]).push(h,l))}r&&(s=s||[]).push("style",r);var h=s;(e.updateQueue=h)&&(e.flags|=4)}};Bp=function(t,e,r,n){r!==n&&(e.flags|=4)};function si(t,e){if(!Re)switch(t.tailMode){case"hidden":e=t.tail;for(var r=null;e!==null;)e.alternate!==null&&(r=e),e=e.sibling;r===null?t.tail=null:r.sibling=null;break;case"collapsed":r=t.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function Je(t){var e=t.alternate!==null&&t.alternate.child===t.child,r=0,n=0;if(e)for(var i=t.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=n,t.childLanes=r,e}function cy(t,e,r){var n=e.pendingProps;switch(Ou(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(e),null;case 1:return pt(e.type)&&Qs(),Je(e),null;case 3:return n=e.stateNode,On(),je(ht),je(it),Wu(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(fs(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Pt!==null&&(ru(Pt),Pt=null))),ql(t,e),Je(e),null;case 5:zu(e);var i=Wr(Li.current);if(r=e.type,t!==null&&e.stateNode!=null)Fp(t,e,r,n,i),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!n){if(e.stateNode===null)throw Error(fe(166));return Je(e),null}if(t=Wr(Yt.current),fs(e)){n=e.stateNode,r=e.type;var s=e.memoizedProps;switch(n[$t]=e,n[Di]=s,t=(e.mode&1)!==0,r){case"dialog":Ce("cancel",n),Ce("close",n);break;case"iframe":case"object":case"embed":Ce("load",n);break;case"video":case"audio":for(i=0;i<pi.length;i++)Ce(pi[i],n);break;case"source":Ce("error",n);break;case"img":case"image":case"link":Ce("error",n),Ce("load",n);break;case"details":Ce("toggle",n);break;case"input":Oc(n,s),Ce("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!s.multiple},Ce("invalid",n);break;case"textarea":Pc(n,s),Ce("invalid",n)}bl(r,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?n.textContent!==a&&(s.suppressHydrationWarning!==!0&&cs(n.textContent,a,t),i=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&cs(n.textContent,a,t),i=["children",""+a]):Si.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&Ce("scroll",n)}switch(r){case"input":rs(n),Dc(n,s,!0);break;case"textarea":rs(n),Lc(n);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(n.onclick=Zs)}n=i,e.updateQueue=n,n!==null&&(e.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=dh(r)),t==="http://www.w3.org/1999/xhtml"?r==="script"?(t=o.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=o.createElement(r,{is:n.is}):(t=o.createElement(r),r==="select"&&(o=t,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):t=o.createElementNS(t,r),t[$t]=e,t[Di]=n,Lp(t,e,!1,!1),e.stateNode=t;e:{switch(o=_l(r,n),r){case"dialog":Ce("cancel",t),Ce("close",t),i=n;break;case"iframe":case"object":case"embed":Ce("load",t),i=n;break;case"video":case"audio":for(i=0;i<pi.length;i++)Ce(pi[i],t);i=n;break;case"source":Ce("error",t),i=n;break;case"img":case"image":case"link":Ce("error",t),Ce("load",t),i=n;break;case"details":Ce("toggle",t),i=n;break;case"input":Oc(t,n),i=gl(t,n),Ce("invalid",t);break;case"option":i=n;break;case"select":t._wrapperState={wasMultiple:!!n.multiple},i=De({},n,{value:void 0}),Ce("invalid",t);break;case"textarea":Pc(t,n),i=vl(t,n),Ce("invalid",t);break;default:i=n}bl(r,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?mh(t,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&hh(t,l)):s==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&Ni(t,l):typeof l=="number"&&Ni(t,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Si.hasOwnProperty(s)?l!=null&&s==="onScroll"&&Ce("scroll",t):l!=null&&wu(t,s,l,o))}switch(r){case"input":rs(t),Dc(t,n,!1);break;case"textarea":rs(t),Lc(t);break;case"option":n.value!=null&&t.setAttribute("value",""+Cr(n.value));break;case"select":t.multiple=!!n.multiple,s=n.value,s!=null?wn(t,!!n.multiple,s,!1):n.defaultValue!=null&&wn(t,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(t.onclick=Zs)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return Je(e),null;case 6:if(t&&e.stateNode!=null)Bp(t,e,t.memoizedProps,n);else{if(typeof n!="string"&&e.stateNode===null)throw Error(fe(166));if(r=Wr(Li.current),Wr(Yt.current),fs(e)){if(n=e.stateNode,r=e.memoizedProps,n[$t]=e,(s=n.nodeValue!==r)&&(t=vt,t!==null))switch(t.tag){case 3:cs(n.nodeValue,r,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&cs(n.nodeValue,r,(t.mode&1)!==0)}s&&(e.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[$t]=e,e.stateNode=n}return Je(e),null;case 13:if(je(Ie),n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Re&&wt!==null&&e.mode&1&&!(e.flags&128))rp(),Rn(),e.flags|=98560,s=!1;else if(s=fs(e),n!==null&&n.dehydrated!==null){if(t===null){if(!s)throw Error(fe(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(fe(317));s[$t]=e}else Rn(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;Je(e),s=!1}else Pt!==null&&(ru(Pt),Pt=null),s=!0;if(!s)return e.flags&65536?e:null}return e.flags&128?(e.lanes=r,e):(n=n!==null,n!==(t!==null&&t.memoizedState!==null)&&n&&(e.child.flags|=8192,e.mode&1&&(t===null||Ie.current&1?Ge===0&&(Ge=3):ec())),e.updateQueue!==null&&(e.flags|=4),Je(e),null);case 4:return On(),ql(t,e),t===null&&Ii(e.stateNode.containerInfo),Je(e),null;case 10:return Fu(e.type._context),Je(e),null;case 17:return pt(e.type)&&Qs(),Je(e),null;case 19:if(je(Ie),s=e.memoizedState,s===null)return Je(e),null;if(n=(e.flags&128)!==0,o=s.rendering,o===null)if(n)si(s,!1);else{if(Ge!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(o=so(t),o!==null){for(e.flags|=128,si(s,!1),n=o.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),e.subtreeFlags=0,n=r,r=e.child;r!==null;)s=r,t=n,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=t,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,t=o.dependencies,s.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),r=r.sibling;return Ae(Ie,Ie.current&1|2),e.child}t=t.sibling}s.tail!==null&&Me()>Pn&&(e.flags|=128,n=!0,si(s,!1),e.lanes=4194304)}else{if(!n)if(t=so(o),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),si(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Re)return Je(e),null}else 2*Me()-s.renderingStartTime>Pn&&r!==1073741824&&(e.flags|=128,n=!0,si(s,!1),e.lanes=4194304);s.isBackwards?(o.sibling=e.child,e.child=o):(r=s.last,r!==null?r.sibling=o:e.child=o,s.last=o)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=Me(),e.sibling=null,r=Ie.current,Ae(Ie,n?r&1|2:r&1),e):(Je(e),null);case 22:case 23:return Ju(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?yt&1073741824&&(Je(e),e.subtreeFlags&6&&(e.flags|=8192)):Je(e),null;case 24:return null;case 25:return null}throw Error(fe(156,e.tag))}function fy(t,e){switch(Ou(e),e.tag){case 1:return pt(e.type)&&Qs(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return On(),je(ht),je(it),Wu(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return zu(e),null;case 13:if(je(Ie),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(fe(340));Rn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return je(Ie),null;case 4:return On(),null;case 10:return Fu(e.type._context),null;case 22:case 23:return Ju(),null;case 24:return null;default:return null}}var ps=!1,tt=!1,dy=typeof WeakSet=="function"?WeakSet:Set,me=null;function gn(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Le(t,e,n)}else r.current=null}function Xl(t,e,r){try{r()}catch(n){Le(t,e,n)}}var kf=!1;function hy(t,e){if(Il=qs,t=Hh(),Ru(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{r.nodeType,s.nodeType}catch{r=null;break e}var o=0,a=-1,l=-1,h=0,g=0,v=t,y=null;t:for(;;){for(var m;v!==r||i!==0&&v.nodeType!==3||(a=o+i),v!==s||n!==0&&v.nodeType!==3||(l=o+n),v.nodeType===3&&(o+=v.nodeValue.length),(m=v.firstChild)!==null;)y=v,v=m;for(;;){if(v===t)break t;if(y===r&&++h===i&&(a=o),y===s&&++g===n&&(l=o),(m=v.nextSibling)!==null)break;v=y,y=v.parentNode}v=m}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Ol={focusedElem:t,selectionRange:r},qs=!1,me=e;me!==null;)if(e=me,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,me=t;else for(;me!==null;){e=me;try{var N=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(N!==null){var b=N.memoizedProps,A=N.memoizedState,d=e.stateNode,p=d.getSnapshotBeforeUpdate(e.elementType===e.type?b:Ot(e.type,b),A);d.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var E=e.stateNode.containerInfo;E.nodeType===1?E.textContent="":E.nodeType===9&&E.documentElement&&E.removeChild(E.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(fe(163))}}catch(C){Le(e,e.return,C)}if(t=e.sibling,t!==null){t.return=e.return,me=t;break}me=e.return}return N=kf,kf=!1,N}function bi(t,e,r){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&t)===t){var s=i.destroy;i.destroy=void 0,s!==void 0&&Xl(e,r,s)}i=i.next}while(i!==n)}}function ko(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var r=e=e.next;do{if((r.tag&t)===t){var n=r.create;r.destroy=n()}r=r.next}while(r!==e)}}function Yl(t){var e=t.ref;if(e!==null){var r=t.stateNode;switch(t.tag){case 5:t=r;break;default:t=r}typeof e=="function"?e(t):e.current=t}}function Mp(t){var e=t.alternate;e!==null&&(t.alternate=null,Mp(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[$t],delete e[Di],delete e[Ll],delete e[X0],delete e[Y0])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Up(t){return t.tag===5||t.tag===3||t.tag===4}function Tf(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Up(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Zl(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=Zs));else if(n!==4&&(t=t.child,t!==null))for(Zl(t,e,r),t=t.sibling;t!==null;)Zl(t,e,r),t=t.sibling}function Ql(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(n!==4&&(t=t.child,t!==null))for(Ql(t,e,r),t=t.sibling;t!==null;)Ql(t,e,r),t=t.sibling}var Xe=null,Dt=!1;function hr(t,e,r){for(r=r.child;r!==null;)zp(t,e,r),r=r.sibling}function zp(t,e,r){if(Xt&&typeof Xt.onCommitFiberUnmount=="function")try{Xt.onCommitFiberUnmount(wo,r)}catch{}switch(r.tag){case 5:tt||gn(r,e);case 6:var n=Xe,i=Dt;Xe=null,hr(t,e,r),Xe=n,Dt=i,Xe!==null&&(Dt?(t=Xe,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):Xe.removeChild(r.stateNode));break;case 18:Xe!==null&&(Dt?(t=Xe,r=r.stateNode,t.nodeType===8?aa(t.parentNode,r):t.nodeType===1&&aa(t,r),Ci(t)):aa(Xe,r.stateNode));break;case 4:n=Xe,i=Dt,Xe=r.stateNode.containerInfo,Dt=!0,hr(t,e,r),Xe=n,Dt=i;break;case 0:case 11:case 14:case 15:if(!tt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&Xl(r,e,o),i=i.next}while(i!==n)}hr(t,e,r);break;case 1:if(!tt&&(gn(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){Le(r,e,a)}hr(t,e,r);break;case 21:hr(t,e,r);break;case 22:r.mode&1?(tt=(n=tt)||r.memoizedState!==null,hr(t,e,r),tt=n):hr(t,e,r);break;default:hr(t,e,r)}}function Af(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new dy),e.forEach(function(n){var i=_y.bind(null,t,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Rt(t,e){var r=e.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var s=t,o=e,a=o;e:for(;a!==null;){switch(a.tag){case 5:Xe=a.stateNode,Dt=!1;break e;case 3:Xe=a.stateNode.containerInfo,Dt=!0;break e;case 4:Xe=a.stateNode.containerInfo,Dt=!0;break e}a=a.return}if(Xe===null)throw Error(fe(160));zp(s,o,i),Xe=null,Dt=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(h){Le(i,e,h)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)Wp(e,t),e=e.sibling}function Wp(t,e){var r=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Rt(e,t),zt(t),n&4){try{bi(3,t,t.return),ko(3,t)}catch(b){Le(t,t.return,b)}try{bi(5,t,t.return)}catch(b){Le(t,t.return,b)}}break;case 1:Rt(e,t),zt(t),n&512&&r!==null&&gn(r,r.return);break;case 5:if(Rt(e,t),zt(t),n&512&&r!==null&&gn(r,r.return),t.flags&32){var i=t.stateNode;try{Ni(i,"")}catch(b){Le(t,t.return,b)}}if(n&4&&(i=t.stateNode,i!=null)){var s=t.memoizedProps,o=r!==null?r.memoizedProps:s,a=t.type,l=t.updateQueue;if(t.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&ch(i,s),_l(a,o);var h=_l(a,s);for(o=0;o<l.length;o+=2){var g=l[o],v=l[o+1];g==="style"?mh(i,v):g==="dangerouslySetInnerHTML"?hh(i,v):g==="children"?Ni(i,v):wu(i,g,v,h)}switch(a){case"input":yl(i,s);break;case"textarea":fh(i,s);break;case"select":var y=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var m=s.value;m!=null?wn(i,!!s.multiple,m,!1):y!==!!s.multiple&&(s.defaultValue!=null?wn(i,!!s.multiple,s.defaultValue,!0):wn(i,!!s.multiple,s.multiple?[]:"",!1))}i[Di]=s}catch(b){Le(t,t.return,b)}}break;case 6:if(Rt(e,t),zt(t),n&4){if(t.stateNode===null)throw Error(fe(162));i=t.stateNode,s=t.memoizedProps;try{i.nodeValue=s}catch(b){Le(t,t.return,b)}}break;case 3:if(Rt(e,t),zt(t),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Ci(e.containerInfo)}catch(b){Le(t,t.return,b)}break;case 4:Rt(e,t),zt(t);break;case 13:Rt(e,t),zt(t),i=t.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Zu=Me())),n&4&&Af(t);break;case 22:if(g=r!==null&&r.memoizedState!==null,t.mode&1?(tt=(h=tt)||g,Rt(e,t),tt=h):Rt(e,t),zt(t),n&8192){if(h=t.memoizedState!==null,(t.stateNode.isHidden=h)&&!g&&t.mode&1)for(me=t,g=t.child;g!==null;){for(v=me=g;me!==null;){switch(y=me,m=y.child,y.tag){case 0:case 11:case 14:case 15:bi(4,y,y.return);break;case 1:gn(y,y.return);var N=y.stateNode;if(typeof N.componentWillUnmount=="function"){n=y,r=y.return;try{e=n,N.props=e.memoizedProps,N.state=e.memoizedState,N.componentWillUnmount()}catch(b){Le(n,r,b)}}break;case 5:gn(y,y.return);break;case 22:if(y.memoizedState!==null){jf(v);continue}}m!==null?(m.return=y,me=m):jf(v)}g=g.sibling}e:for(g=null,v=t;;){if(v.tag===5){if(g===null){g=v;try{i=v.stateNode,h?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=v.stateNode,l=v.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=ph("display",o))}catch(b){Le(t,t.return,b)}}}else if(v.tag===6){if(g===null)try{v.stateNode.nodeValue=h?"":v.memoizedProps}catch(b){Le(t,t.return,b)}}else if((v.tag!==22&&v.tag!==23||v.memoizedState===null||v===t)&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===t)break e;for(;v.sibling===null;){if(v.return===null||v.return===t)break e;g===v&&(g=null),v=v.return}g===v&&(g=null),v.sibling.return=v.return,v=v.sibling}}break;case 19:Rt(e,t),zt(t),n&4&&Af(t);break;case 21:break;default:Rt(e,t),zt(t)}}function zt(t){var e=t.flags;if(e&2){try{e:{for(var r=t.return;r!==null;){if(Up(r)){var n=r;break e}r=r.return}throw Error(fe(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(Ni(i,""),n.flags&=-33);var s=Tf(t);Ql(t,s,i);break;case 3:case 4:var o=n.stateNode.containerInfo,a=Tf(t);Zl(t,a,o);break;default:throw Error(fe(161))}}catch(l){Le(t,t.return,l)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function py(t,e,r){me=t,Hp(t)}function Hp(t,e,r){for(var n=(t.mode&1)!==0;me!==null;){var i=me,s=i.child;if(i.tag===22&&n){var o=i.memoizedState!==null||ps;if(!o){var a=i.alternate,l=a!==null&&a.memoizedState!==null||tt;a=ps;var h=tt;if(ps=o,(tt=l)&&!h)for(me=i;me!==null;)o=me,l=o.child,o.tag===22&&o.memoizedState!==null?Rf(i):l!==null?(l.return=o,me=l):Rf(i);for(;s!==null;)me=s,Hp(s),s=s.sibling;me=i,ps=a,tt=h}Cf(t)}else i.subtreeFlags&8772&&s!==null?(s.return=i,me=s):Cf(t)}}function Cf(t){for(;me!==null;){var e=me;if(e.flags&8772){var r=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:tt||ko(5,e);break;case 1:var n=e.stateNode;if(e.flags&4&&!tt)if(r===null)n.componentDidMount();else{var i=e.elementType===e.type?r.memoizedProps:Ot(e.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var s=e.updateQueue;s!==null&&hf(e,s,n);break;case 3:var o=e.updateQueue;if(o!==null){if(r=null,e.child!==null)switch(e.child.tag){case 5:r=e.child.stateNode;break;case 1:r=e.child.stateNode}hf(e,o,r)}break;case 5:var a=e.stateNode;if(r===null&&e.flags&4){r=a;var l=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var h=e.alternate;if(h!==null){var g=h.memoizedState;if(g!==null){var v=g.dehydrated;v!==null&&Ci(v)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(fe(163))}tt||e.flags&512&&Yl(e)}catch(y){Le(e,e.return,y)}}if(e===t){me=null;break}if(r=e.sibling,r!==null){r.return=e.return,me=r;break}me=e.return}}function jf(t){for(;me!==null;){var e=me;if(e===t){me=null;break}var r=e.sibling;if(r!==null){r.return=e.return,me=r;break}me=e.return}}function Rf(t){for(;me!==null;){var e=me;try{switch(e.tag){case 0:case 11:case 15:var r=e.return;try{ko(4,e)}catch(l){Le(e,r,l)}break;case 1:var n=e.stateNode;if(typeof n.componentDidMount=="function"){var i=e.return;try{n.componentDidMount()}catch(l){Le(e,i,l)}}var s=e.return;try{Yl(e)}catch(l){Le(e,s,l)}break;case 5:var o=e.return;try{Yl(e)}catch(l){Le(e,o,l)}}}catch(l){Le(e,e.return,l)}if(e===t){me=null;break}var a=e.sibling;if(a!==null){a.return=e.return,me=a;break}me=e.return}}var my=Math.ceil,lo=cr.ReactCurrentDispatcher,Xu=cr.ReactCurrentOwner,Tt=cr.ReactCurrentBatchConfig,_e=0,$e=null,We=null,Ye=0,yt=0,yn=Or(0),Ge=0,Ui=null,Yr=0,To=0,Yu=0,_i=null,ct=null,Zu=0,Pn=1/0,er=null,uo=!1,Jl=null,kr=null,ms=!1,vr=null,co=0,Ei=0,eu=null,Bs=-1,Ms=0;function at(){return _e&6?Me():Bs!==-1?Bs:Bs=Me()}function Tr(t){return t.mode&1?_e&2&&Ye!==0?Ye&-Ye:Q0.transition!==null?(Ms===0&&(Ms=Th()),Ms):(t=Ne,t!==0||(t=window.event,t=t===void 0?16:Dh(t.type)),t):1}function Bt(t,e,r,n){if(50<Ei)throw Ei=0,eu=null,Error(fe(185));Hi(t,r,n),(!(_e&2)||t!==$e)&&(t===$e&&(!(_e&2)&&(To|=r),Ge===4&&yr(t,Ye)),mt(t,n),r===1&&_e===0&&!(e.mode&1)&&(Pn=Me()+500,Eo&&Dr()))}function mt(t,e){var r=t.callbackNode;Qg(t,e);var n=$s(t,t===$e?Ye:0);if(n===0)r!==null&&Mc(r),t.callbackNode=null,t.callbackPriority=0;else if(e=n&-n,t.callbackPriority!==e){if(r!=null&&Mc(r),e===1)t.tag===0?Z0(If.bind(null,t)):Jh(If.bind(null,t)),$0(function(){!(_e&6)&&Dr()}),r=null;else{switch(Ah(n)){case 1:r=Eu;break;case 4:r=Nh;break;case 16:r=Vs;break;case 536870912:r=kh;break;default:r=Vs}r=Zp(r,Kp.bind(null,t))}t.callbackPriority=e,t.callbackNode=r}}function Kp(t,e){if(Bs=-1,Ms=0,_e&6)throw Error(fe(327));var r=t.callbackNode;if(En()&&t.callbackNode!==r)return null;var n=$s(t,t===$e?Ye:0);if(n===0)return null;if(n&30||n&t.expiredLanes||e)e=fo(t,n);else{e=n;var i=_e;_e|=2;var s=Vp();($e!==t||Ye!==e)&&(er=null,Pn=Me()+500,Gr(t,e));do try{wy();break}catch(a){Gp(t,a)}while(!0);Lu(),lo.current=s,_e=i,We!==null?e=0:($e=null,Ye=0,e=Ge)}if(e!==0){if(e===2&&(i=Tl(t),i!==0&&(n=i,e=tu(t,i))),e===1)throw r=Ui,Gr(t,0),yr(t,n),mt(t,Me()),r;if(e===6)yr(t,n);else{if(i=t.current.alternate,!(n&30)&&!gy(i)&&(e=fo(t,n),e===2&&(s=Tl(t),s!==0&&(n=s,e=tu(t,s))),e===1))throw r=Ui,Gr(t,0),yr(t,n),mt(t,Me()),r;switch(t.finishedWork=i,t.finishedLanes=n,e){case 0:case 1:throw Error(fe(345));case 2:Mr(t,ct,er);break;case 3:if(yr(t,n),(n&130023424)===n&&(e=Zu+500-Me(),10<e)){if($s(t,0)!==0)break;if(i=t.suspendedLanes,(i&n)!==n){at(),t.pingedLanes|=t.suspendedLanes&i;break}t.timeoutHandle=Pl(Mr.bind(null,t,ct,er),e);break}Mr(t,ct,er);break;case 4:if(yr(t,n),(n&4194240)===n)break;for(e=t.eventTimes,i=-1;0<n;){var o=31-Ft(n);s=1<<o,o=e[o],o>i&&(i=o),n&=~s}if(n=i,n=Me()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*my(n/1960))-n,10<n){t.timeoutHandle=Pl(Mr.bind(null,t,ct,er),n);break}Mr(t,ct,er);break;case 5:Mr(t,ct,er);break;default:throw Error(fe(329))}}}return mt(t,Me()),t.callbackNode===r?Kp.bind(null,t):null}function tu(t,e){var r=_i;return t.current.memoizedState.isDehydrated&&(Gr(t,e).flags|=256),t=fo(t,e),t!==2&&(e=ct,ct=r,e!==null&&ru(e)),t}function ru(t){ct===null?ct=t:ct.push.apply(ct,t)}function gy(t){for(var e=t;;){if(e.flags&16384){var r=e.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],s=i.getSnapshot;i=i.value;try{if(!Mt(s(),i))return!1}catch{return!1}}}if(r=e.child,e.subtreeFlags&16384&&r!==null)r.return=e,e=r;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function yr(t,e){for(e&=~Yu,e&=~To,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var r=31-Ft(e),n=1<<r;t[r]=-1,e&=~n}}function If(t){if(_e&6)throw Error(fe(327));En();var e=$s(t,0);if(!(e&1))return mt(t,Me()),null;var r=fo(t,e);if(t.tag!==0&&r===2){var n=Tl(t);n!==0&&(e=n,r=tu(t,n))}if(r===1)throw r=Ui,Gr(t,0),yr(t,e),mt(t,Me()),r;if(r===6)throw Error(fe(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,Mr(t,ct,er),mt(t,Me()),null}function Qu(t,e){var r=_e;_e|=1;try{return t(e)}finally{_e=r,_e===0&&(Pn=Me()+500,Eo&&Dr())}}function Zr(t){vr!==null&&vr.tag===0&&!(_e&6)&&En();var e=_e;_e|=1;var r=Tt.transition,n=Ne;try{if(Tt.transition=null,Ne=1,t)return t()}finally{Ne=n,Tt.transition=r,_e=e,!(_e&6)&&Dr()}}function Ju(){yt=yn.current,je(yn)}function Gr(t,e){t.finishedWork=null,t.finishedLanes=0;var r=t.timeoutHandle;if(r!==-1&&(t.timeoutHandle=-1,V0(r)),We!==null)for(r=We.return;r!==null;){var n=r;switch(Ou(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Qs();break;case 3:On(),je(ht),je(it),Wu();break;case 5:zu(n);break;case 4:On();break;case 13:je(Ie);break;case 19:je(Ie);break;case 10:Fu(n.type._context);break;case 22:case 23:Ju()}r=r.return}if($e=t,We=t=Ar(t.current,null),Ye=yt=e,Ge=0,Ui=null,Yu=To=Yr=0,ct=_i=null,zr!==null){for(e=0;e<zr.length;e++)if(r=zr[e],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,s=r.pending;if(s!==null){var o=s.next;s.next=i,n.next=o}r.pending=n}zr=null}return t}function Gp(t,e){do{var r=We;try{if(Lu(),Ps.current=ao,oo){for(var n=Oe.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}oo=!1}if(Xr=0,Ve=Ke=Oe=null,xi=!1,Fi=0,Xu.current=null,r===null||r.return===null){Ge=1,Ui=e,We=null;break}e:{var s=t,o=r.return,a=r,l=e;if(e=Ye,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var h=l,g=a,v=g.tag;if(!(g.mode&1)&&(v===0||v===11||v===15)){var y=g.alternate;y?(g.updateQueue=y.updateQueue,g.memoizedState=y.memoizedState,g.lanes=y.lanes):(g.updateQueue=null,g.memoizedState=null)}var m=vf(o);if(m!==null){m.flags&=-257,xf(m,o,a,s,e),m.mode&1&&wf(s,h,e),e=m,l=h;var N=e.updateQueue;if(N===null){var b=new Set;b.add(l),e.updateQueue=b}else N.add(l);break e}else{if(!(e&1)){wf(s,h,e),ec();break e}l=Error(fe(426))}}else if(Re&&a.mode&1){var A=vf(o);if(A!==null){!(A.flags&65536)&&(A.flags|=256),xf(A,o,a,s,e),Du(Dn(l,a));break e}}s=l=Dn(l,a),Ge!==4&&(Ge=2),_i===null?_i=[s]:_i.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,e&=-e,s.lanes|=e;var d=Ap(s,l,e);df(s,d);break e;case 1:a=l;var p=s.type,E=s.stateNode;if(!(s.flags&128)&&(typeof p.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(kr===null||!kr.has(E)))){s.flags|=65536,e&=-e,s.lanes|=e;var C=Cp(s,a,e);df(s,C);break e}}s=s.return}while(s!==null)}qp(r)}catch(O){e=O,We===r&&r!==null&&(We=r=r.return);continue}break}while(!0)}function Vp(){var t=lo.current;return lo.current=ao,t===null?ao:t}function ec(){(Ge===0||Ge===3||Ge===2)&&(Ge=4),$e===null||!(Yr&268435455)&&!(To&268435455)||yr($e,Ye)}function fo(t,e){var r=_e;_e|=2;var n=Vp();($e!==t||Ye!==e)&&(er=null,Gr(t,e));do try{yy();break}catch(i){Gp(t,i)}while(!0);if(Lu(),_e=r,lo.current=n,We!==null)throw Error(fe(261));return $e=null,Ye=0,Ge}function yy(){for(;We!==null;)$p(We)}function wy(){for(;We!==null&&!Hg();)$p(We)}function $p(t){var e=Yp(t.alternate,t,yt);t.memoizedProps=t.pendingProps,e===null?qp(t):We=e,Xu.current=null}function qp(t){var e=t;do{var r=e.alternate;if(t=e.return,e.flags&32768){if(r=fy(r,e),r!==null){r.flags&=32767,We=r;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Ge=6,We=null;return}}else if(r=cy(r,e,yt),r!==null){We=r;return}if(e=e.sibling,e!==null){We=e;return}We=e=t}while(e!==null);Ge===0&&(Ge=5)}function Mr(t,e,r){var n=Ne,i=Tt.transition;try{Tt.transition=null,Ne=1,vy(t,e,r,n)}finally{Tt.transition=i,Ne=n}return null}function vy(t,e,r,n){do En();while(vr!==null);if(_e&6)throw Error(fe(327));r=t.finishedWork;var i=t.finishedLanes;if(r===null)return null;if(t.finishedWork=null,t.finishedLanes=0,r===t.current)throw Error(fe(177));t.callbackNode=null,t.callbackPriority=0;var s=r.lanes|r.childLanes;if(Jg(t,s),t===$e&&(We=$e=null,Ye=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||ms||(ms=!0,Zp(Vs,function(){return En(),null})),s=(r.flags&15990)!==0,r.subtreeFlags&15990||s){s=Tt.transition,Tt.transition=null;var o=Ne;Ne=1;var a=_e;_e|=4,Xu.current=null,hy(t,r),Wp(r,t),M0(Ol),qs=!!Il,Ol=Il=null,t.current=r,py(r),Kg(),_e=a,Ne=o,Tt.transition=s}else t.current=r;if(ms&&(ms=!1,vr=t,co=i),s=t.pendingLanes,s===0&&(kr=null),$g(r.stateNode),mt(t,Me()),e!==null)for(n=t.onRecoverableError,r=0;r<e.length;r++)i=e[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(uo)throw uo=!1,t=Jl,Jl=null,t;return co&1&&t.tag!==0&&En(),s=t.pendingLanes,s&1?t===eu?Ei++:(Ei=0,eu=t):Ei=0,Dr(),null}function En(){if(vr!==null){var t=Ah(co),e=Tt.transition,r=Ne;try{if(Tt.transition=null,Ne=16>t?16:t,vr===null)var n=!1;else{if(t=vr,vr=null,co=0,_e&6)throw Error(fe(331));var i=_e;for(_e|=4,me=t.current;me!==null;){var s=me,o=s.child;if(me.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var h=a[l];for(me=h;me!==null;){var g=me;switch(g.tag){case 0:case 11:case 15:bi(8,g,s)}var v=g.child;if(v!==null)v.return=g,me=v;else for(;me!==null;){g=me;var y=g.sibling,m=g.return;if(Mp(g),g===h){me=null;break}if(y!==null){y.return=m,me=y;break}me=m}}}var N=s.alternate;if(N!==null){var b=N.child;if(b!==null){N.child=null;do{var A=b.sibling;b.sibling=null,b=A}while(b!==null)}}me=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,me=o;else e:for(;me!==null;){if(s=me,s.flags&2048)switch(s.tag){case 0:case 11:case 15:bi(9,s,s.return)}var d=s.sibling;if(d!==null){d.return=s.return,me=d;break e}me=s.return}}var p=t.current;for(me=p;me!==null;){o=me;var E=o.child;if(o.subtreeFlags&2064&&E!==null)E.return=o,me=E;else e:for(o=p;me!==null;){if(a=me,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:ko(9,a)}}catch(O){Le(a,a.return,O)}if(a===o){me=null;break e}var C=a.sibling;if(C!==null){C.return=a.return,me=C;break e}me=a.return}}if(_e=i,Dr(),Xt&&typeof Xt.onPostCommitFiberRoot=="function")try{Xt.onPostCommitFiberRoot(wo,t)}catch{}n=!0}return n}finally{Ne=r,Tt.transition=e}}return!1}function Of(t,e,r){e=Dn(r,e),e=Ap(t,e,1),t=Nr(t,e,1),e=at(),t!==null&&(Hi(t,1,e),mt(t,e))}function Le(t,e,r){if(t.tag===3)Of(t,t,r);else for(;e!==null;){if(e.tag===3){Of(e,t,r);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(kr===null||!kr.has(n))){t=Dn(r,t),t=Cp(e,t,1),e=Nr(e,t,1),t=at(),e!==null&&(Hi(e,1,t),mt(e,t));break}}e=e.return}}function xy(t,e,r){var n=t.pingCache;n!==null&&n.delete(e),e=at(),t.pingedLanes|=t.suspendedLanes&r,$e===t&&(Ye&r)===r&&(Ge===4||Ge===3&&(Ye&130023424)===Ye&&500>Me()-Zu?Gr(t,0):Yu|=r),mt(t,e)}function Xp(t,e){e===0&&(t.mode&1?(e=ss,ss<<=1,!(ss&130023424)&&(ss=4194304)):e=1);var r=at();t=lr(t,e),t!==null&&(Hi(t,e,r),mt(t,r))}function by(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),Xp(t,r)}function _y(t,e){var r=0;switch(t.tag){case 13:var n=t.stateNode,i=t.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=t.stateNode;break;default:throw Error(fe(314))}n!==null&&n.delete(e),Xp(t,r)}var Yp;Yp=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||ht.current)ft=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return ft=!1,uy(t,e,r);ft=!!(t.flags&131072)}else ft=!1,Re&&e.flags&1048576&&ep(e,to,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;Fs(t,e),t=e.pendingProps;var i=jn(e,it.current);_n(e,r),i=Ku(null,e,n,t,i,r);var s=Gu();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,pt(n)?(s=!0,Js(e)):s=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Mu(e),i.updater=No,e.stateNode=i,i._reactInternals=e,Wl(e,n,t,r),e=Gl(null,e,n,!0,s,r)):(e.tag=0,Re&&s&&Iu(e),ot(null,e,i,r),e=e.child),e;case 16:n=e.elementType;e:{switch(Fs(t,e),t=e.pendingProps,i=n._init,n=i(n._payload),e.type=n,i=e.tag=Sy(n),t=Ot(n,t),i){case 0:e=Kl(null,e,n,t,r);break e;case 1:e=Ef(null,e,n,t,r);break e;case 11:e=bf(null,e,n,t,r);break e;case 14:e=_f(null,e,n,Ot(n.type,t),r);break e}throw Error(fe(306,n,""))}return e;case 0:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:Ot(n,i),Kl(t,e,n,i,r);case 1:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:Ot(n,i),Ef(t,e,n,i,r);case 3:e:{if(Op(e),t===null)throw Error(fe(387));n=e.pendingProps,s=e.memoizedState,i=s.element,op(t,e),io(e,n,null,r);var o=e.memoizedState;if(n=o.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){i=Dn(Error(fe(423)),e),e=Sf(t,e,n,r,i);break e}else if(n!==i){i=Dn(Error(fe(424)),e),e=Sf(t,e,n,r,i);break e}else for(wt=Sr(e.stateNode.containerInfo.firstChild),vt=e,Re=!0,Pt=null,r=ip(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Rn(),n===i){e=ur(t,e,r);break e}ot(t,e,n,r)}e=e.child}return e;case 5:return ap(e),t===null&&Ml(e),n=e.type,i=e.pendingProps,s=t!==null?t.memoizedProps:null,o=i.children,Dl(n,i)?o=null:s!==null&&Dl(n,s)&&(e.flags|=32),Ip(t,e),ot(t,e,o,r),e.child;case 6:return t===null&&Ml(e),null;case 13:return Dp(t,e,r);case 4:return Uu(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=In(e,null,n,r):ot(t,e,n,r),e.child;case 11:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:Ot(n,i),bf(t,e,n,i,r);case 7:return ot(t,e,e.pendingProps,r),e.child;case 8:return ot(t,e,e.pendingProps.children,r),e.child;case 12:return ot(t,e,e.pendingProps.children,r),e.child;case 10:e:{if(n=e.type._context,i=e.pendingProps,s=e.memoizedProps,o=i.value,Ae(ro,n._currentValue),n._currentValue=o,s!==null)if(Mt(s.value,o)){if(s.children===i.children&&!ht.current){e=ur(t,e,r);break e}}else for(s=e.child,s!==null&&(s.return=e);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===n){if(s.tag===1){l=sr(-1,r&-r),l.tag=2;var h=s.updateQueue;if(h!==null){h=h.shared;var g=h.pending;g===null?l.next=l:(l.next=g.next,g.next=l),h.pending=l}}s.lanes|=r,l=s.alternate,l!==null&&(l.lanes|=r),Ul(s.return,r,e),a.lanes|=r;break}l=l.next}}else if(s.tag===10)o=s.type===e.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(fe(341));o.lanes|=r,a=o.alternate,a!==null&&(a.lanes|=r),Ul(o,r,e),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===e){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}ot(t,e,i.children,r),e=e.child}return e;case 9:return i=e.type,n=e.pendingProps.children,_n(e,r),i=At(i),n=n(i),e.flags|=1,ot(t,e,n,r),e.child;case 14:return n=e.type,i=Ot(n,e.pendingProps),i=Ot(n.type,i),_f(t,e,n,i,r);case 15:return jp(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:Ot(n,i),Fs(t,e),e.tag=1,pt(n)?(t=!0,Js(e)):t=!1,_n(e,r),Tp(e,n,i),Wl(e,n,i,r),Gl(null,e,n,!0,t,r);case 19:return Pp(t,e,r);case 22:return Rp(t,e,r)}throw Error(fe(156,e.tag))};function Zp(t,e){return Sh(t,e)}function Ey(t,e,r,n){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,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 kt(t,e,r,n){return new Ey(t,e,r,n)}function tc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Sy(t){if(typeof t=="function")return tc(t)?1:0;if(t!=null){if(t=t.$$typeof,t===xu)return 11;if(t===bu)return 14}return 2}function Ar(t,e){var r=t.alternate;return r===null?(r=kt(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&14680064,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function Us(t,e,r,n,i,s){var o=2;if(n=t,typeof t=="function")tc(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case an:return Vr(r.children,i,s,e);case vu:o=8,i|=8;break;case dl:return t=kt(12,r,e,i|2),t.elementType=dl,t.lanes=s,t;case hl:return t=kt(13,r,e,i),t.elementType=hl,t.lanes=s,t;case pl:return t=kt(19,r,e,i),t.elementType=pl,t.lanes=s,t;case ah:return Ao(r,i,s,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case sh:o=10;break e;case oh:o=9;break e;case xu:o=11;break e;case bu:o=14;break e;case pr:o=16,n=null;break e}throw Error(fe(130,t==null?t:typeof t,""))}return e=kt(o,r,e,i),e.elementType=t,e.type=n,e.lanes=s,e}function Vr(t,e,r,n){return t=kt(7,t,n,e),t.lanes=r,t}function Ao(t,e,r,n){return t=kt(22,t,n,e),t.elementType=ah,t.lanes=r,t.stateNode={isHidden:!1},t}function ma(t,e,r){return t=kt(6,t,null,e),t.lanes=r,t}function ga(t,e,r){return e=kt(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Ny(t,e,r,n,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Yo(0),this.expirationTimes=Yo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yo(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function rc(t,e,r,n,i,s,o,a,l){return t=new Ny(t,e,r,a,l),e===1?(e=1,s===!0&&(e|=8)):e=0,s=kt(3,null,null,e),t.current=s,s.stateNode=t,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mu(s),t}function ky(t,e,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:on,key:n==null?null:""+n,children:t,containerInfo:e,implementation:r}}function Qp(t){if(!t)return jr;t=t._reactInternals;e:{if(Jr(t)!==t||t.tag!==1)throw Error(fe(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(pt(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(fe(171))}if(t.tag===1){var r=t.type;if(pt(r))return Qh(t,r,e)}return e}function Jp(t,e,r,n,i,s,o,a,l){return t=rc(r,n,!0,t,i,s,o,a,l),t.context=Qp(null),r=t.current,n=at(),i=Tr(r),s=sr(n,i),s.callback=e??null,Nr(r,s,i),t.current.lanes=i,Hi(t,i,n),mt(t,n),t}function Co(t,e,r,n){var i=e.current,s=at(),o=Tr(i);return r=Qp(r),e.context===null?e.context=r:e.pendingContext=r,e=sr(s,o),e.payload={element:t},n=n===void 0?null:n,n!==null&&(e.callback=n),t=Nr(i,e,o),t!==null&&(Bt(t,i,o,s),Ds(t,i,o)),o}function ho(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function Df(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var r=t.retryLane;t.retryLane=r!==0&&r<e?r:e}}function nc(t,e){Df(t,e),(t=t.alternate)&&Df(t,e)}var em=typeof reportError=="function"?reportError:function(t){console.error(t)};function ic(t){this._internalRoot=t}jo.prototype.render=ic.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(fe(409));Co(t,e,null,null)};jo.prototype.unmount=ic.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Zr(function(){Co(null,t,null,null)}),e[ar]=null}};function jo(t){this._internalRoot=t}jo.prototype.unstable_scheduleHydration=function(t){if(t){var e=Rh();t={blockedOn:null,target:t,priority:e};for(var r=0;r<gr.length&&e!==0&&e<gr[r].priority;r++);gr.splice(r,0,t),r===0&&Oh(t)}};function sc(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Ro(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function Pf(){}function Ty(t,e,r,n,i){if(i){if(typeof n=="function"){var s=n;n=function(){var h=ho(o);s.call(h)}}var o=Jp(e,n,t,0,null,!1,!1,"",Pf);return t._reactRootContainer=o,t[ar]=o.current,Ii(t.nodeType===8?t.parentNode:t),Zr(),o}for(;i=t.lastChild;)t.removeChild(i);if(typeof n=="function"){var a=n;n=function(){var h=ho(l);a.call(h)}}var l=rc(t,0,!1,null,null,!1,!1,"",Pf);return t._reactRootContainer=l,t[ar]=l.current,Ii(t.nodeType===8?t.parentNode:t),Zr(function(){Co(e,l,r,n)}),l}function Io(t,e,r,n,i){var s=r._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var l=ho(o);a.call(l)}}Co(e,o,t,i)}else o=Ty(r,e,t,i,n);return ho(o)}Ch=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var r=hi(e.pendingLanes);r!==0&&(Su(e,r|1),mt(e,Me()),!(_e&6)&&(Pn=Me()+500,Dr()))}break;case 13:Zr(function(){var n=lr(t,1);if(n!==null){var i=at();Bt(n,t,1,i)}}),nc(t,1)}};Nu=function(t){if(t.tag===13){var e=lr(t,134217728);if(e!==null){var r=at();Bt(e,t,134217728,r)}nc(t,134217728)}};jh=function(t){if(t.tag===13){var e=Tr(t),r=lr(t,e);if(r!==null){var n=at();Bt(r,t,e,n)}nc(t,e)}};Rh=function(){return Ne};Ih=function(t,e){var r=Ne;try{return Ne=t,e()}finally{Ne=r}};Sl=function(t,e,r){switch(e){case"input":if(yl(t,r),e=r.name,r.type==="radio"&&e!=null){for(r=t;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<r.length;e++){var n=r[e];if(n!==t&&n.form===t.form){var i=_o(n);if(!i)throw Error(fe(90));uh(n),yl(n,i)}}}break;case"textarea":fh(t,r);break;case"select":e=r.value,e!=null&&wn(t,!!r.multiple,e,!1)}};wh=Qu;vh=Zr;var Ay={usingClientEntryPoint:!1,Events:[Gi,fn,_o,gh,yh,Qu]},oi={findFiberByHostInstance:Ur,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Cy={bundleType:oi.bundleType,version:oi.version,rendererPackageName:oi.rendererPackageName,rendererConfig:oi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:cr.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=_h(t),t===null?null:t.stateNode},findFiberByHostInstance:oi.findFiberByHostInstance,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var gs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!gs.isDisabled&&gs.supportsFiber)try{wo=gs.inject(Cy),Xt=gs}catch{}}bt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ay;bt.createPortal=function(t,e){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!sc(e))throw Error(fe(200));return ky(t,e,null,r)};bt.createRoot=function(t,e){if(!sc(t))throw Error(fe(299));var r=!1,n="",i=em;return e!=null&&(e.unstable_strictMode===!0&&(r=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onRecoverableError!==void 0&&(i=e.onRecoverableError)),e=rc(t,1,!1,null,null,r,!1,n,i),t[ar]=e.current,Ii(t.nodeType===8?t.parentNode:t),new ic(e)};bt.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(fe(188)):(t=Object.keys(t).join(","),Error(fe(268,t)));return t=_h(e),t=t===null?null:t.stateNode,t};bt.flushSync=function(t){return Zr(t)};bt.hydrate=function(t,e,r){if(!Ro(e))throw Error(fe(200));return Io(null,t,e,!0,r)};bt.hydrateRoot=function(t,e,r){if(!sc(t))throw Error(fe(405));var n=r!=null&&r.hydratedSources||null,i=!1,s="",o=em;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),e=Jp(e,null,t,1,r??null,i,!1,s,o),t[ar]=e.current,Ii(t),n)for(t=0;t<n.length;t++)r=n[t],i=r._getVersion,i=i(r._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[r,i]:e.mutableSourceEagerHydrationData.push(r,i);return new jo(e)};bt.render=function(t,e,r){if(!Ro(e))throw Error(fe(200));return Io(null,t,e,!1,r)};bt.unmountComponentAtNode=function(t){if(!Ro(t))throw Error(fe(40));return t._reactRootContainer?(Zr(function(){Io(null,null,t,!1,function(){t._reactRootContainer=null,t[ar]=null})}),!0):!1};bt.unstable_batchedUpdates=Qu;bt.unstable_renderSubtreeIntoContainer=function(t,e,r,n){if(!Ro(r))throw Error(fe(200));if(t==null||t._reactInternals===void 0)throw Error(fe(38));return Io(t,e,r,!1,n)};bt.version="18.3.1-next-f1338f8080-20240426";function tm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(tm)}catch(t){console.error(t)}}tm(),th.exports=bt;var jy=th.exports,rm,Lf=jy;rm=Lf.createRoot,Lf.hydrateRoot;/**
|
||
* @license lucide-react v0.344.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/var Ry={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||
* @license lucide-react v0.344.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Iy=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),He=(t,e)=>{const r=xr.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:a="",children:l,...h},g)=>xr.createElement("svg",{ref:g,...Ry,width:i,height:i,stroke:n,strokeWidth:o?Number(s)*24/Number(i):s,className:["lucide",`lucide-${Iy(t)}`,a].join(" "),...h},[...e.map(([v,y])=>xr.createElement(v,y)),...Array.isArray(l)?l:[l]]));return r.displayName=`${t}`,r};/**
|
||
* @license lucide-react v0.344.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const nm=He("Award",[["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}],["path",{d:"M15.477 12.89 17 22l-5-3-5 3 1.523-9.11",key:"em7aur"}]]);/**
|
||
* @license lucide-react v0.344.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const dt=He("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
|
||
* @license lucide-react v0.344.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Oy=He("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
|
||
* @license lucide-react v0.344.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Dy=He("FileOutput",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4 7V4a2 2 0 0 1 2-2 2 2 0 0 0-2 2",key:"1vk7w2"}],["path",{d:"M4.063 20.999a2 2 0 0 0 2 1L18 22a2 2 0 0 0 2-2V7l-5-5H6",key:"1jink5"}],["path",{d:"m5 11-3 3",key:"1dgrs4"}],["path",{d:"m5 17-3-3h10",key:"1mvvaf"}]]);/**
|
||
* @license lucide-react v0.344.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Py=He("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
||
* @license lucide-react v0.344.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const $i=He("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/**
|
||
* @license lucide-react v0.344.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const oc=He("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
|
||
* @license lucide-react v0.344.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Ly=He("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
|
||
* @license lucide-react v0.344.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Oo=He("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/**
|
||
* @license lucide-react v0.344.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const qi=He("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
|
||
* @license lucide-react v0.344.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Do=He("MapPin",[["path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z",key:"2oe9fu"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
|
||
* @license lucide-react v0.344.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Po=He("Medal",[["path",{d:"M7.21 15 2.66 7.14a2 2 0 0 1 .13-2.2L4.4 2.8A2 2 0 0 1 6 2h12a2 2 0 0 1 1.6.8l1.6 2.14a2 2 0 0 1 .14 2.2L16.79 15",key:"143lza"}],["path",{d:"M11 12 5.12 2.2",key:"qhuxz6"}],["path",{d:"m13 12 5.88-9.8",key:"hbye0f"}],["path",{d:"M8 7h8",key:"i86dvs"}],["circle",{cx:"12",cy:"17",r:"5",key:"qbz8iq"}],["path",{d:"M12 18v-2h-.5",key:"fawc4q"}]]);/**
|
||
* @license lucide-react v0.344.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ys=He("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
|
||
* @license lucide-react v0.344.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Kn=He("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
|
||
* @license lucide-react v0.344.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Gn=He("PlusCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);/**
|
||
* @license lucide-react v0.344.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ws=He("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
||
* @license lucide-react v0.344.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ya=He("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
||
* @license lucide-react v0.344.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Vn=He("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
||
* @license lucide-react v0.344.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Fy=He("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
|
||
* @license lucide-react v0.344.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const By=He("Wand2",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72Z",key:"1bcowg"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);function My({value:t,onChange:e}){const r=n=>{var s;const i=(s=n.target.files)==null?void 0:s[0];if(i){const o=new FileReader;o.onloadend=()=>{e(o.result)},o.readAsDataURL(i)}};return f.jsxs("div",{className:"flex flex-col items-center gap-4",children:[f.jsx("div",{className:"relative w-32 h-32 rounded-full overflow-hidden bg-white/50",children:t?f.jsx("img",{src:t,alt:"Profile",className:"w-full h-full object-cover"}):f.jsx("div",{className:"w-full h-full flex items-center justify-center bg-gray-100",children:f.jsx(Fy,{className:"w-8 h-8 text-gray-400"})})}),f.jsx("input",{type:"file",accept:"image/*",onChange:r,className:"hidden",id:"profile-picture"}),f.jsx("label",{htmlFor:"profile-picture",className:"cursor-pointer px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors text-sm",children:"Upload Photo"})]})}function Uy({website:t,linkedin:e,github:r,onChange:n}){return f.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[f.jsxs("div",{className:"relative",children:[f.jsx(oc,{className:"absolute left-3 top-2.5 w-5 h-5 text-gray-400"}),f.jsx("input",{type:"url",value:t,onChange:i=>n("website",i.target.value),placeholder:"Website",className:"w-full pl-10 pr-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500"})]}),f.jsxs("div",{className:"relative",children:[f.jsx(Oo,{className:"absolute left-3 top-2.5 w-5 h-5 text-gray-400"}),f.jsx("input",{type:"url",value:e,onChange:i=>n("linkedin",i.target.value),placeholder:"LinkedIn URL",className:"w-full pl-10 pr-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500"})]}),f.jsxs("div",{className:"relative",children:[f.jsx($i,{className:"absolute left-3 top-2.5 w-5 h-5 text-gray-400"}),f.jsx("input",{type:"url",value:r,onChange:i=>n("github",i.target.value),placeholder:"GitHub URL",className:"w-full pl-10 pr-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500"})]})]})}const zy={developer:["Innovative software developer with a passion for creating efficient, scalable solutions. Experienced in full-stack development with a strong foundation in modern programming languages and frameworks. Committed to writing clean, maintainable code and staying current with emerging technologies.","Results-driven software developer combining technical expertise with strong problem-solving abilities. Proven track record of delivering high-quality applications while adhering to best practices and industry standards. Experienced in agile development methodologies and cross-functional team collaboration.","Detail-oriented software developer with expertise in building robust applications. Skilled in translating business requirements into technical solutions while ensuring optimal performance and user experience. Strong advocate for code quality and continuous improvement."],designer:["Creative UI/UX designer with a keen eye for detail and a user-centered approach. Experienced in creating intuitive, accessible interfaces that enhance user engagement and satisfaction. Proficient in modern design tools and principles.","Innovative digital designer specializing in creating visually compelling and functional user experiences. Combines artistic vision with technical expertise to deliver designs that exceed client expectations. Strong background in user research and iterative design processes.","Forward-thinking designer with a passion for creating beautiful, user-friendly interfaces. Experienced in working with cross-functional teams to deliver cohesive design solutions. Strong foundation in design principles and modern design systems."],manager:["Dynamic project manager with proven success in leading cross-functional teams and delivering complex projects on time and within budget. Skilled in stakeholder management, risk mitigation, and resource optimization.","Results-oriented manager with extensive experience in team leadership and strategic planning. Proven track record of improving operational efficiency and fostering a positive work environment. Strong focus on team development and organizational growth.","Experienced manager with a track record of successful project delivery and team leadership. Skilled in strategic planning, process improvement, and change management. Strong communicator with expertise in stakeholder management."]},Wy=["Dedicated professional with a strong track record of success in delivering results. Combines technical expertise with excellent communication skills to drive project success. Committed to continuous learning and professional growth.","Results-driven professional with expertise in implementing innovative solutions. Strong analytical and problem-solving abilities combined with excellent interpersonal skills. Proven ability to work effectively in fast-paced environments.","Experienced professional with a proven track record of success. Skilled in project management, team collaboration, and strategic planning. Strong focus on achieving organizational goals while maintaining high quality standards."];async function Hy(t){const e=t.toLowerCase();let r=Wy;for(const[i,s]of Object.entries(zy))if(e.includes(i)){r=s;break}const n=Math.floor(Math.random()*r.length);return r[n]}function Ky({personalInfo:t,setPersonalInfo:e}){const r=(i,s)=>{e({...t,[i]:s})},n=async()=>{if(!t.jobTitle){alert("Please enter a job title first");return}const i=await Hy(t.jobTitle);r("summary",i)};return f.jsxs("div",{className:"space-y-6",children:[f.jsx("h2",{className:"text-xl font-semibold text-gray-800",children:"Personal Information"}),f.jsxs("div",{className:"flex flex-col md:flex-row gap-8",children:[f.jsx(My,{value:t.profilePicture,onChange:i=>r("profilePicture",i)}),f.jsxs("div",{className:"flex-1 space-y-4",children:[f.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[f.jsx("input",{type:"text",value:t.fullName,onChange:i=>r("fullName",i.target.value),placeholder:"Full Name",className:"w-full px-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500"}),f.jsx("input",{type:"text",value:t.jobTitle,onChange:i=>r("jobTitle",i.target.value),placeholder:"Job Title",className:"w-full px-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500"}),f.jsx("input",{type:"email",value:t.email,onChange:i=>r("email",i.target.value),placeholder:"Email",className:"w-full px-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500"}),f.jsx("input",{type:"tel",value:t.phone,onChange:i=>r("phone",i.target.value),placeholder:"Phone",className:"w-full px-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500"}),f.jsx("input",{type:"text",value:t.location,onChange:i=>r("location",i.target.value),placeholder:"Location",className:"w-full px-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500"})]}),f.jsx(Uy,{website:t.website,linkedin:t.linkedin,github:t.github,onChange:r})]})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsxs("div",{className:"flex justify-between items-center",children:[f.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Professional Summary"}),f.jsxs("button",{onClick:n,className:"flex items-center gap-2 px-3 py-1 text-sm bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",children:[f.jsx(By,{className:"w-4 h-4"}),"Generate Summary"]})]}),f.jsx("textarea",{value:t.summary,onChange:i=>r("summary",i.target.value),placeholder:"Professional Summary",className:"w-full px-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500 h-32"})]})]})}function Gy({education:t,setEducation:e}){const r=()=>{e([...t,{school:"",degree:"",fieldOfStudy:"",startDate:"",endDate:"",gpa:"",honors:[],activities:[],description:"",location:"",thesis:"",advisors:[],relevantCourses:[]}])},n=l=>{e(t.filter((h,g)=>g!==l))},i=(l,h,g)=>{const v=[...t];v[l]={...v[l],[h]:g},e(v)},s=(l,h)=>{const g=[...t];g[l][h]=[...g[l][h],""],e(g)},o=(l,h,g)=>{const v=[...t];v[l][h]=v[l][h].filter((y,m)=>m!==g),e(v)},a=(l,h,g,v)=>{const y=[...t];y[l][h][g]=v,e(y)};return f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"flex justify-between items-center",children:[f.jsx("h2",{className:"text-xl font-semibold text-gray-800",children:"Education"}),f.jsxs("button",{onClick:r,className:"flex items-center gap-2 text-blue-600 hover:text-blue-700",children:[f.jsx(Gn,{size:20})," Add Education"]})]}),t.map((l,h)=>{var g;return f.jsxs("div",{className:"p-4 bg-white/40 rounded-lg space-y-4",children:[f.jsxs("div",{className:"flex justify-between",children:[f.jsxs("h3",{className:"font-medium",children:["Education #",h+1]}),f.jsx("button",{onClick:()=>n(h),className:"text-red-500 hover:text-red-600",children:f.jsx(Vn,{size:20})})]}),f.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[f.jsx("input",{type:"text",value:l.school,onChange:v=>i(h,"school",v.target.value),placeholder:"School",className:"w-full px-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500"}),f.jsx("input",{type:"text",value:l.location,onChange:v=>i(h,"location",v.target.value),placeholder:"Location",className:"w-full px-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500"}),f.jsx("input",{type:"text",value:l.degree,onChange:v=>i(h,"degree",v.target.value),placeholder:"Degree",className:"w-full px-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500"}),f.jsx("input",{type:"text",value:l.fieldOfStudy,onChange:v=>i(h,"fieldOfStudy",v.target.value),placeholder:"Field of Study",className:"w-full px-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500"}),f.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[f.jsx("input",{type:"date",value:l.startDate,onChange:v=>i(h,"startDate",v.target.value),className:"w-full px-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500"}),f.jsx("input",{type:"date",value:l.endDate,onChange:v=>i(h,"endDate",v.target.value),className:"w-full px-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500"})]}),f.jsx("input",{type:"text",value:l.gpa,onChange:v=>i(h,"gpa",v.target.value),placeholder:"GPA",className:"w-full px-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500"})]}),f.jsxs("div",{className:"space-y-4",children:[f.jsx("textarea",{value:l.description,onChange:v=>i(h,"description",v.target.value),placeholder:"Description",className:"w-full px-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500 h-24"}),f.jsx("input",{type:"text",value:l.thesis,onChange:v=>i(h,"thesis",v.target.value),placeholder:"Thesis Title (Optional)",className:"w-full px-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500"}),f.jsxs("div",{className:"space-y-2",children:[f.jsxs("div",{className:"flex justify-between items-center",children:[f.jsx("label",{className:"text-sm font-medium text-gray-700",children:"Honors & Awards"}),f.jsx("button",{type:"button",onClick:()=>s(h,"honors"),className:"text-blue-600 hover:text-blue-700",children:f.jsx(ws,{size:16})})]}),l.honors.map((v,y)=>f.jsxs("div",{className:"flex gap-2",children:[f.jsx("input",{type:"text",value:v,onChange:m=>a(h,"honors",y,m.target.value),placeholder:"Honor or Award",className:"flex-1 px-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500"}),f.jsx("button",{type:"button",onClick:()=>o(h,"honors",y),className:"text-red-500 hover:text-red-600",children:f.jsx(ys,{size:16})})]},y))]}),f.jsxs("div",{className:"space-y-2",children:[f.jsxs("div",{className:"flex justify-between items-center",children:[f.jsx("label",{className:"text-sm font-medium text-gray-700",children:"Activities & Societies"}),f.jsx("button",{type:"button",onClick:()=>s(h,"activities"),className:"text-blue-600 hover:text-blue-700",children:f.jsx(ws,{size:16})})]}),l.activities.map((v,y)=>f.jsxs("div",{className:"flex gap-2",children:[f.jsx("input",{type:"text",value:v,onChange:m=>a(h,"activities",y,m.target.value),placeholder:"Activity",className:"flex-1 px-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500"}),f.jsx("button",{type:"button",onClick:()=>o(h,"activities",y),className:"text-red-500 hover:text-red-600",children:f.jsx(ys,{size:16})})]},y))]}),f.jsxs("div",{className:"space-y-2",children:[f.jsxs("div",{className:"flex justify-between items-center",children:[f.jsx("label",{className:"text-sm font-medium text-gray-700",children:"Academic Advisors"}),f.jsx("button",{type:"button",onClick:()=>s(h,"advisors"),className:"text-blue-600 hover:text-blue-700",children:f.jsx(ws,{size:16})})]}),(g=l.advisors)==null?void 0:g.map((v,y)=>f.jsxs("div",{className:"flex gap-2",children:[f.jsx("input",{type:"text",value:v,onChange:m=>a(h,"advisors",y,m.target.value),placeholder:"Advisor Name",className:"flex-1 px-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500"}),f.jsx("button",{type:"button",onClick:()=>o(h,"advisors",y),className:"text-red-500 hover:text-red-600",children:f.jsx(ys,{size:16})})]},y))]}),f.jsxs("div",{className:"space-y-2",children:[f.jsxs("div",{className:"flex justify-between items-center",children:[f.jsx("label",{className:"text-sm font-medium text-gray-700",children:"Relevant Courses"}),f.jsx("button",{type:"button",onClick:()=>s(h,"relevantCourses"),className:"text-blue-600 hover:text-blue-700",children:f.jsx(ws,{size:16})})]}),l.relevantCourses.map((v,y)=>f.jsxs("div",{className:"flex gap-2",children:[f.jsx("input",{type:"text",value:v,onChange:m=>a(h,"relevantCourses",y,m.target.value),placeholder:"Course Name",className:"flex-1 px-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500"}),f.jsx("button",{type:"button",onClick:()=>o(h,"relevantCourses",y),className:"text-red-500 hover:text-red-600",children:f.jsx(ys,{size:16})})]},y))]})]})]},h)})]})}function Vy({experience:t,setExperience:e}){const r=()=>{e([...t,{company:"",position:"",startDate:"",endDate:"",description:""}])},n=s=>{e(t.filter((o,a)=>a!==s))},i=(s,o,a)=>{const l=[...t];l[s]={...l[s],[o]:a},e(l)};return f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"flex justify-between items-center",children:[f.jsx("h2",{className:"text-xl font-semibold text-gray-800",children:"Experience"}),f.jsxs("button",{onClick:r,className:"flex items-center gap-2 text-blue-600 hover:text-blue-700",children:[f.jsx(Gn,{size:20})," Add Experience"]})]}),t.map((s,o)=>f.jsxs("div",{className:"p-4 bg-white/40 rounded-lg space-y-3",children:[f.jsxs("div",{className:"flex justify-between",children:[f.jsxs("h3",{className:"font-medium",children:["Experience #",o+1]}),f.jsx("button",{onClick:()=>n(o),className:"text-red-500 hover:text-red-600",children:f.jsx(Vn,{size:20})})]}),f.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[f.jsx("input",{type:"text",value:s.company,onChange:a=>i(o,"company",a.target.value),placeholder:"Company",className:"w-full px-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500"}),f.jsx("input",{type:"text",value:s.position,onChange:a=>i(o,"position",a.target.value),placeholder:"Position",className:"w-full px-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500"}),f.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[f.jsx("input",{type:"date",value:s.startDate,onChange:a=>i(o,"startDate",a.target.value),className:"w-full px-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500"}),f.jsx("input",{type:"date",value:s.endDate,onChange:a=>i(o,"endDate",a.target.value),className:"w-full px-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500"})]})]}),f.jsx("textarea",{value:s.description,onChange:a=>i(o,"description",a.target.value),placeholder:"Job Description",className:"w-full px-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500 h-32"})]},o))]})}function $y({skills:t,setSkills:e}){const r=()=>{e([...t,{name:"",level:3}])},n=s=>{e(t.filter((o,a)=>a!==s))},i=(s,o,a)=>{const l=[...t];l[s]={...l[s],[o]:a},e(l)};return f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"flex justify-between items-center",children:[f.jsx("h2",{className:"text-xl font-semibold text-gray-800",children:"Skills"}),f.jsxs("button",{onClick:r,className:"flex items-center gap-2 text-blue-600 hover:text-blue-700",children:[f.jsx(Gn,{size:20})," Add Skill"]})]}),f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:t.map((s,o)=>f.jsxs("div",{className:"flex items-center gap-2 bg-white/40 p-3 rounded-lg",children:[f.jsx("input",{type:"text",value:s.name,onChange:a=>i(o,"name",a.target.value),placeholder:"Skill name",className:"flex-1 px-3 py-1 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500"}),f.jsx("input",{type:"range",min:"1",max:"5",value:s.level,onChange:a=>i(o,"level",parseInt(a.target.value)),className:"w-24"}),f.jsx("button",{onClick:()=>n(o),className:"text-red-500 hover:text-red-600",children:f.jsx(Vn,{size:20})})]},o))})]})}function qy({achievements:t,setAchievements:e}){const r=()=>{e([...t,{title:"",description:"",date:""}])},n=s=>{e(t.filter((o,a)=>a!==s))},i=(s,o,a)=>{const l=[...t];l[s]={...l[s],[o]:a},e(l)};return f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"flex justify-between items-center",children:[f.jsx("h2",{className:"text-xl font-semibold text-gray-800",children:"Achievements"}),f.jsxs("button",{onClick:r,className:"flex items-center gap-2 text-blue-600 hover:text-blue-700",children:[f.jsx(Gn,{size:20})," Add Achievement"]})]}),t.map((s,o)=>f.jsxs("div",{className:"p-4 bg-white/40 rounded-lg space-y-3",children:[f.jsxs("div",{className:"flex justify-between",children:[f.jsxs("h3",{className:"font-medium",children:["Achievement #",o+1]}),f.jsx("button",{onClick:()=>n(o),className:"text-red-500 hover:text-red-600",children:f.jsx(Vn,{size:20})})]}),f.jsxs("div",{className:"grid gap-4",children:[f.jsx("input",{type:"text",value:s.title,onChange:a=>i(o,"title",a.target.value),placeholder:"Achievement Title",className:"w-full px-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500"}),f.jsx("textarea",{value:s.description,onChange:a=>i(o,"description",a.target.value),placeholder:"Achievement Description",className:"w-full px-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500 h-24"}),f.jsx("input",{type:"date",value:s.date,onChange:a=>i(o,"date",a.target.value),className:"w-full px-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500"})]})]},o))]})}function Xy({certifications:t,setCertifications:e}){const r=()=>{e([...t,{name:"",issuer:"",date:""}])},n=s=>{e(t.filter((o,a)=>a!==s))},i=(s,o,a)=>{const l=[...t];l[s]={...l[s],[o]:a},e(l)};return f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"flex justify-between items-center",children:[f.jsx("h2",{className:"text-xl font-semibold text-gray-800",children:"Certifications"}),f.jsxs("button",{onClick:r,className:"flex items-center gap-2 text-blue-600 hover:text-blue-700",children:[f.jsx(Gn,{size:20})," Add Certification"]})]}),t.map((s,o)=>f.jsxs("div",{className:"p-4 bg-white/40 rounded-lg space-y-3",children:[f.jsxs("div",{className:"flex justify-between",children:[f.jsxs("h3",{className:"font-medium",children:["Certification #",o+1]}),f.jsx("button",{onClick:()=>n(o),className:"text-red-500 hover:text-red-600",children:f.jsx(Vn,{size:20})})]}),f.jsxs("div",{className:"grid gap-4",children:[f.jsx("input",{type:"text",value:s.name,onChange:a=>i(o,"name",a.target.value),placeholder:"Certification Name",className:"w-full px-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500"}),f.jsx("input",{type:"text",value:s.issuer,onChange:a=>i(o,"issuer",a.target.value),placeholder:"Issuing Organization",className:"w-full px-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500"}),f.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[f.jsx("input",{type:"date",value:s.date,onChange:a=>i(o,"date",a.target.value),className:"w-full px-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500"}),f.jsx("input",{type:"date",value:s.expiryDate,onChange:a=>i(o,"expiryDate",a.target.value),placeholder:"Expiry Date (Optional)",className:"w-full px-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500"})]}),f.jsx("input",{type:"url",value:s.credentialUrl,onChange:a=>i(o,"credentialUrl",a.target.value),placeholder:"Credential URL (Optional)",className:"w-full px-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500"})]})]},o))]})}function Yy({hobbies:t,setHobbies:e}){const r=()=>{e([...t,{name:"",description:""}])},n=s=>{e(t.filter((o,a)=>a!==s))},i=(s,o,a)=>{const l=[...t];l[s]={...l[s],[o]:a},e(l)};return f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"flex justify-between items-center",children:[f.jsx("h2",{className:"text-xl font-semibold text-gray-800",children:"Hobbies & Interests"}),f.jsxs("button",{onClick:r,className:"flex items-center gap-2 text-blue-600 hover:text-blue-700",children:[f.jsx(Gn,{size:20})," Add Hobby"]})]}),f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:t.map((s,o)=>f.jsxs("div",{className:"p-4 bg-white/40 rounded-lg space-y-3",children:[f.jsxs("div",{className:"flex justify-between",children:[f.jsx("input",{type:"text",value:s.name,onChange:a=>i(o,"name",a.target.value),placeholder:"Hobby Name",className:"flex-1 px-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500"}),f.jsx("button",{onClick:()=>n(o),className:"ml-2 text-red-500 hover:text-red-600",children:f.jsx(Vn,{size:20})})]}),f.jsx("textarea",{value:s.description,onChange:a=>i(o,"description",a.target.value),placeholder:"Description (Optional)",className:"w-full px-4 py-2 rounded-lg bg-white/50 border border-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500 h-20"})]},o))})]})}function Zy({resume:t,setResume:e}){return f.jsxs("div",{className:"space-y-6 p-6 backdrop-blur-lg bg-white/30 rounded-xl shadow-xl",children:[f.jsx(Ky,{personalInfo:t.personalInfo,setPersonalInfo:r=>e({...t,personalInfo:r})}),f.jsx(Gy,{education:t.education,setEducation:r=>e({...t,education:r})}),f.jsx(Vy,{experience:t.experience,setExperience:r=>e({...t,experience:r})}),f.jsx($y,{skills:t.skills,setSkills:r=>e({...t,skills:r})}),f.jsx(qy,{achievements:t.achievements,setAchievements:r=>e({...t,achievements:r})}),f.jsx(Xy,{certifications:t.certifications,setCertifications:r=>e({...t,certifications:r})}),f.jsx(Yy,{hobbies:t.hobbies,setHobbies:r=>e({...t,hobbies:r})})]})}function Qy({resume:t}){const{personalInfo:e}=t;return f.jsxs("div",{className:"max-w-4xl mx-auto bg-white shadow-lg p-8 rounded-lg",children:[f.jsxs("header",{className:"flex items-center gap-6 mb-8",children:[e.profilePicture&&f.jsx("img",{src:e.profilePicture,alt:e.fullName,className:"w-32 h-32 rounded-full object-cover border-4 border-gray-100"}),f.jsxs("div",{className:"flex-1",children:[f.jsx("h1",{className:"text-3xl font-bold text-gray-800",children:e.fullName}),f.jsx("p",{className:"text-xl text-gray-600 mt-1",children:e.jobTitle}),f.jsxs("div",{className:"text-gray-600 mt-2",children:[f.jsxs("p",{children:[e.email," | ",e.phone]}),f.jsx("p",{children:e.location})]}),f.jsxs("div",{className:"flex gap-4 mt-3",children:[e.website&&f.jsx("a",{href:e.website,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:text-blue-700",children:f.jsx(oc,{className:"w-5 h-5"})}),e.linkedin&&f.jsx("a",{href:e.linkedin,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:text-blue-700",children:f.jsx(Oo,{className:"w-5 h-5"})}),e.github&&f.jsx("a",{href:e.github,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:text-blue-700",children:f.jsx($i,{className:"w-5 h-5"})})]})]})]}),f.jsxs("section",{className:"mb-8",children:[f.jsx("h2",{className:"text-2xl font-semibold text-gray-800 mb-4",children:"Professional Summary"}),f.jsx("p",{className:"text-gray-700",children:e.summary})]}),f.jsxs("section",{className:"mb-8",children:[f.jsx("h2",{className:"text-2xl font-semibold text-gray-800 mb-4",children:"Experience"}),t.experience.map((r,n)=>f.jsxs("div",{className:"mb-4",children:[f.jsxs("div",{className:"flex justify-between items-baseline",children:[f.jsx("h3",{className:"text-xl font-medium text-gray-800",children:r.position}),f.jsxs("span",{className:"text-gray-600",children:[r.startDate," - ",r.endDate]})]}),f.jsx("p",{className:"text-gray-700 font-medium",children:r.company}),f.jsx("p",{className:"text-gray-600 mt-2",children:r.description})]},n))]}),f.jsxs("section",{className:"mb-8",children:[f.jsx("h2",{className:"text-2xl font-semibold text-gray-800 mb-4",children:"Education"}),t.education.map((r,n)=>f.jsxs("div",{className:"mb-4",children:[f.jsxs("div",{className:"flex justify-between items-baseline",children:[f.jsx("h3",{className:"text-xl font-medium text-gray-800",children:r.school}),f.jsxs("span",{className:"text-gray-600",children:[r.startDate," - ",r.endDate]})]}),f.jsxs("p",{className:"text-gray-700",children:[r.degree," in ",r.fieldOfStudy]})]},n))]}),f.jsxs("section",{children:[f.jsx("h2",{className:"text-2xl font-semibold text-gray-800 mb-4",children:"Skills"}),f.jsx("div",{className:"grid grid-cols-2 gap-4",children:t.skills.map((r,n)=>f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"font-medium text-gray-800",children:r.name}),f.jsx("div",{className:"flex-1 h-2 bg-gray-200 rounded-full",children:f.jsx("div",{className:"h-full bg-blue-600 rounded-full",style:{width:`${r.level/5*100}%`}})})]},n))})]})]})}function Jy({resume:t}){return f.jsxs("div",{className:"max-w-4xl mx-auto bg-white shadow-lg p-8 rounded-lg",children:[f.jsxs("header",{className:"border-b-2 border-gray-300 pb-4 mb-6",children:[f.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:t.personalInfo.fullName}),f.jsxs("div",{className:"mt-2 text-gray-700",children:[f.jsxs("p",{children:[t.personalInfo.email," • ",t.personalInfo.phone]}),f.jsx("p",{children:t.personalInfo.location})]})]}),f.jsxs("section",{className:"mb-6",children:[f.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Professional Summary"}),f.jsx("p",{className:"text-gray-700",children:t.personalInfo.summary})]}),f.jsxs("section",{className:"mb-6",children:[f.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Professional Experience"}),t.experience.map((e,r)=>f.jsxs("div",{className:"mb-4",children:[f.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:e.position}),f.jsx("p",{className:"text-gray-700 font-medium",children:e.company}),f.jsxs("p",{className:"text-gray-600 italic",children:[e.startDate," - ",e.endDate]}),f.jsx("p",{className:"text-gray-700 mt-2",children:e.description})]},r))]}),f.jsxs("section",{className:"mb-6",children:[f.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Education"}),t.education.map((e,r)=>f.jsxs("div",{className:"mb-4",children:[f.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:e.school}),f.jsxs("p",{className:"text-gray-700",children:[e.degree," in ",e.fieldOfStudy]}),f.jsxs("p",{className:"text-gray-600 italic",children:[e.startDate," - ",e.endDate]})]},r))]}),f.jsxs("section",{children:[f.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Skills"}),f.jsx("div",{className:"flex flex-wrap gap-2",children:t.skills.map((e,r)=>f.jsx("span",{className:"px-3 py-1 bg-gray-200 text-gray-800 rounded-full text-sm",children:e.name},r))})]})]})}function ew({resume:t}){return f.jsxs("div",{className:"max-w-4xl mx-auto bg-white shadow-lg p-8 rounded-lg",children:[f.jsxs("header",{className:"mb-8",children:[f.jsx("h1",{className:"text-4xl font-light text-gray-900",children:t.personalInfo.fullName}),f.jsx("div",{className:"mt-2 text-gray-600 text-sm",children:f.jsxs("p",{children:[t.personalInfo.email," • ",t.personalInfo.phone," • ",t.personalInfo.location]})}),f.jsx("p",{className:"mt-4 text-gray-700",children:t.personalInfo.summary})]}),f.jsxs("section",{className:"mb-8",children:[f.jsx("h2",{className:"text-lg font-medium text-gray-900 uppercase tracking-wider mb-4",children:"Experience"}),t.experience.map((e,r)=>f.jsxs("div",{className:"mb-6",children:[f.jsxs("div",{className:"flex justify-between items-baseline mb-1",children:[f.jsx("h3",{className:"text-lg font-medium text-gray-900",children:e.position}),f.jsxs("span",{className:"text-sm text-gray-600",children:[e.startDate," - ",e.endDate]})]}),f.jsx("p",{className:"text-gray-700 text-sm mb-2",children:e.company}),f.jsx("p",{className:"text-gray-600 text-sm",children:e.description})]},r))]}),f.jsxs("section",{className:"mb-8",children:[f.jsx("h2",{className:"text-lg font-medium text-gray-900 uppercase tracking-wider mb-4",children:"Education"}),t.education.map((e,r)=>f.jsxs("div",{className:"mb-4",children:[f.jsxs("div",{className:"flex justify-between items-baseline mb-1",children:[f.jsx("h3",{className:"text-lg font-medium text-gray-900",children:e.school}),f.jsxs("span",{className:"text-sm text-gray-600",children:[e.startDate," - ",e.endDate]})]}),f.jsxs("p",{className:"text-gray-700 text-sm",children:[e.degree," in ",e.fieldOfStudy]})]},r))]}),f.jsxs("section",{children:[f.jsx("h2",{className:"text-lg font-medium text-gray-900 uppercase tracking-wider mb-4",children:"Skills"}),f.jsx("div",{className:"flex flex-wrap gap-x-8 gap-y-2",children:t.skills.map((e,r)=>f.jsx("span",{className:"text-gray-700 text-sm",children:e.name},r))})]})]})}function tw({resume:t}){const{personalInfo:e}=t;return f.jsxs("div",{className:"max-w-4xl mx-auto bg-gradient-to-br from-blue-50 to-slate-100",children:[f.jsx("div",{className:"bg-gradient-to-r from-blue-800 to-blue-900 text-white p-8 rounded-t-lg",children:f.jsxs("div",{className:"flex items-center gap-6",children:[e.profilePicture&&f.jsx("img",{src:e.profilePicture,alt:e.fullName,className:"w-32 h-32 rounded-full object-cover border-4 border-white/20"}),f.jsxs("div",{className:"flex-1",children:[f.jsx("h1",{className:"text-4xl font-bold",children:e.fullName}),f.jsx("p",{className:"text-xl text-blue-100 mt-1",children:e.jobTitle}),f.jsxs("div",{className:"flex flex-wrap gap-4 mt-4 text-sm",children:[e.email&&f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx(qi,{className:"w-4 h-4"}),f.jsx("span",{children:e.email})]}),e.phone&&f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx(Kn,{className:"w-4 h-4"}),f.jsx("span",{children:e.phone})]}),e.location&&f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx(Do,{className:"w-4 h-4"}),f.jsx("span",{children:e.location})]})]}),f.jsxs("div",{className:"flex gap-4 mt-4",children:[e.website&&f.jsx("a",{href:e.website,target:"_blank",rel:"noopener noreferrer",className:"text-blue-100 hover:text-white transition-colors",children:f.jsx(oc,{className:"w-5 h-5"})}),e.linkedin&&f.jsx("a",{href:e.linkedin,target:"_blank",rel:"noopener noreferrer",className:"text-blue-100 hover:text-white transition-colors",children:f.jsx(Oo,{className:"w-5 h-5"})}),e.github&&f.jsx("a",{href:e.github,target:"_blank",rel:"noopener noreferrer",className:"text-blue-100 hover:text-white transition-colors",children:f.jsx($i,{className:"w-5 h-5"})})]})]})]})}),f.jsxs("div",{className:"p-8",children:[e.summary&&f.jsxs("section",{className:"mb-8 bg-white/60 p-6 rounded-lg backdrop-blur-sm",children:[f.jsx("h2",{className:"text-2xl font-bold text-slate-900 mb-3",children:"About Me"}),f.jsx("p",{className:"text-slate-700 leading-relaxed",children:e.summary})]}),f.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[f.jsxs("div",{className:"space-y-6",children:[f.jsxs("section",{children:[f.jsx("h2",{className:"text-2xl font-bold text-slate-900 mb-4",children:"Experience"}),t.experience.map((r,n)=>f.jsxs("div",{className:"bg-white/60 p-4 rounded-lg backdrop-blur-sm mb-4",children:[f.jsxs("div",{className:"flex justify-between items-baseline mb-2",children:[f.jsx("h3",{className:"text-lg font-semibold text-blue-900",children:r.position}),f.jsxs("div",{className:"flex items-center text-sm text-slate-600",children:[f.jsx(dt,{className:"w-4 h-4 mr-1"}),f.jsxs("span",{children:[r.startDate," - ",r.endDate]})]})]}),f.jsx("p",{className:"text-blue-800 font-medium mb-2",children:r.company}),f.jsx("p",{className:"text-slate-600 text-sm",children:r.description})]},n))]}),f.jsxs("section",{children:[f.jsx("h2",{className:"text-2xl font-bold text-slate-900 mb-4",children:"Achievements"}),t.achievements.map((r,n)=>f.jsx("div",{className:"bg-white/60 p-4 rounded-lg backdrop-blur-sm mb-4",children:f.jsxs("div",{className:"flex items-start gap-3",children:[f.jsx(nm,{className:"w-5 h-5 text-blue-700 flex-shrink-0 mt-1"}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-lg font-semibold text-blue-900",children:r.title}),f.jsx("p",{className:"text-slate-600 text-sm mt-1",children:r.description}),f.jsxs("div",{className:"flex items-center text-sm text-slate-500 mt-2",children:[f.jsx(dt,{className:"w-4 h-4 mr-1"}),f.jsx("span",{children:r.date})]})]})]})},n))]})]}),f.jsxs("div",{className:"space-y-6",children:[f.jsxs("section",{children:[f.jsx("h2",{className:"text-2xl font-bold text-slate-900 mb-4",children:"Education"}),t.education.map((r,n)=>f.jsxs("div",{className:"bg-white/60 p-4 rounded-lg backdrop-blur-sm mb-4",children:[f.jsx("h3",{className:"text-lg font-semibold text-blue-900",children:r.school}),f.jsxs("p",{className:"text-blue-800",children:[r.degree," in ",r.fieldOfStudy]}),f.jsxs("div",{className:"flex items-center text-sm text-slate-600 mt-1",children:[f.jsx(dt,{className:"w-4 h-4 mr-1"}),f.jsxs("span",{children:[r.startDate," - ",r.endDate]})]})]},n))]}),f.jsxs("section",{children:[f.jsx("h2",{className:"text-2xl font-bold text-slate-900 mb-4",children:"Certifications"}),t.certifications.map((r,n)=>f.jsx("div",{className:"bg-white/60 p-4 rounded-lg backdrop-blur-sm mb-4",children:f.jsxs("div",{className:"flex items-start gap-3",children:[f.jsx(Po,{className:"w-5 h-5 text-blue-700 flex-shrink-0 mt-1"}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-lg font-semibold text-blue-900",children:r.name}),f.jsx("p",{className:"text-blue-800",children:r.issuer}),f.jsxs("div",{className:"flex items-center text-sm text-slate-600 mt-1",children:[f.jsx(dt,{className:"w-4 h-4 mr-1"}),f.jsxs("span",{children:[r.date,r.expiryDate?` - ${r.expiryDate}`:""]})]}),r.credentialUrl&&f.jsx("a",{href:r.credentialUrl,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-blue-600 hover:text-blue-700 mt-1 inline-block",children:"View Credential"})]})]})},n))]}),f.jsxs("section",{children:[f.jsx("h2",{className:"text-2xl font-bold text-slate-900 mb-4",children:"Skills"}),f.jsx("div",{className:"bg-white/60 p-4 rounded-lg backdrop-blur-sm",children:f.jsx("div",{className:"grid gap-3",children:t.skills.map((r,n)=>f.jsxs("div",{children:[f.jsxs("div",{className:"flex justify-between items-center mb-1",children:[f.jsx("span",{className:"text-blue-900 font-medium",children:r.name}),f.jsxs("span",{className:"text-sm text-blue-700",children:[r.level,"/5"]})]}),f.jsx("div",{className:"h-2 bg-blue-100 rounded-full overflow-hidden",children:f.jsx("div",{className:"h-full bg-gradient-to-r from-blue-600 to-blue-800 rounded-full transition-all duration-300",style:{width:`${r.level/5*100}%`}})})]},n))})})]}),f.jsxs("section",{children:[f.jsx("h2",{className:"text-2xl font-bold text-slate-900 mb-4",children:"Hobbies & Interests"}),f.jsx("div",{className:"bg-white/60 p-4 rounded-lg backdrop-blur-sm",children:f.jsx("div",{className:"grid gap-4",children:t.hobbies.map((r,n)=>f.jsxs("div",{className:"flex items-start gap-3",children:[f.jsx(Ly,{className:"w-5 h-5 text-blue-700 flex-shrink-0 mt-1"}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-blue-900 font-medium",children:r.name}),r.description&&f.jsx("p",{className:"text-slate-600 text-sm mt-1",children:r.description})]})]},n))})})]})]})]})]})]})}function rw({resume:t}){const{personalInfo:e}=t;return f.jsxs("div",{className:"max-w-4xl mx-auto bg-gradient-to-br from-purple-50 via-pink-50 to-red-50",children:[f.jsx("div",{className:"bg-gradient-to-r from-purple-600 via-pink-600 to-red-600 text-white p-8 rounded-t-lg",children:f.jsxs("div",{className:"flex items-center gap-6",children:[e.profilePicture&&f.jsx("img",{src:e.profilePicture,alt:e.fullName,className:"w-32 h-32 rounded-full object-cover border-4 border-white/20"}),f.jsxs("div",{className:"flex-1",children:[f.jsx("h1",{className:"text-4xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-white to-pink-100",children:e.fullName}),f.jsx("p",{className:"text-xl text-pink-100 mt-1",children:e.jobTitle}),f.jsxs("div",{className:"flex flex-wrap gap-4 mt-4 text-sm",children:[e.email&&f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx(qi,{className:"w-4 h-4"}),f.jsx("span",{children:e.email})]}),e.phone&&f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx(Kn,{className:"w-4 h-4"}),f.jsx("span",{children:e.phone})]}),e.location&&f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx(Do,{className:"w-4 h-4"}),f.jsx("span",{children:e.location})]})]})]})]})}),f.jsx("div",{className:"p-8",children:f.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[f.jsxs("div",{className:"md:col-span-2 space-y-6",children:[f.jsxs("section",{className:"bg-white/60 p-6 rounded-lg shadow-lg backdrop-blur-sm",children:[f.jsx("h2",{className:"text-2xl font-bold text-purple-800 mb-3",children:"About Me"}),f.jsx("p",{className:"text-gray-700 leading-relaxed",children:e.summary})]}),f.jsxs("section",{children:[f.jsx("h2",{className:"text-2xl font-bold text-purple-800 mb-4",children:"Experience"}),t.experience.map((r,n)=>f.jsxs("div",{className:"bg-white/60 p-6 rounded-lg shadow-lg backdrop-blur-sm mb-4",children:[f.jsx("h3",{className:"text-xl font-semibold text-pink-700",children:r.position}),f.jsx("p",{className:"text-purple-700 font-medium",children:r.company}),f.jsxs("div",{className:"flex items-center text-sm text-gray-600 mt-1 mb-2",children:[f.jsx(dt,{className:"w-4 h-4 mr-1"}),f.jsxs("span",{children:[r.startDate," - ",r.endDate]})]}),f.jsx("p",{className:"text-gray-600",children:r.description})]},n))]})]}),f.jsxs("div",{className:"space-y-6",children:[f.jsxs("section",{children:[f.jsx("h2",{className:"text-2xl font-bold text-purple-800 mb-4",children:"Skills"}),f.jsx("div",{className:"bg-white/60 p-6 rounded-lg shadow-lg backdrop-blur-sm",children:t.skills.map((r,n)=>f.jsxs("div",{className:"mb-3",children:[f.jsxs("div",{className:"flex justify-between mb-1",children:[f.jsx("span",{className:"text-purple-700 font-medium",children:r.name}),f.jsxs("span",{className:"text-pink-600",children:[r.level,"/5"]})]}),f.jsx("div",{className:"h-2 bg-purple-100 rounded-full",children:f.jsx("div",{className:"h-full rounded-full bg-gradient-to-r from-purple-500 to-pink-500",style:{width:`${r.level/5*100}%`}})})]},n))})]}),f.jsxs("section",{children:[f.jsx("h2",{className:"text-2xl font-bold text-purple-800 mb-4",children:"Education"}),t.education.map((r,n)=>f.jsxs("div",{className:"bg-white/60 p-6 rounded-lg shadow-lg backdrop-blur-sm mb-4",children:[f.jsx("h3",{className:"text-lg font-semibold text-pink-700",children:r.school}),f.jsx("p",{className:"text-purple-700",children:r.degree}),f.jsx("p",{className:"text-gray-600",children:r.fieldOfStudy}),f.jsxs("div",{className:"flex items-center text-sm text-gray-500 mt-1",children:[f.jsx(dt,{className:"w-4 h-4 mr-1"}),f.jsxs("span",{children:[r.startDate," - ",r.endDate]})]})]},n))]})]})]})})]})}function nw({resume:t}){const{personalInfo:e}=t;return f.jsxs("div",{className:"max-w-4xl mx-auto bg-gradient-to-br from-emerald-50 via-teal-50 to-cyan-50",children:[f.jsxs("div",{className:"relative overflow-hidden",children:[f.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-emerald-600 to-teal-600 transform -skew-y-6 origin-top-left"}),f.jsx("div",{className:"relative z-10 p-8 pt-16",children:f.jsxs("div",{className:"flex items-center gap-6",children:[e.profilePicture&&f.jsx("img",{src:e.profilePicture,alt:e.fullName,className:"w-32 h-32 rounded-full object-cover border-4 border-white shadow-xl"}),f.jsxs("div",{className:"flex-1 text-white",children:[f.jsx("h1",{className:"text-4xl font-bold",children:e.fullName}),f.jsx("p",{className:"text-xl text-emerald-100 mt-1",children:e.jobTitle}),f.jsxs("div",{className:"flex flex-wrap gap-4 mt-4",children:[e.email&&f.jsxs("a",{href:`mailto:${e.email}`,className:"flex items-center gap-2 hover:text-emerald-200",children:[f.jsx(qi,{className:"w-4 h-4"}),f.jsx("span",{children:e.email})]}),e.phone&&f.jsxs("a",{href:`tel:${e.phone}`,className:"flex items-center gap-2 hover:text-emerald-200",children:[f.jsx(Kn,{className:"w-4 h-4"}),f.jsx("span",{children:e.phone})]})]})]})]})})]}),f.jsx("div",{className:"p-8",children:f.jsxs("div",{className:"grid md:grid-cols-12 gap-8",children:[f.jsxs("div",{className:"md:col-span-8 space-y-8",children:[f.jsxs("section",{className:"bg-white/70 p-6 rounded-xl shadow-lg",children:[f.jsx("h2",{className:"text-2xl font-bold text-emerald-800 mb-4",children:"Professional Journey"}),t.experience.map((r,n)=>f.jsxs("div",{className:"mb-6 relative pl-4 border-l-2 border-emerald-300",children:[f.jsx("div",{className:"absolute -left-1.5 top-1.5 w-3 h-3 rounded-full bg-emerald-500"}),f.jsx("h3",{className:"text-xl font-semibold text-emerald-700",children:r.position}),f.jsx("p",{className:"text-teal-600 font-medium",children:r.company}),f.jsxs("div",{className:"flex items-center text-sm text-gray-600 mt-1 mb-2",children:[f.jsx(dt,{className:"w-4 h-4 mr-1"}),f.jsxs("span",{children:[r.startDate," - ",r.endDate]})]}),f.jsx("p",{className:"text-gray-600",children:r.description})]},n))]}),f.jsxs("section",{className:"bg-white/70 p-6 rounded-xl shadow-lg",children:[f.jsx("h2",{className:"text-2xl font-bold text-emerald-800 mb-4",children:"Education & Learning"}),t.education.map((r,n)=>f.jsxs("div",{className:"mb-4 last:mb-0",children:[f.jsx("h3",{className:"text-lg font-semibold text-emerald-700",children:r.school}),f.jsxs("p",{className:"text-teal-600",children:[r.degree," in ",r.fieldOfStudy]}),f.jsxs("div",{className:"flex items-center text-sm text-gray-600 mt-1",children:[f.jsx(dt,{className:"w-4 h-4 mr-1"}),f.jsxs("span",{children:[r.startDate," - ",r.endDate]})]})]},n))]})]}),f.jsxs("div",{className:"md:col-span-4 space-y-8",children:[f.jsxs("section",{className:"bg-white/70 p-6 rounded-xl shadow-lg",children:[f.jsx("h2",{className:"text-2xl font-bold text-emerald-800 mb-4",children:"Expertise"}),f.jsx("div",{className:"space-y-4",children:t.skills.map((r,n)=>f.jsxs("div",{children:[f.jsxs("div",{className:"flex justify-between mb-1",children:[f.jsx("span",{className:"text-emerald-700 font-medium",children:r.name}),f.jsxs("span",{className:"text-teal-600",children:[r.level,"/5"]})]}),f.jsx("div",{className:"h-2 bg-emerald-100 rounded-full overflow-hidden",children:f.jsx("div",{className:"h-full bg-gradient-to-r from-emerald-500 to-teal-500",style:{width:`${r.level/5*100}%`}})})]},n))})]}),f.jsxs("section",{className:"bg-white/70 p-6 rounded-xl shadow-lg",children:[f.jsx("h2",{className:"text-2xl font-bold text-emerald-800 mb-4",children:"Certifications"}),t.certifications.map((r,n)=>f.jsx("div",{className:"mb-4 last:mb-0",children:f.jsxs("div",{className:"flex items-start gap-2",children:[f.jsx(Po,{className:"w-5 h-5 text-emerald-600 flex-shrink-0 mt-1"}),f.jsxs("div",{children:[f.jsx("h3",{className:"font-semibold text-emerald-700",children:r.name}),f.jsx("p",{className:"text-teal-600 text-sm",children:r.issuer}),f.jsx("p",{className:"text-gray-600 text-sm",children:r.date})]})]})},n))]})]})]})})]})}function iw({resume:t}){const{personalInfo:e}=t;return f.jsxs("div",{className:"max-w-4xl mx-auto bg-gradient-to-br from-amber-50 via-yellow-50 to-orange-50",children:[f.jsx("div",{className:"bg-gradient-to-r from-amber-900 to-orange-900 text-white p-12",children:f.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[f.jsx("h1",{className:"text-5xl font-serif font-bold",children:e.fullName}),f.jsx("p",{className:"text-2xl text-amber-200 mt-2 font-serif",children:e.jobTitle}),f.jsxs("div",{className:"flex justify-center gap-6 mt-6",children:[e.email&&f.jsxs("a",{href:`mailto:${e.email}`,className:"flex items-center gap-2 text-amber-100 hover:text-white",children:[f.jsx(qi,{className:"w-5 h-5"}),f.jsx("span",{children:e.email})]}),e.phone&&f.jsxs("a",{href:`tel:${e.phone}`,className:"flex items-center gap-2 text-amber-100 hover:text-white",children:[f.jsx(Kn,{className:"w-5 h-5"}),f.jsx("span",{children:e.phone})]})]})]})}),f.jsxs("div",{className:"max-w-3xl mx-auto p-8",children:[f.jsx("section",{className:"mb-12 text-center",children:f.jsx("p",{className:"text-lg text-gray-700 leading-relaxed font-serif",children:e.summary})}),f.jsxs("div",{className:"grid md:grid-cols-2 gap-12",children:[f.jsxs("section",{children:[f.jsx("h2",{className:"text-2xl font-serif font-bold text-amber-900 mb-6 text-center",children:"Experience"}),t.experience.map((r,n)=>f.jsxs("div",{className:"mb-8 relative",children:[f.jsx("div",{className:"absolute top-0 -left-4 h-full w-0.5 bg-amber-200"}),f.jsx("div",{className:"absolute top-2 -left-6 w-4 h-4 rounded-full border-2 border-amber-400 bg-white"}),f.jsx("h3",{className:"text-xl font-semibold text-amber-800",children:r.position}),f.jsx("p",{className:"text-orange-700 font-medium",children:r.company}),f.jsxs("div",{className:"flex items-center text-sm text-gray-600 mt-1 mb-2",children:[f.jsx(dt,{className:"w-4 h-4 mr-1"}),f.jsxs("span",{children:[r.startDate," - ",r.endDate]})]}),f.jsx("p",{className:"text-gray-600",children:r.description})]},n))]}),f.jsxs("div",{className:"space-y-12",children:[f.jsxs("section",{children:[f.jsx("h2",{className:"text-2xl font-serif font-bold text-amber-900 mb-6 text-center",children:"Education"}),t.education.map((r,n)=>f.jsxs("div",{className:"mb-6 text-center",children:[f.jsx("h3",{className:"text-xl font-semibold text-amber-800",children:r.school}),f.jsx("p",{className:"text-orange-700",children:r.degree}),f.jsx("p",{className:"text-gray-600",children:r.fieldOfStudy}),f.jsxs("div",{className:"flex items-center justify-center text-sm text-gray-500 mt-1",children:[f.jsx(dt,{className:"w-4 h-4 mr-1"}),f.jsxs("span",{children:[r.startDate," - ",r.endDate]})]})]},n))]}),f.jsxs("section",{children:[f.jsx("h2",{className:"text-2xl font-serif font-bold text-amber-900 mb-6 text-center",children:"Skills"}),f.jsx("div",{className:"grid grid-cols-2 gap-4",children:t.skills.map((r,n)=>f.jsx("div",{className:"text-center",children:f.jsx("span",{className:"inline-block px-4 py-2 bg-amber-100 text-amber-900 rounded-full font-medium",children:r.name})},n))})]})]})]})]})]})}function sw({resume:t}){const{personalInfo:e}=t;return f.jsxs("div",{className:"max-w-4xl mx-auto bg-gray-900 text-indigo-300",children:[f.jsx("div",{className:"border-b border-gray-800",children:f.jsx("div",{className:"p-8",children:f.jsxs("div",{className:"flex items-center gap-6",children:[e.profilePicture&&f.jsx("img",{src:e.profilePicture,alt:e.fullName,className:"w-32 h-32 rounded-lg object-cover border-2 border-indigo-500"}),f.jsxs("div",{className:"flex-1",children:[f.jsx("h1",{className:"text-4xl font-bold text-indigo-400",children:e.fullName}),f.jsx("p",{className:"text-xl text-indigo-300 mt-1",children:e.jobTitle}),f.jsxs("div",{className:"flex flex-wrap gap-4 mt-4",children:[f.jsxs("div",{className:"flex items-center gap-2 text-gray-400",children:[f.jsx(ya,{className:"w-4 h-4 text-indigo-400"}),f.jsx("span",{children:e.email})]}),f.jsxs("div",{className:"flex items-center gap-2 text-gray-400",children:[f.jsx(Kn,{className:"w-4 h-4 text-indigo-400"}),f.jsx("span",{children:e.phone})]}),f.jsxs("div",{className:"flex items-center gap-2 text-gray-400",children:[f.jsx(Do,{className:"w-4 h-4 text-indigo-400"}),f.jsx("span",{children:e.location})]})]}),f.jsxs("div",{className:"flex gap-4 mt-4",children:[e.github&&f.jsx("a",{href:e.github,target:"_blank",rel:"noopener noreferrer",className:"text-indigo-400 hover:text-indigo-300",children:f.jsx($i,{className:"w-5 h-5"})}),e.linkedin&&f.jsx("a",{href:e.linkedin,target:"_blank",rel:"noopener noreferrer",className:"text-indigo-400 hover:text-indigo-300",children:f.jsx(Oo,{className:"w-5 h-5"})})]})]})]})})}),f.jsx("div",{className:"p-8",children:f.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[f.jsxs("div",{className:"md:col-span-2 space-y-8",children:[f.jsxs("section",{children:[f.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[f.jsx(ya,{className:"w-6 h-6 text-indigo-400"}),f.jsx("h2",{className:"text-2xl font-bold text-indigo-400",children:"Experience"})]}),t.experience.map((r,n)=>f.jsxs("div",{className:"mb-6 bg-gray-800 p-6 rounded-lg",children:[f.jsx("h3",{className:"text-xl font-semibold text-indigo-300",children:r.position}),f.jsx("p",{className:"text-indigo-400 font-medium",children:r.company}),f.jsxs("div",{className:"flex items-center text-sm text-gray-500 mt-1 mb-2",children:[f.jsx(dt,{className:"w-4 h-4 mr-1"}),f.jsxs("span",{children:[r.startDate," - ",r.endDate]})]}),f.jsx("p",{className:"text-gray-400",children:r.description})]},n))]}),f.jsxs("section",{children:[f.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[f.jsx(nm,{className:"w-6 h-6 text-indigo-400"}),f.jsx("h2",{className:"text-2xl font-bold text-indigo-400",children:"Projects & Achievements"})]}),f.jsx("div",{className:"grid gap-6",children:t.achievements.map((r,n)=>f.jsxs("div",{className:"bg-gray-800 p-6 rounded-lg",children:[f.jsx("h3",{className:"text-xl font-semibold text-indigo-300",children:r.title}),f.jsx("p",{className:"text-gray-400 mt-2",children:r.description}),f.jsxs("div",{className:"flex items-center text-sm text-gray-500 mt-2",children:[f.jsx(dt,{className:"w-4 h-4 mr-1"}),f.jsx("span",{children:r.date})]})]},n))})]})]}),f.jsxs("div",{className:"space-y-8",children:[f.jsxs("section",{children:[f.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[f.jsx(ya,{className:"w-6 h-6 text-indigo-400"}),f.jsx("h2",{className:"text-2xl font-bold text-indigo-400",children:"Tech Stack"})]}),f.jsx("div",{className:"bg-gray-800 p-6 rounded-lg",children:t.skills.map((r,n)=>f.jsxs("div",{className:"mb-4",children:[f.jsxs("div",{className:"flex justify-between mb-1",children:[f.jsx("span",{className:"text-indigo-300 font-medium",children:r.name}),f.jsxs("span",{className:"text-indigo-400",children:[r.level,"/5"]})]}),f.jsx("div",{className:"h-2 bg-gray-700 rounded-full",children:f.jsx("div",{className:"h-full rounded-full bg-gradient-to-r from-indigo-500 to-indigo-400",style:{width:`${r.level/5*100}%`}})})]},n))})]}),f.jsxs("section",{children:[f.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[f.jsx(Po,{className:"w-6 h-6 text-indigo-400"}),f.jsx("h2",{className:"text-2xl font-bold text-indigo-400",children:"Certifications"})]}),f.jsx("div",{className:"bg-gray-800 p-6 rounded-lg",children:t.certifications.map((r,n)=>f.jsxs("div",{className:"mb-4 last:mb-0",children:[f.jsx("h3",{className:"text-indigo-300 font-medium",children:r.name}),f.jsx("p",{className:"text-gray-400 text-sm",children:r.issuer}),f.jsx("p",{className:"text-gray-500 text-sm",children:r.date})]},n))})]})]})]})})]})}function ow({resume:t}){const{personalInfo:e}=t;return f.jsxs("div",{className:"max-w-4xl mx-auto bg-gradient-to-br from-slate-50 to-gray-100",children:[f.jsx("div",{className:"bg-gradient-to-r from-slate-800 to-gray-900 text-white",children:f.jsx("div",{className:"max-w-3xl mx-auto p-8",children:f.jsxs("div",{className:"flex items-center gap-8",children:[e.profilePicture&&f.jsx("img",{src:e.profilePicture,alt:e.fullName,className:"w-40 h-40 rounded-full object-cover border-4 border-white/10 shadow-xl"}),f.jsxs("div",{className:"flex-1",children:[f.jsx("h1",{className:"text-4xl font-bold",children:e.fullName}),f.jsx("p",{className:"text-xl text-slate-300 mt-2",children:e.jobTitle}),f.jsxs("div",{className:"grid grid-cols-2 gap-4 mt-4",children:[e.email&&f.jsxs("div",{className:"flex items-center gap-2 text-slate-300",children:[f.jsx(qi,{className:"w-4 h-4"}),f.jsx("span",{children:e.email})]}),e.phone&&f.jsxs("div",{className:"flex items-center gap-2 text-slate-300",children:[f.jsx(Kn,{className:"w-4 h-4"}),f.jsx("span",{children:e.phone})]}),e.location&&f.jsxs("div",{className:"flex items-center gap-2 text-slate-300",children:[f.jsx(Do,{className:"w-4 h-4"}),f.jsx("span",{children:e.location})]})]})]})]})})}),f.jsxs("div",{className:"max-w-3xl mx-auto p-8",children:[f.jsxs("section",{className:"mb-12",children:[f.jsx("h2",{className:"text-2xl font-bold text-slate-800 mb-4",children:"Professional Summary"}),f.jsx("div",{className:"bg-white p-6 rounded-lg shadow-lg",children:f.jsx("p",{className:"text-gray-700 leading-relaxed",children:e.summary})})]}),f.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[f.jsxs("section",{children:[f.jsx("h2",{className:"text-2xl font-bold text-slate-800 mb-4",children:"Experience"}),t.experience.map((r,n)=>f.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-lg mb-4",children:[f.jsx("h3",{className:"text-xl font-semibold text-slate-800",children:r.position}),f.jsx("p",{className:"text-slate-600 font-medium",children:r.company}),f.jsxs("div",{className:"flex items-center text-sm text-gray-500 mt-1 mb-2",children:[f.jsx(dt,{className:"w-4 h-4 mr-1"}),f.jsxs("span",{children:[r.startDate," - ",r.endDate]})]}),f.jsx("p",{className:"text-gray-600",children:r.description})]},n))]}),f.jsxs("div",{className:"space-y-8",children:[f.jsxs("section",{children:[f.jsx("h2",{className:"text-2xl font-bold text-slate-800 mb-4",children:"Skills & Expertise"}),f.jsx("div",{className:"bg-white p-6 rounded-lg shadow-lg",children:f.jsx("div",{className:"grid grid-cols-2 gap-4",children:t.skills.map((r,n)=>f.jsxs("div",{className:"p-3 bg-slate-50 rounded-lg",children:[f.jsxs("div",{className:"flex justify-between items-center mb-2",children:[f.jsx("span",{className:"font-medium text-slate-800",children:r.name}),f.jsxs("span",{className:"text-sm text-slate-600",children:[r.level,"/5"]})]}),f.jsx("div",{className:"h-1.5 bg-slate-200 rounded-full",children:f.jsx("div",{className:"h-full rounded-full bg-slate-600",style:{width:`${r.level/5*100}%`}})})]},n))})})]}),f.jsxs("section",{children:[f.jsx("h2",{className:"text-2xl font-bold text-slate-800 mb-4",children:"Education"}),t.education.map((r,n)=>f.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-lg mb-4",children:[f.jsx("h3",{className:"text-lg font-semibold text-slate-800",children:r.school}),f.jsx("p",{className:"text-slate-700",children:r.degree}),f.jsx("p",{className:"text-slate-600",children:r.fieldOfStudy}),f.jsxs("div",{className:"flex items-center text-sm text-gray-500 mt-1",children:[f.jsx(dt,{className:"w-4 h-4 mr-1"}),f.jsxs("span",{children:[r.startDate," - ",r.endDate]})]})]},n))]}),f.jsxs("section",{children:[f.jsx("h2",{className:"text-2xl font-bold text-slate-800 mb-4",children:"Certifications"}),f.jsx("div",{className:"bg-white p-6 rounded-lg shadow-lg",children:t.certifications.map((r,n)=>f.jsx("div",{className:"mb-4 last:mb-0",children:f.jsxs("div",{className:"flex items-start gap-3",children:[f.jsx(Po,{className:"w-5 h-5 text-slate-700 flex-shrink-0 mt-1"}),f.jsxs("div",{children:[f.jsx("h3",{className:"font-semibold text-slate-800",children:r.name}),f.jsx("p",{className:"text-slate-600",children:r.issuer}),f.jsx("p",{className:"text-sm text-gray-500",children:r.date})]})]})},n))})]})]})]})]})]})}function aw(){return f.jsx("footer",{className:"py-4 px-8 text-center text-gray-600 bg-white/50 backdrop-blur-sm mt-8",children:f.jsxs("a",{href:"https://github.com/eshanized",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-gray-700 hover:text-blue-600 transition-colors",children:[f.jsx($i,{className:"w-4 h-4"}),f.jsx("span",{children:"Created by eshanized with ❤️"})]})})}function lw(){return f.jsxs("div",{className:"text-center text-xs text-gray-500 mt-4 print:block hidden",children:["Created with Resume Builder by"," ",f.jsx("a",{href:"https://github.com/eshanized",target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:underline",children:"eshanized"})]})}const uw={personalInfo:{fullName:"",jobTitle:"",email:"",phone:"",location:"",website:"",linkedin:"",github:"",summary:"",profilePicture:""},education:[],experience:[],skills:[],achievements:[],certifications:[],hobbies:[]};var cw=Object.defineProperty,fw=Object.defineProperties,dw=Object.getOwnPropertyDescriptors,Ff=Object.getOwnPropertySymbols,hw=Object.prototype.hasOwnProperty,pw=Object.prototype.propertyIsEnumerable,nu=(t,e,r)=>e in t?cw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ee=(t,e)=>{for(var r in e||(e={}))hw.call(e,r)&&nu(t,r,e[r]);if(Ff)for(var r of Ff(e))pw.call(e,r)&&nu(t,r,e[r]);return t},zi=(t,e)=>fw(t,dw(e)),se=(t,e,r)=>(nu(t,typeof e!="symbol"?e+"":e,r),r),vs=(t,e,r)=>new Promise((n,i)=>{var s=l=>{try{a(r.next(l))}catch(h){i(h)}},o=l=>{try{a(r.throw(l))}catch(h){i(h)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(s,o);a((r=r.apply(t,e)).next())});class po{constructor(e){se(this,"rootKey"),this.rootKey=e}}const mw=Object.seal({});class le extends po{constructor(e){super(e),se(this,"root"),this.root=new Array}prepForXml(e){var r;e.stack.push(this);const n=this.root.map(i=>i instanceof po?i.prepForXml(e):i).filter(i=>i!==void 0);return e.stack.pop(),{[this.rootKey]:n.length?n.length===1&&((r=n[0])!=null&&r._attr)?n[0]:n:mw}}addChildElement(e){return this.root.push(e),this}}class Lo extends le{prepForXml(e){const r=super.prepForXml(e);if(r&&(typeof r[this.rootKey]!="object"||Object.keys(r[this.rootKey]).length))return r}}class ye extends po{constructor(e){super("_attr"),se(this,"xmlKeys"),this.root=e}prepForXml(e){const r={};return Object.keys(this.root).forEach(n=>{const i=this.root[n];if(i!==void 0){const s=this.xmlKeys&&this.xmlKeys[n]||n;r[s]=i}}),{_attr:r}}}class Xi extends po{constructor(e){super("_attr"),this.root=e}prepForXml(e){return{_attr:Object.values(this.root).filter(({value:n})=>n!==void 0).reduce((n,{key:i,value:s})=>zi(Ee({},n),{[i]:s}),{})}}}class Ue extends ye{constructor(){super(...arguments),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"})}}var qt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function im(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var sm={},ac={exports:{}},Sn=typeof Reflect=="object"?Reflect:null,Bf=Sn&&typeof Sn.apply=="function"?Sn.apply:function(e,r,n){return Function.prototype.apply.call(e,r,n)},zs;Sn&&typeof Sn.ownKeys=="function"?zs=Sn.ownKeys:Object.getOwnPropertySymbols?zs=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:zs=function(e){return Object.getOwnPropertyNames(e)};function gw(t){console&&console.warn&&console.warn(t)}var om=Number.isNaN||function(e){return e!==e};function ke(){ke.init.call(this)}ac.exports=ke;ac.exports.once=xw;ke.EventEmitter=ke;ke.prototype._events=void 0;ke.prototype._eventsCount=0;ke.prototype._maxListeners=void 0;var Mf=10;function Fo(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(ke,"defaultMaxListeners",{enumerable:!0,get:function(){return Mf},set:function(t){if(typeof t!="number"||t<0||om(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");Mf=t}});ke.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};ke.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||om(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function am(t){return t._maxListeners===void 0?ke.defaultMaxListeners:t._maxListeners}ke.prototype.getMaxListeners=function(){return am(this)};ke.prototype.emit=function(e){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i=e==="error",s=this._events;if(s!==void 0)i=i&&s.error===void 0;else if(!i)return!1;if(i){var o;if(r.length>0&&(o=r[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var l=s[e];if(l===void 0)return!1;if(typeof l=="function")Bf(l,this,r);else for(var h=l.length,g=dm(l,h),n=0;n<h;++n)Bf(g[n],this,r);return!0};function lm(t,e,r,n){var i,s,o;if(Fo(r),s=t._events,s===void 0?(s=t._events=Object.create(null),t._eventsCount=0):(s.newListener!==void 0&&(t.emit("newListener",e,r.listener?r.listener:r),s=t._events),o=s[e]),o===void 0)o=s[e]=r,++t._eventsCount;else if(typeof o=="function"?o=s[e]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),i=am(t),i>0&&o.length>i&&!o.warned){o.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=t,a.type=e,a.count=o.length,gw(a)}return t}ke.prototype.addListener=function(e,r){return lm(this,e,r,!1)};ke.prototype.on=ke.prototype.addListener;ke.prototype.prependListener=function(e,r){return lm(this,e,r,!0)};function yw(){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 um(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=yw.bind(n);return i.listener=r,n.wrapFn=i,i}ke.prototype.once=function(e,r){return Fo(r),this.on(e,um(this,e,r)),this};ke.prototype.prependOnceListener=function(e,r){return Fo(r),this.prependListener(e,um(this,e,r)),this};ke.prototype.removeListener=function(e,r){var n,i,s,o,a;if(Fo(r),i=this._events,i===void 0)return this;if(n=i[e],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||r));else if(typeof n!="function"){for(s=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){a=n[o].listener,s=o;break}if(s<0)return this;s===0?n.shift():ww(n,s),n.length===1&&(i[e]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",e,a||r)}return this};ke.prototype.off=ke.prototype.removeListener;ke.prototype.removeAllListeners=function(e){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var s=Object.keys(n),o;for(i=0;i<s.length;++i)o=s[i],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[e],typeof r=="function")this.removeListener(e,r);else if(r!==void 0)for(i=r.length-1;i>=0;i--)this.removeListener(e,r[i]);return this};function cm(t,e,r){var n=t._events;if(n===void 0)return[];var i=n[e];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?vw(i):dm(i,i.length)}ke.prototype.listeners=function(e){return cm(this,e,!0)};ke.prototype.rawListeners=function(e){return cm(this,e,!1)};ke.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):fm.call(t,e)};ke.prototype.listenerCount=fm;function fm(t){var e=this._events;if(e!==void 0){var r=e[t];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}ke.prototype.eventNames=function(){return this._eventsCount>0?zs(this._events):[]};function dm(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}function ww(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function vw(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}function xw(t,e){return new Promise(function(r,n){function i(o){t.removeListener(e,s),n(o)}function s(){typeof t.removeListener=="function"&&t.removeListener("error",i),r([].slice.call(arguments))}hm(t,e,s,{once:!0}),e!=="error"&&bw(t,i,{once:!0})})}function bw(t,e,r){typeof t.on=="function"&&hm(t,"error",e,r)}function hm(t,e,r,n){if(typeof t.on=="function")n.once?t.once(e,r):t.on(e,r);else if(typeof t.addEventListener=="function")t.addEventListener(e,function i(s){n.once&&t.removeEventListener(e,i),r(s)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}var lc=ac.exports,iu={exports:{}};typeof Object.create=="function"?iu.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:iu.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}};var en=iu.exports;function _w(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var pm={exports:{}},ze=pm.exports={},Kt,Gt;function su(){throw new Error("setTimeout has not been defined")}function ou(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Kt=setTimeout:Kt=su}catch{Kt=su}try{typeof clearTimeout=="function"?Gt=clearTimeout:Gt=ou}catch{Gt=ou}})();function mm(t){if(Kt===setTimeout)return setTimeout(t,0);if((Kt===su||!Kt)&&setTimeout)return Kt=setTimeout,setTimeout(t,0);try{return Kt(t,0)}catch{try{return Kt.call(null,t,0)}catch{return Kt.call(this,t,0)}}}function Ew(t){if(Gt===clearTimeout)return clearTimeout(t);if((Gt===ou||!Gt)&&clearTimeout)return Gt=clearTimeout,clearTimeout(t);try{return Gt(t)}catch{try{return Gt.call(null,t)}catch{return Gt.call(this,t)}}}var ir=[],Nn=!1,Hr,Ws=-1;function Sw(){!Nn||!Hr||(Nn=!1,Hr.length?ir=Hr.concat(ir):Ws=-1,ir.length&&gm())}function gm(){if(!Nn){var t=mm(Sw);Nn=!0;for(var e=ir.length;e;){for(Hr=ir,ir=[];++Ws<e;)Hr&&Hr[Ws].run();Ws=-1,e=ir.length}Hr=null,Nn=!1,Ew(t)}}ze.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];ir.push(new ym(t,e)),ir.length===1&&!Nn&&mm(gm)};function ym(t,e){this.fun=t,this.array=e}ym.prototype.run=function(){this.fun.apply(null,this.array)};ze.title="browser";ze.browser=!0;ze.env={};ze.argv=[];ze.version="";ze.versions={};function fr(){}ze.on=fr;ze.addListener=fr;ze.once=fr;ze.off=fr;ze.removeListener=fr;ze.removeAllListeners=fr;ze.emit=fr;ze.prependListener=fr;ze.prependOnceListener=fr;ze.listeners=function(t){return[]};ze.binding=function(t){throw new Error("process.binding is not supported")};ze.cwd=function(){return"/"};ze.chdir=function(t){throw new Error("process.chdir is not supported")};ze.umask=function(){return 0};var Nw=pm.exports;const xe=_w(Nw);var wa,Uf;function wm(){return Uf||(Uf=1,wa=lc.EventEmitter),wa}var va={},ai={},zf;function kw(){if(zf)return ai;zf=1,ai.byteLength=a,ai.toByteArray=h,ai.fromByteArray=y;for(var t=[],e=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,s=n.length;i<s;++i)t[i]=n[i],e[n.charCodeAt(i)]=i;e[45]=62,e[95]=63;function o(m){var N=m.length;if(N%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var b=m.indexOf("=");b===-1&&(b=N);var A=b===N?0:4-b%4;return[b,A]}function a(m){var N=o(m),b=N[0],A=N[1];return(b+A)*3/4-A}function l(m,N,b){return(N+b)*3/4-b}function h(m){var N,b=o(m),A=b[0],d=b[1],p=new r(l(m,A,d)),E=0,C=d>0?A-4:A,O;for(O=0;O<C;O+=4)N=e[m.charCodeAt(O)]<<18|e[m.charCodeAt(O+1)]<<12|e[m.charCodeAt(O+2)]<<6|e[m.charCodeAt(O+3)],p[E++]=N>>16&255,p[E++]=N>>8&255,p[E++]=N&255;return d===2&&(N=e[m.charCodeAt(O)]<<2|e[m.charCodeAt(O+1)]>>4,p[E++]=N&255),d===1&&(N=e[m.charCodeAt(O)]<<10|e[m.charCodeAt(O+1)]<<4|e[m.charCodeAt(O+2)]>>2,p[E++]=N>>8&255,p[E++]=N&255),p}function g(m){return t[m>>18&63]+t[m>>12&63]+t[m>>6&63]+t[m&63]}function v(m,N,b){for(var A,d=[],p=N;p<b;p+=3)A=(m[p]<<16&16711680)+(m[p+1]<<8&65280)+(m[p+2]&255),d.push(g(A));return d.join("")}function y(m){for(var N,b=m.length,A=b%3,d=[],p=16383,E=0,C=b-A;E<C;E+=p)d.push(v(m,E,E+p>C?C:E+p));return A===1?(N=m[b-1],d.push(t[N>>2]+t[N<<4&63]+"==")):A===2&&(N=(m[b-2]<<8)+m[b-1],d.push(t[N>>10]+t[N>>4&63]+t[N<<2&63]+"=")),d.join("")}return ai}var xs={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var Wf;function Tw(){return Wf||(Wf=1,xs.read=function(t,e,r,n,i){var s,o,a=i*8-n-1,l=(1<<a)-1,h=l>>1,g=-7,v=r?i-1:0,y=r?-1:1,m=t[e+v];for(v+=y,s=m&(1<<-g)-1,m>>=-g,g+=a;g>0;s=s*256+t[e+v],v+=y,g-=8);for(o=s&(1<<-g)-1,s>>=-g,g+=n;g>0;o=o*256+t[e+v],v+=y,g-=8);if(s===0)s=1-h;else{if(s===l)return o?NaN:(m?-1:1)*(1/0);o=o+Math.pow(2,n),s=s-h}return(m?-1:1)*o*Math.pow(2,s-n)},xs.write=function(t,e,r,n,i,s){var o,a,l,h=s*8-i-1,g=(1<<h)-1,v=g>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=n?0:s-1,N=n?1:-1,b=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=g):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+v>=1?e+=y/l:e+=y*Math.pow(2,1-v),e*l>=2&&(o++,l/=2),o+v>=g?(a=0,o=g):o+v>=1?(a=(e*l-1)*Math.pow(2,i),o=o+v):(a=e*Math.pow(2,v-1)*Math.pow(2,i),o=0));i>=8;t[r+m]=a&255,m+=N,a/=256,i-=8);for(o=o<<i|a,h+=i;h>0;t[r+m]=o&255,m+=N,o/=256,h-=8);t[r+m-N]|=b*128}),xs}/*!
|
||
* The buffer module from node.js, for the browser.
|
||
*
|
||
* @author Feross Aboukhadijeh <https://feross.org>
|
||
* @license MIT
|
||
*/var Hf;function Bo(){return Hf||(Hf=1,function(t){var e=kw(),r=Tw(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=a,t.SlowBuffer=p,t.INSPECT_MAX_BYTES=50;var i=2147483647;t.kMaxLength=i,a.TYPED_ARRAY_SUPPORT=s(),!a.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 s(){try{var k=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(k,u),k.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function o(k){if(k>i)throw new RangeError('The value "'+k+'" is invalid for option "size"');var u=new Uint8Array(k);return Object.setPrototypeOf(u,a.prototype),u}function a(k,u,c){if(typeof k=="number"){if(typeof u=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return v(k)}return l(k,u,c)}a.poolSize=8192;function l(k,u,c){if(typeof k=="string")return y(k,u);if(ArrayBuffer.isView(k))return N(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(J(k,ArrayBuffer)||k&&J(k.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(J(k,SharedArrayBuffer)||k&&J(k.buffer,SharedArrayBuffer)))return b(k,u,c);if(typeof k=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var w=k.valueOf&&k.valueOf();if(w!=null&&w!==k)return a.from(w,u,c);var P=A(k);if(P)return P;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof k[Symbol.toPrimitive]=="function")return a.from(k[Symbol.toPrimitive]("string"),u,c);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof k)}a.from=function(k,u,c){return l(k,u,c)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function h(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 g(k,u,c){return h(k),k<=0?o(k):u!==void 0?typeof c=="string"?o(k).fill(u,c):o(k).fill(u):o(k)}a.alloc=function(k,u,c){return g(k,u,c)};function v(k){return h(k),o(k<0?0:d(k)|0)}a.allocUnsafe=function(k){return v(k)},a.allocUnsafeSlow=function(k){return v(k)};function y(k,u){if((typeof u!="string"||u==="")&&(u="utf8"),!a.isEncoding(u))throw new TypeError("Unknown encoding: "+u);var c=E(k,u)|0,w=o(c),P=w.write(k,u);return P!==c&&(w=w.slice(0,P)),w}function m(k){for(var u=k.length<0?0:d(k.length)|0,c=o(u),w=0;w<u;w+=1)c[w]=k[w]&255;return c}function N(k){if(J(k,Uint8Array)){var u=new Uint8Array(k);return b(u.buffer,u.byteOffset,u.byteLength)}return m(k)}function b(k,u,c){if(u<0||k.byteLength<u)throw new RangeError('"offset" is outside of buffer bounds');if(k.byteLength<u+(c||0))throw new RangeError('"length" is outside of buffer bounds');var w;return u===void 0&&c===void 0?w=new Uint8Array(k):c===void 0?w=new Uint8Array(k,u):w=new Uint8Array(k,u,c),Object.setPrototypeOf(w,a.prototype),w}function A(k){if(a.isBuffer(k)){var u=d(k.length)|0,c=o(u);return c.length===0||k.copy(c,0,0,u),c}if(k.length!==void 0)return typeof k.length!="number"||x(k.length)?o(0):m(k);if(k.type==="Buffer"&&Array.isArray(k.data))return m(k.data)}function d(k){if(k>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return k|0}function p(k){return+k!=k&&(k=0),a.alloc(+k)}a.isBuffer=function(u){return u!=null&&u._isBuffer===!0&&u!==a.prototype},a.compare=function(u,c){if(J(u,Uint8Array)&&(u=a.from(u,u.offset,u.byteLength)),J(c,Uint8Array)&&(c=a.from(c,c.offset,c.byteLength)),!a.isBuffer(u)||!a.isBuffer(c))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===c)return 0;for(var w=u.length,P=c.length,W=0,B=Math.min(w,P);W<B;++W)if(u[W]!==c[W]){w=u[W],P=c[W];break}return w<P?-1:P<w?1:0},a.isEncoding=function(u){switch(String(u).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}},a.concat=function(u,c){if(!Array.isArray(u))throw new TypeError('"list" argument must be an Array of Buffers');if(u.length===0)return a.alloc(0);var w;if(c===void 0)for(c=0,w=0;w<u.length;++w)c+=u[w].length;var P=a.allocUnsafe(c),W=0;for(w=0;w<u.length;++w){var B=u[w];if(J(B,Uint8Array))W+B.length>P.length?a.from(B).copy(P,W):Uint8Array.prototype.set.call(P,B,W);else if(a.isBuffer(B))B.copy(P,W);else throw new TypeError('"list" argument must be an Array of Buffers');W+=B.length}return P};function E(k,u){if(a.isBuffer(k))return k.length;if(ArrayBuffer.isView(k)||J(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,w=arguments.length>2&&arguments[2]===!0;if(!w&&c===0)return 0;for(var P=!1;;)switch(u){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":return _(k).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c*2;case"hex":return c>>>1;case"base64":return I(k).length;default:if(P)return w?-1:_(k).length;u=(""+u).toLowerCase(),P=!0}}a.byteLength=E;function C(k,u,c){var w=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((c===void 0||c>this.length)&&(c=this.length),c<=0)||(c>>>=0,u>>>=0,c<=u))return"";for(k||(k="utf8");;)switch(k){case"hex":return q(this,u,c);case"utf8":case"utf-8":return T(this,u,c);case"ascii":return Q(this,u,c);case"latin1":case"binary":return ne(this,u,c);case"base64":return X(this,u,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae(this,u,c);default:if(w)throw new TypeError("Unknown encoding: "+k);k=(k+"").toLowerCase(),w=!0}}a.prototype._isBuffer=!0;function O(k,u,c){var w=k[u];k[u]=k[c],k[c]=w}a.prototype.swap16=function(){var u=this.length;if(u%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var c=0;c<u;c+=2)O(this,c,c+1);return this},a.prototype.swap32=function(){var u=this.length;if(u%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var c=0;c<u;c+=4)O(this,c,c+3),O(this,c+1,c+2);return this},a.prototype.swap64=function(){var u=this.length;if(u%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var c=0;c<u;c+=8)O(this,c,c+7),O(this,c+1,c+6),O(this,c+2,c+5),O(this,c+3,c+4);return this},a.prototype.toString=function(){var u=this.length;return u===0?"":arguments.length===0?T(this,0,u):C.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(u){if(!a.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u?!0:a.compare(this,u)===0},a.prototype.inspect=function(){var u="",c=t.INSPECT_MAX_BYTES;return u=this.toString("hex",0,c).replace(/(.{2})/g,"$1 ").trim(),this.length>c&&(u+=" ... "),"<Buffer "+u+">"},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(u,c,w,P,W){if(J(u,Uint8Array)&&(u=a.from(u,u.offset,u.byteLength)),!a.isBuffer(u))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof u);if(c===void 0&&(c=0),w===void 0&&(w=u?u.length:0),P===void 0&&(P=0),W===void 0&&(W=this.length),c<0||w>u.length||P<0||W>this.length)throw new RangeError("out of range index");if(P>=W&&c>=w)return 0;if(P>=W)return-1;if(c>=w)return 1;if(c>>>=0,w>>>=0,P>>>=0,W>>>=0,this===u)return 0;for(var B=W-P,ie=w-c,ce=Math.min(B,ie),oe=this.slice(P,W),pe=u.slice(c,w),ge=0;ge<ce;++ge)if(oe[ge]!==pe[ge]){B=oe[ge],ie=pe[ge];break}return B<ie?-1:ie<B?1:0};function H(k,u,c,w,P){if(k.length===0)return-1;if(typeof c=="string"?(w=c,c=0):c>2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),c=+c,x(c)&&(c=P?0:k.length-1),c<0&&(c=k.length+c),c>=k.length){if(P)return-1;c=k.length-1}else if(c<0)if(P)c=0;else return-1;if(typeof u=="string"&&(u=a.from(u,w)),a.isBuffer(u))return u.length===0?-1:U(k,u,c,w,P);if(typeof u=="number")return u=u&255,typeof Uint8Array.prototype.indexOf=="function"?P?Uint8Array.prototype.indexOf.call(k,u,c):Uint8Array.prototype.lastIndexOf.call(k,u,c):U(k,[u],c,w,P);throw new TypeError("val must be string, number or Buffer")}function U(k,u,c,w,P){var W=1,B=k.length,ie=u.length;if(w!==void 0&&(w=String(w).toLowerCase(),w==="ucs2"||w==="ucs-2"||w==="utf16le"||w==="utf-16le")){if(k.length<2||u.length<2)return-1;W=2,B/=2,ie/=2,c/=2}function ce(st,dr){return W===1?st[dr]:st.readUInt16BE(dr*W)}var oe;if(P){var pe=-1;for(oe=c;oe<B;oe++)if(ce(k,oe)===ce(u,pe===-1?0:oe-pe)){if(pe===-1&&(pe=oe),oe-pe+1===ie)return pe*W}else pe!==-1&&(oe-=oe-pe),pe=-1}else for(c+ie>B&&(c=B-ie),oe=c;oe>=0;oe--){for(var ge=!0,we=0;we<ie;we++)if(ce(k,oe+we)!==ce(u,we)){ge=!1;break}if(ge)return oe}return-1}a.prototype.includes=function(u,c,w){return this.indexOf(u,c,w)!==-1},a.prototype.indexOf=function(u,c,w){return H(this,u,c,w,!0)},a.prototype.lastIndexOf=function(u,c,w){return H(this,u,c,w,!1)};function G(k,u,c,w){c=Number(c)||0;var P=k.length-c;w?(w=Number(w),w>P&&(w=P)):w=P;var W=u.length;w>W/2&&(w=W/2);for(var B=0;B<w;++B){var ie=parseInt(u.substr(B*2,2),16);if(x(ie))return B;k[c+B]=ie}return B}function j(k,u,c,w){return D(_(u,k.length-c),k,c,w)}function ee(k,u,c,w){return D(M(u),k,c,w)}function de(k,u,c,w){return D(I(u),k,c,w)}function L(k,u,c,w){return D(F(u,k.length-c),k,c,w)}a.prototype.write=function(u,c,w,P){if(c===void 0)P="utf8",w=this.length,c=0;else if(w===void 0&&typeof c=="string")P=c,w=this.length,c=0;else if(isFinite(c))c=c>>>0,isFinite(w)?(w=w>>>0,P===void 0&&(P="utf8")):(P=w,w=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var W=this.length-c;if((w===void 0||w>W)&&(w=W),u.length>0&&(w<0||c<0)||c>this.length)throw new RangeError("Attempt to write outside buffer bounds");P||(P="utf8");for(var B=!1;;)switch(P){case"hex":return G(this,u,c,w);case"utf8":case"utf-8":return j(this,u,c,w);case"ascii":case"latin1":case"binary":return ee(this,u,c,w);case"base64":return de(this,u,c,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,u,c,w);default:if(B)throw new TypeError("Unknown encoding: "+P);P=(""+P).toLowerCase(),B=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function X(k,u,c){return u===0&&c===k.length?e.fromByteArray(k):e.fromByteArray(k.slice(u,c))}function T(k,u,c){c=Math.min(k.length,c);for(var w=[],P=u;P<c;){var W=k[P],B=null,ie=W>239?4:W>223?3:W>191?2:1;if(P+ie<=c){var ce,oe,pe,ge;switch(ie){case 1:W<128&&(B=W);break;case 2:ce=k[P+1],(ce&192)===128&&(ge=(W&31)<<6|ce&63,ge>127&&(B=ge));break;case 3:ce=k[P+1],oe=k[P+2],(ce&192)===128&&(oe&192)===128&&(ge=(W&15)<<12|(ce&63)<<6|oe&63,ge>2047&&(ge<55296||ge>57343)&&(B=ge));break;case 4:ce=k[P+1],oe=k[P+2],pe=k[P+3],(ce&192)===128&&(oe&192)===128&&(pe&192)===128&&(ge=(W&15)<<18|(ce&63)<<12|(oe&63)<<6|pe&63,ge>65535&&ge<1114112&&(B=ge))}}B===null?(B=65533,ie=1):B>65535&&(B-=65536,w.push(B>>>10&1023|55296),B=56320|B&1023),w.push(B),P+=ie}return he(w)}var Z=4096;function he(k){var u=k.length;if(u<=Z)return String.fromCharCode.apply(String,k);for(var c="",w=0;w<u;)c+=String.fromCharCode.apply(String,k.slice(w,w+=Z));return c}function Q(k,u,c){var w="";c=Math.min(k.length,c);for(var P=u;P<c;++P)w+=String.fromCharCode(k[P]&127);return w}function ne(k,u,c){var w="";c=Math.min(k.length,c);for(var P=u;P<c;++P)w+=String.fromCharCode(k[P]);return w}function q(k,u,c){var w=k.length;(!u||u<0)&&(u=0),(!c||c<0||c>w)&&(c=w);for(var P="",W=u;W<c;++W)P+=Y[k[W]];return P}function ae(k,u,c){for(var w=k.slice(u,c),P="",W=0;W<w.length-1;W+=2)P+=String.fromCharCode(w[W]+w[W+1]*256);return P}a.prototype.slice=function(u,c){var w=this.length;u=~~u,c=c===void 0?w:~~c,u<0?(u+=w,u<0&&(u=0)):u>w&&(u=w),c<0?(c+=w,c<0&&(c=0)):c>w&&(c=w),c<u&&(c=u);var P=this.subarray(u,c);return Object.setPrototypeOf(P,a.prototype),P};function K(k,u,c){if(k%1!==0||k<0)throw new RangeError("offset is not uint");if(k+u>c)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(u,c,w){u=u>>>0,c=c>>>0,w||K(u,c,this.length);for(var P=this[u],W=1,B=0;++B<c&&(W*=256);)P+=this[u+B]*W;return P},a.prototype.readUintBE=a.prototype.readUIntBE=function(u,c,w){u=u>>>0,c=c>>>0,w||K(u,c,this.length);for(var P=this[u+--c],W=1;c>0&&(W*=256);)P+=this[u+--c]*W;return P},a.prototype.readUint8=a.prototype.readUInt8=function(u,c){return u=u>>>0,c||K(u,1,this.length),this[u]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(u,c){return u=u>>>0,c||K(u,2,this.length),this[u]|this[u+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(u,c){return u=u>>>0,c||K(u,2,this.length),this[u]<<8|this[u+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(u,c){return u=u>>>0,c||K(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(u,c){return u=u>>>0,c||K(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},a.prototype.readIntLE=function(u,c,w){u=u>>>0,c=c>>>0,w||K(u,c,this.length);for(var P=this[u],W=1,B=0;++B<c&&(W*=256);)P+=this[u+B]*W;return W*=128,P>=W&&(P-=Math.pow(2,8*c)),P},a.prototype.readIntBE=function(u,c,w){u=u>>>0,c=c>>>0,w||K(u,c,this.length);for(var P=c,W=1,B=this[u+--P];P>0&&(W*=256);)B+=this[u+--P]*W;return W*=128,B>=W&&(B-=Math.pow(2,8*c)),B},a.prototype.readInt8=function(u,c){return u=u>>>0,c||K(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},a.prototype.readInt16LE=function(u,c){u=u>>>0,c||K(u,2,this.length);var w=this[u]|this[u+1]<<8;return w&32768?w|4294901760:w},a.prototype.readInt16BE=function(u,c){u=u>>>0,c||K(u,2,this.length);var w=this[u+1]|this[u]<<8;return w&32768?w|4294901760:w},a.prototype.readInt32LE=function(u,c){return u=u>>>0,c||K(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},a.prototype.readInt32BE=function(u,c){return u=u>>>0,c||K(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},a.prototype.readFloatLE=function(u,c){return u=u>>>0,c||K(u,4,this.length),r.read(this,u,!0,23,4)},a.prototype.readFloatBE=function(u,c){return u=u>>>0,c||K(u,4,this.length),r.read(this,u,!1,23,4)},a.prototype.readDoubleLE=function(u,c){return u=u>>>0,c||K(u,8,this.length),r.read(this,u,!0,52,8)},a.prototype.readDoubleBE=function(u,c){return u=u>>>0,c||K(u,8,this.length),r.read(this,u,!1,52,8)};function R(k,u,c,w,P,W){if(!a.isBuffer(k))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>P||u<W)throw new RangeError('"value" argument is out of bounds');if(c+w>k.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(u,c,w,P){if(u=+u,c=c>>>0,w=w>>>0,!P){var W=Math.pow(2,8*w)-1;R(this,u,c,w,W,0)}var B=1,ie=0;for(this[c]=u&255;++ie<w&&(B*=256);)this[c+ie]=u/B&255;return c+w},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(u,c,w,P){if(u=+u,c=c>>>0,w=w>>>0,!P){var W=Math.pow(2,8*w)-1;R(this,u,c,w,W,0)}var B=w-1,ie=1;for(this[c+B]=u&255;--B>=0&&(ie*=256);)this[c+B]=u/ie&255;return c+w},a.prototype.writeUint8=a.prototype.writeUInt8=function(u,c,w){return u=+u,c=c>>>0,w||R(this,u,c,1,255,0),this[c]=u&255,c+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(u,c,w){return u=+u,c=c>>>0,w||R(this,u,c,2,65535,0),this[c]=u&255,this[c+1]=u>>>8,c+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(u,c,w){return u=+u,c=c>>>0,w||R(this,u,c,2,65535,0),this[c]=u>>>8,this[c+1]=u&255,c+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(u,c,w){return u=+u,c=c>>>0,w||R(this,u,c,4,4294967295,0),this[c+3]=u>>>24,this[c+2]=u>>>16,this[c+1]=u>>>8,this[c]=u&255,c+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(u,c,w){return u=+u,c=c>>>0,w||R(this,u,c,4,4294967295,0),this[c]=u>>>24,this[c+1]=u>>>16,this[c+2]=u>>>8,this[c+3]=u&255,c+4},a.prototype.writeIntLE=function(u,c,w,P){if(u=+u,c=c>>>0,!P){var W=Math.pow(2,8*w-1);R(this,u,c,w,W-1,-W)}var B=0,ie=1,ce=0;for(this[c]=u&255;++B<w&&(ie*=256);)u<0&&ce===0&&this[c+B-1]!==0&&(ce=1),this[c+B]=(u/ie>>0)-ce&255;return c+w},a.prototype.writeIntBE=function(u,c,w,P){if(u=+u,c=c>>>0,!P){var W=Math.pow(2,8*w-1);R(this,u,c,w,W-1,-W)}var B=w-1,ie=1,ce=0;for(this[c+B]=u&255;--B>=0&&(ie*=256);)u<0&&ce===0&&this[c+B+1]!==0&&(ce=1),this[c+B]=(u/ie>>0)-ce&255;return c+w},a.prototype.writeInt8=function(u,c,w){return u=+u,c=c>>>0,w||R(this,u,c,1,127,-128),u<0&&(u=255+u+1),this[c]=u&255,c+1},a.prototype.writeInt16LE=function(u,c,w){return u=+u,c=c>>>0,w||R(this,u,c,2,32767,-32768),this[c]=u&255,this[c+1]=u>>>8,c+2},a.prototype.writeInt16BE=function(u,c,w){return u=+u,c=c>>>0,w||R(this,u,c,2,32767,-32768),this[c]=u>>>8,this[c+1]=u&255,c+2},a.prototype.writeInt32LE=function(u,c,w){return u=+u,c=c>>>0,w||R(this,u,c,4,2147483647,-2147483648),this[c]=u&255,this[c+1]=u>>>8,this[c+2]=u>>>16,this[c+3]=u>>>24,c+4},a.prototype.writeInt32BE=function(u,c,w){return u=+u,c=c>>>0,w||R(this,u,c,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),this[c]=u>>>24,this[c+1]=u>>>16,this[c+2]=u>>>8,this[c+3]=u&255,c+4};function V(k,u,c,w,P,W){if(c+w>k.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("Index out of range")}function $(k,u,c,w,P){return u=+u,c=c>>>0,P||V(k,u,c,4),r.write(k,u,c,w,23,4),c+4}a.prototype.writeFloatLE=function(u,c,w){return $(this,u,c,!0,w)},a.prototype.writeFloatBE=function(u,c,w){return $(this,u,c,!1,w)};function te(k,u,c,w,P){return u=+u,c=c>>>0,P||V(k,u,c,8),r.write(k,u,c,w,52,8),c+8}a.prototype.writeDoubleLE=function(u,c,w){return te(this,u,c,!0,w)},a.prototype.writeDoubleBE=function(u,c,w){return te(this,u,c,!1,w)},a.prototype.copy=function(u,c,w,P){if(!a.isBuffer(u))throw new TypeError("argument should be a Buffer");if(w||(w=0),!P&&P!==0&&(P=this.length),c>=u.length&&(c=u.length),c||(c=0),P>0&&P<w&&(P=w),P===w||u.length===0||this.length===0)return 0;if(c<0)throw new RangeError("targetStart out of bounds");if(w<0||w>=this.length)throw new RangeError("Index out of range");if(P<0)throw new RangeError("sourceEnd out of bounds");P>this.length&&(P=this.length),u.length-c<P-w&&(P=u.length-c+w);var W=P-w;return this===u&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(c,w,P):Uint8Array.prototype.set.call(u,this.subarray(w,P),c),W},a.prototype.fill=function(u,c,w,P){if(typeof u=="string"){if(typeof c=="string"?(P=c,c=0,w=this.length):typeof w=="string"&&(P=w,w=this.length),P!==void 0&&typeof P!="string")throw new TypeError("encoding must be a string");if(typeof P=="string"&&!a.isEncoding(P))throw new TypeError("Unknown encoding: "+P);if(u.length===1){var W=u.charCodeAt(0);(P==="utf8"&&W<128||P==="latin1")&&(u=W)}}else typeof u=="number"?u=u&255:typeof u=="boolean"&&(u=Number(u));if(c<0||this.length<c||this.length<w)throw new RangeError("Out of range index");if(w<=c)return this;c=c>>>0,w=w===void 0?this.length:w>>>0,u||(u=0);var B;if(typeof u=="number")for(B=c;B<w;++B)this[B]=u;else{var ie=a.isBuffer(u)?u:a.from(u,P),ce=ie.length;if(ce===0)throw new TypeError('The value "'+u+'" is invalid for argument "value"');for(B=0;B<w-c;++B)this[B+c]=ie[B%ce]}return this};var z=/[^+/0-9A-Za-z-_]/g;function S(k){if(k=k.split("=")[0],k=k.trim().replace(z,""),k.length<2)return"";for(;k.length%4!==0;)k=k+"=";return k}function _(k,u){u=u||1/0;for(var c,w=k.length,P=null,W=[],B=0;B<w;++B){if(c=k.charCodeAt(B),c>55295&&c<57344){if(!P){if(c>56319){(u-=3)>-1&&W.push(239,191,189);continue}else if(B+1===w){(u-=3)>-1&&W.push(239,191,189);continue}P=c;continue}if(c<56320){(u-=3)>-1&&W.push(239,191,189),P=c;continue}c=(P-55296<<10|c-56320)+65536}else P&&(u-=3)>-1&&W.push(239,191,189);if(P=null,c<128){if((u-=1)<0)break;W.push(c)}else if(c<2048){if((u-=2)<0)break;W.push(c>>6|192,c&63|128)}else if(c<65536){if((u-=3)<0)break;W.push(c>>12|224,c>>6&63|128,c&63|128)}else if(c<1114112){if((u-=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 M(k){for(var u=[],c=0;c<k.length;++c)u.push(k.charCodeAt(c)&255);return u}function F(k,u){for(var c,w,P,W=[],B=0;B<k.length&&!((u-=2)<0);++B)c=k.charCodeAt(B),w=c>>8,P=c%256,W.push(P),W.push(w);return W}function I(k){return e.toByteArray(S(k))}function D(k,u,c,w){for(var P=0;P<w&&!(P+c>=u.length||P>=k.length);++P)u[P+c]=k[P];return P}function J(k,u){return k instanceof u||k!=null&&k.constructor!=null&&k.constructor.name!=null&&k.constructor.name===u.name}function x(k){return k!==k}var Y=function(){for(var k="0123456789abcdef",u=new Array(256),c=0;c<16;++c)for(var w=c*16,P=0;P<16;++P)u[w+P]=k[c]+k[P];return u}()}(va)),va}var xa={},ba={},_a,Kf;function vm(){return Kf||(Kf=1,_a=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[r]=i;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,r);if(o.value!==i||o.enumerable!==!0)return!1}return!0}),_a}var Ea,Gf;function uc(){if(Gf)return Ea;Gf=1;var t=vm();return Ea=function(){return t()&&!!Symbol.toStringTag},Ea}var Sa,Vf;function Aw(){if(Vf)return Sa;Vf=1;var t=typeof Symbol<"u"&&Symbol,e=vm();return Sa=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Sa}var Na,$f;function Cw(){if($f)return Na;$f=1;var t={foo:{}},e=Object;return Na=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof e)},Na}var ka,qf;function jw(){if(qf)return ka;qf=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,r=Math.max,n="[object Function]",i=function(l,h){for(var g=[],v=0;v<l.length;v+=1)g[v]=l[v];for(var y=0;y<h.length;y+=1)g[y+l.length]=h[y];return g},s=function(l,h){for(var g=[],v=h,y=0;v<l.length;v+=1,y+=1)g[y]=l[v];return g},o=function(a,l){for(var h="",g=0;g<a.length;g+=1)h+=a[g],g+1<a.length&&(h+=l);return h};return ka=function(l){var h=this;if(typeof h!="function"||e.apply(h)!==n)throw new TypeError(t+h);for(var g=s(arguments,1),v,y=function(){if(this instanceof v){var d=h.apply(this,i(g,arguments));return Object(d)===d?d:this}return h.apply(l,i(g,arguments))},m=r(0,h.length-g.length),N=[],b=0;b<m;b++)N[b]="$"+b;if(v=Function("binder","return function ("+o(N,",")+"){ return binder.apply(this,arguments); }")(y),h.prototype){var A=function(){};A.prototype=h.prototype,v.prototype=new A,A.prototype=null}return v},ka}var Ta,Xf;function cc(){if(Xf)return Ta;Xf=1;var t=jw();return Ta=Function.prototype.bind||t,Ta}var Aa,Yf;function Rw(){if(Yf)return Aa;Yf=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=cc();return Aa=r.call(t,e),Aa}var Ca,Zf;function $n(){if(Zf)return Ca;Zf=1;var t,e=SyntaxError,r=Function,n=TypeError,i=function(L){try{return r('"use strict"; return ('+L+").constructor;")()}catch{}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch{s=null}var o=function(){throw new n},a=s?function(){try{return arguments.callee,o}catch{try{return s(arguments,"callee").get}catch{return o}}}():o,l=Aw()(),h=Cw()(),g=Object.getPrototypeOf||(h?function(L){return L.__proto__}:null),v={},y=typeof Uint8Array>"u"||!g?t:g(Uint8Array),m={"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":l&&g?g([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":r,"%GeneratorFunction%":v,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l&&g?g(g([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!l||!g?t:g(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!l||!g?t:g(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l&&g?g(""[Symbol.iterator]()):t,"%Symbol%":l?Symbol:t,"%SyntaxError%":e,"%ThrowTypeError%":a,"%TypedArray%":y,"%TypeError%":n,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet};if(g)try{null.error}catch(L){var N=g(g(L));m["%Error.prototype%"]=N}var b=function L(X){var T;if(X==="%AsyncFunction%")T=i("async function () {}");else if(X==="%GeneratorFunction%")T=i("function* () {}");else if(X==="%AsyncGeneratorFunction%")T=i("async function* () {}");else if(X==="%AsyncGenerator%"){var Z=L("%AsyncGeneratorFunction%");Z&&(T=Z.prototype)}else if(X==="%AsyncIteratorPrototype%"){var he=L("%AsyncGenerator%");he&&g&&(T=g(he.prototype))}return m[X]=T,T},A={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},d=cc(),p=Rw(),E=d.call(Function.call,Array.prototype.concat),C=d.call(Function.apply,Array.prototype.splice),O=d.call(Function.call,String.prototype.replace),H=d.call(Function.call,String.prototype.slice),U=d.call(Function.call,RegExp.prototype.exec),G=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,j=/\\(\\)?/g,ee=function(X){var T=H(X,0,1),Z=H(X,-1);if(T==="%"&&Z!=="%")throw new e("invalid intrinsic syntax, expected closing `%`");if(Z==="%"&&T!=="%")throw new e("invalid intrinsic syntax, expected opening `%`");var he=[];return O(X,G,function(Q,ne,q,ae){he[he.length]=q?O(ae,j,"$1"):ne||Q}),he},de=function(X,T){var Z=X,he;if(p(A,Z)&&(he=A[Z],Z="%"+he[0]+"%"),p(m,Z)){var Q=m[Z];if(Q===v&&(Q=b(Z)),typeof Q>"u"&&!T)throw new n("intrinsic "+X+" exists, but is not available. Please file an issue!");return{alias:he,name:Z,value:Q}}throw new e("intrinsic "+X+" does not exist!")};return Ca=function(X,T){if(typeof X!="string"||X.length===0)throw new n("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof T!="boolean")throw new n('"allowMissing" argument must be a boolean');if(U(/^%?[^%]*%?$/,X)===null)throw new e("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Z=ee(X),he=Z.length>0?Z[0]:"",Q=de("%"+he+"%",T),ne=Q.name,q=Q.value,ae=!1,K=Q.alias;K&&(he=K[0],C(Z,E([0,1],K)));for(var R=1,V=!0;R<Z.length;R+=1){var $=Z[R],te=H($,0,1),z=H($,-1);if((te==='"'||te==="'"||te==="`"||z==='"'||z==="'"||z==="`")&&te!==z)throw new e("property names with quotes must have matching quotes");if(($==="constructor"||!V)&&(ae=!0),he+="."+$,ne="%"+he+"%",p(m,ne))q=m[ne];else if(q!=null){if(!($ in q)){if(!T)throw new n("base intrinsic for "+X+" exists, but the property is not available.");return}if(s&&R+1>=Z.length){var S=s(q,$);V=!!S,V&&"get"in S&&!("originalValue"in S.get)?q=S.get:q=q[$]}else V=p(q,$),q=q[$];V&&!ae&&(m[ne]=q)}}return q},Ca}var ja={exports:{}},Ra,Qf;function xm(){if(Qf)return Ra;Qf=1;var t=$n(),e=t("%Object.defineProperty%",!0),r=function(){if(e)try{return e({},"a",{value:1}),!0}catch{return!1}return!1};return r.hasArrayLengthDefineBug=function(){if(!r())return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Ra=r,Ra}var Ia,Jf;function fc(){if(Jf)return Ia;Jf=1;var t=$n(),e=t("%Object.getOwnPropertyDescriptor%",!0);if(e)try{e([],"length")}catch{e=null}return Ia=e,Ia}var Oa,ed;function Iw(){if(ed)return Oa;ed=1;var t=xm()(),e=$n(),r=t&&e("%Object.defineProperty%",!0);if(r)try{r({},"a",{value:1})}catch{r=!1}var n=e("%SyntaxError%"),i=e("%TypeError%"),s=fc();return Oa=function(a,l,h){if(!a||typeof a!="object"&&typeof a!="function")throw new i("`obj` must be an object or a function`");if(typeof l!="string"&&typeof l!="symbol")throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new i("`loose`, if provided, must be a boolean");var g=arguments.length>3?arguments[3]:null,v=arguments.length>4?arguments[4]:null,y=arguments.length>5?arguments[5]:null,m=arguments.length>6?arguments[6]:!1,N=!!s&&s(a,l);if(r)r(a,l,{configurable:y===null&&N?N.configurable:!y,enumerable:g===null&&N?N.enumerable:!g,value:h,writable:v===null&&N?N.writable:!v});else if(m||!g&&!v&&!y)a[l]=h;else throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Oa}var Da,td;function Ow(){if(td)return Da;td=1;var t=$n(),e=Iw(),r=xm()(),n=fc(),i=t("%TypeError%"),s=t("%Math.floor%");return Da=function(a,l){if(typeof a!="function")throw new i("`fn` is not a function");if(typeof l!="number"||l<0||l>4294967295||s(l)!==l)throw new i("`length` must be a positive 32-bit integer");var h=arguments.length>2&&!!arguments[2],g=!0,v=!0;if("length"in a&&n){var y=n(a,"length");y&&!y.configurable&&(g=!1),y&&!y.writable&&(v=!1)}return(g||v||!h)&&(r?e(a,"length",l,!0,!0):e(a,"length",l)),a},Da}var rd;function bm(){return rd||(rd=1,function(t){var e=cc(),r=$n(),n=Ow(),i=r("%TypeError%"),s=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||e.call(o,s),l=r("%Object.defineProperty%",!0),h=r("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}t.exports=function(y){if(typeof y!="function")throw new i("a function is required");var m=a(e,o,arguments);return n(m,1+h(0,y.length-(arguments.length-1)),!0)};var g=function(){return a(e,s,arguments)};l?l(t.exports,"apply",{value:g}):t.exports.apply=g}(ja)),ja.exports}var Pa,nd;function _m(){if(nd)return Pa;nd=1;var t=$n(),e=bm(),r=e(t("String.prototype.indexOf"));return Pa=function(i,s){var o=t(i,!!s);return typeof o=="function"&&r(i,".prototype.")>-1?e(o):o},Pa}var La,id;function Dw(){if(id)return La;id=1;var t=uc()(),e=_m(),r=e("Object.prototype.toString"),n=function(a){return t&&a&&typeof a=="object"&&Symbol.toStringTag in a?!1:r(a)==="[object Arguments]"},i=function(a){return n(a)?!0:a!==null&&typeof a=="object"&&typeof a.length=="number"&&a.length>=0&&r(a)!=="[object Array]"&&r(a.callee)==="[object Function]"},s=function(){return n(arguments)}();return n.isLegacyArguments=i,La=s?n:i,La}var Fa,sd;function Pw(){if(sd)return Fa;sd=1;var t=Object.prototype.toString,e=Function.prototype.toString,r=/^\s*(?:function)?\*/,n=uc()(),i=Object.getPrototypeOf,s=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},o;return Fa=function(l){if(typeof l!="function")return!1;if(r.test(e.call(l)))return!0;if(!n){var h=t.call(l);return h==="[object GeneratorFunction]"}if(!i)return!1;if(typeof o>"u"){var g=s();o=g?i(g):!1}return i(l)===o},Fa}var Ba,od;function Lw(){if(od)return Ba;od=1;var t=Function.prototype.toString,e=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,n;if(typeof e=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},e(function(){throw 42},null,r)}catch(p){p!==n&&(e=null)}else e=null;var i=/^\s*class\b/,s=function(E){try{var C=t.call(E);return i.test(C)}catch{return!1}},o=function(E){try{return s(E)?!1:(t.call(E),!0)}catch{return!1}},a=Object.prototype.toString,l="[object Object]",h="[object Function]",g="[object GeneratorFunction]",v="[object HTMLAllCollection]",y="[object HTML document.all class]",m="[object HTMLCollection]",N=typeof Symbol=="function"&&!!Symbol.toStringTag,b=!(0 in[,]),A=function(){return!1};if(typeof document=="object"){var d=document.all;a.call(d)===a.call(document.all)&&(A=function(E){if((b||!E)&&(typeof E>"u"||typeof E=="object"))try{var C=a.call(E);return(C===v||C===y||C===m||C===l)&&E("")==null}catch{}return!1})}return Ba=e?function(E){if(A(E))return!0;if(!E||typeof E!="function"&&typeof E!="object")return!1;try{e(E,null,r)}catch(C){if(C!==n)return!1}return!s(E)&&o(E)}:function(E){if(A(E))return!0;if(!E||typeof E!="function"&&typeof E!="object")return!1;if(N)return o(E);if(s(E))return!1;var C=a.call(E);return C!==h&&C!==g&&!/^\[object HTML/.test(C)?!1:o(E)},Ba}var Ma,ad;function Fw(){if(ad)return Ma;ad=1;var t=Lw(),e=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(l,h,g){for(var v=0,y=l.length;v<y;v++)r.call(l,v)&&(g==null?h(l[v],v,l):h.call(g,l[v],v,l))},i=function(l,h,g){for(var v=0,y=l.length;v<y;v++)g==null?h(l.charAt(v),v,l):h.call(g,l.charAt(v),v,l)},s=function(l,h,g){for(var v in l)r.call(l,v)&&(g==null?h(l[v],v,l):h.call(g,l[v],v,l))},o=function(l,h,g){if(!t(h))throw new TypeError("iterator must be a function");var v;arguments.length>=3&&(v=g),e.call(l)==="[object Array]"?n(l,h,v):typeof l=="string"?i(l,h,v):s(l,h,v)};return Ma=o,Ma}var Ua,ld;function Bw(){if(ld)return Ua;ld=1;var t=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],e=typeof globalThis>"u"?qt:globalThis;return Ua=function(){for(var n=[],i=0;i<t.length;i++)typeof e[t[i]]=="function"&&(n[n.length]=t[i]);return n},Ua}var za,ud;function Em(){if(ud)return za;ud=1;var t=Fw(),e=Bw(),r=bm(),n=_m(),i=fc(),s=n("Object.prototype.toString"),o=uc()(),a=typeof globalThis>"u"?qt:globalThis,l=e(),h=n("String.prototype.slice"),g=Object.getPrototypeOf,v=n("Array.prototype.indexOf",!0)||function(A,d){for(var p=0;p<A.length;p+=1)if(A[p]===d)return p;return-1},y={__proto__:null};o&&i&&g?t(l,function(b){var A=new a[b];if(Symbol.toStringTag in A){var d=g(A),p=i(d,Symbol.toStringTag);if(!p){var E=g(d);p=i(E,Symbol.toStringTag)}y["$"+b]=r(p.get)}}):t(l,function(b){var A=new a[b],d=A.slice||A.set;d&&(y["$"+b]=r(d))});var m=function(A){var d=!1;return t(y,function(p,E){if(!d)try{"$"+p(A)===E&&(d=h(E,1))}catch{}}),d},N=function(A){var d=!1;return t(y,function(p,E){if(!d)try{p(A),d=h(E,1)}catch{}}),d};return za=function(A){if(!A||typeof A!="object")return!1;if(!o){var d=h(s(A),8,-1);return v(l,d)>-1?d:d!=="Object"?!1:N(A)}return i?m(A):null},za}var Wa,cd;function Mw(){if(cd)return Wa;cd=1;var t=Em();return Wa=function(r){return!!t(r)},Wa}var fd;function Uw(){return fd||(fd=1,function(t){var e=Dw(),r=Pw(),n=Em(),i=Mw();function s(w){return w.call.bind(w)}var o=typeof BigInt<"u",a=typeof Symbol<"u",l=s(Object.prototype.toString),h=s(Number.prototype.valueOf),g=s(String.prototype.valueOf),v=s(Boolean.prototype.valueOf);if(o)var y=s(BigInt.prototype.valueOf);if(a)var m=s(Symbol.prototype.valueOf);function N(w,P){if(typeof w!="object")return!1;try{return P(w),!0}catch{return!1}}t.isArgumentsObject=e,t.isGeneratorFunction=r,t.isTypedArray=i;function b(w){return typeof Promise<"u"&&w instanceof Promise||w!==null&&typeof w=="object"&&typeof w.then=="function"&&typeof w.catch=="function"}t.isPromise=b;function A(w){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(w):i(w)||V(w)}t.isArrayBufferView=A;function d(w){return n(w)==="Uint8Array"}t.isUint8Array=d;function p(w){return n(w)==="Uint8ClampedArray"}t.isUint8ClampedArray=p;function E(w){return n(w)==="Uint16Array"}t.isUint16Array=E;function C(w){return n(w)==="Uint32Array"}t.isUint32Array=C;function O(w){return n(w)==="Int8Array"}t.isInt8Array=O;function H(w){return n(w)==="Int16Array"}t.isInt16Array=H;function U(w){return n(w)==="Int32Array"}t.isInt32Array=U;function G(w){return n(w)==="Float32Array"}t.isFloat32Array=G;function j(w){return n(w)==="Float64Array"}t.isFloat64Array=j;function ee(w){return n(w)==="BigInt64Array"}t.isBigInt64Array=ee;function de(w){return n(w)==="BigUint64Array"}t.isBigUint64Array=de;function L(w){return l(w)==="[object Map]"}L.working=typeof Map<"u"&&L(new Map);function X(w){return typeof Map>"u"?!1:L.working?L(w):w instanceof Map}t.isMap=X;function T(w){return l(w)==="[object Set]"}T.working=typeof Set<"u"&&T(new Set);function Z(w){return typeof Set>"u"?!1:T.working?T(w):w instanceof Set}t.isSet=Z;function he(w){return l(w)==="[object WeakMap]"}he.working=typeof WeakMap<"u"&&he(new WeakMap);function Q(w){return typeof WeakMap>"u"?!1:he.working?he(w):w instanceof WeakMap}t.isWeakMap=Q;function ne(w){return l(w)==="[object WeakSet]"}ne.working=typeof WeakSet<"u"&&ne(new WeakSet);function q(w){return ne(w)}t.isWeakSet=q;function ae(w){return l(w)==="[object ArrayBuffer]"}ae.working=typeof ArrayBuffer<"u"&&ae(new ArrayBuffer);function K(w){return typeof ArrayBuffer>"u"?!1:ae.working?ae(w):w instanceof ArrayBuffer}t.isArrayBuffer=K;function R(w){return l(w)==="[object DataView]"}R.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&R(new DataView(new ArrayBuffer(1),0,1));function V(w){return typeof DataView>"u"?!1:R.working?R(w):w instanceof DataView}t.isDataView=V;var $=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function te(w){return l(w)==="[object SharedArrayBuffer]"}function z(w){return typeof $>"u"?!1:(typeof te.working>"u"&&(te.working=te(new $)),te.working?te(w):w instanceof $)}t.isSharedArrayBuffer=z;function S(w){return l(w)==="[object AsyncFunction]"}t.isAsyncFunction=S;function _(w){return l(w)==="[object Map Iterator]"}t.isMapIterator=_;function M(w){return l(w)==="[object Set Iterator]"}t.isSetIterator=M;function F(w){return l(w)==="[object Generator]"}t.isGeneratorObject=F;function I(w){return l(w)==="[object WebAssembly.Module]"}t.isWebAssemblyCompiledModule=I;function D(w){return N(w,h)}t.isNumberObject=D;function J(w){return N(w,g)}t.isStringObject=J;function x(w){return N(w,v)}t.isBooleanObject=x;function Y(w){return o&&N(w,y)}t.isBigIntObject=Y;function k(w){return a&&N(w,m)}t.isSymbolObject=k;function u(w){return D(w)||J(w)||x(w)||Y(w)||k(w)}t.isBoxedPrimitive=u;function c(w){return typeof Uint8Array<"u"&&(K(w)||z(w))}t.isAnyArrayBuffer=c,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(w){Object.defineProperty(t,w,{enumerable:!1,value:function(){throw new Error(w+" is not supported in userland")}})})}(ba)),ba}var Ha,dd;function zw(){return dd||(dd=1,Ha=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}),Ha}var hd;function Sm(){return hd||(hd=1,function(t){var e=Object.getOwnPropertyDescriptors||function(V){for(var $=Object.keys(V),te={},z=0;z<$.length;z++)te[$[z]]=Object.getOwnPropertyDescriptor(V,$[z]);return te},r=/%[sdj%]/g;t.format=function(R){if(!O(R)){for(var V=[],$=0;$<arguments.length;$++)V.push(o(arguments[$]));return V.join(" ")}for(var $=1,te=arguments,z=te.length,S=String(R).replace(r,function(M){if(M==="%%")return"%";if($>=z)return M;switch(M){case"%s":return String(te[$++]);case"%d":return Number(te[$++]);case"%j":try{return JSON.stringify(te[$++])}catch{return"[Circular]"}default:return M}}),_=te[$];$<z;_=te[++$])p(_)||!j(_)?S+=" "+_:S+=" "+o(_);return S},t.deprecate=function(R,V){if(typeof xe<"u"&&xe.noDeprecation===!0)return R;if(typeof xe>"u")return function(){return t.deprecate(R,V).apply(this,arguments)};var $=!1;function te(){if(!$){if(xe.throwDeprecation)throw new Error(V);xe.traceDeprecation?console.trace(V):console.error(V),$=!0}return R.apply(this,arguments)}return te};var n={},i=/^$/;if(xe.env.NODE_DEBUG){var s=xe.env.NODE_DEBUG;s=s.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),i=new RegExp("^"+s+"$","i")}t.debuglog=function(R){if(R=R.toUpperCase(),!n[R])if(i.test(R)){var V=xe.pid;n[R]=function(){var $=t.format.apply(t,arguments);console.error("%s %d: %s",R,V,$)}}else n[R]=function(){};return n[R]};function o(R,V){var $={seen:[],stylize:l};return arguments.length>=3&&($.depth=arguments[2]),arguments.length>=4&&($.colors=arguments[3]),d(V)?$.showHidden=V:V&&t._extend($,V),U($.showHidden)&&($.showHidden=!1),U($.depth)&&($.depth=2),U($.colors)&&($.colors=!1),U($.customInspect)&&($.customInspect=!0),$.colors&&($.stylize=a),g($,R,$.depth)}t.inspect=o,o.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]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function a(R,V){var $=o.styles[V];return $?"\x1B["+o.colors[$][0]+"m"+R+"\x1B["+o.colors[$][1]+"m":R}function l(R,V){return R}function h(R){var V={};return R.forEach(function($,te){V[$]=!0}),V}function g(R,V,$){if(R.customInspect&&V&&L(V.inspect)&&V.inspect!==t.inspect&&!(V.constructor&&V.constructor.prototype===V)){var te=V.inspect($,R);return O(te)||(te=g(R,te,$)),te}var z=v(R,V);if(z)return z;var S=Object.keys(V),_=h(S);if(R.showHidden&&(S=Object.getOwnPropertyNames(V)),de(V)&&(S.indexOf("message")>=0||S.indexOf("description")>=0))return y(V);if(S.length===0){if(L(V)){var M=V.name?": "+V.name:"";return R.stylize("[Function"+M+"]","special")}if(G(V))return R.stylize(RegExp.prototype.toString.call(V),"regexp");if(ee(V))return R.stylize(Date.prototype.toString.call(V),"date");if(de(V))return y(V)}var F="",I=!1,D=["{","}"];if(A(V)&&(I=!0,D=["[","]"]),L(V)){var J=V.name?": "+V.name:"";F=" [Function"+J+"]"}if(G(V)&&(F=" "+RegExp.prototype.toString.call(V)),ee(V)&&(F=" "+Date.prototype.toUTCString.call(V)),de(V)&&(F=" "+y(V)),S.length===0&&(!I||V.length==0))return D[0]+F+D[1];if($<0)return G(V)?R.stylize(RegExp.prototype.toString.call(V),"regexp"):R.stylize("[Object]","special");R.seen.push(V);var x;return I?x=m(R,V,$,_,S):x=S.map(function(Y){return N(R,V,$,_,Y,I)}),R.seen.pop(),b(x,F,D)}function v(R,V){if(U(V))return R.stylize("undefined","undefined");if(O(V)){var $="'"+JSON.stringify(V).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return R.stylize($,"string")}if(C(V))return R.stylize(""+V,"number");if(d(V))return R.stylize(""+V,"boolean");if(p(V))return R.stylize("null","null")}function y(R){return"["+Error.prototype.toString.call(R)+"]"}function m(R,V,$,te,z){for(var S=[],_=0,M=V.length;_<M;++_)ne(V,String(_))?S.push(N(R,V,$,te,String(_),!0)):S.push("");return z.forEach(function(F){F.match(/^\d+$/)||S.push(N(R,V,$,te,F,!0))}),S}function N(R,V,$,te,z,S){var _,M,F;if(F=Object.getOwnPropertyDescriptor(V,z)||{value:V[z]},F.get?F.set?M=R.stylize("[Getter/Setter]","special"):M=R.stylize("[Getter]","special"):F.set&&(M=R.stylize("[Setter]","special")),ne(te,z)||(_="["+z+"]"),M||(R.seen.indexOf(F.value)<0?(p($)?M=g(R,F.value,null):M=g(R,F.value,$-1),M.indexOf(`
|
||
`)>-1&&(S?M=M.split(`
|
||
`).map(function(I){return" "+I}).join(`
|
||
`).slice(2):M=`
|
||
`+M.split(`
|
||
`).map(function(I){return" "+I}).join(`
|
||
`))):M=R.stylize("[Circular]","special")),U(_)){if(S&&z.match(/^\d+$/))return M;_=JSON.stringify(""+z),_.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(_=_.slice(1,-1),_=R.stylize(_,"name")):(_=_.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),_=R.stylize(_,"string"))}return _+": "+M}function b(R,V,$){var te=R.reduce(function(z,S){return S.indexOf(`
|
||
`)>=0,z+S.replace(/\u001b\[\d\d?m/g,"").length+1},0);return te>60?$[0]+(V===""?"":V+`
|
||
`)+" "+R.join(`,
|
||
`)+" "+$[1]:$[0]+V+" "+R.join(", ")+" "+$[1]}t.types=Uw();function A(R){return Array.isArray(R)}t.isArray=A;function d(R){return typeof R=="boolean"}t.isBoolean=d;function p(R){return R===null}t.isNull=p;function E(R){return R==null}t.isNullOrUndefined=E;function C(R){return typeof R=="number"}t.isNumber=C;function O(R){return typeof R=="string"}t.isString=O;function H(R){return typeof R=="symbol"}t.isSymbol=H;function U(R){return R===void 0}t.isUndefined=U;function G(R){return j(R)&&T(R)==="[object RegExp]"}t.isRegExp=G,t.types.isRegExp=G;function j(R){return typeof R=="object"&&R!==null}t.isObject=j;function ee(R){return j(R)&&T(R)==="[object Date]"}t.isDate=ee,t.types.isDate=ee;function de(R){return j(R)&&(T(R)==="[object Error]"||R instanceof Error)}t.isError=de,t.types.isNativeError=de;function L(R){return typeof R=="function"}t.isFunction=L;function X(R){return R===null||typeof R=="boolean"||typeof R=="number"||typeof R=="string"||typeof R=="symbol"||typeof R>"u"}t.isPrimitive=X,t.isBuffer=zw();function T(R){return Object.prototype.toString.call(R)}function Z(R){return R<10?"0"+R.toString(10):R.toString(10)}var he=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Q(){var R=new Date,V=[Z(R.getHours()),Z(R.getMinutes()),Z(R.getSeconds())].join(":");return[R.getDate(),he[R.getMonth()],V].join(" ")}t.log=function(){console.log("%s - %s",Q(),t.format.apply(t,arguments))},t.inherits=en,t._extend=function(R,V){if(!V||!j(V))return R;for(var $=Object.keys(V),te=$.length;te--;)R[$[te]]=V[$[te]];return R};function ne(R,V){return Object.prototype.hasOwnProperty.call(R,V)}var q=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;t.promisify=function(V){if(typeof V!="function")throw new TypeError('The "original" argument must be of type Function');if(q&&V[q]){var $=V[q];if(typeof $!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty($,q,{value:$,enumerable:!1,writable:!1,configurable:!0}),$}function $(){for(var te,z,S=new Promise(function(F,I){te=F,z=I}),_=[],M=0;M<arguments.length;M++)_.push(arguments[M]);_.push(function(F,I){F?z(F):te(I)});try{V.apply(this,_)}catch(F){z(F)}return S}return Object.setPrototypeOf($,Object.getPrototypeOf(V)),q&&Object.defineProperty($,q,{value:$,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties($,e(V))},t.promisify.custom=q;function ae(R,V){if(!R){var $=new Error("Promise was rejected with a falsy value");$.reason=R,R=$}return V(R)}function K(R){if(typeof R!="function")throw new TypeError('The "original" argument must be of type Function');function V(){for(var $=[],te=0;te<arguments.length;te++)$.push(arguments[te]);var z=$.pop();if(typeof z!="function")throw new TypeError("The last argument must be of type Function");var S=this,_=function(){return z.apply(S,arguments)};R.apply(this,$).then(function(M){xe.nextTick(_.bind(null,null,M))},function(M){xe.nextTick(ae.bind(null,M,_))})}return Object.setPrototypeOf(V,Object.getPrototypeOf(R)),Object.defineProperties(V,e(R)),V}t.callbackify=K}(xa)),xa}var Ka,pd;function Ww(){if(pd)return Ka;pd=1;function t(y,m){var N=Object.keys(y);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(y);m&&(b=b.filter(function(A){return Object.getOwnPropertyDescriptor(y,A).enumerable})),N.push.apply(N,b)}return N}function e(y){for(var m=1;m<arguments.length;m++){var N=arguments[m]!=null?arguments[m]:{};m%2?t(Object(N),!0).forEach(function(b){r(y,b,N[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(N)):t(Object(N)).forEach(function(b){Object.defineProperty(y,b,Object.getOwnPropertyDescriptor(N,b))})}return y}function r(y,m,N){return m in y?Object.defineProperty(y,m,{value:N,enumerable:!0,configurable:!0,writable:!0}):y[m]=N,y}function n(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function i(y,m){for(var N=0;N<m.length;N++){var b=m[N];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(y,b.key,b)}}function s(y,m,N){return i(y.prototype,m),y}var o=Bo(),a=o.Buffer,l=Sm(),h=l.inspect,g=h&&h.custom||"inspect";function v(y,m,N){a.prototype.copy.call(y,m,N)}return Ka=function(){function y(){n(this,y),this.head=null,this.tail=null,this.length=0}return s(y,[{key:"push",value:function(N){var b={data:N,next:null};this.length>0?this.tail.next=b:this.head=b,this.tail=b,++this.length}},{key:"unshift",value:function(N){var b={data:N,next:this.head};this.length===0&&(this.tail=b),this.head=b,++this.length}},{key:"shift",value:function(){if(this.length!==0){var N=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,N}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(N){if(this.length===0)return"";for(var b=this.head,A=""+b.data;b=b.next;)A+=N+b.data;return A}},{key:"concat",value:function(N){if(this.length===0)return a.alloc(0);for(var b=a.allocUnsafe(N>>>0),A=this.head,d=0;A;)v(A.data,b,d),d+=A.data.length,A=A.next;return b}},{key:"consume",value:function(N,b){var A;return N<this.head.data.length?(A=this.head.data.slice(0,N),this.head.data=this.head.data.slice(N)):N===this.head.data.length?A=this.shift():A=b?this._getString(N):this._getBuffer(N),A}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(N){var b=this.head,A=1,d=b.data;for(N-=d.length;b=b.next;){var p=b.data,E=N>p.length?p.length:N;if(E===p.length?d+=p:d+=p.slice(0,N),N-=E,N===0){E===p.length?(++A,b.next?this.head=b.next:this.head=this.tail=null):(this.head=b,b.data=p.slice(E));break}++A}return this.length-=A,d}},{key:"_getBuffer",value:function(N){var b=a.allocUnsafe(N),A=this.head,d=1;for(A.data.copy(b),N-=A.data.length;A=A.next;){var p=A.data,E=N>p.length?p.length:N;if(p.copy(b,b.length-N,0,E),N-=E,N===0){E===p.length?(++d,A.next?this.head=A.next:this.head=this.tail=null):(this.head=A,A.data=p.slice(E));break}++d}return this.length-=d,b}},{key:g,value:function(N,b){return h(this,e({},b,{depth:0,customInspect:!1}))}}]),y}(),Ka}var Ga,md;function Nm(){if(md)return Ga;md=1;function t(o,a){var l=this,h=this._readableState&&this._readableState.destroyed,g=this._writableState&&this._writableState.destroyed;return h||g?(a?a(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,xe.nextTick(i,this,o)):xe.nextTick(i,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(v){!a&&v?l._writableState?l._writableState.errorEmitted?xe.nextTick(r,l):(l._writableState.errorEmitted=!0,xe.nextTick(e,l,v)):xe.nextTick(e,l,v):a?(xe.nextTick(r,l),a(v)):xe.nextTick(r,l)}),this)}function e(o,a){i(o,a),r(o)}function r(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function i(o,a){o.emit("error",a)}function s(o,a){var l=o._readableState,h=o._writableState;l&&l.autoDestroy||h&&h.autoDestroy?o.destroy(a):o.emit("error",a)}return Ga={destroy:t,undestroy:n,errorOrDestroy:s},Ga}var Va={},gd;function qn(){if(gd)return Va;gd=1;function t(a,l){a.prototype=Object.create(l.prototype),a.prototype.constructor=a,a.__proto__=l}var e={};function r(a,l,h){h||(h=Error);function g(y,m,N){return typeof l=="string"?l:l(y,m,N)}var v=function(y){t(m,y);function m(N,b,A){return y.call(this,g(N,b,A))||this}return m}(h);v.prototype.name=h.name,v.prototype.code=a,e[a]=v}function n(a,l){if(Array.isArray(a)){var h=a.length;return a=a.map(function(g){return String(g)}),h>2?"one of ".concat(l," ").concat(a.slice(0,h-1).join(", "),", or ")+a[h-1]:h===2?"one of ".concat(l," ").concat(a[0]," or ").concat(a[1]):"of ".concat(l," ").concat(a[0])}else return"of ".concat(l," ").concat(String(a))}function i(a,l,h){return a.substr(0,l.length)===l}function s(a,l,h){return(h===void 0||h>a.length)&&(h=a.length),a.substring(h-l.length,h)===l}function o(a,l,h){return typeof h!="number"&&(h=0),h+l.length>a.length?!1:a.indexOf(l,h)!==-1}return r("ERR_INVALID_OPT_VALUE",function(a,l){return'The value "'+l+'" is invalid for option "'+a+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(a,l,h){var g;typeof l=="string"&&i(l,"not ")?(g="must not be",l=l.replace(/^not /,"")):g="must be";var v;if(s(a," argument"))v="The ".concat(a," ").concat(g," ").concat(n(l,"type"));else{var y=o(a,".")?"property":"argument";v='The "'.concat(a,'" ').concat(y," ").concat(g," ").concat(n(l,"type"))}return v+=". Received type ".concat(typeof h),v},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(a){return"The "+a+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(a){return"Cannot call "+a+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(a){return"Unknown encoding: "+a},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Va.codes=e,Va}var $a,yd;function km(){if(yd)return $a;yd=1;var t=qn().codes.ERR_INVALID_OPT_VALUE;function e(n,i,s){return n.highWaterMark!=null?n.highWaterMark:i?n[s]:null}function r(n,i,s,o){var a=e(i,o,s);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var l=o?s:"highWaterMark";throw new t(l,a)}return Math.floor(a)}return n.objectMode?16:16*1024}return $a={getHighWaterMark:r},$a}var qa,wd;function Hw(){if(wd)return qa;wd=1,qa=t;function t(r,n){if(e("noDeprecation"))return r;var i=!1;function s(){if(!i){if(e("throwDeprecation"))throw new Error(n);e("traceDeprecation")?console.trace(n):console.warn(n),i=!0}return r.apply(this,arguments)}return s}function e(r){try{if(!qt.localStorage)return!1}catch{return!1}var n=qt.localStorage[r];return n==null?!1:String(n).toLowerCase()==="true"}return qa}var Xa,vd;function Tm(){if(vd)return Xa;vd=1,Xa=G;function t(z){var S=this;this.next=null,this.entry=null,this.finish=function(){te(S,z)}}var e;G.WritableState=H;var r={deprecate:Hw()},n=wm(),i=Bo().Buffer,s=qt.Uint8Array||function(){};function o(z){return i.from(z)}function a(z){return i.isBuffer(z)||z instanceof s}var l=Nm(),h=km(),g=h.getHighWaterMark,v=qn().codes,y=v.ERR_INVALID_ARG_TYPE,m=v.ERR_METHOD_NOT_IMPLEMENTED,N=v.ERR_MULTIPLE_CALLBACK,b=v.ERR_STREAM_CANNOT_PIPE,A=v.ERR_STREAM_DESTROYED,d=v.ERR_STREAM_NULL_VALUES,p=v.ERR_STREAM_WRITE_AFTER_END,E=v.ERR_UNKNOWN_ENCODING,C=l.errorOrDestroy;en(G,n);function O(){}function H(z,S,_){e=e||Ln(),z=z||{},typeof _!="boolean"&&(_=S instanceof e),this.objectMode=!!z.objectMode,_&&(this.objectMode=this.objectMode||!!z.writableObjectMode),this.highWaterMark=g(this,z,"writableHighWaterMark",_),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var M=z.decodeStrings===!1;this.decodeStrings=!M,this.defaultEncoding=z.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(F){he(S,F)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=z.emitClose!==!1,this.autoDestroy=!!z.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}H.prototype.getBuffer=function(){for(var S=this.bufferedRequest,_=[];S;)_.push(S),S=S.next;return _},function(){try{Object.defineProperty(H.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var U;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(U=Function.prototype[Symbol.hasInstance],Object.defineProperty(G,Symbol.hasInstance,{value:function(S){return U.call(this,S)?!0:this!==G?!1:S&&S._writableState instanceof H}})):U=function(S){return S instanceof this};function G(z){e=e||Ln();var S=this instanceof e;if(!S&&!U.call(G,this))return new G(z);this._writableState=new H(z,this,S),this.writable=!0,z&&(typeof z.write=="function"&&(this._write=z.write),typeof z.writev=="function"&&(this._writev=z.writev),typeof z.destroy=="function"&&(this._destroy=z.destroy),typeof z.final=="function"&&(this._final=z.final)),n.call(this)}G.prototype.pipe=function(){C(this,new b)};function j(z,S){var _=new p;C(z,_),xe.nextTick(S,_)}function ee(z,S,_,M){var F;return _===null?F=new d:typeof _!="string"&&!S.objectMode&&(F=new y("chunk",["string","Buffer"],_)),F?(C(z,F),xe.nextTick(M,F),!1):!0}G.prototype.write=function(z,S,_){var M=this._writableState,F=!1,I=!M.objectMode&&a(z);return I&&!i.isBuffer(z)&&(z=o(z)),typeof S=="function"&&(_=S,S=null),I?S="buffer":S||(S=M.defaultEncoding),typeof _!="function"&&(_=O),M.ending?j(this,_):(I||ee(this,M,z,_))&&(M.pendingcb++,F=L(this,M,I,z,S,_)),F},G.prototype.cork=function(){this._writableState.corked++},G.prototype.uncork=function(){var z=this._writableState;z.corked&&(z.corked--,!z.writing&&!z.corked&&!z.bufferProcessing&&z.bufferedRequest&&q(this,z))},G.prototype.setDefaultEncoding=function(S){if(typeof S=="string"&&(S=S.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((S+"").toLowerCase())>-1))throw new E(S);return this._writableState.defaultEncoding=S,this},Object.defineProperty(G.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function de(z,S,_){return!z.objectMode&&z.decodeStrings!==!1&&typeof S=="string"&&(S=i.from(S,_)),S}Object.defineProperty(G.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function L(z,S,_,M,F,I){if(!_){var D=de(S,M,F);M!==D&&(_=!0,F="buffer",M=D)}var J=S.objectMode?1:M.length;S.length+=J;var x=S.length<S.highWaterMark;if(x||(S.needDrain=!0),S.writing||S.corked){var Y=S.lastBufferedRequest;S.lastBufferedRequest={chunk:M,encoding:F,isBuf:_,callback:I,next:null},Y?Y.next=S.lastBufferedRequest:S.bufferedRequest=S.lastBufferedRequest,S.bufferedRequestCount+=1}else X(z,S,!1,J,M,F,I);return x}function X(z,S,_,M,F,I,D){S.writelen=M,S.writecb=D,S.writing=!0,S.sync=!0,S.destroyed?S.onwrite(new A("write")):_?z._writev(F,S.onwrite):z._write(F,I,S.onwrite),S.sync=!1}function T(z,S,_,M,F){--S.pendingcb,_?(xe.nextTick(F,M),xe.nextTick(V,z,S),z._writableState.errorEmitted=!0,C(z,M)):(F(M),z._writableState.errorEmitted=!0,C(z,M),V(z,S))}function Z(z){z.writing=!1,z.writecb=null,z.length-=z.writelen,z.writelen=0}function he(z,S){var _=z._writableState,M=_.sync,F=_.writecb;if(typeof F!="function")throw new N;if(Z(_),S)T(z,_,M,S,F);else{var I=ae(_)||z.destroyed;!I&&!_.corked&&!_.bufferProcessing&&_.bufferedRequest&&q(z,_),M?xe.nextTick(Q,z,_,I,F):Q(z,_,I,F)}}function Q(z,S,_,M){_||ne(z,S),S.pendingcb--,M(),V(z,S)}function ne(z,S){S.length===0&&S.needDrain&&(S.needDrain=!1,z.emit("drain"))}function q(z,S){S.bufferProcessing=!0;var _=S.bufferedRequest;if(z._writev&&_&&_.next){var M=S.bufferedRequestCount,F=new Array(M),I=S.corkedRequestsFree;I.entry=_;for(var D=0,J=!0;_;)F[D]=_,_.isBuf||(J=!1),_=_.next,D+=1;F.allBuffers=J,X(z,S,!0,S.length,F,"",I.finish),S.pendingcb++,S.lastBufferedRequest=null,I.next?(S.corkedRequestsFree=I.next,I.next=null):S.corkedRequestsFree=new t(S),S.bufferedRequestCount=0}else{for(;_;){var x=_.chunk,Y=_.encoding,k=_.callback,u=S.objectMode?1:x.length;if(X(z,S,!1,u,x,Y,k),_=_.next,S.bufferedRequestCount--,S.writing)break}_===null&&(S.lastBufferedRequest=null)}S.bufferedRequest=_,S.bufferProcessing=!1}G.prototype._write=function(z,S,_){_(new m("_write()"))},G.prototype._writev=null,G.prototype.end=function(z,S,_){var M=this._writableState;return typeof z=="function"?(_=z,z=null,S=null):typeof S=="function"&&(_=S,S=null),z!=null&&this.write(z,S),M.corked&&(M.corked=1,this.uncork()),M.ending||$(this,M,_),this},Object.defineProperty(G.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ae(z){return z.ending&&z.length===0&&z.bufferedRequest===null&&!z.finished&&!z.writing}function K(z,S){z._final(function(_){S.pendingcb--,_&&C(z,_),S.prefinished=!0,z.emit("prefinish"),V(z,S)})}function R(z,S){!S.prefinished&&!S.finalCalled&&(typeof z._final=="function"&&!S.destroyed?(S.pendingcb++,S.finalCalled=!0,xe.nextTick(K,z,S)):(S.prefinished=!0,z.emit("prefinish")))}function V(z,S){var _=ae(S);if(_&&(R(z,S),S.pendingcb===0&&(S.finished=!0,z.emit("finish"),S.autoDestroy))){var M=z._readableState;(!M||M.autoDestroy&&M.endEmitted)&&z.destroy()}return _}function $(z,S,_){S.ending=!0,V(z,S),_&&(S.finished?xe.nextTick(_):z.once("finish",_)),S.ended=!0,z.writable=!1}function te(z,S,_){var M=z.entry;for(z.entry=null;M;){var F=M.callback;S.pendingcb--,F(_),M=M.next}S.corkedRequestsFree.next=z}return Object.defineProperty(G.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(S){this._writableState&&(this._writableState.destroyed=S)}}),G.prototype.destroy=l.destroy,G.prototype._undestroy=l.undestroy,G.prototype._destroy=function(z,S){S(z)},Xa}var Ya,xd;function Ln(){if(xd)return Ya;xd=1;var t=Object.keys||function(h){var g=[];for(var v in h)g.push(v);return g};Ya=o;var e=Am(),r=Tm();en(o,e);for(var n=t(r.prototype),i=0;i<n.length;i++){var s=n[i];o.prototype[s]||(o.prototype[s]=r.prototype[s])}function o(h){if(!(this instanceof o))return new o(h);e.call(this,h),r.call(this,h),this.allowHalfOpen=!0,h&&(h.readable===!1&&(this.readable=!1),h.writable===!1&&(this.writable=!1),h.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",a)))}Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(o.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(o.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function a(){this._writableState.ended||xe.nextTick(l,this)}function l(h){h.end()}return Object.defineProperty(o.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(g){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=g,this._writableState.destroyed=g)}}),Ya}var Za={},bs={exports:{}},bd;function Kw(){return bd||(bd=1,function(t,e){var r=Bo(),n=r.Buffer;function i(o,a){for(var l in o)a[l]=o[l]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(i(r,e),e.Buffer=s);function s(o,a,l){return n(o,a,l)}i(n,s),s.from=function(o,a,l){if(typeof o=="number")throw new TypeError("Argument must not be a number");return n(o,a,l)},s.alloc=function(o,a,l){if(typeof o!="number")throw new TypeError("Argument must be a number");var h=n(o);return a!==void 0?typeof l=="string"?h.fill(a,l):h.fill(a):h.fill(0),h},s.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return n(o)},s.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(o)}}(bs,bs.exports)),bs.exports}var _d;function au(){if(_d)return Za;_d=1;var t=Kw().Buffer,e=t.isEncoding||function(d){switch(d=""+d,d&&d.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(d){if(!d)return"utf8";for(var p;;)switch(d){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return d;default:if(p)return;d=(""+d).toLowerCase(),p=!0}}function n(d){var p=r(d);if(typeof p!="string"&&(t.isEncoding===e||!e(d)))throw new Error("Unknown encoding: "+d);return p||d}Za.StringDecoder=i;function i(d){this.encoding=n(d);var p;switch(this.encoding){case"utf16le":this.text=v,this.end=y,p=4;break;case"utf8":this.fillLast=l,p=4;break;case"base64":this.text=m,this.end=N,p=3;break;default:this.write=b,this.end=A;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(p)}i.prototype.write=function(d){if(d.length===0)return"";var p,E;if(this.lastNeed){if(p=this.fillLast(d),p===void 0)return"";E=this.lastNeed,this.lastNeed=0}else E=0;return E<d.length?p?p+this.text(d,E):this.text(d,E):p||""},i.prototype.end=g,i.prototype.text=h,i.prototype.fillLast=function(d){if(this.lastNeed<=d.length)return d.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);d.copy(this.lastChar,this.lastTotal-this.lastNeed,0,d.length),this.lastNeed-=d.length};function s(d){return d<=127?0:d>>5===6?2:d>>4===14?3:d>>3===30?4:d>>6===2?-1:-2}function o(d,p,E){var C=p.length-1;if(C<E)return 0;var O=s(p[C]);return O>=0?(O>0&&(d.lastNeed=O-1),O):--C<E||O===-2?0:(O=s(p[C]),O>=0?(O>0&&(d.lastNeed=O-2),O):--C<E||O===-2?0:(O=s(p[C]),O>=0?(O>0&&(O===2?O=0:d.lastNeed=O-3),O):0))}function a(d,p,E){if((p[0]&192)!==128)return d.lastNeed=0,"<22>";if(d.lastNeed>1&&p.length>1){if((p[1]&192)!==128)return d.lastNeed=1,"<22>";if(d.lastNeed>2&&p.length>2&&(p[2]&192)!==128)return d.lastNeed=2,"<22>"}}function l(d){var p=this.lastTotal-this.lastNeed,E=a(this,d);if(E!==void 0)return E;if(this.lastNeed<=d.length)return d.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);d.copy(this.lastChar,p,0,d.length),this.lastNeed-=d.length}function h(d,p){var E=o(this,d,p);if(!this.lastNeed)return d.toString("utf8",p);this.lastTotal=E;var C=d.length-(E-this.lastNeed);return d.copy(this.lastChar,0,C),d.toString("utf8",p,C)}function g(d){var p=d&&d.length?this.write(d):"";return this.lastNeed?p+"<22>":p}function v(d,p){if((d.length-p)%2===0){var E=d.toString("utf16le",p);if(E){var C=E.charCodeAt(E.length-1);if(C>=55296&&C<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1],E.slice(0,-1)}return E}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=d[d.length-1],d.toString("utf16le",p,d.length-1)}function y(d){var p=d&&d.length?this.write(d):"";if(this.lastNeed){var E=this.lastTotal-this.lastNeed;return p+this.lastChar.toString("utf16le",0,E)}return p}function m(d,p){var E=(d.length-p)%3;return E===0?d.toString("base64",p):(this.lastNeed=3-E,this.lastTotal=3,E===1?this.lastChar[0]=d[d.length-1]:(this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1]),d.toString("base64",p,d.length-E))}function N(d){var p=d&&d.length?this.write(d):"";return this.lastNeed?p+this.lastChar.toString("base64",0,3-this.lastNeed):p}function b(d){return d.toString(this.encoding)}function A(d){return d&&d.length?this.write(d):""}return Za}var Qa,Ed;function dc(){if(Ed)return Qa;Ed=1;var t=qn().codes.ERR_STREAM_PREMATURE_CLOSE;function e(s){var o=!1;return function(){if(!o){o=!0;for(var a=arguments.length,l=new Array(a),h=0;h<a;h++)l[h]=arguments[h];s.apply(this,l)}}}function r(){}function n(s){return s.setHeader&&typeof s.abort=="function"}function i(s,o,a){if(typeof o=="function")return i(s,null,o);o||(o={}),a=e(a||r);var l=o.readable||o.readable!==!1&&s.readable,h=o.writable||o.writable!==!1&&s.writable,g=function(){s.writable||y()},v=s._writableState&&s._writableState.finished,y=function(){h=!1,v=!0,l||a.call(s)},m=s._readableState&&s._readableState.endEmitted,N=function(){l=!1,m=!0,h||a.call(s)},b=function(E){a.call(s,E)},A=function(){var E;if(l&&!m)return(!s._readableState||!s._readableState.ended)&&(E=new t),a.call(s,E);if(h&&!v)return(!s._writableState||!s._writableState.ended)&&(E=new t),a.call(s,E)},d=function(){s.req.on("finish",y)};return n(s)?(s.on("complete",y),s.on("abort",A),s.req?d():s.on("request",d)):h&&!s._writableState&&(s.on("end",g),s.on("close",g)),s.on("end",N),s.on("finish",y),o.error!==!1&&s.on("error",b),s.on("close",A),function(){s.removeListener("complete",y),s.removeListener("abort",A),s.removeListener("request",d),s.req&&s.req.removeListener("finish",y),s.removeListener("end",g),s.removeListener("close",g),s.removeListener("finish",y),s.removeListener("end",N),s.removeListener("error",b),s.removeListener("close",A)}}return Qa=i,Qa}var Ja,Sd;function Gw(){if(Sd)return Ja;Sd=1;var t;function e(d,p,E){return p in d?Object.defineProperty(d,p,{value:E,enumerable:!0,configurable:!0,writable:!0}):d[p]=E,d}var r=dc(),n=Symbol("lastResolve"),i=Symbol("lastReject"),s=Symbol("error"),o=Symbol("ended"),a=Symbol("lastPromise"),l=Symbol("handlePromise"),h=Symbol("stream");function g(d,p){return{value:d,done:p}}function v(d){var p=d[n];if(p!==null){var E=d[h].read();E!==null&&(d[a]=null,d[n]=null,d[i]=null,p(g(E,!1)))}}function y(d){xe.nextTick(v,d)}function m(d,p){return function(E,C){d.then(function(){if(p[o]){E(g(void 0,!0));return}p[l](E,C)},C)}}var N=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((t={get stream(){return this[h]},next:function(){var p=this,E=this[s];if(E!==null)return Promise.reject(E);if(this[o])return Promise.resolve(g(void 0,!0));if(this[h].destroyed)return new Promise(function(U,G){xe.nextTick(function(){p[s]?G(p[s]):U(g(void 0,!0))})});var C=this[a],O;if(C)O=new Promise(m(C,this));else{var H=this[h].read();if(H!==null)return Promise.resolve(g(H,!1));O=new Promise(this[l])}return this[a]=O,O}},e(t,Symbol.asyncIterator,function(){return this}),e(t,"return",function(){var p=this;return new Promise(function(E,C){p[h].destroy(null,function(O){if(O){C(O);return}E(g(void 0,!0))})})}),t),N),A=function(p){var E,C=Object.create(b,(E={},e(E,h,{value:p,writable:!0}),e(E,n,{value:null,writable:!0}),e(E,i,{value:null,writable:!0}),e(E,s,{value:null,writable:!0}),e(E,o,{value:p._readableState.endEmitted,writable:!0}),e(E,l,{value:function(H,U){var G=C[h].read();G?(C[a]=null,C[n]=null,C[i]=null,H(g(G,!1))):(C[n]=H,C[i]=U)},writable:!0}),E));return C[a]=null,r(p,function(O){if(O&&O.code!=="ERR_STREAM_PREMATURE_CLOSE"){var H=C[i];H!==null&&(C[a]=null,C[n]=null,C[i]=null,H(O)),C[s]=O;return}var U=C[n];U!==null&&(C[a]=null,C[n]=null,C[i]=null,U(g(void 0,!0))),C[o]=!0}),p.on("readable",y.bind(null,C)),C};return Ja=A,Ja}var el,Nd;function Vw(){return Nd||(Nd=1,el=function(){throw new Error("Readable.from is not available in the browser")}),el}var tl,kd;function Am(){if(kd)return tl;kd=1,tl=j;var t;j.ReadableState=G,lc.EventEmitter;var e=function(D,J){return D.listeners(J).length},r=wm(),n=Bo().Buffer,i=qt.Uint8Array||function(){};function s(I){return n.from(I)}function o(I){return n.isBuffer(I)||I instanceof i}var a=Sm(),l;a&&a.debuglog?l=a.debuglog("stream"):l=function(){};var h=Ww(),g=Nm(),v=km(),y=v.getHighWaterMark,m=qn().codes,N=m.ERR_INVALID_ARG_TYPE,b=m.ERR_STREAM_PUSH_AFTER_EOF,A=m.ERR_METHOD_NOT_IMPLEMENTED,d=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,p,E,C;en(j,r);var O=g.errorOrDestroy,H=["error","close","destroy","pause","resume"];function U(I,D,J){if(typeof I.prependListener=="function")return I.prependListener(D,J);!I._events||!I._events[D]?I.on(D,J):Array.isArray(I._events[D])?I._events[D].unshift(J):I._events[D]=[J,I._events[D]]}function G(I,D,J){t=t||Ln(),I=I||{},typeof J!="boolean"&&(J=D instanceof t),this.objectMode=!!I.objectMode,J&&(this.objectMode=this.objectMode||!!I.readableObjectMode),this.highWaterMark=y(this,I,"readableHighWaterMark",J),this.buffer=new h,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=I.emitClose!==!1,this.autoDestroy=!!I.autoDestroy,this.destroyed=!1,this.defaultEncoding=I.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,I.encoding&&(p||(p=au().StringDecoder),this.decoder=new p(I.encoding),this.encoding=I.encoding)}function j(I){if(t=t||Ln(),!(this instanceof j))return new j(I);var D=this instanceof t;this._readableState=new G(I,this,D),this.readable=!0,I&&(typeof I.read=="function"&&(this._read=I.read),typeof I.destroy=="function"&&(this._destroy=I.destroy)),r.call(this)}Object.defineProperty(j.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(D){this._readableState&&(this._readableState.destroyed=D)}}),j.prototype.destroy=g.destroy,j.prototype._undestroy=g.undestroy,j.prototype._destroy=function(I,D){D(I)},j.prototype.push=function(I,D){var J=this._readableState,x;return J.objectMode?x=!0:typeof I=="string"&&(D=D||J.defaultEncoding,D!==J.encoding&&(I=n.from(I,D),D=""),x=!0),ee(this,I,D,!1,x)},j.prototype.unshift=function(I){return ee(this,I,null,!0,!1)};function ee(I,D,J,x,Y){l("readableAddChunk",D);var k=I._readableState;if(D===null)k.reading=!1,he(I,k);else{var u;if(Y||(u=L(k,D)),u)O(I,u);else if(k.objectMode||D&&D.length>0)if(typeof D!="string"&&!k.objectMode&&Object.getPrototypeOf(D)!==n.prototype&&(D=s(D)),x)k.endEmitted?O(I,new d):de(I,k,D,!0);else if(k.ended)O(I,new b);else{if(k.destroyed)return!1;k.reading=!1,k.decoder&&!J?(D=k.decoder.write(D),k.objectMode||D.length!==0?de(I,k,D,!1):q(I,k)):de(I,k,D,!1)}else x||(k.reading=!1,q(I,k))}return!k.ended&&(k.length<k.highWaterMark||k.length===0)}function de(I,D,J,x){D.flowing&&D.length===0&&!D.sync?(D.awaitDrain=0,I.emit("data",J)):(D.length+=D.objectMode?1:J.length,x?D.buffer.unshift(J):D.buffer.push(J),D.needReadable&&Q(I)),q(I,D)}function L(I,D){var J;return!o(D)&&typeof D!="string"&&D!==void 0&&!I.objectMode&&(J=new N("chunk",["string","Buffer","Uint8Array"],D)),J}j.prototype.isPaused=function(){return this._readableState.flowing===!1},j.prototype.setEncoding=function(I){p||(p=au().StringDecoder);var D=new p(I);this._readableState.decoder=D,this._readableState.encoding=this._readableState.decoder.encoding;for(var J=this._readableState.buffer.head,x="";J!==null;)x+=D.write(J.data),J=J.next;return this._readableState.buffer.clear(),x!==""&&this._readableState.buffer.push(x),this._readableState.length=x.length,this};var X=1073741824;function T(I){return I>=X?I=X:(I--,I|=I>>>1,I|=I>>>2,I|=I>>>4,I|=I>>>8,I|=I>>>16,I++),I}function Z(I,D){return I<=0||D.length===0&&D.ended?0:D.objectMode?1:I!==I?D.flowing&&D.length?D.buffer.head.data.length:D.length:(I>D.highWaterMark&&(D.highWaterMark=T(I)),I<=D.length?I:D.ended?D.length:(D.needReadable=!0,0))}j.prototype.read=function(I){l("read",I),I=parseInt(I,10);var D=this._readableState,J=I;if(I!==0&&(D.emittedReadable=!1),I===0&&D.needReadable&&((D.highWaterMark!==0?D.length>=D.highWaterMark:D.length>0)||D.ended))return l("read: emitReadable",D.length,D.ended),D.length===0&&D.ended?_(this):Q(this),null;if(I=Z(I,D),I===0&&D.ended)return D.length===0&&_(this),null;var x=D.needReadable;l("need readable",x),(D.length===0||D.length-I<D.highWaterMark)&&(x=!0,l("length less than watermark",x)),D.ended||D.reading?(x=!1,l("reading or ended",x)):x&&(l("do read"),D.reading=!0,D.sync=!0,D.length===0&&(D.needReadable=!0),this._read(D.highWaterMark),D.sync=!1,D.reading||(I=Z(J,D)));var Y;return I>0?Y=S(I,D):Y=null,Y===null?(D.needReadable=D.length<=D.highWaterMark,I=0):(D.length-=I,D.awaitDrain=0),D.length===0&&(D.ended||(D.needReadable=!0),J!==I&&D.ended&&_(this)),Y!==null&&this.emit("data",Y),Y};function he(I,D){if(l("onEofChunk"),!D.ended){if(D.decoder){var J=D.decoder.end();J&&J.length&&(D.buffer.push(J),D.length+=D.objectMode?1:J.length)}D.ended=!0,D.sync?Q(I):(D.needReadable=!1,D.emittedReadable||(D.emittedReadable=!0,ne(I)))}}function Q(I){var D=I._readableState;l("emitReadable",D.needReadable,D.emittedReadable),D.needReadable=!1,D.emittedReadable||(l("emitReadable",D.flowing),D.emittedReadable=!0,xe.nextTick(ne,I))}function ne(I){var D=I._readableState;l("emitReadable_",D.destroyed,D.length,D.ended),!D.destroyed&&(D.length||D.ended)&&(I.emit("readable"),D.emittedReadable=!1),D.needReadable=!D.flowing&&!D.ended&&D.length<=D.highWaterMark,z(I)}function q(I,D){D.readingMore||(D.readingMore=!0,xe.nextTick(ae,I,D))}function ae(I,D){for(;!D.reading&&!D.ended&&(D.length<D.highWaterMark||D.flowing&&D.length===0);){var J=D.length;if(l("maybeReadMore read 0"),I.read(0),J===D.length)break}D.readingMore=!1}j.prototype._read=function(I){O(this,new A("_read()"))},j.prototype.pipe=function(I,D){var J=this,x=this._readableState;switch(x.pipesCount){case 0:x.pipes=I;break;case 1:x.pipes=[x.pipes,I];break;default:x.pipes.push(I);break}x.pipesCount+=1,l("pipe count=%d opts=%j",x.pipesCount,D);var Y=(!D||D.end!==!1)&&I!==xe.stdout&&I!==xe.stderr,k=Y?c:pe;x.endEmitted?xe.nextTick(k):J.once("end",k),I.on("unpipe",u);function u(ge,we){l("onunpipe"),ge===J&&we&&we.hasUnpiped===!1&&(we.hasUnpiped=!0,W())}function c(){l("onend"),I.end()}var w=K(J);I.on("drain",w);var P=!1;function W(){l("cleanup"),I.removeListener("close",ce),I.removeListener("finish",oe),I.removeListener("drain",w),I.removeListener("error",ie),I.removeListener("unpipe",u),J.removeListener("end",c),J.removeListener("end",pe),J.removeListener("data",B),P=!0,x.awaitDrain&&(!I._writableState||I._writableState.needDrain)&&w()}J.on("data",B);function B(ge){l("ondata");var we=I.write(ge);l("dest.write",we),we===!1&&((x.pipesCount===1&&x.pipes===I||x.pipesCount>1&&F(x.pipes,I)!==-1)&&!P&&(l("false write response, pause",x.awaitDrain),x.awaitDrain++),J.pause())}function ie(ge){l("onerror",ge),pe(),I.removeListener("error",ie),e(I,"error")===0&&O(I,ge)}U(I,"error",ie);function ce(){I.removeListener("finish",oe),pe()}I.once("close",ce);function oe(){l("onfinish"),I.removeListener("close",ce),pe()}I.once("finish",oe);function pe(){l("unpipe"),J.unpipe(I)}return I.emit("pipe",J),x.flowing||(l("pipe resume"),J.resume()),I};function K(I){return function(){var J=I._readableState;l("pipeOnDrain",J.awaitDrain),J.awaitDrain&&J.awaitDrain--,J.awaitDrain===0&&e(I,"data")&&(J.flowing=!0,z(I))}}j.prototype.unpipe=function(I){var D=this._readableState,J={hasUnpiped:!1};if(D.pipesCount===0)return this;if(D.pipesCount===1)return I&&I!==D.pipes?this:(I||(I=D.pipes),D.pipes=null,D.pipesCount=0,D.flowing=!1,I&&I.emit("unpipe",this,J),this);if(!I){var x=D.pipes,Y=D.pipesCount;D.pipes=null,D.pipesCount=0,D.flowing=!1;for(var k=0;k<Y;k++)x[k].emit("unpipe",this,{hasUnpiped:!1});return this}var u=F(D.pipes,I);return u===-1?this:(D.pipes.splice(u,1),D.pipesCount-=1,D.pipesCount===1&&(D.pipes=D.pipes[0]),I.emit("unpipe",this,J),this)},j.prototype.on=function(I,D){var J=r.prototype.on.call(this,I,D),x=this._readableState;return I==="data"?(x.readableListening=this.listenerCount("readable")>0,x.flowing!==!1&&this.resume()):I==="readable"&&!x.endEmitted&&!x.readableListening&&(x.readableListening=x.needReadable=!0,x.flowing=!1,x.emittedReadable=!1,l("on readable",x.length,x.reading),x.length?Q(this):x.reading||xe.nextTick(V,this)),J},j.prototype.addListener=j.prototype.on,j.prototype.removeListener=function(I,D){var J=r.prototype.removeListener.call(this,I,D);return I==="readable"&&xe.nextTick(R,this),J},j.prototype.removeAllListeners=function(I){var D=r.prototype.removeAllListeners.apply(this,arguments);return(I==="readable"||I===void 0)&&xe.nextTick(R,this),D};function R(I){var D=I._readableState;D.readableListening=I.listenerCount("readable")>0,D.resumeScheduled&&!D.paused?D.flowing=!0:I.listenerCount("data")>0&&I.resume()}function V(I){l("readable nexttick read 0"),I.read(0)}j.prototype.resume=function(){var I=this._readableState;return I.flowing||(l("resume"),I.flowing=!I.readableListening,$(this,I)),I.paused=!1,this};function $(I,D){D.resumeScheduled||(D.resumeScheduled=!0,xe.nextTick(te,I,D))}function te(I,D){l("resume",D.reading),D.reading||I.read(0),D.resumeScheduled=!1,I.emit("resume"),z(I),D.flowing&&!D.reading&&I.read(0)}j.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function z(I){var D=I._readableState;for(l("flow",D.flowing);D.flowing&&I.read()!==null;);}j.prototype.wrap=function(I){var D=this,J=this._readableState,x=!1;I.on("end",function(){if(l("wrapped end"),J.decoder&&!J.ended){var u=J.decoder.end();u&&u.length&&D.push(u)}D.push(null)}),I.on("data",function(u){if(l("wrapped data"),J.decoder&&(u=J.decoder.write(u)),!(J.objectMode&&u==null)&&!(!J.objectMode&&(!u||!u.length))){var c=D.push(u);c||(x=!0,I.pause())}});for(var Y in I)this[Y]===void 0&&typeof I[Y]=="function"&&(this[Y]=function(c){return function(){return I[c].apply(I,arguments)}}(Y));for(var k=0;k<H.length;k++)I.on(H[k],this.emit.bind(this,H[k]));return this._read=function(u){l("wrapped _read",u),x&&(x=!1,I.resume())},this},typeof Symbol=="function"&&(j.prototype[Symbol.asyncIterator]=function(){return E===void 0&&(E=Gw()),E(this)}),Object.defineProperty(j.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(j.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(j.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(D){this._readableState&&(this._readableState.flowing=D)}}),j._fromList=S,Object.defineProperty(j.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function S(I,D){if(D.length===0)return null;var J;return D.objectMode?J=D.buffer.shift():!I||I>=D.length?(D.decoder?J=D.buffer.join(""):D.buffer.length===1?J=D.buffer.first():J=D.buffer.concat(D.length),D.buffer.clear()):J=D.buffer.consume(I,D.decoder),J}function _(I){var D=I._readableState;l("endReadable",D.endEmitted),D.endEmitted||(D.ended=!0,xe.nextTick(M,D,I))}function M(I,D){if(l("endReadableNT",I.endEmitted,I.length),!I.endEmitted&&I.length===0&&(I.endEmitted=!0,D.readable=!1,D.emit("end"),I.autoDestroy)){var J=D._writableState;(!J||J.autoDestroy&&J.finished)&&D.destroy()}}typeof Symbol=="function"&&(j.from=function(I,D){return C===void 0&&(C=Vw()),C(j,I,D)});function F(I,D){for(var J=0,x=I.length;J<x;J++)if(I[J]===D)return J;return-1}return tl}var rl,Td;function Cm(){if(Td)return rl;Td=1,rl=a;var t=qn().codes,e=t.ERR_METHOD_NOT_IMPLEMENTED,r=t.ERR_MULTIPLE_CALLBACK,n=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,i=t.ERR_TRANSFORM_WITH_LENGTH_0,s=Ln();en(a,s);function o(g,v){var y=this._transformState;y.transforming=!1;var m=y.writecb;if(m===null)return this.emit("error",new r);y.writechunk=null,y.writecb=null,v!=null&&this.push(v),m(g);var N=this._readableState;N.reading=!1,(N.needReadable||N.length<N.highWaterMark)&&this._read(N.highWaterMark)}function a(g){if(!(this instanceof a))return new a(g);s.call(this,g),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,g&&(typeof g.transform=="function"&&(this._transform=g.transform),typeof g.flush=="function"&&(this._flush=g.flush)),this.on("prefinish",l)}function l(){var g=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(v,y){h(g,v,y)}):h(this,null,null)}a.prototype.push=function(g,v){return this._transformState.needTransform=!1,s.prototype.push.call(this,g,v)},a.prototype._transform=function(g,v,y){y(new e("_transform()"))},a.prototype._write=function(g,v,y){var m=this._transformState;if(m.writecb=y,m.writechunk=g,m.writeencoding=v,!m.transforming){var N=this._readableState;(m.needTransform||N.needReadable||N.length<N.highWaterMark)&&this._read(N.highWaterMark)}},a.prototype._read=function(g){var v=this._transformState;v.writechunk!==null&&!v.transforming?(v.transforming=!0,this._transform(v.writechunk,v.writeencoding,v.afterTransform)):v.needTransform=!0},a.prototype._destroy=function(g,v){s.prototype._destroy.call(this,g,function(y){v(y)})};function h(g,v,y){if(v)return g.emit("error",v);if(y!=null&&g.push(y),g._writableState.length)throw new i;if(g._transformState.transforming)throw new n;return g.push(null)}return rl}var nl,Ad;function $w(){if(Ad)return nl;Ad=1,nl=e;var t=Cm();en(e,t);function e(r){if(!(this instanceof e))return new e(r);t.call(this,r)}return e.prototype._transform=function(r,n,i){i(null,r)},nl}var il,Cd;function qw(){if(Cd)return il;Cd=1;var t;function e(y){var m=!1;return function(){m||(m=!0,y.apply(void 0,arguments))}}var r=qn().codes,n=r.ERR_MISSING_ARGS,i=r.ERR_STREAM_DESTROYED;function s(y){if(y)throw y}function o(y){return y.setHeader&&typeof y.abort=="function"}function a(y,m,N,b){b=e(b);var A=!1;y.on("close",function(){A=!0}),t===void 0&&(t=dc()),t(y,{readable:m,writable:N},function(p){if(p)return b(p);A=!0,b()});var d=!1;return function(p){if(!A&&!d){if(d=!0,o(y))return y.abort();if(typeof y.destroy=="function")return y.destroy();b(p||new i("pipe"))}}}function l(y){y()}function h(y,m){return y.pipe(m)}function g(y){return!y.length||typeof y[y.length-1]!="function"?s:y.pop()}function v(){for(var y=arguments.length,m=new Array(y),N=0;N<y;N++)m[N]=arguments[N];var b=g(m);if(Array.isArray(m[0])&&(m=m[0]),m.length<2)throw new n("streams");var A,d=m.map(function(p,E){var C=E<m.length-1,O=E>0;return a(p,C,O,function(H){A||(A=H),H&&d.forEach(l),!C&&(d.forEach(l),b(A))})});return m.reduce(h)}return il=v,il}var hc=jt,pc=lc.EventEmitter,Xw=en;Xw(jt,pc);jt.Readable=Am();jt.Writable=Tm();jt.Duplex=Ln();jt.Transform=Cm();jt.PassThrough=$w();jt.finished=dc();jt.pipeline=qw();jt.Stream=jt;function jt(){pc.call(this)}jt.prototype.pipe=function(t,e){var r=this;function n(g){t.writable&&t.write(g)===!1&&r.pause&&r.pause()}r.on("data",n);function i(){r.readable&&r.resume&&r.resume()}t.on("drain",i),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",o),r.on("close",a));var s=!1;function o(){s||(s=!0,t.end())}function a(){s||(s=!0,typeof t.destroy=="function"&&t.destroy())}function l(g){if(h(),pc.listenerCount(this,"error")===0)throw g}r.on("error",l),t.on("error",l);function h(){r.removeListener("data",n),t.removeListener("drain",i),r.removeListener("end",o),r.removeListener("close",a),r.removeListener("error",l),t.removeListener("error",l),r.removeListener("end",h),r.removeListener("close",h),t.removeListener("close",h)}return r.on("end",h),r.on("close",h),t.on("close",h),t.emit("pipe",r),t};(function(t){(function(e){e.parser=function(S,_){return new n(S,_)},e.SAXParser=n,e.SAXStream=g,e.createStream=h,e.MAX_BUFFER_LENGTH=64*1024;var r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(S,_){if(!(this instanceof n))return new n(S,_);var M=this;s(M),M.q=M.c="",M.bufferCheckPosition=e.MAX_BUFFER_LENGTH,M.opt=_||{},M.opt.lowercase=M.opt.lowercase||M.opt.lowercasetags,M.looseCase=M.opt.lowercase?"toLowerCase":"toUpperCase",M.tags=[],M.closed=M.closedRoot=M.sawRoot=!1,M.tag=M.error=null,M.strict=!!S,M.noscript=!!(S||M.opt.noscript),M.state=j.BEGIN,M.strictEntities=M.opt.strictEntities,M.ENTITIES=M.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),M.attribList=[],M.opt.xmlns&&(M.ns=Object.create(b)),M.trackPosition=M.opt.position!==!1,M.trackPosition&&(M.position=M.line=M.column=0),de(M,"onready")}Object.create||(Object.create=function(S){function _(){}_.prototype=S;var M=new _;return M}),Object.keys||(Object.keys=function(S){var _=[];for(var M in S)S.hasOwnProperty(M)&&_.push(M);return _});function i(S){for(var _=Math.max(e.MAX_BUFFER_LENGTH,10),M=0,F=0,I=r.length;F<I;F++){var D=S[r[F]].length;if(D>_)switch(r[F]){case"textNode":X(S);break;case"cdata":L(S,"oncdata",S.cdata),S.cdata="";break;case"script":L(S,"onscript",S.script),S.script="";break;default:Z(S,"Max buffer length exceeded: "+r[F])}M=Math.max(M,D)}var J=e.MAX_BUFFER_LENGTH-M;S.bufferCheckPosition=J+S.position}function s(S){for(var _=0,M=r.length;_<M;_++)S[r[_]]=""}function o(S){X(S),S.cdata!==""&&(L(S,"oncdata",S.cdata),S.cdata=""),S.script!==""&&(L(S,"onscript",S.script),S.script="")}n.prototype={end:function(){he(this)},write:z,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){o(this)}};var a;try{a=hc.Stream}catch{a=function(){}}var l=e.EVENTS.filter(function(S){return S!=="error"&&S!=="end"});function h(S,_){return new g(S,_)}function g(S,_){if(!(this instanceof g))return new g(S,_);a.apply(this),this._parser=new n(S,_),this.writable=!0,this.readable=!0;var M=this;this._parser.onend=function(){M.emit("end")},this._parser.onerror=function(F){M.emit("error",F),M._parser.error=null},this._decoder=null,l.forEach(function(F){Object.defineProperty(M,"on"+F,{get:function(){return M._parser["on"+F]},set:function(I){if(!I)return M.removeAllListeners(F),M._parser["on"+F]=I,I;M.on(F,I)},enumerable:!0,configurable:!1})})}g.prototype=Object.create(a.prototype,{constructor:{value:g}}),g.prototype.write=function(S){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(S)){if(!this._decoder){var _=au().StringDecoder;this._decoder=new _("utf8")}S=this._decoder.write(S)}return this._parser.write(S.toString()),this.emit("data",S),!0},g.prototype.end=function(S){return S&&S.length&&this.write(S),this._parser.end(),!0},g.prototype.on=function(S,_){var M=this;return!M._parser["on"+S]&&l.indexOf(S)!==-1&&(M._parser["on"+S]=function(){var F=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);F.splice(0,0,S),M.emit.apply(M,F)}),a.prototype.on.call(M,S,_)};var v="[CDATA[",y="DOCTYPE",m="http://www.w3.org/XML/1998/namespace",N="http://www.w3.org/2000/xmlns/",b={xml:m,xmlns:N},A=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,d=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,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]/,E=/[#:_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 C(S){return S===" "||S===`
|
||
`||S==="\r"||S===" "}function O(S){return S==='"'||S==="'"}function H(S){return S===">"||C(S)}function U(S,_){return S.test(_)}function G(S,_){return!U(S,_)}var j=0;e.STATE={BEGIN:j++,BEGIN_WHITESPACE:j++,TEXT:j++,TEXT_ENTITY:j++,OPEN_WAKA:j++,SGML_DECL:j++,SGML_DECL_QUOTED:j++,DOCTYPE:j++,DOCTYPE_QUOTED:j++,DOCTYPE_DTD:j++,DOCTYPE_DTD_QUOTED:j++,COMMENT_STARTING:j++,COMMENT:j++,COMMENT_ENDING:j++,COMMENT_ENDED:j++,CDATA:j++,CDATA_ENDING:j++,CDATA_ENDING_2:j++,PROC_INST:j++,PROC_INST_BODY:j++,PROC_INST_ENDING:j++,OPEN_TAG:j++,OPEN_TAG_SLASH:j++,ATTRIB:j++,ATTRIB_NAME:j++,ATTRIB_NAME_SAW_WHITE:j++,ATTRIB_VALUE:j++,ATTRIB_VALUE_QUOTED:j++,ATTRIB_VALUE_CLOSED:j++,ATTRIB_VALUE_UNQUOTED:j++,ATTRIB_VALUE_ENTITY_Q:j++,ATTRIB_VALUE_ENTITY_U:j++,CLOSE_TAG:j++,CLOSE_TAG_SAW_WHITE:j++,SCRIPT:j++,SCRIPT_ENDING:j++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.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(e.ENTITIES).forEach(function(S){var _=e.ENTITIES[S],M=typeof _=="number"?String.fromCharCode(_):_;e.ENTITIES[S]=M});for(var ee in e.STATE)e.STATE[e.STATE[ee]]=ee;j=e.STATE;function de(S,_,M){S[_]&&S[_](M)}function L(S,_,M){S.textNode&&X(S),de(S,_,M)}function X(S){S.textNode=T(S.opt,S.textNode),S.textNode&&de(S,"ontext",S.textNode),S.textNode=""}function T(S,_){return S.trim&&(_=_.trim()),S.normalize&&(_=_.replace(/\s+/g," ")),_}function Z(S,_){return X(S),S.trackPosition&&(_+=`
|
||
Line: `+S.line+`
|
||
Column: `+S.column+`
|
||
Char: `+S.c),_=new Error(_),S.error=_,de(S,"onerror",_),S}function he(S){return S.sawRoot&&!S.closedRoot&&Q(S,"Unclosed root tag"),S.state!==j.BEGIN&&S.state!==j.BEGIN_WHITESPACE&&S.state!==j.TEXT&&Z(S,"Unexpected end"),X(S),S.c="",S.closed=!0,de(S,"onend"),n.call(S,S.strict,S.opt),S}function Q(S,_){if(typeof S!="object"||!(S instanceof n))throw new Error("bad call to strictFail");S.strict&&Z(S,_)}function ne(S){S.strict||(S.tagName=S.tagName[S.looseCase]());var _=S.tags[S.tags.length-1]||S,M=S.tag={name:S.tagName,attributes:{}};S.opt.xmlns&&(M.ns=_.ns),S.attribList.length=0,L(S,"onopentagstart",M)}function q(S,_){var M=S.indexOf(":"),F=M<0?["",S]:S.split(":"),I=F[0],D=F[1];return _&&S==="xmlns"&&(I="xmlns",D=""),{prefix:I,local:D}}function ae(S){if(S.strict||(S.attribName=S.attribName[S.looseCase]()),S.attribList.indexOf(S.attribName)!==-1||S.tag.attributes.hasOwnProperty(S.attribName)){S.attribName=S.attribValue="";return}if(S.opt.xmlns){var _=q(S.attribName,!0),M=_.prefix,F=_.local;if(M==="xmlns")if(F==="xml"&&S.attribValue!==m)Q(S,"xml: prefix must be bound to "+m+`
|
||
Actual: `+S.attribValue);else if(F==="xmlns"&&S.attribValue!==N)Q(S,"xmlns: prefix must be bound to "+N+`
|
||
Actual: `+S.attribValue);else{var I=S.tag,D=S.tags[S.tags.length-1]||S;I.ns===D.ns&&(I.ns=Object.create(D.ns)),I.ns[F]=S.attribValue}S.attribList.push([S.attribName,S.attribValue])}else S.tag.attributes[S.attribName]=S.attribValue,L(S,"onattribute",{name:S.attribName,value:S.attribValue});S.attribName=S.attribValue=""}function K(S,_){if(S.opt.xmlns){var M=S.tag,F=q(S.tagName);M.prefix=F.prefix,M.local=F.local,M.uri=M.ns[F.prefix]||"",M.prefix&&!M.uri&&(Q(S,"Unbound namespace prefix: "+JSON.stringify(S.tagName)),M.uri=F.prefix);var I=S.tags[S.tags.length-1]||S;M.ns&&I.ns!==M.ns&&Object.keys(M.ns).forEach(function(B){L(S,"onopennamespace",{prefix:B,uri:M.ns[B]})});for(var D=0,J=S.attribList.length;D<J;D++){var x=S.attribList[D],Y=x[0],k=x[1],u=q(Y,!0),c=u.prefix,w=u.local,P=c===""?"":M.ns[c]||"",W={name:Y,value:k,prefix:c,local:w,uri:P};c&&c!=="xmlns"&&!P&&(Q(S,"Unbound namespace prefix: "+JSON.stringify(c)),W.uri=c),S.tag.attributes[Y]=W,L(S,"onattribute",W)}S.attribList.length=0}S.tag.isSelfClosing=!!_,S.sawRoot=!0,S.tags.push(S.tag),L(S,"onopentag",S.tag),_||(!S.noscript&&S.tagName.toLowerCase()==="script"?S.state=j.SCRIPT:S.state=j.TEXT,S.tag=null,S.tagName=""),S.attribName=S.attribValue="",S.attribList.length=0}function R(S){if(!S.tagName){Q(S,"Weird empty close tag."),S.textNode+="</>",S.state=j.TEXT;return}if(S.script){if(S.tagName!=="script"){S.script+="</"+S.tagName+">",S.tagName="",S.state=j.SCRIPT;return}L(S,"onscript",S.script),S.script=""}var _=S.tags.length,M=S.tagName;S.strict||(M=M[S.looseCase]());for(var F=M;_--;){var I=S.tags[_];if(I.name!==F)Q(S,"Unexpected close tag");else break}if(_<0){Q(S,"Unmatched closing tag: "+S.tagName),S.textNode+="</"+S.tagName+">",S.state=j.TEXT;return}S.tagName=M;for(var D=S.tags.length;D-- >_;){var J=S.tag=S.tags.pop();S.tagName=S.tag.name,L(S,"onclosetag",S.tagName);var x={};for(var Y in J.ns)x[Y]=J.ns[Y];var k=S.tags[S.tags.length-1]||S;S.opt.xmlns&&J.ns!==k.ns&&Object.keys(J.ns).forEach(function(u){var c=J.ns[u];L(S,"onclosenamespace",{prefix:u,uri:c})})}_===0&&(S.closedRoot=!0),S.tagName=S.attribValue=S.attribName="",S.attribList.length=0,S.state=j.TEXT}function V(S){var _=S.entity,M=_.toLowerCase(),F,I="";return S.ENTITIES[_]?S.ENTITIES[_]:S.ENTITIES[M]?S.ENTITIES[M]:(_=M,_.charAt(0)==="#"&&(_.charAt(1)==="x"?(_=_.slice(2),F=parseInt(_,16),I=F.toString(16)):(_=_.slice(1),F=parseInt(_,10),I=F.toString(10))),_=_.replace(/^0+/,""),isNaN(F)||I.toLowerCase()!==_?(Q(S,"Invalid character entity"),"&"+S.entity+";"):String.fromCodePoint(F))}function $(S,_){_==="<"?(S.state=j.OPEN_WAKA,S.startTagPosition=S.position):C(_)||(Q(S,"Non-whitespace before first tag."),S.textNode=_,S.state=j.TEXT)}function te(S,_){var M="";return _<S.length&&(M=S.charAt(_)),M}function z(S){var _=this;if(this.error)throw this.error;if(_.closed)return Z(_,"Cannot write after close. Assign an onready handler.");if(S===null)return he(_);typeof S=="object"&&(S=S.toString());for(var M=0,F="";F=te(S,M++),_.c=F,!!F;)switch(_.trackPosition&&(_.position++,F===`
|
||
`?(_.line++,_.column=0):_.column++),_.state){case j.BEGIN:if(_.state=j.BEGIN_WHITESPACE,F==="\uFEFF")continue;$(_,F);continue;case j.BEGIN_WHITESPACE:$(_,F);continue;case j.TEXT:if(_.sawRoot&&!_.closedRoot){for(var I=M-1;F&&F!=="<"&&F!=="&";)F=te(S,M++),F&&_.trackPosition&&(_.position++,F===`
|
||
`?(_.line++,_.column=0):_.column++);_.textNode+=S.substring(I,M-1)}F==="<"&&!(_.sawRoot&&_.closedRoot&&!_.strict)?(_.state=j.OPEN_WAKA,_.startTagPosition=_.position):(!C(F)&&(!_.sawRoot||_.closedRoot)&&Q(_,"Text data outside of root node."),F==="&"?_.state=j.TEXT_ENTITY:_.textNode+=F);continue;case j.SCRIPT:F==="<"?_.state=j.SCRIPT_ENDING:_.script+=F;continue;case j.SCRIPT_ENDING:F==="/"?_.state=j.CLOSE_TAG:(_.script+="<"+F,_.state=j.SCRIPT);continue;case j.OPEN_WAKA:if(F==="!")_.state=j.SGML_DECL,_.sgmlDecl="";else if(!C(F))if(U(A,F))_.state=j.OPEN_TAG,_.tagName=F;else if(F==="/")_.state=j.CLOSE_TAG,_.tagName="";else if(F==="?")_.state=j.PROC_INST,_.procInstName=_.procInstBody="";else{if(Q(_,"Unencoded <"),_.startTagPosition+1<_.position){var D=_.position-_.startTagPosition;F=new Array(D).join(" ")+F}_.textNode+="<"+F,_.state=j.TEXT}continue;case j.SGML_DECL:(_.sgmlDecl+F).toUpperCase()===v?(L(_,"onopencdata"),_.state=j.CDATA,_.sgmlDecl="",_.cdata=""):_.sgmlDecl+F==="--"?(_.state=j.COMMENT,_.comment="",_.sgmlDecl=""):(_.sgmlDecl+F).toUpperCase()===y?(_.state=j.DOCTYPE,(_.doctype||_.sawRoot)&&Q(_,"Inappropriately located doctype declaration"),_.doctype="",_.sgmlDecl=""):F===">"?(L(_,"onsgmldeclaration",_.sgmlDecl),_.sgmlDecl="",_.state=j.TEXT):(O(F)&&(_.state=j.SGML_DECL_QUOTED),_.sgmlDecl+=F);continue;case j.SGML_DECL_QUOTED:F===_.q&&(_.state=j.SGML_DECL,_.q=""),_.sgmlDecl+=F;continue;case j.DOCTYPE:F===">"?(_.state=j.TEXT,L(_,"ondoctype",_.doctype),_.doctype=!0):(_.doctype+=F,F==="["?_.state=j.DOCTYPE_DTD:O(F)&&(_.state=j.DOCTYPE_QUOTED,_.q=F));continue;case j.DOCTYPE_QUOTED:_.doctype+=F,F===_.q&&(_.q="",_.state=j.DOCTYPE);continue;case j.DOCTYPE_DTD:_.doctype+=F,F==="]"?_.state=j.DOCTYPE:O(F)&&(_.state=j.DOCTYPE_DTD_QUOTED,_.q=F);continue;case j.DOCTYPE_DTD_QUOTED:_.doctype+=F,F===_.q&&(_.state=j.DOCTYPE_DTD,_.q="");continue;case j.COMMENT:F==="-"?_.state=j.COMMENT_ENDING:_.comment+=F;continue;case j.COMMENT_ENDING:F==="-"?(_.state=j.COMMENT_ENDED,_.comment=T(_.opt,_.comment),_.comment&&L(_,"oncomment",_.comment),_.comment=""):(_.comment+="-"+F,_.state=j.COMMENT);continue;case j.COMMENT_ENDED:F!==">"?(Q(_,"Malformed comment"),_.comment+="--"+F,_.state=j.COMMENT):_.state=j.TEXT;continue;case j.CDATA:F==="]"?_.state=j.CDATA_ENDING:_.cdata+=F;continue;case j.CDATA_ENDING:F==="]"?_.state=j.CDATA_ENDING_2:(_.cdata+="]"+F,_.state=j.CDATA);continue;case j.CDATA_ENDING_2:F===">"?(_.cdata&&L(_,"oncdata",_.cdata),L(_,"onclosecdata"),_.cdata="",_.state=j.TEXT):F==="]"?_.cdata+="]":(_.cdata+="]]"+F,_.state=j.CDATA);continue;case j.PROC_INST:F==="?"?_.state=j.PROC_INST_ENDING:C(F)?_.state=j.PROC_INST_BODY:_.procInstName+=F;continue;case j.PROC_INST_BODY:if(!_.procInstBody&&C(F))continue;F==="?"?_.state=j.PROC_INST_ENDING:_.procInstBody+=F;continue;case j.PROC_INST_ENDING:F===">"?(L(_,"onprocessinginstruction",{name:_.procInstName,body:_.procInstBody}),_.procInstName=_.procInstBody="",_.state=j.TEXT):(_.procInstBody+="?"+F,_.state=j.PROC_INST_BODY);continue;case j.OPEN_TAG:U(d,F)?_.tagName+=F:(ne(_),F===">"?K(_):F==="/"?_.state=j.OPEN_TAG_SLASH:(C(F)||Q(_,"Invalid character in tag name"),_.state=j.ATTRIB));continue;case j.OPEN_TAG_SLASH:F===">"?(K(_,!0),R(_)):(Q(_,"Forward-slash in opening tag not followed by >"),_.state=j.ATTRIB);continue;case j.ATTRIB:if(C(F))continue;F===">"?K(_):F==="/"?_.state=j.OPEN_TAG_SLASH:U(A,F)?(_.attribName=F,_.attribValue="",_.state=j.ATTRIB_NAME):Q(_,"Invalid attribute name");continue;case j.ATTRIB_NAME:F==="="?_.state=j.ATTRIB_VALUE:F===">"?(Q(_,"Attribute without value"),_.attribValue=_.attribName,ae(_),K(_)):C(F)?_.state=j.ATTRIB_NAME_SAW_WHITE:U(d,F)?_.attribName+=F:Q(_,"Invalid attribute name");continue;case j.ATTRIB_NAME_SAW_WHITE:if(F==="=")_.state=j.ATTRIB_VALUE;else{if(C(F))continue;Q(_,"Attribute without value"),_.tag.attributes[_.attribName]="",_.attribValue="",L(_,"onattribute",{name:_.attribName,value:""}),_.attribName="",F===">"?K(_):U(A,F)?(_.attribName=F,_.state=j.ATTRIB_NAME):(Q(_,"Invalid attribute name"),_.state=j.ATTRIB)}continue;case j.ATTRIB_VALUE:if(C(F))continue;O(F)?(_.q=F,_.state=j.ATTRIB_VALUE_QUOTED):(Q(_,"Unquoted attribute value"),_.state=j.ATTRIB_VALUE_UNQUOTED,_.attribValue=F);continue;case j.ATTRIB_VALUE_QUOTED:if(F!==_.q){F==="&"?_.state=j.ATTRIB_VALUE_ENTITY_Q:_.attribValue+=F;continue}ae(_),_.q="",_.state=j.ATTRIB_VALUE_CLOSED;continue;case j.ATTRIB_VALUE_CLOSED:C(F)?_.state=j.ATTRIB:F===">"?K(_):F==="/"?_.state=j.OPEN_TAG_SLASH:U(A,F)?(Q(_,"No whitespace between attributes"),_.attribName=F,_.attribValue="",_.state=j.ATTRIB_NAME):Q(_,"Invalid attribute name");continue;case j.ATTRIB_VALUE_UNQUOTED:if(!H(F)){F==="&"?_.state=j.ATTRIB_VALUE_ENTITY_U:_.attribValue+=F;continue}ae(_),F===">"?K(_):_.state=j.ATTRIB;continue;case j.CLOSE_TAG:if(_.tagName)F===">"?R(_):U(d,F)?_.tagName+=F:_.script?(_.script+="</"+_.tagName,_.tagName="",_.state=j.SCRIPT):(C(F)||Q(_,"Invalid tagname in closing tag"),_.state=j.CLOSE_TAG_SAW_WHITE);else{if(C(F))continue;G(A,F)?_.script?(_.script+="</"+F,_.state=j.SCRIPT):Q(_,"Invalid tagname in closing tag."):_.tagName=F}continue;case j.CLOSE_TAG_SAW_WHITE:if(C(F))continue;F===">"?R(_):Q(_,"Invalid characters in closing tag");continue;case j.TEXT_ENTITY:case j.ATTRIB_VALUE_ENTITY_Q:case j.ATTRIB_VALUE_ENTITY_U:var J,x;switch(_.state){case j.TEXT_ENTITY:J=j.TEXT,x="textNode";break;case j.ATTRIB_VALUE_ENTITY_Q:J=j.ATTRIB_VALUE_QUOTED,x="attribValue";break;case j.ATTRIB_VALUE_ENTITY_U:J=j.ATTRIB_VALUE_UNQUOTED,x="attribValue";break}F===";"?(_[x]+=V(_),_.entity="",_.state=J):U(_.entity.length?E:p,F)?_.entity+=F:(Q(_,"Invalid character in entity name"),_[x]+="&"+_.entity+F,_.entity="",_.state=J);continue;default:throw new Error(_,"Unknown state: "+_.state)}return _.position>=_.bufferCheckPosition&&i(_),_}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var S=String.fromCharCode,_=Math.floor,M=function(){var F=16384,I=[],D,J,x=-1,Y=arguments.length;if(!Y)return"";for(var k="";++x<Y;){var u=Number(arguments[x]);if(!isFinite(u)||u<0||u>1114111||_(u)!==u)throw RangeError("Invalid code point: "+u);u<=65535?I.push(u):(u-=65536,D=(u>>10)+55296,J=u%1024+56320,I.push(D,J)),(x+1===Y||I.length>F)&&(k+=S.apply(null,I),I.length=0)}return k};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:M,configurable:!0,writable:!0}):String.fromCodePoint=M}()})(t)})(sm);var mc={isArray:function(t){return Array.isArray?Array.isArray(t):Object.prototype.toString.call(t)==="[object Array]"}},Yw=mc.isArray,gc={copyOptions:function(t){var e,r={};for(e in t)t.hasOwnProperty(e)&&(r[e]=t[e]);return r},ensureFlagExists:function(t,e){(!(t in e)||typeof e[t]!="boolean")&&(e[t]=!1)},ensureSpacesExists:function(t){(!("spaces"in t)||typeof t.spaces!="number"&&typeof t.spaces!="string")&&(t.spaces=0)},ensureAlwaysArrayExists:function(t){(!("alwaysArray"in t)||typeof t.alwaysArray!="boolean"&&!Yw(t.alwaysArray))&&(t.alwaysArray=!1)},ensureKeyExists:function(t,e){(!(t+"Key"in e)||typeof e[t+"Key"]!="string")&&(e[t+"Key"]=e.compact?"_"+t:t)},checkFnExists:function(t,e){return t+"Fn"in e}},Zw=sm,Se=gc,kn=mc.isArray,re,ve;function Qw(t){return re=Se.copyOptions(t),Se.ensureFlagExists("ignoreDeclaration",re),Se.ensureFlagExists("ignoreInstruction",re),Se.ensureFlagExists("ignoreAttributes",re),Se.ensureFlagExists("ignoreText",re),Se.ensureFlagExists("ignoreComment",re),Se.ensureFlagExists("ignoreCdata",re),Se.ensureFlagExists("ignoreDoctype",re),Se.ensureFlagExists("compact",re),Se.ensureFlagExists("alwaysChildren",re),Se.ensureFlagExists("addParent",re),Se.ensureFlagExists("trim",re),Se.ensureFlagExists("nativeType",re),Se.ensureFlagExists("nativeTypeAttributes",re),Se.ensureFlagExists("sanitize",re),Se.ensureFlagExists("instructionHasAttributes",re),Se.ensureFlagExists("captureSpacesBetweenElements",re),Se.ensureAlwaysArrayExists(re),Se.ensureKeyExists("declaration",re),Se.ensureKeyExists("instruction",re),Se.ensureKeyExists("attributes",re),Se.ensureKeyExists("text",re),Se.ensureKeyExists("comment",re),Se.ensureKeyExists("cdata",re),Se.ensureKeyExists("doctype",re),Se.ensureKeyExists("type",re),Se.ensureKeyExists("name",re),Se.ensureKeyExists("elements",re),Se.ensureKeyExists("parent",re),re}function jm(t){var e=Number(t);if(!isNaN(e))return e;var r=t.toLowerCase();return r==="true"?!0:r==="false"?!1:t}function Yi(t,e){var r;if(re.compact){if(!ve[re[t+"Key"]]&&(kn(re.alwaysArray)?re.alwaysArray.indexOf(re[t+"Key"])!==-1:re.alwaysArray)&&(ve[re[t+"Key"]]=[]),ve[re[t+"Key"]]&&!kn(ve[re[t+"Key"]])&&(ve[re[t+"Key"]]=[ve[re[t+"Key"]]]),t+"Fn"in re&&typeof e=="string"&&(e=re[t+"Fn"](e,ve)),t==="instruction"&&("instructionFn"in re||"instructionNameFn"in re)){for(r in e)if(e.hasOwnProperty(r))if("instructionFn"in re)e[r]=re.instructionFn(e[r],r,ve);else{var n=e[r];delete e[r],e[re.instructionNameFn(r,n,ve)]=n}}kn(ve[re[t+"Key"]])?ve[re[t+"Key"]].push(e):ve[re[t+"Key"]]=e}else{ve[re.elementsKey]||(ve[re.elementsKey]=[]);var i={};if(i[re.typeKey]=t,t==="instruction"){for(r in e)if(e.hasOwnProperty(r))break;i[re.nameKey]="instructionNameFn"in re?re.instructionNameFn(r,e,ve):r,re.instructionHasAttributes?(i[re.attributesKey]=e[r][re.attributesKey],"instructionFn"in re&&(i[re.attributesKey]=re.instructionFn(i[re.attributesKey],r,ve))):("instructionFn"in re&&(e[r]=re.instructionFn(e[r],r,ve)),i[re.instructionKey]=e[r])}else t+"Fn"in re&&(e=re[t+"Fn"](e,ve)),i[re[t+"Key"]]=e;re.addParent&&(i[re.parentKey]=ve),ve[re.elementsKey].push(i)}}function Rm(t){if("attributesFn"in re&&t&&(t=re.attributesFn(t,ve)),(re.trim||"attributeValueFn"in re||"attributeNameFn"in re||re.nativeTypeAttributes)&&t){var e;for(e in t)if(t.hasOwnProperty(e)&&(re.trim&&(t[e]=t[e].trim()),re.nativeTypeAttributes&&(t[e]=jm(t[e])),"attributeValueFn"in re&&(t[e]=re.attributeValueFn(t[e],e,ve)),"attributeNameFn"in re)){var r=t[e];delete t[e],t[re.attributeNameFn(e,t[e],ve)]=r}}return t}function Jw(t){var e={};if(t.body&&(t.name.toLowerCase()==="xml"||re.instructionHasAttributes)){for(var r=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,n;(n=r.exec(t.body))!==null;)e[n[1]]=n[2]||n[3]||n[4];e=Rm(e)}if(t.name.toLowerCase()==="xml"){if(re.ignoreDeclaration)return;ve[re.declarationKey]={},Object.keys(e).length&&(ve[re.declarationKey][re.attributesKey]=e),re.addParent&&(ve[re.declarationKey][re.parentKey]=ve)}else{if(re.ignoreInstruction)return;re.trim&&(t.body=t.body.trim());var i={};re.instructionHasAttributes&&Object.keys(e).length?(i[t.name]={},i[t.name][re.attributesKey]=e):i[t.name]=t.body,Yi("instruction",i)}}function ev(t,e){var r;if(typeof t=="object"&&(e=t.attributes,t=t.name),e=Rm(e),"elementNameFn"in re&&(t=re.elementNameFn(t,ve)),re.compact){if(r={},!re.ignoreAttributes&&e&&Object.keys(e).length){r[re.attributesKey]={};var n;for(n in e)e.hasOwnProperty(n)&&(r[re.attributesKey][n]=e[n])}!(t in ve)&&(kn(re.alwaysArray)?re.alwaysArray.indexOf(t)!==-1:re.alwaysArray)&&(ve[t]=[]),ve[t]&&!kn(ve[t])&&(ve[t]=[ve[t]]),kn(ve[t])?ve[t].push(r):ve[t]=r}else ve[re.elementsKey]||(ve[re.elementsKey]=[]),r={},r[re.typeKey]="element",r[re.nameKey]=t,!re.ignoreAttributes&&e&&Object.keys(e).length&&(r[re.attributesKey]=e),re.alwaysChildren&&(r[re.elementsKey]=[]),ve[re.elementsKey].push(r);r[re.parentKey]=ve,ve=r}function tv(t){re.ignoreText||!t.trim()&&!re.captureSpacesBetweenElements||(re.trim&&(t=t.trim()),re.nativeType&&(t=jm(t)),re.sanitize&&(t=t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),Yi("text",t))}function rv(t){re.ignoreComment||(re.trim&&(t=t.trim()),Yi("comment",t))}function nv(t){var e=ve[re.parentKey];re.addParent||delete ve[re.parentKey],ve=e}function iv(t){re.ignoreCdata||(re.trim&&(t=t.trim()),Yi("cdata",t))}function sv(t){re.ignoreDoctype||(t=t.replace(/^ /,""),re.trim&&(t=t.trim()),Yi("doctype",t))}function ov(t){t.note=t}var Im=function(t,e){var r=Zw.parser(!0,{}),n={};if(ve=n,re=Qw(e),r.opt={strictEntities:!0},r.onopentag=ev,r.ontext=tv,r.oncomment=rv,r.onclosetag=nv,r.onerror=ov,r.oncdata=iv,r.ondoctype=sv,r.onprocessinginstruction=Jw,r.write(t).close(),n[re.elementsKey]){var i=n[re.elementsKey];delete n[re.elementsKey],n[re.elementsKey]=i,delete n.text}return n},jd=gc,av=Im;function lv(t){var e=jd.copyOptions(t);return jd.ensureSpacesExists(e),e}var uv=function(t,e){var r,n,i,s;return r=lv(e),n=av(t,r),s="compact"in r&&r.compact?"_parent":"parent","addParent"in r&&r.addParent?i=JSON.stringify(n,function(o,a){return o===s?"_":a},r.spaces):i=JSON.stringify(n,null,r.spaces),i.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},Te=gc,cv=mc.isArray,rt,nt;function fv(t){var e=Te.copyOptions(t);return Te.ensureFlagExists("ignoreDeclaration",e),Te.ensureFlagExists("ignoreInstruction",e),Te.ensureFlagExists("ignoreAttributes",e),Te.ensureFlagExists("ignoreText",e),Te.ensureFlagExists("ignoreComment",e),Te.ensureFlagExists("ignoreCdata",e),Te.ensureFlagExists("ignoreDoctype",e),Te.ensureFlagExists("compact",e),Te.ensureFlagExists("indentText",e),Te.ensureFlagExists("indentCdata",e),Te.ensureFlagExists("indentAttributes",e),Te.ensureFlagExists("indentInstruction",e),Te.ensureFlagExists("fullTagEmptyElement",e),Te.ensureFlagExists("noQuotesForNativeAttributes",e),Te.ensureSpacesExists(e),typeof e.spaces=="number"&&(e.spaces=Array(e.spaces+1).join(" ")),Te.ensureKeyExists("declaration",e),Te.ensureKeyExists("instruction",e),Te.ensureKeyExists("attributes",e),Te.ensureKeyExists("text",e),Te.ensureKeyExists("comment",e),Te.ensureKeyExists("cdata",e),Te.ensureKeyExists("doctype",e),Te.ensureKeyExists("type",e),Te.ensureKeyExists("name",e),Te.ensureKeyExists("elements",e),e}function Vt(t,e,r){return(!r&&t.spaces?`
|
||
`:"")+Array(e+1).join(t.spaces)}function Mo(t,e,r){if(e.ignoreAttributes)return"";"attributesFn"in e&&(t=e.attributesFn(t,nt,rt));var n,i,s,o,a=[];for(n in t)t.hasOwnProperty(n)&&t[n]!==null&&t[n]!==void 0&&(o=e.noQuotesForNativeAttributes&&typeof t[n]!="string"?"":'"',i=""+t[n],i=i.replace(/"/g,"""),s="attributeNameFn"in e?e.attributeNameFn(n,i,nt,rt):n,a.push(e.spaces&&e.indentAttributes?Vt(e,r+1,!1):" "),a.push(s+"="+o+("attributeValueFn"in e?e.attributeValueFn(i,n,nt,rt):i)+o));return t&&Object.keys(t).length&&e.spaces&&e.indentAttributes&&a.push(Vt(e,r,!1)),a.join("")}function Om(t,e,r){return rt=t,nt="xml",e.ignoreDeclaration?"":"<?xml"+Mo(t[e.attributesKey],e,r)+"?>"}function Dm(t,e,r){if(e.ignoreInstruction)return"";var n;for(n in t)if(t.hasOwnProperty(n))break;var i="instructionNameFn"in e?e.instructionNameFn(n,t[n],nt,rt):n;if(typeof t[n]=="object")return rt=t,nt=i,"<?"+i+Mo(t[n][e.attributesKey],e,r)+"?>";var s=t[n]?t[n]:"";return"instructionFn"in e&&(s=e.instructionFn(s,n,nt,rt)),"<?"+i+(s?" "+s:"")+"?>"}function Pm(t,e){return e.ignoreComment?"":"<!--"+("commentFn"in e?e.commentFn(t,nt,rt):t)+"-->"}function Lm(t,e){return e.ignoreCdata?"":"<![CDATA["+("cdataFn"in e?e.cdataFn(t,nt,rt):t.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function Fm(t,e){return e.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in e?e.doctypeFn(t,nt,rt):t)+">"}function yc(t,e){return e.ignoreText?"":(t=""+t,t=t.replace(/&/g,"&"),t=t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in e?e.textFn(t,nt,rt):t)}function dv(t,e){var r;if(t.elements&&t.elements.length)for(r=0;r<t.elements.length;++r)switch(t.elements[r][e.typeKey]){case"text":if(e.indentText)return!0;break;case"cdata":if(e.indentCdata)return!0;break;case"instruction":if(e.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function hv(t,e,r){rt=t,nt=t.name;var n=[],i="elementNameFn"in e?e.elementNameFn(t.name,t):t.name;n.push("<"+i),t[e.attributesKey]&&n.push(Mo(t[e.attributesKey],e,r));var s=t[e.elementsKey]&&t[e.elementsKey].length||t[e.attributesKey]&&t[e.attributesKey]["xml:space"]==="preserve";return s||("fullTagEmptyElementFn"in e?s=e.fullTagEmptyElementFn(t.name,t):s=e.fullTagEmptyElement),s?(n.push(">"),t[e.elementsKey]&&t[e.elementsKey].length&&(n.push(Bm(t[e.elementsKey],e,r+1)),rt=t,nt=t.name),n.push(e.spaces&&dv(t,e)?`
|
||
`+Array(r+1).join(e.spaces):""),n.push("</"+i+">")):n.push("/>"),n.join("")}function Bm(t,e,r,n){return t.reduce(function(i,s){var o=Vt(e,r,n&&!i);switch(s.type){case"element":return i+o+hv(s,e,r);case"comment":return i+o+Pm(s[e.commentKey],e);case"doctype":return i+o+Fm(s[e.doctypeKey],e);case"cdata":return i+(e.indentCdata?o:"")+Lm(s[e.cdataKey],e);case"text":return i+(e.indentText?o:"")+yc(s[e.textKey],e);case"instruction":var a={};return a[s[e.nameKey]]=s[e.attributesKey]?s:s[e.instructionKey],i+(e.indentInstruction?o:"")+Dm(a,e,r)}},"")}function Mm(t,e,r){var n;for(n in t)if(t.hasOwnProperty(n))switch(n){case e.parentKey:case e.attributesKey:break;case e.textKey:if(e.indentText||r)return!0;break;case e.cdataKey:if(e.indentCdata||r)return!0;break;case e.instructionKey:if(e.indentInstruction||r)return!0;break;case e.doctypeKey:case e.commentKey:return!0;default:return!0}return!1}function pv(t,e,r,n,i){rt=t,nt=e;var s="elementNameFn"in r?r.elementNameFn(e,t):e;if(typeof t>"u"||t===null||t==="")return"fullTagEmptyElementFn"in r&&r.fullTagEmptyElementFn(e,t)||r.fullTagEmptyElement?"<"+s+"></"+s+">":"<"+s+"/>";var o=[];if(e){if(o.push("<"+s),typeof t!="object")return o.push(">"+yc(t,r)+"</"+s+">"),o.join("");t[r.attributesKey]&&o.push(Mo(t[r.attributesKey],r,n));var a=Mm(t,r,!0)||t[r.attributesKey]&&t[r.attributesKey]["xml:space"]==="preserve";if(a||("fullTagEmptyElementFn"in r?a=r.fullTagEmptyElementFn(e,t):a=r.fullTagEmptyElement),a)o.push(">");else return o.push("/>"),o.join("")}return o.push(Um(t,r,n+1,!1)),rt=t,nt=e,e&&o.push((i?Vt(r,n,!1):"")+"</"+s+">"),o.join("")}function Um(t,e,r,n){var i,s,o,a=[];for(s in t)if(t.hasOwnProperty(s))for(o=cv(t[s])?t[s]:[t[s]],i=0;i<o.length;++i){switch(s){case e.declarationKey:a.push(Om(o[i],e,r));break;case e.instructionKey:a.push((e.indentInstruction?Vt(e,r,n):"")+Dm(o[i],e,r));break;case e.attributesKey:case e.parentKey:break;case e.textKey:a.push((e.indentText?Vt(e,r,n):"")+yc(o[i],e));break;case e.cdataKey:a.push((e.indentCdata?Vt(e,r,n):"")+Lm(o[i],e));break;case e.doctypeKey:a.push(Vt(e,r,n)+Fm(o[i],e));break;case e.commentKey:a.push(Vt(e,r,n)+Pm(o[i],e));break;default:a.push(Vt(e,r,n)+pv(o[i],s,e,r,Mm(o[i],e)))}n=n&&!a.length}return a.join("")}var zm=function(t,e){e=fv(e);var r=[];return rt=t,nt="_root_",e.compact?r.push(Um(t,e,0,!0)):(t[e.declarationKey]&&r.push(Om(t[e.declarationKey],e,0)),t[e.elementsKey]&&t[e.elementsKey].length&&r.push(Bm(t[e.elementsKey],e,0,!r.length))),r.join("")},mv=zm,gv=function(t,e){t instanceof Buffer&&(t=t.toString());var r=null;if(typeof t=="string")try{r=JSON.parse(t)}catch{throw new Error("The JSON structure is invalid")}else r=t;return mv(r,e)},yv=Im,wv=uv,vv=zm,xv=gv,Wm={xml2js:yv,xml2json:wv,js2xml:vv,json2xml:xv};const wc=t=>{switch(t.type){case void 0:case"element":const e=new _v(t.name,t.attributes),r=t.elements||[];for(const n of r){const i=wc(n);i!==void 0&&e.push(i)}return e;case"text":return t.text;default:return}};class bv extends ye{}class _v extends le{static fromXmlString(e){const r=Wm.xml2js(e,{compact:!1});return wc(r)}constructor(e,r){super(e),r&&this.root.push(new bv(r))}push(e){this.root.push(e)}}class Ev extends le{constructor(e){super(""),this._attr=e}prepForXml(e){return{_attr:this._attr}}}class Hm extends le{constructor(e,r){super(e),r&&(this.root=r.root)}}const gt=t=>{if(isNaN(t))throw new Error(`Invalid value '${t}' specified. Must be an integer.`);return Math.floor(t)},Uo=t=>{const e=gt(t);if(e<0)throw new Error(`Invalid value '${t}' specified. Must be a positive integer.`);return e},Km=(t,e)=>{const r=e*2;if(t.length!==r||isNaN(+`0x${t}`))throw new Error(`Invalid hex value '${t}'. Expected ${r} digit hex value`);return t},Rd=t=>Km(t,1),Gm=t=>{const e=t.slice(-2),r=t.substring(0,t.length-2);return`${Number(r)}${e}`},Vm=t=>{const e=Gm(t);if(parseFloat(e)<0)throw new Error(`Invalid value '${e}' specified. Expected a positive number.`);return e},Fn=t=>{if(t==="auto")return t;const e=t.charAt(0)==="#"?t.substring(1):t;return Km(e,3)},Kr=t=>typeof t=="string"?Gm(t):gt(t),Sv=t=>typeof t=="string"?Vm(t):Uo(t),Lt=t=>typeof t=="string"?Vm(t):Uo(t),Nv=Uo,kv=Uo,Tv=t=>t.toISOString();class ue extends le{constructor(e,r=!0){super(e),r!==!0&&this.root.push(new Ue({val:r}))}}class sl extends le{constructor(e,r){super(e),this.root.push(new Ue({val:Sv(r)}))}}class Tn extends le{constructor(e,r){super(e),this.root.push(new Ue({val:r}))}}const li=(t,e)=>new Rr({name:t,attributes:{value:{key:"w:val",value:e}}});class vc extends le{constructor(e,r){super(e),this.root.push(new Ue({val:r}))}}class Lr extends le{constructor(e,r){super(e),this.root.push(r)}}class Rr extends le{constructor({name:e,attributes:r,children:n}){super(e),r&&this.root.push(new Xi(r)),n&&this.root.push(...n)}}const Wt={START:"start",CENTER:"center",END:"end",BOTH:"both",MEDIUM_KASHIDA:"mediumKashida",DISTRIBUTE:"distribute",NUM_TAB:"numTab",HIGH_KASHIDA:"highKashida",LOW_KASHIDA:"lowKashida",THAI_DISTRIBUTE:"thaiDistribute",LEFT:"left",RIGHT:"right",JUSTIFIED:"both"};class Av extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{val:"w:val"})}}class Cv extends le{constructor(e){super("w:jc"),this.root.push(new Av({val:e}))}}class Pe extends le{constructor(e,{color:r,size:n,space:i,style:s}){super(e),this.root.push(new jv({style:s,color:r===void 0?void 0:Fn(r),size:n===void 0?void 0:Nv(n),space:i===void 0?void 0:kv(i)}))}}class jv extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{style:"w:val",color:"w:color",size:"w:sz",space:"w:space"})}}const xc={SINGLE:"single",DASH_DOT_STROKED:"dashDotStroked",DASHED:"dashed",DASH_SMALL_GAP:"dashSmallGap",DOT_DASH:"dotDash",DOT_DOT_DASH:"dotDotDash",DOTTED:"dotted",DOUBLE:"double",DOUBLE_WAVE:"doubleWave",INSET:"inset",NIL:"nil",NONE:"none",OUTSET:"outset",THICK:"thick",THICK_THIN_LARGE_GAP:"thickThinLargeGap",THICK_THIN_MEDIUM_GAP:"thickThinMediumGap",THICK_THIN_SMALL_GAP:"thickThinSmallGap",THIN_THICK_LARGE_GAP:"thinThickLargeGap",THIN_THICK_MEDIUM_GAP:"thinThickMediumGap",THIN_THICK_SMALL_GAP:"thinThickSmallGap",THIN_THICK_THIN_LARGE_GAP:"thinThickThinLargeGap",THIN_THICK_THIN_MEDIUM_GAP:"thinThickThinMediumGap",THIN_THICK_THIN_SMALL_GAP:"thinThickThinSmallGap",THREE_D_EMBOSS:"threeDEmboss",THREE_D_ENGRAVE:"threeDEngrave",TRIPLE:"triple",WAVE:"wave"};class Rv extends Lo{constructor(e){super("w:pBdr"),e.top&&this.root.push(new Pe("w:top",e.top)),e.bottom&&this.root.push(new Pe("w:bottom",e.bottom)),e.left&&this.root.push(new Pe("w:left",e.left)),e.right&&this.root.push(new Pe("w:right",e.right))}}class Iv extends le{constructor(){super("w:pBdr");const e=new Pe("w:bottom",{color:"auto",space:1,style:xc.SINGLE,size:6});this.root.push(e)}}class Ov extends le{constructor({start:e,end:r,left:n,right:i,hanging:s,firstLine:o}){super("w:ind"),this.root.push(new Xi({start:{key:"w:start",value:e===void 0?void 0:Kr(e)},end:{key:"w:end",value:r===void 0?void 0:Kr(r)},left:{key:"w:left",value:n===void 0?void 0:Kr(n)},right:{key:"w:right",value:i===void 0?void 0:Kr(i)},hanging:{key:"w:hanging",value:s===void 0?void 0:Lt(s)},firstLine:{key:"w:firstLine",value:o===void 0?void 0:Lt(o)}}))}}let Dv=class extends le{constructor(){super("w:br")}};const bc={BEGIN:"begin",END:"end",SEPARATE:"separate"};class _c extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{type:"w:fldCharType",dirty:"w:dirty"})}}class _s extends le{constructor(e){super("w:fldChar"),this.root.push(new _c({type:bc.BEGIN,dirty:e}))}}class Es extends le{constructor(e){super("w:fldChar"),this.root.push(new _c({type:bc.SEPARATE,dirty:e}))}}class Ss extends le{constructor(e){super("w:fldChar"),this.root.push(new _c({type:bc.END,dirty:e}))}}const Bn={DEFAULT:"default",PRESERVE:"preserve"};class Mn extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{space:"xml:space"})}}class Pv extends le{constructor(){super("w:instrText"),this.root.push(new Mn({space:Bn.PRESERVE})),this.root.push("PAGE")}}class Lv extends le{constructor(){super("w:instrText"),this.root.push(new Mn({space:Bn.PRESERVE})),this.root.push("NUMPAGES")}}class Fv extends le{constructor(){super("w:instrText"),this.root.push(new Mn({space:Bn.PRESERVE})),this.root.push("SECTIONPAGES")}}class Bv extends le{constructor(){super("w:instrText"),this.root.push(new Mn({space:Bn.PRESERVE})),this.root.push("SECTION")}}class Mv extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{fill:"w:fill",color:"w:color",type:"w:val"})}}class $m extends le{constructor({fill:e,color:r,type:n}){super("w:shd"),this.root.push(new Mv({fill:e===void 0?void 0:Fn(e),color:r===void 0?void 0:Fn(r),type:n}))}}class Uv extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date"})}}const zv={DOT:"dot"};class Wv extends le{constructor(e){super("w:em"),this.root.push(new Ue({val:e}))}}class Hv extends Wv{constructor(e=zv.DOT){super(e)}}class Kv extends le{constructor(e){super("w:spacing"),this.root.push(new Ue({val:Kr(e)}))}}class Gv extends le{constructor(e){super("w:color"),this.root.push(new Ue({val:Fn(e)}))}}class Vv extends le{constructor(e){super("w:highlight"),this.root.push(new Ue({val:e}))}}class $v extends le{constructor(e){super("w:highlightCs"),this.root.push(new Ue({val:e}))}}const qv=t=>new Rr({name:"w:lang",attributes:{value:{key:"w:val",value:t.value},eastAsia:{key:"w:eastAsia",value:t.eastAsia},bidirectional:{key:"w:bidi",value:t.bidirectional}}});class Id extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{ascii:"w:ascii",cs:"w:cs",eastAsia:"w:eastAsia",hAnsi:"w:hAnsi",hint:"w:hint"})}}class ol extends le{constructor(e,r){if(super("w:rFonts"),typeof e=="string"){const n=e;this.root.push(new Id({ascii:n,cs:n,eastAsia:n,hAnsi:n,hint:r}))}else{const n=e;this.root.push(new Id(n))}}}let qm=class extends le{constructor(e){super("w:vertAlign"),this.root.push(new Ue({val:e}))}};class Xv extends qm{constructor(){super("superscript")}}class Yv extends qm{constructor(){super("subscript")}}const Xm={SINGLE:"single",WORDS:"words",DOUBLE:"double",THICK:"thick",DOTTED:"dotted",DOTTEDHEAVY:"dottedHeavy",DASH:"dash",DASHEDHEAVY:"dashedHeavy",DASHLONG:"dashLong",DASHLONGHEAVY:"dashLongHeavy",DOTDASH:"dotDash",DASHDOTHEAVY:"dashDotHeavy",DOTDOTDASH:"dotDotDash",DASHDOTDOTHEAVY:"dashDotDotHeavy",WAVE:"wave",WAVYHEAVY:"wavyHeavy",WAVYDOUBLE:"wavyDouble",NONE:"none"};class Zv extends le{constructor(e=Xm.SINGLE,r){super("w:u"),this.root.push(new Ue({val:e,color:r===void 0?void 0:Fn(r)}))}}class tn extends Lo{constructor(e){var r,n;if(super("w:rPr"),!e)return;e.noProof!==void 0&&this.push(new ue("w:noProof",e.noProof)),e.bold!==void 0&&this.push(new ue("w:b",e.bold)),(e.boldComplexScript===void 0&&e.bold!==void 0||e.boldComplexScript)&&this.push(new ue("w:bCs",(r=e.boldComplexScript)!=null?r:e.bold)),e.italics!==void 0&&this.push(new ue("w:i",e.italics)),(e.italicsComplexScript===void 0&&e.italics!==void 0||e.italicsComplexScript)&&this.push(new ue("w:iCs",(n=e.italicsComplexScript)!=null?n:e.italics)),e.underline&&this.push(new Zv(e.underline.type,e.underline.color)),e.effect&&this.push(new Tn("w:effect",e.effect)),e.emphasisMark&&this.push(new Hv(e.emphasisMark.type)),e.color&&this.push(new Gv(e.color)),e.kern&&this.push(new sl("w:kern",e.kern)),e.position&&this.push(new Tn("w:position",e.position)),e.size!==void 0&&this.push(new sl("w:sz",e.size));const i=e.sizeComplexScript===void 0||e.sizeComplexScript===!0?e.size:e.sizeComplexScript;i&&this.push(new sl("w:szCs",i)),e.rightToLeft!==void 0&&this.push(new ue("w:rtl",e.rightToLeft)),e.smallCaps!==void 0?this.push(new ue("w:smallCaps",e.smallCaps)):e.allCaps!==void 0&&this.push(new ue("w:caps",e.allCaps)),e.strike!==void 0&&this.push(new ue("w:strike",e.strike)),e.doubleStrike!==void 0&&this.push(new ue("w:dstrike",e.doubleStrike)),e.subScript&&this.push(new Yv),e.superScript&&this.push(new Xv),e.style&&this.push(new Tn("w:rStyle",e.style)),e.font&&(typeof e.font=="string"?this.push(new ol(e.font)):"name"in e.font?this.push(new ol(e.font.name,e.font.hint)):this.push(new ol(e.font))),e.highlight&&this.push(new Vv(e.highlight));const s=e.highlightComplexScript===void 0||e.highlightComplexScript===!0?e.highlight:e.highlightComplexScript;s&&this.push(new $v(s)),e.characterSpacing&&this.push(new Kv(e.characterSpacing)),e.emboss!==void 0&&this.push(new ue("w:emboss",e.emboss)),e.imprint!==void 0&&this.push(new ue("w:imprint",e.imprint)),e.shading&&this.push(new $m(e.shading)),e.revision&&this.push(new Qv(e.revision)),e.border&&this.push(new Pe("w:bdr",e.border)),e.snapToGrid!==void 0&&this.push(new ue("w:snapToGrid",e.snapToGrid)),e.vanish&&this.push(new ue("w:vanish",e.vanish)),e.specVanish&&this.push(new ue("w:specVanish",e.vanish)),e.scale!==void 0&&this.push(new vc("w:w",e.scale)),e.language&&this.push(qv(e.language)),e.math&&this.push(new ue("w:oMath",e.math))}push(e){this.root.push(e)}}class Qv extends le{constructor(e){super("w:rPrChange"),this.root.push(new Uv({id:e.id,author:e.author,date:e.date})),this.addChildElement(new tn(e))}}class lu extends le{constructor(e){var r;super("w:t"),typeof e=="string"?(this.root.push(new Mn({space:Bn.PRESERVE})),this.root.push(e)):(this.root.push(new Mn({space:(r=e.space)!=null?r:Bn.DEFAULT})),this.root.push(e.text))}}const Ns={CURRENT:"CURRENT",TOTAL_PAGES:"TOTAL_PAGES",TOTAL_PAGES_IN_SECTION:"TOTAL_PAGES_IN_SECTION",CURRENT_SECTION:"SECTION"};class zo extends le{constructor(e){if(super("w:r"),se(this,"properties"),this.properties=new tn(e),this.root.push(this.properties),e.break)for(let r=0;r<e.break;r++)this.root.push(new Dv);if(e.children)for(const r of e.children){if(typeof r=="string"){switch(r){case Ns.CURRENT:this.root.push(new _s),this.root.push(new Pv),this.root.push(new Es),this.root.push(new Ss);break;case Ns.TOTAL_PAGES:this.root.push(new _s),this.root.push(new Lv),this.root.push(new Es),this.root.push(new Ss);break;case Ns.TOTAL_PAGES_IN_SECTION:this.root.push(new _s),this.root.push(new Fv),this.root.push(new Es),this.root.push(new Ss);break;case Ns.CURRENT_SECTION:this.root.push(new _s),this.root.push(new Bv),this.root.push(new Es),this.root.push(new Ss);break;default:this.root.push(new lu(r));break}continue}this.root.push(r)}else e.text&&this.root.push(new lu(e.text))}}class et extends zo{constructor(e){if(typeof e=="string")return super({}),this.root.push(new lu(e)),this;super(e)}}let Jv="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",e1=(t,e=21)=>(r=e)=>{let n="",i=r;for(;i--;)n+=t[Math.random()*t.length|0];return n},t1=(t=21)=>{let e="",r=t;for(;r--;)e+=Jv[Math.random()*64|0];return e};const It=t=>Math.floor(t*72*20),Ec=(t=0)=>{let e=t;return()=>++e},r1=()=>Ec(),n1=()=>Ec(1),i1=()=>Ec(),s1=()=>t1().toLowerCase(),ui=t=>e1("1234567890abcdef",t)(),o1=()=>`${ui(8)}-${ui(4)}-${ui(4)}-${ui(4)}-${ui(12)}`;class a1 extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{id:"w:id",initials:"w:initials",author:"w:author",date:"w:date"})}}class l1 extends ye{constructor(){super(...arguments),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"})}}class u1 extends le{constructor({id:e,initials:r,author:n,date:i=new Date,children:s}){super("w:comment"),this.root.push(new a1({id:e,initials:r,author:n,date:i.toISOString()}));for(const o of s)this.root.push(o)}}class c1 extends le{constructor({children:e}){super("w:comments"),this.root.push(new l1({"xmlns:cx":"http://schemas.microsoft.com/office/drawing/2014/chartex","xmlns:cx1":"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex","xmlns:cx2":"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex","xmlns:cx3":"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex","xmlns:cx4":"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex","xmlns:cx5":"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex","xmlns:cx6":"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex","xmlns:cx7":"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex","xmlns:cx8":"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:aink":"http://schemas.microsoft.com/office/drawing/2016/ink","xmlns:am3d":"http://schemas.microsoft.com/office/drawing/2017/model3d","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:m":"http://schemas.openxmlformats.org/officeDocument/2006/math","xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:wp14":"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing","xmlns:wp":"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing","xmlns:w10":"urn:schemas-microsoft-com:office:word","xmlns:w":"http://schemas.openxmlformats.org/wordprocessingml/2006/main","xmlns:w14":"http://schemas.microsoft.com/office/word/2010/wordml","xmlns:w15":"http://schemas.microsoft.com/office/word/2012/wordml","xmlns:w16cex":"http://schemas.microsoft.com/office/word/2018/wordml/cex","xmlns:w16cid":"http://schemas.microsoft.com/office/word/2016/wordml/cid","xmlns:w16":"http://schemas.microsoft.com/office/word/2018/wordml","xmlns:w16sdtdh":"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash","xmlns:w16se":"http://schemas.microsoft.com/office/word/2015/wordml/symex","xmlns:wpg":"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup","xmlns:wpi":"http://schemas.microsoft.com/office/word/2010/wordprocessingInk","xmlns:wne":"http://schemas.microsoft.com/office/word/2006/wordml","xmlns:wps":"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}));for(const r of e)this.root.push(new u1(r))}}class f1 extends le{constructor(){super("w:pageBreakBefore")}}const uu={AT_LEAST:"atLeast",EXACTLY:"exactly",EXACT:"exact",AUTO:"auto"};class d1 extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{after:"w:after",before:"w:before",line:"w:line",lineRule:"w:lineRule"})}}class h1 extends le{constructor(e){super("w:spacing"),this.root.push(new d1(e))}}let ks=class extends le{constructor(e){super("w:pStyle"),this.root.push(new Ue({val:e}))}};class p1 extends le{constructor(e){super("w:tabs");for(const r of e)this.root.push(new g1(r))}}const Od={LEFT:"left",RIGHT:"right",CENTER:"center",BAR:"bar",CLEAR:"clear",DECIMAL:"decimal",END:"end",NUM:"num",START:"start"};class m1 extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{val:"w:val",pos:"w:pos",leader:"w:leader"})}}class g1 extends le{constructor({type:e,position:r,leader:n}){super("w:tab"),this.root.push(new m1({val:e,pos:r,leader:n}))}}class al extends le{constructor(e,r){super("w:numPr"),this.root.push(new y1(r)),this.root.push(new w1(e))}}class y1 extends le{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 Ue({val:e}))}}class w1 extends le{constructor(e){super("w:numId"),this.root.push(new Ue({val:typeof e=="string"?`{${e}}`:e}))}}class v1 extends le{constructor(){super(...arguments),se(this,"fileChild",Symbol())}}class x1 extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{id:"Id",type:"Type",target:"Target",targetMode:"TargetMode"})}}const b1={EXTERNAL:"External"};class _1 extends le{constructor(e,r,n,i){super("Relationship"),this.root.push(new x1({id:e,type:r,target:n,targetMode:i}))}}class E1 extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{id:"r:id",history:"w:history",anchor:"w:anchor"})}}class S1 extends le{constructor(e,r,n){super("w:hyperlink"),se(this,"linkId"),this.linkId=r;const i={history:1,anchor:n||void 0,id:n?void 0:`rId${this.linkId}`},s=new E1(i);this.root.push(s),e.forEach(o=>{this.root.push(o)})}}class N1 extends le{constructor(e){super("w:externalHyperlink"),this.options=e}}class k1 extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{id:"w:id",name:"w:name"})}}class T1 extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{id:"w:id"})}}class A1{constructor(e){se(this,"bookmarkUniqueNumericId",i1()),se(this,"start"),se(this,"children"),se(this,"end");const r=this.bookmarkUniqueNumericId();this.start=new C1(e.id,r),this.children=e.children,this.end=new j1(r)}}class C1 extends le{constructor(e,r){super("w:bookmarkStart");const n=new k1({name:e,id:r});this.root.push(n)}}class j1 extends le{constructor(e){super("w:bookmarkEnd");const r=new T1({id:e});this.root.push(r)}}class R1 extends le{constructor(e){super("w:outlineLvl"),this.level=e,this.root.push(new Ue({val:e}))}}class I1 extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{verticalAlign:"w:val"})}}class O1 extends le{constructor(e){super("w:vAlign"),this.root.push(new I1({verticalAlign:e}))}}const An={DEFAULT:"default",FIRST:"first",EVEN:"even"};class D1 extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{type:"w:type",id:"r:id"})}}const Dd={HEADER:"w:headerReference",FOOTER:"w:footerReference"};class ll extends le{constructor(e,r){super(e),this.root.push(new D1({type:r.type||An.DEFAULT,id:`rId${r.id}`}))}}class P1 extends le{constructor({space:e,count:r,separate:n,equalWidth:i,children:s}){super("w:cols"),this.root.push(new Xi({space:{key:"w:space",value:e===void 0?void 0:Lt(e)},count:{key:"w:num",value:r===void 0?void 0:gt(r)},separate:{key:"w:sep",value:n},equalWidth:{key:"w:equalWidth",value:i}})),!i&&s&&s.forEach(o=>this.addChildElement(o))}}class L1 extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{type:"w:type",linePitch:"w:linePitch",charSpace:"w:charSpace"})}}class F1 extends le{constructor(e,r,n){super("w:docGrid"),this.root.push(new L1({type:n,linePitch:gt(e),charSpace:r?gt(r):void 0}))}}const B1=({countBy:t,start:e,restart:r,distance:n})=>new Rr({name:"w:lnNumType",attributes:{countBy:{key:"w:countBy",value:t===void 0?void 0:gt(t)},start:{key:"w:start",value:e===void 0?void 0:gt(e)},restart:{key:"w:restart",value:r},distance:{key:"w:distance",value:n===void 0?void 0:Lt(n)}}});class Pd extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"})}}class M1 extends Lo{constructor(e){if(super("w:pgBorders"),!e)return this;e.pageBorders?this.root.push(new Pd({display:e.pageBorders.display,offsetFrom:e.pageBorders.offsetFrom,zOrder:e.pageBorders.zOrder})):this.root.push(new Pd({})),e.pageBorderTop&&this.root.push(new Pe("w:top",e.pageBorderTop)),e.pageBorderLeft&&this.root.push(new Pe("w:left",e.pageBorderLeft)),e.pageBorderBottom&&this.root.push(new Pe("w:bottom",e.pageBorderBottom)),e.pageBorderRight&&this.root.push(new Pe("w:right",e.pageBorderRight))}}class U1 extends le{constructor(e,r,n,i,s,o,a){super("w:pgMar"),this.root.push(new Xi({top:{key:"w:top",value:Kr(e)},right:{key:"w:right",value:Lt(r)},bottom:{key:"w:bottom",value:Kr(n)},left:{key:"w:left",value:Lt(i)},header:{key:"w:header",value:Lt(s)},footer:{key:"w:footer",value:Lt(o)},gutter:{key:"w:gutter",value:Lt(a)}}))}}class z1 extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{start:"w:start",formatType:"w:fmt",separator:"w:chapSep"})}}class W1 extends le{constructor({start:e,formatType:r,separator:n}){super("w:pgNumType"),this.root.push(new z1({start:e===void 0?void 0:gt(e),formatType:r,separator:n}))}}const Ym={PORTRAIT:"portrait",LANDSCAPE:"landscape"};class H1 extends le{constructor(e,r,n){super("w:pgSz");const i=n===Ym.LANDSCAPE,s=Lt(e),o=Lt(r);this.root.push(new Xi({width:{key:"w:w",value:i?o:s},height:{key:"w:h",value:i?s:o},orientation:{key:"w:orient",value:n}}))}}class K1 extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{val:"w:val"})}}class G1 extends le{constructor(e){super("w:textDirection"),this.root.push(new K1({val:e}))}}class V1 extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{val:"w:val"})}}class $1 extends le{constructor(e){super("w:type"),this.root.push(new V1({val:e}))}}const Fr={TOP:1440,RIGHT:1440,BOTTOM:1440,LEFT:1440,HEADER:708,FOOTER:708,GUTTER:0},ul={WIDTH:11906,HEIGHT:16838,ORIENTATION:Ym.PORTRAIT};class q1 extends le{constructor({page:{size:{width:e=ul.WIDTH,height:r=ul.HEIGHT,orientation:n=ul.ORIENTATION}={},margin:{top:i=Fr.TOP,right:s=Fr.RIGHT,bottom:o=Fr.BOTTOM,left:a=Fr.LEFT,header:l=Fr.HEADER,footer:h=Fr.FOOTER,gutter:g=Fr.GUTTER}={},pageNumbers:v={},borders:y,textDirection:m}={},grid:{linePitch:N=360,charSpace:b,type:A}={},headerWrapperGroup:d={},footerWrapperGroup:p={},lineNumbers:E,titlePage:C,verticalAlign:O,column:H,type:U}={}){super("w:sectPr"),this.addHeaderFooterGroup(Dd.HEADER,d),this.addHeaderFooterGroup(Dd.FOOTER,p),U&&this.root.push(new $1(U)),this.root.push(new H1(e,r,n)),this.root.push(new U1(i,s,o,a,l,h,g)),y&&this.root.push(new M1(y)),E&&this.root.push(B1(E)),this.root.push(new W1(v)),H&&this.root.push(new P1(H)),O&&this.root.push(new O1(O)),C!==void 0&&this.root.push(new ue("w:titlePg",C)),m&&this.root.push(new G1(m)),this.root.push(new F1(N,b,A))}addHeaderFooterGroup(e,r){r.default&&this.root.push(new ll(e,{type:An.DEFAULT,id:r.default.View.ReferenceId})),r.first&&this.root.push(new ll(e,{type:An.FIRST,id:r.first.View.ReferenceId})),r.even&&this.root.push(new ll(e,{type:An.EVEN,id:r.even.View.ReferenceId}))}}class X1 extends le{constructor(){super("w:body"),se(this,"sections",[])}addSection(e){const r=this.sections.pop();this.root.push(this.createSectionParagraph(r)),this.sections.push(new q1(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 r=new qe({}),n=new Un({});return n.push(e),r.addChildElement(n),r}}class Zi extends ye{constructor(){super(...arguments),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",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type",cx:"xmlns:cx",cx1:"xmlns:cx1",cx2:"xmlns:cx2",cx3:"xmlns:cx3",cx4:"xmlns:cx4",cx5:"xmlns:cx5",cx6:"xmlns:cx6",cx7:"xmlns:cx7",cx8:"xmlns:cx8",aink:"xmlns:aink",am3d:"xmlns:am3d",w16cex:"xmlns:w16cex",w16cid:"xmlns:w16cid",w16:"xmlns:w16",w16sdtdh:"xmlns:w16sdtdh",w16se:"xmlns:w16se"})}}class Y1 extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"})}}class Z1 extends le{constructor(e){super("w:background"),this.root.push(new Y1({color:e.color===void 0?void 0:Fn(e.color),themeColor:e.themeColor,themeShade:e.themeShade===void 0?void 0:Rd(e.themeShade),themeTint:e.themeTint===void 0?void 0:Rd(e.themeTint)}))}}class Q1 extends le{constructor(e){super("w:document"),se(this,"body"),this.root.push(new Zi({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",aink:"http://schemas.microsoft.com/office/drawing/2016/ink",am3d:"http://schemas.microsoft.com/office/drawing/2017/model3d",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex",Ignorable:"w14 w15 wp14"})),this.body=new X1,e.background&&this.root.push(new Z1(e.background)),this.root.push(this.body)}add(e){return this.body.push(e),this}get Body(){return this.body}}class J1 extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{xmlns:"xmlns"})}}class Xn extends le{constructor(){super("Relationships"),this.root.push(new J1({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}createRelationship(e,r,n,i){const s=new _1(`rId${e}`,r,n,i);return this.root.push(s),s}get RelationshipCount(){return this.root.length-1}}class Zm{constructor(e){se(this,"document"),se(this,"relationships"),this.document=new Q1(e),this.relationships=new Xn}get View(){return this.document}get Relationships(){return this.relationships}}class ex extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{val:"w:val"})}}class tx extends le{constructor(){super("w:wordWrap"),this.root.push(new ex({val:0}))}}const rx=t=>{var e,r;return new Rr({name:"w:framePr",attributes:{anchorLock:{key:"w:anchorLock",value:t.anchorLock},dropCap:{key:"w:dropCap",value:t.dropCap},width:{key:"w:w",value:t.width},height:{key:"w:h",value:t.height},x:{key:"w:x",value:t.position?t.position.x:void 0},y:{key:"w:y",value:t.position?t.position.y:void 0},anchorHorizontal:{key:"w:hAnchor",value:t.anchor.horizontal},anchorVertical:{key:"w:vAnchor",value:t.anchor.vertical},spaceHorizontal:{key:"w:hSpace",value:(e=t.space)==null?void 0:e.horizontal},spaceVertical:{key:"w:vSpace",value:(r=t.space)==null?void 0:r.vertical},rule:{key:"w:hRule",value:t.rule},alignmentX:{key:"w:xAlign",value:t.alignment?t.alignment.x:void 0},alignmentY:{key:"w:yAlign",value:t.alignment?t.alignment.y:void 0},lines:{key:"w:lines",value:t.lines},wrap:{key:"w:wrap",value:t.wrap}}})};class Un extends Lo{constructor(e){var r,n;if(super("w:pPr"),se(this,"numberingReferences",[]),!e)return this;e.heading&&this.push(new ks(e.heading)),e.bullet&&this.push(new ks("ListParagraph")),e.numbering&&!e.style&&!e.heading&&(e.numbering.custom||this.push(new ks("ListParagraph"))),e.style&&this.push(new ks(e.style)),e.keepNext!==void 0&&this.push(new ue("w:keepNext",e.keepNext)),e.keepLines!==void 0&&this.push(new ue("w:keepLines",e.keepLines)),e.pageBreakBefore&&this.push(new f1),e.frame&&this.push(rx(e.frame)),e.widowControl!==void 0&&this.push(new ue("w:widowControl",e.widowControl)),e.bullet&&this.push(new al(1,e.bullet.level)),e.numbering?(this.numberingReferences.push({reference:e.numbering.reference,instance:(r=e.numbering.instance)!=null?r:0}),this.push(new al(`${e.numbering.reference}-${(n=e.numbering.instance)!=null?n:0}`,e.numbering.level))):e.numbering===!1&&this.push(new al(0,0)),e.border&&this.push(new Rv(e.border)),e.thematicBreak&&this.push(new Iv),e.shading&&this.push(new $m(e.shading)),e.wordWrap&&this.push(new tx),e.overflowPunctuation&&this.push(new ue("w:overflowPunct",e.overflowPunctuation));const i=[...e.rightTabStop!==void 0?[{type:Od.RIGHT,position:e.rightTabStop}]:[],...e.tabStops?e.tabStops:[],...e.leftTabStop!==void 0?[{type:Od.LEFT,position:e.leftTabStop}]:[]];i.length>0&&this.push(new p1(i)),e.bidirectional!==void 0&&this.push(new ue("w:bidi",e.bidirectional)),e.spacing&&this.push(new h1(e.spacing)),e.indent&&this.push(new Ov(e.indent)),e.contextualSpacing!==void 0&&this.push(new ue("w:contextualSpacing",e.contextualSpacing)),e.alignment&&this.push(new Cv(e.alignment)),e.outlineLevel!==void 0&&this.push(new R1(e.outlineLevel)),e.suppressLineNumbers!==void 0&&this.push(new ue("w:suppressLineNumbers",e.suppressLineNumbers)),e.autoSpaceEastAsianText!==void 0&&this.push(new ue("w:autoSpaceDN",e.autoSpaceEastAsianText)),e.run&&this.push(new tn(e.run))}push(e){this.root.push(e)}prepForXml(e){if(e.viewWrapper instanceof Zm)for(const r of this.numberingReferences)e.file.Numbering.createConcreteNumberingInstance(r.reference,r.instance);return super.prepForXml(e)}}class qe extends v1{constructor(e){if(super("w:p"),se(this,"properties"),typeof e=="string")return this.properties=new Un({}),this.root.push(this.properties),this.root.push(new et(e)),this;if(this.properties=new Un(e),this.root.push(this.properties),e.text&&this.root.push(new et(e.text)),e.children)for(const r of e.children){if(r instanceof A1){this.root.push(r.start);for(const n of r.children)this.root.push(n);this.root.push(r.end);continue}this.root.push(r)}}prepForXml(e){for(const r of this.root)if(r instanceof N1){const n=this.root.indexOf(r),i=new S1(r.options.children,s1());e.viewWrapper.Relationships.createRelationship(i.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",r.options.link,b1.EXTERNAL),this.root[n]=i}return super.prepForXml(e)}addRunToFront(e){return this.root.splice(1,0,e),this}}const nn={style:xc.NONE,size:0,color:"auto"},sn={style:xc.SINGLE,size:4,color:"auto"};class nx extends le{constructor(e){super("w:tblBorders"),e.top?this.root.push(new Pe("w:top",e.top)):this.root.push(new Pe("w:top",sn)),e.left?this.root.push(new Pe("w:left",e.left)):this.root.push(new Pe("w:left",sn)),e.bottom?this.root.push(new Pe("w:bottom",e.bottom)):this.root.push(new Pe("w:bottom",sn)),e.right?this.root.push(new Pe("w:right",e.right)):this.root.push(new Pe("w:right",sn)),e.insideHorizontal?this.root.push(new Pe("w:insideH",e.insideHorizontal)):this.root.push(new Pe("w:insideH",sn)),e.insideVertical?this.root.push(new Pe("w:insideV",e.insideVertical)):this.root.push(new Pe("w:insideV",sn))}}se(nx,"NONE",{top:nn,bottom:nn,left:nn,right:nn,insideHorizontal:nn,insideVertical:nn});class ix extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class sx extends le{constructor(){super("Properties"),this.root.push(new ix({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}}class ox extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{xmlns:"xmlns"})}}class ax extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{contentType:"ContentType",extension:"Extension"})}}class Qt extends le{constructor(e,r){super("Default"),this.root.push(new ax({contentType:e,extension:r}))}}class lx extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{contentType:"ContentType",partName:"PartName"})}}class Et extends le{constructor(e,r){super("Override"),this.root.push(new lx({contentType:e,partName:r}))}}class ux extends le{constructor(){super("Types"),this.root.push(new ox({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(new Qt("image/png","png")),this.root.push(new Qt("image/jpeg","jpeg")),this.root.push(new Qt("image/jpeg","jpg")),this.root.push(new Qt("image/bmp","bmp")),this.root.push(new Qt("image/gif","gif")),this.root.push(new Qt("image/svg+xml","svg")),this.root.push(new Qt("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(new Qt("application/xml","xml")),this.root.push(new Qt("application/vnd.openxmlformats-officedocument.obfuscatedFont","odttf")),this.root.push(new Et("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(new Et("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(new Et("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(new Et("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(new Et("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(new Et("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(new Et("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(new Et("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml")),this.root.push(new Et("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml","/word/comments.xml")),this.root.push(new Et("application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml","/word/fontTable.xml"))}addFooter(e){this.root.push(new Et("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${e}.xml`))}addHeader(e){this.root.push(new Et("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${e}.xml`))}}class cx extends le{constructor(e){super("cp:coreProperties"),this.root.push(new Zi({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"})),e.title&&this.root.push(new Lr("dc:title",e.title)),e.subject&&this.root.push(new Lr("dc:subject",e.subject)),e.creator&&this.root.push(new Lr("dc:creator",e.creator)),e.keywords&&this.root.push(new Lr("cp:keywords",e.keywords)),e.description&&this.root.push(new Lr("dc:description",e.description)),e.lastModifiedBy&&this.root.push(new Lr("cp:lastModifiedBy",e.lastModifiedBy)),e.revision&&this.root.push(new Lr("cp:revision",String(e.revision))),this.root.push(new Ld("dcterms:created")),this.root.push(new Ld("dcterms:modified"))}}class Ld extends le{constructor(e){super(e),this.root.push(new Zi({type:"dcterms:W3CDTF"})),this.root.push(Tv(new Date))}}class fx extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class dx extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{fmtid:"fmtid",pid:"pid",name:"name"})}}class hx extends le{constructor(e,r){super("property"),this.root.push(new dx({fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e.toString(),name:r.name})),this.root.push(new px(r.value))}}class px extends le{constructor(e){super("vt:lpwstr"),this.root.push(e)}}class mx extends le{constructor(e){super("Properties"),se(this,"nextId"),se(this,"properties",[]),this.root.push(new fx({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"})),this.nextId=2;for(const r of e)this.addCustomProperty(r)}prepForXml(e){return this.properties.forEach(r=>this.root.push(r)),super.prepForXml(e)}addCustomProperty(e){this.properties.push(new hx(this.nextId++,e))}}class gx extends ye{constructor(){super(...arguments),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"})}}let yx=class extends Hm{constructor(e,r){super("w:ftr",r),se(this,"refId"),this.refId=e,r||this.root.push(new gx({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)}};class wx{constructor(e,r,n){se(this,"footer"),se(this,"relationships"),this.media=e,this.footer=new yx(r,n),this.relationships=new Xn}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}}class vx extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{type:"w:type",id:"w:id"})}}class xx extends le{constructor(){super("w:footnoteRef")}}class bx extends zo{constructor(){super({style:"FootnoteReference"}),this.root.push(new xx)}}const Fd={SEPERATOR:"separator",CONTINUATION_SEPERATOR:"continuationSeparator"};class cl extends le{constructor(e){super("w:footnote"),this.root.push(new vx({type:e.type,id:e.id}));for(let r=0;r<e.children.length;r++){const n=e.children[r];r===0&&n.addRunToFront(new bx),this.root.push(n)}}}class _x extends le{constructor(){super("w:continuationSeparator")}}class Ex extends zo{constructor(){super({}),this.root.push(new _x)}}class Sx extends le{constructor(){super("w:separator")}}class Nx extends zo{constructor(){super({}),this.root.push(new Sx)}}class kx extends ye{constructor(){super(...arguments),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"})}}class Tx extends le{constructor(){super("w:footnotes"),this.root.push(new kx({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 cl({id:-1,type:Fd.SEPERATOR,children:[new qe({spacing:{after:0,line:240,lineRule:uu.AUTO},children:[new Nx]})]});this.root.push(e);const r=new cl({id:0,type:Fd.CONTINUATION_SEPERATOR,children:[new qe({spacing:{after:0,line:240,lineRule:uu.AUTO},children:[new Ex]})]});this.root.push(r)}createFootNote(e,r){const n=new cl({id:e,children:r});this.root.push(n)}}class Ax{constructor(){se(this,"footnotess"),se(this,"relationships"),this.footnotess=new Tx,this.relationships=new Xn}get View(){return this.footnotess}get Relationships(){return this.relationships}}class Cx extends ye{constructor(){super(...arguments),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"})}}let jx=class extends Hm{constructor(e,r){super("w:hdr",r),se(this,"refId"),this.refId=e,r||this.root.push(new Cx({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)}};class Rx{constructor(e,r,n){se(this,"header"),se(this,"relationships"),this.media=e,this.header=new jx(r,n),this.relationships=new Xn}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}}class Ix{constructor(){se(this,"map"),this.map=new Map}addImage(e,r){this.map.set(e,r)}get Array(){return Array.from(this.map.values())}}const Jt={DECIMAL:"decimal",UPPER_ROMAN:"upperRoman",LOWER_ROMAN:"lowerRoman",UPPER_LETTER:"upperLetter",LOWER_LETTER:"lowerLetter",ORDINAL:"ordinal",CARDINAL_TEXT:"cardinalText",ORDINAL_TEXT:"ordinalText",HEX:"hex",CHICAGO:"chicago",IDEOGRAPH__DIGITAL:"ideographDigital",JAPANESE_COUNTING:"japaneseCounting",AIUEO:"aiueo",IROHA:"iroha",DECIMAL_FULL_WIDTH:"decimalFullWidth",DECIMAL_HALF_WIDTH:"decimalHalfWidth",JAPANESE_LEGAL:"japaneseLegal",JAPANESE_DIGITAL_TEN_THOUSAND:"japaneseDigitalTenThousand",DECIMAL_ENCLOSED_CIRCLE:"decimalEnclosedCircle",DECIMAL_FULL_WIDTH2:"decimalFullWidth2",AIUEO_FULL_WIDTH:"aiueoFullWidth",IROHA_FULL_WIDTH:"irohaFullWidth",DECIMAL_ZERO:"decimalZero",BULLET:"bullet",GANADA:"ganada",CHOSUNG:"chosung",DECIMAL_ENCLOSED_FULLSTOP:"decimalEnclosedFullstop",DECIMAL_ENCLOSED_PARENTHESES:"decimalEnclosedParen",DECIMAL_ENCLOSED_CIRCLE_CHINESE:"decimalEnclosedCircleChinese",IDEOGRAPH_ENCLOSED_CIRCLE:"ideographEnclosedCircle",IDEOGRAPH_TRADITIONAL:"ideographTraditional",IDEOGRAPH_ZODIAC:"ideographZodiac",IDEOGRAPH_ZODIAC_TRADITIONAL:"ideographZodiacTraditional",TAIWANESE_COUNTING:"taiwaneseCounting",IDEOGRAPH_LEGAL_TRADITIONAL:"ideographLegalTraditional",TAIWANESE_COUNTING_THOUSAND:"taiwaneseCountingThousand",TAIWANESE_DIGITAL:"taiwaneseDigital",CHINESE_COUNTING:"chineseCounting",CHINESE_LEGAL_SIMPLIFIED:"chineseLegalSimplified",CHINESE_COUNTING_THOUSAND:"chineseCountingThousand",KOREAN_DIGITAL:"koreanDigital",KOREAN_COUNTING:"koreanCounting",KOREAN_LEGAL:"koreanLegal",KOREAN_DIGITAL2:"koreanDigital2",VIETNAMESE_COUNTING:"vietnameseCounting",RUSSIAN_LOWER:"russianLower",RUSSIAN_UPPER:"russianUpper",NONE:"none",NUMBER_IN_DASH:"numberInDash",HEBREW1:"hebrew1",HEBREW2:"hebrew2",ARABIC_ALPHA:"arabicAlpha",ARABIC_ABJAD:"arabicAbjad",HINDI_VOWELS:"hindiVowels",HINDI_CONSONANTS:"hindiConsonants",HINDI_NUMBERS:"hindiNumbers",HINDI_COUNTING:"hindiCounting",THAI_LETTERS:"thaiLetters",THAI_NUMBERS:"thaiNumbers",THAI_COUNTING:"thaiCounting",BAHT_TEXT:"bahtText",DOLLAR_TEXT:"dollarText",CUSTOM:"custom"};class Ox extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{ilvl:"w:ilvl",tentative:"w15:tentative"})}}class Dx extends le{constructor(e){super("w:numFmt"),this.root.push(new Ue({val:e}))}}class Px extends le{constructor(e){super("w:lvlText"),this.root.push(new Ue({val:e}))}}class Lx extends le{constructor(e){super("w:lvlJc"),this.root.push(new Ue({val:e}))}}class Fx extends le{constructor(e){super("w:suff"),this.root.push(new Ue({val:e}))}}class Bx extends le{constructor(){super("w:isLgl")}}class Mx extends le{constructor({level:e,format:r,text:n,alignment:i=Wt.START,start:s=1,style:o,suffix:a,isLegalNumberingStyle:l}){if(super("w:lvl"),se(this,"paragraphProperties"),se(this,"runProperties"),this.root.push(new vc("w:start",gt(s))),r&&this.root.push(new Dx(r)),a&&this.root.push(new Fx(a)),l&&this.root.push(new Bx),n&&this.root.push(new Px(n)),this.root.push(new Lx(i)),this.paragraphProperties=new Un(o&&o.paragraph),this.runProperties=new tn(o&&o.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 Ox({ilvl:gt(e),tentative:1}))}}class Ux extends Mx{}class zx extends le{constructor(e){super("w:multiLevelType"),this.root.push(new Ue({val:e}))}}class Wx extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"})}}class Bd extends le{constructor(e,r){super("w:abstractNum"),se(this,"id"),this.root.push(new Wx({abstractNumId:gt(e),restartNumberingAfterBreak:0})),this.root.push(new zx("hybridMultilevel")),this.id=e;for(const n of r)this.root.push(new Ux(n))}}class Hx extends le{constructor(e){super("w:abstractNumId"),this.root.push(new Ue({val:e}))}}class Kx extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{numId:"w:numId"})}}class Md extends le{constructor(e){if(super("w:num"),se(this,"numId"),se(this,"reference"),se(this,"instance"),this.numId=e.numId,this.reference=e.reference,this.instance=e.instance,this.root.push(new Kx({numId:gt(e.numId)})),this.root.push(new Hx(gt(e.abstractNumId))),e.overrideLevels&&e.overrideLevels.length)for(const r of e.overrideLevels)this.root.push(new Vx(r.num,r.start))}}class Gx extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{ilvl:"w:ilvl"})}}class Vx extends le{constructor(e,r){super("w:lvlOverride"),this.root.push(new Gx({ilvl:e})),r!==void 0&&this.root.push(new qx(r))}}class $x extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{val:"w:val"})}}class qx extends le{constructor(e){super("w:startOverride"),this.root.push(new $x({val:e}))}}class Xx extends le{constructor(e){super("w:numbering"),se(this,"abstractNumberingMap",new Map),se(this,"concreteNumberingMap",new Map),se(this,"referenceConfigMap",new Map),se(this,"abstractNumUniqueNumericId",r1()),se(this,"concreteNumUniqueNumericId",n1()),this.root.push(new Zi({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));const r=new Bd(this.abstractNumUniqueNumericId(),[{level:0,format:Jt.BULLET,text:"●",alignment:Wt.LEFT,style:{paragraph:{indent:{left:It(.5),hanging:It(.25)}}}},{level:1,format:Jt.BULLET,text:"○",alignment:Wt.LEFT,style:{paragraph:{indent:{left:It(1),hanging:It(.25)}}}},{level:2,format:Jt.BULLET,text:"■",alignment:Wt.LEFT,style:{paragraph:{indent:{left:2160,hanging:It(.25)}}}},{level:3,format:Jt.BULLET,text:"●",alignment:Wt.LEFT,style:{paragraph:{indent:{left:2880,hanging:It(.25)}}}},{level:4,format:Jt.BULLET,text:"○",alignment:Wt.LEFT,style:{paragraph:{indent:{left:3600,hanging:It(.25)}}}},{level:5,format:Jt.BULLET,text:"■",alignment:Wt.LEFT,style:{paragraph:{indent:{left:4320,hanging:It(.25)}}}},{level:6,format:Jt.BULLET,text:"●",alignment:Wt.LEFT,style:{paragraph:{indent:{left:5040,hanging:It(.25)}}}},{level:7,format:Jt.BULLET,text:"●",alignment:Wt.LEFT,style:{paragraph:{indent:{left:5760,hanging:It(.25)}}}},{level:8,format:Jt.BULLET,text:"●",alignment:Wt.LEFT,style:{paragraph:{indent:{left:6480,hanging:It(.25)}}}}]);this.concreteNumberingMap.set("default-bullet-numbering",new Md({numId:1,abstractNumId:r.id,reference:"default-bullet-numbering",instance:0,overrideLevels:[{num:0,start:1}]})),this.abstractNumberingMap.set("default-bullet-numbering",r);for(const n of e.config)this.abstractNumberingMap.set(n.reference,new Bd(this.abstractNumUniqueNumericId(),n.levels)),this.referenceConfigMap.set(n.reference,n.levels)}prepForXml(e){for(const r of this.abstractNumberingMap.values())this.root.push(r);for(const r of this.concreteNumberingMap.values())this.root.push(r);return super.prepForXml(e)}createConcreteNumberingInstance(e,r){const n=this.abstractNumberingMap.get(e);if(!n)return;const i=`${e}-${r}`;if(this.concreteNumberingMap.has(i))return;const s=this.referenceConfigMap.get(e),o=s&&s[0].start,a={numId:this.concreteNumUniqueNumericId(),abstractNumId:n.id,reference:e,instance:r,overrideLevels:[o&&Number.isInteger(o)?{num:0,start:o}:{num:0,start:1}]};this.concreteNumberingMap.set(i,new Md(a))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}}class Yx extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{version:"w:val",name:"w:name",uri:"w:uri"})}}class Zx extends le{constructor(e){super("w:compatSetting"),this.root.push(new Yx({version:e,uri:"http://schemas.microsoft.com/office/word",name:"compatibilityMode"}))}}class Qx extends le{constructor(e){super("w:compat"),e.version&&this.root.push(new Zx(e.version)),e.useSingleBorderforContiguousCells&&this.root.push(new ue("w:useSingleBorderforContiguousCells",e.useSingleBorderforContiguousCells)),e.wordPerfectJustification&&this.root.push(new ue("w:wpJustification",e.wordPerfectJustification)),e.noTabStopForHangingIndent&&this.root.push(new ue("w:noTabHangInd",e.noTabStopForHangingIndent)),e.noLeading&&this.root.push(new ue("w:noLeading",e.noLeading)),e.spaceForUnderline&&this.root.push(new ue("w:spaceForUL",e.spaceForUnderline)),e.noColumnBalance&&this.root.push(new ue("w:noColumnBalance",e.noColumnBalance)),e.balanceSingleByteDoubleByteWidth&&this.root.push(new ue("w:balanceSingleByteDoubleByteWidth",e.balanceSingleByteDoubleByteWidth)),e.noExtraLineSpacing&&this.root.push(new ue("w:noExtraLineSpacing",e.noExtraLineSpacing)),e.doNotLeaveBackslashAlone&&this.root.push(new ue("w:doNotLeaveBackslashAlone",e.doNotLeaveBackslashAlone)),e.underlineTrailingSpaces&&this.root.push(new ue("w:ulTrailSpace",e.underlineTrailingSpaces)),e.doNotExpandShiftReturn&&this.root.push(new ue("w:doNotExpandShiftReturn",e.doNotExpandShiftReturn)),e.spacingInWholePoints&&this.root.push(new ue("w:spacingInWholePoints",e.spacingInWholePoints)),e.lineWrapLikeWord6&&this.root.push(new ue("w:lineWrapLikeWord6",e.lineWrapLikeWord6)),e.printBodyTextBeforeHeader&&this.root.push(new ue("w:printBodyTextBeforeHeader",e.printBodyTextBeforeHeader)),e.printColorsBlack&&this.root.push(new ue("w:printColBlack",e.printColorsBlack)),e.spaceWidth&&this.root.push(new ue("w:wpSpaceWidth",e.spaceWidth)),e.showBreaksInFrames&&this.root.push(new ue("w:showBreaksInFrames",e.showBreaksInFrames)),e.subFontBySize&&this.root.push(new ue("w:subFontBySize",e.subFontBySize)),e.suppressBottomSpacing&&this.root.push(new ue("w:suppressBottomSpacing",e.suppressBottomSpacing)),e.suppressTopSpacing&&this.root.push(new ue("w:suppressTopSpacing",e.suppressTopSpacing)),e.suppressSpacingAtTopOfPage&&this.root.push(new ue("w:suppressSpacingAtTopOfPage",e.suppressSpacingAtTopOfPage)),e.suppressTopSpacingWP&&this.root.push(new ue("w:suppressTopSpacingWP",e.suppressTopSpacingWP)),e.suppressSpBfAfterPgBrk&&this.root.push(new ue("w:suppressSpBfAfterPgBrk",e.suppressSpBfAfterPgBrk)),e.swapBordersFacingPages&&this.root.push(new ue("w:swapBordersFacingPages",e.swapBordersFacingPages)),e.convertMailMergeEsc&&this.root.push(new ue("w:convMailMergeEsc",e.convertMailMergeEsc)),e.truncateFontHeightsLikeWP6&&this.root.push(new ue("w:truncateFontHeightsLikeWP6",e.truncateFontHeightsLikeWP6)),e.macWordSmallCaps&&this.root.push(new ue("w:mwSmallCaps",e.macWordSmallCaps)),e.usePrinterMetrics&&this.root.push(new ue("w:usePrinterMetrics",e.usePrinterMetrics)),e.doNotSuppressParagraphBorders&&this.root.push(new ue("w:doNotSuppressParagraphBorders",e.doNotSuppressParagraphBorders)),e.wrapTrailSpaces&&this.root.push(new ue("w:wrapTrailSpaces",e.wrapTrailSpaces)),e.footnoteLayoutLikeWW8&&this.root.push(new ue("w:footnoteLayoutLikeWW8",e.footnoteLayoutLikeWW8)),e.shapeLayoutLikeWW8&&this.root.push(new ue("w:shapeLayoutLikeWW8",e.shapeLayoutLikeWW8)),e.alignTablesRowByRow&&this.root.push(new ue("w:alignTablesRowByRow",e.alignTablesRowByRow)),e.forgetLastTabAlignment&&this.root.push(new ue("w:forgetLastTabAlignment",e.forgetLastTabAlignment)),e.adjustLineHeightInTable&&this.root.push(new ue("w:adjustLineHeightInTable",e.adjustLineHeightInTable)),e.autoSpaceLikeWord95&&this.root.push(new ue("w:autoSpaceLikeWord95",e.autoSpaceLikeWord95)),e.noSpaceRaiseLower&&this.root.push(new ue("w:noSpaceRaiseLower",e.noSpaceRaiseLower)),e.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new ue("w:doNotUseHTMLParagraphAutoSpacing",e.doNotUseHTMLParagraphAutoSpacing)),e.layoutRawTableWidth&&this.root.push(new ue("w:layoutRawTableWidth",e.layoutRawTableWidth)),e.layoutTableRowsApart&&this.root.push(new ue("w:layoutTableRowsApart",e.layoutTableRowsApart)),e.useWord97LineBreakRules&&this.root.push(new ue("w:useWord97LineBreakRules",e.useWord97LineBreakRules)),e.doNotBreakWrappedTables&&this.root.push(new ue("w:doNotBreakWrappedTables",e.doNotBreakWrappedTables)),e.doNotSnapToGridInCell&&this.root.push(new ue("w:doNotSnapToGridInCell",e.doNotSnapToGridInCell)),e.selectFieldWithFirstOrLastCharacter&&this.root.push(new ue("w:selectFldWithFirstOrLastChar",e.selectFieldWithFirstOrLastCharacter)),e.applyBreakingRules&&this.root.push(new ue("w:applyBreakingRules",e.applyBreakingRules)),e.doNotWrapTextWithPunctuation&&this.root.push(new ue("w:doNotWrapTextWithPunct",e.doNotWrapTextWithPunctuation)),e.doNotUseEastAsianBreakRules&&this.root.push(new ue("w:doNotUseEastAsianBreakRules",e.doNotUseEastAsianBreakRules)),e.useWord2002TableStyleRules&&this.root.push(new ue("w:useWord2002TableStyleRules",e.useWord2002TableStyleRules)),e.growAutofit&&this.root.push(new ue("w:growAutofit",e.growAutofit)),e.useFELayout&&this.root.push(new ue("w:useFELayout",e.useFELayout)),e.useNormalStyleForList&&this.root.push(new ue("w:useNormalStyleForList",e.useNormalStyleForList)),e.doNotUseIndentAsNumberingTabStop&&this.root.push(new ue("w:doNotUseIndentAsNumberingTabStop",e.doNotUseIndentAsNumberingTabStop)),e.useAlternateEastAsianLineBreakRules&&this.root.push(new ue("w:useAltKinsokuLineBreakRules",e.useAlternateEastAsianLineBreakRules)),e.allowSpaceOfSameStyleInTable&&this.root.push(new ue("w:allowSpaceOfSameStyleInTable",e.allowSpaceOfSameStyleInTable)),e.doNotSuppressIndentation&&this.root.push(new ue("w:doNotSuppressIndentation",e.doNotSuppressIndentation)),e.doNotAutofitConstrainedTables&&this.root.push(new ue("w:doNotAutofitConstrainedTables",e.doNotAutofitConstrainedTables)),e.autofitToFirstFixedWidthCell&&this.root.push(new ue("w:autofitToFirstFixedWidthCell",e.autofitToFirstFixedWidthCell)),e.underlineTabInNumberingList&&this.root.push(new ue("w:underlineTabInNumList",e.underlineTabInNumberingList)),e.displayHangulFixedWidth&&this.root.push(new ue("w:displayHangulFixedWidth",e.displayHangulFixedWidth)),e.splitPgBreakAndParaMark&&this.root.push(new ue("w:splitPgBreakAndParaMark",e.splitPgBreakAndParaMark)),e.doNotVerticallyAlignCellWithSp&&this.root.push(new ue("w:doNotVertAlignCellWithSp",e.doNotVerticallyAlignCellWithSp)),e.doNotBreakConstrainedForcedTable&&this.root.push(new ue("w:doNotBreakConstrainedForcedTable",e.doNotBreakConstrainedForcedTable)),e.ignoreVerticalAlignmentInTextboxes&&this.root.push(new ue("w:doNotVertAlignInTxbx",e.ignoreVerticalAlignmentInTextboxes)),e.useAnsiKerningPairs&&this.root.push(new ue("w:useAnsiKerningPairs",e.useAnsiKerningPairs)),e.cachedColumnBalance&&this.root.push(new ue("w:cachedColBalance",e.cachedColumnBalance))}}class Jx extends ye{constructor(){super(...arguments),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"})}}class eb extends le{constructor(e){var r,n,i,s;super("w:settings"),this.root.push(new Jx({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 ue("w:displayBackgroundShape",!0)),e.trackRevisions!==void 0&&this.root.push(new ue("w:trackRevisions",e.trackRevisions)),e.evenAndOddHeaders!==void 0&&this.root.push(new ue("w:evenAndOddHeaders",e.evenAndOddHeaders)),e.updateFields!==void 0&&this.root.push(new ue("w:updateFields",e.updateFields)),e.defaultTabStop!==void 0&&this.root.push(new vc("w:defaultTabStop",e.defaultTabStop)),this.root.push(new Qx(zi(Ee({},(r=e.compatibility)!=null?r:{}),{version:(s=(i=(n=e.compatibility)==null?void 0:n.version)!=null?i:e.compatibilityModeVersion)!=null?s:15})))}}class Qm extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{val:"w:val"})}}class tb extends le{constructor(e){super("w:name"),this.root.push(new Qm({val:e}))}}class rb extends le{constructor(e){super("w:uiPriority"),this.root.push(new Qm({val:gt(e)}))}}class nb extends ye{constructor(){super(...arguments),se(this,"xmlKeys",{type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"})}}class Jm extends le{constructor(e,r){super("w:style"),this.root.push(new nb(e)),r.name&&this.root.push(new tb(r.name)),r.basedOn&&this.root.push(new Tn("w:basedOn",r.basedOn)),r.next&&this.root.push(new Tn("w:next",r.next)),r.link&&this.root.push(new Tn("w:link",r.link)),r.uiPriority!==void 0&&this.root.push(new rb(r.uiPriority)),r.semiHidden!==void 0&&this.root.push(new ue("w:semiHidden",r.semiHidden)),r.unhideWhenUsed!==void 0&&this.root.push(new ue("w:unhideWhenUsed",r.unhideWhenUsed)),r.quickFormat!==void 0&&this.root.push(new ue("w:qFormat",r.quickFormat))}}class Wo extends Jm{constructor(e){super({type:"paragraph",styleId:e.id},e),se(this,"paragraphProperties"),se(this,"runProperties"),this.paragraphProperties=new Un(e.paragraph),this.runProperties=new tn(e.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}}class Ho extends Jm{constructor(e){super({type:"character",styleId:e.id},Ee({uiPriority:99,unhideWhenUsed:!0},e)),se(this,"runProperties"),this.runProperties=new tn(e.run),this.root.push(this.runProperties)}}class Pr extends Wo{constructor(e){super(Ee({basedOn:"Normal",next:"Normal",quickFormat:!0},e))}}class ib extends Pr{constructor(e){super(Ee({id:"Title",name:"Title"},e))}}class sb extends Pr{constructor(e){super(Ee({id:"Heading1",name:"Heading 1"},e))}}class ob extends Pr{constructor(e){super(Ee({id:"Heading2",name:"Heading 2"},e))}}class ab extends Pr{constructor(e){super(Ee({id:"Heading3",name:"Heading 3"},e))}}class lb extends Pr{constructor(e){super(Ee({id:"Heading4",name:"Heading 4"},e))}}class ub extends Pr{constructor(e){super(Ee({id:"Heading5",name:"Heading 5"},e))}}class cb extends Pr{constructor(e){super(Ee({id:"Heading6",name:"Heading 6"},e))}}class fb extends Pr{constructor(e){super(Ee({id:"Strong",name:"Strong"},e))}}class db extends Wo{constructor(e){super(Ee({id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0},e))}}class hb extends Wo{constructor(e){super(Ee({id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:uu.AUTO}},run:{size:20}},e))}}class pb extends Ho{constructor(e){super(Ee({id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},e))}}class mb extends Ho{constructor(e){super(Ee({id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}},e))}}class gb extends Ho{constructor(e){super(Ee({id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:Xm.SINGLE}}},e))}}class cu extends le{constructor(e){if(super("w:styles"),e.initialStyles&&this.root.push(e.initialStyles),e.importedStyles)for(const r of e.importedStyles)this.root.push(r);if(e.paragraphStyles)for(const r of e.paragraphStyles)this.root.push(new Wo(r));if(e.characterStyles)for(const r of e.characterStyles)this.root.push(new Ho(r))}}class yb extends le{constructor(e){super("w:pPrDefault"),this.root.push(new Un(e))}}class wb extends le{constructor(e){super("w:rPrDefault"),this.root.push(new tn(e))}}class vb extends le{constructor(e){super("w:docDefaults"),se(this,"runPropertiesDefaults"),se(this,"paragraphPropertiesDefaults"),this.runPropertiesDefaults=new wb(e.run),this.paragraphPropertiesDefaults=new yb(e.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}}class xb{newInstance(e){const r=Wm.xml2js(e,{compact:!1});let n;for(const o of r.elements||[])o.name==="w:styles"&&(n=o);if(n===void 0)throw new Error("can not find styles element");const i=n.elements||[];return new cu({initialStyles:new Ev(n.attributes),importedStyles:i.map(o=>wc(o))})}}class Ud{newInstance(e={}){var r;return{initialStyles:new Zi({mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",Ignorable:"w14 w15"}),importedStyles:[new vb((r=e.document)!=null?r:{}),new ib(Ee({run:{size:56}},e.title)),new sb(Ee({run:{color:"2E74B5",size:32}},e.heading1)),new ob(Ee({run:{color:"2E74B5",size:26}},e.heading2)),new ab(Ee({run:{color:"1F4D78",size:24}},e.heading3)),new lb(Ee({run:{color:"2E74B5",italics:!0}},e.heading4)),new ub(Ee({run:{color:"2E74B5"}},e.heading5)),new cb(Ee({run:{color:"1F4D78"}},e.heading6)),new fb(Ee({run:{bold:!0}},e.strong)),new db(e.listParagraph||{}),new gb(e.hyperlink||{}),new pb(e.footnoteReference||{}),new hb(e.footnoteText||{}),new mb(e.footnoteTextChar||{})]}}}const Ts=({id:t,fontKey:e,subsetted:r},n)=>new Rr({name:n,attributes:Ee({id:{key:"r:id",value:t}},e?{fontKey:{key:"w:fontKey",value:`{${e}}`}}:{}),children:[...r?[new ue("w:subsetted",r)]:[]]}),bb=({name:t,altName:e,panose1:r,charset:n,family:i,notTrueType:s,pitch:o,sig:a,embedRegular:l,embedBold:h,embedItalic:g,embedBoldItalic:v})=>new Rr({name:"w:font",attributes:{name:{key:"w:name",value:t}},children:[...e?[li("w:altName",e)]:[],...r?[li("w:panose1",r)]:[],...n?[li("w:charset",n)]:[],...i?[li("w:family",i)]:[],...s?[new ue("w:notTrueType",s)]:[],...o?[li("w:pitch",o)]:[],...a?[new Rr({name:"w:sig",attributes:{usb0:{key:"w:usb0",value:a.usb0},usb1:{key:"w:usb1",value:a.usb1},usb2:{key:"w:usb2",value:a.usb2},usb3:{key:"w:usb3",value:a.usb3},csb0:{key:"w:csb0",value:a.csb0},csb1:{key:"w:csb1",value:a.csb1}}})]:[],...l?[Ts(l,"w:embedRegular")]:[],...h?[Ts(h,"w:embedBold")]:[],...g?[Ts(g,"w:embedItalic")]:[],...v?[Ts(v,"w:embedBoldItalic")]:[]]}),_b=({name:t,index:e,fontKey:r,characterSet:n})=>bb({name:t,sig:{usb0:"E0002AFF",usb1:"C000247B",usb2:"00000009",usb3:"00000000",csb0:"000001FF",csb1:"00000000"},charset:n,family:"auto",pitch:"variable",embedRegular:{fontKey:r,id:`rId${e}`}}),Eb=t=>new Rr({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:t.map((e,r)=>_b({name:e.name,index:r+1,fontKey:e.fontKey}))});class Sb{constructor(e){se(this,"fontTable"),se(this,"relationships"),se(this,"fontOptionsWithKey",[]),this.options=e,this.fontOptionsWithKey=e.map(r=>zi(Ee({},r),{fontKey:o1()})),this.fontTable=Eb(this.fontOptionsWithKey),this.relationships=new Xn;for(let r=0;r<e.length;r++)this.relationships.createRelationship(r+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/font",`fonts/${e[r].name}.odttf`)}get View(){return this.fontTable}get Relationships(){return this.relationships}}class Nb{constructor(e){se(this,"currentRelationshipId",1),se(this,"documentWrapper"),se(this,"headers",[]),se(this,"footers",[]),se(this,"coreProperties"),se(this,"numbering"),se(this,"media"),se(this,"fileRelationships"),se(this,"footnotesWrapper"),se(this,"settings"),se(this,"contentTypes"),se(this,"customProperties"),se(this,"appProperties"),se(this,"styles"),se(this,"comments"),se(this,"fontWrapper");var r,n,i,s,o,a,l,h;if(this.coreProperties=new cx(zi(Ee({},e),{creator:(r=e.creator)!=null?r:"Un-named",revision:(n=e.revision)!=null?n:1,lastModifiedBy:(i=e.lastModifiedBy)!=null?i:"Un-named"})),this.numbering=new Xx(e.numbering?e.numbering:{config:[]}),this.comments=new c1((s=e.comments)!=null?s:{children:[]}),this.fileRelationships=new Xn,this.customProperties=new mx((o=e.customProperties)!=null?o:[]),this.appProperties=new sx,this.footnotesWrapper=new Ax,this.contentTypes=new ux,this.documentWrapper=new Zm({background:e.background}),this.settings=new eb({compatibilityModeVersion:e.compatabilityModeVersion,compatibility:e.compatibility,evenAndOddHeaders:!!e.evenAndOddHeaderAndFooters,trackRevisions:(a=e.features)==null?void 0:a.trackRevisions,updateFields:(l=e.features)==null?void 0:l.updateFields,defaultTabStop:e.defaultTabStop}),this.media=new Ix,e.externalStyles!==void 0){const g=new xb;this.styles=g.newInstance(e.externalStyles)}else if(e.styles){const v=new Ud().newInstance(e.styles.default);this.styles=new cu(Ee(Ee({},v),e.styles))}else{const g=new Ud;this.styles=new cu(g.newInstance())}this.addDefaultRelationships();for(const g of e.sections)this.addSection(g);if(e.footnotes)for(const g in e.footnotes)this.footnotesWrapper.View.createFootNote(parseFloat(g),e.footnotes[g].children);this.fontWrapper=new Sb((h=e.fonts)!=null?h:[])}addSection({headers:e={},footers:r={},children:n,properties:i}){this.documentWrapper.View.Body.addSection(zi(Ee({},i),{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:r.default?this.createFooter(r.default):void 0,first:r.first?this.createFooter(r.first):void 0,even:r.even?this.createFooter(r.even):void 0}}));for(const s of n)this.documentWrapper.View.add(s)}createHeader(e){const r=new Rx(this.media,this.currentRelationshipId++);for(const n of e.options.children)r.add(n);return this.addHeaderToDocument(r),r}createFooter(e){const r=new wx(this.media,this.currentRelationshipId++);for(const n of e.options.children)r.add(n);return this.addFooterToDocument(r),r}addHeaderToDocument(e,r=An.DEFAULT){this.headers.push({header:e,type:r}),this.documentWrapper.Relationships.createRelationship(e.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",`header${this.headers.length}.xml`),this.contentTypes.addHeader(this.headers.length)}addFooterToDocument(e,r=An.DEFAULT){this.footers.push({footer:e,type:r}),this.documentWrapper.Relationships.createRelationship(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.createRelationship(1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument","word/document.xml"),this.fileRelationships.createRelationship(2,"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties","docProps/core.xml"),this.fileRelationships.createRelationship(3,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties","docProps/app.xml"),this.fileRelationships.createRelationship(4,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties","docProps/custom.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles","styles.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering","numbering.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes","footnotes.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings","settings.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments","comments.xml")}get Document(){return this.documentWrapper}get Styles(){return this.styles}get CoreProperties(){return this.coreProperties}get Numbering(){return this.numbering}get Media(){return this.media}get FileRelationships(){return this.fileRelationships}get Headers(){return this.headers.map(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 Settings(){return this.settings}get Comments(){return this.comments}get FontTable(){return this.fontWrapper}}function As(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var eg={exports:{}};(function(t,e){(function(r){t.exports=r()})(function(){return function r(n,i,s){function o(h,g){if(!i[h]){if(!n[h]){var v=typeof As=="function"&&As;if(!g&&v)return v(h,!0);if(a)return a(h,!0);var y=new Error("Cannot find module '"+h+"'");throw y.code="MODULE_NOT_FOUND",y}var m=i[h]={exports:{}};n[h][0].call(m.exports,function(N){var b=n[h][1][N];return o(b||N)},m,m.exports,r,n,i,s)}return i[h].exports}for(var a=typeof As=="function"&&As,l=0;l<s.length;l++)o(s[l]);return o}({1:[function(r,n,i){var s=r("./utils"),o=r("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(l){for(var h,g,v,y,m,N,b,A=[],d=0,p=l.length,E=p,C=s.getTypeOf(l)!=="string";d<l.length;)E=p-d,v=C?(h=l[d++],g=d<p?l[d++]:0,d<p?l[d++]:0):(h=l.charCodeAt(d++),g=d<p?l.charCodeAt(d++):0,d<p?l.charCodeAt(d++):0),y=h>>2,m=(3&h)<<4|g>>4,N=1<E?(15&g)<<2|v>>6:64,b=2<E?63&v:64,A.push(a.charAt(y)+a.charAt(m)+a.charAt(N)+a.charAt(b));return A.join("")},i.decode=function(l){var h,g,v,y,m,N,b=0,A=0,d="data:";if(l.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var p,E=3*(l=l.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(l.charAt(l.length-1)===a.charAt(64)&&E--,l.charAt(l.length-2)===a.charAt(64)&&E--,E%1!=0)throw new Error("Invalid base64 input, bad content length.");for(p=o.uint8array?new Uint8Array(0|E):new Array(0|E);b<l.length;)h=a.indexOf(l.charAt(b++))<<2|(y=a.indexOf(l.charAt(b++)))>>4,g=(15&y)<<4|(m=a.indexOf(l.charAt(b++)))>>2,v=(3&m)<<6|(N=a.indexOf(l.charAt(b++))),p[A++]=h,m!==64&&(p[A++]=g),N!==64&&(p[A++]=v);return p}},{"./support":30,"./utils":32}],2:[function(r,n,i){var s=r("./external"),o=r("./stream/DataWorker"),a=r("./stream/Crc32Probe"),l=r("./stream/DataLengthProbe");function h(g,v,y,m,N){this.compressedSize=g,this.uncompressedSize=v,this.crc32=y,this.compression=m,this.compressedContent=N}h.prototype={getContentWorker:function(){var g=new o(s.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("data_length")),v=this;return g.on("end",function(){if(this.streamInfo.data_length!==v.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),g},getCompressedWorker:function(){return new o(s.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},h.createWorkerFrom=function(g,v,y){return g.pipe(new a).pipe(new l("uncompressedSize")).pipe(v.compressWorker(y)).pipe(new l("compressedSize")).withStreamInfo("compression",v)},n.exports=h},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(r,n,i){var s=r("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new s("STORE compression")},uncompressWorker:function(){return new s("STORE decompression")}},i.DEFLATE=r("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(r,n,i){var s=r("./utils"),o=function(){for(var a,l=[],h=0;h<256;h++){a=h;for(var g=0;g<8;g++)a=1&a?3988292384^a>>>1:a>>>1;l[h]=a}return l}();n.exports=function(a,l){return a!==void 0&&a.length?s.getTypeOf(a)!=="string"?function(h,g,v,y){var m=o,N=y+v;h^=-1;for(var b=y;b<N;b++)h=h>>>8^m[255&(h^g[b])];return-1^h}(0|l,a,a.length,0):function(h,g,v,y){var m=o,N=y+v;h^=-1;for(var b=y;b<N;b++)h=h>>>8^m[255&(h^g.charCodeAt(b))];return-1^h}(0|l,a,a.length,0):0}},{"./utils":32}],5:[function(r,n,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(r,n,i){var s=null;s=typeof Promise<"u"?Promise:r("lie"),n.exports={Promise:s}},{lie:37}],7:[function(r,n,i){var s=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=r("pako"),a=r("./utils"),l=r("./stream/GenericWorker"),h=s?"uint8array":"array";function g(v,y){l.call(this,"FlateWorker/"+v),this._pako=null,this._pakoAction=v,this._pakoOptions=y,this.meta={}}i.magic="\b\0",a.inherits(g,l),g.prototype.processChunk=function(v){this.meta=v.meta,this._pako===null&&this._createPako(),this._pako.push(a.transformTo(h,v.data),!1)},g.prototype.flush=function(){l.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},g.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this._pako=null},g.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var v=this;this._pako.onData=function(y){v.push({data:y,meta:v.meta})}},i.compressWorker=function(v){return new g("Deflate",v)},i.uncompressWorker=function(){return new g("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(r,n,i){function s(m,N){var b,A="";for(b=0;b<N;b++)A+=String.fromCharCode(255&m),m>>>=8;return A}function o(m,N,b,A,d,p){var E,C,O=m.file,H=m.compression,U=p!==h.utf8encode,G=a.transformTo("string",p(O.name)),j=a.transformTo("string",h.utf8encode(O.name)),ee=O.comment,de=a.transformTo("string",p(ee)),L=a.transformTo("string",h.utf8encode(ee)),X=j.length!==O.name.length,T=L.length!==ee.length,Z="",he="",Q="",ne=O.dir,q=O.date,ae={crc32:0,compressedSize:0,uncompressedSize:0};N&&!b||(ae.crc32=m.crc32,ae.compressedSize=m.compressedSize,ae.uncompressedSize=m.uncompressedSize);var K=0;N&&(K|=8),U||!X&&!T||(K|=2048);var R=0,V=0;ne&&(R|=16),d==="UNIX"?(V=798,R|=function(te,z){var S=te;return te||(S=z?16893:33204),(65535&S)<<16}(O.unixPermissions,ne)):(V=20,R|=function(te){return 63&(te||0)}(O.dosPermissions)),E=q.getUTCHours(),E<<=6,E|=q.getUTCMinutes(),E<<=5,E|=q.getUTCSeconds()/2,C=q.getUTCFullYear()-1980,C<<=4,C|=q.getUTCMonth()+1,C<<=5,C|=q.getUTCDate(),X&&(he=s(1,1)+s(g(G),4)+j,Z+="up"+s(he.length,2)+he),T&&(Q=s(1,1)+s(g(de),4)+L,Z+="uc"+s(Q.length,2)+Q);var $="";return $+=`
|
||
\0`,$+=s(K,2),$+=H.magic,$+=s(E,2),$+=s(C,2),$+=s(ae.crc32,4),$+=s(ae.compressedSize,4),$+=s(ae.uncompressedSize,4),$+=s(G.length,2),$+=s(Z.length,2),{fileRecord:v.LOCAL_FILE_HEADER+$+G+Z,dirRecord:v.CENTRAL_FILE_HEADER+s(V,2)+$+s(de.length,2)+"\0\0\0\0"+s(R,4)+s(A,4)+G+Z+de}}var a=r("../utils"),l=r("../stream/GenericWorker"),h=r("../utf8"),g=r("../crc32"),v=r("../signature");function y(m,N,b,A){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=N,this.zipPlatform=b,this.encodeFileName=A,this.streamFiles=m,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(y,l),y.prototype.push=function(m){var N=m.meta.percent||0,b=this.entriesCount,A=this._sources.length;this.accumulate?this.contentBuffer.push(m):(this.bytesWritten+=m.data.length,l.prototype.push.call(this,{data:m.data,meta:{currentFile:this.currentFile,percent:b?(N+100*(b-A-1))/b:100}}))},y.prototype.openedSource=function(m){this.currentSourceOffset=this.bytesWritten,this.currentFile=m.file.name;var N=this.streamFiles&&!m.file.dir;if(N){var b=o(m,N,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:b.fileRecord,meta:{percent:0}})}else this.accumulate=!0},y.prototype.closedSource=function(m){this.accumulate=!1;var N=this.streamFiles&&!m.file.dir,b=o(m,N,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(b.dirRecord),N)this.push({data:function(A){return v.DATA_DESCRIPTOR+s(A.crc32,4)+s(A.compressedSize,4)+s(A.uncompressedSize,4)}(m),meta:{percent:100}});else for(this.push({data:b.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},y.prototype.flush=function(){for(var m=this.bytesWritten,N=0;N<this.dirRecords.length;N++)this.push({data:this.dirRecords[N],meta:{percent:100}});var b=this.bytesWritten-m,A=function(d,p,E,C,O){var H=a.transformTo("string",O(C));return v.CENTRAL_DIRECTORY_END+"\0\0\0\0"+s(d,2)+s(d,2)+s(p,4)+s(E,4)+s(H.length,2)+H}(this.dirRecords.length,b,m,this.zipComment,this.encodeFileName);this.push({data:A,meta:{percent:100}})},y.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},y.prototype.registerPrevious=function(m){this._sources.push(m);var N=this;return m.on("data",function(b){N.processChunk(b)}),m.on("end",function(){N.closedSource(N.previous.streamInfo),N._sources.length?N.prepareNextSource():N.end()}),m.on("error",function(b){N.error(b)}),this},y.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},y.prototype.error=function(m){var N=this._sources;if(!l.prototype.error.call(this,m))return!1;for(var b=0;b<N.length;b++)try{N[b].error(m)}catch{}return!0},y.prototype.lock=function(){l.prototype.lock.call(this);for(var m=this._sources,N=0;N<m.length;N++)m[N].lock()},n.exports=y},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(r,n,i){var s=r("../compressions"),o=r("./ZipFileWorker");i.generateWorker=function(a,l,h){var g=new o(l.streamFiles,h,l.platform,l.encodeFileName),v=0;try{a.forEach(function(y,m){v++;var N=function(p,E){var C=p||E,O=s[C];if(!O)throw new Error(C+" is not a valid compression method !");return O}(m.options.compression,l.compression),b=m.options.compressionOptions||l.compressionOptions||{},A=m.dir,d=m.date;m._compressWorker(N,b).withStreamInfo("file",{name:y,dir:A,date:d,comment:m.comment||"",unixPermissions:m.unixPermissions,dosPermissions:m.dosPermissions}).pipe(g)}),g.entriesCount=v}catch(y){g.error(y)}return g}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(r,n,i){function s(){if(!(this instanceof s))return new s;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 o=new s;for(var a in this)typeof this[a]!="function"&&(o[a]=this[a]);return o}}(s.prototype=r("./object")).loadAsync=r("./load"),s.support=r("./support"),s.defaults=r("./defaults"),s.version="3.10.1",s.loadAsync=function(o,a){return new s().loadAsync(o,a)},s.external=r("./external"),n.exports=s},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(r,n,i){var s=r("./utils"),o=r("./external"),a=r("./utf8"),l=r("./zipEntries"),h=r("./stream/Crc32Probe"),g=r("./nodejsUtils");function v(y){return new o.Promise(function(m,N){var b=y.decompressed.getContentWorker().pipe(new h);b.on("error",function(A){N(A)}).on("end",function(){b.streamInfo.crc32!==y.decompressed.crc32?N(new Error("Corrupted zip : CRC32 mismatch")):m()}).resume()})}n.exports=function(y,m){var N=this;return m=s.extend(m||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),g.isNode&&g.isStream(y)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):s.prepareContent("the loaded zip file",y,!0,m.optimizedBinaryString,m.base64).then(function(b){var A=new l(m);return A.load(b),A}).then(function(b){var A=[o.Promise.resolve(b)],d=b.files;if(m.checkCRC32)for(var p=0;p<d.length;p++)A.push(v(d[p]));return o.Promise.all(A)}).then(function(b){for(var A=b.shift(),d=A.files,p=0;p<d.length;p++){var E=d[p],C=E.fileNameStr,O=s.resolve(E.fileNameStr);N.file(O,E.decompressed,{binary:!0,optimizedBinaryString:!0,date:E.date,dir:E.dir,comment:E.fileCommentStr.length?E.fileCommentStr:null,unixPermissions:E.unixPermissions,dosPermissions:E.dosPermissions,createFolders:m.createFolders}),E.dir||(N.file(O).unsafeOriginalName=C)}return A.zipComment.length&&(N.comment=A.zipComment),N})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(r,n,i){var s=r("../utils"),o=r("../stream/GenericWorker");function a(l,h){o.call(this,"Nodejs stream input adapter for "+l),this._upstreamEnded=!1,this._bindStream(h)}s.inherits(a,o),a.prototype._bindStream=function(l){var h=this;(this._stream=l).pause(),l.on("data",function(g){h.push({data:g,meta:{percent:0}})}).on("error",function(g){h.isPaused?this.generatedError=g:h.error(g)}).on("end",function(){h.isPaused?h._upstreamEnded=!0:h.end()})},a.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},n.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(r,n,i){var s=r("readable-stream").Readable;function o(a,l,h){s.call(this,l),this._helper=a;var g=this;a.on("data",function(v,y){g.push(v)||g._helper.pause(),h&&h(y)}).on("error",function(v){g.emit("error",v)}).on("end",function(){g.push(null)})}r("../utils").inherits(o,s),o.prototype._read=function(){this._helper.resume()},n.exports=o},{"../utils":32,"readable-stream":16}],14:[function(r,n,i){n.exports={isNode:typeof Buffer<"u",newBufferFrom:function(s,o){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(s,o);if(typeof s=="number")throw new Error('The "data" argument must not be a number');return new Buffer(s,o)},allocBuffer:function(s){if(Buffer.alloc)return Buffer.alloc(s);var o=new Buffer(s);return o.fill(0),o},isBuffer:function(s){return Buffer.isBuffer(s)},isStream:function(s){return s&&typeof s.on=="function"&&typeof s.pause=="function"&&typeof s.resume=="function"}}},{}],15:[function(r,n,i){function s(O,H,U){var G,j=a.getTypeOf(H),ee=a.extend(U||{},g);ee.date=ee.date||new Date,ee.compression!==null&&(ee.compression=ee.compression.toUpperCase()),typeof ee.unixPermissions=="string"&&(ee.unixPermissions=parseInt(ee.unixPermissions,8)),ee.unixPermissions&&16384&ee.unixPermissions&&(ee.dir=!0),ee.dosPermissions&&16&ee.dosPermissions&&(ee.dir=!0),ee.dir&&(O=d(O)),ee.createFolders&&(G=A(O))&&p.call(this,G,!0);var de=j==="string"&&ee.binary===!1&&ee.base64===!1;U&&U.binary!==void 0||(ee.binary=!de),(H instanceof v&&H.uncompressedSize===0||ee.dir||!H||H.length===0)&&(ee.base64=!1,ee.binary=!0,H="",ee.compression="STORE",j="string");var L=null;L=H instanceof v||H instanceof l?H:N.isNode&&N.isStream(H)?new b(O,H):a.prepareContent(O,H,ee.binary,ee.optimizedBinaryString,ee.base64);var X=new y(O,L,ee);this.files[O]=X}var o=r("./utf8"),a=r("./utils"),l=r("./stream/GenericWorker"),h=r("./stream/StreamHelper"),g=r("./defaults"),v=r("./compressedObject"),y=r("./zipObject"),m=r("./generate"),N=r("./nodejsUtils"),b=r("./nodejs/NodejsStreamInputAdapter"),A=function(O){O.slice(-1)==="/"&&(O=O.substring(0,O.length-1));var H=O.lastIndexOf("/");return 0<H?O.substring(0,H):""},d=function(O){return O.slice(-1)!=="/"&&(O+="/"),O},p=function(O,H){return H=H!==void 0?H:g.createFolders,O=d(O),this.files[O]||s.call(this,O,null,{dir:!0,createFolders:H}),this.files[O]};function E(O){return Object.prototype.toString.call(O)==="[object RegExp]"}var C={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(O){var H,U,G;for(H in this.files)G=this.files[H],(U=H.slice(this.root.length,H.length))&&H.slice(0,this.root.length)===this.root&&O(U,G)},filter:function(O){var H=[];return this.forEach(function(U,G){O(U,G)&&H.push(G)}),H},file:function(O,H,U){if(arguments.length!==1)return O=this.root+O,s.call(this,O,H,U),this;if(E(O)){var G=O;return this.filter(function(ee,de){return!de.dir&&G.test(ee)})}var j=this.files[this.root+O];return j&&!j.dir?j:null},folder:function(O){if(!O)return this;if(E(O))return this.filter(function(j,ee){return ee.dir&&O.test(j)});var H=this.root+O,U=p.call(this,H),G=this.clone();return G.root=U.name,G},remove:function(O){O=this.root+O;var H=this.files[O];if(H||(O.slice(-1)!=="/"&&(O+="/"),H=this.files[O]),H&&!H.dir)delete this.files[O];else for(var U=this.filter(function(j,ee){return ee.name.slice(0,O.length)===O}),G=0;G<U.length;G++)delete this.files[U[G].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(O){var H,U={};try{if((U=a.extend(O||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=U.type.toLowerCase(),U.compression=U.compression.toUpperCase(),U.type==="binarystring"&&(U.type="string"),!U.type)throw new Error("No output type specified.");a.checkSupport(U.type),U.platform!=="darwin"&&U.platform!=="freebsd"&&U.platform!=="linux"&&U.platform!=="sunos"||(U.platform="UNIX"),U.platform==="win32"&&(U.platform="DOS");var G=U.comment||this.comment||"";H=m.generateWorker(this,U,G)}catch(j){(H=new l("error")).error(j)}return new h(H,U.type||"string",U.mimeType)},generateAsync:function(O,H){return this.generateInternalStream(O).accumulate(H)},generateNodeStream:function(O,H){return(O=O||{}).type||(O.type="nodebuffer"),this.generateInternalStream(O).toNodejsStream(H)}};n.exports=C},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(r,n,i){n.exports=r("stream")},{stream:void 0}],17:[function(r,n,i){var s=r("./DataReader");function o(a){s.call(this,a);for(var l=0;l<this.data.length;l++)a[l]=255&a[l]}r("../utils").inherits(o,s),o.prototype.byteAt=function(a){return this.data[this.zero+a]},o.prototype.lastIndexOfSignature=function(a){for(var l=a.charCodeAt(0),h=a.charCodeAt(1),g=a.charCodeAt(2),v=a.charCodeAt(3),y=this.length-4;0<=y;--y)if(this.data[y]===l&&this.data[y+1]===h&&this.data[y+2]===g&&this.data[y+3]===v)return y-this.zero;return-1},o.prototype.readAndCheckSignature=function(a){var l=a.charCodeAt(0),h=a.charCodeAt(1),g=a.charCodeAt(2),v=a.charCodeAt(3),y=this.readData(4);return l===y[0]&&h===y[1]&&g===y[2]&&v===y[3]},o.prototype.readData=function(a){if(this.checkOffset(a),a===0)return[];var l=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,l},n.exports=o},{"../utils":32,"./DataReader":18}],18:[function(r,n,i){var s=r("../utils");function o(a){this.data=a,this.length=a.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length<this.zero+a||a<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(){},readInt:function(a){var l,h=0;for(this.checkOffset(a),l=this.index+a-1;l>=this.index;l--)h=(h<<8)+this.byteAt(l);return this.index+=a,h},readString:function(a){return s.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC(1980+(a>>25&127),(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1))}},n.exports=o},{"../utils":32}],19:[function(r,n,i){var s=r("./Uint8ArrayReader");function o(a){s.call(this,a)}r("../utils").inherits(o,s),o.prototype.readData=function(a){this.checkOffset(a);var l=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,l},n.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(r,n,i){var s=r("./DataReader");function o(a){s.call(this,a)}r("../utils").inherits(o,s),o.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+a)},o.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero},o.prototype.readAndCheckSignature=function(a){return a===this.readData(4)},o.prototype.readData=function(a){this.checkOffset(a);var l=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,l},n.exports=o},{"../utils":32,"./DataReader":18}],21:[function(r,n,i){var s=r("./ArrayReader");function o(a){s.call(this,a)}r("../utils").inherits(o,s),o.prototype.readData=function(a){if(this.checkOffset(a),a===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+a);return this.index+=a,l},n.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(r,n,i){var s=r("../utils"),o=r("../support"),a=r("./ArrayReader"),l=r("./StringReader"),h=r("./NodeBufferReader"),g=r("./Uint8ArrayReader");n.exports=function(v){var y=s.getTypeOf(v);return s.checkSupport(y),y!=="string"||o.uint8array?y==="nodebuffer"?new h(v):o.uint8array?new g(s.transformTo("uint8array",v)):new a(s.transformTo("array",v)):new l(v)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(r,n,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(r,n,i){var s=r("./GenericWorker"),o=r("../utils");function a(l){s.call(this,"ConvertWorker to "+l),this.destType=l}o.inherits(a,s),a.prototype.processChunk=function(l){this.push({data:o.transformTo(this.destType,l.data),meta:l.meta})},n.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(r,n,i){var s=r("./GenericWorker"),o=r("../crc32");function a(){s.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r("../utils").inherits(a,s),a.prototype.processChunk=function(l){this.streamInfo.crc32=o(l.data,this.streamInfo.crc32||0),this.push(l)},n.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(r,n,i){var s=r("../utils"),o=r("./GenericWorker");function a(l){o.call(this,"DataLengthProbe for "+l),this.propName=l,this.withStreamInfo(l,0)}s.inherits(a,o),a.prototype.processChunk=function(l){if(l){var h=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=h+l.data.length}o.prototype.processChunk.call(this,l)},n.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(r,n,i){var s=r("../utils"),o=r("./GenericWorker");function a(l){o.call(this,"DataWorker");var h=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(g){h.dataIsReady=!0,h.data=g,h.max=g&&g.length||0,h.type=s.getTypeOf(g),h.isPaused||h._tickAndRepeat()},function(g){h.error(g)})}s.inherits(a,o),a.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,s.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(s.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var l=null,h=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":l=this.data.substring(this.index,h);break;case"uint8array":l=this.data.subarray(this.index,h);break;case"array":case"nodebuffer":l=this.data.slice(this.index,h)}return this.index=h,this.push({data:l,meta:{percent:this.max?this.index/this.max*100:0}})},n.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(r,n,i){function s(o){this.name=o||"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}s.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,a){return this._listeners[o].push(a),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,a){if(this._listeners[o])for(var l=0;l<this._listeners[o].length;l++)this._listeners[o][l].call(this,a)},pipe:function(o){return o.registerPrevious(this)},registerPrevious:function(o){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=o.streamInfo,this.mergeStreamInfo(),this.previous=o;var a=this;return o.on("data",function(l){a.processChunk(l)}),o.on("end",function(){a.end()}),o.on("error",function(l){a.error(l)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var o=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),o=!0),this.previous&&this.previous.resume(),!o},flush:function(){},processChunk:function(o){this.push(o)},withStreamInfo:function(o,a){return this.extraStreamInfo[o]=a,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var o in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,o)&&(this.streamInfo[o]=this.extraStreamInfo[o])},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 o="Worker "+this.name;return this.previous?this.previous+" -> "+o:o}},n.exports=s},{}],29:[function(r,n,i){var s=r("../utils"),o=r("./ConvertWorker"),a=r("./GenericWorker"),l=r("../base64"),h=r("../support"),g=r("../external"),v=null;if(h.nodestream)try{v=r("../nodejs/NodejsStreamOutputAdapter")}catch{}function y(N,b){return new g.Promise(function(A,d){var p=[],E=N._internalType,C=N._outputType,O=N._mimeType;N.on("data",function(H,U){p.push(H),b&&b(U)}).on("error",function(H){p=[],d(H)}).on("end",function(){try{var H=function(U,G,j){switch(U){case"blob":return s.newBlob(s.transformTo("arraybuffer",G),j);case"base64":return l.encode(G);default:return s.transformTo(U,G)}}(C,function(U,G){var j,ee=0,de=null,L=0;for(j=0;j<G.length;j++)L+=G[j].length;switch(U){case"string":return G.join("");case"array":return Array.prototype.concat.apply([],G);case"uint8array":for(de=new Uint8Array(L),j=0;j<G.length;j++)de.set(G[j],ee),ee+=G[j].length;return de;case"nodebuffer":return Buffer.concat(G);default:throw new Error("concat : unsupported type '"+U+"'")}}(E,p),O);A(H)}catch(U){d(U)}p=[]}).resume()})}function m(N,b,A){var d=b;switch(b){case"blob":case"arraybuffer":d="uint8array";break;case"base64":d="string"}try{this._internalType=d,this._outputType=b,this._mimeType=A,s.checkSupport(d),this._worker=N.pipe(new o(d)),N.lock()}catch(p){this._worker=new a("error"),this._worker.error(p)}}m.prototype={accumulate:function(N){return y(this,N)},on:function(N,b){var A=this;return N==="data"?this._worker.on(N,function(d){b.call(A,d.data,d.meta)}):this._worker.on(N,function(){s.delay(b,arguments,A)}),this},resume:function(){return s.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(N){if(s.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new v(this,{objectMode:this._outputType!=="nodebuffer"},N)}},n.exports=m},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(r,n,i){if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",i.nodebuffer=typeof Buffer<"u",i.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")i.blob=!1;else{var s=new ArrayBuffer(0);try{i.blob=new Blob([s],{type:"application/zip"}).size===0}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(s),i.blob=o.getBlob("application/zip").size===0}catch{i.blob=!1}}}try{i.nodestream=!!r("readable-stream").Readable}catch{i.nodestream=!1}},{"readable-stream":16}],31:[function(r,n,i){for(var s=r("./utils"),o=r("./support"),a=r("./nodejsUtils"),l=r("./stream/GenericWorker"),h=new Array(256),g=0;g<256;g++)h[g]=252<=g?6:248<=g?5:240<=g?4:224<=g?3:192<=g?2:1;h[254]=h[254]=1;function v(){l.call(this,"utf-8 decode"),this.leftOver=null}function y(){l.call(this,"utf-8 encode")}i.utf8encode=function(m){return o.nodebuffer?a.newBufferFrom(m,"utf-8"):function(N){var b,A,d,p,E,C=N.length,O=0;for(p=0;p<C;p++)(64512&(A=N.charCodeAt(p)))==55296&&p+1<C&&(64512&(d=N.charCodeAt(p+1)))==56320&&(A=65536+(A-55296<<10)+(d-56320),p++),O+=A<128?1:A<2048?2:A<65536?3:4;for(b=o.uint8array?new Uint8Array(O):new Array(O),p=E=0;E<O;p++)(64512&(A=N.charCodeAt(p)))==55296&&p+1<C&&(64512&(d=N.charCodeAt(p+1)))==56320&&(A=65536+(A-55296<<10)+(d-56320),p++),A<128?b[E++]=A:(A<2048?b[E++]=192|A>>>6:(A<65536?b[E++]=224|A>>>12:(b[E++]=240|A>>>18,b[E++]=128|A>>>12&63),b[E++]=128|A>>>6&63),b[E++]=128|63&A);return b}(m)},i.utf8decode=function(m){return o.nodebuffer?s.transformTo("nodebuffer",m).toString("utf-8"):function(N){var b,A,d,p,E=N.length,C=new Array(2*E);for(b=A=0;b<E;)if((d=N[b++])<128)C[A++]=d;else if(4<(p=h[d]))C[A++]=65533,b+=p-1;else{for(d&=p===2?31:p===3?15:7;1<p&&b<E;)d=d<<6|63&N[b++],p--;1<p?C[A++]=65533:d<65536?C[A++]=d:(d-=65536,C[A++]=55296|d>>10&1023,C[A++]=56320|1023&d)}return C.length!==A&&(C.subarray?C=C.subarray(0,A):C.length=A),s.applyFromCharCode(C)}(m=s.transformTo(o.uint8array?"uint8array":"array",m))},s.inherits(v,l),v.prototype.processChunk=function(m){var N=s.transformTo(o.uint8array?"uint8array":"array",m.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var b=N;(N=new Uint8Array(b.length+this.leftOver.length)).set(this.leftOver,0),N.set(b,this.leftOver.length)}else N=this.leftOver.concat(N);this.leftOver=null}var A=function(p,E){var C;for((E=E||p.length)>p.length&&(E=p.length),C=E-1;0<=C&&(192&p[C])==128;)C--;return C<0||C===0?E:C+h[p[C]]>E?C:E}(N),d=N;A!==N.length&&(o.uint8array?(d=N.subarray(0,A),this.leftOver=N.subarray(A,N.length)):(d=N.slice(0,A),this.leftOver=N.slice(A,N.length))),this.push({data:i.utf8decode(d),meta:m.meta})},v.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=v,s.inherits(y,l),y.prototype.processChunk=function(m){this.push({data:i.utf8encode(m.data),meta:m.meta})},i.Utf8EncodeWorker=y},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,n,i){var s=r("./support"),o=r("./base64"),a=r("./nodejsUtils"),l=r("./external");function h(b){return b}function g(b,A){for(var d=0;d<b.length;++d)A[d]=255&b.charCodeAt(d);return A}r("setimmediate"),i.newBlob=function(b,A){i.checkSupport("blob");try{return new Blob([b],{type:A})}catch{try{var d=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return d.append(b),d.getBlob(A)}catch{throw new Error("Bug : can't construct the Blob.")}}};var v={stringifyByChunk:function(b,A,d){var p=[],E=0,C=b.length;if(C<=d)return String.fromCharCode.apply(null,b);for(;E<C;)A==="array"||A==="nodebuffer"?p.push(String.fromCharCode.apply(null,b.slice(E,Math.min(E+d,C)))):p.push(String.fromCharCode.apply(null,b.subarray(E,Math.min(E+d,C)))),E+=d;return p.join("")},stringifyByChar:function(b){for(var A="",d=0;d<b.length;d++)A+=String.fromCharCode(b[d]);return A},applyCanBeUsed:{uint8array:function(){try{return s.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return s.nodebuffer&&String.fromCharCode.apply(null,a.allocBuffer(1)).length===1}catch{return!1}}()}};function y(b){var A=65536,d=i.getTypeOf(b),p=!0;if(d==="uint8array"?p=v.applyCanBeUsed.uint8array:d==="nodebuffer"&&(p=v.applyCanBeUsed.nodebuffer),p)for(;1<A;)try{return v.stringifyByChunk(b,d,A)}catch{A=Math.floor(A/2)}return v.stringifyByChar(b)}function m(b,A){for(var d=0;d<b.length;d++)A[d]=b[d];return A}i.applyFromCharCode=y;var N={};N.string={string:h,array:function(b){return g(b,new Array(b.length))},arraybuffer:function(b){return N.string.uint8array(b).buffer},uint8array:function(b){return g(b,new Uint8Array(b.length))},nodebuffer:function(b){return g(b,a.allocBuffer(b.length))}},N.array={string:y,array:h,arraybuffer:function(b){return new Uint8Array(b).buffer},uint8array:function(b){return new Uint8Array(b)},nodebuffer:function(b){return a.newBufferFrom(b)}},N.arraybuffer={string:function(b){return y(new Uint8Array(b))},array:function(b){return m(new Uint8Array(b),new Array(b.byteLength))},arraybuffer:h,uint8array:function(b){return new Uint8Array(b)},nodebuffer:function(b){return a.newBufferFrom(new Uint8Array(b))}},N.uint8array={string:y,array:function(b){return m(b,new Array(b.length))},arraybuffer:function(b){return b.buffer},uint8array:h,nodebuffer:function(b){return a.newBufferFrom(b)}},N.nodebuffer={string:y,array:function(b){return m(b,new Array(b.length))},arraybuffer:function(b){return N.nodebuffer.uint8array(b).buffer},uint8array:function(b){return m(b,new Uint8Array(b.length))},nodebuffer:h},i.transformTo=function(b,A){if(A=A||"",!b)return A;i.checkSupport(b);var d=i.getTypeOf(A);return N[d][b](A)},i.resolve=function(b){for(var A=b.split("/"),d=[],p=0;p<A.length;p++){var E=A[p];E==="."||E===""&&p!==0&&p!==A.length-1||(E===".."?d.pop():d.push(E))}return d.join("/")},i.getTypeOf=function(b){return typeof b=="string"?"string":Object.prototype.toString.call(b)==="[object Array]"?"array":s.nodebuffer&&a.isBuffer(b)?"nodebuffer":s.uint8array&&b instanceof Uint8Array?"uint8array":s.arraybuffer&&b instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(b){if(!s[b.toLowerCase()])throw new Error(b+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(b){var A,d,p="";for(d=0;d<(b||"").length;d++)p+="\\x"+((A=b.charCodeAt(d))<16?"0":"")+A.toString(16).toUpperCase();return p},i.delay=function(b,A,d){setImmediate(function(){b.apply(d||null,A||[])})},i.inherits=function(b,A){function d(){}d.prototype=A.prototype,b.prototype=new d},i.extend=function(){var b,A,d={};for(b=0;b<arguments.length;b++)for(A in arguments[b])Object.prototype.hasOwnProperty.call(arguments[b],A)&&d[A]===void 0&&(d[A]=arguments[b][A]);return d},i.prepareContent=function(b,A,d,p,E){return l.Promise.resolve(A).then(function(C){return s.blob&&(C instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(C))!==-1)&&typeof FileReader<"u"?new l.Promise(function(O,H){var U=new FileReader;U.onload=function(G){O(G.target.result)},U.onerror=function(G){H(G.target.error)},U.readAsArrayBuffer(C)}):C}).then(function(C){var O=i.getTypeOf(C);return O?(O==="arraybuffer"?C=i.transformTo("uint8array",C):O==="string"&&(E?C=o.decode(C):d&&p!==!0&&(C=function(H){return g(H,s.uint8array?new Uint8Array(H.length):new Array(H.length))}(C))),C):l.Promise.reject(new Error("Can't read the data of '"+b+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(r,n,i){var s=r("./reader/readerFor"),o=r("./utils"),a=r("./signature"),l=r("./zipEntry"),h=r("./support");function g(v){this.files=[],this.loadOptions=v}g.prototype={checkSignature:function(v){if(!this.reader.readAndCheckSignature(v)){this.reader.index-=4;var y=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(y)+", expected "+o.pretty(v)+")")}},isSignature:function(v,y){var m=this.reader.index;this.reader.setIndex(v);var N=this.reader.readString(4)===y;return this.reader.setIndex(m),N},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 v=this.reader.readData(this.zipCommentLength),y=h.uint8array?"uint8array":"array",m=o.transformTo(y,v);this.zipComment=this.loadOptions.decodeFileName(m)},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 v,y,m,N=this.zip64EndOfCentralSize-44;0<N;)v=this.reader.readInt(2),y=this.reader.readInt(4),m=this.reader.readData(y),this.zip64ExtensibleData[v]={id:v,length:y,value:m}},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 v,y;for(v=0;v<this.files.length;v++)y=this.files[v],this.reader.setIndex(y.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),y.readLocalPart(this.reader),y.handleUTF8(),y.processAttributes()},readCentralDir:function(){var v;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(v=new l({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(v);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 v=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(v<0)throw this.isSignature(0,a.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(v);var y=v;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(v=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(v),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.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(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var m=this.centralDirOffset+this.centralDirSize;this.zip64&&(m+=20,m+=12+this.zip64EndOfCentralSize);var N=y-m;if(0<N)this.isSignature(y,a.CENTRAL_FILE_HEADER)||(this.reader.zero=N);else if(N<0)throw new Error("Corrupted zip: missing "+Math.abs(N)+" bytes.")},prepareReader:function(v){this.reader=s(v)},load:function(v){this.prepareReader(v),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},n.exports=g},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(r,n,i){var s=r("./reader/readerFor"),o=r("./utils"),a=r("./compressedObject"),l=r("./crc32"),h=r("./utf8"),g=r("./compressions"),v=r("./support");function y(m,N){this.options=m,this.loadOptions=N}y.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(m){var N,b;if(m.skip(22),this.fileNameLength=m.readInt(2),b=m.readInt(2),this.fileName=m.readData(this.fileNameLength),m.skip(b),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((N=function(A){for(var d in g)if(Object.prototype.hasOwnProperty.call(g,d)&&g[d].magic===A)return g[d];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,N,m.readData(this.compressedSize))},readCentralPart:function(m){this.versionMadeBy=m.readInt(2),m.skip(2),this.bitFlag=m.readInt(2),this.compressionMethod=m.readString(2),this.date=m.readDate(),this.crc32=m.readInt(4),this.compressedSize=m.readInt(4),this.uncompressedSize=m.readInt(4);var N=m.readInt(2);if(this.extraFieldsLength=m.readInt(2),this.fileCommentLength=m.readInt(2),this.diskNumberStart=m.readInt(2),this.internalFileAttributes=m.readInt(2),this.externalFileAttributes=m.readInt(4),this.localHeaderOffset=m.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");m.skip(N),this.readExtraFields(m),this.parseZIP64ExtraField(m),this.fileComment=m.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var m=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),m==0&&(this.dosPermissions=63&this.externalFileAttributes),m==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var m=s(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=m.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=m.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=m.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=m.readInt(4))}},readExtraFields:function(m){var N,b,A,d=m.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});m.index+4<d;)N=m.readInt(2),b=m.readInt(2),A=m.readData(b),this.extraFields[N]={id:N,length:b,value:A};m.setIndex(d)},handleUTF8:function(){var m=v.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=h.utf8decode(this.fileName),this.fileCommentStr=h.utf8decode(this.fileComment);else{var N=this.findExtraFieldUnicodePath();if(N!==null)this.fileNameStr=N;else{var b=o.transformTo(m,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(b)}var A=this.findExtraFieldUnicodeComment();if(A!==null)this.fileCommentStr=A;else{var d=o.transformTo(m,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(d)}}},findExtraFieldUnicodePath:function(){var m=this.extraFields[28789];if(m){var N=s(m.value);return N.readInt(1)!==1||l(this.fileName)!==N.readInt(4)?null:h.utf8decode(N.readData(m.length-5))}return null},findExtraFieldUnicodeComment:function(){var m=this.extraFields[25461];if(m){var N=s(m.value);return N.readInt(1)!==1||l(this.fileComment)!==N.readInt(4)?null:h.utf8decode(N.readData(m.length-5))}return null}},n.exports=y},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(r,n,i){function s(N,b,A){this.name=N,this.dir=A.dir,this.date=A.date,this.comment=A.comment,this.unixPermissions=A.unixPermissions,this.dosPermissions=A.dosPermissions,this._data=b,this._dataBinary=A.binary,this.options={compression:A.compression,compressionOptions:A.compressionOptions}}var o=r("./stream/StreamHelper"),a=r("./stream/DataWorker"),l=r("./utf8"),h=r("./compressedObject"),g=r("./stream/GenericWorker");s.prototype={internalStream:function(N){var b=null,A="string";try{if(!N)throw new Error("No output type specified.");var d=(A=N.toLowerCase())==="string"||A==="text";A!=="binarystring"&&A!=="text"||(A="string"),b=this._decompressWorker();var p=!this._dataBinary;p&&!d&&(b=b.pipe(new l.Utf8EncodeWorker)),!p&&d&&(b=b.pipe(new l.Utf8DecodeWorker))}catch(E){(b=new g("error")).error(E)}return new o(b,A,"")},async:function(N,b){return this.internalStream(N).accumulate(b)},nodeStream:function(N,b){return this.internalStream(N||"nodebuffer").toNodejsStream(b)},_compressWorker:function(N,b){if(this._data instanceof h&&this._data.compression.magic===N.magic)return this._data.getCompressedWorker();var A=this._decompressWorker();return this._dataBinary||(A=A.pipe(new l.Utf8EncodeWorker)),h.createWorkerFrom(A,N,b)},_decompressWorker:function(){return this._data instanceof h?this._data.getContentWorker():this._data instanceof g?this._data:new a(this._data)}};for(var v=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],y=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},m=0;m<v.length;m++)s.prototype[v[m]]=y;n.exports=s},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(r,n,i){(function(s){var o,a,l=s.MutationObserver||s.WebKitMutationObserver;if(l){var h=0,g=new l(N),v=s.document.createTextNode("");g.observe(v,{characterData:!0}),o=function(){v.data=h=++h%2}}else if(s.setImmediate||s.MessageChannel===void 0)o="document"in s&&"onreadystatechange"in s.document.createElement("script")?function(){var b=s.document.createElement("script");b.onreadystatechange=function(){N(),b.onreadystatechange=null,b.parentNode.removeChild(b),b=null},s.document.documentElement.appendChild(b)}:function(){setTimeout(N,0)};else{var y=new s.MessageChannel;y.port1.onmessage=N,o=function(){y.port2.postMessage(0)}}var m=[];function N(){var b,A;a=!0;for(var d=m.length;d;){for(A=m,m=[],b=-1;++b<d;)A[b]();d=m.length}a=!1}n.exports=function(b){m.push(b)!==1||a||o()}}).call(this,typeof qt<"u"?qt:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(r,n,i){var s=r("immediate");function o(){}var a={},l=["REJECTED"],h=["FULFILLED"],g=["PENDING"];function v(d){if(typeof d!="function")throw new TypeError("resolver must be a function");this.state=g,this.queue=[],this.outcome=void 0,d!==o&&b(this,d)}function y(d,p,E){this.promise=d,typeof p=="function"&&(this.onFulfilled=p,this.callFulfilled=this.otherCallFulfilled),typeof E=="function"&&(this.onRejected=E,this.callRejected=this.otherCallRejected)}function m(d,p,E){s(function(){var C;try{C=p(E)}catch(O){return a.reject(d,O)}C===d?a.reject(d,new TypeError("Cannot resolve promise with itself")):a.resolve(d,C)})}function N(d){var p=d&&d.then;if(d&&(typeof d=="object"||typeof d=="function")&&typeof p=="function")return function(){p.apply(d,arguments)}}function b(d,p){var E=!1;function C(U){E||(E=!0,a.reject(d,U))}function O(U){E||(E=!0,a.resolve(d,U))}var H=A(function(){p(O,C)});H.status==="error"&&C(H.value)}function A(d,p){var E={};try{E.value=d(p),E.status="success"}catch(C){E.status="error",E.value=C}return E}(n.exports=v).prototype.finally=function(d){if(typeof d!="function")return this;var p=this.constructor;return this.then(function(E){return p.resolve(d()).then(function(){return E})},function(E){return p.resolve(d()).then(function(){throw E})})},v.prototype.catch=function(d){return this.then(null,d)},v.prototype.then=function(d,p){if(typeof d!="function"&&this.state===h||typeof p!="function"&&this.state===l)return this;var E=new this.constructor(o);return this.state!==g?m(E,this.state===h?d:p,this.outcome):this.queue.push(new y(E,d,p)),E},y.prototype.callFulfilled=function(d){a.resolve(this.promise,d)},y.prototype.otherCallFulfilled=function(d){m(this.promise,this.onFulfilled,d)},y.prototype.callRejected=function(d){a.reject(this.promise,d)},y.prototype.otherCallRejected=function(d){m(this.promise,this.onRejected,d)},a.resolve=function(d,p){var E=A(N,p);if(E.status==="error")return a.reject(d,E.value);var C=E.value;if(C)b(d,C);else{d.state=h,d.outcome=p;for(var O=-1,H=d.queue.length;++O<H;)d.queue[O].callFulfilled(p)}return d},a.reject=function(d,p){d.state=l,d.outcome=p;for(var E=-1,C=d.queue.length;++E<C;)d.queue[E].callRejected(p);return d},v.resolve=function(d){return d instanceof this?d:a.resolve(new this(o),d)},v.reject=function(d){var p=new this(o);return a.reject(p,d)},v.all=function(d){var p=this;if(Object.prototype.toString.call(d)!=="[object Array]")return this.reject(new TypeError("must be an array"));var E=d.length,C=!1;if(!E)return this.resolve([]);for(var O=new Array(E),H=0,U=-1,G=new this(o);++U<E;)j(d[U],U);return G;function j(ee,de){p.resolve(ee).then(function(L){O[de]=L,++H!==E||C||(C=!0,a.resolve(G,O))},function(L){C||(C=!0,a.reject(G,L))})}},v.race=function(d){var p=this;if(Object.prototype.toString.call(d)!=="[object Array]")return this.reject(new TypeError("must be an array"));var E=d.length,C=!1;if(!E)return this.resolve([]);for(var O=-1,H=new this(o);++O<E;)U=d[O],p.resolve(U).then(function(G){C||(C=!0,a.resolve(H,G))},function(G){C||(C=!0,a.reject(H,G))});var U;return H}},{immediate:36}],38:[function(r,n,i){var s={};(0,r("./lib/utils/common").assign)(s,r("./lib/deflate"),r("./lib/inflate"),r("./lib/zlib/constants")),n.exports=s},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(r,n,i){var s=r("./zlib/deflate"),o=r("./utils/common"),a=r("./utils/strings"),l=r("./zlib/messages"),h=r("./zlib/zstream"),g=Object.prototype.toString,v=0,y=-1,m=0,N=8;function b(d){if(!(this instanceof b))return new b(d);this.options=o.assign({level:y,method:N,chunkSize:16384,windowBits:15,memLevel:8,strategy:m,to:""},d||{});var p=this.options;p.raw&&0<p.windowBits?p.windowBits=-p.windowBits:p.gzip&&0<p.windowBits&&p.windowBits<16&&(p.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var E=s.deflateInit2(this.strm,p.level,p.method,p.windowBits,p.memLevel,p.strategy);if(E!==v)throw new Error(l[E]);if(p.header&&s.deflateSetHeader(this.strm,p.header),p.dictionary){var C;if(C=typeof p.dictionary=="string"?a.string2buf(p.dictionary):g.call(p.dictionary)==="[object ArrayBuffer]"?new Uint8Array(p.dictionary):p.dictionary,(E=s.deflateSetDictionary(this.strm,C))!==v)throw new Error(l[E]);this._dict_set=!0}}function A(d,p){var E=new b(p);if(E.push(d,!0),E.err)throw E.msg||l[E.err];return E.result}b.prototype.push=function(d,p){var E,C,O=this.strm,H=this.options.chunkSize;if(this.ended)return!1;C=p===~~p?p:p===!0?4:0,typeof d=="string"?O.input=a.string2buf(d):g.call(d)==="[object ArrayBuffer]"?O.input=new Uint8Array(d):O.input=d,O.next_in=0,O.avail_in=O.input.length;do{if(O.avail_out===0&&(O.output=new o.Buf8(H),O.next_out=0,O.avail_out=H),(E=s.deflate(O,C))!==1&&E!==v)return this.onEnd(E),!(this.ended=!0);O.avail_out!==0&&(O.avail_in!==0||C!==4&&C!==2)||(this.options.to==="string"?this.onData(a.buf2binstring(o.shrinkBuf(O.output,O.next_out))):this.onData(o.shrinkBuf(O.output,O.next_out)))}while((0<O.avail_in||O.avail_out===0)&&E!==1);return C===4?(E=s.deflateEnd(this.strm),this.onEnd(E),this.ended=!0,E===v):C!==2||(this.onEnd(v),!(O.avail_out=0))},b.prototype.onData=function(d){this.chunks.push(d)},b.prototype.onEnd=function(d){d===v&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=d,this.msg=this.strm.msg},i.Deflate=b,i.deflate=A,i.deflateRaw=function(d,p){return(p=p||{}).raw=!0,A(d,p)},i.gzip=function(d,p){return(p=p||{}).gzip=!0,A(d,p)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(r,n,i){var s=r("./zlib/inflate"),o=r("./utils/common"),a=r("./utils/strings"),l=r("./zlib/constants"),h=r("./zlib/messages"),g=r("./zlib/zstream"),v=r("./zlib/gzheader"),y=Object.prototype.toString;function m(b){if(!(this instanceof m))return new m(b);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},b||{});var A=this.options;A.raw&&0<=A.windowBits&&A.windowBits<16&&(A.windowBits=-A.windowBits,A.windowBits===0&&(A.windowBits=-15)),!(0<=A.windowBits&&A.windowBits<16)||b&&b.windowBits||(A.windowBits+=32),15<A.windowBits&&A.windowBits<48&&!(15&A.windowBits)&&(A.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new g,this.strm.avail_out=0;var d=s.inflateInit2(this.strm,A.windowBits);if(d!==l.Z_OK)throw new Error(h[d]);this.header=new v,s.inflateGetHeader(this.strm,this.header)}function N(b,A){var d=new m(A);if(d.push(b,!0),d.err)throw d.msg||h[d.err];return d.result}m.prototype.push=function(b,A){var d,p,E,C,O,H,U=this.strm,G=this.options.chunkSize,j=this.options.dictionary,ee=!1;if(this.ended)return!1;p=A===~~A?A:A===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof b=="string"?U.input=a.binstring2buf(b):y.call(b)==="[object ArrayBuffer]"?U.input=new Uint8Array(b):U.input=b,U.next_in=0,U.avail_in=U.input.length;do{if(U.avail_out===0&&(U.output=new o.Buf8(G),U.next_out=0,U.avail_out=G),(d=s.inflate(U,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&j&&(H=typeof j=="string"?a.string2buf(j):y.call(j)==="[object ArrayBuffer]"?new Uint8Array(j):j,d=s.inflateSetDictionary(this.strm,H)),d===l.Z_BUF_ERROR&&ee===!0&&(d=l.Z_OK,ee=!1),d!==l.Z_STREAM_END&&d!==l.Z_OK)return this.onEnd(d),!(this.ended=!0);U.next_out&&(U.avail_out!==0&&d!==l.Z_STREAM_END&&(U.avail_in!==0||p!==l.Z_FINISH&&p!==l.Z_SYNC_FLUSH)||(this.options.to==="string"?(E=a.utf8border(U.output,U.next_out),C=U.next_out-E,O=a.buf2string(U.output,E),U.next_out=C,U.avail_out=G-C,C&&o.arraySet(U.output,U.output,E,C,0),this.onData(O)):this.onData(o.shrinkBuf(U.output,U.next_out)))),U.avail_in===0&&U.avail_out===0&&(ee=!0)}while((0<U.avail_in||U.avail_out===0)&&d!==l.Z_STREAM_END);return d===l.Z_STREAM_END&&(p=l.Z_FINISH),p===l.Z_FINISH?(d=s.inflateEnd(this.strm),this.onEnd(d),this.ended=!0,d===l.Z_OK):p!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),!(U.avail_out=0))},m.prototype.onData=function(b){this.chunks.push(b)},m.prototype.onEnd=function(b){b===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=b,this.msg=this.strm.msg},i.Inflate=m,i.inflate=N,i.inflateRaw=function(b,A){return(A=A||{}).raw=!0,N(b,A)},i.ungzip=N},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(r,n,i){var s=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";i.assign=function(l){for(var h=Array.prototype.slice.call(arguments,1);h.length;){var g=h.shift();if(g){if(typeof g!="object")throw new TypeError(g+"must be non-object");for(var v in g)g.hasOwnProperty(v)&&(l[v]=g[v])}}return l},i.shrinkBuf=function(l,h){return l.length===h?l:l.subarray?l.subarray(0,h):(l.length=h,l)};var o={arraySet:function(l,h,g,v,y){if(h.subarray&&l.subarray)l.set(h.subarray(g,g+v),y);else for(var m=0;m<v;m++)l[y+m]=h[g+m]},flattenChunks:function(l){var h,g,v,y,m,N;for(h=v=0,g=l.length;h<g;h++)v+=l[h].length;for(N=new Uint8Array(v),h=y=0,g=l.length;h<g;h++)m=l[h],N.set(m,y),y+=m.length;return N}},a={arraySet:function(l,h,g,v,y){for(var m=0;m<v;m++)l[y+m]=h[g+m]},flattenChunks:function(l){return[].concat.apply([],l)}};i.setTyped=function(l){l?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,o)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,a))},i.setTyped(s)},{}],42:[function(r,n,i){var s=r("./common"),o=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{a=!1}for(var l=new s.Buf8(256),h=0;h<256;h++)l[h]=252<=h?6:248<=h?5:240<=h?4:224<=h?3:192<=h?2:1;function g(v,y){if(y<65537&&(v.subarray&&a||!v.subarray&&o))return String.fromCharCode.apply(null,s.shrinkBuf(v,y));for(var m="",N=0;N<y;N++)m+=String.fromCharCode(v[N]);return m}l[254]=l[254]=1,i.string2buf=function(v){var y,m,N,b,A,d=v.length,p=0;for(b=0;b<d;b++)(64512&(m=v.charCodeAt(b)))==55296&&b+1<d&&(64512&(N=v.charCodeAt(b+1)))==56320&&(m=65536+(m-55296<<10)+(N-56320),b++),p+=m<128?1:m<2048?2:m<65536?3:4;for(y=new s.Buf8(p),b=A=0;A<p;b++)(64512&(m=v.charCodeAt(b)))==55296&&b+1<d&&(64512&(N=v.charCodeAt(b+1)))==56320&&(m=65536+(m-55296<<10)+(N-56320),b++),m<128?y[A++]=m:(m<2048?y[A++]=192|m>>>6:(m<65536?y[A++]=224|m>>>12:(y[A++]=240|m>>>18,y[A++]=128|m>>>12&63),y[A++]=128|m>>>6&63),y[A++]=128|63&m);return y},i.buf2binstring=function(v){return g(v,v.length)},i.binstring2buf=function(v){for(var y=new s.Buf8(v.length),m=0,N=y.length;m<N;m++)y[m]=v.charCodeAt(m);return y},i.buf2string=function(v,y){var m,N,b,A,d=y||v.length,p=new Array(2*d);for(m=N=0;m<d;)if((b=v[m++])<128)p[N++]=b;else if(4<(A=l[b]))p[N++]=65533,m+=A-1;else{for(b&=A===2?31:A===3?15:7;1<A&&m<d;)b=b<<6|63&v[m++],A--;1<A?p[N++]=65533:b<65536?p[N++]=b:(b-=65536,p[N++]=55296|b>>10&1023,p[N++]=56320|1023&b)}return g(p,N)},i.utf8border=function(v,y){var m;for((y=y||v.length)>v.length&&(y=v.length),m=y-1;0<=m&&(192&v[m])==128;)m--;return m<0||m===0?y:m+l[v[m]]>y?m:y}},{"./common":41}],43:[function(r,n,i){n.exports=function(s,o,a,l){for(var h=65535&s|0,g=s>>>16&65535|0,v=0;a!==0;){for(a-=v=2e3<a?2e3:a;g=g+(h=h+o[l++]|0)|0,--v;);h%=65521,g%=65521}return h|g<<16|0}},{}],44:[function(r,n,i){n.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(r,n,i){var s=function(){for(var o,a=[],l=0;l<256;l++){o=l;for(var h=0;h<8;h++)o=1&o?3988292384^o>>>1:o>>>1;a[l]=o}return a}();n.exports=function(o,a,l,h){var g=s,v=h+l;o^=-1;for(var y=h;y<v;y++)o=o>>>8^g[255&(o^a[y])];return-1^o}},{}],46:[function(r,n,i){var s,o=r("../utils/common"),a=r("./trees"),l=r("./adler32"),h=r("./crc32"),g=r("./messages"),v=0,y=4,m=0,N=-2,b=-1,A=4,d=2,p=8,E=9,C=286,O=30,H=19,U=2*C+1,G=15,j=3,ee=258,de=ee+j+1,L=42,X=113,T=1,Z=2,he=3,Q=4;function ne(x,Y){return x.msg=g[Y],Y}function q(x){return(x<<1)-(4<x?9:0)}function ae(x){for(var Y=x.length;0<=--Y;)x[Y]=0}function K(x){var Y=x.state,k=Y.pending;k>x.avail_out&&(k=x.avail_out),k!==0&&(o.arraySet(x.output,Y.pending_buf,Y.pending_out,k,x.next_out),x.next_out+=k,Y.pending_out+=k,x.total_out+=k,x.avail_out-=k,Y.pending-=k,Y.pending===0&&(Y.pending_out=0))}function R(x,Y){a._tr_flush_block(x,0<=x.block_start?x.block_start:-1,x.strstart-x.block_start,Y),x.block_start=x.strstart,K(x.strm)}function V(x,Y){x.pending_buf[x.pending++]=Y}function $(x,Y){x.pending_buf[x.pending++]=Y>>>8&255,x.pending_buf[x.pending++]=255&Y}function te(x,Y){var k,u,c=x.max_chain_length,w=x.strstart,P=x.prev_length,W=x.nice_match,B=x.strstart>x.w_size-de?x.strstart-(x.w_size-de):0,ie=x.window,ce=x.w_mask,oe=x.prev,pe=x.strstart+ee,ge=ie[w+P-1],we=ie[w+P];x.prev_length>=x.good_match&&(c>>=2),W>x.lookahead&&(W=x.lookahead);do if(ie[(k=Y)+P]===we&&ie[k+P-1]===ge&&ie[k]===ie[w]&&ie[++k]===ie[w+1]){w+=2,k++;do;while(ie[++w]===ie[++k]&&ie[++w]===ie[++k]&&ie[++w]===ie[++k]&&ie[++w]===ie[++k]&&ie[++w]===ie[++k]&&ie[++w]===ie[++k]&&ie[++w]===ie[++k]&&ie[++w]===ie[++k]&&w<pe);if(u=ee-(pe-w),w=pe-ee,P<u){if(x.match_start=Y,W<=(P=u))break;ge=ie[w+P-1],we=ie[w+P]}}while((Y=oe[Y&ce])>B&&--c!=0);return P<=x.lookahead?P:x.lookahead}function z(x){var Y,k,u,c,w,P,W,B,ie,ce,oe=x.w_size;do{if(c=x.window_size-x.lookahead-x.strstart,x.strstart>=oe+(oe-de)){for(o.arraySet(x.window,x.window,oe,oe,0),x.match_start-=oe,x.strstart-=oe,x.block_start-=oe,Y=k=x.hash_size;u=x.head[--Y],x.head[Y]=oe<=u?u-oe:0,--k;);for(Y=k=oe;u=x.prev[--Y],x.prev[Y]=oe<=u?u-oe:0,--k;);c+=oe}if(x.strm.avail_in===0)break;if(P=x.strm,W=x.window,B=x.strstart+x.lookahead,ie=c,ce=void 0,ce=P.avail_in,ie<ce&&(ce=ie),k=ce===0?0:(P.avail_in-=ce,o.arraySet(W,P.input,P.next_in,ce,B),P.state.wrap===1?P.adler=l(P.adler,W,ce,B):P.state.wrap===2&&(P.adler=h(P.adler,W,ce,B)),P.next_in+=ce,P.total_in+=ce,ce),x.lookahead+=k,x.lookahead+x.insert>=j)for(w=x.strstart-x.insert,x.ins_h=x.window[w],x.ins_h=(x.ins_h<<x.hash_shift^x.window[w+1])&x.hash_mask;x.insert&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[w+j-1])&x.hash_mask,x.prev[w&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=w,w++,x.insert--,!(x.lookahead+x.insert<j)););}while(x.lookahead<de&&x.strm.avail_in!==0)}function S(x,Y){for(var k,u;;){if(x.lookahead<de){if(z(x),x.lookahead<de&&Y===v)return T;if(x.lookahead===0)break}if(k=0,x.lookahead>=j&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+j-1])&x.hash_mask,k=x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart),k!==0&&x.strstart-k<=x.w_size-de&&(x.match_length=te(x,k)),x.match_length>=j)if(u=a._tr_tally(x,x.strstart-x.match_start,x.match_length-j),x.lookahead-=x.match_length,x.match_length<=x.max_lazy_match&&x.lookahead>=j){for(x.match_length--;x.strstart++,x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+j-1])&x.hash_mask,k=x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart,--x.match_length!=0;);x.strstart++}else x.strstart+=x.match_length,x.match_length=0,x.ins_h=x.window[x.strstart],x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+1])&x.hash_mask;else u=a._tr_tally(x,0,x.window[x.strstart]),x.lookahead--,x.strstart++;if(u&&(R(x,!1),x.strm.avail_out===0))return T}return x.insert=x.strstart<j-1?x.strstart:j-1,Y===y?(R(x,!0),x.strm.avail_out===0?he:Q):x.last_lit&&(R(x,!1),x.strm.avail_out===0)?T:Z}function _(x,Y){for(var k,u,c;;){if(x.lookahead<de){if(z(x),x.lookahead<de&&Y===v)return T;if(x.lookahead===0)break}if(k=0,x.lookahead>=j&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+j-1])&x.hash_mask,k=x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart),x.prev_length=x.match_length,x.prev_match=x.match_start,x.match_length=j-1,k!==0&&x.prev_length<x.max_lazy_match&&x.strstart-k<=x.w_size-de&&(x.match_length=te(x,k),x.match_length<=5&&(x.strategy===1||x.match_length===j&&4096<x.strstart-x.match_start)&&(x.match_length=j-1)),x.prev_length>=j&&x.match_length<=x.prev_length){for(c=x.strstart+x.lookahead-j,u=a._tr_tally(x,x.strstart-1-x.prev_match,x.prev_length-j),x.lookahead-=x.prev_length-1,x.prev_length-=2;++x.strstart<=c&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+j-1])&x.hash_mask,k=x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart),--x.prev_length!=0;);if(x.match_available=0,x.match_length=j-1,x.strstart++,u&&(R(x,!1),x.strm.avail_out===0))return T}else if(x.match_available){if((u=a._tr_tally(x,0,x.window[x.strstart-1]))&&R(x,!1),x.strstart++,x.lookahead--,x.strm.avail_out===0)return T}else x.match_available=1,x.strstart++,x.lookahead--}return x.match_available&&(u=a._tr_tally(x,0,x.window[x.strstart-1]),x.match_available=0),x.insert=x.strstart<j-1?x.strstart:j-1,Y===y?(R(x,!0),x.strm.avail_out===0?he:Q):x.last_lit&&(R(x,!1),x.strm.avail_out===0)?T:Z}function M(x,Y,k,u,c){this.good_length=x,this.max_lazy=Y,this.nice_length=k,this.max_chain=u,this.func=c}function F(){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=p,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 o.Buf16(2*U),this.dyn_dtree=new o.Buf16(2*(2*O+1)),this.bl_tree=new o.Buf16(2*(2*H+1)),ae(this.dyn_ltree),ae(this.dyn_dtree),ae(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(G+1),this.heap=new o.Buf16(2*C+1),ae(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*C+1),ae(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 I(x){var Y;return x&&x.state?(x.total_in=x.total_out=0,x.data_type=d,(Y=x.state).pending=0,Y.pending_out=0,Y.wrap<0&&(Y.wrap=-Y.wrap),Y.status=Y.wrap?L:X,x.adler=Y.wrap===2?0:1,Y.last_flush=v,a._tr_init(Y),m):ne(x,N)}function D(x){var Y=I(x);return Y===m&&function(k){k.window_size=2*k.w_size,ae(k.head),k.max_lazy_match=s[k.level].max_lazy,k.good_match=s[k.level].good_length,k.nice_match=s[k.level].nice_length,k.max_chain_length=s[k.level].max_chain,k.strstart=0,k.block_start=0,k.lookahead=0,k.insert=0,k.match_length=k.prev_length=j-1,k.match_available=0,k.ins_h=0}(x.state),Y}function J(x,Y,k,u,c,w){if(!x)return N;var P=1;if(Y===b&&(Y=6),u<0?(P=0,u=-u):15<u&&(P=2,u-=16),c<1||E<c||k!==p||u<8||15<u||Y<0||9<Y||w<0||A<w)return ne(x,N);u===8&&(u=9);var W=new F;return(x.state=W).strm=x,W.wrap=P,W.gzhead=null,W.w_bits=u,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+j-1)/j),W.window=new o.Buf8(2*W.w_size),W.head=new o.Buf16(W.hash_size),W.prev=new o.Buf16(W.w_size),W.lit_bufsize=1<<c+6,W.pending_buf_size=4*W.lit_bufsize,W.pending_buf=new o.Buf8(W.pending_buf_size),W.d_buf=1*W.lit_bufsize,W.l_buf=3*W.lit_bufsize,W.level=Y,W.strategy=w,W.method=k,D(x)}s=[new M(0,0,0,0,function(x,Y){var k=65535;for(k>x.pending_buf_size-5&&(k=x.pending_buf_size-5);;){if(x.lookahead<=1){if(z(x),x.lookahead===0&&Y===v)return T;if(x.lookahead===0)break}x.strstart+=x.lookahead,x.lookahead=0;var u=x.block_start+k;if((x.strstart===0||x.strstart>=u)&&(x.lookahead=x.strstart-u,x.strstart=u,R(x,!1),x.strm.avail_out===0)||x.strstart-x.block_start>=x.w_size-de&&(R(x,!1),x.strm.avail_out===0))return T}return x.insert=0,Y===y?(R(x,!0),x.strm.avail_out===0?he:Q):(x.strstart>x.block_start&&(R(x,!1),x.strm.avail_out),T)}),new M(4,4,8,4,S),new M(4,5,16,8,S),new M(4,6,32,32,S),new M(4,4,16,16,_),new M(8,16,32,32,_),new M(8,16,128,128,_),new M(8,32,128,256,_),new M(32,128,258,1024,_),new M(32,258,258,4096,_)],i.deflateInit=function(x,Y){return J(x,Y,p,15,8,0)},i.deflateInit2=J,i.deflateReset=D,i.deflateResetKeep=I,i.deflateSetHeader=function(x,Y){return x&&x.state?x.state.wrap!==2?N:(x.state.gzhead=Y,m):N},i.deflate=function(x,Y){var k,u,c,w;if(!x||!x.state||5<Y||Y<0)return x?ne(x,N):N;if(u=x.state,!x.output||!x.input&&x.avail_in!==0||u.status===666&&Y!==y)return ne(x,x.avail_out===0?-5:N);if(u.strm=x,k=u.last_flush,u.last_flush=Y,u.status===L)if(u.wrap===2)x.adler=0,V(u,31),V(u,139),V(u,8),u.gzhead?(V(u,(u.gzhead.text?1:0)+(u.gzhead.hcrc?2:0)+(u.gzhead.extra?4:0)+(u.gzhead.name?8:0)+(u.gzhead.comment?16:0)),V(u,255&u.gzhead.time),V(u,u.gzhead.time>>8&255),V(u,u.gzhead.time>>16&255),V(u,u.gzhead.time>>24&255),V(u,u.level===9?2:2<=u.strategy||u.level<2?4:0),V(u,255&u.gzhead.os),u.gzhead.extra&&u.gzhead.extra.length&&(V(u,255&u.gzhead.extra.length),V(u,u.gzhead.extra.length>>8&255)),u.gzhead.hcrc&&(x.adler=h(x.adler,u.pending_buf,u.pending,0)),u.gzindex=0,u.status=69):(V(u,0),V(u,0),V(u,0),V(u,0),V(u,0),V(u,u.level===9?2:2<=u.strategy||u.level<2?4:0),V(u,3),u.status=X);else{var P=p+(u.w_bits-8<<4)<<8;P|=(2<=u.strategy||u.level<2?0:u.level<6?1:u.level===6?2:3)<<6,u.strstart!==0&&(P|=32),P+=31-P%31,u.status=X,$(u,P),u.strstart!==0&&($(u,x.adler>>>16),$(u,65535&x.adler)),x.adler=1}if(u.status===69)if(u.gzhead.extra){for(c=u.pending;u.gzindex<(65535&u.gzhead.extra.length)&&(u.pending!==u.pending_buf_size||(u.gzhead.hcrc&&u.pending>c&&(x.adler=h(x.adler,u.pending_buf,u.pending-c,c)),K(x),c=u.pending,u.pending!==u.pending_buf_size));)V(u,255&u.gzhead.extra[u.gzindex]),u.gzindex++;u.gzhead.hcrc&&u.pending>c&&(x.adler=h(x.adler,u.pending_buf,u.pending-c,c)),u.gzindex===u.gzhead.extra.length&&(u.gzindex=0,u.status=73)}else u.status=73;if(u.status===73)if(u.gzhead.name){c=u.pending;do{if(u.pending===u.pending_buf_size&&(u.gzhead.hcrc&&u.pending>c&&(x.adler=h(x.adler,u.pending_buf,u.pending-c,c)),K(x),c=u.pending,u.pending===u.pending_buf_size)){w=1;break}w=u.gzindex<u.gzhead.name.length?255&u.gzhead.name.charCodeAt(u.gzindex++):0,V(u,w)}while(w!==0);u.gzhead.hcrc&&u.pending>c&&(x.adler=h(x.adler,u.pending_buf,u.pending-c,c)),w===0&&(u.gzindex=0,u.status=91)}else u.status=91;if(u.status===91)if(u.gzhead.comment){c=u.pending;do{if(u.pending===u.pending_buf_size&&(u.gzhead.hcrc&&u.pending>c&&(x.adler=h(x.adler,u.pending_buf,u.pending-c,c)),K(x),c=u.pending,u.pending===u.pending_buf_size)){w=1;break}w=u.gzindex<u.gzhead.comment.length?255&u.gzhead.comment.charCodeAt(u.gzindex++):0,V(u,w)}while(w!==0);u.gzhead.hcrc&&u.pending>c&&(x.adler=h(x.adler,u.pending_buf,u.pending-c,c)),w===0&&(u.status=103)}else u.status=103;if(u.status===103&&(u.gzhead.hcrc?(u.pending+2>u.pending_buf_size&&K(x),u.pending+2<=u.pending_buf_size&&(V(u,255&x.adler),V(u,x.adler>>8&255),x.adler=0,u.status=X)):u.status=X),u.pending!==0){if(K(x),x.avail_out===0)return u.last_flush=-1,m}else if(x.avail_in===0&&q(Y)<=q(k)&&Y!==y)return ne(x,-5);if(u.status===666&&x.avail_in!==0)return ne(x,-5);if(x.avail_in!==0||u.lookahead!==0||Y!==v&&u.status!==666){var W=u.strategy===2?function(B,ie){for(var ce;;){if(B.lookahead===0&&(z(B),B.lookahead===0)){if(ie===v)return T;break}if(B.match_length=0,ce=a._tr_tally(B,0,B.window[B.strstart]),B.lookahead--,B.strstart++,ce&&(R(B,!1),B.strm.avail_out===0))return T}return B.insert=0,ie===y?(R(B,!0),B.strm.avail_out===0?he:Q):B.last_lit&&(R(B,!1),B.strm.avail_out===0)?T:Z}(u,Y):u.strategy===3?function(B,ie){for(var ce,oe,pe,ge,we=B.window;;){if(B.lookahead<=ee){if(z(B),B.lookahead<=ee&&ie===v)return T;if(B.lookahead===0)break}if(B.match_length=0,B.lookahead>=j&&0<B.strstart&&(oe=we[pe=B.strstart-1])===we[++pe]&&oe===we[++pe]&&oe===we[++pe]){ge=B.strstart+ee;do;while(oe===we[++pe]&&oe===we[++pe]&&oe===we[++pe]&&oe===we[++pe]&&oe===we[++pe]&&oe===we[++pe]&&oe===we[++pe]&&oe===we[++pe]&&pe<ge);B.match_length=ee-(ge-pe),B.match_length>B.lookahead&&(B.match_length=B.lookahead)}if(B.match_length>=j?(ce=a._tr_tally(B,1,B.match_length-j),B.lookahead-=B.match_length,B.strstart+=B.match_length,B.match_length=0):(ce=a._tr_tally(B,0,B.window[B.strstart]),B.lookahead--,B.strstart++),ce&&(R(B,!1),B.strm.avail_out===0))return T}return B.insert=0,ie===y?(R(B,!0),B.strm.avail_out===0?he:Q):B.last_lit&&(R(B,!1),B.strm.avail_out===0)?T:Z}(u,Y):s[u.level].func(u,Y);if(W!==he&&W!==Q||(u.status=666),W===T||W===he)return x.avail_out===0&&(u.last_flush=-1),m;if(W===Z&&(Y===1?a._tr_align(u):Y!==5&&(a._tr_stored_block(u,0,0,!1),Y===3&&(ae(u.head),u.lookahead===0&&(u.strstart=0,u.block_start=0,u.insert=0))),K(x),x.avail_out===0))return u.last_flush=-1,m}return Y!==y?m:u.wrap<=0?1:(u.wrap===2?(V(u,255&x.adler),V(u,x.adler>>8&255),V(u,x.adler>>16&255),V(u,x.adler>>24&255),V(u,255&x.total_in),V(u,x.total_in>>8&255),V(u,x.total_in>>16&255),V(u,x.total_in>>24&255)):($(u,x.adler>>>16),$(u,65535&x.adler)),K(x),0<u.wrap&&(u.wrap=-u.wrap),u.pending!==0?m:1)},i.deflateEnd=function(x){var Y;return x&&x.state?(Y=x.state.status)!==L&&Y!==69&&Y!==73&&Y!==91&&Y!==103&&Y!==X&&Y!==666?ne(x,N):(x.state=null,Y===X?ne(x,-3):m):N},i.deflateSetDictionary=function(x,Y){var k,u,c,w,P,W,B,ie,ce=Y.length;if(!x||!x.state||(w=(k=x.state).wrap)===2||w===1&&k.status!==L||k.lookahead)return N;for(w===1&&(x.adler=l(x.adler,Y,ce,0)),k.wrap=0,ce>=k.w_size&&(w===0&&(ae(k.head),k.strstart=0,k.block_start=0,k.insert=0),ie=new o.Buf8(k.w_size),o.arraySet(ie,Y,ce-k.w_size,k.w_size,0),Y=ie,ce=k.w_size),P=x.avail_in,W=x.next_in,B=x.input,x.avail_in=ce,x.next_in=0,x.input=Y,z(k);k.lookahead>=j;){for(u=k.strstart,c=k.lookahead-(j-1);k.ins_h=(k.ins_h<<k.hash_shift^k.window[u+j-1])&k.hash_mask,k.prev[u&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=u,u++,--c;);k.strstart=u,k.lookahead=j-1,z(k)}return k.strstart+=k.lookahead,k.block_start=k.strstart,k.insert=k.lookahead,k.lookahead=0,k.match_length=k.prev_length=j-1,k.match_available=0,x.next_in=W,x.input=B,x.avail_in=P,k.wrap=w,m},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(r,n,i){n.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(r,n,i){n.exports=function(s,o){var a,l,h,g,v,y,m,N,b,A,d,p,E,C,O,H,U,G,j,ee,de,L,X,T,Z;a=s.state,l=s.next_in,T=s.input,h=l+(s.avail_in-5),g=s.next_out,Z=s.output,v=g-(o-s.avail_out),y=g+(s.avail_out-257),m=a.dmax,N=a.wsize,b=a.whave,A=a.wnext,d=a.window,p=a.hold,E=a.bits,C=a.lencode,O=a.distcode,H=(1<<a.lenbits)-1,U=(1<<a.distbits)-1;e:do{E<15&&(p+=T[l++]<<E,E+=8,p+=T[l++]<<E,E+=8),G=C[p&H];t:for(;;){if(p>>>=j=G>>>24,E-=j,(j=G>>>16&255)===0)Z[g++]=65535&G;else{if(!(16&j)){if(!(64&j)){G=C[(65535&G)+(p&(1<<j)-1)];continue t}if(32&j){a.mode=12;break e}s.msg="invalid literal/length code",a.mode=30;break e}ee=65535&G,(j&=15)&&(E<j&&(p+=T[l++]<<E,E+=8),ee+=p&(1<<j)-1,p>>>=j,E-=j),E<15&&(p+=T[l++]<<E,E+=8,p+=T[l++]<<E,E+=8),G=O[p&U];r:for(;;){if(p>>>=j=G>>>24,E-=j,!(16&(j=G>>>16&255))){if(!(64&j)){G=O[(65535&G)+(p&(1<<j)-1)];continue r}s.msg="invalid distance code",a.mode=30;break e}if(de=65535&G,E<(j&=15)&&(p+=T[l++]<<E,(E+=8)<j&&(p+=T[l++]<<E,E+=8)),m<(de+=p&(1<<j)-1)){s.msg="invalid distance too far back",a.mode=30;break e}if(p>>>=j,E-=j,(j=g-v)<de){if(b<(j=de-j)&&a.sane){s.msg="invalid distance too far back",a.mode=30;break e}if(X=d,(L=0)===A){if(L+=N-j,j<ee){for(ee-=j;Z[g++]=d[L++],--j;);L=g-de,X=Z}}else if(A<j){if(L+=N+A-j,(j-=A)<ee){for(ee-=j;Z[g++]=d[L++],--j;);if(L=0,A<ee){for(ee-=j=A;Z[g++]=d[L++],--j;);L=g-de,X=Z}}}else if(L+=A-j,j<ee){for(ee-=j;Z[g++]=d[L++],--j;);L=g-de,X=Z}for(;2<ee;)Z[g++]=X[L++],Z[g++]=X[L++],Z[g++]=X[L++],ee-=3;ee&&(Z[g++]=X[L++],1<ee&&(Z[g++]=X[L++]))}else{for(L=g-de;Z[g++]=Z[L++],Z[g++]=Z[L++],Z[g++]=Z[L++],2<(ee-=3););ee&&(Z[g++]=Z[L++],1<ee&&(Z[g++]=Z[L++]))}break}}break}}while(l<h&&g<y);l-=ee=E>>3,p&=(1<<(E-=ee<<3))-1,s.next_in=l,s.next_out=g,s.avail_in=l<h?h-l+5:5-(l-h),s.avail_out=g<y?y-g+257:257-(g-y),a.hold=p,a.bits=E}},{}],49:[function(r,n,i){var s=r("../utils/common"),o=r("./adler32"),a=r("./crc32"),l=r("./inffast"),h=r("./inftrees"),g=1,v=2,y=0,m=-2,N=1,b=852,A=592;function d(L){return(L>>>24&255)+(L>>>8&65280)+((65280&L)<<8)+((255&L)<<24)}function p(){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 s.Buf16(320),this.work=new s.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function E(L){var X;return L&&L.state?(X=L.state,L.total_in=L.total_out=X.total=0,L.msg="",X.wrap&&(L.adler=1&X.wrap),X.mode=N,X.last=0,X.havedict=0,X.dmax=32768,X.head=null,X.hold=0,X.bits=0,X.lencode=X.lendyn=new s.Buf32(b),X.distcode=X.distdyn=new s.Buf32(A),X.sane=1,X.back=-1,y):m}function C(L){var X;return L&&L.state?((X=L.state).wsize=0,X.whave=0,X.wnext=0,E(L)):m}function O(L,X){var T,Z;return L&&L.state?(Z=L.state,X<0?(T=0,X=-X):(T=1+(X>>4),X<48&&(X&=15)),X&&(X<8||15<X)?m:(Z.window!==null&&Z.wbits!==X&&(Z.window=null),Z.wrap=T,Z.wbits=X,C(L))):m}function H(L,X){var T,Z;return L?(Z=new p,(L.state=Z).window=null,(T=O(L,X))!==y&&(L.state=null),T):m}var U,G,j=!0;function ee(L){if(j){var X;for(U=new s.Buf32(512),G=new s.Buf32(32),X=0;X<144;)L.lens[X++]=8;for(;X<256;)L.lens[X++]=9;for(;X<280;)L.lens[X++]=7;for(;X<288;)L.lens[X++]=8;for(h(g,L.lens,0,288,U,0,L.work,{bits:9}),X=0;X<32;)L.lens[X++]=5;h(v,L.lens,0,32,G,0,L.work,{bits:5}),j=!1}L.lencode=U,L.lenbits=9,L.distcode=G,L.distbits=5}function de(L,X,T,Z){var he,Q=L.state;return Q.window===null&&(Q.wsize=1<<Q.wbits,Q.wnext=0,Q.whave=0,Q.window=new s.Buf8(Q.wsize)),Z>=Q.wsize?(s.arraySet(Q.window,X,T-Q.wsize,Q.wsize,0),Q.wnext=0,Q.whave=Q.wsize):(Z<(he=Q.wsize-Q.wnext)&&(he=Z),s.arraySet(Q.window,X,T-Z,he,Q.wnext),(Z-=he)?(s.arraySet(Q.window,X,T-Z,Z,0),Q.wnext=Z,Q.whave=Q.wsize):(Q.wnext+=he,Q.wnext===Q.wsize&&(Q.wnext=0),Q.whave<Q.wsize&&(Q.whave+=he))),0}i.inflateReset=C,i.inflateReset2=O,i.inflateResetKeep=E,i.inflateInit=function(L){return H(L,15)},i.inflateInit2=H,i.inflate=function(L,X){var T,Z,he,Q,ne,q,ae,K,R,V,$,te,z,S,_,M,F,I,D,J,x,Y,k,u,c=0,w=new s.Buf8(4),P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!L||!L.state||!L.output||!L.input&&L.avail_in!==0)return m;(T=L.state).mode===12&&(T.mode=13),ne=L.next_out,he=L.output,ae=L.avail_out,Q=L.next_in,Z=L.input,q=L.avail_in,K=T.hold,R=T.bits,V=q,$=ae,Y=y;e:for(;;)switch(T.mode){case N:if(T.wrap===0){T.mode=13;break}for(;R<16;){if(q===0)break e;q--,K+=Z[Q++]<<R,R+=8}if(2&T.wrap&&K===35615){w[T.check=0]=255&K,w[1]=K>>>8&255,T.check=a(T.check,w,2,0),R=K=0,T.mode=2;break}if(T.flags=0,T.head&&(T.head.done=!1),!(1&T.wrap)||(((255&K)<<8)+(K>>8))%31){L.msg="incorrect header check",T.mode=30;break}if((15&K)!=8){L.msg="unknown compression method",T.mode=30;break}if(R-=4,x=8+(15&(K>>>=4)),T.wbits===0)T.wbits=x;else if(x>T.wbits){L.msg="invalid window size",T.mode=30;break}T.dmax=1<<x,L.adler=T.check=1,T.mode=512&K?10:12,R=K=0;break;case 2:for(;R<16;){if(q===0)break e;q--,K+=Z[Q++]<<R,R+=8}if(T.flags=K,(255&T.flags)!=8){L.msg="unknown compression method",T.mode=30;break}if(57344&T.flags){L.msg="unknown header flags set",T.mode=30;break}T.head&&(T.head.text=K>>8&1),512&T.flags&&(w[0]=255&K,w[1]=K>>>8&255,T.check=a(T.check,w,2,0)),R=K=0,T.mode=3;case 3:for(;R<32;){if(q===0)break e;q--,K+=Z[Q++]<<R,R+=8}T.head&&(T.head.time=K),512&T.flags&&(w[0]=255&K,w[1]=K>>>8&255,w[2]=K>>>16&255,w[3]=K>>>24&255,T.check=a(T.check,w,4,0)),R=K=0,T.mode=4;case 4:for(;R<16;){if(q===0)break e;q--,K+=Z[Q++]<<R,R+=8}T.head&&(T.head.xflags=255&K,T.head.os=K>>8),512&T.flags&&(w[0]=255&K,w[1]=K>>>8&255,T.check=a(T.check,w,2,0)),R=K=0,T.mode=5;case 5:if(1024&T.flags){for(;R<16;){if(q===0)break e;q--,K+=Z[Q++]<<R,R+=8}T.length=K,T.head&&(T.head.extra_len=K),512&T.flags&&(w[0]=255&K,w[1]=K>>>8&255,T.check=a(T.check,w,2,0)),R=K=0}else T.head&&(T.head.extra=null);T.mode=6;case 6:if(1024&T.flags&&(q<(te=T.length)&&(te=q),te&&(T.head&&(x=T.head.extra_len-T.length,T.head.extra||(T.head.extra=new Array(T.head.extra_len)),s.arraySet(T.head.extra,Z,Q,te,x)),512&T.flags&&(T.check=a(T.check,Z,te,Q)),q-=te,Q+=te,T.length-=te),T.length))break e;T.length=0,T.mode=7;case 7:if(2048&T.flags){if(q===0)break e;for(te=0;x=Z[Q+te++],T.head&&x&&T.length<65536&&(T.head.name+=String.fromCharCode(x)),x&&te<q;);if(512&T.flags&&(T.check=a(T.check,Z,te,Q)),q-=te,Q+=te,x)break e}else T.head&&(T.head.name=null);T.length=0,T.mode=8;case 8:if(4096&T.flags){if(q===0)break e;for(te=0;x=Z[Q+te++],T.head&&x&&T.length<65536&&(T.head.comment+=String.fromCharCode(x)),x&&te<q;);if(512&T.flags&&(T.check=a(T.check,Z,te,Q)),q-=te,Q+=te,x)break e}else T.head&&(T.head.comment=null);T.mode=9;case 9:if(512&T.flags){for(;R<16;){if(q===0)break e;q--,K+=Z[Q++]<<R,R+=8}if(K!==(65535&T.check)){L.msg="header crc mismatch",T.mode=30;break}R=K=0}T.head&&(T.head.hcrc=T.flags>>9&1,T.head.done=!0),L.adler=T.check=0,T.mode=12;break;case 10:for(;R<32;){if(q===0)break e;q--,K+=Z[Q++]<<R,R+=8}L.adler=T.check=d(K),R=K=0,T.mode=11;case 11:if(T.havedict===0)return L.next_out=ne,L.avail_out=ae,L.next_in=Q,L.avail_in=q,T.hold=K,T.bits=R,2;L.adler=T.check=1,T.mode=12;case 12:if(X===5||X===6)break e;case 13:if(T.last){K>>>=7&R,R-=7&R,T.mode=27;break}for(;R<3;){if(q===0)break e;q--,K+=Z[Q++]<<R,R+=8}switch(T.last=1&K,R-=1,3&(K>>>=1)){case 0:T.mode=14;break;case 1:if(ee(T),T.mode=20,X!==6)break;K>>>=2,R-=2;break e;case 2:T.mode=17;break;case 3:L.msg="invalid block type",T.mode=30}K>>>=2,R-=2;break;case 14:for(K>>>=7&R,R-=7&R;R<32;){if(q===0)break e;q--,K+=Z[Q++]<<R,R+=8}if((65535&K)!=(K>>>16^65535)){L.msg="invalid stored block lengths",T.mode=30;break}if(T.length=65535&K,R=K=0,T.mode=15,X===6)break e;case 15:T.mode=16;case 16:if(te=T.length){if(q<te&&(te=q),ae<te&&(te=ae),te===0)break e;s.arraySet(he,Z,Q,te,ne),q-=te,Q+=te,ae-=te,ne+=te,T.length-=te;break}T.mode=12;break;case 17:for(;R<14;){if(q===0)break e;q--,K+=Z[Q++]<<R,R+=8}if(T.nlen=257+(31&K),K>>>=5,R-=5,T.ndist=1+(31&K),K>>>=5,R-=5,T.ncode=4+(15&K),K>>>=4,R-=4,286<T.nlen||30<T.ndist){L.msg="too many length or distance symbols",T.mode=30;break}T.have=0,T.mode=18;case 18:for(;T.have<T.ncode;){for(;R<3;){if(q===0)break e;q--,K+=Z[Q++]<<R,R+=8}T.lens[P[T.have++]]=7&K,K>>>=3,R-=3}for(;T.have<19;)T.lens[P[T.have++]]=0;if(T.lencode=T.lendyn,T.lenbits=7,k={bits:T.lenbits},Y=h(0,T.lens,0,19,T.lencode,0,T.work,k),T.lenbits=k.bits,Y){L.msg="invalid code lengths set",T.mode=30;break}T.have=0,T.mode=19;case 19:for(;T.have<T.nlen+T.ndist;){for(;M=(c=T.lencode[K&(1<<T.lenbits)-1])>>>16&255,F=65535&c,!((_=c>>>24)<=R);){if(q===0)break e;q--,K+=Z[Q++]<<R,R+=8}if(F<16)K>>>=_,R-=_,T.lens[T.have++]=F;else{if(F===16){for(u=_+2;R<u;){if(q===0)break e;q--,K+=Z[Q++]<<R,R+=8}if(K>>>=_,R-=_,T.have===0){L.msg="invalid bit length repeat",T.mode=30;break}x=T.lens[T.have-1],te=3+(3&K),K>>>=2,R-=2}else if(F===17){for(u=_+3;R<u;){if(q===0)break e;q--,K+=Z[Q++]<<R,R+=8}R-=_,x=0,te=3+(7&(K>>>=_)),K>>>=3,R-=3}else{for(u=_+7;R<u;){if(q===0)break e;q--,K+=Z[Q++]<<R,R+=8}R-=_,x=0,te=11+(127&(K>>>=_)),K>>>=7,R-=7}if(T.have+te>T.nlen+T.ndist){L.msg="invalid bit length repeat",T.mode=30;break}for(;te--;)T.lens[T.have++]=x}}if(T.mode===30)break;if(T.lens[256]===0){L.msg="invalid code -- missing end-of-block",T.mode=30;break}if(T.lenbits=9,k={bits:T.lenbits},Y=h(g,T.lens,0,T.nlen,T.lencode,0,T.work,k),T.lenbits=k.bits,Y){L.msg="invalid literal/lengths set",T.mode=30;break}if(T.distbits=6,T.distcode=T.distdyn,k={bits:T.distbits},Y=h(v,T.lens,T.nlen,T.ndist,T.distcode,0,T.work,k),T.distbits=k.bits,Y){L.msg="invalid distances set",T.mode=30;break}if(T.mode=20,X===6)break e;case 20:T.mode=21;case 21:if(6<=q&&258<=ae){L.next_out=ne,L.avail_out=ae,L.next_in=Q,L.avail_in=q,T.hold=K,T.bits=R,l(L,$),ne=L.next_out,he=L.output,ae=L.avail_out,Q=L.next_in,Z=L.input,q=L.avail_in,K=T.hold,R=T.bits,T.mode===12&&(T.back=-1);break}for(T.back=0;M=(c=T.lencode[K&(1<<T.lenbits)-1])>>>16&255,F=65535&c,!((_=c>>>24)<=R);){if(q===0)break e;q--,K+=Z[Q++]<<R,R+=8}if(M&&!(240&M)){for(I=_,D=M,J=F;M=(c=T.lencode[J+((K&(1<<I+D)-1)>>I)])>>>16&255,F=65535&c,!(I+(_=c>>>24)<=R);){if(q===0)break e;q--,K+=Z[Q++]<<R,R+=8}K>>>=I,R-=I,T.back+=I}if(K>>>=_,R-=_,T.back+=_,T.length=F,M===0){T.mode=26;break}if(32&M){T.back=-1,T.mode=12;break}if(64&M){L.msg="invalid literal/length code",T.mode=30;break}T.extra=15&M,T.mode=22;case 22:if(T.extra){for(u=T.extra;R<u;){if(q===0)break e;q--,K+=Z[Q++]<<R,R+=8}T.length+=K&(1<<T.extra)-1,K>>>=T.extra,R-=T.extra,T.back+=T.extra}T.was=T.length,T.mode=23;case 23:for(;M=(c=T.distcode[K&(1<<T.distbits)-1])>>>16&255,F=65535&c,!((_=c>>>24)<=R);){if(q===0)break e;q--,K+=Z[Q++]<<R,R+=8}if(!(240&M)){for(I=_,D=M,J=F;M=(c=T.distcode[J+((K&(1<<I+D)-1)>>I)])>>>16&255,F=65535&c,!(I+(_=c>>>24)<=R);){if(q===0)break e;q--,K+=Z[Q++]<<R,R+=8}K>>>=I,R-=I,T.back+=I}if(K>>>=_,R-=_,T.back+=_,64&M){L.msg="invalid distance code",T.mode=30;break}T.offset=F,T.extra=15&M,T.mode=24;case 24:if(T.extra){for(u=T.extra;R<u;){if(q===0)break e;q--,K+=Z[Q++]<<R,R+=8}T.offset+=K&(1<<T.extra)-1,K>>>=T.extra,R-=T.extra,T.back+=T.extra}if(T.offset>T.dmax){L.msg="invalid distance too far back",T.mode=30;break}T.mode=25;case 25:if(ae===0)break e;if(te=$-ae,T.offset>te){if((te=T.offset-te)>T.whave&&T.sane){L.msg="invalid distance too far back",T.mode=30;break}z=te>T.wnext?(te-=T.wnext,T.wsize-te):T.wnext-te,te>T.length&&(te=T.length),S=T.window}else S=he,z=ne-T.offset,te=T.length;for(ae<te&&(te=ae),ae-=te,T.length-=te;he[ne++]=S[z++],--te;);T.length===0&&(T.mode=21);break;case 26:if(ae===0)break e;he[ne++]=T.length,ae--,T.mode=21;break;case 27:if(T.wrap){for(;R<32;){if(q===0)break e;q--,K|=Z[Q++]<<R,R+=8}if($-=ae,L.total_out+=$,T.total+=$,$&&(L.adler=T.check=T.flags?a(T.check,he,$,ne-$):o(T.check,he,$,ne-$)),$=ae,(T.flags?K:d(K))!==T.check){L.msg="incorrect data check",T.mode=30;break}R=K=0}T.mode=28;case 28:if(T.wrap&&T.flags){for(;R<32;){if(q===0)break e;q--,K+=Z[Q++]<<R,R+=8}if(K!==(4294967295&T.total)){L.msg="incorrect length check",T.mode=30;break}R=K=0}T.mode=29;case 29:Y=1;break e;case 30:Y=-3;break e;case 31:return-4;case 32:default:return m}return L.next_out=ne,L.avail_out=ae,L.next_in=Q,L.avail_in=q,T.hold=K,T.bits=R,(T.wsize||$!==L.avail_out&&T.mode<30&&(T.mode<27||X!==4))&&de(L,L.output,L.next_out,$-L.avail_out)?(T.mode=31,-4):(V-=L.avail_in,$-=L.avail_out,L.total_in+=V,L.total_out+=$,T.total+=$,T.wrap&&$&&(L.adler=T.check=T.flags?a(T.check,he,$,L.next_out-$):o(T.check,he,$,L.next_out-$)),L.data_type=T.bits+(T.last?64:0)+(T.mode===12?128:0)+(T.mode===20||T.mode===15?256:0),(V==0&&$===0||X===4)&&Y===y&&(Y=-5),Y)},i.inflateEnd=function(L){if(!L||!L.state)return m;var X=L.state;return X.window&&(X.window=null),L.state=null,y},i.inflateGetHeader=function(L,X){var T;return L&&L.state&&2&(T=L.state).wrap?((T.head=X).done=!1,y):m},i.inflateSetDictionary=function(L,X){var T,Z=X.length;return L&&L.state?(T=L.state).wrap!==0&&T.mode!==11?m:T.mode===11&&o(1,X,Z,0)!==T.check?-3:de(L,X,Z,Z)?(T.mode=31,-4):(T.havedict=1,y):m},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(r,n,i){var s=r("../utils/common"),o=[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],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],l=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],h=[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(g,v,y,m,N,b,A,d){var p,E,C,O,H,U,G,j,ee,de=d.bits,L=0,X=0,T=0,Z=0,he=0,Q=0,ne=0,q=0,ae=0,K=0,R=null,V=0,$=new s.Buf16(16),te=new s.Buf16(16),z=null,S=0;for(L=0;L<=15;L++)$[L]=0;for(X=0;X<m;X++)$[v[y+X]]++;for(he=de,Z=15;1<=Z&&$[Z]===0;Z--);if(Z<he&&(he=Z),Z===0)return N[b++]=20971520,N[b++]=20971520,d.bits=1,0;for(T=1;T<Z&&$[T]===0;T++);for(he<T&&(he=T),L=q=1;L<=15;L++)if(q<<=1,(q-=$[L])<0)return-1;if(0<q&&(g===0||Z!==1))return-1;for(te[1]=0,L=1;L<15;L++)te[L+1]=te[L]+$[L];for(X=0;X<m;X++)v[y+X]!==0&&(A[te[v[y+X]]++]=X);if(U=g===0?(R=z=A,19):g===1?(R=o,V-=257,z=a,S-=257,256):(R=l,z=h,-1),L=T,H=b,ne=X=K=0,C=-1,O=(ae=1<<(Q=he))-1,g===1&&852<ae||g===2&&592<ae)return 1;for(;;){for(G=L-ne,ee=A[X]<U?(j=0,A[X]):A[X]>U?(j=z[S+A[X]],R[V+A[X]]):(j=96,0),p=1<<L-ne,T=E=1<<Q;N[H+(K>>ne)+(E-=p)]=G<<24|j<<16|ee|0,E!==0;);for(p=1<<L-1;K&p;)p>>=1;if(p!==0?(K&=p-1,K+=p):K=0,X++,--$[L]==0){if(L===Z)break;L=v[y+A[X]]}if(he<L&&(K&O)!==C){for(ne===0&&(ne=he),H+=T,q=1<<(Q=L-ne);Q+ne<Z&&!((q-=$[Q+ne])<=0);)Q++,q<<=1;if(ae+=1<<Q,g===1&&852<ae||g===2&&592<ae)return 1;N[C=K&O]=he<<24|Q<<16|H-b|0}}return K!==0&&(N[H+K]=L-ne<<24|64<<16|0),d.bits=he,0}},{"../utils/common":41}],51:[function(r,n,i){n.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(r,n,i){var s=r("../utils/common"),o=0,a=1;function l(c){for(var w=c.length;0<=--w;)c[w]=0}var h=0,g=29,v=256,y=v+1+g,m=30,N=19,b=2*y+1,A=15,d=16,p=7,E=256,C=16,O=17,H=18,U=[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],G=[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],j=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ee=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],de=new Array(2*(y+2));l(de);var L=new Array(2*m);l(L);var X=new Array(512);l(X);var T=new Array(256);l(T);var Z=new Array(g);l(Z);var he,Q,ne,q=new Array(m);function ae(c,w,P,W,B){this.static_tree=c,this.extra_bits=w,this.extra_base=P,this.elems=W,this.max_length=B,this.has_stree=c&&c.length}function K(c,w){this.dyn_tree=c,this.max_code=0,this.stat_desc=w}function R(c){return c<256?X[c]:X[256+(c>>>7)]}function V(c,w){c.pending_buf[c.pending++]=255&w,c.pending_buf[c.pending++]=w>>>8&255}function $(c,w,P){c.bi_valid>d-P?(c.bi_buf|=w<<c.bi_valid&65535,V(c,c.bi_buf),c.bi_buf=w>>d-c.bi_valid,c.bi_valid+=P-d):(c.bi_buf|=w<<c.bi_valid&65535,c.bi_valid+=P)}function te(c,w,P){$(c,P[2*w],P[2*w+1])}function z(c,w){for(var P=0;P|=1&c,c>>>=1,P<<=1,0<--w;);return P>>>1}function S(c,w,P){var W,B,ie=new Array(A+1),ce=0;for(W=1;W<=A;W++)ie[W]=ce=ce+P[W-1]<<1;for(B=0;B<=w;B++){var oe=c[2*B+1];oe!==0&&(c[2*B]=z(ie[oe]++,oe))}}function _(c){var w;for(w=0;w<y;w++)c.dyn_ltree[2*w]=0;for(w=0;w<m;w++)c.dyn_dtree[2*w]=0;for(w=0;w<N;w++)c.bl_tree[2*w]=0;c.dyn_ltree[2*E]=1,c.opt_len=c.static_len=0,c.last_lit=c.matches=0}function M(c){8<c.bi_valid?V(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 F(c,w,P,W){var B=2*w,ie=2*P;return c[B]<c[ie]||c[B]===c[ie]&&W[w]<=W[P]}function I(c,w,P){for(var W=c.heap[P],B=P<<1;B<=c.heap_len&&(B<c.heap_len&&F(w,c.heap[B+1],c.heap[B],c.depth)&&B++,!F(w,W,c.heap[B],c.depth));)c.heap[P]=c.heap[B],P=B,B<<=1;c.heap[P]=W}function D(c,w,P){var W,B,ie,ce,oe=0;if(c.last_lit!==0)for(;W=c.pending_buf[c.d_buf+2*oe]<<8|c.pending_buf[c.d_buf+2*oe+1],B=c.pending_buf[c.l_buf+oe],oe++,W===0?te(c,B,w):(te(c,(ie=T[B])+v+1,w),(ce=U[ie])!==0&&$(c,B-=Z[ie],ce),te(c,ie=R(--W),P),(ce=G[ie])!==0&&$(c,W-=q[ie],ce)),oe<c.last_lit;);te(c,E,w)}function J(c,w){var P,W,B,ie=w.dyn_tree,ce=w.stat_desc.static_tree,oe=w.stat_desc.has_stree,pe=w.stat_desc.elems,ge=-1;for(c.heap_len=0,c.heap_max=b,P=0;P<pe;P++)ie[2*P]!==0?(c.heap[++c.heap_len]=ge=P,c.depth[P]=0):ie[2*P+1]=0;for(;c.heap_len<2;)ie[2*(B=c.heap[++c.heap_len]=ge<2?++ge:0)]=1,c.depth[B]=0,c.opt_len--,oe&&(c.static_len-=ce[2*B+1]);for(w.max_code=ge,P=c.heap_len>>1;1<=P;P--)I(c,ie,P);for(B=pe;P=c.heap[1],c.heap[1]=c.heap[c.heap_len--],I(c,ie,1),W=c.heap[1],c.heap[--c.heap_max]=P,c.heap[--c.heap_max]=W,ie[2*B]=ie[2*P]+ie[2*W],c.depth[B]=(c.depth[P]>=c.depth[W]?c.depth[P]:c.depth[W])+1,ie[2*P+1]=ie[2*W+1]=B,c.heap[1]=B++,I(c,ie,1),2<=c.heap_len;);c.heap[--c.heap_max]=c.heap[1],function(we,st){var dr,Ut,Yn,Fe,Qi,Ko,Zt=st.dyn_tree,Nc=st.max_code,ng=st.stat_desc.static_tree,ig=st.stat_desc.has_stree,sg=st.stat_desc.extra_bits,kc=st.stat_desc.extra_base,Zn=st.stat_desc.max_length,Ji=0;for(Fe=0;Fe<=A;Fe++)we.bl_count[Fe]=0;for(Zt[2*we.heap[we.heap_max]+1]=0,dr=we.heap_max+1;dr<b;dr++)Zn<(Fe=Zt[2*Zt[2*(Ut=we.heap[dr])+1]+1]+1)&&(Fe=Zn,Ji++),Zt[2*Ut+1]=Fe,Nc<Ut||(we.bl_count[Fe]++,Qi=0,kc<=Ut&&(Qi=sg[Ut-kc]),Ko=Zt[2*Ut],we.opt_len+=Ko*(Fe+Qi),ig&&(we.static_len+=Ko*(ng[2*Ut+1]+Qi)));if(Ji!==0){do{for(Fe=Zn-1;we.bl_count[Fe]===0;)Fe--;we.bl_count[Fe]--,we.bl_count[Fe+1]+=2,we.bl_count[Zn]--,Ji-=2}while(0<Ji);for(Fe=Zn;Fe!==0;Fe--)for(Ut=we.bl_count[Fe];Ut!==0;)Nc<(Yn=we.heap[--dr])||(Zt[2*Yn+1]!==Fe&&(we.opt_len+=(Fe-Zt[2*Yn+1])*Zt[2*Yn],Zt[2*Yn+1]=Fe),Ut--)}}(c,w),S(ie,ge,c.bl_count)}function x(c,w,P){var W,B,ie=-1,ce=w[1],oe=0,pe=7,ge=4;for(ce===0&&(pe=138,ge=3),w[2*(P+1)+1]=65535,W=0;W<=P;W++)B=ce,ce=w[2*(W+1)+1],++oe<pe&&B===ce||(oe<ge?c.bl_tree[2*B]+=oe:B!==0?(B!==ie&&c.bl_tree[2*B]++,c.bl_tree[2*C]++):oe<=10?c.bl_tree[2*O]++:c.bl_tree[2*H]++,ie=B,ge=(oe=0)===ce?(pe=138,3):B===ce?(pe=6,3):(pe=7,4))}function Y(c,w,P){var W,B,ie=-1,ce=w[1],oe=0,pe=7,ge=4;for(ce===0&&(pe=138,ge=3),W=0;W<=P;W++)if(B=ce,ce=w[2*(W+1)+1],!(++oe<pe&&B===ce)){if(oe<ge)for(;te(c,B,c.bl_tree),--oe!=0;);else B!==0?(B!==ie&&(te(c,B,c.bl_tree),oe--),te(c,C,c.bl_tree),$(c,oe-3,2)):oe<=10?(te(c,O,c.bl_tree),$(c,oe-3,3)):(te(c,H,c.bl_tree),$(c,oe-11,7));ie=B,ge=(oe=0)===ce?(pe=138,3):B===ce?(pe=6,3):(pe=7,4)}}l(q);var k=!1;function u(c,w,P,W){$(c,(h<<1)+(W?1:0),3),function(B,ie,ce,oe){M(B),V(B,ce),V(B,~ce),s.arraySet(B.pending_buf,B.window,ie,ce,B.pending),B.pending+=ce}(c,w,P)}i._tr_init=function(c){k||(function(){var w,P,W,B,ie,ce=new Array(A+1);for(B=W=0;B<g-1;B++)for(Z[B]=W,w=0;w<1<<U[B];w++)T[W++]=B;for(T[W-1]=B,B=ie=0;B<16;B++)for(q[B]=ie,w=0;w<1<<G[B];w++)X[ie++]=B;for(ie>>=7;B<m;B++)for(q[B]=ie<<7,w=0;w<1<<G[B]-7;w++)X[256+ie++]=B;for(P=0;P<=A;P++)ce[P]=0;for(w=0;w<=143;)de[2*w+1]=8,w++,ce[8]++;for(;w<=255;)de[2*w+1]=9,w++,ce[9]++;for(;w<=279;)de[2*w+1]=7,w++,ce[7]++;for(;w<=287;)de[2*w+1]=8,w++,ce[8]++;for(S(de,y+1,ce),w=0;w<m;w++)L[2*w+1]=5,L[2*w]=z(w,5);he=new ae(de,U,v+1,y,A),Q=new ae(L,G,0,m,A),ne=new ae(new Array(0),j,0,N,p)}(),k=!0),c.l_desc=new K(c.dyn_ltree,he),c.d_desc=new K(c.dyn_dtree,Q),c.bl_desc=new K(c.bl_tree,ne),c.bi_buf=0,c.bi_valid=0,_(c)},i._tr_stored_block=u,i._tr_flush_block=function(c,w,P,W){var B,ie,ce=0;0<c.level?(c.strm.data_type===2&&(c.strm.data_type=function(oe){var pe,ge=4093624447;for(pe=0;pe<=31;pe++,ge>>>=1)if(1&ge&&oe.dyn_ltree[2*pe]!==0)return o;if(oe.dyn_ltree[18]!==0||oe.dyn_ltree[20]!==0||oe.dyn_ltree[26]!==0)return a;for(pe=32;pe<v;pe++)if(oe.dyn_ltree[2*pe]!==0)return a;return o}(c)),J(c,c.l_desc),J(c,c.d_desc),ce=function(oe){var pe;for(x(oe,oe.dyn_ltree,oe.l_desc.max_code),x(oe,oe.dyn_dtree,oe.d_desc.max_code),J(oe,oe.bl_desc),pe=N-1;3<=pe&&oe.bl_tree[2*ee[pe]+1]===0;pe--);return oe.opt_len+=3*(pe+1)+5+5+4,pe}(c),B=c.opt_len+3+7>>>3,(ie=c.static_len+3+7>>>3)<=B&&(B=ie)):B=ie=P+5,P+4<=B&&w!==-1?u(c,w,P,W):c.strategy===4||ie===B?($(c,2+(W?1:0),3),D(c,de,L)):($(c,4+(W?1:0),3),function(oe,pe,ge,we){var st;for($(oe,pe-257,5),$(oe,ge-1,5),$(oe,we-4,4),st=0;st<we;st++)$(oe,oe.bl_tree[2*ee[st]+1],3);Y(oe,oe.dyn_ltree,pe-1),Y(oe,oe.dyn_dtree,ge-1)}(c,c.l_desc.max_code+1,c.d_desc.max_code+1,ce+1),D(c,c.dyn_ltree,c.dyn_dtree)),_(c),W&&M(c)},i._tr_tally=function(c,w,P){return c.pending_buf[c.d_buf+2*c.last_lit]=w>>>8&255,c.pending_buf[c.d_buf+2*c.last_lit+1]=255&w,c.pending_buf[c.l_buf+c.last_lit]=255&P,c.last_lit++,w===0?c.dyn_ltree[2*P]++:(c.matches++,w--,c.dyn_ltree[2*(T[P]+v+1)]++,c.dyn_dtree[2*R(w)]++),c.last_lit===c.lit_bufsize-1},i._tr_align=function(c){$(c,2,3),te(c,E,de),function(w){w.bi_valid===16?(V(w,w.bi_buf),w.bi_buf=0,w.bi_valid=0):8<=w.bi_valid&&(w.pending_buf[w.pending++]=255&w.bi_buf,w.bi_buf>>=8,w.bi_valid-=8)}(c)}},{"../utils/common":41}],53:[function(r,n,i){n.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(r,n,i){(function(s){(function(o,a){if(!o.setImmediate){var l,h,g,v,y=1,m={},N=!1,b=o.document,A=Object.getPrototypeOf&&Object.getPrototypeOf(o);A=A&&A.setTimeout?A:o,l={}.toString.call(o.process)==="[object process]"?function(C){xe.nextTick(function(){p(C)})}:function(){if(o.postMessage&&!o.importScripts){var C=!0,O=o.onmessage;return o.onmessage=function(){C=!1},o.postMessage("","*"),o.onmessage=O,C}}()?(v="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",E,!1):o.attachEvent("onmessage",E),function(C){o.postMessage(v+C,"*")}):o.MessageChannel?((g=new MessageChannel).port1.onmessage=function(C){p(C.data)},function(C){g.port2.postMessage(C)}):b&&"onreadystatechange"in b.createElement("script")?(h=b.documentElement,function(C){var O=b.createElement("script");O.onreadystatechange=function(){p(C),O.onreadystatechange=null,h.removeChild(O),O=null},h.appendChild(O)}):function(C){setTimeout(p,0,C)},A.setImmediate=function(C){typeof C!="function"&&(C=new Function(""+C));for(var O=new Array(arguments.length-1),H=0;H<O.length;H++)O[H]=arguments[H+1];var U={callback:C,args:O};return m[y]=U,l(y),y++},A.clearImmediate=d}function d(C){delete m[C]}function p(C){if(N)setTimeout(p,0,C);else{var O=m[C];if(O){N=!0;try{(function(H){var U=H.callback,G=H.args;switch(G.length){case 0:U();break;case 1:U(G[0]);break;case 2:U(G[0],G[1]);break;case 3:U(G[0],G[1],G[2]);break;default:U.apply(a,G)}})(O)}finally{d(C),N=!1}}}}function E(C){C.source===o&&typeof C.data=="string"&&C.data.indexOf(v)===0&&p(+C.data.slice(v.length))}})(typeof self>"u"?s===void 0?this:s:self)}).call(this,typeof qt<"u"?qt:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(eg);var kb=eg.exports;const Tb=im(kb);var mo={exports:{}},Ab={"&":"&",'"':""","'":"'","<":"<",">":">"};function Cb(t){return t&&t.replace?t.replace(/([&"<>'])/g,function(e,r){return Ab[r]}):t}var jb=Cb,fu=jb,zd=hc.Stream,Rb=" ";function Ib(t,e){typeof e!="object"&&(e={indent:e});var r=e.stream?new zd:null,n="",i=!1,s=e.indent?e.indent===!0?Rb:e.indent:"",o=!0;function a(y){o?xe.nextTick(y):y()}function l(y,m){if(m!==void 0&&(n+=m),y&&!i&&(r=r||new zd,i=!0),y&&i){var N=n;a(function(){r.emit("data",N)}),n=""}}function h(y,m){Sc(l,go(y,s,s?1:0),m)}function g(){if(r){var y=n;a(function(){r.emit("data",y),r.emit("end"),r.readable=!1,r.emit("close")})}}function v(y){var m=y.encoding||"UTF-8",N={version:"1.0",encoding:m};y.standalone&&(N.standalone=y.standalone),h({"?xml":{_attr:N}}),n=n.replace("/>","?>")}return a(function(){o=!1}),e.declaration&&v(e.declaration),t&&t.forEach?t.forEach(function(y,m){var N;m+1===t.length&&(N=g),h(y,N)}):h(t,g),r?(r.readable=!0,r):n}function Ob(){var t=Array.prototype.slice.call(arguments),e={_elem:go(t)};return e.push=function(r){if(!this.append)throw new Error("not assigned to a parent!");var n=this,i=this._elem.indent;Sc(this.append,go(r,i,this._elem.icount+(i?1:0)),function(){n.append(!0)})},e.close=function(r){r!==void 0&&this.push(r),this.end&&this.end()},e}function Db(t,e){return new Array(e||0).join(t||"")}function go(t,e,r){r=r||0;var n=Db(e,r),i,s=t,o=!1;if(typeof t=="object"){var a=Object.keys(t);if(i=a[0],s=t[i],s&&s._elem)return s._elem.name=i,s._elem.icount=r,s._elem.indent=e,s._elem.indents=n,s._elem.interrupt=s,s._elem}var l=[],h=[],g;function v(y){var m=Object.keys(y);m.forEach(function(N){l.push(Pb(N,y[N]))})}switch(typeof s){case"object":if(s===null)break;s._attr&&v(s._attr),s._cdata&&h.push(("<![CDATA["+s._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),s.forEach&&(g=!1,h.push(""),s.forEach(function(y){if(typeof y=="object"){var m=Object.keys(y)[0];m=="_attr"?v(y._attr):h.push(go(y,e,r+1))}else h.pop(),g=!0,h.push(fu(y))}),g||h.push(""));break;default:h.push(fu(s))}return{name:i,interrupt:o,attributes:l,content:h,icount:r,indents:n,indent:e}}function Sc(t,e,r){if(typeof e!="object")return t(!1,e);var n=e.interrupt?1:e.content.length;function i(){for(;e.content.length;){var o=e.content.shift();if(o!==void 0){if(s(o))return;Sc(t,o)}}t(!1,(n>1?e.indents:"")+(e.name?"</"+e.name+">":"")+(e.indent&&!r?`
|
||
`:"")),r&&r()}function s(o){return o.interrupt?(o.interrupt.append=t,o.interrupt.end=i,o.interrupt=!1,t(!0),!0):!1}if(t(!1,e.indents+(e.name?"<"+e.name:"")+(e.attributes.length?" "+e.attributes.join(" "):"")+(n?e.name?">":"":e.name?"/>":"")+(e.indent&&n>1?`
|
||
`:"")),!n)return t(!1,e.indent?`
|
||
`:"");s(e)||i()}function Pb(t,e){return t+'="'+fu(e)+'"'}mo.exports=Ib;mo.exports.element=mo.exports.Element=Ob;var Lb=mo.exports;const Be=im(Lb),Wd=0,Hd=32,Fb=32,Bb=(t,e)=>{const r=e.replace(/-/g,"");if(r.length!==Fb)throw new Error(`Error: Cannot extract GUID from font filename: ${e}`);const i=r.replace(/(..)/g,"$1 ").trim().split(" ").map(l=>parseInt(l,16));i.reverse();const o=t.slice(Wd,Hd).map((l,h)=>l^i[h%i.length]);return Buffer.concat([t.slice(0,Wd),o,t.slice(Hd)])};class Mb{format(e,r={stack:[]}){const n=e.prepForXml(r);if(n)return n;throw Error("XMLComponent did not format correctly")}}class Ub{replace(e,r,n){let i=e;return r.forEach((s,o)=>{i=i.replace(new RegExp(`{${s.fileName}}`,"g"),(n+o).toString())}),i}getMediaData(e,r){return r.Array.filter(n=>e.search(`{${n.fileName}}`)>0)}}class zb{replace(e,r){let n=e;for(const i of r)n=n.replace(new RegExp(`{${i.reference}-${i.instance}}`,"g"),i.numId.toString());return n}}class Wb{constructor(){se(this,"formatter"),se(this,"imageReplacer"),se(this,"numberingReplacer"),this.formatter=new Mb,this.imageReplacer=new Ub,this.numberingReplacer=new zb}compile(e,r){const n=new Tb,i=this.xmlifyFile(e,r),s=new Map(Object.entries(i));for(const[,o]of s)if(Array.isArray(o))for(const a of o)n.file(a.path,a.data);else n.file(o.path,o.data);for(const o of e.Media.Array)o.type!=="svg"?n.file(`word/media/${o.fileName}`,o.data):(n.file(`word/media/${o.fileName}`,o.data),n.file(`word/media/${o.fallback.fileName}`,o.fallback.data));for(const{data:o,name:a,fontKey:l}of e.FontTable.fontOptionsWithKey){const[h]=a.split(".");n.file(`word/fonts/${h}.odttf`,Bb(o,l))}return n}xmlifyFile(e,r){const n=e.Document.Relationships.RelationshipCount+1,i=Be(this.formatter.format(e.Document.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),s=this.imageReplacer.getMediaData(i,e.Media);return{Relationships:{data:(s.forEach((o,a)=>{e.Document.Relationships.createRelationship(n+a,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${o.fileName}`)}),Be(this.formatter.format(e.Document.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}})),path:"word/_rels/document.xml.rels"},Document:{data:(()=>{const o=this.imageReplacer.replace(i,s,n);return this.numberingReplacer.replace(o,e.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{const o=Be(this.formatter.format(e.Styles,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(o,e.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:Be(this.formatter.format(e.CoreProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:Be(this.formatter.format(e.Numbering,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},FileRelationships:{data:Be(this.formatter.format(e.FileRelationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:e.Headers.map((o,a)=>{const l=Be(this.formatter.format(o.View,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(l,e.Media).forEach((g,v)=>{o.Relationships.createRelationship(v,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${g.fileName}`)}),{data:Be(this.formatter.format(o.Relationships,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${a+1}.xml.rels`}}),FooterRelationships:e.Footers.map((o,a)=>{const l=Be(this.formatter.format(o.View,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(l,e.Media).forEach((g,v)=>{o.Relationships.createRelationship(v,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${g.fileName}`)}),{data:Be(this.formatter.format(o.Relationships,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${a+1}.xml.rels`}}),Headers:e.Headers.map((o,a)=>{const l=Be(this.formatter.format(o.View,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),h=this.imageReplacer.getMediaData(l,e.Media),g=this.imageReplacer.replace(l,h,0);return{data:this.numberingReplacer.replace(g,e.Numbering.ConcreteNumbering),path:`word/header${a+1}.xml`}}),Footers:e.Footers.map((o,a)=>{const l=Be(this.formatter.format(o.View,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),h=this.imageReplacer.getMediaData(l,e.Media),g=this.imageReplacer.replace(l,h,0);return{data:this.numberingReplacer.replace(g,e.Numbering.ConcreteNumbering),path:`word/footer${a+1}.xml`}}),ContentTypes:{data:Be(this.formatter.format(e.ContentTypes,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:Be(this.formatter.format(e.CustomProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:Be(this.formatter.format(e.AppProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:Be(this.formatter.format(e.FootNotes.View,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/footnotes.xml"},FootNotesRelationships:{data:Be(this.formatter.format(e.FootNotes.Relationships,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/_rels/footnotes.xml.rels"},Settings:{data:Be(this.formatter.format(e.Settings,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"},Comments:{data:Be(this.formatter.format(e.Comments,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/comments.xml"},FontTable:{data:Be(this.formatter.format(e.FontTable.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/fontTable.xml"},FontTableRelationships:{data:Be(this.formatter.format(e.FontTable.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/_rels/fontTable.xml.rels"}}}}const Hb={NONE:"",WITH_2_BLANKS:" ",WITH_4_BLANKS:" ",WITH_TAB:" "},ci=t=>t===!0?Hb.WITH_2_BLANKS:t===!1?void 0:t;class tg{static toString(e,r){return vs(this,null,function*(){return yield this.compiler.compile(e,ci(r)).generateAsync({type:"string",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBuffer(e,r){return vs(this,null,function*(){return yield this.compiler.compile(e,ci(r)).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBase64String(e,r){return vs(this,null,function*(){return yield this.compiler.compile(e,ci(r)).generateAsync({type:"base64",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBlob(e,r){return vs(this,null,function*(){return yield this.compiler.compile(e,ci(r)).generateAsync({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toStream(e,r){const n=new hc.Stream;return this.compiler.compile(e,ci(r)).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"}).then(s=>{n.emit("data",s),n.emit("end")}),n}}se(tg,"compiler",new Wb);var rg={exports:{}};(function(t,e){(function(r,n){n()})(Qn,function(){function r(h,g){return typeof g>"u"?g={autoBom:!1}:typeof g!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),g={autoBom:!g}),g.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(h.type)?new Blob(["\uFEFF",h],{type:h.type}):h}function n(h,g,v){var y=new XMLHttpRequest;y.open("GET",h),y.responseType="blob",y.onload=function(){l(y.response,g,v)},y.onerror=function(){console.error("could not download file")},y.send()}function i(h){var g=new XMLHttpRequest;g.open("HEAD",h,!1);try{g.send()}catch{}return 200<=g.status&&299>=g.status}function s(h){try{h.dispatchEvent(new MouseEvent("click"))}catch{var g=document.createEvent("MouseEvents");g.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),h.dispatchEvent(g)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Qn=="object"&&Qn.global===Qn?Qn:void 0,a=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(h,g,v){var y=o.URL||o.webkitURL,m=document.createElement("a");g=g||h.name||"download",m.download=g,m.rel="noopener",typeof h=="string"?(m.href=h,m.origin===location.origin?s(m):i(m.href)?n(h,g,v):s(m,m.target="_blank")):(m.href=y.createObjectURL(h),setTimeout(function(){y.revokeObjectURL(m.href)},4e4),setTimeout(function(){s(m)},0))}:"msSaveOrOpenBlob"in navigator?function(h,g,v){if(g=g||h.name||"download",typeof h!="string")navigator.msSaveOrOpenBlob(r(h,v),g);else if(i(h))n(h,g,v);else{var y=document.createElement("a");y.href=h,y.target="_blank",setTimeout(function(){s(y)})}}:function(h,g,v,y){if(y=y||open("","_blank"),y&&(y.document.title=y.document.body.innerText="downloading..."),typeof h=="string")return n(h,g,v);var m=h.type==="application/octet-stream",N=/constructor/i.test(o.HTMLElement)||o.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||m&&N||a)&&typeof FileReader<"u"){var A=new FileReader;A.onloadend=function(){var E=A.result;E=b?E:E.replace(/^data:[^;]*;/,"data:attachment/file;"),y?y.location.href=E:location=E,y=null},A.readAsDataURL(h)}else{var d=o.URL||o.webkitURL,p=d.createObjectURL(h);y?y.location=p:location.href=p,y=null,setTimeout(function(){d.revokeObjectURL(p)},4e4)}});o.saveAs=l.saveAs=l,t.exports=l})})(rg);var Kb=rg.exports;async function Gb(t){const e=new Nb({sections:[{properties:{},children:[new qe({children:[new et({text:t.personalInfo.fullName,bold:!0,size:32})]}),new qe({children:[new et({text:t.personalInfo.jobTitle,size:24,color:"666666"})]}),new qe({children:[new et({text:`${t.personalInfo.email} | ${t.personalInfo.phone} | ${t.personalInfo.location}`,size:20})]}),new qe({children:[new et({text:`
|
||
`})]}),new qe({children:[new et({text:"Professional Summary",bold:!0,size:24})]}),new qe({children:[new et({text:t.personalInfo.summary,size:20})]}),...t.experience.flatMap(n=>[new qe({children:[new et({text:`
|
||
Experience`,bold:!0,size:24})]}),new qe({children:[new et({text:n.position,bold:!0,size:20})]}),new qe({children:[new et({text:`${n.company} (${n.startDate} - ${n.endDate})`,size:20})]}),new qe({children:[new et({text:n.description,size:20})]})]),...t.education.flatMap(n=>[new qe({children:[new et({text:`
|
||
Education`,bold:!0,size:24})]}),new qe({children:[new et({text:n.school,bold:!0,size:20})]}),new qe({children:[new et({text:`${n.degree} in ${n.fieldOfStudy}`,size:20})]}),new qe({children:[new et({text:`${n.startDate} - ${n.endDate}`,size:20})]})])]}]}),r=await tg.toBlob(e);Kb.saveAs(r,`${t.personalInfo.fullName.replace(/\s+/g,"_")}_Resume.docx`)}function Vb(){const[t,e]=xr.useState(uw),[r,n]=xr.useState("tech"),i={modern:Qy,classic:Jy,minimal:ew,vibrant:tw,gradient:rw,creative:nw,elegant:iw,tech:sw,professional:ow}[r],s=async()=>{await Gb(t)};return f.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-blue-50 to-indigo-100",children:[f.jsxs("div",{className:"container mx-auto px-4 py-8",children:[f.jsxs("header",{className:"text-center mb-8",children:[f.jsxs("div",{className:"flex items-center justify-center gap-2 mb-2",children:[f.jsx(Py,{className:"w-8 h-8 text-blue-600"}),f.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"Resume Builder"})]}),f.jsx("p",{className:"text-gray-600",children:"Create your professional resume with our beautiful templates"}),f.jsx("div",{className:"text-sm text-gray-500 mt-1",children:"Version 1.0.0"})]}),f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{className:"backdrop-blur-lg bg-white/30 rounded-xl shadow-xl p-6",children:[f.jsx("h2",{className:"text-xl font-semibold text-gray-800 mb-4",children:"Choose Template"}),f.jsx("div",{className:"grid grid-cols-3 gap-2",children:["modern","classic","minimal","vibrant","gradient","creative","elegant","tech","professional"].map(o=>f.jsx("button",{onClick:()=>n(o),className:`px-3 py-2 rounded-lg capitalize text-sm ${r===o?"bg-blue-600 text-white":"bg-white/50 text-gray-700 hover:bg-white/70"}`,children:o},o))})]}),f.jsx(Zy,{resume:t,setResume:e})]}),f.jsxs("div",{className:"lg:sticky lg:top-8 space-y-4",children:[f.jsxs("div",{className:"flex justify-end gap-4",children:[f.jsxs("button",{onClick:s,className:"flex items-center gap-2 px-4 py-2 bg-green-600 text-white rounded-lg hover:bg-green-700 transition-colors",children:[f.jsx(Dy,{size:20}),"Export to Word"]}),f.jsxs("button",{onClick:()=>window.print(),className:"flex items-center gap-2 px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",children:[f.jsx(Oy,{size:20}),"Download PDF"]})]}),f.jsxs("div",{className:"preview-wrapper overflow-auto rounded-xl shadow-xl",children:[f.jsx(i,{resume:t}),f.jsx(lw,{})]})]})]})]}),f.jsx(aw,{})]})}rm(document.getElementById("root")).render(f.jsx(xr.StrictMode,{children:f.jsx(Vb,{})}));
|