vendor: 6,401 bytes, lines 1-9
1var qz=Object.defineProperty;var JM=t=>{throw TypeError(t)};var Kz=(t,e,n)=>e in t?qz(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Tt=(t,e,n)=>Kz(t,typeof e!="symbol"?e+"":e,n),pC=(t,e,n)=>e.has(t)||JM("Cannot "+n);var O=(t,e,n)=>(pC(t,e,"read from private field"),n?n.call(t):e.get(t)),xe=(t,e,n)=>e.has(t)?JM("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),fe=(t,e,n,i)=>(pC(t,e,"write to private field"),i?i.call(t,n):e.set(t,n),n),ye=(t,e,n)=>(pC(t,e,"access private method"),n);var lr=(t,e,n,i)=>({set _(r){fe(t,e,r,n)},get _(){return O(t,e,i)}});function LL(t,e){for(var n=0;n<e.length;n++){const i=e[n];if(typeof i!="string"&&!Array.isArray(i)){for(const r in i)if(r!=="default"&&!(r in t)){const s=Object.getOwnPropertyDescriptor(i,r);s&&Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>i[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&i(a)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}})();var jh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var FL={exports:{}},_1={},BL={exports:{}},Xt={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var Yb=Symbol.for("react.element"),Yz=Symbol.for("react.portal"),Xz=Symbol.for("react.fragment"),Jz=Symbol.for("react.strict_mode"),Qz=Symbol.for("react.profiler"),Zz=Symbol.for("react.provider"),eV=Symbol.for("react.context"),tV=Symbol.for("react.forward_ref"),nV=Symbol.for("react.suspense"),iV=Symbol.for("react.memo"),rV=Symbol.for("react.lazy"),QM=Symbol.iterator;function sV(t){return t===null||typeof t!="object"?null:(t=QM&&t[QM]||t["@@iterator"],typeof t=="function"?t:null)}var $L={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},HL=Object.assign,zL={};function $f(t,e,n){this.props=t,this.context=e,this.refs=zL,this.updater=n||$L}$f.prototype.isReactComponent={};$f.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")};$f.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function VL(){}VL.prototype=$f.prototype;function NE(t,e,n){this.props=t,this.context=e,this.refs=zL,this.updater=n||$L}var ME=NE.prototype=new VL;ME.constructor=NE;HL(ME,$f.prototype);ME.isPureReactComponent=!0;var ZM=Array.isArray,UL=Object.prototype.hasOwnProperty,DE={current:null},WL={key:!0,ref:!0,__self:!0,__source:!0};function GL(t,e,n){var i,r={},s=null,a=null;if(e!=null)for(i in e.ref!==void 0&&(a=e.ref),e.key!==void 0&&(s=""+e.key),e)UL.call(e,i)&&!WL.hasOwnProperty(i)&&(r[i]=e[i]);var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){for(var c=Array(l),d=0;d<l;d++)c[d]=arguments[d+2];r.children=c}if(t&&t.defaultProps)for(i in l=t.defaultProps,l)r[i]===void 0&&(r[i]=l[i]);return{$$typeof:Yb,type:t,key:s,ref:a,props:r,_owner:DE.current}}function aV(t,e){return{$$typeof:Yb,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function _E(t){return typeof t=="object"&&t!==null&&t.$$typeof===Yb}function oV(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var eD=/\/+/g;function mC(t,e){return typeof t=="object"&&t!==null&&t.key!=null?oV(""+t.key):e.toString(36)}function _0(t,e,n,i,r){var s=typeof t;(s==="undefined"||s==="boolean")&&(t=null);var a=!1;if(t===null)a=!0;else switch(s){case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case Yb:case Yz:a=!0}}if(a)return a=t,r=r(a),t=i===""?"."+mC(a,0):i,ZM(r)?(n="",t!=null&&(n=t.replace(eD,"$&/")+"/"),_0(r,e,n,"",function(d){return d})):r!=null&&(_E(r)&&(r=aV(r,n+(!r.key||a&&a.key===r.key?"":(""+r.key).replace(eD,"$&/")+"/")+t)),e.push(r)),1;if(a=0,i=i===""?".":i+":",ZM(t))for(var l=0;l<t.length;l++){s=t[l];var c=i+mC(s,l);a+=_0(s,e,n,c,r)}else if(c=sV(t),typeof c=="function")for(t=c.call(t),l=0;!(s=t.next()).done;)s=s.value,c=i+mC(s,l++),a+=_0(s,e,n,c,r);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 a}function _v(t,e,n){if(t==null)return t;var i=[],r=0;return _0(t,i,"","",function(s){return e.call(n,s,r++)}),i}function lV(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var Br={current:null},I0={transition:null},cV={ReactCurrentDispatcher:Br,ReactCurrentBatchConfig:I0,ReactCurrentOwner:DE};function qL(){throw Error("act(...) is not supported in production builds of React.")}Xt.Children={map:_v,forEach:function(t,e,n){_v(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return _v(t,function(){e++}),e},toArray:function(t){return _v(t,function(e){return e})||[]},only:function(t){if(!_E(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};Xt.Component=$f;Xt.Fragment=Xz;Xt.Profiler=Qz;Xt.PureComponent=NE;Xt.StrictMode=Jz;Xt.Suspense=nV;
vendor: 9,006 bytes, lines 9-33
9Xt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=cV;Xt.act=qL;Xt.cloneElement=function(t,e,n){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var i=HL({},t.props),r=t.key,s=t.ref,a=t._owner;if(e!=null){if(e.ref!==void 0&&(s=e.ref,a=DE.current),e.key!==void 0&&(r=""+e.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(c in e)UL.call(e,c)&&!WL.hasOwnProperty(c)&&(i[c]=e[c]===void 0&&l!==void 0?l[c]:e[c])}var c=arguments.length-2;if(c===1)i.children=n;else if(1<c){l=Array(c);for(var d=0;d<c;d++)l[d]=arguments[d+2];i.children=l}return{$$typeof:Yb,type:t.type,key:r,ref:s,props:i,_owner:a}};Xt.createContext=function(t){return t={$$typeof:eV,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:Zz,_context:t},t.Consumer=t};Xt.createElement=GL;Xt.createFactory=function(t){var e=GL.bind(null,t);return e.type=t,e};Xt.createRef=function(){return{current:null}};Xt.forwardRef=function(t){return{$$typeof:tV,render:t}};Xt.isValidElement=_E;Xt.lazy=function(t){return{$$typeof:rV,_payload:{_status:-1,_result:t},_init:lV}};Xt.memo=function(t,e){return{$$typeof:iV,type:t,compare:e===void 0?null:e}};Xt.startTransition=function(t){var e=I0.transition;I0.transition={};try{t()}finally{I0.transition=e}};Xt.unstable_act=qL;Xt.useCallback=function(t,e){return Br.current.useCallback(t,e)};Xt.useContext=function(t){return Br.current.useContext(t)};Xt.useDebugValue=function(){};Xt.useDeferredValue=function(t){return Br.current.useDeferredValue(t)};Xt.useEffect=function(t,e){return Br.current.useEffect(t,e)};Xt.useId=function(){return Br.current.useId()};Xt.useImperativeHandle=function(t,e,n){return Br.current.useImperativeHandle(t,e,n)};Xt.useInsertionEffect=function(t,e){return Br.current.useInsertionEffect(t,e)};Xt.useLayoutEffect=function(t,e){return Br.current.useLayoutEffect(t,e)};Xt.useMemo=function(t,e){return Br.current.useMemo(t,e)};Xt.useReducer=function(t,e,n){return Br.current.useReducer(t,e,n)};Xt.useRef=function(t){return Br.current.useRef(t)};Xt.useState=function(t){return Br.current.useState(t)};Xt.useSyncExternalStore=function(t,e,n){return Br.current.useSyncExternalStore(t,e,n)};Xt.useTransition=function(){return Br.current.useTransition()};Xt.version="18.3.1";BL.exports=Xt;var Z=BL.exports;const Ie=Fr(Z),kf=LL({__proto__:null,default:Ie},[Z]);/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var dV=Z,uV=Symbol.for("react.element"),hV=Symbol.for("react.fragment"),pV=Object.prototype.hasOwnProperty,mV=dV.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,fV={key:!0,ref:!0,__self:!0,__source:!0};function KL(t,e,n){var i,r={},s=null,a=null;n!==void 0&&(s=""+n),e.key!==void 0&&(s=""+e.key),e.ref!==void 0&&(a=e.ref);for(i in e)pV.call(e,i)&&!fV.hasOwnProperty(i)&&(r[i]=e[i]);if(t&&t.defaultProps)for(i in e=t.defaultProps,e)r[i]===void 0&&(r[i]=e[i]);return{$$typeof:uV,type:t,key:s,ref:a,props:r,_owner:mV.current}}_1.Fragment=hV;_1.jsx=KL;_1.jsxs=KL;FL.exports=_1;var o=FL.exports,X2={},YL={exports:{}},Ws={},XL={exports:{}},JL={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */(function(t){function e(C,D){var M=C.length;C.push(D);e:for(;0<M;){var z=M-1>>>1,J=C[z];if(0<r(J,D))C[z]=D,C[M]=J,M=z;else break e}}function n(C){return C.length===0?null:C[0]}function i(C){if(C.length===0)return null;var D=C[0],M=C.pop();if(M!==D){C[0]=M;e:for(var z=0,J=C.length,F=J>>>1;z<F;){var q=2*(z+1)-1,U=C[q],Q=q+1,ce=C[Q];if(0>r(U,M))Q<J&&0>r(ce,U)?(C[z]=ce,C[Q]=M,z=Q):(C[z]=U,C[q]=M,z=q);else if(Q<J&&0>r(ce,M))C[z]=ce,C[Q]=M,z=Q;else break e}}return D}function r(C,D){var M=C.sortIndex-D.sortIndex;return M!==0?M:C.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}var c=[],d=[],u=1,h=null,p=3,y=!1,m=!1,w=!1,k=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(C){for(var D=n(d);D!==null;){if(D.callback===null)i(d);else if(D.startTime<=C)i(d),D.sortIndex=D.expirationTime,e(c,D);else break;D=n(d)}}function E(C){if(w=!1,v(C),!m)if(n(c)!==null)m=!0,j(N);else{var D=n(d);D!==null&&P(E,D.startTime-C)}}function N(C,D){m=!1,w&&(w=!1,b($),$=-1),y=!0;var M=p;try{for(v(D),h=n(c);h!==null&&(!(h.expirationTime>D)||C&&!A());){var z=h.callback;if(typeof z=="function"){h.callback=null,p=h.priorityLevel;var J=z(h.expirationTime<=D);D=t.unstable_now(),typeof J=="function"?h.callback=J:h===n(c)&&i(c),v(D)}else i(c);h=n(c)}if(h!==null)var F=!0;else{var q=n(d);q!==null&&P(E,q.startTime-D),F=!1}return F}finally{h=null,p=M,y=!1}}var S=!1,_=null,$=-1,V=5,I=-1;function A(){return!(t.unstable_now()-I<V)}function L(){if(_!==null){var C=t.unstable_now();I=C;var D=!0;try{D=_(!0,C)}finally{D?T():(S=!1,_=null)}}else S=!1}var T;if(typeof x=="function")T=function(){x(L)};else if(typeof MessageChannel<"u"){var g=new MessageChannel,f=g.port2;g.port1.onmessage=L,T=function(){f.postMessage(null)}}else T=function(){k(L,0)};function j(C){_=C,S||(S=!0,T())}function P(C,D){$=k(function(){C(t.unstable_now())},D)}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(C){C.callback=null},t.unstable_continueExecution=function(){m||y||(m=!0,j(N))},t.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<C?Math.floor(1e3/C):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return n(c)},t.unstable_next=function(C){switch(p){case 1:case 2:case 3:var D=3;break;default:D=p}var M=p;p=D;try{return C()}finally{p=M}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(C,D){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var M=p;p=C;try{return D()}finally{p=M}},t.unstable_scheduleCallback=function(C,D,M){var z=t.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?z+M:z):M=z,C){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=M+J,C={id:u++,callback:D,priorityLevel:C,startTime:M,expirationTime:J,sortIndex:-1},M>z?(C.sortIndex=M,e(d,C),n(c)===null&&C===n(d)&&(w?(b($),$=-1):w=!0,P(E,M-z))):(C.sortIndex=J,e(c,C),m||y||(m=!0,j(N))),C},t.unstable_shouldYield=A,t.unstable_wrapCallback=function(C){var D=p;return function(){var M=p;p=D;try{return C.apply(this,arguments)}finally{p=M}}}})(JL);XL.exports=JL;var gV=XL.exports;/** 26 * @license React 27 * react-dom.production.min.js 28 * 29 * Copyright (c) Facebook, Inc. and its affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var xV=Z,Vs=gV;function qe(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);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 QL=new Set,Px={};function Kh(t,e){Sf(t,e),Sf(t+"Capture",e)}function Sf(t,e){for(Px[t]=e,t=0;t<e.length;t++)QL.add(e[t])}var Ul=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),J2=Object.prototype.hasOwnProperty,yV=/^[: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]*$/,tD={},nD={};function bV(t){return J2.call(nD,t)?!0:J2.call(tD,t)?!1:yV.test(t)?nD[t]=!0:(tD[t]=!0,!1)}function vV(t,e,n,i){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return i?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function wV(t,e,n,i){if(e===null||typeof e>"u"||vV(t,e,n,i))return!0;
vendor: 5,200 bytes, lines 33-34
33if(i)return!1;if(n!==null)switch(n.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 $r(t,e,n,i,r,s,a){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=s,this.removeEmptyString=a}var ir={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){ir[t]=new $r(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];ir[e]=new $r(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){ir[t]=new $r(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){ir[t]=new $r(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){ir[t]=new $r(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){ir[t]=new $r(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){ir[t]=new $r(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){ir[t]=new $r(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){ir[t]=new $r(t,5,!1,t.toLowerCase(),null,!1,!1)});var IE=/[\-:]([a-z])/g;function RE(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(IE,RE);ir[e]=new $r(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(IE,RE);ir[e]=new $r(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(IE,RE);ir[e]=new $r(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){ir[t]=new $r(t,1,!1,t.toLowerCase(),null,!1,!1)});ir.xlinkHref=new $r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){ir[t]=new $r(t,1,!1,t.toLowerCase(),null,!0,!0)});function OE(t,e,n,i){var r=ir.hasOwnProperty(e)?ir[e]:null;(r!==null?r.type!==0:i||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(wV(e,n,r,i)&&(n=null),i||r===null?bV(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):r.mustUseProperty?t[r.propertyName]=n===null?r.type===3?!1:"":n:(e=r.attributeName,i=r.attributeNamespace,n===null?t.removeAttribute(e):(r=r.type,n=r===3||r===4&&n===!0?"":""+n,i?t.setAttributeNS(i,e,n):t.setAttribute(e,n))))}var Zl=xV.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Iv=Symbol.for("react.element"),Ip=Symbol.for("react.portal"),Rp=Symbol.for("react.fragment"),LE=Symbol.for("react.strict_mode"),Q2=Symbol.for("react.profiler"),ZL=Symbol.for("react.provider"),e3=Symbol.for("react.context"),FE=Symbol.for("react.forward_ref"),Z2=Symbol.for("react.suspense"),ej=Symbol.for("react.suspense_list"),BE=Symbol.for("react.memo"),yc=Symbol.for("react.lazy"),t3=Symbol.for("react.offscreen"),iD=Symbol.iterator;function sg(t){return t===null||typeof t!="object"?null:(t=iD&&t[iD]||t["@@iterator"],typeof t=="function"?t:null)}var Yn=Object.assign,fC;function Mg(t){if(fC===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);fC=e&&e[1]||""}return` 34`+fC+t}var gC=!1;function xC(t,e){if(!t||gC)return"";gC=!0;var n=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(d){var i=d}Reflect.construct(t,[],e)}else{try{e.call()}catch(d){i=d}t.call(e.prototype)}else{try{throw Error()}catch(d){i=d}t()}}
vendor: 5,499 bytes, lines 34-37
34catch(d){if(d&&i&&typeof d.stack=="string"){for(var r=d.stack.split(` 35`),s=i.stack.split(` 36`),a=r.length-1,l=s.length-1;1<=a&&0<=l&&r[a]!==s[l];)l--;for(;1<=a&&0<=l;a--,l--)if(r[a]!==s[l]){if(a!==1||l!==1)do if(a--,l--,0>l||r[a]!==s[l]){var c=` 37`+r[a].replace(" at new "," at ");return t.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",t.displayName)),c}while(1<=a&&0<=l);break}}}finally{gC=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Mg(t):""}function kV(t){switch(t.tag){case 5:return Mg(t.type);case 16:return Mg("Lazy");case 13:return Mg("Suspense");case 19:return Mg("SuspenseList");case 0:case 2:case 15:return t=xC(t.type,!1),t;case 11:return t=xC(t.type.render,!1),t;case 1:return t=xC(t.type,!0),t;default:return""}}function tj(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 Rp:return"Fragment";case Ip:return"Portal";case Q2:return"Profiler";case LE:return"StrictMode";case Z2:return"Suspense";case ej:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case e3:return(t.displayName||"Context")+".Consumer";case ZL:return(t._context.displayName||"Context")+".Provider";case FE:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case BE:return e=t.displayName||null,e!==null?e:tj(t.type)||"Memo";case yc:e=t._payload,t=t._init;try{return tj(t(e))}catch{}}return null}function SV(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 tj(e);case 8:return e===LE?"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 vd(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function n3(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function CV(t){var e=n3(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),i=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,s=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(a){i=""+a,s.call(this,a)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(a){i=""+a},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Rv(t){t._valueTracker||(t._valueTracker=CV(t))}function i3(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=n3(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}function Uw(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 nj(t,e){var n=e.checked;return Yn({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function rD(t,e){var n=e.defaultValue==null?"":e.defaultValue,i=e.checked!=null?e.checked:e.defaultChecked;n=vd(e.value!=null?e.value:n),t._wrapperState={initialChecked:i,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function r3(t,e){e=e.checked,e!=null&&OE(t,"checked",e,!1)}function ij(t,e){r3(t,e);var n=vd(e.value),i=e.type;if(n!=null)i==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(i==="submit"||i==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?rj(t,e.type,n):e.hasOwnProperty("defaultValue")&&rj(t,e.type,vd(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function sD(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var i=e.type;if(!(i!=="submit"&&i!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function rj(t,e,n){(e!=="number"||Uw(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var Dg=Array.isArray;function Yp(t,e,n,i){if(t=t.options,e){e={};for(var r=0;r<n.length;r++)e["$"+n[r]]=!0;for(n=0;n<t.length;n++)r=e.hasOwnProperty("$"+t[n].value),t[n].selected!==r&&(t[n].selected=r),r&&i&&(t[n].defaultSelected=!0)}else{for(n=""+vd(n),e=null,r=0;r<t.length;r++){if(t[r].value===n){t[r].selected=!0,i&&(t[r].defaultSelected=!0);return}e!==null||t[r].disabled||(e=t[r])}e!==null&&(e.selected=!0)}}function sj(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(qe(91));return Yn({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function aD(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(qe(92));
vendor: 11,623 bytes, line 37
37if(Dg(n)){if(1<n.length)throw Error(qe(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:vd(n)}}function s3(t,e){var n=vd(e.value),i=vd(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),i!=null&&(t.defaultValue=""+i)}function oD(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function a3(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 aj(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?a3(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var Ov,o3=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,i,r){MSApp.execUnsafeLocalFunction(function(){return t(e,n,i,r)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(Ov=Ov||document.createElement("div"),Ov.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Ov.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Ex(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var ax={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},jV=["Webkit","ms","Moz","O"];Object.keys(ax).forEach(function(t){jV.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),ax[e]=ax[t]})});function l3(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||ax.hasOwnProperty(t)&&ax[t]?(""+e).trim():e+"px"}function c3(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var i=n.indexOf("--")===0,r=l3(n,e[n],i);n==="float"&&(n="cssFloat"),i?t.setProperty(n,r):t[n]=r}}var TV=Yn({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 oj(t,e){if(e){if(TV[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(qe(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(qe(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(qe(61))}if(e.style!=null&&typeof e.style!="object")throw Error(qe(62))}}function lj(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 cj=null;function $E(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var dj=null,Xp=null,Jp=null;function lD(t){if(t=Qb(t)){if(typeof dj!="function")throw Error(qe(280));var e=t.stateNode;e&&(e=F1(e),dj(t.stateNode,t.type,e))}}function d3(t){Xp?Jp?Jp.push(t):Jp=[t]:Xp=t}function u3(){if(Xp){var t=Xp,e=Jp;if(Jp=Xp=null,lD(t),e)for(t=0;t<e.length;t++)lD(e[t])}}function h3(t,e){return t(e)}function p3(){}var yC=!1;function m3(t,e,n){if(yC)return t(e,n);yC=!0;try{return h3(t,e,n)}finally{yC=!1,(Xp!==null||Jp!==null)&&(p3(),u3())}}function Ax(t,e){var n=t.stateNode;if(n===null)return null;var i=F1(n);if(i===null)return null;n=i[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":(i=!i.disabled)||(t=t.type,i=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!i;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(qe(231,e,typeof n));return n}var uj=!1;if(Ul)try{var ag={};Object.defineProperty(ag,"passive",{get:function(){uj=!0}}),window.addEventListener("test",ag,ag),window.removeEventListener("test",ag,ag)}catch{uj=!1}function PV(t,e,n,i,r,s,a,l,c){var d=Array.prototype.slice.call(arguments,3);try{e.apply(n,d)}catch(u){this.onError(u)}}var ox=!1,Ww=null,Gw=!1,hj=null,EV={onError:function(t){ox=!0,Ww=t}};function AV(t,e,n,i,r,s,a,l,c){ox=!1,Ww=null,PV.apply(EV,arguments)}function NV(t,e,n,i,r,s,a,l,c){if(AV.apply(this,arguments),ox){if(ox){var d=Ww;ox=!1,Ww=null}else throw Error(qe(198));Gw||(Gw=!0,hj=d)}}function Yh(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function f3(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 cD(t){if(Yh(t)!==t)throw Error(qe(188))}function MV(t){var e=t.alternate;if(!e){if(e=Yh(t),e===null)throw Error(qe(188));return e!==t?null:t}for(var n=t,i=e;;){var r=n.return;if(r===null)break;var s=r.alternate;if(s===null){if(i=r.return,i!==null){n=i;continue}break}if(r.child===s.child){for(s=r.child;s;){if(s===n)return cD(r),t;if(s===i)return cD(r),e;s=s.sibling}throw Error(qe(188))}if(n.return!==i.return)n=r,i=s;else{for(var a=!1,l=r.child;l;){if(l===n){a=!0,n=r,i=s;break}if(l===i){a=!0,i=r,n=s;break}l=l.sibling}if(!a){for(l=s.child;l;){if(l===n){a=!0,n=s,i=r;break}if(l===i){a=!0,i=s,n=r;break}l=l.sibling}if(!a)throw Error(qe(189))}}if(n.alternate!==i)throw Error(qe(190))}if(n.tag!==3)throw Error(qe(188));return n.stateNode.current===n?t:e}function g3(t){return t=MV(t),t!==null?x3(t):null}function x3(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=x3(t);if(e!==null)return e;t=t.sibling}return null}var y3=Vs.unstable_scheduleCallback,dD=Vs.unstable_cancelCallback,DV=Vs.unstable_shouldYield,_V=Vs.unstable_requestPaint,oi=Vs.unstable_now,IV=Vs.unstable_getCurrentPriorityLevel,HE=Vs.unstable_ImmediatePriority,b3=Vs.unstable_UserBlockingPriority,qw=Vs.unstable_NormalPriority,RV=Vs.unstable_LowPriority,v3=Vs.unstable_IdlePriority,I1=null,Ro=null;function OV(t){if(Ro&&typeof Ro.onCommitFiberRoot=="function")try{Ro.onCommitFiberRoot(I1,t,void 0,(t.current.flags&128)===128)}catch{}}var Ka=Math.clz32?Math.clz32:BV,LV=Math.log,FV=Math.LN2;function BV(t){return t>>>=0,t===0?32:31-(LV(t)/FV|0)|0}var Lv=64,Fv=4194304;function _g(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 Kw(t,e){var n=t.pendingLanes;if(n===0)return 0;var i=0,r=t.suspendedLanes,s=t.pingedLanes,a=n&268435455;if(a!==0){var l=a&~r;l!==0?i=_g(l):(s&=a,s!==0&&(i=_g(s)))}else a=n&~r,a!==0?i=_g(a):s!==0&&(i=_g(s));if(i===0)return 0;if(e!==0&&e!==i&&!(e&r)&&(r=i&-i,s=e&-e,r>=s||r===16&&(s&4194240)!==0))return e;if(i&4&&(i|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=i;0<e;)n=31-Ka(e),r=1<<n,i|=t[n],e&=~r;return i}function $V(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 HV(t,e){for(var n=t.suspendedLanes,i=t.pingedLanes,r=t.expirationTimes,s=t.pendingLanes;0<s;){var a=31-Ka(s),l=1<<a,c=r[a];c===-1?(!(l&n)||l&i)&&(r[a]=$V(l,e)):c<=e&&(t.expiredLanes|=l),s&=~l}}function pj(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function w3(){var t=Lv;return Lv<<=1,!(Lv&4194240)&&(Lv=64),t}function bC(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Xb(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Ka(e),t[e]=n}function zV(t,e){var n=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 i=t.eventTimes;for(t=t.expirationTimes;0<n;){var r=31-Ka(n),s=1<<r;e[r]=0,i[r]=-1,t[r]=-1,n&=~s}}function zE(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var i=31-Ka(n),r=1<<i;r&e|t[i]&e&&(t[i]|=e),n&=~r}}var bn=0;function k3(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var S3,VE,C3,j3,T3,mj=!1,Bv=[],dd=null,ud=null,hd=null,Nx=new Map,Mx=new Map,wc=[],VV="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 uD(t,e){switch(t){case"focusin":case"focusout":dd=null;break;case"dragenter":case"dragleave":ud=null;break;case"mouseover":case"mouseout":hd=null;break;case"pointerover":case"pointerout":Nx.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mx.delete(e.pointerId)}}function og(t,e,n,i,r,s){return t===null||t.nativeEvent!==s?(t={blockedOn:e,domEventName:n,eventSystemFlags:i,nativeEvent:s,targetContainers:[r]},e!==null&&(e=Qb(e),e!==null&&VE(e)),t):(t.eventSystemFlags|=i,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function UV(t,e,n,i,r){switch(e){case"focusin":return dd=og(dd,t,e,n,i,r),!0;case"dragenter":return ud=og(ud,t,e,n,i,r),!0;case"mouseover":return hd=og(hd,t,e,n,i,r),!0;case"pointerover":var s=r.pointerId;return Nx.set(s,og(Nx.get(s)||null,t,e,n,i,r)),!0;case"gotpointercapture":return s=r.pointerId,Mx.set(s,og(Mx.get(s)||null,t,e,n,i,r)),!0}return!1}function P3(t){var e=nu(t.target);if(e!==null){var n=Yh(e);if(n!==null){if(e=n.tag,e===13){if(e=f3(n),e!==null){t.blockedOn=e,T3(t.priority,function(){C3(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function R0(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=fj(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n===null){n=t.nativeEvent;var i=new n.constructor(n.type,n);cj=i,n.target.dispatchEvent(i),cj=null}else return e=Qb(n),e!==null&&VE(e),t.blockedOn=n,!1;e.shift()}return!0}function hD(t,e,n){R0(t)&&n.delete(e)}function WV(){mj=!1,dd!==null&&R0(dd)&&(dd=null),ud!==null&&R0(ud)&&(ud=null),hd!==null&&R0(hd)&&(hd=null),Nx.forEach(hD),Mx.forEach(hD)}function lg(t,e){t.blockedOn===e&&(t.blockedOn=null,mj||(mj=!0,Vs.unstable_scheduleCallback(Vs.unstable_NormalPriority,WV)))}function Dx(t){function e(r){return lg(r,t)}if(0<Bv.length){lg(Bv[0],t);for(var n=1;n<Bv.length;n++){var i=Bv[n];i.blockedOn===t&&(i.blockedOn=null)}}for(dd!==null&&lg(dd,t),ud!==null&&lg(ud,t),hd!==null&&lg(hd,t),Nx.forEac
vendor: 11,472 bytes, line 37
37h(e),Mx.forEach(e),n=0;n<wc.length;n++)i=wc[n],i.blockedOn===t&&(i.blockedOn=null);for(;0<wc.length&&(n=wc[0],n.blockedOn===null);)P3(n),n.blockedOn===null&&wc.shift()}var Qp=Zl.ReactCurrentBatchConfig,Yw=!0;function GV(t,e,n,i){var r=bn,s=Qp.transition;Qp.transition=null;try{bn=1,UE(t,e,n,i)}finally{bn=r,Qp.transition=s}}function qV(t,e,n,i){var r=bn,s=Qp.transition;Qp.transition=null;try{bn=4,UE(t,e,n,i)}finally{bn=r,Qp.transition=s}}function UE(t,e,n,i){if(Yw){var r=fj(t,e,n,i);if(r===null)AC(t,e,i,Xw,n),uD(t,i);else if(UV(r,t,e,n,i))i.stopPropagation();else if(uD(t,i),e&4&&-1<VV.indexOf(t)){for(;r!==null;){var s=Qb(r);if(s!==null&&S3(s),s=fj(t,e,n,i),s===null&&AC(t,e,i,Xw,n),s===r)break;r=s}r!==null&&i.stopPropagation()}else AC(t,e,i,null,n)}}var Xw=null;function fj(t,e,n,i){if(Xw=null,t=$E(i),t=nu(t),t!==null)if(e=Yh(t),e===null)t=null;else if(n=e.tag,n===13){if(t=f3(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return Xw=t,null}function E3(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(IV()){case HE:return 1;case b3:return 4;case qw:case RV:return 16;case v3:return 536870912;default:return 16}default:return 16}}var td=null,WE=null,O0=null;function A3(){if(O0)return O0;var t,e=WE,n=e.length,i,r="value"in td?td.value:td.textContent,s=r.length;for(t=0;t<n&&e[t]===r[t];t++);var a=n-t;for(i=1;i<=a&&e[n-i]===r[s-i];i++);return O0=r.slice(t,1<i?1-i:void 0)}function L0(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 $v(){return!0}function pD(){return!1}function Gs(t){function e(n,i,r,s,a){this._reactName=n,this._targetInst=r,this.type=i,this.nativeEvent=s,this.target=a,this.currentTarget=null;for(var l in t)t.hasOwnProperty(l)&&(n=t[l],this[l]=n?n(s):s[l]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?$v:pD,this.isPropagationStopped=pD,this}return Yn(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=$v)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=$v)},persist:function(){},isPersistent:$v}),e}var Hf={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},GE=Gs(Hf),Jb=Yn({},Hf,{view:0,detail:0}),KV=Gs(Jb),vC,wC,cg,R1=Yn({},Jb,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qE,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!==cg&&(cg&&t.type==="mousemove"?(vC=t.screenX-cg.screenX,wC=t.screenY-cg.screenY):wC=vC=0,cg=t),vC)},movementY:function(t){return"movementY"in t?t.movementY:wC}}),mD=Gs(R1),YV=Yn({},R1,{dataTransfer:0}),XV=Gs(YV),JV=Yn({},Jb,{relatedTarget:0}),kC=Gs(JV),QV=Yn({},Hf,{animationName:0,elapsedTime:0,pseudoElement:0}),ZV=Gs(QV),eU=Yn({},Hf,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),tU=Gs(eU),nU=Yn({},Hf,{data:0}),fD=Gs(nU),iU={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rU={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"},sU={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function aU(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=sU[t])?!!e[t]:!1}function qE(){return aU}var oU=Yn({},Jb,{key:function(t){if(t.key){var e=iU[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=L0(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?rU[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qE,charCode:function(t){return t.type==="keypress"?L0(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?L0(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),lU=Gs(oU),cU=Yn({},R1,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gD=Gs(cU),dU=Yn({},Jb,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qE}),uU=Gs(dU),hU=Yn({},Hf,{propertyName:0,elapsedTime:0,pseudoElement:0}),pU=Gs(hU),mU=Yn({},R1,{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}),fU=Gs(mU),gU=[9,13,27,32],KE=Ul&&"CompositionEvent"in window,lx=null;Ul&&"documentMode"in document&&(lx=document.documentMode);var xU=Ul&&"TextEvent"in window&&!lx,N3=Ul&&(!KE||lx&&8<lx&&11>=lx),xD=" ",yD=!1;function M3(t,e){switch(t){case"keyup":return gU.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function D3(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Op=!1;function yU(t,e){switch(t){case"compositionend":return D3(e);case"keypress":return e.which!==32?null:(yD=!0,xD);case"textInput":return t=e.data,t===xD&&yD?null:t;default:return null}}function bU(t,e){if(Op)return t==="compositionend"||!KE&&M3(t,e)?(t=A3(),O0=WE=td=null,Op=!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 N3&&e.locale!=="ko"?null:e.data;default:return null}}var vU={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 bD(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!vU[t.type]:e==="textarea"}function _3(t,e,n,i){d3(i),e=Jw(e,"onChange"),0<e.length&&(n=new GE("onChange","change",null,n,i),t.push({event:n,listeners:e}))}var cx=null,_x=null;function wU(t){U3(t,0)}function O1(t){var e=Bp(t);if(i3(e))return t}function kU(t,e){if(t==="change")return e}var I3=!1;if(Ul){var SC;if(Ul){var CC="oninput"in document;if(!CC){var vD=document.createElement("div");vD.setAttribute("oninput","return;"),CC=typeof vD.oninput=="function"}SC=CC}else SC=!1;I3=SC&&(!document.documentMode||9<document.documentMode)}function wD(){cx&&(cx.detachEvent("onpropertychange",R3),_x=cx=null)}function R3(t){if(t.propertyName==="value"&&O1(_x)){var e=[];_3(e,_x,t,$E(t)),m3(wU,e)}}function SU(t,e,n){t==="focusin"?(wD(),cx=e,_x=n,cx.attachEvent("onpropertychange",R3)):t==="focusout"&&wD()}function CU(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return O1(_x)}function jU(t,e){if(t==="click")return O1(e)}function TU(t,e){if(t==="input"||t==="change")return O1(e)}function PU(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ja=typeof Object.is=="function"?Object.is:PU;function Ix(t,e){if(Ja(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var r=n[i];if(!J2.call(e,r)||!Ja(t[r],e[r]))return!1}return!0}function kD(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function SD(t,e){var n=kD(t);t=0;for(var i;n;){if(n.nodeType===3){if(i=t+n.textContent.length,t<=e&&i>=e)return{node:n,offset:e-t};t=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=kD(n)}}function O3(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?O3(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function L3(){for(var t=window,e=Uw();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Uw(t.document)}return e}function YE(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 EU(t){var e=L3(),n=t.focusedElem,i=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&O3(n.ownerDocument.documentElement,n)){if(i!==null&&YE(n)){if(e=i.start,t=i.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var r=n.textContent.length,s=Math.min(i.start,r);i=i.end===void 0?s:Math.min(i.end,r),!t.extend&&s>i&&(r=i,i=s,s=r),r=SD(n,s);var a=SD(n,i);r&&a&&(t.rangeCount!==1||t.anchorNode!==r.node||t.anchorOffset!==r.offset||t.focusNode!==a.node||t.focusOffset!==a.offset)&&(e=e.createRange(),e.setStart(r.node,r.offset),t.removeAllRanges(),s>i?(t.addRange(e),t.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<e.length;n++)t=e[n],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var AU=Ul&&"documentMode"in document&&11>=document.documentMode,Lp=null,gj=null,dx=null,xj=!1;function CD(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xj||Lp==null||Lp!==Uw(i)||(i=Lp,"selectionStart"in i&&YE(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focu
vendor: 4,501 bytes, line 37
37sNode:i.focusNode,focusOffset:i.focusOffset}),dx&&Ix(dx,i)||(dx=i,i=Jw(gj,"onSelect"),0<i.length&&(e=new GE("onSelect","select",null,e,n),t.push({event:e,listeners:i}),e.target=Lp)))}function Hv(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Fp={animationend:Hv("Animation","AnimationEnd"),animationiteration:Hv("Animation","AnimationIteration"),animationstart:Hv("Animation","AnimationStart"),transitionend:Hv("Transition","TransitionEnd")},jC={},F3={};Ul&&(F3=document.createElement("div").style,"AnimationEvent"in window||(delete Fp.animationend.animation,delete Fp.animationiteration.animation,delete Fp.animationstart.animation),"TransitionEvent"in window||delete Fp.transitionend.transition);function L1(t){if(jC[t])return jC[t];if(!Fp[t])return t;var e=Fp[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in F3)return jC[t]=e[n];return t}var B3=L1("animationend"),$3=L1("animationiteration"),H3=L1("animationstart"),z3=L1("transitionend"),V3=new Map,jD="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 Ed(t,e){V3.set(t,e),Kh(e,[t])}for(var TC=0;TC<jD.length;TC++){var PC=jD[TC],NU=PC.toLowerCase(),MU=PC[0].toUpperCase()+PC.slice(1);Ed(NU,"on"+MU)}Ed(B3,"onAnimationEnd");Ed($3,"onAnimationIteration");Ed(H3,"onAnimationStart");Ed("dblclick","onDoubleClick");Ed("focusin","onFocus");Ed("focusout","onBlur");Ed(z3,"onTransitionEnd");Sf("onMouseEnter",["mouseout","mouseover"]);Sf("onMouseLeave",["mouseout","mouseover"]);Sf("onPointerEnter",["pointerout","pointerover"]);Sf("onPointerLeave",["pointerout","pointerover"]);Kh("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Kh("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Kh("onBeforeInput",["compositionend","keypress","textInput","paste"]);Kh("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Kh("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Kh("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ig="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(" "),DU=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ig));function TD(t,e,n){var i=t.type||"unknown-event";t.currentTarget=n,NV(i,e,void 0,t),t.currentTarget=null}function U3(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var i=t[n],r=i.event;i=i.listeners;e:{var s=void 0;if(e)for(var a=i.length-1;0<=a;a--){var l=i[a],c=l.instance,d=l.currentTarget;if(l=l.listener,c!==s&&r.isPropagationStopped())break e;TD(r,l,d),s=c}else for(a=0;a<i.length;a++){if(l=i[a],c=l.instance,d=l.currentTarget,l=l.listener,c!==s&&r.isPropagationStopped())break e;TD(r,l,d),s=c}}}if(Gw)throw t=hj,Gw=!1,hj=null,t}function In(t,e){var n=e[kj];n===void 0&&(n=e[kj]=new Set);var i=t+"__bubble";n.has(i)||(W3(e,t,2,!1),n.add(i))}function EC(t,e,n){var i=0;e&&(i|=4),W3(n,t,i,e)}var zv="_reactListening"+Math.random().toString(36).slice(2);function Rx(t){if(!t[zv]){t[zv]=!0,QL.forEach(function(n){n!=="selectionchange"&&(DU.has(n)||EC(n,!1,t),EC(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[zv]||(e[zv]=!0,EC("selectionchange",!1,e))}}function W3(t,e,n,i){switch(E3(e)){case 1:var r=GV;break;case 4:r=qV;break;default:r=UE}n=r.bind(null,e,n,t),r=void 0,!uj||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(r=!0),i?r!==void 0?t.addEventListener(e,n,{capture:!0,passive:r}):t.addEventListener(e,n,!0):r!==void 0?t.addEventListener(e,n,{passive:r}):t.addEventListener(e,n,!1)}function AC(t,e,n,i,r){var s=i;if(!(e&1)&&!(e&2)&&i!==null)e:for(;;){if(i===null)return;var a=i.tag;if(a===3||a===4){var l=i.stateNode.containerInfo;
vendor: 5,317 bytes, lines 37-38
37if(l===r||l.nodeType===8&&l.parentNode===r)break;if(a===4)for(a=i.return;a!==null;){var c=a.tag;if((c===3||c===4)&&(c=a.stateNode.containerInfo,c===r||c.nodeType===8&&c.parentNode===r))return;a=a.return}for(;l!==null;){if(a=nu(l),a===null)return;if(c=a.tag,c===5||c===6){i=s=a;continue e}l=l.parentNode}}i=i.return}m3(function(){var d=s,u=$E(n),h=[];e:{var p=V3.get(t);if(p!==void 0){var y=GE,m=t;switch(t){case"keypress":if(L0(n)===0)break e;case"keydown":case"keyup":y=lU;break;case"focusin":m="focus",y=kC;break;case"focusout":m="blur",y=kC;break;case"beforeblur":case"afterblur":y=kC;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=mD;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=XV;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=uU;break;case B3:case $3:case H3:y=ZV;break;case z3:y=pU;break;case"scroll":y=KV;break;case"wheel":y=fU;break;case"copy":case"cut":case"paste":y=tU;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=gD}var w=(e&4)!==0,k=!w&&t==="scroll",b=w?p!==null?p+"Capture":null:p;w=[];for(var x=d,v;x!==null;){v=x;var E=v.stateNode;if(v.tag===5&&E!==null&&(v=E,b!==null&&(E=Ax(x,b),E!=null&&w.push(Ox(x,E,v)))),k)break;x=x.return}0<w.length&&(p=new y(p,m,null,n,u),h.push({event:p,listeners:w}))}}if(!(e&7)){e:{if(p=t==="mouseover"||t==="pointerover",y=t==="mouseout"||t==="pointerout",p&&n!==cj&&(m=n.relatedTarget||n.fromElement)&&(nu(m)||m[Wl]))break e;if((y||p)&&(p=u.window===u?u:(p=u.ownerDocument)?p.defaultView||p.parentWindow:window,y?(m=n.relatedTarget||n.toElement,y=d,m=m?nu(m):null,m!==null&&(k=Yh(m),m!==k||m.tag!==5&&m.tag!==6)&&(m=null)):(y=null,m=d),y!==m)){if(w=mD,E="onMouseLeave",b="onMouseEnter",x="mouse",(t==="pointerout"||t==="pointerover")&&(w=gD,E="onPointerLeave",b="onPointerEnter",x="pointer"),k=y==null?p:Bp(y),v=m==null?p:Bp(m),p=new w(E,x+"leave",y,n,u),p.target=k,p.relatedTarget=v,E=null,nu(u)===d&&(w=new w(b,x+"enter",m,n,u),w.target=v,w.relatedTarget=k,E=w),k=E,y&&m)t:{for(w=y,b=m,x=0,v=w;v;v=gp(v))x++;for(v=0,E=b;E;E=gp(E))v++;for(;0<x-v;)w=gp(w),x--;for(;0<v-x;)b=gp(b),v--;for(;x--;){if(w===b||b!==null&&w===b.alternate)break t;w=gp(w),b=gp(b)}w=null}else w=null;y!==null&&PD(h,p,y,w,!1),m!==null&&k!==null&&PD(h,k,m,w,!0)}}e:{if(p=d?Bp(d):window,y=p.nodeName&&p.nodeName.toLowerCase(),y==="select"||y==="input"&&p.type==="file")var N=kU;else if(bD(p))if(I3)N=TU;else{N=CU;var S=SU}else(y=p.nodeName)&&y.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(N=jU);if(N&&(N=N(t,d))){_3(h,N,n,u);break e}S&&S(t,p,d),t==="focusout"&&(S=p._wrapperState)&&S.controlled&&p.type==="number"&&rj(p,"number",p.value)}switch(S=d?Bp(d):window,t){case"focusin":(bD(S)||S.contentEditable==="true")&&(Lp=S,gj=d,dx=null);break;case"focusout":dx=gj=Lp=null;break;case"mousedown":xj=!0;break;case"contextmenu":case"mouseup":case"dragend":xj=!1,CD(h,n,u);break;case"selectionchange":if(AU)break;case"keydown":case"keyup":CD(h,n,u)}var _;if(KE)e:{switch(t){case"compositionstart":var $="onCompositionStart";break e;case"compositionend":$="onCompositionEnd";break e;case"compositionupdate":$="onCompositionUpdate";break e}$=void 0}else Op?M3(t,n)&&($="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&($="onCompositionStart");$&&(N3&&n.locale!=="ko"&&(Op||$!=="onCompositionStart"?$==="onCompositionEnd"&&Op&&(_=A3()):(td=u,WE="value"in td?td.value:td.textContent,Op=!0)),S=Jw(d,$),0<S.length&&($=new fD($,t,null,n,u),h.push({event:$,listeners:S}),_?$.data=_:(_=D3(n),_!==null&&($.data=_)))),(_=xU?yU(t,n):bU(t,n))&&(d=Jw(d,"onBeforeInput"),0<d.length&&(u=new fD("onBeforeInput","beforeinput",null,n,u),h.push({event:u,listeners:d}),u.data=_))}U3(h,e)})}function Ox(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Jw(t,e){for(var n=e+"Capture",i=[];t!==null;){var r=t,s=r.stateNode;r.tag===5&&s!==null&&(r=s,s=Ax(t,n),s!=null&&i.unshift(Ox(t,s,r)),s=Ax(t,e),s!=null&&i.push(Ox(t,s,r))),t=t.return}return i}function gp(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function PD(t,e,n,i,r){for(var s=e._reactName,a=[];n!==null&&n!==i;){var l=n,c=l.alternate,d=l.stateNode;if(c!==null&&c===i)break;l.tag===5&&d!==null&&(l=d,r?(c=Ax(n,s),c!=null&&a.unshift(Ox(n,c,l))):r||(c=Ax(n,s),c!=null&&a.push(Ox(n,c,l)))),n=n.return}a.length!==0&&t.push({event:e,listeners:a})}var _U=/\r\n?/g,IU=/\u0000|\uFFFD/g;function ED(t){return(typeof t=="string"?t:""+t).replace(_U,` 38`).replace(IU,"")}function Vv(t,e,n){if(e=ED(e),ED(t)!==e&&n)throw Error(qe(425))}function Qw(){}var yj=null,bj=null;function vj(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 wj=typeof setTimeout=="function"?setTimeout:void 0,RU=typeof clearTimeout=="function"?clearTimeout:void 0,AD=typeof Promise=="function"?Promise:void 0,OU=typeof queueMicrotask=="function"?queueMicrotask:typeof AD<"u"?function(t){return AD.resolve(null).then(t).cat
vendor: 4,832 bytes, line 38
38ch(LU)}:wj;function LU(t){setTimeout(function(){throw t})}function NC(t,e){var n=e,i=0;do{var r=n.nextSibling;if(t.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(i===0){t.removeChild(r),Dx(e);return}i--}else n!=="$"&&n!=="$?"&&n!=="$!"||i++;n=r}while(n);Dx(e)}function pd(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 ND(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var zf=Math.random().toString(36).slice(2),Do="__reactFiber$"+zf,Lx="__reactProps$"+zf,Wl="__reactContainer$"+zf,kj="__reactEvents$"+zf,FU="__reactListeners$"+zf,BU="__reactHandles$"+zf;function nu(t){var e=t[Do];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Wl]||n[Do]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=ND(t);t!==null;){if(n=t[Do])return n;t=ND(t)}return e}t=n,n=t.parentNode}return null}function Qb(t){return t=t[Do]||t[Wl],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Bp(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(qe(33))}function F1(t){return t[Lx]||null}var Sj=[],$p=-1;function Ad(t){return{current:t}}function Ln(t){0>$p||(t.current=Sj[$p],Sj[$p]=null,$p--)}function Dn(t,e){$p++,Sj[$p]=t.current,t.current=e}var wd={},vr=Ad(wd),ss=Ad(!1),Th=wd;function Cf(t,e){var n=t.type.contextTypes;if(!n)return wd;var i=t.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===e)return i.__reactInternalMemoizedMaskedChildContext;var r={},s;for(s in n)r[s]=e[s];return i&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=r),r}function as(t){return t=t.childContextTypes,t!=null}function Zw(){Ln(ss),Ln(vr)}function MD(t,e,n){if(vr.current!==wd)throw Error(qe(168));Dn(vr,e),Dn(ss,n)}function G3(t,e,n){var i=t.stateNode;if(e=e.childContextTypes,typeof i.getChildContext!="function")return n;i=i.getChildContext();for(var r in i)if(!(r in e))throw Error(qe(108,SV(t)||"Unknown",r));return Yn({},n,i)}function ek(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||wd,Th=vr.current,Dn(vr,t),Dn(ss,ss.current),!0}function DD(t,e,n){var i=t.stateNode;if(!i)throw Error(qe(169));n?(t=G3(t,e,Th),i.__reactInternalMemoizedMergedChildContext=t,Ln(ss),Ln(vr),Dn(vr,t)):Ln(ss),Dn(ss,n)}var sl=null,B1=!1,MC=!1;function q3(t){sl===null?sl=[t]:sl.push(t)}function $U(t){B1=!0,q3(t)}function Nd(){if(!MC&&sl!==null){MC=!0;var t=0,e=bn;try{var n=sl;for(bn=1;t<n.length;t++){var i=n[t];do i=i(!0);while(i!==null)}sl=null,B1=!1}catch(r){throw sl!==null&&(sl=sl.slice(t+1)),y3(HE,Nd),r}finally{bn=e,MC=!1}}return null}var Hp=[],zp=0,tk=null,nk=0,sa=[],aa=0,Ph=null,Dl=1,_l="";function Vd(t,e){Hp[zp++]=nk,Hp[zp++]=tk,tk=t,nk=e}function K3(t,e,n){sa[aa++]=Dl,sa[aa++]=_l,sa[aa++]=Ph,Ph=t;var i=Dl;t=_l;var r=32-Ka(i)-1;i&=~(1<<r),n+=1;var s=32-Ka(e)+r;if(30<s){var a=r-r%5;s=(i&(1<<a)-1).toString(32),i>>=a,r-=a,Dl=1<<32-Ka(e)+r|n<<r|i,_l=s+t}else Dl=1<<s|n<<r|i,_l=t}function XE(t){t.return!==null&&(Vd(t,1),K3(t,1,0))}function JE(t){for(;t===tk;)tk=Hp[--zp],Hp[zp]=null,nk=Hp[--zp],Hp[zp]=null;for(;t===Ph;)Ph=sa[--aa],sa[aa]=null,_l=sa[--aa],sa[aa]=null,Dl=sa[--aa],sa[aa]=null}var Bs=null,Os=null,Hn=!1,Ua=null;function Y3(t,e){var n=da(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,e=t.deletions,e===null?(t.deletions=[n],t.flags|=16):e.push(n)}function _D(t,e){switch(t.tag){case 5:var n=t.type;return e=e.nodeType!==1||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,Bs=t,Os=pd(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,Bs=t,Os=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(n=Ph!==null?{id:Dl,overflow:_l}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},n=da(18,null,null,0),n.stateNode=e,n.return=t,t.child=n,Bs=t,Os=null,!0):!1;default:return!1}}function Cj(t){return(t.mode&1)!==0&&(t.flags&128)===0}function jj(t){if(Hn){var e=Os;if(e){var n=e;if(!_D(t,e)){if(Cj(t))throw Error(qe(418));e=pd(n.nextSibling);var i=Bs;e&&_D(t,e)?Y3(i,n):(t.flags=t.flags&-4097|2,Hn=!1,Bs=t)}}else{if(Cj(t))throw Error(qe(418));t.flags=t.flags&-4097|2,Hn=!1,Bs=t}}}function ID(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Bs=t}function Uv(t){if(t!==Bs)return!1;if(!Hn)return ID(t),Hn=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!vj(t.type,t.memoizedProps)),e&&(e=Os)){if(Cj(t))throw X3(),Error(qe(418));for(;e;)Y3(t,e),e=pd(e.nextSibling)}if(ID(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(qe(317));e:{for(t=t.nextSibling,e=0;t;
vendor: 12,527 bytes, line 38
38){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){Os=pd(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}Os=null}}else Os=Bs?pd(t.stateNode.nextSibling):null;return!0}function X3(){for(var t=Os;t;)t=pd(t.nextSibling)}function jf(){Os=Bs=null,Hn=!1}function QE(t){Ua===null?Ua=[t]:Ua.push(t)}var HU=Zl.ReactCurrentBatchConfig;function dg(t,e,n){if(t=n.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(qe(309));var i=n.stateNode}if(!i)throw Error(qe(147,t));var r=i,s=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===s?e.ref:(e=function(a){var l=r.refs;a===null?delete l[s]:l[s]=a},e._stringRef=s,e)}if(typeof t!="string")throw Error(qe(284));if(!n._owner)throw Error(qe(290,t))}return t}function Wv(t,e){throw t=Object.prototype.toString.call(e),Error(qe(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function RD(t){var e=t._init;return e(t._payload)}function J3(t){function e(b,x){if(t){var v=b.deletions;v===null?(b.deletions=[x],b.flags|=16):v.push(x)}}function n(b,x){if(!t)return null;for(;x!==null;)e(b,x),x=x.sibling;return null}function i(b,x){for(b=new Map;x!==null;)x.key!==null?b.set(x.key,x):b.set(x.index,x),x=x.sibling;return b}function r(b,x){return b=xd(b,x),b.index=0,b.sibling=null,b}function s(b,x,v){return b.index=v,t?(v=b.alternate,v!==null?(v=v.index,v<x?(b.flags|=2,x):v):(b.flags|=2,x)):(b.flags|=1048576,x)}function a(b){return t&&b.alternate===null&&(b.flags|=2),b}function l(b,x,v,E){return x===null||x.tag!==6?(x=FC(v,b.mode,E),x.return=b,x):(x=r(x,v),x.return=b,x)}function c(b,x,v,E){var N=v.type;return N===Rp?u(b,x,v.props.children,E,v.key):x!==null&&(x.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===yc&&RD(N)===x.type)?(E=r(x,v.props),E.ref=dg(b,x,v),E.return=b,E):(E=U0(v.type,v.key,v.props,null,b.mode,E),E.ref=dg(b,x,v),E.return=b,E)}function d(b,x,v,E){return x===null||x.tag!==4||x.stateNode.containerInfo!==v.containerInfo||x.stateNode.implementation!==v.implementation?(x=BC(v,b.mode,E),x.return=b,x):(x=r(x,v.children||[]),x.return=b,x)}function u(b,x,v,E,N){return x===null||x.tag!==7?(x=yh(v,b.mode,E,N),x.return=b,x):(x=r(x,v),x.return=b,x)}function h(b,x,v){if(typeof x=="string"&&x!==""||typeof x=="number")return x=FC(""+x,b.mode,v),x.return=b,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Iv:return v=U0(x.type,x.key,x.props,null,b.mode,v),v.ref=dg(b,null,x),v.return=b,v;case Ip:return x=BC(x,b.mode,v),x.return=b,x;case yc:var E=x._init;return h(b,E(x._payload),v)}if(Dg(x)||sg(x))return x=yh(x,b.mode,v,null),x.return=b,x;Wv(b,x)}return null}function p(b,x,v,E){var N=x!==null?x.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return N!==null?null:l(b,x,""+v,E);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Iv:return v.key===N?c(b,x,v,E):null;case Ip:return v.key===N?d(b,x,v,E):null;case yc:return N=v._init,p(b,x,N(v._payload),E)}if(Dg(v)||sg(v))return N!==null?null:u(b,x,v,E,null);Wv(b,v)}return null}function y(b,x,v,E,N){if(typeof E=="string"&&E!==""||typeof E=="number")return b=b.get(v)||null,l(x,b,""+E,N);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Iv:return b=b.get(E.key===null?v:E.key)||null,c(x,b,E,N);case Ip:return b=b.get(E.key===null?v:E.key)||null,d(x,b,E,N);case yc:var S=E._init;return y(b,x,v,S(E._payload),N)}if(Dg(E)||sg(E))return b=b.get(v)||null,u(x,b,E,N,null);Wv(x,E)}return null}function m(b,x,v,E){for(var N=null,S=null,_=x,$=x=0,V=null;_!==null&&$<v.length;$++){_.index>$?(V=_,_=null):V=_.sibling;var I=p(b,_,v[$],E);if(I===null){_===null&&(_=V);break}t&&_&&I.alternate===null&&e(b,_),x=s(I,x,$),S===null?N=I:S.sibling=I,S=I,_=V}if($===v.length)return n(b,_),Hn&&Vd(b,$),N;if(_===null){for(;$<v.length;$++)_=h(b,v[$],E),_!==null&&(x=s(_,x,$),S===null?N=_:S.sibling=_,S=_);return Hn&&Vd(b,$),N}for(_=i(b,_);$<v.length;$++)V=y(_,b,$,v[$],E),V!==null&&(t&&V.alternate!==null&&_.delete(V.key===null?$:V.key),x=s(V,x,$),S===null?N=V:S.sibling=V,S=V);return t&&_.forEach(function(A){return e(b,A)}),Hn&&Vd(b,$),N}function w(b,x,v,E){var N=sg(v);if(typeof N!="function")throw Error(qe(150));if(v=N.call(v),v==null)throw Error(qe(151));for(var S=N=null,_=x,$=x=0,V=null,I=v.next();_!==null&&!I.done;$++,I=v.next()){_.index>$?(V=_,_=null):V=_.sibling;var A=p(b,_,I.value,E);if(A===null){_===null&&(_=V);break}t&&_&&A.alternate===null&&e(b,_),x=s(A,x,$),S===null?N=A:S.sibling=A,S=A,_=V}if(I.done)return n(b,_),Hn&&Vd(b,$),N;if(_===null){for(;!I.done;$++,I=v.next())I=h(b,I.value,E),I!==null&&(x=s(I,x,$),S===null?N=I:S.sibling=I,S=I);return Hn&&Vd(b,$),N}for(_=i(b,_);!I.done;$++,I=v.next())I=y(_,b,$,I.value,E),I!==null&&(t&&I.alternate!==null&&_.delete(I.key===null?$:I.key),x=s(I,x,$),S===null?N=I:S.sibling=I,S=I);return t&&_.forEach(function(L){return e(b,L)}),Hn&&Vd(b,$),N}function k(b,x,v,E){if(typeof v=="object"&&v!==null&&v.type===Rp&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Iv:e:{for(var N=v.key,S=x;S!==null;){if(S.key===N){if(N=v.type,N===Rp){if(S.tag===7){n(b,S.sibling),x=r(S,v.props.children),x.return=b,b=x;break e}}else if(S.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===yc&&RD(N)===S.type){n(b,S.sibling),x=r(S,v.props),x.ref=dg(b,S,v),x.return=b,b=x;break e}n(b,S);break}else e(b,S);S=S.sibling}v.type===Rp?(x=yh(v.props.children,b.mode,E,v.key),x.return=b,b=x):(E=U0(v.type,v.key,v.props,null,b.mode,E),E.ref=dg(b,x,v),E.return=b,b=E)}return a(b);case Ip:e:{for(S=v.key;x!==null;){if(x.key===S)if(x.tag===4&&x.stateNode.containerInfo===v.containerInfo&&x.stateNode.implementation===v.implementation){n(b,x.sibling),x=r(x,v.children||[]),x.return=b,b=x;break e}else{n(b,x);break}else e(b,x);x=x.sibling}x=BC(v,b.mode,E),x.return=b,b=x}return a(b);case yc:return S=v._init,k(b,x,S(v._payload),E)}if(Dg(v))return m(b,x,v,E);if(sg(v))return w(b,x,v,E);Wv(b,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,x!==null&&x.tag===6?(n(b,x.sibling),x=r(x,v),x.return=b,b=x):(n(b,x),x=FC(v,b.mode,E),x.return=b,b=x),a(b)):n(b,x)}return k}var Tf=J3(!0),Q3=J3(!1),ik=Ad(null),rk=null,Vp=null,ZE=null;function eA(){ZE=Vp=rk=null}function tA(t){var e=ik.current;Ln(ik),t._currentValue=e}function Tj(t,e,n){for(;t!==null;){var i=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,i!==null&&(i.childLanes|=e)):i!==null&&(i.childLanes&e)!==e&&(i.childLanes|=e),t===n)break;t=t.return}}function Zp(t,e){rk=t,ZE=Vp=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(ts=!0),t.firstContext=null)}function ga(t){var e=t._currentValue;if(ZE!==t)if(t={context:t,memoizedValue:e,next:null},Vp===null){if(rk===null)throw Error(qe(308));Vp=t,rk.dependencies={lanes:0,firstContext:t}}else Vp=Vp.next=t;return e}var iu=null;function nA(t){iu===null?iu=[t]:iu.push(t)}function Z3(t,e,n,i){var r=e.interleaved;return r===null?(n.next=n,nA(e)):(n.next=r.next,r.next=n),e.interleaved=n,Gl(t,i)}function Gl(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var bc=!1;function iA(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function e4(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 Rl(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function md(t,e,n){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,sn&2){var r=i.pending;return r===null?e.next=e:(e.next=r.next,r.next=e),i.pending=e,Gl(t,n)}return r=i.interleaved,r===null?(e.next=e,nA(i)):(e.next=r.next,r.next=e),i.interleaved=e,Gl(t,n)}function F0(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,zE(t,n)}}function OD(t,e){var n=t.updateQueue,i=t.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var r=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?r=s=a:s=s.next=a,n=n.next}while(n!==null);s===null?r=s=e:s=s.next=e}else r=s=e;n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:s,shared:i.shared,effects:i.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function sk(t,e,n,i){var r=t.updateQueue;bc=!1;var s=r.firstBaseUpdate,a=r.lastBaseUpdate,l=r.shared.pending;if(l!==null){r.shared.pending=null;var c=l,d=c.next;c.next=null,a===null?s=d:a.next=d,a=c;var u=t.alternate;u!==null&&(u=u.updateQueue,l=u.lastBaseUpdate,l!==a&&(l===null?u.firstBaseUpdate=d:l.next=d,u.lastBaseUpdate=c))}if(s!==null){var h=r.baseState;a=0,u=d=c=null,l=s;do{var p=l.lane,y=l.eventTime;if((i&p)===p){u!==null&&(u=u.next={eventTime:y,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=t,w=l;switch(p=e,y=n,w.tag){case 1:if(m=w.payload,typeof m=="function"){h=m.call(y,h,p);break e}h=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=w.payload,p=typeof m=="function"?m.call(y,h,p):m,p==null)break e;h=Yn({},h,p);break e;case 2:bc=!0}}l.callback!==null&&l.lane!==0&&(t.flags|=64,p=r.effects,p===null?r.effects=[l]:p.push(l))}else y={eventTime:y,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},u===null?(d=u=y,c=h):u=u.next=y,a|=p;if(l=l.next,l===null){if(l=r.shared.pending,l===null)break;p=l,l=p.next,p.next=null,r.lastBaseUpdate=p,r.shared.pending=null}}while(!0);if(u===null&&(c=h),r.baseState=c,r.firstBaseUpdate=d,r.lastBaseUpdate=u,e=r.shared.interleaved,e!==null){r=e;do a|=r.lane,r=r.next;while(r!==e)}else s===null&&(r.shared.lanes=0);Ah|=a,t.lanes=a,t.memoizedState=h}}function LD(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var i=t[e],r=i.callback;if(r!==null){if(i.callback=null,i=n,typeof r!="function")throw Error(qe(191,r));r.call(i)}}}var Zb={},Oo=Ad(Zb),Fx=Ad(Zb),Bx=Ad(Zb);function ru(t){if(t===Zb)throw Error(qe(174));return t}function rA(t,e){switch(Dn(Bx,e),Dn(Fx,t),Dn(Oo,Zb),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:aj(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=aj(e,t)}Ln(Oo),Dn(Oo,e)}function Pf(){Ln(Oo),Ln(Fx),Ln(Bx)}function t4(t){ru(Bx.current);var e=ru(Oo.current),n=aj(e,t.type);e!==n&&(Dn(Fx,t),Dn(Oo,n))}function sA(t){Fx.current===t&&(Ln(Oo),Ln(Fx))}var Wn=Ad(0);function ak(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.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 DC=[];function aA(){for(var t=0;t<DC.length;t++)DC[t]._workInProgressVersionPrimary=null;DC.length=0}var B0=Zl.ReactCurrentDispatcher,_C=Zl.ReactCurrentBatchConfig,Eh=0,qn=null,Ti=null,Oi=null,ok=!1,ux=!1,$x=0,zU=0;function cr(){throw Error(qe(321))}function oA(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Ja(t[n],e[n]))return!1;return!0}function lA(t,e,n,i,r,s){if(Eh=s,qn=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,B0.current=t===null||t.memoizedState===null?GU:qU,t=n(i,r),ux){s=0;do{if(ux=!1,$x=0,25<=s)throw Error(qe(301));s+=1,Oi=Ti=null,e.updateQueue=null,B0.current=KU,t=n(i,r)}while(ux)}if(B0.current=lk,e=Ti!==null&&Ti.next!==null,Eh=0,Oi=Ti=qn=null,ok=!1,e)throw Error(qe(300));return t}function cA(){var t=$x!==0;return $x=0,t}function oo(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Oi===null?qn.memoizedState=Oi=t:Oi=Oi.next=t,Oi}function xa(){if(Ti===null){var t=qn.alternate;t=t!==null?t.memoizedState:null}else t=Ti.next;var e=Oi===null?qn.memoizedState:Oi.next;if(e!==null)Oi=e,Ti=t;else{if(t===null)throw Error(qe(310));Ti=t,t={memoizedState:Ti.memoizedState,baseState:Ti.baseState,baseQueue:Ti.baseQueue,queue:Ti.queue,next:null},Oi===null?qn.memoizedState=Oi=t:Oi=Oi.next=t}return Oi}function Hx(t,e){return typeof e=="function"?e(t):e}function IC(t){var e=xa(),n=e.queue;if(n===null)throw Error(qe(311));n.lastRenderedReducer=t;var i=Ti,r=i.baseQueue,s=n.pending;
vendor: 4,616 bytes, line 38
38if(s!==null){if(r!==null){var a=r.next;r.next=s.next,s.next=a}i.baseQueue=r=s,n.pending=null}if(r!==null){s=r.next,i=i.baseState;var l=a=null,c=null,d=s;do{var u=d.lane;if((Eh&u)===u)c!==null&&(c=c.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),i=d.hasEagerState?d.eagerState:t(i,d.action);else{var h={lane:u,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};c===null?(l=c=h,a=i):c=c.next=h,qn.lanes|=u,Ah|=u}d=d.next}while(d!==null&&d!==s);c===null?a=i:c.next=l,Ja(i,e.memoizedState)||(ts=!0),e.memoizedState=i,e.baseState=a,e.baseQueue=c,n.lastRenderedState=i}if(t=n.interleaved,t!==null){r=t;do s=r.lane,qn.lanes|=s,Ah|=s,r=r.next;while(r!==t)}else r===null&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function RC(t){var e=xa(),n=e.queue;if(n===null)throw Error(qe(311));n.lastRenderedReducer=t;var i=n.dispatch,r=n.pending,s=e.memoizedState;if(r!==null){n.pending=null;var a=r=r.next;do s=t(s,a.action),a=a.next;while(a!==r);Ja(s,e.memoizedState)||(ts=!0),e.memoizedState=s,e.baseQueue===null&&(e.baseState=s),n.lastRenderedState=s}return[s,i]}function n4(){}function i4(t,e){var n=qn,i=xa(),r=e(),s=!Ja(i.memoizedState,r);if(s&&(i.memoizedState=r,ts=!0),i=i.queue,dA(a4.bind(null,n,i,t),[t]),i.getSnapshot!==e||s||Oi!==null&&Oi.memoizedState.tag&1){if(n.flags|=2048,zx(9,s4.bind(null,n,i,r,e),void 0,null),Fi===null)throw Error(qe(349));Eh&30||r4(n,e,r)}return r}function r4(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=qn.updateQueue,e===null?(e={lastEffect:null,stores:null},qn.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function s4(t,e,n,i){e.value=n,e.getSnapshot=i,o4(e)&&l4(t)}function a4(t,e,n){return n(function(){o4(e)&&l4(t)})}function o4(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Ja(t,n)}catch{return!0}}function l4(t){var e=Gl(t,1);e!==null&&Ya(e,t,1,-1)}function FD(t){var e=oo();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Hx,lastRenderedState:t},e.queue=t,t=t.dispatch=WU.bind(null,qn,t),[e.memoizedState,t]}function zx(t,e,n,i){return t={tag:t,create:e,destroy:n,deps:i,next:null},e=qn.updateQueue,e===null?(e={lastEffect:null,stores:null},qn.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(i=n.next,n.next=t,t.next=i,e.lastEffect=t)),t}function c4(){return xa().memoizedState}function $0(t,e,n,i){var r=oo();qn.flags|=t,r.memoizedState=zx(1|e,n,void 0,i===void 0?null:i)}function $1(t,e,n,i){var r=xa();i=i===void 0?null:i;var s=void 0;if(Ti!==null){var a=Ti.memoizedState;if(s=a.destroy,i!==null&&oA(i,a.deps)){r.memoizedState=zx(e,n,s,i);return}}qn.flags|=t,r.memoizedState=zx(1|e,n,s,i)}function BD(t,e){return $0(8390656,8,t,e)}function dA(t,e){return $1(2048,8,t,e)}function d4(t,e){return $1(4,2,t,e)}function u4(t,e){return $1(4,4,t,e)}function h4(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 p4(t,e,n){return n=n!=null?n.concat([t]):null,$1(4,4,h4.bind(null,e,t),n)}function uA(){}function m4(t,e){var n=xa();e=e===void 0?null:e;var i=n.memoizedState;return i!==null&&e!==null&&oA(e,i[1])?i[0]:(n.memoizedState=[t,e],t)}function f4(t,e){var n=xa();e=e===void 0?null:e;var i=n.memoizedState;return i!==null&&e!==null&&oA(e,i[1])?i[0]:(t=t(),n.memoizedState=[t,e],t)}function g4(t,e,n){return Eh&21?(Ja(n,e)||(n=w3(),qn.lanes|=n,Ah|=n,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,ts=!0),t.memoizedState=n)}function VU(t,e){var n=bn;bn=n!==0&&4>n?n:4,t(!0);var i=_C.transition;_C.transition={};try{t(!1),e()}finally{bn=n,_C.transition=i}}function x4(){return xa().memoizedState}function UU(t,e,n){var i=gd(t);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},y4(t))b4(e,n);else if(n=Z3(t,e,n,i),n!==null){var r=Rr();Ya(n,t,i,r),v4(n,e,i)}}function WU(t,e,n){var i=gd(t),r={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(y4(t))b4(e,r);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var a=e.lastRenderedState,l=s(a,n);if(r.hasEagerState=!0,r.eagerState=l,Ja(l,a)){var c=e.interleaved;c===null?(r.next=r,nA(e)):(r.next=c.next,c.next=r),e.interleaved=r;return}}catch{}finally{}n=Z3(t,e,r,i),n!==null&&(r=Rr(),Ya(n,t,i,r),v4(n,e,i))}}function y4(t){var e=t.alternate;return t===qn||e!==null&&e===qn}function b4(t,e){ux=ok=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function v4(t,e,n){if(n&4194240){var i=e.lanes;
vendor: 8,472 bytes, lines 38-40
38i&=t.pendingLanes,n|=i,e.lanes=n,zE(t,n)}}var lk={readContext:ga,useCallback:cr,useContext:cr,useEffect:cr,useImperativeHandle:cr,useInsertionEffect:cr,useLayoutEffect:cr,useMemo:cr,useReducer:cr,useRef:cr,useState:cr,useDebugValue:cr,useDeferredValue:cr,useTransition:cr,useMutableSource:cr,useSyncExternalStore:cr,useId:cr,unstable_isNewReconciler:!1},GU={readContext:ga,useCallback:function(t,e){return oo().memoizedState=[t,e===void 0?null:e],t},useContext:ga,useEffect:BD,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,$0(4194308,4,h4.bind(null,e,t),n)},useLayoutEffect:function(t,e){return $0(4194308,4,t,e)},useInsertionEffect:function(t,e){return $0(4,2,t,e)},useMemo:function(t,e){var n=oo();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var i=oo();return e=n!==void 0?n(e):e,i.memoizedState=i.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},i.queue=t,t=t.dispatch=UU.bind(null,qn,t),[i.memoizedState,t]},useRef:function(t){var e=oo();return t={current:t},e.memoizedState=t},useState:FD,useDebugValue:uA,useDeferredValue:function(t){return oo().memoizedState=t},useTransition:function(){var t=FD(!1),e=t[0];return t=VU.bind(null,t[1]),oo().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var i=qn,r=oo();if(Hn){if(n===void 0)throw Error(qe(407));n=n()}else{if(n=e(),Fi===null)throw Error(qe(349));Eh&30||r4(i,e,n)}r.memoizedState=n;var s={value:n,getSnapshot:e};return r.queue=s,BD(a4.bind(null,i,s,t),[t]),i.flags|=2048,zx(9,s4.bind(null,i,s,n,e),void 0,null),n},useId:function(){var t=oo(),e=Fi.identifierPrefix;if(Hn){var n=_l,i=Dl;n=(i&~(1<<32-Ka(i)-1)).toString(32)+n,e=":"+e+"R"+n,n=$x++,0<n&&(e+="H"+n.toString(32)),e+=":"}else n=zU++,e=":"+e+"r"+n.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},qU={readContext:ga,useCallback:m4,useContext:ga,useEffect:dA,useImperativeHandle:p4,useInsertionEffect:d4,useLayoutEffect:u4,useMemo:f4,useReducer:IC,useRef:c4,useState:function(){return IC(Hx)},useDebugValue:uA,useDeferredValue:function(t){var e=xa();return g4(e,Ti.memoizedState,t)},useTransition:function(){var t=IC(Hx)[0],e=xa().memoizedState;return[t,e]},useMutableSource:n4,useSyncExternalStore:i4,useId:x4,unstable_isNewReconciler:!1},KU={readContext:ga,useCallback:m4,useContext:ga,useEffect:dA,useImperativeHandle:p4,useInsertionEffect:d4,useLayoutEffect:u4,useMemo:f4,useReducer:RC,useRef:c4,useState:function(){return RC(Hx)},useDebugValue:uA,useDeferredValue:function(t){var e=xa();return Ti===null?e.memoizedState=t:g4(e,Ti.memoizedState,t)},useTransition:function(){var t=RC(Hx)[0],e=xa().memoizedState;return[t,e]},useMutableSource:n4,useSyncExternalStore:i4,useId:x4,unstable_isNewReconciler:!1};function Ca(t,e){if(t&&t.defaultProps){e=Yn({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}function Pj(t,e,n,i){e=t.memoizedState,n=n(i,e),n=n==null?e:Yn({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var H1={isMounted:function(t){return(t=t._reactInternals)?Yh(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var i=Rr(),r=gd(t),s=Rl(i,r);s.payload=e,n!=null&&(s.callback=n),e=md(t,s,r),e!==null&&(Ya(e,t,r,i),F0(e,t,r))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var i=Rr(),r=gd(t),s=Rl(i,r);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=md(t,s,r),e!==null&&(Ya(e,t,r,i),F0(e,t,r))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Rr(),i=gd(t),r=Rl(n,i);r.tag=2,e!=null&&(r.callback=e),e=md(t,r,i),e!==null&&(Ya(e,t,i,n),F0(e,t,i))}};function $D(t,e,n,i,r,s,a){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(i,s,a):e.prototype&&e.prototype.isPureReactComponent?!Ix(n,i)||!Ix(r,s):!0}function w4(t,e,n){var i=!1,r=wd,s=e.contextType;return typeof s=="object"&&s!==null?s=ga(s):(r=as(e)?Th:vr.current,i=e.contextTypes,s=(i=i!=null)?Cf(t,r):wd),e=new e(n,s),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=H1,t.stateNode=e,e._reactInternals=t,i&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=s),e}function HD(t,e,n,i){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,i),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,i),e.state!==t&&H1.enqueueReplaceState(e,e.state,null)}function Ej(t,e,n,i){var r=t.stateNode;r.props=n,r.state=t.memoizedState,r.refs={},iA(t);var s=e.contextType;typeof s=="object"&&s!==null?r.context=ga(s):(s=as(e)?Th:vr.current,r.context=Cf(t,s)),r.state=t.memoizedState,s=e.getDerivedStateFromProps,typeof s=="function"&&(Pj(t,e,s,n),r.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(e=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),e!==r.state&&H1.enqueueReplaceState(r,r.state,null),sk(t,n,r,i),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308)}function Ef(t,e){try{var n="",i=e;do n+=kV(i),i=i.return;while(i);var r=n}catch(s){r=` 39Error generating stack: `+s.message+` 40`+s.stack}return{value:t,source:e,stack:r,digest:null}}function OC(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function Aj(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var YU=typeof WeakMap=="function"?WeakMap:Map;function k4(t,e,n){n=Rl(-1,n),n.tag=3,n.payload={element:null};var i=e.value;return n.callback=function(){dk||(dk=!0,Bj=i),Aj(t,e)},n}function S4(t,e,n){n=Rl(-1,n),n.tag=3;var i=t.type.getDerivedStateFromError;if(typeof i=="function"){var r=e.value;n.payload=function(){return i(r)},n.callback=function(){Aj(t,e)}}var s=t.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Aj(t,e),typeof i!="function"&&(fd===null?fd=new Set([this]):fd.add(this));var a=e.stack;this.componentDidCatch(e.value,{componentStack:a!==null?a:""})}),n}function zD(t,e,n){var i=t.pingCache;if(i===null){i=t.pingCache=new YU;var r=new Set;i.set(e,r)}else r=i.get(e),r===void 0&&(r=new Set,i.set(e,r));r.has(n)||(r.add(n),t=c9.bind(null,t,e,n),e.then(t,t))}function VD(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 UD(t,e,n,i,r){return t.mode&1?(t.flags|=65536,t.lanes=r,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=Rl(-1,1),e.tag=2,md(n,e,1))),n.lanes|=1),t)}var XU=Zl.ReactCurrentOwner,ts=!1;function Nr(t,e,n,i){e.child=t===null?Q3(e,null,n,i):Tf(e,t.child,n,i)}function WD(t,e,n,i,r){n=n.render;var s=e.ref;return Zp(e,r),i=lA(t,e,n,i,s,r),n=cA(),t!==null&&!ts?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~r,ql(t,e,r)):(Hn&&n&&XE(e),e.flags|=1,Nr(t,e,i,r),e.child)}function GD(t,e,n,i,r){if(t===null){var s=n.type;return typeof s=="function"&&!bA(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=s,C4(t,e,s,i,r)):(t=U0(n.type,null,i,e,e.mode,r),t.ref=e.ref,t.return=e,e.child=t)}if(s=t.child,!(t.lanes&r)){var a=s.memoizedProps;if(n=n.compare,n=n!==null?n:Ix,n(a,i)&&t.ref===e.ref)return ql(t,e,r)}return e.flags|=1,t=xd(s,i),t.ref=e.ref,t.return=e,e.child=t}function C4(t,e,n,i,r){if(t!==null){var s=t.memoizedProps;if(Ix(s,i)&&t.ref===e.ref)if(ts=!1,e.pendingProps=i=s,(t.lanes&r)!==0)t.flags&131072&&(ts=!0);else return e.lanes=t.lanes,ql(t,e,r)}return Nj(t,e,n,i,r)}function j4(t,e,n){var i=e.pendingProps,r=i.children,s=t!==null?t.memoizedState:null;if(i.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Dn(Wp,Ps),Ps|=n;else{if(!(n&1073741824))return t=s!==null?s.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,Dn(Wp,Ps),Ps|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=s!==null?s.baseLanes:n,Dn(Wp,Ps),Ps|=i}else s!==null?(i=s.baseLanes|n,e.memoizedState=null):i=n,Dn(Wp,Ps),Ps|=i;return Nr(t,e,r,n),e.child}function T4(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}
vendor: 5,244 bytes, line 40
40function Nj(t,e,n,i,r){var s=as(n)?Th:vr.current;return s=Cf(e,s),Zp(e,r),n=lA(t,e,n,i,s,r),i=cA(),t!==null&&!ts?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~r,ql(t,e,r)):(Hn&&i&&XE(e),e.flags|=1,Nr(t,e,n,r),e.child)}function qD(t,e,n,i,r){if(as(n)){var s=!0;ek(e)}else s=!1;if(Zp(e,r),e.stateNode===null)H0(t,e),w4(e,n,i),Ej(e,n,i,r),i=!0;else if(t===null){var a=e.stateNode,l=e.memoizedProps;a.props=l;var c=a.context,d=n.contextType;typeof d=="object"&&d!==null?d=ga(d):(d=as(n)?Th:vr.current,d=Cf(e,d));var u=n.getDerivedStateFromProps,h=typeof u=="function"||typeof a.getSnapshotBeforeUpdate=="function";h||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==i||c!==d)&&HD(e,a,i,d),bc=!1;var p=e.memoizedState;a.state=p,sk(e,i,a,r),c=e.memoizedState,l!==i||p!==c||ss.current||bc?(typeof u=="function"&&(Pj(e,n,u,i),c=e.memoizedState),(l=bc||$D(e,n,l,i,p,c,d))?(h||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(e.flags|=4194308)):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=i,e.memoizedState=c),a.props=i,a.state=c,a.context=d,i=l):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),i=!1)}else{a=e.stateNode,e4(t,e),l=e.memoizedProps,d=e.type===e.elementType?l:Ca(e.type,l),a.props=d,h=e.pendingProps,p=a.context,c=n.contextType,typeof c=="object"&&c!==null?c=ga(c):(c=as(n)?Th:vr.current,c=Cf(e,c));var y=n.getDerivedStateFromProps;(u=typeof y=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==h||p!==c)&&HD(e,a,i,c),bc=!1,p=e.memoizedState,a.state=p,sk(e,i,a,r);var m=e.memoizedState;l!==h||p!==m||ss.current||bc?(typeof y=="function"&&(Pj(e,n,y,i),m=e.memoizedState),(d=bc||$D(e,n,d,i,p,m,c)||!1)?(u||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(i,m,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(i,m,c)),typeof a.componentDidUpdate=="function"&&(e.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===t.memoizedProps&&p===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===t.memoizedProps&&p===t.memoizedState||(e.flags|=1024),e.memoizedProps=i,e.memoizedState=m),a.props=i,a.state=m,a.context=c,i=d):(typeof a.componentDidUpdate!="function"||l===t.memoizedProps&&p===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===t.memoizedProps&&p===t.memoizedState||(e.flags|=1024),i=!1)}return Mj(t,e,n,i,s,r)}function Mj(t,e,n,i,r,s){T4(t,e);var a=(e.flags&128)!==0;if(!i&&!a)return r&&DD(e,n,!1),ql(t,e,s);i=e.stateNode,XU.current=e;var l=a&&typeof n.getDerivedStateFromError!="function"?null:i.render();return e.flags|=1,t!==null&&a?(e.child=Tf(e,t.child,null,s),e.child=Tf(e,null,l,s)):Nr(t,e,l,s),e.memoizedState=i.state,r&&DD(e,n,!0),e.child}function P4(t){var e=t.stateNode;e.pendingContext?MD(t,e.pendingContext,e.pendingContext!==e.context):e.context&&MD(t,e.context,!1),rA(t,e.containerInfo)}function KD(t,e,n,i,r){return jf(),QE(r),e.flags|=256,Nr(t,e,n,i),e.child}var Dj={dehydrated:null,treeContext:null,retryLane:0};function _j(t){return{baseLanes:t,cachePool:null,transitions:null}}function E4(t,e,n){var i=e.pendingProps,r=Wn.current,s=!1,a=(e.flags&128)!==0,l;if((l=a)||(l=t!==null&&t.memoizedState===null?!1:(r&2)!==0),l?(s=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(r|=1),Dn(Wn,r&1),t===null)return jj(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):(a=i.children,t=i.fallback,s?(i=e.mode,s=e.child,a={mode:"hidden",children:a},!(i&1)&&s!==null?(s.childLanes=0,s.pendingProps=a):s=U1(a,i,0,null),t=yh(t,i,n,null),s.return=e,t.return=e,s.sibling=t,e.child=s,e.child.memoizedState=_j(n),e.memoizedState=Dj,t):hA(e,a));if(r=t.memoizedState,r!==null&&(l=r.dehydrated,l!==null))return JU(t,e,a,i,l,r,n);if(s){s=i.fallback,a=e.mode,r=t.child,l=r.sibling;var c={mode:"hidden",children:i.children};return!(a&1)&&e.child!==r?(i=e.child,i.childLanes=0,i.pendingProps=c,e.deletions=null):(i=xd(r,c),i.subtreeFlags=r.subtreeFlags&14680064),l!==null?s=xd(l,s):(s=yh(s,a,n,null),s.flags|=2),s.return=e,i.return=e,i.sibling=s,e.child=i,i=s,s=e.child,a=t.child.memoizedState,a=a===null?_j(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},s.memoizedState=a,s.childLanes=t.childLanes&~n,e.memoizedState=Dj,i}return s=t.child,t=s.sibling,i=xd(s,{mode:"visible",children:i.children}),!(e.mode&1)&&(i.lanes=n),i.return=e,i.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=i,e.memoizedState=null,i}function hA(t,e){return e=U1({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function Gv(t,e,n,i){return i!==null&&QE(i),Tf(e,t.child,null,n),t=hA(e,e.pen
vendor: 5,156 bytes, line 40
40dingProps.children),t.flags|=2,e.memoizedState=null,t}function JU(t,e,n,i,r,s,a){if(n)return e.flags&256?(e.flags&=-257,i=OC(Error(qe(422))),Gv(t,e,a,i)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(s=i.fallback,r=e.mode,i=U1({mode:"visible",children:i.children},r,0,null),s=yh(s,r,a,null),s.flags|=2,i.return=e,s.return=e,i.sibling=s,e.child=i,e.mode&1&&Tf(e,t.child,null,a),e.child.memoizedState=_j(a),e.memoizedState=Dj,s);if(!(e.mode&1))return Gv(t,e,a,null);if(r.data==="$!"){if(i=r.nextSibling&&r.nextSibling.dataset,i)var l=i.dgst;return i=l,s=Error(qe(419)),i=OC(s,i,void 0),Gv(t,e,a,i)}if(l=(a&t.childLanes)!==0,ts||l){if(i=Fi,i!==null){switch(a&-a){case 4:r=2;break;case 16:r=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:r=32;break;case 536870912:r=268435456;break;default:r=0}r=r&(i.suspendedLanes|a)?0:r,r!==0&&r!==s.retryLane&&(s.retryLane=r,Gl(t,r),Ya(i,t,r,-1))}return yA(),i=OC(Error(qe(421))),Gv(t,e,a,i)}return r.data==="$?"?(e.flags|=128,e.child=t.child,e=d9.bind(null,t),r._reactRetry=e,null):(t=s.treeContext,Os=pd(r.nextSibling),Bs=e,Hn=!0,Ua=null,t!==null&&(sa[aa++]=Dl,sa[aa++]=_l,sa[aa++]=Ph,Dl=t.id,_l=t.overflow,Ph=e),e=hA(e,i.children),e.flags|=4096,e)}function YD(t,e,n){t.lanes|=e;var i=t.alternate;i!==null&&(i.lanes|=e),Tj(t.return,e,n)}function LC(t,e,n,i,r){var s=t.memoizedState;s===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=i,s.tail=n,s.tailMode=r)}function A4(t,e,n){var i=e.pendingProps,r=i.revealOrder,s=i.tail;if(Nr(t,e,i.children,n),i=Wn.current,i&2)i=i&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&&YD(t,n,e);else if(t.tag===19)YD(t,n,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}i&=1}if(Dn(Wn,i),!(e.mode&1))e.memoizedState=null;else switch(r){case"forwards":for(n=e.child,r=null;n!==null;)t=n.alternate,t!==null&&ak(t)===null&&(r=n),n=n.sibling;n=r,n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),LC(e,!1,r,n,s);break;case"backwards":for(n=null,r=e.child,e.child=null;r!==null;){if(t=r.alternate,t!==null&&ak(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}LC(e,!0,n,null,s);break;case"together":LC(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function H0(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function ql(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Ah|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(qe(153));if(e.child!==null){for(t=e.child,n=xd(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=xd(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function QU(t,e,n){switch(e.tag){case 3:P4(e),jf();break;case 5:t4(e);break;case 1:as(e.type)&&ek(e);break;case 4:rA(e,e.stateNode.containerInfo);break;case 10:var i=e.type._context,r=e.memoizedProps.value;Dn(ik,i._currentValue),i._currentValue=r;break;case 13:if(i=e.memoizedState,i!==null)return i.dehydrated!==null?(Dn(Wn,Wn.current&1),e.flags|=128,null):n&e.child.childLanes?E4(t,e,n):(Dn(Wn,Wn.current&1),t=ql(t,e,n),t!==null?t.sibling:null);Dn(Wn,Wn.current&1);break;case 19:if(i=(n&e.childLanes)!==0,t.flags&128){if(i)return A4(t,e,n);e.flags|=128}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),Dn(Wn,Wn.current),i)break;return null;case 22:case 23:return e.lanes=0,j4(t,e,n)}return ql(t,e,n)}var N4,Ij,M4,D4;N4=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ij=function(){};M4=function(t,e,n,i){var r=t.memoizedProps;if(r!==i){t=e.stateNode,ru(Oo.current);var s=null;switch(n){case"input":r=nj(t,r),i=nj(t,i),s=[];break;case"select":r=Yn({},r,{value:void 0}),i=Yn({},i,{value:void 0}),s=[];break;case"textarea":r=sj(t,r),i=sj(t,i),s=[];break;default:typeof r.onClick!="function"&&typeof i.onClick=="function"&&(t.onclick=Qw)}oj(n,i);var a;n=null;for(d in r)if(!i.hasOwnProperty(d)&&r.hasOwnProperty(d)&&r[d]!=null)if(d==="style"){var l=r[d];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(Px.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in i){var c=i[d];if(l=r!=null?r[d]:void 0,i.hasOwnProperty(d)&&c!==l&&(c!=null||l!=null))if(d==="style")if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}
vendor: 4,488 bytes, line 40
40else n||(s||(s=[]),s.push(d,n)),n=c;else d==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(s=s||[]).push(d,c)):d==="children"?typeof c!="string"&&typeof c!="number"||(s=s||[]).push(d,""+c):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(Px.hasOwnProperty(d)?(c!=null&&d==="onScroll"&&In("scroll",t),s||l===c||(s=[])):(s=s||[]).push(d,c))}n&&(s=s||[]).push("style",n);var d=s;(e.updateQueue=d)&&(e.flags|=4)}};D4=function(t,e,n,i){n!==i&&(e.flags|=4)};function ug(t,e){if(!Hn)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:i.sibling=null}}function dr(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,i=0;if(e)for(var r=t.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags&14680064,i|=r.flags&14680064,r.return=t,r=r.sibling;else for(r=t.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=t,r=r.sibling;return t.subtreeFlags|=i,t.childLanes=n,e}function ZU(t,e,n){var i=e.pendingProps;switch(JE(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return dr(e),null;case 1:return as(e.type)&&Zw(),dr(e),null;case 3:return i=e.stateNode,Pf(),Ln(ss),Ln(vr),aA(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(Uv(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Ua!==null&&(zj(Ua),Ua=null))),Ij(t,e),dr(e),null;case 5:sA(e);var r=ru(Bx.current);if(n=e.type,t!==null&&e.stateNode!=null)M4(t,e,n,i,r),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!i){if(e.stateNode===null)throw Error(qe(166));return dr(e),null}if(t=ru(Oo.current),Uv(e)){i=e.stateNode,n=e.type;var s=e.memoizedProps;switch(i[Do]=e,i[Lx]=s,t=(e.mode&1)!==0,n){case"dialog":In("cancel",i),In("close",i);break;case"iframe":case"object":case"embed":In("load",i);break;case"video":case"audio":for(r=0;r<Ig.length;r++)In(Ig[r],i);break;case"source":In("error",i);break;case"img":case"image":case"link":In("error",i),In("load",i);break;case"details":In("toggle",i);break;case"input":rD(i,s),In("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!s.multiple},In("invalid",i);break;case"textarea":aD(i,s),In("invalid",i)}oj(n,s),r=null;for(var a in s)if(s.hasOwnProperty(a)){var l=s[a];a==="children"?typeof l=="string"?i.textContent!==l&&(s.suppressHydrationWarning!==!0&&Vv(i.textContent,l,t),r=["children",l]):typeof l=="number"&&i.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&Vv(i.textContent,l,t),r=["children",""+l]):Px.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&In("scroll",i)}switch(n){case"input":Rv(i),sD(i,s,!0);break;case"textarea":Rv(i),oD(i);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(i.onclick=Qw)}i=r,e.updateQueue=i,i!==null&&(e.flags|=4)}else{a=r.nodeType===9?r:r.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=a3(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=a.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof i.is=="string"?t=a.createElement(n,{is:i.is}):(t=a.createElement(n),n==="select"&&(a=t,i.multiple?a.multiple=!0:i.size&&(a.size=i.size))):t=a.createElementNS(t,n),t[Do]=e,t[Lx]=i,N4(t,e,!1,!1),e.stateNode=t;e:{switch(a=lj(n,i),n){case"dialog":In("cancel",t),In("close",t),r=i;break;case"iframe":case"object":case"embed":In("load",t),r=i;break;case"video":case"audio":for(r=0;r<Ig.length;r++)In(Ig[r],t);r=i;break;case"source":In("error",t),r=i;break;case"img":case"image":case"link":In("error",t),In("load",t),r=i;break;case"details":In("toggle",t),r=i;break;case"input":rD(t,i),r=nj(t,i),In("invalid",t);break;case"option":r=i;break;case"select":t._wrapperState={wasMultiple:!!i.multiple},r=Yn({},i,{value:void 0}),In("invalid",t);break;case"textarea":aD(t,i),r=sj(t,i),In("invalid",t);break;default:r=i}oj(n,r),l=r;for(s in l)if(l.hasOwnProperty(s)){var c=l[s];s==="style"?c3(t,c):s==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&o3(t,c)):s==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Ex(t,c):typeof c=="number"&&Ex(t,""+c):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Px.hasOwnProperty(s)?c!=null&&s==="onScroll"&&In("scroll",t):c!=null&&OE(t,
vendor: 28,256 bytes, line 40
40s,c,a))}switch(n){case"input":Rv(t),sD(t,i,!1);break;case"textarea":Rv(t),oD(t);break;case"option":i.value!=null&&t.setAttribute("value",""+vd(i.value));break;case"select":t.multiple=!!i.multiple,s=i.value,s!=null?Yp(t,!!i.multiple,s,!1):i.defaultValue!=null&&Yp(t,!!i.multiple,i.defaultValue,!0);break;default:typeof r.onClick=="function"&&(t.onclick=Qw)}switch(n){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return dr(e),null;case 6:if(t&&e.stateNode!=null)D4(t,e,t.memoizedProps,i);else{if(typeof i!="string"&&e.stateNode===null)throw Error(qe(166));if(n=ru(Bx.current),ru(Oo.current),Uv(e)){if(i=e.stateNode,n=e.memoizedProps,i[Do]=e,(s=i.nodeValue!==n)&&(t=Bs,t!==null))switch(t.tag){case 3:Vv(i.nodeValue,n,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Vv(i.nodeValue,n,(t.mode&1)!==0)}s&&(e.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[Do]=e,e.stateNode=i}return dr(e),null;case 13:if(Ln(Wn),i=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Hn&&Os!==null&&e.mode&1&&!(e.flags&128))X3(),jf(),e.flags|=98560,s=!1;else if(s=Uv(e),i!==null&&i.dehydrated!==null){if(t===null){if(!s)throw Error(qe(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(qe(317));s[Do]=e}else jf(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;dr(e),s=!1}else Ua!==null&&(zj(Ua),Ua=null),s=!0;if(!s)return e.flags&65536?e:null}return e.flags&128?(e.lanes=n,e):(i=i!==null,i!==(t!==null&&t.memoizedState!==null)&&i&&(e.child.flags|=8192,e.mode&1&&(t===null||Wn.current&1?Ei===0&&(Ei=3):yA())),e.updateQueue!==null&&(e.flags|=4),dr(e),null);case 4:return Pf(),Ij(t,e),t===null&&Rx(e.stateNode.containerInfo),dr(e),null;case 10:return tA(e.type._context),dr(e),null;case 17:return as(e.type)&&Zw(),dr(e),null;case 19:if(Ln(Wn),s=e.memoizedState,s===null)return dr(e),null;if(i=(e.flags&128)!==0,a=s.rendering,a===null)if(i)ug(s,!1);else{if(Ei!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(a=ak(t),a!==null){for(e.flags|=128,ug(s,!1),i=a.updateQueue,i!==null&&(e.updateQueue=i,e.flags|=4),e.subtreeFlags=0,i=n,n=e.child;n!==null;)s=n,t=i,s.flags&=14680066,a=s.alternate,a===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=a.childLanes,s.lanes=a.lanes,s.child=a.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=a.memoizedProps,s.memoizedState=a.memoizedState,s.updateQueue=a.updateQueue,s.type=a.type,t=a.dependencies,s.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return Dn(Wn,Wn.current&1|2),e.child}t=t.sibling}s.tail!==null&&oi()>Af&&(e.flags|=128,i=!0,ug(s,!1),e.lanes=4194304)}else{if(!i)if(t=ak(a),t!==null){if(e.flags|=128,i=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),ug(s,!0),s.tail===null&&s.tailMode==="hidden"&&!a.alternate&&!Hn)return dr(e),null}else 2*oi()-s.renderingStartTime>Af&&n!==1073741824&&(e.flags|=128,i=!0,ug(s,!1),e.lanes=4194304);s.isBackwards?(a.sibling=e.child,e.child=a):(n=s.last,n!==null?n.sibling=a:e.child=a,s.last=a)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=oi(),e.sibling=null,n=Wn.current,Dn(Wn,i?n&1|2:n&1),e):(dr(e),null);case 22:case 23:return xA(),i=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==i&&(e.flags|=8192),i&&e.mode&1?Ps&1073741824&&(dr(e),e.subtreeFlags&6&&(e.flags|=8192)):dr(e),null;case 24:return null;case 25:return null}throw Error(qe(156,e.tag))}function e9(t,e){switch(JE(e),e.tag){case 1:return as(e.type)&&Zw(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Pf(),Ln(ss),Ln(vr),aA(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return sA(e),null;case 13:if(Ln(Wn),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(qe(340));jf()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Ln(Wn),null;case 4:return Pf(),null;case 10:return tA(e.type._context),null;case 22:case 23:return xA(),null;case 24:return null;default:return null}}var qv=!1,xr=!1,t9=typeof WeakSet=="function"?WeakSet:Set,it=null;function Up(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(i){Zn(t,e,i)}else n.current=null}function Rj(t,e,n){try{n()}catch(i){Zn(t,e,i)}}var XD=!1;function n9(t,e){if(yj=Yw,t=L3(),YE(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var r=i.anchorOffset,s=i.focusNode;i=i.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var a=0,l=-1,c=-1,d=0,u=0,h=t,p=null;t:for(;;){for(var y;h!==n||r!==0&&h.nodeType!==3||(l=a+r),h!==s||i!==0&&h.nodeType!==3||(c=a+i),h.nodeType===3&&(a+=h.nodeValue.length),(y=h.firstChild)!==null;)p=h,h=y;for(;;){if(h===t)break t;if(p===n&&++d===r&&(l=a),p===s&&++u===i&&(c=a),(y=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=y}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(bj={focusedElem:t,selectionRange:n},Yw=!1,it=e;it!==null;)if(e=it,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,it=t;else for(;it!==null;){e=it;try{var m=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var w=m.memoizedProps,k=m.memoizedState,b=e.stateNode,x=b.getSnapshotBeforeUpdate(e.elementType===e.type?w:Ca(e.type,w),k);b.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var v=e.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(qe(163))}}catch(E){Zn(e,e.return,E)}if(t=e.sibling,t!==null){t.return=e.return,it=t;break}it=e.return}return m=XD,XD=!1,m}function hx(t,e,n){var i=e.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var r=i=i.next;do{if((r.tag&t)===t){var s=r.destroy;r.destroy=void 0,s!==void 0&&Rj(e,n,s)}r=r.next}while(r!==i)}}function z1(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var i=n.create;n.destroy=i()}n=n.next}while(n!==e)}}function Oj(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function _4(t){var e=t.alternate;e!==null&&(t.alternate=null,_4(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Do],delete e[Lx],delete e[kj],delete e[FU],delete e[BU])),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 I4(t){return t.tag===5||t.tag===3||t.tag===4}function JD(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||I4(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 Lj(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Qw));else if(i!==4&&(t=t.child,t!==null))for(Lj(t,e,n),t=t.sibling;t!==null;)Lj(t,e,n),t=t.sibling}function Fj(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(i!==4&&(t=t.child,t!==null))for(Fj(t,e,n),t=t.sibling;t!==null;)Fj(t,e,n),t=t.sibling}var Xi=null,Ha=!1;function lc(t,e,n){for(n=n.child;n!==null;)R4(t,e,n),n=n.sibling}function R4(t,e,n){if(Ro&&typeof Ro.onCommitFiberUnmount=="function")try{Ro.onCommitFiberUnmount(I1,n)}catch{}switch(n.tag){case 5:xr||Up(n,e);case 6:var i=Xi,r=Ha;Xi=null,lc(t,e,n),Xi=i,Ha=r,Xi!==null&&(Ha?(t=Xi,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):Xi.removeChild(n.stateNode));break;case 18:Xi!==null&&(Ha?(t=Xi,n=n.stateNode,t.nodeType===8?NC(t.parentNode,n):t.nodeType===1&&NC(t,n),Dx(t)):NC(Xi,n.stateNode));break;case 4:i=Xi,r=Ha,Xi=n.stateNode.containerInfo,Ha=!0,lc(t,e,n),Xi=i,Ha=r;break;case 0:case 11:case 14:case 15:if(!xr&&(i=n.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){r=i=i.next;do{var s=r,a=s.destroy;s=s.tag,a!==void 0&&(s&2||s&4)&&Rj(n,e,a),r=r.next}while(r!==i)}lc(t,e,n);break;case 1:if(!xr&&(Up(n,e),i=n.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(l){Zn(n,e,l)}lc(t,e,n);break;case 21:lc(t,e,n);break;case 22:n.mode&1?(xr=(i=xr)||n.memoizedState!==null,lc(t,e,n),xr=i):lc(t,e,n);break;default:lc(t,e,n)}}function QD(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new t9),e.forEach(function(i){var r=u9.bind(null,t,i);n.has(i)||(n.add(i),i.then(r,r))})}}function va(t,e){var n=e.deletions;if(n!==null)for(var i=0;i<n.length;i++){var r=n[i];try{var s=t,a=e,l=a;e:for(;l!==null;){switch(l.tag){case 5:Xi=l.stateNode,Ha=!1;break e;case 3:Xi=l.stateNode.containerInfo,Ha=!0;break e;case 4:Xi=l.stateNode.containerInfo,Ha=!0;break e}l=l.return}if(Xi===null)throw Error(qe(160));R4(s,a,r),Xi=null,Ha=!1;var c=r.alternate;c!==null&&(c.return=null),r.return=null}catch(d){Zn(r,e,d)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)O4(e,t),e=e.sibling}function O4(t,e){var n=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(va(e,t),to(t),i&4){try{hx(3,t,t.return),z1(3,t)}catch(w){Zn(t,t.return,w)}try{hx(5,t,t.return)}catch(w){Zn(t,t.return,w)}}break;case 1:va(e,t),to(t),i&512&&n!==null&&Up(n,n.return);break;case 5:if(va(e,t),to(t),i&512&&n!==null&&Up(n,n.return),t.flags&32){var r=t.stateNode;try{Ex(r,"")}catch(w){Zn(t,t.return,w)}}if(i&4&&(r=t.stateNode,r!=null)){var s=t.memoizedProps,a=n!==null?n.memoizedProps:s,l=t.type,c=t.updateQueue;if(t.updateQueue=null,c!==null)try{l==="input"&&s.type==="radio"&&s.name!=null&&r3(r,s),lj(l,a);var d=lj(l,s);for(a=0;a<c.length;a+=2){var u=c[a],h=c[a+1];u==="style"?c3(r,h):u==="dangerouslySetInnerHTML"?o3(r,h):u==="children"?Ex(r,h):OE(r,u,h,d)}switch(l){case"input":ij(r,s);break;case"textarea":s3(r,s);break;case"select":var p=r._wrapperState.wasMultiple;r._wrapperState.wasMultiple=!!s.multiple;var y=s.value;y!=null?Yp(r,!!s.multiple,y,!1):p!==!!s.multiple&&(s.defaultValue!=null?Yp(r,!!s.multiple,s.defaultValue,!0):Yp(r,!!s.multiple,s.multiple?[]:"",!1))}r[Lx]=s}catch(w){Zn(t,t.return,w)}}break;case 6:if(va(e,t),to(t),i&4){if(t.stateNode===null)throw Error(qe(162));r=t.stateNode,s=t.memoizedProps;try{r.nodeValue=s}catch(w){Zn(t,t.return,w)}}break;case 3:if(va(e,t),to(t),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Dx(e.containerInfo)}catch(w){Zn(t,t.return,w)}break;case 4:va(e,t),to(t);break;case 13:va(e,t),to(t),r=t.child,r.flags&8192&&(s=r.memoizedState!==null,r.stateNode.isHidden=s,!s||r.alternate!==null&&r.alternate.memoizedState!==null||(fA=oi())),i&4&&QD(t);break;case 22:if(u=n!==null&&n.memoizedState!==null,t.mode&1?(xr=(d=xr)||u,va(e,t),xr=d):va(e,t),to(t),i&8192){if(d=t.memoizedState!==null,(t.stateNode.isHidden=d)&&!u&&t.mode&1)for(it=t,u=t.child;u!==null;){for(h=it=u;it!==null;){switch(p=it,y=p.child,p.tag){case 0:case 11:case 14:case 15:hx(4,p,p.return);break;case 1:Up(p,p.return);var m=p.stateNode;if(typeof m.componentWillUnmount=="function"){i=p,n=p.return;try{e=i,m.props=e.memoizedProps,m.state=e.memoizedState,m.componentWillUnmount()}catch(w){Zn(i,n,w)}}break;case 5:Up(p,p.return);break;case 22:if(p.memoizedState!==null){e_(h);continue}}y!==null?(y.return=p,it=y):e_(h)}u=u.sibling}e:for(u=null,h=t;;){if(h.tag===5){if(u===null){u=h;try{r=h.stateNode,d?(s=r.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(l=h.stateNode,c=h.memoizedProps.style,a=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=l3("display",a))}catch(w){Zn(t,t.return,w)}}}else if(h.tag===6){if(u===null)try{h.stateNode.nodeValue=d?"":h.memoizedProps}catch(w){Zn(t,t.return,w)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===t)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;u===h&&(u=null),h=h.return}u===h&&(u=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:va(e,t),to(t),i&4&&QD(t);break;case 21:break;default:va(e,t),to(t)}}function to(t){var e=t.flags;if(e&2){try{e:{for(var n=t.return;n!==null;){if(I4(n)){var i=n;break e}n=n.return}throw Error(qe(160))}switch(i.tag){case 5:var r=i.stateNode;i.flags&32&&(Ex(r,""),i.flags&=-33);var s=JD(t);Fj(t,s,r);break;case 3:case 4:var a=i.stateNode.containerInfo,l=JD(t);Lj(t,l,a);break;default:throw Error(qe(161))}}catch(c){Zn(t,t.return,c)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function i9(t,e,n){it=t,L4(t)}function L4(t,e,n){for(var i=(t.mode&1)!==0;it!==null;){var r=it,s=r.child;if(r.tag===22&&i){var a=r.memoizedState!==null||qv;if(!a){var l=r.alternate,c=l!==null&&l.memoizedState!==null||xr;l=qv;var d=xr;if(qv=a,(xr=c)&&!d)for(it=r;it!==null;)a=it,c=a.child,a.tag===22&&a.memoizedState!==null?t_(r):c!==null?(c.return=a,it=c):t_(r);for(;s!==null;)it=s,L4(s),s=s.sibling;it=r,qv=l,xr=d}ZD(t)}else r.subtreeFlags&8772&&s!==null?(s.return=r,it=s):ZD(t)}}function ZD(t){for(;it!==null;){var e=it;if(e.flags&8772){var n=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:xr||z1(5,e);break;case 1:var i=e.stateNode;if(e.flags&4&&!xr)if(n===null)i.componentDidMount();else{var r=e.elementType===e.type?n.memoizedProps:Ca(e.type,n.memoizedProps);i.componentDidUpdate(r,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var s=e.updateQueue;s!==null&&LD(e,s,i);break;case 3:var a=e.updateQueue;if(a!==null){if(n=null,e.child!==null)switch(e.child.tag){case 5:n=e.child.stateNode;break;case 1:n=e.child.stateNode}LD(e,a,n)}break;case 5:var l=e.stateNode;if(n===null&&e.flags&4){n=l;var c=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var d=e.alternate;if(d!==null){var u=d.memoizedState;if(u!==null){var h=u.dehydrated;h!==null&&Dx(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(qe(163))}xr||e.flags&512&&Oj(e)}catch(p){Zn(e,e.return,p)}}if(e===t){it=null;break}if(n=e.sibling,n!==null){n.return=e.return,it=n;break}it=e.return}}function e_(t){for(;it!==null;){var e=it;if(e===t){it=null;break}var n=e.sibling;if(n!==null){n.return=e.return,it=n;break}it=e.return}}function t_(t){for(;it!==null;){var e=it;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{z1(4,e)}catch(c){Zn(e,n,c)}break;case 1:var i=e.stateNode;if(typeof i.componentDidMount=="function"){var r=e.return;try{i.componentDidMount()}catch(c){Zn(e,r,c)}}var s=e.return;try{Oj(e)}catch(c){Zn(e,s,c)}break;case 5:var a=e.return;try{Oj(e)}catch(c){Zn(e,a,c)}}}catch(c){Zn(e,e.return,c)}if(e===t){it=null;break}var l=e.sibling;if(l!==null){l.return=e.return,it=l;break}it=e.return}}var r9=Math.ceil,ck=Zl.ReactCurrentDispatcher,pA=Zl.ReactCurrentOwner,fa=Zl.ReactCurrentBatchConfig,sn=0,Fi=null,fi=null,tr=0,Ps=0,Wp=Ad(0),Ei=0,Vx=null,Ah=0,V1=0,mA=0,px=null,Zr=null,fA=0,Af=1/0,el=null,dk=!1,Bj=null,fd=null,Kv=!1,nd=null,uk=0,mx=0,$j=null,z0=-1,V0=0;function Rr(){return sn&6?oi():z0!==-1?z0:z0=oi()}function gd(t){return t.mode&1?sn&2&&tr!==0?tr&-tr:HU.transition!==null?(V0===0&&(V0=w3()),V0):(t=bn,t!==0||(t=window.event,t=t===void 0?16:E3(t.type)),t):1}function Ya(t,e,n,i){if(50<mx)throw mx=0,$j=null,Error(qe(185));Xb(t,n,i),(!(sn&2)||t!==Fi)&&(t===Fi&&(!(sn&2)&&(V1|=n),Ei===4&&kc(t,tr)),os(t,i),n===1&&sn===0&&!(e.mode&1)&&(Af=oi()+500,B1&&Nd()))}function os(t,e){var n=t.callbackNode;HV(t,e);var i=Kw(t,t===Fi?tr:0);if(i===0)n!==null&&dD(n),t.callbackNode=null,t.callbackPriority=0;else if(e=i&-i,t.callbackPriority!==e){if(n!=null&&dD(n),e===1)t.tag===0?$U(n_.bind(null,t)):q3(n_.bind(null,t)),OU(function(){!(sn&6)&&Nd()}),n=null;else{switch(k3(i)){case 1:n=HE;break;case 4:n=b3;break;case 16:n=qw;break;case 536870912:n=v3;break;default:n=qw}n=W4(n,F4.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function F4(t,e){if(z0=-1,V0=0,sn&6)throw Error(qe(327));var n=t.callbackNode;if(em()&&t.callbackNode!==n)return null;var i=Kw(t,t===Fi?tr:0);if(i===0)return null;if(i&30||i&t.expiredLanes||e)e=hk(t,i);else{e=i;var r=sn;sn|=2;var s=$4();(Fi!==t||tr!==e)&&(el=null,Af=oi()+500,xh(t,e));do try{o9();break}catch(l){B4(t,l)}while(!0);eA(),ck.current=s,sn=r,fi!==null?e=0:(Fi=null,tr=0,e=Ei)}if(e!==0){if(e===2&&(r=pj(t),r!==0&&(i=r,e=Hj(t,r))),e===1)throw n=Vx,xh(t,0),kc(t,i),os(t,oi()),n;if(e===6)kc(t,i);else{if(r=t.current.alternate,!(i&30)&&!s9(r)&&(e=hk(t,i),e===2&&(s=pj(t),s!==0&&(i=s,e=Hj(t,s))),e===1))throw n=Vx,xh(t,0),kc(t,i),os(t,oi()),n;switch(t.finishedWork=r,t.finishedLanes=i,e){case 0:case 1:throw Error(qe(345));case 2:Ud(t,Zr,el);break;case 3:if(kc(t,i),(i&130023424)===i&&(e=fA+500-oi(),10<e)){if(Kw(t,0)!==0)break;if(r=t.suspendedLanes,(r&i)!==i){Rr(),t.pingedLanes|=t.suspendedLanes&r;break}t.timeoutHandle=wj(Ud.bind(null,t,Zr,el),e);break}Ud(t,Zr,el);break;case 4:if(kc(t,i),(i&4194240)===i)break;for(e=t.eventTimes,r=-1;0<i;){var a=31-Ka(i);s=1<<a,a=e[a],a>r&&(r=a),i&=~s}if(i=r,i=oi()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*r9(i/1960))-i,10<i){t.timeoutHandle=wj(Ud.bind(null,t,Zr,el),i);break}Ud(t,Zr,el);break;case 5:Ud(t,Zr,el);break;default:throw Error(qe(329))}}}return os(t,oi()),t.callbackNode===n?F4.bind(null,t):null}function Hj(t,e){var n=px;return t.current.memoizedState.isDehydrated&&(xh(t,e).flags|=256),t=hk(t,e),t!==2&&(e=Zr,Zr=n,e!==null&&zj(e)),t}function zj(t){Zr===null?Zr=t:Zr.push.apply(Zr,t)}function s9(t){for(var e=t;;){if(e.flags&16384){var n=e.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var i=0;i<n.length;i++){var r=n[i],s=r.getSnapshot;r=r.value;try{if(!Ja(s(),r))return!1}catch{return!1}}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;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 kc(t,e){for(e&=~mA,e&=~V1,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-Ka(e),i=1<<n;t[n]=-1,e&=~i}}function n_(t){if(sn&6)throw Error(qe(327));em();var e=Kw(t,0);if(!(e&1))return os(t,oi()),null;var n=hk(t,e);if(t.tag!==0&&n===2){var i=pj(t);i!==0&&(e=i,n=Hj(t,i))}if(n===1)throw n=Vx,xh(t,0),kc(t,e),os(t,oi()),n;if(n===6)throw Error(qe(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,Ud(t,Zr,el),os(t,oi()),null}function gA(t,e){var n=sn;sn|=1;try{return t(e)}finally{sn=n,sn===0&&(Af=oi()+500,B1&&Nd())}}function Nh(t){nd!==null&&nd.tag===0&&!(sn&6)&&em();var e=sn;sn|=1;var n=fa.transition,i=bn;try{if(fa.transition=null,bn=1,t)return t()}finally{bn=i,fa.transition=n,sn=e,!(sn&6)&&Nd()}}function xA(){Ps=Wp.current,Ln(Wp)}function xh(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,RU(n)),fi!==null)for(n=fi.return;n!==null;){var i=n;switch(JE(i),i.tag){case 1:i=i.type.childContextTypes,i!=null&&Zw();break;case 3:Pf(),Ln(ss),Ln(vr),aA();break;case 5:sA(i);break;case 4:Pf();break;case 13:Ln(Wn);break;case 19:Ln(Wn);break;case 10:tA(i.type._context);break;case 22:case 23:xA()}n=n.return}if(Fi=t,fi=t=xd(t.current,null),tr=Ps=e,Ei=0,Vx=null,mA=V1=Ah=0,Zr=px=null,iu!==null){for(e=0;e<iu.length;e++)if(n=iu[e],i=n.interleaved,i!==null){n.interleaved=null;var r=i.next,s=n.pending;if(s!==null){var a=s.next;s.next=r,i.next=a}n.pending=i}iu=null}return t}function B4(t,e){do{var n=fi;try{if(eA(),B0.current=lk,ok){for(var i=qn.memoizedState;i!==null;){var r=i.queue;r!==null&&(r.pending=null),i=i.next}ok=!1}if(Eh=0,Oi=Ti=qn=null,ux=!1,$x=0,pA.current=null,n===null||n.return===null){Ei=1,Vx=e,fi=null;break}e:{var s=t,a=n.return,l=n,c=e;if(e=tr,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var d=c,u=l,h=u.tag;if(!(u.mode&1)&&(h===0||h===11||h===15)){var p=u.alternate;p?(u.updateQueue=p.updateQueue,u.memoizedState=p.memoizedState,u.lanes=p.lanes):(u.updateQueue=null,u.memoizedState=null)}var y=VD(a);if(y!==null){y.flags&=-257,UD(y,a,l,s,e),y.mode&1&&zD(s,d,e),e=y,c=d;var m=e.updateQueue;if(m===null){var w=new Set;w.add(c),e.updateQueue=w}else m.add(c);break e}else{if(!(e&1)){zD(s,d,e),yA();break e}c=Error(qe(426))}}else if(Hn&&l.mode&1){var k=VD(a);if(k!==null){!(k.flags&65536)&&(k.flags|=256),UD(k,a,l,s,e),QE(Ef(c,l));break e}}s=c=Ef(c,l),Ei!==4&&(Ei=2),px===null?px=[s]:px.push(s),s=a;do{switch(s.tag){case 3:s.flags|=65536,e&=-e,s.lanes|=e;var b=k4(s,c,e);OD(s,b);break e;case 1:l=c;var x=s.type,v=s.stateNode;if(!(s.flags&128)&&(typeof x.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(fd===null||!fd.has(v)))){s.flags|=65536,e&=-e,s.lanes|=e;var E=S4(s,l,e);OD(s,E);break e}}s=s.return}while(s!==null)}z4(n)}catch(N){e=N,fi===n&&n!==null&&(fi=n=n.return);continue}break}while(!0)}function $4(){var t=ck.current;return ck.current=lk,t===null?lk:t}function yA(){(Ei===0||Ei===3||Ei===2)&&(Ei=4),Fi===null||!(Ah&268435455)&&!(V1&268435455)||kc(Fi,tr)}function hk(t,e){var n=sn;sn|=2;var i=$4();(Fi!==t||tr!==e)&&(el=null,xh(t,e));do try{a9();break}catch(r){B4(t,r)}while(!0);if(eA(),sn=n,ck.current=i,fi!==null)throw Error(qe(261));return Fi=null,tr=0,Ei}function a9(){for(;fi!==null;)H4(fi)}function o9(){for(;fi!==null&&!DV();)H4(fi)}function H4(t){var e=U4(t.alternate,t,Ps);t.memoizedProps=t.pendingProps,e===null?z4(t):fi=e,pA.current=null}function z4(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&32768){if(n=e9(n,e),n!==null){n.flags&=32767,fi=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Ei=6,fi=null;return}}else if(n=ZU(n,e,Ps),n!==null){fi=n;return}if(e=e.sibling,e!==null){fi=e;return}fi=e=t}while(e!==null);Ei===0&&(Ei=5)}function Ud(t,e,n){var i=bn,r=fa.transition;try{fa.transition=null,bn=1,l9(t,e,n,i)}finally{fa.transition=r,bn=i}return null}function l9(t,e,n,i){do em();while(nd!==null);if(sn&6)throw Error(qe(327));n=t.finishedWork;var r=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(qe(177));t.callbackNode=null,t.callbackPriority=0;var s=n.lanes|n.childLanes;if(zV(t,s),t===Fi&&(fi=Fi=null,tr=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Kv||(Kv=!0,W4(qw,function(){return em(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=fa.transition,fa.transition=null;var a=bn;bn=1;var l=sn;sn|=4,pA.current=null,n9(t,n),O4(n,t),EU(bj),Yw=!!yj,bj=yj=null,t.current=n,i9(n),_V(),sn=l,bn=a,fa.transition=s}else t.current=n;if(Kv&&(Kv=!1,nd=t,uk=r),s=t.pendingLanes,s===0&&(fd=null),OV(n.stateNode),os(t,oi()),e!==null)for(i=t.onRecoverableError,n=0;n<e.length;n++)r=e[n],i(r.value,{componentStack:r.stack,digest:r.digest});if(dk)throw dk=!1,t=Bj,Bj=null,t;return uk&1&&t.tag!==0&&em(),s=t.pendingLanes,s&1?t===$j?mx++:(mx=0,$j=t):mx=0,Nd(),null}function em(){if(nd!==null){var t=k3(uk),e=fa.transition,n=bn;try{if(fa.transition=null,bn=16>t?16:t,nd===null)var i=!1;else{if(t=nd,nd=null,uk=0,sn&6)throw Error(qe(331));var r=sn;for(sn|=4,it=t.current;it!==null;){var s=it,a=s.child;if(it.flags&16){var l=s.deletions;if(l!==null){for(var c=0;c<l.length;c++){var d=l[c];for(it=d;it!==null;){var u=it;switch(u.tag){case 0:case 11:case 15:hx(8,u,s)}var h=u.child;if(h!==null)h.return=u,it=h;else for(;it!==null;){u=it;var p=u.sibling,y=u.return;if(_4(u),u===d){it=null;break}if(p!==null){p.return=y,it=p;break}it=y}}}var m=s.alternate;if(m!==null){var w=m.child;if(w!==null){m.child=null;do{var k=w.sibling;w.sibling=null,w=k}while(w!==null)}}it=s}}if(s.subtreeFlags&2064&&a!==null)a.return=s,it=a;else e:for(;it!==null;){if(s=it,s.flags&2048)switch(s.tag){case 0:case 11:case 15:hx(9,s,s.return)}var b=s.sibling;if(b!==null){b.return=s.return,it=b;break e}it=s.return}}var x=t.current;for(it=x;it!==null;){a=it;var v=a.child;if(a.subtreeFlags&2064&&v!==null)v.return=a,it=v;else e:for(a=x;it!==null;){if(l=it,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:z1(9,l)}}catch(N){Zn(l,l.return,N)}if(l===a){it=null;break e}var E=l.sibling;if(E!==null){E.return=l.return,it=E;break e}it=l.return}}if(sn=r,Nd(),Ro&&typeof Ro.onPostCommitFiberRoot=="function")try{Ro.onPostCommitFiberRoot(I1,t)}catch{}i=!0}return i}finally{bn=n,fa.transition=e}}return!1}function i_(t,e,n){e=Ef(n,e),e=k4(t,e,1),t=md(t,e,1),e=Rr(),t!==null&&(Xb(t,1,e),os(t,e))}function Zn(t,e,n){if(t.tag===3)i_(t,t,n);else for(;e!==null;){if(e.tag===3){i_(e,t,n);break}else if(e.tag===1){var i=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(fd===null||!fd.has(i))){t=Ef(n,t),t=S4(e,t,1),e=md(e,t,1),t=Rr(),e!==null&&(Xb(e,1,t),os(e,t));break}}e=e.return}}function c9(t,e,n){var i=t.pingCache;i!==null&&i.delete(e),e=Rr(),t.pingedLanes|=t.suspendedLanes&n,Fi===t&&(tr&n)===n&&(Ei===4||Ei===3&&(tr&130023424)===tr&&500>oi()-fA?xh(t,0):mA|=n),os(t,e)}function V4(t,e){e===0&&(t.mode&1?(e=Fv,Fv<<=1,!(Fv&130023424)&&(Fv=4194304)):e=1);var n=Rr();t=Gl(t,e),t!==null&&(Xb(t,e,n),os(t,n))}function d9(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),V4(t,n)}function u9(t,e){var n=0;switch(t.tag){case 13:var i=t.stateNode,r=t.memoizedState;r!==null&&(n=r.retryLane);break;case 19:i=t.stateNode;break;default:throw Error(qe(314))}i!==null&&i.delete(e),V4(t,n)}var U4;U4=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||ss.current)ts=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return ts=!1,QU(t,e,n);ts=!!(t.flags&131072)}else ts=!1,Hn&&e.flags&1048576&&K3(e,nk,e.index);switch(e.lanes=0,e.tag){case 2:var i=e.type;H0(t,e),t=e.pendingProps;var r=Cf(e,vr.current);Zp(e,n),r=lA(null,e,i,t,r,n);var s=cA();return e.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,as(i)?(s=!0,ek(e)):s=!1,e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,iA(e),r.updater=H1,e.stateNode=r,r._reactInternals=e,Ej(e,i,t,n),e=Mj(null,e,i,!0,s,n)):(e.tag=0,Hn&&s&&XE(e),Nr(null,e,r,n),e=e.child),e;case 16:i=e.elementType;e:{switch(H0(t,e),t=e.pendingProps,r=i._init,i=r(i._payload),e.type=i,r=e.tag=p9(i),t=Ca(i,t),r){case 0:e=Nj(null,e,i,t,n);break e;case 1:e=qD(null,e,i,t,n);break e;case 11:e=WD(null,e,i,t,n);break e;case 14:e=GD(null,e,i,Ca(i.type,t),n);break e}throw Error(qe(306,i,""))}return e;case 0:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Ca(i,r),Nj(t,e,i,r,n);case 1:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Ca(i,r),qD(t,e,i,r,n);case 3:e:{if(P4(e),t===null)throw Error(qe(387));i=e.pendingProps,s=e.memoizedState,r=s.element,e4(t,e),sk(e,i,null,n);var a=e.memoizedState;if(i=a.element,s.isDehydrated)if(s={element:i,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){r=Ef(Error(qe(423)),e),e=KD(t,e,i,n,r);break e}else if(i!==r){r=Ef(Error(qe(424)),e),e=KD(t,e,i,n,r);break e}else for(Os=pd(e.stateNode.containerInfo.firstChild),Bs=e,Hn=!0,Ua=null,n=Q3(e,null,i,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(jf(),i===r){e=ql(t,e,n);break e}Nr(t,e,i,n)}e=e.child}return e;case 5:return t4(e),t===null&&jj(e),i=e.type,r=e.pendingProps,s=t!==null?t.memoizedProps:null,a=r.children,vj(i,r)?a=null:s!==null&&vj(i,s)&&(e.flags|=32),T4(t,e),Nr(t,e,a,n),e.child;case 6:return t===null&&jj(e),null;case 13:return E4(t,e,n);case 4:return rA(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=Tf(e,null,i,n):Nr(t,e,i,n),e.child;case 11:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Ca(i,r),WD(t,e,i,r,n);case 7:return Nr(t,e,e.pendingProps,n),e.child;case 8:return Nr(t,e,e.pendingProps.children,n),e.child;case 12:return Nr(t,e,e.pendingProps.children,n),e.child;
vendor: 6,934 bytes, line 40
40case 10:e:{if(i=e.type._context,r=e.pendingProps,s=e.memoizedProps,a=r.value,Dn(ik,i._currentValue),i._currentValue=a,s!==null)if(Ja(s.value,a)){if(s.children===r.children&&!ss.current){e=ql(t,e,n);break e}}else for(s=e.child,s!==null&&(s.return=e);s!==null;){var l=s.dependencies;if(l!==null){a=s.child;for(var c=l.firstContext;c!==null;){if(c.context===i){if(s.tag===1){c=Rl(-1,n&-n),c.tag=2;var d=s.updateQueue;if(d!==null){d=d.shared;var u=d.pending;u===null?c.next=c:(c.next=u.next,u.next=c),d.pending=c}}s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),Tj(s.return,n,e),l.lanes|=n;break}c=c.next}}else if(s.tag===10)a=s.type===e.type?null:s.child;else if(s.tag===18){if(a=s.return,a===null)throw Error(qe(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Tj(a,n,e),a=s.sibling}else a=s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===e){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}Nr(t,e,r.children,n),e=e.child}return e;case 9:return r=e.type,i=e.pendingProps.children,Zp(e,n),r=ga(r),i=i(r),e.flags|=1,Nr(t,e,i,n),e.child;case 14:return i=e.type,r=Ca(i,e.pendingProps),r=Ca(i.type,r),GD(t,e,i,r,n);case 15:return C4(t,e,e.type,e.pendingProps,n);case 17:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Ca(i,r),H0(t,e),e.tag=1,as(i)?(t=!0,ek(e)):t=!1,Zp(e,n),w4(e,i,r),Ej(e,i,r,n),Mj(null,e,i,!0,t,n);case 19:return A4(t,e,n);case 22:return j4(t,e,n)}throw Error(qe(156,e.tag))};function W4(t,e){return y3(t,e)}function h9(t,e,n,i){this.tag=t,this.key=n,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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function da(t,e,n,i){return new h9(t,e,n,i)}function bA(t){return t=t.prototype,!(!t||!t.isReactComponent)}function p9(t){if(typeof t=="function")return bA(t)?1:0;if(t!=null){if(t=t.$$typeof,t===FE)return 11;if(t===BE)return 14}return 2}function xd(t,e){var n=t.alternate;return n===null?(n=da(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function U0(t,e,n,i,r,s){var a=2;if(i=t,typeof t=="function")bA(t)&&(a=1);else if(typeof t=="string")a=5;else e:switch(t){case Rp:return yh(n.children,r,s,e);case LE:a=8,r|=8;break;case Q2:return t=da(12,n,e,r|2),t.elementType=Q2,t.lanes=s,t;case Z2:return t=da(13,n,e,r),t.elementType=Z2,t.lanes=s,t;case ej:return t=da(19,n,e,r),t.elementType=ej,t.lanes=s,t;case t3:return U1(n,r,s,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case ZL:a=10;break e;case e3:a=9;break e;case FE:a=11;break e;case BE:a=14;break e;case yc:a=16,i=null;break e}throw Error(qe(130,t==null?t:typeof t,""))}return e=da(a,n,e,r),e.elementType=t,e.type=i,e.lanes=s,e}function yh(t,e,n,i){return t=da(7,t,i,e),t.lanes=n,t}function U1(t,e,n,i){return t=da(22,t,i,e),t.elementType=t3,t.lanes=n,t.stateNode={isHidden:!1},t}function FC(t,e,n){return t=da(6,t,null,e),t.lanes=n,t}function BC(t,e,n){return e=da(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function m9(t,e,n,i,r){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=bC(0),this.expirationTimes=bC(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bC(0),this.identifierPrefix=i,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function vA(t,e,n,i,r,s,a,l,c){return t=new m9(t,e,n,l,c),e===1?(e=1,s===!0&&(e|=8)):e=0,s=da(3,null,null,e),t.current=s,s.stateNode=t,s.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},iA(s),t}function f9(t,e,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ip,key:i==null?null:""+i,children:t,containerInfo:e,implementation:n}}function G4(t){if(!t)return wd;t=t._reactInternals;e:{if(Yh(t)!==t||t.tag!==1)throw Error(qe(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(as(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(qe(171))}if(t.tag===1){var n=t.type;if(as(n))return G3(t,n,e)}return e}function q4(t,e,n,i,r,s,a,l,c){return t=vA(n,i,!0,t,r,s,a,l,c),t.context=G4(null),n=t.current,i=Rr(),r=gd(n),s=Rl(i,r),s.callback=e??null,md(n,s,r),t.current.lanes=r,Xb(t,r,i),os(t,i),t}function W1(t,e,n,i){var r=e.current,s=Rr(),a=gd(r);return n=G4(n),e.context===null?e.context=n:e.pendingContext=n,e=Rl(s,a),e.payload={element:t},i=i===void 0?null:i,i!==null&&(e.callback=i),t=md(r,e,a),t!==null&&(Ya(t,r,a,s),F0(t,r,a)),a}function pk(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 r_(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function wA(t,e){r_(t,e),(t=t.alternate)&&r_(t,e)}function g9(){return null}var K4=typeof reportError=="function"?reportError:function(t){console.error(t)};function kA(t){this._internalRoot=t}G1.prototype.render=kA.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(qe(409));W1(t,e,null,null)};G1.prototype.unmount=kA.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Nh(function(){W1(null,t,null,null)}),e[Wl]=null}};function G1(t){this._internalRoot=t}G1.prototype.unstable_scheduleHydration=function(t){if(t){var e=j3();t={blockedOn:null,target:t,priority:e};for(var n=0;n<wc.length&&e!==0&&e<wc[n].priority;n++);wc.splice(n,0,t),n===0&&P3(t)}};function SA(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function q1(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function s_(){}function x9(t,e,n,i,r){if(r){if(typeof i=="function"){var s=i;i=function(){var d=pk(a);s.call(d)}}var a=q4(e,i,t,0,null,!1,!1,"",s_);return t._reactRootContainer=a,t[Wl]=a.current,Rx(t.nodeType===8?t.parentNode:t),Nh(),a}for(;r=t.lastChild;)t.removeChild(r);if(typeof i=="function"){var l=i;
40i=function(){var d=pk(c);l.call(d)}}var c=vA(t,0,!1,null,null,!1,!1,"",s_);return t._reactRootContainer=c,t[Wl]=c.current,Rx(t.nodeType===8?t.parentNode:t),Nh(function(){W1(e,c,n,i)}),c}function K1(t,e,n,i,r){var s=n._reactRootContainer;if(s){var a=s;if(typeof r=="function"){var l=r;r=function(){var c=pk(a);l.call(c)}}W1(e,a,t,r)}else a=x9(n,e,t,r,i);return pk(a)}S3=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=_g(e.pendingLanes);n!==0&&(zE(e,n|1),os(e,oi()),!(sn&6)&&(Af=oi()+500,Nd()))}break;case 13:Nh(function(){var i=Gl(t,1);if(i!==null){var r=Rr();Ya(i,t,1,r)}}),wA(t,1)}};VE=function(t){if(t.tag===13){var e=Gl(t,134217728);if(e!==null){var n=Rr();Ya(e,t,134217728,n)}wA(t,134217728)}};C3=function(t){if(t.tag===13){var e=gd(t),n=Gl(t,e);if(n!==null){var i=Rr();Ya(n,t,e,i)}wA(t,e)}};j3=function(){return bn};T3=function(t,e){var n=bn;try{return bn=t,e()}finally{bn=n}};dj=function(t,e,n){switch(e){case"input":if(ij(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var i=n[e];if(i!==t&&i.form===t.form){var r=F1(i);if(!r)throw Error(qe(90));i3(i),ij(i,r)}}}break;case"textarea":s3(t,n);break;case"select":e=n.value,e!=null&&Yp(t,!!n.multiple,e,!1)}};h3=gA;p3=Nh;var y9={usingClientEntryPoint:!1,Events:[Qb,Bp,F1,d3,u3,gA]},hg={findFiberByHostInstance:nu,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},b9={bundleType:hg.bundleType,version:hg.version,rendererPackageName:hg.rendererPackageName,rendererConfig:hg.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Zl.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=g3(t),t===null?null:t.stateNode},findFiberByHostInstance:hg.findFiberByHostInstance||g9,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 Yv=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yv.isDisabled&&Yv.supportsFiber)try{I1=Yv.inject(b9),Ro=Yv}catch{}}Ws.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=y9;Ws.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!SA(e))throw Error(qe(200));return f9(t,e,null,n)};Ws.createRoot=function(t,e){if(!SA(t))throw Error(qe(299));var n=!1,i="",r=K4;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(i=e.identifierPrefix),e.onRecoverableError!==void 0&&(r=e.onRecoverableError)),e=vA(t,1,!1,null,null,n,!1,i,r),t[Wl]=e.current,Rx(t.nodeType===8?t.parentNode:t),new kA(e)};Ws.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(qe(188)):(t=Object.keys(t).join(","),Error(qe(268,t)));return t=g3(e),t=t===null?null:t.stateNode,t};Ws.flushSync=function(t){return Nh(t)};Ws.hydrate=function(t,e,n){if(!q1(e))throw Error(qe(200));return K1(null,t,e,!0,n)};Ws.hydrateRoot=function(t,e,n){if(!SA(t))throw Error(qe(405));var i=n!=null&&n.hydratedSources||null,r=!1,s="",a=K4;if(n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),e=q4(e,null,t,1,n??null,r,!1,s,a),t[Wl]=e.current,Rx(t),i)for(t=0;t<i.length;t++)n=i[t],r=n._getVersion,r=r(n._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,r]:e.mutableSourceEagerHydrationData.push(n,r);return new G1(e)};Ws.render=function(t,e,n){if(!q1(e))throw Error(qe(200));return K1(null,t,e,!1,n)};Ws.unmountComponentAtNode=function(t){if(!q1(t))throw Error(qe(40));return t._reactRootContainer?(Nh(function(){K1(null,null,t,!1,function(){t._reactRootContainer=null,t[Wl]=null})}),!0):!1};Ws.unstable_batchedUpdates=gA;Ws.unstable_renderSubtreeIntoContainer=function(t,e,n,i){if(!q1(n))throw Error(qe(200));if(t==null||t._reactInternals===void 0)throw Error(qe(38));return K1(t,e,n,!1,i)};Ws.version="18.3.1-next-f1338f8080-20240426";function Y4(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Y4)}catch(t){console.error(t)}}Y4(),YL.exports=Ws;var $o=YL.exports;const v9=Fr($o),w9=LL({__proto__:null,default:v9},[$o]);var a_=$o;X2.createRoot=a_.createRoot,X2.hydrateRoot=a_.hydrateRoot;/** 41 * @remix-run/router v1.18.0 42 * 43 * Copyright (c) Remix Software Inc. 44 * 45 * This source code is licensed under the MIT license found in the 46 * LICENSE.md file in the root directory of this source tree. 47 * 48 * @license MIT 49 */function $n(){return $n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},$n.apply(this,arguments)}var pi;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(pi||(pi={}));const o_="popstate";function k9(t){t===void 0&&(t={});function e(i,r){let{pathname:s,search:a,hash:l}=i.location;return Ux("",{pathname:s,search:a,hash:l},r.state&&r.state.usr||null,r.state&&r.state.key||"default")}function n(i,r){return typeof r=="string"?r:Mh(r)}return C9(e,n,null,t)}function Vt(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Nf(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function S9(){return Math.random().toString(36).substr(2,8)}function l_(t,e){return{usr:t.state,key:t.key,idx:e}}function Ux(t,e,n,i){return n===void 0&&(n=null),$n({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Md(e):e,{state:n,key:e&&e.key||i||S9()})}function Mh(t){let{pathname:e="/",search:n="",hash:i=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(e+=i.charAt(0)==="#"?i:"#"+i),e}function Md(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let i=t.indexOf("?");i>=0&&(e.search=t.substr(i),t=t.substr(0,i)),t&&(e.pathname=t)}return e}function C9(t,e,n,i){i===void 0&&(i={});let{window:r=document.defaultView,v5Compat:s=!1}=i,a=r.history,l=pi.Pop,c=null,d=u();d==null&&(d=0,a.replaceState($n({},a.state,{idx:d}),""));function u(){return(a.state||{idx:null}).idx}function h(){l=pi.Pop;let k=u(),b=k==null?null:k-d;d=k,c&&c({action:l,location:w.location,delta:b})}function p(k,b){l=pi.Push;let x=Ux(w.location,k,b);d=u()+1;let v=l_(x,d),E=w.createHref(x);try{a.pushState(v,"",E)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;r.location.assign(E)}s&&c&&c({action:l,location:w.location,delta:1})}function y(k,b){l=pi.Replace;let x=Ux(w.location,k,b);d=u();let v=l_(x,d),E=w.createHref(x);a.replaceState(v,"",E),s&&c&&c({action:l,location:w.location,delta:0})}function m(k){let b=r.location.origin!=="null"?r.location.origin:r.location.href,x=typeof k=="string"?k:Mh(k);return x=x.replace(/ $/,"%20"),Vt(b,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,b)}let w={get action(){return l},get location(){return t(r,a)},listen(k){if(c)throw new Error("A history only accepts one active listener");return r.addEventListener(o_,h),c=k,()=>{r.removeEventListener(o_,h),c=null}},createHref(k){return e(r,k)},createURL:m,encodeLocation(k){let b=m(k);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:p,replace:y,go(k){return a.go(k)}};return w}var Mn;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Mn||(Mn={}));
vendor: 3,032 bytes, line 49
49const j9=new Set(["lazy","caseSensitive","path","id","index","children"]);function T9(t){return t.index===!0}function Wx(t,e,n,i){return n===void 0&&(n=[]),i===void 0&&(i={}),t.map((r,s)=>{let a=[...n,String(s)],l=typeof r.id=="string"?r.id:a.join("-");if(Vt(r.index!==!0||!r.children,"Cannot specify children on an index route"),Vt(!i[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),T9(r)){let c=$n({},r,e(r),{id:l});return i[l]=c,c}else{let c=$n({},r,e(r),{id:l,children:void 0});return i[l]=c,r.children&&(c.children=Wx(r.children,e,a,i)),c}})}function Yd(t,e,n){return n===void 0&&(n="/"),W0(t,e,n,!1)}function W0(t,e,n,i){let r=typeof e=="string"?Md(e):e,s=Vf(r.pathname||"/",n);if(s==null)return null;let a=X4(t);E9(a);let l=null;for(let c=0;l==null&&c<a.length;++c){let d=B9(s);l=L9(a[c],d,i)}return l}function P9(t,e){let{route:n,pathname:i,params:r}=t;return{id:n.id,pathname:i,params:r,data:e[n.id],handle:n.handle}}function X4(t,e,n,i){e===void 0&&(e=[]),n===void 0&&(n=[]),i===void 0&&(i="");let r=(s,a,l)=>{let c={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};c.relativePath.startsWith("/")&&(Vt(c.relativePath.startsWith(i),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(i.length));let d=Ol([i,c.relativePath]),u=n.concat(c);s.children&&s.children.length>0&&(Vt(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),X4(s.children,e,u,d)),!(s.path==null&&!s.index)&&e.push({path:d,score:R9(d,s.index),routesMeta:u})};return t.forEach((s,a)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))r(s,a);else for(let c of J4(s.path))r(s,a,c)}),e}function J4(t){let e=t.split("/");if(e.length===0)return[];let[n,...i]=e,r=n.endsWith("?"),s=n.replace(/\?$/,"");if(i.length===0)return r?[s,""]:[s];let a=J4(i.join("/")),l=[];return l.push(...a.map(c=>c===""?s:[s,c].join("/"))),r&&l.push(...a),l.map(c=>t.startsWith("/")&&c===""?"/":c)}function E9(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:O9(e.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}const A9=/^:[\w-]+$/,N9=3,M9=2,D9=1,_9=10,I9=-2,c_=t=>t==="*";function R9(t,e){let n=t.split("/"),i=n.length;return n.some(c_)&&(i+=I9),e&&(i+=M9),n.filter(r=>!c_(r)).reduce((r,s)=>r+(A9.test(s)?N9:s===""?D9:_9),i)}function O9(t,e){return t.length===e.length&&t.slice(0,-1).every((i,r)=>i===e[r])?t[t.length-1]-e[e.length-1]:0}function L9(t,e,n){n===void 0&&(n=!1);let{routesMeta:i}=t,r={},s="/",a=[];for(let l=0;l<i.length;++l){let c=i[l],d=l===i.length-1,u=s==="/"?e:e.slice(s.length)||"/",h=d_({path:c.relativePath,caseSensitive:c.caseSensitive,end:d},u),p=c.route;if(!h&&d&&n&&!i[i.length-1].route.index&&(h=d_({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},u)),!h)return null;
vendor: 3,473 bytes, line 49
49Object.assign(r,h.params),a.push({params:r,pathname:Ol([s,h.pathname]),pathnameBase:z9(Ol([s,h.pathnameBase])),route:p}),h.pathnameBase!=="/"&&(s=Ol([s,h.pathnameBase]))}return a}function d_(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,i]=F9(t.path,t.caseSensitive,t.end),r=e.match(n);if(!r)return null;let s=r[0],a=s.replace(/(.)\/+$/,"$1"),l=r.slice(1);return{params:i.reduce((d,u,h)=>{let{paramName:p,isOptional:y}=u;if(p==="*"){let w=l[h]||"";a=s.slice(0,s.length-w.length).replace(/(.)\/+$/,"$1")}const m=l[h];return y&&!m?d[p]=void 0:d[p]=(m||"").replace(/%2F/g,"/"),d},{}),pathname:s,pathnameBase:a,pattern:t}}function F9(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),Nf(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let i=[],r="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,c)=>(i.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(i.push({paramName:"*"}),r+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":t!==""&&t!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,e?void 0:"i"),i]}function B9(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Nf(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function Vf(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,i=t.charAt(n);return i&&i!=="/"?null:t.slice(n)||"/"}function $9(t,e){e===void 0&&(e="/");let{pathname:n,search:i="",hash:r=""}=typeof t=="string"?Md(t):t;return{pathname:n?n.startsWith("/")?n:H9(n,e):e,search:V9(i),hash:U9(r)}}function H9(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function $C(t,e,n,i){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(i)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Q4(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function CA(t,e){let n=Q4(t);return e?n.map((i,r)=>r===n.length-1?i.pathname:i.pathnameBase):n.map(i=>i.pathnameBase)}function jA(t,e,n,i){i===void 0&&(i=!1);let r;typeof t=="string"?r=Md(t):(r=$n({},t),Vt(!r.pathname||!r.pathname.includes("?"),$C("?","pathname","search",r)),Vt(!r.pathname||!r.pathname.includes("#"),$C("#","pathname","hash",r)),Vt(!r.search||!r.search.includes("#"),$C("#","search","hash",r)));let s=t===""||r.pathname==="",a=s?"/":r.pathname,l;if(a==null)l=n;else{let h=e.length-1;if(!i&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),h-=1;r.pathname=p.join("/")}l=h>=0?e[h]:"/"}let c=$9(r,l),d=a&&a!=="/"&&a.endsWith("/"),u=(s||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||u)&&(c.pathname+="/"),c}const Ol=t=>t.join("/").replace(/\/\/+/g,"/"),z9=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),V9=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,U9=t=>
49!t||t==="#"?"":t.startsWith("#")?t:"#"+t,TA=function(e,n){n===void 0&&(n=302);let i=n;typeof i=="number"?i={status:i}:typeof i.status>"u"&&(i.status=302);let r=new Headers(i.headers);return r.set("Location",e),new Response(null,$n({},i,{headers:r}))};class PA{constructor(e,n,i,r){r===void 0&&(r=!1),this.status=e,this.statusText=n||"",this.internal=r,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}}function ev(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const Z4=["post","put","patch","delete"],W9=new Set(Z4),G9=["get",...Z4],q9=new Set(G9),K9=new Set([301,302,303,307,308]),Y9=new Set([307,308]),HC={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},X9={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},pg={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},EA=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,J9=t=>({hasErrorBoundary:!!t.hasErrorBoundary}),eF="remix-router-transitions";function Q9(t){const e=t.window?t.window:typeof window<"u"?window:void 0,n=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u",i=!n;Vt(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let r;if(t.mapRouteProperties)r=t.mapRouteProperties;else if(t.detectErrorBoundary){let je=t.detectErrorBoundary;r=Ae=>({hasErrorBoundary:je(Ae)})}else r=J9;let s={},a=Wx(t.routes,r,void 0,s),l,c=t.basename||"/",d=t.unstable_dataStrategy||i7,u=t.unstable_patchRoutesOnMiss,h=$n({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},t.future),p=null,y=new Set,m=null,w=null,k=null,b=t.hydrationData!=null,x=Yd(a,t.history.location,c),v=null;if(x==null&&!u){let je=Ar(404,{pathname:t.history.location.pathname}),{matches:Ae,route:De}=v_(a);x=Ae,v={[De.id]:je}}x&&u&&!t.hydrationData&&pn(x,a,t.history.location.pathname).active&&(x=null);let E;if(!x)E=!1,x=[];else if(x.some(je=>je.route.lazy))E=!1;else if(!x.some(je=>je.route.loader))E=!0;else if(h.v7_partialHydration){let je=t.hydrationData?t.hydrationData.loaderData:null,Ae=t.hydrationData?t.hydrationData.errors:null,De=Oe=>Oe.route.loader?typeof Oe.route.loader=="function"&&Oe.route.loader.hydrate===!0?!1:je&&je[Oe.route.id]!==void 0||Ae&&Ae[Oe.route.id]!==void 0:!0;if(Ae){let Oe=x.findIndex(Xe=>Ae[Xe.route.id]!==void 0);E=x.slice(0,Oe+1).every(De)}else E=x.every(De)}else E=t.hydrationData!=null;let N,S={historyAction:t.history.action,location:t.history.location,matches:x,initialized:E,navigation:HC,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||v,fetchers:new Map,blockers:new Map},_=pi.Pop,$=!1,V,I=!1,A=new Map,L=null,T=!1,g=!1,f=[],j=[],P=new Map,C=0,D=-1,M=new Map,z=new Set,J=new Map,F=new Map,q=new Set,U=new Map,Q=new Map,ce=new Map,H=!1;function B(){if(p=t.history.listen(je=>{let{action:Ae,location:De,delta:Oe}=je;if(H){H=!1;return}Nf(Q.size===0||Oe!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Xe=Le({currentLocation:S.location,nextLocation:De,historyAction:Ae});if(Xe&&Oe!=null){H=!0,t.history.go(Oe*-1),Fe(Xe,{state:"blocked",location:De,proceed(){Fe(Xe,{state:"proceeding",proceed:void 0,reset:void 0,location:De}),t.history.go(Oe)},reset(){let et=new Map(S.blockers);et.set(Xe,pg),R({blockers:et})}});return}return X(Ae,De)}),n){g7(e,A);let je=()=>x7(e,A);e.addEventListener("pagehide",je),L=()=>e.removeEventListener("pagehide",je)}return S.initialized||X(pi.Pop,S.location,{initialHydration:!0}),N}function K(){p&&p(),L&&L(),y.clear(),V&&V.abort(),S.fetchers.forEac
vendor: 6,782 bytes, line 49
49h((je,Ae)=>be(Ae)),S.blockers.forEach((je,Ae)=>Te(Ae))}function ie(je){return y.add(je),()=>y.delete(je)}function R(je,Ae){Ae===void 0&&(Ae={}),S=$n({},S,je);let De=[],Oe=[];h.v7_fetcherPersist&&S.fetchers.forEach((Xe,et)=>{Xe.state==="idle"&&(q.has(et)?Oe.push(et):De.push(et))}),[...y].forEach(Xe=>Xe(S,{deletedFetchers:Oe,unstable_viewTransitionOpts:Ae.viewTransitionOpts,unstable_flushSync:Ae.flushSync===!0})),h.v7_fetcherPersist&&(De.forEach(Xe=>S.fetchers.delete(Xe)),Oe.forEach(Xe=>be(Xe)))}function G(je,Ae,De){var Oe,Xe;let{flushSync:et}=De===void 0?{}:De,ht=S.actionData!=null&&S.navigation.formMethod!=null&&za(S.navigation.formMethod)&&S.navigation.state==="loading"&&((Oe=je.state)==null?void 0:Oe._isRedirect)!==!0,Ke;Ae.actionData?Object.keys(Ae.actionData).length>0?Ke=Ae.actionData:Ke=null:ht?Ke=S.actionData:Ke=null;let yt=Ae.loaderData?y_(S.loaderData,Ae.loaderData,Ae.matches||[],Ae.errors):S.loaderData,nt=S.blockers;nt.size>0&&(nt=new Map(nt),nt.forEach((It,Mt)=>nt.set(Mt,pg)));let st=$===!0||S.navigation.formMethod!=null&&za(S.navigation.formMethod)&&((Xe=je.state)==null?void 0:Xe._isRedirect)!==!0;l&&(a=l,l=void 0),T||_===pi.Pop||(_===pi.Push?t.history.push(je,je.state):_===pi.Replace&&t.history.replace(je,je.state));let $t;if(_===pi.Pop){let It=A.get(S.location.pathname);It&&It.has(je.pathname)?$t={currentLocation:S.location,nextLocation:je}:A.has(je.pathname)&&($t={currentLocation:je,nextLocation:S.location})}else if(I){let It=A.get(S.location.pathname);It?It.add(je.pathname):(It=new Set([je.pathname]),A.set(S.location.pathname,It)),$t={currentLocation:S.location,nextLocation:je}}R($n({},Ae,{actionData:Ke,loaderData:yt,historyAction:_,location:je,initialized:!0,navigation:HC,revalidation:"idle",restoreScrollPosition:zn(je,Ae.matches||S.matches),preventScrollReset:st,blockers:nt}),{viewTransitionOpts:$t,flushSync:et===!0}),_=pi.Pop,$=!1,I=!1,T=!1,g=!1,f=[],j=[]}async function W(je,Ae){if(typeof je=="number"){t.history.go(je);return}let De=Vj(S.location,S.matches,c,h.v7_prependBasename,je,h.v7_relativeSplatPath,Ae==null?void 0:Ae.fromRouteId,Ae==null?void 0:Ae.relative),{path:Oe,submission:Xe,error:et}=u_(h.v7_normalizeFormMethod,!1,De,Ae),ht=S.location,Ke=Ux(S.location,Oe,Ae&&Ae.state);Ke=$n({},Ke,t.history.encodeLocation(Ke));let yt=Ae&&Ae.replace!=null?Ae.replace:void 0,nt=pi.Push;yt===!0?nt=pi.Replace:yt===!1||Xe!=null&&za(Xe.formMethod)&&Xe.formAction===S.location.pathname+S.location.search&&(nt=pi.Replace);let st=Ae&&"preventScrollReset"in Ae?Ae.preventScrollReset===!0:void 0,$t=(Ae&&Ae.unstable_flushSync)===!0,It=Le({currentLocation:ht,nextLocation:Ke,historyAction:nt});if(It){Fe(It,{state:"blocked",location:Ke,proceed(){Fe(It,{state:"proceeding",proceed:void 0,reset:void 0,location:Ke}),W(je,Ae)},reset(){let Mt=new Map(S.blockers);Mt.set(It,pg),R({blockers:Mt})}});return}return await X(nt,Ke,{submission:Xe,pendingError:et,preventScrollReset:st,replace:Ae&&Ae.replace,enableViewTransition:Ae&&Ae.unstable_viewTransition,flushSync:$t})}function Y(){if(de(),R({revalidation:"loading"}),S.navigation.state!=="submitting"){if(S.navigation.state==="idle"){X(S.historyAction,S.location,{startUninterruptedRevalidation:!0});return}X(_||S.historyAction,S.navigation.location,{overrideNavigation:S.navigation})}}async function X(je,Ae,De){V&&V.abort(),V=null,_=je,T=(De&&De.startUninterruptedRevalidation)===!0,Nt(S.location,S.matches),$=(De&&De.preventScrollReset)===!0,I=(De&&De.enableViewTransition)===!0;let Oe=l||a,Xe=De&&De.overrideNavigation,et=Yd(Oe,Ae,c),ht=(De&&De.flushSync)===!0,Ke=pn(et,Oe,Ae.pathname);if(Ke.active&&Ke.matches&&(et=Ke.matches),!et){let{error:Ht,notFoundMatches:ke,route:Me}=Ue(Ae.pathname);G(Ae,{matches:ke,loaderData:{},errors:{[Me.id]:Ht}},{flushSync:ht});return}if(S.initialized&&!g&&c7(S.location,Ae)&&!(De&&De.submission&&za(De.submission.formMethod))){G(Ae,{matches:et},{flushSync:ht});return}V=new AbortController;let yt=xp(t.history,Ae,V.signal,De&&De.submission),nt;if(De&&De.pendingError)nt=[Gp(et).route.id,{type:Mn.error,error:De.pendingError}];else if(De&&De.submission&&za(De.submission.formMethod)){let Ht=await re(yt,Ae,De.submission,et,Ke.active,{replace:De.replace,flushSync:ht});if(Ht.shortCircuited)return;if(Ht.pendingActionResult){let[ke,Me]=Ht.pendingActionResult;if(Ds(Me)&&ev(Me.error)&&Me.error.status===404){V=null,G(Ae,{matches:Ht.matches,loaderData:{},errors:{[ke]:Me.error}});return}}et=Ht.matches||et,nt=Ht.pendingActionResult,Xe=zC(Ae,De.submission),ht=!1,Ke.active=!1,yt=xp(t.history,yt.url,yt.signal)}let{shortCircuited:st,matches:$t,loaderData:It,errors:Mt}=await ee(yt,Ae,et,Ke.active,Xe,De&&De.submission,De&&De.fetcherSubmission,De&&De.replace,De&&De.initialHydration===!0,ht,nt);st||(V=null,G(Ae,$n({matches:$t||et},b_(nt),{loaderData:It,errors:Mt})))}async function re(je,Ae,De,Oe,Xe,et){et===void 0&&(et={}),de();let ht=m7(Ae,De);if(R({navigation:ht},{flushSync:et.flushSync===!0}),Xe){let nt=await yi(Oe,Ae.pathname,je.signal);if(nt.type==="aborted")return{shortCircuited:!0};if(nt.type==="error"){let{boundaryId:st,error:$t}=rt(Ae.pathname,nt);return{matches:nt.partialMatches,pendingActionResult:[st,{type:Mn.error,error:$t}]}}else if(nt.matches)Oe=nt.matches;else{let{notFoundMatches:st,error:$t,route:It}=Ue(Ae.pathname);return{matches:st,pendingActionResult:[It.id,{type:Mn.error,error:$t}]}}}let Ke,yt=Rg(Oe,Ae);if(!yt.route.action&&!yt.route.lazy)Ke={type:Mn.error,error:Ar(405,{method:je.method,pathname:Ae.pathname,routeId:yt.route.id})};else if(Ke=(await ae("action",je,[yt],Oe))[0],je.signal.aborted)return{shortCircuited:!0};if(au(Ke)){let nt;return et&&et.replace!=null?nt=et.replace:nt=f_(Ke.response.headers.get("Location"),new URL(je.url),c)===S.location.pathname+S.location.search,await te(je,Ke,{submission:De,replace:nt}),{shortCircuited:!0}}if(su(Ke))throw Ar(400,{type:"defer-action"});if(Ds(Ke)){let nt=Gp(Oe,yt.route.id);return(et&&et.replace)!==!0&&(_=pi.Push),{matches:Oe,pendingActionResult:[nt.route.id,Ke]}}return{matches:Oe,pendingActionResult:[yt.route.id,Ke]}}async function ee(je,Ae,De,Oe,Xe,et,ht,Ke,yt,nt,st){let $t=Xe||zC(Ae,et),It=et||ht||S_($t),Mt=!T&&(!h.v7_partialHydration||!yt);if(Oe){if(Mt){let Lt=se(st);R($n({navigation:$t},Lt!==void 0?{actionData:Lt}:{}),{flushSync:nt})}let mt=await yi(De,Ae.pathname,je.signal);if(mt.type==="aborted")return{shortCircuited:!0};if(mt.type==="error"){let{boundaryId:Lt,error:nn}=rt(Ae.pathname,mt);return{matches:mt.partialMatches,loaderData:{},errors:{[Lt]:nn}}}else if(mt.matches)De=mt.matches;else{let{error:Lt,notFoundMatches:nn,route:jt}=Ue(Ae.pathname);return{matches:nn,loaderData:{},errors:{[jt.id]:Lt}}}}let Ht=l||a,[ke,Me]=h_(t.history,S,De,It,Ae,h.v7_partialHydration&&yt===!0,h.v7_skipActionErrorRevalidation,g,f,j,q,J,z,Ht,c,st);if(tt(mt=>!(De&&De.some(Lt=>
49Lt.route.id===mt))||ke&&ke.some(Lt=>Lt.route.id===mt)),D=++C,ke.length===0&&Me.length===0){let mt=Pe();return G(Ae,$n({matches:De,loaderData:{},errors:st&&Ds(st[1])?{[st[0]]:st[1].error}:null},b_(st),mt?{fetchers:new Map(S.fetchers)}:{}),{flushSync:nt}),{shortCircuited:!0}}if(Mt){let mt={};if(!Oe){mt.navigation=$t;let Lt=se(st);Lt!==void 0&&(mt.actionData=Lt)}Me.length>0&&(mt.fetchers=oe(Me)),R(mt,{flushSync:nt})}Me.forEach(mt=>{P.has(mt.key)&&we(mt.key),mt.controller&&P.set(mt.key,mt.controller)});let $e=()=>Me.forEach(mt=>we(mt.key));V&&V.signal.addEventListener("abort",$e);let{loaderResults:Ve,fetcherResults:lt}=await le(S.matches,De,ke,Me,je);if(je.signal.aborted)return{shortCircuited:!0};V&&V.signal.removeEventListener("abort",$e),Me.forEach(mt=>P.delete(mt.key));let ct=w_([...Ve,...lt]);if(ct){if(ct.idx>=ke.length){let mt=Me[ct.idx-ke.length].key;z.add(mt)}return await te(je,ct.result,{replace:Ke}),{shortCircuited:!0}}let{loaderData:vt,errors:Jt}=x_(S,De,ke,Ve,st,Me,lt,U);U.forEach((mt,Lt)=>{mt.subscribe(nn=>{(nn||mt.done)&&U.delete(Lt)})}),h.v7_partialHydration&&yt&&S.errors&&Object.entries(S.errors).filter(mt=>{let[Lt]=mt;return!ke.some(nn=>nn.route.id===Lt)}).forEach(mt=>{let[Lt,nn]=mt;Jt=Object.assign(Jt||{},{[Lt]:nn})});let mn=Pe(),tn=Ne(D),Gt=mn||tn||Me.length>0;return $n({matches:De,loaderData:vt,errors:Jt},Gt?{fetchers:new Map(S.fetchers)}:{})}function se(je){if(je&&!Ds(je[1]))return{[je[0]]:je[1].data};if(S.actionData)return Object.keys(S.actionData).length===0?null:S.actionData}function oe(je){return je.forEach(Ae=>{let De=S.fetchers.get(Ae.key),Oe=mg(void 0,De?De.data:void 0);S.fetchers.set(Ae.key,Oe)}),new Map(S.fetchers)}function he(je,Ae,De,Oe){if(i)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");P.has(je)&&we(je);let Xe=(Oe&&Oe.unstable_flushSync)===!0,et=l||a,ht=Vj(S.location,S.matches,c,h.v7_prependBasename,De,h.v7_relativeSplatPath,Ae,Oe==null?void 0:Oe.relative),Ke=Yd(et,ht,c),yt=pn(Ke,et,ht);if(yt.active&&yt.matches&&(Ke=yt.matches),!Ke){me(je,Ae,Ar(404,{pathname:ht}),{flushSync:Xe});return}let{path:nt,submission:st,error:$t}=u_(h.v7_normalizeFormMethod,!0,ht,Oe);if($t){me(je,Ae,$t,{flushSync:Xe});return}let It=Rg(Ke,nt);if($=(Oe&&Oe.preventScrollReset)===!0,st&&za(st.formMethod)){pe(je,Ae,nt,It,Ke,yt.active,Xe,st);return}J.set(je,{routeId:Ae,path:nt}),ne(je,Ae,nt,It,Ke,yt.active,Xe,st)}async function pe(je,Ae,De,Oe,Xe,et,ht,Ke){de(),J.delete(je);function yt(jt){if(!jt.route.action&&!jt.route.lazy){let ii=Ar(405,{method:Ke.formMethod,pathname:De,routeId:Ae});return me(je,Ae,ii,{flushSync:ht}),!0}return!1}if(!et&&yt(Oe))return;let nt=S.fetchers.get(je);ue(je,f7(Ke,nt),{flushSync:ht});let st=new AbortController,$t=xp(t.history,De,st.signal,Ke);if(et){let jt=await yi(Xe,De,$t.signal);if(jt.type==="aborted")return;if(jt.type==="error"){let{error:ii}=rt(De,jt);me(je,Ae,ii,{flushSync:ht});return}else if(jt.matches){if(Xe=jt.matches,Oe=Rg(Xe,De),yt(Oe))return}else{me(je,Ae,Ar(404,{pathname:De}),{flushSync:ht});return}}P.set(je,st);let It=C,Ht=(await ae("action",$t,[Oe],Xe))[0];if($t.signal.aborted){P.get(je)===st&&P.delete(je);return}if(h.v7_fetcherPersist&&q.has(je)){if(au(Ht)||Ds(Ht)){ue(je,uc(void 0));return}}else{if(au(Ht))if(P.delete(je),D>It){ue(je,uc(void 0));return}else return z.add(je),ue(je,mg(Ke)),te($t,Ht,{fetcherSubmission:Ke});if(Ds(Ht)){me(je,Ae,Ht.error);return}}if(su(Ht))throw Ar(400,{type:"defer-action"});let ke=S.navigation.location||S.location,Me=xp(t.history,ke,st.signal),$e=l||a,Ve=S.navigation.state!=="idle"?Yd($e,S.navigation.location,c):S.matches;Vt(Ve,"Didn't find any matches after fetcher action");let lt=++C;M.set(je,lt);let ct=mg(Ke,Ht.data);S.fetchers.set(je,ct);let[vt,Jt]=h_(t.history,S,Ve,Ke,ke,!1,h.v7_skipActionErrorRevalidation,g,f,j,q,J,z,$e,c,[Oe.route.id,Ht]);Jt.filter(jt=>jt.key!==je).forEach(jt=>{let ii=jt.key,Uo=S.fetchers.get(ii),eo=mg(void 0,Uo?Uo.data:void 0);S.fetchers.set(ii,eo),P.has(ii)&&we(ii),jt.controller&&P.set(ii,jt.controller)}),R({fetchers:new Map(S.fetchers)});let mn=()=>Jt.forEach(jt=>we(jt.key));st.signal.addEventListener("abort",mn);let{loaderResults:tn,fetcherResults:Gt}=await le(S.matches,Ve,vt,Jt,Me);if(st.signal.aborted)return;st.signal.removeEventListener("abort",mn),M.delete(je),P.delete(je),Jt.forEach(jt=>P.delete(jt.key));let mt=w_([...tn,...Gt]);if(mt){if(mt.idx>=vt.length){let jt=Jt[mt.idx-vt.length].key;z.add(jt)}return te(Me,mt.result)}let{loaderData:Lt,errors:nn}=x_(S,S.matches,vt,tn,void 0,Jt,Gt,U);if(S.fetchers.has(je)){let jt=uc(Ht.data);S.fetchers.set(je,jt)}Ne(lt),S.navigation.state==="loading"&<>D?(Vt(_,"Expected pending action"),V&&V.abort(),G(S.navigation.location,{matches:Ve,loaderData:Lt,errors:nn,fetchers:new Map(S.fetchers)})):(R({errors:nn,loaderData:y_(S.loaderData,Lt,Ve,nn),fetchers:new Map(S.fetchers)}),g=!1)}async function ne(je,Ae,De,Oe,Xe,et,ht,Ke){let yt=S.fetchers.get(je);ue(je,mg(Ke,yt?yt.data:void 0),{flushSync:ht});
49let nt=new AbortController,st=xp(t.history,De,nt.signal);if(et){let Ht=await yi(Xe,De,st.signal);if(Ht.type==="aborted")return;if(Ht.type==="error"){let{error:ke}=rt(De,Ht);me(je,Ae,ke,{flushSync:ht});return}else if(Ht.matches)Xe=Ht.matches,Oe=Rg(Xe,De);else{me(je,Ae,Ar(404,{pathname:De}),{flushSync:ht});return}}P.set(je,nt);let $t=C,Mt=(await ae("loader",st,[Oe],Xe))[0];if(su(Mt)&&(Mt=await sF(Mt,st.signal,!0)||Mt),P.get(je)===nt&&P.delete(je),!st.signal.aborted){if(q.has(je)){ue(je,uc(void 0));return}if(au(Mt))if(D>$t){ue(je,uc(void 0));return}else{z.add(je),await te(st,Mt);return}if(Ds(Mt)){me(je,Ae,Mt.error);return}Vt(!su(Mt),"Unhandled fetcher deferred data"),ue(je,uc(Mt.data))}}async function te(je,Ae,De){let{submission:Oe,fetcherSubmission:Xe,replace:et}=De===void 0?{}:De;Ae.response.headers.has("X-Remix-Revalidate")&&(g=!0);let ht=Ae.response.headers.get("Location");Vt(ht,"Expected a Location header on the redirect Response"),ht=f_(ht,new URL(je.url),c);let Ke=Ux(S.location,ht,{_isRedirect:!0});if(n){let Mt=!1;if(Ae.response.headers.has("X-Remix-Reload-Document"))Mt=!0;else if(EA.test(ht)){const Ht=t.history.createURL(ht);Mt=Ht.origin!==e.location.origin||Vf(Ht.pathname,c)==null}if(Mt){et?e.location.replace(ht):e.location.assign(ht);return}}V=null;let yt=et===!0?pi.Replace:pi.Push,{formMethod:nt,formAction:st,formEncType:$t}=S.navigation;!Oe&&!Xe&&nt&&st&&$t&&(Oe=S_(S.navigation));let It=Oe||Xe;if(Y9.has(Ae.response.status)&&It&&za(It.formMethod))await X(yt,Ke,{submission:$n({},It,{formAction:ht}),preventScrollReset:$});else{let Mt=zC(Ke,Oe);await X(yt,Ke,{overrideNavigation:Mt,fetcherSubmission:Xe,preventScrollReset:$})}}async function ae(je,Ae,De,Oe){try{let Xe=await r7(d,je,Ae,De,Oe,s,r);return await Promise.all(Xe.map((et,ht)=>{if(u7(et)){let Ke=et.result;return{type:Mn.redirect,response:o7(Ke,Ae,De[ht].route.id,Oe,c,h.v7_relativeSplatPath)}}return a7(et)}))}catch(Xe){return De.map(()=>({type:Mn.error,error:Xe}))}}async function le(je,Ae,De,Oe,Xe){let[et,...ht]=await Promise.all([De.length?ae("loader",Xe,De,Ae):[],...Oe.map(Ke=>{if(Ke.matches&&Ke.match&&Ke.controller){let yt=xp(t.history,Ke.path,Ke.controller.signal);return ae("loader",yt,[Ke.match],Ke.matches).then(nt=>nt[0])}else return Promise.resolve({type:Mn.error,error:Ar(404,{pathname:Ke.path})})})]);return await Promise.all([k_(je,De,et,et.map(()=>Xe.signal),!1,S.loaderData),k_(je,Oe.map(Ke=>Ke.match),ht,Oe.map(Ke=>Ke.controller?Ke.controller.signal:null),!0)]),{loaderResults:et,fetcherResults:ht}}function de(){g=!0,f.push(...tt()),J.forEach((je,Ae)=>{P.has(Ae)&&(j.push(Ae),we(Ae))})}function ue(je,Ae,De){De===void 0&&(De={}),S.fetchers.set(je,Ae),R({fetchers:new Map(S.fetchers)},{flushSync:(De&&De.flushSync)===!0})}function me(je,Ae,De,Oe){Oe===void 0&&(Oe={});let Xe=Gp(S.matches,Ae);be(je),R({errors:{[Xe.route.id]:De},fetchers:new Map(S.fetchers)},{flushSync:(Oe&&Oe.flushSync)===!0})}function ge(je){return h.v7_fetcherPersist&&(F.set(je,(F.get(je)||0)+1),q.has(je)&&q.delete(je)),S.fetchers.get(je)||X9}function be(je){let Ae=S.fetchers.get(je);P.has(je)&&!(Ae&&Ae.state==="loading"&&M.has(je))&&we(je),J.delete(je),M.delete(je),z.delete(je),q.delete(je),S.fetchers.delete(je)}function ve(je){if(h.v7_fetcherPersist){let Ae=(F.get(je)||0)-1;Ae<=0?(F.delete(je),q.add(je)):F.set(je,Ae)}else be(je);R({fetchers:new Map(S.fetchers)})}function we(je){let Ae=P.get(je);Vt(Ae,"Expected fetch controller: "+je),Ae.abort(),P.delete(je)}function Ce(je){for(let Ae of je){let De=ge(Ae),Oe=uc(De.data);S.fetchers.set(Ae,Oe)}}function Pe(){let je=[],Ae=!1;for(let De of z){let Oe=S.fetchers.get(De);Vt(Oe,"Expected fetcher: "+De),Oe.state==="loading"&&(z.delete(De),je.push(De),Ae=!0)}return Ce(je),Ae}function Ne(je){let Ae=[];for(let[De,Oe]of M)if(Oe<je){let Xe=S.fetchers.get(De);Vt(Xe,"Expected fetcher: "+De),Xe.state==="loading"&&(we(De),M.delete(De),Ae.push(De))}return Ce(Ae),Ae.length>0}function Ee(je,Ae){let De=S.blockers.get(je)||pg;return Q.get(je)!==Ae&&Q.set(je,Ae),De}function Te(je){S.blockers.delete(je),Q.delete(je)}function Fe(je,Ae){let De=S.blockers.get(je)||pg;Vt(De.state==="unblocked"&&Ae.state==="blocked"||De.state==="blocked"&&Ae.state==="blocked"||De.state==="blocked"&&Ae.state==="proceeding"||De.state==="blocked"&&Ae.state==="unblocked"||De.state==="proceeding"&&Ae.state==="unblocked","Invalid blocker state transition: "+De.state+" -> "+Ae.state);
49let Oe=new Map(S.blockers);Oe.set(je,Ae),R({blockers:Oe})}function Le(je){let{currentLocation:Ae,nextLocation:De,historyAction:Oe}=je;if(Q.size===0)return;Q.size>1&&Nf(!1,"A router only supports one blocker at a time");let Xe=Array.from(Q.entries()),[et,ht]=Xe[Xe.length-1],Ke=S.blockers.get(et);if(!(Ke&&Ke.state==="proceeding")&&ht({currentLocation:Ae,nextLocation:De,historyAction:Oe}))return et}function Ue(je){let Ae=Ar(404,{pathname:je}),De=l||a,{matches:Oe,route:Xe}=v_(De);return tt(),{notFoundMatches:Oe,route:Xe,error:Ae}}function rt(je,Ae){return{boundaryId:Gp(Ae.partialMatches).route.id,error:Ar(400,{type:"route-discovery",pathname:je,message:Ae.error!=null&&"message"in Ae.error?Ae.error:String(Ae.error)})}}function tt(je){let Ae=[];return U.forEach((De,Oe)=>{(!je||je(Oe))&&(De.cancel(),Ae.push(Oe),U.delete(Oe))}),Ae}function At(je,Ae,De){if(m=je,k=Ae,w=De||null,!b&&S.navigation===HC){b=!0;let Oe=zn(S.location,S.matches);Oe!=null&&R({restoreScrollPosition:Oe})}return()=>{m=null,k=null,w=null}}function xt(je,Ae){return w&&w(je,Ae.map(Oe=>P9(Oe,S.loaderData)))||je.key}function Nt(je,Ae){if(m&&k){let De=xt(je,Ae);m[De]=k()}}function zn(je,Ae){if(m){let De=xt(je,Ae),Oe=m[De];if(typeof Oe=="number")return Oe}return null}function pn(je,Ae,De){if(u)if(je){let Oe=je[je.length-1].route;if(Oe.path&&(Oe.path==="*"||Oe.path.endsWith("/*")))return{active:!0,matches:W0(Ae,De,c,!0)}}else return{active:!0,matches:W0(Ae,De,c,!0)||[]};return{active:!1,matches:null}}async function yi(je,Ae,De){let Oe=je,Xe=Oe.length>0?Oe[Oe.length-1].route:null;for(;;){let et=l==null,ht=l||a;try{await n7(u,Ae,Oe,ht,s,r,ce,De)}catch(st){return{type:"error",error:st,partialMatches:Oe}}finally{et&&(a=[...a])}if(De.aborted)return{type:"aborted"};let Ke=Yd(ht,Ae,c),yt=!1;if(Ke){let st=Ke[Ke.length-1].route;if(st.index)return{type:"success",matches:Ke};if(st.path&&st.path.length>0)if(st.path==="*")yt=!0;else return{type:"success",matches:Ke}}let nt=W0(ht,Ae,c,!0);if(!nt||Oe.map(st=>st.route.id).join("-")===nt.map(st=>st.route.id).join("-"))return{type:"success",matches:yt?Ke:null};if(Oe=nt,Xe=Oe[Oe.length-1].route,Xe.path==="*")return{type:"success",matches:Oe}}}function Bt(je){s={},l=Wx(je,r,void 0,s)}function cn(je,Ae){let De=l==null;nF(je,Ae,l||a,s,r),De&&(a=[...a],R({}))}return N={get basename(){return c},get future(){return h},get state(){return S},get routes(){return a},get window(){return e},initialize:B,subscribe:ie,enableScrollRestoration:At,navigate:W,fetch:he,revalidate:Y,createHref:je=>t.history.createHref(je),encodeLocation:je=>t.history.encodeLocation(je),getFetcher:ge,deleteFetcher:ve,dispose:K,getBlocker:Ee,deleteBlocker:Te,patchRoutes:cn,_internalFetchControllers:P,_internalActiveDeferreds:U,_internalSetRoutes:Bt},N}function Z9(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function Vj(t,e,n,i,r,s,a,l){let c,d;if(a){c=[];for(let h of e)if(c.push(h),h.route.id===a){d=h;break}}else c=e,d=e[e.length-1];let u=jA(r||".",CA(c,s),Vf(t.pathname,n)||t.pathname,l==="path");return r==null&&(u.search=t.search,u.hash=t.hash),(r==null||r===""||r===".")&&d&&d.route.index&&!AA(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),i&&n!=="/"&&(u.pathname=u.pathname==="/"?n:Ol([n,u.pathname])),Mh(u)}function u_(t,e,n,i){if(!i||!Z9(i))return{path:n};if(i.formMethod&&!p7(i.formMethod))return{path:n,error:Ar(405,{method:i.formMethod})};let r=()=>({path:n,error:Ar(400,{type:"invalid-body"})}),s=i.formMethod||"get",a=t?s.toUpperCase():s.toLowerCase(),l=iF(n);if(i.body!==void 0){if(i.formEncType==="text/plain"){if(!za(a))return r();let p=typeof i.body=="string"?i.body:i.body instanceof FormData||i.body instanceof URLSearchParams?Array.from(i.body.entries()).reduce((y,m)=>{let[w,k]=m;return""+y+w+"="+k+` 50`},""):String(i.body);return{path:n,submission:{formMethod:a,formAction:l,formEncType:i.formEncType,formData:void 0,json:void 0,text:p}}}else if(i.formEncType==="application/json"){if(!za(a))return r();try{let p=typeof i.body=="string"?JSON.parse(i.body):i.body;return{path:n,submission:{formMethod:a,formAction:l,formEncType:i.formEncType,formData:void 0,json:p,text:void 0}}}catch{return r()}}}Vt(typeof FormData=="function","FormData is not available in this environment");let c,d;if(i.formData)c=Uj(i.formData),d=i.formData;else if(i.body instanceof FormData)c=Uj(i.body),d=i.body;else if(i.body instanceof URLSearchParams)c=i.body,d=g_(c);else if(i.body==null)c=new URLSearchParams,d=new FormData;else try{c=new URLSearchParams(i.body),d=g_(c)}catch{return r()}let u={formMethod:a,formAction:l,formEncType:i&&i.formEncType||"application/x-www-form-urlencoded",formData:d,json:void 0,text:void 0};if(za(u.formMethod))return{path:n,submission:u};let h=Md(n);return e&&h.search&&AA(h.search)&&c.append("index",""),h.search="?"+c,{path:Mh(h),submission:u}}function e7(t,e){let n=t;if(e){let i=t.findIndex(r=>r.route.id===e);i>=0&&(n=t.slice(0,i))}return n}function h_(t,e,n,i,r,s,a,l,c,d,u,h,p,y,m,w){let k=w?Ds(w[1])?w[1].error:w[1].data:void 0,b=t.createURL(e.location),x=t.createURL(r),v=w&&Ds(w[1])?w[0]:void 0,E=v?e7(n,v):n,N=w?w[1].statusCode:void 0,S=a&&N&&N>=400,_=E.filter((V,I)=>{let{route:A}=V;if(A.lazy)return!0;
50if(A.loader==null)return!1;if(s)return typeof A.loader!="function"||A.loader.hydrate?!0:e.loaderData[A.id]===void 0&&(!e.errors||e.errors[A.id]===void 0);if(t7(e.loaderData,e.matches[I],V)||c.some(g=>g===V.route.id))return!0;let L=e.matches[I],T=V;return p_(V,$n({currentUrl:b,currentParams:L.params,nextUrl:x,nextParams:T.params},i,{actionResult:k,actionStatus:N,defaultShouldRevalidate:S?!1:l||b.pathname+b.search===x.pathname+x.search||b.search!==x.search||tF(L,T)}))}),$=[];return h.forEach((V,I)=>{if(s||!n.some(f=>f.route.id===V.routeId)||u.has(I))return;let A=Yd(y,V.path,m);if(!A){$.push({key:I,routeId:V.routeId,path:V.path,matches:null,match:null,controller:null});return}let L=e.fetchers.get(I),T=Rg(A,V.path),g=!1;p.has(I)?g=!1:d.includes(I)?g=!0:L&&L.state!=="idle"&&L.data===void 0?g=l:g=p_(T,$n({currentUrl:b,currentParams:e.matches[e.matches.length-1].params,nextUrl:x,nextParams:n[n.length-1].params},i,{actionResult:k,actionStatus:N,defaultShouldRevalidate:S?!1:l})),g&&$.push({key:I,routeId:V.routeId,path:V.path,matches:A,match:T,controller:new AbortController})}),[_,$]}function t7(t,e,n){let i=!e||n.route.id!==e.route.id,r=t[n.route.id]===void 0;return i||r}function tF(t,e){let n=t.route.path;return t.pathname!==e.pathname||n!=null&&n.endsWith("*")&&t.params["*"]!==e.params["*"]}function p_(t,e){if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate(e);if(typeof n=="boolean")return n}return e.defaultShouldRevalidate}async function n7(t,e,n,i,r,s,a,l){let c=[e,...n.map(d=>d.route.id)].join("-");try{let d=a.get(c);d||(d=t({path:e,matches:n,patch:(u,h)=>{l.aborted||nF(u,h,i,r,s)}}),a.set(c,d)),d&&d7(d)&&await d}finally{a.delete(c)}}function nF(t,e,n,i,r){if(t){var s;let a=i[t];Vt(a,"No route found to patch children into: routeId = "+t);let l=Wx(e,r,[t,"patch",String(((s=a.children)==null?void 0:s.length)||"0")],i);a.children?a.children.push(...l):a.children=l}else{let a=Wx(e,r,["patch",String(n.length||"0")],i);n.push(...a)}}async function m_(t,e,n){if(!t.lazy)return;let i=await t.lazy();if(!t.lazy)return;let r=n[t.id];Vt(r,"No route found in manifest");let s={};for(let a in i){let c=r[a]!==void 0&&a!=="hasErrorBoundary";Nf(!c,'Route "'+r.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!c&&!j9.has(a)&&(s[a]=i[a])}Object.assign(r,s),Object.assign(r,$n({},e(r),{lazy:void 0}))}function i7(t){return Promise.all(t.matches.map(e=>e.resolve()))}async function r7(t,e,n,i,r,s,a,l){let c=i.reduce((h,p)=>h.add(p.route.id),new Set),d=new Set,u=await t({matches:r.map(h=>{let p=c.has(h.route.id);return $n({},h,{shouldLoad:p,resolve:m=>(d.add(h.route.id),p?s7(e,n,h,s,a,m,l):Promise.resolve({type:Mn.data,result:void 0}))})}),request:n,params:r[0].params,context:l});return r.forEach(h=>Vt(d.has(h.route.id),'`match.resolve()` was not called for route id "'+h.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),u.filter((h,p)=>c.has(r[p].route.id))}async function s7(t,e,n,i,r,s,a){let l,c,d=u=>{let h,p=new Promise((w,k)=>h=k);c=()=>h(),e.signal.addEventListener("abort",c);let y=w=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+t+'" [routeId: '+n.route.id+"]"))):u({request:e,params:n.params,context:a},...w!==void 0?[w]:[]),m;return s?m=s(w=>y(w)):m=(async()=>{try{return{type:"data",result:await y()}}catch(w){return{type:"error",result:w}}})(),Promise.race([m,p])};try{let u=n.route[t];if(n.route.lazy)if(u){let h,[p]=await Promise.all([d(u).catch(y=>{h=y}),m_(n.route,r,i)]);if(h!==void 0)throw h;l=p}else if(await m_(n.route,r,i),u=n.route[t],u)l=await d(u);else if(t==="action"){let h=new URL(e.url),p=h.pathname+h.search;throw Ar(405,{method:e.method,pathname:p,routeId:n.route.id})}else return{type:Mn.data,result:void 0};else if(u)l=await d(u);else{let h=new URL(e.url),p=h.pathname+h.search;throw Ar(404,{pathname:p})}Vt(l.result!==void 0,"You defined "+(t==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+t+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:Mn.error,result:u}}finally{c&&e.signal.removeEventListener("abort",c)}return l}async function a7(t){let{result:e,type:n,status:i}=t;if(rF(e)){let a;try{let l=e.headers.get("Content-Type");l&&/\bapplication\/json\b/.test(l)?e.body==null?a=null:a=await e.json():a=await e.text()}catch(l){return{type:Mn.error,error:l}}return n===Mn.error?{type:Mn.error,error:new PA(e.status,e.statusText,a),statusCode:e.status,headers:e.headers}:{type:Mn.data,data:a,statusCode:e.status,headers:e.headers}}if(n===Mn.error)return{type:Mn.error,error:e,statusCode:ev(e)?e.status:i};if(h7(e)){var r,s;return{type:Mn.deferred,deferredData:e,statusCode:(r=e.init)==null?void 0:r.status,headers:((s=e.init)==null?void 0:s.headers)&&new Headers(e.init.headers)}}return{type:Mn.data,data:e,statusCode:i}}function o7(t,e,n,i,r,s){let a=t.headers.get("Location");if(Vt(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!EA.test(a)){let l=i.slice(0,i.findIndex(c=>c.route.id===n)+1);a=Vj(new URL(e.url),l,r,!0,a,s),t.headers.set("Location",a)}return t}function f_(t,e,n){if(EA.test(t)){let i=t,r=i.startsWith("//")?new URL(e.protocol+i):new URL(i),s=Vf(r.pathname,n)!=null;if(r.origin===e.origin&&s)return r.pathname+r.search+r.hash}return t}function xp(t,e,n,i){let r=t.createURL(iF(e)).toString(),s={signal:n};if(i&&za(i.formMethod)){let{formMethod:a,formEncType:l}=i;s.method=a.toUpperCase(),l==="application/json"?(s.headers=new Headers({"Content-Type":l}),s.body=JSON.stringify(i.json)):l==="text/plain"?s.body=i.text:l==="application/x-www-form-urlencoded"&&i.formData?s.body=Uj(i.formData):s.body=i.formData}
vendor: 8,683 bytes, lines 50-60
50return new Request(r,s)}function Uj(t){let e=new URLSearchParams;for(let[n,i]of t.entries())e.append(n,typeof i=="string"?i:i.name);return e}function g_(t){let e=new FormData;for(let[n,i]of t.entries())e.append(n,i);return e}function l7(t,e,n,i,r,s){let a={},l=null,c,d=!1,u={},h=i&&Ds(i[1])?i[1].error:void 0;return n.forEach((p,y)=>{let m=e[y].route.id;if(Vt(!au(p),"Cannot handle redirect results in processLoaderData"),Ds(p)){let w=p.error;h!==void 0&&(w=h,h=void 0),l=l||{};{let k=Gp(t,m);l[k.route.id]==null&&(l[k.route.id]=w)}a[m]=void 0,d||(d=!0,c=ev(p.error)?p.error.status:500),p.headers&&(u[m]=p.headers)}else su(p)?(r.set(m,p.deferredData),a[m]=p.deferredData.data,p.statusCode!=null&&p.statusCode!==200&&!d&&(c=p.statusCode),p.headers&&(u[m]=p.headers)):(a[m]=p.data,p.statusCode&&p.statusCode!==200&&!d&&(c=p.statusCode),p.headers&&(u[m]=p.headers))}),h!==void 0&&i&&(l={[i[0]]:h},a[i[0]]=void 0),{loaderData:a,errors:l,statusCode:c||200,loaderHeaders:u}}function x_(t,e,n,i,r,s,a,l){let{loaderData:c,errors:d}=l7(e,n,i,r,l);for(let u=0;u<s.length;u++){let{key:h,match:p,controller:y}=s[u];Vt(a!==void 0&&a[u]!==void 0,"Did not find corresponding fetcher result");let m=a[u];if(!(y&&y.signal.aborted))if(Ds(m)){let w=Gp(t.matches,p==null?void 0:p.route.id);d&&d[w.route.id]||(d=$n({},d,{[w.route.id]:m.error})),t.fetchers.delete(h)}else if(au(m))Vt(!1,"Unhandled fetcher revalidation redirect");else if(su(m))Vt(!1,"Unhandled fetcher deferred data");else{let w=uc(m.data);t.fetchers.set(h,w)}}return{loaderData:c,errors:d}}function y_(t,e,n,i){let r=$n({},e);for(let s of n){let a=s.route.id;if(e.hasOwnProperty(a)?e[a]!==void 0&&(r[a]=e[a]):t[a]!==void 0&&s.route.loader&&(r[a]=t[a]),i&&i.hasOwnProperty(a))break}return r}function b_(t){return t?Ds(t[1])?{actionData:{}}:{actionData:{[t[0]]:t[1].data}}:{}}function Gp(t,e){return(e?t.slice(0,t.findIndex(i=>i.route.id===e)+1):[...t]).reverse().find(i=>i.route.hasErrorBoundary===!0)||t[0]}function v_(t){let e=t.length===1?t[0]:t.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function Ar(t,e){let{pathname:n,routeId:i,method:r,type:s,message:a}=e===void 0?{}:e,l="Unknown Server Error",c="Unknown @remix-run/router error";return t===400?(l="Bad Request",s==="route-discovery"?c='Unable to match URL "'+n+'" - the `unstable_patchRoutesOnMiss()` '+(`function threw the following error: 51`+a):r&&n&&i?c="You made a "+r+' request to "'+n+'" but '+('did not provide a `loader` for route "'+i+'", ')+"so there is no way to handle the request.":s==="defer-action"?c="defer() is not supported in actions":s==="invalid-body"&&(c="Unable to encode submission body")):t===403?(l="Forbidden",c='Route "'+i+'" does not match URL "'+n+'"'):t===404?(l="Not Found",c='No route matches URL "'+n+'"'):t===405&&(l="Method Not Allowed",r&&n&&i?c="You made a "+r.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+i+'", ')+"so there is no way to handle the request.":r&&(c='Invalid request method "'+r.toUpperCase()+'"')),new PA(t||500,l,new Error(c),!0)}function w_(t){for(let e=t.length-1;e>=0;e--){let n=t[e];if(au(n))return{result:n,idx:e}}}function iF(t){let e=typeof t=="string"?Md(t):t;return Mh($n({},e,{hash:""}))}function c7(t,e){return t.pathname!==e.pathname||t.search!==e.search?!1:t.hash===""?e.hash!=="":t.hash===e.hash?!0:e.hash!==""}function d7(t){return typeof t=="object"&&t!=null&&"then"in t}function u7(t){return rF(t.result)&&K9.has(t.result.status)}function su(t){return t.type===Mn.deferred}function Ds(t){return t.type===Mn.error}function au(t){return(t&&t.type)===Mn.redirect}function h7(t){let e=t;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function rF(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function p7(t){return q9.has(t.toLowerCase())}function za(t){return W9.has(t.toLowerCase())}async function k_(t,e,n,i,r,s){for(let a=0;a<n.length;a++){let l=n[a],c=e[a];if(!c)continue;let d=t.find(h=>h.route.id===c.route.id),u=d!=null&&!tF(d,c)&&(s&&s[c.route.id])!==void 0;if(su(l)&&(r||u)){let h=i[a];Vt(h,"Expected an AbortSignal for revalidating fetcher deferred result"),await sF(l,h,r).then(p=>{p&&(n[a]=p||n[a])})}}}async function sF(t,e,n){if(n===void 0&&(n=!1),!await t.deferredData.resolveData(e)){if(n)try{return{type:Mn.data,data:t.deferredData.unwrappedData}}catch(r){return{type:Mn.error,error:r}}return{type:Mn.data,data:t.deferredData.data}}}function AA(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function Rg(t,e){let n=typeof e=="string"?Md(e).search:e.search;if(t[t.length-1].route.index&&AA(n||""))return t[t.length-1];let i=Q4(t);return i[i.length-1]}function S_(t){let{formMethod:e,formAction:n,formEncType:i,text:r,formData:s,json:a}=t;if(!(!e||!n||!i)){if(r!=null)return{formMethod:e,formAction:n,formEncType:i,formData:void 0,json:void 0,text:r};if(s!=null)return{formMethod:e,formAction:n,formEncType:i,formData:s,json:void 0,text:void 0};if(a!==void 0)return{formMethod:e,formAction:n,formEncType:i,formData:void 0,json:a,text:void 0}}}function zC(t,e){return e?{state:"loading",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:t,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function m7(t,e){return{state:"submitting",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function mg(t,e){return t?{state:"loading",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function f7(t,e){return{state:"submitting",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e?e.data:void 0}}function uc(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function g7(t,e){try{let n=t.sessionStorage.getItem(eF);if(n){let i=JSON.parse(n);for(let[r,s]of Object.entries(i||{}))s&&Array.isArray(s)&&e.set(r,new Set(s||[]))}}catch{}}function x7(t,e){if(e.size>0){let n={};for(let[i,r]of e)n[i]=[...r];try{t.sessionStorage.setItem(eF,JSON.stringify(n))}catch(i){Nf(!1,"Failed to save applied view transitions in sessionStorage ("+i+").")}}}/** 52 * React Router v6.25.1 53 * 54 * Copyright (c) Remix Software Inc. 55 * 56 * This source code is licensed under the MIT license found in the 57 * LICENSE.md file in the root directory of this source tree. 58 * 59 * @license MIT 60 */function mk(){return mk=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},mk.apply(this,arguments)}const Y1=Z.createContext(null),aF=Z.createContext(null),Xh=Z.createContext(null),NA=Z.createContext(null),Dd=Z.createContext({outlet:null,matches:[],isDataRoute:!1}),oF=Z.createContext(null);function y7(t,e){let{relative:n}=e===void 0?{}:e;tv()||Vt(!1);let{basename:i,navigator:r}=Z.useContext(Xh),{hash:s,pathname:a,search:l}=cF(t,{relative:n}),c=a;return i!=="/"&&(c=a==="/"?i:Ol([i,a])),r.createHref({pathname:c,search:l,hash:s})}function tv(){return Z.useContext(NA)!=null}function nv(){return tv()||Vt(!1),Z.useContext(NA).location}function lF(t){Z.useContext(Xh).static||Z.useLayoutEffect(t)}function ec(){let{isDataRoute:t}=Z.useContext(Dd);return t?E7():b7()}function b7(){tv()||Vt(!1);let t=Z.useContext(Y1),{basename:e,future:n,navigator:i}=Z.useContext(Xh),{matches:r}=Z.useContext(Dd),{pathname:s}=nv(),a=JSON.stringify(CA(r,n.v7_relativeSplatPath)),l=Z.useRef(!1);return lF(()=>{l.current=!0}),Z.useCallback(function(d,u){if(u===void 0&&(u={}),!l.current)return;if(typeof d=="number"){i.go(d);return}let h=jA(d,JSON.parse(a),s,u.relative==="path");t==null&&e!=="/"&&(h.pathname=h.pathname==="/"?e:Ol([e,h.pathname])),(u.replace?i.replace:i.push)(h,u.state,u)},[e,i,a,s,t])}function ni(){let{matches:t}=Z.useContext(Dd),e=t[t.length-1];return e?e.params:{}}function cF(t,e){let{relative:n}=e===void 0?{}:e,{future:i}=Z.useContext(Xh),{matches:r}=Z.useContext(Dd),{pathname:s}=nv(),a=JSON.stringify(CA(r,i.v7_relativeSplatPath));return Z.useMemo(()=>jA(t,JSON.parse(a),s,n==="path"),[t,a,s,n])}
vendor: 5,116 bytes, line 60
60function v7(t,e,n,i){tv()||Vt(!1);let{navigator:r}=Z.useContext(Xh),{matches:s}=Z.useContext(Dd),a=s[s.length-1],l=a?a.params:{};a&&a.pathname;let c=a?a.pathnameBase:"/";a&&a.route;let d=nv(),u;u=d;let h=u.pathname||"/",p=h;if(c!=="/"){let w=c.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(w.length).join("/")}let y=Yd(t,{pathname:p});return j7(y&&y.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:Ol([c,r.encodeLocation?r.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?c:Ol([c,r.encodeLocation?r.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,n,i)}function w7(){let t=hF(),e=ev(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return Z.createElement(Z.Fragment,null,Z.createElement("h2",null,"Unexpected Application Error!"),Z.createElement("h3",{style:{fontStyle:"italic"}},e),n?Z.createElement("pre",{style:r},n):null,null)}const k7=Z.createElement(w7,null);class S7 extends Z.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?Z.createElement(Dd.Provider,{value:this.props.routeContext},Z.createElement(oF.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function C7(t){let{routeContext:e,match:n,children:i}=t,r=Z.useContext(Y1);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),Z.createElement(Dd.Provider,{value:e},i)}function j7(t,e,n,i){var r;if(e===void 0&&(e=[]),n===void 0&&(n=null),i===void 0&&(i=null),t==null){var s;if((s=n)!=null&&s.errors)t=n.matches;else return null}let a=t,l=(r=n)==null?void 0:r.errors;if(l!=null){let u=a.findIndex(h=>h.route.id&&(l==null?void 0:l[h.route.id])!==void 0);u>=0||Vt(!1),a=a.slice(0,Math.min(a.length,u+1))}let c=!1,d=-1;if(n&&i&&i.v7_partialHydration)for(let u=0;u<a.length;u++){let h=a[u];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(d=u),h.route.id){let{loaderData:p,errors:y}=n,m=h.route.loader&&p[h.route.id]===void 0&&(!y||y[h.route.id]===void 0);if(h.route.lazy||m){c=!0,d>=0?a=a.slice(0,d+1):a=[a[0]];break}}}return a.reduceRight((u,h,p)=>{let y,m=!1,w=null,k=null;n&&(y=l&&h.route.id?l[h.route.id]:void 0,w=h.route.errorElement||k7,c&&(d<0&&p===0?(m=!0,k=null):d===p&&(m=!0,k=h.route.hydrateFallbackElement||null)));let b=e.concat(a.slice(0,p+1)),x=()=>{let v;return y?v=w:m?v=k:h.route.Component?v=Z.createElement(h.route.Component,null):h.route.element?v=h.route.element:v=u,Z.createElement(C7,{match:h,routeContext:{outlet:u,matches:b,isDataRoute:n!=null},children:v})};return n&&(h.route.ErrorBoundary||h.route.errorElement||p===0)?Z.createElement(S7,{location:n.location,revalidation:n.revalidation,component:w,error:y,children:x(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):x()},null)}var dF=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(dF||{}),Mf=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Mf||{});function T7(t){let e=Z.useContext(Y1);return e||Vt(!1),e}function uF(t){let e=Z.useContext(aF);return e||Vt(!1),e}function P7(t){let e=Z.useContext(Dd);return e||Vt(!1),e}function MA(t){let e=P7(),n=e.matches[e.matches.length-1];return n.route.id||Vt(!1),n.route.id}function iv(){let t=uF(Mf.UseLoaderData),e=MA(Mf.UseLoaderData);if(t.errors&&t.errors[e]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+e+")");return}return t.loaderData[e]}function hF(){var t;let e=Z.useContext(oF),n=uF(Mf.UseRouteError),i=MA(Mf.UseRouteError);return e!==void 0?e:(t=n.errors)==null?void 0:t[i]}function E7(){let{router:t}=T7(dF.UseNavigateStable),e=MA(Mf.UseNavigateStable),n=Z.useRef(!1);return lF(()=>{n.current=!0}),Z.useCallback(function(r,s){s===void 0&&(s={}),n.current&&(typeof r=="number"?t.navigate(r):t.navigate(r,mk({fromRouteId:e},s)))},[t,e])}function A7(t){let{basename:e="/",children:n=null,location:i,navigationType:r=pi.Pop,navigator:s,static:a=!1,future:l}=t;tv()&&Vt(!1);let c=e.replace(/^\/*/,"/"),d=Z.useMemo(()=>({basename:c,navigator:s,static:a,future:mk({v7_relativeSplatPath:!1},l)}),[c,l,s,a]);typeof i=="string"&&(i=Md(i));
vendor: 5,406 bytes, lines 60-69
60let{pathname:u="/",search:h="",hash:p="",state:y=null,key:m="default"}=i,w=Z.useMemo(()=>{let k=Vf(u,c);return k==null?null:{location:{pathname:k,search:h,hash:p,state:y,key:m},navigationType:r}},[c,u,h,p,y,m,r]);return w==null?null:Z.createElement(Xh.Provider,{value:d},Z.createElement(NA.Provider,{children:n,value:w}))}new Promise(()=>{});function N7(t){let e={hasErrorBoundary:t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&Object.assign(e,{element:Z.createElement(t.Component),Component:void 0}),t.HydrateFallback&&Object.assign(e,{hydrateFallbackElement:Z.createElement(t.HydrateFallback),HydrateFallback:void 0}),t.ErrorBoundary&&Object.assign(e,{errorElement:Z.createElement(t.ErrorBoundary),ErrorBoundary:void 0}),e}/** 61 * React Router DOM v6.25.1 62 * 63 * Copyright (c) Remix Software Inc. 64 * 65 * This source code is licensed under the MIT license found in the 66 * LICENSE.md file in the root directory of this source tree. 67 * 68 * @license MIT 69 */function Gx(){return Gx=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Gx.apply(this,arguments)}function M7(t,e){if(t==null)return{};var n={},i=Object.keys(t),r,s;for(s=0;s<i.length;s++)r=i[s],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}function D7(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function _7(t,e){return t.button===0&&(!e||e==="_self")&&!D7(t)}const I7=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],R7="6";try{window.__reactRouterVersion=R7}catch{}function O7(t,e){return Q9({basename:void 0,future:Gx({},void 0,{v7_prependBasename:!0}),history:k9({window:void 0}),hydrationData:L7(),routes:t,mapRouteProperties:N7,unstable_dataStrategy:void 0,unstable_patchRoutesOnMiss:void 0,window:void 0}).initialize()}function L7(){var t;let e=(t=window)==null?void 0:t.__staticRouterHydrationData;return e&&e.errors&&(e=Gx({},e,{errors:F7(e.errors)})),e}function F7(t){if(!t)return null;let e=Object.entries(t),n={};for(let[i,r]of e)if(r&&r.__type==="RouteErrorResponse")n[i]=new PA(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type==="Error"){if(r.__subType){let s=window[r.__subType];if(typeof s=="function")try{let a=new s(r.message);a.stack="",n[i]=a}catch{}}if(n[i]==null){let s=new Error(r.message);s.stack="",n[i]=s}}else n[i]=r;return n}const B7=Z.createContext({isTransitioning:!1}),$7=Z.createContext(new Map),H7="startTransition",C_=kf[H7],z7="flushSync",j_=w9[z7];function V7(t){C_?C_(t):t()}function fg(t){j_?j_(t):t()}class U7{constructor(){this.status="pending",this.promise=new Promise((e,n)=>{this.resolve=i=>{this.status==="pending"&&(this.status="resolved",e(i))},this.reject=i=>{this.status==="pending"&&(this.status="rejected",n(i))}})}}function W7(t){let{fallbackElement:e,router:n,future:i}=t,[r,s]=Z.useState(n.state),[a,l]=Z.useState(),[c,d]=Z.useState({isTransitioning:!1}),[u,h]=Z.useState(),[p,y]=Z.useState(),[m,w]=Z.useState(),k=Z.useRef(new Map),{v7_startTransition:b}=i||{},x=Z.useCallback($=>{b?V7($):$()},[b]),v=Z.useCallback(($,V)=>{let{deletedFetchers:I,unstable_flushSync:A,unstable_viewTransitionOpts:L}=V;I.forEach(g=>k.current.delete(g)),$.fetchers.forEach((g,f)=>{g.data!==void 0&&k.current.set(f,g.data)});let T=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!L||T){A?fg(()=>s($)):x(()=>s($));return}if(A){fg(()=>{p&&(u&&u.resolve(),p.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:L.currentLocation,nextLocation:L.nextLocation})});let g=n.window.document.startViewTransition(()=>{fg(()=>s($))});g.finished.finally(()=>{fg(()=>{h(void 0),y(void 0),l(void 0),d({isTransitioning:!1})})}),fg(()=>y(g));return}p?(u&&u.resolve(),p.skipTransition(),w({state:$,currentLocation:L.currentLocation,nextLocation:L.nextLocation})):(l($),d({isTransitioning:!0,flushSync:!1,currentLocation:L.currentLocation,nextLocation:L.nextLocation}))},[n.window,p,u,k,x]);Z.useLayoutEffect(()=>n.subscribe(v),[n,v]),Z.useEffect(()=>{c.isTransitioning&&!c.flushSync&&h(new U7)},[c]),Z.useEffect(()=>{if(u&&a&&n.window){let $=a,V=u.promise,I=n.window.document.startViewTransition(async()=>{x(()=>s($)),await V});I.finished.finally(()=>{h(void 0),y(void 0),l(void 0),d({isTransitioning:!1})}),y(I)}},[x,a,u,n.window]),Z.useEffect(()=>{u&&a&&r.location.key===a.location.key&&u.resolve()},[u,p,r.location,a]),Z.useEffect(()=>{!c.isTransitioning&&m&&(l(m.state),d({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),w(void 0))},[c.isTransitioning,m]),Z.useEffect(()=>{},[]);let E=Z.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:$=>n.navigate($),push:($,V,I)=>n.navigate($,{state:V,preventScrollReset:I==null?void 0:I.preventScrollReset}),replace:($,V,I)=>n.navigate($,{replace:!0,state:V,preventScrollReset:I==null?void 0:I.preventScrollReset})}),[n]),N=n.basename||"/",S=Z.useMemo(()=>({router:n,navigator:E,static:!1,basename:N}),[n,E,N]),_=Z.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return Z.createElement(Z.Fragment,null,Z.createElement(Y1.Provider,{value:S},Z.createElement(aF.Provider,{value:r},Z.createElement($7.Provider,{value:k.current},Z.createElement(B7.Provider,{value:c}
69,Z.createElement(A7,{basename:N,location:r.location,navigationType:r.historyAction,navigator:E,future:_},r.initialized||n.future.v7_partialHydration?Z.createElement(G7,{routes:n.routes,future:n.future,state:r}):e))))),null)}const G7=Z.memo(q7);function q7(t){let{routes:e,future:n,state:i}=t;return v7(e,void 0,i,n)}const K7=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Y7=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pF=Z.forwardRef(function(e,n){let{onClick:i,relative:r,reloadDocument:s,replace:a,state:l,target:c,to:d,preventScrollReset:u,unstable_viewTransition:h}=e,p=M7(e,I7),{basename:y}=Z.useContext(Xh),m,w=!1;if(typeof d=="string"&&Y7.test(d)&&(m=d,K7))try{let v=new URL(window.location.href),E=d.startsWith("//")?new URL(v.protocol+d):new URL(d),N=Vf(E.pathname,y);E.origin===v.origin&&N!=null?d=N+E.search+E.hash:w=!0}catch{}let k=y7(d,{relative:r}),b=X7(d,{replace:a,state:l,target:c,preventScrollReset:u,relative:r,unstable_viewTransition:h});function x(v){i&&i(v),v.defaultPrevented||b(v)}return Z.createElement("a",Gx({},p,{href:m||k,onClick:w||s?i:x,ref:n,target:c}))});var T_;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(T_||(T_={}));var P_;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(P_||(P_={}));function X7(t,e){let{target:n,replace:i,state:r,preventScrollReset:s,relative:a,unstable_viewTransition:l}=e===void 0?{}:e,c=ec(),d=nv(),u=cF(t,{relative:a});return Z.useCallback(h=>{if(_7(h,n)){h.preventDefault();let p=i!==void 0?i:Mh(d)===Mh(u);c(t,{replace:p,state:r,preventScrollReset:s,relative:a,unstable_viewTransition:l})}},[d,c,u,i,r,n,t,s,a,l])}var mF={exports:{}};/*! 70 Copyright (c) 2018 Jed Watson. 71 Licensed under the MIT License (MIT), see 72 http://jedwatson.github.io/classnames 73*/(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var s="",a=0;a<arguments.length;a++){var l=arguments[a];l&&(s=r(s,i(l)))}return s}function i(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var a="";for(var l in s)e.call(s,l)&&s[l]&&(a=r(a,l));return a}function r(s,a){return a?s?s+" "+a:s+a:s}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(mF);var J7=mF.exports;const on=Fr(J7);var DA={},_A={},Gn={},X1={};(function(t){function e(a,l,c){var d=l.slidesToShow,u=l.currentSlide;return c.length>2*d?a+2*d:u>=c.length?c.length+a:a}function n(a,l){if(l.length>2*a){for(var c={},d=l.length-2*a,u=l.length-d,h=d,p=0;p<u;p++)c[p]=h,h++;var y=l.length+u,m=y+l.slice(0,2*a).length,w=0;for(p=y;p<=m;p++)c[p]=w,w++;var k=y,b=0;for(p=u;p<k;p++)c[p]=b,b++;return c}c={};var x=3*l.length,v=0;for(p=0;p<x;p++)c[p]=v,++v===l.length&&(v=0);return c}function i(a,l){return l.length<a?l:l.length>2*a?l.slice(l.length-2*a,l.length).concat(l,l.slice(0,2*a)):l.concat(l,l)}function r(a,l){return l.length>2*a?2*a:l.length}function s(a,l,c){var d,u=a.currentSlide,h=a.slidesToShow,p=a.itemWidth,y=a.totalItems,m=0,w=0,k=u===0,b=l.length-(l.length-2*h);return l.length<h?(w=m=0,k=d=!1):l.length>2*h?((d=u>=b+l.length)&&(w=-p*(m=u-l.length)),k&&(w=-p*(m=b+(l.length-2*h)))):((d=u>=2*l.length)&&(w=-p*(m=u-l.length)),k&&(w=c.showDots?-p*(m=l.length):-p*(m=y/3))),{isReachingTheEnd:d,isReachingTheStart:k,nextSlide:m,nextPosition:w}}Object.defineProperty(t,"__esModule",{value:!0}),t.getOriginalCounterPart=e,t.getOriginalIndexLookupTableByClones=n,t.getClones=i,t.getInitialSlideInInfiniteMode=r,t.checkClonesPosition=s})(X1);var tm={};Object.defineProperty(tm,"__esModule",{value:!0});function Q7(t,e,n,i){var r=0,s=i||n;return e&&s&&(r=t[s].partialVisibilityGutter||t[s].paritialVisibilityGutter),r}function Z7(t,e){var n;return e[t]&&(n=(100/e[t].items).toFixed(1)),n}function eW(t,e,n){return Math.round(n/(e+(t.centerMode?1:0)))}tm.getPartialVisibilityGutter=Q7,tm.getWidthFromDeviceType=Z7,tm.getItemClientSideWidth=eW;var Ri={};Object.defineProperty(Ri,"__esModule",{value:!0});var Wj=tm;function IA(t){var e=t.slidesToShow;return t.totalItems<e}function tW(t,e){var n,i=t.domLoaded,r=t.slidesToShow,s=t.containerWidth,a=t.itemWidth,l=e.deviceType,c=e.responsive,d=e.ssr,u=e.partialVisbile,h=e.partialVisible,p=!!(i&&r&&s&&a);d&&l&&!p&&(n=Wj.getWidthFromDeviceType(l,c));var y=!!(d&&l&&!p&&n);return{shouldRenderOnSSR:y,flexBisis:n,domFullyLoaded:p,partialVisibilityGutter:Wj.getPartialVisibilityGutter(c,u||h,l,t.deviceType),shouldRenderAtAll:y||p}}function nW(t,e){var n=e.currentSlide,i=e.slidesToShow;return n<=t&&t<n+i}function fF(t,e,n){var i=n||t.transform;return!e.infinite&&t.currentSlide===0||IA(t)?i:i+t.itemWidth/2}function iW(t){return!(0<t.currentSlide)}function gF(t){var e=t.currentSlide,n=t.totalItems;return!(e+t.slidesToShow<n)}function xF(t,e,n,i){e===void 0&&(e=0);var r=t.currentSlide,s=t.slidesToShow,a=gF(t),l=!n.infinite&&a,c=i||t.transform;if(IA(t))return c;var d=c+r*e;return l?d+(t.containerWidth-(t.itemWidth-e)*s):d}function yF(t,e){return t.rtl?-1*e:e}function rW(t,e,n){var i=e.partialVisbile,r=e.partialVisible,s=e.responsive,a=e.deviceType,l=e.centerMode,c=n||t.transform,d=Wj.getPartialVisibilityGutter(s,i||r,a,t.deviceType);return yF(e,r||i?xF(t,d,e,n):l?fF(t,e,n):c)}function sW(t,e){var n=t.domLoaded,i=t.slidesToShow,r=t.containerWidth,s=t.itemWidth,a=e.deviceType,l=e.responsive,c=e.slidesToSlide||1,d=!!(n&&i&&r&&s);return e.ssr&&e.deviceType&&!d&&Object.keys(l).forEach(function(u){var h=l[u].slidesToSlide;a===u&&h&&(c=h)}),d&&Object.keys(l).forEach(function(u){var h=l[u],p=h.breakpoint,y=h.slidesToSlide,m=p.max,w=p.min;y&&window.innerWidth>=w&&window.innerWidth<=m&&(c=y)}),c}Ri.notEnoughChildren=IA,Ri.getInitialState=tW,Ri.getIfSlideIsVisbile=nW,Ri.getTransformForCenterMode=fF,Ri.isInLeftEnd=iW,Ri.isInRightEnd=gF,Ri.getTransformForParti
73alVsibile=xF,Ri.parsePosition=yF,Ri.getTransform=rW,Ri.getSlidesToSlide=sW;var RA={};Object.defineProperty(RA,"__esModule",{value:!0});var aW=function(t,e,n){var i;return function(){var r=arguments;i||(t.apply(this,r),i=!0,typeof n=="function"&&n(!0),setTimeout(function(){i=!1,typeof n=="function"&&n(!1)},e))}};RA.default=aW;var bF={};(function(t){function e(n,i){var r=i.partialVisbile,s=i.partialVisible,a=i.centerMode,l=i.ssr,c=i.responsive;if((r||s)&&a)throw new Error("center mode can not be used at the same time with partialVisible");if(!c)throw l?new Error("ssr mode need to be used in conjunction with responsive prop"):new Error("Responsive prop is needed for deciding the amount of items to show on the screen");if(c&&typeof c!="object")throw new Error("responsive prop must be an object")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=e})(bF);var OA={};Object.defineProperty(OA,"__esModule",{value:!0});var oW=Ri;function lW(t,e,n){n===void 0&&(n=0);var i,r,s=t.slidesToShow,a=t.currentSlide,l=t.itemWidth,c=t.totalItems,d=oW.getSlidesToSlide(t,e),u=a+1+n+s+(0<n?0:d);return r=u<=c?-l*(i=a+n+(0<n?0:d)):c<u&&a!==c-s?-l*(i=c-s):i=void 0,{nextSlides:i,nextPosition:r}}OA.populateNextSlides=lW;var LA={};Object.defineProperty(LA,"__esModule",{value:!0});var cW=Z,dW=Ri,uW=Ri;function hW(t,e,n){n===void 0&&(n=0);var i,r,s=t.currentSlide,a=t.itemWidth,l=t.slidesToShow,c=e.children,d=e.showDots,u=e.infinite,h=dW.getSlidesToSlide(t,e),p=s-n-(0<n?0:h),y=(cW.Children.toArray(c).length-l)%h;return r=0<=p?(i=p,d&&!u&&0<y&&uW.isInRightEnd(t)&&(i=s-y),-a*i):i=p<0&&s!==0?0:void 0,{nextSlides:i,nextPosition:r}}LA.populatePreviousSlides=hW;var vF={};(function(t){function e(n,i,r,s,a,l){var c,d,u=n.itemWidth,h=n.slidesToShow,p=n.totalItems,y=n.currentSlide,m=i.infinite,w=!1,k=Math.round((r-s)/u),b=Math.round((s-r)/u),x=r<a;if(a<r&&k<=h){c="right";var v=Math.abs(-u*(p-h)),E=l-(s-a),N=y===p-h;(Math.abs(E)<=v||N&&m)&&(d=E,w=!0)}return x&&b<=h&&(c="left",((E=l+(a-s))<=0||y===0&&m)&&(w=!0,d=E)),{direction:c,nextPosition:d,canContinue:w}}Object.defineProperty(t,"__esModule",{value:!0}),t.populateSlidesOnMouseTouchMove=e})(vF);Object.defineProperty(Gn,"__esModule",{value:!0});var Xv=X1;Gn.getOriginalCounterPart=Xv.getOriginalCounterPart,Gn.getClones=Xv.getClones,Gn.checkClonesPosition=Xv.checkClonesPosition,Gn.getInitialSlideInInfiniteMode=Xv.getInitialSlideInInfiniteMode;var VC=tm;Gn.getWidthFromDeviceType=VC.getWidthFromDeviceType,Gn.getPartialVisibilityGutter=VC.getPartialVisibilityGutter,Gn.getItemClientSideWidth=VC.getItemClientSideWidth;var cc=Ri;Gn.getInitialState=cc.getInitialState,Gn.getIfSlideIsVisbile=cc.getIfSlideIsVisbile,Gn.getTransformForCenterMode=cc.getTransformForCenterMode,Gn.getTransformForPartialVsibile=cc.getTransformForPartialVsibile,Gn.isInLeftEnd=cc.isInLeftEnd,Gn.isInRightEnd=cc.isInRightEnd,Gn.notEnoughChildren=cc.notEnoughChildren,Gn.getSlidesToSlide=cc.getSlidesToSlide;var pW=RA;Gn.throttle=pW.default;var mW=bF;Gn.throwError=mW.default;var fW=OA;Gn.populateNextSlides=fW.populateNextSlides;var gW=LA;Gn.populatePreviousSlides=gW.populatePreviousSlides;var xW=vF;Gn.populateSlidesOnMouseTouchMove=xW.populateSlidesOnMouseTouchMove;var J1={},yW=jh&&jh.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var s in r)r.hasOwnProperty(s)&&(i[s]=r[s])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(J1,"__esModule",{value:!0});var bW=Z;function vW(t){return"clientY"in t}J1.isMouseMoveEvent=vW;var wW=function(t){function e(){return t!==null&&t.apply(this,arguments)||this}return yW(e,t),e}(bW.Component);J1.default=wW;var FA={},BA={};Object.defineProperty(BA,"__esModule",{value:!0});var kW=X1,SW=Ri;function CW(t,e,n,i){var r={},s=SW.getSlidesToSlide(e,n);return Array(t).fill(0).forEach(function(a,l){var c=kW.getOriginalCounterPart(l,e,i);if(l===0)r[0]=c;else{var d=r[l-1]+s;r[l]=d}}),r}BA.getLookupTableForNextSlides=CW;
73Object.defineProperty(FA,"__esModule",{value:!0});var gg=Z,jW=X1,TW=BA,E_=Ri,PW=function(t){var e=t.props,n=t.state,i=t.goToSlide,r=t.getState,s=e.showDots,a=e.customDot,l=e.dotListClass,c=e.infinite,d=e.children;if(!s||E_.notEnoughChildren(n))return null;var u,h=n.currentSlide,p=n.slidesToShow,y=E_.getSlidesToSlide(n,e),m=gg.Children.toArray(d);u=c?Math.ceil(m.length/y):Math.ceil((m.length-p)/y)+1;var w=TW.getLookupTableForNextSlides(u,n,e,m),k=jW.getOriginalIndexLookupTableByClones(p,m),b=k[h];return gg.createElement("ul",{className:"react-multi-carousel-dot-list "+l},Array(u).fill(0).map(function(x,v){var E,N;if(c){N=w[v];var S=k[N];E=b===S||S<=b&&b<S+y}else{var _=m.length-p,$=v*y;E=(N=_<$?_:$)===h||N<h&&h<N+y&&h<m.length-p}return a?gg.cloneElement(a,{index:v,active:E,key:v,onClick:function(){return i(N)},carouselState:r()}):gg.createElement("li",{"data-index":v,key:v,className:"react-multi-carousel-dot "+(E?"react-multi-carousel-dot--active":"")},gg.createElement("button",{"aria-label":"Go to slide "+(v+1),onClick:function(){return i(N)}}))}))};FA.default=PW;var Q1={};Object.defineProperty(Q1,"__esModule",{value:!0});var fk=Z,EW=function(t){var e=t.customLeftArrow,n=t.getState,i=t.previous,r=t.disabled,s=t.rtl;if(e)return fk.cloneElement(e,{onClick:function(){return i()},carouselState:n(),disabled:r,rtl:s});var a=s?"rtl":"";return fk.createElement("button",{"aria-label":"Go to previous slide",className:"react-multiple-carousel__arrow react-multiple-carousel__arrow--left "+a,onClick:function(){return i()},type:"button",disabled:r})};Q1.LeftArrow=EW;var AW=function(t){var e=t.customRightArrow,n=t.getState,i=t.next,r=t.disabled,s=t.rtl;if(e)return fk.cloneElement(e,{onClick:function(){return i()},carouselState:n(),disabled:r,rtl:s});var a=s?"rtl":"";return fk.createElement("button",{"aria-label":"Go to next slide",className:"react-multiple-carousel__arrow react-multiple-carousel__arrow--right "+a,onClick:function(){return i()},type:"button",disabled:r})};Q1.RightArrow=AW;var $A={};Object.defineProperty($A,"__esModule",{value:!0});var Jv=Z,UC=Gn,NW=function(t){var e=t.props,n=t.state,i=t.goToSlide,r=t.clones,s=t.notEnoughChildren,a=n.itemWidth,l=e.children,c=e.infinite,d=e.itemClass,u=e.itemAriaLabel,h=e.partialVisbile,p=e.partialVisible,y=UC.getInitialState(n,e),m=y.flexBisis,w=y.shouldRenderOnSSR,k=y.domFullyLoaded,b=y.partialVisibilityGutter;return y.shouldRenderAtAll?(h&&console.warn('WARNING: Please correct props name: "partialVisible" as old typo will be removed in future versions!'),Jv.createElement(Jv.Fragment,null,(c?r:Jv.Children.toArray(l)).map(function(x,v){return Jv.createElement("li",{key:v,"data-index":v,onClick:function(){e.focusOnSelect&&i(v)},"aria-hidden":UC.getIfSlideIsVisbile(v,n)?"false":"true","aria-label":u||(x.props.ariaLabel?x.props.ariaLabel:null),style:{flex:w?"1 0 "+m+"%":"auto",position:"relative",width:k?((h||p)&&b&&!s?a-b:a)+"px":"auto"},className:"react-multi-carousel-item "+(UC.getIfSlideIsVisbile(v,n)?"react-multi-carousel-item--active":"")+" "+d},x)}))):null};$A.default=NW;var MW=jh&&jh.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var s in r)r.hasOwnProperty(s)&&(i[s]=r[s])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(_A,"__esModule",{value:!0});var zi=Z,ri=Gn,Bd=J1,DW=FA,A_=Q1,_W=$A,Qv=Ri,no=400,N_="transform 400ms ease-in-out",IW=function(t){function e(n){var i=t.call(this,n)||this;return i.containerRef=zi.createRef(),i.listRef=zi.createRef(),i.state={itemWidth:0,slidesToShow:0,currentSlide:0,totalItems:zi.Children.count(n.children),deviceType:"",domLoaded:!1,transform:0,containerWidth:0},i.onResize=i.onResize.bind(i),i.handleDown=i.handleDown.bind(i),i.handleMove=i.handleMove.bind(i),i.handleOut=i.handleOut.bind(i),i.onKeyUp=i.onKeyUp.bind(i),i.handleEnter=i.handleEnter.bind(i),i.setIsInThrottle=i.setIsInThrottle.bind(i),i.next=ri.throttle(i.next.bind(i),n.transitionDuration||no,i.setIsInThrottle),i.previous=ri.throttle(i.previous.bind(i),n.transitionDuration||no,i.setIsInThrottle),i.goToSlide=ri.throttle(i.goToSlide.bind(i),n.transitionDuration||no,i.setIsInThrottle),i.onMove=!1,i.initialX=0,i.lastX=0,i.isAnimationAllowed=!1,i.direction="",i.initialY=0,i.isInThrottle=!1,i.transformPlaceHolder=0,i}return MW(e,t),e.prototype.resetTotalItems=function(){var n=this,i=zi.Children.count(this.props.children),r=ri.notEnoughChildren(this.state)?0:Math.max(0,Math.min(this.state.currentSlide,i));this.setState({totalItems:i,currentSlide:r},function(){n.setContainerAndItemWidth(n.state.slidesToShow,!0)})},e.prototype.setIsInThrottle=function(n){n===void 0&&(n=!1),this.isInThrottle=n},e.prototype.setTransformDirectly=function(n,i){var r=this.props.additionalTransfrom;this.transformPlaceHolder=n;var s=Qv.getTransform(this.state,this.props,this.transformPlaceHolder);this.listRef&&this.listRef.current&&(this.setAnimationDirectly(i),this.listRef.current.style.transform="translate3d("+(s+r)+"px,0,0)")},e.prototype.setAnimationDirectly=function(n){this.listRef&&this.listRef.current&&(this.listRef.current.style.transition=n?this.props.customTransition||N_:"none")},e.prototype.componentDidMount=function(){this.setState({domLoaded:!0}),this.setItemsToShow(),window.addEventListener("resize",this.onResize),this.onResize(!0),this.props.keyBoardControl&&window.addEventListener("keyup",this.onKeyUp),this.props.autoPlay&&(this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed))},e.prototype.setClones=function(n,i,r,s){var a=this;s===void 0&&(s=!1),this.isAnimationAllowed=!1;var l=zi.Children.toArray(this.props.children),c=ri.getInitialSlideInInfiniteMode(n||this.state.slidesToShow,l),d=ri.getClones(this.state.slidesToShow,l),u=l.length<this.state.slidesToShow?0:this.state.currentSlide;this.setState({totalItems:d.length,currentSlide:r&&!s?u:c},function(){a.correctItemsPosition(i||a.state.itemWidth)})},e.prototype.setItemsToShow=function(n,i){var r=this,s=this.props.responsive;
73Object.keys(s).forEach(function(a){var l=s[a],c=l.breakpoint,d=l.items,u=c.max,h=c.min,p=[window.innerWidth];window.screen&&window.screen.width&&p.push(window.screen.width);var y=Math.min.apply(Math,p);h<=y&&y<=u&&(r.setState({slidesToShow:d,deviceType:a}),r.setContainerAndItemWidth(d,n,i))})},e.prototype.setContainerAndItemWidth=function(n,i,r){var s=this;if(this.containerRef&&this.containerRef.current){var a=this.containerRef.current.offsetWidth,l=ri.getItemClientSideWidth(this.props,n,a);this.setState({containerWidth:a,itemWidth:l},function(){s.props.infinite&&s.setClones(n,l,i,r)}),i&&this.correctItemsPosition(l)}},e.prototype.correctItemsPosition=function(n,i,r){i&&(this.isAnimationAllowed=!0),!i&&this.isAnimationAllowed&&(this.isAnimationAllowed=!1);var s=this.state.totalItems<this.state.slidesToShow?0:-n*this.state.currentSlide;r&&this.setTransformDirectly(s,!0),this.setState({transform:s})},e.prototype.onResize=function(n){var i;i=!!this.props.infinite&&(typeof n!="boolean"||!n),this.setItemsToShow(i)},e.prototype.componentDidUpdate=function(n,i){var r=this,s=n.keyBoardControl,a=n.autoPlay,l=n.children,c=i.containerWidth,d=i.domLoaded,u=i.currentSlide;if(this.containerRef&&this.containerRef.current&&this.containerRef.current.offsetWidth!==c&&(this.itemsToShowTimeout&&clearTimeout(this.itemsToShowTimeout),this.itemsToShowTimeout=setTimeout(function(){r.setItemsToShow(!0)},this.props.transitionDuration||no)),s&&!this.props.keyBoardControl&&window.removeEventListener("keyup",this.onKeyUp),!s&&this.props.keyBoardControl&&window.addEventListener("keyup",this.onKeyUp),a&&!this.props.autoPlay&&this.autoPlay&&(clearInterval(this.autoPlay),this.autoPlay=void 0),a||!this.props.autoPlay||this.autoPlay||(this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed)),l.length!==this.props.children.length?e.clonesTimeout=setTimeout(function(){r.props.infinite?r.setClones(r.state.slidesToShow,r.state.itemWidth,!0,!0):r.resetTotalItems()},this.props.transitionDuration||no):this.props.infinite&&this.state.currentSlide!==u&&this.correctClonesPosition({domLoaded:d}),this.transformPlaceHolder!==this.state.transform&&(this.transformPlaceHolder=this.state.transform),this.props.autoPlay&&this.props.rewind&&!this.props.infinite&&ri.isInRightEnd(this.state)){var h=this.props.transitionDuration||no;e.isInThrottleTimeout=setTimeout(function(){r.setIsInThrottle(!1),r.resetAutoplayInterval(),r.goToSlide(0,void 0,!!r.props.rewindWithAnimation)},h+this.props.autoPlaySpeed)}},e.prototype.correctClonesPosition=function(n){var i=this,r=n.domLoaded,s=zi.Children.toArray(this.props.children),a=ri.checkClonesPosition(this.state,s,this.props),l=a.isReachingTheEnd,c=a.isReachingTheStart,d=a.nextSlide,u=a.nextPosition;this.state.domLoaded&&r&&(l||c)&&(this.isAnimationAllowed=!1,e.transformTimeout=setTimeout(function(){i.setState({transform:u,currentSlide:d})},this.props.transitionDuration||no))},e.prototype.next=function(n){var i=this;n===void 0&&(n=0);var r=this.props,s=r.afterChange,a=r.beforeChange;if(!ri.notEnoughChildren(this.state)){var l=ri.populateNextSlides(this.state,this.props,n),c=l.nextSlides,d=l.nextPosition,u=this.state.currentSlide;c!==void 0&&d!==void 0&&(typeof a=="function"&&a(c,this.getState()),this.isAnimationAllowed=!0,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({transform:d,currentSlide:c},function(){typeof s=="function"&&(e.afterChangeTimeout=setTimeout(function(){s(u,i.getState())},i.props.transitionDuration||no))}))}},e.prototype.previous=function(n){var i=this;n===void 0&&(n=0);var r=this.props,s=r.afterChange,a=r.beforeChange;if(!ri.notEnoughChildren(this.state)){var l=ri.populatePreviousSlides(this.state,this.props,n),c=l.nextSlides,d=l.nextPosition;if(c!==void 0&&d!==void 0){var u=this.state.currentSlide;typeof a=="function"&&a(c,this.getState()),this.isAnimationAllowed=!0,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({transform:d,currentSlide:c},function(){typeof s=="function"&&(e.afterChangeTimeout2=setTimeout(function(){s(u,i.getState())},i.props.transitionDuration||no))})}}},e.prototype.resetAutoplayInterval=function(){this.props.autoPlay&&(clearInterval(this.autoPlay),this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed))},e.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.onResize),this.props.keyBoardControl&&window.removeEventListener("keyup",this.onKeyUp),this.props.autoPlay&&this.autoPlay&&(clearInterval(this.autoPlay),this.autoPlay=void 0),this.itemsToShowTimeout&&clearTimeout(this.itemsToShowTimeout),e.clonesTimeout&&clearTimeout(e.clonesTimeout),e.isInThrottleTimeout&&clearTimeout(e.isInThrottleTimeout),e.transformTimeout&&clearTimeout(e.transformTimeout),e.afterChangeTimeout&&clearTimeout(e.afterChangeTimeout),e.afterChangeTimeout2&&clearTimeout(e.afterChangeTimeout2),e.afterChangeTimeout3&&clearTimeout(e.afterChangeTimeout3)},e.prototype.resetMoveStatus=function(){this.onMove=!1,this.initialX=0,this.lastX=0,this.direction="",this.initialY=0},e.prototype.getCords=function(n){var i=n.clientX,r=n.clientY;return{clientX:Qv.parsePosition(this.props,i),clientY:Qv.parsePosition(this.props,r)}},e.prototype.handleDown=function(n){if(!(!Bd.isMouseMoveEvent(n)&&!this.props.swipeable||Bd.isMouseMoveEvent(n)&&!this.props.draggable||this.isInThrottle)){var i=this.getCords(Bd.isMouseMoveEvent(n)?n:n.touches[0]),r
73=i.clientX,s=i.clientY;this.onMove=!0,this.initialX=r,this.initialY=s,this.lastX=r,this.isAnimationAllowed=!1}},e.prototype.handleMove=function(n){if(!(!Bd.isMouseMoveEvent(n)&&!this.props.swipeable||Bd.isMouseMoveEvent(n)&&!this.props.draggable||ri.notEnoughChildren(this.state))){var i=this.getCords(Bd.isMouseMoveEvent(n)?n:n.touches[0]),r=i.clientX,s=i.clientY,a=this.initialX-r,l=this.initialY-s;if(this.onMove){if(!(Math.abs(a)>Math.abs(l)))return;var c=ri.populateSlidesOnMouseTouchMove(this.state,this.props,this.initialX,this.lastX,r,this.transformPlaceHolder),d=c.direction,u=c.nextPosition,h=c.canContinue;d&&(this.direction=d,h&&u!==void 0&&this.setTransformDirectly(u)),this.lastX=r}}},e.prototype.handleOut=function(n){this.props.autoPlay&&!this.autoPlay&&(this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed));var i=n.type==="touchend"&&!this.props.swipeable,r=(n.type==="mouseleave"||n.type==="mouseup")&&!this.props.draggable;if(!i&&!r&&this.onMove){if(this.setAnimationDirectly(!0),this.direction==="right")if(this.initialX-this.lastX>=this.props.minimumTouchDrag){var s=Math.round((this.initialX-this.lastX)/this.state.itemWidth);this.next(s)}else this.correctItemsPosition(this.state.itemWidth,!0,!0);this.direction==="left"&&(this.lastX-this.initialX>this.props.minimumTouchDrag?(s=Math.round((this.lastX-this.initialX)/this.state.itemWidth),this.previous(s)):this.correctItemsPosition(this.state.itemWidth,!0,!0)),this.resetMoveStatus()}},e.prototype.isInViewport=function(n){var i=n.getBoundingClientRect(),r=i.top,s=r===void 0?0:r,a=i.left,l=a===void 0?0:a,c=i.bottom,d=c===void 0?0:c,u=i.right,h=u===void 0?0:u;return 0<=s&&0<=l&&d<=(window.innerHeight||document.documentElement.clientHeight)&&h<=(window.innerWidth||document.documentElement.clientWidth)},e.prototype.isChildOfCarousel=function(n){return!!(n instanceof Element&&this.listRef&&this.listRef.current)&&this.listRef.current.contains(n)},e.prototype.onKeyUp=function(n){var i=n.target;switch(n.keyCode){case 37:if(this.isChildOfCarousel(i))return this.previous();break;case 39:if(this.isChildOfCarousel(i))return this.next();break;case 9:if(this.isChildOfCarousel(i)&&i instanceof HTMLInputElement&&this.isInViewport(i))return this.next()}},e.prototype.handleEnter=function(n){Bd.isMouseMoveEvent(n)&&this.autoPlay&&this.props.autoPlay&&this.props.pauseOnHover&&(clearInterval(this.autoPlay),this.autoPlay=void 0)},e.prototype.goToSlide=function(n,i,r){var s=this;if(r===void 0&&(r=!0),!this.isInThrottle){var a=this.state.itemWidth,l=this.props,c=l.afterChange,d=l.beforeChange,u=this.state.currentSlide;typeof d!="function"||i&&(typeof i!="object"||i.skipBeforeChange)||d(n,this.getState()),this.isAnimationAllowed=r,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({currentSlide:n,transform:-a*n},function(){s.props.infinite&&s.correctClonesPosition({domLoaded:!0}),typeof c!="function"||i&&(typeof i!="object"||i.skipAfterChange)||(e.afterChangeTimeout3=setTimeout(function(){c(u,s.getState())},s.props.transitionDuration||no))})}},e.prototype.getState=function(){return this.state},e.prototype.renderLeftArrow=function(n){var i=this,r=this.props,s=r.customLeftArrow,a=r.rtl;return zi.createElement(A_.LeftArrow,{customLeftArrow:s,getState:function(){return i.getState()},previous:this.previous,disabled:n,rtl:a})},e.prototype.renderRightArrow=function(n){var i=this,r=this.props,s=r.customRightArrow,a=r.rtl;return zi.createElement(A_.RightArrow,{customRightArrow:s,getState:function(){return i.getState()},next:this.next,disabled:n,rtl:a})},e.prototype.renderButtonGroups=function(){var n=this,i=this.props.customButtonGroup;return i?zi.cloneElement(i,{previous:function(){return n.previous()},next:function(){return n.next()},goToSlide:function(r,s){return n.goToSlide(r,s)},carouselState:this.getState()}):null},e.prototype.renderDotsList=function(){var n=this;return zi.createElement(DW.default,{state:this.state,props:this.props,goToSlide:this.goToSlide,getState:function(){return n.getState()}})},e.prototype.renderCarouselItems=function(){var n=[];if(this.props.infinite){var i=zi.Children.toArray(this.props.children);n=ri.getClones(this.state.slidesToShow,i)}return zi.createElement(_W.default,{clones:n,goToSlide:this.goToSlide,state:this.state,notEnoughChildren:ri.notEnoughChildren(this.state),props:this.props})},e.prototype.render=function(){var n=this.props,i=n.deviceType,r=n.arrows,s=n.renderArrowsWhenDisabled,a=n.removeArrowOnDeviceType,l=n.infinite,c=n.containerClass,d=n.sliderClass,u=n.customTransition,h=n.additionalTransfrom,p=n.renderDotsOutside,y=n.renderButtonGroupOutside,m=n.className,w=n.rtl,k=ri.getInitialState(this.state,this.props),b=k.shouldRenderOnSSR,x=k.shouldRenderAtAll,v=ri.isInLeftEnd(this.state),E=ri.isInRightEnd(this.state),N=r&&!(a&&(i&&-1<a.indexOf(i)||this.state.deviceType&&-1<a.indexOf(this.state.deviceType)))&&!ri.notEnoughChildren(this.state)&&x,S=!l&&v,_=!l&&E,$=Qv.getTransform(this.state,this.props);return zi.createElement(zi.Fragment,null,zi.createElement("div",{className:"react-multi-carousel-list "+c+" "+m,dir:w?"rtl":"ltr",ref:this.containerRef},zi.createElement("ul",{ref:this.listRef,className:"react-multi-carousel-track "+d,style:{transition:this.isAnimationAllowed?u||N_:"none",overflow:b?"hidden":"unset",transform:"translate3d("+($+h)+"px,0,0)"},onMouseMove:this.handleMove,onMouseDown:this.handleDown,onMouseUp:this.handleOut,onMouseEnter:this.handleEnter,onMouseLeave:this.handleOut,onTouchStart:this.handleDown,onTouchMove:this.handleMove,onTouchEnd:this.handleOut},this.renderCarouselItems()),N&&(!S||s)&&this.renderLeftArrow(S),N&&(!_||s)&&this.renderRightArrow(_),x&&!y&&this.renderButtonGroups(),x&&!p&&this.renderDotsList()),x&&p&&this.renderDotsList(),x&&y&&this.renderButtonGroups())},e.defaultProps={slidesToSlide:1,infinite:!1,draggable:!0,swipeable:!0,arrows:!0,renderArrowsWhenDisabled:!1,containerClass:"",sliderClass:"",itemClass:"",keyBoardControl:!0,autoPlaySpeed:3e3,showDots:!1,renderDotsOutside:!1,renderButtonGroupOutside:!1,minimumTouchDrag:80,className:"",dotListClass:"",focusOnSelect:!1,centerMode:!1,additionalTransfrom:0,pauseOnHover:!0,shouldResetAutoplay:!0,rewind:!1,rtl:!1,rewindWithAnimation:!1},e}(zi.Component);_A.default=IW;
73Object.defineProperty(DA,"__esModule",{value:!0});var RW=_A;DA.default=RW.default;var OW=DA;const Z1=Fr(OW),LW=(...t)=>{console!=null&&console.warn&&(bh(t[0])&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t))},M_={},Gj=(...t)=>{bh(t[0])&&M_[t[0]]||(bh(t[0])&&(M_[t[0]]=new Date),LW(...t))},wF=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}},D_=(t,e,n)=>{t.loadNamespaces(e,wF(t,n))},__=(t,e,n,i)=>{bh(n)&&(n=[n]),n.forEach(r=>{t.options.ns.indexOf(r)<0&&t.options.ns.push(r)}),t.loadLanguages(e,wF(t,i))},FW=(t,e,n={})=>!e.languages||!e.languages.length?(Gj("i18n.languages were undefined or empty",e.languages),!0):e.hasLoadedNamespace(t,{lng:n.lng,precheck:(i,r)=>{var s;if(((s=n.bindI18n)==null?void 0:s.indexOf("languageChanging"))>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!r(i.isLanguageChangingTo,t))return!1}}),bh=t=>typeof t=="string",BW=t=>typeof t=="object"&&t!==null,$W=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,HW={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"â¦","…":"â¦","/":"/","/":"/"},zW=t=>HW[t],VW=t=>t.replace($W,zW);let qj={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:VW};const UW=(t={})=>{qj={...qj,...t}},WW=()=>qj;let kF;const GW=t=>{kF=t},qW=()=>kF,KW={type:"3rdParty",init(t){UW(t.options.react),GW(t)}},YW=Z.createContext();class XW{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{var i;(i=this.usedNamespaces)[n]??(i[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const JW=(t,e)=>{const n=Z.useRef();return Z.useEffect(()=>{n.current=t},[t,e]),n.current},SF=(t,e,n,i)=>t.getFixedT(e,n,i),QW=(t,e,n,i)=>Z.useCallback(SF(t,e,n,i),[t,e,n,i]),Se=(t,e={})=>{var E,N,S,_;const{i18n:n}=e,{i18n:i,defaultNS:r}=Z.useContext(YW)||{},s=n||i||qW();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new XW),!s){Gj("You will need to pass in an i18next instance by using initReactI18next");const $=(I,A)=>bh(A)?A:BW(A)&&bh(A.defaultValue)?A.defaultValue:Array.isArray(I)?I[I.length-1]:I,V=[$,{},!1];return V.t=$,V.i18n={},V.ready=!1,V}(E=s.options.react)!=null&&E.wait&&Gj("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...WW(),...s.options.react,...e},{useSuspense:l,keyPrefix:c}=a;let d=t||r||((N=s.options)==null?void 0:N.defaultNS);d=bh(d)?[d]:d||["translation"],(_=(S=s.reportNamespaces).addUsedNamespaces)==null||_.call(S,d);const u=(s.isInitialized||s.initializedStoreOnce)&&d.every($=>FW($,s,a)),h=QW(s,e.lng||null,a.nsMode==="fallback"?d:d[0],c),p=()=>h,y=()=>SF(s,e.lng||null,a.nsMode==="fallback"?d:d[0],c),[m,w]=Z.useState(p);let k=d.join();e.lng&&(k=`${e.lng}${k}`);const b=JW(k),x=Z.useRef(!0);Z.useEffect(()=>{const{bindI18n:$,bindI18nStore:V}=a;x.current=!0,!u&&!l&&(e.lng?__(s,e.lng,d,()=>{x.current&&w(y)}):D_(s,d,()=>{x.current&&w(y)})),u&&b&&b!==k&&x.current&&w(y);const I=()=>{x.current&&w(y)};return $&&(s==null||s.on($,I)),V&&(s==null||s.store.on(V,I)),()=>{x.current=!1,s&&($==null||$.split(" ").forEach(A=>s.off(A,I))),V&&s&&V.split(" ").forEach(A=>s.store.off(A,I))}},[s,k]),Z.useEffect(()=>{x.current&&u&&w(p)},[s,c,u]);const v=[m,s,u];if(v.t=m,v.i18n=s,v.ready=u,u||!u&&!l)return v;throw new Promise($=>{e.lng?__(s,e.lng,d,()=>$()):D_(s,d,()=>$())})},gk=({link:t,text:e,className:n="bg-pmi-red uppercase font-medium text-base text-white px-4 py-1 rounded-sm"})=>{const{t:i}=Se(["common","header"]);return o.jsx("a",{href:t||"#",className:n,children:e||i("common:donate")})};var ZW={VITE_API_URL:"https://web-cms.pmi.or.id",VITE_FASPAY_URL:"https://debit-sandbox.faspay.co.id",VITE_FASPAY_MERCHANT_ID:"35264",VITE_FASPAY_MERCHANT:"PMI",VITE_FASPAY_SIGNATURE:"cda45db16ed756c361e1cc6727d489cfbd66cf7a",VITE_API_KEY_PS:"Ve6K^/Y",VITE_PUBLIC_KEY:`-----BEGIN PUBLIC KEY----- 74MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC2x1WVdotG3DB4ddjayJv3Ss6M 75mZLVjuCcf/9HjiwLrHfsmoF29t57OL28MqjiwVITx8RltaqN+fyTxN39jEweqvRj 76P+FucGm6giUqFS2OYO36jOlpEFOJhv6Qb72Iz/xzWwye5tXBxxnfXkQtepoI8v6U 77zbSNJeKuVanarkCvywIDAQAB 78-----END PUBLIC KEY-----`,VITE_SERVER_KEY:"CgY6SfwLoQuTSCZWUTdbEFXJfQnOP2na/Rym5ig0a9rxt7Y22hB+my0o/8eDi9i+JmJJTobyqNKnHHeXAaIwYro6nTdQkP62sutBgyQonsTU8IxUV6MwNGnITpeDL7/LeEYbM9SDdyv6UT/hEPXrmPjdg2TK6OJ6jW0foycZRuU=",VITE_GA_ID:"G-YE87WHX0R1",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const eG=ZW.VITE_AHA_WEBURL,ze="https://web-cms.pmi.or.id",tG="Ve6K^/Y",nG=`-----BEGIN PUBLIC KEY----- 79MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC2x1WVdotG3DB4ddjayJv3Ss6M 80mZLVjuCcf/9HjiwLrHfsmoF29t57OL28MqjiwVITx8RltaqN+fyTxN39jEweqvRj 81P+FucGm6giUqFS2OYO36jOlpEFOJhv6Qb72Iz/xzWwye5tXBxxnfXkQtepoI8v6U 82zbSNJeKuVanarkCvywIDAQAB 83-----END PUBLIC KEY-----`,iG="G-YE87WHX0R1";var rG="0123456789abcdefghijklmnopqrstuvwxyz";function tl(t){return rG.charAt(t)}function sG(t,e){return t&e}function Zv(t,e){return t|e}function I_(t,e){return t^e}function R_(t,e){return t&~e}function aG(t){if(t==0)return-1;var e=0;return t&65535||(t>>=16,e+=16),t&255||(t>>=8,e+=8),t&15||(t>>=4,e+=4),t&3||(t>>=2,e+=2),t&1||++e,e}function oG(t){for(var e=0;t!=0;)t&=t-1,++e;return e}var jp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
83+/",CF="=";function xk(t){var e,n,i="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),i+=jp.charAt(n>>6)+jp.charAt(n&63);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),i+=jp.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),i+=jp.charAt(n>>2)+jp.charAt((n&3)<<4));(i.length&3)>0;)i+=CF;return i}function O_(t){var e="",n,i=0,r=0;for(n=0;n<t.length&&t.charAt(n)!=CF;++n){var s=jp.indexOf(t.charAt(n));s<0||(i==0?(e+=tl(s>>2),r=s&3,i=1):i==1?(e+=tl(r<<2|s>>4),r=s&15,i=2):i==2?(e+=tl(r),e+=tl(s>>2),r=s&3,i=3):(e+=tl(r<<2|s>>4),e+=tl(s&15),i=0))}return i==1&&(e+=tl(r<<2)),e}var yp,lG={decode:function(t){var e;if(yp===void 0){var n="0123456789ABCDEF",i=` \f 84\r  \u2028\u2029`;for(yp={},e=0;e<16;++e)yp[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)yp[n.charAt(e)]=e;for(e=0;e<i.length;++e)yp[i.charAt(e)]=-1}var r=[],s=0,a=0;for(e=0;e<t.length;++e){var l=t.charAt(e);if(l=="=")break;if(l=yp[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+e);s|=l,++a>=2?(r[r.length]=s,s=0,a=0):s<<=4}}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return r}},$d,Kj={decode:function(t){var e;if($d===void 0){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=`= \f 85\r  \u2028\u2029`;for($d=Object.create(null),e=0;e<64;++e)$d[n.charAt(e)]=e;for($d["-"]=62,$d._=63,e=0;e<i.length;++e)$d[i.charAt(e)]=-1}var r=[],s=0,a=0;for(e=0;e<t.length;++e){var l=t.charAt(e);if(l=="=")break;if(l=$d[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+e);s|=l,++a>=4?(r[r.length]=s>>16,r[r.length]=s>>8&255,r[r.length]=s&255,s=0,a=0):s<<=6}}switch(a){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=s>>10;break;case 3:r[r.length]=s>>16,r[r.length]=s>>8&255;break}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=Kj.re.exec(t);if(e)if(e[1])t=e[1];else if(e[2])t=e[2];else throw new Error("RegExp out of sync");return Kj.decode(t)}},bp=1e13,Og=function(){function t(e){this.buf=[+e||0]}return t.prototype.mulAdd=function(e,n){var i=this.buf,r=i.length,s,a;for(s=0;s<r;++s)a=i[s]*e+n,a<bp?n=0:(n=0|a/bp,a-=n*bp),i[s]=a;n>0&&(i[s]=n)},t.prototype.sub=function(e){var n=this.buf,i=n.length,r,s;for(r=0;r<i;++r)s=n[r]-e,s<0?(s+=bp,e=1):e=0,n[r]=s;for(;n[n.length-1]===0;)n.pop()},t.prototype.toString=function(e){if((e||10)!=10)throw new Error("only base 10 is supported");for(var n=this.buf,i=n[n.length-1].toString(),r=n.length-2;r>=0;--r)i+=(bp+n[r]).toString().substring(1);return i},t.prototype.valueOf=function(){for(var e=this.buf,n=0,i=e.length-1;i>=0;--i)n=n*bp+e[i];return n},t.prototype.simplify=function(){var e=this.buf;return e.length==1?e[0]:this},t}(),jF="â¦",cG=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,dG=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function nm(t,e){return t.length>e&&(t=t.substring(0,e)+jF),t}var WC=function(){function t(e,n){this.hexDigits="0123456789ABCDEF",e instanceof t?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=n)}return t.prototype.get=function(e){if(e===void 0&&(e=this.pos++),e>=this.enc.length)throw new Error("Requesting byte offset ".concat(e," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(e):this.enc[e]},t.prototype.hexByte=function(e){return this.hexDigits.charAt(e>>4&15)+this.hexDigits.charAt(e&15)},t.prototype.hexDump=function(e,n,i){for(var r="",s=e;s<n;++s)if(r+=this.hexByte(this.get(s)),i!==!0)switch(s&15){case 7:r+=" ";break;case 15:r+=` 86`;break;default:r+=" "}return r},t.prototype.isASCII=function(e,n){for(var i=e;i<n;++i){var r=this.get(i);if(r<32||r>176)return!1}return!0},t.prototype.parseStringISO=function(e,n){for(var i="",r=e;r<n;++r)i+=String.fromCharCode(this.get(r));return i},t.prototype.parseStringUTF=function(e,n){for(var i="",r=e;r<n;){var s=this.get(r++);s<128?i+=String.fromCharCode(s):s>191&&s<224?i+=String.fromCharCode((s&31)<<6|this.get(r++)&63):i+=String.fromCharCode((s&15)<<12|(this.get(r++)&63)<<6|this.get(r++)&63)}return i},t.prototype.parseStringBMP=function(e,n){for(var i="",r,s,a=e;a<n;)r=this.get(a++),s=this.get(a++),i+=String.fromCharCode(r<<8|s);return i},t.prototype.parseTime=function(e,n,i){var r=this.parseStringISO(e,n),s=(i?cG:dG).exec(r);return s?(i&&(s[1]=+s[1],s[1]+=+s[1]<70?2e3:1900),r=s[1]+"-"+s[2]+"-"+s[3]+" "+s[4],s[5]&&
vendor: 5,531 bytes, lines 86-90
86(r+=":"+s[5],s[6]&&(r+=":"+s[6],s[7]&&(r+="."+s[7]))),s[8]&&(r+=" UTC",s[8]!="Z"&&(r+=s[8],s[9]&&(r+=":"+s[9]))),r):"Unrecognized time: "+r},t.prototype.parseInteger=function(e,n){for(var i=this.get(e),r=i>127,s=r?255:0,a,l="";i==s&&++e<n;)i=this.get(e);if(a=n-e,a===0)return r?-1:0;if(a>4){for(l=i,a<<=3;!((+l^s)&128);)l=+l<<1,--a;l="("+a+` bit) 87`}r&&(i=i-256);for(var c=new Og(i),d=e+1;d<n;++d)c.mulAdd(256,this.get(d));return l+c.toString()},t.prototype.parseBitString=function(e,n,i){for(var r=this.get(e),s=(n-e-1<<3)-r,a="("+s+` bit) 88`,l="",c=e+1;c<n;++c){for(var d=this.get(c),u=c==n-1?r:0,h=7;h>=u;--h)l+=d>>h&1?"1":"0";if(l.length>i)return a+nm(l,i)}return a+l},t.prototype.parseOctetString=function(e,n,i){if(this.isASCII(e,n))return nm(this.parseStringISO(e,n),i);var r=n-e,s="("+r+` byte) 89`;i/=2,r>i&&(n=e+i);for(var a=e;a<n;++a)s+=this.hexByte(this.get(a));return r>i&&(s+=jF),s},t.prototype.parseOID=function(e,n,i){for(var r="",s=new Og,a=0,l=e;l<n;++l){var c=this.get(l);if(s.mulAdd(128,c&127),a+=7,!(c&128)){if(r==="")if(s=s.simplify(),s instanceof Og)s.sub(80),r="2."+s.toString();else{var d=s<80?s<40?0:1:2;r=d+"."+(s-d*40)}else r+="."+s.toString();if(r.length>i)return nm(r,i);s=new Og,a=0}}return a>0&&(r+=".incomplete"),r},t}(),uG=function(){function t(e,n,i,r,s){if(!(r instanceof L_))throw new Error("Invalid tag value.");this.stream=e,this.header=n,this.length=i,this.tag=r,this.sub=s}return t.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},t.prototype.content=function(e){if(this.tag===void 0)return null;e===void 0&&(e=1/0);var n=this.posContent(),i=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(n,n+i,e);switch(this.tag.tagNumber){case 1:return this.stream.get(n)===0?"false":"true";case 2:return this.stream.parseInteger(n,n+i);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(n,n+i,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(n,n+i,e);case 6:return this.stream.parseOID(n,n+i,e);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return nm(this.stream.parseStringUTF(n,n+i),e);case 18:case 19:case 20:case 21:case 22:case 26:return nm(this.stream.parseStringISO(n,n+i),e);case 30:return nm(this.stream.parseStringBMP(n,n+i),e);case 23:case 24:return this.stream.parseTime(n,n+i,this.tag.tagNumber==23)}return null},t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},t.prototype.toPrettyString=function(e){e===void 0&&(e="");var n=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(n+="+"),n+=this.length,this.tag.tagConstructed?n+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(n+=" (encapsulates)"),n+=` 90`,this.sub!==null){e+=" ";for(var i=0,r=this.sub.length;i<r;++i)n+=this.sub[i].toPrettyString(e)}return n},t.prototype.posStart=function(){return this.stream.pos},t.prototype.posContent=function(){return this.stream.pos+this.header},t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},t.decodeLength=function(e){var n=e.get(),i=n&127;if(i==n)return i;if(i>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(i===0)return null;n=0;for(var r=0;r<i;++r)n=n*256+e.get();return n},t.prototype.getHexStringValue=function(){var e=this.toHexString(),n=this.header*2,i=this.length*2;return e.substr(n,i)},t.decode=function(e){var n;e instanceof WC?n=e:n=new WC(e,0);var i=new WC(n),r=new L_(n),s=t.decodeLength(n),a=n.pos,l=a-i.pos,c=null,d=function(){var h=[];if(s!==null){for(var p=a+s;n.pos<p;)h[h.length]=t.decode(n);if(n.pos!=p)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var y=t.decode(n);if(y.tag.isEOC())break;h[h.length]=y}s=a-n.pos}catch(m){throw new Error("Exception while decoding undefined length content: "+m)}return h};if(r.tagConstructed)c=d();else if(r.isUniversal()&&(r.tagNumber==3||r.tagNumber==4))try{if(r.tagNumber==3&&n.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");c=d();for(var u=0;u<c.length;++u)if(c[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{c=null}if(c===null){if(s===null)throw new Error("We can't skip over an invali
90d tag with undefined length at offset "+a);n.pos=a+Math.abs(s)}return new t(i,l,s,r,c)},t}(),L_=function(){function t(e){var n=e.get();if(this.tagClass=n>>6,this.tagConstructed=(n&32)!==0,this.tagNumber=n&31,this.tagNumber==31){var i=new Og;do n=e.get(),i.mulAdd(128,n&127);while(n&128);this.tagNumber=i.simplify()}}return t.prototype.isUniversal=function(){return this.tagClass===0},t.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},t}(),yd,hG=0xdeadbeefcafe,F_=(hG&16777215)==15715070,Cr=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],pG=(1<<26)/Cr[Cr.length-1],Rt=function(){function t(e,n,i){e!=null&&(typeof e=="number"?this.fromNumber(e,n,i):n==null&&typeof e!="string"?this.fromString(e,256):this.fromString(e,n))}return t.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var n;if(e==16)n=4;else if(e==8)n=3;else if(e==2)n=1;else if(e==32)n=5;else if(e==4)n=2;else return this.toRadix(e);var i=(1<<n)-1,r,s=!1,a="",l=this.t,c=this.DB-l*this.DB%n;if(l-- >0)for(c<this.DB&&(r=this[l]>>c)>0&&(s=!0,a=tl(r));l>=0;)c<n?(r=(this[l]&(1<<c)-1)<<n-c,r|=this[--l]>>(c+=this.DB-n)):(r=this[l]>>(c-=n)&i,c<=0&&(c+=this.DB,--l)),r>0&&(s=!0),s&&(a+=tl(r));return s?a:"0"},t.prototype.negate=function(){var e=qt();return t.ZERO.subTo(this,e),e},t.prototype.abs=function(){return this.s<0?this.negate():this},t.prototype.compareTo=function(e){var n=this.s-e.s;if(n!=0)return n;var i=this.t;if(n=i-e.t,n!=0)return this.s<0?-n:n;for(;--i>=0;)if((n=this[i]-e[i])!=0)return n;return 0},t.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+e0(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=qt();return this.abs().divRemTo(e,null,n),this.s<0&&n.compareTo(t.ZERO)>0&&e.subTo(n,n),n},t.prototype.modPowInt=function(e,n){var i;return e<256||n.isEven()?i=new B_(n):i=new $_(n),this.exp(e,i)},t.prototype.clone=function(){var e=qt();return this.copyTo(e),e},t.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},t.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},t.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},t.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},t.prototype.toByteArray=function(){var e=this.t,n=[];n[0]=this.s;var i=this.DB-e*this.DB%8,r,s=0;if(e-- >0)for(i<this.DB&&(r=this[e]>>i)!=(this.s&this.DM)>>i&&(n[s++]=r|this.s<<this.DB-i);e>=0;)i<8?(r=(this[e]&(1<<i)-1)<<8-i,r|=this[--e]>>(i+=this.DB-8)):(r=this[e]>>(i-=8)&255,i<=0&&(i+=this.DB,--e)),r&128&&(r|=-256),s==0&&(this.s&128)!=(r&128)&&++s,(s>0||r!=this.s)&&(n[s++]=r);return n},t.prototype.equals=function(e){return this.compareTo(e)==0},t.prototype.min=function(e){return this.compareTo(e)<0?this:e},t.prototype.max=function(e){return this.compareTo(e)>0?this:e},t.prototype.and=function(e){var n=qt();return this.bitwiseTo(e,sG,n),n},t.prototype.or=function(e){var n=qt();return this.bitwiseTo(e,Zv,n),n},t.prototype.xor=function(e){var n=qt();return this.bitwiseTo(e,I_,n),n},t.prototype.andNot=function(e){var n=qt();return this.bitwiseTo(e,R_,n),n},t.prototype.not=function(){for(var e=qt(),n=0;n<this.t;++n)e[n]=this.DM&~this[n];return e.t=this.t,e.s=~this.s,e},t.prototype.shiftLeft=function(e){var n=qt();return e<0?this.rShiftTo(-e,n):this.lShiftTo(e,n),n},t.prototype.shiftRight=function(e){var n=qt();return e<0?this.lShiftTo(-e,n):this.rShiftTo(e,n),n},t.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(this[e]!=0)return e*this.DB+aG(this[e]);return this.s<0?this.t*this.DB:-1},t.prototype.bitCount=function(){for(var e=0,n=this.s&this.DM,i=0;i<this.t;++i)e+=oG(this[i]^n);return e},t.prototype.testBit=function(e){var n=Math.floor(e/this.DB);return n>=this.t?this.s!=0:(this[n]&1<<e%this.DB)!=0},t.prototype.setBit=function(e){return this.changeBit(e,Zv)},t.prototype.clearBit=function(e){return this.changeBit(e,R_)}
vendor: 38,566 bytes, lines 90-102
90,t.prototype.flipBit=function(e){return this.changeBit(e,I_)},t.prototype.add=function(e){var n=qt();return this.addTo(e,n),n},t.prototype.subtract=function(e){var n=qt();return this.subTo(e,n),n},t.prototype.multiply=function(e){var n=qt();return this.multiplyTo(e,n),n},t.prototype.divide=function(e){var n=qt();return this.divRemTo(e,n,null),n},t.prototype.remainder=function(e){var n=qt();return this.divRemTo(e,null,n),n},t.prototype.divideAndRemainder=function(e){var n=qt(),i=qt();return this.divRemTo(e,n,i),[n,i]},t.prototype.modPow=function(e,n){var i=e.bitLength(),r,s=vc(1),a;if(i<=0)return s;i<18?r=1:i<48?r=3:i<144?r=4:i<768?r=5:r=6,i<8?a=new B_(n):n.isEven()?a=new fG(n):a=new $_(n);var l=[],c=3,d=r-1,u=(1<<r)-1;if(l[1]=a.convert(this),r>1){var h=qt();for(a.sqrTo(l[1],h);c<=u;)l[c]=qt(),a.mulTo(h,l[c-2],l[c]),c+=2}var p=e.t-1,y,m=!0,w=qt(),k;for(i=e0(e[p])-1;p>=0;){for(i>=d?y=e[p]>>i-d&u:(y=(e[p]&(1<<i+1)-1)<<d-i,p>0&&(y|=e[p-1]>>this.DB+i-d)),c=r;!(y&1);)y>>=1,--c;if((i-=c)<0&&(i+=this.DB,--p),m)l[y].copyTo(s),m=!1;else{for(;c>1;)a.sqrTo(s,w),a.sqrTo(w,s),c-=2;c>0?a.sqrTo(s,w):(k=s,s=w,w=k),a.mulTo(w,l[y],s)}for(;p>=0&&!(e[p]&1<<i);)a.sqrTo(s,w),k=s,s=w,w=k,--i<0&&(i=this.DB-1,--p)}return a.revert(s)},t.prototype.modInverse=function(e){var n=e.isEven();if(this.isEven()&&n||e.signum()==0)return t.ZERO;for(var i=e.clone(),r=this.clone(),s=vc(1),a=vc(0),l=vc(0),c=vc(1);i.signum()!=0;){for(;i.isEven();)i.rShiftTo(1,i),n?((!s.isEven()||!a.isEven())&&(s.addTo(this,s),a.subTo(e,a)),s.rShiftTo(1,s)):a.isEven()||a.subTo(e,a),a.rShiftTo(1,a);for(;r.isEven();)r.rShiftTo(1,r),n?((!l.isEven()||!c.isEven())&&(l.addTo(this,l),c.subTo(e,c)),l.rShiftTo(1,l)):c.isEven()||c.subTo(e,c),c.rShiftTo(1,c);i.compareTo(r)>=0?(i.subTo(r,i),n&&s.subTo(l,s),a.subTo(c,a)):(r.subTo(i,r),n&&l.subTo(s,l),c.subTo(a,c))}if(r.compareTo(t.ONE)!=0)return t.ZERO;if(c.compareTo(e)>=0)return c.subtract(e);if(c.signum()<0)c.addTo(e,c);else return c;return c.signum()<0?c.add(e):c},t.prototype.pow=function(e){return this.exp(e,new mG)},t.prototype.gcd=function(e){var n=this.s<0?this.negate():this.clone(),i=e.s<0?e.negate():e.clone();if(n.compareTo(i)<0){var r=n;n=i,i=r}var s=n.getLowestSetBit(),a=i.getLowestSetBit();if(a<0)return n;for(s<a&&(a=s),a>0&&(n.rShiftTo(a,n),i.rShiftTo(a,i));n.signum()>0;)(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),(s=i.getLowestSetBit())>0&&i.rShiftTo(s,i),n.compareTo(i)>=0?(n.subTo(i,n),n.rShiftTo(1,n)):(i.subTo(n,i),i.rShiftTo(1,i));return a>0&&i.lShiftTo(a,i),i},t.prototype.isProbablePrime=function(e){var n,i=this.abs();if(i.t==1&&i[0]<=Cr[Cr.length-1]){for(n=0;n<Cr.length;++n)if(i[0]==Cr[n])return!0;return!1}if(i.isEven())return!1;for(n=1;n<Cr.length;){for(var r=Cr[n],s=n+1;s<Cr.length&&r<pG;)r*=Cr[s++];for(r=i.modInt(r);n<s;)if(r%Cr[n++]==0)return!1}return i.millerRabin(e)},t.prototype.copyTo=function(e){for(var n=this.t-1;n>=0;--n)e[n]=this[n];e.t=this.t,e.s=this.s},t.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},t.prototype.fromString=function(e,n){var i;if(n==16)i=4;else if(n==8)i=3;else if(n==256)i=8;else if(n==2)i=1;else if(n==32)i=5;else if(n==4)i=2;else{this.fromRadix(e,n);return}this.t=0,this.s=0;for(var r=e.length,s=!1,a=0;--r>=0;){var l=i==8?+e[r]&255:z_(e,r);if(l<0){e.charAt(r)=="-"&&(s=!0);continue}s=!1,a==0?this[this.t++]=l:a+i>this.DB?(this[this.t-1]|=(l&(1<<this.DB-a)-1)<<a,this[this.t++]=l>>this.DB-a):this[this.t-1]|=l<<a,a+=i,a>=this.DB&&(a-=this.DB)}i==8&&+e[0]&128&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),s&&t.ZERO.subTo(this,this)},t.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},t.prototype.dlShiftTo=function(e,n){var i;for(i=this.t-1;i>=0;--i)n[i+e]=this[i];for(i=e-1;i>=0;--i)n[i]=0;n.t=this.t+e,n.s=this.s},t.prototype.drShiftTo=function(e,n){for(var i=e;i<this.t;++i)n[i-e]=this[i];n.t=Math.max(this.t-e,0),n.s=this.s},t.prototype.lShiftTo=function(e,n){for(var i=e%this.DB,r=this.DB-i,s=(1<<r)-1,a=Math.floor(e/this.DB),l=this.s<<i&this.DM,c=this.t-1;c>=0;--c)n[c+a+1]=this[c]>>r|l,l=(this[c]&s)<<i;for(var c=a-1;c>=0;--c)n[c]=0;n[a]=l,n.t=this.t+a+1,n.s=this.s,n.clamp()},t.prototype.rShiftTo=function(e,n){n.s=this.s;var i=Math.floor(e/this.DB);if(i>=this.t){n.t=0;return}var r=e%this.DB,s=this.DB-r,a=(1<<r)-1;n[0]=this[i]>>r;for(var l=i+1;l<this.t;++l)n[l-i-1]|=(this[l]&a)<<s,n[l-i]=this[l]>>r;r>0&&(n[this.t-i-1]|=(this.s&a)<<s),n.t=this.t-i,n.clamp()},t.prototype.subTo=function(e,n){for(var i=0,r=0,s=Math.min(e.t,this.t);i<s;)r+=this[i]-e[i],n[i++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r-=e.s;i<this.t;)r+=this[i],n[i++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;i<e.t;)r-=e[i],n[i++]=r&this.DM,r>>=this.DB;r-=e.s}n.s=r<0?-1:0,r<-1?n[i++]=this.DV+r:r>0&&(n[i++]=r),n.t=i,n.clamp()},t.prototype.multiplyTo=function(e,n){var i=this.abs(),r=e.abs(),s=i.t;for(n.t=s+r.t;--s>=0;)n[s]=0;for(s=0;s<r.t;++s)n[s+i.t]=i.am(0,r[s],n,s,0,i.t);n.s=0,n.clamp(),this.s!=e.s&&t.ZERO.subTo(n,n)},t.prototype.squareTo=function(e){for(var n=this.abs(),i=e.t=2*n.t;--i>=0;)e[i]=0;for(i=0;i<n.t-1;++i){var r=n.am(i,n[i],e,2*i,0,1);(e[i+n.t]+=n.am(i+1,2*n[i],e,2*i+1,r,n.t-i-1))>=n.DV&&(e[i+n.t]-=n.DV,e[i+n.t+1]=1)}e.t>0&&(e[e.t-1]+=n.am(i,n[i],e,2*i,0,1)),e.s=0,e.clamp()},t.prototype.divRemTo=function(e,n,i){var r=e.abs();if(!(r.t<=0)){var s=this.abs();if(s.t<r.t){n!=null&&n.fromInt(0),i!=null&&this.copyTo(i);return}i==null&&(i=qt());var a=qt(),l=this.s,c=e.s,d=this.DB-e0(r[r.t-1]);d>0?(r.lShiftTo(d,a),s.lShiftTo(d,i)):(r.copyTo(a),s.copyTo(i));var u=a.t,h=a[u-1];if(h!=0){var p=h*(1<<this.F1)+(u>1?a[u-2]>>this.F2:0),y=this.FV/p,m=(1<<this.F1)/p,w=1<<this.F2,k=i.t,b=k-u,x=n??qt();for(a.dlShiftTo(b,x),i.compareTo(x)>=0&&(i[i.t++]=1,i.subTo(x,i)),t.ONE.dlShiftTo(u,x),x.subTo(a,a);a.t<u;)a[a.t++]=0;for(;--b>=0;){var v=i[--k]==h?this.DM:Math.floor(i[k]*y+(i[k-1]+w)*m);if((i[k]+=a.am(0,v,i,b,0,u))<v)for(a.dlShiftTo(b,x),i.subTo(x,i);i[k]<--v;)i.subTo(x,i)}n!=null&&(i.drShiftTo(u,n),l!=c&&t.ZERO.subTo(n,n)),i.t=u,i.clamp(),d>0&&i.rShiftTo(d,i),l<0&&t.ZERO.subTo(i,i)}}},t.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(!(e&1))return 0;var n=e&3;return n=n*(2-(e&15)*n)&15,n=n*(2-(e&255)*n)&255,n=n*(2-((e&65535)*n&65535))&65535,n=n*(2-e*n%this.DV)%this.DV,n>0?this.DV-n:-n},t.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},t.prototype.exp=function(e,n){if(e>4294967295||e<1)return t.ONE;var i=qt(),r=qt(),s=n.convert(this),a=e0(e)-1;for(s.copyTo(i);--a>=0;)if(n.sqrTo(i,r),(e&1<<a)>0)n.mulTo(r,s,i);else{var l=i;i=r,r=l}return n.revert(i)},t.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},t.prototype.toRadix=function(e){if(e==null&&(e=10),this.signum()==0||e<2||e>36)return"0";var n=this.chunkSize(e),i=Math.pow(e,n),r=vc(i),s=qt(),a=qt(),l="";for(this.divRemTo(r,s,a);s.signum()>0;)l=(i+a.intValue()).toString(e).substr(1)+l,s.divRemTo(r,s,a);return a.intValue().toString(e)+l},t.prototype.fromRadix=function(e,n){this.fromInt(0),n==null&&(n=10);for(var i=this.chunkSize(n),r=Math.pow(n,i),s=!1,a=0,l=0,c=0;c<e.length;++c){var d=z_(e,c);if(d<0){e.charAt(c)=="-"&&this.signum()==0&&(s=!0);continue}l=n*l+d,++a>=i&&(this.dMultiply(r),this.dAddOffset(l,0),a=0,l=0)}a>0&&(this.dMultiply(Math.pow(n,a)),this.dAddOffset(l,0)),s&&t.ZERO.subTo(this,this)},t.prototype.fromNumber=function(e,n,i){if(typeof n=="number")if(e<2)this.fromInt(1);else for(this.fromNumber(e,i),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),Zv,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(t.ONE.shiftLeft(e-1),this);else{var r=[],s=e&7;r.length=(e>>3)+1,n.nextBytes(r),s>0?r[0]&=(1<<s)-1:r[0]=0,this.fromString(r,256)}},t.prototype.bitwiseTo=function(e,n,i){var r,s,a=Math.min(e.t,this.t);for(r=0;r<a;++r)i[r]=n(this[r],e[r]);if(e.t<this.t){for(s=e.s&this.DM,r=a;r<this.t;++r)i[r]=n(this[r],s);i.t=this.t}else{for(s=this.s&this.DM,r=a;r<e.t;++r)i[r]=n(s,e[r]);i.t=e.t}i.s=n(this.s,e.s),i.clamp()},t.prototype.changeBit=function(e,n){var i=t.ONE.shiftLeft(e);return this.bitwiseTo(i,n,i),i},t.prototype.addTo=function(e,n){for(var i=0,r=0,s=Math.min(e.t,this.t);i<s;)r+=this[i]+e[i],n[i++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r+=e.s;i<this.t;)r+=this[i],n[i++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;i<e.t;)r+=e[i],n[i++]=r&this.DM,r>>=this.DB;r+=e.s}n.s=r<0?-1:0,r>0?n[i++]=r:r<-1&&(n[i++]=this.DV+r),n.t=i,n.clamp()},t.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},t.prototype.dAddOffset=function(e,n){if(e!=0){for(;this.t<=n;)this[this.t++]=0;for(this[n]+=e;this[n]>=this.DV;)this[n]-=this.DV,++n>=this.t&&(this[this.t++]=0),++this[n]}},t.prototype.multiplyLowerTo=function(e,n,i){var r=Math.min(this.t+e.t,n);for(i.s=0,i.t=r;r>0;)i[--r]=0;for(var s=i.t-this.t;r<s;++r)i[r+this.t]=this.am(0,e[r],i,r,0,this.t);for(var s=Math.min(e.t,n);r<s;++r)this.am(0,e[r],i,r,0,n-r);i.clamp()},t.prototype.multiplyUpperTo=function(e,n,i){--n;var r=i.t=this.t+e.t-n;for(i.s=0;--r>=0;)i[r]=0;for(r=Math.max(n-this.t,0);r<e.t;++r)i[this.t+r-n]=this.am(n-r,e[r],i,0,0,this.t+r-n);i.clamp(),i.drShiftTo(1,i)},t.prototype.modInt=function(e){if(e<=0)return 0;var n=this.DV%e,i=this.s<0?e-1:0;if(this.t>0)if(n==0)i=this[0]%e;else for(var r=this.t-1;r>=0;--r)i=(n*i+this[r])%e;return i},t.prototype.millerRabin=function(e){var n=this.subtract(t.ONE),i=n.getLowestSetBit();if(i<=0)return!1;var r=n.shiftRight(i);e=e+1>>1,e>Cr.length&&(e=Cr.length);for(var s=qt(),a=0;a<e;++a){s.fromInt(Cr[Math.floor(Math.random()*Cr.length)]);var l=s.modPow(r,this);if(l.compareTo(t.ONE)!=0&&l.compareTo(n)!=0){for(var c=1;c++<i&&l.compareTo(n)!=0;)if(l=l.modPowInt(2,this),l.compareTo(t.ONE)==0)return!1;if(l.compareTo(n)!=0)return!1}}return!0},t.prototype.square=function(){var e=qt();return this.squareTo(e),e},t.prototype.gcda=function(e,n){var i=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(i.compareTo(r)<0){var s=i;i=r,r=s}var a=i.getLowestSetBit(),l=r.getLowestSetBit();if(l<0){n(i);return}a<l&&(l=a),l>0&&(i.rShiftTo(l,i),r.rShiftTo(l,r));var c=function(){(a=i.getLowestSetBit())>0&&i.rShiftTo(a,i),(a=r.getLowestSetBit())>0&&r.rShiftTo(a,r),i.compareTo(r)>=0?(i.subTo(r,i),i.rShiftTo(1,i)):(r.subTo(i,r),r.rShiftTo(1,r)),i.signum()>0?setTimeout(c,0):(l>0&&r.lShiftTo(l,r),setTimeout(function(){n(r)},0))};setTimeout(c,10)},t.prototype.fromNumberAsync=function(e,n,i,r){if(typeof n=="number")if(e<2)this.fromInt(1);else{this.fromNumber(e,i),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),Zv,this),this.isEven()&&this.dAddOffset(1,0);var s=this,a=function(){s.dAddOffset(2,0),s.bitLength()>e&&s.subTo(t.ONE.shiftLeft(e-1),s),s.isProbablePrime(n)?setTimeout(function(){r()},0):setTimeout(a,0)};setTimeout(a,0)}else{var l=[],c=e&7;l.length=(e>>3)+1,n.nextBytes(l),c>0?l[0]&=(1<<c)-1:l[0]=0,this.fromString(l,256)}},t}(),mG=function(){function t(){}return t.prototype.convert=function(e){return e},t.prototype.revert=function(e){return e},t.prototype.mulTo=function(e,n,i){e.multiplyTo(n,i)},t.prototype.sqrTo=function(e,n){e.squareTo(n)},t}(),B_=function(){function t(e){this.m=e}return t.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},t.prototype.revert=function(e){return e},t.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},t.prototype.mulTo=function(e,n,i){e.multiplyTo(n,i),this.reduce(i)},t.prototype.sqrTo=function(e,n){e.squareTo(n),this.reduce(n)},t}(),$_=function(){function t(e){this.m=e,this.mp=e.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}return t.prototype.convert=function(e){var n=qt();return e.abs().dlShiftTo(this.m.t,n),n.divRemTo(this.m,null,n),e.s<0&&n.compareTo(Rt.ZERO)>0&&this.m.subTo(n,n),n},t.prototype.revert=function(e){var n=qt();return e.copyTo(n),this.reduce(n),n},t.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var n=0;n<this.m.t;++n){var i=e[n]&32767,r=i*this.mpl+((i*this.mph+(e[n]>>15)*this.mpl&this.um)<<15)&e.DM;for(i=n+this.m.t,e[i]+=this.m.am(0,r,e,n,0,this.m.t);e[i]>=e.DV;)e[i]-=e.DV,e[++i]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},t.prototype.mulTo=function(e,n,i){e.multiplyTo(n,i),this.reduce(i)},t.prototype.sqrTo=function(e,n){e.squareTo(n),this.reduce(n)},t}(),fG=function(){function t(e){this.m=e,this.r2=qt(),this.q3=qt(),Rt.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return t.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var n=qt();return e.copyTo(n),this.reduce(n),n},t.prototype.revert=function(e){return e},t.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},t.prototype.mulTo=function(e,n,i){e.multiplyTo(n,i),this.reduce(i)},t.prototype.sqrTo=function(e,n){e.squareTo(n),this.reduce(n)},t}();function qt(){return new Rt(null)}function Qn(t,e){return new Rt(t,e)}var H_=typeof navigator<"u";H_&&F_&&navigator.appName=="Microsoft Internet Explorer"?(Rt.prototype.am=function(e,n,i,r,s,a){for(var l=n&32767,c=n>>15;--a>=0;){var d=this[e]&32767,u=this[e++]>>15,h=c*d+u*l;d=l*d+((h&32767)<<15)+i[r]+(s&1073741823),s=(d>>>30)+(h>>>15)+c*u+(s>>>30),i[r++]=d&1073741823}return s},yd=30):H_&&F_&&navigator.appName!="Netscape"?(Rt.prototype.am=function(e,n,i,r,s,a){for(;--a>=0;){var l=n*this[e++]+i[r]+s;s=Math.floor(l/67108864),i[r++]=l&67108863}return s},yd=26):(Rt.prototype.am=function(e,n,i,r,s,a){for(var l=n&16383,c=n>>14;--a>=0;){var d=this[e]&16383,u=this[e++]>>14,h=c*d+u*l;d=l*d+((h&16383)<<14)+i[r]+s,s=(d>>28)+(h>>14)+c*u,i[r++]=d&268435455}return s},yd=28);Rt.prototype.DB=yd;Rt.prototype.DM=(1<<yd)-1;Rt.prototype.DV=1<<yd;var HA=52;Rt.prototype.FV=Math.pow(2,HA);Rt.prototype.F1=HA-yd;Rt.prototype.F2=2*yd-HA;var eS=[],Uf,ua;Uf=48;for(ua=0;ua<=9;++ua)eS[Uf++]=ua;Uf=97;for(ua=10;ua<36;++ua)eS[Uf++]=ua;Uf=65;for(ua=10;ua<36;++ua)eS[Uf++]=ua;function z_(t,e){var n=eS[t.charCodeAt(e)];return n??-1}function vc(t){var e=qt();return e.fromInt(t),e}function e0(t){var e=1,n;return(n=t>>>16)!=0&&(t=n,e+=16),(n=t>>8)!=0&&(t=n,e+=8),(n=t>>4)!=0&&(t=n,e+=4),(n=t>>2)!=0&&(t=n,e+=2),(n=t>>1)!=0&&(t=n,e+=1),e}Rt.ZERO=vc(0);Rt.ONE=vc(1);var gG=function(){function t(){this.i=0,this.j=0,this.S=[]}return t.prototype.init=function(e){var n,i,r;for(n=0;n<256;++n)this.S[n]=n;for(i=0,n=0;n<256;++n)i=i+this.S[n]+e[n%e.length]&255,r=this.S[n],this.S[n]=this.S[i],this.S[i]=r;this.i=0,this.j=0},t.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]},t}();function xG(){return new gG}var TF=256,t0,id=null,Va;if(id==null){id=[],Va=0;var n0=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var GC=new Uint32Array(256);for(window.crypto.getRandomValues(GC),n0=0;n0<GC.length;++n0)id[Va++]=GC[n0]&255}var i0=0,r0=function(t){if(i0=i0||0,i0>=256||Va>=TF){window.removeEventListener?window.removeEventListener("mousemove",r0,!1):window.detachEvent&&window.detachEvent("onmousemove",r0);return}try{var e=t.x+t.y;id[Va++]=e&255,i0+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",r0,!1):window.attachEvent&&window.attachEvent("onmousemove",r0))}function yG(){if(t0==null){for(t0=xG();Va<TF;){var t=Math.floor(65536*Math.random());id[Va++]=t&255}for(t0.init(id),Va=0;Va<id.length;++Va)id[Va]=0;Va=0}return t0.next()}var Yj=function(){function t(){}return t.prototype.nextBytes=function(e){for(var n=0;n<e.length;++n)e[n]=yG()},t}();function bG(t,e){if(e<t.length+22)return console.error("Message too long for RSA"),null;for(var n=e-t.length-6,i="",r=0;r<n;r+=2)i+="ff";var s="0001"+i+"00"+t;return Qn(s,16)}function vG(t,e){if(e<t.length+11)return console.error("Message too long for RSA"),null;for(var n=[],i=t.length-1;i>=0&&e>0;){var r=t.charCodeAt(i--);r<128?n[--e]=r:r>127&&r<2048?(n[--e]=r&63|128,n[--e]=r>>6|192):(n[--e]=r&63|128,n[--e]=r>>6&63|128,n[--e]=r>>12|224)}n[--e]=0;for(var s=new Yj,a=[];e>2;){for(a[0]=0;a[0]==0;)s.nextBytes(a);n[--e]=a[0]}return n[--e]=2,n[--e]=0,new Rt(n)}var wG=function(){function t(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return t.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},t.prototype.doPrivate=function(e){if(this.p==null||this.q==null)return e.modPow(this.d,this.n);for(var n=e.mod(this.p).modPow(this.dmp1,this.p),i=e.mod(this.q).modPow(this.dmq1,this.q);n.compareTo(i)<0;)n=n.add(this.p);return n.subtract(i).multiply(this.coeff).mod(this.p).multiply(this.q).add(i)},t.prototype.setPublic=function(e,n){e!=null&&n!=null&&e.length>0&&n.length>0?(this.n=Qn(e,16),this.e=parseInt(n,16)):console.error("Invalid RSA public key")},t.prototype.encrypt=function(e){var n=this.n.bitLength()+7>>3,i=vG(e,n);if(i==null)return null;var r=this.doPublic(i);if(r==null)return null;for(var s=r.toString(16),a=s.length,l=0;l<n*2-a;l++)s="0"+s;return s},t.prototype.setPrivate=function(e,n,i){e!=null&&n!=null&&e.length>0&&n.length>0?(this.n=Qn(e,16),this.e=parseInt(n,16),this.d=Qn(i,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(e,n,i,r,s,a,l,c){e!=null&&n!=null&&e.length>0&&n.length>0?(this.n=Qn(e,16),this.e=parseInt(n,16),this.d=Qn(i,16),this.p=Qn(r,16),this.q=Qn(s,16),this.dmp1=Qn(a,16),this.dmq1=Qn(l,16),this.coeff=Qn(c,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(e,n){var i=new Yj,r=e>>1;this.e=parseInt(n,16);for(var s=new Rt(n,16);;){for(;this.p=new Rt(e-r,1,i),!(this.p.subtract(Rt.ONE).gcd(s).compareTo(Rt.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new Rt(r,1,i),!(this.q.subtract(Rt.ONE).gcd(s).compareTo(Rt.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var a=this.p;this.p=this.q,this.q=a}var l=this.p.subtract(Rt.ONE),c=this.q.subtract(Rt.ONE),d=l.multiply(c);if(d.gcd(s).compareTo(Rt.ONE)==0){this.n=this.p.multiply(this.q),this.d=s.modInverse(d),this.dmp1=this.d.mod(l),this.dmq1=this.d.mod(c),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(e){var n=Qn(e,16),i=this.doPrivate(n);return i==null?null:kG(i,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(e,n,i){var r=new Yj,s=e>>1;this.e=parseInt(n,16);var a=new Rt(n,16),l=this,c=function(){var d=function(){if(l.p.compareTo(l.q)<=0){var p=l.p;l.p=l.q,l.q=p}var y=l.p.subtract(Rt.ONE),m=l.q.subtract(Rt.ONE),w=y.multiply(m);w.gcd(a).compareTo(Rt.ONE)==0?(l.n=l.p.multiply(l.q),l.d=a.modInverse(w),l.dmp1=l.d.mod(y),l.dmq1=l.d.mod(m),l.coeff=l.q.modInverse(l.p),setTimeout(function(){i()},0)):setTimeout(c,0)},u=function(){l.q=qt(),l.q.fromNumberAsync(s,1,r,function(){l.q.subtract(Rt.ONE).gcda(a,function(p){p.compareTo(Rt.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(d,0):setTimeout(u,0)})})},h=function(){l.p=qt(),l.p.fromNumberAsync(e-s,1,r,function(){l.p.subtract(Rt.ONE).gcda(a,function(p){p.compareTo(Rt.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(h,0)})})};setTimeout(h,0)};setTimeout(c,0)},t.prototype.sign=function(e,n,i){var r=SG(i),s=r+n(e).toString(),a=bG(s,this.n.bitLength()/4);if(a==null)return null;var l=this.doPrivate(a);if(l==null)return null;var c=l.toString(16);return c.length&1?"0"+c:c},t.prototype.verify=function(e,n,i){var r=Qn(n,16),s=this.doPublic(r);if(s==null)return null;var a=s.toString(16).replace(/^1f+00/,""),l=CG(a);return l==i(e).toString()},t}();function kG(t,e){for(var n=t.toByteArray(),i=0;i<n.length&&n[i]==0;)++i;if(n.length-i!=e-1||n[i]!=2)return null;for(++i;n[i]!=0;)if(++i>=n.length)return null;for(var r="";++i<n.length;){var s=n[i]&255;s<128?r+=String.fromCharCode(s):s>191&&s<224?(r+=String.fromCharCode((s&31)<<6|n[i+1]&63),++i):(r+=String.fromCharCode((s&15)<<12|(n[i+1]&63)<<6|n[i+2]&63),i+=2)}return r}var G0={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function SG(t){return G0[t]||""}function CG(t){for(var e in G0)if(G0.hasOwnProperty(e)){var n=G0[e],i=n.length;if(t.substr(0,i)==n)return t.substr(i)}return t}/*! 91Copyright (c) 2011, Yahoo! Inc. All rights reserved. 92Code licensed under the BSD License: 93http://developer.yahoo.com/yui/license.html 94version: 2.9.0 95*/var di={};di.lang={extend:function(t,e,n){if(!e||!t)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var i=function(){};if(i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t,t.superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e),n){var r;for(r in n)t.prototype[r]=n[r];var s=function(){},a=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(s=function(l,c){for(r=0;r<a.length;r=r+1){var d=a[r],u=c[d];typeof u=="function"&&u!=Object.prototype[d]&&(l[d]=u)}})}catch{}s(t.prototype,n)}}};/** 96 * @fileOverview 97 * @name asn1-1.0.js 98 * @author Kenji Urushima [email protected] 99 * @version asn1 1.0.13 (2017-Jun-02) 100 * @since jsrsasign 2.1 101 * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a> 102 */var Be={};(typeof Be.asn1>"u"||!Be.asn1)&&(Be.asn1={});Be.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if(e.substr(0,1)!="-")e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var n=e.substr(1),i=n.length;i%2==1?i+=1:e.match(/^[0-7]/)||(i+=2);for(var r="",s=0;s<i;s++)r+="f";var a=new Rt(r,16),l=a.xor(t).add(Rt.ONE);e=l.toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=Be,n=e.asn1,i=n.DERBoolean,r=n.DERInteger,s=n.DERBitString,a=n.DEROctetString,l=n.DERNull,c=n.DERObjectIdentifier,d=n.DEREnumerated,u=n.DERUTF8String,h=n.DERNumericString,p=n.DERPrintableString,y=n.DERTeletexString,m=n.DERIA5String,w=n.DERUTCTime,k=n.DERGeneralizedTime,b=n.DERSequence,x=n.DERSet,v=n.DERTaggedObject,E=n.ASN1Util.newObject,N=Object.keys(t);if(N.length!=1)throw"key of param shall be only one.";var S=N[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+S+":")==-1)throw"undefined key: "+S;if(S=="bool")return new i(t[S]);if(S=="int")return new r(t[S]);if(S=="bitstr")return new s(t[S]);if(S=="octstr")return new a(t[S]);if(S=="null")return new l(t[S]);if(S=="oid")return new c(t[S]);if(S=="enum")return new d(t[S]);if(S=="utf8str")return new u(t[S]);if(S=="numstr")return new h(t[S]);if(S=="prnstr")return new p(t[S]);if(S=="telstr")return new y(t[S]);if(S=="ia5str")return new m(t[S]);if(S=="utctime")return new w(t[S]);if(S=="gentime")return new k(t[S]);if(S=="seq"){for(var _=t[S],$=[],V=0;V<_.length;V++){var I=E(_[V]);$.push(I)}return new b({array:$})}if(S=="set"){for(var _=t[S],$=[],V=0;V<_.length;V++){var I=E(_[V]);$.push(I)}return new x({array:$})}if(S=="tag"){var A=t[S];if(Object.prototype.toString.call(A)==="[object Array]"&&A.length==3){var L=E(A[2]);return new v({tag:A[0],explicit:A[1],obj:L})}else{var T={};if(A.explicit!==void 0&&(T.explicit=A.explicit),A.tag!==void 0&&(T.tag=A.tag),A.obj===void 0)throw"obj shall be specified for 'tag'.";return T.obj=E(A.obj),new v(T)}}},this.jsonToASN1HEX=function(t){var e=this.newObject(t);return e.getEncodedHex()}};Be.asn1.ASN1Util.oidHexToInt=function(t){for(var r="",e=parseInt(t.substr(0,2),16),n=Math.floor(e/40),i=e%40,r=n+"."+i,s="",a=2;a<t.length;a+=2){var l=parseInt(t.substr(a,2),16),c=("00000000"+l.toString(2)).slice(-8);if(s=s+c.substr(1,7),c.substr(0,1)=="0"){var d=new Rt(s,2);r=r+"."+d.toString(10),s=""}}return r};Be.asn1.ASN1Util.oidIntToHex=function(t){var e=function(l){var c=l.toString(16);return c.length==1&&(c="0"+c),c},n=function(l){var c="",d=new Rt(l,10),u=d.toString(2),h=7-u.length%7;h==7&&(h=0);for(var p="",y=0;y<h;y++)p+="0";u=p+u;for(var y=0;y<u.length-1;y+=7){var m=u.substr(y,7);y!=u.length-7&&(m="1"+m),c+=e(parseInt(m,2))}return c};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var i="",r=t.split("."),s=parseInt(r[0])*40+parseInt(r[1]);i+=e(s),r.splice(0,2);for(var a=0;a<r.length;a++)i+=n(r[a]);return i};Be.asn1.ASN1Object=function(){var t="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+t.length+",v="+this.hV;var e=this.hV.length/2,n=e.toString(16);if(n.length%2==1&&(n="0"+n),e<128)return n;var i=n.length/2;if(i>15)throw"ASN.1 length too long to represent by 8x: n = "+e.toString(16);var r=128+i;return r.toString(16)+n},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}};Be.asn1.DERAbstractString=function(t){Be.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(this.s)},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof t<"u"&&(typeof t=="string"?this.setString(t):typeof t.str<"u"?this.setString(t.str):typeof t.hex<"u"&&this.setStringHex(t.hex))};di.lang.extend(Be.asn1.DERAbstractString,Be.asn1.ASN1Object);Be.asn1.DERAbstractTime=function(t){Be.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(e){utc=e.getTime()+e.getTimezoneOffset()*6e4;var n=new Date(utc);return n},this.formatDate=function(e,n,i){var r=this.zeroPadding,s=this.localDateToUTC(e),a=String(s.getFullYear());n=="utc"&&(a=a.substr(2,2));var l=r(String(s.getMonth()+1),2),c=r(String(s.getDate()),2),d=r(String(s.getHours()),2),u=r(String(s.getMinutes()),2),h=r(String(s.getSeconds()),2),p=a+l+c+d+u+h;if(i===!0){var y=s.getMilliseconds();if(y!=0){var m=r(String(y),3);m=m.replace(/[0]+$/,""),p=p+"."+m}}return p+"Z"},this.zeroPadding=function(e,n){return e.length>=n?e:new Array(n-e.length+1).join("0")+e},this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(e)},this.setByDateValue=function(e,n,i,r,s,a){var l=new Date(Date.UTC(e,n-1,i,r,s,a,0));this.setByDate(l)},this.getFreshValueHex=function(){return this.hV}};di.lang.extend(Be.asn1.DERAbstractTime,Be.asn1.ASN1Object);Be.asn1.DERAbstractStructured=function(t){Be.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,typeof t<"u"&&typeof t.array<"u"&&(this.asn1Array=t.array)};di.lang.extend(Be.asn1.DERAbstractStructured,Be.asn1.ASN1Object);Be.asn1.DERBoolean=function(){Be.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"};di.lang.extend(Be.asn1.DERBoolean,Be.asn1.ASN1Object);Be.asn1.DERInteger=function(t){Be.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=Be.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var n=new Rt(String(e),10);this.setByBigInteger(n)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof t<"u"&&(typeof t.bigint<"u"?this.setByBigInteger(t.bigint):typeof t.int<"u"?this.setByInteger(t.int):typeof t=="number"?this.setByInteger(t):typeof t.hex<"u"&&this.setValueHex(t.hex))};di.lang.extend(Be.asn1.DERInteger,Be.asn1.ASN1Object);Be.asn1.DERBitString=function(t){if(t!==void 0&&typeof t.obj<"u"){var e=Be.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}Be.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(n){this.hTLV=null,this.isModified=!0,this.hV=n},this.setUnusedBitsAndHexValue=function(n,i){if(n<0||7<n)throw"unused bits shall be from 0 to 7: u = "+n;var r="0"+n;this.hTLV=null,this.isModified=!0,this.hV=r+i},this.setByBinaryString=function(n){n=n.replace(/0+$/,"");var i=8-n.length%8;i==8&&(i=0);for(var r=0;r<=i;r++)n+="0";for(var s="",r=0;r<n.length-1;r+=8){var a=n.substr(r,8),l=parseInt(a,2).toString(16);l.length==1&&(l="0"+l),s+=l}this.hTLV=null,this.isModified=!0,this.hV="0"+i+s},this.setByBooleanArray=function(n){for(var i="",r=0;r<n.length;r++)n[r]==!0?i+="1":i+="0";this.setByBinaryString(i)},this.newFalseArray=function(n){for(var i=new Array(n),r=0;r<n;r++)i[r]=!1;return i},this.getFreshValueHex=function(){return this.hV},typeof t<"u"&&(typeof t=="string"&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):typeof t.hex<"u"?this.setHexValueIncludingUnusedBits(t.hex):typeof t.bin<"u"?this.setByBinaryString(t.bin):typeof t.array<"u"&&this.setByBooleanArray(t.array))};di.lang.extend(Be.asn1.DERBitString,Be.asn1.ASN1Object);Be.asn1.DEROctetString=function(t){if(t!==void 0&&typeof t.obj<"u"){var e=Be.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}Be.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"};di.lang.extend(Be.asn1.DEROctetString,Be.asn1.DERAbstractString);Be.asn1.DERNull=function(){Be.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"};di.lang.extend(Be.asn1.DERNull,Be.asn1.ASN1Object);Be.asn1.DERObjectIdentifier=function(t){var e=function(i){var r=i.toString(16);return r.length==1&&(r="0"+r),r},n=function(i){var r="",s=new Rt(i,10),a=s.toString(2),l=7-a.length%7;l==7&&(l=0);for(var c="",d=0;d<l;d++)c+="0";a=c+a;for(var d=0;d<a.length-1;d+=7){var u=a.substr(d,7);d!=a.length-7&&(u="1"+u),r+=e(parseInt(u,2))}return r};Be.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(i){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueOidString=function(i){if(!i.match(/^[0-9.]+$/))throw"malformed oid string: "+i;var r="",s=i.split("."),a=parseInt(s[0])*40+parseInt(s[1]);r+=e(a),s.splice(0,2);for(var l=0;l<s.length;l++)r+=n(s[l]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(i){var r=Be.asn1.x509.OID.name2oid(i);if(r!=="")this.setValueOidString(r);else throw"DERObjectIdentifier oidName undefined: "+i},this.getFreshValueHex=function(){return this.hV},t!==void 0&&(typeof t=="string"?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):t.oid!==void 0?this.setValueOidString(t.oid):t.hex!==void 0?this.setValueHex(t.hex):t.name!==void 0&&this.setValueName(t.name))};di.lang.extend(Be.asn1.DERObjectIdentifier,Be.asn1.ASN1Object);Be.asn1.DEREnumerated=function(t){Be.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=Be.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var n=new Rt(String(e),10);this.setByBigInteger(n)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof t<"u"&&(typeof t.int<"u"?this.setByInteger(t.int):typeof t=="number"?this.setByInteger(t):typeof t.hex<"u"&&this.setValueHex(t.hex))};di.lang.extend(Be.asn1.DEREnumerated,Be.asn1.ASN1Object);Be.asn1.DERUTF8String=function(t){Be.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"};di.lang.extend(Be.asn1.DERUTF8String,Be.asn1.DERAbstractString);Be.asn1.DERNumericString=function(t){Be.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"};di.lang.extend(Be.asn1.DERNumericString,Be.asn1.DERAbstractString);Be.asn1.DERPrintableString=function(t){Be.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"};di.lang.extend(Be.asn1.DERPrintableString,Be.asn1.DERAbstractString);Be.asn1.DERTeletexString=function(t){Be.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"};di.lang.extend(Be.asn1.DERTeletexString,Be.asn1.DERAbstractString);Be.asn1.DERIA5String=function(t){Be.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"};di.lang.extend(Be.asn1.DERIA5String,Be.asn1.DERAbstractString);Be.asn1.DERUTCTime=function(t){Be.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},t!==void 0&&(t.str!==void 0?this.setString(t.str):typeof t=="string"&&t.match(/^[0-9]{12}Z$/)?this.setString(t):t.hex!==void 0?this.setStringHex(t.hex):t.date!==void 0&&this.setByDate(t.date))};di.lang.extend(Be.asn1.DERUTCTime,Be.asn1.DERAbstractTime);Be.asn1.DERGeneralizedTime=function(t){Be.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},t!==void 0&&(t.str!==void 0?this.setString(t.str):typeof t=="string"&&t.match(/^[0-9]{14}Z$/)?this.setString(t):t.hex!==void 0?this.setStringHex(t.hex):t.date!==void 0&&this.setByDate(t.date),t.millis===!0&&(this.withMillis=!0))};di.lang.extend(Be.asn1.DERGeneralizedTime,Be.asn1.DERAbstractTime);Be.asn1.DERSequence=function(t){Be.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var e="",n=0;n<this.asn1Array.length;n++){var i=this.asn1Array[n];e+=i.getEncodedHex()}return this.hV=e,this.hV}};di.lang.extend(Be.asn1.DERSequence,Be.asn1.DERAbstractStructured);Be.asn1.DERSet=function(t){Be.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var e=new Array,n=0;n<this.asn1Array.length;n++){var i=this.asn1Array[n];e.push(i.getEncodedHex())}return this.sortFlag==!0&&e.sort(),this.hV=e.join(""),this.hV},typeof t<"u"&&typeof t.sortflag<"u"&&t.sortflag==!1&&(this.sortFlag=!1)};di.lang.extend(Be.asn1.DERSet,Be.asn1.DERAbstractStructured);Be.asn1.DERTaggedObject=function(t){Be.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(e,n,i){this.hT=n,this.isExplicit=e,this.asn1Object=i,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=i.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,n),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof t<"u"&&(typeof t.tag<"u"&&(this.hT=t.tag),typeof t.explicit<"u"&&(this.isExplicit=t.explicit),typeof t.obj<"u"&&(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))};di.lang.extend(Be.asn1.DERTaggedObject,Be.asn1.ASN1Object);var jG=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(i[s]=r[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),V_=function(t){jG(e,t);function e(n){var i=t.call(this)||this;return n&&(typeof n=="string"?i.parseKey(n):(e.hasPrivateKeyProperty(n)||e.hasPublicKeyProperty(n))&&i.parsePropertiesFrom(n)),i}return e.prototype.parseKey=function(n){try{var i=0,r=0,s=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,a=s.test(n)?lG.decode(n):Kj.unarmor(n),l=uG.decode(a);if(l.sub.length===3&&(l=l.sub[2].sub[0]),l.sub.length===9){i=l.sub[1].getHexStringValue(),this.n=Qn(i,16),r=l.sub[2].getHexStringValue(),this.e=parseInt(r,16);var c=l.sub[3].getHexStringValue();this.d=Qn(c,16);var d=l.sub[4].getHexStringValue();this.p=Qn(d,16);var u=l.sub[5].getHexStringValue();this.q=Qn(u,16);var h=l.sub[6].getHexStringValue();this.dmp1=Qn(h,16);var p=l.sub[7].getHexStringValue();this.dmq1=Qn(p,16);var y=l.sub[8].getHexStringValue();this.coeff=Qn(y,16)}else if(l.sub.length===2)if(l.sub[0].sub){var m=l.sub[1],w=m.sub[0];i=w.sub[0].getHexStringValue(),this.n=Qn(i,16),r=w.sub[1].getHexStringValue(),this.e=parseInt(r,16)}else i=l.sub[0].getHexStringValue(),this.n=Qn(i,16),r=l.sub[1].getHexStringValue(),this.e=parseInt(r,16);else return!1;return!0}catch{return!1}},e.prototype.getPrivateBaseKey=function(){var n={array:[new Be.asn1.DERInteger({int:0}),new Be.asn1.DERInteger({bigint:this.n}),new Be.asn1.DERInteger({int:this.e}),new Be.asn1.DERInteger({bigint:this.d}),new Be.asn1.DERInteger({bigint:this.p}),new Be.asn1.DERInteger({bigint:this.q}),new Be.asn1.DERInteger({bigint:this.dmp1}),new Be.asn1.DERInteger({bigint:this.dmq1}),new Be.asn1.DERInteger({bigint:this.coeff})]},i=new Be.asn1.DERSequence(n);return i.getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return xk(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var n=new Be.asn1.DERSequence({array:[new Be.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new Be.asn1.DERNull]}),i=new Be.asn1.DERSequence({array:[new Be.asn1.DERInteger({bigint:this.n}),new Be.asn1.DERInteger({int:this.e})]}),r=new Be.asn1.DERBitString({hex:"00"+i.getEncodedHex()}),s=new Be.asn1.DERSequence({array:[n,r]});return s.getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return xk(this.getPublicBaseKey())},e.wordwrap=function(n,i){if(i=i||64,!n)return n;var r="(.{1,"+i+`})( +|$
103?)|(.{1,`+i+"})";return n.match(RegExp(r,"g")).join(` 104`)},e.prototype.getPrivateKey=function(){var n=`-----BEGIN RSA PRIVATE KEY----- 105`;return n+=e.wordwrap(this.getPrivateBaseKeyB64())+` 106`,n+="-----END RSA PRIVATE KEY-----",n},e.prototype.getPublicKey=function(){var n=`-----BEGIN PUBLIC KEY----- 107`;return n+=e.wordwrap(this.getPublicBaseKeyB64())+` 108`,n+="-----END PUBLIC KEY-----",n},e.hasPublicKeyProperty=function(n){return n=n||{},n.hasOwnProperty("n")&&n.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(n){return n=n||{},n.hasOwnProperty("n")&&n.hasOwnProperty("e")&&n.hasOwnProperty("d")&&n.hasOwnProperty("p")&&n.hasOwnProperty("q")&&n.hasOwnProperty("dmp1")&&n.hasOwnProperty("dmq1")&&n.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(n){this.n=n.n,this.e=n.e,n.hasOwnProperty("d")&&(this.d=n.d,this.p=n.p,this.q=n.q,this.dmp1=n.dmp1,this.dmq1=n.dmq1,this.coeff=n.coeff)},e}(wG),TG={},qC,PG=typeof process<"u"?(qC=TG)===null||qC===void 0?void 0:qC.npm_package_version:void 0,EG=function(){function t(e){e===void 0&&(e={}),e=e||{},this.default_key_size=e.default_key_size?parseInt(e.default_key_size,10):1024,this.default_public_exponent=e.default_public_exponent||"010001",this.log=e.log||!1,this.key=null}return t.prototype.setKey=function(e){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new V_(e)},t.prototype.setPrivateKey=function(e){this.setKey(e)},t.prototype.setPublicKey=function(e){this.setKey(e)},t.prototype.decrypt=function(e){try{return this.getKey().decrypt(O_(e))}catch{return!1}},t.prototype.encrypt=function(e){try{return xk(this.getKey().encrypt(e))}catch{return!1}},t.prototype.sign=function(e,n,i){try{return xk(this.getKey().sign(e,n,i))}catch{return!1}},t.prototype.verify=function(e,n,i){try{return this.getKey().verify(e,O_(n),i)}catch{return!1}},t.prototype.getKey=function(e){if(!this.key){if(this.key=new V_,e&&{}.toString.call(e)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,e);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},t.version=PG,t}();function AG(){try{const t=new Date().toLocaleString("en-US",{timeZone:"Asia/Jakarta"}),e=new Date(t),i=`${e.getFullYear()+String(e.getMonth()+1).padStart(2,"0")+String(e.getDate()).padStart(2,"0")}${tG||"Ve6K^/Y"}`,r=new EG;r.setPublicKey(nG);const s=r.encrypt(JSON.stringify(i));return typeof s=="string"?s:null}catch(t){return console.error("Error creating API key:",t),null}}function PF(t,e){return function(){return t.apply(e,arguments)}}const{toString:NG}=Object.prototype,{getPrototypeOf:zA}=Object,tS=(t=>e=>{const n=NG.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Za=t=>(t=t.toLowerCase(),e=>tS(e)===t),nS=t=>e=>typeof e===t,{isArray:Wf}=Array,qx=nS("undefined");function MG(t){return t!==null&&!qx(t)&&t.constructor!==null&&!qx(t.constructor)&&$s(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const EF=Za("ArrayBuffer");function DG(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&EF(t.buffer),e}const _G=nS("string"),$s=nS("function"),AF=nS("number"),iS=t=>t!==null&&typeof t=="object",IG=t=>t===!0||t===!1,q0=t=>{if(tS(t)!=="object")return!1;const e=zA(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},RG=Za("Date"),OG=Za("File"),LG=Za("Blob"),FG=Za("FileList"),BG=t=>iS(t)&&$s(t.pipe),$G=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||$s(t.append)&&((e=tS(t))==="formdata"||e==="object"&&$s(t.toString)&&t.toString()==="[object FormData]"))},HG=Za("URLSearchParams"),[zG,VG,UG,WG]=["ReadableStream","Request","Response","Headers"].map(Za),GG=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function rv(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let i,r;if(typeof t!="object"&&(t=[t]),Wf(t))for(i=0,r=t.length;i<r;i++)e.call(null,t[i],i,t);else{const s=n?Object.getOwnPropertyNames(t):Object.keys(t),a=s.length;let l;for(i=0;i<a;i++)l=s[i],e.call(null,t[l],l,t)}}function NF(t,e){e=e.toLowerCase();const n=Object.keys(t);let i=n.length,r;for(;i-- >0;)if(r=n[i],e===r.toLowerCase())return r;return null}const ou=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,MF=t=>!qx(t)&&t!==ou;function Xj(){const{caseless:t}=MF(this)&&this||{},e={},n=(i,r)=>{const s=t&&NF(e,r)||r;q0(e[s])&&q0(i)?e[s]=Xj(e[s],i):q0(i)?e[s]=Xj({},i):Wf(i)?e[s]=i.slice():e[s]=i};for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&rv(arguments[i],n);return e}const qG=(t,e,n,{allOwnKeys:i}={})=>(rv(e,(r,s)=>{n&&$s(r)?t[s]=PF(r,n):t[s]=r},{allOwnKeys:i}),t),KG=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),YG=(t,e,n,i)=>
vendor: 2,045 bytes, line 108
108{t.prototype=Object.create(e.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},XG=(t,e,n,i)=>{let r,s,a;const l={};if(e=e||{},t==null)return e;do{for(r=Object.getOwnPropertyNames(t),s=r.length;s-- >0;)a=r[s],(!i||i(a,t,e))&&!l[a]&&(e[a]=t[a],l[a]=!0);t=n!==!1&&zA(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},JG=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const i=t.indexOf(e,n);return i!==-1&&i===n},QG=t=>{if(!t)return null;if(Wf(t))return t;let e=t.length;if(!AF(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},ZG=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&zA(Uint8Array)),eq=(t,e)=>{const i=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=i.next())&&!r.done;){const s=r.value;e.call(t,s[0],s[1])}},tq=(t,e)=>{let n;const i=[];for(;(n=t.exec(e))!==null;)i.push(n);return i},nq=Za("HTMLFormElement"),iq=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,r){return i.toUpperCase()+r}),U_=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),rq=Za("RegExp"),DF=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};rv(n,(r,s)=>{let a;(a=e(r,s,t))!==!1&&(i[s]=a||r)}),Object.defineProperties(t,i)},sq=t=>{DF(t,(e,n)=>{if($s(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=t[n];if($s(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},aq=(t,e)=>{const n={},i=r=>{r.forEach(s=>{n[s]=!0})};return Wf(t)?i(t):i(String(t).split(e)),n},oq=()=>{},lq=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,KC="abcdefghijklmnopqrstuvwxyz",W_="0123456789",_F={DIGIT:W_,ALPHA:KC,ALPHA_DIGIT:KC+KC.toUpperCase()+W_},cq=(t=16,e=_F.ALPHA_DIGIT)=>{let n="";const{length:i}=e;for(;t--;)n+=e[Math.random()*i|0];return n};function dq(t){return!!(t&&$s(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const uq=t=>{const e=new Array(10),n=(i,r)=>{if(iS(i)){if(e.indexOf(i)>=0)return;
vendor: 4,386 bytes, line 108
108if(!("toJSON"in i)){e[r]=i;const s=Wf(i)?[]:{};return rv(i,(a,l)=>{const c=n(a,r+1);!qx(c)&&(s[l]=c)}),e[r]=void 0,s}}return i};return n(t,0)},hq=Za("AsyncFunction"),pq=t=>t&&(iS(t)||$s(t))&&$s(t.then)&&$s(t.catch),IF=((t,e)=>t?setImmediate:e?((n,i)=>(ou.addEventListener("message",({source:r,data:s})=>{r===ou&&s===n&&i.length&&i.shift()()},!1),r=>{i.push(r),ou.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",$s(ou.postMessage)),mq=typeof queueMicrotask<"u"?queueMicrotask.bind(ou):typeof process<"u"&&process.nextTick||IF,Re={isArray:Wf,isArrayBuffer:EF,isBuffer:MG,isFormData:$G,isArrayBufferView:DG,isString:_G,isNumber:AF,isBoolean:IG,isObject:iS,isPlainObject:q0,isReadableStream:zG,isRequest:VG,isResponse:UG,isHeaders:WG,isUndefined:qx,isDate:RG,isFile:OG,isBlob:LG,isRegExp:rq,isFunction:$s,isStream:BG,isURLSearchParams:HG,isTypedArray:ZG,isFileList:FG,forEach:rv,merge:Xj,extend:qG,trim:GG,stripBOM:KG,inherits:YG,toFlatObject:XG,kindOf:tS,kindOfTest:Za,endsWith:JG,toArray:QG,forEachEntry:eq,matchAll:tq,isHTMLForm:nq,hasOwnProperty:U_,hasOwnProp:U_,reduceDescriptors:DF,freezeMethods:sq,toObjectSet:aq,toCamelCase:iq,noop:oq,toFiniteNumber:lq,findKey:NF,global:ou,isContextDefined:MF,ALPHABET:_F,generateString:cq,isSpecCompliantForm:dq,toJSONObject:uq,isAsyncFn:hq,isThenable:pq,setImmediate:IF,asap:mq};function Dt(t,e,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}Re.inherits(Dt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Re.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const RF=Dt.prototype,OF={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{OF[t]={value:t}});Object.defineProperties(Dt,OF);Object.defineProperty(RF,"isAxiosError",{value:!0});Dt.from=(t,e,n,i,r,s)=>{const a=Object.create(RF);return Re.toFlatObject(t,a,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),Dt.call(a,t.message,e,n,i,r),a.cause=t,a.name=t.name,s&&Object.assign(a,s),a};const fq=null;function Jj(t){return Re.isPlainObject(t)||Re.isArray(t)}function LF(t){return Re.endsWith(t,"[]")?t.slice(0,-2):t}function G_(t,e,n){return t?t.concat(e).map(function(r,s){return r=LF(r),!n&&s?"["+r+"]":r}).join(n?".":""):e}function gq(t){return Re.isArray(t)&&!t.some(Jj)}const xq=Re.toFlatObject(Re,{},null,function(e){return/^is[A-Z]/.test(e)});function rS(t,e,n){if(!Re.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=Re.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,k){return!Re.isUndefined(k[w])});const i=n.metaTokens,r=n.visitor||u,s=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&Re.isSpecCompliantForm(e);if(!Re.isFunction(r))throw new TypeError("visitor must be a function");function d(m){if(m===null)return"";if(Re.isDate(m))return m.toISOString();if(!c&&Re.isBlob(m))throw new Dt("Blob is not supported. Use a Buffer instead.");return Re.isArrayBuffer(m)||Re.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,w,k){let b=m;if(m&&!k&&typeof m=="object"){if(Re.endsWith(w,"{}"))w=i?w:w.slice(0,-2),m=JSON.stringify(m);else if(Re.isArray(m)&&gq(m)||(Re.isFileList(m)||Re.endsWith(w,"[]"))&&(b=Re.toArray(m)))return w=LF(w),b.forEach(function(v,E){!(Re.isUndefined(v)||v===null)&&e.append(a===!0?G_([w],E,s):a===null?w:w+"[]",d(v))}),!1}return Jj(m)?!0:(e.append(G_(k,w,s),d(m)),!1)}const h=[],p=Object.assign(xq,{defaultVisitor:u,convertValue:d,isVisitable:Jj});function y(m,w){if(!Re.isUndefined(m)){if(h.indexOf(m)!==-1)throw Error("Circular reference detected in "+w.join("."));h.push(m),Re.forEach(m,function(b,x){(!(Re.isUndefined(b)||b===null)&&r.call(e,b,Re.isString(x)?x.trim():x,w,p))===!0&&y(b,w?w.concat(x):[x])}),h.pop()}}if(!Re.isObject(t))throw new TypeError("data must be an object");return y(t),e}
vendor: 5,369 bytes, lines 108-109
108function q_(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(i){return e[i]})}function VA(t,e){this._pairs=[],t&&rS(t,this,e)}const FF=VA.prototype;FF.append=function(e,n){this._pairs.push([e,n])};FF.toString=function(e){const n=e?function(i){return e.call(this,i,q_)}:q_;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function yq(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function BF(t,e,n){if(!e)return t;const i=n&&n.encode||yq,r=n&&n.serialize;let s;if(r?s=r(e,n):s=Re.isURLSearchParams(e)?e.toString():new VA(e,n).toString(i),s){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class K_{constructor(){this.handlers=[]}use(e,n,i){return this.handlers.push({fulfilled:e,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Re.forEach(this.handlers,function(i){i!==null&&e(i)})}}const $F={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},bq=typeof URLSearchParams<"u"?URLSearchParams:VA,vq=typeof FormData<"u"?FormData:null,wq=typeof Blob<"u"?Blob:null,kq={isBrowser:!0,classes:{URLSearchParams:bq,FormData:vq,Blob:wq},protocols:["http","https","file","blob","url","data"]},UA=typeof window<"u"&&typeof document<"u",Sq=(t=>UA&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),Cq=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",jq=UA&&window.location.href||"http://localhost",Tq=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:UA,hasStandardBrowserEnv:Sq,hasStandardBrowserWebWorkerEnv:Cq,origin:jq},Symbol.toStringTag,{value:"Module"})),Xa={...Tq,...kq};function Pq(t,e){return rS(t,new Xa.classes.URLSearchParams,Object.assign({visitor:function(n,i,r,s){return Xa.isNode&&Re.isBuffer(n)?(this.append(i,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function Eq(t){return Re.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Aq(t){const e={},n=Object.keys(t);let i;const r=n.length;let s;for(i=0;i<r;i++)s=n[i],e[s]=t[s];return e}function HF(t){function e(n,i,r,s){let a=n[s++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),c=s>=n.length;return a=!a&&Re.isArray(r)?r.length:a,c?(Re.hasOwnProp(r,a)?r[a]=[r[a],i]:r[a]=i,!l):((!r[a]||!Re.isObject(r[a]))&&(r[a]=[]),e(n,i,r[a],s)&&Re.isArray(r[a])&&(r[a]=Aq(r[a])),!l)}if(Re.isFormData(t)&&Re.isFunction(t.entries)){const n={};return Re.forEachEntry(t,(i,r)=>{e(Eq(i),r,n,0)}),n}return null}function Nq(t,e,n){if(Re.isString(t))try{return(e||JSON.parse)(t),Re.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(t)}const sv={transitional:$F,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const i=n.getContentType()||"",r=i.indexOf("application/json")>-1,s=Re.isObject(e);if(s&&Re.isHTMLForm(e)&&(e=new FormData(e)),Re.isFormData(e))return r?JSON.stringify(HF(e)):e;if(Re.isArrayBuffer(e)||Re.isBuffer(e)||Re.isStream(e)||Re.isFile(e)||Re.isBlob(e)||Re.isReadableStream(e))return e;if(Re.isArrayBufferView(e))return e.buffer;if(Re.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let l;if(s){if(i.indexOf("application/x-www-form-urlencoded")>-1)return Pq(e,this.formSerializer).toString();if((l=Re.isFileList(e))||i.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return rS(l?{"files[]":e}:e,c&&new c,this.formSerializer)}}return s||r?(n.setContentType("application/json",!1),Nq(e)):e}],transformResponse:[function(e){const n=this.transitional||sv.transitional,i=n&&n.forcedJSONParsing,r=this.responseType==="json";if(Re.isResponse(e)||Re.isReadableStream(e))return e;if(e&&Re.isString(e)&&(i&&!this.responseType||r)){const a=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(l){if(a)throw l.name==="SyntaxError"?Dt.from(l,Dt.ERR_BAD_RESPONSE,this,null,this.response):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xa.classes.FormData,Blob:Xa.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Re.forEach(["delete","get","head","post","put","patch"],t=>{sv.headers[t]={}});const Mq=Re.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Dq=t=>{const e={};let n,i,r;return t&&t.split(` 109`).forEach(function(a){r=a.indexOf(":"),n=a.substring(0,r).trim().toLowerCase(),i=a.substring(r+1).trim(),!(!n||e[n]&&Mq[n])&&(n==="set-cookie"?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)}),e},Y_=Symbol("internals");function xg(t){return t&&String(t).trim().toLowerCase()}function K0(t){return t===!1||t==null?t:Re.isArray(t)?t.map(K0):String(t)}function _q(t){const e=Object.create(null),n=/([^\s,;
109=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(t);)e[i[1]]=i[2];return e}const Iq=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function YC(t,e,n,i,r){if(Re.isFunction(i))return i.call(this,e,n);if(r&&(e=n),!!Re.isString(e)){if(Re.isString(i))return e.indexOf(i)!==-1;if(Re.isRegExp(i))return i.test(e)}}function Rq(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,i)=>n.toUpperCase()+i)}function Oq(t,e){const n=Re.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+n,{value:function(r,s,a){return this[i].call(this,e,r,s,a)},configurable:!0})})}class ls{constructor(e){e&&this.set(e)}set(e,n,i){const r=this;function s(l,c,d){const u=xg(c);if(!u)throw new Error("header name must be a non-empty string");const h=Re.findKey(r,u);(!h||r[h]===void 0||d===!0||d===void 0&&r[h]!==!1)&&(r[h||c]=K0(l))}const a=(l,c)=>Re.forEach(l,(d,u)=>s(d,u,c));if(Re.isPlainObject(e)||e instanceof this.constructor)a(e,n);else if(Re.isString(e)&&(e=e.trim())&&!Iq(e))a(Dq(e),n);else if(Re.isHeaders(e))for(const[l,c]of e.entries())s(c,l,i);else e!=null&&s(n,e,i);return this}get(e,n){if(e=xg(e),e){const i=Re.findKey(this,e);if(i){const r=this[i];if(!n)return r;if(n===!0)return _q(r);if(Re.isFunction(n))return n.call(this,r,i);if(Re.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=xg(e),e){const i=Re.findKey(this,e);return!!(i&&this[i]!==void 0&&(!n||YC(this,this[i],i,n)))}return!1}delete(e,n){const i=this;let r=!1;function s(a){if(a=xg(a),a){const l=Re.findKey(i,a);l&&(!n||YC(i,i[l],l,n))&&(delete i[l],r=!0)}}return Re.isArray(e)?e.forEach(s):s(e),r}clear(e){const n=Object.keys(this);let i=n.length,r=!1;for(;i--;){const s=n[i];(!e||YC(this,this[s],s,e,!0))&&(delete this[s],r=!0)}return r}normalize(e){const n=this,i={};return Re.forEach(this,(r,s)=>{const a=Re.findKey(i,s);if(a){n[a]=K0(r),delete n[s];return}const l=e?Rq(s):String(s).trim();l!==s&&delete n[s],n[l]=K0(r),i[l]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return Re.forEach(this,(i,r)=>{i!=null&&i!==!1&&(n[r]=e&&Re.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(` 110`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const i=new this(e);return n.forEach(r=>i.set(r)),i}static accessor(e){const i=(this[Y_]=this[Y_]={accessors:{}}).accessors,r=this.prototype;function s(a){const l=xg(a);i[l]||(Oq(r,a),i[l]=!0)}return Re.isArray(e)?e.forEach(s):s(e),this}}ls.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Re.reduceDescriptors(ls.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[n]=i}}});Re.freezeMethods(ls);function XC(t,e){const n=this||sv,i=e||n,r=ls.from(i.headers);let s=i.data;return Re.forEach(t,function(l){s=l.call(n,s,r.normalize(),e?e.status:void 0)}),r.normalize(),s}function zF(t){return!!(t&&t.__CANCEL__)}function Gf(t,e,n){Dt.call(this,t??"canceled",Dt.ERR_CANCELED,e,n),this.name="CanceledError"}Re.inherits(Gf,Dt,{__CANCEL__:!0});function VF(t,e,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):e(new Dt("Request failed with status code "+n.status,[Dt.ERR_BAD_REQUEST,Dt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Lq(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Fq(t,e){t=t||10;const n=new Array(t),i=new Array(t);let r=0,s=0,a;return e=e!==void 0?e:1e3,function(c){const d=Date.now(),u=i[s];a||(a=d),n[r]=c,i[r]=d;let h=s,p=0;for(;h!==r;)p+=n[h++],h=h%t;if(r=(r+1)%t,r===s&&(s=(s+1)%t),d-a<e)return;const y=u&&d-u;return y?Math.round(p*1e3/y):void 0}}function Bq(t,e){let n=0,i=1e3/e,r,s;const a=(d,u=Date.now())=>{n=u,r=null,s&&(clearTimeout(s),s=null),t.apply(null,d)};return[(...d)=>{const u=Date.now(),h=u-n;h>=i?a(d,u):(r=d,s||(s=setTimeout(()=>{s=null,a(r)}
110,i-h)))},()=>r&&a(r)]}const yk=(t,e,n=3)=>{let i=0;const r=Fq(50,250);return Bq(s=>{const a=s.loaded,l=s.lengthComputable?s.total:void 0,c=a-i,d=r(c),u=a<=l;i=a;const h={loaded:a,total:l,progress:l?a/l:void 0,bytes:c,rate:d||void 0,estimated:d&&l&&u?(l-a)/d:void 0,event:s,lengthComputable:l!=null,[e?"download":"upload"]:!0};t(h)},n)},X_=(t,e)=>{const n=t!=null;return[i=>e[0]({lengthComputable:n,total:t,loaded:i}),e[1]]},J_=t=>(...e)=>Re.asap(()=>t(...e)),$q=Xa.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let i;function r(s){let a=s;return e&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=r(window.location.href),function(a){const l=Re.isString(a)?r(a):a;return l.protocol===i.protocol&&l.host===i.host}}():function(){return function(){return!0}}(),Hq=Xa.hasStandardBrowserEnv?{write(t,e,n,i,r,s){const a=[t+"="+encodeURIComponent(e)];Re.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Re.isString(i)&&a.push("path="+i),Re.isString(r)&&a.push("domain="+r),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function zq(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Vq(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function UF(t,e){return t&&!zq(e)?Vq(t,e):e}const Q_=t=>t instanceof ls?{...t}:t;function Dh(t,e){e=e||{};const n={};function i(d,u,h){return Re.isPlainObject(d)&&Re.isPlainObject(u)?Re.merge.call({caseless:h},d,u):Re.isPlainObject(u)?Re.merge({},u):Re.isArray(u)?u.slice():u}function r(d,u,h){if(Re.isUndefined(u)){if(!Re.isUndefined(d))return i(void 0,d,h)}else return i(d,u,h)}function s(d,u){if(!Re.isUndefined(u))return i(void 0,u)}function a(d,u){if(Re.isUndefined(u)){if(!Re.isUndefined(d))return i(void 0,d)}else return i(void 0,u)}function l(d,u,h){if(h in e)return i(d,u);if(h in t)return i(void 0,d)}const c={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(d,u)=>r(Q_(d),Q_(u),!0)};return Re.forEach(Object.keys(Object.assign({},t,e)),function(u){const h=c[u]||r,p=h(t[u],e[u],u);Re.isUndefined(p)&&h!==l||(n[u]=p)}),n}const WF=t=>{const e=Dh({},t);let{data:n,withXSRFToken:i,xsrfHeaderName:r,xsrfCookieName:s,headers:a,auth:l}=e;e.headers=a=ls.from(a),e.url=BF(UF(e.baseURL,e.url),t.params,t.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(Re.isFormData(n)){if(Xa.hasStandardBrowserEnv||Xa.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[d,...u]=c?c.split(";").map(h=>h.trim()).filter(Boolean):[];a.setContentType([d||"multipart/form-data",...u].join("; "))}}if(Xa.hasStandardBrowserEnv&&(i&&Re.isFunction(i)&&(i=i(e)),i||i!==!1&&$q(e.url))){const d=r&&s&&Hq.read(s);d&&a.set(r,d)}return e},Uq=typeof XMLHttpRequest<"u",Wq=Uq&&function(t){return new Promise(function(n,i){const r=WF(t);let s=r.data;const a=ls.from(r.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:d}=r,u,h,p,y,m;function w(){y&&y(),m&&m(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let k=new XMLHttpRequest;k.open(r.method.toUpperCase(),r.url,!0),k.timeout=r.timeout;function b(){if(!k)return;const v=ls.from("getAllResponseHeaders"in k&&k.getAllResponseHeaders()),N={data:!l||l==="text"||l==="json"?k.responseText:k.response,status:k.status,statusText:k.statusText,headers:v,config:t,request:k};VF(function(_){n(_),w()},function(_){i(_),w()},N),k=null}"onloadend"in k?k.onloadend=b:k.onreadystatechange=function(){!k||k.readyState!==4||k.status===0&&!(k.responseURL&&k.responseURL.indexOf("file:")===0)||setTimeout(b)}
110,k.onabort=function(){k&&(i(new Dt("Request aborted",Dt.ECONNABORTED,t,k)),k=null)},k.onerror=function(){i(new Dt("Network Error",Dt.ERR_NETWORK,t,k)),k=null},k.ontimeout=function(){let E=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const N=r.transitional||$F;r.timeoutErrorMessage&&(E=r.timeoutErrorMessage),i(new Dt(E,N.clarifyTimeoutError?Dt.ETIMEDOUT:Dt.ECONNABORTED,t,k)),k=null},s===void 0&&a.setContentType(null),"setRequestHeader"in k&&Re.forEach(a.toJSON(),function(E,N){k.setRequestHeader(N,E)}),Re.isUndefined(r.withCredentials)||(k.withCredentials=!!r.withCredentials),l&&l!=="json"&&(k.responseType=r.responseType),d&&([p,m]=yk(d,!0),k.addEventListener("progress",p)),c&&k.upload&&([h,y]=yk(c),k.upload.addEventListener("progress",h),k.upload.addEventListener("loadend",y)),(r.cancelToken||r.signal)&&(u=v=>{k&&(i(!v||v.type?new Gf(null,t,k):v),k.abort(),k=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const x=Lq(r.url);if(x&&Xa.protocols.indexOf(x)===-1){i(new Dt("Unsupported protocol "+x+":",Dt.ERR_BAD_REQUEST,t));return}k.send(s||null)})},Gq=(t,e)=>{let n=new AbortController,i;const r=function(c){if(!i){i=!0,a();const d=c instanceof Error?c:this.reason;n.abort(d instanceof Dt?d:new Gf(d instanceof Error?d.message:d))}};let s=e&&setTimeout(()=>{r(new Dt(`timeout ${e} of ms exceeded`,Dt.ETIMEDOUT))},e);const a=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",r):c.unsubscribe(r))}),t=null)};t.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",r));const{signal:l}=n;return l.unsubscribe=a,[l,()=>{s&&clearTimeout(s),s=null}]},qq=function*(t,e){let n=t.byteLength;if(!e||n<e){yield t;return}let i=0,r;for(;i<n;)r=i+e,yield t.slice(i,r),i=r},Kq=async function*(t,e,n){for await(const i of t)yield*qq(ArrayBuffer.isView(i)?i:await n(String(i)),e)},Z_=(t,e,n,i,r)=>{const s=Kq(t,e,r);let a=0,l,c=d=>{l||(l=!0,i&&i(d))};return new ReadableStream({async pull(d){try{const{done:u,value:h}=await s.next();if(u){c(),d.close();return}let p=h.byteLength;if(n){let y=a+=p;n(y)}d.enqueue(new Uint8Array(h))}catch(u){throw c(u),u}},cancel(d){return c(d),s.return()}},{highWaterMark:2})},sS=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",GF=sS&&typeof ReadableStream=="function",Qj=sS&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),qF=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Yq=GF&&qF(()=>{let t=!1;const e=new Request(Xa.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),eI=64*1024,Zj=GF&&qF(()=>Re.isReadableStream(new Response("").body)),bk={stream:Zj&&(t=>t.body)};sS&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!bk[e]&&(bk[e]=Re.isFunction(t[e])?n=>n[e]():(n,i)=>{throw new Dt(`Response type '${e}' is not supported`,Dt.ERR_NOT_SUPPORT,i)})})})(new Response);const Xq=async t=>{if(t==null)return 0;if(Re.isBlob(t))return t.size;if(Re.isSpecCompliantForm(t))return(await new Request(t).arrayBuffer()).byteLength;if(Re.isArrayBufferView(t)||Re.isArrayBuffer(t))return t.byteLength;if(Re.isURLSearchParams(t)&&(t=t+""),Re.isString(t))return(await Qj(t)).byteLength},Jq=async(t,e)=>{const n=Re.toFiniteNumber(t.getContentLength());return n??Xq(e)},Qq=sS&&(async t=>{let{url:e,method:n,data:i,signal:r,cancelToken:s,timeout:a,onDownloadProgress:l,onUploadProgress:c,responseType:d,headers:u,withCredentials:h="same-origin",fetchOptions:p}=WF(t);d=d?(d+"").toLowerCase():"text";let[y,m]=r||s||a?Gq([r,s],a):[],w,k;const b=()=>{!w&&setTimeout(()=>{y&&y.unsubscribe()}),w=!0};let x;try{if(c&&Yq&&n!=="get"&&n!=="head"&&(x=await Jq(u,i))!==0){let S=new Request(e,{method:"POST",body:i,duplex:"half"}),_;if(Re.isFormData(i)&&(_=S.headers.get("content-type"))&&u.setContentType(_),S.body){const[$,V]=X_(x,yk(J_(c)));i=Z_(S.body,eI,$,V,Qj)}}Re.isString(h)||(h=h?"include":"omit"),k=new Request(e,{...p,signal:y,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:i,duplex:"half",credentials:h});let v=await fetch(k);const E=Zj&&(d==="stream"||d==="response");if(Zj&&(l||E)){const S={};["status","statusText","headers"].forEach(I=>{S[I]=v[I]});const _=Re.toFiniteNumber(v.headers.get("content-length")),[$,V]=l&&X_(_,yk(J_(l),!0))||[];v=new Response(Z_(v.body,eI,$,()=>{V&&V(),E&&b()},Qj),S)}d=d||"text";let N=await bk[Re.findKey(bk,d)||"text"](v,t);return!E&&b(),m&&m(),await new Promise((S,_)=>{VF(S,_,{data:N,headers:ls.from(v.headers),status:v.status,statusText:v.statusText,config:t,request:k})})}catch(v){throw b(),v&&v.name==="TypeError"&&/fetch/i.test(v.message)?Object.assign(new Dt("Network Error",Dt.ERR_NETWORK,t,k),{cause:v.cause||v}):Dt.from(v,v&&v.code,t,k)}}),eT={http:fq,xhr:Wq,fetch:Qq};Re.forEach(eT,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const tI=t=>`- ${t}`,Zq=t=>
vendor: 4,942 bytes, lines 110-113
110Re.isFunction(t)||t===null||t===!1,KF={getAdapter:t=>{t=Re.isArray(t)?t:[t];const{length:e}=t;let n,i;const r={};for(let s=0;s<e;s++){n=t[s];let a;if(i=n,!Zq(n)&&(i=eT[(a=String(n)).toLowerCase()],i===void 0))throw new Dt(`Unknown adapter '${a}'`);if(i)break;r[a||"#"+s]=i}if(!i){const s=Object.entries(r).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=e?s.length>1?`since : 111`+s.map(tI).join(` 112`):" "+tI(s[0]):"as no adapter specified";throw new Dt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return i},adapters:eT};function JC(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Gf(null,t)}function nI(t){return JC(t),t.headers=ls.from(t.headers),t.data=XC.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),KF.getAdapter(t.adapter||sv.adapter)(t).then(function(i){return JC(t),i.data=XC.call(t,t.transformResponse,i),i.headers=ls.from(i.headers),i},function(i){return zF(i)||(JC(t),i&&i.response&&(i.response.data=XC.call(t,t.transformResponse,i.response),i.response.headers=ls.from(i.response.headers))),Promise.reject(i)})}const YF="1.7.4",WA={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{WA[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});const iI={};WA.transitional=function(e,n,i){function r(s,a){return"[Axios v"+YF+"] Transitional option '"+s+"'"+a+(i?". "+i:"")}return(s,a,l)=>{if(e===!1)throw new Dt(r(a," has been removed"+(n?" in "+n:"")),Dt.ERR_DEPRECATED);return n&&!iI[a]&&(iI[a]=!0,console.warn(r(a," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,a,l):!0}};function eK(t,e,n){if(typeof t!="object")throw new Dt("options must be an object",Dt.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let r=i.length;for(;r-- >0;){const s=i[r],a=e[s];if(a){const l=t[s],c=l===void 0||a(l,s,t);if(c!==!0)throw new Dt("option "+s+" must be "+c,Dt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Dt("Unknown option "+s,Dt.ERR_BAD_OPTION)}}const tT={assertOptions:eK,validators:WA},dc=tT.validators;class vh{constructor(e){this.defaults=e,this.interceptors={request:new K_,response:new K_}}async request(e,n){try{return await this._request(e,n)}catch(i){if(i instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const s=r.stack?r.stack.replace(/^.+\n/,""):"";try{i.stack?s&&!String(i.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(i.stack+=` 113`+s):i.stack=s}catch{}}throw i}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Dh(this.defaults,n);const{transitional:i,paramsSerializer:r,headers:s}=n;i!==void 0&&tT.assertOptions(i,{silentJSONParsing:dc.transitional(dc.boolean),forcedJSONParsing:dc.transitional(dc.boolean),clarifyTimeoutError:dc.transitional(dc.boolean)},!1),r!=null&&(Re.isFunction(r)?n.paramsSerializer={serialize:r}:tT.assertOptions(r,{encode:dc.function,serialize:dc.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&Re.merge(s.common,s[n.method]);s&&Re.forEach(["delete","get","head","post","put","patch","common"],m=>{delete s[m]}),n.headers=ls.concat(a,s);const l=[];let c=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(c=c&&w.synchronous,l.unshift(w.fulfilled,w.rejected))});const d=[];this.interceptors.response.forEach(function(w){d.push(w.fulfilled,w.rejected)});let u,h=0,p;if(!c){const m=[nI.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,d),p=m.length,u=Promise.resolve(n);h<p;)u=u.then(m[h++],m[h++]);return u}p=l.length;let y=n;for(h=0;h<p;){const m=l[h++],w=l[h++];try{y=m(y)}catch(k){w.call(this,k);break}}try{u=nI.call(this,y)}catch(m){return Promise.reject(m)}for(h=0,p=d.length;h<p;)u=u.then(d[h++],d[h++]);return u}getUri(e){e=Dh(this.defaults,e);const n=UF(e.baseURL,e.url);return BF(n,e.params,e.paramsSerializer)}}Re.forEach(["delete","get","head","options"],function(e){vh.prototype[e]=function(n,i){return this.request(Dh(i||{},{method:e,url:n,data:(i||{}).data}))}});Re.forEach(["post","put","patch"],function(e){function n(i){return function(s,a,l){return this.request(Dh(l||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}vh.prototype[e]=n(),vh.prototype[e+"Form"]=n(!0)});class GA{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const i=this;this.promise.then(r=>{if(!i._listeners)return;let s=i._listeners.length;for(;s-- >0;)i._listeners[s](r);i._listeners=null}),this.promise.then=r=>{let s;const a=new Promise(l=>{i.subscribe(l),s=l}).then(r);return a.cancel=function(){i.unsubscribe(s)},a},e(function(s,a,l){i.reason||(i.reason=new Gf(s,a,l),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
113subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new GA(function(r){e=r}),cancel:e}}}function tK(t){return function(n){return t.apply(null,n)}}function nK(t){return Re.isObject(t)&&t.isAxiosError===!0}const nT={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(nT).forEach(([t,e])=>{nT[e]=t});function XF(t){const e=new vh(t),n=PF(vh.prototype.request,e);return Re.extend(n,vh.prototype,e,{allOwnKeys:!0}),Re.extend(n,e,null,{allOwnKeys:!0}),n.create=function(r){return XF(Dh(t,r))},n}const _n=XF(sv);_n.Axios=vh;_n.CanceledError=Gf;_n.CancelToken=GA;_n.isCancel=zF;_n.VERSION=YF;_n.toFormData=rS;_n.AxiosError=Dt;_n.Cancel=_n.CanceledError;_n.all=function(e){return Promise.all(e)};_n.spread=tK;_n.isAxiosError=nK;_n.mergeConfig=Dh;_n.AxiosHeaders=ls;_n.formToJSON=t=>HF(Re.isHTMLForm(t)?new FormData(t):t);_n.getAdapter=KF.getAdapter;_n.HttpStatusCode=nT;_n.default=_n;_n.defaults.baseURL=ze;_n.interceptors.request.use(t=>{const e=AG();return e&&(t.headers.Authorization=`Bearer ${e}`),t});_n.interceptors.response.use(t=>t,t=>{const{data:e,status:n}=t.response;switch(n){case 400:console.error(e);break;case 401:console.error("Unauthenticated"),window.location.replace(eG);break;case 404:console.error("Not-found");break;case 500:console.error("Server-error");break}return Promise.reject(t)});const s0=t=>t.data,He={get:t=>_n.get(t).then(s0),post:(t,e)=>_n.post(t,e).then(s0),postFaspay:(t,e,n)=>_n.post(t,e,n).then(s0),put:(t,e)=>_n.put(t,e).then(s0)};var Jh=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Df=typeof window>"u"||"Deno"in globalThis;function ia(){}function iK(t,e){return typeof t=="function"?t(e):t}function iT(t){return typeof t=="number"&&t>=0&&t!==1/0}function JF(t,e){return Math.max(t+(e||0)-Date.now(),0)}function im(t,e){return typeof t=="function"?t(e):t}function Wa(t,e){return typeof t=="function"?t(e):t}function rI(t,e){const{type:n="all",exact:i,fetchStatus:r,predicate:s,queryKey:a,stale:l}=t;if(a){if(i){if(e.queryHash!==qA(a,e.options))return!1}else if(!Kx(e.queryKey,a))return!1}if(n!=="all"){const c=e.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof l=="boolean"&&e.isStale()!==l||r&&r!==e.state.fetchStatus||s&&!s(e))}function sI(t,e){const{exact:n,status:i,predicate:r,mutationKey:s}=t;if(s){if(!e.options.mutationKey)return!1;if(n){if(_h(e.options.mutationKey)!==_h(s))return!1}else if(!Kx(e.options.mutationKey,s))return!1}return!(i&&e.state.status!==i||r&&!r(e))}function qA(t,e){return((e==null?void 0:e.queryKeyHashFn)||_h)(t)}function _h(t){return JSON.stringify(t,(e,n)=>rT(n)?Object.keys(n).sort().reduce((i,r)=>(i[r]=n[r],i),{}):n)}function Kx(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?!Object.keys(e).some(n=>!Kx(t[n],e[n])):!1}function KA(t,e){if(t===e)return t;const n=aI(t)&&aI(e);if(n||rT(t)&&rT(e)){const i=n?t:Object.keys(t),r=i.length,s=n?e:Object.keys(e),a=s.length,l=n?[]:{};let c=0;for(let d=0;d<a;d++){const u=n?d:s[d];(!n&&i.includes(u)||n)&&t[u]===void 0&&e[u]===void 0?(l[u]=void 0,c++):(l[u]=KA(t[u],e[u]),l[u]===t[u]&&t[u]!==void 0&&c++)}return r===a&&c===r?t:l}return e}function vk(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function aI(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function rT(t){if(!oI(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!oI(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function oI(t){return Object.prototype.toString.call(t)==="[object Object]"}function rK(t){return new Promise(e=>{setTimeout(e,t)})}function sT(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?KA(t,e):e}function sK(t,e,n=0){const i=[...t,e];return n&&i.length>n?i.slice(1):i}function aK(t,e,n=0){const i=[e,...t];return n&&i.length>n?i.slice(0,-1):i}var QF=Symbol();function ZF(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===QF?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}var pu,Tc,hm,CL,oK=(CL=class extends Jh{constructor(){super();xe(this,pu);xe(this,Tc);xe(this,hm);fe(this,hm,e=>{if(!Df&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){O(this,Tc)||this.setEventListener(O(this,hm))}onUnsubscribe(){var e;this.hasListeners()||((e=O(this,Tc))==null||e.call(this),fe(this,Tc,void 0))}setEventListener(e){var n;fe(this,hm,e),(n=O(this,Tc))==null||n.call(this),fe(this,Tc,e(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(e){O(this,pu)!==e&&(fe(this,pu,e),this.onFocus())}onFocus(){const e=this.isFocused();
vendor: 30,291 bytes, line 113
113this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof O(this,pu)=="boolean"?O(this,pu):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},pu=new WeakMap,Tc=new WeakMap,hm=new WeakMap,CL),YA=new oK,pm,Pc,mm,jL,lK=(jL=class extends Jh{constructor(){super();xe(this,pm,!0);xe(this,Pc);xe(this,mm);fe(this,mm,e=>{if(!Df&&window.addEventListener){const n=()=>e(!0),i=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",i)}}})}onSubscribe(){O(this,Pc)||this.setEventListener(O(this,mm))}onUnsubscribe(){var e;this.hasListeners()||((e=O(this,Pc))==null||e.call(this),fe(this,Pc,void 0))}setEventListener(e){var n;fe(this,mm,e),(n=O(this,Pc))==null||n.call(this),fe(this,Pc,e(this.setOnline.bind(this)))}setOnline(e){O(this,pm)!==e&&(fe(this,pm,e),this.listeners.forEach(i=>{i(e)}))}isOnline(){return O(this,pm)}},pm=new WeakMap,Pc=new WeakMap,mm=new WeakMap,jL),wk=new lK;function cK(t){return Math.min(1e3*2**t,3e4)}function e6(t){return(t??"online")==="online"?wk.isOnline():!0}var t6=class{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function QC(t){return t instanceof t6}function n6(t){let e=!1,n=0,i=!1,r,s,a;const l=new Promise((b,x)=>{s=b,a=x}),c=b=>{var x;i||(m(new t6(b)),(x=t.abort)==null||x.call(t))},d=()=>{e=!0},u=()=>{e=!1},h=()=>YA.isFocused()&&(t.networkMode==="always"||wk.isOnline())&&t.canRun(),p=()=>e6(t.networkMode)&&t.canRun(),y=b=>{var x;i||(i=!0,(x=t.onSuccess)==null||x.call(t,b),r==null||r(),s(b))},m=b=>{var x;i||(i=!0,(x=t.onError)==null||x.call(t,b),r==null||r(),a(b))},w=()=>new Promise(b=>{var x;r=v=>{(i||h())&&b(v)},(x=t.onPause)==null||x.call(t)}).then(()=>{var b;r=void 0,i||(b=t.onContinue)==null||b.call(t)}),k=()=>{if(i)return;let b;const x=n===0?t.initialPromise:void 0;try{b=x??t.fn()}catch(v){b=Promise.reject(v)}Promise.resolve(b).then(y).catch(v=>{var $;if(i)return;const E=t.retry??(Df?0:3),N=t.retryDelay??cK,S=typeof N=="function"?N(n,v):N,_=E===!0||typeof E=="number"&&n<E||typeof E=="function"&&E(n,v);if(e||!_){m(v);return}n++,($=t.onFail)==null||$.call(t,n,v),rK(S).then(()=>h()?void 0:w()).then(()=>{e?m(v):k()})})};return{promise:l,cancel:c,continue:()=>(r==null||r(),l),cancelRetry:d,continueRetry:u,canStart:p,start:()=>(p()?k():w().then(k),l)}}function dK(){let t=[],e=0,n=p=>{p()},i=p=>{p()},r=p=>setTimeout(p,0);const s=p=>{r=p},a=p=>{let y;e++;try{y=p()}finally{e--,e||d()}return y},l=p=>{e?t.push(p):r(()=>{n(p)})},c=p=>(...y)=>{l(()=>{p(...y)})},d=()=>{const p=t;t=[],p.length&&r(()=>{i(()=>{p.forEach(y=>{n(y)})})})};return{batch:a,batchCalls:c,schedule:l,setNotifyFunction:p=>{n=p},setBatchNotifyFunction:p=>{i=p},setScheduler:s}}var ei=dK(),mu,TL,i6=(TL=class{constructor(){xe(this,mu)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),iT(this.gcTime)&&fe(this,mu,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Df?1/0:5*60*1e3))}clearGcTimeout(){O(this,mu)&&(clearTimeout(O(this,mu)),fe(this,mu,void 0))}},mu=new WeakMap,TL),fm,gm,Qs,mr,uy,fu,Ta,Jo,PL,uK=(PL=class extends i6{constructor(e){super();xe(this,Ta);xe(this,fm);xe(this,gm);xe(this,Qs);xe(this,mr);xe(this,uy);xe(this,fu);fe(this,fu,!1),fe(this,uy,e.defaultOptions),this.setOptions(e.options),this.observers=[],fe(this,Qs,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,fe(this,fm,e.state||hK(this.options)),this.state=O(this,fm),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=O(this,mr))==null?void 0:e.promise}setOptions(e){this.options={...O(this,uy),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&O(this,Qs).remove(this)}setData(e,n){const i=sT(this.state.data,e,this.options);return ye(this,Ta,Jo).call(this,{data:i,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),i}setState(e,n){ye(this,Ta,Jo).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var i,r;const n=(i=O(this,mr))==null?void 0:i.promise;return(r=O(this,mr))==null||r.cancel(e),n?n.then(ia).catch(ia):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(O(this,fm))}isActive(){return this.observers.some(e=>Wa(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(e=0){return this.state.isInvalidated||this.state.data===void 0||!JF(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(i=>i.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=O(this,mr))==null||n.continue()}onOnline(){var n;const e=this.observers.find(i=>i.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=O(this,mr))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),O(this,Qs).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(O(this,mr)&&(O(this,fu)?O(this,mr).cancel({revert:!0}):O(this,mr).cancelRetry()),this.scheduleGc()),O(this,Qs).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ye(this,Ta,Jo).call(this,{type:"invalidate"})}fetch(e,n){var c,d,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(O(this,mr))return O(this,mr).continueRetry(),O(this,mr).promise}if(e&&this.setOptions(e),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const i=new AbortController,r=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(fe(this,fu,!0),i.signal)})},s=()=>{const h=ZF(this.options,n),p={queryKey:this.queryKey,meta:this.meta};return r(p),fe(this,fu,!1),this.options.persister?this.options.persister(h,p,this):h(p)},a={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:s};r(a),(c=this.options.behavior)==null||c.onFetch(a,this),fe(this,gm,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&ye(this,Ta,Jo).call(this,{type:"fetch",meta:(u=a.fetchOptions)==null?void 0:u.meta});const l=h=>{var p,y,m,w;QC(h)&&h.silent||ye(this,Ta,Jo).call(this,{type:"error",error:h}),QC(h)||((y=(p=O(this,Qs).config).onError)==null||y.call(p,h,this),(w=(m=O(this,Qs).config).onSettled)==null||w.call(m,this.state.data,h,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return fe(this,mr,n6({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:i.abort.bind(i),onSuccess:h=>{var p,y,m,w;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(h),(y=(p=O(this,Qs).config).onSuccess)==null||y.call(p,h,this),(w=(m=O(this,Qs).config).onSettled)==null||w.call(m,h,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(h,p)=>{ye(this,Ta,Jo).call(this,{type:"failed",failureCount:h,error:p})},onPause:()=>{ye(this,Ta,Jo).call(this,{type:"pause"})},onContinue:()=>{ye(this,Ta,Jo).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),O(this,mr).start()}},fm=new WeakMap,gm=new WeakMap,Qs=new WeakMap,mr=new WeakMap,uy=new WeakMap,fu=new WeakMap,Ta=new WeakSet,Jo=function(e){const n=i=>{switch(e.type){case"failed":return{...i,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...r6(i.data,this.options),fetchMeta:e.meta??null};case"success":return{...i,data:e.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=e.error;return QC(r)&&r.revert&&O(this,gm)?{...O(this,gm),fetchStatus:"idle"}:{...i,error:r,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...e.state}}};this.state=n(this.state),ei.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),O(this,Qs).notify({query:this,type:"updated",action:e})})},PL);function r6(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:e6(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function hK(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,i=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var lo,EL,pK=(EL=class extends Jh{constructor(e={}){super();xe(this,lo);this.config=e,fe(this,lo,new Map)}build(e,n,i){const r=n.queryKey,s=n.queryHash??qA(r,n);let a=this.get(s);return a||(a=new uK({cache:this,queryKey:r,queryHash:s,options:e.defaultQueryOptions(n),state:i,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){O(this,lo).has(e.queryHash)||(O(this,lo).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=O(this,lo).get(e.queryHash);n&&(e.destroy(),n===e&&O(this,lo).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){ei.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return O(this,lo).get(e)}getAll(){return[...O(this,lo).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(i=>rI(n,i))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(i=>rI(e,i)):n}notify(e){ei.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){ei.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){ei.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},lo=new WeakMap,EL),co,jr,gu,uo,hc,AL,mK=(AL=class extends i6{constructor(e){super();xe(this,uo);xe(this,co);xe(this,jr);xe(this,gu);this.mutationId=e.mutationId,fe(this,jr,e.mutationCache),fe(this,co,[]),this.state=e.state||s6(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){O(this,co).includes(e)||(O(this,co).push(e),this.clearGcTimeout(),O(this,jr).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){fe(this,co,O(this,co).filter(n=>n!==e)),this.scheduleGc(),O(this,jr).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){O(this,co).length||(this.state.status==="pending"?this.scheduleGc():O(this,jr).remove(this))}continue(){var e;return((e=O(this,gu))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var r,s,a,l,c,d,u,h,p,y,m,w,k,b,x,v,E,N,S,_;fe(this,gu,n6({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:($,V)=>{ye(this,uo,hc).call(this,{type:"failed",failureCount:$,error:V})},onPause:()=>{ye(this,uo,hc).call(this,{type:"pause"})},onContinue:()=>{ye(this,uo,hc).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>O(this,jr).canRun(this)}));const n=this.state.status==="pending",i=!O(this,gu).canStart();try{if(!n){ye(this,uo,hc).call(this,{type:"pending",variables:e,isPaused:i}),await((s=(r=O(this,jr).config).onMutate)==null?void 0:s.call(r,e,this));const V=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,e));V!==this.state.context&&ye(this,uo,hc).call(this,{type:"pending",context:V,variables:e,isPaused:i})}const $=await O(this,gu).start();return await((d=(c=O(this,jr).config).onSuccess)==null?void 0:d.call(c,$,e,this.state.context,this)),await((h=(u=this.options).onSuccess)==null?void 0:h.call(u,$,e,this.state.context)),await((y=(p=O(this,jr).config).onSettled)==null?void 0:y.call(p,$,null,this.state.variables,this.state.context,this)),await((w=(m=this.options).onSettled)==null?void 0:w.call(m,$,null,e,this.state.context)),ye(this,uo,hc).call(this,{type:"success",data:$}),$}catch($){try{throw await((b=(k=O(this,jr).config).onError)==null?void 0:b.call(k,$,e,this.state.context,this)),await((v=(x=this.options).onError)==null?void 0:v.call(x,$,e,this.state.context)),await((N=(E=O(this,jr).config).onSettled)==null?void 0:N.call(E,void 0,$,this.state.variables,this.state.context,this)),await((_=(S=this.options).onSettled)==null?void 0:_.call(S,void 0,$,e,this.state.context)),$}finally{ye(this,uo,hc).call(this,{type:"error",error:$})}}finally{O(this,jr).runNext(this)}}},co=new WeakMap,jr=new WeakMap,gu=new WeakMap,uo=new WeakSet,hc=function(e){const n=i=>{switch(e.type){case"failed":return{...i,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...i,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:e.error,failureCount:i.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),ei.batch(()=>{O(this,co).forEach(i=>{i.onMutationUpdate(e)}),O(this,jr).notify({mutation:this,type:"updated",action:e})})},AL);function s6(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var xs,hy,NL,fK=(NL=class extends Jh{constructor(e={}){super();xe(this,xs);xe(this,hy);this.config=e,fe(this,xs,new Map),fe(this,hy,Date.now())}build(e,n,i){const r=new mK({mutationCache:this,mutationId:++lr(this,hy)._,options:e.defaultMutationOptions(n),state:i});return this.add(r),r}add(e){const n=a0(e),i=O(this,xs).get(n)??[];i.push(e),O(this,xs).set(n,i),this.notify({type:"added",mutation:e})}remove(e){var i;const n=a0(e);if(O(this,xs).has(n)){const r=(i=O(this,xs).get(n))==null?void 0:i.filter(s=>s!==e);r&&(r.length===0?O(this,xs).delete(n):O(this,xs).set(n,r))}this.notify({type:"removed",mutation:e})}canRun(e){var i;const n=(i=O(this,xs).get(a0(e)))==null?void 0:i.find(r=>r.state.status==="pending");return!n||n===e}runNext(e){var i;const n=(i=O(this,xs).get(a0(e)))==null?void 0:i.find(r=>r!==e&&r.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){ei.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...O(this,xs).values()].flat()}find(e){const n={exact:!0,...e};return this.getAll().find(i=>sI(n,i))}findAll(e={}){return this.getAll().filter(n=>sI(e,n))}notify(e){ei.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return ei.batch(()=>Promise.all(e.map(n=>n.continue().catch(ia))))}},xs=new WeakMap,hy=new WeakMap,NL);function a0(t){var e;return((e=t.options.scope)==null?void 0:e.id)??String(t.mutationId)}function gK(t){return{onFetch:(e,n)=>{const i=async()=>{var m,w,k,b,x;const r=e.options,s=(k=(w=(m=e.fetchOptions)==null?void 0:m.meta)==null?void 0:w.fetchMore)==null?void 0:k.direction,a=((b=e.state.data)==null?void 0:b.pages)||[],l=((x=e.state.data)==null?void 0:x.pageParams)||[],c={pages:[],pageParams:[]};let d=!1;const u=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(e.signal.aborted?d=!0:e.signal.addEventListener("abort",()=>{d=!0}),e.signal)})},h=ZF(e.options,e.fetchOptions),p=async(v,E,N)=>{if(d)return Promise.reject();if(E==null&&v.pages.length)return Promise.resolve(v);const S={queryKey:e.queryKey,pageParam:E,direction:N?"backward":"forward",meta:e.options.meta};u(S);const _=await h(S),{maxPages:$}=e.options,V=N?aK:sK;return{pages:V(v.pages,_,$),pageParams:V(v.pageParams,E,$)}};let y;if(s&&a.length){const v=s==="backward",E=v?xK:lI,N={pages:a,pageParams:l},S=E(r,N);y=await p(N,S,v)}else{y=await p(c,l[0]??r.initialPageParam);const v=t??a.length;for(let E=1;E<v;E++){const N=lI(r,y);y=await p(y,N)}}return y};e.options.persister?e.fetchFn=()=>{var r,s;return(s=(r=e.options).persister)==null?void 0:s.call(r,i,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=i}}}function lI(t,{pages:e,pageParams:n}){const i=e.length-1;return e.length>0?t.getNextPageParam(e[i],e,n[i],n):void 0}function xK(t,{pages:e,pageParams:n}){var i;return e.length>0?(i=t.getPreviousPageParam)==null?void 0:i.call(t,e[0],e,n[0],n):void 0}var Xn,Ec,Ac,xm,ym,Nc,bm,vm,ML,yK=(ML=class{constructor(t={}){xe(this,Xn);xe(this,Ec);xe(this,Ac);xe(this,xm);xe(this,ym);xe(this,Nc);xe(this,bm);xe(this,vm);fe(this,Xn,t.queryCache||new pK),fe(this,Ec,t.mutationCache||new fK),fe(this,Ac,t.defaultOptions||{}),fe(this,xm,new Map),fe(this,ym,new Map),fe(this,Nc,0)}mount(){lr(this,Nc)._++,O(this,Nc)===1&&(fe(this,bm,YA.subscribe(async t=>{t&&(await this.resumePausedMutations(),O(this,Xn).onFocus())})),fe(this,vm,wk.subscribe(async t=>{t&&(await this.resumePausedMutations(),O(this,Xn).onOnline())})))}unmount(){var t,e;lr(this,Nc)._--,O(this,Nc)===0&&((t=O(this,bm))==null||t.call(this),fe(this,bm,void 0),(e=O(this,vm))==null||e.call(this),fe(this,vm,void 0))}isFetching(t){return O(this,Xn).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return O(this,Ec).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=O(this,Xn).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.getQueryData(t.queryKey);if(e===void 0)return this.fetchQuery(t);{const n=this.defaultQueryOptions(t),i=O(this,Xn).build(this,n);return t.revalidateIfStale&&i.isStaleByTime(im(n.staleTime,i))&&this.prefetchQuery(n),Promise.resolve(e)}}getQueriesData(t){return O(this,Xn).findAll(t).map(({queryKey:e,state:n})=>{const i=n.data;return[e,i]})}setQueryData(t,e,n){const i=this.defaultQueryOptions({queryKey:t}),r=O(this,Xn).get(i.queryHash),s=r==null?void 0:r.state.data,a=iK(e,s);if(a!==void 0)return O(this,Xn).build(this,i).setData(a,{...n,manual:!0})}setQueriesData(t,e,n){return ei.batch(()=>O(this,Xn).findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=O(this,Xn).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=O(this,Xn);ei.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=O(this,Xn),i={type:"active",...t};return ei.batch(()=>(n.findAll(t).forEach(r=>{r.reset()}),this.refetchQueries(i,e)))}cancelQueries(t={},e={}){const n={revert:!0,...e},i=ei.batch(()=>O(this,Xn).findAll(t).map(r=>r.cancel(n)));return Promise.all(i).then(ia).catch(ia)}invalidateQueries(t={},e={}){return ei.batch(()=>{if(O(this,Xn).findAll(t).forEach(i=>{i.invalidate()}),t.refetchType==="none")return Promise.resolve();const n={...t,type:t.refetchType??t.type??"active"};return this.refetchQueries(n,e)})}refetchQueries(t={},e){const n={...e,cancelRefetch:(e==null?void 0:e.cancelRefetch)??!0},i=ei.batch(()=>O(this,Xn).findAll(t).filter(r=>!r.isDisabled()).map(r=>{let s=r.fetch(void 0,n);return n.throwOnError||(s=s.catch(ia)),r.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(i).then(ia)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=O(this,Xn).build(this,e);return n.isStaleByTime(im(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(ia).catch(ia)}fetchInfiniteQuery(t){return t.behavior=gK(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(ia).catch(ia)}resumePausedMutations(){return wk.isOnline()?O(this,Ec).resumePausedMutations():Promise.resolve()}getQueryCache(){return O(this,Xn)}getMutationCache(){return O(this,Ec)}getDefaultOptions(){return O(this,Ac)}setDefaultOptions(t){fe(this,Ac,t)}setQueryDefaults(t,e){O(this,xm).set(_h(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...O(this,xm).values()];let n={};return e.forEach(i=>{Kx(t,i.queryKey)&&(n={...n,...i.defaultOptions})}),n}setMutationDefaults(t,e){O(this,ym).set(_h(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...O(this,ym).values()];let n={};return e.forEach(i=>{Kx(t,i.mutationKey)&&(n={...n,...i.defaultOptions})}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...O(this,Ac).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=qA(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.enabled!==!0&&e.queryFn===QF&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...O(this,Ac).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){O(this,Xn).clear(),O(this,Ec).clear()}},Xn=new WeakMap,Ec=new WeakMap,Ac=new WeakMap,xm=new WeakMap,ym=new WeakMap,Nc=new WeakMap,bm=new WeakMap,vm=new WeakMap,ML),Wr,Qt,py,Tr,xu,wm,ho,my,km,Sm,yu,bu,Mc,Cm,fn,Lg,aT,oT,lT,cT,dT,uT,hT,a6,DL,XA=(DL=class extends Jh{constructor(e,n){super();xe(this,fn);xe(this,Wr);xe(this,Qt);xe(this,py);xe(this,Tr);xe(this,xu);xe(this,wm);xe(this,ho);xe(this,my);xe(this,km);xe(this,Sm);xe(this,yu);xe(this,bu);xe(this,Mc);xe(this,Cm,new Set);this.options=n,fe(this,Wr,e),fe(this,ho,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(O(this,Qt).addObserver(this),cI(O(this,Qt),this.options)?ye(this,fn,Lg).call(this):this.updateResult(),ye(this,fn,cT).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return pT(O(this,Qt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return pT(O(this,Qt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ye(this,fn,dT).call(this),ye(this,fn,uT).call(this),O(this,Qt).removeObserver(this)}setOptions(e,n){const i=this.options,r=O(this,Qt);if(this.options=O(this,Wr).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Wa(this.options.enabled,O(this,Qt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ye(this,fn,hT).call(this),O(this,Qt).setOptions(this.options),i._defaulted&&!vk(this.options,i)&&O(this,Wr).getQueryCache().notify({type:"observerOptionsUpdated",query:O(this,Qt),observer:this});const s=this.hasListeners();s&&dI(O(this,Qt),r,this.options,i)&&ye(this,fn,Lg).call(this),this.updateResult(n),s&&(O(this,Qt)!==r||Wa(this.options.enabled,O(this,Qt))!==Wa(i.enabled,O(this,Qt))||im(this.options.staleTime,O(this,Qt))!==im(i.staleTime,O(this,Qt)))&&ye(this,fn,aT).call(this);const a=ye(this,fn,oT).call(this);s&&(O(this,Qt)!==r||Wa(this.options.enabled,O(this,Qt))!==Wa(i.enabled,O(this,Qt))||a!==O(this,Mc))&&ye(this,fn,lT).call(this,a)}getOptimisticResult(e){const n=O(this,Wr).getQueryCache().build(O(this,Wr),e),i=this.createResult(n,e);return vK(this,i)&&(fe(this,Tr,i),fe(this,wm,this.options),fe(this,xu,O(this,Qt).state)),i}getCurrentResult(){return O(this,Tr)}trackResult(e,n){const i={};return Object.keys(e).forEach(r=>{Object.defineProperty(i,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),n==null||n(r),e[r])})}),i}trackProp(e){O(this,Cm).add(e)}getCurrentQuery(){return O(this,Qt)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=O(this,Wr).defaultQueryOptions(e),i=O(this,Wr).getQueryCache().build(O(this,Wr),n);return i.isFetchingOptimistic=!0,i.fetch().then(()=>this.createResult(i,n))}fetch(e){return ye(this,fn,Lg).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),O(this,Tr)))}createResult(e,n){var _;const i=O(this,Qt),r=this.options,s=O(this,Tr),a=O(this,xu),l=O(this,wm),d=e!==i?e.state:O(this,py),{state:u}=e;let h={...u},p=!1,y;if(n._optimisticResults){const $=this.hasListeners(),V=!$&&cI(e,n),I=$&&dI(e,i,n,r);(V||I)&&(h={...h,...r6(u.data,e.options)}),n._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:m,errorUpdatedAt:w,status:k}=h;if(n.select&&h.data!==void 0)if(s&&h.data===(a==null?void 0:a.data)&&n.select===O(this,my))y=O(this,km);else try{fe(this,my,n.select),y=n.select(h.data),y=sT(s==null?void 0:s.data,y,n),fe(this,km,y),fe(this,ho,null)}catch($){fe(this,ho,$)}else y=h.data;if(n.placeholderData!==void 0&&y===void 0&&k==="pending"){let $;if(s!=null&&s.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData))$=s.data;else if($=typeof n.placeholderData=="function"?n.placeholderData((_=O(this,Sm))==null?void 0:_.state.data,O(this,Sm)):n.placeholderData,n.select&&$!==void 0)try{$=n.select($),fe(this,ho,null)}catch(V){fe(this,ho,V)}$!==void 0&&(k="success",y=sT(s==null?void 0:s.data,$,n),p=!0)}O(this,ho)&&(m=O(this,ho),y=O(this,km),w=Date.now(),k="error");const b=h.fetchStatus==="fetching",x=k==="pending",v=k==="error",E=x&&b,N=y!==void 0;return{status:k,fetchStatus:h.fetchStatus,isPending:x,isSuccess:k==="success",isError:v,isInitialLoading:E,isLoading:E,data:y,dataUpdatedAt:h.dataUpdatedAt,error:m,errorUpdatedAt:w,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>d.dataUpdateCount||h.errorUpdateCount>d.errorUpdateCount,isFetching:b,isRefetching:b&&!x,isLoadingError:v&&!N,isPaused:h.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:v&&N,isStale:JA(e,n),refetch:this.refetch}}updateResult(e){const n=O(this,Tr),i=this.createResult(O(this,Qt),this.options);if(fe(this,xu,O(this,Qt).state),fe(this,wm,this.options),O(this,xu).data!==void 0&&fe(this,Sm,O(this,Qt)),vk(i,n))return;fe(this,Tr,i);const r={},s=()=>{if(!n)return!0;const{notifyOnChangeProps:a}=this.options,l=typeof a=="function"?a():a;if(l==="all"||!l&&!O(this,Cm).size)return!0;const c=new Set(l??O(this,Cm));return this.options.throwOnError&&c.add("error"),Object.keys(O(this,Tr)).some(d=>{const u=d;return O(this,Tr)[u]!==n[u]&&c.has(u)})};(e==null?void 0:e.listeners)!==!1&&s()&&(r.listeners=!0),ye(this,fn,a6).call(this,{...r,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ye(this,fn,cT).call(this)}},Wr=new WeakMap,Qt=new WeakMap,py=new WeakMap,Tr=new WeakMap,xu=new WeakMap,wm=new WeakMap,ho=new WeakMap,my=new WeakMap,km=new WeakMap,Sm=new WeakMap,yu=new WeakMap,bu=new WeakMap,Mc=new WeakMap,Cm=new WeakMap,fn=new WeakSet,Lg=function(e){ye(this,fn,hT).call(this);let n=O(this,Qt).fetch(this.options,e);return e!=null&&e.throwOnError||(n=n.catch(ia)),n},aT=function(){ye(this,fn,dT).call(this);const e=im(this.options.staleTime,O(this,Qt));if(Df||O(this,Tr).isStale||!iT(e))return;const i=JF(O(this,Tr).dataUpdatedAt,e)+1;fe(this,yu,setTimeout(()=>{O(this,Tr).isStale||this.updateResult()},i))},oT=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(O(this,Qt)):this.options.refetchInterval)??!1},lT=function(e){ye(this,fn,uT).call(this),fe(this,Mc,e),!(Df||Wa(this.options.enabled,O(this,Qt))===!1||!iT(O(this,Mc))||O(this,Mc)===0)&&fe(this,bu,setInterval(()=>{(this.options.refetchIntervalInBackground||YA.isFocused())&&ye(this,fn,Lg).call(this)},O(this,Mc)))},cT=function(){ye(this,fn,aT).call(this),ye(this,fn,lT).call(this,ye(this,fn,oT).call(this))},dT=function(){O(this,yu)&&(clearTimeout(O(this,yu)),fe(this,yu,void 0))},uT=function(){O(this,bu)&&(clearInterval(O(this,bu)),fe(this,bu,void 0))},hT=function(){const e=O(this,Wr).getQueryCache().build(O(this,Wr),this.options);if(e===O(this,Qt))return;const n=O(this,Qt);fe(this,Qt,e),fe(this,py,e.state),this.hasListeners()&&(n==null||n.removeObserver(this),e.addObserver(this))},a6=function(e){ei.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(O(this,Tr))}),O(this,Wr).getQueryCache().notify({query:O(this,Qt),type:"observerResultsUpdated"})})},DL);function bK(t,e){return Wa(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function cI(t,e){return bK(t,e)||t.state.data!==void 0&&pT(t,e,e.refetchOnMount)}function pT(t,e,n){if(Wa(e.enabled,t)!==!1){const i=typeof n=="function"?n(t):n;return i==="always"||i!==!1&&JA(t,e)}return!1}function dI(t,e,n,i){return(t!==e||Wa(i.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&JA(t,n)}function JA(t,e){return Wa(e.enabled,t)!==!1&&t.isStaleByTime(im(e.staleTime,t))}function vK(t,e){return!vk(t.getCurrentResult(),e)}function uI(t,e){return t.filter(n=>!e.includes(n))}function wK(t,e,n){const i=t.slice(0);return i[e]=n,i}var vu,Pa,jm,ys,wu,fy,gy,Us,o6,mT,fT,gT,_L,kK=(_L=class extends Jh{constructor(e,n,i){super();xe(this,Us);xe(this,vu);xe(this,Pa);xe(this,jm);xe(this,ys);xe(this,wu);xe(this,fy);xe(this,gy);fe(this,vu,e),fe(this,jm,[]),fe(this,ys,[]),fe(this,Pa,[]),this.setQueries(n)}onSubscribe(){this.listeners.size===1&&O(this,ys).forEach(e=>{e.subscribe(n=>{ye(this,Us,fT).call(this,e,n)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,O(this,ys).forEach(e=>{e.destroy()})}setQueries(e,n,i){fe(this,jm,e),ei.batch(()=>{const r=O(this,ys),s=ye(this,Us,mT).call(this,O(this,jm));s.forEach(d=>d.observer.setOptions(d.defaultedQueryOptions,i));const a=s.map(d=>d.observer),l=a.map(d=>d.getCurrentResult()),c=a.some((d,u)=>d!==r[u]);r.length===a.length&&!c||(fe(this,ys,a),fe(this,Pa,l),this.hasListeners()&&(uI(r,a).forEac
113h(d=>{d.destroy()}),uI(a,r).forEach(d=>{d.subscribe(u=>{ye(this,Us,fT).call(this,d,u)})}),ye(this,Us,gT).call(this)))})}getCurrentResult(){return O(this,Pa)}getQueries(){return O(this,ys).map(e=>e.getCurrentQuery())}getObservers(){return O(this,ys)}getOptimisticResult(e,n){const i=ye(this,Us,mT).call(this,e),r=i.map(s=>s.observer.getOptimisticResult(s.defaultedQueryOptions));return[r,s=>ye(this,Us,o6).call(this,s??r,n),()=>i.map((s,a)=>{const l=r[a];return s.defaultedQueryOptions.notifyOnChangeProps?l:s.observer.trackResult(l,c=>{i.forEach(d=>{d.observer.trackProp(c)})})})]}},vu=new WeakMap,Pa=new WeakMap,jm=new WeakMap,ys=new WeakMap,wu=new WeakMap,fy=new WeakMap,gy=new WeakMap,Us=new WeakSet,o6=function(e,n){return n?((!O(this,wu)||O(this,Pa)!==O(this,gy)||n!==O(this,fy))&&(fe(this,fy,n),fe(this,gy,O(this,Pa)),fe(this,wu,KA(O(this,wu),n(e)))),O(this,wu)):e},mT=function(e){const n=O(this,ys),i=new Map(n.map(h=>[h.options.queryHash,h])),r=e.map(h=>O(this,vu).defaultQueryOptions(h)),s=r.flatMap(h=>{const p=i.get(h.queryHash);return p!=null?[{defaultedQueryOptions:h,observer:p}]:[]}),a=new Set(s.map(h=>h.defaultedQueryOptions.queryHash)),l=r.filter(h=>!a.has(h.queryHash)),c=h=>{const p=O(this,vu).defaultQueryOptions(h);return O(this,ys).find(m=>m.options.queryHash===p.queryHash)??new XA(O(this,vu),p)},d=l.map(h=>({defaultedQueryOptions:h,observer:c(h)})),u=(h,p)=>r.indexOf(h.defaultedQueryOptions)-r.indexOf(p.defaultedQueryOptions);return s.concat(d).sort(u)},fT=function(e,n){const i=O(this,ys).indexOf(e);
113i!==-1&&(fe(this,Pa,wK(O(this,Pa),i,n)),ye(this,Us,gT).call(this))},gT=function(){ei.batch(()=>{this.listeners.forEach(e=>{e(O(this,Pa))})})},_L),Dc,_c,Gr,ol,Hl,Y0,xT,IL,SK=(IL=class extends Jh{constructor(n,i){super();xe(this,Hl);xe(this,Dc);xe(this,_c);xe(this,Gr);xe(this,ol);fe(this,Dc,n),this.setOptions(i),this.bindMethods(),ye(this,Hl,Y0).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var r;const i=this.options;this.options=O(this,Dc).defaultMutationOptions(n),vk(this.options,i)||O(this,Dc).getMutationCache().notify({type:"observerOptionsUpdated",mutation:O(this,Gr),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&_h(i.mutationKey)!==_h(this.options.mutationKey)?this.reset():((r=O(this,Gr))==null?void 0:r.state.status)==="pending"&&O(this,Gr).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=O(this,Gr))==null||n.removeObserver(this)}onMutationUpdate(n){ye(this,Hl,Y0).call(this),ye(this,Hl,xT).call(this,n)}getCurrentResult(){return O(this,_c)}reset(){var n;(n=O(this,Gr))==null||n.removeObserver(this),fe(this,Gr,void 0),ye(this,Hl,Y0).call(this),ye(this,Hl,xT).call(this)}mutate(n,i){var r;return fe(this,ol,i),(r=O(this,Gr))==null||r.removeObserver(this),fe(this,Gr,O(this,Dc).getMutationCache().build(O(this,Dc),this.options)),O(this,Gr).addObserver(this),O(this,Gr).execute(n)}},Dc=new WeakMap,_c=new WeakMap,Gr=new WeakMap,ol=new WeakMap,Hl=new WeakSet,Y0=function(){var i;const n=((i=O(this,Gr))==null?void 0:i.state)??s6();fe(this,_c,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},xT=function(n){ei.batch(()=>{var i,r,s,a,l,c,d,u;if(O(this,ol)&&this.hasListeners()){const h=O(this,_c).variables,p=O(this,_c).context;(n==null?void 0:n.type)==="success"?((r=(i=O(this,ol)).onSuccess)==null||r.call(i,n.data,h,p),(a=(s=O(this,ol)).onSettled)==null||a.call(s,n.data,null,h,p)):(n==null?void 0:n.type)==="error"&&((c=(l=O(this,ol)).onError)==null||c.call(l,n.error,h,p),(u=(d=O(this,ol)).onSettled)==null||u.call(d,void 0,n.error,h,p))}this.listeners.forEach(h=>{h(O(this,_c))})})},IL),l6=Z.createContext(void 0),QA=t=>{const e=Z.useContext(l6);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},CK=({client:t,children:e})=>(Z.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),o.jsx(l6.Provider,{value:t,children:e})),c6=Z.createContext(!1),d6=()=>Z.useContext(c6);c6.Provider;function jK(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var TK=Z.createContext(jK()),u6=()=>Z.useContext(TK);function h6(t,e){return typeof t=="function"?t(...e):!!t}function PK(){}var p6=(t,e)=>{(t.suspense||t.throwOnError)&&(e.isReset()||(t.retryOnMount=!1))},m6=t=>{Z.useEffect(()=>{t.clearReset()},[t])},f6=({result:t,errorResetBoundary:e,throwOnError:n,query:i})=>t.isError&&!e.isReset()&&!t.isFetching&&i&&h6(n,[t.error,i]),g6=t=>{t.suspense&&typeof t.staleTime!="number"&&(t.staleTime=1e3)},EK=(t,e)=>t.isLoading&&t.isFetching&&!e,yT=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,bT=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function AK({queries:t,...e},n){const i=QA(),r=d6(),s=u6(),a=Z.useMemo(()=>t.map(m=>{const w=i.defaultQueryOptions(m);return w._optimisticResults=r?"isRestoring":"optimistic",w}),[t,i,r]);a.forEach(m=>{g6(m),p6(m,s)}),m6(s);const[l]=Z.useState(()=>new kK(i,a,e)),[c,d,u]=l.getOptimisticResult(a,e.combine);Z.useSyncExternalStore(Z.useCallback(m=>r?()=>{}:l.subscribe(ei.batchCalls(m)),[l,r]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),Z.useEffect(()=>{l.setQueries(a,e,{listeners:!1})},[a,e,l]);const p=c.some((m,w)=>yT(a[w],m))?c.flatMap((m,w)=>{const k=a[w];if(k){const b=new XA(i,k);if(yT(k,m))return bT(k,b,s);EK(m,r)&&bT(k,b,s)}return[]}):[];if(p.length>0)throw Promise.all(p);const y=c.find((m,w)=>{const k=a[w];return k&&f6({result:m,errorResetBoundary:s,throwOnError:k.throwOnError,query:i.getQueryCache().get(k.queryHash)})});if(y!=null&&y.error)throw y.error;return d(u())}function NK(t,e,n){var d,u,h,p;
113const i=QA(),r=d6(),s=u6(),a=i.defaultQueryOptions(t);(u=(d=i.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||u.call(d,a),a._optimisticResults=r?"isRestoring":"optimistic",g6(a),p6(a,s),m6(s);const[l]=Z.useState(()=>new e(i,a)),c=l.getOptimisticResult(a);if(Z.useSyncExternalStore(Z.useCallback(y=>{const m=r?()=>{}:l.subscribe(ei.batchCalls(y));return l.updateResult(),m},[l,r]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),Z.useEffect(()=>{l.setOptions(a,{listeners:!1})},[a,l]),yT(a,c))throw bT(a,l,s);if(f6({result:c,errorResetBoundary:s,throwOnError:a.throwOnError,query:i.getQueryCache().get(a.queryHash)}))throw c.error;return(p=(h=i.getDefaultOptions().queries)==null?void 0:h._experimental_afterQuery)==null||p.call(h,a,c),a.notifyOnChangeProps?c:l.trackResult(c)}function Ge(t,e){return NK(t,XA)}function MK(t,e){const n=QA(),[i]=Z.useState(()=>new SK(n,t));Z.useEffect(()=>{i.setOptions(t)},[i,t]);const r=Z.useSyncExternalStore(Z.useCallback(a=>i.subscribe(ei.batchCalls(a)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),s=Z.useCallback((a,l)=>{i.mutate(a,l).catch(PK)},[i]);if(r.error&&h6(i.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:s,mutateAsync:r.mutate}}const DK=async()=>{const t=await He.get("/api/banners?page_name=Home§ion=1");if(!t)throw new Error("Network response was not ok");return t==null?void 0:t.data},_K=()=>Ge({queryKey:["banners"],queryFn:DK,staleTime:1e3*60*60,gcTime:1e3*60*60}),ZA=({addClassName:t})=>o.jsxs("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[o.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),o.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),IK={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class kk{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,n)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||IK,this.options=n,this.debug=n.debug}log(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return this.forward(n,"log","",!0)}warn(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return this.forward(n,"warn","",!0)}error(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return this.forward(n,"error","")}deprecate(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,i,r){return r&&!this.debug?null:(typeof e[0]=="string"&&(e[0]=`${i}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new kk(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new kk(this.logger,e)}}var _o=new kk;class aS{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);const r=this.observers[i].get(n)||0;this.observers[i].set(n,r+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(a=>{let[l,c]=a;for(let d=0;d<c;d++)l(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(a=>{let[l,c]=a;for(let d=0;d<c;d++)l.apply(l,[e,...i])})}}function yg(){let t,e;const n=new Promise((i,r)=>{t=i,e=r});return n.resolve=t,n.reject=e,n}function hI(t){return t==null?"":""+t}function RK(t,e,n){t.forEach(i=>{e[i]&&(n[i]=e[i])})}const OK=/###/g;function fx(t,e,n){function i(l){return l&&l.indexOf("###")>-1?l.replace(OK,"."):l}function r(){return!t||typeof t=="string"}const s=typeof e!="string"?e:e.split(".");let a=0;for(;a<s.length-1;){if(r())return{};const l=i(s[a]);!t[l]&&n&&(t[l]=new n),Object.prototype.hasOwnProperty.call(t,l)?t=t[l]:t={},++a}return r()?{}:{obj:t,k:i(s[a])}}function pI(t,e,n){const{obj:i,k:r}=fx(t,e,Object);if(i!==void 0||e.length===1){i[r]=n;return}let s=e[e.length-1],a=e.slice(0,e.length-1),l=fx(t,a,Object);for(;l.obj===void 0&&a.length;)s=`${a[a.length-1]}.${s}`,a=a.slice(0,a.length-1),l=fx(t,a,Object),l&&l.obj&&typeof l.obj[`${l.k}.${s}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${s}`]=n}function LK(t,e,n,i){const{obj:r,k:s}=fx(t,e,Object);r[s]=r[s]||[],r[s].push(n)}function Sk(t,e){const{obj:n,k:i}=fx(t,e);if(n)return n[i]}function FK(t,e,n){const i=Sk(t,n);return i!==void 0?i:Sk(e,n)}function x6(t,e,n){for(const i in e)i!=="__proto__"&&i!=="constructor"&&(i in t?typeof t[i]=="string"||t[i]instanceof String||typeof e[i]=="string"||e[i]instanceof String?n&&(t[i]=e[i]):x6(t[i],e[i],n):t[i]=e[i]);return t}function vp(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var BK={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function $K(t){return typeof t=="string"?t.replace(/[&<>
113"'\/]/g,e=>BK[e]):t}class HK{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const i=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,i),this.regExpQueue.push(e),i}}const zK=[" ",",","?","!",";"],VK=new HK(20);function UK(t,e,n){e=e||"",n=n||"";const i=zK.filter(a=>e.indexOf(a)<0&&n.indexOf(a)<0);if(i.length===0)return!0;const r=VK.getRegExp(`(${i.map(a=>a==="?"?"\\?":a).join("|")})`);let s=!r.test(t);if(!s){const a=t.indexOf(n);a>0&&!r.test(t.substring(0,a))&&(s=!0)}return s}function vT(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return t[e];const i=e.split(n);let r=t;for(let s=0;s<i.length;){if(!r||typeof r!="object")return;let a,l="";for(let c=s;c<i.length;++c)if(c!==s&&(l+=n),l+=i[c],a=r[l],a!==void 0){if(["string","number","boolean"].indexOf(typeof a)>-1&&c<i.length-1)continue;s+=c-s+1;break}r=a}return r}function Ck(t){return t&&t.indexOf("_")>0?t.replace("_","-"):t}class mI extends aS{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,a=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;e.indexOf(".")>-1?l=e.split("."):(l=[e,n],i&&(Array.isArray(i)?l.push(...i):typeof i=="string"&&s?l.push(...i.split(s)):l.push(i)));const c=Sk(this.data,l);return!c&&!n&&!i&&e.indexOf(".")>-1&&(e=l[0],n=l[1],i=l.slice(2).join(".")),c||!a||typeof i!="string"?c:vT(this.data&&this.data[e]&&this.data[e][n],i,s)}addResource(e,n,i,r){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let l=[e,n];i&&(l=l.concat(a?i.split(a):i)),e.indexOf(".")>-1&&(l=e.split("."),r=n,n=l[1]),this.addNamespaces(n),pI(this.data,l,r),s.silent||this.emit("added",e,n,i,r)}addResources(e,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in i)(typeof i[s]=="string"||Array.isArray(i[s]))&&this.addResource(e,n,s,i[s],{silent:!0});r.silent||this.emit("added",e,n,i)}addResourceBundle(e,n,i,r,s){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[e,n];e.indexOf(".")>-1&&(l=e.split("."),r=i,i=n,n=l[1]),this.addNamespaces(n);let c=Sk(this.data,l)||{};a.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?x6(c,i,s):c={...c,...i},pI(this.data,l,c),a.silent||this.emit("added",e,n,i)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,n)}:this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}}var y6={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,i,r){return t.forEach(s=>{this.processors[s]&&(e=this.processors[s].process(e,n,i,r))}),e}};const fI={};class jk extends aS{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),RK(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
113i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=_o.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const i=this.resolve(e,n);return i&&i.res!==void 0}extractFromKey(e,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const a=i&&e.indexOf(i)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!UK(e,i,r);if(a&&!l){const c=e.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:e,namespaces:s};const d=e.split(i);(i!==r||i===r&&this.options.ns.indexOf(d[0])>-1)&&(s=d.shift()),e=d.join(r)}return typeof s=="string"&&(s=[s]),{key:e,namespaces:s}}translate(e,n,i){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const r=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:a,namespaces:l}=this.extractFromKey(e[e.length-1],n),c=l[l.length-1],d=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&d.toLowerCase()==="cimode"){if(u){const E=n.nsSeparator||this.options.nsSeparator;return r?{res:`${c}${E}${a}`,usedKey:a,exactUsedKey:a,usedLng:d,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${E}${a}`}return r?{res:a,usedKey:a,exactUsedKey:a,usedLng:d,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:a}const h=this.resolve(e,n);let p=h&&h.res;const y=h&&h.usedKey||a,m=h&&h.exactUsedKey||a,w=Object.prototype.toString.apply(p),k=["[object Number]","[object Function]","[object RegExp]"],b=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject;if(x&&p&&(typeof p!="string"&&typeof p!="boolean"&&typeof p!="number")&&k.indexOf(w)<0&&!(typeof b=="string"&&Array.isArray(p))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const E=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,p,{...n,ns:l}):`key '${a} (${this.language})' returned an object instead of string.`;return r?(h.res=E,h.usedParams=this.getUsedParamsDetails(n),h):E}if(s){const E=Array.isArray(p),N=E?[]:{},S=E?m:y;for(const _ in p)if(Object.prototype.hasOwnProperty.call(p,_)){const $=`${S}${s}${_}`;N[_]=this.translate($,{...n,joinArrays:!1,ns:l}),N[_]===$&&(N[_]=p[_])}p=N}}else if(x&&typeof b=="string"&&Array.isArray(p))p=p.join(b),p&&(p=this.extendTranslation(p,e,n,i));else{let E=!1,N=!1;const S=n.count!==void 0&&typeof n.count!="string",_=jk.hasDefaultValue(n),$=S?this.pluralResolver.getSuffix(d,n.count,n):"",V=n.ordinal&&S?this.pluralResolver.getSuffix(d,n.count,{ordinal:!1}):"",I=S&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),A=I&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${$}`]||n[`defaultValue${V}`]||n.defaultValue;!this.isValidLookup(p)&&_&&(E=!0,p=A),this.isValidLookup(p)||(N=!0,p=a);const T=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&N?void 0:p,g=_&&A!==p&&this.options.updateMissing;if(N||E||g){if(this.logger.log(g?"updateKey":"missingKey",d,c,a,g?A:p),s){const C=this.resolve(a,{...n,keySeparator:!1});C&&C.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let f=[];const j=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&j&&j[0])for(let C=0;C<j.length;C++)f.push(j[C]);else this.options.saveMissingTo==="all"?f=this.languageUtils.toResolveHierarchy(n.lng||this.language):f.push(n.lng||this.language);const P=(C,D,M)=>{const z=_&&M!==p?M:T;this.options.missingKeyHandler?this.options.missingKeyHandler(C,c,D,z,g,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(C,c,D,z,g,n),this.emit
vendor: 8,658 bytes, line 113
113("missingKey",C,c,D,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&S?f.forEach(C=>{const D=this.pluralResolver.getSuffixes(C,n);I&&n[`defaultValue${this.options.pluralSeparator}zero`]&&D.indexOf(`${this.options.pluralSeparator}zero`)<0&&D.push(`${this.options.pluralSeparator}zero`),D.forEach(M=>{P([C],a+M,n[`defaultValue${M}`]||A)})}):P(f,a,A))}p=this.extendTranslation(p,e,n,h,i),N&&p===a&&this.options.appendNamespaceToMissingKey&&(p=`${c}:${a}`),(N||E)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${a}`:a,E?p:void 0):p=this.options.parseMissingKeyHandler(p))}return r?(h.res=p,h.usedParams=this.getUsedParamsDetails(n),h):p}extendTranslation(e,n,i,r,s){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});const d=typeof e=="string"&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(d){const p=e.match(this.interpolator.nestingRegexp);u=p&&p.length}let h=i.replace&&typeof i.replace!="string"?i.replace:i;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),e=this.interpolator.interpolate(e,h,i.lng||this.language,i),d){const p=e.match(this.interpolator.nestingRegexp),y=p&&p.length;u<y&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(i.lng=r.usedLng),i.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var p=arguments.length,y=new Array(p),m=0;m<p;m++)y[m]=arguments[m];return s&&s[0]===y[0]&&!i.context?(a.logger.warn(`It seems you are nesting recursively key: ${y[0]} in key: ${n[0]}`),null):a.translate(...y,n)},i)),i.interpolation&&this.interpolator.reset()}const l=i.postProcess||this.options.postProcess,c=typeof l=="string"?[l]:l;return e!=null&&c&&c.length&&i.applyPostProcessor!==!1&&(e=y6.handle(c,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),e}resolve(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,r,s,a,l;return typeof e=="string"&&(e=[e]),e.forEach(c=>{if(this.isValidLookup(i))return;const d=this.extractFromKey(c,n),u=d.key;r=u;let h=d.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const p=n.count!==void 0&&typeof n.count!="string",y=p&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),m=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",w=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);h.forEach(k=>{this.isValidLookup(i)||(l=k,!fI[`${w[0]}-${k}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(fI[`${w[0]}-${k}`]=!0,this.logger.warn(`key "${r}" for languages "${w.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),w.forEach(b=>{if(this.isValidLookup(i))return;a=b;const x=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(x,u,b,k,n);else{let E;p&&(E=this.pluralResolver.getSuffix(b,n.count,n));const N=`${this.options.pluralSeparator}zero`,S=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(x.push(u+E),n.ordinal&&E.indexOf(S)===0&&x.push(u+E.replace(S,this.options.pluralSeparator)),y&&x.push(u+N)),m){const _=`${u}${this.options.contextSeparator}${n.context}`;x.push(_),p&&(x.push(_+E),n.ordinal&&E.indexOf(S)===0&&x.push(_+E.replace(S,this.options.pluralSeparator)),y&&x.push(_+N))}}let v;for(;v=x.pop();)this.isValidLookup(i)||(s=v,i=this.getResource(b,k,v,n))}))})}),{res:i,usedKey:r,exactUsedKey:s,usedLng:a,usedNS:l}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,n,i,r):this.resourceStore.getResource(e,n,i,r)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=e.replace&&typeof e.replace!="string";let r=i?e.replace:e;if(i&&typeof e.count<"u"&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!i){r={...r};for(const s of n)delete r[s]}return r}static hasDefaultValue(e){const n="defaultValue";for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n===i.substring(0,n.length)&&e[i]!==void 0)return!0;return!1}}function ZC(t){return t.charAt(0).toUpperCase()+t.slice(1)}class gI{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=_o.create("languageUtils")}getScriptPartFromCode(e){if(e=Ck(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=Ck(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(typeof e=="string"&&e.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let i=e.split("-");return this.options.lowerCaseLng?i=i.map(r=>r.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=ZC(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=ZC(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=ZC(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(i=>{if(n)return;const r=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&e.forEach(i=>{if(n)return;const r=this.getLanguagePartFromCode(i);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(s=>{if(s===r)return s;if(!(s.indexOf("-")<0&&r.indexOf("-")<0)&&(s.indexOf("-")>0&&r.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===r||s.indexOf(r)===0&&r.length>1))return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),typeof e=="string"&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let i=e[n];return i||(i=e[this.getScriptPartFromCode(n)]),i||(i=e[this.formatLanguageCode(n)]),i||(i=e[this.getLanguagePartFromCode(n)]),i||(i=e.default),i||[]}toResolveHierarchy(e,n){const i=this.getFallbackCodes(n||this.options.fallbackLng||[],e),r=[],s=a=>{a&&(this.isSupportedCode(a)?r.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return typeof e=="string"&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(e))):typeof e=="string"&&s(this.formatLanguageCode(e)),i.forEach(a=>{r.indexOf(a)<0&&s(this.formatLanguageCode(a))}),r}}let WK=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","
113sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],GK={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}};const qK=["v1","v2","v3"],KK=["v4"],xI={zero:0,one:1,two:2,few:3,many:4,other:5};function YK(){const t={};return WK.forEach(e=>{e.lngs.forEach(n=>{t[n]={numbers:e.nr,plurals:GK[e.fc]}})}),t}class XK{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=n,this.logger=_o.create("pluralResolver"),(!this.options.compatibilityJSON||KK.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=YK()}addRule(e,n){this.rules[e]=n}getRule(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Ck(e==="dev"?"en":e),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(e,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(e,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,i).map(r=>`${n}${r}`)}getSuffixes(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(e,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((r,s)=>xI[r]-xI[s]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):i.numbers.map(r=>this.getSuffix(e,r,n)):[]}getSuffix(e,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=this.getRule(e,i);return r?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:this.getSuffixRetroCompatible(r,n):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,n){const i=e.noAbs?e.plurals(n):e.plurals(Math.abs(n));let r=e.numbers[i];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[
vendor: 1,359 bytes, line 113
1130]===1&&(r===2?r="plural":r===1&&(r=""));const s=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return this.options.compatibilityJSON==="v1"?r===1?"":typeof r=="number"?`_plural_${r.toString()}`:s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?s():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!qK.includes(this.options.compatibilityJSON)}}function yI(t,e,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=FK(t,e,n);return!s&&r&&typeof n=="string"&&(s=vT(t,n,i),s===void 0&&(s=vT(e,n,i))),s}class JK{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=_o.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:i,useRawValueToEscape:r,prefix:s,prefixEscaped:a,suffix:l,suffixEscaped:c,formatSeparator:d,unescapeSuffix:u,unescapePrefix:h,nestingPrefix:p,nestingPrefixEscaped:y,nestingSuffix:m,nestingSuffixEscaped:w,nestingOptionsSeparator:k,maxReplaces:b,alwaysFormat:
vendor: 6,343 bytes, line 113
113x}=e.interpolation;this.escape=n!==void 0?n:$K,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=s?vp(s):a||"{{",this.suffix=l?vp(l):c||"}}",this.formatSeparator=d||",",this.unescapePrefix=u?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=p?vp(p):y||vp("$t("),this.nestingSuffix=m?vp(m):w||vp(")"),this.nestingOptionsSeparator=k||",",this.maxReplaces=b||1e3,this.alwaysFormat=x!==void 0?x:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,i)=>n&&n.source===i?(n.lastIndex=0,n):new RegExp(i,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,n,i,r){let s,a,l;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(m){return m.replace(/\$/g,"$$$$")}const u=m=>{if(m.indexOf(this.formatSeparator)<0){const x=yI(n,c,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(x,void 0,i,{...r,...n,interpolationkey:m}):x}const w=m.split(this.formatSeparator),k=w.shift().trim(),b=w.join(this.formatSeparator).trim();return this.format(yI(n,c,k,this.options.keySeparator,this.options.ignoreJSONStructure),b,i,{...r,...n,interpolationkey:k})};this.resetRegExp();const h=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,p=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>d(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?d(this.escape(m)):d(m)}].forEach(m=>{for(l=0;s=m.regex.exec(e);){const w=s[1].trim();if(a=u(w),a===void 0)if(typeof h=="function"){const b=h(e,s,r);a=typeof b=="string"?b:""}else if(r&&Object.prototype.hasOwnProperty.call(r,w))a="";else if(p){a=s[0];continue}else this.logger.warn(`missed to pass in variable ${w} for interpolating ${e}`),a="";else typeof a!="string"&&!this.useRawValueToEscape&&(a=hI(a));const k=m.safeValue(a);if(e=e.replace(s[0],k),p?(m.regex.lastIndex+=a.length,m.regex.lastIndex-=s[0].length):m.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),e}nest(e,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,s,a;function l(c,d){const u=this.nestingOptionsSeparator;if(c.indexOf(u)<0)return c;const h=c.split(new RegExp(`${u}[ ]*{`));let p=`{${h[1]}`;c=h[0],p=this.interpolate(p,a);const y=p.match(/'/g),m=p.match(/"/g);(y&&y.length%2===0&&!m||m.length%2!==0)&&(p=p.replace(/'/g,'"'));try{a=JSON.parse(p),d&&(a={...d,...a})}catch(w){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,w),`${c}${u}${p}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,c}for(;r=this.nestingRegexp.exec(e);){let c=[];a={...i},a=a.replace&&typeof a.replace!="string"?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let d=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){const u=r[1].split(this.formatSeparator).map(h=>h.trim());r[1]=u.shift(),c=u,d=!0}if(s=n(l.call(this,r[1].trim(),a),a),s&&r[0]===e&&typeof s!="string")return s;typeof s!="string"&&(s=hI(s)),s||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),s=""),d&&(s=c.reduce((u,h)=>this.format(u,h,i.lng,{...i,interpolationkey:r[1].trim()}),s.trim())),e=e.replace(r[0],s),this.regexp.lastIndex=0}return e}}function QK(t){let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const i=t.split("(");e=i[0].toLowerCase().trim();const r=i[1].substring(0,i[1].length-1);e==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):e==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(a=>{if(a){const[l,...c]=a.split(":"),d=c.join(":").trim().replace(/^'+|'+$/g,""),u=l.trim();n[u]||(n[u]=d),d==="false"&&(n[u]=!1),d==="true"&&(n[u]=!0),isNaN(d)||(n[u]=parseInt(d,10))}})}return{formatName:e,formatOptions:n}}function wp(t){const e={};return function(i,r,s){const a=r+JSON.stringify(s);let l=e[a];return l||(l=t(Ck(r),s),e[a]=l),l(i)}}class ZK{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=_o.create("formatter"),this.options=e,this.formats={number:wp((n,i)=>{const r=new Intl.NumberFormat(n,{...i});return s=>r.format(s)}),currency:wp((n,i)=>{const r=new Intl.NumberFormat(n,{...i,style:"currency"});return s=>r.format(s)}),datetime:wp((n,i)=>{const r=new Intl.DateTimeFormat(n,{...i});return s=>r.format(s)}),relativetime:wp((n,i)=>{const r=new Intl.RelativeTimeFormat(n,{...i});return s=>r.format(s,i.range||"day")}),list:wp((n,i)=>{const r=new Intl.ListFormat(n,{...i});return s=>r.format(s)})},this.init(e)}init(e){const i=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=wp(n)}format(e,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((l,c)=>{const{formatName:d,formatOptions:u}=QK(c);if(this.formats[d]){let h=l;try{const p=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},y=p.locale||p.lng||r.locale||r.lng||i;h=this.formats[d](l,y,{...u,...r,...p})}catch(p){this.logger.warn(p)}return h}else this.logger.warn(`there was no format function for ${d}`);return l},e)}}function eY(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}class tY extends aS{constructor(e,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=r,this.logger=_o.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,r.backend,r)}queueLoad(e,n,i,r){const s={},a={},l={},c={};return e.forEach(d=>{let u=!0;
vendor: 4,475 bytes, line 113
113n.forEach(h=>{const p=`${d}|${h}`;!i.reload&&this.store.hasResourceBundle(d,h)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?a[p]===void 0&&(a[p]=!0):(this.state[p]=1,u=!1,a[p]===void 0&&(a[p]=!0),s[p]===void 0&&(s[p]=!0),c[h]===void 0&&(c[h]=!0)))}),u||(l[d]=!0)}),(Object.keys(s).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(s),pending:Object.keys(a),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(c)}}loaded(e,n,i){const r=e.split("|"),s=r[0],a=r[1];n&&this.emit("failedLoading",s,a,n),i&&this.store.addResourceBundle(s,a,i,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2;const l={};this.queue.forEach(c=>{LK(c.loaded,[s],a),eY(c,e),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(d=>{l[d]||(l[d]={});const u=c.loaded[d];u.length&&u.forEach(h=>{l[d][h]===void 0&&(l[d][h]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(c=>!c.done)}read(e,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:i,tried:r,wait:s,callback:a});return}this.readingCalls++;const l=(d,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(d&&u&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,i,r+1,s*2,a)},s);return}a(d,u)},c=this.backend[i].bind(this.backend);if(c.length===2){try{const d=c(e,n);d&&typeof d.then=="function"?d.then(u=>l(null,u)).catch(l):l(null,d)}catch(d){l(d)}return}return c(e,n,l)}prepareLoading(e,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();typeof e=="string"&&(e=this.languageUtils.toResolveHierarchy(e)),typeof n=="string"&&(n=[n]);const s=this.queueLoad(e,n,i,r);if(!s.toLoad.length)return s.pending.length||r(),null;s.toLoad.forEach(a=>{this.loadOne(a)})}load(e,n,i){this.prepareLoading(e,n,{},i)}reload(e,n,i){this.prepareLoading(e,n,{reload:!0},i)}loadOne(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const i=e.split("|"),r=i[0],s=i[1];this.read(r,s,"read",void 0,void 0,(a,l)=>{a&&this.logger.warn(`${n}loading namespace ${s} for language ${r} failed`,a),!a&&l&&this.logger.log(`${n}loaded namespace ${s} for language ${r}`,l),this.loaded(e,a,l)})}saveMissing(e,n,i,r,s){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${i}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend&&this.backend.create){const c={...a,isUpdate:s},d=this.backend.create.bind(this.backend);if(d.length<6)try{let u;d.length===5?u=d(e,n,i,r,c):u=d(e,n,i,r),u&&typeof u.then=="function"?u.then(h=>l(null,h)).catch(l):l(null,u)}catch(u){l(u)}else d(e,n,i,r,l,c)}!e||!e[0]||this.store.addResource(e[0],n,i,r)}}}function bI(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let n={};if(typeof e[1]=="object"&&(n=e[1]),typeof e[1]=="string"&&(n.defaultValue=e[1]),typeof e[2]=="str
113ing"&&(n.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const i=e[3]||e[2];Object.keys(i).forEach(r=>{n[r]=i[r]})}return n},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function vI(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function o0(){}function nY(t){Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})}class Yx extends aS{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=vI(e),this.services={},this.logger=_o,this.modules={external:[]},nY(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(){var e=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(i=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const r=bI();this.options={...r,...this.options,...vI(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function s(u){return u?typeof u=="function"?new u:u:null}if(!this.options.isClone){this.modules.logger?_o.init(s(this.modules.logger),this.options):_o.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=ZK);const h=new gI(this.options);this.store=new mI(this.options.resources,this.options);const p=this.services;p.logger=_o,p.resourceStore=this.store,p.languageUtils=h,p.pluralResolver=new XK(h,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(p.formatter=s(u),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new JK(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new tY(s(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(y){for(var m=arguments.length,w=new Array(m>1?m-1:0),k=1;k<m;k++)w[k-1]=arguments[k];e.emit(y,...w)}),this.modules.languageDetector&&(p.languageDetector=s(this.modules.languageDetector),p.languageDetector.init&&p.languageDetector.init(p,this.options.detection,this.options)),this.modules.i18nFormat&&(p.i18nFormat=s(this.modules.i18nFormat),p.i18nFormat.init&&p.i18nFormat.init(this)),this.translator=new jk(this.services,this.options),this.translator.on("*",function(y){for(var m=arguments.length,w=new Array(m>1?m-1:0),k=1;k<m;k++)w[k-1]=arguments[k];e.emit(y,...w)}),this.modules.external.forEach(y=>{y.init&&y.init(this)})}if(this.format=this.options.interpolation.format,i||(i=o0),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=function(){return e.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return e.store[u](...arguments),e}});const c=yg(),d=()=>{const u=(h,p)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit
vendor: 4,351 bytes, line 113
113("initialized",this.options),c.resolve(p),i(h,p)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),c}loadResources(e){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o0;const r=typeof e=="string"?e:this.language;if(typeof e=="function"&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();const s=[],a=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(d=>{d!=="cimode"&&s.indexOf(d)<0&&s.push(d)})};r?a(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>a(c)),this.options.preload&&this.options.preload.forEach(l=>a(l)),this.services.backendConnector.load(s,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(l)})}else i(null)}reloadResources(e,n,i){const r=yg();return e||(e=this.languages),n||(n=this.options.ns),i||(i=o0),this.services.backendConnector.reload(e,n,s=>{r.resolve(),i(s)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&y6.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let n=0;n<this.languages.length;n++){const i=this.languages[n];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(e,n){var i=this;this.isLanguageChangingTo=e;const r=yg();this.emit("languageChanging",e);const s=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},a=(c,d)=>{d?(s(d),this.translator.changeLanguage(d),this.isLanguageChangingTo=void 0,this.emit("languageChanged",d),this.logger.log("languageChanged",d)):this.isLanguageChangingTo=void 0,r.resolve(function(){return i.t(...arguments)}),n&&n(c,function(){return i.t(...arguments)})},l=c=>{!e&&!c&&this.services.languageDetector&&(c=[]);const d=typeof c=="string"?c:this.services.languageUtils.getBestMatchFromCodes(c);d&&(this.language||s(d),this.translator.language||this.translator.changeLanguage(d),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(d)),this.loadResources(d,u=>{a(u,d)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(e),r}getFixedT(e,n,i){var r=this;const s=function(a,l){let c;if(typeof l!="object"){for(var d=arguments.length,u=new Array(d>2?d-2:0),h=2;h<d;h++)u[h-2]=arguments[h];c=r.options.overloadTranslationOptionHandler([a,l].concat(u))}else c={...l};c.lng=c.lng||s.lng,c.lngs=c.lngs||s.lngs,c.ns=c.ns||s.ns,c.keyPrefix=c.keyPrefix||i||s.keyPrefix;const p=r.options.keySeparator||".";let y;return c.keyPrefix&&Array.isArray(a)?y=a.map(m=>`${c.keyPrefix}${p}${m}`):y=c.keyPrefix?`${c.keyPrefix}${p}${a}`:a,r.t(y,c)};return typeof e=="string"?s.lng=e:s.lngs=e,s.ns=n,s.keyPrefix=i,s}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
113if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const i=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const a=(l,c)=>{const d=this.services.backendConnector.state[`${l}|${c}`];return d===-1||d===2};if(n.precheck){const l=n.precheck(this,a);if(l!==void 0)return l}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(i,e)&&(!r||a(s,e)))}loadNamespaces(e,n){const i=yg();return this.options.ns?(typeof e=="string"&&(e=[e]),e.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{i.resolve(),n&&n(r)}),i):(n&&n(),Promise.resolve())}loadLanguages(e,n){const i=yg();typeof e=="string"&&(e=[e]);const r=this.options.preload||[],s=e.filter(a=>r.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return s.length?(this.options.preload=r.concat(s),this.loadResources(a=>{i.resolve(),n&&n(a)}),i):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services&&this.services.languageUtils||new gI(bI());return n.indexOf(i.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Yx(e,n)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o0;const i=e.forkResourceStore;i&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},s=new Yx(r);return(e.debug!==void 0||e.prefix!==void 0)&&(s.logger=s.logger.clone(e)),["store","services","language"].forEach(l=>{s[l]=this[l]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},i&&(s.store=new mI(this.store.data,r),s.services.resourceStore=s.store),s.translator=new jk(s.services,r),s.translator.on("*",function(l){for(var c=arguments.length,d=new Array(c>1?c-1:0),u=1;u<c;u++)d[u-1]=arguments[u];s.emit(l,...d)}),s.init(r,n),s.translator.options=r,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const ar=Yx.createInstance();ar.createInstance=Yx.createInstance;ar.createInstance;ar.dir;ar.init;ar.loadResources;ar.reloadResources;ar.use;ar.changeLanguage;ar.getFixedT;ar.t;ar.exists;ar.setDefaultNamespace;ar.hasLoadedNamespace;ar.loadNamespaces;ar.loadLanguages;const b6=Z.createContext({}),iY=(t,e)=>{switch(e.type){case"SET_LANGUAGE":return{...t,language:e.payload};default:return t}},rY=({children:t})=>{const[e,n]=Z.useReducer(iY,{language:i()});Z.useEffect(()=>{ar.changeLanguage(e.language),localStorage.setItem("language",e.language)},[e.language]);function i(){return localStorage.getItem("language")||"id"}const r=s=>{n({type:"SET_LANGUAGE",payload:s})};return o.jsx(b6.Provider,{value:{language:e.language,setLanguage:r},children:t})},_e=()=>{const t=Z.useContext(b6);if(!t)throw new Error("useLanguage must be used within a LanguageProvider");return t},sY={desktop:{breakpoint:{max:3e3,min:1024},items:1,slidesToSlide:1},tablet:{breakpoint:{max:1024,min:464},items:1,slidesToSlide:1},mobile:{breakpoint:{max:464,min:0},items:1,slidesToSlide:1}},aY=()=>{const{t}=Se(),{language:e}=_e(),{data:n,isLoading:i}=_K();return i?o.jsx("div",{className:"flex justify-center items-center",children:o.jsx(ZA,{addClassName:"animate-spin w-32"})}):o.jsx("section",{className:"relative overflow-hidden w-full text-white md:pt-0 pt-12",children:o.jsxs(Z1,{responsive:sY,infinite:!0,autoPlay:!0,autoPlaySpeed:3e3,className:"hero-carousel",children:[!n&&!i&&[1,2,3,4,5,6].map((r,s)=>o.jsxs("div",{className:on({"hero-slide bg-blue-600 p-10 flex items-center gap-6 justify-start min-h-48 md:min-h-[618px]":!0,"w-full px-2 lg:px-24 xl:px-52":!0,"bg-cover bg-center":!0}),style:{backgroundImage:`url('/jpg/bg/${r}.jpg')`},children:[o.jsx("div",{className:"absolute inset-0 backdrop-brightness-50 bg-white/10"}),o.jsxs("div",{className:"z-50 gap-8",children:[o.jsx("h2",{className:"max-w-md text-5xl font-bold mb-4 leading-tight",children:t("common:home.title")}),o.jsx("p",{className:"max-w-lg text-2xl font-light mb-4",children:t("common:home.subTitle")}),o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx(gk,{}),o.jsx("p",{className:"font-normal text-white text-[22px]",children:"//"}),o.jsx("p",{className:"max-w-64 leading-6 font-normal text-white text-base px-2",children:t("header:tagline")})]})]})]},s)),n&&n.map((r,s)=>o.jsxs("div",{className:on({"hero-slide bg-blue-600 p-10 flex items-center gap-6 justify-start min-h-48 md:min-h-[618px]":!0,"w-full px-2 lg:px-24 xl:px-52":!0,"bg-cover bg-center":!0}),style:{backgroundImage:`url('${ze}/${r.image}')`},children:[o.jsx("div",{className:"absolute inset-0 backdrop-brightness-50 bg-white/10"}),o.jsxs("div",{className:"z-50 gap-8",children:[o.jsx("h2",{className:"max-w-md text-5xl font-bold mb-4 leading-tight",children:e=="en"?r.title:r.title_indo}),o.jsx("p",{className:"max-w-lg text-2xl font-light mb-4",children:e=="en"?r.desc:r.desc_indo}),o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx(gk,{link:r.cta_link,text:e=="en"?r.cta_text:r.cta_text_indo}),o.jsx("p",{className:"font-normal text-white text-[22px]",children:"//"}),o.jsx("p",{className:"max-w-64 leading-6 font-normal text-white text-base px-2",children:e=="en"?r.subtitle:r.subtitle_indo})]})]})]},s))]})})};var v6={exports:{}},oY="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",lY=oY,cY=lY;function w6(){}function k6(){}k6.resetWarningCache=w6;var dY=function(){function t(i,r,s,a,l,c){if(c!==cY){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:k6,resetWarningCache:w6};return n.PropTypes=n,n};v6.exports=dY();var uY=v6.exports;
113const zt=Fr(uY);function hY(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var S6=Z,pY=hY(S6);function wI(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mY(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var fY=!!(typeof window<"u"&&window.document&&window.document.createElement);function gY(t,e,n){if(typeof t!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof e!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof n<"u"&&typeof n!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function i(r){return r.displayName||r.name||"Component"}return function(s){if(typeof s!="function")throw new Error("Expected WrappedComponent to be a React component.");var a=[],l;function c(){l=t(a.map(function(u){return u.props})),d.canUseDOM?e(l):n&&(l=n(l))}var d=function(u){mY(h,u);function h(){return u.apply(this,arguments)||this}h.peek=function(){return l},h.rewind=function(){if(h.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var m=l;return l=void 0,a=[],m};var p=h.prototype;return p.UNSAFE_componentWillMount=function(){a.push(this),c()},p.componentDidUpdate=function(){c()},p.componentWillUnmount=function(){var m=a.indexOf(this);a.splice(m,1),c()},p.render=function(){return pY.createElement(s,this.props)},h}(S6.PureComponent);return wI(d,"displayName","SideEffect("+i(s)+")"),wI(d,"canUseDOM",fY),d}}var xY=gY;const yY=Fr(xY);var bY=typeof Element<"u",vY=typeof Map=="function",wY=typeof Set=="function",kY=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function X0(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var n,i,r;if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(i=n;i--!==0;)if(!X0(t[i],e[i]))return!1;return!0}var s;if(vY&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(s=t.entries();!(i=s.next()).done;)if(!e.has(i.value[0]))return!1;for(s=t.entries();!(i=s.next()).done;)if(!X0(i.value[1],e.get(i.value[0])))return!1;return!0}if(wY&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(s=t.entries();!(i=s.next()).done;)if(!e.has(i.value[0]))return!1;return!0}if(kY&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(n=t.length,n!=e.length)return!1;for(i=n;i--!==0;)if(t[i]!==e[i])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(r=Object.keys(t),n=r.length,n!==Object.keys(e).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,r[i]))return!1;if(bY&&t instanceof Element)return!1;for(i=n;i--!==0;)if(!((r[i]==="_owner"||r[i]==="__v"||r[i]==="__o")&&t.$$typeof)&&!X0(t[r[i]],e[r[i]]))return!1;return!0}return t!==t&&e!==e}var SY=function(e,n){try{return X0(e,n)}catch(i){if((i.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw i}};const CY=Fr(SY);/* 114object-assign 115(c) Sindre Sorhus 116@license MIT
117*/var kI=Object.getOwnPropertySymbols,jY=Object.prototype.hasOwnProperty,TY=Object.prototype.propertyIsEnumerable;function PY(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function EY(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var i=Object.getOwnPropertyNames(e).map(function(s){return e[s]});if(i.join("")!=="0123456789")return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(s){r[s]=s}),Object.keys(Object.assign({},r)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var AY=EY()?Object.assign:function(t,e){for(var n,i=PY(t),r,s=1;s<arguments.length;s++){n=Object(arguments[s]);for(var a in n)jY.call(n,a)&&(i[a]=n[a]);if(kI){r=kI(n);for(var l=0;l<r.length;l++)TY.call(n,r[l])&&(i[r[l]]=n[r[l]])}}return i};const NY=Fr(AY);var wh={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},Pt={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(Pt).map(function(t){return Pt[t]});var Bn={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},Tk={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Xx={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},MY=Object.keys(Tk).reduce(function(t,e){return t[Tk[e]]=e,t},{}),DY=[Pt.NOSCRIPT,Pt.SCRIPT,Pt.STYLE],qa="data-react-helmet",_Y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},IY=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},RY=function(){function t(e,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),Ur=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},OY=function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},SI=function(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n},LY=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t},wT=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},FY=function(e){var n=rm(e,Pt.TITLE),i=rm(e,Xx.TITLE_TEMPLATE);if(i&&n)return i.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var r=rm(e,Xx.DEFAULT_TITLE);return n||r||void 0},BY=function(e){return rm(e,Xx.ON_CHANGE_CLIENT_STATE)||function(){}},e2=function(e,n){return n.filter(function(i){return typeof i[e]<"u"}).map(function(i){return i[e]}).reduce(function(i,r){return Ur({},i,r)},{})},$Y=function(e,n){return n.filter(function(i){return typeof i[Pt.BASE]<"u"}).map(function(i){return i[Pt.BASE]}).reverse().reduce(function(i,r){if(!i.length)for(var s=Object.keys(r),a=0;a<s.length;a++){var l=s[a],c=l.toLowerCase();if(e.indexOf(c)!==-1&&r[c])return i.concat(r)}return i},[])},bg=function(e,n,i){var r={};return i.filter(function(s){return Array.isArray(s[e])?!0:(typeof s[e]<"u"&&UY("Helmet: "+e+' should be of type "Array". Instead found type "'+_Y(s[e])+'"'),!1)}).map(function(s){return s[e]}).reverse().reduce(function(s,a){var l={};a.filter(function(p){for(var y=void 0,m=Object.keys(p),w=0;w<m.length;w++){var k=m[w],b=k.toLowerCase();n.indexOf(b)!==-1&&!(y===Bn.REL&&p[y].toLowerCase()==="canonical")&&!(b===Bn.REL&&p[b].toLowerCase()==="stylesheet")&&(y=b),n.indexOf(k)!==-1&&(k===Bn.INNER_HTML||k===Bn.CSS_TEXT||k===Bn.ITEM_PROP)&&(y=k)}if(!y||!p[y])return!1;var x=p[y].toLowerCase();return r[y]||(r[y]={}),l[y]||(l[y]={}),r[y][x]?!1:(l[y][x]=!0,!0)}
117).reverse().forEach(function(p){return s.push(p)});for(var c=Object.keys(l),d=0;d<c.length;d++){var u=c[d],h=NY({},r[u],l[u]);r[u]=h}return s},[]).reverse()},rm=function(e,n){for(var i=e.length-1;i>=0;i--){var r=e[i];if(r.hasOwnProperty(n))return r[n]}return null},HY=function(e){return{baseTag:$Y([Bn.HREF,Bn.TARGET],e),bodyAttributes:e2(wh.BODY,e),defer:rm(e,Xx.DEFER),encode:rm(e,Xx.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:e2(wh.HTML,e),linkTags:bg(Pt.LINK,[Bn.REL,Bn.HREF],e),metaTags:bg(Pt.META,[Bn.NAME,Bn.CHARSET,Bn.HTTPEQUIV,Bn.PROPERTY,Bn.ITEM_PROP],e),noscriptTags:bg(Pt.NOSCRIPT,[Bn.INNER_HTML],e),onChangeClientState:BY(e),scriptTags:bg(Pt.SCRIPT,[Bn.SRC,Bn.INNER_HTML],e),styleTags:bg(Pt.STYLE,[Bn.CSS_TEXT],e),title:FY(e),titleAttributes:e2(wh.TITLE,e)}},kT=function(){var t=Date.now();return function(e){var n=Date.now();n-t>16?(t=n,e(n)):setTimeout(function(){kT(e)},0)}}(),CI=function(e){return clearTimeout(e)},zY=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||kT:global.requestAnimationFrame||kT,VY=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||CI:global.cancelAnimationFrame||CI,UY=function(e){return console&&typeof console.warn=="function"&&console.warn(e)},vg=null,WY=function(e){vg&&VY(vg),e.defer?vg=zY(function(){jI(e,function(){vg=null})}):(jI(e),vg=null)},jI=function(e,n){var i=e.baseTag,r=e.bodyAttributes,s=e.htmlAttributes,a=e.linkTags,l=e.metaTags,c=e.noscriptTags,d=e.onChangeClientState,u=e.scriptTags,h=e.styleTags,p=e.title,y=e.titleAttributes;ST(Pt.BODY,r),ST(Pt.HTML,s),GY(p,y);var m={baseTag:kp(Pt.BASE,i),linkTags:kp(Pt.LINK,a),metaTags:kp(Pt.META,l),noscriptTags:kp(Pt.NOSCRIPT,c),scriptTags:kp(Pt.SCRIPT,u),styleTags:kp(Pt.STYLE,h)},w={},k={};Object.keys(m).forEach(function(b){var x=m[b],v=x.newTags,E=x.oldTags;v.length&&(w[b]=v),E.length&&(k[b]=m[b].oldTags)}),n&&n(),d(e,w,k)},C6=function(e){return Array.isArray(e)?e.join(""):e},GY=function(e,n){typeof e<"u"&&document.title!==e&&(document.title=C6(e)),ST(Pt.TITLE,n)},ST=function(e,n){var i=document.getElementsByTagName(e)[0];if(i){for(var r=i.getAttribute(qa),s=r?r.split(","):[],a=[].concat(s),l=Object.keys(n),c=0;c<l.length;c++){var d=l[c],u=n[d]||"";i.getAttribute(d)!==u&&i.setAttribute(d,u),s.indexOf(d)===-1&&s.push(d);var h=a.indexOf(d);h!==-1&&a.splice(h,1)}for(var p=a.length-1;p>=0;p--)i.removeAttribute(a[p]);s.length===a.length?i.removeAttribute(qa):i.getAttribute(qa)!==l.join(",")&&i.setAttribute(qa,l.join(","))}},kp=function(e,n){var i=document.head||document.querySelector(Pt.HEAD),r=i.querySelectorAll(e+"["+qa+"]"),s=Array.prototype.slice.call(r),a=[],l=void 0;return n&&n.length&&n.forEach(function(c){var d=document.createElement(e);for(var u in c)if(c.hasOwnProperty(u))if(u===Bn.INNER_HTML)d.innerHTML=c.innerHTML;else if(u===Bn.CSS_TEXT)d.styleSheet?d.styleSheet.cssText=c.cssText:d.appendChild(document.createTextNode(c.cssText));else{var h=typeof c[u]>"u"?"":c[u];d.setAttribute(u,h)}d.setAttribute(qa,"true"),s.some(function(p,y){return l=y,d.isEqualNode(p)})?s.splice(l,1):a.push(d)}),s.forEach(function(c){return c.parentNode.removeChild(c)}),a.forEach(function(c){return i.appendChild(c)}),{oldTags:s,newTags:a}},j6=function(e){return Object.keys(e).reduce(function(n,i){var r=typeof e[i]<"u"?i+'="'+e[i]+'"':""+i;return n?n+" "+r:r},"")},qY=function(e,n,i,r){var s=j6(i),a=C6(n);return s?"<"+e+" "+qa+'="true" '+s+">"+wT(a,r)+"</"+e+">":"<"+e+" "+qa+'="true">'+wT(a,r)+"</"+e+">"},KY=function(e,n,i){return n.reduce(function(r,s){var a=Object.keys(s).filter(function(d){return!(d===Bn.INNER_HTML||d===Bn.CSS_TEXT)}).reduce(function(d,u){var h=typeof s[u]>"u"?u:u+'="'+wT(s[u],i)+'"';return d?d+" "+h:h},""),l=s.innerHTML||s.cssText||"",c=DY.indexOf(e)===-1;return r+"<"+e+" "+qa+'="true" '+a+(c?"/>":">"+l+"</"+e+">")},"")},T6=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(e).reduce(function(i,r){return i[Tk[r]||r]=e[r],i},n)},YY=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(e).reduce(function(i,r){return i[MY[r]||r]=e[r],i},n)},XY=function(e,n,i){var r,s=(r={key:n},r[qa]=!0,r),a=T6(i,s);return[Ie.createElement(Pt.TITLE,a,n)]},JY=function(e,n){return n.map(function(i,r){var s,a=(s={key:r},s[qa]=!0,s);
117return Object.keys(i).forEach(function(l){var c=Tk[l]||l;if(c===Bn.INNER_HTML||c===Bn.CSS_TEXT){var d=i.innerHTML||i.cssText;a.dangerouslySetInnerHTML={__html:d}}else a[c]=i[l]}),Ie.createElement(e,a)})},Go=function(e,n,i){switch(e){case Pt.TITLE:return{toComponent:function(){return XY(e,n.title,n.titleAttributes)},toString:function(){return qY(e,n.title,n.titleAttributes,i)}};case wh.BODY:case wh.HTML:return{toComponent:function(){return T6(n)},toString:function(){return j6(n)}};default:return{toComponent:function(){return JY(e,n)},toString:function(){return KY(e,n,i)}}}},P6=function(e){var n=e.baseTag,i=e.bodyAttributes,r=e.encode,s=e.htmlAttributes,a=e.linkTags,l=e.metaTags,c=e.noscriptTags,d=e.scriptTags,u=e.styleTags,h=e.title,p=h===void 0?"":h,y=e.titleAttributes;return{base:Go(Pt.BASE,n,r),bodyAttributes:Go(wh.BODY,i,r),htmlAttributes:Go(wh.HTML,s,r),link:Go(Pt.LINK,a,r),meta:Go(Pt.META,l,r),noscript:Go(Pt.NOSCRIPT,c,r),script:Go(Pt.SCRIPT,d,r),style:Go(Pt.STYLE,u,r),title:Go(Pt.TITLE,{title:p,titleAttributes:y},r)}},QY=function(e){var n,i;return i=n=function(r){OY(s,r);function s(){return IY(this,s),LY(this,r.apply(this,arguments))}return s.prototype.shouldComponentUpdate=function(l){return!CY(this.props,l)},s.prototype.mapNestedChildrenToProps=function(l,c){if(!c)return null;switch(l.type){case Pt.SCRIPT:case Pt.NOSCRIPT:return{innerHTML:c};case Pt.STYLE:return{cssText:c}}throw new Error("<"+l.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},s.prototype.flattenArrayTypeChildren=function(l){var c,d=l.child,u=l.arrayTypeChildren,h=l.newChildProps,p=l.nestedChildren;return Ur({},u,(c={},c[d.type]=[].concat(u[d.type]||[],[Ur({},h,this.mapNestedChildrenToProps(d,p))]),c))},s.prototype.mapObjectTypeChildren=function(l){var c,d,u=l.child,h=l.newProps,p=l.newChildProps,y=l.nestedChildren;switch(u.type){case Pt.TITLE:return Ur({},h,(c={},c[u.type]=y,c.titleAttributes=Ur({},p),c));case Pt.BODY:return Ur({},h,{bodyAttributes:Ur({},p)});case Pt.HTML:return Ur({},h,{htmlAttributes:Ur({},p)})}return Ur({},h,(d={},d[u.type]=Ur({},p),d))},s.prototype.mapArrayTypeChildrenToProps=function(l,c){var d=Ur({},c);return Object.keys(l).forEach(function(u){var h;d=Ur({},d,(h={},h[u]=l[u],h))}),d}
117,s.prototype.warnOnInvalidChildren=function(l,c){return!0},s.prototype.mapChildrenToProps=function(l,c){var d=this,u={};return Ie.Children.forEach(l,function(h){if(!(!h||!h.props)){var p=h.props,y=p.children,m=SI(p,["children"]),w=YY(m);switch(d.warnOnInvalidChildren(h,y),h.type){case Pt.LINK:case Pt.META:case Pt.NOSCRIPT:case Pt.SCRIPT:case Pt.STYLE:u=d.flattenArrayTypeChildren({child:h,arrayTypeChildren:u,newChildProps:w,nestedChildren:y});break;default:c=d.mapObjectTypeChildren({child:h,newProps:c,newChildProps:w,nestedChildren:y});break}}}),c=this.mapArrayTypeChildrenToProps(u,c),c},s.prototype.render=function(){var l=this.props,c=l.children,d=SI(l,["children"]),u=Ur({},d);return c&&(u=this.mapChildrenToProps(c,u)),Ie.createElement(e,u)},RY(s,null,[{key:"canUseDOM",set:function(l){e.canUseDOM=l}}]),s}(Ie.Component),n.propTypes={base:zt.object,bodyAttributes:zt.object,children:zt.oneOfType([zt.arrayOf(zt.node),zt.node]),defaultTitle:zt.string,defer:zt.bool,encodeSpecialCharacters:zt.bool,htmlAttributes:zt.object,link:zt.arrayOf(zt.object),meta:zt.arrayOf(zt.object),noscript:zt.arrayOf(zt.object),onChangeClientState:zt.func,script:zt.arrayOf(zt.object),style:zt.arrayOf(zt.object),title:zt.string,titleAttributes:zt.object,titleTemplate:zt.string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=e.peek,n.rewind=function(){var r=e.rewind();return r||(r=P6({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),r},i},ZY=function(){return null},eX=yY(HY,WY,P6)(ZY),Pk=QY(eX);Pk.renderStatic=Pk.rewind;const E6=typeof document<"u"?Ie.useLayoutEffect:()=>{};function tX(t){const e=Z.useRef(null);return E6(()=>{e.current=t},[t]),Z.useCallback((...n)=>{const i=e.current;return i==null?void 0:i(...n)},[])}const av=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},lu=t=>t&&"window"in t&&t.window===t?t:av(t).defaultView||window;function A6(t){var e,n,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(n=A6(t[e]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}function ha(){for(var t,e,n=0,i="",r=arguments.length;n<r;n++)(t=arguments[n])&&(e=A6(t))&&(i&&(i+=" "),i+=e);return i}function nX(t){var e;return typeof window>"u"||window.navigator==null?!1:((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands.some(n=>t.test(n.brand)))||t.test(window.navigator.userAgent)}function iX(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function rX(){return iX(/^Mac/i)}function sX(){return nX(/Android/i)}function aX(t){return t.mozInputSource===0&&t.isTrusted?!0:sX()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}class oX{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=e}}function N6(t){let e=Z.useRef({isFocused:!1,observer:null});E6(()=>{const i=e.current;return()=>{i.observer&&(i.observer.disconnect(),i.observer=null)}},[]);let n=tX(i=>{t==null||t(i)});return Z.useCallback(i=>{if(i.target instanceof HTMLButtonElement||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement||i.target instanceof HTMLSelectElement){e.current.isFocused=!0;let r=i.target,s=a=>{e.current.isFocused=!1,r.disabled&&n(new oX("blur",a)),e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};r.addEventListener("focusout",s,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&r.disabled){var a;(a=e.current.observer)===null||a===void 0||a.disconnect();
117let l=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),e.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function lX(t){let{isDisabled:e,onFocus:n,onBlur:i,onFocusChange:r}=t;const s=Z.useCallback(c=>{if(c.target===c.currentTarget)return i&&i(c),r&&r(!1),!0},[i,r]),a=N6(s),l=Z.useCallback(c=>{const d=av(c.target);c.target===c.currentTarget&&d.activeElement===c.target&&(n&&n(c),r&&r(!0),a(c))},[r,n,a]);return{focusProps:{onFocus:!e&&(n||r||i)?l:void 0,onBlur:!e&&(i||r)?s:void 0}}}let ov=null,CT=new Set,gx=new Map,Ih=!1,jT=!1;const cX={Tab:!0,Escape:!0};function eN(t,e){for(let n of CT)n(t,e)}function dX(t){return!(t.metaKey||!rX()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Ek(t){Ih=!0,dX(t)&&(ov="keyboard",eN("keyboard",t))}function oa(t){ov="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(Ih=!0,eN("pointer",t))}function M6(t){aX(t)&&(Ih=!0,ov="virtual")}function D6(t){t.target===window||t.target===document||(!Ih&&!jT&&(ov="virtual",eN("virtual",t)),Ih=!1,jT=!1)}function _6(){Ih=!1,jT=!0}function TT(t){if(typeof window>"u"||gx.get(lu(t)))return;const e=lu(t),n=av(t);let i=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){Ih=!0,i.apply(this,arguments)},n.addEventListener("keydown",Ek,!0),n.addEventListener("keyup",Ek,!0),n.addEventListener("click",M6,!0),e.addEventListener("focus",D6,!0),e.addEventListener("blur",_6,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",oa,!0),n.addEventListener("pointermove",oa,!0),n.addEventListener("pointerup",oa,!0)):(n.addEventListener("mousedown",oa,!0),n.addEventListener("mousemove",oa,!0),n.addEventListener("mouseup",oa,!0)),e.addEventListener("beforeunload",()=>{I6(t)},{once:!0}),gx.set(e,{focus:i})}const I6=(t,e)=>{const n=lu(t),i=av(t);e&&i.removeEventListener("DOMContentLoaded",e),gx.has(n)&&(n.HTMLElement.prototype.focus=gx.get(n).focus,i.removeEventListener("keydown",Ek,!0),i.removeEventListener("keyup",Ek,!0),i.removeEventListener("click",M6,!0),n.removeEventListener("focus",D6,!0),n.removeEventListener("blur",_6,!1),typeof PointerEvent<"u"?(i.removeEventListener("pointerdown",oa,!0),i.removeEventListener("pointermove",oa,!0),i.removeEventListener("pointerup",oa,!0)):(i.removeEventListener("mousedown",oa,!0),i.removeEventListener("mousemove",oa,!0),i.removeEventListener("mouseup",oa,!0)),gx.delete(n))};function uX(t){const e=av(t);let n;return e.readyState!=="loading"?TT(t):(n=()=>{TT(t)},e.addEventListener("DOMContentLoaded",n)),()=>I6(t,n)}typeof document<"u"&&uX();function R6(){return ov!=="pointer"}const hX=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function pX(t,e,n){var i;const r=typeof window<"u"?lu(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,s=typeof window<"u"?lu(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?lu(n==null?void 0:n.target).HTMLElement:HTMLElement,l=typeof window<"u"?lu(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return t=t||(n==null?void 0:n.target)instanceof r&&!hX.has(n==null||(i=n.target)===null||i===void 0?void 0:i.type)||(n==null?void 0:n.target)instanceof s||(n==null?void 0:n.target)instanceof a&&(n==null?void 0:n.target.isContentEditable),!(t&&e==="keyboard"&&n instanceof l&&!cX[n.key])}function mX(t,e,n){TT(),Z.useEffect(()=>{let i=(r,s)=>{pX(!!(n!=null&&n.isTextInput),r,s)&&t(R6())};return CT.add(i),()=>{CT.delete(i)}},e)}function fX(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:i,onFocusWithinChange:r}=t,s=Z.useRef({isFocusWithin:!1}),a=Z.useCallback(d=>{s.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(s.current.isFocusWithin=!1,n&&n(d),r&&r(!1))},[n,r,s]),l=N6(a),c=Z.useCallback(d=>{!s.current.isFocusWithin&&document.activeElement===d.target&&(i&&i(d),r&&r(!0),s.current.isFocusWithin=!0,l(d))},[i,r,l]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:a}}}let Ak=!1,t2=0;function PT(){Ak=!0,setTimeout(()=>{Ak=!1},50)}function TI(t){t.pointerType==="touch"&&PT()}function gX(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",TI):document.addEventListener("touchend",PT),t2++,()=>{t2--,!(t2>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",TI):document.removeEventListener("touchend",PT))}}function tN(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:i,isDisabled:r}=t,[s,a]=Z.useState(!1),l=Z.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;Z.useEffect(gX,[]);let{hoverProps:c,triggerHoverEnd:d}=Z.useMemo(()=>{let u=(y,m)=>
vendor: 4,531 bytes, line 117
117{if(l.pointerType=m,r||m==="touch"||l.isHovered||!y.currentTarget.contains(y.target))return;l.isHovered=!0;let w=y.currentTarget;l.target=w,e&&e({type:"hoverstart",target:w,pointerType:m}),n&&n(!0),a(!0)},h=(y,m)=>{if(l.pointerType="",l.target=null,m==="touch"||!l.isHovered)return;l.isHovered=!1;let w=y.currentTarget;i&&i({type:"hoverend",target:w,pointerType:m}),n&&n(!1),a(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=y=>{Ak&&y.pointerType==="mouse"||u(y,y.pointerType)},p.onPointerLeave=y=>{!r&&y.currentTarget.contains(y.target)&&h(y,y.pointerType)}):(p.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=y=>{!l.ignoreEmulatedMouseEvents&&!Ak&&u(y,"mouse"),l.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=y=>{!r&&y.currentTarget.contains(y.target)&&h(y,"mouse")}),{hoverProps:p,triggerHoverEnd:h}},[e,n,i,r,l]);return Z.useEffect(()=>{r&&d({currentTarget:l.target},l.pointerType)},[r]),{hoverProps:c,isHovered:s}}function nN(t={}){let{autoFocus:e=!1,isTextInput:n,within:i}=t,r=Z.useRef({isFocused:!1,isFocusVisible:e||R6()}),[s,a]=Z.useState(!1),[l,c]=Z.useState(()=>r.current.isFocused&&r.current.isFocusVisible),d=Z.useCallback(()=>c(r.current.isFocused&&r.current.isFocusVisible),[]),u=Z.useCallback(y=>{r.current.isFocused=y,a(y),d()},[d]);mX(y=>{r.current.isFocusVisible=y,d()},[],{isTextInput:n});let{focusProps:h}=lX({isDisabled:i,onFocusChange:u}),{focusWithinProps:p}=fX({isDisabled:!i,onFocusWithinChange:u});return{isFocused:s,isFocusVisible:l,focusProps:i?p:h}}var xX=Object.defineProperty,yX=(t,e,n)=>e in t?xX(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,n2=(t,e,n)=>(yX(t,typeof e!="symbol"?e+"":e,n),n);let bX=class{constructor(){n2(this,"current",this.detect()),n2(this,"handoffState","pending"),n2(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},kh=new bX;function Qh(t){return kh.isServer?null:t instanceof Node?t.ownerDocument:t!=null&&t.hasOwnProperty("current")&&t.current instanceof Node?t.current.ownerDocument:document}function oS(t){typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t).catch(e=>setTimeout(()=>{throw e}))}function _d(){let t=[],e={addEventListener(n,i,r,s){return n.addEventListener(i,r,s),e.add(()=>n.removeEventListener(i,r,s))},requestAnimationFrame(...n){let i=requestAnimationFrame(...n);return e.add(()=>cancelAnimationFrame(i))},nextFrame(...n){return e.requestAnimationFrame(()=>e.requestAnimationFrame(...n))},setTimeout(...n){let i=setTimeout(...n);return e.add(()=>clearTimeout(i))},microTask(...n){let i={current:!0};return oS(()=>{i.current&&n[0]()}),e.add(()=>{i.current=!1})},style(n,i,r){let s=n.style.getPropertyValue(i);return Object.assign(n.style,{[i]:r}),this.add(()=>{Object.assign(n.style,{[i]:s})})},group(n){let i=_d();return n(i),this.add(()=>i.dispose())},add(n){return t.includes(n)||t.push(n),()=>{let i=t.indexOf(n);if(i>=0)for(let r of t.splice(i,1))r()}},dispose(){for(let n of t.splice(0))n()}};return e}function lv(){let[t]=Z.useState(_d);return Z.useEffect(()=>()=>t.dispose(),[t]),t}let Kn=(t,e)=>{kh.isServer?Z.useEffect(t,e):Z.useLayoutEffect(t,e)};function Kl(t){let e=Z.useRef(t);return Kn(()=>{e.current=t},[t]),e}let St=function(t){let e=Kl(t);return Ie.useCallback((...n)=>e.current(...n),[e])};function vX(t){let e=t.width/2,n=t.height/2;return{top:t.clientY-n,right:t.clientX+e,bottom:t.clientY+n,left:t.clientX-e}}function wX(t,e){return!(!t||!e||t.right<e.left||t.left>e.right||t.bottom<e.top||t.top>e.bottom)}function iN({disabled:t=!1}={}){let e=Z.useRef(null),[n,i]=Z.useState(!1),r=lv(),s=St(()=>{e.current=null,i(!1),r.dispose()}),a=St(l=>{if(r.dispose(),e.current===null){e.current=l.currentTarget,i(!0);{let c=Qh(l.currentTarget);r.addEventListener(c,"pointerup",s,!1),r.addEventListener(c,"pointermove",d=>{if(e.current){let u=vX(d);i(wX(u,e.current.getBoundingClientRect()))}},!1),r.addEventListener(c,"pointercancel",s,!1)}}});return{pressed:n,pressProps:t?{}:{onPointerDown:a,onPointerUp:s,onClick:s}}}let kX=Z.createContext(void 0);function O6(){return Z.useContext(kX)}function ET(...t){return Array.from(new Set(t.flatMap(e=>
vendor: 10,569 bytes, lines 117-120
117typeof e=="string"?e.split(" "):[]))).filter(Boolean).join(" ")}function Bi(t,e,...n){if(t in e){let r=e[t];return typeof r=="function"?r(...n):r}let i=new Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map(r=>`"${r}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,Bi),i}var Ho=(t=>(t[t.None=0]="None",t[t.RenderStrategy=1]="RenderStrategy",t[t.Static=2]="Static",t))(Ho||{}),rd=(t=>(t[t.Unmount=0]="Unmount",t[t.Hidden=1]="Hidden",t))(rd||{});function ui({ourProps:t,theirProps:e,slot:n,defaultTag:i,features:r,visible:s=!0,name:a,mergeRefs:l}){l=l??SX;let c=L6(e,t);if(s)return l0(c,n,i,a,l);let d=r??0;if(d&2){let{static:u=!1,...h}=c;if(u)return l0(h,n,i,a,l)}if(d&1){let{unmount:u=!0,...h}=c;return Bi(u?0:1,{0(){return null},1(){return l0({...h,hidden:!0,style:{display:"none"}},n,i,a,l)}})}return l0(c,n,i,a,l)}function l0(t,e={},n,i,r){let{as:s=n,children:a,refName:l="ref",...c}=i2(t,["unmount","static"]),d=t.ref!==void 0?{[l]:t.ref}:{},u=typeof a=="function"?a(e):a;"className"in c&&c.className&&typeof c.className=="function"&&(c.className=c.className(e)),c["aria-labelledby"]&&c["aria-labelledby"]===c.id&&(c["aria-labelledby"]=void 0);let h={};if(e){let p=!1,y=[];for(let[m,w]of Object.entries(e))typeof w=="boolean"&&(p=!0),w===!0&&y.push(m.replace(/([A-Z])/g,k=>`-${k.toLowerCase()}`));if(p){h["data-headlessui-state"]=y.join(" ");for(let m of y)h[`data-${m}`]=""}}if(s===Z.Fragment&&(Object.keys(Wd(c)).length>0||Object.keys(Wd(h)).length>0))if(!Z.isValidElement(u)||Array.isArray(u)&&u.length>1){if(Object.keys(Wd(c)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${i} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(Wd(c)).concat(Object.keys(Wd(h))).map(p=>` - ${p}`).join(` 118`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(p=>` - ${p}`).join(` 119`)].join(` 120`))}else{let p=u.props,y=p==null?void 0:p.className,m=typeof y=="function"?(...b)=>ET(y(...b),c.className):ET(y,c.className),w=m?{className:m}:{},k=L6(u.props,Wd(i2(c,["ref"])));for(let b in h)b in k&&delete h[b];return Z.cloneElement(u,Object.assign({},k,h,d,{ref:r(u.ref,d.ref)},w))}return Z.createElement(s,Object.assign({},i2(c,["ref"]),s!==Z.Fragment&&d,s!==Z.Fragment&&h),u)}function rN(){let t=Z.useRef([]),e=Z.useCallback(n=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(n):i.current=n)},[]);return(...n)=>{if(!n.every(i=>i==null))return t.current=n,e}}function SX(...t){return t.every(e=>e==null)?void 0:e=>{for(let n of t)n!=null&&(typeof n=="function"?n(e):n.current=e)}}function L6(...t){if(t.length===0)return{};if(t.length===1)return t[0];let e={},n={};for(let i of t)for(let r in i)r.startsWith("on")&&typeof i[r]=="function"?(n[r]!=null||(n[r]=[]),n[r].push(i[r])):e[r]=i[r];if(e.disabled||e["aria-disabled"])for(let i in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(i)&&(n[i]=[r=>{var s;return(s=r==null?void 0:r.preventDefault)==null?void 0:s.call(r)}]);for(let i in n)Object.assign(e,{[i](r,...s){let a=n[i];for(let l of a){if((r instanceof Event||(r==null?void 0:r.nativeEvent)instanceof Event)&&r.defaultPrevented)return;l(r,...s)}}});return e}function Rh(...t){if(t.length===0)return{};if(t.length===1)return t[0];let e={},n={};for(let i of t)for(let r in i)r.startsWith("on")&&typeof i[r]=="function"?(n[r]!=null||(n[r]=[]),n[r].push(i[r])):e[r]=i[r];for(let i in n)Object.assign(e,{[i](...r){let s=n[i];for(let a of s)a==null||a(...r)}});return e}function Fn(t){var e;return Object.assign(Z.forwardRef(t),{displayName:(e=t.displayName)!=null?e:t.name})}function Wd(t){let e=Object.assign({},t);for(let n in e)e[n]===void 0&&delete e[n];return e}function i2(t,e=[]){let n=Object.assign({},t);for(let i of e)i in n&&delete n[i];return n}let CX="button";function jX(t,e){var n;let i=O6(),{disabled:r=i||!1,autoFocus:s=!1,...a}=t,{isFocusVisible:l,focusProps:c}=nN({autoFocus:s}),{isHovered:d,hoverProps:u}=tN({isDisabled:r}),{pressed:h,pressProps:p}=iN({disabled:r}),y=Rh({ref:e,type:(n=a.type)!=null?n:"button",disabled:r||void 0,autoFocus:s},c,u,p),m=Z.useMemo(()=>({disabled:r,hover:d,focus:l,active:h,autofocus:s}),[r,d,l,h,s]);return ui({ourProps:y,theirProps:a,slot:m,defaultTag:CX,name:"Button"})}let TX=Fn(jX),PX="span";var Oh=(t=>(t[t.None=1]="None",t[t.Focusable=2]="Focusable",t[t.Hidden=4]="Hidden",t))(Oh||{});function EX(t,e){var n;let{features:i=1,...r}=t,s={ref:e,"aria-hidden":(i&2)===2?!0:(n=r["aria-hidden"])!=null?n:void 0,hidden:(i&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(i&4)===4&&(i&2)!==2&&{display:"none"}}};return ui({ourProps:s,theirProps:r,slot:{},defaultTag:PX,name:"Hidden"})}let _f=Fn(EX);function sN(t){let e=t.parentElement,n=null;for(;e&&!(e instanceof HTMLFieldSetElement);)e instanceof HTMLLegendElement&&(n=e),e=e.parentElement;let i=(e==null?void 0:e.getAttribute("disabled"))==="";return i&&AX(n)?!1:i}function AX(t){if(!t)return!1;let e=t.previousElementSibling;for(;e!==null;){if(e instanceof HTMLLegendElement)return!1;e=e.previousElementSibling}return!0}let F6=Symbol();function aN(t,e=!0){return Object.assign(t,{[F6]:e})}function Ai(...t){let e=Z.useRef(t);Z.useEffect(()=>{e.current=t},[t]);let n=St(i=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(i):r.current=i)});return t.every(i=>i==null||(i==null?void 0:i[F6]))?void 0:n}let oN=Z.createContext(null);oN.displayName="DescriptionContext";function B6(){let t=Z.useContext(oN);if(t===null){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,B6),e}return t}function NX(){let[t,e]=Z.useState([]);return[t.length>0?t.join(" "):void 0,Z.useMemo(()=>function(n){let i=St(s=>(e(a=>[...a,s]),()=>e(a=>{let l=a.slice(),c=l.indexOf(s);return c!==-1&&l.splice(c,1),l}))),r=Z.useMemo(()=>({register:i,slot:n.slot,name:n.name,props:n.props,value:n.value}),[i,n.slot,n.name,n.props,n.value]);return Ie.createElement(oN.Provider,{value:r},n.children)},[e])]}let MX="p";function DX(t,e){let n=Z.useId(),i=O6(),{id:r=`headlessui-description-${n}`,...s}=t,a=B6(),l=Ai(e);Kn(()=>a.register(r),[r,a.register]);let c=i||!1,d=Z.useMemo(()=>({...a.slot,disabled:c}),[a.slot,c]),u={ref:l,...a.props,id:r};return ui({ourProps:u,theirProps:s,slot:d,defaultTag:MX,name:a.name||"Description"})}let _X=Fn(DX),IX=Object.assign(_X,{});var es=(t=>(t.Space=" ",t.Enter="Enter",t.Escape="Escape",t.Backspace="Backspace",t.Delete="Delete",t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Home="Home",t.End="End",t.PageUp="PageUp",t.PageDown="PageDown",t.Tab="Tab",t))(es||{});let $6=Z.createContext(()=>{});function RX(){return Z.useContext($6)}function lN({value:t,children:e}){return Ie.createElement($6.Provider,{value:t},e)}function OX(t,e){let n=RX();return Ie.createElement(TX,{ref:e,...Rh({onClick:n},t)})}let LX=Fn(OX);function FX(t){if(t===null)return{width:0,height:0};let{width:e,height:n}=t.getBoundingClientRect();return{width:e,height:n}}function BX(t,e=!1){let n=t===null?null:"current"in t?t.current:t,[i,r]=Z.useReducer(()=>({}),{}),s=Z.useMemo(()=>FX(n),[n,i]);return Kn(()=>{if(!n)return;let a=new ResizeObserver(r);return a.observe(n),()=>{a.disconnect()}},[n]),e?{width:`${s.width}px`,height:`${s.height}px`}:s}let $X=class extends Map{constructor(e){super(),this.factory=e}get(e){let n=super.get(e);return n===void 0&&(n=this.factory(e),this.set(e,n)),n}};function H6(t,e){let n=t(),i=new Set;return{getSnapshot(){return n},subscribe(r){return i.add(r),()=>i.delete(r)},dispatch(r,...s){let a=e[r].call(n,...s);a&&(n=a,i.forEach(l=>l()))}}}function z6(t){return Z.useSyncExternalStore(t.subscribe,t.getSnapshot,t.getSnapshot)}let HX=new $X(()=>H6(()=>[],{ADD(t){return this.includes(t)?this:[...this,t]},REMOVE(t){let e=this.indexOf(t);if(e===-1)return this;let n=this.slice();return n.splice(e,1),n}}));function qf(t,e){let n=HX.get(e),i=Z.useId(),r=z6(n);if(Kn(()=>{if(t)return n.dispatch("ADD",i),()=>n.dispatch("REMOVE",i)},[n,t]),!t)return!1;let s=r.indexOf(i),a=r.length;return s===-1&&(s=a,a+=1),s===a-1}let AT=new Map,xx=new Map;function PI(t){var e;let n=(e=xx.get(t))!=null?e:0;return xx.set(t,n+1),n!==0?()=>EI(t):(AT.set(t,{"aria-hidden":t.getAttribute("aria-hidden"),inert:t.inert}),t.setAttribute("aria-hidden","true"),t.inert=!0,()=>EI(t))}function EI(t){var e;let n=(e=xx.get(t))!=null?e:1;if(n===1?xx.delete(t):xx.set(t,n-1),n!==1)return;let i=AT.get(t);i&&(i["aria-hidden"]===null?t.removeAttribute("aria-hidden"):t.setAttribute("aria-hidden",i["aria-hidden"]),t.inert=i.inert,AT.delete(t))}function zX(t,{allowed:e,disallowed:n}={}){let i=qf(t,"inert-others");Kn(()=>{var r,s;if(!i)return;let a=_d();for(let c of(r=n==null?void 0:n())!=null?r:[])c&&a.add(PI(c));let l=(s=e==null?void 0:e())!=null?s:[];for(let c of l){if(!c)continue;let d=Qh(c);if(!d)continue;let u=c.parentElement;for(;u&&u!==d.body;){for(let h of u.children)l.some(p=>h.contains(p))||a.add(PI(h));u=u.parentElement}}return a.dispose},[i,e,n])}function cN(t,e,n){let i=Kl(r=>{let s=r.getBoundingClientRect();s.x===0&&s.y===0&&s.width===0&&s.height===0&&n()});Z.useEffect(()=>{if(!t)return;let r=e===null?null:e instanceof HTMLElement?e:e.current;if(!r)return;let s=_d();if(typeof ResizeObserver<"u"){let a=new ResizeObserver(()=>i.current(r));a.observe(r),s.add(()=>a.disconnect())}if(typeof IntersectionObserver<"u"){let a=new IntersectionObserver(()=>i.current(r));a.observe(r),s.add(()=>a.disconnect())}return()=>s.dispose()},[e,i,t])}let Nk=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(t=>`${t}:not([tabindex='-1'])`).join(","),VX=["[data-autofocus]"].map(t=>`${t}:not([tabindex='-1'])`).join(",");var Qi=(t=>(t[t.First=1]="First",t[t.Previous=2]="Previous",t[t.Next=4]="Next",t[t.Last=8]="Last",t[t.WrapAround=16]="WrapAround",t[t.NoScroll=32]="NoScroll",t[t.AutoFocus=64]="AutoFocus",t))(Qi||{}),If=(t=>(t[t.Error=0]="Error",t[t.Overflow=1]="Overflow",t[t.Success=2]="Success",t[t.Underflow=3]="Underflow",t))(If||{}),UX=(t=>(t[t.Previous=-1]="Previous",t[t.Next=1]="Next",t))(UX||{});
120function lS(t=document.body){return t==null?[]:Array.from(t.querySelectorAll(Nk)).sort((e,n)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function WX(t=document.body){return t==null?[]:Array.from(t.querySelectorAll(VX)).sort((e,n)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var dN=(t=>(t[t.Strict=0]="Strict",t[t.Loose=1]="Loose",t))(dN||{});function V6(t,e=0){var n;return t===((n=Qh(t))==null?void 0:n.body)?!1:Bi(e,{0(){return t.matches(Nk)},1(){let i=t;for(;i!==null;){if(i.matches(Nk))return!0;i=i.parentElement}return!1}})}var GX=(t=>(t[t.Keyboard=0]="Keyboard",t[t.Mouse=1]="Mouse",t))(GX||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",t=>{t.metaKey||t.altKey||t.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",t=>{t.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:t.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Ll(t){t==null||t.focus({preventScroll:!0})}let qX=["textarea","input"].join(",");function KX(t){var e,n;return(n=(e=t==null?void 0:t.matches)==null?void 0:e.call(t,qX))!=null?n:!1}function YX(t,e=n=>n){return t.slice().sort((n,i)=>{let r=e(n),s=e(i);if(r===null||s===null)return 0;let a=r.compareDocumentPosition(s);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function pa(t,e,{sorted:n=!0,relativeTo:i=null,skipElements:r=[]}={}){let s=Array.isArray(t)?t.length>0?t[0].ownerDocument:document:t.ownerDocument,a=Array.isArray(t)?n?YX(t):t:e&64?WX(t):lS(t);r.length>0&&a.length>1&&(a=a.filter(y=>!r.some(m=>m!=null&&"current"in m?(m==null?void 0:m.current)===y:m===y))),i=i??s.activeElement;let l=(()=>{if(e&5)return 1;if(e&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(e&1)return 0;if(e&2)return Math.max(0,a.indexOf(i))-1;if(e&4)return Math.max(0,a.indexOf(i))+1;if(e&8)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=e&32?{preventScroll:!0}:{},u=0,h=a.length,p;do{if(u>=h||u+h<=0)return 0;let y=c+u;if(e&16)y=(y+h)%h;else{if(y<0)return 3;if(y>=h)return 1}p=a[y],p==null||p.focus(d),u+=l}while(p!==s.activeElement);return e&6&&KX(p)&&p.select(),2}function U6(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function XX(){return/Android/gi.test(window.navigator.userAgent)}function JX(){return U6()||XX()}function wg(t,e,n,i){let r=Kl(n);Z.useEffect(()=>{if(!t)return;function s(a){r.current(a)}return document.addEventListener(e,s,i),()=>document.removeEventListener(e,s,i)},[t,e,i])}function W6(t,e,n,i){let r=Kl(n);Z.useEffect(()=>{if(!t)return;function s(a){r.current(a)}return window.addEventListener(e,s,i),()=>window.removeEventListener(e,s,i)},[t,e,i])}const AI=30;function G6(t,e,n){let i=qf(t,"outside-click"),r=Kl(n),s=Z.useCallback(function(c,d){if(c.defaultPrevented)return;let u=d(c);if(u===null||!u.getRootNode().contains(u)||!u.isConnected)return;let h=function p(y){return typeof y=="function"?p(y()):Array.isArray(y)||y instanceof Set?y:[y]}(e);for(let p of h){if(p===null)continue;let y=p instanceof HTMLElement?p:p.current;if(y!=null&&y.contains(u)||c.composed&&c.composedPath().includes(y))return}return!V6(u,dN.Loose)&&u.tabIndex!==-1&&c.preventDefault(),r.current(c,u)},[r]),a=Z.useRef(null);wg(i,"pointerdown",c=>{var d,u;a.current=((u=(d=c.composedPath)==null?void 0:d.call(c))==null?void 0:u[0])||c.target},!0),wg(i,"mousedown",c=>{var d,u;a.current=((u=(d=c.composedPath)==null?void 0:d.call(c))==null?void 0:u[0])||c.target},!0),wg(i,"click",c=>{JX()||a.current&&(s(c,()=>a.current),a.current=null)},!0);let l=Z.useRef({x:0,y:0});wg(i,"touchstart",c=>{l.current.x=c.touches[0].clientX,l.current.y=c.touches[0].clientY},!0),wg(i,"touchend",c=>{let d={x:c.changedTouches[0].clientX,y:c.changedTouches[0].clientY};if(!(Math.abs(d.x-l.current.x)>=AI||Math.abs(d.y-l.current.y)>=AI))return s(c,()=>c.target instanceof HTMLElement?c.target:null)},!0),W6(i,"blur",c=>s(c,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Id(...t){return Z.useMemo(()=>Qh(...t),[...t])}function uN(t,e,n,i){let r=Kl(n);Z.useEffect(()=>{t=t??window;function s(a){r.current(a)}return t.addEventListener(e,s,i),()=>t.removeEventListener(e,s,i)},[t,e,i])}function NI(t){var e;if(t.type)return t.type;let n=(e=t.as)!=null?e:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function q6(t,e){let[n,i]=Z.useState(()=>NI(t));return Kn(()=>{i(NI(t))},[t.type,t.as]),Kn(()=>{n||e.current&&e.current instanceof HTMLButtonElement&&!e.current.hasAttribute("type")&&i("button")},[n,e]),n}function QX(){let t;return{before({doc:e}){var n;let i=e.documentElement,r=(n=e.defaultView)!=null?n:window;t=Math.max(0,r.innerWidth-i.clientWidth)},after({doc:e,d:n}){let i=e.documentElement,r=Math.max(0,i.clientWidth-i.offsetWidth),s=Math.max(0,t-r);n.style(i,"paddingRight",`${s}px`)}}}function ZX(){return U6()?{before({doc:t,d:e,meta:n}){function i(r){return n.containers.flatMap(s=>s()).some(s=>s.contains(r))}e.microTask(()=>{var r;if(window.getComputedStyle(t.documentElement).scrollBehavior!=="auto"){let l=_d();l.style(t.documentElement,"scrollBehavior","auto"),e.add(()=>e.microTask(()=>
120l.dispose()))}let s=(r=window.scrollY)!=null?r:window.pageYOffset,a=null;e.addEventListener(t,"click",l=>{if(l.target instanceof HTMLElement)try{let c=l.target.closest("a");if(!c)return;let{hash:d}=new URL(c.href),u=t.querySelector(d);u&&!i(u)&&(a=u)}catch{}},!0),e.addEventListener(t,"touchstart",l=>{if(l.target instanceof HTMLElement)if(i(l.target)){let c=l.target;for(;c.parentElement&&i(c.parentElement);)c=c.parentElement;e.style(c,"overscrollBehavior","contain")}else e.style(l.target,"touchAction","none")}),e.addEventListener(t,"touchmove",l=>{if(l.target instanceof HTMLElement){if(l.target.tagName==="INPUT")return;if(i(l.target)){let c=l.target;for(;c.parentElement&&c.dataset.headlessuiPortal!==""&&!(c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth);)c=c.parentElement;c.dataset.headlessuiPortal===""&&l.preventDefault()}else l.preventDefault()}},{passive:!1}),e.add(()=>{var l;let c=(l=window.scrollY)!=null?l:window.pageYOffset;s!==c&&window.scrollTo(0,s),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})})}}:{}}function eJ(){return{before({doc:t,d:e}){e.style(t.documentElement,"overflow","hidden")}}}function tJ(t){let e={};for(let n of t)Object.assign(e,n(e));return e}let cu=H6(()=>new Map,{PUSH(t,e){var n;let i=(n=this.get(t))!=null?n:{doc:t,count:0,d:_d(),meta:new Set};return i.count++,i.meta.add(e),this.set(t,i),this},POP(t,e){let n=this.get(t);return n&&(n.count--,n.meta.delete(e)),this},SCROLL_PREVENT({doc:t,d:e,meta:n}){let i={doc:t,d:e,meta:tJ(n)},r=[ZX(),QX(),eJ()];r.forEach(({before:s})=>s==null?void 0:s(i)),r.forEach(({after:s})=>s==null?void 0:s(i))},SCROLL_ALLOW({d:t}){t.dispose()},TEARDOWN({doc:t}){this.delete(t)}});cu.subscribe(()=>{let t=cu.getSnapshot(),e=new Map;for(let[n]of t)e.set(n,n.documentElement.style.overflow);for(let n of t.values()){let i=e.get(n.doc)==="hidden",r=n.count!==0;(r&&!i||!r&&i)&&cu.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&cu.dispatch("TEARDOWN",n)}});function nJ(t,e,n=()=>({containers:[]})){let i=z6(cu),r=e?i.get(e):void 0,s=r?r.count>0:!1;return Kn(()=>{if(!(!e||!t))return cu.dispatch("PUSH",e,n),()=>cu.dispatch("POP",e,n)},[t,e]),s}function K6(t,e,n=()=>[document.body]){let i=qf(t,"scroll-lock");nJ(i,e,r=>{var s;return{containers:[...(s=r.containers)!=null?s:[],n]}})}function iJ(t){let e={called:!1};return(...n)=>{if(!e.called)return e.called=!0,t(...n)}}function rJ(t=0){let[e,n]=Z.useState(t),i=Z.useCallback(c=>n(c),[e]),r=Z.useCallback(c=>n(d=>d|c),[e]),s=Z.useCallback(c=>(e&c)===c,[e]),a=Z.useCallback(c=>n(d=>d&~c),[n]),l=Z.useCallback(c=>n(d=>d^c),[n]);return{flags:e,setFlag:i,addFlag:r,hasFlag:s,removeFlag:a,toggleFlag:l}}var sJ=(t=>(t[t.None=0]="None",t[t.Closed=1]="Closed",t[t.Enter=2]="Enter",t[t.Leave=4]="Leave",t))(sJ||{});function cS(t){let e={};for(let n in t)t[n]===!0&&(e[`data-${n}`]="");return e}function dS(t,e,n,i){let[r,s]=Z.useState(n),{hasFlag:a,addFlag:l,removeFlag:c}=rJ(t&&r?3:0),d=Z.useRef(!1),u=Z.useRef(!1),h=lv();return Kn(function p(){var y;if(!t)return;n&&s(!0);let m=e.current;return m?((y=i==null?void 0:i.start)==null||y.call(i,n),aJ(m,{inFlight:d,prepare(){u.current?u.current=!1:u.current=d.current,d.current=!0,!u.current&&(n?(l(3),c(4)):(l(4),c(2)))},run(){u.current?n?(c(3),l(4)):(c(4),l(3)):n?c(1):l(1)},done(){var w;u.current&&typeof m.getAnimations=="function"&&m.getAnimations().length>0||(d.current=!1,c(7),n||s(!1),(w=i==null?void 0:i.end)==null||w.call(i,n))}})):n?(l(3),h.nextFrame(()=>p())):void 0},[t,n,e,h]),t?[r,{closed:a(1),enter:a(2),leave:a(4),transition:a(2)||a(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function aJ(t,{prepare:e,run:n,done:i,inFlight:r}){let s=_d();return lJ(t,{prepare:e,inFlight:r}),s.nextFrame(()=>{s.add(oJ(t,i)),n()}),s.dispose}function oJ(t,e){let n=iJ(e),i=_d();if(!t)return i.dispose;let{transitionDuration:r,transitionDelay:s}=getComputedStyle(t),[a,l]=[r,s].map(d=>{let[u=0]=d.split(",").filter(Boolean).map(h=>h.includes("ms")?parseFloat(h):parseFloat(h)*1e3).sort((h,p)=>p-h);return u}),c=a+l;if(c!==0){let d=i.group(u=>{let h=u.setTimeout(()=>{n(),u.dispose()},c);u.addEventListener(t,"transitionrun",p=>{p.target===p.currentTarget&&(h(),u.addEventListener(t,"transitioncancel",y=>{y.target===y.currentTarget&&(n(),d())}))})});i.addEventListener(t,"transitionend",u=>{u.target===u.currentTarget&&(n(),i.dispose())})}else n();return i.dispose}function lJ(t,{inFlight:e,prepare:n}){if(e!=null&&e.current){n();return}let i=t.style.transition;t.style.transition="none",n(),t.offsetHeight,t.style.transition=i}function hN(t,e){let n=Z.useRef([]),i=St(t);Z.useEffect(()=>{let r=[...n.current];for(let[s,a]of e.entries())if(n.current[s]!==a){let l=i(e,r);return n.current=e,l}},[i,...e])}function Kf(t){return Y6(t)?(t.nodeName||"").toLowerCase():"#document"}function Hs(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function tc(t){var e;return(e=(Y6(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Y6(t){return t instanceof Node||t instanceof Hs(t).Node}function ns(t){return t instanceof Element||t instanceof Hs(t).Element}function zo(t){return t instanceof HTMLElement||t instanceof Hs(t).HTMLElement}function MI(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Hs(t).ShadowRoot}function cv(t){const{overflow:e,overflowX:n,overflowY:i,display:r}=Qa(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(r)}function cJ(t){return["table","td","th"].includes(Kf(t))}function uS(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function pN(t){const e=mN(),n=Qa(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(n.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(n.contain||"").includes(i))}function dJ(t){let e=kd(t);for(;zo(e)&&!Rf(e);){if(uS(e))return null;if(pN(e))return e;e=kd(e)}return null}function mN(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Rf(t){return["html","body","#document"].includes(Kf(t))}function Qa(t){return Hs(t).getComputedStyle(t)}function hS(t){return ns(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function kd(t){if(Kf(t)==="html")return t;const e=t.assignedSlot||t.parentNode||MI(t)&&t.host||tc(t);return MI(e)?e.host:e}function X6(t){const e=kd(t);return Rf(e)?t.ownerDocument?t.ownerDocument.body:t.body:zo(e)&&cv(e)?e:X6(e)}function Jx(t,e,n){var i;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=X6(t),s=r===((i=t.ownerDocument)==null?void 0:i.body),a=Hs(r);
vendor: 5,454 bytes, line 120
120return s?e.concat(a,a.visualViewport||[],cv(r)?r:[],a.frameElement&&n?Jx(a.frameElement):[]):e.concat(r,Jx(r,[],n))}function uJ(){const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t.brands.map(e=>{let{brand:n,version:i}=e;return n+"/"+i}).join(" "):navigator.userAgent}const sd=Math.min,Is=Math.max,Mk=Math.round,c0=Math.floor,Sd=t=>({x:t,y:t}),hJ={left:"right",right:"left",bottom:"top",top:"bottom"},pJ={start:"end",end:"start"};function DI(t,e,n){return Is(t,sd(e,n))}function Yf(t,e){return typeof t=="function"?t(e):t}function Cd(t){return t.split("-")[0]}function dv(t){return t.split("-")[1]}function J6(t){return t==="x"?"y":"x"}function Q6(t){return t==="y"?"height":"width"}function Lh(t){return["top","bottom"].includes(Cd(t))?"y":"x"}function Z6(t){return J6(Lh(t))}function mJ(t,e,n){n===void 0&&(n=!1);const i=dv(t),r=Z6(t),s=Q6(r);let a=r==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=Dk(a)),[a,Dk(a)]}function fJ(t){const e=Dk(t);return[NT(t),e,NT(e)]}function NT(t){return t.replace(/start|end/g,e=>pJ[e])}function gJ(t,e,n){const i=["left","right"],r=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:i:e?i:r;case"left":case"right":return e?s:a;default:return[]}}function xJ(t,e,n,i){const r=dv(t);let s=gJ(Cd(t),n==="start",i);return r&&(s=s.map(a=>a+"-"+r),e&&(s=s.concat(s.map(NT)))),s}function Dk(t){return t.replace(/left|right|bottom|top/g,e=>hJ[e])}function yJ(t){return{top:0,right:0,bottom:0,left:0,...t}}function bJ(t){return typeof t!="number"?yJ(t):{top:t,right:t,bottom:t,left:t}}function _k(t){const{x:e,y:n,width:i,height:r}=t;return{width:i,height:r,top:n,left:e,right:e+i,bottom:n+r,x:e,y:n}}function _I(t,e,n){let{reference:i,floating:r}=t;const s=Lh(e),a=Z6(e),l=Q6(a),c=Cd(e),d=s==="y",u=i.x+i.width/2-r.width/2,h=i.y+i.height/2-r.height/2,p=i[l]/2-r[l]/2;let y;switch(c){case"top":y={x:u,y:i.y-r.height};break;case"bottom":y={x:u,y:i.y+i.height};break;case"right":y={x:i.x+i.width,y:h};break;case"left":y={x:i.x-r.width,y:h};break;default:y={x:i.x,y:i.y}}switch(dv(e)){case"start":y[a]-=p*(n&&d?-1:1);break;case"end":y[a]+=p*(n&&d?-1:1);break}return y}const vJ=async(t,e,n)=>{const{placement:i="bottom",strategy:r="absolute",middleware:s=[],platform:a}=n,l=s.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(e));let d=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:u,y:h}=_I(d,i,c),p=i,y={},m=0;for(let w=0;w<l.length;w++){const{name:k,fn:b}=l[w],{x,y:v,data:E,reset:N}=await b({x:u,y:h,initialPlacement:i,placement:p,strategy:r,middlewareData:y,rects:d,platform:a,elements:{reference:t,floating:e}});u=x??u,h=v??h,y={...y,[k]:{...y[k],...E}},N&&m<=50&&(m++,typeof N=="object"&&(N.placement&&(p=N.placement),N.rects&&(d=N.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:r}):N.rects),{x:u,y:h}=_I(d,p,c)),w=-1)}return{x:u,y:h,placement:p,strategy:r,middlewareData:y}};async function pS(t,e){var n;e===void 0&&(e={});const{x:i,y:r,platform:s,rects:a,elements:l,strategy:c}=t,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:p=!1,padding:y=0}=Yf(e,t),m=bJ(y),k=l[p?h==="floating"?"reference":"floating":h],b=_k(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(k)))==null||n?k:k.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:d,rootBoundary:u,strategy:c})),x=h==="floating"?{x:i,y:r,width:a.floating.width,height:a.floating.height}:a.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),E=await(s.isElement==null?void 0:s.isElement(v))?await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1}:{x:1,y:1},N=_k(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:x,offsetParent:v,strategy:c}):x);return{top:(b.top-N.top+m.top)/E.y,bottom:(N.bottom-b.bottom+m.bottom)/E.y,left:(b.left-N.left+m.left)/E.x,right:(N.right-b.right+m.right)/E.x}}const wJ=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:r,middlewareData:s,rects:a,initialPlacement:l,platform:c,elements:d}=e,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:w=!0,...k}=Yf(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=Cd(r),x=Lh(l),v=Cd(l)===l,E=await(c.isRTL==null?void 0:c.isRTL(d.floating)),N=p||(v||!w?[Dk(l)]:fJ(l)),S=m!=="none";!p&&S&&N.push(...xJ(l,w,m,E));const _=[l,...N],$=await pS(e,k),V=[];let I=((i=s.flip)==null?void 0:i.overflows)||[];if(u&&V.push($[b]),h){const g=mJ(r,a,E);V.push($[g[0]],$[g[1]])}if(I=[...I,{placement:r,overflows:V}],!V.every(g=>g<=0)){var A,L;const g=(((A=s.flip)==null?void 0:A.index)||0)+1,f=_[g];if(f)return{data:{index:g,overflows:I},reset:{placement:f}};let j=(L=I.filter(P=>P.overflows[0]<=0).sort((P,C)=>P.overflows[1]-C.overflows[1])[0])==null?void 0:L.placement;if(!j)switch(y){case"bestFit":{var T;const P=(T=I.filter(C=>{if(S){const D=Lh(C.placement);return D===x||D==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(D=>D>0).reduce((D,M)=>D+M,0)]).sort((C,D)=>C[1]-D[1])[0])==null?void 0:T[0];P&&(j=P);break}case"initialPlacement":j=l;break}if(r!==j)return{reset:{placement:j}}}return{}}}};async function kJ(t,e){const{placement:n,platform:i,elements:r}
vendor: 2,600 bytes, line 120
120=t,s=await(i.isRTL==null?void 0:i.isRTL(r.floating)),a=Cd(n),l=dv(n),c=Lh(n)==="y",d=["left","top"].includes(a)?-1:1,u=s&&c?-1:1,h=Yf(e,t);let{mainAxis:p,crossAxis:y,alignmentAxis:m}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return l&&typeof m=="number"&&(y=l==="end"?m*-1:m),c?{x:y*u,y:p*d}:{x:p*d,y:y*u}}const SJ=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,i;const{x:r,y:s,placement:a,middlewareData:l}=e,c=await kJ(e,t);return a===((n=l.offset)==null?void 0:n.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:r+c.x,y:s+c.y,data:{...c,placement:a}}}}},CJ=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:r}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:k=>{let{x:b,y:x}=k;return{x:b,y:x}}},...c}=Yf(t,e),d={x:n,y:i},u=await pS(e,c),h=Lh(Cd(r)),p=J6(h);let y=d[p],m=d[h];if(s){const k=p==="y"?"top":"left",b=p==="y"?"bottom":"right",x=y+u[k],v=y-u[b];y=DI(x,y,v)}if(a){const k=h==="y"?"top":"left",b=h==="y"?"bottom":"right",x=m+u[k],v=m-u[b];m=DI(x,m,v)}const w=l.fn({...e,[p]:y,[h]:m});return{...w,data:{x:w.x-n,y:w.y-i}}}}},jJ=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:i,platform:r,elements:s}=e,{apply:a=()=>{},...l}=Yf(t,e),c=await pS(e,l),d=Cd(n),u=dv(n),h=Lh(n)==="y",{width:p,height:y}=i.floating;let m,w;d==="top"||d==="bottom"?(m=d,w=u===(await(r.isRTL==null?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(w=d,m=u==="end"?"top":"bottom");const k=y-c.top-c.bottom,b=p-c.left-c.right,x=sd(y-c[m],k),v=sd(p-c[w],b),E=!e.middlewareData.shift;let N=x,S=v;if(h?S=u||E?sd(v,b):b:N=u||E?sd(x,k):k,E&&!u){const $=Is(c.left,0),V=Is(c.right,0),I=Is(c.top,0),A=Is(c.bottom,0);h?S=p-2*($!==0||V!==0?$+V:Is(c.left,c.right)):N=y-2*(I!==0||A!==0?I+A:Is(c.top,c.bottom))}await a({...e,availableWidth:S,availableHeight:N});const _=await r.getDimensions(s.floating);return p!==_.width||y!==_.height?{reset:{rects:!0}}:{}}}};function e5(t){const e=Qa(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=zo(t),s=r?t.offsetWidth:n,a=r?t.offsetHeight:i,l=Mk(n)!==s||Mk(i)!==a;return l&&(n=s,i=a),{width:n,height:i,$:l}}function fN(t){return ns(t)?t:t.contextElement}function sm(t){const e=fN(t);if(!zo(e))return Sd(1);const n=e.getBoundingClientRect(),{width:i,height:r,$:s}=e5(e);let a=(s?Mk(n.width):n.width)/i,l=(s?Mk(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const TJ=Sd(0);function t5(t){const e=Hs(t);
vendor: 6,195 bytes, line 120
120return!mN()||!e.visualViewport?TJ:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function PJ(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Hs(t)?!1:e}function Fh(t,e,n,i){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),s=fN(t);let a=Sd(1);e&&(i?ns(i)&&(a=sm(i)):a=sm(t));const l=PJ(s,n,i)?t5(s):Sd(0);let c=(r.left+l.x)/a.x,d=(r.top+l.y)/a.y,u=r.width/a.x,h=r.height/a.y;if(s){const p=Hs(s),y=i&&ns(i)?Hs(i):i;let m=p,w=m.frameElement;for(;w&&i&&y!==m;){const k=sm(w),b=w.getBoundingClientRect(),x=Qa(w),v=b.left+(w.clientLeft+parseFloat(x.paddingLeft))*k.x,E=b.top+(w.clientTop+parseFloat(x.paddingTop))*k.y;c*=k.x,d*=k.y,u*=k.x,h*=k.y,c+=v,d+=E,m=Hs(w),w=m.frameElement}}return _k({width:u,height:h,x:c,y:d})}function EJ(t){let{elements:e,rect:n,offsetParent:i,strategy:r}=t;const s=r==="fixed",a=tc(i),l=e?uS(e.floating):!1;if(i===a||l&&s)return n;let c={scrollLeft:0,scrollTop:0},d=Sd(1);const u=Sd(0),h=zo(i);if((h||!h&&!s)&&((Kf(i)!=="body"||cv(a))&&(c=hS(i)),zo(i))){const p=Fh(i);d=sm(i),u.x=p.x+i.clientLeft,u.y=p.y+i.clientTop}return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+u.x,y:n.y*d.y-c.scrollTop*d.y+u.y}}function AJ(t){return Array.from(t.getClientRects())}function n5(t){return Fh(tc(t)).left+hS(t).scrollLeft}function NJ(t){const e=tc(t),n=hS(t),i=t.ownerDocument.body,r=Is(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),s=Is(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-n.scrollLeft+n5(t);const l=-n.scrollTop;return Qa(i).direction==="rtl"&&(a+=Is(e.clientWidth,i.clientWidth)-r),{width:r,height:s,x:a,y:l}}function MJ(t,e){const n=Hs(t),i=tc(t),r=n.visualViewport;let s=i.clientWidth,a=i.clientHeight,l=0,c=0;if(r){s=r.width,a=r.height;const d=mN();(!d||d&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:s,height:a,x:l,y:c}}function DJ(t,e){const n=Fh(t,!0,e==="fixed"),i=n.top+t.clientTop,r=n.left+t.clientLeft,s=zo(t)?sm(t):Sd(1),a=t.clientWidth*s.x,l=t.clientHeight*s.y,c=r*s.x,d=i*s.y;return{width:a,height:l,x:c,y:d}}function II(t,e,n){let i;if(e==="viewport")i=MJ(t,n);else if(e==="document")i=NJ(tc(t));else if(ns(e))i=DJ(e,n);else{const r=t5(t);i={...e,x:e.x-r.x,y:e.y-r.y}}return _k(i)}function i5(t,e){const n=kd(t);return n===e||!ns(n)||Rf(n)?!1:Qa(n).position==="fixed"||i5(n,e)}function _J(t,e){const n=e.get(t);if(n)return n;let i=Jx(t,[],!1).filter(l=>ns(l)&&Kf(l)!=="body"),r=null;const s=Qa(t).position==="fixed";let a=s?kd(t):t;for(;ns(a)&&!Rf(a);){const l=Qa(a),c=pN(a);!c&&l.position==="fixed"&&(r=null),(s?!c&&!r:!c&&l.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||cv(a)&&!c&&i5(t,a))?i=i.filter(u=>u!==a):r=l,a=kd(a)}return e.set(t,i),i}function IJ(t){let{element:e,boundary:n,rootBoundary:i,strategy:r}=t;const a=[...n==="clippingAncestors"?uS(e)?[]:_J(e,this._c):[].concat(n),i],l=a[0],c=a.reduce((d,u)=>{const h=II(e,u,r);return d.top=Is(h.top,d.top),d.right=sd(h.right,d.right),d.bottom=sd(h.bottom,d.bottom),d.left=Is(h.left,d.left),d},II(e,l,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function RJ(t){const{width:e,height:n}=e5(t);return{width:e,height:n}}function OJ(t,e,n){const i=zo(e),r=tc(e),s=n==="fixed",a=Fh(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=Sd(0);if(i||!i&&!s)if((Kf(e)!=="body"||cv(r))&&(l=hS(e)),i){const h=Fh(e,!0,s,e);c.x=h.x+e.clientLeft,c.y=h.y+e.clientTop}else r&&(c.x=n5(r));const d=a.left+l.scrollLeft-c.x,u=a.top+l.scrollTop-c.y;return{x:d,y:u,width:a.width,height:a.height}}function r2(t){return Qa(t).position==="static"}function RI(t,e){return!zo(t)||Qa(t).position==="fixed"?null:e?e(t):t.offsetParent}function r5(t,e){const n=Hs(t);if(uS(t))return n;if(!zo(t)){let r=kd(t);for(;r&&!Rf(r);){if(ns(r)&&!r2(r))return r;r=kd(r)}return n}let i=RI(t,e);for(;i&&cJ(i)&&r2(i);)i=RI(i,e);return i&&Rf(i)&&r2(i)&&!pN(i)?n:i||dJ(t)||n}const LJ=async function(t){const e=this.getOffsetParent||r5,n=this.getDimensions,i=await n(t.floating);return{reference:OJ(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function FJ(t){return Qa(t).direction==="rtl"}const BJ={convertOffsetParentRelativeRectToViewportRelativeRect:EJ,getDocumentElement:tc,getClippingRect:IJ,getOffsetParent:r5,getElementRects:LJ,getClientRects:AJ,getDimensions:RJ,getScale:sm,isElement:ns,isRTL:FJ};function $J(t,e){let n=null,i;const r=tc(t);function s(){var l;clearTimeout(i),(l=n)==null||l.disconnect(),n=null}function a(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const{left:d,top:u,width:h,height:p}=t.getBoundingClientRect();if(l||e(),!h||!p)return;const y=c0(u),m=c0(r.clientWidth-(d+h)),w=c0(r.clientHeight-(u+p)),k=c0(d),x={rootMargin:-y+"px "+-m+"px "+-w+"px "+-k+"px",threshold:Is(0,sd(1,c))||1};let v=!0;function E(N){const S=N[0].intersectionRatio;if(S!==c){if(!v)return a();S?a(!1,S):i=setTimeout(()=>{a(!1,1e-7)},1e3)}v=!1}try{n=new IntersectionObserver(E,{...x,root:r.ownerDocument})}catch{n=new IntersectionObserver(E,x)}n.observe(t)}return a(!0),s}function s5(t,e,n,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=i,d=fN(t),u=r||s?[...d?Jx(d):[],...Jx(e)]:[];u.forEach(b=>{r&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const h=d&&l?$J(d,n):null;let p=-1,y=null;a&&(y=new ResizeObserver(b=>{let[x]=b;x&&x.target===d&&y&&(y.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var v;(v=y)==null||v.observe(e)})),n()}),d&&!c&&y.observe(d),y.observe(e));let m,w=c?Fh(t):null;c&&k();function k(){const b=Fh(t);w&&(b.x!==w.x||b.y!==w.y||b.width!==w.width||b.height!==w.height)&&n(),w=b,m=requestAnimationFrame(k)}return n(),()=>{var b;u.forEach(x=>{r&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),h==null||h(),(b=y)==null||b.disconnect(),y=null,c&&cancelAnimationFrame(m)}}const s2=pS,HJ=SJ,zJ=CJ,VJ=wJ,UJ=jJ,WJ=(t,e,n)=>{const i=new Map,r={platform:BJ,...n},s={...r.platform,_c:i};return vJ(t,e,{...r,platform:s})};var J0=typeof document<"u"?Z.useLayoutEffect:Z.useEffect;function Ik(t,e){if(t===e)return!0;
120if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,i,r;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(i=n;i--!==0;)if(!Ik(t[i],e[i]))return!1;return!0}if(r=Object.keys(t),n=r.length,n!==Object.keys(e).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(e,r[i]))return!1;for(i=n;i--!==0;){const s=r[i];if(!(s==="_owner"&&t.$$typeof)&&!Ik(t[s],e[s]))return!1}return!0}return t!==t&&e!==e}function a5(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function OI(t,e){const n=a5(t);return Math.round(e*n)/n}function LI(t){const e=Z.useRef(t);return J0(()=>{e.current=t}),e}function GJ(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:i=[],platform:r,elements:{reference:s,floating:a}={},transform:l=!0,whileElementsMounted:c,open:d}=t,[u,h]=Z.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[p,y]=Z.useState(i);Ik(p,i)||y(i);const[m,w]=Z.useState(null),[k,b]=Z.useState(null),x=Z.useCallback(P=>{P!==S.current&&(S.current=P,w(P))},[]),v=Z.useCallback(P=>{P!==_.current&&(_.current=P,b(P))},[]),E=s||m,N=a||k,S=Z.useRef(null),_=Z.useRef(null),$=Z.useRef(u),V=c!=null,I=LI(c),A=LI(r),L=Z.useCallback(()=>{if(!S.current||!_.current)return;const P={placement:e,strategy:n,middleware:p};A.current&&(P.platform=A.current),WJ(S.current,_.current,P).then(C=>{const D={...C,isPositioned:!0};T.current&&!Ik($.current,D)&&($.current=D,$o.flushSync(()=>{h(D)}))})},[p,e,n,A]);J0(()=>{d===!1&&$.current.isPositioned&&($.current.isPositioned=!1,h(P=>({...P,isPositioned:!1})))},[d]);const T=Z.useRef(!1);J0(()=>(T.current=!0,()=>{T.current=!1}),[]),J0(()=>{if(E&&(S.current=E),N&&(_.current=N),E&&N){if(I.current)return I.current(E,N,L);L()}},[E,N,L,I,V]);const g=Z.useMemo(()=>({reference:S,floating:_,setReference:x,setFloating:v}),[x,v]),f=Z.useMemo(()=>({reference:E,floating:N}),[E,N]),j=Z.useMemo(()=>{const P={position:n,left:0,top:0};if(!f.floating)return P;const C=OI(f.floating,u.x),D=OI(f.floating,u.y);return l?{...P,transform:"translate("+C+"px, "+D+"px)",...a5(f.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:C,top:D}},[n,l,f.floating,u.x,u.y]);return Z.useMemo(()=>({...u,update:L,refs:g,elements:f,floatingStyles:j}),[u,L,g,f,j])}const o5=(t,e)=>({...HJ(t),options:[t,e]}),qJ=(t,e)=>({...zJ(t),options:[t,e]}),KJ=(t,e)=>({...VJ(t),options:[t,e]}),YJ=(t,e)=>({...UJ(t),options:[t,e]}),l5={...kf},XJ=l5.useInsertionEffect,JJ=XJ||(t=>t());function c5(t){const e=Z.useRef(()=>{});return JJ(()=>{e.current=t}),Z.useCallback(function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return e.current==null?void 0:e.current(...i)},[])}var MT=typeof document<"u"?Z.useLayoutEffect:Z.useEffect;let FI=!1,QJ=0;const BI=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+QJ++;function ZJ(){const[t,e]=Z.useState(()=>FI?BI():void 0);return MT(()=>{t==null&&e(BI())},[]),Z.useEffect(()=>{FI=!0},[]),t}const eQ=l5.useId,tQ=eQ||ZJ;function nQ(){const t=new Map;return{emit(e,n){var i;(i=t.get(e))==null||i.forEach(r=>r(n))},on(e,n){t.set(e,[...t.get(e)||[],n])},off(e,n){var i;t.set(e,((i=t.get(e))==null?void 0:i.filter(r=>r!==n))||[])}}}const iQ=Z.createContext(null),rQ=Z.createContext(null),sQ=()=>{var t;return((t=Z.useContext(iQ))==null?void 0:t.id)||null},aQ=()=>Z.useContext(rQ);function oQ(t){const{open:e=!1,onOpenChange:n,elements:i}=t,r=tQ(),s=Z.useRef({}),[a]=Z.useState(()=>nQ()),l=sQ()!=null,[c,d]=Z.useState(i.reference),u=c5((y,m,w)=>{s.current.openEvent=y?m:void 0,a.emit("openchange",{open:y,event:m,reason:w,nested:l}),n==null||n(y,m,w)}),h=Z.useMemo(()=>({setPositionReference:d}),[]),p=Z.useMemo(()=>({reference:c||i.reference||null,floating:i.floating||null,domReference:i.reference}),[c,i.reference,i.floating]);return Z.useMemo(()=>({dataRef:s,open:e,onOpenChange:u,elements:p,events:a,floatingId:r,refs:h}),[e,u,p,a,r,h])}function lQ(t){t===void 0&&(t={});const{nodeId:e}=t,n=oQ({...t,elements:{reference:null,floating:null,...t.elements}}),i=t.rootContext||n,r=i.elements,[s,a]=Z.useState(null),[l,c]=Z.useState(null),u=(r==null?void 0:r.reference)||s,h=Z.useRef(null),p=aQ();MT(()=>{u&&(h.current=u)},[u]);const y=GJ({...t,elements:{...r,...l&&{reference:l}}}),m=Z.useCallback(v=>{const E=ns(v)?{getBoundingClientRect:()=>v.getBoundingClientRect(),contextElement:v}:v;c(E),y.refs.setReference(E)},[y.refs]),w=Z.useCallback(v=>{(ns(v)||v===null)&&(h.current=v,a(v)),(ns(y.refs.reference.current)||y.refs.reference.current===null||v!==null&&!ns(v))&&y.refs.setReference(v)},[y.refs]),k=Z.useMemo(()=>({...y.refs,setReference:w,setPositionReference:m,domReference:h}),[y.refs,w,m]),b=Z.useMemo(()=>({...y.elements,domReference:u}),[y.elements,u]),x=Z.useMemo(()=>({...y,...i,refs:k,elements:b,nodeId:e}),[y,k,b,e,i]);return MT(()=>{i.dataRef.current.floatingContext=x;const v=p==null?void 0:p.nodesRef.current.find(E=>E.id===e);v&&(v.context=x)}),Z.useMemo(()=>({...y,context:x,refs:k,elements:b}),[y,k,b,x])}const $I="active",HI="selected";function a2(t,e,n){const i=new Map,r=n==="item";let s=t;if(r&&t){const{[$I]:a,[HI]:l,...c}=t;s=c}return{...n==="floating"&&{tabIndex:-1},...s,...e.map(a=>{const l=a?a[n]:null;return typeof l=="function"?t?l(t):null:l}).concat(t).reduce((a,l)=>(l&&Object.entries(l).forEach(c=>{let[d,u]=c;if(!(r&&[$I,HI].includes(d)))if(d.indexOf("on")===0){if(i.has(d)||i.set(d,[]),typeof u=="function"){var h;(h=i.get(d))==null||h.push(u),a[d]=function(){for(var p,y=arguments.length,m=new Array(y),w=0;w<y;w++)m[w]=arguments[w];return(p=i.get(d))==null?void 0:p.map(k=>k(...m)).find(k=>k!==void 0)}}}else a[d]=u}),a),{})}}function cQ(t){t===void 0&&(t=[]);const e=t.map(l=>l==null?void 0:l.reference),n=t.map(l=>l==null?void 0:l.floating),i=t.map(l=>l==null?void 0:l.item),r=Z.useCallback(l=>a2(l,t,"reference"),e),s=Z.useCallback(l=>a2(l,t,"floating"),n),a=Z.useCallback(l=>a2(l,t,"item"),i);return Z.useMemo(()=>({getReferenceProps:r,getFloatingProps:s,getItemProps:a}),[r,s,a])}function zI(t,e){return{...t,rects:{...t.rects,floating:{...t.rects.floating,height:e}}}}const dQ=t=>({name:"inner",options:t,async fn(e){const{listRef:n,overflowRef:i,onFallbackChange:r,offset:s=0,index:a=0,minItemsVisible:l=4,referenceOverflowThreshold:c=0,scrollRef:d,...u}=Yf(t,e),{rects:h,elements:{floating:p}}=e,y=n.current[a];if(!y)return{};const m={...e,...await o5(-y.offsetTop-p.clientTop-h.reference.height/2-y.offsetHeight/2-s).fn(e)},w=(d==null?void 0:d.current)||p,k=await s2(zI(m,w.scrollHeight),u),b=await s2(m,{...u,elementContext:"reference"}),x=Math.max(0,k.top),v=m.y+x,E=Math.max(0,w.scrollHeight-x-Math.max(0,k.bottom));return w.style.maxHeight=E+"px",w.scrollTop=x,r&&(w.offsetHeight<y.offsetHeight*Math.min(l,n.current.length-1)-1||b.top>=-c||b.bottom>=-c?$o.flushSync(()=>r(!0)):$o.flushSync(()=>r(!1))),i&&(i.current=await s2(zI({...m,y:v},w.offsetHeight),u)),{y:v}}});function uQ(t,e){const{open:n,elements:i}=t,{enabled:r=!0,overflowRef:s,scrollRef:a,onChange:l}=e,c=c5(l),d=Z.useRef(!1),u=Z.useRef(null),h=Z.useRef(null);Z.useEffect(()=>{if(!r)return;function y(w){if(w.ctrlKey||!m||s.current==null)return;const k=w.deltaY,b=s.current.top>=-.5,x=s.current.bottom>=-.5,v=m.scrollHeight-m.clientHeight,E=k<0?-1:1,N=k<0?"max":"min";m.scrollHeight<=m.clientHeight||(!b&&k>0||!x&&k<0?(w.preventDefault(),$o.flushSync(()=>{c(S=>S+Math[N](k,v*E))})):/firefox/i.test(uJ())&&(m.scrollTop+=k))}const m=(a==null?void 0:a.current)||i.floating;if(n&&m)return m.addEventListener("wheel",y),requestAnimationFrame(()=>{u.current=m.scrollTop,s.current!=null&&(h.current={...s.current})}),()=>{u.current=null,h.current=null,m.removeEventListener("wheel",y)}}
vendor: 3,822 bytes, line 120
120,[r,n,i.floating,s,a,c]);const p=Z.useMemo(()=>({onKeyDown(){d.current=!0},onWheel(){d.current=!1},onPointerMove(){d.current=!1},onScroll(){const y=(a==null?void 0:a.current)||i.floating;if(!(!s.current||!y||!d.current)){if(u.current!==null){const m=y.scrollTop-u.current;(s.current.bottom<-.5&&m<-1||s.current.top<-.5&&m>1)&&$o.flushSync(()=>c(w=>w+m))}requestAnimationFrame(()=>{u.current=y.scrollTop})}}}),[i.floating,c,s,a]);return Z.useMemo(()=>r?{floating:p}:{},[r,p])}let uv=Z.createContext({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});uv.displayName="FloatingContext";let gN=Z.createContext(null);gN.displayName="PlacementContext";function hQ(t){return Z.useMemo(()=>t?typeof t=="string"?{to:t}:t:null,[t])}function pQ(){return Z.useContext(uv).setReference}function mQ(){let{getFloatingProps:t,slot:e}=Z.useContext(uv);return Z.useCallback((...n)=>Object.assign({},t(...n),{"data-anchor":e.anchor}),[t,e])}function fQ(t=null){t===!1&&(t=null),typeof t=="string"&&(t={to:t});let e=Z.useContext(gN),n=Z.useMemo(()=>t,[JSON.stringify(t,typeof HTMLElement<"u"?(r,s)=>s instanceof HTMLElement?s.outerHTML:s:void 0)]);Kn(()=>{e==null||e(n??null)},[e,n]);let i=Z.useContext(uv);return Z.useMemo(()=>[i.setFloating,t?i.styles:{}],[i.setFloating,t,i.styles])}let VI=4;function gQ({children:t,enabled:e=!0}){let[n,i]=Z.useState(null),[r,s]=Z.useState(0),a=Z.useRef(null),[l,c]=Z.useState(null);xQ(l);let d=e&&n!==null&&l!==null,{to:u="bottom",gap:h=0,offset:p=0,padding:y=0,inner:m}=yQ(n,l),[w,k="center"]=u.split(" ");Kn(()=>{d&&s(0)},[d]);let{refs:b,floatingStyles:x,context:v}=lQ({open:d,placement:w==="selection"?k==="center"?"bottom":`bottom-${k}`:k==="center"?`${w}`:`${w}-${k}`,strategy:"absolute",transform:!1,middleware:[o5({mainAxis:w==="selection"?0:h,crossAxis:p}),qJ({padding:y}),w!=="selection"&&KJ({padding:y}),w==="selection"&&m?dQ({...m,padding:y,overflowRef:a,offset:r,minItemsVisible:VI,referenceOverflowThreshold:y,onFallbackChange(A){var L,T;if(!A)return;let g=v.elements.floating;if(!g)return;let f=parseFloat(getComputedStyle(g).scrollPaddingBottom)||0,j=Math.min(VI,g.childElementCount),P=0,C=0;for(let D of(T=(L=v.elements.floating)==null?void 0:L.childNodes)!=null?T:[])if(D instanceof HTMLElement){let M=D.offsetTop,z=M+D.clientHeight+f,J=g.scrollTop,F=J+g.clientHeight;if(M>=J&&z<=F)j--;else{C=Math.max(0,Math.min(z,F)-Math.max(M,J)),P=D.clientHeight;break}}j>=1&&s(D=>{let M=P*j-C+f;return D>=M?D:M})}}):null,YJ({padding:y,apply({availableWidth:A,availableHeight:L,elements:T}){Object.assign(T.floating.style,{overflow:"auto",maxWidth:`${A}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${L}px)`})}})].filter(Boolean),whileElementsMounted:s5}),[E=w,N=k]=v.placement.split("-");w==="selection"&&(E="selection");let S=Z.useMemo(()=>({anchor:[E,N].filter(Boolean).join(" ")}),[E,N]),_=uQ(v,{overflowRef:a,onChange:s}),{getReferenceProps:$,getFloatingProps:V}=cQ([_]),I=St(A=>{c(A),b.setFloating(A)});return Z.createElement(gN.Provider,{value:i},Z.createElement(uv.Provider,{value:{setFloating:I,setReference:b.setReference,styles:x,getReferenceProps:$,getFloatingProps:V,slot:S}},t))}function xQ(t){Kn(()=>{if(!t)return;let e=new MutationObserver(()=>{let n=window.getComputedStyle(t).maxHeight,i=parseFloat(n);if(isNaN(i))return;let r=parseInt(n);isNaN(r)||i!==r&&(t.style.maxHeight=`${Math.ceil(i)}px`)});return e.observe(t,{attributes:!0,attributeFilter:["style"]}),()=>{e.disconnect()}},[t])}function yQ(t,e){var n,i,r;let s=o2((n=t==null?void 0:t.gap)!=null?n:"var(--anchor-gap, 0)",e),a=o2((i=t==null?void 0:t.offset)!=null?i:"var(--anchor-offset, 0)",e),l=o2((r=t==null?void 0:t.padding)!=null?r:"var(--anchor-padding, 0)",e);return{...t,gap:s,offset:a,padding:l}}function o2(t,e,n=void 0){let i=lv(),r=St((c,d)=>
vendor: 19,950 bytes, line 120
120{if(c==null)return[n,null];if(typeof c=="number")return[c,null];if(typeof c=="string"){if(!d)return[n,null];let u=UI(c,d);return[u,h=>{let p=d5(c);{let y=p.map(m=>window.getComputedStyle(d).getPropertyValue(m));i.requestAnimationFrame(function m(){i.nextFrame(m);let w=!1;for(let[b,x]of p.entries()){let v=window.getComputedStyle(d).getPropertyValue(x);if(y[b]!==v){y[b]=v,w=!0;break}}if(!w)return;let k=UI(c,d);u!==k&&(h(k),u=k)})}return i.dispose}]}return[n,null]}),s=Z.useMemo(()=>r(t,e)[0],[t,e]),[a=s,l]=Z.useState();return Kn(()=>{let[c,d]=r(t,e);if(l(c),!!d)return d(l)},[t,e]),a}function d5(t){let e=/var\((.*)\)/.exec(t);if(e){let n=e[1].indexOf(",");if(n===-1)return[e[1]];let i=e[1].slice(0,n).trim(),r=e[1].slice(n+1).trim();return r?[i,...d5(r)]:[i]}return[]}function UI(t,e){let n=document.createElement("div");e.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",t,"important");let i=parseFloat(window.getComputedStyle(n).marginTop)||0;return e.removeChild(n),i}let mS=Z.createContext(null);mS.displayName="OpenClosedContext";var li=(t=>(t[t.Open=1]="Open",t[t.Closed=2]="Closed",t[t.Closing=4]="Closing",t[t.Opening=8]="Opening",t))(li||{});function Zh(){return Z.useContext(mS)}function xN({value:t,children:e}){return Ie.createElement(mS.Provider,{value:t},e)}function yN({children:t}){return Ie.createElement(mS.Provider,{value:null},t)}function bQ(t){function e(){document.readyState!=="loading"&&(t(),document.removeEventListener("DOMContentLoaded",e))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",e),e())}let Sc=[];bQ(()=>{function t(e){if(!(e.target instanceof HTMLElement)||e.target===document.body||Sc[0]===e.target)return;let n=e.target;n=n.closest(Nk),Sc.unshift(n??e.target),Sc=Sc.filter(i=>i!=null&&i.isConnected),Sc.splice(10)}window.addEventListener("click",t,{capture:!0}),window.addEventListener("mousedown",t,{capture:!0}),window.addEventListener("focus",t,{capture:!0}),document.body.addEventListener("click",t,{capture:!0}),document.body.addEventListener("mousedown",t,{capture:!0}),document.body.addEventListener("focus",t,{capture:!0})});function u5(t){let e=St(t),n=Z.useRef(!1);Z.useEffect(()=>(n.current=!1,()=>{n.current=!0,oS(()=>{n.current&&e()})}),[e])}function vQ(){let t=typeof document>"u";return"useSyncExternalStore"in kf?(e=>e.useSyncExternalStore)(kf)(()=>()=>{},()=>!1,()=>!t):!1}function hv(){let t=vQ(),[e,n]=Z.useState(kh.isHandoffComplete);return e&&kh.isHandoffComplete===!1&&n(!1),Z.useEffect(()=>{e!==!0&&n(!0)},[e]),Z.useEffect(()=>kh.handoff(),[]),t?!1:e}let h5=Z.createContext(!1);function wQ(){return Z.useContext(h5)}function WI(t){return Ie.createElement(h5.Provider,{value:t.force},t.children)}function kQ(t){let e=wQ(),n=Z.useContext(m5),i=Id(t),[r,s]=Z.useState(()=>{var a;if(!e&&n!==null)return(a=n.current)!=null?a:null;if(kh.isServer)return null;let l=i==null?void 0:i.getElementById("headlessui-portal-root");if(l)return l;if(i===null)return null;let c=i.createElement("div");return c.setAttribute("id","headlessui-portal-root"),i.body.appendChild(c)});return Z.useEffect(()=>{r!==null&&(i!=null&&i.body.contains(r)||i==null||i.body.appendChild(r))},[r,i]),Z.useEffect(()=>{e||n!==null&&s(n.current)},[n,s,e]),r}let p5=Z.Fragment,SQ=Fn(function(t,e){let n=t,i=Z.useRef(null),r=Ai(aN(u=>{i.current=u}),e),s=Id(i),a=kQ(i),[l]=Z.useState(()=>{var u;return kh.isServer?null:(u=s==null?void 0:s.createElement("div"))!=null?u:null}),c=Z.useContext(DT),d=hv();return Kn(()=>{!a||!l||a.contains(l)||(l.setAttribute("data-headlessui-portal",""),a.appendChild(l))},[a,l]),Kn(()=>{if(l&&c)return c.register(l)},[c,l]),u5(()=>{var u;!a||!l||(l instanceof Node&&a.contains(l)&&a.removeChild(l),a.childNodes.length<=0&&((u=a.parentElement)==null||u.removeChild(a)))}),d?!a||!l?null:$o.createPortal(ui({ourProps:{ref:r},theirProps:n,slot:{},defaultTag:p5,name:"Portal"}),l):null});function CQ(t,e){let n=Ai(e),{enabled:i=!0,...r}=t;return i?Ie.createElement(SQ,{...r,ref:n}):ui({ourProps:{ref:n},theirProps:r,slot:{},defaultTag:p5,name:"Portal"})}let jQ=Z.Fragment,m5=Z.createContext(null);function TQ(t,e){let{target:n,...i}=t,r={ref:Ai(e)};return Ie.createElement(m5.Provider,{value:n},ui({ourProps:r,theirProps:i,defaultTag:jQ,name:"Popover.Group"}))}let DT=Z.createContext(null);function f5(){let t=Z.useContext(DT),e=Z.useRef([]),n=St(s=>(e.current.push(s),t&&t.register(s),()=>i(s))),i=St(s=>{let a=e.current.indexOf(s);a!==-1&&e.current.splice(a,1),t&&t.unregister(s)}),r=Z.useMemo(()=>({register:n,unregister:i,portals:e}),[n,i,e]);return[e,Z.useMemo(()=>function({children:s}){return Ie.createElement(DT.Provider,{value:r},s)},[r])]}let PQ=Fn(CQ),g5=Fn(TQ),x5=Object.assign(PQ,{Group:g5});function EQ(t,e=typeof document<"u"?document.defaultView:null,n){let i=qf(t,"escape");uN(e,"keydown",r=>{i&&(r.defaultPrevented||r.key===es.Escape&&n(r))})}function AQ(){var t;let[e]=Z.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,i]=Z.useState((t=e==null?void 0:e.matches)!=null?t:!1);return Kn(()=>{if(!e)return;function r(s){i(s.matches)}return e.addEventListener("change",r),()=>e.removeEventListener("change",r)},[e]),n}function y5({defaultContainers:t=[],portals:e,mainTreeNode:n}={}){let i=Id(n),r=St(()=>{var s,a;let l=[];for(let c of t)c!==null&&(c instanceof HTMLElement?l.push(c):"current"in c&&c.current instanceof HTMLElement&&l.push(c.current));if(e!=null&&e.current)for(let c of e.current)l.push(c);for(let c of(s=i==null?void 0:i.querySelectorAll("html > *, body > *"))!=null?s:[])c!==document.body&&c!==document.head&&c instanceof HTMLElement&&c.id!=="headlessui-portal-root"&&(n&&(c.contains(n)||c.contains((a=n==null?void 0:n.getRootNode())==null?void 0:a.host))||l.some(d=>c.contains(d))||l.push(c));return l});return{resolveContainers:r,contains:St(s=>r().some(a=>a.contains(s)))}}let b5=Z.createContext(null);function Rk({children:t,node:e}){let[n,i]=Z.useState(null),r=bN(e??n);return Ie.createElement(b5.Provider,{value:r},t,r===null&&Ie.createElement(_f,{features:Oh.Hidden,ref:s=>{var a,l;if(s){for(let c of(l=(a=Qh(s))==null?void 0:a.querySelectorAll("html > *, body > *"))!=null?l:[])if(c!==document.body&&c!==document.head&&c instanceof HTMLElement&&c!=null&&c.contains(s)){i(c);break}}}}))}function bN(t=null){var e;return(e=Z.useContext(b5))!=null?e:t}function vN(){let t=Z.useRef(!1);return Kn(()=>(t.current=!0,()=>{t.current=!1}),[]),t}var Ls=(t=>(t[t.Forwards=0]="Forwards",t[t.Backwards=1]="Backwards",t))(Ls||{});function wN(){let t=Z.useRef(0);return W6(!0,"keydown",e=>{e.key==="Tab"&&(t.current=e.shiftKey?1:0)},!0),t}function v5(t){if(!t)return new Set;if(typeof t=="function")return new Set(t());let e=new Set;for(let n of t.current)n.current instanceof HTMLElement&&e.add(n.current);return e}let NQ="div";var Xd=(t=>(t[t.None=0]="None",t[t.InitialFocus=1]="InitialFocus",t[t.TabLock=2]="TabLock",t[t.FocusLock=4]="FocusLock",t[t.RestoreFocus=8]="RestoreFocus",t[t.AutoFocus=16]="AutoFocus",t))(Xd||{});function MQ(t,e){let n=Z.useRef(null),i=Ai(n,e),{initialFocus:r,initialFocusFallback:s,containers:a,features:l=15,...c}=t;hv()||(l=0);let d=Id(n);RQ(l,{ownerDocument:d});let u=OQ(l,{ownerDocument:d,container:n,initialFocus:r,initialFocusFallback:s});LQ(l,{ownerDocument:d,container:n,containers:a,previousActiveElement:u});let h=wN(),p=St(b=>{let x=n.current;x&&(v=>v())(()=>{Bi(h.current,{[Ls.Forwards]:()=>{pa(x,Qi.First,{skipElements:[b.relatedTarget,s]})},[Ls.Backwards]:()=>{pa(x,Qi.Last,{skipElements:[b.relatedTarget,s]})}})})}),y=qf(!!(l&2),"focus-trap#tab-lock"),m=lv(),w=Z.useRef(!1),k={ref:i,onKeyDown(b){b.key=="Tab"&&(w.current=!0,m.requestAnimationFrame(()=>{w.current=!1}))},onBlur(b){if(!(l&4))return;let x=v5(a);n.current instanceof HTMLElement&&x.add(n.current);let v=b.relatedTarget;v instanceof HTMLElement&&v.dataset.headlessuiFocusGuard!=="true"&&(w5(x,v)||(w.current?pa(n.current,Bi(h.current,{[Ls.Forwards]:()=>Qi.Next,[Ls.Backwards]:()=>Qi.Previous})|Qi.WrapAround,{relativeTo:b.target}):b.target instanceof HTMLElement&&Ll(b.target)))}};return Ie.createElement(Ie.Fragment,null,y&&Ie.createElement(_f,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:Oh.Focusable}),ui({ourProps:k,theirProps:c,defaultTag:NQ,name:"FocusTrap"}),y&&Ie.createElement(_f,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:Oh.Focusable}))}let DQ=Fn(MQ),_Q=Object.assign(DQ,{features:Xd});function IQ(t=!0){let e=Z.useRef(Sc.slice());return hN(([n],[i])=>{i===!0&&n===!1&&oS(()=>{e.current.splice(0)}),i===!1&&n===!0&&(e.current=Sc.slice())},[t,Sc,e]),St(()=>{var n;return(n=e.current.find(i=>i!=null&&i.isConnected))!=null?n:null})}function RQ(t,{ownerDocument:e}){let n=!!(t&8),i=IQ(n);hN(()=>{n||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&Ll(i())},[n]),u5(()=>{n&&Ll(i())})}function OQ(t,{ownerDocument:e,container:n,initialFocus:i,initialFocusFallback:r}){let s=Z.useRef(null),a=qf(!!(t&1),"focus-trap#initial-focus"),l=vN();return hN(()=>{if(t===0)return;if(!a){r!=null&&r.current&&Ll(r.current);return}let c=n.current;c&&oS(()=>{if(!l.current)return;let d=e==null?void 0:e.activeElement;if(i!=null&&i.current){if((i==null?void 0:i.current)===d){s.current=d;return}}else if(c.contains(d)){s.current=d;return}if(i!=null&&i.current)Ll(i.current);else{if(t&16){if(pa(c,Qi.First|Qi.AutoFocus)!==If.Error)return}else if(pa(c,Qi.First)!==If.Error)return;if(r!=null&&r.current&&(Ll(r.current),(e==null?void 0:e.activeElement)===r.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}s.current=e==null?void 0:e.activeElement})},[r,a,t]),s}function LQ(t,{ownerDocument:e,container:n,containers:i,previousActiveElement:r}){let s=vN(),a=!!(t&4);uN(e==null?void 0:e.defaultView,"focus",l=>{if(!a||!s.current)return;let c=v5(i);n.current instanceof HTMLElement&&c.add(n.current);let d=r.current;if(!d)return;let u=l.target;u&&u instanceof HTMLElement?w5(c,u)?(r.current=u,Ll(u)):(l.preventDefault(),l.stopPropagation(),Ll(d)):Ll(r.current)},!0)}function w5(t,e){for(let n of t)if(n.contains(e))return!0;return!1}function k5(t){var e;return!!(t.enter||t.enterFrom||t.enterTo||t.leave||t.leaveFrom||t.leaveTo)||((e=t.as)!=null?e:C5)!==Z.Fragment||Ie.Children.count(t.children)===1}let fS=Z.createContext(null);fS.displayName="TransitionContext";var FQ=(t=>(t.Visible="visible",t.Hidden="hidden",t))(FQ||{});function BQ(){let t=Z.useContext(fS);if(t===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}function $Q(){let t=Z.useContext(gS);if(t===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}let gS=Z.createContext(null);gS.displayName="NestingContext";function xS(t){return"children"in t?xS(t.children):t.current.filter(({el:e})=>e.current!==null).filter(({state:e})=>e==="visible").length>0}function S5(t,e){let n=Kl(t),i=Z.useRef([]),r=vN(),s=lv(),a=St((y,m=rd.Hidden)=>{let w=i.current.findIndex(({el:k})=>k===y);w!==-1&&(Bi(m,{[rd.Unmount](){i.current.splice(w,1)},[rd.Hidden](){i.current[w].state="hidden"}}),s.microTask(()=>{var k;!xS(i)&&r.current&&((k=n.current)==null||k.call(n))}))}),l=St(y=>{let m=i.current.find(({el:w})=>w===y);return m?m.state!=="visible"&&(m.state="visible"):i.current.push({el:y,state:"visible"}),()=>a(y,rd.Unmount)}),c=Z.useRef([]),d=Z.useRef(Promise.resolve()),u=Z.useRef({enter:[],leave:[]}),h=St((y,m,w)=>{c.current.splice(0),e&&(e.chains.current[m]=e.chains.current[m].filter(([k])=>k!==y)),e==null||e.chains.current[m].push([y,new Promise(k=>{c.current.push(k)})]),e==null||e.chains.current[m].push([y,new Promise(k=>{Promise.all(u.current[m].map(([b,x])=>x)).then(()=>k())})]),m==="enter"?d.current=d.current.then(()=>e==null?void 0:e.wait.current).then(()=>w(m)):w(m)}),p=St((y,m,w)=>{Promise.all(u.current[m].splice(0).map(([k,b])=>b)).then(()=>{var k;(k=c.current.shift())==null||k()}).then(()=>w(m))});return Z.useMemo(()=>({children:i,register:l,unregister:a,onStart:h,onStop:p,wait:d,chains:u}),[l,a,i,h,p,u,d])}let C5=Z.Fragment,j5=Ho.RenderStrategy;function HQ(t,e){var n,i;let{transition:r=!0,beforeEnter:s,afterEnter:a,beforeLeave:l,afterLeave:c,enter:d,enterFrom:u,enterTo:h,entered:p,leave:y,leaveFrom:m,leaveTo:w,...k}=t,b=Z.useRef(null),x=k5(t),v=Ai(...x?[b,e]:e===null?[]:[e]),E=(n=k.unmount)==null||n?rd.Unmount:rd.Hidden,{show:N,appear:S,initial:_}=BQ(),[$,V]=Z.useState(N?"visible":"hidden"),I=$Q(),{register:A,unregister:L}=I;Kn(()=>A(b),[A,b]),Kn(()=>{if(E===rd.Hidden&&b.current){if(N&&$!=="visible"){V("visible");return}return Bi($,{hidden:()=>L(b),visible:()=>A(b)})}},[$,b,A,L,N,E]);let T=hv();Kn(()=>{if(x&&T&&$==="visible"&&b.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[b,$,T,x]);let g=_&&!S,f=S&&N&&_,j=Z.useRef(!1),P=S5(()=>{j.current||(V("hidden"),L(b))},I),C=St(q=>{j.current=!0;let U=q?"enter":"leave";P.onStart(b,U,Q=>{Q==="enter"?s==null||s():Q==="leave"&&(l==null||l())})}),D=St(q=>{let U=q?"enter":"leave";j.current=!1,P.onStop(b,U,Q=>{Q==="enter"?a==null||a():Q==="leave"&&(c==null||c())}),U==="leave"&&!xS(P)&&(V("hidden"),L(b))});Z.useEffect(()=>{x&&r||(C(N),D(N))},[N,x,r]);let M=!(!r||!x||!T||g),[,z]=dS(M,b,N,{start:C,end:D}),J=Wd({ref:v,className:((i=ET(k.className,f&&d,f&&u,z.enter&&d,z.enter&&z.closed&&u,z.enter&&!z.closed&&h,z.leave&&y,z.leave&&!z.closed&&m,z.leave&&z.closed&&w,!z.transition&&N&&p))==null?void 0:i.trim())||void 0,...cS(z)}),F=0;return $==="visible"&&(F|=li.Open),$==="hidden"&&(F|=li.Closed),z.enter&&(F|=li.Opening),z.leave&&(F|=li.Closing),Ie.createElement(gS.Provider,{value:P},Ie.createElement(xN,{value:F},ui({ourProps:J,theirProps:k,defaultTag:C5,features:j5,visible:$==="visible",name:"Transition.Child"})))}function zQ(t,e){let{show:n,appear:i=!1,unmount:r=!0,...s}=t,a=Z.useRef(null),l=k5(t),c=Ai(...l?[a,e]:e===null?[]:[e]);hv();let d=Zh();if(n===void 0&&d!==null&&(n=(d&li.Open)===li.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,h]=Z.useState(n?"visible":"hidden"),p=S5(()=>{n||h("hidden")}),[y,m]=Z.useState(!0),w=Z.useRef([n]);Kn(()=>{y!==!1&&w.current[w.current.length-1]!==n&&(w.current.push(n),m(!1))},[w,n]);let k=Z.useMemo(()=>({show:n,appear:i,initial:y}),[n,i,y]);cN(n,a,()=>h("hidden")),Kn(()=>{n?h("visible"):!xS(p)&&a.current!==null&&h("hidden")},[n,p]);let b={unmount:r},x=St(()=>{var E;y&&m(!1),(E=t.beforeEnter)==null||E.call(t)}),v=St(()=>{var E;y&&m(!1),(E=t.beforeLeave)==null||E.call(t)});return Ie.createElement(gS.Provider,{value:p},Ie.createElement(fS.Provider,{value:k},ui({ourProps:{...b,as:Z.Fragment,children:Ie.createElement(T5,{ref:c,...b,...s,beforeEnter:x,beforeLeave:v})},theirProps:{},defaultTag:Z.Fragment,features:j5,visible:u==="visible",name:"Transition"})))}function VQ(t,e){let n=Z.useContext(fS)!==null,i=Zh()!==null;return Ie.createElement(Ie.Fragment,null,!n&&i?Ie.createElement(_T,{ref:e,...t}):Ie.createElement(T5,{ref:e,...t}))}let _T=Fn(zQ),T5=Fn(HQ),kN=Fn(VQ),Sh=Object.assign(_T,{Child:kN,Root:_T});var UQ=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(UQ||{}),WQ=(t=>(t[t.SetTitleId=0]="SetTitleId",t))(WQ||{});let GQ={0(t,e){return t.titleId===e.id?t:{...t,titleId:e.id}}},SN=Z.createContext(null);SN.displayName="DialogContext";function yS(t){let e=Z.useContext(SN);if(e===null){let n=new Error(`<${t} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,yS),n}return e}function qQ(t,e){return Bi(e.type,GQ,t,e)}let GI=Fn(function(t,e){let n=Z.useId(),{id:i=`headlessui-dialog-${n}`,open:r,onClose:s,initialFocus:a,role:l="dialog",autoFocus:c=!0,__demoMode:d=!1,unmount:u=!1,...h}=t,p=Z.useRef(!1);l=function(){return l==="dialog"||l==="alertdialog"?l:(p.current||(p.current=!0,console.warn(`Invalid role [${l}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let y=Zh();r===void 0&&y!==null&&(r=(y&li.Open)===li.Open);let m=Z.useRef(null),w=Ai(m,e),k=Id(m),b=r?0:1,[x,v]=Z.useReducer(qQ,{titleId:null,descriptionId:null,panelRef:Z.createRef()}),E=St(()=>s(!1)),N=St(M=>v({type:0,id:M})),S=hv()?b===0:!1,[_,$]=f5(),V={get current(){var M;return(M=x.panelRef.current)!=null?M:m.current}},I=bN(),{resolveContainers:A}=y5({mainTreeNode:I,portals:_,defaultContainers:[V]}),L=y!==null?(y&li.Closing)===li.Closing:!1;zX(d||L?!1:S,{allowed:St(()=>{var M,z;return[(z=(M=m.current)==null?void 0:M.closest("[data-headlessui-portal]"))!=null?z:null]}),disallowed:St(()=>{var M;return[(M=I==null?void 0:I.closest("body > *:not(#headlessui-portal-root)"))!=null?M:null]})}),G6(S,A,M=>{M.preventDefault(),E()}),EQ(S,k==null?void 0:k.defaultView,M=>{M.preventDefault(),M.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),E()}),K6(d||L?!1:S,k,A),cN(S,m,E);let[T,g]=NX(),f=Z.useMemo(()=>[{dialogState:b,close:E,setTitleId:N,unmount:u},x],[b,x,E,N,u]),j=Z.useMemo(()=>({open:b===0}),[b]),P={ref:w,id:i,role:l,tabIndex:-1,"aria-modal":d?void 0:b===0?!0:void 0,"aria-labelledby":x.titleId,"aria-describedby":T,unmount:u},C=!AQ(),D=Xd.None;return S&&!d&&(D|=Xd.RestoreFocus,D|=Xd.TabLock,c&&(D|=Xd.AutoFocus),C&&(D|=Xd.InitialFocus)),Ie.createElement(yN,null,Ie.createElement(WI,{force:!0},Ie.createElement(x5,null,Ie.createElement(SN.Provider,{value:f},Ie.createElement(g5,{target:m},Ie.createElement(WI,{force:!1},Ie.createElement(g,{slot:j},Ie.createElement($,null,Ie.createElement(_Q,{initialFocus:a,initialFocusFallback:m,containers:A,features:D},Ie.createElement(lN,{value:E},ui({ourProps:P,theirProps:h,slot:j,defaultTag:KQ,features:YQ,visible:b===0,name:"Dialog"})))))))))))}),KQ="div",YQ=Ho.RenderStrategy|Ho.Static;function XQ(t,e){let{transition:n=!1,open:i,...r}=t,s=Zh(),a=t.hasOwnProperty("open")||s!==null,l=t.hasOwnProperty("onClose");if(!a&&!l)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!a)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!l)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!s&&typeof t.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${t.open}`);if(typeof t.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${t.onClose}`);return(i!==void 0||n)&&!r.static?Ie.createElement(Rk,null,Ie.createElement(Sh,{show:i,transition:n,unmount:r.unmount},Ie.createElement(GI,{ref:e,...r}))):Ie.createElement(Rk,null,Ie.createElement(GI,{ref:e,open:i,...r}))}let JQ="div";function QQ(t,e){let n=Z.useId(),{id:i=`headlessui-dialog-panel-${n}`,transition:r=!1,...s}=t,[{dialogState:a,unmount:l},c]=yS("Dialog.Panel"),d=Ai(e,c.panelRef),u=Z.useMemo(()=>({open:a===0}),[a]),h=St(y=>{y.stopPropagation()}),p={ref:d,id:i,onClick:h};return Ie.createElement(r?kN:Z.Fragment,{...r?{unmount:l}:{}},ui({ourProps:p,theirProps:s,slot:u,defaultTag:JQ,name:"Dialog.Panel"}))}let ZQ="div";function eZ(t,e){let{transition:n=!1,...i}=t,[{dialogState:r,unmount:s}]=yS("Dialog.Backdrop"),a=Z.useMemo(()=>({open:r===0}),[r]),l={ref:e,"aria-hidden":!0};return Ie.createElement(n?kN:Z.Fragment,{...n?{unmount:s}:{}},ui({ourProps:l,theirProps:i,slot:a,defaultTag:ZQ,name:"Dialog.Backdrop"}))}let tZ="h2";function nZ(t,e){let n=Z.useId(),{id:i=`headlessui-dialog-title-${n}`,...r}=t,[{dialogState:s,setTitleId:a}]=yS("Dialog.Title"),l=Ai(e);Z.useEffect(()=>(a(i),()=>a(null)),[i,a]);let c=Z.useMemo(()=>({open:s===0}),[s]);return ui({ourProps:{ref:l,id:i},theirProps:r,slot:c,defaultTag:tZ,name:"Dialog.Title"})}
120let iZ=Fn(XQ),nc=Fn(QQ);Fn(eZ);let pv=Fn(nZ),cs=Object.assign(iZ,{Panel:nc,Title:pv,Description:IX});var qI;let rZ=(qI=Ie.startTransition)!=null?qI:function(t){t()};var sZ=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(sZ||{}),aZ=(t=>(t[t.ToggleDisclosure=0]="ToggleDisclosure",t[t.CloseDisclosure=1]="CloseDisclosure",t[t.SetButtonId=2]="SetButtonId",t[t.SetPanelId=3]="SetPanelId",t[t.LinkPanel=4]="LinkPanel",t[t.UnlinkPanel=5]="UnlinkPanel",t))(aZ||{});let oZ={0:t=>({...t,disclosureState:Bi(t.disclosureState,{0:1,1:0})}),1:t=>t.disclosureState===1?t:{...t,disclosureState:1},4(t){return t.linkedPanel===!0?t:{...t,linkedPanel:!0}},5(t){return t.linkedPanel===!1?t:{...t,linkedPanel:!1}},2(t,e){return t.buttonId===e.buttonId?t:{...t,buttonId:e.buttonId}},3(t,e){return t.panelId===e.panelId?t:{...t,panelId:e.panelId}}},CN=Z.createContext(null);CN.displayName="DisclosureContext";function jN(t){let e=Z.useContext(CN);if(e===null){let n=new Error(`<${t} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,jN),n}return e}let TN=Z.createContext(null);TN.displayName="DisclosureAPIContext";function P5(t){let e=Z.useContext(TN);if(e===null){let n=new Error(`<${t} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,P5),n}return e}let PN=Z.createContext(null);PN.displayName="DisclosurePanelContext";function lZ(){return Z.useContext(PN)}function cZ(t,e){return Bi(e.type,oZ,t,e)}let dZ=Z.Fragment;function uZ(t,e){let{defaultOpen:n=!1,...i}=t,r=Z.useRef(null),s=Ai(e,aN(k=>{r.current=k},t.as===void 0||t.as===Z.Fragment)),a=Z.useRef(null),l=Z.useRef(null),c=Z.useReducer(cZ,{disclosureState:n?0:1,linkedPanel:!1,buttonRef:l,panelRef:a,buttonId:null,panelId:null}),[{disclosureState:d,buttonId:u},h]=c,p=St(k=>{h({type:1});let b=Qh(r);if(!b||!u)return;let x=k?k instanceof HTMLElement?k:k.current instanceof HTMLElement?k.current:b.getElementById(u):b.getElementById(u);x==null||x.focus()}),y=Z.useMemo(()=>({close:p}),[p]),m=Z.useMemo(()=>({open:d===0,close:p}),[d,p]),w={ref:s};return Ie.createElement(CN.Provider,{value:c},Ie.createElement(TN.Provider,{value:y},Ie.createElement(lN,{value:p},Ie.createElement(xN,{value:Bi(d,{0:li.Open,1:li.Closed})},ui({ourProps:w,theirProps:i,slot:m,defaultTag:dZ,name:"Disclosure"})))))}let hZ="button";function pZ(t,e){let n=Z.useId(),{id:i=`headlessui-disclosure-button-${n}`,disabled:r=!1,autoFocus:s=!1,...a}=t,[l,c]=jN("Disclosure.Button"),d=lZ(),u=d===null?!1:d===l.panelId,h=Z.useRef(null),p=Ai(h,e,u?null:l.buttonRef),y=rN();Z.useEffect(()=>{if(!u)return c({type:2,buttonId:i}),()=>{c({type:2,buttonId:null})}},[i,c,u]);let m=St(I=>{var A;if(u){if(l.disclosureState===1)return;switch(I.key){case es.Space:case es.Enter:I.preventDefault(),I.stopPropagation(),c({type:0}),(A=l.buttonRef.current)==null||A.focus();break}}else switch(I.key){case es.Space:case es.Enter:I.preventDefault(),I.stopPropagation(),c({type:0});break}}),w=St(I=>{switch(I.key){case es.Space:I.preventDefault();break}}),k=St(I=>{var A;sN(I.currentTarget)||r||(u?(c({type:0}),(A=l.buttonRef.current)==null||A.focus()):c({type:0}))}),{isFocusVisible:b,focusProps:x}=nN({autoFocus:s}),{isHovered:v,hoverProps:E}=tN({isDisabled:r}),{pressed:N,pressProps:S}=iN({disabled:r}),_=Z.useMemo(()=>({open:l.disclosureState===0,hover:v,active:N,disabled:r,focus:b,autofocus:s}),[l,v,N,b,r,s]),$=q6(t,h),V=Rh(u?{ref:p,type:$,disabled:r||void 0,autoFocus:s,onKeyDown:m,onClick:k}:{ref:p,id:i,type:$,"aria-expanded":l.disclosureState===0,"aria-controls":l.linkedPanel?l.panelId:void 0,disabled:r||void 0,autoFocus:s,onKeyDown:m,onKeyUp:w,onClick:k},x,E,S);return ui({mergeRefs:y,ourProps:V,theirProps:a,slot:_,defaultTag:hZ,name:"Disclosure.Button"})}let mZ="div",fZ=Ho.RenderStrategy|Ho.Static;function gZ(t,e){let n=Z.useId(),{id:i=`headlessui-disclosure-panel-${n}`,transition:r=!1,...s}=t,[a,l]=jN("Disclosure.Panel"),{close:c}=P5("Disclosure.Panel"),d=rN(),u=Ai(e,a.panelRef,k=>{rZ(()=>l({type:k?4:5}))});Z.useEffect(()=>(l({type:3,panelId:i}),()=>{l({type:3,panelId:null})}),[i,l]);let h=Zh(),[p,y]=dS(r,a.panelRef,h!==null?(h&li.Open)===li.Open:a.disclosureState===0),m=Z.useMemo(()=>({open:a.disclosureState===0,close:c}),[a.disclosureState,c]),w={ref:u,id:i,...cS(y)};return Ie.createElement(yN,null,Ie.createElement(PN.Provider,{value:a.panelId},ui({mergeRefs:d,ourProps:w,theirProps:s,slot:m,defaultTag:mZ,features:fZ,visible:p,name:"Disclosure.Panel"})))}let xZ=Fn(uZ),Fg=Fn(pZ),Bg=Fn(gZ),d0=Object.assign(xZ,{Button:Fg,Panel:Bg});var yZ=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(yZ||{}),bZ=(t=>(t[t.TogglePopover=0]="TogglePopover",t[t.ClosePopover=1]="ClosePopover",t[t.SetButton=2]="SetButton",t[t.SetButtonId=3]="SetButtonId",t[t.SetPanel=4]="SetPanel",t[t.SetPanelId=5]="SetPanelId",t))(bZ||{});let vZ={0:t=>({...t,popoverState:Bi(t.popoverState,{0:1,1:0}),__demoMode:!1}),1(t){return t.popoverState===1?t:{...t,popoverState:1,__demoMode:!1}},2(t,e){return t.button===e.button?t:{...t,button:e.button}},3(t,e){return t.buttonId===e.buttonId?t:{...t,buttonId:e.buttonId}},4(t,e){return t.panel===e.panel?t:{...t,panel:e.panel}},5(t,e){return t.panelId===e.panelId?t:{...t,panelId:e.panelId}}},EN=Z.createContext(null);EN.displayName="PopoverContext";function bS(t){let e=Z.useContext(EN);if(e===null){let n=new Error(`<${t} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,bS),n}return e}let vS=Z.createContext(null);vS.displayName="PopoverAPIContext";function AN(t){let e=Z.useContext(vS);if(e===null){let n=new Error(`<${t} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,AN),n}return e}let NN=Z.createContext(null);NN.displayName="PopoverGroupContext";function E5(){return Z.useContext(NN)}let wS=Z.createContext(null);wS.displayName="PopoverPanelContext";function wZ(){return Z.useContext(wS)}function kZ(t,e){return Bi(e.type,vZ,t,e)}let SZ="div";function CZ(t,e){var n;let{__demoMode:i=!1,...r}=t,s=Z.useRef(null),a=Ai(e,aN(C=>{s.current=C})),l=Z.useRef([]),c=Z.useReducer(kZ,{__demoMode:i,popoverState:i?0:1,buttons:l,button:null,buttonId:null,panel:null,panelId:null,beforePanelSentinel:Z.createRef(),afterPanelSentinel:Z.createRef(),afterButtonSentinel:Z.createRef()}),[{popoverState:d,button:u,buttonId:h,panel:p,panelId:y,beforePanelSentinel:m,afterPanelSentinel:w,afterButtonSentinel:k},b]=c,x=Id((n=s.current)!=null?n:u),v=Z.useMemo(()=>
vendor: 8,317 bytes, line 120
120{if(!u||!p)return!1;for(let q of document.querySelectorAll("body > *"))if(Number(q==null?void 0:q.contains(u))^Number(q==null?void 0:q.contains(p)))return!0;let C=lS(),D=C.indexOf(u),M=(D+C.length-1)%C.length,z=(D+1)%C.length,J=C[M],F=C[z];return!p.contains(J)&&!p.contains(F)},[u,p]),E=Kl(h),N=Kl(y),S=Z.useMemo(()=>({buttonId:E,panelId:N,close:()=>b({type:1})}),[E,N,b]),_=E5(),$=_==null?void 0:_.registerPopover,V=St(()=>{var C;return(C=_==null?void 0:_.isFocusWithinPopoverGroup())!=null?C:(x==null?void 0:x.activeElement)&&((u==null?void 0:u.contains(x.activeElement))||(p==null?void 0:p.contains(x.activeElement)))});Z.useEffect(()=>$==null?void 0:$(S),[$,S]);let[I,A]=f5(),L=bN(u),T=y5({mainTreeNode:L,portals:I,defaultContainers:[u,p]});uN(x==null?void 0:x.defaultView,"focus",C=>{var D,M,z,J,F,q;C.target!==window&&C.target instanceof HTMLElement&&d===0&&(V()||u&&p&&(T.contains(C.target)||(M=(D=m.current)==null?void 0:D.contains)!=null&&M.call(D,C.target)||(J=(z=w.current)==null?void 0:z.contains)!=null&&J.call(z,C.target)||(q=(F=k.current)==null?void 0:F.contains)!=null&&q.call(F,C.target)||b({type:1})))},!0),G6(d===0,T.resolveContainers,(C,D)=>{b({type:1}),V6(D,dN.Loose)||(C.preventDefault(),u==null||u.focus())});let g=St(C=>{b({type:1});let D=C?C instanceof HTMLElement?C:"current"in C&&C.current instanceof HTMLElement?C.current:u:u;D==null||D.focus()}),f=Z.useMemo(()=>({close:g,isPortalled:v}),[g,v]),j=Z.useMemo(()=>({open:d===0,close:g}),[d,g]),P={ref:a};return Ie.createElement(Rk,{node:L},Ie.createElement(gQ,null,Ie.createElement(wS.Provider,{value:null},Ie.createElement(EN.Provider,{value:c},Ie.createElement(vS.Provider,{value:f},Ie.createElement(lN,{value:g},Ie.createElement(xN,{value:Bi(d,{0:li.Open,1:li.Closed})},Ie.createElement(A,null,ui({ourProps:P,theirProps:r,slot:j,defaultTag:SZ,name:"Popover"})))))))))}let jZ="button";function TZ(t,e){let n=Z.useId(),{id:i=`headlessui-popover-button-${n}`,disabled:r=!1,autoFocus:s=!1,...a}=t,[l,c]=bS("Popover.Button"),{isPortalled:d}=AN("Popover.Button"),u=Z.useRef(null),h=`headlessui-focus-sentinel-${Z.useId()}`,p=E5(),y=p==null?void 0:p.closeOthers,m=wZ()!==null;Z.useEffect(()=>{if(!m)return c({type:3,buttonId:i}),()=>{c({type:3,buttonId:null})}},[m,i,c]);let[w]=Z.useState(()=>Symbol()),k=Ai(u,e,pQ(),m?null:D=>{if(D)l.buttons.current.push(w);else{let M=l.buttons.current.indexOf(w);M!==-1&&l.buttons.current.splice(M,1)}l.buttons.current.length>1&&console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."),D&&c({type:2,button:D})}),b=Ai(u,e),x=Id(u),v=St(D=>{var M,z,J;if(m){if(l.popoverState===1)return;switch(D.key){case es.Space:case es.Enter:D.preventDefault(),(z=(M=D.target).click)==null||z.call(M),c({type:1}),(J=l.button)==null||J.focus();break}}else switch(D.key){case es.Space:case es.Enter:D.preventDefault(),D.stopPropagation(),l.popoverState===1&&(y==null||y(l.buttonId)),c({type:0});break;case es.Escape:if(l.popoverState!==0)return y==null?void 0:y(l.buttonId);if(!u.current||x!=null&&x.activeElement&&!u.current.contains(x.activeElement))return;D.preventDefault(),D.stopPropagation(),c({type:1});break}}),E=St(D=>{m||D.key===es.Space&&D.preventDefault()}),N=St(D=>{var M,z;sN(D.currentTarget)||r||(m?(c({type:1}),(M=l.button)==null||M.focus()):(D.preventDefault(),D.stopPropagation(),l.popoverState===1&&(y==null||y(l.buttonId)),c({type:0}),(z=l.button)==null||z.focus()))}),S=St(D=>{D.preventDefault(),D.stopPropagation()}),{isFocusVisible:_,focusProps:$}=nN({autoFocus:s}),{isHovered:V,hoverProps:I}=tN({isDisabled:r}),{pressed:A,pressProps:L}=iN({disabled:r}),T=l.popoverState===0,g=Z.useMemo(()=>({open:T,active:A||T,disabled:r,hover:V,focus:_,autofocus:s}),[T,V,_,A,r,s]),f=q6(t,u),j=Rh(m?{ref:b,type:f,onKeyDown:v,onClick:N,disabled:r||void 0,autoFocus:s}:{ref:k,id:l.buttonId,type:f,"aria-expanded":l.popoverState===0,"aria-controls":l.panel?l.panelId:void 0,disabled:r||void 0,autoFocus:s,onKeyDown:v,onKeyUp:E,onClick:N,onMouseDown:S},$,I,L),P=wN(),C=St(()=>{let D=l.panel;if(!D)return;function M(){Bi(P.current,{[Ls.Forwards]:()=>pa(D,Qi.First),[Ls.Backwards]:()=>pa(D,Qi.Last)})===If.Error&&pa(lS().filter(z=>z.dataset.headlessuiFocusGuard!=="true"),Bi(P.current,{[Ls.Forwards]:Qi.Next,[Ls.Backwards]:Qi.Previous}),{relativeTo:l.button})}M()});return Ie.createElement(Ie.Fragment,null,ui({ourProps:j,theirProps:a,slot:g,defaultTag:jZ,name:"Popover.Button"}),T&&!m&&d&&Ie.createElement(_f,{id:h,ref:l.afterButtonSentinel,features:Oh.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:C}))}let PZ="div",EZ=Ho.RenderStrategy|Ho.Static;function A5(t,e){let n=Z.useId(),{id:i=`headlessui-popover-backdrop-${n}`,transition:r=!1,...s}=t,[{popoverState:a},l]=bS("Popover.Backdrop"),c=Z.useRef(null),d=Ai(e,c),u=Zh(),[h,p]=dS(r,c,u!==null?(u&li.Open)===li.Open:a===0),y=St(k=>{if(sN(k.currentTarget))return k.preventDefault();l({type:1})}),m=Z.useMemo(()=>({open:a===0}),[a]),w={ref:d,id:i,"aria-hidden":!0,onClick:y,...cS(p)};return ui({ourProps:w,theirProps:s,slot:m,defaultTag:PZ,features:EZ,visible:h,name:"Popover.Backdrop"})}let AZ="div",NZ=Ho.RenderStrategy|Ho.Static;function MZ(t,e){let n=Z.useId(),{id:i=`headlessui-popover-panel-${n}`,focus:r=!1,anchor:s,portal:a=!1,modal:l=!1,transition:c=!1,...d}=t,[u,h]=bS("Popover.Panel"),{close:p,isPortalled:y}=AN("Popover.Panel"),m=`headlessui-focus-sentinel-before-${n}`,w=`headlessui-focus-sentinel-after-${n}`,k=Z.useRef(null),b=hQ(s),[x,v]=fQ(b),E=mQ();b&&(a=!0);let N=Ai(k,e,b?x:null,C=>{h({type:4,panel:C})}),S=Id(k),_=rN();Kn(()=>(h({type:5,panelId:i}),()=>{h({type:5,panelId:null})}),[i,h]);let $=Zh(),[V,I]=dS(c,k,$!==null?($&li.Open)===li.Open:u.popoverState===0);cN(V,u.button,()=>{h({type:1})});let A=u.__demoMode?!1:l&&V;K6(A,S);let L=St(C=>{var D;switch(C.key){case es.Escape:if(u.popoverState!==0||!k.current||S!=null&&S.activeElement&&!k.current.contains(S.activeElement))return;C.preventDefault(),C.stopPropagation(),h({type:1}),(D=u.button)==null||D.focus();break}});Z.useEffect(()=>{var C;t.static||u.popoverState===1&&((C=t.unmount)==null||C)&&h({type:4,panel:null})},[u.popoverState,t.unmount,t.static,h]),Z.useEffect(()=>{if(u.__demoMode||!r||u.popoverState!==0||!k.current)return;let C=S==null?void 0:S.activeElement;k.current.contains(C)||pa(k.current,Qi.First)},[u.__demoMode,r,k.current,u.popoverState]);let T=Z.useMemo(()=>({open:u.popoverState===0,close:p}),[u.popoverState,p]),g=Rh(b?E():{},{ref:N,id:i,onKeyDown:L,onBlur:r&&u.popoverState===0?C=>{var D,M,z,J,F;let q=C.relatedTarget;q&&k.current&&((D=k.current)!=null&&D.contains(q)||(h({type:1}),((z=(M=u.beforePanelSentinel.current)==null?void 0:M.contains)!=null&&z.call(M,q)||(F=(J=u.afterPanelSentinel.current)==null?void 0:J.contains)!=null&&F.call(J,q))&&q.focus({preventScroll:!0})))}:void 0,tabIndex:-1,style:{...d.style,...v,"--button-width":BX(u.button,!0).width},...cS(I)}),f=wN(),j=St(()=>{let C=k.current;if(!C)return;function D(){Bi(f.current,{[Ls.Forwards]:()=>{var M;pa(C,Qi.First)===If.Error&&((M=u.afterPanelSentinel.current)==null||M.focus())},[Ls.Backwards]:()=>{var M;(M=u.button)==null||M.focus({preventScroll:!0})}})}D()}),P=St(()=>{let C=k.current;if(!C)return;function D(){Bi(f.current,{[Ls.Forwards]:()=>{var M;if(!u.button)return;let z=lS(),J=z.indexOf(u.button),F=z.slice(0,J+1),q=[...z.slice(J+1),...F];for(let U of q.slice())if(U.dataset.headlessuiFocusGuard==="true"||(M=u.panel)!=null&&M.contains(U)){let Q=q.indexOf(U);Q!==-1&&q.splice(Q,1)}pa(q,Qi.First,{sorted:!1})},[Ls.Backwards]:()=>{var M;pa(C,Qi.Previous)===If.Error&&((M=u.button)==null||M.focus())}})}D()});return Ie.createElement(yN,null,Ie.createElement(wS.Provider,{value:i},Ie.createElement(vS.Provider,{value:{close:p,isPortalled:y}},Ie.createElement(x5,{enabled:a?t.static||V:!1},V&&y&&Ie.createElement(_f,{id:m,ref:u.beforePanelSentinel,features:Oh.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:j}),ui({mergeRefs:_,ourProps:g,theirProps:d,slot:T,defaultTag:AZ,features:NZ,visible:V,name:"Popover.Panel"}),V&&y&&Ie.createElement(_f,{id:w,ref:u.afterPanelSentinel,features:Oh.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:P})))))}let DZ="div";function _Z(t,e){let n=Z.useRef(null),i=Ai(n,e),[r,s]=Z.useState([]),a=St(m=>{s(w=>{let k=w.indexOf(m);
120if(k!==-1){let b=w.slice();return b.splice(k,1),b}return w})}),l=St(m=>(s(w=>[...w,m]),()=>a(m))),c=St(()=>{var m;let w=Qh(n);if(!w)return!1;let k=w.activeElement;return(m=n.current)!=null&&m.contains(k)?!0:r.some(b=>{var x,v;return((x=w.getElementById(b.buttonId.current))==null?void 0:x.contains(k))||((v=w.getElementById(b.panelId.current))==null?void 0:v.contains(k))})}),d=St(m=>{for(let w of r)w.buttonId.current!==m&&w.close()}),u=Z.useMemo(()=>({registerPopover:l,unregisterPopover:a,isFocusWithinPopoverGroup:c,closeOthers:d}),[l,a,c,d]),h=Z.useMemo(()=>({}),[]),p=t,y={ref:i};return Ie.createElement(Rk,null,Ie.createElement(NN.Provider,{value:u},ui({ourProps:y,theirProps:p,slot:h,defaultTag:DZ,name:"Popover.Group"})))}let IZ=Fn(CZ),IT=Fn(TZ),RZ=Fn(A5),OZ=Fn(A5),RT=Fn(MZ),N5=Fn(_Z),l2=Object.assign(IZ,{Button:IT,Backdrop:OZ,Overlay:RZ,Panel:RT,Group:N5});const LZ=({menuItems:t})=>{const[e,n]=Z.useState(!1),[i,r]=Z.useState(null),s=a=>{r(i===a?null:a)};return o.jsx("nav",{className:"max-w-screen-lg hidden xl:flex md:gap-x-2 xl:space-x-6 md:p-4 font-medium text-sm 2xl:text-base mx-auto",children:o.jsx(N5,{as:"ul",className:"flex justify-between gap-2 3xl:p-4",children:t.map((a,l)=>a.megaMenu?o.jsxs(l2,{as:"li",className:"",children:[o.jsx(IT,{className:"flex items-center space-x-2 px-3 py-2 outline-none",onClick:()=>n(!1),children:o.jsx("span",{className:"capitalize text-base font-medium",children:a.label})}),o.jsx(RT,{className:"absolute z-10 left-20 right-48 mt-7 min-w-[1020px] bg-white shadow-2xl rounded-sm text-pmi-black",children:o.jsx("div",{className:"grid grid-cols-4 gap-8 px-12 py-8",children:a.categories&&a.categories.map((c,d)=>o.jsxs("div",{className:"space-y-2",children:[o.jsx("h3",{className:"font-bold text-xl capitalize text-pmi-red",children:c.title}),o.jsx("ul",{className:"space-y-1 mt-8",children:c.items.map((u,h)=>o.jsxs("li",{children:[o.jsxs("a",{href:u.path,onClick:()=>s(h),className:"flex justify-between items-center cursor-pointer text-pmi-gray text-base font-normal py-2",children:[u.label,u.subItems&&u.subItems.length>0&&o.jsx("span",{children:o.jsx("img",{src:i===h?"/svg/arrow/arrow-down.svg":"/svg/arrow/arrow-right.svg",alt:"arrow",className:"w-4 h-4"})})]}),i===h&&u.subItems&&o.jsx("ul",{className:"pl-4 space-y-1 mt-2",children:u.subItems&&u.subItems.map((p,y)=>o.jsx("li",{className:"px-6",children:o.jsx("a",{href:p.path,className:"block text-pmi-gray text-base font-normal py-2 capitalize",children:p.label})},y))})]},h))})]},d))})})]},l):a.subItems?o.jsxs(l2,{as:"li",className:"relative",children:[o.jsx(IT,{className:"flex items-center space-x-2 px-1 2xl:px-3 py-2 uppercase border-none outline-none",onClick:()=>n(!1),children:o.jsx("span",{className:"capitalize text-base font-medium",children:a.label})}),o.jsx(RT,{className:"absolute z-10 mt-8 min-w-64 bg-white shadow-2xl rounded-sm text-pmi-black",children:o.jsx("ul",{className:"flex flex-col divide-y px-4",children:a.subItems.map((c,d)=>o.jsxs("li",{className:"",children:[!c.subItems&&o.jsx("a",{href:c.path,className:"block text-pmi-gray text-base font-normal px-4 py-4 capitalize",children:c.label}),c.subItems&&o.jsxs(l2,{as:"div",className:"relative",children:[o.jsxs(LX,{onClick:()=>n(!e),className:"w-full flex justify-between items-center text-left text-pmi-gray text-base font-normal px-4 py-4 capitalize","data-open":!0,children:[o.jsx("span",{children:c.label}),o.jsx("img",{src:"/svg/arrow/arrow-right.svg",alt:"arrow",className:"w-6 h-6"})]}),e&&o.jsx("div",{className:"absolute z-10 -mt-[3.5rem] min-w-72 left-[242px] bg-white shadow-2xl rounded-sm text-pmi-black",children:o.jsx("ul",{className:"flex flex-col divide-y px-4",children:c.subItems.map((u,h)=>o.jsx("li",{className:"relative group",children:o.jsx("a",{href:u.path,className:"block text-pmi-gray text-base font-normal px-4 py-4 capitalize",children:u.label})},h))})})]})]},d))})})]},l):o.jsx("li",{className:"px-3 py-2 rounded-md",onClick:()=>n(!1),children:o.jsx("a",{href:a.path,children:o.jsx("span",{className:"capitalize text-base font-medium",children:a.label})})},l))})})},ep="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.198%2021.5V22.5H9.198H13.198H14.198V21.5V14.49H16.802H17.7074L17.7971%2013.589L18.1931%209.60901L18.3024%208.51H17.198H14.198V7.5H17.198H18.198V6.5V2.5V1.5H17.198H14.198C12.6067%201.5%2011.0806%202.13214%209.95536%203.25736L10.6625%203.96447L9.95536%203.25736C8.83014%204.38258%208.198%205.9087%208.198%207.5V8.51H7.198H6.29256L6.20292%209.41099L5.80692%2013.391L5.69757%2014.49H6.802H8.198V21.5Z'%20fill='%23D60100'
120%20stroke='%23FEFEFE'%20stroke-width='2'/%3e%3c/svg%3e",tp="data:image/svg+xml,%3csvg%20width='75'%20height='75'%20viewBox='0%200%2075%2075'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M28.7438%2067.1875H41.2438V42.1562H52.5063L53.7438%2029.7188H41.2438V23.4375C41.2438%2022.6087%2041.573%2021.8138%2042.159%2021.2278C42.7451%2020.6417%2043.54%2020.3125%2044.3688%2020.3125H53.7438V7.8125H44.3688C40.2247%207.8125%2036.2505%209.4587%2033.3202%2012.389C30.39%2015.3192%2028.7438%2019.2935%2028.7438%2023.4375V29.7188H22.4938L21.2563%2042.1562H28.7438V67.1875Z'%20fill='%23FEFEFE'/%3e%3c/svg%3e",np="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_68_66)'%3e%3cpath%20d='M20.5055%205.31757L20.5058%205.31729C20.6787%205.11955%2020.811%204.88969%2020.8951%204.64083C20.9791%204.39197%2021.0134%204.12898%2020.9958%203.86687C20.9783%203.60478%2020.9093%203.34871%2020.7928%203.11327C20.6763%202.87784%2020.5145%202.66766%2020.3168%202.49474C20.1191%202.32181%2019.8892%202.18953%2019.6403%202.10544C19.3915%202.02135%2019.1285%201.9871%2018.8664%202.00465C18.6043%202.0222%2018.3482%202.0912%2018.1128%202.20771C17.8774%202.32418%2017.6673%202.48585%2017.4944%202.6835C17.4944%202.68357%2017.4943%202.68364%2017.4942%202.68371L13.1968%207.59512L9.6%202.8C9.59999%202.79998%209.59998%202.79997%209.59997%202.79996C9.41368%202.55158%209.17212%202.34999%208.89443%202.21115C8.61672%202.07229%208.31049%202%208%202H4C3.62858%202%203.26449%202.10343%202.94854%202.2987C2.63259%202.49397%202.37725%202.77336%202.21115%203.10557C2.04504%203.43778%201.97473%203.80969%202.00808%204.17961C2.04144%204.54953%202.17715%204.90286%202.4%205.2L2.40002%205.20003L8.35063%2013.1336L3.49442%2018.6835L3.49424%2018.6837C3.32131%2018.8814%203.18903%2019.1113%203.10494%2019.3602C3.02085%2019.609%202.98661%2019.872%203.00415%2020.1341C3.0217%2020.3962%203.0907%2020.6523%203.20721%2020.8877C3.32372%2021.1232%203.48547%2021.3333%203.68321%2021.5063C3.88094%2021.6792%204.11081%2021.8115%204.35967%2021.8956C4.60854%2021.9796%204.87153%2022.0139%205.13363%2021.9963C5.39572%2021.9788%205.65179%2021.9098%205.88723%2021.7933C6.1226%2021.6768%206.33274%2021.5151%206.50563%2021.3174C6.50568%2021.3174%206.50572%2021.3173%206.50576%2021.3173L10.8033%2016.405L14.4%2021.2C14.4%2021.2%2014.4%2021.2%2014.4%2021.2C14.5863%2021.4484%2014.8279%2021.65%2015.1056%2021.7889C15.3833%2021.9277%2015.6895%2022%2016%2022H20C20.3714%2022%2020.7355%2021.8966%2021.0515%2021.7013C21.3674%2021.506%2021.6227%2021.2266%2021.7889%2020.8944C21.955%2020.5622%2022.0253%2020.1903%2021.9919%2019.8204C21.9586%2019.4505%2021.8229%2019.0971%2021.6%2018.8L21.6%2018.8L15.6494%2010.8665L20.5055%205.31757Z'%20fill='%23D60100'
120%20stroke='%23FEFEFE'%20stroke-width='2'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_68_66'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",ip="data:image/svg+xml,%3csvg%20width='75'%20height='75'%20viewBox='0%200%2075%2075'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_203_217)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M61.7281%2014.5594C61.9984%2014.2504%2062.2051%2013.8911%2062.3365%2013.5022C62.4679%2013.1133%2062.5214%2012.7023%2062.494%2012.2927C62.4666%2011.8832%2062.3588%2011.483%2062.1767%2011.115C61.9946%2010.7471%2061.7418%2010.4187%2061.4328%2010.1484C61.1238%209.8782%2060.7646%209.67148%2060.3757%209.54007C59.9868%209.40866%2059.5758%209.35514%2059.1662%209.38256C58.7566%209.40998%2058.3564%209.51781%2057.9885%209.69989C57.6206%209.88197%2057.2921%2010.1347%2057.0219%2010.4438L41.0531%2028.6938L27.5%2010.625C27.2089%2010.2369%2026.8315%209.92188%2026.3975%209.70491C25.9636%209.48795%2025.4851%209.375%2025%209.375H12.5C11.9197%209.375%2011.3508%209.53661%2010.8571%209.84172C10.3634%2010.1468%209.96446%2010.5834%209.70492%2011.1025C9.44538%2011.6215%209.33551%2012.2026%209.38763%2012.7806C9.43975%2013.3586%209.65179%2013.9107%2010%2014.375L30.1156%2041.1938L13.2719%2060.4437C13.0016%2060.7528%2012.7949%2061.112%2012.6635%2061.5009C12.5321%2061.8898%2012.4786%2062.3008%2012.506%2062.7104C12.5334%2063.12%2012.6412%2063.5202%2012.8233%2063.8881C13.0054%2064.256%2013.2582%2064.5844%2013.5672%2064.8547C13.8762%2065.1249%2014.2354%2065.3316%2014.6243%2065.4631C15.0132%2065.5945%2015.4242%2065.648%2015.8338%2065.6206C16.2434%2065.5931%2016.6436%2065.4853%2017.0115%2065.3032C17.3794%2065.1212%2017.7079%2064.8684%2017.9781%2064.5594L33.9469%2046.3062L47.5%2064.375C47.7911%2064.7631%2048.1685%2065.0781%2048.6025%2065.2951C49.0364%2065.512%2049.5149%2065.625%2050%2065.625H62.5C63.0803%2065.625%2063.6492%2065.4634%2064.1429%2065.1583C64.6366%2064.8532%2065.0355%2064.4166%2065.2951%2063.8975C65.5546%2063.3785%2065.6645%2062.7974%2065.6124%2062.2194C65.5603%2061.6414%2065.3482%2061.0893%2065%2060.625L44.8844%2033.8062L61.7281%2014.5594ZM51.5625%2059.375L18.75%2015.625H23.4375L56.25%2059.375H51.5625Z'%20fill='%23FEFEFE'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_203_217'%3e%3crect%20width='75'%20height='75'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",rp="/assets/instagram-fill-e16fbGAB.svg",sp="data:image/svg+xml,%3csvg%20width='75'%20height='75'%20viewBox='0%200%2075%2075'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M40.7125%206.25C44.2281%206.25938%2046.0125%206.27813%2047.5531%206.32188L48.1594%206.34375C48.8594%206.36875%2049.55%206.4%2050.3844%206.4375C53.7094%206.59375%2055.9781%207.11875%2057.9688%207.89063C60.0313%208.68438%2061.7688%209.75938%2063.5063%2011.4938C65.0959%2013.0554%2066.3256%2014.9452%2067.1094%2017.0312C67.8813%2019.0219%2068.4063%2021.2906%2068.5625%2024.6188C68.6%2025.45%2068.6313%2026.1406%2068.6563%2026.8438L68.675%2027.45C68.7219%2028.9875%2068.7406%2030.7719%2068.7469%2034.2875L68.75%2036.6188V40.7125C68.7576%2042.9919%2068.7337%2045.2713%2068.6781%2047.55L68.6594%2048.1563C68.6344%2048.8594%2068.6031%2049.55%2068.5656%2050.3813C68.4094%2053.7094%2067.8781%2055.975%2067.1094%2057.9688C66.3256%2060.0548%2065.0959%2061.9446%2063.5063%2063.5063C61.9446%2065.0959%2060.0548%2066.3256%2057.9688%2067.1094C55.9781%2067.8813%2053.7094%2068.4063%2050.3844%2068.5625L48.1594%2068.6563L47.5531%2068.675C46.0125%2068.7188%2044.2281%2068.7406%2040.7125%2068.7469L38.3813%2068.75H34.2906C32.0102%2068.758%2029.7298%2068.7341%2027.45%2068.6781L26.8438%2068.6594C26.1019%2068.6313%2025.3602%2068.599%2024.6188%2068.5625C21.2938%2068.4063%2019.025%2067.8813%2017.0313%2067.1094C14.9464%2066.3252%2013.0576%2065.0955%2011.4969%2063.5063C9.90609%2061.9449%208.67535%2060.0551%207.89063%2057.9688C7.11876%2055.9781%206.59376%2053.7094%206.43751%2050.3813L6.34376%2048.1563L6.32813%2047.55C6.27053%2045.2713%206.24448%2042.9919%206.25001%2040.7125V34.2875C6.24136%2032.0081%206.26428%2029.7287%206.31876%2027.45L6.34063%2026.8438C6.36563%2026.1406%206.39688%2025.45%206.43438%2
120024.6188C6.59063%2021.2906%207.11563%2019.025%207.88751%2017.0312C8.67405%2014.9444%209.90696%2013.0545%2011.5%2011.4938C13.0599%209.90484%2014.9475%208.67523%2017.0313%207.89063C19.025%207.11875%2021.2906%206.59375%2024.6188%206.4375C25.45%206.4%2026.1438%206.36875%2026.8438%206.34375L27.45%206.325C29.7287%206.26948%2032.0081%206.24552%2034.2875%206.25312L40.7125%206.25ZM37.5%2021.875C33.356%2021.875%2029.3817%2023.5212%2026.4515%2026.4515C23.5212%2029.3817%2021.875%2033.356%2021.875%2037.5C21.875%2041.644%2023.5212%2045.6183%2026.4515%2048.5485C29.3817%2051.4788%2033.356%2053.125%2037.5%2053.125C41.644%2053.125%2045.6183%2051.4788%2048.5485%2048.5485C51.4788%2045.6183%2053.125%2041.644%2053.125%2037.5C53.125%2033.356%2051.4788%2029.3817%2048.5485%2026.4515C45.6183%2023.5212%2041.644%2021.875%2037.5%2021.875ZM37.5%2028.125C38.7311%2028.1248%2039.9503%2028.3671%2041.0878%2028.838C42.2253%2029.309%2043.2589%2029.9994%2044.1296%2030.8698C45.0003%2031.7402%2045.691%2032.7736%2046.1623%2033.9109C46.6337%2035.0483%2046.8764%2036.2673%2046.8766%2037.4984C46.8768%2038.7296%2046.6345%2039.9487%2046.1635%2041.0862C45.6926%2042.2237%2045.0022%2043.2573%2044.1318%2044.128C43.2614%2044.9987%2042.228%2045.6894%2041.0907%2046.1608C39.9533%2046.6321%2038.7343%2046.8748%2037.5031%2046.875C35.0167%2046.875%2032.6322%2045.8873%2030.874%2044.1291C29.1159%2042.371%2028.1281%2039.9864%2028.1281%2037.5C28.1281%2035.0136%2029.1159%2032.629%2030.874%2030.8709C32.6322%2029.1127%2035.0167%2028.125%2037.5031%2028.125M53.9094%2017.1875C52.8734%2017.1875%2051.8798%2017.5991%2051.1472%2018.3316C50.4147%2019.0642%2050.0031%2020.0577%2050.0031%2021.0938C50.0031%2022.1298%2050.4147%2023.1233%2051.1472%2023.8559C51.8798%2024.5885%2052.8734%2025%2053.9094%2025C54.9454%2025%2055.939%2024.5885%2056.6715%2023.8559C57.4041%2023.1233%2057.8156%2022.1298%2057.8156%2021.0938C57.8156%2020.0577%2057.4041%2019.0642%2056.6715%2018.3316C55.939%2017.5991%2054.9454%2017.1875%2053.9094%2017.1875Z'%20fill='%23FEFEFE'/%3e%3c/svg%3e",ap="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.5238%206.90342L22.5235%206.90236C22.1796%205.66441%2021.3356%204.82035%2020.0976%204.47648L20.0976%204.47647L20.0923%204.47502C19.4666%204.30492%2018.4633%204.1917%2017.1574%204.11665C15.8262%204.04014%2014.1054%204%2012%204H11.9811L11.9623%204.00071L10.3911%204.06C9.27923%204.06035%208.07887%204.09084%206.77041%204.16122C5.46466%204.22067%204.49708%204.31198%203.90341%204.47619L3.90236%204.47648C2.66441%204.82035%201.82035%205.66441%201.47648%206.90236L1.47647%206.90235L1.47502%206.90768C1.15983%208.06714%201%209.78292%201%2012V12.0357L1.00254%2012.0712L1.06003%2012.8761C1.06121%2013.4988%201.09285%2014.2045%201.16327%2015.011C1.22505%2015.8319%201.32089%2016.5351%201.47619%2017.0966L1.47648%2017.0976C1.82035%2018.3356%202.66441%2019.1796%203.90235%2019.5235L3.90768%2019.525C4.5334%2019.6951%205.53673%2019.8083%206.84262%2019.8834C8.17379%2019.9599%209.89456%2020%2012%2020H12.0189L12.0377%2019.9993L13.6089%2019.94C14.7208%2019.9397%2015.9211%2019.9092%2017.2296%2019.8388C18.5354%2019.7793%2019.5029%2019.688%2020.0966%2019.5238L20.0976%2019.5235C21.3356%2019.1796%2022.1796%2018.3356%2022.5235%2017.0976L22.525%2017.0923C22.8402%2015.9329%2023%2014.2171%2023%2012V11.9643L22.9975%2011.9288L22.94%2011.1238C22.9388%2010.5012%2022.9072%209.79557%2022.8367%208.98912C22.775%208.16815%2022.6791%207.4649%2022.5238%206.90342ZM11%2010.7331L13.1918%2012L11%2013.2669V10.7331Z'%20fill='%23D60100'
120%20stroke='%23FEFEFE'%20stroke-width='2'/%3e%3c/svg%3e",op="data:image/svg+xml,%3csvg%20width='75'%20height='75'%20viewBox='0%200%2075%2075'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M31.25%2046.875L47.4688%2037.5L31.25%2028.125V46.875ZM67.375%2022.4062C67.7812%2023.875%2068.0625%2025.8437%2068.25%2028.3437C68.4688%2030.8437%2068.5625%2033%2068.5625%2034.875L68.75%2037.5C68.75%2044.3438%2068.25%2049.375%2067.375%2052.5938C66.5938%2055.4062%2064.7812%2057.2188%2061.9688%2058C60.5%2058.4062%2057.8125%2058.6875%2053.6875%2058.875C49.625%2059.0938%2045.9062%2059.1875%2042.4688%2059.1875L37.5%2059.375C24.4062%2059.375%2016.25%2058.875%2013.0312%2058C10.2188%2057.2188%208.40625%2055.4062%207.625%2052.5938C7.21875%2051.125%206.9375%2049.1562%206.75%2046.6562C6.53125%2044.1562%206.4375%2042%206.4375%2040.125L6.25%2037.5C6.25%2030.6562%206.75%2025.625%207.625%2022.4062C8.40625%2019.5938%2010.2188%2017.7813%2013.0312%2017C14.5%2016.5938%2017.1875%2016.3125%2021.3125%2016.125C25.375%2015.9062%2029.0938%2015.8125%2032.5312%2015.8125L37.5%2015.625C50.5938%2015.625%2058.75%2016.125%2061.9688%2017C64.7812%2017.7813%2066.5938%2019.5938%2067.375%2022.4062Z'%20fill='%23FEFEFE'/%3e%3c/svg%3e",FZ=async()=>{const t=await He.get("/api/cards?page_name=Home§ion=2");if(!t)throw new Error("Network response was not ok");return t==null?void 0:t.data},BZ=async()=>{const t=await He.get("/api/cards?page_name=Home§ion=3");if(!t)throw new Error("Network response was not ok");return t==null?void 0:t.data},$Z=async()=>{const t=await He.get("/api/cards?void=0&page_name=Home§ion=4");if(!t)throw new Error("Network response was not ok");return t==null?void 0:t.data},HZ=async t=>{const e=await He.get(`/api/cards?void=0&page_name=${t}§ion=1`);if(!e)throw new Error("Network response was not ok");return e==null?void 0:e.data},zZ=async t=>{const e=await He.get(`/api/cards?void=0&page_name=${t}`);if(!e)throw new Error("Network response was not ok");return e==null?void 0:e.data},VZ=async()=>{const t=await He.get("/api/cards?void=0&page_name=Social§ion=1");if(!t)throw new Error("Network response was not ok");return t==null?void 0:t.data},UZ=()=>Ge({queryKey:["info_card"],queryFn:FZ,staleTime:1e3*60*60,gcTime:1e3*60*60}),WZ=()=>Ge({queryKey:["publications_card"],queryFn:BZ,staleTime:1e3*60*60,gcTime:1e3*60*60}),GZ=()=>Ge({queryKey:["info_graphics"],queryFn:$Z,staleTime:1e3*60*60,gcTime:1e3*60*60}),lp=t=>Ge({queryKey:["cardByPage",t],queryFn:()=>HZ(t),staleTime:1e3*60*60,gcTime:1e3*60*60,enabled:!1}),yx=t=>Ge({queryKey:["card",t],queryFn:()=>zZ(t),staleTime:1e3*60*60,gcTime:1e3*60*60}),Xf=()=>Ge({queryKey:["social_media"],queryFn:VZ,staleTime:1e3*60*60,gcTime:1e3*60*60}),M5=({gap:t,size:e,hidden:n,isWhite:i=!1})=>{const{data:r}=Xf();return o.jsxs("div",{className:`flex ${t||"gap-2 bg-white rounded-md px-2"} ${n}`,children:[!r&&o.jsxs(o.Fragment,{children:[o.jsx("a",{href:"https://www.facebook.com/Palang+Merah+Indonesia",target:"_blank",rel:"noopener noreferrer","aria-label":"Facebook",children:o.jsx("img",{src:i?tp:ep,alt:"Facebook",className:`${e||"w-5 h-5"} transition-transform transform hover:scale-110`})}),o.jsx("a",{href:"https://twitter.com/palangmerah",target:"_blank",rel:"noopener noreferrer","aria-label":"X (formerly Twitter)",children:o.jsx("img",{src:i?ip:np,alt:"Twitter",className:`${e||"w-5 h-5"} transition-transform transform hover:scale-110`})}),o.jsx("a",{href:"https://www.instagram.com/palangmerah_indonesia",target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram",children:o.jsx("img",{src:i?sp:rp,alt:"Instagram",className:`${e||"w-5 h-5"} transition-transform transform hover:scale-110`})}),o.jsx("a",{href:"https://www.youtube.com/pmi_tv",target:"_blank",rel:"noopener noreferrer","aria-label":"YouTube",children:o.jsx("img",{src:i?op:ap,alt:"YouTube",className:`${e||"w-5 h-5"} transition-transform transform hover:scale-110`})})]}),r&&r.map((s,a)=>o.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer","aria-label":s.title,children:o.jsx("span",{className:`text-2xl ${i?"text-white":"text-pmi-red"}`,children:o.jsx("i",{className:s.image})})},a))]})},c2=[{code:"en",label:"English"},{code:"id",label:"Bahasa Indonesia"}],qZ=()=>{const[t,e]=Z.useState(!1),[n,i]=Z.useState(c2[0]),{language:r,setLanguage:s}=_e(),a=()=>e(!t);Z.useEffect(()=>{c2.map(c=>{c.code===r&&i(c)})},[r]);const l=c=>{i(c),e(!1),s(c.code)};return o.jsxs("div",{className:"relative inline-block text-left bg-transparent",children:[o.jsxs("button",{type:"button",onClick:a,className:"flex items-center gap-2 px-4 py-2 text-white focus:outline-none uppercase text-xs",children:[n.code,o.jsx("svg",{className:`w-4 h-4 transform transition-transform ${t?"rotate-180":""}`,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),t&&o.jsx("div",{className:"absolute right-0 mt-2 w-48 bg-white border border-gray-200 rounded-md shadow-lg z-[1000000]",children:o.jsx("ul",{className:"py-1 px-2 divide-y",children:c2.map(c=>o.jsx("li",{onClick:()=>l(c),className:"cursor-pointer px-4 py-2 text-xs text-pmi-black hover:bg-gray-100",children:c.label},c.code))})})]})},KZ=({addClassName:t="h-6 w-6",onClick:e})=>o.jsx("svg",{className:t,onClick:e,fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})}),cp=({addClassName:t="h-6 w-6",color:e})=>o.jsx("svg",{className:t,fill:e||"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true",children:o.jsx("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})}),YZ=({mobileMenuOpen:t,setMobileMenuOpen:e,menuItems:n})=>o.jsxs(cs,{open:t,onClose:e,className:"2xl:hidden z-[10001]",children:[o.jsx("div",{className:"fixed inset-0 z-10"}),o.jsxs(nc,{className:"fixed inset-y-0 right-0 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10 z-[10001]",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("a",{href:"/",className:"-m-1.5 p-1.5",children:[o.jsx("img",{src:"/png/logo.png",alt:"PALANG MERAH INDONESIA",className:"w-40 md:w-[150px] md:h-14"}),"Â "]}),o.jsxs("button",{type:"button",onClick:()=>e(!1),className:"rounded-md p-2.5 text-gray-700",children:[o.jsx("span",{className:"sr-only",children:"Close menu"}),o.jsx(cp,{addClassName:"w-8 h-8"})]})]}),o.jsx("div",{className:"mt-12 flow-root",children:o.jsx("div",{className:"-my-6 divide-y divide-gray-500/10",children:o.jsx("div",{className:"space-y-2 py-6",children:n.map((i,r)=>o.jsx("div",{children:i.categories?i.categories.map((s,a)=>o.jsx(d0,{children:({open:l})=>o.jsxs(o.Fragment,{children:[o.jsxs(Fg,{className:"flex justify-between items-center w-full py-2 font-semibold text-gray-700",children:[s.title,o.jsx("img",{src:`/svg/arrow/${l?"arrow-down":"arrow-right"}.svg`,alt:"arrow",className:"w-7 h-8"})]}),o.jsx(Bg,{className:"pl-4",children:s.items.map((c,d)=>o.jsx("div",{children:c.subItems?o.jsx(d0,{children:({open:u})=>{var h;return o.jsxs(o.Fragment,{children:[o.jsxs(Fg,{className:"flex justify-between items-center w-full py-2 text-gray-600",children:[c.label,o.jsx("img",{src:`/svg/arrow/${u?"arrow-down":"arrow-right"}.svg`,alt:"arrow",className:"w-7 h-8"})]}),o.jsx(Bg,{className:"pl-4",children:(h=c.subItems)==null?void 0:h.map((p,y)=>o.jsx("a",{href:p.path,className:"block py-2 text-gray-600 hover:text-gray-800",children:p.label},y))})]})}}):o.jsx("a",{href:c.path,className:"block py-2 text-gray-600 hover:text-gray-800",children:c.label})},d))})]})},a)):i.subItems?o.jsx(d0,{children:({open:s})=>o.jsxs(o.Fragment,{children:[o.jsxs(Fg,{className:"flex justify-between items-center w-full py-2 font-semibold text-gray-700",children:[i.label,o.jsx("img",{src:`/svg/arrow/${s?"arrow-down":"arrow-right"}.svg`,alt:"arrow",className:"w-7 h-8"})]}),o.jsx(Bg,{className:"pl-4",children:i.subItems&&i.subItems.map((a,l)=>o.jsx("div",{children:a.subItems?o.jsx(d0,{children:({open:c})=>{var d;return o.jsxs(o.Fragment,{children:[o.jsxs(Fg,{className:"flex justify-between items-center w-full py-2 text-gray-600",children:[a.label,o.jsx("img",{src:`/svg/arrow/${c?"arrow-down":"arrow-right"}.svg`,alt:"arrow",className:"w-7 h-8"})]}),o.jsx(Bg,{className:"pl-4",children:(d=a.subItems)==null?void 0:d.map((u,h)=>o.jsx("a",{href:u.path,className:"block py-2 text-gray-600 hover:text-gray-800",children:u.label},h))})]})}}):o.jsx("a",{href:a.path,className:"block py-2 text-gray-600 hover:text-gray-800",children:a.label})},l))})]})}):o.jsx("a",{href:i.path,className:"block text-gray-700 font-semibold",children:i.label})},r))})})})]})]});function ma(t,e,n){return new Intl.NumberFormat("en-US",{minimumFractionDigits:e,maximumFractionDigits:n}).format(t)}const d2=t=>t.replace(/\B(?=(\d{3})+(?!\d))/g,",");function Ok(t){return new Intl.NumberFormat("id-ID").format(t)}const XZ=t=>{const e=Math.abs(t);return e>=1e9?`${t<0?"-":""}${(e/1e9).toFixed(0)}M`:e>=1e6?`${t<0?"-":""}${(e/1e6).toFixed(0)}JT`:t.toString()},KI=(t,e="id-ID",n="IDR")=>{if(isNaN(t))throw new Error("Invalid amount");return new Intl.NumberFormat(e,{style:"currency",currency:n}).format(t)},bd=(t,e="pcs",n="id-ID")=>{if(isNaN(t))throw new Error("Invalid value");return`${new Intl.NumberFormat(n).format(t)} ${e}`};function JZ(t,e){const n=t.split(" ");return n.length>e?n.slice(0,e).join(" ")+"...":t}function Qx(t){return t.trim().toLowerCase().replace(/ /g,"-").replace(/[^a-z0-9-]/g,"")}function an(t){const e=Object.keys(t).filter(n=>t[n]!==null&&t[n]!==void 0).map(n=>`${encodeURIComponent(n)}=${encodeURIComponent(String(t[n]))}`).join("&");return e.length?`?${e}`:""}function kS(t){return t>
120=1073741824?ma(t/1073741824,1,1)+" GB":t>=1048576?ma(t/1048576,1,1)+" MB":t>=1024?ma(t/1024,1,1)+" KB":t>1?ma(t,1,1)+" bytes":t===1?"1 byte":"-"}function D5(t,e){return t>=3600?`${ma(t/3600,1,1)} ${e==="en"?"Hours":"Jam"}`:t>=60?`${ma(t/60,1,1)} ${e==="en"?"Min":"Menit"}`:`${t} ${e==="en"?"Sec":"Detik"}`}function _5(t){return t&&t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}function QZ(t){return t.replace(/-/g," ").split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}const ZZ=async()=>{const t=an({void:0}),e=await He.get(`/api/certification-areas${t}`);if(!e)throw new Error("Network response was not ok");return e.data},eee=async t=>{const e=an({void:0,mode:"mainPage",category:t}),n=await He.get(`/api/certification-areas${e}`);if(!n)throw new Error("Network response was not ok");return n.data},tee=async()=>{const t=await He.get("/api/competency-test-centres/detail");if(!t)throw new Error("Network response was not ok");return t.data},nee=async()=>{const t=await He.get("/api/profesional-certification-agencies/detail");if(!t)throw new Error("Network response was not ok");return t.data},iee=async()=>{const t=await He.get("/api/certification-testimonials/detail");if(!t)throw new Error("Network response was not ok");return t.data},ree=async(t=1)=>{const e=an({void:0,type:t}),n=await He.get(`/api/certification-testimonials${e}`);if(!n)throw new Error("Network response was not ok");return n.data},see=()=>Ge({queryKey:["listcertificationArea"],queryFn:()=>ZZ(),staleTime:1e3*60*60,gcTime:1e3*60*60}),aee=t=>Ge({queryKey:["certificationArea"],queryFn:()=>eee(t),staleTime:1e3*60*60,gcTime:1e3*60*60}),I5=()=>Ge({queryKey:["CompetencyTestCentres"],queryFn:()=>tee(),staleTime:1e3*60*60,gcTime:1e3*60*60}),oee=()=>Ge({queryKey:["ProfesionalCertificationAgencies"],queryFn:()=>nee(),staleTime:1e3*60*60,gcTime:1e3*60*60}),lee=()=>Ge({queryKey:["CertificationTestimonial"],queryFn:()=>iee(),staleTime:1e3*60*60,gcTime:1e3*60*60}),cee=(t=1)=>Ge({queryKey:["ListCertificationTestimonial"],queryFn:()=>ree(t),staleTime:1e3*60*60,gcTime:1e3*60*60}),dee=async()=>{const t=await He.get("/api/partnership-category?void=0");if(!t)throw new Error("Network response was not ok");return t==null?void 0:t.data},uee=async t=>{const e=await He.get(`api/partnership-page/detail/${t}`);if(!e)throw new Error("Network response was not ok");return e==null?void 0:e.data},hee=async t=>{const e=await He.get(`api/hall-of-fames/period/list/${t}`);if(!e)throw new Error("Network response was not ok");return e==null?void 0:e.data},pee=async()=>{const t=await He.get("api/hall-of-fames/years");if(!t)throw new Error("Network response was not ok");return t==null?void 0:t.data},mee=()=>Ge({queryKey:["partnership_category"],queryFn:dee,staleTime:1e3*60*60,gcTime:1e3*60*60}),R5=t=>Ge({queryKey:["partnership",t],queryFn:()=>uee(t),staleTime:1e3*60*60,gcTime:1e3*60*60}),fee=t=>Ge({queryKey:["hall_of_fame",t],queryFn:()=>hee(t),staleTime:1e3*60*60,gcTime:1e3*60*60}),gee=()=>Ge({queryKey:["hall_of_fame_years"],queryFn:pee,staleTime:1e3*60*60,gcTime:1e3*60*60}),xee=t=>{const{data:e,isLoading:n}=mee(),{data:i}=see(),{language:r}=_e();return[{label:t("menu:home"),path:"/"},{label:t("menu:donation"),megaMenu:!0,categories:[{title:t("menu:monetaryDonations"),items:[{label:t("menu:whyDonate"),path:"/donation/monetary/why-donate"},{label:t("menu:donateNow"),path:"/donation/monetary/donate-now"},{label:t("menu:campaigns"),path:"/donation/monetary/campaigns"}]},{title:t("menu:nonMonetaryDonations"),items:[{label:t("menu:goodsDonation"),path:"/donation/non-monetary/goods-donation"},{label:t("menu:skillsServices"),path:"/donation/non-monetary/skills-services"}]},{title:t("menu:partnerships"),items:[{label:t("menu:marketingToolsProgramCatalog"),path:"/donation/partnerships/marketing-tools"},...e&&!n?e.filter(s=>(s==null?void 0:s.partnership_count)>0).map(s=>{var a;return{label:r?s.title:s.title_indo,path:s.partnership_count>1?"#":`/donation/partnerships/programs/${(a=s.partnerships[0])==null?void 0:a.slug}`,...s.partnership_count>1&&{subItems:s.partnerships.map(l=>({label:r?l.title:l.title_indo,path:`/donation/partnerships/programs/${l.slug}`}))}}}):[],{label:t("menu:hallOfFame"),path:"/donation/partnerships/hall-of-Fame"}]},{title:t("menu:donationImpact"),items:[{label:t("menu:whereYourDonationsGo"),path:"/donation/donation-impact/where-your-donations-go"}]}]},{label:t("menu:bloodDonation"),subItems:[{label:t("menu:bloodStockInfo"),path:"/blood-donation/blood-stock"},{label:t("menu:locations"),path:"/blood-donation/locations"},{label:t("menu:donorDataInfo"),path:"/blood-donation/donor-info"},{label:t("menu:faq"),path:"/blood-donation/faq"},{label:t("menu:goDonorApp"),path:"/blood-donation/go-donor-app"}]},{label:t("menu:trainingAndCerification"),subItems:[{label:t("menu:training"),path:"/training-certification/training"},{label:t("menu:certificationArea"),subItems:i&&i.length>0&&i.map(s=>({label:r==="en"?s.title:s.title_indo,path:`/training-certification/certification-area/${s.slug}`}))||[],path:""},{label:t("menu:competencyTestCentre"),path:"/training-certification/competency-test-center"},{label:t("menu:certificationNews"),path:"/training-certification/certification-news"},{label:t("menu:testimonials"),path:"/training-certification/testimonials"},{label:t("menu:ifrc"),path:"/training-certification/ifrc"}]},{label:t("menu:volunteer"),subItems:[{label:t("menu:joinVolunteer"),path:"/volunteer"},{label:t("menu:volunteerStories"),path:"/volunteer/volunteer-stories"}]},{label:t("menu:news"),subItems:[{label:t("menu:pressReleases"),path:"/news/press-releases"},{label:t("menu:articles"),path:"/news/articles"},{label:t("menu:socialMedia"),path:"/news/social-media"}]},{label:t("menu:aboutUs"),megaMenu:!0,categories:[{title:t("menu:services"),items:[{label:t("menu:disasterManagement"),path:"/about-us/services/disaster-management"},{label:t("menu:healthSocialServices"),path:"/about-us/services/health-social-services"},{label:t("menu:internationalServices"),path:"/about-us/services/international-services"},{label:t("menu:programs"),path:"/about-us/services/programs"}]},{title:t("menu:aboutUsSection"),items:[{label:t("menu:movementPrinciples"),path:"/about-us/7-fundamental-principles"},{label:t("menu:visionMission"),path:"/about-us/vision-mission"},{label:t("menu:organizationStructure"),path:"/about-us/organization-structure"},{label:t("menu:governance"),path:"/about-us/governance"},{label:t("menu:history"),path:"/about-us/history"}]},{title:t("menu:library"),items:[{label:t("menu:pmiLibrary"),path:"/about-us/library/pmi-library"},{label:t("menu:publications"),path:"/about-us/library/publications"},{label:t("menu:faq"),path:"/about-us/library/faq"}]},{title:t("menu:careers"),items:[{label:t("menu:jobOpenings"),path:"/about-us/careers/job-openings"}]}]}]},YI=[{key:"home",label:"home",path:"/dashboard",icon:"/svg/dashboard/home.svg"},{key:"stock",label:"stock",path:"/dashboard/stock",icon:"/svg/dashboard/stock-fill.svg"},{key:"dataDistribution",label:"dataDistribution",path:"/dashboard/data-distribution",icon:"/svg/dashboard/bar-graph.svg"},{key:"disasterResponseAssets",label:"disasterResponseAssets",path:"/dashboard/disaster-response-assets",icon:"/svg/dashboard/box-16.svg"},{key:"pmiHumanResourceSkills",label:"pmiHumanResourceSkills",path:"/dashboard/hrs-skills",icon:"/svg/dashboard/person.svg"}],yee=({})=>{const{t}=Se(["header","menu"]),{language:e}=_e(),[n,i]=Z.useState(!1),[r,s]=Z.useState(!1),a=xee(t),{data:l}=yx("Home_Header");Z.useEffect(()=>{const d=()=>{s(window.scrollY>0)};return window.addEventListener("scroll",d),()=>{window.removeEventListener("scroll",d)}},[]);const c=()=>{i(!0)};return o.jsxs("header",{className:`fixed ${r?"top-0":"top-12"} flex flex-col w-full z-[100000]`,children:[o.jsxs("nav",{className:"top-0 fixed w-full flex justify-between items-center pl-8 lg:pr-14 h-12 bg-pmi-dark z-[1000000]",children:[o.jsxs("div",{className:"flex items-center px-0 md:px-16",children:[o.jsx(gk,{link:"/donation/monetary/donate-now"}),l&&l.length>0&&o.jsx("p",{className:"hidden md:block text-white text-xs lg:text-sm px-2",children:e==="en"?l[0].title:l[0].title_indo})]}),o.jsxs("div",{className:"flex items-center",children:[o.jsx(M5,{hidden:"hidden md:flex"}),o.jsx(qZ,{})]})]}),o.jsxs("nav",{className:`w-full ${r?"top-12":""} flex justify-between md:h-24 px-4 md:pl-12 lg:pr-14 py-1 items-center shadow-md bg-white relative z-[100000]`,children:[o.jsxs("a",{href:"/",className:"flex py-1",children:[o.jsx("img",{src:"/png/logo.png",alt:"PALANG MERAH INDONESIA",className:"w-24 md:w-28 h-8 md:h-10"}),"Â "]}),o.jsx(LZ,{menuItems:a}),o.jsx("div",{className:"flex items-center",children:o.jsx(KZ,{addClassName:"ml-4 w-6 h-6 flex xl:hidden",onClick:c})})]}),o.jsx(YZ,{mobileMenuOpen:n,setMobileMenuOpen:i,menuItems:a})]})},bee=()=>{const{t}=Se(["common"]);return o.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center gap-6 lg:gap-2 mb-0 w-full bg-pmi-red px-2 lg:px-8 py-4 md:h-24 text-white",children:[o.jsx("div",{className:"flex-auto px-4 lg:px-12",children:o.jsx("a",{href:"/contact-us",className:"bg-transparent border-2 border-white px-4 lg:px-12 py-2 rounded-xl font-bold md:text-md lg:text-lg",children:t("footer.contactUs")})}),o.jsxs("div",{className:"flex flex-col md:flex-row gap-2 md:gap-6 items-center",children:[o.jsx("p",{className:"italic font-medium text-base",children:t("footer.followUs")}),o.jsx(M5,{gap:"gap-4",size:"w-8 h-8",isWhite:!0})]})]})},vee=()=>{const{t}=Se(["common"]),{language:e}=_e(),{data:n}=yx("Home_Footer");return o.jsxs("footer",{className:"flex flex-col items-center mb-0",children:[o.jsx(bee,{}),o.jsxs("div",{className:"flex flex-col w-full bg-pmi-dark text-pmi-gray",children:[o.jsxs("div",{className:"flex flex-col md:flex-row justify-between px-4 lg:px-14 py-6",children:[o.jsxs("div",{className:"flex-auto mb-6 px-2 lg:px-8 text-white",children:[o.jsx("h3",{className:"text-xs font-medium mb-2",children:t("footer.pmiHq")}),o.jsxs("ul",{className:"space-y-1 text-xs",children:[o.jsx("li",{children:"Jalan Gatot Subroto Kav. 96 - Jakarta 12790"}),o.jsx("li",{children:o.jsxs("a",{href:"mailto:[email protected]",className:"flex hover:text-gray-400",children:[o.jsx("img",{src:"/svg/mail.svg",alt:"phone",className:"w-6 h-6"}),"Â [email protected]"]}
120)})]})]}),o.jsxs("div",{className:"flex max-w-[25rem] max-h-24 gap-4 text-white rounded-lg",children:[o.jsx("div",{className:"pt-1",children:o.jsx(gk,{link:"/donation/monetary/donate-now",className:"bg-pmi-red uppercase font-medium text-lg text-white px-3 py-1 rounded-sm"})}),o.jsx("p",{className:"font-medium text-xs",children:n&&n.length>0&&o.jsx("p",{className:"hidden md:block text-white text-xs lg:text-sm px-2",children:e==="en"?n[0].title:n[0].title_indo})})]})]}),o.jsx("div",{className:"border-t-2 border-pmi-gray px-6 lg:px-12",children:o.jsx("div",{className:"flex justify-start px-2 lg:px-8 py-4",children:o.jsxs("p",{className:"font-normal text-base text-pmi-white",children:["© ",new Date().getFullYear()," Palang Merah Indonesia. All rights reserved."]})})})]})]})},wee=({items:t,separator:e=">",isScrolled:n})=>o.jsx("div",{className:["overflow-x-auto w-full justify-start items-center pl-2 md:pl-8 xl:pr-12 py-3 md:py-4 border-b z-50",n?"":"mt-16 md:mt-4"].join(" "),"aria-label":"breadcrumb",children:o.jsx("ol",{className:"flex space-x-2",children:t.map((i,r)=>o.jsxs("li",{className:"flex items-center",children:[i.path?o.jsx(pF,{to:i.path,className:`truncate text-pmi-gray font-light ${i.path!=="#"?"hover:underline":"cursor-default"}`,children:i.label.length>55?i.label.slice(0,55)+"...":i.label}):o.jsx("span",{className:"truncate text-pmi-red font-semibold cursor-default",children:i.label.length>55?i.label.slice(0,55)+"...":i.label}),r<t.length-1&&o.jsx("span",{className:"mx-2 text-pmi-gray",children:e})]},r))})}),Ye=({children:t,type:e,title:n,forceTitle:i,description:r,breadcrumbs:s=[]})=>{const{t:a}=Se(["common","header"]),{language:l}=_e();return o.jsxs("div",{className:"bg-white flex flex-col md:min-h-screen",children:[o.jsxs(Pk,{children:[o.jsx("html",{lang:l}),i&&o.jsx("title",{children:i}),!i&&o.jsx("title",{children:a(n?`menu:${n}`:"header:title")}),r&&o.jsx("meta",{name:"description",content:r}),!r&&o.jsx("meta",{name:"description",content:a("header:description")})]}),o.jsx(yee,{title:n}),o.jsxs("main",{className:on({"flex-grow w-full mt-10 md:mt-36":e==="default"}),children:[s.length>0&&o.jsx(wee,{items:s}),t]}),o.jsx(vee,{})]})},Ot=({onlyImage:t=!1,withoutButtton:e=!1,minWidth:n="min-w-96",maxWidth:i="max-w-md",minHeight:r="min-h-96"})=>o.jsxs("div",{className:`animate-pulse w-full mx-auto ${n} ${i} p-4 rounded-lg shadow-lg bg-gray-100`,children:[o.jsx("div",{className:`w-full ${t?r:"min-h-40"} bg-gray-300 rounded mb-4`}),!t&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"h-4 bg-gray-300 rounded w-3/4 mb-2"}),o.jsx("div",{className:"h-3 bg-gray-300 rounded w-1/2 mb-4"}),o.jsx("div",{className:"h-3 bg-gray-300 rounded w-full mb-1"}),o.jsx("div",{className:"h-3 bg-gray-300 rounded w-full mb-1"}),o.jsx("div",{className:"h-3 bg-gray-300 rounded w-5/6"})]}),!t&&!e&&o.jsx("div",{className:"h-8 bg-gray-300 rounded w-1/3 mt-4"})]}),OT=({title:t,subTitle:e,image:n,url:i,isTraining:r})=>{const{t:s}=Se(["common"]);return o.jsxs("a",{href:i,className:"relative cursor-pointer group w-full max-w-lg rounded-lg overflow-hidden shadow-lg bg-gradient-to-t from-pmi-red-darker to-75% to-pmi-gray-light",children:[o.jsxs("div",{className:"px-6 py-4 md:px-10 md:py-8 w-100 md:w-[22rem] h-[21rem] md:h-96",children:[o.jsxs("p",{className:"font-bold text-xl text-pmi-red py-2",children:[" ",t]}),o.jsx("p",{className:"font-light text-base",children:e}),!r&&o.jsxs("p",{className:"font-semibold text-xs text-pmi-red",children:[_5(s("readMore")),"..."]}),r&&o.jsx("div",{className:"flex items-center gap-8 mt-2",children:o.jsxs("a",{href:i,className:"cursor-pointer flex items-center gap-6",children:[o.jsx("span",{className:"uppercase",children:s("learnMore")}),o.jsx("img",{src:"/svg/arrow/next.svg",alt:"next",className:"w-10 h-10 transition-transform transform group-hover:scale-125"})]})})]}),o.jsx("div",{className:"absolute inset-x-0 bottom-0",children:o.jsx("img",{className:"w-full h-full max-h-72",src:n,alt:t||"offer"})})]})},kee=()=>{const{t}=Se(["common"]),{language:e}=_e(),{data:n,isLoading:i}=UZ(),r=t("common:home.offers.cards",{returnObjects:!0});return o.jsxs("div",{className:"flex flex-col flex-wrap gap-4 items-center justify-center mt-7 py-8 px-2 xl:px-24",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center",children:t("common:home.offers.title")}),o.jsx("p",{className:"font-light text-xl text-pmi-gray text-center",children:t("common:home.offers.subTitle")}),o.jsxs("div",{className:"flex flex-col lg:flex-row justify-center gap-2 lg:gap-8 mt-4",children:[i&&r.map(s=>o.jsx(Ot,{},s.title)),!i&&!n&&r.map((s,a)=>o.jsx(OT,{title:s.title,subTitle:s.subTitle,image:`/png/offers/${a+1}.png`},a)),n&&n.map((s,a)=>o.jsx(OT,{title:e=="en"?s.title:s.title_indo,subTitle:e=="en"?s.subtitle:s.subtitle_indo,image:`/png/offers/${a+1}.png`,url:s.url},a))]})]})};var dp={},Jf={};/** 121 * @license React 122 * react-dom-server-legacy.browser.production.min.js 123 * 124 * Copyright (c) Facebook, Inc. and its affiliates. 125 * 126 * This source code is licensed under the MIT license found in the 127 * LICENSE file in the root directory of this source tree. 128 */var O5=Z;function _t(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);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 Xr=Object.prototype.hasOwnProperty,See=/^[: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]*$/,XI={},JI={};function L5(t){return Xr.call(JI,t)?!0:Xr.call(XI,t)?!1:See.test(t)?JI[t]=!0:(XI[t]=!0,!1)}function Hr(t,e,n,i,r,s,a){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=s,this.removeEmptyString=a}var rr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){rr[t]=new Hr(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEac
vendor: 68,013 bytes, lines 128-146
128h(function(t){var e=t[0];rr[e]=new Hr(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){rr[t]=new Hr(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){rr[t]=new Hr(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){rr[t]=new Hr(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){rr[t]=new Hr(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){rr[t]=new Hr(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){rr[t]=new Hr(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){rr[t]=new Hr(t,5,!1,t.toLowerCase(),null,!1,!1)});var MN=/[\-:]([a-z])/g;function DN(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(MN,DN);rr[e]=new Hr(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(MN,DN);rr[e]=new Hr(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(MN,DN);rr[e]=new Hr(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){rr[t]=new Hr(t,1,!1,t.toLowerCase(),null,!1,!1)});rr.xlinkHref=new Hr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){rr[t]=new Hr(t,1,!1,t.toLowerCase(),null,!0,!0)});var Q0={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},Cee=["Webkit","ms","Moz","O"];Object.keys(Q0).forEach(function(t){Cee.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Q0[e]=Q0[t]})});var jee=/["'&<>]/;function _r(t){if(typeof t=="boolean"||typeof t=="number")return""+t;t=""+t;var e=jee.exec(t);if(e){var n="",i,r=0;for(i=e.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:e=""";break;case 38:e="&";break;case 39:e="'";break;case 60:e="<";break;case 62:e=">";break;default:continue}r!==i&&(n+=t.substring(r,i)),r=i+1,n+=e}t=r!==i?n+t.substring(r,i):n}return t}var Tee=/([A-Z])/g,Pee=/^ms-/,LT=Array.isArray;function qo(t,e){return{insertionMode:t,selectedValue:e}}function Eee(t,e,n){switch(e){case"select":return qo(1,n.value!=null?n.value:n.defaultValue);case"svg":return qo(2,null);case"math":return qo(3,null);case"foreignObject":return qo(1,null);case"table":return qo(4,null);case"thead":case"tbody":case"tfoot":return qo(5,null);case"colgroup":return qo(7,null);case"tr":return qo(6,null)}return 4<=t.insertionMode||t.insertionMode===0?qo(1,null):t}var QI=new Map;function F5(t,e,n){if(typeof n!="object")throw Error(_t(62));e=!0;for(var i in n)if(Xr.call(n,i)){var r=n[i];if(r!=null&&typeof r!="boolean"&&r!==""){if(i.indexOf("--")===0){var s=_r(i);r=_r((""+r).trim())}else{s=i;var a=QI.get(s);a!==void 0||(a=_r(s.replace(Tee,"-$1").toLowerCase().replace(Pee,"-ms-")),QI.set(s,a)),s=a,r=typeof r=="number"?r===0||Xr.call(Q0,i)?""+r:r+"px":_r((""+r).trim())}e?(e=!1,t.push(' style="',s,":",r)):t.push(";",s,":",r)}}e||t.push('"')}function ms(t,e,n,i){switch(n){case"style":F5(t,e,i);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N"){if(e=rr.hasOwnProperty(n)?rr[n]:null,e!==null){switch(typeof i){case"function":case"symbol":return;case"boolean":if(!e.acceptsBooleans)return}switch(n=e.attributeName,e.type){case 3:i&&t.push(" ",n,'=""');break;case 4:i===!0?t.push(" ",n,'=""'):i!==!1&&t.push(" ",n,'="',_r(i),'"');break;case 5:isNaN(i)||t.push(" ",n,'="',_r(i),'"');break;case 6:!isNaN(i)&&1<=i&&t.push(" ",n,'="',_r(i),'"');break;default:e.sanitizeURL&&(i=""+i),t.push(" ",n,'="',_r(i),'"')}}else if(L5(n)){switch(typeof i){case"function":case"symbol":return;case"boolean":if(e=n.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-")return}t.push(" ",n,'="',_r(i),'"')}}}function Z0(t,e,n){if(e!=null){if(n!=null)throw Error(_t(60));if(typeof e!="object"||!("__html"in e))throw Error(_t(61));e=e.__html,e!=null&&t.push(""+e)}}function Aee(t){var e="";return O5.Children.forEach(t,function(n){n!=null&&(e+=n)}),e}function u2(t,e,n,i){t.push(ro(n));var r=n=null,s;for(s in e)if(Xr.call(e,s)){var a=e[s];if(a!=null)switch(s){case"children":n=a;break;case"dangerouslySetInnerHTML":r=a;break;default:ms(t,i,s,a)}}return t.push(">"),Z0(t,r,n),typeof n=="string"?(t.push(_r(n)),null):n}var Nee=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ZI=new Map;function ro(t){var e=ZI.get(t);if(e===void 0){if(!Nee.test(t))throw Error(_t(65,t));e="<"+t,ZI.set(t,e)}return e}function Mee(t,e,n,i,r){switch(e){case"select":t.push(ro("select"));var s=null,a=null;for(u in n)if(Xr.call(n,u)){var l=n[u];if(l!=null)switch(u){case"children":s=l;break;case"dangerouslySetInnerHTML":a=l;break;case"defaultValue":case"value":break;default:ms(t,i,u,l)}}return t.push(">"),Z0(t,a,s),s;case"option":a=r.selectedValue,t.push(ro("option"));var c=l=null,d=null,u=null;for(s in n)if(Xr.call(n,s)){var h=n[s];if(h!=null)switch(s){case"children":l=h;break;case"selected":d=h;break;case"dangerouslySetInnerHTML":u=h;break;case"value":c=h;default:ms(t,i,s,h)}}if(a!=null)if(n=c!==null?""+c:Aee(l),LT(a)){for(i=0;i<a.length;i++)if(""+a[i]===n){t.push(' selected=""');break}}else""+a===n&&t.push(' selected=""');else d&&t.push(' selected=""');return t.push(">"),Z0(t,u,l),l;case"textarea":t.push(ro("textarea")),u=a=s=null;for(l in n)if(Xr.call(n,l)&&(c=n[l],c!=null))switch(l){case"children":u=c;break;case"value":s=c;break;case"defaultValue":a=c;break;case"dangerouslySetInnerHTML":throw Error(_t(91));default:ms(t,i,l,c)}if(s===null&&a!==null&&(s=a),t.push(">"),u!=null){if(s!=null)throw Error(_t(92));if(LT(u)&&1<u.length)throw Error(_t(93));s=""+u}return typeof s=="string"&&s[0]===` 129`&&t.push(` 130`),s!==null&&t.push(_r(""+s)),null;case"input":t.push(ro("input")),c=u=l=s=null;for(a in n)if(Xr.call(n,a)&&(d=n[a],d!=null))switch(a){case"children":case"dangerouslySetInnerHTML":throw Error(_t(399,"input"));case"defaultChecked":c=d;break;case"defaultValue":l=d;break;case"checked":u=d;break;case"value":s=d;break;default:ms(t,i,a,d)}return u!==null?ms(t,i,"checked",u):c!==null&&ms(t,i,"checked",c),s!==null?ms(t,i,"value",s):l!==null&&ms(t,i,"value",l),t.push("/>"),null;case"menuitem":t.push(ro("menuitem"));for(var p in n)if(Xr.call(n,p)&&(s=n[p],s!=null))switch(p){case"children":case"dangerouslySetInnerHTML":throw Error(_t(400));default:ms(t,i,p,s)}return t.push(">"),null;case"title":t.push(ro("title")),s=null;for(h in n)if(Xr.call(n,h)&&(a=n[h],a!=null))switch(h){case"children":s=a;break;case"dangerouslySetInnerHTML":throw Error(_t(434));default:ms(t,i,h,a)}return t.push(">"),s;case"listing":case"pre":t.push(ro(e)),a=s=null;for(c in n)if(Xr.call(n,c)&&(l=n[c],l!=null))switch(c){case"children":s=l;break;case"dangerouslySetInnerHTML":a=l;break;default:ms(t,i,c,l)}if(t.push(">"),a!=null){if(s!=null)throw Error(_t(60));if(typeof a!="object"||!("__html"in a))throw Error(_t(61));n=a.__html,n!=null&&(typeof n=="string"&&0<n.length&&n[0]===` 131`?t.push(` 132`,n):t.push(""+n))}return typeof s=="string"&&s[0]===` 133`&&t.push(` 134`),s;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":t.push(ro(e));for(var y in n)if(Xr.call(n,y)&&(s=n[y],s!=null))switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(_t(399,e));default:ms(t,i,y,s)}return t.push("/>"),null;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 u2(t,n,e,i);case"html":return r.insertionMode===0&&t.push("<!DOCTYPE html>"),u2(t,n,e,i);default:if(e.indexOf("-")===-1&&typeof n.is!="string")return u2(t,n,e,i);t.push(ro(e)),a=s=null;for(d in n)if(Xr.call(n,d)&&(l=n[d],l!=null))switch(d){case"children":s=l;break;case"dangerouslySetInnerHTML":a=l;break;case"style":F5(t,i,l);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:L5(d)&&typeof l!="function"&&typeof l!="symbol"&&t.push(" ",d,'="',_r(l),'"')}return t.push(">"),Z0(t,a,s),s}}function eR(t,e,n){if(t.push('<!--$?--><template id="'),n===null)throw Error(_t(395));return t.push(n),t.push('"></template>')}function Dee(t,e,n,i){switch(n.insertionMode){case 0:case 1:return t.push('<div hidden id="'),t.push(e.segmentPrefix),e=i.toString(16),t.push(e),t.push('">');case 2:return t.push('<svg aria-hidden="true" style="display:none" id="'),t.push(e.segmentPrefix),e=i.toString(16),t.push(e),t.push('">');case 3:return t.push('<math aria-hidden="true" style="display:none" id="'),t.push(e.segmentPrefix),e=i.toString(16),t.push(e),t.push('">');case 4:return t.push('<table hidden id="'),t.push(e.segmentPrefix),e=i.toString(16),t.push(e),t.push('">');case 5:return t.push('<table hidden><tbody id="'),t.push(e.segmentPrefix),e=i.toString(16),t.push(e),t.push('">');case 6:return t.push('<table hidden><tr id="'),t.push(e.segmentPrefix),e=i.toString(16),t.push(e),t.push('">');case 7:return t.push('<table hidden><colgroup id="'),t.push(e.segmentPrefix),e=i.toString(16),t.push(e),t.push('">');default:throw Error(_t(397))}}function _ee(t,e){switch(e.insertionMode){case 0:case 1:return t.push("</div>");case 2:return t.push("</svg>");case 3:return t.push("</math>");case 4:return t.push("</table>");case 5:return t.push("</tbody></table>");case 6:return t.push("</tr></table>");case 7:return t.push("</colgroup></table>");default:throw Error(_t(397))}}var Iee=/[<\u2028\u2029]/g;function h2(t){return JSON.stringify(t).replace(Iee,function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function Ree(t,e){return e=e===void 0?"":e,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:e+"P:",segmentPrefix:e+"S:",boundaryPrefix:e+"B:",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:t}}function tR(t,e,n,i){return n.generateStaticMarkup?(t.push(_r(e)),!1):(e===""?t=i:(i&&t.push("<!-- -->"),t.push(_r(e)),t=!0),t)}var bx=Object.assign,Oee=Symbol.for("react.element"),B5=Symbol.for("react.portal"),$5=Symbol.for("react.fragment"),H5=Symbol.for("react.strict_mode"),z5=Symbol.for("react.profiler"),V5=Symbol.for("react.provider"),U5=Symbol.for("react.context"),W5=Symbol.for("react.forward_ref"),G5=Symbol.for("react.suspense"),q5=Symbol.for("react.suspense_list"),K5=Symbol.for("react.memo"),_N=Symbol.for("react.lazy"),Lee=Symbol.for("react.scope"),Fee=Symbol.for("react.debug_trace_mode"),Bee=Symbol.for("react.legacy_hidden"),$ee=Symbol.for("react.default_value"),nR=Symbol.iterator;function FT(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 $5:return"Fragment";case B5:return"Portal";case z5:return"Profiler";case H5:return"StrictMode";case G5:return"Suspense";case q5:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case U5:return(t.displayName||"Context")+".Consumer";case V5:return(t._context.displayName||"Context")+".Provider";case W5:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case K5:return e=t.displayName||null,e!==null?e:FT(t.type)||"Memo";case _N:e=t._payload,t=t._init;try{return FT(t(e))}catch{}}return null}var Y5={};function iR(t,e){if(t=t.contextTypes,!t)return Y5;var n={},i;for(i in t)n[i]=e[i];return n}var du=null;function SS(t,e){if(t!==e){t.context._currentValue2=t.parentValue,t=t.parent;var n=e.parent;if(t===null){if(n!==null)throw Error(_t(401))}else{if(n===null)throw Error(_t(401));SS(t,n)}e.context._currentValue2=e.value}}function X5(t){t.context._currentValue2=t.parentValue,t=t.parent,t!==null&&X5(t)}function J5(t){var e=t.parent;e!==null&&J5(e),t.context._currentValue2=t.value}function Q5(t,e){if(t.context._currentValue2=t.parentValue,t=t.parent,t===null)throw Error(_t(402));t.depth===e.depth?SS(t,e):Q5(t,e)}function Z5(t,e){var n=e.parent;if(n===null)throw Error(_t(402));t.depth===n.depth?SS(t,n):Z5(t,n),e.context._currentValue2=e.value}function Lk(t){var e=du;e!==t&&(e===null?J5(t):t===null?X5(e):e.depth===t.depth?SS(e,t):e.depth>t.depth?Q5(e,t):Z5(e,t),du=t)}var rR={isMounted:function(){return!1},enqueueSetState:function(t,e){t=t._reactInternals,t.queue!==null&&t.queue.push(e)},enqueueReplaceState:function(t,e){t=t._reactInternals,t.replace=!0,t.queue=[e]},enqueueForceUpdate:function(){}};function sR(t,e,n,i){var r=t.state!==void 0?t.state:null;t.updater=rR,t.props=n,t.state=r;var s={queue:[],replace:!1};t._reactInternals=s;var a=e.contextType;if(t.context=typeof a=="object"&&a!==null?a._currentValue2:i,a=e.getDerivedStateFromProps,typeof a=="function"&&(a=a(n,r),r=a==null?r:bx({},r,a),t.state=r),typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function"&&(typeof t.UNSAFE_componentWillMount=="function"||typeof t.componentWillMount=="function"))if(e=t.state,typeof t.componentWillMount=="function"&&t.componentWillMount(),typeof t.UNSAFE_componentWillMount=="function"&&t.UNSAFE_componentWillMount(),e!==t.state&&rR.enqueueReplaceState(t,t.state,null),s.queue!==null&&0<s.queue.length)if(e=s.queue,a=s.replace,s.queue=null,s.replace=!1,a&&e.length===1)t.state=e[0];else{for(s=a?e[0]:t.state,r=!0,a=a?1:0;a<e.length;a++){var l=e[a];l=typeof l=="function"?l.call(t,s,n,i):l,l!=null&&(r?(r=!1,s=bx({},s,l)):bx(s,l))}t.state=s}else s.queue=null}var Hee={id:1,overflow:""};function BT(t,e,n){var i=t.id;t=t.overflow;var r=32-ew(i)-1;i&=~(1<<r),n+=1;var s=32-ew(e)+r;if(30<s){var a=r-r%5;return s=(i&(1<<a)-1).toString(32),i>>=a,r-=a,{id:1<<32-ew(e)+r|n<<r|i,overflow:s+t}}return{id:1<<s|n<<r|i,overflow:t}}var ew=Math.clz32?Math.clz32:Uee,zee=Math.log,Vee=Math.LN2;function Uee(t){return t>>>=0,t===0?32:31-(zee(t)/Vee|0)|0}function Wee(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Gee=typeof Object.is=="function"?Object.is:Wee,Yl=null,IN=null,tw=null,An=null,$g=!1,Fk=!1,Zx=0,ad=null,CS=0;function Jd(){if(Yl===null)throw Error(_t(321));return Yl}function aR(){if(0<CS)throw Error(_t(312));return{memoizedState:null,queue:null,next:null}}function RN(){return An===null?tw===null?($g=!1,tw=An=aR()):($g=!0,An=tw):An.next===null?($g=!1,An=An.next=aR()):($g=!0,An=An.next),An}function ON(){IN=Yl=null,Fk=!1,tw=null,CS=0,An=ad=null}function eB(t,e){return typeof e=="function"?e(t):e}function oR(t,e,n){if(Yl=Jd(),An=RN(),$g){var i=An.queue;if(e=i.dispatch,ad!==null&&(n=ad.get(i),n!==void 0)){ad.delete(i),i=An.memoizedState;do i=t(i,n.action),n=n.next;while(n!==null);return An.memoizedState=i,[i,e]}return[An.memoizedState,e]}return t=t===eB?typeof e=="function"?e():e:n!==void 0?n(e):e,An.memoizedState=t,t=An.queue={last:null,dispatch:null},t=t.dispatch=qee.bind(null,Yl,t),[An.memoizedState,t]}function lR(t,e){if(Yl=Jd(),An=RN(),e=e===void 0?null:e,An!==null){var n=An.memoizedState;if(n!==null&&e!==null){var i=n[1];e:if(i===null)i=!1;else{for(var r=0;r<i.length&&r<e.length;r++)if(!Gee(e[r],i[r])){i=!1;break e}i=!0}if(i)return n[0]}}return t=t(),An.memoizedState=[t,e],t}function qee(t,e,n){if(25<=CS)throw Error(_t(301));if(t===Yl)if(Fk=!0,t={action:n,next:null},ad===null&&(ad=new Map),n=ad.get(e),n===void 0)ad.set(e,t);else{for(e=n;e.next!==null;)e=e.next;e.next=t}}function Kee(){throw Error(_t(394))}function u0(){}var cR={readContext:function(t){return t._currentValue2},useContext:function(t){return Jd(),t._currentValue2},useMemo:lR,useReducer:oR,useRef:function(t){Yl=Jd(),An=RN();var e=An.memoizedState;return e===null?(t={current:t},An.memoizedState=t):e},useState:function(t){return oR(eB,t)},useInsertionEffect:u0,useLayoutEffect:function(){},useCallback:function(t,e){return lR(function(){return t},e)},useImperativeHandle:u0,useEffect:u0,useDebugValue:u0,useDeferredValue:function(t){return Jd(),t},useTransition:function(){return Jd(),[!1,Kee]},useId:function(){var t=IN.treeContext,e=t.overflow;t=t.id,t=(t&~(1<<32-ew(t)-1)).toString(32)+e;var n=nw;if(n===null)throw Error(_t(404));return e=Zx++,t=":"+n.idPrefix+"R"+t,0<e&&(t+="H"+e.toString(32)),t+":"},useMutableSource:function(t,e){return Jd(),e(t._source)},useSyncExternalStore:function(t,e,n){if(n===void 0)throw Error(_t(407));return n()}},nw=null,p2=O5.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Yee(t){return console.error(t),null}function Hg(){}function Xee(t,e,n,i,r,s,a,l,c){var d=[],u=new Set;return e={destination:null,responseState:e,progressiveChunkSize:i===void 0?12800:i,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:u,pingedTasks:d,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:r===void 0?Yee:r,onAllReady:Hg,onShellReady:a===void 0?Hg:a,onShellError:Hg,onFatalError:Hg},n=Bk(e,0,null,n,!1,!1),n.parentFlushed=!0,t=LN(e,t,null,n,u,Y5,null,Hee),d.push(t),e}function LN(t,e,n,i,r,s,a,l){t.allPendingTasks++,n===null?t.pendingRootTasks++:n.pendingTasks++;var c={node:e,ping:function(){var d=t.pingedTasks;d.push(c),d.length===1&&iB(t)},blockedBoundary:n,blockedSegment:i,abortSet:r,legacyContext:s,context:a,treeContext:l};return r.add(c),c}function Bk(t,e,n,i,r,s){return{status:0,id:-1,index:e,parentFlushed:!1,chunks:[],children:[],formatContext:i,boundary:n,lastPushedText:r,textEmbedded:s}}function ey(t,e){if(t=t.onError(e),t!=null&&typeof t!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof t+'" instead');return t}function $k(t,e){var n=t.onShellError;n(e),n=t.onFatalError,n(e),t.destination!==null?(t.status=2,t.destination.destroy(e)):(t.status=1,t.fatalError=e)}function dR(t,e,n,i,r){for(Yl={},IN=e,Zx=0,t=n(i,r);Fk;)Fk=!1,Zx=0,CS+=1,An=null,t=n(i,r);return ON(),t}function uR(t,e,n,i){var r=n.render(),s=i.childContextTypes;if(s!=null){var a=e.legacyContext;if(typeof n.getChildContext!="function")i=a;else{n=n.getChildContext();for(var l in n)if(!(l in s))throw Error(_t(108,FT(i)||"Unknown",l));i=bx({},a,n)}e.legacyContext=i,Es(t,e,r),e.legacyContext=a}else Es(t,e,r)}function hR(t,e){if(t&&t.defaultProps){e=bx({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}function $T(t,e,n,i,r){if(typeof n=="function")if(n.prototype&&n.prototype.isReactComponent){r=iR(n,e.legacyContext);var s=n.contextType;s=new n(i,typeof s=="object"&&s!==null?s._currentValue2:r),sR(s,n,i,r),uR(t,e,s,n)}else{s=iR(n,e.legacyContext),r=dR(t,e,n,i,s);var a=Zx!==0;if(typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0)sR(r,n,i,s),uR(t,e,r,n);else if(a){i=e.treeContext,e.treeContext=BT(i,1,0);try{Es(t,e,r)}finally{e.treeContext=i}}else Es(t,e,r)}else if(typeof n=="string"){switch(r=e.blockedSegment,s=Mee(r.chunks,n,i,t.responseState,r.formatContext),r.lastPushedText=!1,a=r.formatContext,r.formatContext=Eee(a,n,i),HT(t,e,s),r.formatContext=a,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:r.chunks.push("</",n,">")}r.lastPushedText=!1}else{switch(n){case Bee:case Fee:case H5:case z5:case $5:Es(t,e,i.children);return;case q5:Es(t,e,i.children);return;case Lee:throw Error(_t(343));case G5:e:{n=e.blockedBoundary,r=e.blockedSegment,s=i.fallback,i=i.children,a=new Set;var l={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:a,errorDigest:null},c=Bk(t,r.chunks.length,l,r.formatContext,!1,!1);r.children.push(c),r.lastPushedText=!1;var d=Bk(t,0,null,r.formatContext,!1,!1);d.parentFlushed=!0,e.blockedBoundary=l,e.blockedSegment=d;try{if(HT(t,e,i),t.responseState.generateStaticMarkup||d.lastPushedText&&d.textEmbedded&&d.chunks.push("<!-- -->"),d.status=1,Hk(l,d),l.pendingTasks===0)break e}catch(u){d.status=4,l.forceClientRender=!0,l.errorDigest=ey(t,u)}finally{e.blockedBoundary=n,e.blockedSegment=r}e=LN(t,s,n,c,a,e.legacyContext,e.context,e.treeContext),t.pingedTasks.push(e)}return}if(typeof n=="object"&&n!==null)switch(n.$$typeof){case W5:if(i=dR(t,e,n.render,i,r),Zx!==0){n=e.treeContext,e.treeContext=BT(n,1,0);try{Es(t,e,i)}finally{e.treeContext=n}}else Es(t,e,i);return;case K5:n=n.type,i=hR(n,i),$T(t,e,n,i,r);return;case V5:if(r=i.children,n=n._context,i=i.value,s=n._currentValue2,n._currentValue2=i,a=du,du=i={parent:a,depth:a===null?0:a.depth+1,context:n,parentValue:s,value:i},e.context=i,Es(t,e,r),t=du,t===null)throw Error(_t(403));i=t.parentValue,t.context._currentValue2=i===$ee?t.context._defaultValue:i,t=du=t.parent,e.context=t;return;case U5:i=i.children,i=i(n._currentValue2),Es(t,e,i);return;case _N:r=n._init,n=r(n._payload),i=hR(n,i),$T(t,e,n,i,void 0);return}throw Error(_t(130,n==null?n:typeof n,""))}}function Es(t,e,n){if(e.node=n,typeof n=="object"&&n!==null){switch(n.$$typeof){case Oee:$T(t,e,n.type,n.props,n.ref);return;case B5:throw Error(_t(257));case _N:var i=n._init;n=i(n._payload),Es(t,e,n);return}if(LT(n)){pR(t,e,n);return}if(n===null||typeof n!="object"?i=null:(i=nR&&n[nR]||n["@@iterator"],i=typeof i=="function"?i:null),i&&(i=i.call(n))){if(n=i.next(),!n.done){var r=[];do r.push(n.value),n=i.next();while(!n.done);pR(t,e,r)}return}throw t=Object.prototype.toString.call(n),Error(_t(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t))}typeof n=="string"?(i=e.blockedSegment,i.lastPushedText=tR(e.blockedSegment.chunks,n,t.responseState,i.lastPushedText)):typeof n=="number"&&(i=e.blockedSegment,i.lastPushedText=tR(e.blockedSegment.chunks,""+n,t.responseState,i.lastPushedText))}function pR(t,e,n){for(var i=n.length,r=0;r<i;r++){var s=e.treeContext;e.treeContext=BT(s,i,r);try{HT(t,e,n[r])}finally{e.treeContext=s}}}function HT(t,e,n){var i=e.blockedSegment.formatContext,r=e.legacyContext,s=e.context;try{return Es(t,e,n)}catch(c){if(ON(),typeof c=="object"&&c!==null&&typeof c.then=="function"){n=c;var a=e.blockedSegment,l=Bk(t,a.chunks.length,null,a.formatContext,a.lastPushedText,!0);a.children.push(l),a.lastPushedText=!1,t=LN(t,e.node,e.blockedBoundary,l,e.abortSet,e.legacyContext,e.context,e.treeContext).ping,n.then(t,t),e.blockedSegment.formatContext=i,e.legacyContext=r,e.context=s,Lk(s)}else throw e.blockedSegment.formatContext=i,e.legacyContext=r,e.context=s,Lk(s),c}}function Jee(t){var e=t.blockedBoundary;t=t.blockedSegment,t.status=3,nB(this,e,t)}function tB(t,e,n){var i=t.blockedBoundary;t.blockedSegment.status=3,i===null?(e.allPendingTasks--,e.status!==2&&(e.status=2,e.destination!==null&&e.destination.push(null))):(i.pendingTasks--,i.forceClientRender||(i.forceClientRender=!0,t=n===void 0?Error(_t(432)):n,i.errorDigest=e.onError(t),i.parentFlushed&&e.clientRenderedBoundaries.push(i)),i.fallbackAbortableTasks.forEach(function(r){return tB(r,e,n)}),i.fallbackAbortableTasks.clear(),e.allPendingTasks--,e.allPendingTasks===0&&(i=e.onAllReady,i()))}function Hk(t,e){if(e.chunks.length===0&&e.children.length===1&&e.children[0].boundary===null){var n=e.children[0];n.id=e.id,n.parentFlushed=!0,n.status===1&&Hk(t,n)}else t.completedSegments.push(e)}function nB(t,e,n){if(e===null){if(n.parentFlushed){if(t.completedRootSegment!==null)throw Error(_t(389));t.completedRootSegment=n}t.pendingRootTasks--,t.pendingRootTasks===0&&(t.onShellError=Hg,e=t.onShellReady,e())}else e.pendingTasks--,e.forceClientRender||(e.pendingTasks===0?(n.parentFlushed&&n.status===1&&Hk(e,n),e.parentFlushed&&t.completedBoundaries.push(e),e.fallbackAbortableTasks.forEach(Jee,t),e.fallbackAbortableTasks.clear()):n.parentFlushed&&n.status===1&&(Hk(e,n),e.completedSegments.length===1&&e.parentFlushed&&t.partialBoundaries.push(e)));t.allPendingTasks--,t.allPendingTasks===0&&(t=t.onAllReady,t())}function iB(t){if(t.status!==2){var e=du,n=p2.current;p2.current=cR;var i=nw;nw=t.responseState;try{var r=t.pingedTasks,s;for(s=0;s<r.length;s++){var a=r[s],l=t,c=a.blockedSegment;if(c.status===0){Lk(a.context);try{Es(l,a,a.node),l.responseState.generateStaticMarkup||c.lastPushedText&&c.textEmbedded&&c.chunks.push("<!-- -->"),a.abortSet.delete(a),c.status=1,nB(l,a.blockedBoundary,c)}catch(m){if(ON(),typeof m=="object"&&m!==null&&typeof m.then=="function"){var d=a.ping;m.then(d,d)}else{a.abortSet.delete(a),c.status=4;var u=a.blockedBoundary,h=m,p=ey(l,h);if(u===null?$k(l,h):(u.pendingTasks--,u.forceClientRender||(u.forceClientRender=!0,u.errorDigest=p,u.parentFlushed&&l.clientRenderedBoundaries.push(u))),l.allPendingTasks--,l.allPendingTasks===0){var y=l.onAllReady;y()}}}finally{}}}r.splice(0,s),t.destination!==null&&FN(t,t.destination)}catch(m){ey(t,m),$k(t,m)}finally{nw=i,p2.current=n,n===cR&&Lk(e)}}}function h0(t,e,n){switch(n.parentFlushed=!0,n.status){case 0:var i=n.id=t.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,t=t.responseState,e.push('<template id="'),e.push(t.placeholderPrefix),t=i.toString(16),e.push(t),e.push('"></template>');case 1:n.status=2;var r=!0;i=n.chunks;var s=0;n=n.children;for(var a=0;a<n.length;a++){for(r=n[a];s<r.index;s++)e.push(i[s]);r=jS(t,e,r)}for(;s<i.length-1;s++)e.push(i[s]);return s<i.length&&(r=e.push(i[s])),r;default:throw Error(_t(390))}}function jS(t,e,n){var i=n.boundary;if(i===null)return h0(t,e,n);if(i.parentFlushed=!0,i.forceClientRender)return t.responseState.generateStaticMarkup||(i=i.errorDigest,e.push("<!--$!-->"),e.push("<template"),i&&(e.push(' data-dgst="'),i=_r(i),e.push(i),e.push('"')),e.push("></template>")),h0(t,e,n),t=t.responseState.generateStaticMarkup?!0:e.push("<!--/$-->"),t;if(0<i.pendingTasks){i.rootSegmentID=t.nextSegmentId++,0<i.completedSegments.length&&t.partialBoundaries.push(i);var r=t.responseState,s=r.nextSuspenseID++;return r=r.boundaryPrefix+s.toString(16),i=i.id=r,eR(e,t.responseState,i),h0(t,e,n),e.push("<!--/$-->")}if(i.byteSize>t.progressiveChunkSize)return i.rootSegmentID=t.nextSegmentId++,t.completedBoundaries.push(i),eR(e,t.responseState,i.id),h0(t,e,n),e.push("<!--/$-->");if(t.responseState.generateStaticMarkup||e.push("<!--$-->"),n=i.completedSegments,n.length!==1)throw Error(_t(391));return jS(t,e,n[0]),t=t.responseState.generateStaticMarkup?!0:e.push("<!--/$-->"),t}function mR(t,e,n){return Dee(e,t.responseState,n.formatContext,n.id),jS(t,e,n),_ee(e,n.formatContext)}function fR(t,e,n){for(var i=n.completedSegments,r=0;r<i.length;r++)rB(t,e,n,i[r]);if(i.length=0,t=t.responseState,i=n.id,n=n.rootSegmentID,e.push(t.startInlineScript),t.sentCompleteBoundaryFunction?e.push('$RC("'):(t.sentCompleteBoundaryFunction=!0,e.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),i===null)throw Error(_t(395));return n=n.toString(16),e.push(i),e.push('","'),e.push(t.segmentPrefix),e.push(n),e.push('")<\/script>')}function rB(t,e,n,i){if(i.status===2)return!0;var r=i.id;if(r===-1){if((i.id=n.rootSegmentID)===-1)throw Error(_t(392));return mR(t,e,i)}return mR(t,e,i),t=t.responseState,e.push(t.startInlineScript),t.sentCompleteSegmentFunction?e.push('$RS("'):(t.sentCompleteSegmentFunction=!0,e.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),e.push(t.segmentPrefix),r=r.toString(16),e.push(r),e.push('","'),e.push(t.placeholderPrefix),e.push(r),e.push('")<\/script>')}function FN(t,e){try{var n=t.completedRootSegment;if(n!==null&&t.pendingRootTasks===0){jS(t,e,n),t.completedRootSegment=null;var i=t.responseState.bootstrapChunks;for(n=0;n<i.length-1;n++)e.push(i[n]);n<i.length&&e.push(i[n])}var r=t.clientRenderedBoundaries,s;for(s=0;s<r.length;s++){var a=r[s];i=e;var l=t.responseState,c=a.id,d=a.errorDigest,u=a.errorMessage,h=a.errorComponentStack;if(i.push(l.startInlineScript),l.sentClientRenderFunction?i.push('$RX("'):(l.sentClientRenderFunction=!0,i.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),c===null)throw Error(_t(395));if(i.push(c),i.push('"'),d||u||h){i.push(",");var p=h2(d||"");i.push(p)}if(u||h){i.push(",");var y=h2(u||"");i.push(y)}if(h){i.push(",");var m=h2(h);i.push(m)}if(!i.push(")<\/script>")){t.destination=null,s++,r.splice(0,s);return}}r.splice(0,s);var w=t.completedBoundaries;for(s=0;s<w.length;s++)if(!fR(t,e,w[s])){t.destination=null,s++,w.splice(0,s);return}w.splice(0,s);var k=t.partialBoundaries;for(s=0;s<k.length;s++){var b=k[s];e:{r=t,a=e;var x=b.completedSegments;for(l=0;l<x.length;l++)if(!rB(r,a,b,x[l])){l++,x.splice(0,l);var v=!1;break e}x.splice(0,l),v=!0}if(!v){t.destination=null,s++,k.splice(0,s);return}}k.splice(0,s);var E=t.completedBoundaries;for(s=0;s<E.length;s++)if(!fR(t,e,E[s])){t.destination=null,s++,E.splice(0,s);return}E.splice(0,s)}finally{t.allPendingTasks===0&&t.pingedTasks.length===0&&t.clientRenderedBoundaries.length===0&&t.completedBoundaries.length===0&&e.push(null)}}function Qee(t,e){try{var n=t.abortableTasks;n.forEach(function(i){return tB(i,t,e)}),n.clear(),t.destination!==null&&FN(t,t.destination)}catch(i){ey(t,i),$k(t,i)}}function Zee(){}function sB(t,e,n,i){var r=!1,s=null,a="",l={push:function(d){return d!==null&&(a+=d),!0},destroy:function(d){r=!0,s=d}},c=!1;if(t=Xee(t,Ree(n,e?e.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,Zee,void 0,function(){c=!0}),iB(t),Qee(t,i),t.status===1)t.status=2,l.destroy(t.fatalError);else if(t.status!==2&&t.destination===null){t.destination=l;try{FN(t,l)}catch(d){ey(t,d),$k(t,d)}}if(r)throw s;if(!c)throw Error(_t(426));return a}Jf.renderToNodeStream=function(){throw Error(_t(207))};Jf.renderToStaticMarkup=function(t,e){return sB(t,e,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')};Jf.renderToStaticNodeStream=function(){throw Error(_t(208))};Jf.renderToString=function(t,e){return sB(t,e,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')};Jf.version="18.3.1";var BN={};/** 135 * @license React 136 * react-dom-server.browser.production.min.js 137 * 138 * Copyright (c) Facebook, Inc. and its affiliates. 139 * 140 * This source code is licensed under the MIT license found in the 141 * LICENSE file in the root directory of this source tree. 142 */var aB=Z;function Ft(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);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 As=null,Ns=0;function dt(t,e){if(e.length!==0)if(512<e.length)0<Ns&&(t.enqueue(new Uint8Array(As.buffer,0,Ns)),As=new Uint8Array(512),Ns=0),t.enqueue(e);else{var n=As.length-Ns;n<e.length&&(n===0?t.enqueue(As):(As.set(e.subarray(0,n),Ns),t.enqueue(As),e=e.subarray(n)),As=new Uint8Array(512),Ns=0),As.set(e,Ns),Ns+=e.length}}function On(t,e){return dt(t,e),!0}function gR(t){As&&0<Ns&&(t.enqueue(new Uint8Array(As.buffer,0,Ns)),As=null,Ns=0)}var oB=new TextEncoder;function Wt(t){return oB.encode(t)}function Ze(t){return oB.encode(t)}function lB(t,e){typeof t.error=="function"?t.error(e):t.close()}var Jr=Object.prototype.hasOwnProperty,ete=/^[: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]*$/,xR={},yR={};function cB(t){return Jr.call(yR,t)?!0:Jr.call(xR,t)?!1:ete.test(t)?yR[t]=!0:(xR[t]=!0,!1)}function zr(t,e,n,i,r,s,a){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=s,this.removeEmptyString=a}var sr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){sr[t]=new zr(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];sr[e]=new zr(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){sr[t]=new zr(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){sr[t]=new zr(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){sr[t]=new zr(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){sr[t]=new zr(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){sr[t]=new zr(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){sr[t]=new zr(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){sr[t]=new zr(t,5,!1,t.toLowerCase(),null,!1,!1)});var $N=/[\-:]([a-z])/g;function HN(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($N,HN);sr[e]=new zr(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($N,HN);sr[e]=new zr(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($N,HN);sr[e]=new zr(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){sr[t]=new zr(t,1,!1,t.toLowerCase(),null,!1,!1)});sr.xlinkHref=new zr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){sr[t]=new zr(t,1,!1,t.toLowerCase(),null,!0,!0)});var iw={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},tte=["Webkit","ms","Moz","O"];Object.keys(iw).forEach(function(t){tte.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),iw[e]=iw[t]})});var nte=/["'&<>]/;function Zi(t){if(typeof t=="boolean"||typeof t=="number")return""+t;t=""+t;var e=nte.exec(t);if(e){var n="",i,r=0;for(i=e.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:e=""";break;case 38:e="&";break;case 39:e="'";break;case 60:e="<";break;case 62:e=">";break;default:continue}r!==i&&(n+=t.substring(r,i)),r=i+1,n+=e}t=r!==i?n+t.substring(r,i):n}return t}var ite=/([A-Z])/g,rte=/^ms-/,zT=Array.isArray,ste=Ze("<script>"),ate=Ze("<\/script>"),ote=Ze('<script src="'),lte=Ze('<script type="module" src="'),bR=Ze('" async=""><\/script>'),cte=/(<\/|<)(s)(cript)/gi;function dte(t,e,n,i){return""+e+(n==="s"?"\\u0073":"\\u0053")+i}function ute(t,e,n,i,r){t=t===void 0?"":t,e=e===void 0?ste:Ze('<script nonce="'+Zi(e)+'">');var s=[];if(n!==void 0&&s.push(e,Wt((""+n).replace(cte,dte)),ate),i!==void 0)for(n=0;n<i.length;n++)s.push(ote,Wt(Zi(i[n])),bR);if(r!==void 0)for(i=0;i<r.length;i++)s.push(lte,Wt(Zi(r[i])),bR);return{bootstrapChunks:s,startInlineScript:e,placeholderPrefix:Ze(t+"P:"),segmentPrefix:Ze(t+"S:"),boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function so(t,e){return{insertionMode:t,selectedValue:e}}function hte(t){return so(t==="http://www.w3.org/2000/svg"?2:t==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function pte(t,e,n){switch(e){case"select":return so(1,n.value!=null?n.value:n.defaultValue);case"svg":return so(2,null);case"math":return so(3,null);case"foreignObject":return so(1,null);case"table":return so(4,null);case"thead":case"tbody":case"tfoot":return so(5,null);case"colgroup":return so(7,null);case"tr":return so(6,null)}return 4<=t.insertionMode||t.insertionMode===0?so(1,null):t}var zN=Ze("<!-- -->");function vR(t,e,n,i){return e===""?i:(i&&t.push(zN),t.push(Wt(Zi(e))),!0)}var wR=new Map,mte=Ze(' style="'),kR=Ze(":"),fte=Ze(";");function dB(t,e,n){if(typeof n!="object")throw Error(Ft(62));e=!0;for(var i in n)if(Jr.call(n,i)){var r=n[i];if(r!=null&&typeof r!="boolean"&&r!==""){if(i.indexOf("--")===0){var s=Wt(Zi(i));r=Wt(Zi((""+r).trim()))}else{s=i;var a=wR.get(s);a!==void 0||(a=Ze(Zi(s.replace(ite,"-$1").toLowerCase().replace(rte,"-ms-"))),wR.set(s,a)),s=a,r=typeof r=="number"?r===0||Jr.call(iw,i)?Wt(""+r):Wt(r+"px"):Wt(Zi((""+r).trim()))}e?(e=!1,t.push(mte,s,kR,r)):t.push(fte,s,kR,r)}}e||t.push(Qd)}var pc=Ze(" "),Tp=Ze('="'),Qd=Ze('"'),SR=Ze('=""');function fs(t,e,n,i){switch(n){case"style":dB(t,e,i);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N"){if(e=sr.hasOwnProperty(n)?sr[n]:null,e!==null){switch(typeof i){case"function":case"symbol":return;case"boolean":if(!e.acceptsBooleans)return}switch(n=Wt(e.attributeName),e.type){case 3:i&&t.push(pc,n,SR);break;case 4:i===!0?t.push(pc,n,SR):i!==!1&&t.push(pc,n,Tp,Wt(Zi(i)),Qd);break;case 5:isNaN(i)||t.push(pc,n,Tp,Wt(Zi(i)),Qd);break;case 6:!isNaN(i)&&1<=i&&t.push(pc,n,Tp,Wt(Zi(i)),Qd);break;default:e.sanitizeURL&&(i=""+i),t.push(pc,n,Tp,Wt(Zi(i)),Qd)}}else if(cB(n)){switch(typeof i){case"function":case"symbol":return;case"boolean":if(e=n.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-")return}t.push(pc,Wt(n),Tp,Wt(Zi(i)),Qd)}}}var mc=Ze(">"),CR=Ze("/>");function rw(t,e,n){if(e!=null){if(n!=null)throw Error(Ft(60));if(typeof e!="object"||!("__html"in e))throw Error(Ft(61));e=e.__html,e!=null&&t.push(Wt(""+e))}}function gte(t){var e="";return aB.Children.forEach(t,function(n){n!=null&&(e+=n)}),e}var m2=Ze(' selected=""');function f2(t,e,n,i){t.push(ao(n));var r=n=null,s;for(s in e)if(Jr.call(e,s)){var a=e[s];if(a!=null)switch(s){case"children":n=a;break;case"dangerouslySetInnerHTML":r=a;break;default:fs(t,i,s,a)}}return t.push(mc),rw(t,r,n),typeof n=="string"?(t.push(Wt(Zi(n))),null):n}var g2=Ze(` 143`),xte=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,jR=new Map;function ao(t){var e=jR.get(t);if(e===void 0){if(!xte.test(t))throw Error(Ft(65,t));e=Ze("<"+t),jR.set(t,e)}return e}var yte=Ze("<!DOCTYPE html>");function bte(t,e,n,i,r){switch(e){case"select":t.push(ao("select"));var s=null,a=null;for(u in n)if(Jr.call(n,u)){var l=n[u];if(l!=null)switch(u){case"children":s=l;break;case"dangerouslySetInnerHTML":a=l;break;case"defaultValue":case"value":break;default:fs(t,i,u,l)}}return t.push(mc),rw(t,a,s),s;case"option":a=r.selectedValue,t.push(ao("option"));var c=l=null,d=null,u=null;for(s in n)if(Jr.call(n,s)){var h=n[s];if(h!=null)switch(s){case"children":l=h;break;case"selected":d=h;break;case"dangerouslySetInnerHTML":u=h;break;case"value":c=h;default:fs(t,i,s,h)}}if(a!=null)if(n=c!==null?""+c:gte(l),zT(a)){for(i=0;i<a.length;i++)if(""+a[i]===n){t.push(m2);break}}else""+a===n&&t.push(m2);else d&&t.push(m2);return t.push(mc),rw(t,u,l),l;case"textarea":t.push(ao("textarea")),u=a=s=null;for(l in n)if(Jr.call(n,l)&&(c=n[l],c!=null))switch(l){case"children":u=c;break;case"value":s=c;break;case"defaultValue":a=c;break;case"dangerouslySetInnerHTML":throw Error(Ft(91));default:fs(t,i,l,c)}if(s===null&&a!==null&&(s=a),t.push(mc),u!=null){if(s!=null)throw Error(Ft(92));if(zT(u)&&1<u.length)throw Error(Ft(93));s=""+u}return typeof s=="string"&&s[0]===` 144`&&t.push(g2),s!==null&&t.push(Wt(Zi(""+s))),null;case"input":t.push(ao("input")),c=u=l=s=null;for(a in n)if(Jr.call(n,a)&&(d=n[a],d!=null))switch(a){case"children":case"dangerouslySetInnerHTML":throw Error(Ft(399,"input"));case"defaultChecked":c=d;break;case"defaultValue":l=d;break;case"checked":u=d;break;case"value":s=d;break;default:fs(t,i,a,d)}return u!==null?fs(t,i,"checked",u):c!==null&&fs(t,i,"checked",c),s!==null?fs(t,i,"value",s):l!==null&&fs(t,i,"value",l),t.push(CR),null;case"menuitem":t.push(ao("menuitem"));for(var p in n)if(Jr.call(n,p)&&(s=n[p],s!=null))switch(p){case"children":case"dangerouslySetInnerHTML":throw Error(Ft(400));default:fs(t,i,p,s)}return t.push(mc),null;case"title":t.push(ao("title")),s=null;for(h in n)if(Jr.call(n,h)&&(a=n[h],a!=null))switch(h){case"children":s=a;break;case"dangerouslySetInnerHTML":throw Error(Ft(434));default:fs(t,i,h,a)}return t.push(mc),s;case"listing":case"pre":t.push(ao(e)),a=s=null;for(c in n)if(Jr.call(n,c)&&(l=n[c],l!=null))switch(c){case"children":s=l;break;case"dangerouslySetInnerHTML":a=l;break;default:fs(t,i,c,l)}if(t.push(mc),a!=null){if(s!=null)throw Error(Ft(60));if(typeof a!="object"||!("__html"in a))throw Error(Ft(61));n=a.__html,n!=null&&(typeof n=="string"&&0<n.length&&n[0]===` 145`?t.push(g2,Wt(n)):t.push(Wt(""+n)))}return typeof s=="string"&&s[0]===` 146`&&t.push(g2),s;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":t.push(ao(e));for(var y in n)if(Jr.call(n,y)&&(s=n[y],s!=null))switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(Ft(399,e));default:fs(t,i,y,s)}return t.push(CR),null;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 f2(t,n,e,i);case"html":return r.insertionMode===0&&t.push(yte),f2(t,n,e,i);default:if(e.indexOf("-")===-1&&typeof n.is!="string")return f2(t,n,e,i);t.push(ao(e)),a=s=null;for(d in n)if(Jr.call(n,d)&&(l=n[d],l!=null))switch(d){case"children":s=l;break;case"dangerouslySetInnerHTML":a=l;break;case"style":dB(t,i,l);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:cB(d)&&typeof l!="function"&&typeof l!="symbol"&&t.push(pc,Wt(d),Tp,Wt(Zi(l)),Qd)}return t.push(mc),rw(t,a,s),s}}var vte=Ze("</"),wte=Ze(">"),kte=Ze('<template id="'),Ste=Ze('"></template>'),Cte=Ze("<!--$-->"),jte=Ze('<!--$?--><template id="'),Tte=Ze('"></template>'),Pte=Ze("<!--$!-->"),Ete=Ze("<!--/$-->"),Ate=Ze("<template"),Nte=Ze('"'),Mte=Ze(' data-dgst="');Ze(' data-msg="');Ze(' data-stck="');var Dte=Ze("></template>");function TR(t,e,n){if(dt(t,jte),n===null)throw Error(Ft(395));return dt(t,n),On(t,Tte)}var _te=Ze('<div hidden id="'),Ite=Ze('">'),Rte=Ze("</div>"),Ote=Ze('<svg aria-hidden="true" style="display:none" id="'),Lte=Ze('">'),Fte=Ze("</svg>"),Bte=Ze('<math aria-hidden="true" style="display:none" id="'),$te=Ze('">'),Hte=Ze("</math>"),zte=Ze('<table hidden id="'),Vte=Ze('">'),Ute=Ze("</table>"),Wte=Ze('<table hidden><tbody id="'),Gte=Ze('">'),qte=Ze("</tbody></table>"),Kte=Ze('<table hidden><tr id="'),Yte=Ze('">'),Xte=Ze("</tr></table>"),Jte=Ze('<table hidden><colgroup id="'),Qte=Ze('">'),Zte=Ze("</colgroup></table>");function ene(t,e,n,i){switch(n.insertionMode){case 0:case 1:return dt(t,_te),dt(t,e.segmentPrefix),dt(t,Wt(i.toString(16))),On(t,Ite);case 2:return dt(t,Ote),dt(t,e.segmentPrefix),dt(t,Wt(i.toString(16))),On(t,Lte);case 3:return dt(t,Bte),dt(t,e.segmentPrefix),dt(t,Wt(i.toString(16))),On(t,$te);case 4:return dt(t,zte),dt(t,e.segmentPrefix),dt(t,Wt(i.toString(16))),On(t,Vte);case 5:return dt(t,Wte),dt(t,e.segmentPrefix),dt(t,Wt(i.toString(16))),On(t,Gte);case 6:return dt(t,Kte),dt(t,e.segmentPrefix),dt(t,Wt(i.toString(16))),On(t,Yte);case 7:return dt(t,Jte),dt(t,e.segmentPrefix),dt(t,Wt(i.toString(16))),On(t,Qte);default:throw Error(Ft(397))}}function tne(t,e){switch(e.insertionMode){case 0:case 1:return On(t,Rte);case 2:return On(t,Fte);case 3:return On(t,Hte);case 4:return On(t,Ute);case 5:return On(t,qte);case 6:return On(t,Xte);case 7:return On(t,Zte);default:throw Error(Ft(397))}}var nne=Ze('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),ine=Ze('$RS("'),rne=Ze('","'),sne=Ze('")<\/script>'),ane=Ze('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),one=Ze('$RC("'),lne=Ze('","'),cne=Ze('")<\/script>'),dne=Ze('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),une=Ze('$RX("'),hne=Ze('"'),pne=Ze(")<\/script>"),x2=Ze(","),mne=/[<\u2028\u2029]/g;function y2(t){return JSON.stringify(t).replace(mne,function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var vx=Object.assign,fne=Symbol.for("react.element"),uB=Symbol.for("react.portal"),hB=Symbol.for("react.fragment"),pB=Symbol.for("react.strict_mode"),mB=Symbol.for("react.profiler"),fB=Symbol.for("react.provider"),gB=Symbol.for("react.context"),xB=Symbol.for("react.forward_ref"),yB=Symbol.for("react.suspense"),bB=Symbol.for("react.suspense_list"),vB=Symbol.for("react.memo"),VN=Symbol.for("react.lazy"),gne=Symbol.for("react.scope"),xne=Symbol.for("react.debug_trace_mode"),yne=Symbol.for("react.legacy_hidden"),bne=Symbol.for("react.default_value"),PR=Symbol.iterator;function VT(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 hB:return"Fragment";case uB:return"Portal";case mB:return"Profiler";case pB:return"StrictMode";case yB:return"Suspense";case bB:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case gB:return(t.displayName||"Context")+".Consumer";case fB:return(t._context.displayName||"Context")+".Provider";case xB:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case vB:return e=t.displayName||null,e!==null?e:VT(t.type)||"Memo";case VN:e=t._payload,t=t._init;try{return VT(t(e))}catch{}}return null}var wB={};function ER(t,e){if(t=t.contextTypes,!t)return wB;var n={},i;for(i in t)n[i]=e[i];return n}var uu=null;function TS(t,e){if(t!==e){t.context._currentValue=t.parentValue,t=t.parent;var n=e.parent;if(t===null){if(n!==null)throw Error(Ft(401))}else{if(n===null)throw Error(Ft(401));TS(t,n)}e.context._currentValue=e.value}}function kB(t){t.context._currentValue=t.parentValue,t=t.parent,t!==null&&kB(t)}function SB(t){var e=t.parent;e!==null&&SB(e),t.context._currentValue=t.value}function CB(t,e){if(t.context._currentValue=t.parentValue,t=t.parent,t===null)throw Error(Ft(402));t.depth===e.depth?TS(t,e):CB(t,e)}function jB(t,e){var n=e.parent;if(n===null)throw Error(Ft(402));t.depth===n.depth?TS(t,n):jB(t,n),e.context._currentValue=e.value}function zk(t){var e=uu;e!==t&&(e===null?SB(t):t===null?kB(e):e.depth===t.depth?TS(e,t):e.depth>t.depth?CB(e,t):jB(e,t),uu=t)}var AR={isMounted:function(){return!1},enqueueSetState:function(t,e){t=t._reactInternals,t.queue!==null&&t.queue.push(e)},enqueueReplaceState:function(t,e){t=t._reactInternals,t.replace=!0,t.queue=[e]},enqueueForceUpdate:function(){}};function NR(t,e,n,i){var r=t.state!==void 0?t.state:null;t.updater=AR,t.props=n,t.state=r;var s={queue:[],replace:!1};t._reactInternals=s;var a=e.contextType;if(t.context=typeof a=="object"&&a!==null?a._currentValue:i,a=e.getDerivedStateFromProps,typeof a=="function"&&(a=a(n,r),r=a==null?r:vx({},r,a),t.state=r),typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function"&&(typeof t.UNSAFE_componentWillMount=="function"||typeof t.componentWillMount=="function"))if(e=t.state,typeof t.componentWillMount=="function"&&t.componentWillMount(),typeof t.UNSAFE_componentWillMount=="function"&&t.UNSAFE_componentWillMount(),e!==t.state&&AR.enqueueReplaceState(t,t.state,null),s.queue!==null&&0<s.queue.length)if(e=s.queue,a=s.replace,s.queue=null,s.replace=!1,a&&e.length===1)t.state=e[0];else{for(s=a?e[0]:t.state,r=!0,a=a?1:0;a<e.length;a++){var l=e[a];l=typeof l=="function"?l.call(t,s,n,i):l,l!=null&&(r?(r=!1,s=vx({},s,l)):vx(s,l))}t.state=s}else s.queue=null}var vne={id:1,overflow:""};function UT(t,e,n){var i=t.id;t=t.overflow;var r=32-sw(i)-1;i&=~(1<<r),n+=1;var s=32-sw(e)+r;if(30<s){var a=r-r%5;return s=(i&(1<<a)-1).toString(32),i>>=a,r-=a,{id:1<<32-sw(e)+r|n<<r|i,overflow:s+t}}return{id:1<<s|n<<r|i,overflow:t}}var sw=Math.clz32?Math.clz32:Sne,wne=Math.log,kne=Math.LN2;function Sne(t){return t>>>=0,t===0?32:31-(wne(t)/kne|0)|0}function Cne(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var jne=typeof Object.is=="function"?Object.is:Cne,Xl=null,UN=null,aw=null,Nn=null,zg=!1,Vk=!1,ty=0,od=null,PS=0;function Zd(){if(Xl===null)throw Error(Ft(321));return Xl}function MR(){if(0<PS)throw Error(Ft(312));return{memoizedState:null,queue:null,next:null}}function WN(){return Nn===null?aw===null?(zg=!1,aw=Nn=MR()):(zg=!0,Nn=aw):Nn.next===null?(zg=!1,Nn=Nn.next=MR()):(zg=!0,Nn=Nn.next),Nn}function GN(){UN=Xl=null,Vk=!1,aw=null,PS=0,Nn=od=null}function TB(t,e){return typeof e=="function"?e(t):e}function DR(t,e,n){if(Xl=Zd(),Nn=WN(),zg){var i=Nn.queue;if(e=i.dispatch,od!==null&&(n=od.get(i),n!==void 0)){od.delete(i),i=Nn.memoizedState;do i=t(i,n.action),n=n.next;while(n!==null);return Nn.memoizedState=i,[i,e]}return[Nn.memoizedState,e]}return t=t===TB?typeof e=="function"?e():e:n!==void 0?n(e):e,Nn.memoizedState=t,t=Nn.queue={last:null,dispatch:null},t=t.dispatch=Tne.bind(null,Xl,t),[Nn.memoizedState,t]}function _R(t,e){if(Xl=Zd(),Nn=WN(),e=e===void 0?null:e,Nn!==null){var n=Nn.memoizedState;if(n!==null&&e!==null){var i=n[1];e:if(i===null)i=!1;else{for(var r=0;r<i.length&&r<e.length;r++)if(!jne(e[r],i[r])){i=!1;break e}i=!0}if(i)return n[0]}}return t=t(),Nn.memoizedState=[t,e],t}function Tne(t,e,n){if(25<=PS)throw Error(Ft(301));if(t===Xl)if(Vk=!0,t={action:n,next:null},od===null&&(od=new Map),n=od.get(e),n===void 0)od.set(e,t);else{for(e=n;e.next!==null;)e=e.next;e.next=t}}function Pne(){throw Error(Ft(394))}function p0(){}var IR={readContext:function(t){return t._currentValue},useContext:function(t){return Zd(),t._currentValue},useMemo:_R,useReducer:DR,useRef:function(t){Xl=Zd(),Nn=WN();var e=Nn.memoizedState;return e===null?(t={current:t},Nn.memoizedState=t):e},useState:function(t){return DR(TB,t)},useInsertionEffect:p0,useLayoutEffect:function(){},useCallback:function(t,e){return _R(function(){return t},e)},useImperativeHandle:p0,useEffect:p0,useDebugValue:p0,useDeferredValue:function(t){return Zd(),t},useTransition:function(){return Zd(),[!1,Pne]},useId:function(){var t=UN.treeContext,e=t.overflow;t=t.id,t=(t&~(1<<32-sw(t)-1)).toString(32)+e;var n=ow;if(n===null)throw Error(Ft(404));return e=ty++,t=":"+n.idPrefix+"R"+t,0<e&&(t+="H"+e.toString(32)),t+":"},useMutableSource:function(t,e){return Zd(),e(t._source)},useSyncExternalStore:function(t,e,n){if(n===void 0)throw Error(Ft(407));return n()}},ow=null,b2=aB.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Ene(t){return console.error(t),null}function Vg(){}function Ane(t,e,n,i,r,s,a,l,c){var d=[],u=new Set;return e={destination:null,responseState:e,progressiveChunkSize:i===void 0?12800:i,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:u,pingedTasks:d,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:r===void 0?Ene:r,onAllReady:s===void 0?Vg:s,onShellReady:a===void 0?Vg:a,onShellError:l===void 0?Vg:l,onFatalError:c===void 0?Vg:c},n=Uk(e,0,null,n,!1,!1),n.parentFlushed=!0,t=qN(e,t,null,n,u,wB,null,vne),d.push(t),e}function qN(t,e,n,i,r,s,a,l){t.allPendingTasks++,n===null?t.pendingRootTasks++:n.pendingTasks++;var c={node:e,ping:function(){var d=t.pingedTasks;d.push(c),d.length===1&&AB(t)},blockedBoundary:n,blockedSegment:i,abortSet:r,legacyContext:s,context:a,treeContext:l};return r.add(c),c}function Uk(t,e,n,i,r,s){return{status:0,id:-1,index:e,parentFlushed:!1,chunks:[],children:[],formatContext:i,boundary:n,lastPushedText:r,textEmbedded:s}}function ny(t,e){if(t=t.onError(e),t!=null&&typeof t!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof t+'" instead');return t}function Wk(t,e){var n=t.onShellError;n(e),n=t.onFatalError,n(e),t.destination!==null?(t.status=2,lB(t.destination,e)):(t.status=1,t.fatalError=e)}function RR(t,e,n,i,r){for(Xl={},UN=e,ty=0,t=n(i,r);Vk;)Vk=!1,ty=0,PS+=1,Nn=null,t=n(i,r);return GN(),t}function OR(t,e,n,i){var r=n.render(),s=i.childContextTypes;if(s!=null){var a=e.legacyContext;if(typeof n.getChildContext!="function")i=a;else{n=n.getChildContext();for(var l in n)if(!(l in s))throw Error(Ft(108,VT(i)||"Unknown",l));i=vx({},a,n)}e.legacyContext=i,Ms(t,e,r),e.legacyContext=a}else Ms(t,e,r)}function LR(t,e){if(t&&t.defaultProps){e=vx({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}function WT(t,e,n,i,r){if(typeof n=="function")if(n.prototype&&n.prototype.isReactComponent){r=ER(n,e.legacyContext);var s=n.contextType;s=new n(i,typeof s=="object"&&s!==null?s._currentValue:r),NR(s,n,i,r),OR(t,e,s,n)}else{s=ER(n,e.legacyContext),r=RR(t,e,n,i,s);var a=ty!==0;if(typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0)NR(r,n,i,s),OR(t,e,r,n);else if(a){i=e.treeContext,e.treeContext=UT(i,1,0);try{Ms(t,e,r)}finally{e.treeContext=i}}else Ms(t,e,r)}else if(typeof n=="string"){switch(r=e.blockedSegment,s=bte(r.chunks,n,i,t.responseState,r.formatContext),r.lastPushedText=!1,a=r.formatContext,r.formatContext=pte(a,n,i),GT(t,e,s),r.formatContext=a,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:r.chunks.push(vte,Wt(n),wte)}r.lastPushedText=!1}else{switch(n){case yne:case xne:case pB:case mB:case hB:Ms(t,e,i.children);return;case bB:Ms(t,e,i.children);return;case gne:throw Error(Ft(343));case yB:e:{n=e.blockedBoundary,r=e.blockedSegment,s=i.fallback,i=i.children,a=new Set;var l={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:a,errorDigest:null},c=Uk(t,r.chunks.length,l,r.formatContext,!1,!1);r.children.push(c),r.lastPushedText=!1;var d=Uk(t,0,null,r.formatContext,!1,!1);d.parentFlushed=!0,e.blockedBoundary=l,e.blockedSegment=d;try{if(GT(t,e,i),d.lastPushedText&&d.textEmbedded&&d.chunks.push(zN),d.status=1,Gk(l,d),l.pendingTasks===0)break e}catch(u){d.status=4,l.forceClientRender=!0,l.errorDigest=ny(t,u)}finally{e.blockedBoundary=n,e.blockedSegment=r}e=qN(t,s,n,c,a,e.legacyContext,e.context,e.treeContext),t.pingedTasks.push(e)}return}if(typeof n=="object"&&n!==null)switch(n.$$typeof){case xB:if(i=RR(t,e,n.render,i,r),ty!==0){n=e.treeContext,e.treeContext=UT(n,1,0);try{Ms(t,e,i)}finally{e.treeContext=n}}else Ms(t,e,i);return;case vB:n=n.type,i=LR(n,i),WT(t,e,n,i,r);return;case fB:if(r=i.children,n=n._context,i=i.value,s=n._currentValue,n._currentValue=i,a=uu,uu=i={parent:a,depth:a===null?0:a.depth+1,context:n,parentValue:s,value:i},e.context=i,Ms(t,e,r),t=uu,t===null)throw Error(Ft(403));i=t.parentValue,t.context._currentValue=i===bne?t.context._defaultValue:i,t=uu=t.parent,e.context=t;return;case gB:i=i.children,i=i(n._currentValue),Ms(t,e,i);return;case VN:r=n._init,n=r(n._payload),i=LR(n,i),WT(t,e,n,i,void 0);return}throw Error(Ft(130,n==null?n:typeof n,""))}}function Ms(t,e,n){if(e.node=n,typeof n=="object"&&n!==null){switch(n.$$typeof){case fne:WT(t,e,n.type,n.props,n.ref);return;case uB:throw Error(Ft(257));case VN:var i=n._init;n=i(n._payload),Ms(t,e,n);return}if(zT(n)){FR(t,e,n);return}if(n===null||typeof n!="object"?i=null:(i=PR&&n[PR]||n["@@iterator"],i=typeof i=="function"?i:null),i&&(i=i.call(n))){if(n=i.next(),!n.done){var r=[];do r.push(n.value),n=i.next();while(!n.done);FR(t,e,r)}return}throw t=Object.prototype.toString.call(n),Error(Ft(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t))}typeof n=="string"?(i=e.blockedSegment,i.lastPushedText=vR(e.blockedSegment.chunks,n,t.responseState,i.lastPushedText)):typeof n=="number"&&(i=e.blockedSegment,i.lastPushedText=vR(e.blockedSegment.chunks,""+n,t.responseState,i.lastPushedText))}function FR(t,e,n){for(var i=n.length,r=0;r<i;r++){var s=e.treeContext;e.treeContext=UT(s,i,r);try{GT(t,e,n[r])}finally{e.treeContext=s}}}function GT(t,e,n){var i=e.blockedSegment.formatContext,r=e.legacyContext,s=e.context;try{return Ms(t,e,n)}catch(c){if(GN(),typeof c=="object"&&c!==null&&typeof c.then=="function"){n=c;var a=e.blockedSegment,l=Uk(t,a.chunks.length,null,a.formatContext,a.lastPushedText,!0);a.children.push(l),a.lastPushedText=!1,t=qN(t,e.node,e.blockedBoundary,l,e.abortSet,e.legacyContext,e.context,e.treeContext).ping,n.then(t,t),e.blockedSegment.formatContext=i,e.legacyContext=r,e.context=s,zk(s)}else throw e.blockedSegment.formatContext=i,e.legacyContext=r,e.context=s,zk(s),c}}function Nne(t){var e=t.blockedBoundary;t=t.blockedSegment,t.status=3,EB(this,e,t)}function PB(t,e,n){var i=t.blockedBoundary;t.blockedSegment.status=3,i===null?(e.allPendingTasks--,e.status!==2&&(e.status=2,e.destination!==null&&e.destination.close())):(i.pendingTasks--,i.forceClientRender||(i.forceClientRender=!0,t=n===void 0?Error(Ft(432)):n,i.errorDigest=e.onError(t),i.parentFlushed&&e.clientRenderedBoundaries.push(i)),i.fallbackAbortableTasks.forEach(function(r){return PB(r,e,n)}),i.fallbackAbortableTasks.clear(),e.allPendingTasks--,e.allPendingTasks===0&&(i=e.onAllReady,i()))}function Gk(t,e){if(e.chunks.length===0&&e.children.length===1&&e.children[0].boundary===null){var n=e.children[0];n.id=e.id,n.parentFlushed=!0,n.status===1&&Gk(t,n)}else t.completedSegments.push(e)}function EB(t,e,n){if(e===null){if(n.parentFlushed){if(t.completedRootSegment!==null)throw Error(Ft(389));t.completedRootSegment=n}t.pendingRootTasks--,t.pendingRootTasks===0&&(t.onShellError=Vg,e=t.onShellReady,e())}else e.pendingTasks--,e.forceClientRender||(e.pendingTasks===0?(n.parentFlushed&&n.status===1&&Gk(e,n),e.parentFlushed&&t.completedBoundaries.push(e),e.fallbackAbortableTasks.forEach(Nne,t),e.fallbackAbortableTasks.clear()):n.parentFlushed&&n.status===1&&(Gk(e,n),e.completedSegments.length===1&&e.parentFlushed&&t.partialBoundaries.push(e)));t.allPendingTasks--,t.allPendingTasks===0&&(t=t.onAllReady,t())}function AB(t){if(t.status!==2){var e=uu,n=b2.current;b2.current=IR;var i=ow;ow=t.responseState;try{var r=t.pingedTasks,s;for(s=0;s<r.length;s++){var a=r[s],l=t,c=a.blockedSegment;if(c.status===0){zk(a.context);try{Ms(l,a,a.node),c.lastPushedText&&c.textEmbedded&&c.chunks.push(zN),a.abortSet.delete(a),c.status=1,EB(l,a.blockedBoundary,c)}catch(m){if(GN(),typeof m=="object"&&m!==null&&typeof m.then=="function"){var d=a.ping;m.then(d,d)}else{a.abortSet.delete(a),c.status=4;var u=a.blockedBoundary,h=m,p=ny(l,h);if(u===null?Wk(l,h):(u.pendingTasks--,u.forceClientRender||(u.forceClientRender=!0,u.errorDigest=p,u.parentFlushed&&l.clientRenderedBoundaries.push(u))),l.allPendingTasks--,l.allPendingTasks===0){var y=l.onAllReady;y()}}}finally{}}}r.splice(0,s),t.destination!==null&&KN(t,t.destination)}catch(m){ny(t,m),Wk(t,m)}finally{ow=i,b2.current=n,n===IR&&zk(e)}}}function m0(t,e,n){switch(n.parentFlushed=!0,n.status){case 0:var i=n.id=t.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,t=t.responseState,dt(e,kte),dt(e,t.placeholderPrefix),t=Wt(i.toString(16)),dt(e,t),On(e,Ste);case 1:n.status=2;var r=!0;i=n.chunks;var s=0;n=n.children;for(var a=0;a<n.length;a++){for(r=n[a];s<r.index;s++)dt(e,i[s]);r=ES(t,e,r)}for(;s<i.length-1;s++)dt(e,i[s]);return s<i.length&&(r=On(e,i[s])),r;default:throw Error(Ft(390))}}function ES(t,e,n){var i=n.boundary;if(i===null)return m0(t,e,n);if(i.parentFlushed=!0,i.forceClientRender)i=i.errorDigest,On(e,Pte),dt(e,Ate),i&&(dt(e,Mte),dt(e,Wt(Zi(i))),dt(e,Nte)),On(e,Dte),m0(t,e,n);else if(0<i.pendingTasks){i.rootSegmentID=t.nextSegmentId++,0<i.completedSegments.length&&t.partialBoundaries.push(i);var r=t.responseState,s=r.nextSuspenseID++;r=Ze(r.boundaryPrefix+s.toString(16)),i=i.id=r,TR(e,t.responseState,i),m0(t,e,n)}else if(i.byteSize>t.progressiveChunkSize)i.rootSegmentID=t.nextSegmentId++,t.completedBoundaries.push(i),TR(e,t.responseState,i.id),m0(t,e,n);else{if(On(e,Cte),n=i.completedSegments,n.length!==1)throw Error(Ft(391));ES(t,e,n[0])}return On(e,Ete)}function BR(t,e,n){return ene(e,t.responseState,n.formatContext,n.id),ES(t,e,n),tne(e,n.formatContext)}function $R(t,e,n){for(var i=n.completedSegments,r=0;r<i.length;r++)NB(t,e,n,i[r]);if(i.length=0,t=t.responseState,i=n.id,n=n.rootSegmentID,dt(e,t.startInlineScript),t.sentCompleteBoundaryFunction?dt(e,one):(t.sentCompleteBoundaryFunction=!0,dt(e,ane)),i===null)throw Error(Ft(395));return n=Wt(n.toString(16)),dt(e,i),dt(e,lne),dt(e,t.segmentPrefix),dt(e,n),On(e,cne)}function NB(t,e,n,i){if(i.status===2)return!0;var r=i.id;if(r===-1){if((i.id=n.rootSegmentID)===-1)throw Error(Ft(392));return BR(t,e,i)}return BR(t,e,i),t=t.responseState,dt(e,t.startInlineScript),t.sentCompleteSegmentFunction?dt(e,ine):(t.sentCompleteSegmentFunction=!0,dt(e,nne)),dt(e,t.segmentPrefix),r=Wt(r.toString(16)),dt(e,r),dt(e,rne),dt(e,t.placeholderPrefix),dt(e,r),On(e,sne)}function KN(t,e){As=new Uint8Array(512),Ns=0;try{var n=t.completedRootSegment;if(n!==null&&t.pendingRootTasks===0){ES(t,e,n),t.completedRootSegment=null;var i=t.responseState.bootstrapChunks;for(n=0;n<i.length-1;n++)dt(e,i[n]);n<i.length&&On(e,i[n])}var r=t.clientRenderedBoundaries,s;for(s=0;s<r.length;s++){var a=r[s];i=e;var l=t.responseState,c=a.id,d=a.errorDigest,u=a.errorMessage,h=a.errorComponentStack;if(dt(i,l.startInlineScript),l.sentClientRenderFunction?dt(i,une):(l.sentClientRenderFunction=!0,dt(i,dne)),c===null)throw Error(Ft(395));dt(i,c),dt(i,hne),(d||u||h)&&(dt(i,x2),dt(i,Wt(y2(d||"")))),(u||h)&&(dt(i,x2),dt(i,Wt(y2(u||"")))),h&&(dt(i,x2),dt(i,Wt(y2(h)))),On(i,pne)}r.splice(0,s);var p=t.completedBoundaries;for(s=0;s<p.length;s++)$R(t,e,p[s]);p.splice(0,s),gR(e),As=new Uint8Array(512),Ns=0;var y=t.partialBoundaries;for(s=0;s<y.length;s++){var m=y[s];e:{r=t,a=e;var w=m.completedSegments;for(l=0;l<w.length;l++)if(!NB(r,a,m,w[l])){l++,w.splice(0,l);var k=!1;break e}w.splice(0,l),k=!0}if(!k){t.destination=null,s++,y.splice(0,s);return}}y.splice(0,s);var b=t.completedBoundaries;for(s=0;s<b.length;s++)$R(t,e,b[s]);b.splice(0,s)}finally{gR(e),t.allPendingTasks===0&&t.pingedTasks.length===0&&t.clientRenderedBoundaries.length===0&&t.completedBoundaries.length===0&&e.close()}}function HR(t,e){try{var n=t.abortableTasks;
146n.forEach(function(i){return PB(i,t,e)}),n.clear(),t.destination!==null&&KN(t,t.destination)}catch(i){ny(t,i),Wk(t,i)}}BN.renderToReadableStream=function(t,e){return new Promise(function(n,i){var r,s,a=new Promise(function(u,h){s=u,r=h}),l=Ane(t,ute(e?e.identifierPrefix:void 0,e?e.nonce:void 0,e?e.bootstrapScriptContent:void 0,e?e.bootstrapScripts:void 0,e?e.bootstrapModules:void 0),hte(e?e.namespaceURI:void 0),e?e.progressiveChunkSize:void 0,e?e.onError:void 0,s,function(){var u=new ReadableStream({type:"bytes",pull:function(h){if(l.status===1)l.status=2,lB(h,l.fatalError);else if(l.status!==2&&l.destination===null){l.destination=h;try{KN(l,h)}catch(p){ny(l,p),Wk(l,p)}}},cancel:function(){HR(l)}},{highWaterMark:0});u.allReady=a,n(u)},function(u){a.catch(function(){}),i(u)},r);if(e&&e.signal){var c=e.signal,d=function(){HR(l,c.reason),c.removeEventListener("abort",d)};c.addEventListener("abort",d)}AB(l)})};BN.version="18.3.1";var Qf,MB;Qf=Jf,MB=BN;dp.version=Qf.version;dp.renderToString=Qf.renderToString;dp.renderToStaticMarkup=Qf.renderToStaticMarkup;dp.renderToNodeStream=Qf.renderToNodeStream;dp.renderToStaticNodeStream=Qf.renderToStaticNodeStream;dp.renderToReadableStream=MB.renderToReadableStream;function Mne(t){return dp.renderToString(o.jsx(o.Fragment,{children:t})).replace(/<[^>]+>/g,"")}function ic(t,e=15){const n=Mne(t);return JZ(n,e)}const zR=t=>t.split(` 147 148`).map((e,n)=>o.jsx("p",{children:e},n)),Et=({content:t,customClassName:e})=>o.jsx("div",{className:`prose ${e||""}`,dangerouslySetInnerHTML:{__html:t}}),DB=({text:t,maxWords:e})=>ic(o.jsx(Et,{content:t}),e),Of=({title:t,subTitle:e,image:n,description:i,descriptionHover:r=!1})=>o.jsxs("div",{className:"group w-full max-w-md lg:max-w-sm rounded overflow-hidden shadow-lg bg-white min-h-96",children:[o.jsxs("div",{className:"relative",children:[r&&o.jsx("div",{className:"invisible group-hover:visible absolute inset-0 bg-black bg-opacity-50 z-50",children:"Â "}),o.jsx("img",{className:`w-full h-96 lg:h-64 ${r&&"group-hover:max-h-44"} object-cover`,src:n,alt:t})]}),o.jsxs("div",{className:"flex flex-col gap-2 px-2 py-4 items-center text-center min-h-32",children:[o.jsx("p",{className:"text-pmi-gray text-xs",children:e}),o.jsx("p",{className:"uppercase font-medium text-sm xl:text-lg text-pmi-black leading-6 text-ellipsis overflow-hidden",style:{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"},children:t}),o.jsx("p",{className:`hidden ${r&&"group-hover:block"} font-normal text-xs text-pmi-gray text-justify`,children:i&&o.jsx(DB,{text:i,maxWords:15})})]})]}),ka=({title:t,icon:e,image:n,customContainer:i="group relative overflow-hidden rounded-sm shadow-lg max-w-md lg:max-w-sm",customImgClass:r="w-full min-h-96 object-cover",customChildContainer:s="bg-gradient-to-t from-pmi-black to-transparent bg-black bg-opacity-5 hover:bg-opacity-65",flexRow:a=!1,button:l=!1,url:c})=>{const{t:d}=Se(["common"]);return o.jsxs("div",{className:i,children:[o.jsx("img",{src:n,alt:t||"",className:r}),!a&&o.jsxs("div",{className:`absolute inset-0 flex flex-col justify-center items-center ${s}`,children:[o.jsx("img",{src:e,alt:t||"",className:`${l?"w-28 h-28":"w-16 h-16"} transition-transform transform group-hover:w-20 group-hover:h-20`}),o.jsx("h2",{className:"text-white text-2xl font-normal text-center",children:t}),l&&o.jsx("a",{href:c||"#",className:"hidden group-hover:block btn bg-pmi-red uppercase font-medium text-sm text-white px-6 py-1 rounded-sm mt-8",children:d("common:view")})]}),a&&o.jsxs("div",{className:`absolute inset-0 flex flex-col md:flex-row justify-center md:justify-between items-center px-4 lg:px-8 ${s}`,children:[o.jsx("h2",{className:"text-white text-2xl md:text-lg lg:text-2xl font-medium text-center order-last md:order-first",children:t}),o.jsx("img",{src:e,alt:t||"",className:"w-16 h-16 xl:w-[75px] xl:h-[75px] transition-transform transform hover:scale-110"})]})]})},_B=async t=>{const e=await He.get(`/api/news/active/headline?category=${t}`);if(!e)throw new Error("Network response was not ok");return e==null?void 0:e.data},Dne=async(t,e,n,i,r)=>{const s=an({category:t,keyword:n,lang:e||null,page:i||null,except:r||null}),a=await He.get(`/api/news/active${s}`);if(!a)throw new Error("Network response was not ok");return a==null?void 0:a.data},_ne=async t=>{const e=await He.get(`/api/news/active/${t}`);if(!e)throw new Error("Network response was not ok");return e==null?void 0:e.data},Ine=async(t,e)=>{const n=`category=${t}&limit=${e}`,i=await He.get(`/api/news/active/headline?${n}`);if(!i)throw new Error("Network response was not ok");return i==null?void 0:i.data},YN=t=>Ge({queryKey:["recent_news"],queryFn:()=>_B(t)}),Rd=(t,e,n,i,r)=>Ge({queryKey:["news",t,i,n,r],queryFn:()=>Dne(t,e,n,i,r),staleTime:1e3*60*60,gcTime:1e3*60*60}),AS=t=>Ge({queryKey:["detail_news"],queryFn:()=>_ne(t),staleTime:1e3*60*60,gcTime:1e3*60*60}),Rne=t=>AK({queries:t.map(e=>({queryKey:["recent_news",e],queryFn:()=>_B(e)}))}),XN=(t,e)=>Ge({queryKey:["news_headline"],queryFn:()=>Ine(t,e),staleTime:1e3*60*60,gcTime:1e3*60*60}),iy={en:["January","February","March","April","May","June","July","August","September","October","November","December"],id:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},Ni=(t,e)=>{const n=new Date(t),i=n.getDate(),r=iy[e][n.getMonth()],s=n.getFullYear();return e==="en"?`${r} ${i}, ${s}`:`${i} ${r} ${s}`},One=(t,e,n)=>{const i=new Date(t),r=new Date(e),s=iy[n][i.getMonth()],a=iy[n][r.getMonth()];return`${s} ${n==="en"?"to":"sampai"} ${a}`},IB=(t,e,n)=>{const i=new Date(t),r=new Date(e),s=iy[n][i.getMonth()],a=iy[n][r.getMonth()];return`${i.getDate()} ${s} ${i.getFullYear()} - ${r.getDate()} ${a} ${r.getFullYear()}`},Lne=t=>new Date(t).getFullYear(),Fne=(t,e="en")=>{const n=new Date(t),r=new Date().getTime()-n.getTime();if(e==="en"){if(isNaN(n.getTime()))return"Invalid date format.";if(r<0)return"The date is in the future.";const s=Math.floor(r/(1e3*60*60*24)),a=Math.floor(s/30),l=s%30;let c="";return a>0&&(c+=`${a} month${a>1?"s and":""} `),l>0&&(c+=`${l} day${l>1?"s":""} `),c.trim()}else{if(isNaN(n.getTime()))return"Format tanggal tidak valid.";if(r<0)return"Tanggal ada di masa mendatang.";const s=Math.floor(r/(1e3*60*60*24)),a=Math.floor(s/30),l=s%30;let c="";return a>0&&(c+=`${a} bulan${a>1?" dan":""} `),l>0&&(c+=`${l} hari `),c.trim()}};function JN(t,e,n="en"){const i=n==="en"?["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agu","Sep","Okt","Nov","Des"],r=new Date(t),s=new Date(e),a=i[r.getMonth()],l=r.getDate(),c=r.getFullYear(),d=i[s.getMonth()],u=s.getDate(),h=s.getFullYear();return`${a} ${l}, ${c} - ${d} ${u}, ${h}`}const Bne=()=>{const{t}=Se(["common"]),{language:e}=_e(),{data:n,isLoading:i}=WZ(),r=Rne(["Press","Article"]),[s,a]=r;return o.jsxs("div",{className:"flex flex-col lg:flex-row gap-2 lg:gap-8 items-center justify-center mt-8 py-12 px-4 xl:px-24 bg-pmi-gray-light",children:[s.data&&o.jsxs("div",{className:"relative space-y-8 mt-4",children:[o.jsx("h3",{className:"italic font-medium text-2xl lg:text-4xl text-pmi-red mb-8",children:t("menu:pressReleases")}),s.isLoading&&o.jsx(Ot,{onlyImage:!0}),s.data&&o.jsx("a",{href:`/news/press-release/${s.data.slug}
148`,children:o.jsx(Of,{subTitle:t("common:viewed",{date:Ni(s.data.news_date,e),count:s.data.counter}),image:`${ze}/${s.data.image}`,title:e==="en"?s.data.title:s.data.title_indo,description:e==="en"?s.data.subtitle:s.data.subtitle_indo,descriptionHover:!0})})]}),a.data&&o.jsxs("div",{className:"relative space-y-8 mt-4",children:[o.jsx("h3",{className:"italic font-medium text-2xl lg:text-4xl text-pmi-red mb-8",children:t("menu:articles")}),a.isLoading&&o.jsx(Ot,{onlyImage:!0}),a.data&&o.jsx("a",{href:`/news/article/${a.data.slug}`,children:o.jsx(Of,{subTitle:t("common:viewed",{date:Ni(a.data.news_date,e),count:a.data.counter}),image:`${ze}/${a.data.image}`,title:e==="en"?a.data.title:a.data.title_indo,description:e==="en"?a.data.subtitle:a.data.subtitle_indo,descriptionHover:!0})})]}),o.jsxs("div",{className:"relative space-y-8 mt-4",children:[i&&o.jsx(Ot,{onlyImage:!0}),!i&&!n&&o.jsxs(o.Fragment,{children:[o.jsx("h3",{className:"italic font-medium text-2xl lg:text-4xl text-pmi-red mb-8",children:t("common:home.publications")}),o.jsx(ka,{icon:"/svg/info/square-library.svg",title:"e-Library",image:"/png/info/publications.png",button:!0})]}),n&&n.map((l,c)=>o.jsxs(o.Fragment,{children:[o.jsx("h3",{className:"italic font-medium text-2xl lg:text-4xl text-pmi-red mb-8",children:e==="en"?l.title:l.title_indo}),o.jsx(ka,{icon:"/svg/info/square-library.svg",title:e==="en"?l.subtitle||"e-Library":l.subtitle_indo||"e-Library",image:`${ze}/${l.image}`,button:!0,url:l.url||""},c)]}))]})]})},$ne=({addClassName:t="h-6 w-6",color:e})=>o.jsx("svg",{className:t,fill:e||"none",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 24 24",children:o.jsx("path",{d:"M 5 3 C 3.9069372 3 3 3.9069372 3 5 L 3 19 C 3 20.093063 3.9069372 21 5 21 L 19 21 C 20.093063 21 21 20.093063 21 19 L 21 12 L 19 12 L 19 19 L 5 19 L 5 5 L 12 5 L 12 3 L 5 3 z M 14 3 L 14 5 L 17.585938 5 L 8.2929688 14.292969 L 9.7070312 15.707031 L 19 6.4140625 L 19 10 L 21 10 L 21 3 L 14 3 z"})}),Hne=({imagePath:t,fullImageSrc:e,altText:n,isOpen:i,onClose:r,title:s,description:a})=>o.jsxs(cs,{open:i,onClose:r,className:"fixed inset-0 z-[999999999999] h-screen flex items-center justify-center overflow-y-auto overflow-x-hidden",children:[o.jsx("div",{className:"fixed inset-0 bg-pmi-dark bg-opacity-50","aria-hidden":"true"}),o.jsxs(nc,{className:"relative bg-white rounded-lg p-4 max-w-4xl mx-auto space-y-4 lg:mt-40 mb-4",children:[o.jsx("button",{className:"absolute top-2 right-2 text-pmi-dark hover:bg-pmi-gray-lighter p-2 text-xl z-50",onClick:r,children:o.jsx(cp,{color:"#ffffff",addClassName:"w-8 h-8"})}),o.jsxs("div",{className:"flex justify-center items-center",children:[s&&o.jsx("h3",{className:"font-medium text-2xl text-center capitalize",children:s}),o.jsx("a",{href:`${ze}/download/storage/${t}`,download:!0,target:"_blank",className:"inline-block ml-3 bg-pmi-red-light hover:bg-pmi-red rounded-md text-white px-1.5 py-1",children:o.jsx($ne,{color:"#ffffff",addClassName:"w-5 h-5"})})]}),o.jsxs("div",{className:"space-y-4 px-6 pb-2",children:[o.jsx("img",{src:e,alt:n,className:"w-full max-h-[80vh] object-contain"}),a&&o.jsx("p",{className:"text-lg",children:a})]})]})]}),VR=({customClass:t,imageUrl:e,imagePath:n,children:i,title:r,description:s})=>{const[a,l]=Z.useState(!1),c=()=>l(!0),d=()=>l(!1);return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:t,style:{backgroundImage:`url('${e}')`,backgroundSize:"cover",backgroundPosition:"center"},onClick:c,children:i}),o.jsx(Hne,{imagePath:n,fullImageSrc:e,altText:"view-image",isOpen:a,onClose:d,title:r,description:s})]})},UR=["md:h-full max-h-[42rem] md:min-w-[29.7rem]","md:h-full max-h-[38rem] md:min-w-[26.9rem]","h-[28.28rem] w-[20rem] lg:h-[31.12rem] lg:w-[22rem] xl:h-[33.94rem] xl:w-[24rem]","md:h-64 md:w-48 lg:h-80 lg:w-56","md:h-56 md:w-40 lg:h-64 lg:w-48 xl:h-72 xl:w-52","md:h-48 md:w-32 lg:h-64 lg:w-44"],zne=()=>{const{t}=Se(["common"]),{data:e,isLoading:n}=GZ(),{language:i}=_e(),r=(e==null?void 0:e.length)||5;return o.jsx("div",{className:"flex flex-warp flex-col items-center justify-center gap-6 py-2 px-2 xl:px-24 bg-pmi-red bg-gradient-to-l from-pmi-red-light to-pmi-red-dark",children:o.jsxs("div",{className:"w-full max-w-6xl flex flex-col justify-start gap-8 my-4",children:[o.jsx("h3",{className:"font-medium text-4xl text-white",children:t("common:home.infografis")}),n&&o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-5 ga
148p-6",children:[1,2,3,4,5].map(s=>o.jsx(Ot,{onlyImage:!0,minHeight:"min-h-60",minWidth:"min-w-52"},s))}),!n&&!e&&o.jsx("div",{className:"w-full flex flex-col md:flex-row justify-between items-center gap-2",children:[1,2,3,4,5].map((s,a)=>o.jsx(VR,{customClass:`w-48 h-64 ${UR[4]} xl:scale-100`,imageUrl:`/png/infografis/${s}.png`,imagePath:""},a))}),!n&&e&&o.jsx("div",{className:`w-full flex flex-col md:flex-row ${r>1?"justify-between":"justify-center"} items-center gap-2`,children:e.map((s,a)=>o.jsx(VR,{customClass:`w-48 h-64 cursor-pointer ${UR[r-1]} xl:scale-100`,imageUrl:`${ze}/${s.image}`,imagePath:s.image,title:i==="en"?s.title:s.title_indo,description:i==="en"?s.desc:s.desc_indo},a))})]})})},RB=({icon:t,title:e,value:n})=>o.jsxs("div",{className:"flex flex-col xl:flex-row justify-center p-4 max-w-md",children:[o.jsx("div",{className:"p-3 h-full flex items-center",children:o.jsx("img",{src:t,alt:e,className:"w-14 h-12 "})}),o.jsxs("div",{className:"ml-4 text-center",children:[o.jsx("h2",{className:"text-pmi-red text-4xl font-bold",children:ma(n,0,0)}),o.jsx("p",{className:"text-pmi-gray text-xl font-light",children:e})]})]}),Vne=async t=>{const e=await He.get(`/api/external-data/google-analytics?page=${t}`);if(!e)throw new Error("Network response was not ok");return e},OB=t=>Ge({queryKey:["analytics",t],queryFn:()=>Vne(t),staleTime:1e3*60*60,gcTime:1e3*60*60}),Une=()=>{const{t}=Se(["common"]),{data:e}=OB(""),n=[{icon:"/svg/visitors/user-duotone.svg",label:"totalVisitorsToday",total:(e==null?void 0:e.today)||0},{icon:"/svg/visitors/user-duotone.svg",label:"totalVisitorsAllTime",total:(e==null?void 0:e.all)||0},{icon:"/svg/visitors/download-bold-duotone.svg",label:"totalDownloads",total:(e==null?void 0:e.download)||0}];return o.jsxs("div",{className:"flex flex-col flex-wrap gap-4 items-center justify-center mt-8 py-8",children:[o.jsx("p",{className:"font-light text-lg text-pmi-gray text-center max-w-96",children:t("common:home.ourGrowingComunity")}),o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center",children:t("common:home.visitorInsights")}),o.jsx("div",{className:"flex flex-col lg:flex-row justify-center items-center gap-2 lg:gap-10 py-8",children:n.map((i,r)=>o.jsx(RB,{title:t(`common:home.${i.label}`),value:i.total,icon:i.icon},r))})]})},Wne=()=>{const t=[];return Z.useEffect(()=>{},[]),o.jsxs(Ye,{type:"default",breadcrumbs:t,children:[o.jsx(aY,{}),o.jsx(kee,{}),o.jsx(Bne,{}),o.jsx(zne,{}),o.jsx(Une,{})]})},We=()=>{const t=hF(),{t:e}=Se(["common"]);return ev(t)?o.jsxs("main",{className:"flex flex-col justify-center items-center min-h-screen px-6 py-24 sm:py-32 lg:px-8 bg-pmi-white text-pmi-dark",children:[o.jsx("img",{className:"w-52",alt:"aha",src:"/png/logo.png"}),o.jsxs("div",{className:"text-center py-8",children:[o.jsx("h2",{className:"self-center font-bold text-white text-3xl",children:"Oops!"}),o.jsx("p",{className:"text-xl p-2 mb-2",children:e("error.unexpectedOccured")}),o.jsx("p",{className:"text-xl p-2 mb-2",children:t.statusText||t.data})]})]}):o.jsxs("main",{className:"flex flex-col justify-center items-center min-h-screen px-6 py-24 sm:py-32 lg:px-8 bg-pmi-white text-pmi-dark",children:[o.jsx("img",{className:"w-52",alt:"aha",src:"/png/logo.png"}),o.jsxs("div",{className:"text-center py-8",children:[o.jsx("h2",{className:"self-center font-bold text-pmi-dark text-3xl",children:"Oops!"}),o.jsx("p",{className:"text-xl p-2 mb-2",children:e("error.unexpectedOccured")}),o.jsx("p",{className:"text-xl p-2 mb-2",children:o.jsx("i",{children:t.message})})]})]})},xi=()=>{const{t}=Se(["common"]);return o.jsxs("main",{className:"flex flex-col justify-center items-center min-h-screen px-6 py-24 sm:py-32 lg:px-8 bg-pmi-white text-pmi-black",children:[o.jsx("img",{className:"w-52",alt:"aha",src:"/png/logo.png"}),o.jsxs("div",{className:"text-center py-8",children:[o.jsxs("h2",{className:"self-center font-bold text-pmi-dark text-3xl",children:["404 - ",t("error.notFound")]}),o.jsx("p",{className:"text-xl p-2 mb-2",children:t("error.notExists")}),o.jsx(pF,{to:"/",className:"p-2 border-2 rounded-sm hover:font-bold",children:t("error.goBack")})]})]})},WR=({title:t,address:e,phone:n,email:i,website:r})=>
148o.jsxs("div",{className:"bg-pmi-gray-light shadow-md rounded-lg px-6 py-4 space-y-2 text-pmi-gray",children:[o.jsx("h3",{className:"text-pmi-black text-lg font-medium mb-2 capitalize",children:t}),o.jsxs("div",{className:"flex gap-2",children:[o.jsx("img",{src:"/svg/contact-us/location.svg",alt:"location",className:"w-4 h4"}),o.jsx("p",{className:"text-xs",children:e})]}),o.jsxs("div",{className:"flex gap-2",children:[o.jsx("img",{src:"/svg/contact-us/phone.svg",alt:"phone",className:"w-4 h4"}),o.jsx("p",{className:"text-xs",children:n})]}),o.jsxs("div",{className:"flex gap-2",children:[o.jsx("img",{src:"/svg/contact-us/mail.svg",alt:"phone",className:"w-4 h4"}),o.jsx("a",{href:`mailto:${i}`,target:"_blank",className:"text-xs text-pmi-red",children:i})]}),o.jsxs("div",{className:"flex gap-2",children:[o.jsx("img",{src:"/svg/contact-us/world.svg",alt:"phone",className:"w-4 h4"}),o.jsx("a",{href:`http://${r}`,target:"_blank",className:"text-xs text-pmi-red",children:r})]})]}),Gne=[{id:"pmi_headquarters",location:"PMI Headquarters",address:"Jl. Gatot Subroto Kav.96, Jakarta Selatan",phone:"+6221 7992325",email:"[email protected]",website:"pmi.or.id"},{id:"pmi_kota_surabaya",location:"PMI Kota Surabaya",address:"Jl. Sumatera No.71",phone:"+6231 5013542",email:"[email protected]",website:"pmikotasurabaya.or.id"},{id:"pmi_kab_gresik",location:"PMI Kab. Gresik",address:"Jl. Dr. Wahidin Sudiro Husodo No.93",phone:"+6231 3984766",email:"[email protected]",website:"pmikabupatengresik.com"},{id:"pmi_kab_sidoarjo",location:"PMI Kab. Sidoarjo",address:"Jl. A. Yani No.12",phone:"+6231 8961651",email:"[email protected]",website:"pmi.or.id"},{id:"pmi_kota_mojokerto",location:"PMI Kota Mojokerto",address:"Jl. Hayam Wuruk No.2",phone:"+62321 327558",email:"[email protected]",website:"pmi.or.id"},{id:"pmi_kab_mojokerto",location:"PMI Kab. Mojokerto",address:"Jl. Raya Jabon Puri Bangsal Po Box 07",phone:"+62321 325688",email:"[email protected]",website:"pmi.or.id"},{id:"pmi_kab_jombang",location:"PMI Kab. Jombang",address:"Jl. Wachid Hasyim No.133",phone:"+62321 861209",email:"[email protected]",website:"pmi.or.id"},{id:"pmi_kota_malang",location:"PMI Kota Malang",address:"Jl. Buring No.10",phone:"+62341 364617",email:"[email protected]",website:"pmi.or.id"},{id:"pmi_kab_malang",location:"PMI Kab. Malang",address:"Jl. Raya Kebonagung No.123",phone:"+62341 7992325",email:"[email protected]",website:"pmi.or.id"}],qne=[{label:"monetaryCampaigns.ongoing",value:"ongoing"},{label:"monetaryCampaigns.completed",value:"completed"}],LB=Z.createContext(void 0),Kne=({children:t})=>{const[e,n]=Z.useState({}),i=(a,l)=>{n(c=>({...c,[a]:l}))},r=(a,l)=>{n(c=>({...c,[a]:l}))},s=a=>{n(l=>{const c={...l};return delete c[a],c})};return o.jsx(LB.Provider,{value:{fields:e,addField:i,updateField:r,removeField:s},children:t})},wr=()=>{const t=Z.useContext(LB);if(!t)throw new Error("useDynamicField must be used within a DynamicFieldProvider");return t},Yne=async(t,e,n,i)=>{const r=an({mode:0,void:0,category:t,province:e,city:n,subdistrict:i}),s=await He.get(`/api/branches${r}`);if(!s)throw new Error("Network response was not ok");return s==null?void 0:s.data},QN=(t,e,n,i)=>Ge({queryKey:["branch"],queryFn:()=>Yne(t,e,n,i),staleTime:1e3*60*60,gcTime:1e3*60*60,enabled:!1}),Xne=()=>{const{fields:t}=wr(),{data:e,refetch:n}=QN(1,t&&t.province||"",t&&t.city||"",t&&t.subdistrict||"");return Z.useEffect(()=>{t&&n()},[t]),o.jsx("div",{className:"flex flex-col flex-wrap gap-4 items-center justify-center py-2 mb-8 px-2",children:o.jsxs("div",{className:"max-w-6xl justify-center w-full grid grid-cols-1 md:grid-cols-3 gap-8",children:[!e&&Gne.map((i,r)=>o.jsx(WR,{title:i.location,address:i.address,phone:i.phone,email:i.email,website:i.website},r)),e&&e.map((i,r)=>o.jsx(WR,{title:i.branch_name,address:i.address,phone:i.phone_number,email:i.email,website:i.web_url},r))]})})},er=({options:t,renderOption:e,value:n,onChange:i,placeholder:r,label:s,transalation:a=!1,disabled:l,customClass:c="w-full border rounded p-4 cursor-pointer flex justify-between items-center text-pmi-gray",textBase:d="text-base",useSubtitle:u=!1})=>{const[h,p]=Z.useState(!1),y=t.find(x=>String(x.value)===String(n)),{t:m}=Se(["common"]),w=Z.useRef(null),k=x=>{i(x),p(!1)};Z.useEffect(()=>{const x=v=>{w.current&&!w.current.contains(v.target)&&p(!1)};return document.addEventListener("click",x),()=>{document.removeEventListener("click",x)}},[]);const b=(x,v)=>o.jsxs("div",{className:"relative px-2 space-y-2",children:[!v&&s&&o.jsx("p",{className:"mr-2 text-sm font-medium capitalize text-pmi-gray",children:m(s)}),!a&&o.jsx("p",{className:`font-light ${d}`,children:x.label}),a&&o.jsxs("p",{className:`font-light ${d}`,children:[o.jsx("div",{children:m(x.label)}),u&&h&&o.jsx("small",{className:"text-xs text-pmi-gray",children:m(x.subtitle||"")})]})]});return o.jsxs("div",{className:"relative w-full",ref:w,children:[o.jsxs("div",{className:`${c} ${l?"bg-gray-200 text-pmi-dark cursor-default":"bg-pmi-white cursor-pointer"}`,onClick:()=>l?"":p(!h),children:[!e&&(y?b(y,!1):r||m("common:pleaseSelect")),e&&(y?e(y,!1):r||m("common:pleaseSelect")),o.jsx("img",{src:"/svg/arrow/arrow-down.svg",alt:"arrow",className:"w-4 h-4"})]}),h&&!l&&o.jsx("ul",{className:"absolute z-10 w-full mt-1 overflow-auto bg-white border rounded max-h-64",children:t.map((x,v)=>o.jsxs("li",{className:"p-2 cursor-pointer hover:bg-gray-200",onClick:()=>
148k(x.value),children:[!e&&b(x,!0),e&&e(x,!0)]},v))})]})},Jne=async()=>{const t=await He.get("/api/countries");if(!t)throw new Error("Network response was not ok");return t==null?void 0:t.data},Qne=async()=>{const t=await He.get("/api/provinces");if(!t)throw new Error("Network response was not ok");return t==null?void 0:t.data},Zne=async t=>{if(!t)return[];const e=await He.get(`/api/provinces/${t}/cities`);if(!e)throw new Error("Network response was not ok");return e==null?void 0:e.data},eie=async t=>{if(!t)return[];const e=await He.get(`/api/cities/${t}/subdistricts`);if(!e)throw new Error("Network response was not ok");return e==null?void 0:e.data},tie=()=>Ge({queryKey:["country"],queryFn:Jne,staleTime:1e3*60*60,gcTime:1e3*60*60}),FB=()=>Ge({queryKey:["province"],queryFn:Qne,staleTime:1e3*60*60,gcTime:1e3*60*60}),nie=t=>Ge({queryKey:["city"],queryFn:()=>Zne(t),staleTime:1e3*60*60,gcTime:1e3*60*60,enabled:!1}),iie=t=>Ge({queryKey:["subdistrict"],queryFn:()=>eie(t),staleTime:1e3*60*60,gcTime:1e3*60*60,enabled:!1}),f0="31.74.03",rie=()=>{const{t}=Se(["dashboard","common"]),{fields:e,addField:n,updateField:i}=wr(),{data:r}=FB(),{data:s,refetch:a}=nie(e&&e.province||""),{data:l,refetch:c}=iie(e&&e.city||""),[d,u]=Z.useState([]),[h,p]=Z.useState([]),[y,m]=Z.useState([]);Z.useEffect(()=>{if(r){const x=r.map(v=>({value:v.province_id,label:v.province_name}));u([{value:"",label:t("common:showAll")},...x]),n("province","")}},[r]),Z.useEffect(()=>{if(s){const x=s.map(v=>({value:v.city_id,label:v.city_name}));p([{value:"",label:t("common:showAll")},...x]),n("city","")}},[s]),Z.useEffect(()=>{if(l){const x=l.map(v=>({value:v.subdistrict_id,label:v.subdistrict_name}));m([{value:"",label:t("common:showAll")},...x]),n("subdistrict","")}},[l]),Z.useEffect(()=>{a()},[e.province]),Z.useEffect(()=>{c()},[e.city]),Z.useEffect(()=>{c()},[e.subdistrict]);const w=x=>{i("province",x.toString())},k=x=>{i("city",x.toString())},b=()=>{i("subdistrict",e&&e.subdistrict===f0?"":f0)};return o.jsxs("div",{className:"flex flex-col flex-wrap gap-4 items-center justify-center mt-8 py-2 px-2",children:[o.jsx("h2",{className:"font-bold text-4xl text-pmi-red text-center",children:t("common:contactUs.branchOffice")}),o.jsx("p",{className:"font-light text-xl text-pmi-gray text-center max-w-screen-lg",children:t("common:contactUs.reachOut")}),o.jsxs("div",{className:"w-full max-w-6xl flex items-center gap-4 py-6",children:[o.jsx("button",{className:on({"w-full max-w-36 font-medium text-sm border px-4 py-4 rounded-lg":!0,"bg-pmi-white text-pmi-black":e&&e.subdistrict!==f0,"bg-pmi-red text-pmi-white":e&&e.subdistrict===f0}),onClick:b,children:t("filter.headquarters")}),o.jsxs("div",{className:"w-full flex flex-col md:flex-row justify-center items-center bg-pmi-red bg-gradient-to-l from-pmi-red-light to-pmi-red-dark font-medium text-sm px-2 py-1 rounded-lg",children:[o.jsx("p",{className:"w-full max-w-16 ml-2 text-sm text-pmi-white",children:t("filter.province")}),o.jsx(er,{options:d,value:e&&e.province,onChange:w,label:"",transalation:!0,placeholder:t("filter.chooseOption"),textBase:"text-sm",customClass:"w-full bg-pmi-white border rounded-lg p-2 cursor-pointer flex justify-between text-pmi-black drop-shadow-sm focus:ring-2 focus:ring-pmi-red"}),o.jsx("p",{className:"w-full max-w-16 ml-2 text-sm text-pmi-white",children:t("filter.city")}),o.jsx(er,{options:h,value:e&&e.city,onChange:k,label:"",transalation:!0,placeholder:t("filter.chooseOption"),textBase:"text-sm",customClass:"w-full bg-pmi-white border rounded-lg p-2 cursor-pointer flex justify-between text-pmi-black drop-shadow-sm focus:ring-2 focus:ring-pmi-red"}),o.jsx("p",{className:"w-full max-w-20 ml-2 text-sm text-pmi-white",children:t("filter.subdistrict")}),o.jsx(er,{options:y,value:e&&e.subdistrict,onChange:x=>i("subdistrict",x.toString()),label:"",transalation:!0,placeholder:t("filter.chooseOption"),textBase:"text-sm",customClass:"w-full bg-pmi-white border rounded-lg p-2 cursor-pointer flex justify-between text-pmi-gray drop-shadow-sm focus:ring-2 focus:ring-pmi-red"})]})]})]})},sie=()=>{const{t}=Se(["menu"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:contactUs")}];return o.jsxs(Ye,{type:"default",title:"contactUs",breadcrumbs:e,children:[o.jsx(rie,{}),o.jsx(Xne,{})]})},aie=[{path:"/contact-us",element:o.jsx(sie,{}),errorElement:o.jsx(We,{})}],lw=({url:t="https://pmi.or.id"})=>(Z.useEffect(()=>{window.location.href=t},[]),null),BB=({faqItems:t})=>{const{language:e}=_e(),[n,i]=Z.useState(null),r=s=>{i(n===s?null:s)};return o.jsx("div",{className:"space-y-4 ",children:t.map((s,a)=>o.jsxs("div",{children:[o.jsxs("button",{className:"flex justify-between w-full text-left py-4 px-6 stroke-pmi-gray-lighter border rounded-sm focus:outline-none",onClick:()=>r(a),children:[o.jsx("h4",{className:"text-lg font-medium",children:e==="en"?s.question:s.question_indo}),o.jsx("img",{src:`/svg/arrow/${n===a?"arrow-down":"arrow-right"}.svg`,alt:"arrow",className:"w-6 h-6"})]}),n===a&&o.jsx("div",{className:"p-4 bg-pmi-gray-light border rounded-sm",children:o.jsx(Et,{content:e==="en"?s.answer:s.answer_indo})})]},a))})},$B=Z.createContext(void 0),HB=({children:t})=>{const[e,n]=Z.useState("all"),i=r=>{n(r)};return o.jsx($B.Provider,{value:{selectedCategory:e,selectCategory:i},children:t})},ZN=()=>{const t=Z.useContext($B);if(!t)throw new Error("useCategory must be used within a CategoryProvi
148der");return t},zB=({categories:t})=>{const{t:e}=Se(["common"]),{language:n}=_e(),{selectCategory:i,selectedCategory:r}=ZN(),a=[{faq_category_id:"all",category_name:"All Categories",category_name_indo:"Semua Kategori",faq_count:t.reduce((l,c)=>l+(c.faq_count||0),0)},...t];return o.jsxs("div",{className:"mb-4",children:[o.jsx("h3",{className:"px-6 py-4 bg-pmi-gray-lighter font-medium text-2xl uppercase",children:e("categories")}),o.jsx("ul",{className:"border",children:a.map((l,c)=>o.jsx("li",{className:`px-6 cursor-pointer ${l.faq_category_id==r&&"bg-pmi-gray-light"} hover:bg-pmi-gray-light`,onClick:()=>i(l.faq_category_id),children:o.jsxs("div",{className:"flex justify-between gap-10 border-b font-light text-base text-pmi-gray py-4",children:[o.jsx("span",{className:"flex-grow",children:n==="en"?l.category_name:l.category_name_indo}),o.jsxs("span",{children:["(",l.faq_count,")"]})]})},c))})]})},oie=async t=>{const e=an({faq_type_id:t,void:0}),n=await He.get(`/api/faq-categories${e}`);if(!n)throw new Error("Network response was not ok");return n==null?void 0:n.data},lie=async(t,e)=>{const n=an({category_id:e,faq_type_id:t,void:0}),i=await He.get(`/api/faqs${n}`);if(!i)throw new Error("Network response was not ok");return i==null?void 0:i.data},VB=t=>Ge({queryKey:["faq_categories"],queryFn:()=>oie(t),staleTime:1e3*60*60,gcTime:1e3*60*60}),UB=(t,e)=>Ge({queryKey:["faq_list"],queryFn:()=>lie(t,e),staleTime:1e3*60*60,gcTime:1e3*60*60}),cie=()=>{const{t}=Se(["common"]),{language:e}=_e(),{data:n,isLoading:i}=UB("TFA-001"),{data:r}=VB("TFA-001"),[s,a]=Z.useState({}),{selectedCategory:l}=ZN();return Z.useEffect(()=>{const c=d=>d.reduce((u,h)=>{const{faq_category_id:p}=h;return u[p]||(u[p]=[]),u[p].push(h),u},{});if(n){const d=c(n);a(d)}},[n]),i&&!i?o.jsx("div",{className:"flex justify-center items-center py-8",children:o.jsx(ZA,{addClassName:"animate-spin w-96"})}):n&&o.jsxs("div",{className:"py-8 px-2 mt-8",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center py-2",children:"FAQ"}),o.jsx("p",{className:"font-light text-lg text-pmi-gray text-center py-2",children:t("common:faq.description")}),o.jsxs("div",{className:"flex flex-col md:flex-row flex-wrap justify-center gap-8 my-8",children:[o.jsx("div",{className:"w-full max-w-3xl space-y-4",children:r&&r.map((c,d)=>(l===c.faq_category_id||l==="all")&&o.jsxs("div",{className:"first:pt-0 py-8",children:[o.jsx("h2",{className:"uppercase font-medium text-2xl text-pmi-red pb-6",children:e==="en"?c.category_name:c.category_name_indo}),s[c.faq_category_id]&&o.jsx(BB,{faqItems:s[c.faq_category_id]})]},d))}),o.jsx("div",{className:"w-full lg:max-w-xs",children:r&&o.jsx(zB,{categories:r})})]})]})},die=()=>{const{t}=Se(["menu"]),e=[{label:t("menu:bloodDonation"),path:"#"},{label:t("menu:faq")}];return o.jsx(Ye,{type:"default",title:"faq",breadcrumbs:e,children:o.jsx(HB,{children:o.jsx(cie,{})})})},uie=()=>{const{t}=Se(["common"]);return o.jsxs("div",{className:"bg-pmi-red-dark bg-gradient-to-r from-pmi-red-dark to-pmi-red-light mt-8 rounded-b-[2rem]",children:[o.jsxs("div",{className:"flex flex-col flex-wrap gap-4 items-center justify-center w-full bg-white rounded-b-[2rem] mt-8 py-4 px-2",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center",children:t("common:goDonor.downloadApp")}),o.jsx("p",{className:"font-light text-lg text-pmi-gray text-center",children:t("common:goDonor.joinMovement")}),o.jsxs("div",{className:"flex flex-col md:flex-row w-full justify-center items-stretch gap-28 mt-4",children:[o.jsxs("div",{className:"space-y-12 max-w-[450px] lg:max-w-lg self-center",children:[o.jsx("p",{className:"font-normal text-2xl text-pmi-gray",children:o.jsx(Et,{content:t("common:goDonor.description")})}),o.jsxs("div",{className:"flex gap-6 items-center",children:[o.jsx("a",{href:"",target:"_blank",children:o.jsx("img",{src:"/png/app/apps-store.png",alt:t("common:goDonor.iosVersion"),className:"w-52 h-16"})}),o.jsx("a",{href:"",target:"_blank",children:o.jsx("img",{src:"/png/app/play-store.png",alt:t("common:goDonor.androidVersion"),className:"w-52 h-16"})})]})]}),o.jsx("div",{className:"",children:o.jsx("img",{src:"/png/app/app.png",alt:t("common:goDonor.androidVersion"),className:"w-full lg:max-h-[500px] -mb-36"})})]})]}),o.jsxs("div",{className:"flex flex-col lg:flex-row justify-center items-center w-full gap-x-2 xl:gap-x-28 gap-y-4 px-8 py-36",children:[o.jsxs("div",{className:"space-y-4 text-white max-w-md",children:[o.jsx("p",{className:"font-medium text-4xl",children:t("common:goDonor.downloadNow")}),o.jsx("p",{className:"font-medium text-xl",children:t("common:goDonor.joinMovement")}),o.jsx("p",{className:"font-normal text-lg leading-5",children:t("common:goDonor.joinCommunity")})]}),o.jsxs("div",{className:"flex flex-col md:flex-row gap-x-4 md:gap-x-8 gap-y-4 self-center lg:self-end",children:[o.jsxs("div",{className:"bg-pmi-white/20 text-pmi-white rounded-3xl rounded-br-[28px] space-y-2 py-4 pl-4",children:[o.jsx("p",{className:"font-medium text-2xl",children:t("common:goDonor.forIOS")}),o.jsx("p",{className:"font-light text-lg",children:t("common:goDonor.iosVersion")}),o.jsxs("div",{className:"flex justify-between items-stretch gap-x-8 xl:gap-x-12",children:[o.jsx("img",{src:"/png/qr/ios.png",alt:t("common:goDonor.iosVersion"),className:"w-24 h-24"}),o.jsx("img",{src:"/svg/devices/ios.svg",alt:t("common:goDonor.iosVersion"),className:"w-24 h-24 -mb-7 -mr-2 self-end"})]})]}),o.jsxs("div",{className:"bg-pmi-white/20 text-pmi-white rounded-3xl rounded-br-[28px] space-y-2 py-4 pl-4",children:[o.jsx("p",{className:"font-medium text-2xl",children:t("common:goDonor.forAndroid")}),o.jsx("p",{className:"font-light text-lg",children:t("common:goDonor.androidVersion")}),o.jsxs("div",{className:"flex justify-between items-stretch gap-x-8 xl:gap-x-12",children:[o.jsx("img",{src:"/png/qr/android.png",alt:t("common:goDonor.androidVersion"),className:"w-24 h-24"}),o.jsx("img",{src:"/svg/devices/android.svg",alt:t("common:goDonor.androidVersion"),className:"w-24 h-24 -mb-7 -mr-2 self-end"})]})]})]})]})]})},v2=({title:t,subtitle:e,imageUrl:n,customClass:i})=>o.jsx("div",{className:i,children:o.jsxs("div",{className:"md:flex md:items-center",children:[o.jsxs("div",{className:"p-3",children:[o.jsx("div",{className:"capitalize tracking-wide text-2xl font-medium",children:t}),o.jsx("p",{className:"block mt-1 text-lg font-normal leading-5",children:e})]}),o.jsx("div",{className:"md:flex-shrink-0",children:n&&o.jsx("img",{className:"h-full w-full object-cover md:w-40",src:n,alt:t||"Card image"})})]})}
148),Hd=({customClass:t="bg-transparent",title:e,subtitle:n})=>o.jsx("div",{className:t,children:o.jsxs("div",{children:[o.jsx("div",{className:"capitalize tracking-wide font-medium text-2xl",children:e}),o.jsx("p",{className:"block mt-1 text-lg leading-tight font-normal text-pmi-gray",children:n})]})}),hie=()=>{const{t}=Se(["common"]);return o.jsx("div",{className:"bg-pmi-red-dark bg-gradient-to-r from-pmi-red-dark to-pmi-red-light",children:o.jsxs("div",{className:"flex flex-col flex-wrap gap-4 items-center justify-center w-full bg-white mt-8 py-16 px-2",children:[o.jsx("h3",{className:"font-medium text-2xl text-pmi-gray text-center",children:t("common:goDonor.appFeatures")}),o.jsx("p",{className:"font-medium text-4xl text-pmi-black text-center max-w-xl",children:o.jsx(Et,{content:t("common:goDonor.exploreFeatures")})}),o.jsxs("div",{className:"flex flex-col lg:flex-row justify-center gap-y-4 gap-x-16 my-8 max-w-5xl mt-8",children:[o.jsxs("div",{className:"space-y-8 lg:max-w-md",children:[o.jsx(v2,{customClass:"bg-pmi-red-dark bg-gradient-to-r from-pmi-red-dark to-pmi-red-light rounded-2xl px-4 pt-6 text-pmi-white shadow-xl",title:t("common:goDonor.feeds"),subtitle:t("common:goDonor.feedsDescription"),imageUrl:"/png/app/1.png"}),o.jsx(v2,{customClass:"bg-pmi-gray-light rounded-2xl px-4 pt-6 text-pmi-black shadow-xl",title:t("common:goDonor.newsResources"),subtitle:t("common:goDonor.newsResourcesDescription"),imageUrl:"/png/app/2.png"}),o.jsx(v2,{customClass:"bg-pmi-red-dark bg-gradient-to-r from-pmi-red-dark to-pmi-red-light rounded-2xl px-4 pt-6 text-pmi-white shadow-xl",title:t("common:goDonor.onlineDonations"),subtitle:t("common:goDonor.onlineDonationsDescription"),imageUrl:"/png/app/3.png"})]}),o.jsxs("div",{className:"max-w-md space-y-10",children:[o.jsx(Hd,{title:t("common:goDonor.digitalDonorCard"),subtitle:t("common:goDonor.digitalDonorCardDescription")}),o.jsx(Hd,{title:t("common:goDonor.trackDonorHistory"),subtitle:t("common:goDonor.trackDonorHistoryDescription")}),o.jsx(Hd,{title:t("common:goDonor.eventSchedules"),subtitle:t("common:goDonor.eventSchedulesDescription")}),o.jsx(Hd,{title:t("common:goDonor.bloodDonorReminders"),subtitle:t("common:goDonor.bloodDonorRemindersDescription")}),o.jsx(Hd,{title:t("common:goDonor.findDonationLocations"),subtitle:t("common:goDonor.findDonationLocationsDescription")}),o.jsx(Hd,{title:t("common:goDonor.checkBloodStock"),subtitle:t("common:goDonor.checkBloodStockDescription")}),o.jsx(Hd,{title:t("common:goDonor.emergencyNumbers"),subtitle:t("common:goDonor.emergencyNumbersDescription")})]})]})]})})},pie=()=>{const{t}=Se(["menu"]),e=[{label:t("menu:bloodDonation"),path:"#"},{label:t("menu:donorDataInfo")}];return o.jsxs(Ye,{type:"default",title:"goDonorApp",breadcrumbs:e,children:[o.jsx(uie,{}),o.jsx(hie,{})]})},w2="https://ayodonor.pmi.or.id",mie=[{path:"/blood-donation/blood-stock",element:o.jsx(lw,{url:w2}),errorElement:o.jsx(We,{})},{path:"/blood-donation/locations",element:o.jsx(lw,{url:w2}),errorElement:o.jsx(We,{})},{path:"/blood-donation/donor-info",element:o.jsx(lw,{url:w2}),errorElement:o.jsx(We,{})},{path:"/blood-donation/faq",element:o.jsx(die,{}),errorElement:o.jsx(We,{})},{path:"/blood-donation/go-donor-app",element:o.jsx(pie,{}),errorElement:o.jsx(We,{})}],Lf=({title:t,subtitle:e,description:n,membersCount:i,backgroundImage:r,icon:s})=>{const{t:a}=Se(["common"]);return o.jsxs("div",{className:"group relative flex items-end w-full min-h-48 md:min-h-80 px-4 lg:px-8 py-6 bg-cover bg-center rounded-2xl shadow-lg",style:{backgroundImage:`url(${r})`},children:[o.jsxs("div",{className:"invisible group-hover:visible absolute flex justify-center items-center inset-0 bg-gradient-to-t from-pmi-black to-transparent bg-pmi-black bg-opacity-0 hover:bg-opacity-25 z-40 rounded-2xl",children:["Â ",o.jsx("button",{className:"btn bg-pmi-red text-pmi-white z-50 block px-10 py-2 rounded-md uppercase font-medium text-lg md:text-2xl",children:a("common:joinNow")})]}),o.jsx("div",{className:"absolute flex justify-center items-center inset-0 bg-gradient-to-t from-pmi-black to-transparent to-80% bg-pmi-black bg-opacity-5 z-20 rounded-2xl"}),o.jsxs("div",{className:"relative z-30",children:[o.jsxs("div",{className:"lg:flex lg:justify-between",children:[o.jsxs("div",{className:"relative",children:[o.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-pmi-white",children:t}),o.jsx("h3",{className:"text-base md:text-lg font-normal text-pmi-white",children:e})]}),o.jsxs("div",{className:"flex mt-4",children:[s&&o.jsx("img",{src:s,alt:"icon",className:"w-10 h-10 md:w-12 md:h-12 mr-2"}),i&&o.jsxs("div",{className:"relative flex flex-col",children:[o.jsx("span",{className:"text-sm md:text-base font-normal text-pmi-white",children:ma(i,0,0)}),o.jsx("span",{className:"text-sm md:text-base font-normal text-pmi-white",children:a("common:members")})]})]})]}),n&&o.jsx("p",{className:"font-light text-sm md:text-base text-pmi-white",children:n})]})]})},fie=()=>{const{t}=Se(["common"]),{language:e}=_e(),{data:n,isLoading:i,refetch:r}
148=lp("Volunteers"),s=[{title:t("common:volunteer.youthRedCross"),subtitle:t("common:volunteer.palangMerahRemaja"),description:t("common:volunteer.pmrDescription"),membersCount:522807,backgroundImage:"/png/volunteers/youth-red-cross.png",icon:"/svg/volunteers/people.svg"},{title:t("common:volunteer.volunteerCorps"),subtitle:t("common:volunteer.korpsSukarela"),description:t("common:volunteer.ksrDescription"),membersCount:522807,backgroundImage:"/png/volunteers/volunter-corps.png",icon:"/svg/volunteers/people.svg"},{title:t("common:volunteer.voluntaryWorkforce"),subtitle:t("common:volunteer.tenagaSukarela"),description:t("common:volunteer.tsrDescription"),membersCount:522807,backgroundImage:"/png/volunteers/workforces.png",icon:"/svg/volunteers/people.svg"},{title:t("common:volunteer.foreignVolunteers"),subtitle:t("common:volunteer.tenagaAsing"),description:t("common:volunteer.foreignVolunteersDescription"),membersCount:522807,backgroundImage:"/png/volunteers/foreign.png",icon:"/svg/volunteers/people.svg"}];return Z.useEffect(()=>{r()},[]),o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-2 items-center justify-center mt-8 py-8 px-4 lg:px-24",children:[o.jsx("h3",{className:"font-bold text-2xl md:text-4xl text-pmi-red text-center",children:t("common:volunteer.title")}),o.jsx("p",{className:"font-light text-lg md:text-xl text-pmi-gray text-center",children:t("common:volunteer.exploreOurVolunteerProgramsAndJoinOurLifesavingMission")}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 justify-items-center gap-8 max-w-screen-xl mx-auto py-8",children:[i&&[1,2].map(a=>o.jsx(Ot,{onlyImage:!0,minHeight:"min-h-72",minWidth:"min-w-72 min-w-80 lg:min-w-96"},a)),!i&&!n&&s.map((a,l)=>o.jsx("a",{href:`/volunteer/${Qx(a.title)}`,className:`${i&&"animate-pulse"}`,children:o.jsx(Lf,{title:a.title,subtitle:a.subtitle,description:a.description,membersCount:a.membersCount,backgroundImage:a.backgroundImage,icon:a.icon})},l)),n&&n.map((a,l)=>o.jsx("a",{href:a.url!=null&&a.url!=""?a.url:`/volunteer/${Qx(a.title)}`,className:`${l===n.length-1&&n.length%2!==0&&"col-span-2 max-w-2xl"}`,children:o.jsx(Lf,{title:e==="en"?a.title:a.title_indo,subtitle:e==="en"?a.subtitle:a.subtitle_indo,description:e==="en"?a.desc:a.desc_indo,membersCount:Number(a.counter||0),backgroundImage:`${ze}/${a.image}`,icon:s[l].icon})},l))]})]})},mv=({title:t,description:e,icon:n})=>o.jsxs("div",{className:"max-w-lg lg:h-68 space-y-2",children:[o.jsx("img",{src:n,alt:t,className:"w-24 hover:scale-110 mx-auto"}),o.jsx("p",{className:"font-medium text-lg text-pmi-gray max-w-72 mx-auto",children:t}),o.jsx("p",{className:"text-pmi-gray font-light text-xs max-w-64 mx-auto",children:e})]}),eM=()=>{const{t}=Se(["common"]),e=[{title:t("common:volunteer.makingADifference"),description:t("common:volunteer.makingADifferenceDescription"),icon:"/svg/volunteers/globe-favorite.svg"},{title:t("common:volunteer.gainingNewSkills"),description:t("common:volunteer.makingADifferenceDescription"),icon:"/svg/volunteers/medical-kit.svg"},{title:t("common:volunteer.beingPartOfACommunity"),description:t("common:volunteer.beingPartOfACommunityDescription"),icon:"/svg/volunteers/gis-user.svg"},{title:t("common:volunteer.personalFulfillmentAndGrowth"),description:t("common:volunteer.personalFulfillmentAndGrowthDescription"),icon:"/svg/volunteers/person-star.svg"}];return o.jsxs("div",{className:"flex flex-col flex-wrap gap-4 items-center justify-center mt-8 py-12 px-4 md:px-20 bg-pmi-gray-light",children:[o.jsx("h3",{className:"font-bold text-2xl md:text-4xl text-pmi-red text-center",children:t("common:volunteer.whyVolunteerWithUs")}),o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 justify-items-center place-items-center text-center gap-6 mt-2 px-4 md:px-0 max-w-screen-xl",children:e.map((n,i)=>o.jsx(mv,{title:n.title,description:n.description,icon:n.icon},i))})]})},WB=({title:t,description:e,subTitle:n,image:i,icon:r})=>o.jsxs("div",{className:"max-w-md lg:max-w-sm rounded overflow-hidden shadow-lg bg-white",children:[o.jsx("img",{className:"w-full max-h-48 object-cover",src:i,alt:t||"offer"}),o.jsx("div",{className:"px-6 py-4",children:o.jsxs("div",{className:"flex ",children:[r&&o.jsx("img",{src:r,alt:t||"offer",className:"w-14 h-14 transition-transform transform hover:scale-110"}),o.jsxs("div",{className:`px-4 ${r?"":"border-l border-x-pmi-dark-gray"}`,children:[o.jsx("p",{className:"font-bold text-lg text-gray-900",children:t}),o.jsx("p",{className:"text-pmi-gray text-sm",children:n})]})]})}),o.jsx("div",{className:"px-6 pt-2 pb-8",children:o.jsx(Et,{customClassName:"text-pmi-gray text-sm max-w-md text-justify",content:e??""})})]}),tM=()=>{const{t}=Se(["common"]),{language:e}=_e(),{data:n,isLoading:i,refetch:r}=XN("Volunteer","3");return Z.useEffect(()=>{r()},[]),o.jsxs("div",{className:"flex flex-col flex-wrap gap-4 items-center justify-center mt-8 py-8 px-4 md:px-20",children:[o.jsx("h3",{className:"font-bold text-2xl md:text-4xl text-pmi-red text-center",children:t("common:volunteer.volunteerStories")}),o.jsx("p",{className:"font-light text-lg md:text-xl text-pmi-gray text-center",children:t("common:volunteer.inspiringJourneysRealStoriesFromOurDedicatedVolunteers")}),o.jsxs("div",{className:"flex flex-col md:flex-row justify-center gap-8 my-4 px-4 md:px-0 max-w-screen-xl",children:[i&&[1,2,3].map(s=>o.jsx(Ot,{onlyImage:!0,minHeight:"min-h-40",minWidth:"min-w-52"},s)),Array.isArray(n)&&n.map((s,a)=>o.jsx("a",{href:`/volunteer/volunteer-stories/${s.slug}`,className:" cursor-pointer",children:o.jsx(WB,{title:e==="en"?s.title:s.title_indo,description:e==="en"?s.subtitle:s.subtitle_indo,subTitle:"",image:`${ze}/${s.image}`},a)}))]})]})},gie=()=>{const{t}=Se(["menu"]),e=[{label:t("menu:volunteer")}];return Z.useEffect(()=>{},[]),o.jsxs(Ye,{type:"default",title:"volunteers",breadcrumbs:e,children:[o.jsx(fie,{}),o.jsx(eM,{}),o.jsx(tM,{})]})},xie=()=>{const{t}=Se(["common"]),{language:e}=_e(),{data:n,isLoading:i,refetch:r}=lp("VolunteerCorps"),s=[{title:"PERTI",subtitle:t("common:volunteer.universityStudentUnitDescription"),backgroundImage:"/png/volunteers/corps/perti.png",url:"https://mis.pmi.or.id/pmi/anggota/register?jenis=5"},{title:"MARKAS",subtitle:t("common:volunteer.pmiHeadquartersUnitDescription"),backgroundImage:"/png/volunteers/corps/markas.png",url:"https://mis.pmi.or.id/pmi/anggota/register?jenis=4"}];return Z.useEffect(()=>{r()},[]),o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center mt-8 py-8 px-4 md:px-20",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center",children:t("common:volunteer.volunteerCorps")}),o.jsx("p",{className:"font-light text-xl text-pmi-gray text-center max-w-screen-lg",children:t("common:volunteer.ksrDescription")}),o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-10 max-w-screen-xl mx-auto py-8",children:[i&&[1,2].map(a=>o.jsx(Ot,{onlyImage:!0,minHeight:"min-h-72",minWidth:"min-w-96"},a)),i&&!n&&s.map((a,l)=>o.jsx("a",{href:a.url,className:i&&"animate-pulse",children:o.jsx(Lf,{title:a.title,subtitle:a.subtitle,backgroundImage:a.backgroundImage},l)})),n&&n.map((a,l)=>o.jsx("a",{href:a.url||"#",children:o.jsx(Lf,{title:e==="en"?a.title:a.title_indo,description:e==="en"?a.subtitle:a.subtitle_indo,backgroundImage:`${ze}/${a.image}`},l)}))]})]})},yie=()=>{const{t}=Se(["menu","common"]),e=[{label:t("menu:volunteer"),path:"/volunteer"},{label:t("common:volunteer.volunteerCorps")}];return Z.useEffect(()=>{},[]),o.jsxs(Ye,{type:"default",title:"volunteers",breadcrumbs:e,children:[o.jsx(xie,{}),o.jsx(eM,{}),o.jsx(tM,{})]})},bie=()=>{const{t}=Se(["common"]);return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-12 px-2 bg-pmi-white",children:[o.jsxs("p",{className:"font-normal text-sm text-pmi-gray text-center py-4 capitalize",children:[o.jsx("span",{className:"font-bold",children:t("common:registerSuccess.needHelp")}),"Â ",t("common:registerSuccess.contactUs")]}),o.jsx("p",{className:"font-medium text-lg text-pmi-gray text-center py-4",children:t("common:registerSuccess.followUs")}),o.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-center gap-x-16",children:[o.jsx("div",{className:"flex flex-col justify-center items-center gap-4",children:o.jsxs("a",{href:"https://www.facebook.com",target:"_blank",rel:"noopener noreferrer","aria-label":"Facebook",className:"group rounded-full bg-pmi-gray-light hover:bg-pmi-red p-4",children:[o.jsx("img",{src:ep,alt:"Facebook",className:"w-16 h-16] transition-transform transform group-hover:hidden"}),o.jsx("img",{src:tp,alt:"Facebook",className:"w-16 h-16 transition-transform transform hidden group-hover:block"})]})}),o.jsx("div",{className:"flex flex-col justify-center items-center gap-4",children:o.jsxs("a",{href:"https://twitter.com",target:"_blank",rel:"noopener noreferrer","aria-label":"X (formerly Twitter)",className:"group rounded-full bg-pmi-gray-light hover:bg-pmi-red p-4",children:[o.jsx("img",{src:np,alt:"Twitter",className:"w-16 h-16 transition-transform transform group-hover:hidden"}),o.jsx("img",{src:ip,alt:"Twitter",className:"w-16 h-16 transition-transform transform hidden group-hover:block"})]})}),o.jsx("div",{className:"flex flex-col justify-center items-center gap-4",children:o.jsxs("a",{href:"https://www.instagram.com",target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram",className:"group rounded-full bg-pmi-gray-light hover:bg-pmi-red p-4",children:[o.jsx("img",{src:rp,alt:"Instagram",className:"w-16 h-16 transition-transform transform group-hover:hidden"}),o.jsx("img",{src:sp,alt:"Instagram",className:"w-16 h-16 transition-transform transform hidden group-hover:block"})]})}),o.jsx("div",{className:"flex flex-col justify-center items-center gap-4",children:o.jsxs("a",{href:"https://www.instagram.com",target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram",className:"group rounded-full bg-pmi-gray-light hover:bg-pmi-red p-4",children:[o.jsx("img",{src:ap,alt:"YouTube",className:"w-16 h-16 transition-transform transform group-hover:hidden"}),o.jsx("img",{src:op,alt:"YouTube",className:"w-16 h-16 transition-transform transform hidden group-hover:block"})]})})]})]})},vie=()=>{const{t}=Se(["common"]);return o.jsxs("div",{className:"flex flex-col flex-wrap gap-2 items-center justify-center mt-8 py-20 my-12 px-2",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center",children:t("common:registerSuccess.thankYou")}),o.jsx("img",{src:"/svg/heart.svg",alt:t("common:registerSuccess.thankYou"),className:"w-60 h-60"}),o.jsx("p",{className:"font-normal text-2xl text-pmi-gray text-center",children:t("common:registerSuccess.registrationSubmitted")}),o.jsx("p",{className:"font-light text-lg text-pmi-gray text-center",children:t("common:registerSuccess.appreciation")})]})},wie=()=>{const{t}=Se(["common"]),e=[{title:t("common:registerSuccess.reviewProcess"),description:t("common:registerSuccess.reviewProcessDetail"),icon:"/svg/volunteers/carbon-review.svg"},{title:t("common:registerSuccess.contact"),description:t("common:registerSuccess.emailConfirmation"),icon:"/svg/volunteers/email-open-heart-outline.svg"},{title:t("common:registerSuccess.orientation"),description:t("common:registerSuccess.orientationDetail"),icon:"/svg/volunteers/group-meeting-call.svg"}];return o.jsxs("div",{className:"flex flex-col flex-wrap gap-4 items-center justify-center mt-8 py-12 bg-pmi-gray-light",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center",children:t("common:registerSuccess.whatsNext")}),o.jsx("div",{className:"flex flex-col md:flex-row justify-center items-center gap-2 mt-12 text-center max-w-6xl",children:e.map((n,i)=>
148o.jsx(mv,{title:n.title,description:n.description,icon:n.icon},i))})]})},kie=()=>{const{t}=Se(["menu"]),e=[{label:t("menu:volunteer"),path:"/volunteer"},{label:t("common:register")}];return Z.useEffect(()=>{},[]),o.jsxs(Ye,{type:"default",title:"volunteers",breadcrumbs:e,children:[o.jsx(vie,{}),o.jsx(wie,{}),o.jsx(bie,{})]})};var Sie=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function qT(){return qT=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},qT.apply(this,arguments)}function Cie(t,e){if(t==null)return{};var n={},i=Object.keys(t),r,s;for(s=0;s<i.length;s++)r=i[s],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}function g0(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function jie(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,KT(t,e)}function KT(t,e){return KT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,r){return i.__proto__=r,i},KT(t,e)}var NS=function(t){jie(e,t);function e(){var i;return i=t.call(this)||this,i.handleExpired=i.handleExpired.bind(g0(i)),i.handleErrored=i.handleErrored.bind(g0(i)),i.handleChange=i.handleChange.bind(g0(i)),i.handleRecaptchaRef=i.handleRecaptchaRef.bind(g0(i)),i}var n=e.prototype;return n.getCaptchaFunction=function(r){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[r]:this.props.grecaptcha[r]:null},n.getValue=function(){var r=this.getCaptchaFunction("getResponse");return r&&this._widgetId!==void 0?r(this._widgetId):null},n.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},n.execute=function(){var r=this.getCaptchaFunction("execute");if(r&&this._widgetId!==void 0)return r(this._widgetId);this._executeRequested=!0},n.executeAsync=function(){var r=this;return new Promise(function(s,a){r.executionResolve=s,r.executionReject=a,r.execute()})},n.reset=function(){var r=this.getCaptchaFunction("reset");r&&this._widgetId!==void 0&&r(this._widgetId)},n.forceReset=function(){var r=this.getCaptchaFunction("reset");r&&r()},n.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},n.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},n.handleChange=function(r){this.props.onChange&&this.props.onChange(r),this.executionResolve&&(this.executionResolve(r),delete this.executionReject,delete this.executionResolve)},n.explicitRender=function(){var r=this.getCaptchaFunction("render");if(r&&this._widgetId===void 0){var s=document.createElement("div");this._widgetId=r(s,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(s)}this._executeRequested&&this.props.grecaptcha&&this._widgetId!==void 0&&(this._executeRequested=!1,this.execute())},n.componentDidMount=function(){this.explicitRender()},n.componentDidUpdate=function(){this.explicitRender()},n.handleRecaptchaRef=function(r){this.captcha=r},n.render=function(){var r=this.props;r.sitekey,r.onChange,r.theme,r.type,r.tabindex,r.onExpired,r.onErrored,r.size,r.stoken,r.grecaptcha,r.badge,r.hl,r.isolated;var s=Cie(r,Sie);return Z.createElement("div",qT({},s,{ref:this.handleRecaptchaRef}))},e}(Z.Component);NS.displayName="ReCAPTCHA";NS.propTypes={sitekey:zt.string.isRequired,onChange:zt.func,grecaptcha:zt.object,theme:zt.oneOf(["dark","light"]),type:zt.oneOf(["image","audio"]),tabindex:zt.number,onExpired:zt.func,onErrored:zt.func,size:zt.oneOf(["compact","normal","invisible"]),stoken:zt.string,hl:zt.string,badge:zt.oneOf(["bottomright","bottomleft","inline"]),isolated:zt.bool};
148NS.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var GB={exports:{}},vn={};/** @license React v16.13.1 149 * react-is.production.min.js 150 * 151 * Copyright (c) Facebook, Inc. and its affiliates. 152 * 153 * This source code is licensed under the MIT license found in the 154 * LICENSE file in the root directory of this source tree. 155 */var $i=typeof Symbol=="function"&&Symbol.for,nM=$i?Symbol.for("react.element"):60103,iM=$i?Symbol.for("react.portal"):60106,MS=$i?Symbol.for("react.fragment"):60107,DS=$i?Symbol.for("react.strict_mode"):60108,_S=$i?Symbol.for("react.profiler"):60114,IS=$i?Symbol.for("react.provider"):60109,RS=$i?Symbol.for("react.context"):60110,rM=$i?Symbol.for("react.async_mode"):60111,OS=$i?Symbol.for("react.concurrent_mode"):60111,LS=$i?Symbol.for("react.forward_ref"):60112,FS=$i?Symbol.for("react.suspense"):60113,Tie=$i?Symbol.for("react.suspense_list"):60120,BS=$i?Symbol.for("react.memo"):60115,$S=$i?Symbol.for("react.lazy"):60116,Pie=$i?Symbol.for("react.block"):60121,Eie=$i?Symbol.for("react.fundamental"):60117,Aie=$i?Symbol.for("react.responder"):60118,Nie=$i?Symbol.for("react.scope"):60119;function qs(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case nM:switch(t=t.type,t){case rM:case OS:case MS:case _S:case DS:case FS:return t;default:switch(t=t&&t.$$typeof,t){case RS:case LS:case $S:case BS:case IS:return t;default:return e}}case iM:return e}}}function qB(t){return qs(t)===OS}vn.AsyncMode=rM;vn.ConcurrentMode=OS;vn.ContextConsumer=RS;vn.ContextProvider=IS;vn.Element=nM;vn.ForwardRef=LS;vn.Fragment=MS;vn.Lazy=$S;vn.Memo=BS;vn.Portal=iM;vn.Profiler=_S;vn.StrictMode=DS;vn.Suspense=FS;vn.isAsyncMode=function(t){return qB(t)||qs(t)===rM};vn.isConcurrentMode=qB;vn.isContextConsumer=function(t){return qs(t)===RS};vn.isContextProvider=function(t){return qs(t)===IS};vn.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===nM};vn.isForwardRef=function(t){return qs(t)===LS};vn.isFragment=function(t){return qs(t)===MS};vn.isLazy=function(t){return qs(t)===$S};vn.isMemo=function(t){return qs(t)===BS};vn.isPortal=function(t){return qs(t)===iM};vn.isProfiler=function(t){return qs(t)===_S};vn.isStrictMode=function(t){return qs(t)===DS};vn.isSuspense=function(t){return qs(t)===FS};vn.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===MS||t===OS||t===_S||t===DS||t===FS||t===Tie||typeof t=="object"&&t!==null&&(t.$$typeof===$S||t.$$typeof===BS||t.$$typeof===IS||t.$$typeof===RS||t.$$typeof===LS||t.$$typeof===Eie||t.$$typeof===Aie||t.$$typeof===Nie||t.$$typeof===Pie)};vn.typeOf=qs;GB.exports=vn;var Mie=GB.exports,sM=Mie,Die={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},_ie={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Iie={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},KB={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},aM={};aM[sM.ForwardRef]=Iie;aM[sM.Memo]=KB;function GR(t){return sM.isMemo(t)?KB:aM[t.$$typeof]||Die}var Rie=Object.defineProperty,Oie=Object.getOwnPropertyNames,qR=Object.getOwnPropertySymbols,Lie=Object.getOwnPropertyDescriptor,Fie=Object.getPrototypeOf,KR=Object.prototype;function YB(t,e,n){if(typeof e!="string"){if(KR){var i=Fie(e);i&&i!==KR&&YB(t,i,n)}var r=Oie(e);qR&&(r=r.concat(qR(e)));for(var s=GR(t),a=GR(e),l=0;l<r.length;++l){var c=r[l];if(!_ie[c]&&!(n&&n[c])&&!(a&&a[c])&&!(s&&s[c])){var d=Lie(e,c);try{Rie(t,c,d)}catch{}}}}return t}var Bie=YB;const $ie=Fr(Bie);function YT(){return YT=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},YT.apply(this,arguments)}function Hie(t,e){if(t==null)return{};var n={},i=Object.keys(t),r,s;for(s=0;s<i.length;s++)r=i[s],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}function zie(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var wa={},Vie=0;function Uie(t,e){return e=e||{},function(i){var r=i.displayName||i.name||"Component",s=function(l){zie(c,l);function c(u,h){var p;return p=l.call(this,u,h)||this,p.state={},p.__scriptURL="",p}var d=c.prototype;return d.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+Vie++),this.__scriptLoaderID},d.setupScriptURL=function(){return this.__scriptURL=typeof t=="function"?t():t,this.__scriptURL},d.asyncScriptLoaderHandleLoad=function(h){var p=this;this.setState(h,function(){return p.props.asyncScriptOnLoad&&p.props.asyncScriptOnLoad(p.state)})},d.asyncScriptLoaderTriggerOnScriptLoaded=function(){var h=wa[this.__scriptURL];if(!h||!h.loaded)throw new Error("Script is not loaded.");for(var p in h.observers)h.observers[p](h);delete window[e.callbackName]},d.componentDidMount=function(){var h=this,p=this.setupScriptURL(),y=this.asyncScriptLoaderGetScriptLoaderID(),m=e,w=m.globalName,k=m.callbackName,b=m.scriptId;if(w&&typeof window[w]<"u"&&(wa[p]={loaded:!0,observers:{}}),wa[p]){var x=wa[p];if(x&&(x.loaded||x.errored)){this.asyncScriptLoaderHandleLoad(x);return}x.observers[y]=function(_){return h.asyncScriptLoaderHandleLoad(_)};return}var v={};v[y]=function(_){return h.asyncScriptLoaderHandleLoad(_)},wa[p]={loaded:!1,observers:v};var E=document.createElement("script");E.src=p,E.async=!0;for(var N in e.attributes)E.setAttribute(N,e.attributes[N]);b&&(E.id=b);var S=function($){if(wa[p]){var V=wa[p],I=V.observers;for(var A in I)$(I[A])&&delete I[A]}};k&&typeof window<"u"&&(window[k]=function(){return h.asyncScriptLoaderTriggerOnScriptLoaded()}),E.onload=function(){var _=wa[p];_&&(_.loaded=!0,S(function($){return k?!1:($(_),!0)}))},E.onerror=function(){var _=wa[p];_&&(_.errored=!0,S(function($){return $(_),!0}))},document.body.appendChild(E)},d.componentWillUnmount=function(){var h=this.__scriptURL;if(e.removeOnUnmount===!0)for(var p=document.getElementsByTagName("script"),y=0;y<p.length;y+=1)p[y].src.indexOf(h)>-1&&p[y].parentNode&&p[y].parentNode.removeChild(p[y]);var m=wa[h];m&&(delete m.observers[this.asyncScriptLoaderGetScriptLoaderID()],e.removeOnUnmount===!0&&delete wa[h])},d.render=function(){var h=e.globalName,p=this.props;p.asyncScriptOnLoad;var y=p.forwardedRef,m=Hie(p,["asyncScriptOnLoad","forwardedRef"]);return h&&typeof window<"u"&&(m[h]=typeof window[h]<"u"?window[h]:void 0),m.ref=y,Z.createElement(i,m)},c}(Z.Component),a=Z.forwardRef(function(l,c){return Z.createElement(s,YT({},l,{forwardedRef:c}))});return a.displayName="AsyncScriptLoader("+r+")",a.propTypes={asyncScriptOnLoad:zt.func},$ie(a,i)}}var XT="onloadcallback",Wie="grecaptcha";function JT(){return typeof window<"u"&&window.recaptchaOptions||{}}function Gie(){var t=JT(),e=t.useRecaptchaNet?"recaptcha.net":"www.google.com";return t.enterprise?"https://"+e+"/recaptcha/enterprise.js?onload="+XT+"&render=explicit":"https://"+e+"/recaptcha/api.js?onload="+XT+"&render=explicit"}const qie=Uie(Gie,{callbackName:XT,globalName:Wie,attributes:JT().nonce?{nonce:JT().nonce}:{}})(NS);var fv=t=>t.type==="checkbox",qp=t=>t instanceof Date,Mr=t=>t==null;const XB=t=>typeof t=="object";var Mi=t=>!Mr(t)&&!Array.isArray(t)&&XB(t)&&!qp(t),Kie=t=>Mi(t)&&t.target?fv(t.target)?t.target.checked:t.target.value:t,Yie=t=>t.substring(0,t.search(/\.\d+(\.|$)/))||t,Xie=(t,e)=>t.has(Yie(e)),Jie=t=>{const e=t.constructor&&t.constructor.prototype;return Mi(e)&&e.hasOwnProperty("isPrototypeOf")},oM=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Js(t){let e;const n=Array.isArray(t);if(t instanceof Date)e=new Date(t);else if(t instanceof Set)e=new Set(t);else if(!(oM&&(t instanceof Blob||t instanceof FileList))&&(n||Mi(t)))if(e=n?[]:{},!n&&!Jie(t))e=t;else for(const i in t)t.hasOwnProperty(i)&&(e[i]=Js(t[i]));else return t;return e}var HS=t=>Array.isArray(t)?t.filter(Boolean):[],ai=t=>t===void 0,at=(t,e,n)=>{if(!e||!Mi(t))return n;const i=HS(e.split(/[,[\].]+?/)).reduce((r,s)=>Mr(r)?r:r[s],t);return ai(i)||i===t?ai(t[e])?n:t[e]:i},Cc=t=>typeof t=="boolean",lM=t=>/^\w*$/.test(t),JB=t=>HS(t.replace(/["|']|\]/g,"").split(/\.|\[/)),Rn=(t,e,n)=>{let i=-1;const r=lM(e)?[e]:JB(e),s=r.length,a=s-1;for(;++i<s;){const l=r[i];let c=n;if(i!==a){const d=t[l];c=Mi(d)||Array.isArray(d)?d:isNaN(+r[i+1])?{}:[]}if(l==="__proto__")return;t[l]=c,t=t[l]}return t};const YR={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ga={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ko={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};Ie.createContext(null);var Qie=(t,e,n,i=!0)=>{const r={defaultValues:e._defaultValues};for(const s in t)Object.defineProperty(r,s,{get:()=>{const a=s;return e._proxyFormState[a]!==Ga.all&&(e._proxyFormState[a]=!i||Ga.all),t[a]}});return r},Yr=t=>Mi(t)&&!Object.keys(t).length,Zie=(t,e,n,i)=>{n(t);const{name:r,...s}=t;return Yr(s)||Object.keys(s).length>=Object.keys(e).length||Object.keys(s).find(a=>e[a]===Ga.all)},cw=t=>Array.isArray(t)?t:[t];function ere(t){const e=Ie.useRef(t);e.current=t,Ie.useEffect(()=>{const n=!t.disabled&&e.current.subject&&e.current.subject.subscribe({next:e.current.next});return()=>{n&&n.unsubscribe()}},[t.disabled])}var Io=t=>typeof t=="string",tre=(t,e,n,i,r)=>Io(t)?(i&&e.watch.add(t),at(n,t,r)):Array.isArray(t)?t.map(s=>(i&&e.watch.add(s),at(n,s))):(i&&(e.watchAll=!0),n),nre=(t,e,n,i,r)=>e?{...n[t],types:{...n[t]&&n[t].types?n[t].types:{},[i]:r||!0}}:{},XR=t=>({isOnSubmit:!t||t===Ga.onSubmit,isOnBlur:t===Ga.onBlur,isOnChange:t===Ga.onChange,isOnAll:t===Ga.all,isOnTouch:t===Ga.onTouched}),JR=(t,e,n)=>!n&&(e.watchAll||e.watch.has(t)||[...e.watch].some(i=>t.startsWith(i)&&/^\.\w+/.test(t.slice(i.length))));const wx=(t,e,n,i)=>{for(const r of n||Object.keys(t)){const s=at(t,r);
vendor: 17,092 bytes, line 155
155if(s){const{_f:a,...l}=s;if(a){if(a.refs&&a.refs[0]&&e(a.refs[0],r)&&!i)break;if(a.ref&&e(a.ref,a.name)&&!i)break;wx(l,e)}else Mi(l)&&wx(l,e)}}};var ire=(t,e,n)=>{const i=cw(at(t,n));return Rn(i,"root",e[n]),Rn(t,n,i),t},cM=t=>t.type==="file",ld=t=>typeof t=="function",qk=t=>{if(!oM)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)},dw=t=>Io(t),dM=t=>t.type==="radio",Kk=t=>t instanceof RegExp;const QR={value:!1,isValid:!1},ZR={value:!0,isValid:!0};var QB=t=>{if(Array.isArray(t)){if(t.length>1){const e=t.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:e,isValid:!!e.length}}return t[0].checked&&!t[0].disabled?t[0].attributes&&!ai(t[0].attributes.value)?ai(t[0].value)||t[0].value===""?ZR:{value:t[0].value,isValid:!0}:ZR:QR}return QR};const eO={isValid:!1,value:null};var ZB=t=>Array.isArray(t)?t.reduce((e,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:e,eO):eO;function tO(t,e,n="validate"){if(dw(t)||Array.isArray(t)&&t.every(dw)||Cc(t)&&!t)return{type:n,message:dw(t)?t:"",ref:e}}var Sp=t=>Mi(t)&&!Kk(t)?t:{value:t,message:""},nO=async(t,e,n,i,r)=>{const{ref:s,refs:a,required:l,maxLength:c,minLength:d,min:u,max:h,pattern:p,validate:y,name:m,valueAsNumber:w,mount:k,disabled:b}=t._f,x=at(e,m);if(!k||b)return{};const v=a?a[0]:s,E=L=>{i&&v.reportValidity&&(v.setCustomValidity(Cc(L)?"":L||""),v.reportValidity())},N={},S=dM(s),_=fv(s),$=S||_,V=(w||cM(s))&&ai(s.value)&&ai(x)||qk(s)&&s.value===""||x===""||Array.isArray(x)&&!x.length,I=nre.bind(null,m,n,N),A=(L,T,g,f=Ko.maxLength,j=Ko.minLength)=>{const P=L?T:g;N[m]={type:L?f:j,message:P,ref:s,...I(L?f:j,P)}};if(r?!Array.isArray(x)||!x.length:l&&(!$&&(V||Mr(x))||Cc(x)&&!x||_&&!QB(a).isValid||S&&!ZB(a).isValid)){const{value:L,message:T}=dw(l)?{value:!!l,message:l}:Sp(l);if(L&&(N[m]={type:Ko.required,message:T,ref:v,...I(Ko.required,T)},!n))return E(T),N}if(!V&&(!Mr(u)||!Mr(h))){let L,T;const g=Sp(h),f=Sp(u);if(!Mr(x)&&!isNaN(x)){const j=s.valueAsNumber||x&&+x;Mr(g.value)||(L=j>g.value),Mr(f.value)||(T=j<f.value)}else{const j=s.valueAsDate||new Date(x),P=M=>new Date(new Date().toDateString()+" "+M),C=s.type=="time",D=s.type=="week";Io(g.value)&&x&&(L=C?P(x)>P(g.value):D?x>g.value:j>new Date(g.value)),Io(f.value)&&x&&(T=C?P(x)<P(f.value):D?x<f.value:j<new Date(f.value))}if((L||T)&&(A(!!L,g.message,f.message,Ko.max,Ko.min),!n))return E(N[m].message),N}if((c||d)&&!V&&(Io(x)||r&&Array.isArray(x))){const L=Sp(c),T=Sp(d),g=!Mr(L.value)&&x.length>+L.value,f=!Mr(T.value)&&x.length<+T.value;if((g||f)&&(A(g,L.message,T.message),!n))return E(N[m].message),N}if(p&&!V&&Io(x)){const{value:L,message:T}=Sp(p);if(Kk(L)&&!x.match(L)&&(N[m]={type:Ko.pattern,message:T,ref:s,...I(Ko.pattern,T)},!n))return E(T),N}if(y){if(ld(y)){const L=await y(x,e),T=tO(L,v);if(T&&(N[m]={...T,...I(Ko.validate,T.message)},!n))return E(T.message),N}else if(Mi(y)){let L={};for(const T in y){if(!Yr(L)&&!n)break;const g=tO(await y[T](x,e),v,T);g&&(L={...g,...I(T,g.message)},E(g.message),n&&(N[m]=L))}if(!Yr(L)&&(N[m]={ref:v,...L},!n))return N}}return E(!0),N};function rre(t,e){const n=e.slice(0,-1).length;let i=0;for(;i<n;)t=ai(t)?i++:t[e[i++]];return t}function sre(t){for(const e in t)if(t.hasOwnProperty(e)&&!ai(t[e]))return!1;return!0}function vi(t,e){const n=Array.isArray(e)?e:lM(e)?[e]:JB(e),i=n.length===1?t:rre(t,n),r=n.length-1,s=n[r];return i&&delete i[s],r!==0&&(Mi(i)&&Yr(i)||Array.isArray(i)&&sre(i))&&vi(t,n.slice(0,-1)),t}var k2=()=>{let t=[];return{get observers(){return t},next:r=>{for(const s of t)s.next&&s.next(r)},subscribe:r=>(t.push(r),{unsubscribe:()=>{t=t.filter(s=>s!==r)}}),unsubscribe:()=>{t=[]}}},Yk=t=>Mr(t)||!XB(t);function hu(t,e){if(Yk(t)||Yk(e))return t===e;if(qp(t)&&qp(e))return t.getTime()===e.getTime();const n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(const r of n){const s=t[r];if(!i.includes(r))return!1;if(r!=="ref"){const a=e[r];if(qp(s)&&qp(a)||Mi(s)&&Mi(a)||Array.isArray(s)&&Array.isArray(a)?!hu(s,a):s!==a)return!1}}return!0}var e$=t=>t.type==="select-multiple",are=t=>dM(t)||fv(t),S2=t=>qk(t)&&t.isConnected,t$=t=>{for(const e in t)if(ld(t[e]))return!0;return!1};function Xk(t,e={}){const n=Array.isArray(t);if(Mi(t)||n)for(const i in t)Array.isArray(t[i])||Mi(t[i])&&!t$(t[i])?(e[i]=Array.isArray(t[i])?[]:{},Xk(t[i],e[i])):Mr(t[i])||(e[i]=!0);return e}function n$(t,e,n){const i=Array.isArray(t);if(Mi(t)||i)for(const r in t)Array.isArray(t[r])||Mi(t[r])&&!t$(t[r])?ai(e)||Yk(n[r])?n[r]=Array.isArray(t[r])?Xk(t[r],[]):{...Xk(t[r])}:n$(t[r],Mr(e)?{}:e[r],n[r]):n[r]=!hu(t[r],e[r]);return n}var x0=(t,e)=>n$(t,e,Xk(e)),i$=(t,{valueAsNumber:e,valueAsDate:n,setValueAs:i})=>ai(t)?t:e?t===""?NaN:t&&+t:n&&Io(t)?new Date(t):i?i(t):t;function C2(t){const e=t.ref;if(!(t.refs?t.refs.every(n=>n.disabled):e.disabled))return cM(e)?e.files:dM(e)?ZB(t.refs).value:e$(e)?[...e.selectedOptions].map(({value:n})=>n):fv(e)?QB(t.refs).value:i$(ai(e.value)?t.ref.value:e.value,t)}var ore=(t,e,n,i)=>{const r={};for(const s of t){const a=at(e,s);a&&Rn(r,s,a._f)}return{criteriaMode:n,names:[...t],fields:r,shouldUseNativeValidation:i}},kg=t=>ai(t)?t:Kk(t)?t.source:Mi(t)?Kk(t.value)?t.value.source:t.value:t,lre=t=>t.mount&&(t.required||t.min||t.max||t.maxLength||t.minLength||t.pattern||t.validate);function iO(t,e,n){const i=at(t,n);if(i||lM(n))return{error:i,name:n};const r=n.split(".");for(;r.length;){const s=r.join("."),a=at(e,s),l=at(t,s);if(a&&!Array.isArray(a)&&n!==s)return{name:n};if(l&&l.type)return{name:s,error:l};r.pop()}return{name:n}}var cre=(t,e,n,i,r)=>r.isOnAll?!1:!n&&r.isOnTouch?!(e||t):(n?i.isOnBlur:r.isOnBlur)?!t:(n?i.isOnChange:r.isOnChange)?t:!0,dre=(t,e)=>!HS(at(t,e)).length&&vi(t,e);const ure={mode:Ga.onSubmit,reValidateMode:Ga.onChange,shouldFocusError:!0};function hre(t={}){let e={...ure,...t},n={submitCount:0,isDirty:!1,isLoading:ld(e.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1},i={},r=Mi(e.defaultValues)||Mi(e.values)?Js(e.defaultValues||e.values)||{}:{},s=e.shouldUnregister?{}:Js(r),a={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,d=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:k2(),array:k2(),state:k2()},p=XR(e.mode),y=XR(e.reValidateMode),m=e.criteriaMode===Ga.all,w=ee=>se=>{clearTimeout(d),d=setTimeout(ee,se)},k=async ee=>{if(u.isValid||ee){const se=e.resolver?Yr((await $()).errors):await I(i,!0);se!==n.isValid&&h.state.next({isValid:se})}},b=(ee,se)=>{(u.isValidating||u.validatingFields)&&((ee||Array.from(l.mount)).forEach(oe=>{oe&&(se?Rn(n.validatingFields,oe,se):vi(n.validatingFields,oe))}),h.state.next({validatingFields:n.validatingFields,isValidating:!Yr(n.validatingFields)}))},x=(ee,se=[],oe,he,pe=!0,ne=!0)=>{if(he&&oe){if(a.action=!0,ne&&Array.isArray(at(i,ee))){const te=oe(at(i,ee),he.argA,he.argB);pe&&Rn(i,ee,te)}if(ne&&Array.isArray(at(n.errors,ee))){const te=oe(at(n.errors,ee),he.argA,he.argB);pe&&Rn(n.errors,ee,te),dre(n.errors,ee)}if(u.touchedFields&&ne&&Array.isArray(at(n.touchedFields,ee))){const te=oe(at(n.touchedFields,ee),he.argA,he.argB);pe&&Rn(n.touchedFields,ee,te)}u.dirtyFields&&(n.dirtyFields=x0(r,s)),h.state.next({name:ee,isDirty:L(ee,se),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Rn(s,ee,se)},v=(ee,se)=>{Rn(n.errors,ee,se),h.state.next({errors:n.errors})},E=ee=>{n.errors=ee,h.state.next({errors:n.errors,isValid:!1})},N=(ee,se,oe,he)=>{const pe=at(i,ee);if(pe){const ne=at(s,ee,ai(oe)?at(r,ee):oe);ai(ne)||he&&he.defaultChecked||se?Rn(s,ee,se?ne:C2(pe._f)):f(ee,ne),a.mount&&k()}},S=(ee,se,oe,he,pe)=>{let ne=!1,te=!1;const ae={name:ee},le=!!(at(i,ee)&&at(i,ee)._f&&at(i,ee)._f.disabled);if(!oe||he){u.isDirty&&(te=n.isDirty,n.isDirty=ae.isDirty=L(),ne=te!==ae.isDirty);const de=le||hu(at(r,ee),se);te=!!(!le&&at(n.dirtyFields,ee)),de||le?vi(n.dirtyFields,ee):Rn(n.dirtyFields,ee,!0),ae.dirtyFields=n.dirtyFields,ne=ne||u.dirtyFields&&te!==!de}if(oe){const de=at(n.touchedFields,ee);de||(Rn(n.touchedFields,ee,oe),ae.touchedFields=n.touchedFields,ne=ne||u.touchedFields&&de!==oe)}return ne&&pe&&h.state.next(ae),ne?ae:{}},_=(ee,se,oe,he)=>{const pe=at(n.errors,ee),ne=u.isValid&&Cc(se)&&n.isValid!==se;if(t.delayError&&oe?(c=w(()=>v(ee,oe)),c(t.delayError)):(clearTimeout(d),c=null,oe?Rn(n.errors,ee,oe):vi(n.errors,ee)),(oe?!hu(pe,oe):pe)||!Yr(he)||ne){const te={...he,...ne&&Cc(se)?{isValid:se}:{},errors:n.errors,name:ee};n={...n,...te},h.state.next(te)}},$=async ee=>{b(ee,!0);const se=await e.resolver(s,e.context,ore(ee||l.mount,i,e.criteriaMode,e.shouldUseNativeValidation));return b(ee),se},V=async ee=>{const{errors:se}=await $(ee);if(ee)for(const oe of ee){const he=at(se,oe);he?Rn(n.errors,oe,he):vi(n.errors,oe)}else n.errors=se;return se},I=async(ee,se,oe={valid:!0})=>{for(const he in ee){const pe=ee[he];if(pe){const{_f:ne,...te}=pe;if(ne){const ae=l.array.has(ne.name);b([he],!0);const le=await nO(pe,s,m,e.shouldUseNativeValidation&&!se,ae);if(b([he]),le[ne.name]&&(oe.valid=!1,se))break;!se&&(at(le,ne.name)?ae?ire(n.errors,le,ne.name):Rn(n.errors,ne.name,le[ne.name]):vi(n.errors,ne.name))}!Yr(te)&&await I(te,se,oe)}}return oe.valid},A=()=>{for(const ee of l.unMount){const se=at(i,ee);se&&(se._f.refs?se._f.refs.every(oe=>!S2(oe)):!S2(se._f.ref))&&Q(ee)}l.unMount=new Set},L=(ee,se)=>(ee&&se&&Rn(s,ee,se),!hu(z(),r)),T=(ee,se,oe)=>tre(ee,l,{...a.mount?s:ai(se)?r:Io(ee)?{[ee]:se}:se},oe,se),g=ee=>HS(at(a.mount?s:r,ee,t.shouldUnregister?at(r,ee,[]):[])),f=(ee,se,oe={})=>{const he=at(i,ee);let pe=se;if(he){const ne=he._f;ne&&(!ne.disabled&&Rn(s,ee,i$(se,ne)),pe=qk(ne.ref)&&Mr(se)?"":se,e$(ne.ref)?[...ne.ref.options].forEach(te=>te.selected=pe.includes(te.value)):ne.refs?fv(ne.ref)?ne.refs.length>1?ne.refs.forEach(te=>(!te.defaultChecked||!te.disabled)&&(te.checked=Array.isArray(pe)?!!pe.find(ae=>ae===te.value):pe===te.value)):ne.refs[0]&&(ne.refs[0].checked=!!pe):ne.refs.forEach(te=>te.checked=te.value===pe):cM(ne.ref)?ne.ref.value="":(ne.ref.value=pe,ne.ref.type||h.values.next({name:ee,values:{...s}})))}(oe.shouldDirty||oe.shouldTouch)&&S(ee,pe,oe.shouldTouch,oe.shouldDirty,!0),oe.shouldValidate&&M(ee)},j=(ee,se,oe)=>{for(const he in se){const pe=se[he],ne=`${ee}.${he}`,te=at(i,ne);(l.array.has(ee)||!Yk(pe)||te&&!te._f)&&!qp(pe)?j(ne,pe,oe):f(ne,pe,oe)}},P=(ee,se,oe={})=>{const he=at(i,ee),pe=l.array.has(ee),ne=Js(se);Rn(s,ee,ne),pe?(h.array.next({name:ee,values:{...s}}),(u.isDirty||u.dirtyFields)&&oe.shouldDirty&&h.state.next({name:ee,dirtyFields:x0(r,s),isDirty:L(ee,ne)})):he&&!he._f&&!Mr(ne)?j(ee,ne,oe):f(ee,ne,oe),JR(ee,l)&&h.state.next({...n}),h.values.next({name:a.mount?ee:void 0,values:{...s}})},C=async ee=>{a.mount=!0;const se=ee.target;let oe=se.name,he=!0;const pe=at(i,oe),ne=()=>se.type?C2(pe._f):Kie(ee),te=ae=>{he=Number.isNaN(ae)||ae===at(s,oe,ae)};if(pe){let ae,le;const de=ne(),ue=ee.type===YR.BLUR||ee.type===YR.FOCUS_OUT,me=!lre(pe._f)&&!e.resolver&&!at(n.errors,oe)&&!pe._f.deps||cre(ue,at(n.touchedFields,oe),n.isSubmitted,y,p),ge=JR(oe,l,ue);Rn(s,oe,de),ue?(pe._f.onBlur&&pe._f.onBlur(ee),c&&c(0)):pe._f.onChange&&pe._f.onChange(ee);const be=S(oe,de,ue,!1),ve=!Yr(be)||ge;if(!ue&&h.values.next({name:oe,type:ee.type,values:{...s}}),me)return u.isValid&&k(),ve&&h.state.next({name:oe,...ge?{}:be});if(!ue&&ge&&h.state.next({...n}),e.resolver){const{errors:we}=await $([oe]);if(te(de),he){const Ce=iO(n.errors,i,oe),Pe=iO(we,i,Ce.name||oe);ae=Pe.error,oe=Pe.name,le=Yr(we)}}else b([oe],!0),ae=(await nO(pe,s,m,e.shouldUseNativeValidation))[oe],b([oe]),te(de),he&&(ae?le=!1:u.isValid&&(le=await I(i,!0)));he&&(pe._f.deps&&M(pe._f.deps),_(oe,le,ae,be))}},D=(ee,se)=>{if(at(n.errors,se)&&ee.focus)return ee.focus(),1},M=async(ee,se={})=>{let oe,he;const pe=cw(ee);if(e.resolver){const ne=await V(ai(ee)?ee:pe);oe=Yr(ne),he=ee?!pe.some(te=>at(ne,te)):oe}else ee?(he=(await Promise.all(pe.map(async ne=>{const te=at(i,ne);return await I(te&&te._f?{[ne]:te}:te)}))).every(Boolean),!(!he&&!n.isValid)&&k()):he=oe=await I(i);return h.state.next({...!Io(ee)||u.isValid&&oe!==n.isValid?{}:{name:ee},...e.resolver||!ee?{isValid:oe}:{},errors:n.errors}),se.shouldFocus&&!he&&wx(i,D,ee?pe:l.mount),he},z=ee=>{const se={...a.mount?s:r};return ai(ee)?se:Io(ee)?at(se,ee):ee.map(oe=>at(se,oe))},J=(ee,se)=>({invalid:!!at((se||n).errors,ee),isDirty:!!at((se||n).dirtyFields,ee),error:at((se||n).errors,ee),isValidating:!!at(n.validatingFields,ee),isTouched:!!at((se||n).touchedFields,ee)}),F=ee=>{ee&&cw(ee).forEach(se=>vi(n.errors,se)),h.state.next({errors:ee?n.errors:{}})},q=(ee,se,oe)=>{const he=(at(i,ee,{_f:{}})._f||{}).ref,pe=at(n.errors,ee)||{},{ref:ne,message:te,type:ae,...le}=pe;Rn(n.errors,ee,{...le,...se,ref:he}),h.state.next({name:ee,errors:n.errors,isValid:!1}),oe&&oe.shouldFocus&&he&&he.focus&&he.focus()},U=(ee,se)=>ld(ee)?h.values.subscribe({next:oe=>ee(T(void 0,se),oe)}):T(ee,se,!0),Q=(ee,se={})=>{for(const oe of ee?cw(ee):l.mount)l.mount.delete(oe),l.array.delete(oe),se.keepValue||(vi(i,oe),vi(s,oe)),!se.keepError&&vi(n.errors,oe),!se.keepDirty&&vi(n.dirtyFields,oe),!se.keepTouched&&vi(n.touchedFields,oe),!se.keepIsValidating&&vi(n.validatingFields,oe),!e.shouldUnregister&&!se.keepDefaultValue&&vi(r,oe);h.values.next({values:{...s}}),h.state.next({...n,...se.keepDirty?{isDirty:L()}:{}}),!se.keepIsValid&&k()},ce=({disabled:ee,name:se,field:oe,fields:he,value:pe})=>{if(Cc(ee)&&a.mount||ee){const ne=ee?void 0:ai(pe)?C2(oe?oe._f:at(he,se)._f):pe;Rn(s,se,ne),S(se,ne,!1,!1,!0)}},H=(ee,se={})=>{let oe=at(i,ee);const he=Cc(se.disabled);return Rn(i,ee,{...oe||{},_f:{...oe&&oe._f?oe._f:{ref:{name:ee}},name:ee,mount:!0,...se}}),l.mount.add(ee),oe?ce({field:oe,disabled:se.disabled,name:ee,value:se.value}):N(ee,!0,se.value),{...he?{disabled:se.disabled}:{},...e.progressive?{required:!!se.required,min:kg(se.min),max:kg(se.max),minLength:kg(se.minLength),maxLength:kg(se.maxLength),pattern:kg(se.pattern)}:{},name:ee,onChange:C,onBlur:C,ref:pe=>{if(pe){H(ee,se),oe=at(i,ee);const ne=ai(pe.value)&&pe.querySelectorAll&&pe.querySelectorAll("input,select,textarea")[0]||pe,te=are(ne),ae=oe._f.refs||[];if(te?ae.find(le=>le===ne):ne===oe._f.ref)return;Rn(i,ee,{_f:{...oe._f,...te?{refs:[...ae.filter(S2),ne,...Array.isArray(at(r,ee))?[{}]:[]],ref:{type:ne.type,name:ee}}:{ref:ne}}}),N(ee,!1,void 0,ne)}else oe=at(i,ee,{}),oe._f&&(oe._f.mount=!1),(e.shouldUnregister||se.shouldUnregister)&&!(Xie(l.array,ee)&&a.action)&&l.unMount.add(ee)}}},B=()=>e.shouldFocusError&&wx(i,D,l.mount),K=ee=>{Cc(ee)&&(h.state.next({disabled:ee}),wx(i,(se,oe)=>{const he=at(i,oe);he&&(se.disabled=he._f.disabled||ee,Array.isArray(he._f.refs)&&he._f.refs.forEach(pe=>{pe.disabled=he._f.disabled||ee}))},0,!1))},ie=(ee,se)=>async oe=>{let he;oe&&(oe.preventDefault&&oe.preventDefault(),oe.persist&&oe.persist());let pe=Js(s);if(h.state.next({isSubmitting:!0}),e.resolver){const{errors:ne,values:te}=await $();n.errors=ne,pe=te}else await I(i);if(vi(n.errors,"root"),Yr(n.errors)){h.state.next({errors:{}});try{await ee(pe,oe)}catch(ne){he=ne}}else se&&await se({...n.errors},oe),B(),setTimeout(B);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Yr(n.errors)&&!he,submitCount:n.submitCount+1,errors:n.errors}),he)throw he},R=(ee,se={})=>{at(i,ee)&&(ai(se.defaultValue)?P(ee,Js(at(r,ee))):(P(ee,se.defaultValue),Rn(r,ee,Js(se.defaultValue))),se.keepTouched||vi(n.touchedFields,ee),se.keepDirty||(vi(n.dirtyFields,ee),n.isDirty=se.defaultValue?L(ee,Js(at(r,ee))):L()),se.keepError||(vi(n.errors,ee),u.isValid&&k()),h.state.next({...n}))},G=(ee,se={})=>{const oe=ee?Js(ee):r,he=Js(oe),pe=Yr(ee),ne=pe?r:he;if(se.keepDefaultValues||(r=oe),!se.keepValues){if(se.keepDirtyValues)for(const te of l.mount)at(n.dirtyFields,te)?Rn(ne,te,at(s,te)):P(te,at(ne,te));else{if(oM&&ai(ee))for(const te of l.mount){const ae=at(i,te);if(ae&&ae._f){const le=Array.isArray(ae._f.refs)?ae._f.refs[0]:ae._f.ref;if(qk(le)){const de=le.closest("form");if(de){de.reset();break}}}}i={}}s=t.shouldUnregister?se.keepDefaultValues?Js(r):{}:Js(ne),h.array.next({values:{...ne}}),h.values.next({values:{...ne}})}l={mount:se.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!u.isValid||!!se.keepIsValid||!!se.keepDirtyValues,a.watch=!!t.shouldUnregister,h.state.next({submitCount:se.keepSubmitCount?n.submitCount:0,isDirty:pe?!1:se.keepDirty?n.isDirty:!!(se.keepDefaultValues&&!hu(ee,r)),isSubmitted:se.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:pe?{}:se.keepDirtyValues?se.keepDefaultValues&&s?x0(r,s):n.dirtyFields:se.keepDefaultValues&&ee?x0(r,ee):se.keepDirty?n.dirtyFields:{},touchedFields:se.keepTouched?n.touchedFields:{},errors:se.keepErrors?n.errors:{},isSubmitSuccessful:se.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},W=(ee,se)=>G(ld(ee)?ee(s):ee,se);return{control:{register:H,unregister:Q,getFieldState:J,handleSubmit:ie,setError:q,_executeSchema:$,_getWatch:T,_getDirty:L,_updateV
155alid:k,_removeUnmounted:A,_updateFieldArray:x,_updateDisabledField:ce,_getFieldArray:g,_reset:G,_resetDefaultValues:()=>ld(e.defaultValues)&&e.defaultValues().then(ee=>{W(ee,e.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:ee=>{n={...n,...ee}},_disableForm:K,_subjects:h,_proxyFormState:u,_setErrors:E,get _fields(){return i},get _formValues(){return s},get _state(){return a},set _state(ee){a=ee},get _defaultValues(){return r},get _names(){return l},set _names(ee){l=ee},get _formState(){return n},set _formState(ee){n=ee},get _options(){return e},set _options(ee){e={...e,...ee}}},trigger:M,register:H,handleSubmit:ie,watch:U,setValue:P,getValues:z,reset:W,resetField:R,clearErrors:F,unregister:Q,setError:q,setFocus:(ee,se={})=>{const oe=at(i,ee),he=oe&&oe._f;if(he){const pe=he.refs?he.refs[0]:he.ref;pe.focus&&(pe.focus(),se.shouldSelect&&pe.select())}},getFieldState:J}}function Ks(t={}){const e=Ie.useRef(),n=Ie.useRef(),[i,r]=Ie.useState({isDirty:!1,isValidating:!1,isLoading:ld(t.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1,defaultValues:ld(t.defaultValues)?void 0:t.defaultValues});e.current||(e.current={...hre(t),formState:i});const s=e.current.control;return s._options=t,ere({subject:s._subjects.state,next:a=>{Zie(a,s._proxyFormState,s._updateFormState)&&r({...s._formState})}}),Ie.useEffect(()=>s._disableForm(t.disabled),[s,t.disabled]),Ie.useEffect(()=>{if(s._proxyFormState.isDirty){const a=s._getDirty();a!==i.isDirty&&s._subjects.state.next({isDirty:a})}},[s,i.isDirty]),Ie.useEffect(()=>{t.values&&!hu(t.values,n.current)?(s._reset(t.values,s._options.resetOptions),n.current=t.values,r(a=>({...a}))):s._resetDefaultValues()},[t.values,s]),Ie.useEffect(()=>{t.errors&&s._setErrors(t.errors)},[t.errors,s]),Ie.useEffect(()=>{s._state.mount||(s._updateValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),Ie.useEffect(()=>{t.shouldUnregister&&s._subjects.values.next({values:s._getWatch()})},[t.shouldUnregister,s]),e.current.formState=Qie(i,s),e.current}const pre=()=>{const{t}=Se(),{register:e,handleSubmit:n,watch:i,setValue:r,formState:{errors:s}}=Ks({defaultValues:{currentAddressSame:!1}}),[a,l]=Z.useState(null),c=p=>{var m;const y=(m=p.target.files)==null?void 0:m[0];y&&(l(y.name),r("photo",p.target.files,{shouldValidate:!0}))},d=p=>{r("recaptcha",p)},u=p=>{console.log(p)},h=i("currentAddressSame");return o.jsxs("form",{onSubmit:n(u),className:"w-full max-w-6xl space-y-12 px-8 py-12",children:[o.jsxs("section",{children:[o.jsx("h2",{className:"text-xl font-medium mb-4",children:t("common:registerVolunteer.profile")}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-6 gap-6",children:[o.jsx("div",{className:"col-span-3",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("label",{className:"block font-normal text-pmi-black text-lg",children:t("common:registerVolunteer.name")}),o.jsx("input",{...e("fullName",{required:!0}),placeholder:t("common:registerVolunteer.enterYourFullName"),className:"w-full py-3 px-4 border border-pmi-gray-lighter rounded mt-1 text-sm focus:outline-none focus:ring-pmi-red focus:border-pmi-red"}),s.fullName&&o.jsx("p",{className:"text-pmi-red mt-1",children:t("common:registerVolunteer.requiredField")})]})}),o.jsx("div",{className:"col-span-3",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("label",{className:"block font-normal text-pmi-black text-lg",children:t("common:registerVolunteer.nik")}),o.jsx("input",{...e("idNumber",{required:!0}),placeholder:t("common:registerVolunteer.enterYourIdNumber"),className:"w-full py-3 px-4 border border-pmi-gray-lighter rounded mt-1 text-sm focus:outline-none focus:ring-pmi-red focus:border-pmi-red"}),s.idNumber&&o.jsx("p",{className:"text-pmi-red mt-1",children:t("common:registerVolunteer.requiredField")})]})}),o.jsx("div",{className:"col-span-2",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("label",{className:"block font-normal text-pmi-black text-lg",children:t("common:registerVolunteer.birthPlace")}),o.jsx("input",{...e("birthPlace",{required:!0}),placeholder:t("common:registerVolunteer.enterYourBirthPlace"),className:"w-full py-3 px-4 border border-pmi-gray-lighter rounded mt-1 text-sm focus:outline-none focus:ring-pmi-red focus:border-pmi-red"}),s.birthPlace&&o.jsx("p",{className:"text-pmi-red mt-1",children:t("common:registerVolunteer.requiredField")})]})}),o.jsx("div",{className:"col-span-2",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("label",{className:"block font-normal text-pmi-black text-lg",children:t("common:registerVolunteer.birthDate")}),o.jsx("input",{type:"date",...e("birthDate",{required:!0}),className:"w-full py-3 px-4 border border-pmi-gray-lighter rounded mt-1 text-sm focus:outline-none focus:ring-pmi-red focus:border-pmi-red"}),s.birthDate&&o.jsx("p",{className:"text-pmi-red mt-1",children:t("common:registerVolunteer.requiredField")})]})}),o.jsx("div",{className:"col-span-2",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("label",{className:"block font-normal text-pmi-black text-lg",children:t("common:registerVolunteer.gender")}),o.jsxs("select",{...e("gender",{required:!0}),className:"w-full py-3 px-4 border border-pmi-gray-lighter rounded mt-1 text-sm focus:outline-none focus:ring-pmi-red focus:border-pmi-red",children:[o.jsx("option",{value:"",children:t("common:registerVolunteer.selectYourGender")}),o.jsx("option",{value:"male",children:t("common:registerVolunteer.male")}),o.jsx("option",{value:"female",children:t("common:registerVolunteer.female")})]}),s.gender&&o.jsx("p",{className:"text-pmi-red mt-1",children:t("common:registerVolunteer.requiredField")})]})}),o.jsx("div",{className:"col-span-3",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("label",{className:"block font-normal text-pmi-black text-lg",children:t("common:registerVolunteer.religion")}),o.jsxs("select",{...e("religion",{required:!0}),className:"w-full py-3 px-4 border border-pmi-gray-lighter rounded mt-1 text-sm focus:outline-none focus:ring-pmi-red focus:border-pmi-red",children:[o.jsx("option",{value:"",children:t("common:registerVolunteer.selectYourReligion")}),o.jsx("option",{value:"islam",children:t("common:registerVolunteer.islam")}),o.jsx("option",{value:"christianity",children:t("common:registerVolunteer.christianity")}),o.jsx("option",{value:"hinduism",children:t("common:registerVolunteer.hinduism")}),o.jsx("option",{value:"buddhism",children:t("common:registerVolunteer.buddhism")}),o.jsx("option",{value:"other",children:t("common:registerVolunteer.other")})]}),s.religion&&o.jsx("p",{className:"text-pmi-red mt-1",children:t("common:registerVolunteer.requiredField")})]})}),o.jsx("div",{className:"col-span-3",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("label",{className:"block font-normal text-pmi-black text-lg",children:t("common:registerVolunteer.bloodType")}),o.jsxs("select",{...e("bloodType",{required:!0}),className:"w-full py-3 px-4 border border-pmi-gray-lighter rounded mt-1 text-sm focus:outline-none focus:ring-pmi-red focus:border-pmi-red",children:[o.jsx("option",{value:"",children:t("common:registerVolunteer.selectYourBloodType")}),o.jsx("option",{value:"a",children:t("common:registerVolunteer.a")}),o.jsx("option",{value:"b",children:t("common:registerVolunteer.b")}),o.jsx("option",{value:"ab",children:t("common:registerVolunteer.ab")}),o.jsx("option",{value:"o",children:t("common:registerVolunteer.o")})]}),s.bloodType&&o.jsx("p",{className:"text-pmi-red mt-1",children:t("common:registerVolunteer.requiredField")})]})}),o.jsx("div",{className:"col-span-3",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("label",{className:"block font-normal text-pmi-black text-lg",children:t("common:registerVolunteer.email")}),o.jsx("input",{type:"email",...e("email",{required:!0}),placeholder:t("common:registerVolunteer.enterYourEmail"),className:"w-full py-3 px-4 border border-pmi-gray-lighter rounded mt-1 text-sm focus:outline-none focus:ring-pmi-red focus:border-pmi-red"}),s.email&&o.jsx("p",{className:"text-pmi-red mt-1",children:t("common:registerVolunteer.requiredField")})]})}),o.jsx("div",{className:"col-span-3",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("label",{className:"block font-normal text-pmi-black text-lg",children:t("common:registerVolunteer.phoneNumber")}),o.jsxs("div",{className:"flex mt-1",children:[o.jsx("span",{className:"p-4 border bg-pmi-gray-light border-pmi-gray-lighter rounded-l",children:"+62"}),o.jsx("input",{type:"text",...e("phoneNumber",{required:!0}),placeholder:t("common:registerVolunteer.enterYourPhoneNumber"),className:"w-full py-3 px-4 border border-pmi-gray-lighter rounded-r"})]}),s.phoneNumber&&o.jsx("p",{className:"text-pmi-red mt-1",children:t("common:registerVolunteer.requiredField")})]})})]})]}),o.jsxs("section",{children:[o.jsx("h2",{className:"text-xl font-medium mb-4",children:t("common:registerVolunteer.addressAsStatedInIdCard")}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-6 gap-6",children:[o.jsx("div",{className:"col-span-3",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("label",{className:"block font-normal text-pmi-black text-lg",children:t("common:registerVolunteer.province")}),o.jsx("select",{...e("province",{required:!0}),className:"w-full py-3 px-4 border border-pmi-gray-lighter rounded mt-1 text-sm focus:outline-none focus:ring-pmi-red focus:border-pmi-red",children:o.jsx("option",{value:"",children:t("common:registerVolunteer.selectProvince")})}),s.province&&o.jsx("p",{className:"text-pmi-red mt-1",children:t("common:registerVolunteer.requiredField")})]})}),o.jsx("div",{className:"col-span-3",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("label",{className:"block font-normal text-pmi-black text-lg",children:t("common:registerVolunteer.cityOrRegency")}),o.jsx("select",{...e("cityOrRegency",{required:!0}),className:"w-full py-3 px-4 border border-pmi-gray-lighter rounded mt-1 text-sm focus:outline-none focus:ring-pmi-red focus:border-pmi-red",children:o.jsx("option",{value:"",children:t("common:registerVolunteer.selectCityOrRegency")})}),s.cityOrRegency&&o.jsx("p",{className:"text-pmi-red mt-1",children:t("common:registerVolunteer.requiredField")})]})}),o.jsx("div",{className:"col-span-3",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("label",{className:"block font-normal text-pmi-black text-lg",children:t("common:registerVolunteer.district")}),o.jsx("select",{...e("district",{required:!0}),className:"w-full py-3 px-4 border border-pmi-gray-lighter rounded mt-1 text-sm focus:outline-none focus:ring-pmi-red focus:border-pmi-red",children:o.jsx("option",{value:"",children:t("common:registerVolunteer.selectDistrict")})}),s.district&&o.jsx("p",{className:"text-pmi-red mt-1",children:t("common:registerVolunteer.requiredField")})]})}),o.jsx("div",{className:"col-span-3",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("label",{className:"block font-normal text-pmi-black text-lg",children:t("common:registerVolunteer.villageOrSubdistrict")}),o.jsx("select",{...e("villageOrSubdistrict",{required:!0}),className:"w-full py-3 px-4 border border-pmi-gray-lighter rounded mt-1 text-sm focus:outline-none focus:ring-pmi-red focus:border-pmi-red",children:o.jsx("option",{value:"",children:t("common:registerVolunteer.selectVillageOrSubdistrict")})}),s.villageOrSubdistrict&&o.jsx("p",{className:"text-pmi-red mt-1",children:t("common:registerVolunteer.requiredField")})]})}),o.jsx("div",{className:"col-span-3",children:o.jsxs("div",{className:"mb-4 flex items-center",children:[o.jsx("input",{type:"checkbox",...e("currentAddressSame"),className:"mr-2"}),o.jsx("label",{className:"font-normal text-pmi-black text-lg",children:t("common:registerVolunteer.idAddressTheSameAsYourCurrentAddress")})]})})]})]}),h&&o.jsxs("section",{children:[o.jsx("h2",{className:"text-xl font-medium mb-4",children:t("common:registerVolunteer.currentAddress")}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-6 gap-6",children:[o.jsx("div",{className:"col-span-3",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("label",{className:"block font-normal text-pmi-black text-lg",children:t("common:registerVolunteer.province")}),o.jsx("select",{...e("currentProvince",{required:!0}),className:"w-full py-3 px-4 border border-pmi-gray-lighter rounded mt-1 text-sm focus:outline-none focus:ring-pmi-red focus:border-pmi-red",children:o.jsx("option",{value:"",children:t("common:registerVolunteer.selectProvince")})}),s.currentProvince&&o.jsx("p",{className:"text-pmi-red mt-1",children:t("common:registerVolunteer.requiredField")})]})}),o.jsx("div",{className:"col-span-3",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("label",{className:"block font-normal text-pmi-black text-lg",children:t("common:registerVolunteer.cityOrRegency")}),o.jsx("select",{...e("currentCityOrRegency",{required:!0}),className:"w-full py-3 px-4 border border-pmi-gray-lighter rounded mt-1 text-sm focus:outline-none focus:ring-pmi-red focus:border-pmi-red",children:o.jsx("option",{value:"",children:t("common:registerVolunteer.selectCityOrRegency")})}),s.currentCityOrRegency&&o.jsx("p",{className:"text-pmi-red mt-1",children:t("common:registerVolunteer.requiredField")})]})}),o.jsx("div",{className:"col-span-3",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("label",{className:"block font-normal text-pmi-black text-lg",children:t("common:registerVolunteer.district")}),o.jsx("select",{...e("currentDistrict",{required:!0}),className:"w-full py-3 px-4 border border-pmi-gray-lighter rounded mt-1 text-sm focus:outline-none focus:ring-pmi-red focus:border-pmi-red",children:o.jsx("option",{value:"",children:t("common:registerVolunteer.selectDistrict")})}),s.currentDistrict&&o.jsx("p",{className:"text-pmi-red mt-1",children:t("common:registerVolunteer.requiredField")})]})}),o.jsx("div",{className:"col-span-3",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("label",{className:"block font-normal text-pmi-black text-lg",children:t("common:registerVolunteer.villageOrSubdistrict")}),o.jsx("select",{...e("currentVillageOrSubdistrict",{required:!0}),className:"w-full py-3 px-4 border border-pmi-gray-lighter rounded mt-1 text-sm focus:outline-none focus:ring-pmi-red focus:border-pmi-red",children:o.jsx("option",{value:"",children:t("common:registerVolunteer.selectVillageOrSubdistrict")})}),s.currentVillageOrSubdistrict&&o.jsx("p",{className:"text-pmi-red mt-1",children:t("common:registerVolunteer.requiredField")})]})})]})]}),o.jsxs("section",{children:[o.jsx("h2",{className:"text-xl font-medium mb-4",children:t("common:registerVolunteer.pmiDistrictUnit")}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-6 gap-6",children:[o.jsx("div",{className:"col-span-2",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("label",{className:"block font-normal text-pmi-black text-lg",children:t("common:registerVolunteer.province")}),o.jsx("select",{...e("pmiProvince",{required:!0}),className:"w-full py-3 px-4 border border-pmi-gray-lighter rounded mt-1 text-sm focus:outline-none focus:ring-pmi-red focus:border-pmi-red",children:o.jsx("option",{value:"",children:t("common:registerVolunteer.selectProvince")})}),s.pmiProvince&&o.jsx("p",{className:"text-pmi-red mt-1",children:t("common:registerVolunteer.requiredField")})]})}),o.jsx("div",{className:"col-span-2",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("label",{className:"block font-normal text-pmi-black text-lg",children:t("common:registerVolunteer.cityOrDistrict")}),o.jsx("select",{...e("pmiCityOrDistrict",{required:!0}),className:"w-full py-3 px-4 border border-pmi-gray-lighter rounded mt-1 text-sm focus:outline-none focus:ring-pmi-red focus:border-pmi-red",children:o.jsx("option",{value:"",children:t("common:registerVolunteer.selectCityOrDistrict")})}),s.pmiCityOrDistrict&&o.jsx("p",{className:"text-pmi-red mt-1",children:t("common:registerVolunteer.requiredField")})]})}),o.jsx("div",{className:"col-span-2",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("label",{className:"block font-normal text-pmi-black text-lg",children:t("common:registerVolunteer.unit")}),o.jsx("select",{...e("pmiUnit",{required:!0}),classNa
155me:"w-full py-3 px-4 border border-pmi-gray-lighter rounded mt-1 text-sm focus:outline-none focus:ring-pmi-red focus:border-pmi-red",children:o.jsx("option",{value:"",children:t("common:registerVolunteer.selectUnit")})}),s.pmiUnit&&o.jsx("p",{className:"text-pmi-red mt-1",children:t("common:registerVolunteer.requiredField")})]})})]})]}),o.jsxs("section",{children:[o.jsx("h2",{className:"text-xl font-medium mb-4",children:t("common:registerVolunteer.photo")}),o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-6 gap-6",children:o.jsx("div",{className:"col-span-4",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("label",{className:"block text-gray-700",children:t("common:registerVolunteer.uploadPhoto")}),o.jsxs("div",{className:"relative mt-1",onClick:()=>{var p;return(p=document.getElementById("file-upload"))==null?void 0:p.click()},children:[o.jsx("input",{type:"text",placeholder:t("common:registerVolunteer.uploadPhoto"),className:"w-full border border-pmi-gray-lighter rounded-r text-sm",value:a,readOnly:!0}),o.jsxs("span",{className:"absolute inset-y-0 right-0 flex items-center py-2 px-4 border bg-pmi-gray-light border-pmi-gray-lighter rounded-r text-sm",children:[o.jsx("img",{src:"/svg/folder.svg",alt:"browse file"}),"Â Browse File"]})]}),o.jsx("input",{type:"file",id:"file-upload",...e("photo",{required:!0}),onChange:c,className:"hidden"}),s.photo&&o.jsx("p",{className:"text-red-500 mt-1",children:t("common:registerVolunteer.requiredField")})]})})})]}),o.jsxs("div",{className:"m-4 flex justify-center",children:[o.jsx(qie,{sitekey:"YOUR_RECAPTCHA_SITE_KEY",onChange:d}),s.recaptcha&&o.jsx("p",{className:"text-red-500 text-sm mt-1",children:s.recaptcha.message})]}),o.jsx("div",{className:"mb-4 flex justify-center",children:o.jsx("button",{type:"submit",className:"capitalize font-medium text-lg bg-pmi-red text-pmi-white py-2 px-12 min-w-96 rounded-md",children:t("common:register")})})]})},mre=()=>{const{t}=Se(["common"]);return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center mt-8 py-8",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center",children:t("common:registerVolunteer.title")}),o.jsx("p",{className:"font-light text-lg text-pmi-gray text-center max-w-2xl",children:t("common:registerVolunteer.fillInTheRegistrationFormBelow")}),o.jsx(pre,{})]})},fre=()=>{const{t}=Se(["common","menu"]),e=[{label:t("menu:volunteer"),path:"/volunteer"},{label:t("common:register")}];return Z.useEffect(()=>{},[]),o.jsx(Ye,{type:"default",title:"volunteers",breadcrumbs:e,children:o.jsx(mre,{})})},gre=()=>{const{t}=Se(["common"]),{language:e}=_e(),{data:n,isLoading:i,refetch:r}=lp("YouthRedCross"),s=[{title:"MULA",subtitle:t("common:volunteer.forElementarySchoolLevel"),backgroundImage:"/png/volunteers/youth-red-cross/mula.png",url:"https://mis.pmi.or.id/pmi/anggota/register?jenis=1"},{title:"MADYA",subtitle:t("common:volunteer.forJuniorHighSchoolLevel"),backgroundImage:"/png/volunteers/youth-red-cross/madya.png",url:"https://mis.pmi.or.id/pmi/anggota/register?jenis=2"},{title:"WIRA",subtitle:t("common:volunteer.forSeniorHighSchoolLevel"),backgroundImage:"/png/volunteers/youth-red-cross/wira.png",url:"https://mis.pmi.or.id/pmi/anggota/register?jenis=3"}];return Z.useEffect(()=>{r()},[]),o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center mt-8 py-8 px-4 md:px-20",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center",children:t("common:volunteer.youthRedCross")}),o.jsx("p",{className:"font-light text-lg text-pmi-gray text-center max-w-2xl",children:t("common:volunteer.pmrDescription")}),o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-7 w-full mx-auto py-8",children:[i&&[1,2,3].map(a=>o.jsx(Ot,{onlyImage:!0,minHeight:"min-h-64",minWidth:"min-w-72 min-w-80 lg:min-w-96"},a)),i&&!n&&s.map((a,l)=>o.jsx("a",{href:a.url,className:i&&"animate-pulse",children:o.jsx(Lf,{title:a.title,subtitle:a.subtitle,backgroundImage:a.backgroundImage},l)})),n&&n.map((a,l)=>o.jsx("a",{href:a.url||"#",children:o.jsx(Lf,{title:e==="en"?a.title:a.title_indo,subtitle:e==="en"?a.subtitle:a.subtitle_indo,backgroundImage:`${ze}/${a.image}`},l)}))]})]})},xre=()=>{const{t}=Se(["common","menu"]),e=[{label:t("menu:volunteer"),path:"/volunteer"}
155,{label:t("common:volunteer.youthRedCross")}];return Z.useEffect(()=>{},[]),o.jsxs(Ye,{type:"default",title:"volunteers",breadcrumbs:e,children:[o.jsx(gre,{}),o.jsx(eM,{}),o.jsx(tM,{})]})},r$=Z.createContext(void 0),yre=({children:t})=>{const[e,n]=Z.useState("");return o.jsx(r$.Provider,{value:{searchTerm:e,setSearchTerm:n},children:t})},kr=()=>{const t=Z.useContext(r$);if(!t)throw new Error("useSearch must be used within a SearchProvider");return t},up=({placeholder:t})=>{const{t:e}=Se(["common"]),{register:n,handleSubmit:i,formState:{errors:r}}=Ks(),{setSearchTerm:s}=kr(),a=async l=>{s(l.query)};return o.jsxs("form",{onSubmit:i(a),className:"flex justify-center items-center gap-2",children:[o.jsxs("div",{className:"w-full",children:[o.jsx("input",{type:"text",placeholder:t?`${e(t)}...`:"",...n("query",{required:!1}),className:"border border-gray-300 p-2 rounded-md w-full outline-offset-2 outline-2 focus:outline-none focus:ring-pmi-red focus:border-pmi-red sm:text-sm"}),r.query&&o.jsx("p",{className:"mt-3 text-sm leading-6 text-red-500",children:r.query.message})]}),o.jsx("div",{className:"relative",children:o.jsx("button",{className:on({"btn bg-pmi-red capitalize text-white w-full block px-4 py-2 gap-x-2 text-base text-center rounded-lg focus:outline":!0}),type:"submit",children:e("common:search")})})]})},or=({fallbackSrc:t,src:e,className:n,alt:i})=>{const{language:r}=_e(),s=a=>{a.currentTarget.src=t||`https://placehold.co/250x400?text=${r==="en"?"No+Image":"Gambar+tidak+ditemukan"}`,a.currentTarget.className=n};return o.jsx("img",{src:e,alt:i,className:n,onError:s})},Zf=({imageUrl:t,videoUrl:e,altText:n,className:i="w-full md:w-[600px] lg:w-[800px] min-w-full h-[450px]"})=>{const[r,s]=Z.useState(!1),a=()=>{s(!0)};return o.jsx("div",{className:"relative w-full",children:(!e||e=="")&&!r?o.jsxs("div",{className:"cursor-pointer",onClick:a,children:[o.jsx(or,{src:t||"",alt:n||"Video thumbnail",className:"w-full h-auto"}),o.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:o.jsx("button",{className:"bg-black bg-opacity-50 rounded-full p-2",children:o.jsx("svg",{width:"68",height:"68",viewBox:"0 0 68 68",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M63.1693 33.9997C63.171 34.707 62.9896 35.4028 62.6428 36.0193C62.296 36.6358 61.7955 37.1521 61.1901 37.5179L23.6693 60.471C23.0367 60.8584 22.3122 61.0699 21.5705 61.0836C20.8289 61.0973 20.097 60.9128 19.4505 60.5492C18.8102 60.1911 18.2768 59.669 17.9051 59.0365C17.5335 58.4039 17.337 57.6838 17.3359 56.9502V11.0492C17.337 10.3155 17.5335 9.59541 17.9051 8.96288C18.2768 8.33035 18.8102 7.80822 19.4505 7.45019C20.097 7.08652 20.8289 6.90202 21.5705 6.91575C22.3122 6.92949 23.0367 7.14096 23.6693 7.52832L61.1901 30.4814C61.7955 30.8473 62.296 31.3635 62.6428 31.98C62.9896 32.5965 63.171 33.2923 63.1693 33.9997Z",fill:"#FEFEFE"})})})})]}):o.jsx("div",{className:"relative w-full",children:o.jsx("iframe",{className:i||"",src:e||"",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"Embedded video"})})})},bre=async t=>{const e=await He.get(`/api/media?page_name=${t}&void=0`);if(!e)throw new Error("Network response was not ok");return e==null?void 0:e.data},vre=async t=>{const e=await He.get(`/api/media-type?page_name=${t}&void=0`);if(!e)throw new Error("Network response was not ok");return e==null?void 0:e.data},wre=async t=>{const e=await He.get(`/api/media-type/${t}`);if(!e)throw new Error("Network response was not ok");return e==null?void 0:e.data},kre=async(t,e,n,i)=>{const r=an({page:e,void:0,paginate:1,type:t,category:n,keyword:i}),s=await He.get(`/api/media${r}`);if(!s)throw new Error("Network response was not ok");return s.data},Sre=async t=>{const e=await He.get(`/api/media/${t}`);if(!e)throw new Error("Network response was not ok");return e==null?void 0:e.data},Cre=async t=>{const e=await He.get(`/api/media-category?type=${t}&void=0`);if(!e)throw new Error("Network response was not ok");return e==null?void 0:e.data},uM=t=>Ge({queryKey:["media"],queryFn:()=>bre(t),staleTime:1e3*60*60,gcTime:1e3*60*60}),jre=t=>Ge({queryKey:["media_type"],queryFn:()=>vre(t),staleTime:1e3*60*60,gcTime:1e3*60*60}),ba=t=>Ge({queryKey:["media_type",t],queryFn:()=>wre(t),staleTime:1e3*60*60,gcTime:1e3*60*60}),eg=(t,e,n,i)=>Ge({queryKey:["media_library",t,e,n,i],queryFn:()=>kre(t,e,n,i),staleTime:1e3*60*60,gcTime:1e3*60*60,enabled:!1}),Tre=t=>Ge({queryKey:["media_detail"],queryFn:()=>Sre(t),staleTime:1e3*60*60,gcTime:1e3*60*60}),Pre=t=>Ge({queryKey:["media_category",t],queryFn:()=>Cre(t),staleTime:1e3*60*60,gcTime:1e3*60*60}),Ere=()=>{const{t}=Se(["common"]),{data:e}=uM("VolunteerStoriesVideo");return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-8 bg-pmi-gray-light px-4 md:px-20",children:[o.jsx("h3",{className:"font-bold text-2xl md:text-4xl text-pmi-red text-center",children:t("common:volunteerStories.title")}),o.jsx("p",{className:"font-light text-lg text-pmi-gray text-center",children:t("common:volunteer.inspiringJourneysRealStoriesFromOurDedicatedVolunteers")}),o.jsx("div",{className:"mt-2",children:o.jsx("div",{className:"w-full max-w-5xl",children:o.jsxs("div",{className:"w-full border drop-shadow-lg shadow-xl p-6 space-y-6 rounded-xl",children:[e&&e.map((n,i)=>o.jsx(Zf,{imageUrl:"/png/volunteers/stories/videos.png",videoUrl:n.external_url,altText:t("common:whyDonate.volunteerGuide")},i)),o.jsx("div",{className:"w-full",children:o.jsx("a",{href:"https://www.youtube.com/@pmi_tv",target:"_blank",className:"block w-full bg-pmi-red text-pmi-white rounded-lg py-2 capitalize text-center",children:t("volunteerStories.seeMoreVideos")})})]})})}),o.jsx("div",{className:"w-full max-w-2xl mx-auto py-8",children:o.jsx(up,{placeholder:"common:volunteerStories.searchVolunteerStories"})})]})},Hi=({links:t,onPageChange:e,currentPage:n})=>{const i=c=>{e(c)},r=t.filter(c=>c.label!=="« Previous"&&c.label!=="Next »"),s=1,a=r.length>0?parseInt(r[r.length-1].label):1,l=()=>{const c=[],d=t.find(h=>h.label==="« Previous");c.push(o.jsx("button",{onClick:()=>i(n?n-1:1),disabled:!(d!=null&&d.url),className:on("px-3 py-1 md:px-4 md:py-2 rounded-md border",{"font-medium text-base":!0,"bg-pmi-white text-pmi-black hover:bg-pmi-red hover:text-pmi-white":!0,"opacity-50 cursor-not-allowed":!(d!=null&&d.url)}),children:"<"},"prev")),c.push(o.jsx("button",{onClick:()=>i(s),className:on("px-3 py-1 md:px-4 md:py-2 rounded-md border",{"font-medium text-base":!0,"bg-pmi-white text-pmi-black hover:bg-pmi-red hover:text-pmi-white":n!==s,"bg-pmi-red text-white hover:opacity-60":n===s}),children:s},s)),n&&n>3&&c.push(o.jsx("span",{className:"px-3 py-1 md:px-4 md:py-2",children:"..."},"ellipsis1")),n&&n>2&&c.push(o.jsx("button",{onClick:()=>i(n-1),className:"px-3 py-1 md:px-4 md:py-2 rounded-md border font-medium text-base bg-pmi-white text-pmi-black hover:bg-pmi-red hover:text-pmi-white",children:n-1},n-1)),n&&n!==s&&n!==a&&c.push(o.jsx("button",{onClick:()=>i(n),className:"px-3 py-1 md:px-4 md:py-2 rounded-md border font-medium text-base bg-pmi-red text-white hover:opacity-60",children:n},n)),n&&n<a-1&&c.push(o.jsx("button",{onClick:()=>i(n+1),className:"px-3 py-1 md:px-4 md:py-2 rounded-md border font-medium text-base bg-pmi-white text-pmi-black hover:bg-pmi-red hover:text-pmi-white",children:n+1},n+1)),n&&n<a-2&&c.push(o.jsx("span",{className:"px-3 py-1 md:px-4 md:py-2",children:"..."},"ellipsis2")),a>s&&c.push(o.jsx("button",{onClick:()=>i(a),className:on("px-3 py-1 md:px-4 md:py-2 rounded-md border",{"font-medium text-base":!0,"bg-pmi-white text-pmi-black hover:bg-pmi-red hover:text-pmi-white":n!==a,"bg-pmi-red text-white hover:opacity-60":n===a}),children:a},a));const u=t.find(h=>h.label==="Next »");return c.push(o.jsx("button",{onClick:()=>i(n?n+1:2),disabled:!(u!=null&&u.url),className:on("px-3 py-1 md:px-4 md:py-2 rounded-md border",{"font-medium text-base":!0,"bg-pmi-white text-pmi-black hover:bg-pmi-red hover:text-pmi-white":!0,"opacity-50 cursor-not-allowed":!(u!=null&&u.url)}),children:">"},"next")),c};return o.jsx("div",{className:"flex justify-center items-center space-x-2 lg:space-x-4 my-2",children:l()})},Are=()=>{const{t}=Se(["common"]),{language:e}=_e(),{searchTerm:n}=kr(),[i,r]=Z.useState(1),{data:s,isLoading:a,refetch:l}=Rd("Volunteer",e,n,i),c=d=>{r(d)};return Z.useEffect(()=>{l()},[n,i]),o.jsx("div",{className:"flex flex-col items-center justify-center bg-pmi-white px-4 md:px-20",children:o.jsxs("div",{className:"w-full max-w-6xl grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 pt-10 pb-4 md:px-0",children:[a&&[1,2,3].map(d=>o.jsx(Ot,{onlyImage:!0,minHeight:"min-h-40",minWidth:"min-w-52"},d)),s&&s.data.map((d,u)=>o.jsx("a",{href:`/volunteer/volunteer-stories/${d.slug}`,className:" cursor-pointer",children:o.jsx(Of,{image:`${ze}/${d.image}
155`,title:e==="en"?d.title:d.title_indo,subTitle:t("common:viewed",{date:Ni(d.news_date,e),count:d.views})},u)})),o.jsx("div",{className:"col-span-full border-b border-pmi-gray-lighter",children:o.jsx("p",{className:"w-full text-pmi-gray text-sm font-light mt-2 md:mt-8",children:t("common:pagination",{start:s==null?void 0:s.from,end:s==null?void 0:s.to,total:s==null?void 0:s.total})})}),o.jsx("div",{className:"col-span-full justify-center",children:(s==null?void 0:s.links)&&o.jsx(Hi,{links:s==null?void 0:s.links,onPageChange:c,currentPage:i})})]})})},Nre=()=>{const{t}=Se(["menu"]),e=[{label:t("menu:volunteer"),path:"#"},{label:t("menu:volunteerStories")}];return Z.useEffect(()=>{},[]),o.jsxs(Ye,{type:"default",title:"volunteer",breadcrumbs:e,children:[o.jsx(Ere,{}),o.jsx(Are,{})]})},gv=({imageUrl:t,date:e,title:n,customClass:i="w-full lg:max-w-lg gap-8 border-b font-light text-[22px] text-pmi-gray p-6",titleClass:r="capitalize font-bold text-sm text-pmi-black leading-6 text-ellipsis overflow-hidden",withoutImage:s=!1,dateOnTop:a=!1})=>o.jsxs("div",{className:i,children:[!s&&o.jsx(or,{className:"w-full h-40 object-cover",src:t||"",alt:n||""}),a&&o.jsx("p",{className:"font-light text-pmi-gray text-xs mt-4",children:e}),o.jsxs("div",{className:"flex flex-col gap-4",children:[o.jsx("p",{className:r,style:{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"},children:n}),!a&&o.jsx("p",{className:"font-light text-right text-pmi-gray text-xs",children:e})]})]}),Mre=()=>{const{t}=Se(["common"]),{language:e}=_e(),{data:n,isLoading:i}=Rd("Volunteer",e);return o.jsxs("div",{className:"mb-4",children:[o.jsx("h3",{className:"px-8 py-6 bg-pmi-gray-lighter font-medium text-xl capitalize",children:t("common:volunteerStories.recentVolunteerStories")}),o.jsxs("div",{className:"border px-2 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-1",children:[i&&[1,2,3].map(r=>o.jsx(Ot,{onlyImage:!0,minHeight:"min-h-40",minWidth:"min-w-52"},r)),n&&n.data.map((r,s)=>s<3&&o.jsx("a",{href:`/volunteer/volunteer-stories/${r.slug}`,className:" cursor-pointer",children:o.jsx(gv,{date:t("common:viewed",{date:Ni(r.news_date,e),count:r.views}),title:e==="en"?r.title:r.title_indo,titleClass:"capitalize font-normal text-sm text-pmi-black leading-6 py-4 text-ellipsis overflow-hidden",imageUrl:`${ze}/${r.image}`},s)}))]})]})},Dre=({article:t})=>{const{t:e}=Se(["common"]),{language:n}=_e();return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-8 px-4 md:px-20",children:[o.jsx("h3",{className:"font-bold text-2xl md:text-4xl text-pmi-red text-center max-w-2xl capitalize",children:n==="en"?t.title:t.title_indo}),o.jsx("p",{className:"font-light text-lg text-pmi-gray text-center",children:e("common:viewed",{date:Ni(t.news_date,n),count:t.views})}),o.jsxs("div",{className:"w-full max-w-6xl mx-auto py-8 space-y-12",children:[o.jsx("img",{src:`${ze}/${t.image}`,alt:n==="en"?t.title:t.title_indo,className:"w-full object-cover max-h-96"}),o.jsxs("div",{className:"flex flex-col lg:flex-row justify-between gap-8",children:[o.jsx("div",{className:"max-w-3xl space-y-4 text-pmi-black text-base font-light leading-8 text-justify",children:o.jsx(Et,{customClassName:"space-y-4",content:n==="en"?t.content:t.content_indo})}),o.jsx("div",{className:"space-y-8",children:o.jsx(Mre,{})})]})]})]})},_re=()=>{const{t}=Se(["menu"]),{id:e}=ni(),{language:n}=_e(),{data:i,isLoading:r,isError:s}=AS(e||"");if(s)return o.jsx(xi,{});if(!i||r)return null;const a=[{label:t("menu:volunteers"),path:"/"},{label:t("menu:volunteerStories"),path:"/volunteer/volunteer-stories"},{label:n==="en"?i==null?void 0:i.title:i==null?void 0:i.title_indo}];return o.jsx(Ye,{type:"default",forceTitle:n==="en"?i==null?void 0:i.title:i==null?void 0:i.title_indo,breadcrumbs:a,description:ic(n==="en"?i==null?void 0:i.subtitle:i==null?void 0:i.subtitle_indo),children:o.jsx(Dre,{article:i})})},Ire=async()=>{const t=await He.get("/api/professions");if(!t)throw new Error("Network response was not ok");return t==null?void 0:t.data},Rre=()=>Ge({queryKey:["professions"],queryFn:Ire,staleTime:1e3*60*60,gcTime:1e3*60*60}),Ore=async()=>{const t=await He.get("/api/education-levels");if(!t)throw new Error("Network response was not ok");return t==null?void 0:t.data},Lre=()=>Ge({queryKey:["education_level"],queryFn:Ore,staleTime:1e3*60*60,gcTime:1e3*60*60}),Fre=async()=>{const t=an({void:0}),e=await He.get(`/api/visa-types${t}`);if(!e)throw new Error("Network response was not ok");return e==null?void 0:e.data},Bre=()=>Ge({queryKey:["visa-types"],queryFn:Fre,staleTime:1e3*60*60,gcTime:1e3*60*60}),$re=[{name:"is_law_abiding",label:"Comply with the prevailing laws and regulations in Indonesia"},{name:"is_principles_accepted",label:"Willing to internalize and practice the Fundamental Principles of the International Red Cross and Red Crescent Movement, and the Statutes and Bylaws of PMI"},{name:"is_orientation_willing",label:"Willing to attend Red Cross orientation"}];function Bh(t){"@babel/helpers - typeof";return Bh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bh(t)}function Hre(t,e){if(Bh(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(Bh(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function s$(t){var e=Hre(t,"string");return Bh(e)=="symbol"?e:e+""}function Ug(t,e,n){return(e=s$(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rO(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function gt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
155e%2?rO(Object(n),!0).forEach(function(i){Ug(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rO(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function zre(t){if(Array.isArray(t))return t}function Vre(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var i,r,s,a,l=[],c=!0,d=!1;try{if(s=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=s.call(n)).done)&&(l.push(i.value),l.length!==e);c=!0);}catch(u){d=!0,r=u}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return l}}function QT(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function a$(t,e){if(t){if(typeof t=="string")return QT(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?QT(t,e):void 0}}function Ure(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 156In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fl(t,e){return zre(t)||Vre(t,e)||a$(t,e)||Ure()}function Wre(t,e){if(t==null)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.includes(i))continue;n[i]=t[i]}return n}function rc(t,e){if(t==null)return{};var n,i,r=Wre(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)n=s[i],e.includes(n)||{}.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var Gre=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function qre(t){var e=t.defaultInputValue,n=e===void 0?"":e,i=t.defaultMenuIsOpen,r=i===void 0?!1:i,s=t.defaultValue,a=s===void 0?null:s,l=t.inputValue,c=t.menuIsOpen,d=t.onChange,u=t.onInputChange,h=t.onMenuClose,p=t.onMenuOpen,y=t.value,m=rc(t,Gre),w=Z.useState(l!==void 0?l:n),k=Fl(w,2),b=k[0],x=k[1],v=Z.useState(c!==void 0?c:r),E=Fl(v,2),N=E[0],S=E[1],_=Z.useState(y!==void 0?y:a),$=Fl(_,2),V=$[0],I=$[1],A=Z.useCallback(function(C,D){typeof d=="function"&&d(C,D),I(C)},[d]),L=Z.useCallback(function(C,D){var M;typeof u=="function"&&(M=u(C,D)),x(M!==void 0?M:C)},[u]),T=Z.useCallback(function(){typeof p=="function"&&p(),S(!0)},[p]),g=Z.useCallback(function(){typeof h=="function"&&h(),S(!1)},[h]),f=l!==void 0?l:b,j=c!==void 0?c:N,P=y!==void 0?y:V;return gt(gt({},m),{},{inputValue:f,menuIsOpen:j,onChange:A,onInputChange:L,onMenuClose:g,onMenuOpen:T,value:P})}function bt(){return bt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},bt.apply(null,arguments)}function Kre(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sO(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,s$(i.key),i)}}function Yre(t,e,n){return e&&sO(t.prototype,e),n&&sO(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function ZT(t,e){return ZT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ZT(t,e)}function Xre(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ZT(t,e)}
156function Jk(t){return Jk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jk(t)}function o$(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(o$=function(){return!!t})()}function Jre(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Qre(t,e){if(e&&(Bh(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Jre(t)}function Zre(t){var e=o$();return function(){var n,i=Jk(t);if(e){var r=Jk(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return Qre(this,n)}}function ese(t){if(Array.isArray(t))return QT(t)}function tse(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function nse(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 157In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hM(t){return ese(t)||tse(t)||a$(t)||nse()}function ise(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function rse(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var sse=function(){function t(n){var i=this;this._insertTag=function(r){var s;i.tags.length===0?i.insertionPoint?s=i.insertionPoint.nextSibling:i.prepend?s=i.container.firstChild:s=i.before:s=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(r,s),i.tags.push(r)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(i){i.forEach(this._insertTag)},e.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(rse(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var s=ise(r);try{s.insertRule(i,s.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(i));this.ctr++}
vendor: 7,427 bytes, line 157
157,e.flush=function(){this.tags.forEach(function(i){var r;return(r=i.parentNode)==null?void 0:r.removeChild(i)}),this.tags=[],this.ctr=0},t}(),ur="-ms-",Qk="-moz-",dn="-webkit-",l$="comm",pM="rule",mM="decl",ase="@import",c$="@keyframes",ose="@layer",lse=Math.abs,zS=String.fromCharCode,cse=Object.assign;function dse(t,e){return Ji(t,0)^45?(((e<<2^Ji(t,0))<<2^Ji(t,1))<<2^Ji(t,2))<<2^Ji(t,3):0}function d$(t){return t.trim()}function use(t,e){return(t=e.exec(t))?t[0]:t}function hn(t,e,n){return t.replace(e,n)}function eP(t,e){return t.indexOf(e)}function Ji(t,e){return t.charCodeAt(e)|0}function ry(t,e,n){return t.slice(e,n)}function Ao(t){return t.length}function fM(t){return t.length}function y0(t,e){return e.push(t),t}function hse(t,e){return t.map(e).join("")}var VS=1,Ff=1,u$=0,us=0,mi=0,tg="";function US(t,e,n,i,r,s,a){return{value:t,root:e,parent:n,type:i,props:r,children:s,line:VS,column:Ff,length:a,return:""}}function Sg(t,e){return cse(US("",null,null,"",null,null,0),t,{length:-t.length},e)}function pse(){return mi}function mse(){return mi=us>0?Ji(tg,--us):0,Ff--,mi===10&&(Ff=1,VS--),mi}function zs(){return mi=us<u$?Ji(tg,us++):0,Ff++,mi===10&&(Ff=1,VS++),mi}function Lo(){return Ji(tg,us)}function uw(){return us}function xv(t,e){return ry(tg,t,e)}function sy(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function h$(t){return VS=Ff=1,u$=Ao(tg=t),us=0,[]}function p$(t){return tg="",t}function hw(t){return d$(xv(us-1,tP(t===91?t+2:t===40?t+1:t)))}function fse(t){for(;(mi=Lo())&&mi<33;)zs();return sy(t)>2||sy(mi)>3?"":" "}function gse(t,e){for(;--e&&zs()&&!(mi<48||mi>102||mi>57&&mi<65||mi>70&&mi<97););return xv(t,uw()+(e<6&&Lo()==32&&zs()==32))}function tP(t){for(;zs();)switch(mi){case t:return us;case 34:case 39:t!==34&&t!==39&&tP(mi);break;case 40:t===41&&tP(t);break;case 92:zs();break}return us}function xse(t,e){for(;zs()&&t+mi!==57;)if(t+mi===84&&Lo()===47)break;return"/*"+xv(e,us-1)+"*"+zS(t===47?t:zs())}function yse(t){for(;!sy(Lo());)zs();return xv(t,us)}function bse(t){return p$(pw("",null,null,null,[""],t=h$(t),0,[0],t))}function pw(t,e,n,i,r,s,a,l,c){for(var d=0,u=0,h=a,p=0,y=0,m=0,w=1,k=1,b=1,x=0,v="",E=r,N=s,S=i,_=v;k;)switch(m=x,x=zs()){case 40:if(m!=108&&Ji(_,h-1)==58){eP(_+=hn(hw(x),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:_+=hw(x);break;case 9:case 10:case 13:case 32:_+=fse(m);break;case 92:_+=gse(uw()-1,7);continue;case 47:switch(Lo()){case 42:case 47:y0(vse(xse(zs(),uw()),e,n),c);break;default:_+="/"}break;case 123*w:l[d++]=Ao(_)*b;case 125*w:case 59:case 0:switch(x){case 0:case 125:k=0;case 59+u:b==-1&&(_=hn(_,/\f/g,"")),y>0&&Ao(_)-h&&y0(y>32?oO(_+";",i,n,h-1):oO(hn(_," ","")+";",i,n,h-2),c);break;case 59:_+=";";default:if(y0(S=aO(_,e,n,d,u,r,l,v,E=[],N=[],h),s),x===123)if(u===0)pw(_,e,S,S,E,s,h,l,N);else switch(p===99&&Ji(_,3)===110?100:p){case 100:case 108:case 109:case 115:pw(t,S,S,i&&y0(aO(t,S,S,0,0,r,l,v,r,E=[],h),N),r,N,h,l,i?E:N);break;default:pw(_,S,S,S,[""],N,0,l,N)}}d=u=y=0,w=b=1,v=_="",h=a;break;case 58:h=1+Ao(_),y=m;default:if(w<1){if(x==123)--w;else if(x==125&&w++==0&&mse()==125)continue}switch(_+=zS(x),x*w){case 38:b=u>0?1:(_+="\f",-1);break;case 44:l[d++]=(Ao(_)-1)*b,b=1;break;case 64:Lo()===45&&(_+=hw(zs())),p=Lo(),u=h=Ao(v=_+=yse(uw())),x++;break;case 45:m===45&&Ao(_)==2&&(w=0)}}return s}function aO(t,e,n,i,r,s,a,l,c,d,u){for(var h=r-1,p=r===0?s:[""],y=fM(p),m=0,w=0,k=0;m<i;++m)for(var b=0,x=ry(t,h+1,h=lse(w=a[m])),v=t;b<y;++b)(v=d$(w>0?p[b]+" "+x:hn(x,/&\f/g,p[b])))&&(c[k++]=v);return US(t,e,n,r===0?pM:l,c,d,u)}function vse(t,e,n){return US(t,e,n,l$,zS(pse()),ry(t,2,-2),0)}function oO(t,e,n,i){return US(t,e,n,mM,ry(t,0,i),ry(t,i+1,-1),i)}function am(t,e){for(var n="",i=fM(t),r=0;r<i;r++)n+=e(t[r],r,t,e)||"";return n}function wse(t,e,n,i){switch(t.type){case ose:if(t.children.length)break;case ase:case mM:return t.return=t.return||t.value;case l$:return"";case c$:return t.return=t.value+"{"+am(t.children,i)+"}";case pM:t.value=t.props.join(",")}return Ao(n=am(t.children,i))?t.return=t.value+"{"+n+"}":""}function kse(t){var e=fM(t);return function(n,i,r,s){for(var a="",l=0;l<e;l++)a+=t[l](n,i,r,s)||"";return a}}function Sse(t){return function(e){e.root||(e=e.return)&&t(e)}}function Cse(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var jse=function(e,n,i){for(var r=0,s=0;r=s,s=Lo(),r===38&&s===12&&(n[i]=1),!sy(s);)zs();return xv(e,us)},Tse=function(e,n){var i=-1,r=44;do switch(sy(r)){case 0:r===38&&Lo()===12&&(n[i]=1),e[i]+=jse(us-1,n,i);break;case 2:e[i]+=hw(r);break;case 4:if(r===44){e[++i]=Lo()===58?"&\f":"",n[i]=e[i].length;break}default:e[i]+=zS(r)}while(r=zs());return e},Pse=function(e,n){return p$(Tse(h$(e),n))},lO=new WeakMap,Ese=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,i=e.parent,r=e.column===i.column&&e.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!lO.get(i))&&!r){lO.set(e,!0);for(var s=[],a=Pse(n,s),l=i.props,c=0,d=0;c<a.length;c++)for(var u=0;u<l.length;u++,d++)e.props[d]=s[c]?a[c].replace(/&\f/g,l[u]):l[u]+" "+a[c]}}},Ase=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function m$(t,e){switch(dse(t,e)){case 5103:return dn+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return dn+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return dn+t+Qk+t+ur+t+t;case 6828:case 4268:return dn+t+ur+t+t;case 6165:return dn+t+ur+"flex-"+t+t;case 5187:return dn+t+hn(t,/(\w+).+(:[^]+)/,dn+"box-$1$2"+ur+"flex-$1$2")+t;case 5443:return dn+t+ur+"flex-item-"+hn(t,/flex-|-self/,"")+t;case 4675:return dn+t+ur+"flex-line-pack"+hn(t,/align-content|flex-|-self/,"")+t;case 5548:return dn+t+ur+hn(t,"shrink","negative")+t;case 5292:return dn+t+ur+hn(t,"basis","preferred-size")+t;case 6060:return dn+"box-"+hn(t,"-grow","")+dn+t+ur+hn(t,"grow","positive")+t;case 4554:return dn+hn(t,/([^-])(transform)/g,"$1"+dn+"$2")+t;case 6187:return hn(hn(hn(t,/(zoom-|grab)/,dn+"$1"),/(image-set)/,dn+"$1"),t,"")+t;case 5495:case 3959:return hn(t,/(image-set\([^]*)/,dn+"$1$`$1");case 4968:return hn(hn(t,/(.+:)(flex-)?(.*)/,dn+"box-pack:$3"+ur+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+dn+t+t;case 4095:case 3583:case 4068:case 2532:return hn(t,/(.+)-inline(.+)/,dn+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ao(t)-1-e>6)switch(Ji(t,e+1)){case 109:if(Ji(t,e+4)!==45)break;case 102:return hn(t,/(.+:)(.+)-([^]+)/,"$1"+dn+"$2-$3$1"+Qk+(Ji(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~eP(t,"stretch")?m$(hn(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Ji(t,e+1)!==115)break;case 6444:switch(Ji(t,Ao(t)-3-(~eP(t,"!important")&&10))){case 107:return hn(t,":",":"+dn)+t;case 101:return hn(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+dn+(Ji(t,14)===45?"inline-":"")+"box$3$1"+dn+"$2$3$1"+ur+"$2box$3")+t}break;case 5936:switch(Ji(t,e+11)){case 114:return dn+t+ur+hn(t,/[svh]\w+-[tblr]{2}/,"tb")+t;
vendor: 6,967 bytes, line 157
157case 108:return dn+t+ur+hn(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return dn+t+ur+hn(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return dn+t+ur+t+t}return t}var Nse=function(e,n,i,r){if(e.length>-1&&!e.return)switch(e.type){case mM:e.return=m$(e.value,e.length);break;case c$:return am([Sg(e,{value:hn(e.value,"@","@"+dn)})],r);case pM:if(e.length)return hse(e.props,function(s){switch(use(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return am([Sg(e,{props:[hn(s,/:(read-\w+)/,":"+Qk+"$1")]})],r);case"::placeholder":return am([Sg(e,{props:[hn(s,/:(plac\w+)/,":"+dn+"input-$1")]}),Sg(e,{props:[hn(s,/:(plac\w+)/,":"+Qk+"$1")]}),Sg(e,{props:[hn(s,/:(plac\w+)/,ur+"input-$1")]})],r)}return""})}},Mse=[Nse],Dse=function(e){var n=e.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(w){var k=w.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var r=e.stylisPlugins||Mse,s={},a,l=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(w){for(var k=w.getAttribute("data-emotion").split(" "),b=1;b<k.length;b++)s[k[b]]=!0;l.push(w)});var c,d=[Ese,Ase];{var u,h=[wse,Sse(function(w){u.insert(w)})],p=kse(d.concat(r,h)),y=function(k){return am(bse(k),p)};c=function(k,b,x,v){u=x,y(k?k+"{"+b.styles+"}":b.styles),v&&(m.inserted[b.name]=!0)}}var m={key:n,sheet:new sse({key:n,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:c};return m.sheet.hydrate(l),m},_se=!0;function Ise(t,e,n){var i="";return n.split(" ").forEach(function(r){t[r]!==void 0?e.push(t[r]+";"):i+=r+" "}),i}var f$=function(e,n,i){var r=e.key+"-"+n.name;(i===!1||_se===!1)&&e.registered[r]===void 0&&(e.registered[r]=n.styles)},Rse=function(e,n,i){f$(e,n,i);var r=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var s=n;do e.insert(n===s?"."+r:"",s,e.sheet,!0),s=s.next;while(s!==void 0)}};function Ose(t){for(var e=0,n,i=0,r=t.length;r>=4;++i,r-=4)n=t.charCodeAt(i)&255|(t.charCodeAt(++i)&255)<<8|(t.charCodeAt(++i)&255)<<16|(t.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(r){case 3:e^=(t.charCodeAt(i+2)&255)<<16;case 2:e^=(t.charCodeAt(i+1)&255)<<8;case 1:e^=t.charCodeAt(i)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Lse={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Fse=/[A-Z]|^ms/g,Bse=/_EMO_([^_]+?)_([^]*?)_EMO_/g,g$=function(e){return e.charCodeAt(1)===45},cO=function(e){return e!=null&&typeof e!="boolean"},j2=Cse(function(t){return g$(t)?t:t.replace(Fse,"-$&").toLowerCase()}),dO=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(Bse,function(i,r,s){return No={name:r,styles:s,next:No},r})}return Lse[e]!==1&&!g$(e)&&typeof n=="number"&&n!==0?n+"px":n};function ay(t,e,n){if(n==null)return"";var i=n;if(i.__emotion_styles!==void 0)return i;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return No={name:r.name,styles:r.styles,next:No},r.name;var s=n;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)No={name:a.name,styles:a.styles,next:No},a=a.next;var l=s.styles+";";return l}return $se(t,e,n)}case"function":{if(t!==void 0){var c=No,d=n(t);return No=c,ay(t,e,d)}break}}var u=n;return u}function $se(t,e,n){var i="";if(Array.isArray(n))for(var r=0;r<n.length;r++)i+=ay(t,e,n[r])+";";else for(var s in n){var a=n[s];if(typeof a!="object"){var l=a;cO(l)&&(i+=j2(s)+":"+dO(s,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&e==null)for(var c=0;c<a.length;c++)cO(a[c])&&(i+=j2(s)+":"+dO(s,a[c])+";");else{var d=ay(t,e,a);switch(s){case"animation":case"animationName":{i+=j2(s)+":"+d+";";break}default:i+=s+"{"+d+"}"}}}return i}var uO=/label:\s*([^\s;\n{]+)\s*(;|$)/g,No;function x$(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,r="";No=void 0;var s=t[0];if(s==null||s.raw===void 0)i=!1,r+=ay(n,e,s);else{var a=s;r+=a[0]}for(var l=1;l<t.length;l++)if(r+=ay(n,e,t[l]),i){var c=s;r+=c[l]}uO.lastIndex=0;for(var d="",u;(u=uO.exec(r))!==null;)d+="-"+u[1];var h=Ose(r)+d;return{name:h,styles:r,next:No}}var Hse=function(e){return e()},zse=kf.useInsertionEffect?kf.useInsertionEffect:!1,Vse=zse||Hse,gM={}.hasOwnProperty,y$=Z.createContext(typeof HTMLElement<"u"?Dse({key:"css"}):null);y$.Provider;var Use=function(e){return Z.forwardRef(function(n,i){var r=Z.useContext(y$);return e(n,r,i)})},Wse=Z.createContext({}),nP="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Gse=function(e,n){var i={};for(var r in n)gM.call(n,r)&&(i[r]=n[r]);return i[nP]=e,i},qse=function(e){var n=e.cache,i=e.serialized,r=e.isStringTag;return f$(n,i,r),Vse(function(){return Rse(n,i,r)}),null},Kse=Use(function(t,e,n){var i=t.css;typeof i=="string"&&e.registered[i]!==void 0&&(i=e.registered[i]);var r=t[nP],s=[i],a="";typeof t.className=="string"?a=Ise(e.registered,s,t.className):t.className!=null&&(a=t.className+" ");var l=x$(s,void 0,Z.useContext(Wse));a+=e.key+"-"+l.name;var c={};for(var d in t)gM.call(t,d)&&d!=="css"&&d!==nP&&(c[d]=t[d]);return c.className=a,n&&(c.ref=n),Z.createElement(Z.Fragment,null,Z.createElement(qse,{cache:e,serialized:l,isStringTag:typeof r=="string"}),Z.createElement(r,c))}),Yse=Kse,ft=function(e,n){var i=arguments;if(n==null||!gM.call(n,"css"))return Z.createElement.apply(void 0,i);var r=i.length,s=new Array(r);s[0]=Yse,s[1]=Gse(e,n);for(var a=2;a<r;a++)s[a]=i[a];return Z.createElement.apply(null,s)};function xM(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return x$(e)}var Xse=function(){var e=xM.apply(void 0,arguments),n="animation-"+e.name;return{name:n,styles:"@keyframes "+n+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};function Jse(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var iP=Z.useLayoutEffect,Qse=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","
157setValue","theme"],Zk=function(){};function Zse(t,e){return e?e[0]==="-"?t+e:t+"__"+e:t}function eae(t,e){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];var s=[].concat(i);if(e&&t)for(var a in e)e.hasOwnProperty(a)&&e[a]&&s.push("".concat(Zse(t,a)));return s.filter(function(l){return l}).map(function(l){return String(l).trim()}).join(" ")}var hO=function(e){return cae(e)?e.filter(Boolean):Bh(e)==="object"&&e!==null?[e]:[]},b$=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var n=rc(e,Qse);return gt({},n)},ti=function(e,n,i){var r=e.cx,s=e.getStyles,a=e.getClassNames,l=e.className;return{css:s(n,e),className:r(i??{},a(n,e),l)}};function WS(t){return[document.documentElement,document.body,window].indexOf(t)>-1}function tae(t){return WS(t)?window.innerHeight:t.clientHeight}function v$(t){return WS(t)?window.pageYOffset:t.scrollTop}function e1(t,e){if(WS(t)){window.scrollTo(0,e);return}t.scrollTop=e}function nae(t){var e=getComputedStyle(t),n=e.position==="absolute",i=/(auto|scroll)/;if(e.position==="fixed")return document.documentElement;for(var r=t;r=r.parentElement;)if(e=getComputedStyle(r),!(n&&e.position==="static")&&i.test(e.overflow+e.overflowY+e.overflowX))return r;return document.documentElement}function iae(t,e,n,i){return n*((t=t/i-1)*t*t+1)+e}function b0(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Zk,r=v$(t),s=e-r,a=10,l=0;function c(){l+=a;var d=iae(l,r,s,n);e1(t,d),l<n?window.requestAnimationFrame(c):i(t)}c()}function pO(t,e){var n=t.getBoundingClientRect(),i=e.getBoundingClientRect(),r=e.offsetHeight/3;i.bottom+r>n.bottom?e1(t,Math.min(e.offsetTop+e.clientHeight-t.offsetHeight+r,t.scrollHeight)):i.top-r<n.top&&e1(t,Math.max(e.offsetTop-r,0))}function rae(t){var e=t.getBoundingClientRect();return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width}}function mO(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function sae(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var w$=!1,aae={get passive(){return w$=!0}},v0=typeof window<"u"?window:{};v0.addEventListener&&v0.removeEventListener&&(v0.addEventListener("p",Zk,aae),v0.removeEventListener("p",Zk,!1));var oae=w$;function lae(t){return t!=null}function cae(t){return Array.isArray(t)}function w0(t,e,n){return t?e:n}var dae=function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];var s=Object.entries(e).filter(function(a){var l=Fl(a,1),c=l[0];return!i.includes(c)});return s.reduce(function(a,l){var c=Fl(l,2),d=c[0],u=c[1];return a[d]=u,a},{})},uae=["children","innerProps"],hae=["children","innerProps"];function pae(t){var e=t.maxHeight,n=t.menuEl,i=t.minHeight,r=t.placement,s=t.shouldScroll,a=t.isFixedPosition,l=t.controlHeight,c=nae(n),d={placement:"bottom",maxHeight:e};if(!n||!n.offsetParent)return d;var u=c.getBoundingClientRect(),h=u.height,p=n.getBoundingClientRect(),y=p.bottom,m=p.height,w=p.top,k=n.offsetParent.getBoundingClientRect(),b=k.top,x=a?window.innerHeight:tae(c),v=v$(c),E=parseInt(getComputedStyle(n).marginBottom,10),N=parseInt(getComputedStyle(n).marginTop,10),S=b-N,_=x-w,$=S+v,V=h-v-w,I=y-x+v+E,A=v+w-N,L=160;switch(r){case"auto":case"bottom":if(_>=m)return{placement:"bottom",maxHeight:e};if(V>=m&&!a)return s&&b0(c,I,L),{placement:"bottom",maxHeight:e};if(!a&&V>=i||a&&_>=i){s&&b0(c,I,L);var T=a?_-E:V-E;return{placement:"bottom",maxHeight:T}}if(r==="auto"||a){var g=e,f=a?S:$;return f>=i&&(g=Math.min(f-E-l,e)),{placement:"top",maxHeight:g}}if(r==="bottom")return s&&e1(c,I),{placement:"bottom",maxHeight:e};break;case"top":if(S>=m)return{placement:"top",maxHeight:e};if($>=m&&!a)return s&&b0(c,A,L),{placement:"top",maxHeight:e};if(!a&&$>=i||a&&S>=i){var j=e;return(!a&&$>=i||a&&S>=i)&&(j=a?S-N:$-N),s&&b0(c,A,L),{placement:"top",maxHeight:j}}return{placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return d}function mae(t){var e={bottom:"top",top:"bottom"};return t?e[t]:"bottom"}var k$=function(e){return e==="auto"?"bottom":e},fae=function(e,n){var i,r=e.placement,s=e.theme,a=s.borderRadius,l=s.spacing,c=s.colors;return gt((i={label:"menu"},Ug(i,mae(r),"100%"),Ug(i,"position","absolute"),Ug(i,"width","100%"),Ug(i,"zIndex",1),i),n?{}:{backgroundColor:c.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},S$=Z.createContext(null),gae=function(e){var n=e.children,i=e.minMenuHeight,r=e.maxMenuHeight,s=e.menuPlacement,a=e.menuPosition,l=e.menuShouldScrollIntoView,c=e.theme,d=Z.useContext(S$)||{},u=d.setPortalPlacement,h=Z.useRef(null),p=Z.useState(r),y=Fl(p,2),m=y[0],w=y[1],k=Z.useState(null),b=Fl(k,2),x=b[0],v=b[1],E=c.spacing.controlHeight;return iP(function(){var N=h.current;if(N){var S=a==="fixed",_=l&&!S,$=pae({maxHeight:r,menuEl:N,minHeight:i,placement:s,shouldScroll:_,isFixedPosition:S,controlHeight:E});w($.maxHeight),v($.placement),u==null||u($.placement)}},[r,s,a,l,i,u,E]),n({ref:h,placerProps:gt(gt({},e),{},{placement:x||k$(s),maxHeight:m})})},xae=function(e){var n=e.children,i=e.innerRef,r=e.innerProps;return ft("div",bt({},ti(e,"menu",{menu:!0}),{ref:i},r),n)},yae=xae,bae=function(e,n){var i=e.maxHeight,r=e.theme.spacing.baseUnit;return gt({maxHeight:i,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:r,paddingTop:r})},vae=function(e){var n=e.children,i=e.innerProps,r=e.innerRef,s=e.isMulti;return ft("div",bt({},ti(e,"menuList",{"menu-list":!0,"menu-list--is-multi":s}),{ref:r},i),n)},C$=function(e,n){var i=e.theme,r=i.spacing.baseUnit,s=i.colors;return gt({textAlign:"center"},n?{}:{color:s.neutral40,padding:"".concat(r*2,"px ").concat(r*3,"px")})},wae=C$,kae=C$,Sae=function(e){var n=e.children,i=n===void 0?"No options":n,r=e.innerProps,s=rc(e,uae);return ft("div",bt({},ti(gt(gt({},s),{},{children:i,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),i)},Cae=function(e){var n=e.children,i=n===void 0?"Loading...":n,r=e.innerProps,s=rc(e,hae);return ft("div",bt({},ti(gt(gt({},s),{},{children:i,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),i)},jae=function(e){var n=e.rect,i=e.offset,r=e.position;return{left:n.left,position:r,top:i,width:n.width,zIndex:1}},Tae=function(e){var n=e.appendTo,i=e.children,r=e.controlElement,s=e.innerProps,a=e.menuPlacement,l=e.menuPosition,c=Z.useRef(null),d=Z.useRef(null),u=Z.useState(k$(a)),h=Fl(u,2),p=h[0],y=h[1],m=Z.useMemo(function(){return{setPortalPlacement:y}},[]),w=Z.useState(null),k=Fl(w,2),b=k[0],x=k[1],v=Z.useCallback(function(){if(r){var _=rae(r),$=l==="fixed"?0:window.pageYOffset,V=_[p]+$;(V!==(b==null?void 0:b.offset)||_.left!==(b==null?void 0:b.rect.left)||_.width!==(b==null?void 0:b.rect.width))&&x({offset:V,rect:_})}},[r,l,p,b==null?void 0:b.offset,b==null?void 0:b.rect.left,b==null?void 0:b.rect.width]);iP(function(){v()},[v]);var E=Z.useCallback(function(){typeof d.current=="function"&&(d.current(),d.current=null),r&&c.current&&(d.current=s5(r,c.current,v,{elementResize:"ResizeObserver"in window}))},[r,v]);iP(function(){E()},[E]);var N=Z.useCallback(function(_){c.current=_,E()},[E]);if(!n&&l!=="fixed"||!b)return null;var S=ft("div",bt({ref:N},ti(gt(gt({},e),{},{offset:b.offset,position:l,rect:b.rect}),"menuPortal",{"menu-portal":!0}),s),i);return ft(S$.Provider,{value:m},n?$o.createPortal(S,n):S)},Pae=function(e){var n=e.isDisabled,i=e.isRtl;return{label:"container",direction:i?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}}
157,Eae=function(e){var n=e.children,i=e.innerProps,r=e.isDisabled,s=e.isRtl;return ft("div",bt({},ti(e,"container",{"--is-disabled":r,"--is-rtl":s}),i),n)},Aae=function(e,n){var i=e.theme.spacing,r=e.isMulti,s=e.hasValue,a=e.selectProps.controlShouldRenderValue;return gt({alignItems:"center",display:r&&s&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(i.baseUnit/2,"px ").concat(i.baseUnit*2,"px")})},Nae=function(e){var n=e.children,i=e.innerProps,r=e.isMulti,s=e.hasValue;return ft("div",bt({},ti(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":s}),i),n)},Mae=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Dae=function(e){var n=e.children,i=e.innerProps;return ft("div",bt({},ti(e,"indicatorsContainer",{indicators:!0}),i),n)},fO,_ae=["size"],Iae=["innerProps","isRtl","size"],Rae={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},j$=function(e){var n=e.size,i=rc(e,_ae);return ft("svg",bt({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Rae},i))},yM=function(e){return ft(j$,bt({size:20},e),ft("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},T$=function(e){return ft(j$,bt({size:20},e),ft("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},P$=function(e,n){var i=e.isFocused,r=e.theme,s=r.spacing.baseUnit,a=r.colors;return gt({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:i?a.neutral60:a.neutral20,padding:s*2,":hover":{color:i?a.neutral80:a.neutral40}})},Oae=P$,Lae=function(e){var n=e.children,i=e.innerProps;return ft("div",bt({},ti(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),i),n||ft(T$,null))},Fae=P$,Bae=function(e){var n=e.children,i=e.innerProps;return ft("div",bt({},ti(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),i),n||ft(yM,null))},$ae=function(e,n){var i=e.isDisabled,r=e.theme,s=r.spacing.baseUnit,a=r.colors;return gt({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:i?a.neutral10:a.neutral20,marginBottom:s*2,marginTop:s*2})},Hae=function(e){var n=e.innerProps;return ft("span",bt({},n,ti(e,"indicatorSeparator",{"indicator-separator":!0})))},zae=Xse(fO||(fO=Jse([` 158 0%, 80%, 100% { opacity: 0; } 159 40% { opacity: 1; } 160`]))),Vae=function(e,n){var i=e.isFocused,r=e.size,s=e.theme,a=s.colors,l=s.spacing.baseUnit;return gt({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},n?{}:{color:i?a.neutral60:a.neutral20,padding:l*2})},T2=function(e){var n=e.delay,i=e.offset;return ft("span",{css:xM({animation:"".concat(zae," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:i?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Uae=function(e){var n=e.innerProps,i=e.isRtl,r=e.size,s=r===void 0?4:r,a=rc(e,Iae);return ft("div",bt({},ti(gt(gt({},a),{},{innerProps:n,isRtl:i,size:s}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),ft(T2,{delay:0,offset:i}),ft(T2,{delay:160,offset:!0}),ft(T2,{delay:320,offset:!i}))},Wae=function(e,n){var i=e.isDisabled,r=e.isFocused,s=e.theme,a=s.colors,l=s.borderRadius,c=s.spacing;return gt({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:c.
160controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:i?a.neutral5:a.neutral0,borderColor:i?a.neutral10:r?a.primary:a.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},Gae=function(e){var n=e.children,i=e.isDisabled,r=e.isFocused,s=e.innerRef,a=e.innerProps,l=e.menuIsOpen;return ft("div",bt({ref:s},ti(e,"control",{control:!0,"control--is-disabled":i,"control--is-focused":r,"control--menu-is-open":l}),a,{"aria-disabled":i||void 0}),n)},qae=Gae,Kae=["data"],Yae=function(e,n){var i=e.theme.spacing;return n?{}:{paddingBottom:i.baseUnit*2,paddingTop:i.baseUnit*2}},Xae=function(e){var n=e.children,i=e.cx,r=e.getStyles,s=e.getClassNames,a=e.Heading,l=e.headingProps,c=e.innerProps,d=e.label,u=e.theme,h=e.selectProps;return ft("div",bt({},ti(e,"group",{group:!0}),c),ft(a,bt({},l,{selectProps:h,theme:u,getStyles:r,getClassNames:s,cx:i}),d),ft("div",null,n))},Jae=function(e,n){var i=e.theme,r=i.colors,s=i.spacing;return gt({label:"group",cursor:"default",display:"block"},n?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:s.baseUnit*3,paddingRight:s.baseUnit*3,textTransform:"uppercase"})},Qae=function(e){var n=b$(e);n.data;var i=rc(n,Kae);return ft("div",bt({},ti(e,"groupHeading",{"group-heading":!0}),i))},Zae=Xae,eoe=["innerRef","isDisabled","isHidden","inputClassName"],toe=function(e,n){var i=e.isDisabled,r=e.value,s=e.theme,a=s.spacing,l=s.colors;return gt(gt({visibility:i?"hidden":"visible",transform:r?"translateZ(0)":""},noe),n?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:l.neutral80})},E$={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},noe={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":gt({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},E$)},ioe=function(e){return gt({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},E$)},roe=function(e){var n=e.cx,i=e.value,r=b$(e),s=r.innerRef,a=r.isDisabled,l=r.isHidden,c=r.inputClassName,d=rc(r,eoe);return ft("div",bt({},ti(e,"input",{"input-container":!0}),{"data-value":i||""}),ft("input",bt({className:n({input:!0},c),ref:s,style:ioe(l),disabled:a},d)))},soe=roe,aoe=function(e,n){var i=e.theme,r=i.spacing,s=i.borderRadius,a=i.colors;return gt({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:a.neutral10,borderRadius:s/2,margin:r.baseUnit/2})},ooe=function(e,n){var i=e.theme,r=i.borderRadius,s=i.colors,a=e.cropWithEllipsis;return gt({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:r/2,color:s.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},loe=function(e,n){var i=e.theme,r=i.spacing,s=i.borderRadius,a=i.colors,l=e.isFocused;return gt({alignItems:"center",display:"flex"},n?{}:{borderRadius:s/2,backgroundColor:l?a.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},A$=function(e){var n=e.children,i=e.innerProps;return ft("div",i,n)},coe=A$,doe=A$;function uoe(t){var e=t.children,n=t.innerProps;return ft("div",bt({role:"button"},n),e||ft(yM,{size:14}))}var hoe=function(e){var n=e.children,i=e.components,r=e.data,s=e.innerProps,a=e.isDisabled,l=e.removeProps,c=e.selectProps,d=i.Container,u=i.Label,h=i.Remove;return ft(d,{data:r,innerProps:gt(gt({},ti(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),s),selectProps:c},ft(u,{data:r,innerProps:gt({},ti(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:c},n),ft(h,{data:r,innerProps:gt(gt({},ti(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},l),selectProps:c}))},poe=hoe,moe=function(e,n){var i=e.isDisabled,r=e.isFocused,s=e.isSelected,a=e.theme,l=a.spacing,c=a.colors;return gt({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:s?c.primary:r?c.primary25:"transparent",color:i?c.neutral20:s?c.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:i?void 0:s?c.primary:c.primary50}})},foe=function(e){var n=e.children,i=e.isDisabled,r=e.isFocused,s=e.isSelected,a=e.innerRef,l=e.innerProps;return ft("div",bt({},ti(e,"option",{option:!0,"option--is-disabled":i,"option--is-focused":r,"option--is-selected":s}),{ref:a,"aria-disabled":i},l),n)},goe=foe,xoe=function(e,n){var i=e.theme,r=i.spacing,s=i.colors;return gt({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:s.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},yoe=function(e){var n=e.children,i=e.innerProps;return ft("div",bt({},ti(e,"placeholder",{placeholder:!0}),i),n)},boe=yoe,voe=function(e,n){var i=e.isDisabled,r=e.theme,s=r.spacing,a=r.colors;return gt({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:i?a.neutral40:a.neutral80,marginLeft:s.baseUnit/2,marginRight:s.baseUnit/2})},woe=function(e){var n=e.children,i=e.isDisabled,r=e.innerProps;return ft("div",bt({},ti(e,"singleValue",{"single-value":!0,"single-value--is-disabled":i}),r),n)}
vendor: 12,497 bytes, line 160
160,koe=woe,Soe={ClearIndicator:Bae,Control:qae,DropdownIndicator:Lae,DownChevron:T$,CrossIcon:yM,Group:Zae,GroupHeading:Qae,IndicatorsContainer:Dae,IndicatorSeparator:Hae,Input:soe,LoadingIndicator:Uae,Menu:yae,MenuList:vae,MenuPortal:Tae,LoadingMessage:Cae,NoOptionsMessage:Sae,MultiValue:poe,MultiValueContainer:coe,MultiValueLabel:doe,MultiValueRemove:uoe,Option:goe,Placeholder:boe,SelectContainer:Eae,SingleValue:koe,ValueContainer:Nae},Coe=function(e){return gt(gt({},Soe),e.components)},gO=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function joe(t,e){return!!(t===e||gO(t)&&gO(e))}function Toe(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!joe(t[n],e[n]))return!1;return!0}function Poe(t,e){e===void 0&&(e=Toe);var n=null;function i(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];if(n&&n.lastThis===this&&e(r,n.lastArgs))return n.lastResult;var a=t.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return i.clear=function(){n=null},i}var Eoe={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},Aoe=function(e){return ft("span",bt({css:Eoe},e))},xO=Aoe,Noe={guidance:function(e){var n=e.isSearchable,i=e.isMulti,r=e.tabSelectsValue,s=e.context,a=e.isInitialFocus;switch(s){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(e["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(i?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var n=e.action,i=e.label,r=i===void 0?"":i,s=e.labels,a=e.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(s.length>1?"s":""," ").concat(s.join(","),", selected.");case"select-option":return a?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(e){var n=e.context,i=e.focused,r=e.options,s=e.label,a=s===void 0?"":s,l=e.selectValue,c=e.isDisabled,d=e.isSelected,u=e.isAppleDevice,h=function(w,k){return w&&w.length?"".concat(w.indexOf(k)+1," of ").concat(w.length):""};if(n==="value"&&l)return"value ".concat(a," focused, ").concat(h(l,i),".");if(n==="menu"&&u){var p=c?" disabled":"",y="".concat(d?" selected":"").concat(p);return"".concat(a).concat(y,", ").concat(h(r,i),".")}return""},onFilter:function(e){var n=e.inputValue,i=e.resultsMessage;return"".concat(i).concat(n?" for search term "+n:"",".")}},Moe=function(e){var n=e.ariaSelection,i=e.focusedOption,r=e.focusedValue,s=e.focusableOptions,a=e.isFocused,l=e.selectValue,c=e.selectProps,d=e.id,u=e.isAppleDevice,h=c.ariaLiveMessages,p=c.getOptionLabel,y=c.inputValue,m=c.isMulti,w=c.isOptionDisabled,k=c.isSearchable,b=c.menuIsOpen,x=c.options,v=c.screenReaderStatus,E=c.tabSelectsValue,N=c.isLoading,S=c["aria-label"],_=c["aria-live"],$=Z.useMemo(function(){return gt(gt({},Noe),h||{})},[h]),V=Z.useMemo(function(){var f="";if(n&&$.onChange){var j=n.option,P=n.options,C=n.removedValue,D=n.removedValues,M=n.value,z=function(H){return Array.isArray(H)?null:H},J=C||j||z(M),F=J?p(J):"",q=P||D||void 0,U=q?q.map(p):[],Q=gt({isDisabled:J&&w(J,l),label:F,labels:U},n);f=$.onChange(Q)}return f},[n,$,w,l,p]),I=Z.useMemo(function(){var f="",j=i||r,P=!!(i&&l&&l.includes(i));if(j&&$.onFocus){var C={focused:j,label:p(j),isDisabled:w(j,l),isSelected:P,options:s,context:j===i?"menu":"value",selectValue:l,isAppleDevice:u};f=$.onFocus(C)}return f},[i,r,p,w,$,s,l,u]),A=Z.useMemo(function(){var f="";if(b&&x.length&&!N&&$.onFilter){var j=v({count:s.length});f=$.onFilter({inputValue:y,resultsMessage:j})}return f},[s,y,b,$,x,v,N]),L=(n==null?void 0:n.action)==="initial-input-focus",T=Z.useMemo(function(){var f="";if($.guidance){var j=r?"value":b?"menu":"input";f=$.guidance({"aria-label":S,context:j,isDisabled:i&&w(i,l),isMulti:m,isSearchable:k,tabSelectsValue:E,isInitialFocus:L})}return f},[S,i,r,m,w,k,b,$,l,E,L]),g=ft(Z.Fragment,null,ft("span",{id:"aria-selection"},V),ft("span",{id:"aria-focused"},I),ft("span",{id:"aria-results"},A),ft("span",{id:"aria-guidance"},T));return ft(Z.Fragment,null,ft(xO,{id:d},L&&g),ft(xO,{"aria-live":_,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!L&&g))},Doe=Moe,rP=[{base:"A",letters:"Aâ¶ï¼¡ÃÃÃẦẤẪẨÃÄÄáº°áº®áº´áº²È¦Ç ÃÇẢÃ
ǺÇÈÈẠẬẶá¸ÄȺⱯ"},{base:"AA",letters:"ê²"},{base:"AE",letters:"ÃǼǢ"},{base:"AO",letters:"ê´"},{base:"AU",letters:"ê¶"},{base:"AV",letters:"ê¸êº"},{base:"AY",letters:"ê¼"},{base:"B",letters:"Bâ·ï¼¢á¸á¸á¸ÉÆÆ"},{base:"C",letters:"Câ¸ï¼£ÄÄÄÄÃá¸ÆÈ»ê¾"},{base:"D",letters:"Dâ¹ï¼¤á¸Äá¸á¸á¸á¸ÄÆÆÆê¹"},{base:"DZ",letters:"DZÇ"},{base:"Dz",letters:"DzÇ
"},{base:"E",letters:"Eâºï¼¥ÃÃÃá»áº¾á»á»áº¼Äá¸á¸ÄÄÃẺÄÈÈẸá»È¨á¸Äá¸á¸ÆÆ"},{base:"F",letters:"Fâ»ï¼¦á¸Æê»"},{base:"G",letters:"Gâ¼ï¼§Ç´ÄḠÄÄ Ç¦Ä¢Ç¤Æê ê½ê¾"},{base:"H",letters:"Hâ½ï¼¨Ä¤á¸¢á¸¦ÈḤḨḪĦⱧⱵê"},{base:"I",letters:"Iâ¾ï¼©ÃÃÃĨĪĬİÃḮá»ÇÈÈá»Ä®á¸¬Æ"},{base:"J",letters:"Jâ¿ï¼ªÄ´É"},{base:"K",letters:"KâKḰǨḲĶḴÆâ±©êêêê¢"},{base:"L",letters:"LâLĿĹĽḶḸĻḼḺÅȽⱢⱠêêê"},{base:"LJ",letters:"Ç"},{base:"Lj",letters:"Ç"},{base:"M",letters:"Mâï¼á¸¾á¹á¹â±®Æ"},{base:"N",letters:"NâNǸÅÃá¹Åá¹Å
á¹á¹È Æêê¤"},{base:"NJ",letters:"Ç"},{base:"Nj",letters:"Ç"},{base:"O",letters:"OâOÃÃÃá»á»á»á»Ãá¹È¬á¹Åá¹á¹ÅȮȰÃȪá»ÅÇÈÈÆ á»á»á» á»á»¢á»á»ÇªÇ¬ÃÇ¾ÆÆêê"},{base:"OI",letters:"Æ¢"},{base:"OO",letters:"ê"},{base:"OU",letters:"È¢"},{base:"P",letters:"Pâ
ï¼°á¹á¹Æ¤â±£êêê"},{base:"Q",letters:"Qâï¼±êêÉ"},{base:"R",letters:"Râï¼²Åá¹ÅÈÈá¹á¹Åá¹ÉⱤêê¦ê"},{base:"S",letters:"Sâï¼³áºÅṤÅṠŠṦṢṨÈÅâ±¾ê¨ê"},{base:"T",letters:"TâTṪŤṬÈŢṰṮŦƬƮȾê"},{base:"TZ",letters:"ê¨"},{base:"U",letters:"Uâï¼µÃÃÃŨṸŪṺŬÃÇÇÇÇỦŮŰÇÈÈÆ¯á»ªá»¨á»®á»¬á»°á»¤á¹²Å²á¹¶á¹´É"},{base:"V",letters:"VâVṼṾƲêÉ
"},{base:"VY",letters:"ê "},{base:"W",letters:"Wâï¼·áºáºÅ´áºáºáºâ±²"},{base:"X",letters:"XâXáºáº"},{base:"Y",letters:"YâYỲÃŶỸȲáºÅ¸á»¶á»´Æ³ÉỾ"},{base:"Z",letters:"ZâZŹáºÅ»Å½áºáºÆµÈ¤â±¿â±«ê¢"},{base:"a",letters:"aâï½áºÃ áâầấẫẩãÄÄằắẵẳȧǡäÇảåǻÇÈÈạáºáº·á¸Ä
â±¥É"},{base:"aa",letters:"ê³"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"êµ"},{base:"au",letters:"ê·"},{base:"av",letters:"ê¹ê»"},{base:"ay",letters:"ê½"},{base:"b",letters:"bâï½á¸á¸
á¸ÆÆÉ"},{base:"c",letters:"câï½ÄÄÄÄÃ§á¸ÆÈ¼ê¿â"},{base:"d",letters:"dâï½á¸Äá¸á¸á¸á¸ÄÆÉÉêº"},{base:"dz",letters:"dzÇ"},{base:"e",letters:"eâï½
èéêá»áº¿á»
á»áº½Äá¸á¸ÄÄëẻÄÈ
Èẹá»È©á¸Äá¸á¸ÉÉÇ"},{base:"f",letters:"fâï½á¸Æê¼"},{base:"g",letters:"gâï½ÇµÄḡÄÄ¡Ç§Ä£Ç¥É ê¡áµ¹ê¿"},{base:"h",letters:"hâï½Ä¥á¸£á¸§ÈḥḩḫáºÄ§â±¨â±¶É¥"},{base:"hv",letters:"Æ"},{base:"i",letters:"iâï½Ã¬ÃîĩīÄïḯá»ÇÈÈá»Ä¯á¸É¨Ä±"},{base:"j",letters:"jâï½ÄµÇ°É"},{base:"k",letters:"kâï½á¸±Ç©á¸³Ä·á¸µÆâ±ªêêê
ê£"},{base:"l",letters:"lâï½ÅÄºÄ¾á¸·á¸¹Ä¼á¸½á¸»Å¿ÅÆÉ«â±¡êêê"},{base:"lj",letters:"Ç"},{base:"m",letters:"mâï½á¸¿á¹á¹É±É¯"},{base:"n",letters:"nâï½Ç¹Åñá¹
Åá¹Åá¹á¹ÆÉ²Åêê¥"},{base:"nj",letters:"Ç"},{base:"o",letters:"oâï½Ã²Ã³Ã´á»á»á»á»Ãµá¹Èá¹Åá¹á¹Åȯȱöȫá»ÅÇÈÈÆ¡á»á»á»¡á»á»£á»á»Ç«ÇøǿÉêêɵ"},{base:"oi",letters:"Æ£"},{base:"ou",letters:"È£"},{base:"oo",letters:"ê"},{base:"p",letters:"pâï½á¹á¹Æ¥áµ½êêê"},{base:"q",letters:"qâ ï½Éêê"},{base:"r",letters:"râ¡ï½Åá¹ÅÈÈá¹á¹Åá¹Éɽêê§ê"},{base:"s",letters:"sâ¢ï½ÃÅá¹¥ÅṡšṧṣṩÈÅÈ¿ê©ê
áº"},{base:"t",letters:"tâ£ï½á¹«áºÅ¥á¹ÈţṱṯŧÆÊⱦê"},{base:"tz",letters:"ê©"},{base:"u",letters:"uâ¤ï½Ã¹ÃºÃ»Å©á¹¹Å«á¹»ÅüÇÇÇÇủůűÇÈÈÆ°á»«á»©á»¯á»á»±á»¥á¹³Å³á¹·á¹µÊ"},{base:"v",letters:"vâ¥ï½á¹½á¹¿ÊêÊ"},{base:"vy",letters:"ê¡"},{base:"w",letters:"wâ¦ï½áºáºÅµáºáº
áºáºâ±³"},{base:"x",letters:"xâ§ï½áºáº"},{base:"y",letters:"yâ¨ï½á»³Ã½Å·á»¹È³áºÃ¿á»·áºá»µÆ´Éỿ"},{base:"z",letters:"zâ©ï½ÅºáºÅ¼Å¾áºáºÆ¶È¥Éⱬê£"}],_oe=new RegExp("["+rP.map(function(t){return t.letters}).join("")+"]","g"),N$={};for(var P2=0;P2<rP.length;P2++)for(var E2=rP[P2],A2=0;A2<E2.letters.length;A2++)N$[E2.letters[A2]]=E2.base;var M$=function(e){return e.replace(_oe,function(n){return N$[n]})},Ioe=Poe(M$),yO=function(e){return e.replace(/^\s+|\s+$/g,"")},Roe=function(e){return"".concat(e.label," ").concat(e.value)},Ooe=function(e){return function(n,i){if(n.data.__isNew__)return!0;var r=gt({ignoreCase:!0,ignoreAccents:!0,stringify:Roe,trim:!0,matchFrom:"any"},e),s=r.ignoreCase,a=r.ignoreAccents,l=r.stringify,c=r.trim,d=r.matchFrom,u=c?yO(i):i,h=c?yO(l(n)):l(n);return s&&(u=u.toLowerCase(),h=h.toLowerCase()),a&&(u=Ioe(u),h=M$(h)),d==="start"?h.substr(0,u.length)===u:h.indexOf(u)>-1}},Loe=["innerRef"];function Foe(t){var e=t.innerRef,n=rc(t,Loe),i=dae(n,"onExited","in","enter","exit","appear");return ft("input",bt({ref:e},i,{css:xM({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Boe=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};function $oe(t){var e=t.isEnabled,n=t.onBottomArrive,i=t.onBottomLeave,r=t.onTopArrive,s=t.onTopLeave,a=Z.useRef(!1),l=Z.useRef(!1),c=Z.useRef(0),d=Z.useRef(null),u=Z.useCallback(function(k,b){if(d.current!==null){var x=d.current,v=x.scrollTop,E=x.scrollHeight,N=x.clientHeight,S=d.current,_=b>0,$=E-N-v,V=!1;$>b&&a.current&&(i&&i(k),a.current=!1),_&&l.current&&(s&&s(k),l.current=!1),_&&b>$?(n&&!a.current&&n(k),S.scrollTop=E,V=!0,a.current=!0):!_&&-b>v&&(r&&!l.current&&r(k),S.scrollTop=0,V=!0,l.current=!0),V&&Boe(k)}},[n,i,r,s]),h=Z.useCallback(function(k){u(k,k.deltaY)},[u]),p=Z.useCallback(function(k){c.current=k.changedTouches[0].clientY},[]),y=Z.useCallback(function(k){var b=c.current-k.changedTouches[0].clientY;u(k,b)},[u]),m=Z.useCallback(function(k){if(k){var b=oae?{passive:!1}:!1;k.addEventListener("wheel",h,b),k.addEventListener("touchstart",p,b),k.addEventListener("touchmove",y,b)}},[y,p,h]),w=Z.useCallback(function(k){k&&(k.removeEventListener("wheel",h,!1),k.removeEventListener("touchstart",p,!1),k.removeEventListener("touchmove",y,!1))},[y,p,h]);return Z.useEffect(function(){if(e){var k=d.current;return m(k),function(){w(k)}}},[e,m,w]),function(k){d.current=k}}var bO=["boxSizing","height","overflow","paddingRight","position"],vO={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function wO(t){t.cancelable&&t.preventDefault()}function kO(t){t.stopPropagation()}function SO(){var t=this.scrollTop,e=this.scrollHeight,n=t+this.offsetHeight;t===0?this.scrollTop=1:n===e&&(this.scrollTop=t-1)}function CO(){return"ontouchstart"in window||navigator.maxTouchPoints}var jO=!!(typeof window<"u"&&window.document&&window.document.createElement),Cg=0,Cp={capture:!1,passive:!1};function Hoe(t){var e=t.isEnabled,n=t.accountForScrollbars,i=n===void 0?!0:n,r=Z.useRef({}),s=Z.useRef(null),a=Z.useCallback(function(c){if(jO){var d=document.body,u=d&&d.style;if(i&&bO.forEach(function(m){var w=u&&u[m];r.current[m]=w}),i&&Cg<1){var h=parseInt(r.current.paddingRight,10)||0,p=document.body?document.body.clientWidth:0,y=window.innerWidth-p+h||0;Object.keys(vO).forEach(function(m){var w=vO[m];u&&(u[m]=w)}),u&&(u.paddingRight="".concat(y,"px"))}d&&CO()&&(d.addEventListener("touchmove",wO,Cp),c&&(c.addEventListener("touchstart",SO,Cp),c.addEventListener("touchmove",kO,Cp))),Cg+=1}},[i]),l=Z.useCallback(function(c){if(jO){var d=document.body,u=d&&d.style;Cg=Math.max(Cg-1,0),i&&Cg<1&&bO.forEach(function(h){var p=r.current[h];
160u&&(u[h]=p)}),d&&CO()&&(d.removeEventListener("touchmove",wO,Cp),c&&(c.removeEventListener("touchstart",SO,Cp),c.removeEventListener("touchmove",kO,Cp)))}},[i]);return Z.useEffect(function(){if(e){var c=s.current;return a(c),function(){l(c)}}},[e,a,l]),function(c){s.current=c}}var zoe=function(e){var n=e.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},Voe={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Uoe(t){var e=t.children,n=t.lockEnabled,i=t.captureEnabled,r=i===void 0?!0:i,s=t.onBottomArrive,a=t.onBottomLeave,l=t.onTopArrive,c=t.onTopLeave,d=$oe({isEnabled:r,onBottomArrive:s,onBottomLeave:a,onTopArrive:l,onTopLeave:c}),u=Hoe({isEnabled:n}),h=function(y){d(y),u(y)};return ft(Z.Fragment,null,n&&ft("div",{onClick:zoe,css:Voe}),e(h))}var Woe={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Goe=function(e){var n=e.name,i=e.onFocus;return ft("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:i,css:Woe,value:"",onChange:function(){}})},qoe=Goe;function bM(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function Koe(){return bM(/^iPhone/i)}function D$(){return bM(/^Mac/i)}function Yoe(){return bM(/^iPad/i)||D$()&&navigator.maxTouchPoints>1}function Xoe(){return Koe()||Yoe()}function Joe(){return D$()||Xoe()}var Qoe=function(e){return e.label},Zoe=function(e){return e.label},ele=function(e){return e.value},tle=function(e){return!!e.isDisabled},nle={clearIndicator:Fae,container:Pae,control:Wae,dropdownIndicator:Oae,group:Yae,groupHeading:Jae,indicatorsContainer:Mae,indicatorSeparator:$ae,input:toe,loadingIndicator:Vae,loadingMessage:kae,menu:fae,menuList:bae,menuPortal:jae,multiValue:aoe,multiValueLabel:ooe,multiValueRemove:loe,noOptionsMessage:wae,option:moe,placeholder:xoe,singleValue:voe,valueContainer:Aae},ile={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},rle=4,_$=4,sle=38,ale=_$*2,ole={baseUnit:_$,controlHeight:sle,menuGutter:ale},N2={borderRadius:rle,colors:ile,spacing:ole},lle={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:mO(),captureMenuScroll:!mO(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Ooe(),formatGroupLabel:Qoe,getOptionLabel:Zoe,getOptionValue:ele,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:tle,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!sae(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var n=e.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function TO(t,e,n,i){var r=O$(t,e,n),s=L$(t,e,n),a=R$(t,e),l=t1(t,e);return{type:"option",data:e,isDisabled:r,isSelected:s,label:a,value:l,index:i}}function mw(t,e){return t.options.map(function(n,i){if("options"in n){var r=n.options.map(function(a,l){return TO(t,a,e,l)}).filter(function(a){return EO(t,a)});return r.length>0?{type:"group",data:n,options:r,index:i}:void 0}var s=TO(t,n,e,i);return EO(t,s)?s:void 0}).filter(lae)}function I$(t){return t.reduce(function(e,n){return n.type==="group"?e.push.apply(e,hM(n.options.map(function(i){return i.data}))):e.push(n.data),e},[])}function PO(t,e){return t.reduce(function(n,i){return i.type==="group"?n.push.apply(n,hM(i.options.map(function(r){return{data:r.data,id:"".concat(e,"-").concat(i.index,"-").concat(r.index)}}))):n.push({data:i.data,id:"".concat(e,"-").concat(i.index)}),n},[])}function cle(t,e){return I$(mw(t,e))}function EO(t,e){var n=t.inputValue,i=n===void 0?"":n,r=e.data,s=e.isSelected,a=e.label,l=e.value;
160return(!B$(t)||!s)&&F$(t,{label:a,value:l,data:r},i)}function dle(t,e){var n=t.focusedValue,i=t.selectValue,r=i.indexOf(n);if(r>-1){var s=e.indexOf(n);if(s>-1)return n;if(r<e.length)return e[r]}return null}function ule(t,e){var n=t.focusedOption;return n&&e.indexOf(n)>-1?n:e[0]}var M2=function(e,n){var i,r=(i=e.find(function(s){return s.data===n}))===null||i===void 0?void 0:i.id;return r||null},R$=function(e,n){return e.getOptionLabel(n)},t1=function(e,n){return e.getOptionValue(n)};function O$(t,e,n){return typeof t.isOptionDisabled=="function"?t.isOptionDisabled(e,n):!1}function L$(t,e,n){if(n.indexOf(e)>-1)return!0;if(typeof t.isOptionSelected=="function")return t.isOptionSelected(e,n);var i=t1(t,e);return n.some(function(r){return t1(t,r)===i})}function F$(t,e,n){return t.filterOption?t.filterOption(e,n):!0}var B$=function(e){var n=e.hideSelectedOptions,i=e.isMulti;return n===void 0?i:n},hle=1,$$=function(t){Xre(n,t);var e=Zre(n);function n(i){var r;if(Kre(this,n),r=e.call(this,i),r.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.isAppleDevice=Joe(),r.controlRef=null,r.getControlRef=function(c){r.controlRef=c},r.focusedOptionRef=null,r.getFocusedOptionRef=function(c){r.focusedOptionRef=c},r.menuListRef=null,r.getMenuListRef=function(c){r.menuListRef=c},r.inputRef=null,r.getInputRef=function(c){r.inputRef=c},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(c,d){var u=r.props,h=u.onChange,p=u.name;d.name=p,r.ariaOnChange(c,d),h(c,d)},r.setValue=function(c,d,u){var h=r.props,p=h.closeMenuOnSelect,y=h.isMulti,m=h.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:m}),p&&(r.setState({inputIsHiddenAfterUpdate:!y}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(c,{action:d,option:u})},r.selectOption=function(c){var d=r.props,u=d.blurInputOnSelect,h=d.isMulti,p=d.name,y=r.state.selectValue,m=h&&r.isOptionSelected(c,y),w=r.isOptionDisabled(c,y);if(m){var k=r.getOptionValue(c);r.setValue(y.filter(function(b){return r.getOptionValue(b)!==k}),"deselect-option",c)}else if(!w)h?r.setValue([].concat(hM(y),[c]),"select-option",c):r.setValue(c,"select-option");else{r.ariaOnChange(c,{action:"select-option",option:c,name:p});return}u&&r.blurInput()},r.removeValue=function(c){var d=r.props.isMulti,u=r.state.selectValue,h=r.getOptionValue(c),p=u.filter(function(m){return r.getOptionValue(m)!==h}),y=w0(d,p,p[0]||null);r.onChange(y,{action:"remove-value",removedValue:c}),r.focusInput()},r.clearValue=function(){var c=r.state.selectValue;r.onChange(w0(r.props.isMulti,[],null),{action:"clear",removedValues:c})},r.popValue=function(){var c=r.props.isMulti,d=r.state.selectValue,u=d[d.length-1],h=d.slice(0,d.length-1),p=w0(c,h,h[0]||null);u&&r.onChange(p,{action:"pop-value",removedValue:u})},r.getFocusedOptionId=function(c){return M2(r.state.focusableOptionsWithIds,c)},r.getFocusableOptionsWithIds=function(){return PO(mw(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var c=arguments.length,d=new Array(c),u=0;u<c;u++)d[u]=arguments[u];return eae.apply(void 0,[r.props.classNamePrefix].concat(d))},r.getOptionLabel=function(c){return R$(r.props,c)},r.getOptionValue=function(c){return t1(r.props,c)},r.getStyles=function(c,d){var u=r.props.unstyled,h=nle[c](d,u);h.boxSizing="border-box";var p=r.props.styles[c];return p?p(h,d):h},r.getClassNames=function(c,d){var u,h;return(u=(h=r.props.classNames)[c])===null||u===void 0?void 0:u.call(h,d)},r.getElementId=function(c){return"".concat(r.state.instancePrefix,"-").concat(c)},r.getComponents=function(){return Coe(r.props)},r.buildCategorizedOptions=function(){return mw(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return I$(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(c,d){r.setState({ariaSelection:gt({value:c},d)})},r.onMenuMouseDown=function(c){c.button===0&&(c.stopPropagation(),c.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(c){r.blockOptionHover=!1},r.onControlMouseDown=function(c){if(!c.defaultPrevented){var d=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?c.target.tagName!=="INPUT"&&c.target.tagName!=="TEXTAREA"&&r.onMenuClose():d&&r.openMenu("first"):(d&&(r.openAfterFocus=!0),r.focusInput()),c.target.tagName!=="INPUT"&&c.target.tagName!=="TEXTAREA"&&c.preventDefault()}},r.onDropdownIndicatorMouseDown=function(c){if(!(c&&c.type==="mousedown"&&c.button!==0)&&!r.props.isDisabled){var d=r.props,u=d.isMulti,h=d.menuIsOpen;
vendor: 13,839 bytes, line 160
160r.focusInput(),h?(r.setState({inputIsHiddenAfterUpdate:!u}),r.onMenuClose()):r.openMenu("first"),c.preventDefault()}},r.onClearIndicatorMouseDown=function(c){c&&c.type==="mousedown"&&c.button!==0||(r.clearValue(),c.preventDefault(),r.openAfterFocus=!1,c.type==="touchend"?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(c){typeof r.props.closeMenuOnScroll=="boolean"?c.target instanceof HTMLElement&&WS(c.target)&&r.props.onMenuClose():typeof r.props.closeMenuOnScroll=="function"&&r.props.closeMenuOnScroll(c)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(c){var d=c.touches,u=d&&d.item(0);u&&(r.initialTouchX=u.clientX,r.initialTouchY=u.clientY,r.userIsDragging=!1)},r.onTouchMove=function(c){var d=c.touches,u=d&&d.item(0);if(u){var h=Math.abs(u.clientX-r.initialTouchX),p=Math.abs(u.clientY-r.initialTouchY),y=5;r.userIsDragging=h>y||p>y}},r.onTouchEnd=function(c){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(c.target)&&r.menuListRef&&!r.menuListRef.contains(c.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(c){r.userIsDragging||r.onControlMouseDown(c)},r.onClearIndicatorTouchEnd=function(c){r.userIsDragging||r.onClearIndicatorMouseDown(c)},r.onDropdownIndicatorTouchEnd=function(c){r.userIsDragging||r.onDropdownIndicatorMouseDown(c)},r.handleInputChange=function(c){var d=r.props.inputValue,u=c.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(u,{action:"input-change",prevInputValue:d}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(c){r.props.onFocus&&r.props.onFocus(c),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(c){var d=r.props.inputValue;if(r.menuListRef&&r.menuListRef.contains(document.activeElement)){r.inputRef.focus();return}r.props.onBlur&&r.props.onBlur(c),r.onInputChange("",{action:"input-blur",prevInputValue:d}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1})},r.onOptionHover=function(c){if(!(r.blockOptionHover||r.state.focusedOption===c)){var d=r.getFocusableOptions(),u=d.indexOf(c);r.setState({focusedOption:c,focusedOptionId:u>-1?r.getFocusedOptionId(c):null})}},r.shouldHideSelectedOptions=function(){return B$(r.props)},r.onValueInputFocus=function(c){c.preventDefault(),c.stopPropagation(),r.focus()},r.onKeyDown=function(c){var d=r.props,u=d.isMulti,h=d.backspaceRemovesValue,p=d.escapeClearsValue,y=d.inputValue,m=d.isClearable,w=d.isDisabled,k=d.menuIsOpen,b=d.onKeyDown,x=d.tabSelectsValue,v=d.openMenuOnFocus,E=r.state,N=E.focusedOption,S=E.focusedValue,_=E.selectValue;if(!w&&!(typeof b=="function"&&(b(c),c.defaultPrevented))){switch(r.blockOptionHover=!0,c.key){case"ArrowLeft":if(!u||y)return;r.focusValue("previous");break;case"ArrowRight":if(!u||y)return;r.focusValue("next");break;case"Delete":case"Backspace":if(y)return;if(S)r.removeValue(S);else{if(!h)return;u?r.popValue():m&&r.clearValue()}break;case"Tab":if(r.isComposing||c.shiftKey||!k||!x||!N||v&&r.isOptionSelected(N,_))return;r.selectOption(N);break;case"Enter":if(c.keyCode===229)break;if(k){if(!N||r.isComposing)return;r.selectOption(N);break}return;case"Escape":k?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:y}),r.onMenuClose()):m&&p&&r.clearValue();break;case" ":if(y)return;if(!k){r.openMenu("first");break}if(!N)return;r.selectOption(N);break;case"ArrowUp":k?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":k?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!k)return;r.focusOption("pageup");break;case"PageDown":if(!k)return;r.focusOption("pagedown");break;case"Home":if(!k)return;r.focusOption("first");break;case"End":if(!k)return;r.focusOption("last");break;default:return}c.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++hle),r.state.selectValue=hO(i.value),i.menuIsOpen&&r.state.selectValue.length){var s=r.getFocusableOptionsWithIds(),a=r.buildFocusableOptions(),l=a.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=s,r.state.focusedOption=a[l],r.state.focusedOptionId=M2(s,a[l])}return r}return Yre(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&pO(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(r){var s=this.props,a=s.isDisabled,l=s.menuIsOpen,c=this.state.isFocused;(c&&!a&&r.isDisabled||c&&l&&!r.menuIsOpen)&&this.focusInput(),c&&a&&!r.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!c&&!a&&r.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(pO(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(r,s){this.props.onInputChange(r,s)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(r){var s=this,a=this.state,l=a.selectValue,c=a.isFocused,d=this.buildFocusableOptions(),u=r==="first"?0:d.length-1;if(!this.props.isMulti){var h=d.indexOf(l[0]);h>-1&&(u=h)}this.scrollToFocusedOptionOnUpdate=!(c&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:d[u],focusedOptionId:this.getFocusedOptionId(d[u])},function(){return s.onMenuOpen()})}},{key:"focusValue",value:function(r){var s=this.state,a=s.selectValue,l=s.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var c=a.indexOf(l);l||(c=-1);var d=a.length-1,u=-1;if(a.length){switch(r){case"previous":c===0?u=0:c===-1?u=d:u=c-1;break;case"next":c>-1&&c<d&&(u=c+1);break}this.setState({inputIsHidden:u!==-1,focusedValue:a[u]})}}}},{key:"focusOption",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",s=this.props.pageSize,a=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var c=0,d=l.indexOf(a);a||(d=-1),r==="up"?c=d>0?d-1:l.length-1:r==="down"?c=(d+1)%l.length:r==="pageup"?(c=d-s,c<0&&(c=0)):r==="pagedown"?(c=d+s,c>l.length-1&&(c=l.length-1)):r==="last"&&(c=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[c],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[c])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(N2):gt(gt({},N2),this.props.theme):N2}},{key:"getCommonProps",value:function(){var r=this.clearValue,s=this.cx,a=this.getStyles,l=this.getClassNames,c=this.getValue,d=this.selectOption,u=this.setValue,h=this.props,p=h.isMulti,y=h.isRtl,m=h.options,w=this.hasValue();return{clearValue:r,cx:s,getStyles:a,getClassNames:l,getValue:c,hasValue:w,isMulti:p,isRtl:y,options:m,selectOption:d,selectProps:h,setValue:u,theme:this.getTheme()}}},{key:"hasValue",value:function(){var r=this.state.selectValue;return r.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var r=this.props,s=r.isClearable,a=r.isMulti;return s===void 0?a:s}},{key:"isOptionDisabled",value:function(r,s){return O$(this.props,r,s)}},{key:"isOptionSelected",value:function(r,s){return L$(this.props,r,s)}},{key:"filterOption",value:function(r,s){return F$(this.props,r,s)}},{key:"formatOptionLabel",value:function(r,s){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(r,{context:s,inputValue:a,selectValue:l})}else return this.getOptionLabel(r)}},{key:"formatGroupLabel",value:function(r){return this.props.formatGroupLabel(r)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var r=this.props,s=r.isDisabled,a=r.isSearchable,l=r.inputId,c=r.inputValue,d=r.tabIndex,u=r.form,h=r.menuIsOpen,p=r.required,y=this.getComponents(),m=y.Input,w=this.state,k=w.inputIsHidden,b=w.ariaSelection,x=this.commonProps,v=l||this.getElementId("input"),E=gt(gt(gt({"aria-autocomplete":"list","aria-expanded":h,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":p,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},h&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(b==null?void 0:b.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?Z.createElement(m,bt({},x,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:s,isHidden:k,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:d,form:u,type:"text",value:c},E)):Z.createElement(Foe,bt({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Zk,onFocus:this.onInputFocus,disabled:s,tabIndex:d,inputMode:"none",form:u,value:""},E))}},{key:"renderPlaceholderOrValue",value:function(){var r=this,s=this.getComponents(),a=s.MultiValue,l=s.MultiValueContainer,c=s.MultiValueLabel,d=s.MultiValueRemove,u=s.SingleValue,h=s.Placeholder,p=this.commonProps,y=this.props,m=y.controlShouldRenderValue,w=y.isDisabled,k=y.isMulti,b=y.inputValue,x=y.placeholder,v=this.state,E=v.selectValue,N=v.focusedValue,S=v.isFocused;if(!this.hasValue()||!m)return b?null:Z.createElement(h,bt({},p,{key:"placeholder",isDisabled:w,isFocused:S,innerProps:{id:this.getElementId("placeholder")}}),x);if(k)return E.map(function($,V){var I=$===N,A="".concat(r.getOptionLabel($),"-").concat(r.getOptionValue($));return Z.createElement(a,bt({},p,{components:{Container:l,Label:c,Remove:d},isFocused:I,isDisabled:w,key:A,index:V,removeProps:{onClick:function(){return r.removeValue($)},onTouchEnd:function(){return r.removeValue($)},onMouseDown:function(T){T.preventDefault()}},data:$}),r.formatOptionLabel($,"value"))});if(b)return null;var _=E[0];return Z.createElement(u,bt({},p,{data:_,isDisabled:w}),this.formatOptionLabel(_,"value"))}},{key:"renderClearIndicator",value:function(){var r=this.getComponents(),s=r.ClearIndicator,a=this.commonProps,l=this.props,c=l.isDisabled,d=l.isLoading,u=this.state.isFocused;if(!this.isClearable()||!s||c||!this.hasValue()||d)return null;var h={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return Z.createElement(s,bt({},a,{innerProps:h,isFocused:u}))}},{key:"renderLoadingIndicator",value:function(){var r=this.getComponents(),s=r.LoadingIndicator,a=this.commonProps,l=this.props,c=l.isDisabled,d=l.isLoading,u=this.state.isFocused;if(!s||!d)return null;var h={"aria-hidden":"true"};return Z.createElement(s,bt({},a,{innerProps:h,isDisabled:c,isFocused:u}))}},{key:"renderIndicatorSeparator",value:function(){var r=this.getComponents(),s=r.DropdownIndicator,a=r.IndicatorSeparator;if(!s||!a)return null;var l=this.commonProps,c=this.props.isDisabled,d=this.state.isFocused;return Z.createElement(a,bt({},l,{isDisabled:c,isFocused:d}))}},{key:"renderDropdownIndicator",value:function(){var r=this.getComponents(),s=r.DropdownIndicator;if(!s)return null;var a=this.commonProps,l=this.props.isDisabled,c=this.state.isFocused,d={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return Z.createElement(s,bt({},a,{innerProps:d,isDisabled:l,isFocused:c}))}},{key:"renderMenu",value:function(){var r=this,s=this.getComponents(),a=s.Group,l=s.GroupHeading,c=s.Menu,d=s.MenuList,u=s.MenuPortal,h=s.LoadingMessage,p=s.NoOptionsMessage,y=s.Option,m=this.commonProps,w=this.state.focusedOption,k=this.props,b=k.captureMenuScroll,x=k.inputValue,v=k.isLoading,E=k.loadingMessage,N=k.minMenuHeight,S=k.maxMenuHeight,_=k.menuIsOpen,$=k.menuPlacement,V=k.menuPosition,I=k.menuPortalTarget,A=k.menuShouldBlockScroll,L=k.menuShouldScrollIntoView,T=k.noOptionsMessage,g
vendor: 4,355 bytes, line 160
160=k.onMenuScrollToTop,f=k.onMenuScrollToBottom;if(!_)return null;var j=function(F,q){var U=F.type,Q=F.data,ce=F.isDisabled,H=F.isSelected,B=F.label,K=F.value,ie=w===Q,R=ce?void 0:function(){return r.onOptionHover(Q)},G=ce?void 0:function(){return r.selectOption(Q)},W="".concat(r.getElementId("option"),"-").concat(q),Y={id:W,onClick:G,onMouseMove:R,onMouseOver:R,tabIndex:-1,role:"option","aria-selected":r.isAppleDevice?void 0:H};return Z.createElement(y,bt({},m,{innerProps:Y,data:Q,isDisabled:ce,isSelected:H,key:W,label:B,type:U,value:K,isFocused:ie,innerRef:ie?r.getFocusedOptionRef:void 0}),r.formatOptionLabel(F.data,"menu"))},P;if(this.hasOptions())P=this.getCategorizedOptions().map(function(J){if(J.type==="group"){var F=J.data,q=J.options,U=J.index,Q="".concat(r.getElementId("group"),"-").concat(U),ce="".concat(Q,"-heading");return Z.createElement(a,bt({},m,{key:Q,data:F,options:q,Heading:l,headingProps:{id:ce,data:J.data},label:r.formatGroupLabel(J.data)}),J.options.map(function(H){return j(H,"".concat(U,"-").concat(H.index))}))}else if(J.type==="option")return j(J,"".concat(J.index))});else if(v){var C=E({inputValue:x});if(C===null)return null;P=Z.createElement(h,m,C)}else{var D=T({inputValue:x});if(D===null)return null;P=Z.createElement(p,m,D)}var M={minMenuHeight:N,maxMenuHeight:S,menuPlacement:$,menuPosition:V,menuShouldScrollIntoView:L},z=Z.createElement(gae,bt({},m,M),function(J){var F=J.ref,q=J.placerProps,U=q.placement,Q=q.maxHeight;return Z.createElement(c,bt({},m,M,{innerRef:F,innerProps:{onMouseDown:r.onMenuMouseDown,onMouseMove:r.onMenuMouseMove},isLoading:v,placement:U}),Z.createElement(Uoe,{captureEnabled:b,onTopArrive:g,onBottomArrive:f,lockEnabled:A},function(ce){return Z.createElement(d,bt({},m,{innerRef:function(B){r.getMenuListRef(B),ce(B)},innerProps:{role:"listbox","aria-multiselectable":m.isMulti,id:r.getElementId("listbox")},isLoading:v,maxHeight:Q,focusedOption:w}),P)}))});return I||V==="fixed"?Z.createElement(u,bt({},m,{appendTo:I,controlElement:this.controlRef,menuPlacement:$,menuPosition:V}),z):z}},{key:"renderFormField",value:function(){var r=this,s=this.props,a=s.delimiter,l=s.isDisabled,c=s.isMulti,d=s.name,u=s.required,h=this.state.selectValue;if(u&&!this.hasValue()&&!l)return Z.createElement(qoe,{name:d,onFocus:this.onValueInputFocus});if(!(!d||l))if(c)if(a){var p=h.map(function(w){return r.getOptionValue(w)}).join(a);return Z.createElement("input",{name:d,type:"hidden",value:p})}else{var y=h.length>0?h.map(function(w,k){return Z.createElement("input",{key:"i-".concat(k),name:d,type:"hidden",value:r.getOptionValue(w)})}):Z.createElement("input",{name:d,type:"hidden",value:""});return Z.createElement("div",null,y)}else{var m=h[0]?this.getOptionValue(h[0]):"";return Z.createElement("input",{name:d,type:"hidden",value:m})}}},{key:"renderLiveRegion",value:function(){var r=this.commonProps,s=this.state,a=s.ariaSelection,l=s.focusedOption,c=s.focusedValue,d=s.isFocused,u=s.selectValue,h=this.getFocusableOptions();return Z.createElement(Doe,bt({},r,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:l,focusedValue:c,isFocused:d,selectValue:u,focusableOptions:h,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var r=this.getComponents(),s=r.Control,a=r.IndicatorsContainer,l=r.SelectContainer,c=r.ValueContainer,d=this.props,u=d.className,h=d.id,p=d.isDisabled,y=d.menuIsOpen,m=this.state.isFocused,w=this.commonProps=this.getCommonProps();return Z.createElement(l,bt({},w,{className:u,innerProps:{id:h,onKeyDown:this.onKeyDown},isDisabled:p,isFocused:m}),this.renderLiveRegion(),Z.createElement(s,bt({},w,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:p,isFocused:m,menuIsOpen:y}),Z.createElement(c,bt({},w,{isDisabled:p}),this.renderPlaceholderOrValue(),this.renderInput()),Z.createElement(a,bt({},w,{isDisabled:p}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(r,s){var a=s.prevProps,l=s.clearFocusValueOnUpdate,c=s.inputIsHiddenAfterUpdate,d=s.ariaSelection,u=s.isFocused,h=s.prevWasFocused,p=s.instancePrefix,y=r.options,m=r.value,w=r.menuIsOpen,k=r.inputValue,b=r.isMulti,x=hO(m),v={};
160if(a&&(m!==a.value||y!==a.options||w!==a.menuIsOpen||k!==a.inputValue)){var E=w?cle(r,x):[],N=w?PO(mw(r,x),"".concat(p,"-option")):[],S=l?dle(s,x):null,_=ule(s,E),$=M2(N,_);v={selectValue:x,focusedOption:_,focusedOptionId:$,focusableOptionsWithIds:N,focusedValue:S,clearFocusValueOnUpdate:!1}}var V=c!=null&&r!==a?{inputIsHidden:c,inputIsHiddenAfterUpdate:void 0}:{},I=d,A=u&&h;return u&&!A&&(I={value:w0(b,x,x[0]||null),options:x,action:"initial-input-focus"},A=!h),(d==null?void 0:d.action)==="initial-input-focus"&&(I=null),gt(gt(gt({},v),V),{},{prevProps:r,ariaSelection:I,prevWasFocused:A})}}]),n}(Z.Component);$$.defaultProps=lle;var ple=Z.forwardRef(function(t,e){var n=qre(t);return Z.createElement($$,bt({ref:e},n))}),Pp=ple;const $h=({isOpen:t,closeModal:e,children:n,title:i=""})=>o.jsx(Sh,{appear:!0,show:t,as:Z.Fragment,children:o.jsxs(cs,{as:"div",className:"relative z-[100010]",onClose:()=>{},children:[o.jsx(Sh.Child,{as:Z.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:o.jsx("div",{className:"fixed inset-0 bg-pmi-gray bg-opacity-5"})}),o.jsx("div",{className:"fixed inset-0 overflow-y-auto",children:o.jsx("div",{className:"flex min-h-full items-center justify-center p-4 text-center bg-black/25",children:o.jsx(Sh.Child,{as:Z.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:o.jsxs(cs.Panel,{className:"w-full max-w-screen-md transform overflow-hidden rounded-2xl bg-white p-6 text-left align-middle shadow-xl transition-all",children:[i&&o.jsxs(cs.Title,{as:"div",className:"leading-6 text-pmi-black border-b py-2 flex justify-between",children:[o.jsx("h3",{className:"text-xl font-medium",children:i}),o.jsx("span",{className:"cursor-pointer",onClick:e,children:o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),o.jsx("div",{className:"mt-4",children:n}),o.jsx("div",{className:"flex justify-end mb-3",children:o.jsx("button",{className:"bg-pmi-red text-white px-5 py-2 rounded-md",onClick:e,children:"Close"})})]})})})})]})}),mle=async t=>{const e=an({type:t}),n=await He.get(`/api/legal${e}`);if(!n)throw new Error("Network response was not ok");return n==null?void 0:n.data},H$=t=>Ge({queryKey:["legal",t],queryFn:()=>mle(t),staleTime:1e3*60*60,gcTime:1e3*60*60}),ng=()=>{const{language:t}=_e(),{data:e}=H$(1);return o.jsx("div",{className:"flex flex-col flex-wrap gap-4 items-center justify-center mt-8 mb-4 py-8",children:o.jsxs("div",{className:"flex flex-col justify-center items-center max-w-6xl w-full border shadow-lg px-6 py-16",children:[o.jsx("h2",{className:"font-bold text-3xl text-pmi-red text-center",children:e&&t=="en"?e==null?void 0:e.title:e==null?void 0:e.title_indo}),o.jsx(Et,{customClassName:"relative space-y-8 max-w-6xl mt-12 border-b px-2 py-4",content:t==="en"?e==null?void 0:e.content:e==null?void 0:e.content_indo})]})})},vM=()=>{const{language:t}=_e(),{data:e}=H$(2);return o.jsx("div",{className:"flex flex-col flex-wrap gap-4 items-center justify-center mt-8 mb-4 py-8",children:o.jsxs("div",{className:"flex flex-col justify-center items-center max-w-6xl w-full border shadow-lg px-6 py-16",children:[o.jsx("h2",{className:"font-bold text-3xl text-pmi-red text-center",children:e&&t=="en"?e==null?void 0:e.title:e==null?void 0:e.title_indo}),o.jsx(Et,{customClassName:"relative space-y-8 max-w-6xl mt-12 border-b px-2 py-4",content:t==="en"?e==null?void 0:e.content:e==null?void 0:e.content_indo})]})})};var fle=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(i,r,s){n.o(i,r)||Object.defineProperty(i,r,{enumerable:!0,get:s})},n.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},n.t=function(i,r){if(1&r&&(i=n(i)),8&r||4&r&&typeof i=="object"&&i&&i.__esModule)return i;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:i}
160),2&r&&typeof i!="string")for(var a in i)n.d(s,a,(function(l){return i[l]}).bind(null,a));return s},n.n=function(i){var r=i&&i.__esModule?function(){return i.default}:function(){return i};return n.d(r,"a",r),r},n.o=function(i,r){return Object.prototype.hasOwnProperty.call(i,r)},n.p="",n(n.s=9)}([function(t,e){t.exports=Z},function(t,e,n){var i;/*! 161 Copyright (c) 2017 Jed Watson. 162 Licensed under the MIT License (MIT), see 163 http://jedwatson.github.io/classnames 164*/(function(){var r={}.hasOwnProperty;function s(){for(var a=[],l=0;l<arguments.length;l++){var c=arguments[l];if(c){var d=typeof c;if(d==="string"||d==="number")a.push(c);else if(Array.isArray(c)&&c.length){var u=s.apply(null,c);u&&a.push(u)}else if(d==="object")for(var h in c)r.call(c,h)&&c[h]&&a.push(h)}}return a.join(" ")}t.exports?(s.default=s,t.exports=s):(i=(function(){return s}).apply(e,[]))===void 0||(t.exports=i)})()},function(t,e,n){(function(i){var r=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt,d=typeof i=="object"&&i&&i.Object===Object&&i,u=typeof self=="object"&&self&&self.Object===Object&&self,h=d||u||Function("return this")(),p=Object.prototype.toString,y=h.Symbol,m=y?y.prototype:void 0,w=m?m.toString:void 0;function k(E){if(typeof E=="string")return E;if(x(E))return w?w.call(E):"";var N=E+"";return N=="0"&&1/E==-1/0?"-0":N}function b(E){var N=typeof E;return!!E&&(N=="object"||N=="function")}function x(E){return typeof E=="symbol"||function(N){return!!N&&typeof N=="object"}(E)&&p.call(E)=="[object Symbol]"}function v(E){return E?(E=function(N){if(typeof N=="number")return N;if(x(N))return NaN;if(b(N)){var S=typeof N.valueOf=="function"?N.valueOf():N;N=b(S)?S+"":S}if(typeof N!="string")return N===0?N:+N;N=N.replace(r,"");var _=a.test(N);return _||l.test(N)?c(N.slice(2),_?2:8):s.test(N)?NaN:+N}(E))===1/0||E===-1/0?17976931348623157e292*(E<0?-1:1):E==E?E:0:E===0?E:0}t.exports=function(E,N,S){var _,$,V,I;return E=(_=E)==null?"":k(_),$=function(A){var L=v(A),T=L%1;return L==L?T?L-T:L:0}(S),V=0,I=E.length,$==$&&(I!==void 0&&($=$<=I?$:I),V!==void 0&&($=$>=V?$:V)),S=$,N=k(N),E.slice(S,S+N.length)==N}}).call(this,n(3))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch{typeof window=="object"&&(n=window)}t.exports=n},function(t,e,n){(function(i){var r=/^\[object .+?Constructor\]$/,s=typeof i=="object"&&i&&i.Object===Object&&i,a=typeof self=="object"&&self&&self.Object===Object&&self,l=s||a||Function("return this")(),c,d=Array.prototype,u=Function.prototype,h=Object.prototype,p=l["__core-js_shared__"],y=(c=/[^.]+$/.exec(p&&p.keys&&p.keys.IE_PROTO||""))?"Symbol(src)_1."+c:"",m=u.toString,w=h.hasOwnProperty,k=h.toString,b=RegExp("^"+m.call(w).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),x=d.splice,v=A(l,"Map"),E=A(Object,"create");function N(g){var f=-1,j=g?g.length:0;for(this.clear();++f<j;){var P=g[f];this.set(P[0],P[1])}}function S(g){var f=-1,j=g?g.length:0;for(this.clear();++f<j;){var P=g[f];this.set(P[0],P[1])}}function _(g){var f=-1,j=g?g.length:0;for(this.clear();++f<j;){var P=g[f];this.set(P[0],P[1])}}function $(g,f){for(var j,P,C=g.length;C--;)if((j=g[C][0])===(P=f)||j!=j&&P!=P)return C;return-1}function V(g){return!(!T(g)||(f=g,y&&y in f))&&(function(j){var P=T(j)?k.call(j):"";return P=="[object Function]"||P=="[object GeneratorFunction]"}(g)||function(j){var P=!1;if(j!=null&&typeof j.toString!="function")try{P=!!(j+"")}catch{}return P}(g)?b:r).test(function(j){if(j!=null){try{return m.call(j)}catch{}try{return j+""}catch{}}return""}(g));var f}function I(g,f){var j,P,C=g.__data__;return((P=typeof(j=f))=="string"||P=="number"||P=="symbol"||P=="boolean"?j!=="__proto__":j===null)?C[typeof f=="string"?"string":"hash"]:C.map}function A(g,f){var j=function(P,C){return P==null?void 0:P[C]}(g,f);return V(j)?j:void 0}function L(g,f){if(typeof g!="function"||f&&typeof f!="function")throw new TypeError("Expected a function");var j=function(){var P=arguments,C=f?f.apply(this,P):P[0],D=j.cache;if(D.has(C))return D.get(C);var M=g.apply(this,P);return j.cache=D.set(C,M),M};return j.cache=new(L.Cache||_),j}function T(g){var f=typeof g;return!!g&&(f=="object"||f=="function")}N.prototype.clear=function(){this.__data__=E?E(null):{}},N.prototype.delete=function(g){return this.has(g)&&delete this.__data__[g]},N.prototype.get=function(g){var f=this.__data__;if(E){var j=f[g];return j==="__lodash_hash_undefined__"?void 0:j}return w.call(f,g)?f[g]:void 0},N.prototype.has=function(g){var f=this.__data__;return E?f[g]!==void 0:w.call(f,g)},N.prototype.set=function(g,f){return this.__data__[g]=E&&f===void 0?"__lodash_hash_undefined__":f,this},S.prototype.clear=function(){this.__data__=[]},S.prototype.delete=function(g){var f=this.__data__,j=$(f,g);return!(j<0)&&(j==f.length-1?f.pop():x.call(f,j,1),!0)},S.prototype.get=function(g){var f=this.__data__,j=$(f,g);return j<0?void 0:f[j][1]},S.prototype.has=function(g){return $(this.__data__,g)>-1},S.prototype.set=function(g,f){var j=this.__data__,P=$(j,g);return P<0?j.push([g,f]):j[P][1]=f,this},_.prototype.clear=function(){this.__data__={hash:new N,map:new(v||S),string:new N}},_.prototype.delete=function(g){return I(this,g).delete(g)},_.prototype.get=function(g){return I(this,g).get(g)},_.prototype.has=function(g){return I(this,g).has(g)},_.prototype.set=function(g,f){return I(this,g).set(g,f),this},L.Cache=_,t.exports=L}).call(this,n(3))}
164,function(t,e,n){(function(i){var r=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt,d=typeof i=="object"&&i&&i.Object===Object&&i,u=typeof self=="object"&&self&&self.Object===Object&&self,h=d||u||Function("return this")(),p=Object.prototype.toString,y=Math.max,m=Math.min,w=function(){return h.Date.now()};function k(x){var v=typeof x;return!!x&&(v=="object"||v=="function")}function b(x){if(typeof x=="number")return x;if(function(N){return typeof N=="symbol"||function(S){return!!S&&typeof S=="object"}(N)&&p.call(N)=="[object Symbol]"}(x))return NaN;if(k(x)){var v=typeof x.valueOf=="function"?x.valueOf():x;x=k(v)?v+"":v}if(typeof x!="string")return x===0?x:+x;x=x.replace(r,"");var E=a.test(x);return E||l.test(x)?c(x.slice(2),E?2:8):s.test(x)?NaN:+x}t.exports=function(x,v,E){var N,S,_,$,V,I,A=0,L=!1,T=!1,g=!0;if(typeof x!="function")throw new TypeError("Expected a function");function f(z){var J=N,F=S;return N=S=void 0,A=z,$=x.apply(F,J)}function j(z){return A=z,V=setTimeout(C,v),L?f(z):$}function P(z){var J=z-I;return I===void 0||J>=v||J<0||T&&z-A>=_}function C(){var z=w();if(P(z))return D(z);V=setTimeout(C,function(J){var F=v-(J-I);return T?m(F,_-(J-A)):F}(z))}function D(z){return V=void 0,g&&N?f(z):(N=S=void 0,$)}function M(){var z=w(),J=P(z);if(N=arguments,S=this,I=z,J){if(V===void 0)return j(I);if(T)return V=setTimeout(C,v),f(I)}return V===void 0&&(V=setTimeout(C,v)),$}return v=b(v)||0,k(E)&&(L=!!E.leading,_=(T="maxWait"in E)?y(b(E.maxWait)||0,v):_,g="trailing"in E?!!E.trailing:g),M.cancel=function(){V!==void 0&&clearTimeout(V),A=0,N=I=S=V=void 0},M.flush=function(){return V===void 0?$:D(w())},M}}).call(this,n(3))},function(t,e,n){(function(i,r){var s="[object Arguments]",a="[object Map]",l="[object Object]",c="[object Set]",d=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/,h=/^\./,p=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,y=/\\(\\)?/g,m=/^\[object .+?Constructor\]$/,w=/^(?:0|[1-9]\d*)$/,k={};k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k[s]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object Boolean]"]=k["[object DataView]"]=k["[object Date]"]=k["[object Error]"]=k["[object Function]"]=k[a]=k["[object Number]"]=k[l]=k["[object RegExp]"]=k[c]=k["[object String]"]=k["[object WeakMap]"]=!1;var b=typeof i=="object"&&i&&i.Object===Object&&i,x=typeof self=="object"&&self&&self.Object===Object&&self,v=b||x||Function("return this")(),E=e&&!e.nodeType&&e,N=E&&typeof r=="object"&&r&&!r.nodeType&&r,S=N&&N.exports===E&&b.process,_=function(){try{return S&&S.binding("util")}catch{}}(),$=_&&_.isTypedArray;function V(ke,Me,$e,Ve){var lt=-1,ct=ke?ke.length:0;for(Ve&&ct&&($e=ke[++lt]);++lt<ct;)$e=Me($e,ke[lt],lt,ke);return $e}function I(ke,Me){for(var $e=-1,Ve=ke?ke.length:0;++$e<Ve;)if(Me(ke[$e],$e,ke))return!0;return!1}function A(ke,Me,$e,Ve,lt){return lt(ke,function(ct,vt,Jt){$e=Ve?(Ve=!1,ct):Me($e,ct,vt,Jt)}),$e}function L(ke){var Me=!1;if(ke!=null&&typeof ke.toString!="function")try{Me=!!(ke+"")}catch{}return Me}function T(ke){var Me=-1,$e=Array(ke.size);return ke.forEach(function(Ve,lt){$e[++Me]=[lt,Ve]}),$e}function g(ke){var Me=-1,$e=Array(ke.size);return ke.forEach(function(Ve){$e[++Me]=Ve}),$e}var f,j,P,C=Array.prototype,D=Function.prototype,M=Object.prototype,z=v["__core-js_shared__"],J=(f=/[^.]+$/.exec(z&&z.keys&&z.keys.IE_PROTO||""))?"Symbol(src)_1."+f:"",F=D.toString,q=M.hasOwnProperty,U=M.toString,Q=RegExp("^"+F.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ce=v.Symbol,H=v.Uint8Array,B=M.propertyIsEnumerable,K=C.splice,ie=(j=Object.keys,P=Object,function(ke){return j(P(ke))}),R=xt(v,"DataView"),G=xt(v,"Map"),W=xt(v,"Promise"),Y=xt(v,"Set"),X=xt(v,"WeakMap"),re=xt(Object,"create"),ee=Ae(R),se=Ae(G),oe=Ae(W),he=Ae(Y),pe=Ae(X),ne=ce?ce.prototype:void 0,te=ne?ne.valueOf:void 0,ae=ne?ne.toString:void 0;function le(ke){var Me=-1,$e=ke?ke.length:0;for(this.clear();++Me<$e;){var Ve=ke[Me];this.set(Ve[0],Ve[1])}}function de(ke){var Me=-1,$e=ke?ke.length:0;for(this.clear();++Me<$e;){var Ve=ke[Me];this.set(Ve[0],Ve[1])}}function ue(ke){var Me=-1,$e=ke?ke.length:0;for(this.clear();++Me<$e;){var Ve=ke[Me];this.set(Ve[0],Ve[1])}}function me(ke){var Me=-1,$e=ke?ke.length:0;for(this.__data__=new ue;++Me<$e;)this.add(ke[Me])}function ge(ke){this.__data__=new de(ke)}function be(ke,Me){var $e=et(ke)||Xe(ke)?function(vt,Jt){for(var mn=-1,tn=Array(vt);++mn<vt;)tn[mn]=Jt(mn);return tn}(ke.length,String):[],Ve=$e.length,lt=!!Ve;for(var ct in ke)!q.call(ke,ct)||lt&&(ct=="length"||zn(ct,Ve))||$e.push(ct);return $e}function ve(ke,Me){for(var $e=ke.length;$e--;)if(Oe(ke[$e][0],Me))return $e;return-1}le.prototype.clear=function(){this.__data__=re?re(null):{}},le.prototype.delete=function(ke){return this.has(ke)&&delete this.__data__[ke]},le.prototype.get=function(ke){var Me=this.__data__;if(re){var $e=Me[ke];return $e==="__lodash_hash_undefined__"?void 0:$e}return q.call(Me,ke)?Me[ke]:void 0},le.prototype.has=function(ke){var Me=this.__data__;return re?Me[ke]!==void 0:q.call(Me,ke)},le.prototype.set=function(ke,Me){return this.__data__[ke]=re&&Me===void 0?"__lodash_hash_undefined__":Me,this},de.prototype.clear=function(){this.__data__=[]},de.prototype.delete=function(ke){var Me=this.__data__,$e=ve(Me,ke);return!($e<0)&&($e==Me.length-1?Me.pop():K.call(Me,$e,1),!0)},de.prototype.get=function(ke){var Me=this.__data__,$e=ve(Me,ke);return $e<0?void 0:Me[$e][1]},de.prototype.has=function(ke){return ve(this.__data__,ke)>-1},de.prototype.set=function(ke,Me){var $e=this.__data__,Ve=ve($e,ke);return Ve<0?$e.push([ke,Me]):$e[Ve][1]=Me,this},ue.prototype.clear=function(){this.__data__={hash:new le,map:new(G||de),string:new le}},ue.prototype.delete=function(ke){return At(this,ke).delete(ke)},ue.prototype.get=function(ke){return At(this,ke).get(ke)},ue.prototype.has=function(ke){return At(this,ke).has(ke)},ue.prototype.set=function(ke,Me){return At(this,ke).set(ke,Me),this},me.prototype.add=me.prototype.push=function(ke){return this.__data__.set(ke,"__lodash_hash_undefined__"),this},me.prototype.has=function(ke){return this.__data__.has(ke)},ge.prototype.clear=function(){this.__data__=new de},ge.prototype.delete=function(ke){return this.__data__.delete(ke)},ge.prototype.get=function(ke){return this.__data__.get(ke)},ge.prototype.has=function(ke){return this.__data__.has(ke)},ge.prototype.set=function(ke,Me){var $e=this.__data__;if($e instanceof de){var Ve=$e.__data__;
164if(!G||Ve.length<199)return Ve.push([ke,Me]),this;$e=this.__data__=new ue(Ve)}return $e.set(ke,Me),this};var we,Ce=(we=function(ke,Me){return ke&&Pe(ke,Me,Mt)},function(ke,Me){if(ke==null)return ke;if(!ht(ke))return we(ke,Me);for(var $e=ke.length,Ve=-1,lt=Object(ke);++Ve<$e&&Me(lt[Ve],Ve,lt)!==!1;);return ke}),Pe=function(ke){return function(Me,$e,Ve){for(var lt=-1,ct=Object(Me),vt=Ve(Me),Jt=vt.length;Jt--;){var mn=vt[++lt];if($e(ct[mn],mn,ct)===!1)break}return Me}}();function Ne(ke,Me){for(var $e=0,Ve=(Me=pn(Me,ke)?[Me]:rt(Me)).length;ke!=null&&$e<Ve;)ke=ke[je(Me[$e++])];return $e&&$e==Ve?ke:void 0}function Ee(ke,Me){return ke!=null&&Me in Object(ke)}function Te(ke,Me,$e,Ve,lt){return ke===Me||(ke==null||Me==null||!nt(ke)&&!st(Me)?ke!=ke&&Me!=Me:function(ct,vt,Jt,mn,tn,Gt){var mt=et(ct),Lt=et(vt),nn="[object Array]",jt="[object Array]";mt||(nn=(nn=Nt(ct))==s?l:nn),Lt||(jt=(jt=Nt(vt))==s?l:jt);var ii=nn==l&&!L(ct),Uo=jt==l&&!L(vt),eo=nn==jt;if(eo&&!ii)return Gt||(Gt=new ge),mt||It(ct)?tt(ct,vt,Jt,mn,tn,Gt):function(Cn,gn,uC,Fd,Tv,hs,Wo){switch(uC){case"[object DataView]":if(Cn.byteLength!=gn.byteLength||Cn.byteOffset!=gn.byteOffset)return!1;Cn=Cn.buffer,gn=gn.buffer;case"[object ArrayBuffer]":return!(Cn.byteLength!=gn.byteLength||!Fd(new H(Cn),new H(gn)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Oe(+Cn,+gn);case"[object Error]":return Cn.name==gn.name&&Cn.message==gn.message;case"[object RegExp]":case"[object String]":return Cn==gn+"";case a:var ac=T;case c:var rg=2&hs;if(ac||(ac=g),Cn.size!=gn.size&&!rg)return!1;var Pv=Wo.get(Cn);if(Pv)return Pv==gn;hs|=1,Wo.set(Cn,gn);var fp=tt(ac(Cn),ac(gn),Fd,Tv,hs,Wo);return Wo.delete(Cn),fp;case"[object Symbol]":if(te)return te.call(Cn)==te.call(gn)}return!1}(ct,vt,nn,Jt,mn,tn,Gt);if(!(2&tn)){var qM=ii&&q.call(ct,"__wrapped__"),KM=Uo&&q.call(vt,"__wrapped__");
164if(qM||KM){var Wz=qM?ct.value():ct,Gz=KM?vt.value():vt;return Gt||(Gt=new ge),Jt(Wz,Gz,mn,tn,Gt)}}return eo?(Gt||(Gt=new ge),function(Cn,gn,uC,Fd,Tv,hs){var Wo=2&Tv,ac=Mt(Cn),rg=ac.length,Pv=Mt(gn).length;if(rg!=Pv&&!Wo)return!1;for(var fp=rg;fp--;){var oc=ac[fp];if(!(Wo?oc in gn:q.call(gn,oc)))return!1}var YM=hs.get(Cn);if(YM&&hs.get(gn))return YM==gn;var Ev=!0;hs.set(Cn,gn),hs.set(gn,Cn);for(var hC=Wo;++fp<rg;){oc=ac[fp];var Av=Cn[oc],Nv=gn[oc];if(Fd)var XM=Wo?Fd(Nv,Av,oc,gn,Cn,hs):Fd(Av,Nv,oc,Cn,gn,hs);if(!(XM===void 0?Av===Nv||uC(Av,Nv,Fd,Tv,hs):XM)){Ev=!1;break}hC||(hC=oc=="constructor")}if(Ev&&!hC){var Mv=Cn.constructor,Dv=gn.constructor;Mv==Dv||!("constructor"in Cn)||!("constructor"in gn)||typeof Mv=="function"&&Mv instanceof Mv&&typeof Dv=="function"&&Dv instanceof Dv||(Ev=!1)}return hs.delete(Cn),hs.delete(gn),Ev}(ct,vt,Jt,mn,tn,Gt)):!1}(ke,Me,Te,$e,Ve,lt))}function Fe(ke){return!(!nt(ke)||function(Me){return!!J&&J in Me}(ke))&&(Ke(ke)||L(ke)?Q:m).test(Ae(ke))}function Le(ke){return typeof ke=="function"?ke:ke==null?Ht:typeof ke=="object"?et(ke)?function(Ve,lt){return pn(Ve)&&yi(lt)?Bt(je(Ve),lt):function(ct){var vt=function(Jt,mn,tn){var Gt=Jt==null?void 0:Ne(Jt,mn);return Gt===void 0?tn:Gt}(ct,Ve);return vt===void 0&&vt===lt?function(Jt,mn){return Jt!=null&&function(tn,Gt,mt){Gt=pn(Gt,tn)?[Gt]:rt(Gt);for(var Lt,nn=-1,jt=Gt.length;++nn<jt;){var ii=je(Gt[nn]);if(!(Lt=tn!=null&&mt(tn,ii)))break;tn=tn[ii]}return Lt||!!(jt=tn?tn.length:0)&&yt(jt)&&zn(ii,jt)&&(et(tn)||Xe(tn))}(Jt,mn,Ee)}(ct,Ve):Te(lt,vt,void 0,3)}}(ke[0],ke[1]):function(Ve){var lt=function(ct){for(var vt=Mt(ct),Jt=vt.length;Jt--;){var mn=vt[Jt],tn=ct[mn];vt[Jt]=[mn,tn,yi(tn)]}return vt}(Ve);return lt.length==1&<[0][2]?Bt(lt[0][0],lt[0][1]):function(ct){return ct===Ve||function(vt,Jt,mn,tn){var Gt=mn.length,mt=Gt;if(vt==null)return!mt;for(vt=Object(vt);Gt--;){var Lt=mn[Gt];if(Lt[2]?Lt[1]!==vt[Lt[0]]:!(Lt[0]in vt))return!1}for(;++Gt<mt;){var nn=(Lt=mn[Gt])[0],jt=vt[nn],ii=Lt[1];if(Lt[2]){if(jt===void 0&&!(nn in vt))return!1}else{var Uo=new ge,eo;if(!(eo===void 0?Te(ii,jt,tn,3,Uo):eo))return!1}}return!0}(ct,Ve,lt)}}(ke):pn(Me=ke)?($e=je(Me),function(Ve){return Ve==null?void 0:Ve[$e]}):function(Ve){return function(lt){return Ne(lt,Ve)}}(Me);var Me,$e}function Ue(ke){if($e=(Me=ke)&&Me.constructor,Ve=typeof $e=="function"&&$e.prototype||M,Me!==Ve)return ie(ke);var Me,$e,Ve,lt=[];for(var ct in Object(ke))q.call(ke,ct)&&ct!="constructor"&<.push(ct);return lt}function rt(ke){return et(ke)?ke:cn(ke)}function tt(ke,Me,$e,Ve,lt,ct){var vt=2<,Jt=ke.length,mn=Me.length;if(Jt!=mn&&!(vt&&mn>Jt))return!1;var tn=ct.get(ke);if(tn&&ct.get(Me))return tn==Me;var Gt=-1,mt=!0,Lt=1<?new me:void 0;for(ct.set(ke,Me),ct.set(Me,ke);++Gt<Jt;){var nn=ke[Gt],jt=Me[Gt];if(Ve)var ii=vt?Ve(jt,nn,Gt,Me,ke,ct):Ve(nn,jt,Gt,ke,Me,ct);if(ii!==void 0){if(ii)continue;mt=!1;break}if(Lt){if(!I(Me,function(Uo,eo){if(!Lt.has(eo)&&(nn===Uo||$e(nn,Uo,Ve,lt,ct)))return Lt.add(eo)})){mt=!1;break}}else if(nn!==jt&&!$e(nn,jt,Ve,lt,ct)){mt=!1;break}}return ct.delete(ke),ct.delete(Me),mt}function At(ke,Me){var $e,Ve,lt=ke.__data__;return((Ve=typeof($e=Me))=="string"||Ve=="number"||Ve=="symbol"||Ve=="boolean"?$e!=="__proto__":$e===null)?lt[typeof Me=="string"?"string":"hash"]:lt.map}function xt(ke,Me){var $e=function(Ve,lt){return Ve==null?void 0:Ve[lt]}(ke,Me);return Fe($e)?$e:void 0}var Nt=function(ke){return U.call(ke)};function zn(ke,Me){return!!(Me=Me??9007199254740991)&&(typeof ke=="number"||w.test(ke))&&ke>-1&&ke%1==0&&ke<Me}function pn(ke,Me){if(et(ke))return!1;var $e=typeof ke;return!($e!="number"&&$e!="symbol"&&$e!="boolean"&&ke!=null&&!$t(ke))||u.test(ke)||!d.test(ke)||Me!=null&&ke in Object(Me)}function yi(ke){return ke==ke&&!nt(ke)}function Bt(ke,Me){return function($e){return $e!=null&&$e[ke]===Me&&(Me!==void 0||ke in Object($e))}}(R&&Nt(new R(new ArrayBuffer(1)))!="[object DataView]"||G&&Nt(new G)!=a||W&&Nt(W.resolve())!="[object Promise]"||Y&&Nt(new Y)!=c||X&&Nt(new X)!="[object WeakMap]")&&(Nt=function(ke){var Me=U.call(ke),$e=Me==l?ke.constructor:void 0,Ve=$e?Ae($e):void 0;if(Ve)switch(Ve){case ee:return"[object DataView]";case se:return a;case oe:return"[object Promise]";case he:return c;case pe:return"[object WeakMap]"}return Me});var cn=De(function(ke){var Me;ke=(Me=ke)==null?"":function(Ve){if(typeof Ve=="string")return Ve;if($t(Ve))return ae?ae.call(Ve):"";var lt=Ve+"";return lt=="0"&&1/Ve==-1/0?"-0":lt}(Me);var $e=[];return h.test(ke)&&$e.push(""),ke.replace(p,function(Ve,lt,ct,vt){$e.push(ct?vt.replace(y,"$1"):lt||Ve)}),$e});function je(ke){if(typeof ke=="string"||$t(ke))return ke;var Me=ke+"";return Me=="0"&&1/ke==-1/0?"-0":Me}function Ae(ke){if(ke!=null){try{return F.call(ke)}catch{}try{return ke+""}catch{}}return""}function De(ke,Me){if(typeof ke!="function"||Me&&typeof Me!="function")throw new TypeError("Expected a function");var $e=function(){var Ve=arguments,lt=Me?Me.apply(this,Ve):Ve[0],ct=$e.cache;if(ct.has(lt))return ct.get(lt);var vt=ke.apply(this,Ve);return $e.cache=ct.set(lt,vt),vt};return $e.cache=new(De.Cache||ue),$e}function Oe(ke,Me){return ke===Me||ke!=ke&&Me!=Me}function Xe(ke){return function(Me){return st(Me)&&ht(Me)}(ke)&&q.call(ke,"callee")&&(!B.call(ke,"callee")||U.call(ke)==s)}De.Cache=ue;var et=Array.isArray;function ht(ke){return ke!=null&&yt(ke.length)&&!Ke(ke)}function Ke(ke){var Me=nt(ke)?U.call(ke):"";return Me=="[object Function]"||Me=="[object GeneratorFunction]"}function yt(ke){return typeof ke=="number"&&ke>-1&&ke%1==0&&ke<=9007199254740991}function nt(ke){var Me=typeof ke;return!!ke&&(Me=="object"||Me=="function")}function st(ke){return!!ke&&typeof ke=="object"}function $t(ke){return typeof ke=="symbol"||st(ke)&&U.call(ke)=="[object Symbol]"}var It=$?function(ke){return function(Me){return ke(Me)}}($):function(ke){return st(ke)&&yt(ke.length)&&!!k[U.call(ke)]};function Mt(ke){return ht(ke)?be(ke):Ue(ke)}function Ht(ke){return ke}r.exports=function(ke,Me,$e){var Ve=et(ke)?V:A,lt=arguments.length<3;return Ve(ke,Le(Me),$e,lt,Ce)}}).call(this,n(3),n(7)(t))},function(t,e){t.exports=function(n){return n.webpackPolyfill||(n.deprecate=function(){},n.paths=[],n.children||(n.children=[]),Object.defineProperty(n,"loaded",{enumerable:!0,get:function(){return n.l}}),Object.defineProperty(n,"id",{enumerable:!0,get:function(){return n.i}}),n.webpackPolyfill=1),n}},function(t,e){String.prototype.padEnd||(String.prototype.padEnd=function(n,i){return n>>=0,i=String(i!==void 0?i:" "),this.length>n?String(this):((n-=this.length)>i.length&&(i+=i.repeat(n/i.length)),String(this)+i.slice(0,n))})},function(t,e,n){function i(M,z,J){return z in M?Object.defineProperty(M,z,{value:J,enumerable:!0,configurable:!0,writable:!0}):M[z]=J,M}function r(M){if(Symbol.iterator in Object(M)||Object.prototype.toString.call(M)==="[object Arguments]")return Array.from(M)}function s(M){return function(z){if(Array.isArray(z)){for(var J=0,F=new Array(z.length);J<z.length;J++)F[J]=z[J];return F}}(M)||r(M)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(M){if(Array.isArray(M))return M}
vendor: 10,134 bytes, line 164
164function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function c(M,z){if(!(M instanceof z))throw new TypeError("Cannot call a class as a function")}function d(M,z){for(var J=0;J<z.length;J++){var F=z[J];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(M,F.key,F)}}function u(M){return(u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(z){return typeof z}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z})(M)}function h(M){return(h=typeof Symbol=="function"&&u(Symbol.iterator)==="symbol"?function(z){return u(z)}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":u(z)})(M)}function p(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function y(M){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(z){return z.__proto__||Object.getPrototypeOf(z)})(M)}function m(M,z){return(m=Object.setPrototypeOf||function(J,F){return J.__proto__=F,J})(M,z)}n.r(e);var w=n(0),k=n.n(w),b=n(5),x=n.n(b),v=n(4),E=n.n(v),N=n(6),S=n.n(N),_=n(2),$=n.n(_),V=n(1),I=n.n(V);n(8);function A(M,z){return a(M)||function(J,F){var q=[],U=!0,Q=!1,ce=void 0;try{for(var H,B=J[Symbol.iterator]();!(U=(H=B.next()).done)&&(q.push(H.value),!F||q.length!==F);U=!0);}catch(K){Q=!0,ce=K}finally{try{U||B.return==null||B.return()}finally{if(Q)throw ce}}return q}(M,z)||l()}var L=[["Afghanistan",["asia"],"af","93"],["Albania",["europe"],"al","355"],["Algeria",["africa","north-africa"],"dz","213"],["Andorra",["europe"],"ad","376"],["Angola",["africa"],"ao","244"],["Antigua and Barbuda",["america","carribean"],"ag","1268"],["Argentina",["america","south-america"],"ar","54","(..) ........",0,["11","221","223","261","264","2652","280","2905","291","2920","2966","299","341","342","343","351","376","379","381","3833","385","387","388"]],["Armenia",["asia","ex-ussr"],"am","374",".. ......"],["Aruba",["america","carribean"],"aw","297"],["Australia",["oceania"],"au","61","(..) .... ....",0,["2","3","4","7","8","02","03","04","07","08"]],["Austria",["europe","eu-union"],"at","43"],["Azerbaijan",["asia","ex-ussr"],"az","994","(..) ... .. .."],["Bahamas",["america","carribean"],"bs","1242"],["Bahrain",["middle-east"],"bh","973"],["Bangladesh",["asia"],"bd","880"],["Barbados",["america","carribean"],"bb","1246"],["Belarus",["europe","ex-ussr"],"by","375","(..) ... .. .."],["Belgium",["europe","eu-union"],"be","32","... .. .. .."],["Belize",["america","central-america"],"bz","501"],["Benin",["africa"],"bj","229"],["Bhutan",["asia"],"bt","975"],["Bolivia",["america","south-america"],"bo","591"],["Bosnia and Herzegovina",["europe","ex-yugos"],"ba","387"],["Botswana",["africa"],"bw","267"],["Brazil",["america","south-america"],"br","55","(..) ........."],["British Indian Ocean Territory",["asia"],"io","246"],["Brunei",["asia"],"bn","673"],["Bulgaria",["europe","eu-union"],"bg","359"],["Burkina Faso",["africa"],"bf","226"],["Burundi",["africa"],"bi","257"],["Cambodia",["asia"],"kh","855"],["Cameroon",["africa"],"cm","237"],["Canada",["america","north-america"],"ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde",["africa"],"cv","238"],["Caribbean Netherlands",["america","carribean"],"bq","599","",1],["Central African Republic",["africa"],"cf","236"],["Chad",["africa"],"td","235"],["Chile",["america","south-america"],"cl","56"],["China",["asia"],"cn","86","..-........."],["Colombia",["america","south-america"],"co","57","... ... ...."],["Comoros",["africa"],"km","269"],["Congo",["africa"],"cd","243"],["Congo",["africa"],"cg","242"],["Costa Rica",["america","central-america"],"cr","506","....-...."],["Côte dâIvoire",["africa"],"ci","225",".. .. .. .."],["Croatia",["europe","eu-union","ex-yugos"],"hr","385"],["Cuba",["america","carribean"],"cu","53"],["Curaçao",["america","carribean"],"cw","599","",0],["Cyprus",["europe","eu-union"],"cy","357",".. ......"],["Czech Republic",["europe","eu-union"],"cz","420","... ... ..."],["Denmark",["europe","eu-union","baltic"],"dk","45",".. .. .. .."],["Djibouti",["africa"],"dj","253"],["Dominica",["america","carribean"],"dm","1767"],["Dominican Republic",["america","carribean"],"do","1","",2,["809","829","849"]],["Ecuador",["america","south-america"],"ec","593"],["Egypt",["africa","north-africa"],"eg","20"],["El Salvador",["america","central-america"],"sv","503","....-...."],["Equatorial Guinea",["africa"],"gq","240"],["Eritrea",["africa"],"er","291"],["Estonia",["europe","eu-union","ex-ussr","baltic"],"ee","372",".... ......"],["Ethiopia",["africa"],"et","251"],["Fiji",["oceania"],"fj","679"],["Finland",["europe","eu-union","baltic"],"fi","358",".. ... .. .."],["France",["europe","eu-union"],"fr","33",". .. .. .. .."],["French Guiana",["america","south-america"],"gf","594"],["French Polynesia",["oceania"],"pf","689"],["Gabon",["africa"],"ga","241"],["Gambia",["africa"],"gm","220"],["Georgia",["asia","ex-ussr"],"ge","995"],["Germany",["europe","eu-union","baltic"],"de","49",".... ........"],["Ghana",["africa"],"gh","233"],["Greece",["europe","eu-union"],"gr","30"],["Grenada",["america","carribean"],"gd","1473"],["Guadeloupe",["america","carribean"],"gp","590","",0],["Guam",["oceania"],"gu","1671"],["Guatemala",["america","central-america"],"gt","502","....-...."],["Guinea",["africa"],"gn","224"],["Guinea-Bissau",["africa"],"gw","245"],["Guyana",["america","south-america"],"gy","592"],["Haiti",["america","carribean"],"ht","509","....-...."],["Honduras",["america","central-america"],"hn","504"],["Hong Kong",["asia"],"hk","852",".... ...."],["Hungary",["europe","eu-union"],"hu","36"],["Iceland",["europe"],"is","354","... ...."],["India",["asia"],"in","91",".....-....."],["Indonesia",["asia"],"id","62"],["Iran",["middle-east"],"ir","98","... ... ...."],["Iraq",["middle-east"],"iq","964"],["Ireland",["europe","eu-union"],"ie","353",".. ......."],["Israel",["middle-east"],"il","972","... ... ...."],["Italy",["europe","eu-union"],"it","39","... .......",0],["Jamaica",["america","carribean"],"jm","1876"],["Japan",["asia"],"jp","81",".. .... ...."],["Jordan",["middle-east"],"jo","962"],["Kazakhstan",["asia","ex-ussr"],"kz","7","... ...-..-..",1,["310","311","312","313","315","318","321","324","325","326","327","336","7172","73622"]],["Kenya",["africa"],"ke","254"],["Kiribati",["oceania"],"ki","686"],["Kosovo",["europe","ex-yugos"],"xk","383"],["Kuwait",["middle-east"],"kw","965"],["Kyrgyzstan",["asia","ex-ussr"],"kg","996","... ... ..."],["Laos",["asia"],"la","856"],["Latvia",["europe","eu-union","ex-ussr","baltic"],"lv","371",".. ... ..."],["Lebanon",["middle-east"],"lb","961"],["Lesotho",["africa"],"ls","266"],["Liberia",["africa"],"lr","231"],["Libya",["africa","north-africa"],"ly","218"],["Liechtenstein",["europe"],"li","423"],["Lithuania",["europe","eu-union","ex-ussr","baltic"],"lt","370"],["Luxembourg",["europe","eu-union"],"lu","352"],["Macau",["asia"],"mo","853"],["Macedonia",["europe","ex-yugos"],"mk","389"],["Madagascar",["africa"],"mg","261"],["Malawi",["africa"],"mw","265"],["Malaysia",["asia"],"my","60","..-....-...."],["Maldives",["asia"],"mv","960"],["Mali",["africa"],"ml","223"],["Malta",["europe","eu-union"],"mt","356"],["Marshall Islands",["oceania"],"mh","692"],["Martinique",["america","carribean"],"mq","596"],["Mauritania",["africa"],"mr","222"],["Mauritius",["africa"],"mu","230"],["Mexico",["america","central-america"],"mx","52","... ... ....",0,["55","81","33","656","664","998","774","229"]],["Micronesia",["oceania"],"fm","691"],["Moldova",["europe"],"md","373","(..) ..-..-.."],["Monaco",["europe"],"mc","377"],["Mongolia",["asia"],"mn","976"],["Montenegro",["europe","ex-yugos"],"me","382"],["Morocco",["africa","north-africa"],"ma","212"],["Mozambique",["africa"],"mz","258"],["Myanmar",["asia"],"mm","95"],["Namibia",["africa"],"na","264"],["Nauru",["africa"],"nr","674"],["Nepal",["asia"],"np","977"],["Netherlands",["europe","eu-union"],"nl","31",".. ........"],["New Caledonia",["oceania"],"nc","687"],["New Zealand",["oceania"],"nz","64","...-...-...."],["Nicaragua",["america","central-america"],"ni","505"],["Niger",["africa"],"ne","227"],["Nigeria",["africa"],"ng","234"],["North Korea",["asia"],"kp","850"],["Norway",["europe","baltic"],"no","47","... .. ..."],["Oman",["middle-east"],"om","968"],["Pakistan",["asia"],"pk","92","...-......."],["Palau",["oceania"],"pw","680"],["Palestine",["middle-east"],"ps","970"],["Panama",["america","central-america"],"pa","507"],["Papua New Guinea",["oceania"],"pg","675"],["Paraguay",["america","south-america"],"py","595"],["Peru",["america","south-america"],"pe","51"],["Philippines",["asia"],"ph","63",".... ......."],["Poland",["europe","eu-union","baltic"],"pl","48","...-...-..."],["Portugal",["europe","eu-union"],"pt","351"],["Puerto Rico",["america","carribean"],"pr","1","",3,["787","939"]],["Qatar",["middle-east"],"qa","974"],["Réunion",["africa"],"re","262"],["Romania",["europe","eu-union"],"ro","40"],["Russia",["europe","asia","ex-ussr","baltic"],"ru","7","(...) ...-..-..",0],["Rwanda",["africa"],"rw","250"],["Saint Kitts and Nevis",["america","carribean"],"kn","1869"],["Saint Lucia",["america","carribean"],"lc","1758"],["Saint Vincent and the Grenadines",["america","carribean"],"vc","1784"],["Samoa",["oceania"],"ws","685"],["San Marino",["europe"],"sm","378"],["São Tomé and PrÃncipe",["africa"],"st","239"],["Saudi Arabia",["middle-east"],"sa","966"],["Senegal",["africa"],"sn","221"],["Serbia",["europe","ex-yugos"],"rs","381"],["Seychelles",["africa"],"sc","248"],["Sierra Leone",["africa"],"sl","232"],["Singapore",["asia"],"sg","65","....-...."],["Slovakia",["europe","eu-union"],"sk","421"],["Slovenia",["europe","eu-union","ex-yugos"],"si","386"],["Solomon Islands",["oceania"],"sb","677"],["S
164omalia",["africa"],"so","252"],["South Africa",["africa"],"za","27"],["South Korea",["asia"],"kr","82","... .... ...."],["South Sudan",["africa","north-africa"],"ss","211"],["Spain",["europe","eu-union"],"es","34","... ... ..."],["Sri Lanka",["asia"],"lk","94"],["Sudan",["africa"],"sd","249"],["Suriname",["america","south-america"],"sr","597"],["Swaziland",["africa"],"sz","268"],["Sweden",["europe","eu-union","baltic"],"se","46","(...) ...-..."],["Switzerland",["europe"],"ch","41",".. ... .. .."],["Syria",["middle-east"],"sy","963"],["Taiwan",["asia"],"tw","886"],["Tajikistan",["asia","ex-ussr"],"tj","992"],["Tanzania",["africa"],"tz","255"],["Thailand",["asia"],"th","66"],["Timor-Leste",["asia"],"tl","670"],["Togo",["africa"],"tg","228"],["Tonga",["oceania"],"to","676"],["Trinidad and Tobago",["america","carribean"],"tt","1868"],["Tunisia",["africa","north-africa"],"tn","216"],["Turkey",["europe"],"tr","90","... ... .. .."],["Turkmenistan",["asia","ex-ussr"],"tm","993"],["Tuvalu",["asia"],"tv","688"],["Uganda",["africa"],"ug","256"],["Ukraine",["europe","ex-ussr"],"ua","380","(..) ... .. .."],["United Arab Emirates",["middle-east"],"ae","971"],["United Kingdom",["europe","eu-union"],"gb","44",".... ......"],["United States",["america","north-america"],"us","1","(...) ...-....",0,["907","205","251","256","334","479","501","870","480","520","602","623","928","209","213","310","323","408","415","510","530","559","562","619","626","650","661","707","714","760","805","818","831","858","909","916","925","949","951","303","719","970","203","860","202","302","239","305","321","352","386","407","561","727","772","813","850","863","904","941","954","229","404","478","706","770","912","808","319","515","563","641","712","208","217","309","312","618","630","708","773","815","847","219","260","317","574","765","812","316","620","785","913","270","502","606","859","225","318","337","504","985","413","508","617","781","978","301","410","207","231","248","269","313","517","586","616","734","810","906","989","218","320","507","612","651","763","952","314","417","573","636","660","816","228","601","662","406","252","336","704","828","910","919","701","308","402","603","201","609","732","856","908","973","505","575","702","775","212","315","516","518","585","607","631","716","718","845","914","216","330","419","440","513","614","740","937","405","580","918","503","541","215","412","570","610","717","724","814","401","803","843","864","605","423","615","731","865","901","931","210","214","254","281","325","361","409","432","512","713","806","817","830","903","915","936","940","956","972","979","435","801","276","434","540","703","757","804","802","206","253","360","425","509","262","414","608","715","920","304","307"]],["Uruguay",["america","south-america"],"uy","598"],["Uzbekistan",["asia","ex-ussr"],"uz","998",".. ... .. .."],["Vanuatu",["oceania"],"vu","678"],["Vatican City",["europe"],"va","39",".. .... ....",1],["Venezuela",["america","south-america"],"ve","58"],["Vietnam",["asia"],"vn","84"],["Yemen",["middle-east"],"ye","967"],["Zambia",["africa"],"zm","260"],["Zimbabwe",["africa"],"zw","263"]],T=[["American Samoa",["oceania"],"as","1684"],["Anguilla",["america","carribean"],"ai","1264"],["Bermuda",["america","north-america"],"bm","1441"],["British Virgin Islands",["america","carribean"],"vg","1284"],["Cayman Islands",["america","carribean"],"ky","1345"],["Cook Islands",["oceania"],"ck","682"],["Falkland Islands",["america","south-america"],"fk","500"],["Faroe Islands",["europe"],"fo","298"],["Gibraltar",["europe"],"gi","350"],["Greenland",["america"],"gl","299"],["Jersey",["europe","eu-union"],"je","44",".... ......"],["Montserrat",["america","carribean"],"ms","1664"],["Niue",["asia"],"nu","683"],["Norfolk Island",["oceania"],"nf","672"],["Northern Mariana Islands",["oceania"],"mp","1670"],["Saint Barthélemy",["america","carribean"],"bl","590","",1],["Saint Helena",["africa"],"sh","290"],["Saint Martin",["america","carribean"],"mf","590","",2],["Saint Pierre and Miquelon",["america","north-america"],"pm","508"],["Sint Maarten",["america","carribean"],"sx","1721"],["Tokelau",["oceania"],"tk","690"],["Turks and Caicos Islands",["america","carribean"],"tc","1649"],["U.S. Virgin Islands",["america","carribean"],"vi","1340"],["Wallis and Futuna",["oceania"],"wf","681"]];function g(M,z,J,F,q){return!J||q?M+"".padEnd(z.length,".")+" "+F:M+"".padEnd(z.length,".")+" "+J}function f(M,z,J,F,q){var U,Q,ce=[];return Q=z===!0,[(U=[]).concat.apply(U,s(M.map(function(H){var B={name:H[0],regions:H[1],iso2:H[2],countryCode:H[3],dialCode:H[3],format:g(J,H[3],H[4],F,q),priority:H[5]||0},K=[];return H[6]&&H[6].map(function(ie){var R=function(G){for(var W=1;W<arguments.length;W++){var Y=arguments[W]!=null?arguments[W]:{}
164,X=Object.keys(Y);typeof Object.getOwnPropertySymbols=="function"&&(X=X.concat(Object.getOwnPropertySymbols(Y).filter(function(re){return Object.getOwnPropertyDescriptor(Y,re).enumerable}))),X.forEach(function(re){i(G,re,Y[re])})}return G}({},B);R.dialCode=H[3]+ie,R.isAreaCode=!0,R.areaCodeLength=ie.length,K.push(R)}),K.length>0?(B.mainCode=!0,Q||z.constructor.name==="Array"&&z.includes(H[2])?(B.hasAreaCodes=!0,[B].concat(K)):(ce=ce.concat(K),[B])):[B]}))),ce]}function j(M,z,J,F){if(J!==null){var q=Object.keys(J),U=Object.values(J);q.forEach(function(Q,ce){if(F)return M.push([Q,U[ce]]);var H=M.findIndex(function(K){return K[0]===Q});if(H===-1){var B=[Q];B[z]=U[ce],M.push(B)}else M[H][z]=U[ce]})}}function P(M,z){return z.length===0?M:M.map(function(J){var F=z.findIndex(function(U){return U[0]===J[2]});if(F===-1)return J;var q=z[F];return q[1]&&(J[4]=q[1]),q[3]&&(J[5]=q[3]),q[2]&&(J[6]=q[2]),J})}var C=function M(z,J,F,q,U,Q,ce,H,B,K,ie,R,G,W){c(this,M),this.filterRegions=function(ne,te){if(typeof ne=="string"){var ae=ne;return te.filter(function(le){return le.regions.some(function(de){return de===ae})})}return te.filter(function(le){return ne.map(function(de){return le.regions.some(function(ue){return ue===de})}).some(function(de){return de})})},this.sortTerritories=function(ne,te){var ae=[].concat(s(ne),s(te));return ae.sort(function(le,de){return le.name<de.name?-1:le.name>de.name?1:0}),ae},this.getFilteredCountryList=function(ne,te,ae){return ne.length===0?te:ae?ne.map(function(le){var de=te.find(function(ue){return ue.iso2===le});if(de)return de}).filter(function(le){return le}):te.filter(function(le){return ne.some(function(de){return de===le.iso2})})},this.localizeCountries=function(ne,te,ae){for(var le=0;le<ne.length;le++)te[ne[le].iso2]!==void 0?ne[le].localName=te[ne[le].iso2]:te[ne[le].name]!==void 0&&(ne[le].localName=te[ne[le].name]);return ae||ne.sort(function(de,ue){return de.localName<ue.localName?-1:de.localName>ue.localName?1:0}),ne},this.getCustomAreas=function(ne,te){for(var ae=[],le=0;le<te.length;le++){var de=JSON.parse(JSON.stringify(ne));de.dialCode+=te[le],ae.push(de)}return ae},this.excludeCountries=function(ne,te){return te.length===0?ne:ne.filter(function(ae){return!te.includes(ae.iso2)})};var Y=function(ne,te,ae){var le=[];return j(le,1,ne,!0),j(le,3,te),j(le,2,ae),le}(H,B,K),X=P(JSON.parse(JSON.stringify(L)),Y),re=P(JSON.parse(JSON.stringify(T)),Y),ee=A(f(X,z,R,G,W),2),se=ee[0],oe=ee[1];if(J){var he=A(f(re,z,R,G,W),2),pe=he[0];he[1],se=this.sortTerritories(pe,se)}F&&(se=this.filterRegions(F,se)),this.onlyCountries=this.localizeCountries(this.excludeCountries(this.getFilteredCountryList(q,se,ce.includes("onlyCountries")),Q),ie,ce.includes("onlyCountries")),this.preferredCountries=U.length===0?[]:this.localizeCountries(this.getFilteredCountryList(U,se,ce.includes("preferredCountries")),ie,ce.includes("preferredCountries")),this.hiddenAreaCodes=this.excludeCountries(this.getFilteredCountryList(q,oe),Q)},D=function(M){function z(q){var U;c(this,z),(U=function(Y,X){return!X||h(X)!=="object"&&typeof X!="function"?p(Y):X}(this,y(z).call(this,q))).getProbableCandidate=E()(function(Y){return Y&&Y.length!==0?U.state.onlyCountries.filter(function(X){return $()(X.name.toLowerCase(),Y.toLowerCase())},p(p(U)))[0]:null}),U.guessSelectedCountry=E()(function(Y,X,re,ee){var se;if(U.props.enableAreaCodes===!1&&(ee.some(function(pe){if($()(Y,pe.dialCode))return re.some(function(ne){if(pe.iso2===ne.iso2&&ne.mainCode)return se=ne,!0}),!0}),se))return se;var oe=re.find(function(pe){return pe.iso2==X});if(Y.trim()==="")return oe;var he=re.reduce(function(pe,ne){return $()(Y,ne.dialCode)&&(ne.dialCode.length>pe.dialCode.length||ne.dialCode.length===pe.dialCode.length&&ne.priority<pe.priority)?ne:pe},{dialCode:"",priority:10001},p(p(U)));return he.name?he:oe}),U.updateCountry=function(Y){var X,re=U.state.onlyCountries;(X=Y.indexOf(0)>="0"&&Y.indexOf(0)<="9"?re.find(function(ee){return ee.dialCode==+Y}):re.find(function(ee){return ee.iso2==Y}))&&X.dialCode&&U.setState({selectedCountry:X,formattedNumber:U.props.disableCountryCode?"":U.formatNumber(X.dialCode,X)})},U.scrollTo=function(Y,X){if(Y){var re=U.dropdownRef;if(re&&document.body){var ee=re.offsetHeight,se=re.getBoundingClientRect().top+document.body.scrollTop,oe=se+ee,he=Y,pe=he.getBoundingClientRect(),ne=he.offsetHeight,te=pe.top+document.body.scrollTop,ae=te+ne,le=te-se+re.scrollTop,de=ee/2-ne/2;if(U.props.enableSearch?te<se+32:te<se)X&&(le-=de),re.scrollTop=le;else if(ae>oe){X&&(le+=de);var ue=ee-ne;
164re.scrollTop=le-ue}}}},U.scrollToTop=function(){var Y=U.dropdownRef;Y&&document.body&&(Y.scrollTop=0)},U.formatNumber=function(Y,X){if(!X)return Y;var re,ee=X.format,se=U.props,oe=se.disableCountryCode,he=se.enableAreaCodeStretch,pe=se.enableLongNumbers,ne=se.autoFormat;if(oe?((re=ee.split(" ")).shift(),re=re.join(" ")):he&&X.isAreaCode?((re=ee.split(" "))[1]=re[1].replace(/\.+/,"".padEnd(X.areaCodeLength,".")),re=re.join(" ")):re=ee,!Y||Y.length===0)return oe?"":U.props.prefix;if(Y&&Y.length<2||!re||!ne)return oe?Y:U.props.prefix+Y;var te,ae=S()(re,function(le,de){if(le.remainingText.length===0)return le;if(de!==".")return{formattedText:le.formattedText+de,remainingText:le.remainingText};var ue,me=a(ue=le.remainingText)||r(ue)||l(),ge=me[0],be=me.slice(1);return{formattedText:le.formattedText+ge,remainingText:be}},{formattedText:"",remainingText:Y.split("")});return(te=pe?ae.formattedText+ae.remainingText.join(""):ae.formattedText).includes("(")&&!te.includes(")")&&(te+=")"),te},U.cursorToEnd=function(){var Y=U.numberInputRef;if(document.activeElement===Y){Y.focus();var X=Y.value.length;Y.value.charAt(X-1)===")"&&(X-=1),Y.setSelectionRange(X,X)}},U.getElement=function(Y){return U["flag_no_".concat(Y)]},U.getCountryData=function(){return U.state.selectedCountry?{name:U.state.selectedCountry.name||"",dialCode:U.state.selectedCountry.dialCode||"",countryCode:U.state.selectedCountry.iso2||"",format:U.state.selectedCountry.format||""}:{}},U.handleFlagDropdownClick=function(Y){if(Y.preventDefault(),U.state.showDropdown||!U.props.disabled){var X=U.state,re=X.preferredCountries,ee=X.onlyCountries,se=X.selectedCountry,oe=U.concatPreferredCountries(re,ee).findIndex(function(he){return he.dialCode===se.dialCode&&he.iso2===se.iso2});U.setState({showDropdown:!U.state.showDropdown,highlightCountryIndex:oe},function(){U.state.showDropdown&&U.scrollTo(U.getElement(U.state.highlightCountryIndex))})}},U.handleInput=function(Y){var X=Y.target.value,re=U.props,ee=re.prefix,se=re.onChange,oe=U.props.disableCountryCode?"":ee,he=U.state.selectedCountry,pe=U.state.freezeSelection;if(!U.props.countryCodeEditable){var ne=ee+(he.hasAreaCodes?U.state.onlyCountries.find(function(Ce){return Ce.iso2===he.iso2&&Ce.mainCode}).dialCode:he.dialCode);if(X.slice(0,ne.length)!==ne)return}if(X===ee)return se&&se("",U.getCountryData(),Y,""),U.setState({formattedNumber:""});if(!(X.replace(/\D/g,"").length>15&&(U.props.enableLongNumbers===!1||typeof U.props.enableLongNumbers=="number"&&X.replace(/\D/g,"").length>U.props.enableLongNumbers))&&X!==U.state.formattedNumber){Y.preventDefault?Y.preventDefault():Y.returnValue=!1;var te=U.props.country,ae=U.state,le=ae.onlyCountries,de=ae.selectedCountry,ue=ae.hiddenAreaCodes;if(se&&Y.persist(),X.length>0){var me=X.replace(/\D/g,"");(!U.state.freezeSelection||de&&de.dialCode.length>me.length)&&(he=U.props.disableCountryGuess?de:U.guessSelectedCountry(me.substring(0,6),te,le,ue)||de,pe=!1),oe=U.formatNumber(me,he),he=he.dialCode?he:de}var ge=Y.target.selectionStart,be=Y.target.selectionStart,ve=U.state.formattedNumber,we=oe.length-ve.length;U.setState({formattedNumber:oe,freezeSelection:pe,selectedCountry:he},function(){we>0&&(be-=we),oe.charAt(oe.length-1)==")"?U.numberInputRef.setSelectionRange(oe.length-1,oe.length-1):be>0&&ve.length>=oe.length?U.numberInputRef.setSelectionRange(be,be):ge<ve.length&&U.numberInputRef.setSelectionRange(ge,ge),se&&se(oe.replace(/[^0-9]+/g,""),U.getCountryData(),Y,oe)})}},U.handleInputClick=function(Y){U.setState({showDropdown:!1}),U.props.onClick&&U.props.onClick(Y,U.getCountryData())},U.handleDoubleClick=function(Y){var X=Y.target.value.length;Y.target.setSelectionRange(0,X)},U.handleFlagItemClick=function(Y,X){var re=U.state.selectedCountry,ee=U.state.onlyCountries.find(function(pe){return pe==Y});if(ee){var se=U.state.formattedNumber.replace(" ","").replace("(","").replace(")","").replace("-",""),oe=se.length>1?se.replace(re.dialCode,ee.dialCode):ee.dialCode,he=U.formatNumber(oe.replace(/\D/g,""),ee);U.setState({showDropdown:!1,selectedCountry:ee,freezeSelection:!0,formattedNumber:he,searchValue:""},function(){U.cursorToEnd(),U.props.onChange&&U.props.onChange(he.replace(/[^0-9]+/g,""),U.getCountryData(),X,he)})}},U.handleInputFocus=function(Y){U.numberInputRef&&U.numberInputRef.value===U.props.prefix&&U.state.selectedCountry&&!U.props.disableCountryCode&&U.setState({formattedNumber:U.props.prefix+U.state.selectedCountry.dialCode},function(){U.props.jumpCursorToEnd&&setTimeout(U.cursorToEnd,0)}),U.setState({placeholder:""}),U.props.onFocus&&U.props.onFocus(Y,U.getCountryData()),U.props.jumpCursorToEnd&&setTimeout(U.cursorToEnd,0)},U.handleInputBlur=function(Y){Y.target.value||U.setState({placeholder:U.props.placeholder}),U.props.onBlur&&U.props.onBlur(Y,U.getCountryData())},U.handleInputCopy=function(Y){if(U.props.copyNumbersOnly){var X=window.getSelection().toString().replace(/[^0-9]+/g,"");Y.clipboardData.setData("text/plain",X),Y.preventDefault()}},U.getHighlightCountryIndex=function(Y){var X=U.state.highlightCountryIndex+Y;return X<0||X>=U.state.onlyCountries.length+U.state.preferredCountries.length?X-Y:U.props.enableSearch&&X>U.getSearchFilteredCountries().length?0:X},U.searchCountry=function(){var Y=U.getProbableCandidate(U.state.queryString)||U.state.onlyCountries[0],X=U.state.onlyCountries.findIndex(function(re){return re==Y})+U.state.preferredCountries.length;U.scrollTo(U.getElement(X),!0),U.setState({queryString:"",highlightCountryIndex:X})},U.handleKeydown=function(Y){var X=U.props.keys,re=Y.target.className;if(re.includes("selected-flag")&&Y.which===X.ENTER&&!U.state.showDropdown)return U.handleFlagDropdownClick(Y);if(re.includes("form-control")&&(Y.which===X.ENTER||Y.which===X.ESC))return Y.target.blur();if(U.state.showDropdown&&!U.props.disabled&&(!re.includes("search-box")||Y.which===X.UP||Y.which===X.DOWN||Y.which===X.ENTER||Y.which===X.ESC&&Y.target.value==="")){Y.preventDefault?Y.preventDefault():Y.returnValue=!1;var ee=function(se){U.setState({highlightCountryIndex:U.getHighlightCountryIndex(se)},function(){U.scrollTo(U.getElement(U.state.highlightCountryIndex),!0)})};switch(Y.which){case X.DOWN:ee(1);break;case X.UP:ee(-1);break;case X.ENTER:U.props.enableSearch?U.handleFlagItemClick(U.getSearchFilteredCountries()[U.state.highlightCountryIndex]||U.getSearchFilteredCountries()[0],Y):U.handleFlagItemClick([].concat(s(U.state.preferredCountries),s(U.state.onlyCountries))[U.state.highlightCountryIndex],Y);break;case X.ESC:case X.TAB:U.setState({showDropdown:!1},U.cursorToEnd);break;default:(Y.which>=X.A&&Y.which<=X.Z||Y.which===X.SPACE)&&U.setState({queryString:U.state.queryString+String.fromCharCode(Y.which)},U.state.debouncedQueryStingSearcher)}}},U.handleInputKeyDown=function(Y){var X=U.props,re=X.keys,ee=X.onEnterKeyPress,se=X.onKeyDown;Y.which===re.ENTER&&ee&&ee(Y),se&&se(Y)},U.handleClickOutside=function(Y){U.dropdownRef&&!U.dropdownContainerRef.contains(Y.target)&&U.state.showDropdown&&U.setState({showDropdown:!1})},U.handleSearchChange=function(Y){var X=Y.currentTarget.value,re=U.state,ee=re.preferredCountries,se=re.selectedCountry,oe=0;if(X===""&&se){var he=U.state.onlyCountries;oe=U.concatPreferredCountries(ee,he).findIndex(function(pe){return pe==se}),setTimeout(function(){return U.scrollTo(U.getElement(oe))},100)}U.setState({searchValue:X,highlightCountryIndex:oe})},U.concatPreferredCountries=function(Y,X){return Y.length>0?s(new Set(Y.concat(X))):X},U.getDropdownCountryName=function(Y){return Y.localName||Y.name},U.getSearchFilteredCountries=function(){var Y=U.state,X=Y.preferredCountries,re=Y.onlyCountries,ee=Y.searchValue,se=U.props.enableSearch,oe=U.concatPreferredCountries(X,re),he=ee.trim().toLowerCase().replace("+","");if(se&&he){if(/^\d+$/.test(he))return oe.filter(function(te){var ae=te.dialCode;return["".concat(ae)].some(function(le){return le.toLowerCase().includes(he)})});var pe=oe.filter(function(te){var ae=te.iso2;return["".concat(ae)].some(function(le){return le.toLowerCase().includes(he)})}
vendor: 4,980 bytes, line 164
164),ne=oe.filter(function(te){var ae=te.name,le=te.localName;return te.iso2,["".concat(ae),"".concat(le||"")].some(function(de){return de.toLowerCase().includes(he)})});return U.scrollToTop(),s(new Set([].concat(pe,ne)))}return oe},U.getCountryDropdownList=function(){var Y=U.state,X=Y.preferredCountries,re=Y.highlightCountryIndex,ee=Y.showDropdown,se=Y.searchValue,oe=U.props,he=oe.disableDropdown,pe=oe.prefix,ne=U.props,te=ne.enableSearch,ae=ne.searchNotFound,le=ne.disableSearchIcon,de=ne.searchClass,ue=ne.searchStyle,me=ne.searchPlaceholder,ge=ne.autocompleteSearch,be=U.getSearchFilteredCountries().map(function(Ce,Pe){var Ne=re===Pe,Ee=I()({country:!0,preferred:Ce.iso2==="us"||Ce.iso2==="gb",active:Ce.iso2==="us",highlight:Ne}),Te="flag ".concat(Ce.iso2);return k.a.createElement("li",Object.assign({ref:function(Fe){return U["flag_no_".concat(Pe)]=Fe},key:"flag_no_".concat(Pe),"data-flag-key":"flag_no_".concat(Pe),className:Ee,"data-dial-code":"1",tabIndex:he?"-1":"0","data-country-code":Ce.iso2,onClick:function(Fe){return U.handleFlagItemClick(Ce,Fe)},role:"option"},Ne?{"aria-selected":!0}:{}),k.a.createElement("div",{className:Te}),k.a.createElement("span",{className:"country-name"},U.getDropdownCountryName(Ce)),k.a.createElement("span",{className:"dial-code"},Ce.format?U.formatNumber(Ce.dialCode,Ce):pe+Ce.dialCode))}),ve=k.a.createElement("li",{key:"dashes",className:"divider"});X.length>0&&(!te||te&&!se.trim())&&be.splice(X.length,0,ve);var we=I()(i({"country-list":!0,hide:!ee},U.props.dropdownClass,!0));return k.a.createElement("ul",{ref:function(Ce){return!te&&Ce&&Ce.focus(),U.dropdownRef=Ce},className:we,style:U.props.dropdownStyle,role:"listbox",tabIndex:"0"},te&&k.a.createElement("li",{className:I()(i({search:!0},de,de))},!le&&k.a.createElement("span",{className:I()(i({"search-emoji":!0},"".concat(de,"-emoji"),de)),role:"img","aria-label":"Magnifying glass"},"ð"),k.a.createElement("input",{className:I()(i({"search-box":!0},"".concat(de,"-box"),de)),style:ue,type:"search",placeholder:me,autoFocus:!0,autoComplete:ge?"on":"off",value:se,onChange:U.handleSearchChange})),be.length>0?be:k.a.createElement("li",{className:"no-entries-message"},k.a.createElement("span",null,ae)))};var Q,ce=new C(q.enableAreaCodes,q.enableTerritories,q.regions,q.onlyCountries,q.preferredCountries,q.excludeCountries,q.preserveOrder,q.masks,q.priority,q.areaCodes,q.localization,q.prefix,q.defaultMask,q.alwaysDefaultMask),H=ce.onlyCountries,B=ce.preferredCountries,K=ce.hiddenAreaCodes,ie=q.value?q.value.replace(/\D/g,""):"";Q=q.disableInitialCountryGuess?0:ie.length>1?U.guessSelectedCountry(ie.substring(0,6),q.country,H,K)||0:q.country&&H.find(function(Y){return Y.iso2==q.country})||0;var R,G=ie.length<2&&Q&&!$()(ie,Q.dialCode)?Q.dialCode:"";R=ie===""&&Q===0?"":U.formatNumber((q.disableCountryCode?"":G)+ie,Q.name?Q:void 0);var W=H.findIndex(function(Y){return Y==Q});return U.state={showDropdown:q.showDropdown,formattedNumber:R,onlyCountries:H,preferredCountries:B,hiddenAreaCodes:K,selectedCountry:Q,highlightCountryIndex:W,queryString:"",freezeSelection:!1,debouncedQueryStingSearcher:x()(U.searchCountry,250),searchValue:""},U}var J,F;return function(q,U){if(typeof U!="function"&&U!==null)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(U&&U.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),U&&m(q,U)}(z,M),J=z,(F=[{key:"componentDidMount",value:function(){document.addEventListener&&this.props.enableClickOutside&&document.addEventListener("mousedown",this.handleClickOutside),this.props.onMount&&this.props.onMount(this.state.formattedNumber.replace(/[^0-9]+/g,""),this.getCountryData(),this.state.formattedNumber)}},{key:"componentWillUnmount",value:function(){document.removeEventListener&&this.props.enableClickOutside&&document.removeEventListener("mousedown",this.handleClickOutside)}},{key:"componentDidUpdate",value:function(q,U,Q){q.country!==this.props.country?this.updateCountry(this.props.country):q.value!==this.props.value&&this.updateFormattedNumber(this.props.value)}},{key:"updateFormattedNumber",value:function(q){if(q===null)return this.setState({selectedCountry:0,formattedNumber:""});var U=this.state,Q=U.onlyCountries,ce=U.selectedCountry,H=U.hiddenAreaCodes,B=this.props,K=B.country,ie=B.prefix;if(q==="")return this.setState({selectedCountry:ce,formattedNumber:""});var R,G,W=q.replace(/\D/g,"");if(ce&&$()(q,ie+ce.dialCode))G=this.formatNumber(W,ce),this.setState({formattedNumber:G});else{var Y=(R=this.props.disableCountryGuess?ce:this.guessSelectedCountry(W.substring(0,6),K,Q,H)||ce)&&$()(W,ie+R.dialCode)?R.dialCode:"";G=this.formatNumber((this.props.disableCountryCode?"":Y)+W,R||void 0),this.setState({selectedCountry:R,formattedNumber:G})}}},{key:"render",value:function(){var q,U,Q,ce=this,H=this.state,B=H.onlyCountries,K=H.selectedCountry,ie=H.showDropdown,R=H.formattedNumber,G=H.hiddenAreaCodes,W=this.props,Y=W.disableDropdown,X=W.render
164StringAsFlag,re=W.isValid,ee=W.defaultErrorMessage,se=W.specialLabel;if(typeof re=="boolean")U=re;else{var oe=re(R.replace(/\D/g,""),K,B,G);typeof oe=="boolean"?(U=oe)===!1&&(Q=ee):(U=!1,Q=oe)}var he=I()((i(q={},this.props.containerClass,!0),i(q,"react-tel-input",!0),q)),pe=I()({arrow:!0,up:ie}),ne=I()(i({"form-control":!0,"invalid-number":!U,open:ie},this.props.inputClass,!0)),te=I()({"selected-flag":!0,open:ie}),ae=I()(i({"flag-dropdown":!0,"invalid-number":!U,open:ie},this.props.buttonClass,!0)),le="flag ".concat(K&&K.iso2);return k.a.createElement("div",{className:"".concat(he," ").concat(this.props.className),style:this.props.style||this.props.containerStyle,onKeyDown:this.handleKeydown},se&&k.a.createElement("div",{className:"special-label"},se),Q&&k.a.createElement("div",{className:"invalid-number-message"},Q),k.a.createElement("input",Object.assign({className:ne,style:this.props.inputStyle,onChange:this.handleInput,onClick:this.handleInputClick,onDoubleClick:this.handleDoubleClick,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onCopy:this.handleInputCopy,value:R,onKeyDown:this.handleInputKeyDown,placeholder:this.props.placeholder,disabled:this.props.disabled,type:"tel"},this.props.inputProps,{ref:function(de){ce.numberInputRef=de,typeof ce.props.inputProps.ref=="function"?ce.props.inputProps.ref(de):typeof ce.props.inputProps.ref=="object"&&(ce.props.inputProps.ref.current=de)}})),k.a.createElement("div",{className:ae,style:this.props.buttonStyle,ref:function(de){return ce.dropdownContainerRef=de}},X?k.a.createElement("div",{className:te},X):k.a.createElement("div",{onClick:Y?void 0:this.handleFlagDropdownClick,className:te,title:K?"".concat(K.localName||K.name,": + ").concat(K.dialCode):"",tabIndex:Y?"-1":"0",role:"button","aria-haspopup":"listbox","aria-expanded":!!ie||void 0},k.a.createElement("div",{className:le},!Y&&k.a.createElement("div",{className:pe}))),ie&&this.getCountryDropdownList()))}}])&&d(J.prototype,F),z}(k.a.Component);D.defaultProps={country:"",value:"",onlyCountries:[],preferredCountries:[],excludeCountries:[],placeholder:"1 (702) 123-4567",searchPlaceholder:"search",searchNotFound:"No entries to show",flagsImagePath:"./flags.png",disabled:!1,containerStyle:{},inputStyle:{},buttonStyle:{},dropdownStyle:{},searchStyle:{},containerClass:"",inputClass:"",buttonClass:"",dropdownClass:"",searchClass:"",className:"",autoFormat:!0,enableAreaCodes:!1,enableTerritories:!1,disableCountryCode:!1,disableDropdown:!1,enableLongNumbers:!1,countryCodeEditable:!0,enableSearch:!1,disableSearchIcon:!1,disableInitialCountryGuess:!1,disableCountryGuess:!1,regions:"",inputProps:{},localization:{},masks:null,priority:null,areaCodes:null,preserveOrder:[],defaultMask:"... ... ... ... ..",alwaysDefaultMask:!1,prefix:"+",copyNumbersOnly:!0,renderStringAsFlag:"",autocompleteSearch:!1,jumpCursorToEnd:!0,enableAreaCodeStretch:!1,enableClickOutside:!0,showDropdown:!1,isValid:!0,defaultErrorMessage:"",specialLabel:"Phone",onEnterKeyPress:null,keys:{UP:38,DOWN:40,RIGHT:39,LEFT:37,ENTER:13,ESC:27,PLUS:43,A:65,Z:90,SPACE:32,TAB:9}},e.default=D}]);const oy=Fr(fle),D2=500*1024,gle=["image/jpeg","image/jpg","image/png","application/pdf"],jg={dropdownIndicator:t=>({...t,paddingTop:15,paddingBottom:15})},xle=()=>{const{t}=Se(["common"]),{language:e}=_e(),n=ec(),{addField:i}=wr(),{register:r,handleSubmit:s,setValue:a,watch:l,formState:{errors:c}}=Ks(),[d,u]=Z.useState(null),[h,p]=Z.useState(null),[y,m]=Z.useState(null),[w,k]=Z.useState(null),[b,x]=Z.useState(null),[v,E]=Z.useState(null),[N,S]=Z.useState(null),[_,$]=Z.useState(null),[V,I]=Z.useState(null),[A,L]=Z.useState([]),[T,g]=Z.useState([]),[f,j]=Z.useState([]),[P,C]=Z.useState([]),[D,M]=Z.useState([]),[z,J]=Z.useState(!1),[F,q]=Z.useState(!1),{data:U}=tie(),{data:Q}=FB(),{data:ce}=Lre(),{data:H}=Rre(),{data:B}=Bre(),[K,ie]=Z.useState(null),[R,G]=Z.useState(null),W=l("gender"),Y=sessionStorage.getItem("__FOREIGN_VOLUNTEER__"),X=()=>J(!0),re=()=>J(!1),ee=()=>q(!1);Z.useEffect(()=>{if(Y){const de=JSON.parse(Y);u(de.passport_document),p(de.visa_document)}},[Y]),Z.useEffect(()=>{if(Y){const de=JSON.parse(Y);x(de.nationality_id),E(de.residence_id),S(de.education_level_id),$(de.profession_
164id),I(de.visa_type_id);for(const ue in de)de.hasOwnProperty(ue)&&a(ue,de[ue])}},[a]),Z.useEffect(()=>{if(U){const de=U.map(ue=>({value:ue.id,label:ue.country_name}));L([...de]),i("nationality_id","")}},[U]),Z.useEffect(()=>{if(Q){const de=Q.map(ue=>({value:ue.province_id,label:ue.province_name}));g([...de]),i("residence_id","")}},[Q]),Z.useEffect(()=>{if(ce){const de=ce.map(ue=>({value:ue.id,label:ue.level_name}));j([...de]),i("education_level_id","")}},[ce]),Z.useEffect(()=>{if(H){const de=H.map(ue=>({value:ue.id,label:ue.profession_name,options:ue.options.map(me=>({value:me.id,label:me.profession_name}))}));C([...de]),i("profession_id","")}},[H]),Z.useEffect(()=>{if(B){const de=B.map(ue=>({value:ue.id,label:ue.visa_type_name}));M([...de]),i("visa_type_id","")}},[B]);const se=de=>{de.preventDefault();const{id:ue}=de.target,me=Number(ue);a("gender",me)},oe=de=>{if(de){const ue=U==null?void 0:U.find(me=>me.id===Number(de.value));ue&&(a("nationality_id",ue.id),a("nationality_name",ue.country_name))}},he=de=>{if(de){const ue=Q==null?void 0:Q.find(me=>me.province_id===de.value.toString());ue&&(a("residence_id",ue.province_id.toString()),a("residence_name",ue.province_name))}},pe=de=>{if(de){const ue=ce==null?void 0:ce.find(me=>me.id===Number(de.value));ue&&(a("education_level_id",ue.id),a("education_level_name",ue.level_name))}},ne=de=>{if(de){const ue=H==null?void 0:H.flatMap(me=>me.options||[]).find(me=>me.id===Number(de.value));if(ue){const{id:me,profession_name:ge}=ue;a("profession_id",me),a("profession_name",ge)}}},te=de=>{if(de){const ue=B==null?void 0:B.find(me=>me.id===Number(de.value));ue&&(a("visa_type_id",ue.id),a("visa_type_name",ue.visa_type_name))}},ae=async de=>{var ge;const ue=(ge=de.target.files)==null?void 0:ge[0];if(!ue)return;if(!gle.includes(ue.type)){de.target.name==="passport_document"?ie("File type must be JPG, JPEG, PNG or PDF. "):de.target.name==="visa_document"&&G("File type must be JPG, JPEG, PNG or PDF. "),de.target.value="";return}if(ue.size>D2){de.target.name==="passport_document"?ie(`File size must be less than ${D2/1e3} KB. `):de.target.name==="visa_document"&&G(`File size must be less than ${D2/1e3} KB. `),de.target.value="";return}de.target.name==="passport_document"?ie(null):de.target.name==="visa_document"&&G(null);const me=new FileReader;me.onloadend=()=>{de.target.name==="passport_document"?m(me.result):de.target.name==="visa_document"&&k(me.result)},me.readAsDataURL(ue)},le=de=>{const ue={...de,passport_document:y||d,visa_document:w||h};sessionStorage.setItem("__FOREIGN_VOLUNTEER__",JSON.stringify(ue)),n("/volunteer/foreign-volunteers/confirmation")};return o.jsxs(o.Fragment,{children:[o.jsx($h,{isOpen:z,closeModal:re,title:t("common:privacyPolicy.title"),children:o.jsx(ng,{})},z?"privacy-policy-open":"privacy-policy-closed"),o.jsx($h,{isOpen:F,closeModal:ee,title:t("common:termsAndConditions.title"),children:o.jsx(vM,{})},F?"terms-and-conditions-open":"terms-and-conditions-closed"),o.jsxs("form",{onSubmit:s(le),className:"max-w-3xl p-4 space-y-4 mx-auto",children:[o.jsx("h3",{className:"font-semibold text-center text-pmi-red text-2xl py-6",children:t("common:volunteerForeign.title")}),o.jsx("input",{type:"hidden",...r("gender",{required:!0})}),o.jsx("input",{type:"hidden",...r("nationality_id",{required:!0})}),o.jsx("input",{type:"hidden",...r("education_level_id",{required:!0})}),o.jsx("input",{type:"hidden",...r("residence_id",{required:!0})}),o.jsx("h4",{className:"font-semibold text-lg",children:t("common:volunteerForeign.personalInformation")}),o.jsxs("div",{children:[o.jsxs("label",{className:"block mb-4",children:[t("common:volunteerForeign.form.firstName.label"),o.jsx("i",{className:"text-pmi-red",children:"*"})]}),o.jsx("input",{...r("first_name",{required:!0}),className:"p-3 border border-pmi-gray-lighter rounded-md w-full focus:outline-none focus:ring-2 focus:ring-pmi-red",placeholder:t("volunteerForeign.form.firstName.placeholder")}),c.first_name&&o.jsx("span",{className:"text-red-500",children:"Please fill out this field."})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block mb-4",children:t("common:volunteerForeign.form.lastName.label")}),o.jsx("input",{...r("last_name"),className:"p-3 border border-pmi-gray-lighter rounded-md w-full focus:outline-none focus:ring-2 focus:ring-pmi-red",placeholder:t("volunteerForeign.form.lastName.placeholder")})]}),o.jsxs("div",{children:[o.jsxs("label",{className:"block mb-4",children:[t("common:volunteerForeign.form.dateOfBirth.label"),o.jsx("i",{className:"text-pmi-red",children:"*"})]}),o.jsx("input",{type:"date",...r("date_of_birth",{required:!0}),className:"p-3 border border-pmi-gray-lighter rounded-md w-full focus:outline-none focus:ring-2 focus:ring-pmi-red",placeholder:t("volunteerForeign.form.dateOfBirth.placeholder")}),c.date_of_birth&&o.jsx("span",{className:"text-red-500",children:"Please fill out this field."})]}),o.jsxs("div",{children:[o.jsxs("label",{className:"block mb-4",children:[t("common:volunteerForeign.form.gender.label"),o.jsx("i",{className:"text-pmi-red",children:"*"})]}),o.jsx("div",{className:"flex gap-2",children:[1,0].map((de,ue)=>o.jsx("button",{id:`${de}`,className:on({"border rounded-full py-1 px-6":!0,"text-sm text-pmi-gray capitalize":!0,"text-pmi-red bg-pmi-light-red border-pmi-red":W===de}),onClick:se,children:de==1?t("common:volunteerForeign.form.gender.options.male"):t("common:volunteerForeign.form.gender.options.female")},ue))}),c.gender&&o.jsx("span",{className:"text-red-500",children:"Please fill out this field."})]}),o.jsxs("div",{children:[o.jsxs("label",{className:"text-base block mb-4",children:[t("common:volunteerForeign.form.nationality.label"),o.jsx("i",{className:"text-pmi-red",children:"*"})]}),o.jsx(Pp,{onChange:oe,defaultValue:A.find(de=>de.value==b),options:A,styles:jg,placeholder:t("common:volunteerForeign.form.nationality.placeholder"),theme:de=>({...de,borderRadius:6,colors:{...de.colors,primary25:"#ffd6d6",primary50:"red",primary:"red",neutral80:"#6E6D6D"}})},A.length),c.nationality_id&&o.jsx("span",{className:"text-red-500",children:"Please fill out this field."})]}),o.jsxs("div",{children:[o.jsxs("label",{className:"block mb-4",children:[t("common:volunteerForeign.form.passportNumber.label"),o.jsx("i",{className:"text-pmi-red",children:"*"})]}),o.jsx("input",{...r("passport_number",{required:!0}),className:"p-3 border border-pmi-gray-lighter rounded-md w-full focus:outline-none focus:ring-2 focus:ring-pmi-red",placeholder:t("volunteerForeign.form.passportNumber.placeholder")}),c.passport_number&&o.jsx("span",{className:"text-red-500",children:"Please fill out this field."})]}),o.jsxs("div",{children:[o.jsxs("label",{className:"block mb-4",children:[t("common:volunteerForeign.form.passportExpirationDate.label"),o.jsx("i",{className:"text-pmi-red",children:"*"})]}),o.jsx("input",{type:"date",...r("passport_expiration_date",{required:!0}),className:"p-3 border border-pmi-gray-lighter rounded-md w-full focus:outline-none focus:ring-2 focus:ring-pmi-red",placeholder:t("volunteerForeign.form.passportExpirationDate.placeholder")}),c.passport_expiration_date&&o.jsx("span",{className:"text-red-500",children:"Please fill out this field."})]}),o.jsxs("div",{children:[o.jsxs("label",{className:"block mb-4",children:[t("common:volunteerForeign.form.passportDocument.label"),o.jsx("i",{className:"text-pmi-red",children:"*"})]}),o.jsx("input",{type:"file",...r("passport_document",{required:!d,onChange:de=>{ae(de)}}),className:"p-3 border border-pmi-gray-lighter rounded-md w-full focus:outline-none focus:ring-2 focus:ring-pmi-red"}),K&&o.jsx("span",{className:"text-red-500",children:K}),d&&!d&&c.passport_document&&o.jsx("span",{className:"text-red-500",children:"Please fill out this field."})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block mb-4",children:t("common:volunteerForeign.form.visaNumber.label")}),o.jsx("input",{type:"number",...r("visa_number"),className:"p-3 border border-pmi-gray-lighter rounded-md w-full focus:outline-none focus:ring-2 focus:ring-pmi-red",placeholder:t("volunteerForeign.form.visaNumber.placeholder")}),c.visa_number&&o.jsx("span",{className:"text-red-500",children:"Please fill out this field."})]}),o.jsxs("div",{children:[o.jsx("label",{className:"text-base block mb-4",children:t("common:volunteerForeign.form.visaType.label")}),o.jsx(Pp,{onChange:te,defaultValue:D.find(de=>de.value==V),options:D,styles:jg,placeholder:t("common:volunteerForeign.form.visaType.placeholder"),theme:de=>({...de,borderRadius:6,colors:{...de.colors,primary25:"#ffd6d6",primary50:"red",primary:"red",neutral80:"#6E6D6D"}})},D.length),c.visa_type_id&&o.jsx("span",{className:"text-red-500",children:"Please fill out this field."})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block mb-4",children:t("common:volunteerForeign.form.visaExpirationDate.label")}),o.jsx("input",{type:"date",...r("visa_expiration_date"),className:"p-3 border border-pmi-gray-lighter rounded-md w-full focus:outline-none focus:ring-2 focus:ring-pmi-red",placeholder:t("volunteerForeign.form.visaExpirationDate.placeholder")}),c.visa_expiration_date&&o.jsx("span",{className:"text-red-500",children:"Please fill out this field."})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block mb-4",children:t("common:volunteerForeign.form.visaDocument.label")}),o.jsx("input",{type:"file",...r("visa_document",{onChange:de=>{ae(de)}}),className:"p-3 border border-pmi-gray-lighter rounded-md w-full focus:outline-none focus:ring-2 focus:ring-pmi-red",placeholder:t("volunteerForeign.form.visaDocument.placeholder")}),R&&o.jsx("span",{className:"text-red-500",children:R}),c.visa_document&&o.jsx("span",{className:"text-red-500",children:"Please fill out this field."})]}),o.jsxs("div",{children:[o.jsxs("label",{className:"text-base block mb-4",children:[t("common:volunteerForeign.form.educationLevel.label"),o.jsx("i",{className:"text-pmi-red",children:"*"})]}),o.jsx(Pp,{onChange:pe,defaultValue:f.find(de=>de.value==N),options:f,styles:jg,placeholder:t("common:volunteerForeign.form.educationLevel.placeholder"),theme:de=>({...de,paddingTop:50,paddingBottom:50,borderRadius:6,colors:{...de.colors,primary25:"#ffd6d6",primary50:"red",primary:"red",neutral80:"#6E6D6D"}})},f.length),c.education_level_id&&o.jsx("span",{className:"text-red-500",children:"Please fill out this field."})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block mb-4",children:t("common:volunteerForeign.form.profession.label")}),o.jsx(Pp,{onChange:ne,defaultValue:P.flatMap(de=>de.options||[]).find(de=>de.value===_),options:P,styles:jg,placeholder:t("common:volunteerForeign.form.profession.placeholder"),theme:de=>({...de,paddingTop:50,paddingBottom:50,borderRadius:6,colors:{...de.colors,primary25:"#ffd6d6",primary50:"red",primary:"red",neutral80:"#6E6D6D"}})}
164,P.length),c.profession_id&&o.jsx("span",{className:"text-red-500",children:"Please fill out this field."})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block mb-4",children:t("common:volunteerForeign.form.skills.label")}),o.jsx("textarea",{...r("skills"),className:"p-3 border border-pmi-gray-lighter rounded-md w-full focus:outline-none focus:ring-2 focus:ring-pmi-red",placeholder:t("common:volunteerForeign.form.skills.placeholder")}),c.skills&&o.jsx("span",{className:"text-red-500",children:"Please fill out this field."})]}),o.jsx("hr",{}),o.jsx("h4",{className:"font-semibold text-lg",children:t("common:volunteerForeign.contactInformation")}),o.jsxs("div",{children:[o.jsxs("label",{className:"text-base block mb-4",children:[t("common:volunteerForeign.form.residence.label"),o.jsx("i",{className:"text-pmi-red",children:"*"})]}),o.jsx(Pp,{onChange:he,defaultValue:T.find(de=>de.value==v),options:T,styles:jg,placeholder:t("common:volunteerForeign.form.residence.placeholder"),theme:de=>({...de,borderRadius:6,colors:{...de.colors,primary25:"#ffd6d6",primary50:"red",primary:"red",neutral80:"#6E6D6D"}})},T.length),c.residence_id&&o.jsx("span",{className:"text-red-500",children:"Please fill out this field."})]}),o.jsxs("div",{children:[o.jsxs("label",{className:"block mb-4",children:[t("common:volunteerForeign.form.email.label"),o.jsx("i",{className:"text-pmi-red",children:"*"})]}),o.jsx("input",{...r("email",{required:!0}),type:"email",className:"p-3 border border-pmi-gray-lighter rounded-md w-full focus:outline-none focus:ring-2 focus:ring-pmi-red",placeholder:t("common:volunteerForeign.form.email.placeholder")}),c.email&&o.jsx("span",{className:"text-red-500",children:"Please fill out this field."})]}),o.jsxs("div",{children:[o.jsxs("label",{className:"block mb-4",children:[t("common:volunteerForeign.form.phoneNumber.label"),o.jsx("i",{className:"text-pmi-red",children:"*"})]}),o.jsx(oy,{enableSearch:!0,country:"id",...r("phone_number",{required:!0}),value:l("phone_number")||"",onChange:de=>a("phone_number",de||""),inputProps:{name:"phone_number",className:"w-full py-4 px-14 border border-pmi-gray-lighter rounded-md outline-none"}}),c.phone_number&&o.jsx("span",{className:"text-red-500",children:"Please fill out this field."})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block mb-4",children:t("common:volunteerForeign.form.emergencyContact.label")}),o.jsx(oy,{enableSearch:!0,country:"id",...r("emergency_contact",{required:!1}),value:l("emergency_contact")||"",onChange:de=>a("emergency_contact",de||""),inputProps:{name:"emergency_contact",className:"w-full py-4 px-14 border border-pmi-gray-lighter rounded-md outline-none"}}),c.emergency_contact&&o.jsx("span",{className:"text-red-500",children:"Please fill out this field."})]}),o.jsx("div",{className:"space-y-6",children:$re.map(({name:de,label:ue})=>o.jsxs("div",{children:[o.jsxs("label",{className:"block mb-2 font-semibold",children:[ue,o.jsx("i",{className:"text-pmi-red",children:"*"})]}),o.jsxs("div",{className:"flex gap-6",children:[o.jsxs("label",{className:"flex items-center gap-2",children:[o.jsx("input",{type:"radio",value:"1",...r(de,{required:!0})}),"Yes"]}),o.jsxs("label",{className:"flex items-center gap-2",children:[o.jsx("input",{type:"radio",value:"0",...r(de)}),"No"]})]}),c[de]&&o.jsx("span",{className:"text-red-500",children:"Please fill out this field."})]},de))}),o.jsxs("div",{className:"flex items-center mb-4",children:[o.jsx("input",{type:"checkbox",...r("termsAccepted",{required:!0}),className:"mr-2"}),o.jsxs("div",{className:"text-sm text-pmi-gray",children:[e==="en"&&o.jsxs(o.Fragment,{children:["I have read and agree to the ",o.jsx("button",{type:"button",onClick:X,className:"text-sm text-pmi-red",children:"Privacy Policy"}),"."]})," ",e==="id"&&o.jsxs(o.Fragment,{children:["I have read and agree to the ",o.jsx("button",{type:"button",onClick:X,className:"text-sm text-pmi-red",children:"Privacy Policy"}),"."]})]})]}),c.termsAccepted&&o.jsx("span",{className:"text-pmi-red",children:"Please fill out this field."}),o.jsx("button",{type:"submit",className:"w-full bg-pmi-red text-pmi-white py-2 rounded-md",children:t("common:volunteerForeign.submitButton")})]})]})},yle=()=>{const{t}=Se(["menu","common"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:volunteerForeign")}];return o.jsx(Ye,{type:"default",title:"volunteerForeign",breadcrumbs:e,children:o.jsx(xle,{})})},ble=()=>{const t=ec(),[e,n]=Z.useState(null),[i,r]=Z.useState(!1),{handleSubmit:s}=Ks(),{t:a}=Se(["common"]),l=iv(),c=sessionStorage.getItem("__FOREIGN_VOLUNTEER__"),d=c?JSON.parse(c):null,u=(p,y)=>{const m=p.split(",")[1],w=atob(m),k=new Array(w.length);for(let E=0;E<w.length;
164E++)k[E]=w.charCodeAt(E);const b=new Uint8Array(k),x=new Blob([b],{type:y}),v=URL.createObjectURL(x);window.open(v,"_blank")},h=async()=>{if(c)try{r(!0),await He.post("api/volunteer-submissions",d),t("/volunteer/foreign-volunteers/thank-you"),sessionStorage.removeItem("__FOREIGN_VOLUNTEER__")}catch(p){console.error("Failed submit data:",p),p instanceof Error&&p.response&&n(p.response.data.message)}finally{r(!1)}};return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-8 px-2",children:[o.jsx("h2",{className:"font-bold text-4xl text-pmi-red text-center",children:a("common:volunteerForeign.confirmation")}),o.jsx("p",{className:"font-semibold text-xl text-pmi-black text-center max-w-screen-sm",children:a("common:volunteerForeign.reviewData")}),o.jsxs("div",{className:"w-full max-w-2xl space-y-2 py-4 md:py-8 pl-2 md:pl-10 md:pr-10 pr-2 bg-pmi-gray-light border font-semibold",children:[o.jsx("h4",{className:"font-semibold text-lg",children:a("common:volunteerForeign.personalInformation")}),o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-pmi-gray text-base",children:[o.jsx("p",{children:a("common:volunteerForeign.form.fullName.label")}),o.jsxs("p",{children:[":Â Â Â ",l.last_name&&`${l.last_name}, `,l.first_name]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-pmi-gray text-base",children:[o.jsx("p",{children:a("common:volunteerForeign.form.dateOfBirth.label")}),o.jsxs("p",{children:[":Â Â Â ",l.date_of_birth.split("-").reverse().join("-")]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-pmi-gray text-base",children:[o.jsx("p",{children:a("common:volunteerForeign.form.gender.label")}),o.jsxs("p",{children:[":Â Â Â ",l.gender?a("common:volunteerForeign.form.gender.options.male"):a("common:volunteerForeign.form.gender.options.female")]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-pmi-gray text-base",children:[o.jsx("p",{children:a("common:volunteerForeign.form.nationality.label")}),o.jsxs("p",{children:[":Â Â Â ",l.nationality_name]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-pmi-gray text-base",children:[o.jsx("p",{children:a("common:volunteerForeign.form.passportNumber.label")}),o.jsxs("p",{children:[":Â Â Â ",l.passport_number]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-pmi-gray text-base",children:[o.jsx("p",{children:a("common:volunteerForeign.form.passportExpirationDate.label")}),o.jsxs("p",{children:[":Â Â Â ",l.passport_expiration_date.split("-").reverse().join("-")]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-pmi-gray text-base",children:[o.jsx("p",{children:a("common:volunteerForeign.form.passportDocument.label")}),o.jsxs("p",{children:[":Â Â Â ",l.passport_document&&(l.passport_document.includes("data:image")?o.jsx("button",{onClick:()=>u(l.passport_document,l.passport_document.split(";")[0].split(":")[1]),children:o.jsx("span",{className:"text-red-500",children:"View Document"})}):l.passport_document.includes("data:application/pdf")?o.jsx("button",{onClick:()=>u(l.passport_document,"application/pdf"),children:o.jsx("span",{className:"text-red-500",children:"View Document"})}):o.jsx("span",{children:"Invalid document format"}))]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-pmi-gray text-base",children:[o.jsx("p",{children:a("common:volunteerForeign.form.visaNumber.label")}),o.jsxs("p",{children:[":Â Â Â ",l.visa_number||"-"]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-pmi-gray text-base",children:[o.jsx("p",{children:a("common:volunteerForeign.form.visaType.label")}),o.jsxs("p",{children:[":Â Â Â ",l.visa_type_name||"-"]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-pmi-gray text-base",children:[o.jsx("p",{children:a("common:volunteerForeign.form.visaExpirationDate.label")}),o.jsxs("p",{children:[":Â Â Â ",l.visa_expiration_date.split("-").reverse().join("-")||"-"]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-pmi-gray text-base",children:[o.jsx("p",{children:a("common:volunteerForeign.form.visaDocument.label")}),o.jsxs("p",{children:[":Â Â Â ",l.visa_document?l.visa_document.includes("data:image")?o.jsx("button",{onClick:()=>u(l.visa_document,l.visa_document.split(";")[0].split(":")[1]),children:o.jsx("span",{className:"text-red-500",children:"View Document"})}):l.visa_document.includes("data:application/pdf")?o.jsx("button",{onClick:()=>u(l.visa_document,"application/pdf"),children:o.jsx("span",{className:"text-red-500",children:"View Document"})}):o.jsx("span",{children:"Invalid document format"}):o.jsx("span",{children:"-"})]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-pmi-gray text-base",children:[o.jsx("p",{children:a("common:volunteerForeign.form.educationLevel.label")}),o.jsxs("p",{children:[":Â Â Â ",l.education_level_name]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-pmi-gray text-base",children:[o.jsx("p",{children:a("common:volunteerForeign.form.profession.label")}),o.jsxs("p",{children:[":Â Â Â ",l.profession_name]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-pmi-gray text-base",children:[o.jsx("p",{children:a("common:volunteerForeign.form.skills.label")}),o.jsxs("p",{children:[":Â Â Â ",l.skills]})]}),o.jsx("h4",{className:"font-semibold text-lg pt-4",children:a("common:volunteerForeign.contactInformation")}),o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-pmi-gray text-base",children:[o.jsx("p",{children:a("common:volunteerForeign.form.residence.label")}),o.jsxs("p",{children:[":Â Â Â ",l.residence_name]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-pmi-gray text-base",children:[o.jsx("p",{children:a("common:volunteerForeign.form.email.label")}),o.jsxs("p",{children:[":Â Â Â ",l.email||"-"]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-pmi-gray text-base",children:[o.jsx("p",{children:a("common:volunteerForeign.form.phoneNumber.label")}),o.jsxs("p",{children:[":Â Â Â ",l.phone_number||"-"]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-pmi-gray text-base",children:[o.jsx("p",{children:a("common:volunteerForeign.form.emergencyContact.label")}),o.jsxs("p",{children:[":Â Â Â ",l.emergency_contact||"-"]})]}),o.jsx("h4",{className:"font-semibold text-lg pt-4",children:"User Agreement"}),o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-pmi-gray text-base",children:[o.jsx("p",{children:"Comply with Indonesian laws and regulations"}),o.jsxs("p",{children:[":Â Â Â ",l.is_law_abiding==1?"Yes":"No"]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-pmi-gray text-base",children:[o.jsx("p",{children:"Agree to uphold Red Cross principles and PMI Statutes"}),o.jsxs("p",{children:[":Â Â Â ",l.is_principles_accepted==1?"Yes":"No"]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-pmi-gray text-base",children:[o.jsx("p",{children:"Willing to attend Red Cross orientation"}),o.jsxs("p",{children:[":Â Â Â ",l.is_orientation_willing==1?"Yes":"No"]})]})]}),e&&o.jsx("span",{className:"text-red-500",children:e}),o.jsxs("div",{className:"w-full max-w-2xl flex gap-2 py-4",children:[o.jsx("a",{href:"/volunteer/foreign-volunteers",className:"w-full bg-pmi-gray-lighter flex justify-center items-center text-pmi-gray text-base p-2 rounded-lg cursor-pointer hover:bg-pmi-gray-light",children:a("common:back")}),o.jsx("form",{onSubmit:s(h),className:"w-full",children:o.jsx("button",{type:"submit",className:`w-full bg-pmi-red flex justify-center items-center text-base text-pmi-white p-2 rounded-lg cursor-pointer hover:bg-pmi-red-light ${i?"opacity-50 cursor-not-allowed":""}`,disabled:i,children:i?"Loading...":a("common:volunteerForeign.submitButton")})})]})]})},vle=()=>{const{t}=Se(["menu","common"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:volunteers"),path:"/volunteer"},{label:t("menu:volunteerForeign"),path:"/volunteer/foreign-volunteers"},{label:t("menu:volunteerForeignConfirmation")}];return o.jsx(Ye,{type:"default",title:"volunteerForeignConfirmation",breadcrumbs:e,children:o.jsx(ble,{})})},wle=()=>{const{t}=Se(["common"]),{data:e}=Xf();return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-12 px-2",children:[o.jsx("p",{className:"font-medium text-lg text-pmi-gray text-center py-4",children:t("common:registerSuccess.followUs")}),o.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-center gap-x-16",children:[!e&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"flex flex-col justify-center items-center gap-4",children:o.jsxs("a",{href:"https://www.facebook.com/Palang+Merah+Indonesia",target:"_blank",rel:"noopener noreferrer","aria-label":"Facebook",className:"group rounded-full bg-pmi-gray-light hover:bg-pmi-red p-4",children:[o.jsx("img",{src:ep,alt:"Facebook",className:"w-16 h-16] transition-transform transform group-hover:hidden"}),o.jsx("img",{src:tp,alt:"Facebook",className:"w-16 h-16 transition-transform transform hidden group-hover:block"})]})}),o.jsx("div",{className:"flex flex-col justify-center items-center gap-4",children:o.jsxs("a",{href:"https://twitter.com/palangmerah",target:"_blank",rel:"noopener noreferrer","aria-label":"X (formerly Twitter)",className:"group rounded-full bg-pmi-gray-light hover:bg-pmi-red p-4",children:[o.jsx("img",{src:np,alt:"Twitter",className:"w-16 h-16 transition-transform transform group-hover:hidden"}),o.jsx("img",{src:ip,alt:"Twitter",className:"w-16 h-16 transition-transform transform hidden group-hover:block"})]})}),o.jsx("div",{className:"flex flex-col justify-center items-center gap-4",children:o.jsxs("a",{href:"https://www.instagram.com/palangmerah_indonesia",target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram",className:"group rounded-full bg-pmi-gray-light hover:bg-pmi-red p-4",children:[o.jsx("img",{src:rp,alt:"Instagram",className:"w-16 h-16 transition-transform transform group-hover:hidden"}),o.jsx("img",{src:sp,alt:"Instagram",className:"w-16 h-16 transition-transform transform hidden group-hover:block"})]})}),o.jsx("div",{className:"flex flex-col justify-center items-center gap-4",children:o.jsxs("a",{href:"https://www.instagram.com/pmi_tv",target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram",className:"group rounded-full bg-pmi-gray-light hover:bg-pmi-red p-4",children:[o.jsx("img",{src:ap,alt:"YouTube",className:"w-16 h-16 transition-transform transform group-hover:hidden"}),o.jsx("img",{src:op,alt:"YouTube",className:"w-16 h-16 transition-transform transform hidden group-hover:block"})]})})]}),e&&e.map((n,i)=>o.jsx("div",{className:"flex flex-col justify-center items-center gap-4",children:o.jsxs("a",{href:n.url,target:"_blank",rel:"noopener noreferrer","aria-label":n.title,className:"flex justify-center items-center group rounded-full bg-pmi-gray-light hover:bg-pmi-red w-24 h-24 text-6xl",children:[o.jsx("span",{className:"mx-auto text-pmi-red transition-transform transform group-hover:hidden",children:o.jsx("i",{className:n.image})}),o.jsx("span",{className:"text-white transition-transform transform hidden group-hover:block",children:o.jsx("i",{className:n.image})})]})},i))]})]})},kle=()=>{const{t}=Se(["common"]),e=iv();return o.jsxs("div",{className:"flex flex-col flex-wrap gap-2 items-center justify-center mt-8 py-20 my-12 px-2",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center",children:t("common:volunteerForeign.thankYouTitle")}),o.jsx("img",{src:"/svg/heart.svg",alt:t("common:volunteerForeign.thankYouTitle"),className:"w-60 h-60"}),o.jsxs("p",{className:"font-normal text-2xl text-pmi-gray text-center",children:["Dear ",e==null?void 0:e.first_name,","]}),o.jsx("p",{className:"font-light text-lg text-pmi-gray text-center max-w-2xl mb-6",children:t("common:volunteerForeign.thankYouBody")}),o.jsxs("div",{className:"max-w-2xl flex items-start gap-2 bg-pmi-gray-light font-light text-pmi-gray text-sm px-6 py-4",children:[o.jsx("img",{src:"/svg/info.svg",alt:t("common:volunteerForeign.thankYouTitle"),className:"w-5 h-5"}),o.jsxs("div",{className:"space-y-2",children:[o.jsx("p",{className:"font-semibold",children:t("volunteerForeign.whatHappensNextTitle")}),o.jsx("p",{children:t("volunteerForeign.whatHappensNextBody")})]})]})]})},Sle=()=>{const{t}=Se(["menu"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:volunteers"),path:"/volunteer"},{label:t("menu:volunteerForeign"),path:"/volunteer/foreign-volunteers"},{label:t("menu:thankYou")}];return o.jsxs(Ye,{type:"default",title:"thankYou",breadcrumbs:e,children:[o.jsx(kle,{}),o.jsx(wle,{})]})},AO=async()=>{const t=sessionStorage.getItem("__FOREIGN_VOLUNTEER__");return t?JSON.parse(t):TA("/volunteer/foreign-volunteers")},Cle=[{path:"/volunteer",element:o.jsx(gie,{}),errorElement:o.jsx(We,{})},{path:"/volunteer/volunteer-stories",element:o.jsx(Nre,{}),errorElement:o.jsx(We,{})},{path:"/volunteer/volunteer-stories/:id",element:o.jsx(_re,{}),errorElement:o.jsx(We,{})},{path:"/volunteer/youth-red-cross",element:o.jsx(xre,{}),errorElement:o.jsx(We,{})},{path:"/volunteer/volunteer-corps",element:o.jsx(yie,{}),errorElement:o.jsx(We,{})},{path:"/volunteer/foreign-volunteers",element:o.jsx(yle,{}),errorElement:o.jsx(We,{})},{path:"/volunteer/foreign-volunteers/confirmation",loader:AO,element:o.jsx(vle,{}),errorElement:o.jsx(We,{})},{path:"/volunteer/foreign-volunteers/thank-you",loader:AO,element:o.jsx(Sle,{}),errorElement:o.jsx(We,{})},{path:"/volunteer/register",element:o.jsx(fre,{}),errorElement:o.jsx(We,{})},{path:"/volunteer/success",element:o.jsx(kie,{}),errorElement:o.jsx(We,{})}],jle=()=>{const{t}=Se(["common"]);return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-2 lg:py-8 px-4 md:px-20",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center",children:t("common:pressRelease.title")}),o.jsx("p",{className:"font-light text-lg text-pmi-gray text-center",children:t("common:pressRelease.stayUpdated")}),o.jsx("div",{className:"w-full max-w-2xl mx-auto py-8",children:o.jsx(up,{})})]})},wM=({imageUrl:t,imageAlt:e,date:n,title:i,content:r,url:s})=>{const{t:a}=Se(["common"]),[l,c]=Z.useState(!1),d=Z.useRef(null);return Z.useEffect(()=>{const u=()=>{if(d.current){const{scrollHeight:p,clientHeight:y}=d.current;c(p>y)}};u();const h=new ResizeObserver(u);return d.current&&h.observe(d.current),()=>{h.disconnect()}},[r]),o.jsxs("div",{className:"w-full bg-white rounded-sm shadow-md overflow-hidden xl:flex",children:[o.jsx("div",{className:"w-full xl:w-1/2",children:o.jsx("img",{className:"w-full h-full xl:min-h-96 object-cover",src:t,alt:e||"Card image"})}),o.jsxs("div",{className:"w-full xl:w-1/2 px-8 pb-8 my-auto",children:[o.jsx("div",{className:"text-sm font-light text-pmi-gray mt-4",children:n}),o.jsx("h2",{className:"uppercase tracking-wide text-2xl font-medium",children:i}),o.jsxs("div",{className:"mt-2 text-pmi-gray font-normal text-sm text-ju
164stify",children:[o.jsx("div",{ref:d,className:"line-clamp-6",dangerouslySetInnerHTML:{__html:r}}),l&&o.jsx("a",{href:s,className:"text-pmi-red",children:a("common:readMore")})]})]})]})},Tle=()=>{const{t}=Se(["common"]),{language:e}=_e(),{data:n,isLoading:i}=YN("Press");return n?o.jsx("div",{className:"flex justify-center px-4 md:px-20 xl:px-32 py-8 bg-pmi-red bg-gradient-to-l from-pmi-red to-pmi-red-dark",children:o.jsxs("div",{className:"flex flex-col gap-4 py-8",children:[o.jsx("h3",{className:"font-medium text-3xl text-white italic",children:t("common:pressRelease.recentPressRelease")}),o.jsxs("div",{className:"flex justify-center max-w-7xl",children:[i&&o.jsx(Ot,{minWidth:"w-[80rem]",maxWidth:"max-w-full",minHeight:"min-h-72"}),n&&o.jsx("a",{href:`/news/press-release/${n.slug}`,className:"w-full cursor-pointer",children:o.jsx(wM,{imageUrl:`${ze}/${n.image}`,title:e==="en"?n.title:n.title_indo,date:t("common:viewed",{date:Ni(n.news_date,e),count:n.views}),content:e==="en"?n.subtitle:n.subtitle_indo,url:`/news/press-release/${n.slug}`})})]})]})}):null},Ple=()=>{const{t}=Se(["common"]),{language:e}=_e(),{searchTerm:n}=kr(),[i,r]=Z.useState(1),{data:s,isLoading:a,refetch:l}=Rd("Press",e,n,i),c=d=>{r(d)};return Z.useEffect(()=>{l()},[n,i]),o.jsxs("div",{className:"flex flex-col items-center justify-center bg-pmi-white px-4 md:px-20",children:[!a&&(s==null?void 0:s.total)===0&&o.jsx("p",{className:"text-pmi-red text-3xl font-normal text-center",children:t("common:pressRelease.notFound")}),s&&o.jsxs("div",{className:`grid grid-cols-1 md:grid-cols-${s.data.length>2?3:s.data.length} gap-8 pt-10 pb-4 md:px-0`,children:[a&&[1,2,3].map(d=>o.jsx(Ot,{onlyImage:!0,minHeight:"min-h-40",minWidth:"min-w-52"},d)),s&&s.data.map((d,u)=>o.jsx("a",{href:`/news/press-release/${d.slug}`,className:"cursor-pointer",children:o.jsx(Of,{image:`${ze}/${d.image}`,title:e==="en"?d.title:d.title_indo,subTitle:t("common:viewed",{date:Ni(d.news_date,e),count:d.views})},u)})),o.jsx("div",{className:"col-span-full border-b border-pmi-gray-lighter",children:o.jsx("p",{className:"w-full text-pmi-gray text-sm font-light mt-8",children:t("common:pagination",{start:(s==null?void 0:s.from)||0,end:(s==null?void 0:s.to)||0,total:(s==null?void 0:s.total)||0})})}),o.jsx("div",{className:"col-span-full justify-center",children:(s==null?void 0:s.links)&&o.jsx(Hi,{links:s==null?void 0:s.links,onPageChange:c,currentPage:i})})]})]})},Ele=()=>{const{t}=Se(["menu"]),{searchTerm:e}=kr(),n=[{label:t("menu:home"),path:"/"},{label:t("menu:pressReleases")}];return Z.useEffect(()=>{},[]),o.jsxs(Ye,{type:"default",title:"pressReleases",breadcrumbs:n,children:[o.jsx(jle,{}),!e&&o.jsx(Tle,{}),o.jsx(Ple,{})]})},Ale=()=>{const{t}=Se(["common"]),{language:e}=_e(),{data:n,isLoading:i}=YN("Article");return n?o.jsx("div",{className:"flex justify-center px-4 md:px-20 xl:px-32 py-8 bg-pmi-red bg-gradient-to-l from-pmi-red to-pmi-red-dark",children:o.jsxs("div",{className:"flex flex-col gap-4 py-8",children:[o.jsx("h3",{className:"font-medium text-4xl text-white italic",children:t("common:articles.recentArticle")}),o.jsxs("div",{className:"flex justify-center max-w-7xl",children:[i&&o.jsx(Ot,{minWidth:"w-[80rem]",maxWidth:"max-w-full",minHeight:"min-h-72"}),n&&o.jsx("a",{href:`/news/article/${n.slug}`,className:"w-full cursor-pointer",children:o.jsx(wM,{imageUrl:`${ze}/${n.image}`,title:e==="en"?n.title:n.title_indo,date:t("common:viewed",{date:Ni(n.news_date,e),count:n.views}),content:e==="en"?n.subtitle:n.subtitle_indo,url:`/news/article/${n.slug}`})})]})]})}):null},Nle=()=>{const{t}=Se(["common"]),{language:e}=_e(),{searchTerm:n}=kr(),[i,r]=Z.useState(1),{data:s,isLoading:a,refetch:l}=Rd("Article",e,n,i),c=d=>{r(d)};return Z.useEffect(()=>{l()},[n,i]),o.jsxs("div",{className:"flex flex-col items-center justify-center bg-pmi-white px-4 md:px-20",children:[!a&&(s==null?void 0:s.total)===0&&o.jsx("p",{className:"text-pmi-red text-3xl font-normal text-center",children:t("common:articles.notFound")}),s&&o.jsxs("div",{className:`grid grid-cols-1 md:grid-cols-${s.data.length>2?3:s.data.length} gap-8 pt-10 pb-4 md:px-0`,children:[a&&[1,2,3].map(d=>o.jsx(Ot,{onlyImage:!0,minHeight:"min-h-40",minWidth:"min-w-52"},d)),s&&s.data.map((d,u)=>o.jsx("a",{href:`/news/article/${d.slug}`,className:" cursor-pointer",children:o.jsx(Of,{image:`${ze}/${d.image}
164`,title:e==="en"?d.title:d.title_indo,subTitle:t("common:viewed",{date:Ni(d.news_date,e),count:d.views})},u)})),o.jsx("div",{className:"col-span-full border-b border-pmi-gray-lighter",children:o.jsx("p",{className:"w-full text-pmi-gray text-sm font-light mt-8",children:t("common:pagination",{start:(s==null?void 0:s.from)||0,end:(s==null?void 0:s.to)||0,total:(s==null?void 0:s.total)||0})})}),o.jsx("div",{className:"col-span-full justify-center",children:(s==null?void 0:s.links)&&o.jsx(Hi,{links:s==null?void 0:s.links,onPageChange:c,currentPage:i})})]})]})},Mle=()=>{const{t}=Se(["common"]);return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-4 lg:py-8 bg-pmi-gray-light px-4 md:px-20",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center",children:t("common:articles.title")}),o.jsx("p",{className:"font-light text-lg text-pmi-gray text-center",children:t("common:articles.exploreInDepthInformationAndUpdates")}),o.jsx("div",{className:"w-full max-w-2xl mx-auto py-8",children:o.jsx(up,{placeholder:"common:articles.searchArticles"})})]})},Dle=()=>{const{t}=Se(["menu"]),{searchTerm:e}=kr(),n=[{label:t("menu:home"),path:"/"},{label:t("menu:articles")}];return o.jsxs(Ye,{type:"default",title:"articles",breadcrumbs:n,children:[o.jsx(Mle,{}),!e&&o.jsx(Ale,{}),o.jsx(Nle,{})]})},_le=()=>{const{t}=Se(["common"]),{data:e,isLoading:n}=Xf();return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-12 mb-12 lg:mb-52 bg-pmi-white",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center max-w-2xl capitalize",children:t("common:socialMedia.title")}),o.jsx("p",{className:"font-light text-lg text-pmi-gray text-center",children:t("common:socialMedia.followUs")}),!n&&!e&&o.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-center gap-x-12 py-4 mt-10",children:[o.jsxs("div",{className:"flex flex-col justify-center items-center gap-4",children:[o.jsxs("a",{href:"https://www.facebook.com/Palang+Merah+Indonesia",target:"_blank",rel:"noopener noreferrer","aria-label":"Facebook",className:"group rounded-full bg-pmi-gray-light hover:bg-pmi-red p-4",children:[o.jsx("img",{src:ep,alt:"Facebook",className:"w-16 h-16] transition-transform transform group-hover:hidden"}),o.jsx("img",{src:tp,alt:"Facebook",className:"w-16 h-16 transition-transform transform hidden group-hover:block"})]}),o.jsx("p",{className:"text-pmi-gray font-normal text-sm",children:"Palang Merah Indonesia"})]}),o.jsxs("div",{className:"flex flex-col justify-center items-center gap-4",children:[o.jsxs("a",{href:"https://twitter.com/palangmerah",target:"_blank",rel:"noopener noreferrer","aria-label":"X (formerly Twitter)",className:"group rounded-full bg-pmi-gray-light hover:bg-pmi-red p-4",children:[o.jsx("img",{src:np,alt:"Twitter",className:"w-16 h-16 transition-transform transform group-hover:hidden"}),o.jsx("img",{src:ip,alt:"Twitter",className:"w-16 h-16 transition-transform transform hidden group-hover:block"})]}),o.jsx("p",{className:"text-pmi-gray font-normal text-sm",children:"palangmerah"})]}),o.jsxs("div",{className:"flex flex-col justify-center items-center gap-4",children:[o.jsxs("a",{href:"https://www.instagram.com/palangmerah_indonesia",target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram",className:"group rounded-full bg-pmi-gray-light hover:bg-pmi-red p-4",children:[o.jsx("img",{src:rp,alt:"Instagram",className:"w-16 h-16 transition-transform transform group-hover:hidden"}),o.jsx("img",{src:sp,alt:"Instagram",className:"w-16 h-16 transition-transform transform hidden group-hover:block"})]}),o.jsx("p",{className:"text-pmi-gray font-normal text-sm",children:"palangmerah_indonesia"})]}),o.jsxs("div",{className:"flex flex-col justify-center items-center gap-4",children:[o.jsxs("a",{href:"https://www.instagram.com/pmi_tv",target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram",className:"group rounded-full bg-pmi-gray-light hover:bg-pmi-red p-4",children:[o.jsx("img",{src:ap,alt:"YouTube",className:"w-16 h-16 transition-transform transform group-hover:hidden"}),o.jsx("img",{src:op,alt:"YouTube",className:"w-16 h-16 transition-transform transform hidden group-hover:block"})]}),o.jsx("p",{className:"text-pmi-gray font-normal text-sm",children:"pmi_tv"})]})]}),e&&o.jsx("div",{className:"flex flex-col md:flex-row items-center justify-center gap-x-12 py-4 mt-10",children:e.map((i,r)=>o.jsxs("div",{className:"flex flex-col justify-center items-center gap-4",children:[o.jsxs("a",{href:i.url,target:"_blank",rel:"noopener noreferrer","aria-label":i.title,className:"flex justify-center items-center group rounded-full bg-pmi-gray-light hover:bg-pmi-red w-24 h-24 text-6xl",children:[o.jsx("span",{className:"text-pmi-red transition-transform transform group-hover:hidden",children:o.jsx("i",{className:i.image})}),o.jsx("span",{className:"text-white transition-transform transform hidden group-hover:block",children:o.jsx("i",{className:i.image})})]}),o.jsx("p",{className:"text-pmi-gray font-normal text-sm",children:i.title})]},r))})]})},Ile=()=>{const{t}=Se(["menu"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:socialMedia")}];return Z.useEffect(()=>{},[]),o.jsx(Ye,{type:"default",title:"socialMedia",breadcrumbs:e,children:o.jsx(_le,{})})},Rle=({pressId:t})=>{const{t:e}=Se(["common"]),{language:n}=_e(),{data:i,isLoading:r}=Rd("Article",n,void 0,void 0,t);return o.jsxs("div",{className:"mb-4",children:[o.jsx("h3",{className:"px-8 py-6 bg-pmi-gray-lighter font-medium text-xl capitalize",children:e("common:articles.recentArticle")}),o.jsxs("div",{className:"border px-2",children:[r&&[1,2,3].map(s=>o.jsx(Ot,{onlyImage:!0,minHeight:"min-h-40",minWidth:"min-w-52"},s)),i&&i.data.map((s,a)=>a<5&&o.jsx("a",{href:`/news/article/${s.slug}`,className:" cursor-pointer",children:o.jsx(gv,{date:e("common:viewed",{date:Ni(s.news_date,n),count:s.views}),title:n==="en"?s.title:s.title_indo,titleClass:"capitalize font-bold text-sm text-pmi-black leading-6 py-4 text-ellipsis overflow-hidden",imageUrl:`${ze}/${s.image}`},a)}))]})]})},Ole=({article:t})=>{const{t:e}=Se(["common"]),{language:n}=_e();return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-8 px-4 md:px-20",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center max-w-2xl",children:n==="en"?t.title:t.title_indo}),o.jsx("p",{className:"font-light text-lg text-pmi-gray text-center",children:e("common:viewed",{date:Ni(t.news_date,n),count:t.views})}),o.jsxs("div",{className:"w-full max-w-6xl mx-auto py-8 space-y-12",children:[o.jsx("img",{src:`${ze}/${t.image}`,alt:n==="en"?t.title:t.title_indo,className:"w-full object-cover max-h-96"}),o.jsxs("div",{className:"flex flex-col lg:flex-row justify-between gap-8",children:[o.jsx("div",{className:"w-full xl:max-w-3xl space-y-4 text-pmi-black text-base font-light leading-8 text-ju
164stify",children:o.jsx(Et,{customClassName:"space-y-4",content:n==="en"?t.content:t.content_indo})}),o.jsx("div",{className:"space-y-8",children:o.jsx(Rle,{pressId:t==null?void 0:t.news_id})})]})]})]})},Lle=()=>{const{t}=Se(["menu"]),{id:e}=ni(),{language:n}=_e(),{data:i,isLoading:r,isError:s}=AS(e||"");if(s)return o.jsx(xi,{});if(!i||r)return null;const a=[{label:t("menu:home"),path:"/"},{label:t("menu:articles"),path:"/news/articles"},{label:n==="en"?i==null?void 0:i.title:i==null?void 0:i.title_indo}];return o.jsx(Ye,{type:"default",forceTitle:n==="en"?i==null?void 0:i.title:i==null?void 0:i.title_indo,breadcrumbs:a,description:ic(n==="en"?i==null?void 0:i.subtitle:i==null?void 0:i.subtitle_indo),children:o.jsx(Ole,{article:i})})},Fle=({pressId:t=null})=>{const{t:e}=Se(["common"]),{language:n}=_e(),{data:i,isLoading:r}=Rd("Press",n,void 0,void 0,t);return o.jsxs("div",{className:"mb-4",children:[o.jsx("h3",{className:"px-8 py-6 bg-pmi-gray-lighter font-medium text-xl capitalize",children:e("common:pressRelease.recentPressRelease")}),r&&[1,2,3].map(s=>o.jsx(Ot,{onlyImage:!0,minHeight:"min-h-40",minWidth:"min-w-52"},s)),i&&i.data.map((s,a)=>a<5&&o.jsx("a",{href:`/news/press-release/${s.slug}`,className:" cursor-pointer",children:o.jsx(gv,{date:e("common:viewed",{date:Ni(s.news_date,n),count:s.views}),title:n==="en"?s.title:s.title_indo,titleClass:"capitalize font-bold text-sm text-pmi-black leading-6 py-4 text-ellipsis overflow-hidden",imageUrl:`${ze}/${s.image}`},a)}))]})},Ble=({press:t})=>{const{t:e}=Se(["common"]),{language:n}=_e();return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-8 px-4 md:px-20",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center max-w-2xl",children:n==="en"?t.title:t.title_indo}),o.jsx("p",{className:"font-light text-lg text-pmi-gray text-center",children:e("common:viewed",{date:Ni(t.news_date,n),count:t.views})}),o.jsxs("div",{className:"w-full max-w-6xl mx-auto py-8 space-y-12",children:[o.jsx("img",{src:`${ze}/${t.image}`,alt:n==="en"?t.title:t.title_indo,className:"w-full object-cover max-h-96"}),o.jsxs("div",{className:"flex flex-col lg:flex-row justify-between gap-8",children:[o.jsx("div",{className:"w-full xl:max-w-3xl space-y-4 text-pmi-black text-base font-light leading-8 text-justify",children:o.jsx(Et,{customClassName:"space-y-4",content:n==="en"?t.content:t.content_indo})}),o.jsx("div",{className:"space-y-8",children:o.jsx(Fle,{pressId:t.news_id})})]})]})]})},$le=()=>{const{t}=Se(["menu"]),{id:e}=ni(),{language:n}=_e(),{data:i,isLoading:r,isError:s}=AS(e||"");if(s)return o.jsx(xi,{});if(!i||r)return null;const a=[{label:t("menu:home"),path:"/"},{label:t("menu:pressReleases"),path:"/news/press-releases"},{label:n==="en"?i==null?void 0:i.title:i==null?void 0:i.title_indo}];return o.jsx(Ye,{type:"default",forceTitle:n==="en"?i==null?void 0:i.title:i==null?void 0:i.title_indo,breadcrumbs:a,description:ic(n==="en"?i==null?void 0:i.subtitle:i==null?void 0:i.subtitle_indo),children:o.jsx(Ble,{press:i})})},Hle=[{path:"/news/press-releases",element:o.jsx(Ele,{}),errorElement:o.jsx(We,{})},{path:"/news/press-release/:id",element:o.jsx($le,{}),errorElement:o.jsx(We,{})},{path:"/news/articles",element:o.jsx(Dle,{}),errorElement:o.jsx(We,{})},{path:"/news/article/:id",element:o.jsx(Lle,{}),errorElement:o.jsx(We,{})},{path:"/news/social-media",element:o.jsx(Ile,{}),errorElement:o.jsx(We,{})}],NO=({title:t,image:e})=>o.jsxs("div",{className:"group relative overflow-hidden max-w-lg bg-transparent",children:[o.jsx("img",{src:e,alt:t,className:"w-full object-cover"}),o.jsx("div",{className:"absolute bottom-6 right-4",children:o.jsx("h4",{className:"text-pmi-white text-4xl font-bold",children:t})})]}),zle=({header:t,principles:e,fundamental:n})=>{const{t:i}=Se(["common"]),{language:r}=_e(),s=[{title:i("common:fundamentalPrinciples.humanity"),description:i("common:fundamentalPrinciples.humanityDescription"),image:"/png/7-fundamental-principles/1.png"},{title:i("common:fundamentalPrinciples.impartiality"),description:i("common:fundamentalPrinciples.impartialityDescription"),image:"/png/7-fundamental-principles/2.png"},{title:i("common:fundamentalPrinciples.neutrality"),description:i("common:fundamentalPrinciples.neutralityDescription"),image:"/png/7-fundamental-principles/3.png"},{title:i("common:fundamentalPrinciples.independence"),description:i("common:fundamentalPrinciples.independenceDescription"),image:"/png/7-fundamental-principles/4.png"},{title:i("common:fundamentalPrinciples.voluntaryService"),description:i("common:fundamentalPrinciples.voluntaryServiceDescription"),image:"/png/7-fundamental-principles/5.png"},{title:i("common:fundamentalPrinciples.unity"),description:i("common:fundamentalPrinciples.unityDescription"),image:"/png/7-fundamental-principles/6.png"},{title:i("common:fundamentalPrinciples.universality"),description:i("common:fundamentalPrinciples.universalityDescription"),image:"/png/7-fundamental-principles/7.png"}];return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-8 px-2",children:[o.jsx("h2",{className:"font-medium text-2xl text-pmi-gray text-center",children:i("menu:aboutUs")}),o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center",children:(t&&r=="en"?t.title:t.title_indo)||i("common:fundamentalPrinciples.7FundamentalPrinciples")}),o.jsx("p",{className:"font-light text-xl text-pmi-gray text-center max-w-screen-lg",children:(t&&r=="en"?t.desc:t.desc_indo)||i("common:fundamentalPrinciples.fundamentalPrinciplesTitle")}),!e&&s.map((a,l)=>o.jsxs("div",{className:"flex flex-col lg:flex-row justify-center gap-14 mx-auto py-8",children:[o.jsx(NO,{title:a.title,image:a.image}),o.jsxs("div",{className:"relative max-w-lg space-y-2",children:[o.jsx("h3",{className:"font-medium text-2xl text-pmi-black",children:a.title}),o.jsx("p",{className:"font-normal text-base text-pmi-gray",children:a.description})]})]},l)),e&&e.map((a,l)=>o.jsxs("div",{className:"flex flex-col lg:flex-row justify-center gap-14 w-full mx-auto py-8",children:[o.jsx(NO,{title:r=="en"?a.title:a.title_indo,image:`${ze}/${a.image}`}),o.jsxs("div",{className:"relative w-full max-w-lg space-y-2",children:[o.jsx("h3",{className:"font-medium text-2xl text-pmi-black",children:r=="en"?a.title:a.title_indo}),o.jsx("p",{className:"font-normal text-base text-pmi-gray",children:r=="en"?a.desc:a.desc_indo})]})]},l)),o.jsx("p",{className:"max-w-3xl font-normal text-lg text-center text-pmi-gray",children:(r=="en"?n.desc:n.desc_indo)||i("common:fundamentalPrinciples.fundamentalPrinciplesConclusion")})]})},Vle=({redCrossSymbolData:t})=>{const{t:e}=Se(["common"]),{language:n}=_e(),i=[{title:e("common:fundamentalPrinciples.redCrossSymbol"),description:e("common:fundamentalPrinciples.redCrossSymbolDescription")},{title:e("common:fundamentalPrinciples.redCrescentSymbol"),description:e("common:fundamentalPrinciples.redCrescentSymbolDescription")},{title:e("common:fundamentalPrinciples.redCrystalSymbol"),description:e("common:fundamentalPrinciples.redCrystalSymbolDescription")}];return o.jsxs("div",{className:"relative bg-pmi-gray-light py-8 px-2",children:[o.jsx("h3",{className:"font-bold text-center text-4xl text-pmi-red",children:e("common:fundamentalPrinciples.redCrossSymbol")}),o.jsxs("div",{className:"flex flex-col lg:flex-row gap-12 items-center justify-center py-8 px-2 lg:px-36 my-8 ",children:[o.jsx("img",{src:"/png/7-fundamental-principles/red-cross-emblem.png",alt:e("common:fundamentalPrinciples.redCrossSymbol"),className:"w-full max-w-96 xl:max-w-lg"}),o.jsxs("div",{className:"relative max-w-lg space-y-2",children:[!t&&i.map((r,s)=>o.jsxs("div",{className:"space-y-2",children:[o.jsx("h4",{className:"font-medium text-xl text-pmi-black",children:r.title}),o.jsx("p",{className:"font-normal text-base text-pmi-gray",children:r.description})]},s)),t&&t.map((r,s)=>o.jsxs("div",{className:"space-y-2",children:[o.jsx("h4",{className:"font-medium text-xl text-pmi-black",children:n==="en"?r.title:r.title_indo}),o.jsx("p",{className:"font-normal text-base text-pmi-gray",children:n==="en"?r.desc:r.desc_indo})]},s))]})]})]})},Ule=({video:t})=>{const{t:e}=Se(["common"]),{language:n}=_e();return o.jsxs("div",{className:"flex flex-col justify-center items-center py-16 px-2",children:[o.jsx("div",{className:"bg-pmi-red-dark bg-gradient-to-r from-pmi-red-dark to-pmi-red-light w-full max-w-4xl py-4 rounded-xl",children:o.jsx("h3",{className:"font-bold text-center text-xs md:text-xl text-pmi-white",children:t.media_name!=null&&t.media_name_indo!=null?n=="en"?t.media_name:t.media_name_indo:e("common:fundamentalPrinciples.understandingEmblem")})}),o.jsx("div",{className:"w-full max-w-4xl px-8",children:o.jsx("div",{className:"border shadow-xl p-6",children:o.jsx(Zf,{imageUrl:"/png/7-fundamental-principles/video.png",videoUrl:t!=null&&t.external_url?t.external_url:"https://www.youtube.com/embed/-uhksOI9CB0",altText:n=="en"?t.media_name:t.media_name_indo})})})]})},Wle=async()=>{const t=await He.get("/api/about-us/seven-principle");if(!t)throw new Error("Network response was not ok");return t==null?void 0:t.data},Gle=async()=>{const t=await He.get("/api/about-us/vision-mission");if(!t)throw new Error("Network response was not ok");return t==null?void 0:t.data},qle=async()=>{const t=await He.get("/api/about-us/history");if(!t)throw new Error("Network response was not ok");return t==null?void 0:t.data},Kle=()=>Ge({queryKey:["seven_principles"],queryFn:Gle,staleTime:1e3*60*60,gcTime:1e3*60*60}),Yle=()=>Ge({queryKey:["seven_principles"],queryFn:Wle,staleTime:1e3*60*60,gcTime:1e3*60*60}),Xle=()=>Ge({queryKey:["history"],queryFn:qle,staleTime:1e3*60*60,gcTime:1e3*60*60}),Jle=()=>{const{t}=Se(["menu","common"]),{data:e,isLoading:n}
164=Yle(),i=[{label:t("menu:home"),path:"/"},{label:t("menu:movementPrinciples")}];return o.jsxs(Ye,{type:"default",title:"movementPrinciples",breadcrumbs:i,children:[n&&[1,2,3].map(r=>o.jsx(Ot,{onlyImage:!0,minHeight:"min-h-72",minWidth:"min-w-72"},r)),!n&&e&&o.jsxs(o.Fragment,{children:[o.jsx(zle,{header:e==null?void 0:e.section_1,principles:e==null?void 0:e.section_2,fundamental:e==null?void 0:e.section_3}),o.jsx(Vle,{redCrossSymbolData:e.section_4}),o.jsx(Ule,{video:e==null?void 0:e.section_5})]})]})},kM=({addClassName:t="h-6 w-6"})=>o.jsxs("svg",{className:t,viewBox:"0 0 10 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("g",{"clip-path":"url(#clip0_445_7834)",children:o.jsx("path",{d:"M8.75078 10.375C8.75178 10.457 8.73561 10.5382 8.70332 10.6136C8.67103 10.6889 8.62333 10.7567 8.56328 10.8125L2.93828 16.4375C2.68828 16.6875 2.30078 16.6875 2.05078 16.4375C1.80078 16.1875 1.80078 15.8 2.05078 15.55L7.23828 10.3625L2.06328 5.1875C1.81328 4.9375 1.81328 4.55 2.06328 4.3C2.31328 4.05 2.70078 4.05 2.95078 4.3L8.57578 9.925C8.70078 10.05 8.76328 10.2125 8.76328 10.3625L8.75078 10.375Z",fill:"#676767"})}),o.jsx("defs",{children:o.jsx("clipPath",{id:"clip0_445_7834",children:o.jsx("rect",{width:"20",height:"8.75",fill:"white",transform:"matrix(0 -1 1 0 0.625 20.375)"})})})]}),Qle="modulepreload",Zle=function(t){return"/"+t},MO={},k0=function(e,n,i){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),a=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));r=Promise.all(n.map(l=>{if(l=Zle(l),l in MO)return;MO[l]=!0;const c=l.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const u=document.createElement("link");if(u.rel=c?"stylesheet":Qle,c||(u.as="script",u.crossOrigin=""),u.href=l,a&&u.setAttribute("nonce",a),document.head.appendChild(u),c)return new Promise((h,p)=>{u.addEventListener("load",h),u.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}return r.then(()=>e()).catch(s=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s})};var kx={};kx.d=(t,e)=>{for(var n in e)kx.o(e,n)&&!kx.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})};kx.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var kt=globalThis.pdfjsLib={};kx.d(kt,{AbortException:()=>pp,AnnotationEditorLayer:()=>mE,AnnotationEditorParamsType:()=>Ct,AnnotationEditorType:()=>en,AnnotationEditorUIManager:()=>zh,AnnotationLayer:()=>Jde,AnnotationMode:()=>jc,CMapCompressionType:()=>aP,ColorPicker:()=>l1,DOMSVGFactory:()=>jM,DrawLayer:()=>yE,FeatureTest:()=>is,GlobalWorkerOptions:()=>Bl,ImageKind:()=>fw,InvalidPDFException:()=>V$,MissingPDFException:()=>hp,OPS:()=>ja,Outliner:()=>YP,PDFDataRangeTransport:()=>F8,PDFDateString:()=>X$,PDFWorker:()=>lm,PasswordResponses:()=>ice,PermissionFlag:()=>nce,PixelsPerInch:()=>jd,RenderingCancelledException:()=>TM,TextLayer:()=>a1,UnexpectedResponseException:()=>YS,Util:()=>ut,VerbosityLevel:()=>GS,XfaLayer:()=>$8,build:()=>Mde,createValidAbsoluteUrl:()=>oce,fetchData:()=>eC,getDocument:()=>kde,getFilenameFromUrl:()=>xce,getPdfFilenameFromUrl:()=>yce,getXfaPageViewport:()=>bce,isDataScheme:()=>PM,isPdfFile:()=>EM,noContextMenu:()=>ds,normalizeUnicode:()=>pce,renderTextLayer:()=>pde,setLayerDimensions:()=>Hh,shadow:()=>rn,updateTextLayer:()=>mde,version:()=>Nde});const br=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser"),z$=[1,0,0,1,0,0],sP=[.001,0,0,.001,0,0],ece=1e7,_2=1.35,ra={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256},jc={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},tce="pdfjs_internal_editor_",en={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15},Ct={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23,HIGHLIGHT_COLOR:31,HIGHLIGHT_DEFAULT_COLOR:32,HIGHLIGHT_THICKNESS:33,HIGHLIGHT_FREE:34,HIGHLIGHT_SHOW_ALL:35},nce={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},hr={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},fw={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},bi={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},Tg={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},GS={ERRORS:0,WARNINGS:1,INFOS:5},aP={NONE:0,BINARY:1}
164,ja={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},ice={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let qS=GS.WARNINGS;function rce(t){Number.isInteger(t)&&(qS=t)}function sce(){return qS}function KS(t){qS>=GS.INFOS&&console.log(`Info: ${t}`)}function Ut(t){qS>=GS.WARNINGS&&console.log(`Warning: ${t}`)}function kn(t){throw new Error(t)}function Pi(t,e){t||kn(e)}function ace(t){switch(t==null?void 0:t.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function oce(t,e=null,n=null){if(!t)return null;try{if(n&&typeof t=="string"){if(n.addDefaultProtocol&&t.startsWith("www.")){const r=t.match(/\./g);(r==null?void 0:r.length)>=2&&(t=`http://${t}`)}if(n.tryConvertEncoding)try{t=hce(t)}catch{}}const i=e?new URL(t,e):new URL(t);if(ace(i))return i}catch{}return null}function rn(t,e,n,i=!1){return Object.defineProperty(t,e,{value:n,enumerable:!i,configurable:!0,writable:!1}),n}const Od=function(){function e(n,i){this.constructor===e&&kn("Cannot initialize BaseException."),this.message=n,this.name=i}return e.prototype=new Error,e.constructor=e,e}();class oP extends Od{constructor(e,n){super(e,"PasswordException"),this.code=n}}class lP extends Od{constructor(e,n){super(e,"UnknownErrorException"),this.details=n}}class V$ extends Od{constructor(e){super(e,"InvalidPDFException")}}class hp extends Od{constructor(e){super(e,"MissingPDFException")}}class YS extends Od{constructor(e,n){super(e,"UnexpectedResponseException"),this.status=n}}class lce extends Od{constructor(e){super(e,"FormatError")}}class pp extends Od{constructor(e){super(e,"AbortException")}}function U$(t){(typeof t!="object"||(t==null?void 0:t.length)===void 0)&&kn("Invalid argument for bytesToString");const e=t.length,n=8192;if(e<n)return String.fromCharCode.apply(null,t);const i=[];for(let r=0;r<e;r+=n){const s=Math.min(r+n,e),a=t.subarray(r,s);i.push(String.fromCharCode.apply(null,a))}return i.join("")}function XS(t){typeof t!="string"&&kn("Invalid argument for stringToBytes");const e=t.length,n=new Uint8Array(e);for(let i=0;i<e;++i)n[i]=t.charCodeAt(i)&255;return n}function cce(t){return String.fromCharCode(t>>24&255,t>>16&255,t>>8&255,t&255)}function SM(t){const e=Object.create(null);for(const[n,i]of t)e[n]=i;return e}function dce(){const t=new Uint8Array(4);return t[0]=1,new Uint32Array(t.buffer,0,1)[0]===1}function uce(){try{return new Function(""),!0}catch{return!1}}class is{static get isLittleEndian(){return rn(this,"isLittleEndian",dce())}static get isEvalSupported(){return rn(this,"isEvalSupported",uce())}static get isOffscreenCanvasSupported(){return rn(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get platform(){return typeof navigator<"u"&&typeof(navigator==null?void 0:navigator.platform)=="str
164ing"?rn(this,"platform",{isMac:navigator.platform.includes("Mac")}):rn(this,"platform",{isMac:!1})}static get isCSSRoundSupported(){var e,n;return rn(this,"isCSSRoundSupported",(n=(e=globalThis.CSS)==null?void 0:e.supports)==null?void 0:n.call(e,"width: round(1.5px, 1px)"))}}const I2=Array.from(Array(256).keys(),t=>t.toString(16).padStart(2,"0"));var zl,gw,cP;class ut{static makeHexColor(e,n,i){return`#${I2[e]}${I2[n]}${I2[i]}`}static scaleMinMax(e,n){let i;e[0]?(e[0]<0&&(i=n[0],n[0]=n[2],n[2]=i),n[0]*=e[0],n[2]*=e[0],e[3]<0&&(i=n[1],n[1]=n[3],n[3]=i),n[1]*=e[3],n[3]*=e[3]):(i=n[0],n[0]=n[1],n[1]=i,i=n[2],n[2]=n[3],n[3]=i,e[1]<0&&(i=n[1],n[1]=n[3],n[3]=i),n[1]*=e[1],n[3]*=e[1],e[2]<0&&(i=n[0],n[0]=n[2],n[2]=i),n[0]*=e[2],n[2]*=e[2]),n[0]+=e[4],n[1]+=e[5],n[2]+=e[4],n[3]+=e[5]}static transform(e,n){return[e[0]*n[0]+e[2]*n[1],e[1]*n[0]+e[3]*n[1],e[0]*n[2]+e[2]*n[3],e[1]*n[2]+e[3]*n[3],e[0]*n[4]+e[2]*n[5]+e[4],e[1]*n[4]+e[3]*n[5]+e[5]]}static applyTransform(e,n){const i=e[0]*n[0]+e[1]*n[2]+n[4],r=e[0]*n[1]+e[1]*n[3]+n[5];return[i,r]}static applyInverseTransform(e,n){const i=n[0]*n[3]-n[1]*n[2],r=(e[0]*n[3]-e[1]*n[2]+n[2]*n[5]-n[4]*n[3])/i,s=(-e[0]*n[1]+e[1]*n[0]+n[4]*n[1]-n[5]*n[0])/i;return[r,s]}static getAxialAlignedBoundingBox(e,n){const i=this.applyTransform(e,n),r=this.applyTransform(e.slice(2,4),n),s=this.applyTransform([e[0],e[3]],n),a=this.applyTransform([e[2],e[1]],n);return[Math.min(i[0],r[0],s[0],a[0]),Math.min(i[1],r[1],s[1],a[1]),Math.max(i[0],r[0],s[0],a[0]),Math.max(i[1],r[1],s[1],a[1])]}static inverseTransform(e){const n=e[0]*e[3]-e[1]*e[2];return[e[3]/n,-e[1]/n,-e[2]/n,e[0]/n,(e[2]*e[5]-e[4]*e[3])/n,(e[4]*e[1]-e[5]*e[0])/n]}static singularValueDecompose2dScale(e){const n=[e[0],e[2],e[1],e[3]],i=e[0]*n[0]+e[1]*n[2],r=e[0]*n[1]+e[1]*n[3],s=e[2]*n[0]+e[3]*n[2],a=e[2]*n[1]+e[3]*n[3],l=(i+a)/2,c=Math.sqrt((i+a)**2-4*(i*a-s*r))/2,d=l+c||1,u=l-c||1;return[Math.sqrt(d),Math.sqrt(u)]}static normalizeRect(e){const n=e.slice(0);return e[0]>e[2]&&(n[0]=e[2],n[2]=e[0]),e[1]>e[3]&&(n[1]=e[3],n[3]=e[1]),n}static intersect(e,n){const i=Math.max(Math.min(e[0],e[2]),Math.min(n[0],n[2])),r=Math.min(Math.max(e[0],e[2]),Math.max(n[0],n[2]));if(i>r)return null;const s=Math.max(Math.min(e[1],e[3]),Math.min(n[1],n[3])),a=Math.min(Math.max(e[1],e[3]),Math.max(n[1],n[3]));return s>a?null:[i,s,r,a]}static bezierBoundingBox(e,n,i,r,s,a,l,c,d){return d?(d[0]=Math.min(d[0],e,l),d[1]=Math.min(d[1],n,c),d[2]=Math.max(d[2],e,l),d[3]=Math.max(d[3],n,c)):d=[Math.min(e,l),Math.min(n,c),Math.max(e,l),Math.max(n,c)],ye(this,zl,cP).call(this,e,i,s,l,n,r,a,c,3*(-e+3*(i-s)+l),6*(e-2*i+s),3*(i-e),d),ye(this,zl,cP).call(this,e,i,s,l,n,r,a,c,3*(-n+3*(r-a)+c),6*(n-2*r+a),3*(r-n),d),d}}zl=new WeakSet,gw=function(e,n,i,r,s,a,l,c,d,u){if(d<=0||d>=1)return;const h=1-d,p=d*d,y=p*d,m=h*(h*(h*e+3*d*n)+3*p*i)+y*r,w=h*(h*(h*s+3*d*a)+3*p*l)+y*c;u[0]=Math.min(u[0],m),u[1]=Math.min(u[1],w),u[2]=Math.max(u[2],m),u[3]=Math.max(u[3],w)},cP=function(e,n,i,r,s,a,l,c,d,u,h,p){if(Math.abs(d)<1e-12){Math.abs(u)>
164=1e-12&&ye(this,zl,gw).call(this,e,n,i,r,s,a,l,c,-h/u,p);return}const y=u**2-4*h*d;if(y<0)return;const m=Math.sqrt(y),w=2*d;ye(this,zl,gw).call(this,e,n,i,r,s,a,l,c,(-u+m)/w,p),ye(this,zl,gw).call(this,e,n,i,r,s,a,l,c,(-u-m)/w,p)},xe(ut,zl);function hce(t){return decodeURIComponent(escape(t))}let R2=null,DO=null;function pce(t){return R2||(R2=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,DO=new Map([["ï¬
","ſt"]])),t.replaceAll(R2,(e,n,i)=>n?n.normalize("NFKC"):DO.get(i))}function mce(){if(typeof crypto<"u"&&typeof(crypto==null?void 0:crypto.randomUUID)=="function")return crypto.randomUUID();const t=new Uint8Array(32);if(typeof crypto<"u"&&typeof(crypto==null?void 0:crypto.getRandomValues)=="function")crypto.getRandomValues(t);else for(let e=0;e<32;e++)t[e]=Math.floor(Math.random()*255);return U$(t)}const W$="pdfjs_internal_id_",Yo={BEZIER_CURVE_TO:0,MOVE_TO:1,LINE_TO:2,QUADRATIC_CURVE_TO:3,RESTORE:4,SAVE:5,SCALE:6,TRANSFORM:7,TRANSLATE:8};class JS{constructor(){this.constructor===JS&&kn("Cannot initialize BaseFilterFactory.")}addFilter(e){return"none"}addHCMFilter(e,n){return"none"}addAlphaFilter(e){return"none"}addLuminosityFilter(e){return"none"}addHighlightHCMFilter(e,n,i,r,s){return"none"}destroy(e=!1){}}var xy;const VM=class VM{constructor({enableHWA:e=!1}={}){xe(this,xy,!1);this.constructor===VM&&kn("Cannot initialize BaseCanvasFactory."),fe(this,xy,e)}create(e,n){if(e<=0||n<=0)throw new Error("Invalid canvas size");const i=this._createCanvas(e,n);return{canvas:i,context:i.getContext("2d",{willReadFrequently:!O(this,xy)})}}reset(e,n,i){if(!e.canvas)throw new Error("Canvas is not specified");if(n<=0||i<=0)throw new Error("Invalid canvas size");e.canvas.width=n,e.canvas.height=i}destroy(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}_createCanvas(e,n){kn("Abstract method `_createCanvas` called.")}};xy=new WeakMap;let n1=VM;class QS{constructor({baseUrl:e=null,isCompressed:n=!0}){this.constructor===QS&&kn("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=e,this.isCompressed=n}async fetch({name:e}){if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!e)throw new Error("CMap name must be specified.");const n=this.baseUrl+e+(this.isCompressed?".bcmap":""),i=this.isCompressed?aP.BINARY:aP.NONE;return this._fetchData(n,i).catch(r=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${n}`)})}_fetchData(e,n){kn("Abstract method `_fetchData` called.")}}class ZS{constructor({baseUrl:e=null}){this.constructor===ZS&&kn("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=e}async fetch({filename:e}){if(!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!e)throw new Error("Font filename must be specified.");const n=`${this.baseUrl}${e}`;return this._fetchData(n).catch(i=>{throw new Error(`Unable to load font data at: ${n}`)})}_fetchData(e){kn("Abstract method `_fetchData` called.")}}class CM{constructor(){this.constructor===CM&&kn("Cannot initialize BaseSVGFactory.")}create(e,n,i=!1){if(e<=0||n<=0)throw new Error("Invalid SVG dimensions");const r=this._createSVG("svg:svg");return r.setAttribute("version","1.1"),i||(r.setAttribute("width",`${e}px`),r.setAttribute("height",`${n}px`)),r.setAttribute("preserveAspectRatio","none"),r.setAttribute("viewBox",`0 0 ${e} ${n}`),r}createElement(e){if(typeof e!="string")throw new Error("Invalid SVG element type");return this._createSVG(e)}_createSVG(e){kn("Abstract method `_createSVG` called.")}}const Qo="http://www.w3.org/2000/svg",eu=class eu{};Tt(eu,"CSS",96),Tt(eu,"PDF",72),Tt(eu,"PDF_TO_CSS_UNITS",eu.CSS/eu.PDF);let jd=eu;var ku,po,ll,qr,m1,Su,ot,pr,Ep,Ap,xw,G$,dP,Np,Wg,Gg,uP,qg;class fce extends JS{constructor({docId:n,ownerDocument:i=globalThis.document}={}){super();xe(this,ot);xe(this,ku);xe(this,po);xe(this,ll);xe(this,qr);
vendor: 5,074 bytes, line 164
164xe(this,m1);xe(this,Su,0);fe(this,ll,n),fe(this,qr,i)}addFilter(n){if(!n)return"none";let i=O(this,ot,pr).get(n);if(i)return i;const[r,s,a]=ye(this,ot,xw).call(this,n),l=n.length===1?r:`${r}${s}${a}`;if(i=O(this,ot,pr).get(l),i)return O(this,ot,pr).set(n,i),i;const c=`g_${O(this,ll)}_transfer_map_${lr(this,Su)._++}`,d=`url(#${c})`;O(this,ot,pr).set(n,d),O(this,ot,pr).set(l,d);const u=ye(this,ot,Np).call(this,c);return ye(this,ot,Gg).call(this,r,s,a,u),d}addHCMFilter(n,i){var m;const r=`${n}-${i}`,s="base";let a=O(this,ot,Ep).get(s);if((a==null?void 0:a.key)===r||(a?((m=a.filter)==null||m.remove(),a.key=r,a.url="none",a.filter=null):(a={key:r,url:"none",filter:null},O(this,ot,Ep).set(s,a)),!n||!i))return a.url;const l=ye(this,ot,qg).call(this,n);n=ut.makeHexColor(...l);const c=ye(this,ot,qg).call(this,i);if(i=ut.makeHexColor(...c),O(this,ot,Ap).style.color="",n==="#000000"&&i==="#ffffff"||n===i)return a.url;const d=new Array(256);for(let w=0;w<=255;w++){const k=w/255;d[w]=k<=.03928?k/12.92:((k+.055)/1.055)**2.4}const u=d.join(","),h=`g_${O(this,ll)}_hcm_filter`,p=a.filter=ye(this,ot,Np).call(this,h);ye(this,ot,Gg).call(this,u,u,u,p),ye(this,ot,dP).call(this,p);const y=(w,k)=>{const b=l[w]/255,x=c[w]/255,v=new Array(k+1);for(let E=0;E<=k;E++)v[E]=b+E/k*(x-b);return v.join(",")};return ye(this,ot,Gg).call(this,y(0,5),y(1,5),y(2,5),p),a.url=`url(#${h})`,a.url}addAlphaFilter(n){let i=O(this,ot,pr).get(n);if(i)return i;const[r]=ye(this,ot,xw).call(this,[n]),s=`alpha_${r}`;if(i=O(this,ot,pr).get(s),i)return O(this,ot,pr).set(n,i),i;const a=`g_${O(this,ll)}_alpha_map_${lr(this,Su)._++}`,l=`url(#${a})`;O(this,ot,pr).set(n,l),O(this,ot,pr).set(s,l);const c=ye(this,ot,Np).call(this,a);return ye(this,ot,uP).call(this,r,c),l}addLuminosityFilter(n){let i=O(this,ot,pr).get(n||"luminosity");if(i)return i;let r,s;if(n?([r]=ye(this,ot,xw).call(this,[n]),s=`luminosity_${r}`):s="luminosity",i=O(this,ot,pr).get(s),i)return O(this,ot,pr).set(n,i),i;const a=`g_${O(this,ll)}_luminosity_map_${lr(this,Su)._++}`,l=`url(#${a})`;O(this,ot,pr).set(n,l),O(this,ot,pr).set(s,l);const c=ye(this,ot,Np).call(this,a);return ye(this,ot,G$).call(this,c),n&&ye(this,ot,uP).call(this,r,c),l}addHighlightHCMFilter(n,i,r,s,a){var x;const l=`${i}-${r}-${s}-${a}`;let c=O(this,ot,Ep).get(n);if((c==null?void 0:c.key)===l||(c?((x=c.filter)==null||x.remove(),c.key=l,c.url="none",c.filter=null):(c={key:l,url:"none",filter:null},O(this,ot,Ep).set(n,c)),!i||!r))return c.url;const[d,u]=[i,r].map(ye(this,ot,qg).bind(this));let h=Math.round(.2126*d[0]+.7152*d[1]+.0722*d[2]),p=Math.round(.2126*u[0]+.7152*u[1]+.0722*u[2]),[y,m]=[s,a].map(ye(this,ot,qg).bind(this));p<h&&([h,p,y,m]=[p,h,m,y]),O(this,ot,Ap).style.color="";const w=(v,E,N)=>{const S=new Array(256),_=(p-h)/N,$=v/255,V=(E-v)/(255*N);let I=0;for(let A=0;A<=N;A++){const L=Math.round(h+A*_),T=$+A*V;for(let g=I;g<=L;g++)S[g]=T;I=L+1}for(let A=I;A<256;A++)S[A]=S[I-1];return S.join(",")},k=`g_${O(this,ll)}_hcm_${n}_filter`,b=c.filter=ye(this,ot,Np).call(this,k);return ye(this,ot,dP).call(this,b),ye(this,ot,Gg).call(this,w(y[0],m[0],5),w(y[1],m[1],5),w(y[2],m[2],5),b),c.url=`url(#${k})`,c.url}destroy(n=!1){n&&O(this,ot,Ep).size!==0||(O(this,po)&&(O(this,po).parentNode.parentNode.remove(),fe(this,po,null)),O(this,ku)&&(O(this,ku).clear(),fe(this,ku,null)),fe(this,Su,0))}}ku=new WeakMap,po=new WeakMap,ll=new WeakMap,qr=new WeakMap,m1=new WeakMap,Su=new WeakMap,ot=new WeakSet,pr=function(){return O(this,ku)||fe(this,ku,new Map)},Ep=function(){return O(this,m1)||fe(this,m1,new Map)},Ap=function(){if(!O(this,po)){const n=O(this,qr).createElement("div"),{style:i}=n;i.visibility="hidden",i.contain="strict",i.width=i.height=0,i.position="absolute",i.top=i.left=0,i.zIndex=-1;const r=O(this,qr).createElementNS(Qo,"svg");r.setAttribute("width",0),r.setAttribute("height",0),fe(this,po,O(this,qr).createElementNS(Qo,"defs")),n.append(r),r.append(O(this,po)),O(this,qr).body.append(n)}return O(this,po)},xw=function(n){if(n.length===1){const d=n[0],u=new Array(256);for(let p=0;p<256;p++)u[p]=d[p]/255;const h=u.join(",");return[h,h,h]}const[i,r,s]=n,a=new Array(256),l=new Array(256),c=new Array(256);for(let d=0;d<256;d++)a[d]=i[d]/255,l[d]=r[d]/255,c[d]=s[d]/255;return[a.join(","),l.join(","),c.join(",")]},G$=function(n){const i=O(this,qr).createElementNS(Qo,"feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.59 0.11 0 0"),n.append(i)},dP=function(n){const i=O(this,qr).createElementNS(Qo,"feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),n.append(i)},Np=function(n){const i=O(this,qr).createElementNS(Qo,"filter");return i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("id",n),O(this,ot,Ap).append(i),i},Wg=function(n,i,r){const s=O(this,qr).createElementNS(Qo,i);s.setAttribute("type","discrete"),s.setAttribute("tableValues",r),n.append(s)},Gg=function(n,i,r,s){const a=O(this,qr).createElementNS(Qo,"feComponentTransfer");
164s.append(a),ye(this,ot,Wg).call(this,a,"feFuncR",n),ye(this,ot,Wg).call(this,a,"feFuncG",i),ye(this,ot,Wg).call(this,a,"feFuncB",r)},uP=function(n,i){const r=O(this,qr).createElementNS(Qo,"feComponentTransfer");i.append(r),ye(this,ot,Wg).call(this,r,"feFuncA",n)},qg=function(n){return O(this,ot,Ap).style.color=n,AM(getComputedStyle(O(this,ot,Ap)).getPropertyValue("color"))};class gce extends n1{constructor({ownerDocument:e=globalThis.document,enableHWA:n=!1}={}){super({enableHWA:n}),this._document=e}_createCanvas(e,n){const i=this._document.createElement("canvas");return i.width=e,i.height=n,i}}async function eC(t,e="text"){if(Kg(t,document.baseURI)){const n=await fetch(t);if(!n.ok)throw new Error(n.statusText);switch(e){case"arraybuffer":return n.arrayBuffer();case"blob":return n.blob();case"json":return n.json()}return n.text()}return new Promise((n,i)=>{const r=new XMLHttpRequest;r.open("GET",t,!0),r.responseType=e,r.onreadystatechange=()=>{if(r.readyState===XMLHttpRequest.DONE){if(r.status===200||r.status===0){switch(e){case"arraybuffer":case"blob":case"json":n(r.response);return}n(r.responseText);return}i(new Error(r.statusText))}},r.send(null)})}class q$ extends QS{_fetchData(e,n){return eC(e,this.isCompressed?"arraybuffer":"text").then(i=>({cMapData:i instanceof ArrayBuffer?new Uint8Array(i):XS(i),compressionType:n}))}}class K$ extends ZS{_fetchData(e){return eC(e,"arraybuffer").then(n=>new Uint8Array(n))}}class jM extends CM{_createSVG(e){return document.createElementNS(Qo,e)}}class yv{constructor({viewBox:e,scale:n,rotation:i,offsetX:r=0,offsetY:s=0,dontFlip:a=!1}){this.viewBox=e,this.scale=n,this.rotation=i,this.offsetX=r,this.offsetY=s;const l=(e[2]+e[0])/2,c=(e[3]+e[1])/2;let d,u,h,p;switch(i%=360,i<0&&(i+=360),i){case 180:d=-1,u=0,h=0,p=1;break;case 90:d=0,u=1,h=1,p=0;break;case 270:d=0,u=-1,h=-1,p=0;break;case 0:d=1,u=0,h=0,p=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}a&&(h=-h,p=-p);let y,m,w,k;d===0?(y=Math.abs(c-e[1])*n+r,m=Math.abs(l-e[0])*n+s,w=(e[3]-e[1])*n,k=(e[2]-e[0])*n):(y=Math.abs(l-e[0])*n+r,m=Math.abs(c-e[1])*n+s,w=(e[2]-e[0])*n,k=(e[3]-e[1])*n),this.transform=[d*n,u*n,h*n,p*n,y-d*n*l-h*n*c,m-u*n*l-p*n*c],this.width=w,this.height=k}get rawDims(){const{viewBox:e}=this;return rn(this,"rawDims",{pageWidth:e[2]-e[0],pageHeight:e[3]-e[1],pageX:e[0],pageY:e[1]})}clone({scale:e=this.scale,rotation:n=this.rotation,offsetX:i=this.offsetX,offsetY:r=this.offsetY,dontFlip:s=!1}={}){return new yv({viewBox:this.viewBox.slice(),scale:e,rotation:n,offsetX:i,offsetY:r,dontFlip:s})}convertToViewportPoint(e,n){return ut.applyTransform([e,n],this.transform)}convertToViewportRectangle(e){const n=ut.applyTransform([e[0],e[1]],this.transform),i=ut.applyTransform([e[2],e[3]],this.transform);return[n[0],n[1],i[0],i[1]]}convertToPdfPoint(e,n){return ut.applyInverseTransform([e,n],this.transform)}}class TM extends Od{constructor(e,n=0){super(e,"RenderingCancelledException"),this.extraDelay=n}}function PM(t){const e=t.length;let n=0;for(;n<e&&t[n].trim()==="";)n++;return t.substring(n,n+5).toLowerCase()==="data:"}function EM(t){return typeof t=="string"&&/\.pdf$/i.test(t)}function xce(t){return[t]=t.split(/[#?]/,1),t.substring(t.lastIndexOf("/")+1)}function yce(t,e="document.pdf"){if(typeof t!="string")return e;if(PM(t))return Ut('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),e;const n=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,i=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,r=n.exec(t);let s=i.exec(r[1])||i.exec(r[2])||i.exec(r[3]);if(s&&(s=s[0],s.includes("%")))try{s=i.exec(decodeURIComponent(s))[0]}catch{}return s||e}class _O{constructor(){Tt(this,"started",Object.create(null));Tt(this,"times",[])}time(e){e in this.started&&Ut(`Timer is already running for ${e}`),this.started[e]=Date.now()}timeEnd(e){e in this.started||Ut(`Timer has not been started for ${e}`),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}toString(){const e=[];let n=0;for(const{name:i}of this.times)n=Math.max(i.length,n);for(const{name:i,start:r,end:s}of this.times)e.push(`${i.padEnd(n)} ${s-r}ms 165`);return e.join("")}}function Kg(t,e){try{const{protocol:n}=e?new URL(t,e):new URL(t);return n==="http:"||n==="https:"}catch{return!1}}function ds(t){t.preventDefault()}function Y$(t){console.log("Deprecated API usage: "+t)}let IO;class X${static toDateObject(e){if(!e||typeof e!="string")return null;IO||(IO=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const n=IO.exec(e);if(!n)return null;const i=parseInt(n[1],10);let r=parseInt(n[2],10);r=r>=1&&r<=12?r-1:0;let s=parseInt(n[3],10);s=s>=1&&s<=31?s:1;let a=parseInt(n[4],10);a=a>=0&&a<=23?a:0;let l=parseInt(n[5],10);l=l>=0&&l<=59?l:0;let c=parseInt(n[6],10);c=c>=0&&c<=59?c:0;const d=n[7]||"Z";let u=parseInt(n[8],10);u=u>=0&&u<=23?u:0;let h=parseInt(n[9],10)||0;return h=h>=0&&h<=59?h:0,d==="-"?(a+=u,l+=h):d==="+"&&(a-=u,l-=h),new Date(Date.UTC(i,r,s,a,l,c))}}function bce(t,{scale:e=1,rotation:n=0}){const{width:i,height:r}=t.attributes.style,s=[0,0,parseInt(i),parseInt(r)];return new yv({viewBox:s,scale:e,rotation:n})}function AM(t){if(t.startsWith("#")){const e=parseInt(t.slice(1),16);return[(e&16711680)>>16,(e&65280)>>8,e&255]}return t.startsWith("rgb(")?t.slice(4,-1).split(",").map(e=>parseInt(e)):t.startsWith("rgba(")?t.slice(5,-1).split(",").map(e=>parseInt(e)).slice(0,3):(Ut(`Not a valid color format: "${t}"`),[0,0,0])}function vce(t){const e=document.createElement("span");e.style.visibility="hidden",document.body.append(e);for(const n of t.keys()){e.style.color=n;const i=window.getComputedStyle(e).color;t.set(n,AM(i))}e.remove()}function Un(t){const{a:e,b:n,c:i,d:r,e:s,f:a}=t.getTransform();return[e,n,i,r,s,a]}function Xo(t){const{a:e,b:n,c:i,d:r,e:s,f:a}=t.getTransform().invertSelf();return[e,n,i,r,s,a]}function Hh(t,e,n=!1,i=!0){if(e instanceof yv){const{pageWidth:r,pageHeight:s}=e.rawDims,{style:a}=t,l=is.isCSSRoundSupported,c=`var(--scale-factor) * ${r}px`,d=`var(--scale-factor) * ${s}
165px`,u=l?`round(${c}, 1px)`:`calc(${c})`,h=l?`round(${d}, 1px)`:`calc(${d})`;!n||e.rotation%180===0?(a.width=u,a.height=h):(a.width=h,a.height=u)}i&&t.setAttribute("data-main-rotation",e.rotation)}var Cu,ju,bs,Tu,f1,J$,Or,Q$,Z$,yw,e8,pP;const g1=class g1{constructor(e){xe(this,Or);xe(this,Cu,null);xe(this,ju,null);xe(this,bs);xe(this,Tu,null);fe(this,bs,e)}render(){const e=fe(this,Cu,document.createElement("div"));e.className="editToolbar",e.setAttribute("role","toolbar");const n=O(this,bs)._uiManager._signal;e.addEventListener("contextmenu",ds,{signal:n}),e.addEventListener("pointerdown",ye(g1,f1,J$),{signal:n});const i=fe(this,Tu,document.createElement("div"));i.className="buttons",e.append(i);const r=O(this,bs).toolbarPosition;if(r){const{style:s}=e,a=O(this,bs)._uiManager.direction==="ltr"?1-r[0]:r[0];s.insetInlineEnd=`${100*a}%`,s.top=`calc(${100*r[1]}% + var(--editor-toolbar-vert-offset))`}return ye(this,Or,e8).call(this),e}hide(){var e;O(this,Cu).classList.add("hidden"),(e=O(this,ju))==null||e.hideDropdown()}show(){O(this,Cu).classList.remove("hidden")}addAltTextButton(e){ye(this,Or,yw).call(this,e),O(this,Tu).prepend(e,O(this,Or,pP))}addColorPicker(e){fe(this,ju,e);const n=e.renderButton();ye(this,Or,yw).call(this,n),O(this,Tu).prepend(n,O(this,Or,pP))}remove(){var e;O(this,Cu).remove(),(e=O(this,ju))==null||e.destroy(),fe(this,ju,null)}};Cu=new WeakMap,ju=new WeakMap,bs=new WeakMap,Tu=new WeakMap,f1=new WeakSet,J$=function(e){e.stopPropagation()},Or=new WeakSet,Q$=function(e){O(this,bs)._focusEventsAllowed=!1,e.preventDefault(),e.stopPropagation()},Z$=function(e){O(this,bs)._focusEventsAllowed=!0,e.preventDefault(),e.stopPropagation()},yw=function(e){const n=O(this,bs)._uiManager._signal;e.addEventListener("focusin",ye(this,Or,Q$).bind(this),{capture:!0,signal:n}),e.addEventListener("focusout",ye(this,Or,Z$).bind(this),{capture:!0,signal:n}),e.addEventListener("contextmenu",ds,{signal:n})},e8=function(){const e=document.createElement("button");e.className="delete",e.tabIndex=0,e.setAttribute("data-l10n-id",`pdfjs-editor-remove-${O(this,bs).editorType}-button`),ye(this,Or,yw).call(this,e),e.addEventListener("click",n=>{O(this,bs)._uiManager.delete()},{signal:O(this,bs)._uiManager._signal}),O(this,Tu).append(e)},pP=function(){const e=document.createElement("div");return e.className="divider",e},xe(g1,f1);let hP=g1;var yy,Pu,Eu,Td,t8,n8,i8;class wce{constructor(e){xe(this,Td);xe(this,yy,null);xe(this,Pu,null);xe(this,Eu);fe(this,Eu,e)}show(e,n,i){const[r,s]=ye(this,Td,n8).call(this,n,i),{style:a}=O(this,Pu)||fe(this,Pu,ye(this,Td,t8).call(this));e.append(O(this,Pu)),a.insetInlineEnd=`${100*r}%`,a.top=`calc(${100*s}% + var(--editor-toolbar-vert-offset))`}hide(){O(this,Pu).remove()}}yy=new WeakMap,Pu=new WeakMap,Eu=new WeakMap,Td=new WeakSet,t8=function(){const e=fe(this,Pu,document.createElement("div"));e.className="editToolbar",e.setAttribute("role","toolbar"),e.addEventListener("contextmenu",ds,{signal:O(this,Eu)._signal});const n=fe(this,yy,document.createElement("div"));return n.className="buttons",e.append(n),ye(this,Td,i8).call(this),e},n8=function(e,n){let i=0,r=0;for(const s of e){const a=s.y+s.height;if(a<i)continue;const l=s.x+(n?s.width:0);if(a>i){r=l,i=a;continue}n?l>r&&(r=l):l<r&&(r=l)}return[n?1-r:r,i]},i8=function(){const e=document.createElement("button");e.className="highlightButton",e.tabIndex=0,e.setAttribute("data-l10n-id","pdfjs-highlight-floating-button1");const n=document.createElement("span");e.append(n),n.className="visuallyHidden",n.setAttribute("data-l10n-id","pdfjs-highlight-floating-button-label");const i=O(this,Eu)._signal;e.addEventListener("contextmenu",ds,{signal:i}),e.addEventListener("click",()=>{O(this,Eu).highlightSelection("floating_button")},{signal:i}),O(this,yy).append(e)};function i1(t,e,n){for(const i of n)e.addEventListener(i,t[i].bind(t))}function kce(t){return Math.round(Math.min(255,Math.max(1,255*t))).toString(16).padStart(2,"0")}var x1;class Sce{constructor(){xe(this,x1,0)}get id(){return`${tce}${lr(this,x1)._++}`}}x1=new WeakMap;var by,y1,Zs,vy,fP;const UM=class UM{constructor(){xe(this,vy);xe(this,by,mce());xe(this,y1,0);xe(this,Zs,null)}static get _isSVGFittingCanvas(){const e='data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" style="fill:red;"/></svg>',i=new OffscreenCanvas(1,3).getContext("2d",{willReadFrequently:!0}),r=new Image;r.src=e;const s=r.decode().then(()=>(i.drawImage(r,0,0,1,1,0,0,1,3),new Uint32Array(i.getImageData(0,0,1,1).data.buffer)[0]===0));return rn(this,"_isSVGFittingCanvas",s)}async getFromFile(e){const{lastModified:n,name:i,size:r,type:s}=e;return ye(this,vy,fP).call(this,`${n}_${i}_${r}_${s}`,e)}async getFromUrl(e){return ye(this,vy,fP).call(this,e,e)}async getFromId(e){O(this,Zs)||fe(this,Zs,new Map);const n=O(this,Zs).get(e);return n?n.bitmap?(n.refCounter+=1,n):n.file?this.getFromFile(n.file):this.getFromUrl(n.url):null}getSvgUrl(e){const n=O(this,Zs).get(e);return n!=null&&n.isSvg?n.svgUrl:null}deleteId(e){O(this,Zs)||fe(this,Zs,new Map);const n=O(this,Zs).get(e);n&&(n.refCounter-=1,n.refCounter===0&&(n.bitmap=null))}isValidId(e){return e.startsWith(`image_${O(this,by)}_`)}};by=new WeakMap,y1=new WeakMap,Zs=new WeakMap,vy=new WeakSet,fP=async function(e,n){O(this,Zs)||fe(this,Zs,new Map);let i=O(this,Zs).get(e);if(i===null)return null;if(i!=null&&i.bitmap)return i.refCounter+=1,i;try{i||(i={bitmap:null,id:`image_${O(this,by)}_${lr(this,y1)._++}`,refCounter:0,isSvg:!1});let r;if(typeof n=="string"?(i.url=n,r=await eC(n,"blob")):r=i.file=n,r.type==="image/svg+xml"){const s=UM._isSVGFittingCanvas,a=new FileReader,l=new Image,c=new Promise((d,u)=>{l.onload=()=>{i.bitmap=l,i.isSvg=!0,d()},a.onload=async()=>{const h=i.svgUrl=a.result;l.src=await s?`${h}#svgView(preserveAspectRatio(none))`:h},l.onerror=a.onerror=u});a.readAsDataURL(r),await c}else i.bitmap=await createImageBitmap(r);i.refCounter=1}catch(r){console.error(r),i=null}return O(this,Zs).set(e,i),i&&O(this,Zs).set(i.id,i),i};let mP=UM;var _i,Ic,wy,Ii;class Cce{constructor(e=128){xe(this,_i,[]);xe(this,Ic,!1);xe(this,wy);xe(this,Ii,-1);fe(this,wy,e)}add({cmd:e,undo:n,post:i,mustExec:r,type:s=NaN,overwriteIfSameType:a=!1,keepUndo:l=!1}){if(r&&e(),O(this,Ic))return;const c={cmd:e,undo:n,post:i,type:s};if(O(this,Ii)===-1){O(this,_i).length>0&&(O(this,_i).length=0),fe(this,Ii,0),O(this,_i).push(c);return}if(a&&O(this,_i)[O(this,Ii)].type===s){l&&(c.undo=O(this,_i)[O(this,Ii)].und
165o),O(this,_i)[O(this,Ii)]=c;return}const d=O(this,Ii)+1;d===O(this,wy)?O(this,_i).splice(0,1):(fe(this,Ii,d),d<O(this,_i).length&&O(this,_i).splice(d)),O(this,_i).push(c)}undo(){if(O(this,Ii)===-1)return;fe(this,Ic,!0);const{undo:e,post:n}=O(this,_i)[O(this,Ii)];e(),n==null||n(),fe(this,Ic,!1),fe(this,Ii,O(this,Ii)-1)}redo(){if(O(this,Ii)<O(this,_i).length-1){fe(this,Ii,O(this,Ii)+1),fe(this,Ic,!0);const{cmd:e,post:n}=O(this,_i)[O(this,Ii)];e(),n==null||n(),fe(this,Ic,!1)}}hasSomethingToUndo(){return O(this,Ii)!==-1}hasSomethingToRedo(){return O(this,Ii)<O(this,_i).length-1}destroy(){fe(this,_i,null)}}_i=new WeakMap,Ic=new WeakMap,wy=new WeakMap,Ii=new WeakMap;var b1,r8;class bv{constructor(e){xe(this,b1);this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const{isMac:n}=is.platform;for(const[i,r,s={}]of e)for(const a of i){const l=a.startsWith("mac+");n&&l?(this.callbacks.set(a.slice(4),{callback:r,options:s}),this.allKeys.add(a.split("+").at(-1))):!n&&!l&&(this.callbacks.set(a,{callback:r,options:s}),this.allKeys.add(a.split("+").at(-1)))}}exec(e,n){if(!this.allKeys.has(n.key))return;const i=this.callbacks.get(ye(this,b1,r8).call(this,n));if(!i)return;const{callback:r,options:{bubbles:s=!1,args:a=[],checker:l=null}}=i;l&&!l(e,n)||(r.bind(e,...a,n)(),s||(n.stopPropagation(),n.preventDefault()))}}b1=new WeakSet,r8=function(e){e.altKey&&this.buffer.push("alt"),e.ctrlKey&&this.buffer.push("ctrl"),e.metaKey&&this.buffer.push("meta"),e.shiftKey&&this.buffer.push("shift"),this.buffer.push(e.key);const n=this.buffer.join("+");return this.buffer.length=0,n};const v1=class v1{get _colors(){const e=new Map([["CanvasText",null],["Canvas",null]]);return vce(e),rn(this,"_colors",e)}convert(e){const n=AM(e);if(!window.matchMedia("(forced-colors: active)").matches)return n;for(const[i,r]of this._colors)if(r.every((s,a)=>s===n[a]))return v1._colorsMapping.get(i);return n}getHexCode(e){const n=this._colors.get(e);return n?ut.makeHexColor(...n):e}};Tt(v1,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]));let gP=v1;var Tm,vs,wi,Ui,Pm,cl,Em,Ea,Am,Au,mo,Aa,Nu,ky,Sy,fo,Nm,Rc,go,w1,Oc,Cy,Mu,jy,Mm,Wi,xn,dl,Du,Ty,Py,Ey,Ay,Ny,My,Dy,_y,Iy,Ry,Oy,Ly,Fy,Lc,xo,ul,By,Je,bw,s8,a8,vw,o8,l8,c8,xP,d8,yP,bP,u8,Sr,fc,h8,p8,vP,m8,Yg,wP;const Kp=class Kp{constructor(e,n,i,r,s,a,l,c,d){xe(this,Je);xe(this,Tm,new AbortController);xe(this,vs,null);xe(this,wi,new Map);xe(this,Ui,new Map);xe(this,Pm,null);xe(this,cl,null);xe(this,Em,null);xe(this,Ea,new Cce);xe(this,Am,0);xe(this,Au,new Set);xe(this,mo,null);xe(this,Aa,null);xe(this,Nu,new Set);xe(this,ky,!1);xe(this,Sy,null);xe(this,fo,null);xe(this,Nm,null);xe(this,Rc,!1);xe(this,go,null);xe(this,w1,new Sce);xe(this,Oc,!1);xe(this,Cy,!1);xe(this,Mu,null);xe(this,jy,null);xe(this,Mm,null);xe(this,Wi,en.NONE);xe(this,xn,new Set);xe(this,dl,null);xe(this,Du,null);xe(this,Ty,null);xe(this,Py,this.blur.bind(this));xe(this,Ey,this.focus.bind(this));xe(this,Ay,this.copy.bind(this));xe(this,Ny,this.cut.bind(this));xe(this,My,this.paste.bind(this));xe(this,Dy,this.keydown.bind(this));xe(this,_y,this.keyup.bind(this));xe(this,Iy,this.onEditingAction.bind(this));xe(this,Ry,this.onPageChanging.bind(this));xe(this,Oy,this.onScaleChanging.bind(this));xe(this,Ly,this.onRotationChanging.bind(this));xe(this,Fy,{isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1,hasSelectedText:!1});xe(this,Lc,[0,0]);xe(this,xo,null);xe(this,ul,null);xe(this,By,null);this._signal=O(this,Tm).signal,fe(this,ul,e),fe(this,By,n),fe(this,Pm,i),this._eventBus=r,this._eventBus._on("editingaction",O(this,Iy)),this._eventBus._on("pagechanging",O(this,Ry)),this._eventBus._on("scalechanging",O(this,Oy)),this._eventBus._on("rotationchanging",O(this,Ly)),ye(this,Je,o8).call(this),ye(this,Je,u8).call(this),ye(this,Je,xP).call(this),fe(this,cl,s.annotationStorage),fe(this,Sy,s.filterFactory),fe(this,Du,a),fe(this,Nm,l||null),fe(this,ky,c),fe(this,Mm,d||null),this.viewParameters={realScale:jd.PDF_TO_CSS_UNITS,rotation:0},this.isShiftKeyDown=!1}static get _keyboardManager(){const e=Kp.prototype,n=a=>O(a,ul).contains(document.activeElement)&&document.activeElement.tagName!=="BUTTON"&&a.hasSomethingToControl(),i=(a,{target:l})=>
165{if(l instanceof HTMLInputElement){const{type:c}=l;return c!=="text"&&c!=="number"}return!0},r=this.TRANSLATE_SMALL,s=this.TRANSLATE_BIG;return rn(this,"_keyboardManager",new bv([[["ctrl+a","mac+meta+a"],e.selectAll,{checker:i}],[["ctrl+z","mac+meta+z"],e.undo,{checker:i}],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],e.redo,{checker:i}],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],e.delete,{checker:i}],[["Enter","mac+Enter"],e.addNewEditorFromKeyboard,{checker:(a,{target:l})=>!(l instanceof HTMLButtonElement)&&O(a,ul).contains(l)&&!a.isEnterHandled}],[[" ","mac+ "],e.addNewEditorFromKeyboard,{checker:(a,{target:l})=>!(l instanceof HTMLButtonElement)&&O(a,ul).contains(document.activeElement)}],[["Escape","mac+Escape"],e.unselectAll],[["ArrowLeft","mac+ArrowLeft"],e.translateSelectedEditors,{args:[-r,0],checker:n}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e.translateSelectedEditors,{args:[-s,0],checker:n}],[["ArrowRight","mac+ArrowRight"],e.translateSelectedEditors,{args:[r,0],checker:n}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e.translateSelectedEditors,{args:[s,0],checker:n}],[["ArrowUp","mac+ArrowUp"],e.translateSelectedEditors,{args:[0,-r],checker:n}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e.translateSelectedEditors,{args:[0,-s],checker:n}],[["ArrowDown","mac+ArrowDown"],e.translateSelectedEditors,{args:[0,r],checker:n}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e.translateSelectedEditors,{args:[0,s],checker:n}]]))}destroy(){var e,n,i;(e=O(this,Tm))==null||e.abort(),fe(this,Tm,null),this._signal=null,this._eventBus._off("editingaction",O(this,Iy)),this._eventBus._off("pagechanging",O(this,Ry)),this._eventBus._off("scalechanging",O(this,Oy)),this._eventBus._off("rotationchanging",O(this,Ly));for(const r of O(this,Ui).values())r.destroy();O(this,Ui).clear(),O(this,wi).clear(),O(this,Nu).clear(),fe(this,vs,null),O(this,xn).clear(),O(this,Ea).destroy(),(n=O(this,Pm))==null||n.destroy(),(i=O(this,go))==null||i.hide(),fe(this,go,null),O(this,fo)&&(clearTimeout(O(this,fo)),fe(this,fo,null)),O(this,xo)&&(clearTimeout(O(this,xo)),fe(this,xo,null))}async mlGuess(e){var n;return((n=O(this,Mm))==null?void 0:n.guess(e))||null}get hasMLManager(){return!!O(this,Mm)}get hcmFilter(){return rn(this,"hcmFilter",O(this,Du)?O(this,Sy).addHCMFilter(O(this,Du).foreground,O(this,Du).background):"none")}get direction(){return rn(this,"direction",getComputedStyle(O(this,ul)).direction)}get highlightColors(){return rn(this,"highlightColors",O(this,Nm)?new Map(O(this,Nm).split(",").map(e=>e.split("=").map(n=>n.trim()))):null)}get highlightColorNames(){return rn(this,"highlightColorNames",this.highlightColors?new Map(Array.from(this.highlightColors,e=>e.reverse())):null)}setMainHighlightColorPicker(e){fe(this,jy,e)}editAltText(e){var n;(n=O(this,Pm))==null||n.editAltText(this,e)}onPageChanging({pageNumber:e}){fe(this,Am,e-1)}focusMainContainer(){O(this,ul).focus()}findParent(e,n){for(const i of O(this,Ui).values()){const{x:r,y:s,width:a,height:l}=i.div.getBoundingClientRect();if(e>=r&&e<=r+a&&n>=s&&n<=s+l)return i}return null}disableUserSelect(e=!1){O(this,By).classList.toggle("noUserSelect",e)}addShouldRescale(e){O(this,Nu).add(e)}removeShouldRescale(e){O(this,Nu).delete(e)}onScaleChanging({scale:e}){this.commitOrRemove(),this.viewParameters.realScale=e*jd.PDF_TO_CSS_UNITS;for(const n of O(this,Nu))n.onScaleChanging()}onRotationChanging({pagesRotation:e}){this.commitOrRemove(),this.viewParameters.rotation=e}highlightSelection(e=""){const n=document.getSelection();if(!n||n.isCollapsed)return;const{anchorNode:i,anchorOffset:r,focusNode:s,focusOffset:a}=n,l=n.toString(),d=ye(this,Je,bw).call(this,n).closest(".textLayer"),u=this.getSelectionBoxes(d);if(u){n.empty(),O(this,Wi)===en.NONE&&(this._eventBus.dispatch("showannotationeditorui",{source:this,mode:en.HIGHLIGHT}),this.showAllEditors("highlight",!0,!0));for(const h of O(this,Ui).values())if(h.hasTextLayer(d)){h.createAndAddNewEditor({x:0,y:0},!1,{methodOfCreation:e,boxes:u,anchorNode:i,anchorOffset:r,focusNode:s,focusOffset:a,text:l});break}}}addToAnnotationStorage(e){!e.isEmpty()&&O(this,cl)&&!O(this,cl).has(e.id)&&O(this,cl).setValue(e.id,e)}blur(){if(this.isShiftKeyDown=!1,O(this,Rc)&&(fe(this,Rc,!1),ye(this,Je,vw).call(this,"main_toolbar")),!this.hasSelection)return;const{activeElement:e}=document;for(const n of O(this,xn))if(n.div.contains(e)){fe(this,Mu,[n,e]),n._focusEventsAllowed=!1;break}}focus(){if(!O(this,Mu))return;const[e,n]=O(this,Mu);fe(this,Mu,null),n.addEventListener("focusin",()=>{e._focusEventsAllowed=!0},{once:!0,signal:this._signal}),n.focus()}addEditListeners(){ye(this,Je,xP).call(this),ye(this,Je,yP).call(this)}removeEditListeners(){ye(this,Je,d8).call(this),ye(this,Je,bP).call(this)}dragOver(e){for(const{type:n}of e.dataTransfer.items)for(const i of O(this,Aa))if(i.isHandlingMimeForPasting(n)){e.dataTransfer.dropEffect="copy",e.preventDefault();return}}drop(e){for(const n of e.dataTransfer.items)for(const i of O(this,Aa))if(i.isHandlingMimeForPasting(n.type)){i.paste(n,this.currentLayer),e.preventDefault();return}}copy(e){var i;if(e.preventDefault(),(i=O(this,vs))==null||i.commitOrRemove(),!this.hasSelection)return;const n=[];for(const r of O(this,xn)){const s=r.serialize(!0);s&&n.push(s)}n.length!==0&&e.clipboardData.setData("application/pdfjs",JSON.stringify(n))}cut(e){this.copy(e),this.delete()}paste(e){e.preventDefault();const{clipboardData:n}=e;for(const s of n.items)for(const a of O(this,Aa))if(a.isHandlingMimeForPasting(s.type)){a.paste(s,this.currentLayer);return}let i=n.getData("application/pdfjs");if(!i)return;try{i=JSON.parse(i)}catch(s){Ut(`paste: "${s.message}".`);return}if(!Array.isArray(i))return;this.unselectAll();const r=this.currentLayer;try{const s=[];for(const c of i){const d=r.deserialize(c);if(!d)return;s.push(d)}const a=()=>{for(const c of s)ye(this,Je,vP).call(this,c);ye(this,Je,wP).call(this,s)},l=()=>{for(const c of s)c.remove()};this.addCommands({cmd:a,undo:l,mustExec:!0})}catch(s){Ut(`paste: "${s.message}".`)}}keydown(e){!this.isShiftKeyDown&&e.key==="Shift"&&(this.isShiftKeyDown=!0),O(this,Wi)!==en.NONE&&!this.isEditorHandlingKeyboard&&Kp._keyboardManager.exec(this,e)}keyup(e){this.isShiftKeyDown&&e.key==="Shift"&&(this.isShiftKeyDown=!1,O(this,Rc)&&(fe(this,Rc,!1),ye(this,Je,vw).call(this,"main_toolbar")))}onEditingAction({name:e}){switch(e){case"undo":case"redo":case"delete":case"selectAll":this[e]();break;case"highlightSelection":this.highlightSelection("context_menu");break}}setEditingState(e){e?(ye(this,Je,l8).call(this),ye(this,Je,yP).call(this),ye(this,Je,Sr).call(this,{isEditing:O(this,Wi)!==en.NONE,isEmpty:ye(this,Je,Yg).
165call(this),hasSomethingToUndo:O(this,Ea).hasSomethingToUndo(),hasSomethingToRedo:O(this,Ea).hasSomethingToRedo(),hasSelectedEditor:!1})):(ye(this,Je,c8).call(this),ye(this,Je,bP).call(this),ye(this,Je,Sr).call(this,{isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(e){if(!O(this,Aa)){fe(this,Aa,e);for(const n of O(this,Aa))ye(this,Je,fc).call(this,n.defaultPropertiesToUpdate)}}getId(){return O(this,w1).id}get currentLayer(){return O(this,Ui).get(O(this,Am))}getLayer(e){return O(this,Ui).get(e)}get currentPageIndex(){return O(this,Am)}addLayer(e){O(this,Ui).set(e.pageIndex,e),O(this,Oc)?e.enable():e.disable()}removeLayer(e){O(this,Ui).delete(e.pageIndex)}updateMode(e,n=null,i=!1){if(O(this,Wi)!==e){if(fe(this,Wi,e),e===en.NONE){this.setEditingState(!1),ye(this,Je,p8).call(this);return}this.setEditingState(!0),ye(this,Je,h8).call(this),this.unselectAll();for(const r of O(this,Ui).values())r.updateMode(e);if(!n&&i){this.addNewEditorFromKeyboard();return}if(n){for(const r of O(this,wi).values())if(r.annotationElementId===n){this.setSelected(r),r.enterInEditMode();break}}}}addNewEditorFromKeyboard(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor()}updateToolbar(e){e!==O(this,Wi)&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:e})}updateParams(e,n){var i;if(O(this,Aa)){switch(e){case Ct.CREATE:this.currentLayer.addNewEditor();return;case Ct.HIGHLIGHT_DEFAULT_COLOR:(i=O(this,jy))==null||i.updateColor(n);break;case Ct.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:{type:"highlight",action:"toggle_visibility"}}}),(O(this,Ty)||fe(this,Ty,new Map)).set(e,n),this.showAllEditors("highlight",n);break}for(const r of O(this,xn))r.updateParams(e,n);for(const r of O(this,Aa))r.updateDefaultParams(e,n)}}showAllEditors(e,n,i=!1){var s;for(const a of O(this,wi).values())a.editorType===e&&a.show(n);(((s=O(this,Ty))==null?void 0:s.get(Ct.HIGHLIGHT_SHOW_ALL))??!0)!==n&&ye(this,Je,fc).call(this,[[Ct.HIGHLIGHT_SHOW_ALL,n]])}enableWaiting(e=!1){if(O(this,Cy)!==e){fe(this,Cy,e);for(const n of O(this,Ui).values())e?n.disableClick():n.enableClick(),n.div.classList.toggle("waiting",e)}}getEditors(e){const n=[];for(const i of O(this,wi).values())i.pageIndex===e&&n.push(i);return n}getEditor(e){return O(this,wi).get(e)}addEditor(e){O(this,wi).set(e.id,e)}removeEditor(e){var n;e.div.contains(document.activeElement)&&(O(this,fo)&&clearTimeout(O(this,fo)),fe(this,fo,setTimeout(()=>{this.focusMainContainer(),fe(this,fo,null)},0))),O(this,wi).delete(e.id),this.unselect(e),(!e.annotationElementId||!O(this,Au).has(e.annotationElementId))&&((n=O(this,cl))==null||n.remove(e.id))}addDeletedAnnotationElement(e){O(this,Au).add(e.annotationElementId),this.addChangedExistingAnnotation(e),e.deleted=!0}isDeletedAnnotationElement(e){return O(this,Au).has(e)}removeDeletedAnnotationElement(e){O(this,Au).delete(e.annotationElementId),this.removeChangedExistingAnnotation(e),e.deleted=!1}setActiveEditor(e){O(this,vs)!==e&&(fe(this,vs,e),e&&ye(this,Je,fc).call(this,e.propertiesToUpdate))}updateUI(e){O(this,Je,m8)===e&&ye(this,Je,fc).call(this,e.propertiesToUpdate)}toggleSelected(e){if(O(this,xn).has(e)){O(this,xn).delete(e),e.unselect(),ye(this,Je,Sr).call(this,{hasSelectedEditor:this.hasSelection});return}O(this,xn).add(e),e.select(),ye(this,Je,fc).call(this,e.propertiesToUpdate),ye(this,Je,Sr).call(this,{hasSelectedEditor:!0})}setSelected(e){for(const n of O(this,xn))n!==e&&n.unselect();O(this,xn).clear(),O(this,xn).add(e),e.select(),ye(this,Je,fc).call(this,e.propertiesToUpdate),ye(this,Je,Sr).call(this,{hasSelectedEditor:!0})}isSelected(e){return O(this,xn).has(e)}get firstSelectedEditor(){return O(this,xn).values().next().value}unselect(e){e.unselect(),O(this,xn).delete(e),ye(this,Je,Sr).call(this,{hasSelectedEditor:this.hasSelection})}get hasSelection(){return O(this,xn).size!==0}get isEnterHandled(){return O(this,xn).size===1&&this.firstSelectedEditor.isEnterHandled}undo(){O(this,Ea).undo(),ye(this,Je,Sr).call(this,{hasSomethingToUndo:O(this,Ea).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:ye(this,Je,Yg).
165call(this)})}redo(){O(this,Ea).redo(),ye(this,Je,Sr).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:O(this,Ea).hasSomethingToRedo(),isEmpty:ye(this,Je,Yg).call(this)})}addCommands(e){O(this,Ea).add(e),ye(this,Je,Sr).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:ye(this,Je,Yg).call(this)})}delete(){if(this.commitOrRemove(),!this.hasSelection)return;const e=[...O(this,xn)],n=()=>{for(const r of e)r.remove()},i=()=>{for(const r of e)ye(this,Je,vP).call(this,r)};this.addCommands({cmd:n,undo:i,mustExec:!0})}commitOrRemove(){var e;(e=O(this,vs))==null||e.commitOrRemove()}hasSomethingToControl(){return O(this,vs)||this.hasSelection}selectAll(){for(const e of O(this,xn))e.commit();ye(this,Je,wP).call(this,O(this,wi).values())}unselectAll(){if(!(O(this,vs)&&(O(this,vs).commitOrRemove(),O(this,Wi)!==en.NONE))&&this.hasSelection){for(const e of O(this,xn))e.unselect();O(this,xn).clear(),ye(this,Je,Sr).call(this,{hasSelectedEditor:!1})}}translateSelectedEditors(e,n,i=!1){if(i||this.commitOrRemove(),!this.hasSelection)return;O(this,Lc)[0]+=e,O(this,Lc)[1]+=n;const[r,s]=O(this,Lc),a=[...O(this,xn)],l=1e3;O(this,xo)&&clearTimeout(O(this,xo)),fe(this,xo,setTimeout(()=>{fe(this,xo,null),O(this,Lc)[0]=O(this,Lc)[1]=0,this.addCommands({cmd:()=>{for(const c of a)O(this,wi).has(c.id)&&c.translateInPage(r,s)},undo:()=>{for(const c of a)O(this,wi).has(c.id)&&c.translateInPage(-r,-s)},mustExec:!1})},l));for(const c of a)c.translateInPage(e,n)}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),fe(this,mo,new Map);for(const e of O(this,xn))O(this,mo).set(e,{savedX:e.x,savedY:e.y,savedPageIndex:e.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!O(this,mo))return!1;this.disableUserSelect(!1);const e=O(this,mo);fe(this,mo,null);let n=!1;for(const[{x:r,y:s,pageIndex:a},l]of e)l.newX=r,l.newY=s,l.newPageIndex=a,n||(n=r!==l.savedX||s!==l.savedY||a!==l.savedPageIndex);if(!n)return!1;const i=(r,s,a,l)=>{if(O(this,wi).has(r.id)){const c=O(this,Ui).get(l);c?r._setParentAndPosition(c,s,a):(r.pageIndex=l,r.x=s,r.y=a)}};return this.addCommands({cmd:()=>{for(const[r,{newX:s,newY:a,newPageIndex:l}]of e)i(r,s,a,l)},undo:()=>{for(const[r,{savedX:s,savedY:a,savedPageIndex:l}]of e)i(r,s,a,l)},mustExec:!0}),!0}dragSelectedEditors(e,n){if(O(this,mo))for(const i of O(this,mo).keys())i.drag(e,n)}rebuild(e){if(e.parent===null){const n=this.getLayer(e.pageIndex);n?(n.changeParent(e),n.addOrRebuild(e)):(this.addEditor(e),this.addToAnnotationStorage(e),e.rebuild())}else e.parent.addOrRebuild(e)}get isEditorHandlingKeyboard(){var e;return((e=this.getActive())==null?void 0:e.shouldGetKeyboardEvents())||O(this,xn).size===1&&this.firstSelectedEditor.shouldGetKeyboardEvents()}isActive(e){return O(this,vs)===e}getActive(){return O(this,vs)}getMode(){return O(this,Wi)}get imageManager(){return rn(this,"imageManager",new mP)}getSelectionBoxes(e){if(!e)return null;const n=document.getSelection();for(let d=0,u=n.rangeCount;d<u;d++)if(!e.contains(n.getRangeAt(d).commonAncestorContainer))return null;const{x:i,y:r,width:s,height:a}=e.getBoundingClientRect();let l;switch(e.getAttribute("data-main-rotation")){case"90":l=(d,u,h,p)=>({x:(u-r)/a,y:1-(d+h-i)/s,width:p/a,height:h/s});break;case"180":l=(d,u,h,p)=>({x:1-(d+h-i)/s,y:1-(u+p-r)/a,width:h/s,height:p/a});break;case"270":l=(d,u,h,p)=>({x:1-(u+p-r)/a,y:(d-i)/s,width:p/a,height:h/s});break;default:l=(d,u,h,p)=>({x:(d-i)/s,y:(u-r)/a,width:h/s,height:p/a});break}const c=[];for(let d=0,u=n.rangeCount;d<u;d++){const h=n.getRangeAt(d);if(!h.collapsed)for(const{x:p,y,width:m,height:w}of h.getClientRects())m===0||w===0||c.push(l(p,y,m,w))}return c.length===0?null:c}addChangedExistingAnnotation({annotationElementId:e,id:n}){(O(this,Em)||fe(this,Em,new Map)).set(e,n)}removeChangedExistingAnnotation({annotationElementId:e}){var n;(n=O(this,Em))==null||n.delete(e)}renderAnnotationElement(e){var r;const n=(r=O(this,Em))==null?void 0:r.get(e.data.id);if(!n)return;const i=O(this,cl).getRawValue(n);i&&(O(this,Wi)===en.NONE&&!i.hasBeenModified||i.renderAnnotationElement(e))}};Tm=new WeakMap,vs=new WeakMap,wi=new WeakMap,Ui=new WeakMap,Pm=new WeakMap,cl=new WeakMap,Em=new WeakMap,Ea=new WeakMap,Am=new WeakMap,Au=new WeakMap,mo=new WeakMap,Aa=new WeakMap,Nu=new WeakMap,ky=new WeakMap,Sy=new WeakMap,fo=new WeakMap,Nm=new WeakMap,Rc=new WeakMap,go=new WeakMap,w1=new WeakMap,Oc=new WeakMap,Cy=new WeakMap,Mu=new WeakMap,jy=new WeakMap,Mm=new WeakMap,Wi=new WeakMap,xn=new WeakMap,dl=new WeakMap,Du=new WeakMap,Ty=new WeakMap,Py=new WeakMap,Ey=new WeakMap,Ay=new WeakMap,Ny=new WeakMap,My=new WeakMap,Dy=new WeakMap,_y=new WeakMap,Iy=new WeakMap,Ry=new WeakMap,Oy=new WeakMap,Ly=new WeakMap,Fy=new WeakMap,Lc=new WeakMap,xo=new WeakMap,ul=new WeakMap,By=new WeakMap,Je=new WeakSet,bw=function({anchorNode:e}
165){return e.nodeType===Node.TEXT_NODE?e.parentElement:e},s8=function(){const e=document.getSelection();if(!e||e.isCollapsed)return;const i=ye(this,Je,bw).call(this,e).closest(".textLayer"),r=this.getSelectionBoxes(i);r&&(O(this,go)||fe(this,go,new wce(this)),O(this,go).show(i,r,this.direction==="ltr"))},a8=function(){var s,a,l;const e=document.getSelection();if(!e||e.isCollapsed){O(this,dl)&&((s=O(this,go))==null||s.hide(),fe(this,dl,null),ye(this,Je,Sr).call(this,{hasSelectedText:!1}));return}const{anchorNode:n}=e;if(n===O(this,dl))return;if(!ye(this,Je,bw).call(this,e).closest(".textLayer")){O(this,dl)&&((a=O(this,go))==null||a.hide(),fe(this,dl,null),ye(this,Je,Sr).call(this,{hasSelectedText:!1}));return}if((l=O(this,go))==null||l.hide(),fe(this,dl,n),ye(this,Je,Sr).call(this,{hasSelectedText:!0}),!(O(this,Wi)!==en.HIGHLIGHT&&O(this,Wi)!==en.NONE)&&(O(this,Wi)===en.HIGHLIGHT&&this.showAllEditors("highlight",!0,!0),fe(this,Rc,this.isShiftKeyDown),!this.isShiftKeyDown)){const c=this._signal,d=u=>{u.type==="pointerup"&&u.button!==0||(window.removeEventListener("pointerup",d),window.removeEventListener("blur",d),u.type==="pointerup"&&ye(this,Je,vw).call(this,"main_toolbar"))};window.addEventListener("pointerup",d,{signal:c}),window.addEventListener("blur",d,{signal:c})}},vw=function(e=""){O(this,Wi)===en.HIGHLIGHT?this.highlightSelection(e):O(this,ky)&&ye(this,Je,s8).call(this)},o8=function(){document.addEventListener("selectionchange",ye(this,Je,a8).bind(this),{signal:this._signal})},l8=function(){const e=this._signal;window.addEventListener("focus",O(this,Ey),{signal:e}),window.addEventListener("blur",O(this,Py),{signal:e})},c8=function(){window.removeEventListener("focus",O(this,Ey)),window.removeEventListener("blur",O(this,Py))},xP=function(){const e=this._signal;window.addEventListener("keydown",O(this,Dy),{signal:e}),window.addEventListener("keyup",O(this,_y),{signal:e})},d8=function(){window.removeEventListener("keydown",O(this,Dy)),window.removeEventListener("keyup",O(this,_y))},yP=function(){const e=this._signal;document.addEventListener("copy",O(this,Ay),{signal:e}),document.addEventListener("cut",O(this,Ny),{signal:e}),document.addEventListener("paste",O(this,My),{signal:e})},bP=function(){document.removeEventListener("copy",O(this,Ay)),document.removeEventListener("cut",O(this,Ny)),document.removeEventListener("paste",O(this,My))},u8=function(){const e=this._signal;document.addEventListener("dragover",this.dragOver.bind(this),{signal:e}),document.addEventListener("drop",this.drop.bind(this),{signal:e})},Sr=function(e){Object.entries(e).some(([i,r])=>O(this,Fy)[i]!==r)&&(this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(O(this,Fy),e)}),O(this,Wi)===en.HIGHLIGHT&&e.hasSelectedEditor===!1&&ye(this,Je,fc).call(this,[[Ct.HIGHLIGHT_FREE,!0]]))},fc=function(e){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:e})},h8=function(){if(!O(this,Oc)){fe(this,Oc,!0);for(const e of O(this,Ui).values())e.enable();for(const e of O(this,wi).values())e.enable()}},p8=function(){if(this.unselectAll(),O(this,Oc)){fe(this,Oc,!1);for(const e of O(this,Ui).values())e.disable();for(const e of O(this,wi).values())e.disable()}},vP=function(e){const n=O(this,Ui).get(e.pageIndex);n?n.addOrRebuild(e):(this.addEditor(e),this.addToAnnotationStorage(e))},m8=function(){let e=null;for(e of O(this,xn));return e},Yg=function(){if(O(this,wi).size===0)return!0;if(O(this,wi).size===1)for(const e of O(this,wi).values())return e.isEmpty();return!1},wP=function(e){for(const n of O(this,xn))n.unselect();O(this,xn).clear();for(const n of e)n.isEmpty()||(O(this,xn).add(n),n.select());ye(this,Je,Sr).call(this,{hasSelectedEditor:this.hasSelection})},Tt(Kp,"TRANSLATE_SMALL",1),Tt(Kp,"TRANSLATE_BIG",10);let zh=Kp;var hl,pl,Na,ml,ws,Dm,Ma,$y,kP;const nl=class nl{constructor(e){xe(this,$y);xe(this,hl,"");xe(this,pl,!1);xe(this,Na,null);xe(this,ml,null);xe(this,ws,null);xe(this,Dm,!1);xe(this,Ma,null);fe(this,Ma,e)}static initialize(e){nl._l10nPromise||(nl._l10nPromise=e)}async render(){const e=fe(this,Na,document.createElement("button"));e.className="altText";const n=await nl._l10nPromise.get("pdfjs-editor-alt-text-button-label");e.textContent=n,e.setAttribute("aria-label",n),e.tabIndex="0";
165const i=O(this,Ma)._uiManager._signal;e.addEventListener("contextmenu",ds,{signal:i}),e.addEventListener("pointerdown",s=>s.stopPropagation(),{signal:i});const r=s=>{s.preventDefault(),O(this,Ma)._uiManager.editAltText(O(this,Ma))};return e.addEventListener("click",r,{capture:!0,signal:i}),e.addEventListener("keydown",s=>{s.target===e&&s.key==="Enter"&&(fe(this,Dm,!0),r(s))},{signal:i}),await ye(this,$y,kP).call(this),e}finish(){O(this,Na)&&(O(this,Na).focus({focusVisible:O(this,Dm)}),fe(this,Dm,!1))}isEmpty(){return!O(this,hl)&&!O(this,pl)}get data(){return{altText:O(this,hl),decorative:O(this,pl)}}set data({altText:e,decorative:n}){O(this,hl)===e&&O(this,pl)===n||(fe(this,hl,e),fe(this,pl,n),ye(this,$y,kP).call(this))}toggle(e=!1){O(this,Na)&&(!e&&O(this,ws)&&(clearTimeout(O(this,ws)),fe(this,ws,null)),O(this,Na).disabled=!e)}destroy(){var e;(e=O(this,Na))==null||e.remove(),fe(this,Na,null),fe(this,ml,null)}};hl=new WeakMap,pl=new WeakMap,Na=new WeakMap,ml=new WeakMap,ws=new WeakMap,Dm=new WeakMap,Ma=new WeakMap,$y=new WeakSet,kP=async function(){var r;const e=O(this,Na);if(!e)return;if(!O(this,hl)&&!O(this,pl)){e.classList.remove("done"),(r=O(this,ml))==null||r.remove();return}e.classList.add("done"),nl._l10nPromise.get("pdfjs-editor-alt-text-edit-button-label").then(s=>{e.setAttribute("aria-label",s)});let n=O(this,ml);if(!n){fe(this,ml,n=document.createElement("span")),n.className="tooltip",n.setAttribute("role","tooltip");const s=n.id=`alt-text-tooltip-${O(this,Ma).id}`;e.setAttribute("aria-describedby",s);const a=100,l=O(this,Ma)._uiManager._signal;l.addEventListener("abort",()=>{clearTimeout(O(this,ws)),fe(this,ws,null)},{once:!0}),e.addEventListener("mouseenter",()=>{fe(this,ws,setTimeout(()=>{fe(this,ws,null),O(this,ml).classList.add("show"),O(this,Ma)._reportTelemetry({action:"alt_text_tooltip"})},a))},{signal:l}),e.addEventListener("mouseleave",()=>{var c;O(this,ws)&&(clearTimeout(O(this,ws)),fe(this,ws,null)),(c=O(this,ml))==null||c.classList.remove("show")},{signal:l})}n.innerText=O(this,pl)?await nl._l10nPromise.get("pdfjs-editor-alt-text-decorative-tooltip"):O(this,hl),n.parentNode||e.append(n);const i=O(this,Ma).getImageForAltText();i==null||i.setAttribute("aria-describedby",n.id)},Tt(nl,"_l10nPromise",null);let r1=nl;var _u,Da,fr,_m,Iu,Gi,Ru,Im,Rm,gr,Hy,Ou,Fc,zy,Lu,fl,yo,Om,Lm,ea,Vy,k1,Kt,SP,Uy,CP,jP,f8,g8,TP,PP,EP,x8,y8,b8,v8,AP,Xg;const jn=class jn{constructor(e){xe(this,Kt);xe(this,_u,null);xe(this,Da,null);xe(this,fr,null);xe(this,_m,!1);xe(this,Iu,!1);xe(this,Gi,null);xe(this,Ru,null);xe(this,Im,this.focusin.bind(this));xe(this,Rm,this.focusout.bind(this));xe(this,gr,null);xe(this,Hy,"");xe(this,Ou,!1);xe(this,Fc,null);xe(this,zy,!1);xe(this,Lu,!1);xe(this,fl,!1);xe(this,yo,null);xe(this,Om,0);xe(this,Lm,0);xe(this,ea,null);Tt(this,"_initialOptions",Object.create(null));Tt(this,"_isVisible",!0);Tt(this,"_uiManager",null);Tt(this,"_focusEventsAllowed",!0);Tt(this,"_l10nPromise",null);xe(this,Vy,!1);xe(this,k1,jn._zIndex++);this.constructor===jn&&kn("Cannot initialize AnnotationEditor."),this.parent=e.parent,this.id=e.id,this.width=this.height=null,this.pageIndex=e.parent.pageIndex,this.name=e.name,this.div=null,this._uiManager=e.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=e.isCentered,this._structTreeParentId=null;const{rotation:n,rawDims:{pageWidth:i,pageHeight:r,pageX:s,pageY:a}}=this.parent.viewport;this.rotation=n,this.pageRotation=(360+n-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[i,r],this.pageTranslation=[s,a];const[l,c]=this.parentDimensions;this.x=e.x/l,this.y=e.y/c,this.isAttachedToDOM=!1,this.deleted=!1}static get _resizerKeyboardManager(){const e=jn.prototype._resizeWithKeyboard,n=zh.TRANSLATE_SMALL,i=zh.TRANSLATE_BIG;return rn(this,"_resizerKeyboardManager",new bv([[["ArrowLeft","mac+ArrowLeft"],e,{args:[-n,0]}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e,{args:[-i,0]}],[["ArrowRight","mac+ArrowRight"],e,{args:[n,0]}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e,{args:[i,0]}],[["ArrowUp","mac+ArrowUp"],e,{args:[0,-n]}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e,{args:[0,-i]}],[["ArrowDown","mac+ArrowDown"],e,{args:[0,n]}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e,{args:[0,i]}],[["Escape","mac+Escape"],jn.prototype._stopResizingWithKeyboard]]))}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get _defaultLineColor(){return rn(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(e){const n=new jce({id:e.parent.getNextId(),parent:e.parent,uiManager:e._uiManager});n.annotationElementId=e.annotationElementId,n.deleted=!0,n._uiManager.addToAnnotationStorage(n)}static initialize(e,n,i){if(jn._l10nPromise||(jn._l10nPromise=new Map(["pdfjs-editor-alt-text-button-label","pdfjs-editor-alt-text-edit-button-label","pdfjs-editor-alt-text-decorative-tooltip","pdfjs-editor-resizer-label-topLeft","pdfjs-editor-resizer-label-topMiddle","pdfjs-editor-resizer-label-topRight","pdfjs-editor-resizer-label-middleRight","pdfjs-editor-resizer-label-bottomRight","pdfjs-editor-resizer-label-bottomMiddle","pdfjs-editor-resizer-label-bottomLeft","pdfjs-editor-resizer-label-middleLeft"].map(s=>[s,e.get(s.replaceAll(/([A-Z])/g,a=>`-${a.toLowerCase()}`))]))),i!=null&&i.strings)for(const s of i.strings)jn._l10nPromise.set(s,e.get(s));if(jn._borderLineWidth!==-1)return;const r=getComputedStyle(document.documentElement);jn._borderLineWidth=parseFloat(r.getPropertyValue("--outline-width"))||0}static updateDefaultParams(e,n){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(e){return!1}static paste(e,n){kn("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return O(this,Vy)}set _isDraggable(e){var n;fe(this,Vy,e),(n=this.div)==null||n.classList.toggle("draggable",e)}get isEnterHandled(){return!0}center(){const[e,n]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*n/(e*2),this.y+=this.width*e/(n*2);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*n/(e*2),this.y-=this.width*e/(n*2);break;default:this.x-=this.width/2,this.y-=this.height/2;break}this.fixAndSetPosition()}addCommands(e){this._uiManager.addCommands(e)}get currentLayer(){return this._uiManager.currentLayer}
165setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=O(this,k1)}setParent(e){e!==null?(this.pageIndex=e.pageIndex,this.pageDimensions=e.pageDimensions):ye(this,Kt,Xg).call(this),this.parent=e}focusin(e){this._focusEventsAllowed&&(O(this,Ou)?fe(this,Ou,!1):this.parent.setSelected(this))}focusout(e){var i;if(!this._focusEventsAllowed||!this.isAttachedToDOM)return;const n=e.relatedTarget;n!=null&&n.closest(`#${this.id}`)||(e.preventDefault(),(i=this.parent)!=null&&i.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(e,n,i,r){const[s,a]=this.parentDimensions;[i,r]=this.screenToPageTranslation(i,r),this.x=(e+i)/s,this.y=(n+r)/a,this.fixAndSetPosition()}translate(e,n){ye(this,Kt,SP).call(this,this.parentDimensions,e,n)}translateInPage(e,n){O(this,Fc)||fe(this,Fc,[this.x,this.y]),ye(this,Kt,SP).call(this,this.pageDimensions,e,n),this.div.scrollIntoView({block:"nearest"})}drag(e,n){O(this,Fc)||fe(this,Fc,[this.x,this.y]);const[i,r]=this.parentDimensions;if(this.x+=e/i,this.y+=n/r,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:d,y:u}=this.div.getBoundingClientRect();this.parent.findNewParent(this,d,u)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:s,y:a}=this;const[l,c]=this.getBaseTranslation();s+=l,a+=c,this.div.style.left=`${(100*s).toFixed(2)}%`,this.div.style.top=`${(100*a).toFixed(2)}%`,this.div.scrollIntoView({block:"nearest"})}get _hasBeenMoved(){return!!O(this,Fc)&&(O(this,Fc)[0]!==this.x||O(this,Fc)[1]!==this.y)}getBaseTranslation(){const[e,n]=this.parentDimensions,{_borderLineWidth:i}=jn,r=i/e,s=i/n;switch(this.rotation){case 90:return[-r,s];case 180:return[r,s];case 270:return[r,-s];default:return[-r,-s]}}get _mustFixPosition(){return!0}fixAndSetPosition(e=this.rotation){const[n,i]=this.pageDimensions;let{x:r,y:s,width:a,height:l}=this;if(a*=n,l*=i,r*=n,s*=i,this._mustFixPosition)switch(e){case 0:r=Math.max(0,Math.min(n-a,r)),s=Math.max(0,Math.min(i-l,s));break;case 90:r=Math.max(0,Math.min(n-l,r)),s=Math.min(i,Math.max(a,s));break;case 180:r=Math.min(n,Math.max(a,r)),s=Math.min(i,Math.max(l,s));break;case 270:r=Math.min(n,Math.max(l,r)),s=Math.max(0,Math.min(i-a,s));break}this.x=r/=n,this.y=s/=i;const[c,d]=this.getBaseTranslation();r+=c,s+=d;const{style:u}=this.div;u.left=`${(100*r).toFixed(2)}%`,u.top=`${(100*s).toFixed(2)}%`,this.moveInDOM()}screenToPageTranslation(e,n){var i;return ye(i=jn,Uy,CP).call(i,e,n,this.parentRotation)}pageTranslationToScreen(e,n){var i;return ye(i=jn,Uy,CP).call(i,e,n,360-this.parentRotation)}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:e,pageDimensions:[n,i]}=this,r=n*e,s=i*e;return is.isCSSRoundSupported?[Math.round(r),Math.round(s)]:[r,s]}setDims(e,n){const[i,r]=this.parentDimensions;this.div.style.width=`${(100*e/i).toFixed(2)}%`,O(this,Iu)||(this.div.style.height=`${(100*n/r).toFixed(2)}%`)}fixDims(){const{style:e}=this.div,{height:n,width:i}=e,r=i.endsWith("%"),s=!O(this,Iu)&&n.endsWith("%");if(r&&s)return;const[a,l]=this.parentDimensions;r||(e.width=`${(100*parseFloat(i)/a).toFixed(2)}%`),!O(this,Iu)&&!s&&(e.height=`${(100*parseFloat(n)/l).toFixed(2)}%`)}getInitialTranslation(){return[0,0]}altTextFinish(){var e;(e=O(this,fr))==null||e.finish()}async addEditToolbar(){return O(this,gr)||O(this,Lu)?O(this,gr):(fe(this,gr,new hP(this)),this.div.append(O(this,gr).render()),O(this,fr)&&O(this,gr).addAltTextButton(await O(this,fr).render()),O(this,gr))}removeEditToolbar(){var e;O(this,gr)&&(O(this,gr).remove(),fe(this,gr,null),(e=O(this,fr))==null||e.destroy())}getClientDimensions(){return this.div.getBoundingClientRect()}async addAltTextButton(){O(this,fr)||(r1.initialize(jn._l10nPromise),fe(this,fr,new r1(this)),O(this,_u)&&(O(this,fr).data=O(this,_u),fe(this,_u,null)),await this.addEditToolbar())}get altTextData(){var e;return(e=O(this,fr))==null?void 0:e.data}set altTextData(e){O(this,fr)&&(O(this,fr).data=e)}hasAltText(){var e;return!((e=O(this,fr))!=null&&e.isEmpty())}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.tabIndex=O(this,_m)?-1:0,this._isVisible||this.div.classList.add("hidden"),this.setInForeground();const e=this._uiManager._signal;this.div.addEventListener("focusin",O(this,Im),{signal:e}),this.div.addEventListener("focusout",O(this,Rm),{signal:e});const[n,i]=this.parentDimensions;this.parentRotation%180!==0&&(this.div.style.maxWidth=`${(100*i/n).toFixed(2)}%`,this.div.style.maxHeight=`${(100*n/i).toFixed(2)}%`);const[r,s]=this.getInitialTranslation();return this.translate(r,s),i1(this,this.div,["pointerdown"]),this.div}pointerdown(e){const{isMac:n}=is.platform;if(e.button!==0||e.ctrlKey&&n){e.preventDefault();return}if(fe(this,Ou,!0),this._isDraggable){ye(this,Kt,x8).call(this,e);return}ye(this,Kt,EP).call(this,e)}moveInDOM(){O(this,yo)&&clearTimeout(O(this,yo)),fe(this,yo,setTimeout(()=>{var e;fe(this,yo,null),(e=this.parent)==null||e.moveEditorInDOM(this)},0))}_setParentAndPosition(e,n,i){e.changeParent(this),this.x=n,this.y=i,this.fixAndSetPosition()}getRect(e,n,i=this.rotation){const r=this.parentScale,[s,a]=this.pageDimensions,[l,c]=this.pageTranslation,d=e/r,u=n/r,h=this.x*s,p=this.y*a,y=this.width*s,m=this.height*a;
165switch(i){case 0:return[h+d+l,a-p-u-m+c,h+d+y+l,a-p-u+c];case 90:return[h+u+l,a-p+d+c,h+u+m+l,a-p+d+y+c];case 180:return[h-d-y+l,a-p+u+c,h-d+l,a-p+u+m+c];case 270:return[h-u-m+l,a-p-d-y+c,h-u+l,a-p-d+c];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(e,n){const[i,r,s,a]=e,l=s-i,c=a-r;switch(this.rotation){case 0:return[i,n-a,l,c];case 90:return[i,n-r,c,l];case 180:return[s,n-r,l,c];case 270:return[s,n-a,c,l];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){fe(this,Lu,!0)}disableEditMode(){fe(this,Lu,!1)}isInEditMode(){return O(this,Lu)}shouldGetKeyboardEvents(){return O(this,fl)}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){var n,i;const e=this._uiManager._signal;(n=this.div)==null||n.addEventListener("focusin",O(this,Im),{signal:e}),(i=this.div)==null||i.addEventListener("focusout",O(this,Rm),{signal:e})}rotate(e){}serialize(e=!1,n=null){kn("An editor must be serializable")}static deserialize(e,n,i){const r=new this.prototype.constructor({parent:n,id:n.getNextId(),uiManager:i});r.rotation=e.rotation,fe(r,_u,e.accessibilityData);const[s,a]=r.pageDimensions,[l,c,d,u]=r.getRectInCurrentCoords(e.rect,a);return r.x=l/s,r.y=c/a,r.width=d/s,r.height=u/a,r}get hasBeenModified(){return!!this.annotationElementId&&(this.deleted||this.serialize()!==null)}remove(){if(this.div.removeEventListener("focusin",O(this,Im)),this.div.removeEventListener("focusout",O(this,Rm)),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),O(this,yo)&&(clearTimeout(O(this,yo)),fe(this,yo,null)),ye(this,Kt,Xg).call(this),this.removeEditToolbar(),O(this,ea)){for(const e of O(this,ea).values())clearTimeout(e);fe(this,ea,null)}this.parent=null}get isResizable(){return!1}makeResizable(){this.isResizable&&(ye(this,Kt,f8).call(this),O(this,Gi).classList.remove("hidden"),i1(this,this.div,["keydown"]))}get toolbarPosition(){return null}keydown(e){if(!this.isResizable||e.target!==this.div||e.key!=="Enter")return;this._uiManager.setSelected(this),fe(this,Ru,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height});const n=O(this,Gi).children;if(!O(this,Da)){fe(this,Da,Array.from(n));const a=ye(this,Kt,y8).bind(this),l=ye(this,Kt,b8).bind(this),c=this._uiManager._signal;for(const d of O(this,Da)){const u=d.getAttribute("data-resizer-name");d.setAttribute("role","spinbutton"),d.addEventListener("keydown",a,{signal:c}),d.addEventListener("blur",l,{signal:c}),d.addEventListener("focus",ye(this,Kt,v8).bind(this,u),{signal:c}),jn._l10nPromise.get(`pdfjs-editor-resizer-label-${u}`).then(h=>d.setAttribute("aria-label",h))}}const i=O(this,Da)[0];let r=0;for(const a of n){if(a===i)break;r++}const s=(360-this.rotation+this.parentRotation)%360/90*(O(this,Da).length/4);if(s!==r){if(s<r)for(let l=0;l<r-s;l++)O(this,Gi).append(O(this,Gi).firstChild);else if(s>r)for(let l=0;l<s-r;l++)O(this,Gi).firstChild.before(O(this,Gi).lastChild);let a=0;for(const l of n){const d=O(this,Da)[a++].getAttribute("data-resizer-name");jn._l10nPromise.get(`pdfjs-editor-resizer-label-${d}`).then(u=>l.setAttribute("aria-label",u))}}ye(this,Kt,AP).call(this,0),fe(this,fl,!0),O(this,Gi).firstChild.focus({focusVisible:!0}),e.preventDefault(),e.stopImmediatePropagation()}_resizeWithKeyboard(e,n){O(this,fl)&&ye(this,Kt,PP).call(this,O(this,Hy),{movementX:e,movementY:n})}_stopResizingWithKeyboard(){ye(this,Kt,Xg).call(this),this.div.focus()}select(){var e,n;if(this.makeResizable(),(e=this.div)==null||e.classList.add("selectedEditor"),!O(this,gr)){this.addEditToolbar().then(()=>{var i,r;(i=this.div)!=null&&i.classList.contains("selectedEditor")&&((r=O(this,gr))==null||r.show())});return}(n=O(this,gr))==null||n.show()}unselect(){var e,n,i,r;(e=O(this,Gi))==null||e.classList.add("hidden"),(n=this.div)==null||n.classList.remove("selectedEditor"),(i=this.div)!=null&&i.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus({preventScroll:!0}),(r=O(this,gr))==null||r.hide()}updateParams(e,n){}disableEditing(){}enableEditing(){}enterInEditMode(){}getImageForAltText(){return null}get contentDiv(){return this.div}get isEditing(){return O(this,zy)}set isEditing(e){fe(this,zy,e),this.parent&&(e?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}
165setAspectRatio(e,n){fe(this,Iu,!0);const i=e/n,{style:r}=this.div;r.aspectRatio=i,r.height="auto"}static get MIN_SIZE(){return 16}static canCreateNewEmptyEditor(){return!0}get telemetryInitialData(){return{action:"added"}}get telemetryFinalData(){return null}_reportTelemetry(e,n=!1){if(n){O(this,ea)||fe(this,ea,new Map);const{action:i}=e;let r=O(this,ea).get(i);r&&clearTimeout(r),r=setTimeout(()=>{this._reportTelemetry(e),O(this,ea).delete(i),O(this,ea).size===0&&fe(this,ea,null)},jn._telemetryTimeout),O(this,ea).set(i,r);return}e.type||(e.type=this.editorType),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:e}})}show(e=this._isVisible){this.div.classList.toggle("hidden",!e),this._isVisible=e}enable(){this.div&&(this.div.tabIndex=0),fe(this,_m,!1)}disable(){this.div&&(this.div.tabIndex=-1),fe(this,_m,!0)}renderAnnotationElement(e){let n=e.container.querySelector(".annotationContent");if(!n)n=document.createElement("div"),n.classList.add("annotationContent",this.editorType),e.container.prepend(n);else if(n.nodeName==="CANVAS"){const i=n;n=document.createElement("div"),n.classList.add("annotationContent",this.editorType),i.before(n)}return n}resetAnnotationElement(e){const{firstChild:n}=e.container;n.nodeName==="DIV"&&n.classList.contains("annotationContent")&&n.remove()}};_u=new WeakMap,Da=new WeakMap,fr=new WeakMap,_m=new WeakMap,Iu=new WeakMap,Gi=new WeakMap,Ru=new WeakMap,Im=new WeakMap,Rm=new WeakMap,gr=new WeakMap,Hy=new WeakMap,Ou=new WeakMap,Fc=new WeakMap,zy=new WeakMap,Lu=new WeakMap,fl=new WeakMap,yo=new WeakMap,Om=new WeakMap,Lm=new WeakMap,ea=new WeakMap,Vy=new WeakMap,k1=new WeakMap,Kt=new WeakSet,SP=function([e,n],i,r){[i,r]=this.screenToPageTranslation(i,r),this.x+=i/e,this.y+=r/n,this.fixAndSetPosition()},Uy=new WeakSet,CP=function(e,n,i){switch(i){case 90:return[n,-e];case 180:return[-e,-n];case 270:return[-n,e];default:return[e,n]}},jP=function(e){switch(e){case 90:{const[n,i]=this.pageDimensions;return[0,-n/i,i/n,0]}case 180:return[-1,0,0,-1];case 270:{const[n,i]=this.pageDimensions;return[0,n/i,-i/n,0]}default:return[1,0,0,1]}},f8=function(){if(O(this,Gi))return;fe(this,Gi,document.createElement("div")),O(this,Gi).classList.add("resizers");const e=this._willKeepAspectRatio?["topLeft","topRight","bottomRight","bottomLeft"]:["topLeft","topMiddle","topRight","middleRight","bottomRight","bottomMiddle","bottomLeft","middleLeft"],n=this._uiManager._signal;for(const i of e){const r=document.createElement("div");O(this,Gi).append(r),r.classList.add("resizer",i),r.setAttribute("data-resizer-name",i),r.addEventListener("pointerdown",ye(this,Kt,g8).bind(this,i),{signal:n}),r.addEventListener("contextmenu",ds,{signal:n}),r.tabIndex=-1}this.div.prepend(O(this,Gi))},g8=function(e,n){var w;n.preventDefault();const{isMac:i}=is.platform;if(n.button!==0||n.ctrlKey&&i)return;(w=O(this,fr))==null||w.toggle(!1);const r=ye(this,Kt,PP).bind(this,e),s=this._isDraggable;this._isDraggable=!1;const a=this._uiManager._signal,l={passive:!0,capture:!0,signal:a};this.parent.togglePointerEvents(!1),window.addEventListener("pointermove",r,l),window.addEventListener("contextmenu",ds,{signal:a});const c=this.x,d=this.y,u=this.width,h=this.height,p=this.parent.div.style.cursor,y=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(n.target).cursor;const m=()=>{var k;this.parent.togglePointerEvents(!0),(k=O(this,fr))==null||k.toggle(!0),this._isDraggable=s,window.removeEventListener("pointerup",m),window.removeEventListener("blur",m),window.removeEventListener("pointermove",r,l),window.removeEventListener("contextmenu",ds),this.parent.div.style.cursor=p,this.div.style.cursor=y,ye(this,Kt,TP).call(this,c,d,u,h)};window.addEventListener("pointerup",m,{signal:a}),window.addEventListener("blur",m,{signal:a})},TP=function(e,n,i,r){const s=this.x,a=this.y,l=this.width,c=this.height;s===e&&a===n&&l===i&&c===r||this.addCommands({cmd:()=>{this.width=l,this.height=c,this.x=s,this.y=a;const[d,u]=this.parentDimensions;this.setDims(d*l,u*c),this.fixAndSetPosition()},undo:()=>{this.width=i,this.height=r,this.x=e,this.y=n;const[d,u]=this.parentDimensions;this.setDims(d*i,u*r),this.fixAndSetPosition()},mustExec:!0})}
165,PP=function(e,n){const[i,r]=this.parentDimensions,s=this.x,a=this.y,l=this.width,c=this.height,d=jn.MIN_SIZE/i,u=jn.MIN_SIZE/r,h=P=>Math.round(P*1e4)/1e4,p=ye(this,Kt,jP).call(this,this.rotation),y=(P,C)=>[p[0]*P+p[2]*C,p[1]*P+p[3]*C],m=ye(this,Kt,jP).call(this,360-this.rotation),w=(P,C)=>[m[0]*P+m[2]*C,m[1]*P+m[3]*C];let k,b,x=!1,v=!1;switch(e){case"topLeft":x=!0,k=(P,C)=>[0,0],b=(P,C)=>[P,C];break;case"topMiddle":k=(P,C)=>[P/2,0],b=(P,C)=>[P/2,C];break;case"topRight":x=!0,k=(P,C)=>[P,0],b=(P,C)=>[0,C];break;case"middleRight":v=!0,k=(P,C)=>[P,C/2],b=(P,C)=>[0,C/2];break;case"bottomRight":x=!0,k=(P,C)=>[P,C],b=(P,C)=>[0,0];break;case"bottomMiddle":k=(P,C)=>[P/2,C],b=(P,C)=>[P/2,0];break;case"bottomLeft":x=!0,k=(P,C)=>[0,C],b=(P,C)=>[P,0];break;case"middleLeft":v=!0,k=(P,C)=>[0,C/2],b=(P,C)=>[P,C/2];break}const E=k(l,c),N=b(l,c);let S=y(...N);const _=h(s+S[0]),$=h(a+S[1]);let V=1,I=1,[A,L]=this.screenToPageTranslation(n.movementX,n.movementY);if([A,L]=w(A/i,L/r),x){const P=Math.hypot(l,c);V=I=Math.max(Math.min(Math.hypot(N[0]-E[0]-A,N[1]-E[1]-L)/P,1/l,1/c),d/l,u/c)}else v?V=Math.max(d,Math.min(1,Math.abs(N[0]-E[0]-A)))/l:I=Math.max(u,Math.min(1,Math.abs(N[1]-E[1]-L)))/c;const T=h(l*V),g=h(c*I);S=y(...b(T,g));const f=_-S[0],j=$-S[1];this.width=T,this.height=g,this.x=f,this.y=j,this.setDims(i*T,r*g),this.fixAndSetPosition()},EP=function(e){const{isMac:n}=is.platform;e.ctrlKey&&!n||e.shiftKey||e.metaKey&&n?this.parent.toggleSelected(this):this.parent.setSelected(this)},x8=function(e){const n=this._uiManager.isSelected(this);this._uiManager.setUpDragSession();let i,r;const s=this._uiManager._signal;n&&(this.div.classList.add("moving"),i={passive:!0,capture:!0,signal:s},fe(this,Om,e.clientX),fe(this,Lm,e.clientY),r=l=>{const{clientX:c,clientY:d}=l,[u,h]=this.screenToPageTranslation(c-O(this,Om),d-O(this,Lm));fe(this,Om,c),fe(this,Lm,d),this._uiManager.dragSelectedEditors(u,h)},window.addEventListener("pointermove",r,i));const a=()=>{window.removeEventListener("pointerup",a),window.removeEventListener("blur",a),n&&(this.div.classList.remove("moving"),window.removeEventListener("pointermove",r,i)),fe(this,Ou,!1),this._uiManager.endDragSession()||ye(this,Kt,EP).call(this,e)};window.addEventListener("pointerup",a,{signal:s}),window.addEventListener("blur",a,{signal:s})},y8=function(e){jn._resizerKeyboardManager.exec(this,e)},b8=function(e){var n;O(this,fl)&&((n=e.relatedTarget)==null?void 0:n.parentNode)!==O(this,Gi)&&ye(this,Kt,Xg).call(this)},v8=function(e){fe(this,Hy,O(this,fl)?e:"")},AP=function(e){if(O(this,Da))for(const n of O(this,Da))n.tabIndex=e},Xg=function(){if(fe(this,fl,!1),ye(this,Kt,AP).call(this,-1),O(this,Ru)){const{savedX:e,savedY:n,savedWidth:i,savedHeight:r}=O(this,Ru);ye(this,Kt,TP).call(this,e,n,i,r),fe(this,Ru,null)}},xe(jn,Uy),Tt(jn,"_borderLineWidth",-1),Tt(jn,"_colorManager",new gP),Tt(jn,"_zIndex",1),Tt(jn,"_telemetryTimeout",1e3);let yn=jn;class jce extends yn{constructor(e){super(e),this.annotationElementId=e.annotationElementId,this.deleted=!0}serialize(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex}}}const RO=3285377520,Xs=4294901760,io=65535;class w8{constructor(e){this.h1=e?e&4294967295:RO,this.h2=e?e&4294967295:RO}update(e){let n,i;if(typeof e=="string"){n=new Uint8Array(e.length*2),i=0;for(let w=0,k=e.length;w<k;w++){const b=e.charCodeAt(w);b<=255?n[i++]=b:(n[i++]=b>>>8,n[i++]=b&255)}}else if(ArrayBuffer.isView(e))n=e.slice(),i=n.byteLength;else throw new Error("Invalid data format, must be a string or TypedArray.");const r=i>>2,s=i-r*4,a=new Uint32Array(n.buffer,0,r);let l=0,c=0,d=this.h1,u=this.h2;const h=3432918353,p=461845907,y=h&io,m=p&io;for(let w=0;w<r;w++)w&1?(l=a[w],l=l*h&Xs|l*y&io,l=l<<15|l>>>17,l=l*p&Xs|l*m&io,d^=l,d=d<<13|d>>>19,d=d*5+3864292196):(c=a[w],c=c*h&Xs|c*y&io,c=c<<15|c>>>17,c=c*p&Xs|c*m&io,u^=c,u=u<<13|u>>>19,u=u*5+3864292196);switch(l=0,s){case 3:l^=n[r*4+2]<<16;case 2:l^=n[r*4+1]<<8;case 1:l^=n[r*4],l=l*h&Xs|l*y&io,l=l<<15|l>>>17,l=l*p&Xs|l*m&io,r&1?d^=l:u^=l}this.h1=d,this.h2=u}hexdigest(){let e=this.h1,n=this.h2;return e^=n>>>1,e=e*3981806797&Xs|e*36045&io,n=n*4283543511&Xs|((n<<16|e>>>16)*2950163797&Xs)>>>16,e^=n>>>1,e=e*444984403&Xs|e*60499&io,n=n*3301882366&Xs|((n<<16|e>>>16)*3120437893&Xs)>>>16,e^=n>>>1,(e>>>0).toString(16).padStart(8,"0")+(n>>>0).toString(16).padStart(8,"0")}}const NP=Object.freeze({map:null,hash:"",transfer:void 0});var Fu,qi,S1,k8;class NM{constructor(){xe(this,S1);xe(this,Fu,!1);xe(this,qi,new Map);this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(e,n){const i=O(this,qi).get(e);return i===void 0?n:Object.assign(n,i)}getRawValue(e){return O(this,qi).get(e)}remove(e){if(O(this,qi).delete(e),O(this,qi).size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function"){for(const n of O(this,qi).values())if(n instanceof yn)return;this.onAnnotationEditor(null)}}setValue(e,n){const i=O(this,qi).get(e);let r=!1;if(i!==void 0)for(const[s,a]of Object.entries(n))i[s]!==a&&(r=!0,i[s]=a);else r=!0,O(this,qi).set(e,n);r&&ye(this,S1,k8).call(this),n instanceof yn&&typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(n.constructor._type)}has(e){return O(this,qi).has(e)}getAll(){return O(this,qi).size>0?SM(O(this,qi)):null}setAll(e){for(const[n,i]of Object.entries(e))this.setValue(n,i)}get size(){return O(this,qi).size}resetModified(){O(this,Fu)&&(fe(this,Fu,!1),typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new S8(this)}get serializable(){if(O(this,qi).size===0)return NP;const e=new Map,n=new w8,i=[],r=Object.create(null);let s=!1;for(const[a,l]of O(this,qi)){const c=l instanceof yn?l.serialize(!1,r):l;c&&(e.set(a,c),n.update(`${a}:${JSON.stringify(c)}`),s||(s=!!c.bitmap))}if(s)for(const a of e.values())a.bitmap&&i.push(a.bitmap);return e.size>0?{map:e,hash:n.hexdigest(),transfer:i}:NP}get editorStats(){let e=null;const n=new Map;for(const i of O(this,qi).values()){if(!(i instanceof yn))continue;const r=i.telemetryFinalData;if(!r)continue;const{type:s}=r;n.has(s)||n.set(s,Object.getPrototypeOf(i).constructor),e||(e=Object.create(null));const a=e[s]||(e[s]=new Map);for(const[l,c]of Object.entries(r)){if(l==="type")continue;let d=a.get(l);d||(d=new Map,a.set(l,d));const u=d.get(c)??0;d.set(c,u+1)}}for(const[i,r]of n)e[i]=r.computeTelemetryFinalData(e[i]);return e}}Fu=new WeakMap,qi=new WeakMap,S1=new WeakSet,k8=function(){O(this,Fu)||(fe(this,Fu,!0),typeof this.onSetModified=="function"&&this.onSetModified())};var Wy;class S8 extends NM{constructor(n){super();xe(this,Wy);const{map:i,hash:r,transfer:s}=n.serializable,a=structuredClone(i,s?{transfer:s}:null);fe(this,Wy,{map:a,hash:r,transfer:s})}get print(){kn("Should not call PrintAnnotationStorage.print")}get serializable(){return O(this,Wy)}}Wy=new WeakMap;var Fm;class Tce{constructor({ownerDocument:e=globalThis.document,styleElement:n=null}){xe(this,Fm,new Set);this._document=e,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(e){this.nativeFontFaces.add(e),this._document.fonts.add(e)}removeNativeFontFace(e){this.nativeFontFaces.delete(e),this._document.fonts.delete(e)}insertRule(e){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const n=this.styleElement.sheet;n.insertRule(e,n.cssRules.length)}clear(){for(const e of this.nativeFontFaces)this._document.fonts.delete(e);this.nativeFontFaces.clear(),O(this,Fm).clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont({systemFontInfo:e,_inspectFont:n}
165){if(!(!e||O(this,Fm).has(e.loadedName))){if(Pi(!this.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){const{loadedName:i,src:r,style:s}=e,a=new FontFace(i,r,s);this.addNativeFontFace(a);try{await a.load(),O(this,Fm).add(i),n==null||n(e)}catch{Ut(`Cannot load system font: ${e.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(a)}return}kn("Not implemented: loadSystemFont without the Font Loading API.")}}async bind(e){if(e.attached||e.missingFile&&!e.systemFontInfo)return;if(e.attached=!0,e.systemFontInfo){await this.loadSystemFont(e);return}if(this.isFontLoadingAPISupported){const i=e.createNativeFontFace();if(i){this.addNativeFontFace(i);try{await i.loaded}catch(r){throw Ut(`Failed to load font '${i.family}': '${r}'.`),e.disableFontFace=!0,r}}return}const n=e.createFontFaceRule();if(n){if(this.insertRule(n),this.isSyncFontLoadingSupported)return;await new Promise(i=>{const r=this._queueLoadingCallback(i);this._prepareFontLoadEvent(e,r)})}}get isFontLoadingAPISupported(){var n;const e=!!((n=this._document)!=null&&n.fonts);return rn(this,"isFontLoadingAPISupported",e)}get isSyncFontLoadingSupported(){let e=!1;return(br||typeof navigator<"u"&&typeof(navigator==null?void 0:navigator.userAgent)=="string"&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(e=!0),rn(this,"isSyncFontLoadingSupported",e)}_queueLoadingCallback(e){function n(){for(Pi(!r.done,"completeRequest() cannot be called twice."),r.done=!0;i.length>0&&i[0].done;){const s=i.shift();setTimeout(s.callback,0)}}const{loadingRequests:i}=this,r={done:!1,complete:n,callback:e};return i.push(r),r}get _loadTestFont(){const e=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return rn(this,"_loadTestFont",e)}_prepareFontLoadEvent(e,n){function i(E,N){return E.charCodeAt(N)<<24|E.charCodeAt(N+1)<<16|E.charCo
165deAt(N+2)<<8|E.charCodeAt(N+3)&255}function r(E,N,S,_){const $=E.substring(0,N),V=E.substring(N+S);return $+_+V}let s,a;const l=this._document.createElement("canvas");l.width=1,l.height=1;const c=l.getContext("2d");let d=0;function u(E,N){if(++d>30){Ut("Load test font never loaded."),N();return}if(c.font="30px "+E,c.fillText(".",0,20),c.getImageData(0,0,1,1).data[3]>0){N();return}setTimeout(u.bind(null,E,N))}const h=`lt${Date.now()}${this.loadTestFontId++}`;let p=this._loadTestFont;p=r(p,976,h.length,h);const m=16,w=1482184792;let k=i(p,m);for(s=0,a=h.length-3;s<a;s+=4)k=k-w+i(h,s)|0;s<h.length&&(k=k-w+i(h+"XXX",s)|0),p=r(p,m,4,cce(k));const b=`url(data:font/opentype;base64,${btoa(p)});`,x=`@font-face {font-family:"${h}";src:${b}}`;this.insertRule(x);const v=this._document.createElement("div");v.style.visibility="hidden",v.style.width=v.style.height="10px",v.style.position="absolute",v.style.top=v.style.left="0px";for(const E of[e.loadedName,h]){const N=this._document.createElement("span");N.textContent="Hi",N.style.fontFamily=E,v.append(N)}this._document.body.append(v),u(h,()=>{v.remove(),n.complete()})}}Fm=new WeakMap;class Pce{constructor(e,{disableFontFace:n=!1,inspectFont:i=null}){this.compiledGlyphs=Object.create(null);for(const r in e)this[r]=e[r];this.disableFontFace=n===!0,this._inspectFont=i}createNativeFontFace(){var n;if(!this.data||this.disableFontFace)return null;let e;if(!this.cssFontInfo)e=new FontFace(this.loadedName,this.data,{});else{const i={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(i.style=`oblique ${this.cssFontInfo.italicAngle}deg`),e=new FontFace(this.cssFontInfo.fontFamily,this.data,i)}return(n=this._inspectFont)==null||n.call(this,this),e}createFontFaceRule(){var r;if(!this.data||this.disableFontFace)return null;const e=U$(this.data),n=`url(data:${this.mimetype};base64,${btoa(e)});`;let i;if(!this.cssFontInfo)i=`@font-face {font-family:"${this.loadedName}";src:${n}}`;else{let s=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(s+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),i=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${s}src:${n}}`}return(r=this._inspectFont)==null||r.call(this,this,n),i}getPathGenerator(e,n){if(this.compiledGlyphs[n]!==void 0)return this.compiledGlyphs[n];let i;try{i=e.get(this.loadedName+"_path_"+n)}catch(s){Ut(`getPathGenerator - ignoring character: "${s}".`)}if(!Array.isArray(i)||i.length===0)return this.compiledGlyphs[n]=function(s,a){};const r=[];for(let s=0,a=i.length;s<a;)switch(i[s++]){case Yo.BEZIER_CURVE_TO:{const[l,c,d,u,h,p]=i.slice(s,s+6);r.push(y=>y.bezierCurveTo(l,c,d,u,h,p)),s+=6}break;case Yo.MOVE_TO:{const[l,c]=i.slice(s,s+2);r.push(d=>d.moveTo(l,c)),s+=2}break;case Yo.LINE_TO:{const[l,c]=i.slice(s,s+2);r.push(d=>d.lineTo(l,c)),s+=2}break;case Yo.QUADRATIC_CURVE_TO:{const[l,c,d,u]=i.slice(s,s+4);r.push(h=>h.quadraticCurveTo(l,c,d,u)),s+=4}break;case Yo.RESTORE:r.push(l=>l.restore());break;case Yo.SAVE:r.push(l=>l.save());break;case Yo.SCALE:Pi(r.length===2,"Scale command is only valid at the third position.");break;case Yo.TRANSFORM:{const[l,c,d,u,h,p]=i.slice(s,s+6);r.push(y=>y.transform(l,c,d,u,h,p)),s+=6}break;case Yo.TRANSLATE:{const[l,c]=i.slice(s,s+2);r.push(d=>d.translate(l,c)),s+=2}break}return this.compiledGlyphs[n]=function(a,l){r[0](a),r[1](a),a.scale(l,-l);for(let c=2,d=r.length;c<d;c++)r[c](a)}}}if(br){var MP=Promise.withResolvers(),Sx=null;(async()=>{const e=await k0(()=>import("./__vite-browser-external-BIHI7g3E.js"),[]),n=await k0(()=>import("./__vite-browser-external-BIHI7g3E.js"),[]),i=await k0(()=>import("./__vite-browser-external-BIHI7g3E.js"),[]),r=await k0(()=>import("./__vite-browser-external-BIHI7g3E.js"),[]);let s,a;return new Map(Object.entries({fs:e,http:n,https:i,url:r,canvas:s,path2d:a}))})().then(e=>{Sx=e,MP.resolve()},e=>{Ut(`loadPackages: ${e}`),Sx=new Map,MP.resolve()})}class Vo{static get promise(){return MP.promise}static get(e){return Sx==null?void 0:Sx.get(e)}}const C8=function(t){return Vo.get("fs").promises.readFile(t).then(n=>new Uint8Array(n))};class Ece extends JS{}class Ace extends n1{_createCanvas(e,n){return Vo.get("canvas").createCanvas(e,n)}}class Nce extends QS{_fetchData(e,n){return C8(e).then(i=>({cMapData:i,compressionType:n}))}}class Mce extends ZS{_fetchData(e){return C8(e)}}const Dr={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function DP(t,e){if(!e)return;const n=e[2]-e[0],i=e[3]-e[1],r=new Path2D;r.rect(e[0],e[1],n,i),t.clip(r)}class vv{constructor(){this.constructor===vv&&kn("Cannot initialize BaseShadingPattern.")}getPattern(){kn("Abstract method `getPattern` called.")}}class Dce extends vv{constructor(e){super(),this._type=e[1],this._bbox=e[2],this._colorStops=e[3],this._p0=e[4],this._p1=e[5],this._r0=e[6],this._r1=e[7],this.matrix=null}_createGradient(e){let n;this._type==="axial"?n=e.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(n=e.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const i of this._colorStops)n.addColorStop(i[0],i[1]);return n}getPattern(e,n,i,r){let s;if(r===Dr.STROKE||r===Dr.FILL){const a=n.current.getClippedPathBoundingBox(r,Un(e))||[0,0,0,0],l=Math.ceil(a[2]-a[0])||1,c=Math.ceil(a[3]-a[1])||1,d=n.cachedCanvases.getCanvas("pattern",l,c,!0),u=d.context;u.clearRect(0,0,u.canvas.width,u.canvas.height),u.beginPath(),u.rect(0,0,u.canvas.width,u.canvas.height),u.translate(-a[0],-a[1]),i=ut.transform(i,[1,0,0,1,a[0],a[1]]),u.transform(...n.baseTransform),this.matrix&&u.transform(...this.matrix
165),DP(u,this._bbox),u.fillStyle=this._createGradient(u),u.fill(),s=e.createPattern(d.canvas,"no-repeat");const h=new DOMMatrix(i);s.setTransform(h)}else DP(e,this._bbox),s=this._createGradient(e);return s}}function O2(t,e,n,i,r,s,a,l){const c=e.coords,d=e.colors,u=t.data,h=t.width*4;let p;c[n+1]>c[i+1]&&(p=n,n=i,i=p,p=s,s=a,a=p),c[i+1]>c[r+1]&&(p=i,i=r,r=p,p=a,a=l,l=p),c[n+1]>c[i+1]&&(p=n,n=i,i=p,p=s,s=a,a=p);const y=(c[n]+e.offsetX)*e.scaleX,m=(c[n+1]+e.offsetY)*e.scaleY,w=(c[i]+e.offsetX)*e.scaleX,k=(c[i+1]+e.offsetY)*e.scaleY,b=(c[r]+e.offsetX)*e.scaleX,x=(c[r+1]+e.offsetY)*e.scaleY;if(m>=x)return;const v=d[s],E=d[s+1],N=d[s+2],S=d[a],_=d[a+1],$=d[a+2],V=d[l],I=d[l+1],A=d[l+2],L=Math.round(m),T=Math.round(x);let g,f,j,P,C,D,M,z;for(let J=L;J<=T;J++){if(J<k){const ce=J<m?0:(m-J)/(m-k);g=y-(y-w)*ce,f=v-(v-S)*ce,j=E-(E-_)*ce,P=N-(N-$)*ce}else{let ce;J>x?ce=1:k===x?ce=0:ce=(k-J)/(k-x),g=w-(w-b)*ce,f=S-(S-V)*ce,j=_-(_-I)*ce,P=$-($-A)*ce}let F;J<m?F=0:J>x?F=1:F=(m-J)/(m-x),C=y-(y-b)*F,D=v-(v-V)*F,M=E-(E-I)*F,z=N-(N-A)*F;const q=Math.round(Math.min(g,C)),U=Math.round(Math.max(g,C));let Q=h*J+q*4;for(let ce=q;ce<=U;ce++)F=(g-ce)/(g-C),F<0?F=0:F>1&&(F=1),u[Q++]=f-(f-D)*F|0,u[Q++]=j-(j-M)*F|0,u[Q++]=P-(P-z)*F|0,u[Q++]=255}}function _ce(t,e,n){const i=e.coords,r=e.colors;let s,a;switch(e.type){case"lattice":const l=e.verticesPerRow,c=Math.floor(i.length/l)-1,d=l-1;for(s=0;s<c;s++){let u=s*l;for(let h=0;h<d;h++,u++)O2(t,n,i[u],i[u+1],i[u+l],r[u],r[u+1],r[u+l]),O2(t,n,i[u+l+1],i[u+1],i[u+l],r[u+l+1],r[u+1],r[u+l])}break;case"triangles":for(s=0,a=i.length;s<a;s+=3)O2(t,n,i[s],i[s+1],i[s+2],r[s],r[s+1],r[s+2]);break;default:throw new Error("illegal figure")}}class Ice extends vv{constructor(e){super(),this._coords=e[2],this._colors=e[3],this._figures=e[4],this._bounds=e[5],this._bbox=e[7],this._background=e[8],this.matrix=null}_createMeshCanvas(e,n,i){const l=Math.floor(this._bounds[0]),c=Math.floor(this._bounds[1]),d=Math.ceil(this._bounds[2])-l,u=Math.ceil(this._bounds[3])-c,h=Math.min(Math.ceil(Math.abs(d*e[0]*1.1)),3e3),p=Math.min(Math.ceil(Math.abs(u*e[1]*1.1)),3e3),y=d/h,m=u/p,w={coords:this._coords,colors:this._colors,offsetX:-l,offsetY:-c,scaleX:1/y,scaleY:1/m},k=h+2*2,b=p+2*2,x=i.getCanvas("mesh",k,b,!1),v=x.context,E=v.createImageData(h,p);if(n){const S=E.data;for(let _=0,$=S.length;_<$;_+=4)S[_]=n[0],S[_+1]=n[1],S[_+2]=n[2],S[_+3]=255}for(const S of this._figures)_ce(E,S,w);return v.putImageData(E,2,2),{canvas:x.canvas,offsetX:l-2*y,offsetY:c-2*m,scaleX:y,scaleY:m}}getPattern(e,n,i,r){DP(e,this._bbox);let s;if(r===Dr.SHADING)s=ut.singularValueDecompose2dScale(Un(e));else if(s=ut.singularValueDecompose2dScale(n.baseTransform),this.matrix){const l=ut.singularValueDecompose2dScale(this.matrix);s=[s[0]*l[0],s[1]*l[1]]}const a=this._createMeshCanvas(s,r===Dr.SHADING?null:this._background,n.cachedCanvases);return r!==Dr.SHADING&&(e.setTransform(...n.baseTransform),this.matrix&&e.transform(...this.matrix)),e.translate(a.offsetX,a.offsetY),e.scale(a.scaleX,a.scaleY),e.createPattern(a.canvas,"no-repeat")}}class Rce extends vv{getPattern(){return"hotpink"}}function Oce(t){switch(t[0]){case"RadialAxial":return new Dce(t);case"Mesh":return new Ice(t);case"Dummy":return new Rce}throw new Error(`Unknown IR type: ${t[0]}`)}const OO={COLORED:1,UNCOLORED:2},C1=class C1{constructor(e,n,i,r,s){this.operatorList=e[2],this.matrix=e[3],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.color=n,this.ctx=i,this.canvasGraphicsFactory=r,this.baseTransform=s}createPatternCanvas(e){const n=this.operatorList,i=this.bbox,r=this.xstep,s=this.ystep,a=this.paintType,l=this.tilingType,c=this.color,d=this.canvasGraphicsFactory;KS("TilingType: "+l);const u=i[0],h=i[1],p=i[2],y=i[3],m=ut.singularValueDecompose2dScale(this.matrix),w=ut.singularValueDecompose2dScale(this.baseTransform),k=[m[0]*w[0],m[1]*w[1]],b=this.getSizeAndScale(r,this.ctx.canvas.width,k[0]),x=this.getSizeAndScale(s,this.ctx.canvas.height,k[1]),v=e.cachedCanvases.getCanvas("pattern",b.size,x.size,!0),E=v.context,N=d.createCanvasGraphics(E);N.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(N,a,c);let S=u,_=h,$=p,V=y;return u<0&&(S=0,$+=Math.abs(u)),h<0&&(_=0,V+=Math.abs(h)),E.translate(-(b.scale*S),-(x.scale*_)),N.transform(b.scale,0,0,x.scale,0,0),E.save(),this.clipBbox(N,S,_,$,V),N.baseTransform=Un(N.ctx),N.executeOperatorList(n),N.endDrawing(),{canvas:v.canvas,scaleX:b.scale,scaleY:x.scale,offsetX:S,offsetY:_}}getSizeAndScale(e,n,i){e=Math.abs(e);const r=Math.max(C1.MAX_PATTERN_SIZE,n);let s=Math.ceil(e*i);return s>=r?s=r:i=s/e,{scale:i,size:s}}clipBbox(e,n,i,r,s){const a=r-n,l=s-i;e.ctx.rect(n,i,a,l),e.current.updateRectMinMax(Un(e.ctx),[n,i,r,s]),e.clip(),e.endPath()}setFillAndStrokeStyleToContext(e,n,i){const r=e.ctx,s=e.current;switch(n){case OO.COLORED:const a=this.ctx;r.fillStyle=a.fillStyle,r.strokeStyle=a.strokeStyle,s.fillColor=a.fillStyle,s.strokeColor=a.strokeStyle;break;case OO.UNCOLORED:const l=ut.makeHexColor(i[0],i[1],i[2]);r.fillStyle=l,r.strokeStyle=l,s.fillColor=l,s.strokeColor=l;break;default:throw new lce(`Unsupported paint type: ${n}`)}}getPattern(e,n,i,r){let s=i;r!==Dr.SHADING&&(s=ut.transform(s,n.baseTransform),this.matrix&&(s=ut.transform(s,this.matrix
vendor: 5,288 bytes, line 165
165)));const a=this.createPatternCanvas(n);let l=new DOMMatrix(s);l=l.translate(a.offsetX,a.offsetY),l=l.scale(1/a.scaleX,1/a.scaleY);const c=e.createPattern(a.canvas,"repeat");return c.setTransform(l),c}};Tt(C1,"MAX_PATTERN_SIZE",3e3);let _P=C1;function Lce({src:t,srcPos:e=0,dest:n,width:i,height:r,nonBlackColor:s=4294967295,inverseDecode:a=!1}){const l=is.isLittleEndian?4278190080:255,[c,d]=a?[s,l]:[l,s],u=i>>3,h=i&7,p=t.length;n=new Uint32Array(n.buffer);let y=0;for(let m=0;m<r;m++){for(const k=e+u;e<k;e++){const b=e<p?t[e]:255;n[y++]=b&128?d:c,n[y++]=b&64?d:c,n[y++]=b&32?d:c,n[y++]=b&16?d:c,n[y++]=b&8?d:c,n[y++]=b&4?d:c,n[y++]=b&2?d:c,n[y++]=b&1?d:c}if(h===0)continue;const w=e<p?t[e++]:255;for(let k=0;k<h;k++)n[y++]=w&1<<7-k?d:c}return{srcPos:e,destPos:y}}const LO=16,FO=100,Fce=15,BO=10,$O=1e3,Qr=16;function Bce(t,e){if(t._removeMirroring)throw new Error("Context is already forwarding operations.");t.__originalSave=t.save,t.__originalRestore=t.restore,t.__originalRotate=t.rotate,t.__originalScale=t.scale,t.__originalTranslate=t.translate,t.__originalTransform=t.transform,t.__originalSetTransform=t.setTransform,t.__originalResetTransform=t.resetTransform,t.__originalClip=t.clip,t.__originalMoveTo=t.moveTo,t.__originalLineTo=t.lineTo,t.__originalBezierCurveTo=t.bezierCurveTo,t.__originalRect=t.rect,t.__originalClosePath=t.closePath,t.__originalBeginPath=t.beginPath,t._removeMirroring=()=>{t.save=t.__originalSave,t.restore=t.__originalRestore,t.rotate=t.__originalRotate,t.scale=t.__originalScale,t.translate=t.__originalTranslate,t.transform=t.__originalTransform,t.setTransform=t.__originalSetTransform,t.resetTransform=t.__originalResetTransform,t.clip=t.__originalClip,t.moveTo=t.__originalMoveTo,t.lineTo=t.__originalLineTo,t.bezierCurveTo=t.__originalBezierCurveTo,t.rect=t.__originalRect,t.closePath=t.__originalClosePath,t.beginPath=t.__originalBeginPath,delete t._removeMirroring},t.save=function(){e.save(),this.__originalSave()},t.restore=function(){e.restore(),this.__originalRestore()},t.translate=function(i,r){e.translate(i,r),this.__originalTranslate(i,r)},t.scale=function(i,r){e.scale(i,r),this.__originalScale(i,r)},t.transform=function(i,r,s,a,l,c){e.transform(i,r,s,a,l,c),this.__originalTransform(i,r,s,a,l,c)},t.setTransform=function(i,r,s,a,l,c){e.setTransform(i,r,s,a,l,c),this.__originalSetTransform(i,r,s,a,l,c)},t.resetTransform=function(){e.resetTransform(),this.__originalResetTransform()},t.rotate=function(i){e.rotate(i),this.__originalRotate(i)},t.clip=function(i){e.clip(i),this.__originalClip(i)},t.moveTo=function(n,i){e.moveTo(n,i),this.__originalMoveTo(n,i)},t.lineTo=function(n,i){e.lineTo(n,i),this.__originalLineTo(n,i)},t.bezierCurveTo=function(n,i,r,s,a,l){e.bezierCurveTo(n,i,r,s,a,l),this.__originalBezierCurveTo(n,i,r,s,a,l)},t.rect=function(n,i,r,s){e.rect(n,i,r,s),this.__originalRect(n,i,r,s)},t.closePath=function(){e.closePath(),this.__originalClosePath()},t.beginPath=function(){e.beginPath(),this.__originalBeginPath()}}class $ce{constructor(e){this.canvasFactory=e,this.cache=Object.create(null)}getCanvas(e,n,i){let r;return this.cache[e]!==void 0?(r=this.cache[e],this.canvasFactory.reset(r,n,i)):(r=this.canvasFactory.create(n,i),this.cache[e]=r),r}delete(e){delete this.cache[e]}clear(){for(const e in this.cache){const n=this.cache[e];this.canvasFactory.destroy(n),delete this.cache[e]}}}function S0(t,e,n,i,r,s,a,l,c,d){const[u,h,p,y,m,w]=Un(t);if(h===0&&p===0){const x=a*u+m,v=Math.round(x),E=l*y+w,N=Math.round(E),S=(a+c)*u+m,_=Math.abs(Math.round(S)-v)||1,$=(l+d)*y+w,V=Math.abs(Math.round($)-N)||1;return t.setTransform(Math.sign(u),0,0,Math.sign(y),v,N),t.drawImage(e,n,i,r,s,0,0,_,V),t.setTransform(u,h,p,y,m,w),[_,V]}if(u===0&&y===0){const x=l*p+m,v=Math.round(x),E=a*h+w,N=Math.round(E),S=(l+d)*p+m,_=Math.abs(Math.round(S)-v)||1,$=(a+c)*h+w,V=Math.abs(Math.round($)-N)||1;return t.setTransform(0,Math.sign(h),Math.sign(p),0,v,N),t.drawImage(e,n,i,r,s,0,0,V,_),t.setTransform(u,h,p,y,m,w),[V,_]}t.drawImage(e,n,i,r,s,a,l,c,d);const k=Math.hypot(u,h),b=Math.hypot(p,y);return[k*c,b*d]}function Hce(t){const{width:e,height:n}=t;if(e>$O||n>$O)return null;const i=1e3,r=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),s=e+1;let a=new Uint8Array(s*(n+1)),l,c,d;const u=e+7&-8;let h=new Uint8Array(u*n),p=0;for(const b of t.data){let x=128;for(;x>0;)h[p++]=b&x?0:255,x>>=1}let y=0;for(p=0,h[p]!==0&&(a[0]=1,++y),c=1;c<e;c++)h[p]!==h[p+1]&&(a[c]=h[p]?2:1,++y),p++;for(h[p]!==0&&(a[c]=2,++y),l=1;l<n;l++){p=l*u,d=l*s,h[p-u]!==h[p]&&(a[d]=h[p]?1:8,++y);let b=(h[p]?4:0)+(h[p-u]?8:0);for(c=1;c<e;c++)b=(b>>2)+(h[p+1]?4:0)+(h[p-u+1]?8:0),r[b]&&(a[d+c]=r[b],++y),p++;if(h[p-u]!==h[p]&&(a[d+c]=h[p]?2:4,++y),y>i)return null}for(p=u*(n-1),d=l*s,h[p]!==0&&(a[d]=8,++y),c=1;c<e;c++)h[p]!==h[p+1]&&(a[d+c]=h[p]?4:8,++y),p++;if(h[p]!==0&&(a[d+c]=4,++y),y>i)return null;const m=new Int32Array([0,s,-1,0,-s,0,0,0,1]),w=new Path2D;for(l=0;y&&l<=n;l++){let b=l*s;const x=b+e;for(;b<x&&!a[b];)b++;if(b===x)continue;w.moveTo(b%s,l);const v=b;let E=a[b];do{const N=m[E];do b+=N;while(!a[b]);const S=a[b];S!==5&&S!==10?(E=S,a[b]=0):(E=S&51*E>>4,a[b]&=E>>2|E<<2),w.lineTo(b%s,b/s|0),a[b]||--y}while(v!==b);--l}return h=null,a=null,function(b){b.save(),b.scale(1/e,-1/n),b.translate(0,-n),b.fill(w),b.beginPath(),b.restore(
165)}}class HO{constructor(e,n){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=z$,this.textMatrixScale=1,this.fontMatrix=sP,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=hr.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,e,n])}clone(){const e=Object.create(this);return e.clipBox=this.clipBox.slice(),e}setCurrentPoint(e,n){this.x=e,this.y=n}updatePathMinMax(e,n,i){[n,i]=ut.applyTransform([n,i],e),this.minX=Math.min(this.minX,n),this.minY=Math.min(this.minY,i),this.maxX=Math.max(this.maxX,n),this.maxY=Math.max(this.maxY,i)}updateRectMinMax(e,n){const i=ut.applyTransform(n,e),r=ut.applyTransform(n.slice(2),e),s=ut.applyTransform([n[0],n[3]],e),a=ut.applyTransform([n[2],n[1]],e);this.minX=Math.min(this.minX,i[0],r[0],s[0],a[0]),this.minY=Math.min(this.minY,i[1],r[1],s[1],a[1]),this.maxX=Math.max(this.maxX,i[0],r[0],s[0],a[0]),this.maxY=Math.max(this.maxY,i[1],r[1],s[1],a[1])}updateScalingPathMinMax(e,n){ut.scaleMinMax(e,n),this.minX=Math.min(this.minX,n[0]),this.minY=Math.min(this.minY,n[1]),this.maxX=Math.max(this.maxX,n[2]),this.maxY=Math.max(this.maxY,n[3])}updateCurvePathMinMax(e,n,i,r,s,a,l,c,d,u){const h=ut.bezierBoundingBox(n,i,r,s,a,l,c,d,u);u||this.updateRectMinMax(e,h)}getPathBoundingBox(e=Dr.FILL,n=null){const i=[this.minX,this.minY,this.maxX,this.maxY];if(e===Dr.STROKE){n||kn("Stroke bounding box must include transform.");const r=ut.singularValueDecompose2dScale(n),s=r[0]*this.lineWidth/2,a=r[1]*this.lineWidth/2;i[0]-=s,i[1]-=a,i[2]+=s,i[3]+=a}return i}updateClipFromPath(){const e=ut.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(e||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(e){this.clipBox=e,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(e=Dr.FILL,n=null){return ut.intersect(this.clipBox,this.getPathBoundingBox(e,n))}}function zO(t,e){if(typeof ImageData<"u"&&e instanceof ImageData){t.putImageData(e,0,0);return}const n=e.height,i=e.width,r=n%Qr,s=(n-r)/Qr,a=r===0?s:s+1,l=t.createImageData(i,Qr);let c=0,d;const u=e.data,h=l.data;let p,y,m,w;if(e.kind===fw.GRAYSCALE_1BPP){const k=u.byteLength,b=new Uint32Array(h.buffer,0,h.byteLength>>2),x=b.length,v=i+7>>3,E=4294967295,N=is.isLittleEndian?4278190080:255;for(p=0;p<a;p++){for(m=p<s?Qr:r,d=0,y=0;y<m;y++){const S=k-c;let _=0;const $=S>v?i:S*8-7,V=$&-8;let I=0,A=0;for(;_<V;_+=8)A=u[c++],b[d++]=A&128?E:N,b[d++]=A&64?E:N,b[d++]=A&32?E:N,b[d++]=A&16?E:N,b[d++]=A&8?E:N,b[d++]=A&4?E:N,b[d++]=A&2?E:N,b[d++]=A&1?E:N;for(;_<$;_++)I===0&&(A=u[c++],I=128),b[d++]=A&I?E:N,I>>=1}for(;d<x;)b[d++]=0;t.putImageData(l,0,p*Qr)}}else if(e.kind===fw.RGBA_32BPP){for(y=0,w=i*Qr*4,p=0;p<s;p++)h.set(u.subarray(c,c+w)),c+=w,t.putImageData(l,0,y),y+=Qr;p<a&&(w=i*r*4,h.set(u.subarray(c,c+w)),t.putImageData(l,0,y))}else if(e.kind===fw.RGB_24BPP)for(m=Qr,w=i*m,p=0;p<a;p++){for(p>=s&&(m=r,w=i*m),d=0,y=w;y--;)h[d++]=u[c++],h[d++]=u[c++],h[d++]=u[c++],h[d++]=255;t.putImageData(l,0,p*Qr)}else throw new Error(`bad image kind: ${e.kind}`)}function VO(t,e){if(e.bitmap){t.drawImage(e.bitmap,0,0);return}const n=e.height,i=e.width,r=n%Qr,s=(n-r)/Qr,a=r===0?s:s+1,l=t.createImageData(i,Qr);let c=0;const d=e.data,u=l.data;for(let h=0;h<a;h++){const p=h<s?Qr:r;({srcPos:c}=Lce({src:d,srcPos:c,dest:u,width:i,height:p,nonBlackColor:0})),t.putImageData(l,0,h*Qr)}}function Pg(t,e){const n=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"];for(const i of n)t[i]!==void 0&&(e[i]=t[i]);t.setLineDash!==void 0&&(e.setLineDash(t.getLineDash()),e.lineDashOffset=t.lineDashOffset)}function C0(t){if(t.strokeStyle=t.fillStyle="#000000",t.fillRule="nonzero",t.globalAlpha=1,t.lineWidth=1,t.lineCap="butt",t.lineJoin="miter",t.miterLimit=10,t.globalCompositeOperation="source-over",t.font="10px sans-serif",t.setLineDash!==void 0&&(t.setLineDash([]),t.lineDashOffset=0),!br){const{filter:e}=t;e!=="none"&&e!==""&&(t.filter="none")}}function UO(t,e){if(e)return!0;const n=ut.singularValueDecompose2dScale(t);
165n[0]=Math.fround(n[0]),n[1]=Math.fround(n[1]);const i=Math.fround((globalThis.devicePixelRatio||1)*jd.PDF_TO_CSS_UNITS);return n[0]<=i&&n[1]<=i}const zce=["butt","round","square"],Vce=["miter","round","bevel"],Uce={},WO={};var Pd,IP,RP;const WM=class WM{constructor(e,n,i,r,s,{optionalContentConfig:a,markedContentStack:l=null},c,d){xe(this,Pd);this.ctx=e,this.current=new HO(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=n,this.objs=i,this.canvasFactory=r,this.filterFactory=s,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=l||[],this.optionalContentConfig=a,this.cachedCanvases=new $ce(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=c,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=d,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(e,n=null){return typeof e=="string"?e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e):n}beginDrawing({transform:e,viewport:n,transparency:i=!1,background:r=null}){const s=this.ctx.canvas.width,a=this.ctx.canvas.height,l=this.ctx.fillStyle;if(this.ctx.fillStyle=r||"#ffffff",this.ctx.fillRect(0,0,s,a),this.ctx.fillStyle=l,i){const c=this.cachedCanvases.getCanvas("transparent",s,a);this.compositeCtx=this.ctx,this.transparentCanvas=c.canvas,this.ctx=c.context,this.ctx.save(),this.ctx.transform(...Un(this.compositeCtx))}this.ctx.save(),C0(this.ctx),e&&(this.ctx.transform(...e),this.outputScaleX=e[0],this.outputScaleY=e[0]),this.ctx.transform(...n.transform),this.viewportScale=n.scale,this.baseTransform=Un(this.ctx)}executeOperatorList(e,n,i,r){const s=e.argsArray,a=e.fnArray;let l=n||0;const c=s.length;if(c===l)return l;const d=c-l>BO&&typeof i=="function",u=d?Date.now()+Fce:0;let h=0;const p=this.commonObjs,y=this.objs;let m;for(;;
vendor: 4,694 bytes, line 165
165){if(r!==void 0&&l===r.nextBreakPoint)return r.breakIt(l,i),l;if(m=a[l],m!==ja.dependency)this[m].apply(this,s[l]);else for(const w of s[l]){const k=w.startsWith("g_")?p:y;if(!k.has(w))return k.get(w,i),l}if(l++,l===c)return l;if(d&&++h>BO){if(Date.now()>u)return i(),l;h=0}}}endDrawing(){ye(this,Pd,IP).call(this),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const e of this._cachedBitmapsMap.values()){for(const n of e.values())typeof HTMLCanvasElement<"u"&&n instanceof HTMLCanvasElement&&(n.width=n.height=0);e.clear()}this._cachedBitmapsMap.clear(),ye(this,Pd,RP).call(this)}_scaleImage(e,n){const i=e.width,r=e.height;let s=Math.max(Math.hypot(n[0],n[1]),1),a=Math.max(Math.hypot(n[2],n[3]),1),l=i,c=r,d="prescale1",u,h;for(;s>2&&l>1||a>2&&c>1;){let p=l,y=c;s>2&&l>1&&(p=l>=16384?Math.floor(l/2)-1||1:Math.ceil(l/2),s/=l/p),a>2&&c>1&&(y=c>=16384?Math.floor(c/2)-1||1:Math.ceil(c)/2,a/=c/y),u=this.cachedCanvases.getCanvas(d,p,y),h=u.context,h.clearRect(0,0,p,y),h.drawImage(e,0,0,l,c,0,0,p,y),e=u.canvas,l=p,c=y,d=d==="prescale1"?"prescale2":"prescale1"}return{img:e,paintWidth:l,paintHeight:c}}_createMaskCanvas(e){const n=this.ctx,{width:i,height:r}=e,s=this.current.fillColor,a=this.current.patternFill,l=Un(n);let c,d,u,h;if((e.bitmap||e.data)&&e.count>1){const $=e.bitmap||e.data.buffer;d=JSON.stringify(a?l:[l.slice(0,4),s]),c=this._cachedBitmapsMap.get($),c||(c=new Map,this._cachedBitmapsMap.set($,c));const V=c.get(d);if(V&&!a){const I=Math.round(Math.min(l[0],l[2])+l[4]),A=Math.round(Math.min(l[1],l[3])+l[5]);return{canvas:V,offsetX:I,offsetY:A}}u=V}u||(h=this.cachedCanvases.getCanvas("maskCanvas",i,r),VO(h.context,e));let p=ut.transform(l,[1/i,0,0,-1/r,0,0]);p=ut.transform(p,[1,0,0,1,0,-r]);const[y,m,w,k]=ut.getAxialAlignedBoundingBox([0,0,i,r],p),b=Math.round(w-y)||1,x=Math.round(k-m)||1,v=this.cachedCanvases.getCanvas("fillCanvas",b,x),E=v.context,N=y,S=m;E.translate(-N,-S),E.transform(...p),u||(u=this._scaleImage(h.canvas,Xo(E)),u=u.img,c&&a&&c.set(d,u)),E.imageSmoothingEnabled=UO(Un(E),e.interpolate),S0(E,u,0,0,u.width,u.height,0,0,i,r),E.globalCompositeOperation="source-in";const _=ut.transform(Xo(E),[1,0,0,1,-N,-S]);return E.fillStyle=a?s.getPattern(n,this,_,Dr.FILL):s,E.fillRect(0,0,i,r),c&&!a&&(this.cachedCanvases.delete("fillCanvas"),c.set(d,v.canvas)),{canvas:v.canvas,offsetX:Math.round(N),offsetY:Math.round(S)}}setLineWidth(e){e!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=e,this.ctx.lineWidth=e}setLineCap(e){this.ctx.lineCap=zce[e]}setLineJoin(e){this.ctx.lineJoin=Vce[e]}setMiterLimit(e){this.ctx.miterLimit=e}setDash(e,n){const i=this.ctx;i.setLineDash!==void 0&&(i.setLineDash(e),i.lineDashOffset=n)}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(const[n,i]of e)switch(n){case"LW":this.setLineWidth(i);break;case"LC":this.setLineCap(i);break;case"LJ":this.setLineJoin(i);break;case"ML":this.setMiterLimit(i);break;case"D":this.setDash(i[0],i[1]);break;case"RI":this.setRenderingIntent(i);break;case"FL":this.setFlatness(i);break;case"Font":this.setFont(i[0],i[1]);break;case"CA":this.current.strokeAlpha=i;break;case"ca":this.current.fillAlpha=i,this.ctx.globalAlpha=i;break;case"BM":this.ctx.globalCompositeOperation=i;break;case"SMask":this.current.activeSMask=i?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(i);break}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const e=this.inSMaskMode;this.current.activeSMask&&!e?this.beginSMaskMode():!this.current.activeSMask&&e&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const e=this.ctx.canvas.width,n=this.ctx.canvas.height,i="smaskGroupAt"+this.groupLevel,r=this.cachedCanvases.getCanvas(i,e,n);this.suspendedCtx=this.ctx,this.ctx=r.context;const s=this.ctx;s.setTransform(...Un(this.suspendedCtx)),Pg(this.suspendedCtx,s),Bce(s,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),Pg(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(e){if(!this.current.activeSMask)return;e?(e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.ceil(e[2]),e[3]=Math.ceil(e[3])):e=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const n=this.current.activeSMask,i=this.suspendedCtx;this.composeSMask(i,n,this.ctx,e),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore(
165)}composeSMask(e,n,i,r){const s=r[0],a=r[1],l=r[2]-s,c=r[3]-a;l===0||c===0||(this.genericComposeSMask(n.context,i,l,c,n.subtype,n.backdrop,n.transferMap,s,a,n.offsetX,n.offsetY),e.save(),e.globalAlpha=1,e.globalCompositeOperation="source-over",e.setTransform(1,0,0,1,0,0),e.drawImage(i.canvas,0,0),e.restore())}genericComposeSMask(e,n,i,r,s,a,l,c,d,u,h){let p=e.canvas,y=c-u,m=d-h;if(a){if(y<0||m<0||y+i>p.width||m+r>p.height){const k=this.cachedCanvases.getCanvas("maskExtension",i,r),b=k.context;b.drawImage(p,-y,-m),a.some(x=>x!==0)&&(b.globalCompositeOperation="destination-atop",b.fillStyle=ut.makeHexColor(...a),b.fillRect(0,0,i,r),b.globalCompositeOperation="source-over"),p=k.canvas,y=m=0}else if(a.some(k=>k!==0)){e.save(),e.globalAlpha=1,e.setTransform(1,0,0,1,0,0);const k=new Path2D;k.rect(y,m,i,r),e.clip(k),e.globalCompositeOperation="destination-atop",e.fillStyle=ut.makeHexColor(...a),e.fillRect(y,m,i,r),e.restore()}}n.save(),n.globalAlpha=1,n.setTransform(1,0,0,1,0,0),s==="Alpha"&&l?n.filter=this.filterFactory.addAlphaFilter(l):s==="Luminosity"&&(n.filter=this.filterFactory.addLuminosityFilter(l));const w=new Path2D;w.rect(c,d,i,r),n.clip(w),n.globalCompositeOperation="destination-in",n.drawImage(p,y,m,i,r,c,d,i,r),n.restore()}save(){this.inSMaskMode?(Pg(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const e=this.current;this.stateStack.push(e),this.current=e.clone()}restore(){this.stateStack.length===0&&this.inSMaskMode&&this.endSMaskMode(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),Pg(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(e,n,i,r,s,a){this.ctx.transform(e,n,i,r,s,a),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(e,n,i){const r=this.ctx,s=this.current;let a=s.x,l=s.y,c,d;const u=Un(r),h=u[0]===0&&u[3]===0||u[1]===0&&u[2]===0,p=h?i.slice(0):null;for(let y=0,m=0,w=e.length;y<w;y++)switch(e[y]|0){case ja.rectangle:a=n[m++],l=n[m++];const k=n[m++],b=n[m++],x=a+k,v=l+b;r.moveTo(a,l),k===0||b===0?r.lineTo(x,v):(r.lineTo(x,l),r.lineTo(x,v),r.lineTo(a,v)),h||s.updateRectMinMax(u,[a,l,x,v]),r.closePath();break;case ja.moveTo:a=n[m++],l=n[m++],r.moveTo(a,l),h||s.updatePathMinMax(u,a,l);break;case ja.lineTo:a=n[m++],l=n[m++],r.lineTo(a,l),h||s.updatePathMinMax(u,a,l);break;case ja.curveTo:c=a,d=l,a=n[m+4],l=n[m+5],r.bezierCurveTo(n[m],n[m+1],n[m+2],n[m+3],a,l),s.updateCurvePathMinMax(u,c,d,n[m],n[m+1],n[m+2],n[m+3],a,l,p),m+=6;break;case ja.curveTo2:c=a,d=l,r.bezierCurveTo(a,l,n[m],n[m+1],n[m+2],n[m+3]),s.updateCurvePathMinMax(u,c,d,a,l,n[m],n[m+1],n[m+2],n[m+3],p),a=n[m+2],l=n[m+3],m+=4;break;case ja.curveTo3:c=a,d=l,a=n[m+2],l=n[m+3],r.bezierCurveTo(n[m],n[m+1],a,l,a,l),s.updateCurvePathMinMax(u,c,d,n[m],n[m+1],a,l,a,l,p),m+=4;break;case ja.closePath:r.closePath();break}h&&s.updateScalingPathMinMax(u,p),s.setCurrentPoint(a,l)}closePath(){this.ctx.closePath()}stroke(e=!0){const n=this.ctx,i=this.current.strokeColor;n.globalAlpha=this.current.strokeAlpha,this.contentVisible&&(typeof i=="object"&&(i!=null&&i.getPattern)?(n.save(),n.strokeStyle=i.getPattern(n,this,Xo(n),Dr.STROKE),this.rescaleAndStroke(!1),n.restore()):this.rescaleAndStroke(!0)),e&&this.consumePath(this.current.getClippedPathBoundingBox()),n.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(e=!0){const n=this.ctx,i=this.current.fillColor,r=this.current.patternFill;let s=!1;r&&(n.save(),n.fillStyle=i.getPattern(n,this,Xo(n),Dr.FILL),s=!0);const a=this.current.getClippedPathBoundingBox();this.contentVisible&&a!==null&&(this.pendingEOFill?(n.fill("evenodd"),this.pendingEOFill=!1):n.fill()),s&&n.restore(),e&&this.consumePath(a)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=Uce}eoClip(){this.pendingClip=WO}beginText(){this.current.textMatrix=z$,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const e=this.pendingTextPaths,n=this.ctx;if(e===void 0){n.beginPath();return}n.save(),n.beginPath();for(const i of e)n.setTransform(...i.transform),n.translate(i.x,i.y),i.addToPath(n,i.fontSize);
165n.restore(),n.clip(),n.beginPath(),delete this.pendingTextPaths}setCharSpacing(e){this.current.charSpacing=e}setWordSpacing(e){this.current.wordSpacing=e}setHScale(e){this.current.textHScale=e/100}setLeading(e){this.current.leading=-e}setFont(e,n){var u;const i=this.commonObjs.get(e),r=this.current;if(!i)throw new Error(`Can't find font for ${e}`);if(r.fontMatrix=i.fontMatrix||sP,(r.fontMatrix[0]===0||r.fontMatrix[3]===0)&&Ut("Invalid font matrix for font "+e),n<0?(n=-n,r.fontDirection=-1):r.fontDirection=1,this.current.font=i,this.current.fontSize=n,i.isType3Font)return;const s=i.loadedName||"sans-serif",a=((u=i.systemFontInfo)==null?void 0:u.css)||`"${s}", ${i.fallbackName}`;let l="normal";i.black?l="900":i.bold&&(l="bold");const c=i.italic?"italic":"normal";let d=n;n<LO?d=LO:n>FO&&(d=FO),this.current.fontSizeScale=n/d,this.ctx.font=`${c} ${l} ${d}px ${a}`}setTextRenderingMode(e){this.current.textRenderingMode=e}setTextRise(e){this.current.textRise=e}moveText(e,n){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=n}setLeadingMoveText(e,n){this.setLeading(-n),this.moveText(e,n)}setTextMatrix(e,n,i,r,s,a){this.current.textMatrix=[e,n,i,r,s,a],this.current.textMatrixScale=Math.hypot(e,n),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(e,n,i,r){const s=this.ctx,a=this.current,l=a.font,c=a.textRenderingMode,d=a.fontSize/a.fontSizeScale,u=c&hr.FILL_STROKE_MASK,h=!!(c&hr.ADD_TO_PATH_FLAG),p=a.patternFill&&!l.missingFile;let y;(l.disableFontFace||h||p)&&(y=l.getPathGenerator(this.commonObjs,e)),l.disableFontFace||p?(s.save(),s.translate(n,i),s.beginPath(),y(s,d),r&&s.setTransform(...r),(u===hr.FILL||u===hr.FILL_STROKE)&&s.fill(),(u===hr.STROKE||u===hr.FILL_STROKE)&&s.stroke(),s.restore()):((u===hr.FILL||u===hr.FILL_STROKE)&&s.fillText(e,n,i),(u===hr.STROKE||u===hr.FILL_STROKE)&&s.strokeText(e,n,i)),h&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:Un(s),x:n,y:i,fontSize:d,addToPath:y})}get isFontSubpixelAAEnabled(){const{context:e}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);e.scale(1.5,1),e.fillText("I",0,10);const n=e.getImageData(0,0,10,10).data;let i=!1;for(let r=3;r<n.length;r+=4)if(n[r]>0&&n[r]<255){i=!0;break}return rn(this,"isFontSubpixelAAEnabled",i)}showText(e){const n=this.current,i=n.font;if(i.isType3Font)return this.showType3Text(e);const r=n.fontSize;if(r===0)return;const s=this.ctx,a=n.fontSizeScale,l=n.charSpacing,c=n.wordSpacing,d=n.fontDirection,u=n.textHScale*d,h=e.length,p=i.vertical,y=p?1:-1,m=i.defaultVMetrics,w=r*n.fontMatrix[0],k=n.textRenderingMode===hr.FILL&&!i.disableFontFace&&!n.patternFill;s.save(),s.transform(...n.textMatrix),s.translate(n.x,n.y+n.textRise),d>0?s.scale(u,-1):s.scale(u,1);let b;if(n.patternFill){s.save();const S=n.fillColor.getPattern(s,this,Xo(s),Dr.FILL);b=Un(s),s.restore(),s.fillStyle=S}let x=n.lineWidth;const v=n.textMatrixScale;if(v===0||x===0){const S=n.textRenderingMode&hr.FILL_STROKE_MASK;(S===hr.STROKE||S===hr.FILL_STROKE)&&(x=this.getSinglePixelWidth())}else x/=v;if(a!==1&&(s.scale(a,a),x/=a),s.lineWidth=x,i.isInvalidPDFjsFont){const S=[];let _=0;for(const $ of e)S.push($.unicode),_+=$.width;s.fillText(S.join(""),0,0),n.x+=_*w*u,s.restore(),this.compose();return}let E=0,N;for(N=0;N<h;++N){const S=e[N];if(typeof S=="number"){E+=y*S*r/1e3;continue}let _=!1;const $=(S.isSpace?c:0)+l,V=S.fontChar,I=S.accent;let A,L,T=S.width;if(p){const f=S.vmetric||m,j=-(S.vmetric?f[1]:T*.5)*w,P=f[2]*w;T=f?-f[0]:T,A=j/a,L=(E+P)/a}else A=E/a,L=0;if(i.remeasure&&T>0){const f=s.measureText(V).width*1e3/r*a;if(T<f&&this.isFontSubpixelAAEnabled){const j=T/f;_=!0,s.save(),s.scale(j,1),A/=j}else T!==f&&(A+=(T-f)/2e3*r/a)}if(this.contentVisible&&(S.isInFont||i.missingFile)){if(k&&!I)s.fillText(V,A,L);else if(this.paintChar(V,A,L,b),I){const f=A+r*I.offset.x/a,j=L-r*I.offset.y/a;this.paintChar(I.fontChar,f,j,b)}}const g=p?T*w-$*d:T*w+$*d;E+=g,_&&s.restore()}p?n.y-=E:n.x+=E*u,s.restore(),this.compose()}showType3Text(e){const n=this.ctx,i=this.current,r=i.font,s=i.fontSize,a=i.fontDirection,l=r.vertical?1:-1,c=i.charSpacing,d=i.wordSpacing,u=i.textHScale*a,h=i.fontMatrix||sP,p=e.length,y=i.textRenderingMode===hr.INVISIBLE;let m,w,k,b;if(!(y||s===0)){for(this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,n.save(),n.transform(...i.textMatrix),n.translate(i.x,i.y),n.scale(u,a),m=0;m<p;++m){if(w=e[m],typeof w=="number"){b=l*w*s/1e3,this.ctx.translate(b,0),i.x+=b*u;continue}const x=(w.isSpace?d:0)+c,v=r.charProcOperatorList[w.operatorListId];if(!v){Ut(`Type3 character "${w.operatorListId}" is not available.`);continue}this.contentVisible&&(this.processingType3=w,this.save(),n.scale(s,s),n.transform(...h),this.executeOperatorList(v),this.restore(
vendor: 10,039 bytes, line 165
165)),k=ut.applyTransform([w.width,0],h)[0]*s+x,n.translate(k,0),i.x+=k*u}n.restore(),this.processingType3=null}}setCharWidth(e,n){}setCharWidthAndBounds(e,n,i,r,s,a){this.ctx.rect(i,r,s-i,a-r),this.ctx.clip(),this.endPath()}getColorN_Pattern(e){let n;if(e[0]==="TilingPattern"){const i=e[1],r=this.baseTransform||Un(this.ctx),s={createCanvasGraphics:a=>new WM(a,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};n=new _P(e,i,this.ctx,s,r)}else n=this._getPattern(e[1],e[2]);return n}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(e,n,i){const r=ut.makeHexColor(e,n,i);this.ctx.strokeStyle=r,this.current.strokeColor=r}setFillRGBColor(e,n,i){const r=ut.makeHexColor(e,n,i);this.ctx.fillStyle=r,this.current.fillColor=r,this.current.patternFill=!1}_getPattern(e,n=null){let i;return this.cachedPatterns.has(e)?i=this.cachedPatterns.get(e):(i=Oce(this.getObject(e)),this.cachedPatterns.set(e,i)),n&&(i.matrix=n),i}shadingFill(e){if(!this.contentVisible)return;const n=this.ctx;this.save();const i=this._getPattern(e);n.fillStyle=i.getPattern(n,this,Xo(n),Dr.SHADING);const r=Xo(n);if(r){const{width:s,height:a}=n.canvas,[l,c,d,u]=ut.getAxialAlignedBoundingBox([0,0,s,a],r);this.ctx.fillRect(l,c,d-l,u-c)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){kn("Should not call beginInlineImage")}beginImageData(){kn("Should not call beginImageData")}paintFormXObjectBegin(e,n){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),e&&this.transform(...e),this.baseTransform=Un(this.ctx),n)){const i=n[2]-n[0],r=n[3]-n[1];this.ctx.rect(n[0],n[1],i,r),this.current.updateRectMinMax(Un(this.ctx),n),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(e){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const n=this.ctx;e.isolated||KS("TODO: Support non-isolated groups."),e.knockout&&Ut("Knockout groups not supported.");const i=Un(n);if(e.matrix&&n.transform(...e.matrix),!e.bbox)throw new Error("Bounding box is required.");let r=ut.getAxialAlignedBoundingBox(e.bbox,Un(n));const s=[0,0,n.canvas.width,n.canvas.height];r=ut.intersect(r,s)||[0,0,0,0];const a=Math.floor(r[0]),l=Math.floor(r[1]),c=Math.max(Math.ceil(r[2])-a,1),d=Math.max(Math.ceil(r[3])-l,1);this.current.startNewPathAndClipBox([0,0,c,d]);let u="groupAt"+this.groupLevel;e.smask&&(u+="_smask_"+this.smaskCounter++%2);const h=this.cachedCanvases.getCanvas(u,c,d),p=h.context;p.translate(-a,-l),p.transform(...i),e.smask?this.smaskStack.push({canvas:h.canvas,context:p,offsetX:a,offsetY:l,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(n.setTransform(1,0,0,1,0,0),n.translate(a,l),n.save()),Pg(n,p),this.ctx=p,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(n),this.groupLevel++}endGroup(e){if(!this.contentVisible)return;this.groupLevel--;const n=this.ctx,i=this.groupStack.pop();if(this.ctx=i,this.ctx.imageSmoothingEnabled=!1,e.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const r=Un(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...r);const s=ut.getAxialAlignedBoundingBox([0,0,n.canvas.width,n.canvas.height],r);this.ctx.drawImage(n.canvas,0,0),this.ctx.restore(),this.compose(s)}}beginAnnotation(e,n,i,r,s){if(ye(this,Pd,IP).call(this),C0(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),n){const a=n[2]-n[0],l=n[3]-n[1];if(s&&this.annotationCanvasMap){i=i.slice(),i[4]-=n[0],i[5]-=n[1],n=n.slice(),n[0]=n[1]=0,n[2]=a,n[3]=l;const[c,d]=ut.singularValueDecompose2dScale(Un(this.ctx)),{viewportScale:u}=this,h=Math.ceil(a*this.outputScaleX*u),p=Math.ceil(l*this.outputScaleY*u);this.annotationCanvas=this.canvasFactory.create(h,p);const{canvas:y,context:m}=this.annotationCanvas;this.annotationCanvasMap.set(e,y),this.annotationCanvas.savedCtx=this.ctx,this.ctx=m,this.ctx.save(),this.ctx.setTransform(c,0,0,-d,0,l*d),C0(this.ctx)}else C0(this.ctx),this.ctx.rect(n[0],n[1],a,l),this.ctx.clip(),this.endPath()}this.current=new HO(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...i),this.transform(...r)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),ye(this,Pd,RP).call(this),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(e){if(!this.contentVisible)return;const n=e.count;e=this.getObject(e.data,e),e.count=n;const i=this.ctx,r=this.processingType3;if(r&&(r.compiled===void 0&&(r.compiled=Hce(e)),r.compiled)){r.compiled(i);return}const s=this._createMaskCanvas(e),a=s.canvas;i.save(),i.setTransform(1,0,0,1,0,0),i.drawImage(a,s.offsetX,s.offsetY),i.restore(),this.compose()}paintImageMaskXObjectRepeat(e,n,i=0,r=0,s,a){if(!this.contentVisible)return;e=this.getObject(e.data,e);const l=this.ctx;l.save();const c=Un(l);l.transform(n,i,r,s,0,0);const d=this._createMaskCanvas(e);l.setTransform(1,0,0,1,d.offsetX-c[4],d.offsetY-c[5]);for(let u=0,h=a.length;u<h;u+=2){const p=ut.transform(c,[n,i,r,s,a[u],a[u+1]]),[y,m]=ut.applyTransform([0,0],p);l.drawImage(d.canvas,y,m)}l.restore(),this.compose()}paintImageMaskXObjectGroup(e){if(!this.contentVisible)return;const n=this.ctx,i=this.current.fillColor,r=this.current.patternFill;for(const s of e){const{data:a,width:l,height:c,transform:d}=s,u=this.cachedCanvases.getCanvas("maskCanvas",l,c),h=u.context;h.save();const p=this.getObject(a,s);VO(h,p),h.globalCompositeOperation="source-in",h.fillStyle=r?i.getPattern(h,this,Xo(n),Dr.FILL):i,h.fillRect(0,0,l,c),h.restore(),n.save(),n.transform(...d),n.scale(1,-1),S0(n,u.canvas,0,0,l,c,0,-1,1,1),n.restore()}this.compose()}paintImageXObject(e){if(!this.contentVisible)return;const n=this.getObject(e);if(!n){Ut("Dependent image isn't ready yet");return}this.paintInlineImageXObject(n)}paintImageXObjectRepeat(e,n,i,r){if(!this.contentVisible)return;const s=this.getObject(e);if(!s){Ut("Dependent image isn't ready yet");return}const a=s.width,l=s.height,c=[];for(let d=0,u=r.length;d<u;d+=2)c.push({transform:[n,0,0,i,r[d],r[d+1]],x:0,y:0,w:a,h:l});this.paintInlineImageXObjectGroup(s,c)}applyTransferMapsToCanvas(e){return this.current.transferMaps!=="none"&&(e.filter=this.current.transferMaps,e.drawImage(e.canvas,0,0),e.filter="none"),e.canvas}applyTransferMapsToBitmap(e){if(this.current.transferMaps==="none")return e.bitmap;const{bitmap:n,width:i,height:r}=e,s=this.cachedCanvases.getCanvas("inlineImage",i,r),a=s.context;return a.filter=this.current.transferMaps,a.drawImage(n,0,0),a.filter="none",s.canvas}paintInlineImageXObject(e){if(!this.contentVisible)return;const n=e.width,i=e.height,r=this.ctx;if(this.save(),!br){const{filter:l}=r;l!=="none"&&l!==""&&(r.filter="none")}r.scale(1/n,-1/i);let s;if(e.bitmap)s=this.applyTransferMapsToBitmap(e);else if(typeof HTMLElement=="function"&&e instanceof HTMLElement||!e.data)s=e;else{const c=this.cachedCanvases.getCanvas("inlineImage",n,i).context;zO(c,e),s=this.applyTransferMapsToCanvas(c)}const a=this._scaleImage(s,Xo(r));r.imageSmoothingEnabled=UO(Un(r),e.interpolate),S0(r,a.img,0,0,a.paintWidth,a.paintHeight,0,-i,n,i),this.compose(),this.restore()}paintInlineImageXObjectGroup(e,n){if(!this.contentVisible)return;const i=this.ctx;let r;if(e.bitmap)r=e.bitmap;else{const s=e.width,a=e.height,c=this.cachedCanvases.getCanvas("inlineImage",s,a).context;zO(c,e),r=this.applyTransferMapsToCanvas(c)}for(const s of n)i.save(),i.transform(...s.transform),i.scale(1,-1),S0(i,r,s.x,s.y,s.w,s.h,0,-1,1,1),i.restore();this.compose()}paintSolidColorImageMask(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(e){}markPointProps(e,n){}beginMarkedContent(e){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(e,n){e==="OC"?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(n)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(e){const n=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(e);const i=this.ctx;this.pendingClip&&(n||(this.pendingClip===WO?i.clip("evenodd"):i.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),i.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const e=Un(this.ctx);if(e[1]===0&&e[2]===0)this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(e[0]),Math.abs(e[3]));else{const n=Math.abs(e[0]*e[3]-e[2]*e[1]),i=Math.hypot(e[0],e[2]),r=Math.hypot(e[1],e[3]);this._cachedGetSinglePixelWidth=Math.max(i,r)/n}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(this._cachedScaleForStroking[0]===-1){const{lineWidth:e}=this.current,{a:n,b:i,c:r,d:s}=this.ctx.getTransform();let a,l;if(i===0&&r===0){const c=Math.abs(n),d=Math.abs(s);if(c===d)if(e===0)a=l=1/c;else{const u=c*e;a=l=u<1?1/u:1}else if(e===0)a=1/c,l=1/d;else{const u=c*e,h=d*e;a=u<1?1/u:1,l=h<1?1/h:1}}else{const c=Math.abs(n*s-i*r),d=Math.hypot(n,i),u=Math.hypot(r,s);if(e===0)a=u/c,l=d/c;else{const h=e*c;a=u>h?u/h:1,l=d>h?d/h:1}}this._cachedScaleForStroking[0]=a,this._cachedScaleForStroking[1]=l}return this._cachedScaleForStroking}rescaleAndStroke(e){const{ctx:n}=this,{lineWidth:i}=this.current,[r,s]=this.getScaleForStroking();if(n.lineWidth=i||1,r===1&&s===1){n.stroke();return}const a=n.getLineDash();if(e&&n.save(),n.scale(r,s),a.length>0){const l=Math.max(r,s);n.setLineDash(a.map(c=>c/l)),n.lineDashOffset/=l}
165n.stroke(),e&&n.restore()}isContentVisible(){for(let e=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1;return!0}};Pd=new WeakSet,IP=function(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)},RP=function(){if(this.pageColors){const e=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(e!=="none"){const n=this.ctx.filter;this.ctx.filter=e,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=n}}};let om=WM;for(const t in ja)om.prototype[t]!==void 0&&(om.prototype[ja[t]]=om.prototype[t]);var Gy,qy;class Bl{static get workerPort(){return O(this,Gy)}static set workerPort(e){if(!(typeof Worker<"u"&&e instanceof Worker)&&e!==null)throw new Error("Invalid `workerPort` type.");fe(this,Gy,e)}static get workerSrc(){return O(this,qy)}static set workerSrc(e){if(typeof e!="string")throw new Error("Invalid `workerSrc` type.");fe(this,qy,e)}}Gy=new WeakMap,qy=new WeakMap,xe(Bl,Gy,null),xe(Bl,qy,"");const j0={UNKNOWN:0,DATA:1,ERROR:2},hi={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function ps(t){switch(t instanceof Error||typeof t=="object"&&t!==null||kn('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),t.name){case"AbortException":return new pp(t.message);case"MissingPDFException":return new hp(t.message);case"PasswordException":return new oP(t.message,t.code);case"UnexpectedResponseException":return new YS(t.message,t.status);case"UnknownErrorException":return new lP(t.message,t.details);default:return new lP(t.message,t.toString())}}var Fo,j8,T8,ww;class Jg{constructor(e,n,i){xe(this,Fo);this.sourceName=e,this.targetName=n,this.comObj=i,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=r=>{const s=r.data;if(s.targetName!==this.sourceName)return;if(s.stream){ye(this,Fo,T8).call(this,s);return}if(s.callback){const l=s.callbackId,c=this.callbackCapabilities[l];if(!c)throw new Error(`Cannot resolve callback ${l}`);if(delete this.callbackCapabilities[l],s.callback===j0.DATA)c.resolve(s.data);else if(s.callback===j0.ERROR)c.reject(ps(s.reason));else throw new Error("Unexpected callback case");return}const a=this.actionHandler[s.action];if(!a)throw new Error(`Unknown action from worker: ${s.action}`);if(s.callbackId){const l=this.sourceName,c=s.sourceName;new Promise(function(d){d(a(s.data))}).then(function(d){i.postMessage({sourceName:l,targetName:c,callback:j0.DATA,callbackId:s.callbackId,data:d})},function(d){i.postMessage({sourceName:l,targetName:c,callback:j0.ERROR,callbackId:s.callbackId,reason:ps(d)})});return}if(s.streamId){ye(this,Fo,j8).call(this,s);return}a(s.data)},i.addEventListener("message",this._onComObjOnMessage)}on(e,n){const i=this.actionHandler;if(i[e])throw new Error(`There is already an actionName called "${e}"`);i[e]=n}send(e,n,i){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:n},i)}sendWithPromise(e,n,i){const r=this.callbackId++,s=Promise.withResolvers();this.callbackCapabilities[r]=s;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:r,data:n},i)}catch(a){s.reject(a)}return s.promise}sendWithStream(e,n,i,r){const s=this.streamId++,a=this.sourceName,l=this.targetName,c=this.comObj;return new ReadableStream({start:d=>{const u=Promise.withResolvers();return this.streamControllers[s]={controller:d,startCall:u,pullCall:null,cancelCall:null,isClosed:!1},c.postMessage({sourceName:a,targetName:l,action:e,streamId:s,data:n,desiredSize:d.desiredSize},r),u.promise},pull:d=>{const u=Promise.withResolvers();return this.streamControllers[s].pullCall=u,c.postMessage({sourceName:a,targetName:l,stream:hi.PULL,streamId:s,desiredSize:d.desiredSize}),u.promise},cancel:d=>{Pi(d instanceof Error,"cancel must have a valid reason");const u=Promise.withResolvers();return this.streamControllers[s].cancelCall=u,this.streamControllers[s].isClosed=!0,c.postMessage({sourceName:a,targetName:l,stream:hi.CANCEL,streamId:s,reason:ps(d)}),u.promise}},i)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}Fo=new WeakSet,j8=function(e){const n=e.streamId,i=this.sourceName,r=e.sourceName,s=this.comObj,a=this,l=this.actionHandler[e.action],c={enqueue(d,u=1,h){if(this.isCancelled)return;const p=this.desiredSize;this.desiredSize-=u,p>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),s.postMessage({sourceName:i,targetName:r,stream
165:hi.ENQUEUE,streamId:n,chunk:d},h)},close(){this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:i,targetName:r,stream:hi.CLOSE,streamId:n}),delete a.streamSinks[n])},error(d){Pi(d instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,s.postMessage({sourceName:i,targetName:r,stream:hi.ERROR,streamId:n,reason:ps(d)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};c.sinkCapability.resolve(),c.ready=c.sinkCapability.promise,this.streamSinks[n]=c,new Promise(function(d){d(l(e.data,c))}).then(function(){s.postMessage({sourceName:i,targetName:r,stream:hi.START_COMPLETE,streamId:n,success:!0})},function(d){s.postMessage({sourceName:i,targetName:r,stream:hi.START_COMPLETE,streamId:n,reason:ps(d)})})},T8=function(e){const n=e.streamId,i=this.sourceName,r=e.sourceName,s=this.comObj,a=this.streamControllers[n],l=this.streamSinks[n];switch(e.stream){case hi.START_COMPLETE:e.success?a.startCall.resolve():a.startCall.reject(ps(e.reason));break;case hi.PULL_COMPLETE:e.success?a.pullCall.resolve():a.pullCall.reject(ps(e.reason));break;case hi.PULL:if(!l){s.postMessage({sourceName:i,targetName:r,stream:hi.PULL_COMPLETE,streamId:n,success:!0});break}l.desiredSize<=0&&e.desiredSize>0&&l.sinkCapability.resolve(),l.desiredSize=e.desiredSize,new Promise(function(c){var d;c((d=l.onPull)==null?void 0:d.call(l))}).then(function(){s.postMessage({sourceName:i,targetName:r,stream:hi.PULL_COMPLETE,streamId:n,success:!0})},function(c){s.postMessage({sourceName:i,targetName:r,stream:hi.PULL_COMPLETE,streamId:n,reason:ps(c)})});break;case hi.ENQUEUE:if(Pi(a,"enqueue should have stream controller"),a.isClosed)break;a.controller.enqueue(e.chunk);break;case hi.CLOSE:if(Pi(a,"close should have stream controller"),a.isClosed)break;a.isClosed=!0,a.controller.close(),ye(this,Fo,ww).call(this,a,n);break;case hi.ERROR:Pi(a,"error should have stream controller"),a.controller.error(ps(e.reason)),ye(this,Fo,ww).call(this,a,n);break;case hi.CANCEL_COMPLETE:e.success?a.cancelCall.resolve():a.cancelCall.reject(ps(e.reason)),ye(this,Fo,ww).call(this,a,n);break;case hi.CANCEL:if(!l)break;new Promise(function(c){var d;c((d=l.onCancel)==null?void 0:d.call(l,ps(e.reason)))}).then(function(){s.postMessage({sourceName:i,targetName:r,stream:hi.CANCEL_COMPLETE,streamId:n,success:!0})},function(c){s.postMessage({sourceName:i,targetName:r,stream:hi.CANCEL_COMPLETE,streamId:n,reason:ps(c)})}),l.sinkCapability.reject(ps(e.reason)),l.isCancelled=!0,delete this.streamSinks[n];break;default:throw new Error("Unexpected stream case")}},ww=async function(e,n){var i,r,s;await Promise.allSettled([(i=e.startCall)==null?void 0:i.promise,(r=e.pullCall)==null?void 0:r.promise,(s=e.cancelCall)==null?void 0:s.promise]),delete this.streamControllers[n]};var Bu,Ky;class Wce{constructor({parsedData:e,rawData:n}){xe(this,Bu);xe(this,Ky);fe(this,Bu,e),fe(this,Ky,n)}getRaw(){return O(this,Ky)}get(e){return O(this,Bu).get(e)??null}getAll(){return SM(O(this,Bu))}has(e){return O(this,Bu).has(e)}}Bu=new WeakMap,Ky=new WeakMap;const gc=Symbol("INTERNAL");var Yy,Xy,Jy,Bm;class Gce{constructor(e,{name:n,intent:i,usage:r}){xe(this,Yy,!1);xe(this,Xy,!1);xe(this,Jy,!1);xe(this,Bm,!0);fe(this,Yy,!!(e&ra.DISPLAY)),fe(this,Xy,!!(e&ra.PRINT)),this.name=n,this.intent=i,this.usage=r}get visible(){if(O(this,Jy))return O(this,Bm);if(!O(this,Bm))return!1;const{print:e,view:n}=this.usage;return O(this,Yy)?(n==null?void 0:n.viewState)!=="OFF":O(this,Xy)?(e==null?void 0:e.printState)!=="OFF":!0}_setVisible(e,n,i=!1){e!==gc&&kn("Internal method `_setVisible` called."),fe(this,Jy,i),fe(this,Bm,n)}}Yy=new WeakMap,Xy=new WeakMap,Jy=new WeakMap,Bm=new WeakMap;var Bc,wn,$m,Hm,Qy,OP;class qce{constructor(e,n=ra.DISPLAY){xe(this,Qy);xe(this,Bc,null);xe(this,wn,new Map);xe(this,$m,null);xe(this,Hm,null);if(this.renderingIntent=n,this.name=null,this.creator=null,e!==null){this.name=e.name,this.creator=e.creator,fe(this,Hm,e.order);for(const i of e.groups)O(this,wn).set(i.id,new Gce(n,i));if(e.baseState==="OFF")for(const i of O(this,wn).values())i._setVisible(gc,!1);for(const i of e.on)O(this,wn).get(i)._setVisible(gc,!0);for(const i of e.off)O(this,wn).get(i)._setVisible(gc,!1);fe(this,$m,this.getHash())}}isVisible(e){if(O(this,wn).size===0)return!0;
165if(!e)return KS("Optional content group not defined."),!0;if(e.type==="OCG")return O(this,wn).has(e.id)?O(this,wn).get(e.id).visible:(Ut(`Optional content group not found: ${e.id}`),!0);if(e.type==="OCMD"){if(e.expression)return ye(this,Qy,OP).call(this,e.expression);if(!e.policy||e.policy==="AnyOn"){for(const n of e.ids){if(!O(this,wn).has(n))return Ut(`Optional content group not found: ${n}`),!0;if(O(this,wn).get(n).visible)return!0}return!1}else if(e.policy==="AllOn"){for(const n of e.ids){if(!O(this,wn).has(n))return Ut(`Optional content group not found: ${n}`),!0;if(!O(this,wn).get(n).visible)return!1}return!0}else if(e.policy==="AnyOff"){for(const n of e.ids){if(!O(this,wn).has(n))return Ut(`Optional content group not found: ${n}`),!0;if(!O(this,wn).get(n).visible)return!0}return!1}else if(e.policy==="AllOff"){for(const n of e.ids){if(!O(this,wn).has(n))return Ut(`Optional content group not found: ${n}`),!0;if(O(this,wn).get(n).visible)return!1}return!0}return Ut(`Unknown optional content policy ${e.policy}.`),!0}return Ut(`Unknown group type ${e.type}.`),!0}setVisibility(e,n=!0){const i=O(this,wn).get(e);if(!i){Ut(`Optional content group not found: ${e}`);return}i._setVisible(gc,!!n,!0),fe(this,Bc,null)}setOCGState({state:e,preserveRB:n}){let i;for(const r of e){switch(r){case"ON":case"OFF":case"Toggle":i=r;continue}const s=O(this,wn).get(r);if(s)switch(i){case"ON":s._setVisible(gc,!0);break;case"OFF":s._setVisible(gc,!1);break;case"Toggle":s._setVisible(gc,!s.visible);break}}fe(this,Bc,null)}get hasInitialVisibility(){return O(this,$m)===null||this.getHash()===O(this,$m)}getOrder(){return O(this,wn).size?O(this,Hm)?O(this,Hm).slice():[...O(this,wn).keys()]:null}getGroups(){return O(this,wn).size>0?SM(O(this,wn)):null}getGroup(e){return O(this,wn).get(e)||null}getHash(){if(O(this,Bc)!==null)return O(this,Bc);const e=new w8;for(const[n,i]of O(this,wn))e.update(`${n}:${i.visible}`);return fe(this,Bc,e.hexdigest())}}Bc=new WeakMap,wn=new WeakMap,$m=new WeakMap,Hm=new WeakMap,Qy=new WeakSet,OP=function(e){const n=e.length;if(n<2)return!0;const i=e[0];for(let r=1;r<n;r++){const s=e[r];let a;if(Array.isArray(s))a=ye(this,Qy,OP).call(this,s);else if(O(this,wn).has(s))a=O(this,wn).get(s).visible;else return Ut(`Optional content group not found: ${s}`),!0;switch(i){case"And":if(!a)return!1;break;case"Or":if(a)return!0;break;case"Not":return!a;default:return!0}}return i==="And"};class Kce{constructor(e,{disableRange:n=!1,disableStream:i=!1}){Pi(e,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.');const{length:r,initialData:s,progressiveDone:a,contentDispositionFilename:l}=e;if(this._queuedChunks=[],this._progressiveDone=a,this._contentDispositionFilename=l,(s==null?void 0:s.length)>0){const c=s instanceof Uint8Array&&s.byteLength===s.buffer.byteLength?s.buffer:new Uint8Array(s).buffer;this._queuedChunks.push(c)}this._pdfDataRangeTransport=e,this._isStreamingSupported=!i,this._isRangeSupported=!n,this._contentLength=r,this._fullRequestReader=null,this._rangeReaders=[],e.addRangeListener((c,d)=>{this._onReceiveData({begin:c,chunk:d})}),e.addProgressListener((c,d)=>{this._onProgress({loaded:c,total:d})}),e.addProgressiveReadListener(c=>{this._onReceiveData({chunk:c})}),e.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),e.transportReady()}_onReceiveData({begin:e,chunk:n}){const i=n instanceof Uint8Array&&n.byteLength===n.buffer.byteLength?n.buffer:new Uint8Array(n).buffer;if(e===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(i):this._queuedChunks.push(i);else{const r=this._rangeReaders.some(function(s){return s._begin!==e?!1:(s._enqueue(i),!0)});Pi(r,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){var e;return((e=this._fullRequestReader)==null?void 0:e._loaded)??0}_onProgress(e){var n,i,r,s;e.total===void 0?(i=(n=this._rangeReaders[0])==null?void 0:n.onProgress)==null||i.call(n,{loaded:e.loaded}):(s=(r=this._fullRequestReader)==null?void 0:r.onProgress)==null||s.call(r,{loaded:e.loaded,total:e.total})}_onProgressiveDone(){var e;(e=this._fullRequestReader)==null||e.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(e){const n=this._rangeReaders.indexOf(e);n>=0&&this._rangeReaders.splice(n,1)}getFullReader(){Pi(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const e=this._queuedChunks;return this._queuedChunks=null,new Yce(this,e,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(e,n){if(n<=this._progressiveDataLength)return null;const i=new Xce(this,e,n);return this._pdfDataRangeTransport.requestDataRange(e,n),this._rangeReaders.push(i),i}cancelAllRequests(e){var n;(n=this._fullRequestReader)==null||n.cancel(e);for(const i of this._rangeReaders.slice(0))i.cancel(e);this._pdfDataRangeTransport.abort()}}class Yce{constructor(e,n,i=!1,r=null){this._stream=e,this._done=i||!1,this._filename=EM(r)?r:null,this._queuedChunks=n||[],this._loaded=0;for(const s of this._queuedChunks)this._loaded+=s.byteLength;
165this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}_enqueue(e){this._done||(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunks.push(e),this._loaded+=e.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class Xce{constructor(e,n,i){this._stream=e,this._begin=n,this._end=i,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(e){if(!this._done){if(this._requests.length===0)this._queuedChunk=e;else{this._requests.shift().resolve({value:e,done:!1});for(const i of this._requests)i.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const n=this._queuedChunk;return this._queuedChunk=null,{value:n,done:!1}}if(this._done)return{value:void 0,done:!0};const e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}function Jce(t){let e=!0,n=i("filename\\*","i").exec(t);if(n){n=n[1];let u=l(n);return u=unescape(u),u=c(u),u=d(u),s(u)}if(n=a(t),n){const u=d(n);return s(u)}if(n=i("filename","i").exec(t),n){n=n[1];let u=l(n);return u=d(u),s(u)}function i(u,h){return new RegExp("(?:^|;)\\s*"+u+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',h)}function r(u,h){if(u){if(!/^[\x00-\xFF]+$/.test(h))return h;try{const p=new TextDecoder(u,{fatal:!0}),y=XS(h);h=p.decode(y),e=!1}catch{}}return h}function s(u){return e&&/[\x80-\xff]/.test(u)&&(u=r("utf-8",u),e&&(u=r("iso-8859-1",u))),u}function a(u){const h=[];let p;const y=i("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(p=y.exec(u))!==null;){let[,w,k,b]=p;if(w=parseInt(w,10),w in h){if(w===0)break;continue}h[w]=[k,b]}const m=[];for(let w=0;w<h.length&&w in h;++w){let[k,b]=h[w];b=l(b),k&&(b=unescape(b),w===0&&(b=c(b))),m.push(b)}return m.join("")}function l(u){if(u.startsWith('"')){const h=u.slice(1).split('\\"');for(let p=0;p<h.length;++p){const y=h[p].indexOf('"');y!==-1&&(h[p]=h[p].slice(0,y),h.length=p+1),h[p]=h[p].replaceAll(/\\(.)/g,"$1")}u=h.join('"')}return u}function c(u){const h=u.indexOf("'");if(h===-1)return u;const p=u.slice(0,h),m=u.slice(h+1).replace(/^[^']*'/,"");return r(p,m)}function d(u){return!u.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(u)?u:u.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(h,p,y,m){if(y==="q"||y==="Q")return m=m.replaceAll("_"," "),m=m.replaceAll(/=([0-9a-fA-F]{2})/g,function(w,k){return String.fromCharCode(parseInt(k,16))}),r(p,m);try{m=atob(m)}catch{}return r(p,m)})}return""}function MM({getResponseHeader:t,isHttp:e,rangeChunkSize:n,disableRange:i}){const r={allowRangeRequests:!1,suggestedLength:void 0},s=parseInt(t("Content-Length"),10);return!Number.isInteger(s)||(r.suggestedLength=s,s<=2*n)||i||!e||t("Accept-Ranges")!=="bytes"||(t("Content-Encoding")||"identity")!=="identity"||(r.allowRangeRequests=!0),r}function DM(t){const e=t("Content-Disposition");if(e){let n=Jce(e);if(n.includes("%"))try{n=decodeURIComponent(n)}catch{}if(EM(n))return n}return null}function tC(t,e){return t===404||t===0&&e.startsWith("file:")?new hp('Missing PDF "'+e+'".'):new YS(`Unexpected server response (${t}) while retrieving PDF "${e}".`,t)}function P8(t){return t===200||t===206}function E8(t,e,n){return{method:"GET",headers:t,signal:n.signal,mode:"cors",credentials:e?"include":"same-origin",redirect:"follow"}}function A8(t){const e=new Headers;for(const n in t){const i=t[n];i!==void 0&&e.append(n,i)}return e}function N8(t){return t instanceof Uint8Array?t.buffer:t instanceof ArrayBuffer?t:(Ut(`getArrayBuffer - unexpected data format: ${t}`),new Uint8Array(t).buffer)}class GO{constructor(e){this.source=e,this.isHttp=/^https?:/i.test(e.url),this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var e;return((e=this._fullRequestReader)==null?void 0:e._loaded)??0}getFullReader(){return Pi(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new Qce(this),this._fullRequestReader}getRangeReader(e,n){if(n<=this._progressiveDataLength)return null;const i=new Zce(this,e,n);return this._rangeRequestReaders.push(i),i}cancelAllRequests(e){var n;(n=this._fullRequestReader)==null||n.cancel(e);for(const i of this._rangeRequestReaders.slice(0))i.cancel(e)}}class Qce{constructor(e){this._stream=e,this._reader=null,this._loaded=0,this._filename=null;const n=e.source;this._withCredentials=n.withCredentials||!1,this._contentLength=n.length,this._headersCapability=Promise.withResolvers(),this._disableRange=n.disableRange||!1,this._rangeChunkSize=n.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!n.disableStream,this._isRangeSupported=!n.disableRange,this._headers=A8(this._stream.httpHeaders);const i=n.url;fetch(i,E8(this._headers,this._withCredentials,this._abortController)).then(r=>{if(!P8(r.status))throw tC(r.status,i);this._reader=r.body.getReader(),this._headersCapability.resolve();const s=c=>r.headers.get(c),{allowRangeRequests:a,suggestedLength:l}=MM({getResponseHeader:s,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=a,this._contentLength=l||this._contentLength,this._filename=DM(s),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new pp("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var i;await this._headersCapability.promise;const{value:e,done:n}=await this._reader.read();return n?{value:e,done:n}:(this._loaded+=e.byteLength,(i=this.onProgress)==null||i.call(this,{loaded:this._loaded,total:this._contentLength}),{value:N8(e),done:!1})}cancel(e){var n;(n=this._reader)==null||n.cancel(e),this._abortController.abort()}}class Zce{constructor(e,n,i){this._stream=e,this._reader=null,this._loaded=0;const r=e.source;this._withCredentials=r.withCredentials||!1,this._readCapability=Promise.withResolvers(),this._isStreamingSupported=!r.disableStream,this._abortController=new AbortController,this._headers=A8(this._stream.httpHeaders),this._headers.append("Range",`bytes=${n}-${i-1}`);const s=r.url;fetch(s,E8(this._headers,this._withCredentials,this._abortController)).then(a=>{if(!P8(a.status))throw tC(a.status,s);this._readCapability.resolve(),this._reader=a.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){var i;await this._readCapability.promise;const{value:e,done:n}=await this._reader.read();return n?{value:e,done:n}:(this._loaded+=e.byteLength,(i=this.onProgress)==null||i.call(this,{loaded:this._loaded}),{value:N8(e),done:!1})}cancel(e){var n;(n=this._reader)==null||n.cancel(e),this._abortController.abort()}}const L2=200,F2=206;function ede(t){const e=t.response;return typeof e!="string"?e:XS(e).buffer}class tde{constructor(e,n={}){this.url=e,this.isHttp=/^https?:/i.test(e),this.httpHeaders=this.isHttp&&n.httpHeaders||Object.create(null),this.withCredentials=n.withCredentials||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(e,n,i){const r={begin:e,end:n};for(const s in i)r[s]=i[s];return this.request(r)}requestFull(e){return this.request(e)}request(e){const n=new XMLHttpRequest,i=this.currXhrId++,r=this.pendingRequests[i]={xhr:n};n.open("GET",this.url),n.withCredentials=this.withCredentials;for(const s in this.httpHeaders){const a=this.httpHeaders[s];a!==void 0&&n.setRequestHeader(s,a)}return this.isHttp&&"begin"in e&&"end"in e?(n.setRequestHeader("Range",`bytes=${e.begin}-${e.end-1}`),r.expectedStatus=F2):r.expectedStatus=L2,n.responseType="arraybuffer",e.onError&&(n.onerror=function(s){e.onError(n.status)}),n.onreadystatechange=this.onStateChange.bind(this,i),n.onprogress=this.onProgress.bind(this,i),r.onHeadersReceived=e.onHeadersReceived,r.onDone=e.onDone,r.onError=e.onError,r.onProgress=e.onProgress,n.send(null),i}onProgress(e,n){var r;const i=this.pendingRequests[e];i&&((r=i.onProgress)==null||r.call(i,n))}onStateChange(e,n){var c,d,u;const i=this.pendingRequests[e];if(!i)return;const r=i.xhr;if(r.readyState>
165=2&&i.onHeadersReceived&&(i.onHeadersReceived(),delete i.onHeadersReceived),r.readyState!==4||!(e in this.pendingRequests))return;if(delete this.pendingRequests[e],r.status===0&&this.isHttp){(c=i.onError)==null||c.call(i,r.status);return}const s=r.status||L2;if(!(s===L2&&i.expectedStatus===F2)&&s!==i.expectedStatus){(d=i.onError)==null||d.call(i,r.status);return}const l=ede(r);if(s===F2){const h=r.getResponseHeader("Content-Range"),p=/bytes (\d+)-(\d+)\/(\d+)/.exec(h);i.onDone({begin:parseInt(p[1],10),chunk:l})}else l?i.onDone({begin:0,chunk:l}):(u=i.onError)==null||u.call(i,r.status)}getRequestXhr(e){return this.pendingRequests[e].xhr}isPendingRequest(e){return e in this.pendingRequests}abortRequest(e){const n=this.pendingRequests[e].xhr;delete this.pendingRequests[e],n.abort()}}class nde{constructor(e){this._source=e,this._manager=new tde(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials}),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(e){const n=this._rangeRequestReaders.indexOf(e);n>=0&&this._rangeRequestReaders.splice(n,1)}getFullReader(){return Pi(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new ide(this._manager,this._source),this._fullRequestReader}getRangeReader(e,n){const i=new rde(this._manager,e,n);return i.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(i),i}cancelAllRequests(e){var n;(n=this._fullRequestReader)==null||n.cancel(e);for(const i of this._rangeRequestReaders.slice(0))i.cancel(e)}}class ide{constructor(e,n){this._manager=e;const i={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=n.url,this._fullRequestId=e.requestFull(i),this._headersReceivedCapability=Promise.withResolvers(),this._disableRange=n.disableRange||!1,this._contentLength=n.length,this._rangeChunkSize=n.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const e=this._fullRequestId,n=this._manager.getRequestXhr(e),i=a=>n.getResponseHeader(a),{allowRangeRequests:r,suggestedLength:s}=MM({getResponseHeader:i,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});r&&(this._isRangeSupported=!0),this._contentLength=s||this._contentLength,this._filename=DM(i),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}_onDone(e){if(e&&(this._requests.length>0?this._requests.shift().resolve({value:e.chunk,done:!1}):this._cachedChunks.push(e.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(e){this._storedError=tC(e,this._url),this._headersReceivedCapability.reject(this._storedError);for(const n of this._requests)n.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(e){var n;(n=this.onProgress)==null||n.call(this,{loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._headersReceivedCapability.reject(e);for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest
165(this._fullRequestId),this._fullRequestReader=null}}class rde{constructor(e,n,i){this._manager=e;const r={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=e.url,this._requestId=e.requestRange(n,i,r),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){var e;(e=this.onClosed)==null||e.call(this,this)}_onDone(e){const n=e.chunk;this._requests.length>0?this._requests.shift().resolve({value:n,done:!1}):this._queuedChunk=n,this._done=!0;for(const i of this._requests)i.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(e){this._storedError=tC(e,this._url);for(const n of this._requests)n.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(e){var n;this.isStreamingSupported||(n=this.onProgress)==null||n.call(this,{loaded:e.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){const n=this._queuedChunk;return this._queuedChunk=null,{value:n,done:!1}}if(this._done)return{value:void 0,done:!0};const e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}const M8=/^file:\/\/\/[a-zA-Z]:\//;function sde(t){const e=Vo.get("url"),n=e.parse(t);return n.protocol==="file:"||n.host?n:/^[a-z]:[/\\]/i.test(t)?e.parse(`file:///${t}`):(n.host||(n.protocol="file:"),n)}class ade{constructor(e){this.source=e,this.url=sde(e.url),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var e;return((e=this._fullRequestReader)==null?void 0:e._loaded)??0}getFullReader(){return Pi(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new cde(this):new ode(this),this._fullRequestReader}getRangeReader(e,n){if(n<=this._progressiveDataLength)return null;const i=this.isFsUrl?new dde(this,e,n):new lde(this,e,n);return this._rangeRequestReaders.push(i),i}cancelAllRequests(e){var n;(n=this._fullRequestReader)==null||n.cancel(e);for(const i of this._rangeRequestReaders.slice(0))i.cancel(e)}}class D8{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;const n=e.source;this._contentLength=n.length,this._loaded=0,this._filename=null,this._disableRange=n.disableRange||!1,this._rangeChunkSize=n.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!n.disableStream,this._isRangeSupported=!n.disableRange,this._readableStream=null,this._readCapability=Promise.withResolvers(),this._headersCapability=Promise.withResolvers()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var i;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();return e===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=e.length,(i=this.onProgress)==null||i.call(this,{loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){if(!this._readableStream){this._error(e);return}this._readableStream.destroy(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",()=>{this._readCapability.resolve()}),e.on("end",()=>{e.destroy(),this._done=!0,this._readCapability.resolve()}),e.on("error",n=>{this._error(n)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new pp("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class _8{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=Promise.withResolvers();const n=e.source;this._isStreamingSupported=!n.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){var i;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();return e===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=e.length,(i=this.onProgress)==null||i.call(this,{loaded:this._loaded}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){if(!this._readableStream){this._error(e);return}this._readableStream.destroy(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",()=>{this._readCapability.resolve()}),e.on("end",()=>{e.destroy(),this._done=!0,this._readCapability.resolve()}),e.on("error",n=>{this._error(n)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function s1(t,e){return{protocol:t.protocol,auth:t.auth,host:t.hostname,port:t.port,path:t.path,method:"GET",headers:e}}class ode extends D8{constructor(e){super(e);const n=i=>{if(i.statusCode===404){const l=new hp(`Missing PDF "${this._url}".`);this._storedError=l,this._headersCapability.reject(l);return}this._headersCapability.resolve(),this._setReadableStream(i);const r=l=>this._readableStream.headers[l.toLowerCase()],{allowRangeRequests:s,suggestedLength:a}=MM({getResponseHeader:r,isHttp:e.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=s,this._contentLength=a||this._contentLength,this._filename=DM(r)};if(this._request=null,this._url.protocol==="http:"){const i=Vo.get("http");this._request=i.request(s1(this._url,e.httpHeaders),n)}else{const i=Vo.get("https");this._request=i.request(s1(this._url,e.httpHeaders),n)}this._request.on("error",i=>{this._storedError=i,this._headersCapability.reject(i)}),this._request.end()}}class lde extends _8{constructor(e,n,i){super(e),this._httpHeaders={};for(const s in e.httpHeaders){const a=e.httpHeaders[s];a!==void 0&&(this._httpHeaders[s]=a)}this._httpHeaders.Range=`bytes=${n}-${i-1}`;const r=s=>{if(s.statusCode===404){const a=new hp(`Missing PDF "${this._url}".`);this._storedError=a;return}this._setReadableStream(s)};if(this._request=null,this._url.protocol==="http:"){const s=Vo.get("http");this._request=s.request(s1(this._url,this._httpHeaders),r)}else{const s=Vo.get("https");this._request=s.request(s1(this._url,this._httpHeaders),r)}this._request.on("error",s=>{this._storedError=s}),this._request.end()}}class cde extends D8{constructor(e){super(e);let n=decodeURIComponent(this._url.path);M8.test(this._url.href)&&(n=n.replace(/^\//,""));const i=Vo.get("fs");i.promises.lstat(n).then(r=>{this._contentLength=r.size,this._setReadableStream(i.createReadStream(n)),this._headersCapability.resolve()},r=>{r.code==="ENOENT"&&(r=new hp(`Missing PDF "${n}".`)),this._storedError=r,this._headersCapability.reject(r)})}}class dde extends _8{constructor(e,n,i){super(e);let r=decodeURIComponent(this._url.path);M8.test(this._url.href)&&(r=r.replace(/^\//,""));const s=Vo.get("fs");this._setReadableStream(s.createReadStream(r,{start:n,end:i-1}))}}const ude=1e5,Vr=30,hde=.8;var RL,$c,Kr,Zy,eb,$u,gl,tb,nb,Hu,zm,Vm,Hc,Um,ib,Wm,zu,rb,sb,ji,Vu,Uu,zc,Gm,Jl,I8,R8,LP,Bo,kw,O8,L8;let a1=(ji=class{constructor({textContentSource:e,container:n,viewport:i}){xe(this,Jl);xe(this,$c,Promise.withResolvers());xe(this,Kr,null);xe(this,Zy,!1);xe(this,eb,!!((RL=globalThis.FontInspector)!=null&&RL.enabled));xe(this,$u,null);xe(this,gl,null);xe(this,tb,0);xe(this,nb,0);xe(this,Hu,null);xe(this,zm,null);xe(this,Vm,0);xe(this,Hc,0);xe(this,Um,Object.create(null));xe(this,ib,[]);xe(this,Wm,null);xe(this,zu,[]);xe(this,rb,new WeakMap);xe(this,sb,null);var c;if(e instanceof ReadableStream)fe(this,Wm,e);else if(typeof e=="object")fe(this,Wm,new ReadableStream({start(d){d.enqueue(e),d.close()}}));else throw new Error('No "textContentSource" parameter specified.');fe(this,Kr,fe(this,zm,n)),fe(this,Hc,i.scale*(globalThis.devicePixelRatio||1)),fe(this,Vm,i.rotation),fe(this,gl,{prevFontSize:null,prevFontFamily:null,div:null,properties:null,ctx:null});const{pageWidth:r,pageHeight:s,pageX:a,pageY:l}=i.rawDims;fe(this,sb,[1,0,0,-1,-a,l+s]),fe(this,nb,r),fe(this,tb,s),ye(c=ji,Bo,O8).call(c),Hh(n,i),O(this,$c).promise.catch(()=>{}).then(()=>{O(ji,Gm).delete(this),fe(this,gl,null),fe(this,Um,null)})}render(){const e=()=>{O(this,Hu).read().then(({value:n,done:i})=>{if(i){O(this,$c).resolve();return}O(this,$u)??fe(this,$u,n.lang),Object.assign(O(this,Um),n.styles),ye(this,Jl,I8).call(this,n.items),e()},O(this,$c).reject)};return fe(this,Hu,O(this,Wm).getReader()),O(ji,Gm).add(this),e(),O(this,$c).promise}update({viewport:e,onBefore:n=null}){var s;const i=e.scale*(globalThis.devicePixelRatio||1),r=e.rotation;if(r!==O(this,Vm)&&(n==null||n(),fe(this,Vm,r),Hh(O(this,zm),{rotation:r})),i!==O(this,Hc)){n==null||n(),fe(this,Hc,i);const a={prevFontSize:null,prevFontFamily:null,div:null,properties:null,ctx:ye(s=ji,Bo,kw).call(s,O(this,$u))};for(const l of O(this,zu))a.properties=O(this,rb).get(l),a.div=l,ye(this,Jl,LP).call(this,a)}}cancel(){var n;const e=new pp("TextLayer task cancelled.");(n=O(this,Hu))==null||n.cancel(e).catch(()=>{}),fe(this,Hu,null),O(this,$c).reject(e)}get textDivs(){return O(this,zu)}get textContentItemsStr(){return O(this,ib)}static cleanup(){if(!(O(this,Gm).size>
1650)){O(this,Vu).clear();for(const{canvas:e}of O(this,Uu).values())e.remove();O(this,Uu).clear()}}},$c=new WeakMap,Kr=new WeakMap,Zy=new WeakMap,eb=new WeakMap,$u=new WeakMap,gl=new WeakMap,tb=new WeakMap,nb=new WeakMap,Hu=new WeakMap,zm=new WeakMap,Vm=new WeakMap,Hc=new WeakMap,Um=new WeakMap,ib=new WeakMap,Wm=new WeakMap,zu=new WeakMap,rb=new WeakMap,sb=new WeakMap,Vu=new WeakMap,Uu=new WeakMap,zc=new WeakMap,Gm=new WeakMap,Jl=new WeakSet,I8=function(e){var r,s;if(O(this,Zy))return;(s=O(this,gl)).ctx??(s.ctx=ye(r=ji,Bo,kw).call(r,O(this,$u)));const n=O(this,zu),i=O(this,ib);for(const a of e){if(n.length>ude){Ut("Ignoring additional textDivs for performance reasons."),fe(this,Zy,!0);return}if(a.str===void 0){if(a.type==="beginMarkedContentProps"||a.type==="beginMarkedContent"){const l=O(this,Kr);fe(this,Kr,document.createElement("span")),O(this,Kr).classList.add("markedContent"),a.id!==null&&O(this,Kr).setAttribute("id",`${a.id}`),l.append(O(this,Kr))}else a.type==="endMarkedContent"&&fe(this,Kr,O(this,Kr).parentNode);continue}i.push(a.str),ye(this,Jl,R8).call(this,a)}},R8=function(e){var w;const n=document.createElement("span"),i={angle:0,canvasWidth:0,hasText:e.str!=="",hasEOL:e.hasEOL,fontSize:0};O(this,zu).push(n);const r=ut.transform(O(this,sb),e.transform);let s=Math.atan2(r[1],r[0]);const a=O(this,Um)[e.fontName];a.vertical&&(s+=Math.PI/2);const l=O(this,eb)&&a.fontSubstitution||a.fontFamily,c=Math.hypot(r[2],r[3]),d=c*ye(w=ji,Bo,L8).call(w,l,O(this,$u));let u,h;s===0?(u=r[4],h=r[5]-d):(u=r[4]+d*Math.sin(s),h=r[5]-d*Math.cos(s));const p="calc(var(--scale-factor)*",y=n.style;O(this,Kr)===O(this,zm)?(y.left=`${(100*u/O(this,nb)).toFixed(2)}%`,y.top=`${(100*h/O(this,tb)).toFixed(2)}%`):(y.left=`${p}${u.toFixed(2)}px)`,y.top=`${p}${h.toFixed(2)}px)`),y.fontSize=`${p}${(O(ji,zc)*c).toFixed(2)}px)`,y.fontFamily=l,i.fontSize=c,n.setAttribute("role","presentation"),n.textContent=e.str,n.dir=e.dir,O(this,eb)&&(n.dataset.fontName=a.fontSubstitutionLoadedName||e.fontName),s!==0&&(i.angle=s*(180/Math.PI));let m=!1;if(e.str.length>1)m=!0;else if(e.str!==" "&&e.transform[0]!==e.transform[3]){const k=Math.abs(e.transform[0]),b=Math.abs(e.transform[3]);k!==b&&Math.max(k,b)/Math.min(k,b)>1.5&&(m=!0)}if(m&&(i.canvasWidth=a.vertical?e.height:e.width),O(this,rb).set(n,i),O(this,gl).div=n,O(this,gl).properties=i,ye(this,Jl,LP).call(this,O(this,gl)),i.hasText&&O(this,Kr).append(n),i.hasEOL){const k=document.createElement("br");k.setAttribute("role","presentation"),O(this,Kr).append(k)}},LP=function(e){const{div:n,properties:i,ctx:r,prevFontSize:s,prevFontFamily:a}=e,{style:l}=n;let c="";if(O(ji,zc)>1&&(c=`scale(${1/O(ji,zc)})`),i.canvasWidth!==0&&i.hasText){const{fontFamily:d}=l,{canvasWidth:u,fontSize:h}=i;(s!==h||a!==d)&&(r.font=`${h*O(this,Hc)}px ${d}`,e.prevFontSize=h,e.prevFontFamily=d);const{width:p}=r.measureText(n.textContent);p>0&&(c=`scaleX(${u*O(this,Hc)/p}) ${c}`)}i.angle!==0&&(c=`rotate(${i.angle}deg) ${c}`),c.length>0&&(l.transform=c)},Bo=new WeakSet,kw=function(e=null){let n=O(this,Uu).get(e||(e=""));if(!n){const i=document.createElement("canvas");i.className="hiddenCanvasElement",i.lang=e,document.body.append(i),n=i.getContext("2d",{alpha:!1,willReadFrequently:!0}),O(this,Uu).set(e,n)}return n},O8=function(){if(O(this,zc)!==null)return;const e=document.createElement("div");e.style.opacity=0,e.style.lineHeight=1,e.style.fontSize="1px",e.textContent="X",document.body.append(e),fe(this,zc,e.getBoundingClientRect().height),e.remove()},L8=function(e,n){const i=O(this,Vu).get(e);if(i)return i;const r=ye(this,Bo,kw).call(this,n),s=r.font;r.canvas.width=r.canvas.height=Vr,r.font=`${Vr}px ${e}`;const a=r.measureText("");let l=a.fontBoundingBoxAscent,c=Math.abs(a.fontBoundingBoxDescent);if(l){const h=l/(l+c);return O(this,Vu).set(e,h),r.canvas.width=r.canvas.height=0,r.font=s,h}r.strokeStyle="red",r.clearRect(0,0,Vr,Vr),r.strokeText("g",0,0);let d=r.getImageData(0,0,Vr,Vr).data;c=0;for(let h=d.length-1-3;h>=0;h-=4)if(d[h]>0){c=Math.ceil(h/4/Vr);break}r.clearRect(0,0,Vr,Vr),r.strokeText("A",0,Vr),d=r.getImageData(0,0,Vr,Vr).data,l=0;for(let h=0,p=d.length;h<p;h+=4)if(d[h]>0){l=Vr-Math.floor(h/4/Vr);break}r.canvas.width=r.canvas.height=0,r.font=s;const u=l?l/(l+c):hde;return O(this,Vu).set(e,u),u},xe(ji,Bo),xe(ji,Vu,new Map),xe(ji,Uu,new Map),xe(ji,zc,null),xe(ji,Gm,new Set),ji);function pde(){Y$("`renderTextLayer`, please use `TextLayer` instead.");const{textContentSource:t,container:e,viewport:n,...i}=arguments[0],r=Object.keys(i);r.length>0&&Ut("Ignoring `renderTextLayer` parameters: "+r.join(", "));const s=new a1({textContentSource:t,container:e,viewport:n}),{textDivs:a,textContentItemsStr:l}=s;return{promise:s.render(),textDivs:a,textContentItemsStr:l}}function mde(){Y$("`updateTextLayer`, please use `TextLayer` instead.")}class ly{static textContent(e){const n=[],i={items:n,styles:Object.create(null)};function r(s){var c;if(!s)return;let a=null;const l=s.name;if(l==="#text")a=s.value;else if(ly.shouldBuildText(l))(c=s==null?void 0:s.attributes)!=null&&c.textContent?a=s.attributes.textContent:s.value&&(
165a=s.value);else return;if(a!==null&&n.push({str:a}),!!s.children)for(const d of s.children)r(d)}return r(e),i}static shouldBuildText(e){return!(e==="textarea"||e==="input"||e==="option"||e==="select")}}const fde=65536,gde=100,xde=5e3,yde=br?Ace:gce,bde=br?Nce:q$,vde=br?Ece:fce,wde=br?Mce:K$;function kde(t={}){typeof t=="string"||t instanceof URL?t={url:t}:(t instanceof ArrayBuffer||ArrayBuffer.isView(t))&&(t={data:t});const e=new FP,{docId:n}=e,i=t.url?Sde(t.url):null,r=t.data?Cde(t.data):null,s=t.httpHeaders||null,a=t.withCredentials===!0,l=t.password??null,c=t.range instanceof F8?t.range:null,d=Number.isInteger(t.rangeChunkSize)&&t.rangeChunkSize>0?t.rangeChunkSize:fde;let u=t.worker instanceof lm?t.worker:null;const h=t.verbosity,p=typeof t.docBaseUrl=="string"&&!PM(t.docBaseUrl)?t.docBaseUrl:null,y=typeof t.cMapUrl=="string"?t.cMapUrl:null,m=t.cMapPacked!==!1,w=t.CMapReaderFactory||bde,k=typeof t.standardFontDataUrl=="string"?t.standardFontDataUrl:null,b=t.StandardFontDataFactory||wde,x=t.stopAtErrors!==!0,v=Number.isInteger(t.maxImageSize)&&t.maxImageSize>-1?t.maxImageSize:-1,E=t.isEvalSupported!==!1,N=typeof t.isOffscreenCanvasSupported=="boolean"?t.isOffscreenCanvasSupported:!br,S=Number.isInteger(t.canvasMaxAreaInBytes)?t.canvasMaxAreaInBytes:-1,_=typeof t.disableFontFace=="boolean"?t.disableFontFace:br,$=t.fontExtraProperties===!0,V=t.enableXfa===!0,I=t.ownerDocument||globalThis.document,A=t.disableRange===!0,L=t.disableStream===!0,T=t.disableAutoFetch===!0,g=t.pdfBug===!0,f=t.enableHWA===!0,j=c?c.length:t.length??NaN,P=typeof t.useSystemFonts=="boolean"?t.useSystemFonts:!br&&!_,C=typeof t.useWorkerFetch=="boolean"?t.useWorkerFetch:w===q$&&b===K$&&y&&k&&Kg(y,document.baseURI)&&Kg(k,document.baseURI),D=t.canvasFactory||new yde({ownerDocument:I,enableHWA:f}),M=t.filterFactory||new vde({docId:n,ownerDocument:I}),z=null;rce(h);const J={canvasFactory:D,filterFactory:M};if(C||(J.cMapReaderFactory=new w({baseUrl:y,isCompressed:m}),J.standardFontDataFactory=new b({baseUrl:k})),!u){const U={verbosity:h,port:Bl.workerPort};u=U.port?lm.fromPort(U):new lm(U),e._worker=u}const F={docId:n,apiVersion:"4.4.168",data:r,password:l,disableAutoFetch:T,rangeChunkSize:d,length:j,docBaseUrl:p,enableXfa:V,evaluatorOptions:{maxImageSize:v,disableFontFace:_,ignoreErrors:x,isEvalSupported:E,isOffscreenCanvasSupported:N,canvasMaxAreaInBytes:S,fontExtraProperties:$,useSystemFonts:P,cMapUrl:C?y:null,standardFontDataUrl:C?k:null}},q={disableFontFace:_,fontExtraProperties:$,ownerDocument:I,pdfBug:g,styleElement:z,loadingParams:{disableAutoFetch:T,enableXfa:V}};return u.promise.then(function(){if(e.destroyed)throw new Error("Loading aborted");if(u.destroyed)throw new Error("Worker was destroyed");const U=u.messageHandler.sendWithPromise("GetDocRequest",F,r?[r.buffer]:null);let Q;if(c)Q=new Kce(c,{disableRange:A,disableStream:L});else if(!r){if(!i)throw new Error("getDocument - no `url` parameter provided.");Q=(H=>br?function(){return typeof fetch<"u"&&typeof Response<"u"&&"body"in Response.prototype}()&&Kg(H.url)?new GO(H):new ade(H):Kg(H.url)?new GO(H):new nde(H))({url:i,length:j,httpHeaders:s,withCredentials:a,rangeChunkSize:d,disableRange:A,disableStream:L})}return U.then(ce=>{if(e.destroyed)throw new Error("Loading aborted");if(u.destroyed)throw new Error("Worker was destroyed");const H=new Jg(n,ce,u.port),B=new Ede(H,e,Q,q,J);e._transport=B,H.send("Ready",null)})}).catch(e._capability.reject),e}function Sde(t){if(t instanceof URL)return t.href;try{return new URL(t,window.location).href}catch{if(br&&typeof t=="string")return t}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function Cde(t){if(br&&typeof Buffer<"u"&&t instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(t instanceof Uint8Array&&t.byteLength===t.buffer.byteLength)return t;if(typeof t=="string")return XS(t);if(t instanceof ArrayBuffer||ArrayBuffer.isView(t)||typeof t=="object"&&!isNaN(t==null?void 0:t.length))return new Uint8Array(t);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}function qO(t){return typeof t=="object"&&Number.isInteger(t==null?void 0:t.num)&&t.num>=0&&Number.isInteger(t==null?void 0:t.gen)&&t.gen>=0}var j1;const T1=class T1{constructor(){this._capability=Promise.withResolvers(),this._transport=null,this._worker=null,this.docId=`d${lr(T1,j1)._++}`,this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}async destroy(){var e,n,i;this.destroyed=!0;try{(e=this._worker)!=null&&e.port&&(this._worker._pendingDestroy=!0),await((n=this._transport)==null?void 0:n.destroy())}catch(r){throw(i=this._worker)!=null&&i.port&&delete this._worker._pendingDestroy,r}this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}};j1=new WeakMap,xe(T1,j1,0);let FP=T1,F8=class{constructor(e,n,i=!1,r=null){this.length=e,this.initialData=n,this.progressiveDone=i,this.contentDispositionFilename=r,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=Promise.withResolvers()}addRangeListener(e){this._rangeListeners.push(e)}addProgressListener(e){this._progressListeners.push(e)}addProgressiveReadListener(e){this._progressiveReadListeners.push(e)}addProgressiveDoneListener(e){this._progressiveDoneListeners.push(e)}onDataRange(e,n){for(const i of this._rangeListeners)i(e,n)}onDataProgress(e,n){this._readyCapability.promise.then(()=>{for(const i of this._progressListeners)i(e,n)})}onDataProgressiveRead(e){this._readyCapability.promise.then(()=>{for(const n of this._progressiveReadListeners)n(e)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const e of this._progressiveDoneListeners)e()})}transportReady(){this._readyCapability.resolve()}requestDataRange(e,n){kn("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}};
165class jde{constructor(e,n){this._pdfInfo=e,this._transport=n}get annotationStorage(){return this._transport.annotationStorage}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return rn(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(e){return this._transport.getPage(e)}getPageIndex(e){return this._transport.getPageIndex(e)}getDestinations(){return this._transport.getDestinations()}getDestination(e){return this._transport.getDestination(e)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig({intent:e="display"}={}){const{renderingIntent:n}=this._transport.getRenderingIntent(e);return this._transport.getOptionalContentConfig(n)}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(e=!1){return this._transport.startCleanup(e||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}cachedPageNumber(e){return this._transport.cachedPageNumber(e)}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}var Vc,xl,la,Mp,Sw;class Tde{constructor(e,n,i,r=!1){xe(this,la);xe(this,Vc,null);xe(this,xl,!1);this._pageIndex=e,this._pageInfo=n,this._transport=i,this._stats=r?new _O:null,this._pdfBug=r,this.commonObjs=i.commonObjs,this.objs=new B8,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:e,rotation:n=this.rotate,offsetX:i=0,offsetY:r=0,dontFlip:s=!1}={}){return new yv({viewBox:this.view,scale:e,rotation:n,offsetX:i,offsetY:r,dontFlip:s})}getAnnotations({intent:e="display"}={}){const{renderingIntent:n}=this._transport.getRenderingIntent(e);return this._transport.getAnnotations(this._pageIndex,n)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return rn(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){var e;return((e=this._transport._htmlForXfa)==null?void 0:e.children[this._pageIndex])||null}render({canvasContext:e,viewport:n,intent:i="display",annotationMode:r=jc.ENABLE,transform:s=null,background:a=null,optionalContentConfigPromise:l=null,annotationCanvasMap:c=null,pageColors:d=null,printAnnotationStorage:u=null}){var v,E;(v=this._stats)==null||v.time("Overall");const h=this._transport.getRenderingIntent(i,r,u),{renderingIntent:p,cacheKey:y}=h;fe(this,xl,!1),ye(this,la,Sw).call(this),l||(l=this._transport.getOptionalContentConfig(p));let m=this._intentStates.get(y);m||(m=Object.create(null),this._intentStates.set(y,m)),m.streamReaderCancelTimeout&&(clearTimeout(m.streamReaderCancelTimeout),m.streamReaderCancelTimeout=null);const w=!!(p&ra.PRINT);m.displayReadyCapability||(m.displayReadyCapability=Promise.withResolvers(),m.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},(E=this._stats)==null||E.time("Page Request"),this._pumpOperatorList(h));const k=N=>{var S;m.renderTasks.delete(b),(this._maybeCleanupAfterRender||w)&&fe(this,xl,!0),ye(this,la,Mp).call(this,!w),N?(b.capability.reject(N),this._abortOperatorList({intentState:m,reason:N instanceof Error?N:new Error(N)})):b.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"),(S=globalThis.Stats)!=null&&S.enabled&&globalThis.Stats.add(this.pageNumber,this._stats)
165)},b=new $P({callback:k,params:{canvasContext:e,viewport:n,transform:s,background:a},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:c,operatorList:m.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!w,pdfBug:this._pdfBug,pageColors:d});(m.renderTasks||(m.renderTasks=new Set)).add(b);const x=b.task;return Promise.all([m.displayReadyCapability.promise,l]).then(([N,S])=>{var _;if(this.destroyed){k();return}if((_=this._stats)==null||_.time("Rendering"),!(S.renderingIntent&p))throw new Error("Must use the same `intent`-argument when calling the `PDFPageProxy.render` and `PDFDocumentProxy.getOptionalContentConfig` methods.");b.initializeGraphics({transparency:N,optionalContentConfig:S}),b.operatorListChanged()}).catch(k),x}getOperatorList({intent:e="display",annotationMode:n=jc.ENABLE,printAnnotationStorage:i=null}={}){var c;function r(){a.operatorList.lastChunk&&(a.opListReadCapability.resolve(a.operatorList),a.renderTasks.delete(l))}const s=this._transport.getRenderingIntent(e,n,i,!0);let a=this._intentStates.get(s.cacheKey);a||(a=Object.create(null),this._intentStates.set(s.cacheKey,a));let l;return a.opListReadCapability||(l=Object.create(null),l.operatorListChanged=r,a.opListReadCapability=Promise.withResolvers(),(a.renderTasks||(a.renderTasks=new Set)).add(l),a.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},(c=this._stats)==null||c.time("Page Request"),this._pumpOperatorList(s)),a.opListReadCapability.promise}streamTextContent({includeMarkedContent:e=!1,disableNormalization:n=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:e===!0,disableNormalization:n===!0},{highWaterMark:100,size(r){return r.items.length}})}getTextContent(e={}){if(this._transport._htmlForXfa)return this.getXfa().then(i=>ly.textContent(i));const n=this.streamTextContent(e);return new Promise(function(i,r){function s(){a.read().then(function({value:c,done:d}){if(d){i(l);return}l.lang??(l.lang=c.lang),Object.assign(l.styles,c.styles),l.items.push(...c.items),s()},r)}const a=n.getReader(),l={items:[],styles:Object.create(null),lang:null};s()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const e=[];for(const n of this._intentStates.values())if(this._abortOperatorList({intentState:n,reason:new Error("Page was destroyed."),force:!0}),!n.opListReadCapability)for(const i of n.renderTasks)e.push(i.completed),i.cancel();return this.objs.clear(),fe(this,xl,!1),ye(this,la,Sw).call(this),Promise.all(e)}cleanup(e=!1){fe(this,xl,!0);const n=ye(this,la,Mp).call(this,!1);return e&&n&&this._stats&&(this._stats=new _O),n}_startRenderPage(e,n){var r,s;const i=this._intentStates.get(n);i&&((r=this._stats)==null||r.timeEnd("Page Request"),(s=i.displayReadyCapability)==null||s.resolve(e))}_renderPageChunk(e,n){for(let i=0,r=e.length;i<r;i++)n.operatorList.fnArray.push(e.fnArray[i]),n.operatorList.argsArray.push(e.argsArray[i]);n.operatorList.lastChunk=e.lastChunk,n.operatorList.separateAnnots=e.separateAnnots;for(const i of n.renderTasks)i.operatorListChanged();e.lastChunk&&ye(this,la,Mp).call(this,!0)}_pumpOperatorList({renderingIntent:e,cacheKey:n,annotationStorageSerializable:i}){const{map:r,transfer:s}=i,l=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:e,cacheKey:n,annotationStorage:r},s).getReader(),c=this._intentStates.get(n);c.streamReader=l;const d=()=>{l.read().then(({value:u,done:h})=>{if(h){c.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(u,c),d())},u=>{if(c.streamReader=null,!this._transport.destroyed){if(c.operatorList){c.operatorList.lastChunk=!0;for(const h of c.renderTasks)h.operatorListChanged();ye(this,la,Mp).call(this,!0)}if(c.displayReadyCapability)c.displayReadyCapability.reject(u);else if(c.opListReadCapability)c.opListReadCapability.reject(u);else throw u}})};d()}_abortOperatorList({intentState:e,reason:n,force:i=!1}){if(e.streamReader){if(e.streamReaderCancelTimeout&&(clearTimeout(e.streamReaderCancelTimeout),e.streamReaderCancelTimeout=null),!i){if(e.renderTasks.size>0)return;if(n instanceof TM){let r=gde;n.extraDelay>0&&n.extraDelay<1e3&&(r+=n.extraDelay),e.streamReaderCancelTimeout=setTimeout(()=>{e.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:e,reason:n,force:!0})},r);return}}if(e.streamReader.cancel(new pp(n.message)).catch(()=>{}),e.streamReader=null,!this._transport.destroyed){for(const[r,s]of this._intentStates)if(s===e){this._intentStates.delete(r);break}this.cleanup()}}}get stats(){return this._stats}}Vc=new WeakMap,xl=new WeakMap,la=new WeakSet,Mp=function(e=!1){if(ye(this,la,Sw).call(this),!O(this,xl)||this.destroyed)return!1;if(e)return fe(this,Vc,setTimeout(()=>{fe(this,Vc,null),ye(this,la,Mp).call(this,!1)},xde)),!1;for(const{renderTasks:n,operatorList:i}of this._intentStates.values())if(n.size>0||!i.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),fe(this,xl,!1),!0},Sw=function(){O(this,Vc)&&(clearTimeout(O(this,Vc)),fe(this,Vc,null))};var Wu,P1;class Pde{constructor(){xe(this,Wu,new Set);xe(this,P1,Promise.resolve())}postMessage(e,n){const i={data:structuredClone(e,n?{transfer:n}:null)};O(this,P1).then(()=>{for(const r of O(this,Wu))r.call(this,i)})}addEventListener(e,n){O(this,Wu).add(n)}removeEventListener(e,n){O(this,Wu).delete(n)}terminate(){O(this,Wu).clear()}}Wu=new WeakMap,P1=new WeakMap;const al={isWorkerDisabled:!1,fakeWorkerId:0};
165br&&(al.isWorkerDisabled=!0,Bl.workerSrc||(Bl.workerSrc="./pdf.worker.mjs")),al.isSameOrigin=function(t,e){let n;try{if(n=new URL(t),!n.origin||n.origin==="null")return!1}catch{return!1}const i=new URL(e,n);return n.origin===i.origin},al.createCDNWrapper=function(t){const e=`await import("${t}");`;return URL.createObjectURL(new Blob([e],{type:"text/javascript"}))};var Gu,qm,Cw,Km,jw;const gs=class gs{constructor({name:e=null,port:n=null,verbosity:i=sce()}={}){xe(this,qm);var r;if(this.name=e,this.destroyed=!1,this.verbosity=i,this._readyCapability=Promise.withResolvers(),this._port=null,this._webWorker=null,this._messageHandler=null,n){if((r=O(gs,Gu))!=null&&r.has(n))throw new Error("Cannot use more than one PDFWorker per port.");(O(gs,Gu)||fe(gs,Gu,new WeakMap)).set(n,this),this._initializeFromPort(n);return}this._initialize()}get promise(){return br?Promise.all([Vo.promise,this._readyCapability.promise]):this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(e){this._port=e,this._messageHandler=new Jg("main","worker",e),this._messageHandler.on("ready",function(){}),ye(this,qm,Cw).call(this)}_initialize(){if(al.isWorkerDisabled||O(gs,Km,jw)){this._setupFakeWorker();return}let{workerSrc:e}=gs;try{al.isSameOrigin(window.location.href,e)||(e=al.createCDNWrapper(new URL(e,window.location).href));const n=new Worker(e,{type:"module"}),i=new Jg("main","worker",n),r=()=>{s.abort(),i.destroy(),n.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},s=new AbortController;n.addEventListener("error",()=>{this._webWorker||r()},{signal:s.signal}),i.on("test",l=>{if(s.abort(),this.destroyed||!l){r();return}this._messageHandler=i,this._port=n,this._webWorker=n,ye(this,qm,Cw).call(this)}),i.on("ready",l=>{if(s.abort(),this.destroyed){r();return}try{a()}catch{this._setupFakeWorker()}});const a=()=>{const l=new Uint8Array;i.send("test",l,[l.buffer])};a();return}catch{KS("The worker has been disabled.")}this._setupFakeWorker()}_setupFakeWorker(){al.isWorkerDisabled||(Ut("Setting up fake worker."),al.isWorkerDisabled=!0),gs._setupFakeWorkerGlobal.then(e=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}const n=new Pde;this._port=n;const i=`fake${al.fakeWorkerId++}`,r=new Jg(i+"_worker",i,n);e.setup(r,n),this._messageHandler=new Jg(i,i+"_worker",n),ye(this,qm,Cw).call(this)}).catch(e=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${e.message}".`))})}destroy(){var e;this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),(e=O(gs,Gu))==null||e.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(e){var i;if(!(e!=null&&e.port))throw new Error("PDFWorker.fromPort - invalid method signature.");const n=(i=O(this,Gu))==null?void 0:i.get(e.port);if(n){if(n._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return n}return new gs(e)}static get workerSrc(){if(Bl.workerSrc)return Bl.workerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _setupFakeWorkerGlobal(){return rn(this,"_setupFakeWorkerGlobal",(async()=>O(this,Km,jw)?O(this,Km,jw):(await import(this.workerSrc)).WorkerMessageHandler)())}};Gu=new WeakMap,qm=new WeakSet,Cw=function(){this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})},Km=new WeakSet,jw=function(){var e;try{return((e=globalThis.pdfjsWorker)==null?void 0:e.WorkerMessageHandler)||null}catch{return null}},xe(gs,Km),xe(gs,Gu);let lm=gs;var yl,bo,Ym,Xm,vo,qu,Qg;class Ede{constructor(e,n,i,r,s){xe(this,qu);xe(this,yl,new Map);xe(this,bo,new Map);xe(this,Ym,new Map);xe(this,Xm,new Map);xe(this,vo,null);this.messageHandler=e,this.loadingTask=n,this.commonObjs=new B8,this.fontLoader=new Tce({ownerDocument:r.ownerDocument,styleElement:r.styleElement}),this.loadingParams=r.loadingParams,this._params=r,this.canvasFactory=s.canvasFactory,this.filterFactory=s.filterFactory,this.cMapReaderFactory=s.cMapReaderFactory,this.standardFontDataFactory=s.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=i,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=Promise.withResolvers(),this.setupMessageHandler()}get annotationStorage(){return rn(this,"annotationStorage",new NM)}
165getRenderingIntent(e,n=jc.ENABLE,i=null,r=!1){let s=ra.DISPLAY,a=NP;switch(e){case"any":s=ra.ANY;break;case"display":break;case"print":s=ra.PRINT;break;default:Ut(`getRenderingIntent - invalid intent: ${e}`)}switch(n){case jc.DISABLE:s+=ra.ANNOTATIONS_DISABLE;break;case jc.ENABLE:break;case jc.ENABLE_FORMS:s+=ra.ANNOTATIONS_FORMS;break;case jc.ENABLE_STORAGE:s+=ra.ANNOTATIONS_STORAGE,a=(s&ra.PRINT&&i instanceof S8?i:this.annotationStorage).serializable;break;default:Ut(`getRenderingIntent - invalid annotationMode: ${n}`)}return r&&(s+=ra.OPLIST),{renderingIntent:s,cacheKey:`${s}_${a.hash}`,annotationStorageSerializable:a}}destroy(){var i;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=Promise.withResolvers(),(i=O(this,vo))==null||i.reject(new Error("Worker was destroyed during onPassword callback"));const e=[];for(const r of O(this,bo).values())e.push(r._destroy());O(this,bo).clear(),O(this,Ym).clear(),O(this,Xm).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const n=this.messageHandler.sendWithPromise("Terminate",null);return e.push(n),Promise.all(e).then(()=>{var r;this.commonObjs.clear(),this.fontLoader.clear(),O(this,yl).clear(),this.filterFactory.destroy(),a1.cleanup(),(r=this._networkStream)==null||r.cancelAllRequests(new pp("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:e,loadingTask:n}=this;e.on("GetReader",(i,r)=>{Pi(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=s=>{this._lastProgress={loaded:s.loaded,total:s.total}},r.onPull=()=>{this._fullReader.read().then(function({value:s,done:a}){if(a){r.close();return}Pi(s instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),r.enqueue(new Uint8Array(s),1,[s])}).catch(s=>{r.error(s)})},r.onCancel=s=>{this._fullReader.cancel(s),r.ready.catch(a=>{if(!this.destroyed)throw a})}}),e.on("ReaderHeadersReady",i=>{const r=Promise.withResolvers(),s=this._fullReader;return s.headersReady.then(()=>{var a;(!s.isStreamingSupported||!s.isRangeSupported)&&(this._lastProgress&&((a=n.onProgress)==null||a.call(n,this._lastProgress)),s.onProgress=l=>{var c;(c=n.onProgress)==null||c.call(n,{loaded:l.loaded,total:l.total})}),r.resolve({isStreamingSupported:s.isStreamingSupported,isRangeSupported:s.isRangeSupported,contentLength:s.contentLength})},r.reject),r.promise}),e.on("GetRangeReader",(i,r)=>{Pi(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const s=this._networkStream.getRangeReader(i.begin,i.end);if(!s){r.close();return}r.onPull=()=>{s.read().then(function({value:a,done:l}){if(l){r.close();return}Pi(a instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),r.enqueue(new Uint8Array(a),1,[a])}).catch(a=>{r.error(a)})},r.onCancel=a=>{s.cancel(a),r.ready.catch(l=>{if(!this.destroyed)throw l})}}),e.on("GetDoc",({pdfInfo:i})=>{this._numPages=i.numPages,this._htmlForXfa=i.htmlForXfa,delete i.htmlForXfa,n._capability.resolve(new jde(i,this))}),e.on("DocException",function(i){let r;switch(i.name){case"PasswordException":r=new oP(i.message,i.code);break;case"InvalidPDFException":r=new V$(i.message);break;case"MissingPDFException":r=new hp(i.message);break;case"UnexpectedResponseException":r=new YS(i.message,i.status);break;case"UnknownErrorException":r=new lP(i.message,i.details);break;default:kn("DocException - expected a valid Error.")}n._capability.reject(r)}),e.on("PasswordRequest",i=>{if(fe(this,vo,Promise.withResolvers()),n.onPassword){const r=s=>{s instanceof Error?O(this,vo).reject(s):O(this,vo).resolve({password:s})};try{n.onPassword(r,i.code)}catch(s){O(this,vo).reject(s)}}else O(this,vo).reject(new oP(i.message,i.code));return O(this,vo).promise}),e.on("DataLoaded",i=>{var r;(r=n.onProgress)==null||r.call(n,{loaded:i.length,total:i.length}),this.downloadInfoCapability.resolve(i)}),e.on("StartRenderPage",i=>{if(this.destroyed)return;O(this,bo).get(i.pageIndex)._startRenderPage(i.transparency,i.cacheKey)}),e.on("commonobj",([i,r,s])=>{var a;if(this.destroyed||this.commonObjs.has(i))return null;switch(r){case"Font":const{disableFontFace:l,fontExtraProperties:c,pdfBug:d}=this._params;if("error"in s){const y=s.error;Ut(`Error during font loading: ${y}`),this.commonObjs.resolve(i,y);break}const u=d&&((a=globalThis.FontInspector)!=null&&a.enabled)?(y,m)=>globalThis.FontInspector.fontAdded(y,m):null,h=new Pce(s,{disableFontFace:l,inspectFont:u});this.fontLoader.bind(h).catch(()=>
165e.sendWithPromise("FontFallback",{id:i})).finally(()=>{!c&&h.data&&(h.data=null),this.commonObjs.resolve(i,h)});break;case"CopyLocalImage":const{imageRef:p}=s;Pi(p,"The imageRef must be defined.");for(const y of O(this,bo).values())for(const[,m]of y.objs)if((m==null?void 0:m.ref)===p)return m.dataLen?(this.commonObjs.resolve(i,structuredClone(m)),m.dataLen):null;break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(i,s);break;default:throw new Error(`Got unknown common object type ${r}`)}return null}),e.on("obj",([i,r,s,a])=>{var c;if(this.destroyed)return;const l=O(this,bo).get(r);if(!l.objs.has(i)){if(l._intentStates.size===0){(c=a==null?void 0:a.bitmap)==null||c.close();return}switch(s){case"Image":l.objs.resolve(i,a),(a==null?void 0:a.dataLen)>ece&&(l._maybeCleanupAfterRender=!0);break;case"Pattern":l.objs.resolve(i,a);break;default:throw new Error(`Got unknown object type ${s}`)}}}),e.on("DocProgress",i=>{var r;this.destroyed||(r=n.onProgress)==null||r.call(n,{loaded:i.loaded,total:i.total})}),e.on("FetchBuiltInCMap",i=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.cMapReaderFactory?this.cMapReaderFactory.fetch(i):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))),e.on("FetchStandardFontData",i=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.standardFontDataFactory?this.standardFontDataFactory.fetch(i):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")))}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){var i;this.annotationStorage.size<=0&&Ut("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:e,transfer:n}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:e,filename:((i=this._fullReader)==null?void 0:i.filename)??null},n).finally(()=>{this.annotationStorage.resetModified()})}getPage(e){if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request."));const n=e-1,i=O(this,Ym).get(n);if(i)return i;const r=this.messageHandler.sendWithPromise("GetPage",{pageIndex:n}).then(s=>{if(this.destroyed)throw new Error("Transport destroyed");s.refStr&&O(this,Xm).set(s.refStr,e);const a=new Tde(n,s,this,this._params.pdfBug);return O(this,bo).set(n,a),a});return O(this,Ym).set(n,r),r}getPageIndex(e){return qO(e)?this.messageHandler.sendWithPromise("GetPageIndex",{num:e.num,gen:e.gen}):Promise.reject(new Error("Invalid pageIndex request."))}getAnnotations(e,n){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:n})}getFieldObjects(){return ye(this,qu,Qg).call(this,"GetFieldObjects")}hasJSActions(){return ye(this,qu,Qg).call(this,"HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(e){return typeof e!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return ye(this,qu,Qg).call(this,"GetDocJSActions")}getPageJSActions(e){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:e})}getStructTree(e){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:e})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(e){return ye(this,qu,Qg).call(this,"GetOptionalContentConfig").then(n=>new qce(n,e))}
165getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const e="GetMetadata",n=O(this,yl).get(e);if(n)return n;const i=this.messageHandler.sendWithPromise(e,null).then(r=>{var s,a;return{info:r[0],metadata:r[1]?new Wce(r[1]):null,contentDispositionFilename:((s=this._fullReader)==null?void 0:s.filename)??null,contentLength:((a=this._fullReader)==null?void 0:a.contentLength)??null}});return O(this,yl).set(e,i),i}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(e=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const n of O(this,bo).values())if(!n.cleanup())throw new Error(`startCleanup: Page ${n.pageNumber} is currently rendering.`);this.commonObjs.clear(),e||this.fontLoader.clear(),O(this,yl).clear(),this.filterFactory.destroy(!0),a1.cleanup()}}cachedPageNumber(e){if(!qO(e))return null;const n=e.gen===0?`${e.num}R`:`${e.num}R${e.gen}`;return O(this,Xm).get(n)??null}}yl=new WeakMap,bo=new WeakMap,Ym=new WeakMap,Xm=new WeakMap,vo=new WeakMap,qu=new WeakSet,Qg=function(e,n=null){const i=O(this,yl).get(e);if(i)return i;const r=this.messageHandler.sendWithPromise(e,n);return O(this,yl).set(e,r),r};const T0=Symbol("INITIAL_DATA");var _a,ab,BP;class B8{constructor(){xe(this,ab);xe(this,_a,Object.create(null))}get(e,n=null){if(n){const r=ye(this,ab,BP).call(this,e);return r.promise.then(()=>n(r.data)),null}const i=O(this,_a)[e];if(!i||i.data===T0)throw new Error(`Requesting object that isn't resolved yet ${e}.`);return i.data}has(e){const n=O(this,_a)[e];return!!n&&n.data!==T0}resolve(e,n=null){const i=ye(this,ab,BP).call(this,e);i.data=n,i.resolve()}clear(){var e;for(const n in O(this,_a)){const{data:i}=O(this,_a)[n];(e=i==null?void 0:i.bitmap)==null||e.close()}fe(this,_a,Object.create(null))}*[Symbol.iterator](){for(const e in O(this,_a)){const{data:n}=O(this,_a)[e];n!==T0&&(yield[e,n])}}}_a=new WeakMap,ab=new WeakSet,BP=function(e){var n;return(n=O(this,_a))[e]||(n[e]={...Promise.withResolvers(),data:T0})};var Uc;class Ade{constructor(e){xe(this,Uc,null);fe(this,Uc,e),this.onContinue=null}get promise(){return O(this,Uc).capability.promise}cancel(e=0){O(this,Uc).cancel(null,e)}get separateAnnots(){const{separateAnnots:e}=O(this,Uc).operatorList;if(!e)return!1;const{annotationCanvasMap:n}=O(this,Uc);return e.form||e.canvas&&(n==null?void 0:n.size)>0}}Uc=new WeakMap;var Wc,Ku;const tu=class tu{constructor({callback:e,params:n,objs:i,commonObjs:r,annotationCanvasMap:s,operatorList:a,pageIndex:l,canvasFactory:c,filterFactory:d,useRequestAnimationFrame:u=!1,pdfBug:h=!1,pageColors:p=null}){xe(this,Wc,null);this.callback=e,this.params=n,this.objs=i,this.commonObjs=r,this.annotationCanvasMap=s,this.operatorListIdx=null,this.operatorList=a,this._pageIndex=l,this.canvasFactory=c,this.filterFactory=d,this._pdfBug=h,this.pageColors=p,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=u===!0&&typeof window<"u",this.cancelled=!1,this.capability=Promise.withResolvers(),this.task=new Ade(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=n.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:e=!1,optionalContentConfig:n}){var l,c;if(this.cancelled)return;if(this._canvas){if(O(tu,Ku).has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");O(tu,Ku).add(this._canvas)}this._pdfBug&&((l=globalThis.StepperManager)!=null&&l.enabled)&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:i,viewport:r,transform:s,background:a}=this.params;this.gfx=new om(i,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:n},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:s,viewport:r,transparency:e,background:a}),this.operatorListIdx=0,this.graphicsReady=!0,(c=this.graphicsReadyCallback)==null||c.call(this)}cancel(e=null,n=0){var i;this.running=!1,this.cancelled=!0,(i=this.gfx)==null||i.endDrawing(),O(this,Wc)&&(window.cancelAnimationFrame(O(this,Wc)),fe(this,Wc,null)),O(tu,Ku).delete(this._canvas),this.callback(e||new TM(`Rendering cancelled, page ${this._pageIndex+1}`,n))}operatorListChanged(){var e;if(!this.graphicsReady){this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound);return}(e=this.stepper)==null||e.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?fe(this,Wc,window.requestAnimationFrame(()=>{fe(this,Wc,null),this._nextBound().catch(this._cancelBound)}
165)):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),O(tu,Ku).delete(this._canvas),this.callback())))}};Wc=new WeakMap,Ku=new WeakMap,xe(tu,Ku,new WeakSet);let $P=tu;const Nde="4.4.168",Mde="19fbc8998";function KO(t){return Math.floor(Math.max(0,Math.min(1,t))*255).toString(16).padStart(2,"0")}function Eg(t){return Math.max(0,Math.min(255,255*t))}class YO{static CMYK_G([e,n,i,r]){return["G",1-Math.min(1,.3*e+.59*i+.11*n+r)]}static G_CMYK([e]){return["CMYK",0,0,0,1-e]}static G_RGB([e]){return["RGB",e,e,e]}static G_rgb([e]){return e=Eg(e),[e,e,e]}static G_HTML([e]){const n=KO(e);return`#${n}${n}${n}`}static RGB_G([e,n,i]){return["G",.3*e+.59*n+.11*i]}static RGB_rgb(e){return e.map(Eg)}static RGB_HTML(e){return`#${e.map(KO).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([e,n,i,r]){return["RGB",1-Math.min(1,e+r),1-Math.min(1,i+r),1-Math.min(1,n+r)]}static CMYK_rgb([e,n,i,r]){return[Eg(1-Math.min(1,e+r)),Eg(1-Math.min(1,i+r)),Eg(1-Math.min(1,n+r))]}static CMYK_HTML(e){const n=this.CMYK_RGB(e).slice(1);return this.RGB_HTML(n)}static RGB_CMYK([e,n,i]){const r=1-e,s=1-n,a=1-i,l=Math.min(r,s,a);return["CMYK",r,s,a,l]}}class $8{static setupStorage(e,n,i,r,s){const a=r.getValue(n,{value:null});switch(i.name){case"textarea":if(a.value!==null&&(e.textContent=a.value),s==="print")break;e.addEventListener("input",l=>{r.setValue(n,{value:l.target.value})});break;case"input":if(i.attributes.type==="radio"||i.attributes.type==="checkbox"){if(a.value===i.attributes.xfaOn?e.setAttribute("checked",!0):a.value===i.attributes.xfaOff&&e.removeAttribute("checked"),s==="print")break;e.addEventListener("change",l=>{r.setValue(n,{value:l.target.checked?l.target.getAttribute("xfaOn"):l.target.getAttribute("xfaOff")})})}else{if(a.value!==null&&e.setAttribute("value",a.value),s==="print")break;e.addEventListener("input",l=>{r.setValue(n,{value:l.target.value})})}break;case"select":if(a.value!==null){e.setAttribute("value",a.value);for(const l of i.children)l.attributes.value===a.value?l.attributes.selected=!0:l.attributes.hasOwnProperty("selected")&&delete l.attributes.selected}e.addEventListener("input",l=>{const c=l.target.options,d=c.selectedIndex===-1?"":c[c.selectedIndex].value;r.setValue(n,{value:d})});break}}static setAttributes({html:e,element:n,storage:i=null,intent:r,linkService:s}){const{attributes:a}=n,l=e instanceof HTMLAnchorElement;a.type==="radio"&&(a.name=`${a.name}-${r}`);for(const[c,d]of Object.entries(a))if(d!=null)switch(c){case"class":d.length&&e.setAttribute(c,d.join(" "));break;case"dataId":break;case"id":e.setAttribute("data-element-id",d);break;case"style":Object.assign(e.style,d);break;case"textContent":e.textContent=d;break;default:(!l||c!=="href"&&c!=="newWindow")&&e.setAttribute(c,d)}l&&s.addLinkAttributes(e,a.href,a.newWindow),i&&a.dataId&&this.setupStorage(e,a.dataId,n,i)}static render(e){var h,p;const n=e.annotationStorage,i=e.linkService,r=e.xfaHtml,s=e.intent||"display",a=document.createElement(r.name);r.attributes&&this.setAttributes({html:a,element:r,intent:s,linkService:i});const l=s!=="richText",c=e.div;if(c.append(a),e.viewport){const y=`matrix(${e.viewport.transform.join(",")})`;c.style.transform=y}l&&c.setAttribute("class","xfaLayer xfaFont");const d=[];if(r.children.length===0){if(r.value){const y=document.createTextNode(r.value);a.append(y),l&&ly.shouldBuildText(r.name)&&d.push(y)}return{textDivs:d}}const u=[[r,-1,a]];for(;u.length>0;){const[y,m,w]=u.at(-1);if(m+1===y.children.length){u.pop();continue}const k=y.children[++u.at(-1)[1]];if(k===null)continue;const{name:b}=k;if(b==="#text"){const v=document.createTextNode(k.value);d.push(v),w.append(v);continue}const x=(h=k==null?void 0:k.attributes)!=null&&h.xmlns?document.createElementNS(k.attributes.xmlns,b):document.createElement(b);if(w.append(x),k.attributes&&this.setAttributes({html:x,element:k,storage:n,intent:s,linkService:i}),((p=k.children)==null?void 0:p.length)>0)u.push([k,-1,x]);else if(k.value){const v=document.createTextNode(k.value);l&&ly.shouldBuildText(b)&&d.push(v),x.append(v)}}for(const y of c.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))y.setAttribute("readOnly",!0);return{textDivs:d}}static update(e){const n=`matrix(${e.viewport.transform.join(",")})`;e.div.style.transform=n,e.div.hidden=!1}}const wv=1e3,Dde=9,Vh=new WeakSet;function $l(t){return{width:t[2]-t[0],height:t[3]-t[1]}}class _de{static create(e){switch(e.data.annotationType){case bi.LINK:return new H8(e);case bi.TEXT:return new Ide(e);case bi.WIDGET:switch(e.data.fieldType){case"Tx":return new Rde(e);case"Btn":return e.data.radioButton?new U8(e):e.data.checkBox?new Lde(e):new Fde(e);case"Ch":return new Bde(e);case"Sig":return new Ode(e)}return new mp(e);case bi.POPUP:return new zP(e);case bi.FREETEXT:return new Y8(e);case bi.LINE:return new Hde(e);case bi.SQUARE:return new zde(e);case bi.CIRCLE:return new Vde(e);case bi.POLYLINE:return new X8(e);case bi.CARET:return new Wde(e);case bi.INK:return new J8(e);case bi.POLYGON:return new Ude(e);case bi.HIGHLIGHT:return new Gde(e);case bi.UNDERLINE:return new qde(e);case bi.SQUIGGLY:return new Kde(e);case bi.STRIKEOUT:return new Yde(e);case bi.STAMP:return new Q8(e);case bi.FILEATTACHMENT:return new Xde(e);default:return new ci(e)}}}var Yu,Jm,Qm,ob,HP;const GM=class GM{constructor(e,{isRenderable:n=!1,ignoreBorder:i=!1,createQuadrilaterals:r=!1}={}){xe(this,ob);xe(this,Yu,null);xe(this,Jm,!1);xe(this,Qm,null);this.isRenderable=n,this.data=e.data,this.layer=e.layer,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderForms=e.renderForms,this.svgFactory=e.svgFactory,this.annotationStorage=e.annotationStorage,this.enableScripting=e.enableScripting,this.hasJSActions=e.hasJSActions,this._fieldObjects=e.fieldObjects,this.parent=e.parent,n&&
165(this.container=this._createContainer(i)),r&&this._createQuadrilaterals()}static _hasPopupData({titleObj:e,contentsObj:n,richText:i}){return!!(e!=null&&e.str||n!=null&&n.str||i!=null&&i.str)}get hasPopupData(){return GM._hasPopupData(this.data)}updateEdited(e){var i;if(!this.container)return;O(this,Yu)||fe(this,Yu,{rect:this.data.rect.slice(0)});const{rect:n}=e;n&&ye(this,ob,HP).call(this,n),(i=O(this,Qm))==null||i.popup.updateEdited(e)}resetEdited(){var e;O(this,Yu)&&(ye(this,ob,HP).call(this,O(this,Yu).rect),(e=O(this,Qm))==null||e.popup.resetEdited(),fe(this,Yu,null))}_createContainer(e){const{data:n,parent:{page:i,viewport:r}}=this,s=document.createElement("section");s.setAttribute("data-annotation-id",n.id),this instanceof mp||(s.tabIndex=wv);const{style:a}=s;if(a.zIndex=this.parent.zIndex++,n.popupRef&&s.setAttribute("aria-haspopup","dialog"),n.alternativeText&&(s.title=n.alternativeText),n.noRotate&&s.classList.add("norotate"),!n.rect||this instanceof zP){const{rotation:w}=n;return!n.hasOwnCanvas&&w!==0&&this.setRotation(w,s),s}const{width:l,height:c}=$l(n.rect);if(!e&&n.borderStyle.width>0){a.borderWidth=`${n.borderStyle.width}px`;const w=n.borderStyle.horizontalCornerRadius,k=n.borderStyle.verticalCornerRadius;if(w>0||k>0){const x=`calc(${w}px * var(--scale-factor)) / calc(${k}px * var(--scale-factor))`;a.borderRadius=x}else if(this instanceof U8){const x=`calc(${l}px * var(--scale-factor)) / calc(${c}px * var(--scale-factor))`;a.borderRadius=x}switch(n.borderStyle.style){case Tg.SOLID:a.borderStyle="solid";break;case Tg.DASHED:a.borderStyle="dashed";break;case Tg.BEVELED:Ut("Unimplemented border style: beveled");break;case Tg.INSET:Ut("Unimplemented border style: inset");break;case Tg.UNDERLINE:a.borderBottomStyle="solid";break}const b=n.borderColor||null;b?(fe(this,Jm,!0),a.borderColor=ut.makeHexColor(b[0]|0,b[1]|0,b[2]|0)):a.borderWidth=0}const d=ut.normalizeRect([n.rect[0],i.view[3]-n.rect[1]+i.view[1],n.rect[2],i.view[3]-n.rect[3]+i.view[1]]),{pageWidth:u,pageHeight:h,pageX:p,pageY:y}=r.rawDims;a.left=`${100*(d[0]-p)/u}%`,a.top=`${100*(d[1]-y)/h}%`;const{rotation:m}=n;return n.hasOwnCanvas||m===0?(a.width=`${100*l/u}%`,a.height=`${100*c/h}%`):this.setRotation(m,s),s}setRotation(e,n=this.container){if(!this.data.rect)return;const{pageWidth:i,pageHeight:r}=this.parent.viewport.rawDims,{width:s,height:a}=$l(this.data.rect);let l,c;e%180===0?(l=100*s/i,c=100*a/r):(l=100*a/i,c=100*s/r),n.style.width=`${l}%`,n.style.height=`${c}%`,n.setAttribute("data-main-rotation",(360-e)%360)}get _commonActions(){const e=(n,i,r)=>{const s=r.detail[n],a=s[0],l=s.slice(1);r.target.style[i]=YO[`${a}_HTML`](l),this.annotationStorage.setValue(this.data.id,{[i]:YO[`${a}_rgb`](l)})};return rn(this,"_commonActions",{display:n=>{const{display:i}=n.detail,r=i%2===1;this.container.style.visibility=r?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:r,noPrint:i===1||i===2})},print:n=>{this.annotationStorage.setValue(this.data.id,{noPrint:!n.detail.print})},hidden:n=>{const{hidden:i}=n.detail;this.container.style.visibility=i?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:i,noView:i})},focus:n=>{setTimeout(()=>n.target.focus({preventScroll:!1}),0)},userName:n=>{n.target.title=n.detail.userName},readonly:n=>{n.target.disabled=n.detail.readonly},required:n=>{this._setRequired(n.target,n.detail.required)},bgColor:n=>{e("bgColor","backgroundColor",n)},fillColor:n=>{e("fillColor","backgroundColor",n)},fgColor:n=>{e("fgColor","color",n)},textColor:n=>{e("textColor","color",n)},borderColor:n=>{e("borderColor","borderColor",n)},strokeColor:n=>{e("strokeColor","borderColor",n)},rotation:n=>{const i=n.detail.rotation;this.setRotation(i),this.annotationStorage.setValue(this.data.id,{rotation:i})}})}_dispatchEventFromSandbox(e,n){const i=this._commonActions;for(const r of Object.keys(n.detail)){const s=e[r]||i[r];s==null||s(n)}}_setDefaultPropertiesFromJS(e){if(!this.enableScripting)return;const n=this.annotationStorage.getRawValue(this.data.id);if(!n)return;const i=this._commonActions;for(const[r,s]of Object.entries(n)){const a=i[r];
165if(a){const l={detail:{[r]:s},target:e};a(l),delete n[r]}}}_createQuadrilaterals(){if(!this.container)return;const{quadPoints:e}=this.data;if(!e)return;const[n,i,r,s]=this.data.rect.map(w=>Math.fround(w));if(e.length===8){const[w,k,b,x]=e.subarray(2,6);if(r===w&&s===k&&n===b&&i===x)return}const{style:a}=this.container;let l;if(O(this,Jm)){const{borderColor:w,borderWidth:k}=a;a.borderWidth=0,l=["url('data:image/svg+xml;utf8,",'<svg xmlns="http://www.w3.org/2000/svg"',' preserveAspectRatio="none" viewBox="0 0 1 1">',`<g fill="transparent" stroke="${w}" stroke-width="${k}">`],this.container.classList.add("hasBorder")}const c=r-n,d=s-i,{svgFactory:u}=this,h=u.createElement("svg");h.classList.add("quadrilateralsContainer"),h.setAttribute("width",0),h.setAttribute("height",0);const p=u.createElement("defs");h.append(p);const y=u.createElement("clipPath"),m=`clippath_${this.data.id}`;y.setAttribute("id",m),y.setAttribute("clipPathUnits","objectBoundingBox"),p.append(y);for(let w=2,k=e.length;w<k;w+=8){const b=e[w],x=e[w+1],v=e[w+2],E=e[w+3],N=u.createElement("rect"),S=(v-n)/c,_=(s-x)/d,$=(b-v)/c,V=(x-E)/d;N.setAttribute("x",S),N.setAttribute("y",_),N.setAttribute("width",$),N.setAttribute("height",V),y.append(N),l==null||l.push(`<rect vector-effect="non-scaling-stroke" x="${S}" y="${_}" width="${$}" height="${V}"/>`)}O(this,Jm)&&(l.push("</g></svg>')"),a.backgroundImage=l.join("")),this.container.append(h),this.container.style.clipPath=`url(#${m})`}_createPopup(){const{container:e,data:n}=this;e.setAttribute("aria-haspopup","dialog");const i=fe(this,Qm,new zP({data:{color:n.color,titleObj:n.titleObj,modificationDate:n.modificationDate,contentsObj:n.contentsObj,richText:n.richText,parentRect:n.rect,borderStyle:0,id:`popup_${n.id}`,rotation:n.rotation},parent:this.parent,elements:[this]}));this.parent.div.append(i.render())}render(){kn("Abstract method `AnnotationElement.render` called")}_getElementsByName(e,n=null){const i=[];if(this._fieldObjects){const r=this._fieldObjects[e];if(r)for(const{page:s,id:a,exportValues:l}of r){if(s===-1||a===n)continue;const c=typeof l=="string"?l:null,d=document.querySelector(`[data-element-id="${a}"]`);if(d&&!Vh.has(d)){Ut(`_getElementsByName - element not allowed: ${a}`);continue}i.push({id:a,exportValue:c,domElement:d})}return i}for(const r of document.getElementsByName(e)){const{exportValue:s}=r,a=r.getAttribute("data-element-id");a!==n&&Vh.has(r)&&i.push({id:a,exportValue:s,domElement:r})}return i}show(){var e;this.container&&(this.container.hidden=!1),(e=this.popup)==null||e.maybeShow()}hide(){var e;this.container&&(this.container.hidden=!0),(e=this.popup)==null||e.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const e=this.getElementsToTriggerPopup();if(Array.isArray(e))for(const n of e)n.classList.add("highlightArea");else e.classList.add("highlightArea")}get _isEditable(){return!1}_editOnDoubleClick(){if(!this._isEditable)return;const{annotationEditorType:e,data:{id:n}}=this;this.container.addEventListener("dblclick",()=>{var i;(i=this.linkService.eventBus)==null||i.dispatch("switchannotationeditormode",{source:this,mode:e,editId:n})})}};Yu=new WeakMap,Jm=new WeakMap,Qm=new WeakMap,ob=new WeakSet,HP=function(e){const{container:{style:n},data:{rect:i,rotation:r},parent:{viewport:{rawDims:{pageWidth:s,pageHeight:a,pageX:l,pageY:c}}}}=this;i==null||i.splice(0,4,...e);const{width:d,height:u}=$l(e);n.left=`${100*(e[0]-l)/s}%`,n.top=`${100*(a-e[3]+c)/a}%`,r===0?(n.width=`${100*d/s}%`,n.height=`${100*u/a}%`):this.setRotation(r)};let ci=GM;var Rs,Gd,z8,V8;class H8 extends ci{constructor(n,i=null){super(n,{isRenderable:!0,ignoreBorder:!!(i!=null&&i.ignoreBorder),createQuadrilaterals:!0});xe(this,Rs);this.isTooltipOnly=n.data.isTooltipOnly}render(){const{data:n,linkService:i}=this,r=document.createElement("a");r.setAttribute("data-element-id",n.id);let s=!1;return n.url?(i.addLinkAttributes(r,n.url,n.newWindow),s=!0):n.action?(this._bindNamedAction(r,n.action),s=!0):n.attachment?(ye(this,Rs,z8).call(this,r,n.attachment,n.attachmentDest),s=!0):n.setOCGState?(ye(this,Rs,V8).call(this,r,n.setOCGState),s=!0):n.dest?(this._bindLink(r,n.dest),s=!0):(n.actions&&(n.actions.Action||n.actions["Mouse Up"]||n.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(r,n),s=!0),n.resetForm?(this._bindResetFormAction(r,n.resetForm),s=!0):this.isTooltipOnly&&!s&&(this._bindLink(r,""),s=!0)),this.container.classList.add("linkA
165nnotation"),s&&this.container.append(r),this.container}_bindLink(n,i){n.href=this.linkService.getDestinationHash(i),n.onclick=()=>(i&&this.linkService.goToDestination(i),!1),(i||i==="")&&ye(this,Rs,Gd).call(this)}_bindNamedAction(n,i){n.href=this.linkService.getAnchorUrl(""),n.onclick=()=>(this.linkService.executeNamedAction(i),!1),ye(this,Rs,Gd).call(this)}_bindJSAction(n,i){n.href=this.linkService.getAnchorUrl("");const r=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const s of Object.keys(i.actions)){const a=r.get(s);a&&(n[a]=()=>{var l;return(l=this.linkService.eventBus)==null||l.dispatch("dispatcheventinsandbox",{source:this,detail:{id:i.id,name:s}}),!1})}n.onclick||(n.onclick=()=>!1),ye(this,Rs,Gd).call(this)}_bindResetFormAction(n,i){const r=n.onclick;if(r||(n.href=this.linkService.getAnchorUrl("")),ye(this,Rs,Gd).call(this),!this._fieldObjects){Ut('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),r||(n.onclick=()=>!1);return}n.onclick=()=>{var h;r==null||r();const{fields:s,refs:a,include:l}=i,c=[];if(s.length!==0||a.length!==0){const p=new Set(a);for(const y of s){const m=this._fieldObjects[y]||[];for(const{id:w}of m)p.add(w)}for(const y of Object.values(this._fieldObjects))for(const m of y)p.has(m.id)===l&&c.push(m)}else for(const p of Object.values(this._fieldObjects))c.push(...p);const d=this.annotationStorage,u=[];for(const p of c){const{id:y}=p;switch(u.push(y),p.type){case"text":{const w=p.defaultValue||"";d.setValue(y,{value:w});break}case"checkbox":case"radiobutton":{const w=p.defaultValue===p.exportValues;d.setValue(y,{value:w});break}case"combobox":case"listbox":{const w=p.defaultValue||"";d.setValue(y,{value:w});break}default:continue}const m=document.querySelector(`[data-element-id="${y}"]`);if(m){if(!Vh.has(m)){Ut(`_bindResetFormAction - element not allowed: ${y}`);continue}}else continue;m.dispatchEvent(new Event("resetform"))}return this.enableScripting&&((h=this.linkService.eventBus)==null||h.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:u,name:"ResetForm"}})),!1}}}Rs=new WeakSet,Gd=function(){this.container.setAttribute("data-internal-link","")},z8=function(n,i,r=null){n.href=this.linkService.getAnchorUrl(""),i.description&&(n.title=i.description),n.onclick=()=>{var s;return(s=this.downloadManager)==null||s.openOrDownloadData(i.content,i.filename,r),!1},ye(this,Rs,Gd).call(this)},V8=function(n,i){n.href=this.linkService.getAnchorUrl(""),n.onclick=()=>(this.linkService.executeSetOCGState(i),!1),ye(this,Rs,Gd).call(this)};class Ide extends ci{constructor(e){super(e,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");const e=document.createElement("img");return e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.setAttribute("data-l10n-id","pdfjs-text-annotation-type"),e.setAttribute("data-l10n-args",JSON.stringify({type:this.data.name})),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(e),this.container}}class mp extends ci{render(){return this.container}showElementAndHideCanvas(e){var n;this.data.hasOwnCanvas&&(((n=e.previousSibling)==null?void 0:n.nodeName)==="CANVAS"&&(e.previousSibling.hidden=!0),e.hidden=!1)}_getKeyModifier(e){return is.platform.isMac?e.metaKey:e.ctrlKey}_setEventListener(e,n,i,r,s){i.includes("mouse")?e.addEventListener(i,a=>{var l;(l=this.linkService.eventBus)==null||l.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:r,value:s(a),shift:a.shiftKey,modifier:this._getKeyModifier(a)}})}):e.addEventListener(i,a=>{var l;if(i==="blur"){if(!n.focused||!a.relatedTarget)return;n.focused=!1}else if(i==="focus"){if(n.focused)return;n.focused=!0}s&&((l=this.linkService.eventBus)==null||l.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:r,value:s(a)}}))})}_setEventListeners(e,n,i,r){var s,a,l;for(const[c,d]of i)(d==="Action"||(s=this.data.actions)!=null&&s[d])&&((d==="Focus"||d==="Blur")&&(n||(n={focused:!1})),this._setEventListener(e,n,c,d,r),d==="Focus"&&!((a=this.data.actions)!=null&&a.Blur)?this._setEventListener(e,n,"blur","Blur",null):d==="Blur"&&!((l=this.data.actions)!=null&&l.Focus)&&this._setEventListener(e,n,"focus","Focus",null))}
165_setBackgroundColor(e){const n=this.data.backgroundColor||null;e.style.backgroundColor=n===null?"transparent":ut.makeHexColor(n[0],n[1],n[2])}_setTextStyle(e){const n=["left","center","right"],{fontColor:i}=this.data.defaultAppearanceData,r=this.data.defaultAppearanceData.fontSize||Dde,s=e.style;let a;const l=2,c=d=>Math.round(10*d)/10;if(this.data.multiLine){const d=Math.abs(this.data.rect[3]-this.data.rect[1]-l),u=Math.round(d/(_2*r))||1,h=d/u;a=Math.min(r,c(h/_2))}else{const d=Math.abs(this.data.rect[3]-this.data.rect[1]-l);a=Math.min(r,c(d/_2))}s.fontSize=`calc(${a}px * var(--scale-factor))`,s.color=ut.makeHexColor(i[0],i[1],i[2]),this.data.textAlignment!==null&&(s.textAlign=n[this.data.textAlignment])}_setRequired(e,n){n?e.setAttribute("required",!0):e.removeAttribute("required"),e.setAttribute("aria-required",n)}}class Rde extends mp{constructor(e){const n=e.renderForms||e.data.hasOwnCanvas||!e.data.hasAppearance&&!!e.data.fieldValue;super(e,{isRenderable:n})}setPropertyOnSiblings(e,n,i,r){const s=this.annotationStorage;
165for(const a of this._getElementsByName(e.name,e.id))a.domElement&&(a.domElement[n]=i),s.setValue(a.id,{[r]:i})}render(){var r,s;const e=this.annotationStorage,n=this.data.id;this.container.classList.add("textWidgetAnnotation");let i=null;if(this.renderForms){const a=e.getValue(n,{value:this.data.fieldValue});let l=a.value||"";const c=e.getValue(n,{charLimit:this.data.maxLen}).charLimit;c&&l.length>c&&(l=l.slice(0,c));let d=a.formattedValue||((r=this.data.textContent)==null?void 0:r.join(` 166`))||null;d&&this.data.comb&&(d=d.replaceAll(/\s+/g,""));const u={userValue:l,formattedValue:d,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(i=document.createElement("textarea"),i.textContent=d??l,this.data.doNotScroll&&(i.style.overflowY="hidden")):(i=document.createElement("input"),i.type="text",i.setAttribute("value",d??l),this.data.doNotScroll&&(i.style.overflowX="hidden")),this.data.hasOwnCanvas&&(i.hidden=!0),Vh.add(i),i.setAttribute("data-element-id",n),i.disabled=this.data.readOnly,i.name=this.data.fieldName,i.tabIndex=wv,this._setRequired(i,this.data.required),c&&(i.maxLength=c),i.addEventListener("input",p=>{e.setValue(n,{value:p.target.value}),this.setPropertyOnSiblings(i,"value",p.target.value,"value"),u.formattedValue=null}),i.addEventListener("resetform",p=>{const y=this.data.defaultFieldValue??"";i.value=u.userValue=y,u.formattedValue=null});let h=p=>{const{formattedValue:y}=u;y!=null&&(p.target.value=y),p.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){i.addEventListener("focus",y=>{var w;if(u.focused)return;const{target:m}=y;u.userValue&&(m.value=u.userValue),u.lastCommittedValue=m.value,u.commitKey=1,(w=this.data.actions)!=null&&w.Focus||(u.focused=!0)}),i.addEventListener("updatefromsandbox",y=>{this.showElementAndHideCanvas(y.target);const m={value(w){u.userValue=w.detail.value??"",e.setValue(n,{value:u.userValue.toString()}),w.target.value=u.userValue},formattedValue(w){const{formattedValue:k}=w.detail;u.formattedValue=k,k!=null&&w.target!==document.activeElement&&(w.target.value=k),e.setValue(n,{formattedValue:k})},selRange(w){w.target.setSelectionRange(...w.detail.selRange)},charLimit:w=>{var v;const{charLimit:k}=w.detail,{target:b}=w;if(k===0){b.removeAttribute("maxLength");return}b.setAttribute("maxLength",k);let x=u.userValue;!x||x.length<=k||(x=x.slice(0,k),b.value=u.userValue=x,e.setValue(n,{value:x}),(v=this.linkService.eventBus)==null||v.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:x,willCommit:!0,commitKey:1,selStart:b.selectionStart,selEnd:b.selectionEnd}}))}};this._dispatchEventFromSandbox(m,y)}),i.addEventListener("keydown",y=>{var k;u.commitKey=1;let m=-1;if(y.key==="Escape"?m=0:y.key==="Enter"&&!this.data.multiLine?m=2:y.key==="Tab"&&(u.commitKey=3),m===-1)return;const{value:w}=y.target;u.lastCommittedValue!==w&&(u.lastCommittedValue=w,u.userValue=w,(k=this.linkService.eventBus)==null||k.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:w,willCommit:!0,commitKey:m,selStart:y.target.selectionStart,selEnd:y.target.selectionEnd}}))});const p=h;h=null,i.addEventListener("blur",y=>{var w,k;if(!u.focused||!y.relatedTarget)return;(w=this.data.actions)!=null&&w.Blur||(u.focused=!1);const{value:m}=y.target;u.userValue=m,u.lastCommittedValue!==m&&((k=this.linkService.eventBus)==null||k.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:m,willCommit:!0,commitKey:u.commitKey,selStart:y.target.selectionStart,selEnd:y.target.selectionEnd}})),p(y)}),(s=this.data.actions)!=null&&s.Keystroke&&i.addEventListener("beforeinput",y=>{var N;u.lastCommittedValue=null;const{data:m,target:w}=y,{value:k,selectionStart:b,selectionEnd:x}=w;let v=b,E=x;switch(y.inputType){case"deleteWordBackward":{const S=k.substring(0,b).match(/\w*[^\w]*$/);S&&(v-=S[0].length);break}
vendor: 6,306 bytes, line 166
166case"deleteWordForward":{const S=k.substring(b).match(/^[^\w]*\w*/);S&&(E+=S[0].length);break}case"deleteContentBackward":b===x&&(v-=1);break;case"deleteContentForward":b===x&&(E+=1);break}y.preventDefault(),(N=this.linkService.eventBus)==null||N.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:k,change:m||"",willCommit:!1,selStart:v,selEnd:E}})}),this._setEventListeners(i,u,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],y=>y.target.value)}if(h&&i.addEventListener("blur",h),this.data.comb){const y=(this.data.rect[2]-this.data.rect[0])/c;i.classList.add("comb"),i.style.letterSpacing=`calc(${y}px * var(--scale-factor) - 1ch)`}}else i=document.createElement("div"),i.textContent=this.data.fieldValue,i.style.verticalAlign="middle",i.style.display="table-cell",this.data.hasOwnCanvas&&(i.hidden=!0);return this._setTextStyle(i),this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}}class Ode extends mp{constructor(e){super(e,{isRenderable:!!e.data.hasOwnCanvas})}}class Lde extends mp{constructor(e){super(e,{isRenderable:e.renderForms})}render(){const e=this.annotationStorage,n=this.data,i=n.id;let r=e.getValue(i,{value:n.exportValue===n.fieldValue}).value;typeof r=="string"&&(r=r!=="Off",e.setValue(i,{value:r})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const s=document.createElement("input");return Vh.add(s),s.setAttribute("data-element-id",i),s.disabled=n.readOnly,this._setRequired(s,this.data.required),s.type="checkbox",s.name=n.fieldName,r&&s.setAttribute("checked",!0),s.setAttribute("exportValue",n.exportValue),s.tabIndex=wv,s.addEventListener("change",a=>{const{name:l,checked:c}=a.target;for(const d of this._getElementsByName(l,i)){const u=c&&d.exportValue===n.exportValue;d.domElement&&(d.domElement.checked=u),e.setValue(d.id,{value:u})}e.setValue(i,{value:c})}),s.addEventListener("resetform",a=>{const l=n.defaultFieldValue||"Off";a.target.checked=l===n.exportValue}),this.enableScripting&&this.hasJSActions&&(s.addEventListener("updatefromsandbox",a=>{const l={value(c){c.target.checked=c.detail.value!=="Off",e.setValue(i,{value:c.target.checked})}};this._dispatchEventFromSandbox(l,a)}),this._setEventListeners(s,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],a=>a.target.checked)),this._setBackgroundColor(s),this._setDefaultPropertiesFromJS(s),this.container.append(s),this.container}}class U8 extends mp{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const e=this.annotationStorage,n=this.data,i=n.id;let r=e.getValue(i,{value:n.fieldValue===n.buttonValue}).value;if(typeof r=="string"&&(r=r!==n.buttonValue,e.setValue(i,{value:r})),r)for(const a of this._getElementsByName(n.fieldName,i))e.setValue(a.id,{value:!1});const s=document.createElement("input");if(Vh.add(s),s.setAttribute("data-element-id",i),s.disabled=n.readOnly,this._setRequired(s,this.data.required),s.type="radio",s.name=n.fieldName,r&&s.setAttribute("checked",!0),s.tabIndex=wv,s.addEventListener("change",a=>{const{name:l,checked:c}=a.target;for(const d of this._getElementsByName(l,i))e.setValue(d.id,{value:!1});e.setValue(i,{value:c})}),s.addEventListener("resetform",a=>{const l=n.defaultFieldValue;a.target.checked=l!=null&&l===n.buttonValue}),this.enableScripting&&this.hasJSActions){const a=n.buttonValue;s.addEventListener("updatefromsandbox",l=>{const c={value:d=>{const u=a===d.detail.value;for(const h of this._getElementsByName(d.target.name)){const p=u&&h.id===i;h.domElement&&(h.domElement.checked=p),e.setValue(h.id,{value:p})}}};this._dispatchEventFromSandbox(c,l)}),this._setEventListeners(s,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],l=>l.target.checked)}return this._setBackgroundColor(s),this._setDefaultPropertiesFromJS(s),this.container.append(s),this.container}}class Fde extends H8{constructor(e){super(e,{ignoreBorder:e.data.hasAppearance})}render(){const e=super.render();e.classList.add("buttonWidgetAnnotation","pushButton");const n=e.lastChild;return this.enableScripting&&this.hasJSActions&&n&&(this._setDefaultPropertiesFromJS(n),n.addEventListener("updatefromsandbox",i=>{this._dispatchEventFromSandbox({},i)})),e}}class Bde extends mp{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const e=this.annotationStorage,n=this.data.id,i=e.getValue(n,{value:this.data.fieldValue}),r=document.createElement("select");Vh.add(r),r.setAttribute("data-element-id",n),r.disabled=this.data.readOnly,this._setRequired(r,this.data.required),r.name=this.data.fieldName,r.tabIndex=wv;let s=this.data.combo&&this.data.options.length>0;this.data.combo||(r.size=this.data.options.length,this.data.multiSelect&&(r.multiple=!0)),r.addEventListener("resetform",u=>{const h=this.data.defaultFieldValue;for(const p of r.options)p.selected=p.value===h});for(const u of this.data.options){const h=document.createElement("option");h.textContent=u.displayValue,h.value=u.exportValue,i.value.includes(u.exportValue)&&(h.setAttribute("selected",!0),s=!1),r.append(h)}let a=null;if(s){const u=document.createElement("option");u.value=" ",u.setAttribute("hidden",!0),u.setAttribute("selected",!0),r.prepend(u),a=()=>{u.remove(),r.removeEventListener("input",a),a=null},r.addEventListener("input",a)}const l=u=>{const h=u?"value":"textContent",{options:p,multiple:y}=r;return y?Array.prototype.filter.call(p,m=>m.selected).map(m=>m[h]):p.selectedIndex===-1?null:p[p.selectedIndex][h]};let c=l(!1);const d=u=>{const h=u.target.options;return Array.prototype.map.call(h,p=>({displayValue:p.textContent,exportValue:p.value}))};return this.enableScripting&&this.hasJSActions?(r.addEventListener("updatefromsandbox",u=>{const h={value(p){a==null||a();const y=p.detail.value,m=new Set(Array.isArray(y)?y:[y]);for(const w of r.options)w.selected=m.has(w.value);
166e.setValue(n,{value:l(!0)}),c=l(!1)},multipleSelection(p){r.multiple=!0},remove(p){const y=r.options,m=p.detail.remove;y[m].selected=!1,r.remove(m),y.length>0&&Array.prototype.findIndex.call(y,k=>k.selected)===-1&&(y[0].selected=!0),e.setValue(n,{value:l(!0),items:d(p)}),c=l(!1)},clear(p){for(;r.length!==0;)r.remove(0);e.setValue(n,{value:null,items:[]}),c=l(!1)},insert(p){const{index:y,displayValue:m,exportValue:w}=p.detail.insert,k=r.children[y],b=document.createElement("option");b.textContent=m,b.value=w,k?k.before(b):r.append(b),e.setValue(n,{value:l(!0),items:d(p)}),c=l(!1)},items(p){const{items:y}=p.detail;for(;r.length!==0;)r.remove(0);for(const m of y){const{displayValue:w,exportValue:k}=m,b=document.createElement("option");b.textContent=w,b.value=k,r.append(b)}r.options.length>0&&(r.options[0].selected=!0),e.setValue(n,{value:l(!0),items:d(p)}),c=l(!1)},indices(p){const y=new Set(p.detail.indices);for(const m of p.target.options)m.selected=y.has(m.index);e.setValue(n,{value:l(!0)}),c=l(!1)},editable(p){p.target.disabled=!p.detail.editable}};this._dispatchEventFromSandbox(h,u)}),r.addEventListener("input",u=>{var y;const h=l(!0),p=l(!1);e.setValue(n,{value:h}),u.preventDefault(),(y=this.linkService.eventBus)==null||y.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:c,change:p,changeEx:h,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(r,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],u=>u.target.value)):r.addEventListener("input",function(u){e.setValue(n,{value:l(!0)})}),this.data.combo&&this._setTextStyle(r),this._setBackgroundColor(r),this._setDefaultPropertiesFromJS(r),this.container.append(r),this.container}}class zP extends ci{constructor(e){const{data:n,elements:i}=e;super(e,{isRenderable:ci._hasPopupData(n)}),this.elements=i,this.popup=null}render(){this.container.classList.add("popupAnnotation");const e=this.popup=new $de({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),n=[];for(const i of this.elements)i.popup=e,n.push(i.data.id),i.addHighlightArea();return this.container.setAttribute("aria-controls",n.map(i=>`${W$}${i}`).join(",")),this.container}}var Zm,E1,A1,ef,Xu,Jn,bl,Ju,lb,cb,tf,vl,Ia,wl,db,kl,ub,Qu,Zu,Sn,Tw,VP,W8,G8,q8,K8,Pw,Ew,UP;class $de{constructor({container:e,color:n,elements:i,titleObj:r,modificationDate:s,contentsObj:a,richText:l,parent:c,rect:d,parentRect:u,open:h}){xe(this,Sn);xe(this,Zm,ye(this,Sn,q8).bind(this));xe(this,E1,ye(this,Sn,UP).bind(this));xe(this,A1,ye(this,Sn,Ew).bind(this));xe(this,ef,ye(this,Sn,Pw).bind(this));xe(this,Xu,null);xe(this,Jn,null);xe(this,bl,null);xe(this,Ju,null);xe(this,lb,null);xe(this,cb,null);xe(this,tf,null);xe(this,vl,!1);xe(this,Ia,null);xe(this,wl,null);xe(this,db,null);xe(this,kl,null);xe(this,ub,null);xe(this,Qu,null);xe(this,Zu,!1);var p;fe(this,Jn,e),fe(this,ub,r),fe(this,bl,a),fe(this,kl,l),fe(this,cb,c),fe(this,Xu,n),fe(this,db,d),fe(this,tf,u),fe(this,lb,i),fe(this,Ju,X$.toDateObject(s)),this.trigger=i.flatMap(y=>y.getElementsToTriggerPopup());for(const y of this.trigger)y.addEventListener("click",O(this,ef)),y.addEventListener("mouseenter",O(this,A1)),y.addEventListener("mouseleave",O(this,E1)),y.classList.add("popupTriggerArea");for(const y of i)(p=y.container)==null||p.addEventListener("keydown",O(this,Zm));O(this,Jn).hidden=!0,h&&ye(this,Sn,Pw).call(this)}render(){if(O(this,Ia))return;const e=fe(this,Ia,document.createElement("div"));if(e.className="popup",O(this,Xu)){const s=e.style.outlineColor=ut.makeHexColor(...O(this,Xu));CSS.supports("background-color","color-mix(in srgb, red 30%, white)")?e.style.backgroundColor=`color-mix(in srgb, ${s} 30%, white)`:e.style.backgroundColor=ut.makeHexColor(...O(this,Xu).map(l=>Math.floor(.7*(255-l)+l)))}const n=document.createElement("span");n.className="header";const i=document.createElement("h1");if(n.append(i),{dir:i.dir,str:i.textContent}=O(this,ub),e.append(n),O(this,Ju)){const s=document.createElement("span");s.classList.add("popupDate"),s.setAttribute("data-l10n-id","pdfjs-annotation-date-string"),s.setAttribute("data-l10n-args",JSON.stringify({date:O(this,Ju).toLocaleDateString(),time:O(this,Ju).toLocaleTimeString()})),n.append(s)}const r=O(this,Sn,Tw);if(r)$8.render({xfaHtml:r,intent:"richText",div:e}),e.lastChild.classList.add("richText","popupContent");else{const s=this._formatContents(O(this,bl));e.append(s)}O(this,Jn).append(e)}_formatContents({str:e,dir:n}){const i=document.createElement("p");i.classList.add("popupContent"),i.dir=n;const r=e.split(/(?:\r\n?|\n)/);for(let s=0,a=r.length;s<a;++s){const l=r[s];i.append(document.createTextNode(l)),s<a-1&&i.append(document.createElement("br"))}return i}updateEdited({rect:e,popupContent:n}){var i;O(this,Qu)||fe(this,Qu,{contentsObj:O(this,bl),richText:O(this,kl)}
166),e&&fe(this,wl,null),n&&(fe(this,kl,ye(this,Sn,G8).call(this,n)),fe(this,bl,null)),(i=O(this,Ia))==null||i.remove(),fe(this,Ia,null)}resetEdited(){var e;O(this,Qu)&&({contentsObj:lr(this,bl)._,richText:lr(this,kl)._}=O(this,Qu),fe(this,Qu,null),(e=O(this,Ia))==null||e.remove(),fe(this,Ia,null),fe(this,wl,null))}forceHide(){fe(this,Zu,this.isVisible),O(this,Zu)&&(O(this,Jn).hidden=!0)}maybeShow(){O(this,Zu)&&(O(this,Ia)||ye(this,Sn,Ew).call(this),fe(this,Zu,!1),O(this,Jn).hidden=!1)}get isVisible(){return O(this,Jn).hidden===!1}}Zm=new WeakMap,E1=new WeakMap,A1=new WeakMap,ef=new WeakMap,Xu=new WeakMap,Jn=new WeakMap,bl=new WeakMap,Ju=new WeakMap,lb=new WeakMap,cb=new WeakMap,tf=new WeakMap,vl=new WeakMap,Ia=new WeakMap,wl=new WeakMap,db=new WeakMap,kl=new WeakMap,ub=new WeakMap,Qu=new WeakMap,Zu=new WeakMap,Sn=new WeakSet,Tw=function(){const e=O(this,kl),n=O(this,bl);return e!=null&&e.str&&(!(n!=null&&n.str)||n.str===e.str)&&O(this,kl).html||null},VP=function(){var e,n,i;return((i=(n=(e=O(this,Sn,Tw))==null?void 0:e.attributes)==null?void 0:n.style)==null?void 0:i.fontSize)||0},W8=function(){var e,n,i;return((i=(n=(e=O(this,Sn,Tw))==null?void 0:e.attributes)==null?void 0:n.style)==null?void 0:i.color)||null},G8=function(e){const n=[],i={str:e,html:{name:"div",attributes:{dir:"auto"},children:[{name:"p",children:n}]}},r={style:{color:O(this,Sn,W8),fontSize:O(this,Sn,VP)?`calc(${O(this,Sn,VP)}px * var(--scale-factor))`:""}};for(const s of e.split(` 167`))n.push({name:"span",value:s,attributes:r});return i},q8=function(e){e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||(e.key==="Enter"||e.key==="Escape"&&O(this,vl))&&ye(this,Sn,Pw).call(this)},K8=function(){if(O(this,wl)!==null)return;const{page:{view:e},viewport:{rawDims:{pageWidth:n,pageHeight:i,pageX:r,pageY:s}}}=O(this,cb);let a=!!O(this,tf),l=a?O(this,tf):O(this,db);for(const m of O(this,lb))if(!l||ut.intersect(m.data.rect,l)!==null){l=m.data.rect,a=!0;break}const c=ut.normalizeRect([l[0],e[3]-l[1]+e[1],l[2],e[3]-l[3]+e[1]]),u=a?l[2]-l[0]+5:0,h=c[0]+u,p=c[1];fe(this,wl,[100*(h-r)/n,100*(p-s)/i]);const{style:y}=O(this,Jn);y.left=`${O(this,wl)[0]}%`,y.top=`${O(this,wl)[1]}%`},Pw=function(){fe(this,vl,!O(this,vl)),O(this,vl)?(ye(this,Sn,Ew).call(this),O(this,Jn).addEventListener("click",O(this,ef)),O(this,Jn).addEventListener("keydown",O(this,Zm))):(ye(this,Sn,UP).call(this),O(this,Jn).removeEventListener("click",O(this,ef)),O(this,Jn).removeEventListener("keydown",O(this,Zm)))},Ew=function(){O(this,Ia)||this.render(),this.isVisible?O(this,vl)&&O(this,Jn).classList.add("focused"):(ye(this,Sn,K8).call(this),O(this,Jn).hidden=!1,O(this,Jn).style.zIndex=parseInt(O(this,Jn).style.zIndex)+1e3)},UP=function(){O(this,Jn).classList.remove("focused"),!(O(this,vl)||!this.isVisible)&&(O(this,Jn).hidden=!0,O(this,Jn).style.zIndex=parseInt(O(this,Jn).style.zIndex)-1e3)};class Y8 extends ci{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.textContent=e.data.textContent,this.textPosition=e.data.textPosition,this.annotationEditorType=en.FREETEXT}render(){if(this.container.classList.add("freeTextAnnotation"),this.textContent){const e=document.createElement("div");e.classList.add("annotationTextContent"),e.setAttribute("role","comment");for(const n of this.textContent){const i=document.createElement("span");i.textContent=n,e.append(i)}this.container.append(e)}return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}get _isEditable(){return this.data.hasOwnCanvas}}var hb;class Hde extends ci{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});xe(this,hb,null)}render(){this.container.classList.add("lineAnnotation");const n=this.data,{width:i,height:r}=$l(n.rect),s=this.svgFactory.create(i,r,!0),a=fe(this,hb,this.svgFactory.createElement("svg:line"));return a.setAttribute("x1",n.rect[2]-n.lineCoordinates[0]),a.setAttribute("y1",n.rect[3]-n.lineCoordinates[1]),a.setAttribute("x2",n.rect[2]-n.lineCoordinates[2]),a.setAttribute("y2",n.rect[3]-n.lineCoordinates[3]),a.setAttribute("stroke-width",n.borderStyle.width||1),a.setAttribute("stroke","transparent"),a.setAttribute("fill","transparent"),s.append(a),this.container.append(s),!n.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return O(this,hb)}addHighlightArea(){this.container.classList.add("highlightArea")}}hb=new WeakMap;var pb;class zde extends ci{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});xe(this,pb,null)}render(){this.container.classList.add("squareAnnotation");const n=this.data,{width:i,height:r}=$l(n.rect),s=this.svgFactory.create(i,r,!0),a=n.borderStyle.width,l=fe(this,pb,this.svgFactory.createElement("svg:rect"));return l.setAttribute("x",a/2),l.setAttribute("y",a/2),l.setAttribute("width",i-a),l.setAttribute("height",r-a),l.setAttribute("stroke-width",a||1),l.setAttribute("stroke","transparent"),l.setAttribute("fill","transparent"),s.append(l),this.container.append(s),!n.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return O(this,pb)}addHighlightArea(){this.container.classList.add("highlightArea")}}pb=new WeakMap;var mb;class Vde extends ci{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});xe(this,mb,null)}render(){this.container.classList.add("circleAnnotation");const n=this.data,{width:i,height:r}=$l(n.rect),s=this.svgFactory.create(i,r,!0),a=n.borderStyle.width,l=fe(this,mb,this.svgFactory.createElement("svg:ellipse"));
167return l.setAttribute("cx",i/2),l.setAttribute("cy",r/2),l.setAttribute("rx",i/2-a/2),l.setAttribute("ry",r/2-a/2),l.setAttribute("stroke-width",a||1),l.setAttribute("stroke","transparent"),l.setAttribute("fill","transparent"),s.append(l),this.container.append(s),!n.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return O(this,mb)}addHighlightArea(){this.container.classList.add("highlightArea")}}mb=new WeakMap;var fb;class X8 extends ci{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});xe(this,fb,null);this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.classList.add(this.containerClassName);const{data:{rect:n,vertices:i,borderStyle:r,popupRef:s}}=this;if(!i)return this.container;const{width:a,height:l}=$l(n),c=this.svgFactory.create(a,l,!0);let d=[];for(let h=0,p=i.length;h<p;h+=2){const y=i[h]-n[0],m=n[3]-i[h+1];d.push(`${y},${m}`)}d=d.join(" ");const u=fe(this,fb,this.svgFactory.createElement(this.svgElementName));return u.setAttribute("points",d),u.setAttribute("stroke-width",r.width||1),u.setAttribute("stroke","transparent"),u.setAttribute("fill","transparent"),c.append(u),this.container.append(c),!s&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return O(this,fb)}addHighlightArea(){this.container.classList.add("highlightArea")}}fb=new WeakMap;class Ude extends X8{constructor(e){super(e),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class Wde extends ci{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){return this.container.classList.add("caretAnnotation"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container}}var gb;class J8 extends ci{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});xe(this,gb,[]);this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline",this.annotationEditorType=en.INK}render(){this.container.classList.add(this.containerClassName);const{data:{rect:n,inkLists:i,borderStyle:r,popupRef:s}}=this,{width:a,height:l}=$l(n),c=this.svgFactory.create(a,l,!0);for(const d of i){let u=[];for(let p=0,y=d.length;p<y;p+=2){const m=d[p]-n[0],w=n[3]-d[p+1];u.push(`${m},${w}`)}u=u.join(" ");const h=this.svgFactory.createElement(this.svgElementName);O(this,gb).push(h),h.setAttribute("points",u),h.setAttribute("stroke-width",r.width||1),h.setAttribute("stroke","transparent"),h.setAttribute("fill","transparent"),!s&&this.hasPopupData&&this._createPopup(),c.append(h)}return this.container.append(c),this.container}getElementsToTriggerPopup(){return O(this,gb)}addHighlightArea(){this.container.classList.add("highlightArea")}}gb=new WeakMap;class Gde extends ci{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("highlightAnnotation"),this.container}}class qde extends ci{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("underlineAnnotation"),this.container}}class Kde extends ci{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("squigglyAnnotation"),this.container}}class Yde extends ci{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("strikeoutAnnotation"),this.container}}class Q8 extends ci{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){return this.container.classList.add("stampAnnotation"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container}}var xb,yb,WP;class Xde extends ci{constructor(n){var r;super(n,{isRenderable:!0});xe(this,yb);xe(this,xb,null);const{file:i}=this.data;this.filename=i.filename,this.content=i.content,(r=this.linkService.eventBus)==null||r.dispatch("fileattachmentannotation",{source:this,...i})}render(){this.container.classList.add("fileAttachmentAnnotation");const{container:n,data:i}=this;let r;i.hasAppearance||i.fillAlpha===0?r=document.createElement("div"):(r=document.createElement("img"),r.src=`${this.imageResourcesPath}annotation-${/paperclip/i.test(i.name)?"paperclip":"pushpin"}.svg`,i.fillAlpha&&i.fillAlpha<1&&(r.style=`filter: opacity(${Math.round(i.fillAlpha*100)}%);`)),r.addEventListener("dblclick",ye(this,yb,WP).bind(this)),fe(this,xb,r);const{isMac:s}=is.platform;return n.addEventListener("keydown",a=>{a.key==="Enter"&&(s?a.metaKey:a.ctrlKey)&&ye(this,yb,WP).call(this)}),!i.popupRef&&this.hasPopupData?this._createPopup():r.classList.add("popupTriggerArea"),n.append(r),n}getElementsToTriggerPopup(){return O(this,xb)}addHighlightArea(){this.container.classList.add("highlightArea")}}xb=new WeakMap,yb=new WeakSet,WP=function(){var n;(n=this.downloadManager)==null||n.openOrDownloadData(this.content,this.filename)};var bb,eh,nf,Gh,Z8,GP,OL;let Jde=(OL=class{constructor({div:e,accessibilityManager:n,annotationCanvasMap:i,annotationEditorUIManager:r,page:s,viewport:
167a}){xe(this,Gh);xe(this,bb,null);xe(this,eh,null);xe(this,nf,new Map);this.div=e,fe(this,bb,n),fe(this,eh,i),this.page=s,this.viewport=a,this.zIndex=0,this._annotationEditorUIManager=r}async render(e){var a;const{annotations:n}=e,i=this.div;Hh(i,this.viewport);const r=new Map,s={data:null,layer:i,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderForms:e.renderForms!==!1,svgFactory:new jM,annotationStorage:e.annotationStorage||new NM,enableScripting:e.enableScripting===!0,hasJSActions:e.hasJSActions,fieldObjects:e.fieldObjects,parent:this,elements:null};for(const l of n){if(l.noHTML)continue;const c=l.annotationType===bi.POPUP;if(c){const h=r.get(l.id);if(!h)continue;s.elements=h}else{const{width:h,height:p}=$l(l.rect);if(h<=0||p<=0)continue}s.data=l;const d=_de.create(s);if(!d.isRenderable)continue;if(!c&&l.popupRef){const h=r.get(l.popupRef);h?h.push(d):r.set(l.popupRef,[d])}const u=d.render();l.hidden&&(u.style.visibility="hidden"),ye(this,Gh,Z8).call(this,u,l.id),d.annotationEditorType>0&&(O(this,nf).set(d.data.id,d),(a=this._annotationEditorUIManager)==null||a.renderAnnotationElement(d))}ye(this,Gh,GP).call(this)}update({viewport:e}){const n=this.div;this.viewport=e,Hh(n,{rotation:e.rotation}),ye(this,Gh,GP).call(this),n.hidden=!1}getEditableAnnotations(){return Array.from(O(this,nf).values())}getEditableAnnotation(e){return O(this,nf).get(e)}},bb=new WeakMap,eh=new WeakMap,nf=new WeakMap,Gh=new WeakSet,Z8=function(e,n){var r;const i=e.firstChild||e;i.id=`${W$}${n}`,this.div.append(e),(r=O(this,bb))==null||r.moveElementInDOM(this.div,e,i,!1)},GP=function(){if(!O(this,eh))return;const e=this.div;for(const[n,i]of O(this,eh)){const r=e.querySelector(`[data-annotation-id="${n}"]`);if(!r)continue;i.className="annotationContent";const{firstChild:s}=r;s?s.nodeName==="CANVAS"?s.replaceWith(i):s.classList.contains("annotationContent")?s.after(i):s.before(i):r.append(i)}O(this,eh).clear()},OL);const P0=/\r\n?|\n/g;var vb,wb,kb,Sb,Cb,Ra,ks,jb,Ss,rf,gi,eH,tH,nH,Aw,Vl,Nw,Mw,iH,KP,rH;const En=class En extends yn{constructor(n){super({...n,name:"freeTextEditor"});xe(this,gi);xe(this,vb,this.editorDivBlur.bind(this));xe(this,wb,this.editorDivFocus.bind(this));xe(this,kb,this.editorDivInput.bind(this));xe(this,Sb,this.editorDivKeydown.bind(this));xe(this,Cb,this.editorDivPaste.bind(this));xe(this,Ra);xe(this,ks,"");xe(this,jb,`${this.id}-editor`);xe(this,Ss);xe(this,rf,null);fe(this,Ra,n.color||En._defaultColor||yn._defaultLineColor),fe(this,Ss,n.fontSize||En._defaultFontSize)}static get _keyboardManager(){const n=En.prototype,i=a=>a.isEmpty(),r=zh.TRANSLATE_SMALL,s=zh.TRANSLATE_BIG;return rn(this,"_keyboardManager",new bv([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],n.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],n.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],n._translateEmpty,{args:[-r,0],checker:i}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],n._translateEmpty,{args:[-s,0],checker:i}],[["ArrowRight","mac+ArrowRight"],n._translateEmpty,{args:[r,0],checker:i}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],n._translateEmpty,{args:[s,0],checker:i}],[["ArrowUp","mac+ArrowUp"],n._translateEmpty,{args:[0,-r],checker:i}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],n._translateEmpty,{args:[0,-s],checker:i}],[["ArrowDown","mac+ArrowDown"],n._translateEmpty,{args:[0,r],checker:i}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],n._translateEmpty,{args:[0,s],checker:i}]]))}static initialize(n,i){yn.initialize(n,i,{strings:["pdfjs-free-text-default-content"]});const r=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(r.getPropertyValue("--freetext-padding"))}static updateDefaultParams(n,i){switch(n){case Ct.FREETEXT_SIZE:En._defaultFontSize=i;break;case Ct.FREETEXT_COLOR:En._defaultColor=i;break}}updateParams(n,i){switch(n){case Ct.FREETEXT_SIZE:ye(this,gi,eH).call(this,i);break;case Ct.FREETEXT_COLOR:ye(this,gi,tH).call(this,i);break}}static get defaultPropertiesToUpdate(){return[[Ct.FREETEXT_SIZE,En._defaultFontSize],[Ct.FREETEXT_COLOR,En._defaultColor||yn._defaultLineColor]]}
167get propertiesToUpdate(){return[[Ct.FREETEXT_SIZE,O(this,Ss)],[Ct.FREETEXT_COLOR,O(this,Ra)]]}_translateEmpty(n,i){this._uiManager.translateSelectedEditors(n,i,!0)}getInitialTranslation(){const n=this.parentScale;return[-En._internalPadding*n,-(En._internalPadding+O(this,Ss))*n]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){if(this.isInEditMode())return;this.parent.setEditingState(!1),this.parent.updateToolbar(en.FREETEXT),super.enableEditMode(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant");const n=this._uiManager._signal;this.editorDiv.addEventListener("keydown",O(this,Sb),{signal:n}),this.editorDiv.addEventListener("focus",O(this,wb),{signal:n}),this.editorDiv.addEventListener("blur",O(this,vb),{signal:n}),this.editorDiv.addEventListener("input",O(this,kb),{signal:n}),this.editorDiv.addEventListener("paste",O(this,Cb),{signal:n})}disableEditMode(){this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",O(this,jb)),this._isDraggable=!0,this.editorDiv.removeEventListener("keydown",O(this,Sb)),this.editorDiv.removeEventListener("focus",O(this,wb)),this.editorDiv.removeEventListener("blur",O(this,vb)),this.editorDiv.removeEventListener("input",O(this,kb)),this.editorDiv.removeEventListener("paste",O(this,Cb)),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freetextEditing"))}focusin(n){this._focusEventsAllowed&&(super.focusin(n),n.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(){var n;this.width||(this.enableEditMode(),this.editorDiv.focus(),(n=this._initialOptions)!=null&&n.isCentered&&this.center(),this._initialOptions=null)}isEmpty(){return!this.editorDiv||this.editorDiv.innerText.trim()===""}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freetextEditing")),super.remove()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();const n=O(this,ks),i=fe(this,ks,ye(this,gi,nH).call(this).trimEnd());if(n===i)return;const r=s=>{if(fe(this,ks,s),!s){this.remove();return}ye(this,gi,Mw).call(this),this._uiManager.rebuild(this),ye(this,gi,Aw).call(this)};this.addCommands({cmd:()=>{r(i)},undo:()=>{r(n)},mustExec:!1}),ye(this,gi,Aw).call(this)}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}dblclick(n){this.enterInEditMode()}keydown(n){n.target===this.div&&n.key==="Enter"&&(this.enterInEditMode(),n.preventDefault())}editorDivKeydown(n){En._keyboardManager.exec(this,n)}editorDivFocus(n){this.isEditing=!0}editorDivBlur(n){this.isEditing=!1}editorDivInput(n){this.parent.div.classList.toggle("freetextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(this.div)return this.div;let n,i;this.width&&(n=this.x,i=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",O(this,jb)),this.editorDiv.setAttribute("data-l10n-id","pdfjs-free-text"),this.enableEditing(),yn._l10nPromise.get("pdfjs-free-text-default-content").then(s=>{var a;return(a=this.editorDiv)==null?void 0:a.setAttribute("default-content",s)}),this.editorDiv.contentEditable=!0;const{style:r}=this.editorDiv;if(r.fontSize=`calc(${O(this,Ss)}px * var(--scale-factor))`,r.color=O(this,Ra),this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),i1(this,this.div,["dblclick","keydown"]),this.width){const[s,a]=this.parentDimensions;if(this.annotationElementId){const{position:l}=O(this,rf);let[c,d]=this.getInitialTranslation();[c,d]=this.pageTranslationToScreen(c,d);const[u,h]=this.pageDimensions,[p,y]=this.pageTranslation;let m,w;switch(this.rotation){case 0:m=n+(l[0]-p)/u,w=i+this.height-(l[1]-y)/h;break;case 90:m=n+(l[0]-p)/u,w=i-(l[1]-y)/h,[c,d]=[d,-c];break;case 180:m=n-this.width+(l[0]-p)/u,w=i-(l[1]-y)/h,[c,d]=[-c,-d];break;case 270:m=n+(l[0]-p-this.height*h)/u,w=i+(l[1]-y-this.width*u)/h,[c,d]=[-d,c];break}this.setAt(m*s,w*a,c,d)}else this.setAt(n*s,i*a,this.width*s,this.height*a);ye(this,gi,Mw).call(this),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}editorDivPaste(n){var m,w,k;const i=n.clipboardData||window.clipboardData,{types:r}=i;if(r.length===1&&r[0]==="text/plain")return;n.preventDefault();const s=ye(m=En,Vl,KP).call(m,i.getData("text")||"").replaceAll(P0,` 168`);
168if(!s)return;const a=window.getSelection();if(!a.rangeCount)return;this.editorDiv.normalize(),a.deleteFromDocument();const l=a.getRangeAt(0);if(!s.includes(` 169`)){l.insertNode(document.createTextNode(s)),this.editorDiv.normalize(),a.collapseToStart();return}const{startContainer:c,startOffset:d}=l,u=[],h=[];if(c.nodeType===Node.TEXT_NODE){const b=c.parentElement;if(h.push(c.nodeValue.slice(d).replaceAll(P0,"")),b!==this.editorDiv){let x=u;for(const v of this.editorDiv.childNodes){if(v===b){x=h;continue}x.push(ye(w=En,Vl,Nw).call(w,v))}}u.push(c.nodeValue.slice(0,d).replaceAll(P0,""))}else if(c===this.editorDiv){let b=u,x=0;for(const v of this.editorDiv.childNodes)x++===d&&(b=h),b.push(ye(k=En,Vl,Nw).call(k,v))}fe(this,ks,`${u.join(` 170`)}${s}${h.join(` 171`)}`),ye(this,gi,Mw).call(this);const p=new Range;let y=u.reduce((b,x)=>b+x.length,0);for(const{firstChild:b}of this.editorDiv.childNodes)if(b.nodeType===Node.TEXT_NODE){const x=b.nodeValue.length;if(y<=x){p.setStart(b,y),p.setEnd(b,y);break}y-=x}a.removeAllRanges(),a.addRange(p)}get contentDiv(){return this.editorDiv}static deserialize(n,i,r){var l;let s=null;if(n instanceof Y8){const{data:{defaultAppearanceData:{fontSize:c,fontColor:d},rect:u,rotation:h,id:p},textContent:y,textPosition:m,parent:{page:{pageNumber:w}}}=n;if(!y||y.length===0)return null;s=n={annotationType:en.FREETEXT,color:Array.from(d),fontSize:c,value:y.join(` 172`),position:m,pageIndex:w-1,rect:u.slice(0),rotation:h,id:p,deleted:!1}}const a=super.deserialize(n,i,r);return fe(a,Ss,n.fontSize),fe(a,Ra,ut.makeHexColor(...n.color)),fe(a,ks,ye(l=En,Vl,KP).call(l,n.value)),a.annotationElementId=n.id||null,fe(a,rf,s),a}serialize(n=!1){if(this.isEmpty())return null;if(this.deleted)return{pageIndex:this.pageIndex,id:this.annotationElementId,deleted:!0};const i=En._internalPadding*this.parentScale,r=this.getRect(i,i),s=yn._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:O(this,Ra)),a={annotationType:en.FREETEXT,color:s,fontSize:O(this,Ss),value:ye(this,gi,iH).call(this),pageIndex:this.pageIndex,rect:r,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return n?a:this.annotationElementId&&!ye(this,gi,rH).call(this,a)?null:(a.id=this.annotationElementId,a)}renderAnnotationElement(n){const i=super.renderAnnotationElement(n);if(this.deleted)return i;const{style:r}=i;r.fontSize=`calc(${O(this,Ss)}px * var(--scale-factor))`,r.color=O(this,Ra),i.replaceChildren();for(const a of O(this,ks).split(` 173`)){const l=document.createElement("div");l.append(a?document.createTextNode(a):document.createElement("br")),i.append(l)}const s=En._internalPadding*this.parentScale;return n.updateEdited({rect:this.getRect(s,s),popupContent:O(this,ks)}),i}resetAnnotationElement(n){super.resetAnnotationElement(n),n.resetEdited()}};vb=new WeakMap,wb=new WeakMap,kb=new WeakMap,Sb=new WeakMap,Cb=new WeakMap,Ra=new WeakMap,ks=new WeakMap,jb=new WeakMap,Ss=new WeakMap,rf=new WeakMap,gi=new WeakSet,eH=function(n){const i=s=>{this.editorDiv.style.fontSize=`calc(${s}px * var(--scale-factor))`,this.translate(0,-(s-O(this,Ss))*this.parentScale),fe(this,Ss,s),ye(this,gi,Aw).call(this)},r=O(this,Ss);this.addCommands({cmd:i.bind(this,n),undo:i.bind(this,r),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:Ct.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})},tH=function(n){const i=s=>{fe(this,Ra,this.editorDiv.style.color=s)},r=O(this,Ra);this.addCommands({cmd:i.bind(this,n),undo:i.bind(this,r),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:Ct.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})},nH=function(){var i;const n=[];this.editorDiv.normalize();for(const r of this.editorDiv.childNodes)n.push(ye(i=En,Vl,Nw).call(i,r));return n.join(` 174`)},Aw=function(){const[n,i]=this.parentDimensions;let r;if(this.isAttachedToDOM)r=this.div.getBoundingClientRect();else{const{currentLayer:s,div:a}=this,l=a.style.display,c=a.classList.contains("hidden");a.classList.remove("hidden"),a.style.display="hidden",s.div.append(this.div),r=a.getBoundingClientRect(),a.remove(),a.style.display=l,a.classList.toggle("hidden",c)}this.rotation%180===this.parentRotation%180?(this.width=r.width/n,this.height=r.height/i):(this.width=r.height/n,this.height=r.width/i),this.fixAndSetPosition()},Vl=new WeakSet,Nw=function(n){return(n.nodeType===Node.TEXT_NODE?n.nodeValue:n.innerText).replaceAll(P0,"")},Mw=function(){if(this.editorDiv.replaceChildren(),!!O(this,ks))for(const n of O(this,ks).split(` 175`)){const i=document.createElement("div");i.append(n?document.createTextNode(n):document.createElement("br")),this.editorDiv.append(i)}},iH=function(){return O(this,ks).replaceAll("Â "," ")},KP=function(n){return n.replaceAll(" ","Â ")},rH=function(n){const{value:i,fontSize:r,color:s,pageIndex:a}=O(this,rf);return this._hasBeenMoved||n.value!==i||n.fontSize!==r||n.color.some((l,c)=>l!==s[c])||n.pageIndex!==a},xe(En,Vl),Tt(En,"_freeTextDefaultContent",""),Tt(En,"_internalPadding",0),Tt(En,"_defaultColor",null),Tt(En,"_defaultFontSize",10),Tt(En,"_type","freetext"),Tt(En,"_editorType",en.FREETEXT);let qP=En;var Tb,Gc,Oa,Lr,sH,Dw,aH,oH,XP;class YP{constructor(e,n=0,i=0,r=!0){xe(this,Lr);xe(this,Tb);xe(this,Gc,[]);xe(this,Oa,[]);let s=1/0,a=-1/0,l=1/0,c=-1/0;const u=10**-4;for(const{x:b,y:x,width:v,height:E}of e){const N=Math.floor((b-n)/u)*u,S=Math.ceil((b+v+n)/u)*u,_=Math.floor((x-n)/u)*u,$=Math.ceil((x+E+n)/u)*u,V=[N,_,$,!0],I=[S,_,$,!1];O(this,Gc).push(V,I),s=Math.min(s,N),a=Math.max(a,S),l=Math.min(l,_),c=Math.max(c,$)}const h=a-s+2*i,p=c-l+2*i,y=s-i,m=l-i,w=O(this,Gc).at(r?-1:-2),k=[w[0],w[2]];for(const b of O(this,Gc)){const[x,v,E]=b;b[0]=(x-y)/h,b[1]=(v-m)/p,b[2]=(E-m)/p}fe(this,Tb,{x:y,y:m,width:h,height:p,lastPoint:k})}getOutlines(){O(this,Gc).sort((n,i)=>n[0]-i[0]||n[1]-i[1]||n[2]-i[2]);const e=[];for(const n of O(this,Gc))n[3]?(e.push(...ye(this,Lr,XP).call(this,n)),ye(this,Lr,aH).call(this,n)):(ye(this,Lr,oH).call(this,n),e.push(...ye(this,Lr,XP).call(this,n)));return ye(this,Lr,sH).call(this,e)}}Tb=new WeakMap,Gc=new WeakMap,Oa=new WeakMap,Lr=new WeakSet,sH=function(e){const n=[],i=new Set;for(const a of e){const[l,c,d]=a;n.push([l,c,a],[l,d,a])}n.sort((a,l)=>a[1]-l[1]||a[0]-l[0]);for(let a=0,l=n.length;a<l;a+=2){const c=n[a][2],d=n[a+1][2];c.push(d),d.push(c),i.add(c),i.add(d)}const r=[];let s;for(;i.size>0;){const a=i.values().next().value;let[l,c,d,u,h]=a;i.delete(a);let p=l,y=c;for(s=[l,d],r.push(s);;){let m;if(i.has(u))m=u;else if(i.has(h))m=h;else break;i.delete(m),[l,c,d,u,h]=m,p!==l&&(s.push(p,y,l,y===c?c:d),p=l),y=y===c?d:c}s.push(p,y)}return new Qde(r,O(this,Tb))},Dw=function(e){const n=O(this,Oa);let i=0,r=n.length-1;for(;i<=r;){const s=i+r>>1,a=n[s][0];if(a===e)return s;a<e?i=s+1:r=s-1}return r+1},aH=function([,e,n]){const i=ye(this,Lr,Dw).call(this,e);O(this,Oa).splice(i,0,[e,n])},oH=function([,e,n]){const i=ye(this,Lr,Dw).call(this,e);for(let r=i;r<O(this,Oa).length;r++){const[s,a]=O(this,Oa)[r];if(s!==e)break;if(s===e&&a===n){O(this,Oa).splice(r,1);return}}for(let r=i-1;r>=0;r--){const[s,a]=O(this,Oa)[r];if(s!==e)break;if(s===e&&a===n){O(this,Oa).splice(r,1);return}}},XP=function(e){const[n,i,r]=e,s=[[n,i,r]],a=ye(this,Lr,Dw).call(this,r);for(let l=0;l<a;l++){const[c,d]=O(this,Oa)[l];for(let u=0,h=s.length;u<h;u++){const[,p,y]=s[u];if(!(d<=p||y<=c)){if(p>=c){if(y>d)s[u][1]=d;else{if(h===1)return[];s.splice(u,1),u--,h--}continue}s[u][2]=c,y>d&&s.push([n,d,y])}}}return s};class lH{toSVGPath(){throw new Error("Abstract method `toSVGPath` must be implemented.")}get box(){throw new Error("Abstract getter `box` must be implemented.")}serialize(e,n){throw new Error("Abstract method `serialize` must be implemented.")}get free(){return this instanceof QP}}var Pb,sf;class Qde extends lH{constructor(n,i){super();xe(this,Pb);xe(this,sf);fe(this,sf,n),fe(this,Pb,i)}toSVGPath(){const n=[];for(const i of O(this,sf)){let[r,s]=i;n.push(`M${r} ${s}`);for(let a=2;a<i.length;a+=2){const l=i[a],c=i[a+1];l===r?(n.push(`V${c}`),s=c):c===s&&(n.push(`H${l}`),r=l)}n.push("Z")}return n.join(" ")}serialize([n,i,r,s],a){const l=[],c=r-n,d=s-i;for(const u of O(this,sf)){const h=new Array(u.length);for(let p=0;p<u.length;p+=2)h[p]=n+u[p]*c,h[p+1]=s-u[p+1]*d;l.push(h)}return l}get box(){return O(this,Pb)}}Pb=new WeakMap,sf=new WeakMap;var wo,Sl,af,of,ko,Zt,th,nh,Eb,Ab,lf,cf,qc,Nb,N1,M1,Mb,JP;const il=class il{constructor({x:e,y:n},i,r,s,a,l=0){xe(this,Mb);xe(this,wo);xe(this,Sl,[]);xe(this,af);xe(this,of);xe(this,ko,[]);xe(this,Zt,new Float64Array(18));xe(this,th);xe(this,nh);xe(this,Eb);xe(this,Ab);xe(this,lf);xe(this,cf);xe(this,qc,[]);fe(this,wo,i),fe(this,cf,s*r),fe(this,of,a),O(this,Zt).set([NaN,NaN,NaN,NaN,e,n],6),fe(this,af,l),fe(this,Ab,O(il,Nb)*r),fe(this,Eb,O(il,M1)*r),fe(this,lf,r),O(this,qc).push(e,n)}get free(){return!0}isEmpty(){return isNaN(O(this,Zt)[8])}add({x:e,y:n}){var V;fe(this,th,e),fe(this,nh,n);const[i,r,s,a]=O(this,wo);let[l,c,d,u]=O(this,Zt).subarray(8,12);const h=e-d,p=n-u,y=Math.hypot(h,p);if(y<O(this,Eb))return!1;const m=y-O(this,Ab),w=m/y,k=w*h,b=w*p;let x=l,v=c;
175l=d,c=u,d+=k,u+=b,(V=O(this,qc))==null||V.push(e,n);const E=-b/m,N=k/m,S=E*O(this,cf),_=N*O(this,cf);return O(this,Zt).set(O(this,Zt).subarray(2,8),0),O(this,Zt).set([d+S,u+_],4),O(this,Zt).set(O(this,Zt).subarray(14,18),12),O(this,Zt).set([d-S,u-_],16),isNaN(O(this,Zt)[6])?(O(this,ko).length===0&&(O(this,Zt).set([l+S,c+_],2),O(this,ko).push(NaN,NaN,NaN,NaN,(l+S-i)/s,(c+_-r)/a),O(this,Zt).set([l-S,c-_],14),O(this,Sl).push(NaN,NaN,NaN,NaN,(l-S-i)/s,(c-_-r)/a)),O(this,Zt).set([x,v,l,c,d,u],6),!this.isEmpty()):(O(this,Zt).set([x,v,l,c,d,u],6),Math.abs(Math.atan2(v-c,x-l)-Math.atan2(b,k))<Math.PI/2?([l,c,d,u]=O(this,Zt).subarray(2,6),O(this,ko).push(NaN,NaN,NaN,NaN,((l+d)/2-i)/s,((c+u)/2-r)/a),[l,c,x,v]=O(this,Zt).subarray(14,18),O(this,Sl).push(NaN,NaN,NaN,NaN,((x+l)/2-i)/s,((v+c)/2-r)/a),!0):([x,v,l,c,d,u]=O(this,Zt).subarray(0,6),O(this,ko).push(((x+5*l)/6-i)/s,((v+5*c)/6-r)/a,((5*l+d)/6-i)/s,((5*c+u)/6-r)/a,((l+d)/2-i)/s,((c+u)/2-r)/a),[d,u,l,c,x,v]=O(this,Zt).subarray(12,18),O(this,Sl).push(((x+5*l)/6-i)/s,((v+5*c)/6-r)/a,((5*l+d)/6-i)/s,((5*c+u)/6-r)/a,((l+d)/2-i)/s,((c+u)/2-r)/a),!0))}toSVGPath(){if(this.isEmpty())return"";const e=O(this,ko),n=O(this,Sl),i=O(this,Zt).subarray(4,6),r=O(this,Zt).subarray(16,18),[s,a,l,c]=O(this,wo),[d,u,h,p]=ye(this,Mb,JP).call(this);if(isNaN(O(this,Zt)[6])&&!this.isEmpty())return`M${(O(this,Zt)[2]-s)/l} ${(O(this,Zt)[3]-a)/c} L${(O(this,Zt)[4]-s)/l} ${(O(this,Zt)[5]-a)/c} L${d} ${u} L${h} ${p} L${(O(this,Zt)[16]-s)/l} ${(O(this,Zt)[17]-a)/c} L${(O(this,Zt)[14]-s)/l} ${(O(this,Zt)[15]-a)/c} Z`;const y=[];y.push(`M${e[4]} ${e[5]}`);for(let m=6;m<e.length;m+=6)isNaN(e[m])?y.push(`L${e[m+4]} ${e[m+5]}`):y.push(`C${e[m]} ${e[m+1]} ${e[m+2]} ${e[m+3]} ${e[m+4]} ${e[m+5]}`);y.push(`L${(i[0]-s)/l} ${(i[1]-a)/c} L${d} ${u} L${h} ${p} L${(r[0]-s)/l} ${(r[1]-a)/c}`);for(let m=n.length-6;m>=6;m-=6)isNaN(n[m])?y.push(`L${n[m+4]} ${n[m+5]}`):y.push(`C${n[m]} ${n[m+1]} ${n[m+2]} ${n[m+3]} ${n[m+4]} ${n[m+5]}`);return y.push(`L${n[4]} ${n[5]} Z`),y.join(" ")}getOutlines(){var b;const e=O(this,ko),n=O(this,Sl),i=O(this,Zt),r=i.subarray(4,6),s=i.subarray(16,18),[a,l,c,d]=O(this,wo),u=new Float64Array((((b=O(this,qc))==null?void 0:b.length)??0)+2);for(let x=0,v=u.length-2;x<v;x+=2)u[x]=(O(this,qc)[x]-a)/c,u[x+1]=(O(this,qc)[x+1]-l)/d;u[u.length-2]=(O(this,th)-a)/c,u[u.length-1]=(O(this,nh)-l)/d;const[h,p,y,m]=ye(this,Mb,JP).call(this);if(isNaN(i[6])&&!this.isEmpty()){const x=new Float64Array(36);return x.set([NaN,NaN,NaN,NaN,(i[2]-a)/c,(i[3]-l)/d,NaN,NaN,NaN,NaN,(i[4]-a)/c,(i[5]-l)/d,NaN,NaN,NaN,NaN,h,p,NaN,NaN,NaN,NaN,y,m,NaN,NaN,NaN,NaN,(i[16]-a)/c,(i[17]-l)/d,NaN,NaN,NaN,NaN,(i[14]-a)/c,(i[15]-l)/d],0),new QP(x,u,O(this,wo),O(this,lf),O(this,af),O(this,of))}const w=new Float64Array(O(this,ko).length+24+O(this,Sl).length);let k=e.length;for(let x=0;x<k;x+=2){if(isNaN(e[x])){w[x]=w[x+1]=NaN;continue}w[x]=e[x],w[x+1]=e[x+1]}w.set([NaN,NaN,NaN,NaN,(r[0]-a)/c,(r[1]-l)/d,NaN,NaN,NaN,NaN,h,p,NaN,NaN,NaN,NaN,y,m,NaN,NaN,NaN,NaN,(s[0]-a)/c,(s[1]-l)/d],k),k+=24;for(let x=n.length-6;x>=6;x-=6)for(let v=0;v<6;v+=2){if(isNaN(n[x+v])){w[k]=w[k+1]=NaN,k+=2;continue}w[k]=n[x+v],w[k+1]=n[x+v+1],k+=2}return w.set([NaN,NaN,NaN,NaN,n[4],n[5]],k),new QP(w,u,O(this,wo),O(this,lf),O(this,af),O(this,of))}};wo=new WeakMap,Sl=new WeakMap,af=new WeakMap,of=new WeakMap,ko=new WeakMap,Zt=new WeakMap,th=new WeakMap,nh=new WeakMap,Eb=new WeakMap,Ab=new WeakMap,lf=new WeakMap,cf=new WeakMap,qc=new WeakMap,Nb=new WeakMap,N1=new WeakMap,M1=new WeakMap,Mb=new WeakSet,JP=function(){const e=O(this,Zt).subarray(4,6),n=O(this,Zt).subarray(16,18),[i,r,s,a]=O(this,wo);return[(O(this,th)+(e[0]-n[0])/2-i)/s,(O(this,nh)+(e[1]-n[1])/2-r)/a,(O(this,th)+(n[0]-e[0])/2-i)/s,(O(this,nh)+(n[1]-e[1])/2-r)/a]},xe(il,Nb,8),xe(il,N1,2),xe(il,M1,O(il,Nb)+O(il,N1));let o1=il;var df,ih,Cl,Db,Cs,_b,si,rs,Zg,ex,cH;class QP extends lH{constructor(n,i,r,s,a,l){super();xe(this,rs);xe(this,df);xe(this,ih,null);xe(this,Cl);xe(this,Db);xe(this,Cs);xe(this,_b);xe(this,si);fe(this,si,n),fe(this,Cs,i),fe(this,df,r),fe(this,_b,s),fe(this,Cl,a),fe(this,Db,l),ye(this,rs,cH).call(this,l);const{x:c,y:d,width:u,height:h}=O(this,ih);for(let p=0,y=n.length;p<y;p+=2)n[p]=(n[p]-c)/u,n[p+1]=(n[p+1]-d)/h;for(let p=0,y=i.length;p<y;p+=2)i[p]=(i[p]-c)/u,i[p+1]=(i[p+1]-d)/h}toSVGPath(){const n=[`M${O(this,si)[4]} ${O(this,si)[5]}`];for(let i=6,r=O(this,si).length;i<r;i+=6){if(isNaN(O(this,si)[i])){n.push(`L${O(this,si)[i+4]} ${O(this,si)[i+5]}`);continue}n.push(`C${O(this,si)[i]} ${O(this,si)[i+1]} ${O(this,si)[i+2]} ${O(this,si)[i+3]} ${O(this,si)[i+4]} ${O(this,si)[i+5]}`)}return n.push("Z"),n.join(" ")}serialize([n,i,r,s],a){const l=r-n,c=s-i;let d,u;switch(a){case 0:d=ye(this,rs,Zg).call(this,O(this,si),n,s,l,-c),u=ye(this,rs,Zg).call(this,O(this,Cs),n,s,l,-c);break;case 90:d=ye(this,rs,ex).call(this,O(this,si),n,i,l,c),u=ye(this,rs,ex).call(this,O(this,Cs),n,i,l,c);break;case 180:d=ye(this,rs,Zg).call(this,O(this,si),r,i,-l,c),u=ye(this,rs,Zg).call(this,O(this,Cs),r,i,-l,c);break;case 270:d=ye(this,rs,ex).call(this,O(this,si),r,s,-l,-c),u=ye(this,rs,ex).call(this,O(this,Cs),r,s,-l,-c);break}
175return{outline:Array.from(d),points:[Array.from(u)]}}get box(){return O(this,ih)}getNewOutline(n,i){const{x:r,y:s,width:a,height:l}=O(this,ih),[c,d,u,h]=O(this,df),p=a*u,y=l*h,m=r*u+c,w=s*h+d,k=new o1({x:O(this,Cs)[0]*p+m,y:O(this,Cs)[1]*y+w},O(this,df),O(this,_b),n,O(this,Db),i??O(this,Cl));for(let b=2;b<O(this,Cs).length;b+=2)k.add({x:O(this,Cs)[b]*p+m,y:O(this,Cs)[b+1]*y+w});return k.getOutlines()}}df=new WeakMap,ih=new WeakMap,Cl=new WeakMap,Db=new WeakMap,Cs=new WeakMap,_b=new WeakMap,si=new WeakMap,rs=new WeakSet,Zg=function(n,i,r,s,a){const l=new Float64Array(n.length);for(let c=0,d=n.length;c<d;c+=2)l[c]=i+n[c]*s,l[c+1]=r+n[c+1]*a;return l},ex=function(n,i,r,s,a){const l=new Float64Array(n.length);for(let c=0,d=n.length;c<d;c+=2)l[c]=i+n[c+1]*s,l[c+1]=r+n[c]*a;return l},cH=function(n){const i=O(this,si);let r=i[4],s=i[5],a=r,l=s,c=r,d=s,u=r,h=s;const p=n?Math.max:Math.min;for(let b=6,x=i.length;b<x;b+=6){if(isNaN(i[b]))a=Math.min(a,i[b+4]),l=Math.min(l,i[b+5]),c=Math.max(c,i[b+4]),d=Math.max(d,i[b+5]),h<i[b+5]?(u=i[b+4],h=i[b+5]):h===i[b+5]&&(u=p(u,i[b+4]));else{const v=ut.bezierBoundingBox(r,s,...i.slice(b,b+6));a=Math.min(a,v[0]),l=Math.min(l,v[1]),c=Math.max(c,v[2]),d=Math.max(d,v[3]),h<v[3]?(u=v[2],h=v[3]):h===v[3]&&(u=p(u,v[2]))}r=i[b+4],s=i[b+5]}const y=a-O(this,Cl),m=l-O(this,Cl),w=c-a+2*O(this,Cl),k=d-l+2*O(this,Cl);fe(this,ih,{x:y,y:m,width:w,height:k,lastPoint:[u,h]})};var Ib,Rb,La,rh,uf,ki,Ob,hf,Lb,Fb,Fa,pf,Pn,ZP,eE,dH,qd,uH,xc;const rl=class rl{constructor({editor:e=null,uiManager:n=null}){xe(this,Pn);xe(this,Ib,ye(this,Pn,dH).bind(this));xe(this,Rb,ye(this,Pn,uH).bind(this));xe(this,La,null);xe(this,rh,null);xe(this,uf);xe(this,ki,null);xe(this,Ob,!1);xe(this,hf,!1);xe(this,Lb,null);xe(this,Fb);xe(this,Fa,null);xe(this,pf);var i;e?(fe(this,hf,!1),fe(this,pf,Ct.HIGHLIGHT_COLOR),fe(this,Lb,e)):(fe(this,hf,!0),fe(this,pf,Ct.HIGHLIGHT_DEFAULT_COLOR)),fe(this,Fa,(e==null?void 0:e._uiManager)||n),fe(this,Fb,O(this,Fa)._eventBus),fe(this,uf,(e==null?void 0:e.color)||((i=O(this,Fa))==null?void 0:i.highlightColors.values().next().value)||"#FFFF98")}static get _keyboardManager(){return rn(this,"_keyboardManager",new bv([[["Escape","mac+Escape"],rl.prototype._hideDropdownFromKeyboard],[[" ","mac+ "],rl.prototype._colorSelectFromKeyboard],[["ArrowDown","ArrowRight","mac+ArrowDown","mac+ArrowRight"],rl.prototype._moveToNext],[["ArrowUp","ArrowLeft","mac+ArrowUp","mac+ArrowLeft"],rl.prototype._moveToPrevious],[["Home","mac+Home"],rl.prototype._moveToBeginning],[["End","mac+End"],rl.prototype._moveToEnd]]))}renderButton(){const e=fe(this,La,document.createElement("button"));e.className="colorPicker",e.tabIndex="0",e.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-button"),e.setAttribute("aria-haspopup",!0);const n=O(this,Fa)._signal;e.addEventListener("click",ye(this,Pn,qd).bind(this),{signal:n}),e.addEventListener("keydown",O(this,Ib),{signal:n});const i=fe(this,rh,document.createElement("span"));return i.className="swatch",i.setAttribute("aria-hidden",!0),i.style.backgroundColor=O(this,uf),e.append(i),e}renderMainDropdown(){const e=fe(this,ki,ye(this,Pn,ZP).call(this));return e.setAttribute("aria-orientation","horizontal"),e.setAttribute("aria-labelledby","highlightColorPickerLabel"),e}_colorSelectFromKeyboard(e){if(e.target===O(this,La)){ye(this,Pn,qd).call(this,e);return}const n=e.target.getAttribute("data-color");n&&ye(this,Pn,eE).call(this,n,e)}_moveToNext(e){var n,i;if(!O(this,Pn,xc)){ye(this,Pn,qd).call(this,e);return}if(e.target===O(this,La)){(n=O(this,ki).firstChild)==null||n.focus();return}(i=e.target.nextSibling)==null||i.focus()}_moveToPrevious(e){var n,i;if(e.target===((n=O(this,ki))==null?void 0:n.firstChild)||e.target===O(this,La)){O(this,Pn,xc)&&this._hideDropdownFromKeyboard();return}O(this,Pn,xc)||ye(this,Pn,qd).call(this,e),(i=e.target.previousSibling)==null||i.focus()}_moveToBeginning(e){var n;if(!O(this,Pn,xc)){ye(this,Pn,qd).call(this,e);return}(n=O(this,ki).firstChild)==null||n.focus()}_moveToEnd(e){var n;if(!O(this,Pn,xc)){ye(this,Pn,qd).call(this,e);return}(n=O(this,ki).lastChild)==null||n.focus()}hideDropdown(){var e;(e=O(this,ki))==null||e.classList.add("hidden"),window.removeEventListener("pointerdown",O(this,Rb))}_hideDropdownFromKeyboard(){var e;if(!O(this,hf)){if(!O(this,Pn,xc)){(e=O(this,Lb))==null||e.unselect();return}this.hideDropdown(),O(this,La).focus({preventScroll:!0,focusVisible:O(this,Ob)})}}updateColor(e){if(O(this,rh)&&(O(this,rh).style.backgroundColor=e),!O(this,ki))return;const n=O(this,Fa).highlightColors.values();for(const i of O(this,ki).children)i.setAttribute("aria-selected",n.next().value===e)}destroy(){var e,n;(e=O(this,La))==null||e.remove(),fe(this,La,null),fe(this,rh,null),(n=O(this,ki))==null||n.remove(),fe(this,ki,null)}};Ib=new WeakMap,Rb=new WeakMap,La=new WeakMap,rh=new WeakMap,uf=new WeakMap,ki=new WeakMap,Ob=new WeakMap,hf=new WeakMap,Lb=new WeakMap,Fb=new WeakMap,Fa=new WeakMap,pf=new WeakMap,Pn=new WeakSet,ZP=function(){const e=document.createElement("div"),n=O(this,Fa)._signal;e.addEventListener("contextmenu",ds,{signal:n}),e.className="dropdown",e.role="listbox",e.setAttribute("aria-multiselectable",!1),e.setAttribute("aria-orientation","vertical"),e.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-dropdown");for(const[i,r]of O(this,Fa).highlightColors){const s=document.createElement("button");s.tabIndex="0",s.role="option",s.setAttribute("data-color",r),s.title=i,s.setAttribute("data-l10n-id",`pdfjs-editor-colorpicker-${i}`);const a=document.createElement("span");s.append(a),a.className="swatch",a.style.backgroundColor=r,s.setAttribute("aria-selected",r===O(this,uf)),s.addEventListener("click",ye(this,Pn,eE).bind(this,r),{signal:n}),e.append(s)}return e.addEventListener("keydown",O(this,Ib),{signal:n}),e}
175,eE=function(e,n){n.stopPropagation(),O(this,Fb).dispatch("switchannotationeditorparams",{source:this,type:O(this,pf),value:e})},dH=function(e){rl._keyboardManager.exec(this,e)},qd=function(e){if(O(this,Pn,xc)){this.hideDropdown();return}if(fe(this,Ob,e.detail===0),window.addEventListener("pointerdown",O(this,Rb),{signal:O(this,Fa)._signal}),O(this,ki)){O(this,ki).classList.remove("hidden");return}const n=fe(this,ki,ye(this,Pn,ZP).call(this));O(this,La).append(n)},uH=function(e){var n;(n=O(this,ki))!=null&&n.contains(e.target)||this.hideDropdown()},xc=function(){return O(this,ki)&&!O(this,ki).classList.contains("hidden")};let l1=rl;var mf,Bb,Kc,sh,ff,ta,$b,Hb,ah,Ba,Pr,js,D1,gf,oh,Si,xf,So,zb,Yt,tE,nE,hH,pH,mH,iE,tx,ca,Dp,fH,_w,nx,gH,xH,yH,bH;const un=class un extends yn{constructor(n){super({...n,name:"highlightEditor"});xe(this,Yt);xe(this,mf,null);xe(this,Bb,0);xe(this,Kc);xe(this,sh,null);xe(this,ff,null);xe(this,ta,null);xe(this,$b,null);xe(this,Hb,0);xe(this,ah,null);xe(this,Ba,null);xe(this,Pr,null);xe(this,js,!1);xe(this,D1,ye(this,Yt,fH).bind(this));xe(this,gf,null);xe(this,oh);xe(this,Si,null);xe(this,xf,"");xe(this,So);xe(this,zb,"");this.color=n.color||un._defaultColor,fe(this,So,n.thickness||un._defaultThickness),fe(this,oh,n.opacity||un._defaultOpacity),fe(this,Kc,n.boxes||null),fe(this,zb,n.methodOfCreation||""),fe(this,xf,n.text||""),this._isDraggable=!1,n.highlightId>-1?(fe(this,js,!0),ye(this,Yt,nE).call(this,n),ye(this,Yt,tx).call(this)):(fe(this,mf,n.anchorNode),fe(this,Bb,n.anchorOffset),fe(this,$b,n.focusNode),fe(this,Hb,n.focusOffset),ye(this,Yt,tE).call(this),ye(this,Yt,tx).call(this),this.rotate(this.rotation))}static get _keyboardManager(){const n=un.prototype;return rn(this,"_keyboardManager",new bv([[["ArrowLeft","mac+ArrowLeft"],n._moveCaret,{args:[0]}],[["ArrowRight","mac+ArrowRight"],n._moveCaret,{args:[1]}],[["ArrowUp","mac+ArrowUp"],n._moveCaret,{args:[2]}],[["ArrowDown","mac+ArrowDown"],n._moveCaret,{args:[3]}]]))}get telemetryInitialData(){return{action:"added",type:O(this,js)?"free_highlight":"highlight",color:this._uiManager.highlightColorNames.get(this.color),thickness:O(this,So),methodOfCreation:O(this,zb)}}get telemetryFinalData(){return{type:"highlight",color:this._uiManager.highlightColorNames.get(this.color)}}static computeTelemetryFinalData(n){return{numberOfColors:n.get("color").size}}static initialize(n,i){var r;yn.initialize(n,i),un._defaultColor||(un._defaultColor=((r=i.highlightColors)==null?void 0:r.values().next().value)||"#fff066")}static updateDefaultParams(n,i){switch(n){case Ct.HIGHLIGHT_DEFAULT_COLOR:un._defaultColor=i;break;case Ct.HIGHLIGHT_THICKNESS:un._defaultThickness=i;break}}translateInPage(n,i){}get toolbarPosition(){return O(this,gf)}updateParams(n,i){switch(n){case Ct.HIGHLIGHT_COLOR:ye(this,Yt,hH).call(this,i);break;case Ct.HIGHLIGHT_THICKNESS:ye(this,Yt,pH).call(this,i);break}}static get defaultPropertiesToUpdate(){return[[Ct.HIGHLIGHT_DEFAULT_COLOR,un._defaultColor],[Ct.HIGHLIGHT_THICKNESS,un._defaultThickness]]}get propertiesToUpdate(){return[[Ct.HIGHLIGHT_COLOR,this.color||un._defaultColor],[Ct.HIGHLIGHT_THICKNESS,O(this,So
175)||un._defaultThickness],[Ct.HIGHLIGHT_FREE,O(this,js)]]}async addEditToolbar(){const n=await super.addEditToolbar();return n?(this._uiManager.highlightColors&&(fe(this,ff,new l1({editor:this})),n.addColorPicker(O(this,ff))),n):null}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}fixAndSetPosition(){return super.fixAndSetPosition(ye(this,Yt,nx).call(this))}getBaseTranslation(){return[0,0]}getRect(n,i){return super.getRect(n,i,ye(this,Yt,nx).call(this))}onceAdded(){this.parent.addUndoableEditor(this),this.div.focus()}remove(){ye(this,Yt,iE).call(this),this._reportTelemetry({action:"deleted"}),super.remove()}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(ye(this,Yt,tx).call(this),this.isAttachedToDOM||this.parent.add(this)))}setParent(n){var r;let i=!1;this.parent&&!n?ye(this,Yt,iE).call(this):n&&(ye(this,Yt,tx).call(this,n),i=!this.parent&&((r=this.div)==null?void 0:r.classList.contains("selectedEditor"))),super.setParent(n),this.show(this._isVisible),i&&this.select()}rotate(n){var s,a,l;const{drawLayer:i}=this.parent;let r;O(this,js)?(n=(n-this.rotation+360)%360,r=ye(s=un,ca,Dp).call(s,O(this,Ba).box,n)):r=ye(a=un,ca,Dp).call(a,this,n),i.rotate(O(this,Pr),n),i.rotate(O(this,Si),n),i.updateBox(O(this,Pr),r),i.updateBox(O(this,Si),ye(l=un,ca,Dp).call(l,O(this,ta).box,n))}render(){if(this.div)return this.div;const n=super.render();O(this,xf)&&(n.setAttribute("aria-label",O(this,xf)),n.setAttribute("role","mark")),O(this,js)?n.classList.add("free"):this.div.addEventListener("keydown",O(this,D1),{signal:this._uiManager._signal});const i=fe(this,ah,document.createElement("div"));n.append(i),i.setAttribute("aria-hidden","true"),i.className="internal",i.style.clipPath=O(this,sh);const[r,s]=this.parentDimensions;return this.setDims(this.width*r,this.height*s),i1(this,O(this,ah),["pointerover","pointerleave"]),this.enableEditing(),n}pointerover(){this.parent.drawLayer.addClass(O(this,Si),"hovered")}pointerleave(){this.parent.drawLayer.removeClass(O(this,Si),"hovered")}_moveCaret(n){switch(this.parent.unselect(this),n){case 0:case 2:ye(this,Yt,_w).call(this,!0);break;case 1:case 3:ye(this,Yt,_w).call(this,!1);break}}select(){var n,i;super.select(),O(this,Si)&&((n=this.parent)==null||n.drawLayer.removeClass(O(this,Si),"hovered"),(i=this.parent)==null||i.drawLayer.addClass(O(this,Si),"selected"))}unselect(){var n;super.unselect(),O(this,Si)&&((n=this.parent)==null||n.drawLayer.removeClass(O(this,Si),"selected"),O(this,js)||ye(this,Yt,_w).call(this,!1))}get _mustFixPosition(){return!O(this,js)}show(n=this._isVisible){super.show(n),this.parent&&(this.parent.drawLayer.show(O(this,Pr),n),this.parent.drawLayer.show(O(this,Si),n))}static startHighlighting(n,i,{target:r,x:s,y:a}){const{x:l,y:c,width:d,height:u}=r.getBoundingClientRect(),h=k=>{ye(this,ca,yH).call(this,n,k)},p=n._signal,y={capture:!0,passive:!1,signal:p},m=k=>{k.preventDefault(),k.stopPropagation()},w=k=>{r.removeEventListener("pointermove",h),window.removeEventListener("blur",w),window.removeEventListener("pointerup",w),window.removeEventListener("pointerdown",m,y),window.removeEventListener("contextmenu",ds),ye(this,ca,bH).call(this,n,k)};window.addEventListener("blur",w,{signal:p}),window.addEventListener("pointerup",w,{signal:p}),window.addEventListener("pointerdown",m,y),window.addEventListener("contextmenu",ds,{signal:p}),r.addEventListener("pointermove",h,{signal:p}),this._freeHighlight=new o1({x:s,y:a},[l,c,d,u],n.scale,this._defaultThickness/2,i,.001),{id:this._freeHighlightId,clipPathId:this._freeHighlightClipId}=n.drawLayer.highlight(this._freeHighlight,this._defaultColor,this._defaultOpacity,!0)}static deserialize(n,i,r){var w;const s=super.deserialize(n,i,r),{rect:[a,l,c,d],color:u,quadPoints:h}=n;s.color=ut.makeHexColor(...u),fe(s,oh,n.opacity);const[p,y]=s.pageDimensions;s.width=(c-a)/p,s.height=(d-l)/y;const m=fe(s,Kc,[]);for(let k=0;k<h.length;k+=8)m.push({x:(h[4]-c)/p,y:(d-(1-h[k+5]))/y,width:(h[k+2]-h[k])/p,height:(h[k+5]-h[k+1])/y});
175return ye(w=s,Yt,tE).call(w),s}serialize(n=!1){if(this.isEmpty()||n)return null;const i=this.getRect(0,0),r=yn._colorManager.convert(this.color);return{annotationType:en.HIGHLIGHT,color:r,opacity:O(this,oh),thickness:O(this,So),quadPoints:ye(this,Yt,gH).call(this),outlines:ye(this,Yt,xH).call(this,i),pageIndex:this.pageIndex,rect:i,rotation:ye(this,Yt,nx).call(this),structTreeParentId:this._structTreeParentId}}static canCreateNewEmptyEditor(){return!1}};mf=new WeakMap,Bb=new WeakMap,Kc=new WeakMap,sh=new WeakMap,ff=new WeakMap,ta=new WeakMap,$b=new WeakMap,Hb=new WeakMap,ah=new WeakMap,Ba=new WeakMap,Pr=new WeakMap,js=new WeakMap,D1=new WeakMap,gf=new WeakMap,oh=new WeakMap,Si=new WeakMap,xf=new WeakMap,So=new WeakMap,zb=new WeakMap,Yt=new WeakSet,tE=function(){const n=new YP(O(this,Kc),.001);fe(this,Ba,n.getOutlines()),{x:this.x,y:this.y,width:this.width,height:this.height}=O(this,Ba).box;const i=new YP(O(this,Kc),.0025,.001,this._uiManager.direction==="ltr");fe(this,ta,i.getOutlines());const{lastPoint:r}=O(this,ta).box;fe(this,gf,[(r[0]-this.x)/this.width,(r[1]-this.y)/this.height])},nE=function({highlightOutlines:n,highlightId:i,clipPathId:r}){var h,p;if(fe(this,Ba,n),fe(this,ta,n.getNewOutline(O(this,So)/2+1.5,.0025)),i>=0)fe(this,Pr,i),fe(this,sh,r),this.parent.drawLayer.finalizeLine(i,n),fe(this,Si,this.parent.drawLayer.highlightOutline(O(this,ta)));else if(this.parent){const y=this.parent.viewport.rotation;this.parent.drawLayer.updateLine(O(this,Pr),n),this.parent.drawLayer.updateBox(O(this,Pr),ye(h=un,ca,Dp).call(h,O(this,Ba).box,(y-this.rotation+360)%360)),this.parent.drawLayer.updateLine(O(this,Si),O(this,ta)),this.parent.drawLayer.updateBox(O(this,Si),ye(p=un,ca,Dp).call(p,O(this,ta).box,y))}const{x:a,y:l,width:c,height:d}=n.box;switch(this.rotation){case 0:this.x=a,this.y=l,this.width=c,this.height=d;break;case 90:{const[y,m]=this.parentDimensions;this.x=l,this.y=1-a,this.width=c*m/y,this.height=d*y/m;break}case 180:this.x=1-a,this.y=1-l,this.width=c,this.height=d;break;case 270:{const[y,m]=this.parentDimensions;this.x=1-l,this.y=a,this.width=c*m/y,this.height=d*y/m;break}}const{lastPoint:u}=O(this,ta).box;fe(this,gf,[(u[0]-a)/c,(u[1]-l)/d])},hH=function(n){const i=s=>{var a,l;this.color=s,(a=this.parent)==null||a.drawLayer.changeColor(O(this,Pr),s),(l=O(this,ff))==null||l.updateColor(s)},r=this.color;this.addCommands({cmd:i.bind(this,n),undo:i.bind(this,r),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:Ct.HIGHLIGHT_COLOR,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"color_changed",color:this._uiManager.highlightColorNames.get(n)},!0)},pH=function(n){const i=O(this,So),r=s=>{fe(this,So,s),ye(this,Yt,mH).call(this,s)};this.addCommands({cmd:r.bind(this,n),undo:r.bind(this,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:Ct.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"thickness_changed",thickness:n},!0)},mH=function(n){if(!O(this,js))return;ye(this,Yt,nE).call(this,{highlightOutlines:O(this,Ba).getNewOutline(n/2)}),this.fixAndSetPosition();const[i,r]=this.parentDimensions;this.setDims(this.width*i,this.height*r)},iE=function(){O(this,Pr)===null||!this.parent||(this.parent.drawLayer.remove(O(this,Pr)),fe(this,Pr,null),this.parent.drawLayer.remove(O(this,Si)),fe(this,Si,null))},tx=function(n=this.parent){O(this,Pr)===null&&({id:lr(this,Pr)._,clipPathId:lr(this,sh)._}=n.drawLayer.highlight(O(this,Ba),this.color,O(this,oh)),fe(this,Si,n.drawLayer.highlightOutline(O(this,ta))),O(this,ah)&&(O(this,ah).style.clipPath=O(this,sh)))},ca=new WeakSet,Dp=function({x:n,y:i,width:r,height:s},a){switch(a){case 90:return{x:1-i-s,y:n,width:s,height:r};case 180:return{x:1-n-r,y:1-i-s,width:r,height:s};case 270:return{x:i,y:1-n-r,width:s,height:r}}return{x:n,y:i,width:r,height:s}},fH=function(n){un._keyboardManager.exec(this,n)},_w=function(n){if(!O(this,mf))return;const i=window.getSelection();n?i.setPosition(O(this,mf),O(this,Bb)):i.setPosition(O(this,$b),O(this,Hb))},nx=function(){return O(this,js)?this.rotation:0},gH=function(){if(O(this,js))return null;const[n,i]=this.pageDimensions,r=O(this,Kc),s=new Float32Array(r.length*8);let a=0;for(const{x:l,y:c,width:d,height:u}of r){const h=l*n,p=(1-c-u)*i;s[a]=s[a+4]=h,s[a+1]=s[a+3]=p,s[a+2]=s[a+6]=h+d*n,s[a+5]=s[a+7]=p+u*i,a+=8}return s},xH=function(n){return O(this,Ba).serialize(n,ye(this,Yt,nx).call(this))},yH=function(n,i){this._freeHighlight.add(i)&&n.drawLayer.updatePath(this._freeHighlightId,this._freeHighlight)},bH=function(n,i){this._freeHighlight.isEmpty()?n.drawLayer.removeFreeHighlight(this._freeHighlightId):n.createAndAddNewEditor(i,!1,{highlightId:this._freeHighlightId,highlightOutlines:this._freeHighlight.getOutlines(),clipPathId:this._freeHighlightClipId,methodOfCreation:"main_toolbar"}),this._freeHighlightId=-1,this._freeHighlight=null,this._freeHighlightClipId=""},xe(un,ca),Tt(un,"_defaultColor",null),Tt(un,"_defaultOpacity",1),Tt(un,"_defaultThickness",12),Tt(un,"_l10nPromise"),Tt(un,"_type","highlight"),Tt(un,"_editorType",en.HIGHLIGHT),Tt(un,"_freeHighlightId",-1),Tt(un,"_freeHighlight",null),Tt(un,"_freeHighlightClipId","");let c1=un;var lh,ch,Vb,Ub,Wb,dh,Co,jl,na,uh,hh,Tl,ph,mh,Yc,Qe,vH,wH,kH,SH,sE,CH,aE,jH,TH,PH,EH,AH,Kd,oE,Iw,Rw,_p,lE,Ow,Ql,NH,cE,MH,DH,dE,Lw,ix;const Vn=class Vn extends yn{constructor(n){super({...n,name:"inkEditor"});xe(this,Qe);xe(this,lh,0);xe(this,ch,0);xe(this,Vb,this.canvasPointermove.bind(this));xe(this,Ub,this.canvasPointerleave.bind(this));xe(this,Wb,this.canvasPointerup.bind(this));xe(this,dh,this.canvasPointerdown.bind(this));xe(this,Co,null);xe(this,jl,new Path2D);xe(this,na,!1);xe(this,uh,!1);xe(this,hh,!1);xe(this,Tl,null);xe(this,ph,0);xe(this,mh,0);xe(this,Yc,null);this.color=n.color||null,this.thickness=n.thickness||null,this.opacity=n.opacity||null,this.paths=[],this.bezierPath2D=[],this.allRawPaths=[],this.currentPath=[],this.scaleFactor=1,this.translationX=this.translationY=0,this.x=0,this.y=0,this._willKeepAspectRatio=!0}static initialize(n,i){yn.initialize(n,i)}static updateDefaultParams(n,i){switch(n){case Ct.INK_THICKNESS:Vn._defaultThickness=i;break;case Ct.INK_COLOR:Vn._defaultColor=i;break;case Ct.INK_OPACITY:Vn._defaultOpacity=i/100;break}}updateParams(n,i){switch(n){case Ct.INK_THICKNESS:ye(this,Qe,vH).call(this,i);break;case Ct.INK_COLOR:ye(this,Qe,wH).call(this,i);break;case Ct.INK_OPACITY:ye(this,Qe,kH).call(this,i);break}}static get defaultPropertiesToUpdate(){return[[Ct.INK_THICKNESS,Vn._defaultThickness],[Ct.INK_COLOR,Vn._defaultColor||yn._defaultLineColor],[Ct.INK_OPACITY,Math.round(Vn._defaultOpacity*100)]]}get propertiesToUpdate(){return[[Ct.INK_THICKNESS,this.thickness||Vn._defaultThickness],[Ct.INK_COLOR,this.color||Vn._defaultColor||yn._defaultLineColor],[Ct.INK_OPACITY,Math.round(100*(this.opacity??Vn._defaultOpacity))]]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.canvas||(ye(this,Qe,Iw).call(this),ye(this,Qe,Rw).call(this)),this.isAttachedToDOM||(this.parent.add(this),ye(this,Qe,_p).call(this)),ye(this,Qe,ix).call(this)))}remove(){var n;this.canvas!==null&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,O(this,Co)&&
175(clearTimeout(O(this,Co)),fe(this,Co,null)),(n=O(this,Tl))==null||n.disconnect(),fe(this,Tl,null),super.remove())}setParent(n){!this.parent&&n?this._uiManager.removeShouldRescale(this):this.parent&&n===null&&this._uiManager.addShouldRescale(this),super.setParent(n)}onScaleChanging(){const[n,i]=this.parentDimensions,r=this.width*n,s=this.height*i;this.setDimensions(r,s)}enableEditMode(){O(this,na)||this.canvas===null||(super.enableEditMode(),this._isDraggable=!1,this.canvas.addEventListener("pointerdown",O(this,dh),{signal:this._uiManager._signal}))}disableEditMode(){!this.isInEditMode()||this.canvas===null||(super.disableEditMode(),this._isDraggable=!this.isEmpty(),this.div.classList.remove("editing"),this.canvas.removeEventListener("pointerdown",O(this,dh)))}onceAdded(){this._isDraggable=!this.isEmpty()}isEmpty(){return this.paths.length===0||this.paths.length===1&&this.paths[0].length===0}commit(){O(this,na)||(super.commit(),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),fe(this,na,!0),this.div.classList.add("disabled"),ye(this,Qe,ix).call(this,!0),this.select(),this.parent.addInkEditorIfNeeded(!0),this.moveInDOM(),this.div.focus({preventScroll:!0}))}focusin(n){this._focusEventsAllowed&&(super.focusin(n),this.enableEditMode())}canvasPointerdown(n){n.button!==0||!this.isInEditMode()||O(this,na)||(this.setInForeground(),n.preventDefault(),this.div.contains(document.activeElement)||this.div.focus({preventScroll:!0}),ye(this,Qe,CH).call(this,n.offsetX,n.offsetY))}canvasPointermove(n){n.preventDefault(),ye(this,Qe,aE).call(this,n.offsetX,n.offsetY)}canvasPointerup(n){n.preventDefault(),ye(this,Qe,oE).call(this,n)}canvasPointerleave(n){ye(this,Qe,oE).call(this,n)}get isResizable(){return!this.isEmpty()&&O(this,na)}render(){if(this.div)return this.div;let n,i;this.width&&(n=this.x,i=this.y),super.render(),this.div.setAttribute("data-l10n-id","pdfjs-ink");const[r,s,a,l]=ye(this,Qe,SH).call(this);if(this.setAt(r,s,0,0),this.setDims(a,l),ye(this,Qe,Iw).call(this),this.width){const[c,d]=this.parentDimensions;this.setAspectRatio(this.width*c,this.height*d),this.setAt(n*c,i*d,this.width*c,this.height*d),fe(this,hh,!0),ye(this,Qe,_p).call(this),this.setDims(this.width*c,this.height*d),ye(this,Qe,Kd).call(this),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return ye(this,Qe,Rw).call(this),this.div}setDimensions(n,i){const r=Math.round(n),s=Math.round(i);if(O(this,ph)===r&&O(this,mh)===s)return;fe(this,ph,r),fe(this,mh,s),this.canvas.style.visibility="hidden";const[a,l]=this.parentDimensions;this.width=n/a,this.height=i/l,this.fixAndSetPosition(),O(this,na)&&ye(this,Qe,lE).call(this,n,i),ye(this,Qe,_p).call(this),ye(this,Qe,Kd).call(this),this.canvas.style.visibility="visible",this.fixDims()}static deserialize(n,i,r){var k,b,x;if(n instanceof J8)return null;const s=super.deserialize(n,i,r);s.thickness=n.thickness,s.color=ut.makeHexColor(...n.color),s.opacity=n.opacity;const[a,l]=s.pageDimensions,c=s.width*a,d=s.height*l,u=s.parentScale,h=n.thickness/2;fe(s,na,!0),fe(s,ph,Math.round(c)),fe(s,mh,Math.round(d));const{paths:p,rect:y,rotation:m}=n;for(let{bezier:v}of p){v=ye(k=Vn,Ql,MH).call(k,v,y,m);const E=[];s.paths.push(E);let N=u*(v[0]-h),S=u*(v[1]-h);for(let $=2,V=v.length;$<V;$+=6){const I=u*(v[$]-h),A=u*(v[$+1]-h),L=u*(v[$+2]-h),T=u*(v[$+3]-h),g=u*(v[$+4]-h),f=u*(v[$+5]-h);E.push([[N,S],[I,A],[L,T],[g,f]]),N=g,S=f}const _=ye(this,Ql,NH).call(this,E);s.bezierPath2D.push(_)}const w=ye(b=s,Qe,dE).call(b);return fe(s,ch,Math.max(yn.MIN_SIZE,w[2]-w[0])),fe(s,lh,Math.max(yn.MIN_SIZE,w[3]-w[1])),ye(x=s,Qe,lE).call(x,c,d),s}serialize(){if(this.isEmpty())return null;const n=this.getRect(0,0),i=yn._colorManager.convert(this.ctx.strokeStyle);return{annotationType:en.INK,color:i,thickness:this.thickness,opacity:this.opacity,paths:ye(this,Qe,DH).call(this,this.scaleFactor/this.parentScale,this.translationX,this.translationY,n),pageIndex:this.pageIndex,rect:n,rotation:this.rotation,structTreeParentId:this._structTreeParentId}}};lh=new WeakMap,ch=new WeakMap,Vb=new WeakMap,Ub=new WeakMap,Wb=new WeakMap,dh=new WeakMap,Co=new WeakMap,jl=new WeakMap,na=new WeakMap,uh=new WeakMap,hh=new WeakMap,Tl=new WeakMap,ph=new WeakMap,mh=new WeakMap,Yc=new WeakMap,Qe=new WeakSet,vH=function(n){const i=s=>{this.thickness=s,ye(this,Qe,ix).call(this)},r=this.thickness;this.addCommands({cmd:i.bind(this,n),undo:i.bind(this,r),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:Ct.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})},wH=function(n){const i=s=>{this.color=s,ye(this,Qe,Kd).call(this)},r=this.color;this.addCommands({cmd:i.bind(this,n),undo:i.bind(this,r),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:Ct.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})},kH=function(n){const i=s=>{this.opacity=s,ye(this,Qe,Kd).call(this)};n/=100;const r=this.opacity;this.addCommands({cmd:i.bind(this,n),undo:i.bind(this,r),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:Ct.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})},SH=function(){const{parentRotation:n,parentDimensions:[i,r]}=this;switch(n){case 90:return[0,r,r,i];case 180:return[i,r,i,r];case 270:return[i,0,r,i];default:return[0,0,i,r]}},sE=function(){const{ctx:n,color:i,opacity:r,thickness:s,parentScale:a,scaleFactor:l}=this;n.lineWidth=s*a/l,n.lineCap="round",n.lineJoin="round",n.miterLimit=10,n.strokeStyle=`${i}${kce(r)}`},CH=function(n,i){const r=this._uiManager._signal;this.canvas.addEventListener("contextmenu",ds,{signal:r}),this.canvas.addEventListener("pointerleave",O(this,Ub),{signal:r}),this.canvas.addEventListener("pointermove",O(this,Vb),{signal:r}),this.canvas.addEventListener("pointerup",O(this,Wb),{signal:r}),this.canvas.removeEventListener("pointerdown",O(this,dh)),this.isEditing=!0,O(this,hh)||(fe(this,hh,!0),ye(this,Qe,_p).call(this),this.thickness||(this.thickness=Vn._defaultThickness),this.color||(this.color=Vn._defaultColor||yn._defaultLineColor),this.opacity??(this.opacity=Vn._defaultOpacity)),this.currentPath.push([n,i]),fe(this,uh,!1),ye(this,Qe,sE).call(this),fe(this,Yc,(
175)=>{ye(this,Qe,PH).call(this),O(this,Yc)&&window.requestAnimationFrame(O(this,Yc))}),window.requestAnimationFrame(O(this,Yc))},aE=function(n,i){const[r,s]=this.currentPath.at(-1);if(this.currentPath.length>1&&n===r&&i===s)return;const a=this.currentPath;let l=O(this,jl);if(a.push([n,i]),fe(this,uh,!0),a.length<=2){l.moveTo(...a[0]),l.lineTo(n,i);return}a.length===3&&(fe(this,jl,l=new Path2D),l.moveTo(...a[0])),ye(this,Qe,EH).call(this,l,...a.at(-3),...a.at(-2),n,i)},jH=function(){if(this.currentPath.length===0)return;const n=this.currentPath.at(-1);O(this,jl).lineTo(...n)},TH=function(n,i){fe(this,Yc,null),n=Math.min(Math.max(n,0),this.canvas.width),i=Math.min(Math.max(i,0),this.canvas.height),ye(this,Qe,aE).call(this,n,i),ye(this,Qe,jH).call(this);let r;if(this.currentPath.length!==1)r=ye(this,Qe,AH).call(this);else{const d=[n,i];r=[[d,d.slice(),d.slice(),d]]}const s=O(this,jl),a=this.currentPath;this.currentPath=[],fe(this,jl,new Path2D);const l=()=>{this.allRawPaths.push(a),this.paths.push(r),this.bezierPath2D.push(s),this._uiManager.rebuild(this)},c=()=>{this.allRawPaths.pop(),this.paths.pop(),this.bezierPath2D.pop(),this.paths.length===0?this.remove():(this.canvas||(ye(this,Qe,Iw).call(this),ye(this,Qe,Rw).call(this)),ye(this,Qe,ix).call(this))};this.addCommands({cmd:l,undo:c,mustExec:!0})},PH=function(){if(!O(this,uh))return;fe(this,uh,!1);const n=Math.ceil(this.thickness*this.parentScale),i=this.currentPath.slice(-3),r=i.map(l=>l[0]),s=i.map(l=>l[1]);Math.min(...r)-n,Math.max(...r)+n,Math.min(...s)-n,Math.max(...s)+n;const{ctx:a}=this;a.save(),a.clearRect(0,0,this.canvas.width,this.canvas.height);for(const l of this.bezierPath2D)a.stroke(l);a.stroke(O(this,jl)),a.restore()},EH=function(n,i,r,s,a,l,c){const d=(i+s)/2,u=(r+a)/2,h=(s+l)/2,p=(a+c)/2;n.bezierCurveTo(d+2*(s-d)/3,u+2*(a-u)/3,h+2*(s-h)/3,p+2*(a-p)/3,h,p)},AH=function(){const n=this.currentPath;if(n.length<=2)return[[n[0],n[0],n.at(-1),n.at(-1)]];const i=[];let r,[s,a]=n[0];for(r=1;r<n.length-2;r++){const[y,m]=n[r],[w,k]=n[r+1],b=(y+w)/2,x=(m+k)/2,v=[s+2*(y-s)/3,a+2*(m-a)/3],E=[b+2*(y-b)/3,x+2*(m-x)/3];i.push([[s,a],v,E,[b,x]]),[s,a]=[b,x]}const[l,c]=n[r],[d,u]=n[r+1],h=[s+2*(l-s)/3,a+2*(c-a)/3],p=[d+2*(l-d)/3,u+2*(c-u)/3];return i.push([[s,a],h,p,[d,u]]),i},Kd=function(){if(this.isEmpty()){ye(this,Qe,Ow).call(this);return}ye(this,Qe,sE).call(this);const{canvas:n,ctx:i}=this;i.setTransform(1,0,0,1,0,0),i.clearRect(0,0,n.width,n.height),ye(this,Qe,Ow).call(this);for(const r of this.bezierPath2D)i.stroke(r)},oE=function(n){this.canvas.removeEventListener("pointerleave",O(this,Ub)),this.canvas.removeEventListener("pointermove",O(this,Vb)),this.canvas.removeEventListener("pointerup",O(this,Wb)),this.canvas.addEventListener("pointerdown",O(this,dh),{signal:this._uiManager._signal}),O(this,Co)&&clearTimeout(O(this,Co)),fe(this,Co,setTimeout(()=>{fe(this,Co,null),this.canvas.removeEventListener("contextmenu",ds)},10)),ye(this,Qe,TH).call(this,n.offsetX,n.offsetY),this.addToAnnotationStorage(),this.setInBackground()},Iw=function(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",this.canvas.setAttribute("data-l10n-id","pdfjs-ink-canvas"),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")},Rw=function(){fe(this,Tl,new ResizeObserver(n=>{const i=n[0].contentRect;i.width&&i.height&&this.setDimensions(i.width,i.height)})),O(this,Tl).observe(this.div),this._uiManager._signal.addEventListener("abort",()=>{var n;(n=O(this,Tl))==null||n.disconnect(),fe(this,Tl,null)},{once:!0})},_p=function(){if(!O(this,hh))return;const[n,i]=this.parentDimensions;this.canvas.width=Math.ceil(this.width*n),this.canvas.height=Math.ceil(this.height*i),ye(this,Qe,Ow).call(this)},lE=function(n,i){const r=ye(this,Qe,Lw).call(this),s=(n-r)/O(this,ch),a=(i-r)/O(this,lh);this.scaleFactor=Math.min(s,a)},Ow=function(){const n=ye(this,Qe,Lw).call(this)/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+n,this.translationY*this.scaleFactor+n)},Ql=new WeakSet,NH=function(n){const i=new Path2D;for(let r=0,s=n.length;r<s;r++){const[a,l,c,d]=n[r];
175r===0&&i.moveTo(...a),i.bezierCurveTo(l[0],l[1],c[0],c[1],d[0],d[1])}return i},cE=function(n,i,r){const[s,a,l,c]=i;switch(r){case 0:for(let d=0,u=n.length;d<u;d+=2)n[d]+=s,n[d+1]=c-n[d+1];break;case 90:for(let d=0,u=n.length;d<u;d+=2){const h=n[d];n[d]=n[d+1]+s,n[d+1]=h+a}break;case 180:for(let d=0,u=n.length;d<u;d+=2)n[d]=l-n[d],n[d+1]+=a;break;case 270:for(let d=0,u=n.length;d<u;d+=2){const h=n[d];n[d]=l-n[d+1],n[d+1]=c-h}break;default:throw new Error("Invalid rotation")}return n},MH=function(n,i,r){const[s,a,l,c]=i;switch(r){case 0:for(let d=0,u=n.length;d<u;d+=2)n[d]-=s,n[d+1]=c-n[d+1];break;case 90:for(let d=0,u=n.length;d<u;d+=2){const h=n[d];n[d]=n[d+1]-a,n[d+1]=h-s}break;case 180:for(let d=0,u=n.length;d<u;d+=2)n[d]=l-n[d],n[d+1]-=a;break;case 270:for(let d=0,u=n.length;d<u;d+=2){const h=n[d];n[d]=c-n[d+1],n[d+1]=l-h}break;default:throw new Error("Invalid rotation")}return n},DH=function(n,i,r,s){var u,h;const a=[],l=this.thickness/2,c=n*i+l,d=n*r+l;for(const p of this.paths){const y=[],m=[];for(let w=0,k=p.length;w<k;w++){const[b,x,v,E]=p[w];if(b[0]===E[0]&&b[1]===E[1]&&k===1){const T=n*b[0]+c,g=n*b[1]+d;y.push(T,g),m.push(T,g);break}const N=n*b[0]+c,S=n*b[1]+d,_=n*x[0]+c,$=n*x[1]+d,V=n*v[0]+c,I=n*v[1]+d,A=n*E[0]+c,L=n*E[1]+d;w===0&&(y.push(N,S),m.push(N,S)),y.push(_,$,V,I,A,L),m.push(_,$),w===k-1&&m.push(A,L)}a.push({bezier:ye(u=Vn,Ql,cE).call(u,y,s,this.rotation),points:ye(h=Vn,Ql,cE).call(h,m,s,this.rotation)})}return a},dE=function(){let n=1/0,i=-1/0,r=1/0,s=-1/0;for(const a of this.paths)for(const[l,c,d,u]of a){const h=ut.bezierBoundingBox(...l,...c,...d,...u);n=Math.min(n,h[0]),r=Math.min(r,h[1]),i=Math.max(i,h[2]),s=Math.max(s,h[3])}return[n,r,i,s]},Lw=function(){return O(this,na)?Math.ceil(this.thickness*this.parentScale):0},ix=function(n=!1){if(this.isEmpty())return;if(!O(this,na)){ye(this,Qe,Kd).call(this);return}const i=ye(this,Qe,dE).call(this),r=ye(this,Qe,Lw).call(this);fe(this,ch,Math.max(yn.MIN_SIZE,i[2]-i[0])),fe(this,lh,Math.max(yn.MIN_SIZE,i[3]-i[1]));const s=Math.ceil(r+O(this,ch)*this.scaleFactor),a=Math.ceil(r+O(this,lh)*this.scaleFactor),[l,c]=this.parentDimensions;this.width=s/l,this.height=a/c,this.setAspectRatio(s,a);const d=this.translationX,u=this.translationY;this.translationX=-i[0],this.translationY=-i[1],ye(this,Qe,_p).call(this),ye(this,Qe,Kd).call(this),fe(this,ph,s),fe(this,mh,a),this.setDims(s,a);const h=n?r/this.scaleFactor/2:0;this.translate(d-this.translationX-h,u-this.translationY-h)},xe(Vn,Ql),Tt(Vn,"_defaultColor",null),Tt(Vn,"_defaultOpacity",1),Tt(Vn,"_defaultThickness",1),Tt(Vn,"_type","ink"),Tt(Vn,"_editorType",en.INK);let rE=Vn;var Ki,Yi,Xc,Pl,Jc,yf,jo,El,To,$a,Gb,ln,rx,sx,Fw,hE,_H,IH,pE,Bw,RH;const Tx=class Tx extends yn{constructor(n){super({...n,name:"stampEditor"});xe(this,ln);xe(this,Ki,null);xe(this,Yi,null);xe(this,Xc,null);xe(this,Pl,null);xe(this,Jc,null);xe(this,yf,"");xe(this,jo,null);xe(this,El,null);xe(this,To,null);xe(this,$a,!1);xe(this,Gb,!1);fe(this,Pl,n.bitmapUrl),fe(this,Jc,n.bitmapFile)}static initialize(n,i){yn.initialize(n,i)}static get supportedTypes(){return rn(this,"supportedTypes",["apng","avif","bmp","gif","jpeg","png","svg+xml","webp","x-icon"].map(i=>`image/${i}`))}static get supportedTypesStr(){return rn(this,"supportedTypesStr",this.supportedTypes.join(","))}static isHandlingMimeForPasting(n){return this.supportedTypes.includes(n)}static paste(n,i){i.pasteEditor(en.STAMP,{bitmapFile:n.getAsFile()})}remove(){var n,i;O(this,Yi)&&(fe(this,Ki,null),this._uiManager.imageManager.deleteId(O(this,Yi)),(n=O(this,jo))==null||n.remove(),fe(this,jo,null),(i=O(this,El))==null||i.disconnect(),fe(this,El,null),O(this,To)&&(clearTimeout(O(this,To)),fe(this,To,null))),super.remove()}rebuild(){if(!this.parent){O(this,Yi)&&ye(this,ln,Fw).call(this);return}super.rebuild(),this.div!==null&&(O(this,Yi)&&O(this,jo)===null&&ye(this,ln,Fw).call(this),this.isAttachedToDOM||this.parent.add(this))}onceAdded(){this._isDraggable=!0,this.div.focus()}isEmpty(){return!(O(this,Xc)||O(this,Ki)||O(this,Pl)||O(this,Jc)||O(this,Yi))}get isResizable(){return!0}render(){if(this.div)return this.div;let n,i;if(this.width&&(n=this.x,i=this.y),super.render(),this.div.hidden=!0,this.addAltTextButton(),O(this,Ki)?ye(this,ln,hE).call(this):ye(this,ln,Fw).call(this),this.width){const[r,s]=this.parentDimensions;this.setAt(n*r,i*s,this.width*r,this.height*s)}return this.div}getImageForAltText(){return O(this,jo)}static deserialize(n,i,r){if(n instanceof Q8)return null;const s=super.deserialize(n,i,r),{rect:a,bitmapUrl:l,bitmapId:c,isSvg:d,accessibilityData:u}=n;c&&r.imageManager.isValidId(c)?fe(s,Yi,c):fe(s,Pl,l),fe(s,$a,d);const[h,p]=s.pageDimensions;return s.width=(a[2]-a[0])/h,s.height=(a[3]-a[1])/p,u&&(s.altTextData=u),s}serialize(n=!1,i=null){if(this.isEmpty())return null;const r={annotationType:en.STAMP,bitmapId:O(this,Yi),pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:O(this,$a),structTreeParentId:this._structTreeParentId};if(n)return r.bitmapUrl=ye(this,ln,Bw).call(this,!0),r.accessibilityData=this.altTextData,r;const{decorative:s,altText:a}=this.altTextData;if(!s&&a&&(r.accessibilityData={type:"Figure",alt:a}),i===null)return r;i.stamps||(i.stamps=new Map);const l=O(this,$a)?(r.rect[2]-r.rect[0])*(r.rect[3]-r.rect[1]):null;if(!i.stamps.has(O(this,Yi)))i.stamps.set(O(this,Yi),{area:l,serialized:r}),r.bitmap=ye(this,ln,Bw).call(this,!1);else if(O(this,$a)){const c=i.stamps.get(O(this,Yi));l>c.area&&(c.area=l,c.serialized.bitmap.close(),c.serialized.bitmap=ye(this,ln,Bw).call(this,!1))}return r}};Ki=new WeakMap,Yi=new WeakMap,Xc=new WeakMap,Pl=new WeakMap,Jc=new WeakMap,yf=new WeakMap,jo=new WeakMap,El=new WeakMap,To=new WeakMap,$a=new WeakMap,Gb=new WeakMap,ln=new WeakSet,rx=function(n,i=!1){if(!n){this.remove();return}fe(this,Ki,n.bitmap),i||(fe(this,Yi,n.id),fe(this,$a,n.isSvg)),n.file&&fe(this,yf,n.file.name),ye(this,ln,hE).call(this)},sx=function(){fe(this,Xc,null),this._uiManager.enableWaiting(!1),O(this,jo)&&this.div.focus()},Fw=function(){if(O(this,Yi)){this._uiManager.enableWaiting(!0),this._uiManager.imageManager.getFromId(O(this,Yi)).then(r=>ye(this,ln,rx).call(this,r,!0)).finally(()=>ye(this,ln,sx).call(this));return}if(O(this,Pl)){const r=O(this,Pl);fe(this,Pl,null),this._uiManager.enableWaiting(!0),fe(this,Xc,this._uiManager.imageManager.getFromUrl(r).then(s=>ye(this,ln,rx).call(this,s)).finally(()=>ye(this,ln,sx).call(this)));return}if(O(this,Jc)){const r=O(this,Jc);fe(this,Jc,null),this._uiManager.enableWaiting(!0),fe(this,Xc,this._uiManager.imageManager.getFromFile(r).then(s=>ye(this,ln,rx).call(this,s)).finally(()=>ye(this,ln,sx).call(this)));return}const n=document.createElement("input");n.type="file",n.accept=Tx.supportedTypesStr;const i=this._uiManager._signal;fe(this,Xc,new Promise(r=>{n.addEventListener("change",async()=>
175{if(!n.files||n.files.length===0)this.remove();else{this._uiManager.enableWaiting(!0);const s=await this._uiManager.imageManager.getFromFile(n.files[0]);ye(this,ln,rx).call(this,s)}r()},{signal:i}),n.addEventListener("cancel",()=>{this.remove(),r()},{signal:i})}).finally(()=>ye(this,ln,sx).call(this))),n.click()},hE=function(){const{div:n}=this;let{width:i,height:r}=O(this,Ki);const[s,a]=this.pageDimensions,l=.75;if(this.width)i=this.width*s,r=this.height*a;else if(i>l*s||r>l*a){const h=Math.min(l*s/i,l*a/r);i*=h,r*=h}const[c,d]=this.parentDimensions;this.setDims(i*c/s,r*d/a),this._uiManager.enableWaiting(!1);const u=fe(this,jo,document.createElement("canvas"));n.append(u),n.hidden=!1,ye(this,ln,pE).call(this,i,r),ye(this,ln,RH).call(this),O(this,Gb)||(this.parent.addUndoableEditor(this),fe(this,Gb,!0)),this._reportTelemetry({action:"inserted_image"}),O(this,yf)&&u.setAttribute("aria-label",O(this,yf))},_H=function(n,i){var l;const[r,s]=this.parentDimensions;this.width=n/r,this.height=i/s,this.setDims(n,i),(l=this._initialOptions)!=null&&l.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,O(this,To)!==null&&clearTimeout(O(this,To)),fe(this,To,setTimeout(()=>{fe(this,To,null),ye(this,ln,pE).call(this,n,i)},200))},IH=function(n,i){const{width:r,height:s}=O(this,Ki);let a=r,l=s,c=O(this,Ki);for(;a>2*n||l>2*i;){const d=a,u=l;a>2*n&&(a=a>=16384?Math.floor(a/2)-1:Math.ceil(a/2)),l>2*i&&(l=l>=16384?Math.floor(l/2)-1:Math.ceil(l/2));const h=new OffscreenCanvas(a,l);h.getContext("2d").drawImage(c,0,0,d,u,0,0,a,l),c=h.transferToImageBitmap()}return c},pE=function(n,i){n=Math.ceil(n),i=Math.ceil(i);const r=O(this,jo);if(!r||r.width===n&&r.height===i)return;r.width=n,r.height=i;const s=O(this,$a)?O(this,Ki):ye(this,ln,IH).call(this,n,i);if(this._uiManager.hasMLManager&&!this.hasAltText()){const c=new OffscreenCanvas(n,i).getContext("2d");c.drawImage(s,0,0,s.width,s.height,0,0,n,i),this._uiManager.mlGuess({service:"image-to-text",request:{data:c.getImageData(0,0,n,i).data,width:n,height:i,channels:4}}).then(d=>{const u=(d==null?void 0:d.output)||"";this.parent&&u&&!this.hasAltText()&&(this.altTextData={altText:u,decorative:!1})})}const a=r.getContext("2d");a.filter=this._uiManager.hcmFilter,a.drawImage(s,0,0,s.width,s.height,0,0,n,i)},Bw=function(n){if(n){if(O(this,$a)){const s=this._uiManager.imageManager.getSvgUrl(O(this,Yi));if(s)return s}const i=document.createElement("canvas");return{width:i.width,height:i.height}=O(this,Ki),i.getContext("2d").drawImage(O(this,Ki),0,0),i.toDataURL()}if(O(this,$a)){const[i,r]=this.pageDimensions,s=Math.round(this.width*i*jd.PDF_TO_CSS_UNITS),a=Math.round(this.height*r*jd.PDF_TO_CSS_UNITS),l=new OffscreenCanvas(s,a);return l.getContext("2d").drawImage(O(this,Ki),0,0,O(this,Ki).width,O(this,Ki).height,0,0,s,a),l.transferToImageBitmap()}return structuredClone(O(this,Ki))},RH=function(){this._uiManager._signal&&(fe(this,El,new ResizeObserver(n=>{const i=n[0].contentRect;i.width&&i.height&&ye(this,ln,_H).call(this,i.width,i.height)})),O(this,El).observe(this.div),this._uiManager._signal.addEventListener("abort",()=>{var n;(n=O(this,El))==null||n.disconnect(),fe(this,El,null)},{once:!0}))},Tt(Tx,"_type","stamp"),Tt(Tx,"_editorType",en.STAMP);let uE=Tx;var fh,bf,Po,gh,Al,Nl,Ml,Ts,Qc,vf,wf,Er,pt,Zc,nr,OH,fE,gE,xE,$w;const Sa=class Sa{constructor({uiManager:e,pageIndex:n,div:i,accessibilityManager:r,annotationLayer:s,drawLayer:a,textLayer:l,viewport:c,l10n:d}){xe(this,nr);xe(this,fh);xe(this,bf,!1);xe(this,Po,null);xe(this,gh,null);xe(this,Al,null);xe(this,Nl,null);xe(this,Ml,null);xe(this,Ts,new Map);xe(this,Qc,!1);xe(this,vf,!1);xe(this,wf,!1);xe(this,Er,null);xe(this,pt);const u=[...O(Sa,Zc).values()];if(!Sa._initialized){Sa._initialized=!0;for(const h of u)h.initialize(d,e)}e.registerEditorTypes(u),fe(this,pt,e),this.pageIndex=n,this.div=i,fe(this,fh,r),fe(this,Po,s),this.viewport=c,fe(this,Er,l),this.drawLayer=a,O(this,pt).addLayer(this)}get isEmpty(){return O(this,Ts).size===0}get isInvisible(){return this.isEmpty&&O(this,pt).getMode()===en.NONE}updateToolbar(e){O(this,pt).updateToolbar(e)}updateMode(e=O(this,pt).getMode()){switch(ye(this,nr,$w).call(this),e){case en.NONE:this.disableTextSelection(),this.togglePointerEvents(!1),this.toggleAnnotationLayerPointerEvents(!0),this.disableClick();return;case en.INK:this.addInkEditorIfNeeded(!1),this.disableTextSelection(),this.togglePointerEvents(!0),this.disableClick();break;case en.HIGHLIGHT:this.enableTextSelection(),this.togglePointerEvents(!1),this.disableClick();break;default:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick()}this.toggleAnnotationLayerPointerEvents(!1);const{classList:n}=this.div;for(const i of O(Sa,Zc).values())n.toggle(`${i._type}Editing`,e===i._editorType);this.div.hidden=!1}hasTextLayer(e){var n;return e===((n=O(this,Er))==null?void 0:n.div)}addInkEditorIfNeeded(e){if(O(this,pt).getMode()!==en.INK)return;if(!e){for(const i of O(this,Ts).values())if(i.isEmpty()){i.setInBackgroun
175d();return}}this.createAndAddNewEditor({offsetX:0,offsetY:0},!1).setInBackground()}setEditingState(e){O(this,pt).setEditingState(e)}addCommands(e){O(this,pt).addCommands(e)}togglePointerEvents(e=!1){this.div.classList.toggle("disabled",!e)}toggleAnnotationLayerPointerEvents(e=!1){var n;(n=O(this,Po))==null||n.div.classList.toggle("disabled",!e)}enable(){this.div.tabIndex=0,this.togglePointerEvents(!0);const e=new Set;for(const i of O(this,Ts).values())i.enableEditing(),i.show(!0),i.annotationElementId&&(O(this,pt).removeChangedExistingAnnotation(i),e.add(i.annotationElementId));if(!O(this,Po))return;const n=O(this,Po).getEditableAnnotations();for(const i of n){if(i.hide(),O(this,pt).isDeletedAnnotationElement(i.data.id)||e.has(i.data.id))continue;const r=this.deserialize(i);r&&(this.addOrRebuild(r),r.enableEditing())}}disable(){var r;fe(this,wf,!0),this.div.tabIndex=-1,this.togglePointerEvents(!1);const e=new Map,n=new Map;for(const s of O(this,Ts).values())if(s.disableEditing(),!!s.annotationElementId){if(s.serialize()!==null){e.set(s.annotationElementId,s);continue}else n.set(s.annotationElementId,s);(r=this.getEditableAnnotation(s.annotationElementId))==null||r.show(),s.remove()}if(O(this,Po)){const s=O(this,Po).getEditableAnnotations();for(const a of s){const{id:l}=a.data;if(O(this,pt).isDeletedAnnotationElement(l))continue;let c=n.get(l);if(c){c.resetAnnotationElement(a),c.show(!1),a.show();continue}
175c=e.get(l),c&&(O(this,pt).addChangedExistingAnnotation(c),c.renderAnnotationElement(a),c.show(!1)),a.show()}}ye(this,nr,$w).call(this),this.isEmpty&&(this.div.hidden=!0);const{classList:i}=this.div;for(const s of O(Sa,Zc).values())i.remove(`${s._type}Editing`);this.disableTextSelection(),this.toggleAnnotationLayerPointerEvents(!0),fe(this,wf,!1)}getEditableAnnotation(e){var n;return((n=O(this,Po))==null?void 0:n.getEditableAnnotation(e))||null}setActiveEditor(e){O(this,pt).getActive()!==e&&O(this,pt).setActiveEditor(e)}enableTextSelection(){var e;this.div.tabIndex=-1,(e=O(this,Er))!=null&&e.div&&!O(this,Nl)&&(fe(this,Nl,ye(this,nr,OH).bind(this)),O(this,Er).div.addEventListener("pointerdown",O(this,Nl),{signal:O(this,pt)._signal}),O(this,Er).div.classList.add("highlighting"))}disableTextSelection(){var e;this.div.tabIndex=0,(e=O(this,Er))!=null&&e.div&&O(this,Nl)&&(O(this,Er).div.removeEventListener("pointerdown",O(this,Nl)),fe(this,Nl,null),O(this,Er).div.classList.remove("highlighting"))}enableClick(){if(O(this,Al))return;const e=O(this,pt)._signal;fe(this,Al,this.pointerdown.bind(this)),fe(this,gh,this.pointerup.bind(this)),this.div.addEventListener("pointerdown",O(this,Al),{signal:e}),this.div.addEventListener("pointerup",O(this,gh),{signal:e})}disableClick(){O(this,Al)&&(this.div.removeEventListener("pointerdown",O(this,Al)),this.div.removeEventListener("pointerup",O(this,gh)),fe(this,Al,null),fe(this,gh,null))}attach(e){O(this,Ts).set(e.id,e);const{annotationElementId:n}=e;n&&O(this,pt).isDeletedAnnotationElement(n)&&O(this,pt).removeDeletedAnnotationElement(e)}detach(e){var n;O(this,Ts).delete(e.id),(n=O(this,fh))==null||n.removePointerInTextLayer(e.contentDiv),!O(this,wf)&&e.annotationElementId&&O(this,pt).addDeletedAnnotationElement(e)}remove(e){this.detach(e),O(this,pt).removeEditor(e),e.div.remove(),e.isAttachedToDOM=!1,O(this,vf)||this.addInkEditorIfNeeded(!1)}changeParent(e){var n;e.parent!==this&&(e.parent&&e.annotationElementId&&(O(this,pt).addDeletedAnnotationElement(e.annotationElementId),yn.deleteAnnotationElement(e),e.annotationElementId=null),this.attach(e),(n=e.parent)==null||n.detach(e),e.setParent(this),e.div&&e.isAttachedToDOM&&(e.div.remove(),this.div.append(e.div)))}add(e){if(!(e.parent===this&&e.isAttachedToDOM)){if(this.changeParent(e),O(this,pt).addEditor(e),this.attach(e),!e.isAttachedToDOM){const n=e.render();this.div.append(n),e.isAttachedToDOM=!0}e.fixAndSetPosition(),e.onceAdded(),O(this,pt).addToAnnotationStorage(e),e._reportTelemetry(e.telemetryInitialData)}}moveEditorInDOM(e){var i;if(!e.isAttachedToDOM)return;const{activeElement:n}=document;e.div.contains(n)&&!O(this,Ml)&&(e._focusEventsAllowed=!1,fe(this,Ml,setTimeout(()=>{fe(this,Ml,null),e.div.contains(document.activeElement)?e._focusEventsAllowed=!0:(e.div.addEventListener("focusin",()=>{e._focusEventsAllowed=!0},{once:!0,signal:O(this,pt)._signal}),n.focus())},0))),e._structTreeParentId=(i=O(this,fh))==null?void 0:i.moveElementInDOM(this.div,e.div,e.contentDiv,!0)}addOrRebuild(e){e.needsToBeRebuilt()?(e.parent||(e.parent=this),e.rebuild(),e.show()):this.add(e)}addUndoableEditor(e){const n=()=>e._uiManager.rebuild(e),i=()=>{e.remove()};this.addCommands({cmd:n,undo:i,mustExec:!1})}getNextId(){return O(this,pt).getId()}get _signal(){return O(this,pt)._signal}canCreateNewEmptyEditor(){var e;return(e=O(this,nr,fE))==null?void 0:e.canCreateNewEmptyEditor()}pasteEditor(e,n){O(this,pt).updateToolbar(e),O(this,pt).updateMode(e);const{offsetX:i,offsetY:r}=ye(this,nr,xE).call(this),s=this.getNextId(),a=ye(this,nr,gE).call(this,{parent:this,id:s,x:i,y:r,uiManager:O(this,pt),isCentered:!0,...n});a&&this.add(a)}deserialize(e){var n;return((n=O(Sa,Zc).get(e.annotationType??e.annotationEditorType))==null?void 0:n.deserialize(e,this,O(this,pt)))||null}createAndAddNewEditor(e,n,i={}){const r=this.getNextId(),s=ye(this,nr,gE).call(this,{parent:this,id:r,x:e.offsetX,y:e.offsetY,uiManager:O(this,pt),isCentered:n,...i});return s&&this.add(s),s}addNewEditor(){this.createAndAddNewEditor(ye(this,nr,xE).call(this),!0)}setSelected(e){O(this,pt).setSelected(e)}toggleSelected(e){O(this,pt).toggleSelected(e)}isSelected(e){return O(this,pt).isSelected(e)}unselect(e){O(this,pt).unselect(e)}pointerup(e){const{isMac:n}=is.platform;if(!(e.button!==0||e.ctrlKey&&n)&&e.target===this.div&&O(this,Qc)){if(fe(this,Qc,!1),!O(this,bf)){fe(this,bf,!0);return}if(O(this,pt).getMode()===en.STAMP){O(this,pt).unselectAll();return}this.createAndAddNewEditor(e,!1)}}pointerdown(e){if(O(this,pt).getMode()===en.HIGHLIGHT&&this.enableTextSelection(),O(this,Qc)){fe(this,Qc,!1);return}const{isMac:n}=is.platform;if(e.button!==0||e.ctrlKey&&n||e.target!==this.div)return;fe(this,Qc,!0);const i=O(this,pt).getActive();fe(this,bf,!i||i.isEmpty())}findNewParent(e,n,i){const r=O(this,pt).findParent(n,i);return r===null||r===this?!1:(r.changeParent(e),!0)}destroy(){var e,n;((e=O(this,pt).getActive())==null?void 0:e.parent)===this&&(O(this,pt).commitOrRemove(),O(this,pt).setActiveEditor(null)),O(this,Ml)&&(clearTimeout(O(this,Ml)),fe(this,Ml,null));
175for(const i of O(this,Ts).values())(n=O(this,fh))==null||n.removePointerInTextLayer(i.contentDiv),i.setParent(null),i.isAttachedToDOM=!1,i.div.remove();this.div=null,O(this,Ts).clear(),O(this,pt).removeLayer(this)}render({viewport:e}){this.viewport=e,Hh(this.div,e);for(const n of O(this,pt).getEditors(this.pageIndex))this.add(n),n.rebuild();this.updateMode()}update({viewport:e}){O(this,pt).commitOrRemove(),ye(this,nr,$w).call(this);const n=this.viewport.rotation,i=e.rotation;if(this.viewport=e,Hh(this.div,{rotation:i}),n!==i)for(const r of O(this,Ts).values())r.rotate(i);this.addInkEditorIfNeeded(!1)}get pageDimensions(){const{pageWidth:e,pageHeight:n}=this.viewport.rawDims;return[e,n]}get scale(){return O(this,pt).viewParameters.realScale}};fh=new WeakMap,bf=new WeakMap,Po=new WeakMap,gh=new WeakMap,Al=new WeakMap,Nl=new WeakMap,Ml=new WeakMap,Ts=new WeakMap,Qc=new WeakMap,vf=new WeakMap,wf=new WeakMap,Er=new WeakMap,pt=new WeakMap,Zc=new WeakMap,nr=new WeakSet,OH=function(e){if(O(this,pt).unselectAll(),e.target===O(this,Er).div){const{isMac:n}=is.platform;if(e.button!==0||e.ctrlKey&&n)return;O(this,pt).showAllEditors("highlight",!0,!0),O(this,Er).div.classList.add("free"),c1.startHighlighting(this,O(this,pt).direction==="ltr",e),O(this,Er).div.addEventListener("pointerup",()=>{O(this,Er).div.classList.remove("free")},{once:!0,signal:O(this,pt)._signal}),e.preventDefault()}},fE=function(){return O(Sa,Zc).get(O(this,pt).getMode())},gE=function(e){const n=O(this,nr,fE);return n?new n.prototype.constructor(e):null},xE=function(){const{x:e,y:n,width:i,height:r}=this.div.getBoundingClientRect(),s=Math.max(0,e),a=Math.max(0,n),l=Math.min(window.innerWidth,e+i),c=Math.min(window.innerHeight,n+r),d=(s+l)/2-e,u=(a+c)/2-n,[h,p]=this.viewport.rotation%180===0?[d,u]:[u,d];return{offsetX:h,offsetY:p}},$w=function(){fe(this,vf,!0);for(const e of O(this,Ts).values())e.isEmpty()&&e.remove();fe(this,vf,!1)},Tt(Sa,"_initialized",!1),xe(Sa,Zc,new Map([qP,rE,uE,c1].map(e=>[e._editorType,e])));let mE=Sa;var Eo,qb,Ci,ed,Kb,bE,qh,vE,LH;const Vi=class Vi{constructor({pageIndex:e}){xe(this,qh);xe(this,Eo,null);xe(this,qb,0);xe(this,Ci,new Map);xe(this,ed,new Map);this.pageIndex=e}setParent(e){if(!O(this,Eo)){fe(this,Eo,e);return}if(O(this,Eo)!==e){if(O(this,Ci).size>0)for(const n of O(this,Ci).values())n.remove(),e.append(n);fe(this,Eo,e)}}static get _svgFactory(){return rn(this,"_svgFactory",new jM)}highlight(e,n,i,r=!1){const s=lr(this,qb)._++,a=ye(this,qh,vE).call(this,e.box);a.classList.add("highlight"),e.free&&a.classList.add("free");const l=Vi._svgFactory.createElement("defs");a.append(l);const c=Vi._svgFactory.createElement("path");l.append(c);const d=`path_p${this.pageIndex}_${s}`;c.setAttribute("id",d),c.setAttribute("d",e.toSVGPath()),r&&O(this,ed).set(s,c);const u=ye(this,qh,LH).call(this,l,d),h=Vi._svgFactory.createElement("use");return a.append(h),a.setAttribute("fill",n),a.setAttribute("fill-opacity",i),h.setAttribute("href",`#${d}`),O(this,Ci).set(s,a),{id:s,clipPathId:`url(#${u})`}}highlightOutline(e){const n=lr(this,qb)._++,i=ye(this,qh,vE).call(this,e.box);i.classList.add("highlightOutline");const r=Vi._svgFactory.createElement("defs");i.append(r);const s=Vi._svgFactory.createElement("path");r.append(s);const a=`path_p${this.pageIndex}_${n}`;s.setAttribute("id",a),s.setAttribute("d",e.toSVGPath()),s.setAttribute("vector-effect","non-scaling-stroke");let l;if(e.free){i.classList.add("free");const u=Vi._svgFactory.createElement("mask");r.append(u),l=`mask_p${this.pageIndex}_${n}`,u.setAttribute("id",l),u.setAttribute("maskUnits","objectBoundingBox");const h=Vi._svgFactory.createElement("rect");u.append(h),h.setAttribute("width","1"),h.setAttribute("height","1"),h.setAttribute("fill","white");const p=Vi._svgFactory.createElement("use");u.append(p),p.setAttribute("href",`#${a}`),p.setAttribute("stroke","none"),p.setAttribute("fill","black"),p.setAttribute("fill-rule","nonzero"),p.classList.add("mask")}const c=Vi._svgFactory.createElement("use");i.append(c),c.setAttribute("href",`#${a}`),l&&c.setAttribute("mask",`url(#${l})`);const d=c.cloneNode();return i.append(d),c.classList.add("mainOutline"),d.classList.add("secondaryOutline"),O(this,Ci).set(n,i),n}finalizeLine(e,n){const i=O(this,ed).get(e);O(this,ed).delete(e),this.updateBox(e,n.box),i.setAttribute("d",n.toSVGPath())}updateLine(e,n){O(this,Ci).get(e).firstChild.firstChild.setAttribute("d",n.toSVGPath())}removeFreeHighlight(e){this.remove(e),O(this,ed).delete(e)}updatePath(e,n){O(this,ed).get(e).setAttribute("d",n.toSVGPath())}updateBox(e,n){var i;ye(i=Vi,Kb,bE).call(i,O(this,Ci).get(e),n)}
175show(e,n){O(this,Ci).get(e).classList.toggle("hidden",!n)}rotate(e,n){O(this,Ci).get(e).setAttribute("data-main-rotation",n)}changeColor(e,n){O(this,Ci).get(e).setAttribute("fill",n)}changeOpacity(e,n){O(this,Ci).get(e).setAttribute("fill-opacity",n)}addClass(e,n){O(this,Ci).get(e).classList.add(n)}removeClass(e,n){O(this,Ci).get(e).classList.remove(n)}remove(e){O(this,Eo)!==null&&(O(this,Ci).get(e).remove(),O(this,Ci).delete(e))}destroy(){fe(this,Eo,null);for(const e of O(this,Ci).values())e.remove();O(this,Ci).clear()}};Eo=new WeakMap,qb=new WeakMap,Ci=new WeakMap,ed=new WeakMap,Kb=new WeakSet,bE=function(e,{x:n=0,y:i=0,width:r=1,height:s=1}={}){const{style:a}=e;a.top=`${100*i}%`,a.left=`${100*n}%`,a.width=`${100*r}%`,a.height=`${100*s}%`},qh=new WeakSet,vE=function(e){var i;const n=Vi._svgFactory.create(1,1,!0);return O(this,Eo).append(n),n.setAttribute("aria-hidden",!0),ye(i=Vi,Kb,bE).call(i,n,e),n},LH=function(e,n){const i=Vi._svgFactory.createElement("clipPath");e.append(i);const r=`clip_${n}`;i.setAttribute("id",r),i.setAttribute("clipPathUnits","objectBoundingBox");const s=Vi._svgFactory.createElement("use");return i.append(s),s.setAttribute("href",`#${n}`),s.classList.add("clip"),r},xe(Vi,Kb);let yE=Vi;var Zde=kt.AbortException,eue=kt.AnnotationEditorLayer,tue=kt.AnnotationEditorParamsType,nue=kt.AnnotationEditorType,iue=kt.AnnotationEditorUIManager,FH=kt.AnnotationLayer,BH=kt.AnnotationMode,rue=kt.CMapCompressionType,sue=kt.ColorPicker,aue=kt.DOMSVGFactory,oue=kt.DrawLayer,lue=kt.FeatureTest,_M=kt.GlobalWorkerOptions,cue=kt.ImageKind,due=kt.InvalidPDFException,uue=kt.MissingPDFException,hue=kt.OPS,pue=kt.Outliner,mue=kt.PDFDataRangeTransport,fue=kt.PDFDateString,gue=kt.PDFWorker,xue=kt.PasswordResponses,yue=kt.PermissionFlag,bue=kt.PixelsPerInch,vue=kt.RenderingCancelledException,$H=kt.TextLayer,wue=kt.UnexpectedResponseException,kue=kt.Util,Sue=kt.VerbosityLevel,Cue=kt.XfaLayer,jue=kt.build,Tue=kt.createValidAbsoluteUrl,Pue=kt.fetchData,HH=kt.getDocument,Eue=kt.getFilenameFromUrl,Aue=kt.getPdfFilenameFromUrl,Nue=kt.getXfaPageViewport,Mue=kt.isDataScheme,Due=kt.isPdfFile,_ue=kt.noContextMenu,Iue=kt.normalizeUnicode,Rue=kt.renderTextLayer,Oue=kt.setLayerDimensions,Lue=kt.shadow,Fue=kt.updateTextLayer,zH=kt.version;const Bue=Object.freeze(Object.defineProperty({__proto__:null,AbortException:Zde,AnnotationEditorLayer:eue,AnnotationEditorParamsType:tue,AnnotationEditorType:nue,AnnotationEditorUIManager:iue,AnnotationLayer:FH,AnnotationMode:BH,CMapCompressionType:rue,ColorPicker:sue,DOMSVGFactory:aue,DrawLayer:oue,FeatureTest:lue,GlobalWorkerOptions:_M,ImageKind:cue,InvalidPDFException:due,MissingPDFException:uue,OPS:hue,Outliner:pue,PDFDataRangeTransport:mue,PDFDateString:fue,PDFWorker:gue,PasswordResponses:xue,PermissionFlag:yue,PixelsPerInch:bue,RenderingCancelledException:vue,TextLayer:$H,UnexpectedResponseException:wue,Util:kue,VerbosityLevel:Sue,XfaLayer:Cue,build:jue,createValidAbsoluteUrl:Tue,fetchData:Pue,getDocument:HH,getFilenameFromUrl:Eue,getPdfFilenameFromUrl:Aue,getXfaPageViewport:Nue,isDataScheme:Mue,isPdfFile:Due,noContextMenu:_ue,normalizeUnicode:Iue,renderTextLayer:Rue,setLayerDimensions:Oue,shadow:Lue,updateTextLayer:Fue,version:zH},Symbol.toStringTag,{value:"Module"}));var Di=function(t,e,n){if(n||arguments.length===2)for(var i=0,r=e.length,s;i<r;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},$ue=["onCopy","onCut","onPaste"],Hue=["onCompositionEnd","onCompositionStart","onCompositionUpdate"],zue=["onFocus","onBlur"],Vue=["onInput","onInvalid","onReset","onSubmit"],Uue=["onLoad","onError"],Wue=["onKeyDown","onKeyPress","onKeyUp"],Gue=["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],que=["onClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"],Kue=["onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop"],Yue=["onSelect"],Xue=["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],Jue=["onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut"],Que=["onScroll"],Zue=["onWheel"],ehe=["onAnimationStart","onAnimationEnd","onAnimationIteration"],the=["onTransitionEnd"],nhe=["onToggle"],ihe=["onChange"],rhe=Di(Di(Di(Di(Di(Di(Di(Di(Di(Di(Di(Di(Di(Di(Di(Di(Di(Di([],$ue,!0),Hue,!0),zue,!0),Vue,!0),Uue,!0),Wue,!0),Gue,!0),que,!0),Kue,!0),Yue,!0),Xue,!0),Jue,!0),Que,!0),Zue,!0),ehe,!0),the,!0),ihe,!0),nhe,!0);function VH(t,e){var n={};return rhe.forEach(function(i){var r=t[i];r&&(e?n[i]=function(s){return r(s,e(i))}:n[i]=r)}),n}function kv(t){var e=!1,n=new Promise(function(i,r){t.then(function(s){return!e&&i(s)}).catch(function(s){return!e&&r(s)})});return{promise:n,cancel:function(){e=!0}}}var she="Invariant failed";function Tn(t,e){if(!t)throw new Error(she)}var ahe=function(){}
175,ohe=ahe;const yr=Fr(ohe);var XO=Object.prototype.hasOwnProperty;function JO(t,e,n){for(n of t.keys())if(cm(n,e))return n}function cm(t,e){var n,i,r;if(t===e)return!0;if(t&&e&&(n=t.constructor)===e.constructor){if(n===Date)return t.getTime()===e.getTime();if(n===RegExp)return t.toString()===e.toString();if(n===Array){if((i=t.length)===e.length)for(;i--&&cm(t[i],e[i]););return i===-1}if(n===Set){if(t.size!==e.size)return!1;for(i of t)if(r=i,r&&typeof r=="object"&&(r=JO(e,r),!r)||!e.has(r))return!1;return!0}if(n===Map){if(t.size!==e.size)return!1;for(i of t)if(r=i[0],r&&typeof r=="object"&&(r=JO(e,r),!r)||!cm(i[1],e.get(r)))return!1;return!0}if(n===ArrayBuffer)t=new Uint8Array(t),e=new Uint8Array(e);else if(n===DataView){if((i=t.byteLength)===e.byteLength)for(;i--&&t.getInt8(i)===e.getInt8(i););return i===-1}if(ArrayBuffer.isView(t)){if((i=t.byteLength)===e.byteLength)for(;i--&&t[i]===e[i];);return i===-1}if(!n||typeof t=="object"){i=0;for(n in t)if(XO.call(t,n)&&++i&&!XO.call(e,n)||!(n in e)||!cm(t[n],e[n]))return!1;return Object.keys(e).length===i}}return t!==t&&e!==e}const UH=Z.createContext(null);function dm({children:t,type:e}){return o.jsx("div",{className:`react-pdf__message react-pdf__message--${e}`,children:t})}const lhe="noopener noreferrer nofollow";class che{constructor(){this.externalLinkEnabled=!0,this.externalLinkRel=void 0,this.externalLinkTarget=void 0,this.isInPresentationMode=!1,this.pdfDocument=void 0,this.pdfViewer=void 0}setDocument(e){this.pdfDocument=e}setViewer(e){this.pdfViewer=e}setExternalLinkRel(e){this.externalLinkRel=e}setExternalLinkTarget(e){this.externalLinkTarget=e}setHistory(){}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return Tn(this.pdfViewer),this.pdfViewer.currentPageNumber||0}set page(e){Tn(this.pdfViewer),this.pdfViewer.currentPageNumber=e}get rotation(){return 0}set rotation(e){}goToDestination(e){return new Promise(n=>{Tn(this.pdfDocument),Tn(e),typeof e=="string"?this.pdfDocument.getDestination(e).then(n):Array.isArray(e)?n(e):e.then(n)}).then(n=>{Tn(Array.isArray(n));const i=n[0];new Promise(r=>{Tn(this.pdfDocument),i instanceof Object?this.pdfDocument.getPageIndex(i).then(s=>{r(s)}).catch(()=>{Tn(!1)}):typeof i=="number"?r(i):Tn(!1)}).then(r=>{const s=r+1;Tn(this.pdfViewer),Tn(s>=1&&s<=this.pagesCount),this.pdfViewer.scrollPageIntoView({dest:n,pageIndex:r,pageNumber:s})})})}navigateTo(e){this.goToDestination(e)}goToPage(e){const n=e-1;Tn(this.pdfViewer),Tn(e>=1&&e<=this.pagesCount),this.pdfViewer.scrollPageIntoView({pageIndex:n,pageNumber:e})}addLinkAttributes(e,n,i){e.href=n,e.rel=this.externalLinkRel||lhe,e.target=i?"_blank":this.externalLinkTarget||""}getDestinationHash(){return"#"}getAnchorUrl(){return"#"}setHash(){}executeNamedAction(){}cachePageRef(){}isPageVisible(){return!0}isPageCached(){return!0}executeSetOCGState(){}}const QO={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},nC=typeof document<"u",WH=nC&&window.location.protocol==="file:";function dhe(t){return typeof t<"u"}function zd(t){return dhe(t)&&t!==null}function uhe(t){return typeof t=="string"}function hhe(t){return t instanceof ArrayBuffer}function phe(t){return Tn(nC),t instanceof Blob}function wE(t){return uhe(t)&&/^data:/.test(t)}function ZO(t){Tn(wE(t));const[e="",n=""]=t.split(",");return e.split(";").indexOf("base64")!==-1?atob(n):unescape(n)}function mhe(){return nC&&window.devicePixelRatio||1}const GH="On Chromium based browsers, you can use --allow-file-access-from-files flag for debugging purposes.";function eL(){yr(!WH,`Loading PDF as base64 strings/URLs may not work on protocols other than HTTP/HTTPS. ${GH}`)}function fhe(){yr(!WH,`Loading PDF.js worker may not work on protocols other than HTTP/HTTPS. ${GH}`)}function Uh(t){t!=null&&t.cancel&&t.cancel()}function kE(t,e){return Object.defineProperty(t,"width",{get(){return this.view[2]*e},configurable:!0}),Object.defineProperty(t,"height",{get(){return this.view[3]*e},configurable:!0}),Object.defineProperty(t,"originalWidth",{get(){return this.view[2]},configurable:!0}),Object.defineProperty(t,"originalHeight",{get(){return this.view[3]},configurable:!0}),t}function ghe(t){return t.name==="RenderingCancelledException"}
175function xhe(t){return new Promise((e,n)=>{const i=new FileReader;i.onload=()=>{if(!i.result)return n(new Error("Error while reading a file."));e(i.result)},i.onerror=r=>{if(!r.target)return n(new Error("Error while reading a file."));const{error:s}=r.target;if(!s)return n(new Error("Error while reading a file."));switch(s.code){case s.NOT_FOUND_ERR:return n(new Error("Error while reading a file: File not found."));case s.SECURITY_ERR:return n(new Error("Error while reading a file: Security error."));case s.ABORT_ERR:return n(new Error("Error while reading a file: Aborted."));default:return n(new Error("Error while reading a file."))}},i.readAsArrayBuffer(t)})}function yhe(t,e){switch(e.type){case"RESOLVE":return{value:e.value,error:void 0};case"REJECT":return{value:!1,error:e.error};case"RESET":return{value:void 0,error:void 0};default:return t}}function Bf(){return Z.useReducer(yhe,{value:void 0,error:void 0})}var bhe=function(t,e,n,i){function r(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function l(u){try{d(i.next(u))}catch(h){a(h)}}function c(u){try{d(i.throw(u))}catch(h){a(h)}}function d(u){u.done?s(u.value):r(u.value).then(l,c)}d((i=i.apply(t,e||[])).next())})},tL=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]]);return n};const{PDFDataRangeTransport:vhe}=Bue,whe=(t,e)=>{switch(e){case QO.NEED_PASSWORD:{const n=prompt("Enter the password to open this PDF file.");t(n);break}case QO.INCORRECT_PASSWORD:{const n=prompt("Invalid password. Please try again.");t(n);break}}};function nL(t){return typeof t=="object"&&t!==null&&("data"in t||"range"in t||"url"in t)}const khe=Z.forwardRef(function(e,n){var{children:i,className:r,error:s="Failed to load PDF file.",externalLinkRel:a,externalLinkTarget:l,file:c,inputRef:d,imageResourcesPath:u,loading:h="Loading PDFâ¦",noData:p="No PDF file specified.",onItemClick:y,onLoadError:m,onLoadProgress:w,onLoadSuccess:k,onPassword:b=whe,onSourceError:x,onSourceSuccess:v,options:E,renderMode:N,rotate:S}=e,_=tL(e,["children","className","error","externalLinkRel","externalLinkTarget","file","inputRef","imageResourcesPath","loading","noData","onItemClick","onLoadError","onLoadProgress","onLoadSuccess","onPassword","onSourceError","onSourceSuccess","options","renderMode","rotate"]);const[$,V]=Bf(),{value:I,error:A}=$,[L,T]=Bf(),{value:g,error:f}=L,j=Z.useRef(new che),P=Z.useRef([]),C=Z.useRef(void 0),D=Z.useRef(void 0);c&&c!==C.current&&nL(c)&&(yr(!cm(c,C.current),`File prop passed to <Document /> changed, but it's equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "file" prop.`),C.current=c),E&&E!==D.current&&(yr(!cm(E,D.current),`Options prop passed to <Document /> changed, but it's equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "options" prop.`),D.current=E);const M=Z.useRef({scrollPageIntoView:G=>{const{dest:W,pageNumber:Y,pageIndex:X=Y-1}=G;if(y){y({dest:W,pageIndex:X,pageNumber:Y});return}const re=P.current[X];if(re){re.scrollIntoView();return}yr(!1,`An internal link leading to page ${Y} was clicked, but neither <Document> was provided with onItemClick nor it was able to find the page within itself. Either provide onItemClick to <Document> and handle navigating by yourself or ensure that all pages are rendered within <Document>.`)}});Z.useImperativeHandle(n,()=>({linkService:j,pages:P,viewer:M}),[]);function z(){v&&v()}function J(){A&&(yr(!1,A.toString()),x&&x(A))}function F(){V({type:"RESET"})}Z.useEffect(F,[c,V]);const q=Z.useCallback(()=>bhe(this,void 0,void 0,function*(){if(!c)return null;if(typeof c=="string")return wE(c)?{data:ZO(c)}:(eL(),{url:c});if(c instanceof vhe)return{range:c};if(hhe(c))return{data:c};if(nC&&phe(c))return{data:yield xhe(c)};if(Tn(typeof c=="object"),Tn(nL(c)),"url"in c&&typeof c.url=="string"){if(wE(c.url)){const{url:G}=c,W=tL(c,["url"]),Y=ZO(G);return Object.assign({data:Y},W)}eL()}return c}),[c]);Z.useEffect(()=>{const G=kv(q());return G.promise.then(W=>{V({type:"RESOLVE",value:W})}).catch(W=>{V({type:"REJECT",error:W})}),()=>{Uh(G)}},[q,V]),Z.useEffect(()=>{if(!(typeof I>"u")){if(I===!1){J();return}z()}},[I]);
175function U(){g&&(k&&k(g),P.current=new Array(g.numPages),j.current.setDocument(g))}function Q(){f&&(yr(!1,f.toString()),m&&m(f))}Z.useEffect(function(){T({type:"RESET"})},[T,I]),Z.useEffect(function(){if(!I)return;const W=Object.assign(Object.assign({},I),E),Y=HH(W);w&&(Y.onProgress=w),b&&(Y.onPassword=b);const X=Y;return X.promise.then(re=>{T({type:"RESOLVE",value:re})}).catch(re=>{X.destroyed||T({type:"REJECT",error:re})}),()=>{X.destroy()}},[E,T,I]),Z.useEffect(()=>{if(!(typeof g>"u")){if(g===!1){Q();return}U()}},[g]),Z.useEffect(function(){j.current.setViewer(M.current),j.current.setExternalLinkRel(a),j.current.setExternalLinkTarget(l)},[a,l]);const ce=Z.useCallback((G,W)=>{P.current[G]=W},[]),H=Z.useCallback(G=>{delete P.current[G]},[]),B=Z.useMemo(()=>({imageResourcesPath:u,linkService:j.current,onItemClick:y,pdf:g,registerPage:ce,renderMode:N,rotate:S,unregisterPage:H}),[u,y,g,ce,N,S,H]),K=Z.useMemo(()=>VH(_,()=>g),[_,g]);function ie(){return o.jsx(UH.Provider,{value:B,children:i})}function R(){return c?g==null?o.jsx(dm,{type:"loading",children:typeof h=="function"?h():h}):g===!1?o.jsx(dm,{type:"error",children:typeof s=="function"?s():s}):ie():o.jsx(dm,{type:"no-data",children:typeof p=="function"?p():p})}return o.jsx("div",Object.assign({className:ha("react-pdf__Document",r),ref:d,style:{"--scale-factor":"1"}},K,{children:R()}))});function qH(){return Z.useContext(UH)}function KH(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.filter(Boolean);if(n.length<=1){var i=n[0];return i||null}return function(s){n.forEach(function(a){typeof a=="function"?a(s):a&&(a.current=s)})}}const YH=Z.createContext(null),XH={Document:null,DocumentFragment:null,Part:"group",Sect:"group",Div:"group",Aside:"note",NonStruct:"none",P:null,H:"heading",Title:null,FENote:"note",Sub:"group",Lbl:null,Span:null,Em:null,Strong:null,Link:"link",Annot:"note",Form:"form",Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:"list",LI:"listitem",LBody:null,Table:"table",TR:"row",TH:"columnheader",TD:"cell",THead:"columnheader",TBody:null,TFoot:null,Caption:null,Figure:"figure",Formula:null,Artifact:null},She=/^H(\d+)$/;function Che(t){return t in XH}function iC(t){return"children"in t}function JH(t){return iC(t)?t.children.length===1&&0 in t.children&&"id"in t.children[0]:!1}function jhe(t){const e={};if(iC(t)){const{role:n}=t,i=n.match(She);if(i)e.role="heading",e["aria-level"]=Number(i[1]);else if(Che(n)){const r=XH[n];r&&(e.role=r)}}return e}function QH(t){const e={};if(iC(t)){if(t.alt!==void 0&&(e["aria-label"]=t.alt),t.lang!==void 0&&(e.lang=t.lang),JH(t)){const[n]=t.children;if(n){const i=QH(n);return Object.assign(Object.assign({},e),i)}}}else"id"in t&&(e["aria-owns"]=t.id);return e}function The(t){return t?Object.assign(Object.assign({},jhe(t)),QH(t)):null}function ZH({className:t,node:e}){const n=Z.useMemo(()=>The(e),[e]),i=Z.useMemo(()=>!iC(e)||JH(e)?null:e.children.map((r,s)=>o.jsx(ZH,{node:r},s)),[e]);return o.jsx("span",Object.assign({className:t},n,{children:i}))}function rC(){return Z.useContext(YH)}function Phe(){const t=rC();Tn(t);const{onGetStructTreeError:e,onGetStructTreeSuccess:n}=t,[i,r]=Bf(),{value:s,error:a}=i,{customTextRenderer:l,page:c}=t;function d(){s&&n&&n(s)}function u(){a&&(yr(!1,a.toString()),e&&e(a))}return Z.useEffect(function(){r({type:"RESET"})},[r,c]),Z.useEffect(function(){if(l||!c)return;const p=kv(c.getStructTree()),y=p;return p.promise.then(m=>{r({type:"RESOLVE",value:m})}).catch(m=>{r({type:"REJECT",error:m})}),()=>Uh(y)},[l,c,r]),Z.useEffect(()=>{if(s!==void 0){if(s===!1){u();return}d()}},[s]),s?o.jsx(ZH,{className:"react-pdf__Page__structTree structTree",node:s}):null}const iL=BH;function Ehe(t){const e=rC();Tn(e);const n=Object.assign(Object.assign({},e),t),{_className:i,canvasBackground:r,devicePixelRatio:s=mhe(),onRenderError:a,onRenderSuccess:l,page:c,renderForms:d,renderTextLayer:u,rotate:h,scale:p}=n,{canvasRef:y}=t;Tn(c);const m=Z.useRef(null);function w(){c&&l&&l(kE(c,p))}function k(E){ghe(E)||(yr(!1,E.toString()),a&&a(E))}const b=Z.useMemo(()=>c.getViewport({scale:p*s,rotation:h}),[s,c,h,p]),x=Z.useMemo(()=>c.getViewport({scale:p,rotation:h}),[c,h,p]);Z.useEffect(function(){if(!c)return;c.cleanup();const{current:N}
175=m;if(!N)return;N.width=b.width,N.height=b.height,N.style.width=`${Math.floor(x.width)}px`,N.style.height=`${Math.floor(x.height)}px`,N.style.visibility="hidden";const S={annotationMode:d?iL.ENABLE_FORMS:iL.ENABLE,canvasContext:N.getContext("2d",{alpha:!1}),viewport:b};r&&(S.background=r);const _=c.render(S),$=_;return _.promise.then(()=>{N.style.visibility="",w()}).catch(k),()=>Uh($)},[r,c,d,b,x]);const v=Z.useCallback(()=>{const{current:E}=m;E&&(E.width=0,E.height=0)},[]);return Z.useEffect(()=>v,[v]),o.jsx("canvas",{className:`${i}__canvas`,dir:"ltr",ref:KH(y,m),style:{display:"block",userSelect:"none"},children:u?o.jsx(Phe,{}):null})}function Ahe(t){return"str"in t}function Nhe(){const t=rC();Tn(t);const{customTextRenderer:e,onGetTextError:n,onGetTextSuccess:i,onRenderTextLayerError:r,onRenderTextLayerSuccess:s,page:a,pageIndex:l,pageNumber:c,rotate:d,scale:u}=t;Tn(a);const[h,p]=Bf(),{value:y,error:m}=h,w=Z.useRef(null),k=Z.useRef(void 0);yr(Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-text-layer"),10)===1,"TextLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-text-layer");function b(){y&&i&&i(y)}function x(){m&&(yr(!1,m.toString()),n&&n(m))}Z.useEffect(function(){p({type:"RESET"})},[a,p]),Z.useEffect(function(){if(!a)return;const V=kv(a.getTextContent()),I=V;return V.promise.then(A=>{p({type:"RESOLVE",value:A})}).catch(A=>{p({type:"REJECT",error:A})}),()=>Uh(I)},[a,p]),Z.useEffect(()=>{if(y!==void 0){if(y===!1){x();return}b()}},[y]);const v=Z.useCallback(()=>{s&&s()},[s]),E=Z.useCallback($=>{yr(!1,$.toString()),r&&r($)},[r]);function N(){const $=k.current;$&&$.classList.add("active")}function S(){const $=k.current;$&&$.classList.remove("active")}const _=Z.useMemo(()=>a.getViewport({scale:u,rotation:d}),[a,d,u]);return Z.useLayoutEffect(function(){if(!a||!y)return;const{current:V}=w;if(!V)return;V.innerHTML="";const I=a.streamTextContent({includeMarkedContent:!0}),A={container:V,textContentSource:I,viewport:_},L=new $H(A),T=L;return L.render().then(()=>{const g=document.createElement("div");g.className="endOfContent",V.append(g),k.current=g;const f=V.querySelectorAll('[role="presentation"]');if(e){let j=0;y.items.forEach((P,C)=>{if(!Ahe(P))return;const D=f[j];if(!D)return;const M=e(Object.assign({pageIndex:l,pageNumber:c,itemIndex:C},P));D.innerHTML=M,j+=P.str&&P.hasEOL?2:1})}v()}).catch(E),()=>Uh(T)},[e,E,v,a,l,c,y,_]),o.jsx("div",{className:ha("react-pdf__Page__textContent","textLayer"),onMouseUp:S,onMouseDown:N,ref:w})}function Mhe(){const t=qH(),e=rC();Tn(e);const n=Object.assign(Object.assign({},t),e),{imageResourcesPath:i,linkService:r,onGetAnnotationsError:s,onGetAnnotationsSuccess:a,onRenderAnnotationLayerError:l,onRenderAnnotationLayerSuccess:c,page:d,pdf:u,renderForms:h,rotate:p,scale:y=1}=n;Tn(u),Tn(d),Tn(r);const[m,w]=Bf(),{value:k,error:b}=m,x=Z.useRef(null);yr(Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-annotation-layer"),10)===1,"AnnotationLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-annotations");function v(){k&&a&&a(k)}function E(){b&&(yr(!1,b.toString()),s&&s(b))}Z.useEffect(function(){w({type:"RESET"})},[w,d]),Z.useEffect(function(){if(!d)return;const V=kv(d.getAnnotations()),I=V;return V.promise.then(A=>{w({type:"RESOLVE",value:A})}).catch(A=>{w({type:"REJECT",error:A})}),()=>{Uh(I)}},[w,d]),Z.useEffect(()=>{if(k!==void 0){if(k===!1){E();return}v()}},[k]);function N(){c&&c()}function S($){yr(!1,`${$}`),l&&l($)}const _=Z.useMemo(()=>d.getViewport({scale:y,rotation:p}),[d,p,y]);return Z.useEffect(function(){if(!u||!d||!r||!k)return;const{current:V}=x;if(!V)return;const I=_.clone({dontFlip:!0}),A={accessibilityManager:null,annotationCanvasMap:null,annotationEditorUIManager:null,div:V,l10n:null,page:d,viewport:I},L={annotations:k,annotationStorage:u.annotationStorage,div:V,imageResourcesPath:i,linkService:r,page:d,renderForms:h,viewport:I};V.innerHTML="";try{new FH(A).render(L),N()}catch(T){S(T)}return()=>{}},[k,i,r,d,u,h,_]),o.jsx("div",{className:ha("react-pdf__Page__annotations","annotationLayer"),ref:x})}var Dhe=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]]);return n};const rL=1;function _he(t){const e=qH(),n=Object.assign(Object.assign({},e),t),{_className:i="react-pdf__Page",_enableRegisterUnregisterPage:r=!0,canvasBackgroun
175d:s,canvasRef:a,children:l,className:c,customRenderer:d,customTextRenderer:u,devicePixelRatio:h,error:p="Failed to load the page.",height:y,inputRef:m,loading:w="Loading pageâ¦",noData:k="No page specified.",onGetAnnotationsError:b,onGetAnnotationsSuccess:x,onGetStructTreeError:v,onGetStructTreeSuccess:E,onGetTextError:N,onGetTextSuccess:S,onLoadError:_,onLoadSuccess:$,onRenderAnnotationLayerError:V,onRenderAnnotationLayerSuccess:I,onRenderError:A,onRenderSuccess:L,onRenderTextLayerError:T,onRenderTextLayerSuccess:g,pageIndex:f,pageNumber:j,pdf:P,registerPage:C,renderAnnotationLayer:D=!0,renderForms:M=!1,renderMode:z="canvas",renderTextLayer:J=!0,rotate:F,scale:q=rL,unregisterPage:U,width:Q}=n,ce=Dhe(n,["_className","_enableRegisterUnregisterPage","canvasBackground","canvasRef","children","className","customRenderer","customTextRenderer","devicePixelRatio","error","height","inputRef","loading","noData","onGetAnnotationsError","onGetAnnotationsSuccess","onGetStructTreeError","onGetStructTreeSuccess","onGetTextError","onGetTextSuccess","onLoadError","onLoadSuccess","onRenderAnnotationLayerError","onRenderAnnotationLayerSuccess","onRenderError","onRenderSuccess","onRenderTextLayerError","onRenderTextLayerSuccess","pageIndex","pageNumber","pdf","registerPage","renderAnnotationLayer","renderForms","renderMode","renderTextLayer","rotate","scale","unregisterPage","width"]),[H,B]=Bf(),{value:K,error:ie}=H,R=Z.useRef(null);Tn(P);const G=zd(j)?j-1:f??null,W=j??(zd(f)?f+1:null),Y=F??(K?K.rotate:null),X=Z.useMemo(()=>{if(!K)return null;let de=1;const ue=q??rL;if(Q||y){const me=K.getViewport({scale:1,rotation:Y});Q?de=Q/me.width:y&&(de=y/me.height)}return ue*de},[y,K,Y,q,Q]);Z.useEffect(function(){return()=>{zd(G)&&r&&U&&U(G)}},[r,P,G,U]);function re(){if($){if(!K||!X)return;$(kE(K,X))}if(r&&C){if(!zd(G)||!R.current)return;C(G,R.current)}}function ee(){ie&&(yr(!1,ie.toString()),_&&_(ie))}Z.useEffect(function(){B({type:"RESET"})},[B,P,G]),Z.useEffect(function(){if(!P||!W)return;const ue=kv(P.getPage(W)),me=ue;return ue.promise.then(ge=>{B({type:"RESOLVE",value:ge})}).catch(ge=>{B({type:"REJECT",error:ge})}),()=>Uh(me)},[B,P,W]),Z.useEffect(()=>{if(K!==void 0){if(K===!1){ee();return}re()}},[K,X]);const se=Z.useMemo(()=>K&&zd(G)&&W&&zd(Y)&&zd(X)?{_className:i,canvasBackground:s,customTextRenderer:u,devicePixelRatio:h,onGetAnnotationsError:b,onGetAnnotationsSuccess:x,onGetStructTreeError:v,onGetStructTreeSuccess:E,onGetTextError:N,onGetTextSuccess:S,onRenderAnnotationLayerError:V,onRenderAnnotationLayerSuccess:I,onRenderError:A,onRenderSuccess:L,onRenderTextLayerError:T,onRenderTextLayerSuccess:g,page:K,pageIndex:G,pageNumber:W,renderForms:M,renderTextLayer:J,rotate:Y,scale:X}:null,[i,s,u,h,b,x,v,E,N,S,V,I,A,L,T,g,K,G,W,M,J,Y,X]),oe=Z.useMemo(()=>VH(ce,()=>K&&(X?kE(K,X):void 0)),[ce,K,X]),he=`${G}@${X}/${Y}`;function pe(){switch(z){case"custom":return Tn(d),o.jsx(d,{},`${he}_custom`);case"none":return null;case"canvas":default:return o.jsx(Ehe,{canvasRef:a},`${he}_canvas`)}}function ne(){return J?o.jsx(Nhe,{},`${he}_text`):null}function te(){return D?o.jsx(Mhe,{},`${he}_annotations`):null}function ae(){return o.jsxs(YH.Provider,{value:se,children:[pe(),ne(),te(),l]})}function le(){return W?P===null||K===void 0||K===null?o.jsx(dm,{type:"loading",children:typeof w=="function"?w():w}):P===!1||K===!1?o.jsx(dm,{type:"error",children:typeof p=="function"?p():p}):ae():o.jsx(dm,{type:"no-data",children:typeof k=="function"?k():k})}return o.jsx("div",Object.assign({className:ha(i,c),"data-page-number":W,ref:KH(m,R),style:{"--scale-factor":`${X}`,backgroundColor:s||"white",position:"relative",minWidth:"min-content",minHeight:"min-content"}},oe,{children:le()}))}fhe();_M.workerSrc="pdf.worker.mjs";var ez={},tz={},nz={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=function(){for(var r=arguments.length,s=new Array(r),a=0;a<r;a++)s[a]=arguments[a];if(typeof window<"u"){var l;typeof window.gtag>"u"&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),(l=window).gtag.apply(l,s)}},n=e;t.default=n})(nz);var iz={};
175(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var e=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function n(l){return l.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,function(c,d,u){return d>0&&d+c.length!==u.length&&c.search(e)>-1&&u.charAt(d-2)!==":"&&(u.charAt(d+c.length)!=="-"||u.charAt(d-1)==="-")&&u.charAt(d-1).search(/[^\s-]/)<0?c.toLowerCase():c.substr(1).search(/[A-Z]|\../)>-1?c:c.charAt(0).toUpperCase()+c.substr(1)})}function i(l){return typeof l=="string"&&l.indexOf("@")!==-1}var r="REDACTED (Potential Email Address)";function s(l){return i(l)?(console.warn("This arg looks like an email address, redacting."),r):l}function a(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,u=l||"";return c&&(u=n(l)),d&&(u=s(u)),u}})(iz);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.GA4=void 0;var e=a(nz),n=a(iz),i=["eventCategory","eventAction","eventLabel","eventValue","hitType"],r=["title","location"],s=["page","hitType"];function a(g){return g&&g.__esModule?g:{default:g}}function l(g,f){if(g==null)return{};var j=c(g,f),P,C;if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(g);for(C=0;C<D.length;C++)P=D[C],!(f.indexOf(P)>=0)&&Object.prototype.propertyIsEnumerable.call(g,P)&&(j[P]=g[P])}return j}function c(g,f){if(g==null)return{};var j={},P=Object.keys(g),C,D;for(D=0;D<P.length;D++)C=P[D],!(f.indexOf(C)>=0)&&(j[C]=g[C]);return j}function d(g){"@babel/helpers - typeof";return d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},d(g)}function u(g){return y(g)||p(g)||x(g)||h()}function h(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 176In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p(g){if(typeof Symbol<"u"&&g[Symbol.iterator]!=null||g["@@iterator"]!=null)return Array.from(g)}function y(g){if(Array.isArray(g))return v(g)}function m(g,f){var j=Object.keys(g);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(g);f&&(P=P.filter(function(C){return Object.getOwnPropertyDescriptor(g,C).enumerable})),j.push.apply(j,P)}return j}function w(g){for(var f=1;f<arguments.length;f++){var j=arguments[f]!=null?arguments[f]:{};f%2?m(Object(j),!0).forEach(function(P){V(g,P,j[P])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(j)):m(Object(j)).forEach(function(P){Object.defineProperty(g,P,Object.getOwnPropertyDescriptor(j,P))})}return g}function k(g,f){return N(g)||E(g,f)||x(g,f)||b()}function b(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 177In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function x(g,f){if(g){if(typeof g=="string")return v(g,f);var j=Object.prototype.toString.call(g).slice(8,-1);if(j==="Object"&&g.constructor&&(j=g.constructor.name),j==="Map"||j==="Set")return Array.from(g);if(j==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(j))return v(g,f)}}function v(g,f){(f==null||f>g.length)&&(f=g.length);for(var j=0,P=new Array(f);j<f;j++)P[j]=g[j];return P}function E(g,f){var j=g==null?null:typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"];if(j!=null){var P,C,D,M,z=[],J=!0,F=!1;try{if(D=(j=j.call(g)).next,f!==0)for(;!(J=(P=D.call(j)).done)&&(z.push(P.value),z.length!==f);J=!0);}catch(q){F=!0,C=q}finally{try{if(!J&&j.return!=null&&(M=j.return(),Object(M)!==M))return}finally{if(F)throw C}}return z}}function N(g){if(Array.isArray(g))return g}function S(g,f){if(!(g instanceof f))throw new TypeError("Cannot call a class as a function")}function _(g,f){for(var j=0;j<f.length;j++){var P=f[j];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(g,I(P.key),P)}}function $(g,f,j){return f&&_(g.prototype,f),Object.defineProperty(g,"prototype",{writable:!1}),g}function V(g,f,j){return f=I(f),f in g?Object.defineProperty(g,f,{value:j,enumerable:!0,configurable:!0,writable:!0}):g[f]=j,g}function I(g){var f=A(g,"string");return d(f)==="symbol"?f:String(f)}function A(g,f){if(d(g)!=="object"||g===null)return g;var j=g[Symbol.toPrimitive];if(j!==void 0){var P=j.call(g,f||"default");if(d(P)!=="object")return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(g)}var L=function(){function g(){var f=this;S(this,g),V(this,"reset",function(){f.isInitialized=!1,f._testMode=!1,f._currentMeasurementId,f._hasLoadedGA=!1,f._isQueuing=!1,f._queueGtag=[]}),V(this,"_gtag",function(){for(var j=arguments.length,P=new Array(j),C=0;C<j;C++)P[C]=arguments[C];f._testMode||f._isQueuing?f._queueGtag.push(P):e.default.apply(void 0,P)}),V(this,"_loadGA",function(j,P){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"https://www.googletagmanager.com/gtag/js";if(!(typeof window>"u"||typeof document>"u")&&!f._hasLoadedGA){var D=document.createElement("script");D.async=!0,D.src="".concat(C,"?id=").concat(j),P&&D.setAttribute("nonce",P),document.body.appendChild(D),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},f._hasLoadedGA=!0}}),V(this,"_toGtagOptions",function(j){if(j){var P={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"},C=Object.entries(j).reduce(function(D,M){var z=k(M,2),J=z[0],F=z[1];return P[J]?D[P[J]]=F:D[J]=F,D},{});return C}}),V(this,"initialize",function(j){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!j)throw new Error("Require GA_MEASUREMENT_ID");var C=typeof j=="string"?[{trackingId:j}]:j;f._currentMeasurementId=C[0].trackingId;var D=P.gaOptions,M=P.gtagOptions,z=P.nonce,J=P.testMode,F=J===void 0?!1:J,q=P.gtagUrl;if(f._testMode=F,F||f._loadGA(f._currentMeasurementId,z,q),f.isInitialized||(f._gtag("js",new Date),C.forEac
177h(function(ce){var H=w(w(w({},f._toGtagOptions(w(w({},D),ce.gaOptions))),M),ce.gtagOptions);Object.keys(H).length?f._gtag("config",ce.trackingId,H):f._gtag("config",ce.trackingId)})),f.isInitialized=!0,!F){var U=u(f._queueGtag);for(f._queueGtag=[],f._isQueuing=!1;U.length;){var Q=U.shift();f._gtag.apply(f,u(Q)),Q[0]==="get"&&(f._isQueuing=!0)}}}),V(this,"set",function(j){if(!j){console.warn("`fieldsObject` is required in .set()");return}if(d(j)!=="object"){console.warn("Expected `fieldsObject` arg to be an Object");return}Object.keys(j).length===0&&console.warn("empty `fieldsObject` given to .set()"),f._gaCommand("set",j)}),V(this,"_gaCommandSendEvent",function(j,P,C,D,M){f._gtag("event",P,w(w({event_category:j,event_label:C,value:D},M&&{non_interaction:M.nonInteraction}),f._toGtagOptions(M)))}),V(this,"_gaCommandSendEventParameters",function(){for(var j=arguments.length,P=new Array(j),C=0;C<j;C++)P[C]=arguments[C];if(typeof P[0]=="string")f._gaCommandSendEvent.apply(f,u(P.slice(1)));else{var D=P[0],M=D.eventCategory,z=D.eventAction,J=D.eventLabel,F=D.eventValue;D.hitType;var q=l(D,i);f._gaCommandSendEvent(M,z,J,F,q)}}),V(this,"_gaCommandSendTiming",function(j,P,C,D){f._gtag("event","timing_complete",{name:P,value:C,event_category:j,event_label:D})}),V(this,"_gaCommandSendPageview",function(j,P){if(P&&Object.keys(P).length){var C=f._toGtagOptions(P),D=C.title,M=C.location,z=l(C,r);f._gtag("event","page_view",w(w(w(w({},j&&{page_path:j}),D&&{page_title:D}),M&&{page_location:M}),z))}else j?f._gtag("event","page_view",{page_path:j}):f._gtag("event","page_view")}),V(this,"_gaCommandSendPageviewParameters",function(){for(var j=arguments.length,P=new Array(j),C=0;C<j;C++)P[C]=arguments[C];if(typeof P[0]=="string")f._gaCommandSendPageview.apply(f,u(P.slice(1)));else{var D=P[0],M=D.page;D.hitType;var z=l(D,s);f._gaCommandSendPageview(M,z)}}),V(this,"_gaCommandSend",function(){for(var j=arguments.length,P=new Array(j),C=0;C<j;C++)P[C]=arguments[C];var D=typeof P[0]=="string"?P[0]:P[0].hitType;switch(D){case"event":f._gaCommandSendEventParameters.apply(f,P);break;case"pageview":f._gaCommandSendPageviewParameters.apply(f,P);break;case"timing":f._gaCommandSendTiming.apply(f,u(P.slice(1)));break;case"screenview":case"transaction":case"item":case"social":case"exception":console.warn("Unsupported send command: ".concat(D));break;default:console.warn("Send command doesn't exist: ".concat(D))}}),V(this,"_gaCommandSet",function(){for(var j=arguments.length,P=new Array(j),C=0;C<j;C++)P[C]=arguments[C];typeof P[0]=="string"&&(P[0]=V({},P[0],P[1])),f._gtag("set",f._toGtagOptions(P[0]))}),V(this,"_gaCommand",function(j){for(var P=arguments.length,C=new Array(P>1?P-1:0),D=1;D<P;D++)C[D-1]=arguments[D];switch(j){case"send":f._gaCommandSend.apply(f,C);break;case"set":f._gaCommandSet.apply(f,C);break;default:console.warn("Command doesn't exist: ".concat(j))}}),V(this,"ga",function(){for(var j=arguments.length,P=new Array(j),C=0;C<j;C++)P[C]=arguments[C];if(typeof P[0]=="string")f._gaCommand.apply(f,P);else{var D=P[0];f._gtag("get",f._currentMeasurementId,"client_id",function(M){f._isQueuing=!1;var z=f._queueGtag;for(D({get:function(q){return q==="clientId"?M:q==="trackingId"?f._currentMeasurementId:q==="apiVersion"?"1":void 0}});z.length;){var J=z.shift();f._gtag.apply(f,u(J))}}),f._isQueuing=!0}return f.ga}),V(this,"event",function(j,P){if(typeof j=="string")f._gtag("event",j,f._toGtagOptions(P));else{var C=j.action,D=j.category,M=j.label,z=j.value,J=j.nonInteraction,F=j.transport;if(!D||!C){console.warn("args.category AND args.action are required in event()");return}var q={hitType:"event",eventCategory:(0,n.default)(D),eventAction:(0,n.default)(C)};M&&(q.eventLabel=(0,n.default)(M)),typeof z<"u"&&(typeof z!="number"?console.warn("Expected `args.value` arg to be a Number."):q.eventValue=z),typeof J<"u"&&(typeof J!="boolean"?console.warn("`args.nonInteraction` must be a boolean."):q.nonInteraction=J),typeof F<"u"&&(typeof F!="string"?console.warn("`args.transport` must be a string."):(["beacon","xhr","image"].indexOf(F)===-1&&console.warn("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"),q.transport=F)),f._gaCommand("send",q)}}),V(this,"send",function(j){f._gaCommand("send",j)}),this.reset()}return $(g,[{key:"gtag",value:function(){this._gtag.apply(this,arguments)}}]),g}();
177t.GA4=L;var T=new L;t.default=T})(tz);(function(t){function e(l){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},e(l)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ReactGAImplementation=void 0;var n=r(tz);function i(l){if(typeof WeakMap!="function")return null;var c=new WeakMap,d=new WeakMap;return(i=function(h){return h?d:c})(l)}function r(l,c){if(l&&l.__esModule)return l;if(l===null||e(l)!=="object"&&typeof l!="function")return{default:l};var d=i(c);if(d&&d.has(l))return d.get(l);var u={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in l)if(p!=="default"&&Object.prototype.hasOwnProperty.call(l,p)){var y=h?Object.getOwnPropertyDescriptor(l,p):null;y&&(y.get||y.set)?Object.defineProperty(u,p,y):u[p]=l[p]}return u.default=l,d&&d.set(l,u),u}var s=n.GA4;t.ReactGAImplementation=s;var a=n.default;t.default=a})(ez);const Ld=Fr(ez);_M.workerSrc=`//unpkg.com/pdfjs-dist@${zH}/build/pdf.worker.min.mjs`;const rz=({fileUrl:t,downloadUrl:e="",hidden:n,showPagination:i=!0})=>{const[r,s]=Z.useState(null),[a,l]=Z.useState(1),c=()=>{if(typeof e=="string"){const u=document.createElement("a");u.href=e,u.download=e.split("/").pop()||"document.pdf",u.target="_blank",u.rel="noopener noreferrer",u.click()}else if(t instanceof File){const u=URL.createObjectURL(t),h=document.createElement("a");h.href=u,h.download=t.name,h.target="_blank",h.rel="noopener noreferrer",h.click(),URL.revokeObjectURL(u)}Ld.event({category:"Download",action:"click_download_button",label:"User downloaded file"})},d=({numPages:u})=>{s(u)};return o.jsxs("div",{className:on({"relative w-full max-w-xs md:max-w-5xl":!0,"shadow-sm bg-white":!0,hidden:n}),children:[o.jsx("div",{className:" overflow-x-auto lg:overflow-x-hidden",children:o.jsxs("div",{className:"relative min-w-full border rounded-sm",children:[o.jsx("div",{className:"absolute group top-2 right-2 z-20",children:o.jsx("button",{onClick:c,className:"group-hover:opacity-100 px-8 py-2 bg-pmi-red text-sm text-white rounded-md opacity-40",children:"Download"})}),o.jsx(khe,{file:t,onLoadSuccess:d,className:"h-full w-full flex justify-center items-center",children:o.jsx(_he,{pageNumber:a,scale:1})})]})}),i&&o.jsxs("div",{className:"flex justify-between items-center mt-2",children:[o.jsx("button",{disabled:a<=1,onClick:()=>l(u=>u-1),className:"px-4 py-2 bg-gray-200 rounded-md",children:"Previous"}),o.jsxs("p",{className:"text-sm text-gray-500",children:["Page ",a," of ",r]}),o.jsx("button",{disabled:a>=(r||0),onClick:()=>l(u=>u+1),className:"px-4 py-2 bg-gray-200 rounded-md",children:"Next"})]})]})},Ihe=()=>{const{t}=Se(["common","menu"]),{language:e}=_e(),[n,i]=Z.useState(0),{data:r,isLoading:s,refetch:a}=lp("Governance"),{data:l,isLoading:c}=uM("Governance");return Z.useEffect(()=>{a()},[]),s?o.jsx("div",{className:"flex justify-center items-center",children:s&&[1,2].map(d=>o.jsx(Ot,{onlyImage:!0,minHeight:"min-h-72",minWidth:"min-w-72"},d))}):r&&o.jsxs("div",{className:"flex flex-col flex-wrap gap-4 items-center justify-center mt-8 py-8 px-2",children:[o.jsx("h2",{className:"font-medium text-2xl text-pmi-gray text-center",children:t("menu:aboutUs")}),o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center",children:e==="en"?r[0].title:r[0].title_indo||t("menu:governance")}),o.jsx("p",{className:"font-light text-lg text-pmi-gray text-center max-w-screen-lg",children:e==="en"?r[0].subtitle:r[0].subtitle_indo||t("common:organizationStructure.subTitle")}),o.jsxs("div",{className:"w-full max-w-6xl flex flex-col xl:flex-row justify-center items-center xl:items-start gap-6",children:[c&&!l&&o.jsx(Ot,{onlyImage:!0,minHeight:"min-h-72",minWidth:"min-w-72"}),l&&o.jsxs(o.Fragment,{children:[o.jsx("ul",{className:"relative w-full max-w-52",children:l.map((d,u)=>o.jsx("li",{children:o.jsxs("div",{className:on({"flex justify-between gap-16 border-b font-normal text-sm py-4 cursor-pointer hover:bg-pmi-gray-light":!0,"text-pmi-gray":u!==n,"text-pmi-red":u===n}),onClick:()=>i(u),children:[o.jsx("span",{className:"flex-grow",children:e==="en"?d.media_name:d.media_name_indo}),o.jsx(kM,{addClassName:"h-4 w-4"})]})},u))}),o.jsx("div",{className:"w-full",children:l.map((d,u)=>o.jsx(rz,{fileUrl:`${ze}/${d.path}`,downloadUrl:`${ze}/download/storage/${d.path}`,hidden:u!==n}))})]})]})]})},Rhe=()=>{const{t}=Se(["menu"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:governance")}];return o.jsx(Ye,{type:"default",title:"governance",breadcrumbs:e,children:o.jsx(Ihe,{})})},Ohe=({taskPerformed:t})=>{const{t:e}=Se(["common"]),{language:n}=_e(),i=e("history.tasks",{returnObjects:!0});return o.jsx("div",{className:"flex flex-col justify-center items-center bg-pmi-gray-light py-8 px-2",children:o.jsxs("div",{className:"border rounded-2xl max-w-screen-lg bg-white shadow-lg",children:[o.jsx("div",{className:"bg-pmi-red-dark bg-gradient-to-r from-pmi-red-dark to-pmi-red-light rounded-t-2xl py-2",children:o.jsx("h3",{className:"font-bold text-center text-2xl text-pmi-white",children:e("common:history.tasks_title")})}),o.jsxs("div",{className:"space-y-8 px-12 py-6",children:[o.jsx("p",{className:"text-center text-lg text-pmi-black",children:e("common:history.tasks_subtitle")}),!t&&i.map((r,s)=>o.jsxs("div",{className:"flex items-start gap-4",children:[o.jsx("div",{className:"flex justify-center items-center px-4 py-2 bg-pmi-red-dark bg-gradient-to-r from-pmi-red-dark to-pmi-red-light rounded-br-[1.5rem] rounded-tl-[1.5rem]",children:o.jsxs("p",{className:"font-bold text-base text-pmi-white",children:["0",s+1]})}),o.jsx("div",{className:"relative",children:o.jsx("p",{className:"font-medium text-base text-pmi-gray",children:r})})]},s)),t&&t.map((r,s)=>o.jsxs("div",{className:"flex items-start gap-4",children:[o.jsx("div",{className:"flex justify-center items-center px-4 py-2 bg-pmi-red-dark bg-gradient-to-r from-pmi-red-dark to-pmi-red-light rounded-br-[1.5rem] rounded-tl-[1.5rem]",children:o.jsxs("p",{className:"font-bold text-base text-pmi-white",children:["0",s+1]})}),o.jsx("div",{className:"relative",children:o.jsx("p",{className:"font-medium text-base text-pmi-gray",children:n==="en"?r.desc:r.desc_indo})})]},s))]})]})})},Lhe=({video:t})=>{const{t:e}=Se(["common"]),{language:n}=_e();return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"bg-pmi-red-dark bg-gradient-to-r from-pmi-red-dark to-pmi-red-light w-full max-w-4xl py-4 rounded-xl",children:o.jsx("h3",{className:"font-bold text-center text-xs md:text-xl text-pmi-white",children:t.media_name!=null&&t.media_name_indo!=null?n=="en"?t.media_name:t.media_name_indo:e("common:history.ourJourney")})}),o.jsx("div",{className:"w-full max-w-4xl px-8",children:o.jsx("div",{className:"border shadow-xl p-6",children:o.jsx(Zf,{imageUrl:"/png/history/video.png",videoUrl:t!=null&&t.external_url?t.external_url:"https://www.youtube.com/embed/-uhksOI9CB0",altText:e("common:fundamentalPrinciples.understandingEmblem")})})})]})},Fhe=({firstArticle:t,quote:e,secondArticle:n,video:i})=>{const{t:r}=Se(["common"]),{language:s}=_e(),a=r("history.firstContent",{returnObjects:!0}),l=r("history.secondContent",{returnObjects:!0});return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-8 px-2",children:[o.jsx("h2",{className:"font-medium text-2xl text-pmi-gray text-center",children:r("menu:aboutUs")}),o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center",children:r("common:history.title")}),o.jsx("p",{className:"font-light text-lg text-pmi-gray text-center max-w-screen-lg",children:r("common:history.subtitle")}),o.jsxs("div",{className:"flex flex-col lg:flex-row justify-center gap-8 max-w-6xl mx-auto py-8 px-6",children:[o.jsx("img",{src:"/png/history/overview.png",alt:r("common:history.title"),className:"w-full lg:max-w-xl"}),o.jsxs("div",{className:"relative max-w-2xl space-y-6 py-4 text-ju
177stify",children:[!t&&a.map((c,d)=>o.jsx("p",{className:"font-normal text-sm text-pmi-gray",children:c},d)),o.jsx("div",{className:"font-normal text-sm text-pmi-gray space-y-4",children:t&&zR(s==="en"?t.desc:t.desc_indo)})]})]}),o.jsx(Lhe,{video:i}),o.jsxs("div",{className:"relative max-w-5xl space-x-6 px-6 pb-12 mt-12 bg-pmi-gray-light border-l-8 border-l-pmi-red",children:[o.jsx("p",{className:"text-6xl text-pmi-red",children:",,"}),o.jsx("p",{className:"px-14 italic font-normal text-lg text-pmi-gray",children:(s==="en"?e.desc:e.desc_indo)||r("common:history.quote")})]}),o.jsxs("div",{className:"flex flex-col justify-center gap-6 max-w-5xl mx-auto lg:px-32 py-8 text-justify",children:[!n&&l.map((c,d)=>o.jsx("p",{className:"font-normal text-sm text-pmi-gray",children:c},d)),o.jsx("div",{className:"font-normal text-sm text-pmi-gray space-y-4",children:n&&zR(s==="en"?n.desc:n.desc_indo)})]})]})},Bhe=()=>{const{t}=Se(["menu","common"]),{data:e,isLoading:n}=Xle(),i=[{label:t("menu:home"),path:"/"},{label:t("menu:history")}];return o.jsxs(Ye,{type:"default",title:"history",breadcrumbs:i,children:[n&&[1,2,3].map(r=>o.jsx(Ot,{onlyImage:!0,minHeight:"min-h-72",minWidth:"min-w-72"},r)),e&&o.jsxs(o.Fragment,{children:[o.jsx(Fhe,{firstArticle:e.section_2,quote:e.section_4,secondArticle:e.section_5,video:e==null?void 0:e.section_3}),o.jsx(Ohe,{taskPerformed:e.section_6})]})]})},$he=({label:t,options:e,register:n,error:i})=>{const{t:r}=Se(["common"]);return o.jsxs("div",{className:"flex flex-col w-full",children:[o.jsx("label",{className:"text-sm font-medium mb-1",children:r(t)}),o.jsxs("select",{...n,className:"w-full px-4 py-2 border rounded-lg focus:outline-none text-pmi-gray focus:ring-2 focus:ring-pmi-red",children:[o.jsx("option",{value:"",disabled:!0,children:r("common:selectOption")}),e.map(s=>o.jsx("option",{value:s.value,children:r(s.label)},s.value))]}),i&&o.jsx("p",{className:"text-red-500 text-sm mt-1",children:r(i)})]})},Hhe=async t=>{const e=await He.get(`/api/organization-structure/period/list/${t}`);if(!e)throw new Error("Network response was not ok");return e==null?void 0:e.data},zhe=async t=>{const e=await He.get(`/api/organization-structure/${t}`);if(!e)throw new Error("Network response was not ok");return e.data},Vhe=t=>Ge({queryKey:["organization_structure_period"],queryFn:()=>Hhe(t),staleTime:1e3*60*60,gcTime:1e3*60*60}),Uhe=t=>Ge({queryKey:["organization_structure"],queryFn:()=>zhe(t),staleTime:1e3*60*60,gcTime:1e3*60*60,enabled:!1}),Whe=({})=>{var c;const{t}=Se(["common"]),{register:e,handleSubmit:n,formState:{errors:i}}=Ks(),{addField:r,updateField:s}=wr(),{data:a}=Vhe(0);Z.useEffect(()=>{r("period","")},[]),Z.useEffect(()=>{var d;console.log(a),a&&s("period",(d=a[0])==null?void 0:d.organization_structure_header_id)},[a]);const l=async d=>{s("period",d.period)};return o.jsxs("form",{onSubmit:n(l),className:"flex flex-col lg:flex-row justify-center items-center gap-2",children:[o.jsx("div",{className:"w-full md:pl-8",children:o.jsx($he,{label:t("common:"),options:a&&a.map(d=>({value:d.organization_structure_header_id,label:"Period "+d.period}))||[],register:e("period",{required:t("common:organizationStructure.requiredField")}),error:(c=i.period)==null?void 0:c.message})}),o.jsx("div",{className:"relative",children:o.jsx("button",{className:on({"btn bg-pmi-red capitalize text-white w-full block px-4 py-2 gap-x-2 text-lg text-center rounded-xl":!0}),type:"submit",children:t("common:view")})})]})},Ghe=({data:t})=>{const{t:e}=Se(["common","menu"]);return o.jsxs("div",{className:"flex flex-col flex-wrap gap-4 items-center justify-center mt-8 py-8",children:[o.jsx("h2",{className:"font-medium text-2xl text-pmi-gray text-center",children:e("menu:aboutUs")}),o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center",children:e("common:organizationStructure.title")}),o.jsx("p",{className:"font-light text-lg text-pmi-gray text-center max-w-screen-lg",children:e("common:organizationStructure.subTitle")}),o.jsx("div",{className:"w-full max-w-2xl mx-auto py-8",children:o.jsx(Whe,{})}),o.jsx("div",{className:"w-full px-10 mx-auto",children:t&&o.jsx("img",{src:t&&`${ze}/${t.path}`||"/png/organization-structure.png",alt:e("menu:organizationStructure"),className:"w-full h-full"})})]})}
177,qhe=({fullImageSrc:t,altText:e,isOpen:n,onClose:i,title:r,description:s})=>{const{language:a}=_e();return o.jsxs(cs,{open:n,onClose:i,className:"fixed inset-0 z-[999999999999] h-screen flex items-center justify-center p-6 overflow-y-auto",children:[o.jsx("div",{className:"fixed inset-0 bg-pmi-dark bg-opacity-50","aria-hidden":"true"}),o.jsxs(nc,{className:"relative bg-white p-4 w-full max-w-xl mx-auto space-y-6",children:[o.jsx("button",{className:"absolute top-2 right-2 text-pmi-dark hover:bg-pmi-gray-lighter p-2 text-xl",onClick:i,children:"â"}),o.jsxs("div",{className:"space-y-4 p-2",children:[o.jsx("div",{className:"max-w-72 rounded-xl mx-auto",children:o.jsx("img",{src:t||`https://placehold.co/400x500?text=${a==="en"?"No+Image":"Gambar+tIdak+ditemukan"}`,alt:e,className:"w-full max-h-72 rounded-xl"})}),r&&o.jsx("h3",{className:"font-medium text-2xl text-center capitalize",children:r}),o.jsx("p",{className:"text-base text-pmi-gray",children:s||"No Description"})]})]})]})},Khe=({data:t})=>{const{t:e}=Se(["common"]),{language:n}=_e(),[i,r]=Z.useState(!1),[s,a]=Z.useState(null),l=d=>{a(d),r(!0)},c=()=>{r(!1)};return o.jsxs("div",{className:"overflow-x-auto",children:[o.jsxs("table",{className:"min-w-full bg-white border border-gray-200 text-pmi-gray",children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{className:"font-medium text-base text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter w-2",children:"No."}),o.jsx("th",{className:"font-medium text-base text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:"Position"}),o.jsx("th",{className:"font-medium text-base text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:"Name"}),o.jsx("th",{className:"font-medium text-base text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:"Action"})]})}),o.jsx("tbody",{className:"bg-white",children:t&&t.map(d=>o.jsxs("tr",{children:[o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter text-center",children:d.index}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter",children:n==="en"?d.position.position_name:d.position.position_name_indo}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter",children:d.person.full_name}),o.jsx("td",{className:"px-4 py-3 border border-pmi-gray-lighter text-center",children:o.jsx("a",{href:"#",className:"btn whitespace-nowrap px-2 pt-1 pb-1.5 bg-pmi-dark-gray font-medium text-sm text-pmi-white capitalize rounded-md hover:underline",onClick:()=>l(d),children:e("common:seeDetail")})})]},d.index))})]}),s&&o.jsx(qhe,{isOpen:i,fullImageSrc:s.person.media?`${ze}/${s.person.media.path}`:null,altText:s.person.full_name,title:s.person.full_name,description:n==="en"?s.person.desc:s.person.desc_indo,onClose:c})]})},Yhe=({data:t})=>{const{t:e}=Se(["commmon"]);return o.jsx("div",{className:"flex flex-wrap items-center justify-center py-8 px-2 bg-pmi-gray-light",children:o.jsxs("div",{className:"grid space-y-4 py-8 mt-8 md:w-2/3 w-5/6",children:[o.jsx("p",{className:"font-normal text-lg -my-2",children:e("common:organizationStructure.centralBoardComposition")}),o.jsx("div",{className:"flex items-center gap-4",children:o.jsx("p",{className:"text-md text-pmi-gray",children:e("common:organizationStructure.period",{date:t==null?void 0:t.period})})}),t&&o.jsx(Khe,{data:t.detail})]})})},Xhe=()=>{const{t}=Se(["menu"]),{fields:e}=wr(),{data:n,isLoading:i,refetch:r}=Uhe(e&&e.period||"");Z.useEffect(()=>{e&&(console.log(e),r())},[e]);const s=[{label:t("menu:home"),path:"/"},{label:t("menu:organizationStructure")}];return o.jsxs(Ye,{type:"default",title:"organizationStructure",breadcrumbs:s,children:[o.jsx(Ghe,{data:n&&(n==null?void 0:n.media)}),!i&&n&&o.jsx(Yhe,{data:n}),o.jsx("div",{className:"flex justify-center items-center",children:i&&[1,2,3].map(a=>o.jsx(Ot,{onlyImage:!0,minHeight:"min-h-72",minWidth:"min-w-72"},a))})]})},Jhe=({vision:t,mission:e})=>{const{t:n}=Se(["common"]),{language:i}=_e();return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-8 px-2",children:[o.jsx("h2",{className:"font-medium text-lg text-pmi-gray text-center",children:n("menu:aboutUs")}),o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center",children:(i==="en"?t.title:t.title_indo)||n("common:visionMission.title")}),o.jsx("p",{className:"font-light text-lg text-pmi-gray text-center max-w-screen-lg",children:n("common:visionMission.ofTheIndonesianRedCross")}),o.jsxs("div",{className:"flex flex-col md:flex-row justify-center gap-2 md:gap-10 max-w-5xl mx-auto md:py-8 px-8",children:[o.jsx("img",{src:"/png/vision-mission/1.png",alt:n("common:visionMission.ourVision"),
177className:"w-full max-h-64 lg:max-h-72"}),o.jsxs("div",{className:"relative space-y-6 py-4 lg:py-12",children:[o.jsx("h3",{className:"font-medium text-4xl text-pmi-black",children:(i==="en"?t.title:t.title_indo)||n("common:visionMission.ourVision")}),o.jsx("p",{className:"font-normal text-lg text-pmi-gray",children:(i==="en"?t.desc:t.desc_indo)||n("common:visionMission.visionText")})]})]}),o.jsxs("div",{className:"flex flex-col md:flex-row justify-center gap-2 lg:gap-10 max-w-5xl mx-auto md:py-8 px-8",children:[o.jsxs("div",{className:"relative max-w-2xl space-y-6 px-2 py-4",children:[o.jsx("h3",{className:"font-medium text-4xl text-pmi-black",children:n("common:visionMission.ourMission")}),!e&&o.jsxs("div",{className:"relative space-y-4 text-pmi-gray",children:[o.jsxs("div",{className:"flex gap-6",children:[o.jsx("p",{className:"font-bold text-base md:text-4xl",children:"01"}),o.jsx("p",{className:"font-normal text-xs md:text-lg",children:n("common:visionMission.missionText1")})]}),o.jsxs("div",{className:"flex gap-6",children:[o.jsx("p",{className:"font-bold text-base md:text-4xl",children:"02"}),o.jsx("p",{className:"font-normal text-xs md:text-lg",children:n("common:visionMission.missionText2")})]}),o.jsxs("div",{className:"flex gap-6",children:[o.jsx("p",{className:"font-bold text-base md:text-4xl",children:"03"}),o.jsx("p",{className:"font-normal text-xs md:text-lg",children:n("common:visionMission.missionText3")})]})]}),e&&o.jsx("div",{className:"relative space-y-4 text-pmi-gray",children:e.map((r,s)=>o.jsxs("div",{className:"flex gap-6",children:[o.jsxs("p",{className:"font-bold text-base md:text-4xl",children:["0",s+1]}),o.jsx("p",{className:"font-normal text-xs md:text-lg",children:i==="en"?r.desc:r.desc_indo})]}))})]}),o.jsx("img",{src:"/png/vision-mission/2.png",alt:n("common:visionMission.ourMission"),className:"w-full max-w-96 lg:max-w-md lg:max-h-[500px] bg-pmi-red-dark bg-gradient-to-r from-pmi-red-dark to-pmi-red-light rounded-tl-[4.5rem] rounded-br-[4.5rem]"})]})]})},Qhe=({plans:t})=>{const{t:e}=Se(["common"]),{language:n}=_e(),i=[{title:e("common:visionMission.strategicPlanTitle1"),description:e("common:visionMission.strategicPlanText1")},{title:e("common:visionMission.strategicPlanTitle2"),description:e("common:visionMission.strategicPlanText2")},{title:e("common:visionMission.strategicPlanTitle3"),description:e("common:visionMission.strategicPlanText3")},{title:e("common:visionMission.strategicPlanTitle4"),description:e("common:visionMission.strategicPlanText4")},{title:e("common:visionMission.strategicPlanTitle5"),description:e("common:visionMission.strategicPlanText5")},{title:e("common:visionMission.strategicPlanTitle6"),description:e("common:visionMission.strategicPlanText6")},{title:e("common:visionMission.strategicPlanTitle7"),description:e("common:visionMission.strategicPlanText7")},{title:e("common:visionMission.strategicPlanTitle8"),description:e("common:visionMission.strategicPlanText8")}];return o.jsxs("div",{className:"relative bg-pmi-gray-light py-8 px-2",children:[o.jsx("h3",{className:"font-bold text-center text-4xl text-pmi-red",children:e("common:visionMission.strategicPlan")}),!t&&i.map((r,s)=>o.jsxs("div",{className:"flex flex-col md:flex-row justify-center gap-y-10 max-w-2xl mx-auto py-8",children:[o.jsx("div",{className:"flex justify-center items-center px-14 py-6 max-h-44 bg-pmi-red-dark bg-gradient-to-r from-pmi-red-dark to-pmi-red-light rounded-lg rounded-br-[3.5rem] rounded-tl-[3.5rem]",children:o.jsxs("p",{className:"font-bold text-4xl text-pmi-white",children:["0",s+1]})}),o.jsxs("div",{className:"relative max-w-2xl space-y-2 px-8 py-4 border rounded-2xl shadow-lg",children:[o.jsx("h3",{className:"font-medium text-xl text-pmi-black",children:r.title}),o.jsx("p",{className:"font-normal text-sm text-pmi-gray",children:r.description})]})]},s)),t&&t.map((r,s)=>o.jsxs("div",{className:"flex flex-col md:flex-row justify-center gap-y-10 max-w-2xl mx-auto py-8",children:[o.jsx("div",{className:"flex justify-center items-center px-14 py-6 max-h-44 bg-pmi-red-dark bg-gradient-to-r from-pmi-red-dark to-pmi-red-light rounded-lg rounded-br-[3.5rem] rounded-tl-[3.5rem]",children:o.jsxs("p",{className:"font-bold text-4xl text-pmi-white",children:["0",s+1]})}),o.jsxs("div",{className:"relative max-w-2xl space-y-2 px-8 py-4 border rounded-2xl shadow-lg",children:[o.jsx("h3",{className:"font-medium text-xl text-pmi-black",children:n==="en"?r.title:r.title_indo}),o.jsx("p",{className:"font-normal text-sm text-pmi-gray",children:n==="en"?r.desc:r.desc_indo})]})]},s))]})},Zhe=()=>{const{t}=Se(["menu","common"]),{data:e,isLoading:n}=Kle(),i=[{label:t("menu:home"),path:"/"},{label:t("menu:visionMission")}];return o.jsxs(Ye,{type:"default",title:"visionMission",breadcrumbs:i,children:[n&&[1,2,3].map(r=>o.jsx(Ot,{onlyImage:!0,minHeight:"min-h-72",minWidth:"min-w-72"},r)),!n&&e&&o.jsxs(o.Fragment,{children:[o.jsx(Jhe,{vision:e==null?void 0:e.section_1,mission:e==null?void 0:e.section_2}),o.jsx(Qhe,{plans:e==null?void 0:e.section_3})]})]})},epe=[{path:"/about-us/7-fundamental-principles",element:o.jsx(Jle,{}),errorElement:o.jsx(We,{})},{path:"/about-us/vision-mission",element:o.jsx(Zhe,{}),errorElement:o.jsx(We,{})},{path:"/about-us/organization-structure",element:o.jsx(Xhe,{}),errorElement:o.jsx(We,{})},{path:"/about-us/governance",element:o.jsx(Rhe,{}),errorElement:o.jsx(We,{})},{path:"/about-us/history",element:o.jsx(Bhe,{}),errorElement:o.jsx(We,{})}
vendor: 8,224 bytes, line 177
177],Sv=({category:t,title:e,subtitle:n,image:i})=>o.jsxs("div",{className:"w-full relative xl:min-h-[26rem] xl:max-h-[36rem] bg-cover bg-center",children:[o.jsx("img",{src:i,className:"z-0 w-full min-h-full xl:max-h-[36rem] object-cover",alt:e}),o.jsx("div",{className:"z-10 absolute inset-0 w-full bg-gradient-to-t from-pmi-black to-transparent to-50%"}),o.jsxs("div",{className:"z-20 absolute inset-x-0 bottom-2 md:bottom-8 w-full space-y-2 md:space-y-2 md:px-24 xl:px-80",children:[o.jsx("h2",{className:"font-medium text-xl md:text-2xl text-pmi-white text-center",children:t}),o.jsx("h3",{className:"font-bold text-base md:text-4xl text-pmi-white text-center",children:e}),o.jsx("p",{className:"font-light text-sm md:text-xl text-pmi-white text-center",children:n})]})]}),sC=({title:t,description:e,button:n})=>o.jsxs("div",{className:"flex flex-col md:flex-row justify-between gap-8 bg-pmi-gray-light shadow-md rounded-lg px-6 py-6 my-6 space-y-2 text-pmi-white",children:[o.jsxs("div",{className:"relative pl-4 space-y-2 border-l border-pmi-gray-lighter",children:[o.jsx("h3",{className:"font-medium text-pmi-red text-lg mb-2 capitalize",children:t}),o.jsx("p",{className:"font-light text-sm text-pmi-black max-w-[22rem]",children:e})]}),o.jsx("div",{className:"relative py-4",children:o.jsxs("a",{className:"flex items-center justify-center gap-2 p-2 bg-pmi-red text-pmi-white rounded-md",href:"/contact-us",children:[n,o.jsx("img",{src:"/svg/arrow/next-filled.svg",alt:"next",className:"w-8"})]})})]});function sL(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function IM(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(n=>{typeof t[n]>"u"?t[n]=e[n]:sL(e[n])&&sL(t[n])&&Object.keys(e[n]).length>0&&IM(t[n],e[n])})}const sz={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function ig(){const t=typeof document<"u"?document:{};return IM(t,sz),t}const tpe={document:sz,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function Ys(){const t=typeof window<"u"?window:{};return IM(t,tpe),t}function npe(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function ipe(t){const e=t;Object.keys(e).forEach(n=>{try{e[n]=null}catch{}try{delete e[n]}catch{}})}function SE(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function d1(){return Date.now()}function rpe(t){const e=Ys();let n;return e.getComputedStyle&&(n=e.getComputedStyle(t,null)),!n&&t.currentStyle&&(n=t.currentStyle),n||(n=t.style),n}function spe(t,e){e===void 0&&(e="x");const n=Ys();let i,r,s;const a=rpe(t);return n.WebKitCSSMatrix?(r=a.transform||a.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(l=>l.replace(",",".")).join(", ")),s=new n.WebKitCSSMatrix(r==="none"?"":r)):(s=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=s.toString().split(",")),e==="x"&&(n.WebKitCSSMatrix?r=s.m41:i.length===16?r=parseFloat(i[12]):r=parseFloat(i[4])),e==="y"&&(n.WebKitCSSMatrix?r=s.m42:i.length===16?r=parseFloat(i[13]):r=parseFloat(i[5])),r||0}function E0(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function ape(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function _s(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let n=1;n<arguments.length;n+=1){const i=n<0||arguments.length<=n?void 0:arguments[n];if(i!=null&&!ape(i)){const r=Object.keys(Object(i)).filter(s=>e.indexOf(s)<0);for(let s=0,a=r.length;s<a;s+=1){const l=r[s],c=Object.getOwnPropertyDescriptor(i,l);c!==void 0&&c.enumerable&&(E0(t[l])&&E0(i[l])?i[l].__swiper__?t[l]=i[l]:_s(t[l],i[l]):!E0(t[l])&&E0(i[l])?(t[l]={},i[l].__swiper__?t[l]=i[l]:_s(t[l],i[l])):t[l]=i[l])}}}return t}function A0(t,e,n){t.style.setProperty(e,n)}function az(t){let{swiper:e,targetPosition:n,side:i}=t;const r=Ys(),s=-e.translate;let a=null,l;const c=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);const d=n>s?"next":"prev",u=(p,y)=>d==="next"&&p>=y||d==="prev"&&p<=y,h=()=>{l=new Date().getTime(),a===null&&(a=l);const p=Math.max(Math.min((l-a)/c,1),0),y=.5-Math.cos(p*Math.PI)/2;let m=s+y*(n-s);if(u(m,n)&&(m=n),e.wrapperEl.scrollTo({[i]:m}),u(m,n)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[i]:m})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(h)};h()}function Il(t,e){e===void 0&&(e="");const n=[...t.children];return t instanceof HTMLSlotElement&&n.push(...t.assignedElements()),e?n.filter(i=>i.matches(e)):n}function ope(t,e){const n=e.contains(t);return!n&&e instanceof HTMLSlotElement?[...e.assignedElements()].includes(t):n}function u1(t){try{console.warn(t);return}catch{}}function CE(t,e){e===void 0&&(e=[]);const n=document.createElement(t);return n.classList.add(...Array.isArray(e)?e:npe(e)),n}function lpe(t,e){const n=[];for(;t.previousElementSibling;){const i=t.previousElementSibling;e?i.matches(e)&&n.push(i):n.push(i),t=i}return n}function cpe(t,e){const n=[];for(;t.nextElementSibling;){const i=t.nextElementSibling;e?i.matches(e)&&n.push(i):n.push(i),t=i}return n}function cd(t,e){return Ys().getComputedStyle(t,null).getPropertyValue(e)}function aL(t){let e=t,n;if(e){for(n=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(n+=1);return n}}function dpe(t,e){const n=[];let i=t.parentElement;for(;i;)n.push(i),i=i.parentElement;return n}function oL(t,e,n){const i=Ys();return t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom"))}let B2;function upe(){const t=Ys(),e=ig();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function oz(){return B2||(B2=upe()),B2}let $2;function hpe(t){let{userAgent:e}=t===void 0?{}:t;const n=oz(),i=Ys(),r=i.navigator.platform,s=e||i.navigator.userAgent,a={ios:!1,android:!1},l=i.screen.width,c=i.screen.height,d=s.match(/(Android);?[\s\/]+([\d.]+)?/);let u=s.match(/(iPad).*OS\s([\d_]+)/);const h=s.match(/(iPod)(.*OS\s([\d_]+))?/),p=!u&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),y=r==="Win32";let m=r==="MacIntel";const w=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!u&&m&&n.touch&&w.indexOf(`${l}x${c}`)>=0&&(u=s.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),m=!1),d&&!y&&(a.os="android",a.android=!0),(u||p||h)&&(a.os="ios",a.ios=!0),a}function lz(t){return t===void 0&&(t={}),$2||($2=hpe(t)),$2}let H2;function ppe(){const t=Ys(),e=lz();let n=!1;function i(){const l=t.navigator.userAgent.toLowerCase();return l.indexOf("safari")>=0&&l.indexOf("chrome")<0&&l.indexOf("android")<0}if(i()){const l=String(t.navigator.userAgent);if(l.includes("Version/")){const[c,d]=l.split("Version/")[1].split(" ")[0].split(".").map(u=>Number(u));n=c<16||c===16&&d<2}}
vendor: 15,670 bytes, line 177
177const r=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),s=i(),a=s||r&&e.ios;return{isSafari:n||s,needPerspectiveFix:n,need3dFix:a,isWebView:r}}function mpe(){return H2||(H2=ppe()),H2}function fpe(t){let{swiper:e,on:n,emit:i}=t;const r=Ys();let s=null,a=null;const l=()=>{!e||e.destroyed||!e.initialized||(i("beforeResize"),i("resize"))},c=()=>{!e||e.destroyed||!e.initialized||(s=new ResizeObserver(h=>{a=r.requestAnimationFrame(()=>{const{width:p,height:y}=e;let m=p,w=y;h.forEach(k=>{let{contentBoxSize:b,contentRect:x,target:v}=k;v&&v!==e.el||(m=x?x.width:(b[0]||b).inlineSize,w=x?x.height:(b[0]||b).blockSize)}),(m!==p||w!==y)&&l()})}),s.observe(e.el))},d=()=>{a&&r.cancelAnimationFrame(a),s&&s.unobserve&&e.el&&(s.unobserve(e.el),s=null)},u=()=>{!e||e.destroyed||!e.initialized||i("orientationchange")};n("init",()=>{if(e.params.resizeObserver&&typeof r.ResizeObserver<"u"){c();return}r.addEventListener("resize",l),r.addEventListener("orientationchange",u)}),n("destroy",()=>{d(),r.removeEventListener("resize",l),r.removeEventListener("orientationchange",u)})}function gpe(t){let{swiper:e,extendParams:n,on:i,emit:r}=t;const s=[],a=Ys(),l=function(u,h){h===void 0&&(h={});const p=a.MutationObserver||a.WebkitMutationObserver,y=new p(m=>{if(e.__preventObserver__)return;if(m.length===1){r("observerUpdate",m[0]);return}const w=function(){r("observerUpdate",m[0])};a.requestAnimationFrame?a.requestAnimationFrame(w):a.setTimeout(w,0)});y.observe(u,{attributes:typeof h.attributes>"u"?!0:h.attributes,childList:e.isElement||(typeof h.childList>"u"?!0:h).childList,characterData:typeof h.characterData>"u"?!0:h.characterData}),s.push(y)},c=()=>{if(e.params.observer){if(e.params.observeParents){const u=dpe(e.hostEl);for(let h=0;h<u.length;h+=1)l(u[h])}l(e.hostEl,{childList:e.params.observeSlideChildren}),l(e.wrapperEl,{attributes:!1})}},d=()=>{s.forEach(u=>{u.disconnect()}),s.splice(0,s.length)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",c),i("destroy",d)}var xpe={on(t,e,n){const i=this;if(!i.eventsListeners||i.destroyed||typeof e!="function")return i;const r=n?"unshift":"push";return t.split(" ").forEach(s=>{i.eventsListeners[s]||(i.eventsListeners[s]=[]),i.eventsListeners[s][r](e)}),i},once(t,e,n){const i=this;if(!i.eventsListeners||i.destroyed||typeof e!="function")return i;function r(){i.off(t,r),r.__emitterProxy&&delete r.__emitterProxy;for(var s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];e.apply(i,a)}return r.__emitterProxy=e,i.on(t,r,n)},onAny(t,e){const n=this;if(!n.eventsListeners||n.destroyed||typeof t!="function")return n;const i=e?"unshift":"push";return n.eventsAnyListeners.indexOf(t)<0&&n.eventsAnyListeners[i](t),n},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const n=e.eventsAnyListeners.indexOf(t);return n>=0&&e.eventsAnyListeners.splice(n,1),e},off(t,e){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||t.split(" ").forEach(i=>{typeof e>"u"?n.eventsListeners[i]=[]:n.eventsListeners[i]&&n.eventsListeners[i].forEach((r,s)=>{(r===e||r.__emitterProxy&&r.__emitterProxy===e)&&n.eventsListeners[i].splice(s,1)})}),n},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,n,i;for(var r=arguments.length,s=new Array(r),a=0;a<r;a++)s[a]=arguments[a];return typeof s[0]=="string"||Array.isArray(s[0])?(e=s[0],n=s.slice(1,s.length),i=t):(e=s[0].events,n=s[0].data,i=s[0].context||t),n.unshift(i),(Array.isArray(e)?e:e.split(" ")).forEach(c=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(d=>{d.apply(i,[c,...n])}),t.eventsListeners&&t.eventsListeners[c]&&t.eventsListeners[c].forEach(d=>{d.apply(i,n)})}),t}};function ype(){const t=this;let e,n;const i=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=i.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?n=t.params.height:n=i.clientHeight,!(e===0&&t.isHorizontal()||n===0&&t.isVertical())&&(e=e-parseInt(cd(i,"padding-left")||0,10)-parseInt(cd(i,"padding-right")||0,10),n=n-parseInt(cd(i,"padding-top")||0,10)-parseInt(cd(i,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(n)&&(n=0),Object.assign(t,{width:e,height:n,size:t.isHorizontal()?e:n}))}function bpe(){const t=this;function e(I,A){return parseFloat(I.getPropertyValue(t.getDirectionLabel(A))||0)}const n=t.params,{wrapperEl:i,slidesEl:r,size:s,rtlTranslate:a,wrongRTL:l}=t,c=t.virtual&&n.virtual.enabled,d=c?t.virtual.slides.length:t.slides.length,u=Il(r,`.${t.params.slideClass}, swiper-slide`),h=c?t.virtual.slides.length:u.length;let p=[];const y=[],m=[];let w=n.slidesOffsetBefore;typeof w=="function"&&(w=n.slidesOffsetBefore.call(t));let k=n.slidesOffsetAfter;typeof k=="function"&&(k=n.slidesOffsetAfter.call(t));const b=t.snapGrid.length,x=t.slidesGrid.length;let v=n.spaceBetween,E=-w,N=0,S=0;if(typeof s>"u")return;typeof v=="string"&&v.indexOf("%")>=0?v=parseFloat(v.replace("%",""))/100*s:typeof v=="string"&&(v=parseFloat(v)),t.virtualSize=-v,u.forEach(I=>{a?I.style.marginLeft="":I.style.marginRight="",I.style.marginBottom="",I.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(A0(i,"--swiper-centered-offset-before",""),A0(i,"--swiper-centered-offset-after",""));const _=n.grid&&n.grid.rows>1&&t.grid;_?t.grid.initSlides(u):t.grid&&t.grid.unsetSlides();let $;const V=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter(I=>typeof n.breakpoints[I].slidesPerView<"u").length>0;for(let I=0;I<h;I+=1){$=0;let A;if(u[I]&&(A=u[I]),_&&t.grid.updateSlide(I,A,u),!(u[I]&&cd(A,"display")==="none")){if(n.slidesPerView==="auto"){V&&(u[I].style[t.getDirectionLabel("width")]="");const L=getComputedStyle(A),T=A.style.transform,g=A.style.webkitTransform;if(T&&(A.style.transform="none"),g&&(A.style.webkitTransform="none"),n.roundLengths)$=t.isHorizontal()?oL(A,"width"):oL(A,"height");else{const f=e(L,"width"),j=e(L,"padding-left"),P=e(L,"padding-right"),C=e(L,"margin-left"),D=e(L,"margin-right"),M=L.getPropertyValue("box-sizing");if(M&&M==="border-box")$=f+C+D;else{const{clientWidth:z,offsetWidth:J}=A;$=f+j+P+C+D+(J-z)}}T&&(A.style.transform=T),g&&(A.style.webkitTransform=g),n.roundLengths&&($=Math.floor($))}else $=(s-(n.slidesPerView-1)*v)/n.slidesPerView,n.roundLengths&&($=Math.floor($)),u[I]&&(u[I].style[t.getDirectionLabel("width")]=`${$}px`);u[I]&&(u[I].swiperSlideSize=$),m.push($),n.centeredSlides?(E=E+$/2+N/2+v,N===0&&I!==0&&(E=E-s/2-v),I===0&&(E=E-s/2-v),Math.abs(E)<1/1e3&&(E=0),n.roundLengths&&(E=Math.floor(E)),S%n.slidesPerGroup===0&&p.push(E),y.push(E)):(n.roundLengths&&(E=Math.floor(E)),(S-Math.min(t.params.slidesPerGroupSkip,S))%t.params.slidesPerGroup===0&&p.push(E),y.push(E),E=E+$+v),t.virtualSize+=$+v,N=$,S+=1}}if(t.virtualSize=Math.max(t.virtualSize,s)+k,a&&l&&(n.effect==="slide"||n.effect==="coverflow")&&(i.style.width=`${t.virtualSize+v}px`),n.setWrapperSize&&(i.style[t.getDirectionLabel("width")]=`${t.virtualSize+v}px`),_&&t.grid.updateWrapperSize($,p),!n.centeredSlides){const I=[];for(let A=0;A<p.length;A+=1){let L=p[A];n.roundLengths&&(L=Math.floor(L)),p[A]<=t.virtualSize-s&&I.push(L)}p=I,Math.floor(t.virtualSize-s)-Math.floor(p[p.length-1])>1&&p.push(t.virtualSize-s)}if(c&&n.loop){const I=m[0]+v;if(n.slidesPerGroup>1){const A=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/n.slidesPerGroup),L=I*n.slidesPerGroup;for(let T=0;T<A;T+=1)p.push(p[p.length-1]+L)}for(let A=0;A<t.virtual.slidesBefore+t.virtual.slidesAfter;A+=1)n.slidesPerGroup===1&&p.push(p[p.length-1]+I),y.push(y[y.length-1]+I),t.virtualSize+=I}if(p.length===0&&(p=[0]),v!==0){const I=t.isHorizontal()&&a?"marginLeft":t.getDirectionLabel("marginRight");u.filter((A,L)=>!n.cssMode||n.loop?!0:L!==u.length-1).forEach(A=>{A.style[I]=`${v}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let I=0;m.forEach(L=>{I+=L+(v||0)}),I-=v;const A=I>s?I-s:0;p=p.map(L=>L<=0?-w:L>A?A+k:L)}if(n.centerInsufficientSlides){let I=0;m.forEach(L=>{I+=L+(v||0)}),I-=v;const A=(n.slidesOffsetBefore||0)+(n.slidesOffsetAfter||0);if(I+A<s){const L=(s-I-A)/2;p.forEach((T,g)=>{p[g]=T-L}),y.forEach((T,g)=>{y[g]=T+L})}}if(Object.assign(t,{slides:u,snapGrid:p,slidesGrid:y,slidesSizesGrid:m}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){A0(i,"--swiper-centered-offset-before",`${-p[0]}px`),A0(i,"--swiper-centered-offset-after",`${t.size/2-m[m.length-1]/2}px`);const I=-t.snapGrid[0],A=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(L=>L+I),t.slidesGrid=t.slidesGrid.map(L=>L+A)}if(h!==d&&t.emit("slidesLengthChange"),p.length!==b&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),y.length!==x&&t.emit("slidesGridLengthChange"),n.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!c&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const I=`${n.containerModifierClass}backface-hidden`,A=t.el.classList.contains(I);h<=n.maxBackfaceHiddenSlides?A||t.el.classList.add(I):A&&t.el.classList.remove(I)}}function vpe(t){const e=this,n=[],i=e.virtual&&e.params.virtual.enabled;let r=0,s;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const a=l=>i?e.slides[e.getSlideIndexByData(l)]:e.slides[l];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(l=>{n.push(l)});else for(s=0;s<Math.ceil(e.params.slidesPerView);s+=1){const l=e.activeIndex+s;if(l>e.slides.length&&!i)break;n.push(a(l))}else n.push(a(e.activeIndex));for(s=0;s<n.length;s+=1)if(typeof n[s]<"u"){const l=n[s].offsetHeight;r=l>r?l:r}(r||r===0)&&(e.wrapperEl.style.height=`${r}px`)}function wpe(){const t=this,e=t.slides,n=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let i=0;i<e.length;i+=1)e[i].swiperSlideOffset=(t.isHorizontal()?e[i].offsetLeft:e[i].offsetTop)-n-t.cssOverflowAdjustment()}const lL=(t,e,n)=>{e&&!t.classList.contains(n)?t.classList.add(n):!e&&t.classList.contains(n)&&t.classList.remove(n)};function kpe(t){t===void 0&&(t=this&&this.translate||0);const e=this,n=e.params,{slides:i,rtlTranslate:r,snapGrid:s}=e;if(i.length===0)return;typeof i[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let a=-t;r&&(a=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let l=n.spaceBetween;typeof l=="string"&&l.indexOf("%")>=0?l=parseFloat(l.replace("%",""))/100*e.size:typeof l=="string"&&(l=parseFloat(l));for(let c=0;c<i.length;c+=1){const d=i[c];let u=d.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(u-=i[0].swiperSlideOffset);const h=(a+(n.centeredSlides?e.minTranslate():0)-u)/(d.swiperSlideSize+l),p=(a-s[0]+(n.centeredSlides?e.minTranslate():0)-u)/(d.swiperSlideSize+l),y=-(a-u),m=y+e.slidesSizesGrid[c],w=y>=0&&y<=e.size-e.slidesSizesGrid[c],k=y>=0&&y<e.size-1||m>1&&m<=e.size||y<=0&&m>=e.size;k&&(e.visibleSlides.push(d),e.visibleSlidesIndexes.push(c)),lL(d,k,n.slideVisibleClass),lL(d,w,n.slideFullyVisibleClass),d.progress=r?-h:h,d.originalProgress=r?-p:p}}function Spe(t){const e=this;if(typeof t>"u"){const u=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*u||0}const n=e.params,i=e.maxTranslate()-e.minTranslate();let{progress:r,isBeginning:s,isEnd:a,progressLoop:l}=e;const c=s,d=a;if(i===0)r=0,s=!0,a=!0;else{r=(t-e.minTranslate())/i;const u=Math.abs(t-e.minTranslate())<1,h=Math.abs(t-e.maxTranslate())<1;s=u||r<=0,a=h||r>=1,u&&(r=0),h&&(r=1)}if(n.loop){const u=e.getSlideIndexByData(0),h=e.getSlideIndexByData(e.slides.length-1),p=e.slidesGrid[u],y=e.slidesGrid[h],m=e.slidesGrid[e.slidesGrid.length-1],w=Math.abs(t);w>=p?l=(w-p)/m:l=(w+m-y)/m,l>1&&(l-=1)}Object.assign(e,{progress:r,progressLoop:l,isBeginning:s,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&e.updateSlidesProgress(t),s&&!c&&e.emit("reachBeginning toEdge"),a&&!d&&e.emit("reachEnd toEdge"),(c&&!s||d&&!a)&&e.emit("fromEdge"),e.emit("progress",r)}const z2=(t,e,n)=>{e&&!t.classList.contains(n)?t.classList.add(n):!e&&t.classList.contains(n)&&t.classList.remove(n)};function Cpe(){const t=this,{slides:e,params:n,slidesEl:i,activeIndex:r}=t,s=t.virtual&&n.virtual.enabled,a=t.grid&&n.grid&&n.grid.rows>1,l=h=>Il(i,`.${n.slideClass}${h}, swiper-slide${h}`)[0];let c,d,u;if(s)if(n.loop){let h=r-t.virtual.slidesBefore;h<0&&(h=t.virtual.slides.length+h),h>=t.virtual.slides.length&&(h-=t.virtual.slides.length),c=l(`[data-swiper-slide-index="${h}"]`)}else c=l(`[data-swiper-slide-index="${r}"]`);else a?(c=e.filter(h=>h.column===r)[0],u=e.filter(h=>h.column===r+1)[0],d=e.filter(h=>h.column===r-1)[0]):c=e[r];c&&(a||(u=cpe(c,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u&&(u=e[0]),d=lpe(c,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!d===0&&(d=e[e.length-1]))),e.forEach(h=>{z2(h,h===c,n.slideActiveClass),z2(h,h===u,n.slideNextClass),z2(h,h===d,n.slidePrevClass)}),t.emitSlidesClasses()}const Hw=(t,e)=>{if(!t||t.destroyed||!t.params)return;const n=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,i=e.closest(n());if(i){let r=i.querySelector(`.${t.params.lazyPreloaderClass}`);!r&&t.isElement&&(i.shadowRoot?r=i.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{i.shadowRoot&&(r=i.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),r&&r.remove())})),r&&r.remove()}},V2=(t,e)=>{if(!t.slides[e])return;const n=t.slides[e].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},jE=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const n=t.slides.length;if(!n||!e||e<0)return;e=Math.min(e,n);const i=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),r=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const a=r,l=[a-e];l.push(...Array.from({length:e}).map((c,d)=>a+i+d)),t.slides.forEach((c,d)=>{l.includes(c.column)&&V2(t,d)});return}const s=r+i-1;if(t.params.rewind||t.params.loop)for(let a=r-e;a<=s+e;a+=1){const l=(a%n+n)%n;(l<r||l>s)&&V2(t,l)}else for(let a=Math.max(r-e,0);a<=Math.min(s+e,n-1);a+=1)a!==r&&(a>s||a<r)&&V2(t,a)};function jpe(t){const{slidesGrid:e,params:n}=t,i=t.rtlTranslate?t.translate:-t.translate;let r;for(let s=0;s<e.length;s+=1)typeof e[s+1]<"u"?i>=e[s]&&i<e[s+1]-(e[s+1]-e[s])/2?r=s:i>=e[s]&&i<e[s+1]&&(r=s+1):i>=e[s]&&(r=s);return n.normalizeSlideIndex&&(r<0||typeof r>"u")&&(r=0),r}function Tpe(t){const e=this,n=e.rtlTranslate?e.translate:-e.translate,{snapGrid:i,params:r,activeIndex:s,realIndex:a,snapIndex:l}=e;let c=t,d;const u=y=>{let m=y-e.virtual.slidesBefore;return m<0&&(m=e.virtual.slides.length+m),m>=e.virtual.slides.length&&(m-=e.virtual.slides.length),m};if(typeof c>"u"&&(c=jpe(e)),i.indexOf(n)>=0)d=i.indexOf(n);else{const y=Math.min(r.slidesPerGroupSkip,c);d=y+Math.floor((c-y)/r.slidesPerGroup)}if(d>=i.length&&(d=i.length-1),c===s&&!e.params.loop){d!==l&&(e.snapIndex=d,e.emit("snapIndexChange"));return}if(c===s&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=u(c);return}const h=e.grid&&r.grid&&r.grid.rows>1;let p;if(e.virtual&&r.virtual.enabled&&r.loop)p=u(c);else if(h){const y=e.slides.filter(w=>w.column===c)[0];let m=parseInt(y.getAttribute("data-swiper-slide-index"),10);Number.isNaN(m)&&(m=Math.max(e.slides.indexOf(y),0)),p=Math.floor(m/r.grid.rows)}else if(e.slides[c]){const y=e.slides[c].getAttribute("data-swiper-slide-index");y?p=parseInt(y,10):p=c}else p=c;Object.assign(e,{previousSnapIndex:l,snapIndex:d,previousRealIndex:a,realIndex:p,previousIndex:s,activeIndex:c}),e.initialized&&jE(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(a!==p&&e.emit("realIndexChange"),e.emit("slideChange"))}function Ppe(t,e){const n=this,i=n.params;let r=t.closest(`.${i.slideClass}, swiper-slide`);!r&&n.isElement&&e&&e.length>
vendor: 8,812 bytes, line 177
1771&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(l=>{!r&&l.matches&&l.matches(`.${i.slideClass}, swiper-slide`)&&(r=l)});let s=!1,a;if(r){for(let l=0;l<n.slides.length;l+=1)if(n.slides[l]===r){s=!0,a=l;break}}if(r&&s)n.clickedSlide=r,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=a;else{n.clickedSlide=void 0,n.clickedIndex=void 0;return}i.slideToClickedSlide&&n.clickedIndex!==void 0&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}var Epe={updateSize:ype,updateSlides:bpe,updateAutoHeight:vpe,updateSlidesOffset:wpe,updateSlidesProgress:kpe,updateProgress:Spe,updateSlidesClasses:Cpe,updateActiveIndex:Tpe,updateClickedSlide:Ppe};function Ape(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:n,rtlTranslate:i,translate:r,wrapperEl:s}=e;if(n.virtualTranslate)return i?-r:r;if(n.cssMode)return r;let a=spe(s,t);return a+=e.cssOverflowAdjustment(),i&&(a=-a),a||0}function Npe(t,e){const n=this,{rtlTranslate:i,params:r,wrapperEl:s,progress:a}=n;let l=0,c=0;const d=0;n.isHorizontal()?l=i?-t:t:c=t,r.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:c,r.cssMode?s[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-c:r.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),s.style.transform=`translate3d(${l}px, ${c}px, ${d}px)`);let u;const h=n.maxTranslate()-n.minTranslate();h===0?u=0:u=(t-n.minTranslate())/h,u!==a&&n.updateProgress(t),n.emit("setTranslate",n.translate,e)}function Mpe(){return-this.snapGrid[0]}function Dpe(){return-this.snapGrid[this.snapGrid.length-1]}function _pe(t,e,n,i,r){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),n===void 0&&(n=!0),i===void 0&&(i=!0);const s=this,{params:a,wrapperEl:l}=s;if(s.animating&&a.preventInteractionOnTransition)return!1;const c=s.minTranslate(),d=s.maxTranslate();let u;if(i&&t>c?u=c:i&&t<d?u=d:u=t,s.updateProgress(u),a.cssMode){const h=s.isHorizontal();if(e===0)l[h?"scrollLeft":"scrollTop"]=-u;else{if(!s.support.smoothScroll)return az({swiper:s,targetPosition:-u,side:h?"left":"top"}),!0;l.scrollTo({[h?"left":"top"]:-u,behavior:"smooth"})}return!0}return e===0?(s.setTransition(0),s.setTranslate(u),n&&(s.emit("beforeTransitionStart",e,r),s.emit("transitionEnd"))):(s.setTransition(e),s.setTranslate(u),n&&(s.emit("beforeTransitionStart",e,r),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(p){!s||s.destroyed||p.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,s.animating=!1,n&&s.emit("transitionEnd"))}),s.wrapperEl.addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd))),!0}var Ipe={getTranslate:Ape,setTranslate:Npe,minTranslate:Mpe,maxTranslate:Dpe,translateTo:_pe};function Rpe(t,e){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${t}ms`,n.wrapperEl.style.transitionDelay=t===0?"0ms":""),n.emit("setTransition",t,e)}function cz(t){let{swiper:e,runCallbacks:n,direction:i,step:r}=t;const{activeIndex:s,previousIndex:a}=e;let l=i;if(l||(s>a?l="next":s<a?l="prev":l="reset"),e.emit(`transition${r}`),n&&s!==a){if(l==="reset"){e.emit(`slideResetTransition${r}`);return}e.emit(`slideChangeTransition${r}`),l==="next"?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`)}}function Ope(t,e){t===void 0&&(t=!0);const n=this,{params:i}=n;i.cssMode||(i.autoHeight&&n.updateAutoHeight(),cz({swiper:n,runCallbacks:t,direction:e,step:"Start"}))}function Lpe(t,e){t===void 0&&(t=!0);const n=this,{params:i}=n;n.animating=!1,!i.cssMode&&(n.setTransition(0),cz({swiper:n,runCallbacks:t,direction:e,step:"End"}))}var Fpe={setTransition:Rpe,transitionStart:Ope,transitionEnd:Lpe};function Bpe(t,e,n,i,r){t===void 0&&(t=0),n===void 0&&(n=!0),typeof t=="string"&&(t=parseInt(t,10));const s=this;let a=t;a<0&&(a=0);const{params:l,snapGrid:c,slidesGrid:d,previousIndex:u,activeIndex:h,rtlTranslate:p,wrapperEl:y,enabled:m}=s;if(!m&&!i&&!r||s.destroyed||s.animating&&l.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=s.params.speed);const w=Math.min(s.params.slidesPerGroupSkip,a);let k=w+Math.floor((a-w)/s.params.slidesPerGroup);k>=c.length&&(k=c.length-1);const b=-c[k];if(l.normalizeSlideIndex)for(let N=0;N<d.length;N+=1){const S=-Math.floor(b*100),_=Math.floor(d[N]*100),$=Math.floor(d[N+1]*100);typeof d[N+1]<"u"?S>=_&&S<$-($-_)/2?a=N:S>=_&&S<$&&(a=N+1):S>=_&&(a=N)}if(s.initialized&&a!==h&&(!s.allowSlideNext&&(p?b>s.translate&&b>s.minTranslate():b<s.translate&&b<s.minTranslate())||!s.allowSlidePrev&&b>s.translate&&b>s.maxTranslate()&&(h||0)!==a))return!1;a!==(u||0)&&n&&s.emit("beforeSlideChangeStart"),s.updateProgress(b);let x;a>h?x="next":a<h?x="prev":x="reset";const v=s.virtual&&s.params.virtual.enabled;if(!(v&&r)&&(p&&-b===s.translate||!p&&b===s.translate))return s.updateActiveIndex(a),l.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),l.effect!=="slide"&&s.setTranslate(b),x!=="reset"&&(s.transitionStart(n,x),s.transitionEnd(n,x)),!1;if(l.cssMode){const N=s.isHorizontal(),S=p?b:-b;if(e===0)v&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),v&&!s._cssModeVirtualInitialSet&&s.params.initialSlide>0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{y[N?"scrollLeft":"scrollTop"]=S})):y[N?"scrollLeft":"scrollTop"]=S,v&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1});else{if(!s.support.smoothScroll)return az({swiper:s,targetPosition:S,side:N?"left":"top"}),!0;y.scrollTo({[N?"left":"top"]:S,behavior:"smooth"})}return!0}return s.setTransition(e),s.setTranslate(b),s.updateActiveIndex(a),s.updateSlidesClasses(),s.emit("beforeTransitionStart",e,i),s.transitionStart(n,x),e===0?s.transitionEnd(n,x):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(S){!s||s.destroyed||S.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(n,x))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0}function $pe(t,e,n,i){t===void 0&&(t=0),n===void 0&&(n=!0),typeof t=="string"&&(t=parseInt(t,10));const r=this;if(r.destroyed)return;typeof e>"u"&&(e=r.params.speed);const s=r.grid&&r.params.grid&&r.params.grid.rows>1;let a=t;if(r.params.loop)if(r.virtual&&r.params.virtual.enabled)a=a+r.virtual.slidesBefore;else{let l;if(s){const p=a*r.params.grid.rows;l=r.slides.filter(y=>y.getAttribute("data-swiper-slide-index")*1===p)[0].column}else l=r.getSlideIndexByData(a);const c=s?Math.ceil(r.slides.length/r.params.grid.rows):r.slides.length,{centeredSlides:d}=r.params;let u=r.params.slidesPerView;u==="auto"?u=r.slidesPerViewDynamic():(u=Math.ceil(parseFloat(r.params.slidesPerView,10)),d&&u%2===0&&(u=u+1));let h=c-l<u;if(d&&(h=h||l<Math.ceil(u/2)),i&&d&&r.params.slidesPerView!=="auto"&&!s&&(h=!1),h){const p=d?l<r.activeIndex?"prev":"next":l-r.activeIndex-1<r.params.slidesPerView?"next":"prev";r.loopFix({direction:p,slideTo:!0,activeSlideIndex:p==="next"?l+1:l-c+1,slideRealIndex:p==="next"?r.realIndex:void 0})}if(s){const p=a*r.params.grid.rows;a=r.slides.filter(y=>y.getAttribute("data-swiper-slide-index")*1===p)[0].column}else a=r.getSlideIndexByData(a)}return requestAnimationFrame(()=>{r.slideTo(a,e,n,i)}),r}function Hpe(t,e,n){e===void 0&&(e=!0);const i=this,{enabled:r,params:s,animating:a}=i;if(!r||i.destroyed)return i;typeof t>"u"&&(t=i.params.speed);let l=s.slidesPerGroup;s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(l=Math.max(i.slidesPerViewDynamic("current",!0),1));const c=i.activeIndex<s.slidesPerGroupSkip?1:l,d=i.virtual&&s.virtual.enabled;if(s.loop){if(a&&!d&&s.loopPreventsSliding)return!1;if(i.loopFix({direction:"next"}),i._clientLeft=i.wrapperEl.clientLeft,i.activeIndex===i.slides.length-1&&s.cssMode)return requestAnimationFrame(()=>{i.slideTo(i.activeIndex+c,t,e,n)}),!0}return s.rewind&&i.isEnd?i.slideTo(0,t,e,n):i.slideTo(i.activeIndex+c,t,e,n)}function zpe(t,e,n){e===void 0&&(e=!0);const i=this,{params:r,snapGrid:s,slidesGrid:a,rtlTranslate:l,enabled:c,animating:d}=i;if(!c||i.destroyed)return i;typeof t>"u"&&(t=i.params.speed);const u=i.virtual&&r.virtual.enabled;if(r.loop){if(d&&!u&&r.loopPreventsSliding)return!1;i.loopFix({direction:"prev"}),i._clientLeft=i.wrapperEl.clientLeft}const h=l?i.translate:-i.translate;function p(b){return b<0?-Math.floor(Math.abs(b)):Math.floor(b)}const y=p(h),m=s.map(b=>p(b));let w=s[m.indexOf(y)-1];if(typeof w>"u"&&r.cssMode){let b;
177s.forEach((x,v)=>{y>=x&&(b=v)}),typeof b<"u"&&(w=s[b>0?b-1:b])}let k=0;if(typeof w<"u"&&(k=a.indexOf(w),k<0&&(k=i.activeIndex-1),r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(k=k-i.slidesPerViewDynamic("previous",!0)+1,k=Math.max(k,0))),r.rewind&&i.isBeginning){const b=i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(b,t,e,n)}else if(r.loop&&i.activeIndex===0&&r.cssMode)return requestAnimationFrame(()=>{i.slideTo(k,t,e,n)}),!0;return i.slideTo(k,t,e,n)}function Vpe(t,e,n){e===void 0&&(e=!0);const i=this;if(!i.destroyed)return typeof t>"u"&&(t=i.params.speed),i.slideTo(i.activeIndex,t,e,n)}function Upe(t,e,n,i){e===void 0&&(e=!0),i===void 0&&(i=.5);const r=this;if(r.destroyed)return;typeof t>"u"&&(t=r.params.speed);let s=r.activeIndex;const a=Math.min(r.params.slidesPerGroupSkip,s),l=a+Math.floor((s-a)/r.params.slidesPerGroup),c=r.rtlTranslate?r.translate:-r.translate;if(c>=r.snapGrid[l]){const d=r.snapGrid[l],u=r.snapGrid[l+1];c-d>(u-d)*i&&(s+=r.params.slidesPerGroup)}else{const d=r.snapGrid[l-1],u=r.snapGrid[l];c-d<=(u-d)*i&&(s-=r.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,r.slidesGrid.length-1),r.slideTo(s,t,e,n)}function Wpe(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:n}=t,i=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let r=t.clickedIndex,s;const a=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;s=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?r<t.loopedSlides-i/2||r>t.slides.length-t.loopedSlides+i/2?(t.loopFix(),r=t.getSlideIndex(Il(n,`${a}[data-swiper-slide-index="${s}"]`)[0]),SE(()=>{t.slideTo(r)})):t.slideTo(r):r>t.slides.length-i?(t.loopFix(),r=t.getSlideIndex(Il(n,`${a}[data-swiper-slide-index="${s}"]`)[0]),SE(()=>{t.slideTo(r)})):t.slideTo(r)}else t.slideTo(r)}var Gpe={slideTo:Bpe,slideToLoop:$pe,slideNext:Hpe,slidePrev:zpe,slideReset:Vpe,slideToClosest:Upe,slideToClickedSlide:Wpe};function qpe(t){const e=this,{params:n,slidesEl:i}=e;if(!n.loop||e.virtual&&e.params.virtual.enabled)return;const r=()=>{Il(i,`.${n.slideClass}, swiper-slide`).forEach((h,p)=>{h.setAttribute("data-swiper-slide-index",p)})},s=e.grid&&n.grid&&n.grid.rows>1,a=n.slidesPerGroup*(s?n.grid.rows:1),l=e.slides.length%a!==0,c=s&&e.slides.length%n.grid.rows!==0,d=u=>{for(let h=0;h<u;h+=1){const p=e.isElement?CE("swiper-slide",[n.slideBlankClass]):CE("div",[n.slideClass,n.slideBlankClass]);e.slidesEl.append(p)}};if(l){if(n.loopAddBlankSlides){const u=a-e.slides.length%a;d(u),e.recalcSlides(),e.updateSlides()}else u1("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");r()}else if(c){if(n.loopAddBlankSlides){const u=n.grid.rows-e.slides.length%n.grid.rows;d(u),e.recalcSlides(),e.updateSlides()}else u1("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");r()}else r();e.loopFix({slideRealIndex:t,direction:n.centeredSlides?void 0:"next"})}function Kpe(t){let{slideRealIndex:e,slideTo:n=!0,direction:i,setTranslate:r,activeSlideIndex:s,byController:a,byMousewheel:l}=t===void 0?{}:t;const c=this;if(!c.params.loop)return;c.emit("beforeLoopFix");const{slides:d,allowSlidePrev:u,allowSlideNext:h,slidesEl:p,params:y}=c,{centeredSlides:m}=y;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&y.virtual.enabled){n&&(!y.centeredSlides&&c.snapIndex===0?c.slideTo(c.virtual.slides.length,0,!1,!0):y.centeredSlides&&c.snapIndex<y.slidesPerView?c.slideTo(c.virtual.slides.length+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&c.slideTo(c.virtual.slidesBefore,0,!1,!0)),c.allowSlidePrev=u,c.allowSlideNext=h,c.emit("loopFix");return}let w=y.slidesPerView;w==="auto"?w=c.slidesPerViewDynamic():(w=Math.ceil(parseFloat(y.slidesPerView,10)),m&&w%2===0&&(w=w+1));const k=y.slidesPerGroupAuto?w:y.slidesPerGroup;let b=k;b%k!==0&&(b+=k-b%k),b+=y.loopAdditionalSlides,c.loopedSlides=b;const x=c.grid&&y.grid&&y.grid.rows>1;d.length<w+b?u1("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):x&&y.grid.fill==="row"&&u1("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const v=[],E=[];let N=c.activeIndex;typeof s>"u"?s=c.getSlideIndex(d.filter(T=>T.classList.contains(y.slideActiveClass))[0]):N=s;const S=i==="next"||!i,_=i==="prev"||!i;let $=0,V=0;
vendor: 28,189 bytes, line 177
177const I=x?Math.ceil(d.length/y.grid.rows):d.length,L=(x?d[s].column:s)+(m&&typeof r>"u"?-w/2+.5:0);if(L<b){$=Math.max(b-L,k);for(let T=0;T<b-L;T+=1){const g=T-Math.floor(T/I)*I;if(x){const f=I-g-1;for(let j=d.length-1;j>=0;j-=1)d[j].column===f&&v.push(j)}else v.push(I-g-1)}}else if(L+w>I-b){V=Math.max(L-(I-b*2),k);for(let T=0;T<V;T+=1){const g=T-Math.floor(T/I)*I;x?d.forEach((f,j)=>{f.column===g&&E.push(j)}):E.push(g)}}if(c.__preventObserver__=!0,requestAnimationFrame(()=>{c.__preventObserver__=!1}),_&&v.forEach(T=>{d[T].swiperLoopMoveDOM=!0,p.prepend(d[T]),d[T].swiperLoopMoveDOM=!1}),S&&E.forEach(T=>{d[T].swiperLoopMoveDOM=!0,p.append(d[T]),d[T].swiperLoopMoveDOM=!1}),c.recalcSlides(),y.slidesPerView==="auto"?c.updateSlides():x&&(v.length>0&&_||E.length>0&&S)&&c.slides.forEach((T,g)=>{c.grid.updateSlide(g,T,c.slides)}),y.watchSlidesProgress&&c.updateSlidesOffset(),n){if(v.length>0&&_){if(typeof e>"u"){const T=c.slidesGrid[N],f=c.slidesGrid[N+$]-T;l?c.setTranslate(c.translate-f):(c.slideTo(N+Math.ceil($),0,!1,!0),r&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-f,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-f))}else if(r){const T=x?v.length/y.grid.rows:v.length;c.slideTo(c.activeIndex+T,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if(E.length>0&&S)if(typeof e>"u"){const T=c.slidesGrid[N],f=c.slidesGrid[N-V]-T;l?c.setTranslate(c.translate-f):(c.slideTo(N-V,0,!1,!0),r&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-f,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-f))}else{const T=x?E.length/y.grid.rows:E.length;c.slideTo(c.activeIndex-T,0,!1,!0)}}if(c.allowSlidePrev=u,c.allowSlideNext=h,c.controller&&c.controller.control&&!a){const T={slideRealIndex:e,direction:i,setTranslate:r,activeSlideIndex:s,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach(g=>{!g.destroyed&&g.params.loop&&g.loopFix({...T,slideTo:g.params.slidesPerView===y.slidesPerView?n:!1})}):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix({...T,slideTo:c.controller.control.params.slidesPerView===y.slidesPerView?n:!1})}c.emit("loopFix")}function Ype(){const t=this,{params:e,slidesEl:n}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const i=[];t.slides.forEach(r=>{const s=typeof r.swiperSlideIndex>"u"?r.getAttribute("data-swiper-slide-index")*1:r.swiperSlideIndex;i[s]=r}),t.slides.forEach(r=>{r.removeAttribute("data-swiper-slide-index")}),i.forEach(r=>{n.append(r)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var Xpe={loopCreate:qpe,loopFix:Kpe,loopDestroy:Ype};function Jpe(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const n=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function Qpe(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var Zpe={setGrabCursor:Jpe,unsetGrabCursor:Qpe};function eme(t,e){e===void 0&&(e=this);function n(i){if(!i||i===ig()||i===Ys())return null;i.assignedSlot&&(i=i.assignedSlot);const r=i.closest(t);return!r&&!i.getRootNode?null:r||n(i.getRootNode().host)}return n(e)}function cL(t,e,n){const i=Ys(),{params:r}=t,s=r.edgeSwipeDetection,a=r.edgeSwipeThreshold;return s&&(n<=a||n>=i.innerWidth-a)?s==="prevent"?(e.preventDefault(),!0):!1:!0}function tme(t){const e=this,n=ig();let i=t;i.originalEvent&&(i=i.originalEvent);const r=e.touchEventsData;if(i.type==="pointerdown"){if(r.pointerId!==null&&r.pointerId!==i.pointerId)return;r.pointerId=i.pointerId}else i.type==="touchstart"&&i.targetTouches.length===1&&(r.touchId=i.targetTouches[0].identifier);if(i.type==="touchstart"){cL(e,i,i.targetTouches[0].pageX);return}const{params:s,touches:a,enabled:l}=e;if(!l||!s.simulateTouch&&i.pointerType==="mouse"||e.animating&&s.preventInteractionOnTransition)return;!e.animating&&s.cssMode&&s.loop&&e.loopFix();let c=i.target;if(s.touchEventsTarget==="wrapper"&&!ope(c,e.wrapperEl)||"which"in i&&i.which===3||"button"in i&&i.button>0||r.isTouched&&r.isMoved)return;const d=!!s.noSwipingClass&&s.noSwipingClass!=="",u=i.composedPath?i.composedPath():i.path;d&&i.target&&i.target.shadowRoot&&u&&(c=u[0]);const h=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,p=!!(i.target&&i.target.shadowRoot);if(s.noSwiping&&(p?eme(h,c):c.closest(h))){e.allowClick=!0;return}if(s.swipeHandler&&!c.closest(s.swipeHandler))return;a.currentX=i.pageX,a.currentY=i.pageY;const y=a.currentX,m=a.currentY;if(!cL(e,i,y))return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=y,a.startY=m,r.touchStartTime=d1(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,s.threshold>0&&(r.allowThresholdMove=!1);let w=!0;c.matches(r.focusableElements)&&(w=!1,c.nodeName==="SELECT"&&(r.isTouched=!1)),n.activeElement&&n.activeElement.matches(r.focusableElements)&&n.activeElement!==c&&(i.pointerType==="mouse"||i.pointerType!=="mouse"&&!c.matches(r.focusableElements))&&n.activeElement.blur();const k=w&&e.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||k)&&!c.isContentEditable&&i.preventDefault(),s.freeMode&&s.freeMode.enabled&&e.freeMode&&e.animating&&!s.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",i)}function nme(t){const e=ig(),n=this,i=n.touchEventsData,{params:r,touches:s,rtlTranslate:a,enabled:l}=n;if(!l||!r.simulateTouch&&t.pointerType==="mouse")return;let c=t;if(c.originalEvent&&(c=c.originalEvent),c.type==="pointermove"&&(i.touchId!==null||c.pointerId!==i.pointerId))return;let d;if(c.type==="touchmove"){if(d=[...c.changedTouches].filter(S=>S.identifier===i.touchId)[0],!d||d.identifier!==i.touchId)return}else d=c;if(!i.isTouched){i.startMoving&&i.isScrolling&&n.emit("touchMoveOpposite",c);return}const u=d.pageX,h=d.pageY;if(c.preventedByNestedSwiper){s.startX=u,s.startY=h;return}if(!n.allowTouchMove){c.target.matches(i.focusableElements)||(n.allowClick=!1),i.isTouched&&(Object.assign(s,{startX:u,startY:h,currentX:u,currentY:h}),i.touchStartTime=d1());return}if(r.touchReleaseOnEdges&&!r.loop){if(n.isVertical()){if(h<s.startY&&n.translate<=n.maxTranslate()||h>s.startY&&n.translate>=n.minTranslate()){i.isTouched=!1,i.isMoved=!1;return}}else if(u<s.startX&&n.translate<=n.maxTranslate()||u>s.startX&&n.translate>=n.minTranslate())return}if(e.activeElement&&e.activeElement.matches(i.focusableElements)&&e.activeElement!==c.target&&c.pointerType!=="mouse"&&e.activeElement.blur(),e.activeElement&&c.target===e.activeElement&&c.target.matches(i.focusableElements)){i.isMoved=!0,n.allowClick=!1;return}i.allowTouchCallbacks&&n.emit("touchMove",c),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=u,s.currentY=h;const p=s.currentX-s.startX,y=s.currentY-s.startY;if(n.params.threshold&&Math.sqrt(p**2+y**2)<n.params.threshold)return;if(typeof i.isScrolling>"u"){let S;n.isHorizontal()&&s.currentY===s.startY||n.isVertical()&&s.currentX===s.startX?i.isScrolling=!1:p*p+y*y>=25&&(S=Math.atan2(Math.abs(y),Math.abs(p))*180/Math.PI,i.isScrolling=n.isHorizontal()?S>r.touchAngle:90-S>r.touchAngle)}if(i.isScrolling&&n.emit("touchMoveOpposite",c),typeof i.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(i.startMoving=!0),i.isScrolling||c.type==="touchmove"&&i.preventTouchMoveFromPointerMove){i.isTouched=!1;return}if(!i.startMoving)return;n.allowClick=!1,!r.cssMode&&c.cancelable&&c.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&c.stopPropagation();let m=n.isHorizontal()?p:y,w=n.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;r.oneWayMovement&&(m=Math.abs(m)*(a?1:-1),w=Math.abs(w)*(a?1:-1)),s.diff=m,m*=r.touchRatio,a&&(m=-m,w=-w);const k=n.touchesDirection;n.swipeDirection=m>0?"prev":"next",n.touchesDirection=w>0?"prev":"next";const b=n.params.loop&&!r.cssMode,x=n.touchesDirection==="next"&&n.allowSlideNext||n.touchesDirection==="prev"&&n.allowSlidePrev;if(!i.isMoved){if(b&&x&&n.loopFix({direction:n.swipeDirection}),i.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const S=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(S)}i.allowMomentumBounce=!1,r.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",c)}let v;if(new Date().getTime(),i.isMoved&&i.allowThresholdMove&&k!==n.touchesDirection&&b&&x&&Math.abs(m)>=1){Object.assign(s,{startX:u,startY:h,currentX:u,currentY:h,startTranslate:i.currentTranslate}),i.loopSwapReset=!0,i.startTranslate=i.currentTranslate;return}n.emit("sliderMove",c),i.isMoved=!0,i.currentTranslate=m+i.startTranslate;let E=!0,N=r.resistanceRatio;if(r.touchReleaseOnEdges&&(N=0),m>0?(b&&x&&!v&&i.allowThresholdMove&&i.currentTranslate>(r.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-(r.slidesPerView!=="auto"&&n.slides.length-r.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>n.minTranslate()&&(E=!1,r.resistance&&(i.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+i.startTranslate+m)**N))):m<0&&(b&&x&&!v&&i.allowThresholdMove&&i.currentTranslate<(r.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+(r.slidesPerView!=="auto"&&n.slides.length-r.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(r.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),i.currentTranslate<n.maxTranslate()&&(E=!1,r.resistance&&(i.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-i.startTranslate-m)**N))),E&&(c.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(i.currentTranslate=i.startTranslate),r.threshold>0)if(Math.abs(m)>r.threshold||i.allowThresholdMove){if(!i.allowThresholdMove){i.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,i.currentTranslate=i.startTranslate,s.diff=n.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{i.currentTranslate=i.startTranslate;return}!r.followFinger||r.cssMode||((r.freeMode&&r.freeMode.enabled&&n.freeMode||r.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(i.currentTranslate),n.setTranslate(i.currentTranslate))}function ime(t){const e=this,n=e.touchEventsData;let i=t;i.originalEvent&&(i=i.originalEvent);let r;if(i.type==="touchend"||i.type==="touchcancel"){if(r=[...i.changedTouches].filter(N=>N.identifier===n.touchId)[0],!r||r.identifier!==n.touchId)return}else{if(n.touchId!==null||i.pointerId!==n.pointerId)return;r=i}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)&&!(["pointercancel","contextmenu"].includes(i.type)&&(e.browser.isSafari||e.browser.isWebView)))return;n.pointerId=null,n.touchId=null;const{params:a,touches:l,rtlTranslate:c,slidesGrid:d,enabled:u}=e;if(!u||!a.simulateTouch&&i.pointerType==="mouse")return;if(n.allowTouchCallbacks&&e.emit("touchEnd",i),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&a.grabCursor&&e.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}a.grabCursor&&n.isMoved&&n.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const h=d1(),p=h-n.touchStartTime;if(e.allowClick){const N=i.path||i.composedPath&&i.composedPath();e.updateClickedSlide(N&&N[0]||i.target,N),e.emit("tap click",i),p<300&&h-n.lastClickTime<300&&e.emit("doubleTap doubleClick",i)}if(n.lastClickTime=d1(),SE(()=>{e.destroyed||(e.allowClick=!0)}),!n.isTouched||!n.isMoved||!e.swipeDirection||l.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let y;if(a.followFinger?y=c?e.translate:-e.translate:y=-n.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:y});return}const m=y>=-e.maxTranslate()&&!e.params.loop;let w=0,k=e.slidesSizesGrid[0];for(let N=0;N<d.length;N+=N<a.slidesPerGroupSkip?1:a.slidesPerGroup){const S=N<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;typeof d[N+S]<"u"?(m||y>=d[N]&&y<d[N+S])&&(w=N,k=d[N+S]-d[N]):(m||y>=d[N])&&(w=N,k=d[d.length-1]-d[d.length-2])}let b=null,x=null;a.rewind&&(e.isBeginning?x=a.virtual&&a.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(b=0));const v=(y-d[w])/k,E=w<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(p>a.longSwipesMs){if(!a.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(v>=a.longSwipesRatio?e.slideTo(a.rewind&&e.isEnd?b:w+E):e.slideTo(w)),e.swipeDirection==="prev"&&(v>1-a.longSwipesRatio?e.slideTo(w+E):x!==null&&v<0&&Math.abs(v)>a.longSwipesRatio?e.slideTo(x):e.slideTo(w))}else{if(!a.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(i.target===e.navigation.nextEl||i.target===e.navigation.prevEl)?i.target===e.navigation.nextEl?e.slideTo(w+E):e.slideTo(w):(e.swipeDirection==="next"&&e.slideTo(b!==null?b:w+E),e.swipeDirection==="prev"&&e.slideTo(x!==null?x:w))}}function dL(){const t=this,{params:e,el:n}=t;if(n&&n.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:r,snapGrid:s}=t,a=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const l=a&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!l?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!a?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=r,t.allowSlideNext=i,t.params.watchOverflow&&s!==t.snapGrid&&t.checkOverflow()}function rme(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function sme(){const t=this,{wrapperEl:e,rtlTranslate:n,enabled:i}=t;if(!i)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let r;const s=t.maxTranslate()-t.minTranslate();s===0?r=0:r=(t.translate-t.minTranslate())/s,r!==t.progress&&t.updateProgress(n?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function ame(t){const e=this;Hw(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function ome(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const dz=(t,e)=>{const n=ig(),{params:i,el:r,wrapperEl:s,device:a}=t,l=!!i.nested,c=e==="on"?"addEventListener":"removeEventListener",d=e;!r||typeof r=="string"||(n[c]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:l}),r[c]("touchstart",t.onTouchStart,{passive:!1}),r[c]("pointerdown",t.onTouchStart,{passive:!1}),n[c]("touchmove",t.onTouchMove,{passive:!1,capture:l}),n[c]("pointermove",t.onTouchMove,{passive:!1,capture:l}),n[c]("touchend",t.onTouchEnd,{passive:!0}),n[c]("pointerup",t.onTouchEnd,{passive:!0}),n[c]("pointercancel",t.onTouchEnd,{passive:!0}),n[c]("touchcancel",t.onTouchEnd,{passive:!0}),n[c]("pointerout",t.onTouchEnd,{passive:!0}),n[c]("pointerleave",t.onTouchEnd,{passive:!0}),n[c]("contextmenu",t.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&r[c]("click",t.onClick,!0),i.cssMode&&s[c]("scroll",t.onScroll),i.updateOnWindowResize?t[d](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",dL,!0):t[d]("observerUpdate",dL,!0),r[c]("load",t.onLoad,{capture:!0}))};function lme(){const t=this,{params:e}=t;t.onTouchStart=tme.bind(t),t.onTouchMove=nme.bind(t),t.onTouchEnd=ime.bind(t),t.onDocumentTouchStart=ome.bind(t),e.cssMode&&(t.onScroll=sme.bind(t)),t.onClick=rme.bind(t),t.onLoad=ame.bind(t),dz(t,"on")}function cme(){dz(this,"off")}var dme={attachEvents:lme,detachEvents:cme};const uL=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function ume(){const t=this,{realIndex:e,initialized:n,params:i,el:r}=t,s=i.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const a=t.getBreakpoint(s,t.params.breakpointsBase,t.el);if(!a||t.currentBreakpoint===a)return;const c=(a in s?s[a]:void 0)||t.originalParams,d=uL(t,i),u=uL(t,c),h=t.params.grabCursor,p=c.grabCursor,y=i.enabled;d&&!u?(r.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),t.emitContainerClasses()):!d&&u&&(r.classList.add(`${i.containerModifierClass}grid`),(c.grid.fill&&c.grid.fill==="column"||!c.grid.fill&&i.grid.fill==="column")&&r.classList.add(`${i.containerModifierClass}grid-column`),t.emitContainerClasses()),h&&!p?t.unsetGrabCursor():!h&&p&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(v=>{if(typeof c[v]>"u")return;const E=i[v]&&i[v].enabled,N=c[v]&&c[v].enabled;E&&!N&&t[v].disable(),!E&&N&&t[v].enable()});const m=c.direction&&c.direction!==i.direction,w=i.loop&&(c.slidesPerView!==i.slidesPerView||m),k=i.loop;m&&n&&t.changeDirection(),_s(t.params,c);const b=t.params.enabled,x=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),y&&!b?t.disable():!y&&b&&t.enable(),t.currentBreakpoint=a,t.emit("_beforeBreakpoint",c),n&&(w?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!k&&x?(t.loopCreate(e),t.updateSlides()):k&&!x&&t.loopDestroy()),t.emit("breakpoint",c)}function hme(t,e,n){if(e===void 0&&(e="window"),!t||e==="container"&&!n)return;let i=!1;const r=Ys(),s=e==="window"?r.innerHeight:n.clientHeight,a=Object.keys(t).map(l=>{if(typeof l=="string"&&l.indexOf("@")===0){const c=parseFloat(l.substr(1));return{value:s*c,point:l}}return{value:l,point:l}});a.sort((l,c)=>parseInt(l.value,10)-parseInt(c.value,10));for(let l=0;l<a.length;l+=1){const{point:c,value:d}=a[l];e==="window"?r.matchMedia(`(min-width: ${d}px)`).matches&&(i=c):d<=n.clientWidth&&(i=c)}return i||"max"}var pme={setBreakpoint:ume,getBreakpoint:hme};function mme(t,e){const n=[];return t.forEach(i=>{typeof i=="object"?Object.keys(i).forEach(r=>{i[r]&&n.push(e+r)}):typeof i=="string"&&n.push(e+i)}),n}function fme(){const t=this,{classNames:e,params:n,rtl:i,el:r,device:s}=t,a=mme(["initialized",n.direction,{"free-mode":t.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:i},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);e.push(...a),r.classList.add(...e),t.emitContainerClasses()}function gme(){const t=this,{el:e,classNames:n}=t;!e||typeof e=="string"||(e.classList.remove(...n),t.emitContainerClasses())}var xme={addClasses:fme,removeClasses:gme};function yme(){const t=this,{isLocked:e,params:n}=t,{slidesOffsetBefore:i}=n;if(i){const r=t.slides.length-1,s=t.slidesGrid[r]+t.slidesSizesGrid[r]+i*2;t.isLocked=t.size>s}else t.isLocked=t.snapGrid.length===1;n.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),n.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var bme={checkOverflow:yme},TE={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function vme(t,e){return function(i){i===void 0&&(i={});const r=Object.keys(i)[0],s=i[r];if(typeof s!="object"||s===null){_s(e,i);return}if(t[r]===!0&&(t[r]={enabled:!0}),r==="navigation"&&t[r]&&t[r].enabled&&!t[r].prevEl&&!t[r].nextEl&&(t[r].auto=!0),["pagination","scrollbar"].indexOf(r)>=0&&t[r]&&t[r].enabled&&!t[r].el&&(t[r].auto=!0),!(r in t&&"enabled"in s)){_s(e,i);return}typeof t[r]=="object"&&!("enabled"in t[r])&&(t[r].enabled=!0),t[r]||(t[r]={enabled:!1}),_s(e,i)}}const U2={eventsEmitter:xpe,update:Epe,translate:Ipe,transition:Fpe,slide:Gpe,loop:Xpe,grabCursor:Zpe,events:dme,breakpoints:pme,checkOverflow:bme,classes:xme},W2={};let RM=class Zo{constructor(){let e,n;for(var i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];r.length===1&&r[0].constructor&&Object.prototype.toString.call(r[0]).slice(8,-1)==="Object"?n=r[0]:[e,n]=r,n||(n={}),n=_s({},n),e&&!n.el&&(n.el=e);const a=ig();if(n.el&&typeof n.el=="string"&&a.querySelectorAll(n.el).length>1){const u=[];return a.querySelectorAll(n.el).forEach(h=>{const p=_s({},n,{el:h});u.push(new Zo(p))}),u}const l=this;l.__swiper__=!0,l.support=oz(),l.device=lz({userAgent:n.userAgent}),l.browser=mpe(),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=[...l.__modules__],n.modules&&Array.isArray(n.modules)&&l.modules.push(...n.modules);const c={};l.modules.forEach(u=>{u({params:n,swiper:l,extendParams:vme(n,c),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})});const d=_s({},TE,c);return l.params=_s({},d,W2,n),l.originalParams=_s({},l.params),l.passedParams=_s({},n),l.params&&l.params.on&&Object.keys(l.params.on).forEach(u=>{l.on(u,l.params.on[u])}),l.params&&l.params.onAny&&l.onAny(l.params.onAny),Object.assign(l,{enabled:l.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return l.params.direction==="horizontal"},isVertical(){return l.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:l.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:n,params:i}=this,r=Il(n,`.${i.slideClass}, swiper-slide`),s=aL(r[0]);return aL(e)-s}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:n,params:i}=e;e.slides=Il(n,`.${i.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,n){const i=this;e=Math.min(Math.max(e,0),1);const r=i.minTranslate(),a=(i.maxTranslate()-r)*e+r;i.translateTo(a,typeof n>"u"?0:n),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const n=e.el.className.split(" ").filter(i=>i.indexOf("swiper")===0||i.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",n.join(" "))}getSlideClasses(e){const n=this;return n.destroyed?"":e.className.split(" ").filter(i=>i.indexOf("swiper-slide")===0||i.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const n=[];e.slides.forEach(i=>{const r=e.getSlideClasses(i);n.push({slideEl:i,classNames:r}),e.emit("_slideClass",i,r)}),e.emit("_slideClasses",n)}slidesPerViewDynamic(e,n){e===void 0&&(e="current"),n===void 0&&(n=!1);const i=this,{params:r,slides:s,slidesGrid:a,slidesSizesGrid:l,size:c,activeIndex:d}=i;let u=1;if(typeof r.slidesPerView=="number")return r.slidesPerView;if(r.centeredSlides){let h=s[d]?Math.ceil(s[d].swiperSlideSize):0,p;for(let y=d+1;y<s.length;y+=1)s[y]&&!p&&(h+=Math.ceil(s[y].swiperSlideSize),u+=1,h>c&&(p=!0));for(let y=d-1;y>=0;y-=1)s[y]&&!p&&(h+=s[y].swiperSlideSize,u+=1,h>c&&(p=!0))}else if(e==="current")for(let h=d+1;h<s.length;h+=1)(n?a[h]+l[h]-a[d]<c:a[h]-a[d]<c)&&(u+=1);else for(let h=d-1;h>=0;h-=1)a[d]-a[h]<c&&(u+=1);return u}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:n,params:i}=e;i.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(a=>{a.complete&&Hw(e,a)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function r(){const a=e.rtlTranslate?e.translate*-1:e.translate,l=Math.min(Math.max(a,e.maxTranslate()),e.minTranslate());e.setTranslate(l),e.updateActiveIndex(),e.updateSlidesClasses()}let s;if(i.freeMode&&i.freeMode.enabled&&!i.cssMode)r(),i.autoHeight&&e.updateAutoHeight();else{if((i.slidesPerView==="auto"||i.slidesPerView>1)&&e.isEnd&&!i.centeredSlides){const a=e.virtual&&i.virtual.enabled?e.virtual.slides:e.slides;s=e.slideTo(a.length-1,0,!1,!0)}else s=e.slideTo(e.activeIndex,0,!1,!0);s||r()}i.watchOverflow&&n!==e.snapGrid&&e.checkOverflow(),e.emit("update")}
vendor: 4,358 bytes, line 177
177changeDirection(e,n){n===void 0&&(n=!0);const i=this,r=i.params.direction;return e||(e=r==="horizontal"?"vertical":"horizontal"),e===r||e!=="horizontal"&&e!=="vertical"||(i.el.classList.remove(`${i.params.containerModifierClass}${r}`),i.el.classList.add(`${i.params.containerModifierClass}${e}`),i.emitContainerClasses(),i.params.direction=e,i.slides.forEach(s=>{e==="vertical"?s.style.width="":s.style.height=""}),i.emit("changeDirection"),n&&i.update()),i}changeLanguageDirection(e){const n=this;n.rtl&&e==="rtl"||!n.rtl&&e==="ltr"||(n.rtl=e==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(e){const n=this;if(n.mounted)return!0;let i=e||n.params.el;if(typeof i=="string"&&(i=document.querySelector(i)),!i)return!1;i.swiper=n,i.parentNode&&i.parentNode.host&&i.parentNode.host.nodeName===n.params.swiperElementNodeName.toUpperCase()&&(n.isElement=!0);const r=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=i&&i.shadowRoot&&i.shadowRoot.querySelector?i.shadowRoot.querySelector(r()):Il(i,r())[0];return!a&&n.params.createElements&&(a=CE("div",n.params.wrapperClass),i.append(a),Il(i,`.${n.params.slideClass}`).forEach(l=>{a.append(l)})),Object.assign(n,{el:i,wrapperEl:a,slidesEl:n.isElement&&!i.parentNode.host.slideSlots?i.parentNode.host:a,hostEl:n.isElement?i.parentNode.host:i,mounted:!0,rtl:i.dir.toLowerCase()==="rtl"||cd(i,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(i.dir.toLowerCase()==="rtl"||cd(i,"direction")==="rtl"),wrongRTL:cd(a,"display")==="-webkit-box"}),!0}init(e){const n=this;if(n.initialized||n.mount(e)===!1)return n;n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents();const r=[...n.el.querySelectorAll('[loading="lazy"]')];return n.isElement&&r.push(...n.hostEl.querySelectorAll('[loading="lazy"]')),r.forEach(s=>{s.complete?Hw(n,s):s.addEventListener("load",a=>{Hw(n,a.target)})}),jE(n),n.initialized=!0,jE(n),n.emit("init"),n.emit("afterInit"),n}destroy(e,n){e===void 0&&(e=!0),n===void 0&&(n=!0);const i=this,{params:r,el:s,wrapperEl:a,slides:l}=i;return typeof i.params>"u"||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),r.loop&&i.loopDestroy(),n&&(i.removeClasses(),s&&typeof s!="string"&&s.removeAttribute("style"),a&&a.removeAttribute("style"),l&&l.length&&l.forEach(c=>{c.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),c.removeAttribute("style"),c.removeAttribute("data-swiper-slide-index")})),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(c=>{i.off(c)}),e!==!1&&(i.el&&typeof i.el!="string"&&(i.el.swiper=null),ipe(i)),i.destroyed=!0),null}static extendDefaults(e){_s(W2,e)}static get extendedDefaults(){return W2}static get defaults(){return TE}static installModule(e){Zo.prototype.__modules__||(Zo.prototype.__modules__=[]);const n=Zo.prototype.__modules__;typeof e=="function"&&n.indexOf(e)<0&&n.push(e)}static use(e){return Array.isArray(e)?(e.forEach(n=>Zo.installModule(n)),Zo):(Zo.installModule(e),Zo)}};Object.keys(U2).forEach(t=>{Object.keys(U2[t]).forEach(e=>{RM.prototype[e]=U2[t][e]})});RM.use([fpe,gpe]);const uz=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesB
177ounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function Wh(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function um(t,e){const n=["__proto__","constructor","prototype"];Object.keys(e).filter(i=>n.indexOf(i)<0).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:Wh(e[i])&&Wh(t[i])&&Object.keys(e[i]).length>0?e[i].__swiper__?t[i]=e[i]:um(t[i],e[i]):t[i]=e[i]})}function hz(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function pz(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function mz(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function fz(t){t===void 0&&(t="");const e=t.split(" ").map(i=>i.trim()).filter(i=>!!i),n=[];return e.forEach(i=>{n.indexOf(i)<0&&n.push(i)}),n.join(" ")}function wme(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function kme(t){let{swiper:e,slides:n,passedParams:i,changedParams:r,nextEl:s,prevEl:a,scrollbarEl:l,paginationEl:c}=t;const d=r.filter(V=>V!=="children"&&V!=="direction"&&V!=="wrapperClass"),{params:u,pagination:h,navigation:p,scrollbar:y,virtual:m,thumbs:w}=e;let k,b,x,v,E,N,S,_;r.includes("thumbs")&&i.thumbs&&i.thumbs.swiper&&!i.thumbs.swiper.destroyed&&u.thumbs&&(!u.thumbs.swiper||u.thumbs.swiper.destroyed)&&(k=!0),r.includes("controller")&&i.controller&&i.controller.control&&u.controller&&!u.controller.control&&(b=!0),r.includes("pagination")&&i.pagination&&(i.pagination.el||c)&&(u.pagination||u.pagination===!1)&&h&&!h.el&&(x=!0),r.includes("scrollbar")&&i.scrollbar&&(i.scrollbar.el||l)&&(u.scrollbar||u.scrollbar===!1)&&y&&!y.el&&(v=!0),r.includes("navigation")&&i.navigation&&(i.navigation.prevEl||a)&&(i.navigation.nextEl||s)&&(u.navigation||u.navigation===!1)&&p&&!p.prevEl&&!p.nextEl&&(E=!0);const $=V=>{e[V]&&(e[V].destroy(),V==="navigation"?(e.isElement&&(e[V].prevEl.remove(),e[V].nextEl.remove()),u[V].prevEl=void 0,u[V].nextEl=void 0,e[V].prevEl=void 0,e[V].nextEl=void 0):(e.isElement&&e[V].el.remove(),u[V].el=void 0,e[V].el=void 0))};r.includes("loop")&&e.isElement&&(u.loop&&!i.loop?N=!0:!u.loop&&i.loop?S=!0:_=!0),d.forEach(V=>{if(Wh(u[V])&&Wh(i[V]))Object.assign(u[V],i[V]),(V==="navigation"||V==="pagination"||V==="scrollbar")&&"enabled"in i[V]&&!i[V].enabled&&$(V);else{const I=i[V];(I===!0||I===!1)&&(V==="navigation"||V==="pagination"||V==="scrollbar")?I===!1&&$(V):u[V]=i[V]}}),d.includes("controller")&&!b&&e.controller&&e.controller.control&&u.controller&&u.controller.control&&(e.controller.control=u.controller.control),r.includes("children")&&n&&m&&u.virtual.enabled?(m.slides=n,m.update(!0)):r.includes("virtual")&&m&&u.virtual.enabled&&(n&&(m.slides=n),m.update(!0)),r.includes("children")&&n&&u.loop&&(_=!0),k&&w.init()&&w.update(!0),b&&(e.controller.control=u.controller.control),x&&(e.isElement&&(!c||typeof c=="string")&&(c=document.createElement("div"),c.classList.add("swiper-pagination"),c.part.add("pagination"),e.el.appendChild(c)),c&&(u.pagination.el=c),h.init(),h.render(),h.update()),v&&(e.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-scrollbar"),l.part.add("scrollbar"),e.el.appendChild(l)),l&&(u.scrollbar.el=l),y.init(),y.updateSize(),y.setTranslate()),E&&(e.isElement&&((!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-next"),s.innerHTML=e.hostEl.constructor.nextButtonSvg,s.part.add("button-next"),e.el.appendChild(s)),(!a||typeof a=="str
177ing")&&(a=document.createElement("div"),a.classList.add("swiper-button-prev"),a.innerHTML=e.hostEl.constructor.prevButtonSvg,a.part.add("button-prev"),e.el.appendChild(a))),s&&(u.navigation.nextEl=s),a&&(u.navigation.prevEl=a),p.init(),p.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=i.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=i.allowSlidePrev),r.includes("direction")&&e.changeDirection(i.direction,!1),(N||_)&&e.loopDestroy(),(S||_)&&e.loopCreate(),e.update()}function Sme(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const n={on:{}},i={},r={};um(n,TE),n._emitClasses=!0,n.init=!1;const s={},a=uz.map(c=>c.replace(/_/,"")),l=Object.assign({},t);return Object.keys(l).forEach(c=>{typeof t[c]>"u"||(a.indexOf(c)>=0?Wh(t[c])?(n[c]={},r[c]={},um(n[c],t[c]),um(r[c],t[c])):(n[c]=t[c],r[c]=t[c]):c.search(/on[A-Z]/)===0&&typeof t[c]=="function"?e?i[`${c[2].toLowerCase()}${c.substr(3)}`]=t[c]:n.on[`${c[2].toLowerCase()}${c.substr(3)}`]=t[c]:s[c]=t[c])}),["navigation","pagination","scrollbar"].forEach(c=>{n[c]===!0&&(n[c]={}),n[c]===!1&&delete n[c]}),{params:n,passedParams:r,rest:s,events:i}}function Cme(t,e){let{el:n,nextEl:i,prevEl:r,paginationEl:s,scrollbarEl:a,swiper:l}=t;hz(e)&&i&&r&&(l.params.navigation.nextEl=i,l.originalParams.navigation.nextEl=i,l.params.navigation.prevEl=r,l.originalParams.navigation.prevEl=r),pz(e)&&s&&(l.params.pagination.el=s,l.originalParams.pagination.el=s),mz(e)&&a&&(l.params.scrollbar.el=a,l.originalParams.scrollbar.el=a),l.init(n)}function jme(t,e,n,i,r){const s=[];if(!e)return s;const a=c=>{s.indexOf(c)<0&&s.push(c)};if(n&&i){const c=i.map(r),d=n.map(r);c.join("")!==d.join("")&&a("children"),i.length!==n.length&&a("children")}return uz.filter(c=>c[0]==="_").map(c=>c.replace(/_/,"")).forEach(c=>{if(c in t&&c in e)if(Wh(t[c])&&Wh(e[c])){const d=Object.keys(t[c]),u=Object.keys(e[c]);d.length!==u.length?a(c):(d.forEach(h=>{t[c][h]!==e[c][h]&&a(c)}),u.forEach(h=>{t[c][h]!==e[c][h]&&a(c)}))}else t[c]!==e[c]&&a(c)}),s}const Tme=t=>{!t||t.destroyed||!t.params.virtual||t.params.virtual&&!t.params.virtual.enabled||(t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.parallax&&t.params.parallax&&t.params.parallax.enabled&&t.parallax.setTranslate())};function h1(){return h1=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},h1.apply(this,arguments)}function gz(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function xz(t){const e=[];return Ie.Children.toArray(t).forEach(n=>{gz(n)?e.push(n):n.props&&n.props.children&&xz(n.props.children).forEach(i=>e.push(i))}),e}function Pme(t){const e=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return Ie.Children.toArray(t).forEach(i=>{if(gz(i))e.push(i);else if(i.props&&i.props.slot&&n[i.props.slot])n[i.props.slot].push(i);else if(i.props&&i.props.children){const r=xz(i.props.children);r.length>0?r.forEach(s=>e.push(s)):n["container-end"].push(i)}else n["container-end"].push(i)}),{slides:e,slots:n}}function Eme(t,e,n){if(!n)return null;const i=u=>{let h=u;return u<0?h=e.length+u:h>=e.length&&(h=h-e.length),h},r=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:s,to:a}=n,l=t.params.loop?-e.length:0,c=t.params.loop?e.length*2:e.length,d=[];for(let u=l;u<c;u+=1)u>=s&&u<=a&&d.push(e[i(u)]);return d.map((u,h)=>Ie.cloneElement(u,{swiper:t,style:r,key:u.props.virtualIndex||u.key||`slide-${h}`}))}function Cx(t,e){return typeof window>"u"?Z.useEffect(t,e):Z.useLayoutEffect(t,e)}const hL=Z.createContext(null),Ame=Z.createContext(null),aC=Z.forwardRef(function(t,e){let{className:n,tag:i="div",wrapperTag:r="div",children:s,onSwiper:a,...l}=t===void 0?{}:t,c=!1;const[d,u]=Z.useState("swiper"),[h,p]=Z.useState(null),[y,m]=Z.useState(!1),w=Z.useRef(!1),k=Z.useRef(null),b=Z.useRef(null),x=Z.useRef(null),v=Z.useRef(null),E=Z.useRef(null),N=Z.useRef(null),S=Z.useRef(null),_=Z.useRef(null),{params:$,passedParams:V,rest:I,events:A}=Sme(l),{slides:L,slots:T}=Pme(s),g=()=>{m(!y)};
177Object.assign($.on,{_containerClasses(D,M){u(M)}});const f=()=>{Object.assign($.on,A),c=!0;const D={...$};if(delete D.wrapperClass,b.current=new RM(D),b.current.virtual&&b.current.params.virtual.enabled){b.current.virtual.slides=L;const M={cache:!1,slides:L,renderExternal:p,renderExternalUpdate:!1};um(b.current.params.virtual,M),um(b.current.originalParams.virtual,M)}};k.current||f(),b.current&&b.current.on("_beforeBreakpoint",g);const j=()=>{c||!A||!b.current||Object.keys(A).forEach(D=>{b.current.on(D,A[D])})},P=()=>{!A||!b.current||Object.keys(A).forEach(D=>{b.current.off(D,A[D])})};Z.useEffect(()=>()=>{b.current&&b.current.off("_beforeBreakpoint",g)}),Z.useEffect(()=>{!w.current&&b.current&&(b.current.emitSlidesClasses(),w.current=!0)}),Cx(()=>{if(e&&(e.current=k.current),!!k.current)return b.current.destroyed&&f(),Cme({el:k.current,nextEl:E.current,prevEl:N.current,paginationEl:S.current,scrollbarEl:_.current,swiper:b.current},$),a&&!b.current.destroyed&&a(b.current),()=>{b.current&&!b.current.destroyed&&b.current.destroy(!0,!1)}},[]),Cx(()=>{j();const D=jme(V,x.current,L,v.current,M=>M.key);return x.current=V,v.current=L,D.length&&b.current&&!b.current.destroyed&&kme({swiper:b.current,slides:L,passedParams:V,changedParams:D,nextEl:E.current,prevEl:N.current,scrollbarEl:_.current,paginationEl:S.current}),()=>{P()}}),Cx(()=>{Tme(b.current)},[h]);function C(){return $.virtual?Eme(b.current,L,h):L.map((D,M)=>Ie.cloneElement(D,{swiper:b.current,swiperSlideIndex:M}))}return Ie.createElement(i,h1({ref:k,className:fz(`${d}${n?` ${n}`:""}`)},I),Ie.createElement(Ame.Provider,{value:b.current},T["container-start"],Ie.createElement(r,{className:wme($.wrapperClass)},T["wrapper-start"],C(),T["wrapper-end"]),hz($)&&Ie.createElement(Ie.Fragment,null,Ie.createElement("div",{ref:N,className:"swiper-button-prev"}),Ie.createElement("div",{ref:E,className:"swiper-button-next"})),mz($)&&Ie.createElement("div",{ref:_,className:"swiper-scrollbar"}),pz($)&&Ie.createElement("div",{ref:S,className:"swiper-pagination"}),T["container-end"]))});aC.displayName="Swiper";const oC=Z.forwardRef(function(t,e){let{tag:n="div",children:i,className:r="",swiper:s,zoom:a,lazy:l,virtualIndex:c,swiperSlideIndex:d,...u}=t===void 0?{}:t;const h=Z.useRef(null),[p,y]=Z.useState("swiper-slide"),[m,w]=Z.useState(!1);function k(E,N,S){N===h.current&&y(S)}Cx(()=>{if(typeof d<"u"&&(h.current.swiperSlideIndex=d),e&&(e.current=h.current),!(!h.current||!s)){if(s.destroyed){p!=="swiper-slide"&&y("swiper-slide");return}return s.on("_slideClass",k),()=>{s&&s.off("_slideClass",k)}}}),Cx(()=>{s&&h.current&&!s.destroyed&&y(s.getSlideClasses(h.current))},[s]);const b={isActive:p.indexOf("swiper-slide-active")>=0,isVisible:p.indexOf("swiper-slide-visible")>=0,isPrev:p.indexOf("swiper-slide-prev")>=0,isNext:p.indexOf("swiper-slide-next")>=0},x=()=>typeof i=="function"?i(b):i,v=()=>{w(!0)};return Ie.createElement(n,h1({ref:h,className:fz(`${p}${r?` ${r}`:""}`),"data-swiper-slide-index":c,onLoad:v},u),a&&Ie.createElement(hL.Provider,{value:b},Ie.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof a=="number"?a:void 0},x(),l&&!m&&Ie.createElement("div",{className:"swiper-lazy-preloader"}))),!a&&Ie.createElement(hL.Provider,{value:b},x(),l&&!m&&Ie.createElement("div",{className:"swiper-lazy-preloader"})))});oC.displayName="SwiperSlide";const Nme=({serviceCategory:t})=>{const{language:e}=_e(),n=Z.useRef(null),i=()=>{n.current&&n.current.swiper.slidePrev()},r=()=>{n.current&&n.current.swiper.slideNext()};return o.jsx("div",{className:`${t.length>3?"max-w-7xl":t.length>2?"max-w-4xl":"max-w-xl"} flex flex-col w-full justify-center items-center py-4 z-20`,children:o.jsx("div",{className:"w-full",children:o.jsxs(aC,{spaceBetween:50,ref:n,loop:!0,breakpoints:{320:{slidesPerView:1,spaceBetween:10},480:{slidesPerView:t.length>2?2:t.length,spaceBetween:10},768:{slidesPerView:t.length>3?3:t.length,spaceBetween:20},1280:{slidesPerView:t.length>5?5:t.length,spaceBetween:30}},children:[o.jsxs("div",{className:`${(t.length??0)<=5?"hidden":""} absolute w-full max-w-7xl flex justify-between items-center z-50 top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2`,children:[o.jsx("button",{className:"text-white md:-ml-3.5",onClick:i,children:o.jsx("img",{src:"/svg/arrow/arrow-left-white.svg",alt:"left",className:"w-12 h-12"})}),o.jsx("button",{className:"text-white md:-mr-3.5",onClick:r,children:o.jsx("img",{src:"/svg/arrow/arrow-right-white.svg",alt:"right",className:"w-12 h-12"})})]}),t.map(s=>o.jsx(oC,{children:o.jsx("a",{href:`/about-us/services/disaster-management/${s.service_category_slug}`,className:"cursor-pointer",children:o.jsxs("div",{className:"flex flex-col gap-y-4 justify-center items-center text-center pt-8",children:[o.jsx("div",{className:"w-40 h-40 rounded-full border-4 border-white flex justify-center items-center overflow-hidden",children:o.jsx("img",{src:`${ze}/${s.icon_media.path}`,alt:s.service_category_title,className:"h-full w-auto max-w-none"})}),o.jsx("p",{className:"text-pmi-white text-lg",children:s&&e=="en"?s.service_category_title:s.service_category_title_indo})]})})},s.service_category_id))]})})})},OM=({videoUrl:t,classNames:e})=>o.jsx("iframe",{className:`w-full ${e}`,src:t,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"Embedded video"}),Mme=({serviceHero:t,description:e,disasterManagement:n})=>{var s;const{t:i}=Se(["common"]),{language:r}=_e();return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap items-center justify-center",children:[o.jsx(Sv,{image:`${ze}/${t.image}`,category:(t&&r=="en"?t.subtitle:t.subtitle_indo)||i("menu:services"),title:(t&&r=="en"?t.title:t.title_indo)||i("common:disasterManagement.title"),subtitle:(t&&r=="en"?t.desc:t.desc_indo)||i("common:disasterManagement.subtitle")}),o.jsx(sC,{title:i("helpSection.title"),description:i("helpSection.description"),button:i("helpSection.contactUs")}),o.jsx("div",{className:"w-full bg-pmi-gray-light mt-4",children:o.jsxs("div",{className:"max-w-7xl flex flex-col md:flex-row justify-center items-center gap-10 mx-auto py-8 px-0 lg:px-12 border-b",children:[o.jsxs("div",{className:"relative max-w-xl space-y-6 px-2 lg:px-6 py-8",children:[o.jsx("h4",{className:"font-semibold text-xl text-pmi-black",children:(e&&r=="en"?e.title:e.title_indo)||i("common:disasterManagement.titleIntroduction")}),o.jsx(Et,{content:(e&&r=="en"?e.desc:e.desc_indo)||i("common:disasterManagement.introduction")})]}),o.jsx("div",{className:"w-full max-h-72 px-2",children:o.jsx(OM,{videoUrl:e.media?(s=e.media)==null?void 0:s.external_url:"",classNames:"h-72 rounded-2xl"})})]})}),o.jsx("div",{className:"w-full bg-pmi-red bg-gradient-to-l from-pmi-red-light to-pmi-red-dark",children:o.jsxs("div",{className:"flex flex-col justify-center items-center gap-4 mx-auto py-2 px-0 lg:px-12 border-b",children:[o.jsxs("div",{className:"relative max-w-2xl space-y-4 px-2 lg:px-6 py-8 text-center",children:[o.jsx("h4",{className:"font-semibold text-3xl text-pmi-white",children:(n&&r=="en"?n.title:n.title_indo)||i("common:disasterManagement.responseSection.title")}),o.jsx("p",{className:"font-normal text-base text-pmi-white",children:(n&&r=="en"?n.desc:n.desc_indo)||i("common:disasterManagement.responseSection.description")})]}),o.jsx(Nme,{serviceCategory:n.category??[]})]})})]})},Dme=()=>{const{t}=Se(["common"]),e=t("common:disasterManagement.pmiTask.sections.before.tasks",{returnObjects:!0}),n=t("common:disasterManagement.pmiTask.sections.during.tasks",{returnObjects:!0}),i=t("common:disasterManagement.pmiTask.sections.after.tasks",{returnObjects:!0});return o.jsx("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center px-2 md:px-0",children:o.jsxs("div",{className:"w-full flex flex-col justify-center items-center bg-pmi-gray-light py-16 px-4",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center",children:t("common:disasterManagement.pmiTask.title")}),o.jsx("p",{className:"font-light text-xl text-pmi-gray text-center max-w-screen-lg",children:t("common:disasterManagement.pmiTask.subtitle")}),o.jsxs("div",{className:"flex flex-col lg:flex-row gap-8 mt-6",children:[o.jsxs("div",{className:"border rounded-2xl max-w-sm bg-white shadow-lg",children:[o.jsx("div",{className:"bg-pmi-red-dark bg-gradient-to-r from-pmi-red-dark to-pmi-red-light rounded-t-2xl py-2",children:o.jsx("h3",{className:"font-bold text-center text-xl text-pmi-white",children:t("common:disasterManagement.pmiTask.sections.before.title")})}),o.jsx("ul",{className:"list-disc marker:text-pmi-red space-y-8 px-12 py-6",children:e.map((r,s)=>o.jsxs("li",{className:"relative",children:[o.jsx("p",{className:"font-medium text-sm text-pmi-red",children:r.title}),o.jsx("p",{className:"font-light text-xs text-pmi-gray",children:r.description})]},s))})]}),o.jsxs("div",{className:"border rounded-2xl max-w-sm bg-white shadow-lg",children:[o.jsx("div",{className:"bg-pmi-red-dark bg-gradient-to-r from-pmi-red-dark to-pmi-red-light rounded-t-2xl py-2",children:o.jsx("h3",{className:"font-bold text-center text-xl text-pmi-white",children:t("common:disasterManagement.pmiTask.sections.during.title")})}),o.jsx("ul",{className:"list-disc marker:text-pmi-red space-y-8 px-12 py-6",children:n.map((r,s)=>o.jsxs("li",{className:"relative",children:[o.jsx("p",{className:"font-medium text-sm text-pmi-red",children:r.title}),o.jsx("p",{className:"font-light text-xs text-pmi-gray",children:r.description})]},s))})]}),o.jsxs("div",{className:"border rounded-2xl max-w-sm bg-white shadow-lg",children:[o.jsx("div",{className:"bg-pmi-red-dark bg-gradient-to-r from-pmi-red-dark to-pmi-red-light rounded-t-2xl py-2",children:o.jsx("h3",{className:"font-bold text-center text-xl text-pmi-white",children:t("common:disasterManagement.pmiTask.sections.after.title")})}),o.jsx("ul",{className:"list-disc marker:text-pmi-red space-y-8 px-12 py-6",children:i.map((r,s)=>o.jsxs("li",{className:"relative",children:[o.jsx("p",{className:"font-medium text-sm text-pmi-red",children:r.title}),o.jsx("p",{className:"font-light text-xs text-pmi-gray",children:r.description})]},s))})]})]})]})})},_me=async()=>{const t=await He.get("/api/disaster-management");
177if(!t)throw new Error("Network response was not ok");return t==null?void 0:t.data},Ime=async()=>{const t=await He.get("/api/health-social");if(!t)throw new Error("Network response was not ok");return t==null?void 0:t.data},Rme=async()=>{const t=await He.get("/api/international");if(!t)throw new Error("Network response was not ok");return t==null?void 0:t.data},Ome=async t=>{const e=await He.get(`/api/service-category/detail/${t}`);if(!e)throw new Error("Network response was not ok");return e==null?void 0:e.data},Lme=async t=>{const e=await He.get(`/api/service-response/detail/${t}`);if(!e)throw new Error("Network response was not ok");return e==null?void 0:e.data},Fme=()=>Ge({queryKey:["disaster_management"],queryFn:_me,staleTime:1e3*60*60,gcTime:1e3*60*60}),Bme=()=>Ge({queryKey:["health_social"],queryFn:Ime,staleTime:1e3*60*60,gcTime:1e3*60*60}),$me=()=>Ge({queryKey:["international"],queryFn:Rme,staleTime:1e3*60*60,gcTime:1e3*60*60}),yz=t=>Ge({queryKey:["service_category",t],queryFn:()=>Ome(t),staleTime:1e3*60*60,gcTime:1e3*60*60}),Hme=t=>Ge({queryKey:["service_response",t],queryFn:()=>Lme(t),staleTime:1e3*60*60,gcTime:1e3*60*60}),zme=()=>{const{t}=Se(["menu","common"]),{data:e,isLoading:n,isError:i}=Fme();if(i)return o.jsx(xi,{});if(!e||n)return null;const r=[{label:t("menu:home"),path:"/"},{label:t("menu:services"),path:"#"},{label:t("menu:disasterManagement")}];return o.jsxs(Ye,{type:"default",title:"disasterManagement",breadcrumbs:r,children:[o.jsx(Mme,{serviceHero:e==null?void 0:e.section_1,description:e==null?void 0:e.section_2,disasterManagement:e==null?void 0:e.section_3}),o.jsx(Dme,{})]})},Vme=({serviceCategory:t})=>{var a,l,c,d,u,h,p,y,m;const{t:e}=Se(["common"]),{language:n}=_e(),i=Z.useRef(null),r=()=>{i.current&&i.current.swiper.slidePrev()},s=()=>{i.current&&i.current.swiper.slideNext()};return o.jsx("div",{className:"w-full bg-pmi-red bg-gradient-to-l from-pmi-red-light to-pmi-red-dark py-8",children:o.jsxs("div",{className:"flex flex-col justify-center items-center gap-4 mx-auto py-2 px-0 lg:px-12",children:[o.jsxs("div",{className:"relative max-w-2xl space-y-4 px-2 lg:px-6 text-center",children:[o.jsx("h4",{className:"font-semibold text-3xl text-pmi-white",children:e("common:healthSocialServices.socialServicesKeyFunctions.title")}),o.jsx("p",{className:"font-normal text-base text-pmi-white",children:e("common:healthSocialServices.socialServicesKeyFunctions.descriptions")})]}),o.jsx("div",{className:`w-full ${(((a=t.category)==null?void 0:a.length)??0)>3?"max-w-7xl":(((l=t.category)==null?void 0:l.length)??0)>2?"max-w-4xl":"max-w-xl"} flex flex-col md:flex-row justify-center items-center gap-10 py-12`,children:o.jsx("div",{className:"w-full",children:o.jsxs(aC,{ref:i,loop:!0,breakpoints:{320:{slidesPerView:1},480:{slidesPerView:(((c=t.category)==null?void 0:c.length)??0)>2?2:(d=t.category)==null?void 0:d.length},768:{slidesPerView:(((u=t.category)==null?void 0:u.length)??0)>3?3:(h=t.category)==null?void 0:h.length},1280:{slidesPerView:(((p=t.category)==null?void 0:p.length)??0)>5?5:(y=t.category)==null?void 0:y.length}},children:[o.jsxs("div",{className:`${(((m=t.category)==null?void 0:m.length)??0)<=5?"hidden":""} absolute w-full max-w-7xl flex justify-between items-center z-50 top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2`,children:[o.jsx("button",{className:"text-white md:-ml-3.5",onClick:r,children:o.jsx("img",{src:"/svg/arrow/arrow-left-white.svg",alt:"left",className:"w-12 h-12"})}),o.jsx("button",{className:"text-white md:-mr-3.5",onClick:s,children:o.jsx("img",{src:"/svg/arrow/arrow-right-white.svg",alt:"right",className:"w-12 h-12"})})]}),t.category&&t.category.map(w=>o.jsx(oC,{children:o.jsx("div",{className:"flex justify-center items-center",children:o.jsx("a",{href:`/about-us/services/health-social-services/${w.service_category_slug}`,className:"cursor-pointer",children:o.jsxs("div",{className:"flex flex-col gap-y-4 justify-center items-center text-center pt-8 w-fit",children:[o.jsx("div",{className:"w-40 h-40 rounded-full border-4 border-white flex justify-center items-center overflow-hidden",children:o.jsx("img",{src:`${ze}/${w.icon_media.path}`,alt:w.service_category_title,className:"h-full w-auto max-w-none"})}),o.jsx("p",{className:"text-pmi-white text-lg",children:w&&n=="en"?w.service_category_title:w.service_category_title_indo})]})})})},w.service_category_id))]})})})]})})},lC=({title:t,description:e,button:n,color:i="bg-pmi-gray-light",url:r="#"})=>o.jsxs("div",{className:`w-full ${i} flex flex-col flex-wrap gap-4 items-center justify-center py-14 px-4 md:px-20`,children:[o.jsx("h3",{className:"font-medium text-4xl text-center",children:t}),o.jsx("p",{className:"font-normal text-lg text-pmi-gray text-center max-w-2xl",children:e}),o.jsx("div",{className:"flex flex-col md:flex-row justify-center gap-8 my-4 px-4 md:px-0 max-w-screen-xl",children:o.jsx("a",{href:r,className:"bg-pmi-red text-white text-2xl px-2 md:px-20 py-4 rounded-md",children:n})})]}),Li=({text:t,highlights:e,links:n=[],color:i="text-pmi-red"})=>{const r=e.map(l=>l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),s=new RegExp(`(${r.join("|")})`,"gi"),a=t.split(s);return o.jsx("p",{children:a.map((l,c)=>e.some(d=>d.toLowerCase()===l.toLowerCase())?n[c]?o.jsx("a",{href:n[c],target:"_blank",className:`${i} cursor-pointer font-bold`,children:l},c):o.jsx("span",{className:`${i} font-semibold`,children:l},c):l)})},Ume=({serviceHero:t,description:e,functions:n})=>{var s;const{t:i}=Se(["common"]),{language:r}=_e();return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap items-center justify-center",children:[o.jsx(Sv,{image:`${ze}/${t.image}`,category:(t&&r=="en"?t.subtitle:t.subtitle_indo)||i("menu:services"),title:(t&&r=="en"?t.title:t.title_indo)||i("common:healthSocialServices.title"),subtitle:(t&&r=="en"?t.desc:t.desc_indo)||i("common:healthSocialServices.description")}),o.jsx(sC,{title:i("helpSection.title"),description:i("helpSection.description"),button:i("helpSection.contactUs")}),o.jsx("div",{className:"w-full bg-pmi-gray-light mt-4",children:o.jsxs("div",{className:"max-w-7xl flex flex-col md:flex-row justify-center items-center gap-10 mx-auto py-8 px-0 lg:px-12 border-b",children:[o.jsxs("div",{className:"relative max-w-xl space-y-6 px-2 lg:px-6 py-8",children:[o.jsx("h4",{className:"font-semibold text-xl text-pmi-black",children:(e&&r=="en"?e.title:e.title_indo)||i("common:healthSocialServices.subtitle")}),o.jsx(Et,{content:(e&&r=="en"?e.desc:e.desc_indo)||i("common:healthSocialServices.intro")})]}),o.jsx("div",{className:"w-full max-h-72 px-2",children:o.jsx(OM,{videoUrl:e.media?(s=e.media)==null?void 0:s.external_url:"",classNames:"h-72 rounded-2xl"})})]})}),o.jsx(Vme,{serviceCategory:n}),o.jsx(lC,{title:o.jsx(Li,{text:i("common:healthSocialServices.learnMore"),highlights:["Volunteering","Relawan"]}),description:o.jsxs(o.Fragment,{children:[o.jsx(Li,{text:i("common:healthSocialServices.visitVolunteersPage"),highlights:["
177Sign Up","Daftar"]}),o.jsx(Li,{text:i("common:healthSocialServices.skillsCanSaveLives"),highlights:[]}),o.jsx(Li,{text:i("common:healthSocialServices.joinUs"),highlights:["Join us in making","Bergabunglah dengan kami untuk membuat"]})]}),button:i("common:healthSocialServices.donateNow")})]})},Wme=()=>{const{t}=Se(["menu","common"]),{data:e,isLoading:n,isError:i}=Bme();if(i)return o.jsx(xi,{});if(!e||n)return null;const r=[{label:t("menu:home"),path:"/"},{label:t("menu:services"),path:"#"},{label:t("menu:healthSocialServices")}];return o.jsx(Ye,{type:"default",title:"healthSocialServices",breadcrumbs:r,children:o.jsx(Ume,{serviceHero:e==null?void 0:e.section_1,description:e==null?void 0:e.section_2,functions:e==null?void 0:e.section_3})})},Gme=({delivery:t})=>{var s,a,l,c,d,u,h,p,y;const{language:e}=_e(),n=Z.useRef(null),i=()=>{n.current&&n.current.swiper.slidePrev()},r=()=>{n.current&&n.current.swiper.slideNext()};return o.jsx("div",{className:"w-full bg-pmi-red bg-gradient-to-l from-pmi-red-light to-pmi-red-dark py-8",children:o.jsxs("div",{className:"flex flex-col justify-center items-center gap-4 mx-auto py-2 px-2",children:[o.jsxs("div",{className:"relative w-full space-y-4 px-2 lg:px-6 text-center max-w-5xl",children:[o.jsx("h4",{className:"font-semibold text-3xl text-pmi-white",children:e==="en"?t==null?void 0:t.title:t==null?void 0:t.title_indo}),o.jsx("p",{className:"font-normal text-base text-pmi-white",children:e==="en"?t==null?void 0:t.desc:t==null?void 0:t.desc_indo})]}),o.jsx("div",{className:`w-full ${(((s=t.category)==null?void 0:s.length)??0)>3?"max-w-7xl":(((a=t.category)==null?void 0:a.length)??0)>2?"max-w-4xl":"max-w-xl"} flex flex-col md:flex-row justify-center items-center gap-8 py-12`,children:o.jsx("div",{className:"w-full",children:o.jsxs(aC,{loop:!0,breakpoints:{320:{slidesPerView:1},480:{slidesPerView:(((l=t==null?void 0:t.category)==null?void 0:l.length)??0)>2?2:(c=t==null?void 0:t.category)==null?void 0:c.length},768:{slidesPerView:(((d=t==null?void 0:t.category)==null?void 0:d.length)??0)>3?3:(u=t==null?void 0:t.category)==null?void 0:u.length},1280:{slidesPerView:(((h=t==null?void 0:t.category)==null?void 0:h.length)??0)>5?5:(p=t==null?void 0:t.category)==null?void 0:p.length}},ref:n,children:[o.jsxs("div",{className:`${(((y=t==null?void 0:t.category)==null?void 0:y.length)??0)<=5?"hidden":""} absolute w-full max-w-7xl flex justify-between items-center z-50 top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2`,children:[o.jsx("button",{className:"text-white md:-ml-3.5",onClick:i,children:o.jsx("img",{src:"/svg/arrow/arrow-left-white.svg",alt:"left",className:"w-12 h-12"})}),o.jsx("button",{className:"text-white md:-mr-3.5",onClick:r,children:o.jsx("img",{src:"/svg/arrow/arrow-right-white.svg",alt:"right",className:"w-12 h-12"})})]}),(t==null?void 0:t.category)&&(t==null?void 0:t.category.map(m=>o.jsx(oC,{children:o.jsx("div",{className:"flex justify-center items-center",children:o.jsx("a",{href:`/about-us/services/health-social-services/${m.service_category_slug}`,className:"cursor-pointer",children:o.jsxs("div",{className:"flex flex-col gap-y-4 justify-center items-center text-center pt-8 w-fit",children:[o.jsx("div",{className:"w-40 h-40 rounded-full border-4 border-white flex justify-center items-center overflow-hidden",children:o.jsx("img",{src:`${ze}/${m.icon_media.path}`,alt:m.service_category_title,className:"h-full w-auto max-w-none"})}),o.jsx("p",{className:"text-pmi-white text-lg",children:m&&e=="en"?m.service_category_title:m.service_category_title_indo})]})})})},m.service_category_id)))]})})})]})})},qme=({serviceHero:t,description:e,delivery:n})=>{var s;const{t:i}=Se(["common"]),{language:r}=_e();return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap items-center justify-center",children:[o.jsx(Sv,{image:`${ze}/${t.image}`,category:(t&&r=="en"?t.subtitle:t.subtitle_indo)||i("menu:services"),title:(t&&r=="en"?t.title:t.title_indo)||i("common:internationalServices.title"),subtitle:(t&&r=="en"?t.desc:t.desc_indo)||i("common:internationalServices.subtitle")}),o.jsx(sC,{title:i("helpSection.title"),description:i("helpSection.description"),button:i("helpSection.contactUs")}),o.jsx("div",{className:"w-full bg-pmi-gray-light mt-4",children:o.jsxs("div",{className:"max-w-7xl flex flex-col md:flex-row justify-center items-center gap-10 mx-auto py-8 px-0 lg:px-12 border-b",children:[o.jsxs("div",{className:"relative max-w-xl space-y-6 px-2 lg:px-6 py-8",children:[o.jsx("h4",{className:"font-semibold text-xl text-pmi-black",children:(e&&r=="en"?e.title:e.title_indo)||i("common:internationalServices.subtitle")}),o.jsx(Et,{content:(e&&r=="en"?e.desc:e.desc_indo)||i("common:internationalServices.intro")})]}),o.jsx("div",{className:"w-full max-h-72 px-2",children:o.jsx(OM,{videoUrl:e.media?(s=e.media)==null?void 0:s.external_url:"",classNames:"h-72 rounded-2xl"})})]})}),o.jsx(Gme,{delivery:n}),o.jsx(lC,{title:o.jsx(Li,{text:i("common:healthSocialServices.learnMore"),highlights:["Volunteering","Relawan"]}),description:o.jsxs(o.Fragment,{children:[o.jsx(Li,{text:i("common:healthSocialServices.visitVolunteersPage"),highlights:["
177Sign Up","Daftar"]}),o.jsx(Li,{text:i("common:healthSocialServices.skillsCanSaveLives"),highlights:[]}),o.jsx(Li,{text:i("common:healthSocialServices.joinUs"),highlights:["Join us in making","Bergabunglah dengan kami untuk membuat"]})]}),url:"/donation/monetary/donate-now",button:i("common:healthSocialServices.donateNow")})]})},Kme=()=>{const{t}=Se(["menu","common"]),{data:e,isLoading:n,isError:i}=$me();if(i)return o.jsx(xi,{});if(!e||n)return null;const r=[{label:t("menu:home"),path:"/"},{label:t("menu:services"),path:"#"},{label:t("menu:internationalServices")}];return o.jsx(Ye,{type:"default",title:"internationalServices",breadcrumbs:r,children:o.jsx(qme,{serviceHero:e==null?void 0:e.section_1,description:e==null?void 0:e.section_2,delivery:e==null?void 0:e.section_3})})},Yme=()=>{const{t}=Se(["common"]);return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-2 lg:py-4 px-4 md:px-20",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center",children:t("common:programs.title")}),o.jsx("p",{className:"font-light text-lg text-pmi-gray text-center",children:t("common:programs.subtitle")}),o.jsx("div",{className:"w-full max-w-2xl mx-auto py-4",children:o.jsx(up,{placeholder:t("common:programs.searchPlaceholder")})})]})},Xme=(t,e,n)=>{if(n){t.preventDefault();return}t.preventDefault(),Ld.event({category:"Download",action:"click_download_button",label:"User downloaded file"}),window.open(e,"_blank")},sc=({link:t="#",text:e,className:n="bg-pmi-green text-sm text-pmi-white mx-auto px-4 py-2 rounded-lg hover:opacity-75",disabled:i=!1})=>{const{t:r}=Se(["common"]);return o.jsx("a",{href:t,className:n,onClick:s=>Xme(s,t,i),children:e||r("download")})},Jme=({data:t})=>{var i,r,s,a;const{t:e}=Se(["common"]),{language:n}=_e();return o.jsxs("div",{className:"w-full bg-white rounded-sm shadow-md overflow-hidden lg:flex",children:[o.jsx("div",{className:"w-full xl:w-1/2",children:o.jsx(or,{className:"w-full h-full max-h-64 lg:max-h-[28rem] object-cover",src:`${ze}/${t.image_media&&t.image_media.path}`,alt:n==="en"?t.title:t.title_indo})}),o.jsxs("div",{className:"w-full xl:w-1/2 px-4 lg:px-8 py-8 space-y-4",children:[o.jsx("h2",{className:"uppercase tracking-wide text-xl font-medium",children:n==="en"?t.title:t.title_indo}),o.jsxs("div",{className:"grid grid-cols-[auto_max-content_auto] lg:grid-cols-[auto_auto_auto] gap-x-4 gap-y-1 text-pmi-gray",children:[o.jsx("span",{children:e("common:programs.year")}),o.jsx("span",{children:":"}),o.jsx("span",{children:Lne(t.start_period)}),o.jsx("span",{children:e("common:programs.period")}),o.jsx("span",{children:":"}),o.jsx("span",{children:One(t.start_period,t.end_period,n)}),o.jsx("span",{children:e("common:programs.area")}),o.jsx("span",{children:":"}),o.jsx("span",{children:t.area}),o.jsx("span",{children:e("common:programs.beneficiary")}),o.jsx("span",{children:":"}),o.jsx("span",{children:t.beneficiary}),o.jsx("span",{children:e("common:programs.supportPartner")}),o.jsx("span",{children:":"}),o.jsx("span",{children:t.partner})]}),o.jsxs("div",{className:"space-y-1 mb-6",children:[o.jsxs("p",{className:"text-pmi-black",children:[" ",e("common:programs:background")]}),o.jsx("p",{className:"text-justify text-pmi-gray leading-6 text-sm",children:n==="en"?t.background:t.background_indo})]}),o.jsx(sc,{className:`${(i=t==null?void 0:t.doc_media)!=null&&i.path?"bg-pmi-red":"bg-pmi-red-dark"} w-full inline-block text-white py-1 font-bold text-center rounded-md`,text:e("common:programs:downloadReport"),link:(r=t==null?void 0:t.doc_media)!=null&&r.path?`${ze}/${(s=t==null?void 0:t.doc_media)==null?void 0:s.path}`:"#",disabled:!((a=t==null?void 0:t.doc_media)!=null&&a.path)})]})]})},Qme=async()=>{const t=an({void:0}),e=await He.get(`/api/program-categories${t}`);if(!e)throw new Error("Network response was not ok");return e.data},Zme=async(t,e,n,i)=>{const r=an({void:0,category:t,keyword:e,lang:n||null,page:i||null,paginate:1}),s=await He.get(`/api/programs${r}`);if(!s)throw new Error("Network response was not ok");return s.data},efe=()=>Ge({queryKey:["programs_category"],queryFn:Qme,staleTime:1e3*60*60,gcTime:1e3*60*60}),tfe=(t,e,n,i)=>Ge({queryKey:["programs",t,e],queryFn:()=>Zme(t,e,n,i),staleTime:1e3*60*60,enabled:!1}),nfe=()=>{const{t}=Se(["common"]),[e,n]=Z.useState(1),{language:i}=_e(),{searchTerm:r}=kr(),[s,a]=Z.useState(""),{data:l}=efe(),{data:c,refetch:d}=tfe(s,r,i,e);Z.useEffect(()=>{l&&l.length>0&&a(l[0].program_category_id)},[l]),Z.useEffect(()=>{d()},[s,r,i,e]);const u=h=>{n(h)};return o.jsxs("div",{className:"relative space-y-12 pb-8 px-4 xl:px-0",children:[o.jsx("div",{className:"w-full max-w-2xl mx-auto flex flex-col md:flex-row justify-center items-center gap-2 p-2 bg-pmi-white border shadow-xl rounded-xl",children:l&&l.map((h,p)=>o.jsx("button",{className:`w-full px-10 py-2 border rounded-md font-semibold ${s===h.program_category_id?"bg-pmi-red text-pmi-white":"text-pmi-gray"}`,onClick:()=>a(h.program_category_id),children:i==="en"?h.title:h.title_indo},p))}),o.jsxs("div",{className:"w-full max-w-5xl relative space-y-8 mx-auto",children:[c&&c.data.length===0&&o.jsx("p",{className:"text-center text-lg text-pmi-gray",children:t("common:noData")}),c&&c.data.map((h,p)=>o.jsx(Jme,{data:h},p))]}),o.jsx("div",{className:"w-full max-w-5xl mx-auto border-b border-pmi-gray-lighter",children:o.jsx("p",{className:"w-full text-pmi-gray text-sm font-light mt-8",children:t("common:pagination",{start:(c==null?void 0:c.from)||
1770,end:(c==null?void 0:c.to)||0,total:(c==null?void 0:c.total)||0})})}),o.jsx("div",{className:"flex justify-center",children:c&&c.data.length>0&&o.jsx(Hi,{links:c.links,onPageChange:u})})]})},ife=()=>{const{t}=Se(["menu"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:programs")}];return Z.useEffect(()=>{},[]),o.jsxs(Ye,{type:"default",title:"programs",breadcrumbs:e,children:[o.jsx(Yme,{}),o.jsx(nfe,{})]})},rfe=({title:t,description:e,image:n,customClassTitle:i="font-bold text-lg text-pmi-black"})=>{const{t:r}=Se(["common"]);return o.jsxs("div",{className:"relative w-full max-w-lg lg:max-w-md rounded-lg overflow-hidden shadow-xl bg-pmi-gray-light",children:[o.jsx("img",{className:"w-full max-h-48 object-cover",src:n,alt:t||"offer"}),o.jsx("div",{className:`${e?"px-6":"px-4"} py-2`,children:o.jsx("div",{className:"relative text-center",children:o.jsx("p",{className:i,children:t})})}),e&&o.jsx("div",{className:"px-6 pt-2 pb-8 h-28",children:o.jsxs("p",{className:" text-pmi-gray text-sm max-w-md text-justify",children:[o.jsx("span",{className:"text-pmi-black",children:r("common:healthSocialServices.objective")}),": ",e]})})]})},sfe=({supports:t})=>{const{t:e}=Se(["common"]),{language:n}=_e(),{refetch:i}=XN("Volunteer","3");return Z.useEffect(()=>{i()}),o.jsxs("div",{className:"flex flex-col flex-wrap gap-4 items-center justify-center mt-8 py-8 px-4 xl:px-20",children:[o.jsx("h3",{className:"font-bold text-3xl text-pmi-black text-center",children:e("common:earthquakeRelief.howYourSupportHelps.title")}),o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 justify-items-center gap-8 my-4 px-4 md:px-0 max-w-6xl",children:t.map((r,s)=>o.jsx("a",{href:"#",className:" w-full cursor-pointer",children:o.jsx(rfe,{title:n==="en"?r.media_name:r.media_name_indo,image:`${ze}/${r.path}`,customClassTitle:"font-normal text-base text-pmi-black"},s)}))})]})},afe=({imageUrl:t,title:e,content:n,url:i})=>{const{t:r}=Se(["common"]);return o.jsxs("div",{className:"w-full bg-white border rounded-md shadow-md drop-shadow-md overflow-hidden flex",children:[o.jsx("div",{className:"w-full max-w-[21rem] h-72",children:o.jsx(or,{className:"w-full h-full xl:min-h-72 object-cover",src:t||"",alt:e||"Earthquake image"})}),o.jsxs("div",{className:"w-full px-8 py-4 space-y-4",children:[o.jsx("h3",{className:"uppercase tracking-wide text-xl font-medium",children:e}),o.jsx("div",{className:"mt-2 text-pmi-gray font-normal text-base text-justify",children:o.jsx("div",{className:"line-clamp-6",dangerouslySetInnerHTML:{__html:n}})}),o.jsx("a",{href:i,className:"absolute right-8 bg-pmi-red text-pmi-white py-2 px-10 rounded-md",children:r("common:readMore")})]})]})},ofe=({data:t,category_slug:e,title:n,title_indo:i,servicePath:r})=>{const{t:s}=Se(["common"]),{language:a}=_e();return o.jsx("div",{className:"w-full bg-pmi-gray-light",children:o.jsxs("div",{className:"flex flex-col flex-wrap gap-8 items-center justify-center mt-8 py-8 px-4 xl:px-20",children:[o.jsx("h3",{className:"font-bold text-3xl text-pmi-black text-center",children:a==="en"?`${s("common:earthquakeRelief.recent")} ${n} ${s("common:earthquakeRelief.response")}`:`${s("common:earthquakeRelief.response")} ${s("common:earthquakeRelief.recent")} ${i}`}),o.jsx("div",{className:"w-full max-w-4xl relative space-y-4 mx-auto px-4 md:px-0",children:t&&t.map((l,c)=>o.jsx(afe,{title:a==="en"?l.service_response_title:l.service_response_title_indo,imageUrl:`${ze}/${l.image_media.path}`,content:a==="en"?l.service_response_desc:l.service_response_desc_indo,url:`${r}/${e}/${l.service_response_slug}`},c))})]})})},lfe=({data:t,servicePath:e})=>{const{t:n}=Se(["common"]),{language:i}=_e();return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap items-center justify-center",children:[o.jsx(Sv,{image:`${ze}/${t.background_media.path}`,category:"",title:i==="en"?t==null?void 0:t.service_category_title:t==null?void 0:t.service_category_title_indo,subtitle:i==="en"?t==null?void 0:t.service_category_desc:t==null?void 0:t.service_category_desc_indo}),o.jsx(sC,{title:n("helpSection.title"),description:n("helpSection.description"),button:n("helpSection.contactUs")}),o.jsx(sfe,{supports:t.documentation??[]}),o.jsx(ofe,{data:t.service_response??[],servicePath:e,category_slug:t.service_category_slug,title:(t==null?void 0:t.service_category_title)??"",title_indo:t==null?void 0:t.service_category_title_indo}),o.jsx(lC,{title:o.jsx(Li,{text:n("common:earthquakeRelief.howToContribute.title"),highlights:["Contribute","Berkontribusi"]}),description:o.jsxs(o.Fragment,{children:[o.jsx(Li,{text:n("common:earthquakeRelief.howToContribute.description"),highlights:[]}),o.jsx("span",{className:"italic font-normal text-pmi-red",children:n("common:earthquakeRelief.howToContribute.subtitle")})]}),button:n("common:earthquakeRelief.howToContribute.donateNow"),color:"bg-pmi-white"})]})},G2=({breadcrumbText:t,breadcrumbPath:e})=>{const{t:n}=Se(["menu","common"]),{id:i}=ni(),{language:r}=_e(),{data:s,isLoading:a,isError:l}=yz(i||"");if(l)return o.jsx(xi,{});if(!s||a)return null;const c=[{label:n("menu:home"),path:"/"},{label:n("menu:services"),path:"#"},{label:n(`menu:${t}`),path:e},{label:r==="en"?s==null?void 0:s.service_category_title:s==null?void 0:s.service_category_title_indo}];return o.jsx(Ye,{type:"default",title:t,breadcrumbs:c,children:o.jsx(lfe,{data:s,servicePath:e})})},cfe=({response:t})=>{const{language:e}=_e();return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-8 px-2",children:[o.jsx("h2",{className:"font-bold text-4xl text-pmi-red text-center",children:e==="en"?t.service_response_title:t.service_response_title_indo}),o.jsx("div",{className:"max-w-4xl space-y-6 divide-y border-b",children:o.jsx("div",{className:"flex flex-col md:flex-row justify-center items-center gap-8 mx-auto py-8",children:o.jsxs("div",{className:"relative space-y-6",children:[o.jsx(or,{src:`${ze}/${t.image_media.path}`,alt:e==="en"?t.service_response_title:t.service_response_title_indo,className:"w-full md:min-h-72"}
177),o.jsx(Et,{customClassName:"text-justify text-pmi-gray leading-6 space-y-4",content:e==="en"?t.service_response_desc:t.service_response_desc_indo})]})})})]})},dfe=({response:t})=>{var s,a;const{t:e}=Se(["common"]),[n,i]=Z.useState(1),r=l=>{if(Ld.event({category:"Download",action:"click_download_button",label:"User downloaded file"}),typeof l=="string"){const c=document.createElement("a");c.href=l,c.download=l.split("/").pop()||"document.pdf",c.target="_blank",c.rel="noopener noreferrer",c.click()}else if(l instanceof File){const c=URL.createObjectURL(l),d=document.createElement("a");d.href=c,d.download=l.name,d.target="_blank",d.rel="noopener noreferrer",d.click(),URL.revokeObjectURL(c)}};return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-8 px-2",children:[o.jsxs("div",{className:"w-full max-w-4xl flex gap-4 justify-center border rounded-xl shadow-xl p-2",children:[o.jsxs("div",{className:on({"w-full flex flex-col md:flex-row justify-center items-center gap-6 border rounded-xl py-4 px-2 md:px-12 cursor-pointer":!0,"bg-pmi-red text-pmi-white":n===1,"text-pmi-gray":n===2}),onClick:()=>i(1),children:[o.jsx("img",{src:`/svg/donations/${n===1?"happy-white.svg":"happy.svg"}`,alt:e("common:donationImpact.successStories"),className:"w-12 h-12"}),o.jsxs("div",{className:"relative space-y-2 text-center md:text-left",children:[o.jsx("p",{className:"font-semibold text-lg",children:e("common:donationImpact.successStories")}),o.jsx("p",{className:"text-xs",children:e("common:donationImpact.inspiringStories")})]})]}),o.jsxs("div",{className:on({"w-full flex flex-col md:flex-row justify-center items-center gap-6 border rounded-xl py-4 px-2 md:px-12 cursor-pointer":!0,"bg-pmi-red text-pmi-white":n===2,"text-pmi-gray":n===1}),onClick:()=>i(2),children:[o.jsx("img",{src:`/svg/donations/${n===2?"pie-white.svg":"pie.svg"}`,alt:e("common:donationImpact.infographic"),className:"w-12 h-12"}),o.jsxs("div",{className:"relative space-y-2 text-center md:text-left",children:[o.jsx("p",{className:"font-semibold text-lg",children:e("common:donationImpact.infographic")}),o.jsx("p",{className:"text-xs",children:e("common:donationImpact.snapshot")})]})]})]}),n===1&&o.jsxs("div",{className:"w-full max-w-4xl relative space-y-6 border shadow-xl pt-16 pb-6 px-6 mt-4 rounded-xl",children:[o.jsx("div",{className:"absolute group top-8 right-10 z-20",children:o.jsx("button",{onClick:()=>{var l;return r(`${ze}/download/storage/${(l=t.situation_media)==null?void 0:l.path}`)},className:"group-hover:opacity-100 px-8 py-2 bg-pmi-red text-sm text-white rounded-md opacity-40",children:"Download"})}),o.jsx("embed",{src:`${ze}/${(s=t.situation_media)==null?void 0:s.path}#toolbar=0&navpanes=0&scrollbar=0`,width:"100%",height:"700"})]}),n===2&&o.jsxs("div",{className:"w-full max-w-4xl relative space-y-6 border shadow-xl pt-16 pb-6 px-6 mt-4 rounded-xl",children:[o.jsx("div",{className:"absolute group top-8 right-10 z-20",children:o.jsx("button",{onClick:()=>{var l;return r(`${ze}/download/storage/${(l=t.infographic_media)==null?void 0:l.path}`)},className:"group-hover:opacity-100 px-8 py-2 bg-pmi-red text-sm text-white rounded-md opacity-40",children:"Download"})}),o.jsx("embed",{src:`${ze}/${(a=t.infographic_media)==null?void 0:a.path}#toolbar=0&navpanes=0&scrollbar=0`,width:"100%",height:"700"})]})]})},q2=({breadcrumbText:t,breadcrumbPath:e,useTabDetail:n})=>{var m,w;const{t:i}=Se(["menu"]),{category:r,id:s}=ni(),{language:a}=_e(),{data:l,isLoading:c,isError:d}=yz(r||""),{data:u,isLoading:h,isError:p}=Hme(s||"");if(d||p)return o.jsx(xi,{});if(console.log("tab detail : ",n),!u||h||!l||c)return null;const y=[{label:i("menu:home"),path:"/"},{label:i(`menu:${t}`),path:e},{label:(a==="en"?l==null?void 0:l.service_category_title:l==null?void 0:l.service_category_title_indo)||"",path:`${e}/${l==null?void 0:l.service_category_slug}`},{label:a==="en"?u==null?void 0:u.service_response_title:u==null?void 0:u.service_response_title_indo}];return o.jsxs(Ye,{type:"default",forceTitle:a==="en"?u==null?void 0:u.service_response_title:u==null?void 0:u.service_response_title_indo,breadcrumbs:y,description:ic(a==="en"?u==null?void 0:u.service_response_desc:u==null?void 0:u.service_response_desc_indo),children:[o.jsx(cfe,{response:u}),((m=u.video_url_media)==null?void 0:m.external_url)&&o.jsx("div",{className:"w-full max-w-4xl mx-auto",children:o.jsx("div",{className:"border shadow-lg p-6 rounded-xl",children:o.jsx(Zf,{videoUrl:(w=u.video_url_media)==null?void 0:w.external_url})})}),n&&o.jsx(dfe,{response:u})]})},ufe=[{path:"/about-us/services/disaster-management",element:o.jsx(zme,{}),errorElement:o.jsx(We,{})},{path:"/about-us/services/disaster-management/:id",element:o.jsx(G2,{breadcrumbText:"disasterManagement",breadcrumbPath:"/about-us/services/disaster-management"}),errorElement:o.jsx(We,{})},{path:"/about-us/services/disaster-management/:category/:id",element:o.jsx(q2,{breadcrumbText:"disasterManagement",breadcrumbPath:"/about-us/services/disaster-management",useTabDetail:!0}),errorElement:o.jsx(We,{})},{path:"/about-us/services/health-social-services",element:o.jsx(Wme,{}),errorElement:o.jsx(We,{})},{path:"/about-us/services/health-social-services/:id",element:o.jsx(G2,{breadcrumbText:"healthSocialServices",breadcrumbPath:"/about-us/services/health-social-services"}),errorElement:o.jsx(We,{})},{path:"/about-us/services/health-social-services/:category/:id",element:o.jsx(q2,{breadcrumbText:"healthSocialServices",breadcrumbPath:"/about-us/services/health-social-services",useTabDetail:!0}),errorElement:o.jsx(We,{})},{path:"/about-us/services/international-services",element:o.jsx(Kme,{}),errorElement:o.jsx(We,{})},{path:"/about-us/services/international-services/:id",element:o.jsx(G2,{breadcrumbText:"internationalServices",breadcrumbPath:"/about-us/services/international-services"}),errorElement:o.jsx(We,{})},{path:"/about-us/services/international-services/:category/:id",element:o.jsx(q2,{breadcrumbText:"internationalServices",breadcrumbPath:"/about-us/services/international-services",useTabDetail:!1}),errorElement:o.jsx(We,{})},{path:"/about-us/services/programs",element:o.jsx(ife,{}),errorElement:o.jsx(We,{})}],hfe=({job:t})=>{const{language:e}=_e();return o.jsx("div",{className:"flex flex-col flex-wrap gap-4 items-center justify-center mt-8 mb-8 py-8 px-2 md:px-16",children:o.jsxs("div",{className:"flex flex-col justify-center items-center max-w-screen-lg w-full border shadow-lg px-8 md:px-24 py-16",children:[o.jsx("h3",{className:"font-bold text-3xl text-pmi-red text-center",children:e==="en"?t.title:t.title_indo}),o.jsx("p",{className:"relative font-light text-xs bg-pmi-light-red text-pmi-red py-1 px-6 mt-1 mb-4 text-center",children:e==="en"?t.job_category.name:t.job_category.name_indo}),o.jsxs("p",{className:"font-light text-lg text-pmi-gray text-center",children:[t.city.city_name,", Indonesia"]}),o.jsx("div",{className:"relative space-y-8 max-w-4xl mt-12 border-b px-2 lg:px-20 py-4",children:o.jsx("div",{className:"relative space-y-4 text-ju
177stify",children:o.jsx(Et,{content:e==="en"?t.description:t.description_indo})})}),o.jsx("div",{className:"relative max-w-5xl mt-4 px-2 lg:px-20 py-4",children:o.jsx("div",{className:"relative space-y-4",children:o.jsx(Et,{content:e==="en"?t.footer:t.footer_indo})})})]})})},pfe=async()=>{const t=an({void:0}),e=await He.get(`/api/job-categories${t}`);if(!e)throw new Error("Network response was not ok");return e.data},mfe=async(t,e,n,i)=>{const r=an({void:0,category:t,keyword:e,lang:n||null,page:i||null,paginate:1,publish:1}),s=await He.get(`/api/jobs${r}`);if(!s)throw new Error("Network response was not ok");return s.data},ffe=async t=>{const e=await He.get(`/api/jobs/${t}`);if(!e)throw new Error("Network response was not ok");return e.data},gfe=()=>Ge({queryKey:["jobs_category"],queryFn:pfe,staleTime:1e3*60*60,gcTime:1e3*60*60}),xfe=(t,e,n,i)=>Ge({queryKey:["jobs",t,e,i],queryFn:()=>mfe(t,e,n,i),staleTime:1e3*60*60,enabled:!1}),yfe=t=>Ge({queryKey:["job",t],queryFn:()=>ffe(t),staleTime:1e3*60*60,gcTime:1e3*60*60}),bfe=()=>{const{t}=Se(["menu"]),{id:e}=ni(),{language:n}=_e(),{data:i,isLoading:r,isError:s}=yfe(e||"");if(s)return o.jsx(xi,{});if(!i||r)return null;const a=[{label:t("menu:home"),path:"/"},{label:t("menu:jobOpenings"),path:"/about-us/careers/job-openings"},{label:n==="en"?i.title:i.title_indo}];return o.jsx(Ye,{type:"default",title:"jobOpenings",breadcrumbs:a,description:n==="en"?i.description:i.description_indo,children:o.jsx(hfe,{job:i})})},vfe=({title:t,description:e,subtitle:n,date:i,icon:r})=>{const{t:s}=Se(["common"]);return o.jsxs("div",{className:"max-w-md 2xl:max-w-lg h-full relative space-y-6 rounded overflow-hidden border shadow-md bg-white px-8 pt-8 pb-16",children:[o.jsxs("div",{className:"relative space-y-2",children:[o.jsxs("div",{className:"flex ",children:[r&&o.jsx("img",{src:r,alt:t,className:"w-16 h-16 transition-transform transform hover:scale-110"}),o.jsxs("div",{className:`px-4 ${r?"":"border-l border-x-pmi-gray-lighter"}`,children:[o.jsx("p",{className:"font-medium text-lg text-gray-900",children:t}),o.jsx("p",{className:"font-light text-sm text-pmi-gray capitalize",children:n})]})]}),o.jsxs("p",{className:"flex gap-2 text-pmi-red text-sm font-light capitalize px-4",children:[o.jsx("img",{src:"/svg/timer.svg",alt:"timer",className:"w-6 h-6"}),o.jsx("span",{className:"",children:i})]})]}),o.jsx("p",{className:"text-pmi-gray font-light text-sm pb-14 lg:pb-10",children:e}),o.jsx("div",{className:"absolute bottom-10 -ml-8 w-full px-8",children:o.jsx("button",{className:"btn bg-pmi-red capitalize font-medium text-sm text-white px-6 py-2 w-full",children:s("common:seeDetail")})})]})},wfe=()=>{const{t}=Se(["common"]),{register:e,handleSubmit:n}=Ks(),{setSearchTerm:i}=kr(),r=async s=>{i(s.query)};return o.jsx("form",{onSubmit:n(r),className:"",children:o.jsxs("div",{className:"flex",children:[o.jsx("input",{type:"text",placeholder:`${t("common:search")}...`,...e("query",{required:!1}),className:"w-full px-2 py-4 text-sm border border-gray-300 focus:outline-none focus:ring-2 focus:ring-pmi-red capitalize"}),o.jsx("button",{className:"flex items-center justify-center w-14 h-14 px-5 py-2 bg-pmi-red text-pmi-white focus:outline-none",type:"submit",children:o.jsx("svg",{className:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 4a7 7 0 100 14 7 7 0 000-14zM21 21l-4.35-4.35"})})})]})})},kfe=()=>{const{t}=Se(["common","menu"]),{language:e}=_e(),[n,i]=Z.useState(1),{searchTerm:r}=kr(),[s,a]=Z.useState(""),{data:l,isLoading:c}=gfe(),{data:d,isFetching:u,refetch:h}=xfe(s,r,e,n);Z.useEffect(()=>{h()},[s,r,e,n]);const p=y=>{i(y)};return o.jsxs("div",{className:"flex flex-col flex-wrap gap-4 items-center justify-center mt-8 py-8 px-2",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center mb-6",children:t("menu:jobOpenings")}),o.jsxs("div",{className:"flex flex-col md:flex-row justify-center w-full gap-4 px-2 max-w-6xl",children:[o.jsxs("div",{className:"relative space-y-6 min-w-64 max-w-screen-sm mr-6",children:[o.jsx(wfe,{}),c&&[1,2,3].map(y=>o.jsx(Ot,{onlyImage:!0,minHeight:"min-h-40",minWidth:"min-w-52"},y)),o.jsx("h3",{className:"font-medium text-lg text-pmi-black uppercase",children:t("common:categories")}),o.jsx("ul",{className:"relative w-full",children:l&&l.map((y,m)=>o.jsxs("li",{className:"flex justify-between gap-16 border-b font-normal text-sm text-pmi-gray py-4 cursor-pointer hover:bg-pmi-gray-light",onClick:()=>a(y.job_category_id),children:[o.jsx("p",{children:e==="en"?y.name:y.name_indo}),o.jsx(kM,{})]},m))})]}),o.jsxs("div",{className:"w-full",children:[o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4 w-full",children:[u&&[1,2].map(y=>o.jsx(Ot,{onlyImage:!0,minHeight:"min-h-40",minWidth:"min-w-72"},y)),!u&&d&&d.data.length==0&&o.jsx("p",{className:"col-span-full w-full py-12 text-base text-center",children:t("noData")}),!u&&d&&d.data.map((y,m)=>o.jsx("a",{href:`/about-us/careers/job-openings/${y.job_id}`,children:o.jsx(vfe,{title:e==="en"?y.title:y.title_indo,subtitle:y.city&&`${y.city.city_name}, Indonesia`,date:JN(y.start_date,y.end_date),description:y.short_desc},m)}))]}),d&&d.data.length>0&&o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"w-full border-b py-2 mt-8 text-pmi-gray text-lg font-light",children:t("common:pagination",{start:d.from||0,end:d.to||0,total:d.total||0})}),o.jsx("div",{className:"w-full overflow-x-auto py-2",children:o.jsx(Hi,{links:d.links,onPageChange:p,currentPage:n})})]})]})]})]})},Sfe=()=>{const{t}=Se(["menu"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:jobOpenings")}
177];return o.jsx(Ye,{type:"default",title:"jobOpenings",breadcrumbs:e,children:o.jsx(kfe,{})})},Cfe=[{path:"/about-us/careers/job-openings",element:o.jsx(Sfe,{}),errorElement:o.jsx(We,{})},{path:"/about-us/careers/job-openings/:id",element:o.jsx(bfe,{}),errorElement:o.jsx(We,{})}],jfe=({searchPlaceholder:t,type:e})=>{const{t:n}=Se(["common"]),{language:i}=_e(),{register:r,handleSubmit:s}=Ks(),{data:a}=Pre(e||""),{updateField:l,addField:c}=wr();Z.useEffect(()=>{c("query",""),c("category","")},[]);const d=async u=>{l("query",u.query),l("category",u.category)};return o.jsxs("form",{onSubmit:s(d),className:"w-full flex justify-center items-center gap-2 text-pmi-gray px-2",children:[o.jsx("div",{className:"w-full lg:max-w-80 xl:max-w-96",children:o.jsx("input",{type:"text",placeholder:t,...r("query"),className:"w-full lg:max-w px-4 py-2 text-sm rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-pmi-red"})}),o.jsx("div",{className:"w-full lg:max-w-64",children:o.jsxs("select",{...r("category"),className:"w-full px-4 py-2 text-sm capitalize rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-pmi-red",children:[o.jsx("option",{value:"",children:n("common:all")}),a&&a.map((u,h)=>o.jsxs("option",{value:u.media_category_id,className:"px-4",children:[" ",i==="en"?u.media_category_name:u.media_category_name_indo]},h))]})}),o.jsx("div",{className:"",children:o.jsx("button",{className:on({"btn bg-pmi-red capitalize text-sm text-white w-full block px-4 py-2 gap-x-2 text-center rounded-lg focus:outline":!0}),type:"submit",children:n("common:search")})})]})}
177,ya=({title:t,description:e,searchPlaceholder:n,type:i,isSearch:r=!1})=>{const{t:s}=Se(["common"]);return o.jsxs("div",{className:on({"bg-transparent relative min-h-full":!0,"w-full text-white":!0}),children:[o.jsx("img",{src:"/png/library/bg.png",alt:"bg",className:`lg:w-full ${t?"min-h-56 md:w-full lg:max-h-40":"min-h-[300px] md:max-h-[400px]"} md:min-h-full z-30 ${r?"rounded-br-[9rem]":""}`}),o.jsxs("div",{className:`absolute inset-0 flex flex-col md:flex-row ${t?"justify-between gap-4 md:gap-2 lg:gap-16":"justify-center 2xl:justify-between"} md:items-center mt-14 md:mt-0 z-40`,children:[o.jsxs("div",{className:`relative pl-2 ${t?"md:pl-10 xl:pl-40":"lg:pl-12"} space-y-2 z-50`,children:[o.jsx("h2",{className:"max-w-md text-lg lg:text-2xl font-medium",children:!t&&s("common:library.title")}),o.jsx("h3",{className:"max-w-md text-base lg:text-4xl font-bold md:leading-snug",children:t||s("common:library.pmiLibrary")}),o.jsx("p",{className:"max-w-60 md:max-w-72 lg:max-w-xs xl:max-w-md text-sm lg:text-lg font-light",children:e||s("common:library.description")})]}),!r&&o.jsxs("div",{className:"items-start flex gap-2 lg:gap-4 z-50 px-4 mt-8 md:mt-16 lg:-mb-24",children:[o.jsx("img",{src:"/png/library/book-cover-1.png",alt:"Book 1",className:"w-28 md:w-36 lg:w-48 xl:w-56 2xl:w-full"}),o.jsx("img",{src:"/png/library/book-cover-2.png",alt:"Book 2",className:"w-28 md:w-36 lg:w-48 xl:w-56 2xl:w-full"}),o.jsx("img",{src:"/png/library/book-cover-3.png",alt:"Book 3",className:"w-28 md:w-36 lg:w-48 xl:w-56 2xl:w-full"})]}),n&&o.jsx("div",{className:"flex-auto gap-2 z-50",children:o.jsx(jfe,{searchPlaceholder:`${_5(s("search"))} ${n.toLowerCase()}`,type:i})})]})]})},Tfe=()=>{const{t}=Se(["common"]),{language:e}=_e(),{data:n}=ba("library_activity_photos");return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center mb-12 z-30",children:[!n&&o.jsx(ya,{isSearch:!0,title:t("common:library.activityPhotos.title"),description:t("common:library.activityPhotos.capturingMoments"),searchPlaceholder:t("common:library.activityPhotos.searchActivities"),type:"library_activity_photos"}),n&&o.jsx(ya,{isSearch:!0,title:e==="en"?n==null?void 0:n.media_type_name:n==null?void 0:n.media_type_name_indo,description:t("common:library.activityPhotos.capturingMoments"),searchPlaceholder:e==="en"?n==null?void 0:n.media_type_name:n==null?void 0:n.media_type_name_indo,type:"library_activity_photos"})]})},cy=t=>typeof t=="number"&&!isNaN(t),Ch=t=>typeof t=="string",Fs=t=>typeof t=="function",zw=t=>Ch(t)||Fs(t)?t:null,PE=t=>Z.isValidElement(t)||Ch(t)||Fs(t)||cy(t);function Pfe(t,e,n){n===void 0&&(n=300);const{scrollHeight:i,style:r}=t;requestAnimationFrame(()=>{r.minHeight="initial",r.height=i+"px",r.transition=`all ${n}ms`,requestAnimationFrame(()=>{r.height="0",r.padding="0",r.margin="0",setTimeout(e,n)})})}function cC(t){let{enter:e,exit:n,appendPosition:i=!1,collapse:r=!0,collapseDuration:s=300}=t;return function(a){let{children:l,position:c,preventExitTransition:d,done:u,nodeRef:h,isIn:p,playToast:y}=a;const m=i?`${e}--${c}`:e,w=i?`${n}--${c}`:n,k=Z.useRef(0);return Z.useLayoutEffect(()=>{const b=h.current,x=m.split(" "),v=E=>{E.target===h.current&&(y(),b.removeEventListener("animationend",v),b.removeEventListener("animationcancel",v),k.current===0&&E.type!=="animationcancel"&&b.classList.remove(...x))};b.classList.add(...x),b.addEventListener("animationend",v),b.addEventListener("animationcancel",v)},[]),Z.useEffect(()=>{const b=h.current,x=()=>{b.removeEventListener("animationend",x),r?Pfe(b,u,s):u()};p||(d?x():(k.current=1,b.className+=` ${w}`,b.addEventListener("animationend",x)))},[p]),Ie.createElement(Ie.Fragment,null,l)}}function pL(t,e){return t!=null?{content:t.content,containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,status:e}:{}}const Ir=new Map;let dy=[];const EE=new Set,Efe=t=>EE.forEach(e=>e(t)),bz=()=>Ir.size>0;function vz(t,e){var n;if(e)return!((n=Ir.get(e))==null||!n.isToastActive(t));let i=!1;return Ir.forEach(r=>{r.isToastActive(t)&&(i=!0)}),i}
177function wz(t,e){PE(t)&&(bz()||dy.push({content:t,options:e}),Ir.forEach(n=>{n.buildToast(t,e)}))}function mL(t,e){Ir.forEach(n=>{e!=null&&e!=null&&e.containerId?(e==null?void 0:e.containerId)===n.id&&n.toggle(t,e==null?void 0:e.id):n.toggle(t,e==null?void 0:e.id)})}function Afe(t){const{subscribe:e,getSnapshot:n,setProps:i}=Z.useRef(function(s){const a=s.containerId||1;return{subscribe(l){const c=function(u,h,p){let y=1,m=0,w=[],k=[],b=[],x=h;const v=new Map,E=new Set,N=()=>{b=Array.from(v.values()),E.forEach($=>$())},S=$=>{k=$==null?[]:k.filter(V=>V!==$),N()},_=$=>{const{toastId:V,onOpen:I,updateId:A,children:L}=$.props,T=A==null;$.staleId&&v.delete($.staleId),v.set(V,$),k=[...k,$.props.toastId].filter(g=>g!==$.staleId),N(),p(pL($,T?"added":"updated")),T&&Fs(I)&&I(Z.isValidElement(L)&&L.props)};return{id:u,props:x,observe:$=>(E.add($),()=>E.delete($)),toggle:($,V)=>{v.forEach(I=>{V!=null&&V!==I.props.toastId||Fs(I.toggle)&&I.toggle($)})},removeToast:S,toasts:v,clearQueue:()=>{m-=w.length,w=[]},buildToast:($,V)=>{if((J=>{let{containerId:F,toastId:q,updateId:U}=J;
177const Q=F?F!==u:u!==1,ce=v.has(q)&&U==null;return Q||ce})(V))return;const{toastId:I,updateId:A,data:L,staleId:T,delay:g}=V,f=()=>{S(I)},j=A==null;j&&m++;const P={...x,style:x.toastStyle,key:y++,...Object.fromEntries(Object.entries(V).filter(J=>{let[F,q]=J;return q!=null})),toastId:I,updateId:A,data:L,closeToast:f,isIn:!1,className:zw(V.className||x.toastClassName),bodyClassName:zw(V.bodyClassName||x.bodyClassName),progressClassName:zw(V.progressClassName||x.progressClassName),autoClose:!V.isLoading&&(C=V.autoClose,D=x.autoClose,C===!1||cy(C)&&C>0?C:D),deleteToast(){const J=v.get(I),{onClose:F,children:q}=J.props;Fs(F)&&F(Z.isValidElement(q)&&q.props),p(pL(J,"removed")),v.delete(I),m--,m<0&&(m=0),w.length>0?_(w.shift()):N()}};var C,D;P.closeButton=x.closeButton,V.closeButton===!1||PE(V.closeButton)?P.closeButton=V.closeButton:V.closeButton===!0&&(P.closeButton=!PE(x.closeButton)||x.closeButton);let M=$;Z.isValidElement($)&&!Ch($.type)?M=Z.cloneElement($,{closeToast:f,toastProps:P,data:L}):Fs($)&&(M=$({closeToast:f,toastProps:P,data:L}));const z={content:M,props:P,staleId:T};x.limit&&x.limit>0&&m>x.limit&&j?w.push(z):cy(g)?setTimeout(()=>{_(z)},g):_(z)},setProps($){x=$},setToggle:($,V)=>{v.get($).toggle=V},isToastActive:$=>k.some(V=>V===$),getSnapshot:()=>x.newestOnTop?b.reverse():b}}(a,s,Efe);Ir.set(a,c);const d=c.observe(l);return dy.forEach(u=>wz(u.content,u.options)),dy=[],()=>{d(),Ir.delete(a)}},setProps(l){var c;(c=Ir.get(a))==null||c.setProps(l)},getSnapshot(){var l;return(l=Ir.get(a))==null?void 0:l.getSnapshot()}}}(t)).current;i(t);const r=Z.useSyncExternalStore(e,n,n);return{getToastToRender:function(s){if(!r)return[];const a=new Map;return r.forEach(l=>{const{position:c}=l.props;a.has(c)||a.set(c,[]),a.get(c).push(l)}),Array.from(a,l=>s(l[0],l[1]))},isToastActive:vz,count:r==null?void 0:r.length}}function Nfe(t){const[e,n]=Z.useState(!1),[i,r]=Z.useState(!1),s=Z.useRef(null),a=Z.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:c,closeToast:d,onClick:u,closeOnClick:h}=t;var p,y;function m(){n(!0)}function w(){n(!1)}function k(v){const E=s.current;a.canDrag&&E&&(a.didMove=!0,e&&w(),a.delta=t.draggableDirection==="x"?v.clientX-a.start:v.clientY-a.start,a.start!==v.clientX&&(a.canCloseOnClick=!1),E.style.transform=`translate3d(${t.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,E.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function b(){document.removeEventListener("pointermove",k),document.removeEventListener("pointerup",b);const v=s.current;if(a.canDrag&&a.didMove&&v){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return r(!0),t.closeToast(),void t.collapseAll();v.style.transition="transform 0.2s, opacity 0.2s",v.style.removeProperty("transform"),v.style.removeProperty("opacity")}}(y=Ir.get((p={id:t.toastId,containerId:t.containerId,fn:n}).containerId||1))==null||y.setToggle(p.id,p.fn),Z.useEffect(()=>{if(t.pauseOnFocusLoss)return document.hasFocus()||w(),window.addEventListener("focus",m),window.addEventListener("blur",w),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",w)}},[t.pauseOnFocusLoss]);const x={onPointerDown:function(v){if(t.draggable===!0||t.draggable===v.pointerType){a.didMove=!1,document.addEventListener("pointermove",k),document.addEventListener("pointerup",b);const E=s.current;a.canCloseOnClick=!0,a.canDrag=!0,E.style.transition="none",t.draggableDirection==="x"?(a.start=v.clientX,a.removalDistance=E.offsetWidth*(t.draggablePercent/100)):(a.start=v.clientY,a.removalDistance=E.offsetHeight*(t.draggablePercent===80?1.5*t.draggablePercent:t.draggablePercent)/100)}},onPointerUp:function(v){const{top:E,bottom:N,left:S,right:_}=s.current.getBoundingClientRect();v.nativeEvent.type!=="touchend"&&t.pauseOnHover&&v.clientX>=S&&v.clientX<=_&&v.clientY>=E&&v.clientY<=N?w():m()}};return l&&c&&(x.onMouseEnter=w,t.stacked||(x.onMouseLeave=m)),h&&(x.onClick=v=>{u&&u(v),a.canCloseOnClick&&d()}),{playToast:m,pauseToast:w,isRunning:e,preventExitTransition:i,toastRef:s,eventHandlers:x}}function Mfe(t){let{delay:e,isRunning:n,closeToast:i,type:r="default",hide:s,className:a,style:l,controlledProgress:c,progress:d,rtl:u,isIn:h,theme:p}=t;const y=s||c&&d===0,m={...l,animationDuration:`${e}ms`,animationPlayState:n?"running":"paused"};c&&(m.transform=`scaleX(${d})`);const w=ha("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${p}`,`Toastify__progress-bar--${r}`,{"Toastify__progress-bar--rtl":u}),k=Fs(a)?a({rtl:u,type:r,defaultClassName:w}):ha(w,a),b={[c&&d>=1?"onTransitionEnd":"onAnimationEnd"]:c&&d<1?null:()=>{h&&i()}};return Ie.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":y},Ie.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${p} Toastify__progress-bar--${r}`}),Ie.createElement("div",{role:"progressbar","aria-hidden":y?"true":"false","aria-label":"notification timer",className:k,style:m,...b}))}let Dfe=1;const kz=()=>""+Dfe++;function _fe(t){return t&&(Ch(t.toastId)||cy(t.toastId))?t.toastId:kz()}function jx(t,e){return wz(t,e),e.toastId}function p1(t,e){return{...e,type:e&&e.type||t,toastId:_fe(e)}}function N0(t){return(e,n)=>jx(e,p1(t,n))}function wt(t,e){return jx(t,p1("default",e))}wt.loading=(t,e)=>jx(t,p1("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),wt.promise=function(t,e,n){let i,{pending:r,error:s,success:a}=e;r&&(i=Ch(r)?wt.loading(r,n):wt.loading(r.render,{...n,...r}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(u,h,p)=>{if(h==null)return void wt.dismiss(i);const y={type:u,...l,...n,data:p},m=Ch(h)?{render:h}:h;return i?wt.update(i,{...y,...m}):wt(m.render,{...y,...m}),p},d=Fs(t)?t():t;return d.then(u=>c("success",a,u)).catch(u=>c("error",s,u)),d},wt.success=N0("success"),wt.info=N0("info"),wt.error=N0("error"),wt.warning=N0("warning"),wt.warn=wt.warning,wt.dark=(t,e)=>jx(t,p1("default",{theme:"dark",...e})),wt.dismiss=function(t){(function(e){var n;if(bz()){if(e==null||Ch(n=e)||cy(n))Ir.forEach(i=>
177{i.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){const i=Ir.get(e.containerId);i?i.removeToast(e.id):Ir.forEach(r=>{r.removeToast(e.id)})}}else dy=dy.filter(i=>e!=null&&i.options.toastId!==e)})(t)},wt.clearWaitingQueue=function(t){t===void 0&&(t={}),Ir.forEach(e=>{!e.props.limit||t.containerId&&e.id!==t.containerId||e.clearQueue()})},wt.isActive=vz,wt.update=function(t,e){e===void 0&&(e={});const n=((i,r)=>{var s;let{containerId:a}=r;return(s=Ir.get(a||1))==null?void 0:s.toasts.get(i)})(t,e);if(n){const{props:i,content:r}=n,s={delay:100,...i,...e,toastId:e.toastId||t,updateId:kz()};s.toastId!==t&&(s.staleId=t);const a=s.render||r;delete s.render,jx(a,s)}},wt.done=t=>{wt.update(t,{progress:1})},wt.onChange=function(t){return EE.add(t),()=>{EE.delete(t)}},wt.play=t=>mL(!0,t),wt.pause=t=>mL(!1,t);const Ife=typeof window<"u"?Z.useLayoutEffect:Z.useEffect,M0=t=>{let{theme:e,type:n,isLoading:i,...r}=t;return Ie.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...r})},K2={info:function(t){return Ie.createElement(M0,{...t},Ie.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(t){return Ie.createElement(M0,{...t},Ie.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(t){return Ie.createElement(M0,{...t},Ie.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(t){return Ie.createElement(M0,{...t},Ie.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return Ie.createElement("div",{className:"Toastify__spinner"})}},Rfe=t=>{const{isRunning:e,preventExitTransition:n,toastRef:i,eventHandlers:r,playToast:s}=Nfe(t),{closeButton:a,children:l,autoClose:c,onClick:d,type:u,hideProgressBar:h,closeToast:p,transition:y,position:m,className:w,style:k,bodyClassName:b,bodyStyle:x,progressClassName:v,progressStyle:E,updateId:N,role:S,progress:_,rtl:$,toastId:V,deleteToast:I,isIn:A,isLoading:L,closeOnClick:T,theme:g}=t,f=ha("Toastify__toast",`Toastify__toast-theme--${g}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":$},{"Toastify__toast--close-on-click":T}),j=Fs(w)?w({rtl:$,position:m,type:u,defaultClassName:f}):ha(f,w),P=function(z){let{theme:J,type:F,isLoading:q,icon:U}=z,Q=null;const ce={theme:J,type:F};return U===!1||(Fs(U)?Q=U({...ce,isLoading:q}):Z.isValidElement(U)?Q=Z.cloneElement(U,ce):q?Q=K2.spinner():(H=>H in K2)(F)&&(Q=K2[F](ce))),Q}(t),C=!!_||!c,D={closeToast:p,type:u,theme:g};let M=null;return a===!1||(M=Fs(a)?a(D):Z.isValidElement(a)?Z.cloneElement(a,D):function(z){let{closeToast:J,theme:F,ariaLabel:q="close"}=z;return Ie.createElement("button",{className:`Toastify__close-button Toastify__close-button--${F}`,type:"button",onClick:U=>{U.stopPropagation(),J(U)},"aria-label":q},Ie.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},Ie.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(D)),Ie.createElement(y,{isIn:A,done:I,position:m,preventExitTransition:n,nodeRef:i,playToast:s},Ie.createElement("div",{id:V,onClick:d,"data-in":A,className:j,...r,style:k,ref:i}
177,Ie.createElement("div",{...A&&{role:S},className:Fs(b)?b({type:u}):ha("Toastify__toast-body",b),style:x},P!=null&&Ie.createElement("div",{className:ha("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!L})},P),Ie.createElement("div",null,l)),M,Ie.createElement(Mfe,{...N&&!C?{key:`pb-${N}`}:{},rtl:$,theme:g,delay:c,isRunning:e,isIn:A,closeToast:p,hide:h,type:u,style:E,className:v,controlledProgress:C,progress:_||0})))},dC=function(t,e){return e===void 0&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},Ofe=cC(dC("bounce",!0));cC(dC("slide",!0));cC(dC("zoom"));cC(dC("flip"));const Lfe={position:"top-right",transition:Ofe,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Ffe(t){let e={...Lfe,...t};const n=t.stacked,[i,r]=Z.useState(!0),s=Z.useRef(null),{getToastToRender:a,isToastActive:l,count:c}=Afe(e),{className:d,style:u,rtl:h,containerId:p}=e;function y(w){const k=ha("Toastify__toast-container",`Toastify__toast-container--${w}`,{"Toastify__toast-container--rtl":h});return Fs(d)?d({position:w,rtl:h,defaultClassName:k}):ha(k,zw(d))}function m(){n&&(r(!0),wt.play())}return Ife(()=>{if(n){var w;const k=s.current.querySelectorAll('[data-in="true"]'),b=12,x=(w=e.position)==null?void 0:w.includes("top");let v=0,E=0;Array.from(k).reverse().forEach((N,S)=>{const _=N;_.classList.add("Toastify__toast--stacked"),S>0&&(_.dataset.collapsed=`${i}`),_.dataset.pos||(_.dataset.pos=x?"top":"bot");const $=v*(i?.2:1)+(i?0:b*S);_.style.setProperty("--y",`${x?$:-1*$}px`),_.style.setProperty("--g",`${b}`),_.style.setProperty("--s",""+(1-(i?E:0))),v+=_.offsetHeight,E+=.025})}},[i,c,n]),Ie.createElement("div",{ref:s,className:"Toastify",id:p,onMouseEnter:()=>{n&&(r(!1),wt.pause())},onMouseLeave:m},a((w,k)=>{const b=k.length?{...u}:{...u,pointerEvents:"none"};return Ie.createElement("div",{className:y(w),style:b,key:`container-${w}`},k.map(x=>{let{content:v,props:E}=x;return Ie.createElement(Rfe,{...E,stacked:n,collapseAll:m,isIn:l(E.toastId,E.containerId),style:E.style,key:`toast-${E.key}`},v)}))}))}const Bfe=({data:t,page:e=1})=>{const{t:n}=Se(["common"]),{language:i}=_e(),[r,s]=Z.useState(0);Z.useEffect(()=>{e&&s((e-1)*10)},[e,t]);const a=l=>{navigator.clipboard?navigator.clipboard.writeText(l).then(()=>wt.success(i==="en"?"Link copied!":"Tautan disalin!")).catch(()=>wt.error(i==="en"?"Failed to copy link":"Gagal menyalin tautan")):wt.warning(i==="en"?"Copy to clipboard is not supported":"Salin ke clipboard tidak didukung")};return o.jsx("div",{className:"overflow-x-auto py-4",children:o.jsxs("table",{className:"min-w-full bg-white border border-gray-200 text-pmi-gray",children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter w-2",children:"No."}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.title")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.category")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.year")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.mediaType")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.fileSize")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.format")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter w-24",children:n("library.table.actions")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter w-32",children:n("library.table.share")})]})}),o.jsx("tbody",{children:t&&t.map((l,c)=>o.jsxs("tr",{className:"text-left text-sm",children:[o.jsx("td",{className:"px-4 py-8 border border-pmi-gray-lighter text-center",children:r+c+1}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter",children:i==="en"?l.media_name:l.media_name_indo}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter",children:i==="en"?l.media_category_name:l.media_category_name_indo}),o.jsx("td",{className:"px-4 py-8 border border-pmi-gray-lighter text-center",children:l.year}),o.jsx("td",{className:"px-4 py-8 border border-pmi-gray-lighter text-center",children:l.type}),o.jsx("td",{className:"px-4 py-8 border border-pmi-gray-lighter text-center",children:kS(l.size||0)}),o.jsx("td",{className:"px-4 py-8 border border-pmi-gray-lighter text-center uppercase",children:l.format}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter text-center",children:o.jsx(sc,{link:l.external_url})}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter",children:o.jsx("button",{onClick:()=>a(l.external_url),className:"flex md:relative md:justify-center bg-pmi-purple text-sm text-pmi-white mx-auto px-2 py-2 rounded-lg hover:opacity-75",children:n("copyLink")})})]},c))})]})})},$fe=()=>{const{t}=Se(["common"]),[e,n]=Z.useState(1),[i,r]=Z.useState(1),{fields:s}=wr(),{language:a}=_e(),{data:l}=ba("library_activity_photos"),{data:c,refetch:d,isLoading:u}=eg("library_activity_photos",e,s&&s.category||void 0,s&&s.query||void 0);Z.useEffect(()=>{s&&d()},[s]),Z.useEffect(()=>{d()},[e]),Z.useEffect(()=>{u==!1&&r(e)},[u,e]);const h=p=>{n(p)};return o.jsx("div",{className:"flex flex-wrap items-center justify-center px-2 py-8",children:o.jsxs("div",{className:"grid w-full max-w-6xl",children:[o.jsx("p",{className:"font-bold text-base",children:t("common:library.activityPhotos.activityPhotosList",{mediaType:a==="en"?l==null?void 0:l.media_type_name:l==null?void 0:l.media_type_name_indo})}),o.jsx("p",{className:"text-sm text-pmi-gray",children:t("common:library.activityPhotos.browseCapturedMoments")}),c&&c.data.length<1&&o.jsx("p",{className:"text-center text-xl font-semibold",children:t("common:noData")}),c&&c.data.length>0&&o.jsx(Bfe,{data:c.data,page:i}),o.jsx("div",{className:"col-span-full border-b border-pmi-gray-lighter",children:o.jsx("p",{className:"w-full text-pmi-gray text-sm font-light mt-8",children:t("common:pagination",{start:(c==null?void 0:c.from)||
1770,end:(c==null?void 0:c.to)||0,total:(c==null?void 0:c.total)||0})})}),o.jsx("div",{className:"col-span-full justify-center mt-2",children:c&&o.jsx(Hi,{links:c.links,onPageChange:h,currentPage:e})})]})})},Hfe=()=>{const{t}=Se(["menu","common"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:pmiLibrary"),path:"/about-us/library/pmi-library"},{label:t("common:library.activityPhotos.title")}];return o.jsxs(Ye,{type:"default",title:"pmiLibrary",breadcrumbs:e,children:[o.jsx(Tfe,{}),o.jsx($fe,{})]})},zfe=()=>{const{t}=Se(["common"]),{language:e}=_e(),{data:n}=ba("library_activity_videos");return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center mb-12 z-30",children:[!n&&o.jsx(ya,{isSearch:!0,title:t("common:library.activityVideos.title"),description:t("common:library.activityVideos.visualStories"),searchPlaceholder:t("common:library.activityVideos.searchActivities"),type:"library_activity_videos"}),n&&o.jsx(ya,{isSearch:!0,title:e==="en"?n==null?void 0:n.media_type_name:n==null?void 0:n.media_type_name_indo,description:t("common:library.activityVideos.visualStories"),searchPlaceholder:e==="en"?n==null?void 0:n.media_type_name:n==null?void 0:n.media_type_name_indo,type:"library_activity_videos"})]})},Vfe=({data:t,page:e=1})=>{const{t:n}=Se(["common"]),{language:i}=_e(),[r,s]=Z.useState(0);Z.useEffect(()=>{e&&s((e-1)*10)},[e,t]);const a=l=>{navigator.clipboard?navigator.clipboard.writeText(l).then(()=>wt.success(i==="en"?"Link copied!":"Tautan disalin!")).catch(()=>wt.error(i==="en"?"Failed to copy link":"Gagal menyalin tautan")):wt.warning(i==="en"?"Copy to clipboard is not supported":"Salin ke clipboard tidak didukung")};return o.jsx("div",{className:"overflow-x-auto py-4",children:o.jsxs("table",{className:"min-w-full bg-white border border-gray-200 text-pmi-gray",children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter w-2",children:"No."}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.title")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.category")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.year")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.mediaType")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.fileSize")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.duration")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.format")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter w-24",children:n("library.table.actions")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter w-32",children:n("library.table.share")})]})}),o.jsx("tbody",{children:t&&t.map((l,c)=>o.jsxs("tr",{className:"text-left",children:[o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter text-center",children:r+c+1}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter",children:i==="en"?l.media_name:l.media_name_indo}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter",children:i==="en"?l.media_category_name:l.media_category_name_indo}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter text-center",children:l.year}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter text-center",children:l.type}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter text-center",children:kS(l.size||0)}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter text-center",children:D5(Number(l.duration),i)}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter text-center uppercase",children:l.format}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter space-x-2 text-center",children:o.jsx(sc,{link:l.external_url})}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter",children:o.jsx("button",{onClick:()=>a(l.external_url),className:"flex md:relative md:justify-center bg-pmi-purple text-sm text-pmi-white mx-auto px-2 py-2 rounded-lg hover:opacity-75",children:n("copyLink")})})]},c))})]})})},Ufe=()=>{const{t}=Se(["common"]),[e,n]=Z.useState(1),[i,r]=Z.useState(1),{fields:s}=wr(),{language:a}=_e(),{data:l}=ba("library_activity_videos"),{data:c,refetch:d,isLoading:u}=eg("library_activity_videos",e,s&&s.category||void 0,s&&s.query||void 0);Z.useEffect(()=>{s&&d()},[s]),Z.useEffect(()=>{d()},[e]),Z.useEffect(()=>{u==!1&&r(e)},[u,e]);const h=p=>{n(p)};return o.jsx("div",{className:"flex flex-wrap items-center justify-center px-2 py-8",children:o.jsxs("div",{className:"grid w-full max-w-6xl",children:[o.jsx("p",{className:"font-bold text-base",children:t("common:library.activityVideos.activityVideosList",{mediaType:a==="en"?l==null?void 0:l.media_type_name:l==null?void 0:l.media_type_name_indo})}),o.jsx("p",{className:"text-sm text-pmi-gray",children:t("common:library.activityVideos.browseCapturedMoments")}),c&&c.data.length<1&&o.jsx("p",{className:"text-center text-xl font-semibold",children:t("common:noData")}),c&&c.data.length>0&&o.jsx(Vfe,{data:c.data,page:i}),o.jsx("div",{className:"col-span-full border-b border-pmi-gray-lighter",children:o.jsx("p",{className:"w-full text-pmi-gray text-sm font-light mt-8",children:t("common:pagination",{start:(c==null?void 0:c.from)||
1770,end:(c==null?void 0:c.to)||0,total:(c==null?void 0:c.total)||0})})}),o.jsx("div",{className:"col-span-full justify-center mt-2",children:c&&o.jsx(Hi,{links:c.links,onPageChange:h,currentPage:e})})]})})},Wfe=()=>{const{t}=Se(["menu","common"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:pmiLibrary"),path:"/about-us/library/pmi-library"},{label:t("common:library.activityVideos.title")}];return o.jsxs(Ye,{type:"default",title:"pmiLibrary",breadcrumbs:e,children:[o.jsx(zfe,{}),o.jsx(Ufe,{})]})},Gfe=()=>{const{t}=Se(["common"]),{language:e}=_e(),{data:n}=ba("library_audio");return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center mb-12 z-30",children:[!n&&o.jsx(ya,{isSearch:!0,title:t("common:library.audio.title"),description:t("common:library.audio.listenAudioCollections"),searchPlaceholder:t("common:library.audio.searchAudios"),type:"library_audio"}),n&&o.jsx(ya,{isSearch:!0,title:e==="en"?n==null?void 0:n.media_type_name:n==null?void 0:n.media_type_name_indo,description:t("common:library.audio.listenAudioCollections"),searchPlaceholder:e==="en"?n==null?void 0:n.media_type_name:n==null?void 0:n.media_type_name_indo,type:"library_audio"})]})},qfe=({data:t,page:e=1})=>{const{t:n}=Se(["common"]),{language:i}=_e(),[r,s]=Z.useState(1);Z.useEffect(()=>{e&&s((e-1)*10)},[e,t]);const a=l=>{navigator.clipboard?navigator.clipboard.writeText(l).then(()=>wt.success(i==="en"?"Link copied!":"Tautan disalin!")).catch(()=>wt.error(i==="en"?"Failed to copy link":"Gagal menyalin tautan")):wt.warning(i==="en"?"Copy to clipboard is not supported":"Salin ke clipboard tidak didukung")};return o.jsx("div",{className:"overflow-x-auto py-4",children:o.jsxs("table",{className:"min-w-full bg-white border border-gray-200 text-pmi-gray",children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter w-2",children:"No."}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.title")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.category")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.year")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.mediaType")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.fileSize")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.duration")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.format")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter w-24",children:n("library.table.actions")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter w-32",children:n("library.table.share")})]})}),o.jsx("tbody",{children:t&&t.map((l,c)=>o.jsxs("tr",{className:"text-left",children:[o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter text-center",children:r+c+1}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter",children:i==="en"?l.media_name:l.media_name_indo}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter",children:i==="en"?l.media_category_name:l.media_category_name_indo}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter text-center",children:l.year}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter text-center",children:l.type}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter text-center",children:kS(l.size||0)}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter text-center",children:D5(Number(l.duration||0),i)}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter text-center uppercase",children:l.format}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter text-center",children:o.jsx(sc,{link:l.external_url})}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter",children:o.jsx("button",{onClick:()=>a(l.external_url),className:"flex md:relative md:justify-center bg-pmi-purple text-sm text-pmi-white mx-auto px-2 py-2 rounded-lg hover:opacity-75",children:n("copyLink")})})]},c))})]})})},Kfe=()=>{const{t}=Se(["common"]),[e,n]=Z.useState(1),[i,r]=Z.useState(1),{fields:s}=wr(),{language:a}=_e(),{data:l}=ba("library_audio"),{data:c,refetch:d,isLoading:u}=eg("library_audio",e,s&&s.category||void 0,s&&s.query||void 0);Z.useEffect(()=>{s&&d()},[s]),Z.useEffect(()=>{d()},[e]),Z.useEffect(()=>{u==!1&&r(e)},[u,e]);const h=p=>{n(p)};return o.jsx("div",{className:"flex flex-wrap items-center justify-center px-2 py-8",children:o.jsxs("div",{className:"grid w-full max-w-6xl",children:[o.jsx("p",{className:"font-bold text-base",children:t("common:library.audio.audioList",{mediaType:a==="en"?l==null?void 0:l.media_type_name:l==null?void 0:l.media_type_name_indo})}),o.jsx("p",{className:"text-sm text-pmi-gray",children:t("common:library.audio.browseAudioCollection",{mediaType:a==="en"?l==null?void 0:l.media_type_name.toLowerCase():l==null?void 0:l.media_type_name_indo.toLowerCase()})}),c&&c.data.length<1&&o.jsx("p",{className:"text-center text-xl font-semibold",children:t("common:noData")}),c&&c.data.length>0&&o.jsx(qfe,{data:c.data,page:i}),o.jsx("div",{className:"col-span-full border-b border-pmi-gray-lighter",children:o.jsx("p",{className:"w-full text-pmi-gray text-sm font-light mt-8",children:t("common:pagination",{start:(c==null?void 0:c.from)||
1770,end:(c==null?void 0:c.to)||0,total:(c==null?void 0:c.total)||0})})}),o.jsx("div",{className:"col-span-full justify-center mt-2",children:c&&o.jsx(Hi,{links:c.links,onPageChange:h,currentPage:e})})]})})},Yfe=()=>{const{t}=Se(["menu","common"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:pmiLibrary"),path:"/about-us/library/pmi-library"},{label:t("common:library.audio.title")}];return o.jsxs(Ye,{type:"default",title:"pmiLibrary",breadcrumbs:e,children:[o.jsx(Gfe,{}),o.jsx(Kfe,{})]})},Xfe=({data:t})=>{const{t:e}=Se(["common"]),{language:n}=_e(),i=r=>{navigator.clipboard?navigator.clipboard.writeText(r).then(()=>wt.success(n==="en"?"Link copied!":"Tautan disalin!")).catch(()=>wt.error(n==="en"?"Failed to copy link":"Gagal menyalin tautan")):wt.warning(n==="en"?"Copy to clipboard is not supported":"Salin ke clipboard tidak didukung")};return o.jsxs("div",{className:"flex flex-col md:flex-row justify-center gap-8 px-2 py-8 w-full",children:[o.jsx("div",{className:"relative border xl:max-w-md px-6 py-12 shadow-sm min-h-full md:min-h-[400px]",children:o.jsx("div",{className:"",children:o.jsx(or,{src:`${ze}/${t.cover}`||"",alt:(n==="en"?t.media_name:t.media_name_indo)||"cover",className:"w-full"})})}),o.jsxs("div",{className:"relative space-y-2 border max-w-md xl:max-w-xl pt-6 pb-12 px-8 shadow-sm",children:[o.jsxs("div",{className:"px-4 border-l border-x-pmi-gray-lighter",children:[o.jsx("h2",{className:"font-medium text-lg text-gray-900",children:n==="en"?t.media_name:t.media_name_indo}),o.jsx("p",{className:"text-pmi-gray text-base",children:t.year})]}),o.jsxs("div",{className:"grid grid-cols-2 justify-items-center content-center gap-4 py-2",children:[o.jsx(sc,{link:t.external_url,className:"w-full bg-pmi-red text-pmi-white py-2 px-4 rounded-md text-sm text-center hover:opacity-75"}),o.jsx("button",{onClick:()=>i(t.external_url),className:"w-full bg-pmi-dark-gray text-pmi-white py-2 px-4 rounded-md text-sm text-center hover:opacity-75",children:e("copyLink")})]}),o.jsx("h3",{className:"uppercase font-bold text-sm",children:e("common:abstract")}),o.jsx("div",{className:"text-justify text-sm text-pmi-gray leading-4 font-light",children:o.jsx("p",{className:"relative space-y-2",children:o.jsx(Et,{content:n==="en"?t.desc:t.desc_indo})})})]})]})},fL=()=>{const{t}=Se(["menu","common"]),{id:e}=ni(),{language:n}=_e(),{data:i}=Tre(e||"");if(!i)return null;const r=[{label:t("menu:home"),path:"/"},{label:t("menu:pmiLibrary"),path:"/about-us/library/pmi-library"},{label:i.media_type_name||"",path:`/about-us/library/pmi-library/${Qx(i.media_type_name||"")}`},{label:(n==="en"?i.media_name:i.media_name_indo)||""}];return o.jsx(Ye,{type:"default",title:"pmiLibrary",breadcrumbs:r,description:(n==="en"?i.desc:i.desc_indo)||"",children:o.jsx(Xfe,{data:i})})},Jfe=()=>{const{t}=Se(["common"]),{language:e}=_e(),{data:n}=ba("library_ebooks");return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center mb-12 z-30",children:[!n&&o.jsx(ya,{isSearch:!0,title:t("common:library.ebooks.title"),description:t("common:library.ebooks.digitalCollection"),searchPlaceholder:t("common:library.ebooks.searchEbookTitle"),type:"library_ebooks"}),n&&o.jsx(ya,{isSearch:!0,title:e==="en"?n==null?void 0:n.media_type_name:n==null?void 0:n.media_type_name_indo,description:t("common:library.ebooks.digitalCollection"),searchPlaceholder:e==="en"?n==null?void 0:n.media_type_name:n==null?void 0:n.media_type_name_indo,type:"library_ebooks"})]})},Qfe=({data:t,page:e=1})=>{const{t:n}=Se(["common"]),{language:i}=_e(),[r,s]=Z.useState(1);Z.useEffect(()=>{e&&s((e-1)*10)},[e,t]);const a=l=>{navigator.clipboard?navigator.clipboard.writeText(l).then(()=>wt.success(i==="en"?"Link copied!":"Tautan disalin!")).catch(()=>wt.error(i==="en"?"Failed to copy link":"Gagal menyalin tautan")):wt.warning(i==="en"?"Copy to clipboard is not supported":"Salin ke clipboard tidak didukung")};return o.jsx("div",{className:"overflow-x-auto py-4",children:o.jsxs("table",{className:"min-w-full bg-white border border-gray-200 text-pmi-gray",children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter w-2",children:"No."}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.cover")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.title")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.category")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.year")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter w-36",children:n("library.table.actions")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter w-32",children:n("library.table.share")})]})}),o.jsx("tbody",{children:t&&t.map((l,c)=>o.jsxs("tr",{className:"text-left text-sm",children:[o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter text-center",children:r+c+1}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter",children:o.jsx(or,{src:`${ze}/${l.cover}`||"",alt:l.media_name||`cover-${c}`,className:"w-16 h-auto object-cover mx-auto"})}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter",children:i==="en"?l.media_name:l.media_name_indo}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter text-center",children:i==="en"?l.media_category_name:l.media_category_name_indo}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter text-center",children:l.year}),o.jsxs("td",{className:"px-4 py-2 border border-pmi-gray-lighter space-x-2 text-center",children:[o.jsx("a",{href:`/about-us/library/pmi-library/e-books/${l.media_id}`,className:"bg-pmi-dark-gray text-sm text-pmi-white mx-auto px-4 py-2 rounded-lg hover:opacity-75",children:n("library.table.detail")}),o.jsx(sc,{link:l.external_url})]}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter",children:o.jsx("button",{onClick:()=>a(l.external_url),className:"flex md:relative md:justify-center text-sm bg-pmi-purple text-pmi-white mx-auto px-2 py-2 rounded-lg hover:opacity-75",children:n("copyLink")})})]},c))})]})})},Zfe=()=>{const{t}=Se(["common"]),[e,n]=Z.useState(1),[i,r]=Z.useState(1),{fields:s}=wr(),{language:a}=_e(),{data:l}=ba("library_ebooks"),{data:c,refetch:d,isLoading:u}=eg("library_ebooks",e,s&&s.category||void 0,s&&s.query||void 0);Z.useEffect(()=>{s&&d()},[s]),Z.useEffect(()=>{d()},[e]),Z.useEffect(()=>{u==!1&&r(e)},[u,e]);const h=p=>{n(p)};return o.jsx("div",{className:"flex flex-wrap items-center justify-center px-2 py-8",children:o.jsxs("div",{className:"grid w-full max-w-6xl",children:[o.jsx("p",{className:"font-bold text-base",children:t("common:library.ebooks.ebookList",{mediaType:a==="en"?l==null?void 0:l.media_type_name:l==null?void 0:l.media_type_name_indo})}),o.jsx("p",{className:"text-sm text-pmi-gray",children:t("common:library.ebooks.browseCollections",{mediaType:a==="en"?l==null?void 0:l.media_type_name.toLowerCase():l==null?void 0:l.media_type_name_indo.toLowerCase()})}),c&&c.data.length<1&&o.jsx("p",{className:"text-center text-xl font-semibold",children:t("common:noData")}),c&&c.data.length>0&&o.jsx(Qfe,{data:c.data,page:i}),o.jsx("div",{className:"col-span-full border-b border-pmi-gray-lighter",children:o.jsx("p",{className:"w-full text-pmi-gray text-sm font-light mt-8",children:t("common:pagination",{start:(c==null?void 0:c.from)||
1770,end:(c==null?void 0:c.to)||0,total:(c==null?void 0:c.total)||0})})}),o.jsx("div",{className:"col-span-full justify-center mt-2",children:c&&c.links&&o.jsx(Hi,{links:c.links,onPageChange:h,currentPage:e})})]})})},ege=()=>{const{t}=Se(["menu","common"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:pmiLibrary"),path:"/about-us/library/pmi-library"},{label:t("common:library.ebooks.title")}];return o.jsxs(Ye,{type:"default",title:"pmiLibrary",breadcrumbs:e,children:[o.jsx(Jfe,{}),o.jsx(Zfe,{})]})},tge=()=>{const{t}=Se(["common"]),{language:e}=_e(),{data:n}=ba("library_kie_media");return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center mb-12 z-30",children:[!n&&o.jsx(ya,{isSearch:!0,title:t("common:library.kieMedia.title"),description:t("common:library.kieMedia.educationalResources"),searchPlaceholder:t("common:library.kieMedia.searchKieMedia"),type:"library_kie_media"}),n&&o.jsx(ya,{isSearch:!0,title:e==="en"?n==null?void 0:n.media_type_name:n==null?void 0:n.media_type_name_indo,description:t("common:library.kieMedia.educationalResources"),searchPlaceholder:e==="en"?n==null?void 0:n.media_type_name:n==null?void 0:n.media_type_name_indo,type:"library_kie_media"})]})},nge=({data:t,page:e=1})=>{const{t:n}=Se(["common"]),{language:i}=_e(),[r,s]=Z.useState(0);Z.useEffect(()=>{e&&s((e-1)*10)},[e,t]);const a=l=>{navigator.clipboard?navigator.clipboard.writeText(l).then(()=>wt.success(i==="en"?"Link copied!":"Tautan disalin!")).catch(()=>wt.error(i==="en"?"Failed to copy link":"Gagal menyalin tautan")):wt.warning(i==="en"?"Copy to clipboard is not supported":"Salin ke clipboard tidak didukung")};return o.jsx("div",{className:"overflow-x-auto py-4",children:o.jsxs("table",{className:"min-w-full table-auto bg-white border border-gray-200 text-pmi-gray",children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter w-2",children:"No."}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.cover")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.title")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.category")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.year")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.format")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter w-36",children:n("library.table.actions")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter w-32",children:n("library.table.share")})]})}),o.jsx("tbody",{children:t&&t.map((l,c)=>o.jsxs("tr",{className:"text-left text-sm",children:[o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter text-center",children:r+c+1}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter",children:o.jsx(or,{src:`${ze}/${l.cover}`||"",alt:l.media_name||`cover-${c}`,className:"w-16 h-auto object-cover mx-auto"})}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter",children:i==="en"?l.media_name:l.media_name_indo}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter",children:i==="en"?l.media_category_name:l.media_category_name_indo}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter text-center",children:l.year}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter text-center",children:l.format}),o.jsxs("td",{className:"px-4 py-2 border border-pmi-gray-lighter space-x-2 text-center",children:[o.jsx("a",{href:`/about-us/library/pmi-library/kie-media/${l.media_id}`,className:"bg-pmi-dark-gray text-sm text-pmi-white mx-auto px-4 py-2 rounded-lg hover:opacity-75",children:n("library.table.detail")}),o.jsx(sc,{link:l.external_url})]}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter",children:o.jsx("button",{onClick:()=>a(l.external_url),className:"flex md:relative md:justify-center bg-pmi-purple text-sm text-pmi-white mx-auto px-2 py-2 rounded-lg hover:opacity-75",children:n("copyLink")})})]},c))})]})})},ige=()=>{const{t}=Se(["common"]),[e,n]=Z.useState(1),[i,r]=Z.useState(1),{fields:s}=wr(),{language:a}=_e(),{data:l}=ba("library_kie_media"),{data:c,refetch:d,isLoading:u}=eg("library_kie_media",e,s&&s.category||void 0,s&&s.query||void 0);Z.useEffect(()=>{s&&d()},[s]),Z.useEffect(()=>{d()},[e]),Z.useEffect(()=>{u==!1&&r(e)},[u,e]);const h=p=>{n(p)};return o.jsx("div",{className:"flex flex-wrap items-center justify-center px-2 py-8",children:o.jsxs("div",{className:"grid w-full max-w-6xl",children:[o.jsx("p",{className:"font-bold text-base",children:t("common:library.kieMedia.kieMediaList",{mediaType:a==="en"?l==null?void 0:l.media_type_name:l==null?void 0:l.media_type_name_indo})}),o.jsx("p",{className:"text-sm text-pmi-gray",children:t("common:library.kieMedia.browseInformativeResources")}),c&&c.data.length<1&&o.jsx("p",{className:"text-center text-xl font-semibold",children:t("common:noData")}),c&&c.data.length>0&&o.jsx(nge,{data:c.data,page:i}),o.jsx("div",{className:"col-span-full border-b border-pmi-gray-lighter",children:o.jsx("p",{className:"w-full text-pmi-gray text-sm font-light mt-8",children:t("common:pagination",{start:(c==null?void 0:c.from)||
1770,end:(c==null?void 0:c.to)||0,total:(c==null?void 0:c.total)||0})})}),o.jsx("div",{className:"col-span-full justify-center mt-2",children:c&&c.links&&o.jsx(Hi,{links:c.links,onPageChange:h,currentPage:e})})]})})},rge=()=>{const{t}=Se(["menu","common"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:pmiLibrary"),path:"/about-us/library/pmi-library"},{label:t("common:library.kieMedia.title")}];return o.jsxs(Ye,{type:"default",title:"pmiLibrary",breadcrumbs:e,children:[o.jsx(tge,{}),o.jsx(ige,{})]})},sge=()=>{const{t}=Se(["common"]),{language:e}=_e(),{data:n}=jre("Library");return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center mb-20 z-30",children:[o.jsxs("div",{className:"mt-10",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center",children:t("common:library.exploreOurLibrary")}),o.jsx("p",{className:"font-light text-lg text-pmi-gray text-center max-w-screen-lg",children:t("common:library.accessPhotosVideosAudiosPublicationsMediaAndEBooks")})]}),o.jsxs("div",{className:"grid grid-rows-2 md:grid-flow-col gap-4 max-w-6xl px-2",children:[o.jsx("div",{className:"row-span-3 col-span-2 md:col-span-1",children:o.jsxs("a",{href:"/about-us/library/pmi-library/kie-media",className:"cursor-pointer",children:[!n&&o.jsx(ka,{title:t("common:library.kieMedia.title"),icon:"/svg/library/kie-media.svg",image:"/png/library/menu-kie-media.png",customContainer:"relative overflow-hidden shadow-lg max-w-md md:max-w-48 2xl:max-w-md md:min-w-36 lg:min-w-[14.5rem]",customChildContainer:"bg-gradient-to-r from-[#85000E] to-transparent bg-[#580114] bg-opacity-[.01] rounded-2xl",customImgClass:"w-full h-40 md:h-80 lg:h-72"}),n&&n.filter((i,r)=>[0].includes(r)).map(i=>o.jsx(ka,{title:e==="en"?i.media_type_name:i.media_type_name_indo,icon:"/svg/library/kie-media.svg",image:"/png/library/menu-kie-media.png",customContainer:"relative overflow-hidden shadow-lg max-w-md md:max-w-48 2xl:max-w-md md:min-w-36 lg:min-w-[14.5rem]",customChildContainer:"bg-gradient-to-r from-[#85000E] to-transparent bg-[#580114] bg-opacity-[.01] rounded-2xl",customImgClass:"w-full h-40 md:h-80 lg:h-72"}))]})}),o.jsxs("div",{className:"col-span-2 flex flex-col md:flex-row gap-4",children:[!n&&o.jsxs(o.Fragment,{children:[o.jsx("a",{href:"/about-us/library/pmi-library/activity-photos",className:"cursor-pointer",children:o.jsx(ka,{title:t("common:library.activityPhotos.title"),icon:"/svg/library/photos.svg",image:"/png/library/menu-activities-photo.png",customContainer:"relative overflow-hidden max-w-md md:max-w-xs lg:max-w-full lg:max-h-32",customChildContainer:"bg-gradient-to-r from-[#510015] to-transparent bg-[#070125] bg-opacity-10 rounded-2xl",customImgClass:"w-full lg:max-w-xl h-40 lg:h-32",flexRow:!0})}),o.jsx("a",{href:"/about-us/library/pmi-library/activity-videos",className:"cursor-pointer",children:o.jsx(ka,{title:t("common:library.activityVideos.title"),icon:"/svg/library/video.svg",image:"/png/library/menu-activities-video.png",customContainer:"relative overflow-hidden max-w-md md:max-w-xs lg:max-w-full lg:max-h-32",customChildContainer:"bg-gradient-to-r from-[#020228] to-transparent bg-[#5E696D] bg-opacity-10 rounded-2xl",customImgClass:"w-full max-w-xl h-40 lg:h-32",flexRow:!0})})]}),n&&n.filter((i,r)=>[1,2].includes(r)).map((i,r)=>o.jsx("a",{href:`/about-us/library/pmi-library/${["activity-photos","activity-videos"][r]}`,className:"cursor-pointer",children:o.jsx(ka,{title:e==="en"?i.media_type_name:i.media_type_name_indo,icon:`/svg/library/${["photos.svg","video.svg"][r]}`,image:`/png/library/${["menu-activities-photo.png","menu-activities-video.png"][r]}`,customContainer:"relative overflow-hidden max-w-md md:max-w-xs lg:max-w-full lg:max-h-32",customChildContainer:"bg-gradient-to-r from-[#510015] to-transparent bg-[#070125] bg-opacity-10 rounded-2xl",customImgClass:"w-full lg:max-w-xl h-40 lg:h-32",flexRow:!0})}))]}),o.jsxs("div",{className:"row-span-2 col-span-2 flex flex-col md:flex-row gap-4 max-w-m",children:[!n&&o.jsxs(o.Fragment,{children:[o.jsx("a",{href:"/about-us/library/pmi-library/e-books",className:"cursor-pointer ",children:o.jsx(ka,{title:t("common:library.ebooks.title"),icon:"/svg/library/e-books.svg",image:"",customContainer:"relative overflow-hidden max-w-md md:max-w-44 lg:max-w-60 xl:max-w-[17rem]",customChildContainer:"bg-gradient-to-r from-[#520016] to-transparent bg-[#1F0119] bg-opacity-100 rounded-2xl",customImgClass:"w-72 xl:w-80 h-36 rounded-2xl"})}),o.jsx("a",{href:"/about-us/library/pmi-library/publications",className:"cursor-pointer",children:o.jsx(ka,{title:t("common:library.publications.title"),icon:"/svg/library/publications.svg",image:"/png/library/menu-publications.png",customContainer:"relative overflow-hidden max-w-md md:max-w-md lg:max-w-72 xl:max-w-md",customChildContainer:"bg-gradient-to-r from-[#190119] to-transparent bg-[#202B49] bg-opacity-10 rounded-2xl",customImgClass:"w-full xl:w-[550px] h-36"})}),o.jsx("a",{href:"/about-us/library/pmi-library/audio",className:"cursor-pointer",children:o.jsx(ka,{title:t("common:library.audio.title"),icon:"/svg/library/audio.svg",image:"",customContainer:"relative overflow-hidden max-w-md md:max-w-36 lg:max-w-48 xl:max-w-60",customChildContainer:"bg-gradient-to-r from-[#293450] to-transparent bg-[#5E696D] bg-opacity-100 rounded-2xl",customImgClass:"w-52 xl:w-64 h-36 rounded-2xl"})})]}),n&&n.filter((i,r)=>[3,4,5].includes(r)).map((i,r)=>o.jsx("a",{href:`/about-us/library/pmi-library/${["e-books","publications","audio"][r]}`,className:"cursor-pointer",children:o.jsx(ka,{title:e==="en"?i.media_type_name:i.media_type_name_indo,icon:`/svg/library/${["e-books.svg","publications.svg","audio.svg"][r]}`,image:`/png/library/${["","menu-publications.png",""][r]}`,customContainer:`relative overflow-hidden max-w-md ${["md:max-w-44 lg:max-w-60 xl:max-w-[17rem]","md:max-w-md lg:max-w-72 xl:max-w-md","md:max-w-36 lg:max-w-48 xl:max-w-60"][r]}`,customChildContainer:`rounded-2xl bg-gradient-to-r ${["from-[#520016] to-transparent bg-[#1F0119]","from-[#190119] to-transparent bg-[#202B49] bg-opacity-10","from-[#293450] to-transparent bg-[#5E696D]"][r]}`,customImgClass:`h-36 ${["w-72 xl:w-80 rounded-2xl","w-full xl:w-[550px]","w-52 xl:w-64 roun
177ded-2xl"][r]}`})}))]})]})]})},age=({page:t="Pustaka PMI"})=>{const{t:e}=Se(["common"]),{data:n}=OB(t),i=[{icon:"/svg/visitors/user-duotone.svg",label:"totalVisitorsToday",total:(n==null?void 0:n.today)||0},{icon:"/svg/visitors/user-duotone.svg",label:"totalVisitorsAllTime",total:(n==null?void 0:n.all)||0},{icon:"/svg/visitors/download-bold-duotone.svg",label:"totalDownloads",total:(n==null?void 0:n.download)||0}];return o.jsxs("div",{className:"flex flex-col flex-wrap gap-4 items-center justify-center mt-8 py-8",children:[o.jsx("p",{className:"font-light text-lg text-pmi-gray text-center max-w-96",children:e("common:home.ourGrowingComunity")}),o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center",children:e("common:home.visitorInsights")}),o.jsx("div",{className:"flex flex-col lg:flex-row justify-center gap-2 lg:gap-10 py-8",children:i.map((r,s)=>o.jsx(RB,{title:e(`common:library.${r.label}`),value:r.total,icon:r.icon},s))})]})},oge=()=>{const{t}=Se(["menu","common"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:pmiLibrary")}];return o.jsxs(Ye,{type:"default",title:"pmiLibrary",breadcrumbs:e,children:[o.jsx(sge,{}),o.jsx(age,{})]})},lge=()=>{const{t}=Se(["common"]),{language:e}=_e(),{data:n}=ba("library_publications");return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center mb-12 z-30",children:[!n&&o.jsx(ya,{isSearch:!0,title:t("common:library.publications.title"),description:t("common:library.publications.inDepthReports"),searchPlaceholder:t("common:library.publications.searchPublications"),type:"library_publications"}),n&&o.jsx(ya,{isSearch:!0,title:e==="en"?n==null?void 0:n.media_type_name:n==null?void 0:n.media_type_name_indo,description:t("common:library.publications.inDepthReports"),searchPlaceholder:e==="en"?n==null?void 0:n.media_type_name:n==null?void 0:n.media_type_name_indo,type:"library_publications"})]})},cge=({data:t,page:e=1})=>{const{t:n}=Se(["common"]),{language:i}=_e(),[r,s]=Z.useState(1);Z.useEffect(()=>{e&&s((e-1)*10)},[e,t]);const a=l=>{navigator.clipboard?navigator.clipboard.writeText(l).then(()=>wt.success(i==="en"?"Link copied!":"Tautan disalin!")).catch(()=>wt.error(i==="en"?"Failed to copy link":"Gagal menyalin tautan")):wt.warning(i==="en"?"Copy to clipboard is not supported":"Salin ke clipboard tidak didukung")};return o.jsx("div",{className:"overflow-x-auto py-4",children:o.jsxs("table",{className:"min-w-full bg-white border border-gray-200 text-pmi-gray",children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter w-5",children:"No."}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.title")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.category")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.year")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.mediaType")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.fileSize")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:n("library.table.format")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter w-24",children:n("library.table.actions")}),o.jsx("th",{className:"font-medium text-sm text-center px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter w-32",children:n("library.table.share")})]})}),o.jsx("tbody",{children:t&&t.map((l,c)=>o.jsxs("tr",{className:"text-left",children:[o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter text-center",children:r+c+1}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter",children:i==="en"?l.media_name:l.media_name_indo}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter",children:i==="en"?l.media_category_name:l.media_category_name_indo}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter text-center",children:l.year}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter text-center",children:l.type}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter text-center",children:kS(l.size||0)}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter text-center uppercase",children:l.format}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter text-center",children:o.jsx(sc,{link:l.external_url})}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter",children:o.jsx("button",{onClick:()=>a(l.external_url),className:"flex md:relative md:justify-center bg-pmi-purple text-sm text-pmi-white mx-auto px-2 py-2 rounded-lg hover:opacity-75",children:n("copyLink")})})]},c))})]})})},dge=()=>{const{t}=Se(["common"]),[e,n]=Z.useState(1),[i,r]=Z.useState(1),{fields:s}=wr(),{language:a}=_e(),{data:l}=ba("library_publications"),{data:c,refetch:d,isLoading:u}=eg("library_publications",e,s&&s.category||void 0,s&&s.query||void 0);Z.useEffect(()=>{s&&d()},[s]),Z.useEffect(()=>{d()},[e]),Z.useEffect(()=>{u==!1&&r(e)},[u,e]);const h=p=>{n(p)};return o.jsx("div",{className:"flex flex-wrap items-center justify-center px-2 py-8",children:o.jsxs("div",{className:"grid w-full max-w-6xl",children:[o.jsx("p",{className:"font-bold text-base",children:t("common:library.publications.publicationsList",{mediaType:a==="en"?l==null?void 0:l.media_type_name:l==null?void 0:l.media_type_name_indo})}),o.jsx("p",{className:"text-sm text-pmi-gray",children:t("common:library.publications.browsePublications",{mediaType:a==="en"?l==null?void 0:l.media_type_name.toLowerCase():l==null?void 0:l.media_type_name_indo.toLowerCase()})}),c&&c.data.length<1&&o.jsx("p",{className:"text-center text-xl font-semibold",children:t("common:noData")}),c&&c.data.length>0&&o.jsx(cge,{data:c.data,page:i}),o.jsx("div",{className:"col-span-full border-b border-pmi-gray-lighter",children:o.jsx("p",{className:"w-full text-pmi-gray text-sm font-light mt-8",children:t("common:pagination",{start:(c==null?void 0:c.from)||
1770,end:(c==null?void 0:c.to)||0,total:(c==null?void 0:c.total)||0})})}),o.jsx("div",{className:"col-span-full justify-center mt-2",children:c&&o.jsx(Hi,{links:c==null?void 0:c.links,onPageChange:h,currentPage:e})})]})})},uge=()=>{const{t}=Se(["menu","common"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:pmiLibrary"),path:"/about-us/library/pmi-library"},{label:t("common:library.publications.title")}];return o.jsxs(Ye,{type:"default",title:"pmiLibrary",breadcrumbs:e,children:[o.jsx(lge,{}),o.jsx(dge,{})]})},hge=({isOpen:t,onClose:e,publication:n,data:i})=>{const{t:r}=Se("t"),{language:s}=_e(),a=(l,c)=>{l.preventDefault(),Ld.event({category:"Download",action:"click_download_button",label:"User downloaded file"}),window.open(c,"_blank")};return o.jsxs(cs,{open:t,onClose:e,className:"fixed inset-0 inset-y-40 z-50 flex items-center justify-center px-2 mt-40 lg:mt-56 xl:mt-8",children:[o.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50"}),o.jsx(nc,{className:"w-full max-w-2xl min-h-96 overflow-hidden text-left align-middle rounded-2xl shadow-xl relative",style:{backgroundImage:"linear-gradient(135deg, #951000, #C8484C)",backgroundSize:"cover",backgroundPosition:"center"},children:o.jsxs("div",{className:"bg-cover h-full bg-[url('/png/publications/bg.png')] p-6",children:[i&&o.jsxs(pv,{className:"flex justify-between items-center z-50",children:[o.jsx("span",{children:"Â "}),o.jsx("p",{className:"text-2xl font-medium leading-6 text-white text-center",children:n&&(s==="en"?n.media_type_name:n.media_type_name_indo)}),o.jsx("button",{className:"text-pmi-white hover:text-gray-lighter -mt-4 text-2xl z-50",onClick:e,children:o.jsx(cp,{color:"#ffffff",addClassName:"w-8 h-8"})})]}),o.jsxs("div",{className:"flex flex-col justify-center items-center gap-6 mt-4 z-50 overflow-y-auto scroll-container h-[50vh]",children:[i&&i.map((l,c)=>o.jsxs("a",{href:`${ze}/${l.path}`,onClick:d=>a(d,`${ze}/${l.path}`),className:"cursor-pointer w-full max-w-72 bg-pmi-white hover:bg-pmi-gray-light py-4 px-8 rounded-xl drop-shadow-lg z-50",children:[o.jsx("p",{className:"text-lg",children:s==="en"?l.media_name:l.media_type_name_indo}),o.jsxs("p",{className:"flex justify-center items-center gap-2 text-sm capitalize ",children:[o.jsx("span",{className:"text-pmi-gray",children:r("download")}),o.jsx("img",{src:"/svg/download.svg",alt:r("download"),className:"w-4 -h-4"})]})]},c)),i&&i.length===0&&o.jsx("p",{className:"font-medium text-lg text-pmi-white",children:r("common:noData")})]})]})})]})},pge={desktop:{breakpoint:{max:4e3,min:1024},items:5},tablet:{breakpoint:{max:1024,min:768},items:2},mobile:{breakpoint:{max:768,min:0},items:1}},mge=({publicationTypes:t,openModal:e})=>{const{language:n}=_e(),{t:i}=Se(["common"]),r=Z.useRef(null),s=()=>{r.current&&r.current.previous(0)},a=()=>{r.current&&r.current.next(0)};return o.jsxs("div",{className:"relative px-4",children:[o.jsxs("div",{className:"absolute w-full flex justify-between items-center top-1/2 transform -translate-y-1/2 z-20",children:[o.jsx("button",{className:"text-white -ml-8",onClick:s,children:o.jsx("img",{src:"/svg/arrow/arrow-left-gray.svg",alt:"left",className:"w-6 h-6 md:w-12 md:h-12"})}),o.jsx("button",{className:"text-white",onClick:a,children:o.jsx("img",{src:"/svg/arrow/arrow-right-gray.svg",alt:"right",className:"w-6 h-6 md:w-12 md:h-12"})})]}),o.jsx("div",{className:"relative px-2 md:px-6 z-10",children:o.jsxs(Z1,{ref:r,responsive:pge,infinite:!1,arrows:!1,autoPlay:!1,keyBoardControl:!0,customTransition:"all 0.5s",transitionDuration:500,containerClass:"px-2",itemClass:"px-2",renderButtonGroupOutside:!0,children:[t.map((l,c)=>o.jsxs("div",{className:"w-full border xl:max-w-xs rounded-2xl bg-white shadow-lg h-full",children:[o.jsx("div",{className:"bg-pmi-red-dark bg-gradient-to-r from-pmi-red-dark to-pmi-red-light rounded-t-2xl py-2 px-2",children:o.jsx("h3",{className:"font-bold text-center text-2xl text-pmi-white",children:n==="en"?l.media_type_name:l.media_type_name_indo})}),o.jsxs("div",{className:"space-y-6 px-2 py-8",children:[o.jsx("div",{className:"w-full flex items-center justify-center shadow-lg overflow-hidden aspect-[210/297] max-h-[80vh]",children:o.jsx("img",{src:`${ze}/${l.background}`,alt:`${l.media_type_name}`,className:"h-full w-full object-cover"})}),o.jsxs("div",{className:"flex flex-col gap-y-2 px-2 items-center justify-center text-center",children:[o.jsx("button",{className:"w-full p-2 bg-pmi-red font-semibold text-white text-sm rounded-lg shadow-sm",onClick:()=>e(l),children:i("common:publications.viewReport")}),l.external_url&&o.jsx("a",{href:l.external_url,target:"_blank",className:"w-full p-2 bg-pmi-red font-semibold text-white text-sm rounded-lg shadow-sm",children:i("common:publications.watchReport")})]})]})]},c)),t.map((l,c)=>o.jsxs("div",{className:"w-full border xl:max-w-xs rounded-2xl bg-white shadow-lg h-full",children:[o.jsx("div",{className:"bg-pmi-red-dark bg-gradient-to-r from-pmi-red-dark to-pmi-red-light rounded-t-2xl py-2 px-2",children:o.jsx("h3",{className:"font-bold text-center text-2xl text-pmi-white",children:n==="en"?l.media_type_name:l.media_type_name_indo})}),o.jsxs("div",{className:"space-y-6 px-2 py-8",children:[o.jsx("div",{className:"w-full flex items-center justify-center shadow-lg overflow-hidden aspect-[210/297] max-h-[80vh]",children:o.jsx("img",{src:`${ze}/${l.background}`,alt:`${l.media_type_name}`,className:"h-full w-full object-cover"})}),o.jsxs("div",{className:"flex flex-col gap-y-2 px-2 items-center justify-center text-center",children:[o.jsx("button",{className:"w-full p-2 bg-pmi-red font-semibold text-white text-sm rounded-lg shadow-sm",onClick:()=>e(l),children:i("common:publications.viewReport")}),l.external_url&&o.jsx("a",{href:l.external_url,target:"_blank",className:"w-full p-2 bg-pmi-red font-semibold text-white text-sm rounded-lg shadow-sm",children:i("common:publications.watchReport")})]})]})]},c))]})})]})},fge=async()=>{const t=an({void:0}),e=await He.get(`/api/publication-type/list${t}`);if(!e)throw new Error("Network response was not ok");return e.data},gge=async t=>{const e=an({void:0,media_type:t}),n=await He.get(`/api/api-publication-items${e}`);if(!n)throw new Error("Network response was not ok");return n.data},xge=()=>Ge({queryKey:["publications"],queryFn:fge,staleTime:1e3*60*60,gcTime:1e3*60*60}),yge=t=>Ge({queryKey:["publication_item"],queryFn:()=>gge(t),staleTime:1e3*60*60,gcTime:1e3*60*60,enabled:!1}),bge=()=>{const{t}=Se(["common"]),[e,n]=Z.useState(null),[i,r]=Z.useState(!1),{data:s,isLoading:a}=xge(),{data:l,isSuccess:c,refetch:d}=yge(e?e.media_type_id:"");Z.useEffect(()=>{d()},[e]);const u=p=>{n(p),r(!0)},h=()=>r(!1);return o.jsxs("div",{className:"flex flex-col flex-wrap gap-4 items-center justify-center py-8 xl:px-2 px-8",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center",children:t("common:publications.title")}),o.jsxs("div",{className:"w-full max-w-6xl justify-center mt-6",children:[a&&[1].map(p=>o.jsx(Ot,{onlyImage:!0,minHeight:"min-h-40",minWidth:"min-w-64"}
177,p)),s&&o.jsx(mge,{publicationTypes:s,openModal:u})]}),o.jsx("a",{href:"/about-us/library/pmi-library",className:"w-full max-w-96 py-2 btn bg-pmi-red font-bold text-white text-base text-center rounded-lg shadow-sm my-8",children:t("common:publications.seePmiLibrary")}),l&&c&&o.jsx(hge,{isOpen:i,onClose:h,publication:e,data:l})]})},vge=()=>{const{t}=Se(["menu","common"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:publications")}];return o.jsx(Ye,{type:"default",title:"publications",breadcrumbs:e,children:o.jsx(bge,{})})},wge=()=>{const{t}=Se(["common"]),{language:e}=_e(),{data:n,isLoading:i}=UB("TFA-002"),{data:r}=VB("TFA-002"),[s,a]=Z.useState({}),{selectedCategory:l}=ZN();return Z.useEffect(()=>{const c=d=>d.reduce((u,h)=>{const{faq_category_id:p}=h;return u[p]||(u[p]=[]),u[p].push(h),u},{});if(n){const d=c(n);a(d)}},[n]),i&&!i?o.jsx("div",{className:"flex justify-center items-center py-8",children:o.jsx(ZA,{addClassName:"animate-spin w-96"})}):r&&o.jsxs("div",{className:"py-8 px-2 mt-8",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center py-2",children:"FAQ"}),o.jsx("p",{className:"font-light text-lg text-pmi-gray text-center py-2",children:t("common:faq.description")}),o.jsxs("div",{className:"flex flex-col md:flex-row flex-wrap justify-center gap-8 my-8",children:[o.jsx("div",{className:"w-full max-w-3xl space-y-4",children:r.map((c,d)=>(l===c.faq_category_id||l==="all")&&o.jsxs("div",{className:"first:pt-0 py-8",children:[o.jsx("h2",{className:"uppercase font-medium text-2xl text-pmi-red pb-6",children:e==="en"?c.category_name:c.category_name_indo}),s[c.faq_category_id]&&o.jsx(BB,{faqItems:s[c.faq_category_id]})]},d))}),o.jsx("div",{className:"w-full lg:max-w-xs",children:r&&o.jsx(zB,{categories:r})})]})]})},kge=()=>{const{t}=Se(["menu"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:faq")}];return o.jsx(Ye,{type:"default",title:"faq",breadcrumbs:e,children:o.jsx(HB,{children:o.jsx(wge,{})})})},Sge=[{path:"/about-us/library/pmi-library",element:o.jsx(oge,{}),errorElement:o.jsx(We,{})},{path:"/about-us/library/pmi-library/kie-media",element:o.jsx(rge,{}),errorElement:o.jsx(We,{})},{path:"/about-us/library/pmi-library/kie-media/:id",element:o.jsx(fL,{}),errorElement:o.jsx(We,{})},{path:"/about-us/library/pmi-library/activity-photos",element:o.jsx(Hfe,{}),errorElement:o.jsx(We,{})},{path:"/about-us/library/pmi-library/activity-videos",element:o.jsx(Wfe,{}),errorElement:o.jsx(We,{})},{path:"/about-us/library/pmi-library/e-books",element:o.jsx(ege,{}),errorElement:o.jsx(We,{})},{path:"/about-us/library/pmi-library/e-books/:id",element:o.jsx(fL,{}),errorElement:o.jsx(We,{})},{path:"/about-us/library/pmi-library/publications",element:o.jsx(uge,{}),errorElement:o.jsx(We,{})},{path:"/about-us/library/pmi-library/audio",element:o.jsx(Yfe,{}),errorElement:o.jsx(We,{})},{path:"/about-us/library/publications",element:o.jsx(vge,{}),errorElement:o.jsx(We,{})},{path:"/about-us/library/faq",element:o.jsx(kge,{}),errorElement:o.jsx(We,{})}],Cge=({title:t,subtitle:e,image:n,description:i,raised:r,goal:s,progress:a,status:l,urlDonate:c,urlDetail:d,impactSlug:u,openModal:h})=>{const{t:p}=Se(["common"]),y=a>100?100:a;return o.jsxs("div",{className:"group w-full max-w-md lg:max-w-sm rounded overflow-hidden shadow-lg bg-white h-full",children:[o.jsx("div",{className:"relative",children:o.jsx(or,{className:"w-full h-96 lg:h-64 object-cover",src:n,alt:t})}),o.jsxs("div",{className:"flex flex-col gap-2 px-4 py-4 justify-center items-center text-center",children:[o.jsx("p",{className:"capitalize font-medium text-sm xl:text-lg text-pmi-black leading-6 text-ellipsis overflow-hidden",style:{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"},children:t}),o.jsx("p",{className:"font-light text-lg text-pmi-gray text-center",children:e}),o.jsx("p",{className:"font-normal text-xs text-pmi-gray text-justify mb-8",children:i&&o.jsx(Et,{content:i})}),o.jsxs("div",{className:"w-full flex flex-col items-center",children:[o.jsxs("div",{className:"relative w-full bg-gray-200 h-2.5 mb-2",children:[o.jsx("div",{className:"absolute pb-2 roun
177ded-[999px] -top-8",style:{left:`${y-(y>98?12:6)}%`,right:`${y>10?32:87}%`},children:o.jsxs("p",{className:"bg-pmi-white text-pmi-red px-0.5 py-1 rounded-full font-semibold text-base",children:[y,"%"]})}),o.jsx("div",{className:"bg-pmi-red h-2.5 shadow-md",style:{width:`${y}%`}})]}),o.jsxs("div",{className:"w-full flex justify-between items-center",children:[o.jsxs("p",{className:"text-xs text-pmi-red",children:[p("monetaryCampaigns.raised"),": ",ma(r,0,0)]}),o.jsxs("p",{className:"text-xs text-pmi-gray",children:[p("monetaryCampaigns.goal"),": ",ma(s,0,0)]})]})]}),o.jsxs("div",{className:"w-full flex items-center justify-between gap-2",children:[l==0?o.jsx("a",{href:c,className:"w-full py-2 rounded-md text-sm bg-pmi-red text-pmi-white px-2 lg:px-2 xl:px-2 text-nowrap",children:p("monetaryCampaigns.donateNow")}):"",l==1&&u!=null?o.jsx("a",{href:`/donation/donation-impact/detail/${u}`,className:"w-full py-2 rounded-md text-sm bg-pmi-orange text-pmi-white px-1 lg:px-0 xl:px-2",children:p("monetaryCampaigns.donationImpact")}):"",o.jsx("a",{href:d,className:on({"w-full bg-pmi-gray-lighter text-pmi-gray py-2 rounded-md text-sm":!0,"px-4 lg:px-2 xl:px-4":l==0,"px-2 lg:px-2 xl:px-4":l==1}),children:p("monetaryCampaigns.viewDetail")}),o.jsx("button",{className:"min-w-8 border py-[.3rem] px-2 rounded-md",onClick:h,children:o.jsx("img",{src:"/svg/share.svg",alt:"share",className:"w-6 h-6"})})]})]})]})},jge=async t=>{const e=an({other_data:t}),n=await He.get(`/api/campaign-categories/has-other-data${e}`);if(!n)throw new Error("Network response was not ok");return n.data.categories},Tge=async(t,e=9,n,i,r,s)=>{const a=an({void:0,filter:n,category:r,page:t,status:i,size:e,lang:s}),l=await He.get(`/api/campaigns${a}`);if(!l)throw new Error("Network response was not ok");return l==null?void 0:l.data},Pge=async t=>{const e=await He.get(`/api/campaigns/${t}`);if(!e)throw new Error("Network response was not ok");return e==null?void 0:e.data},Ege=async t=>{const e=an({void:0,paginate:1,page:1,limit:10,campaign_id:t}),n=await He.get(`/api/campaign-gallery${e}`);if(!n)throw new Error("Network response was not ok");return n==null?void 0:n.data},Sz=t=>Ge({queryKey:["campaign_category"],queryFn:()=>jge(t),staleTime:1e3*60*60,gcTime:1e3*60*60}),Cz=(t,e,n,i,r,s)=>Ge({queryKey:["campaigns"],queryFn:()=>Tge(t,e,n,i,r,s),enabled:!1}),Age=t=>Ge({queryKey:["detail_campaign"],queryFn:()=>Pge(t),staleTime:1e3*60*60,gcTime:1e3*60*60}),Nge=t=>Ge({queryKey:["campaign_category",t],queryFn:()=>Ege(t),staleTime:1e3*60*60,gcTime:1e3*60*60}),Mge=({isOpen:t,closeModal:e,children:n,title:i})=>o.jsx(Sh,{appear:!0,show:t,as:Z.Fragment,children:o.jsxs(cs,{as:"div",className:"relative z-10",onClose:e,children:[o.jsx(Sh.Child,{as:Z.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:o.jsx("div",{className:"fixed inset-0 bg-pmi-gray bg-opacity-5"})}),o.jsx("div",{className:"fixed inset-0 overflow-y-auto",children:o.jsx("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:o.jsx(Sh.Child,{as:Z.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:o.jsxs(cs.Panel,{className:"w-full max-w-md transform overflow-hidden rounded-2xl bg-white p-6 text-left align-middle shadow-xl transition-all",children:[i&&o.jsxs(cs.Title,{as:"div",className:"leading-6 text-pmi-black border-b py-2 flex justify-between",children:[o.jsx("h3",{className:"text-xl font-medium",children:i}),o.jsx("span",{className:"cursor-pointer",onClick:e,children:o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),o.jsx("div",{className:"mt-4",children:n})]})})})})]})}),jz=({shareUrl:t,title:e,withoutTitle:n=!1,customClass:i="relative border rounded-md space-y-2 py-4 px-6"})=>{const{t:r}=Se(),s=encodeURIComponent(t),a=encodeURIComponent(e),l=[{platform:"Facebook",url:`https://www.facebook.com/sharer/sharer.php?u=${s}`,icon:"/svg/socials/facebook-red.svg"},{platform:"X (formerly Twitter)",url:`https://twitter.com/intent/tweet?text=${a}&url=${s}`,icon:"/svg/socials/x-red.svg"},{platform:"Instagram",url:`https://www.instagram.com/?url=${s}`,icon:"/svg/socials/instagram-red.svg"},{platform:"WhatsApp",url:`https://wa.me/?text=${a}%20${s}`,icon:"/svg/socials/wa-red.svg"},{platform:"Telegram",url:`https://t.me/share/url?url=${s}&text=${a}`,icon:"/svg/socials/telegram-red.svg"}],c=()=>{navigator.clipboard.writeText(t).then(()=>{wt.dark(r("common:successCopy"))}).catch(()=>wt.error(r("common:errorCopy")))};return o.jsxs("div",{className:i,children:[!n&&o.jsx("h3",{className:"font-medium text-2xl text-pmi-red text-center",children:r("common:share")}),o.jsxs("p",{className:"font-light text-lg text-pmi-",children:[r("common:share")," ",r("
177common:via")]}),o.jsx("div",{className:"flex items-center justify-center gap-6 py-6",children:l.map((d,u)=>o.jsx("a",{href:d.url,target:"_blank",rel:"noopener noreferrer","aria-label":`Share on ${d.platform}`,className:"rounded-full bg-pmi-gray-light hover:bg-pmi-gray-lighter p-2 ",children:o.jsx("img",{src:d.icon,alt:d.platform,className:"w-12 h-8 m-auto"})},u))}),o.jsxs("p",{className:"font-light text-base capitalize",children:[r("common:or")," ",o.jsx("span",{className:"lowercase",children:r("common:copyLink")})]}),o.jsxs("div",{className:"flex items-center space-x-2 mb-6 border rounded-md p-1",children:[o.jsx("img",{src:"/svg/socials/link.svg",alt:"link",className:"w-6 h-6 ml-2"}),o.jsx("input",{type:"text",value:t,readOnly:!0,className:"w-full px-3 py-2 border-none"}),o.jsx("button",{className:"bg-pmi-red text-white py-2 px-4 rounded hover:bg-pmi-dark-red transition-colors",onClick:c,children:"Copy"})]})]})},Dge=window.location.host,_ge=()=>{const{t}=Se(["common"]),{language:e}=_e(),{searchTerm:n}=kr(),{fields:i}=wr(),[r,s]=Z.useState(1),[a,l]=Z.useState(!1),[c,d]=Z.useState(null),{data:u,isFetching:h,refetch:p}=Cz(r,9,n,i&&i.campaignSort||"ongoing",i&&Number(i.campaignCategory)||null,e);Z.useEffect(()=>{(i||n)&&p()},[i,n,r]);const y=k=>{const b=u==null?void 0:u.data.find(x=>x.slug===k);b&&(d(b),l(!0))},m=()=>l(!1),w=k=>{s(k)};return o.jsx("div",{className:"flex items-center justify-center bg-pmi-white px-4 xl:px-20",children:o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 pt-6 pb-4 md:px-0",children:[o.jsx("div",{className:"col-span-full justify-center",children:!h&&(u==null?void 0:u.total)===0&&o.jsx("p",{className:"text-pmi-red text-3xl font-normal text-center",children:t("common:pressRelease.notFound")})}),h&&[1,2,3].map(k=>o.jsx(Ot,{onlyImage:!0,minHeight:"min-h-40",minWidth:"min-w-52"},k)),!h&&u&&u.data.map((k,b)=>o.jsx("div",{children:o.jsx(Cge,{title:e==="en"?k.title:k.title_indo,subtitle:JN(k.start_date,k.end_date),image:`${ze}/${k.path}`,description:e==="en"?k.description:k.description_indo,raised:Number(k.total_raised||0),goal:Number(k.goal_amount||0),progress:parseInt((Number(k.total_raised||0)/Number(k.goal_amount||0)*100).toFixed(0)),status:Number(k==null?void 0:k.status),urlDonate:`/donation/monetary/donate-now/${k.slug}`,urlDetail:`/donation/monetary/campaigns/${k.slug}`,impactSlug:k==null?void 0:k.impact_slug,openModal:()=>y(k.slug)})},b)),o.jsx(Mge,{isOpen:a,closeModal:m,title:t("common:share"),children:o.jsx(jz,{customClass:"relative space-y-2 py-4",shareUrl:`${Dge}/donation/monetary/campaigns/${c==null?void 0:c.slug}`,title:(c==null?void 0:c.title)||"",withoutTitle:!0})}),o.jsx("div",{className:"col-span-full border-b border-pmi-gray-lighter",children:u&&o.jsx("p",{className:"w-full text-pmi-gray text-sm font-light mt-8",children:t("common:pagination",{start:u.from||0,end:u.to||0,total:u.total||0})})}),o.jsx("div",{className:"col-span-full justify-center",children:u&&(u==null?void 0:u.links)&&o.jsx(Hi,{links:u.links,onPageChange:w})})]})})},Ige=()=>{const{t}=Se(["common"]),{language:e}=_e(),{fields:n,addField:i,updateField:r}=wr(),{data:s}=Sz("campaign");Z.useEffect(()=>{i("campaignCategory",""),i("campaignSort","")},[]);const a=l=>{r("campaignCategory",l?l.id.toString():"")};return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-8 px-4 xl:px-20",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center",children:t("common:monetaryCampaigns.campaignsTitle")}),o.jsx("p",{className:"font-light text-lg text-pmi-gray text-center",children:t("common:monetaryCampaigns.campaignsSubtitle")}),o.jsx("div",{className:"w-full max-w-2xl mx-auto py-8",children:o.jsx(up,{})}),o.jsxs("div",{className:"w-full max-w-7xl flex justify-between items-center gap-6 px-0 xl:px-8",children:[o.jsx("div",{className:"overflow-x-auto",children:o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("div",{className:on({"min-w-max text-sm px-2 py-2 border rounded-full cursor-pointer":!0,"bg-pmi-red text-pmi-white":n&&n.campaignCategory==="","bg-pmi-white text-pmi-gray border-pmi-gray":n&&n.campaignCategory!==""}),onClick:()=>a(null),children:t("common:monetaryCampaigns.seeAll")}),s&&s.map((l,c)=>o.jsx("div",{className:on({"min-w-max text-sm px-2 py-2 border rounded-full cursor-pointer":!0,"bg-pmi-red text-pmi-white":n&&n.campaignCategory===l.id.toString(),"bg-pmi-white text-pmi-gray border-pmi-gray":n&&n.campaignCategory!==l.id.toString()}),onClick:()=>a(l),children:e==="en"?l.title:l.title_indo},c))]})}),o.jsx("div",{className:"w-full max-w-36",children:o.jsx(er,{options:qne,value:n&&n.campaignSort,onChange:l=>r("campaignSort",l.toString()),label:"",transalation:!0,placeholder:t("monetaryCampaigns.ongoing"),textBase:"text-sm",customClass:"w-full bg-pmi-white border rounded-md p-2 cursor-pointer flex justify-between items-center text-pmi-gray focus:ring-2 focus:ring-pmi-red"})})]})]})},Rge=()=>{const{t}=Se(["menu"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:monetaryDonations"),path:"#"},{label:t("menu:campaigns")}];return o.jsxs(Ye,{type:"default",title:"campaigns",breadcrumbs:e,children:[o.jsx(Ige,{}),o.jsx(_ge,{})]})},Oge=({campaignId:t})=>{const{t:e}=Se(["common"]),{language:n}=_e(),{data:i,isLoading:r,refetch:s}=Nge(t),[a,l]=Z.useState(3);return Z.useEffect(()=>{s()},[]),o.jsxs("div",{className:"mb-4",children:[o.jsx("h3",{className:"px-8 py-3 bg-pmi-gray font-medium text-center text-xl text-pmi-white capitalize",children:e("common:monetaryCampaigns.gallery")}),o.jsxs("div",{className:"relative space-y-4 p-4 bg-pmi-gray-light",children:[r&&[1,2,3].map(c=>o.jsx(Ot,{onlyImage:!0,minHeight:"min-h-40",minWidth:"min-w-52"},c)),i&&i.data.map((c,d)=>d<a&&o.jsx(gv,{customClass:"max-w-lg bg-pmi-white p-4 mt-4",date:Ni(c.date,n),title:c.media.media_name,titleClass:"capitalize font-light text-sm text-pmi-black leading-6 text-ellipsis overflow-hidden",imageUrl:`${ze}/${c.media.path}`,dateOnTop:!0},d)),a<10&&((i==null?void 0:i.data.length)??0)>3&&o.jsx("p",{className:"text-center text-base text-pmi-red",onClick:()=>l(10),children:e("loadMore")})]})]})},Y2=({title:t,content:e})=>{const[n,i]=Z.useState(!1),r=()=>{i(!n)};return o.jsxs("div",{className:"w-full",children:[o.jsxs("div",{onClick:r,className:"cursor-pointer py-4 flex justify-between items-center",children:[o.jsx("h3",{className:"text-xl font-medium",children:t}),o.jsx("svg",{className:`w-4 h-4 text-pmi-red transition-transform duration-300 ${n?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),n&&o.jsx("div",{className:"bg-white",children:o.jsx(Et,{customClassName:"space-y-4",content:e})})]})},Lge=({campaign:t})=>{var s;const{t:e}=Se(["common"]),{language:n}=_e();let i=parseInt((Number((t==null?void 0:t.total_raised)||0)/Number((t==null?void 0:t.goal_amount)||0)*100).toFixed(0));const r=i>100?100:i;return o.jsx("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-8 px-4 md:px-20",children:o.jsxs("div",{className:"flex flex-col md:flex-row gap-10 w-full max-w-6xl",children:[o.jsxs("div",{className:"w-full py-8 space-y-12",children:[o.jsx(or,{src:`${ze}/${(s=t.media)==null?void 0:s.path}`,alt:n==="en"?t.title:t.title_indo,className:"w-full object-cover max-h-96"}),o.jsxs("div",{className:"divide-y space-y-4 text-pmi-black text-base font-light leading-8 text-ju
177stify",children:[o.jsx(Y2,{title:e("common:monetaryCampaigns.background"),content:n==="en"?t.campaign_background:t.campaign_background_indo}),o.jsx(Y2,{title:e("common:monetaryCampaigns.campaignDescription"),content:n==="en"?t.campaign_description:t.campaign_description_indo}),o.jsx(Y2,{title:e("common:monetaryCampaigns.fundAllocationPlan"),content:n==="en"?t.fund_allocation_plan:t.fund_allocation_plan_indo})]})]}),o.jsxs("div",{className:"max-w-[23rem] space-y-4",children:[o.jsxs("div",{className:"relative py-10 space-y-5 mb-4",children:[o.jsx("h3",{className:"font-bold text-3xl text-pmi-red",children:n==="en"?t.title:t.title_indo}),o.jsx(Et,{customClassName:"font-light text-sm text-pmi-gray",content:n==="en"?t.description:t.description_indo}),o.jsxs("div",{className:"flex justify-between items-start",children:[o.jsxs("div",{className:"relative space-y-4",children:[o.jsxs("h4",{className:"font-medium text-3xl text-pmi-red",children:["Rp ",Ok(Number(t.total_raised||0))]}),o.jsx("p",{className:"text-pmi-black text-base",children:e("common:monetaryCampaigns.raisedFrom",{amount:Ok(Number(t.goal_amount||0))})})]}),o.jsxs("div",{className:"flex gap-2",children:[o.jsx("img",{src:"/svg/donation.svg",alt:"donation",className:"w-6 h-6"}),o.jsxs("p",{className:"text-base text-pmi-gray",children:[ma(Number(t.total_donor),0,0)," ",e("common:monetaryCampaigns.donors")]})]})]}),o.jsx("div",{className:"relative w-full bg-gray-200 h-2.5 mb-2",children:o.jsx("div",{className:"bg-pmi-red h-2.5 shadow-md",style:{width:`${r}%`}})}),o.jsx("div",{className:"flex justify-end items-center",children:o.jsx("p",{className:"font-light text-pmi-gray text-sm",children:e("common:monetaryCampaigns.started",{time:Fne(t.start_date,n)})})}),(t==null?void 0:t.status)==0?o.jsx("div",{className:"flex items-center",children:o.jsx("a",{href:`/donation/monetary/donate-now/${t.slug}`,className:"w-full text-center bg-pmi-red text-pmi-white text-xl p-3 uppercase",children:e("common:monetaryCampaigns.donateNow")})}):""]}),o.jsx(jz,{shareUrl:window.location.href,title:n==="en"?t.title:t.title_indo}),o.jsx(Oge,{campaignId:t.id})]})]})})},Fge=()=>{const{t}=Se(["menu"]),{id:e}=ni(),{language:n}=_e(),{data:i,isLoading:r,isError:s}=Age(e||"");if(s)return o.jsx(xi,{});if(!i||r)return null;const a=[{label:t("menu:home"),path:"/"},{label:t("menu:monetaryDonations"),path:"#"},{label:t("menu:campaigns"),path:"/donation/monetary/campaigns"},{label:i==null?void 0:i.title}];return o.jsx(Ye,{type:"default",forceTitle:i==null?void 0:i.title,breadcrumbs:a,description:ic(n==="en"?i==null?void 0:i.description:i==null?void 0:i.description_indo),children:o.jsx(Lge,{campaign:i})})},Bge=({imageUrl:t,imageAlt:e,date:n,title:i,content:r})=>o.jsxs("div",{className:"max-w-4xl mx-auto bg-pmi-gray-light rounded-xl shadow-md overflow-hidden md:flex p-4",children:[o.jsx("div",{className:"md:flex-shrink-0",children:o.jsx(or,{className:"h-full w-full object-cover md:w-80 max-h-64",src:t,alt:e||"Card image"})}),o.jsxs("div",{className:"p-8",children:[o.jsx("h3",{className:"uppercase tracking-wide text-lg text-pmi-black font-semibold mt-2",children:i}),o.jsx("div",{className:"text-base text-gray-500",children:n}),o.jsx("p",{className:"mt-4 text-sm text-pmi-gray",children:o.jsx(Et,{content:r})})]})]}),$ge=async()=>{const t=await He.get("/api/why-donate");if(!t)throw new Error("Network response was not ok");return t==null?void 0:t.data},Hge=async()=>{const t=await He.get("/api/donation-skills-services/content");if(!t)throw new Error("Network response was not ok");return t==null?void 0:t.data},zge=async()=>{const t=await He.get("/api/donation-skills-services/gallery");if(!t)throw new Error("Network response was not ok");return t==null?void 0:t.data},Vge=async(t,e=9,n,i,r)=>{const s=an({page:t,size:e,keyword:n,category:i,lang:r,void:0,paginate:1}),a=await He.get(`/api/donation-impact/page-data${s}`);if(!a)throw new Error("Network response was not ok");return a.data},Uge=async t=>{const e=await He.get(`api/donation-impact/${t}/slug`);if(!e)throw new Error("Network response was not ok");return e==null?void 0:e.data},Wge=async()=>{const t=an({void:0}),e=await He.get(`/api/donation-amounts${t}`);if(!e)throw new Error("Network response was not ok");return e==null?void 0:e.data},Gge=async()=>{const t=an({void:0}),e=await He.get(`/api/donation-categories${t}`);if(!e)throw new Error("Network response was not ok");return e==null?void 0:e.data},qge=()=>Ge({queryKey:["why_donate"],queryFn:$ge,staleTime:1e3*60*60,gcTime:1e3*60*60}),Kge=()=>Ge({queryKey:["donation_skill_service_content"],queryFn:Hge,staleTime:1e3*60*60,gcTime:1e3*60*60}),Yge=()=>Ge({queryKey:["donation_skill_service_gallery"],queryFn:zge,staleTime:1e3*60*60,gcTime:1e3*60*60}),Xge=(t,e,n,i,r)=>Ge({queryKey:["donation_impact",n,i,t],queryFn:()=>Vge(t,e,n,i,r),enabled:!1}),Jge=t=>Ge({queryKey:["detail_impact",t],queryFn:()=>Uge(t),staleTime:1e3*60*60,gcTime:1e3*60*60}),Qge=()=>Ge({queryKey:["donation_amount"],queryFn:()=>Wge(),staleTime:1e3*60*60,gcTime:1e3*60*60}),Tz=()=>Ge({queryKey:["donation_category"],queryFn:()=>Gge(),staleTime:1e3*60*60,gcTime:1e3*60*60}),Zge=({donateType:t,campaign:e})=>{const[n,i]=Z.useState(null),{register:r,unregister:s,handleSubmit:a,watch:l,setValue:c,formState:{errors:d},reset:u}=Ks({defaultValues:n||{}}),[h,p]=Z.useState(-1),[y,m]=Z.useState([]),[w,k]=Z.useState(!1),{t:b}=Se(),x=ec(),{id:v}=ni(),{language:E}=_e(),{data:N}=Qge(),{data:S}=Tz(),_=l("receipt"),$=l("receipt_destination"),V=l("donation_category_id"),I=l("donation_purpose",v);r("donation_purpose",{required:!0}),r("donation_category_id",{required:!0});const A=Z.useRef(!1),[L,T]=Z.useState([]),g=(S==null?void 0:S.map(q=>({value:q.donation_category_id,label:E==="en"?q.donation_category_name:q.donation_category_name_indo,subtitle:E==="en"?q.desc:q.desc_indo})))||[];Z.useEffect(()=>{const q=sessionStorage.getItem("__DONATE___");if(q){const U=JSON.parse(q);
177U.amount=typeof U.amount=="number"?Number(U.amount).toLocaleString():U.amount,i(U)}},[]),Z.useEffect(()=>{N&&(N==null?void 0:N.length)>0?T(N.map(q=>q.amount)):T([])},[N??[]]),Z.useEffect(()=>{var ce;if(n){u(n);let H=(ce=n.amount)==null?void 0:ce.replace(/,/g,"");if(typeof n.amount=="string"){const B=L.findIndex(K=>Number(K)===Number(H));p(B)}return}if(!L.length||A.current||l("amount"))return;const q=N==null?void 0:N.find(H=>H.is_default===1),U=(q==null?void 0:q.amount)||Number(L[0]),Q=q&&N?N.indexOf(q):0;c("amount",d2(Number(U).toFixed(0))),p(Q),A.current=!0},[n,u,L,c]),Z.useEffect(()=>{V!=="DCA-001"&&V!=null?(c("receipt",!0),c("receipt_destination",1)):c("receipt",!1)},[V,c]),Z.useEffect(()=>{c("donation_type",t)},[t]),Z.useEffect(()=>{const q=e.find(Q=>Q.slug===v);q&&(c("campaign",q),c("donation_purpose",q.slug));const U=e.map(Q=>({value:Q.slug,label:E==="en"?Q.title:Q.title_indo}));m(U)},[v,e,E]),Z.useEffect(()=>{_||(s("receipt_destination"),s("contact_person"),s("name"),s("email"),s("phone"))},[_,s]);const f=()=>k(!0),j=()=>k(!1),P=q=>{q.preventDefault();const{id:U}=q.target,Q=Number(U);p(Q);let ce=Number(L[Q]);c("amount",d2(ce.toFixed(0)))},C=q=>{q.preventDefault();const{id:U}=q.target,Q=Number(U);c("receipt",Q==0),c("receipt_destination",1)},D=q=>{q.preventDefault();const{id:U}=q.target,Q=Number(U);c("receipt_destination",Q)},M=q=>{const{value:U}=q.target,Q=U.replace(/[.,]/g,"");if(/^\d*$/.test(Q)){const ce=parseInt(Q,10);if(!isNaN(ce)||U===""){const H=d2(Q);c("amount",H),H.indexOf(Q)&&p(-1)}}},z=q=>{const U=["Backspace","Delete","ArrowLeft","ArrowRight","Tab","Enter","Home","End","Escape","Shift","Control","Meta"];q.ctrlKey||q.metaKey||U.includes(q.key)||q.key.length===2&&q.key.startsWith("F")||/^\d$/.test(q.key)||q.key==="."&&q.currentTarget.value.split(".").length-1<1||q.preventDefault()},J=q=>{const U=e.find(Q=>Q.slug===q);U&&c("campaign",U),c("donation_purpose",q)},F=q=>{q&&(q.hasOwnProperty("receipt")||(q.receipt=!1),sessionStorage.setItem("__DONATE___",JSON.stringify(q)),x("/donation/monetary/donate-now/donation-confirmation"))};return o.jsxs(o.Fragment,{children:[o.jsx($h,{isOpen:w,closeModal:j,title:b("common:privacyPolicy.title"),children:o.jsx(ng,{})},w?"privacy-policy-open":"privacy-policy-closed"),o.jsxs("form",{onSubmit:a(F),className:"p-4 space-y-2 md:space-y-4",children:[o.jsx("label",{className:"text-base block mb-2",children:b("donateNow.donationAmount.label")}),o.jsx("div",{className:"flex gap-2 overflow-x-auto",children:L.map((q,U)=>o.jsxs("button",{id:`${U}`,className:on({"border rounded-full py-1 px-6":!0,"text-base text-pmi-gray":!0,"text-pmi-red bg-pmi-light-red border-pmi-red":h===U}),onClick:P,children:["Rp ",ma(q,0,0)]},U))}),o.jsxs("div",{className:"flex items-center border border-pmi-gray-lighter rounded p-2",children:[o.jsx("div",{className:"font-medium text-pmi-black text-xl mr-2 md:mr-4",children:"Rp"}),o.jsx("input",{type:"text",className:"max-w-72 md:max-w-full flex-grow font-medium text-right text-xl placeholder:text-pmi-gray border-none outline-none focus:ring-0",onKeyDown:z,placeholder:"0",...r("amount",{required:!0,validate:q=>parseFloat(q.replace(/[^\d.]/g,""))>=1e4||b("donateNow.donationAmount.minimumNote"),onChange:M})})]}),d.amount&&o.jsx("span",{className:"text-pmi-red",children:d.amount.message}),o.jsx("label",{className:"text-base block mb-2 mt-4",children:b("donateNow.donorCategory.label")}),o.jsx(er,{options:g,value:V,onChange:q=>c("donation_category_id",String(q)),transalation:!0,placeholder:b("donateNow.donorCategory.placeholder"),useSubtitle:!0}),d.donation_category_id&&o.jsx("span",{className:"text-pmi-red",children:b("validation.required")}),o.jsx("label",{className:"text-base block mb-2",children:b("donateNow.donationPurpose.label")}),o.jsx(er,{options:y,value:I,onChange:J,transalation:!0,placeholder:b("donateNow.donationPurpose.placeholder")}),d.donation_purpose&&o.jsx("span",{className:"text-pmi-red",children:b("validation.required")}),I&&e&&e.map(q=>q.slug===I&&o.jsx(Bge,{title:E==="en"?q.title:q.title_indo,date:JN(q.start_date,q.end_date,E),content:E==="en"?q.description_donate_now:q.description_donate_now_indo,imageUrl:`${ze}/${q.path}`,imageAlt:E==="en"?q.title:q.title_indo},q.id)),o.jsx("label",{className:"block mb-2",children:b("donateNow.receipt.label")}),o.jsx("div",{className:"flex gap-2",children:[E==="en"?"yes":"ya",E==="en"?"no":"tidak"].map((q,U)=>o.jsx("button",{id:`${U}`,disabled:q==="no"&&V!=="DCA-001"&&V!==void 0||q==="tidak"&&V!=="DCA-001"&&V!==void 0,className:on({"border rounded-full py-1 px-6":!0,"text-sm text-pmi-gray capitalize":!0,"text-pmi-red bg-pmi-light-red border-pmi-red":_&&U===0||!_&&U===1,"bg-zinc-200":q==="no"&&V!=="DCA-001"&&V!==void 0||q==="tidak"&&V!=="DCA-001"&&V!==void 0}),onClick:C,children:q},U))}),d.receipt&&o.jsx("span",{className:"text-pmi-red",children:b("validation.required")}),_&&o.jsxs(o.Fragment,{children:[o.jsx("label",{className:"block mb-2",children:b("donateNow.receipt.wantReceive")}),o.jsx("div",{className:"flex gap-2",children:[1,2].map((q,U)=>o.jsx("button",{id:`${q}`,className:on({"border rounded-full py-1 px-6":!0,"text-sm text-pmi-gray capitalize":!0,"text-pmi-red bg-pmi-light-red border-pmi-red":$===q}),onClick:D,children:q==1?"Email":"WA"},U))}),d.receipt&&o.jsx("span",{className:"text-pmi-red",children:b("validation.required")}),o.jsxs("div",{className:"space-y-4",children:[o.jsx("input",{placeholder:b("donateNow.receipt.nameLabel"),...r("name",{required:_?b("validation.required"):!1}),className:"w-full p-4 border border-pmi-gray-lighter rounded-md outline-none "}),d.name&&o.jsx("span",{className:"text-pmi-red",children:d.name.message}),V!="DCA-001"&&o.jsx("input",{placeholder:b("donateNow.receipt.companyNameLabel"),...r("contact_person",{required:_?b("validation.required"):!1}),className:"w-full p-4 border border-pmi-gray-lighter rounded-md outline-none"}),d.contact_person&&o.jsx("span",{className:"text-pmi-red",children:d.contact_person.message}),o.jsx("input",{placeholder:b("donateNow.receipt.emailLabel"),...r("email",{required:_&&$===1?b("validation.required"):!1}),className:"w-full p-4 border border-pmi-gray-lighter rounded-md outline-none ",type:"email"}),d.email&&o.jsx("span",{className:"text-pmi-red",children:d.email.message}),o.jsx(oy,{country:"id",enableSearch:!0,preferredCountries:["id"],...r("phone",{required:_&&$===2?b("validation.required"):!1}),value:l("phone")||"",onChange:q=>c("phone",q||""),inputProps:{name:"phone",className:"w-full py-4 px-14 border border-pmi-gray-lighter rounded-md outline-none"}}),d.phone&&o.jsx("span",{className:"text-pmi-red",children:d.phone.message})]})]}),o.jsxs("div",{className:"flex items-center mb-4",children:[o.jsx("input",{type:"checkbox",...r("privacy_policy",{required:!0}),className:"mr-2"}),o.jsxs("div",{className:"text-xs text-pmi-gray",children:[E==="en"&&o.jsxs(o.Fragment,{children:["I have read and agree to the ",o.jsx("button",{type:"button",onClick:f,className:"text-sm text-pmi-red",children:"Privacy Policy"})," regarding the collection and use of my personal data."]})," ",E==="id"&&o.jsxs(o.Fragment,{children:["Saya telah membaca dan setuju dengan ",o.jsx("button",{type:"button",onClick:f,className:"text-sm text-pmi-red",children:"Kebijakan Privasi"})," mengenai pengumpulan dan penggunaan data pribadi saya."]})]})]}),d.privacy_policy&&o.jsx("span",{className:"text-pmi-red",children:b("validation.requiredChecked")}),o.jsx("button",{type:"submit",className:"w-full bg-pmi-red text-white p-2 rounded-md",children:b("donateNow.button")})]})]})},exe=()=>{const{t}=Se(["common"]),{data:e,refetch:n}=Cz(1,100,null,"ongoing");return Z.useEffect(()=>{n()},[]),o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-8 px-2",children:[o.jsx("h2",{className:"font-bold text-4xl text-pmi-red text-center",children:t("common:donateNow.title")}),o.jsx("p",{className:"font-semibold text-xl text-pmi-black text-center max-w-screen-sm",children:t("common:donateNow.supportMessage")}),o.jsx("p",{className:"font-normal text-sm text-pmi-gray text-center max-w-screen-sm",children:t("common:donateNow.description")}),o.jsxs("div",{className:"max-w-3xl space-y-6 py-4",children:[o.jsx("h3",{className:"font-semibold text-lg text-pmi-red text-center max-w-screen-lg",children:t("common:donateNow.donationFrequency.label")}),e&&o.jsx(Zge,{donateType:1,campaign:e.data})]})]})},gL=()=>{const{t}=Se(["menu","common"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:monetaryDonations"),path:"#"},{label:t("menu:donateNow")}];return o.jsx(Ye,{type:"default",title:"donateNow",breadcrumbs:e,children:o.jsx(exe,{})})},txe=()=>{const{t}=Se(["common"]),{language:e}=_e(),n=iv(),{data:i}=Tz(),r=(i==null?void 0:i.map(s=>({value:s.donation_category_id,label:s.donation_category_name})))||[];return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-8 px-2",children:[o.jsx("h2",{className:"font-bold text-4xl text-pmi-red text-center",children:t("common:donateNow.donationConfirmation")}),o.jsx("p",{className:"font-semibold text-xl text-pmi-black text-center max-w-screen-sm",children:t("common:donateNow.reviewContributionDetail
177s")}),o.jsxs("div",{className:"w-full max-w-2xl space-y-2 py-4 md:py-8 pl-2 md:pl-16 pr-2 md:pr-12 bg-pmi-gray-light border",children:[o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-pmi-gray text-base",children:[o.jsx("p",{children:t("common:donateNow.donateFormLabel.donationAmount")}),o.jsxs("p",{className:"break-words",children:[":   Rp ",n.amount]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-pmi-gray text-base",children:[o.jsx("p",{children:t("common:donateNow.donateFormLabel.donorCategory")}),o.jsxs("p",{children:[":   ",r.map(s=>s.value!==n.donation_category_id||t(s.label))]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-pmi-gray text-base",children:[o.jsx("p",{children:t("common:donateNow.donateFormLabel.donationPurpose")}),o.jsxs("p",{children:[":   ",e==="en"?n.campaign.title:n.campaign.title_indo]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-pmi-gray text-base",children:[o.jsx("p",{children:t("common:donateNow.donateFormLabel.receipt")}),o.jsxs("p",{children:[":   ",n.name]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-pmi-gray text-base",children:[o.jsx("p",{children:t("common:donateNow.donateFormLabel.nameOnReceipt")}),o.jsxs("p",{children:[":   ",n.contact_person]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-pmi-gray text-base",children:[o.jsx("p",{children:t("common:donateNow.donateFormLabel.email")}),o.jsxs("p",{children:[":   ",n.email]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-pmi-gray text-base",children:[o.jsx("p",{children:t("common:donateNow.donateFormLabel.phoneNumber")}),o.jsxs("p",{children:[":   ",n.phone]})]})]}),o.jsxs("div",{className:"w-full max-w-2xl flex gap-2 py-4",children:[o.jsx("a",{href:"/donation/monetary/donate-now",className:"w-full bg-pmi-gray-lighter flex justify-center items-center text-pmi-gray text-base p-2 rounded-lg cursor-pointer hover:bg-pmi-gray-light",children:t("common:back")}),o.jsx("a",{href:"/donation/monetary/donate-now/payment",className:"w-full bg-pmi-red flex justify-center items-center text-base text-pmi-white p-2 rounded-lg cursor-pointer hover:bg-pmi-red-light",children:t("common:donateNow.continueToPayment")})]})]})},nxe=()=>{const{t}=Se(["menu","common"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:monetaryDonations"),path:"#"},{label:t("menu:donateNow"),path:"/donation/monetary/donate-now"},{label:t("menu:donationConfirmation")}];return Z.useState(()=>{window.scroll(0,0)}),o.jsx(Ye,{type:"default",title:"donationConfirmation",breadcrumbs:e,children:o.jsx(txe,{})})},ixe=async()=>{const t=an({void:0}),e=await He.get(`/api/payment-methods${t}`);if(!e)throw new Error("Network response was not ok");return e.data},rxe=()=>Ge({queryKey:["paymentChannels"],queryFn:ixe,staleTime:1e3*60*60,refetchOnWindowFocus:!1}),sxe=()=>{const{t}=Se(["common"]),{data:e,isLoading:n}=rxe(),[i,r]=Z.useState(null),[s,a]=Z.useState(""),[l,c]=Z.useState(!1),d=ec(),u=async()=>{var p;if(!i){a(t("common:donateNow.alertSelectPaymentMethod"));return}c(!0);const h=sessionStorage.getItem("__DONATE___");if(h){const y=JSON.parse(h);try{if(!y.campaign||!y.campaign.id)throw new Error("Invalid campaign data in sessionStorage.");y.campaign_id=y.campaign.id,typeof y.amount=="string"&&(y.amount=Number((p=y.amount)==null?void 0:p.replace(/,/g,""))),y.payment_method=i,y.is_receipt=y.receipt?1:0,sessionStorage.setItem("__DONATE___",JSON.stringify(y));const m=await He.post("api/donation-transaction",y);console.log("Successfully submitted data:",m),window.open(m.data.transaction.data.redirect_url,"_blank",`width=${screen.width/2},height=${screen.height},left=0,top=0,noopener,noreferrer`),d("/donation/monetary/donate-now/thank-you"),sessionStorage.removeItem("__DONATE___")}catch(m){console.error("Failed to submit data:",m),m instanceof Error&&m.response&&a(m.response.data.message)}finally{c(!1)}}else a("No donation data found. Please start the donation process again."),c(!1)};return o.jsx(o.Fragment,{children:o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-8 px-2",children:[o.jsx("h2",{className:"font-bold text-4xl text-pmi-red text-center",children:t("common:donateNow.choosePaymentMethod")}),o.jsx("p",{className:"font-normal text-xl text-pmi-gray text-center max-w-screen-sm",children:t("common:donateNow.securePaymentOptions")}),o.jsxs("div",{className:"w-full max-w-lg space-y-2 py-4 md:py-8 ",children:[n&&[1,2,3].map(h=>o.jsx(Ot,{onlyImage:!0,minHeight:"min-h-12",minWidth:"min-w-52"},h)),e&&e.map((h,p)=>o.jsxs("div",{className:`flex justify-between items-center border rounded-md px-4 py-4 text-pmi-gray text-base hover:bg-pmi-light-red ${i===h.payment_method_id?"border-pmi-red bg-pmi-light-red":"hover:border-pmi-red"}`,onClick:()=>r(h.payment_method_id),children:[o.jsx("p",{children:h.payment_name}),h.image&&o.jsx("div",{className:"flex items-center gap-2",children:o.jsx("img",{src:ze+"/"+h.image,alt:"logo",className:"w-14"})})]},p))]}),s&&o.jsx("div",{className:"text-red-500 text-center",children:s}),o.jsxs("div",{className:"w-full max-w-lg flex gap-2 py-4",children:[o.jsx("a",{href:"/donation/monetary/donate-now/donation-confirmation",className:"w-full bg-pmi-gray-lighter flex justify-center items-center text-pmi-gray text-base hover:bg-pmi-gray-light hover:border-pmi-black p-2 rounded-lg cursor-pointer",children:t("common:back")}),o.jsxs("button",{className:`w-full flex justify-center items-center text-base text-pmi-white p-2 rounded-lg cursor-pointer ${l?"bg-pmi-red-light":"bg-pmi-red hover:bg-pmi-red-light"}`,onClick:u,disabled:l,children:[l&&o.jsxs("svg",{"aria-hidden":"true",role:"status",className:"inline w-4 h-4 me-3 text-white animate-spin",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"#E5E7EB"}),o.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.
1771071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentColor"})]}),t("common:donateNow.continueToPayment")]})]})]})})},axe=()=>{const{t}=Se(["menu","common"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:monetaryDonations"),path:"#"},{label:t("menu:donateNow"),path:"/donation/monetary/donate-now"},{label:t("menu:payment")}];return o.jsx(Ye,{type:"default",title:"payment",breadcrumbs:e,children:o.jsx(sxe,{})})},oxe=()=>{const{t}=Se(["common"]),{data:e}=Xf();return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-12 px-2 bg-pmi-white",children:[o.jsx("p",{className:"font-medium text-lg text-pmi-gray text-center py-4",children:t("common:registerSuccess.followUs")}),o.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-center gap-x-16",children:[!e&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"flex flex-col justify-center items-center gap-4",children:o.jsxs("a",{href:"https://www.facebook.com/Palang+Merah+Indonesia",target:"_blank",rel:"noopener noreferrer","aria-label":"Facebook",className:"group rounded-full bg-pmi-gray-light hover:bg-pmi-red p-4",children:[o.jsx("img",{src:ep,alt:"Facebook",className:"w-16 h-16] transition-transform transform group-hover:hidden"}),o.jsx("img",{src:tp,alt:"Facebook",className:"w-16 h-16 transition-transform transform hidden group-hover:block"})]})}),o.jsx("div",{className:"flex flex-col justify-center items-center gap-4",children:o.jsxs("a",{href:"https://twitter.com/palangmerah",target:"_blank",rel:"noopener noreferrer","aria-label":"X (formerly Twitter)",className:"group rounded-full bg-pmi-gray-light hover:bg-pmi-red p-4",children:[o.jsx("img",{src:np,alt:"Twitter",className:"w-16 h-16 transition-transform transform group-hover:hidden"}),o.jsx("img",{src:ip,alt:"Twitter",className:"w-16 h-16 transition-transform transform hidden group-hover:block"})]})}),o.jsx("div",{className:"flex flex-col justify-center items-center gap-4",children:o.jsxs("a",{href:"https://www.instagram.com/palangmerah_indonesia",target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram",className:"group rounded-full bg-pmi-gray-light hover:bg-pmi-red p-4",children:[o.jsx("img",{src:rp,alt:"Instagram",className:"w-16 h-16 transition-transform transform group-hover:hidden"}),o.jsx("img",{src:sp,alt:"Instagram",className:"w-16 h-16 transition-transform transform hidden group-hover:block"})]})}),o.jsx("div",{className:"flex flex-col justify-center items-center gap-4",children:o.jsxs("a",{href:"https://www.instagram.com/pmi_tv",target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram",className:"group rounded-full bg-pmi-gray-light hover:bg-pmi-red p-4",children:[o.jsx("img",{src:ap,alt:"YouTube",className:"w-16 h-16 transition-transform transform group-hover:hidden"}),o.jsx("img",{src:op,alt:"YouTube",className:"w-16 h-16 transition-transform transform hidden group-hover:block"})]})})]}),e&&o.jsx("div",{className:"flex flex-col md:flex-row items-center justify-center gap-x-12 py-4 mt-10",children:e.map((n,i)=>o.jsxs("div",{className:"flex flex-col justify-center items-center gap-4",children:[o.jsxs("a",{href:n.url,target:"_blank",rel:"noopener noreferrer","aria-label":n.title,className:"flex justify-center items-center group rounded-full bg-pmi-gray-light hover:bg-pmi-red w-24 h-24 text-6xl",children:[o.jsx("span",{className:"text-pmi-red transition-transform transform group-hover:hidden",children:o.jsx("i",{className:n.image})}),o.jsx("span",{className:"text-white transition-transform transform hidden group-hover:block",children:o.jsx("i",{className:n.image})})]}),o.jsx("p",{className:"text-pmi-gray font-normal text-sm",children:n.title})]},i))})]})]})},lxe=()=>{const{t}=Se(["common"]);return o.jsxs("div",{className:"flex flex-col flex-wrap gap-2 items-center justify-center mt-8 py-20 my-12 px-2",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center",children:t("common:donateNow.thankYouTitle")}),o.jsx("img",{src:"/svg/heart.svg",alt:t("common:registerSuccess.thankYou"),className:"w-60 h-60"}),o.jsx("p",{className:"font-normal text-2xl text-pmi-gray text-center",children:t("common:donateNow.supportMake
177sDifference")}),o.jsx("p",{className:"font-light text-lg text-pmi-gray text-center max-w-3xl",children:t("common:donateNow.thankYouMessage")}),o.jsxs("div",{className:"max-w-2xl flex items-start gap-2 bg-pmi-gray-light font-light text-pmi-gray text-sm px-6 py-4",children:[o.jsx("img",{src:"/svg/info.svg",alt:t("donateNow.receiptInfo"),className:"w-5 h-5"}),o.jsx("p",{children:t("donateNow.receiptInfo")})]})]})},cxe=()=>{const{t}=Se(["common"]);return o.jsx("div",{className:"flex flex-col flex-wrap gap-4 items-center justify-center mt-8 py-12 px-2 bg-pmi-gray-light",children:o.jsxs("div",{className:"flex flex-col lg:flex-row justify-between items-center gap-x-14 gap-y-4 mt-12 text-center max-w-5xl",children:[o.jsxs("div",{className:"relative space-y-6 max-w-2xl",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-left",children:t("common:donateNow.exploreCampaignsTitle")}),o.jsx("p",{className:"font-light text-lg text-pmi-gray text-left",children:t("common:donateNow.exploreCampaignsMessage")})]}),o.jsx("div",{className:"relative px-2",children:o.jsx("a",{href:"/donation/monetary/campaigns",className:"w-full bg-pmi-red flex justify-center items-center font-normal text-lg text-pmi-white px-6 py-2 rounded-lg cursor-pointer hover:bg-pmi-red-light",children:t("common:donateNow.visitCampaignsPage")})})]})})},dxe=()=>{const{t}=Se(["menu"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:monetaryDonations"),path:"#"},{label:t("menu:donateNow"),path:"/donation/monetary/donate-now"},{label:t("menu:thankYou")}];return Z.useState(()=>{window.scroll(0,0)}),o.jsxs(Ye,{type:"default",title:"thankYou",breadcrumbs:e,children:[o.jsx(lxe,{}),o.jsx(cxe,{}),o.jsx(oxe,{})]})},uxe=()=>{const{t}=Se(["common"]),{language:e}=_e(),{data:n,isLoading:i}=qge();return i?[1,2,3].map(r=>o.jsx(Ot,{onlyImage:!0,minHeight:"min-h-64",minWidth:"w-full"},r)):n&&o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-8 px-2",children:[o.jsx("h2",{className:"font-bold text-4xl text-pmi-red text-center",children:e==="en"?n.section_1.title:n.section_1.title_indo}),o.jsx("p",{className:"font-light text-xl text-pmi-gray text-center max-w-screen-lg",children:e==="en"?n.section_1.subtitle:n.section_1.subtitle_indo}),o.jsxs("div",{className:"max-w-4xl space-y-6 divide-y border-b",children:[o.jsx("div",{className:"flex flex-col md:flex-row justify-center items-center gap-8 mx-auto py-8",children:o.jsxs("div",{className:"relative space-y-6",children:[o.jsx("img",{src:"/png/donations/why-donate/bg.png",alt:e==="en"?n.section_1.title:n.section_1.title_indo,className:"w-full md:min-h-72"}),o.jsx("div",{className:"space-y-4 font-normal text-justify text-lg leading-8 text-pmi-gray",children:o.jsx(Et,{content:e==="en"?n.section_1.desc:n.section_1.desc_indo})})]})}),o.jsxs("div",{className:"space-y-8 mx-auto py-8 px-0",children:[o.jsx("h3",{className:"font-medium text-3xl text-pmi-dark mt-6",children:e==="en"?n.section_2.title:n.section_2.title_indo}),o.jsx("div",{className:"relative space-y-4 text-justify leading-8",children:o.jsx(Et,{content:e==="en"?n.section_2.desc:n.section_2.desc_indo})})]})]}),n.section_3.external_url&&o.jsxs("div",{className:"mt-12",children:[o.jsx("div",{className:"bg-pmi-red-dark bg-gradient-to-r from-pmi-red-dark to-pmi-red-light w-full max-w-4xl py-4 rounded-xl",children:o.jsx("h3",{className:"font-bold text-center text-xs md:text-xl text-pmi-white px-2",children:e==="en"?n.section_3.media_name:n.section_3.media_name_indo})}),o.jsx("div",{className:"w-full max-w-4xl px-8",children:o.jsx("div",{className:"border shadow-xl p-6",children:o.jsx(Zf,{imageUrl:"/png/donations/why-donate/video.png",videoUrl:n.section_3.external_url,altText:t("common:whyDonate.volunteerGuide")})})})]}),o.jsxs("div",{className:"max-w-5xl flex flex-col justify-center items-center gap-2 md:gap-0 py-8 px-0 lg:px-28 text-center",children:[o.jsxs("h3",{className:"font-medium text-4xl text-pmi-black *:text-pmi-red py-4",children:[t("common:whyDonate.howToContribute.title")," ",o.jsx("span",{children:t("common:whyDonate.howToContribute.contribute")})]}),o.jsx("p",{className:"font-normal text-base text-pmi-gray",children:t("common:whyDonate.howToContribute.description")}),o.jsx("p",{className:"italic font-normal text-base text-pmi-red",children:t("common:whyDonate.howToContribute.subtitle")}),o.jsx("div",{className:"w-full py-8",children:o.jsx("a",{href:"/donation/monetary/donate-now",className:"bg-pmi-red text-pmi-white text-base py-3 px-20 rounded-lg",children:t("common:whyDonate.howToContribute.cta")})})]})]})},hxe=()=>{const{t}=Se(["menu","common"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:monetaryDonations"),path:"#"},{label:t("menu:whyDonate")}];return o.jsx(Ye,{type:"default",title:"whyDonate",breadcrumbs:e,children:o.jsx(uxe,{})})},xL=async()=>{const t=sessionStorage.getItem("__DONATE___");return t?JSON.parse(t):TA("/donation/monetary/donate-now")},pxe=[{path:"/donation/monetary/why-donate",element:o.jsx(hxe,{}),errorElement:o.jsx(We,{})},{path:"/donation/monetary/donate-now",element:o.jsx(gL,{}),errorElement:o.jsx(We,{})},{path:"/donation/monetary/donate-now/:id",element:o.jsx(gL,{}),errorElement:o.jsx(We,{})},{path:"/donation/monetary/donate-now/donation-confirmation",loader:xL,element:o.jsx(nxe,{}),errorElement:o.jsx(We,{})},{path:"/donation/monetary/donate-now/payment",loader:xL,element:o.jsx(axe,{}),errorElement:o.jsx(We,{})},{path:"/donation/monetary/donate-now/thank-you",element:o.jsx(dxe,{}),errorElement:o.jsx(We,{})},{path:"/donation/monetary/campaigns",element:o.jsx(Rge,{}),errorElement:o.jsx(We,{})},{path:"/donation/monetary/campaigns/:id",element:o.jsx(Fge,{}),errorElement:o.jsx(We,{})}],mxe=()=>{const{t}=Se(["common"]),e=[{title:t("common:goodsDonation.contactPmi"),description:t("common:goodsDonation.contactInstructions"),icon:"/svg/donations/contact.svg"},{title:t("common:goodsDonation.directDelivery"),description:t("common:goodsDonation.deliveryInstructions"),icon:"/svg/donations/truck.svg"},{title:t("common:goodsDonation.prepareDocumentation"),description:o.jsx(Li,{text:t("common:goodsDonation.documentationInstructions"),highlights:["here","di sini"],links:["links",`${ze}/docs/donation/goods-donation.pdf`]}),icon:"/svg/donations/document.svg"}];return o.jsxs("div",{className:"w-full flex flex-col flex-wrap gap-4 items-center justify-center mt-8 py-12 bg-pmi-gray-light",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center",children:t("common:goodsDonation.howToDonate")}),o.jsx("div",{className:"flex flex-col md:flex-row justify-center items-center gap-x-8 mt-12 text-center max-w-6xl",children:e.map((n,i)=>
177o.jsx(mv,{title:n.title,description:n.description,icon:n.icon},i))})]})},fxe=()=>{const[t,e]=Z.useState(null),[n,i]=Z.useState(!1),[r,s]=Z.useState(!1),{register:a,handleSubmit:l,formState:{errors:c},reset:d,setValue:u}=Ks({defaultValues:t||{}}),{t:h}=Se(["common"]),p=ec(),{language:y}=_e(),m=()=>i(!0),w=()=>i(!1),k=()=>s(!0),b=()=>s(!1),x=v=>{console.log(v),v&&(sessionStorage.setItem("__GOODS_DONATE___",JSON.stringify(v)),p("/donation/non-monetary/goods-donation/donation-confirmation"))};return Z.useEffect(()=>{const v=sessionStorage.getItem("__GOODS_DONATE___");v&&e(JSON.parse(v))},[]),Z.useEffect(()=>{t&&d(t)},[t,d]),o.jsxs(o.Fragment,{children:[o.jsx($h,{isOpen:n,closeModal:w,title:h("common:privacyPolicy.title"),children:o.jsx(ng,{})},n?"privacy-policy-open":"privacy-policy-closed"),o.jsx($h,{isOpen:r,closeModal:b,title:h("common:termsAndConditions.title"),children:o.jsx(vM,{})},r?"terms-and-conditions-open":"terms-and-conditions-closed"),o.jsxs("form",{onSubmit:l(x),className:"max-w-3xl p-4 space-y-4",children:[o.jsx("h3",{className:"font-semibold text-center text-pmi-red text-2xl py-6",children:h("goodsDonation.form.title")}),o.jsxs("div",{children:[o.jsxs("label",{children:[h("goodsDonation.form.donorName"),o.jsx("i",{className:"text-pmi-red",children:"*"})]}),o.jsx("input",{...a("company_name",{required:!0}),className:"p-3 border border-pmi-gray-lighter rounded-md w-full focus:outline-none focus:ring-2 focus:ring-pmi-red"}),c.company_name&&o.jsx("span",{className:"text-red-500",children:h("common:validation.required")})]}),o.jsxs("div",{children:[o.jsxs("label",{children:[h("goodsDonation.form.notes"),o.jsx("i",{className:"text-pmi-red",children:"*"})]}),o.jsx("input",{...a("notes",{required:!0}),className:"p-3 border border-pmi-gray-lighter rounded-md w-full focus:outline-none focus:ring-2 focus:ring-pmi-red"}),c.notes&&o.jsx("span",{className:"text-red-500",children:h("common:validation.required")})]}),o.jsxs("div",{className:"relative space-y-4",children:[o.jsxs("label",{children:[h("goodsDonation.form.contactDetails"),o.jsx("i",{className:"text-pmi-red",children:"*"})]}),o.jsx("input",{...a("name",{required:!0}),className:"p-3 border border-pmi-gray-lighter rounded-md w-full focus:outline-none focus:ring-2 focus:ring-pmi-red",placeholder:h("goodsDonation.form.name")}),c.name&&o.jsx("span",{className:"text-red-500",children:h("common:validation.required")}),o.jsx("input",{...a("email",{required:!0}),className:"p-3 border border-pmi-gray-lighter rounded-md w-full focus:outline-none focus:ring-2 focus:ring-pmi-red",placeholder:h("goodsDonation.form.emailAddress"),type:"email"}),c.email&&o.jsx("span",{className:"text-red-500",children:h("common:validation.required")}),o.jsx(oy,{country:"id",enableSearch:!0,preferredCountries:["id"],...a("phone",{required:!0}),value:(t==null?void 0:t.phone)||"",onChange:v=>u("phone",v||""),inputProps:{name:"phone",className:"py-3 px-14 border border-pmi-gray-lighter rounded-md w-full focus:outline-none focus:ring-2 focus:ring-pmi-red"}}),c.phone&&o.jsx("span",{className:"text-red-500",children:h("common:validation.required")})]}),o.jsxs("div",{className:"flex items-center mb-4",children:[o.jsx("input",{type:"checkbox",...a("termsAccepted",{required:!0}),className:"mr-2"}),o.jsxs("div",{className:"text-sm text-pmi-gray",children:[y==="en"&&o.jsxs(o.Fragment,{children:["I have read and agree to the ",o.jsx("button",{type:"button",onClick:k,className:"text-sm text-pmi-red",children:"Terms & Conditions"})," and ",o.jsx("button",{type:"button",onClick:m,className:"text-sm text-pmi-red",children:"Privacy Policy"}),"."]})," ",y==="id"&&o.jsxs(o.Fragment,{children:["Saya telah membaca dan menyetujui ",o.jsx("button",{type:"button",onClick:k,className:"text-sm text-pmi-red",children:"Syarat & Ketentuan"})," dan ",o.jsx("button",{type:"button",onClick:m,className:"text-sm text-pmi-red",children:"Kebijakan Privasi"}),"."]})]})]}),c.termsAccepted&&o.jsx("span",{className:"text-pmi-red",children:h("validation.requiredChecked")}),o.jsx("button",{type:"submit",className:"w-full bg-pmi-red text-pmi-white py-2 rounded-md",children:h("goodsDonation.form.submitButton")})]})]})},gxe=()=>{const{t}=Se(["common"]);return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-8 px-2",children:[o.jsx("h2",{className:"font-bold text-4xl text-pmi-red text-center",children:t("common:goodsDonation.title")}),o.jsx("p",{className:"font-semibold text-xl text-pmi-black text-center max-w-screen-sm",children:t("common:goodsDonation.contributeItems")}),o.jsx("p",{className:"font-normal text-sm text-pmi-gray text-center max-w-screen-sm",children:t("common:goodsDonation.nonMonetaryDonations")}),o.jsxs("div",{className:"max-w-3xl bg-pmi-light-red bg-opacity-40 rounded-md space-y-4 py-8 px-14",children:[o.jsx("h3",{className:"font-medium text-2xl text-center",children:t("goodsDonation.form.termsAndConditions")}),o.jsxs("div",{className:"space-y-4 text-pmi-black",children:[o.jsx("p",{className:"font-medium text-base",children:t("goodsDonation.form.donationRestrictions")}),o.jsx("ul",{className:"list-disc list-outside px-6",children:o.jsx("li",{className:"font-light text-base",children:t("goodsDonation.form.donationRestrictionsText")})}),o.jsxs("p",{className:"font-medium text-base",children:[t("goodsDonation.form.shelfLifeRequirements"),":"]}),o.jsx("ul",{className:"list-disc list-outside px-6",children:o.jsx("li",{className:"font-light text-base",children:t("goodsDonation.form.shelfLifeRequirementsText")})})]})]}),o.jsx(mxe,{}),o.jsx(fxe,{})]})},xxe=()=>{const{t}=Se(["menu","common"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:goodsDonation")}];return o.jsx(Ye,{type:"default",title:"goodsDonation",breadcrumbs:e,children:o.jsx(gxe,{})})},yxe=()=>{const{handleSubmit:t}=Ks(),{t:e}=Se(["common"]),n=iv(),i=ec(),r=async()=>{let s=sessionStorage.getItem("__GOODS_DONATE___");if(s)try{const a={...JSON.parse(s),donation_type:1},l=await He.post("api/donation-items",a);console.log("successfully submit data:",l),i("/donation/non-monetary/goods-donation/thank-you"),sessionStorage.removeItem("__GOODS_DONATE___")}catch(a){console.error("Failed submit data:",a)}};return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-8 px-2",children:[o.jsx("h2",{className:"font-bold text-4xl text-pmi-red text-center",children:e("common:goodsDonation.donationConfirmation")}),o.jsx("p",{className:"font-semibold text-xl text-pmi-black text-center max-w-screen-sm",children:e("common:donateNow.reviewContributionDetail
177s")}),o.jsxs("div",{className:"w-full max-w-2xl space-y-2 py-4 md:py-8 pl-2 md:pl-20 pr-2 md:pr-12 bg-pmi-gray-light border font-semibold",children:[o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-pmi-gray text-base",children:[o.jsx("p",{children:e("common:goodsDonation.form.donorName")}),o.jsxs("p",{children:[":Â Â Â ",n.company_name]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-pmi-gray text-base",children:[o.jsx("p",{children:e("common:goodsDonation.form.notes")}),o.jsxs("p",{children:[":Â Â Â ",n.notes]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-pmi-gray text-base",children:[o.jsx("p",{children:e("common:goodsDonation.form.name")}),o.jsxs("p",{children:[":Â Â Â ",n.name]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-pmi-gray text-base",children:[o.jsx("p",{children:e("common:goodsDonation.form.emailAddress")}),o.jsxs("p",{children:[":Â Â Â ",n.email]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-4 text-pmi-gray text-base",children:[o.jsx("p",{children:e("common:goodsDonation.form.phoneNumber")}),o.jsxs("p",{children:[":Â Â Â ",n.phone]})]})]}),o.jsxs("div",{className:"w-full max-w-2xl flex gap-2 py-4",children:[o.jsx("a",{href:"/donation/non-monetary/goods-donation",className:"w-full bg-pmi-gray-lighter flex justify-center items-center text-pmi-gray text-base p-2 rounded-lg cursor-pointer hover:bg-pmi-gray-light",children:e("common:back")}),o.jsx("form",{onSubmit:t(r),className:"w-full",children:o.jsx("button",{type:"submit",className:"w-full bg-pmi-red flex justify-center items-center text-base text-pmi-white p-2 rounded-lg cursor-pointer hover:bg-pmi-red-light",children:e("common:goodsDonation.form.confirmDonation")})})]})]})},bxe=()=>{const{t}=Se(["menu","common"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:monetaryDonations"),path:"#"},{label:t("menu:donateNow"),path:"/donation/non-monetary/goods-donation"},{label:t("menu:goodsDonationConfirmation")}];return Z.useState(()=>{window.scroll(0,0)}),o.jsx(Ye,{type:"default",title:"donationConfirmation",breadcrumbs:e,children:o.jsx(yxe,{})})},vxe=()=>{const{t}=Se(["common"]),{data:e}=Xf();return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-12 px-2",children:[o.jsx("p",{className:"font-medium text-lg text-pmi-gray text-center py-4",children:t("common:registerSuccess.followUs")}),o.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-center gap-x-16",children:[!e&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"flex flex-col justify-center items-center gap-4",children:o.jsxs("a",{href:"https://www.facebook.com/Palang+Merah+Indonesia",target:"_blank",rel:"noopener noreferrer","aria-label":"Facebook",className:"group rounded-full bg-pmi-gray-light hover:bg-pmi-red p-4",children:[o.jsx("img",{src:ep,alt:"Facebook",className:"w-16 h-16] transition-transform transform group-hover:hidden"}),o.jsx("img",{src:tp,alt:"Facebook",className:"w-16 h-16 transition-transform transform hidden group-hover:block"})]})}),o.jsx("div",{className:"flex flex-col justify-center items-center gap-4",children:o.jsxs("a",{href:"https://twitter.com/palangmerah",target:"_blank",rel:"noopener noreferrer","aria-label":"X (formerly Twitter)",className:"group rounded-full bg-pmi-gray-light hover:bg-pmi-red p-4",children:[o.jsx("img",{src:np,alt:"Twitter",className:"w-16 h-16 transition-transform transform group-hover:hidden"}),o.jsx("img",{src:ip,alt:"Twitter",className:"w-16 h-16 transition-transform transform hidden group-hover:block"})]})}),o.jsx("div",{className:"flex flex-col justify-center items-center gap-4",children:o.jsxs("a",{href:"https://www.instagram.com/palangmerah_indonesia",target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram",className:"group rounded-full bg-pmi-gray-light hover:bg-pmi-red p-4",children:[o.jsx("img",{src:rp,alt:"Instagram",className:"w-16 h-16 transition-transform transform group-hover:hidden"}),o.jsx("img",{src:sp,alt:"Instagram",className:"w-16 h-16 transition-transform transform hidden group-hover:block"})]})}),o.jsx("div",{className:"flex flex-col justify-center items-center gap-4",children:o.jsxs("a",{href:"https://www.instagram.com/pmi_tv",target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram",className:"group rounded-full bg-pmi-gray-light hover:bg-pmi-red p-4",children:[o.jsx("img",{src:ap,alt:"YouTube",className:"w-16 h-16 transition-transform transform group-hover:hidden"}),o.jsx("img",{src:op,alt:"YouTube",className:"w-16 h-16 transition-transform transform hidden group-hover:block"})]})})]}),e&&e.map((n,i)=>o.jsx("div",{className:"flex flex-col justify-center items-center gap-4",children:o.jsxs("a",{href:n.url,target:"_blank",rel:"noopener noreferrer","aria-label":n.title,className:"flex justify-center items-center group rounded-full bg-pmi-gray-light hover:bg-pmi-red w-24 h-24 text-6xl",children:[o.jsx("span",{className:"mx-auto text-pmi-red transition-transform transform group-hover:hidden",children:o.jsx("i",{className:n.image})}),o.jsx("span",{className:"text-white transition-transform transform hidden group-hover:block",children:o.jsx("i",{className:n.image})})]})},i))]})]})},wxe=()=>{const{t}=Se(["common"]),e=iv();return o.jsxs("div",{className:"flex flex-col flex-wrap gap-2 items-center justify-center mt-8 py-20 my-12 px-2",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center",children:t("common:goodsDonation.thankYouTitle")}),o.jsx("img",{src:"/svg/heart.svg",alt:t("common:registerSuccess.thankYou"),className:"w-60 h-60"}),o.jsxs("p",{className:"font-normal text-2xl text-pmi-gray text-center",children:["Dear ",e==null?void 0:e.name,","]}),o.jsx("p",{className:"font-light text-lg text-pmi-gray text-center max-w-2xl mb-6",children:t("common:goodsDonation.thankYouBody")}),o.jsxs("div",{className:"max-w-2xl flex items-start gap-2 bg-pmi-gray-light font-light text-pmi-gray text-sm px-6 py-4",children:[o.jsx("img",{src:"/svg/info.svg",alt:t("goodsDonation.thankYouBody"),className:"w-5 h-5"}),o.jsxs("div",{className:"space-y-2",children:[o.jsx("p",{className:"font-semibold",children:t("goodsDonation.whatHappensNextTitle")}),o.jsx("p",{children:t("goodsDonation.whatHappensNextBody")})]})]})]})},kxe=()=>{const{t}=Se(["common"]);return o.jsx("div",{className:"flex flex-col flex-wrap gap-4 items-center justify-center mt-8 py-12 px-2 bg-pmi-gray-light",children:o.jsxs("div",{className:"flex flex-col lg:flex-row justify-between items-center gap-x-14 gap-y-4 mt-12 text-center max-w-5xl",children:[o.jsxs("div",{className:"relative space-y-6 max-w-2xl",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-left",children:t("common:donateNow.exploreCampaignsTitle")}),o.jsx("p",{className:"font-light text-lg text-pmi-gray text-left",children:t("common:donateNow.exploreCampaignsMessage")})]}),o.jsx("div",{className:"relative px-2",children:o.jsx("a",{href:"/donation/monetary/campaigns",className:"w-full bg-pmi-red flex justify-center items-center font-normal text-lg text-pmi-white px-6 py-2 rounded-lg cursor-pointer hover:bg-pmi-red-light",children:t("common:donateNow.visitCampaignsPage")})})]})})},Sxe=()=>{const{t}=Se(["menu"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:nonMonetaryDonations"),path:"#"},{label:t("menu:goodsDonation"),path:"/donation/non-monetary/goods-donation"},{label:t("menu:thankYou")}];return o.jsxs(Ye,{type:"default",title:"thankYou",breadcrumbs:e,children:[o.jsx(wxe,{}),o.jsx(kxe,{}),o.jsx(vxe,{})]})},Cxe=()=>{const{t}=Se(["common"]),{language:e}=_e(),{data:n,isLoading:i}=Kge();return i?[1,2,3].map(r=>o.jsx(Ot,{onlyImage:!0,minHeight:"min-h-64",minWidth:"w-full"},r)):n&&n.section_1&&n.section_2&&o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-8 px-2",children:[o.jsx("h2",{className:"font-bold text-4xl text-pmi-red text-center",children:(e==="en"?n.section_1.title:n.section_1.title_indo)||t("common:skillsServices.lendYourTalents")}),o.jsx("p",{className:"font-semibold text-xl text-pmi-black text-center max-w-screen-lg",children:(e==="en"?n.section_1.subtitle:n.section_1.subtitle_indo)||t("common:skillsServices.empowerMission")}),o.jsxs("div",{className:"max-w-5xl space-y-4",children:[o.jsxs("div",{className:"flex flex-col md:flex-row justify-center items-center gap-8 mx-auto py-8",children:[o.jsx("div",{className:"md:w-1/2 space-y-12 px-4 py-6",children:o.jsx("div",{className:"flex justify-center items-center overflow-hidden rounded-tl-[35%] rounded-br-[35%] rounded-tr-xl rounded-bl-xl",children:o.jsx("img",{src:`${ze}/${n.section_1.image}`,alt:e==="en"?n.section_1.title:n.section_1.title_indo,className:"w-full md:min-h-72"})})}),o.jsx("div",{className:"md:w-1/2 relative space-y-4 px-2 lg:px-8 text-pmi-gray",children:o.jsx(Et,{content:e==="en"?n.section_1.desc:n.section_1.desc_indo})})]}),o.jsxs("div",{className:"flex flex-col md:flex-row justify-center items-center gap-8 mx-auto",children:[o.jsx("div",{className:"md:w-1/2 relative space-y-12 px-2 lg:px-8 text-pmi-gray",children:o.jsx(Et,{content:e==="en"?n.section_2.desc:n.section_2.desc_indo})}),o.jsx("div",{className:"md:w-1/2 space-y-12 px-4 py-6",children:o.jsx("div",{className:"flex justify-center items-center overflow-hidden rounded-tl-[20%] rounded-br-[20%] rounded-tr-xl rounded-bl-xl",children:o.jsx("img",{src:`${ze}/${n.section_2.image}`,alt:e==="en"?n.section_2.title:n.section_2.title_indo,className:"w-full md:min-h-72"})})})]})]})]})},jxe=()=>{const{t}=Se(["common"]),{data:e,isLoading:n}=Yge();return n?[1,2,3].map(i=>o.jsx(Ot,{onlyImage:!0,minHeight:"min-h-64",minWidth:"w-full"},i)):o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-8",children:[o.jsx("h2",{className:"font-bold text-2xl text-pmi-red text-center",children:t("common:skillsServices.volunteeringInAction")}),o.jsxs("div",{className:"w-full grid grid-cols-2 md:grid-cols-4",children:[!n&&!e&&[1,2,3,4,5,6,7,8].map((i,r)=>o.jsx("img",{src:`/png/donations/skills-services/action/${i}.png`,alt:`action-${i}`,className:"w-full md:min-h-64"},r)),!n&&e&&[0,1,2,3,4,5,6,7].map((i,r)=>o.jsx("img",{src:`${ze}/${e[`image_${i}`].path}`,alt:`action-${i}`,className:"w-full h-48 md:h-64 object-cover"},r))]})]})},Txe=()=>{const{t}=Se(["common"]);return o.jsx(lC,{title:o.jsx(Li,{text:t("common:skillsServices.learnMoreVolunteering"),highlights:["Volunteering","Relawan"]}),description:o.jsxs(o.Fragment,{children:[o.jsx(Li,{text:t("common:healthSocialServices.visitVolunteersPage"),highlights:["
177Sign Up","Daftar"]}),o.jsx(Li,{text:t("common:healthSocialServices.skillsCanSaveLives"),highlights:[]}),o.jsx(Li,{text:t("common:healthSocialServices.joinUs"),highlights:["Join us in making","Bergabunglah dengan kami untuk membuat"]})]}),button:t("common:skillsServices.visitVolunteersPage"),color:"bg-pmi-white",url:"/volunteer"})},Pxe=()=>{const{t}=Se(["common"]),{language:e}=_e(),{data:n,isLoading:i,refetch:r}=XN("Volunteer","3");return Z.useEffect(()=>{r()}),o.jsxs("div",{className:"flex flex-col flex-wrap gap-4 items-center justify-center mt-8 py-8 px-4 md:px-20",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center",children:t("common:volunteer.volunteerStories")}),o.jsx("p",{className:"font-light text-xl text-pmi-gray text-center",children:t("common:volunteer.inspiringJourneysRealStoriesFromOurDedicatedVolunteers")}),o.jsxs("div",{className:"flex flex-col md:flex-row justify-center gap-8 my-4 px-4 md:px-0 max-w-screen-xl",children:[i&&[1,2,3].map(s=>o.jsx(Ot,{onlyImage:!0,minHeight:"min-h-40",minWidth:"min-w-52"},s)),Array.isArray(n)&&n.map((s,a)=>o.jsx("a",{href:`/volunteer/volunteer-stories/${s.slug}`,className:" cursor-pointer",children:o.jsx(WB,{title:e==="en"?s.title:s.title_indo,description:e==="en"?s.subtitle:s.subtitle_indo,subTitle:"",image:`${ze}/${s.image}`},a)}))]})]})},Exe=()=>{const{t}=Se(["common"]),e=[{title:t("common:volunteer.makingADifference"),description:t("common:volunteer.makingADifferenceDescription"),icon:"/svg/volunteers/globe-favorite.svg"},{title:t("common:volunteer.gainingNewSkills"),description:t("common:volunteer.makingADifferenceDescription"),icon:"/svg/volunteers/medical-kit.svg"},{title:t("common:volunteer.beingPartOfACommunity"),description:t("common:volunteer.beingPartOfACommunityDescription"),icon:"/svg/volunteers/gis-user.svg"},{title:t("common:volunteer.personalFulfillmentAndGrowth"),description:t("common:volunteer.personalFulfillmentAndGrowthDescription"),icon:"/svg/volunteers/person-star.svg"}];return o.jsxs("div",{className:"flex flex-col flex-wrap gap-4 items-center justify-center mt-8 py-12 px-4 md:px-20 bg-pmi-gray-light",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center",children:t("common:volunteer.whyVolunteerWithUs")}),o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 justify-items-center place-items-center text-center gap-6 mt-2 px-4 md:px-0 max-w-screen-xl",children:e.map((n,i)=>o.jsx(mv,{title:n.title,description:n.description,icon:n.icon},i))})]})},Axe=()=>{const{t}=Se(["menu","common"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:nonMonetaryDonations"),path:"#"},{label:t("menu:skillsServices")}];return o.jsxs(Ye,{type:"default",title:"skillsServices",breadcrumbs:e,children:[o.jsx(Cxe,{}),o.jsx(jxe,{}),o.jsx(Txe,{}),o.jsx(Exe,{}),o.jsx(Pxe,{})]})},Pz=()=>{const{t}=Se(["menu"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:termsAndConditions")}];return o.jsx(Ye,{type:"default",title:"termsAndConditions",breadcrumbs:e,children:o.jsx(vM,{})})},yL=async()=>{const t=sessionStorage.getItem("__GOODS_DONATE___");return t?JSON.parse(t):TA("/donation/non-monetary/goods-donation")},Nxe=[{path:"/donation/non-monetary/goods-donation",element:o.jsx(xxe,{}),errorElement:o.jsx(We,{})},{path:"/donation/non-monetary/skills-services",element:o.jsx(Axe,{}),errorElement:o.jsx(We,{})},{path:"/donation/non-monetary/terms-and-conditions",element:o.jsx(Pz,{}),errorElement:o.jsx(We,{})},{path:"/donation/non-monetary/goods-donation/donation-confirmation",loader:yL,element:o.jsx(bxe,{}),errorElement:o.jsx(We,{})},{path:"/donation/non-monetary/goods-donation/thank-you",loader:yL,element:o.jsx(Sxe,{}),errorElement:o.jsx(We,{})}],Mxe=({isSidebarOpen:t,closeSidebar:e,activeMenu:n})=>{const{t:i}=Se(["menu"]);return o.jsxs(o.Fragment,{children:[o.jsxs(cs,{open:t,onClose:e,className:"2xl:hidden z-[10001]",children:[o.jsx("div",{className:"fixed inset-0 z-10"}),o.jsxs(nc,{className:"fixed inset-y-0 right-0 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10 z-[10001]",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("a",{href:"/",className:"-m-1.5 p-1.5 flex items-center",children:[o.jsx("img",{src:"/png/logo.png",alt:"PALANG MERAH INDONESIA",className:"w-24 md:w-[150px] md:h-14"}),"Â "]}),o.jsxs("button",{type:"button",onClick:()=>e(),className:"rounded-md p-2.5 text-gray-700",children:[o.jsx("span",{className:"sr-only",children:"Close menu"}),o.jsx(cp,{addClassName:"w-8 h-8"})]})]}),o.jsx("div",{className:"mt-12 flow-root",children:o.jsx("div",{className:"-my-6 divide-y divide-gray-500/10",children:o.jsx("div",{className:"space-y-2 py-6",children:YI.map(r=>o.jsx("a",{href:r.path,className:"hover:bg-pmi-red-light hover:text-white p-2 block rounded",children:i(r.label)},r.key))})})})]})]}),o.jsx("aside",{className:"hidden md:block h-full w-80 bg-pmi-red-dark p-4 rounded-l-3xl",children:o.jsxs("nav",{className:"py-8 space-y-8",children:[o.jsx("div",{className:"mx-auto p-4",children:o.jsx("img",{src:"/png/logo-white.png",alt:"logo",className:"w-48"})}),o.jsx("ul",{children:YI.map(r=>o.jsx("li",{className:"mb-2",children:o.jsxs("a",{href:r.path,className:`flex items-center gap-2 hover:bg-pmi-red-light p-2 rounded ${n===r.key?"font-medium text-pmi-white":"font-light text-pmi-gray-lighter"}`,children:[o.jsx("img",{src:r.icon,alt:r.label,className:"w-6 h-6"}),o.jsx("span",{children:i(r.label)})]})},r.key))})]})})]})},Dxe=({toggleSidebar:t})=>o.jsxs("header",{className:"bg-pmi-red bg-gradient-to-l from-pmi-red-light to-pmi-red-dark text-white p-4 flex justify-between items-center md:hidden",children:[o.jsx("img",{src:"/png/logo-white.png",alt:"logo",className:"w-36 h-14"}),o.jsx("button",{className:"text-white text-3xl",onClick:t,children:"â°"})]}),Cv=({children:t,title:e,forceTitle:n,description:i})=>{const{t:r}=Se(["common","header"]),{language:s}=_e(),[a,l]=Z.useState(!1),c=()=>
177{l(!a)},d=()=>{l(!1)};return o.jsxs("div",{className:"overflow-y-hidden md:h-screen bg-pmi-gray-lighter md:pl-4 md:py-4",children:[o.jsxs(Pk,{children:[o.jsx("html",{lang:s}),n&&o.jsx("title",{children:n}),!n&&o.jsx("title",{children:r(e?`menu:${e}`:"header:title")}),i&&o.jsx("meta",{name:"description",content:i}),!i&&o.jsx("meta",{name:"description",content:r("header:description")})]}),o.jsx(Dxe,{toggleSidebar:c}),o.jsxs("div",{className:"h-full flex",children:[o.jsx(Mxe,{isSidebarOpen:a,closeSidebar:d,activeMenu:e}),o.jsx("main",{className:"w-full bg-pmi-red-dark",children:o.jsx("div",{className:"h-full relative space-y-4 md:rounded-l-3xl bg-pmi-white px-2 lg:px-8 py-8 overflow-hidden",children:t})})]})]})},_xe=async t=>{const e=await He.get(`/api/temp-data/get-data-page?warehouse=${t}`);if(!e)throw new Error("Network response was not ok");return e==null?void 0:e.data},Ixe=async()=>{const t=await He.get("/api/temp-data/get-warehouse");if(!t)throw new Error("Network response was not ok");return t==null?void 0:t.data},Ez=t=>Ge({queryKey:["data_distribution_logistic",t],queryFn:()=>_xe(t),staleTime:1e3*60*60,gcTime:1e3*60*60}),Rxe=()=>Ge({queryKey:["warehouse"],queryFn:()=>Ixe(),staleTime:1e3*60*60,gcTime:1e3*60*60}),Oxe=({setWarehouseIndex:t,latestUpdate:e,refreshTrigger:n})=>{const{language:i}=_e();let r="";i==="id"?r=new Date(e).toLocaleString("id-ID",{day:"numeric",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit"}):r=new Date(e).toLocaleString("en-US",{day:"numeric",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit"});const{t:s}=Se(["dashboard"]),[a,l]=Z.useState(""),{data:c,isLoading:d}=Rxe(),[u,h]=Z.useState([]);Z.useEffect(()=>{if(c&&!d){const m=[{label:s("filter.chooseOptionAll"),value:""},...c.filter(w=>w.warehouse!=null).map(w=>({label:w.warehouse,value:w.warehouse}))];h(m)}},[c,d]);const p=m=>{const w=m.toString();t(w),l(w)},y=()=>{n(!0)};return o.jsxs("div",{className:" flex flex-col md:flex-row gap-4 items-center justify-between px-3",children:[o.jsx("h3",{className:"font-bold text-3xl text-center sm:text-left",children:s("stockLogistics.title")}),o.jsxs("div",{className:"w-full max-w-3xl flex flex-col xl:flex-row items-center justify-end md:items-end gap-2",children:[o.jsxs("div",{className:"w-full max-w-xl flex gap-5 items-center justify-center lg:justify-end",children:[o.jsxs("div",{className:"max-w-xl flex flex-col text-sm",children:[o.jsxs("p",{className:"w-full mb-0",children:[s("filter.latestUpdate")," :"]}),o.jsx("p",{className:"w-full mb-0",children:r&&r})]}),o.jsxs("button",{onClick:y,className:"flex items-center gap-2 bg-pmi-red bg-gradient-to-l from-pmi-red-light to-pmi-red-dark text-pmi-white text-sm px-3 py-2.5 rounded-lg",children:[o.jsx("img",{src:"/svg/refresh.svg",alt:"reload",className:"w-6 h-6 filter brightness-0 invert"}),s("filter.refreshData")]})]}),o.jsxs("div",{className:"w-full max-w-96 flex justify-center items-center bg-pmi-red-dark rounded-lg p-1",children:[o.jsx("p",{className:"w-full max-w-52 ml-4 text-pmi-white",children:s("filter.warehouseLocation")}),o.jsx(er,{options:u,value:a,onChange:p,label:"",transalation:!0,placeholder:s("filter.chooseOption"),textBase:"text-sm",customClass:"w-full bg-pmi-white border rounded-lg p-2 cursor-pointer flex justify-between items-center text-pmi-gray focus:ring-2 focus:ring-pmi-red"})]})]})]})},Lxe=()=>o.jsx("div",{className:"animate-pulse flex gap-2 border px-2 py-4 rounded-lg shadow-md drop-shadow-2xl",children:o.jsxs("div",{className:"relative w-full",children:[o.jsx("div",{className:"h-5 bg-gray-300 rounded w-2/3 mb-2"}),o.jsx("div",{className:"h-7 bg-gray-300 rounded w-full"})]})}),D0=["border-red-500","border-blue-500","border-green-500","border-yellow-500","border-purple-500","border-pink-500","border-indigo-500","border-teal-500","border-orange-500"],Mo=["#467198","#778EA3","#656C9C","#C69090","#EE9C6D","#50A697","#E687C4","#8E5C96","#8571A4"],Fxe=({sumDataValue:t,
177isLoading:e})=>{const{t:n}=Se(["dashboard"]),i={total_item_value:0,open_stock_value:0,incoming_item_value:0,outcoming_item_value:0,mutation_in_value:0,mutation_out_value:0,donation_value:0,outcoming_weight:0,distribution_weight:0};return console.log("sum data",e),console.log("sum data value",t),o.jsxs("div",{className:"relative space-y-5",children:[e&&[0,1,2,3].map(()=>o.jsx(Lxe,{})),!e&&t!==void 0&&t===null&&Object.entries(i).map(([r,s],a)=>o.jsxs("div",{className:"flex gap-2 border px-2 py-4 rounded-lg shadow-md drop-shadow-2xl",children:[o.jsx("div",{className:`border-2 rounded-md ${D0[a%D0.length]}`}),o.jsxs("div",{className:"px-2",children:[o.jsx("h3",{className:"text-base text-pmi-red",children:n(`dataDistribution.${r}`)}),o.jsx("p",{className:"text-xl",children:s!==void 0?r=="outcoming_weight"||r=="distribution_weight"?bd(s,"KG"):KI(s):"-"})]})]},a)),!e&&t!==void 0&&t!==null&&Object.entries(t).map(([r,s],a)=>r!=="dt_record"&&o.jsxs("div",{className:"flex gap-2 border px-2 py-4 rounded-lg shadow-md drop-shadow-2xl",children:[o.jsx("div",{className:`border-2 rounded-md ${D0[a%D0.length]}`}),o.jsxs("div",{className:"px-2",children:[o.jsx("h3",{className:"text-base text-pmi-red",children:n(`dataDistribution.${r}`)}),o.jsx("p",{className:"text-xl",children:s!==void 0?r=="outcoming_weight"||r=="distribution_weight"?bd(s,"KG"):KI(s):"-"})]})]},a))]})};var Az={exports:{}};(function(t){(function(e,n){t.exports?(n.default=n,t.exports=e&&e.document?n(e):n):(e.Highcharts&&e.Highcharts.error(16,!0),e.Highcharts=n(e))})(typeof window<"u"?window:jh,function(e){var n={};function i(r,s,a,l){!r.hasOwnProperty(s)&&(r[s]=l.apply(null,a),e&&typeof CustomEvent=="function"&&e.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:s,module:r[s]}})))}return i(n,"Core/Globals.js",[],function(){var r,s;return(s=r||(r={})).SVG_NS="http://www.w3.org/2000/svg",s.product="Highcharts",s.version="11.4.8",s.win=e!==void 0?e:{},s.doc=s.win.document,s.svg=s.doc&&s.doc.createElementNS&&!!s.doc.createElementNS(s.SVG_NS,"svg").createSVGRect,s.userAgent=s.win.navigator&&s.win.navigator.userAgent||"",s.isChrome=s.win.chrome,s.isFirefox=s.userAgent.indexOf("Firefox")!==-1,s.isMS=/(edge|msie|trident)/i.test(s.userAgent)&&!s.win.opera,s.isSafari=!s.isChrome&&s.userAgent.indexOf("Safari")!==-1,s.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(s.userAgent),s.isWebKit=s.userAgent.indexOf("AppleWebKit")!==-1,s.deg2rad=2*Math.PI/360,s.hasBidiBug=s.isFirefox&&4>parseInt(s.userAgent.split("Firefox/")[1],10),s.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],s.noop=function(){},s.supportsPassiveEvents=function(){let a=!1;if(!s.isMS){let l=Object.defineProperty({},"passive",{get:function(){a=!0}});s.win.addEventListener&&s.win.removeEventListener&&(s.win.addEventListener("testPassive",s.noop,l),s.win.removeEventListener("testPassive",s.noop,l))}return a}(),s.charts=[],s.composed=[],s.dateFormats={},s.seriesTypes={},s.symbolSizes={},s.chartCount=0,r}),i(n,"Core/Utilities.js",[n["Core/Globals.js"]],function(r){let s,{charts:a,doc:l,win:c}=r;function d(g,f,j,P){let C=f?"Highcharts error":"Highcharts warning";g===32&&(g=`${C}: Deprecated member`);let D=k(g),M=D?`${C} #${g}: www.highcharts.com/errors/${g}/`:g.toString();if(P!==void 0){let z="";D&&(M+="?"),I(P,function(J,F){z+=` 178 - ${F}: ${J}`,D&&(M+=encodeURI(F)+"="+encodeURI(J))}),M+=z}L(r,"displayError",{chart:j,code:g,message:M,params:P},function(){if(f)throw Error(M);c.console&&d.messages.indexOf(M)===-1&&console.warn(M)}),d.messages.push(M)}function u(g,f){return parseInt(g,f||10)}function h(g){return typeof g=="string"}function p(g){let f=Object.prototype.toString.call(g);return f==="[object Array]"||f==="[object Array Iterator]"}function y(g,f){return!!g&&typeof g=="object"&&(!f||!p(g))}function m(g){return y(g)&&typeof g.nodeType=="number"}function w(g){let f=g&&g.constructor;return!!(y(g,!0)&&!m(g)&&f&&f.name&&f.name!=="Object")}function k(g){return typeof g=="number"&&!isNaN(g)&&g<1/0&&g>-1/0}function b(g){return g!=null}function x(g,f,j){let P,C=h(f)&&!b(j),D=(M,z)=>{b(M)?g.setAttribute(z,M):C?(P=g.getAttribute(z))||z!=="class"||(P=g.getAttribute(z+"Name")):g.removeAttribute(z)};return h(f)?D(j,f):I(f,D),P}function v(g){return p(g)?g:[g]}function E(g,f){let j;for(j in g||(g={}),f)g[j]=f[j];return g}function N(){let g=arguments,f=g.length;for(let j=0;j<f;j++){let P=g[j];if(P!=null)return P}}function S(g,f){E(g.style,f)}function _(g){return Math.pow(10,Math.floor(Math.log(g)/Math.LN10))}function $(g,f){return g>1e14?g:parseFloat(g.toPrecision(f||14))}(d||(d={})).messages=[],Math.easeInOutSine=function(g){return-.5*(Math.cos(Math.PI*g)-1)};let V=Array.prototype.find?function(g,f){return g.find(f)}:function(g,f){let j,P=g.length;for(j=0;j<P;j++)if(f(g[j],j))return g[j]};function I(g,f,j){for(let P in g)Object.hasOwnProperty.call(g,P)&&f.call(j||g[P],g[P],P,g)}function A(g,f,j){function P(M,z){let J=g.removeEventListener;J&&J.call(g,M,z,!1)}function C(M){let z,J;g.nodeName&&(f?(z={})[f]=!0:z=M,I(z,function(F,q){if(M[q])for(J=M[q].length;J--;)P(q,M[q][J].fn)}))}let D=typeof g=="function"&&g.prototype||g;if(Object.hasOwnProperty.call(D,"hcEvents")){let M=D.hcEvents;if(f){let z=M[f]||[];j?(M[f]=z.filter(function(J){return j!==J.fn}),P(f,j)):(C(M),M[f]=[])}else C(M),delete D.hcEvents}}function L(g,f,j,P){if(j=j||{},l.createEvent&&(g.dispatchEvent||g.fireEvent&&g!==r)){let C=l.createEvent("Events");C.initEvent(f,!0,!0),j=E(C,j),g.dispatchEvent?g.dispatchEvent(j):g.fireEvent(f,j)}else if(g.hcEvents){j.target||E(j,{preventDefault:function(){j.defaultPrevented=!0},target:g,type:f});let C=[],D=g,M=!1;for(;D.hcEvents;)Object.hasOwnProperty.call(D,"hcEvents")&&D.hcEvents[f]&&(C.length&&(M=!0),C.unshift.apply(C,D.hcEvents[f])),D=Object.getPrototypeOf(D);M&&C.sort((z,J)=>
vendor: 4,652 bytes, line 178
178z.order-J.order),C.forEach(z=>{z.fn.call(g,j)===!1&&j.preventDefault()})}P&&!j.defaultPrevented&&P.call(g,j)}I({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(g,f){r[f]=function(j){return d(32,!1,void 0,{[`Highcharts.${f}`]:`use Array.${g}`}),Array.prototype[g].apply(j,[].slice.call(arguments,1))}});let T=function(){let g=Math.random().toString(36).substring(2,9)+"-",f=0;return function(){return"highcharts-"+(s?"":g)+f++}}();return c.jQuery&&(c.jQuery.fn.highcharts=function(){let g=[].slice.call(arguments);if(this[0])return g[0]?(new r[h(g[0])?g.shift():"Chart"](this[0],g[0],g[1]),this):a[x(this[0],"data-highcharts-chart")]}),{addEvent:function(g,f,j,P={}){let C=typeof g=="function"&&g.prototype||g;Object.hasOwnProperty.call(C,"hcEvents")||(C.hcEvents={});let D=C.hcEvents;r.Point&&g instanceof r.Point&&g.series&&g.series.chart&&(g.series.chart.runTrackerClick=!0);let M=g.addEventListener;M&&M.call(g,f,j,!!r.supportsPassiveEvents&&{passive:P.passive===void 0?f.indexOf("touch")!==-1:P.passive,capture:!1}),D[f]||(D[f]=[]);let z={fn:j,order:typeof P.order=="number"?P.order:1/0};return D[f].push(z),D[f].sort((J,F)=>J.order-F.order),function(){A(g,f,j)}},arrayMax:function(g){let f=g.length,j=g[0];for(;f--;)g[f]>j&&(j=g[f]);return j},arrayMin:function(g){let f=g.length,j=g[0];for(;f--;)g[f]<j&&(j=g[f]);return j},attr:x,clamp:function(g,f,j){return g>f?g<j?g:j:f},clearTimeout:function(g){b(g)&&clearTimeout(g)},correctFloat:$,createElement:function(g,f,j,P,C){let D=l.createElement(g);return f&&E(D,f),C&&S(D,{padding:"0",border:"none",margin:"0"}),j&&S(D,j),P&&P.appendChild(D),D},crisp:(g,f=0,j)=>{let P=f%2/2,C=j?-1:1;return(Math.round(g*C-P)+P)*C},css:S,defined:b,destroyObjectProperties:function(g,f,j){I(g,function(P,C){P!==f&&(P!=null&&P.destroy)&&P.destroy(),(P!=null&&P.destroy||!j)&&delete g[C]})},diffObjects:function(g,f,j,P){let C={};return function D(M,z,J,F){let q=j?z:M;I(M,function(U,Q){if(!F&&P&&P.indexOf(Q)>-1&&z[Q]){U=v(U),J[Q]=[];for(let ce=0;ce<Math.max(U.length,z[Q].length);ce++)z[Q][ce]&&(U[ce]===void 0?J[Q][ce]=z[Q][ce]:(J[Q][ce]={},D(U[ce],z[Q][ce],J[Q][ce],F+1)))}else y(U,!0)&&!U.nodeType?(J[Q]=p(U)?[]:{},D(U,z[Q]||{},J[Q],F+1),Object.keys(J[Q]).length!==0||Q==="colorAxis"&&F===0||delete J[Q]):(M[Q]!==z[Q]||Q in M&&!(Q in z))&&Q!=="__proto__"&&Q!=="constructor"&&(J[Q]=q[Q])})}(g,f,C,0),C},discardElement:function(g){g&&g.parentElement&&g.parentElement.removeChild(g)},erase:function(g,f){let j=g.length;for(;j--;)if(g[j]===f){g.splice(j,1);break}},error:d,extend:E,extendClass:function(g,f){let j=function(){};return j.prototype=new g,E(j.prototype,f),j},find:V,fireEvent:L,getClosestDistance:function(g,f){let j,P,C,D=!f;return g.forEach(M=>{if(M.length>1)for(C=M.length-1;C>0;C--)(P=M[C]-M[C-1])<0&&!D?(f==null||f(),f=void 0):P&&(j===void 0||P<j)&&(j=P)}),j},getMagnitude:_,getNestedProperty:function(g,f){let j=g.split(".");for(;j.length&&b(f);){let P=j.shift();if(P===void 0||P==="__proto__")return;if(P==="this"){let D;return y(f)&&(D=f["@this"]),D??f}let C=f[P];if(!b(C)||typeof C=="function"||typeof C.nodeType=="number"||C===c)return;f=C}return f},getStyle:function g(f,j,P){let C;if(j==="width"){let M=Math.min(f.offsetWidth,f.scrollWidth),z=f.getBoundingClientRect&&f.getBoundingClientRect().width;return z<M&&z>=M-1&&(M=Math.floor(z)),Math.max(0,M-(g(f,"padding-left",!0)||0)-(g(f,"padding-right",!0)||0))}if(j==="height")return Math.max(0,Math.min(f.offsetHeight,f.scrollHeight)-(g(f,"padding-top",!0)||0)-(g(f,"padding-bottom",!0)||0));let D=c.getComputedStyle(f,void 0);return D&&(C=D.getPropertyValue(j),N(P,j!=="opacity")&&(C=u(C))),C},inArray:function(g,f,j){return d(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),f.indexOf(g,j)},insertItem:function(g,f){let j,P=g.options.index,C=f.length;for(j=g.options.isInternal?C:0;j<C+1;j++)if(!f[j]||k(P)&&P<N(f[j].options.index,f[j]._i)||f[j].options.isInternal){f.splice(j,0,g);break}return j},isArray:p,isClass:w,isDOMElement:m,isFunction:function(g){return typeof g=="function"},isNumber:k,isObject:y,isString:h,keys:function(g){return d(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(g)},merge:function(){let g,f=arguments,j={},P=function(D,M){return typeof D!="object"&&(D={}),I(M,function(z,J){J!=="__proto__"&&J!=="constructor"&&(!y(z,!0)||w(z)||m(z)?D[J]=M[J]:D[J]=P(D[J]||{},z))}),D};f[0]===!0&&(j=f[1],f=Array.prototype.slice.call(f,2));let C=f.length;for(g=0;g<C;g++)j=P(j,f[g]);return j},normalizeTickInterval:function(g,f,j,P,C){let D,M=g;j=N(j,_(g));let z=g/j;for(!f&&(f=C?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],P===!1&&(j===1?f=f.filter(function(J){return J%1==0}
178):j<=.1&&(f=[1/j]))),D=0;D<f.length&&(M=f[D],(!C||!(M*j>=g))&&(C||!(z<=(f[D]+(f[D+1]||f[D]))/2)));D++);return $(M*j,-Math.round(Math.log(.001)/Math.LN10))},objectEach:I,offset:function(g){let f=l.documentElement,j=g.parentElement||g.parentNode?g.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:j.top+(c.pageYOffset||f.scrollTop)-(f.clientTop||0),left:j.left+(c.pageXOffset||f.scrollLeft)-(f.clientLeft||0),width:j.width,height:j.height}},pad:function(g,f,j){return Array((f||2)+1-String(g).replace("-","").length).join(j||"0")+g},pick:N,pInt:u,pushUnique:function(g,f){return 0>g.indexOf(f)&&!!g.push(f)},relativeLength:function(g,f,j){return/%$/.test(g)?f*parseFloat(g)/100+(j||0):parseFloat(g)},removeEvent:A,replaceNested:function(g,...f){let j,P;do for(P of(j=g,f))g=g.replace(P[0],P[1]);while(g!==j);return g},splat:v,stableSort:function(g,f){let j,P,C=g.length;for(P=0;P<C;P++)g[P].safeI=P;for(g.sort(function(D,M){return(j=f(D,M))===0?D.safeI-M.safeI:j}),P=0;P<C;P++)delete g[P].safeI},syncTimeout:function(g,f,j){return f>0?setTimeout(g,f,j):(g.call(0,j),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:T,useSerialIds:function(g){return s=N(g,s)},wrap:function(g,f,j){let P=g[f];g[f]=function(){let C=arguments,D=this;return j.apply(this,[function(){return P.apply(D,arguments.length?arguments:C)}].concat([].slice.call(arguments)))}}}}),i(n,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{},position:{}},reflow:!0,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),i(n,"Core/Color/Palettes.js",[],function(){return{colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"]}}),i(n,"Core/Time.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],function(r,s){let{win:a}=r,{defined:l,error:c,extend:d,isNumber:u,isObject:h,merge:p,objectEach:y,pad:m,pick:w,splat:k,timeUnits:b}=s,x=r.isSafari&&a.Intl&&a.Intl.DateTimeFormat.prototype.formatRange,v=r.isSafari&&a.Intl&&!a.Intl.DateTimeFormat.prototype.formatRange;class E{constructor(S){this.options={},this.useUTC=!1,this.variableTimezone=!1,this.Date=a.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(S)}get(S,_){if(this.variableTimezone||this.timezoneOffset){let $=_.getTime(),V=$-this.getTimezoneOffset(_);_.setTime(V);let I=_["getUTC"+S]();return _.setTime($),I}return this.useUTC?_["getUTC"+S]():_["get"+S]()}set(S,_,$){if(this.variableTimezone||this.timezoneOffset){if(S==="Milliseconds"||S==="Seconds"||S==="Minutes"&&this.getTimezoneOffset(_)%36e5==0)return _["setUTC"+S]($);let V=this.getTimezoneOffset(_),I=_.getTime()-V;_.setTime(I),_["setUTC"+S]($);let A=this.getTimezoneOffset(_);return I=_.getTime()+A,_.setTime(I)}return this.useUTC||x&&S==="FullYear"?_["setUTC"+S]($):_["set"+S]($)}update(S={}){let _=w(S.useUTC,!0);this.options=S=p(!0,this.options,S),this.Date=S.Date||a.Date||Date,this.useUTC=_,this.timezoneOffset=_&&S.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=_&&!!(S.getTimezoneOffset||S.timezone)}makeTime(S,_,$,V,I,A){let L,T,g;return this.useUTC?(L=this.Date.UTC.apply(0,arguments),T=this.getTimezoneOffset(L),L+=T,T!==(g=this.getTimezoneOffset(L))?L+=g-T:T-36e5!==this.getTimezoneOffset(L-36e5)||v||(L-=36e5)):L=new this.Date(S,_,w($,1),w(V,0),w(I,0),w(A,0)).getTime(),L}timezoneOffsetFunction(){let S=this,_=this.options,$=_.getTimezoneOffset;return this.useUTC?_.timezone?V=>{try{let I=`shortOffset,${_.timezone||""}`,[A,L,T,g,f=0]=(E.formatCache[I]=E.formatCache[I]||Intl.DateTimeFormat("en",{timeZone:_.timezone,timeZoneName:"shortOffset"})).format(V).split(/(GMT|:)/).map(Number),j=-(36e5*(T+f/60));if(u(j))return j}catch{c(34)}return 0}:this.useUTC&&$?V=>6e4*$(V.valueOf()):()=>6e4*(S.timezoneOffset||0):V=>6e4*new Date(V.toString()).getTimezoneOffset()}dateFormat(S,_,$){if(!l(_)||isNaN(_))return r.defaultOptions.lang&&r.defaultOptions.lang.invali
178dDate||"";S=w(S,"%Y-%m-%d %H:%M:%S");let V=this,I=new this.Date(_),A=this.get("Hours",I),L=this.get("Day",I),T=this.get("Date",I),g=this.get("Month",I),f=this.get("FullYear",I),j=r.defaultOptions.lang,P=j&&j.weekdays,C=j&&j.shortWeekdays;return y(d({a:C?C[L]:P[L].substr(0,3),A:P[L],d:m(T),e:m(T,2," "),w:L,b:j.shortMonths[g],B:j.months[g],m:m(g+1),o:g+1,y:f.toString().substr(2,2),Y:f,H:m(A),k:A,I:m(A%12||12),l:A%12||12,M:m(this.get("Minutes",I)),p:A<12?"AM":"PM",P:A<12?"am":"pm",S:m(this.get("Seconds",I)),L:m(Math.floor(_%1e3),3)},r.dateFormats),function(D,M){for(;S.indexOf("%"+M)!==-1;)S=S.replace("%"+M,typeof D=="function"?D.call(V,_):D)}),$?S.substr(0,1).toUpperCase()+S.substr(1):S}resolveDTLFormat(S){return h(S,!0)?S:{main:(S=k(S))[0],from:S[1],to:S[2]}}getTimeTicks(S,_,$,V){let I,A,L,T,g=this,f=g.Date,j=[],P={},C=new f(_),D=S.unitRange,M=S.count||1;if(V=w(V,1),l(_)){g.set("Milliseconds",C,D>=b.second?0:M*Math.floor(g.get("Milliseconds",C)/M)),D>=b.second&&g.set("Seconds",C,D>=b.minute?0:M*Math.floor(g.get("Seconds",C)/M)),D>=b.minute&&g.set("Minutes",C,D>=b.hour?0:M*Math.floor(g.get("Minutes",C)/M)),D>=b.hour&&g.set("Hours",C,D>=b.day?0:M*Math.floor(g.get("Hours",C)/M)),D>=b.day&&g.set("Date",C,D>=b.month?1:Math.max(1,M*Math.floor(g.get("Date",C)/M))),D>=b.month&&(g.set("Month",C,D>=b.year?0:M*Math.floor(g.get("Month",C)/M)),A=g.get("FullYear",C)),D>=b.year&&(A-=A%M,g.set("FullYear",C,A)),D===b.week&&(T=g.get("Day",C),g.set("Date",C,g.get("Date",C)-T+V+(T<V?-7:0))),A=g.get("FullYear",C);let z=g.get("Month",C),J=g.get("Date",C),F=g.get("Hours",C);_=C.getTime(),(g.variableTimezone||!g.useUTC)&&l($)&&(L=$-_>4*b.month||g.getTimezoneOffset(_)!==g.getTimezoneOffset($));let q=C.getTime();for(I=1;q<$;)j.push(q),D===b.year?q=g.makeTime(A+I*M,0):D===b.month?q=g.makeTime(A,z+I*M):L&&(D===b.day||D===b.week)?q=g.makeTime(A,z,J+I*M*(D===b.day?1:7)):L&&D===b.hour&&M>1?q=g.makeTime(A,z,J,F+I*M):q+=D*M,I++;
178j.push(q),D<=b.hour&&j.length<1e4&&j.forEach(function(U){U%18e5==0&&g.dateFormat("%H%M%S%L",U)==="000000000"&&(P[U]="day")})}return j.info=d(S,{higherRanks:P,totalRange:D*M}),j}getDateFormat(S,_,$,V){let I=this.dateFormat("%m-%d %H:%M:%S.%L",_),A="01-01 00:00:00.000",L={millisecond:15,second:12,minute:9,hour:6,day:3},T="millisecond",g=T;for(T in b){if(S===b.week&&+this.dateFormat("%w",_)===$&&I.substr(6)===A.substr(6)){T="week";break}if(b[T]>S){T=g;break}if(L[T]&&I.substr(L[T])!==A.substr(L[T]))break;T!=="week"&&(g=T)}return this.resolveDTLFormat(V[T]).main}}return E.formatCache={},E}),i(n,"Core/Defaults.js",[n["Core/Chart/ChartDefaults.js"],n["Core/Globals.js"],n["Core/Color/Palettes.js"],n["Core/Time.js"],n["Core/Utilities.js"]],function(r,s,a,l,c){let{isTouchDevice:d}=s,{fireEvent:u,merge:h}=c,p={colors:a.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",numericSymbols:["k","M","G","T","P","E"],resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{buttonTheme:{fill:"#f7f7f7",padding:8,r:2,stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"#e6e6e6"},select:{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},disabled:{style:{color:"#cccccc"}}}}},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:r,title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:"",align:"center",widthAdjust:-44},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",events:{},layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:m=>Math.sqrt(1-Math.pow(m-1,2))},borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %e %b, %H:%M:%S.%L",second:"%A, %e %b, %H:%M:%S",minute:"%A, %e %b, %H:%M",hour:"%A, %e %b, %H:%M",day:"%A, %e %b %Y",week:"Week from %A, %e %b %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:d?25:10,headerFormat:'<span style="font-size: 0.8em">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">â</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"#ffffff",borderWidth:void 0,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}};p.chart.styledMode=!1;let y=new l(p.time);return{defaultOptions:p,defaultTime:y,getOptions:function(){return p},setOptions:function(m){return u(s,"setOptions",{options:m}),h(!0,p,m),(m.time||m.global)&&(s.time?s.time.update(h(p.global,p.time,m.global,m.time)):s.time=y),p}}}),i(n,"Core/Color/Color.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],function(r,s){let{isNumber:a,merge:l,pInt:c}=s;class d{static parse(h){return h?new d(h):d.None}constructor(h){let p,y,m,w;this.rgba=[NaN,NaN,NaN,NaN],this.input=h;let k=r.Color;if(k&&k!==d)return new k(h);if(typeof h=="object"&&h.stops!==void 0)this.stops=h.stops.map(b=>new d(b[1]));else if(typeof h=="string"){if(this.input=h=d.names[h.toLowerCase()]||h,h.charAt(0)==="#"){let b=h.length,x=parseInt(h.substr(1),16);b===7?y=[(16711680&x)>>16,(65280&x)>>8,255&x,1]:b===4&&(y=[(3840&x)>>4|(3840&x)>>8,(240&x)>>4|240&x,(15&x)<<4|15&x,1])}if(!y)for(m=d.parsers.length;m--&&!y;)(p=(w=d.parsers[m]).regex.exec(h))&&(y=w.parse(p))}y&&(this.rgba=y)}get(h){let p=this.input,y=this.rgba;if(typeof p=="object"&&this.stops!==void 0){let m=l(p);return m.stops=[].slice.call(m.stops),this.stops.forEach((w,k)=>{m.stops[k]=[m.stops[k][0],w.get(h)]}),m}return y&&a(y[0])?h!=="rgb"&&(h||y[3]!==1)?h==="a"?`${y[3]}`:"rgba("+y.join(",")+")":"rgb("+y[0]+","+y[1]+","+y[2]+")":p}brighten(h){let p=this.rgba;if(this.stops)this.stops.forEach(function(y){y.brighten(h)});else if(a(h)&&h!==0)for(let y=0;y<3;y++)p[y]+=c(255*h),p[y]<0&&(p[y]=0),p[y]>255&&(p[y]=255);return this}
178setOpacity(h){return this.rgba[3]=h,this}tweenTo(h,p){let y=this.rgba,m=h.rgba;if(!a(y[0])||!a(m[0]))return h.input||"none";let w=m[3]!==1||y[3]!==1;return(w?"rgba(":"rgb(")+Math.round(m[0]+(y[0]-m[0])*(1-p))+","+Math.round(m[1]+(y[1]-m[1])*(1-p))+","+Math.round(m[2]+(y[2]-m[2])*(1-p))+(w?","+(m[3]+(y[3]-m[3])*(1-p)):"")+")"}}return d.names={white:"#ffffff",black:"#000000"},d.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(u){return[c(u[1]),c(u[2]),c(u[3]),parseFloat(u[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(u){return[c(u[1]),c(u[2]),c(u[3]),1]}}],d.None=new d(""),d}),i(n,"Core/Animation/Fx.js",[n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],function(r,s,a){let{parse:l}=r,{win:c}=s,{isNumber:d,objectEach:u}=a;class h{constructor(y,m,w){this.pos=NaN,this.options=m,this.elem=y,this.prop=w}dSetter(){let y=this.paths,m=y&&y[0],w=y&&y[1],k=this.now||0,b=[];if(k!==1&&m&&w)if(m.length===w.length&&k<1)for(let x=0;x<w.length;x++){let v=m[x],E=w[x],N=[];for(let S=0;S<E.length;S++){let _=v[S],$=E[S];d(_)&&d($)&&!(E[0]==="A"&&(S===4||S===5))?N[S]=_+k*($-_):N[S]=$}b.push(N)}else b=w;else b=this.toD||[];this.elem.attr("d",b,void 0,!0)}update(){let y=this.elem,m=this.prop,w=this.now,k=this.options.step;this[m+"Setter"]?this[m+"Setter"]():y.attr?y.element&&y.attr(m,w,null,!0):y.style[m]=w+this.unit,k&&k.call(y,w,this)}run(y,m,w){let k=this,b=k.options,x=function(N){return!x.stopped&&k.step(N)},v=c.requestAnimationFrame||function(N){setTimeout(N,13)},E=function(){for(let N=0;N<h.timers.length;N++)h.timers[N]()||h.timers.splice(N--,1);h.timers.length&&v(E)};y!==m||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=y,this.end=m,this.unit=w,this.now=this.start,this.pos=0,x.elem=this.elem,x.prop=this.prop,x()&&h.timers.push(x)===1&&v(E)):(delete b.curAnim[this.prop],b.complete&&Object.keys(b.curAnim).length===0&&b.complete.call(this.elem))}step(y){let m,w,k=+new Date,b=this.options,x=this.elem,v=b.complete,E=b.duration,N=b.curAnim;return x.attr&&!x.element?m=!1:y||k>=E+this.startTime?(this.now=this.end,this.pos=1,this.update(),N[this.prop]=!0,w=!0,u(N,function(S){S!==!0&&(w=!1)}),w&&v&&v.call(x),m=!1):(this.pos=b.easing((k-this.startTime)/E),this.now=this.start+(this.end-this.start)*this.pos,this.update(),m=!0),m}initPath(y,m,w){let k=y.startX,b=y.endX,x=w.slice(),v=y.isArea,E=v?2:1,N=m&&w.length>m.length&&w.hasStackedCliffs,S,_,$,V,I=m&&m.slice();if(!I||N)return[x,x];function A(T,g){for(;T.length<_;){let f=T[0],j=g[_-T.length];if(j&&f[0]==="M"&&(j[0]==="C"?T[0]=["C",f[1],f[2],f[1],f[2],f[1],f[2]]:T[0]=["L",f[1],f[2]]),T.unshift(f),v){let P=T.pop();T.push(T[T.length-1],P)}}}function L(T){for(;T.length<_;){let g=T[Math.floor(T.length/E)-1].slice();if(g[0]==="C"&&(g[1]=g[5],g[2]=g[6]),v){let f=T[Math.floor(T.length/E)].slice();T.splice(T.length/2,0,g,f)}else T.push(g)}}if(k&&b&&b.length){for($=0;$<k.length;$++){if(k[$]===b[0]){S=$;break}if(k[0]===b[b.length-k.length+$]){S=$,V=!0;break}if(k[k.length-1]===b[b.length-k.length+$]){S=k.length-$;break}}S===void 0&&(I=[])}return I.length&&d(S)&&(_=x.length+S*E,V?(A(I,x),L(x)):(A(x,I),L(I))),[I,x]}fillSetter(){h.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,l(this.start).tweenTo(l(this.end),this.pos),void 0,!0)}}return h.timers=[],h}),i(n,"Core/Animation/AnimationUtilities.js",[n["Core/Animation/Fx.js"],n["Core/Utilities.js"]],function(r,s){let{defined:a,getStyle:l,isArray:c,isNumber:d,isObject:u,merge:h,objectEach:p,pick:y}=s;function m(k){return u(k)?h({duration:500,defer:0},k):{duration:k?500:0,defer:0}}function w(k,b){let x=r.timers.length;for(;x--;)r.timers[x].elem!==k||b&&b!==r.timers[x].prop||(r.timers[x].stopped=!0)}return{animate:function(k,b,x){let v,E="",N,S,_;u(x)||(_=arguments,x={duration:_[2],easing:_[3],complete:_[4]}),d(x.duration)||(x.duration=400),x.easing=typeof x.easing=="function"?x.easing:Math[x.easing]||Math.easeInOutSine,x.curAnim=h(b),p(b,function($,V){w(k,V),S=new r(k,x,V),N=void 0,V==="d"&&c(b.d)?(S.paths=S.initPath(k,k.pathArray,b.d),S.toD=b.d,v=0,N=1):k.attr?v=k.attr(V):(v=parseFloat(l(k,V))||0,V!=="opacity"&&(E="px")),N||(N=$),typeof N=="string"&&N.match("px")&&(N=N.replace(/px/g,"")),S.run(v,N,E)})},animObject:m,getDeferredAnimation:function(k,b,x){let v=m(b),E=x?[x]:k.series,N=0,S=0;
178return E.forEach(_=>{let $=m(_.options.animation);N=u(b)&&a(b.defer)?v.defer:Math.max(N,$.duration+$.defer),S=Math.min(v.duration,$.duration)}),k.renderer.forExport&&(N=0),{defer:Math.max(0,N-S),duration:Math.min(N,S)}},setAnimation:function(k,b){b.renderer.globalAnimation=y(k,b.options.chart.animation,!0)},stop:w}}),i(n,"Core/Renderer/HTML/AST.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],function(r,s){let{SVG_NS:a,win:l}=r,{attr:c,createElement:d,css:u,error:h,isFunction:p,isString:y,objectEach:m,splat:w}=s,{trustedTypes:k}=l,b=k&&p(k.createPolicy)&&k.createPolicy("highcharts",{createHTML:N=>N}),x=b?b.createHTML(""):"",v=function(){try{return!!new DOMParser().parseFromString(x,"text/html")}catch{return!1}}();class E{static filterUserAttributes(S){return m(S,(_,$)=>{let V=!0;E.allowedAttributes.indexOf($)===-1&&(V=!1),["background","dynsrc","href","lowsrc","src"].indexOf($)!==-1&&(V=y(_)&&E.allowedReferences.some(I=>_.indexOf(I)===0)),V||(h(33,!1,void 0,{"Invalid attribute in config":`${$}`}),delete S[$]),y(_)&&S[$]&&(S[$]=_.replace(/</g,"<"))}),S}static parseStyle(S){return S.split(";").reduce((_,$)=>{let V=$.split(":").map(A=>A.trim()),I=V.shift();return I&&V.length&&(_[I.replace(/-([a-z])/g,A=>A[1].toUpperCase())]=V.join(":")),_},{})}static setElementHTML(S,_){S.innerHTML=E.emptyHTML,_&&new E(_).addToDOM(S)}constructor(S){this.nodes=typeof S=="string"?this.parseMarkup(S):S}addToDOM(S){return function _($,V){let I;return w($).forEach(function(A){let L,T=A.tagName,g=A.textContent?r.doc.createTextNode(A.textContent):void 0,f=E.bypassHTMLFiltering;if(T)if(T==="#text")L=g;else if(E.allowedTags.indexOf(T)!==-1||f){let j=T==="svg"?a:V.namespaceURI||a,P=r.doc.createElementNS(j,T),C=A.attributes||{};m(A,function(D,M){M!=="tagName"&&M!=="attributes"&&M!=="children"&&M!=="style"&&M!=="textContent"&&(C[M]=D)}),c(P,f?C:E.filterUserAttributes(C)),A.style&&u(P,A.style),g&&P.appendChild(g),_(A.children||[],P),L=P}else h(33,!1,void 0,{"Invalid tagName in config":T});L&&V.appendChild(L),I=L}),I}(this.nodes,S)}parseMarkup(S){let _,$=[];if(S=S.trim().replace(/ style=(["'])/g," data-style=$1"),v)_=new DOMParser().parseFromString(b?b.createHTML(S):S,"text/html");else{let I=d("div");I.innerHTML=S,_={body:I}}let V=(I,A)=>{let L=I.nodeName.toLowerCase(),T={tagName:L};L==="#text"&&(T.textContent=I.textContent||"");let g=I.attributes;if(g){let f={};[].forEach.call(g,j=>{j.name==="data-style"?T.style=E.parseStyle(j.value):f[j.name]=j.value}),T.attributes=f}if(I.childNodes.length){let f=[];[].forEach.call(I.childNodes,j=>{V(j,f)}),f.length&&(T.children=f)}A.push(T)};return[].forEach.call(_.body.childNodes,I=>V(I,$)),$}}return E.allowedAttributes=["alt","aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","class","clip-path","color","colspan","cx","cy","d","dx","dy","disabled","fill","filterUnits","flood-color","flood-opacity","height","href","id","in","in2","markerHeight","markerWidth","offset","opacity","operator","orient","padding","paddingLeft","paddingRight","patternUnits","r","radius","refX","refY","role","scope","slope","src","startOffset","stdDeviation","stroke","stroke-linecap","stroke-width","style","tableValues","result","rowspan","summary","target","tabindex","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],E.allowedReferences=["https://","http://","mailto:","/","../","./","#"],E.allowedTags=["a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMorphology","feOffset","feMerge","feMergeNode","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","text","textPath","thead","title","tbody","tspan","td","th","tr","u","ul","#text"],E.emptyHTML=x,E.bypassHTMLFiltering=!1,E}),i(n,"Core/Templating.js",[n["Core/Defaults.js"],n["Core/Utilities.js"]],function(r,s){let{defaultOptions:a,defaultTime:l}=r,{extend:c,getNestedProperty:d,isArray:u,isNumber:h,isObject:p,pick:y,pInt:m}=s,w={add:(x,v)=>x+v,divide:(x,v)=>v!==0?x/v:"",eq:(x,v)=>x==v,each:function(x){let v=arguments[arguments.length-1];return!!u(x)&&x.map((E,N)=>
178k(v.body,c(p(E)?E:{"@this":E},{"@index":N,"@first":N===0,"@last":N===x.length-1}))).join("")},ge:(x,v)=>x>=v,gt:(x,v)=>x>v,if:x=>!!x,le:(x,v)=>x<=v,lt:(x,v)=>x<v,multiply:(x,v)=>x*v,ne:(x,v)=>x!=v,subtract:(x,v)=>x-v,unless:x=>!x};function k(x="",v,E){let N=/\{([\w\:\.\,;\-\/<>%@"'â= #\(\)]+)\}/g,S=/\(([\w\:\.\,;\-\/<>%@"'= ]+)\)/g,_=[],$=/f$/,V=/\.(\d)/,I=a.lang,A=E&&E.time||l,L=E&&E.numberFormatter||b,T=(C="")=>{let D;return C==="true"||C!=="false"&&((D=Number(C)).toString()===C?D:d(C,v))},g,f,j=0,P;for(;(g=N.exec(x))!==null;){let C=S.exec(g[1]);C&&(g=C,P=!0),f&&f.isBlock||(f={ctx:v,expression:g[1],find:g[0],isBlock:g[1].charAt(0)==="#",start:g.index,startInner:g.index+g[0].length,length:g[0].length});let D=g[1].split(" ")[0].replace("#","");w[D]&&(f.isBlock&&D===f.fn&&j++,f.fn||(f.fn=D));let M=g[1]==="else";if(f.isBlock&&f.fn&&(g[1]===`/${f.fn}`||M))if(j)!M&&j--;else{let z=f.startInner,J=x.substr(z,g.index-z);f.body===void 0?(f.body=J,f.startInner=g.index+g[0].length):f.elseBody=J,f.find+=J+g[0],M||(_.push(f),f=void 0)}else f.isBlock||_.push(f);if(C&&!(f!=null&&f.isBlock))break}return _.forEach(C=>{let D,M,{body:z,elseBody:J,expression:F,fn:q}=C;if(q){let U=[C],Q=F.split(" ");for(M=w[q].length;M--;)U.unshift(T(Q[M+1]));D=w[q].apply(v,U),C.isBlock&&typeof D=="boolean"&&(D=k(D?z:J,v,E))}else{let U=F.split(":");if(D=T(U.shift()||""),U.length&&typeof D=="number"){let Q=U.join(":");if($.test(Q)){let ce=parseInt((Q.match(V)||["","-1"])[1],10);D!==null&&(D=L(D,ce,I.decimalPoint,Q.indexOf(",")>-1?I.thousandsSep:""))}else D=A.dateFormat(Q,D)}}x=x.replace(C.find,y(D,""))}),P?k(x,v,E):x}function b(x,v,E,N){let S,_;x=+x||0,v=+v;let $=a.lang,V=(x.toString().split(".")[1]||"").split("e")[0].length,I=x.toString().split("e"),A=v;v===-1?v=Math.min(V,20):h(v)?v&&I[1]&&I[1]<0&&((_=v+ +I[1])>=0?(I[0]=(+I[0]).toExponential(_).split("e")[0],v=_):(I[0]=I[0].split(".")[0]||0,x=v<20?(I[0]*Math.pow(10,I[1])).toFixed(v):0,I[1]=0)):v=2;let L=(Math.abs(I[1]?I[0]:x)+Math.pow(10,-Math.max(v,V)-1)).toFixed(v),T=String(m(L)),g=T.length>3?T.length%3:0;return E=y(E,$.decimalPoint),N=y(N,$.thousandsSep),S=(x<0?"-":"")+(g?T.substr(0,g)+N:""),0>+I[1]&&!A?S="0":S+=T.substr(g).replace(/(\d{3})(?=\d)/g,"$1"+N),v?S+=E+L.slice(-v):+S==0&&(S="0"),I[1]&&+S!=0&&(S+="e"+I[1]),S}return{dateFormat:function(x,v,E){return l.dateFormat(x,v,E)},format:k,helpers:w,numberFormat:b}}),i(n,"Core/Renderer/RendererRegistry.js",[n["Core/Globals.js"]],function(r){var s,a;let l;return(a=s||(s={})).rendererTypes={},a.getRendererType=function(c=l){return a.rendererTypes[c]||a.rendererTypes[l]},a.registerRendererType=function(c,d,u){a.rendererTypes[c]=d,(!l||u)&&(l=c,r.Renderer=d)},s}),i(n,"Core/Renderer/RendererUtilities.js",[n["Core/Utilities.js"]],function(r){var s;let{clamp:a,pick:l,pushUnique:c,stableSort:d}=r;return(s||(s={})).distribute=function u(h,p,y){let m=h,w=m.reducedLen||p,k=(T,g)=>T.target-g.target,b=[],x=h.length,v=[],E=b.push,N,S,_,$=!0,V,I,A=0,L;for(N=x;N--;)A+=h[N].size;if(A>w){for(d(h,(T,g)=>(g.rank||0)-(T.rank||0)),_=(L=h[0].rank===h[h.length-1].rank)?x/2:-1,S=L?_:x-1;_&&A>w;)V=h[N=Math.floor(S)],c(v,N)&&(A-=V.size),S+=_,L&&S>=h.length&&(_/=2,S=_);v.sort((T,g)=>g-T).forEach(T=>E.apply(b,h.splice(T,1)))}for(d(h,k),h=h.map(T=>({size:T.size,targets:[T.target],align:l(T.align,.5)}));$;){for(N=h.length;N--;)V=h[N],I=(Math.min.apply(0,V.targets)+Math.max.apply(0,V.targets))/2,V.pos=a(I-V.size*V.align,0,p-V.size);for(N=h.length,$=!1;N--;)N>0&&h[N-1].pos+h[N-1].size>h[N].pos&&(h[N-1].size+=h[N].size,h[N-1].targets=h[N-1].targets.concat(h[N].targets),h[N-1].align=.5,h[N-1].pos+h[N-1].size>p&&(h[N-1].pos=p-h[N-1].size),h.splice(N,1),$=!0)}return E.apply(m,b),N=0,h.some(T=>{let g=0;return(T.targets||[]).some(()=>(m[N].pos=T.pos+g,y!==void 0&&Math.abs(m[N].pos-m[N].target)>y?(m.slice(0,N+1).forEach(f=>delete f.pos),m.reducedLen=(m.reducedLen||p)-.1*p,m.reducedLen>.1*p&&u(m,p,y),!0):(g+=m[N].size,N++,!1)))}),d(m,k),m},s}),i(n,"Core/Renderer/SVG/SVGElement.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],function(r,s,a,l){let{animate:c,animObject:d,stop:u}=r,{deg2rad:h,doc:p,svg:y,SVG_NS:m,win:w}=a,{addEvent:k,attr:b,createElement:x,crisp:v,css:E,defined:N,erase:S,extend:_,fireEvent:$,isArray:V,isFunction:I,isObject:A,isString:L,merge:T,objectEach:g,pick:f,pInt:j,pushUnique:P,replaceNested:C,syncTimeout:D,uniqueKey:M}=l;class z{_defaultGetter(F){let q=f(this[F+"Value"],this[F],this.element?this.element.getAttribute(F):null,0);return/^-?[\d\.]+$/.test(q)&&(q=parseFloat(q)),q}_defaultSetter(F,q,U){U.setAttribute(q,F)}add(F){let q,U=this.renderer,Q=this.element;return F&&(this.parentGroup=F),this.textStr!==void 0&&this.element.nodeName==="text"&&U.buildText(this),this.added=!0,(!F||F.handleZ||this.zIndex)&&(q=this.zIndexSetter()),q||(F?F.element:U.box).appendChild(Q),this.onAdd&&this.onAdd(),this}addClass(F,q){let U=q?"":this.attr("class")||"";return(F=(F||"").split(/ /g).reduce(function(Q,ce){return U.indexOf(ce)===-1&&Q.push(ce),Q},U?[U]:[]).join(" "))!==U&&this.attr("class",F),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(F,q,U,Q=!0){let ce,H,B,K,ie={},R=this.renderer,G=R.alignedObjects,W=!!F;F?(this.alignOptions=F,this.alignByTranslate=q,this.alignTo=U):(F=this.alignOptions||{},q=this.alignByTranslate,U=this.alignTo);let Y=!U||L(U)?U||"renderer":void 0;Y&&(W&&P(G,this),U=void 0);let X=f(U,R[Y],R),re=F.align,ee=F.verticalAlign;return ce=(X.x||0)+(F.x||0),H=(X.y||0)+(F.y||0),re==="right"?B=1:re==="center"&&(B=2),B&&(ce+=((X.width||0)-(F.width||0))/B),ie[q?"translateX":"x"]=Math.round(ce),ee==="bottom"?K=1:ee==="middle"&&(K=2),K&&(H+=((X.height||0)-(F.height||0))/K),ie[q?"translateY":"y"]=Math.round(H),Q&&(this[this.placed?"animate":"attr"](ie),this.placed=!0),this.alignAttr=ie,this}alignSetter(F){let q={left:"start",center:"middle",right:"end"};q[F]&&(this.alignValue=F,this.element.setAttribute("text-anchor",q[F]))}animate(F,q,U){let Q=d(f(q,this.renderer.globalAnimation,!0)),ce=Q.defer;return p.hidden&&(Q.duration=0),Q.duration!==0?(U&&(Q.complete=U),D(()=>{this.element&&c(this,F,Q)},ce)):(this.attr(F,void 0,U||Q.complete),g(F,function(H,B){Q.step&&Q.step.call(this,H,{prop:B,pos:1,elem:this})},this)),this}applyTextOutline(F){let q=this.element;F.indexOf("contrast")!==-1&&(F=F.replace(/contrast/g,this.renderer.getContrast(q.style.fill)));let U=F.split(" "),Q=U[U.length-1],ce=U[0];if(ce&&ce!=="none"&&a.svg){this.fakeTS=!0,ce=ce.replace(/(^[\d\.]+)(.*?)$/g,function(R,G,W){return 2*Number(G)+W}),this.removeTextOutline();let H=p.createElementNS(m,"tspan");b(H,{class:"highcharts-text-outline",fill:Q,stroke:Q,"stroke-width":ce,"stroke-linejoin":"round"});let B=q.querySelector("textPath")||q;[].forEach.call(B.childNodes,R=>{let G=R.cloneNode(!0);G.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(W=>G.removeAttribute(W)),H.appendChild(G)});let K=0;[].forEach.call(B.querySelectorAll("text tspan"),R=>{K+=Number(R.getAttribute("dy"))});let ie=p.createElementNS(m,"tspan");ie.textContent="â",b(ie,{x:Number(q.getAttribute("x")),dy:-K}),H.appendChild(ie),B.insertBefore(H,B.firstChild)}}attr(F,q,U,Q){let{element:ce}=this,H=z.symbolCustomAttribs,B,K,ie=this,R;return typeof F=="string"&&q!==void 0&&(B=F,(F={})[B]=q),typeof F=="string"?ie=(this[F+"Getter"]||this._defaultGetter).call(this,F,ce):(g(F,function(G,W){R=!1,Q||u(this,W),this.symbolName&&H.indexOf(W)!==-1&&(K||(this.symbolAttr(F),K=!0),R=!0),this.rotation&&(W==="x"||W==="y")&&(this.doTransform=!0),R||(this[W+"Setter"]||this._defaultSetter).call(this,G,W,ce)},this),this.afterSetters()),U&&U.call(this),ie}clip(F){if(F&&!F.clipPath){let q=M()+"-",U=this.renderer.createElement("clipPath").attr({id:q}).add(this.renderer.defs);_(F,{clipPath:U,id:q,count:0}),F.add(U)}
vendor: 30,113 bytes, line 178
178return this.attr("clip-path",F?`url(${this.renderer.url}#${F.id})`:"none")}crisp(F,q){q=Math.round(q||F.strokeWidth||0);let U=F.x||this.x||0,Q=F.y||this.y||0,ce=(F.width||this.width||0)+U,H=(F.height||this.height||0)+Q,B=v(U,q),K=v(Q,q);return _(F,{x:B,y:K,width:v(ce,q)-B,height:v(H,q)-K}),N(F.strokeWidth)&&(F.strokeWidth=q),F}complexColor(F,q,U){let Q=this.renderer,ce,H,B,K,ie,R,G,W,Y,X,re=[],ee;$(this.renderer,"complexColor",{args:arguments},function(){if(F.radialGradient?H="radialGradient":F.linearGradient&&(H="linearGradient"),H){if(B=F[H],ie=Q.gradients,R=F.stops,Y=U.radialReference,V(B)&&(F[H]=B={x1:B[0],y1:B[1],x2:B[2],y2:B[3],gradientUnits:"userSpaceOnUse"}),H==="radialGradient"&&Y&&!N(B.gradientUnits)&&(K=B,B=T(B,Q.getRadialAttr(Y,K),{gradientUnits:"userSpaceOnUse"})),g(B,function(se,oe){oe!=="id"&&re.push(oe,se)}),g(R,function(se){re.push(se)}),ie[re=re.join(",")])X=ie[re].attr("id");else{B.id=X=M();let se=ie[re]=Q.createElement(H).attr(B).add(Q.defs);se.radAttr=K,se.stops=[],R.forEach(function(oe){oe[1].indexOf("rgba")===0?(G=(ce=s.parse(oe[1])).get("rgb"),W=ce.get("a")):(G=oe[1],W=1);let he=Q.createElement("stop").attr({offset:oe[0],"stop-color":G,"stop-opacity":W}).add(se);se.stops.push(he)})}ee="url("+Q.url+"#"+X+")",U.setAttribute(q,ee),U.gradient=re,F.toString=function(){return ee}}})}css(F){let q=this.styles,U={},Q=this.element,ce,H=!q;if(q&&g(F,function(B,K){q&&q[K]!==B&&(U[K]=B,H=!0)}),H){q&&(F=_(q,U)),F.width===null||F.width==="auto"?delete this.textWidth:Q.nodeName.toLowerCase()==="text"&&F.width&&(ce=this.textWidth=j(F.width)),_(this.styles,F),ce&&!y&&this.renderer.forExport&&delete F.width;let B=T(F);Q.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach(K=>B&&delete B[K]),B.color&&(B.fill=B.color)),E(Q,B)}return this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),F.textOutline&&this.applyTextOutline(F.textOutline)),this}dashstyleSetter(F){let q,U=this["stroke-width"];if(U==="inherit"&&(U=1),F=F&&F.toLowerCase()){let Q=F.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(q=Q.length;q--;)Q[q]=""+j(Q[q])*f(U,NaN);F=Q.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",F)}}destroy(){var K;let F=this,q=F.element||{},U=F.renderer,Q=q.ownerSVGElement,ce=q.nodeName==="SPAN"&&F.parentGroup||void 0,H,B;if(q.onclick=q.onmouseout=q.onmouseover=q.onmousemove=q.point=null,u(F),F.clipPath&&Q){let ie=F.clipPath;[].forEach.call(Q.querySelectorAll("[clip-path],[CLIP-PATH]"),function(R){R.getAttribute("clip-path").indexOf(ie.element.id)>-1&&R.removeAttribute("clip-path")}),F.clipPath=ie.destroy()}if(F.connector=(K=F.connector)==null?void 0:K.destroy(),F.stops){for(B=0;B<F.stops.length;B++)F.stops[B].destroy();F.stops.length=0,F.stops=void 0}for(F.safeRemoveChild(q);ce&&ce.div&&ce.div.childNodes.length===0;)H=ce.parentGroup,F.safeRemoveChild(ce.div),delete ce.div,ce=H;F.alignOptions&&S(U.alignedObjects,F),g(F,function(ie,R){F[R]&&F[R].parentGroup===F&&F[R].destroy&&F[R].destroy(),delete F[R]})}dSetter(F,q,U){V(F)&&(typeof F[0]=="string"&&(F=this.renderer.pathToSegments(F)),this.pathArray=F,F=F.reduce((Q,ce,H)=>ce&&ce.join?(H?Q+" ":"")+ce.join(" "):(ce||"").toString(),"")),/(NaN| {2}|^$)/.test(F)&&(F="M 0 0"),this[q]!==F&&(U.setAttribute(q,F),this[q]=F)}fillSetter(F,q,U){typeof F=="string"?U.setAttribute(q,F):F&&this.complexColor(F,q,U)}hrefSetter(F,q,U){U.setAttributeNS("http://www.w3.org/1999/xlink",q,F)}getBBox(F,q){let U,Q,ce,H,{alignValue:B,element:K,renderer:ie,styles:R,textStr:G}=this,{cache:W,cacheKeys:Y}=ie,X=K.namespaceURI===this.SVG_NS,re=f(q,this.rotation,0),ee=ie.styledMode?K&&z.prototype.getStyle.call(K,"font-size"):R.fontSize;if(N(G)&&((H=G.toString()).indexOf("<")===-1&&(H=H.replace(/\d/g,"0")),H+=["",ie.rootFontSize,ee,re,this.textWidth,B,R.textOverflow,R.fontWeight].join(",")),H&&!F&&(U=W[H]),!U||U.polygon){if(X||ie.forExport){try{ce=this.fakeTS&&function(oe){let he=K.querySelector(".highcharts-text-outline");he&&E(he,{display:oe})},I(ce)&&ce("none"),U=K.getBBox?_({},K.getBBox()):{width:K.offsetWidth,height:K.offsetHeight,x:0,y:0},I(ce)&&ce("")}catch{}(!U||U.width<0)&&(U={x:0,y:0,width:0,height:0})}else U=this.htmlGetBBox();Q=U.height,X&&(U.height=Q={"11px,17":14,"13px,20":16}[`${ee||""},${Math.round(Q)}`]||Q),re&&(U=this.getRotatedBox(U,re));let se={bBox:U};$(this,"afterGetBBox",se),U=se.bBox}if(H&&(G===""||U.height>0)){for(;Y.length>250;)delete W[Y.shift()];W[H]||Y.push(H),W[H]=U}return U}getRotatedBox(F,q){let{x:U,y:Q,width:ce,height:H}=F,{alignValue:B,translateY:K,rotationOriginX:ie=0,rotationOriginY:R=0}=this,G={right:1,center:.5}[B||0]||0,W=Number(this.element.getAttribute("y")||0)-(K?0:Q),Y=q*h,X=(q-90)*h,re=Math.cos(Y),ee=Math.sin(Y),se=ce*re,oe=ce*ee,he=Math.cos(X),pe=Math.sin(X),[[ne,te],[ae,le]]=[ie,R].map(Fe=>[Fe-Fe*re,Fe*ee]),de=U+G*(ce-se)+ne+le+W*he,ue=de+se,me=ue-H*he,ge=me-se,be=Q+W-G*oe-te+ae+W*pe,ve=be+oe,we=ve-H*pe,Ce=we-oe,Pe=Math.min(de,ue,me,ge),Ne=Math.min(be,ve,we,Ce),Ee=Math.max(de,ue,me,ge)-Pe,Te=Math.max(be,ve,we,Ce)-Ne;return{x:Pe,y:Ne,width:Ee,height:Te,polygon:[[de,be],[ue,ve],[me,we],[ge,Ce]]}}getStyle(F){return w.getComputedStyle(this.element||this,"").getPropertyValue(F)}hasClass(F){return(""+this.attr("class")).split(" ").indexOf(F)!==-1}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}constructor(F,q){this.onEvents={},this.opacity=1,this.SVG_NS=m,this.element=q==="span"||q==="body"?x(q):p.createElementNS(this.SVG_NS,q),this.renderer=F,this.styles={},$(this,"afterInit")}on(F,q){let{onEvents:U}=this;return U[F]&&U[F](),U[F]=k(this.element,F,q),this}opacitySetter(F,q,U){let Q=Number(Number(F).toFixed(3));this.opacity=Q,U.setAttribute(q,Q)}reAlign(){var F;(F=this.alignOptions)!=null&&F.width&&this.alignOptions.align!=="left"&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())}removeClass(F){return this.attr("class",(""+this.attr("class")).replace(L(F)?RegExp(`(^| )${F}( |$)`):F," ").replace(/ +/g," ").trim())}removeTextOutline(){let F=this.element.querySelector("tspan.highcharts-text-outline");F&&this.safeRemoveChild(F)}safeRemoveChild(F){let q=F.parentNode;q&&q.removeChild(F)}setRadialReference(F){let q=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=F,q&&q.radAttr&&q.animate(this.renderer.getRadialAttr(F,q.radAttr)),this}shadow(F){var ce;let{renderer:q}=this,U=T(((ce=this.parentGroup)==null?void 0:ce.rotation)===90?{offsetX:-1,offsetY:-1}:{},A(F)?F:{}),Q=q.shadowDefinition(U);return this.attr({filter:F?`url(${q.url}#${Q})`:"none"})}show(F=!0){return this.attr({visibility:F?"inherit":"visible"})}"stroke-widthSetter"(F,q,U){this[q]=F,U.setAttribute(q,F)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;let F=this.getStyle("stroke-width"),q=0,U;return/px$/.test(F)?q=j(F):F!==""&&(b(U=p.createElementNS(m,"rect"),{width:F,"stroke-width":0}),this.element.parentNode.appendChild(U),q=U.getBBox().width,U.parentNode.removeChild(U)),q}symbolAttr(F){let q=this;z.symbolCustomAttribs.forEach(function(U){q[U]=f(F[U],q[U])}),q.attr({d:q.renderer.symbols[q.symbolName](q.x,q.y,q.width,q.height,q)})}textSetter(F){F!==this.textStr&&(delete this.textPxLength,this.textStr=F,this.added&&this.renderer.buildText(this),this.reAlign())}titleSetter(F){let q=this.element,U=q.getElementsByTagName("title")[0]||p.createElementNS(this.SVG_NS,"title");q.insertBefore?q.insertBefore(U,q.firstChild):q.appendChild(U),U.textContent=C(f(F,""),[/<[^>]*>/g,""]).replace(/</g,"<").replace(/>/g,">")}toFront(){let F=this.element;return F.parentNode.appendChild(F),this}translate(F,q){return this.attr({translateX:F,translateY:q})}updateTransform(F="transform"){var W;let{element:q,matrix:U,rotation:Q=0,rotationOriginX:ce,rotationOriginY:H,scaleX:B,scaleY:K,translateX:ie=0,translateY:R=0}=this,G=["translate("+ie+","+R+")"];N(U)&&G.push("matrix("+U.join(",")+")"),Q&&(G.push("rotate("+Q+" "+f(ce,q.getAttribute("x"),0)+" "+f(H,q.getAttribute("y")||0)+")"),((W=this.text)==null?void 0:W.element.tagName)==="SPAN"&&this.text.attr({rotation:Q,rotationOriginX:(ce||0)-this.padding,rotationOriginY:(H||0)-this.padding})),(N(B)||N(K))&&G.push("scale("+f(B,1)+" "+f(K,1)+")"),G.length&&!(this.text||this).textPath&&q.setAttribute(F,G.join(" "))}visibilitySetter(F,q,U){F==="inherit"?U.removeAttribute(q):this[q]!==F&&U.setAttribute(q,F),this[q]=F}xGetter(F){return this.element.nodeName==="circle"&&(F==="x"?F="cx":F==="y"&&(F="cy")),this._defaultGetter(F)}zIndexSetter(F,q){let U=this.renderer,Q=this.parentGroup,ce=(Q||U).element||U.box,H=this.element,B=ce===U.box,K,ie,R,G=!1,W,Y=this.added,X;if(N(F)?(H.setAttribute("data-z-index",F),F=+F,this[q]===F&&(Y=!1)):N(this[q])&&H.removeAttribute("data-z-index"),this[q]=F,Y){for((F=this.zIndex)&&Q&&(Q.handleZ=!0),X=(K=ce.childNodes).length-1;X>=0&&!G;X--)W=!N(R=(ie=K[X]).getAttribute("data-z-index")),ie!==H&&(F<0&&W&&!B&&!X?(ce.insertBefore(H,K[X]),G=!0):(j(R)<=F||W&&(!N(F)||F>=0))&&(ce.insertBefore(H,K[X+1]),G=!0));G||(ce.insertBefore(H,K[B?3:0]),G=!0)}return G}}return z.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],z.prototype.strokeSetter=z.prototype.fillSetter,z.prototype.yGetter=z.prototype.xGetter,z.prototype.matrixSetter=z.prototype.rotationOriginXSetter=z.prototype.rotationOriginYSetter=z.prototype.rotationSetter=z.prototype.scaleXSetter=z.prototype.scaleYSetter=z.prototype.translateXSetter=z.prototype.translateYSetter=z.prototype.verticalAlignSetter=function(J,F){this[F]=J,this.doTransform=!0},z}),i(n,"Core/Renderer/SVG/SVGLabel.js",[n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],function(r,s){let{defined:a,extend:l,isNumber:c,merge:d,pick:u,removeEvent:h}=s;class p extends r{constructor(m,w,k,b,x,v,E,N,S,_){let $;super(m,"g"),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.doUpdate=!1,this.textStr=w,this.x=k,this.y=b,this.anchorX=v,this.anchorY=E,this.baseline=S,this.className=_,this.addClass(_==="button"?"highcharts-no-tooltip":"highcharts-label"),_&&this.addClass("highcharts-"+_),this.text=m.text(void 0,0,0,N).attr({zIndex:1}),typeof x=="string"&&(($=/^url\((.*?)\)$/.test(x))||this.renderer.symbols[x])&&(this.symbolKey=x),this.bBox=p.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=m.styledMode||$,this.deferredAttr={},this.alignFactor=0}alignSetter(m){let w={left:0,center:.5,right:1}[m];w!==this.alignFactor&&(this.alignFactor=w,this.bBox&&c(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(m,w){this.anchorX=m,this.boxAttr(w,Math.round(m)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(m,w){this.anchorY=m,this.boxAttr(w,m-this.ySetting)}boxAttr(m,w){this.box?this.box.attr(m,w):this.deferredAttr[m]=w}css(m){if(m){let w={};m=d(m),p.textProps.forEach(k=>{m[k]!==void 0&&(w[k]=m[k],delete m[k])}),this.text.css(w),"fontSize"in w||"fontWeight"in w?this.updateTextPadding():("width"in w||"textOverflow"in w)&&this.updateBoxSize()}return r.prototype.css.call(this,m)}destroy(){h(this.element,"mouseenter"),h(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),r.prototype.destroy.call(this)}fillSetter(m,w){m&&(this.needsBox=!0),this.fill=m,this.boxAttr(w,m)}getBBox(m,w){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();let{padding:k,height:b=0,translateX:x=0,translateY:v=0,width:E=0}=this,N=u(this.paddingLeft,k),S=w??(this.rotation||0),_={width:E,height:b,x:x+this.bBox.x-N,y:v+this.bBox.y-k+this.baselineOffset};return S&&(_=this.getRotatedBox(_,S)),_}getCrispAdjust(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(m){this.heightSetting=m,this.doUpdate=!0}afterSetters(){super.afterSetters(),this.doUpdate&&(this.updateBoxSize(),this.doUpdate=!1)}onAdd(){this.text.add(this),this.attr({text:u(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&a(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(m,w){c(m)?m!==this[w]&&(this[w]=m,this.updateTextPadding()):this[w]=void 0}rSetter(m,w){this.boxAttr(w,m)}strokeSetter(m,w){this.stroke=m,this.boxAttr(w,m)}"stroke-widthSetter"(m,w){m&&(this.needsBox=!0),this["stroke-width"]=m,this.boxAttr(w,m)}"text-alignSetter"(m){this.textAlign=m}textSetter(m){m!==void 0&&this.text.attr({text:m}),this.updateTextPadding(),this.reAlign()}updateBoxSize(){let m,w=this.text,k={},b=this.padding,x=this.bBox=(!c(this.widthSetting)||!c(this.heightSetting)||this.textAlign)&&a(w.textStr)?w.getBBox(void 0,0):p.emptyBBox;this.width=this.getPaddedWidth(),this.height=(this.heightSetting||x.height||0)+2*b;let v=this.renderer.fontMetrics(w);if(this.baselineOffset=b+Math.min((this.text.firstLineMetrics||v).b,x.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-v.h)/2),this.needsBox&&!w.textPath){if(!this.box){let E=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();E.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),E.add(this)}m=this.getCrispAdjust(),k.x=m,k.y=(this.baseline?-this.baselineOffset:0)+m,k.width=Math.round(this.width),k.height=Math.round(this.height),this.box.attr(l(k,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){let m=this.text;if(!m.textPath){this.updateBoxSize();let w=this.baseline?0:this.baselineOffset,k=u(this.paddingLeft,this.padding);a(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(k+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(k!==m.x||w!==m.y)&&(m.attr("x",k),m.hasBoxWidthChanged&&(this.bBox=m.getBBox(!0)),w!==void 0&&m.attr("y",w)),m.x=k,m.y=w}}widthSetter(m){this.widthSetting=c(m)?m:void 0,this.doUpdate=!0}getPaddedWidth(){let m=this.padding,w=u(this.paddingLeft,m),k=u(this.paddingRight,m);return(this.widthSetting||this.bBox.width||0)+w+k}xSetter(m){this.x=m,this.alignFactor&&(m-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(m),this.attr("translateX",this.xSetting)}ySetter(m){this.ySetting=this.y=Math.round(m),this.attr("translateY",this.ySetting)}}return p.emptyBBox={width:0,height:0,x:0,y:0},p.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"],p}),i(n,"Core/Renderer/SVG/Symbols.js",[n["Core/Utilities.js"]],function(r){let{defined:s,isNumber:a,pick:l}=r;function c(h,p,y,m,w){let k=[];if(w){let b=w.start||0,x=l(w.r,y),v=l(w.r,m||y),E=2e-4/(w.borderRadius?1:Math.max(x,1)),N=Math.abs((w.end||0)-b-2*Math.PI)<E,S=(w.end||0)-(N?E:0),_=w.innerR,$=l(w.open,N),V=Math.cos(b),I=Math.sin(b),A=Math.cos(S),L=Math.sin(S),T=l(w.longArc,S-b-Math.PI<E?0:1),g=["A",x,v,0,T,l(w.clockwise,1),h+x*A,p+v*L];g.params={start:b,end:S,cx:h,cy:p},k.push(["M",h+x*V,p+v*I],g),s(_)&&((g=["A",_,_,0,T,s(w.clockwise)?1-w.clockwise:0,h+_*V,p+_*I]).params={start:S,end:b,cx:h,cy:p},k.push($?["M",h+_*A,p+_*L]:["L",h+_*A,p+_*L],g)),$||k.push(["Z"])}return k}function d(h,p,y,m,w){return w&&w.r?u(h,p,y,m,w):[["M",h,p],["L",h+y,p],["L",h+y,p+m],["L",h,p+m],["Z"]]}function u(h,p,y,m,w){let k=(w==null?void 0:w.r)||0;return[["M",h+k,p],["L",h+y-k,p],["A",k,k,0,0,1,h+y,p+k],["L",h+y,p+m-k],["A",k,k,0,0,1,h+y-k,p+m],["L",h+k,p+m],["A",k,k,0,0,1,h,p+m-k],["L",h,p+k],["A",k,k,0,0,1,h+k,p],["Z"]]}return{arc:c,callout:function(h,p,y,m,w){let k=Math.min(w&&w.r||0,y,m),b=k+6,x=w&&w.anchorX,v=w&&w.anchorY||0,E=u(h,p,y,m,{r:k});if(!a(x)||x<y&&x>0&&v<m&&v>0)return E;if(h+x>y-b)if(v>p+b&&v<p+m-b)E.splice(3,1,["L",h+y,v-6],["L",h+y+6,v],["L",h+y,v+6],["L",h+y,p+m-k]);else if(x<y){let N=v<p+b,S=N?p:p+m;E.splice(N?2:5,0,["L",x,v],["L",h+y-k,S])}else E.splice(3,1,["L",h+y,m/2],["L",x,v],["L",h+y,m/2],["L",h+y,p+m-k]);else if(h+x<b)if(v>p+b&&v<p+m-b)E.splice(7,1,["L",h,v+6],["L",h-6,v],["L",h,v-6],["L",h,p+k]);else if(x>0){let N=v<p+b,S=N?p:p+m;E.splice(N?1:6,0,["L",x,v],["L",h+k,S])}else E.splice(7,1,["L",h,m/2],["L",x,v],["L",h,m/2],["L",h,p+k]);else v>m&&x<y-b?E.splice(5,1,["L",x+6,p+m],["L",x,p+m+6],["L",x-6,p+m],["L",h+k,p+m]):v<0&&x>b&&E.splice(1,1,["L",x-6,p],["L",x,p-6],["L",x+6,p],["L",y-k,p]);return E},circle:function(h,p,y,m){return c(h+y/2,p+m/2,y/2,m/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(h,p,y,m){return[["M",h+y/2,p],["L",h+y,p+m/2],["L",h+y/2,p+m],["L",h,p+m/2],["Z"]]},rect:d,roundedRect:u,square:d,triangle:function(h,p,y,m){return[["M",h+y/2,p],["L",h+y,p+m],["L",h,p+m],["Z"]]},"triangle-down":function(h,p,y,m){return[["M",h,p],["L",h+y,p],["L",h+y/2,p+m],["Z"]]}}}),i(n,"Core/Renderer/SVG/TextBuilder.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],function(r,s,a){let{doc:l,SVG_NS:c,win:d}=s,{attr:u,extend:h,fireEvent:p,isString:y,objectEach:m,pick:w}=a;return class{constructor(k){let b=k.styles;this.renderer=k.renderer,this.svgElement=k,this.width=k.textWidth,this.textLineHeight=b&&b.lineHeight,this.textOutline=b&&b.textOutline,this.ellipsis=!!(b&&b.textOverflow==="ellipsis"),this.noWrap=!!(b&&b.whiteSpace==="nowrap")}buildSVG(){let k=this.svgElement,b=k.element,x=k.renderer,v=w(k.textStr,"").toString(),E=v.indexOf("<")!==-1,N=b.childNodes,S=!k.added&&x.box,_=[v,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,k.getStyle("font-size"),this.width].join(",");if(_!==k.textCache){k.textCache=_,delete k.actualWidth;for(let $=N.length;$--;)b.removeChild(N[$]);if(E||this.ellipsis||this.width||k.textPath||v.indexOf(" ")!==-1&&(!this.noWrap||/<br.*?>/g.test(v))){if(v!==""){S&&S.appendChild(b);let $=new r(v);this.modifyTree($.nodes),$.addToDOM(b),this.modifyDOM(),this.ellipsis&&(b.textContent||"").indexOf("â¦")!==-1&&k.attr("title",this.unescapeEntities(k.textStr||"",["<",">"])),S&&S.removeChild(b)}}else b.appendChild(l.createTextNode(this.unescapeEntities(v)));y(this.textOutline)&&k.applyTextOutline&&k.applyTextOutline(this.textOutline)}}modifyDOM(){let k,b=this.svgElement,x=u(b.element,"x");for(b.firstLineMetrics=void 0;(k=b.element.firstChild)&&/^[\s\u200B]*$/.test(k.textContent||" ");)b.element.removeChild(k);[].forEach.call(b.element.querySelectorAll("tspan.highcharts-br"),(S,_)=>{S.nextSibling&&S.previousSibling&&(_===0&&S.previousSibling.nodeType===1&&(b.firstLineMetrics=b.renderer.fontMetrics(S.previousSibling)),u(S,{dy:this.getLineHeight(S.nextSibling),x}))});let v=this.width||0;if(!v)return;let E=(S,_)=>{let $=S.textContent||"",V=$.replace(/([^\^])-/g,"$1- ").split(" "),I=!this.noWrap&&(V.length>1||b.element.childNodes.length>1),A=this.getLineHeight(_),L=0,T=b.actualWidth;if(this.ellipsis)$&&this.truncate(S,$,void 0,0,Math.max(0,v-.8*A),(g,f)=>g.substring(0,f)+"â¦");else if(I){let g=[],f=[];for(;_.firstChild&&_.firstChild!==S;)f.push(_.firstChild),_.removeChild(_.firstChild);for(;V.length;)V.length&&!this.noWrap&&L>0&&(g.push(S.textContent||""),S.textContent=V.join(" ").replace(/- /g,"-")),this.truncate(S,void 0,V,L===0&&T||0,v,(j,P)=>V.slice(0,P).join(" ").replace(/- /g,"-")),T=b.actualWidth,L++;f.forEach(j=>{_.insertBefore(j,S)}),g.forEach(j=>{_.insertBefore(l.createTextNode(j),S);let P=l.createElementNS(c,"tspan");P.textContent="â",u(P,{dy:A,x}),_.insertBefore(P,S)})}},N=S=>{[].slice.call(S.childNodes).forEach(_=>{_.nodeType===d.Node.TEXT_NODE?E(_,S):(_.className.baseVal.indexOf("highcharts-br")!==-1&&(b.actualWidth=0),N(_))})};N(b.element)}getLineHeight(k){let b=k.nodeType===d.Node.TEXT_NODE?k.parentElement:k;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(b||this.svgElement.element).h}modifyTree(k){let b=(x,v)=>{let{attributes:E={},children:N,style:S={},tagName:_}=x,$=this.renderer.styledMode;if(_==="b"||_==="strong"?$?E.class="highcharts-strong":S.fontWeight="bold":(_==="i"||_==="em")&&($?E.class="highcharts-emphasized":S.fontStyle="italic"),S&&S.color&&(S.fill=S.color),_==="br"){E.class="highcharts-br",x.textContent="â";let V=k[v+1];V&&V.textContent&&(V.textContent=V.textContent.replace(/^ +/gm,""))}else _==="a"&&N&&N.some(V=>V.tagName==="#text")&&(x.children=[{children:N,tagName:"tspan"}]);_!=="#text"&&_!=="a"&&(x.tagName="tspan"),h(x,{attributes:E,style:S}),N&&N.filter(V=>V.tagName!=="#text").forEach(b)};k.forEach(b),p(this.svgElement,"afterModifyTree",{nodes:k})}truncate(k,b,x,v,E,N){let S,_,$=this.svgElement,{rotation:V}=$,I=[],A=x?1:0,L=(b||x||"").length,T=L,g=function(f,j){let P=j||f,C=k.parentNode;if(C&&I[P]===void 0&&C.getSubStringLength)try{I[P]=v+C.getSubStringLength(0,x?P+1:P)}catch{}return I[P]};if($.rotation=0,v+(_=g(k.textContent.length))>E){for(;A<=L;)T=Math.ceil((A+L)/2),x&&(S=N(x,T)),_=g(T,S&&S.length-1),A===L?A=L+1:_>E?L=T-1:A=T;L===0?k.textContent="":b&&L===b.length-1||(k.textContent=S||N(b||x,T))}x&&x.splice(0,T),$.actualWidth=_,$.rotation=V}unescapeEntities(k,b){return m(this.renderer.escapes,function(x,v){b&&b.indexOf(x)!==-1||(k=k.toString().replace(RegExp(x,"g"),v))}),k}}}),i(n,"Core/Renderer/SVG/SVGRenderer.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Defaults.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Renderer/SVG/SVGLabel.js"],n["Core/Renderer/SVG/Symbols.js"],n["Core/Renderer/SVG/TextBuilder.js"],n["Core/Utilities.js"]],function(r,s,a,l,c,d,u,h,p,y){let m,{defaultOptions:w}=s,{charts:k,deg2rad:b,doc:x,isFirefox:v,isMS:E,isWebKit:N,noop:S,SVG_NS:_,symbolSizes:$,win:V}=l,{addEvent:I,attr:A,createElement:L,crisp:T,css:g,defined:f,destroyObjectProperties:j,extend:P,isArray:C,isNumber:D,isObject:M,isString:z,merge:J,pick:F,pInt:q,replaceNested:U,uniqueKey:Q}=y;class ce{constructor(B,K,ie,R,G,W,Y){let X,re,ee=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),se=ee.element;Y||ee.css(this.getStyle(R||{})),B.appendChild(se),A(B,"dir","ltr"),B.innerHTML.indexOf("xmlns")===-1&&A(se,"xmlns",this.SVG_NS),this.box=se,this.boxWrapper=ee,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(x.createTextNode("Created with Highcharts 11.4.8")),this.defs=this.createElement("defs").add(),this.allowHTML=W,this.forExport=G,this.styledMode=Y,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=ee.getStyle("font-size"),this.setSize(K,ie,!1),v&&B.getBoundingClientRect&&((X=function(){g(B,{left:0,top:0}),re=B.getBoundingClientRect(),g(B,{left:Math.ceil(re.left)-re.left+"px",top:Math.ceil(re.top)-re.top+"px"})})(),this.unSubPixelFix=I(V,"resize",X))}definition(B){return new r([B]).addToDOM(this.defs.element)}getReferenceURL(){if((v||N)&&x.getElementsByTagName("base").length){if(!f(m)){let B=Q(),K=new r([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:B},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${B})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(x.body);g(K,{position:"fixed",top:0,left:0,zIndex:9e5});let ie=x.elementFromPoint(6,6);m=(ie&&ie.id)==="hitme",x.body.removeChild(K)}if(m)return U(V.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""}getStyle(B){return this.style=P({fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1rem"},B),this.style}setStyle(B){this.boxWrapper.css(this.getStyle(B))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){let B=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),j(this.gradients||{}),this.gradients=null,this.defs=B.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null}createElement(B){return new this.Element(this,B)}getRadialAttr(B,K){return{cx:B[0]-B[2]/2+(K.cx||0)*B[2],cy:B[1]-B[2]/2+(K.cy||0)*B[2],r:(K.r||0)*B[2]}}shadowDefinition(B){let K=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(B).map(R=>`${R}-${B[R]}`)].join("-").toLowerCase().replace(/[^a-z\d\-]/g,""),ie=J({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},B);return this.defs.element.querySelector(`#${K}`)||this.definition({tagName:"filter",attributes:{id:K,filterUnits:ie.filterUnits},children:this.getShadowFilterContent(ie)}),K}getShadowFilterContent(B){return[{tagName:"feDropShadow",attributes:{dx:B.offsetX,dy:B.offsetY,"flood-color":B.color,"flood-opacity":Math.min(5*B.opacity,1),stdDeviation:B.width/2}}]}buildText(B){new p(B).buildSVG()}getContrast(B){let K=a.parse(B).rgba.map(R=>{let G=R/255;return G<=.03928?G/12.92:Math.pow((G+.055)/1.055,2.4)}),ie=.2126*K[0]+.7152*K[1]+.0722*K[2];return 1.05/(ie+.05)>(ie+.05)/.05?"#FFFFFF":"#000000"}button(B,K,ie,R,G={},W,Y,X,re,ee){let se=this.label(B,K,ie,re,void 0,void 0,ee,void 0,"button"),oe=this.styledMode,he=arguments,pe=0;G=J(w.global.buttonTheme,G),oe&&(delete G.fill,delete G.stroke,delete G["stroke-width"]);let ne=G.states||{},te=G.style||{};delete G.states,delete G.style;let ae=[r.filterUserAttributes(G)],le=[te];return oe||["hover","select","disabled"].forEach((de,ue)=>{ae.push(J(ae[0],r.filterUserAttributes(he[ue+5]||ne[de]||{}))),le.push(ae[ue+1].style),delete ae[ue+1].style}),I(se.element,E?"mouseover":"mouseenter",function(){pe!==3&&se.setState(1)}),I(se.element,E?"mouseout":"mouseleave",function(){pe!==3&&se.setState(pe)}),se.setState=(de=0)=>{if(de!==1&&(se.state=pe=de),se.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][de]),!oe){se.attr(ae[de]);let ue=le[de];M(ue)&&se.css(ue)}},se.attr(ae[0]),!oe&&(se.css(P({cursor:"default"},te)),ee&&se.text.css({pointerEvents:"none"})),se.on("touchstart",de=>de.stopPropagation()).on("click",function(de){pe!==3&&R.call(se,de)})}crispLine(B,K){let[ie,R]=B;return f(ie[1])&&ie[1]===R[1]&&(ie[1]=R[1]=T(ie[1],K)),f(ie[2])&&ie[2]===R[2]&&(ie[2]=R[2]=T(ie[2],K)),B}path(B){let K=this.styledMode?{}:{fill:"none"};return C(B)?K.d=B:M(B)&&P(K,B),this.createElement("path").attr(K)}circle(B,K,ie){let R=M(B)?B:B===void 0?{}:{x:B,y:K,r:ie},G=this.createElement("circle");return G.xSetter=G.ySetter=function(W,Y,X){X.setAttribute("c"+Y,W)},G.attr(R)}arc(B,K,ie,R,G,W){let Y;M(B)?(K=(Y=B).y,ie=Y.r,R=Y.innerR,G=Y.start,W=Y.end,B=Y.x):Y={innerR:R,start:G,end:W};let X=this.symbol("arc",B,K,ie,ie,Y);return X.r=ie,X}rect(B,K,ie,R,G,W){let Y=M(B)?B:B===void 0?{}:{x:B,y:K,r:G,width:Math.max(ie||0,0),height:Math.max(R||0,0)},X=this.createElement("rect");return this.styledMode||(W!==void 0&&(Y["stroke-width"]=W,P(Y,X.crisp(Y))),Y.fill="none"),X.rSetter=function(re,ee,se){X.r=re,A(se,{rx:re,ry:re})},X.rGetter=function(){return X.r||0},X.attr(Y)}roundedRect(B){return this.symbol("roundedRect").attr(B)}setSize(B,K,ie){this.width=B,this.height=K,this.boxWrapper.animate({width:B,height:K},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:F(ie,!0)?void 0:0}),this.alignElements()}g(B){let K=this.createElement("g");return B?K.attr({class:"highcharts-"+B}):K}image(B,K,ie,R,G,W){let Y={preserveAspectRatio:"none"};D(K)&&(Y.x=K),D(ie)&&(Y.y=ie),D(R)&&(Y.width=R),D(G)&&(Y.height=G);let X=this.createElement("image").attr(Y),re=function(ee){X.attr({href:B}),W.call(X,ee)};if(W){X.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});let ee=new V.Image;I(ee,"load",re),ee.src=B,ee.complete&&re({})}else X.attr({href:B});return X}symbol(B,K,ie,R,G,W){let Y,X,re,ee,se=this,oe=/^url\((.*?)\)$/,he=oe.test(B),pe=!he&&(this.symbols[B]?B:"circle"),ne=pe&&this.symbols[pe];if(ne)typeof K=="number"&&(X=ne.call(this.symbols,K||0,ie||0,R||0,G||0,W)),Y=this.path(X),se.styledMode||Y.attr("fill","none"),P(Y,{symbolName:pe||void 0,x:K,y:ie,width:R,height:G}),W&&P(Y,W);else if(he){re=B.match(oe)[1];let te=Y=this.image(re);te.imgwidth=F(W&&W.width,$[re]&&$[re].width),te.imgheight=F(W&&W.height,$[re]&&$[re].height),ee=ae=>ae.attr({width:ae.width,height:ae.height}),["width","height"].forEach(ae=>{te[`${ae}Setter`]=function(le,de){this[de]=le;let{alignByTranslate:ue,element:me,width:ge,height:be,imgwidth:ve,imgheight:we}=this,Ce=de==="width"?ve:we,Pe=1;W&&W.backgroundSize==="within"&&ge&&be&&ve&&we?(Pe=Math.min(ge/ve,be/we),A(me,{width:Math.round(ve*Pe),height:Math.round(we*Pe)})):me&&Ce&&me.setAttribute(de,Ce),!ue&&ve&&we&&this.translate(((ge||0)-ve*Pe)/2,((be||0)-we*Pe)/2)}}),f(K)&&te.attr({x:K,y:ie}),te.isImg=!0,te.symbolUrl=B,f(te.imgwidth)&&f(te.imgheight)?ee(te):(te.attr({width:0,height:0}),L("img",{onload:function(){let ae=k[se.chartIndex];this.width===0&&(g(this,{position:"absolute",top:"-999em"}),x.body.appendChild(this)),$[re]={width:this.width,height:this.height},te.imgwidth=this.width,te.imgheight=this.height,te.element&&ee(te),this.parentNode&&this.parentNode.removeChild(this),se.imgCount--,se.imgCount||!ae||ae.hasLoaded||ae.onload()},src:re}),this.imgCount++)}return Y}clipRect(B,K,ie,R){return this.rect(B,K,ie,R,0)}text(B,K,ie,R){let G={};if(R&&(this.allowHTML||!this.forExport))return this.html(B,K,ie);G.x=Math.round(K||0),ie&&(G.y=Math.round(ie)),f(B)&&(G.text=B);let W=this.createElement("text").attr(G);return R&&(!this.forExport||this.allowHTML)||(W.xSetter=function(Y,X,re){let ee=re.getElementsByTagName("tspan"),se=re.getAttribute(X);for(let oe=0,he;oe<ee.length;oe++)(he=ee[oe]).getAttribute(X)===se&&he.setAttribute(X,Y);re.setAttribute(X,Y)}),W}fontMetrics(B){let K=q(d.prototype.getStyle.call(B,"font-size")||0),ie=K<24?K+3:Math.round(1.2*K),R=Math.round(.8*ie);return{h:ie,b:R,f:K}}rotCorr(B,K,ie){let R=B;return K&&ie&&(R=Math.max(R*Math.cos(K*b),4)),{x:-B/3*Math.sin(K*b),y:R}}pathToSegments(B){let K=[],ie=[],R={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2};for(let G=0;G<B.length;G++)z(ie[0])&&D(B[G])&&ie.length===R[ie[0].toUpperCase()]&&B.splice(G,0,ie[0].replace("M","L").replace("m","l")),typeof B[G]=="str
178ing"&&(ie.length&&K.push(ie.slice(0)),ie.length=0),ie.push(B[G]);return K.push(ie.slice(0)),K}label(B,K,ie,R,G,W,Y,X,re){return new u(this,B,K,ie,R,G,W,Y,X,re)}alignElements(){this.alignedObjects.forEach(B=>B.align())}}return P(ce.prototype,{Element:d,SVG_NS:_,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:h,draw:S}),c.registerRendererType("svg",ce,!0),ce}),i(n,"Core/Renderer/HTML/HTMLElement.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Globals.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],function(r,s,a,l){let{composed:c}=s,{attr:d,css:u,createElement:h,defined:p,extend:y,pInt:m,pushUnique:w}=l;function k(E,N,S){var $;let _=(($=this.div)==null?void 0:$.style)||S.style;a.prototype[`${N}Setter`].call(this,E,N,S),_&&(_[N]=E)}let b=(E,N)=>{var S;if(!E.div){let _=d(E.element,"class"),$=E.css,V=h("div",_?{className:_}:void 0,{position:"absolute",left:`${E.translateX||0}px`,top:`${E.translateY||0}px`,...E.styles,display:E.display,opacity:E.opacity,visibility:E.visibility},((S=E.parentGroup)==null?void 0:S.div)||N);E.classSetter=(I,A,L)=>{L.setAttribute("class",I),V.className=I},E.translateXSetter=E.translateYSetter=(I,A)=>{E[A]=I,V.style[A==="translateX"?"left":"top"]=`${I}px`,E.doTransform=!0},E.opacitySetter=E.visibilitySetter=k,E.css=I=>($.call(E,I),I.cursor&&(V.style.cursor=I.cursor),I.pointerEvents&&(V.style.pointerEvents=I.pointerEvents),E),E.on=function(){return a.prototype.on.apply({element:V,onEvents:E.onEvents},arguments),E},E.div=V}return E.div};class x extends a{static compose(N){w(c,this.compose)&&(N.prototype.html=function(S,_,$){return new x(this,"span").attr({text:S,x:Math.round(_),y:Math.round($)})})}constructor(N,S){super(N,S),this.css({position:"absolute",...N.styledMode?{}:{fontFamily:N.style.fontFamily,fontSize:N.style.fontSize}}),this.element.style.whiteSpace="nowrap"}getSpanCorrection(N,S,_){this.xCorr=-N*_,this.yCorr=-S}css(N){let S,{element:_}=this,$=_.tagName==="SPAN"&&N&&"width"in N,V=$&&N.width;return $&&(delete N.width,this.textWidth=m(V)||void 0,S=!0),(N==null?void 0:N.textOverflow)==="ellipsis"&&(N.whiteSpace="nowrap",N.overflow="hidden"),y(this.styles,N),u(_,N),S&&this.updateTransform(),this}htmlGetBBox(){let{element:N}=this;return{x:N.offsetLeft,y:N.offsetTop,width:N.offsetWidth,height:N.offsetHeight}}updateTransform(){var D;if(!this.added){this.alignOnAdd=!0;return}let{element:N,renderer:S,rotation:_,rotationOriginX:$,rotationOriginY:V,styles:I,textAlign:A="left",textWidth:L,translateX:T=0,translateY:g=0,x:f=0,y:j=0}=this,P={left:0,center:.5,right:1}[A],C=I.whiteSpace;if(u(N,{marginLeft:`${T}px`,marginTop:`${g}px`}),N.tagName==="SPAN"){let M=[_,A,N.innerHTML,L,this.textAlign].join(","),z=-(((D=this.parentGroup)==null?void 0:D.padding)*1)||0,J,F=!1;if(L!==this.oldTextWidth){let H=this.textPxLength?this.textPxLength:(u(N,{width:"",whiteSpace:C||"nowrap"}),N.offsetWidth),B=L||0;(B>this.oldTextWidth||H>B)&&(/[ \-]/.test(N.textContent||N.innerText)||N.style.textOverflow==="ellipsis")&&(u(N,{width:H>B||_?L+"px":"auto",display:"block",whiteSpace:C||"normal"}),this.oldTextWidth=L,F=!0)}this.hasBoxWidthChanged=F,M!==this.cTT&&(J=S.fontMetrics(N).b,p(_)&&(_!==(this.oldRotation||0)||A!==this.oldAlign)&&this.setSpanRotation(_,z,z),this.getSpanCorrection(!p(_)&&this.textPxLength||N.offsetWidth,J,P));let{xCorr:q=0,yCorr:U=0}=this,Q=($??f)-q-f-z,ce=(V??j)-U-j-z;u(N,{left:`${f+q}px`,top:`${j+U}px`,transformOrigin:`${Q}px ${ce}px`}),this.cTT=M,this.oldRotation=_,this.oldAlign=A}}setSpanRotation(N,S,_){u(this.element,{transform:`rotate(${N}deg)`,transformOrigin:`${S}% ${_}px`})}add(N){let S,_=this.renderer.box.parentNode,$=[];if(this.parentGroup=N,N&&!(S=N.div)){let V=N;for(;V;)$.push(V),V=V.parentGroup;for(let I of $.reverse())S=b(I,_)}return(S||_).appendChild(this.element),this.added=!0,this.alignOnAdd&&this.updateTransform(),this}textSetter(N){N!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,r.setElementHTML(this.element,N??""),this.textStr=N,this.doTransform=!0)}alignSetter(N){this.alignValue=this.textAlign=N,this.doTransform=!0}xSetter(N,S){this[S]=N,this.doTransform=!0}}let v=x.prototype;return v.visibilitySetter=v.opacitySetter=k,v.ySetter=v.rotationSetter=v.rotationOriginXSetter=v.rotationOriginYSetter=v.xSetter,x}),i(n,"Core/Axis/AxisDefaults.js",[],function(){var r,s;return(s=r||(r={})).xAxis={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"
178%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e %b"},week:{main:"%e %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},s.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){let{numberFormatter:a}=this.axis.chart;return a(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},r}),i(n,"Core/Foundation.js",[n["Core/Utilities.js"]],function(r){var s;let{addEvent:a,isFunction:l,objectEach:c,removeEvent:d}=r;return(s||(s={})).registerEventOptions=function(u,h){u.eventOptions=u.eventOptions||{},c(h.events,function(p,y){u.eventOptions[y]!==p&&(u.eventOptions[y]&&(d(u,y,u.eventOptions[y]),delete u.eventOptions[y]),l(p)&&(u.eventOptions[y]=p,a(u,y,p,{order:0})))})},s}),i(n,"Core/Axis/Tick.js",[n["Core/Templating.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],function(r,s,a){let{deg2rad:l}=s,{clamp:c,correctFloat:d,defined:u,destroyObjectProperties:h,extend:p,fireEvent:y,isNumber:m,merge:w,objectEach:k,pick:b}=a;return class{constructor(x,v,E,N,S){this.isNew=!0,this.isNewLabel=!0,this.axis=x,this.pos=v,this.type=E||"",this.parameters=S||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,y(this,"init"),E||N||this.addLabel()}addLabel(){let x=this,v=x.axis,E=v.options,N=v.chart,S=v.categories,_=v.logarithmic,$=v.names,V=x.pos,I=b(x.options&&x.options.labels,E.labels),A=v.tickPositions,L=V===A[0],T=V===A[A.length-1],g=(!I.step||I.step===1)&&v.tickInterval===1,f=A.info,j=x.label,P,C,D,M=this.parameters.category||(S?b(S[V],$[V],V):V);_&&m(M)&&(M=d(_.lin2log(M))),v.dateTime&&(f?P=(C=N.time.resolveDTLFormat(E.dateTimeLabelFormats[!E.grid&&f.higherRanks[V]||f.unitName])).main:m(M)&&(P=v.dateTime.getXDateFormat(M,E.dateTimeLabelFormats||{}))),x.isFirst=L,x.isLast=T;let z={axis:v,chart:N,dateTimeLabelFormat:P,isFirst:L,isLast:T,pos:V,tick:x,tickPositionInfo:f,value:M};y(this,"labelFormat",z);let J=U=>I.formatter?I.formatter.call(U,U):I.format?(U.text=v.defaultLabelFormatter.call(U),r.format(I.format,U,N)):v.defaultLabelFormatter.call(U),F=J.call(z,z),q=C&&C.list;q?x.shortenLabel=function(){for(D=0;D<q.length;D++)if(p(z,{dateTimeLabelFormat:q[D]}),j.attr({text:J.call(z,z)}),j.getBBox().width<v.getSlotWidth(x)-2*(I.padding||0))return;j.attr({text:""})}:x.shortenLabel=void 0,g&&v._addedPlotLB&&x.moveLabel(F,I),u(j)||x.movedLabel?j&&j.textStr!==F&&!g&&(!j.textWidth||I.style.width||j.styles.width||j.css({width:null}),j.attr({text:F}),j.textPxLength=j.getBBox().width):(x.label=j=x.createLabel(F,I),x.rotation=0)}createLabel(x,v,E){let N=this.axis,S=N.chart,_=u(x)&&v.enabled?S.renderer.text(x,E==null?void 0:E.x,E==null?void 0:E.y,v.useHTML).add(N.labelGroup):void 0;return _&&(S.styledMode||_.css(w(v.style)),_.textPxLength=_.getBBox().width),_}destroy(){h(this,this.axis)}getPosition(x,v,E,N){let S=this.axis,_=S.chart,$=N&&_.oldChartHeight||_.chartHeight,V={x:x?d(S.translate(v+E,void 0,void 0,N)+S.transB):S.left+S.offset+(S.opposite?(N&&_.oldChartWidth||_.chartWidth)-S.right-S.left:0),y:x?$-S.bottom+S.offset-(S.opposite?S.height:0):d($-S.translate(v+E,void 0,void 0,N)-S.transB)};return V.y=c(V.y,-1e9,1e9),y(this,"afterGetPosition",{pos:V}),V}getLabelPosition(x,v,E,N,S,_,$,V){let I,A,L=this.axis,T=L.transA,g=L.isLinked&&L.linkedParent?L.linkedParent.reversed:L.reversed,f=L.staggerLines,j=L.tickRotCorr||{x:0,y:0},P=N||L.reserveSpaceDefault?0:-L.labelOffset*(L.labelAlign==="center"?.5:1),C=S.distance,D={};return I=L.side===0?E.rotation?-C:-E.getBBox().height:L.side===2?j.y+C:Math.cos(E.rotation*l)*(j.y-E.getBBox(!1,0).height/2),u(S.y)&&(I=L.side===0&&L.horiz?S.y+I:S.y),x=x+b(S.x,[0,1,0,-1][L.side]*C)+P+j.x-(_&&N?_*T*(g?-1:1):0),v=v+I-(_&&!N?_*T*(g?1:-1):0),f&&(A=$/(V||1)%f,L.opposite&&(A=f-A-1),v+=A*(L.labelOffset/f)),D.x=x,D.y=Math.round(v),y(this,"afterGetLabelPosition",{pos:D,tickmarkOffset:_,index:$}),D}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(x,v,E,N,S=!1,_){return _.crispLine([["M",x,v],["L",x+(S?0:-E),v+(S?E:0)]],N)}handleOverflow(x){let v=this.axis,E=v.options.labels,N=x.x,S=v.chart.chartWidth,_=v.chart.spacing,$=b(v.labelLeft,Math.min(v.pos,_[3])),V=b(v.labelRight,Math.max(v.isRadial?
1780:v.pos+v.len,S-_[1])),I=this.label,A=this.rotation,L={left:0,center:.5,right:1}[v.labelAlign||I.attr("align")],T=I.getBBox().width,g=v.getSlotWidth(this),f={},j=g,P=1,C,D,M;A||E.overflow!=="justify"?A<0&&N-L*T<$?M=Math.round(N/Math.cos(A*l)-$):A>0&&N+L*T>V&&(M=Math.round((S-N)/Math.cos(A*l))):(C=N-L*T,D=N+(1-L)*T,C<$?j=x.x+j*(1-L)-$:D>V&&(j=V-x.x+j*L,P=-1),(j=Math.min(g,j))<g&&v.labelAlign==="center"&&(x.x+=P*(g-j-L*(g-Math.min(T,j)))),(T>j||v.autoRotation&&(I.styles||{}).width)&&(M=j)),M&&(this.shortenLabel?this.shortenLabel():(f.width=Math.floor(M)+"px",(E.style||{}).textOverflow||(f.textOverflow="ellipsis"),I.css(f)))}moveLabel(x,v){let E=this,N=E.label,S=E.axis,_=!1,$;N&&N.textStr===x?(E.movedLabel=N,_=!0,delete E.label):k(S.ticks,function(V){_||V.isNew||V===E||!V.label||V.label.textStr!==x||(E.movedLabel=V.label,_=!0,V.labelPos=E.movedLabel.xy,delete V.label)}),!_&&(E.labelPos||N)&&($=E.labelPos||N.xy,E.movedLabel=E.createLabel(x,v,$),E.movedLabel&&E.movedLabel.attr({opacity:0}))}render(x,v,E){let N=this.axis,S=N.horiz,_=this.pos,$=b(this.tickmarkOffset,N.tickmarkOffset),V=this.getPosition(S,_,$,v),I=V.x,A=V.y,L=N.pos,T=L+N.len,g=S?I:A;!N.chart.polar&&this.isNew&&(d(g)<L||g>T)&&(E=0);let f=b(E,this.label&&this.label.newOpacity,1);E=b(E,1),this.isActive=!0,this.renderGridLine(v,E),this.renderMark(V,E),this.renderLabel(V,v,f,x),this.isNew=!1,y(this,"afterRender")}renderGridLine(x,v){let E=this.axis,N=E.options,S={},_=this.pos,$=this.type,V=b(this.tickmarkOffset,E.tickmarkOffset),I=E.chart.renderer,A=this.gridLine,L,T=N.gridLineWidth,g=N.gridLineColor,f=N.gridLineDashStyle;this.type==="minor"&&(T=N.minorGridLineWidth,g=N.minorGridLineColor,f=N.minorGridLineDashStyle),A||(E.chart.styledMode||(S.stroke=g,S["stroke-width"]=T||0,S.dashstyle=f),$||(S.zIndex=1),x&&(v=0),this.gridLine=A=I.path().attr(S).addClass("highcharts-"+($?$+"-":"")+"grid-line").add(E.gridGroup)),A&&(L=E.getPlotLinePath({value:_+V,lineWidth:A.strokeWidth(),force:"pass",old:x,acrossPanes:!1}))&&A[x||this.isNew?"attr":"animate"]({d:L,opacity:v})}renderMark(x,v){let E=this.axis,N=E.options,S=E.chart.renderer,_=this.type,$=E.tickSize(_?_+"Tick":"tick"),V=x.x,I=x.y,A=b(N[_!=="minor"?"tickWidth":"minorTickWidth"],!_&&E.isXAxis?1:0),L=N[_!=="minor"?"tickColor":"minorTickColor"],T=this.mark,g=!T;$&&(E.opposite&&($[0]=-$[0]),T||(this.mark=T=S.path().addClass("highcharts-"+(_?_+"-":"")+"tick").add(E.axisGroup),E.chart.styledMode||T.attr({stroke:L,"stroke-width":A})),T[g?"attr":"animate"]({d:this.getMarkPath(V,I,$[0],T.strokeWidth(),E.horiz,S),opacity:v}))}renderLabel(x,v,E,N){let S=this.axis,_=S.horiz,$=S.options,V=this.label,I=$.labels,A=I.step,L=b(this.tickmarkOffset,S.tickmarkOffset),T=x.x,g=x.y,f=!0;V&&m(T)&&(V.xy=x=this.getLabelPosition(T,g,V,_,I,L,N,A),(!this.isFirst||this.isLast||$.showFirstLabel)&&(!this.isLast||this.isFirst||$.showLastLabel)?!_||I.step||I.rotation||v||E===0||this.handleOverflow(x):f=!1,A&&N%A&&(f=!1),f&&m(x.y)?(x.opacity=E,V[this.isNewLabel?"attr":"animate"](x).show(!0),this.isNewLabel=!1):(V.hide(),this.isNewLabel=!0))}replaceMovedLabel(){let x=this.label,v=this.axis;x&&!this.isNew&&(x.animate({opacity:0}
vendor: 32,720 bytes, line 178
178,void 0,x.destroy),delete this.label),v.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}}}),i(n,"Core/Axis/Axis.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/AxisDefaults.js"],n["Core/Color/Color.js"],n["Core/Defaults.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Axis/Tick.js"],n["Core/Utilities.js"]],function(r,s,a,l,c,d,u,h){let{animObject:p}=r,{xAxis:y,yAxis:m}=s,{defaultOptions:w}=l,{registerEventOptions:k}=c,{deg2rad:b}=d,{arrayMax:x,arrayMin:v,clamp:E,correctFloat:N,defined:S,destroyObjectProperties:_,erase:$,error:V,extend:I,fireEvent:A,getClosestDistance:L,insertItem:T,isArray:g,isNumber:f,isString:j,merge:P,normalizeTickInterval:C,objectEach:D,pick:M,relativeLength:z,removeEvent:J,splat:F,syncTimeout:q}=h,U=(ce,H)=>C(H,void 0,void 0,M(ce.options.allowDecimals,H<.5||ce.tickAmount!==void 0),!!ce.tickAmount);I(w,{xAxis:y,yAxis:P(y,m)});class Q{constructor(H,B,K){this.init(H,B,K)}init(H,B,K=this.coll){let ie=K==="xAxis",R=this.isZAxis||(H.inverted?!ie:ie);this.chart=H,this.horiz=R,this.isXAxis=ie,this.coll=K,A(this,"init",{userOptions:B}),this.opposite=M(B.opposite,this.opposite),this.side=M(B.side,this.side,R?this.opposite?0:2:this.opposite?1:3),this.setOptions(B);let G=this.options,W=G.labels;this.type??(this.type=G.type||"linear"),this.uniqueNames??(this.uniqueNames=G.uniqueNames??!0),A(this,"afterSetType"),this.userOptions=B,this.minPixelPadding=0,this.reversed=M(G.reversed,this.reversed),this.visible=G.visible,this.zoomEnabled=G.zoomEnabled,this.hasNames=this.type==="category"||G.categories===!0,this.categories=g(G.categories)&&G.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=S(G.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len??(this.len=0),this.minRange=this.userMinRange=G.minRange||G.maxZoom,this.range=G.range,this.offset=G.offset||0,this.max=void 0,this.min=void 0;let Y=M(G.crosshair,F(H.options.tooltip.crosshairs)[ie?0:1]);this.crosshair=Y===!0?{}:Y,H.axes.indexOf(this)===-1&&(ie?H.axes.splice(H.xAxis.length,0,this):H.axes.push(this),T(this,H[this.coll])),H.orderItems(this.coll),this.series=this.series||[],H.inverted&&!this.isZAxis&&ie&&!S(this.reversed)&&(this.reversed=!0),this.labelRotation=f(W.rotation)?W.rotation:void 0,k(this,G),A(this,"afterInit")}setOptions(H){let B=this.horiz?{labels:{autoRotation:[-45],padding:4},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=P(B,w[this.coll],H),A(this,"afterSetOptions",{userOptions:H})}defaultLabelFormatter(){let H=this.axis,{numberFormatter:B}=this.chart,K=f(this.value)?this.value:NaN,ie=H.chart.time,R=H.categories,G=this.dateTimeLabelFormat,W=w.lang,Y=W.numericSymbols,X=W.numericSymbolMagnitude||1e3,re=H.logarithmic?Math.abs(K):H.tickInterval,ee=Y&&Y.length,se,oe;if(R)oe=`${this.value}`;else if(G)oe=ie.dateFormat(G,K);else if(ee&&Y&&re>=1e3)for(;ee--&&oe===void 0;)re>=(se=Math.pow(X,ee+1))&&10*K%se==0&&Y[ee]!==null&&K!==0&&(oe=B(K/se,-1)+Y[ee]);return oe===void 0&&(oe=Math.abs(K)>=1e4?B(K,-1):B(K,-1,void 0,"")),oe}getSeriesExtremes(){let H,B=this;A(this,"getSeriesExtremes",null,function(){B.hasVisibleSeries=!1,B.dataMin=B.dataMax=B.threshold=void 0,B.softThreshold=!B.isXAxis,B.series.forEach(K=>{if(K.reserveSpace()){let ie=K.options,R,G=ie.threshold,W,Y;if(B.hasVisibleSeries=!0,B.positiveValuesOnly&&0>=(G||0)&&(G=void 0),B.isXAxis)(R=K.xData)&&R.length&&(R=B.logarithmic?R.filter(X=>X>0):R,W=(H=K.getXExtremes(R)).min,Y=H.max,f(W)||W instanceof Date||(R=R.filter(f),W=(H=K.getXExtremes(R)).min,Y=H.max),R.length&&(B.dataMin=Math.min(M(B.dataMin,W),W),B.dataMax=Math.max(M(B.dataMax,Y),Y)));else{let X=K.applyExtremes();f(X.dataMin)&&(W=X.dataMin,B.dataMin=Math.min(M(B.dataMin,W),W)),f(X.dataMax)&&(Y=X.dataMax,B.dataMax=Math.max(M(B.dataMax,Y),Y)),S(G)&&(B.threshold=G),(!ie.softThreshold||B.positiveValuesOnly)&&(B.softThreshold=!1)}}})}),A(this,"afterGetSeriesExtremes")}translate(H,B,K,ie,R,G){var pe;let W=this.linkedParent||this,Y=ie&&W.old?W.old.min:W.min;if(!f(Y))return NaN;let X=W.minPixelPadding,re=(W.isOrdinal||((pe=W.brokenAxis)==null?void 0:pe.hasBreaks)||W.logarithmic&&R)&&W.lin2val,ee=1,se=0,oe=ie&&W.old?W.old.transA:W.transA,he=0;return oe||(oe=W.transA),K&&(ee*=-1,se=W.len),W.reversed&&(ee*=-1,se-=ee*(W.sector||W.len)),B?(he=(H=H*ee+se-X)/oe+Y,re&&(he=W.lin2val(he))):(re&&(H=W.val2lin(H)),he=ee*(H-Y)*oe+se+ee*X+(f(G)?oe*G:0),W.isRadial||(he=N(he))),he}toPixels(H,B){return this.translate(H,!1,!this.horiz,void 0,!0)+(B?0:this.pos)}toValue(H,B){return this.translate(H-(B?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(H){let B=this,K=B.chart,ie=B.left,R=B.top,G=H.old,W=H.value,Y=H.lineWidth,X=G&&K.oldChartHeight||K.chartHeight,re=G&&K.oldChartWidth||K.chartWidth,ee=B.transB,se=H.translatedValue,oe=H.force,he,pe,ne,te,ae;function le(ue,me,ge){return oe!=="pass"&&(ue<me||ue>ge)&&(oe?ue=E(ue,me,ge):ae=!0),ue}let de={value:W,lineWidth:Y,old:G,force:oe,acrossPanes:H.acrossPanes,translatedValue:se};return A(this,"getPlotLinePath",de,function(ue){he=ne=(se=E(se=M(se,B.translate(W,void 0,void 0,G)),-1e9,1e9))+ee,pe=te=X-se-ee,f(se)?B.horiz?(pe=R,te=X-B.bottom+(B.options.isInternal?0:K.scrollablePixelsY||0),he=ne=le(he,ie,ie+B.width)):(he=ie,ne=re-B.right+(K.scrollablePixelsX||0),pe=te=le(pe,R,R+B.height)):(ae=!0,oe=!1),ue.path=ae&&!oe?void 0:K.renderer.crispLine([["M",he,pe],["L",ne,te]],Y||1)}),de.path}getLinearTickPositions(H,B,K){let ie,R,G,W=N(Math.floor(B/H)*H),Y=N(Math.ceil(K/H)*H),X=[];if(N(W+H)===W&&(G=20),this.single)return[B];for(ie=W;ie<=Y&&(X.push(ie),(ie=N(ie+H,G))!==R);)R=ie;return X}getMinorTickInterval(){let{minorTicks:H,minorTickInterval:B}=this.options;return H===!0?M(B,"auto"):H!==!1?B:void 0}getMinorTickPositions(){let H=this.options,B=this.tickPositions,K=this.minorTickInterval,ie=this.pointRangePadding||0,R=(this.min||0)-ie,G=(this.max||0)+ie,W=G-R,Y=[],X;if(W&&W/K<this.len/3){let re=this.logarithmic;if(re)this.paddedTicks.forEach(function(ee,se,oe){se&&Y.push.apply(Y,re.getLogTickPositions(K,oe[se-1],oe[se],!0))});else if(this.dateTime&&this.getMinorTickInterval()==="auto")Y=Y.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(K),R,G,H.startOfWeek));else for(X=R+(B[0]-R)%K;X<=G&&X!==Y[0];X+=K)Y.push(X)}return Y.length!==0&&this.trimTicks(Y),Y}adjustForMinRange(){let H=this.options,B=this.logarithmic,{max:K,min:ie,minRange:R}=this,G,W,Y,X;this.isXAxis&&R===void 0&&!B&&(R=S(H.min)||S(H.max)||S(H.floor)||S(H.ceiling)?null:Math.min(5*(L(this.series.map(re=>{var ee;return(re.xIncrement?(ee=re.xData)==null?void 0:ee.slice(0,2):re.xData)||[]}))||0),this.dataMax-this.dataMin)),f(K)&&f(ie)&&f(R)&&K-ie<R&&(W=this.dataMax-this.dataMin>=R,G=(R-K+ie)/2,Y=[ie-G,M(H.min,ie-G)],W&&(Y[2]=B?B.log2lin(this.dataMin):this.dataMin),X=[(ie=x(Y))+R,M(H.max,ie+R)],W&&(X[2]=B?B.log2lin(this.dataMax):this.dataMax),(K=v(X))-ie<R&&(Y[0]=K-R,Y[1]=M(H.min,K-R),ie=x(Y))),this.minRange=R,this.min=ie,this.max=K}getClosest(){let H,B;if(this.categories)B=1;else{let K=[];this.series.forEach(function(ie){var G;let R=ie.closestPointRange;((G=ie.xData)==null?void 0:G.length)===1?K.push(ie.xData[0]):!ie.noSharedTooltip&&S(R)&&ie.reserveSpace()&&(B=S(B)?Math.min(B,R):R)}),K.length&&(K.sort((ie,R)=>ie-R),H=L([K]))}return H&&B?Math.min(H,B):H||B}nameToX(H){let B=g(this.options.categories),K=B?this.categories:this.names,ie=H.options.x,R;return H.series.requireSorting=!1,S(ie)||(ie=this.uniqueNames&&K?B?K.indexOf(H.name):M(K.keys[H.name],-1):H.series.autoIncrement()),ie===-1?!B&&K&&(R=K.length):R=ie,R!==void 0?(this.names[R]=H.name,this.names.keys[H.name]=R):H.x&&(R=H.x),R}updateNames(){let H=this,B=this.names;B.length>0&&(Object.keys(B.keys).forEach(function(K){delete B.keys[K]}),B.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(K=>{K.xIncrement=null,(!K.points||K.isDirtyData)&&(H.max=Math.max(H.max,K.xData.length-1),K.processData(),K.generatePoints()),K.data.forEach(function(ie,R){let G;ie!=null&&ie.options&&ie.name!==void 0&&(G=H.nameToX(ie))!==void 0&&G!==ie.x&&(ie.x=G,K.xData[R]=G)})}))}setAxisTranslation(){let H=this,B=H.max-H.min,K=H.linkedParent,ie=!!H.categories,R=H.isXAxis,G=H.axisPointRange||0,W,Y=0,X=0,re,ee=H.transA;(R||ie||G)&&(W=H.getClosest(),K?(Y=K.minPointOffset,X=K.pointRangePadding):H.series.forEach(function(se){let oe=ie?1:R?M(se.options.pointRange,W,0):H.axisPointRange||0,he=se.options.pointPlacement;if(G=Math.max(G,oe),!H.single||ie){let pe=se.is("xrange")?!R:R;Y=Math.max(Y,pe&&j(he)?0:oe/2),X=Math.max(X,pe&&he==="on"?0:oe)}}),re=H.ordinal&&H.ordinal.slope&&W?H.ordinal.slope/W:1,H.minPointOffset=Y*=re,H.pointRangePadding=X*=re,H.pointRange=Math.min(G,H.single&&ie?1:B),R&&W&&(H.closestPointRange=W)),H.translationSlope=H.transA=ee=H.staticScale||H.len/(B+X||1),H.transB=H.horiz?H.left:H.bottom,H.minPixelPadding=ee*Y,A(this,"afterSetAxisTranslation")}minFromRange(){let{max:H,min:B}=this;return f(H)&&f(B)&&H-B||void 0}setTickInterval(H){var Ee,Te,Fe,Le;let{categories:B,chart:K,dataMax:ie,dataMin:R,dateTime:G,isXAxis:W,logarithmic:Y,options:X,softThreshold:re}=this,ee=f(this.threshold)?this.threshold:void 0,se=this.minRange||0,{ceiling:oe,floor:he,linkedTo:pe,softMax:ne,softMin:te}=X,ae=f(pe)&&((Ee=K[this.coll])==null?void 0:Ee[pe]),le=X.tickPixelInterval,de=X.maxPadding,ue=X.minPadding,me=0,ge,be=f(X.tickInterval)&&X.tickInterval>=0?X.tickInterval:void 0,ve,we,Ce,Pe;if(G||B||ae||this.getTickAmount(),Ce=M(this.userMin,X.min),Pe=M(this.userMax,X.max),ae?(this.linkedParent=ae,ge=ae.getExtremes(),this.min=M(ge.min,ge.dataMin),this.max=M(ge.max,ge.dataMax),this.type!==ae.type&&V(11,!0,K)):(re&&S(ee)&&f(ie)&&f(R)&&(R>=ee?(ve=ee,ue=0):ie<=ee&&(we=ee,de=0)),this.min=M(Ce,ve,R),this.max=M(Pe,we,ie)),f(this.max)&&f(this.min)&&(Y&&(this.positiveValuesOnly&&!H&&0>=Math.min(this.min,M(R,this.min))&&V(10,!0,K),this.min=N(Y.log2lin(this.min),16),this.max=N(Y.log2lin(this.max),16)),this.range&&f(R)&&(this.userMin=this.min=Ce=Math.max(R,this.minFromRange()||0),this.userMax=Pe=this.max,this.range=void 0)),A(this,"foundExtremes"),this.adjustForMinRange(),f(this.min)&&f(this.max)){if(!f(this.userMin)&&f(te)&&te<this.min&&(this.min=Ce=te),!f(this.userMax)&&f(ne)&&ne>this.max&&(this.max=Pe=ne),B||this.axisPointRange||(Te=this.stacking)!=null&&Te.usePercentage||ae||!(me=this.max-this.min)||(!S(Ce)&&ue&&(this.min-=me*ue),S(Pe)||!de||(this.max+=me*de)),!f(this.userMin)&&f(he)&&(this.min=Math.max(this.min,he)),!f(this.userMax)&&f(oe)&&(this.max=Math.min(this.max,oe)),re&&f(R)&&f(ie)){let Ue=ee||0;!S(Ce)&&this.min<Ue&&R>=Ue?this.min=X.minRange?Math.min(Ue,this.max-se):Ue:!S(Pe)&&this.max>Ue&&ie<=Ue&&(this.max=X.minRange?Math.max(Ue,this.min+se):Ue)}!K.polar&&this.min>this.max&&(S(X.min)?this.max=this.min:S(X.max)&&(this.min=this.max)),me=this.max-this.min}if(this.min!==this.max&&f(this.min)&&f(this.max)?ae&&!be&&le===ae.options.tickPixelInterval?this.tickInterval=be=ae.tickInterval:this.tickInterval=M(be,this.tickAmount?me/Math.max(this.tickAmount-1,1):void 0,B?1:me*le/Math.max(this.len,le)):this.tickInterval=1,W&&!H){let Ue=this.min!==((Fe=this.old)==null?void 0:Fe.min)||this.max!==((Le=this.old)==null?void 0:Le.max);this.series.forEach(function(rt){var tt;rt.forceCrop=(tt=rt.forceCropping)==null?void 0:tt.call(rt),rt.processData(Ue)}),A(this,"postProcessData",{hasExtremesChanged:Ue})}this.setAxisTranslation(),A(this,"initialAxisTranslation"),this.pointRange&&!be&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let Ne=M(X.minTickInterval,G&&!this.series.some(Ue=>Ue.noSharedTooltip)?this.closestPointRange:0);!be&&this.tickInterval<Ne&&(this.tickInterval=Ne),G||Y||be||(this.tickInterval=U(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()}setTickPositions(){var re,ee;let H=this.options,B=H.tickPositions,K=H.tickPositioner,ie=this.getMinorTickInterval(),R=!this.isPanning,G=R&&H.startOnTick,W=R&&H.endOnTick,Y=[],X;if(this.tickmarkOffset=this.categories&&H.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.single=this.min===this.max&&S(this.min)&&!this.tickAmount&&(this.min%1==0||H.allowDecimals!==!1),B)Y=B.slice();else if(f(this.min)&&f(this.max)){if(!((re=this.ordinal)!=null&&re.positions)&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))Y=[this.min,this.max],V(19,!1,this.chart);else if(this.dateTime)Y=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,H.units),this.min,this.max,H.startOfWeek,(ee=this.ordinal)==null?void 0:ee.positions,this.closestPointRange,!0);else if(this.logarithmic)Y=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{let se=this.tickInterval,oe=se;for(;oe<=2*se&&(Y=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&Y.length>this.tickAmount);)this.tickInterval=U(this,oe*=1.1)}Y.length>this.len&&(Y=[Y[0],Y[Y.length-1]])[0]===Y[1]&&(Y.length=1),K&&(this.tickPositions=Y,(X=K.apply(this,[this.min,this.max]))&&(Y=X))}this.tickPositions=Y,this.minorTickInterval=ie==="auto"&&this.tickInterval?this.tickInterval/H.minorTicksPerMajor:ie,this.paddedTicks=Y.slice(0),this.trimTicks(Y,G,W),!this.isLinked&&f(this.min)&&f(this.max)&&(this.single&&Y.length<2&&!this.categories&&!this.series.some(se=>se.is("heatmap")&&se.options.pointPlacement==="between")&&(this.min-=.5,this.max+=.5),B||X||this.adjustTickAmount()),A(this,"afterSetTickPositions")}trimTicks(H,B,K){let ie=H[0],R=H[H.length-1],G=!this.isOrdinal&&this.minPointOffset||0;if(A(this,"trimTicks"),!this.isLinked){if(B&&ie!==-1/0)this.min=ie;else for(;this.min-G>H[0];)H.shift();if(K)this.max=R;else for(;this.max+G<H[H.length-1];)H.pop();H.length===0&&S(ie)&&!this.options.tickPositions&&H.push((R+ie)/2)}}alignToOthers(){let H,B=this,K=B.chart,ie=[this],R=B.options,G=K.options.chart,W=this.coll==="yAxis"&&G.alignThresholds,Y=[];if(B.thresholdAlignment=void 0,(G.alignTicks!==!1&&R.alignTicks||W)&&R.startOnTick!==!1&&R.endOnTick!==!1&&!B.logarithmic){let X=ee=>{let{horiz:se,options:oe}=ee;return[se?oe.left:oe.top,oe.width,oe.height,oe.pane].join(",")},re=X(this);K[this.coll].forEach(function(ee){let{series:se}=ee;se.length&&se.some(oe=>oe.visible)&&ee!==B&&X(ee)===re&&(H=!0,ie.push(ee))})}if(H&&W){ie.forEach(re=>{let ee=re.getThresholdAlignment(B);f(ee)&&Y.push(ee)});let X=Y.length>1?Y.reduce((re,ee)=>re+=ee,0)/Y.length:void 0;ie.forEach(re=>{re.thresholdAlignment=X})}return H}getThresholdAlignment(H){if((!f(this.dataMin)||this!==H&&this.series.some(B=>B.isDirty||B.isDirtyData))&&this.getSeriesExtremes(),f(this.threshold)){let B=E((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(B=1-B),B}}getTickAmount(){let H=this.options,B=H.tickPixelInterval,K=H.tickAmount;S(H.tickInterval)||K||!(this.len<B)||this.isRadial||this.logarithmic||!H.startOnTick||!H.endOnTick||(K=2),!K&&this.alignToOthers()&&(K=Math.ceil(this.len/B)+1),K<4&&(this.finalTickAmt=K,K=5),this.tickAmount=K}adjustTickAmount(){let H=this,{finalTickAmt:B,max:K,min:ie,options:R,tickPositions:G,tickAmount:W,thresholdAlignment:Y}=H,X=G==null?void 0:G.length,re=M(H.threshold,H.softThreshold?0:null),ee,se,oe=H.tickInterval,he,pe=()=>G.push(N(G[G.length-1]+oe)),ne=()=>G.unshift(N(G[0]-oe));if(f(Y)&&(he=Y<.5?Math.ceil(Y*(W-1)):Math.floor(Y*(W-1)),R.reversed&&(he=W-1-he)),H.hasData()&&f(ie)&&f(K)){let te=()=>{H.transA*=(X-1)/(W-1),H.min=R.startOnTick?G[0]:Math.min(ie,G[0]),H.max=R.endOnTick?G[G.length-1]:Math.max(K,G[G.length-1])};if(f(he)&&f(H.threshold)){for(;G[he]!==re||G.length!==W||G[0]>ie||G[G.length-1]<K;){for(G.length=0,G.push(H.threshold);G.length<W;)G[he]===void 0||G[he]>H.threshold?ne():pe();if(oe>8*H.tickInterval)break;oe*=2}te()}else if(X<W){for(;G.length<W;)G.length%2||ie===re?pe():ne();te()}if(S(B)){for(se=ee=G.length;se--;)(B===3&&se%2==1||B<=2&&se>0&&se<ee-1)&&G.splice(se,1);H.finalTickAmt=void 0}}}setScale(){var G,W;let{coll:H,stacking:B}=this,K=!1,ie=!1;this.series.forEach(Y=>{K=K||Y.isDirtyData||Y.isDirty,ie=ie||Y.xAxis&&Y.xAxis.isDirty||!1}),this.setAxisSize();let R=this.len!==(this.old&&this.old.len);R||K||ie||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(B&&H==="yAxis"&&B.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),B&&H==="xAxis"&&B.buildStacks(),this.isDirty||(this.isDirty=R||this.min!==((G=this.old)==null?void 0:G.min)||this.max!==((W=this.old)==null?void 0:W.max))):B&&B.cleanStacks(),K&&delete this.allExtremes,A(this,"afterSetScale")}setExtremes(H,B,K=!0,ie,R){this.series.forEach(G=>{delete G.kdTree}),A(this,"setExtremes",R=I(R,{min:H,max:B}),G=>{this.userMin=G.min,this.userMax=G.max,this.eventArgs=G,K&&this.chart.redraw(ie)})}setAxisSize(){let H=this.chart,B=this.options,K=B.offsets||[0,0,0,0],ie=this.horiz,R=this.width=Math.round(z(M(B.width,H.plotWidth-K[3]+K[1]),H.plotWidth)),G=this.height=Math.round(z(M(B.height,H.plotHeight-K[0]+K[2]),H.plotHeight)),W=this.top=Math.round(z(M(B.top,H.plotTop+K[0]),H.plotHeight,H.plotTop)),Y=this.left=Math.round(z(M(B.left,H.plotLeft+K[3]),H.plotWidth,H.plotLeft));this.bottom=H.chartHeight-G-W,this.right=H.chartWidth-R-Y,this.len=Math.max(ie?R:G,0),this.pos=ie?Y:W}getExtremes(){let H=this.logarithmic;return{min:H?N(H.lin2log(this.min)):this.min,max:H?N(H.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(H){let B=this.logarithmic,K=B?B.lin2log(this.min):this.min,ie=B?B.lin2log(this.max):this.max;return H===null||H===-1/0?H=K:H===1/0?H=ie:K>H?H=K:ie<H&&(H=ie),this.translate(H,0,1,0,1)}autoLabelAlign(H){let B=(M(H,0)-90*this.side+720)%360,K={align:"center"};return A(this,"autoLabelAlign",K,function(ie){B>15&&B<165?ie.align="right":B>195&&B<345&&(ie.align="left")}),K.align}tickSize(H){let B=this.options,K=M(B[H==="tick"?"tickWidth":"minorTickWidth"],H==="tick"&&this.isXAxis&&!this.categories?1:0),ie=B[H==="tick"?"tickLength":"minorTickLength"],R;K&&ie&&(B[H+"Position"]==="inside"&&(ie=-ie),R=[ie,K]);let G={tickSize:R};return A(this,"afterTickSize",G),G.tickSize}labelMetrics(){let H=this.chart.renderer,B=this.ticks,K=B[Object.keys(B)[0]]||{};return this.chart.renderer.fontMetrics(K.label||K.movedLabel||H.box)}unsquish(){let H=this.options.labels,B=H.padding||0,K=this.horiz,ie=this.tickInterval,R=this.len/(((this.categories?1:0)+this.max-this.min)/ie),G=H.rotation,W=N(.8*this.labelMetrics().h),Y=Math.max(this.max-this.min,0),X=function(he){let pe=(he+2*B)/(R||1);return(pe=pe>1?Math.ceil(pe):1)*ie>Y&&he!==1/0&&R!==1/0&&Y&&(pe=Math.ceil(Y/ie)),N(pe*ie)},re=ie,ee,se=Number.MAX_VALUE,oe;if(K){if(!H.staggerLines&&(f(G)?oe=[G]:R<H.autoRotationLimit&&(oe=H.autoRotation)),oe){let he,pe;for(let ne of oe)(ne===G||ne&&ne>=-90&&ne<=90)&&(pe=(he=X(Math.abs(W/Math.sin(b*ne))))+Math.abs(ne/360))<se&&(se=pe,ee=ne,re=he)}}else re=X(.75*W);return this.autoRotation=oe,this.labelRotation=M(ee,f(G)?G:0),H.step?ie:re}getSlotWidth(H){let B=this.chart,K=this.horiz,ie=this.options.labels,R=Math.max(this.tickPositions.length-(this.categories?0:1),1),G=B.margin[3];if(H&&f(H.slotWidth))return H.slotWidth;if(K&&ie.step<2)return ie.rotation?0:(this.staggerLines||1)*this.len/R;if(!K){let W=ie.style.width;if(W!==void 0)return parseInt(String(W),10);if(G)return G-B.spacing[3]}return .33*B.chartWidth}renderUnsquish(){let H=this.chart,B=H.renderer,K=this.tickPositions,ie=this.ticks,R=this.options.labels,G=R.style,W=this.horiz,Y=this.getSlotWidth(),X=Math.max(1,Math.round(Y-(W?2*(R.padding||0):R.distance||0))),re={},ee=this.labelMetrics(),se=G.textOverflow,oe,he,pe=0,ne,te;if(j(R.rotation)||(re.rotation=R.rotation||0),K.forEach(function(ae){let le=ie[ae];le.movedLabel&&le.replaceMovedLabel(),le&&le.label&&le.label.textPxLength>pe&&(pe=le.label.textPxLength)}),this.maxLabelLength=pe,this.autoRotation)pe>X&&pe>ee.h?re.rotation=this.labelRotation:this.labelRotation=0;else if(Y&&(oe=X,!se))for(he="clip",te=K.length;!W&&te--;)(ne=ie[K[te]].label)&&(ne.styles.textOverflow==="ellipsis"?ne.css({textOverflow:"clip"}):ne.textPxLength>Y&&ne.css({width:Y+"px"}),ne.getBBox().height>this.len/K.length-(ee.h-ee.f)&&(ne.specificTextOverflow="ellipsis"));re.rotation&&(oe=pe>.5*H.chartHeight?.33*H.chartHeight:pe,se||(he="ellipsis")),this.labelAlign=R.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(re.align=this.labelAlign),K.forEach(function(ae){let le=ie[ae],de=le&&le.label,ue=G.width,me={};de&&(de.attr(re),le.shortenLabel?le.shortenLabel():oe&&!ue&&G.whiteSpace!=="nowrap"&&(oe<de.textPxLength||de.element.tagName==="SPAN")?(me.width=oe+"px",se||(me.textOverflow=de.specificTextOverflow||he),de.css(me)):!de.styles.width||me.width||ue||de.css({width:null}),delete de.specificTextOverflow,le.rotation=re.rotation)},this),this.tickRotCorr=B.rotCorr(ee.b,this.labelRotation||0,this.side!==0)}hasData(){return this.series.some(function(H){return H.hasData()})||this.options.showEmpty&&S(this.min)&&S(this.max)}addTitle(H){let B,K=this.chart.renderer,ie=this.horiz,R=this.opposite,G=this.options.title,W=this.chart.styledMode;this.axisTitle||((B=G.textAlign)||(B=(ie?{low:"left",middle:"center",high:"right"}:{low:R?"right":"left",middle:"center",high:R?"left":"right"})[G.align]),this.axisTitle=K.text(G.text||"",0,0,G.useHTML).attr({zIndex:7,rotation:G.rotation||0,align:B}).addClass("highcharts-axis-title"),W||this.axisTitle.css(P(G.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),W||G.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[H?"show":"hide"](H)}generateTick(H){let B=this.ticks;B[H]?B[H].addLabel():B[H]=new u(this,H)}createGroups(){let{axisParent:H,chart:B,coll:K,options:ie}=this,R=B.renderer,G=(W,Y,X)=>R.g(W).attr({zIndex:X}).addClass(`highcharts-${K.toLowerCase()}${Y} `+(this.isRadial?`highcharts-radial-axis${Y} `:"")+(ie.className||"")).add(H);this.axisGroup||(this.gridGroup=G("grid","-grid",ie.gridZIndex),this.axisGroup=G("axis","",ie.zIndex),this.labelGroup=G("axis-labels","-labels",ie.labels.zIndex))}getOffset(){let H=this,{chart:B,horiz:K,options:ie,side:R,ticks:G,tickPositions:W,coll:Y}=H,X=B.inverted&&!H.isZAxis?[1,0,3,2][R]:R,re=H.hasData(),ee=ie.title,se=ie.labels,oe=f(ie.crossing),he=B.axisOffset,pe=B.clipOffset,ne=[-1,1,1,-1][R],te,ae=0,le,de=0,ue=0,me,ge;if(H.showAxis=te=re||ie.showEmpty,H.staggerLines=H.horiz&&se.staggerLines||void 0,H.createGroups(),re||H.isLinked?(W.forEach(function(be){H.generateTick(be)}),H.renderUnsquish(),H.reserveSpaceDefault=R===0||R===2||{1:"left",3:"right"}[R]===H.labelAlign,M(se.reserveSpace,!oe&&null,H.labelAlign==="center"||null,H.reserveSpaceDefault)&&W.forEach(function(be){ue=Math.max(G[be].getLabelSize(),ue)}),H.staggerLines&&(ue*=H.staggerLines),H.labelOffset=ue*(H.opposite?-1:1)):D(G,function(be,ve){be.destroy(),delete G[ve]}),ee!=null&&ee.text&&ee.enabled!==!1&&(H.addTitle(te),te&&!oe&&ee.reserveSpace!==!1&&(H.titleOffset=ae=H.axisTitle.getBBox()[K?"height":"width"],de=S(le=ee.offset)?0:M(ee.margin,K?5:10))),H.renderLine(),H.offset=ne*M(ie.offset,he[R]?he[R]+(ie.margin||0):0),H.tickRotCorr=H.tickRotCorr||{x:0,y:0},ge=R===0?-H.labelMetrics().h:R===2?H.tickRotCorr.y:0,me=Math.abs(ue)+de,ue&&(me-=ge,me+=ne*(K?M(se.y,H.tickRotCorr.y+ne*se.distance):M(se.x,ne*se.distance))),H.axisTitleMargin=M(le,me),H.getMaxLabelDimensions&&(H.maxLabelDimensions=H.getMaxLabelDimensions(G,W)),Y!=="colorAxis"&&pe){let be=this.tickSize("tick");he[R]=Math.max(he[R],(H.axisTitleMargin||0)+ae+ne*H.offset,me,W&&W.length&&be?be[0]+ne*H.offset:0);let ve=!H.axisLine||ie.offset?0:H.axisLine.strokeWidth()/2;pe[X]=Math.max(pe[X],ve)}A(this,"afterGetOffset")}getLinePath(H){let B=this.chart,K=this.opposite,ie=this.offset,R=this.horiz,G=this.left+(K?this.width:0)+ie,W=B.chartHeight-this.bottom-(K?this.height:0)+ie;return K&&(H*=-1),B.renderer.crispLine([["M",R?this.left:G,R?W:this.top],["L",R?B.chartWidth-this.right:G,R?W:B.chartHeight-this.bottom]],H)}renderLine(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))}getTitlePosition(H){let B=this.horiz,K=this.left,ie=this.top,R=this.len,G=this.options.title,W=B?K:ie,Y=this.opposite,X=this.offset,re=G.x,ee=G.y,se=this.chart.renderer.fontMetrics(H),oe=H?Math.max(H.getBBox(!1,0).height-se.h-1,0):0,he={low:W+(B?0:R),middle:W+R/2,high:W+(B?R:0)}[G.align],pe=(B?ie+this.height:K)+(B?1:-1)*(Y?-1:1)*(this.axisTitleMargin||0)+[-oe,oe,se.f,-oe][this.side],ne={x:B?he+re:pe+(Y?this.width:0)+X+re,y:B?pe+ee-(Y?this.height:0)+X:he+ee};return A(this,"afterGetTitlePosition",{titlePosition:ne}),ne}renderMinorTick(H,B){let K=this.minorTicks;K[H]||(K[H]=new u(this,H,"minor")),B&&K[H].isNew&&K[H].render(null,!0),K[H].render(null,!1,1)}renderTick(H,B,K){let ie=this.isLinked,R=this.ticks;(!ie||H>=this.min&&H<=this.max||this.grid&&this.grid.isColumn)&&(R[H]||(R[H]=new u(this,H)),K&&R[H].isNew&&R[H].render(B,!0,-1),R[H].render(B))}render(){let H,B,K=this,ie=K.chart,R=K.logarithmic,G=ie.renderer,W=K.options,Y=K.isLinked,X=K.tickPositions,re=K.axisTitle,ee=K.ticks,se=K.minorTicks,oe=K.alternateBands,he=W.stackLabels,pe=W.alternateGridColor,ne=W.crossing,te=K.tickmarkOffset,ae=K.axisLine,le=K.showAxis,de=p(G.globalAnimation);if(K.labelEdge.length=0,K.overlap=!1,[ee,se,oe].forEach(function(ue){D(ue,function(me){me.isActive=!1})}),f(ne)){let ue=this.isXAxis?ie.yAxis[0]:ie.xAxis[0],me=[1,-1,-1,1][this.side];if(ue){let ge=ue.toPixels(ne,!0);K.horiz&&(ge=ue.len-ge),K.offset=me*ge}}if(K.hasData()||Y){let ue=K.chart.hasRendered&&K.old&&f(K.old.min);K.minorTickInterval&&!K.categories&&K.getMinorTickPositions().forEach(function(me){K.renderMinorTick(me,ue)}),X.length&&(X.forEach(function(me,ge){K.renderTick(me,ge,ue)}),te&&(K.min===0||K.single)&&(ee[-1]||(ee[-1]=new u(K,-1,null,!0)),ee[-1].render(-1))),pe&&X.forEach(function(me,ge){B=X[ge+1]!==void 0?X[ge+1]+te:K.max-te,ge%2==0&&me<K.max&&B<=K.max+(ie.polar?-te:te)&&(oe[me]||(oe[me]=new d.PlotLineOrBand(K,{})),H=me+te,oe[me].options={from:R?R.lin2log(H):H,to:R?R.lin2log(B):B,color:pe,className:"highcharts-alternate-grid"},oe[me].render(),oe[me].isActive=!0)}),K._addedPlotLB||(K._addedPlotLB=!0,(W.plotLines||[]).concat(W.plotBands||[]).forEach(function(me){K.addPlotBandOrLine(me)}))}[ee,se,oe].forEach(function(ue){let me=[],ge=de.duration;D(ue,function(be,ve){be.isActive||(be.render(ve,!1,0),be.isActive=!1,me.push(ve))}),q(function(){let be=me.length;for(;be--;)ue[me[be]]&&!ue[me[be]].isActive&&(ue[me[be]].destroy(),delete ue[me[be]])},ue!==oe&&ie.hasRendered&&ge?ge:0)}),ae&&(ae[ae.isPlaced?"animate":"attr"]({d:this.getLinePath(ae.strokeWidth())}),ae.isPlaced=!0,ae[le?"show":"hide"](le)),re&&le&&(re[re.isNew?"attr":"animate"](K.getTitlePosition(re)),re.isNew=!1),he&&he.enabled&&K.stacking&&K.stacking.renderStackTotals(),K.old={len:K.len,max:K.max,min:K.min,transA:K.transA,userMax:K.userMax,userMin:K.userMin},K.isDirty=!1,A(this,"afterRender")}redraw(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(H){H.render()})),this.series.forEach(function(H){H.isDirty=!0})}getKeepProps(){return this.keepProps||Q.keepProps}destroy(H){let B=this,K=B.plotLinesAndBands,ie=this.eventOptions;if(A(this,"destroy",{keepEvents:H}),H||J(B),[B.ticks,B.minorTicks,B.alternateBands].forEach(function(R){_(R)}),K){let R=K.length;for(;R--;)K[R].destroy()}for(let R in["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(G){B[G]&&(B[G]=B[G].destroy())}),B.plotLinesAndBandsGroups)B.plotLinesAndBandsGroups[R]=B.plotLinesAndBandsGroups[R].destroy();D(B,function(R,G){B.getKeepProps().indexOf(G)===-1&&delete B[G]}),this.eventOptions=ie}drawCrosshair(H,B){let K=this.crosshair,ie=M(K&&K.snap,!0),R=this.chart,G,W,Y,X=this.cross,re;if(A(this,"drawCrosshair",{e:H,point:B}),H||(H=this.cross&&this.cross.e),K&&(S(B)||!ie)!==!1){if(ie?S(B)&&(W=M(this.coll!=="colorAxis"?B.crosshairPos:null,this.isXAxis?B.plotX:this.len-B.plotY)):W=H&&(this.horiz?H.chartX-this.pos:this.len-H.chartY+this.pos),S(W)&&(re={value:B&&(this.isXAxis?B.x:M(B.stackY,B.y)),translatedValue:W},R.polar&&I(re,{isCrosshair:!0,chartX:H&&H.chartX,chartY:H&&H.chartY,point:B}),G=this.getPlotLinePath(re)||null),!S(G)){this.hideCrosshair();return}Y=this.categories&&!this.isRadial,X||(this.cross=X=R.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(Y?"category ":"thin ")+(K.className||"")).attr({zIndex:M(K.zIndex,2)}).add(),!R.styledMode&&(X.attr({stroke:K.color||(Y?a.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":M(K.width,1)}).css({"pointer-events":"none"}),K.dashStyle&&X.attr({dashstyle:K.dashStyle}))),X.show().attr({d:G}),Y&&!K.width&&X.attr({"stroke-width":this.transA}),this.cross.e=H}else this.hideCrosshair();A(this,"afterDrawCrosshair",{e:H,point:B})}hideCrosshair(){this.cross&&this.cross.hide(),A(this,"afterHideCrosshair")}update(H,B){let K=this.chart;H=P(this.userOptions,H),this.destroy(!0),this.init(K,H),K.isDirtyBox=!0,M(B,!0)&&K.redraw()}remove(H){let B=this.chart,K=this.coll,ie=this.series,R=ie.length;for(;R--;)ie[R]&&ie[R].remove(!1);$(B.axes,this),$(B[K]||[],this),B.orderItems(K),this.destroy(),B.isDirtyBox=!0,M(H,!0)&&B.redraw()}setTitle(H,B){this.update({title:H},B)}setCategories(H,B){this.update({categories:H},B)}}return Q.keepProps=["coll","extKey","hcEvents","len","names","series","userMax","userMin"],Q}),i(n,"Core/Axis/DateTimeAxis.js",[n["Core/Utilities.js"]],function(r){var s;let{addEvent:a,getMagnitude:l,normalizeTickInterval:c,timeUnits:d}=r;return function(u){function h(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function p(){if(this.type!=="datetime"){this.dateTime=void 0;return}this.dateTime||(this.dateTime=new y(this))}u.compose=function(m){return m.keepProps.includes("dateTime")||(m.keepProps.push("dateTime"),m.prototype.getTimeTicks=h,a(m,"afterSetType",p)),m};class y{constructor(w){this.axis=w}normalizeTimeTickInterval(w,k){let b=k||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],x=b[b.length-1],v=d[x[0]],E=x[1],N;for(N=0;N<b.length&&(v=d[(x=b[N])[0]],E=x[1],!b[N+1]||!(w<=(v*E[E.length-1]+d[b[N+1][0]])/2));N++);v===d.year&&w<5*v&&(E=[1,2,5]);let S=c(w/v,E,x[0]==="year"?Math.max(l(w/v),1):1);return{unitRange:v,count:S,unitName:x[0]}}getXDateFormat(w,k){let{axis:b}=this,x=b.chart.time;return b.closestPointRange?x.getDateFormat(b.closestPointRange,w,b.options.startOfWeek,k)||x.resolveDTLFormat(k.year).main:x.resolveDTLFormat(k.day).main}}u.Additions=y}(s||(s={})),s}),i(n,"Core/Axis/LogarithmicAxis.js",[n["Core/Utilities.js"]],function(r){var s;let{addEvent:a,normalizeTickInterval:l,pick:c}=r;return function(d){function u(){this.type!=="logarithmic"?this.logarithmic=void 0:this.logarithmic??(this.logarithmic=new p(this))}function h(){let y=this.logarithmic;y&&(this.lin2val=function(m){return y.lin2log(m)},this.val2lin=function(m){return y.log2lin(m)})}d.compose=function(y){return y.keepProps.includes("logarithmic")||(y.keepProps.push("logarithmic"),a(y,"afterSetType",u),a(y,"afterInit",h)),y};class p{constructor(m){this.axis=m}getLogTickPositions(m,w,k,b){let x=this.axis,v=x.len,E=x.options,N=[];if(b||(this.minorAutoInterval=void 0),m>=.5)m=Math.round(m),N=x.getLinearTickPositions(m,w,k);else if(m>=.08){let S,_,$,V,I,A,L,T=Math.floor(w);for(S=m>.3?[1,2,4]:m>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],_=T;_<k+1&&!L;_++)for($=0,V=S.length;$<V&&!L;$++)(I=this.log2lin(this.lin2log(_)*S[$]))>w&&(!b||A<=k)&&A!==void 0&&N.push(A),A>k&&(L=!0),A=I}else{let S=this.lin2log(w),_=this.lin2log(k),$=b?x.getMinorTickInterval():E.tickInterval,V=E.tickPixelInterval/(b?5:1),I=b?v/x.tickPositions.length:v;m=l(m=c($==="auto"?null:$,this.minorAutoInterval,(_-S)*V/(I||1))),N=x.getLinearTickPositions(m,S,_).map(this.log2lin),b||(this.minorAutoInterval=m/5)}return b||(x.tickInterval=m),N}lin2log(m){return Math.pow(10,m)}log2lin(m){return Math.log(m)/Math.LN10}}d.Additions=p}(s||(s={})),s}),i(n,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[n["Core/Utilities.js"]],function(r){var s;let{erase:a,extend:l,isNumber:c}=r;return function(d){let u;function h(x){return this.addPlotBandOrLine(x,"plotBands")}function p(x,v){let E=this.userOptions,N=new u(this,x);if(this.visible&&(N=N.render()),N){if(this._addedPlotLB||(this._addedPlotLB=!0,(E.plotLines||[]).concat(E.plotBands||[]).forEac
178h(S=>{this.addPlotBandOrLine(S)})),v){let S=E[v]||[];S.push(x),E[v]=S}this.plotLinesAndBands.push(N)}return N}function y(x){return this.addPlotBandOrLine(x,"plotLines")}function m(x,v,E){E=E||this.options;let N=this.getPlotLinePath({value:v,force:!0,acrossPanes:E.acrossPanes}),S=[],_=this.horiz,$=!c(this.min)||!c(this.max)||x<this.min&&v<this.min||x>this.max&&v>this.max,V=this.getPlotLinePath({value:x,force:!0,acrossPanes:E.acrossPanes}),I,A=1,L;if(V&&N)for($&&(L=V.toString()===N.toString(),A=0),I=0;I<V.length;I+=2){let T=V[I],g=V[I+1],f=N[I],j=N[I+1];(T[0]==="M"||T[0]==="L")&&(g[0]==="M"||g[0]==="L")&&(f[0]==="M"||f[0]==="L")&&(j[0]==="M"||j[0]==="L")&&(_&&f[1]===T[1]?(f[1]+=A,j[1]+=A):_||f[2]!==T[2]||(f[2]+=A,j[2]+=A),S.push(["M",T[1],T[2]],["L",g[1],g[2]],["L",j[1],j[2]],["L",f[1],f[2]],["Z"])),S.isFlat=L}return S}function w(x){this.removePlotBandOrLine(x)}function k(x){let v=this.plotLinesAndBands,E=this.options,N=this.userOptions;if(v){let S=v.length;for(;S--;)v[S].id===x&&v[S].destroy();[E.plotLines||[],N.plotLines||[],E.plotBands||[],N.plotBands||[]].forEach(function(_){for(S=_.length;S--;)(_[S]||{}).id===x&&a(_,_[S])})}}function b(x){this.removePlotBandOrLine(x)}d.compose=function(x,v){let E=v.prototype;return E.addPlotBand||(u=x,l(E,{addPlotBand:h,addPlotLine:y,addPlotBandOrLine:p,getPlotBandPath:m,removePlotBand:w,removePlotLine:b,removePlotBandOrLine:k})),v}}(s||(s={})),s}),i(n,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[n["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],n["Core/Utilities.js"]],function(r,s){let{addEvent:a,arrayMax:l,arrayMin:c,defined:d,destroyObjectProperties:u,erase:h,fireEvent:p,merge:y,objectEach:m,pick:w}=s;class k{static compose(x,v){return a(x,"afterInit",function(){this.labelCollectors.push(()=>{var N;let E=[];for(let S of this.axes)for(let{label:_,options:$}of S.plotLinesAndBands)_&&!((N=$==null?void 0:$.label)!=null&&N.allowOverlap)&&E.push(_);return E})}),r.compose(k,v)}constructor(x,v){this.axis=x,this.options=v,this.id=v.id}render(){p(this,"render");let{axis:x,options:v}=this,{horiz:E,logarithmic:N}=x,{color:S,events:_,zIndex:$=0}=v,V={},I=x.chart.renderer,A=v.to,L=v.from,T=v.value,g=v.borderWidth,f=v.label,{label:j,svgElem:P}=this,C=[],D,M=d(L)&&d(A),z=d(T),J=!P,F={class:"highcharts-plot-"+(M?"band ":"line ")+(v.className||"")},q=M?"bands":"lines";if(!x.chart.styledMode&&(z?(F.stroke=S||"#999999",F["stroke-width"]=w(v.width,1),v.dashStyle&&(F.dashstyle=v.dashStyle)):M&&(F.fill=S||"#e6e9ff",g&&(F.stroke=v.borderColor,F["stroke-width"]=g))),V.zIndex=$,q+="-"+$,(D=x.plotLinesAndBandsGroups[q])||(x.plotLinesAndBandsGroups[q]=D=I.g("plot-"+q).attr(V).add()),P||(this.svgElem=P=I.path().attr(F).add(D)),d(T))C=x.getPlotLinePath({value:(N==null?void 0:N.log2lin(T))??T,lineWidth:P.strokeWidth(),acrossPanes:v.acrossPanes});else{if(!(d(L)&&d(A)))return;C=x.getPlotBandPath((N==null?void 0:N.log2lin(L))??L,(N==null?void 0:N.log2lin(A))??A,v)}return!this.eventsAdded&&_&&(m(_,(U,Q)=>{P==null||P.on(Q,ce=>{_[Q].apply(this,[ce])})}),this.eventsAdded=!0),(J||!P.d)&&(C!=null&&C.length)?P.attr({d:C}):P&&(C?(P.show(),P.animate({d:C})):P.d&&(P.hide(),j&&(this.label=j=j.destroy()))),f&&(d(f.text)||d(f.formatter))&&(C!=null&&C.length)&&x.width>0&&x.height>0&&!C.isFlat?(f=y({align:E&&M?"center":void 0,x:E?!M&&4:10,verticalAlign:!E&&M?"middle":void 0,y:E?M?16:10:M?6:-4,rotation:E&&!M?90:0,...M?{inside:!0}:{}},f),this.renderLabel(f,C,M,$)):j&&j.hide(),this}renderLabel(x,v,E,N){var f;let S=this.axis,_=S.chart.renderer,$=x.inside,V=this.label;V||(this.label=V=_.text(this.getLabelText(x),0,0,x.useHTML).attr({align:x.textAlign||x.align,rotation:x.rotation,class:"highcharts-plot-"+(E?"band":"line")+"-label "+(x.className||""),zIndex:N}),S.chart.styledMode||V.css(y({fontSize:"0.8em",textOverflow:E&&!$?"":"ellipsis"},x.style)),V.add());let I=v.xBounds||[v[0][1],v[1][1],E?v[2][1]:v[0][1]],A=v.yBounds||[v[0][2],v[1][2],E?v[2][2]:v[0][2]],L=c(I),T=c(A),g=l(I)-L;V.align(x,!1,{x:L,y:T,width:g,height:l(A)-T}),(!V.alignValue||V.alignValue==="left"||d($))&&V.css({width:(((f=x.style)==null?void 0:f.width)||(E&&$?g:V.rotation===90?S.height-(V.alignAttr.y-S.top):(x.clip?S.width:S.chart.chartWidth)-(V.alignAttr.x-S.left)))+"px"}),V.show(!0)}getLabelText(x){return d(x.formatter)?x.formatter.call(this):x.text}destroy(){h(this.axis.plotLinesAndBands,this),delete this.axis,u(this)}}return k}),i(n,"Core/Tooltip.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Templating.js"],n["Core/Globals.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Utilities.js"]],function(r,s,a,l,c,d){var u;let{animObject:h}=r,{format:p}=s,{composed:y,doc:m,isSafari:w}=a,{distribute:k}=l,{addEvent:b,clamp:x,css:v,discardElement:E,extend:N,fireEvent:S,isArray:_,isNumber:$,isString:V,merge:I,pick:A,pushUnique:L,splat:T,syncTimeout:g}=d;class f{constructor(P,C,D){this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.options={},this.outside=!1,this.chart=P,this.init(P,C),this.pointer=D}bodyFormatter(P){return P.map(function(C){let D=C.series.tooltipOptions;return(D[(C.point.formatPrefix||"point")+"Formatter"]||C.point.tooltipFormatter).call(C.point,D[(C.point.formatPrefix||"point")+"Format"]||"")})}
vendor: 4,232 bytes, line 178
178cleanSplit(P){this.chart.series.forEach(function(C){let D=C&&C.tt;D&&(!D.isActive||P?C.tt=D.destroy():D.isActive=!1)})}defaultFormatter(P){let C,D=this.points||T(this);return(C=(C=[P.tooltipFooterHeaderFormatter(D[0])]).concat(P.bodyFormatter(D))).push(P.tooltipFooterHeaderFormatter(D[0],!0)),C}destroy(){this.label&&(this.label=this.label.destroy()),this.split&&(this.cleanSplit(!0),this.tt&&(this.tt=this.tt.destroy())),this.renderer&&(this.renderer=this.renderer.destroy(),E(this.container)),d.clearTimeout(this.hideTimer)}getAnchor(P,C){let D,{chart:M,pointer:z}=this,J=M.inverted,F=M.plotTop,q=M.plotLeft;if((P=T(P))[0].series&&P[0].series.yAxis&&!P[0].series.yAxis.options.reversedStacks&&(P=P.slice().reverse()),this.followPointer&&C)C.chartX===void 0&&(C=z.normalize(C)),D=[C.chartX-q,C.chartY-F];else if(P[0].tooltipPos)D=P[0].tooltipPos;else{let U=0,Q=0;P.forEach(function(ce){let H=ce.pos(!0);H&&(U+=H[0],Q+=H[1])}),U/=P.length,Q/=P.length,this.shared&&P.length>1&&C&&(J?U=C.chartX:Q=C.chartY),D=[U-q,Q-F]}return D.map(Math.round)}getClassName(P,C,D){let M=this.options,z=P.series,J=z.options;return[M.className,"highcharts-label",D&&"highcharts-tooltip-header",C?"highcharts-tooltip-box":"highcharts-tooltip",!D&&"highcharts-color-"+A(P.colorIndex,z.colorIndex),J&&J.className].filter(V).join(" ")}getLabel({anchorX:P,anchorY:C}={anchorX:0,anchorY:0}){let D=this,M=this.chart.styledMode,z=this.options,J=this.split&&this.allowShared,F=this.container,q=this.chart.renderer;if(this.label){let U=!this.label.hasClass("highcharts-label");(!J&&U||J&&!U)&&this.destroy()}if(!this.label){if(this.outside){let U=this.chart.options.chart.style,Q=c.getRendererType();this.container=F=a.doc.createElement("div"),F.className="highcharts-tooltip-container",v(F,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||0,(U&&U.zIndex||0)+3)}),this.renderer=q=new Q(F,0,0,U,void 0,void 0,q.styledMode)}if(J?this.label=q.g("tooltip"):(this.label=q.label("",P,C,z.shape,void 0,void 0,z.useHTML,void 0,"tooltip").attr({padding:z.padding,r:z.borderRadius}),M||this.label.attr({fill:z.backgroundColor,"stroke-width":z.borderWidth||0}).css(z.style).css({pointerEvents:z.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),D.outside){let U=this.label;[U.xSetter,U.ySetter].forEach((Q,ce)=>{U[ce?"ySetter":"xSetter"]=H=>{Q.call(U,D.distance),U[ce?"y":"x"]=H,F&&(F.style[ce?"top":"left"]=`${H}px`)}})}this.label.attr({zIndex:8}).shadow(z.shadow).add()}return F&&!F.parentElement&&a.doc.body.appendChild(F),this.label}getPlayingField(){let{body:P,documentElement:C}=m,{chart:D,distance:M,outside:z}=this;return{width:z?Math.max(P.scrollWidth,C.scrollWidth,P.offsetWidth,C.offsetWidth,C.clientWidth)-2*M:D.chartWidth,height:z?Math.max(P.scrollHeight,C.scrollHeight,P.offsetHeight,C.offsetHeight,C.clientHeight):D.chartHeight}}getPosition(P,C,D){var de,ue;let{distance:M,chart:z,outside:J,pointer:F}=this,{inverted:q,plotLeft:U,plotTop:Q,polar:ce}=z,{plotX:H=0,plotY:B=0}=D,K={},ie=q&&D.h||0,{height:R,width:G}=this.getPlayingField(),W=F.getChartPosition(),Y=me=>me*W.scaleX,X=me=>me*W.scaleY,re=me=>{let ge=me==="x";return[me,ge?G:R,ge?P:C].concat(J?[ge?Y(P):X(C),ge?W.left-M+Y(H+U):W.top-M+X(B+Q),0,ge?G:R]:[ge?P:C,ge?H+U:B+Q,ge?U:Q,ge?U+z.plotWidth:Q+z.plotHeight])},ee=re("y"),se=re("x"),oe,he=!!D.negative;!ce&&((ue=(de=z.hoverSeries)==null?void 0:de.yAxis)!=null&&ue.reversed)&&(he=!he);let pe=!this.followPointer&&A(D.ttBelow,!ce&&!q===he),ne=function(me,ge,be,ve,we,Ce,Pe){let Ne=J?me==="y"?X(M):Y(M):M,Ee=(be-ve)/2,Te=ve<we-M,Fe=we+M+ve<ge,Le=we-Ne-be+Ee,Ue=we+Ne-Ee;if(pe&&Fe)K[me]=Ue;else if(!pe&&Te)K[me]=Le;else if(Te)K[me]=Math.min(Pe-ve,Le-ie<0?Le:Le-ie);else{if(!Fe)return!1;K[me]=Math.max(Ce,Ue+ie+be>ge?Ue:Ue+ie)}},te=function(me,ge,be,ve,we){if(we<M||we>ge-M)return!1;we<be/2?K[me]=1:we>ge-ve/2?K[me]=ge-ve-2:K[me]=we-be/2},ae=function(me){[ee,se]=[se,ee],oe=me},le=()=>{ne.apply(0,ee)!==!1?te.apply(0,se)!==!1||oe||(ae(!0),le()):oe?K.x=K.y=0:(ae(!0),le())};return(q&&!ce||this.len>1)&&ae(),le(),K}hide(P){let C=this;d.clearTimeout(this.hideTimer),P=A(P,this.options.hideDelay),this.isHidden||(this.hideTimer=g(function(){let D=C.getLabel();C.getLabel().animate({opacity:0}
178,{duration:P&&150,complete:()=>{D.hide(),C.container&&C.container.remove()}}),C.isHidden=!0},P))}init(P,C){this.chart=P,this.options=C,this.crosshairs=[],this.isHidden=!0,this.split=C.split&&!P.inverted&&!P.polar,this.shared=C.shared||this.split,this.outside=A(C.outside,!!(P.scrollablePixelsX||P.scrollablePixelsY))}shouldStickOnContact(P){return!!(!this.followPointer&&this.options.stickOnContact&&(!P||this.pointer.inClass(P.target,"highcharts-tooltip")))}move(P,C,D,M){let z=this,J=h(!z.isHidden&&z.options.animation),F=z.followPointer||(z.len||0)>1,q={x:P,y:C};F||(q.anchorX=D,q.anchorY=M),J.step=()=>z.drawTracker(),z.getLabel().animate(q,J)}refresh(P,C){let{chart:D,options:M,pointer:z,shared:J}=this,F=T(P),q=F[0],U=[],Q=M.format,ce=M.formatter||this.defaultFormatter,H=D.styledMode,B={},K=this.allowShared;if(!M.enabled||!q.series)return;d.clearTimeout(this.hideTimer),this.allowShared=!(!_(P)&&P.series&&P.series.noSharedTooltip),K=K&&!this.allowShared,this.followPointer=!this.split&&q.series.tooltipOptions.followPointer;let ie=this.getAnchor(P,C),R=ie[0],G=ie[1];J&&this.allowShared?(z.applyInactiveState(F),F.forEach(function(X){X.setState("hover"),U.push(X.getLabelConfig())}),(B=q.getLabelConfig()).points=U):B=q.getLabelConfig(),this.len=U.length;let W=V(Q)?p(Q,B,D):ce.call(B,this),Y=q.series;if(this.distance=A(Y.tooltipOptions.distance,16),W===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(W,F);else{let X=R,re=G;if(C&&z.isDirectTouch&&(X=C.chartX-D.plotLeft,re=C.chartY-D.plotTop),D.polar||Y.options.clip===!1||F.some(ee=>z.isDirectTouch||ee.series.shouldShowTooltip(X,re))){let ee=this.getLabel(K&&this.tt||{});(!M.style.width||H)&&ee.css({width:(this.outside?this.getPlayingField():D.spacingBox).width+"px"}),ee.attr({class:this.getClassName(q),text:W&&W.join?W.join(""):W}),this.outside&&ee.attr({x:x(ee.x||0,0,this.getPlayingField().width-(ee.width||0))}),H||ee.attr({stroke:M.borderColor||q.color||Y.color||"#666666"}),this.updatePosition({plotX:R,plotY:G,negative:q.negative,ttBelow:q.ttBelow,h:ie[2]||0})}else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}S(this,"refresh")}renderSplit(P,C){var ge;let D=this,{chart:M,chart:{chartWidth:z,chartHeight:J,plotHeight:F,plotLeft:q,plotTop:U,scrollablePixelsY:Q=0,scrollablePixelsX:ce,styledMode:H},distance:B,options:K,options:{positioner:ie},pointer:R}=D,{scrollLeft:G=0,scrollTop:W=0}=((ge=M.scrollablePlotArea)==null?void 0:ge.scrollingContainer)||{},Y=D.outside&&typeof ce!="number"?m.documentElement.getBoundingClientRect():{left:G,right:G+z,top:W,bottom:W+J},X=D.getLabel(),re=this.renderer||M.renderer,ee=!!(M.xAxis[0]&&M.xAxis[0].opposite),{left:se,top:oe}=R.getChartPosition(),he=U+W,pe=0,ne=F-Q;function te(be,ve,we,Ce,Pe=!0){let Ne,Ee;return we?(Ne=ee?0:ne,Ee=x(be-Ce/2,Y.left,Y.right-Ce-(D.outside?se:0))):(Ne=ve-he,Ee=x(Ee=Pe?be-Ce-B:be+B,Pe?Ee:Y.left,Y.right)),{x:Ee,y:Ne}}V(P)&&(P=[!1,P]);let ae=P.slice(0,C.length+1).reduce(function(be,ve,we){if(ve!==!1&&ve!==""){let Ce=C[we-1]||{isHeader:!0,plotX:C[0].plotX,plotY:F,series:{}},Pe=Ce.isHeader,Ne=Pe?D:Ce.series,Ee=Ne.tt=function(rt,tt,At){let xt=rt,{isHeader:Nt,series:zn}=tt;if(!xt){let pn={padding:K.padding,r:K.borderRadius};H||(pn.fill=K.backgroundColor,pn["stroke-width"]=K.borderWidth??1),xt=re.label("",0,0,K[Nt?"headerShape":"shape"],void 0,void 0,K.useHTML).addClass(D.getClassName(tt,!0,Nt)).attr(pn).add(X)}return xt.isActive=!0,xt.attr({text:At}),H||xt.css(K.style).attr({stroke:K.borderColor||tt.color||zn.color||"#333333"}),xt}(Ne.tt,Ce,ve.toString()),Te=Ee.getBBox(),Fe=Te.width+Ee.strokeWidth();Pe&&(pe=Te.height,ne+=pe,ee&&(he-=pe));let{anchorX:Le,anchorY:Ue}=function(rt){let tt,At,{isHeader:xt,plotX:Nt=0,plotY:zn=0,series:pn}=rt;if(xt)tt=Math.max(q+Nt,q),At=U+F/2;else{let{xAxis:yi,yAxis:Bt}=pn;tt=yi.pos+x(Nt,-B,yi.len+B),pn.shouldShowTooltip(0,Bt.pos-U+zn,{ignoreX:!0})&&(At=Bt.pos+zn)}return{anchorX:tt=x(tt,Y.left-B,Y.right+B),anchorY:At}}(Ce);if(typeof Ue=="number"){let rt=Te.height+1,tt=ie?ie.call(D,Fe,rt,Ce):te(Le,Ue,Pe,Fe);be.push({align:ie?0:void 0,anchorX:Le,anchorY:Ue,boxWidth:Fe,point:Ce,rank:A(tt.rank,Pe?1:0),size:rt,target:tt.y,tt:Ee,x:tt.x})}else Ee.isActive=!1}return be},[]);!ie&&ae.some(be=>{let{outside:ve}=D,we=(ve?se:0)+be.anchorX;return we<Y.left&&we+be.boxWidth<Y.right||we<se-Y.left+be.boxWidth&&Y.right-we>we})&&(ae=ae.map(be=>{let{x:ve,y:we}=te(be.anchorX,be.anchorY,be.point.isHeader,be.boxWidth,!1);return N(be,{target:we,x:ve})})),D.cleanSplit(),k(ae,ne);let le={left:se,right:se};ae.forEach(function(be){let{x:ve,boxWidth:we,isHeader:Ce}=be;!Ce&&(D.outside&&se+ve<le.left&&(le.left=se+ve),!Ce&&D.outside&&le.left+we>le.right&&(le.right=se+ve))}),ae.forEach(function(be){let{x:ve,anchorX:we,anchorY:Ce,pos:Pe,point:{isHeader:Ne}}=be,Ee={visibility:Pe===void 0?"hidden":"inherit",x:ve,y:(Pe||0)+he,anchorX:we,anchorY:Ce};if(D.outside&&ve<we){let Te=se-le.left;Te>0&&(Ne||(Ee.x=ve+Te,Ee.anchorX=we+Te),Ne&&(Ee.x=(le.right-le.left)/2,Ee.anchorX=we+Te))}be.tt.attr(Ee)});let{container:de,outside:ue,renderer:me}=D;if(ue&&de&&me){let{width:be,height:ve,x:we,y:Ce}=X.getBBox();me.setSize(be+we,ve+Ce,!1),de.style.left=le.left+"px",de.style.top=oe+"px"}w&&X.attr({opacity:X.opacity===1?.999:1})}drawTracker(){if(!this.shouldStickOnContact()){this.tracker&&(this.tracker=this.tracker.destroy());return}let P=this.chart,C=this.label,D=this.shared?P.hoverPoints:P.hoverPoint;if(!C||!D)return;let M={x:0,y:0,width:0,height:0},z=this.getAnchor(D),J=C.getBBox();z[0]+=P.plotLeft-(C.translateX||0),z[1]+=P.plotTop-(C.translateY||0),M.x=Math.min(0,z[0]),M.y=Math.min(0,z[1]),M.width=z[0]<0?Math.max(Math.abs(z[0]),J.width-z[0]):Math.max(Math.abs(z[0]),J.width),M.height=z[1]<0?Math.max(Math.abs(z[1]),J.height-Math.abs(z[1])):Math.max(Math.abs(z[1]),J.height),this.tracker?this.tracker.attr(M):(this.tracker=C.renderer.rect(M).addClass("highcharts-tracker").add(C),P.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}styledModeFormat(P){return P.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')}tooltipFooterHeaderFormatter(P,C){let D=P.series,M=D.tooltipOptions,z=D.xAxis,J=z&&z.dateTime,F={isFooter:C,labelConfig:P},q=M.xDateFormat,U=M[C?"footerFormat":"headerFormat"];return S(this,"headerFormatter",F,function(Q){J&&!q&&$(P.key)&&(q=J.getXDateFormat(P.key,M.dateTimeLabelFormats)),J&&q&&(P.point&&P.point.tooltipDateKeys||["key"]).forEac
178h(function(ce){U=U.replace("{point."+ce+"}","{point."+ce+":"+q+"}")}),D.chart.styledMode&&(U=this.styledModeFormat(U)),Q.text=p(U,{point:P,series:D},this.chart)}),F.text}update(P){this.destroy(),this.init(this.chart,I(!0,this.options,P))}updatePosition(P){let{chart:C,container:D,distance:M,options:z,pointer:J,renderer:F}=this,{height:q=0,width:U=0}=this.getLabel(),{left:Q,top:ce,scaleX:H,scaleY:B}=J.getChartPosition(),K=(z.positioner||this.getPosition).call(this,U,q,P),ie=(P.plotX||0)+C.plotLeft,R=(P.plotY||0)+C.plotTop,G;F&&D&&(z.positioner&&(K.x+=Q-M,K.y+=ce-M),G=(z.borderWidth||0)+2*M+2,F.setSize(U+G,q+G,!1),(H!==1||B!==1)&&(v(D,{transform:`scale(${H}, ${B})`}),ie*=H,R*=B),ie+=Q-K.x,R+=ce-K.y),this.move(Math.round(K.x),Math.round(K.y||0),ie,R)}}return(u=f||(f={})).compose=function(j){L(y,"Core.Tooltip")&&b(j,"afterInit",function(){let P=this.chart;P.options.tooltip&&(P.tooltip=new u(P,P.options.tooltip,this))})},f}),i(n,"Core/Series/Point.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Animation/AnimationUtilities.js"],n["Core/Defaults.js"],n["Core/Templating.js"],n["Core/Utilities.js"]],function(r,s,a,l,c){let{animObject:d}=s,{defaultOptions:u}=a,{format:h}=l,{addEvent:p,crisp:y,erase:m,extend:w,fireEvent:k,getNestedProperty:b,isArray:x,isFunction:v,isNumber:E,isObject:N,merge:S,pick:_,syncTimeout:$,removeEvent:V,uniqueKey:I}=c;class A{animateBeforeDestroy(){let T=this,g={x:T.startXPos,opacity:0},f=T.getGraphicalProps();f.singular.forEach(function(j){T[j]=T[j].animate(j==="dataLabel"?{x:T[j].startXPos,y:T[j].startYPos,opacity:0}:g)}),f.plural.forEach(function(j){T[j].forEach(function(P){P.element&&P.animate(w({x:T.startXPos},P.startYPos?{x:P.startXPos,y:P.startYPos}:{}))})})}applyOptions(T,g){let f=this.series,j=f.options.pointValKey||f.pointValKey;return w(this,T=A.prototype.optionsToObject.call(this,T)),this.options=this.options?w(this.options,T):T,T.group&&delete this.group,T.dataLabels&&delete this.dataLabels,j&&(this.y=A.prototype.getNestedProperty.call(this,j)),this.selected&&(this.state="select"),"name"in this&&g===void 0&&f.xAxis&&f.xAxis.hasNames&&(this.x=f.xAxis.nameToX(this)),this.x===void 0&&f?this.x=g??f.autoIncrement():E(T.x)&&f.options.relativeXValue&&(this.x=f.autoIncrement(T.x)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point",this}destroy(){if(!this.destroyed){let T=this,g=T.series,f=g.chart,j=g.options.dataSorting,P=f.hoverPoints,C=d(T.series.chart.renderer.globalAnimation),D=()=>{for(let M in(T.graphic||T.graphics||T.dataLabel||T.dataLabels)&&(V(T),T.destroyElements()),T)delete T[M]};T.legendItem&&f.legend.destroyItem(T),P&&(T.setState(),m(P,T),P.length||(f.hoverPoints=null)),T===f.hoverPoint&&T.onMouseOut(),j&&j.enabled?(this.animateBeforeDestroy(),$(D,C.duration)):D(),f.pointCount--}this.destroyed=!0}destroyElements(T){let g=this,f=g.getGraphicalProps(T);f.singular.forEach(function(j){g[j]=g[j].destroy()}),f.plural.forEach(function(j){g[j].forEach(function(P){P&&P.element&&P.destroy()}),delete g[j]})}firePointEvent(T,g,f){let j=this,P=this.series.options;j.manageEvent(T),T==="click"&&P.allowPointSelect&&(f=function(C){!j.destroyed&&j.select&&j.select(null,C.ctrlKey||C.metaKey||C.shiftKey)}),k(j,T,g,f)}getClassName(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(this.colorIndex!==void 0?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(T){let g,f,j=this,P=[],C={singular:[],plural:[]};for((T=T||{graphic:1,dataLabel:1}).graphic&&P.push("graphic","connector"),T.dataLabel&&P.push("dataLabel","dataLabelPath","dataLabelUpper"),f=P.length;f--;)j[g=P[f]]&&C.singular.push(g);return["graphic","dataLabel"].forEach(function(D){let M=D+"s";T[D]&&j[M]&&C.plural.push(M)}),C}getLabelConfig(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}}getNestedProperty(T){return T?T.indexOf("custom.")===0?b(T,this.options):this[T]:void 0}getZone(){let T=this.series,g=T.zones,f=T.zoneAxis||"y",j,P=0;for(j=g[0];this[f]>=j.value;)j=g[++P];return this.nonZonedColor||(this.nonZonedColor=this.color),j&&j.color&&!this.options.color?this.color=j.color:this.color=this.nonZonedColor,j}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}constructor(T,g,f){this.formatPrefix="point",this.visible=!0,this.series=T,this.applyOptions(g,f),this.id??(this.id=I()),this.resolveColor(),T.chart.pointCount++,k(this,"afterInit")}isValid(){return(E(this.x)||this.x instanceof Date)&&E(this.y)}optionsToObject(T){let g=this.series,f=g.options.keys,j=f||g.pointArrayMap||["y"],P=j.length,C={},D,M=0,z=0;if(E(T)||T===null)C[j[0]]=T;else if(x(T))for(!f&&T.length>P&&((D=typeof T[0])=="string"?C.name=T[0]:D==="number"&&(C.x=T[0]),M++);z<P;)f&&T[M]===void 0||(j[z].indexOf(".")>0?A.prototype.setNestedProperty(C,T[M],j[z]):C[j[z]]=T[M]),M++,z++;else typeof T=="object"&&(C=T,T.dataLabels&&(g.hasDataLabels=()=>!0),T.marker&&(g._hasPointMarkers=!0));return C}
vendor: 2,211 bytes, line 178
178pos(T,g=this.plotY){if(!this.destroyed){let{plotX:f,series:j}=this,{chart:P,xAxis:C,yAxis:D}=j,M=0,z=0;if(E(f)&&E(g))return T&&(M=C?C.pos:P.plotLeft,z=D?D.pos:P.plotTop),P.inverted&&C&&D?[D.len-g+z,C.len-f+M]:[f+M,g+z]}}resolveColor(){let T=this.series,g=T.chart.options.chart,f=T.chart.styledMode,j,P,C=g.colorCount,D;delete this.nonZonedColor,T.options.colorByPoint?(f||(j=(P=T.options.colors||T.chart.options.colors)[T.colorCounter],C=P.length),D=T.colorCounter,T.colorCounter++,T.colorCounter===C&&(T.colorCounter=0)):(f||(j=T.color),D=T.colorIndex),this.colorIndex=_(this.options.colorIndex,D),this.color=_(this.options.color,j)}setNestedProperty(T,g,f){return f.split(".").reduce(function(j,P,C,D){let M=D.length-1===C;return j[P]=M?g:N(j[P],!0)?j[P]:{},j[P]},T),T}shouldDraw(){return!this.isNull}tooltipFormatter(T){let g=this.series,f=g.tooltipOptions,j=_(f.valueDecimals,""),P=f.valuePrefix||"",C=f.valueSuffix||"";return g.chart.styledMode&&(T=g.chart.tooltip.styledModeFormat(T)),(g.pointArrayMap||["y"]).forEach(function(D){D="{point."+D,(P||C)&&(T=T.replace(RegExp(D+"}","g"),P+D+"}"+C)),T=T.replace(RegExp(D+"}","g"),D+":,."+j+"f}")}),h(T,{point:this,series:this.series},g.chart)}update(T,g,f,j){let P,C=this,D=C.series,M=C.graphic,z=D.chart,J=D.options;function F(){C.applyOptions(T);let q=M&&C.hasMockGraphic,U=C.y===null?!q:q;M&&U&&(C.graphic=M.destroy(),delete C.hasMockGraphic),N(T,!0)&&(M&&M.element&&T&&T.marker&&T.marker.symbol!==void 0&&(C.graphic=M.destroy()),T!=null&&T.dataLabels&&C.dataLabel&&(C.dataLabel=C.dataLabel.destroy())),P=C.index,D.updateParallelArrays(C,P),J.data[P]=N(J.data[P],!0)||N(T,!0)?C.options:_(T,J.data[P]),D.isDirty=D.isDirtyData=!0,!D.fixedBox&&D.hasCartesianSeries&&(z.isDirtyBox=!0),J.legendType==="point"&&(z.isDirtyLegend=!0),g&&z.redraw(f)}g=_(g,!0),j===!1?F():C.firePointEvent("update",{options:T},F)}remove(T,g){this.series.removePoint(this.series.data.indexOf(this),T,g)}select(T,g){let f=this,j=f.series,P=j.chart;T=_(T,!f.selected),this.selectedStaging=T,f.firePointEvent(T?"select":"unselect",{accumulate:g},function(){f.selected=f.options.selected=T,j.options.data[j.data.indexOf(f)]=f.options,f.setState(T&&"select"),g||P.getSelectedPoints().forEac
178h(function(C){let D=C.series;C.selected&&C!==f&&(C.selected=C.options.selected=!1,D.options.data[D.data.indexOf(C)]=C.options,C.setState(P.hoverPoints&&D.options.inactiveOtherPoints?"inactive":""),C.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(T){let{inverted:g,pointer:f}=this.series.chart;f&&(T=T?f.normalize(T):f.getChartCoordinatesFromPoint(this,g),f.runPointActions(T,this))}onMouseOut(){let T=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(T.hoverPoints||[]).forEach(function(g){g.setState()}),T.hoverPoints=T.hoverPoint=null}manageEvent(T){var j,P,C,D,M,z;let g=S(this.series.options.point,this.options),f=(j=g.events)==null?void 0:j[T];v(f)&&(!((P=this.hcEvents)!=null&&P[T])||((D=(C=this.hcEvents)==null?void 0:C[T])==null?void 0:D.map(J=>J.fn).indexOf(f))===-1)?((M=this.importedUserEvent)==null||M.call(this),this.importedUserEvent=p(this,T,f)):this.importedUserEvent&&!f&&((z=this.hcEvents)!=null&&z[T])&&(V(this,T),delete this.hcEvents[T],Object.keys(this.hcEvents)||delete this.importedUserEvent)}setState(T,g){var W;let f=this.series,j=this.state,P=f.options.states[T||"normal"]||{},C=u.plotOptions[f.type].marker&&f.options.marker,D=C&&C.enabled===!1,M=C&&C.states&&C.states[T||"normal"]||{},z=M.enabled===!1,J=this.marker||{},F=f.chart,q=C&&f.markerAttribs,U=f.halo,Q,ce,H,B=f.stateMarkerGraphic,K;if((T=T||"")===this.state&&!g||this.selected&&T!=="select"||P.enabled===!1||T&&(z||D&&M.enabled===!1)||T&&J.states&&J.states[T]&&J.states[T].enabled===!1)return;if(this.state=T,q&&(Q=f.markerAttribs(this,T)),this.graphic&&!this.hasMockGraphic){if(j&&this.graphic.removeClass("highcharts-point-"+j),T&&this.graphic.addClass("highcharts-point-"+T),!F.styledMode){ce=f.pointAttribs(this,T),H=_(F.options.chart.animation,P.animation);let Y=ce.opacity;f.options.inactiveOtherPoints&&E(Y)&&(this.dataLabels||[]).forEach(function(X){X&&!X.hasClass("highcharts-data-label-hidden")&&(X.animate({opacity:Y},H),X.connector&&X.connector.animate({opacity:Y},H))}),this.graphic.animate(ce,H)}Q&&this.graphic.animate(Q,_(F.options.chart.animation,M.animation,C.animation)),B&&B.hide()}else T&&M&&(K=J.symbol||f.symbol,B&&B.currentSymbol!==K&&(B=B.destroy()),Q&&(B?B[g?"animate":"attr"]({x:Q.x,y:Q.y}):K&&(f.stateMarkerGraphic=B=F.renderer.symbol(K,Q.x,Q.y,Q.width,Q.height).add(f.markerGroup),B.currentSymbol=K)),!F.styledMode&&B&&this.state!=="inactive"&&B.attr(f.pointAttribs(this,T))),B&&(B[T&&this.isInside?"show":"hide"](),B.element.point=this,B.addClass(this.getClassName(),!0));let ie=P.halo,R=this.graphic||B,G=R&&R.visibility||"inherit";ie&&ie.size&&R&&G!=="hidden"&&!this.isCluster?(U||(f.halo=U=F.renderer.path().add(R.parentGroup)),U.show()[g?"animate":"attr"]({d:this.haloPath(ie.size)}),U.attr({class:"highcharts-halo highcharts-color-"+_(this.colorIndex,f.colorIndex)+(this.className?" "+this.className:""),visibility:G,zIndex:-1}),U.point=this,F.styledMode||U.attr(w({fill:this.color||f.color,"fill-opacity":ie.opacity},r.filterUserAttributes(ie.attributes||{})))):(W=U==null?void 0:U.point)!=null&&W.haloPath&&!U.point.destroyed&&U.animate({d:U.point.haloPath(0)},null,U.hide),k(this,"afterSetState",{state:T})}haloPath(T){let g=this.pos();return g?this.series.chart.renderer.symbols.circle(y(g[0],1)-T,g[1]-T,2*T,2*T):[]}}return A}),i(n,"Core/Pointer.js",[n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],function(r,s,a){var l;let{parse:c}=r,{charts:d,composed:u,isTouchDevice:h}=s,{addEvent:p,attr:y,css:m,extend:w,find:k,fireEvent:b,isNumber:x,isObject:v,objectEach:E,offset:N,pick:S,pushUnique:_,splat:$}=a;class V{applyInactiveState(A){let L=[],T;(A||[]).forEach(function(g){T=g.series,L.push(T),T.linkedParent&&L.push(T.linkedParent),T.linkedSeries&&(L=L.concat(T.linkedSeries)),T.navigatorSeries&&L.push(T.navigatorSeries)}),this.chart.series.forEach(function(g){L.indexOf(g)===-1?g.setState("inactive",!0):g.options.inactiveOtherPoints&&g.setAllPointsToState("inactive")})}destroy(){let A=this;this.eventsToUnbind.forEach(L=>L()),this.eventsToUnbind=[],!s.chartCount&&(V.unbindDocumentMouseUp&&V.unbindDocumentMouseUp.forEac
vendor: 4,599 bytes, line 178
178h(L=>L()),V.unbindDocumentTouchEnd&&(V.unbindDocumentTouchEnd=V.unbindDocumentTouchEnd())),clearInterval(A.tooltipTimeout),E(A,function(L,T){A[T]=void 0})}getSelectionMarkerAttrs(A,L){let T={args:{chartX:A,chartY:L},attrs:{},shapeType:"rect"};return b(this,"getSelectionMarkerAttrs",T,g=>{let f,{chart:j,zoomHor:P,zoomVert:C}=this,{mouseDownX:D=0,mouseDownY:M=0}=j,z=g.attrs;z.x=j.plotLeft,z.y=j.plotTop,z.width=P?1:j.plotWidth,z.height=C?1:j.plotHeight,P&&(f=A-D,z.width=Math.max(1,Math.abs(f)),z.x=(f>0?0:f)+D),C&&(f=L-M,z.height=Math.max(1,Math.abs(f)),z.y=(f>0?0:f)+M)}),T}drag(A){let{chart:L}=this,{mouseDownX:T=0,mouseDownY:g=0}=L,{panning:f,panKey:j,selectionMarkerFill:P}=L.options.chart,C=L.plotLeft,D=L.plotTop,M=L.plotWidth,z=L.plotHeight,J=v(f)?f.enabled:f,F=j&&A[`${j}Key`],q=A.chartX,U=A.chartY,Q,ce=this.selectionMarker;if((!ce||!ce.touch)&&(q<C?q=C:q>C+M&&(q=C+M),U<D?U=D:U>D+z&&(U=D+z),this.hasDragged=Math.sqrt(Math.pow(T-q,2)+Math.pow(g-U,2)),this.hasDragged>10)){Q=L.isInsidePlot(T-C,g-D,{visiblePlotOnly:!0});let{shapeType:H,attrs:B}=this.getSelectionMarkerAttrs(q,U);(L.hasCartesianSeries||L.mapView)&&this.hasZoom&&Q&&!F&&!ce&&(this.selectionMarker=ce=L.renderer[H](),ce.attr({class:"highcharts-selection-marker",zIndex:7}).add(),L.styledMode||ce.attr({fill:P||c("#334eff").setOpacity(.25).get()})),ce&&ce.attr(B),Q&&!ce&&J&&L.pan(A,f)}}dragStart(A){let L=this.chart;L.mouseIsDown=A.type,L.cancelClick=!1,L.mouseDownX=A.chartX,L.mouseDownY=A.chartY}getSelectionBox(A){let L={args:{marker:A},result:A.getBBox()};return b(this,"getSelectionBox",L),L.result}drop(A){let L,{chart:T,selectionMarker:g}=this;for(let f of T.axes)f.isPanning&&(f.isPanning=!1,(f.options.startOnTick||f.options.endOnTick||f.series.some(j=>j.boosted))&&(f.forceRedraw=!0,f.setExtremes(f.userMin,f.userMax,!1),L=!0));if(L&&T.redraw(),g&&A){if(this.hasDragged){let f=this.getSelectionBox(g);T.transform({axes:T.axes.filter(j=>j.zoomEnabled&&(j.coll==="xAxis"&&this.zoomX||j.coll==="yAxis"&&this.zoomY)),selection:{originalEvent:A,xAxis:[],yAxis:[],...f},from:f})}x(T.index)&&(this.selectionMarker=g.destroy())}T&&x(T.index)&&(m(T.container,{cursor:T._cursor}),T.cancelClick=this.hasDragged>10,T.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[])}findNearestKDPoint(A,L,T){let g;return A.forEach(function(f){let j=!(f.noSharedTooltip&&L)&&0>f.options.findNearestPointBy.indexOf("y"),P=f.searchPoint(T,j);v(P,!0)&&P.series&&(!v(g,!0)||function(C,D){var F,q;let M=C.distX-D.distX,z=C.dist-D.dist,J=((F=D.series.group)==null?void 0:F.zIndex)-((q=C.series.group)==null?void 0:q.zIndex);return M!==0&&L?M:z!==0?z:J!==0?J:C.series.index>D.series.index?-1:1}(g,P)>0)&&(g=P)}),g}getChartCoordinatesFromPoint(A,L){let{xAxis:T,yAxis:g}=A.series,f=A.shapeArgs;if(T&&g){let j=A.clientX??A.plotX??0,P=A.plotY||0;return A.isNode&&f&&x(f.x)&&x(f.y)&&(j=f.x,P=f.y),L?{chartX:g.len+g.pos-P,chartY:T.len+T.pos-j}:{chartX:j+T.pos,chartY:P+g.pos}}if(f&&f.x&&f.y)return{chartX:f.x,chartY:f.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:A}=this.chart,L=N(A);this.chartPosition={left:L.left,top:L.top,scaleX:1,scaleY:1};let{offsetHeight:T,offsetWidth:g}=A;return g>2&&T>2&&(this.chartPosition.scaleX=L.width/g,this.chartPosition.scaleY=L.height/T),this.chartPosition}getCoordinates(A){let L={xAxis:[],yAxis:[]};for(let T of this.chart.axes)L[T.isXAxis?"xAxis":"yAxis"].push({axis:T,value:T.toValue(A[T.horiz?"chartX":"chartY"])});return L}getHoverData(A,L,T,g,f,j){let P=[],C=function(F){return F.visible&&!(!f&&F.directTouch)&&S(F.options.enableMouseTracking,!0)},D=L,M,z={chartX:j?j.chartX:void 0,chartY:j?j.chartY:void 0,shared:f};b(this,"beforeGetHoverData",z),M=D&&!D.stickyTracking?[D]:T.filter(F=>F.stickyTracking&&(z.filter||C)(F));let J=g&&A||!j?A:this.findNearestKDPoint(M,f,j);return D=J&&J.series,J&&(f&&!D.noSharedTooltip?(M=T.filter(function(F){return z.filter?z.filter(F):C(F)&&!F.noSharedTooltip})).forEach(function(F){let q=k(F.points,function(U){return U.x===J.x&&!U.isNull});v(q)&&(F.boosted&&F.boost&&(q=F.boost.getPoint(q)),P.push(q))}):P.push(J)),b(this,"afterGetHoverData",z={hoverPoint:J}),{hoverPoint:z.hoverPoint,hoverSeries:D,hoverPoints:P}}getPointFromEvent(A){let L=A.target,T;for(;L&&!T;)T=L.point,L=L.parentNode;return T}onTrackerMouseOut(A){let L=this.chart,T=A.relatedTarget,g=L.hoverSeries;this.isDirectTouch=!1,!g||!T||g.stickyTracking||this.inClass(T,"highcharts-tooltip")||this.inClass(T,"highcharts-series-"+g.index)&&this.inClass(T,"highcharts-tracker")||g.onMouseOut()}inClass(A,L){let T=A,g;for(;T;){if(g=y(T,"class")){if(g.indexOf(L)!==-1)return!0;
178if(g.indexOf("highcharts-container")!==-1)return!1}T=T.parentElement}}constructor(A,L){var T;this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=L,this.chart=A,this.runChartClick=!!((T=L.chart.events)!=null&&T.click),this.pinchDown=[],this.setDOMEvents(),b(this,"afterInit")}normalize(A,L){let T=A.touches,g=T?T.length?T.item(0):S(T.changedTouches,A.changedTouches)[0]:A;L||(L=this.getChartPosition());let f=g.pageX-L.left,j=g.pageY-L.top;return w(A,{chartX:Math.round(f/=L.scaleX),chartY:Math.round(j/=L.scaleY)})}onContainerClick(A){let L=this.chart,T=L.hoverPoint,g=this.normalize(A),f=L.plotLeft,j=L.plotTop;!L.cancelClick&&(T&&this.inClass(g.target,"highcharts-tracker")?(b(T.series,"click",w(g,{point:T})),L.hoverPoint&&T.firePointEvent("click",g)):(w(g,this.getCoordinates(g)),L.isInsidePlot(g.chartX-f,g.chartY-j,{visiblePlotOnly:!0})&&b(L,"click",g)))}onContainerMouseDown(A){var T;let L=(1&(A.buttons||A.button))==1;A=this.normalize(A),s.isFirefox&&A.button!==0&&this.onContainerMouseMove(A),(A.button===void 0||L)&&(this.zoomOption(A),L&&((T=A.preventDefault)==null||T.call(A)),this.dragStart(A))}onContainerMouseLeave(A){let{pointer:L}=d[S(V.hoverChartIndex,-1)]||{};A=this.normalize(A),this.onContainerMouseMove(A),L&&!this.inClass(A.relatedTarget,"highcharts-tooltip")&&(L.reset(),L.chartPosition=void 0)}onContainerMouseEnter(){delete this.chartPosition}onContainerMouseMove(A){let L=this.chart,T=L.tooltip,g=this.normalize(A);this.setHoverChartIndex(A),(L.mouseIsDown==="mousedown"||this.touchSelect(g))&&this.drag(g),!L.openMenu&&(this.inClass(g.target,"highcharts-tracker")||L.isInsidePlot(g.chartX-L.plotLeft,g.chartY-L.plotTop,{visiblePlotOnly:!0}))&&!(T&&T.shouldStickOnContact(g))&&(this.inClass(g.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(g))}onDocumentTouchEnd(A){this.onDocumentMouseUp(A)}onContainerTouchMove(A){this.touchSelect(A)?this.onContainerMouseMove(A):this.touch(A)}onContainerTouchStart(A){this.touchSelect(A)?this.onContainerMouseDown(A):(this.zoomOption(A),this.touch(A,!0))}onDocumentMouseMove(A){let L=this.chart,T=L.tooltip,g=this.chartPosition,f=this.normalize(A,g);!g||L.isInsidePlot(f.chartX-L.plotLeft,f.chartY-L.plotTop,{visiblePlotOnly:!0})||T&&T.shouldStickOnContact(f)||f.target!==L.container.ownerDocument&&this.inClass(f.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(A){var L,T;(T=(L=d[S(V.hoverChartIndex,-1)])==null?void 0:L.pointer)==null||T.drop(A)}pinch(A){let L=this,{chart:T,hasZoom:g,lastTouches:f}=L,j=[].map.call(A.touches||[],z=>L.normalize(z)),P=j.length,C=P===1&&(L.inClass(A.target,"highcharts-tracker")&&T.runTrackerClick||L.runChartClick),D=T.tooltip,M=P===1&&S(D==null?void 0:D.options.followTouchMove,!0);P>1?L.initiated=!0:M&&(L.initiated=!1),g&&L.initiated&&!C&&A.cancelable!==!1&&A.preventDefault(),A.type==="touchstart"?(L.pinchDown=j,L.res=!0,T.mouseDownX=A.chartX):M?this.runPointActions(L.normalize(A)):f&&(b(T,"touchpan",{originalEvent:A,touches:j},()=>{let z=J=>{let F=J[0],q=J[1]||F;return{x:F.chartX,y:F.chartY,width:q.chartX-F.chartX,height:q.chartY-F.chartY}};T.transform({axes:T.axes.filter(J=>J.zoomEnabled&&(this.zoomHor&&J.horiz||this.zoomVert&&!J.horiz)),to:z(j),from:z(f),trigger:A.type})}),L.res&&(L.res=!1,this.reset(!1,0))),L.lastTouches=j}reset(A,L){let T=this.chart,g=T.hoverSeries,f=T.hoverPoint,j=T.hoverPoints,P=T.tooltip,C=P&&P.shared?j:f;A&&C&&$(C).forEach(function(D){D.series.isCartesian&&D.plotX===void 0&&(A=!1)}),A?P&&C&&$(C).length&&(P.refresh(C),P.shared&&j?j.forEach(function(D){D.setState(D.state,!0),D.series.isCartesian&&(D.series.xAxis.crosshair&&D.series.xAxis.drawCrosshair(null,D),D.series.yAxis.crosshair&&D.series.yAxis.drawCrosshair(null,D))}):f&&(f.setState(f.state,!0),T.axes.forEach(function(D){D.crosshair&&f.series[D.coll]===D&&D.drawCrosshair(null,f)}))):(f&&f.onMouseOut(),j&&j.forEach(function(D){D.setState()}),g&&g.onMouseOut(),P&&P.hide(L),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),T.axes.forEach(function(D){D.hideCrosshair()}),T.hoverPoints=T.hoverPoint=void 0)}runPointActions(A,L,T){let g=this.chart,f=g.series,j=g.tooltip&&g.tooltip.options.enabled?g.tooltip:void 0,P=!!j&&j.shared,C=L||g.hoverPoint,D=C&&C.series||g.hoverSeries,M=(!A||A.type!=="touchmove")&&(!!L||D&&D.directTouch&&this.isDirectTouch),z=this.getHoverData(C,D,f,M,P,A);C=z.hoverPoint,D=z.hoverSeries;let J=z.hoverPoints,F=D&&D.tooltipOptions.followPointer&&!D.tooltipOptions.split,q=P&&D&&!D.noSharedTooltip;if(C&&(T||C!==g.hoverPoint||j&&j.isHidden)){if((g.hoverPoints||[]).forEac
178h(function(U){J.indexOf(U)===-1&&U.setState()}),g.hoverSeries!==D&&D.onMouseOver(),this.applyInactiveState(J),(J||[]).forEach(function(U){U.setState("hover")}),g.hoverPoint&&g.hoverPoint.firePointEvent("mouseOut"),!C.series)return;g.hoverPoints=J,g.hoverPoint=C,C.firePointEvent("mouseOver",void 0,()=>{j&&C&&j.refresh(q?J:C,A)})}else if(F&&j&&!j.isHidden){let U=j.getAnchor([{}],A);g.isInsidePlot(U[0],U[1],{visiblePlotOnly:!0})&&j.updatePosition({plotX:U[0],plotY:U[1]})}this.unDocMouseMove||(this.unDocMouseMove=p(g.container.ownerDocument,"mousemove",U=>{var Q,ce;return(ce=(Q=d[V.hoverChartIndex??-1])==null?void 0:Q.pointer)==null?void 0:ce.onDocumentMouseMove(U)}),this.eventsToUnbind.push(this.unDocMouseMove)),g.axes.forEach(function(U){let Q,ce=S((U.crosshair||{}).snap,!0);!ce||(Q=g.hoverPoint)&&Q.series[U.coll]===U||(Q=k(J,H=>H.series&&H.series[U.coll]===U)),Q||!ce?U.drawCrosshair(A,Q):U.hideCrosshair()})}setDOMEvents(){let A=this.chart.container,L=A.ownerDocument;A.onmousedown=this.onContainerMouseDown.bind(this),A.onmousemove=this.onContainerMouseMove.bind(this),A.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(p(A,"mouseenter",this.onContainerMouseEnter.bind(this)),p(A,"mouseleave",this.onContainerMouseLeave.bind(this))),V.unbindDocumentMouseUp||(V.unbindDocumentMouseUp=[]),V.unbindDocumentMouseUp.push(p(L,"mouseup",this.onDocumentMouseUp.bind(this)));let T=this.chart.renderTo.parentElement;for(;T&&T.tagName!=="BODY";)this.eventsToUnbind.push(p(T,"scroll",()=>{delete this.chartPosition})),T=T.parentElement;this.eventsToUnbind.push(p(A,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),p(A,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),V.unbindDocumentTouchEnd||(V.unbindDocumentTouchEnd=p(L,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),p(this.chart,"redraw",this.setPointerCapture.bind(this))}setPointerCapture(){var f,j;if(!h)return;let A=this.pointerCaptureEventsToUnbind,L=this.chart,T=L.container,g=S((f=L.options.tooltip)==null?void 0:f.followTouchMove,!0)&&L.series.some(P=>P.options.findNearestPointBy.indexOf("y")>-1);!this.hasPointerCapture&&g?(A.push(p(T,"pointerdown",P=>{var C,D;(C=P.target)!=null&&C.hasPointerCapture(P.pointerId)&&((D=P.target)==null||D.releasePointerCapture(P.pointerId))}),p(T,"pointermove",P=>{var C,D;(D=(C=L.pointer)==null?void 0:C.getPointFromEvent(P))==null||D.onMouseOver(P)})),L.styledMode||m(T,{"touch-action":"none"}),T.className+=" highcharts-no-touch-action",this.hasPointerCapture=!0):this.hasPointerCapture&&!g&&(A.forEach(P=>P()),A.length=0,L.styledMode||m(T,{"touch-action":S((j=L.options.chart.style)==null?void 0:j["touch-action"],"manipulation")}),T.className=T.className.replace(" highcharts-no-touch-action",""),this.hasPointerCapture=!1)}setHoverChartIndex(A){var g;let L=this.chart,T=s.charts[S(V.hoverChartIndex,-1)];if(T&&T!==L){let f={relatedTarget:L.container};A&&!(A!=null&&A.relatedTarget)&&(A={...f,...A}),(g=T.pointer)==null||g.onContainerMouseLeave(A||f)}T&&T.mouseIsDown||(V.hoverChartIndex=L.index)}touch(A,L){let T,{chart:g,pinchDown:f=[]}=this;this.setHoverChartIndex(),(A=this.normalize(A)).touches.length===1?g.isInsidePlot(A.chartX-g.plotLeft,A.chartY-g.plotTop,{visiblePlotOnly:!0})&&!g.openMenu?(L&&this.runPointActions(A),A.type==="touchmove"&&(T=!!f[0]&&Math.pow(f[0].chartX-A.chartX,2)+Math.pow(f[0].chartY-A.chartY,2)>=16),S(T,!0)&&this.pinch(A)):L&&this.reset():A.touches.length===2&&this.pinch(A)}touchSelect(A){return!!(this.chart.zooming.singleTouch&&A.touches&&A.touches.length===1)}zoomOption(A){let L=this.chart,T=L.inverted,g=L.zooming.type||"",f,j;/touch/.test(A.type)&&(g=S(L.zooming.pinchType,g)),this.zoomX=f=/x/.test(g),this.zoomY=j=/y/.test(g),this.zoomHor=f&&!T||j&&T,this.zoomVert=j&&!T||f&&T,this.hasZoom=f||j}}return(l=V||(V={})).compose=function(I){_(u,"Core.Pointer")&&p(I,"beforeRender",function(){this.pointer=new l(this,this.options)})},V}),i(n,"Core/Legend/LegendSymbol.js",[n["Core/Utilities.js"]],function(r){var s;let{extend:a,merge:l,pick:c}=r;return function(d){function u(h,p,y){var T,g;let m=this.legendItem=this.legendItem||{},{chart:w,options:k}
vendor: 1,040 bytes, line 178
178=this,{baseline:b=0,symbolWidth:x,symbolHeight:v}=h,E=this.symbol||"circle",N=v/2,S=w.renderer,_=m.group,$=b-Math.round((((T=h.fontMetrics)==null?void 0:T.b)||v)*(y?.4:.3)),V={},I,A=k.marker,L=0;if(w.styledMode||(V["stroke-width"]=Math.min(k.lineWidth||0,24),k.dashStyle?V.dashstyle=k.dashStyle:k.linecap==="square"||(V["stroke-linecap"]="round")),m.line=S.path().addClass("highcharts-graph").attr(V).add(_),y&&(m.area=S.path().addClass("highcharts-area").add(_)),V["stroke-linecap"]&&(L=Math.min(m.line.strokeWidth(),x)/2),x){let f=[["M",L,$],["L",x-L,$]];m.line.attr({d:f}),(g=m.area)==null||g.attr({d:[...f,["L",x-L,b],["L",L,b]]})}if(A&&A.enabled!==!1&&x){let f=Math.min(c(A.radius,N),N);E.indexOf("url")===0&&(A=l(A,{width:v,height:v}),f=0),m.symbol=I=S.symbol(E,x/2-f,$-f,2*f,2*f,a({context:"legend"},A)).addClass("highcharts-point").add(_),I.isMarker=!0}}d.areaMarker=function(h,p){u.call(this,h,p,!0)},d.lineMarker=u,d.rectangle=function(h,p){let y=p.legendItem||{},m=h.options,w=h.symbolHeight,k=m.squareSymbol,b=k?w:h.symbolWidth;
178y.symbol=this.chart.renderer.rect(k?(h.symbolWidth-w)/2:0,h.baseline-w+1,b,w,c(h.options.symbolRadius,w/2)).addClass("highcharts-point").attr({zIndex:3}).add(y.group)}}(s||(s={})),s}),i(n,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){let{numberFormatter:r}=this.series.chart;return typeof this.y!="number"?"":r(this.y,-1)},padding:5,style:{fontSize:"0.7em",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}}),i(n,"Core/Series/SeriesRegistry.js",[n["Core/Globals.js"],n["Core/Defaults.js"],n["Core/Series/Point.js"],n["Core/Utilities.js"]],function(r,s,a,l){var c;let{defaultOptions:d}=s,{extend:u,extendClass:h,merge:p}=l;return function(y){function m(w,k){let b=d.plotOptions||{},x=k.defaultOptions,v=k.prototype;return v.type=w,v.pointClass||(v.pointClass=a),!y.seriesTypes[w]&&(x&&(b[w]=x),y.seriesTypes[w]=k,!0)}y.seriesTypes=r.seriesTypes,y.registerSeriesType=m,y.seriesType=function(w,k,b,x,v){let E=d.plotOptions||{};if(k=k||"",E[w]=p(E[k],b),delete y.seriesTypes[w],m(w,h(y.seriesTypes[k]||function(){},x)),y.seriesTypes[w].prototype.type=w,v){class N extends a{}u(N.prototype,v),y.seriesTypes[w].prototype.pointClass=N}return y.seriesTypes[w]}}(c||(c={})),c}),i(n,"Core/Series/Series.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Defaults.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Series/Point.js"],n["Core/Series/SeriesDefaults.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],function(r,s,a,l,c,d,u,h,p,y){let{animObject:m,setAnimation:w}=r,{defaultOptions:k}=s,{registerEventOptions:b}=a,{svg:x,win:v}=l,{seriesTypes:E}=h,{arrayMax:N,arrayMin:S,clamp:_,correctFloat:$,crisp:V,defined:I,destroyObjectProperties:A,diffObjects:L,erase:T,error:g,extend:f,find:j,fireEvent:P,getClosestDistance:C,getNestedProperty:D,insertItem:M,isArray:z,isNumber:J,isString:F,merge:q,objectEach:U,pick:Q,removeEvent:ce,splat:H,syncTimeout:B}=y;class K{constructor(){this.zoneAxis="y"}init(R,G){let W;P(this,"init",{options:G});let Y=this,X=R.series;this.eventsToUnbind=[],Y.chart=R,Y.options=Y.setOptions(G);let re=Y.options,ee=re.visible!==!1;Y.linkedSeries=[],Y.bindAxes(),f(Y,{name:re.name,state:"",visible:ee,selected:re.selected===!0}),b(this,re);let se=re.events;(se&&se.click||re.point&&re.point.events&&re.point.events.click||re.allowPointSelect)&&(R.runTrackerClick=!0),Y.getColor(),Y.getSymbol(),Y.parallelArrays.forEach(function(oe){Y[oe+"Data"]||(Y[oe+"Data"]=[])}),Y.isCartesian&&(R.hasCartesianSeries=!0),X.length&&(W=X[X.length-1]),Y._i=Q(W&&W._i,-1)+1,Y.opacity=Y.options.opacity,R.orderItems("series",M(this,X)),re.dataSorting&&re.dataSorting.enabled?Y.setDataSortingOptions():Y.points||Y.data||Y.setData(re.data,!1),P(this,"afterInit")}is(R){return E[R]&&this instanceof E[R]}bindAxes(){let R,G=this,W=G.options,Y=G.chart;P(this,"bindAxes",null,function(){(G.axisTypes||[]).forEach(function(X){(Y[X]||[]).forEach(function(re){R=re.options,(Q(W[X],0)===re.index||W[X]!==void 0&&W[X]===R.id)&&(M(G,re.series),G[X]=re,re.isDirty=!0)}),G[X]||G.optionalAxis===X||g(18,!0,Y)})}),P(this,"afterBindAxes")}updateParallelArrays(R,G,W){let Y=R.series,X=J(G)?function(re){let ee=re==="y"&&Y.toYData?Y.toYData(R):R[re];Y[re+"Data"][G]=ee}:function(re){Array.prototype[G].apply(Y[re+"Data"],W)};Y.parallelArrays.forEach(X)}hasData(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.yData&&this.yData.length>0}hasMarkerChanged(R,G){let W=R.marker,Y=G.marker||{};return W&&(Y.enabled&&!W.enabled||Y.symbol!==W.symbol||Y.height!==W.height||Y.width!==W.width)}autoIncrement(R){let G=this.options,W=G.pointIntervalUnit,Y=G.relativeXValue,X=this.chart.time,re=this.xIncrement,ee,se;return re=Q(re,G.pointStart,0),this.pointInterval=se=Q(this.pointInterval,G.pointInterval,1),Y&&J(R)&&(se*=R),W&&(ee=new X.Date(re),W==="day"?X.set("Date",ee,X.get("Date",ee)+se):W==="month"?X.set("Month",ee,X.get("Month",ee)+se):W==="year"&&X.set("FullYear",ee,X.get("FullYear",ee)+se),se=ee.getTime()-re),Y&&J(R)?re+se:(this.xIncrement=re+se,re)}setDataSortingOptions(){let R=this.options;f(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),I(R.pointRange)||(R.pointRange=1)}setOptions(R){var de,ue;let G,W=this.chart,Y=W.options.plotOptions,X=W.userOptions||{},re=q(R),ee=W.styledMode,se={plotOptions:Y,userOptions:re};P(this,"setOptions",se);let oe=se.plotOptions[this.type],he=X.plotOptions||{},pe=he.series||{},ne=k.plotOptions[this.type]||{},te=he[this.type]||{};this.userOptions=se.userOptions;let ae=q(oe,Y.series,te,re);this.tooltipOptions=q(k.tooltip,(de=k.plotOptions.series)==null?void 0:de.tooltip,ne==null?void 0:ne.tooltip,W.userOptions.tooltip,(ue=he.series)==null?void 0:ue.tooltip,te.tooltip,re.tooltip),this.stickyTracking=Q(re.stickyTracking,te.stickyTracking,pe.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||ae.stickyTracking),oe.marker===null&&delete ae.marker,this.zoneAxis=ae.zoneAxis||"y";let le=this.zones=(ae.zones||[]).map(me=>({...me}));
178return(ae.negativeColor||ae.negativeFillColor)&&!ae.zones&&(G={value:ae[this.zoneAxis+"Threshold"]||ae.threshold||0,className:"highcharts-negative"},ee||(G.color=ae.negativeColor,G.fillColor=ae.negativeFillColor),le.push(G)),le.length&&I(le[le.length-1].value)&&le.push(ee?{}:{color:this.color,fillColor:this.fillColor}),P(this,"afterSetOptions",{options:ae}),ae}getName(){return Q(this.options.name,"Series "+(this.index+1))}getCyclic(R,G,W){let Y,X,re=this.chart,ee=`${R}Index`,se=`${R}Counter`,oe=(W==null?void 0:W.length)||re.options.chart.colorCount;!G&&(I(X=Q(R==="color"?this.options.colorIndex:void 0,this[ee]))?Y=X:(re.series.length||(re[se]=0),Y=re[se]%oe,re[se]+=1),W&&(G=W[Y])),Y!==void 0&&(this[ee]=Y),this[R]=G}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||k.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){let R=this.options.marker;this.getCyclic("symbol",R.symbol,this.chart.options.symbols)}findPointIndex(R,G){let W,Y,X,re=R.id,ee=R.x,se=this.points,oe=this.options.dataSorting;if(re){let he=this.chart.get(re);he instanceof d&&(W=he)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let he=pe=>!pe.touched&&pe.index===R.index;if(oe&&oe.matchByName?he=pe=>!pe.touched&&pe.name===R.name:this.options.relativeXValue&&(he=pe=>!pe.touched&&pe.options.x===R.x),!(W=j(se,he)))return}return W&&(X=W&&W.index)!==void 0&&(Y=!0),X===void 0&&J(ee)&&(X=this.xData.indexOf(ee,G)),X!==-1&&X!==void 0&&this.cropped&&(X=X>=this.cropStart?X-this.cropStart:X),!Y&&J(X)&&se[X]&&se[X].touched&&(X=void 0),X}updateData(R,G){let W=this.options,Y=W.dataSorting,X=this.points,re=[],ee=this.requireSorting,se=R.length===X.length,oe,he,pe,ne,te=!0;if(this.xIncrement=null,R.forEach(function(ae,le){let de,ue=I(ae)&&this.pointClass.prototype.optionsToObject.call({series:this},ae)||{},me=ue.x;ue.id||J(me)?((de=this.findPointIndex(ue,ne))===-1||de===void 0?re.push(ae):X[de]&&ae!==W.data[de]?(X[de].update(ae,!1,null,!1),X[de].touched=!0,ee&&(ne=de+1)):X[de]&&(X[de].touched=!0),(!se||le!==de||Y&&Y.enabled||this.hasDerivedData)&&(oe=!0)):re.push(ae)},this),oe)for(he=X.length;he--;)(pe=X[he])&&!pe.touched&&pe.remove&&pe.remove(!1,G);else!se||Y&&Y.enabled?te=!1:(R.forEach(function(ae,le){ae===X[le].y||X[le].destroyed||X[le].update(ae,!1,null,!1)}),re.length=0);return X.forEach(function(ae){ae&&(ae.touched=!1)}),!!te&&(re.forEach(function(ae){this.addPoint(ae,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=N(this.xData),this.autoIncrement()),!0)}setData(R,G=!0,W,Y){var Ne;let X=this,re=X.points,ee=re&&re.length||0,se=X.options,oe=X.chart,he=se.dataSorting,pe=X.xAxis,ne=se.turboThreshold,te=this.xData,ae=this.yData,le=X.pointArrayMap,de=le&&le.length,ue=se.keys,me,ge,be,ve=0,we=1,Ce;oe.options.chart.allowMutatingData||(se.data&&delete X.options.data,X.userOptions.data&&delete X.userOptions.data,Ce=q(!0,R));let Pe=(R=Ce||R||[]).length;if(he&&he.enabled&&(R=this.sortData(R)),oe.options.chart.allowMutatingData&&Y!==!1&&Pe&&ee&&!X.cropped&&!X.hasGroupedData&&X.visible&&!X.boosted&&(be=this.updateData(R,W)),!be){X.xIncrement=null,X.colorCounter=0,this.parallelArrays.forEach(function(Te){X[Te+"Data"].length=0});let Ee=ne&&Pe>ne;if(Ee){let Te=X.getFirstValidPoint(R),Fe=X.getFirstValidPoint(R,Pe-1,-1),Le=Ue=>!!(z(Ue)&&(ue||J(Ue[0])));if(J(Te)&&J(Fe))for(me=0;me<Pe;me++)te[me]=this.autoIncrement(),ae[me]=R[me];else if(Le(Te)&&Le(Fe))if(de)if(Te.length===de)for(me=0;me<Pe;me++)te[me]=this.autoIncrement(),ae[me]=R[me];else for(me=0;me<Pe;me++)ge=R[me],te[me]=ge[0],ae[me]=ge.slice(1,de+1);else if(ue&&(ve=ue.indexOf("x"),we=ue.indexOf("y"),ve=ve>=0?ve:0,we=we>=0?we:1),Te.length===1&&(we=0),ve===we)for(me=0;me<Pe;me++)te[me]=this.autoIncrement(),ae[me]=R[me][we];else for(me=0;me<Pe;me++)ge=R[me],te[me]=ge[ve],ae[me]=ge[we];else Ee=!1}if(!Ee)for(me=0;me<Pe;me++)ge={series:X},X.pointClass.prototype.applyOptions.apply(ge,[R[me]]),X.updateParallelArrays(ge,me);for(ae&&F(ae[0])&&g(14,!0,oe),X.data=[],X.options.data=X.userOptions.data=R,me=ee;me--;)(Ne=re[me])==null||Ne.destroy();
178pe&&(pe.minRange=pe.userMinRange),X.isDirty=oe.isDirtyBox=!0,X.isDirtyData=!!re,W=!1}se.legendType==="point"&&(this.processData(),this.generatePoints()),G&&oe.redraw(W)}sortData(R){let G=this,W=G.options.dataSorting.sortKey||"y",Y=function(X,re){return I(re)&&X.pointClass.prototype.optionsToObject.call({series:X},re)||{}};return R.forEach(function(X,re){R[re]=Y(G,X),R[re].index=re},this),R.concat().sort((X,re)=>{let ee=D(W,X),se=D(W,re);return se<ee?-1:se>ee?1:0}).forEach(function(X,re){X.x=re},this),G.linkedSeries&&G.linkedSeries.forEach(function(X){let re=X.options,ee=re.data;re.dataSorting&&re.dataSorting.enabled||!ee||(ee.forEach(function(se,oe){ee[oe]=Y(X,se),R[oe]&&(ee[oe].x=R[oe].x,ee[oe].index=oe)}),X.setData(ee,!1))}),R}getProcessedData(R){let G=this,W=G.xAxis,Y=G.options.cropThreshold,X=W==null?void 0:W.logarithmic,re=G.isCartesian,ee,se,oe=0,he,pe,ne,te=G.xData,ae=G.yData,le=!1,de=te.length;W&&(pe=(he=W.getExtremes()).min,ne=he.max,le=!!(W.categories&&!W.names.length)),re&&G.sorted&&!R&&(!Y||de>Y||G.forceCrop)&&(te[de-1]<pe||te[0]>ne?(te=[],ae=[]):G.yData&&(te[0]<pe||te[de-1]>ne)&&(te=(ee=this.cropData(G.xData,G.yData,pe,ne)).xData,ae=ee.yData,oe=ee.start,se=!0));let ue=C([X?te.map(X.log2lin):te],()=>G.requireSorting&&!le&&g(15,!1,G.chart));return{xData:te,yData:ae,cropped:se,cropStart:oe,closestPointRange:ue}}processData(R){let G=this.xAxis;if(this.isCartesian&&!this.isDirty&&!G.isDirty&&!this.yAxis.isDirty&&!R)return!1;let W=this.getProcessedData();this.cropped=W.cropped,this.cropStart=W.cropStart,this.processedXData=W.xData,this.processedYData=W.yData,this.closestPointRange=this.basePointRange=W.closestPointRange,P(this,"afterProcessData")}cropData(R,G,W,Y){let X=R.length,re,ee,se=0,oe=X;for(re=0;re<X;re++)if(R[re]>=W){se=Math.max(0,re-1);break}for(ee=re;ee<X;ee++)if(R[ee]>Y){oe=ee+1;break}return{xData:R.slice(se,oe),yData:G.slice(se,oe),start:se,end:oe}}generatePoints(){let R=this.options,G=this.processedData||R.data,W=this.processedXData,Y=this.processedYData,X=this.pointClass,re=W.length,ee=this.cropStart||0,se=this.hasGroupedData,oe=R.keys,he=[],pe=R.dataGrouping&&R.dataGrouping.groupAll?ee:0,ne,te,ae,le,de=this.data;if(!de&&!se){let ue=[];ue.length=G.length,de=this.data=ue}for(oe&&se&&(this.options.keys=!1),le=0;le<re;le++)te=ee+le,se?((ae=new X(this,[W[le]].concat(H(Y[le])))).dataGroup=this.groupMap[pe+le],ae.dataGroup.options&&(ae.options=ae.dataGroup.options,f(ae,ae.dataGroup.options),delete ae.dataLabels)):(ae=de[te])||G[te]===void 0||(de[te]=ae=new X(this,G[te],W[le])),ae&&(ae.index=se?pe+le:te,he[le]=ae);if(this.options.keys=oe,de&&(re!==(ne=de.length)||se))for(le=0;le<ne;le++)le!==ee||se||(le+=re),de[le]&&(de[le].destroyElements(),de[le].plotX=void 0);this.data=de,this.points=he,P(this,"afterGeneratePoints")}getXExtremes(R){return{min:S(R),max:N(R)}}getExtremes(R,G){let W=this.xAxis,Y=this.yAxis,X=[],re=this.requireSorting&&!this.is("column")?1:0,ee=!!Y&&Y.positiveValuesOnly,se=G||this.getExtremesFromAll||this.options.getExtremesFromAll,{processedXData:oe,processedYData:he}=this,pe,ne,te,ae,le,de,ue,me=0,ge=0,be=0;if(this.cropped&&se){let Pe=this.getProcessedData(!0);oe=Pe.xData,he=Pe.yData}let ve=(R=R||this.stackedYData||he||[]).length,we=oe||this.xData;for(W&&(me=(pe=W.getExtremes()).min,ge=pe.max),de=0;de<ve;de++)if(ae=we[de],ne=(J(le=R[de])||z(le))&&((J(le)?le>0:le.length)||!ee),te=G||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!W||(we[de+re]||ae)>=me&&(we[de-re]||ae)<=ge,ne&&te)if(ue=le.length)for(;ue--;)J(le[ue])&&(X[be++]=le[ue]);else X[be++]=le;let Ce={activeYData:X,dataMin:S(X),dataMax:N(X)};return P(this,"afterGetExtremes",{dataExtremes:Ce}),Ce}applyExtremes(){let R=this.getExtremes();return this.dataMin=R.dataMin,this.dataMax=R.dataMax,R}getFirstValidPoint(R,G=0,W=1){let Y=R.length,X=G;for(;X>=0&&X<Y;){if(I(R[X]))return R[X];X+=W}}translate(){var ge;this.processedXData||this.processData(),this.generatePoints();let R=this.options,G=R.stacking,W=this.xAxis,Y=W.categories,X=this.enabledDataSorting,re=this.yAxis,ee=this.points,se=ee.length,oe=this.pointPlacementToXValue(),he=!!oe,pe=R.threshold,ne=R.startFromThreshold?pe:0,te,ae,le,de,ue=Number.MAX_VALUE;function me(be){return _(be,-1e9,1e9)}for(te=0;te<se;te++){let be,ve=ee[te],we=ve.x,Ce,Pe,Ne=ve.y,Ee=ve.low,Te=G&&((ge=re.stacking)==null?void 0:ge.stacks[(this.negStacks&&Ne<(ne?0:pe)?"-":"")+this.stackKey]);ae=W.translate(we,!1,!1,!1,!0,oe),ve.plotX=J(ae)?$(me(ae)):void 0,G&&this.visible&&Te&&Te[we]&&(de=this.getStackIndicator(de,we,this.index),!ve.isNull&&de.key&&(Pe=(Ce=Te[we]).points[de.key]),Ce&&z(Pe)&&(Ee=Pe[0],Ne=Pe[1],Ee===ne&&de.key===Te[we].base&&(Ee=Q(J(pe)?pe:re.min)),re.positiveValuesOnly&&I(Ee)&&Ee<=0&&(Ee=void 0),ve.total=ve.stackTotal=Q(Ce.total),ve.percentage=I(ve.y)&&Ce.total?ve.y/Ce.total*100:void 0,ve.stackY=Ne,this.irregularWidths||Ce.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),ve.yBottom=I(Ee)?me(re.translate(Ee,!1,!0,!1,!0)):void 0,this.dataModify&&(Ne=this.dataModify.modifyValue(Ne,te)),J(Ne)&&ve.plotX!==void 0&&(be=J(be=re.translate(Ne,!1,!0,!1,!0))?me(be):void 0),ve.plotY=be,ve.isInside=this.isPointInside(ve),ve.clientX=he?$(W.translate(we,!1,!1,!1,!0,oe)):ae,ve.negative=(ve.y||0)<(pe||0),ve.category=Q(Y&&Y[ve.x],ve.x),ve.isNull||ve.visible===!1||(le!==void 0&&(ue=Math.min(ue,Math.abs(ae-le))),le=ae),ve.zone=this.zones.length?ve.getZone():void 0,!ve.graphic&&this.group&&X&&(ve.isNew=!0)}this.closestPointRangePx=ue,P(this,"afterTranslate")}getValidPoints(R,G,W){let Y=this.chart;return(R||this.points||[]).filter(function(X){let{plotX:re,plotY:ee}=X;return!!((W||!X.isNull&&J(ee))&&(!G||Y.isInsidePlot(re,ee,{inverted:Y.inverted})))&&X.visible!==!1})}getClipBox(){let{chart:R,xAxis:G,yAxis:W}
178=this,{x:Y,y:X,width:re,height:ee}=q(R.clipBox);return G&&G.len!==R.plotSizeX&&(re=G.len),W&&W.len!==R.plotSizeY&&(ee=W.len),R.inverted&&!this.invertible&&([re,ee]=[ee,re]),{x:Y,y:X,width:re,height:ee}}getSharedClipKey(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey}setClip(){let{chart:R,group:G,markerGroup:W}=this,Y=R.sharedClips,X=R.renderer,re=this.getClipBox(),ee=this.getSharedClipKey(),se=Y[ee];se?se.animate(re):Y[ee]=se=X.clipRect(re),G&&G.clip(this.options.clip===!1?void 0:se),W&&W.clip()}animate(R){let{chart:G,group:W,markerGroup:Y}=this,X=G.inverted,re=m(this.options.animation),ee=[this.getSharedClipKey(),re.duration,re.easing,re.defer].join(","),se=G.sharedClips[ee],oe=G.sharedClips[ee+"m"];if(R&&W){let he=this.getClipBox();if(se)se.attr("height",he.height);else{he.width=0,X&&(he.x=G.plotHeight),se=G.renderer.clipRect(he),G.sharedClips[ee]=se;let pe={x:-99,y:-99,width:X?G.plotWidth+199:99,height:X?99:G.plotHeight+199};oe=G.renderer.clipRect(pe),G.sharedClips[ee+"m"]=oe}W.clip(se),Y==null||Y.clip(oe)}else if(se&&!se.hasClass("highcharts-animating")){let he=this.getClipBox(),pe=re.step;(Y!=null&&Y.element.childNodes.length||G.series.length>1)&&(re.step=function(ne,te){pe&&pe.apply(te,arguments),te.prop==="width"&&(oe!=null&&oe.element)&&oe.attr(X?"height":"width",ne+99)}),se.addClass("highcharts-animating").animate(he,re)}}afterAnimate(){this.setClip(),U(this.chart.sharedClips,(R,G,W)=>{R&&!this.chart.container.querySelector(`[clip-path="url(#${R.id})"]`)&&(R.destroy(),delete W[G])}),this.finishedAnimating=!0,P(this,"afterAnimate")}drawPoints(R=this.points){let G,W,Y,X,re,ee,se,oe=this.chart,he=oe.styledMode,{colorAxis:pe,options:ne}=this,te=ne.marker,ae=this[this.specialGroup||"markerGroup"],le=this.xAxis,de=Q(te.enabled,!le||!!le.isRadial||null,this.closestPointRangePx>=te.enabledThreshold*te.radius);if(te.enabled!==!1||this._hasPointMarkers)for(G=0;G<R.length;G++)if(X=(Y=(W=R[G]).graphic)?"animate":"attr",re=W.marker||{},ee=!!W.marker,(de&&re.enabled===void 0||re.enabled)&&!W.isNull&&W.visible!==!1){let ue=Q(re.symbol,this.symbol,"rect");se=this.markerAttribs(W,W.selected&&"select"),this.enabledDataSorting&&(W.startXPos=le.reversed?-(se.width||0):le.width);let me=W.isInside!==!1;if(!Y&&me&&((se.width||0)>0||W.hasImage)&&(W.graphic=Y=oe.renderer.symbol(ue,se.x,se.y,se.width,se.height,ee?re:te).add(ae),this.enabledDataSorting&&oe.hasRendered&&(Y.attr({x:W.startXPos}),X="animate")),Y&&X==="animate"&&Y[me?"show":"hide"](me).animate(se),Y){let ge=this.pointAttribs(W,he||!W.selected?void 0:"select");he?pe&&Y.css({fill:ge.fill}):Y[X](ge)}Y&&Y.addClass(W.getClassName(),!0)}else Y&&(W.graphic=Y.destroy())}markerAttribs(R,G){let W=this.options,Y=W.marker,X=R.marker||{},re=X.symbol||Y.symbol,ee={},se,oe,he=Q(X.radius,Y&&Y.radius);G&&(se=Y.states[G],he=Q((oe=X.states&&X.states[G])&&oe.radius,se&&se.radius,he&&he+(se&&se.radiusPlus||0))),R.hasImage=re&&re.indexOf("url")===0,R.hasImage&&(he=0);let pe=R.pos();return J(he)&&pe&&(W.crisp&&(pe[0]=V(pe[0],R.hasImage?0:re==="rect"?(Y==null?void 0:Y.lineWidth)||0:1)),ee.x=pe[0]-he,ee.y=pe[1]-he),he&&(ee.width=ee.height=2*he),ee}pointAttribs(R,G){let W=this.options.marker,Y=R&&R.options,X=Y&&Y.marker||{},re=Y&&Y.color,ee=R&&R.color,se=R&&R.zone&&R.zone.color,oe,he,pe=this.color,ne,te,ae=Q(X.lineWidth,W.lineWidth),le=1;return pe=re||se||ee||pe,ne=X.fillColor||W.fillColor||pe,te=X.lineColor||W.lineColor||pe,G=G||"normal",oe=W.states[G]||{},ae=Q((he=X.states&&X.states[G]||{}).lineWidth,oe.lineWidth,ae+Q(he.lineWidthPlus,oe.lineWidthPlus,0)),ne=he.fillColor||oe.fillColor||ne,{stroke:te=he.lineColor||oe.lineColor||te,"stroke-width":ae,fill:ne,opacity:le=Q(he.opacity,oe.opacity,le)}}destroy(R){let G,W,Y,X=this,re=X.chart,ee=/AppleWebKit\/533/.test(v.navigator.userAgent),se=X.data||[];for(P(X,"destroy",{keepEventsForUpdate:R}),this.removeEvents(R),(X.axisTypes||[]).forEach(function(oe){(Y=X[oe])&&Y.series&&(T(Y.series,X),Y.isDirty=Y.forceRedraw=!0)}),X.legendItem&&X.chart.legend.destroyItem(X),G=se.length;G--;)(W=se[G])&&W.destroy&&W.destroy();for(let oe of X.zones)A(oe,void 0,!0);y.clearTimeout(X.animationTimeout),U(X,function(oe,he){oe instanceof p&&!oe.survive&&oe[ee&&he==="group"?"hide":"destroy"]()}),re.hoverSeries===X&&(re.hoverSeries=void 0),T(re.series,X),re.orderItems("series"),U(X,function(oe,he){R&&he==="hcEvents"||delete X[he]})}applyZones(){let{area:R,chart:G,graph:W,zones:Y,points:X,xAxis:re,yAxis:ee,zoneAxis:se}=this,{inverted:oe,renderer:he}=G,pe=this[`${se}Axis`],{isXAxis:ne,len:te=0}=pe||{},ae=((W==null?void 0:W.strokeWidth())||0)/2+1,le=(de,ue=0,me=0)=>{oe&&(me=te-me);let{translated:ge=0,lineClip:be}=de,ve=me-ge;be==null||be.push(["L",ue,Math.abs(ve)<ae?me-ae*(ve<=0?-1:1):ge])};if(Y.length&&(W||R)&&pe&&J(pe.min)){let de=pe.getExtremes().max,ue=be=>{be.forEach((ve,we)=>{(ve[0]==="M"||ve[0]==="L")&&(be[we]=[ve[0],ne?te-ve[1]:ve[1],ne?ve[2]:te-ve[2]])})};if(Y.forEach(be=>
178{be.lineClip=[],be.translated=_(pe.toPixels(Q(be.value,de),!0)||0,0,te)}),W&&!this.showLine&&W.hide(),R&&R.hide(),se==="y"&&X.length<re.len)for(let be of X){let{plotX:ve,plotY:we,zone:Ce}=be,Pe=Ce&&Y[Y.indexOf(Ce)-1];Ce&&le(Ce,ve,we),Pe&&le(Pe,ve,we)}let me=[],ge=pe.toPixels(pe.getExtremes().min,!0);Y.forEach(be=>{var rt,tt;let ve=be.lineClip||[],we=Math.round(be.translated||0);re.reversed&&ve.reverse();let{clip:Ce,simpleClip:Pe}=be,Ne=0,Ee=0,Te=re.len,Fe=ee.len;ne?(Ne=we,Te=ge):(Ee=we,Fe=ge);let Le=[["M",Ne,Ee],["L",Te,Ee],["L",Te,Fe],["L",Ne,Fe],["Z"]],Ue=[Le[0],...ve,Le[1],Le[2],...me,Le[3],Le[4]];me=ve.reverse(),ge=we,oe&&(ue(Ue),R&&ue(Le)),Ce?(Ce.animate({d:Ue}),Pe==null||Pe.animate({d:Le})):(Ce=be.clip=he.path(Ue),R&&(Pe=be.simpleClip=he.path(Le))),W&&((rt=be.graph)==null||rt.clip(Ce)),R&&((tt=be.area)==null||tt.clip(Pe))})}else this.visible&&(W&&W.show(),R&&R.show())}plotGroup(R,G,W,Y,X){let re=this[R],ee=!re,se={visibility:W,zIndex:Y||.1};return I(this.opacity)&&!this.chart.styledMode&&this.state!=="inactive"&&(se.opacity=this.opacity),re||(this[R]=re=this.chart.renderer.g().add(X)),re.addClass("highcharts-"+G+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(I(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(re.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),re.attr(se)[ee?"attr":"animate"](this.getPlotBox(G)),re}getPlotBox(R){let G=this.xAxis,W=this.yAxis,Y=this.chart,X=Y.inverted&&!Y.polar&&G&&this.invertible&&R==="series";return Y.inverted&&(G=W,W=this.xAxis),{translateX:G?G.left:Y.plotLeft,translateY:W?W.top:Y.plotTop,rotation:X?90:0,rotationOriginX:X?(G.len-W.len)/2:0,rotationOriginY:X?(G.len+W.len)/2:0,scaleX:X?-1:1,scaleY:1}}removeEvents(R){let{eventsToUnbind:G}=this;R||ce(this),G.length&&(G.forEach(W=>{W()}),G.length=0)}render(){var he,pe,ne,te,ae;let R=this,{chart:G,options:W,hasRendered:Y}=R,X=m(W.animation),re=R.visible?"inherit":"hidden",ee=W.zIndex,se=G.seriesGroup,oe=R.finishedAnimating?0:X.duration;P(this,"render"),R.plotGroup("group","series",re,ee,se),R.markerGroup=R.plotGroup("markerGroup","markers",re,ee,se),W.clip!==!1&&R.setClip(),oe&&((he=R.animate)==null||he.call(R,!0)),R.drawGraph&&(R.drawGraph(),R.applyZones()),R.visible&&R.drawPoints(),(pe=R.drawDataLabels)==null||pe.call(R),(ne=R.redrawPoints)==null||ne.call(R),W.enableMouseTracking&&((te=R.drawTracker)==null||te.call(R)),oe&&((ae=R.animate)==null||ae.call(R)),Y||(oe&&X.defer&&(oe+=X.defer),R.animationTimeout=B(()=>{R.afterAnimate()},oe||0)),R.isDirty=!1,R.hasRendered=!0,P(R,"afterRender")}redraw(){let R=this.isDirty||this.isDirtyData;this.translate(),this.render(),R&&delete this.kdTree}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(R,G){let{xAxis:W,yAxis:Y}=this,X=this.chart.inverted;return this.searchKDTree({clientX:X?W.len-R.chartY+W.pos:R.chartX-W.pos,plotY:X?Y.len-R.chartX+Y.pos:R.chartY-Y.pos},G,R)}buildKDTree(R){this.buildingKdTree=!0;let G=this,W=G.options.findNearestPointBy.indexOf("y")>-1?2:1;delete G.kdTree,B(function(){G.kdTree=function Y(X,re,ee){let se,oe,he=X==null?void 0:X.length;if(he)return se=G.kdAxisArray[re%ee],X.sort((pe,ne)=>(pe[se]||0)-(ne[se]||0)),{point:X[oe=Math.floor(he/2)],left:Y(X.slice(0,oe),re+1,ee),right:Y(X.slice(oe+1),re+1,ee)}}(G.getValidPoints(void 0,!G.directTouch),W,W),G.buildingKdTree=!1},G.options.kdNow||(R==null?void 0:R.type)==="touchstart"?0:1)}searchKDTree(R,G,W){let Y=this,[X,re]=this.kdAxisArray,ee=G?"distX":"dist",se=(Y.options.findNearestPointBy||"").indexOf("y")>-1?2:1,oe=!!Y.isBubble;if(this.kdTree||this.buildingKdTree||this.buildKDTree(W),this.kdTree)return function he(pe,ne,te,ae){var Ce;let le=ne.point,de=Y.kdAxisArray[te%ae],ue,me,ge=le;(function(Pe,Ne){var At;let Ee=Pe[X],Te=Ne[X],Fe=I(Ee)&&I(Te)?Ee-Te:null,Le=Pe[re],Ue=Ne[re],rt=I(Le)&&I(Ue)?Le-Ue:0,tt=oe&&((At=Ne.marker)==null?void 0:At.radius)||0;Ne.dist=Math.sqrt((Fe&&Fe*Fe||0)+rt*rt)-tt,Ne.distX=I(Fe)?Math.abs(Fe)-tt:Number.MAX_VALUE})(pe,le);let be=(pe[de]||0)-(le[de]||0)+(oe&&((Ce=le.marker)==null?void 0:Ce.radius)||0),ve=be<0?"left":"right",we=be<0?"right":"left";return ne[ve]&&(ge=(ue=he(pe,ne[ve],te+1,ae))[ee]<ge[ee]?ue:le),ne[we]&&Math.sqrt(be*be)<ge[ee]&&(ge=(me=he(pe,ne[we],te+1,ae))[ee]<ge[ee]?me:ge),ge}(R,this.kdTree,se,se)}pointPlacementToXValue(){let{options:R,xAxis:G}=this,W=R.pointPlacement;return W==="between"&&(W=G.reversed?-.5:.5),J(W)?W*(R.pointRange||G.pointRange):0}isPointInside(R){let{chart:G,xAxis:W,yAxis:Y}=this,{plotX:X=-1,plotY:re=-1}=R;return re>=0&&re<=(Y?Y.len:G.plotHeight)&&X>=0&&X<=(W?W.len:G.plotWidth)}drawTracker(){var ne;let R=this,G=R.options,W=G.trackByArea,Y=[].concat((W?R.areaPath:R.graphPath)||[]),X=R.chart,re=X.pointer,ee=X.renderer,se=((ne=X.options.tooltip)==null?void 0:ne.snap)||0,oe=()=>{G.enableMouseTracking&&X.hoverSeries!==R&&R.onMouseOver()}
178,he="rgba(192,192,192,"+(x?1e-4:.002)+")",pe=R.tracker;pe?pe.attr({d:Y}):R.graph&&(R.tracker=pe=ee.path(Y).attr({visibility:R.visible?"inherit":"hidden",zIndex:2}).addClass(W?"highcharts-tracker-area":"highcharts-tracker-line").add(R.group),X.styledMode||pe.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:he,fill:W?he:"none","stroke-width":R.graph.strokeWidth()+(W?0:2*se)}),[R.tracker,R.markerGroup,R.dataLabelsGroup].forEach(te=>{te&&(te.addClass("highcharts-tracker").on("mouseover",oe).on("mouseout",ae=>{re==null||re.onTrackerMouseOut(ae)}),G.cursor&&!X.styledMode&&te.css({cursor:G.cursor}),te.on("touchstart",oe))})),P(this,"afterDrawTracker")}addPoint(R,G,W,Y,X){let re,ee,se=this.options,oe=this.data,he=this.chart,pe=this.xAxis,ne=pe&&pe.hasNames&&pe.names,te=se.data,ae=this.xData;G=Q(G,!0);let le={series:this};this.pointClass.prototype.applyOptions.apply(le,[R]);let de=le.x;if(ee=ae.length,this.requireSorting&&de<ae[ee-1])for(re=!0;ee&&ae[ee-1]>de;)ee--;this.updateParallelArrays(le,"splice",[ee,0,0]),this.updateParallelArrays(le,ee),ne&&le.name&&(ne[de]=le.name),te.splice(ee,0,R),(re||this.processedData)&&(this.data.splice(ee,0,null),this.processData()),se.legendType==="point"&&this.generatePoints(),W&&(oe[0]&&oe[0].remove?oe[0].remove(!1):(oe.shift(),this.updateParallelArrays(le,"shift"),te.shift())),X!==!1&&P(this,"addPoint",{point:le}),this.isDirty=!0,this.isDirtyData=!0,G&&he.redraw(Y)}removePoint(R,G,W){let Y=this,X=Y.data,re=X[R],ee=Y.points,se=Y.chart,oe=function(){ee&&ee.length===X.length&&ee.splice(R,1),X.splice(R,1),Y.options.data.splice(R,1),Y.updateParallelArrays(re||{series:Y},"splice",[R,1]),re&&re.destroy(),Y.isDirty=!0,Y.isDirtyData=!0,G&&se.redraw()};w(W,se),G=Q(G,!0),re?re.firePointEvent("remove",null,oe):oe()}remove(R,G,W,Y){let X=this,re=X.chart;function ee(){X.destroy(Y),re.isDirtyLegend=re.isDirtyBox=!0,re.linkSeries(Y),Q(R,!0)&&re.redraw(G)}W!==!1?P(X,"remove",null,ee):ee()}update(R,G){var ue,me,ge;P(this,"update",{options:R=L(R,this.userOptions)});let W=this,Y=W.chart,X=W.userOptions,re=W.initialType||W.type,ee=Y.options.plotOptions,se=E[re].prototype,oe=W.finishedAnimating&&{animation:!1},he={},pe,ne,te=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],ae=R.type||X.type||Y.options.chart.type,le=!(this.hasDerivedData||ae&&ae!==this.type||R.pointStart!==void 0||R.pointInterval!==void 0||R.relativeXValue!==void 0||R.joinBy||R.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some(be=>W.hasOptionChanged(be)));ae=ae||re,le&&(te.push("data","isDirtyData","isDirtyCanvas","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"),R.visible!==!1&&te.push("area","graph"),W.parallelArrays.forEach(function(be){te.push(be+"Data")}),R.data&&(R.dataSorting&&f(W.options.dataSorting,R.dataSorting),this.setData(R.data,!1))),R=q(X,{index:X.index===void 0?W.index:X.index,pointStart:((ue=ee==null?void 0:ee.series)==null?void 0:ue.pointStart)??X.pointStart??((me=W.xData)==null?void 0:me[0])},!le&&{data:W.options.data},R,oe),le&&R.data&&(R.data=W.options.data),(te=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(te)).forEach(function(be){te[be]=W[be],delete W[be]});let de=!1;if(E[ae]){if(de=ae!==W.type,W.remove(!1,!1,!1,!0),de)if(Y.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(W,E[ae].prototype);else{let be=Object.hasOwnProperty.call(W,"hcEvents")&&W.hcEvents;for(ne in se)W[ne]=void 0;f(W,E[ae].prototype),be?W.hcEvents=be:delete W.hcEvents}}else g(17,!0,Y,{missingModuleFor:ae});if(te.forEach(function(be){W[be]=te[be]}),W.init(Y,R),le&&this.points)for(let be of((pe=W.options).visible===!1?(he.graphic=1,he.dataLabel=1):(this.hasMarkerChanged(pe,X)&&(he.graphic=1),(ge=W.hasDataLabels)!=null&&ge.call(W)||(he.dataLabel=1)),this.points))be&&be.series&&(be.resolveColor(),Object.keys(he).length&&be.destroyElements(he),pe.showInLegend===!1&&be.legendItem&&Y.legend.destroyItem(be));W.initialType=re,Y.linkSeries(),Y.setSortedData(),de&&W.linkedSeries.length&&(W.isDirtyData=!0),P(this,"afterUpdate"),Q(G,!0)&&Y.redraw(!!le&&void 0)}setName(R){this.name=this.options.name=this.userOptions.name=R,this.chart.isDirtyLegend=!0}hasOptionChanged(R){var ee,se;let G=this.chart,W=this.options[R],Y=G.options.plotOptions,X=this.userOptions[R],re=Q((ee=Y==null?void 0:Y[this.type])==null?void 0:ee[R],(se=Y==null?void 0:Y.series)==null?void 0:se[R]);return X&&!I(re)?W!==X:W!==Q(re,W)}onMouseOver(){let R=this.chart,G=R.hoverSeries,W=R.pointer;W==null||W.setHoverChartIndex(),G&&G!==this&&G.onMouseOut(),this.options.events.mouseOver&&P(this,"mouseOver"),this.setState("hover"),R.hoverSeries=this}onMouseOut(){let R=this.options,G=this.chart,W=G.tooltip,Y=G.hoverPoint;G.hoverSeries=null,Y&&Y.onMouseOut(),this&&R.events.mouseOut&&P(this,"mouseOut"),W&&!this.stickyTracking&&(!W.shared||this.noSharedTooltip)&&W.hide(),G.series.forEac
178h(function(X){X.setState("",!0)})}setState(R,G){let W=this,Y=W.options,X=W.graph,re=Y.inactiveOtherPoints,ee=Y.states,se=Q(ee[R||"normal"]&&ee[R||"normal"].animation,W.chart.options.chart.animation),oe=Y.lineWidth,he=Y.opacity;if(R=R||"",W.state!==R&&([W.group,W.markerGroup,W.dataLabelsGroup].forEach(function(pe){pe&&(W.state&&pe.removeClass("highcharts-series-"+W.state),R&&pe.addClass("highcharts-series-"+R))}),W.state=R,!W.chart.styledMode)){if(ee[R]&&ee[R].enabled===!1)return;if(R&&(oe=ee[R].lineWidth||oe+(ee[R].lineWidthPlus||0),he=Q(ee[R].opacity,he)),X&&!X.dashstyle&&J(oe))for(let pe of[X,...this.zones.map(ne=>ne.graph)])pe==null||pe.animate({"stroke-width":oe},se);re||[W.group,W.markerGroup,W.dataLabelsGroup,W.labelBySeries].forEach(function(pe){pe&&pe.animate({opacity:he},se)})}G&&re&&W.points&&W.setAllPointsToState(R||void 0)}setAllPointsToState(R){this.points.forEach(function(G){G.setState&&G.setState(R)})}setVisible(R,G){var se;let W=this,Y=W.chart,X=Y.options.chart.ignoreHiddenSeries,re=W.visible;W.visible=R=W.options.visible=W.userOptions.visible=R===void 0?!re:R;let ee=R?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(oe=>{var he;(he=W[oe])==null||he[ee]()}),(Y.hoverSeries===W||((se=Y.hoverPoint)==null?void 0:se.series)===W)&&W.onMouseOut(),W.legendItem&&Y.legend.colorizeItem(W,R),W.isDirty=!0,W.options.stacking&&Y.series.forEach(oe=>{oe.options.stacking&&oe.visible&&(oe.isDirty=!0)}),W.linkedSeries.forEach(oe=>{oe.setVisible(R,!1)}),X&&(Y.isDirtyBox=!0),P(W,ee),G!==!1&&Y.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(R){this.selected=R=this.options.selected=R===void 0?!this.selected:R,this.checkbox&&(this.checkbox.checked=R),P(this,R?"select":"unselect")}shouldShowTooltip(R,G,W={}){return W.series=this,W.visiblePlotOnly=!0,this.chart.isInsidePlot(R,G,W)}drawLegendSymbol(R,G){var W;(W=c[this.options.legendSymbol||"rectangle"])==null||W.call(this,R,G)}}return K.defaultOptions=u,K.types=h.seriesTypes,K.registerType=h.registerSeriesType,f(K.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:d,requireSorting:!0,sorted:!0}),h.series=K,K}),i(n,"Core/Legend/Legend.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Series/Series.js"],n["Core/Series/Point.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Templating.js"],n["Core/Utilities.js"]],function(r,s,a,l,c,d,u,h){var p;let{animObject:y,setAnimation:m}=r,{registerEventOptions:w}=s,{composed:k,marginNames:b}=a,{distribute:x}=d,{format:v}=u,{addEvent:E,createElement:N,css:S,defined:_,discardElement:$,find:V,fireEvent:I,isNumber:A,merge:L,pick:T,pushUnique:g,relativeLength:f,stableSort:j,syncTimeout:P}=h;class C{constructor(M,z){this.allItems=[],this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.padding=0,this.pages=[],this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=M,this.setOptions(z),z.enabled&&(this.render(),w(this,z),E(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),E(this.chart,"render",()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())})}setOptions(M){let z=T(M.padding,8);this.options=M,this.chart.styledMode||(this.itemStyle=M.itemStyle,this.itemHiddenStyle=L(this.itemStyle,M.itemHiddenStyle)),this.itemMarginTop=M.itemMarginTop,this.itemMarginBottom=M.itemMarginBottom,this.padding=z,this.initialItemY=z-5,this.symbolWidth=T(M.symbolWidth,16),this.pages=[],this.proximate=M.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0}update(M,z){let J=this.chart;this.setOptions(L(!0,this.options,M)),"events"in this.options&&w(this,this.options),this.destroy(),J.isDirtyLegend=J.isDirtyBox=!0,T(z,!0)&&J.redraw(),I(this,"afterUpdate",{redraw:z})}colorizeItem(M,z){let{area:J,group:F,label:q,line:U,symbol:Q}=M.legendItem||{};if(F==null||F[z?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:ce={}}=this,H=ce.color,{fillColor:B,fillOpacity:K,lineColor:ie,marker:R}=M.options,G=W=>(!z&&(W.fill&&(W.fill=H),W.stroke&&(W.stroke=H)),W);q==null||q.css(L(z?this.itemStyle:ce)),U==null||U.attr(G({stroke:ie||M.color})),Q&&Q.attr(G(R&&Q.isMarker?M.pointAttribs():{fill:M.color})),J==null||J.attr(G({fill:B||M.color,"fill-opacity":B?1:K??.75}
vendor: 17,361 bytes, line 178
178))}I(this,"afterColorizeItem",{item:M,visible:z})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(M){let{group:z,x:J=0,y:F=0}=M.legendItem||{},q=this.options,U=q.symbolPadding,Q=!q.rtl,ce=M.checkbox;if(z&&z.element){let H={translateX:Q?J:this.legendWidth-J-2*U-4,translateY:F};z[_(z.translateY)?"animate":"attr"](H,void 0,()=>{I(this,"afterPositionItem",{item:M})})}ce&&(ce.x=J,ce.y=F)}destroyItem(M){let z=M.checkbox,J=M.legendItem||{};for(let F of["group","label","line","symbol"])J[F]&&(J[F]=J[F].destroy());z&&$(z),M.legendItem=void 0}destroy(){for(let M of this.getAllItems())this.destroyItem(M);for(let M of["clipRect","up","down","pager","nav","box","title","group"])this[M]&&(this[M]=this[M].destroy());this.display=null}positionCheckboxes(){let M,z=this.group&&this.group.alignAttr,J=this.clipHeight||this.legendHeight,F=this.titleHeight;z&&(M=z.translateY,this.allItems.forEach(function(q){let U,Q=q.checkbox;Q&&(U=M+F+Q.y+(this.scrollOffset||0)+3,S(Q,{left:z.translateX+q.checkboxOffset+Q.x-20+"px",top:U+"px",display:this.proximate||U>M-6&&U<M+J-6?"":"none"}))},this))}renderTitle(){let M=this.options,z=this.padding,J=M.title,F,q=0;J.text&&(this.title||(this.title=this.chart.renderer.label(J.text,z-3,z-4,void 0,void 0,void 0,M.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(J.style),this.title.add(this.group)),J.width||this.title.css({width:this.maxLegendWidth+"px"}),q=(F=this.title.getBBox()).height,this.offsetWidth=F.width,this.contentGroup.attr({translateY:q})),this.titleHeight=q}setText(M){let z=this.options;M.legendItem.label.attr({text:z.labelFormat?v(z.labelFormat,M,this.chart):z.labelFormatter.call(M)})}renderItem(M){let z=M.legendItem=M.legendItem||{},J=this.chart,F=J.renderer,q=this.options,U=q.layout==="horizontal",Q=this.symbolWidth,ce=q.symbolPadding||0,H=this.itemStyle,B=this.itemHiddenStyle,K=U?T(q.itemDistance,20):0,ie=!q.rtl,R=!M.series,G=!R&&M.series.drawLegendSymbol?M.series:M,W=G.options,Y=!!this.createCheckboxForItem&&W&&W.showCheckbox,X=q.useHTML,re=M.options.className,ee=z.label,se=Q+ce+K+(Y?20:0);!ee&&(z.group=F.g("legend-item").addClass("highcharts-"+G.type+"-series highcharts-color-"+M.colorIndex+(re?" "+re:"")+(R?" highcharts-series-"+M.index:"")).attr({zIndex:1}).add(this.scrollGroup),z.label=ee=F.text("",ie?Q+ce:-ce,this.baseline||0,X),J.styledMode||ee.css(L(M.visible?H:B)),ee.attr({align:ie?"left":"right",zIndex:2}).add(z.group),!this.baseline&&(this.fontMetrics=F.fontMetrics(ee),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,ee.attr("y",this.baseline),this.symbolHeight=T(q.symbolHeight,this.fontMetrics.f),q.squareSymbol&&(this.symbolWidth=T(q.symbolWidth,Math.max(this.symbolHeight,16)),se=this.symbolWidth+ce+K+(Y?20:0),ie&&ee.attr("x",this.symbolWidth+ce))),G.drawLegendSymbol(this,M),this.setItemEvents&&this.setItemEvents(M,ee,X)),Y&&!M.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(M),this.colorizeItem(M,M.visible),(J.styledMode||!H.width)&&ee.css({width:(q.itemWidth||this.widthOption||J.spacingBox.width)-se+"px"}),this.setText(M);let oe=ee.getBBox(),he=this.fontMetrics&&this.fontMetrics.h||0;M.itemWidth=M.checkboxOffset=q.itemWidth||z.labelWidth||oe.width+se,this.maxItemWidth=Math.max(this.maxItemWidth,M.itemWidth),this.totalItemWidth+=M.itemWidth,this.itemHeight=M.itemHeight=Math.round(z.labelHeight||(oe.height>1.5*he?oe.height:he))}layoutItem(M){let z=this.options,J=this.padding,F=z.layout==="horizontal",q=M.itemHeight,U=this.itemMarginBottom,Q=this.itemMarginTop,ce=F?T(z.itemDistance,20):0,H=this.maxLegendWidth,B=z.alignColumns&&this.totalItemWidth>H?this.maxItemWidth:M.itemWidth,K=M.legendItem||{};F&&this.itemX-J+B>H&&(this.itemX=J,this.lastLineHeight&&(this.itemY+=Q+this.lastLineHeight+U),this.lastLineHeight=0),this.lastItemY=Q+this.itemY+U,this.lastLineHeight=Math.max(q,this.lastLineHeight),K.x=this.itemX,K.y=this.itemY,F?this.itemX+=B:(this.itemY+=Q+q+U,this.lastLineHeight=q),this.offsetWidth=this.widthOption||Math.max((F?this.itemX-J-(M.checkbox?0:ce):B)+J,this.offsetWidth)}getAllItems(){let M=[];return this.chart.series.forEach(function(z){let J=z&&z.options;z&&T(J.showInLegend,!_(J.linkedTo)&&void 0,!0)&&(M=M.concat((z.legendItem||{}).labels||(J.legendType==="point"?z.data:z)))}),I(this,"afterGetAllItems",{allItems:M}),M}getAlignment(){let M=this.options;return this.proximate?M.align.charAt(0)+"tv":M.floating?"":M.align.charAt(0)+M.verticalAlign.charAt(0)+M.layout.charAt(0)}adjustMargins(M,z){let J=this.chart,F=this.options,q=this.getAlignment();q&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(U,Q){U.test(q)&&!_(M[Q])&&(J[b[Q]]=Math.max(J[b[Q]],J.legend[(Q+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][Q]*F[Q%2?"x":"y"]+T(F.margin,12)+z[Q]+(J.titleOffset[Q]||0)))})}proximatePositions(){let M,z=this.chart,J=[],F=this.options.align==="left";for(let q of(this.allItems.forEach(function(U){let Q,ce,H=F,B,K;U.yAxis&&(U.xAxis.options.reversed&&(H=!H),U.points&&(Q=V(H?U.points:U.points.slice(0).reverse(),function(ie){return A(ie.plotY)})),ce=this.itemMarginTop+U.legendItem.label.getBBox().height+this.itemMarginBottom,K=U.yAxis.top-z.plotTop,B=U.visible?(Q?Q.plotY:U.yAxis.height)+(K-.3*ce):K+U.yAxis.height,J.push({target:B,size:ce,item:U}))},this),x(J,z.plotHeight)))M=q.item.legendItem||{},A(q.pos)&&(M.y=z.plotTop-z.spacing[0]+q.pos)}render(){let M=this.chart,z=M.renderer,J=this.options,F=this.padding,q=this.getAllItems(),U,Q,ce,H=this.group,B,K=this.box;this.itemX=F,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=f(J.width,M.spacingBox.width-F),B=M.spacingBox.width-2*F-J.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(B/=2),this.maxLegendWidth=this.widthOption||B,H||(this.group=H=z.g("legend").addClass(J.className||"").attr({zIndex:7}).add(),this.contentGroup=z.g().attr({zIndex:1}).add(H),this.scrollGroup=z.g().add(this.contentGroup)),this.renderTitle(),j(q,(ie,R)=>(ie.options&&ie.options.legendIndex||0)-(R.options&&R.options.legendIndex||0)),J.reversed&&q.reverse(),this.allItems=q,this.display=U=!!q.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,q.forEach(this.renderItem,this),q.forEach(this.layoutItem,this),Q=(this.widthOption||this.offsetWidth)+F,ce=this.lastItemY+this.lastLineHeight+this.titleHeight,ce=this.handleOverflow(ce)+F,K||(this.box=K=z.rect().addClass("highcharts-legend-box").attr({r:J.borderRadius}).add(H)),M.styledMode||K.attr({stroke:J.borderColor,"stroke-width":J.borderWidth||0,fill:J.backgroundColor||"none"}).shadow(J.shadow),Q>0&&ce>0&&K[K.placed?"animate":"attr"](K.crisp.call({},{x:0,y:0,width:Q,height:ce},K.strokeWidth())),H[U?"show":"hide"](),M.styledMode&&H.getStyle("display")==="none"&&(Q=ce=0),this.legendWidth=Q,this.legendHeight=ce,U&&this.align(),this.proximate||this.positionItems(),I(this,"afterRender")}align(M=this.chart.spacingBox){let z=this.chart,J=this.options,F=M.y;/(lth|ct|rth)/.test(this.getAlignment())&&z.titleOffset[0]>0?F+=z.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&z.titleOffset[2]>0&&(F-=z.titleOffset[2]),F!==M.y&&(M=L(M,{y:F})),z.hasRendered||(this.group.placed=!1),this.group.align(L(J,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":J.verticalAlign}),!0,M)}handleOverflow(M){let z=this,J=this.chart,F=J.renderer,q=this.options,U=q.y,Q=q.verticalAlign==="top",ce=this.padding,H=q.maxHeight,B=q.navigation,K=T(B.animation,!0),ie=B.arrowSize||12,R=this.pages,G=this.allItems,W=function(pe){typeof pe=="number"?he.attr({height:pe}):he&&(z.clipRect=he.destroy(),z.contentGroup.clip()),z.contentGroup.div&&(z.contentGroup.div.style.clip=pe?"rect("+ce+"px,9999px,"+(ce+pe)+"px,0)":"auto")},Y=function(pe){return z[pe]=F.circle(0,0,1.3*ie).translate(ie/2,ie/2).add(oe),J.styledMode||z[pe].attr("fill","rgba(0,0,0,0.0001)"),z[pe]},X,re,ee,se=J.spacingBox.height+(Q?-U:U)-ce,oe=this.nav,he=this.clipRect;return q.layout!=="horizontal"||q.verticalAlign==="middle"||q.floating||(se/=2),H&&(se=Math.min(se,H)),R.length=0,M&&se>0&&M>se&&B.enabled!==!1?(this.clipHeight=X=Math.max(se-20-this.titleHeight-ce,0),this.currentPage=T(this.currentPage,1),this.fullHeight=M,G.forEach((pe,ne)=>{let te=(ee=pe.legendItem||{}).y||0,ae=Math.round(ee.label.getBBox().height),le=R.length;(!le||te-R[le-1]>X&&(re||te)!==R[le-1])&&(R.push(re||te),le++),ee.pageIx=le-1,re&&((G[ne-1].legendItem||{}).pageIx=le-1),ne===G.length-1&&te+ae-R[le-1]>X&&te>R[le-1]&&(R.push(te),ee.pageIx=le),te!==re&&(re=te)}),he||(he=z.clipRect=F.clipRect(0,ce-2,9999,0),z.contentGroup.clip(he)),W(X),oe||(this.nav=oe=F.g().attr({zIndex:1}).add(this.group),this.up=F.symbol("triangle",0,0,ie,ie).add(oe),Y("upTracker").on("click",function(){z.scroll(-1,K)}),this.pager=F.text("",15,10).addClass("highcharts-legend-navigation"),!J.styledMode&&B.style&&this.pager.css(B.style),this.pager.add(oe),this.down=F.symbol("triangle-down",0,0,ie,ie).add(oe),Y("downTracker").on("click",function(){z.scroll(1,K)})),z.scroll(0),M=se):oe&&(W(),this.nav=oe.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),M}scroll(M,z){let J=this.chart,F=this.pages,q=F.length,U=this.clipHeight,Q=this.options.navigation,ce=this.pager,H=this.padding,B=this.currentPage+M;B>q&&(B=q),B>0&&(z!==void 0&&m(z,J),this.nav.attr({translateX:H,translateY:U+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(K){K.attr({class:B===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),ce.attr({text:B+"/"+q}),[this.down,this.downTracker].forEach(function(K){K.attr({x:18+this.pager.getBBox().width,class:B===q?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),J.styledMode||(this.up.attr({fill:B===1?Q.inactiveColor:Q.activeColor}),this.upTracker.css({cursor:B===1?"default":"pointer"}),this.down.attr({fill:B===q?Q.inactiveColor:Q.activeColor}),this.downTracker.css({cursor:B===q?"default":"pointer"})),this.scrollOffset=-F[B-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=B,this.positionCheckboxes(),P(()=>{I(this,"afterScroll",{currentPage:B})},y(T(z,J.renderer.globalAnimation,!0)).duration))}setItemEvents(M,z,J){let F=this,q=M.legendItem||{},U=F.chart.renderer.boxWrapper,Q=M instanceof c,ce=M instanceof l,H="highcharts-legend-"+(Q?"point":"series")+"-active",B=F.chart.styledMode,K=J?[z,q.symbol]:[q.group],ie=R=>{F.allItems.forEach(G=>{M!==G&&[G].concat(G.linkedSeries||[]).forEach(W=>{W.setState(R,!Q)})})};for(let R of K)R&&R.on("mouseover",function(){M.visible&&ie("inactive"),M.setState("hover"),M.visible&&U.addClass(H),B||z.css(F.options.itemHoverStyle)}).on("mouseout",function(){F.chart.styledMode||z.css(L(M.visible?F.itemStyle:F.itemHiddenStyle)),ie(""),U.removeClass(H),M.setState()}).on("click",function(G){let W=function(){M.setVisible&&M.setVisible(),ie(M.visible?"inactive":"")};U.removeClass(H),I(F,"itemClick",{browserEvent:G,legendItem:M},W),Q?M.firePointEvent("legendItemClick",{browserEvent:G}):ce&&I(M,"legendItemClick",{browserEvent:G})})}createCheckboxForItem(M){M.checkbox=N("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:M.selected,defaultChecked:M.selected},this.options.itemCheckboxStyle,this.chart.container),E(M.checkbox,"click",function(z){let J=z.target;I(M.series||M,"checkboxClick",{checked:J.checked,item:M},function(){M.select()})})}}return(p=C||(C={})).compose=function(D){g(k,"Core.Legend")&&E(D,"beforeMargins",function(){this.legend=new p(this,this.options.legend)})},C}),i(n,"Core/Chart/Chart.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/Axis.js"],n["Core/Defaults.js"],n["Core/Templating.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Time.js"],n["Core/Utilities.js"],n["Core/Renderer/HTML/AST.js"],n["Core/Axis/Tick.js"]],function(r,s,a,l,c,d,u,h,p,y,m,w,k,b){let{animate:x,animObject:v,setAnimation:E}=r,{defaultOptions:N,defaultTime:S}=a,{numberFormat:_}=l,{registerEventOptions:$}=c,{charts:V,doc:I,marginNames:A,svg:L,win:T}=d,{seriesTypes:g}=p,{addEvent:f,attr:j,createElement:P,css:C,defined:D,diffObjects:M,discardElement:z,erase:J,error:F,extend:q,find:U,fireEvent:Q,getStyle:ce,isArray:H,isNumber:B,isObject:K,isString:ie,merge:R,objectEach:G,pick:W,pInt:Y,relativeLength:X,removeEvent:re,splat:ee,syncTimeout:se,uniqueKey:oe}=w;class he{static chart(ne,te,ae){return new he(ne,te,ae)}constructor(ne,te,ae){this.sharedClips={};let le=[...arguments];(ie(ne)||ne.nodeName)&&(this.renderTo=le.shift()),this.init(le[0],le[1])}setZoomOptions(){let ne=this.options.chart,te=ne.zooming;this.zooming={...te,type:W(ne.zoomType,te.type),key:W(ne.zoomKey,te.key),pinchType:W(ne.pinchType,te.pinchType),singleTouch:W(ne.zoomBySingleTouch,te.singleTouch,!1),resetButton:R(te.resetButton,ne.resetZoomButton)}}init(ne,te){Q(this,"init",{args:arguments},function(){let ae=R(N,ne),le=ae.chart;this.userOptions=q({},ne),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=te,this.isResizing=0,this.options=ae,this.axes=[],this.series=[],this.time=ne.time&&Object.keys(ne.time).length?new m(ne.time):d.time,this.numberFormatter=le.numberFormatter||_,this.styledMode=le.styledMode,this.hasCartesianSeries=le.showAxes,this.index=V.length,V.push(this),d.chartCount++,$(this,le),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),Q(this,"afterInit"),this.firstRender()})}initSeries(ne){let te=this.options.chart,ae=ne.type||te.type,le=g[ae];le||F(17,!0,this,{missingModuleFor:ae});let de=new le;return typeof de.init=="function"&&de.init(this,ne),de}setSortedData(){this.getSeriesOrderByLinks().forEach(function(ne){ne.points||ne.data||!ne.enabledDataSorting||ne.setData(ne.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(ne,te){return ne.linkedSeries.length||te.linkedSeries.length?te.linkedSeries.length-ne.linkedSeries.length:0})}orderItems(ne,te=0){let ae=this[ne],le=this.options[ne]=ee(this.options[ne]).slice(),de=this.userOptions[ne]=this.userOptions[ne]?ee(this.userOptions[ne]).slice():[];if(this.hasRendered&&(le.splice(te),de.splice(te)),ae)for(let ue=te,me=ae.length;ue<me;++ue){let ge=ae[ue];ge&&(ge.index=ue,ge instanceof h&&(ge.name=ge.getName()),ge.options.isInternal||(le[ue]=ge.options,de[ue]=ge.userOptions))}}isInsidePlot(ne,te,ae={}){var Te;let{inverted:le,plotBox:de,plotLeft:ue,plotTop:me,scrollablePlotBox:ge}=this,{scrollLeft:be=0,scrollTop:ve=0}=ae.visiblePlotOnly&&((Te=this.scrollablePlotArea)==null?void 0:Te.scrollingContainer)||{},we=ae.series,Ce=ae.visiblePlotOnly&&ge||de,Pe=ae.inverted?te:ne,Ne=ae.inverted?ne:te,Ee={x:Pe,y:Ne,isInsidePlot:!0,options:ae};if(!ae.ignoreX){let Fe=we&&(le&&!this.polar?we.yAxis:we.xAxis)||{pos:ue,len:1/0},Le=ae.paneCoordinates?Fe.pos+Pe:ue+Pe;Le>=Math.max(be+ue,Fe.pos)&&Le<=Math.min(be+ue+Ce.width,Fe.pos+Fe.len)||(Ee.isInsidePlot=!1)}if(!ae.ignoreY&&Ee.isInsidePlot){let Fe=!le&&ae.axis&&!ae.axis.isXAxis&&ae.axis||we&&(le?we.xAxis:we.yAxis)||{pos:me,len:1/0},Le=ae.paneCoordinates?Fe.pos+Ne:me+Ne;Le>=Math.max(ve+me,Fe.pos)&&Le<=Math.min(ve+me+Ce.height,Fe.pos+Fe.len)||(Ee.isInsidePlot=!1)}return Q(this,"afterIsInsidePlot",Ee),Ee.isInsidePlot}redraw(ne){Q(this,"beforeRedraw");let te=this.hasCartesianSeries?this.axes:this.colorAxis||[],ae=this.series,le=this.pointer,de=this.legend,ue=this.userOptions.legend,me=this.renderer,ge=me.isHidden(),be=[],ve,we,Ce,Pe=this.isDirtyBox,Ne=this.isDirtyLegend,Ee;for(me.rootFontSize=me.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),E(!!this.hasRendered&&ne,this),ge&&this.temporaryDisplay(),this.layOutTitles(!1),Ce=ae.length;Ce--;)if(((Ee=ae[Ce]).options.stacking||Ee.options.centerInCategory)&&(we=!0,Ee.isDirty)){ve=!0;break}if(ve)for(Ce=ae.length;Ce--;)(Ee=ae[Ce]).options.stacking&&(Ee.isDirty=!0);ae.forEach(function(Te){Te.isDirty&&(Te.options.legendType==="point"?(typeof Te.updateTotals=="function"&&Te.updateTotals(),Ne=!0):ue&&(ue.labelFormatter||ue.labelFormat)&&(Ne=!0)),Te.isDirtyData&&Q(Te,"updatedData")}),Ne&&de&&de.options.enabled&&(de.render(),this.isDirtyLegend=!1),we&&this.getStacks(),te.forEach(function(Te){Te.updateNames(),Te.setScale()}),this.getMargins(),te.forEach(function(Te){Te.isDirty&&(Pe=!0)}),te.forEach(function(Te){let Fe=Te.min+","+Te.max;Te.extKey!==Fe&&(Te.extKey=Fe,be.push(function(){Q(Te,"afterSetExtremes",q(Te.eventArgs,Te.getExtremes())),delete Te.eventArgs})),(Pe||we)&&Te.redraw()}),Pe&&this.drawChartBox(),Q(this,"predraw"),ae.forEach(function(Te){(Pe||Te.isDirty)&&Te.visible&&Te.redraw(),Te.isDirtyData=!1}),le&&le.reset(!0),me.draw(),Q(this,"redraw"),Q(this,"render"),ge&&this.temporaryDisplay(!0),be.forEach(function(Te){Te.call()})}get(ne){let te=this.series;function ae(de){return de.id===ne||de.options&&de.options.id===ne}let le=U(this.axes,ae)||U(this.series,ae);for(let de=0;!le&&de<te.length;de++)le=U(te[de].points||[],ae);return le}getAxes(){let ne=this.userOptions;for(let te of(Q(this,"getAxes"),["xAxis","yAxis"]))for(let ae of ne[te]=ee(ne[te]||{}))new s(this,ae,te);Q(this,"afterGetAxes")}getSelectedPoints(){return this.series.reduce((ne,te)=>
178(te.getPointsCollection().forEach(ae=>{W(ae.selectedStaging,ae.selected)&&ne.push(ae)}),ne),[])}getSelectedSeries(){return this.series.filter(function(ne){return ne.selected})}setTitle(ne,te,ae){this.applyDescription("title",ne),this.applyDescription("subtitle",te),this.applyDescription("caption",void 0),this.layOutTitles(ae)}applyDescription(ne,te){let ae=this,le=this.options[ne]=R(this.options[ne],te),de=this[ne];de&&te&&(this[ne]=de=de.destroy()),le&&!de&&((de=this.renderer.text(le.text,0,0,le.useHTML).attr({align:le.align,class:"highcharts-"+ne,zIndex:le.zIndex||4}).add()).update=function(ue,me){ae.applyDescription(ne,ue),ae.layOutTitles(me)},this.styledMode||de.css(q(ne==="title"?{fontSize:this.options.isStock?"1em":"1.2em"}:{},le.style)),this[ne]=de)}layOutTitles(ne=!0){let te=[0,0,0],ae=this.renderer,le=this.spacingBox;["title","subtitle","caption"].forEach(function(ue){let me=this[ue],ge=this.options[ue],be=ge.verticalAlign||"top",ve=ue==="title"?be==="top"?-3:0:be==="top"?te[0]+2:0;if(me){me.css({width:(ge.width||le.width+(ge.widthAdjust||0))+"px"});let we=ae.fontMetrics(me).b,Ce=Math.round(me.getBBox(ge.useHTML).height);me.align(q({y:be==="bottom"?we:ve+we,height:Ce},ge),!1,"spacingBox"),ge.floating||(be==="top"?te[0]=Math.ceil(te[0]+Ce):be==="bottom"&&(te[2]=Math.ceil(te[2]+Ce)))}},this),te[0]&&(this.options.title.verticalAlign||"top")==="top"&&(te[0]+=this.options.title.margin),te[2]&&this.options.caption.verticalAlign==="bottom"&&(te[2]+=this.options.caption.margin);let de=!this.titleOffset||this.titleOffset.join(",")!==te.join(",");this.titleOffset=te,Q(this,"afterLayOutTitles"),!this.isDirtyBox&&de&&(this.isDirtyBox=this.isDirtyLegend=de,this.hasRendered&&ne&&this.isDirtyBox&&this.redraw())}getContainerBox(){let ne=[].map.call(this.renderTo.children,ae=>{if(ae!==this.container){let le=ae.style.display;return ae.style.display="none",[ae,le]}}),te={width:ce(this.renderTo,"width",!0)||0,height:ce(this.renderTo,"height",!0)||0};return ne.filter(Boolean).forEach(([ae,le])=>{ae.style.display=le}),te}getChartSize(){var ue;let ne=this.options.chart,te=ne.width,ae=ne.height,le=this.getContainerBox(),de=le.height>1&&!(!((ue=this.renderTo.parentElement)!=null&&ue.style.height)&&this.renderTo.style.height==="100%");this.chartWidth=Math.max(0,te||le.width||600),this.chartHeight=Math.max(0,X(ae,this.chartWidth)||(de?le.height:400)),this.containerBox=le}temporaryDisplay(ne){let te=this.renderTo,ae;if(ne)for(;te&&te.style;)te.hcOrigStyle&&(C(te,te.hcOrigStyle),delete te.hcOrigStyle),te.hcOrigDetached&&(I.body.removeChild(te),te.hcOrigDetached=!1),te=te.parentNode;else for(;te&&te.style&&(I.body.contains(te)||te.parentNode||(te.hcOrigDetached=!0,I.body.appendChild(te)),(ce(te,"display",!1)==="none"||te.hcOricDetached)&&(te.hcOrigStyle={display:te.style.display,height:te.style.height,overflow:te.style.overflow},ae={display:"block",overflow:"hidden"},te!==this.renderTo&&(ae.height=0),C(te,ae),te.offsetWidth||te.style.setProperty("display","block","important")),(te=te.parentNode)!==I.body););}setClassName(ne){this.container.className="highcharts-container "+(ne||"")}getContainer(){var Ce;let ne=this.options,te=ne.chart,ae="data-highcharts-chart",le=oe(),de,ue=this.renderTo;ue||(this.renderTo=ue=te.renderTo),ie(ue)&&(this.renderTo=ue=I.getElementById(ue)),ue||F(13,!0,this);let me=Y(j(ue,ae));B(me)&&V[me]&&V[me].hasRendered&&V[me].destroy(),j(ue,ae,this.index),ue.innerHTML=k.emptyHTML,te.skipClone||ue.offsetWidth||this.temporaryDisplay(),this.getChartSize();let ge=this.chartHeight,be=this.chartWidth;C(ue,{overflow:"hidden"}),this.styledMode||(de=q({position:"relative",overflow:"hidden",width:be+"px",height:ge+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none",padding:"0px"},te.style||{}));let ve=P("div",{id:le},de,ue);this.container=ve,this.getChartSize(),be===this.chartWidth||(be=this.chartWidth,this.styledMode||C(ve,{width:W((Ce=te.style)==null?void 0:Ce.width,be+"px")})),this.containerBox=this.getContainerBox(),this._cursor=ve.style.cursor;let we=te.renderer||!L?u.getRendererType(te.renderer):y;if(this.renderer=new we(ve,be,ge,void 0,te.forExport,ne.exporting&&ne.exp
178orting.allowHTML,this.styledMode),E(void 0,this),this.setClassName(te.className),this.styledMode)for(let Pe in ne.defs)this.renderer.definition(ne.defs[Pe]);else this.renderer.setStyle(te.style);this.renderer.chartIndex=this.index,Q(this,"afterGetContainer")}getMargins(ne){let{spacing:te,margin:ae,titleOffset:le}=this;this.resetMargins(),le[0]&&!D(ae[0])&&(this.plotTop=Math.max(this.plotTop,le[0]+te[0])),le[2]&&!D(ae[2])&&(this.marginBottom=Math.max(this.marginBottom,le[2]+te[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(ae,te),Q(this,"getMargins"),ne||this.getAxisMargins()}getAxisMargins(){let ne=this,te=ne.axisOffset=[0,0,0,0],ae=ne.colorAxis,le=ne.margin,de=function(ue){ue.forEach(function(me){me.visible&&me.getOffset()})};ne.hasCartesianSeries?de(ne.axes):ae&&ae.length&&de(ae),A.forEach(function(ue,me){D(le[me])||(ne[ue]+=te[me])}),ne.setChartSize()}getOptions(){return M(this.userOptions,N)}reflow(ne){var de;let te=this,ae=te.containerBox,le=te.getContainerBox();(de=te.pointer)==null||delete de.chartPosition,!te.isPrinting&&!te.isResizing&&ae&&le.width&&((le.width!==ae.width||le.height!==ae.height)&&(w.clearTimeout(te.reflowTimeout),te.reflowTimeout=se(function(){te.container&&te.setSize(void 0,void 0,!1)},ne?100:0)),te.containerBox=le)}setReflow(){let ne=this,te=ae=>{var le;(le=ne.options)!=null&&le.chart.reflow&&ne.hasLoaded&&ne.reflow(ae)};if(typeof ResizeObserver=="function")new ResizeObserver(te).observe(ne.renderTo);else{let ae=f(T,"resize",te);f(this,"destroy",ae)}}setSize(ne,te,ae){let le=this,de=le.renderer;le.isResizing+=1,E(ae,le);let ue=de.globalAnimation;le.oldChartHeight=le.chartHeight,le.oldChartWidth=le.chartWidth,ne!==void 0&&(le.options.chart.width=ne),te!==void 0&&(le.options.chart.height=te),le.getChartSize();let{chartWidth:me,chartHeight:ge,scrollablePixelsX:be=0,scrollablePixelsY:ve=0}=le;(le.isDirtyBox||me!==le.oldChartWidth||ge!==le.oldChartHeight)&&(le.styledMode||(ue?x:C)(le.container,{width:`${me+be}px`,height:`${ge+ve}px`},ue),le.setChartSize(!0),de.setSize(me,ge,ue),le.axes.forEach(function(we){we.isDirty=!0,we.setScale()}),le.isDirtyLegend=!0,le.isDirtyBox=!0,le.layOutTitles(),le.getMargins(),le.redraw(ue),le.oldChartHeight=void 0,Q(le,"resize"),setTimeout(()=>{le&&Q(le,"endResize")},v(ue).duration)),le.isResizing-=1}
178setChartSize(ne){let te,ae,le,de,{chartHeight:ue,chartWidth:me,inverted:ge,spacing:be,renderer:ve}=this,we=this.clipOffset,Ce=Math[ge?"floor":"round"];this.plotLeft=te=Math.round(this.plotLeft),this.plotTop=ae=Math.round(this.plotTop),this.plotWidth=le=Math.max(0,Math.round(me-te-this.marginRight)),this.plotHeight=de=Math.max(0,Math.round(ue-ae-this.marginBottom)),this.plotSizeX=ge?de:le,this.plotSizeY=ge?le:de,this.spacingBox=ve.spacingBox={x:be[3],y:be[0],width:me-be[3]-be[1],height:ue-be[0]-be[2]},this.plotBox=ve.plotBox={x:te,y:ae,width:le,height:de},we&&(this.clipBox={x:Ce(we[3]),y:Ce(we[0]),width:Ce(this.plotSizeX-we[1]-we[3]),height:Ce(this.plotSizeY-we[0]-we[2])}),ne||(this.axes.forEach(function(Pe){Pe.setAxisSize(),Pe.setAxisTranslation()}),ve.alignElements()),Q(this,"afterSetChartSize",{skipAxes:ne})}resetMargins(){Q(this,"resetMargins");let ne=this,te=ne.options.chart,ae=te.plotBorderWidth||0,le=ae/2;["margin","spacing"].forEach(function(de){let ue=te[de],me=K(ue)?ue:[ue,ue,ue,ue];["Top","Right","Bottom","Left"].forEach(function(ge,be){ne[de][be]=W(te[de+ge],me[be])})}),A.forEach(function(de,ue){ne[de]=W(ne.margin[ue],ne.spacing[ue])}),ne.axisOffset=[0,0,0,0],ne.clipOffset=[le,le,le,le],ne.plotBorderWidth=ae}drawChartBox(){let ne=this.options.chart,te=this.renderer,ae=this.chartWidth,le=this.chartHeight,de=this.styledMode,ue=this.plotBGImage,me=ne.backgroundColor,ge=ne.plotBackgroun
vendor: 10,154 bytes, line 178
178dColor,be=ne.plotBackgroundImage,ve=this.plotLeft,we=this.plotTop,Ce=this.plotWidth,Pe=this.plotHeight,Ne=this.plotBox,Ee=this.clipRect,Te=this.clipBox,Fe=this.chartBackground,Le=this.plotBackground,Ue=this.plotBorder,rt,tt,At,xt="animate";Fe||(this.chartBackground=Fe=te.rect().addClass("highcharts-background").add(),xt="attr"),de?rt=tt=Fe.strokeWidth():(tt=(rt=ne.borderWidth||0)+(ne.shadow?8:0),At={fill:me||"none"},(rt||Fe["stroke-width"])&&(At.stroke=ne.borderColor,At["stroke-width"]=rt),Fe.attr(At).shadow(ne.shadow)),Fe[xt]({x:tt/2,y:tt/2,width:ae-tt-rt%2,height:le-tt-rt%2,r:ne.borderRadius}),xt="animate",Le||(xt="attr",this.plotBackground=Le=te.rect().addClass("highcharts-plot-background").add()),Le[xt](Ne),!de&&(Le.attr({fill:ge||"none"}).shadow(ne.plotShadow),be&&(ue?(be!==ue.attr("href")&&ue.attr("href",be),ue.animate(Ne)):this.plotBGImage=te.image(be,ve,we,Ce,Pe).add())),Ee?Ee.animate({width:Te.width,height:Te.height}):this.clipRect=te.clipRect(Te),xt="animate",Ue||(xt="attr",this.plotBorder=Ue=te.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),de||Ue.attr({stroke:ne.plotBorderColor,"stroke-width":ne.plotBorderWidth||0,fill:"none"}),Ue[xt](Ue.crisp({x:ve,y:we,width:Ce,height:Pe},-Ue.strokeWidth())),this.isDirtyBox=!1,Q(this,"afterDrawChartBox")}propFromSeries(){let ne,te,ae,le=this,de=le.options.chart,ue=le.options.series;["inverted","angular","polar"].forEach(function(me){for(te=g[de.type],ae=de[me]||te&&te.prototype[me],ne=ue&&ue.length;!ae&&ne--;)(te=g[ue[ne].type])&&te.prototype[me]&&(ae=!0);le[me]=ae})}linkSeries(ne){let te=this,ae=te.series;ae.forEach(function(le){le.linkedSeries.length=0}),ae.forEach(function(le){let{linkedTo:de}=le.options;if(ie(de)){let ue;(ue=de===":previous"?te.series[le.index-1]:te.get(de))&&ue.linkedParent!==le&&(ue.linkedSeries.push(le),le.linkedParent=ue,ue.enabledDataSorting&&le.setDataSortingOptions(),le.visible=W(le.options.visible,ue.options.visible,le.visible))}}),Q(this,"afterLinkSeries",{isUpdating:ne})}renderSeries(){this.series.forEach(function(ne){ne.translate(),ne.render()})}render(){var ve;let ne=this.axes,te=this.colorAxis,ae=this.renderer,le=this.options.chart.axisLayoutRuns||2,de=we=>{we.forEach(Ce=>{Ce.visible&&Ce.render()})},ue=0,me=!0,ge,be=0;for(let we of(this.setTitle(),Q(this,"beforeMargins"),(ve=this.getStacks)==null||ve.call(this),this.getMargins(!0),this.setChartSize(),ne)){let{options:Ce}=we,{labels:Pe}=Ce;if(this.hasCartesianSeries&&we.horiz&&we.visible&&Pe.enabled&&we.series.length&&we.coll!=="colorAxis"&&!this.polar){ue=Ce.tickLength,we.createGroups();let Ne=new b(we,0,"",!0),Ee=Ne.createLabel("x",Pe);if(Ne.destroy(),Ee&&W(Pe.reserveSpace,!B(Ce.crossing))&&(ue=Ee.getBBox().height+Pe.distance+Math.max(Ce.offset||0,0)),ue){Ee==null||Ee.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-ue,0);(me||ge||le>1)&&be<le;){let we=this.plotWidth,Ce=this.plotHeight;for(let Pe of ne)be===0?Pe.setScale():(Pe.horiz&&me||!Pe.horiz&&ge)&&Pe.setTickInterval(!0);be===0?this.getAxisMargins():this.getMargins(),me=we/this.plotWidth>(be?1:1.1),ge=Ce/this.plotHeight>(be?1:1.05),be++}this.drawChartBox(),this.hasCartesianSeries?de(ne):te&&te.length&&de(te),this.seriesGroup||(this.seriesGroup=ae.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(ne){let te=this,ae=R(!0,this.options.credits,ne);ae.enabled&&!this.credits&&(this.credits=this.renderer.text(ae.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){ae.href&&(T.location.href=ae.href)}).attr({align:ae.position.align,zIndex:8}),te.styledMode||this.credits.css(ae.style),this.credits.add().align(ae.position),this.credits.update=function(le){te.credits=te.credits.destroy(),te.addCredits(le)})}destroy(){let ne,te=this,ae=te.axes,le=te.series,de=te.container,ue=de&&de.parentNode;for(Q(te,"destroy"),te.renderer.forExport?J(V,te):V[te.index]=void 0,d.chartCount--,te.renderTo.removeAttribute("data-highcharts-chart"),re(te),ne=ae.length;ne--;)ae[ne]=ae[ne].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),ne=le.length;ne--;)le[ne]=le[ne].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(function(me){let ge=te[me];ge&&ge.destroy&&(te[me]=ge.destroy())}),de&&(de.innerHTML=k.emptyHTML,re(de),ue&&z(de)),G(te,function(me,ge){delete te[ge]})}firstRender(){var le;let ne=this,te=ne.options;ne.getContainer(),ne.resetMargins(),ne.setChartSize(),ne.propFromSeries(),ne.getAxes();let ae=H(te.series)?te.series:[];te.series=[],ae.forEach(function(de){ne.initSeries(de)}),ne.linkSeries(),ne.setSortedData(),Q(ne,"beforeRender"),ne.render(),(le=ne.pointer)==null||le.getChartPosition(),ne.renderer.imgCount||ne.hasLoaded||ne.onload(),ne.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(ne){ne&&this.index!==void 0&&ne.apply(this,[this])},this),Q(this,"load"),Q(this,"render"),D(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){let{options:ne,title:te}=this;!ne||this.accessibility||(this.renderer.boxWrapper.attr({role:"img","aria-label":(te&&te.element.textContent||"").replace(/</g,"<")}),ne.accessibility&&ne.accessibility.enabled===!1||F('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))}addSeries(ne,te,ae){let le,de=this;return ne&&(te=W(te,!0),Q(de,"addSeries",{options:ne},function(){le=de.initSeries(ne),de.isDirtyLegend=!0,de.linkSeries(),le.enabledDataSorting&&le.setData(ne.data,!1),Q(de,"afterAddSeries",{series:le}),te&&de.redraw(ae)})),le}addAxis(ne,te,ae,le){return this.createAxis(te?"xAxis":"yAxis",{axis:ne,redraw:ae,animation:le})}addColorAxis(ne,te,ae){return this.createAxis("colorAxis",{axis:ne,redraw:te,animation:ae})}createAxis(ne,te){let ae=new s(this,te.axis,ne);return W(te.redraw,!0)&&this.redraw(te.animation),ae}showLoading(ne){let te=this,ae=te.options,le=ae.loading,de=function(){ue&&C(ue,{left:te.plotLeft+"px",top:te.plotTop+"px",width:te.plotWidth+"px",height:te.plotHeight+"px"})},ue=te.loadingDiv,me=te.loadingSpan;ue||(te.loadingDiv=ue=P("div",{className:"highcharts-loading highcharts-loading-hidden"},null,te.container)),me||(te.loadingSpan=me=P("span",{className:"highcharts-loading-inner"},null,ue),f(te,"redraw",de)),ue.className="highcharts-loading",k.setElementHTML(me,W(ne,ae.lang.loading,"")),te.styledMode||(C(ue,q(le.style,{zIndex:10})),C(me,le.labelStyle),te.loadingShown||(C(ue,{opacity:0,display:""}),x(ue,{opacity:le.style.opacity||.5},{duration:le.showDuration||0}))),te.loadingShown=!0,de()}hideLoading(){let ne=this.options,te=this.loadingDiv;te&&(te.className="highcharts-loading highcharts-loading-hidden",this.styledMode||x(te,{opacity:0},{duration:ne.loading.hideDuration||100,complete:function(){C(te,{display:"none"})}})),this.loadingShown=!1}update(ne,te,ae,le){let de,ue,me,ge=this,be={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},ve=ne.isResponsiveOptions,we=[];Q(ge,"update",{options:ne}),ve||ge.setResponsive(!1,!0),ne=M(ne,ge.options),ge.userOptions=R(ge.userOptions,ne);let Ce=ne.chart;Ce&&(R(!0,ge.options.chart,Ce),this.setZoomOptions(),"className"in Ce&&ge.setClassName(Ce.className),("inverted"in Ce||"polar"in Ce||"type"in Ce)&&(ge.propFromSeries(),de=!0),"alignTicks"in Ce&&(de=!0),"events"in Ce&&$(this,Ce),G(Ce,function(Ee,Te){ge.propsRequireUpdateSeries.indexOf("chart."+Te)!==-1&&(ue=!0),ge.propsRequireDirtyBox.indexOf(Te)!==-1&&(ge.isDirtyBox=!0),ge.propsRequireReflow.indexOf(Te)===-1||(ge.isDirtyBox=!0,ve||(me=!0))}),!ge.styledMode&&Ce.style&&ge.renderer.setStyle(ge.options.chart.style||{})),!ge.styledMode&&ne.colors&&(this.options.colors=ne.colors),ne.time&&(this.time===S&&(this.time=new m(ne.time)),R(!0,ge.options.time,ne.time)),G(ne,function(Ee,Te){ge[Te]&&typeof ge[Te].update=="function"?ge[Te].update(Ee,!1):typeof ge[be[Te]]=="function"?ge[be[Te]](Ee):Te!=="colors"&&ge.collectionsWithUpdate.indexOf(Te)===-1&&R(!0,ge.options[Te],ne[Te]),Te!=="chart"&&ge.propsRequireUpdateSeries.indexOf(Te)!==-1&&(ue=!0)}),this.collectionsWithUpdate.forEach(function(Ee){ne[Ee]&&(ee(ne[Ee]).forEach(function(Te,Fe){let Le,Ue=D(Te.id);Ue&&(Le=ge.get(Te.id)),!Le&&ge[Ee]&&(Le=ge[Ee][W(Te.index,Fe)])&&(Ue&&D(Le.options.id)||Le.options.isInternal)&&(Le=void 0),Le&&Le.coll===Ee&&(Le.update(Te,!1),ae&&(Le.touched=!0)),!Le&&ae&&ge.collectionsWithInit[Ee]&&(ge.collectionsWithInit[Ee][0].apply(ge,[Te].concat(ge.collectionsWithInit[Ee][1]||[]).concat([!1])).touched=!0)}),ae&&ge[Ee].forEach(function(Te){Te.touched||Te.options.isInternal?delete Te.touched:we.push(Te)}))}),we.forEach(function(Ee){Ee.chart&&Ee.remove&&Ee.remove(!1)}),de&&ge.axes.forEach(function(Ee){Ee.update({},!1)}),ue&&ge.getSeriesOrderByLinks().forEach(function(Ee){Ee.chart&&Ee.update({},!1)},this);let Pe=Ce&&Ce.width,Ne=Ce&&(ie(Ce.height)?X(Ce.height,Pe||ge.chartWidth):Ce.height);me||B(Pe)&&Pe!==ge.chartWidth||B(Ne)&&Ne!==ge.chartHeight?ge.setSize(Pe,Ne,le):W(te,!0)&&ge.redraw(le),Q(ge,"afterUpdate",{options:ne,redraw:te,animation:le})}setSubtitle(ne,te){this.applyDescription("subtitle",ne),this.layOutTitles(te)}setCaption(ne,te){this.applyDescription("caption",ne),this.layOutTitles(te)}showResetZoom(){let ne=this,te=N.lang,ae=ne.zooming.resetButton,le=ae.theme,de=ae.relativeTo==="chart"||ae.relativeTo==="spacingBox"?null:"plotBox";function ue(){ne.zoomOut()}Q(this,"beforeShowResetZoom",null,function(){ne.resetZoomButton=ne.renderer.button(te.resetZoom,null,null,ue,le).attr({align:ae.position.align,title:te.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(ae.position,!1,de)}),Q(this,"afterShowResetZoom")}zoomOut(){Q(this,"selection",{resetSelection:!0}
178,()=>this.transform({reset:!0,trigger:"zoom"}))}pan(ne,te){let ae=this,le=typeof te=="object"?te:{enabled:te,type:"x"},de=le.type,ue=de&&ae[{x:"xAxis",xy:"axes",y:"yAxis"}[de]].filter(ge=>ge.options.panningEnabled&&!ge.options.isInternal),me=ae.options.chart;me!=null&&me.panning&&(me.panning=le),Q(this,"pan",{originalEvent:ne},()=>{ae.transform({axes:ue,event:ne,to:{x:ne.chartX-(ae.mouseDownX||0),y:ne.chartY-(ae.mouseDownY||0)},trigger:"pan"}),C(ae.container,{cursor:"move"})})}transform(ne){var Pe;let{axes:te=this.axes,event:ae,from:le={},reset:de,selection:ue,to:me={},trigger:ge}=ne,{inverted:be}=this,ve=!1,we,Ce;for(let Ne of((Pe=this.hoverPoints)==null||Pe.forEach(Ee=>Ee.setState()),te)){let{horiz:Ee,len:Te,minPointOffset:Fe=0,options:Le,reversed:Ue}=Ne,rt=Ee?"width":"height",tt=Ee?"x":"y",At=W(me[rt],Ne.len),xt=W(le[rt],Ne.len),Nt=10>Math.abs(At)?1:At/xt,zn=(le[tt]||0)+xt/2-Ne.pos,pn=zn-((me[tt]??Ne.pos)+At/2-Ne.pos)/Nt,yi=Ue&&!be||!Ue&&be?-1:1;if(!de&&(zn<0||zn>Ne.len))continue;let Bt=Ne.toValue(pn,!0)+(ue||Ne.isOrdinal?0:Fe*yi),cn=Ne.toValue(pn+Te/Nt,!0)-(ue||Ne.isOrdinal?0:Fe*yi||0),je=Ne.allExtremes;if(Bt>cn&&([Bt,cn]=[cn,Bt]),Nt===1&&!de&&Ne.coll==="yAxis"&&!je){for(let Ht of Ne.series){let ke=Ht.getExtremes(Ht.getProcessedData(!0).yData,!0);je??(je={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),B(ke.dataMin)&&B(ke.dataMax)&&(je.dataMin=Math.min(ke.dataMin,je.dataMin),je.dataMax=Math.max(ke.dataMax,je.dataMax))}Ne.allExtremes=je}let{dataMin:Ae,dataMax:De,min:Oe,max:Xe}=q(Ne.getExtremes(),je||{}),et=Ae??Le.min,ht=De??Le.max,Ke=cn-Bt,yt=Ne.categories?0:Math.min(Ke,ht-et),nt=et-yt*(D(Le.min)?0:Le.minPadding),st=ht+yt*(D(Le.max)?0:Le.maxPadding),$t=Ne.allowZoomOutside||Nt===1||ge!=="zoom"&&Nt>1,It=Math.min(Le.min??nt,nt,$t?Oe:nt),Mt=Math.max(Le.max??st,st,$t?Xe:st);(!Ne.isOrdinal||Ne.options.overscroll||Nt!==1||de)&&(Bt<It&&(Bt=It,Nt>=1&&(cn=Bt+Ke)),cn>Mt&&(cn=Mt,Nt>=1&&(Bt=cn-Ke)),(de||Ne.series.length&&(Bt!==Oe||cn!==Xe)&&Bt>=It&&cn<=Mt)&&(ue?ue[Ne.coll].push({axis:Ne,min:Bt,max:cn}):(Ne.isPanning=ge!=="zoom",Ne.isPanning&&(Ce=!0),Ne.setExtremes(de?void 0:Bt,de?void 0:cn,!1,!1,{move:pn,trigger:ge,scale:Nt}),!de&&(Bt>It||cn<Mt)&&ge!=="mousewheel"&&(we=!0)),ve=!0),ae&&(this[Ee?"mouseDownX":"mouseDownY"]=ae[Ee?"chartX":"chartY"]))}return ve&&(ue?Q(this,"selection",ue,()=>{delete ne.selection,ne.trigger="zoom",this.transform(ne)}):(!we||Ce||this.resetZoomButton?!we&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw(ge==="zoom"&&(this.options.chart.animation??this.pointCount<100)))),ve}}return q(he.prototype,{callbacks:[],collectionsWithInit:{xAxis:[he.prototype.addAxis,[!0]],yAxis:[he.prototype.addAxis,[!1]],series:[he.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroun
178dColor","plotBackgroundImage","plotBorderColor","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"]}),he}),i(n,"Extensions/ScrollablePlotArea.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Globals.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Utilities.js"]],function(r,s,a,l){let{stop:c}=r,{composed:d}=s,{addEvent:u,createElement:h,css:p,defined:y,merge:m,pushUnique:w}=l;function k(){let v=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!v&&(this.scrollablePlotArea=v=new x(this)),v==null||v.applyFixed()}function b(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}class x{static compose(E,N,S){w(d,this.compose)&&(u(E,"afterInit",b),u(N,"afterSetChartSize",_=>this.afterSetSize(_.target,_)),u(N,"render",k),u(S,"show",b))}static afterSetSize(E,N){let S,_,$,{minWidth:V,minHeight:I}=E.options.chart.scrollablePlotArea||{},{clipBox:A,plotBox:L,inverted:T,renderer:g}=E;if(!g.forExport&&(V?(E.scrollablePixelsX=S=Math.max(0,V-E.chartWidth),S&&(E.scrollablePlotBox=m(E.plotBox),L.width=E.plotWidth+=S,A[T?"height":"width"]+=S,$=!0)):I&&(E.scrollablePixelsY=_=Math.max(0,I-E.chartHeight),y(_)&&(E.scrollablePlotBox=m(E.plotBox),L.height=E.plotHeight+=_,A[T?"width":"height"]+=_,$=!1)),y($)&&!N.skipAxes))for(let f of E.axes)f.horiz===$&&(f.setAxisSize(),f.setAxisTranslation())}constructor(E){var j;let N,S=E.options.chart,_=a.getRendererType(),$=S.scrollablePlotArea||{},V=this.moveFixedElements.bind(this),I={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};E.scrollablePixelsX&&(I.overflowX="auto"),E.scrollablePixelsY&&(I.overflowY="auto"),this.chart=E;let A=this.parentDiv=h("div",{className:"highcharts-scrolling-parent"},{position:"relative"},E.renderTo),L=this.scrollingContainer=h("div",{className:"highcharts-scrolling"},I,A),T=this.innerContainer=h("div",{className:"highcharts-inner-container"},void 0,L),g=this.fixedDiv=h("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(((j=S.style)==null?void 0:j.zIndex)||0)+2,top:0}
vendor: 4,274 bytes, line 178
178,void 0,!0),f=this.fixedRenderer=new _(g,E.chartWidth,E.chartHeight,S.style);this.mask=f.path().attr({fill:S.backgroundColor||"#fff","fill-opacity":$.opacity??.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),L.parentNode.insertBefore(g,L),p(E.renderTo,{overflow:"visible"}),u(E,"afterShowResetZoom",V),u(E,"afterApplyDrilldown",V),u(E,"afterLayOutTitles",V),u(L,"scroll",()=>{let{pointer:P,hoverPoint:C}=E;P&&(delete P.chartPosition,C&&(N=C),P.runPointActions(void 0,N,!0))}),T.appendChild(E.container)}applyFixed(){var B;let{chart:E,fixedRenderer:N,isDirty:S,scrollingContainer:_}=this,{axisOffset:$,chartWidth:V,chartHeight:I,container:A,plotHeight:L,plotLeft:T,plotTop:g,plotWidth:f,scrollablePixelsX:j=0,scrollablePixelsY:P=0}=E,{scrollPositionX:C=0,scrollPositionY:D=0}=E.options.chart.scrollablePlotArea||{},M=V+j,z=I+P;N.setSize(V,I),(S??!0)&&(this.isDirty=!1,this.moveFixedElements()),c(E.container),p(A,{width:`${M}px`,height:`${z}px`}),E.renderer.boxWrapper.attr({width:M,height:z,viewBox:[0,0,M,z].join(" ")}),(B=E.chartBackground)==null||B.attr({width:M,height:z}),p(_,{width:`${V}px`,height:`${I}px`}),y(S)||(_.scrollLeft=j*C,_.scrollTop=P*D);let J=g-$[0]-1,F=T-$[3]-1,q=g+L+$[2]+1,U=T+f+$[1]+1,Q=T+f-j,ce=g+L-P,H=[["M",0,0]];j?H=[["M",0,J],["L",T-1,J],["L",T-1,q],["L",0,q],["Z"],["M",Q,J],["L",V,J],["L",V,q],["L",Q,q],["Z"]]:P&&(H=[["M",F,0],["L",F,g-1],["L",U,g-1],["L",U,0],["Z"],["M",F,ce],["L",F,I],["L",U,I],["L",U,ce],["Z"]]),E.redrawTrigger!=="adjustHeight"&&this.mask.attr({d:H})}moveFixedElements(){let E,{container:N,inverted:S,scrollablePixelsX:_,scrollablePixelsY:$}=this.chart,V=this.fixedRenderer,I=x.fixedSelectors;for(let A of(_&&!S?E=".highcharts-yaxis":_&&S||$&&!S?E=".highcharts-xaxis":$&&S&&(E=".highcharts-yaxis"),E&&I.push(`${E}:not(.highcharts-radial-axis)`,`${E}-labels:not(.highcharts-radial-axis-labels)`),I))[].forEach.call(N.querySelectorAll(A),L=>{(L.namespaceURI===V.SVG_NS?V.box:V.box.parentNode).appendChild(L),L.style.pointerEvents="auto"})}}return x.fixedSelectors=[".highcharts-breadcrumbs-group",".highcharts-contextbutton",".highcharts-caption",".highcharts-credits",".highcharts-drillup-button",".highcharts-legend",".highcharts-legend-checkbox",".highcharts-navigator-series",".highcharts-navigator-xaxis",".highcharts-navigator-yaxis",".highcharts-navigator",".highcharts-range-selector-group",".highcharts-reset-zoom",".highcharts-scrollbar",".highcharts-subtitle",".highcharts-title"],x}),i(n,"Core/Axis/Stacking/StackItem.js",[n["Core/Templating.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s,a){let{format:l}=r,{series:c}=s,{destroyObjectProperties:d,fireEvent:u,isNumber:h,pick:p}=a;return class{constructor(y,m,w,k,b){let x=y.chart.inverted,v=y.reversed;this.axis=y;let E=this.isNegative=!!w!=!!v;this.options=m=m||{},this.x=k,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=b,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:m.align||(x?E?"left":"right":"center"),verticalAlign:m.verticalAlign||(x?"middle":E?"bottom":"top"),y:m.y,x:m.x},this.textAlign=m.textAlign||(x?E?"right":"left":"center")}destroy(){d(this,this.axis)}render(y){let m=this.axis.chart,w=this.options,k=w.format,b=k?l(k,this,m):w.formatter.call(this);if(this.label)this.label.attr({text:b,visibility:"hidden"});else{this.label=m.renderer.label(b,null,void 0,w.shape,void 0,void 0,w.useHTML,!1,"stack-labels");let x={r:w.borderRadius||0,text:b,padding:p(w.padding,5),visibility:"hidden"};m.styledMode||(x.fill=w.backgroundColor,x.stroke=w.borderColor,x["stroke-width"]=w.borderWidth,this.label.css(w.style||{})),this.label.attr(x),this.label.added||this.label.add(y)}this.label.labelrank=m.plotSizeY,u(this,"afterRender")}setOffset(y,m,w,k,b,x){let{alignOptions:v,axis:E,label:N,options:S,textAlign:_}=this,$=E.chart,V=this.getStackBox({xOffset:y,width:m,boxBottom:w,boxTop:k,defaultX:b,xAxis:x}),{verticalAlign:I}=v;if(N&&V){let A=N.getBBox(void 0,0),L=N.padding,T=p(S.overflow,"justify")==="justify",g;v.x=S.x||0,v.y=S.y||0;let{x:f,y:j}=this.adjustStackPosition({labelBox:A,verticalAlign:I,textAlign:_});V.x-=f,V.y-=j,N.align(v,!1,V),(g=$.isInsidePlot(N.alignAttr.x+v.x+f,N.alignAttr.y+v.y+j))||(T=!1),T&&c.prototype.justifyDataLabel.call(E,N,v,N.al
178ignAttr,A,V),N.attr({x:N.alignAttr.x,y:N.alignAttr.y,rotation:S.rotation,rotationOriginX:A.width*{left:0,center:.5,right:1}[S.textAlign||"center"],rotationOriginY:A.height/2}),p(!T&&S.crop,!0)&&(g=h(N.x)&&h(N.y)&&$.isInsidePlot(N.x-L+(N.width||0),N.y)&&$.isInsidePlot(N.x+L,N.y)),N[g?"show":"hide"]()}u(this,"afterSetOffset",{xOffset:y,width:m})}adjustStackPosition({labelBox:y,verticalAlign:m,textAlign:w}){let k={bottom:0,middle:1,top:2,right:1,center:0,left:-1},b=k[m],x=k[w];return{x:y.width/2+y.width/2*x,y:y.height/2*b}}getStackBox(y){let m=this.axis,w=m.chart,{boxTop:k,defaultX:b,xOffset:x,width:v,boxBottom:E}=y,N=m.stacking.usePercentage?100:p(k,this.total,0),S=m.toPixels(N),_=y.xAxis||w.xAxis[0],$=p(b,_.translate(this.x))+x,V=Math.abs(S-m.toPixels(E||h(m.min)&&m.logarithmic&&m.logarithmic.lin2log(m.min)||0)),I=w.inverted,A=this.isNegative;return I?{x:(A?S:S-V)-w.plotLeft,y:_.height-$-v+_.top-w.plotTop,width:V,height:v}:{x:$+_.transB-w.plotLeft,y:(A?S-V:S)-w.plotTop,width:v,height:V}}}}),i(n,"Core/Axis/Stacking/StackingAxis.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/Axis.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Axis/Stacking/StackItem.js"],n["Core/Utilities.js"]],function(r,s,a,l,c){var d;let{getDeferredAnimation:u}=r,{series:{prototype:h}}=a,{addEvent:p,correctFloat:y,defined:m,destroyObjectProperties:w,fireEvent:k,isArray:b,isNumber:x,objectEach:v,pick:E}=c;function N(){let g=this.inverted;this.axes.forEach(f=>{f.stacking&&f.stacking.stacks&&f.hasVisibleSeries&&(f.stacking.oldStacks=f.stacking.stacks)}),this.series.forEach(f=>{let j=f.xAxis&&f.xAxis.options||{};f.options.stacking&&f.reserveSpace()&&(f.stackKey=[f.type,E(f.options.stack,""),g?j.top:j.left,g?j.height:j.width].join(","))})}function S(){var f;let g=this.stacking;if(g){let j=g.stacks;v(j,(P,C)=>{w(P),delete j[C]}),(f=g.stackTotalGroup)==null||f.destroy()}}function _(){this.stacking||(this.stacking=new T(this))}function $(g,f,j,P){return!m(g)||g.x!==f||P&&g.stackKey!==P?g={x:f,index:0,key:P,stackKey:P}:g.index++,g.key=[j,f,g.index].join(","),g}function V(){let g,f=this,j=f.yAxis,P=f.stackKey||"",C=j.stacking.stacks,D=f.processedXData,M=f.options.stacking,z=f[M+"Stacker"];z&&[P,"-"+P].forEach(J=>{var ce;let F=D.length,q,U,Q;for(;F--;)q=D[F],g=f.getStackIndicator(g,q,f.index,J),U=(ce=C[J])==null?void 0:ce[q],(Q=U==null?void 0:U.points[g.key||""])&&z.call(f,Q,U,F)})}function I(g,f,j){let P=f.total?100/f.total:0;g[0]=y(g[0]*P),g[1]=y(g[1]*P),this.stackedYData[j]=g[1]}function A(g){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&!this.options.stacking&&this.chart.series.length>1?h.setStackedPoints.call(this,g,"group"):g.stacking.resetStacks())}function L(g,f){var oe,he;let j,P,C,D,M,z,J,F,q,U=f||this.options.stacking;if(!U||!this.reserveSpace()||({group:"xAxis"}[U]||"yAxis")!==g.coll)return;let Q=this.processedXData,ce=this.processedYData,H=[],B=ce.length,K=this.options,ie=K.threshold||0,R=K.startFromThreshold?ie:0,G=K.stack,W=f?`${this.type},${U}`:this.stackKey||"",Y="-"+W,X=this.negStacks,re=g.stacking,ee=re.stacks,se=re.oldStacks;for(re.stacksTouched+=1,J=0;J<B;J++){F=Q[J],q=ce[J],z=(j=this.getStackIndicator(j,F,this.index)).key||"",ee[M=(P=X&&q<(R?0:ie))?Y:W]||(ee[M]={}),ee[M][F]||((oe=se[M])!=null&&oe[F]?(ee[M][F]=se[M][F],ee[M][F].total=null):ee[M][F]=new l(g,g.options.stackLabels,!!P,F,G)),C=ee[M][F],q!==null?(C.points[z]=C.points[this.index]=[E(C.cumulative,R)],m(C.cumulative)||(C.base=z),C.touched=re.stacksTouched,j.index>0&&this.singleStacks===!1&&(C.points[z][0]=C.points[this.index+","+F+",0"][0])):(delete C.points[z],delete C.points[this.index]);let pe=C.total||0;U==="percent"?(D=P?W:Y,pe=X&&((he=ee[D])!=null&&he[F])?(D=ee[D][F]).total=Math.max(D.total||0,pe)+Math.abs(q)||0:y(pe+(Math.abs(q)||0))):U==="group"?(b(q)&&(q=q[0]),q!==null&&pe++):pe=y(pe+(q||0)),U==="group"?C.cumulative=(pe||1)-1:C.cumulative=y(E(C.cumulative,R)+(q||0)),C.total=pe,q!==null&&(C.points[z].push(C.cumulative),H[J]=C.cumulative,C.hasValidPoints=!0)}U==="percent"&&(re.usePercentage=!0),U!=="group"&&(this.stackedYData=H),re.oldStacks={}}class T{constructor(f){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=f}buildStacks(){let f,j,P=this.axis,C=P.series,D=P.coll==="xAxis",M=P.options.reversedStacks,z=C.length;for(this.resetStacks(),this.usePercentage=!1,j=z;j--;)f=C[M?j:z-j-1],D&&f.setGroupedPoints(P),f.setStackedPoints(P);if(!D)for(j=0;j<z;j++)C[j].modifyStacks();k(P,"afterBuildStacks")}cleanStacks(){this.oldStacks&&(this.stacks=this.oldStacks,v(this.stacks,f=>{v(f,j=>{j.cumulative=j.total})}))}resetStacks(){v(this.stacks,f=>{v(f,(j,P)=>{x(j.touched)&&j.touched<this.stacksTouched?(j.destroy(),delete f[P]):(j.total=null,j.cumulative=null)})})}renderStackTotals(){var z;let f=this.axis,j=f.chart,P=j.renderer,C=this.stacks,D=u(j,((z=f.options.stackLabels)==null?void 0:z.animation)||!1),M=this.stackTotalGroup=this.stackTotalGroup||P.g("stack-labels").attr({zIndex:6,opacity:0}
vendor: 4,604 bytes, line 178
178).add();M.translate(j.plotLeft,j.plotTop),v(C,J=>{v(J,F=>{F.render(M)})}),M.animate({opacity:1},D)}}return(d||(d={})).compose=function(g,f,j){let P=f.prototype,C=j.prototype;P.getStacks||(p(g,"init",_),p(g,"destroy",S),P.getStacks=N,C.getStackIndicator=$,C.modifyStacks=V,C.percentStacker=I,C.setGroupedPoints=A,C.setStackedPoints=L)},d}),i(n,"Series/Line/LineSeries.js",[n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s,a){let{defined:l,merge:c,isObject:d}=a;class u extends r{drawGraph(){let p=this.options,y=(this.gappedPath||this.getGraphPath).call(this),m=this.chart.styledMode;[this,...this.zones].forEach((w,k)=>{let b,x=w.graph,v=x?"animate":"attr",E=w.dashStyle||p.dashStyle;x?(x.endX=this.preventGraphAnimation?null:y.xMap,x.animate({d:y})):y.length&&(w.graph=x=this.chart.renderer.path(y).addClass("highcharts-graph"+(k?` highcharts-zone-graph-${k-1} `:" ")+(k&&w.className||"")).attr({zIndex:1}).add(this.group)),x&&!m&&(b={stroke:!k&&p.lineColor||w.color||this.color||"#cccccc","stroke-width":p.lineWidth||0,fill:this.fillGraph&&this.color||"none"},E?b.dashstyle=E:p.linecap!=="square"&&(b["stroke-linecap"]=b["stroke-linejoin"]="round"),x[v](b).shadow(k<2&&p.shadow&&c({filterUnits:"userSpaceOnUse"},d(p.shadow)?p.shadow:{}))),x&&(x.startX=y.xMap,x.isArea=y.isArea)})}getGraphPath(p,y,m){let w=this,k=w.options,b=[],x=[],v,E=k.step,N=(p=p||w.points).reversed;return N&&p.reverse(),(E={right:1,center:2}[E]||E&&3)&&N&&(E=4-E),(p=this.getValidPoints(p,!1,!(k.connectNulls&&!y&&!m))).forEach(function(S,_){let $,V=S.plotX,I=S.plotY,A=p[_-1],L=S.isNull||typeof I!="number";(S.leftCliff||A&&A.rightCliff)&&!m&&(v=!0),L&&!l(y)&&_>0?v=!k.connectNulls:L&&!y?v=!0:(_===0||v?$=[["M",S.plotX,S.plotY]]:w.getPointSpline?$=[w.getPointSpline(p,S,_)]:E?($=E===1?[["L",A.plotX,I]]:E===2?[["L",(A.plotX+V)/2,A.plotY],["L",(A.plotX+V)/2,I]]:[["L",V,A.plotY]]).push(["L",V,I]):$=[["L",V,I]],x.push(S.x),E&&(x.push(S.x),E===2&&x.push(S.x)),b.push.apply(b,$),v=!1)}),b.xMap=x,w.graphPath=b,b}}return u.defaultOptions=c(r.defaultOptions,{legendSymbol:"lineMarker"}),s.registerSeriesType("line",u),u}),i(n,"Series/Area/AreaSeriesDefaults.js",[],function(){return{threshold:0,legendSymbol:"areaMarker"}}),i(n,"Series/Area/AreaSeries.js",[n["Series/Area/AreaSeriesDefaults.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s,a){let{seriesTypes:{line:l}}=s,{extend:c,merge:d,objectEach:u,pick:h}=a;class p extends l{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:m,options:w}=this;[this,...this.zones].forEach((k,b)=>{let x={},v=k.fillColor||w.fillColor,E=k.area,N=E?"animate":"attr";E?(E.endX=this.preventGraphAnimation?null:m.xMap,E.animate({d:m})):(x.zIndex=0,(E=k.area=this.chart.renderer.path(m).addClass("highcharts-area"+(b?` highcharts-zone-area-${b-1} `:" ")+(b&&k.className||"")).add(this.group)).isArea=!0),this.chart.styledMode||(x.fill=v||k.color||this.color,x["fill-opacity"]=v?1:w.fillOpacity??.75,E.css({pointerEvents:this.stickyTracking?"none":"auto"})),E[N](x),E.startX=m.xMap,E.shiftUnit=w.step?2:1})}getGraphPath(m){let w,k,b,x=l.prototype.getGraphPath,v=this.options,E=v.stacking,N=this.yAxis,S=[],_=[],$=this.index,V=N.stacking.stacks[this.stackKey],I=v.threshold,A=Math.round(N.getThreshold(v.threshold)),L=h(v.connectNulls,E==="percent"),T=function(D,M,z){let J=m[D],F=E&&V[J.x].points[$],q=J[z+"Null"]||0,U=J[z+"Cliff"]||0,Q,ce,H=!0;U||q?(Q=(q?F[0]:F[1])+U,ce=F[0]+U,H=!!q):!E&&m[M]&&m[M].isNull&&(Q=ce=I),Q!==void 0&&(_.push({plotX:w,plotY:Q===null?A:N.getThreshold(Q),isNull:H,isCliff:!0}),S.push({plotX:w,plotY:ce===null?A:N.getThreshold(ce),doCurve:!1}))};m=m||this.points,E&&(m=this.getStackPoints(m));for(let D=0,M=m.length;D<M;++D)E||(m[D].leftCliff=m[D].rightCliff=m[D].leftNull=m[D].rightNull=void 0),k=m[D].isNull,w=h(m[D].rectPlotX,m[D].plotX),b=E?h(m[D].yBottom,A):A,k&&!L||(L||T(D,D-1,"left"),k&&!E&&L||(_.push(m[D]),S.push({x:D,plotX:w,plotY:b})),L||T(D,D+1,"right"));let g=x.call(this,_,!0,!0);S.reversed=!0;let f=x.call(this,S,!0,!0),j=f[0];j&&j[0]==="M"&&(f[0]=["L",j[1],j[2]]);let P=g.concat(f);P.length&&P.push(["Z"]);let C=x.call(this,_,!1,L);return this.chart.series.length>1&&E&&_.some(D=>D.isCliff)&&(P.hasStackedCliffs=C.hasStackedCliffs=!0),P.xMap=g.xMap,this.areaPath=P,C}getStackPoints(m){let w=this,k=[],b=[],x=this.xAxis,v=this.yAxis,E=v.stacking.stacks[this.stackKey],N={},S=v.series,_=S.length,$=v.options.reversedStacks?1:-1,V=S.indexOf(w);if(m=m||this.points,this.options.stacking){for(let A=0;A<m.length;A++)m[A].leftNull=m[A].rightNull=void 0,N[m[A].x]=m[A];
178u(E,function(A,L){A.total!==null&&b.push(L)}),b.sort(function(A,L){return A-L});let I=S.map(A=>A.visible);b.forEach(function(A,L){let T=0,g,f;if(N[A]&&!N[A].isNull)k.push(N[A]),[-1,1].forEach(function(j){let P=j===1?"rightNull":"leftNull",C=E[b[L+j]],D=0;if(C){let M=V;for(;M>=0&&M<_;){let z=S[M].index;!(g=C.points[z])&&(z===w.index?N[A][P]=!0:I[M]&&(f=E[A].points[z])&&(D-=f[1]-f[0])),M+=$}}N[A][j===1?"rightCliff":"leftCliff"]=D});else{let j=V;for(;j>=0&&j<_;){let P=S[j].index;if(g=E[A].points[P]){T=g[1];break}j+=$}T=h(T,0),T=v.translate(T,0,1,0,1),k.push({isNull:!0,plotX:x.translate(A,0,0,0,1),x:A,plotY:T,yBottom:T})}})}return k}}return p.defaultOptions=d(l.defaultOptions,r),c(p.prototype,{singleStacks:!1}),s.registerSeriesType("area",p),p}),i(n,"Series/Spline/SplineSeries.js",[n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s){let{line:a}=r.seriesTypes,{merge:l,pick:c}=s;class d extends a{getPointSpline(h,p,y){let m,w,k,b,x=p.plotX||0,v=p.plotY||0,E=h[y-1],N=h[y+1];function S($){return $&&!$.isNull&&$.doCurve!==!1&&!p.isCliff}if(S(E)&&S(N)){let $=E.plotX||0,V=E.plotY||0,I=N.plotX||0,A=N.plotY||0,L=0;m=(1.5*x+$)/2.5,w=(1.5*v+V)/2.5,k=(1.5*x+I)/2.5,b=(1.5*v+A)/2.5,k!==m&&(L=(b-w)*(k-x)/(k-m)+v-b),w+=L,b+=L,w>V&&w>v?(w=Math.max(V,v),b=2*v-w):w<V&&w<v&&(w=Math.min(V,v),b=2*v-w),b>A&&b>v?(b=Math.max(A,v),w=2*v-b):b<A&&b<v&&(b=Math.min(A,v),w=2*v-b),p.rightContX=k,p.rightContY=b,p.controlPoints={low:[m,w],high:[k,b]}}let _=["C",c(E.rightContX,E.plotX,0),c(E.rightContY,E.plotY,0),c(m,x,0),c(w,v,0),x,v];return E.rightContX=E.rightContY=void 0,_}}return d.defaultOptions=l(a.defaultOptions),r.registerSeriesType("spline",d),d}),i(n,"Series/AreaSpline/AreaSplineSeries.js",[n["Series/Spline/SplineSeries.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s,a){let{area:l,area:{prototype:c}}=s.seriesTypes,{extend:d,merge:u}=a;class h extends r{}return h.defaultOptions=u(r.defaultOptions,l.defaultOptions),d(h.prototype,{getGraphPath:c.getGraphPath,getStackPoints:c.getStackPoints,drawGraph:c.drawGraph}),s.registerSeriesType("areaspline",h),h}),i(n,"Series/Column/ColumnSeriesDefaults.js",[],function(){return{borderRadius:3,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}}),i(n,"Series/Column/ColumnSeries.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Color/Color.js"],n["Series/Column/ColumnSeriesDefaults.js"],n["Core/Globals.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s,a,l,c,d,u){let{animObject:h}=r,{parse:p}=s,{noop:y}=l,{clamp:m,crisp:w,defined:k,extend:b,fireEvent:x,isArray:v,isNumber:E,merge:N,pick:S,objectEach:_}=u;class $ extends c{animate(I){let A,L,T=this,g=this.yAxis,f=g.pos,j=g.reversed,P=T.options,{clipOffset:C,inverted:D}=this.chart,M={},z=D?"translateX":"translateY";I&&C?(M.scaleY=.001,L=m(g.toPixels(P.threshold),f,f+g.len),D?(L+=j?-Math.floor(C[0]):Math.ceil(C[2]),M.translateX=L-g.len):(L+=j?Math.ceil(C[0]):-Math.floor(C[2]),M.translateY=L),T.clipBox&&T.setClip(),T.group.attr(M)):(A=Number(T.group.attr(z)),T.group.animate({scaleY:1},b(h(T.options.animation),{step:function(J,F){T.group&&(M[z]=A+F.pos*(f-A),T.group.attr(M))}})))}init(I,A){super.init.apply(this,arguments);let L=this;(I=L.chart).hasRendered&&I.series.forEach(function(T){T.type===L.type&&(T.isDirty=!0)})}getColumnMetrics(){var q,U;let I=this,A=I.options,L=I.xAxis,T=I.yAxis,g=L.options.reversedStacks,f=L.reversed&&!g||!L.reversed&&g,j={},P,C=0;A.grouping===!1?C=1:I.chart.series.forEach(function(Q){let ce,H=Q.yAxis,B=Q.options;Q.type===I.type&&Q.reserveSpace()&&T.len===H.len&&T.pos===H.pos&&(B.stacking&&B.stacking!=="group"?(j[P=Q.stackKey]===void 0&&(j[P]=C++),ce=j[P]):B.grouping!==!1&&(ce=C++),Q.columnIndex=ce)});let D=Math.min(Math.abs(L.transA)*(!((q=L.brokenAxis)!=null&&q.hasBreaks)&&((U=L.ordinal)==null?void 0:U.slope)||A.pointRange||L.closestPointRange||L.tickInterval||1),L.len),M=D*A.groupPadding,z=(D-2*M)/(C||1),J=Math.min(A.maxPointWidth||L.len,S(A.pointWidth,z*(1-2*A.pointPadding))),F=(I.columnIndex||0)+(f?1:0);return I.columnMetrics={width:J,offset:(z-J)/2+(M+F*z-D/2)*(f?-1:1),paddedWidth:z,columnCount:C},I.columnMetrics}crispCol(I,A,L,T){let g=this.borderWidth,f=this.chart.inverted;
vendor: 4,219 bytes, line 178
178return T=w(A+T,g,f)-(A=w(A,g,f)),this.options.crisp&&(L=w(I+L,g)-(I=w(I,g))),{x:I,y:A,width:L,height:T}}adjustForMissingColumns(I,A,L,T){var g;if(!L.isNull&&T.columnCount>1){let f=this.xAxis.series.filter(D=>D.visible).map(D=>D.index),j=0,P=0;_((g=this.xAxis.stacking)==null?void 0:g.stacks,D=>{if(typeof L.x=="number"){let M=D[L.x.toString()];if(M&&v(M.points[this.index])){let z=Object.keys(M.points).filter(J=>!J.match(",")&&M.points[J]&&M.points[J].length>1).map(parseFloat).filter(J=>f.indexOf(J)!==-1).sort((J,F)=>F-J);j=z.indexOf(this.index),P=z.length}}}),j=this.xAxis.reversed?P-1-j:j;let C=(P-1)*T.paddedWidth+A;I=(L.plotX||0)+C/2-A-j*T.paddedWidth}return I}translate(){let I=this,A=I.chart,L=I.options,T=I.dense=I.closestPointRange*I.xAxis.transA<2,g=I.borderWidth=S(L.borderWidth,T?0:1),f=I.xAxis,j=I.yAxis,P=L.threshold,C=S(L.minPointLength,5),D=I.getColumnMetrics(),M=D.width,z=I.pointXOffset=D.offset,J=I.dataMin,F=I.dataMax,q=I.translatedThreshold=j.getThreshold(P),U=I.barW=Math.max(M,1+2*g);L.pointPadding&&(U=Math.ceil(U)),c.prototype.translate.apply(I),I.points.forEach(function(Q){let ce=S(Q.yBottom,q),H=999+Math.abs(ce),B=Q.plotX||0,K=m(Q.plotY,-H,j.len+H),ie,R=Math.min(K,ce),G=Math.max(K,ce)-R,W=M,Y=B+z,X=U;C&&Math.abs(G)<C&&(G=C,ie=!j.reversed&&!Q.negative||j.reversed&&Q.negative,E(P)&&E(F)&&Q.y===P&&F<=P&&(j.min||0)<P&&(J!==F||(j.max||0)<=P)&&(ie=!ie,Q.negative=!Q.negative),R=Math.abs(R-q)>C?ce-C:q-(ie?C:0)),k(Q.options.pointWidth)&&(Y-=Math.round(((W=X=Math.ceil(Q.options.pointWidth))-M)/2)),L.centerInCategory&&!L.stacking&&(Y=I.adjustForMissingColumns(Y,W,Q,D)),Q.barX=Y,Q.pointWidth=W,Q.tooltipPos=A.inverted?[m(j.len+j.pos-A.plotLeft-K,j.pos-A.plotLeft,j.len+j.pos-A.plotLeft),f.len+f.pos-A.plotTop-Y-X/2,G]:[f.left-A.plotLeft+Y+X/2,m(K+j.pos-A.plotTop,j.pos-A.plotTop,j.len+j.pos-A.plotTop),G],Q.shapeType=I.pointClass.prototype.shapeType||"roundedRect",Q.shapeArgs=I.crispCol(Y,Q.isNull?q:R,X,Q.isNull?0:G)}),x(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(I,A){let L=this.options,T=this.pointAttrToOptions||{},g=T.stroke||"borderColor",f=T["stroke-width"]||"borderWidth",j,P,C,D=I&&I.color||this.color,M=I&&I[g]||L[g]||D,z=I&&I.options.dashStyle||L.dashStyle,J=I&&I[f]||L[f]||this[f]||0,F=S(I&&I.opacity,L.opacity,1);I&&this.zones.length&&(P=I.getZone(),D=I.options.color||P&&(P.color||I.nonZonedColor)||this.color,P&&(M=P.borderColor||M,z=P.dashStyle||z,J=P.borderWidth||J)),A&&I&&(C=(j=N(L.states[A],I.options.states&&I.options.states[A]||{})).brightness,D=j.color||C!==void 0&&p(D).brighten(j.brightness).get()||D,M=j[g]||M,J=j[f]||J,z=j.dashStyle||z,F=S(j.opacity,F));let q={fill:D,stroke:M,"stroke-width":J,opacity:F};return z&&(q.dashstyle=z),q}drawPoints(I=this.points){let A,L=this,T=this.chart,g=L.options,f=T.renderer,j=g.animationLimit||250;I.forEach(function(P){let C=P.plotY,D=P.graphic,M=!!D,z=D&&T.pointCount<j?"animate":"attr";E(C)&&P.y!==null?(A=P.shapeArgs,D&&P.hasNewShapeType()&&(D=D.destroy()),L.enabledDataSorting&&(P.startXPos=L.xAxis.reversed?-(A&&A.width||0):L.xAxis.width),!D&&(P.graphic=D=f[P.shapeType](A).add(P.group||L.group),D&&L.enabledDataSorting&&T.hasRendered&&T.pointCount<j&&(D.attr({x:P.startXPos}),M=!0,z="animate")),D&&M&&D[z](N(A)),T.styledMode||D[z](L.pointAttribs(P,P.selected&&"select")).shadow(P.allowShadow!==!1&&g.shadow),D&&(D.addClass(P.getClassName(),!0),D.attr({visibility:P.visible?"inherit":"hidden"}))):D&&(P.graphic=D.destroy())})}drawTracker(I=this.points){let A,L=this,T=L.chart,g=T.pointer,f=function(j){let P=g==null?void 0:g.getPointFromEvent(j);g&&P&&L.options.enableMouseTracking&&(g.isDirectTouch=!0,P.onMouseOver(j))};I.forEach(function(j){A=v(j.dataLabels)?j.dataLabels:j.dataLabel?[j.dataLabel]:[],j.graphic&&(j.graphic.element.point=j),A.forEach(function(P){(P.div||P.element).point=j})}),L._hasTracking||(L.trackerGroups.forEach(function(j){L[j]&&(L[j].addClass("highcharts-tracker").on("mouseover",f).on("mouseout",function(P){g==null||g.onTrackerMouseOut(P)}).on("touchstart",f),!T.styledMode&&L.options.cursor&&L[j].css({cursor:L.options.cursor}))}),L._hasTracking=!0),x(this,"afterDrawTracker")}remove(){let I=this,A=I.chart;
178A.hasRendered&&A.series.forEach(function(L){L.type===I.type&&(L.isDirty=!0)}),c.prototype.remove.apply(I,arguments)}}return $.defaultOptions=N(c.defaultOptions,a),b($.prototype,{directTouch:!0,getSymbol:y,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),d.registerSeriesType("column",$),$}),i(n,"Core/Series/DataLabel.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Templating.js"],n["Core/Utilities.js"]],function(r,s,a){var l;let{getDeferredAnimation:c}=r,{format:d}=s,{defined:u,extend:h,fireEvent:p,isArray:y,isString:m,merge:w,objectEach:k,pick:b,pInt:x,splat:v}=a;return function(E){function N(){return L(this).some(g=>g==null?void 0:g.enabled)}function S(g,f,j,P,C){var K;let{chart:D,enabledDataSorting:M}=this,z=this.isCartesian&&D.inverted,J=g.plotX,F=g.plotY,q=j.rotation||0,U=u(J)&&u(F)&&D.isInsidePlot(J,Math.round(F),{inverted:z,paneCoordinates:!0,series:this}),Q=q===0&&b(j.overflow,M?"none":"justify")==="justify",ce=this.visible&&g.visible!==!1&&u(J)&&(g.series.forceDL||M&&!Q||U||b(j.inside,!!this.options.stacking)&&P&&D.isInsidePlot(J,z?P.x+1:P.y+P.height-1,{inverted:z,paneCoordinates:!0,series:this})),H=g.pos();if(ce&&H){var B;let ie=f.getBBox(),R=f.getBBox(void 0,0),G={right:1,center:.5}[j.align||0]||0,W={bottom:1,middle:.5}[j.verticalAlign||0]||0;if(P=h({x:H[0],y:Math.round(H[1]),width:0,height:0},P||{}),j.alignTo==="plotEdges"&&this.isCartesian&&(P[z?"x":"y"]=0,P[z?"width":"height"]=((K=this.yAxis)==null?void 0:K.len)||0),h(j,{width:ie.width,height:ie.height}),B=P,M&&this.xAxis&&!Q&&this.setDataLabelStartPos(g,f,C,U,B),f.align(w(j,{width:R.width,height:R.height}),!1,P,!1),f.alignAttr.x+=G*(R.width-ie.width),f.alignAttr.y+=W*(R.height-ie.height),f[f.placed?"animate":"attr"]({x:f.alignAttr.x+(ie.width-R.width)/2,y:f.alignAttr.y+(ie.height-R.height)/2,rotationOriginX:(f.width||0)/2,rotationOriginY:(f.height||0)/2}),Q&&P.height>=0)this.justifyDataLabel(f,j,f.alignAttr,ie,P,C);else if(b(j.crop,!0)){let{x:Y,y:X}=f.alignAttr;ce=D.isInsidePlot(Y,X,{paneCoordinates:!0,series:this})&&D.isInsidePlot(Y+ie.width-1,X+ie.height-1,{paneCoordinates:!0,series:this})}j.shape&&!q&&f[C?"attr":"animate"]({anchorX:H[0],anchorY:H[1]})}C&&M&&(f.placed=!1),ce||M&&!Q?(f.show(),f.placed=!0):(f.hide(),f.placed=!1)}function _(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function $(g){let f=this.hasRendered||0,j=this.initDataLabelsGroup().attr({opacity:+f});return!f&&j&&(this.visible&&j.show(),this.options.animation?j.animate({opacity:1},g):j.attr({opacity:1})),j}function V(g){var ce;let f;g=g||this.points;let j=this,P=j.chart,C=j.options,D=P.renderer,{backgroundColor:M,plotBackgroun
178dColor:z}=P.options.chart,J=D.getContrast(m(z)&&z||m(M)&&M||"#000000"),F=L(j),{animation:q,defer:U}=F[0],Q=U?c(P,q,j):{defer:0,duration:0};p(this,"drawDataLabels"),(ce=j.hasDataLabels)!=null&&ce.call(j)&&(f=this.initDataLabels(Q),g.forEach(H=>{var ie,R;let B=H.dataLabels||[];v(A(F,H.dlOptions||((ie=H.options)==null?void 0:ie.dataLabels))).forEach((G,W)=>{let Y=G.enabled&&(H.visible||H.dataLabelOnHidden)&&(!H.isNull||H.dataLabelOnNull)&&function(ue,me){let ge=me.filter;if(ge){let be=ge.operator,ve=ue[ge.property],we=ge.value;return be===">"&&ve>we||be==="<"&&ve<we||be===">="&&ve>=we||be==="<="&&ve<=we||be==="=="&&ve==we||be==="==="&&ve===we||be==="!="&&ve!=we||be==="!=="&&ve!==we}return!0}(H,G),{backgroundColor:X,borderColor:re,distance:ee,style:se={}}=G,oe,he,pe,ne,te={},ae=B[W],le=!ae,de;Y&&(he=b(G[H.formatPrefix+"Format"],G.format),oe=H.getLabelConfig(),pe=u(he)?d(he,oe,P):(G[H.formatPrefix+"Formatter"]||G.formatter).call(oe,G),ne=G.rotation,!P.styledMode&&(se.color=b(G.color,se.color,m(j.color)?j.color:void 0,"#000000"),se.color==="contrast"?(X!=="none"&&(de=X),H.contrastColor=D.getContrast(de!=="auto"&&de||H.color||j.color),se.color=de||!u(ee)&&G.inside||0>x(ee||0)||C.stacking?H.contrastColor:J):delete H.contrastColor,C.cursor&&(se.cursor=C.cursor)),te={r:G.borderRadius||0,rotation:ne,padding:G.padding,zIndex:1},P.styledMode||(te.fill=X==="auto"?H.color:X,te.stroke=re==="auto"?H.color:re,te["stroke-width"]=G.borderWidth),k(te,(ue,me)=>{ue===void 0&&delete te[me]})),!ae||Y&&u(pe)&&!!ae.div==!!G.useHTML&&(ae.rotation&&G.rotation||ae.rotation===G.rotation)||(ae=void 0,le=!0),Y&&u(pe)&&(ae?te.text=pe:(ae=D.label(pe,0,0,G.shape,void 0,void 0,G.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+H.colorIndex+" "+(G.className||"")+(G.useHTML?" highcharts-tracker":"")),ae&&(ae.options=G,ae.attr(te),P.styledMode?se.width&&ae.css({width:se.width,textOverflow:se.textOverflow}):ae.css(se).shadow(G.shadow),p(ae,"beforeAddingDataLabel",{labelOptions:G,point:H}),ae.added||ae.add(f),j.alignDataLabel(H,ae,G,void 0,le),ae.isActive=!0,B[W]&&B[W]!==ae&&B[W].destroy(),B[W]=ae))});let K=B.length;for(;K--;)B[K]&&B[K].isActive?B[K].isActive=!1:((R=B[K])==null||R.destroy(),B.splice(K,1));H.dataLabel=B[0],H.dataLabels=B})),p(this,"afterDrawDataLabels")}function I(g,f,j,P,C,D){let M=this.chart,z=f.align,J=f.verticalAlign,F=g.box?0:g.padding||0,q=M.inverted?this.yAxis:this.xAxis,U=q?q.left-M.plotLeft:0,Q=M.inverted?this.xAxis:this.yAxis,ce=Q?Q.top-M.plotTop:0,{x:H=0,y:B=0}=f,K,ie;return(K=(j.x||0)+F+U)<0&&(z==="right"&&H>=0?(f.align="left",f.inside=!0):H-=K,ie=!0),(K=(j.x||0)+P.width-F+U)>M.plotWidth&&(z==="left"&&H<=0?(f.align="right",f.inside=!0):H+=M.plotWidth-K,ie=!0),(K=j.y+F+ce)<0&&(J==="bottom"&&B>=0?(f.verticalAlign="top",f.inside=!0):B-=K,ie=!0),(K=(j.y||0)+P.height-F+ce)>M.plotHeight&&(J==="top"&&B<=0?(f.verticalAlign="bottom",f.inside=!0):B+=M.plotHeight-K,ie=!0),ie&&(f.x=H,f.y=B,g.placed=!D,g.align(f,void 0,C)),ie}function A(g,f){let j=[],P;if(y(g)&&!y(f))j=g.map(function(C){return w(C,f)});else if(y(f)&&!y(g))j=f.map(function(C){return w(g,C)});else if(y(g)||y(f)){if(y(g)&&y(f))for(P=Math.max(g.length,f.length);P--;)j[P]=w(g[P],f[P])}else j=w(g,f);return j}function L(g){var j,P;let f=g.chart.options.plotOptions;return v(A(A((j=f==null?void 0:f.series)==null?void 0:j.dataLabels,(P=f==null?void 0:f[g.type])==null?void 0:P.dataLabels),g.options.dataLabels))}function T(g,f,j,P,C){let D=this.chart,M=D.inverted,z=this.xAxis,J=z.reversed,F=((M?f.height:f.width)||0)/2,q=g.pointWidth,U=q?q/2:0;f.startXPos=M?C.x:J?-F-U:z.width-F+U,f.startYPos=M?J?this.yAxis.height-F+U:-F-U:C.y,P?f.visibility==="hidden"&&(f.show(),f.attr({opacity:0}).animate({opacity:1})):f.attr({opacity:1}).animate({opacity:0}
178,void 0,f.hide),D.hasRendered&&(j&&f.attr({x:f.startXPos,y:f.startYPos}),f.placed=!0)}E.compose=function(g){let f=g.prototype;f.initDataLabels||(f.initDataLabels=$,f.initDataLabelsGroup=_,f.alignDataLabel=S,f.drawDataLabels=V,f.justifyDataLabel=I,f.setDataLabelStartPos=T,f.hasDataLabels=N)}}(l||(l={})),l}),i(n,"Series/Column/ColumnDataLabel.js",[n["Core/Series/DataLabel.js"],n["Core/Globals.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s,a,l){var c;let{composed:d}=s,{series:u}=a,{merge:h,pick:p,pushUnique:y}=l;return function(m){function w(k,b,x,v,E){let N=this.chart.inverted,S=k.series,_=(S.xAxis?S.xAxis.len:this.chart.plotSizeX)||0,$=(S.yAxis?S.yAxis.len:this.chart.plotSizeY)||0,V=k.dlBox||k.shapeArgs,I=p(k.below,k.plotY>p(this.translatedThreshold,$)),A=p(x.inside,!!this.options.stacking);if(V){if(v=h(V),!(x.overflow==="allow"&&x.crop===!1)){v.y<0&&(v.height+=v.y,v.y=0);let L=v.y+v.height-$;L>0&&L<v.height-1&&(v.height-=L)}N&&(v={x:$-v.y-v.height,y:_-v.x-v.width,width:v.height,height:v.width}),A||(N?(v.x+=I?0:v.width,v.width=0):(v.y+=I?v.height:0,v.height=0))}x.align=p(x.align,!N||A?"center":I?"right":"left"),x.verticalAlign=p(x.verticalAlign,N||A?"middle":I?"top":"bottom"),u.prototype.alignDataLabel.call(this,k,b,x,v,E),x.inside&&k.contrastColor&&b.css({color:k.contrastColor})}m.compose=function(k){r.compose(u),y(d,"ColumnDataLabel")&&(k.prototype.alignDataLabel=w)}}(c||(c={})),c}),i(n,"Series/Bar/BarSeries.js",[n["Series/Column/ColumnSeries.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s,a){let{extend:l,merge:c}=a;class d extends r{}return d.defaultOptions=c(r.defaultOptions,{}),l(d.prototype,{inverted:!0}),s.registerSeriesType("bar",d),d}),i(n,"Series/Scatter/ScatterSeriesDefaults.js",[],function(){return{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">â</span> <span style="font-size: 0.8em"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}}),i(n,"Series/Scatter/ScatterSeries.js",[n["Series/Scatter/ScatterSeriesDefaults.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s,a){let{column:l,line:c}=s.seriesTypes,{addEvent:d,extend:u,merge:h}=a;class p extends c{applyJitter(){let m=this,w=this.options.jitter,k=this.points.length;w&&this.points.forEach(function(b,x){["x","y"].forEach(function(v,E){if(w[v]&&!b.isNull){let N=`plot${v.toUpperCase()}`,S=m[`${v}Axis`],_=w[v]*S.transA;if(S&&!S.logarithmic){let $=Math.max(0,(b[N]||0)-_),V=Math.min(S.len,(b[N]||0)+_);b[N]=$+(V-$)*function(I){let A=1e4*Math.sin(I);return A-Math.floor(A)}(x+E*k),v==="x"&&(b.clientX=b.plotX)}}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}return p.defaultOptions=h(c.defaultOptions,r),u(p.prototype,{drawTracker:l.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),d(p,"afterTranslate",function(){this.applyJitter()}),s.registerSeriesType("scatter",p),p}),i(n,"Series/CenteredUtilities.js",[n["Core/Globals.js"],n["Core/Series/Series.js"],n["Core/Utilities.js"]],function(r,s,a){var l,c;let{deg2rad:d}=r,{fireEvent:u,isNumber:h,pick:p,relativeLength:y}=a;return(c=l||(l={})).getCenter=function(){let m=this.options,w=this.chart,k=2*(m.slicedOffset||0),b=w.plotWidth-2*k,x=w.plotHeight-2*k,v=m.center,E=Math.min(b,x),N=m.thickness,S,_=m.size,$=m.innerSize||0,V,I;typeof _=="string"&&(_=parseFloat(_)),typeof $=="string"&&($=parseFloat($));let A=[p(v[0],"50%"),p(v[1],"50%"),p(_&&_<0?void 0:m.size,"100%"),p($&&$<0?void 0:m.innerSize||0,"0%")];for(!w.angular||this instanceof s||(A[3]=0),V=0;V<4;++V)I=A[V],S=V<2||V===2&&/%$/.test(I),A[V]=y(I,[b,x,E,A[2]][V])+(S?k:0);return A[3]>A[2]&&(A[3]=A[2]),h(N)&&2*N<A[2]&&N>0&&(A[3]=A[2]-2*N),u(this,"afterGetCenter",{positions:A}),A},c.getStartAndEndRadians=function(m,w){let k=h(m)?m:0,b=h(w)&&w>k&&w-k<360?w:k+360;return{start:d*(k+-90),end:d*(b+-90)}},l}),i(n,"Series/Pie/PiePoint.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Series/Point.js"],n["Core/Utilities.js"]],function(r,s,a){let{setAnimation:l}=r,{addEvent:c,defined:d,extend:u,isNumber:h,pick:p,relativeLength:y}=a;class m extends s{getConnectorPath(k){let b=k.dataLabelPosition,x=k.options||{},v=x.connectorShape,E=this.connectorShapes[v]||v;return b&&E.call(this,{...b.computed,alignment:b.alignment},b.connectorPosition,x)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(k){let b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+k,b.r+k,{innerR:b.r-1,start:b.start,end:b.end,borderRadius:b.borderRadius})}constructor(k,b,x){super(k,b,x),this.half=0,this.name??(this.name="Slice");let v=E=>{this.slice(E.type==="select")};c(this,"select",v),c(this,"unselect",v)}isValid(){return h(this.y)&&this.y>=0}setVisible(k,b=!0){k!==this.visible&&this.update({visible:k??!this.visible},b,void 0,!1)}slice(k,b,x){let v=this.series;l(x,v.chart),b=p(b,!0),this.sliced=this.options.sliced=k=d(k)?k:!this.sliced,v.options.data[v.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}return u(m.prototype,{connectorShapes:{fixedOffset:function(w,k,b){let x=k.breakAt,v=k.touchingSliceAt,E=b.softConnector?["C",w.x+(w.alignment==="left"?-5:5),w.y,2*x.x-v.x,2*x.y-v.y,x.x,x.y]:["L",x.x,x.y];return[["M",w.x,w.y],E,["L",v.x,v.y]]},straight:function(w,k){let b=k.touchingSliceAt;return[["M",w.x,w.y],["L",b.x,b.y]]},crookedLine:function(w,k,b){let{breakAt:x,touchingSliceAt:v}=k,{series:E}=this,[N,S,_]=E.center,$=_/2,{plotLeft:V,plotWidth:I}
vendor: 4,595 bytes, line 178
178=E.chart,A=w.alignment==="left",{x:L,y:T}=w,g=x.x;if(b.crookDistance){let j=y(b.crookDistance,1);g=A?N+$+(I+V-N-$)*(1-j):V+(N-$)*j}else g=N+(S-T)*Math.tan((this.angle||0)-Math.PI/2);let f=[["M",L,T]];return(A?g<=L&&g>=x.x:g>=L&&g<=x.x)&&f.push(["L",g,T]),f.push(["L",x.x,x.y],["L",v.x,v.y]),f}}}),m}),i(n,"Series/Pie/PieSeriesDefaults.js",[],function(){return{borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),i(n,"Series/Pie/PieSeries.js",[n["Series/CenteredUtilities.js"],n["Series/Column/ColumnSeries.js"],n["Core/Globals.js"],n["Series/Pie/PiePoint.js"],n["Series/Pie/PieSeriesDefaults.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/Symbols.js"],n["Core/Utilities.js"]],function(r,s,a,l,c,d,u,h,p){let{getStartAndEndRadians:y}=r,{noop:m}=a,{clamp:w,extend:k,fireEvent:b,merge:x,pick:v}=p;class E extends d{animate(S){let _=this,$=_.points,V=_.startAngleRad;S||$.forEach(function(I){let A=I.graphic,L=I.shapeArgs;A&&L&&(A.attr({r:v(I.startR,_.center&&_.center[3]/2),start:V,end:V}),A.animate({r:L.r,start:L.start,end:L.end},_.options.animation))})}drawEmpty(){let S,_,$=this.startAngleRad,V=this.endAngleRad,I=this.options;this.total===0&&this.center?(S=this.center[0],_=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(S,_,this.center[1]/2,0,$,V).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:h.arc(S,_,this.center[2]/2,0,{start:$,end:V,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":I.borderWidth,fill:I.fillColor||"none",stroke:I.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){let S=this.chart.renderer;this.points.forEach(function(_){_.graphic&&_.hasNewShapeType()&&(_.graphic=_.graphic.destroy()),_.graphic||(_.graphic=S[_.shapeType](_.shapeArgs).add(_.series.group),_.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(S,_,$,V){let I=this.center,A=this.radii?this.radii[$.index]||0:I[2]/2,L=V.dataLabelPosition,T=(L==null?void 0:L.distance)||0,g=Math.asin(w((S-I[1])/(A+T),-1,1));return I[0]+Math.cos(g)*(A+T)*(_?-1:1)+(T>0?(_?-1:1)*(V.padding||0):0)}hasData(){return!!this.processedXData.length}redrawPoints(){let S,_,$,V,I=this,A=I.chart;this.drawEmpty(),I.group&&!A.styledMode&&I.group.shadow(I.options.shadow),I.points.forEach(function(L){let T={};_=L.graphic,!L.isNull&&_?(V=L.shapeArgs,S=L.getTranslate(),A.styledMode||($=I.pointAttribs(L,L.selected&&"select")),L.delayedRendering?(_.setRadialReference(I.center).attr(V).attr(S),A.styledMode||_.attr($).attr({"stroke-linejoin":"round"}),L.delayedRendering=!1):(_.setRadialReference(I.center),A.styledMode||x(!0,T,$),x(!0,T,V,S),_.animate(T)),_.attr({visibility:L.visible?"inherit":"hidden"}),_.addClass(L.getClassName(),!0)):_&&(L.graphic=_.destroy())})}sortByAngle(S,_){S.sort(function($,V){return $.angle!==void 0&&(V.angle-$.angle)*_})}translate(S){b(this,"translate"),this.generatePoints();let _=this.options,$=_.slicedOffset,V=y(_.startAngle,_.endAngle),I=this.startAngleRad=V.start,A=(this.endAngleRad=V.end)-I,L=this.points,T=_.ignoreHiddenPoint,g=L.length,f,j,P,C,D,M,z,J=0;for(S||(this.center=S=this.getCenter()),M=0;M<g;M++){z=L[M],f=I+J*A,z.isValid()&&(!T||z.visible)&&(J+=z.percentage/100),j=I+J*A;let F={x:S[0],y:S[1],r:S[2]/2,innerR:S[3]/2,start:Math.round(1e3*f)/1e3,end:Math.round(1e3*j)/1e3};z.shapeType="arc",z.shapeArgs=F,(P=(j+f)/2)>1.5*Math.PI?P-=2*Math.PI:P<-Math.PI/2&&(P+=2*Math.PI),z.slicedTranslation={translateX:Math.round(Math.cos(P)*$),translateY:Math.round(Math.sin(P)*$)},C=Math.cos(P)*S[2]/2,D=Math.sin(P)*S[2]/2,z.tooltipPos=[S[0]+.7*C,S[1]+.7*D],z.half=P<-Math.PI/2||P>Math.PI/2?1:0,z.angle=P}b(this,"afterTranslate")}updateTotals(){let S=this.points,_=S.length,$=this.options.ignoreHiddenPoint,V,I,A=0;for(V=0;V<_;V++)(I=S[V]).isValid()&&(!$||I.visible)&&(A+=I.y);for(V=0,this.total=A;V<_;V++)(I=S[V]).percentage=A>0&&(I.visible||!$)?I.y/A*100:0,I.total=A}}return E.defaultOptions=x(d.defaultOptions,c),k(E.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:s.prototype.drawTracker,getCenter:r.getCenter,getSymbol:m,invert
178ible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:s.prototype.pointAttribs,pointClass:l,requireSorting:!1,searchPoint:m,trackerGroups:["group","dataLabelsGroup"]}),u.registerSeriesType("pie",E),E}),i(n,"Series/Pie/PieDataLabel.js",[n["Core/Series/DataLabel.js"],n["Core/Globals.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s,a,l,c){var d;let{composed:u,noop:h}=s,{distribute:p}=a,{series:y}=l,{arrayMax:m,clamp:w,defined:k,pick:b,pushUnique:x,relativeLength:v}=c;return function(E){let N={radialDistributionY:function(I,A){var L;return(((L=A.dataLabelPosition)==null?void 0:L.top)||0)+I.distributeBox.pos},radialDistributionX:function(I,A,L,T,g){let f=g.dataLabelPosition;return I.getX(L<((f==null?void 0:f.top)||0)+2||L>((f==null?void 0:f.bottom)||0)-2?T:L,A.half,A,g)},justify:function(I,A,L,T){var g;return T[0]+(I.half?-1:1)*(L+(((g=A.dataLabelPosition)==null?void 0:g.distance)||0))},alignToPlotEdges:function(I,A,L,T){let g=I.getBBox().width;return A?g+T:L-g-T},alignToConnectors:function(I,A,L,T){let g=0,f;return I.forEach(function(j){(f=j.dataLabel.getBBox().width)>g&&(g=f)}),A?g+T:L-g-T}};function S(I,A){let{center:L,options:T}=this,g=L[2]/2,f=I.angle||0,j=Math.cos(f),P=Math.sin(f),C=L[0]+j*g,D=L[1]+P*g,M=Math.min((T.slicedOffset||0)+(T.borderWidth||0),A/5);
vendor: 4,653 bytes, line 178
178return{natural:{x:C+j*A,y:D+P*A},computed:{},alignment:A<0?"center":I.half?"right":"left",connectorPosition:{breakAt:{x:C+j*M,y:D+P*M},touchingSliceAt:{x:C,y:D}},distance:A}}function _(){var ce;let I=this,A=I.points,L=I.chart,T=L.plotWidth,g=L.plotHeight,f=L.plotLeft,j=Math.round(L.chartWidth/3),P=I.center,C=P[2]/2,D=P[1],M=[[],[]],z=[0,0,0,0],J=I.dataLabelPositioners,F,q,U,Q=0;I.visible&&((ce=I.hasDataLabels)!=null&&ce.call(I))&&(A.forEach(H=>{(H.dataLabels||[]).forEach(B=>{B.shortened&&(B.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),B.shortened=!1)})}),y.prototype.drawDataLabels.apply(I),A.forEach(H=>{(H.dataLabels||[]).forEach((B,K)=>{var W;let ie=P[2]/2,R=B.options,G=v((R==null?void 0:R.distance)||0,ie);K===0&&M[H.half].push(H),!k((W=R==null?void 0:R.style)==null?void 0:W.width)&&B.getBBox().width>j&&(B.css({width:Math.round(.7*j)+"px"}),B.shortened=!0),B.dataLabelPosition=this.getDataLabelPosition(H,G),Q=Math.max(Q,G)})}),M.forEach((H,B)=>{let K=H.length,ie=[],R,G,W=0,Y;K&&(I.sortByAngle(H,B-.5),Q>0&&(R=Math.max(0,D-C-Q),G=Math.min(D+C+Q,L.plotHeight),H.forEach(X=>{(X.dataLabels||[]).forEach(re=>{var se;let ee=re.dataLabelPosition;ee&&ee.distance>0&&(ee.top=Math.max(0,D-C-ee.distance),ee.bottom=Math.min(D+C+ee.distance,L.plotHeight),W=re.getBBox().height||21,re.lineHeight=L.renderer.fontMetrics(re.text||re).h+2*re.padding,X.distributeBox={target:(((se=re.dataLabelPosition)==null?void 0:se.natural.y)||0)-ee.top+re.lineHeight/2,size:W,rank:X.y},ie.push(X.distributeBox))})}),p(ie,Y=G+W-R,Y/5)),H.forEach(X=>{(X.dataLabels||[]).forEach(re=>{let ee=re.options||{},se=X.distributeBox,oe=re.dataLabelPosition,he=(oe==null?void 0:oe.natural.y)||0,pe=ee.connectorPadding||0,ne=re.lineHeight||21,te=(ne-re.getBBox().height)/2,ae=0,le=he,de="inherit";if(oe){if(ie&&k(se)&&oe.distance>0&&(se.pos===void 0?de="hidden":(U=se.size,le=J.radialDistributionY(X,re))),ee.justify)ae=J.justify(X,re,C,P);else switch(ee.alignTo){case"connectors":ae=J.alignToConnectors(H,B,T,f);break;case"plotEdges":ae=J.alignToPlotEdges(re,B,T,f);break;default:ae=J.radialDistributionX(I,X,le-te,he,re)}if(oe.attribs={visibility:de,align:oe.alignment},oe.posAttribs={x:ae+(ee.x||0)+({left:pe,right:-pe}[oe.alignment]||0),y:le+(ee.y||0)-ne/2},oe.computed.x=ae,oe.computed.y=le-te,b(ee.crop,!0)){let ue;ae-(q=re.getBBox().width)<pe&&B===1?(ue=Math.round(q-ae+pe),z[3]=Math.max(ue,z[3])):ae+q>T-pe&&B===0&&(ue=Math.round(ae+q-T+pe),z[1]=Math.max(ue,z[1])),le-U/2<0?z[0]=Math.max(Math.round(-le+U/2),z[0]):le+U/2>g&&(z[2]=Math.max(Math.round(le+U/2-g),z[2])),oe.sideOverflow=ue}}})}))}),(m(z)===0||this.verifyDataLabelOverflow(z))&&(this.placeDataLabels(),this.points.forEach(H=>{(H.dataLabels||[]).forEach(B=>{var G;let{connectorColor:K,connectorWidth:ie=1}=B.options||{},R=B.dataLabelPosition;if(ie){let W;F=B.connector,R&&R.distance>0?(W=!F,F||(B.connector=F=L.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+H.colorIndex+(H.className?" "+H.className:"")).add(I.dataLabelsGroup)),L.styledMode||F.attr({"stroke-width":ie,stroke:K||H.color||"#666666"}),F[W?"attr":"animate"]({d:H.getConnectorPath(B)}),F.attr({visibility:(G=R.attribs)==null?void 0:G.visibility})):F&&(B.connector=F.destroy())}})})))}function $(){this.points.forEach(I=>{(I.dataLabels||[]).forEach(A=>{var T;let L=A.dataLabelPosition;L?(L.sideOverflow&&(A.css({width:Math.max(A.getBBox().width-L.sideOverflow,0)+"px",textOverflow:(((T=A.options)==null?void 0:T.style)||{}).textOverflow||"ellipsis"}),A.shortened=!0),A.attr(L.attribs),A[A.moved?"animate":"attr"](L.posAttribs),A.moved=!0):A&&A.attr({y:-9999})}),delete I.distributeBox},this)}function V(I){let A=this.center,L=this.options,T=L.center,g=L.minSize||80,f=g,j=L.size!==null;return!j&&(T[0]!==null?f=Math.max(A[2]-Math.max(I[1],I[3]),g):(f=Math.max(A[2]-I[1]-I[3],g),A[0]+=(I[3]-I[1])/2),T[1]!==null?f=w(f,g,A[2]-Math.max(I[0],I[2])):(f=w(f,g,A[2]-I[0]-I[2]),A[1]+=(I[0]-I[2])/2),f<A[2]?(A[2]=f,A[3]=Math.min(L.thickness?Math.max(0,f-2*L.thickness):Math.max(0,v(L.innerSize||0,f)),f),this.translate(A),this.drawDataLabels&&this.drawDataLabels()):j=!0),j}E.compose=function(I){if(r.compose(y),x(u,"PieDataLabel")){let A=I.prototype;A.dataLabelPositioners=N,A.alignDataLabel=h,A.drawDataLabels=_,A.getDataLabelPosition=S,A.placeDataLabels=$,A.verifyDataLabelOverflow=V}}}(d||(d={})),d}),i(n,"Core/Geometry/GeometryUtilities.js",[],function(){var r,s;return(s=r||(r={})).getCenterOfPoints=function(a){let l=a.reduce((c,d)=>(c.x+=d.x,c.y+=d.y,c),{x:0,y:0});return{x:l.x/a.length,y:l.y/a.length}},s.getDistanceBetweenPoints=function(a,l){return Math.sqrt(Math.pow(l.x-a.x,2)+Math.pow(l.y-a.y,2))}
178,s.getAngleBetweenPoints=function(a,l){return Math.atan2(l.x-a.x,l.y-a.y)},s.pointInPolygon=function({x:a,y:l},c){let d=c.length,u,h,p=!1;for(u=0,h=d-1;u<d;h=u++){let[y,m]=c[u],[w,k]=c[h];m>l!=k>l&&a<(w-y)*(l-m)/(k-m)+y&&(p=!p)}return p},r}),i(n,"Extensions/OverlappingDataLabels.js",[n["Core/Geometry/GeometryUtilities.js"],n["Core/Utilities.js"]],function(r,s){let{pointInPolygon:a}=r,{addEvent:l,fireEvent:c,objectEach:d,pick:u}=s;function h(m){let w=m.length,k=($,V)=>!(V.x>=$.x+$.width||V.x+V.width<=$.x||V.y>=$.y+$.height||V.y+V.height<=$.y),b=($,V)=>{for(let I of $)if(a({x:I[0],y:I[1]},V))return!0;return!1},x,v,E,N,S,_=!1;for(let $=0;$<w;$++)(x=m[$])&&(x.oldOpacity=x.opacity,x.newOpacity=1,x.absoluteBox=function(V){var I,A;if(V&&(!V.alignAttr||V.placed)){let L=V.box?0:V.padding||0,T=V.alignAttr||{x:V.attr("x"),y:V.attr("y")},g=V.getBBox();return V.width=g.width,V.height=g.height,{x:T.x+(((I=V.parentGroup)==null?void 0:I.translateX)||0)+L,y:T.y+(((A=V.parentGroup)==null?void 0:A.translateY)||0)+L,width:(V.width||0)-2*L,height:(V.height||0)-2*L,polygon:g==null?void 0:g.polygon}}}(x));m.sort(($,V)=>(V.labelrank||0)-($.labelrank||0));for(let $=0;$<w;++$){N=(v=m[$])&&v.absoluteBox;let V=N==null?void 0:N.polygon;for(let I=$+1;I<w;++I){S=(E=m[I])&&E.absoluteBox;let A=!1;if(N&&S&&v!==E&&v.newOpacity!==0&&E.newOpacity!==0&&v.visibility!=="hidden"&&E.visibility!=="hidden"){let L=S.polygon;if(V&&L&&V!==L?b(V,L)&&(A=!0):k(N,S)&&(A=!0),A){let T=v.labelrank<E.labelrank?v:E,g=T.text;T.newOpacity=0,g!=null&&g.element.querySelector("textPath")&&g.hide()}}}}for(let $ of m)p($,this)&&(_=!0);_&&c(this,"afterHideAllOverlappingLabels")}function p(m,w){let k,b,x=!1;return m&&(b=m.newOpacity,m.oldOpacity!==b&&(m.hasClass("highcharts-data-label")?(m[b?"removeClass":"addClass"]("highcharts-data-label-hidden"),k=function(){w.styledMode||m.css({pointerEvents:b?"auto":"none"})},x=!0,m[m.isOld?"animate":"attr"]({opacity:b},void 0,k),c(w,"afterHideOverlappingLabel")):m.attr({opacity:b})),m.isOld=!0),x}function y(){var k;let m=this,w=[];for(let b of m.labelCollectors||[])w=w.concat(b());for(let b of m.yAxis||[])b.stacking&&b.options.stackLabels&&!b.options.stackLabels.allowOverlap&&d(b.stacking.stacks,x=>{d(x,v=>{v.label&&w.push(v.label)})});for(let b of m.series||[])if(b.visible&&((k=b.hasDataLabels)!=null&&k.call(b))){let x=v=>{for(let E of v)E.visible&&(E.dataLabels||[]).forEach(N=>{var _;let S=N.options||{};N.labelrank=u(S.labelrank,E.labelrank,(_=E.shapeArgs)==null?void 0:_.height),S.allowOverlap??Number(S.distance)>0?(N.oldOpacity=N.opacity,N.newOpacity=1,p(N,m)):w.push(N)})};x(b.nodes||[]),x(b.points)}this.hideOverlappingLabels(w)}return{compose:function(m){let w=m.prototype;w.hideOverlappingLabels||(w.hideOverlappingLabels=h,l(m,"render",y))}}}
vendor: 3,923 bytes, line 178
178),i(n,"Extensions/BorderRadius.js",[n["Core/Defaults.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],function(r,s,a){let{defaultOptions:l}=r,{noop:c}=s,{addEvent:d,extend:u,isObject:h,merge:p,relativeLength:y}=a,m={radius:0,scope:"stack",where:void 0},w=c,k=c;function b(S,_,$,V,I={}){let A=w(S,_,$,V,I),{innerR:L=0,r:T=$,start:g=0,end:f=0}=I;if(I.open||!I.borderRadius)return A;let j=f-g,P=Math.sin(j/2),C=Math.max(Math.min(y(I.borderRadius||0,T-L),(T-L)/2,T*P/(1+P)),0),D=Math.min(C,j/Math.PI*2*L),M=A.length-1;for(;M--;)(function(z,J,F){let q,U,Q,ce=z[J],H=z[J+1];if(H[0]==="Z"&&(H=z[0]),(ce[0]==="M"||ce[0]==="L")&&H[0]==="A"?(q=ce,U=H,Q=!0):ce[0]==="A"&&(H[0]==="M"||H[0]==="L")&&(q=H,U=ce),q&&U&&U.params){let B=U[1],K=U[5],ie=U.params,{start:R,end:G,cx:W,cy:Y}=ie,X=K?B-F:B+F,re=X?Math.asin(F/X):0,ee=K?re:-re,se=Math.cos(re)*X;Q?(ie.start=R+ee,q[1]=W+se*Math.cos(R),q[2]=Y+se*Math.sin(R),z.splice(J+1,0,["A",F,F,0,0,1,W+B*Math.cos(ie.start),Y+B*Math.sin(ie.start)])):(ie.end=G-ee,U[6]=W+B*Math.cos(ie.end),U[7]=Y+B*Math.sin(ie.end),z.splice(J+1,0,["A",F,F,0,0,1,W+se*Math.cos(G),Y+se*Math.sin(G)])),U[4]=Math.abs(ie.end-ie.start)<Math.PI?0:1}})(A,M,M>1?D:C);return A}function x(){var S,_;if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d())){let{options:$,yAxis:V}=this,I=$.stacking==="percent",A=(_=(S=l.plotOptions)==null?void 0:S[this.type])==null?void 0:_.borderRadius,L=v($.borderRadius,h(A)?A:{}),T=V.options.reversed;for(let g of this.points){let{shapeArgs:f}=g;if(g.shapeType==="roundedRect"&&f){let{width:j=0,height:P=0,y:C=0}=f,D=C,M=P;if(L.scope==="stack"&&g.stackTotal){let q=V.translate(I?100:g.stackTotal,!1,!0,!1,!0),U=V.translate($.threshold||0,!1,!0,!1,!0),Q=this.crispCol(0,Math.min(q,U),0,Math.abs(q-U));D=Q.y,M=Q.height}let z=(g.negative?-1:1)*(T?-1:1)==-1,J=L.where;!J&&this.is("waterfall")&&Math.abs((g.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(J="all"),J||(J="end");let F=Math.min(y(L.radius,j),j/2,J==="all"?P/2:1/0)||0;J==="end"&&(z&&(D-=F),M+=F),u(f,{brBoxHeight:M,brBoxY:D,r:F})}}}}function v(S,_){return h(S)||(S={radius:S||0}),p(m,_,S)}function E(){let S=v(this.options.borderRadius);for(let _ of this.points){let $=_.shapeArgs;$&&($.borderRadius=y(S.radius,($.r||0)-($.innerR||0)))}}function N(S,_,$,V,I={}){let A=k(S,_,$,V,I),{r:L=0,brBoxHeight:T=V,brBoxY:g=_}=I,f=_-g,j=g+T-(_+V),P=f-L>-.1?0:L,C=j-L>-.1?0:L,D=Math.max(P&&f,0),M=Math.max(C&&j,0),z=[S+P,_],J=[S+$-P,_],F=[S+$,_+P],q=[S+$,_+V-C],U=[S+$-C,_+V],Q=[S+C,_+V],ce=[S,_+V-C],H=[S,_+P],B=(K,ie)=>Math.sqrt(Math.pow(K,2)-Math.pow(ie,2));if(D){let K=B(P,P-D);z[0]-=K,J[0]+=K,F[1]=H[1]=_+P-D}if(V<P-D){let K=B(P,P-D-V);F[0]=q[0]=S+$-P+K,U[0]=Math.min(F[0],U[0]),Q[0]=Math.max(q[0],Q[0]),ce[0]=H[0]=S+P-K,F[1]=H[1]=_+V}if(M){let K=B(C,C-M);U[0]+=K,Q[0]-=K,q[1]=ce[1]=_+V-C+M}if(V<C-M){let K=B(C,C-M-V);F[0]=q[0]=S+$-C+K,J[0]=Math.min(F[0],J[0]),z[0]=Math.max(q[0],z[0]),ce[0]=H[0]=S+C-K,q[1]=ce[1]=_}return A.length=0,A.push(["M",...z],["L",...J],["A",P,P,0,0,1,...F],["L",...q],["A",C,C,0,0,1,...U],["L",...Q],["A",C,C,0,0,1,...ce],["L",...H],["A",P,P,0,0,1,...z],["Z"]),A}return{compose:function(S,_,$){let V=S.types.pie;if(!_.symbolCustomAttribs.includes("borderRadius")){let I=$.prototype.symbols;d(S,"afterColumnTranslate",x,{order:9}),d(V,"afterTranslate",E),_.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY"),w=I.arc,k=I.roundedRect,I.arc=b,I.roundedRect=N}},optionsToObject:v}}),i(n,"Core/Responsive.js",[n["Core/Utilities.js"]],function(r){var s;let{diffObjects:a,extend:l,find:c,merge:d,pick:u,uniqueKey:h}=r;return function(p){function y(w,k){let b=w.condition;(b.callback||function(){return this.chartWidth<=u(b.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=u(b.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=u(b.minWidth,0)&&this.chartHeight>=u(b.minHeight,0)}).call(this)&&k.push(w._id)}function m(w,k){let b=this.options.responsive,x=this.currentResponsive,v=[],E;
178!k&&b&&b.rules&&b.rules.forEach(_=>{_._id===void 0&&(_._id=h()),this.matchResponsiveRule(_,v)},this);let N=d(...v.map(_=>c((b||{}).rules||[],$=>$._id===_)).map(_=>_&&_.chartOptions));N.isResponsiveOptions=!0,v=v.toString()||void 0;let S=x&&x.ruleIds;v===S||(x&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(x.undoOptions,w,!0),this.updatingResponsive=!1),v?((E=a(N,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:v,mergedOptions:N,undoOptions:E},this.updatingResponsive||this.update(N,w,!0)):this.currentResponsive=void 0)}p.compose=function(w){let k=w.prototype;return k.matchResponsiveRule||l(k,{matchResponsiveRule:y,setResponsive:m}),w}}(s||(s={})),s}),i(n,"masters/highcharts.src.js",[n["Core/Globals.js"],n["Core/Utilities.js"],n["Core/Defaults.js"],n["Core/Animation/Fx.js"],n["Core/Animation/AnimationUtilities.js"],n["Core/Renderer/HTML/AST.js"],n["Core/Templating.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Renderer/HTML/HTMLElement.js"],n["Core/Axis/Axis.js"],n["Core/Axis/DateTimeAxis.js"],n["Core/Axis/LogarithmicAxis.js"],n["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],n["Core/Axis/Tick.js"],n["Core/Tooltip.js"],n["Core/Series/Point.js"],n["Core/Pointer.js"],n["Core/Legend/Legend.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Chart/Chart.js"],n["Extensions/ScrollablePlotArea.js"],n["Core/Axis/Stacking/StackingAxis.js"],n["Core/Axis/Stacking/StackItem.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Series/Column/ColumnDataLabel.js"],n["Series/Pie/PieDataLabel.js"],n["Core/Series/DataLabel.js"],n["Extensions/OverlappingDataLabels.js"],n["Extensions/
178BorderRadius.js"],n["Core/Responsive.js"],n["Core/Color/Color.js"],n["Core/Time.js"]],function(r,s,a,l,c,d,u,h,p,y,m,w,k,b,x,v,E,N,S,_,$,V,I,A,L,T,g,f,j,P,C,D,M,z,J,F){return r.AST=d,r.Axis=k,r.Chart=I,r.Color=J,r.DataLabel=C,r.Fx=l,r.HTMLElement=w,r.Legend=$,r.LegendSymbol=V,r.OverlappingDataLabels=r.OverlappingDataLabels||D,r.PlotLineOrBand=v,r.Point=S,r.Pointer=_,r.RendererRegistry=h,r.Series=g,r.SeriesRegistry=f,r.StackItem=T,r.SVGElement=y,r.SVGRenderer=m,r.Templating=u,r.Tick=E,r.Time=F,r.Tooltip=N,r.animate=c.animate,r.animObject=c.animObject,r.chart=I.chart,r.color=J.parse,r.dateFormat=u.dateFormat,r.defaultOptions=a.defaultOptions,r.distribute=p.distribute,r.format=u.format,r.getDeferredAnimation=c.getDeferredAnimation,r.getOptions=a.getOptions,r.numberFormat=u.numberFormat,r.seriesType=f.seriesType,r.setAnimation=c.setAnimation,r.setOptions=a.setOptions,r.stop=c.stop,r.time=a.defaultTime,r.timers=l.timers,M.compose(r.Series,r.SVGElement,r.SVGRenderer),j.compose(r.Series.types.column),C.compose(r.Series),b.compose(r.Axis),w.compose(r.SVGRenderer),$.compose(r.Chart),x.compose(r.Axis),D.compose(r.Chart),P.compose(r.Series.types.pie),v.compose(r.Chart,r.Axis),_.compose(r.Chart),z.compose(r.Chart),A.compose(r.Axis,r.Chart,r.Series),L.compose(r.Axis,r.Chart,r.Series),N.compose(r.Pointer),s.extend(r,s),r}),i(n,"Series/DataModifyComposition.js",[n["Core/Axis/Axis.js"],n["Core/Series/Point.js"],n["Core/Series/Series.js"],n["Core/Utilities.js"]],function(r,s,a,l){var c;let{tooltipFormatter:d}=s.prototype,{addEvent:u,arrayMax:h,arrayMin:p,correctFloat:y,defined:m,isArray:w,isNumber:k,isString:b,pick:x}=l;return function(v){function E(g,f,j){!this.isXAxis&&(this.series.forEach(function(P){g==="compare"&&typeof f!="boolean"?P.setCompare(f,!1):g!=="cumulative"||b(f)||P.setCumulative(f,!1)}),x(j,!0)&&this.chart.redraw())}function N(g){let f=this,{numberFormatter:j}=f.series.chart,P=function(C){g=g.replace("{point."+C+"}",(f[C]>0&&C==="change"?"+":"")+j(f[C],x(f.series.tooltipOptions.changeDecimals,2)))};return m(f.change)&&P("change"),m(f.cumulativeSum)&&P("cumulativeSum"),d.apply(this,[g])}function S(){let g,f=this.options.compare;(f==="percent"||f==="value"||this.options.cumulative)&&(g=new T(this),f==="percent"||f==="value"?g.initCompare(f):g.initCumulative()),this.dataModify=g}function _(g){let f=g.dataExtremes,j=f.activeYData;if(this.dataModify&&f){let P;this.options.compare?P=[this.dataModify.modifyValue(f.dataMin),this.dataModify.modifyValue(f.dataMax)]:this.options.cumulative&&w(j)&&j.length>=2&&(P=T.getCumulativeExtremes(j)),P&&(f.dataMin=p(P),f.dataMax=h(P))}}function $(g,f){this.options.compare=this.userOptions.compare=g,this.update({},x(f,!0)),this.dataModify&&(g==="value"||g==="percent")?this.dataModify.initCompare(g):this.points.forEach(j=>{delete j.change})}function V(){if(this.xAxis&&this.processedYData&&this.dataModify){let g=this.processedXData,f=this.processedYData,j=f.length,P=this.options.compareStart===!0?0:1,C=-1,D;for(this.pointArrayMap&&(C=this.pointArrayMap.indexOf(this.options.pointValKey||this.pointValKey||"y")),D=0;D<j-P;D++){let M=f[D]&&C>-1?f[D][C]:f[D];if(k(M)&&M!==0&&g[D+P]>=(this.xAxis.min||0)){this.dataModify.compareValue=M;break}}}}function I(g,f){this.setModifier("compare",g,f)}function A(g,f){g=x(g,!1),this.options.cumulative=this.userOptions.cumulative=g,this.update({},x(f,!0)),this.dataModify?this.dataModify.initCumulative():this.points.forEach(j=>{delete j.cumulativeSum})}function L(g,f){this.setModifier("cumulative",g,f)}v.compose=function(g,f,j){let P=f.prototype,C=j.prototype,D=g.prototype;return D.setCompare||(D.setCompare=$,D.setCumulative=A,u(g,"afterInit",S),u(g,"afterGetExtremes",_),u(g,"afterProcessData",V)),P.setCompare||(P.setCompare=I,P.setModifier=E,P.setCumulative=L,C.tooltipFormatter=N),g};class T{constructor(f){this.series=f}modifyValue(){return 0}static getCumulativeExtremes(f){let j=1/0,P=-1/0;return f.reduce((C,D)=>{let M=C+D;return j=Math.min(j,M,C),P=Math.max(P,M,C),M}),[j,P]}initCompare(f){this.modifyValue=function(j,P){j===null&&(j=0);let C=this.compareValue;if(j!==void 0&&C!==void 0){if(f==="value"?j-=C:j=j/C*100-(this.series.options.compareBase===100?0:100),P!==void 0){let D=this.series.points[P];D&&(D.change=j)}return j}return 0}}initCumulative(){this.modifyValue=function(f,j){if(f===null&&(f=0),f!==void 0&&j!==void 0){let P=j>0?this.series.points[j-1]:null;P&&P.cumulativeSum&&(f=y(P.cumulativeSum+f));let C=this.series.points[j],D=C.series.options.cumulativeStart,M=C.x<=this.series.xAxis.max&&C.x>=this.series.xAxis.min;return C&&(!D||M?C.cumulativeSum=f:C.cumulativeSum=void 0),f}return 0}}}v.Additions=T}(c||(c={})),c}),i(n,"Stock/Navigator/ChartNavigatorComposition.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],function(r,s){let a,{isTouchDevice:l}=r,{addEvent:c,merge:d,pick:u}=s,h=[];function p(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function y(){var $;let v,E,N,S=this.legend,_=this.navigator;if(_){v=S&&S.options,E=_.xAxis,N=_.yAxis;let{scrollbarHeight:V,scrollButtonSize:I}=_;this.inverted?(_.left=_.opposite?this.chartWidth-V-_.height:this.spacing[3]+V,_.top=this.plotTop+I):(_.left=u(E.left,this.plotLeft+I),_.top=_.navigatorOptions.top||this.chartHe
178ight-_.height-V-((($=this.scrollbar)==null?void 0:$.options.margin)||0)-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(v&&v.verticalAlign==="bottom"&&v.layout!=="proximate"&&v.enabled&&!v.floating?S.legendHeight+u(v.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),E&&N&&(this.inverted?E.options.left=N.options.left=_.left:E.options.top=N.options.top=_.top,E.setAxisSize(),N.setAxisSize())}}function m(v){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new a(this),u(v.redraw,!0)&&this.redraw(v.animation))}function w(){let v=this.options;(v.navigator.enabled||v.scrollbar.enabled)&&(this.scroller=this.navigator=new a(this))}function k(){let v=this.options,E=v.navigator,N=v.rangeSelector;if((E&&E.enabled||N&&N.enabled)&&(!l&&this.zooming.type==="x"||l&&this.zooming.pinchType==="x"))return!1}function b(v){let E=v.navigator;if(E&&v.xAxis[0]){let N=v.xAxis[0].getExtremes();E.render(N.min,N.max)}}function x(v){let E=v.options.navigator||{},N=v.options.scrollbar||{};!this.navigator&&!this.scroller&&(E.enabled||N.enabled)&&(d(!0,this.options.navigator,E),d(!0,this.options.scrollbar,N),delete v.options.navigator,delete v.options.scrollbar)}return{compose:function(v,E){if(s.pushUnique(h,v)){let N=v.prototype;a=E,N.callbacks.push(b),c(v,"afterAddSeries",p),c(v,"afterSetChartSize",y),c(v,"afterUpdate",m),c(v,"beforeRender",w),c(v,"beforeShowResetZoom",k),c(v,"update",x)}}}}),i(n,"Core/Axis/NavigatorAxisComposition.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],function(r,s){let{isTouchDevice:a}=r,{addEvent:l,correctFloat:c,defined:d,isNumber:u,pick:h}=s;function p(){this.navigatorAxis||(this.navigatorAxis=new m(this))}function y(w){let k,b=this.chart,x=b.options,v=x.navigator,E=this.navigatorAxis,N=b.zooming.pinchType,S=x.rangeSelector,_=b.zooming.type;if(this.isXAxis&&(v!=null&&v.enabled||S!=null&&S.enabled)){if(_==="y"&&w.trigger==="zoom")k=!1;else if((w.trigger==="zoom"&&_==="xy"||a&&N==="xy")&&this.options.range){let $=E.previousZoom;d(w.min)?E.previousZoom=[this.min,this.max]:$&&(w.min=$[0],w.max=$[1],E.previousZoom=void 0)}}k!==void 0&&w.preventDefault()}class m{static compose(k){k.keepProps.includes("navigatorAxis")||(k.keepProps.push("navigatorAxis"),l(k,"init",p),l(k,"setExtremes",y))}constructor(k){this.axis=k}destroy(){this.axis=void 0}toFixedRange(k,b,x,v){let E=this.axis,N=(E.pointRange||0)/2,S=h(x,E.translate(k,!0,!E.horiz)),_=h(v,E.translate(b,!0,!E.horiz));return d(x)||(S=c(S+N)),d(v)||(_=c(_-N)),u(S)&&u(_)||(S=_=void 0),{min:S,max:_}}}return m}),i(n,"Stock/Navigator/NavigatorDefaults.js",[n["Core/Color/Color.js"],n["Core/Series/SeriesRegistry.js"]],function(r,s){let{parse:a}=r,{seriesTypes:l}=s;return{height:40,margin:25,maskInside:!0,handles:{width:7,borderRadius:0,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:a("#667aff").setOpacity(.3).get(),outlineColor:"#999999",outlineWidth:1,series:{type:l.areaspline===void 0?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,sonification:{enabled:!1},dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",id:"navigator-x-axis",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#000000",fontSize:"0.7em",opacity:.6,textOutline:"2px contrast"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,id:"navigator-y-axis",maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}}),i(n,"Stock/Navigator/NavigatorSymbols.js",[n["Core/Renderer/SVG/Symbols.js"],n["Core/Utilities.js"]],function(r,s){let{relativeLength:a}=s;return{"navigator-handle":function(l,c,d,u,h={}){let p=h.width?h.width/2:d,y=a(h.borderRadius||0,Math.min(2*p,u));return[["M",-1.5,(u=h.height||u)/2-3.5],["L",-1.5,u/2+4.5],["M",.5,u/2-3.5],["L",.5,u/2+4.5],...r.rect(-p-1,.5,2*p+1,u,{r:y})]}}}),i(n,"Stock/Utilities/StockUtilities.js",[n["Core/Utilities.js"]],function(r){let{defined:s}=r;return{setFixedRange:function(a){let l=this.xAxis[0];s(l.dataMax)&&s(l.dataMin)&&a?this.fixedRange=Math.min(a,l.dataMax-l.dataMin):this.fixedRange=a}}}),i(n,"Stock/Navigator/NavigatorComposition.js",[n["Core/Defaults.js"],n["Core/Globals.js"],n["Core/Axis/NavigatorAxisComposition.js"],n["Stock/Navigator/NavigatorDefaults.js"],n["Stock/Navigator/NavigatorSymbols.js"],n["Core/Renderer/RendererRegistry.js"],n["Stock/Utilities/StockUtilities.js"],n["Core/Utilities.js"]],function(r,s,a,l,c,d,u,h){let{setOptions:p}=r,{composed:y}=s,{getRendererType:m}=d,{setFixedRange:w}=u,{addEvent:k,extend:b,pushUnique:x}=h;function v(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}return{compose:function(E,N,S){a.compose(N),x(y,"Navigator")&&(E.prototype.setFixedRange=w,b(m().prototype.symbols,c),k(S,"afterUpdate",v),p({navigator:l}))}}}),i(n,"Core/Axis/ScrollbarAxis.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],function(r,s){var a;let{composed:l}=r,{addEvent:c,defined:d,pick:u,pushUnique:h}=s;return function(p){let y;function m(x){let v=u(x.options&&x.options.min,x.min),E=u(x.options&&x.options.max,x.max);return{axisMin:v,axisMax:E,scrollMin:d(x.dataMin)?Math.min(v,x.min,x.dataMin,u(x.threshold,1/0)):v,scrollMax:d(x.dataMax)?Math.max(E,x.max,x.dataMax,u(x.threshold,-1/0)):E}}function w(){let x=this.scrollbar,v=x&&!x.options.opposite,E=this.horiz?2:v?3:1;x&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[E]+=x.size+(x.options.margin||0))}function k(){let x=this;x.options&&x.options.scrollbar&&x.options.scrollbar.enabled&&(x.options.scrollbar.vertical=!x.horiz,x.options.startOnTick=x.options.endOnTick=!1,x.scrollbar=new y(x.chart.renderer,x.options.scrollbar,x.chart),c(x.scrollbar,"changed",function(v){let E,N,{axisMin:S,axisMax:_,scrollMin:$,scrollMax:V}=m(x),I=V-$;if(d(S)&&d(_))if(x.horiz&&!x.reversed||!x.horiz&&x.reversed?(E=$+I*this.to,N=$+I*this.from):(E=$+I*(1-this.from),N=$+I*(1-this.to)),this.shouldUpdateExtremes(v.DOMType)){let A=v.DOMType!=="mousemove"&&v.DOMType!=="touchmove"&&void 0;x.setExtremes(N,E,!0,A,v)}else this.setRange(this.from,this.to)}))}function b(){let x,v,E,{scrollMin:N,scrollMax:S}=m(this),_=this.scrollbar,$=this.axisTitleMargin+(this.titleOffset||0),V=this.chart.scrollbarsOffsets,I=this.options.margin||0;if(_&&V){if(this.horiz)this.opposite||(V[1]+=$),_.position(this.left,this.top+this.height+2+V[1]-(this.opposite?I:0),this.width,this.height),this.opposite||(V[1]+=I),x=1;else{let A;this.opposite&&(V[0]+=$),A=_.options.opposite?this.left+this.width+2+V[0]-(this.opposite?0:I):this.opposite?0:I,_.position(A,this.top,this.width,this.height),this.opposite&&(V[0]+=I),x=0}if(V[x]+=_.size+(_.options.margin||0),isNaN(N)||isNaN(S)||!d(this.min)||!d(this.max)||this.dataMin===this.dataMax)_.setRange(0,1);else if(this.min===this.max){let A=this.pointRange/(this.dataMax+1);v=A*this.min,E=A*(this.max+1),_.setRange(v,E)}else v=(this.min-N)/(S-N),E=(this.max-N)/(S-N),this.horiz&&!this.reversed||!this.horiz&&this.reversed?_.setRange(v,E):_.setRange(1-E,1-v)}}p.compose=function(x,v){h(l,"Axis.Scrollbar")&&(y=v,c(x,"afterGetOffset",w),c(x,"afterInit",k),c(x,"afterRe
178nder",b))}}(a||(a={})),a}),i(n,"Stock/Scrollbar/ScrollbarDefaults.js",[],function(){return{height:10,barBorderRadius:5,buttonBorderRadius:0,buttonsEnabled:!1,liveRedraw:void 0,margin:void 0,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:0,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"none",trackBackgroundColor:"rgba(255, 255, 255, 0.001)",trackBorderColor:"#cccccc",trackBorderRadius:5,trackBorderWidth:1}}),i(n,"Stock/Scrollbar/Scrollbar.js",[n["Core/Defaults.js"],n["Core/Globals.js"],n["Core/Axis/ScrollbarAxis.js"],n["Stock/Scrollbar/ScrollbarDefaults.js"],n["Core/Utilities.js"]],function(r,s,a,l,c){let{defaultOptions:d}=r,{addEvent:u,correctFloat:h,crisp:p,defined:y,destroyObjectProperties:m,fireEvent:w,merge:k,pick:b,removeEvent:x}=c;class v{static compose(N){a.compose(N,v)}static swapXY(N,S){return S&&N.forEach(_=>{let $,V=_.length;for(let I=0;I<V;I+=2)typeof($=_[I+1])=="number"&&(_[I+1]=_[I+2],_[I+2]=$)}),N}constructor(N,S,_){this._events=[],this.chartX=0,this.chartY=0,this.from=0,this.scrollbarButtons=[],this.scrollbarLeft=0,this.scrollbarStrokeWidth=1,this.scrollbarTop=0,this.size=0,this.to=0,this.trackBorderWidth=1,this.x=0,this.y=0,this.init(N,S,_)}addEvents(){let N=this.options.inverted?[1,0]:[0,1],S=this.scrollbarButtons,_=this.scrollbarGroup.element,$=this.track.element,V=this.mouseDownHandler.bind(this),I=this.mouseMoveHandler.bind(this),A=this.mouseUpHandler.bind(this),L=[[S[N[0]].element,"click",this.buttonToMinClick.bind(this)],[S[N[1]].element,"click",this.buttonToMaxClick.bind(this)],[$,"click",this.trackClick.bind(this)],[_,"mousedown",V],[_.ownerDocument,"mousemove",I],[_.ownerDocument,"mouseup",A],[_,"touchstart",V],[_.ownerDocument,"touchmove",I],[_.ownerDocument,"touchend",A]];L.forEach(function(T){u.apply(null,T)}),this._events=L}buttonToMaxClick(N){let S=(this.to-this.from)*b(this.options.step,.2);this.updatePosition(this.from+S,this.to+S),w(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:N})}buttonToMinClick(N){let S=h(this.to-this.from)*b(this.options.step,.2);this.updatePosition(h(this.from-S),h(this.to-S)),w(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:N})}cursorToScrollbarPosition(N){let S=this.options,_=S.minWidth>this.calculatedWidth?S.minWidth:0;return{chartX:(N.chartX-this.x-this.xOffset)/(this.barWidth-_),chartY:(N.chartY-this.y-this.yOffset)/(this.barWidth-_)}}destroy(){let N=this,S=N.chart.scroller;N.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(_){N[_]&&N[_].destroy&&(N[_]=N[_].destroy())}),S&&N===S.scrollbar&&(S.scrollbar=null,m(S.scrollbarButtons))}drawScrollbarButton(N){let S=this.renderer,_=this.scrollbarButtons,$=this.options,V=this.size,I=S.g().add(this.group);if(_.push(I),$.buttonsEnabled){let A=S.rect().addClass("highcharts-scrollbar-button").add(I);this.chart.styledMode||A.attr({stroke:$.buttonBorderColor,"stroke-width":$.buttonBorderWidth,fill:$.buttonBackgroundColor}),A.attr(A.crisp({x:-.5,y:-.5,width:V,height:V,r:$.buttonBorderRadius},A.strokeWidth()));let L=S.path(v.swapXY([["M",V/2+(N?-1:1),V/2-3],["L",V/2+(N?-1:1),V/2+3],["L",V/2+(N?2:-2),V/2]],$.vertical)).addClass("highcharts-scrollbar-arrow").add(_[N]);this.chart.styledMode||L.attr({fill:$.buttonArrowColor})}}init(N,S,_){this.scrollbarButtons=[],this.renderer=N,this.userOptions=S,this.options=k(l,d.scrollbar,S),this.options.margin=b(this.options.margin,10),this.chart=_,this.size=b(this.options.size,this.options.height),S.enabled&&(this.render(),this.addEvents())}mouseDownHandler(N){var $;let S=(($=this.chart.pointer)==null?void 0:$.normalize(N))||N,_=this.cursorToScrollbarPosition(S);this.chartX=_.chartX,this.chartY=_.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0}mouseMoveHandler(N){var I;let S,_=((I=this.chart.pointer)==null?void 0:I.normalize(N))||N,$=this.options.vertical?"chartY":"chartX",V=this.initPositions||[];this.grabbedCenter&&(!N.touches||N.touches[0][$]!==0)&&(S=this.cursorToScrollbarPosition(_)[$]-this[$],this.hasDragged=!0,this.updatePosition(V[0]+S,V[1]+S),this.hasDragged&&w(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:N.type,DOMEvent:N}))}
vendor: 9,636 bytes, line 178
178mouseUpHandler(N){this.hasDragged&&w(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:N.type,DOMEvent:N}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null}position(N,S,_,$){let{buttonsEnabled:V,margin:I=0,vertical:A}=this.options,L=this.rendered?"animate":"attr",T=$,g=0;this.group.show(),this.x=N,this.y=S+this.trackBorderWidth,this.width=_,this.height=$,this.xOffset=T,this.yOffset=g,A?(this.width=this.yOffset=_=g=this.size,this.xOffset=T=0,this.yOffset=g=V?this.size:0,this.barWidth=$-(V?2*_:0),this.x=N+=I):(this.height=$=this.size,this.xOffset=T=V?this.size:0,this.barWidth=_-(V?2*$:0),this.y=this.y+I),this.group[L]({translateX:N,translateY:this.y}),this.track[L]({width:_,height:$}),this.scrollbarButtons[1][L]({translateX:A?0:_-T,translateY:A?$-g:0})}removeEvents(){this._events.forEach(function(N){x.apply(null,N)}),this._events.length=0}render(){let N=this.renderer,S=this.options,_=this.size,$=this.chart.styledMode,V=N.g("scrollbar").attr({zIndex:S.zIndex}).hide().add();this.group=V,this.track=N.rect().addClass("highcharts-scrollbar-track").attr({r:S.trackBorderRadius||0,height:_,width:_}).add(V),$||this.track.attr({fill:S.trackBackgroundColor,stroke:S.trackBorderColor,"stroke-width":S.trackBorderWidth});let I=this.trackBorderWidth=this.track.strokeWidth();this.track.attr({x:-p(0,I),y:-p(0,I)}),this.scrollbarGroup=N.g().add(V),this.scrollbar=N.rect().addClass("highcharts-scrollbar-thumb").attr({height:_-I,width:_-I,r:S.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=N.path(v.swapXY([["M",-3,_/4],["L",-3,2*_/3],["M",0,_/4],["L",0,2*_/3],["M",3,_/4],["L",3,2*_/3]],S.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),$||(this.scrollbar.attr({fill:S.barBackgroundColor,stroke:S.barBorderColor,"stroke-width":S.barBorderWidth}),this.scrollbarRifles.attr({stroke:S.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-p(0,this.scrollbarStrokeWidth),-p(0,this.scrollbarStrokeWidth)),this.drawScrollbarButton(0),this.drawScrollbarButton(1)}setRange(N,S){let _,$,V=this.options,I=V.vertical,A=V.minWidth,L=this.barWidth,T=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(!y(L))return;let g=L*Math.min(S,1);_=Math.ceil(L*(N=Math.max(N,0))),this.calculatedWidth=$=h(g-_),$<A&&(_=(L-A+$)*N,$=A);let f=Math.floor(_+this.xOffset+this.yOffset),j=$/2-.5;this.from=N,this.to=S,I?(this.scrollbarGroup[T]({translateY:f}),this.scrollbar[T]({height:$}),this.scrollbarRifles[T]({translateY:j}),this.scrollbarTop=f,this.scrollbarLeft=0):(this.scrollbarGroup[T]({translateX:f}),this.scrollbar[T]({width:$}),this.scrollbarRifles[T]({translateX:j}),this.scrollbarLeft=f,this.scrollbarTop=0),$<=12?this.scrollbarRifles.hide():this.scrollbarRifles.show(),V.showFull===!1&&(N<=0&&S>=1?this.group.hide():this.group.show()),this.rendered=!0}shouldUpdateExtremes(N){return b(this.options.liveRedraw,s.svg&&!s.isTouchDevice&&!this.chart.boosted)||N==="mouseup"||N==="touchend"||!y(N)}trackClick(N){var I;let S=((I=this.chart.pointer)==null?void 0:I.normalize(N))||N,_=this.to-this.from,$=this.y+this.scrollbarTop,V=this.x+this.scrollbarLeft;this.options.vertical&&S.chartY>$||!this.options.vertical&&S.chartX>V?this.updatePosition(this.from+_,this.to+_):this.updatePosition(this.from-_,this.to-_),w(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:N})}update(N){this.destroy(),this.init(this.chart.renderer,k(!0,this.options,N),this.chart)}updatePosition(N,S){S>1&&(N=h(1-h(S-N)),S=1),N<0&&(S=h(S-N),N=0),this.from=N,this.to=S}}return v.defaultOptions=l,d.scrollbar=k(!0,v.defaultOptions,d.scrollbar),v}),i(n,"Stock/Navigator/Navigator.js",[n["Core/Axis/Axis.js"],n["Stock/Navigator/ChartNavigatorComposition.js"],n["Core/Defaults.js"],n["Core/Globals.js"],n["Core/Axis/NavigatorAxisComposition.js"],n["Stock/Navigator/NavigatorComposition.js"],n["Stock/Scrollbar/Scrollbar.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Utilities.js"]],function(r,s,a,l,c,d,u,h,p){let{defaultOptions:y}=a,{isTouchDevice:m}=l,{prototype:{symbols:w}}=h,{addEvent:k,clamp:b,correctFloat:x,defined:v,destroyObjectProperties:E,erase:N,extend:S,find:_,fireEvent:$,isArray:V,isNumber:I,merge:A,pick:L,removeEvent:T,splat:g}=p;function f(P,...C){let D=[].filter.call(C,I);if(D.length)return Math[P].apply(0,D)}class j{static compose(C,D,M){s.compose(C,j),d.compose(C,D,M)}constructor(C){this.isDirty=!1,this.scrollbarHeight=0,this.init(C)}drawHandle(C,D,M,z){let J=this.navigatorOptions.handles.height;this.handles[D][z](M?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(C,10)+.5-J)}:{translateX:Math.round(this.left+parseInt(C,10)),translateY:Math.round(this.top+this.height/2-J/2-1)})}drawOutline(C,D,M,z){let J=this.navigatorOptions.maskInside,F=this.outline.strokeWidth(),q=F/2,U=F%2/2,Q=this.scrollButtonSize,ce=this.size,H=this.top,B=this.height,K=H-q,ie=H+B,R=this.left,G,W;M?(G=H+D+U,D=H+C+U,W=[["M",R+B,H-Q-U],["L",R+B,G],["L",R,G],["M",R,D],["L",R+B,D],["L",R+B,H+ce+Q]],J&&W.push(["M",R+B,G-q],["L",R+B,D+q])):(R-=Q,C+=R+Q-U,D+=R+Q-U,W=[["M",R,K],["L",C,K],["L",C,ie],["M",D,ie],["L",D,K],["L",R+ce+2*Q,K]],J&&W.push(["M",C-q,K],["L",D+q,K])),this.outline[z]({d:W})}drawMasks(C,D,M,z){let J,F,q,U,Q=this.left,ce=this.top,H=this.height;M?(q=[Q,Q,Q],U=[ce,ce+C,ce+D],F=[H,H,H],J=[C,D-C,this.size-D]):(q=[Q,Q+C,Q+D],U=[ce,ce,ce],F=[C,D-C,this.size-D],J=[H,H,H]),this.shades.forEach((B,K)=>{B[z]({x:q[K],y:U[K],width:F[K],height:J[K]})})}renderElements(){var Q;let C=this,D=C.navigatorOptions,M=D.maskInside,z=C.chart,J=z.inverted,F=z.renderer,q={cursor:J?"ns-resize":"ew-resize"},U=C.navigatorGroup??(C.navigatorGroup=F.g("navigator").attr({zIndex:8,visibility:"hidden"}).add());if([!M,M,!M].forEach((ce,H)=>{let B=C.shades[H]??(C.shades[H]=F.rect().addClass("highcharts-navigator-mask"+(H===1?"-inside":"-outside")).add(U));z.styledMode||(B.attr({fill:ce?D.maskFill:"rgba(0,0,0,0)"}),H===1&&B.css(q))}),C.outline||(C.outline=F.path().addClass("highcharts-navigator-outline").add(U)),z.styledMode||C.outline.attr({"stroke-width":D.outlineWidth,stroke:D.outlineColor}),(Q=D.handles)==null?void 0:Q.enabled){let ce=D.handles,{height:H,width:B}=ce;[0,1].forEach(K=>{var R;let ie=ce.symbols[K];if(C.handles[K]&&C.handles[K].symbolUrl===ie){if(!C.handles[K].isImg&&C.handles[K].symbolName!==ie){let G=w[ie].call(w,-B/2-1,0,B,H);C.handles[K].attr({d:G}),C.handles[K].symbolName=ie}}else(R=C.handles[K])==null||R.destroy(),C.handles[K]=F.symbol(ie,-B/2-1,0,B,H,ce),C.handles[K].attr({zIndex:7-K}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][K]).add(U),C.addMouseEvents();z.inverted&&C.handles[K].attr({rotation:90,rotationOriginX:Math.floor(-B/2),rotationOriginY:(H+B)/2}),z.styledMode||C.handles[K].attr({fill:ce.backgroundColor,stroke:ce.borderColor,"stroke-width":ce.lineWidth,width:ce.width,height:ce.height,x:-B/2-1,y:0}).css(q)})}}update(C,D=!1){var J;let M=this.chart,z=M.options.chart.inverted!==((J=M.scrollbar)==null?void 0:J.options.vertical);if(A(!0,M.options.navigator,C),this.navigatorOptions=M.options.navigator||{},this.setOpposite(),v(C.enabled)||z)return this.destroy(),this.navigatorEnabled=C.enabled||this.navigatorEnabled,this.init(M);if(this.navigatorEnabled&&(this.isDirty=!0,C.adaptToUpdatedData===!1&&this.baseSeries.forEach(F=>{T(F,"updatedData",this.updatedDataHandler)},this),C.adaptToUpdatedData&&this.baseSeries.forEach(F=>{F.eventsToUnbind.push(k(F,"updatedData",this.updatedDataHandler))},this),(C.series||C.baseSeries)&&this.setBaseSeries(void 0,!1),C.height||C.xAxis||C.yAxis)){this.height=C.height??this.height;let F=this.getXAxisOffsets();this.xAxis.update({...C.xAxis,offsets:F,[M.inverted?"width":"height"]:this.height,[M.inverted?"height":"width"]:void 0},!1),this.yAxis.update({...C.yAxis,[M.inverted?"width":"height"]:this.height},!1)}D&&M.redraw()}render(C,D,M,z){let J=this.chart,F=this.xAxis,q=F.pointRange||0,U=F.navigatorAxis.fake?J.xAxis[0]:F,Q=this.navigatorEnabled,ce=this.rendered,H=J.inverted,B=J.xAxis[0].minRange,K=J.xAxis[0].options.maxRange,ie=this.scrollButtonSize,R,G,W,Y=this.scrollbarHeight,X,re;if(this.hasDragged&&!v(M))return;if(this.isDirty&&this.renderElements(),C=x(C-q/2),D=x(D+q/2),!I(C)||!I(D)){if(!ce)return;M=0,z=L(F.width,U.width)}this.left=L(F.left,J.plotLeft+ie+(H?J.plotWidth:0));let ee=this.size=X=L(F.len,(H?J.plotHeight:J.plotWidth)-2*ie);R=H?Y:X+2*ie,M=L(M,F.toPixels(C,!0)),z=L(z,F.toPixels(D,!0)),I(M)&&Math.abs(M)!==1/0||(M=0,z=R);let se=F.toValue(M,!0),oe=F.toValue(z,!0),he=Math.abs(x(oe-se));he<B?this.grabbedLeft?M=F.toPixels(oe-B-q,!0):this.grabbedRight&&(z=F.toPixels(se+B+q,!0)):v(K)&&x(he-q)>K&&(this.grabbedLeft?M=F.toPixels(oe-K-q,!0):this.grabbedRight&&(z=F.toPixels(se+K+q,!0))),this.zoomedMax=b(Math.max(M,z),0,ee),this.zoomedMin=b(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(M,z),0,ee),this.range=this.zoomedMax-this.zoomedMin,ee=Math.round(this.zoomedMax);let pe=Math.round(this.zoomedMin);Q&&(this.navigatorGroup.attr({visibility:"inherit"}),re=ce&&!this.hasDragged?"animate":"attr",this.drawMasks(pe,ee,H,re),this.drawOutline(pe,ee,H,re),this.navigatorOptions.handles.enabled&&(this.drawHandle(pe,0,H,re),this.drawHandle(ee,1,H,re))),this.scrollbar&&(H?(W=this.top-ie,G=this.left-Y+(Q||!U.opposite?0:(U.titleOffset||0)+U.axisTitleMargin),Y=X+2*ie):(W=this.top+(Q?this.height:-Y),G=this.left-ie),this.scrollbar.position(G,W,R,Y),this.scrollbar.setRange(this.zoomedMin/(X||1),this.zoomedMax/(X||1))),this.rendered=!0,this.isDirty=!1,$(this,"afterRe
178nder")}addMouseEvents(){let C=this,D=C.chart,M=D.container,z=[],J,F;C.mouseMoveHandler=J=function(q){C.onMouseMove(q)},C.mouseUpHandler=F=function(q){C.onMouseUp(q)},(z=C.getPartsEvents("mousedown")).push(k(D.renderTo,"mousemove",J),k(M.ownerDocument,"mouseup",F),k(D.renderTo,"touchmove",J),k(M.ownerDocument,"touchend",F)),z.concat(C.getPartsEvents("touchstart")),C.eventsToUnbind=z,C.series&&C.series[0]&&z.push(k(C.series[0].xAxis,"foundExtremes",function(){D.navigator.modifyNavigatorAxisExtremes()}))}getPartsEvents(C){let D=this,M=[];return["shades","handles"].forEach(function(z){D[z].forEach(function(J,F){M.push(k(J.element,C,function(q){D[z+"Mousedown"](q,F)}))})}),M}shadesMousedown(C,D){var ie;C=((ie=this.chart.pointer)==null?void 0:ie.normalize(C))||C;let M=this.chart,z=this.xAxis,J=this.zoomedMin,F=this.size,q=this.range,U=this.left,Q=C.chartX,ce,H,B,K;M.inverted&&(Q=C.chartY,U=this.top),D===1?(this.grabbedCenter=Q,this.fixedWidth=q,this.dragOffset=Q-J):(K=Q-U-q/2,D===0?K=Math.max(0,K):D===2&&K+q>=F&&(K=F-q,this.reversedExtremes?(K-=q,H=this.getUnionExtremes().dataMin):ce=this.getUnionExtremes().dataMax),K!==J&&(this.fixedWidth=q,v((B=z.navigatorAxis.toFixedRange(K,K+q,H,ce)).min)&&$(this,"setRange",{min:Math.min(B.min,B.max),max:Math.max(B.min,B.max),redraw:!0,eventArguments:{trigger:"navigator"}})))}handlesMousedown(C,D){var F;C=((F=this.chart.pointer)==null?void 0:F.normalize(C))||C;let M=this.chart,z=M.xAxis[0],J=this.reversedExtremes;D===0?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=J?z.min:z.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=J?z.max:z.min),M.setFixedRange(void 0)}onMouseMove(C){var ce;let D=this,M=D.chart,z=D.navigatorSize,J=D.range,F=D.dragOffset,q=M.inverted,U=D.left,Q;(!C.touches||C.touches[0].pageX!==0)&&(Q=(C=((ce=M.pointer)==null?void 0:ce.normalize(C))||C).chartX,q&&(U=D.top,Q=C.chartY),D.grabbedLeft?(D.hasDragged=!0,D.render(0,0,Q-U,D.otherHandlePos)):D.grabbedRight?(D.hasDragged=!0,D.render(0,0,D.otherHandlePos,Q-U)):D.grabbedCenter&&(D.hasDragged=!0,Q<F?Q=F:Q>z+F-J&&(Q=z+F-J),D.render(0,0,Q-F,Q-F+J)),D.hasDragged&&D.scrollbar&&L(D.scrollbar.options.liveRedraw,!m&&!this.chart.boosted)&&(C.DOMType=C.type,setTimeout(function(){D.onMouseUp(C)},0)))}onMouseUp(C){let D,M,z,J,F,q,U=this.chart,Q=this.xAxis,ce=this.scrollbar,H=C.DOMEvent||C,B=U.inverted,K=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!ce||!ce.hasDragged)||C.trigger==="scrollbar")&&(z=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?J=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(F=this.fixedExtreme),this.zoomedMax===this.size&&(F=this.reversedExtremes?z.dataMin:z.dataMax),this.zoomedMin===0&&(J=this.reversedExtremes?z.dataMax:z.dataMin),v((q=Q.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,J,F)).min)&&$(this,"setRange",{min:Math.min(q.min,q.max),max:Math.max(q.min,q.max),redraw:!0,animation:!this.hasDragged&&null,eventArguments:{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:H}})),C.DOMType!=="mousemove"&&C.DOMType!=="touchmove"&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&I(this.zoomedMin)&&I(this.zoomedMax)&&(M=Math.round(this.zoomedMin),D=Math.round(this.zoomedMax),this.shades&&this.drawMasks(M,D,B,K),this.outline&&this.drawOutline(M,D,B,K),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(M,0,B,K),this.drawHandle(D,1,B,K)))}removeEvents(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(C){C()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()}removeBaseSeriesEvents(){let C=this.baseSeries||[];this.navigatorEnabled&&C[0]&&(this.navigatorOptions.adaptToUpdatedData!==!1&&C.forEach(function(D){T(D,"updatedData",this.updatedDataHandler)},this),C[0].xAxis&&T(C[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))}getXAxisOffsets(){return this.chart.inverted?[this.scrollButtonSize,0,-this.scrollButtonSize,0]:[0,-this.scrollButtonSize,0,this.scrollButtonSize]}init(C){var R;let D=C.options,M=D.navigator||{},z=M.enabled,J=D.scrollbar||{},F=J.enabled,q=z&&M.height||0,U=F&&J.height||0,Q=J.buttonsEnabled&&U||0;this.handles=[],this.shades=[],this.chart=C,this.setBaseSeries(),this.height=q,this.scrollbarHeight=U,this.scrollButtonSize=Q,this.scrollbarEnabled=F,this.navigatorEnabled=z,this.navigatorOptions=M,this.scrollbarOptions=J,this.setOpposite();let ce=this,H=ce.baseSeries,B=C.xAxis.length,K=C.yAxis.length,ie=H&&H[0]&&H[0].xAxis||C.xAxis[0]||{options:{}};if(C.isDirtyBox=!0,ce.navigatorEnabled){let G=this.getXAxisOffsets();ce.xAxis=new r(C,A({breaks:ie.options.breaks,ordinal:ie.options.ordinal,overscroll:ie.options.overscroll},M.xAxis,{type:"datetime",yAxis:(R=M.yAxis)==null?void 0:R.id,index:B,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:ie.options.ordinal?0:ie.options.minPadding,maxPadding:ie.options.ordinal?0:ie.options.maxPadding,zoomEnabled:!1},C.inverted?{offsets:G,width:q}:{offsets:G,height:q}),"xAxis"),ce.yAxis=new r(C,A(M.yAxis,{alignTicks:!1,offset:0,index:K,isInternal:!0,reversed:L(M.yAxis&&M.yAxis.reversed,C.yAxis[0]&&C.yAxis[0].reversed,!1),zoomEnabled:!1},C.inverted?{width:q}:{height:q}),"yAxis"),H||M.series.data?ce.updateNavigatorSeries(!1):C.series.length===0&&(ce.unbindRedraw=k(C,"beforeRedraw",function(){C.series.length>0&&!ce.series&&(ce.setBaseSeries(),ce.unbindRedraw())})),ce.reversedExtremes=C.inverted&&!ce.xAxis.reversed||!C.inverted&&ce.xAxis.reversed,ce.renderElements(),ce.addMouseEvents()}else ce.xAxis={chart:C,navigatorAxis:{fake:!0},translate:function(G,W){let Y=C.xAxis[0],X=Y.getExtremes(),re=Y.len-2*Q,ee=f("min",Y.options.min,X.dataMin),se=f("max",Y.options.max,X.dataMax)-ee;return W?G*se/re+ee:re*(G-ee)/se},toPixels:function(G){return this.translate(G)},toValue:function(G){return this.translate(G,!0)}},ce.xAxis.navigatorAxis.axis=ce.xAxis,ce.xAxis.navigatorAxis.toFixedRange=c.prototype.toFixedRange.bind(ce.xAxis.navigatorAxis);if(C.options.scrollbar.enabled){let G=A(C.options.scrollbar,{vertical:C.inverted});!I(G.margin)&&ce.navigatorEnabled&&(G.margin=C.inverted?-3:3),C.scrollbar=ce.scrollbar=new u(C.renderer,G,C),k(ce.scrollbar,"changed",function(W){let Y=ce.size,X=Y*this.to,re=Y*this.from;ce.hasDragged=ce.scrollbar.hasDragged,ce.render(0,0,re,X),this.shouldUpdateExtremes(W.DOMType)&&setTimeout(function(){ce.onMouseUp(W)})})}ce.addBaseSeriesEvents(),ce.addChartEvents()}setOpposite(){let C=this.navigatorOptions,D=this.navigatorEnabled,M=this.chart;this.opposite=L(C.opposite,!!(!D&&M.inverted))}getUnionExtremes(C){let D,M=this.chart.xAxis[0],z=this.xAxis,J=z.options,F=M.options;return C&&M.dataMin===null||(D={dataMin:L(J&&J.min,f("min",F.min,M.dataMin,z.dataMin,z.min)),dataMax:L(J&&J.max,f("max",F.max,M.dataMax,z.dataMax,z.max))}),D}setBaseSeries(C,D){let M=this.chart,z=this.baseSeries=[];C=C||M.options&&M.options.navigator.baseSeries||(M.series.length?_(M.series,J=>
vendor: 4,757 bytes, line 178
178!J.options.isInternal).index:0),(M.series||[]).forEach((J,F)=>{!J.options.isInternal&&(J.options.showInNavigator||(F===C||J.options.id===C)&&J.options.showInNavigator!==!1)&&z.push(J)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,D)}updateNavigatorSeries(C,D){var B,K;let M=this,z=M.chart,J=M.baseSeries,F={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:(B=this.navigatorOptions.xAxis)==null?void 0:B.id,yAxis:(K=this.navigatorOptions.yAxis)==null?void 0:K.id,showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},q=M.series=(M.series||[]).filter(ie=>{let R=ie.baseSeries;return!(0>J.indexOf(R))||(R&&(T(R,"updatedData",M.updatedDataHandler),delete R.navigatorSeries),ie.chart&&ie.destroy(),!1)}),U,Q,ce=M.navigatorOptions.series,H;J&&J.length&&J.forEach(ie=>{let R=ie.navigatorSeries,G=S({color:ie.color,visible:ie.visible},V(ce)?y.navigator.series:ce);if(R&&M.navigatorOptions.adaptToUpdatedData===!1)return;F.name="Navigator "+J.length,H=(U=ie.options||{}).navigatorOptions||{},G.dataLabels=g(G.dataLabels),(Q=A(U,F,G,H)).pointRange=L(G.pointRange,H.pointRange,y.plotOptions[Q.type||"line"].pointRange);let W=H.data||G.data;M.hasNavigatorData=M.hasNavigatorData||!!W,Q.data=W||U.data&&U.data.slice(0),R&&R.options?R.update(Q,D):(ie.navigatorSeries=z.initSeries(Q),z.setSortedData(),ie.navigatorSeries.baseSeries=ie,q.push(ie.navigatorSeries))}),(ce.data&&!(J&&J.length)||V(ce))&&(M.hasNavigatorData=!1,(ce=g(ce)).forEach((ie,R)=>{F.name="Navigator "+(q.length+1),(Q=A(y.navigator.series,{color:z.series[R]&&!z.series[R].options.isInternal&&z.series[R].color||z.options.colors[R]||z.options.colors[0]},F,ie)).data=ie.data,Q.data&&(M.hasNavigatorData=!0,q.push(z.initSeries(Q)))})),C&&this.addBaseSeriesEvents()}addBaseSeriesEvents(){let C=this,D=C.baseSeries||[];D[0]&&D[0].xAxis&&D[0].eventsToUnbind.push(k(D[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),D.forEach(M=>{M.eventsToUnbind.push(k(M,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),M.eventsToUnbind.push(k(M,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),this.navigatorOptions.adaptToUpdatedData!==!1&&M.xAxis&&M.eventsToUnbind.push(k(M,"updatedData",this.updatedDataHandler)),M.eventsToUnbind.push(k(M,"remove",function(){D&&N(D,M),this.navigatorSeries&&(N(C.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})}getBaseSeriesMin(C){return this.baseSeries.reduce(function(D,M){return Math.min(D,M.xData&&M.xData.length?M.xData[0]:D)},C)}modifyNavigatorAxisExtremes(){let C=this.xAxis;if(C.getExtremes!==void 0){let D=this.getUnionExtremes(!0);D&&(D.dataMin!==C.min||D.dataMax!==C.max)&&(C.min=D.dataMin,C.max=D.dataMax)}}modifyBaseAxisExtremes(){var R;let C,D,M=this.chart.navigator,z=this.getExtremes(),J=z.min,F=z.max,q=z.dataMin,U=z.dataMax,Q=F-J,ce=M.stickToMin,H=M.stickToMax,B=L((R=this.ordinal)==null?void 0:R.convertOverscroll(this.options.overscroll),0),K=M.series&&M.series[0],ie=!!this.setExtremes;!(this.eventArgs&&this.eventArgs.trigger==="rangeSelectorButton")&&(ce&&(C=(D=q)+Q),H&&(C=U+B,ce||(D=Math.max(q,C-Q,M.getBaseSeriesMin(K&&K.xData?K.xData[0]:-Number.MAX_VALUE)))),ie&&(ce||H)&&I(D)&&(this.min=this.userMin=D,this.max=this.userMax=C)),M.stickToMin=M.stickToMax=null}updatedDataHandler(){let C=this.chart.navigator,D=this.navigatorSeries,M=C.reversedExtremes?Math.round(C.zoomedMin)===0:Math.round(C.zoomedMax)>=Math.round(C.size);C.stickToMax=L(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,M),C.stickToMin=C.shouldStickToMin(this,C),D&&!C.hasNavigatorData&&(D.options.pointStart=this.xData[0],D.setData(this.options.data,!1,null,!1))}shouldStickToMin(C,D){let M=D.getBaseSeriesMin(C.xData[0]),z=C.xAxis,J=z.max,F=z.min,q=z.options.range;return!!(I(J)&&I(F))&&(q&&J-M>0?J-M<q:F<=M)}addChartEvents(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(k(this.chart,"redraw",function(){let C=this.navigator,D=C&&(C.baseSeries&&C.baseSeries[0]&&C.baseSeries[0].xAxis||this.xAxis[0]);D&&C.render(D.min,D.max)}),k(this.chart,"getMargins",function(){let C=this.navigator,D=C.opposite?"plotTop":"marginBottom";this.inverted&&(D=C.opposite?"marginRight":"plotLeft"),this[D]=(this[D]||0)+(C.navigatorEnabled||!this.inverted?C.height+C.scrollbarHeight:0)+C.navigatorOptions.margin}),k(j,"setRange",function(C){this.chart.xAxis[0].setExtremes(C.min,C.max,C.redraw,C.animation,C.eventArguments)}))}destroy(){this.removeEvents(),this.xAxis&&(N(this.chart.xAxis,this.xAxis),N(this.chart.axes,this.xAxis)),this.yAxis&&(N(this.chart.yAxis,this.yAxis),N(this.chart.axes,this.yAxis)),(this.series||[]).forEac
178h(C=>{C.destroy&&C.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(C=>{this[C]&&this[C].destroy&&this[C].destroy(),this[C]=null}),[this.handles].forEach(C=>{E(C)}),this.navigatorEnabled=!1}}return j}),i(n,"Core/Axis/OrdinalAxis.js",[n["Core/Axis/Axis.js"],n["Core/Globals.js"],n["Core/Series/Series.js"],n["Core/Utilities.js"]],function(r,s,a,l){var c;let{addEvent:d,correctFloat:u,css:h,defined:p,error:y,isNumber:m,pick:w,timeUnits:k,isString:b}=l;return function(x){function v(f,j,P,C,D=[],M=0,z){let J={},F=this.options.tickPixelInterval,q=this.chart.time,U=[],Q,ce,H,B,K,ie=0,R=[],G=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!D||D.length<3||j===void 0)return q.getTimeTicks.apply(q,arguments);let W=D.length;for(Q=0;Q<W;Q++){if(K=Q&&D[Q-1]>P,D[Q]<j&&(ie=Q),Q===W-1||D[Q+1]-D[Q]>5*M||K){if(D[Q]>G){for(ce=q.getTimeTicks(f,D[ie],D[Q],C);ce.length&&ce[0]<=G;)ce.shift();ce.length&&(G=ce[ce.length-1]),U.push(R.length),R=R.concat(ce)}ie=Q+1}if(K)break}if(ce){if(B=ce.info,z&&B.unitRange<=k.hour){for(ie=1,Q=R.length-1;ie<Q;ie++)q.dateFormat("%d",R[ie])!==q.dateFormat("%d",R[ie-1])&&(J[R[ie]]="day",H=!0);H&&(J[R[0]]="day"),B.higherRanks=J}B.segmentStarts=U,R.info=B}else y(12,!1,this.chart);if(z&&p(F)){let Y=R.length,X=[],re=[],ee,se,oe,he,pe,ne=Y;for(;ne--;)se=this.translate(R[ne]),oe&&(re[ne]=oe-se),X[ne]=oe=se;for(re.sort((te,ae)=>te-ae),(he=re[Math.floor(re.length/2)])<.6*F&&(he=null),ne=R[Y-1]>P?Y-1:Y,oe=void 0;ne--;)pe=Math.abs(oe-(se=X[ne])),oe&&pe<.8*F&&(he===null||pe<.8*he)?(J[R[ne]]&&!J[R[ne+1]]?(ee=ne+1,oe=se):ee=ne,R.splice(ee,1)):oe=se}return R}function E(f){let j=this.ordinal.positions;if(!j)return f;let P=j.length-1,C;return f<0?f=j[0]:f>P?f=j[P]:(P=Math.floor(f),C=f-P),C!==void 0&&j[P]!==void 0?j[P]+(C?C*(j[P+1]-j[P]):0):f}function N(f){let j=this.ordinal,P=this.old?this.old.min:this.min,C=this.old?this.old.transA:this.transA,D=j.getExtendedPositions();if(D&&D.length){let M=u((f-P)*C+this.minPixelPadding),z=u(j.getIndexOfPoint(M,D)),J=u(z%1);if(z>=0&&z<=D.length-1){let F=D[Math.floor(z)],q=D[Math.ceil(z)];return D[Math.floor(z)]+J*(q-F)}}return f}function S(f,j){let P=x.Additions.findIndexOf(f,j,!0);if(f[P]===j)return P;let C=(j-f[P])/(f[P+1]-f[P]);return P+C}function _(){this.ordinal||(this.ordinal=new x.Additions(this))}function $(){let{eventArgs:f,options:j}=this;if(this.isXAxis&&p(j.overscroll)&&j.overscroll!==0&&m(this.max)&&m(this.min)&&(this.options.ordinal&&!this.ordinal.originalOrdinalRange&&this.ordinal.getExtendedPositions(!1),this.max===this.dataMax&&((f==null?void 0:f.trigger)!=="pan"||this.isInternal)&&(f==null?void 0:f.trigger)!=="navigator")){let P=this.ordinal.convertOverscroll(j.overscroll);this.max+=P,!this.isInternal&&p(this.userMin)&&(f==null?void 0:f.trigger)!=="mousewheel"&&(this.min+=P)}}function V(){this.horiz&&!this.isDirty&&(this.isDirty=this.isOrdinal&&this.chart.navigator&&!this.chart.navigator.adaptToUpdatedData)}function I(){this.ordinal&&(this.ordinal.beforeSetTickPositions(),this.tickInterval=this.ordinal.postProcessTickInterval(this.tickInterval))}function A(f){let j=this.xAxis[0],P=j.ordinal.convertOverscroll(j.options.overscroll),C=f.originalEvent.chartX,D=this.options.chart.panning,M=!1;if(D&&D.type!=="y"&&j.options.ordinal&&j.series.length&&(!f.touches||f.touches.length<=1)){let z,J,F=this.mouseDownX,q=j.getExtremes(),U=q.dataMin,Q=q.dataMax,ce=q.min,H=q.max,B=this.hoverPoints,K=j.closestPointRange||j.ordinal&&j.ordinal.overscrollPointsRange,ie=Math.round((F-C)/(j.translationSlope*(j.ordinal.slope||K))),R=j.ordinal.getExtendedPositions(),G={ordinal:{positions:R,extendedOrdinalPositions:R}},W=j.index2val,Y=j.val2lin;if(ce<=U&&ie<0||H+P>=Q&&ie>0)return;G.ordinal.positions?Math.abs(ie)>1&&(B&&B.forEach(function(X){X.setState()}),Q>(J=G.ordinal.positions)[J.length-1]&&J.push(Q),this.setFixedRange(H-ce),(z=j.navigatorAxis.toFixedRange(void 0,void 0,W.apply(G,[Y.apply(G,[ce,!0])+ie]),W.apply(G,[Y.apply(G,[H,!0])+ie]))).min>=Math.min(q.dataMin,ce)&&z.max<=Math.max(Q,H)+P&&j.setExtremes(z.min,z.max,!0,!1,{trigger:"pan"}),this.mouseDownX=C,h(this.container,{cursor:"move"})):M=!0}else M=!0;M||D&&/y/.test(D.type)?P&&(j.max=j.dataMax+P):f.preventDefault()}function L(){let f=this.xAxis;f&&f.options.ordinal&&(delete f.ordinal.index,delete f.ordinal.originalOrdinalRange)}function T(f,j){let P,C=this.ordinal,D=C.positions,M=C.slope,z;if(!D)return f;let J=D.length;if(D[0]<=f&&D[J-1]>=f)P=S(D,f);else{if(!((z=C.getExtendedPositions&&C.getExtendedPositions())&&z.length))return f;let F=z.length;M||(M=(z[F-1]-z[0])/F);let q=S(z,D[0]);if(f>
178=z[0]&&f<=z[F-1])P=S(z,f)-q;else{if(!j)return f;P=f<z[0]?-q-(z[0]-f)/M:(f-z[F-1])/M+F-q}}return j?P:M*(P||0)+C.offset}x.compose=function(f,j,P){let C=f.prototype;return C.ordinal2lin||(C.getTimeTicks=v,C.index2val=E,C.lin2val=N,C.val2lin=T,C.ordinal2lin=C.val2lin,d(f,"afterInit",_),d(f,"foundExtremes",$),d(f,"afterSetScale",V),d(f,"initialAxisTranslation",I),d(P,"pan",A),d(P,"touchpan",A),d(j,"updatedData",L)),f};class g{constructor(j){this.index={},this.axis=j}beforeSetTickPositions(){var Y;let j=this.axis,P=j.ordinal,C=j.getExtremes(),D=C.min,M=C.max,z=(Y=j.brokenAxis)==null?void 0:Y.hasBreaks,J=j.options.ordinal,F,q,U,Q,ce,H,B,K=[],ie=Number.MAX_VALUE,R=!1,G=!1,W=!1;if(J||z){let X=0;if(j.series.forEach(function(re,ee){if(q=[],ee>0&&re.options.id!=="highcharts-navigator-series"&&re.processedXData.length>1&&(G=X!==re.processedXData[1]-re.processedXData[0]),X=re.processedXData[1]-re.processedXData[0],re.boosted&&(W=re.boosted),re.reserveSpace()&&(re.takeOrdinalPosition!==!1||z)&&(F=(K=K.concat(re.processedXData)).length,K.sort(function(se,oe){return se-oe}),ie=Math.min(ie,w(re.closestPointRange,ie)),F)){for(ee=0;ee<F-1;)K[ee]!==K[ee+1]&&q.push(K[ee+1]),ee++;q[0]!==K[0]&&q.unshift(K[0]),K=q}}),j.ordinal.originalOrdinalRange||(j.ordinal.originalOrdinalRange=(K.length-1)*ie),G&&W&&(K.pop(),K.shift()),(F=K.length)>2){for(U=K[1]-K[0],B=F-1;B--&&!R;)K[B+1]-K[B]!==U&&(R=!0);!j.options.keepOrdinalPadding&&(K[0]-D>U||M-K[K.length-1]>U)&&(R=!0)}else j.options.overscroll&&(F===2?ie=K[1]-K[0]:F===1?(ie=j.ordinal.convertOverscroll(j.options.overscroll),K=[K[0],K[0]+ie]):ie=P.overscrollPointsRange);R||j.forceOrdinal?(j.options.overscroll&&(P.overscrollPointsRange=ie,K=K.concat(P.getOverscrollPositions())),P.positions=K,Q=j.ordinal2lin(Math.max(D,K[0]),!0),ce=Math.max(j.ordinal2lin(Math.min(M,K[K.length-1]),!0),1),P.slope=H=(M-D)/(ce-Q),P.offset=D-Q*H):(P.overscrollPointsRange=w(j.closestPointRange,P.overscrollPointsRange),P.positions=j.ordinal.slope=P.offset=void 0)}j.isOrdinal=J&&R,P.groupIntervalFactor=null}static findIndexOf(j,P,C){let D=0,M=j.length-1,z;for(;D<M;)j[z=Math.ceil((D+M)/2)]<=P?D=z:M=z-1;return j[D]===P||C?D:-1}getExtendedPositions(j=!0){var H;let P=this,C=P.axis,D=C.constructor.prototype,M=C.chart,z=(H=C.series[0])==null?void 0:H.currentDataGrouping,J=z?z.count+z.unitName:"raw",F=j?C.ordinal.convertOverscroll(C.options.overscroll):0,q=C.getExtremes(),U,Q,ce=P.index;return ce||(ce=P.index={}),ce[J]||((U={series:[],chart:M,forceOrdinal:!1,getExtremes:function(){return{min:q.dataMin,max:q.dataMax+F}},applyGrouping:D.applyGrouping,getGroupPixelWidth:D.getGroupPixelWidth,getTimeTicks:D.getTimeTicks,options:{ordinal:!0},ordinal:{getGroupIntervalFactor:this.getGroupIntervalFactor},ordinal2lin:D.ordinal2lin,getIndexOfPoint:D.getIndexOfPoint,val2lin:D.val2lin}).ordinal.axis=U,C.series.forEach(function(B){var K,ie,R;Q={xAxis:U,xData:B.xData.slice(),chart:M,groupPixelWidth:B.groupPixelWidth,destroyGroupedData:s.noop,getProcessedData:a.prototype.getProcessedData,applyGrouping:a.prototype.applyGrouping,reserveSpace:a.prototype.reserveSpace,visible:B.visible},j&&(Q.xData=Q.xData.concat(P.getOverscrollPositions())),Q.options={dataGrouping:z?{firstAnchor:(K=B.options.dataGrouping)==null?void 0:K.firstAnchor,anchor:(ie=B.options.dataGrouping)==null?void 0:ie.anchor,lastAnchor:(R=B.options.dataGrouping)==null?void 0:R.firstAnchor,enabled:!0,forced:!0,approximation:"open",units:[[z.unitName,[z.count]]]}:{enabled:!1}},U.series.push(Q),B.processData.apply(Q)}),U.applyGrouping({hasExtremesChanged:!0}),(Q==null?void 0:Q.closestPointRange)!==(Q==null?void 0:Q.basePointRange)&&Q.currentDataGrouping&&(U.forceOrdinal=!0),C.ordinal.beforeSetTickPositions.apply({axis:U}),!C.ordinal.originalOrdinalRange&&U.ordinal.originalOrdinalRange&&(C.ordinal.originalOrdinalRange=U.ordinal.originalOrdinalRange),ce[J]=U.ordinal.positions),ce[J]}getGroupIntervalFactor(j,P,C){let D=C.processedXData,M=D.length,z=[],J,F,q=this.groupIntervalFactor;if(!q){for(F=0;F<M-1;F++)z[F]=D[F+1]-D[F];z.sort(function(U,Q){return U-Q}),J=z[Math.floor(M/2)],j=Math.max(j,D[0]),P=Math.min(P,D[M-1]),this.groupIntervalFactor=q=M*J/(P-j)}return q}getIndexOfPoint(j,P){let C,D=this.axis,M=0,z=function(q){let{min:U,max:Q}=D;return!!(p(U)&&p(Q))&&q.points.some(ce=>ce.x>=U&&ce.x<=Q)};
178D.series.forEach(q=>{var Q;let U=(Q=q.points)==null?void 0:Q[0];p(U==null?void 0:U.plotX)&&(U.plotX<C||!p(C))&&z(q)&&(C=U.plotX,M=U.x)}),C??(C=D.minPixelPadding);let J=D.translationSlope*(this.slope||D.closestPointRange||this.overscrollPointsRange),F=u((j-C)/J);return g.findIndexOf(P,M,!0)+F}getOverscrollPositions(){let j=this.axis,P=this.convertOverscroll(j.options.overscroll),C=this.overscrollPointsRange,D=[],M=j.dataMax;if(p(C))for(;M<=j.dataMax+P;)D.push(M+=C);return D}postProcessTickInterval(j){let P=this.axis,C=this.slope;return C?P.options.breaks?P.closestPointRange||j:j/(C/P.closestPointRange):j}convertOverscroll(j=0){let P=this,C=P.axis,D=function(M){return w(P.originalOrdinalRange,p(C.dataMax)&&p(C.dataMin)?C.dataMax-C.dataMin:0)*M};if(b(j)){let M=parseInt(j,10);if(/%$/.test(j))return D(M/100);if(/px/.test(j)){let z=Math.min(M,.9*C.len)/C.len;return D(z/(1-z))}return 0}return j}}x.Additions=g}(c||(c={})),c}),i(n,"Stock/RangeSelector/RangeSelectorDefaults.js",[],function(){return{lang:{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"â"},rangeSelector:{allButtonsEnabled:!1,buttons:void 0,buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%e %b %Y",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"#334eff",cursor:"pointer",fontSize:"0.8em"},labelStyle:{color:"#666666",fontSize:"0.8em"}}}}),i(n,"Stock/RangeSelector/RangeSelectorComposition.js",[n["Core/Defaults.js"],n["Core/Globals.js"],n["Stock/RangeSelector/RangeSelectorDefaults.js"],n["Core/Utilities.js"]],function(r,s,a,l){let c,{defaultOptions:d}=r,{composed:u}=s,{addEvent:h,defined:p,extend:y,isNumber:m,merge:w,pick:k,pushUnique:b}=l,x=[];function v(){let I,A,L=this.range,T=L.type,g=this.max,f=this.chart.time,j=function(C,D){let M=T==="year"?"FullYear":"Month",z=new f.Date(C),J=f.get(M,z);return f.set(M,z,J+D),J===f.get(M,z)&&f.set("Date",z,0),z.getTime()-C};m(L)?(I=g-L,A=L):L&&(I=g+j(g,-(L.count||1)),this.chart&&this.chart.setFixedRange(g-I));let P=k(this.dataMin,Number.MIN_VALUE);return m(I)||(I=P),I<=P&&(I=P,A===void 0&&(A=j(I,L.count)),this.newMax=Math.min(I+A,k(this.dataMax,Number.MAX_VALUE))),m(g)?!m(L)&&L&&L._offsetMin&&(I+=L._offsetMin):I=void 0,I}function E(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new c(this))}function N(){let I=this.rangeSelector;if(I){m(I.deferredYTDClick)&&(I.clickButton(I.deferredYTDClick),delete I.deferredYTDClick);let A=I.options.verticalAlign;I.options.floating||(A==="bottom"?this.extraBottomMargin=!0:A==="middle"||(this.extraTopMargin=!0))}}function S(){let I,A=this.rangeSelector;if(!A)return;let L=this.xAxis[0].getExtremes(),T=this.legend,g=A&&A.options.verticalAlign;m(L.min)&&A.render(L.min,L.max),T.display&&g==="top"&&g===T.options.verticalAlign&&(I=w(this.spacingBox),T.options.layout==="vertical"?I.y=this.plotTop:I.y+=A.getHeight(),T.group.placed=!1,T.align(I))}function _(){for(let I=0,A=x.length;I<A;++I){let L=x[I];if(L[0]===this){L[1].forEach(T=>T()),x.splice(I,1);return}}}function $(){let I=this.rangeSelector;if(I){let A=I.getHeight();this.extraTopMargin&&(this.plotTop+=A),this.extraBottomMargin&&(this.marginBottom+=A)}}function V(I){let A=I.options.rangeSelector,L=this.extraBottomMargin,T=this.extraTopMargin,g=this.rangeSelector;if(A&&A.enabled&&!p(g)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=g=new c(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,g){let f=A&&A.verticalAlign||g.options&&g.options.verticalAlign;g.options.floating||(f==="bottom"?this.extraBottomMargin=!0:f==="middle"||(this.extraTopMargin=!0)),(this.extraBottomMargin!==L||this.extraTopMargin!==T)&&(this.isDirtyBox=!0)}}return{compose:function(I,A,L){if(c=L,b(u,"RangeSelector")){let T=A.prototype;I.prototype.minFromRange=v,h(A,"afterGetContainer",E),h(A,"beforeRender",N),h(A,"destroy",_),h(A,"getMargins",$),h(A,"redraw",S
178),h(A,"update",V),T.callbacks.push(S),y(d,{rangeSelector:a.rangeSelector}),y(d.lang,a.lang)}}}}),i(n,"Stock/RangeSelector/RangeSelector.js",[n["Core/Axis/Axis.js"],n["Core/Defaults.js"],n["Core/Globals.js"],n["Stock/RangeSelector/RangeSelectorComposition.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"],n["Core/Axis/OrdinalAxis.js"]],function(r,s,a,l,c,d,u){let{defaultOptions:h}=s,{addEvent:p,createElement:y,css:m,defined:w,destroyObjectProperties:k,discardElement:b,extend:x,fireEvent:v,isNumber:E,merge:N,objectEach:S,pad:_,pick:$,pInt:V,splat:I}=d;class A{static compose(T,g){l.compose(T,g,A)}constructor(T){this.buttonOptions=A.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.init(T)}clickButton(T,g){let f=this.chart,j=this.buttonOptions[T],P=f.xAxis[0],C=f.scroller&&f.scroller.getUnionExtremes()||P||{},D=j.type,M=j.dataGrouping,z=C.dataMin,J=C.dataMax,F,q=P&&Math.round(Math.min(P.max,$(J,P.max))),U,Q=j._range,ce,H,B,K=!0;if(z!==null&&J!==null){if(this.setSelected(T),M&&(this.forcedDataGrouping=!0,r.prototype.setDataGrouping.call(P||{chart:this.chart},M,!1),this.frozenStates=j.preserveDataGrouping),D==="month"||D==="year")P?(H={range:j,max:q,chart:f,dataMin:z,dataMax:J},F=P.minFromRange.call(H),E(H.newMax)&&(q=H.newMax),K=!1):Q=j;else if(Q)q=Math.min((F=Math.max(q-Q,z))+Q,J),K=!1;else if(D==="ytd")if(P)(J===void 0||z===void 0)&&(z=Number.MAX_VALUE,J=Number.MIN_VALUE,f.series.forEach(ie=>{let R=ie.xData;R&&(z=Math.min(R[0],z),J=Math.max(R[R.length-1],J))}),g=!1),F=ce=(B=this.getYTDExtremes(J,z,f.time.useUTC)).min,q=B.max;else{this.deferredYTDClick=T;return}else D==="all"&&P&&(f.navigator&&f.navigator.baseSeries[0]&&(f.navigator.baseSeries[0].xAxis.options.range=void 0),F=z,q=J);if(K&&j._offsetMin&&w(F)&&(F+=j._offsetMin),j._offsetMax&&w(q)&&(q+=j._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=T+1),P)P.setExtremes(F,q,$(g,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:j}),f.setFixedRange(j._range);else{U=I(f.options.xAxis)[0];let ie=p(f,"afterGetAxes",function(){let R=f.xAxis[0];R.range=R.options.range=Q,R.min=R.options.min=ce});p(f,"load",function(){let R=f.xAxis[0];f.setFixedRange(j._range),R.options.range=U.range,R.options.min=U.min,ie()})}v(this,"afterBtnClick")}}setSelected(T){this.selected=this.options.selected=T}init(T){let g=this,f=T.options.rangeSelector,j=f.buttons||g.defaultButtons.slice(),P=f.selected,C=function(){let D=g.minInput,M=g.maxInput;D&&D.blur&&v(D,"blur"),M&&M.blur&&v(M,"blur")};g.chart=T,g.options=f,g.buttons=[],g.buttonOptions=j,this.eventsToUnbind=[],this.eventsToUnbind.push(p(T.container,"mousedown",C)),this.eventsToUnbind.push(p(T,"resize",C)),j.forEach(g.computeButtonRange),P!==void 0&&j[P]&&this.clickButton(P,!1),this.eventsToUnbind.push(p(T,"load",function(){T.xAxis&&T.xAxis[0]&&p(T.xAxis[0],"setExtremes",function(D){E(this.max)&&E(this.min)&&this.max-this.min!==T.fixedRange&&D.trigger!=="rangeSelectorButton"&&D.trigger!=="updatedData"&&g.forcedDataGrouping&&!g.frozenStates&&this.setDataGrouping(!1,!1)})})),this.createElements()}updateButtonStates(){let T=this,g=this.chart,f=this.dropdown,j=this.dropdownLabel,P=g.xAxis[0],C=Math.round(P.max-P.min),D=!P.hasVisibleSeries,M=24*36e5,z=g.scroller&&g.scroller.getUnionExtremes()||P,J=z.dataMin,F=z.dataMax,q=T.getYTDExtremes(F,J,g.time.useUTC),U=q.min,Q=q.max,ce=T.selected,H=T.options.allButtonsEnabled,B=Array(T.buttonOptions.length).fill(0),K=E(ce),ie=T.buttons,R=!1,G=null;T.buttonOptions.forEach((W,Y)=>{var de;let X=W._range,re=W.type,ee=W.count||1,se=W._offsetMax-W._offsetMin,oe=Y===ce,he=X>F-J,pe=X<P.minRange,ne=!1,te=X===C;if(oe&&he&&(R=!0),P.isOrdinal&&((de=P.ordinal)==null?void 0:de.positions)&&X&&C<X){let ue=P.ordinal.positions,me=u.Additions.findIndexOf(ue,P.min,!0),ge=Math.min(u.Additions.findIndexOf(ue,P.max,!0)+1,ue.length-1);ue[ge]-ue[me]>X&&(te=!0)}else(re==="month"||re==="year")&&C+36e5>={month:28,year:365}[re]*M*ee-se&&C-36e5<={month:31,year:366}[re]*M*ee+se?te=!0:re==="ytd"?(te=Q-U+se===C,ne=!oe):re==="all"&&(te=P.max-P.min>=F-J);let ae=!H&&!(R&&re==="all")&&(he||pe||D),le=R&&re==="all"||!ne&&te||oe&&T.frozenStates;ae?B[Y]=3:le&&(!K||Y===ce)&&(G=Y)}),G!==null?(B[G]=2,T.setSelected(G)):(T.setSelected(),j&&(j.setState(0),j.attr({text:(h.lang.rangeSelectorZoom||"")+" â¾"})));for(let W=0;W<B.length;W++){let Y=B[W],X=ie[W];if(X.state!==Y&&(X.setState(Y),f)){f.options[W+1].disabled=Y===3,Y===2&&(j&&(j.setState(2),j.attr({text:T.buttonOptions[W].text+" â¾"})),f.selectedIndex=W+1);let re=j.getBBox();m(f,{width:`${re.width}px`,height:`${re.height}px`})}}}computeButtonRange(T){let g=T.type,f=T.count||1,j={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};j[g]?T._range=j[g]*f:(g==="month"||g==="year")&&(T._range=24*{month:30,year:365}[g]*36e5*f),T._offsetMin=$(T.offsetMin,0),T._offsetMax=$(T.offsetMax,0),T._range+=T._offsetMax-T._offsetMin}
178getInputValue(T){let g=T==="min"?this.minInput:this.maxInput,f=this.chart.options.rangeSelector,j=this.chart.time;return g?(g.type==="text"&&f.inputDateParser||this.defaultInputDateParser)(g.value,j.useUTC,j):0}setInputValue(T,g){let f=this.options,j=this.chart.time,P=T==="min"?this.minInput:this.maxInput,C=T==="min"?this.minDateBox:this.maxDateBox;if(P){let D=P.getAttribute("data-hc-time"),M=w(D)?Number(D):void 0;if(w(g)){let z=M;w(z)&&P.setAttribute("data-hc-time-previous",z),P.setAttribute("data-hc-time",g),M=g}P.value=j.dateFormat(this.inputTypeFormats[P.type]||f.inputEditDateFormat,M),C&&C.attr({text:j.dateFormat(f.inputDateFormat,M)})}}setInputExtremes(T,g,f){let j=T==="min"?this.minInput:this.maxInput;if(j){let P=this.inputTypeFormats[j.type],C=this.chart.time;if(P){let D=C.dateFormat(P,g);j.min!==D&&(j.min=D);let M=C.dateFormat(P,f);j.max!==M&&(j.max=M)}}}showInput(T){let g=T==="min"?this.minDateBox:this.maxDateBox,f=T==="min"?this.minInput:this.maxInput;if(f&&g&&this.inputGroup){let j=f.type==="text",{translateX:P=0,translateY:C=0}=this.inputGroup,{x:D=0,width:M=0,height:z=0}=g,{inputBoxWidth:J}=this.options;m(f,{width:j?M+(J?-2:20)+"px":"auto",height:z-2+"px",border:"2px solid silver"}),j&&J?m(f,{left:P+D+"px",top:C+"px"}):m(f,{left:Math.min(Math.round(D+P-(f.offsetWidth-M)/2),this.chart.chartWidth-f.offsetWidth)+"px",top:C-(f.offsetHeight-z)/2+"px"})}}hideInput(T){let g=T==="min"?this.minInput:this.maxInput;g&&m(g,{top:"-9999em",border:0,width:"1px",height:"1px"})}defaultInputDateParser(T,g,f){let j=T.split("/").join("-").split(" ").join("T");if(j.indexOf("T")===-1&&(j+="T00:00"),g)j+="Z";else{let C;if(a.isSafari&&!((C=j).length>6&&(C.lastIndexOf("-")===C.length-6||C.lastIndexOf("+")===C.length-6))){let D=new Date(j).getTimezoneOffset()/60;j+=D<=0?`+${_(-D)}:00`:`-${_(D)}:00`}}let P=Date.parse(j);if(!E(P)){let C=T.split("-");P=Date.UTC(V(C[0]),V(C[1])-1,V(C[2]))}return f&&g&&E(P)&&(P+=f.getTimezoneOffset(P)),P}drawInput(T){let{chart:g,div:f,inputGroup:j}=this,P=this,C=g.renderer.style||{},D=g.renderer,M=g.options.rangeSelector,z=h.lang,J=T==="min";function F(B){var ee;let{maxInput:K,minInput:ie}=P,R=g.xAxis[0],G=((ee=g.scroller)==null?void 0:ee.getUnionExtremes())||R,W=G.dataMin,Y=G.dataMax,X=g.xAxis[0].getExtremes()[B],re=P.getInputValue(B);E(re)&&re!==X&&(J&&K&&E(W)?re>Number(K.getAttribute("data-hc-time"))?re=void 0:re<W&&(re=W):ie&&E(Y)&&(re<Number(ie.getAttribute("data-hc-time"))?re=void 0:re>Y&&(re=Y)),re!==void 0&&R.setExtremes(J?re:R.min,J?R.max:re,void 0,void 0,{trigger:"rangeSelectorInput"}))}let q=z[J?"rangeSelectorFrom":"rangeSelectorTo"]||"",U=D.label(q,0).addClass("highcharts-range-label").attr({padding:q?2:0,height:q?M.inputBoxHeight:0}).add(j),Q=D.label("",0).addClass("highcharts-range-input").attr({padding:2,width:M.inputBoxWidth,height:M.inputBoxHeight,"text-align":"center"}).on("click",function(){P.showInput(T),P[T+"Input"].focus()});g.styledMode||Q.attr({stroke:M.inputBoxBorderColor,"stroke-width":1}),Q.add(j);let ce=y("input",{name:T,className:"highcharts-range-selector"},void 0,f);ce.setAttribute("type",function(B){if(B.indexOf("%L")!==-1)return"text";let K=["a","A","d","e","w","b","B","m","o","y","Y"].some(R=>B.indexOf("%"+R)!==-1),ie=["H","k","I","l","M","S"].some(R=>B.indexOf("%"+R)!==-1);return K&&ie?"datetime-local":K?"date":ie?"time":"text"}(M.inputDateFormat||"%e %b %Y")),g.styledMode||(U.css(N(C,M.labelStyle)),Q.css(N({color:"#333333"},C,M.inputStyle)),m(ce,x({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:C.fontSize,fontFamily:C.fontFamily,top:"-9999em"},M.inputStyle))),ce.onfocus=()=>{P.showInput(T)},ce.onblur=()=>{ce===a.doc.activeElement&&F(T),P.hideInput(T),P.setInputValue(T),ce.blur()};let H=!1;return ce.onchange=()=>{H||(F(T),P.hideInput(T),ce.blur())},ce.onkeypress=B=>{B.keyCode===13&&F(T)},ce.onkeydown=B=>{H=!0,(B.key==="ArrowUp"||B.key==="ArrowDown"||B.key==="Tab")&&F(T)},ce.onkeyup=()=>{H=!1},{dateBox:Q,input:ce,label:U}}getPosition(){let T=this.chart,g=T.options.rangeSelector,f=g.verticalAlign==="top"?T.plotTop-T.axisOffset[0]:0;return{buttonTop:f+g.buttonPosition.y,inputTop:f+g.inputPosition.y-10}}getYTDExtremes(T,g,f){let j=this.chart.time,P=new j.Date(T),C=j.get("FullYear",P),D=Math.max(g,f?j.Date.UTC(C,0,1):+new j.Date(C,0,1)),M=P.getTime();return{max:Math.min(T||M,M),min:D}}createElements(){var M;let T=this.chart,g=T.renderer,f=T.container,j=T.options,P=j.rangeSelector,C=P.inputEnabled,D=$((M=j.chart.style)==null?void 0:M.zIndex,0)+1;if(P.enabled!==!1&&(this.group=g.g("range-selector-group").attr({zIndex:7}).add(),this.div=y("div",void 0,{position:"relative",height:0,zIndex:D}),this.buttonOptions.length&&this.renderButtons(),f.parentNode&&f.parentNode.insertBefore(this.div,f),C)){this.inputGroup=g.g("input-group").add(this.group);let z=this.drawInput("min");this.minDateBox=z.dateBox,this.minLabel=z.label,this.minInput=z.input;let J=this.drawInput("max");this.maxDateBox=J.dateBox,this.maxLabel=J.label,this.maxInput=J.input}}render(T,g){let f=this.chart,j=f.options.rangeSelector,P=j.inputEnabled;if(j.enabled!==!1){if(P){this.setInputValue("min",T),this.setInputValue("max",g);let C=f.scroller&&f.scroller.getUnionExtremes()||f.xAxis[0]||{};if(w(C.dataMin)&&w(C.dataMax)){let D=f.xAxis[0].minRange||0;this.setInputExtremes("min",C.dataMin,Math.min(C.dataMax,this.getInputValue("max"))-D),this.setInputExtremes("max",Math.max(C.dataMin,this.getInputValue("min"))+D,C.dataMax)}if(this.inputGroup){let D=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEac
178h(M=>{if(M){let{width:z}=M.getBBox();z&&(M.attr({x:D}),D+=z+j.inputSpacing)}})}}this.alignElements(),this.updateButtonStates()}}renderButtons(){var U;let{buttons:T,chart:g,options:f}=this,j=h.lang,P=g.renderer,C=N(f.buttonTheme),D=C&&C.states,M=C.width||28;delete C.width,delete C.states,this.buttonGroup=P.g("range-selector-buttons").add(this.group);let z=this.dropdown=y("select",void 0,{position:"absolute",padding:0,border:0,cursor:"pointer",opacity:1e-4},this.div),J=(U=g.userOptions.rangeSelector)==null?void 0:U.buttonTheme;this.dropdownLabel=P.button("",0,0,()=>{},N(C,{"stroke-width":$(C["stroke-width"],0),width:"auto",paddingLeft:$(f.buttonTheme.paddingLeft,J==null?void 0:J.padding,8),paddingRight:$(f.buttonTheme.paddingRight,J==null?void 0:J.padding,8)}),D&&D.hover,D&&D.select,D&&D.disabled).hide().add(this.group),p(z,"touchstart",()=>{z.style.fontSize="16px"});let F=a.isMS?"mouseover":"mouseenter",q=a.isMS?"mouseout":"mouseleave";p(z,F,()=>{v(this.dropdownLabel.element,F)}),p(z,q,()=>{v(this.dropdownLabel.element,q)}),p(z,"change",()=>{v(this.buttons[z.selectedIndex-1].element,"click")}),this.zoomText=P.label(j.rangeSelectorZoom||"",0).attr({padding:f.buttonTheme.padding,height:f.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(f.labelStyle),C["stroke-width"]=$(C["stroke-width"],0)),y("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,z),this.buttonOptions.forEach((Q,ce)=>{y("option",{textContent:Q.title||Q.text},void 0,z),T[ce]=P.button(Q.text,0,0,H=>{let B,K=Q.events&&Q.events.click;K&&(B=K.call(Q,H)),B!==!1&&this.clickButton(ce),this.isActive=!0},C,D&&D.hover,D&&D.select,D&&D.disabled).attr({"text-align":"center",width:M}).add(this.buttonGroup),Q.title&&T[ce].attr("title",Q.title)})}alignElements(){var ce;let{buttonGroup:T,buttons:g,chart:f,group:j,inputGroup:P,options:C,zoomText:D}=this,M=f.options,z=M.exporting&&M.exporting.enabled!==!1&&M.navigation&&M.navigation.buttonOptions,{buttonPosition:J,inputPosition:F,verticalAlign:q}=C,U=(H,B)=>z&&this.titleCollision(f)&&q==="top"&&B.align==="right"&&B.y-H.getBBox().height-12<(z.y||0)+(z.height||0)+f.spacing[0]?-40:0,Q=f.plotLeft;if(j&&J&&F){let H=J.x-f.spacing[3];if(T){if(this.positionButtons(),!this.initialButtonGroupWidth){let re=0;D&&(re+=D.getBBox().width+5),g.forEach((ee,se)=>{re+=ee.width||0,se!==g.length-1&&(re+=C.buttonSpacing)}),this.initialButtonGroupWidth=re}Q-=f.spacing[3];let X=U(T,J);this.alignButtonGroup(X),(ce=this.buttonGroup)!=null&&ce.translateY&&this.dropdownLabel.attr({y:this.buttonGroup.translateY}),j.placed=T.placed=f.hasLoaded}let B=0;P&&(B=U(P,F),F.align==="left"?H=Q:F.align==="right"&&(H=-Math.max(f.axisOffset[1],-B)),P.align({y:F.y,width:P.getBBox().width,align:F.align,x:F.x+H-2},!0,f.spacingBox),P.placed=f.hasLoaded),this.handleCollision(B),j.align({verticalAlign:q},!0,f.spacingBox);let K=j.alignAttr.translateY,ie=j.getBBox().height+20,R=0;if(q==="bottom"){let X=f.legend&&f.legend.options;R=K-(ie=ie+(X&&X.verticalAlign==="bottom"&&X.enabled&&!X.floating?f.legend.legendHeight+$(X.margin,10):0)-20)-(C.floating?0:C.y)-(f.titleOffset?f.titleOffset[2]:0)-10}q==="top"?(C.floating&&(R=0),f.titleOffset&&f.titleOffset[0]&&(R=f.titleOffset[0]),R+=f.margin[0]-f.spacing[0]||0):q==="middle"&&(F.y===J.y?R=K:(F.y||J.y)&&(F.y<0||J.y<0?R-=Math.min(F.y,J.y):R=K-ie)),j.translate(C.x,C.y+Math.floor(R));
178let{minInput:G,maxInput:W,dropdown:Y}=this;C.inputEnabled&&G&&W&&(G.style.marginTop=j.translateY+"px",W.style.marginTop=j.translateY+"px"),Y&&(Y.style.marginTop=j.translateY+"px")}}alignButtonGroup(T,g){let{chart:f,options:j,buttonGroup:P}=this,{buttonPosition:C}=j,D=f.plotLeft-f.spacing[3],M=C.x-f.spacing[3];C.align==="right"?M+=T-D:C.align==="center"&&(M-=D/2),P&&P.align({y:C.y,width:$(g,this.initialButtonGroupWidth),align:C.align,x:M},!0,f.spacingBox)}positionButtons(){let{buttons:T,chart:g,options:f,zoomText:j}=this,P=g.hasLoaded?"animate":"attr",{buttonPosition:C}=f,D=g.plotLeft,M=D;j&&j.visibility!=="hidden"&&(j[P]({x:$(D+C.x,D)}),M+=C.x+j.getBBox().width+5);for(let z=0,J=this.buttonOptions.length;z<J;++z)T[z].visibility!=="hidden"?(T[z][P]({x:M}),M+=(T[z].width||0)+f.buttonSpacing):T[z][P]({x:D})}handleCollision(T){let{chart:g,buttonGroup:f,inputGroup:j}=this,{buttonPosition:P,dropdown:C,inputPosition:D}=this.options,M=()=>{let F=0;return this.buttons.forEach(q=>{let U=q.getBBox();U.width>F&&(F=U.width)}),F},z=F=>{if(j!=null&&j.alignOptions&&f){let q=j.alignAttr.translateX+j.alignOptions.x-T+j.getBBox().x+2,U=j.alignOptions.width||0,Q=f.alignAttr.translateX+f.getBBox().x;return Q+F>q&&q+U>Q&&P.y<D.y+j.getBBox().height}return!1},J=()=>{j&&f&&j.attr({translateX:j.alignAttr.translateX+(g.axisOffset[1]>=-T?0:-T),translateY:j.alignAttr.translateY+f.getBBox().height+10})};if(f){if(C==="always"){this.collapseButtons(),z(M())&&J();return}C==="never"&&this.expandButtons()}j&&f?D.align===P.align||z(this.initialButtonGroupWidth+20)?C==="responsive"?(this.collapseButtons(),z(M())&&J()):J():C==="responsive"&&this.expandButtons():f&&C==="responsive"&&(this.initialButtonGroupWidth>g.plotWidth?this.collapseButtons():this.expandButtons())}collapseButtons(){let{buttons:T,zoomText:g}=this;this.isCollapsed!==!0&&(this.isCollapsed=!0,g.hide(),T.forEach(f=>void f.hide()),this.showDropdown())}expandButtons(){let{buttons:T,zoomText:g}=this;this.isCollapsed!==!1&&(this.isCollapsed=!1,this.hideDropdown(),g.show(),T.forEach(f=>void f.show()),this.positionButtons())}showDropdown(){let{buttonGroup:T,chart:g,dropdownLabel:f,dropdown:j}=this;if(T&&j){let{translateX:P=0,translateY:C=0}=T,D=g.plotLeft+P;f.attr({x:D,y:C}).show(),m(j,{left:D+"px",top:C+"px",visibility:"inherit"}),this.hasVisibleDropdown=!0}}hideDropdown(){let{dropdown:T}=this;T&&(this.dropdownLabel.hide(),m(T,{visibility:"hidden",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)}getHeight(){let T=this.options,g=this.group,f=T.inputPosition,j=T.buttonPosition,P=T.y,C=j.y,D=f.y,M=0;if(T.height)return T.height;this.alignElements(),M=g?g.getBBox(!0).height+13+P:0;let z=Math.min(D,C);return(D<0&&C<0||D>0&&C>0)&&(M+=Math.abs(z)),M}titleCollision(T){return!(T.options.title.text||T.options.subtitle.text)}update(T,g=!0){let f=this.chart;N(!0,f.options.rangeSelector,T),this.destroy(),this.init(f),g&&this.render()}destroy(){let T=this,g=T.minInput,f=T.maxInput;T.eventsToUnbind&&(T.eventsToUnbind.forEach(j=>j()),T.eventsToUnbind=void 0),k(T.buttons),g&&(g.onfocus=g.onblur=g.onchange=null),f&&(f.onfocus=f.onblur=f.onchange=null),S(T,function(j,P){j&&P!=="chart"&&(j instanceof c?j.destroy():j instanceof e.HTMLElement&&b(j)),j!==A.prototype[P]&&(T[P]=null)},this)}}return x(A.prototype,{defaultButtons:[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}],inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}}),A}),i(n,"Core/Chart/StockChart.js",[n["Core/Chart/Chart.js"],n["Core/Templating.js"],n["Core/Defaults.js"],n["Stock/Navigator/NavigatorDefaults.js"],n["Stock/RangeSelector/RangeSelectorDefaults.js"],n["Stock/Scrollbar/ScrollbarDefaults.js"],n["Stock/Utilities/StockUtilities.js"],n["Core/Utilities.js"]],function(r,s,a,l,c,d,u,h){let{format:p}=s,{getOptions:y}=a,{setFixedRange:m}=u,{addEvent:w,clamp:k,crisp:b,defined:x,extend:v,find:E,isNumber:N,isString:S,merge:_,pick:$,splat:V}=h;function I(T,g,f){var j,P;return T==="xAxis"?{minPadding:0,maxPadding:0,overscroll:0,ordinal:!0}:T==="yAxis"?{labels:{y:-2},opposite:f.opposite??g.opposite??!0,showLastLabel:!!(g.categories||g.type==="category"),title:{text:((j=f.title)==null?void 0:j.text)!=="Values"?(P=f.title)==null?void 0:P.text:null}}:{}}
178function A(T,g){if(T==="xAxis"){let f=$(g.navigator&&g.navigator.enabled,l.enabled,!0),j={type:"datetime",categories:void 0};return f&&(j.startOnTick=!1,j.endOnTick=!1),j}return{}}class L extends r{init(g,f){let j=y(),P=g.xAxis,C=g.yAxis,D=$(g.navigator&&g.navigator.enabled,l.enabled,!0);g.xAxis=g.yAxis=void 0;let M=_({chart:{panning:{enabled:!0,type:"x"},zooming:{pinchType:"x",mouseWheel:{type:"x"}}},navigator:{enabled:D},scrollbar:{enabled:$(d.enabled,!0)},rangeSelector:{enabled:$(c.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:$(j.tooltip&&j.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1}},g,{isStock:!0});g.xAxis=P,g.yAxis=C,M.xAxis=V(g.xAxis||{}).map(z=>_(I("xAxis",z,j.xAxis),z,A("xAxis",g))),M.yAxis=V(g.yAxis||{}).map(z=>_(I("yAxis",z,j.yAxis),z)),super.init(M,f)}createAxis(g,f){return f.axis=_(I(g,f.axis,y()[g]),f.axis,A(g,this.userOptions)),super.createAxis(g,f)}}return w(r,"update",function(T){let g=T.options;"scrollbar"in g&&this.navigator&&(_(!0,this.options.scrollbar,g.scrollbar),this.navigator.update({enabled:!!this.navigator.navigatorEnabled}),delete g.scrollbar)}),function(T){function g(J){if(!this.crosshair||!this.crosshair.label||!this.crosshair.label.enabled||!this.cross||!N(this.min)||!N(this.max))return;let F=this.chart,q=this.logarithmic,U=this.crosshair.label,Q=this.horiz,ce=this.opposite,H=this.left,B=this.top,K=this.width,ie=this.options.tickPosition==="inside",R=this.crosshair.snap!==!1,G=J.e||this.cross&&this.cross.e,W=J.point,Y=this.crossLabel,X,re,ee=U.format,se="",oe,he=0,pe=this.min,ne=this.max;q&&(pe=q.lin2log(this.min),ne=q.lin2log(this.max));let te=Q?"center":ce?this.labelAlign==="right"?"right":"left":this.labelAlign==="left"?"left":"center";Y||(Y=this.crossLabel=F.renderer.label("",0,void 0,U.shape||"callout").addClass("highcharts-crosshair-label highcharts-color-"+(W&&W.series?W.series.colorIndex:this.series[0]&&this.series[0].colorIndex)).attr({align:U.align||te,padding:$(U.padding,8),r:$(U.borderRadius,3),zIndex:2}).add(this.labelGroup),F.styledMode||Y.attr({fill:U.backgroundColor||W&&W.series&&W.series.color||"#666666",stroke:U.borderColor||"","stroke-width":U.borderWidth||0}).css(v({color:"#ffffff",fontWeight:"normal",fontSize:"0.7em",textAlign:"center"},U.style||{}))),Q?(X=R?(W.plotX||0)+H:G.chartX,re=B+(ce?0:this.height)):(X=H+this.offset+(ce?K:0),re=R?(W.plotY||0)+B:G.chartY),ee||U.formatter||(this.dateTime&&(se="%b %d, %Y"),ee="{value"+(se?":"+se:"")+"}");let ae=R?this.isXAxis?W.x:W.y:this.toValue(Q?G.chartX:G.chartY),le=W&&W.series?W.series.isPointInside(W):N(ae)&&ae>pe&&ae<ne,de="";ee?de=p(ee,{value:ae},F):U.formatter&&N(ae)&&(de=U.formatter.call(this,ae)),Y.attr({text:de,x:X,y:re,visibility:le?"inherit":"hidden"});let ue=Y.getBBox();!N(Y.x)||Q||ce||(X=Y.x-ue.width/2),N(Y.y)&&(Q?(ie&&!ce||!ie&&ce)&&(re=Y.y-ue.height):re=Y.y-ue.height/2),oe=Q?{left:H,right:H+this.width}:{left:this.labelAlign==="left"?H:0,right:this.labelAlign==="right"?H+this.width:F.chartWidth};let me=Y.translateX||0;me<oe.left&&(he=oe.left-me),me+ue.width>=oe.right&&(he=-(me+ue.width-oe.right)),Y.attr({x:X+he,y:re,anchorX:Q?X:this.opposite?0:F.chartWidth,anchorY:Q?this.opposite?F.chartHeight:0:re+ue.height/2})}function f(){this.crossLabel&&(this.crossLabel=this.crossLabel.hide())}function j(J){let F=this.chart,q=this.options,U=F._labelPanes=F._labelPanes||{},Q=q.labels;if(F.options.isStock&&this.coll==="yAxis"){let ce=q.top+","+q.height;!U[ce]&&Q.enabled&&(Q.distance===15&&this.side===1&&(Q.distance=0),Q.align===void 0&&(Q.align="right"),U[ce]=this,J.align="right",J.preventDefault())}}function P(){let J=this.chart,F=this.options&&this.options.top+","+this.options.height;F&&J._labelPanes&&J._labelPanes[F]===this&&delete J._labelPanes[F]}function C(J){let F=this,q=F.isLinked&&!F.series&&F.linkedParent?F.linkedParent.series:F.series,U=F.chart,Q=U.renderer,ce=F.left,H=F.top,B=[],K=J.translatedValue,ie=J.value,R=J.force,G,W,Y,X,re=[],ee,se;if(U.options.isStock&&J.acrossPanes!==!1&&F.coll==="xAxis"||F.coll==="yAxis"){for(let oe of(J.preventDefault(),re=(he=>{let pe=he==="xAxis"?"yAxis":"xAxis",ne=F.options[pe];return N(ne)?[U[pe][ne]]:S(ne)?[U.get(ne)]:q.map(te=>te[pe])})(F.coll),F.isXAxis?U.yAxis:U.xAxis))if(!oe.options.isInternal){let he=oe.isXAxis?"yAxis":"xAxis";F===(x(oe.options[he])?U[he][oe.options[he]]:U[he][0])&&re.push(oe)}for(let oe of(ee=re.length?[]:[F.isXAxis?U.yAxis[0]:U.xAxis[0]],re))ee.indexOf(oe)!==-1||E(ee,he=>he.pos===oe.pos&&he.len===oe.len)||ee.push(oe);if(N(se=$(K,F.translate(ie||0,void 0,void 0,J.old))))if(F.horiz)for(let oe of ee){let he;X=(W=oe.pos)+oe.len,G=Y=Math.round(se+F.transB),R!=="pass"&&(G<ce||G>ce+F.width)&&(R?G=Y=k(G,ce,ce+F.width):he=!0),he||B.push(["M",G,W],["L",Y,X])}else for(let oe of ee){let he;Y=(G=oe.pos)+oe.len,W=X=Math.round(H+F.height-se),R!=="pass"&&(W<H||W>H+F.height)&&(R?W=X=k(W,H,H+F.height):he=!0),he||B.push(["M",G,W],["L",Y,X])}J.path=B.length>0?Q.crispPolyLine(B,J.lineWidth||1):void 0}}function D(J){if(this.chart.options.isStock){let F;this.is("column")||this.is("columnrange")?F={borderWidth:0,shadow:!1}:this.is("scatter")||this.is("sma")||(F={marker:{enabled:!1,radius:2}}),F&&(J.plotOptions[this.type]=_(J.plotOptions[this.type],F))}}function M(){let J=this.chart,F=this.options.dataGrouping;return this.allowDG!==!1&&F&&$(F.enabled,J.options.isStock)}function z(J,F){for(let q=0;q<J.length;q+=2){let U=J[q],Q=J[q+1];x(U[1])&&U[1]===Q[1]&&(U[1]=Q[1]=b(U[1],F)),x(U[2])&&U[2]===Q[2]&&(U[2]=Q[2]=b(U[2],F))}return J}
178T.compose=function(J,F,q,U){let Q=q.prototype;Q.forceCropping||(w(F,"afterDrawCrosshair",g),w(F,"afterHideCrosshair",f),w(F,"autoLabelAlign",j),w(F,"destroy",P),w(F,"getPlotLinePath",C),J.prototype.setFixedRange=m,Q.forceCropping=M,w(q,"setOptions",D),U.prototype.crispPolyLine=z)},T.stockChart=function(J,F,q){return new T(J,F,q)}}(L||(L={})),L}),i(n,"Series/HLC/HLCPoint.js",[n["Core/Series/SeriesRegistry.js"]],function(r){let{column:{prototype:{pointClass:s}}}=r.seriesTypes;return class extends s{}}),i(n,"Series/HLC/HLCSeriesDefaults.js",[],function(){return{lineWidth:1,tooltip:{pointFormat:'<span style="color:{point.color}">â</span> <b> {series.name}</b><br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0}}),i(n,"Series/HLC/HLCSeries.js",[n["Series/HLC/HLCPoint.js"],n["Series/HLC/HLCSeriesDefaults.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s,a,l){let{column:c}=a.seriesTypes,{crisp:d,extend:u,merge:h}=l;class p extends c{extendStem(m,w,k){let b=m[0],x=m[1];typeof b[2]=="number"&&(b[2]=Math.max(k+w,b[2])),typeof x[2]=="number"&&(x[2]=Math.min(k-w,x[2]))}getPointPath(m,w){let k=w.strokeWidth(),b=m.series,x=d(m.plotX||0,k),v=Math.round(m.shapeArgs.width/2),E=[["M",x,Math.round(m.yBottom)],["L",x,Math.round(m.plotHigh)]];if(m.close!==null){let N=d(m.plotClose,k);E.push(["M",x,N],["L",x+v,N]),b.extendStem(E,k/2,N)}return E}drawSinglePoint(m){let w=m.series,k=w.chart,b,x=m.graphic;m.plotY!==void 0&&(x||(m.graphic=x=k.renderer.path().add(w.group)),k.styledMode||x.attr(w.pointAttribs(m,m.selected&&"select")),b=w.getPointPath(m,x),x[x?"animate":"attr"]({d:b}).addClass(m.getClassName(),!0))}drawPoints(){this.points.forEach(this.drawSinglePoint)}init(){super.init.apply(this,arguments),this.options.stacking=void 0}pointAttribs(m,w){let k=super.pointAttribs.call(this,m,w);return delete k.fill,k}toYData(m){return[m.high,m.low,m.close]}translate(){let m=this,w=m.yAxis,k=this.pointArrayMap&&this.pointArrayMap.slice()||[],b=k.map(x=>`plot${x.charAt(0).toUpperCase()+x.slice(1)}`);b.push("yBottom"),k.push("low"),super.translate.apply(m),m.points.forEach(function(x){k.forEach(function(v,E){let N=x[v];N!==null&&(m.dataModify&&(N=m.dataModify.modifyValue(N)),x[b[E]]=w.toPixels(N,!0))}),x.tooltipPos[1]=x.plotHigh+w.pos-m.chart.plotTop})}}return p.defaultOptions=h(c.defaultOptions,s),u(p.prototype,{pointClass:r,animate:null,directTouch:!1,pointArrayMap:["high","low","close"],pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointValKey:"close"}),a.registerSeriesType("hlc",p),p}),i(n,"Series/OHLC/OHLCPoint.js",[n["Core/Series/SeriesRegistry.js"]],function(r){let{seriesTypes:{hlc:s}}=r;class a extends s.prototype.pointClass{getClassName(){return super.getClassName.call(this)+(this.open<this.close?" highcharts-point-up":" highcharts-point-down")}resolveUpColor(){this.open<this.close&&!this.options.color&&this.series.options.upColor&&(this.color=this.series.options.upColor)}resolveColor(){super.resolveColor(),this.series.is("heikinashi")||this.resolveUpColor()}getZone(){let c=super.getZone();return this.resolveUpColor(),c}applyOptions(){return super.applyOptions.apply(this,arguments),this.resolveColor&&this.resolveColor(),this}}return a}),i(n,"Series/OHLC/OHLCSeriesDefaults.js",[],function(){return{tooltip:{pointFormat:'<span style="color:{point.color}">â</span> <b> {series.name}</b><br/>Open: {point.open}<br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>'}}}),i(n,"Series/OHLC/OHLCSeries.js",[n["Core/Globals.js"],n["Series/OHLC/OHLCPoint.js"],n["Series/OHLC/OHLCSeriesDefaults.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s,a,l,c){let{composed:d}=r,{hlc:u}=l.seriesTypes,{addEvent:h,crisp:p,extend:y,merge:m,pushUnique:w}=c;function k(v){let E=v.options,N=E.dataGrouping;N&&E.useOhlcData&&E.id!=="highcharts-navigator-series"&&(N.approximation="ohlc")}function b(v){let E=v.options;E.useOhlcData&&E.id!=="highcharts-navigator-series"&&y(this,{pointValKey:x.prototype.pointValKey,pointArrayMap:x.prototype.pointArrayMap,toYData:x.prototype.toYData})}class x extends u{static compose(E,...N){w(d,"OHLCSeries")&&(h(E,"afterSetOptions",k),h(E,"init",b))}getPointPath(E,N){let S=super.getPointPath(E,N),_=N.strokeWidth(),$=p(E.plotX||0,_),V=Math.round(E.shapeArgs.width/2);if(E.open!==null){let I=p(E.plotOpen,_);S.push(["M",$,I],["L",$-V,I]),super.extendStem(S,_/2,I)}return S}pointAttribs(E,N){let S=super.pointAttribs.call(this,E,N),_=this.options;return delete S.fill,!E.options.color&&_.upColor&&E.open<E.close&&(S.stroke=_.upColor),S}toYData(E){return[E.open,E.high,E.low,E.close]}}return x.defaultOptions=m(u.defaultOptions,a),y(x.prototype,{pointClass:s,pointArrayMap:["open","high","low","close"]}),l.registerSeriesType("ohlc",x),x}),i(n,"Series/Candlestick/CandlestickSeriesDefaults.js",[],function(){return{states:{hover:{lineWidth:2}},threshold:null,lineColor:"#000000",lineWidth:1,upColor:"#ffffff",stickyTracking:!0}}),i(n,"Series/Candlestick/CandlestickSeries.js",[n["Series/Candlestick/CandlestickSeriesDefaults.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s,a){let{column:l,ohlc:c}
178=s.seriesTypes,{crisp:d,merge:u}=a;class h extends c{pointAttribs(y,m){let w=l.prototype.pointAttribs.call(this,y,m),k=this.options,b=y.open<y.close,x=k.lineColor||this.color,v=y.color||this.color;if(w["stroke-width"]=k.lineWidth,w.fill=y.options.color||b&&k.upColor||v,w.stroke=y.options.lineColor||b&&k.upLineColor||x,m){let E=k.states[m];w.fill=E.color||w.fill,w.stroke=E.lineColor||w.stroke,w["stroke-width"]=E.lineWidth||w["stroke-width"]}return w}drawPoints(){let y=this.points,m=this.chart,w=this.yAxis.reversed;for(let k of y){let b=k.graphic,x,v,E,N,S,_,$,V,I,A=!b;if(k.plotY!==void 0){b||(k.graphic=b=m.renderer.path().add(this.group)),this.chart.styledMode||b.attr(this.pointAttribs(k,k.selected&&"select")).shadow(this.options.shadow);let L=b.strokeWidth();$=d(k.plotX||0,L),E=Math.min(x=k.plotOpen,v=k.plotClose),N=Math.max(x,v),I=Math.round(k.shapeArgs.width/2),S=w?N!==k.yBottom:Math.round(E)!==Math.round(k.plotHigh||0),_=w?Math.round(E)!==Math.round(k.plotHigh||0):N!==k.yBottom,E=d(E,L),N=d(N,L),(V=[]).push(["M",$-I,N],["L",$-I,E],["L",$+I,E],["L",$+I,N],["Z"],["M",$,E],["L",$,S?Math.round(w?k.yBottom:k.plotHigh):E],["M",$,N],["L",$,_?Math.round(w?k.plotHigh:k.yBottom):N]),b[A?"attr":"animate"]({d:V}).addClass(k.getClassName(),!0)}}}}return h.defaultOptions=u(c.defaultOptions,{tooltip:c.defaultOptions.tooltip},r),s.registerSeriesType("candlestick",h),h}),i(n,"Series/Flags/FlagsPoint.js",[n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s){let{column:{prototype:{pointClass:a}}}=r.seriesTypes,{isNumber:l}=s;return class extends a{constructor(){super(...arguments),this.ttBelow=!1}isValid(){return l(this.y)||this.y===void 0}hasNewShapeType(){let c=this.options.shape||this.series.options.shape;return this.graphic&&c&&c!==this.graphic.symbolKey}}}),i(n,"Series/Flags/FlagsSeriesDefaults.js",[],function(){return{borderRadius:0,pointRange:0,allowOverlapX:!1,shape:"flag",stackDistance:12,textAlign:"center",tooltip:{pointFormat:"{point.text}"},threshold:null,y:-30,fillColor:"#ffffff",lineWidth:1,states:{hover:{lineColor:"#000000",fillColor:"#ccd3ff"}},style:{fontSize:"0.7em",fontWeight:"bold"}}}),i(n,"Series/Flags/FlagsSymbols.js",[n["Core/Renderer/RendererRegistry.js"]],function(r){var s;return function(a){let l=[];function c(u,h,p,y,m){let w=m&&m.anchorX||u,k=m&&m.anchorY||h,b=this.circle(w-1,k-1,2,2);return b.push(["M",w,k],["L",u,h+y],["L",u,h],["L",u+p,h],["L",u+p,h+y],["L",u,h+y],["Z"]),b}function d(u,h){u[h+"pin"]=function(p,y,m,w,k){let b,x=k&&k.anchorX,v=k&&k.anchorY;if(h==="circle"&&w>m&&(p-=Math.round((w-m)/2),m=w),b=u[h](p,y,m,w,k),x&&v){let E=x;if(h==="circle")E=p+m/2;else{let S=b[0],_=b[1];S[0]==="M"&&_[0]==="L"&&(E=(S[1]+_[1])/2)}let N=y>v?y:y+w;b.push(["M",E,N],["L",x,v]),b=b.concat(u.circle(x-1,v-1,2,2))}return b}}a.compose=function(u){if(l.indexOf(u)===-1){l.push(u);let p=u.prototype.symbols;p.flag=c,d(p,"circle"),d(p,"square")}let h=r.getRendererType();l.indexOf(h)&&l.push(h)}}(s||(s={})),s}),i(n,"Series/OnSeriesComposition.js",[n["Series/Column/ColumnSeries.js"],n["Core/Globals.js"],n["Core/Series/Series.js"],n["Core/Utilities.js"]],function(r,s,a,l){var c;let{composed:d}=s,{prototype:u}=r,{prototype:h}=a,{defined:p,pushUnique:y,stableSort:m}=l;return function(w){function k(x){return h.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this,x)}function b(){var q,U;u.translate.apply(this);let x=this,v=x.options,E=x.chart,N=x.points,S=v.onSeries,_=S&&E.get(S),$=_&&_.options.step,V=_&&_.points,I=E.inverted,A=x.xAxis,L=x.yAxis,T=N.length-1,g,f,j=v.onKey||"y",P=V&&V.length,C=0,D,M,z,J,F;if(_&&_.visible&&P){for(C=(_.pointXOffset||0)+(_.barW||0)/2,J=_.currentDataGrouping,M=V[P-1].x+(J?J.totalRange:0),m(N,(Q,ce)=>Q.x-ce.x),j="plot"+j[0].toUpperCase()+j.substr(1);P--&&N[T];)if(D=V[P],(g=N[T]).y=D.y,D.x<=g.x&&D[j]!==void 0){if(g.x<=M&&(g.plotY=D[j],D.x<g.x&&!$&&(z=V[P+1])&&z[j]!==void 0))if(p(g.plotX)&&_.is("spline")){let Q=[D.plotX||0,D.plotY||0],ce=[z.plotX||0,z.plotY||0],H=((q=D.controlPoints)==null?void 0:q.high)||Q,B=((U=z.controlPoints)==null?void 0:U.low)||ce,K=(W,Y)=>Math.pow(1-W,3)*Q[Y]+3*(1-W)*(1-W)*W*H[Y]+3*(1-W)*W*W*B[Y]+W*W*W*ce[Y],ie=0,R=1,G;for(let W=0;W<100;W++){let Y=(ie+R)/2,X=K(Y,0);if(X===null)break;
178if(.25>Math.abs(X-g.plotX)){G=Y;break}X<g.plotX?ie=Y:R=Y}p(G)&&(g.plotY=K(G,1),g.y=L.toValue(g.plotY,!0))}else F=(g.x-D.x)/(z.x-D.x),g.plotY+=F*(z[j]-D[j]),g.y+=F*(z.y-D.y);if(T--,P++,T<0)break}}N.forEach((Q,ce)=>{let H;Q.plotX+=C,(Q.plotY===void 0||I)&&(Q.plotX>=0&&Q.plotX<=A.len?I?(Q.plotY=A.translate(Q.x,0,1,0,1),Q.plotX=p(Q.y)?L.translate(Q.y,0,0,0,1):0):Q.plotY=(A.opposite?0:x.yAxis.len)+A.offset:Q.shapeArgs={}),(f=N[ce-1])&&f.plotX===Q.plotX&&(f.stackIndex===void 0&&(f.stackIndex=0),H=f.stackIndex+1),Q.stackIndex=H}),this.onSeries=_}w.compose=function(x){if(y(d,"OnSeries")){let v=x.prototype;v.getPlotBox=k,v.translate=b}return x},w.getPlotBox=k,w.translate=b}(c||(c={})),c}),i(n,"Series/Flags/FlagsSeries.js",[n["Series/Flags/FlagsPoint.js"],n["Series/Flags/FlagsSeriesDefaults.js"],n["Series/Flags/FlagsSymbols.js"],n["Core/Globals.js"],n["Series/OnSeriesComposition.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],function(r,s,a,l,c,d,u,h,p){let{noop:y}=l,{distribute:m}=d,{series:w,seriesTypes:{column:k}}=u,{addEvent:b,defined:x,extend:v,isNumber:E,merge:N,objectEach:S,wrap:_}=p;class $ extends k{animate(I){I&&this.setClip()}drawPoints(){let I,A,L,T,g,f,j,P,C,D,M,z=this.points,J=this.chart,F=J.renderer,q=J.inverted,U=this.options,Q=U.y,ce=this.yAxis,H={},B=[],K=E(U.borderRadius)?U.borderRadius:0;for(T=z.length;T--;)g=z[T],D=(q?g.plotY:g.plotX)>this.xAxis.len,I=g.plotX,j=g.stackIndex,L=g.options.shape||U.shape,(A=g.plotY)!==void 0&&(A=g.plotY+Q-(j!==void 0&&j*U.stackDistance)),g.anchorX=j?void 0:g.plotX,P=j?void 0:g.plotY,M=L!=="flag",f=g.graphic,A!==void 0&&I>=0&&!D?(f&&g.hasNewShapeType()&&(f=f.destroy()),f||(f=g.graphic=F.label("",0,void 0,L,void 0,void 0,U.useHTML).addClass("highcharts-point").add(this.markerGroup),g.graphic.div&&(g.graphic.div.point=g),f.isNew=!0),f.attr({align:M?"center":"left",width:U.width,height:U.height,"text-align":U.textAlign,r:K}),J.styledMode||f.attr(this.pointAttribs(g)).css(N(U.style,g.style)).shadow(U.shadow),I>0&&(I-=f.strokeWidth()%2),C={y:A,anchorY:P},U.allowOverlapX&&(C.x=I,C.anchorX=g.anchorX),f.attr({text:g.options.title??U.title??"A"})[f.isNew?"attr":"animate"](C),U.allowOverlapX||(H[g.plotX]?H[g.plotX].size=Math.max(H[g.plotX].size,f.width||0):H[g.plotX]={align:M?.5:0,size:f.width||0,target:I,anchorX:I}),g.tooltipPos=[I,A+ce.pos-J.plotTop]):f&&(g.graphic=f.destroy());if(!U.allowOverlapX){let ie=100;for(let R of(S(H,function(G){G.plotX=G.anchorX,B.push(G),ie=Math.max(G.size,ie)}),m(B,q?ce.len:this.xAxis.len,ie),z)){let G=R.plotX,W=R.graphic,Y=W&&H[G];Y&&W&&(x(Y.pos)?W[W.isNew?"attr":"animate"]({x:Y.pos+(Y.align||0)*Y.size,anchorX:R.anchorX}).show().isNew=!1:W.hide().isNew=!0)}}U.useHTML&&this.markerGroup&&_(this.markerGroup,"on",function(ie){return h.prototype.on.apply(ie.apply(this,[].slice.call(arguments,1)),[].slice.call(arguments,1))})}drawTracker(){let I=this.points;for(let A of(super.drawTracker(),I)){let L=A.graphic;L&&(A.unbindMouseOver&&A.unbindMouseOver(),A.unbindMouseOver=b(L.element,"mouseover",function(){for(let T of(A.stackIndex>0&&!A.raised&&(A._y=L.y,L.attr({y:A._y-8}),A.raised=!0),I))T!==A&&T.raised&&T.graphic&&(T.graphic.attr({y:T._y}),T.raised=!1)}))}}pointAttribs(I,A){let L=this.options,T=I&&I.color||this.color,g=L.lineColor,f=I&&I.lineWidth,j=I&&I.fillColor||L.fillColor;return A&&(j=L.states[A].fillColor,g=L.states[A].lineColor,f=L.states[A].lineWidth),{fill:j||T,stroke:g||T,"stroke-width":f||L.lineWidth||0}}setClip(){w.prototype.setClip.apply(this,arguments),this.options.clip!==!1&&this.sharedClipKey&&this.markerGroup&&this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey])}}return $.compose=a.compose,$.defaultOptions=N(k.defaultOptions,s),c.compose($),v($.prototype,{allowDG:!1,forceCrop:!0,invertible:!1,noSharedTooltip:!0,pointClass:r,sorted:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],buildKDTree:y,init:w.prototype.init}),u.registerSeriesType("flags",$),$}),i(n,"Core/Axis/BrokenAxis.js",[n["Core/Axis/Stacking/StackItem.js"],n["Core/Utilities.js"]],function(r,s){var a;let{addEvent:l,find:c,fireEvent:d,isArray:u,isNumber:h,pick:p}=s;return function(y){function m(){this.brokenAxis!==void 0&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function w(){var _;(_=this.brokenAxis)!=null&&_.hasBreaks&&(this.options.ordinal=!1)}function k(){let _=this.brokenAxis;if(_!=null&&_.hasBreaks){let $=this.tickPositions,V=this.tickPositions.info,I=[];for(let A=0;A<$.length;A++)_.isInAnyBreak($[A])||I.push($[A]);this.tickPositions=I,this.tickPositions.info=V}}function b(){this.brokenAxis||(this.brokenAxis=new S(this))}function x(){var L,T;let{isDirty:_,options:{connectNulls:$},points:V,xAxis:I,yAxis:A}=this;if(_){let g=V.length;for(;g--;){let f=V[g],j=!(f.y===null&&$===!1)&&(((L=I==null?void 0:I.brokenAxis)==null?void 0:L.isInAnyBreak(f.x,!0))||((T=A==null?void 0:A.brokenAxis)==null?void 0:T.isInAnyBreak(f.y,!0)));f.visible=!j&&f.options.visible!==!1}}}function v(){this.drawBreaks(this.xAxis,["x"]),this.drawBreaks(this.yAxis,p(this.pointArrayMap,["y"]))}function E(_,$){var g;let V,I,A,L=this,T=L.points;if((g=_==null?void 0:_.brokenAxis)!=null&&g.hasBreaks){let f=_.brokenAxis;$.forEach(function(j){var C,D;V=(f==null?void 0:f.breakArray)||[],I=_.isXAxis?_.min:p(L.options.threshold,_.min);let P=(D=(C=_==null?void 0:_.options)==null?void 0:C.breaks)==null?void 0:D.filter(function(M){let z=!0;for(let J=0;J<V.length;J++){let F=V[J];if(F.from===M.from&&F.to===M.to){z=!1;break}}return z});T.forEach(function(M){A=p(M["stack"+j.toUpperCase()],M[j]),V.forEac
178h(function(z){if(h(I)&&h(A)){let J="";I<z.from&&A>z.to||I>z.from&&A<z.from?J="pointBreak":(I<z.from&&A>z.from&&A<z.to||I>z.from&&A>z.to&&A<z.from)&&(J="pointInBreak"),J&&d(_,J,{point:M,brk:z})}}),P==null||P.forEach(function(z){d(_,"pointOutsideOfBreak",{point:M,brk:z})})})})}}function N(){let _=this.currentDataGrouping,$=_==null?void 0:_.gapSize,V=this.points.slice(),I=this.yAxis,A=this.options.gapSize,L=V.length-1;if(A&&L>0){let T,g;for(this.options.gapUnit!=="value"&&(A*=this.basePointRange),$&&$>A&&$>=this.basePointRange&&(A=$);L--;)if(g&&g.visible!==!1||(g=V[L+1]),T=V[L],g.visible!==!1&&T.visible!==!1){if(g.x-T.x>A){let f=(T.x+g.x)/2;V.splice(L+1,0,{isNull:!0,x:f}),I.stacking&&this.options.stacking&&((I.stacking.stacks[this.stackKey][f]=new r(I,I.options.stackLabels,!1,f,this.stack)).total=0)}g=T}}return this.getGraphPath(V)}y.compose=function(_,$){if(!_.keepProps.includes("brokenAxis")){_.keepProps.push("brokenAxis"),l(_,"init",b),l(_,"afterInit",m),l(_,"afterSetTickPositions",k),l(_,"afterSetOptions",w);let V=$.prototype;V.drawBreaks=E,V.gappedPath=N,l($,"afterGeneratePoints",x),l($,"afterRender",v)}return _};class S{static isInBreak($,V){let I=$.repeat||1/0,A=$.from,L=$.to-$.from,T=V>=A?(V-A)%I:I-(A-V)%I;return $.inclusive?T<=L:T<L&&T!==0}static lin2Val($){let V=this.brokenAxis,I=V&&V.breakArray;if(!I||!h($))return $;let A=$,L,T;for(T=0;T<I.length&&!((L=I[T]).from>=A);T++)(L.to<A||S.isInBreak(L,A))&&(A+=L.len);return A}static val2Lin($){let V=this.brokenAxis,I=V&&V.breakArray;if(!I||!h($))return $;let A=$,L,T;for(T=0;T<I.length;T++)if((L=I[T]).to<=$)A-=L.len;else{if(L.from>=$)break;if(S.isInBreak(L,$)){A-=$-L.from;break}}return A}constructor($){this.hasBreaks=!1,this.axis=$}findBreakAt($,V){return c(V,function(I){return I.from<$&&$<I.to})}isInAnyBreak($,V){let I=this.axis,A=I.options.breaks||[],L=A.length,T,g,f;if(L&&h($)){for(;L--;)S.isInBreak(A[L],$)&&(T=!0,g||(g=p(A[L].showPoints,!I.isXAxis)));f=T&&V?T&&!g:T}return f}setBreaks($,V){let I=this,A=I.axis,L=u($)&&!!$.length&&!!Object.keys($[0]).length;A.isDirty=I.hasBreaks!==L,I.hasBreaks=L,$!==A.options.breaks&&(A.options.breaks=A.userOptions.breaks=$),A.forceRedraw=!0,A.series.forEach(function(T){T.isDirty=!0}),L||A.val2lin!==S.val2Lin||(delete A.val2lin,delete A.lin2val),L&&(A.userOptions.ordinal=!1,A.lin2val=S.lin2Val,A.val2lin=S.val2Lin,A.setExtremes=function(T,g,f,j,P){if(I.hasBreaks){let C,D=this.options.breaks||[];for(;C=I.findBreakAt(T,D);)T=C.to;for(;C=I.findBreakAt(g,D);)g=C.from;g<T&&(g=T)}A.constructor.prototype.setExtremes.call(this,T,g,f,j,P)},A.setAxisTranslation=function(){if(A.constructor.prototype.setAxisTranslation.call(this),I.unitLength=void 0,I.hasBreaks){let T=A.options.breaks||[],g=[],f=[],j=p(A.pointRangePadding,0),P=0,C,D,M=A.userMin||A.min,z=A.userMax||A.max,J,F;T.forEach(function(q){D=q.repeat||1/0,h(M)&&h(z)&&(S.isInBreak(q,M)&&(M+=q.to%D-M%D),S.isInBreak(q,z)&&(z-=z%D-q.from%D))}),T.forEach(function(q){if(J=q.from,D=q.repeat||1/0,h(M)&&h(z)){for(;J-D>M;)J-=D;for(;J<M;)J+=D;for(F=J;F<z;F+=D)g.push({value:F,move:"in"}),g.push({value:F+q.to-q.from,move:"out",size:q.breakSize})}}),g.sort(function(q,U){return q.value===U.value?(q.move==="in"?0:1)-(U.move==="in"?0:1):q.value-U.value}),C=0,J=M,g.forEach(function(q){(C+=q.move==="in"?1:-1)===1&&q.move==="in"&&(J=q.value),C===0&&h(J)&&(f.push({from:J,to:q.value,len:q.value-J-(q.size||0)}),P+=q.value-J-(q.size||0))}),I.breakArray=f,h(M)&&h(z)&&h(A.min)&&(I.unitLength=z-M-P+j,d(A,"afterBreaks"),A.staticScale?A.transA=A.staticScale:I.unitLength&&(A.transA*=(z-A.min+j)/I.unitLength),j&&(A.minPixelPadding=A.transA*(A.minPointOffset||0)),A.min=M,A.max=z)}}),p(V,!0)&&A.chart.redraw()}}y.Additions=S}(a||(a={})),a}),i(n,"masters/modules/broken-axis.src.js",[n["Core/Globals.js"],n["Core/Axis/BrokenAxis.js"]],function(r,s){return r.BrokenAxis=r.BrokenAxis||s,r.BrokenAxis.compose(r.Axis,r.Series),r}),i(n,"Extensions/DataGrouping/ApproximationRegistry.js",[],function(){return{}}),i(n,"Extensions/DataGrouping/ApproximationDefaults.js",[n["Extensions/DataGrouping/ApproximationRegistry.js"],n["Core/Utilities.js"]],function(r,s){let{arrayMax:a,arrayMin:l,correctFloat:c,extend:d,isNumber:u}=s;function h(m){let w=m.length,k=p(m);return u(k)&&w&&(k=c(k/w)),k}function p(m){let w=m.length,k;if(!w&&m.hasNulls)k=null;else if(w)for(k=0;w--;)k+=m[w];return k}let y={average:h,averages:function(){let m=[];return[].forEach.call(arguments,function(w){m.push(h(w))}),m[0]===void 0?void 0:m},close:function(m){return m.length?m[m.length-1]:m.hasNulls?null:void 0},high:function(m){return m.length?a(m):m.hasNulls?null:void 0},hlc:function(m,w,k){if(m=r.high(m),w=r.low(w),k=r.close(k),u(m)||u(w)||u(k))return[m,w,k]},low:function(m){return m.length?l(m):m.hasNulls?null:void 0},ohlc:function(m,w,k,b){if(m=r.open(m),w=r.high(w),k=r.low(k),b=r.close(b),u(m)||u(w)||u(k)||u(b))return[m,w,k,b]},open:function(m){return m.length?m[0]:m.hasNulls?null:void 0},range:function(m,w){return m=r.low(m),w=r.high(w),u(m)||u(w)?[m,w]:m===null&&w===null?null:void 0},sum:p};return d(r,y),y}),i(n,"Extensions/DataGrouping/DataGroupingDefaults.js",[],function(){return{common:{groupPixelWidth:2,dateTimeLabelFormats:{millisecond:["%A, %e %b, %H:%M:%S.%L","%A, %e %b, %H:%M:%S.%L","-%H:%M:%S.%L"],second:["%A, %e %b, %H:%M:%S","%A, %e %b, %H:%M:%S","-%H:%M:%S"],minute:["%A, %e %b, %H:%M","%A, %e %b, %H:%M","-%H:%M"],hour:["%A, %e %b, %H:%M","%A, %e %b, %H:%M","-%H:%M"],day:["%A, %e %b %Y","%A, %e %b","-%A, %e %b %Y"],week:["Week from %A, %e %b %Y","%A, %e %b","-%A, %e %b %Y"],month:["%B %Y","%B","-%B %Y"],year:["%Y","%Y","-%Y"]}},seriesSpecific:{line:{},spline:{},area:{},areaspline:{},arearange:{},column:{groupPixelWidth:10},columnrange:{groupPixelWidth:10},candlestick:{groupPixelWidth:10},ohlc:{groupPixelWidth:5},hlc:{groupPixelWidth:5},heikinashi:{groupPixelWidth:10}},units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1]],["week",[1]],["month",[1,3,6]],["year",null]]}}),i(n,"Extensions/DataGrouping/DataGroupingAxisComposition.js",[n["Extensions/DataGrouping/DataGroupingDefaults.js"],n["Core/Utilities.js"]],function(r,s){let a,{addEvent:l,extend:c,merge:d,pick:u}=s;function h(w){let k=this,b=k.series;b.forEach(function(x){x.groupPixelWidth=void 0}),b.forEach(function(x){x.groupPixelWidth=k.getGroupPixelWidth&&k.getGroupPixelWidth(),x.groupPixelWidth&&(x.hasProcessed=!0),x.applyGrouping(!!w.hasExtremesChanged)})}function p(){let w=this.series,k=w.length,b=0,x=!1,v,E;for(;k--;)(E=w[k].options.dataGrouping)&&(b=Math.max(b,u(E.groupPixelWidth,r.common.groupPixelWidth)),v=(w[k].processedXData||w[k].data).length,(w[k].groupPixelWidth||v>this.chart.plotSizeX/b||v&&E.forced)&&(x=!0));return x?b:0}
178function y(){this.series.forEach(function(w){w.hasProcessed=!1})}function m(w,k){let b;if(k=u(k,!0),w||(w={forced:!1,units:null}),this instanceof a)for(b=this.series.length;b--;)this.series[b].update({dataGrouping:w},!1);else this.chart.options.series.forEach(function(x){x.dataGrouping=typeof w=="boolean"?w:d(w,x.dataGrouping)});this.ordinal&&(this.ordinal.slope=void 0),k&&this.chart.redraw()}return{compose:function(w){a=w;let k=w.prototype;k.applyGrouping||(l(w,"afterSetScale",y),l(w,"postProcessData",h),c(k,{applyGrouping:h,getGroupPixelWidth:p,setDataGrouping:m}))}}}),i(n,"Extensions/DataGrouping/DataGroupingSeriesComposition.js",[n["Extensions/DataGrouping/ApproximationRegistry.js"],n["Extensions/DataGrouping/DataGroupingDefaults.js"],n["Core/Axis/DateTimeAxis.js"],n["Core/Defaults.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s,a,l,c,d){let{series:{prototype:u}}=c,{addEvent:h,defined:p,error:y,extend:m,isNumber:w,merge:k,pick:b}=d,x=u.generatePoints;function v(V){var I;let A,L,T=this.chart,g=this.options.dataGrouping,f=this.allowDG!==!1&&g&&b(g.enabled,T.options.isStock),j=this.reserveSpace(),P=this.currentDataGrouping,C,D,M=!1;f&&!this.requireSorting&&(this.requireSorting=M=!0);let z=!!(this.isCartesian&&!this.isDirty&&!this.xAxis.isDirty&&!this.yAxis.isDirty&&!V)||!f;if(M&&(this.requireSorting=!1),z)return;this.destroyGroupedData();let J=g.groupAll?this.xData:this.processedXData,F=g.groupAll?this.yData:this.processedYData,q=T.plotSizeX,U=this.xAxis,Q=U.options.ordinal,ce=this.groupPixelWidth;if(ce&&J&&J.length&&q){L=!0,this.isDirty=!0,this.points=null;let H=U.getExtremes(),B=H.min,K=H.max,ie=Q&&U.ordinal&&U.ordinal.getGroupIntervalFactor(B,K,this)||1,R=ce*(K-B)/q*ie,G=U.getTimeTicks(a.Additions.prototype.normalizeTimeTickInterval(R,g.units||s.units),Math.min(B,J[0]),Math.max(K,J[J.length-1]),U.options.startOfWeek,J,this.closestPointRange),W=u.groupData.apply(this,[J,F,G,g.approximation]),Y=W.groupedXData,X=W.groupedYData,re=0;for(g&&g.smoothed&&Y.length&&(g.firstAnchor="firstPoint",g.anchor="middle",g.lastAnchor="lastPoint",y(32,!1,T,{"dataGrouping.smoothed":"use dataGrouping.anchor"})),A=1;A<G.length;A++)G.info.segmentStarts&&G.info.segmentStarts.indexOf(A)!==-1||(re=Math.max(G[A]-G[A-1],re));(C=G.info).gapSize=re,this.closestPointRange=G.info.totalRange,this.groupMap=W.groupMap,this.currentDataGrouping=C,function(ee,se,oe){let he=ee.options.dataGrouping,pe=ee.currentDataGrouping&&ee.currentDataGrouping.gapSize;if(!(he&&ee.xData&&pe&&ee.groupMap))return;let ne=se.length-1,te=he.anchor,ae=he.firstAnchor,le=he.lastAnchor,de=se.length-1,ue=0;if(ae&&ee.xData[0]>=se[0]){let me;ue++;let ge=ee.groupMap[0].start,be=ee.groupMap[0].length;w(ge)&&w(be)&&(me=ge+(be-1)),se[0]={start:se[0],middle:se[0]+.5*pe,end:se[0]+pe,firstPoint:ee.xData[0],lastPoint:me&&ee.xData[me]}[ae]}
178if(ne>0&&le&&pe&&se[ne]>=oe-pe){de--;let me=ee.groupMap[ee.groupMap.length-1].start;se[ne]={start:se[ne],middle:se[ne]+.5*pe,end:se[ne]+pe,firstPoint:me&&ee.xData[me],lastPoint:ee.xData[ee.xData.length-1]}[le]}if(te&&te!=="start"){let me=pe*{middle:.5,end:1}[te];for(;de>=ue;)se[de]+=me,de--}}(this,Y,K),j&&(p((I=Y)[0])&&w(U.min)&&w(U.dataMin)&&I[0]<U.min&&((!p(U.options.min)&&U.min<=U.dataMin||U.min===U.dataMin)&&(U.min=Math.min(I[0],U.min)),U.dataMin=Math.min(I[0],U.dataMin)),p(I[I.length-1])&&w(U.max)&&w(U.dataMax)&&I[I.length-1]>U.max&&((!p(U.options.max)&&w(U.dataMax)&&U.max>=U.dataMax||U.max===U.dataMax)&&(U.max=Math.max(I[I.length-1],U.max)),U.dataMax=Math.max(I[I.length-1],U.dataMax))),g.groupAll&&(this.allGroupedData=X,Y=(D=this.cropData(Y,X,U.min,U.max)).xData,X=D.yData,this.cropStart=D.start),this.processedXData=Y,this.processedYData=X}else this.groupMap=null,this.currentDataGrouping=void 0;this.hasGroupedData=L,this.preventGraphAnimation=(P&&P.totalRange)!==(C&&C.totalRange)}function E(){this.groupedData&&(this.groupedData.forEach(function(V,I){V&&(this.groupedData[I]=V.destroy?V.destroy():null)},this),this.groupedData.length=0,delete this.allGroupedData)}function N(){x.apply(this),this.destroyGroupedData(),this.groupedData=this.hasGroupedData?this.points:null}function S(){return this.is("arearange")?"range":this.is("ohlc")?"ohlc":this.is("hlc")?"hlc":this.is("column")||this.options.cumulative?"sum":"average"}function _(V,I,A,L){let T=this,g=T.data,f=T.options&&T.options.data,j=[],P=[],C=[],D=V.length,M=!!I,z=[],J=T.pointArrayMap,F=J&&J.length,q=["x"].concat(J||["y"]),U=this.options.dataGrouping&&this.options.dataGrouping.groupAll,Q,ce,H,B=0,K=0,ie=typeof L=="function"?L:L&&r[L]?r[L]:r[T.getDGApproximation&&T.getDGApproximation()||"average"];if(F){let G=J.length;for(;G--;)z.push([])}else z.push([]);let R=F||1;for(let G=0;G<=D;G++)if(!(V[G]<A[0])){for(;A[B+1]!==void 0&&V[G]>=A[B+1]||G===D;){Q=A[B],T.dataGroupInfo={start:U?K:T.cropStart+K,length:z[0].length,groupStart:Q},H=ie.apply(T,z),T.pointClass&&!p(T.dataGroupInfo.options)&&(T.dataGroupInfo.options=k(T.pointClass.prototype.optionsToObject.call({series:T},T.options.data[T.cropStart+K])),q.forEach(function(W){delete T.dataGroupInfo.options[W]})),H!==void 0&&(j.push(Q),P.push(H),C.push(T.dataGroupInfo)),K=G;for(let W=0;W<R;W++)z[W].length=0,z[W].hasNulls=!1;if(B+=1,G===D)break}if(G===D)break;if(J){let W,Y=T.options.dataGrouping&&T.options.dataGrouping.groupAll?G:T.cropStart+G,X=g&&g[Y]||T.pointClass.prototype.applyOptions.apply({series:T},[f[Y]]);for(let re=0;re<F;re++)w(W=X[J[re]])?z[re].push(W):W===null&&(z[re].hasNulls=!0)}else w(ce=M?I[G]:null)?z[0].push(ce):ce===null&&(z[0].hasNulls=!0)}return{groupedXData:j,groupedYData:P,groupMap:C}}function $(V){let I=V.options,A=this.type,L=this.chart.options.plotOptions,T=this.useCommonDataGrouping&&s.common,g=s.seriesSpecific,f=l.defaultOptions.plotOptions[A].dataGrouping;if(L&&(g[A]||T)){let j=this.chart.rangeSelector;f||(f=k(s.common,g[A])),I.dataGrouping=k(T,f,L.series&&L.series.dataGrouping,L[A].dataGrouping,this.userOptions.dataGrouping,!I.isInternal&&j&&w(j.selected)&&j.buttonOptions[j.selected].dataGrouping)}}return{compose:function(V){let I=V.prototype;I.applyGrouping||(h(V.prototype.pointClass,"update",function(){if(this.dataGroup)return y(24,!1,this.series.chart),!1}),h(V,"afterSetOptions",$),h(V,"destroy",E),m(I,{applyGrouping:v,destroyGroupedData:E,generatePoints:N,getDGApproximation:S,groupData:_}))},groupData:_}}),i(n,"Extensions/DataGrouping/DataGrouping.js",[n["Extensions/DataGrouping/DataGroupingAxisComposition.js"],n["Extensions/DataGrouping/DataGroupingDefaults.js"],n["Extensions/DataGrouping/DataGroupingSeriesComposition.js"],n["Core/Templating.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],function(r,s,a,l,c,d){let{format:u}=l,{composed:h}=c,{addEvent:p,extend:y,isNumber:m,pick:w,pushUnique:k}=d;function b(x){var D;let v=this.chart,E=v.time,N=x.labelConfig,S=N.series,_=N.point,$=S.options,V=S.tooltipOptions,I=$.dataGrouping,A=S.xAxis,L=V.xDateFormat,T,g,f,j,P,C=V[x.isFooter?"footerFormat":"headerFormat"];if(A&&A.options.type==="datetime"&&I&&m(N.key)){g=S.currentDataGrouping,f=I.dateTimeLabelFormats||s.common.dateTimeLabelFormats,g?(j=f[g.unitName],g.count===1?L=j[0]:(L=j[1],T=j[2])):!L&&f&&A.dateTime&&(L=A.dateTime.getXDateFormat(N.x,V.dateTimeLabelFormats));let M=w((D=S.groupMap)==null?void 0:D[_.index].groupStart,N.key),z=M+(g==null?void 0:g.totalRange)-1;P=E.dateFormat(L,M),T&&(P+=E.dateFormat(T,z)),S.chart.styledMode&&(C=this.styledModeFormat(C)),x.text=u(C,{point:y(N.point,{key:P}),series:S},v),x.preventDefault()}}return{compose:function(x,v,E){r.compose(x),a.compose(v),E&&k(h,"DataGrouping")&&p(E,"headerFormatter",b)},groupData:a.groupData}}),i(n,"masters/modules/datagrouping.src.js",[n["Core/Globals.js"],n["Extensions/DataGrouping/ApproximationDefaults.js"],n["Extensions/DataGrouping/ApproximationRegistry.js"],n["Extensions/DataGrouping/DataGrouping.js"]],function(r,s,a,l){return r.dataGrouping=r.dataGrouping||{},r.dataGrouping.approximationDefaults=r.dataGrouping.approximationDefaults||s,r.dataGrouping.approximations=r.dataGrouping.approximations||a,l.compose(r.Axis,r.Series,r.Tooltip),r}),i(n,"Extensions/Annotations/NavigationBindingsUtilities.js",[n["Core/Utilities.js"]],function(r){let{defined:s,isNumber:a,pick:l}=r,c={backgroundColor:"string",borderColor:"string",borderRadius:"string",color:"string",fill:"string",fontSize:"string",labels:"string",name:"string",stroke:"string",title:"string"};return{annotationsFieldsTypes:c,getAssignedAxis:function(d){return d.filter(u=>{let h=u.axis.getExtremes(),p=h.min,y=h.max,m=l(u.axis.minPointOffset,0);return a(p)&&a(y)&&u.value>=p-m&&u.value<=y+m&&!u.axis.options.isInternal})[0]},getFieldType:function(d,u){let h=c[d],p=typeof u;return s(h)&&(p=h),{string:"text",number:"number",boolean:"checkbox"}[p]}}}),i(n,"Extensions/MouseWheelZoom/MouseWheelZoom.js",[n["Core/Utilities.js"],n["Extensions/Annotations/NavigationBindingsUtilities.js"]],function(r,s){let a,{addEvent:l,isObject:c,pick:d,defined:u,merge:h}=r,{getAssignedAxis:p}=s,y=[],m={enabled:!0,sensitivity:1.1},w=x=>(c(x)||(x={enabled:x??!0}),h(m,x)),k=function(x,v,E,N,S,_,$){let V=d($.type,x.zooming.type,""),I=[];V==="x"?I=E:V==="y"?I=N:V==="xy"&&(I=x.axes);let A=x.transform({axes:I,to:{x:S-5,y:_-5,width:10,height:10},from:{x:S-5*v,y:_-5*v,width:10*v,height:10*v},trigger:"mousewheel"});return A&&(u(a)&&clearTimeout(a),a=setTimeout(()=>{var L;(L=x.pointer)==null||L.drop()},400)),A};function b(){let x=w(this.zooming.mouseWheel);x.enabled&&l(this.container,"wheel",v=>{var S,_;v=((S=this.pointer)==null?void 0:S.normalize(v))||v;let{pointer:E}=this,N=E&&!E.inClass(v.target,"highcharts-no-mousewheel");if(this.isInsidePlot(v.chartX-this.plotLeft,v.chartY-this.plotTop)&&N){let $=x.sensitivity||1.1,V=v.detail||(v.deltaY||0)/120,I=p(E.getCoordinates(v).xAxis),A=p(E.getCoordinates(v).yAxis);k(this,Math.pow($,V),I?[I.axis]:this.xAxis,A?[A.axis]:this.yAxis,v.chartX,v.chartY,x)&&((_=v.preventDefault)==null||_.call(v))}})}return{compose:function(x){y.indexOf(x)===-1&&(y.push(x),l(x,"afterGetContainer",b))}}}),i(n,"masters/modules/mouse-wheel-zoom.src.js",[n["Core/Globals.js"],n["Extensions/MouseWheelZoom/MouseWheelZoom.js"]],function(r,s){return r.MouseWheelZoom=r.MouseWheelZoom||s,r.MouseWheelZoom.compose(r.Chart),r}),i(n,"masters/modules/stock.src.js",[n["Core/Globals.js"],n["Series/DataModifyComposition.js"],n["Stock/Navigator/Navigator.js"],n["Core/Axis/OrdinalAxis.js"],n["Stock/RangeSelector/RangeSelector.js"],n["Stock/Scrollbar/Scrollbar.
178js"],n["Core/Chart/StockChart.js"],n["Series/OHLC/OHLCSeries.js"],n["Series/Flags/FlagsSeries.js"]],function(r,s,a,l,c,d,u,h,p){return r.Navigator=r.Navigator||a,r.OrdinalAxis=r.OrdinalAxis||l,r.RangeSelector=r.RangeSelector||c,r.Scrollbar=r.Scrollbar||d,r.stockChart=r.stockChart||u.stockChart,r.StockChart=r.StockChart||r.stockChart,r.extend(r.StockChart,u),s.compose(r.Series,r.Axis,r.Point),p.compose(r.Renderer),h.compose(r.Series),r.Navigator.compose(r.Chart,r.Axis,r.Series),r.OrdinalAxis.compose(r.Axis,r.Series,r.Chart),r.RangeSelector.compose(r.Axis,r.Chart),r.Scrollbar.compose(r.Axis),r.StockChart.compose(r.Chart,r.Axis,r.Series,r.SVGRenderer),r}),i(n,"masters/highstock.src.js",[n["masters/highcharts.src.js"]],function(r){return r.product="Highstock",r}),n["masters/highstock.src.js"]._modules=n,n["masters/highstock.src.js"]})})(Az);var Bxe=Az.exports;const $xe=Fr(Bxe);var Nz={exports:{}};(function(t,e){(function(n,i){t.exports=i(Z)})(typeof self<"u"?self:jh,function(n){return function(i){function r(a){if(s[a])return s[a].exports;var l=s[a]={i:a,l:!1,exports:{}};return i[a].call(l.exports,l,l.exports,r),l.l=!0,l.exports}var s={};return r.m=i,r.c=s,r.d=function(a,l,c){r.o(a,l)||Object.defineProperty(a,l,{configurable:!1,enumerable:!0,get:c})},r.n=function(a){var l=a&&a.__esModule?function(){return a.default}:function(){return a};return r.d(l,"a",l),l},r.o=function(a,l){return Object.prototype.hasOwnProperty.call(a,l)},r.p="",r(r.s=0)}([function(i,r,s){function a(){return a=Object.assign?Object.assign.bind():function(x){for(var v=1;v<arguments.length;v++){var E=arguments[v];for(var N in E)Object.prototype.hasOwnProperty.call(E,N)&&(x[N]=E[N])}return x},a.apply(this,arguments)}function l(x){return h(x)||u(x)||d(x)||c()}function c(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 179In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d(x,v){if(x){if(typeof x=="string")return p(x,v);var E=Object.prototype.toString.call(x).slice(8,-1);return E==="Object"&&x.constructor&&(E=x.constructor.name),E==="Map"||E==="Set"?Array.from(x):E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E)?p(x,v):void 0}}function u(x){if(typeof Symbol<"u"&&x[Symbol.iterator]!=null||x["@@iterator"]!=null)return Array.from(x)}function h(x){if(Array.isArray(x))return p(x)}function p(x,v){(v==null||v>x.length)&&(v=x.length);for(var E=0,N=new Array(v);E<v;E++)N[E]=x[E];return N}function y(x){"@babel/helpers - typeof";return(y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v})(x)}Object.defineProperty(r,"__esModule",{value:!0}),s.d(r,"HighchartsReact",function(){return b});var m=s(1),w=s.n(m),k=typeof window<"u"?m.useLayoutEffect:m.useEffect,b=Object(m.memo)(Object(m.forwardRef)(function(x,v){var E=Object(m.useRef)(),N=Object(m.useRef)(),S=Object(m.useRef)(x.constructorType),_=Object(m.useRef)(x.highcharts);return k(function(){function $(){var I=x.highcharts||(typeof window>"u"?"undefined":y(window))==="object"&&window.Highcharts,A=x.constructorType||"chart";I?I[A]?x.options?N.current=I[A](E.current,x.options,x.callback):console.warn('The "options" property was not passed.'):console.warn('The "constructorType" property is incorrect or some required module is not imported.'):console.warn('The "highcharts" property was not passed.')}if(N.current){if(x.allowChartUpdate!==!1)if(x.constructorType!==S.current||x.highcharts!==_.current)S.current=x.constructorType,_.current=x.highcharts,$();else if(!x.immutable&&N.current){var V;(V=N.current).update.apply(V,[x.options].concat(l(x.updateArgs||[!0,!0])))}else $()}else $()},[x.options,x.allowChartUpdate,x.updateArgs,x.containerProps,x.highcharts,x.constructorType]),k(function(){return function(){N.current&&(N.current.destroy(),N.current=null)}},[]),Object(m.useImperativeHandle)(v,function(){return{get chart(){return N.current},container:E}},[]),w.a.createElement("div",a({},x.containerProps,{ref:E}))}
179));r.default=b},function(i,r){i.exports=n}])})})(Nz);var Hxe=Nz.exports;const LM=Fr(Hxe),Vw=({title:t,xTitle:e="",data:n,maxTicks:i,minTicks:r=0,max:s,height:a=250,valueType:l="value",customClass:c="p-1 w-full max-w-md mx-auto border shadow-md drop-shadow-md rounded-xl"})=>{const{t:d}=Se(["dashboard"]),u={chart:{type:"bar",height:a,className:"text-sm",backgroundColor:"transparent"},title:{text:`<p class="text-lg text-pmi-gray uppercase">${d(t)}</p>`||null,align:"left",style:{fontWeight:400}},xAxis:{categories:n.series[0].data.map(h=>h.name),title:{text:`<p class="text-xs font-medium text-pmi-gray uppercase">${d(e)}</p>`||null},labels:{style:{fontSize:"0.7rem",fontWeight:500,color:"#676767"}},lineWidth:0,margin:2,min:0,max:n.series[0].data.length>s?s:void 0,scrollbar:{enabled:n.series[0].data.length>s}},yAxis:{min:r,max:i,endOnTick:!1,className:"text-xs",title:{enabled:!1},labels:{formatter:function(){return this.value===0||this.value>i?"":`${XZ(this.value)}`},style:{fontSize:"0.7rem",fontWeight:500,color:"#676767"},color:"#676767",value:0,padding:2},margin:5,gridLineWidth:0},plotOptions:{bar:{dataLabels:{enabled:!0,formatter:function(){return l=="value"?`Rp ${Ok(this.y)}`:`${Ok(this.y)} KG`},cropThreshold:0,shadow:!1,style:{fontSize:"0.7rem",fontWeight:500,textOutline:"none"},y:0},borderWidth:1,pointWidth:22,pointPadding:5}},legend:{enabled:!1},tooltip:{enabled:!1},credits:{enabled:!1},series:n.series};return o.jsx("div",{className:`h-[${a+5}px] ${c}`,children:o.jsx(LM,{highcharts:$xe,options:u})})},Mz=()=>o.jsx("div",{className:"animate-pulse flex gap-2 border px-2 py-4 rounded-lg shadow-md drop-shadow-2xl",children:o.jsxs("div",{className:"relative w-full",children:[o.jsx("div",{className:"h-5 bg-gray-300 rounded w-1/2 mb-2"}),o.jsx("div",{className:"h-32 bg-gray-300 rounded w-full"})]})}),zxe=({categoryValue:t,warehouseValue:e,aidValue:n,isLoading:i})=>{const{t:r}=Se(["dashboard"]),[s,a]=Z.useState({}),[l,c]=Z.useState(0),[d,u]=Z.useState(0),[h,p]=Z.useState({}),[y,m]=Z.useState(0),[w,k]=Z.useState(0),[b,x]=Z.useState({}),[v,E]=Z.useState(0),[N,S]=Z.useState(0);return Z.useEffect(()=>{if(t&&t.length>0){c(t[0].total_item_value),u(t[t.length-1].total_item_value);const _={series:[{name:r("dataDistribution.category"),borderWidth:0,data:t.map(($,V)=>({name:$.category,y:parseFloat($.total_item_value.toString()),color:Mo[V%Mo.length],borderWidth:0}))}]};a(_)}},[t,r]),Z.useEffect(()=>{if(e&&e.length>0){m(e[0].total_item_value),k(e[e.length-1].total_item_value);const _={series:[{name:r("dataDistribution.warehouseValue"),borderWidth:0,data:e.map(($,V)=>({name:$.warehouse,y:parseFloat($.total_item_value.toString()),color:Mo[V%Mo.length],borderWidth:0}))}]};p(_)}},[e,r]),Z.useEffect(()=>{if(n&&n.length>0){E(n[0].total_value),S(n[n.length-1].total_value);const _={series:[{name:r("dataDistribution.aidValue"),borderWidth:0,data:n.map(($,V)=>({name:$.destination_warehouse,y:parseFloat($.total_value.toString()),color:Mo[V%Mo.length],borderWidth:0}))}]};x(_)}},[n,r]),o.jsxs("div",{className:"relative space-y-4",children:[(i||!t)&&o.jsx(Mz,{}),!i&&!s.series&&o.jsxs("div",{className:"h-[250px] p-3 w-full mx-auto border shadow-md drop-shadow-md rounded-xl",children:[o.jsx("span",{className:"text-lg text-pmi-gray uppercase",children:r("dataDistribution.category")}),o.jsx("div",{className:"h-full flex items-center justify-center",children:o.jsx("p",{className:"text-pmi-gray text-sm italic",children:r("dataDistribution.theresNoDataToShow")})})]}),!i&&t&&s.series&&s.series.length>0&&o.jsx(Vw,{title:r("dataDistribution.category"),xTitle:r("dataDistribution.category"),data:s,maxTicks:parseFloat(l.toString()),minTicks:parseFloat(d.toString()),height:170,max:3,customClass:"p-1 w-full mx-auto border shadow-md drop-shadow-md rounded-xl"}),!i&&!h.series&&o.jsxs("div",{className:"h-[250px] p-3 w-full mx-auto border shadow-md drop-shadow-md rounded-xl",children:[o.jsx("span",{className:"text-lg text-pmi-gray uppercase",children:r("dataDistribution.warehouseValue")}),o.jsx("div",{className:"h-full flex items-center justify-center",children:o.jsx("p",{className:"text-pmi-gray text-sm italic",children:r("dataDistribution.theresNoDataToShow")})})]}),!i&&e&&h.series&&h.series.length>0&&o.jsx(Vw,{title:r("dataDistribution.warehouseValue"),xTitle:r("dataDistribution.warehouseLocation"),data:h,maxTicks:parseFloat(y.toString()),minTicks:parseFloat(w.toString()),height:245,max:6,customClass:"p-1 w-full mx-auto border shadow-md drop-shadow-md rounded-xl"}),!i&&!b.series&&o.jsxs("div",{className:"h-[250px] p-3 w-full mx-auto border shadow-md drop-shadow-md rounded-xl",children:[o.jsx("tspan",{className:"text-lg text-pmi-gray uppercase",children:r("dataDistribution.aidValue")}),o.jsx("div",{className:"h-full flex items-center justify-center",children:o.jsx("p",{className:"text-pmi-gray text-sm italic",children:r("dataDistribution.theresNoDataToShow")})})]}),!i&&n&&b.series&&b.series.length>0&&o.jsx(Vw,{title:r("dataDistribution.aidValue"),xTitle:r("dataDistribution.placeDelivery"),data:b,maxTicks:parseFloat(v.toString()),minTicks:parseFloat(N.toString()),height:245,max:6,customClass:"p-1 w-full mx-auto border shadow-md drop-shadow-md rounded-xl"})]})};var Dz={exports:{}};
vendor: 9,064 bytes, lines 179-180
179(function(t){(function(e,n){t.exports?(n.default=n,t.exports=e&&e.document?n(e):n):(e.Highcharts&&e.Highcharts.error(16,!0),e.Highcharts=n(e))})(typeof window<"u"?window:jh,function(e){var n={};function i(r,s,a,l){!r.hasOwnProperty(s)&&(r[s]=l.apply(null,a),e&&typeof CustomEvent=="function"&&e.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:s,module:r[s]}})))}return i(n,"Core/Globals.js",[],function(){var r,s;return(s=r||(r={})).SVG_NS="http://www.w3.org/2000/svg",s.product="Highcharts",s.version="11.4.8",s.win=e!==void 0?e:{},s.doc=s.win.document,s.svg=s.doc&&s.doc.createElementNS&&!!s.doc.createElementNS(s.SVG_NS,"svg").createSVGRect,s.userAgent=s.win.navigator&&s.win.navigator.userAgent||"",s.isChrome=s.win.chrome,s.isFirefox=s.userAgent.indexOf("Firefox")!==-1,s.isMS=/(edge|msie|trident)/i.test(s.userAgent)&&!s.win.opera,s.isSafari=!s.isChrome&&s.userAgent.indexOf("Safari")!==-1,s.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(s.userAgent),s.isWebKit=s.userAgent.indexOf("AppleWebKit")!==-1,s.deg2rad=2*Math.PI/360,s.hasBidiBug=s.isFirefox&&4>parseInt(s.userAgent.split("Firefox/")[1],10),s.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],s.noop=function(){},s.supportsPassiveEvents=function(){let a=!1;if(!s.isMS){let l=Object.defineProperty({},"passive",{get:function(){a=!0}});s.win.addEventListener&&s.win.removeEventListener&&(s.win.addEventListener("testPassive",s.noop,l),s.win.removeEventListener("testPassive",s.noop,l))}return a}(),s.charts=[],s.composed=[],s.dateFormats={},s.seriesTypes={},s.symbolSizes={},s.chartCount=0,r}),i(n,"Core/Utilities.js",[n["Core/Globals.js"]],function(r){let s,{charts:a,doc:l,win:c}=r;function d(g,f,j,P){let C=f?"Highcharts error":"Highcharts warning";g===32&&(g=`${C}: Deprecated member`);let D=k(g),M=D?`${C} #${g}: www.highcharts.com/errors/${g}/`:g.toString();if(P!==void 0){let z="";D&&(M+="?"),I(P,function(J,F){z+=` 180 - ${F}: ${J}`,D&&(M+=encodeURI(F)+"="+encodeURI(J))}),M+=z}L(r,"displayError",{chart:j,code:g,message:M,params:P},function(){if(f)throw Error(M);c.console&&d.messages.indexOf(M)===-1&&console.warn(M)}),d.messages.push(M)}function u(g,f){return parseInt(g,f||10)}function h(g){return typeof g=="string"}function p(g){let f=Object.prototype.toString.call(g);return f==="[object Array]"||f==="[object Array Iterator]"}function y(g,f){return!!g&&typeof g=="object"&&(!f||!p(g))}function m(g){return y(g)&&typeof g.nodeType=="number"}function w(g){let f=g&&g.constructor;return!!(y(g,!0)&&!m(g)&&f&&f.name&&f.name!=="Object")}function k(g){return typeof g=="number"&&!isNaN(g)&&g<1/0&&g>-1/0}function b(g){return g!=null}function x(g,f,j){let P,C=h(f)&&!b(j),D=(M,z)=>{b(M)?g.setAttribute(z,M):C?(P=g.getAttribute(z))||z!=="class"||(P=g.getAttribute(z+"Name")):g.removeAttribute(z)};return h(f)?D(j,f):I(f,D),P}function v(g){return p(g)?g:[g]}function E(g,f){let j;for(j in g||(g={}),f)g[j]=f[j];return g}function N(){let g=arguments,f=g.length;for(let j=0;j<f;j++){let P=g[j];if(P!=null)return P}}function S(g,f){E(g.style,f)}function _(g){return Math.pow(10,Math.floor(Math.log(g)/Math.LN10))}function $(g,f){return g>1e14?g:parseFloat(g.toPrecision(f||14))}(d||(d={})).messages=[],Math.easeInOutSine=function(g){return-.5*(Math.cos(Math.PI*g)-1)};let V=Array.prototype.find?function(g,f){return g.find(f)}:function(g,f){let j,P=g.length;for(j=0;j<P;j++)if(f(g[j],j))return g[j]};function I(g,f,j){for(let P in g)Object.hasOwnProperty.call(g,P)&&f.call(j||g[P],g[P],P,g)}function A(g,f,j){function P(M,z){let J=g.removeEventListener;J&&J.call(g,M,z,!1)}function C(M){let z,J;g.nodeName&&(f?(z={})[f]=!0:z=M,I(z,function(F,q){if(M[q])for(J=M[q].length;J--;)P(q,M[q][J].fn)}))}let D=typeof g=="function"&&g.prototype||g;if(Object.hasOwnProperty.call(D,"hcEvents")){let M=D.hcEvents;if(f){let z=M[f]||[];j?(M[f]=z.filter(function(J){return j!==J.fn}),P(f,j)):(C(M),M[f]=[])}else C(M),delete D.hcEvents}}function L(g,f,j,P){if(j=j||{},l.createEvent&&(g.dispatchEvent||g.fireEvent&&g!==r)){let C=l.createEvent("Events");C.initEvent(f,!0,!0),j=E(C,j),g.dispatchEvent?g.dispatchEvent(j):g.fireEvent(f,j)}else if(g.hcEvents){j.target||E(j,{preventDefault:function(){j.defaultPrevented=!0},target:g,type:f});let C=[],D=g,M=!1;for(;D.hcEvents;)Object.hasOwnProperty.call(D,"hcEvents")&&D.hcEvents[f]&&(C.length&&(M=!0),C.unshift.apply(C,D.hcEvents[f])),D=Object.getPrototypeOf(D);M&&C.sort((z,J)=>z.order-J.order),C.forEach(z=>{z.fn.call(g,j)===!1&&j.preventDefault()})}P&&!j.defaultPrevented&&P.call(g,j)}I({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(g,f){r[f]=function(j){return d(32,!1,void 0,{[`Highcharts.${f}`]:`use Array.${g}`}),Array.prototype[g].apply(j,[].slice.call(arguments,1))}});let T=function(){let g=Math.random().toString(36).substring(2,9)+"-",f=0;return function(){return"highcharts-"+(s?"":g)+f++}}();return c.jQuery&&(c.jQuery.fn.highcharts=function(){let g=[].slice.call(arguments);if(this[0])return g[0]?(new r[h(g[0])?g.shift():"Chart"](this[0],g[0],g[1]),this):a[x(this[0],"data-highcharts-chart")]}),{addEvent:function(g,f,j,P={}){let C=typeof g=="function"&&g.prototype||g;Object.hasOwnProperty.call(C,"hcEvents")||(C.hcEvents={});let D=C.hcEvents;r.Point&&g instanceof r.Point&&g.series&&g.series.chart&&(g.series.chart.runTrackerClick=!0);let M=g.addEventListener;M&&M.call(g,f,j,!!r.supportsPassiveEvents&&{passive:P.passive===void 0?f.indexOf("touch")!==-1:P.passive,capture:!1}),D[f]||(D[f]=[]);let z={fn:j,order:typeof P.order=="number"?P.order:1/0};return D[f].push(z),D[f].sort((J,F)=>J.order-F.order),function(){A(g,f,j)}},arrayMax:function(g){let f=g.length,j=g[0];for(;f--;)g[f]>j&&(j=g[f]);return j},arrayMin:function(g){let f=g.length,j=g[0];for(;f--;)g[f]<j&&(j=g[f]);return j},attr:x,clamp:function(g,f,j){return g>f?g<j?g:j:f},clearTimeout:function(g){b(g)&&clearTimeout(g)},correctFloat:$,createElement:function(g,f,j,P,C){let D=l.createElement(g);return f&&E(D,f),C&&S(D,{padding:"0",border:"none",margin:"0"}),j&&S(D,j),P&&P.appendChild(D),D},crisp:(g,f=0,j)=>{let P=f%2/2,C=j?-1:1;return(Math.round(g*C-P)+P)*C},css:S,defined:b,destroyObjectProperties:function(g,f,j){I(g,function(P,C){P!==f&&(P!=null&&P.destroy)&&P.destroy(),(P!=null&&P.destroy||!j)&&delete g[C]})},diffObjects:function(g,f,j,P){let C={};return function D(M,z,J,F){let q=j?z:M;I(M,function(U,Q){if(!F&&P&&P.indexOf(Q)>-1&&z[Q]){U=v(U),J[Q]=[];for(let ce=0;ce<Math.max(U.length,z[Q].length);ce++)z[Q][ce]&&(U[ce]===void 0?J[Q][ce]=z[Q][ce]:(J[Q][ce]={},D(U[ce],z[Q][ce],J[Q][ce],F+1)))}else y(U,!0)&&!U.nodeType?(J[Q]=p(U)?[]:{},D(U,z[Q]||{},J[Q],F+1),Object.keys(J[Q]).length!==0||Q==="colorAxis"&&F===0||delete J[Q]):(M[Q]!==z[Q]||Q in M&&!(Q in z))&&Q!=="__proto__"&&Q!=="constructor"&&(J[Q]=q[Q])})}(g,f,C,0),C},discardElement:function(g){g&&g.parentElement&&g.parentElement.removeChild(g)},erase:function(g,f){let j=g.length;for(;j--;)if(g[j]===f){g.splice(j,1);break}},error:d,extend:E,extendClass:function(g,f){let j=function(){};return j.prototype=new g,E(j.prototype,f),j},find:V,fireEvent:L,getClosestDistance:function(g,f){let j,P,C,D=!f;return g.forEach(M=>{if(M.length>1)for(C=M.length-1;C>0;C--)(P=M[C]-M[C-1])<0&&!D?(f==null||f(),f=void 0):P&&(j===void 0||P<j)&&(j=P)}),j},getMagnitude:_,getNestedProperty:function(g,f){let j=g.split(".");for(;j.length&&b(f);){let P=j.shift();if(P===void 0||P==="__proto__")return;if(P==="this"){let D;return y(f)&&(D=f["@this"]),D??f}let C=f[P];if(!b(C)||typeof C=="function"||typeof C.nodeType=="number"||C===c)return;f=C}return f},getStyle:function g(f,j,P){let C;if(j==="width"){let M=Math.min(f.offsetWidth,f.scrollWidth),z=f.getBoundingClientRect&&f.getBoundingClientRect().width;return z<M&&z>=M-1&&(M=Math.floor(z)),Math.max(0,M-(g(f,"padding-left",!0)||0)-(g(f,"padding-right",!0)||0))}if(j==="height")return Math.max(0,Math.min(f.offsetHeight,f.scrollHeight)-(g(f,"padding-top",!0)||0)-(g(f,"padding-bottom",!0)||0));let D=c.getComputedStyle(f,void 0);return D&&(C=D.getPropertyValue(j),N(P,j!=="opacity")&&(C=u(C))),C},inArray:function(g,f,j){return d(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),f.indexOf(g,j)},insertItem:function(g,f){let j,P=g.options.index,C=f.length;for(j=g.options.isInternal?C:0;j<C+1;j++)if(!f[j]||k(P)&&P<N(f[j].options.index,f[j]._i)||f[j].options.isInternal){f.splice(j,0,g);break}return j},isArray:p,isClass:w,isDOMElement:m,isFunction:function(g){return typeof g=="function"},isNumber:k,isObject:y,isString:h,keys:function(g){return d(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(g)},merge:function(){let g,f=arguments,j={},P=function(D,M){return typeof D!="object"&&(D={}),I(M,function(z,J){J!=="__proto__"&&J!=="constructor"&&(!y(z,!0)||w(z)||m(z)?D[J]=M[J]:D[J]=P(D[J]||{},z))}),D};f[0]===!0&&(j=f[1],f=Array.prototype.slice.call(f,2));let C=f.length;for(g=0;g<C;g++)j=P(j,f[g]);return j},normalizeTickInterval:function(g,f,j,P,C){let D,M=g;j=N(j,_(g));let z=g/j;for(!f&&(f=C?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],P===!1&&(j===1?f=f.filter(function(J){return J%1==0}
180):j<=.1&&(f=[1/j]))),D=0;D<f.length&&(M=f[D],(!C||!(M*j>=g))&&(C||!(z<=(f[D]+(f[D+1]||f[D]))/2)));D++);return $(M*j,-Math.round(Math.log(.001)/Math.LN10))},objectEach:I,offset:function(g){let f=l.documentElement,j=g.parentElement||g.parentNode?g.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:j.top+(c.pageYOffset||f.scrollTop)-(f.clientTop||0),left:j.left+(c.pageXOffset||f.scrollLeft)-(f.clientLeft||0),width:j.width,height:j.height}},pad:function(g,f,j){return Array((f||2)+1-String(g).replace("-","").length).join(j||"0")+g},pick:N,pInt:u,pushUnique:function(g,f){return 0>g.indexOf(f)&&!!g.push(f)},relativeLength:function(g,f,j){return/%$/.test(g)?f*parseFloat(g)/100+(j||0):parseFloat(g)},removeEvent:A,replaceNested:function(g,...f){let j,P;do for(P of(j=g,f))g=g.replace(P[0],P[1]);while(g!==j);return g},splat:v,stableSort:function(g,f){let j,P,C=g.length;for(P=0;P<C;P++)g[P].safeI=P;for(g.sort(function(D,M){return(j=f(D,M))===0?D.safeI-M.safeI:j}),P=0;P<C;P++)delete g[P].safeI},syncTimeout:function(g,f,j){return f>0?setTimeout(g,f,j):(g.call(0,j),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:T,useSerialIds:function(g){return s=N(g,s)},wrap:function(g,f,j){let P=g[f];g[f]=function(){let C=arguments,D=this;return j.apply(this,[function(){return P.apply(D,arguments.length?arguments:C)}].concat([].slice.call(arguments)))}}}}),i(n,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{},position:{}},reflow:!0,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),i(n,"Core/Color/Palettes.js",[],function(){return{colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"]}}),i(n,"Core/Time.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],function(r,s){let{win:a}=r,{defined:l,error:c,extend:d,isNumber:u,isObject:h,merge:p,objectEach:y,pad:m,pick:w,splat:k,timeUnits:b}=s,x=r.isSafari&&a.Intl&&a.Intl.DateTimeFormat.prototype.formatRange,v=r.isSafari&&a.Intl&&!a.Intl.DateTimeFormat.prototype.formatRange;class E{constructor(S){this.options={},this.useUTC=!1,this.variableTimezone=!1,this.Date=a.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(S)}get(S,_){if(this.variableTimezone||this.timezoneOffset){let $=_.getTime(),V=$-this.getTimezoneOffset(_);_.setTime(V);let I=_["getUTC"+S]();return _.setTime($),I}return this.useUTC?_["getUTC"+S]():_["get"+S]()}set(S,_,$){if(this.variableTimezone||this.timezoneOffset){if(S==="Milliseconds"||S==="Seconds"||S==="Minutes"&&this.getTimezoneOffset(_)%36e5==0)return _["setUTC"+S]($);let V=this.getTimezoneOffset(_),I=_.getTime()-V;_.setTime(I),_["setUTC"+S]($);let A=this.getTimezoneOffset(_);return I=_.getTime()+A,_.setTime(I)}return this.useUTC||x&&S==="FullYear"?_["setUTC"+S]($):_["set"+S]($)}update(S={}){let _=w(S.useUTC,!0);this.options=S=p(!0,this.options,S),this.Date=S.Date||a.Date||Date,this.useUTC=_,this.timezoneOffset=_&&S.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=_&&!!(S.getTimezoneOffset||S.timezone)}makeTime(S,_,$,V,I,A){let L,T,g;return this.useUTC?(L=this.Date.UTC.apply(0,arguments),T=this.getTimezoneOffset(L),L+=T,T!==(g=this.getTimezoneOffset(L))?L+=g-T:T-36e5!==this.getTimezoneOffset(L-36e5)||v||(L-=36e5)):L=new this.Date(S,_,w($,1),w(V,0),w(I,0),w(A,0)).getTime(),L}timezoneOffsetFunction(){let S=this,_=this.options,$=_.getTimezoneOffset;return this.useUTC?_.timezone?V=>{try{let I=`shortOffset,${_.timezone||""}`,[A,L,T,g,f=0]=(E.formatCache[I]=E.formatCache[I]||Intl.DateTimeFormat("en",{timeZone:_.timezone,timeZoneName:"shortOffset"})).format(V).split(/(GMT|:)/).map(Number),j=-(36e5*(T+f/60));if(u(j))return j}catch{c(34)}return 0}:this.useUTC&&$?V=>6e4*$(V.valueOf()):()=>6e4*(S.timezoneOffset||0):V=>6e4*new Date(V.toString()).getTimezoneOffset()}dateFormat(S,_,$){if(!l(_)||isNaN(_))return r.defaultOptions.lang&&r.defaultOptions.lang.invali
180dDate||"";S=w(S,"%Y-%m-%d %H:%M:%S");let V=this,I=new this.Date(_),A=this.get("Hours",I),L=this.get("Day",I),T=this.get("Date",I),g=this.get("Month",I),f=this.get("FullYear",I),j=r.defaultOptions.lang,P=j&&j.weekdays,C=j&&j.shortWeekdays;return y(d({a:C?C[L]:P[L].substr(0,3),A:P[L],d:m(T),e:m(T,2," "),w:L,b:j.shortMonths[g],B:j.months[g],m:m(g+1),o:g+1,y:f.toString().substr(2,2),Y:f,H:m(A),k:A,I:m(A%12||12),l:A%12||12,M:m(this.get("Minutes",I)),p:A<12?"AM":"PM",P:A<12?"am":"pm",S:m(this.get("Seconds",I)),L:m(Math.floor(_%1e3),3)},r.dateFormats),function(D,M){for(;S.indexOf("%"+M)!==-1;)S=S.replace("%"+M,typeof D=="function"?D.call(V,_):D)}),$?S.substr(0,1).toUpperCase()+S.substr(1):S}resolveDTLFormat(S){return h(S,!0)?S:{main:(S=k(S))[0],from:S[1],to:S[2]}}getTimeTicks(S,_,$,V){let I,A,L,T,g=this,f=g.Date,j=[],P={},C=new f(_),D=S.unitRange,M=S.count||1;if(V=w(V,1),l(_)){g.set("Milliseconds",C,D>=b.second?0:M*Math.floor(g.get("Milliseconds",C)/M)),D>=b.second&&g.set("Seconds",C,D>=b.minute?0:M*Math.floor(g.get("Seconds",C)/M)),D>=b.minute&&g.set("Minutes",C,D>=b.hour?0:M*Math.floor(g.get("Minutes",C)/M)),D>=b.hour&&g.set("Hours",C,D>=b.day?0:M*Math.floor(g.get("Hours",C)/M)),D>=b.day&&g.set("Date",C,D>=b.month?1:Math.max(1,M*Math.floor(g.get("Date",C)/M))),D>=b.month&&(g.set("Month",C,D>=b.year?0:M*Math.floor(g.get("Month",C)/M)),A=g.get("FullYear",C)),D>=b.year&&(A-=A%M,g.set("FullYear",C,A)),D===b.week&&(T=g.get("Day",C),g.set("Date",C,g.get("Date",C)-T+V+(T<V?-7:0))),A=g.get("FullYear",C);let z=g.get("Month",C),J=g.get("Date",C),F=g.get("Hours",C);_=C.getTime(),(g.variableTimezone||!g.useUTC)&&l($)&&(L=$-_>4*b.month||g.getTimezoneOffset(_)!==g.getTimezoneOffset($));let q=C.getTime();for(I=1;q<$;)j.push(q),D===b.year?q=g.makeTime(A+I*M,0):D===b.month?q=g.makeTime(A,z+I*M):L&&(D===b.day||D===b.week)?q=g.makeTime(A,z,J+I*M*(D===b.day?1:7)):L&&D===b.hour&&M>1?q=g.makeTime(A,z,J,F+I*M):q+=D*M,I++;
180j.push(q),D<=b.hour&&j.length<1e4&&j.forEach(function(U){U%18e5==0&&g.dateFormat("%H%M%S%L",U)==="000000000"&&(P[U]="day")})}return j.info=d(S,{higherRanks:P,totalRange:D*M}),j}getDateFormat(S,_,$,V){let I=this.dateFormat("%m-%d %H:%M:%S.%L",_),A="01-01 00:00:00.000",L={millisecond:15,second:12,minute:9,hour:6,day:3},T="millisecond",g=T;for(T in b){if(S===b.week&&+this.dateFormat("%w",_)===$&&I.substr(6)===A.substr(6)){T="week";break}if(b[T]>S){T=g;break}if(L[T]&&I.substr(L[T])!==A.substr(L[T]))break;T!=="week"&&(g=T)}return this.resolveDTLFormat(V[T]).main}}return E.formatCache={},E}),i(n,"Core/Defaults.js",[n["Core/Chart/ChartDefaults.js"],n["Core/Globals.js"],n["Core/Color/Palettes.js"],n["Core/Time.js"],n["Core/Utilities.js"]],function(r,s,a,l,c){let{isTouchDevice:d}=s,{fireEvent:u,merge:h}=c,p={colors:a.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",numericSymbols:["k","M","G","T","P","E"],resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{buttonTheme:{fill:"#f7f7f7",padding:8,r:2,stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"#e6e6e6"},select:{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},disabled:{style:{color:"#cccccc"}}}}},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:r,title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:"",align:"center",widthAdjust:-44},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",events:{},layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:m=>Math.sqrt(1-Math.pow(m-1,2))},borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %e %b, %H:%M:%S.%L",second:"%A, %e %b, %H:%M:%S",minute:"%A, %e %b, %H:%M",hour:"%A, %e %b, %H:%M",day:"%A, %e %b %Y",week:"Week from %A, %e %b %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:d?25:10,headerFormat:'<span style="font-size: 0.8em">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">â</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"#ffffff",borderWidth:void 0,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}};p.chart.styledMode=!1;let y=new l(p.time);return{defaultOptions:p,defaultTime:y,getOptions:function(){return p},setOptions:function(m){return u(s,"setOptions",{options:m}),h(!0,p,m),(m.time||m.global)&&(s.time?s.time.update(h(p.global,p.time,m.global,m.time)):s.time=y),p}}}),i(n,"Core/Color/Color.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],function(r,s){let{isNumber:a,merge:l,pInt:c}=s;class d{static parse(h){return h?new d(h):d.None}constructor(h){let p,y,m,w;this.rgba=[NaN,NaN,NaN,NaN],this.input=h;let k=r.Color;if(k&&k!==d)return new k(h);if(typeof h=="object"&&h.stops!==void 0)this.stops=h.stops.map(b=>new d(b[1]));else if(typeof h=="string"){if(this.input=h=d.names[h.toLowerCase()]||h,h.charAt(0)==="#"){let b=h.length,x=parseInt(h.substr(1),16);b===7?y=[(16711680&x)>>16,(65280&x)>>8,255&x,1]:b===4&&(y=[(3840&x)>>4|(3840&x)>>8,(240&x)>>4|240&x,(15&x)<<4|15&x,1])}if(!y)for(m=d.parsers.length;m--&&!y;)(p=(w=d.parsers[m]).regex.exec(h))&&(y=w.parse(p))}y&&(this.rgba=y)}get(h){let p=this.input,y=this.rgba;if(typeof p=="object"&&this.stops!==void 0){let m=l(p);return m.stops=[].slice.call(m.stops),this.stops.forEach((w,k)=>{m.stops[k]=[m.stops[k][0],w.get(h)]}),m}return y&&a(y[0])?h!=="rgb"&&(h||y[3]!==1)?h==="a"?`${y[3]}`:"rgba("+y.join(",")+")":"rgb("+y[0]+","+y[1]+","+y[2]+")":p}brighten(h){let p=this.rgba;if(this.stops)this.stops.forEach(function(y){y.brighten(h)});else if(a(h)&&h!==0)for(let y=0;y<3;y++)p[y]+=c(255*h),p[y]<0&&(p[y]=0),p[y]>255&&(p[y]=255);return this}
180setOpacity(h){return this.rgba[3]=h,this}tweenTo(h,p){let y=this.rgba,m=h.rgba;if(!a(y[0])||!a(m[0]))return h.input||"none";let w=m[3]!==1||y[3]!==1;return(w?"rgba(":"rgb(")+Math.round(m[0]+(y[0]-m[0])*(1-p))+","+Math.round(m[1]+(y[1]-m[1])*(1-p))+","+Math.round(m[2]+(y[2]-m[2])*(1-p))+(w?","+(m[3]+(y[3]-m[3])*(1-p)):"")+")"}}return d.names={white:"#ffffff",black:"#000000"},d.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(u){return[c(u[1]),c(u[2]),c(u[3]),parseFloat(u[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(u){return[c(u[1]),c(u[2]),c(u[3]),1]}}],d.None=new d(""),d}),i(n,"Core/Animation/Fx.js",[n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],function(r,s,a){let{parse:l}=r,{win:c}=s,{isNumber:d,objectEach:u}=a;class h{constructor(y,m,w){this.pos=NaN,this.options=m,this.elem=y,this.prop=w}dSetter(){let y=this.paths,m=y&&y[0],w=y&&y[1],k=this.now||0,b=[];if(k!==1&&m&&w)if(m.length===w.length&&k<1)for(let x=0;x<w.length;x++){let v=m[x],E=w[x],N=[];for(let S=0;S<E.length;S++){let _=v[S],$=E[S];d(_)&&d($)&&!(E[0]==="A"&&(S===4||S===5))?N[S]=_+k*($-_):N[S]=$}b.push(N)}else b=w;else b=this.toD||[];this.elem.attr("d",b,void 0,!0)}update(){let y=this.elem,m=this.prop,w=this.now,k=this.options.step;this[m+"Setter"]?this[m+"Setter"]():y.attr?y.element&&y.attr(m,w,null,!0):y.style[m]=w+this.unit,k&&k.call(y,w,this)}run(y,m,w){let k=this,b=k.options,x=function(N){return!x.stopped&&k.step(N)},v=c.requestAnimationFrame||function(N){setTimeout(N,13)},E=function(){for(let N=0;N<h.timers.length;N++)h.timers[N]()||h.timers.splice(N--,1);h.timers.length&&v(E)};y!==m||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=y,this.end=m,this.unit=w,this.now=this.start,this.pos=0,x.elem=this.elem,x.prop=this.prop,x()&&h.timers.push(x)===1&&v(E)):(delete b.curAnim[this.prop],b.complete&&Object.keys(b.curAnim).length===0&&b.complete.call(this.elem))}step(y){let m,w,k=+new Date,b=this.options,x=this.elem,v=b.complete,E=b.duration,N=b.curAnim;return x.attr&&!x.element?m=!1:y||k>=E+this.startTime?(this.now=this.end,this.pos=1,this.update(),N[this.prop]=!0,w=!0,u(N,function(S){S!==!0&&(w=!1)}),w&&v&&v.call(x),m=!1):(this.pos=b.easing((k-this.startTime)/E),this.now=this.start+(this.end-this.start)*this.pos,this.update(),m=!0),m}initPath(y,m,w){let k=y.startX,b=y.endX,x=w.slice(),v=y.isArea,E=v?2:1,N=m&&w.length>m.length&&w.hasStackedCliffs,S,_,$,V,I=m&&m.slice();if(!I||N)return[x,x];function A(T,g){for(;T.length<_;){let f=T[0],j=g[_-T.length];if(j&&f[0]==="M"&&(j[0]==="C"?T[0]=["C",f[1],f[2],f[1],f[2],f[1],f[2]]:T[0]=["L",f[1],f[2]]),T.unshift(f),v){let P=T.pop();T.push(T[T.length-1],P)}}}function L(T){for(;T.length<_;){let g=T[Math.floor(T.length/E)-1].slice();if(g[0]==="C"&&(g[1]=g[5],g[2]=g[6]),v){let f=T[Math.floor(T.length/E)].slice();T.splice(T.length/2,0,g,f)}else T.push(g)}}if(k&&b&&b.length){for($=0;$<k.length;$++){if(k[$]===b[0]){S=$;break}if(k[0]===b[b.length-k.length+$]){S=$,V=!0;break}if(k[k.length-1]===b[b.length-k.length+$]){S=k.length-$;break}}S===void 0&&(I=[])}return I.length&&d(S)&&(_=x.length+S*E,V?(A(I,x),L(x)):(A(x,I),L(I))),[I,x]}fillSetter(){h.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,l(this.start).tweenTo(l(this.end),this.pos),void 0,!0)}}return h.timers=[],h}),i(n,"Core/Animation/AnimationUtilities.js",[n["Core/Animation/Fx.js"],n["Core/Utilities.js"]],function(r,s){let{defined:a,getStyle:l,isArray:c,isNumber:d,isObject:u,merge:h,objectEach:p,pick:y}=s;function m(k){return u(k)?h({duration:500,defer:0},k):{duration:k?500:0,defer:0}}function w(k,b){let x=r.timers.length;for(;x--;)r.timers[x].elem!==k||b&&b!==r.timers[x].prop||(r.timers[x].stopped=!0)}return{animate:function(k,b,x){let v,E="",N,S,_;u(x)||(_=arguments,x={duration:_[2],easing:_[3],complete:_[4]}),d(x.duration)||(x.duration=400),x.easing=typeof x.easing=="function"?x.easing:Math[x.easing]||Math.easeInOutSine,x.curAnim=h(b),p(b,function($,V){w(k,V),S=new r(k,x,V),N=void 0,V==="d"&&c(b.d)?(S.paths=S.initPath(k,k.pathArray,b.d),S.toD=b.d,v=0,N=1):k.attr?v=k.attr(V):(v=parseFloat(l(k,V))||0,V!=="opacity"&&(E="px")),N||(N=$),typeof N=="string"&&N.match("px")&&(N=N.replace(/px/g,"")),S.run(v,N,E)})},animObject:m,getDeferredAnimation:function(k,b,x){let v=m(b),E=x?[x]:k.series,N=0,S=0;
180return E.forEach(_=>{let $=m(_.options.animation);N=u(b)&&a(b.defer)?v.defer:Math.max(N,$.duration+$.defer),S=Math.min(v.duration,$.duration)}),k.renderer.forExport&&(N=0),{defer:Math.max(0,N-S),duration:Math.min(N,S)}},setAnimation:function(k,b){b.renderer.globalAnimation=y(k,b.options.chart.animation,!0)},stop:w}}),i(n,"Core/Renderer/HTML/AST.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],function(r,s){let{SVG_NS:a,win:l}=r,{attr:c,createElement:d,css:u,error:h,isFunction:p,isString:y,objectEach:m,splat:w}=s,{trustedTypes:k}=l,b=k&&p(k.createPolicy)&&k.createPolicy("highcharts",{createHTML:N=>N}),x=b?b.createHTML(""):"",v=function(){try{return!!new DOMParser().parseFromString(x,"text/html")}catch{return!1}}();class E{static filterUserAttributes(S){return m(S,(_,$)=>{let V=!0;E.allowedAttributes.indexOf($)===-1&&(V=!1),["background","dynsrc","href","lowsrc","src"].indexOf($)!==-1&&(V=y(_)&&E.allowedReferences.some(I=>_.indexOf(I)===0)),V||(h(33,!1,void 0,{"Invalid attribute in config":`${$}`}),delete S[$]),y(_)&&S[$]&&(S[$]=_.replace(/</g,"<"))}),S}static parseStyle(S){return S.split(";").reduce((_,$)=>{let V=$.split(":").map(A=>A.trim()),I=V.shift();return I&&V.length&&(_[I.replace(/-([a-z])/g,A=>A[1].toUpperCase())]=V.join(":")),_},{})}static setElementHTML(S,_){S.innerHTML=E.emptyHTML,_&&new E(_).addToDOM(S)}constructor(S){this.nodes=typeof S=="string"?this.parseMarkup(S):S}addToDOM(S){return function _($,V){let I;return w($).forEach(function(A){let L,T=A.tagName,g=A.textContent?r.doc.createTextNode(A.textContent):void 0,f=E.bypassHTMLFiltering;if(T)if(T==="#text")L=g;else if(E.allowedTags.indexOf(T)!==-1||f){let j=T==="svg"?a:V.namespaceURI||a,P=r.doc.createElementNS(j,T),C=A.attributes||{};m(A,function(D,M){M!=="tagName"&&M!=="attributes"&&M!=="children"&&M!=="style"&&M!=="textContent"&&(C[M]=D)}),c(P,f?C:E.filterUserAttributes(C)),A.style&&u(P,A.style),g&&P.appendChild(g),_(A.children||[],P),L=P}else h(33,!1,void 0,{"Invalid tagName in config":T});L&&V.appendChild(L),I=L}),I}(this.nodes,S)}parseMarkup(S){let _,$=[];if(S=S.trim().replace(/ style=(["'])/g," data-style=$1"),v)_=new DOMParser().parseFromString(b?b.createHTML(S):S,"text/html");else{let I=d("div");I.innerHTML=S,_={body:I}}let V=(I,A)=>{let L=I.nodeName.toLowerCase(),T={tagName:L};L==="#text"&&(T.textContent=I.textContent||"");let g=I.attributes;if(g){let f={};[].forEach.call(g,j=>{j.name==="data-style"?T.style=E.parseStyle(j.value):f[j.name]=j.value}),T.attributes=f}if(I.childNodes.length){let f=[];[].forEach.call(I.childNodes,j=>{V(j,f)}),f.length&&(T.children=f)}A.push(T)};return[].forEach.call(_.body.childNodes,I=>V(I,$)),$}}return E.allowedAttributes=["alt","aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","class","clip-path","color","colspan","cx","cy","d","dx","dy","disabled","fill","filterUnits","flood-color","flood-opacity","height","href","id","in","in2","markerHeight","markerWidth","offset","opacity","operator","orient","padding","paddingLeft","paddingRight","patternUnits","r","radius","refX","refY","role","scope","slope","src","startOffset","stdDeviation","stroke","stroke-linecap","stroke-width","style","tableValues","result","rowspan","summary","target","tabindex","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],E.allowedReferences=["https://","http://","mailto:","/","../","./","#"],E.allowedTags=["a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMorphology","feOffset","feMerge","feMergeNode","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","text","textPath","thead","title","tbody","tspan","td","th","tr","u","ul","#text"],E.emptyHTML=x,E.bypassHTMLFiltering=!1,E}),i(n,"Core/Templating.js",[n["Core/Defaults.js"],n["Core/Utilities.js"]],function(r,s){let{defaultOptions:a,defaultTime:l}=r,{extend:c,getNestedProperty:d,isArray:u,isNumber:h,isObject:p,pick:y,pInt:m}=s,w={add:(x,v)=>x+v,divide:(x,v)=>v!==0?x/v:"",eq:(x,v)=>x==v,each:function(x){let v=arguments[arguments.length-1];return!!u(x)&&x.map((E,N)=>
180k(v.body,c(p(E)?E:{"@this":E},{"@index":N,"@first":N===0,"@last":N===x.length-1}))).join("")},ge:(x,v)=>x>=v,gt:(x,v)=>x>v,if:x=>!!x,le:(x,v)=>x<=v,lt:(x,v)=>x<v,multiply:(x,v)=>x*v,ne:(x,v)=>x!=v,subtract:(x,v)=>x-v,unless:x=>!x};function k(x="",v,E){let N=/\{([\w\:\.\,;\-\/<>%@"'â= #\(\)]+)\}/g,S=/\(([\w\:\.\,;\-\/<>%@"'= ]+)\)/g,_=[],$=/f$/,V=/\.(\d)/,I=a.lang,A=E&&E.time||l,L=E&&E.numberFormatter||b,T=(C="")=>{let D;return C==="true"||C!=="false"&&((D=Number(C)).toString()===C?D:d(C,v))},g,f,j=0,P;for(;(g=N.exec(x))!==null;){let C=S.exec(g[1]);C&&(g=C,P=!0),f&&f.isBlock||(f={ctx:v,expression:g[1],find:g[0],isBlock:g[1].charAt(0)==="#",start:g.index,startInner:g.index+g[0].length,length:g[0].length});let D=g[1].split(" ")[0].replace("#","");w[D]&&(f.isBlock&&D===f.fn&&j++,f.fn||(f.fn=D));let M=g[1]==="else";if(f.isBlock&&f.fn&&(g[1]===`/${f.fn}`||M))if(j)!M&&j--;else{let z=f.startInner,J=x.substr(z,g.index-z);f.body===void 0?(f.body=J,f.startInner=g.index+g[0].length):f.elseBody=J,f.find+=J+g[0],M||(_.push(f),f=void 0)}else f.isBlock||_.push(f);if(C&&!(f!=null&&f.isBlock))break}return _.forEach(C=>{let D,M,{body:z,elseBody:J,expression:F,fn:q}=C;if(q){let U=[C],Q=F.split(" ");for(M=w[q].length;M--;)U.unshift(T(Q[M+1]));D=w[q].apply(v,U),C.isBlock&&typeof D=="boolean"&&(D=k(D?z:J,v,E))}else{let U=F.split(":");if(D=T(U.shift()||""),U.length&&typeof D=="number"){let Q=U.join(":");if($.test(Q)){let ce=parseInt((Q.match(V)||["","-1"])[1],10);D!==null&&(D=L(D,ce,I.decimalPoint,Q.indexOf(",")>-1?I.thousandsSep:""))}else D=A.dateFormat(Q,D)}}x=x.replace(C.find,y(D,""))}),P?k(x,v,E):x}function b(x,v,E,N){let S,_;x=+x||0,v=+v;let $=a.lang,V=(x.toString().split(".")[1]||"").split("e")[0].length,I=x.toString().split("e"),A=v;v===-1?v=Math.min(V,20):h(v)?v&&I[1]&&I[1]<0&&((_=v+ +I[1])>=0?(I[0]=(+I[0]).toExponential(_).split("e")[0],v=_):(I[0]=I[0].split(".")[0]||0,x=v<20?(I[0]*Math.pow(10,I[1])).toFixed(v):0,I[1]=0)):v=2;let L=(Math.abs(I[1]?I[0]:x)+Math.pow(10,-Math.max(v,V)-1)).toFixed(v),T=String(m(L)),g=T.length>3?T.length%3:0;return E=y(E,$.decimalPoint),N=y(N,$.thousandsSep),S=(x<0?"-":"")+(g?T.substr(0,g)+N:""),0>+I[1]&&!A?S="0":S+=T.substr(g).replace(/(\d{3})(?=\d)/g,"$1"+N),v?S+=E+L.slice(-v):+S==0&&(S="0"),I[1]&&+S!=0&&(S+="e"+I[1]),S}return{dateFormat:function(x,v,E){return l.dateFormat(x,v,E)},format:k,helpers:w,numberFormat:b}}),i(n,"Core/Renderer/RendererRegistry.js",[n["Core/Globals.js"]],function(r){var s,a;let l;return(a=s||(s={})).rendererTypes={},a.getRendererType=function(c=l){return a.rendererTypes[c]||a.rendererTypes[l]},a.registerRendererType=function(c,d,u){a.rendererTypes[c]=d,(!l||u)&&(l=c,r.Renderer=d)},s}),i(n,"Core/Renderer/RendererUtilities.js",[n["Core/Utilities.js"]],function(r){var s;let{clamp:a,pick:l,pushUnique:c,stableSort:d}=r;return(s||(s={})).distribute=function u(h,p,y){let m=h,w=m.reducedLen||p,k=(T,g)=>T.target-g.target,b=[],x=h.length,v=[],E=b.push,N,S,_,$=!0,V,I,A=0,L;for(N=x;N--;)A+=h[N].size;if(A>w){for(d(h,(T,g)=>(g.rank||0)-(T.rank||0)),_=(L=h[0].rank===h[h.length-1].rank)?x/2:-1,S=L?_:x-1;_&&A>w;)V=h[N=Math.floor(S)],c(v,N)&&(A-=V.size),S+=_,L&&S>=h.length&&(_/=2,S=_);v.sort((T,g)=>g-T).forEach(T=>E.apply(b,h.splice(T,1)))}for(d(h,k),h=h.map(T=>({size:T.size,targets:[T.target],align:l(T.align,.5)}));$;){for(N=h.length;N--;)V=h[N],I=(Math.min.apply(0,V.targets)+Math.max.apply(0,V.targets))/2,V.pos=a(I-V.size*V.align,0,p-V.size);for(N=h.length,$=!1;N--;)N>0&&h[N-1].pos+h[N-1].size>h[N].pos&&(h[N-1].size+=h[N].size,h[N-1].targets=h[N-1].targets.concat(h[N].targets),h[N-1].align=.5,h[N-1].pos+h[N-1].size>p&&(h[N-1].pos=p-h[N-1].size),h.splice(N,1),$=!0)}return E.apply(m,b),N=0,h.some(T=>{let g=0;return(T.targets||[]).some(()=>(m[N].pos=T.pos+g,y!==void 0&&Math.abs(m[N].pos-m[N].target)>y?(m.slice(0,N+1).forEach(f=>delete f.pos),m.reducedLen=(m.reducedLen||p)-.1*p,m.reducedLen>.1*p&&u(m,p,y),!0):(g+=m[N].size,N++,!1)))}),d(m,k),m},s}),i(n,"Core/Renderer/SVG/SVGElement.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],function(r,s,a,l){let{animate:c,animObject:d,stop:u}=r,{deg2rad:h,doc:p,svg:y,SVG_NS:m,win:w}=a,{addEvent:k,attr:b,createElement:x,crisp:v,css:E,defined:N,erase:S,extend:_,fireEvent:$,isArray:V,isFunction:I,isObject:A,isString:L,merge:T,objectEach:g,pick:f,pInt:j,pushUnique:P,replaceNested:C,syncTimeout:D,uniqueKey:M}=l;class z{_defaultGetter(F){let q=f(this[F+"Value"],this[F],this.element?this.element.getAttribute(F):null,0);return/^-?[\d\.]+$/.test(q)&&(q=parseFloat(q)),q}_defaultSetter(F,q,U){U.setAttribute(q,F)}add(F){let q,U=this.renderer,Q=this.element;return F&&(this.parentGroup=F),this.textStr!==void 0&&this.element.nodeName==="text"&&U.buildText(this),this.added=!0,(!F||F.handleZ||this.zIndex)&&(q=this.zIndexSetter()),q||(F?F.element:U.box).appendChild(Q),this.onAdd&&this.onAdd(),this}addClass(F,q){let U=q?"":this.attr("class")||"";return(F=(F||"").split(/ /g).reduce(function(Q,ce){return U.indexOf(ce)===-1&&Q.push(ce),Q},U?[U]:[]).join(" "))!==U&&this.attr("class",F),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(F,q,U,Q=!0){let ce,H,B,K,ie={},R=this.renderer,G=R.alignedObjects,W=!!F;F?(this.alignOptions=F,this.alignByTranslate=q,this.alignTo=U):(F=this.alignOptions||{},q=this.alignByTranslate,U=this.alignTo);let Y=!U||L(U)?U||"renderer":void 0;Y&&(W&&P(G,this),U=void 0);let X=f(U,R[Y],R),re=F.align,ee=F.verticalAlign;return ce=(X.x||0)+(F.x||0),H=(X.y||0)+(F.y||0),re==="right"?B=1:re==="center"&&(B=2),B&&(ce+=((X.width||0)-(F.width||0))/B),ie[q?"translateX":"x"]=Math.round(ce),ee==="bottom"?K=1:ee==="middle"&&(K=2),K&&(H+=((X.height||0)-(F.height||0))/K),ie[q?"translateY":"y"]=Math.round(H),Q&&(this[this.placed?"animate":"attr"](ie),this.placed=!0),this.alignAttr=ie,this}alignSetter(F){let q={left:"start",center:"middle",right:"end"};q[F]&&(this.alignValue=F,this.element.setAttribute("text-anchor",q[F]))}animate(F,q,U){let Q=d(f(q,this.renderer.globalAnimation,!0)),ce=Q.defer;return p.hidden&&(Q.duration=0),Q.duration!==0?(U&&(Q.complete=U),D(()=>{this.element&&c(this,F,Q)},ce)):(this.attr(F,void 0,U||Q.complete),g(F,function(H,B){Q.step&&Q.step.call(this,H,{prop:B,pos:1,elem:this})},this)),this}applyTextOutline(F){let q=this.element;F.indexOf("contrast")!==-1&&(F=F.replace(/contrast/g,this.renderer.getContrast(q.style.fill)));let U=F.split(" "),Q=U[U.length-1],ce=U[0];if(ce&&ce!=="none"&&a.svg){this.fakeTS=!0,ce=ce.replace(/(^[\d\.]+)(.*?)$/g,function(R,G,W){return 2*Number(G)+W}),this.removeTextOutline();let H=p.createElementNS(m,"tspan");b(H,{class:"highcharts-text-outline",fill:Q,stroke:Q,"stroke-width":ce,"stroke-linejoin":"round"});let B=q.querySelector("textPath")||q;[].forEach.call(B.childNodes,R=>{let G=R.cloneNode(!0);G.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(W=>G.removeAttribute(W)),H.appendChild(G)});let K=0;[].forEach.call(B.querySelectorAll("text tspan"),R=>{K+=Number(R.getAttribute("dy"))});let ie=p.createElementNS(m,"tspan");ie.textContent="â",b(ie,{x:Number(q.getAttribute("x")),dy:-K}),H.appendChild(ie),B.insertBefore(H,B.firstChild)}}attr(F,q,U,Q){let{element:ce}=this,H=z.symbolCustomAttribs,B,K,ie=this,R;return typeof F=="string"&&q!==void 0&&(B=F,(F={})[B]=q),typeof F=="string"?ie=(this[F+"Getter"]||this._defaultGetter).call(this,F,ce):(g(F,function(G,W){R=!1,Q||u(this,W),this.symbolName&&H.indexOf(W)!==-1&&(K||(this.symbolAttr(F),K=!0),R=!0),this.rotation&&(W==="x"||W==="y")&&(this.doTransform=!0),R||(this[W+"Setter"]||this._defaultSetter).call(this,G,W,ce)},this),this.afterSetters()),U&&U.call(this),ie}clip(F){if(F&&!F.clipPath){let q=M()+"-",U=this.renderer.createElement("clipPath").attr({id:q}).add(this.renderer.defs);_(F,{clipPath:U,id:q,count:0}),F.add(U)}
vendor: 30,113 bytes, line 180
180return this.attr("clip-path",F?`url(${this.renderer.url}#${F.id})`:"none")}crisp(F,q){q=Math.round(q||F.strokeWidth||0);let U=F.x||this.x||0,Q=F.y||this.y||0,ce=(F.width||this.width||0)+U,H=(F.height||this.height||0)+Q,B=v(U,q),K=v(Q,q);return _(F,{x:B,y:K,width:v(ce,q)-B,height:v(H,q)-K}),N(F.strokeWidth)&&(F.strokeWidth=q),F}complexColor(F,q,U){let Q=this.renderer,ce,H,B,K,ie,R,G,W,Y,X,re=[],ee;$(this.renderer,"complexColor",{args:arguments},function(){if(F.radialGradient?H="radialGradient":F.linearGradient&&(H="linearGradient"),H){if(B=F[H],ie=Q.gradients,R=F.stops,Y=U.radialReference,V(B)&&(F[H]=B={x1:B[0],y1:B[1],x2:B[2],y2:B[3],gradientUnits:"userSpaceOnUse"}),H==="radialGradient"&&Y&&!N(B.gradientUnits)&&(K=B,B=T(B,Q.getRadialAttr(Y,K),{gradientUnits:"userSpaceOnUse"})),g(B,function(se,oe){oe!=="id"&&re.push(oe,se)}),g(R,function(se){re.push(se)}),ie[re=re.join(",")])X=ie[re].attr("id");else{B.id=X=M();let se=ie[re]=Q.createElement(H).attr(B).add(Q.defs);se.radAttr=K,se.stops=[],R.forEach(function(oe){oe[1].indexOf("rgba")===0?(G=(ce=s.parse(oe[1])).get("rgb"),W=ce.get("a")):(G=oe[1],W=1);let he=Q.createElement("stop").attr({offset:oe[0],"stop-color":G,"stop-opacity":W}).add(se);se.stops.push(he)})}ee="url("+Q.url+"#"+X+")",U.setAttribute(q,ee),U.gradient=re,F.toString=function(){return ee}}})}css(F){let q=this.styles,U={},Q=this.element,ce,H=!q;if(q&&g(F,function(B,K){q&&q[K]!==B&&(U[K]=B,H=!0)}),H){q&&(F=_(q,U)),F.width===null||F.width==="auto"?delete this.textWidth:Q.nodeName.toLowerCase()==="text"&&F.width&&(ce=this.textWidth=j(F.width)),_(this.styles,F),ce&&!y&&this.renderer.forExport&&delete F.width;let B=T(F);Q.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach(K=>B&&delete B[K]),B.color&&(B.fill=B.color)),E(Q,B)}return this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),F.textOutline&&this.applyTextOutline(F.textOutline)),this}dashstyleSetter(F){let q,U=this["stroke-width"];if(U==="inherit"&&(U=1),F=F&&F.toLowerCase()){let Q=F.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(q=Q.length;q--;)Q[q]=""+j(Q[q])*f(U,NaN);F=Q.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",F)}}destroy(){var K;let F=this,q=F.element||{},U=F.renderer,Q=q.ownerSVGElement,ce=q.nodeName==="SPAN"&&F.parentGroup||void 0,H,B;if(q.onclick=q.onmouseout=q.onmouseover=q.onmousemove=q.point=null,u(F),F.clipPath&&Q){let ie=F.clipPath;[].forEach.call(Q.querySelectorAll("[clip-path],[CLIP-PATH]"),function(R){R.getAttribute("clip-path").indexOf(ie.element.id)>-1&&R.removeAttribute("clip-path")}),F.clipPath=ie.destroy()}if(F.connector=(K=F.connector)==null?void 0:K.destroy(),F.stops){for(B=0;B<F.stops.length;B++)F.stops[B].destroy();F.stops.length=0,F.stops=void 0}for(F.safeRemoveChild(q);ce&&ce.div&&ce.div.childNodes.length===0;)H=ce.parentGroup,F.safeRemoveChild(ce.div),delete ce.div,ce=H;F.alignOptions&&S(U.alignedObjects,F),g(F,function(ie,R){F[R]&&F[R].parentGroup===F&&F[R].destroy&&F[R].destroy(),delete F[R]})}dSetter(F,q,U){V(F)&&(typeof F[0]=="string"&&(F=this.renderer.pathToSegments(F)),this.pathArray=F,F=F.reduce((Q,ce,H)=>ce&&ce.join?(H?Q+" ":"")+ce.join(" "):(ce||"").toString(),"")),/(NaN| {2}|^$)/.test(F)&&(F="M 0 0"),this[q]!==F&&(U.setAttribute(q,F),this[q]=F)}fillSetter(F,q,U){typeof F=="string"?U.setAttribute(q,F):F&&this.complexColor(F,q,U)}hrefSetter(F,q,U){U.setAttributeNS("http://www.w3.org/1999/xlink",q,F)}getBBox(F,q){let U,Q,ce,H,{alignValue:B,element:K,renderer:ie,styles:R,textStr:G}=this,{cache:W,cacheKeys:Y}=ie,X=K.namespaceURI===this.SVG_NS,re=f(q,this.rotation,0),ee=ie.styledMode?K&&z.prototype.getStyle.call(K,"font-size"):R.fontSize;if(N(G)&&((H=G.toString()).indexOf("<")===-1&&(H=H.replace(/\d/g,"0")),H+=["",ie.rootFontSize,ee,re,this.textWidth,B,R.textOverflow,R.fontWeight].join(",")),H&&!F&&(U=W[H]),!U||U.polygon){if(X||ie.forExport){try{ce=this.fakeTS&&function(oe){let he=K.querySelector(".highcharts-text-outline");he&&E(he,{display:oe})},I(ce)&&ce("none"),U=K.getBBox?_({},K.getBBox()):{width:K.offsetWidth,height:K.offsetHeight,x:0,y:0},I(ce)&&ce("")}catch{}(!U||U.width<0)&&(U={x:0,y:0,width:0,height:0})}else U=this.htmlGetBBox();Q=U.height,X&&(U.height=Q={"11px,17":14,"13px,20":16}[`${ee||""},${Math.round(Q)}`]||Q),re&&(U=this.getRotatedBox(U,re));let se={bBox:U};$(this,"afterGetBBox",se),U=se.bBox}if(H&&(G===""||U.height>0)){for(;Y.length>250;)delete W[Y.shift()];W[H]||Y.push(H),W[H]=U}return U}getRotatedBox(F,q){let{x:U,y:Q,width:ce,height:H}=F,{alignValue:B,translateY:K,rotationOriginX:ie=0,rotationOriginY:R=0}=this,G={right:1,center:.5}[B||0]||0,W=Number(this.element.getAttribute("y")||0)-(K?0:Q),Y=q*h,X=(q-90)*h,re=Math.cos(Y),ee=Math.sin(Y),se=ce*re,oe=ce*ee,he=Math.cos(X),pe=Math.sin(X),[[ne,te],[ae,le]]=[ie,R].map(Fe=>[Fe-Fe*re,Fe*ee]),de=U+G*(ce-se)+ne+le+W*he,ue=de+se,me=ue-H*he,ge=me-se,be=Q+W-G*oe-te+ae+W*pe,ve=be+oe,we=ve-H*pe,Ce=we-oe,Pe=Math.min(de,ue,me,ge),Ne=Math.min(be,ve,we,Ce),Ee=Math.max(de,ue,me,ge)-Pe,Te=Math.max(be,ve,we,Ce)-Ne;return{x:Pe,y:Ne,width:Ee,height:Te,polygon:[[de,be],[ue,ve],[me,we],[ge,Ce]]}}getStyle(F){return w.getComputedStyle(this.element||this,"").getPropertyValue(F)}hasClass(F){return(""+this.attr("class")).split(" ").indexOf(F)!==-1}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}constructor(F,q){this.onEvents={},this.opacity=1,this.SVG_NS=m,this.element=q==="span"||q==="body"?x(q):p.createElementNS(this.SVG_NS,q),this.renderer=F,this.styles={},$(this,"afterInit")}on(F,q){let{onEvents:U}=this;return U[F]&&U[F](),U[F]=k(this.element,F,q),this}opacitySetter(F,q,U){let Q=Number(Number(F).toFixed(3));this.opacity=Q,U.setAttribute(q,Q)}reAlign(){var F;(F=this.alignOptions)!=null&&F.width&&this.alignOptions.align!=="left"&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())}removeClass(F){return this.attr("class",(""+this.attr("class")).replace(L(F)?RegExp(`(^| )${F}( |$)`):F," ").replace(/ +/g," ").trim())}removeTextOutline(){let F=this.element.querySelector("tspan.highcharts-text-outline");F&&this.safeRemoveChild(F)}safeRemoveChild(F){let q=F.parentNode;q&&q.removeChild(F)}setRadialReference(F){let q=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=F,q&&q.radAttr&&q.animate(this.renderer.getRadialAttr(F,q.radAttr)),this}shadow(F){var ce;let{renderer:q}=this,U=T(((ce=this.parentGroup)==null?void 0:ce.rotation)===90?{offsetX:-1,offsetY:-1}:{},A(F)?F:{}),Q=q.shadowDefinition(U);return this.attr({filter:F?`url(${q.url}#${Q})`:"none"})}show(F=!0){return this.attr({visibility:F?"inherit":"visible"})}"stroke-widthSetter"(F,q,U){this[q]=F,U.setAttribute(q,F)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;let F=this.getStyle("stroke-width"),q=0,U;return/px$/.test(F)?q=j(F):F!==""&&(b(U=p.createElementNS(m,"rect"),{width:F,"stroke-width":0}),this.element.parentNode.appendChild(U),q=U.getBBox().width,U.parentNode.removeChild(U)),q}symbolAttr(F){let q=this;z.symbolCustomAttribs.forEach(function(U){q[U]=f(F[U],q[U])}),q.attr({d:q.renderer.symbols[q.symbolName](q.x,q.y,q.width,q.height,q)})}textSetter(F){F!==this.textStr&&(delete this.textPxLength,this.textStr=F,this.added&&this.renderer.buildText(this),this.reAlign())}titleSetter(F){let q=this.element,U=q.getElementsByTagName("title")[0]||p.createElementNS(this.SVG_NS,"title");q.insertBefore?q.insertBefore(U,q.firstChild):q.appendChild(U),U.textContent=C(f(F,""),[/<[^>]*>/g,""]).replace(/</g,"<").replace(/>/g,">")}toFront(){let F=this.element;return F.parentNode.appendChild(F),this}translate(F,q){return this.attr({translateX:F,translateY:q})}updateTransform(F="transform"){var W;let{element:q,matrix:U,rotation:Q=0,rotationOriginX:ce,rotationOriginY:H,scaleX:B,scaleY:K,translateX:ie=0,translateY:R=0}=this,G=["translate("+ie+","+R+")"];N(U)&&G.push("matrix("+U.join(",")+")"),Q&&(G.push("rotate("+Q+" "+f(ce,q.getAttribute("x"),0)+" "+f(H,q.getAttribute("y")||0)+")"),((W=this.text)==null?void 0:W.element.tagName)==="SPAN"&&this.text.attr({rotation:Q,rotationOriginX:(ce||0)-this.padding,rotationOriginY:(H||0)-this.padding})),(N(B)||N(K))&&G.push("scale("+f(B,1)+" "+f(K,1)+")"),G.length&&!(this.text||this).textPath&&q.setAttribute(F,G.join(" "))}visibilitySetter(F,q,U){F==="inherit"?U.removeAttribute(q):this[q]!==F&&U.setAttribute(q,F),this[q]=F}xGetter(F){return this.element.nodeName==="circle"&&(F==="x"?F="cx":F==="y"&&(F="cy")),this._defaultGetter(F)}zIndexSetter(F,q){let U=this.renderer,Q=this.parentGroup,ce=(Q||U).element||U.box,H=this.element,B=ce===U.box,K,ie,R,G=!1,W,Y=this.added,X;if(N(F)?(H.setAttribute("data-z-index",F),F=+F,this[q]===F&&(Y=!1)):N(this[q])&&H.removeAttribute("data-z-index"),this[q]=F,Y){for((F=this.zIndex)&&Q&&(Q.handleZ=!0),X=(K=ce.childNodes).length-1;X>=0&&!G;X--)W=!N(R=(ie=K[X]).getAttribute("data-z-index")),ie!==H&&(F<0&&W&&!B&&!X?(ce.insertBefore(H,K[X]),G=!0):(j(R)<=F||W&&(!N(F)||F>=0))&&(ce.insertBefore(H,K[X+1]),G=!0));G||(ce.insertBefore(H,K[B?3:0]),G=!0)}return G}}return z.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],z.prototype.strokeSetter=z.prototype.fillSetter,z.prototype.yGetter=z.prototype.xGetter,z.prototype.matrixSetter=z.prototype.rotationOriginXSetter=z.prototype.rotationOriginYSetter=z.prototype.rotationSetter=z.prototype.scaleXSetter=z.prototype.scaleYSetter=z.prototype.translateXSetter=z.prototype.translateYSetter=z.prototype.verticalAlignSetter=function(J,F){this[F]=J,this.doTransform=!0},z}),i(n,"Core/Renderer/SVG/SVGLabel.js",[n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],function(r,s){let{defined:a,extend:l,isNumber:c,merge:d,pick:u,removeEvent:h}=s;class p extends r{constructor(m,w,k,b,x,v,E,N,S,_){let $;super(m,"g"),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.doUpdate=!1,this.textStr=w,this.x=k,this.y=b,this.anchorX=v,this.anchorY=E,this.baseline=S,this.className=_,this.addClass(_==="button"?"highcharts-no-tooltip":"highcharts-label"),_&&this.addClass("highcharts-"+_),this.text=m.text(void 0,0,0,N).attr({zIndex:1}),typeof x=="string"&&(($=/^url\((.*?)\)$/.test(x))||this.renderer.symbols[x])&&(this.symbolKey=x),this.bBox=p.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=m.styledMode||$,this.deferredAttr={},this.alignFactor=0}alignSetter(m){let w={left:0,center:.5,right:1}[m];w!==this.alignFactor&&(this.alignFactor=w,this.bBox&&c(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(m,w){this.anchorX=m,this.boxAttr(w,Math.round(m)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(m,w){this.anchorY=m,this.boxAttr(w,m-this.ySetting)}boxAttr(m,w){this.box?this.box.attr(m,w):this.deferredAttr[m]=w}css(m){if(m){let w={};m=d(m),p.textProps.forEach(k=>{m[k]!==void 0&&(w[k]=m[k],delete m[k])}),this.text.css(w),"fontSize"in w||"fontWeight"in w?this.updateTextPadding():("width"in w||"textOverflow"in w)&&this.updateBoxSize()}return r.prototype.css.call(this,m)}destroy(){h(this.element,"mouseenter"),h(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),r.prototype.destroy.call(this)}fillSetter(m,w){m&&(this.needsBox=!0),this.fill=m,this.boxAttr(w,m)}getBBox(m,w){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();let{padding:k,height:b=0,translateX:x=0,translateY:v=0,width:E=0}=this,N=u(this.paddingLeft,k),S=w??(this.rotation||0),_={width:E,height:b,x:x+this.bBox.x-N,y:v+this.bBox.y-k+this.baselineOffset};return S&&(_=this.getRotatedBox(_,S)),_}getCrispAdjust(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(m){this.heightSetting=m,this.doUpdate=!0}afterSetters(){super.afterSetters(),this.doUpdate&&(this.updateBoxSize(),this.doUpdate=!1)}onAdd(){this.text.add(this),this.attr({text:u(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&a(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(m,w){c(m)?m!==this[w]&&(this[w]=m,this.updateTextPadding()):this[w]=void 0}rSetter(m,w){this.boxAttr(w,m)}strokeSetter(m,w){this.stroke=m,this.boxAttr(w,m)}"stroke-widthSetter"(m,w){m&&(this.needsBox=!0),this["stroke-width"]=m,this.boxAttr(w,m)}"text-alignSetter"(m){this.textAlign=m}textSetter(m){m!==void 0&&this.text.attr({text:m}),this.updateTextPadding(),this.reAlign()}updateBoxSize(){let m,w=this.text,k={},b=this.padding,x=this.bBox=(!c(this.widthSetting)||!c(this.heightSetting)||this.textAlign)&&a(w.textStr)?w.getBBox(void 0,0):p.emptyBBox;this.width=this.getPaddedWidth(),this.height=(this.heightSetting||x.height||0)+2*b;let v=this.renderer.fontMetrics(w);if(this.baselineOffset=b+Math.min((this.text.firstLineMetrics||v).b,x.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-v.h)/2),this.needsBox&&!w.textPath){if(!this.box){let E=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();E.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),E.add(this)}m=this.getCrispAdjust(),k.x=m,k.y=(this.baseline?-this.baselineOffset:0)+m,k.width=Math.round(this.width),k.height=Math.round(this.height),this.box.attr(l(k,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){let m=this.text;if(!m.textPath){this.updateBoxSize();let w=this.baseline?0:this.baselineOffset,k=u(this.paddingLeft,this.padding);a(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(k+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(k!==m.x||w!==m.y)&&(m.attr("x",k),m.hasBoxWidthChanged&&(this.bBox=m.getBBox(!0)),w!==void 0&&m.attr("y",w)),m.x=k,m.y=w}}widthSetter(m){this.widthSetting=c(m)?m:void 0,this.doUpdate=!0}getPaddedWidth(){let m=this.padding,w=u(this.paddingLeft,m),k=u(this.paddingRight,m);return(this.widthSetting||this.bBox.width||0)+w+k}xSetter(m){this.x=m,this.alignFactor&&(m-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(m),this.attr("translateX",this.xSetting)}ySetter(m){this.ySetting=this.y=Math.round(m),this.attr("translateY",this.ySetting)}}return p.emptyBBox={width:0,height:0,x:0,y:0},p.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"],p}),i(n,"Core/Renderer/SVG/Symbols.js",[n["Core/Utilities.js"]],function(r){let{defined:s,isNumber:a,pick:l}=r;function c(h,p,y,m,w){let k=[];if(w){let b=w.start||0,x=l(w.r,y),v=l(w.r,m||y),E=2e-4/(w.borderRadius?1:Math.max(x,1)),N=Math.abs((w.end||0)-b-2*Math.PI)<E,S=(w.end||0)-(N?E:0),_=w.innerR,$=l(w.open,N),V=Math.cos(b),I=Math.sin(b),A=Math.cos(S),L=Math.sin(S),T=l(w.longArc,S-b-Math.PI<E?0:1),g=["A",x,v,0,T,l(w.clockwise,1),h+x*A,p+v*L];g.params={start:b,end:S,cx:h,cy:p},k.push(["M",h+x*V,p+v*I],g),s(_)&&((g=["A",_,_,0,T,s(w.clockwise)?1-w.clockwise:0,h+_*V,p+_*I]).params={start:S,end:b,cx:h,cy:p},k.push($?["M",h+_*A,p+_*L]:["L",h+_*A,p+_*L],g)),$||k.push(["Z"])}return k}function d(h,p,y,m,w){return w&&w.r?u(h,p,y,m,w):[["M",h,p],["L",h+y,p],["L",h+y,p+m],["L",h,p+m],["Z"]]}function u(h,p,y,m,w){let k=(w==null?void 0:w.r)||0;return[["M",h+k,p],["L",h+y-k,p],["A",k,k,0,0,1,h+y,p+k],["L",h+y,p+m-k],["A",k,k,0,0,1,h+y-k,p+m],["L",h+k,p+m],["A",k,k,0,0,1,h,p+m-k],["L",h,p+k],["A",k,k,0,0,1,h+k,p],["Z"]]}return{arc:c,callout:function(h,p,y,m,w){let k=Math.min(w&&w.r||0,y,m),b=k+6,x=w&&w.anchorX,v=w&&w.anchorY||0,E=u(h,p,y,m,{r:k});if(!a(x)||x<y&&x>0&&v<m&&v>0)return E;if(h+x>y-b)if(v>p+b&&v<p+m-b)E.splice(3,1,["L",h+y,v-6],["L",h+y+6,v],["L",h+y,v+6],["L",h+y,p+m-k]);else if(x<y){let N=v<p+b,S=N?p:p+m;E.splice(N?2:5,0,["L",x,v],["L",h+y-k,S])}else E.splice(3,1,["L",h+y,m/2],["L",x,v],["L",h+y,m/2],["L",h+y,p+m-k]);else if(h+x<b)if(v>p+b&&v<p+m-b)E.splice(7,1,["L",h,v+6],["L",h-6,v],["L",h,v-6],["L",h,p+k]);else if(x>0){let N=v<p+b,S=N?p:p+m;E.splice(N?1:6,0,["L",x,v],["L",h+k,S])}else E.splice(7,1,["L",h,m/2],["L",x,v],["L",h,m/2],["L",h,p+k]);else v>m&&x<y-b?E.splice(5,1,["L",x+6,p+m],["L",x,p+m+6],["L",x-6,p+m],["L",h+k,p+m]):v<0&&x>b&&E.splice(1,1,["L",x-6,p],["L",x,p-6],["L",x+6,p],["L",y-k,p]);return E},circle:function(h,p,y,m){return c(h+y/2,p+m/2,y/2,m/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(h,p,y,m){return[["M",h+y/2,p],["L",h+y,p+m/2],["L",h+y/2,p+m],["L",h,p+m/2],["Z"]]},rect:d,roundedRect:u,square:d,triangle:function(h,p,y,m){return[["M",h+y/2,p],["L",h+y,p+m],["L",h,p+m],["Z"]]},"triangle-down":function(h,p,y,m){return[["M",h,p],["L",h+y,p],["L",h+y/2,p+m],["Z"]]}}}),i(n,"Core/Renderer/SVG/TextBuilder.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],function(r,s,a){let{doc:l,SVG_NS:c,win:d}=s,{attr:u,extend:h,fireEvent:p,isString:y,objectEach:m,pick:w}=a;return class{constructor(k){let b=k.styles;this.renderer=k.renderer,this.svgElement=k,this.width=k.textWidth,this.textLineHeight=b&&b.lineHeight,this.textOutline=b&&b.textOutline,this.ellipsis=!!(b&&b.textOverflow==="ellipsis"),this.noWrap=!!(b&&b.whiteSpace==="nowrap")}buildSVG(){let k=this.svgElement,b=k.element,x=k.renderer,v=w(k.textStr,"").toString(),E=v.indexOf("<")!==-1,N=b.childNodes,S=!k.added&&x.box,_=[v,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,k.getStyle("font-size"),this.width].join(",");if(_!==k.textCache){k.textCache=_,delete k.actualWidth;for(let $=N.length;$--;)b.removeChild(N[$]);if(E||this.ellipsis||this.width||k.textPath||v.indexOf(" ")!==-1&&(!this.noWrap||/<br.*?>/g.test(v))){if(v!==""){S&&S.appendChild(b);let $=new r(v);this.modifyTree($.nodes),$.addToDOM(b),this.modifyDOM(),this.ellipsis&&(b.textContent||"").indexOf("â¦")!==-1&&k.attr("title",this.unescapeEntities(k.textStr||"",["<",">"])),S&&S.removeChild(b)}}else b.appendChild(l.createTextNode(this.unescapeEntities(v)));y(this.textOutline)&&k.applyTextOutline&&k.applyTextOutline(this.textOutline)}}modifyDOM(){let k,b=this.svgElement,x=u(b.element,"x");for(b.firstLineMetrics=void 0;(k=b.element.firstChild)&&/^[\s\u200B]*$/.test(k.textContent||" ");)b.element.removeChild(k);[].forEach.call(b.element.querySelectorAll("tspan.highcharts-br"),(S,_)=>{S.nextSibling&&S.previousSibling&&(_===0&&S.previousSibling.nodeType===1&&(b.firstLineMetrics=b.renderer.fontMetrics(S.previousSibling)),u(S,{dy:this.getLineHeight(S.nextSibling),x}))});let v=this.width||0;if(!v)return;let E=(S,_)=>{let $=S.textContent||"",V=$.replace(/([^\^])-/g,"$1- ").split(" "),I=!this.noWrap&&(V.length>1||b.element.childNodes.length>1),A=this.getLineHeight(_),L=0,T=b.actualWidth;if(this.ellipsis)$&&this.truncate(S,$,void 0,0,Math.max(0,v-.8*A),(g,f)=>g.substring(0,f)+"â¦");else if(I){let g=[],f=[];for(;_.firstChild&&_.firstChild!==S;)f.push(_.firstChild),_.removeChild(_.firstChild);for(;V.length;)V.length&&!this.noWrap&&L>0&&(g.push(S.textContent||""),S.textContent=V.join(" ").replace(/- /g,"-")),this.truncate(S,void 0,V,L===0&&T||0,v,(j,P)=>V.slice(0,P).join(" ").replace(/- /g,"-")),T=b.actualWidth,L++;f.forEach(j=>{_.insertBefore(j,S)}),g.forEach(j=>{_.insertBefore(l.createTextNode(j),S);let P=l.createElementNS(c,"tspan");P.textContent="â",u(P,{dy:A,x}),_.insertBefore(P,S)})}},N=S=>{[].slice.call(S.childNodes).forEach(_=>{_.nodeType===d.Node.TEXT_NODE?E(_,S):(_.className.baseVal.indexOf("highcharts-br")!==-1&&(b.actualWidth=0),N(_))})};N(b.element)}getLineHeight(k){let b=k.nodeType===d.Node.TEXT_NODE?k.parentElement:k;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(b||this.svgElement.element).h}modifyTree(k){let b=(x,v)=>{let{attributes:E={},children:N,style:S={},tagName:_}=x,$=this.renderer.styledMode;if(_==="b"||_==="strong"?$?E.class="highcharts-strong":S.fontWeight="bold":(_==="i"||_==="em")&&($?E.class="highcharts-emphasized":S.fontStyle="italic"),S&&S.color&&(S.fill=S.color),_==="br"){E.class="highcharts-br",x.textContent="â";let V=k[v+1];V&&V.textContent&&(V.textContent=V.textContent.replace(/^ +/gm,""))}else _==="a"&&N&&N.some(V=>V.tagName==="#text")&&(x.children=[{children:N,tagName:"tspan"}]);_!=="#text"&&_!=="a"&&(x.tagName="tspan"),h(x,{attributes:E,style:S}),N&&N.filter(V=>V.tagName!=="#text").forEach(b)};k.forEach(b),p(this.svgElement,"afterModifyTree",{nodes:k})}truncate(k,b,x,v,E,N){let S,_,$=this.svgElement,{rotation:V}=$,I=[],A=x?1:0,L=(b||x||"").length,T=L,g=function(f,j){let P=j||f,C=k.parentNode;if(C&&I[P]===void 0&&C.getSubStringLength)try{I[P]=v+C.getSubStringLength(0,x?P+1:P)}catch{}return I[P]};if($.rotation=0,v+(_=g(k.textContent.length))>E){for(;A<=L;)T=Math.ceil((A+L)/2),x&&(S=N(x,T)),_=g(T,S&&S.length-1),A===L?A=L+1:_>E?L=T-1:A=T;L===0?k.textContent="":b&&L===b.length-1||(k.textContent=S||N(b||x,T))}x&&x.splice(0,T),$.actualWidth=_,$.rotation=V}unescapeEntities(k,b){return m(this.renderer.escapes,function(x,v){b&&b.indexOf(x)!==-1||(k=k.toString().replace(RegExp(x,"g"),v))}),k}}}),i(n,"Core/Renderer/SVG/SVGRenderer.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Defaults.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Renderer/SVG/SVGLabel.js"],n["Core/Renderer/SVG/Symbols.js"],n["Core/Renderer/SVG/TextBuilder.js"],n["Core/Utilities.js"]],function(r,s,a,l,c,d,u,h,p,y){let m,{defaultOptions:w}=s,{charts:k,deg2rad:b,doc:x,isFirefox:v,isMS:E,isWebKit:N,noop:S,SVG_NS:_,symbolSizes:$,win:V}=l,{addEvent:I,attr:A,createElement:L,crisp:T,css:g,defined:f,destroyObjectProperties:j,extend:P,isArray:C,isNumber:D,isObject:M,isString:z,merge:J,pick:F,pInt:q,replaceNested:U,uniqueKey:Q}=y;class ce{constructor(B,K,ie,R,G,W,Y){let X,re,ee=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),se=ee.element;Y||ee.css(this.getStyle(R||{})),B.appendChild(se),A(B,"dir","ltr"),B.innerHTML.indexOf("xmlns")===-1&&A(se,"xmlns",this.SVG_NS),this.box=se,this.boxWrapper=ee,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(x.createTextNode("Created with Highcharts 11.4.8")),this.defs=this.createElement("defs").add(),this.allowHTML=W,this.forExport=G,this.styledMode=Y,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=ee.getStyle("font-size"),this.setSize(K,ie,!1),v&&B.getBoundingClientRect&&((X=function(){g(B,{left:0,top:0}),re=B.getBoundingClientRect(),g(B,{left:Math.ceil(re.left)-re.left+"px",top:Math.ceil(re.top)-re.top+"px"})})(),this.unSubPixelFix=I(V,"resize",X))}definition(B){return new r([B]).addToDOM(this.defs.element)}getReferenceURL(){if((v||N)&&x.getElementsByTagName("base").length){if(!f(m)){let B=Q(),K=new r([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:B},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${B})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(x.body);g(K,{position:"fixed",top:0,left:0,zIndex:9e5});let ie=x.elementFromPoint(6,6);m=(ie&&ie.id)==="hitme",x.body.removeChild(K)}if(m)return U(V.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""}getStyle(B){return this.style=P({fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1rem"},B),this.style}setStyle(B){this.boxWrapper.css(this.getStyle(B))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){let B=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),j(this.gradients||{}),this.gradients=null,this.defs=B.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null}createElement(B){return new this.Element(this,B)}getRadialAttr(B,K){return{cx:B[0]-B[2]/2+(K.cx||0)*B[2],cy:B[1]-B[2]/2+(K.cy||0)*B[2],r:(K.r||0)*B[2]}}shadowDefinition(B){let K=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(B).map(R=>`${R}-${B[R]}`)].join("-").toLowerCase().replace(/[^a-z\d\-]/g,""),ie=J({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},B);return this.defs.element.querySelector(`#${K}`)||this.definition({tagName:"filter",attributes:{id:K,filterUnits:ie.filterUnits},children:this.getShadowFilterContent(ie)}),K}getShadowFilterContent(B){return[{tagName:"feDropShadow",attributes:{dx:B.offsetX,dy:B.offsetY,"flood-color":B.color,"flood-opacity":Math.min(5*B.opacity,1),stdDeviation:B.width/2}}]}buildText(B){new p(B).buildSVG()}getContrast(B){let K=a.parse(B).rgba.map(R=>{let G=R/255;return G<=.03928?G/12.92:Math.pow((G+.055)/1.055,2.4)}),ie=.2126*K[0]+.7152*K[1]+.0722*K[2];return 1.05/(ie+.05)>(ie+.05)/.05?"#FFFFFF":"#000000"}button(B,K,ie,R,G={},W,Y,X,re,ee){let se=this.label(B,K,ie,re,void 0,void 0,ee,void 0,"button"),oe=this.styledMode,he=arguments,pe=0;G=J(w.global.buttonTheme,G),oe&&(delete G.fill,delete G.stroke,delete G["stroke-width"]);let ne=G.states||{},te=G.style||{};delete G.states,delete G.style;let ae=[r.filterUserAttributes(G)],le=[te];return oe||["hover","select","disabled"].forEach((de,ue)=>{ae.push(J(ae[0],r.filterUserAttributes(he[ue+5]||ne[de]||{}))),le.push(ae[ue+1].style),delete ae[ue+1].style}),I(se.element,E?"mouseover":"mouseenter",function(){pe!==3&&se.setState(1)}),I(se.element,E?"mouseout":"mouseleave",function(){pe!==3&&se.setState(pe)}),se.setState=(de=0)=>{if(de!==1&&(se.state=pe=de),se.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][de]),!oe){se.attr(ae[de]);let ue=le[de];M(ue)&&se.css(ue)}},se.attr(ae[0]),!oe&&(se.css(P({cursor:"default"},te)),ee&&se.text.css({pointerEvents:"none"})),se.on("touchstart",de=>de.stopPropagation()).on("click",function(de){pe!==3&&R.call(se,de)})}crispLine(B,K){let[ie,R]=B;return f(ie[1])&&ie[1]===R[1]&&(ie[1]=R[1]=T(ie[1],K)),f(ie[2])&&ie[2]===R[2]&&(ie[2]=R[2]=T(ie[2],K)),B}path(B){let K=this.styledMode?{}:{fill:"none"};return C(B)?K.d=B:M(B)&&P(K,B),this.createElement("path").attr(K)}circle(B,K,ie){let R=M(B)?B:B===void 0?{}:{x:B,y:K,r:ie},G=this.createElement("circle");return G.xSetter=G.ySetter=function(W,Y,X){X.setAttribute("c"+Y,W)},G.attr(R)}arc(B,K,ie,R,G,W){let Y;M(B)?(K=(Y=B).y,ie=Y.r,R=Y.innerR,G=Y.start,W=Y.end,B=Y.x):Y={innerR:R,start:G,end:W};let X=this.symbol("arc",B,K,ie,ie,Y);return X.r=ie,X}rect(B,K,ie,R,G,W){let Y=M(B)?B:B===void 0?{}:{x:B,y:K,r:G,width:Math.max(ie||0,0),height:Math.max(R||0,0)},X=this.createElement("rect");return this.styledMode||(W!==void 0&&(Y["stroke-width"]=W,P(Y,X.crisp(Y))),Y.fill="none"),X.rSetter=function(re,ee,se){X.r=re,A(se,{rx:re,ry:re})},X.rGetter=function(){return X.r||0},X.attr(Y)}roundedRect(B){return this.symbol("roundedRect").attr(B)}setSize(B,K,ie){this.width=B,this.height=K,this.boxWrapper.animate({width:B,height:K},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:F(ie,!0)?void 0:0}),this.alignElements()}g(B){let K=this.createElement("g");return B?K.attr({class:"highcharts-"+B}):K}image(B,K,ie,R,G,W){let Y={preserveAspectRatio:"none"};D(K)&&(Y.x=K),D(ie)&&(Y.y=ie),D(R)&&(Y.width=R),D(G)&&(Y.height=G);let X=this.createElement("image").attr(Y),re=function(ee){X.attr({href:B}),W.call(X,ee)};if(W){X.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});let ee=new V.Image;I(ee,"load",re),ee.src=B,ee.complete&&re({})}else X.attr({href:B});return X}symbol(B,K,ie,R,G,W){let Y,X,re,ee,se=this,oe=/^url\((.*?)\)$/,he=oe.test(B),pe=!he&&(this.symbols[B]?B:"circle"),ne=pe&&this.symbols[pe];if(ne)typeof K=="number"&&(X=ne.call(this.symbols,K||0,ie||0,R||0,G||0,W)),Y=this.path(X),se.styledMode||Y.attr("fill","none"),P(Y,{symbolName:pe||void 0,x:K,y:ie,width:R,height:G}),W&&P(Y,W);else if(he){re=B.match(oe)[1];let te=Y=this.image(re);te.imgwidth=F(W&&W.width,$[re]&&$[re].width),te.imgheight=F(W&&W.height,$[re]&&$[re].height),ee=ae=>ae.attr({width:ae.width,height:ae.height}),["width","height"].forEach(ae=>{te[`${ae}Setter`]=function(le,de){this[de]=le;let{alignByTranslate:ue,element:me,width:ge,height:be,imgwidth:ve,imgheight:we}=this,Ce=de==="width"?ve:we,Pe=1;W&&W.backgroundSize==="within"&&ge&&be&&ve&&we?(Pe=Math.min(ge/ve,be/we),A(me,{width:Math.round(ve*Pe),height:Math.round(we*Pe)})):me&&Ce&&me.setAttribute(de,Ce),!ue&&ve&&we&&this.translate(((ge||0)-ve*Pe)/2,((be||0)-we*Pe)/2)}}),f(K)&&te.attr({x:K,y:ie}),te.isImg=!0,te.symbolUrl=B,f(te.imgwidth)&&f(te.imgheight)?ee(te):(te.attr({width:0,height:0}),L("img",{onload:function(){let ae=k[se.chartIndex];this.width===0&&(g(this,{position:"absolute",top:"-999em"}),x.body.appendChild(this)),$[re]={width:this.width,height:this.height},te.imgwidth=this.width,te.imgheight=this.height,te.element&&ee(te),this.parentNode&&this.parentNode.removeChild(this),se.imgCount--,se.imgCount||!ae||ae.hasLoaded||ae.onload()},src:re}),this.imgCount++)}return Y}clipRect(B,K,ie,R){return this.rect(B,K,ie,R,0)}text(B,K,ie,R){let G={};if(R&&(this.allowHTML||!this.forExport))return this.html(B,K,ie);G.x=Math.round(K||0),ie&&(G.y=Math.round(ie)),f(B)&&(G.text=B);let W=this.createElement("text").attr(G);return R&&(!this.forExport||this.allowHTML)||(W.xSetter=function(Y,X,re){let ee=re.getElementsByTagName("tspan"),se=re.getAttribute(X);for(let oe=0,he;oe<ee.length;oe++)(he=ee[oe]).getAttribute(X)===se&&he.setAttribute(X,Y);re.setAttribute(X,Y)}),W}fontMetrics(B){let K=q(d.prototype.getStyle.call(B,"font-size")||0),ie=K<24?K+3:Math.round(1.2*K),R=Math.round(.8*ie);return{h:ie,b:R,f:K}}rotCorr(B,K,ie){let R=B;return K&&ie&&(R=Math.max(R*Math.cos(K*b),4)),{x:-B/3*Math.sin(K*b),y:R}}pathToSegments(B){let K=[],ie=[],R={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2};for(let G=0;G<B.length;G++)z(ie[0])&&D(B[G])&&ie.length===R[ie[0].toUpperCase()]&&B.splice(G,0,ie[0].replace("M","L").replace("m","l")),typeof B[G]=="str
180ing"&&(ie.length&&K.push(ie.slice(0)),ie.length=0),ie.push(B[G]);return K.push(ie.slice(0)),K}label(B,K,ie,R,G,W,Y,X,re){return new u(this,B,K,ie,R,G,W,Y,X,re)}alignElements(){this.alignedObjects.forEach(B=>B.align())}}return P(ce.prototype,{Element:d,SVG_NS:_,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:h,draw:S}),c.registerRendererType("svg",ce,!0),ce}),i(n,"Core/Renderer/HTML/HTMLElement.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Globals.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],function(r,s,a,l){let{composed:c}=s,{attr:d,css:u,createElement:h,defined:p,extend:y,pInt:m,pushUnique:w}=l;function k(E,N,S){var $;let _=(($=this.div)==null?void 0:$.style)||S.style;a.prototype[`${N}Setter`].call(this,E,N,S),_&&(_[N]=E)}let b=(E,N)=>{var S;if(!E.div){let _=d(E.element,"class"),$=E.css,V=h("div",_?{className:_}:void 0,{position:"absolute",left:`${E.translateX||0}px`,top:`${E.translateY||0}px`,...E.styles,display:E.display,opacity:E.opacity,visibility:E.visibility},((S=E.parentGroup)==null?void 0:S.div)||N);E.classSetter=(I,A,L)=>{L.setAttribute("class",I),V.className=I},E.translateXSetter=E.translateYSetter=(I,A)=>{E[A]=I,V.style[A==="translateX"?"left":"top"]=`${I}px`,E.doTransform=!0},E.opacitySetter=E.visibilitySetter=k,E.css=I=>($.call(E,I),I.cursor&&(V.style.cursor=I.cursor),I.pointerEvents&&(V.style.pointerEvents=I.pointerEvents),E),E.on=function(){return a.prototype.on.apply({element:V,onEvents:E.onEvents},arguments),E},E.div=V}return E.div};class x extends a{static compose(N){w(c,this.compose)&&(N.prototype.html=function(S,_,$){return new x(this,"span").attr({text:S,x:Math.round(_),y:Math.round($)})})}constructor(N,S){super(N,S),this.css({position:"absolute",...N.styledMode?{}:{fontFamily:N.style.fontFamily,fontSize:N.style.fontSize}}),this.element.style.whiteSpace="nowrap"}getSpanCorrection(N,S,_){this.xCorr=-N*_,this.yCorr=-S}css(N){let S,{element:_}=this,$=_.tagName==="SPAN"&&N&&"width"in N,V=$&&N.width;return $&&(delete N.width,this.textWidth=m(V)||void 0,S=!0),(N==null?void 0:N.textOverflow)==="ellipsis"&&(N.whiteSpace="nowrap",N.overflow="hidden"),y(this.styles,N),u(_,N),S&&this.updateTransform(),this}htmlGetBBox(){let{element:N}=this;return{x:N.offsetLeft,y:N.offsetTop,width:N.offsetWidth,height:N.offsetHeight}}updateTransform(){var D;if(!this.added){this.alignOnAdd=!0;return}let{element:N,renderer:S,rotation:_,rotationOriginX:$,rotationOriginY:V,styles:I,textAlign:A="left",textWidth:L,translateX:T=0,translateY:g=0,x:f=0,y:j=0}=this,P={left:0,center:.5,right:1}[A],C=I.whiteSpace;if(u(N,{marginLeft:`${T}px`,marginTop:`${g}px`}),N.tagName==="SPAN"){let M=[_,A,N.innerHTML,L,this.textAlign].join(","),z=-(((D=this.parentGroup)==null?void 0:D.padding)*1)||0,J,F=!1;if(L!==this.oldTextWidth){let H=this.textPxLength?this.textPxLength:(u(N,{width:"",whiteSpace:C||"nowrap"}),N.offsetWidth),B=L||0;(B>this.oldTextWidth||H>B)&&(/[ \-]/.test(N.textContent||N.innerText)||N.style.textOverflow==="ellipsis")&&(u(N,{width:H>B||_?L+"px":"auto",display:"block",whiteSpace:C||"normal"}),this.oldTextWidth=L,F=!0)}this.hasBoxWidthChanged=F,M!==this.cTT&&(J=S.fontMetrics(N).b,p(_)&&(_!==(this.oldRotation||0)||A!==this.oldAlign)&&this.setSpanRotation(_,z,z),this.getSpanCorrection(!p(_)&&this.textPxLength||N.offsetWidth,J,P));let{xCorr:q=0,yCorr:U=0}=this,Q=($??f)-q-f-z,ce=(V??j)-U-j-z;u(N,{left:`${f+q}px`,top:`${j+U}px`,transformOrigin:`${Q}px ${ce}px`}),this.cTT=M,this.oldRotation=_,this.oldAlign=A}}setSpanRotation(N,S,_){u(this.element,{transform:`rotate(${N}deg)`,transformOrigin:`${S}% ${_}px`})}add(N){let S,_=this.renderer.box.parentNode,$=[];if(this.parentGroup=N,N&&!(S=N.div)){let V=N;for(;V;)$.push(V),V=V.parentGroup;for(let I of $.reverse())S=b(I,_)}return(S||_).appendChild(this.element),this.added=!0,this.alignOnAdd&&this.updateTransform(),this}textSetter(N){N!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,r.setElementHTML(this.element,N??""),this.textStr=N,this.doTransform=!0)}alignSetter(N){this.alignValue=this.textAlign=N,this.doTransform=!0}xSetter(N,S){this[S]=N,this.doTransform=!0}}let v=x.prototype;return v.visibilitySetter=v.opacitySetter=k,v.ySetter=v.rotationSetter=v.rotationOriginXSetter=v.rotationOriginYSetter=v.xSetter,x}),i(n,"Core/Axis/AxisDefaults.js",[],function(){var r,s;return(s=r||(r={})).xAxis={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"
180%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e %b"},week:{main:"%e %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},s.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){let{numberFormatter:a}=this.axis.chart;return a(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},r}),i(n,"Core/Foundation.js",[n["Core/Utilities.js"]],function(r){var s;let{addEvent:a,isFunction:l,objectEach:c,removeEvent:d}=r;return(s||(s={})).registerEventOptions=function(u,h){u.eventOptions=u.eventOptions||{},c(h.events,function(p,y){u.eventOptions[y]!==p&&(u.eventOptions[y]&&(d(u,y,u.eventOptions[y]),delete u.eventOptions[y]),l(p)&&(u.eventOptions[y]=p,a(u,y,p,{order:0})))})},s}),i(n,"Core/Axis/Tick.js",[n["Core/Templating.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],function(r,s,a){let{deg2rad:l}=s,{clamp:c,correctFloat:d,defined:u,destroyObjectProperties:h,extend:p,fireEvent:y,isNumber:m,merge:w,objectEach:k,pick:b}=a;return class{constructor(x,v,E,N,S){this.isNew=!0,this.isNewLabel=!0,this.axis=x,this.pos=v,this.type=E||"",this.parameters=S||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,y(this,"init"),E||N||this.addLabel()}addLabel(){let x=this,v=x.axis,E=v.options,N=v.chart,S=v.categories,_=v.logarithmic,$=v.names,V=x.pos,I=b(x.options&&x.options.labels,E.labels),A=v.tickPositions,L=V===A[0],T=V===A[A.length-1],g=(!I.step||I.step===1)&&v.tickInterval===1,f=A.info,j=x.label,P,C,D,M=this.parameters.category||(S?b(S[V],$[V],V):V);_&&m(M)&&(M=d(_.lin2log(M))),v.dateTime&&(f?P=(C=N.time.resolveDTLFormat(E.dateTimeLabelFormats[!E.grid&&f.higherRanks[V]||f.unitName])).main:m(M)&&(P=v.dateTime.getXDateFormat(M,E.dateTimeLabelFormats||{}))),x.isFirst=L,x.isLast=T;let z={axis:v,chart:N,dateTimeLabelFormat:P,isFirst:L,isLast:T,pos:V,tick:x,tickPositionInfo:f,value:M};y(this,"labelFormat",z);let J=U=>I.formatter?I.formatter.call(U,U):I.format?(U.text=v.defaultLabelFormatter.call(U),r.format(I.format,U,N)):v.defaultLabelFormatter.call(U),F=J.call(z,z),q=C&&C.list;q?x.shortenLabel=function(){for(D=0;D<q.length;D++)if(p(z,{dateTimeLabelFormat:q[D]}),j.attr({text:J.call(z,z)}),j.getBBox().width<v.getSlotWidth(x)-2*(I.padding||0))return;j.attr({text:""})}:x.shortenLabel=void 0,g&&v._addedPlotLB&&x.moveLabel(F,I),u(j)||x.movedLabel?j&&j.textStr!==F&&!g&&(!j.textWidth||I.style.width||j.styles.width||j.css({width:null}),j.attr({text:F}),j.textPxLength=j.getBBox().width):(x.label=j=x.createLabel(F,I),x.rotation=0)}createLabel(x,v,E){let N=this.axis,S=N.chart,_=u(x)&&v.enabled?S.renderer.text(x,E==null?void 0:E.x,E==null?void 0:E.y,v.useHTML).add(N.labelGroup):void 0;return _&&(S.styledMode||_.css(w(v.style)),_.textPxLength=_.getBBox().width),_}destroy(){h(this,this.axis)}getPosition(x,v,E,N){let S=this.axis,_=S.chart,$=N&&_.oldChartHeight||_.chartHeight,V={x:x?d(S.translate(v+E,void 0,void 0,N)+S.transB):S.left+S.offset+(S.opposite?(N&&_.oldChartWidth||_.chartWidth)-S.right-S.left:0),y:x?$-S.bottom+S.offset-(S.opposite?S.height:0):d($-S.translate(v+E,void 0,void 0,N)-S.transB)};return V.y=c(V.y,-1e9,1e9),y(this,"afterGetPosition",{pos:V}),V}getLabelPosition(x,v,E,N,S,_,$,V){let I,A,L=this.axis,T=L.transA,g=L.isLinked&&L.linkedParent?L.linkedParent.reversed:L.reversed,f=L.staggerLines,j=L.tickRotCorr||{x:0,y:0},P=N||L.reserveSpaceDefault?0:-L.labelOffset*(L.labelAlign==="center"?.5:1),C=S.distance,D={};return I=L.side===0?E.rotation?-C:-E.getBBox().height:L.side===2?j.y+C:Math.cos(E.rotation*l)*(j.y-E.getBBox(!1,0).height/2),u(S.y)&&(I=L.side===0&&L.horiz?S.y+I:S.y),x=x+b(S.x,[0,1,0,-1][L.side]*C)+P+j.x-(_&&N?_*T*(g?-1:1):0),v=v+I-(_&&!N?_*T*(g?1:-1):0),f&&(A=$/(V||1)%f,L.opposite&&(A=f-A-1),v+=A*(L.labelOffset/f)),D.x=x,D.y=Math.round(v),y(this,"afterGetLabelPosition",{pos:D,tickmarkOffset:_,index:$}),D}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(x,v,E,N,S=!1,_){return _.crispLine([["M",x,v],["L",x+(S?0:-E),v+(S?E:0)]],N)}handleOverflow(x){let v=this.axis,E=v.options.labels,N=x.x,S=v.chart.chartWidth,_=v.chart.spacing,$=b(v.labelLeft,Math.min(v.pos,_[3])),V=b(v.labelRight,Math.max(v.isRadial?
1800:v.pos+v.len,S-_[1])),I=this.label,A=this.rotation,L={left:0,center:.5,right:1}[v.labelAlign||I.attr("align")],T=I.getBBox().width,g=v.getSlotWidth(this),f={},j=g,P=1,C,D,M;A||E.overflow!=="justify"?A<0&&N-L*T<$?M=Math.round(N/Math.cos(A*l)-$):A>0&&N+L*T>V&&(M=Math.round((S-N)/Math.cos(A*l))):(C=N-L*T,D=N+(1-L)*T,C<$?j=x.x+j*(1-L)-$:D>V&&(j=V-x.x+j*L,P=-1),(j=Math.min(g,j))<g&&v.labelAlign==="center"&&(x.x+=P*(g-j-L*(g-Math.min(T,j)))),(T>j||v.autoRotation&&(I.styles||{}).width)&&(M=j)),M&&(this.shortenLabel?this.shortenLabel():(f.width=Math.floor(M)+"px",(E.style||{}).textOverflow||(f.textOverflow="ellipsis"),I.css(f)))}moveLabel(x,v){let E=this,N=E.label,S=E.axis,_=!1,$;N&&N.textStr===x?(E.movedLabel=N,_=!0,delete E.label):k(S.ticks,function(V){_||V.isNew||V===E||!V.label||V.label.textStr!==x||(E.movedLabel=V.label,_=!0,V.labelPos=E.movedLabel.xy,delete V.label)}),!_&&(E.labelPos||N)&&($=E.labelPos||N.xy,E.movedLabel=E.createLabel(x,v,$),E.movedLabel&&E.movedLabel.attr({opacity:0}))}render(x,v,E){let N=this.axis,S=N.horiz,_=this.pos,$=b(this.tickmarkOffset,N.tickmarkOffset),V=this.getPosition(S,_,$,v),I=V.x,A=V.y,L=N.pos,T=L+N.len,g=S?I:A;!N.chart.polar&&this.isNew&&(d(g)<L||g>T)&&(E=0);let f=b(E,this.label&&this.label.newOpacity,1);E=b(E,1),this.isActive=!0,this.renderGridLine(v,E),this.renderMark(V,E),this.renderLabel(V,v,f,x),this.isNew=!1,y(this,"afterRender")}renderGridLine(x,v){let E=this.axis,N=E.options,S={},_=this.pos,$=this.type,V=b(this.tickmarkOffset,E.tickmarkOffset),I=E.chart.renderer,A=this.gridLine,L,T=N.gridLineWidth,g=N.gridLineColor,f=N.gridLineDashStyle;this.type==="minor"&&(T=N.minorGridLineWidth,g=N.minorGridLineColor,f=N.minorGridLineDashStyle),A||(E.chart.styledMode||(S.stroke=g,S["stroke-width"]=T||0,S.dashstyle=f),$||(S.zIndex=1),x&&(v=0),this.gridLine=A=I.path().attr(S).addClass("highcharts-"+($?$+"-":"")+"grid-line").add(E.gridGroup)),A&&(L=E.getPlotLinePath({value:_+V,lineWidth:A.strokeWidth(),force:"pass",old:x,acrossPanes:!1}))&&A[x||this.isNew?"attr":"animate"]({d:L,opacity:v})}renderMark(x,v){let E=this.axis,N=E.options,S=E.chart.renderer,_=this.type,$=E.tickSize(_?_+"Tick":"tick"),V=x.x,I=x.y,A=b(N[_!=="minor"?"tickWidth":"minorTickWidth"],!_&&E.isXAxis?1:0),L=N[_!=="minor"?"tickColor":"minorTickColor"],T=this.mark,g=!T;$&&(E.opposite&&($[0]=-$[0]),T||(this.mark=T=S.path().addClass("highcharts-"+(_?_+"-":"")+"tick").add(E.axisGroup),E.chart.styledMode||T.attr({stroke:L,"stroke-width":A})),T[g?"attr":"animate"]({d:this.getMarkPath(V,I,$[0],T.strokeWidth(),E.horiz,S),opacity:v}))}renderLabel(x,v,E,N){let S=this.axis,_=S.horiz,$=S.options,V=this.label,I=$.labels,A=I.step,L=b(this.tickmarkOffset,S.tickmarkOffset),T=x.x,g=x.y,f=!0;V&&m(T)&&(V.xy=x=this.getLabelPosition(T,g,V,_,I,L,N,A),(!this.isFirst||this.isLast||$.showFirstLabel)&&(!this.isLast||this.isFirst||$.showLastLabel)?!_||I.step||I.rotation||v||E===0||this.handleOverflow(x):f=!1,A&&N%A&&(f=!1),f&&m(x.y)?(x.opacity=E,V[this.isNewLabel?"attr":"animate"](x).show(!0),this.isNewLabel=!1):(V.hide(),this.isNewLabel=!0))}replaceMovedLabel(){let x=this.label,v=this.axis;x&&!this.isNew&&(x.animate({opacity:0}
vendor: 32,720 bytes, line 180
180,void 0,x.destroy),delete this.label),v.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}}}),i(n,"Core/Axis/Axis.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/AxisDefaults.js"],n["Core/Color/Color.js"],n["Core/Defaults.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Axis/Tick.js"],n["Core/Utilities.js"]],function(r,s,a,l,c,d,u,h){let{animObject:p}=r,{xAxis:y,yAxis:m}=s,{defaultOptions:w}=l,{registerEventOptions:k}=c,{deg2rad:b}=d,{arrayMax:x,arrayMin:v,clamp:E,correctFloat:N,defined:S,destroyObjectProperties:_,erase:$,error:V,extend:I,fireEvent:A,getClosestDistance:L,insertItem:T,isArray:g,isNumber:f,isString:j,merge:P,normalizeTickInterval:C,objectEach:D,pick:M,relativeLength:z,removeEvent:J,splat:F,syncTimeout:q}=h,U=(ce,H)=>C(H,void 0,void 0,M(ce.options.allowDecimals,H<.5||ce.tickAmount!==void 0),!!ce.tickAmount);I(w,{xAxis:y,yAxis:P(y,m)});class Q{constructor(H,B,K){this.init(H,B,K)}init(H,B,K=this.coll){let ie=K==="xAxis",R=this.isZAxis||(H.inverted?!ie:ie);this.chart=H,this.horiz=R,this.isXAxis=ie,this.coll=K,A(this,"init",{userOptions:B}),this.opposite=M(B.opposite,this.opposite),this.side=M(B.side,this.side,R?this.opposite?0:2:this.opposite?1:3),this.setOptions(B);let G=this.options,W=G.labels;this.type??(this.type=G.type||"linear"),this.uniqueNames??(this.uniqueNames=G.uniqueNames??!0),A(this,"afterSetType"),this.userOptions=B,this.minPixelPadding=0,this.reversed=M(G.reversed,this.reversed),this.visible=G.visible,this.zoomEnabled=G.zoomEnabled,this.hasNames=this.type==="category"||G.categories===!0,this.categories=g(G.categories)&&G.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=S(G.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len??(this.len=0),this.minRange=this.userMinRange=G.minRange||G.maxZoom,this.range=G.range,this.offset=G.offset||0,this.max=void 0,this.min=void 0;let Y=M(G.crosshair,F(H.options.tooltip.crosshairs)[ie?0:1]);this.crosshair=Y===!0?{}:Y,H.axes.indexOf(this)===-1&&(ie?H.axes.splice(H.xAxis.length,0,this):H.axes.push(this),T(this,H[this.coll])),H.orderItems(this.coll),this.series=this.series||[],H.inverted&&!this.isZAxis&&ie&&!S(this.reversed)&&(this.reversed=!0),this.labelRotation=f(W.rotation)?W.rotation:void 0,k(this,G),A(this,"afterInit")}setOptions(H){let B=this.horiz?{labels:{autoRotation:[-45],padding:4},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=P(B,w[this.coll],H),A(this,"afterSetOptions",{userOptions:H})}defaultLabelFormatter(){let H=this.axis,{numberFormatter:B}=this.chart,K=f(this.value)?this.value:NaN,ie=H.chart.time,R=H.categories,G=this.dateTimeLabelFormat,W=w.lang,Y=W.numericSymbols,X=W.numericSymbolMagnitude||1e3,re=H.logarithmic?Math.abs(K):H.tickInterval,ee=Y&&Y.length,se,oe;if(R)oe=`${this.value}`;else if(G)oe=ie.dateFormat(G,K);else if(ee&&Y&&re>=1e3)for(;ee--&&oe===void 0;)re>=(se=Math.pow(X,ee+1))&&10*K%se==0&&Y[ee]!==null&&K!==0&&(oe=B(K/se,-1)+Y[ee]);return oe===void 0&&(oe=Math.abs(K)>=1e4?B(K,-1):B(K,-1,void 0,"")),oe}getSeriesExtremes(){let H,B=this;A(this,"getSeriesExtremes",null,function(){B.hasVisibleSeries=!1,B.dataMin=B.dataMax=B.threshold=void 0,B.softThreshold=!B.isXAxis,B.series.forEach(K=>{if(K.reserveSpace()){let ie=K.options,R,G=ie.threshold,W,Y;if(B.hasVisibleSeries=!0,B.positiveValuesOnly&&0>=(G||0)&&(G=void 0),B.isXAxis)(R=K.xData)&&R.length&&(R=B.logarithmic?R.filter(X=>X>0):R,W=(H=K.getXExtremes(R)).min,Y=H.max,f(W)||W instanceof Date||(R=R.filter(f),W=(H=K.getXExtremes(R)).min,Y=H.max),R.length&&(B.dataMin=Math.min(M(B.dataMin,W),W),B.dataMax=Math.max(M(B.dataMax,Y),Y)));else{let X=K.applyExtremes();f(X.dataMin)&&(W=X.dataMin,B.dataMin=Math.min(M(B.dataMin,W),W)),f(X.dataMax)&&(Y=X.dataMax,B.dataMax=Math.max(M(B.dataMax,Y),Y)),S(G)&&(B.threshold=G),(!ie.softThreshold||B.positiveValuesOnly)&&(B.softThreshold=!1)}}})}),A(this,"afterGetSeriesExtremes")}translate(H,B,K,ie,R,G){var pe;let W=this.linkedParent||this,Y=ie&&W.old?W.old.min:W.min;if(!f(Y))return NaN;let X=W.minPixelPadding,re=(W.isOrdinal||((pe=W.brokenAxis)==null?void 0:pe.hasBreaks)||W.logarithmic&&R)&&W.lin2val,ee=1,se=0,oe=ie&&W.old?W.old.transA:W.transA,he=0;return oe||(oe=W.transA),K&&(ee*=-1,se=W.len),W.reversed&&(ee*=-1,se-=ee*(W.sector||W.len)),B?(he=(H=H*ee+se-X)/oe+Y,re&&(he=W.lin2val(he))):(re&&(H=W.val2lin(H)),he=ee*(H-Y)*oe+se+ee*X+(f(G)?oe*G:0),W.isRadial||(he=N(he))),he}toPixels(H,B){return this.translate(H,!1,!this.horiz,void 0,!0)+(B?0:this.pos)}toValue(H,B){return this.translate(H-(B?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(H){let B=this,K=B.chart,ie=B.left,R=B.top,G=H.old,W=H.value,Y=H.lineWidth,X=G&&K.oldChartHeight||K.chartHeight,re=G&&K.oldChartWidth||K.chartWidth,ee=B.transB,se=H.translatedValue,oe=H.force,he,pe,ne,te,ae;function le(ue,me,ge){return oe!=="pass"&&(ue<me||ue>ge)&&(oe?ue=E(ue,me,ge):ae=!0),ue}let de={value:W,lineWidth:Y,old:G,force:oe,acrossPanes:H.acrossPanes,translatedValue:se};return A(this,"getPlotLinePath",de,function(ue){he=ne=(se=E(se=M(se,B.translate(W,void 0,void 0,G)),-1e9,1e9))+ee,pe=te=X-se-ee,f(se)?B.horiz?(pe=R,te=X-B.bottom+(B.options.isInternal?0:K.scrollablePixelsY||0),he=ne=le(he,ie,ie+B.width)):(he=ie,ne=re-B.right+(K.scrollablePixelsX||0),pe=te=le(pe,R,R+B.height)):(ae=!0,oe=!1),ue.path=ae&&!oe?void 0:K.renderer.crispLine([["M",he,pe],["L",ne,te]],Y||1)}),de.path}getLinearTickPositions(H,B,K){let ie,R,G,W=N(Math.floor(B/H)*H),Y=N(Math.ceil(K/H)*H),X=[];if(N(W+H)===W&&(G=20),this.single)return[B];for(ie=W;ie<=Y&&(X.push(ie),(ie=N(ie+H,G))!==R);)R=ie;return X}getMinorTickInterval(){let{minorTicks:H,minorTickInterval:B}=this.options;return H===!0?M(B,"auto"):H!==!1?B:void 0}getMinorTickPositions(){let H=this.options,B=this.tickPositions,K=this.minorTickInterval,ie=this.pointRangePadding||0,R=(this.min||0)-ie,G=(this.max||0)+ie,W=G-R,Y=[],X;if(W&&W/K<this.len/3){let re=this.logarithmic;if(re)this.paddedTicks.forEach(function(ee,se,oe){se&&Y.push.apply(Y,re.getLogTickPositions(K,oe[se-1],oe[se],!0))});else if(this.dateTime&&this.getMinorTickInterval()==="auto")Y=Y.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(K),R,G,H.startOfWeek));else for(X=R+(B[0]-R)%K;X<=G&&X!==Y[0];X+=K)Y.push(X)}return Y.length!==0&&this.trimTicks(Y),Y}adjustForMinRange(){let H=this.options,B=this.logarithmic,{max:K,min:ie,minRange:R}=this,G,W,Y,X;this.isXAxis&&R===void 0&&!B&&(R=S(H.min)||S(H.max)||S(H.floor)||S(H.ceiling)?null:Math.min(5*(L(this.series.map(re=>{var ee;return(re.xIncrement?(ee=re.xData)==null?void 0:ee.slice(0,2):re.xData)||[]}))||0),this.dataMax-this.dataMin)),f(K)&&f(ie)&&f(R)&&K-ie<R&&(W=this.dataMax-this.dataMin>=R,G=(R-K+ie)/2,Y=[ie-G,M(H.min,ie-G)],W&&(Y[2]=B?B.log2lin(this.dataMin):this.dataMin),X=[(ie=x(Y))+R,M(H.max,ie+R)],W&&(X[2]=B?B.log2lin(this.dataMax):this.dataMax),(K=v(X))-ie<R&&(Y[0]=K-R,Y[1]=M(H.min,K-R),ie=x(Y))),this.minRange=R,this.min=ie,this.max=K}getClosest(){let H,B;if(this.categories)B=1;else{let K=[];this.series.forEach(function(ie){var G;let R=ie.closestPointRange;((G=ie.xData)==null?void 0:G.length)===1?K.push(ie.xData[0]):!ie.noSharedTooltip&&S(R)&&ie.reserveSpace()&&(B=S(B)?Math.min(B,R):R)}),K.length&&(K.sort((ie,R)=>ie-R),H=L([K]))}return H&&B?Math.min(H,B):H||B}nameToX(H){let B=g(this.options.categories),K=B?this.categories:this.names,ie=H.options.x,R;return H.series.requireSorting=!1,S(ie)||(ie=this.uniqueNames&&K?B?K.indexOf(H.name):M(K.keys[H.name],-1):H.series.autoIncrement()),ie===-1?!B&&K&&(R=K.length):R=ie,R!==void 0?(this.names[R]=H.name,this.names.keys[H.name]=R):H.x&&(R=H.x),R}updateNames(){let H=this,B=this.names;B.length>0&&(Object.keys(B.keys).forEach(function(K){delete B.keys[K]}),B.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(K=>{K.xIncrement=null,(!K.points||K.isDirtyData)&&(H.max=Math.max(H.max,K.xData.length-1),K.processData(),K.generatePoints()),K.data.forEach(function(ie,R){let G;ie!=null&&ie.options&&ie.name!==void 0&&(G=H.nameToX(ie))!==void 0&&G!==ie.x&&(ie.x=G,K.xData[R]=G)})}))}setAxisTranslation(){let H=this,B=H.max-H.min,K=H.linkedParent,ie=!!H.categories,R=H.isXAxis,G=H.axisPointRange||0,W,Y=0,X=0,re,ee=H.transA;(R||ie||G)&&(W=H.getClosest(),K?(Y=K.minPointOffset,X=K.pointRangePadding):H.series.forEach(function(se){let oe=ie?1:R?M(se.options.pointRange,W,0):H.axisPointRange||0,he=se.options.pointPlacement;if(G=Math.max(G,oe),!H.single||ie){let pe=se.is("xrange")?!R:R;Y=Math.max(Y,pe&&j(he)?0:oe/2),X=Math.max(X,pe&&he==="on"?0:oe)}}),re=H.ordinal&&H.ordinal.slope&&W?H.ordinal.slope/W:1,H.minPointOffset=Y*=re,H.pointRangePadding=X*=re,H.pointRange=Math.min(G,H.single&&ie?1:B),R&&W&&(H.closestPointRange=W)),H.translationSlope=H.transA=ee=H.staticScale||H.len/(B+X||1),H.transB=H.horiz?H.left:H.bottom,H.minPixelPadding=ee*Y,A(this,"afterSetAxisTranslation")}minFromRange(){let{max:H,min:B}=this;return f(H)&&f(B)&&H-B||void 0}setTickInterval(H){var Ee,Te,Fe,Le;let{categories:B,chart:K,dataMax:ie,dataMin:R,dateTime:G,isXAxis:W,logarithmic:Y,options:X,softThreshold:re}=this,ee=f(this.threshold)?this.threshold:void 0,se=this.minRange||0,{ceiling:oe,floor:he,linkedTo:pe,softMax:ne,softMin:te}=X,ae=f(pe)&&((Ee=K[this.coll])==null?void 0:Ee[pe]),le=X.tickPixelInterval,de=X.maxPadding,ue=X.minPadding,me=0,ge,be=f(X.tickInterval)&&X.tickInterval>=0?X.tickInterval:void 0,ve,we,Ce,Pe;if(G||B||ae||this.getTickAmount(),Ce=M(this.userMin,X.min),Pe=M(this.userMax,X.max),ae?(this.linkedParent=ae,ge=ae.getExtremes(),this.min=M(ge.min,ge.dataMin),this.max=M(ge.max,ge.dataMax),this.type!==ae.type&&V(11,!0,K)):(re&&S(ee)&&f(ie)&&f(R)&&(R>=ee?(ve=ee,ue=0):ie<=ee&&(we=ee,de=0)),this.min=M(Ce,ve,R),this.max=M(Pe,we,ie)),f(this.max)&&f(this.min)&&(Y&&(this.positiveValuesOnly&&!H&&0>=Math.min(this.min,M(R,this.min))&&V(10,!0,K),this.min=N(Y.log2lin(this.min),16),this.max=N(Y.log2lin(this.max),16)),this.range&&f(R)&&(this.userMin=this.min=Ce=Math.max(R,this.minFromRange()||0),this.userMax=Pe=this.max,this.range=void 0)),A(this,"foundExtremes"),this.adjustForMinRange(),f(this.min)&&f(this.max)){if(!f(this.userMin)&&f(te)&&te<this.min&&(this.min=Ce=te),!f(this.userMax)&&f(ne)&&ne>this.max&&(this.max=Pe=ne),B||this.axisPointRange||(Te=this.stacking)!=null&&Te.usePercentage||ae||!(me=this.max-this.min)||(!S(Ce)&&ue&&(this.min-=me*ue),S(Pe)||!de||(this.max+=me*de)),!f(this.userMin)&&f(he)&&(this.min=Math.max(this.min,he)),!f(this.userMax)&&f(oe)&&(this.max=Math.min(this.max,oe)),re&&f(R)&&f(ie)){let Ue=ee||0;!S(Ce)&&this.min<Ue&&R>=Ue?this.min=X.minRange?Math.min(Ue,this.max-se):Ue:!S(Pe)&&this.max>Ue&&ie<=Ue&&(this.max=X.minRange?Math.max(Ue,this.min+se):Ue)}!K.polar&&this.min>this.max&&(S(X.min)?this.max=this.min:S(X.max)&&(this.min=this.max)),me=this.max-this.min}if(this.min!==this.max&&f(this.min)&&f(this.max)?ae&&!be&&le===ae.options.tickPixelInterval?this.tickInterval=be=ae.tickInterval:this.tickInterval=M(be,this.tickAmount?me/Math.max(this.tickAmount-1,1):void 0,B?1:me*le/Math.max(this.len,le)):this.tickInterval=1,W&&!H){let Ue=this.min!==((Fe=this.old)==null?void 0:Fe.min)||this.max!==((Le=this.old)==null?void 0:Le.max);this.series.forEach(function(rt){var tt;rt.forceCrop=(tt=rt.forceCropping)==null?void 0:tt.call(rt),rt.processData(Ue)}),A(this,"postProcessData",{hasExtremesChanged:Ue})}this.setAxisTranslation(),A(this,"initialAxisTranslation"),this.pointRange&&!be&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let Ne=M(X.minTickInterval,G&&!this.series.some(Ue=>Ue.noSharedTooltip)?this.closestPointRange:0);!be&&this.tickInterval<Ne&&(this.tickInterval=Ne),G||Y||be||(this.tickInterval=U(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()}setTickPositions(){var re,ee;let H=this.options,B=H.tickPositions,K=H.tickPositioner,ie=this.getMinorTickInterval(),R=!this.isPanning,G=R&&H.startOnTick,W=R&&H.endOnTick,Y=[],X;if(this.tickmarkOffset=this.categories&&H.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.single=this.min===this.max&&S(this.min)&&!this.tickAmount&&(this.min%1==0||H.allowDecimals!==!1),B)Y=B.slice();else if(f(this.min)&&f(this.max)){if(!((re=this.ordinal)!=null&&re.positions)&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))Y=[this.min,this.max],V(19,!1,this.chart);else if(this.dateTime)Y=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,H.units),this.min,this.max,H.startOfWeek,(ee=this.ordinal)==null?void 0:ee.positions,this.closestPointRange,!0);else if(this.logarithmic)Y=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{let se=this.tickInterval,oe=se;for(;oe<=2*se&&(Y=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&Y.length>this.tickAmount);)this.tickInterval=U(this,oe*=1.1)}Y.length>this.len&&(Y=[Y[0],Y[Y.length-1]])[0]===Y[1]&&(Y.length=1),K&&(this.tickPositions=Y,(X=K.apply(this,[this.min,this.max]))&&(Y=X))}this.tickPositions=Y,this.minorTickInterval=ie==="auto"&&this.tickInterval?this.tickInterval/H.minorTicksPerMajor:ie,this.paddedTicks=Y.slice(0),this.trimTicks(Y,G,W),!this.isLinked&&f(this.min)&&f(this.max)&&(this.single&&Y.length<2&&!this.categories&&!this.series.some(se=>se.is("heatmap")&&se.options.pointPlacement==="between")&&(this.min-=.5,this.max+=.5),B||X||this.adjustTickAmount()),A(this,"afterSetTickPositions")}trimTicks(H,B,K){let ie=H[0],R=H[H.length-1],G=!this.isOrdinal&&this.minPointOffset||0;if(A(this,"trimTicks"),!this.isLinked){if(B&&ie!==-1/0)this.min=ie;else for(;this.min-G>H[0];)H.shift();if(K)this.max=R;else for(;this.max+G<H[H.length-1];)H.pop();H.length===0&&S(ie)&&!this.options.tickPositions&&H.push((R+ie)/2)}}alignToOthers(){let H,B=this,K=B.chart,ie=[this],R=B.options,G=K.options.chart,W=this.coll==="yAxis"&&G.alignThresholds,Y=[];if(B.thresholdAlignment=void 0,(G.alignTicks!==!1&&R.alignTicks||W)&&R.startOnTick!==!1&&R.endOnTick!==!1&&!B.logarithmic){let X=ee=>{let{horiz:se,options:oe}=ee;return[se?oe.left:oe.top,oe.width,oe.height,oe.pane].join(",")},re=X(this);K[this.coll].forEach(function(ee){let{series:se}=ee;se.length&&se.some(oe=>oe.visible)&&ee!==B&&X(ee)===re&&(H=!0,ie.push(ee))})}if(H&&W){ie.forEach(re=>{let ee=re.getThresholdAlignment(B);f(ee)&&Y.push(ee)});let X=Y.length>1?Y.reduce((re,ee)=>re+=ee,0)/Y.length:void 0;ie.forEach(re=>{re.thresholdAlignment=X})}return H}getThresholdAlignment(H){if((!f(this.dataMin)||this!==H&&this.series.some(B=>B.isDirty||B.isDirtyData))&&this.getSeriesExtremes(),f(this.threshold)){let B=E((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(B=1-B),B}}getTickAmount(){let H=this.options,B=H.tickPixelInterval,K=H.tickAmount;S(H.tickInterval)||K||!(this.len<B)||this.isRadial||this.logarithmic||!H.startOnTick||!H.endOnTick||(K=2),!K&&this.alignToOthers()&&(K=Math.ceil(this.len/B)+1),K<4&&(this.finalTickAmt=K,K=5),this.tickAmount=K}adjustTickAmount(){let H=this,{finalTickAmt:B,max:K,min:ie,options:R,tickPositions:G,tickAmount:W,thresholdAlignment:Y}=H,X=G==null?void 0:G.length,re=M(H.threshold,H.softThreshold?0:null),ee,se,oe=H.tickInterval,he,pe=()=>G.push(N(G[G.length-1]+oe)),ne=()=>G.unshift(N(G[0]-oe));if(f(Y)&&(he=Y<.5?Math.ceil(Y*(W-1)):Math.floor(Y*(W-1)),R.reversed&&(he=W-1-he)),H.hasData()&&f(ie)&&f(K)){let te=()=>{H.transA*=(X-1)/(W-1),H.min=R.startOnTick?G[0]:Math.min(ie,G[0]),H.max=R.endOnTick?G[G.length-1]:Math.max(K,G[G.length-1])};if(f(he)&&f(H.threshold)){for(;G[he]!==re||G.length!==W||G[0]>ie||G[G.length-1]<K;){for(G.length=0,G.push(H.threshold);G.length<W;)G[he]===void 0||G[he]>H.threshold?ne():pe();if(oe>8*H.tickInterval)break;oe*=2}te()}else if(X<W){for(;G.length<W;)G.length%2||ie===re?pe():ne();te()}if(S(B)){for(se=ee=G.length;se--;)(B===3&&se%2==1||B<=2&&se>0&&se<ee-1)&&G.splice(se,1);H.finalTickAmt=void 0}}}setScale(){var G,W;let{coll:H,stacking:B}=this,K=!1,ie=!1;this.series.forEach(Y=>{K=K||Y.isDirtyData||Y.isDirty,ie=ie||Y.xAxis&&Y.xAxis.isDirty||!1}),this.setAxisSize();let R=this.len!==(this.old&&this.old.len);R||K||ie||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(B&&H==="yAxis"&&B.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),B&&H==="xAxis"&&B.buildStacks(),this.isDirty||(this.isDirty=R||this.min!==((G=this.old)==null?void 0:G.min)||this.max!==((W=this.old)==null?void 0:W.max))):B&&B.cleanStacks(),K&&delete this.allExtremes,A(this,"afterSetScale")}setExtremes(H,B,K=!0,ie,R){this.series.forEach(G=>{delete G.kdTree}),A(this,"setExtremes",R=I(R,{min:H,max:B}),G=>{this.userMin=G.min,this.userMax=G.max,this.eventArgs=G,K&&this.chart.redraw(ie)})}setAxisSize(){let H=this.chart,B=this.options,K=B.offsets||[0,0,0,0],ie=this.horiz,R=this.width=Math.round(z(M(B.width,H.plotWidth-K[3]+K[1]),H.plotWidth)),G=this.height=Math.round(z(M(B.height,H.plotHeight-K[0]+K[2]),H.plotHeight)),W=this.top=Math.round(z(M(B.top,H.plotTop+K[0]),H.plotHeight,H.plotTop)),Y=this.left=Math.round(z(M(B.left,H.plotLeft+K[3]),H.plotWidth,H.plotLeft));this.bottom=H.chartHeight-G-W,this.right=H.chartWidth-R-Y,this.len=Math.max(ie?R:G,0),this.pos=ie?Y:W}getExtremes(){let H=this.logarithmic;return{min:H?N(H.lin2log(this.min)):this.min,max:H?N(H.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(H){let B=this.logarithmic,K=B?B.lin2log(this.min):this.min,ie=B?B.lin2log(this.max):this.max;return H===null||H===-1/0?H=K:H===1/0?H=ie:K>H?H=K:ie<H&&(H=ie),this.translate(H,0,1,0,1)}autoLabelAlign(H){let B=(M(H,0)-90*this.side+720)%360,K={align:"center"};return A(this,"autoLabelAlign",K,function(ie){B>15&&B<165?ie.align="right":B>195&&B<345&&(ie.align="left")}),K.align}tickSize(H){let B=this.options,K=M(B[H==="tick"?"tickWidth":"minorTickWidth"],H==="tick"&&this.isXAxis&&!this.categories?1:0),ie=B[H==="tick"?"tickLength":"minorTickLength"],R;K&&ie&&(B[H+"Position"]==="inside"&&(ie=-ie),R=[ie,K]);let G={tickSize:R};return A(this,"afterTickSize",G),G.tickSize}labelMetrics(){let H=this.chart.renderer,B=this.ticks,K=B[Object.keys(B)[0]]||{};return this.chart.renderer.fontMetrics(K.label||K.movedLabel||H.box)}unsquish(){let H=this.options.labels,B=H.padding||0,K=this.horiz,ie=this.tickInterval,R=this.len/(((this.categories?1:0)+this.max-this.min)/ie),G=H.rotation,W=N(.8*this.labelMetrics().h),Y=Math.max(this.max-this.min,0),X=function(he){let pe=(he+2*B)/(R||1);return(pe=pe>1?Math.ceil(pe):1)*ie>Y&&he!==1/0&&R!==1/0&&Y&&(pe=Math.ceil(Y/ie)),N(pe*ie)},re=ie,ee,se=Number.MAX_VALUE,oe;if(K){if(!H.staggerLines&&(f(G)?oe=[G]:R<H.autoRotationLimit&&(oe=H.autoRotation)),oe){let he,pe;for(let ne of oe)(ne===G||ne&&ne>=-90&&ne<=90)&&(pe=(he=X(Math.abs(W/Math.sin(b*ne))))+Math.abs(ne/360))<se&&(se=pe,ee=ne,re=he)}}else re=X(.75*W);return this.autoRotation=oe,this.labelRotation=M(ee,f(G)?G:0),H.step?ie:re}getSlotWidth(H){let B=this.chart,K=this.horiz,ie=this.options.labels,R=Math.max(this.tickPositions.length-(this.categories?0:1),1),G=B.margin[3];if(H&&f(H.slotWidth))return H.slotWidth;if(K&&ie.step<2)return ie.rotation?0:(this.staggerLines||1)*this.len/R;if(!K){let W=ie.style.width;if(W!==void 0)return parseInt(String(W),10);if(G)return G-B.spacing[3]}return .33*B.chartWidth}renderUnsquish(){let H=this.chart,B=H.renderer,K=this.tickPositions,ie=this.ticks,R=this.options.labels,G=R.style,W=this.horiz,Y=this.getSlotWidth(),X=Math.max(1,Math.round(Y-(W?2*(R.padding||0):R.distance||0))),re={},ee=this.labelMetrics(),se=G.textOverflow,oe,he,pe=0,ne,te;if(j(R.rotation)||(re.rotation=R.rotation||0),K.forEach(function(ae){let le=ie[ae];le.movedLabel&&le.replaceMovedLabel(),le&&le.label&&le.label.textPxLength>pe&&(pe=le.label.textPxLength)}),this.maxLabelLength=pe,this.autoRotation)pe>X&&pe>ee.h?re.rotation=this.labelRotation:this.labelRotation=0;else if(Y&&(oe=X,!se))for(he="clip",te=K.length;!W&&te--;)(ne=ie[K[te]].label)&&(ne.styles.textOverflow==="ellipsis"?ne.css({textOverflow:"clip"}):ne.textPxLength>Y&&ne.css({width:Y+"px"}),ne.getBBox().height>this.len/K.length-(ee.h-ee.f)&&(ne.specificTextOverflow="ellipsis"));re.rotation&&(oe=pe>.5*H.chartHeight?.33*H.chartHeight:pe,se||(he="ellipsis")),this.labelAlign=R.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(re.align=this.labelAlign),K.forEach(function(ae){let le=ie[ae],de=le&&le.label,ue=G.width,me={};de&&(de.attr(re),le.shortenLabel?le.shortenLabel():oe&&!ue&&G.whiteSpace!=="nowrap"&&(oe<de.textPxLength||de.element.tagName==="SPAN")?(me.width=oe+"px",se||(me.textOverflow=de.specificTextOverflow||he),de.css(me)):!de.styles.width||me.width||ue||de.css({width:null}),delete de.specificTextOverflow,le.rotation=re.rotation)},this),this.tickRotCorr=B.rotCorr(ee.b,this.labelRotation||0,this.side!==0)}hasData(){return this.series.some(function(H){return H.hasData()})||this.options.showEmpty&&S(this.min)&&S(this.max)}addTitle(H){let B,K=this.chart.renderer,ie=this.horiz,R=this.opposite,G=this.options.title,W=this.chart.styledMode;this.axisTitle||((B=G.textAlign)||(B=(ie?{low:"left",middle:"center",high:"right"}:{low:R?"right":"left",middle:"center",high:R?"left":"right"})[G.align]),this.axisTitle=K.text(G.text||"",0,0,G.useHTML).attr({zIndex:7,rotation:G.rotation||0,align:B}).addClass("highcharts-axis-title"),W||this.axisTitle.css(P(G.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),W||G.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[H?"show":"hide"](H)}generateTick(H){let B=this.ticks;B[H]?B[H].addLabel():B[H]=new u(this,H)}createGroups(){let{axisParent:H,chart:B,coll:K,options:ie}=this,R=B.renderer,G=(W,Y,X)=>R.g(W).attr({zIndex:X}).addClass(`highcharts-${K.toLowerCase()}${Y} `+(this.isRadial?`highcharts-radial-axis${Y} `:"")+(ie.className||"")).add(H);this.axisGroup||(this.gridGroup=G("grid","-grid",ie.gridZIndex),this.axisGroup=G("axis","",ie.zIndex),this.labelGroup=G("axis-labels","-labels",ie.labels.zIndex))}getOffset(){let H=this,{chart:B,horiz:K,options:ie,side:R,ticks:G,tickPositions:W,coll:Y}=H,X=B.inverted&&!H.isZAxis?[1,0,3,2][R]:R,re=H.hasData(),ee=ie.title,se=ie.labels,oe=f(ie.crossing),he=B.axisOffset,pe=B.clipOffset,ne=[-1,1,1,-1][R],te,ae=0,le,de=0,ue=0,me,ge;if(H.showAxis=te=re||ie.showEmpty,H.staggerLines=H.horiz&&se.staggerLines||void 0,H.createGroups(),re||H.isLinked?(W.forEach(function(be){H.generateTick(be)}),H.renderUnsquish(),H.reserveSpaceDefault=R===0||R===2||{1:"left",3:"right"}[R]===H.labelAlign,M(se.reserveSpace,!oe&&null,H.labelAlign==="center"||null,H.reserveSpaceDefault)&&W.forEach(function(be){ue=Math.max(G[be].getLabelSize(),ue)}),H.staggerLines&&(ue*=H.staggerLines),H.labelOffset=ue*(H.opposite?-1:1)):D(G,function(be,ve){be.destroy(),delete G[ve]}),ee!=null&&ee.text&&ee.enabled!==!1&&(H.addTitle(te),te&&!oe&&ee.reserveSpace!==!1&&(H.titleOffset=ae=H.axisTitle.getBBox()[K?"height":"width"],de=S(le=ee.offset)?0:M(ee.margin,K?5:10))),H.renderLine(),H.offset=ne*M(ie.offset,he[R]?he[R]+(ie.margin||0):0),H.tickRotCorr=H.tickRotCorr||{x:0,y:0},ge=R===0?-H.labelMetrics().h:R===2?H.tickRotCorr.y:0,me=Math.abs(ue)+de,ue&&(me-=ge,me+=ne*(K?M(se.y,H.tickRotCorr.y+ne*se.distance):M(se.x,ne*se.distance))),H.axisTitleMargin=M(le,me),H.getMaxLabelDimensions&&(H.maxLabelDimensions=H.getMaxLabelDimensions(G,W)),Y!=="colorAxis"&&pe){let be=this.tickSize("tick");he[R]=Math.max(he[R],(H.axisTitleMargin||0)+ae+ne*H.offset,me,W&&W.length&&be?be[0]+ne*H.offset:0);let ve=!H.axisLine||ie.offset?0:H.axisLine.strokeWidth()/2;pe[X]=Math.max(pe[X],ve)}A(this,"afterGetOffset")}getLinePath(H){let B=this.chart,K=this.opposite,ie=this.offset,R=this.horiz,G=this.left+(K?this.width:0)+ie,W=B.chartHeight-this.bottom-(K?this.height:0)+ie;return K&&(H*=-1),B.renderer.crispLine([["M",R?this.left:G,R?W:this.top],["L",R?B.chartWidth-this.right:G,R?W:B.chartHeight-this.bottom]],H)}renderLine(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))}getTitlePosition(H){let B=this.horiz,K=this.left,ie=this.top,R=this.len,G=this.options.title,W=B?K:ie,Y=this.opposite,X=this.offset,re=G.x,ee=G.y,se=this.chart.renderer.fontMetrics(H),oe=H?Math.max(H.getBBox(!1,0).height-se.h-1,0):0,he={low:W+(B?0:R),middle:W+R/2,high:W+(B?R:0)}[G.align],pe=(B?ie+this.height:K)+(B?1:-1)*(Y?-1:1)*(this.axisTitleMargin||0)+[-oe,oe,se.f,-oe][this.side],ne={x:B?he+re:pe+(Y?this.width:0)+X+re,y:B?pe+ee-(Y?this.height:0)+X:he+ee};return A(this,"afterGetTitlePosition",{titlePosition:ne}),ne}renderMinorTick(H,B){let K=this.minorTicks;K[H]||(K[H]=new u(this,H,"minor")),B&&K[H].isNew&&K[H].render(null,!0),K[H].render(null,!1,1)}renderTick(H,B,K){let ie=this.isLinked,R=this.ticks;(!ie||H>=this.min&&H<=this.max||this.grid&&this.grid.isColumn)&&(R[H]||(R[H]=new u(this,H)),K&&R[H].isNew&&R[H].render(B,!0,-1),R[H].render(B))}render(){let H,B,K=this,ie=K.chart,R=K.logarithmic,G=ie.renderer,W=K.options,Y=K.isLinked,X=K.tickPositions,re=K.axisTitle,ee=K.ticks,se=K.minorTicks,oe=K.alternateBands,he=W.stackLabels,pe=W.alternateGridColor,ne=W.crossing,te=K.tickmarkOffset,ae=K.axisLine,le=K.showAxis,de=p(G.globalAnimation);if(K.labelEdge.length=0,K.overlap=!1,[ee,se,oe].forEach(function(ue){D(ue,function(me){me.isActive=!1})}),f(ne)){let ue=this.isXAxis?ie.yAxis[0]:ie.xAxis[0],me=[1,-1,-1,1][this.side];if(ue){let ge=ue.toPixels(ne,!0);K.horiz&&(ge=ue.len-ge),K.offset=me*ge}}if(K.hasData()||Y){let ue=K.chart.hasRendered&&K.old&&f(K.old.min);K.minorTickInterval&&!K.categories&&K.getMinorTickPositions().forEach(function(me){K.renderMinorTick(me,ue)}),X.length&&(X.forEach(function(me,ge){K.renderTick(me,ge,ue)}),te&&(K.min===0||K.single)&&(ee[-1]||(ee[-1]=new u(K,-1,null,!0)),ee[-1].render(-1))),pe&&X.forEach(function(me,ge){B=X[ge+1]!==void 0?X[ge+1]+te:K.max-te,ge%2==0&&me<K.max&&B<=K.max+(ie.polar?-te:te)&&(oe[me]||(oe[me]=new d.PlotLineOrBand(K,{})),H=me+te,oe[me].options={from:R?R.lin2log(H):H,to:R?R.lin2log(B):B,color:pe,className:"highcharts-alternate-grid"},oe[me].render(),oe[me].isActive=!0)}),K._addedPlotLB||(K._addedPlotLB=!0,(W.plotLines||[]).concat(W.plotBands||[]).forEach(function(me){K.addPlotBandOrLine(me)}))}[ee,se,oe].forEach(function(ue){let me=[],ge=de.duration;D(ue,function(be,ve){be.isActive||(be.render(ve,!1,0),be.isActive=!1,me.push(ve))}),q(function(){let be=me.length;for(;be--;)ue[me[be]]&&!ue[me[be]].isActive&&(ue[me[be]].destroy(),delete ue[me[be]])},ue!==oe&&ie.hasRendered&&ge?ge:0)}),ae&&(ae[ae.isPlaced?"animate":"attr"]({d:this.getLinePath(ae.strokeWidth())}),ae.isPlaced=!0,ae[le?"show":"hide"](le)),re&&le&&(re[re.isNew?"attr":"animate"](K.getTitlePosition(re)),re.isNew=!1),he&&he.enabled&&K.stacking&&K.stacking.renderStackTotals(),K.old={len:K.len,max:K.max,min:K.min,transA:K.transA,userMax:K.userMax,userMin:K.userMin},K.isDirty=!1,A(this,"afterRender")}redraw(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(H){H.render()})),this.series.forEach(function(H){H.isDirty=!0})}getKeepProps(){return this.keepProps||Q.keepProps}destroy(H){let B=this,K=B.plotLinesAndBands,ie=this.eventOptions;if(A(this,"destroy",{keepEvents:H}),H||J(B),[B.ticks,B.minorTicks,B.alternateBands].forEach(function(R){_(R)}),K){let R=K.length;for(;R--;)K[R].destroy()}for(let R in["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(G){B[G]&&(B[G]=B[G].destroy())}),B.plotLinesAndBandsGroups)B.plotLinesAndBandsGroups[R]=B.plotLinesAndBandsGroups[R].destroy();D(B,function(R,G){B.getKeepProps().indexOf(G)===-1&&delete B[G]}),this.eventOptions=ie}drawCrosshair(H,B){let K=this.crosshair,ie=M(K&&K.snap,!0),R=this.chart,G,W,Y,X=this.cross,re;if(A(this,"drawCrosshair",{e:H,point:B}),H||(H=this.cross&&this.cross.e),K&&(S(B)||!ie)!==!1){if(ie?S(B)&&(W=M(this.coll!=="colorAxis"?B.crosshairPos:null,this.isXAxis?B.plotX:this.len-B.plotY)):W=H&&(this.horiz?H.chartX-this.pos:this.len-H.chartY+this.pos),S(W)&&(re={value:B&&(this.isXAxis?B.x:M(B.stackY,B.y)),translatedValue:W},R.polar&&I(re,{isCrosshair:!0,chartX:H&&H.chartX,chartY:H&&H.chartY,point:B}),G=this.getPlotLinePath(re)||null),!S(G)){this.hideCrosshair();return}Y=this.categories&&!this.isRadial,X||(this.cross=X=R.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(Y?"category ":"thin ")+(K.className||"")).attr({zIndex:M(K.zIndex,2)}).add(),!R.styledMode&&(X.attr({stroke:K.color||(Y?a.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":M(K.width,1)}).css({"pointer-events":"none"}),K.dashStyle&&X.attr({dashstyle:K.dashStyle}))),X.show().attr({d:G}),Y&&!K.width&&X.attr({"stroke-width":this.transA}),this.cross.e=H}else this.hideCrosshair();A(this,"afterDrawCrosshair",{e:H,point:B})}hideCrosshair(){this.cross&&this.cross.hide(),A(this,"afterHideCrosshair")}update(H,B){let K=this.chart;H=P(this.userOptions,H),this.destroy(!0),this.init(K,H),K.isDirtyBox=!0,M(B,!0)&&K.redraw()}remove(H){let B=this.chart,K=this.coll,ie=this.series,R=ie.length;for(;R--;)ie[R]&&ie[R].remove(!1);$(B.axes,this),$(B[K]||[],this),B.orderItems(K),this.destroy(),B.isDirtyBox=!0,M(H,!0)&&B.redraw()}setTitle(H,B){this.update({title:H},B)}setCategories(H,B){this.update({categories:H},B)}}return Q.keepProps=["coll","extKey","hcEvents","len","names","series","userMax","userMin"],Q}),i(n,"Core/Axis/DateTimeAxis.js",[n["Core/Utilities.js"]],function(r){var s;let{addEvent:a,getMagnitude:l,normalizeTickInterval:c,timeUnits:d}=r;return function(u){function h(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function p(){if(this.type!=="datetime"){this.dateTime=void 0;return}this.dateTime||(this.dateTime=new y(this))}u.compose=function(m){return m.keepProps.includes("dateTime")||(m.keepProps.push("dateTime"),m.prototype.getTimeTicks=h,a(m,"afterSetType",p)),m};class y{constructor(w){this.axis=w}normalizeTimeTickInterval(w,k){let b=k||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],x=b[b.length-1],v=d[x[0]],E=x[1],N;for(N=0;N<b.length&&(v=d[(x=b[N])[0]],E=x[1],!b[N+1]||!(w<=(v*E[E.length-1]+d[b[N+1][0]])/2));N++);v===d.year&&w<5*v&&(E=[1,2,5]);let S=c(w/v,E,x[0]==="year"?Math.max(l(w/v),1):1);return{unitRange:v,count:S,unitName:x[0]}}getXDateFormat(w,k){let{axis:b}=this,x=b.chart.time;return b.closestPointRange?x.getDateFormat(b.closestPointRange,w,b.options.startOfWeek,k)||x.resolveDTLFormat(k.year).main:x.resolveDTLFormat(k.day).main}}u.Additions=y}(s||(s={})),s}),i(n,"Core/Axis/LogarithmicAxis.js",[n["Core/Utilities.js"]],function(r){var s;let{addEvent:a,normalizeTickInterval:l,pick:c}=r;return function(d){function u(){this.type!=="logarithmic"?this.logarithmic=void 0:this.logarithmic??(this.logarithmic=new p(this))}function h(){let y=this.logarithmic;y&&(this.lin2val=function(m){return y.lin2log(m)},this.val2lin=function(m){return y.log2lin(m)})}d.compose=function(y){return y.keepProps.includes("logarithmic")||(y.keepProps.push("logarithmic"),a(y,"afterSetType",u),a(y,"afterInit",h)),y};class p{constructor(m){this.axis=m}getLogTickPositions(m,w,k,b){let x=this.axis,v=x.len,E=x.options,N=[];if(b||(this.minorAutoInterval=void 0),m>=.5)m=Math.round(m),N=x.getLinearTickPositions(m,w,k);else if(m>=.08){let S,_,$,V,I,A,L,T=Math.floor(w);for(S=m>.3?[1,2,4]:m>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],_=T;_<k+1&&!L;_++)for($=0,V=S.length;$<V&&!L;$++)(I=this.log2lin(this.lin2log(_)*S[$]))>w&&(!b||A<=k)&&A!==void 0&&N.push(A),A>k&&(L=!0),A=I}else{let S=this.lin2log(w),_=this.lin2log(k),$=b?x.getMinorTickInterval():E.tickInterval,V=E.tickPixelInterval/(b?5:1),I=b?v/x.tickPositions.length:v;m=l(m=c($==="auto"?null:$,this.minorAutoInterval,(_-S)*V/(I||1))),N=x.getLinearTickPositions(m,S,_).map(this.log2lin),b||(this.minorAutoInterval=m/5)}return b||(x.tickInterval=m),N}lin2log(m){return Math.pow(10,m)}log2lin(m){return Math.log(m)/Math.LN10}}d.Additions=p}(s||(s={})),s}),i(n,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[n["Core/Utilities.js"]],function(r){var s;let{erase:a,extend:l,isNumber:c}=r;return function(d){let u;function h(x){return this.addPlotBandOrLine(x,"plotBands")}function p(x,v){let E=this.userOptions,N=new u(this,x);if(this.visible&&(N=N.render()),N){if(this._addedPlotLB||(this._addedPlotLB=!0,(E.plotLines||[]).concat(E.plotBands||[]).forEac
180h(S=>{this.addPlotBandOrLine(S)})),v){let S=E[v]||[];S.push(x),E[v]=S}this.plotLinesAndBands.push(N)}return N}function y(x){return this.addPlotBandOrLine(x,"plotLines")}function m(x,v,E){E=E||this.options;let N=this.getPlotLinePath({value:v,force:!0,acrossPanes:E.acrossPanes}),S=[],_=this.horiz,$=!c(this.min)||!c(this.max)||x<this.min&&v<this.min||x>this.max&&v>this.max,V=this.getPlotLinePath({value:x,force:!0,acrossPanes:E.acrossPanes}),I,A=1,L;if(V&&N)for($&&(L=V.toString()===N.toString(),A=0),I=0;I<V.length;I+=2){let T=V[I],g=V[I+1],f=N[I],j=N[I+1];(T[0]==="M"||T[0]==="L")&&(g[0]==="M"||g[0]==="L")&&(f[0]==="M"||f[0]==="L")&&(j[0]==="M"||j[0]==="L")&&(_&&f[1]===T[1]?(f[1]+=A,j[1]+=A):_||f[2]!==T[2]||(f[2]+=A,j[2]+=A),S.push(["M",T[1],T[2]],["L",g[1],g[2]],["L",j[1],j[2]],["L",f[1],f[2]],["Z"])),S.isFlat=L}return S}function w(x){this.removePlotBandOrLine(x)}function k(x){let v=this.plotLinesAndBands,E=this.options,N=this.userOptions;if(v){let S=v.length;for(;S--;)v[S].id===x&&v[S].destroy();[E.plotLines||[],N.plotLines||[],E.plotBands||[],N.plotBands||[]].forEach(function(_){for(S=_.length;S--;)(_[S]||{}).id===x&&a(_,_[S])})}}function b(x){this.removePlotBandOrLine(x)}d.compose=function(x,v){let E=v.prototype;return E.addPlotBand||(u=x,l(E,{addPlotBand:h,addPlotLine:y,addPlotBandOrLine:p,getPlotBandPath:m,removePlotBand:w,removePlotLine:b,removePlotBandOrLine:k})),v}}(s||(s={})),s}),i(n,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[n["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],n["Core/Utilities.js"]],function(r,s){let{addEvent:a,arrayMax:l,arrayMin:c,defined:d,destroyObjectProperties:u,erase:h,fireEvent:p,merge:y,objectEach:m,pick:w}=s;class k{static compose(x,v){return a(x,"afterInit",function(){this.labelCollectors.push(()=>{var N;let E=[];for(let S of this.axes)for(let{label:_,options:$}of S.plotLinesAndBands)_&&!((N=$==null?void 0:$.label)!=null&&N.allowOverlap)&&E.push(_);return E})}),r.compose(k,v)}constructor(x,v){this.axis=x,this.options=v,this.id=v.id}render(){p(this,"render");let{axis:x,options:v}=this,{horiz:E,logarithmic:N}=x,{color:S,events:_,zIndex:$=0}=v,V={},I=x.chart.renderer,A=v.to,L=v.from,T=v.value,g=v.borderWidth,f=v.label,{label:j,svgElem:P}=this,C=[],D,M=d(L)&&d(A),z=d(T),J=!P,F={class:"highcharts-plot-"+(M?"band ":"line ")+(v.className||"")},q=M?"bands":"lines";if(!x.chart.styledMode&&(z?(F.stroke=S||"#999999",F["stroke-width"]=w(v.width,1),v.dashStyle&&(F.dashstyle=v.dashStyle)):M&&(F.fill=S||"#e6e9ff",g&&(F.stroke=v.borderColor,F["stroke-width"]=g))),V.zIndex=$,q+="-"+$,(D=x.plotLinesAndBandsGroups[q])||(x.plotLinesAndBandsGroups[q]=D=I.g("plot-"+q).attr(V).add()),P||(this.svgElem=P=I.path().attr(F).add(D)),d(T))C=x.getPlotLinePath({value:(N==null?void 0:N.log2lin(T))??T,lineWidth:P.strokeWidth(),acrossPanes:v.acrossPanes});else{if(!(d(L)&&d(A)))return;C=x.getPlotBandPath((N==null?void 0:N.log2lin(L))??L,(N==null?void 0:N.log2lin(A))??A,v)}return!this.eventsAdded&&_&&(m(_,(U,Q)=>{P==null||P.on(Q,ce=>{_[Q].apply(this,[ce])})}),this.eventsAdded=!0),(J||!P.d)&&(C!=null&&C.length)?P.attr({d:C}):P&&(C?(P.show(),P.animate({d:C})):P.d&&(P.hide(),j&&(this.label=j=j.destroy()))),f&&(d(f.text)||d(f.formatter))&&(C!=null&&C.length)&&x.width>0&&x.height>0&&!C.isFlat?(f=y({align:E&&M?"center":void 0,x:E?!M&&4:10,verticalAlign:!E&&M?"middle":void 0,y:E?M?16:10:M?6:-4,rotation:E&&!M?90:0,...M?{inside:!0}:{}},f),this.renderLabel(f,C,M,$)):j&&j.hide(),this}renderLabel(x,v,E,N){var f;let S=this.axis,_=S.chart.renderer,$=x.inside,V=this.label;V||(this.label=V=_.text(this.getLabelText(x),0,0,x.useHTML).attr({align:x.textAlign||x.align,rotation:x.rotation,class:"highcharts-plot-"+(E?"band":"line")+"-label "+(x.className||""),zIndex:N}),S.chart.styledMode||V.css(y({fontSize:"0.8em",textOverflow:E&&!$?"":"ellipsis"},x.style)),V.add());let I=v.xBounds||[v[0][1],v[1][1],E?v[2][1]:v[0][1]],A=v.yBounds||[v[0][2],v[1][2],E?v[2][2]:v[0][2]],L=c(I),T=c(A),g=l(I)-L;V.align(x,!1,{x:L,y:T,width:g,height:l(A)-T}),(!V.alignValue||V.alignValue==="left"||d($))&&V.css({width:(((f=x.style)==null?void 0:f.width)||(E&&$?g:V.rotation===90?S.height-(V.alignAttr.y-S.top):(x.clip?S.width:S.chart.chartWidth)-(V.alignAttr.x-S.left)))+"px"}),V.show(!0)}getLabelText(x){return d(x.formatter)?x.formatter.call(this):x.text}destroy(){h(this.axis.plotLinesAndBands,this),delete this.axis,u(this)}}return k}),i(n,"Core/Tooltip.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Templating.js"],n["Core/Globals.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Utilities.js"]],function(r,s,a,l,c,d){var u;let{animObject:h}=r,{format:p}=s,{composed:y,doc:m,isSafari:w}=a,{distribute:k}=l,{addEvent:b,clamp:x,css:v,discardElement:E,extend:N,fireEvent:S,isArray:_,isNumber:$,isString:V,merge:I,pick:A,pushUnique:L,splat:T,syncTimeout:g}=d;class f{constructor(P,C,D){this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.options={},this.outside=!1,this.chart=P,this.init(P,C),this.pointer=D}bodyFormatter(P){return P.map(function(C){let D=C.series.tooltipOptions;return(D[(C.point.formatPrefix||"point")+"Formatter"]||C.point.tooltipFormatter).call(C.point,D[(C.point.formatPrefix||"point")+"Format"]||"")})}
vendor: 4,232 bytes, line 180
180cleanSplit(P){this.chart.series.forEach(function(C){let D=C&&C.tt;D&&(!D.isActive||P?C.tt=D.destroy():D.isActive=!1)})}defaultFormatter(P){let C,D=this.points||T(this);return(C=(C=[P.tooltipFooterHeaderFormatter(D[0])]).concat(P.bodyFormatter(D))).push(P.tooltipFooterHeaderFormatter(D[0],!0)),C}destroy(){this.label&&(this.label=this.label.destroy()),this.split&&(this.cleanSplit(!0),this.tt&&(this.tt=this.tt.destroy())),this.renderer&&(this.renderer=this.renderer.destroy(),E(this.container)),d.clearTimeout(this.hideTimer)}getAnchor(P,C){let D,{chart:M,pointer:z}=this,J=M.inverted,F=M.plotTop,q=M.plotLeft;if((P=T(P))[0].series&&P[0].series.yAxis&&!P[0].series.yAxis.options.reversedStacks&&(P=P.slice().reverse()),this.followPointer&&C)C.chartX===void 0&&(C=z.normalize(C)),D=[C.chartX-q,C.chartY-F];else if(P[0].tooltipPos)D=P[0].tooltipPos;else{let U=0,Q=0;P.forEach(function(ce){let H=ce.pos(!0);H&&(U+=H[0],Q+=H[1])}),U/=P.length,Q/=P.length,this.shared&&P.length>1&&C&&(J?U=C.chartX:Q=C.chartY),D=[U-q,Q-F]}return D.map(Math.round)}getClassName(P,C,D){let M=this.options,z=P.series,J=z.options;return[M.className,"highcharts-label",D&&"highcharts-tooltip-header",C?"highcharts-tooltip-box":"highcharts-tooltip",!D&&"highcharts-color-"+A(P.colorIndex,z.colorIndex),J&&J.className].filter(V).join(" ")}getLabel({anchorX:P,anchorY:C}={anchorX:0,anchorY:0}){let D=this,M=this.chart.styledMode,z=this.options,J=this.split&&this.allowShared,F=this.container,q=this.chart.renderer;if(this.label){let U=!this.label.hasClass("highcharts-label");(!J&&U||J&&!U)&&this.destroy()}if(!this.label){if(this.outside){let U=this.chart.options.chart.style,Q=c.getRendererType();this.container=F=a.doc.createElement("div"),F.className="highcharts-tooltip-container",v(F,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||0,(U&&U.zIndex||0)+3)}),this.renderer=q=new Q(F,0,0,U,void 0,void 0,q.styledMode)}if(J?this.label=q.g("tooltip"):(this.label=q.label("",P,C,z.shape,void 0,void 0,z.useHTML,void 0,"tooltip").attr({padding:z.padding,r:z.borderRadius}),M||this.label.attr({fill:z.backgroundColor,"stroke-width":z.borderWidth||0}).css(z.style).css({pointerEvents:z.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),D.outside){let U=this.label;[U.xSetter,U.ySetter].forEach((Q,ce)=>{U[ce?"ySetter":"xSetter"]=H=>{Q.call(U,D.distance),U[ce?"y":"x"]=H,F&&(F.style[ce?"top":"left"]=`${H}px`)}})}this.label.attr({zIndex:8}).shadow(z.shadow).add()}return F&&!F.parentElement&&a.doc.body.appendChild(F),this.label}getPlayingField(){let{body:P,documentElement:C}=m,{chart:D,distance:M,outside:z}=this;return{width:z?Math.max(P.scrollWidth,C.scrollWidth,P.offsetWidth,C.offsetWidth,C.clientWidth)-2*M:D.chartWidth,height:z?Math.max(P.scrollHeight,C.scrollHeight,P.offsetHeight,C.offsetHeight,C.clientHeight):D.chartHeight}}getPosition(P,C,D){var de,ue;let{distance:M,chart:z,outside:J,pointer:F}=this,{inverted:q,plotLeft:U,plotTop:Q,polar:ce}=z,{plotX:H=0,plotY:B=0}=D,K={},ie=q&&D.h||0,{height:R,width:G}=this.getPlayingField(),W=F.getChartPosition(),Y=me=>me*W.scaleX,X=me=>me*W.scaleY,re=me=>{let ge=me==="x";return[me,ge?G:R,ge?P:C].concat(J?[ge?Y(P):X(C),ge?W.left-M+Y(H+U):W.top-M+X(B+Q),0,ge?G:R]:[ge?P:C,ge?H+U:B+Q,ge?U:Q,ge?U+z.plotWidth:Q+z.plotHeight])},ee=re("y"),se=re("x"),oe,he=!!D.negative;!ce&&((ue=(de=z.hoverSeries)==null?void 0:de.yAxis)!=null&&ue.reversed)&&(he=!he);let pe=!this.followPointer&&A(D.ttBelow,!ce&&!q===he),ne=function(me,ge,be,ve,we,Ce,Pe){let Ne=J?me==="y"?X(M):Y(M):M,Ee=(be-ve)/2,Te=ve<we-M,Fe=we+M+ve<ge,Le=we-Ne-be+Ee,Ue=we+Ne-Ee;if(pe&&Fe)K[me]=Ue;else if(!pe&&Te)K[me]=Le;else if(Te)K[me]=Math.min(Pe-ve,Le-ie<0?Le:Le-ie);else{if(!Fe)return!1;K[me]=Math.max(Ce,Ue+ie+be>ge?Ue:Ue+ie)}},te=function(me,ge,be,ve,we){if(we<M||we>ge-M)return!1;we<be/2?K[me]=1:we>ge-ve/2?K[me]=ge-ve-2:K[me]=we-be/2},ae=function(me){[ee,se]=[se,ee],oe=me},le=()=>{ne.apply(0,ee)!==!1?te.apply(0,se)!==!1||oe||(ae(!0),le()):oe?K.x=K.y=0:(ae(!0),le())};return(q&&!ce||this.len>1)&&ae(),le(),K}hide(P){let C=this;d.clearTimeout(this.hideTimer),P=A(P,this.options.hideDelay),this.isHidden||(this.hideTimer=g(function(){let D=C.getLabel();C.getLabel().animate({opacity:0}
180,{duration:P&&150,complete:()=>{D.hide(),C.container&&C.container.remove()}}),C.isHidden=!0},P))}init(P,C){this.chart=P,this.options=C,this.crosshairs=[],this.isHidden=!0,this.split=C.split&&!P.inverted&&!P.polar,this.shared=C.shared||this.split,this.outside=A(C.outside,!!(P.scrollablePixelsX||P.scrollablePixelsY))}shouldStickOnContact(P){return!!(!this.followPointer&&this.options.stickOnContact&&(!P||this.pointer.inClass(P.target,"highcharts-tooltip")))}move(P,C,D,M){let z=this,J=h(!z.isHidden&&z.options.animation),F=z.followPointer||(z.len||0)>1,q={x:P,y:C};F||(q.anchorX=D,q.anchorY=M),J.step=()=>z.drawTracker(),z.getLabel().animate(q,J)}refresh(P,C){let{chart:D,options:M,pointer:z,shared:J}=this,F=T(P),q=F[0],U=[],Q=M.format,ce=M.formatter||this.defaultFormatter,H=D.styledMode,B={},K=this.allowShared;if(!M.enabled||!q.series)return;d.clearTimeout(this.hideTimer),this.allowShared=!(!_(P)&&P.series&&P.series.noSharedTooltip),K=K&&!this.allowShared,this.followPointer=!this.split&&q.series.tooltipOptions.followPointer;let ie=this.getAnchor(P,C),R=ie[0],G=ie[1];J&&this.allowShared?(z.applyInactiveState(F),F.forEach(function(X){X.setState("hover"),U.push(X.getLabelConfig())}),(B=q.getLabelConfig()).points=U):B=q.getLabelConfig(),this.len=U.length;let W=V(Q)?p(Q,B,D):ce.call(B,this),Y=q.series;if(this.distance=A(Y.tooltipOptions.distance,16),W===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(W,F);else{let X=R,re=G;if(C&&z.isDirectTouch&&(X=C.chartX-D.plotLeft,re=C.chartY-D.plotTop),D.polar||Y.options.clip===!1||F.some(ee=>z.isDirectTouch||ee.series.shouldShowTooltip(X,re))){let ee=this.getLabel(K&&this.tt||{});(!M.style.width||H)&&ee.css({width:(this.outside?this.getPlayingField():D.spacingBox).width+"px"}),ee.attr({class:this.getClassName(q),text:W&&W.join?W.join(""):W}),this.outside&&ee.attr({x:x(ee.x||0,0,this.getPlayingField().width-(ee.width||0))}),H||ee.attr({stroke:M.borderColor||q.color||Y.color||"#666666"}),this.updatePosition({plotX:R,plotY:G,negative:q.negative,ttBelow:q.ttBelow,h:ie[2]||0})}else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}S(this,"refresh")}renderSplit(P,C){var ge;let D=this,{chart:M,chart:{chartWidth:z,chartHeight:J,plotHeight:F,plotLeft:q,plotTop:U,scrollablePixelsY:Q=0,scrollablePixelsX:ce,styledMode:H},distance:B,options:K,options:{positioner:ie},pointer:R}=D,{scrollLeft:G=0,scrollTop:W=0}=((ge=M.scrollablePlotArea)==null?void 0:ge.scrollingContainer)||{},Y=D.outside&&typeof ce!="number"?m.documentElement.getBoundingClientRect():{left:G,right:G+z,top:W,bottom:W+J},X=D.getLabel(),re=this.renderer||M.renderer,ee=!!(M.xAxis[0]&&M.xAxis[0].opposite),{left:se,top:oe}=R.getChartPosition(),he=U+W,pe=0,ne=F-Q;function te(be,ve,we,Ce,Pe=!0){let Ne,Ee;return we?(Ne=ee?0:ne,Ee=x(be-Ce/2,Y.left,Y.right-Ce-(D.outside?se:0))):(Ne=ve-he,Ee=x(Ee=Pe?be-Ce-B:be+B,Pe?Ee:Y.left,Y.right)),{x:Ee,y:Ne}}V(P)&&(P=[!1,P]);let ae=P.slice(0,C.length+1).reduce(function(be,ve,we){if(ve!==!1&&ve!==""){let Ce=C[we-1]||{isHeader:!0,plotX:C[0].plotX,plotY:F,series:{}},Pe=Ce.isHeader,Ne=Pe?D:Ce.series,Ee=Ne.tt=function(rt,tt,At){let xt=rt,{isHeader:Nt,series:zn}=tt;if(!xt){let pn={padding:K.padding,r:K.borderRadius};H||(pn.fill=K.backgroundColor,pn["stroke-width"]=K.borderWidth??1),xt=re.label("",0,0,K[Nt?"headerShape":"shape"],void 0,void 0,K.useHTML).addClass(D.getClassName(tt,!0,Nt)).attr(pn).add(X)}return xt.isActive=!0,xt.attr({text:At}),H||xt.css(K.style).attr({stroke:K.borderColor||tt.color||zn.color||"#333333"}),xt}(Ne.tt,Ce,ve.toString()),Te=Ee.getBBox(),Fe=Te.width+Ee.strokeWidth();Pe&&(pe=Te.height,ne+=pe,ee&&(he-=pe));let{anchorX:Le,anchorY:Ue}=function(rt){let tt,At,{isHeader:xt,plotX:Nt=0,plotY:zn=0,series:pn}=rt;if(xt)tt=Math.max(q+Nt,q),At=U+F/2;else{let{xAxis:yi,yAxis:Bt}=pn;tt=yi.pos+x(Nt,-B,yi.len+B),pn.shouldShowTooltip(0,Bt.pos-U+zn,{ignoreX:!0})&&(At=Bt.pos+zn)}return{anchorX:tt=x(tt,Y.left-B,Y.right+B),anchorY:At}}(Ce);if(typeof Ue=="number"){let rt=Te.height+1,tt=ie?ie.call(D,Fe,rt,Ce):te(Le,Ue,Pe,Fe);be.push({align:ie?0:void 0,anchorX:Le,anchorY:Ue,boxWidth:Fe,point:Ce,rank:A(tt.rank,Pe?1:0),size:rt,target:tt.y,tt:Ee,x:tt.x})}else Ee.isActive=!1}return be},[]);!ie&&ae.some(be=>{let{outside:ve}=D,we=(ve?se:0)+be.anchorX;return we<Y.left&&we+be.boxWidth<Y.right||we<se-Y.left+be.boxWidth&&Y.right-we>we})&&(ae=ae.map(be=>{let{x:ve,y:we}=te(be.anchorX,be.anchorY,be.point.isHeader,be.boxWidth,!1);return N(be,{target:we,x:ve})})),D.cleanSplit(),k(ae,ne);let le={left:se,right:se};ae.forEach(function(be){let{x:ve,boxWidth:we,isHeader:Ce}=be;!Ce&&(D.outside&&se+ve<le.left&&(le.left=se+ve),!Ce&&D.outside&&le.left+we>le.right&&(le.right=se+ve))}),ae.forEach(function(be){let{x:ve,anchorX:we,anchorY:Ce,pos:Pe,point:{isHeader:Ne}}=be,Ee={visibility:Pe===void 0?"hidden":"inherit",x:ve,y:(Pe||0)+he,anchorX:we,anchorY:Ce};if(D.outside&&ve<we){let Te=se-le.left;Te>0&&(Ne||(Ee.x=ve+Te,Ee.anchorX=we+Te),Ne&&(Ee.x=(le.right-le.left)/2,Ee.anchorX=we+Te))}be.tt.attr(Ee)});let{container:de,outside:ue,renderer:me}=D;if(ue&&de&&me){let{width:be,height:ve,x:we,y:Ce}=X.getBBox();me.setSize(be+we,ve+Ce,!1),de.style.left=le.left+"px",de.style.top=oe+"px"}w&&X.attr({opacity:X.opacity===1?.999:1})}drawTracker(){if(!this.shouldStickOnContact()){this.tracker&&(this.tracker=this.tracker.destroy());return}let P=this.chart,C=this.label,D=this.shared?P.hoverPoints:P.hoverPoint;if(!C||!D)return;let M={x:0,y:0,width:0,height:0},z=this.getAnchor(D),J=C.getBBox();z[0]+=P.plotLeft-(C.translateX||0),z[1]+=P.plotTop-(C.translateY||0),M.x=Math.min(0,z[0]),M.y=Math.min(0,z[1]),M.width=z[0]<0?Math.max(Math.abs(z[0]),J.width-z[0]):Math.max(Math.abs(z[0]),J.width),M.height=z[1]<0?Math.max(Math.abs(z[1]),J.height-Math.abs(z[1])):Math.max(Math.abs(z[1]),J.height),this.tracker?this.tracker.attr(M):(this.tracker=C.renderer.rect(M).addClass("highcharts-tracker").add(C),P.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}styledModeFormat(P){return P.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')}tooltipFooterHeaderFormatter(P,C){let D=P.series,M=D.tooltipOptions,z=D.xAxis,J=z&&z.dateTime,F={isFooter:C,labelConfig:P},q=M.xDateFormat,U=M[C?"footerFormat":"headerFormat"];return S(this,"headerFormatter",F,function(Q){J&&!q&&$(P.key)&&(q=J.getXDateFormat(P.key,M.dateTimeLabelFormats)),J&&q&&(P.point&&P.point.tooltipDateKeys||["key"]).forEac
180h(function(ce){U=U.replace("{point."+ce+"}","{point."+ce+":"+q+"}")}),D.chart.styledMode&&(U=this.styledModeFormat(U)),Q.text=p(U,{point:P,series:D},this.chart)}),F.text}update(P){this.destroy(),this.init(this.chart,I(!0,this.options,P))}updatePosition(P){let{chart:C,container:D,distance:M,options:z,pointer:J,renderer:F}=this,{height:q=0,width:U=0}=this.getLabel(),{left:Q,top:ce,scaleX:H,scaleY:B}=J.getChartPosition(),K=(z.positioner||this.getPosition).call(this,U,q,P),ie=(P.plotX||0)+C.plotLeft,R=(P.plotY||0)+C.plotTop,G;F&&D&&(z.positioner&&(K.x+=Q-M,K.y+=ce-M),G=(z.borderWidth||0)+2*M+2,F.setSize(U+G,q+G,!1),(H!==1||B!==1)&&(v(D,{transform:`scale(${H}, ${B})`}),ie*=H,R*=B),ie+=Q-K.x,R+=ce-K.y),this.move(Math.round(K.x),Math.round(K.y||0),ie,R)}}return(u=f||(f={})).compose=function(j){L(y,"Core.Tooltip")&&b(j,"afterInit",function(){let P=this.chart;P.options.tooltip&&(P.tooltip=new u(P,P.options.tooltip,this))})},f}),i(n,"Core/Series/Point.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Animation/AnimationUtilities.js"],n["Core/Defaults.js"],n["Core/Templating.js"],n["Core/Utilities.js"]],function(r,s,a,l,c){let{animObject:d}=s,{defaultOptions:u}=a,{format:h}=l,{addEvent:p,crisp:y,erase:m,extend:w,fireEvent:k,getNestedProperty:b,isArray:x,isFunction:v,isNumber:E,isObject:N,merge:S,pick:_,syncTimeout:$,removeEvent:V,uniqueKey:I}=c;class A{animateBeforeDestroy(){let T=this,g={x:T.startXPos,opacity:0},f=T.getGraphicalProps();f.singular.forEach(function(j){T[j]=T[j].animate(j==="dataLabel"?{x:T[j].startXPos,y:T[j].startYPos,opacity:0}:g)}),f.plural.forEach(function(j){T[j].forEach(function(P){P.element&&P.animate(w({x:T.startXPos},P.startYPos?{x:P.startXPos,y:P.startYPos}:{}))})})}applyOptions(T,g){let f=this.series,j=f.options.pointValKey||f.pointValKey;return w(this,T=A.prototype.optionsToObject.call(this,T)),this.options=this.options?w(this.options,T):T,T.group&&delete this.group,T.dataLabels&&delete this.dataLabels,j&&(this.y=A.prototype.getNestedProperty.call(this,j)),this.selected&&(this.state="select"),"name"in this&&g===void 0&&f.xAxis&&f.xAxis.hasNames&&(this.x=f.xAxis.nameToX(this)),this.x===void 0&&f?this.x=g??f.autoIncrement():E(T.x)&&f.options.relativeXValue&&(this.x=f.autoIncrement(T.x)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point",this}destroy(){if(!this.destroyed){let T=this,g=T.series,f=g.chart,j=g.options.dataSorting,P=f.hoverPoints,C=d(T.series.chart.renderer.globalAnimation),D=()=>{for(let M in(T.graphic||T.graphics||T.dataLabel||T.dataLabels)&&(V(T),T.destroyElements()),T)delete T[M]};T.legendItem&&f.legend.destroyItem(T),P&&(T.setState(),m(P,T),P.length||(f.hoverPoints=null)),T===f.hoverPoint&&T.onMouseOut(),j&&j.enabled?(this.animateBeforeDestroy(),$(D,C.duration)):D(),f.pointCount--}this.destroyed=!0}destroyElements(T){let g=this,f=g.getGraphicalProps(T);f.singular.forEach(function(j){g[j]=g[j].destroy()}),f.plural.forEach(function(j){g[j].forEach(function(P){P&&P.element&&P.destroy()}),delete g[j]})}firePointEvent(T,g,f){let j=this,P=this.series.options;j.manageEvent(T),T==="click"&&P.allowPointSelect&&(f=function(C){!j.destroyed&&j.select&&j.select(null,C.ctrlKey||C.metaKey||C.shiftKey)}),k(j,T,g,f)}getClassName(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(this.colorIndex!==void 0?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(T){let g,f,j=this,P=[],C={singular:[],plural:[]};for((T=T||{graphic:1,dataLabel:1}).graphic&&P.push("graphic","connector"),T.dataLabel&&P.push("dataLabel","dataLabelPath","dataLabelUpper"),f=P.length;f--;)j[g=P[f]]&&C.singular.push(g);return["graphic","dataLabel"].forEach(function(D){let M=D+"s";T[D]&&j[M]&&C.plural.push(M)}),C}getLabelConfig(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}}getNestedProperty(T){return T?T.indexOf("custom.")===0?b(T,this.options):this[T]:void 0}getZone(){let T=this.series,g=T.zones,f=T.zoneAxis||"y",j,P=0;for(j=g[0];this[f]>=j.value;)j=g[++P];return this.nonZonedColor||(this.nonZonedColor=this.color),j&&j.color&&!this.options.color?this.color=j.color:this.color=this.nonZonedColor,j}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}constructor(T,g,f){this.formatPrefix="point",this.visible=!0,this.series=T,this.applyOptions(g,f),this.id??(this.id=I()),this.resolveColor(),T.chart.pointCount++,k(this,"afterInit")}isValid(){return(E(this.x)||this.x instanceof Date)&&E(this.y)}optionsToObject(T){let g=this.series,f=g.options.keys,j=f||g.pointArrayMap||["y"],P=j.length,C={},D,M=0,z=0;if(E(T)||T===null)C[j[0]]=T;else if(x(T))for(!f&&T.length>P&&((D=typeof T[0])=="string"?C.name=T[0]:D==="number"&&(C.x=T[0]),M++);z<P;)f&&T[M]===void 0||(j[z].indexOf(".")>0?A.prototype.setNestedProperty(C,T[M],j[z]):C[j[z]]=T[M]),M++,z++;else typeof T=="object"&&(C=T,T.dataLabels&&(g.hasDataLabels=()=>!0),T.marker&&(g._hasPointMarkers=!0));return C}
vendor: 2,211 bytes, line 180
180pos(T,g=this.plotY){if(!this.destroyed){let{plotX:f,series:j}=this,{chart:P,xAxis:C,yAxis:D}=j,M=0,z=0;if(E(f)&&E(g))return T&&(M=C?C.pos:P.plotLeft,z=D?D.pos:P.plotTop),P.inverted&&C&&D?[D.len-g+z,C.len-f+M]:[f+M,g+z]}}resolveColor(){let T=this.series,g=T.chart.options.chart,f=T.chart.styledMode,j,P,C=g.colorCount,D;delete this.nonZonedColor,T.options.colorByPoint?(f||(j=(P=T.options.colors||T.chart.options.colors)[T.colorCounter],C=P.length),D=T.colorCounter,T.colorCounter++,T.colorCounter===C&&(T.colorCounter=0)):(f||(j=T.color),D=T.colorIndex),this.colorIndex=_(this.options.colorIndex,D),this.color=_(this.options.color,j)}setNestedProperty(T,g,f){return f.split(".").reduce(function(j,P,C,D){let M=D.length-1===C;return j[P]=M?g:N(j[P],!0)?j[P]:{},j[P]},T),T}shouldDraw(){return!this.isNull}tooltipFormatter(T){let g=this.series,f=g.tooltipOptions,j=_(f.valueDecimals,""),P=f.valuePrefix||"",C=f.valueSuffix||"";return g.chart.styledMode&&(T=g.chart.tooltip.styledModeFormat(T)),(g.pointArrayMap||["y"]).forEach(function(D){D="{point."+D,(P||C)&&(T=T.replace(RegExp(D+"}","g"),P+D+"}"+C)),T=T.replace(RegExp(D+"}","g"),D+":,."+j+"f}")}),h(T,{point:this,series:this.series},g.chart)}update(T,g,f,j){let P,C=this,D=C.series,M=C.graphic,z=D.chart,J=D.options;function F(){C.applyOptions(T);let q=M&&C.hasMockGraphic,U=C.y===null?!q:q;M&&U&&(C.graphic=M.destroy(),delete C.hasMockGraphic),N(T,!0)&&(M&&M.element&&T&&T.marker&&T.marker.symbol!==void 0&&(C.graphic=M.destroy()),T!=null&&T.dataLabels&&C.dataLabel&&(C.dataLabel=C.dataLabel.destroy())),P=C.index,D.updateParallelArrays(C,P),J.data[P]=N(J.data[P],!0)||N(T,!0)?C.options:_(T,J.data[P]),D.isDirty=D.isDirtyData=!0,!D.fixedBox&&D.hasCartesianSeries&&(z.isDirtyBox=!0),J.legendType==="point"&&(z.isDirtyLegend=!0),g&&z.redraw(f)}g=_(g,!0),j===!1?F():C.firePointEvent("update",{options:T},F)}remove(T,g){this.series.removePoint(this.series.data.indexOf(this),T,g)}select(T,g){let f=this,j=f.series,P=j.chart;T=_(T,!f.selected),this.selectedStaging=T,f.firePointEvent(T?"select":"unselect",{accumulate:g},function(){f.selected=f.options.selected=T,j.options.data[j.data.indexOf(f)]=f.options,f.setState(T&&"select"),g||P.getSelectedPoints().forEac
180h(function(C){let D=C.series;C.selected&&C!==f&&(C.selected=C.options.selected=!1,D.options.data[D.data.indexOf(C)]=C.options,C.setState(P.hoverPoints&&D.options.inactiveOtherPoints?"inactive":""),C.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(T){let{inverted:g,pointer:f}=this.series.chart;f&&(T=T?f.normalize(T):f.getChartCoordinatesFromPoint(this,g),f.runPointActions(T,this))}onMouseOut(){let T=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(T.hoverPoints||[]).forEach(function(g){g.setState()}),T.hoverPoints=T.hoverPoint=null}manageEvent(T){var j,P,C,D,M,z;let g=S(this.series.options.point,this.options),f=(j=g.events)==null?void 0:j[T];v(f)&&(!((P=this.hcEvents)!=null&&P[T])||((D=(C=this.hcEvents)==null?void 0:C[T])==null?void 0:D.map(J=>J.fn).indexOf(f))===-1)?((M=this.importedUserEvent)==null||M.call(this),this.importedUserEvent=p(this,T,f)):this.importedUserEvent&&!f&&((z=this.hcEvents)!=null&&z[T])&&(V(this,T),delete this.hcEvents[T],Object.keys(this.hcEvents)||delete this.importedUserEvent)}setState(T,g){var W;let f=this.series,j=this.state,P=f.options.states[T||"normal"]||{},C=u.plotOptions[f.type].marker&&f.options.marker,D=C&&C.enabled===!1,M=C&&C.states&&C.states[T||"normal"]||{},z=M.enabled===!1,J=this.marker||{},F=f.chart,q=C&&f.markerAttribs,U=f.halo,Q,ce,H,B=f.stateMarkerGraphic,K;if((T=T||"")===this.state&&!g||this.selected&&T!=="select"||P.enabled===!1||T&&(z||D&&M.enabled===!1)||T&&J.states&&J.states[T]&&J.states[T].enabled===!1)return;if(this.state=T,q&&(Q=f.markerAttribs(this,T)),this.graphic&&!this.hasMockGraphic){if(j&&this.graphic.removeClass("highcharts-point-"+j),T&&this.graphic.addClass("highcharts-point-"+T),!F.styledMode){ce=f.pointAttribs(this,T),H=_(F.options.chart.animation,P.animation);let Y=ce.opacity;f.options.inactiveOtherPoints&&E(Y)&&(this.dataLabels||[]).forEach(function(X){X&&!X.hasClass("highcharts-data-label-hidden")&&(X.animate({opacity:Y},H),X.connector&&X.connector.animate({opacity:Y},H))}),this.graphic.animate(ce,H)}Q&&this.graphic.animate(Q,_(F.options.chart.animation,M.animation,C.animation)),B&&B.hide()}else T&&M&&(K=J.symbol||f.symbol,B&&B.currentSymbol!==K&&(B=B.destroy()),Q&&(B?B[g?"animate":"attr"]({x:Q.x,y:Q.y}):K&&(f.stateMarkerGraphic=B=F.renderer.symbol(K,Q.x,Q.y,Q.width,Q.height).add(f.markerGroup),B.currentSymbol=K)),!F.styledMode&&B&&this.state!=="inactive"&&B.attr(f.pointAttribs(this,T))),B&&(B[T&&this.isInside?"show":"hide"](),B.element.point=this,B.addClass(this.getClassName(),!0));let ie=P.halo,R=this.graphic||B,G=R&&R.visibility||"inherit";ie&&ie.size&&R&&G!=="hidden"&&!this.isCluster?(U||(f.halo=U=F.renderer.path().add(R.parentGroup)),U.show()[g?"animate":"attr"]({d:this.haloPath(ie.size)}),U.attr({class:"highcharts-halo highcharts-color-"+_(this.colorIndex,f.colorIndex)+(this.className?" "+this.className:""),visibility:G,zIndex:-1}),U.point=this,F.styledMode||U.attr(w({fill:this.color||f.color,"fill-opacity":ie.opacity},r.filterUserAttributes(ie.attributes||{})))):(W=U==null?void 0:U.point)!=null&&W.haloPath&&!U.point.destroyed&&U.animate({d:U.point.haloPath(0)},null,U.hide),k(this,"afterSetState",{state:T})}haloPath(T){let g=this.pos();return g?this.series.chart.renderer.symbols.circle(y(g[0],1)-T,g[1]-T,2*T,2*T):[]}}return A}),i(n,"Core/Pointer.js",[n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],function(r,s,a){var l;let{parse:c}=r,{charts:d,composed:u,isTouchDevice:h}=s,{addEvent:p,attr:y,css:m,extend:w,find:k,fireEvent:b,isNumber:x,isObject:v,objectEach:E,offset:N,pick:S,pushUnique:_,splat:$}=a;class V{applyInactiveState(A){let L=[],T;(A||[]).forEach(function(g){T=g.series,L.push(T),T.linkedParent&&L.push(T.linkedParent),T.linkedSeries&&(L=L.concat(T.linkedSeries)),T.navigatorSeries&&L.push(T.navigatorSeries)}),this.chart.series.forEach(function(g){L.indexOf(g)===-1?g.setState("inactive",!0):g.options.inactiveOtherPoints&&g.setAllPointsToState("inactive")})}destroy(){let A=this;this.eventsToUnbind.forEach(L=>L()),this.eventsToUnbind=[],!s.chartCount&&(V.unbindDocumentMouseUp&&V.unbindDocumentMouseUp.forEac
vendor: 4,599 bytes, line 180
180h(L=>L()),V.unbindDocumentTouchEnd&&(V.unbindDocumentTouchEnd=V.unbindDocumentTouchEnd())),clearInterval(A.tooltipTimeout),E(A,function(L,T){A[T]=void 0})}getSelectionMarkerAttrs(A,L){let T={args:{chartX:A,chartY:L},attrs:{},shapeType:"rect"};return b(this,"getSelectionMarkerAttrs",T,g=>{let f,{chart:j,zoomHor:P,zoomVert:C}=this,{mouseDownX:D=0,mouseDownY:M=0}=j,z=g.attrs;z.x=j.plotLeft,z.y=j.plotTop,z.width=P?1:j.plotWidth,z.height=C?1:j.plotHeight,P&&(f=A-D,z.width=Math.max(1,Math.abs(f)),z.x=(f>0?0:f)+D),C&&(f=L-M,z.height=Math.max(1,Math.abs(f)),z.y=(f>0?0:f)+M)}),T}drag(A){let{chart:L}=this,{mouseDownX:T=0,mouseDownY:g=0}=L,{panning:f,panKey:j,selectionMarkerFill:P}=L.options.chart,C=L.plotLeft,D=L.plotTop,M=L.plotWidth,z=L.plotHeight,J=v(f)?f.enabled:f,F=j&&A[`${j}Key`],q=A.chartX,U=A.chartY,Q,ce=this.selectionMarker;if((!ce||!ce.touch)&&(q<C?q=C:q>C+M&&(q=C+M),U<D?U=D:U>D+z&&(U=D+z),this.hasDragged=Math.sqrt(Math.pow(T-q,2)+Math.pow(g-U,2)),this.hasDragged>10)){Q=L.isInsidePlot(T-C,g-D,{visiblePlotOnly:!0});let{shapeType:H,attrs:B}=this.getSelectionMarkerAttrs(q,U);(L.hasCartesianSeries||L.mapView)&&this.hasZoom&&Q&&!F&&!ce&&(this.selectionMarker=ce=L.renderer[H](),ce.attr({class:"highcharts-selection-marker",zIndex:7}).add(),L.styledMode||ce.attr({fill:P||c("#334eff").setOpacity(.25).get()})),ce&&ce.attr(B),Q&&!ce&&J&&L.pan(A,f)}}dragStart(A){let L=this.chart;L.mouseIsDown=A.type,L.cancelClick=!1,L.mouseDownX=A.chartX,L.mouseDownY=A.chartY}getSelectionBox(A){let L={args:{marker:A},result:A.getBBox()};return b(this,"getSelectionBox",L),L.result}drop(A){let L,{chart:T,selectionMarker:g}=this;for(let f of T.axes)f.isPanning&&(f.isPanning=!1,(f.options.startOnTick||f.options.endOnTick||f.series.some(j=>j.boosted))&&(f.forceRedraw=!0,f.setExtremes(f.userMin,f.userMax,!1),L=!0));if(L&&T.redraw(),g&&A){if(this.hasDragged){let f=this.getSelectionBox(g);T.transform({axes:T.axes.filter(j=>j.zoomEnabled&&(j.coll==="xAxis"&&this.zoomX||j.coll==="yAxis"&&this.zoomY)),selection:{originalEvent:A,xAxis:[],yAxis:[],...f},from:f})}x(T.index)&&(this.selectionMarker=g.destroy())}T&&x(T.index)&&(m(T.container,{cursor:T._cursor}),T.cancelClick=this.hasDragged>10,T.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[])}findNearestKDPoint(A,L,T){let g;return A.forEach(function(f){let j=!(f.noSharedTooltip&&L)&&0>f.options.findNearestPointBy.indexOf("y"),P=f.searchPoint(T,j);v(P,!0)&&P.series&&(!v(g,!0)||function(C,D){var F,q;let M=C.distX-D.distX,z=C.dist-D.dist,J=((F=D.series.group)==null?void 0:F.zIndex)-((q=C.series.group)==null?void 0:q.zIndex);return M!==0&&L?M:z!==0?z:J!==0?J:C.series.index>D.series.index?-1:1}(g,P)>0)&&(g=P)}),g}getChartCoordinatesFromPoint(A,L){let{xAxis:T,yAxis:g}=A.series,f=A.shapeArgs;if(T&&g){let j=A.clientX??A.plotX??0,P=A.plotY||0;return A.isNode&&f&&x(f.x)&&x(f.y)&&(j=f.x,P=f.y),L?{chartX:g.len+g.pos-P,chartY:T.len+T.pos-j}:{chartX:j+T.pos,chartY:P+g.pos}}if(f&&f.x&&f.y)return{chartX:f.x,chartY:f.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:A}=this.chart,L=N(A);this.chartPosition={left:L.left,top:L.top,scaleX:1,scaleY:1};let{offsetHeight:T,offsetWidth:g}=A;return g>2&&T>2&&(this.chartPosition.scaleX=L.width/g,this.chartPosition.scaleY=L.height/T),this.chartPosition}getCoordinates(A){let L={xAxis:[],yAxis:[]};for(let T of this.chart.axes)L[T.isXAxis?"xAxis":"yAxis"].push({axis:T,value:T.toValue(A[T.horiz?"chartX":"chartY"])});return L}getHoverData(A,L,T,g,f,j){let P=[],C=function(F){return F.visible&&!(!f&&F.directTouch)&&S(F.options.enableMouseTracking,!0)},D=L,M,z={chartX:j?j.chartX:void 0,chartY:j?j.chartY:void 0,shared:f};b(this,"beforeGetHoverData",z),M=D&&!D.stickyTracking?[D]:T.filter(F=>F.stickyTracking&&(z.filter||C)(F));let J=g&&A||!j?A:this.findNearestKDPoint(M,f,j);return D=J&&J.series,J&&(f&&!D.noSharedTooltip?(M=T.filter(function(F){return z.filter?z.filter(F):C(F)&&!F.noSharedTooltip})).forEach(function(F){let q=k(F.points,function(U){return U.x===J.x&&!U.isNull});v(q)&&(F.boosted&&F.boost&&(q=F.boost.getPoint(q)),P.push(q))}):P.push(J)),b(this,"afterGetHoverData",z={hoverPoint:J}),{hoverPoint:z.hoverPoint,hoverSeries:D,hoverPoints:P}}getPointFromEvent(A){let L=A.target,T;for(;L&&!T;)T=L.point,L=L.parentNode;return T}onTrackerMouseOut(A){let L=this.chart,T=A.relatedTarget,g=L.hoverSeries;this.isDirectTouch=!1,!g||!T||g.stickyTracking||this.inClass(T,"highcharts-tooltip")||this.inClass(T,"highcharts-series-"+g.index)&&this.inClass(T,"highcharts-tracker")||g.onMouseOut()}inClass(A,L){let T=A,g;for(;T;){if(g=y(T,"class")){if(g.indexOf(L)!==-1)return!0;
180if(g.indexOf("highcharts-container")!==-1)return!1}T=T.parentElement}}constructor(A,L){var T;this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=L,this.chart=A,this.runChartClick=!!((T=L.chart.events)!=null&&T.click),this.pinchDown=[],this.setDOMEvents(),b(this,"afterInit")}normalize(A,L){let T=A.touches,g=T?T.length?T.item(0):S(T.changedTouches,A.changedTouches)[0]:A;L||(L=this.getChartPosition());let f=g.pageX-L.left,j=g.pageY-L.top;return w(A,{chartX:Math.round(f/=L.scaleX),chartY:Math.round(j/=L.scaleY)})}onContainerClick(A){let L=this.chart,T=L.hoverPoint,g=this.normalize(A),f=L.plotLeft,j=L.plotTop;!L.cancelClick&&(T&&this.inClass(g.target,"highcharts-tracker")?(b(T.series,"click",w(g,{point:T})),L.hoverPoint&&T.firePointEvent("click",g)):(w(g,this.getCoordinates(g)),L.isInsidePlot(g.chartX-f,g.chartY-j,{visiblePlotOnly:!0})&&b(L,"click",g)))}onContainerMouseDown(A){var T;let L=(1&(A.buttons||A.button))==1;A=this.normalize(A),s.isFirefox&&A.button!==0&&this.onContainerMouseMove(A),(A.button===void 0||L)&&(this.zoomOption(A),L&&((T=A.preventDefault)==null||T.call(A)),this.dragStart(A))}onContainerMouseLeave(A){let{pointer:L}=d[S(V.hoverChartIndex,-1)]||{};A=this.normalize(A),this.onContainerMouseMove(A),L&&!this.inClass(A.relatedTarget,"highcharts-tooltip")&&(L.reset(),L.chartPosition=void 0)}onContainerMouseEnter(){delete this.chartPosition}onContainerMouseMove(A){let L=this.chart,T=L.tooltip,g=this.normalize(A);this.setHoverChartIndex(A),(L.mouseIsDown==="mousedown"||this.touchSelect(g))&&this.drag(g),!L.openMenu&&(this.inClass(g.target,"highcharts-tracker")||L.isInsidePlot(g.chartX-L.plotLeft,g.chartY-L.plotTop,{visiblePlotOnly:!0}))&&!(T&&T.shouldStickOnContact(g))&&(this.inClass(g.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(g))}onDocumentTouchEnd(A){this.onDocumentMouseUp(A)}onContainerTouchMove(A){this.touchSelect(A)?this.onContainerMouseMove(A):this.touch(A)}onContainerTouchStart(A){this.touchSelect(A)?this.onContainerMouseDown(A):(this.zoomOption(A),this.touch(A,!0))}onDocumentMouseMove(A){let L=this.chart,T=L.tooltip,g=this.chartPosition,f=this.normalize(A,g);!g||L.isInsidePlot(f.chartX-L.plotLeft,f.chartY-L.plotTop,{visiblePlotOnly:!0})||T&&T.shouldStickOnContact(f)||f.target!==L.container.ownerDocument&&this.inClass(f.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(A){var L,T;(T=(L=d[S(V.hoverChartIndex,-1)])==null?void 0:L.pointer)==null||T.drop(A)}pinch(A){let L=this,{chart:T,hasZoom:g,lastTouches:f}=L,j=[].map.call(A.touches||[],z=>L.normalize(z)),P=j.length,C=P===1&&(L.inClass(A.target,"highcharts-tracker")&&T.runTrackerClick||L.runChartClick),D=T.tooltip,M=P===1&&S(D==null?void 0:D.options.followTouchMove,!0);P>1?L.initiated=!0:M&&(L.initiated=!1),g&&L.initiated&&!C&&A.cancelable!==!1&&A.preventDefault(),A.type==="touchstart"?(L.pinchDown=j,L.res=!0,T.mouseDownX=A.chartX):M?this.runPointActions(L.normalize(A)):f&&(b(T,"touchpan",{originalEvent:A,touches:j},()=>{let z=J=>{let F=J[0],q=J[1]||F;return{x:F.chartX,y:F.chartY,width:q.chartX-F.chartX,height:q.chartY-F.chartY}};T.transform({axes:T.axes.filter(J=>J.zoomEnabled&&(this.zoomHor&&J.horiz||this.zoomVert&&!J.horiz)),to:z(j),from:z(f),trigger:A.type})}),L.res&&(L.res=!1,this.reset(!1,0))),L.lastTouches=j}reset(A,L){let T=this.chart,g=T.hoverSeries,f=T.hoverPoint,j=T.hoverPoints,P=T.tooltip,C=P&&P.shared?j:f;A&&C&&$(C).forEach(function(D){D.series.isCartesian&&D.plotX===void 0&&(A=!1)}),A?P&&C&&$(C).length&&(P.refresh(C),P.shared&&j?j.forEach(function(D){D.setState(D.state,!0),D.series.isCartesian&&(D.series.xAxis.crosshair&&D.series.xAxis.drawCrosshair(null,D),D.series.yAxis.crosshair&&D.series.yAxis.drawCrosshair(null,D))}):f&&(f.setState(f.state,!0),T.axes.forEach(function(D){D.crosshair&&f.series[D.coll]===D&&D.drawCrosshair(null,f)}))):(f&&f.onMouseOut(),j&&j.forEach(function(D){D.setState()}),g&&g.onMouseOut(),P&&P.hide(L),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),T.axes.forEach(function(D){D.hideCrosshair()}),T.hoverPoints=T.hoverPoint=void 0)}runPointActions(A,L,T){let g=this.chart,f=g.series,j=g.tooltip&&g.tooltip.options.enabled?g.tooltip:void 0,P=!!j&&j.shared,C=L||g.hoverPoint,D=C&&C.series||g.hoverSeries,M=(!A||A.type!=="touchmove")&&(!!L||D&&D.directTouch&&this.isDirectTouch),z=this.getHoverData(C,D,f,M,P,A);C=z.hoverPoint,D=z.hoverSeries;let J=z.hoverPoints,F=D&&D.tooltipOptions.followPointer&&!D.tooltipOptions.split,q=P&&D&&!D.noSharedTooltip;if(C&&(T||C!==g.hoverPoint||j&&j.isHidden)){if((g.hoverPoints||[]).forEac
180h(function(U){J.indexOf(U)===-1&&U.setState()}),g.hoverSeries!==D&&D.onMouseOver(),this.applyInactiveState(J),(J||[]).forEach(function(U){U.setState("hover")}),g.hoverPoint&&g.hoverPoint.firePointEvent("mouseOut"),!C.series)return;g.hoverPoints=J,g.hoverPoint=C,C.firePointEvent("mouseOver",void 0,()=>{j&&C&&j.refresh(q?J:C,A)})}else if(F&&j&&!j.isHidden){let U=j.getAnchor([{}],A);g.isInsidePlot(U[0],U[1],{visiblePlotOnly:!0})&&j.updatePosition({plotX:U[0],plotY:U[1]})}this.unDocMouseMove||(this.unDocMouseMove=p(g.container.ownerDocument,"mousemove",U=>{var Q,ce;return(ce=(Q=d[V.hoverChartIndex??-1])==null?void 0:Q.pointer)==null?void 0:ce.onDocumentMouseMove(U)}),this.eventsToUnbind.push(this.unDocMouseMove)),g.axes.forEach(function(U){let Q,ce=S((U.crosshair||{}).snap,!0);!ce||(Q=g.hoverPoint)&&Q.series[U.coll]===U||(Q=k(J,H=>H.series&&H.series[U.coll]===U)),Q||!ce?U.drawCrosshair(A,Q):U.hideCrosshair()})}setDOMEvents(){let A=this.chart.container,L=A.ownerDocument;A.onmousedown=this.onContainerMouseDown.bind(this),A.onmousemove=this.onContainerMouseMove.bind(this),A.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(p(A,"mouseenter",this.onContainerMouseEnter.bind(this)),p(A,"mouseleave",this.onContainerMouseLeave.bind(this))),V.unbindDocumentMouseUp||(V.unbindDocumentMouseUp=[]),V.unbindDocumentMouseUp.push(p(L,"mouseup",this.onDocumentMouseUp.bind(this)));let T=this.chart.renderTo.parentElement;for(;T&&T.tagName!=="BODY";)this.eventsToUnbind.push(p(T,"scroll",()=>{delete this.chartPosition})),T=T.parentElement;this.eventsToUnbind.push(p(A,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),p(A,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),V.unbindDocumentTouchEnd||(V.unbindDocumentTouchEnd=p(L,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),p(this.chart,"redraw",this.setPointerCapture.bind(this))}setPointerCapture(){var f,j;if(!h)return;let A=this.pointerCaptureEventsToUnbind,L=this.chart,T=L.container,g=S((f=L.options.tooltip)==null?void 0:f.followTouchMove,!0)&&L.series.some(P=>P.options.findNearestPointBy.indexOf("y")>-1);!this.hasPointerCapture&&g?(A.push(p(T,"pointerdown",P=>{var C,D;(C=P.target)!=null&&C.hasPointerCapture(P.pointerId)&&((D=P.target)==null||D.releasePointerCapture(P.pointerId))}),p(T,"pointermove",P=>{var C,D;(D=(C=L.pointer)==null?void 0:C.getPointFromEvent(P))==null||D.onMouseOver(P)})),L.styledMode||m(T,{"touch-action":"none"}),T.className+=" highcharts-no-touch-action",this.hasPointerCapture=!0):this.hasPointerCapture&&!g&&(A.forEach(P=>P()),A.length=0,L.styledMode||m(T,{"touch-action":S((j=L.options.chart.style)==null?void 0:j["touch-action"],"manipulation")}),T.className=T.className.replace(" highcharts-no-touch-action",""),this.hasPointerCapture=!1)}setHoverChartIndex(A){var g;let L=this.chart,T=s.charts[S(V.hoverChartIndex,-1)];if(T&&T!==L){let f={relatedTarget:L.container};A&&!(A!=null&&A.relatedTarget)&&(A={...f,...A}),(g=T.pointer)==null||g.onContainerMouseLeave(A||f)}T&&T.mouseIsDown||(V.hoverChartIndex=L.index)}touch(A,L){let T,{chart:g,pinchDown:f=[]}=this;this.setHoverChartIndex(),(A=this.normalize(A)).touches.length===1?g.isInsidePlot(A.chartX-g.plotLeft,A.chartY-g.plotTop,{visiblePlotOnly:!0})&&!g.openMenu?(L&&this.runPointActions(A),A.type==="touchmove"&&(T=!!f[0]&&Math.pow(f[0].chartX-A.chartX,2)+Math.pow(f[0].chartY-A.chartY,2)>=16),S(T,!0)&&this.pinch(A)):L&&this.reset():A.touches.length===2&&this.pinch(A)}touchSelect(A){return!!(this.chart.zooming.singleTouch&&A.touches&&A.touches.length===1)}zoomOption(A){let L=this.chart,T=L.inverted,g=L.zooming.type||"",f,j;/touch/.test(A.type)&&(g=S(L.zooming.pinchType,g)),this.zoomX=f=/x/.test(g),this.zoomY=j=/y/.test(g),this.zoomHor=f&&!T||j&&T,this.zoomVert=j&&!T||f&&T,this.hasZoom=f||j}}return(l=V||(V={})).compose=function(I){_(u,"Core.Pointer")&&p(I,"beforeRender",function(){this.pointer=new l(this,this.options)})},V}),i(n,"Core/Legend/LegendSymbol.js",[n["Core/Utilities.js"]],function(r){var s;let{extend:a,merge:l,pick:c}=r;return function(d){function u(h,p,y){var T,g;let m=this.legendItem=this.legendItem||{},{chart:w,options:k}
vendor: 1,040 bytes, line 180
180=this,{baseline:b=0,symbolWidth:x,symbolHeight:v}=h,E=this.symbol||"circle",N=v/2,S=w.renderer,_=m.group,$=b-Math.round((((T=h.fontMetrics)==null?void 0:T.b)||v)*(y?.4:.3)),V={},I,A=k.marker,L=0;if(w.styledMode||(V["stroke-width"]=Math.min(k.lineWidth||0,24),k.dashStyle?V.dashstyle=k.dashStyle:k.linecap==="square"||(V["stroke-linecap"]="round")),m.line=S.path().addClass("highcharts-graph").attr(V).add(_),y&&(m.area=S.path().addClass("highcharts-area").add(_)),V["stroke-linecap"]&&(L=Math.min(m.line.strokeWidth(),x)/2),x){let f=[["M",L,$],["L",x-L,$]];m.line.attr({d:f}),(g=m.area)==null||g.attr({d:[...f,["L",x-L,b],["L",L,b]]})}if(A&&A.enabled!==!1&&x){let f=Math.min(c(A.radius,N),N);E.indexOf("url")===0&&(A=l(A,{width:v,height:v}),f=0),m.symbol=I=S.symbol(E,x/2-f,$-f,2*f,2*f,a({context:"legend"},A)).addClass("highcharts-point").add(_),I.isMarker=!0}}d.areaMarker=function(h,p){u.call(this,h,p,!0)},d.lineMarker=u,d.rectangle=function(h,p){let y=p.legendItem||{},m=h.options,w=h.symbolHeight,k=m.squareSymbol,b=k?w:h.symbolWidth;
180y.symbol=this.chart.renderer.rect(k?(h.symbolWidth-w)/2:0,h.baseline-w+1,b,w,c(h.options.symbolRadius,w/2)).addClass("highcharts-point").attr({zIndex:3}).add(y.group)}}(s||(s={})),s}),i(n,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){let{numberFormatter:r}=this.series.chart;return typeof this.y!="number"?"":r(this.y,-1)},padding:5,style:{fontSize:"0.7em",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}}),i(n,"Core/Series/SeriesRegistry.js",[n["Core/Globals.js"],n["Core/Defaults.js"],n["Core/Series/Point.js"],n["Core/Utilities.js"]],function(r,s,a,l){var c;let{defaultOptions:d}=s,{extend:u,extendClass:h,merge:p}=l;return function(y){function m(w,k){let b=d.plotOptions||{},x=k.defaultOptions,v=k.prototype;return v.type=w,v.pointClass||(v.pointClass=a),!y.seriesTypes[w]&&(x&&(b[w]=x),y.seriesTypes[w]=k,!0)}y.seriesTypes=r.seriesTypes,y.registerSeriesType=m,y.seriesType=function(w,k,b,x,v){let E=d.plotOptions||{};if(k=k||"",E[w]=p(E[k],b),delete y.seriesTypes[w],m(w,h(y.seriesTypes[k]||function(){},x)),y.seriesTypes[w].prototype.type=w,v){class N extends a{}u(N.prototype,v),y.seriesTypes[w].prototype.pointClass=N}return y.seriesTypes[w]}}(c||(c={})),c}),i(n,"Core/Series/Series.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Defaults.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Series/Point.js"],n["Core/Series/SeriesDefaults.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],function(r,s,a,l,c,d,u,h,p,y){let{animObject:m,setAnimation:w}=r,{defaultOptions:k}=s,{registerEventOptions:b}=a,{svg:x,win:v}=l,{seriesTypes:E}=h,{arrayMax:N,arrayMin:S,clamp:_,correctFloat:$,crisp:V,defined:I,destroyObjectProperties:A,diffObjects:L,erase:T,error:g,extend:f,find:j,fireEvent:P,getClosestDistance:C,getNestedProperty:D,insertItem:M,isArray:z,isNumber:J,isString:F,merge:q,objectEach:U,pick:Q,removeEvent:ce,splat:H,syncTimeout:B}=y;class K{constructor(){this.zoneAxis="y"}init(R,G){let W;P(this,"init",{options:G});let Y=this,X=R.series;this.eventsToUnbind=[],Y.chart=R,Y.options=Y.setOptions(G);let re=Y.options,ee=re.visible!==!1;Y.linkedSeries=[],Y.bindAxes(),f(Y,{name:re.name,state:"",visible:ee,selected:re.selected===!0}),b(this,re);let se=re.events;(se&&se.click||re.point&&re.point.events&&re.point.events.click||re.allowPointSelect)&&(R.runTrackerClick=!0),Y.getColor(),Y.getSymbol(),Y.parallelArrays.forEach(function(oe){Y[oe+"Data"]||(Y[oe+"Data"]=[])}),Y.isCartesian&&(R.hasCartesianSeries=!0),X.length&&(W=X[X.length-1]),Y._i=Q(W&&W._i,-1)+1,Y.opacity=Y.options.opacity,R.orderItems("series",M(this,X)),re.dataSorting&&re.dataSorting.enabled?Y.setDataSortingOptions():Y.points||Y.data||Y.setData(re.data,!1),P(this,"afterInit")}is(R){return E[R]&&this instanceof E[R]}bindAxes(){let R,G=this,W=G.options,Y=G.chart;P(this,"bindAxes",null,function(){(G.axisTypes||[]).forEach(function(X){(Y[X]||[]).forEach(function(re){R=re.options,(Q(W[X],0)===re.index||W[X]!==void 0&&W[X]===R.id)&&(M(G,re.series),G[X]=re,re.isDirty=!0)}),G[X]||G.optionalAxis===X||g(18,!0,Y)})}),P(this,"afterBindAxes")}updateParallelArrays(R,G,W){let Y=R.series,X=J(G)?function(re){let ee=re==="y"&&Y.toYData?Y.toYData(R):R[re];Y[re+"Data"][G]=ee}:function(re){Array.prototype[G].apply(Y[re+"Data"],W)};Y.parallelArrays.forEach(X)}hasData(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.yData&&this.yData.length>0}hasMarkerChanged(R,G){let W=R.marker,Y=G.marker||{};return W&&(Y.enabled&&!W.enabled||Y.symbol!==W.symbol||Y.height!==W.height||Y.width!==W.width)}autoIncrement(R){let G=this.options,W=G.pointIntervalUnit,Y=G.relativeXValue,X=this.chart.time,re=this.xIncrement,ee,se;return re=Q(re,G.pointStart,0),this.pointInterval=se=Q(this.pointInterval,G.pointInterval,1),Y&&J(R)&&(se*=R),W&&(ee=new X.Date(re),W==="day"?X.set("Date",ee,X.get("Date",ee)+se):W==="month"?X.set("Month",ee,X.get("Month",ee)+se):W==="year"&&X.set("FullYear",ee,X.get("FullYear",ee)+se),se=ee.getTime()-re),Y&&J(R)?re+se:(this.xIncrement=re+se,re)}setDataSortingOptions(){let R=this.options;f(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),I(R.pointRange)||(R.pointRange=1)}setOptions(R){var de,ue;let G,W=this.chart,Y=W.options.plotOptions,X=W.userOptions||{},re=q(R),ee=W.styledMode,se={plotOptions:Y,userOptions:re};P(this,"setOptions",se);let oe=se.plotOptions[this.type],he=X.plotOptions||{},pe=he.series||{},ne=k.plotOptions[this.type]||{},te=he[this.type]||{};this.userOptions=se.userOptions;let ae=q(oe,Y.series,te,re);this.tooltipOptions=q(k.tooltip,(de=k.plotOptions.series)==null?void 0:de.tooltip,ne==null?void 0:ne.tooltip,W.userOptions.tooltip,(ue=he.series)==null?void 0:ue.tooltip,te.tooltip,re.tooltip),this.stickyTracking=Q(re.stickyTracking,te.stickyTracking,pe.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||ae.stickyTracking),oe.marker===null&&delete ae.marker,this.zoneAxis=ae.zoneAxis||"y";let le=this.zones=(ae.zones||[]).map(me=>({...me}));
180return(ae.negativeColor||ae.negativeFillColor)&&!ae.zones&&(G={value:ae[this.zoneAxis+"Threshold"]||ae.threshold||0,className:"highcharts-negative"},ee||(G.color=ae.negativeColor,G.fillColor=ae.negativeFillColor),le.push(G)),le.length&&I(le[le.length-1].value)&&le.push(ee?{}:{color:this.color,fillColor:this.fillColor}),P(this,"afterSetOptions",{options:ae}),ae}getName(){return Q(this.options.name,"Series "+(this.index+1))}getCyclic(R,G,W){let Y,X,re=this.chart,ee=`${R}Index`,se=`${R}Counter`,oe=(W==null?void 0:W.length)||re.options.chart.colorCount;!G&&(I(X=Q(R==="color"?this.options.colorIndex:void 0,this[ee]))?Y=X:(re.series.length||(re[se]=0),Y=re[se]%oe,re[se]+=1),W&&(G=W[Y])),Y!==void 0&&(this[ee]=Y),this[R]=G}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||k.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){let R=this.options.marker;this.getCyclic("symbol",R.symbol,this.chart.options.symbols)}findPointIndex(R,G){let W,Y,X,re=R.id,ee=R.x,se=this.points,oe=this.options.dataSorting;if(re){let he=this.chart.get(re);he instanceof d&&(W=he)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let he=pe=>!pe.touched&&pe.index===R.index;if(oe&&oe.matchByName?he=pe=>!pe.touched&&pe.name===R.name:this.options.relativeXValue&&(he=pe=>!pe.touched&&pe.options.x===R.x),!(W=j(se,he)))return}return W&&(X=W&&W.index)!==void 0&&(Y=!0),X===void 0&&J(ee)&&(X=this.xData.indexOf(ee,G)),X!==-1&&X!==void 0&&this.cropped&&(X=X>=this.cropStart?X-this.cropStart:X),!Y&&J(X)&&se[X]&&se[X].touched&&(X=void 0),X}updateData(R,G){let W=this.options,Y=W.dataSorting,X=this.points,re=[],ee=this.requireSorting,se=R.length===X.length,oe,he,pe,ne,te=!0;if(this.xIncrement=null,R.forEach(function(ae,le){let de,ue=I(ae)&&this.pointClass.prototype.optionsToObject.call({series:this},ae)||{},me=ue.x;ue.id||J(me)?((de=this.findPointIndex(ue,ne))===-1||de===void 0?re.push(ae):X[de]&&ae!==W.data[de]?(X[de].update(ae,!1,null,!1),X[de].touched=!0,ee&&(ne=de+1)):X[de]&&(X[de].touched=!0),(!se||le!==de||Y&&Y.enabled||this.hasDerivedData)&&(oe=!0)):re.push(ae)},this),oe)for(he=X.length;he--;)(pe=X[he])&&!pe.touched&&pe.remove&&pe.remove(!1,G);else!se||Y&&Y.enabled?te=!1:(R.forEach(function(ae,le){ae===X[le].y||X[le].destroyed||X[le].update(ae,!1,null,!1)}),re.length=0);return X.forEach(function(ae){ae&&(ae.touched=!1)}),!!te&&(re.forEach(function(ae){this.addPoint(ae,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=N(this.xData),this.autoIncrement()),!0)}setData(R,G=!0,W,Y){var Ne;let X=this,re=X.points,ee=re&&re.length||0,se=X.options,oe=X.chart,he=se.dataSorting,pe=X.xAxis,ne=se.turboThreshold,te=this.xData,ae=this.yData,le=X.pointArrayMap,de=le&&le.length,ue=se.keys,me,ge,be,ve=0,we=1,Ce;oe.options.chart.allowMutatingData||(se.data&&delete X.options.data,X.userOptions.data&&delete X.userOptions.data,Ce=q(!0,R));let Pe=(R=Ce||R||[]).length;if(he&&he.enabled&&(R=this.sortData(R)),oe.options.chart.allowMutatingData&&Y!==!1&&Pe&&ee&&!X.cropped&&!X.hasGroupedData&&X.visible&&!X.boosted&&(be=this.updateData(R,W)),!be){X.xIncrement=null,X.colorCounter=0,this.parallelArrays.forEach(function(Te){X[Te+"Data"].length=0});let Ee=ne&&Pe>ne;if(Ee){let Te=X.getFirstValidPoint(R),Fe=X.getFirstValidPoint(R,Pe-1,-1),Le=Ue=>!!(z(Ue)&&(ue||J(Ue[0])));if(J(Te)&&J(Fe))for(me=0;me<Pe;me++)te[me]=this.autoIncrement(),ae[me]=R[me];else if(Le(Te)&&Le(Fe))if(de)if(Te.length===de)for(me=0;me<Pe;me++)te[me]=this.autoIncrement(),ae[me]=R[me];else for(me=0;me<Pe;me++)ge=R[me],te[me]=ge[0],ae[me]=ge.slice(1,de+1);else if(ue&&(ve=ue.indexOf("x"),we=ue.indexOf("y"),ve=ve>=0?ve:0,we=we>=0?we:1),Te.length===1&&(we=0),ve===we)for(me=0;me<Pe;me++)te[me]=this.autoIncrement(),ae[me]=R[me][we];else for(me=0;me<Pe;me++)ge=R[me],te[me]=ge[ve],ae[me]=ge[we];else Ee=!1}if(!Ee)for(me=0;me<Pe;me++)ge={series:X},X.pointClass.prototype.applyOptions.apply(ge,[R[me]]),X.updateParallelArrays(ge,me);for(ae&&F(ae[0])&&g(14,!0,oe),X.data=[],X.options.data=X.userOptions.data=R,me=ee;me--;)(Ne=re[me])==null||Ne.destroy();
180pe&&(pe.minRange=pe.userMinRange),X.isDirty=oe.isDirtyBox=!0,X.isDirtyData=!!re,W=!1}se.legendType==="point"&&(this.processData(),this.generatePoints()),G&&oe.redraw(W)}sortData(R){let G=this,W=G.options.dataSorting.sortKey||"y",Y=function(X,re){return I(re)&&X.pointClass.prototype.optionsToObject.call({series:X},re)||{}};return R.forEach(function(X,re){R[re]=Y(G,X),R[re].index=re},this),R.concat().sort((X,re)=>{let ee=D(W,X),se=D(W,re);return se<ee?-1:se>ee?1:0}).forEach(function(X,re){X.x=re},this),G.linkedSeries&&G.linkedSeries.forEach(function(X){let re=X.options,ee=re.data;re.dataSorting&&re.dataSorting.enabled||!ee||(ee.forEach(function(se,oe){ee[oe]=Y(X,se),R[oe]&&(ee[oe].x=R[oe].x,ee[oe].index=oe)}),X.setData(ee,!1))}),R}getProcessedData(R){let G=this,W=G.xAxis,Y=G.options.cropThreshold,X=W==null?void 0:W.logarithmic,re=G.isCartesian,ee,se,oe=0,he,pe,ne,te=G.xData,ae=G.yData,le=!1,de=te.length;W&&(pe=(he=W.getExtremes()).min,ne=he.max,le=!!(W.categories&&!W.names.length)),re&&G.sorted&&!R&&(!Y||de>Y||G.forceCrop)&&(te[de-1]<pe||te[0]>ne?(te=[],ae=[]):G.yData&&(te[0]<pe||te[de-1]>ne)&&(te=(ee=this.cropData(G.xData,G.yData,pe,ne)).xData,ae=ee.yData,oe=ee.start,se=!0));let ue=C([X?te.map(X.log2lin):te],()=>G.requireSorting&&!le&&g(15,!1,G.chart));return{xData:te,yData:ae,cropped:se,cropStart:oe,closestPointRange:ue}}processData(R){let G=this.xAxis;if(this.isCartesian&&!this.isDirty&&!G.isDirty&&!this.yAxis.isDirty&&!R)return!1;let W=this.getProcessedData();this.cropped=W.cropped,this.cropStart=W.cropStart,this.processedXData=W.xData,this.processedYData=W.yData,this.closestPointRange=this.basePointRange=W.closestPointRange,P(this,"afterProcessData")}cropData(R,G,W,Y){let X=R.length,re,ee,se=0,oe=X;for(re=0;re<X;re++)if(R[re]>=W){se=Math.max(0,re-1);break}for(ee=re;ee<X;ee++)if(R[ee]>Y){oe=ee+1;break}return{xData:R.slice(se,oe),yData:G.slice(se,oe),start:se,end:oe}}generatePoints(){let R=this.options,G=this.processedData||R.data,W=this.processedXData,Y=this.processedYData,X=this.pointClass,re=W.length,ee=this.cropStart||0,se=this.hasGroupedData,oe=R.keys,he=[],pe=R.dataGrouping&&R.dataGrouping.groupAll?ee:0,ne,te,ae,le,de=this.data;if(!de&&!se){let ue=[];ue.length=G.length,de=this.data=ue}for(oe&&se&&(this.options.keys=!1),le=0;le<re;le++)te=ee+le,se?((ae=new X(this,[W[le]].concat(H(Y[le])))).dataGroup=this.groupMap[pe+le],ae.dataGroup.options&&(ae.options=ae.dataGroup.options,f(ae,ae.dataGroup.options),delete ae.dataLabels)):(ae=de[te])||G[te]===void 0||(de[te]=ae=new X(this,G[te],W[le])),ae&&(ae.index=se?pe+le:te,he[le]=ae);if(this.options.keys=oe,de&&(re!==(ne=de.length)||se))for(le=0;le<ne;le++)le!==ee||se||(le+=re),de[le]&&(de[le].destroyElements(),de[le].plotX=void 0);this.data=de,this.points=he,P(this,"afterGeneratePoints")}getXExtremes(R){return{min:S(R),max:N(R)}}getExtremes(R,G){let W=this.xAxis,Y=this.yAxis,X=[],re=this.requireSorting&&!this.is("column")?1:0,ee=!!Y&&Y.positiveValuesOnly,se=G||this.getExtremesFromAll||this.options.getExtremesFromAll,{processedXData:oe,processedYData:he}=this,pe,ne,te,ae,le,de,ue,me=0,ge=0,be=0;if(this.cropped&&se){let Pe=this.getProcessedData(!0);oe=Pe.xData,he=Pe.yData}let ve=(R=R||this.stackedYData||he||[]).length,we=oe||this.xData;for(W&&(me=(pe=W.getExtremes()).min,ge=pe.max),de=0;de<ve;de++)if(ae=we[de],ne=(J(le=R[de])||z(le))&&((J(le)?le>0:le.length)||!ee),te=G||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!W||(we[de+re]||ae)>=me&&(we[de-re]||ae)<=ge,ne&&te)if(ue=le.length)for(;ue--;)J(le[ue])&&(X[be++]=le[ue]);else X[be++]=le;let Ce={activeYData:X,dataMin:S(X),dataMax:N(X)};return P(this,"afterGetExtremes",{dataExtremes:Ce}),Ce}applyExtremes(){let R=this.getExtremes();return this.dataMin=R.dataMin,this.dataMax=R.dataMax,R}getFirstValidPoint(R,G=0,W=1){let Y=R.length,X=G;for(;X>=0&&X<Y;){if(I(R[X]))return R[X];X+=W}}translate(){var ge;this.processedXData||this.processData(),this.generatePoints();let R=this.options,G=R.stacking,W=this.xAxis,Y=W.categories,X=this.enabledDataSorting,re=this.yAxis,ee=this.points,se=ee.length,oe=this.pointPlacementToXValue(),he=!!oe,pe=R.threshold,ne=R.startFromThreshold?pe:0,te,ae,le,de,ue=Number.MAX_VALUE;function me(be){return _(be,-1e9,1e9)}for(te=0;te<se;te++){let be,ve=ee[te],we=ve.x,Ce,Pe,Ne=ve.y,Ee=ve.low,Te=G&&((ge=re.stacking)==null?void 0:ge.stacks[(this.negStacks&&Ne<(ne?0:pe)?"-":"")+this.stackKey]);ae=W.translate(we,!1,!1,!1,!0,oe),ve.plotX=J(ae)?$(me(ae)):void 0,G&&this.visible&&Te&&Te[we]&&(de=this.getStackIndicator(de,we,this.index),!ve.isNull&&de.key&&(Pe=(Ce=Te[we]).points[de.key]),Ce&&z(Pe)&&(Ee=Pe[0],Ne=Pe[1],Ee===ne&&de.key===Te[we].base&&(Ee=Q(J(pe)?pe:re.min)),re.positiveValuesOnly&&I(Ee)&&Ee<=0&&(Ee=void 0),ve.total=ve.stackTotal=Q(Ce.total),ve.percentage=I(ve.y)&&Ce.total?ve.y/Ce.total*100:void 0,ve.stackY=Ne,this.irregularWidths||Ce.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),ve.yBottom=I(Ee)?me(re.translate(Ee,!1,!0,!1,!0)):void 0,this.dataModify&&(Ne=this.dataModify.modifyValue(Ne,te)),J(Ne)&&ve.plotX!==void 0&&(be=J(be=re.translate(Ne,!1,!0,!1,!0))?me(be):void 0),ve.plotY=be,ve.isInside=this.isPointInside(ve),ve.clientX=he?$(W.translate(we,!1,!1,!1,!0,oe)):ae,ve.negative=(ve.y||0)<(pe||0),ve.category=Q(Y&&Y[ve.x],ve.x),ve.isNull||ve.visible===!1||(le!==void 0&&(ue=Math.min(ue,Math.abs(ae-le))),le=ae),ve.zone=this.zones.length?ve.getZone():void 0,!ve.graphic&&this.group&&X&&(ve.isNew=!0)}this.closestPointRangePx=ue,P(this,"afterTranslate")}getValidPoints(R,G,W){let Y=this.chart;return(R||this.points||[]).filter(function(X){let{plotX:re,plotY:ee}=X;return!!((W||!X.isNull&&J(ee))&&(!G||Y.isInsidePlot(re,ee,{inverted:Y.inverted})))&&X.visible!==!1})}getClipBox(){let{chart:R,xAxis:G,yAxis:W}
180=this,{x:Y,y:X,width:re,height:ee}=q(R.clipBox);return G&&G.len!==R.plotSizeX&&(re=G.len),W&&W.len!==R.plotSizeY&&(ee=W.len),R.inverted&&!this.invertible&&([re,ee]=[ee,re]),{x:Y,y:X,width:re,height:ee}}getSharedClipKey(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey}setClip(){let{chart:R,group:G,markerGroup:W}=this,Y=R.sharedClips,X=R.renderer,re=this.getClipBox(),ee=this.getSharedClipKey(),se=Y[ee];se?se.animate(re):Y[ee]=se=X.clipRect(re),G&&G.clip(this.options.clip===!1?void 0:se),W&&W.clip()}animate(R){let{chart:G,group:W,markerGroup:Y}=this,X=G.inverted,re=m(this.options.animation),ee=[this.getSharedClipKey(),re.duration,re.easing,re.defer].join(","),se=G.sharedClips[ee],oe=G.sharedClips[ee+"m"];if(R&&W){let he=this.getClipBox();if(se)se.attr("height",he.height);else{he.width=0,X&&(he.x=G.plotHeight),se=G.renderer.clipRect(he),G.sharedClips[ee]=se;let pe={x:-99,y:-99,width:X?G.plotWidth+199:99,height:X?99:G.plotHeight+199};oe=G.renderer.clipRect(pe),G.sharedClips[ee+"m"]=oe}W.clip(se),Y==null||Y.clip(oe)}else if(se&&!se.hasClass("highcharts-animating")){let he=this.getClipBox(),pe=re.step;(Y!=null&&Y.element.childNodes.length||G.series.length>1)&&(re.step=function(ne,te){pe&&pe.apply(te,arguments),te.prop==="width"&&(oe!=null&&oe.element)&&oe.attr(X?"height":"width",ne+99)}),se.addClass("highcharts-animating").animate(he,re)}}afterAnimate(){this.setClip(),U(this.chart.sharedClips,(R,G,W)=>{R&&!this.chart.container.querySelector(`[clip-path="url(#${R.id})"]`)&&(R.destroy(),delete W[G])}),this.finishedAnimating=!0,P(this,"afterAnimate")}drawPoints(R=this.points){let G,W,Y,X,re,ee,se,oe=this.chart,he=oe.styledMode,{colorAxis:pe,options:ne}=this,te=ne.marker,ae=this[this.specialGroup||"markerGroup"],le=this.xAxis,de=Q(te.enabled,!le||!!le.isRadial||null,this.closestPointRangePx>=te.enabledThreshold*te.radius);if(te.enabled!==!1||this._hasPointMarkers)for(G=0;G<R.length;G++)if(X=(Y=(W=R[G]).graphic)?"animate":"attr",re=W.marker||{},ee=!!W.marker,(de&&re.enabled===void 0||re.enabled)&&!W.isNull&&W.visible!==!1){let ue=Q(re.symbol,this.symbol,"rect");se=this.markerAttribs(W,W.selected&&"select"),this.enabledDataSorting&&(W.startXPos=le.reversed?-(se.width||0):le.width);let me=W.isInside!==!1;if(!Y&&me&&((se.width||0)>0||W.hasImage)&&(W.graphic=Y=oe.renderer.symbol(ue,se.x,se.y,se.width,se.height,ee?re:te).add(ae),this.enabledDataSorting&&oe.hasRendered&&(Y.attr({x:W.startXPos}),X="animate")),Y&&X==="animate"&&Y[me?"show":"hide"](me).animate(se),Y){let ge=this.pointAttribs(W,he||!W.selected?void 0:"select");he?pe&&Y.css({fill:ge.fill}):Y[X](ge)}Y&&Y.addClass(W.getClassName(),!0)}else Y&&(W.graphic=Y.destroy())}markerAttribs(R,G){let W=this.options,Y=W.marker,X=R.marker||{},re=X.symbol||Y.symbol,ee={},se,oe,he=Q(X.radius,Y&&Y.radius);G&&(se=Y.states[G],he=Q((oe=X.states&&X.states[G])&&oe.radius,se&&se.radius,he&&he+(se&&se.radiusPlus||0))),R.hasImage=re&&re.indexOf("url")===0,R.hasImage&&(he=0);let pe=R.pos();return J(he)&&pe&&(W.crisp&&(pe[0]=V(pe[0],R.hasImage?0:re==="rect"?(Y==null?void 0:Y.lineWidth)||0:1)),ee.x=pe[0]-he,ee.y=pe[1]-he),he&&(ee.width=ee.height=2*he),ee}pointAttribs(R,G){let W=this.options.marker,Y=R&&R.options,X=Y&&Y.marker||{},re=Y&&Y.color,ee=R&&R.color,se=R&&R.zone&&R.zone.color,oe,he,pe=this.color,ne,te,ae=Q(X.lineWidth,W.lineWidth),le=1;return pe=re||se||ee||pe,ne=X.fillColor||W.fillColor||pe,te=X.lineColor||W.lineColor||pe,G=G||"normal",oe=W.states[G]||{},ae=Q((he=X.states&&X.states[G]||{}).lineWidth,oe.lineWidth,ae+Q(he.lineWidthPlus,oe.lineWidthPlus,0)),ne=he.fillColor||oe.fillColor||ne,{stroke:te=he.lineColor||oe.lineColor||te,"stroke-width":ae,fill:ne,opacity:le=Q(he.opacity,oe.opacity,le)}}destroy(R){let G,W,Y,X=this,re=X.chart,ee=/AppleWebKit\/533/.test(v.navigator.userAgent),se=X.data||[];for(P(X,"destroy",{keepEventsForUpdate:R}),this.removeEvents(R),(X.axisTypes||[]).forEach(function(oe){(Y=X[oe])&&Y.series&&(T(Y.series,X),Y.isDirty=Y.forceRedraw=!0)}),X.legendItem&&X.chart.legend.destroyItem(X),G=se.length;G--;)(W=se[G])&&W.destroy&&W.destroy();for(let oe of X.zones)A(oe,void 0,!0);y.clearTimeout(X.animationTimeout),U(X,function(oe,he){oe instanceof p&&!oe.survive&&oe[ee&&he==="group"?"hide":"destroy"]()}),re.hoverSeries===X&&(re.hoverSeries=void 0),T(re.series,X),re.orderItems("series"),U(X,function(oe,he){R&&he==="hcEvents"||delete X[he]})}applyZones(){let{area:R,chart:G,graph:W,zones:Y,points:X,xAxis:re,yAxis:ee,zoneAxis:se}=this,{inverted:oe,renderer:he}=G,pe=this[`${se}Axis`],{isXAxis:ne,len:te=0}=pe||{},ae=((W==null?void 0:W.strokeWidth())||0)/2+1,le=(de,ue=0,me=0)=>{oe&&(me=te-me);let{translated:ge=0,lineClip:be}=de,ve=me-ge;be==null||be.push(["L",ue,Math.abs(ve)<ae?me-ae*(ve<=0?-1:1):ge])};if(Y.length&&(W||R)&&pe&&J(pe.min)){let de=pe.getExtremes().max,ue=be=>{be.forEach((ve,we)=>{(ve[0]==="M"||ve[0]==="L")&&(be[we]=[ve[0],ne?te-ve[1]:ve[1],ne?ve[2]:te-ve[2]])})};if(Y.forEach(be=>
180{be.lineClip=[],be.translated=_(pe.toPixels(Q(be.value,de),!0)||0,0,te)}),W&&!this.showLine&&W.hide(),R&&R.hide(),se==="y"&&X.length<re.len)for(let be of X){let{plotX:ve,plotY:we,zone:Ce}=be,Pe=Ce&&Y[Y.indexOf(Ce)-1];Ce&&le(Ce,ve,we),Pe&&le(Pe,ve,we)}let me=[],ge=pe.toPixels(pe.getExtremes().min,!0);Y.forEach(be=>{var rt,tt;let ve=be.lineClip||[],we=Math.round(be.translated||0);re.reversed&&ve.reverse();let{clip:Ce,simpleClip:Pe}=be,Ne=0,Ee=0,Te=re.len,Fe=ee.len;ne?(Ne=we,Te=ge):(Ee=we,Fe=ge);let Le=[["M",Ne,Ee],["L",Te,Ee],["L",Te,Fe],["L",Ne,Fe],["Z"]],Ue=[Le[0],...ve,Le[1],Le[2],...me,Le[3],Le[4]];me=ve.reverse(),ge=we,oe&&(ue(Ue),R&&ue(Le)),Ce?(Ce.animate({d:Ue}),Pe==null||Pe.animate({d:Le})):(Ce=be.clip=he.path(Ue),R&&(Pe=be.simpleClip=he.path(Le))),W&&((rt=be.graph)==null||rt.clip(Ce)),R&&((tt=be.area)==null||tt.clip(Pe))})}else this.visible&&(W&&W.show(),R&&R.show())}plotGroup(R,G,W,Y,X){let re=this[R],ee=!re,se={visibility:W,zIndex:Y||.1};return I(this.opacity)&&!this.chart.styledMode&&this.state!=="inactive"&&(se.opacity=this.opacity),re||(this[R]=re=this.chart.renderer.g().add(X)),re.addClass("highcharts-"+G+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(I(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(re.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),re.attr(se)[ee?"attr":"animate"](this.getPlotBox(G)),re}getPlotBox(R){let G=this.xAxis,W=this.yAxis,Y=this.chart,X=Y.inverted&&!Y.polar&&G&&this.invertible&&R==="series";return Y.inverted&&(G=W,W=this.xAxis),{translateX:G?G.left:Y.plotLeft,translateY:W?W.top:Y.plotTop,rotation:X?90:0,rotationOriginX:X?(G.len-W.len)/2:0,rotationOriginY:X?(G.len+W.len)/2:0,scaleX:X?-1:1,scaleY:1}}removeEvents(R){let{eventsToUnbind:G}=this;R||ce(this),G.length&&(G.forEach(W=>{W()}),G.length=0)}render(){var he,pe,ne,te,ae;let R=this,{chart:G,options:W,hasRendered:Y}=R,X=m(W.animation),re=R.visible?"inherit":"hidden",ee=W.zIndex,se=G.seriesGroup,oe=R.finishedAnimating?0:X.duration;P(this,"render"),R.plotGroup("group","series",re,ee,se),R.markerGroup=R.plotGroup("markerGroup","markers",re,ee,se),W.clip!==!1&&R.setClip(),oe&&((he=R.animate)==null||he.call(R,!0)),R.drawGraph&&(R.drawGraph(),R.applyZones()),R.visible&&R.drawPoints(),(pe=R.drawDataLabels)==null||pe.call(R),(ne=R.redrawPoints)==null||ne.call(R),W.enableMouseTracking&&((te=R.drawTracker)==null||te.call(R)),oe&&((ae=R.animate)==null||ae.call(R)),Y||(oe&&X.defer&&(oe+=X.defer),R.animationTimeout=B(()=>{R.afterAnimate()},oe||0)),R.isDirty=!1,R.hasRendered=!0,P(R,"afterRender")}redraw(){let R=this.isDirty||this.isDirtyData;this.translate(),this.render(),R&&delete this.kdTree}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(R,G){let{xAxis:W,yAxis:Y}=this,X=this.chart.inverted;return this.searchKDTree({clientX:X?W.len-R.chartY+W.pos:R.chartX-W.pos,plotY:X?Y.len-R.chartX+Y.pos:R.chartY-Y.pos},G,R)}buildKDTree(R){this.buildingKdTree=!0;let G=this,W=G.options.findNearestPointBy.indexOf("y")>-1?2:1;delete G.kdTree,B(function(){G.kdTree=function Y(X,re,ee){let se,oe,he=X==null?void 0:X.length;if(he)return se=G.kdAxisArray[re%ee],X.sort((pe,ne)=>(pe[se]||0)-(ne[se]||0)),{point:X[oe=Math.floor(he/2)],left:Y(X.slice(0,oe),re+1,ee),right:Y(X.slice(oe+1),re+1,ee)}}(G.getValidPoints(void 0,!G.directTouch),W,W),G.buildingKdTree=!1},G.options.kdNow||(R==null?void 0:R.type)==="touchstart"?0:1)}searchKDTree(R,G,W){let Y=this,[X,re]=this.kdAxisArray,ee=G?"distX":"dist",se=(Y.options.findNearestPointBy||"").indexOf("y")>-1?2:1,oe=!!Y.isBubble;if(this.kdTree||this.buildingKdTree||this.buildKDTree(W),this.kdTree)return function he(pe,ne,te,ae){var Ce;let le=ne.point,de=Y.kdAxisArray[te%ae],ue,me,ge=le;(function(Pe,Ne){var At;let Ee=Pe[X],Te=Ne[X],Fe=I(Ee)&&I(Te)?Ee-Te:null,Le=Pe[re],Ue=Ne[re],rt=I(Le)&&I(Ue)?Le-Ue:0,tt=oe&&((At=Ne.marker)==null?void 0:At.radius)||0;Ne.dist=Math.sqrt((Fe&&Fe*Fe||0)+rt*rt)-tt,Ne.distX=I(Fe)?Math.abs(Fe)-tt:Number.MAX_VALUE})(pe,le);let be=(pe[de]||0)-(le[de]||0)+(oe&&((Ce=le.marker)==null?void 0:Ce.radius)||0),ve=be<0?"left":"right",we=be<0?"right":"left";return ne[ve]&&(ge=(ue=he(pe,ne[ve],te+1,ae))[ee]<ge[ee]?ue:le),ne[we]&&Math.sqrt(be*be)<ge[ee]&&(ge=(me=he(pe,ne[we],te+1,ae))[ee]<ge[ee]?me:ge),ge}(R,this.kdTree,se,se)}pointPlacementToXValue(){let{options:R,xAxis:G}=this,W=R.pointPlacement;return W==="between"&&(W=G.reversed?-.5:.5),J(W)?W*(R.pointRange||G.pointRange):0}isPointInside(R){let{chart:G,xAxis:W,yAxis:Y}=this,{plotX:X=-1,plotY:re=-1}=R;return re>=0&&re<=(Y?Y.len:G.plotHeight)&&X>=0&&X<=(W?W.len:G.plotWidth)}drawTracker(){var ne;let R=this,G=R.options,W=G.trackByArea,Y=[].concat((W?R.areaPath:R.graphPath)||[]),X=R.chart,re=X.pointer,ee=X.renderer,se=((ne=X.options.tooltip)==null?void 0:ne.snap)||0,oe=()=>{G.enableMouseTracking&&X.hoverSeries!==R&&R.onMouseOver()}
180,he="rgba(192,192,192,"+(x?1e-4:.002)+")",pe=R.tracker;pe?pe.attr({d:Y}):R.graph&&(R.tracker=pe=ee.path(Y).attr({visibility:R.visible?"inherit":"hidden",zIndex:2}).addClass(W?"highcharts-tracker-area":"highcharts-tracker-line").add(R.group),X.styledMode||pe.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:he,fill:W?he:"none","stroke-width":R.graph.strokeWidth()+(W?0:2*se)}),[R.tracker,R.markerGroup,R.dataLabelsGroup].forEach(te=>{te&&(te.addClass("highcharts-tracker").on("mouseover",oe).on("mouseout",ae=>{re==null||re.onTrackerMouseOut(ae)}),G.cursor&&!X.styledMode&&te.css({cursor:G.cursor}),te.on("touchstart",oe))})),P(this,"afterDrawTracker")}addPoint(R,G,W,Y,X){let re,ee,se=this.options,oe=this.data,he=this.chart,pe=this.xAxis,ne=pe&&pe.hasNames&&pe.names,te=se.data,ae=this.xData;G=Q(G,!0);let le={series:this};this.pointClass.prototype.applyOptions.apply(le,[R]);let de=le.x;if(ee=ae.length,this.requireSorting&&de<ae[ee-1])for(re=!0;ee&&ae[ee-1]>de;)ee--;this.updateParallelArrays(le,"splice",[ee,0,0]),this.updateParallelArrays(le,ee),ne&&le.name&&(ne[de]=le.name),te.splice(ee,0,R),(re||this.processedData)&&(this.data.splice(ee,0,null),this.processData()),se.legendType==="point"&&this.generatePoints(),W&&(oe[0]&&oe[0].remove?oe[0].remove(!1):(oe.shift(),this.updateParallelArrays(le,"shift"),te.shift())),X!==!1&&P(this,"addPoint",{point:le}),this.isDirty=!0,this.isDirtyData=!0,G&&he.redraw(Y)}removePoint(R,G,W){let Y=this,X=Y.data,re=X[R],ee=Y.points,se=Y.chart,oe=function(){ee&&ee.length===X.length&&ee.splice(R,1),X.splice(R,1),Y.options.data.splice(R,1),Y.updateParallelArrays(re||{series:Y},"splice",[R,1]),re&&re.destroy(),Y.isDirty=!0,Y.isDirtyData=!0,G&&se.redraw()};w(W,se),G=Q(G,!0),re?re.firePointEvent("remove",null,oe):oe()}remove(R,G,W,Y){let X=this,re=X.chart;function ee(){X.destroy(Y),re.isDirtyLegend=re.isDirtyBox=!0,re.linkSeries(Y),Q(R,!0)&&re.redraw(G)}W!==!1?P(X,"remove",null,ee):ee()}update(R,G){var ue,me,ge;P(this,"update",{options:R=L(R,this.userOptions)});let W=this,Y=W.chart,X=W.userOptions,re=W.initialType||W.type,ee=Y.options.plotOptions,se=E[re].prototype,oe=W.finishedAnimating&&{animation:!1},he={},pe,ne,te=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],ae=R.type||X.type||Y.options.chart.type,le=!(this.hasDerivedData||ae&&ae!==this.type||R.pointStart!==void 0||R.pointInterval!==void 0||R.relativeXValue!==void 0||R.joinBy||R.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some(be=>W.hasOptionChanged(be)));ae=ae||re,le&&(te.push("data","isDirtyData","isDirtyCanvas","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"),R.visible!==!1&&te.push("area","graph"),W.parallelArrays.forEach(function(be){te.push(be+"Data")}),R.data&&(R.dataSorting&&f(W.options.dataSorting,R.dataSorting),this.setData(R.data,!1))),R=q(X,{index:X.index===void 0?W.index:X.index,pointStart:((ue=ee==null?void 0:ee.series)==null?void 0:ue.pointStart)??X.pointStart??((me=W.xData)==null?void 0:me[0])},!le&&{data:W.options.data},R,oe),le&&R.data&&(R.data=W.options.data),(te=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(te)).forEach(function(be){te[be]=W[be],delete W[be]});let de=!1;if(E[ae]){if(de=ae!==W.type,W.remove(!1,!1,!1,!0),de)if(Y.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(W,E[ae].prototype);else{let be=Object.hasOwnProperty.call(W,"hcEvents")&&W.hcEvents;for(ne in se)W[ne]=void 0;f(W,E[ae].prototype),be?W.hcEvents=be:delete W.hcEvents}}else g(17,!0,Y,{missingModuleFor:ae});if(te.forEach(function(be){W[be]=te[be]}),W.init(Y,R),le&&this.points)for(let be of((pe=W.options).visible===!1?(he.graphic=1,he.dataLabel=1):(this.hasMarkerChanged(pe,X)&&(he.graphic=1),(ge=W.hasDataLabels)!=null&&ge.call(W)||(he.dataLabel=1)),this.points))be&&be.series&&(be.resolveColor(),Object.keys(he).length&&be.destroyElements(he),pe.showInLegend===!1&&be.legendItem&&Y.legend.destroyItem(be));W.initialType=re,Y.linkSeries(),Y.setSortedData(),de&&W.linkedSeries.length&&(W.isDirtyData=!0),P(this,"afterUpdate"),Q(G,!0)&&Y.redraw(!!le&&void 0)}setName(R){this.name=this.options.name=this.userOptions.name=R,this.chart.isDirtyLegend=!0}hasOptionChanged(R){var ee,se;let G=this.chart,W=this.options[R],Y=G.options.plotOptions,X=this.userOptions[R],re=Q((ee=Y==null?void 0:Y[this.type])==null?void 0:ee[R],(se=Y==null?void 0:Y.series)==null?void 0:se[R]);return X&&!I(re)?W!==X:W!==Q(re,W)}onMouseOver(){let R=this.chart,G=R.hoverSeries,W=R.pointer;W==null||W.setHoverChartIndex(),G&&G!==this&&G.onMouseOut(),this.options.events.mouseOver&&P(this,"mouseOver"),this.setState("hover"),R.hoverSeries=this}onMouseOut(){let R=this.options,G=this.chart,W=G.tooltip,Y=G.hoverPoint;G.hoverSeries=null,Y&&Y.onMouseOut(),this&&R.events.mouseOut&&P(this,"mouseOut"),W&&!this.stickyTracking&&(!W.shared||this.noSharedTooltip)&&W.hide(),G.series.forEac
180h(function(X){X.setState("",!0)})}setState(R,G){let W=this,Y=W.options,X=W.graph,re=Y.inactiveOtherPoints,ee=Y.states,se=Q(ee[R||"normal"]&&ee[R||"normal"].animation,W.chart.options.chart.animation),oe=Y.lineWidth,he=Y.opacity;if(R=R||"",W.state!==R&&([W.group,W.markerGroup,W.dataLabelsGroup].forEach(function(pe){pe&&(W.state&&pe.removeClass("highcharts-series-"+W.state),R&&pe.addClass("highcharts-series-"+R))}),W.state=R,!W.chart.styledMode)){if(ee[R]&&ee[R].enabled===!1)return;if(R&&(oe=ee[R].lineWidth||oe+(ee[R].lineWidthPlus||0),he=Q(ee[R].opacity,he)),X&&!X.dashstyle&&J(oe))for(let pe of[X,...this.zones.map(ne=>ne.graph)])pe==null||pe.animate({"stroke-width":oe},se);re||[W.group,W.markerGroup,W.dataLabelsGroup,W.labelBySeries].forEach(function(pe){pe&&pe.animate({opacity:he},se)})}G&&re&&W.points&&W.setAllPointsToState(R||void 0)}setAllPointsToState(R){this.points.forEach(function(G){G.setState&&G.setState(R)})}setVisible(R,G){var se;let W=this,Y=W.chart,X=Y.options.chart.ignoreHiddenSeries,re=W.visible;W.visible=R=W.options.visible=W.userOptions.visible=R===void 0?!re:R;let ee=R?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(oe=>{var he;(he=W[oe])==null||he[ee]()}),(Y.hoverSeries===W||((se=Y.hoverPoint)==null?void 0:se.series)===W)&&W.onMouseOut(),W.legendItem&&Y.legend.colorizeItem(W,R),W.isDirty=!0,W.options.stacking&&Y.series.forEach(oe=>{oe.options.stacking&&oe.visible&&(oe.isDirty=!0)}),W.linkedSeries.forEach(oe=>{oe.setVisible(R,!1)}),X&&(Y.isDirtyBox=!0),P(W,ee),G!==!1&&Y.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(R){this.selected=R=this.options.selected=R===void 0?!this.selected:R,this.checkbox&&(this.checkbox.checked=R),P(this,R?"select":"unselect")}shouldShowTooltip(R,G,W={}){return W.series=this,W.visiblePlotOnly=!0,this.chart.isInsidePlot(R,G,W)}drawLegendSymbol(R,G){var W;(W=c[this.options.legendSymbol||"rectangle"])==null||W.call(this,R,G)}}return K.defaultOptions=u,K.types=h.seriesTypes,K.registerType=h.registerSeriesType,f(K.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:d,requireSorting:!0,sorted:!0}),h.series=K,K}),i(n,"Core/Legend/Legend.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Series/Series.js"],n["Core/Series/Point.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Templating.js"],n["Core/Utilities.js"]],function(r,s,a,l,c,d,u,h){var p;let{animObject:y,setAnimation:m}=r,{registerEventOptions:w}=s,{composed:k,marginNames:b}=a,{distribute:x}=d,{format:v}=u,{addEvent:E,createElement:N,css:S,defined:_,discardElement:$,find:V,fireEvent:I,isNumber:A,merge:L,pick:T,pushUnique:g,relativeLength:f,stableSort:j,syncTimeout:P}=h;class C{constructor(M,z){this.allItems=[],this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.padding=0,this.pages=[],this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=M,this.setOptions(z),z.enabled&&(this.render(),w(this,z),E(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),E(this.chart,"render",()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())})}setOptions(M){let z=T(M.padding,8);this.options=M,this.chart.styledMode||(this.itemStyle=M.itemStyle,this.itemHiddenStyle=L(this.itemStyle,M.itemHiddenStyle)),this.itemMarginTop=M.itemMarginTop,this.itemMarginBottom=M.itemMarginBottom,this.padding=z,this.initialItemY=z-5,this.symbolWidth=T(M.symbolWidth,16),this.pages=[],this.proximate=M.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0}update(M,z){let J=this.chart;this.setOptions(L(!0,this.options,M)),"events"in this.options&&w(this,this.options),this.destroy(),J.isDirtyLegend=J.isDirtyBox=!0,T(z,!0)&&J.redraw(),I(this,"afterUpdate",{redraw:z})}colorizeItem(M,z){let{area:J,group:F,label:q,line:U,symbol:Q}=M.legendItem||{};if(F==null||F[z?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:ce={}}=this,H=ce.color,{fillColor:B,fillOpacity:K,lineColor:ie,marker:R}=M.options,G=W=>(!z&&(W.fill&&(W.fill=H),W.stroke&&(W.stroke=H)),W);q==null||q.css(L(z?this.itemStyle:ce)),U==null||U.attr(G({stroke:ie||M.color})),Q&&Q.attr(G(R&&Q.isMarker?M.pointAttribs():{fill:M.color})),J==null||J.attr(G({fill:B||M.color,"fill-opacity":B?1:K??.75}
vendor: 17,361 bytes, line 180
180))}I(this,"afterColorizeItem",{item:M,visible:z})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(M){let{group:z,x:J=0,y:F=0}=M.legendItem||{},q=this.options,U=q.symbolPadding,Q=!q.rtl,ce=M.checkbox;if(z&&z.element){let H={translateX:Q?J:this.legendWidth-J-2*U-4,translateY:F};z[_(z.translateY)?"animate":"attr"](H,void 0,()=>{I(this,"afterPositionItem",{item:M})})}ce&&(ce.x=J,ce.y=F)}destroyItem(M){let z=M.checkbox,J=M.legendItem||{};for(let F of["group","label","line","symbol"])J[F]&&(J[F]=J[F].destroy());z&&$(z),M.legendItem=void 0}destroy(){for(let M of this.getAllItems())this.destroyItem(M);for(let M of["clipRect","up","down","pager","nav","box","title","group"])this[M]&&(this[M]=this[M].destroy());this.display=null}positionCheckboxes(){let M,z=this.group&&this.group.alignAttr,J=this.clipHeight||this.legendHeight,F=this.titleHeight;z&&(M=z.translateY,this.allItems.forEach(function(q){let U,Q=q.checkbox;Q&&(U=M+F+Q.y+(this.scrollOffset||0)+3,S(Q,{left:z.translateX+q.checkboxOffset+Q.x-20+"px",top:U+"px",display:this.proximate||U>M-6&&U<M+J-6?"":"none"}))},this))}renderTitle(){let M=this.options,z=this.padding,J=M.title,F,q=0;J.text&&(this.title||(this.title=this.chart.renderer.label(J.text,z-3,z-4,void 0,void 0,void 0,M.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(J.style),this.title.add(this.group)),J.width||this.title.css({width:this.maxLegendWidth+"px"}),q=(F=this.title.getBBox()).height,this.offsetWidth=F.width,this.contentGroup.attr({translateY:q})),this.titleHeight=q}setText(M){let z=this.options;M.legendItem.label.attr({text:z.labelFormat?v(z.labelFormat,M,this.chart):z.labelFormatter.call(M)})}renderItem(M){let z=M.legendItem=M.legendItem||{},J=this.chart,F=J.renderer,q=this.options,U=q.layout==="horizontal",Q=this.symbolWidth,ce=q.symbolPadding||0,H=this.itemStyle,B=this.itemHiddenStyle,K=U?T(q.itemDistance,20):0,ie=!q.rtl,R=!M.series,G=!R&&M.series.drawLegendSymbol?M.series:M,W=G.options,Y=!!this.createCheckboxForItem&&W&&W.showCheckbox,X=q.useHTML,re=M.options.className,ee=z.label,se=Q+ce+K+(Y?20:0);!ee&&(z.group=F.g("legend-item").addClass("highcharts-"+G.type+"-series highcharts-color-"+M.colorIndex+(re?" "+re:"")+(R?" highcharts-series-"+M.index:"")).attr({zIndex:1}).add(this.scrollGroup),z.label=ee=F.text("",ie?Q+ce:-ce,this.baseline||0,X),J.styledMode||ee.css(L(M.visible?H:B)),ee.attr({align:ie?"left":"right",zIndex:2}).add(z.group),!this.baseline&&(this.fontMetrics=F.fontMetrics(ee),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,ee.attr("y",this.baseline),this.symbolHeight=T(q.symbolHeight,this.fontMetrics.f),q.squareSymbol&&(this.symbolWidth=T(q.symbolWidth,Math.max(this.symbolHeight,16)),se=this.symbolWidth+ce+K+(Y?20:0),ie&&ee.attr("x",this.symbolWidth+ce))),G.drawLegendSymbol(this,M),this.setItemEvents&&this.setItemEvents(M,ee,X)),Y&&!M.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(M),this.colorizeItem(M,M.visible),(J.styledMode||!H.width)&&ee.css({width:(q.itemWidth||this.widthOption||J.spacingBox.width)-se+"px"}),this.setText(M);let oe=ee.getBBox(),he=this.fontMetrics&&this.fontMetrics.h||0;M.itemWidth=M.checkboxOffset=q.itemWidth||z.labelWidth||oe.width+se,this.maxItemWidth=Math.max(this.maxItemWidth,M.itemWidth),this.totalItemWidth+=M.itemWidth,this.itemHeight=M.itemHeight=Math.round(z.labelHeight||(oe.height>1.5*he?oe.height:he))}layoutItem(M){let z=this.options,J=this.padding,F=z.layout==="horizontal",q=M.itemHeight,U=this.itemMarginBottom,Q=this.itemMarginTop,ce=F?T(z.itemDistance,20):0,H=this.maxLegendWidth,B=z.alignColumns&&this.totalItemWidth>H?this.maxItemWidth:M.itemWidth,K=M.legendItem||{};F&&this.itemX-J+B>H&&(this.itemX=J,this.lastLineHeight&&(this.itemY+=Q+this.lastLineHeight+U),this.lastLineHeight=0),this.lastItemY=Q+this.itemY+U,this.lastLineHeight=Math.max(q,this.lastLineHeight),K.x=this.itemX,K.y=this.itemY,F?this.itemX+=B:(this.itemY+=Q+q+U,this.lastLineHeight=q),this.offsetWidth=this.widthOption||Math.max((F?this.itemX-J-(M.checkbox?0:ce):B)+J,this.offsetWidth)}getAllItems(){let M=[];return this.chart.series.forEach(function(z){let J=z&&z.options;z&&T(J.showInLegend,!_(J.linkedTo)&&void 0,!0)&&(M=M.concat((z.legendItem||{}).labels||(J.legendType==="point"?z.data:z)))}),I(this,"afterGetAllItems",{allItems:M}),M}getAlignment(){let M=this.options;return this.proximate?M.align.charAt(0)+"tv":M.floating?"":M.align.charAt(0)+M.verticalAlign.charAt(0)+M.layout.charAt(0)}adjustMargins(M,z){let J=this.chart,F=this.options,q=this.getAlignment();q&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(U,Q){U.test(q)&&!_(M[Q])&&(J[b[Q]]=Math.max(J[b[Q]],J.legend[(Q+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][Q]*F[Q%2?"x":"y"]+T(F.margin,12)+z[Q]+(J.titleOffset[Q]||0)))})}proximatePositions(){let M,z=this.chart,J=[],F=this.options.align==="left";for(let q of(this.allItems.forEach(function(U){let Q,ce,H=F,B,K;U.yAxis&&(U.xAxis.options.reversed&&(H=!H),U.points&&(Q=V(H?U.points:U.points.slice(0).reverse(),function(ie){return A(ie.plotY)})),ce=this.itemMarginTop+U.legendItem.label.getBBox().height+this.itemMarginBottom,K=U.yAxis.top-z.plotTop,B=U.visible?(Q?Q.plotY:U.yAxis.height)+(K-.3*ce):K+U.yAxis.height,J.push({target:B,size:ce,item:U}))},this),x(J,z.plotHeight)))M=q.item.legendItem||{},A(q.pos)&&(M.y=z.plotTop-z.spacing[0]+q.pos)}render(){let M=this.chart,z=M.renderer,J=this.options,F=this.padding,q=this.getAllItems(),U,Q,ce,H=this.group,B,K=this.box;this.itemX=F,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=f(J.width,M.spacingBox.width-F),B=M.spacingBox.width-2*F-J.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(B/=2),this.maxLegendWidth=this.widthOption||B,H||(this.group=H=z.g("legend").addClass(J.className||"").attr({zIndex:7}).add(),this.contentGroup=z.g().attr({zIndex:1}).add(H),this.scrollGroup=z.g().add(this.contentGroup)),this.renderTitle(),j(q,(ie,R)=>(ie.options&&ie.options.legendIndex||0)-(R.options&&R.options.legendIndex||0)),J.reversed&&q.reverse(),this.allItems=q,this.display=U=!!q.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,q.forEach(this.renderItem,this),q.forEach(this.layoutItem,this),Q=(this.widthOption||this.offsetWidth)+F,ce=this.lastItemY+this.lastLineHeight+this.titleHeight,ce=this.handleOverflow(ce)+F,K||(this.box=K=z.rect().addClass("highcharts-legend-box").attr({r:J.borderRadius}).add(H)),M.styledMode||K.attr({stroke:J.borderColor,"stroke-width":J.borderWidth||0,fill:J.backgroundColor||"none"}).shadow(J.shadow),Q>0&&ce>0&&K[K.placed?"animate":"attr"](K.crisp.call({},{x:0,y:0,width:Q,height:ce},K.strokeWidth())),H[U?"show":"hide"](),M.styledMode&&H.getStyle("display")==="none"&&(Q=ce=0),this.legendWidth=Q,this.legendHeight=ce,U&&this.align(),this.proximate||this.positionItems(),I(this,"afterRender")}align(M=this.chart.spacingBox){let z=this.chart,J=this.options,F=M.y;/(lth|ct|rth)/.test(this.getAlignment())&&z.titleOffset[0]>0?F+=z.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&z.titleOffset[2]>0&&(F-=z.titleOffset[2]),F!==M.y&&(M=L(M,{y:F})),z.hasRendered||(this.group.placed=!1),this.group.align(L(J,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":J.verticalAlign}),!0,M)}handleOverflow(M){let z=this,J=this.chart,F=J.renderer,q=this.options,U=q.y,Q=q.verticalAlign==="top",ce=this.padding,H=q.maxHeight,B=q.navigation,K=T(B.animation,!0),ie=B.arrowSize||12,R=this.pages,G=this.allItems,W=function(pe){typeof pe=="number"?he.attr({height:pe}):he&&(z.clipRect=he.destroy(),z.contentGroup.clip()),z.contentGroup.div&&(z.contentGroup.div.style.clip=pe?"rect("+ce+"px,9999px,"+(ce+pe)+"px,0)":"auto")},Y=function(pe){return z[pe]=F.circle(0,0,1.3*ie).translate(ie/2,ie/2).add(oe),J.styledMode||z[pe].attr("fill","rgba(0,0,0,0.0001)"),z[pe]},X,re,ee,se=J.spacingBox.height+(Q?-U:U)-ce,oe=this.nav,he=this.clipRect;return q.layout!=="horizontal"||q.verticalAlign==="middle"||q.floating||(se/=2),H&&(se=Math.min(se,H)),R.length=0,M&&se>0&&M>se&&B.enabled!==!1?(this.clipHeight=X=Math.max(se-20-this.titleHeight-ce,0),this.currentPage=T(this.currentPage,1),this.fullHeight=M,G.forEach((pe,ne)=>{let te=(ee=pe.legendItem||{}).y||0,ae=Math.round(ee.label.getBBox().height),le=R.length;(!le||te-R[le-1]>X&&(re||te)!==R[le-1])&&(R.push(re||te),le++),ee.pageIx=le-1,re&&((G[ne-1].legendItem||{}).pageIx=le-1),ne===G.length-1&&te+ae-R[le-1]>X&&te>R[le-1]&&(R.push(te),ee.pageIx=le),te!==re&&(re=te)}),he||(he=z.clipRect=F.clipRect(0,ce-2,9999,0),z.contentGroup.clip(he)),W(X),oe||(this.nav=oe=F.g().attr({zIndex:1}).add(this.group),this.up=F.symbol("triangle",0,0,ie,ie).add(oe),Y("upTracker").on("click",function(){z.scroll(-1,K)}),this.pager=F.text("",15,10).addClass("highcharts-legend-navigation"),!J.styledMode&&B.style&&this.pager.css(B.style),this.pager.add(oe),this.down=F.symbol("triangle-down",0,0,ie,ie).add(oe),Y("downTracker").on("click",function(){z.scroll(1,K)})),z.scroll(0),M=se):oe&&(W(),this.nav=oe.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),M}scroll(M,z){let J=this.chart,F=this.pages,q=F.length,U=this.clipHeight,Q=this.options.navigation,ce=this.pager,H=this.padding,B=this.currentPage+M;B>q&&(B=q),B>0&&(z!==void 0&&m(z,J),this.nav.attr({translateX:H,translateY:U+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(K){K.attr({class:B===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),ce.attr({text:B+"/"+q}),[this.down,this.downTracker].forEach(function(K){K.attr({x:18+this.pager.getBBox().width,class:B===q?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),J.styledMode||(this.up.attr({fill:B===1?Q.inactiveColor:Q.activeColor}),this.upTracker.css({cursor:B===1?"default":"pointer"}),this.down.attr({fill:B===q?Q.inactiveColor:Q.activeColor}),this.downTracker.css({cursor:B===q?"default":"pointer"})),this.scrollOffset=-F[B-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=B,this.positionCheckboxes(),P(()=>{I(this,"afterScroll",{currentPage:B})},y(T(z,J.renderer.globalAnimation,!0)).duration))}setItemEvents(M,z,J){let F=this,q=M.legendItem||{},U=F.chart.renderer.boxWrapper,Q=M instanceof c,ce=M instanceof l,H="highcharts-legend-"+(Q?"point":"series")+"-active",B=F.chart.styledMode,K=J?[z,q.symbol]:[q.group],ie=R=>{F.allItems.forEach(G=>{M!==G&&[G].concat(G.linkedSeries||[]).forEach(W=>{W.setState(R,!Q)})})};for(let R of K)R&&R.on("mouseover",function(){M.visible&&ie("inactive"),M.setState("hover"),M.visible&&U.addClass(H),B||z.css(F.options.itemHoverStyle)}).on("mouseout",function(){F.chart.styledMode||z.css(L(M.visible?F.itemStyle:F.itemHiddenStyle)),ie(""),U.removeClass(H),M.setState()}).on("click",function(G){let W=function(){M.setVisible&&M.setVisible(),ie(M.visible?"inactive":"")};U.removeClass(H),I(F,"itemClick",{browserEvent:G,legendItem:M},W),Q?M.firePointEvent("legendItemClick",{browserEvent:G}):ce&&I(M,"legendItemClick",{browserEvent:G})})}createCheckboxForItem(M){M.checkbox=N("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:M.selected,defaultChecked:M.selected},this.options.itemCheckboxStyle,this.chart.container),E(M.checkbox,"click",function(z){let J=z.target;I(M.series||M,"checkboxClick",{checked:J.checked,item:M},function(){M.select()})})}}return(p=C||(C={})).compose=function(D){g(k,"Core.Legend")&&E(D,"beforeMargins",function(){this.legend=new p(this,this.options.legend)})},C}),i(n,"Core/Chart/Chart.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/Axis.js"],n["Core/Defaults.js"],n["Core/Templating.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Time.js"],n["Core/Utilities.js"],n["Core/Renderer/HTML/AST.js"],n["Core/Axis/Tick.js"]],function(r,s,a,l,c,d,u,h,p,y,m,w,k,b){let{animate:x,animObject:v,setAnimation:E}=r,{defaultOptions:N,defaultTime:S}=a,{numberFormat:_}=l,{registerEventOptions:$}=c,{charts:V,doc:I,marginNames:A,svg:L,win:T}=d,{seriesTypes:g}=p,{addEvent:f,attr:j,createElement:P,css:C,defined:D,diffObjects:M,discardElement:z,erase:J,error:F,extend:q,find:U,fireEvent:Q,getStyle:ce,isArray:H,isNumber:B,isObject:K,isString:ie,merge:R,objectEach:G,pick:W,pInt:Y,relativeLength:X,removeEvent:re,splat:ee,syncTimeout:se,uniqueKey:oe}=w;class he{static chart(ne,te,ae){return new he(ne,te,ae)}constructor(ne,te,ae){this.sharedClips={};let le=[...arguments];(ie(ne)||ne.nodeName)&&(this.renderTo=le.shift()),this.init(le[0],le[1])}setZoomOptions(){let ne=this.options.chart,te=ne.zooming;this.zooming={...te,type:W(ne.zoomType,te.type),key:W(ne.zoomKey,te.key),pinchType:W(ne.pinchType,te.pinchType),singleTouch:W(ne.zoomBySingleTouch,te.singleTouch,!1),resetButton:R(te.resetButton,ne.resetZoomButton)}}init(ne,te){Q(this,"init",{args:arguments},function(){let ae=R(N,ne),le=ae.chart;this.userOptions=q({},ne),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=te,this.isResizing=0,this.options=ae,this.axes=[],this.series=[],this.time=ne.time&&Object.keys(ne.time).length?new m(ne.time):d.time,this.numberFormatter=le.numberFormatter||_,this.styledMode=le.styledMode,this.hasCartesianSeries=le.showAxes,this.index=V.length,V.push(this),d.chartCount++,$(this,le),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),Q(this,"afterInit"),this.firstRender()})}initSeries(ne){let te=this.options.chart,ae=ne.type||te.type,le=g[ae];le||F(17,!0,this,{missingModuleFor:ae});let de=new le;return typeof de.init=="function"&&de.init(this,ne),de}setSortedData(){this.getSeriesOrderByLinks().forEach(function(ne){ne.points||ne.data||!ne.enabledDataSorting||ne.setData(ne.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(ne,te){return ne.linkedSeries.length||te.linkedSeries.length?te.linkedSeries.length-ne.linkedSeries.length:0})}orderItems(ne,te=0){let ae=this[ne],le=this.options[ne]=ee(this.options[ne]).slice(),de=this.userOptions[ne]=this.userOptions[ne]?ee(this.userOptions[ne]).slice():[];if(this.hasRendered&&(le.splice(te),de.splice(te)),ae)for(let ue=te,me=ae.length;ue<me;++ue){let ge=ae[ue];ge&&(ge.index=ue,ge instanceof h&&(ge.name=ge.getName()),ge.options.isInternal||(le[ue]=ge.options,de[ue]=ge.userOptions))}}isInsidePlot(ne,te,ae={}){var Te;let{inverted:le,plotBox:de,plotLeft:ue,plotTop:me,scrollablePlotBox:ge}=this,{scrollLeft:be=0,scrollTop:ve=0}=ae.visiblePlotOnly&&((Te=this.scrollablePlotArea)==null?void 0:Te.scrollingContainer)||{},we=ae.series,Ce=ae.visiblePlotOnly&&ge||de,Pe=ae.inverted?te:ne,Ne=ae.inverted?ne:te,Ee={x:Pe,y:Ne,isInsidePlot:!0,options:ae};if(!ae.ignoreX){let Fe=we&&(le&&!this.polar?we.yAxis:we.xAxis)||{pos:ue,len:1/0},Le=ae.paneCoordinates?Fe.pos+Pe:ue+Pe;Le>=Math.max(be+ue,Fe.pos)&&Le<=Math.min(be+ue+Ce.width,Fe.pos+Fe.len)||(Ee.isInsidePlot=!1)}if(!ae.ignoreY&&Ee.isInsidePlot){let Fe=!le&&ae.axis&&!ae.axis.isXAxis&&ae.axis||we&&(le?we.xAxis:we.yAxis)||{pos:me,len:1/0},Le=ae.paneCoordinates?Fe.pos+Ne:me+Ne;Le>=Math.max(ve+me,Fe.pos)&&Le<=Math.min(ve+me+Ce.height,Fe.pos+Fe.len)||(Ee.isInsidePlot=!1)}return Q(this,"afterIsInsidePlot",Ee),Ee.isInsidePlot}redraw(ne){Q(this,"beforeRedraw");let te=this.hasCartesianSeries?this.axes:this.colorAxis||[],ae=this.series,le=this.pointer,de=this.legend,ue=this.userOptions.legend,me=this.renderer,ge=me.isHidden(),be=[],ve,we,Ce,Pe=this.isDirtyBox,Ne=this.isDirtyLegend,Ee;for(me.rootFontSize=me.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),E(!!this.hasRendered&&ne,this),ge&&this.temporaryDisplay(),this.layOutTitles(!1),Ce=ae.length;Ce--;)if(((Ee=ae[Ce]).options.stacking||Ee.options.centerInCategory)&&(we=!0,Ee.isDirty)){ve=!0;break}if(ve)for(Ce=ae.length;Ce--;)(Ee=ae[Ce]).options.stacking&&(Ee.isDirty=!0);ae.forEach(function(Te){Te.isDirty&&(Te.options.legendType==="point"?(typeof Te.updateTotals=="function"&&Te.updateTotals(),Ne=!0):ue&&(ue.labelFormatter||ue.labelFormat)&&(Ne=!0)),Te.isDirtyData&&Q(Te,"updatedData")}),Ne&&de&&de.options.enabled&&(de.render(),this.isDirtyLegend=!1),we&&this.getStacks(),te.forEach(function(Te){Te.updateNames(),Te.setScale()}),this.getMargins(),te.forEach(function(Te){Te.isDirty&&(Pe=!0)}),te.forEach(function(Te){let Fe=Te.min+","+Te.max;Te.extKey!==Fe&&(Te.extKey=Fe,be.push(function(){Q(Te,"afterSetExtremes",q(Te.eventArgs,Te.getExtremes())),delete Te.eventArgs})),(Pe||we)&&Te.redraw()}),Pe&&this.drawChartBox(),Q(this,"predraw"),ae.forEach(function(Te){(Pe||Te.isDirty)&&Te.visible&&Te.redraw(),Te.isDirtyData=!1}),le&&le.reset(!0),me.draw(),Q(this,"redraw"),Q(this,"render"),ge&&this.temporaryDisplay(!0),be.forEach(function(Te){Te.call()})}get(ne){let te=this.series;function ae(de){return de.id===ne||de.options&&de.options.id===ne}let le=U(this.axes,ae)||U(this.series,ae);for(let de=0;!le&&de<te.length;de++)le=U(te[de].points||[],ae);return le}getAxes(){let ne=this.userOptions;for(let te of(Q(this,"getAxes"),["xAxis","yAxis"]))for(let ae of ne[te]=ee(ne[te]||{}))new s(this,ae,te);Q(this,"afterGetAxes")}getSelectedPoints(){return this.series.reduce((ne,te)=>
180(te.getPointsCollection().forEach(ae=>{W(ae.selectedStaging,ae.selected)&&ne.push(ae)}),ne),[])}getSelectedSeries(){return this.series.filter(function(ne){return ne.selected})}setTitle(ne,te,ae){this.applyDescription("title",ne),this.applyDescription("subtitle",te),this.applyDescription("caption",void 0),this.layOutTitles(ae)}applyDescription(ne,te){let ae=this,le=this.options[ne]=R(this.options[ne],te),de=this[ne];de&&te&&(this[ne]=de=de.destroy()),le&&!de&&((de=this.renderer.text(le.text,0,0,le.useHTML).attr({align:le.align,class:"highcharts-"+ne,zIndex:le.zIndex||4}).add()).update=function(ue,me){ae.applyDescription(ne,ue),ae.layOutTitles(me)},this.styledMode||de.css(q(ne==="title"?{fontSize:this.options.isStock?"1em":"1.2em"}:{},le.style)),this[ne]=de)}layOutTitles(ne=!0){let te=[0,0,0],ae=this.renderer,le=this.spacingBox;["title","subtitle","caption"].forEach(function(ue){let me=this[ue],ge=this.options[ue],be=ge.verticalAlign||"top",ve=ue==="title"?be==="top"?-3:0:be==="top"?te[0]+2:0;if(me){me.css({width:(ge.width||le.width+(ge.widthAdjust||0))+"px"});let we=ae.fontMetrics(me).b,Ce=Math.round(me.getBBox(ge.useHTML).height);me.align(q({y:be==="bottom"?we:ve+we,height:Ce},ge),!1,"spacingBox"),ge.floating||(be==="top"?te[0]=Math.ceil(te[0]+Ce):be==="bottom"&&(te[2]=Math.ceil(te[2]+Ce)))}},this),te[0]&&(this.options.title.verticalAlign||"top")==="top"&&(te[0]+=this.options.title.margin),te[2]&&this.options.caption.verticalAlign==="bottom"&&(te[2]+=this.options.caption.margin);let de=!this.titleOffset||this.titleOffset.join(",")!==te.join(",");this.titleOffset=te,Q(this,"afterLayOutTitles"),!this.isDirtyBox&&de&&(this.isDirtyBox=this.isDirtyLegend=de,this.hasRendered&&ne&&this.isDirtyBox&&this.redraw())}getContainerBox(){let ne=[].map.call(this.renderTo.children,ae=>{if(ae!==this.container){let le=ae.style.display;return ae.style.display="none",[ae,le]}}),te={width:ce(this.renderTo,"width",!0)||0,height:ce(this.renderTo,"height",!0)||0};return ne.filter(Boolean).forEach(([ae,le])=>{ae.style.display=le}),te}getChartSize(){var ue;let ne=this.options.chart,te=ne.width,ae=ne.height,le=this.getContainerBox(),de=le.height>1&&!(!((ue=this.renderTo.parentElement)!=null&&ue.style.height)&&this.renderTo.style.height==="100%");this.chartWidth=Math.max(0,te||le.width||600),this.chartHeight=Math.max(0,X(ae,this.chartWidth)||(de?le.height:400)),this.containerBox=le}temporaryDisplay(ne){let te=this.renderTo,ae;if(ne)for(;te&&te.style;)te.hcOrigStyle&&(C(te,te.hcOrigStyle),delete te.hcOrigStyle),te.hcOrigDetached&&(I.body.removeChild(te),te.hcOrigDetached=!1),te=te.parentNode;else for(;te&&te.style&&(I.body.contains(te)||te.parentNode||(te.hcOrigDetached=!0,I.body.appendChild(te)),(ce(te,"display",!1)==="none"||te.hcOricDetached)&&(te.hcOrigStyle={display:te.style.display,height:te.style.height,overflow:te.style.overflow},ae={display:"block",overflow:"hidden"},te!==this.renderTo&&(ae.height=0),C(te,ae),te.offsetWidth||te.style.setProperty("display","block","important")),(te=te.parentNode)!==I.body););}setClassName(ne){this.container.className="highcharts-container "+(ne||"")}getContainer(){var Ce;let ne=this.options,te=ne.chart,ae="data-highcharts-chart",le=oe(),de,ue=this.renderTo;ue||(this.renderTo=ue=te.renderTo),ie(ue)&&(this.renderTo=ue=I.getElementById(ue)),ue||F(13,!0,this);let me=Y(j(ue,ae));B(me)&&V[me]&&V[me].hasRendered&&V[me].destroy(),j(ue,ae,this.index),ue.innerHTML=k.emptyHTML,te.skipClone||ue.offsetWidth||this.temporaryDisplay(),this.getChartSize();let ge=this.chartHeight,be=this.chartWidth;C(ue,{overflow:"hidden"}),this.styledMode||(de=q({position:"relative",overflow:"hidden",width:be+"px",height:ge+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none",padding:"0px"},te.style||{}));let ve=P("div",{id:le},de,ue);this.container=ve,this.getChartSize(),be===this.chartWidth||(be=this.chartWidth,this.styledMode||C(ve,{width:W((Ce=te.style)==null?void 0:Ce.width,be+"px")})),this.containerBox=this.getContainerBox(),this._cursor=ve.style.cursor;let we=te.renderer||!L?u.getRendererType(te.renderer):y;if(this.renderer=new we(ve,be,ge,void 0,te.forExport,ne.exporting&&ne.exp
180orting.allowHTML,this.styledMode),E(void 0,this),this.setClassName(te.className),this.styledMode)for(let Pe in ne.defs)this.renderer.definition(ne.defs[Pe]);else this.renderer.setStyle(te.style);this.renderer.chartIndex=this.index,Q(this,"afterGetContainer")}getMargins(ne){let{spacing:te,margin:ae,titleOffset:le}=this;this.resetMargins(),le[0]&&!D(ae[0])&&(this.plotTop=Math.max(this.plotTop,le[0]+te[0])),le[2]&&!D(ae[2])&&(this.marginBottom=Math.max(this.marginBottom,le[2]+te[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(ae,te),Q(this,"getMargins"),ne||this.getAxisMargins()}getAxisMargins(){let ne=this,te=ne.axisOffset=[0,0,0,0],ae=ne.colorAxis,le=ne.margin,de=function(ue){ue.forEach(function(me){me.visible&&me.getOffset()})};ne.hasCartesianSeries?de(ne.axes):ae&&ae.length&&de(ae),A.forEach(function(ue,me){D(le[me])||(ne[ue]+=te[me])}),ne.setChartSize()}getOptions(){return M(this.userOptions,N)}reflow(ne){var de;let te=this,ae=te.containerBox,le=te.getContainerBox();(de=te.pointer)==null||delete de.chartPosition,!te.isPrinting&&!te.isResizing&&ae&&le.width&&((le.width!==ae.width||le.height!==ae.height)&&(w.clearTimeout(te.reflowTimeout),te.reflowTimeout=se(function(){te.container&&te.setSize(void 0,void 0,!1)},ne?100:0)),te.containerBox=le)}setReflow(){let ne=this,te=ae=>{var le;(le=ne.options)!=null&&le.chart.reflow&&ne.hasLoaded&&ne.reflow(ae)};if(typeof ResizeObserver=="function")new ResizeObserver(te).observe(ne.renderTo);else{let ae=f(T,"resize",te);f(this,"destroy",ae)}}setSize(ne,te,ae){let le=this,de=le.renderer;le.isResizing+=1,E(ae,le);let ue=de.globalAnimation;le.oldChartHeight=le.chartHeight,le.oldChartWidth=le.chartWidth,ne!==void 0&&(le.options.chart.width=ne),te!==void 0&&(le.options.chart.height=te),le.getChartSize();let{chartWidth:me,chartHeight:ge,scrollablePixelsX:be=0,scrollablePixelsY:ve=0}=le;(le.isDirtyBox||me!==le.oldChartWidth||ge!==le.oldChartHeight)&&(le.styledMode||(ue?x:C)(le.container,{width:`${me+be}px`,height:`${ge+ve}px`},ue),le.setChartSize(!0),de.setSize(me,ge,ue),le.axes.forEach(function(we){we.isDirty=!0,we.setScale()}),le.isDirtyLegend=!0,le.isDirtyBox=!0,le.layOutTitles(),le.getMargins(),le.redraw(ue),le.oldChartHeight=void 0,Q(le,"resize"),setTimeout(()=>{le&&Q(le,"endResize")},v(ue).duration)),le.isResizing-=1}
180setChartSize(ne){let te,ae,le,de,{chartHeight:ue,chartWidth:me,inverted:ge,spacing:be,renderer:ve}=this,we=this.clipOffset,Ce=Math[ge?"floor":"round"];this.plotLeft=te=Math.round(this.plotLeft),this.plotTop=ae=Math.round(this.plotTop),this.plotWidth=le=Math.max(0,Math.round(me-te-this.marginRight)),this.plotHeight=de=Math.max(0,Math.round(ue-ae-this.marginBottom)),this.plotSizeX=ge?de:le,this.plotSizeY=ge?le:de,this.spacingBox=ve.spacingBox={x:be[3],y:be[0],width:me-be[3]-be[1],height:ue-be[0]-be[2]},this.plotBox=ve.plotBox={x:te,y:ae,width:le,height:de},we&&(this.clipBox={x:Ce(we[3]),y:Ce(we[0]),width:Ce(this.plotSizeX-we[1]-we[3]),height:Ce(this.plotSizeY-we[0]-we[2])}),ne||(this.axes.forEach(function(Pe){Pe.setAxisSize(),Pe.setAxisTranslation()}),ve.alignElements()),Q(this,"afterSetChartSize",{skipAxes:ne})}resetMargins(){Q(this,"resetMargins");let ne=this,te=ne.options.chart,ae=te.plotBorderWidth||0,le=ae/2;["margin","spacing"].forEach(function(de){let ue=te[de],me=K(ue)?ue:[ue,ue,ue,ue];["Top","Right","Bottom","Left"].forEach(function(ge,be){ne[de][be]=W(te[de+ge],me[be])})}),A.forEach(function(de,ue){ne[de]=W(ne.margin[ue],ne.spacing[ue])}),ne.axisOffset=[0,0,0,0],ne.clipOffset=[le,le,le,le],ne.plotBorderWidth=ae}drawChartBox(){let ne=this.options.chart,te=this.renderer,ae=this.chartWidth,le=this.chartHeight,de=this.styledMode,ue=this.plotBGImage,me=ne.backgroundColor,ge=ne.plotBackgroun
vendor: 10,154 bytes, line 180
180dColor,be=ne.plotBackgroundImage,ve=this.plotLeft,we=this.plotTop,Ce=this.plotWidth,Pe=this.plotHeight,Ne=this.plotBox,Ee=this.clipRect,Te=this.clipBox,Fe=this.chartBackground,Le=this.plotBackground,Ue=this.plotBorder,rt,tt,At,xt="animate";Fe||(this.chartBackground=Fe=te.rect().addClass("highcharts-background").add(),xt="attr"),de?rt=tt=Fe.strokeWidth():(tt=(rt=ne.borderWidth||0)+(ne.shadow?8:0),At={fill:me||"none"},(rt||Fe["stroke-width"])&&(At.stroke=ne.borderColor,At["stroke-width"]=rt),Fe.attr(At).shadow(ne.shadow)),Fe[xt]({x:tt/2,y:tt/2,width:ae-tt-rt%2,height:le-tt-rt%2,r:ne.borderRadius}),xt="animate",Le||(xt="attr",this.plotBackground=Le=te.rect().addClass("highcharts-plot-background").add()),Le[xt](Ne),!de&&(Le.attr({fill:ge||"none"}).shadow(ne.plotShadow),be&&(ue?(be!==ue.attr("href")&&ue.attr("href",be),ue.animate(Ne)):this.plotBGImage=te.image(be,ve,we,Ce,Pe).add())),Ee?Ee.animate({width:Te.width,height:Te.height}):this.clipRect=te.clipRect(Te),xt="animate",Ue||(xt="attr",this.plotBorder=Ue=te.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),de||Ue.attr({stroke:ne.plotBorderColor,"stroke-width":ne.plotBorderWidth||0,fill:"none"}),Ue[xt](Ue.crisp({x:ve,y:we,width:Ce,height:Pe},-Ue.strokeWidth())),this.isDirtyBox=!1,Q(this,"afterDrawChartBox")}propFromSeries(){let ne,te,ae,le=this,de=le.options.chart,ue=le.options.series;["inverted","angular","polar"].forEach(function(me){for(te=g[de.type],ae=de[me]||te&&te.prototype[me],ne=ue&&ue.length;!ae&&ne--;)(te=g[ue[ne].type])&&te.prototype[me]&&(ae=!0);le[me]=ae})}linkSeries(ne){let te=this,ae=te.series;ae.forEach(function(le){le.linkedSeries.length=0}),ae.forEach(function(le){let{linkedTo:de}=le.options;if(ie(de)){let ue;(ue=de===":previous"?te.series[le.index-1]:te.get(de))&&ue.linkedParent!==le&&(ue.linkedSeries.push(le),le.linkedParent=ue,ue.enabledDataSorting&&le.setDataSortingOptions(),le.visible=W(le.options.visible,ue.options.visible,le.visible))}}),Q(this,"afterLinkSeries",{isUpdating:ne})}renderSeries(){this.series.forEach(function(ne){ne.translate(),ne.render()})}render(){var ve;let ne=this.axes,te=this.colorAxis,ae=this.renderer,le=this.options.chart.axisLayoutRuns||2,de=we=>{we.forEach(Ce=>{Ce.visible&&Ce.render()})},ue=0,me=!0,ge,be=0;for(let we of(this.setTitle(),Q(this,"beforeMargins"),(ve=this.getStacks)==null||ve.call(this),this.getMargins(!0),this.setChartSize(),ne)){let{options:Ce}=we,{labels:Pe}=Ce;if(this.hasCartesianSeries&&we.horiz&&we.visible&&Pe.enabled&&we.series.length&&we.coll!=="colorAxis"&&!this.polar){ue=Ce.tickLength,we.createGroups();let Ne=new b(we,0,"",!0),Ee=Ne.createLabel("x",Pe);if(Ne.destroy(),Ee&&W(Pe.reserveSpace,!B(Ce.crossing))&&(ue=Ee.getBBox().height+Pe.distance+Math.max(Ce.offset||0,0)),ue){Ee==null||Ee.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-ue,0);(me||ge||le>1)&&be<le;){let we=this.plotWidth,Ce=this.plotHeight;for(let Pe of ne)be===0?Pe.setScale():(Pe.horiz&&me||!Pe.horiz&&ge)&&Pe.setTickInterval(!0);be===0?this.getAxisMargins():this.getMargins(),me=we/this.plotWidth>(be?1:1.1),ge=Ce/this.plotHeight>(be?1:1.05),be++}this.drawChartBox(),this.hasCartesianSeries?de(ne):te&&te.length&&de(te),this.seriesGroup||(this.seriesGroup=ae.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(ne){let te=this,ae=R(!0,this.options.credits,ne);ae.enabled&&!this.credits&&(this.credits=this.renderer.text(ae.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){ae.href&&(T.location.href=ae.href)}).attr({align:ae.position.align,zIndex:8}),te.styledMode||this.credits.css(ae.style),this.credits.add().align(ae.position),this.credits.update=function(le){te.credits=te.credits.destroy(),te.addCredits(le)})}destroy(){let ne,te=this,ae=te.axes,le=te.series,de=te.container,ue=de&&de.parentNode;for(Q(te,"destroy"),te.renderer.forExport?J(V,te):V[te.index]=void 0,d.chartCount--,te.renderTo.removeAttribute("data-highcharts-chart"),re(te),ne=ae.length;ne--;)ae[ne]=ae[ne].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),ne=le.length;ne--;)le[ne]=le[ne].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(function(me){let ge=te[me];ge&&ge.destroy&&(te[me]=ge.destroy())}),de&&(de.innerHTML=k.emptyHTML,re(de),ue&&z(de)),G(te,function(me,ge){delete te[ge]})}firstRender(){var le;let ne=this,te=ne.options;ne.getContainer(),ne.resetMargins(),ne.setChartSize(),ne.propFromSeries(),ne.getAxes();let ae=H(te.series)?te.series:[];te.series=[],ae.forEach(function(de){ne.initSeries(de)}),ne.linkSeries(),ne.setSortedData(),Q(ne,"beforeRender"),ne.render(),(le=ne.pointer)==null||le.getChartPosition(),ne.renderer.imgCount||ne.hasLoaded||ne.onload(),ne.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(ne){ne&&this.index!==void 0&&ne.apply(this,[this])},this),Q(this,"load"),Q(this,"render"),D(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){let{options:ne,title:te}=this;!ne||this.accessibility||(this.renderer.boxWrapper.attr({role:"img","aria-label":(te&&te.element.textContent||"").replace(/</g,"<")}),ne.accessibility&&ne.accessibility.enabled===!1||F('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))}addSeries(ne,te,ae){let le,de=this;return ne&&(te=W(te,!0),Q(de,"addSeries",{options:ne},function(){le=de.initSeries(ne),de.isDirtyLegend=!0,de.linkSeries(),le.enabledDataSorting&&le.setData(ne.data,!1),Q(de,"afterAddSeries",{series:le}),te&&de.redraw(ae)})),le}addAxis(ne,te,ae,le){return this.createAxis(te?"xAxis":"yAxis",{axis:ne,redraw:ae,animation:le})}addColorAxis(ne,te,ae){return this.createAxis("colorAxis",{axis:ne,redraw:te,animation:ae})}createAxis(ne,te){let ae=new s(this,te.axis,ne);return W(te.redraw,!0)&&this.redraw(te.animation),ae}showLoading(ne){let te=this,ae=te.options,le=ae.loading,de=function(){ue&&C(ue,{left:te.plotLeft+"px",top:te.plotTop+"px",width:te.plotWidth+"px",height:te.plotHeight+"px"})},ue=te.loadingDiv,me=te.loadingSpan;ue||(te.loadingDiv=ue=P("div",{className:"highcharts-loading highcharts-loading-hidden"},null,te.container)),me||(te.loadingSpan=me=P("span",{className:"highcharts-loading-inner"},null,ue),f(te,"redraw",de)),ue.className="highcharts-loading",k.setElementHTML(me,W(ne,ae.lang.loading,"")),te.styledMode||(C(ue,q(le.style,{zIndex:10})),C(me,le.labelStyle),te.loadingShown||(C(ue,{opacity:0,display:""}),x(ue,{opacity:le.style.opacity||.5},{duration:le.showDuration||0}))),te.loadingShown=!0,de()}hideLoading(){let ne=this.options,te=this.loadingDiv;te&&(te.className="highcharts-loading highcharts-loading-hidden",this.styledMode||x(te,{opacity:0},{duration:ne.loading.hideDuration||100,complete:function(){C(te,{display:"none"})}})),this.loadingShown=!1}update(ne,te,ae,le){let de,ue,me,ge=this,be={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},ve=ne.isResponsiveOptions,we=[];Q(ge,"update",{options:ne}),ve||ge.setResponsive(!1,!0),ne=M(ne,ge.options),ge.userOptions=R(ge.userOptions,ne);let Ce=ne.chart;Ce&&(R(!0,ge.options.chart,Ce),this.setZoomOptions(),"className"in Ce&&ge.setClassName(Ce.className),("inverted"in Ce||"polar"in Ce||"type"in Ce)&&(ge.propFromSeries(),de=!0),"alignTicks"in Ce&&(de=!0),"events"in Ce&&$(this,Ce),G(Ce,function(Ee,Te){ge.propsRequireUpdateSeries.indexOf("chart."+Te)!==-1&&(ue=!0),ge.propsRequireDirtyBox.indexOf(Te)!==-1&&(ge.isDirtyBox=!0),ge.propsRequireReflow.indexOf(Te)===-1||(ge.isDirtyBox=!0,ve||(me=!0))}),!ge.styledMode&&Ce.style&&ge.renderer.setStyle(ge.options.chart.style||{})),!ge.styledMode&&ne.colors&&(this.options.colors=ne.colors),ne.time&&(this.time===S&&(this.time=new m(ne.time)),R(!0,ge.options.time,ne.time)),G(ne,function(Ee,Te){ge[Te]&&typeof ge[Te].update=="function"?ge[Te].update(Ee,!1):typeof ge[be[Te]]=="function"?ge[be[Te]](Ee):Te!=="colors"&&ge.collectionsWithUpdate.indexOf(Te)===-1&&R(!0,ge.options[Te],ne[Te]),Te!=="chart"&&ge.propsRequireUpdateSeries.indexOf(Te)!==-1&&(ue=!0)}),this.collectionsWithUpdate.forEach(function(Ee){ne[Ee]&&(ee(ne[Ee]).forEach(function(Te,Fe){let Le,Ue=D(Te.id);Ue&&(Le=ge.get(Te.id)),!Le&&ge[Ee]&&(Le=ge[Ee][W(Te.index,Fe)])&&(Ue&&D(Le.options.id)||Le.options.isInternal)&&(Le=void 0),Le&&Le.coll===Ee&&(Le.update(Te,!1),ae&&(Le.touched=!0)),!Le&&ae&&ge.collectionsWithInit[Ee]&&(ge.collectionsWithInit[Ee][0].apply(ge,[Te].concat(ge.collectionsWithInit[Ee][1]||[]).concat([!1])).touched=!0)}),ae&&ge[Ee].forEach(function(Te){Te.touched||Te.options.isInternal?delete Te.touched:we.push(Te)}))}),we.forEach(function(Ee){Ee.chart&&Ee.remove&&Ee.remove(!1)}),de&&ge.axes.forEach(function(Ee){Ee.update({},!1)}),ue&&ge.getSeriesOrderByLinks().forEach(function(Ee){Ee.chart&&Ee.update({},!1)},this);let Pe=Ce&&Ce.width,Ne=Ce&&(ie(Ce.height)?X(Ce.height,Pe||ge.chartWidth):Ce.height);me||B(Pe)&&Pe!==ge.chartWidth||B(Ne)&&Ne!==ge.chartHeight?ge.setSize(Pe,Ne,le):W(te,!0)&&ge.redraw(le),Q(ge,"afterUpdate",{options:ne,redraw:te,animation:le})}setSubtitle(ne,te){this.applyDescription("subtitle",ne),this.layOutTitles(te)}setCaption(ne,te){this.applyDescription("caption",ne),this.layOutTitles(te)}showResetZoom(){let ne=this,te=N.lang,ae=ne.zooming.resetButton,le=ae.theme,de=ae.relativeTo==="chart"||ae.relativeTo==="spacingBox"?null:"plotBox";function ue(){ne.zoomOut()}Q(this,"beforeShowResetZoom",null,function(){ne.resetZoomButton=ne.renderer.button(te.resetZoom,null,null,ue,le).attr({align:ae.position.align,title:te.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(ae.position,!1,de)}),Q(this,"afterShowResetZoom")}zoomOut(){Q(this,"selection",{resetSelection:!0}
180,()=>this.transform({reset:!0,trigger:"zoom"}))}pan(ne,te){let ae=this,le=typeof te=="object"?te:{enabled:te,type:"x"},de=le.type,ue=de&&ae[{x:"xAxis",xy:"axes",y:"yAxis"}[de]].filter(ge=>ge.options.panningEnabled&&!ge.options.isInternal),me=ae.options.chart;me!=null&&me.panning&&(me.panning=le),Q(this,"pan",{originalEvent:ne},()=>{ae.transform({axes:ue,event:ne,to:{x:ne.chartX-(ae.mouseDownX||0),y:ne.chartY-(ae.mouseDownY||0)},trigger:"pan"}),C(ae.container,{cursor:"move"})})}transform(ne){var Pe;let{axes:te=this.axes,event:ae,from:le={},reset:de,selection:ue,to:me={},trigger:ge}=ne,{inverted:be}=this,ve=!1,we,Ce;for(let Ne of((Pe=this.hoverPoints)==null||Pe.forEach(Ee=>Ee.setState()),te)){let{horiz:Ee,len:Te,minPointOffset:Fe=0,options:Le,reversed:Ue}=Ne,rt=Ee?"width":"height",tt=Ee?"x":"y",At=W(me[rt],Ne.len),xt=W(le[rt],Ne.len),Nt=10>Math.abs(At)?1:At/xt,zn=(le[tt]||0)+xt/2-Ne.pos,pn=zn-((me[tt]??Ne.pos)+At/2-Ne.pos)/Nt,yi=Ue&&!be||!Ue&&be?-1:1;if(!de&&(zn<0||zn>Ne.len))continue;let Bt=Ne.toValue(pn,!0)+(ue||Ne.isOrdinal?0:Fe*yi),cn=Ne.toValue(pn+Te/Nt,!0)-(ue||Ne.isOrdinal?0:Fe*yi||0),je=Ne.allExtremes;if(Bt>cn&&([Bt,cn]=[cn,Bt]),Nt===1&&!de&&Ne.coll==="yAxis"&&!je){for(let Ht of Ne.series){let ke=Ht.getExtremes(Ht.getProcessedData(!0).yData,!0);je??(je={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),B(ke.dataMin)&&B(ke.dataMax)&&(je.dataMin=Math.min(ke.dataMin,je.dataMin),je.dataMax=Math.max(ke.dataMax,je.dataMax))}Ne.allExtremes=je}let{dataMin:Ae,dataMax:De,min:Oe,max:Xe}=q(Ne.getExtremes(),je||{}),et=Ae??Le.min,ht=De??Le.max,Ke=cn-Bt,yt=Ne.categories?0:Math.min(Ke,ht-et),nt=et-yt*(D(Le.min)?0:Le.minPadding),st=ht+yt*(D(Le.max)?0:Le.maxPadding),$t=Ne.allowZoomOutside||Nt===1||ge!=="zoom"&&Nt>1,It=Math.min(Le.min??nt,nt,$t?Oe:nt),Mt=Math.max(Le.max??st,st,$t?Xe:st);(!Ne.isOrdinal||Ne.options.overscroll||Nt!==1||de)&&(Bt<It&&(Bt=It,Nt>=1&&(cn=Bt+Ke)),cn>Mt&&(cn=Mt,Nt>=1&&(Bt=cn-Ke)),(de||Ne.series.length&&(Bt!==Oe||cn!==Xe)&&Bt>=It&&cn<=Mt)&&(ue?ue[Ne.coll].push({axis:Ne,min:Bt,max:cn}):(Ne.isPanning=ge!=="zoom",Ne.isPanning&&(Ce=!0),Ne.setExtremes(de?void 0:Bt,de?void 0:cn,!1,!1,{move:pn,trigger:ge,scale:Nt}),!de&&(Bt>It||cn<Mt)&&ge!=="mousewheel"&&(we=!0)),ve=!0),ae&&(this[Ee?"mouseDownX":"mouseDownY"]=ae[Ee?"chartX":"chartY"]))}return ve&&(ue?Q(this,"selection",ue,()=>{delete ne.selection,ne.trigger="zoom",this.transform(ne)}):(!we||Ce||this.resetZoomButton?!we&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw(ge==="zoom"&&(this.options.chart.animation??this.pointCount<100)))),ve}}return q(he.prototype,{callbacks:[],collectionsWithInit:{xAxis:[he.prototype.addAxis,[!0]],yAxis:[he.prototype.addAxis,[!1]],series:[he.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroun
180dColor","plotBackgroundImage","plotBorderColor","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"]}),he}),i(n,"Extensions/ScrollablePlotArea.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Globals.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Utilities.js"]],function(r,s,a,l){let{stop:c}=r,{composed:d}=s,{addEvent:u,createElement:h,css:p,defined:y,merge:m,pushUnique:w}=l;function k(){let v=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!v&&(this.scrollablePlotArea=v=new x(this)),v==null||v.applyFixed()}function b(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}class x{static compose(E,N,S){w(d,this.compose)&&(u(E,"afterInit",b),u(N,"afterSetChartSize",_=>this.afterSetSize(_.target,_)),u(N,"render",k),u(S,"show",b))}static afterSetSize(E,N){let S,_,$,{minWidth:V,minHeight:I}=E.options.chart.scrollablePlotArea||{},{clipBox:A,plotBox:L,inverted:T,renderer:g}=E;if(!g.forExport&&(V?(E.scrollablePixelsX=S=Math.max(0,V-E.chartWidth),S&&(E.scrollablePlotBox=m(E.plotBox),L.width=E.plotWidth+=S,A[T?"height":"width"]+=S,$=!0)):I&&(E.scrollablePixelsY=_=Math.max(0,I-E.chartHeight),y(_)&&(E.scrollablePlotBox=m(E.plotBox),L.height=E.plotHeight+=_,A[T?"width":"height"]+=_,$=!1)),y($)&&!N.skipAxes))for(let f of E.axes)f.horiz===$&&(f.setAxisSize(),f.setAxisTranslation())}constructor(E){var j;let N,S=E.options.chart,_=a.getRendererType(),$=S.scrollablePlotArea||{},V=this.moveFixedElements.bind(this),I={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};E.scrollablePixelsX&&(I.overflowX="auto"),E.scrollablePixelsY&&(I.overflowY="auto"),this.chart=E;let A=this.parentDiv=h("div",{className:"highcharts-scrolling-parent"},{position:"relative"},E.renderTo),L=this.scrollingContainer=h("div",{className:"highcharts-scrolling"},I,A),T=this.innerContainer=h("div",{className:"highcharts-inner-container"},void 0,L),g=this.fixedDiv=h("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(((j=S.style)==null?void 0:j.zIndex)||0)+2,top:0}
vendor: 4,274 bytes, line 180
180,void 0,!0),f=this.fixedRenderer=new _(g,E.chartWidth,E.chartHeight,S.style);this.mask=f.path().attr({fill:S.backgroundColor||"#fff","fill-opacity":$.opacity??.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),L.parentNode.insertBefore(g,L),p(E.renderTo,{overflow:"visible"}),u(E,"afterShowResetZoom",V),u(E,"afterApplyDrilldown",V),u(E,"afterLayOutTitles",V),u(L,"scroll",()=>{let{pointer:P,hoverPoint:C}=E;P&&(delete P.chartPosition,C&&(N=C),P.runPointActions(void 0,N,!0))}),T.appendChild(E.container)}applyFixed(){var B;let{chart:E,fixedRenderer:N,isDirty:S,scrollingContainer:_}=this,{axisOffset:$,chartWidth:V,chartHeight:I,container:A,plotHeight:L,plotLeft:T,plotTop:g,plotWidth:f,scrollablePixelsX:j=0,scrollablePixelsY:P=0}=E,{scrollPositionX:C=0,scrollPositionY:D=0}=E.options.chart.scrollablePlotArea||{},M=V+j,z=I+P;N.setSize(V,I),(S??!0)&&(this.isDirty=!1,this.moveFixedElements()),c(E.container),p(A,{width:`${M}px`,height:`${z}px`}),E.renderer.boxWrapper.attr({width:M,height:z,viewBox:[0,0,M,z].join(" ")}),(B=E.chartBackground)==null||B.attr({width:M,height:z}),p(_,{width:`${V}px`,height:`${I}px`}),y(S)||(_.scrollLeft=j*C,_.scrollTop=P*D);let J=g-$[0]-1,F=T-$[3]-1,q=g+L+$[2]+1,U=T+f+$[1]+1,Q=T+f-j,ce=g+L-P,H=[["M",0,0]];j?H=[["M",0,J],["L",T-1,J],["L",T-1,q],["L",0,q],["Z"],["M",Q,J],["L",V,J],["L",V,q],["L",Q,q],["Z"]]:P&&(H=[["M",F,0],["L",F,g-1],["L",U,g-1],["L",U,0],["Z"],["M",F,ce],["L",F,I],["L",U,I],["L",U,ce],["Z"]]),E.redrawTrigger!=="adjustHeight"&&this.mask.attr({d:H})}moveFixedElements(){let E,{container:N,inverted:S,scrollablePixelsX:_,scrollablePixelsY:$}=this.chart,V=this.fixedRenderer,I=x.fixedSelectors;for(let A of(_&&!S?E=".highcharts-yaxis":_&&S||$&&!S?E=".highcharts-xaxis":$&&S&&(E=".highcharts-yaxis"),E&&I.push(`${E}:not(.highcharts-radial-axis)`,`${E}-labels:not(.highcharts-radial-axis-labels)`),I))[].forEach.call(N.querySelectorAll(A),L=>{(L.namespaceURI===V.SVG_NS?V.box:V.box.parentNode).appendChild(L),L.style.pointerEvents="auto"})}}return x.fixedSelectors=[".highcharts-breadcrumbs-group",".highcharts-contextbutton",".highcharts-caption",".highcharts-credits",".highcharts-drillup-button",".highcharts-legend",".highcharts-legend-checkbox",".highcharts-navigator-series",".highcharts-navigator-xaxis",".highcharts-navigator-yaxis",".highcharts-navigator",".highcharts-range-selector-group",".highcharts-reset-zoom",".highcharts-scrollbar",".highcharts-subtitle",".highcharts-title"],x}),i(n,"Core/Axis/Stacking/StackItem.js",[n["Core/Templating.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s,a){let{format:l}=r,{series:c}=s,{destroyObjectProperties:d,fireEvent:u,isNumber:h,pick:p}=a;return class{constructor(y,m,w,k,b){let x=y.chart.inverted,v=y.reversed;this.axis=y;let E=this.isNegative=!!w!=!!v;this.options=m=m||{},this.x=k,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=b,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:m.align||(x?E?"left":"right":"center"),verticalAlign:m.verticalAlign||(x?"middle":E?"bottom":"top"),y:m.y,x:m.x},this.textAlign=m.textAlign||(x?E?"right":"left":"center")}destroy(){d(this,this.axis)}render(y){let m=this.axis.chart,w=this.options,k=w.format,b=k?l(k,this,m):w.formatter.call(this);if(this.label)this.label.attr({text:b,visibility:"hidden"});else{this.label=m.renderer.label(b,null,void 0,w.shape,void 0,void 0,w.useHTML,!1,"stack-labels");let x={r:w.borderRadius||0,text:b,padding:p(w.padding,5),visibility:"hidden"};m.styledMode||(x.fill=w.backgroundColor,x.stroke=w.borderColor,x["stroke-width"]=w.borderWidth,this.label.css(w.style||{})),this.label.attr(x),this.label.added||this.label.add(y)}this.label.labelrank=m.plotSizeY,u(this,"afterRender")}setOffset(y,m,w,k,b,x){let{alignOptions:v,axis:E,label:N,options:S,textAlign:_}=this,$=E.chart,V=this.getStackBox({xOffset:y,width:m,boxBottom:w,boxTop:k,defaultX:b,xAxis:x}),{verticalAlign:I}=v;if(N&&V){let A=N.getBBox(void 0,0),L=N.padding,T=p(S.overflow,"justify")==="justify",g;v.x=S.x||0,v.y=S.y||0;let{x:f,y:j}=this.adjustStackPosition({labelBox:A,verticalAlign:I,textAlign:_});V.x-=f,V.y-=j,N.align(v,!1,V),(g=$.isInsidePlot(N.alignAttr.x+v.x+f,N.alignAttr.y+v.y+j))||(T=!1),T&&c.prototype.justifyDataLabel.call(E,N,v,N.al
180ignAttr,A,V),N.attr({x:N.alignAttr.x,y:N.alignAttr.y,rotation:S.rotation,rotationOriginX:A.width*{left:0,center:.5,right:1}[S.textAlign||"center"],rotationOriginY:A.height/2}),p(!T&&S.crop,!0)&&(g=h(N.x)&&h(N.y)&&$.isInsidePlot(N.x-L+(N.width||0),N.y)&&$.isInsidePlot(N.x+L,N.y)),N[g?"show":"hide"]()}u(this,"afterSetOffset",{xOffset:y,width:m})}adjustStackPosition({labelBox:y,verticalAlign:m,textAlign:w}){let k={bottom:0,middle:1,top:2,right:1,center:0,left:-1},b=k[m],x=k[w];return{x:y.width/2+y.width/2*x,y:y.height/2*b}}getStackBox(y){let m=this.axis,w=m.chart,{boxTop:k,defaultX:b,xOffset:x,width:v,boxBottom:E}=y,N=m.stacking.usePercentage?100:p(k,this.total,0),S=m.toPixels(N),_=y.xAxis||w.xAxis[0],$=p(b,_.translate(this.x))+x,V=Math.abs(S-m.toPixels(E||h(m.min)&&m.logarithmic&&m.logarithmic.lin2log(m.min)||0)),I=w.inverted,A=this.isNegative;return I?{x:(A?S:S-V)-w.plotLeft,y:_.height-$-v+_.top-w.plotTop,width:V,height:v}:{x:$+_.transB-w.plotLeft,y:(A?S-V:S)-w.plotTop,width:v,height:V}}}}),i(n,"Core/Axis/Stacking/StackingAxis.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/Axis.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Axis/Stacking/StackItem.js"],n["Core/Utilities.js"]],function(r,s,a,l,c){var d;let{getDeferredAnimation:u}=r,{series:{prototype:h}}=a,{addEvent:p,correctFloat:y,defined:m,destroyObjectProperties:w,fireEvent:k,isArray:b,isNumber:x,objectEach:v,pick:E}=c;function N(){let g=this.inverted;this.axes.forEach(f=>{f.stacking&&f.stacking.stacks&&f.hasVisibleSeries&&(f.stacking.oldStacks=f.stacking.stacks)}),this.series.forEach(f=>{let j=f.xAxis&&f.xAxis.options||{};f.options.stacking&&f.reserveSpace()&&(f.stackKey=[f.type,E(f.options.stack,""),g?j.top:j.left,g?j.height:j.width].join(","))})}function S(){var f;let g=this.stacking;if(g){let j=g.stacks;v(j,(P,C)=>{w(P),delete j[C]}),(f=g.stackTotalGroup)==null||f.destroy()}}function _(){this.stacking||(this.stacking=new T(this))}function $(g,f,j,P){return!m(g)||g.x!==f||P&&g.stackKey!==P?g={x:f,index:0,key:P,stackKey:P}:g.index++,g.key=[j,f,g.index].join(","),g}function V(){let g,f=this,j=f.yAxis,P=f.stackKey||"",C=j.stacking.stacks,D=f.processedXData,M=f.options.stacking,z=f[M+"Stacker"];z&&[P,"-"+P].forEach(J=>{var ce;let F=D.length,q,U,Q;for(;F--;)q=D[F],g=f.getStackIndicator(g,q,f.index,J),U=(ce=C[J])==null?void 0:ce[q],(Q=U==null?void 0:U.points[g.key||""])&&z.call(f,Q,U,F)})}function I(g,f,j){let P=f.total?100/f.total:0;g[0]=y(g[0]*P),g[1]=y(g[1]*P),this.stackedYData[j]=g[1]}function A(g){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&!this.options.stacking&&this.chart.series.length>1?h.setStackedPoints.call(this,g,"group"):g.stacking.resetStacks())}function L(g,f){var oe,he;let j,P,C,D,M,z,J,F,q,U=f||this.options.stacking;if(!U||!this.reserveSpace()||({group:"xAxis"}[U]||"yAxis")!==g.coll)return;let Q=this.processedXData,ce=this.processedYData,H=[],B=ce.length,K=this.options,ie=K.threshold||0,R=K.startFromThreshold?ie:0,G=K.stack,W=f?`${this.type},${U}`:this.stackKey||"",Y="-"+W,X=this.negStacks,re=g.stacking,ee=re.stacks,se=re.oldStacks;for(re.stacksTouched+=1,J=0;J<B;J++){F=Q[J],q=ce[J],z=(j=this.getStackIndicator(j,F,this.index)).key||"",ee[M=(P=X&&q<(R?0:ie))?Y:W]||(ee[M]={}),ee[M][F]||((oe=se[M])!=null&&oe[F]?(ee[M][F]=se[M][F],ee[M][F].total=null):ee[M][F]=new l(g,g.options.stackLabels,!!P,F,G)),C=ee[M][F],q!==null?(C.points[z]=C.points[this.index]=[E(C.cumulative,R)],m(C.cumulative)||(C.base=z),C.touched=re.stacksTouched,j.index>0&&this.singleStacks===!1&&(C.points[z][0]=C.points[this.index+","+F+",0"][0])):(delete C.points[z],delete C.points[this.index]);let pe=C.total||0;U==="percent"?(D=P?W:Y,pe=X&&((he=ee[D])!=null&&he[F])?(D=ee[D][F]).total=Math.max(D.total||0,pe)+Math.abs(q)||0:y(pe+(Math.abs(q)||0))):U==="group"?(b(q)&&(q=q[0]),q!==null&&pe++):pe=y(pe+(q||0)),U==="group"?C.cumulative=(pe||1)-1:C.cumulative=y(E(C.cumulative,R)+(q||0)),C.total=pe,q!==null&&(C.points[z].push(C.cumulative),H[J]=C.cumulative,C.hasValidPoints=!0)}U==="percent"&&(re.usePercentage=!0),U!=="group"&&(this.stackedYData=H),re.oldStacks={}}class T{constructor(f){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=f}buildStacks(){let f,j,P=this.axis,C=P.series,D=P.coll==="xAxis",M=P.options.reversedStacks,z=C.length;for(this.resetStacks(),this.usePercentage=!1,j=z;j--;)f=C[M?j:z-j-1],D&&f.setGroupedPoints(P),f.setStackedPoints(P);if(!D)for(j=0;j<z;j++)C[j].modifyStacks();k(P,"afterBuildStacks")}cleanStacks(){this.oldStacks&&(this.stacks=this.oldStacks,v(this.stacks,f=>{v(f,j=>{j.cumulative=j.total})}))}resetStacks(){v(this.stacks,f=>{v(f,(j,P)=>{x(j.touched)&&j.touched<this.stacksTouched?(j.destroy(),delete f[P]):(j.total=null,j.cumulative=null)})})}renderStackTotals(){var z;let f=this.axis,j=f.chart,P=j.renderer,C=this.stacks,D=u(j,((z=f.options.stackLabels)==null?void 0:z.animation)||!1),M=this.stackTotalGroup=this.stackTotalGroup||P.g("stack-labels").attr({zIndex:6,opacity:0}
vendor: 4,604 bytes, line 180
180).add();M.translate(j.plotLeft,j.plotTop),v(C,J=>{v(J,F=>{F.render(M)})}),M.animate({opacity:1},D)}}return(d||(d={})).compose=function(g,f,j){let P=f.prototype,C=j.prototype;P.getStacks||(p(g,"init",_),p(g,"destroy",S),P.getStacks=N,C.getStackIndicator=$,C.modifyStacks=V,C.percentStacker=I,C.setGroupedPoints=A,C.setStackedPoints=L)},d}),i(n,"Series/Line/LineSeries.js",[n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s,a){let{defined:l,merge:c,isObject:d}=a;class u extends r{drawGraph(){let p=this.options,y=(this.gappedPath||this.getGraphPath).call(this),m=this.chart.styledMode;[this,...this.zones].forEach((w,k)=>{let b,x=w.graph,v=x?"animate":"attr",E=w.dashStyle||p.dashStyle;x?(x.endX=this.preventGraphAnimation?null:y.xMap,x.animate({d:y})):y.length&&(w.graph=x=this.chart.renderer.path(y).addClass("highcharts-graph"+(k?` highcharts-zone-graph-${k-1} `:" ")+(k&&w.className||"")).attr({zIndex:1}).add(this.group)),x&&!m&&(b={stroke:!k&&p.lineColor||w.color||this.color||"#cccccc","stroke-width":p.lineWidth||0,fill:this.fillGraph&&this.color||"none"},E?b.dashstyle=E:p.linecap!=="square"&&(b["stroke-linecap"]=b["stroke-linejoin"]="round"),x[v](b).shadow(k<2&&p.shadow&&c({filterUnits:"userSpaceOnUse"},d(p.shadow)?p.shadow:{}))),x&&(x.startX=y.xMap,x.isArea=y.isArea)})}getGraphPath(p,y,m){let w=this,k=w.options,b=[],x=[],v,E=k.step,N=(p=p||w.points).reversed;return N&&p.reverse(),(E={right:1,center:2}[E]||E&&3)&&N&&(E=4-E),(p=this.getValidPoints(p,!1,!(k.connectNulls&&!y&&!m))).forEach(function(S,_){let $,V=S.plotX,I=S.plotY,A=p[_-1],L=S.isNull||typeof I!="number";(S.leftCliff||A&&A.rightCliff)&&!m&&(v=!0),L&&!l(y)&&_>0?v=!k.connectNulls:L&&!y?v=!0:(_===0||v?$=[["M",S.plotX,S.plotY]]:w.getPointSpline?$=[w.getPointSpline(p,S,_)]:E?($=E===1?[["L",A.plotX,I]]:E===2?[["L",(A.plotX+V)/2,A.plotY],["L",(A.plotX+V)/2,I]]:[["L",V,A.plotY]]).push(["L",V,I]):$=[["L",V,I]],x.push(S.x),E&&(x.push(S.x),E===2&&x.push(S.x)),b.push.apply(b,$),v=!1)}),b.xMap=x,w.graphPath=b,b}}return u.defaultOptions=c(r.defaultOptions,{legendSymbol:"lineMarker"}),s.registerSeriesType("line",u),u}),i(n,"Series/Area/AreaSeriesDefaults.js",[],function(){return{threshold:0,legendSymbol:"areaMarker"}}),i(n,"Series/Area/AreaSeries.js",[n["Series/Area/AreaSeriesDefaults.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s,a){let{seriesTypes:{line:l}}=s,{extend:c,merge:d,objectEach:u,pick:h}=a;class p extends l{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:m,options:w}=this;[this,...this.zones].forEach((k,b)=>{let x={},v=k.fillColor||w.fillColor,E=k.area,N=E?"animate":"attr";E?(E.endX=this.preventGraphAnimation?null:m.xMap,E.animate({d:m})):(x.zIndex=0,(E=k.area=this.chart.renderer.path(m).addClass("highcharts-area"+(b?` highcharts-zone-area-${b-1} `:" ")+(b&&k.className||"")).add(this.group)).isArea=!0),this.chart.styledMode||(x.fill=v||k.color||this.color,x["fill-opacity"]=v?1:w.fillOpacity??.75,E.css({pointerEvents:this.stickyTracking?"none":"auto"})),E[N](x),E.startX=m.xMap,E.shiftUnit=w.step?2:1})}getGraphPath(m){let w,k,b,x=l.prototype.getGraphPath,v=this.options,E=v.stacking,N=this.yAxis,S=[],_=[],$=this.index,V=N.stacking.stacks[this.stackKey],I=v.threshold,A=Math.round(N.getThreshold(v.threshold)),L=h(v.connectNulls,E==="percent"),T=function(D,M,z){let J=m[D],F=E&&V[J.x].points[$],q=J[z+"Null"]||0,U=J[z+"Cliff"]||0,Q,ce,H=!0;U||q?(Q=(q?F[0]:F[1])+U,ce=F[0]+U,H=!!q):!E&&m[M]&&m[M].isNull&&(Q=ce=I),Q!==void 0&&(_.push({plotX:w,plotY:Q===null?A:N.getThreshold(Q),isNull:H,isCliff:!0}),S.push({plotX:w,plotY:ce===null?A:N.getThreshold(ce),doCurve:!1}))};m=m||this.points,E&&(m=this.getStackPoints(m));for(let D=0,M=m.length;D<M;++D)E||(m[D].leftCliff=m[D].rightCliff=m[D].leftNull=m[D].rightNull=void 0),k=m[D].isNull,w=h(m[D].rectPlotX,m[D].plotX),b=E?h(m[D].yBottom,A):A,k&&!L||(L||T(D,D-1,"left"),k&&!E&&L||(_.push(m[D]),S.push({x:D,plotX:w,plotY:b})),L||T(D,D+1,"right"));let g=x.call(this,_,!0,!0);S.reversed=!0;let f=x.call(this,S,!0,!0),j=f[0];j&&j[0]==="M"&&(f[0]=["L",j[1],j[2]]);let P=g.concat(f);P.length&&P.push(["Z"]);let C=x.call(this,_,!1,L);return this.chart.series.length>1&&E&&_.some(D=>D.isCliff)&&(P.hasStackedCliffs=C.hasStackedCliffs=!0),P.xMap=g.xMap,this.areaPath=P,C}getStackPoints(m){let w=this,k=[],b=[],x=this.xAxis,v=this.yAxis,E=v.stacking.stacks[this.stackKey],N={},S=v.series,_=S.length,$=v.options.reversedStacks?1:-1,V=S.indexOf(w);if(m=m||this.points,this.options.stacking){for(let A=0;A<m.length;A++)m[A].leftNull=m[A].rightNull=void 0,N[m[A].x]=m[A];
180u(E,function(A,L){A.total!==null&&b.push(L)}),b.sort(function(A,L){return A-L});let I=S.map(A=>A.visible);b.forEach(function(A,L){let T=0,g,f;if(N[A]&&!N[A].isNull)k.push(N[A]),[-1,1].forEach(function(j){let P=j===1?"rightNull":"leftNull",C=E[b[L+j]],D=0;if(C){let M=V;for(;M>=0&&M<_;){let z=S[M].index;!(g=C.points[z])&&(z===w.index?N[A][P]=!0:I[M]&&(f=E[A].points[z])&&(D-=f[1]-f[0])),M+=$}}N[A][j===1?"rightCliff":"leftCliff"]=D});else{let j=V;for(;j>=0&&j<_;){let P=S[j].index;if(g=E[A].points[P]){T=g[1];break}j+=$}T=h(T,0),T=v.translate(T,0,1,0,1),k.push({isNull:!0,plotX:x.translate(A,0,0,0,1),x:A,plotY:T,yBottom:T})}})}return k}}return p.defaultOptions=d(l.defaultOptions,r),c(p.prototype,{singleStacks:!1}),s.registerSeriesType("area",p),p}),i(n,"Series/Spline/SplineSeries.js",[n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s){let{line:a}=r.seriesTypes,{merge:l,pick:c}=s;class d extends a{getPointSpline(h,p,y){let m,w,k,b,x=p.plotX||0,v=p.plotY||0,E=h[y-1],N=h[y+1];function S($){return $&&!$.isNull&&$.doCurve!==!1&&!p.isCliff}if(S(E)&&S(N)){let $=E.plotX||0,V=E.plotY||0,I=N.plotX||0,A=N.plotY||0,L=0;m=(1.5*x+$)/2.5,w=(1.5*v+V)/2.5,k=(1.5*x+I)/2.5,b=(1.5*v+A)/2.5,k!==m&&(L=(b-w)*(k-x)/(k-m)+v-b),w+=L,b+=L,w>V&&w>v?(w=Math.max(V,v),b=2*v-w):w<V&&w<v&&(w=Math.min(V,v),b=2*v-w),b>A&&b>v?(b=Math.max(A,v),w=2*v-b):b<A&&b<v&&(b=Math.min(A,v),w=2*v-b),p.rightContX=k,p.rightContY=b,p.controlPoints={low:[m,w],high:[k,b]}}let _=["C",c(E.rightContX,E.plotX,0),c(E.rightContY,E.plotY,0),c(m,x,0),c(w,v,0),x,v];return E.rightContX=E.rightContY=void 0,_}}return d.defaultOptions=l(a.defaultOptions),r.registerSeriesType("spline",d),d}),i(n,"Series/AreaSpline/AreaSplineSeries.js",[n["Series/Spline/SplineSeries.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s,a){let{area:l,area:{prototype:c}}=s.seriesTypes,{extend:d,merge:u}=a;class h extends r{}return h.defaultOptions=u(r.defaultOptions,l.defaultOptions),d(h.prototype,{getGraphPath:c.getGraphPath,getStackPoints:c.getStackPoints,drawGraph:c.drawGraph}),s.registerSeriesType("areaspline",h),h}),i(n,"Series/Column/ColumnSeriesDefaults.js",[],function(){return{borderRadius:3,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}}),i(n,"Series/Column/ColumnSeries.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Color/Color.js"],n["Series/Column/ColumnSeriesDefaults.js"],n["Core/Globals.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s,a,l,c,d,u){let{animObject:h}=r,{parse:p}=s,{noop:y}=l,{clamp:m,crisp:w,defined:k,extend:b,fireEvent:x,isArray:v,isNumber:E,merge:N,pick:S,objectEach:_}=u;class $ extends c{animate(I){let A,L,T=this,g=this.yAxis,f=g.pos,j=g.reversed,P=T.options,{clipOffset:C,inverted:D}=this.chart,M={},z=D?"translateX":"translateY";I&&C?(M.scaleY=.001,L=m(g.toPixels(P.threshold),f,f+g.len),D?(L+=j?-Math.floor(C[0]):Math.ceil(C[2]),M.translateX=L-g.len):(L+=j?Math.ceil(C[0]):-Math.floor(C[2]),M.translateY=L),T.clipBox&&T.setClip(),T.group.attr(M)):(A=Number(T.group.attr(z)),T.group.animate({scaleY:1},b(h(T.options.animation),{step:function(J,F){T.group&&(M[z]=A+F.pos*(f-A),T.group.attr(M))}})))}init(I,A){super.init.apply(this,arguments);let L=this;(I=L.chart).hasRendered&&I.series.forEach(function(T){T.type===L.type&&(T.isDirty=!0)})}getColumnMetrics(){var q,U;let I=this,A=I.options,L=I.xAxis,T=I.yAxis,g=L.options.reversedStacks,f=L.reversed&&!g||!L.reversed&&g,j={},P,C=0;A.grouping===!1?C=1:I.chart.series.forEach(function(Q){let ce,H=Q.yAxis,B=Q.options;Q.type===I.type&&Q.reserveSpace()&&T.len===H.len&&T.pos===H.pos&&(B.stacking&&B.stacking!=="group"?(j[P=Q.stackKey]===void 0&&(j[P]=C++),ce=j[P]):B.grouping!==!1&&(ce=C++),Q.columnIndex=ce)});let D=Math.min(Math.abs(L.transA)*(!((q=L.brokenAxis)!=null&&q.hasBreaks)&&((U=L.ordinal)==null?void 0:U.slope)||A.pointRange||L.closestPointRange||L.tickInterval||1),L.len),M=D*A.groupPadding,z=(D-2*M)/(C||1),J=Math.min(A.maxPointWidth||L.len,S(A.pointWidth,z*(1-2*A.pointPadding))),F=(I.columnIndex||0)+(f?1:0);return I.columnMetrics={width:J,offset:(z-J)/2+(M+F*z-D/2)*(f?-1:1),paddedWidth:z,columnCount:C},I.columnMetrics}crispCol(I,A,L,T){let g=this.borderWidth,f=this.chart.inverted;
vendor: 4,219 bytes, line 180
180return T=w(A+T,g,f)-(A=w(A,g,f)),this.options.crisp&&(L=w(I+L,g)-(I=w(I,g))),{x:I,y:A,width:L,height:T}}adjustForMissingColumns(I,A,L,T){var g;if(!L.isNull&&T.columnCount>1){let f=this.xAxis.series.filter(D=>D.visible).map(D=>D.index),j=0,P=0;_((g=this.xAxis.stacking)==null?void 0:g.stacks,D=>{if(typeof L.x=="number"){let M=D[L.x.toString()];if(M&&v(M.points[this.index])){let z=Object.keys(M.points).filter(J=>!J.match(",")&&M.points[J]&&M.points[J].length>1).map(parseFloat).filter(J=>f.indexOf(J)!==-1).sort((J,F)=>F-J);j=z.indexOf(this.index),P=z.length}}}),j=this.xAxis.reversed?P-1-j:j;let C=(P-1)*T.paddedWidth+A;I=(L.plotX||0)+C/2-A-j*T.paddedWidth}return I}translate(){let I=this,A=I.chart,L=I.options,T=I.dense=I.closestPointRange*I.xAxis.transA<2,g=I.borderWidth=S(L.borderWidth,T?0:1),f=I.xAxis,j=I.yAxis,P=L.threshold,C=S(L.minPointLength,5),D=I.getColumnMetrics(),M=D.width,z=I.pointXOffset=D.offset,J=I.dataMin,F=I.dataMax,q=I.translatedThreshold=j.getThreshold(P),U=I.barW=Math.max(M,1+2*g);L.pointPadding&&(U=Math.ceil(U)),c.prototype.translate.apply(I),I.points.forEach(function(Q){let ce=S(Q.yBottom,q),H=999+Math.abs(ce),B=Q.plotX||0,K=m(Q.plotY,-H,j.len+H),ie,R=Math.min(K,ce),G=Math.max(K,ce)-R,W=M,Y=B+z,X=U;C&&Math.abs(G)<C&&(G=C,ie=!j.reversed&&!Q.negative||j.reversed&&Q.negative,E(P)&&E(F)&&Q.y===P&&F<=P&&(j.min||0)<P&&(J!==F||(j.max||0)<=P)&&(ie=!ie,Q.negative=!Q.negative),R=Math.abs(R-q)>C?ce-C:q-(ie?C:0)),k(Q.options.pointWidth)&&(Y-=Math.round(((W=X=Math.ceil(Q.options.pointWidth))-M)/2)),L.centerInCategory&&!L.stacking&&(Y=I.adjustForMissingColumns(Y,W,Q,D)),Q.barX=Y,Q.pointWidth=W,Q.tooltipPos=A.inverted?[m(j.len+j.pos-A.plotLeft-K,j.pos-A.plotLeft,j.len+j.pos-A.plotLeft),f.len+f.pos-A.plotTop-Y-X/2,G]:[f.left-A.plotLeft+Y+X/2,m(K+j.pos-A.plotTop,j.pos-A.plotTop,j.len+j.pos-A.plotTop),G],Q.shapeType=I.pointClass.prototype.shapeType||"roundedRect",Q.shapeArgs=I.crispCol(Y,Q.isNull?q:R,X,Q.isNull?0:G)}),x(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(I,A){let L=this.options,T=this.pointAttrToOptions||{},g=T.stroke||"borderColor",f=T["stroke-width"]||"borderWidth",j,P,C,D=I&&I.color||this.color,M=I&&I[g]||L[g]||D,z=I&&I.options.dashStyle||L.dashStyle,J=I&&I[f]||L[f]||this[f]||0,F=S(I&&I.opacity,L.opacity,1);I&&this.zones.length&&(P=I.getZone(),D=I.options.color||P&&(P.color||I.nonZonedColor)||this.color,P&&(M=P.borderColor||M,z=P.dashStyle||z,J=P.borderWidth||J)),A&&I&&(C=(j=N(L.states[A],I.options.states&&I.options.states[A]||{})).brightness,D=j.color||C!==void 0&&p(D).brighten(j.brightness).get()||D,M=j[g]||M,J=j[f]||J,z=j.dashStyle||z,F=S(j.opacity,F));let q={fill:D,stroke:M,"stroke-width":J,opacity:F};return z&&(q.dashstyle=z),q}drawPoints(I=this.points){let A,L=this,T=this.chart,g=L.options,f=T.renderer,j=g.animationLimit||250;I.forEach(function(P){let C=P.plotY,D=P.graphic,M=!!D,z=D&&T.pointCount<j?"animate":"attr";E(C)&&P.y!==null?(A=P.shapeArgs,D&&P.hasNewShapeType()&&(D=D.destroy()),L.enabledDataSorting&&(P.startXPos=L.xAxis.reversed?-(A&&A.width||0):L.xAxis.width),!D&&(P.graphic=D=f[P.shapeType](A).add(P.group||L.group),D&&L.enabledDataSorting&&T.hasRendered&&T.pointCount<j&&(D.attr({x:P.startXPos}),M=!0,z="animate")),D&&M&&D[z](N(A)),T.styledMode||D[z](L.pointAttribs(P,P.selected&&"select")).shadow(P.allowShadow!==!1&&g.shadow),D&&(D.addClass(P.getClassName(),!0),D.attr({visibility:P.visible?"inherit":"hidden"}))):D&&(P.graphic=D.destroy())})}drawTracker(I=this.points){let A,L=this,T=L.chart,g=T.pointer,f=function(j){let P=g==null?void 0:g.getPointFromEvent(j);g&&P&&L.options.enableMouseTracking&&(g.isDirectTouch=!0,P.onMouseOver(j))};I.forEach(function(j){A=v(j.dataLabels)?j.dataLabels:j.dataLabel?[j.dataLabel]:[],j.graphic&&(j.graphic.element.point=j),A.forEach(function(P){(P.div||P.element).point=j})}),L._hasTracking||(L.trackerGroups.forEach(function(j){L[j]&&(L[j].addClass("highcharts-tracker").on("mouseover",f).on("mouseout",function(P){g==null||g.onTrackerMouseOut(P)}).on("touchstart",f),!T.styledMode&&L.options.cursor&&L[j].css({cursor:L.options.cursor}))}),L._hasTracking=!0),x(this,"afterDrawTracker")}remove(){let I=this,A=I.chart;
180A.hasRendered&&A.series.forEach(function(L){L.type===I.type&&(L.isDirty=!0)}),c.prototype.remove.apply(I,arguments)}}return $.defaultOptions=N(c.defaultOptions,a),b($.prototype,{directTouch:!0,getSymbol:y,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),d.registerSeriesType("column",$),$}),i(n,"Core/Series/DataLabel.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Templating.js"],n["Core/Utilities.js"]],function(r,s,a){var l;let{getDeferredAnimation:c}=r,{format:d}=s,{defined:u,extend:h,fireEvent:p,isArray:y,isString:m,merge:w,objectEach:k,pick:b,pInt:x,splat:v}=a;return function(E){function N(){return L(this).some(g=>g==null?void 0:g.enabled)}function S(g,f,j,P,C){var K;let{chart:D,enabledDataSorting:M}=this,z=this.isCartesian&&D.inverted,J=g.plotX,F=g.plotY,q=j.rotation||0,U=u(J)&&u(F)&&D.isInsidePlot(J,Math.round(F),{inverted:z,paneCoordinates:!0,series:this}),Q=q===0&&b(j.overflow,M?"none":"justify")==="justify",ce=this.visible&&g.visible!==!1&&u(J)&&(g.series.forceDL||M&&!Q||U||b(j.inside,!!this.options.stacking)&&P&&D.isInsidePlot(J,z?P.x+1:P.y+P.height-1,{inverted:z,paneCoordinates:!0,series:this})),H=g.pos();if(ce&&H){var B;let ie=f.getBBox(),R=f.getBBox(void 0,0),G={right:1,center:.5}[j.align||0]||0,W={bottom:1,middle:.5}[j.verticalAlign||0]||0;if(P=h({x:H[0],y:Math.round(H[1]),width:0,height:0},P||{}),j.alignTo==="plotEdges"&&this.isCartesian&&(P[z?"x":"y"]=0,P[z?"width":"height"]=((K=this.yAxis)==null?void 0:K.len)||0),h(j,{width:ie.width,height:ie.height}),B=P,M&&this.xAxis&&!Q&&this.setDataLabelStartPos(g,f,C,U,B),f.align(w(j,{width:R.width,height:R.height}),!1,P,!1),f.alignAttr.x+=G*(R.width-ie.width),f.alignAttr.y+=W*(R.height-ie.height),f[f.placed?"animate":"attr"]({x:f.alignAttr.x+(ie.width-R.width)/2,y:f.alignAttr.y+(ie.height-R.height)/2,rotationOriginX:(f.width||0)/2,rotationOriginY:(f.height||0)/2}),Q&&P.height>=0)this.justifyDataLabel(f,j,f.alignAttr,ie,P,C);else if(b(j.crop,!0)){let{x:Y,y:X}=f.alignAttr;ce=D.isInsidePlot(Y,X,{paneCoordinates:!0,series:this})&&D.isInsidePlot(Y+ie.width-1,X+ie.height-1,{paneCoordinates:!0,series:this})}j.shape&&!q&&f[C?"attr":"animate"]({anchorX:H[0],anchorY:H[1]})}C&&M&&(f.placed=!1),ce||M&&!Q?(f.show(),f.placed=!0):(f.hide(),f.placed=!1)}function _(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function $(g){let f=this.hasRendered||0,j=this.initDataLabelsGroup().attr({opacity:+f});return!f&&j&&(this.visible&&j.show(),this.options.animation?j.animate({opacity:1},g):j.attr({opacity:1})),j}function V(g){var ce;let f;g=g||this.points;let j=this,P=j.chart,C=j.options,D=P.renderer,{backgroundColor:M,plotBackgroun
180dColor:z}=P.options.chart,J=D.getContrast(m(z)&&z||m(M)&&M||"#000000"),F=L(j),{animation:q,defer:U}=F[0],Q=U?c(P,q,j):{defer:0,duration:0};p(this,"drawDataLabels"),(ce=j.hasDataLabels)!=null&&ce.call(j)&&(f=this.initDataLabels(Q),g.forEach(H=>{var ie,R;let B=H.dataLabels||[];v(A(F,H.dlOptions||((ie=H.options)==null?void 0:ie.dataLabels))).forEach((G,W)=>{let Y=G.enabled&&(H.visible||H.dataLabelOnHidden)&&(!H.isNull||H.dataLabelOnNull)&&function(ue,me){let ge=me.filter;if(ge){let be=ge.operator,ve=ue[ge.property],we=ge.value;return be===">"&&ve>we||be==="<"&&ve<we||be===">="&&ve>=we||be==="<="&&ve<=we||be==="=="&&ve==we||be==="==="&&ve===we||be==="!="&&ve!=we||be==="!=="&&ve!==we}return!0}(H,G),{backgroundColor:X,borderColor:re,distance:ee,style:se={}}=G,oe,he,pe,ne,te={},ae=B[W],le=!ae,de;Y&&(he=b(G[H.formatPrefix+"Format"],G.format),oe=H.getLabelConfig(),pe=u(he)?d(he,oe,P):(G[H.formatPrefix+"Formatter"]||G.formatter).call(oe,G),ne=G.rotation,!P.styledMode&&(se.color=b(G.color,se.color,m(j.color)?j.color:void 0,"#000000"),se.color==="contrast"?(X!=="none"&&(de=X),H.contrastColor=D.getContrast(de!=="auto"&&de||H.color||j.color),se.color=de||!u(ee)&&G.inside||0>x(ee||0)||C.stacking?H.contrastColor:J):delete H.contrastColor,C.cursor&&(se.cursor=C.cursor)),te={r:G.borderRadius||0,rotation:ne,padding:G.padding,zIndex:1},P.styledMode||(te.fill=X==="auto"?H.color:X,te.stroke=re==="auto"?H.color:re,te["stroke-width"]=G.borderWidth),k(te,(ue,me)=>{ue===void 0&&delete te[me]})),!ae||Y&&u(pe)&&!!ae.div==!!G.useHTML&&(ae.rotation&&G.rotation||ae.rotation===G.rotation)||(ae=void 0,le=!0),Y&&u(pe)&&(ae?te.text=pe:(ae=D.label(pe,0,0,G.shape,void 0,void 0,G.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+H.colorIndex+" "+(G.className||"")+(G.useHTML?" highcharts-tracker":"")),ae&&(ae.options=G,ae.attr(te),P.styledMode?se.width&&ae.css({width:se.width,textOverflow:se.textOverflow}):ae.css(se).shadow(G.shadow),p(ae,"beforeAddingDataLabel",{labelOptions:G,point:H}),ae.added||ae.add(f),j.alignDataLabel(H,ae,G,void 0,le),ae.isActive=!0,B[W]&&B[W]!==ae&&B[W].destroy(),B[W]=ae))});let K=B.length;for(;K--;)B[K]&&B[K].isActive?B[K].isActive=!1:((R=B[K])==null||R.destroy(),B.splice(K,1));H.dataLabel=B[0],H.dataLabels=B})),p(this,"afterDrawDataLabels")}function I(g,f,j,P,C,D){let M=this.chart,z=f.align,J=f.verticalAlign,F=g.box?0:g.padding||0,q=M.inverted?this.yAxis:this.xAxis,U=q?q.left-M.plotLeft:0,Q=M.inverted?this.xAxis:this.yAxis,ce=Q?Q.top-M.plotTop:0,{x:H=0,y:B=0}=f,K,ie;return(K=(j.x||0)+F+U)<0&&(z==="right"&&H>=0?(f.align="left",f.inside=!0):H-=K,ie=!0),(K=(j.x||0)+P.width-F+U)>M.plotWidth&&(z==="left"&&H<=0?(f.align="right",f.inside=!0):H+=M.plotWidth-K,ie=!0),(K=j.y+F+ce)<0&&(J==="bottom"&&B>=0?(f.verticalAlign="top",f.inside=!0):B-=K,ie=!0),(K=(j.y||0)+P.height-F+ce)>M.plotHeight&&(J==="top"&&B<=0?(f.verticalAlign="bottom",f.inside=!0):B+=M.plotHeight-K,ie=!0),ie&&(f.x=H,f.y=B,g.placed=!D,g.align(f,void 0,C)),ie}function A(g,f){let j=[],P;if(y(g)&&!y(f))j=g.map(function(C){return w(C,f)});else if(y(f)&&!y(g))j=f.map(function(C){return w(g,C)});else if(y(g)||y(f)){if(y(g)&&y(f))for(P=Math.max(g.length,f.length);P--;)j[P]=w(g[P],f[P])}else j=w(g,f);return j}function L(g){var j,P;let f=g.chart.options.plotOptions;return v(A(A((j=f==null?void 0:f.series)==null?void 0:j.dataLabels,(P=f==null?void 0:f[g.type])==null?void 0:P.dataLabels),g.options.dataLabels))}function T(g,f,j,P,C){let D=this.chart,M=D.inverted,z=this.xAxis,J=z.reversed,F=((M?f.height:f.width)||0)/2,q=g.pointWidth,U=q?q/2:0;f.startXPos=M?C.x:J?-F-U:z.width-F+U,f.startYPos=M?J?this.yAxis.height-F+U:-F-U:C.y,P?f.visibility==="hidden"&&(f.show(),f.attr({opacity:0}).animate({opacity:1})):f.attr({opacity:1}).animate({opacity:0}
180,void 0,f.hide),D.hasRendered&&(j&&f.attr({x:f.startXPos,y:f.startYPos}),f.placed=!0)}E.compose=function(g){let f=g.prototype;f.initDataLabels||(f.initDataLabels=$,f.initDataLabelsGroup=_,f.alignDataLabel=S,f.drawDataLabels=V,f.justifyDataLabel=I,f.setDataLabelStartPos=T,f.hasDataLabels=N)}}(l||(l={})),l}),i(n,"Series/Column/ColumnDataLabel.js",[n["Core/Series/DataLabel.js"],n["Core/Globals.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s,a,l){var c;let{composed:d}=s,{series:u}=a,{merge:h,pick:p,pushUnique:y}=l;return function(m){function w(k,b,x,v,E){let N=this.chart.inverted,S=k.series,_=(S.xAxis?S.xAxis.len:this.chart.plotSizeX)||0,$=(S.yAxis?S.yAxis.len:this.chart.plotSizeY)||0,V=k.dlBox||k.shapeArgs,I=p(k.below,k.plotY>p(this.translatedThreshold,$)),A=p(x.inside,!!this.options.stacking);if(V){if(v=h(V),!(x.overflow==="allow"&&x.crop===!1)){v.y<0&&(v.height+=v.y,v.y=0);let L=v.y+v.height-$;L>0&&L<v.height-1&&(v.height-=L)}N&&(v={x:$-v.y-v.height,y:_-v.x-v.width,width:v.height,height:v.width}),A||(N?(v.x+=I?0:v.width,v.width=0):(v.y+=I?v.height:0,v.height=0))}x.align=p(x.align,!N||A?"center":I?"right":"left"),x.verticalAlign=p(x.verticalAlign,N||A?"middle":I?"top":"bottom"),u.prototype.alignDataLabel.call(this,k,b,x,v,E),x.inside&&k.contrastColor&&b.css({color:k.contrastColor})}m.compose=function(k){r.compose(u),y(d,"ColumnDataLabel")&&(k.prototype.alignDataLabel=w)}}(c||(c={})),c}),i(n,"Series/Bar/BarSeries.js",[n["Series/Column/ColumnSeries.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s,a){let{extend:l,merge:c}=a;class d extends r{}return d.defaultOptions=c(r.defaultOptions,{}),l(d.prototype,{inverted:!0}),s.registerSeriesType("bar",d),d}),i(n,"Series/Scatter/ScatterSeriesDefaults.js",[],function(){return{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">â</span> <span style="font-size: 0.8em"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}}),i(n,"Series/Scatter/ScatterSeries.js",[n["Series/Scatter/ScatterSeriesDefaults.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s,a){let{column:l,line:c}=s.seriesTypes,{addEvent:d,extend:u,merge:h}=a;class p extends c{applyJitter(){let m=this,w=this.options.jitter,k=this.points.length;w&&this.points.forEach(function(b,x){["x","y"].forEach(function(v,E){if(w[v]&&!b.isNull){let N=`plot${v.toUpperCase()}`,S=m[`${v}Axis`],_=w[v]*S.transA;if(S&&!S.logarithmic){let $=Math.max(0,(b[N]||0)-_),V=Math.min(S.len,(b[N]||0)+_);b[N]=$+(V-$)*function(I){let A=1e4*Math.sin(I);return A-Math.floor(A)}(x+E*k),v==="x"&&(b.clientX=b.plotX)}}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}return p.defaultOptions=h(c.defaultOptions,r),u(p.prototype,{drawTracker:l.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),d(p,"afterTranslate",function(){this.applyJitter()}),s.registerSeriesType("scatter",p),p}),i(n,"Series/CenteredUtilities.js",[n["Core/Globals.js"],n["Core/Series/Series.js"],n["Core/Utilities.js"]],function(r,s,a){var l,c;let{deg2rad:d}=r,{fireEvent:u,isNumber:h,pick:p,relativeLength:y}=a;return(c=l||(l={})).getCenter=function(){let m=this.options,w=this.chart,k=2*(m.slicedOffset||0),b=w.plotWidth-2*k,x=w.plotHeight-2*k,v=m.center,E=Math.min(b,x),N=m.thickness,S,_=m.size,$=m.innerSize||0,V,I;typeof _=="string"&&(_=parseFloat(_)),typeof $=="string"&&($=parseFloat($));let A=[p(v[0],"50%"),p(v[1],"50%"),p(_&&_<0?void 0:m.size,"100%"),p($&&$<0?void 0:m.innerSize||0,"0%")];for(!w.angular||this instanceof s||(A[3]=0),V=0;V<4;++V)I=A[V],S=V<2||V===2&&/%$/.test(I),A[V]=y(I,[b,x,E,A[2]][V])+(S?k:0);return A[3]>A[2]&&(A[3]=A[2]),h(N)&&2*N<A[2]&&N>0&&(A[3]=A[2]-2*N),u(this,"afterGetCenter",{positions:A}),A},c.getStartAndEndRadians=function(m,w){let k=h(m)?m:0,b=h(w)&&w>k&&w-k<360?w:k+360;return{start:d*(k+-90),end:d*(b+-90)}},l}),i(n,"Series/Pie/PiePoint.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Series/Point.js"],n["Core/Utilities.js"]],function(r,s,a){let{setAnimation:l}=r,{addEvent:c,defined:d,extend:u,isNumber:h,pick:p,relativeLength:y}=a;class m extends s{getConnectorPath(k){let b=k.dataLabelPosition,x=k.options||{},v=x.connectorShape,E=this.connectorShapes[v]||v;return b&&E.call(this,{...b.computed,alignment:b.alignment},b.connectorPosition,x)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(k){let b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+k,b.r+k,{innerR:b.r-1,start:b.start,end:b.end,borderRadius:b.borderRadius})}constructor(k,b,x){super(k,b,x),this.half=0,this.name??(this.name="Slice");let v=E=>{this.slice(E.type==="select")};c(this,"select",v),c(this,"unselect",v)}isValid(){return h(this.y)&&this.y>=0}setVisible(k,b=!0){k!==this.visible&&this.update({visible:k??!this.visible},b,void 0,!1)}slice(k,b,x){let v=this.series;l(x,v.chart),b=p(b,!0),this.sliced=this.options.sliced=k=d(k)?k:!this.sliced,v.options.data[v.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}return u(m.prototype,{connectorShapes:{fixedOffset:function(w,k,b){let x=k.breakAt,v=k.touchingSliceAt,E=b.softConnector?["C",w.x+(w.alignment==="left"?-5:5),w.y,2*x.x-v.x,2*x.y-v.y,x.x,x.y]:["L",x.x,x.y];return[["M",w.x,w.y],E,["L",v.x,v.y]]},straight:function(w,k){let b=k.touchingSliceAt;return[["M",w.x,w.y],["L",b.x,b.y]]},crookedLine:function(w,k,b){let{breakAt:x,touchingSliceAt:v}=k,{series:E}=this,[N,S,_]=E.center,$=_/2,{plotLeft:V,plotWidth:I}
vendor: 4,595 bytes, line 180
180=E.chart,A=w.alignment==="left",{x:L,y:T}=w,g=x.x;if(b.crookDistance){let j=y(b.crookDistance,1);g=A?N+$+(I+V-N-$)*(1-j):V+(N-$)*j}else g=N+(S-T)*Math.tan((this.angle||0)-Math.PI/2);let f=[["M",L,T]];return(A?g<=L&&g>=x.x:g>=L&&g<=x.x)&&f.push(["L",g,T]),f.push(["L",x.x,x.y],["L",v.x,v.y]),f}}}),m}),i(n,"Series/Pie/PieSeriesDefaults.js",[],function(){return{borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),i(n,"Series/Pie/PieSeries.js",[n["Series/CenteredUtilities.js"],n["Series/Column/ColumnSeries.js"],n["Core/Globals.js"],n["Series/Pie/PiePoint.js"],n["Series/Pie/PieSeriesDefaults.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/Symbols.js"],n["Core/Utilities.js"]],function(r,s,a,l,c,d,u,h,p){let{getStartAndEndRadians:y}=r,{noop:m}=a,{clamp:w,extend:k,fireEvent:b,merge:x,pick:v}=p;class E extends d{animate(S){let _=this,$=_.points,V=_.startAngleRad;S||$.forEach(function(I){let A=I.graphic,L=I.shapeArgs;A&&L&&(A.attr({r:v(I.startR,_.center&&_.center[3]/2),start:V,end:V}),A.animate({r:L.r,start:L.start,end:L.end},_.options.animation))})}drawEmpty(){let S,_,$=this.startAngleRad,V=this.endAngleRad,I=this.options;this.total===0&&this.center?(S=this.center[0],_=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(S,_,this.center[1]/2,0,$,V).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:h.arc(S,_,this.center[2]/2,0,{start:$,end:V,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":I.borderWidth,fill:I.fillColor||"none",stroke:I.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){let S=this.chart.renderer;this.points.forEach(function(_){_.graphic&&_.hasNewShapeType()&&(_.graphic=_.graphic.destroy()),_.graphic||(_.graphic=S[_.shapeType](_.shapeArgs).add(_.series.group),_.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(S,_,$,V){let I=this.center,A=this.radii?this.radii[$.index]||0:I[2]/2,L=V.dataLabelPosition,T=(L==null?void 0:L.distance)||0,g=Math.asin(w((S-I[1])/(A+T),-1,1));return I[0]+Math.cos(g)*(A+T)*(_?-1:1)+(T>0?(_?-1:1)*(V.padding||0):0)}hasData(){return!!this.processedXData.length}redrawPoints(){let S,_,$,V,I=this,A=I.chart;this.drawEmpty(),I.group&&!A.styledMode&&I.group.shadow(I.options.shadow),I.points.forEach(function(L){let T={};_=L.graphic,!L.isNull&&_?(V=L.shapeArgs,S=L.getTranslate(),A.styledMode||($=I.pointAttribs(L,L.selected&&"select")),L.delayedRendering?(_.setRadialReference(I.center).attr(V).attr(S),A.styledMode||_.attr($).attr({"stroke-linejoin":"round"}),L.delayedRendering=!1):(_.setRadialReference(I.center),A.styledMode||x(!0,T,$),x(!0,T,V,S),_.animate(T)),_.attr({visibility:L.visible?"inherit":"hidden"}),_.addClass(L.getClassName(),!0)):_&&(L.graphic=_.destroy())})}sortByAngle(S,_){S.sort(function($,V){return $.angle!==void 0&&(V.angle-$.angle)*_})}translate(S){b(this,"translate"),this.generatePoints();let _=this.options,$=_.slicedOffset,V=y(_.startAngle,_.endAngle),I=this.startAngleRad=V.start,A=(this.endAngleRad=V.end)-I,L=this.points,T=_.ignoreHiddenPoint,g=L.length,f,j,P,C,D,M,z,J=0;for(S||(this.center=S=this.getCenter()),M=0;M<g;M++){z=L[M],f=I+J*A,z.isValid()&&(!T||z.visible)&&(J+=z.percentage/100),j=I+J*A;let F={x:S[0],y:S[1],r:S[2]/2,innerR:S[3]/2,start:Math.round(1e3*f)/1e3,end:Math.round(1e3*j)/1e3};z.shapeType="arc",z.shapeArgs=F,(P=(j+f)/2)>1.5*Math.PI?P-=2*Math.PI:P<-Math.PI/2&&(P+=2*Math.PI),z.slicedTranslation={translateX:Math.round(Math.cos(P)*$),translateY:Math.round(Math.sin(P)*$)},C=Math.cos(P)*S[2]/2,D=Math.sin(P)*S[2]/2,z.tooltipPos=[S[0]+.7*C,S[1]+.7*D],z.half=P<-Math.PI/2||P>Math.PI/2?1:0,z.angle=P}b(this,"afterTranslate")}updateTotals(){let S=this.points,_=S.length,$=this.options.ignoreHiddenPoint,V,I,A=0;for(V=0;V<_;V++)(I=S[V]).isValid()&&(!$||I.visible)&&(A+=I.y);for(V=0,this.total=A;V<_;V++)(I=S[V]).percentage=A>0&&(I.visible||!$)?I.y/A*100:0,I.total=A}}return E.defaultOptions=x(d.defaultOptions,c),k(E.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:s.prototype.drawTracker,getCenter:r.getCenter,getSymbol:m,invert
180ible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:s.prototype.pointAttribs,pointClass:l,requireSorting:!1,searchPoint:m,trackerGroups:["group","dataLabelsGroup"]}),u.registerSeriesType("pie",E),E}),i(n,"Series/Pie/PieDataLabel.js",[n["Core/Series/DataLabel.js"],n["Core/Globals.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(r,s,a,l,c){var d;let{composed:u,noop:h}=s,{distribute:p}=a,{series:y}=l,{arrayMax:m,clamp:w,defined:k,pick:b,pushUnique:x,relativeLength:v}=c;return function(E){let N={radialDistributionY:function(I,A){var L;return(((L=A.dataLabelPosition)==null?void 0:L.top)||0)+I.distributeBox.pos},radialDistributionX:function(I,A,L,T,g){let f=g.dataLabelPosition;return I.getX(L<((f==null?void 0:f.top)||0)+2||L>((f==null?void 0:f.bottom)||0)-2?T:L,A.half,A,g)},justify:function(I,A,L,T){var g;return T[0]+(I.half?-1:1)*(L+(((g=A.dataLabelPosition)==null?void 0:g.distance)||0))},alignToPlotEdges:function(I,A,L,T){let g=I.getBBox().width;return A?g+T:L-g-T},alignToConnectors:function(I,A,L,T){let g=0,f;return I.forEach(function(j){(f=j.dataLabel.getBBox().width)>g&&(g=f)}),A?g+T:L-g-T}};function S(I,A){let{center:L,options:T}=this,g=L[2]/2,f=I.angle||0,j=Math.cos(f),P=Math.sin(f),C=L[0]+j*g,D=L[1]+P*g,M=Math.min((T.slicedOffset||0)+(T.borderWidth||0),A/5);
vendor: 4,653 bytes, line 180
180return{natural:{x:C+j*A,y:D+P*A},computed:{},alignment:A<0?"center":I.half?"right":"left",connectorPosition:{breakAt:{x:C+j*M,y:D+P*M},touchingSliceAt:{x:C,y:D}},distance:A}}function _(){var ce;let I=this,A=I.points,L=I.chart,T=L.plotWidth,g=L.plotHeight,f=L.plotLeft,j=Math.round(L.chartWidth/3),P=I.center,C=P[2]/2,D=P[1],M=[[],[]],z=[0,0,0,0],J=I.dataLabelPositioners,F,q,U,Q=0;I.visible&&((ce=I.hasDataLabels)!=null&&ce.call(I))&&(A.forEach(H=>{(H.dataLabels||[]).forEach(B=>{B.shortened&&(B.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),B.shortened=!1)})}),y.prototype.drawDataLabels.apply(I),A.forEach(H=>{(H.dataLabels||[]).forEach((B,K)=>{var W;let ie=P[2]/2,R=B.options,G=v((R==null?void 0:R.distance)||0,ie);K===0&&M[H.half].push(H),!k((W=R==null?void 0:R.style)==null?void 0:W.width)&&B.getBBox().width>j&&(B.css({width:Math.round(.7*j)+"px"}),B.shortened=!0),B.dataLabelPosition=this.getDataLabelPosition(H,G),Q=Math.max(Q,G)})}),M.forEach((H,B)=>{let K=H.length,ie=[],R,G,W=0,Y;K&&(I.sortByAngle(H,B-.5),Q>0&&(R=Math.max(0,D-C-Q),G=Math.min(D+C+Q,L.plotHeight),H.forEach(X=>{(X.dataLabels||[]).forEach(re=>{var se;let ee=re.dataLabelPosition;ee&&ee.distance>0&&(ee.top=Math.max(0,D-C-ee.distance),ee.bottom=Math.min(D+C+ee.distance,L.plotHeight),W=re.getBBox().height||21,re.lineHeight=L.renderer.fontMetrics(re.text||re).h+2*re.padding,X.distributeBox={target:(((se=re.dataLabelPosition)==null?void 0:se.natural.y)||0)-ee.top+re.lineHeight/2,size:W,rank:X.y},ie.push(X.distributeBox))})}),p(ie,Y=G+W-R,Y/5)),H.forEach(X=>{(X.dataLabels||[]).forEach(re=>{let ee=re.options||{},se=X.distributeBox,oe=re.dataLabelPosition,he=(oe==null?void 0:oe.natural.y)||0,pe=ee.connectorPadding||0,ne=re.lineHeight||21,te=(ne-re.getBBox().height)/2,ae=0,le=he,de="inherit";if(oe){if(ie&&k(se)&&oe.distance>0&&(se.pos===void 0?de="hidden":(U=se.size,le=J.radialDistributionY(X,re))),ee.justify)ae=J.justify(X,re,C,P);else switch(ee.alignTo){case"connectors":ae=J.alignToConnectors(H,B,T,f);break;case"plotEdges":ae=J.alignToPlotEdges(re,B,T,f);break;default:ae=J.radialDistributionX(I,X,le-te,he,re)}if(oe.attribs={visibility:de,align:oe.alignment},oe.posAttribs={x:ae+(ee.x||0)+({left:pe,right:-pe}[oe.alignment]||0),y:le+(ee.y||0)-ne/2},oe.computed.x=ae,oe.computed.y=le-te,b(ee.crop,!0)){let ue;ae-(q=re.getBBox().width)<pe&&B===1?(ue=Math.round(q-ae+pe),z[3]=Math.max(ue,z[3])):ae+q>T-pe&&B===0&&(ue=Math.round(ae+q-T+pe),z[1]=Math.max(ue,z[1])),le-U/2<0?z[0]=Math.max(Math.round(-le+U/2),z[0]):le+U/2>g&&(z[2]=Math.max(Math.round(le+U/2-g),z[2])),oe.sideOverflow=ue}}})}))}),(m(z)===0||this.verifyDataLabelOverflow(z))&&(this.placeDataLabels(),this.points.forEach(H=>{(H.dataLabels||[]).forEach(B=>{var G;let{connectorColor:K,connectorWidth:ie=1}=B.options||{},R=B.dataLabelPosition;if(ie){let W;F=B.connector,R&&R.distance>0?(W=!F,F||(B.connector=F=L.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+H.colorIndex+(H.className?" "+H.className:"")).add(I.dataLabelsGroup)),L.styledMode||F.attr({"stroke-width":ie,stroke:K||H.color||"#666666"}),F[W?"attr":"animate"]({d:H.getConnectorPath(B)}),F.attr({visibility:(G=R.attribs)==null?void 0:G.visibility})):F&&(B.connector=F.destroy())}})})))}function $(){this.points.forEach(I=>{(I.dataLabels||[]).forEach(A=>{var T;let L=A.dataLabelPosition;L?(L.sideOverflow&&(A.css({width:Math.max(A.getBBox().width-L.sideOverflow,0)+"px",textOverflow:(((T=A.options)==null?void 0:T.style)||{}).textOverflow||"ellipsis"}),A.shortened=!0),A.attr(L.attribs),A[A.moved?"animate":"attr"](L.posAttribs),A.moved=!0):A&&A.attr({y:-9999})}),delete I.distributeBox},this)}function V(I){let A=this.center,L=this.options,T=L.center,g=L.minSize||80,f=g,j=L.size!==null;return!j&&(T[0]!==null?f=Math.max(A[2]-Math.max(I[1],I[3]),g):(f=Math.max(A[2]-I[1]-I[3],g),A[0]+=(I[3]-I[1])/2),T[1]!==null?f=w(f,g,A[2]-Math.max(I[0],I[2])):(f=w(f,g,A[2]-I[0]-I[2]),A[1]+=(I[0]-I[2])/2),f<A[2]?(A[2]=f,A[3]=Math.min(L.thickness?Math.max(0,f-2*L.thickness):Math.max(0,v(L.innerSize||0,f)),f),this.translate(A),this.drawDataLabels&&this.drawDataLabels()):j=!0),j}E.compose=function(I){if(r.compose(y),x(u,"PieDataLabel")){let A=I.prototype;A.dataLabelPositioners=N,A.alignDataLabel=h,A.drawDataLabels=_,A.getDataLabelPosition=S,A.placeDataLabels=$,A.verifyDataLabelOverflow=V}}}(d||(d={})),d}),i(n,"Core/Geometry/GeometryUtilities.js",[],function(){var r,s;return(s=r||(r={})).getCenterOfPoints=function(a){let l=a.reduce((c,d)=>(c.x+=d.x,c.y+=d.y,c),{x:0,y:0});return{x:l.x/a.length,y:l.y/a.length}},s.getDistanceBetweenPoints=function(a,l){return Math.sqrt(Math.pow(l.x-a.x,2)+Math.pow(l.y-a.y,2))}
180,s.getAngleBetweenPoints=function(a,l){return Math.atan2(l.x-a.x,l.y-a.y)},s.pointInPolygon=function({x:a,y:l},c){let d=c.length,u,h,p=!1;for(u=0,h=d-1;u<d;h=u++){let[y,m]=c[u],[w,k]=c[h];m>l!=k>l&&a<(w-y)*(l-m)/(k-m)+y&&(p=!p)}return p},r}),i(n,"Extensions/OverlappingDataLabels.js",[n["Core/Geometry/GeometryUtilities.js"],n["Core/Utilities.js"]],function(r,s){let{pointInPolygon:a}=r,{addEvent:l,fireEvent:c,objectEach:d,pick:u}=s;function h(m){let w=m.length,k=($,V)=>!(V.x>=$.x+$.width||V.x+V.width<=$.x||V.y>=$.y+$.height||V.y+V.height<=$.y),b=($,V)=>{for(let I of $)if(a({x:I[0],y:I[1]},V))return!0;return!1},x,v,E,N,S,_=!1;for(let $=0;$<w;$++)(x=m[$])&&(x.oldOpacity=x.opacity,x.newOpacity=1,x.absoluteBox=function(V){var I,A;if(V&&(!V.alignAttr||V.placed)){let L=V.box?0:V.padding||0,T=V.alignAttr||{x:V.attr("x"),y:V.attr("y")},g=V.getBBox();return V.width=g.width,V.height=g.height,{x:T.x+(((I=V.parentGroup)==null?void 0:I.translateX)||0)+L,y:T.y+(((A=V.parentGroup)==null?void 0:A.translateY)||0)+L,width:(V.width||0)-2*L,height:(V.height||0)-2*L,polygon:g==null?void 0:g.polygon}}}(x));m.sort(($,V)=>(V.labelrank||0)-($.labelrank||0));for(let $=0;$<w;++$){N=(v=m[$])&&v.absoluteBox;let V=N==null?void 0:N.polygon;for(let I=$+1;I<w;++I){S=(E=m[I])&&E.absoluteBox;let A=!1;if(N&&S&&v!==E&&v.newOpacity!==0&&E.newOpacity!==0&&v.visibility!=="hidden"&&E.visibility!=="hidden"){let L=S.polygon;if(V&&L&&V!==L?b(V,L)&&(A=!0):k(N,S)&&(A=!0),A){let T=v.labelrank<E.labelrank?v:E,g=T.text;T.newOpacity=0,g!=null&&g.element.querySelector("textPath")&&g.hide()}}}}for(let $ of m)p($,this)&&(_=!0);_&&c(this,"afterHideAllOverlappingLabels")}function p(m,w){let k,b,x=!1;return m&&(b=m.newOpacity,m.oldOpacity!==b&&(m.hasClass("highcharts-data-label")?(m[b?"removeClass":"addClass"]("highcharts-data-label-hidden"),k=function(){w.styledMode||m.css({pointerEvents:b?"auto":"none"})},x=!0,m[m.isOld?"animate":"attr"]({opacity:b},void 0,k),c(w,"afterHideOverlappingLabel")):m.attr({opacity:b})),m.isOld=!0),x}function y(){var k;let m=this,w=[];for(let b of m.labelCollectors||[])w=w.concat(b());for(let b of m.yAxis||[])b.stacking&&b.options.stackLabels&&!b.options.stackLabels.allowOverlap&&d(b.stacking.stacks,x=>{d(x,v=>{v.label&&w.push(v.label)})});for(let b of m.series||[])if(b.visible&&((k=b.hasDataLabels)!=null&&k.call(b))){let x=v=>{for(let E of v)E.visible&&(E.dataLabels||[]).forEach(N=>{var _;let S=N.options||{};N.labelrank=u(S.labelrank,E.labelrank,(_=E.shapeArgs)==null?void 0:_.height),S.allowOverlap??Number(S.distance)>0?(N.oldOpacity=N.opacity,N.newOpacity=1,p(N,m)):w.push(N)})};x(b.nodes||[]),x(b.points)}this.hideOverlappingLabels(w)}return{compose:function(m){let w=m.prototype;w.hideOverlappingLabels||(w.hideOverlappingLabels=h,l(m,"render",y))}}}
vendor: 3,923 bytes, line 180
180),i(n,"Extensions/BorderRadius.js",[n["Core/Defaults.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],function(r,s,a){let{defaultOptions:l}=r,{noop:c}=s,{addEvent:d,extend:u,isObject:h,merge:p,relativeLength:y}=a,m={radius:0,scope:"stack",where:void 0},w=c,k=c;function b(S,_,$,V,I={}){let A=w(S,_,$,V,I),{innerR:L=0,r:T=$,start:g=0,end:f=0}=I;if(I.open||!I.borderRadius)return A;let j=f-g,P=Math.sin(j/2),C=Math.max(Math.min(y(I.borderRadius||0,T-L),(T-L)/2,T*P/(1+P)),0),D=Math.min(C,j/Math.PI*2*L),M=A.length-1;for(;M--;)(function(z,J,F){let q,U,Q,ce=z[J],H=z[J+1];if(H[0]==="Z"&&(H=z[0]),(ce[0]==="M"||ce[0]==="L")&&H[0]==="A"?(q=ce,U=H,Q=!0):ce[0]==="A"&&(H[0]==="M"||H[0]==="L")&&(q=H,U=ce),q&&U&&U.params){let B=U[1],K=U[5],ie=U.params,{start:R,end:G,cx:W,cy:Y}=ie,X=K?B-F:B+F,re=X?Math.asin(F/X):0,ee=K?re:-re,se=Math.cos(re)*X;Q?(ie.start=R+ee,q[1]=W+se*Math.cos(R),q[2]=Y+se*Math.sin(R),z.splice(J+1,0,["A",F,F,0,0,1,W+B*Math.cos(ie.start),Y+B*Math.sin(ie.start)])):(ie.end=G-ee,U[6]=W+B*Math.cos(ie.end),U[7]=Y+B*Math.sin(ie.end),z.splice(J+1,0,["A",F,F,0,0,1,W+se*Math.cos(G),Y+se*Math.sin(G)])),U[4]=Math.abs(ie.end-ie.start)<Math.PI?0:1}})(A,M,M>1?D:C);return A}function x(){var S,_;if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d())){let{options:$,yAxis:V}=this,I=$.stacking==="percent",A=(_=(S=l.plotOptions)==null?void 0:S[this.type])==null?void 0:_.borderRadius,L=v($.borderRadius,h(A)?A:{}),T=V.options.reversed;for(let g of this.points){let{shapeArgs:f}=g;if(g.shapeType==="roundedRect"&&f){let{width:j=0,height:P=0,y:C=0}=f,D=C,M=P;if(L.scope==="stack"&&g.stackTotal){let q=V.translate(I?100:g.stackTotal,!1,!0,!1,!0),U=V.translate($.threshold||0,!1,!0,!1,!0),Q=this.crispCol(0,Math.min(q,U),0,Math.abs(q-U));D=Q.y,M=Q.height}let z=(g.negative?-1:1)*(T?-1:1)==-1,J=L.where;!J&&this.is("waterfall")&&Math.abs((g.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(J="all"),J||(J="end");let F=Math.min(y(L.radius,j),j/2,J==="all"?P/2:1/0)||0;J==="end"&&(z&&(D-=F),M+=F),u(f,{brBoxHeight:M,brBoxY:D,r:F})}}}}function v(S,_){return h(S)||(S={radius:S||0}),p(m,_,S)}function E(){let S=v(this.options.borderRadius);for(let _ of this.points){let $=_.shapeArgs;$&&($.borderRadius=y(S.radius,($.r||0)-($.innerR||0)))}}function N(S,_,$,V,I={}){let A=k(S,_,$,V,I),{r:L=0,brBoxHeight:T=V,brBoxY:g=_}=I,f=_-g,j=g+T-(_+V),P=f-L>-.1?0:L,C=j-L>-.1?0:L,D=Math.max(P&&f,0),M=Math.max(C&&j,0),z=[S+P,_],J=[S+$-P,_],F=[S+$,_+P],q=[S+$,_+V-C],U=[S+$-C,_+V],Q=[S+C,_+V],ce=[S,_+V-C],H=[S,_+P],B=(K,ie)=>Math.sqrt(Math.pow(K,2)-Math.pow(ie,2));if(D){let K=B(P,P-D);z[0]-=K,J[0]+=K,F[1]=H[1]=_+P-D}if(V<P-D){let K=B(P,P-D-V);F[0]=q[0]=S+$-P+K,U[0]=Math.min(F[0],U[0]),Q[0]=Math.max(q[0],Q[0]),ce[0]=H[0]=S+P-K,F[1]=H[1]=_+V}if(M){let K=B(C,C-M);U[0]+=K,Q[0]-=K,q[1]=ce[1]=_+V-C+M}if(V<C-M){let K=B(C,C-M-V);F[0]=q[0]=S+$-C+K,J[0]=Math.min(F[0],J[0]),z[0]=Math.max(q[0],z[0]),ce[0]=H[0]=S+C-K,q[1]=ce[1]=_}return A.length=0,A.push(["M",...z],["L",...J],["A",P,P,0,0,1,...F],["L",...q],["A",C,C,0,0,1,...U],["L",...Q],["A",C,C,0,0,1,...ce],["L",...H],["A",P,P,0,0,1,...z],["Z"]),A}return{compose:function(S,_,$){let V=S.types.pie;if(!_.symbolCustomAttribs.includes("borderRadius")){let I=$.prototype.symbols;d(S,"afterColumnTranslate",x,{order:9}),d(V,"afterTranslate",E),_.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY"),w=I.arc,k=I.roundedRect,I.arc=b,I.roundedRect=N}},optionsToObject:v}}),i(n,"Core/Responsive.js",[n["Core/Utilities.js"]],function(r){var s;let{diffObjects:a,extend:l,find:c,merge:d,pick:u,uniqueKey:h}=r;return function(p){function y(w,k){let b=w.condition;(b.callback||function(){return this.chartWidth<=u(b.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=u(b.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=u(b.minWidth,0)&&this.chartHeight>=u(b.minHeight,0)}).call(this)&&k.push(w._id)}function m(w,k){let b=this.options.responsive,x=this.currentResponsive,v=[],E;
180!k&&b&&b.rules&&b.rules.forEach(_=>{_._id===void 0&&(_._id=h()),this.matchResponsiveRule(_,v)},this);let N=d(...v.map(_=>c((b||{}).rules||[],$=>$._id===_)).map(_=>_&&_.chartOptions));N.isResponsiveOptions=!0,v=v.toString()||void 0;let S=x&&x.ruleIds;v===S||(x&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(x.undoOptions,w,!0),this.updatingResponsive=!1),v?((E=a(N,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:v,mergedOptions:N,undoOptions:E},this.updatingResponsive||this.update(N,w,!0)):this.currentResponsive=void 0)}p.compose=function(w){let k=w.prototype;return k.matchResponsiveRule||l(k,{matchResponsiveRule:y,setResponsive:m}),w}}(s||(s={})),s}),i(n,"masters/highcharts.src.js",[n["Core/Globals.js"],n["Core/Utilities.js"],n["Core/Defaults.js"],n["Core/Animation/Fx.js"],n["Core/Animation/AnimationUtilities.js"],n["Core/Renderer/HTML/AST.js"],n["Core/Templating.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Renderer/HTML/HTMLElement.js"],n["Core/Axis/Axis.js"],n["Core/Axis/DateTimeAxis.js"],n["Core/Axis/LogarithmicAxis.js"],n["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],n["Core/Axis/Tick.js"],n["Core/Tooltip.js"],n["Core/Series/Point.js"],n["Core/Pointer.js"],n["Core/Legend/Legend.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Chart/Chart.js"],n["Extensions/ScrollablePlotArea.js"],n["Core/Axis/Stacking/StackingAxis.js"],n["Core/Axis/Stacking/StackItem.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Series/Column/ColumnDataLabel.js"],n["Series/Pie/PieDataLabel.js"],n["Core/Series/DataLabel.js"],n["Extensions/OverlappingDataLabels.js"],n["Extensions/
180BorderRadius.js"],n["Core/Responsive.js"],n["Core/Color/Color.js"],n["Core/Time.js"]],function(r,s,a,l,c,d,u,h,p,y,m,w,k,b,x,v,E,N,S,_,$,V,I,A,L,T,g,f,j,P,C,D,M,z,J,F){return r.AST=d,r.Axis=k,r.Chart=I,r.Color=J,r.DataLabel=C,r.Fx=l,r.HTMLElement=w,r.Legend=$,r.LegendSymbol=V,r.OverlappingDataLabels=r.OverlappingDataLabels||D,r.PlotLineOrBand=v,r.Point=S,r.Pointer=_,r.RendererRegistry=h,r.Series=g,r.SeriesRegistry=f,r.StackItem=T,r.SVGElement=y,r.SVGRenderer=m,r.Templating=u,r.Tick=E,r.Time=F,r.Tooltip=N,r.animate=c.animate,r.animObject=c.animObject,r.chart=I.chart,r.color=J.parse,r.dateFormat=u.dateFormat,r.defaultOptions=a.defaultOptions,r.distribute=p.distribute,r.format=u.format,r.getDeferredAnimation=c.getDeferredAnimation,r.getOptions=a.getOptions,r.numberFormat=u.numberFormat,r.seriesType=f.seriesType,r.setAnimation=c.setAnimation,r.setOptions=a.setOptions,r.stop=c.stop,r.time=a.defaultTime,r.timers=l.timers,M.compose(r.Series,r.SVGElement,r.SVGRenderer),j.compose(r.Series.types.column),C.compose(r.Series),b.compose(r.Axis),w.compose(r.SVGRenderer),$.compose(r.Chart),x.compose(r.Axis),D.compose(r.Chart),P.compose(r.Series.types.pie),v.compose(r.Chart,r.Axis),_.compose(r.Chart),z.compose(r.Chart),A.compose(r.Axis,r.Chart,r.Series),L.compose(r.Axis,r.Chart,r.Series),N.compose(r.Pointer),s.extend(r,s),r}),n["masters/highcharts.src.js"]._modules=n,n["masters/highcharts.src.js"]})})(Dz);var Vxe=Dz.exports;const _z=Fr(Vxe),Uxe=({chartData:t,subtitle:e,height:n=200,customClass:i="p-1 w-full max-w-md mx-auto border shadow-md drop-shadow-md rounded-xl"})=>{const{t:r}=Se(["dashboard"]),s={chart:{type:"pie",backgroundColor:"transparent",height:n,className:"text-sm"},title:{text:`<p class="text-lg text-pmi-gray uppercase">${e?r(e):""}</p>`,align:"left",style:{fontWeight:"400"}},tooltip:{enabled:!1},plotOptions:{pie:{innerSize:"50%",showInLegend:!0,dataLabels:{enabled:!1}}},series:[{name:"Items",colorByPoint:!0,data:t}],legend:{layout:"vertical",align:"right",verticalAlign:"middle",itemMarginTop:10,title:{text:r(e),style:{textTransform:"uppercase",fontWeight:"bold",color:"#676767"}},itemStyle:{fontSize:"12px",fontWeight:"normal"}},credits:{enabled:!1}};return o.jsx("div",{className:`h-[${n+5}px] ${i}`,children:o.jsx(LM,{highcharts:_z,options:s})})},Iz=({title:t,chartData:e,months:n,xTitle:i="",maxTicks:r,height:s=250,customClass:a="p-1 w-full max-w-md mx-auto border shadow-md drop-shadow-md rounded-xl"})=>{const{t:l}=Se(["dashboard"]),c={chart:{type:"line",backgroundColor:"transparent",height:s,className:"text-sm"},title:{text:`<p class="text-lg text-pmi-gray uppercase">${t?l(t):""}</p>`,align:"left",style:{fontWeight:"normal"}},xAxis:{categories:n,title:{text:'<p class="text-xs text-pmi-gray uppercase">Month</p>'},labels:{style:{fontSize:"0.7rem",fontWeight:"500",color:"#676767"}},lineWidth:0},yAxis:{max:r,endOnTick:!1,title:{text:`<p class="text-xs text-pmi-gray uppercase">${l(i)}</p>`},labels:{style:{fontSize:"0.7rem",fontWeight:"500",color:"#676767"}},gridLineWidth:0},tooltip:{enabled:!1},plotOptions:{line:{dataLabels:{enabled:!0,style:{fontSize:"0.7rem",fontWeight:"500",color:"#676767",textOutline:"none"}},enableMouseTracking:!0}},legend:{enabled:!1},credits:{enabled:!1},series:[{name:"Barang",data:e,color:"#778EA3"}]};return o.jsx("div",{className:`${typeof s=="number"?`h-[${s+5}px]`:`h-[${s}]`} ${a}`,children:o.jsx(LM,{highcharts:_z,options:c})})},Wxe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Des"],Gxe=({warehouse:t,onDataLoaded:e,triggerUpdate:n,setFalseTrigger:i})=>{const{t:r}=Se(["dashboard"]),{data:s,isLoading:a,refetch:l}=Ez(t),[c,d]=Z.useState(!1),[u,h]=Z.useState({}),[p,y]=Z.useState({}),[m,w]=Z.useState({}),[k,b]=Z.useState(0),[x,v]=Z.useState(0),[E,N]=Z.useState(0);return Z.useEffect(()=>{n&&(async()=>{d(!0);try{const _=new Date().getFullYear();(await He.post("api/dashboard/update-temp-data",{year:_})).result&&l()}catch{d(!1),i(!1)}finally{d(!1),i(!1)}})()},[n]),Z.useEffect(()=>{d(a)},[a]),Z.useEffect(()=>{if(s!=null&&s.top_items&&(s==null?void 0:s.top_items.length)>0){const S=[...s==null?void 0:s.top_items.map((_,$)=>({name:_.inventory_name,y:parseFloat(_.total_item_value.toString()),color:Mo[$%Mo.length]}))];h(S)}if(s!=null&&s.sum_data&&(s!=null&&s.sum_data.dt_record)&&e(s==null?void 0:s.sum_data.dt_record),s!=null&&s.data_distribution&&(s==null?void 0:s.data_distribution.length)>0){const S={barang:s==null?void 0:s.data_distribution.map(_=>[parseFloat(_.transaction_count.toString())]),month:s==null?void 0:s.data_distribution.map(_=>[Wxe[_.month-1]])};N(Math.max(...s==null?void 0:s.data_distribution.map(_=>_.transaction_count))),y(S)}if(s!=null&&s.warehouse_weight&&(s==null?void 0:s.warehouse_weight.length)>0){b(s.warehouse_weight[0].outcoming_weight),v(s.warehouse_weight[(s==null?void 0:s.warehouse_weight.length)-1].outcoming_weight);const S={series:[{name:"dataDistribution.totalWeight",borderWidth:0,data:s.warehouse_weight.map((_,$)=>({name:_.warehouse,y:parseFloat(_.outcoming_weight.toString()),color:Mo[$%Mo.length],borderWidth:0}))}]};w(S)}},[s]),o.jsxs("div",{className:"grid grid-cols-12 gap-4 h-[100vh] overflow-y-auto pb-0 md:pb-44 lg:pb-0",children:[o.jsx("div",{className:"col-span-12 lg:col-span-5 xl:col-span-3 overflow-y-auto h-[300px] lg:h-auto lg:max-h-[74vh] 2xl:max-h-[80vh] scroll-container pr-2 mb-4 md:mb-0",children:o.jsx(Fxe,{sumDataValue:s==null?void 0:s.sum_data,isLoading:c})}),o.jsx("div",{className:"col-span-12 lg:col-span-7 xl:col-span-9 lg:overflow-y-auto lg:max-h-[74vh] 2xl:max-h-[80vh] ",children:o.jsxs("div",{className:"w-full grid grid-cols-12 gap-4",children:[o.jsx("div",{className:"col-span-12 xl:col-span-6",children:o.jsx(zxe,{categoryValue:s==null?void 0:s.category_value,warehouseValue:s==null?void 0:s.warehouse_value,aidValue:s==null?void 0:s.aid_value,isLoading:c})}),o.jsx("div",{className:"col-span-12 xl:col-span-6",children:o.jsxs("div",{className:"space-y-4",children:[c&&o.jsx(Mz,{}),!c&&!m.series&&o.jsxs("div",{className:"h-[250px] p-3 w-full mx-auto border shadow-md drop-shadow-md rounded-xl",children:[o.jsx("span",{className:"text-lg text-pmi-gray uppercase",children:r("dataDistribution.category")}),o.jsx("div",{className:"h-full flex items-center justify-center",children:o.jsx("p",{className:"text-pmi-gray text-sm italic",children:r("dataDistribution.theresNoDataToShow")})})]}),!c&&m.series&&m.series.length>0&&o.jsx(Vw,{valueType:"weight",title:"dataDistribution.totalOutgoingWeightKg",xTitle:"dataDistribution.totalWeight",data:m,maxTicks:parseFloat(k.toString()),minTicks:parseFloat(x.toString()),height:170,max:3,customClass:"p-1 w-full mx-auto border shadow-md drop-shadow-md rounded-xl"}),!c&&u.length===void 0&&o.jsxs("div",{className:"h-[250px] p-3 w-full mx-auto border shadow-md drop-shadow-md rounded-xl",children:[o.jsx("span",{className:"text-lg text-pmi-gray uppercase",children:r("dataDistribution.top5Items")}),o.jsx("div",{className:"h-full flex items-center justify-center",children:o.jsx("p",{className:"text-pmi-gray text-sm italic",children:r("dataDistribution.theresNoDataToShow")})})]}),!c&&u.length>0&&o.jsx(Uxe,{chartData:u,height:245,subtitle:"dataDistribution.top5Items",customClass:"p-1 w-full mx-auto border shadow-md drop-shadow-md rounded-xl"}),!c&&p.barang&&p.month&&p.barang.length>0&&p.month.length>0&&o.jsx(Iz,{chartData:p.barang,height:245,months:p.month,title:"dataDistribution.itemDelivery",xTitle:"dataDistribution.category",maxTicks:E+E*25/100,customClass:"p-1 w-full mx-auto border shadow-md drop-shadow-md rounded-xl"})]})})]})})]})},qxe=()=>{const[t,e]=Z.useState(""),[n,i]=Z.useState(null),[r,s]=Z.useState(!1);return o.jsxs(Cv,{title:"dataDistribution",children:[o.jsx(Oxe,{setWarehouseIndex:e,latestUpdate:n,refreshTrigger:a=>s(a)}),o.jsx(Gxe,{warehouse:t,onDataLoaded:a=>i(a),triggerUpdate:r,setFalseTrigger:a=>s(a)})]})},FM=({className:t,searchChange:e,searchClick:n})=>{const{t:i}=Se(["dashboard"]),r=Z.useRef(null),s=a=>{a.key==="Enter"&&r.current&&r.current.click()};return o.jsx("div",{className:"w-full relative space-y-2 md:pl-2 mt-3 md:mt-0",children:o.jsxs("div",{className:t,children:[o.jsx("input",{type:"text",className:"text-sm w-full bg-pmi-white border rounded-l-lg p-2 flex justify-between text-pmi-gray drop-shadow-sm focus:outline-none",placeholder:i("filter.search"),onChange:e,onKeyDown:s}),o.jsx("button",{className:"rounded-lg border-2 text-pmi-white bg-pmi-red bg-gradient-to-l from-pmi-red-light to-pmi-red-dark text-sm py-1 px-3",ref:r,onClick:n,children:o.jsx("img",{src:"/svg/search-solid.svg",alt:"reload",className:"w-5 h-5 filter brightness-0 invert"})})]})})},Kxe=async(t,e,n,i,r,s)=>{const a=await He.get(`/api/containers?category_id=${t}&province=${e}&city=${n}&warehouse=${i}&headquarter=${r}
180&searchName=${s}&groupby_inv_code=true&void=0`);if(!a)throw new Error("Network response was not ok");return a==null?void 0:a.data},Yxe=async t=>{let e="?";e+=`category_id=${t}`;const n=await He.get(`/api/containers/locations/warehouses${e}`);if(!n)throw new Error("Network response was not ok");return n==null?void 0:n.data},Xxe=async t=>{let e="?";t&&(e+=`category_id=${t}`);const n=await He.get(`/api/containers/locations/provinces${e}`);if(!n)throw new Error("Network response was not ok");return n==null?void 0:n.data},Jxe=async(t,e)=>{let n="?";e&&(n+=`category_id=${e}`);const i=await He.get(`/api/containers/locations/cities/${t}${n}`);if(!i)throw new Error("Network response was not ok");return i==null?void 0:i.data},Qxe=async()=>{const t=await He.get("/api/containers/total-data");if(!t)throw new Error("Network response was not ok");return t==null?void 0:t.data},Zxe=t=>Ge({queryKey:["warehouse"],queryFn:()=>Yxe(t),staleTime:1e3*60*60,gcTime:1e3*60*60}),Rz=t=>Ge({queryKey:["province"],queryFn:()=>Xxe(t),staleTime:1e3*60*60,gcTime:1e3*60*60}),Oz=(t,e)=>Ge({queryKey:["city",t],queryFn:()=>Jxe(t,e),staleTime:1e3*60*60,gcTime:1e3*60*60}),BM=(t,e,n,i,r,s)=>Ge({queryKey:["city",t,e,n,i,r,s],queryFn:()=>Kxe(t,e,n,i,r,s),staleTime:1e3*60*60,gcTime:1e3*60*60}),eye=()=>Ge({queryKey:[],queryFn:()=>Qxe(),staleTime:1e3*60*60,gcTime:1e3*60*60}),tye=({setProvinceIndex:t,setCityIndex:e,setFilterIndex:n,latestUpdate:i,refreshTrigger:r,loadingRequest:s,setSearchIndex:a})=>{const{language:l}=_e();let c="";l==="id"?c=new Date(i).toLocaleString("id-ID",{day:"numeric",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit"}):c=new Date(i).toLocaleString("en-US",{day:"numeric",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit"});const{t:d}=Se(["dashboard"]),[u,h]=Z.useState("all"),[p,y]=Z.useState("all"),[m,w]=Z.useState("National"),[k,b]=Z.useState(""),{data:x,isLoading:v}=Rz("2"),[E,N]=Z.useState([]),{data:S,isLoading:_}=Oz(u,"2"),[$,V]=Z.useState([]),I="bg-pmi-red bg-gradient-to-l from-pmi-red-light to-pmi-red-dark font-medium text-pmi-white text-sm px-6 py-3 rounded-lg",A="bg-pmi-white text-pmi-black text-sm px-6 py-1 rounded-lg border";Z.useEffect(()=>{if(x&&!v){const C=[{label:d("filter.chooseOptionAll"),value:"all"},...x.filter(D=>D.province!=null).map(D=>({label:D.province,value:D.province}))];N(C)}},[x,v]),Z.useEffect(()=>{if(S&&!_){const C=[{label:d("filter.chooseOptionAll"),value:"all"},...S.filter(D=>D!=null).map(D=>({label:D,value:D}))];V(C)}},[S,_]);const L=C=>{const D=C.toString();h(D),t(D),y("all"),e("all")},T=C=>{const D=C.toString();y(D),e(D)},g=C=>{w(C.toString()),n(C.toString()),y("all"),e("all"),h("all"),t("all")},f=()=>{r(!0)},j=C=>{b(C)},P=()=>{a(k)};return o.jsxs("div",{className:"flex flex-col items-center justify-between gap-4 px-3 xl:gap-20 md:flex-row",children:[o.jsx("h3",{className:"text-3xl font-bold text-center sm:text-left",children:d("disasterResponseAssets.title")}),o.jsxs("div",{className:"w-full",children:[o.jsxs("div",{className:"flex items-center justify-center w-full gap-2 mb-2 md:justify-end",children:[o.jsxs("div",{className:"flex flex-col text-sm max-w-7xl",children:[o.jsxs("p",{className:"w-full mb-0",children:[d("filter.latestUpdate")," :"]}),o.jsx("p",{className:"w-full mb-0",children:c&&c})]}),o.jsx("button",{onClick:f,disabled:s,"aria-label":"Perbarui Data",className:`md:flex md:items-center md:gap-2 hidden md:justify-center bg-gradient-to-l from-pmi-red-light to-pmi-red-dark text-pmi-white font-medium text-sm px-6 py-3 rounded-lg transition-opacity ${s?"opacity-70 cursor-not-allowed":"hover:opacity-90"}`,children:s?o.jsxs(o.Fragment,{children:[o.jsxs("svg",{className:"w-5 h-5 animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[o.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),o.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),o.jsx("span",{children:d("filter.refreshData")})]}):o.jsxs(o.Fragment,{children:[o.jsx("img",{src:"/svg/refresh.svg",alt:"reload",className:"w-5 h-5 filter brightness-0 invert"}),o.jsx("span",{children:d("filter.refreshData")})]})})]}),o.jsxs("div",{className:"flex flex-col items-center w-full gap-2 max-w-7xl 2xl:max-w-full xl:flex-row md:items-end md:justify-end",children:[o.jsxs("div",{className:"flex gap-2",children:[o.jsx("button",{onClick:f,disabled:s,"aria-label":"Perbarui Data",className:`flex items-center gap-2 md:hidden justify-center bg-gradient-to-l from-pmi-red-light to-pmi-red-dark text-pmi-white font-medium text-sm px-6 py-3 rounded-lg transition-opacity ${s?"opacity-70 cursor-not-allowed":"hover:opacity-90"}`,children:s?o.jsxs(o.Fragment,{children:[o.jsxs("svg",{className:"w-5 h-5 animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[o.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),o.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),o.jsx("span",{children:d("filter.refreshData")})]}):o.jsxs(o.Fragment,{children:[o.jsx("img",{src:"/svg/refresh.svg",alt:"reload",className:"w-5 h-5 filter brightness-0 invert"}),o.jsx("span",{children:d("filter.refreshData")})]})}),o.jsx("button",{className:m=="National"?I:A,onClick:()=>g("National"),children:d("filter.national")}),o.jsx("button",{className:m=="Headquarters"?I:A,onClick:()=>g("Headquarters"),children:d("filter.headquarters")})]}),o.jsxs("div",{className:"flex flex-col items-center justify-center w-full p-1 border rounded-lg md:flex-row bg-pmi-red bg-gradient-to-l from-pmi-red-light to-pmi-red-dark",children:[o.jsx("p",{className:"w-full ml-2 mr-2 text-sm max-w-16 text-pmi-white",children:d("filter.province")}),o.jsx(er,{options:E,value:u,onChange:L,label:"",transalation:!0,disabled:m=="Headquarters",placeholder:d("filter.chooseOption"),textBase:"text-sm",customClass:"w-full border rounded-lg py-2 xl:px-6 flex justify-between text-pmi-gray drop-shadow-sm focus:ring-2 focus:ring-pmi-red"}),o.jsx("p",{className:"w-full ml-2 mr-2 text-sm max-w-16 text-pmi-white",children:d("filter.city")}),o.jsx(er,{options:$,value:p,onChange:T,label:"",disabled:m=="Headquarters",transalation:!0,placeholder:d("filter.chooseOption"),textBase:"text-sm",customClass:"w-full border rounded-lg py-2 xl:px-6 flex justify-between text-pmi-gray drop-shadow-sm focus:ring-2 focus:ring-pmi-red"}),o.jsx(FM,{className:"flex min-w-full rounded-lg bg-pmi-white md:min-w-32 lg:min-w-48 xl:min-w-56",searchChange:C=>j(C.target.value),searchClick:P})]})]})]})]})},$M=({fallbackSrc:t,src:e,className:n,defaultIcon:i,alt:r})=>{const s=a=>{a.currentTarget.src=t||i,a.currentTarget.className=n};return o.jsx("img",{src:e,alt:r,className:n,onError:s})},HM=()=>o.jsxs("div",{className:"animate-pulse bg-pmi-gray-light rounded-lg overflow-hidden drop-shadow-lg p-4 flex items-center gap-4",children:[o.jsx("div",{className:"bg-pmi-light-red w-1/3 p-2",children:o.jsx("div",{className:"h-14 w-14 mx-auto bg-gray-300 rounded"})}),o.jsxs("div",{className:"relative w-2/3",children:[o.jsx("div",{className:"h-4 bg-gray-300 rounded w-1/2 mb-2"}),o.jsx("div",{className:"h-3 bg-gray-300 rounded w-1/3"})]})]}),nye=({province:t,city:e,filter:n,onDataLoaded:i,triggerUpdate:r,setFalseTrigger:s,setLoadingRequest:a,search:l})=>{const{data:c,isLoading:d,refetch:u}=BM("2",t==="all"?"":t,e==="all"?"":e,"",n==="National"?"false":"true",l??""),{language:h}=_e(),[p,y]=Z.useState(!1);return Z.useEffect(()=>{r&&(async()=>{y(!0),a(!0);try{const w=new Date,k=`${w.getFullYear()}
180-${String(w.getMonth()+1).padStart(2,"0")}-01`,b=new Date(w.getFullYear(),w.getMonth()+1,0),x=`${b.getFullYear()}-${String(b.getMonth()+1).padStart(2,"0")}-${String(b.getDate()).padStart(2,"0")}`;(await He.post("api/dashboard/update-temp-data-aset",{startDate:k,endDate:x})).result&&u()}catch{y(!1),s(!1),a(!1)}finally{y(!1),s(!1),setTimeout(()=>{a(!1)},5e3)}})()},[r]),Z.useEffect(()=>{y(d)},[d]),Z.useEffect(()=>{var m;Array.isArray(c)&&c.length>0&&((m=c[0])!=null&&m.dt_record)&&i(c[0].dt_record)},[c]),o.jsx("div",{className:"overflow-y-auto h-[69vh] 2xl:h-[80vh]",children:o.jsxs("div",{className:"grid grid-cols-1 gap-4 p-4 md:grid-cols-2 xl:grid-cols-4",children:[p&&[0,1,2,3].map(()=>o.jsx(HM,{})),c&&!p&&c.map((m,w)=>o.jsxs("div",{className:"flex items-center gap-4 p-4 overflow-hidden rounded-lg bg-pmi-gray-light drop-shadow-lg",children:[o.jsx("div",{className:"w-1/3 p-2 bg-pmi-light-red",children:o.jsx($M,{defaultIcon:"/svg/dashboard/icons/disaster-response-assets/INV-0002.svg",src:`${ze}/${m.icon}`,alt:h=="en"?m.inventory_name:m.inventory_name_indo,className:"mx-auto w-14 h-14"})}),o.jsxs("div",{className:"relative w-2/3",children:[o.jsx("h3",{className:"text-lg font-medium text-left text-pmi-red",children:h=="en"?m.inventory_name:m.inventory_name_indo}),o.jsx("p",{className:"text-xl font-light text-left text-pmi-black",children:bd(m.total_qty,m.uom)})]})]},w))]})})},iye=()=>{const[t,e]=Z.useState("all"),[n,i]=Z.useState("all"),[r,s]=Z.useState(null),[a,l]=Z.useState("National"),[c,d]=Z.useState(!1),[u,h]=Z.useState(!1),[p,y]=Z.useState("");return o.jsxs(Cv,{title:"disasterResponseAssets",children:[o.jsx(tye,{setProvinceIndex:e,setCityIndex:i,setFilterIndex:l,latestUpdate:r,refreshTrigger:m=>d(m),loadingRequest:u,setSearchIndex:y}),o.jsx(nye,{province:t,city:n,filter:a,onDataLoaded:m=>s(m),triggerUpdate:c,setFalseTrigger:m=>d(m),setLoadingRequest:h,search:p})]})},rye=({totalDataValue:t})=>{const{t:e}=Se(["dashboard"]),n=[{name:"dashboard.stock",image:"/svg/dashboard/stock-fill.svg",total:bd(t!=null&&t.total_logistic?t==null?void 0:t.total_logistic:0,""),url:"/dashboard/stock"},{name:"dashboard.asset",image:"/svg/dashboard/box-16.svg",total:bd(t!=null&&t.total_asset?t==null?void 0:t.total_asset:0,""),url:"/dashboard/disaster-response-assets"},{name:"dashboard.hr",image:"/svg/dashboard/person.svg",total:bd(t!=null&&t.total_hr?t==null?void 0:t.total_hr:0,""),url:"/dashboard/hrs-skills"}];return o.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4 p-4",children:n==null?void 0:n.map(i=>o.jsx("div",{className:"col-span-1",children:o.jsx("div",{className:"p-4 bg-pmi-gray-light rounded-lg drop-shadow-lg",children:o.jsxs("div",{className:"grid grid-cols-4 gap-4",children:[o.jsx("div",{className:"col-span-4",children:o.jsxs("div",{className:"flex justify-between",children:[o.jsx("div",{className:"w-[60px] h-[60px] rounded-full bg-pmi-red-dark flex justify-center items-center",children:o.jsx("img",{src:i==null?void 0:i.image,alt:"",className:"w-[35px]"})}),o.jsxs("div",{className:"",children:[o.jsx("h3",{className:"text-2xl font-medium mb-1 text-right",children:e(i==null?void 0:i.name)}),o.jsx("a",{href:i==null?void 0:i.url,className:"block text-pmi-red-dark p-0 rounded-lg font-semibold text-right ml-auto mr-0",children:"View All"})]})]})}),o.jsx("div",{className:"col-span-4",children:o.jsx("h2",{className:"text-3xl font-medium",children:i==null?void 0:i.total})})]})})}))})},sye=()=>o.jsxs("div",{className:"animate-pulse grid grid-cols-1 lg:grid-cols-3 gap-4 p-4",children:[o.jsx("div",{className:"col-span-1",children:o.jsx("div",{className:"p-4 bg-pmi-gray-light rounded-lg drop-shadow-lg",children:o.jsxs("div",{className:"grid grid-cols-4 lg:grid-cols-5 xl:grid-cols-4 gap-4",children:[o.jsx("div",{className:"col-span-4",children:o.jsxs("div",{className:"flex justify-between",children:[o.jsx("div",{className:"w-[60px] h-[60px] rounded-full bg-gray-300 flex justify-center items-center"}),o.jsxs("div",{className:"",children:[o.jsx("h3",{className:"text-lg font-medium mb-1 text-right bg-gray-300"}),o.jsx("a",{className:"block bg-gray-300 p-0 rounded-lg font-semibold text-right ml-auto mr-0"})]})]})}),o.jsx("div",{className:"col-span-4",children:o.jsx("h2",{className:"text-3xl font-medium bg-gray-300"})})]})})}),o.jsx("div",{className:"col-span-1",children:o.jsx("div",{className:"p-4 bg-pmi-gray-light rounded-lg drop-shadow-lg",children:o.jsxs("div",{className:"grid grid-cols-4 lg:grid-cols-5 xl:grid-cols-4 gap-4",children:[o.jsx("div",{className:"col-span-4",children:o.jsxs("div",{className:"flex justify-between",children:[o.jsx("div",{className:"w-[60px] h-[60px] rounded-full bg-gray-300 flex justify-center items-center"}),o.jsxs("div",{className:"",children:[o.jsx("h3",{className:"text-lg font-medium mb-1 text-right bg-gray-300"}),o.jsx("a",{className:"block bg-gray-300 p-0 rounded-lg font-semibold text-right ml-auto mr-0"})]})]})}),o.jsx("div",{className:"col-span-4",children:o.jsx("h2",{className:"text-3xl font-medium bg-gray-300"})})]})})}),o.jsx("div",{className:"col-span-1",children:o.jsx("div",{className:"p-4 bg-pmi-gray-light rounded-lg drop-shadow-lg",children:o.jsxs("div",{className:"grid grid-cols-4 lg:grid-cols-5 xl:grid-cols-4 gap-4",children:[o.jsx("div",{className:"col-span-4",children:o.jsxs("div",{className:"flex justify-between",children:[o.jsx("div",{className:"w-[60px] h-[60px] rounded-full bg-gray-300 flex justify-center items-center"}),o.jsxs("div",{className:"",children:[o.jsx("h3",{className:"text-lg font-medium mb-1 text-right bg-gray-300"}),o.jsx("a",{className:"block bg-gray-300 p-0 rounded-lg font-semibold text-right ml-auto mr-0"})]})]})}),o.jsx("div",{className:"col-span-4",children:o.jsx("h2",{className:"text-3xl font-medium bg-gray-300"})})]})})})]}
180),aye=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Des"],oye=()=>{const{t}=Se(["dashboard"]),{data:e,isLoading:n}=eye(),{data:i,isLoading:r}=Ez("all"),[s,a]=Z.useState({}),[l,c]=Z.useState(0);return Z.useEffect(()=>{if(i!=null&&i.data_distribution&&(i==null?void 0:i.data_distribution.length)>0){const d={barang:i==null?void 0:i.data_distribution.map(u=>[parseFloat(u.transaction_count.toString())]),month:i==null?void 0:i.data_distribution.map(u=>[aye[u.month-1]])};c(Math.max(...i==null?void 0:i.data_distribution.map(u=>u.transaction_count))),a(d)}},[i]),o.jsx("div",{children:o.jsxs("div",{className:" mx-auto h-[88vh] overflow-y-auto",children:[n?o.jsx(sye,{}):o.jsx(rye,{totalDataValue:e}),!r&&s.barang&&s.month&&s.barang.length>0&&s.month.length>0&&o.jsxs("div",{className:"p-4",children:[o.jsxs("div",{className:"w-full flex justify-between items-center mb-3",children:[o.jsx("p",{className:"text-2xl font-medium uppercase",children:t("dataDistribution.itemDeliveryWithoutYear")}),o.jsx("a",{href:"/dashboard/data-distribution",className:"inline-block ml-1 sm:ml-8 bg-pmi-red-dark text-white p-2 py-1 rounded-lg font-semibold",children:"View All"})]}),o.jsx(Iz,{chartData:s.barang,height:430,months:s.month,year:2024,xTitle:"dataDistribution.category",maxTicks:l+l*25/100,customClass:"p-1 w-full mx-auto border shadow-md drop-shadow-md rounded-xl"})]})]})})},lye=()=>o.jsx(Cv,{title:"home",children:o.jsx(oye,{})}),cye=({setProvinceIndex:t,setCityIndex:e,setSearchIndex:n})=>{const{t:i}=Se(["dashboard"]),[r,s]=Z.useState("all"),[a,l]=Z.useState("all"),[c,d]=Z.useState(""),{data:u,isLoading:h}=Rz("3"),[p,y]=Z.useState([]),{data:m,isLoading:w}=Oz(r,"3"),[k,b]=Z.useState([]);Z.useEffect(()=>{if(u&&!h){const S=[{label:i("filter.chooseOptionAll"),value:"all"},...u.filter(_=>_.province!=null).map(_=>({label:_.province,value:_.province}))];y(S)}},[u,h]),Z.useEffect(()=>{if(m&&!w){const S=[{label:i("filter.chooseOptionAll"),value:"all"},...m.filter(_=>_!=null).map(_=>({label:_,value:_}))];b(S)}},[m,w]);const x=S=>{const _=S.toString();s(_),t(_),l("all"),e("all")},v=S=>{const _=S.toString();l(_),e(_)},E=S=>{d(S)},N=()=>{n(c)};return o.jsxs("div",{className:" flex flex-col xl:flex-row gap-4 items-center justify-between px-3",children:[o.jsx("h3",{className:"font-bold text-3xl text-center sm:text-left",children:i("hrsSkills.title")}),o.jsxs("div",{className:"w-full max-w-4xl flex flex-col lg:flex-row items-center gap-2",children:[o.jsx("div",{className:" flex gap-2",children:o.jsx("button",{className:"bg-pmi-red bg-gradient-to-l from-pmi-red-light to-pmi-red-dark font-medium text-pmi-white text-sm px-6 py-3 rounded-lg",children:i("filter.national")})}),o.jsxs("div",{className:"w-full flex flex-col md:flex-row justify-center items-center border rounded-lg p-1 bg-pmi-red bg-gradient-to-l from-pmi-red-light to-pmi-red-dark",children:[o.jsx("p",{className:"w-full max-w-16 ml-2 text-pmi-white text-sm",children:i("filter.province")}),o.jsx(er,{options:p,value:r,onChange:x,label:"",transalation:!0,placeholder:i("filter.chooseOption"),textBase:"text-sm",customClass:"w-full bg-pmi-white border rounded-lg p-2 cursor-pointer flex justify-between text-pmi-gray drop-shadow-sm focus:ring-2 focus:ring-pmi-red"}),o.jsx("p",{className:"w-full max-w-16 ml-2 text-pmi-white text-sm",children:i("filter.city")}),o.jsx(er,{options:k,value:a,onChange:v,label:"",transalation:!0,placeholder:i("filter.chooseOption"),textBase:"text-sm",customClass:"w-full bg-pmi-white border rounded-lg p-2 cursor-pointer flex justify-between text-pmi-gray drop-shadow-sm focus:ring-2 focus:ring-pmi-red"}),o.jsx(FM,{className:"flex bg-pmi-white rounded-lg min-w-full md:min-w-32 lg:min-w-48 xl:min-w-72",searchChange:S=>E(S.target.value),searchClick:N})]})]})]})},dye=({province:t,city:e,search:n})=>{const{data:i,isLoading:r,refetch:s}=BM("3",t=="all"?"":t,e=="all"?"":e,"","",n??""),{language:a}=_e();return Z.useEffect(()=>{s()},[n]),o.jsx("div",{className:"overflow-y-auto h-[69vh] 2xl:h-[80vh]",children:o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 gap-4 p-4",children:[r&&[0,1,2,3].map(()=>o.jsx(HM,{})),i&&!r&&i.map((l,c)=>o.jsxs("div",{className:"bg-pmi-gray-light rounded-lg overflow-hidden drop-shadow-lg p-4 flex items-center gap-4",children:[o.jsx("div",{className:"bg-pmi-light-red w-1/3 p-2",children:o.jsx($M,{defaultIcon:"/svg/dashboard/icons/hrs-skills/doctor.svg",src:`${ze}/${l.icon}
180`,alt:a=="en"?l.inventory_name:l.inventory_name_indo,className:"w-14 h-14 mx-auto"})}),o.jsxs("div",{className:"relative w-2/3",children:[o.jsx("h3",{className:"text-pmi-red text-lg font-medium text-left",children:a=="en"?l.inventory_name:l.inventory_name_indo}),o.jsx("p",{className:"font-light text-xl text-pmi-black text-left",children:bd(l.total_qty,l.uom)})]})]},c))]})})},uye=()=>{const[t,e]=Z.useState("all"),[n,i]=Z.useState("all"),[r,s]=Z.useState("");return o.jsxs(Cv,{title:"pmiHumanResourceSkills",children:[o.jsx(cye,{setProvinceIndex:e,setCityIndex:i,setSearchIndex:s}),o.jsx(dye,{province:t,city:n,search:r})]})},hye=({setWarehouseIndex:t,latestUpdate:e,refreshTrigger:n,setSearchIndex:i,isRefreshing:r})=>{const{language:s}=_e(),{t:a}=Se(["dashboard"]),[l,c]=Z.useState(""),{data:d,isLoading:u}=Zxe("1"),[h,p]=Z.useState([]),[y,m]=Z.useState(""),w=new Date(e).toLocaleString(s==="id"?"id-ID":"en-US",{day:"numeric",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit"});Z.useEffect(()=>{if(d&&!u){const E=[{label:a("filter.chooseOptionAll"),value:""},...d.filter(N=>N.warehouse!=null).map(N=>({label:N.warehouse,value:N.warehouse}))];p(E)}},[d,u,a]);const k=E=>{const N=E.toString();t(N),c(N)},b=()=>{n(!0)},x=E=>{m(E)},v=()=>{i(y)};return o.jsxs("div",{className:"flex flex-col xl:flex-row gap-4 items-center justify-between px-3",children:[o.jsx("h3",{className:"font-bold min-w-52 text-3xl text-center sm:text-left",children:a("stockLogistics.title")}),o.jsxs("div",{className:"w-full max-w-5xl flex flex-col xl:flex-row items-center justify-end gap-2",children:[o.jsxs("div",{className:"w-full max-w-80 md:max-w-full xl:max-w-80 flex flex-col md:flex-row gap-5 items-center justify-center md:justify-between xl:justify-end",children:[o.jsxs("div",{className:"max-w-xl flex flex-col text-sm text-center md:text-left",children:[o.jsxs("p",{className:"w-full mb-0",children:[a("filter.latestUpdate")," :"]}),o.jsx("p",{className:"w-full mb-0",children:w})]}),o.jsxs("button",{onClick:b,disabled:r,className:`flex items-center gap-2 text-pmi-white text-sm px-3 py-2.5 rounded-lg ${r?"bg-gray-400 cursor-not-allowed":"bg-pmi-red bg-gradient-to-l from-pmi-red-light to-pmi-red-dark"}`,children:[o.jsx("img",{src:"/svg/refresh.svg",alt:"reload",className:`w-6 h-6 filter brightness-0 invert ${r?"opacity-50":""}`}),a("filter.refreshData")]})]}),o.jsxs("div",{className:"w-full max-w-4xl flex flex-col md:flex-row justify-center items-center bg-pmi-red-dark rounded-lg p-1",children:[o.jsx("p",{className:"w-full max-w-36 text-center text-pmi-white",children:a("filter.warehouseLocation")}),o.jsx(er,{options:h,value:l,onChange:k,label:"",transalation:!0,placeholder:a("filter.chooseOption"),textBase:"text-sm",customClass:"w-full bg-pmi-white border rounded-lg p-2 cursor-pointer flex justify-between items-center text-pmi-gray focus:ring-2 focus:ring-pmi-red"}),o.jsx(FM,{className:"flex bg-pmi-white rounded-lg min-w-full md:min-w-32 lg:min-w-48 xl:min-w-72",searchChange:E=>x(E.target.value),searchClick:v})]})]})]})},pye=({warehouse:t,onDataLoaded:e,triggerUpdate:n,setFalseTrigger:i,search:r,setIsRefreshing:s})=>{const{language:a}=_e(),{data:l,isLoading:c,refetch:d}=BM("1","","",t,"",r??""),[u,h]=Z.useState(!1);return Z.useEffect(()=>{d()},[r]),Z.useEffect(()=>{var p;if(l&&l.length>0){const y=(p=l[0])==null?void 0:p.latest_record;if(y)e(y);else{const m=new Date,w=`${m.getFullYear()}-${String(m.getMonth()+1).padStart(2,"0")}-${String(m.getDate()).padStart(2,"0")} ${String(m.getHours()).padStart(2,"0")}:${String(m.getMinutes()).padStart(2,"0")}:${String(m.getSeconds()).padStart(2,"0")}`;e(w)}}},[l,e]),Z.useEffect(()=>{n&&(async()=>{h(!0),s(!0);try{const y=new Date().getFullYear();(await He.post("api/dashboard/update-stock-data",{year:y})).result&&await d()}catch{h(!1),i(!1),s(!1)}finally{h(!1),i(!1),setTimeout(()=>{s(!1)},5e3)}})()},[n]),Z.useEffect(()=>{h(c)},[c]),o.jsx("div",{className:"overflow-y-auto h-[69vh] 2xl:h-[80vh]",children:o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 gap-4 p-4",children:[u&&[0,1,2,3].map((p,y)=>o.jsx(HM,{},y)),!u&&l&&l.map((p,y)=>o.jsxs("div",{className:"bg-pmi-gray-light rounded-lg overflow-hidden drop-shadow-lg p-4 flex items-center gap-4",children:[o.jsx("div",{className:"bg-pmi-light-red w-1/3 p-2",children:o.jsx($M,{defaultIcon:"/svg/dashboard/icons/stock/medical-kit.svg",src:`${ze}/${p.icon}`,alt:a=="en"?p.inventory_name:p.inventory_name_indo,className:"w-14 h-14 mx-auto"})}),o.jsxs("div",{className:"relative w-2/3",children:[o.jsx("h3",{className:"text-pmi-red text-lg font-medium",children:a=="en"?p.inventory_name:p.inventory_name_indo}),o.jsx("p",{className:"font-light text-xl text-pmi-black",children:bd(p.total_qty,p.uom)})]})]},y))]})})},mye=()=>{const[t,e]=Z.useState(""),n=()=>{const h=new Date;return`${h.getFullYear()}
180-${String(h.getMonth()+1).padStart(2,"0")}-${String(h.getDate()).padStart(2,"0")} ${String(h.getHours()).padStart(2,"0")}:${String(h.getMinutes()).padStart(2,"0")}:${String(h.getSeconds()).padStart(2,"0")}`},[i,r]=Z.useState(n()),[s,a]=Z.useState(!1),[l,c]=Z.useState(!1),[d,u]=Z.useState("");return o.jsxs(Cv,{title:"stock",children:[o.jsx(hye,{setWarehouseIndex:e,latestUpdate:i,refreshTrigger:h=>a(h),isRefreshing:l,setSearchIndex:u}),o.jsx(pye,{warehouse:t,onDataLoaded:h=>r(h),triggerUpdate:s,setFalseTrigger:h=>a(h),setIsRefreshing:c,search:d})]})},fye=[{path:"/dashboard",element:o.jsx(lye,{}),errorElement:o.jsx(We,{})},{path:"/dashboard/stock",element:o.jsx(mye,{}),errorElement:o.jsx(We,{})},{path:"/dashboard/data-distribution",element:o.jsx(qxe,{}),errorElement:o.jsx(We,{})},{path:"/dashboard/disaster-response-assets",element:o.jsx(iye,{}),errorElement:o.jsx(We,{})},{path:"/dashboard/hrs-skills",element:o.jsx(uye,{}),errorElement:o.jsx(We,{})}],gye=({title:t,subtitle:e,image:n,description:i})=>o.jsxs("div",{className:"group w-full max-w-md lg:max-w-sm rounded overflow-hidden shadow-lg bg-white min-h-[30rem]",children:[o.jsx("div",{className:"relative",children:o.jsx(or,{className:"w-full h-96 lg:h-64 object-cover",src:n,alt:t})}),o.jsxs("div",{className:"relative space-y-2 px-4 py-4 text-left h-48",children:[o.jsx("div",{className:"inline-block bg-pmi-red-light bg-opacity-20 p-2 font-light text-pmi-red text-sm",children:e}),o.jsx("p",{className:"capitalize font-medium text-sm xl:text-lg text-pmi-black leading-6 text-ellipsis overflow-hidden",style:{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"},children:t}),o.jsx("p",{className:"font-normal text-xs text-pmi-gray text-justify mb-8",children:i&&o.jsx(DB,{text:i,maxWords:25})})]})]}),xye=({data:t})=>{const{t:e}=Se(["common"]),{language:n}=_e(),{fields:i,addField:r,updateField:s}=wr(),{data:a}=Sz("impact");Z.useEffect(()=>{r("campaignCategory","")},[]);const l=c=>{s("campaignCategory",c?c.id.toString():"")};return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-8 px-4 xl:px-20",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center",children:t?n==="en"?t.title:t.title_indo:e("common:donationImpact.title")}),o.jsx("p",{className:"font-light text-lg text-pmi-gray text-center",children:t?n==="en"?t.desc:t.desc_indo:e("common:donationImpact.description")}),o.jsx("div",{className:"w-full max-w-2xl mx-auto py-8",children:o.jsx(up,{})}),o.jsx("div",{className:"w-full max-w-7xl flex justify-between items-center gap-6 px-0 xl:px-8",children:o.jsx("div",{className:"overflow-x-auto",children:o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("div",{className:on({"min-w-max text-sm px-2 py-2 border rounded-full cursor-pointer":!0,"bg-pmi-red text-pmi-white":i&&i.campaignCategory==="","bg-pmi-white text-pmi-gray border-pmi-gray":i&&i.campaignCategory!==""}),onClick:()=>l(null),children:e("common:monetaryCampaigns.seeAll")}),a&&a.map((c,d)=>o.jsx("div",{className:on({"min-w-max text-sm px-2 py-2 border rounded-full cursor-pointer":!0,"bg-pmi-red text-pmi-white":i&&i.campaignCategory===c.id.toString(),"bg-pmi-white text-pmi-gray border-pmi-gray":i&&i.campaignCategory!==c.id.toString()}),onClick:()=>l(c),children:n==="en"?c.title:c.title_indo},d))]})})})]})},yye=()=>{const{t}=Se(["common"]),{language:e}=_e(),{searchTerm:n}=kr(),{fields:i}=wr(),[r,s]=Z.useState(1),{data:a,isFetching:l,refetch:c}=Xge(r,9,n,i&&Number(i.campaignCategory)||null,e);Z.useEffect(()=>{(i||n)&&c()},[i,n,r]);const d=u=>{s(u)};return o.jsxs(o.Fragment,{children:[o.jsx(xye,{data:a&&(a==null?void 0:a.pageDetail)}),!l&&(a==null?void 0:a.listDonationImpact.total)===0&&o.jsx("p",{className:"text-pmi-red text-3xl font-normal text-center",children:t("common:pressRelease.notFound")}),o.jsx("div",{className:"flex items-center justify-center bg-pmi-white px-4 xl:px-20",children:o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 pt-6 pb-4 md:px-0",children:[l&&[1,2,3].map(u=>o.jsx(Ot,{onlyImage:!0,minHeight:"min-h-40",minWidth:"min-w-52"},u)),!l&&a&&a.listDonationImpact&&a.listDonationImpact.data.map((u,h)=>{var p,y;return o.jsx("a",{href:`/donation/donation-impact/detail/${u.slug}`,className:"cursor-pointer",children:o.jsx(gye,{title:e==="en"?u.title:u.title_indo,subtitle:e==="en"?(p=u==null?void 0:u.campaign_category)==null?void 0:p.title:(y=u==null?void 0:u.campaign_category)==null?void 0:y.title_indo,image:`${ze}/${u.media.path}`,description:e==="en"?u.description:u.description_indo})},h)}),o.jsx("div",{className:"col-span-full border-b border-pmi-gray-lighter",children:a&&a.listDonationImpact&&o.jsx("p",{className:"w-full text-pmi-gray text-sm font-light mt-8",children:t("common:pagination",{start:a.listDonationImpact.from||0,end:a.listDonationImpact.to||0,total:a.listDonationImpact.total||0})})}),o.jsx("div",{className:"col-span-full justify-center",children:a&&a.listDonationImpact&&o.jsx(Hi,{links:a.listDonationImpact.links,onPageChange:d})})]})})]})},bL=()=>{const{t}=Se(["menu"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:donationImpact"),path:"#"},{label:t("menu:whereYourDonationsGo")}];return o.jsx(Ye,{type:"default",title:"whereYourDonationsGo",breadcrumbs:e,children:o.jsx(yye,{})})},bye=({campaign:t})=>{const{language:e}=_e();return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-8 px-2",children:[o.jsx("h2",{className:"font-bold text-4xl text-pmi-red text-center",children:e==="en"?t.title:t.title_indo}),o.jsx("div",{className:"max-w-4xl space-y-6 divide-y border-b",children:o.jsx("div",{className:"flex flex-col md:flex-row justify-center items-center gap-8 mx-auto py-8",children:o.jsxs("div",{className:"relative space-y-6",children:[o.jsx(or,{src:`${ze}/${t.media.path}`,alt:e==="en"?t.title:t.title_indo,className:"w-full md:min-h-72"}
180),o.jsx(Et,{customClassName:"text-justify text-pmi-gray leading-6 space-y-4",content:e==="en"?t.description:t.description_indo})]})})})]})},vye=({campaign:t})=>{const{t:e}=Se(["common"]),{language:n}=_e(),[i,r]=Z.useState(1);return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-8 px-2",children:[o.jsxs("div",{className:"w-full max-w-4xl flex gap-4 justify-center border rounded-xl shadow-xl p-2",children:[o.jsxs("div",{className:on({"w-full flex flex-col md:flex-row justify-center items-center gap-6 border rounded-xl py-4 px-2 md:px-12 cursor-pointer":!0,"bg-pmi-red text-pmi-white":i===1,"text-pmi-gray":i===2}),onClick:()=>r(1),children:[o.jsx("img",{src:`/svg/donations/${i===1?"happy-white.svg":"happy.svg"}`,alt:e("common:donationImpact.successStories"),className:"w-12 h-12"}),o.jsxs("div",{className:"relative space-y-2 text-center md:text-left",children:[o.jsx("p",{className:"font-semibold text-lg",children:e("common:donationImpact.successStories")}),o.jsx("p",{className:"text-xs",children:e("common:donationImpact.inspiringStories")})]})]}),o.jsxs("div",{className:on({"w-full flex flex-col md:flex-row justify-center items-center gap-6 border rounded-xl py-4 px-2 md:px-12 cursor-pointer":!0,"bg-pmi-red text-pmi-white":i===2,"text-pmi-gray":i===1}),onClick:()=>r(2),children:[o.jsx("img",{src:`/svg/donations/${i===2?"pie-white.svg":"pie.svg"}`,alt:e("common:donationImpact.infographic"),className:"w-12 h-12"}),o.jsxs("div",{className:"relative space-y-2 text-center md:text-left",children:[o.jsx("p",{className:"font-semibold text-lg",children:e("common:donationImpact.infographic")}),o.jsx("p",{className:"text-xs",children:e("common:donationImpact.snapshot")})]})]})]}),i===1&&o.jsxs("div",{className:"w-full max-w-4xl relative space-y-6 border shadow-xl p-10",children:[o.jsx("img",{src:`${ze}/${t.stories.media.path}`,alt:"Restoring Homes, Restoring Hope: A Community Rebuilt After Disaster",className:"w-full md:min-h-72"}),o.jsx("h2",{className:"font-semibold text-2xl text-pmi-red text-center",children:n==="en"?t.stories.title:t.stories.title_indo}),o.jsx(Et,{customClassName:"text-justify text-pmi-gray leading-6 space-y-4",content:n==="en"?t.stories.description:t.stories.description_indo})]}),i===2&&o.jsx("div",{className:"w-full max-w-4xl relative space-y-6 border shadow-xl p-2 md:p-10",children:o.jsx(rz,{fileUrl:`${ze}/${t.infographic.media.path}`,downloadUrl:`${ze}/download/storage/${t.infographic.media.path}`})})]})},wye=()=>{const{t}=Se(["menu"]),{id:e}=ni(),{language:n}=_e(),{data:i,isLoading:r,isError:s}=Jge(e||"");if(s)return o.jsx(xi,{});if(!i||r)return null;const a=[{label:t("menu:home"),path:"/"},{label:t("menu:donationImpact"),path:"/donation/donation-impact"},{label:i==null?void 0:i.title}];return o.jsxs(Ye,{type:"default",forceTitle:i==null?void 0:i.title,breadcrumbs:a,description:ic(n==="en"?i==null?void 0:i.description:i==null?void 0:i.description_indo),children:[o.jsx(bye,{campaign:i}),o.jsx(vye,{campaign:i})]})},kye=()=>{const{t}=Se(["menu"]),e=[{label:t("menu:home"),path:document.referrer},{label:t("menu:privacyPolicy")}];return o.jsx(Ye,{type:"default",title:"privacyPolicy",breadcrumbs:e,children:o.jsx(ng,{})})},Sye=[{path:"/donation/privacy-policy",element:o.jsx(kye,{}),errorElement:o.jsx(We,{})},{path:"/donation/donation-impact",element:o.jsx(bL,{}),errorElement:o.jsx(We,{})},{path:"/donation/donation-impact/where-your-donations-go",element:o.jsx(bL,{}),errorElement:o.jsx(We,{})},{path:"/donation/donation-impact/detail/:id",element:o.jsx(wye,{}),errorElement:o.jsx(We,{})}],Lz=({brands:t,baseItems:e=4})=>{const n=Z.useRef(null),i={superLargeDesktop:{breakpoint:{max:4e3,min:1600},items:5},desktop:{breakpoint:{max:1600,min:1024},items:e},tablet:{breakpoint:{max:1024,min:767},items:3},mobile:{breakpoint:{max:766,min:0},items:1}},r=()=>{n.current&&n.current.previous(0)},s=()=>{n.current&&n.current.next(0)};return o.jsxs("div",{className:"relative px-4",children:[o.jsxs("div",{className:"absolute w-full flex justify-between items-center top-0 bottom-0 my-auto",children:[o.jsx("button",{className:"text-white -ml-4",onClick:r,children:o.jsx("img",{src:"/svg/arrow/arrow-left-white.svg",alt:"left",className:"w-6 h-6 md:w-12 md:h-12"})}),o.jsx("button",{className:"text-white",onClick:s,children:o.jsx("img",{src:"/svg/arrow/arrow-right-white.svg",alt:"right",className:"w-6 h-6 md:w-12 md:h-12"})})]}),o.jsx("div",{className:"relative px-2 md:px-6",children:o.jsx(Z1,{ref:n,responsive:i,infinite:!0,arrows:!1,autoPlay:!0,autoPlaySpeed:3e3,keyBoardControl:!0,customTransition:"all 0.5s",transitionDuration:500,removeArrowOnDeviceType:["tablet","mobile"],containerClass:"px-2",renderButtonGroupOutside:!0,children:t.map((a,l)=>o.jsxs("div",{className:"relative space-y-4",children:[o.jsx("div",{className:"flex justify-center items-center p-4 mx-2 bg-white rounded-lg max-w-56",children:o.jsx("img",{src:`${ze}/${a.path}`,alt:`Brand logo ${l}`,className:"max-w-full h-28 object-contain"})},l),o.jsx("div",{className:"mt-4 text-sm text-center text-pmi-white",children:o.jsx("p",{children:a.company_name})})]}))})})]})},Cye=({tier:t,amountRange:e,description:n,brands:i,colorClass:r,colorStyle1:s,colorStyle2:a,colorStyle3:l})=>o.jsxs("div",{className:`w-full shadow-lg rounded-lg px-8 py-6 mb-6 space-y-6 ${r}`,style:{background:`radial-gradient(50% 50% at 50% 50%, ${s} 0%, ${a} 50%, ${l} 100%)`},children:[o.jsxs("div",{className:"flex justify-between gap-8",children:[o.jsxs("div",{className:"relative space-y-2 py-4",children:[o.jsx("h3",{className:"text-3xl text-pmi-white font-bold",children:t}),o.jsx("p",{className:"text-lg font-light text-pmi-white",children:e}),o.jsx("p",{className:"text-base text-pmi-white mt-2",children:n})]}),o.jsx("img",{src:"/png/donations/hall-of-fame/decor.png",alt:"decoration",className:"w-full max-w-52 h-24 hidden md:block"})]}),o.jsx(Lz,{brands:i})]});Array.from({length:31},(t,e)=>({value:e+1,label:`${e+1}`}));const jye=Array.from({length:5},(t,e)=>({value:2022+e,label:`${2022+e}`})),Tye=({minWidth:t="min-w-96",maxWidth:e="max-w-xl"})=>o.jsxs("div",{className:`animate-pulse w-full mx-auto ${t} ${e} p-4 rounded-lg shadow-lg bg-gray-100`,children:[o.jsx("div",{className:"h-7 bg-gray-300 rounded w-1/3 mb-3"}),o.jsx("div",{className:"h-5 bg-gray-300 rounded w-1/2 mb-2"}),o.jsx("div",{className:"h-4 bg-gray-300 rounded w-full mb-5"}),o.jsx("div",{className:"h-40 bg-gray-300 rounded w-60 mb-2 ms-10"})]}),Pye=()=>{const{t}=Se(["common"]),[e,n]=Z.useState(2024),{data:i,isLoading:r,refetch:s}=fee(e),{data:a,isLoading:l}=gee(),{language:c}=_e();return Z.useEffect(()=>{s()},[e]),Z.useEffect(()=>{if(a&&a.length>0){const d=a[0].year;e!==d&&n(d)}else e!==2024&&n(2024)}
180,[a]),o.jsxs("div",{className:"relative space-y-4 mt-8 py-8 px-2",children:[o.jsx("img",{src:"/png/donations/hall-of-fame/banner.png",alt:t("partnerships.hallOfFame"),className:"w-full max-w-2xl mx-auto"}),o.jsx("div",{className:"max-w-40 mx-auto",children:l?o.jsx("div",{className:"w-full bg-pmi-white border rounded-xl h-10 p-2 animate-pulse"}):o.jsx(er,{options:a&&a.length>0?a.map(d=>({value:d.year,label:d.year.toString()})):jye,value:e,onChange:d=>n(Number(d)),label:"",placeholder:`${new Date().getFullYear()}`,textBase:"text-sm",customClass:"w-full bg-pmi-white border rounded-xl p-2 cursor-pointer flex justify-between items-center text-pmi-gray focus:ring-2 focus:ring-pmi-red"})}),!l&&!r&&(i==null?void 0:i.length)===0&&o.jsx("p",{className:"text-pmi-red text-3xl font-normal text-center",children:t("common:pressRelease.notFound")}),r&&o.jsxs("div",{className:"w-full max-w-6xl py-8 space-y-12 px-4 mx-auto",children:[" ",[1].map(d=>o.jsx(Tye,{minHeight:"min-h-40",minWidth:"min-w-100",maxWidth:"max-w-6xl"},d))]}),i&&o.jsx("div",{className:"w-full max-w-6xl py-8 space-y-12 px-4 mx-auto",children:i.map((d,u)=>o.jsx(Cye,{tier:d.hall_category_name,amountRange:c==="en"?d.hall_category_subtitle:d.hall_category_subtitle_indo,description:c==="en"?d.hall_category_desc:d.hall_category_desc_indo,brands:d.companies,colorClass:"",colorStyle1:d.hall_category_color,colorStyle2:d.hall_category_color2,colorStyle3:d.hall_category_color3},u))}),o.jsxs("div",{className:"w-full max-w-4xl relative space-y-4 mx-auto text-center",children:[o.jsx("p",{className:"font-semibold text-pmi-red text-3xl",children:t("partnerships.hallOfFame.thankYou.title")}),o.jsx("p",{className:"font-light text-pmi-gray text-sm",children:t("partnerships.hallOfFame.thankYou.gratitude")}),o.jsx("p",{className:"font-light text-pmi-gray text-sm",children:t("partnerships.hallOfFame.thankYou.conclusion")})]})]})},Eye=()=>{const{t}=Se(["menu"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:partnerships"),path:"#"},{label:t("menu:hallOfFame")}];return o.jsx(Ye,{type:"default",title:"hallOfFame",breadcrumbs:e,children:o.jsx(Pye,{})})},Aye=()=>{const{t}=Se(["common"]),{language:e}=_e(),[n,i]=Z.useState(0),{data:r,isLoading:s}=uM("MarketingTools"),a=l=>{if(Ld.event({category:"Download",action:"click_download_button",label:"User downloaded file"}),typeof l=="string"){const c=document.createElement("a");c.href=l,c.download=l.split("/").pop()||"document.pdf",c.target="_blank",c.rel="noopener noreferrer",c.click()}else if(l instanceof File){const c=URL.createObjectURL(l),d=document.createElement("a");d.href=c,d.download=l.name,d.target="_blank",d.rel="noopener noreferrer",d.click(),URL.revokeObjectURL(c)}};return o.jsxs("div",{className:"flex flex-col flex-wrap gap-4 items-center justify-center mt-8 py-8 px-2",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center mb-6",children:t("partnerships.marketingToolsCatalog")}),o.jsxs("div",{className:"w-full max-w-6xl flex flex-col xl:flex-row justify-center items-center xl:items-start gap-6",children:[s&&!r&&o.jsx(Ot,{onlyImage:!0,minHeight:"min-h-72",minWidth:"min-w-72"}),r&&o.jsxs(o.Fragment,{children:[o.jsx("ul",{className:"relative w-full max-w-64",children:r.map((l,c)=>o.jsx("li",{children:o.jsxs("div",{className:on({"flex justify-between gap-16 border-b font-normal text-sm py-4 cursor-pointer hover:bg-pmi-gray-light":!0,"text-pmi-gray":c!==n,"text-pmi-red":c===n}),onClick:()=>i(c),children:[o.jsx("span",{className:"flex-grow",children:e?l.media_name:l.media_name_indo}),o.jsx(kM,{addClassName:"h-4 w-4"})]})},c))}),o.jsx("div",{className:"w-full",children:r.map((l,c)=>o.jsxs("div",{className:on({"relative w-full max-w-xs md:max-w-5xl":!0,"shadow-sm bg-white":!0,hidden:c!==n}),children:[o.jsx("div",{className:"absolute group top-2 right-6 z-20",children:o.jsx("button",{onClick:()=>a(`${ze}/download/storage/${l.path}`),className:"group-hover:opacity-100 px-8 py-2 bg-pmi-red text-sm text-white rounded-md opacity-40",children:"Download"})}),o.jsx("embed",{src:`${ze}/${l.path}#toolbar=0&navpanes=0&scrollbar=0`,width:"100%",height:"700"})]}))})]})]})]})},Nye=()=>{const{t}=Se(["menu"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:partnerships"),path:"#"},{label:t("menu:marketingToolsProgramCatalog")}];return o.jsx(Ye,{type:"default",title:"marketingToolsProgramCatalog",breadcrumbs:e,children:o.jsx(Aye,{})})},Mye=({id:t,slug:e})=>{const[n,i]=Z.useState(!1),{register:r,handleSubmit:s,formState:{errors:a},setValue:l}=Ks(),{t:c}=Se(["common"]),d=ec(),u=()=>i(!0),h=()=>i(!1),p=async y=>{try{const m={partnership_id:t,company_name:y.companyName,notes:y.notes,name:y.contactName,email:y.email,phone:y.phoneNumber};if(await He.post("api/partnership-contact",m))return d(`/donation/partnerships/programs/${e}/submission-confirmation`)}catch(m){console.error("Error submitting form:",m)}};return o.jsxs(o.Fragment,{children:[o.jsx($h,{isOpen:n,closeModal:h,title:c("common:privacyPolicy.title"),children:o.jsx(ng,{})},n?"privacy-policy-open":"privacy-policy-closed"),o.jsxs("form",{onSubmit:s(p),className:"max-w-3xl p-4 space-y-2 mx-auto",children:[o.jsx("h3",{className:"font-semibold text-center text-pmi-black text-2xl py-6",children:c("partnerships.contactForm.title")}),o.jsxs("div",{children:[o.jsxs("label",{children:[c("partnerships.contactForm.companyName")," ",o.jsx("span",{className:"text-pmi-red",children:"*"})]}),o.jsx("input",{...r("companyName",{required:!0}),className:"p-4 border border-pmi-gray-lighter rounded-md w-full focus:outline-none focus:ring-2 focus:ring-pmi-red capitalize"}),a.companyName&&o.jsx("span",{className:"text-red-500",children:c("common:validation.required")})]}),o.jsxs("div",{children:[o.jsxs("label",{children:[c("partnerships.contactForm.notes")," ",o.jsx("span",{className:"text-pmi-red",children:"*"})]}),o.jsx("input",{...r("notes",{required:!0}),className:"p-4 border border-pmi-gray-lighter rounded-md w-full focus:outline-none focus:ring-2 focus:ring-pmi-red capitalize"}),a.notes&&o.jsx("span",{className:"text-red-500",children:c("common:validation.required")})]}),o.jsxs("div",{className:"relative space-y-4",children:[o.jsxs("label",{children:[c("partnerships.contactForm.contactDetails")," ",o.jsx("span",{className:"text-pmi-red",children:"*"})]}),o.jsx("input",{...r("contactName",{required:!0}),className:"p-4 border border-pmi-gray-lighter rounded-md w-full focus:outline-none focus:ring-2 focus:ring-pmi-red",placeholder:c("partnerships.contactForm.name")}),a.contactName&&o.jsx("span",{className:"text-red-500",children:c("common:validation.required")}),o.jsx("input",{...r("email",{required:!0}),className:"p-4 border border-pmi-gray-lighter rounded-md w-full focus:outline-none focus:ring-2 focus:ring-pmi-red",placeholder:c("partnerships.contactForm.email"),type:"email"}),a.email&&o.jsx("span",{className:"text-red-500",children:c("common:validation.required")}),o.jsx(oy,{country:"id",enableSearch:!0,preferredCountries:["id"],...r("phoneNumber",{required:!0}),onChange:y=>l("phoneNumber",y||""),inputProps:{name:"phone",className:"w-full py-4 px-14 border border-pmi-gray-lighter rounded-md outline-none"}}),a.phoneNumber&&o.jsx("span",{className:"text-pmi-red",children:c("common:validation.required")})]}),o.jsxs("div",{className:"flex items-center mb-4",children:[o.jsx("input",{type:"checkbox",...r("termsAccepted",{required:!0}),className:"mr-2"}),o.jsx("button",{type:"button",className:"text-sm text-pmi-gray",onClick:u,children:o.jsx(Li,{text:c("partnerships.contactForm.termsAccepted"),highlights:["Privacy Policy","Kebijakan Privasi","Terms & Conditions","Syarat & Ketentuan"]})})]}),a.termsAccepted&&o.jsx("span",{className:"text-pmi-red",children:c("common:validation.requiredChecked")}),o.jsx("button",{type:"submit",className:"w-full bg-pmi-red text-pmi-white py-2 rounded-md",children:c("partnerships.contactForm.submit")})]})]})},Dye=({partnership:t})=>{const{language:e}=_e(),{t:n}=Se(["menu"]);return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap items-center justify-center py-4",children:[o.jsx(Sv,{image:`${ze}/${t.media.path}`,category:n("menu:partnerships"),title:e==="en"?t==null?void 0:t.t
180itle:t==null?void 0:t.title_indo,subtitle:e==="en"?t==null?void 0:t.category_title:t==null?void 0:t.category_title_indo}),o.jsxs("div",{className:"w-full bg-pmi-white text-center py-8 space-y-4",children:[o.jsx("h4",{className:"font-medium text-2xl text-pmi-red",children:e==="en"?t==null?void 0:t.subtitle:t==null?void 0:t.subtitle_indo}),o.jsx(Et,{customClassName:"text-pmi-gray text-sm mx-auto max-w-3xl",content:e==="en"?t==null?void 0:t.desc:t==null?void 0:t.desc_indo})]}),o.jsx("div",{className:"w-full bg-pmi-gray-light",children:o.jsx(Mye,{id:t.partnership_id,slug:t.slug})})]})},_ye=()=>{const{t}=Se(["menu"]),{id:e}=ni(),{language:n}=_e(),{data:i,isLoading:r,isError:s}=R5(e||"");if(s)return o.jsx(xi,{});if(!i||r)return null;if(!i[0])return o.jsx(xi,{});const a=i[0],l=[{label:t("menu:donations"),path:"#"},{label:t("menu:partnerships"),path:"#"},{label:n==="en"?a==null?void 0:a.category_title:a==null?void 0:a.category_title_indo,path:"#"},{label:n==="en"?a==null?void 0:a.title:a==null?void 0:a.title_indo}];return o.jsx(Ye,{type:"default",forceTitle:n==="en"?a==null?void 0:a.title:a==null?void 0:a.title_indo,breadcrumbs:l,description:ic(n==="en"?a==null?void 0:a.subtitle:a==null?void 0:a.subtitle_indo),children:o.jsx(Dye,{partnership:a})})},Iye=()=>{const{t}=Se(["common"]);return o.jsxs("div",{className:"flex flex-col flex-wrap gap-2 items-center justify-center mt-8 py-20 my-12 px-2",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center",children:t("common:partnerships.submissionSuccess.title")}),o.jsx("img",{src:"/svg/donations/success-confirmation.svg",alt:t("common:partnerships.submissionSuccess.title"),className:"w-60 h-60"}),o.jsx("p",{className:"font-normal text-2xl text-pmi-gray text-center",children:t("common:partnerships.submissionSuccess.message")}),o.jsx("p",{className:"font-light text-lg text-pmi-gray text-center max-w-3xl",children:t("common:partnerships.submissionSuccess.appreciation")}),o.jsxs("div",{className:"max-w-2xl flex items-start gap-2 bg-pmi-gray-light font-light text-pmi-gray text-sm px-6 py-4",children:[o.jsx("img",{src:"/svg/info.svg",alt:t("partnerships.submissionSuccess.appreciation"),className:"w-5 h-5"}),o.jsxs("div",{className:"relative space-y-2",children:[o.jsx("p",{className:"font-semibold",children:t("partnerships.submissionSuccess.contactUs")}),o.jsx(Li,{text:t("partnerships.submissionSuccess.immediateContact"),highlights:["[email protected]","+6221","7992325"]})]})]})]})}
180,Rye=()=>{const{t}=Se(["menu"]),{id:e}=ni(),{language:n}=_e(),{data:i,isLoading:r,isError:s}=R5(e||"");if(s)return o.jsx(xi,{});if(!i||r)return null;if(!i[0])return o.jsx(xi,{});const a=i[0],l=[{label:t("menu:donations"),path:"#"},{label:t("menu:partnerships"),path:"#"},{label:n==="en"?a==null?void 0:a.category_title:a==null?void 0:a.category_title_indo,path:"#"},{label:n==="en"?a==null?void 0:a.title:a==null?void 0:a.title_indo,path:`/donation/partnerships/programs/${a.slug}`},{label:t("menu:formSubmissionConfirmation")}];return o.jsx(Ye,{type:"default",title:"formSubmissionConfirmation",breadcrumbs:l,children:o.jsx(Iye,{})})},Oye=[{path:"/donation/partnerships/marketing-tools",element:o.jsx(Nye,{}),errorElement:o.jsx(We,{})},{path:"/donation/partnerships/programs/:id",element:o.jsx(_ye,{}),errorElement:o.jsx(We,{})},{path:"/donation/partnerships/programs/:id/submission-confirmation",element:o.jsx(Rye,{}),errorElement:o.jsx(We,{})},{path:"/donation/partnerships/hall-of-fame",element:o.jsx(Eye,{}),errorElement:o.jsx(We,{})}],Lye=({data:t})=>{const{t:e}=Se(["common"]),{language:n}=_e();return o.jsx("div",{className:"overflow-x-auto py-4",children:o.jsxs("table",{className:"min-w-full bg-white border border-gray-200 text-gray-800",children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{className:"font-medium text-pmi-gray text-base md:text-lg text-left px-2 md:px-4 md:py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:e("certifiedArea.competency.table.code")}),o.jsx("th",{className:"font-medium text-pmi-gray text-base md:text-lg text-left px-2 md:px-4 md:py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter",children:e("certifiedArea.competency.table.unit")})]})}),o.jsx("tbody",{children:t&&t.map((i,r)=>o.jsxs("tr",{className:"text-left text-sm",children:[o.jsx("td",{className:"px-2 md:px-4 md:py-2 border text-pmi-gray text-base border-gray-200",children:i.code}),o.jsx("td",{className:"px-2 md:px-4 md:py-2 border text-pmi-gray text-base border-gray-200",children:n==="en"?i.title:i.title_indo})]},r))})]})})},Fye=()=>o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-8 px-2 animate-pulse",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center bg-gray-300 w-1/2"}),o.jsx("p",{className:"font-light text-lg text-pmi-gray text-center max-w-screen-lg bg-gray-300 w-1/2"}),o.jsx("div",{className:"w-3/4 max-w-3xl h-16 flex flex-col lg:flex-row justify-center gap-8 mx-auto py-2 px-4 bg-gray-300 border"}),o.jsx("div",{className:"w-3/4 h-[350px] flex flex-col lg:flex-row justify-center items-center gap-8 mx-auto py-8 px-6 bg-gray-300"}),o.jsx("div",{className:"max-w-4xl space-y-8 py-8 bg-gray-300 w-3/4 h-[800px] hidden md:block"})]}),Bye=({paramId:t})=>{var l,c,d,u,h,p,y;const{t:e}=Se(["common"]),{language:n}=_e(),{id:i}=ni(),{data:r,isLoading:s}=aee(i??""),a=[{icon:"/svg/training/certified-personnels.svg",total:((l=r==null?void 0:r.summary)==null?void 0:l.totalvalidcertificates)||0,title:e("common:certifiedArea.certifiedPersonnels")},{icon:"/svg/training/accessors.svg",total:((c=r==null?void 0:r.summary)==null?void 0:c.totalperson)||0,title:e("common:certifiedArea.accessors")},{icon:"/svg/training/courses.svg",total:((d=r==null?void 0:r.summary)==null?void 0:d.totalcourse)||0,title:e("common:certifiedArea.courses")}];return o.jsx(o.Fragment,{children:s?o.jsx(Fye,{}):o.jsxs("div",{className:"w-[22rem] mx-auto md:w-full md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-8 px-2",children:[o.jsx("h3",{className:"font-bold text-2xl md:text-4xl text-pmi-red text-center",children:(n==="en"?r==null?void 0:r.title:r==null?void 0:r.title_indo)||e(`common:certifiedArea.${t}.title`)}),o.jsx("p",{className:"font-light text-base md:text-lg text-pmi-gray text-center max-w-screen-lg",children:(n==="en"?r==null?void 0:r.desc:r==null?void 0:r.desc_indo)||e(`common:certifiedArea.${t}.description`)}),o.jsx("div",{className:"w-full max-w-3xl flex flex-col lg:flex-row justify-center gap-0 md:gap-8 mx-auto my-4 py-2 px-4 bg-pmi-gray-light border",children:a.map((m,w)=>o.jsxs("div",{className:"flex items-center gap-4",children:[o.jsx("img",{src:m.icon,className:"w-6-h-6"}),o.jsx("p",{className:"font-medium text-base text-pmi-gray",children:m.total}),o.jsx("p",{className:"font-light text-base text-pmi-gray",children:m.title})]},w))}),o.jsxs("div",{className:"w-full flex flex-col lg:flex-row justify-center items-center gap-8 mx-auto py-8 px-6 bg-pmi-gray-light",children:[o.jsx("div",{className:"max-w-xl max-h-[350px] flex justify-center items-center overflow-hidden",children:o.jsx(or,{src:r&&r.media&&`${ze}/${r.media.path}`||`/png/training/${i}.png`,alt:(n==="en"?r==null?void 0:r.title:r==null?void 0:r.title_indo)||e(`common:certifiedArea.${t}.title`),className:"w-full h-auto"})}
180),o.jsx("div",{className:"w-full relative max-w-md space-y-6 p-4 md:px-6 text-justify bg-pmi-white rounded-lg",children:o.jsxs("div",{className:"max-h-[22rem] overflow-y-auto overflow-x-hidden space-y-4 scroll-container-red mx-auto",children:[o.jsx("h3",{className:"font-medium text-xl md:text-2xl",children:e("common:certifiedArea.certificationSchemes")}),r&&((u=r==null?void 0:r.schemas)==null?void 0:u.filter(m=>m.void===0).map((m,w)=>o.jsxs("a",{href:`#${Qx(m.title)}`,className:"flex items-center gap-2 bg-pmi-light-red rounded-full py-1 px-2 text-sm md:text-lg cursor-pointer",children:[o.jsx("span",{className:"px-3 py-1 rounded-full bg-pmi-white",children:w+1}),o.jsx("p",{className:"truncate font-light ",children:n==="en"?m.title:m.title_indo})]},w)))]})})]}),o.jsxs("div",{className:"max-w-4xl space-y-8 py-8",children:[o.jsx("h3",{className:"font-medium text-xl md:text-2xl",children:e("common:certifiedArea.overview")}),o.jsx("div",{className:"relative space-y-6 py-4 text-justify font-light",children:o.jsx("p",{className:"text-pmi-gray",children:o.jsx(Et,{content:n==="en"?r==null?void 0:r.overview:r==null?void 0:r.overview_indo})})}),o.jsxs("div",{className:"bg-[#FFF6F6] p-4 md:px-8 space-y-4 rounded-lg",children:[o.jsx("h3",{className:"font-medium text-xl md:text-2xl",children:e("common:certifiedArea.keyPoints")}),r&&((h=r==null?void 0:r.overview_contents)==null?void 0:h.map((m,w)=>m.type===0&&o.jsxs("div",{className:"flex items-start gap-4 roun
180ded-full py-1 px-2 text-lg",children:[o.jsx("img",{src:"/svg/training/check.svg",className:"w-8 h-8"}),o.jsxs("div",{className:"text-pmi-gray",children:[o.jsx("h4",{className:"font-medium leading-6 text-lg",children:n==="en"?m.title:m.title_indo}),o.jsx("p",{className:"font-light leading-4 md:leading-5 text-base",children:o.jsx(Et,{content:n==="en"?m.description:m.description_indo})})]})]},w)))]}),o.jsxs("div",{className:"bg-pmi-gray-light p-4 md:px-8 space-y-4 rounded-lg",children:[o.jsx("h3",{className:"font-medium text-xl md:text-2xl",children:e("common:certifiedArea.whoShouldTake")}),r&&((p=r==null?void 0:r.overview_contents)==null?void 0:p.map((m,w)=>m.type===1&&o.jsxs("div",{className:"flex items-start gap-4 rounded-full py-1 px-2 text-lg",children:[o.jsx("img",{src:"/svg/training/check.svg",className:"w-8 h-8"}),o.jsxs("div",{className:"text-pmi-gray",children:[o.jsx("h4",{className:"font-medium leading-6 text-lg",children:n==="en"?m.title:m.title_indo}),o.jsx("p",{className:"font-light leading-4 md:leading-5 text-base",children:n==="en"?m.description:m.description_indo})]})]},w)))]})]}),o.jsx("div",{className:"w-full flex flex-col lg:flex-row justify-center bg-pmi-gray-light",children:o.jsxs("div",{className:"max-w-4xl space-y-8 py-4",children:[o.jsx("h3",{className:"font-medium text-2xl md:text-3xl text-center",children:e("common:certifiedArea.competencyUnits")}),r&&((y=r==null?void 0:r.schemas)==null?void 0:y.filter(m=>m.void===0).map((m,w)=>{var k,b;return o.jsxs("div",{className:"space-y-4 bg-pmi-white p-4 rounded-lg",id:Qx(m.title),children:[o.jsxs("div",{className:"flex flex-col md:flex-row items-start md:justify-between gap-6 md:gap-2",children:[o.jsxs("div",{className:"flex items-start gap-4 roun
180ded-full py-1 px-2 text-lg max-w-2xl",children:[o.jsx("span",{className:"font-semibold px-4 py-2 rounded-full bg-pmi-light-red",children:w+1}),o.jsxs("div",{className:"space-y-2",children:[o.jsx("h4",{className:"font-medium text-base md:text-lg text-pmi-gray",children:e("common:certifiedArea.certificationSchemes")}),o.jsx("p",{className:"font-semibold text-lg md:text-xl leading-none md:leading-7",children:n==="en"?m.title:m.title_indo})]})]}),o.jsx(sc,{className:on({"px-4 py-2 rounded-lg capitalize":!0,"bg-[#62747E] text-pmi-white":m.media,"bg-gray-400 text-pmi-white":!m.media}),text:e("common:download"),link:(k=m==null?void 0:m.media)!=null&&k.path?`${ze}/${(b=m==null?void 0:m.media)==null?void 0:b.path}`:"#",disabled:!m.media})]}),o.jsx(Lye,{data:m==null?void 0:m.competencies})]},w)}))]})})]})})},$ye=()=>{const{t}=Se(["menu"]),{id:e}=ni();if(!e)return o.jsx(xi,{});const n=QZ(e),i=()=>[{label:t("menu:home"),path:"/"},{label:t("menu:certificationAreaTitle"),path:"#"},{label:t(`${n}`)}];return o.jsx(Ye,{type:"default",forceTitle:n,breadcrumbs:i(),children:o.jsx(Bye,{paramId:n})})},Hye=()=>{const{t}=Se(["common"]),{language:e}=_e(),{data:n,isLoading:i}=YN("Certificate");return n?o.jsx("div",{className:"flex justify-center px-4 md:px-20 xl:px-32 py-8 bg-pmi-red bg-gradient-to-l from-pmi-red to-pmi-red-dark",children:o.jsxs("div",{className:"flex flex-col gap-4 py-8",children:[o.jsx("h3",{className:"font-medium text-3xl text-white italic",children:t("common:certificationNews.recentNews")}),o.jsxs("div",{className:"flex justify-center max-w-7xl",children:[i&&o.jsx(Ot,{minWidth:"w-[80rem]",maxWidth:"max-w-full",minHeight:"min-h-72"}),n&&o.jsx("a",{href:`/training-certification/certification-news/${n.slug}`,className:"w-full cursor-pointer",children:o.jsx(wM,{imageUrl:`${ze}/${n.image}`,title:e==="en"?n.title:n.title_indo,date:t("common:viewed",{date:Ni(n.news_date,e),count:n.views}),content:e==="en"?n.subtitle:n.subtitle_indo,url:`/training-certification/certification-news/${n.slug}`})})]})]})}):null},zye=()=>{const{t}=Se(["common"]),{language:e}=_e(),{searchTerm:n}=kr(),[i,r]=Z.useState(1),{data:s,isLoading:a,refetch:l}=Rd("Certificate",e,n,i),c=d=>{r(d)};return Z.useEffect(()=>{l()},[n,i]),o.jsxs("div",{className:"flex flex-col items-center justify-center bg-pmi-white px-4 md:px-20",children:[!a&&(s==null?void 0:s.total)===0&&o.jsx("p",{className:"text-pmi-red text-3xl font-normal text-center",children:t("common:pressRelease.notFound")}),s&&o.jsxs("div",{className:`grid grid-cols-1 md:grid-cols-${s.data.length>2?3:s.data.length} gap-8 pt-10 pb-4 md:px-0`,children:[a&&[1,2,3].map(d=>o.jsx(Ot,{onlyImage:!0,minHeight:"min-h-40",minWidth:"min-w-52"},d)),s&&s.data.map((d,u)=>o.jsx("a",{href:`/training-certification/certification-news/${d.slug}`,className:" cursor-pointer",children:o.jsx(Of,{image:`${ze}/${d.image}`,title:e==="en"?d.title:d.title_indo,subTitle:t("common:viewed",{date:Ni(d.news_date,e),count:d.views})},u)})),o.jsx("div",{className:"col-span-full border-b border-pmi-gray-lighter",children:o.jsx("p",{className:"w-full text-pmi-gray text-sm font-light mt-8",children:t("common:pagination",{start:(s==null?void 0:s.from)||0,end:(s==null?void 0:s.to)||0,total:(s==null?void 0:s.total)||0})})}),o.jsx("div",{className:"col-span-full justify-center",children:(s==null?void 0:s.links)&&o.jsx(Hi,{links:s==null?void 0:s.links,onPageChange:c})})]})]})},Vye=()=>{const{t}=Se(["common"]);return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-4 lg:py-8 bg-pmi-gray-light px-4 md:px-20",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center",children:t("common:certificationNews.title")}),o.jsx("p",{className:"font-light text-lg text-pmi-gray text-center",children:t("common:certificationNews.description")}),o.jsx("div",{className:"w-full max-w-2xl mx-auto py-8",children:o.jsx(up,{placeholder:"common:certificationNews.searchPlaceholder"})})]})},Uye=()=>{const{t}=Se(["menu"]),{searchTerm:e}=kr(),n=[{label:t("menu:home"),path:"/"},{label:t("menu:certificationNews")}];return o.jsxs(Ye,{type:"default",title:"certificationNews",breadcrumbs:n,children:[o.jsx(Vye,{}),!e&&o.jsx(Hye,{}),o.jsx(zye,{})]})}
180,Wye=()=>{const{t}=Se(["common"]),{language:e}=_e(),{data:n,isLoading:i}=Rd("Certificate",e);return o.jsxs("div",{className:"mb-4",children:[o.jsx("h3",{className:"px-8 py-6 bg-pmi-gray-lighter font-medium text-xl capitalize",children:t("common:certificationNews.recentNews")}),o.jsxs("div",{className:"border px-2",children:[i&&[1,2,3].map(r=>o.jsx(Ot,{onlyImage:!0,minHeight:"min-h-40",minWidth:"min-w-52"},r)),n&&n.data.map((r,s)=>s<3&&o.jsx("a",{href:`/training-certification/certification-news/${r.slug}`,className:" cursor-pointer",children:o.jsx(gv,{date:t("common:viewed",{date:Ni(r.news_date,e),count:r.views}),title:e==="en"?r.title:r.title_indo,titleClass:"capitalize font-bold text-sm text-pmi-black leading-6 py-4 text-ellipsis overflow-hidden",imageUrl:`${ze}/${r.image}`},s)}))]})]})},Gye=({news:t})=>{const{t:e}=Se(["common"]),{language:n}=_e();return o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-8 px-4 md:px-20",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center max-w-2xl",children:n==="en"?t.title:t.title_indo}),o.jsx("p",{className:"font-light text-lg text-pmi-gray text-center",children:e("common:viewed",{date:Ni(t.news_date,n),count:t.views})}),o.jsxs("div",{className:"w-full max-w-6xl mx-auto py-8 space-y-12",children:[o.jsx("img",{src:`${ze}/${t.image}`,alt:n==="en"?t.title:t.title_indo,className:"w-full object-cover max-h-96"}),o.jsxs("div",{className:"flex flex-col lg:flex-row justify-between gap-8",children:[o.jsx("div",{className:"w-full xl:max-w-3xl space-y-4 text-pmi-black text-base font-light leading-8 text-justify",children:o.jsx(Et,{customClassName:"space-y-4",content:n==="en"?t.content:t.content_indo})}),o.jsx("div",{className:"space-y-8",children:o.jsx(Wye,{})})]})]})]})},qye=()=>{const{t}=Se(["menu"]),{id:e}=ni(),{language:n}=_e(),{data:i,isLoading:r,isError:s}=AS(e||"");if(s)return o.jsx(xi,{});if(!i||r)return null;const a=[{label:t("menu:home"),path:"/"},{label:t("menu:certificationNews"),path:"/training-certification/certification-news"},{label:n==="en"?i==null?void 0:i.title:i==null?void 0:i.title_indo}];return o.jsx(Ye,{type:"default",forceTitle:n==="en"?i==null?void 0:i.title:i==null?void 0:i.title_indo,breadcrumbs:a,description:ic(n==="en"?i==null?void 0:i.subtitle:i==null?void 0:i.subtitle_indo),children:o.jsx(Gye,{news:i})})},Kye=({data:t})=>{const{t:e}=Se(["common"]);return o.jsxs("div",{className:"w-[22rem] md:w-full mx-auto flex flex-col flex-wrap gap-4 items-center justify-center mt-8 py-8",children:[o.jsx("h3",{className:"font-bold text-2xl md:text-4xl text-pmi-red text-center",children:e("common:competencyTestCentre.title")}),o.jsx("p",{className:"font-light text-base md:text-lg text-pmi-gray text-center",children:e("common:competencyTestCentre.description")}),o.jsx("div",{className:"w-full px-10 mx-auto max-w-7xl",children:o.jsx("img",{src:`${ze}/${t&&t.path}`||"/png/maps/Maps.png",alt:"Indonesia",className:"w-full h-full"})})]})},Yye=({cities:t,setValue:e,placeholder:n})=>{const[i,r]=Z.useState([]),s=(a,l)=>{console.log("Selected option:",a),console.log("Action meta:",l),a!==null?e("city",a.value):e("city","")};return Z.useEffect(()=>{const a=t.map(l=>({value:l.city,label:l.city,isFixed:!1,isDisabled:!1}));r(a)},[t]),o.jsx(Pp,{className:"appearance-none font-light text-sm text-black outline-none shadow-none focus:shadow-none focus:outline-none focus:ring-2 focus:ring-pmi-red","aria-labelledby":"aria-label",isSearchable:!0,isMulti:!1,isClearable:!0,name:"city",onChange:s,options:i,classNamePrefix:"car-track",placeholder:n,styles:{control:a=>({...a,padding:"2px",borderRadius:"0.75rem",outline:"0px solid transparent",outlineOffset:"0px",":focus":{boxShadow:"none"}}),placeholder:a=>({...a,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}),menu:a=>({...a,color:"#999"}),singleValue:a=>({...a}),indicatorSeparator:a=>({...a,width:"0px"}),input:a=>({...a,color:"#000000",":focus-visible":{boxShadow:"unset"},"input:focus":{boxShadow:"none"}})}})},Xye=({cities:t})=>{const{t:e}=Se(["common"]),{handleSubmit:n,formState:{errors:i},setValue:r}=Ks(),{setSearchTerm:s}=kr(),[a,l]=Z.useState([]),c=async d=>{s(d.city)};return Z.useEffect(()=>{console.log(t);let d=[{province:"All",city:"All"}];t.map(u=>{d.push(u)}),l(d)},[t]),o.jsxs("form",{onSubmit:n(c),className:"flex flex-col md:flex-row justify-center items-center gap-2",children:[o.jsxs("div",{className:"w-full md:pl-8",children:[o.jsx(Yye,{placeholder:e("common:bloodStockInfo.placeholderCity"),setValue:r,cities:a}),i.city&&o.jsx("p",{className:"mt-3 text-sm leading-6 text-red-500",children:i.city.message})]}),o.jsx("div",{className:"w-full md:max-w-20 relative",children:o.jsx("button",{className:on({"btn bg-pmi-red capitalize text-white w-full block px-2 py-3 text-sm text-center rounded-lg":!0}),type:"submit",children:e("common:search")})})]})},Jye=({isOpen:t,onClose:e,data:n})=>{const{t:i}=Se("t");return o.jsxs(cs,{open:t,onClose:e,className:"fixed inset-0 inset-y-40 z-50 flex items-center justify-center px-2 mt-40 lg:mt-56 xl:mt-8",children:[o.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50"}),o.jsx(nc,{className:"w-full max-w-2xl min-h-96 overflow-hidden text-left align-middle rounded-2xl shadow-xl relative",style:{backgroundImage:"linear-gradient(135deg, #951000, #C8484C)",backgroundSize:"cover",backgroundPosition:"center"},children:n&&o.jsxs("div",{className:"h-full p-6",children:[o.jsxs(pv,{className:"flex justify-between items-start z-50",children:[o.jsx("span",{children:"Â "}),o.jsx("div",{className:"relative space-y-4",children:o.jsx("h3",{className:"text-lg md:text-2xl font-medium leading-6 text-white text-center",children:n.schema.name})}),o.jsx("button",{className:"text-pmi-white hover:text-gray-lighter -mt-4 text-2xl z-50",onClick:e,children:o.jsx(cp,{color:"#ffffff",addClassName:"w-8 h-8"})})]}),o.jsxs("div",{className:"w-full max-w-md mx-auto flex flex-col justify-center items-center gap-6 mt-4 md:px-8 z-50 overflow-y-auto scroll-container h-[50vh]",children:[o.jsxs("div",{className:"w-full max-w-md md:h-28 flex items-center md:gap-2 p-2 md:px-4 bg-pmi-white border border-pmi-light-red rounded-lg",children:[o.jsx("img",{src:"/svg/training/certifications.svg",alt:"certifcations",className:"w-14 h-14"}),o.jsxs("div",{className:"relative space-y-4",children:[o.jsx("h4",{className:"font-bold text-2xl text-pmi-red",children:n.schema.total}),o.jsx("span",{className:"font-light text-lg text-pmi-gray",children:i("common:competencyTestCentre.certificationStats.numberOfSchemes")})]})]}),o.jsxs("div",{className:"w-full max-w-md md:h-28 flex items-center md:gap-2 p-2 md:px-4 bg-pmi-white border border-pmi-light-red rounded-lg",children:[o.jsx("img",{src:"/svg/training/accessors.svg",alt:"certifcations",className:"w-14 h-14"}),o.jsxs("div",{className:"relative space-y-4",children:[o.jsx("h4",{className:"font-bold text-2xl text-pmi-red",children:n.accession.total}),o.jsx("span",{className:"font-light text-lg text-pmi-gray",children:i("common:competencyTestCentre.certificationStats.numberOfPersonnel")})]})]}),o.jsxs("div",{className:"w-full max-w-md h-28 py-2 bg-pmi-white border border-pmi-light-red rounded-lg",children:[o.jsx("h4",{className:"text-center text-lg font-medium",children:i("common:competencyTestCentre.certificationStats.numberOfAssessors")}),o.jsxs("div",{className:"flex gap-2 items-center justify-center",children:[o.jsxs("div",{className:"flex items-center gap-2 py-2 md:px-4",children:[o.jsx("img",{src:"/svg/training/man-technology.svg",alt:"certifcations",className:"w-14 h-14"}),o.jsxs("div",{className:"relative space-y-4",children:[o.jsx("p",{className:"font-bold text-2xl text-pmi-red",children:n.accessor.men}),o.jsx("span",{className:"font-light text-lg text-pmi-gray",children:i("common:competencyTestCentre.certificationStats.male")})]})]}),o.jsxs("div",{className:"flex items-center gap-2 py-2 md:px-4",children:[o.jsx("img",{src:"/svg/training/woman-technology.svg",alt:"certifcations",className:"w-14 h-14"}),o.jsxs("div",{className:"relative space-y-4",children:[o.jsx("p",{className:"font-bold text-2xl text-pmi-red",children:n.accessor.women}),o.jsx("span",{className:"font-light text-lg text-pmi-gray",children:i("common:competencyTestCentre.certificationStats.female")})]})]})]})]})]})]})})]})},Qye=async(t,e)=>{const n=an({page:t,size:10,filters:e}),i=await He.get(`/api/tuk-lsp${n}`);if(!i)throw new Error("Network response was not ok");return i==null?void 0:i.data},Zye=async t=>{const e=await He.get(`/api/tuk-lsp/detail/${t}`);if(!e)throw new Error("Network response was not ok");return e.data},ebe=async()=>{const t=await He.get("/api/tuk-lsp/cities");if(!t)throw new Error("Network response was not ok");return t==null?void 0:t.data},tbe=(t,e)=>Ge({queryKey:["tuk-lsp"],queryFn:()=>Qye(t,e),staleTime:1e3*60*60,gcTime:1e3*60*60,enabled:!1}),nbe=t=>Ge({queryKey:["tuk-lsp_detail",t],queryFn:()=>Zye(t),staleTime:1e3*60*60,gcTime:1e3*60*60,enabled:!1}),ibe=()=>Ge({queryKey:["city"],queryFn:()=>ebe(),staleTime:1e3*60*60,gcTime:1e3*60*60}),rbe=({data:t,page:e=1})=>{const{t:n}=Se(["common"]),[i,r]=Z.useState(!1),[s,a]=Z.useState(""),{data:l,isLoading:c,refetch:d}=nbe(s),[u,h]=Z.useState(0);Z.useEffect(()=>{s&&d()},[s,d]),Z.useEffect(()=>{r(!0)},[l]),Z.useEffect(()=>{e&&h((e-1)*10)},[e]);const p=m=>{s==m.name?r(!0):a(m.name)},y=()=>r(!1);return o.jsxs("div",{className:"overflow-x-auto",children:[o.jsxs("table",{className:"min-w-full border border-gray-300 text-sm text-pmi-gray max-w-5xl",children:[o.jsx("thead",{className:"bg-gray-200 uppercase",children:o.jsxs("tr",{children:[o.jsx("th",{className:"font-medium text-sm text-left px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter w-[5%]",children:n("competencyTestCentre.tables.no")}),o.jsx("th",{className:"font-medium text-sm text-left px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter w-[15%]",children:n("competencyTestCentre.tables.location")}),o.jsx("th",{className:"font-medium text-sm text-left px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter w-[22%]",children:n("competencyTestCentre.tables.name")}
180),o.jsx("th",{className:"font-medium text-sm text-left px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter w-[28%]",children:n("competencyTestCentre.tables.address")}),o.jsx("th",{className:"font-medium text-sm text-left px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter w-[5%]"}),o.jsx("th",{className:"font-medium text-sm text-left px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter w-[10%]",children:n("competencyTestCentre.tables.status")}),o.jsx("th",{className:"font-medium text-sm text-left px-4 py-2 border-b-2 border-gray-200 bg-pmi-gray-lighter w-[14%]",children:n("competencyTestCentre.tables.detail")})]})}),o.jsx("tbody",{children:t.map((m,w)=>o.jsxs("tr",{className:"text-left",children:[o.jsx("td",{className:"border border-gray-300 px-4 py-2",children:u+w+1}),o.jsx("td",{className:"border border-gray-300 px-4 py-2",children:m.province}),o.jsx("td",{className:"border border-gray-300 px-4 py-2",children:m.name}),o.jsx("td",{className:"border border-gray-300 px-4 py-2 break-words whitespace-normal",children:m.address}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter",children:o.jsx("a",{href:"#",children:o.jsx("img",{src:"/svg/maps/google-maps.svg",alt:m.province,className:"w-5 h-7"})})}),o.jsx("td",{className:"border border-gray-300 px-4 py-2 uppercase",children:m.status}),o.jsx("td",{className:"px-4 py-2 border border-pmi-gray-lighter space-x-2 text-center",children:o.jsx("button",{onClick:()=>p(m),disabled:c,className:"w-full bg-pmi-dark-gray text-sm text-pmi-white mx-auto px-4 py-2 rounded-lg hover:opacity-75 capitalize",children:s===m.name&&c?"loading...":n("seeDetail")})})]},m.id))})]}),l&&o.jsx(Jye,{isOpen:i,onClose:y,data:l})]})},sbe=({data:t})=>{const{t:e}=Se(["common"]),{searchTerm:n}=kr(),[i,r]=Z.useState(1),{data:s}=ibe(),{data:a,refetch:l}=tbe(i,n);Z.useEffect(()=>{l()},[n]);const c=u=>{r(u)};Z.useEffect(()=>{l()},[i]);const d=[{title:"Email",value:t.email.title,image:"/svg/training/email.svg"},{title:e("common:phone"),value:t.phone.title,image:"/svg/training/phone.svg"},{title:"Instagram",value:t.instagram.title,image:"/svg/training/ig.svg"},{title:"Facebook",value:t.facebook.title,image:"/svg/training/facebook.svg"}];return o.jsxs("div",{className:"w-[22rem] md:w-full mx-auto md:flex md:flex-col flex-wrap gap-2 items-center justify-center mt-8 py-8 bg-pmi-gray-light",children:[o.jsx("h3",{className:"font-bold text-2xl text-pmi-red text-center px-2",children:e("common:competencyTestCentre.searchPlaceholder")}),o.jsx("p",{className:"font-light text-sm text-pmi-gray text-center px-2",children:e("common:competencyTestCentre.selectLocation")}),o.jsx("div",{className:"w-full max-w-2xl mx-auto py-8 px-2",children:s&&o.jsx(Xye,{cities:s})}),o.jsxs("div",{className:"flex flex-col gap-2 py-4 px-2",children:[o.jsx("p",{className:"font-normal text-base -my-2",children:e("common:competencyTestCentre.listTitle")}),o.jsx("div",{className:"flex items-center gap-2 mb-2",children:o.jsx("p",{className:"text-sm text-pmi-gray",children:e("common:competencyTestCentre.listDescription")})}),a&&o.jsx(rbe,{data:a.data,page:i}),o.jsxs("p",{className:"font-light text-sm text-pmi-gray",children:[o.jsxs("strong",{children:[" ",e("common:competencyTestCentre.assistance.title")]}),"Â ",e("common:competencyTestCentre.assistance.description")]}),o.jsx("div",{className:"w-full",children:t&&(a==null?void 0:a.links)&&o.jsx(Hi,{links:a.links,onPageChange:c,currentPage:i})})]}),o.jsx("div",{className:"w-full max-w-6xl flex flex-col md:flex-row justify-center items-center gap-2",children:d.map((u,h)=>o.jsxs("div",{className:"w-full max-w-64 h-20 flex items-center gap-2 py-2 px-4 bg-pmi-white border border-pmi-light-red rounded-lg",children:[o.jsx("img",{src:u.image,alt:"blood",className:"w-12 h-12"}),o.jsxs("div",{className:"relative space-y-4",children:[o.jsx("p",{className:"font-medium text-lg text-pmi-gray",children:u.title}),o.jsx("span",{className:"font-light text-sm text-pmi-gray",children:u.value})]})]},h))})]})},abe=({data:t})=>{const{t:e}=Se(["common"]),{language:n}=_e();return o.jsx("div",{className:"bg-pmi-red-dark bg-gradient-to-r from-pmi-red-dark to-pmi-red-light space-y-6 rounded-b-[3rem] px-8 py-8",children:o.jsxs("div",{className:"w-full flex flex-col md:flex-row items-center justify-between gap-4 max-w-screen-6xl mx-auto",children:[o.jsxs("div",{className:"relative space-y-4 py-12 md:px-12 text-pmi-white max-w-3xl",children:[o.jsx("h2",{className:"max-w-lg text-2xl font-medium mb-4 leading-tight",children:(n==="en"?t==null?void 0:t.t
180itle:t==null?void 0:t.title_indo)||e("common:competencyTestCentre.pmiPca.title")}),o.jsx("p",{className:"text-base md:text-lg font-normal mb-4 leading-6",children:(n==="en"?t==null?void 0:t.desc:t==null?void 0:t.desc_indo)||e("common:competencyTestCentre.pmiPca.description")}),o.jsx("a",{href:"/training-certification/competency-test-center/pca",className:"block text-right font-semibold text-pmi-white text-lg md:text-xl rounded-lg drop-shadow-lg py-2 cursor-pointer",children:e("common:learnMore")})]}),o.jsx("div",{className:"relative mx-auto",children:o.jsx("div",{className:"bg-white py-3 pl-2 pr-3 rounded-3xl",children:o.jsx("img",{src:"/png/training/lsp.png",alt:"lsp",className:"w-full h-40 mx-auto"})})})]})})},obe=()=>{const{t}=Se(["menu"]),{data:e}=I5(),n=[{label:t("menu:home"),path:"/"},{label:t("menu:competencyTestCentre")}];return o.jsxs(Ye,{type:"default",title:"competencyTestCentre",breadcrumbs:n,children:[o.jsx(abe,{data:e&&e.header}),o.jsx(Kye,{data:e&&e.map}),e&&o.jsx(sbe,{data:e})]})},lbe=({aboutUs:t,vision:e})=>{const{t:n}=Se(["common"]),{language:i}=_e();return o.jsxs("div",{className:"bg-pmi-white space-y-6 rounded-b-[3rem] px-2 py-8",children:[o.jsxs("div",{className:"w-[21rem] md:w-full max-w-6xl mx-auto flex flex-col md:flex-row items-center justify-between gap-4",children:[o.jsx("div",{className:"relative space-y-4 md:py-12 max-w-3xl",children:o.jsx("h2",{className:"max-w-xl text-2xl md:text-4xl font-medium mb-4 leading-tight",children:n("common:competencyTestCentre.pmiPca.title")})}),o.jsx("div",{className:"relative",children:o.jsx("img",{src:"/png/training/lsp.png",alt:"lsp",className:"w-full h-40"})})]}),o.jsxs("div",{className:"w-[21rem] md:w-full max-w-6xl space-y-4 mx-auto md:px-10 lg:px-0",children:[o.jsx("h3",{className:"font-normal text-2xl text-pmi-red",children:n("common:pca.aboutUs")}),o.jsx("p",{className:"font-light text-base text-pmi-gray text-justify max-w-4xl",children:o.jsx(Et,{content:t&&(i==="en"?t.desc:t.desc_indo)||n("common:pca.description")})}),o.jsx("h3",{className:"font-normal text-2xl text-pmi-red",children:n("common:pca.vision")}),o.jsx("div",{className:"font-light text-base text-pmi-gray text-justify max-w-4xl",children:o.jsx(Et,{content:e&&(i==="en"?e.desc:e.desc_indo)||n("common:pca.visionDescription")})})]})]})},cbe=({data:t})=>{const{t:e}=Se(["common"]),{language:n}=_e(),{data:i}=I5(),{data:r}=yx("CertificationMission"),{data:s}=yx("CertificationProgram"),{data:a}=yx("CertificationReason"),l=[{title:"Email",value:i==null?void 0:i.email.title,image:"/svg/training/email.svg"},{title:e("common:phone"),value:i==null?void 0:i.phone.title,image:"/svg/training/phone.svg"},{title:"Instagram",value:i==null?void 0:i.instagram.title,image:"/svg/training/ig.svg"},{title:"Facebook",value:i==null?void 0:i.facebook.title,image:"/svg/training/facebook.svg"}];return console.log(t),o.jsxs("div",{className:"bg-pmi-white mt-8",children:[o.jsx("div",{className:"w-full bg-pmi-red-dark bg-gradient-to-r from-pmi-red-dark to-pmi-red-light py-2 px-6 md:py-8 md:px-10 lg:px-0",children:o.jsxs("div",{className:"w-full max-w-6xl mx-auto flex flex-col md:flex-row gap-8 lg:items-center justify-between rounded-b-[2rem] mt-8 py-4",children:[o.jsxs("div",{className:"w-full md:max-w-96 relative space-y-6",children:[o.jsx("h3",{className:"font-normal text-2xl text-pmi-white",children:e("common:pca.mission")}),r&&r.map(c=>o.jsx("div",{className:"bg-pmi-white/20 p-6 rounded-3xl",children:o.jsx("p",{className:"text-white text-base",children:n==="en"?c.title:c.title_indo})},c.card_id))]}),o.jsxs("div",{className:"w-full max-w-2xl relative space-y-6",children:[o.jsx("h3",{className:"font-normal text-2xl text-pmi-white",children:e("common:pca.coreValues")}),o.jsx("div",{className:"relative space-y-4 bg-pmi-white rounded-2xl px-6 py-8",children:o.jsx(Et,{content:t.coreValues&&(n==="en"?t.coreValues.desc:t.coreValues.desc_indo)||""})})]})]})}),o.jsxs("div",{className:"bg-pmi-white space-y-16 rounded-b-[3rem] px-2 py-8",children:[o.jsxs("div",{className:"w-full h-full max-w-6xl space-y-4 mx-auto py-8 px-10 rounded-3xl shadow-lg drop-shadow-lg",children:[o.jsx("h3",{className:"font-normal text-2xl text-pmi-red",children:e("common:pca.certificationPrograms.title")}),o.jsx("p",{className:"font-light text-base text-pmi-gray max-w-4xl",children:e("common:pca.certificationPrograms.description")}),o.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 ga
180p-8",children:s&&s.map((c,d)=>o.jsxs("div",{className:"w-full h-full space-y-2 mx-auto py-4 px-2 rounded-lg",children:[o.jsx(or,{src:`${ze}/${c.image}`,alt:c.title,className:"w-64 mx-auto"}),o.jsx("h4",{className:"font-medium text-base text-center",children:n==="en"?c.title:c.title_indo}),o.jsx("p",{className:"font-light text-sm text-center",children:n==="en"?c.desc:c.desc_indo})]},d))})]}),o.jsxs("div",{className:"w-full max-w-6xl space-y-4 mx-auto bg-pmi-light-red py-8 px-10 rounded-3xl drop-shadow-lg",children:[o.jsx("h3",{className:"font-normal text-2xl text-pmi-red",children:e("common:pca.whyChoose.title")}),o.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 items-center gap-8",children:a&&a.map((c,d)=>o.jsxs("div",{className:"w-full min-h-44 h-full space-y-2 mx-auto py-6 px-8 bg-pmi-red-dark bg-gradient-to-r from-pmi-red-dark to-pmi-red-light rounded-lg",children:[o.jsx("h4",{className:"font-medium text-lg text-pmi-white",children:n==="en"?c.title:c.title_indo}),o.jsx("p",{className:"font-light text-sm text-pmi-white",children:n==="en"?c.desc:c.desc_indo})]},d))})]}),o.jsxs("div",{className:"w-[21rem] md:w-full max-w-5xl space-y-4 mx-auto",children:[o.jsx("h3",{className:"font-normal text-2xl text-pmi-red",children:e("common:pca.ourImpact.title")}),o.jsx("p",{className:"font-light text-base text-pmi-gray text-justify max-w-4xl",children:o.jsx(Et,{content:(n==="en"?t.ourImpact.desc:t.ourImpact.desc_indo)||e("common:pca.ourImpact.description1")})})]}),o.jsxs("div",{className:"w-[21rem] md:w-full max-w-5xl space-y-2 mx-auto",children:[o.jsx("h3",{className:"font-normal text-2xl text-pmi-red",children:e("common:pca.contactUs.title")}),o.jsx("h4",{className:"font-bold text-base text-pmi-black",children:(n==="en"?t.contact.title:t.contact.title_indo)||e("common:pca.contactUs.agencyName")}),o.jsx("p",{className:"font-light text-base text-pmi-gray",children:t.contact.subtitle||e("common:pca.contactUs.address")}),o.jsx("a",{href:`http://${t.contact.desc||e("common:pca.contactUs.website")}`,target:"_blank",rel:"noopener noreferrer",className:"font-medium text-base text-pmi-red",children:t.contact.desc||e("common:pca.contactUs.website")}),o.jsx("div",{className:"flex flex-col md:flex-row items-center gap-4",children:l.map((c,d)=>o.jsxs("div",{className:"w-full h-20 flex items-center gap-2 py-2 px-4 bg-pmi-white border border-pmi-light-red rounded-lg",children:[o.jsx("img",{src:c.image,alt:c.title,className:"w-12 h-12"}),o.jsxs("div",{className:"relative space-y-4",children:[o.jsx("p",{className:"font-normal text-base text-pmi-gray",children:c.title}),o.jsx("span",{className:"font-light text-sm text-pmi-gray",children:c.value})]})]},d))})]})]})]})},dbe=()=>{const{t}=Se(["menu"]),{data:e}=oee(),n=[{label:t("menu:home"),path:"/"},{label:t("menu:competencyTestCentre"),path:"/training-certification/competency-test-center"},{label:t("menu:pca")}];return o.jsxs(Ye,{type:"default",title:"pca",breadcrumbs:n,children:[o.jsx(lbe,{aboutUs:e&&e.aboutUs,vision:e&&e.ourVision}),e&&o.jsx(cbe,{data:e})]})},ube=({title:t,subTitle:e,imageUrl:n,videoUrl:i,className:r})=>o.jsxs("div",{className:`group w-full rounded-xl p-6 space-y-4 overflow-hidden shadow-lg drop-shadow-lg bg-white min-h-72 ${r}`,children:[o.jsx("div",{className:"relative",children:o.jsx(Zf,{imageUrl:n,videoUrl:i,className:"w-full md:max-w-[800px] min-w-full h-[450px]"})}),o.jsx("h4",{className:"capitalize font-medium text-sm xl:text-xl text-pmi-red leading-6 text-ellipsis overflow-hidden",style:{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"},children:t}),o.jsx("p",{className:"text-pmi-gray text-sm font-light",children:e})]}),hbe={desktop:{breakpoint:{max:4e3,min:1024},items:3},tablet:{breakpoint:{max:1024,min:768},items:2},mobile:{breakpoint:{max:768,min:0},items:1}},pbe=({testimonials:t})=>{const{language:e}=_e(),n=Z.useRef(null),i=()=>{n.current&&n.current.previous(0)},r=()=>{n.current&&n.current.next(0)};return o.jsxs("div",{className:"relative px-4",children:[o.jsxs("div",{className:"absolute w-full flex justify-between items-center top-1/2 transform -translate-y-1/2",children:[o.jsx("button",{className:"text-white -ml-4",onClick:i,children:o.jsx("img",{src:"/svg/arrow/arrow-left-gray.svg",alt:"left",className:"w-6 h-6 md:w-12 md:h-12"})}),o.jsx("button",{className:"text-white",onClick:r,children:o.jsx("img",{src:"/svg/arrow/arrow-right-gray.svg",alt:"right",className:"w-6 h-6 md:w-12 md:h-12"})})]}),o.jsx("div",{className:"relative px-2 md:px-6",children:o.jsx(Z1,{ref:n,responsive:hbe,infinite:!0,arrows:!1,autoPlay:!0,autoPlaySpeed:3e3,keyBoardControl:!0,customTransition:"all 0.5s",transitionDuration:500,containerClass:"px-2",itemClass:"px-2 md:px-4",renderButtonGroupOutside:!0,children:t.map((s,a)=>o.jsxs("div",{className:"bg-gradient-to-b from-[#F8F8F8] to-[#B37D7D]/20 p-6 mx-2 shadow-md rounded-xl border border-gray-200 max-w-md h-full",children:[o.jsx("div",{className:"mx-auto mb-3","data-a":`${ze}/${s.image}`,children:o.jsx("div",{className:"rounded-full flex justify-center items-center w-32 h-32 mx-auto overflow-hidden",children:o.jsx(or,{src:`${ze}/${s.image}`,alt:s.name,className:"w-full"})})}),o.jsx("h3",{className:"text-center text-xl font-semibold text-pmi-red",children:s.name}),o.jsx("h4",{className:"text-center text-base text-pmi-gray font-light mb-4",children:s.position}),o.jsxs("p",{className:"text-sm text-pmi-gray",children:['"',e==="en"?s.desc:s.desc_indo,'"']})]},a))})})]})},mbe=()=>{var a,l,c;const{t}=Se(["common"]),{language:e}=_e(),{data:n,isLoading:i}=lee(),{data:r}=cee(2);if(i&&!n)return o.jsx("div",{className:"flex justify-center items-center",children:[1,2].map(d=>o.jsx(Ot,{onlyImage:!0,minHeight:"min-h-72",minWidth:"min-w-72"},d))});const s=(((a=n==null?void 0:n.media)==null?void 0:a.length)||3)>3?3:(l=n==null?void 0:n.media)==null?void 0:l.length;return n&&o.jsxs("div",{className:"bg-pmi-white mt-8",children:[o.jsx("div",{className:"w-full bg-pmi-red-dark bg-gradient-to-r from-pmi-red-dark to-pmi-red-light",children:o.jsxs("div",{className:"flex flex-col flex-wrap gap-4 items-center justify-center w-full bg-pmi-white rounded-b-[2rem] mt-8 py-4 px-4",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center",children:(e==="en"?n.header.title:n.header.title_indo)||t("common:testimonials.title")}),o.jsx("p",{className:"font-light text-lg text-pmi-gray text-center max-w-screen-lg",children:(e==="en"?n.header.title:n.header.subtitle_indo)||t("common:testimonials.description")}),o.jsx("div",{className:"w-full space-y-6 max-w-6xl mx-auto px-4 py-12",children:r&&o.jsx(pbe,{testimonials:r})})]})}),o.jsx("div",{className:"w-full bg-pmi-white",children:o.jsx("div",{className:"bg-pmi-red-dark bg-gradient-to-r from-pmi-red-dark to-pmi-red-light space-y-6 rounded-b-[2rem] px-8 py-8",children:o.jsxs("div",{className:"w-full space-y-6 max-w-6xl mx-auto",children:[o.jsx("h3",{className:"text-white text-2xl text-center font-bold",children:n.documentation&&(e==="en"?n.documentation.title:n.documentation.title_indo)||t("common:testimonials.lspDocumentation.title")}),o.jsx("div",{className:`grid grid-cols-1 md:grid-cols-${s} h-full justify-center items-center gap-6`,children:(c=n==null?void 0:n.media)==null?void 0:c.map((d,u)=>o.jsx(ube,{title:e==="en"?d.media_name:d.media_name_indo,subTitle:`PMI TV | ${Ni(d.dt_record,e)}`,imageUrl:"/png/training/emergency-response.png",videoUrl:`${d.external_url}`,className:"h-full max-w-[800px] mx-auto"},u))}),o.jsx("a",{href:n.documentation&&n.documentation.url||"https://www.youtube.com/@pmi_tv",target:"_blank",className:"block bg-pmi-white w-full max-w-[800px] mx-auto rounded-lg font-medium text-xl text-center p-2",children:n.documentation&&(e==="en"?n.documentation.subtitle:n.documentation.subtitle_indo)||t("common:testimonials.moreVideos")})]})})}),o.jsx("div",{className:"py-8 bg-pmi-white w-full px-2",children:o.jsxs("div",{className:"max-w-4xl mx-auto
180space-y-4 px-4",children:[o.jsx("h3",{className:"text-pmi-red text-2xl text-center font-bold",children:n.footer&&(e==="en"?n.footer.title:n.footer.title_indo)||t("common:testimonials.empoweringMessage")}),o.jsx("div",{className:"text-pmi-gray text-base text-center font-light",children:o.jsx(Et,{content:n.footer&&(e==="en"?n.footer.desc:n.footer.desc_indo)||t("common:testimonials.empoweringDescription")})})]})})]})},fbe=()=>{const{t}=Se(["menu"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:testimonials")}];return o.jsx(Ye,{type:"default",title:"testimonials",breadcrumbs:e,children:o.jsx(mbe,{})})},gbe=async(t,e)=>{const n=an({void:0,paginate:1,category:e,page:t}),i=await He.get(`/api/trainings${n}`);if(!i)throw new Error("Network response was not ok");return i==null?void 0:i.data},xbe=async t=>{const e=an({void:0,type:t}),n=await He.get(`/api/training-submission-categories${e}`);if(!n)throw new Error("Network response was not ok");return n.data},ybe=async t=>{const e=await He.post("/api/training-submissions",t);if(!e)throw new Error("Network response was not ok");return e},bbe=async()=>{const t=an({void:0}),e=await He.get(`/api/training-programs${t}`);if(!e)throw new Error("Network response was not ok");return e==null?void 0:e.data},vbe=async t=>{const e=await He.get(`/api/training-programs/${t}`);if(!e)throw new Error("Network response was not ok");return e==null?void 0:e.data},wbe=async()=>{const t=an({void:0}),e=await He.get(`/api/training-categories${t}`);if(!e)throw new Error("Network response was not ok");return e==null?void 0:e.data},kbe=async t=>{const e=await He.get(`/api/training-categories/${t}`);if(!e)throw new Error("Network response was not ok");return e==null?void 0:e.data},Sbe=async(t,e,n,i)=>{const r=an({void:0,paginate:1,status:e,page:t,training_program_slug:n,training_category_slug:i}),s=await He.get(`/api/training-schedules${r}`);if(!s)throw new Error("Network response was not ok");return s==null?void 0:s.data},Cbe=async t=>{const e=await He.get(`/api/training-schedules/${t}`);if(!e)throw new Error("Network response was not ok");return e==null?void 0:e.data},jbe=async t=>{const e=await He.get(`/api/training-insights?void=0&slug=${t}`);if(!e)throw new Error("Network response was not ok");return e==null?void 0:e.data},Tbe=async t=>{const e=await He.get(`/api/training-outcomes?void=0&slug=${t}`);if(!e)throw new Error("Network response was not ok");return e==null?void 0:e.data},Pbe=async t=>{const e=await He.get(`/api/training-informations?void=0&slug=${t}`);if(!e)throw new Error("Network response was not ok");return e==null?void 0:e.data},Ebe=async()=>{const t=await He.get("/api/cards?void=0&page_name=TrainingReason");if(!t)throw new Error("Network response was not ok");return t==null?void 0:t.data},Abe=async()=>{const t=an({void:0,company_type:2}),e=await He.get(`/api/training-clients${t}`);if(!e)throw new Error("Network response was not ok");return e==null?void 0:e.data},Nbe=async t=>{const e=an({void:0,page:t}),n=await He.get(`/api/training-menus${e}`);if(!n)throw new Error("Network response was not ok");return n==null?void 0:n.data},Mbe=async t=>{const e=an({void:0,paginate:1,page:t}),n=await He.get(`/api/training-partners${e}`);if(!n)throw new Error("Network response was not ok");return n==null?void 0:n.data},Dbe=(t,e)=>Ge({queryKey:["training",t,e],queryFn:()=>gbe(t,e),staleTime:1e3*60*60,gcTime:1e3*60*60}),_be=t=>Ge({queryKey:["training_submission_category",t],queryFn:()=>xbe(t),staleTime:1e3*60*60,gcTime:1e3*60*60}),Ibe=()=>MK({mutationFn:t=>ybe(t),onSuccess:t=>{console.log("Training data posted successfully:",t)},onError:t=>{console.error("Error posting training data:",t)}}),Rbe=()=>Ge({queryKey:["training_programs"],queryFn:()=>bbe(),staleTime:1e3*60*60,gcTime:1e3*60*60}),Fz=t=>Ge({queryKey:["training_program",t],queryFn:()=>vbe(t),staleTime:1e3*60*60,gcTime:1e3*60*60}),Obe=()=>Ge({queryKey:["training_categories"],queryFn:()=>wbe(),staleTime:1e3*60*60,gcTime:1e3*60*60}),Bz=t=>Ge({queryKey:["training_category",t],queryFn:()=>kbe(t),staleTime:1e3*60*60,gcTime:1e3*60*60}),Lbe=(t,e,n,i)=>Ge({queryKey:["training_schedules",t,e,n,i],queryFn:()=>Sbe(t,e,n,i),staleTime:1e3*60*60,gcTime:1e3*60*60}),Fbe=t=>Ge({queryKey:["training_schedule",t],queryFn:()=>Cbe(t),staleTime:1e3*60*60,gcTime:1e3*60*60}),Bbe=t=>Ge({queryKey:["training_insights",t],queryFn:()=>jbe(t),staleTime:1e3*60*60,gcTime:1e3*60*60,enabled:!1}),$be=t=>Ge({queryKey:["training_outcomes",t],queryFn:()=>Tbe(t),staleTime:1e3*60*60,gcTime:1e3*60*60,enabled:!1}),Hbe=t=>Ge({queryKey:["training_informations",t],queryFn:()=>Pbe(t),staleTime:1e3*60*60,gcTime:1e3*60*60,enabled:!1}),zbe=()=>Ge({queryKey:["training_reasons"],queryFn:()=>Ebe(),staleTime:1e3*60*60,gcTime:1e3*60*60,enabled:!1}),$z=()=>Ge({queryKey:["training_clients"],queryFn:()=>Abe(),staleTime:1e3*60*60,gcTime:1e3*60*60,enabled:!1}),jv=t=>Ge({queryKey:["training_clients",t],queryFn:()=>Nbe(t),staleTime:1e3*60*60,gcTime:1e3*60*60,enabled:!1}),Vbe=t=>Ge({queryKey:["training_partners",t],queryFn:()=>Mbe(t),staleTime:1e3*60*60,gcTime:1e3*60*60,enabled:!1}),Ube=()=>{const{t}=Se(["common"]),{language:e}=_e(),{data:n,refetch:i}=lp("TrainingProgramDetail"),{data:r,refetch:s}=Rbe();return Z.useEffect(()=>{i(),s()},[]),n&&n.length>0&&o.jsx("div",{className:"bg-pmi-red-dark bg-gradient-to-r from-pmi-red-dark to-pmi-red-light space-y-6 rounded-b-[3rem] px-8 pb-8 md:py-8",children:o.jsxs("div",{className:"w-full flex flex-col xl:flex-row xl:items-center xl:justify-center gap-4 max-w-screen-7xl xl:mx-auto",children:[o.jsxs("div",{className:"relative space-y-4 py-12 text-pmi-white",children:[o.jsx("h2",{className:"xl:max-w-md text-4xl md:text-5xl font-bold mb-4 leading-tight",children:e==="en"?n[0].title:n[0].title_indo}),o.jsx("p",{className:"xl:max-w-lg text-base md:text-xl font-light mb-4",children:e==="en"?n[0].short_desc:n[0].short_desc_indo}),o.jsx("a",{href:"/training-certification/training/training-programs",className:"block w-full max-w-44 md:max-w-64 bg-pmi-white font-semibold text-pmi-black text-base md:text-xl text-center rounded-lg drop-shadow-lg py-2",children:t("common:learnMore")})]}),o.jsx("div",{className:"flex flex-col md:flex-row justify-center gap-6",children:r&&r.map((a,l)=>o.jsx(OT,{title:e==="en"?a.name:a.name_indo,subTitle:e==="en"?a.short_desc:a.short_desc_indo,image:`${ze}/${a.image}`,url:`/training-certification/training/type/${a.slug}`},l))})]})})},Wbe=(t,e)=>{t.preventDefault(),Ld.event({category:"Download",action:"click_download_button",label:"User downloaded file"}),window.open(e,"_blank")},Gbe=({isOpen:t,onClose:e,data:n})=>{const{t:i}=Se(["menu","common"]),{language:r}=_e();return o.jsxs(cs,{open:t,onClose:e,className:"fixed inset-0 inset-y-40 z-50 flex items-center justify-center px-2 mt-40 lg:mt-56 xl:mt-8",children:[o.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50"}),o.jsx(nc,{className:"w-[21rem] md:w-full max-w-2xl min-h-96 overflow-hidden text-left align-middle shadow-xl relative",style:{backgroundImage:"linear-gradient(135deg, #951000, #C8484C)",backgroundSize:"cover",backgroundPosition:"center"},children:o.jsxs("div",{className:"h-full p-6",children:[n&&o.jsxs(pv,{className:"flex justify-between items-start z-50",children:[o.jsx("span",{children:"Â "}),o.jsxs("div",{className:"relative space-y-4",children:[o.jsx("h3",{className:"text-xl font-light leading-6 text-white text-center",children:i("menu:training")}),o.jsx("p",{className:"text-xl font-medium leading-6 text-white text-center max-w-xs",children:r==="en"?n.name:n.name_indo})]}),o.jsx("button",{className:"text-pmi-white hover:text-gray-lighter -mt-4 text-2xl z-50",onClick:e,children:o.jsx(cp,{color:"#ffffff",addClassName:"w-8 h-8"})})]}),o.jsx("div",{className:"flex flex-col justify-center items-center gap-6 mt-4 z-50 overflow-y-auto scroll-container h-[50vh]",children:n&&n.document?o.jsxs("div",{className:"space-y-4 mx-auto",children:[o.jsx("p",{className:"text-lg text-pmi-white text-center",children:n.name}),o.jsx("a",{href:`${ze}/download/document/${n.document}`,onClick:s=>Wbe(s,`${ze}/download/document/${n.document}`),className:"cursor-pointer w-full text-pmi-white z-50",children:o.jsxs("p",{className:"mx-auto flex justify-center items-center gap-2 text-sm capitalize ",children:[o.jsx("span",{className:"font-normal",children:i("download")}),o.jsx("img",{src:"/svg/download-white.svg",alt:i("download"),className:"w-4 -h-4"})]})})]}):o.jsx("p",{className:"font-medium text-lg text-pmi-white",children:i("common:noData")})})]})})]})},zM=()=>{const{t}=Se(["common"]),{language:e}=_e(),[n,i]=Z.useState(null),[r,s]=Z.useState(!1),[a,l]=Z.useState(1),[c,d]=Z.useState(1),{training_program_slug:u,training_c
180ategory_slug:h}=ni(),{data:p,refetch:y,isLoading:m}=Lbe(a,"",u,h),w=x=>{l(x)};Z.useEffect(()=>{y()},[]),Z.useEffect(()=>{y(),m==!1&&d((a-1)*10)},[a,m]);const k=x=>{i(x),s(!0)},b=()=>s(!1);return o.jsxs("div",{className:"overflow-x-auto py-4",children:[o.jsxs("table",{className:"min-w-full table-auto bg-white border border-gray-200 text-pmi-gray",children:[o.jsx("thead",{className:"bg-pmi-red text-pmi-white",children:o.jsxs("tr",{children:[o.jsx("th",{className:"px-4 py-2",children:t("trainingPrograms.tables.no")}),o.jsx("th",{className:"px-4 py-2",children:t("trainingPrograms.tables.trainingName")}),o.jsx("th",{className:"px-4 py-2",children:t("trainingPrograms.tables.category")}),o.jsx("th",{className:"px-4 py-2",children:t("trainingPrograms.tables.schedule")}),o.jsx("th",{className:"px-4 py-2",children:t("trainingPrograms.tables.location")}),o.jsx("th",{className:"px-4 py-2",children:t("trainingPrograms.tables.status")}),o.jsx("th",{className:"px-4 py-2",children:t("trainingPrograms.tables.action")})]})}),o.jsx("tbody",{className:"bg-pmi-white",children:p&&p.data.map((x,v)=>o.jsxs("tr",{className:"hover:bg-gray-50",children:[o.jsx("td",{className:"border border-gray-300 px-4 py-2 text-center",children:c+v+1}),o.jsx("td",{className:"border border-gray-300 px-4 py-2",children:e==="en"?x.training.name:x.training.name_indo}),o.jsx("td",{className:"border border-gray-300 px-4 py-2",children:x.training.training_category&&(e==="en"?x.training.training_category.name:x.training.training_category.name_indo)}),o.jsx("td",{className:"border border-gray-300 px-4 py-2",children:IB(x.start_date,x.end_date,e)}),o.jsx("td",{className:"border border-gray-300 px-4 py-2",children:x.training_center.branch_name}),o.jsx("td",{className:"border border-gray-300 px-4 py-2 text-center",children:o.jsx("span",{className:"",children:x.status_label.charAt(0).toUpperCase()+x.status_label.slice(1)})}),o.jsxs("td",{className:"px-4 py-2 border border-pmi-gray-lighter flex flex-col md:flex-row gap-2 text-center",children:[o.jsx("button",{className:"w-full bg-pmi-dark-gray text-sm text-pmi-white mx-auto px-4 py-2 rounded-lg hover:opacity-75",onClick:()=>k(x.training),children:t("library.table.detail")}),x.status!==1&&x.is_registration_open===1&&o.jsx("a",{href:`/training-certification/training/registration/${x.id}`,className:"w-full bg-pmi-red text-sm text-pmi-white mx-auto px-4 py-2 rounded-lg hover:opacity-75",children:t("trainingPrograms.tables.register")})]})]},`${x.id}-${v}`))})]}),o.jsx("div",{className:"col-span-full border-b border-pmi-gray-lighter",children:o.jsx("p",{className:"w-full text-pmi-gray text-sm font-light my-2 md:mt-8",children:t("common:pagination",{start:(p==null?void 0:p.from)||0,end:(p==null?void 0:p.to)||0,total:(p==null?void 0:p.total)||0})})}),o.jsx("div",{className:"col-span-full justify-center",children:p&&p.links&&o.jsx(Hi,{links:p.links,onPageChange:w,currentPage:a})}),o.jsx(Gbe,{isOpen:r,onClose:b,data:n})]})},qbe=async(t,e)=>{const n=an({void:0,type:t,is_featured:e}),i=await He.get(`/api/testimonials${n}`);if(!i)throw new Error("Network response was not ok");return i==null?void 0:i.data},Kbe=async()=>{const t=await He.get("/api/cards?void=0&page_name=TrainingTestimonialDetail§ion=1");if(!t)throw new Error("Network response was not ok");return t==null?void 0:t.data},Hz=(t,e)=>Ge({queryKey:["testimonials",t,e],queryFn:()=>qbe(t,e),staleTime:1e3*60*60,gcTime:1e3*60*60}),zz=()=>Ge({queryKey:["testimonial_detail"],queryFn:()=>Kbe(),staleTime:1e3*60*60,gcTime:1e3*60*60,enabled:!1}),Ybe=async t=>{const e=await He.get(`/api/default-settings/${t}`);if(!e)throw new Error("Network response was not ok");return e==null?void 0:e.data},Xbe=t=>Ge({queryKey:["default_setting",t],queryFn:()=>Ybe(t),staleTime:1e3*60*60,gcTime:1e3*60*60,enabled:!1}),Jbe=()=>{const{t}=Se(["common"]),{language:e}=_e(),{data:n,refetch:i}=zbe(),{data:r,refetch:s,isLoading:a}=$z(),{data:l,refetch:c}=jv(),{data:d,refetch:u,isLoading:h}=Hz(1,1),{data:p,refetch:y}=zz(),{data:m,refetch:w}=Xbe("Max Grid Training Reason"),k=(b,x=100)=>b.length>x?b.slice(0,x)+"...":b;return Z.useEffect(()=>{i(),s(),c(),u(),y(),w()},[]),o.jsxs("div",{className:"relative",children:[o.jsx(Ube,{}),o.jsxs("div",{className:"w-[22rem] md:w-full max-w-7xl space-y-4 py-12 px-2 mx-auto",children:[o.jsx("h3",{className:"font-normal text-lg md:text-2xl text-pmi-red",children:t("common:trainingPrograms.startLearning")}),o.jsx("p",{className:"font-medium text-2xl md:text-4xl text-pmi-black",children:t("common:trainingPrograms.pmiTraining")}),o.jsx("div",{className:`grid grid-cols-1 md:grid-cols-3 lg:grid-cols-${l&&l.length>4?4:l?l.length:1} justify-center justify-items-center place-items-center gap-8 mx-auto`,children:l&&l.map((b,x)=>{var v;return o.jsx("a",{href:((v=b.page)==null?void 0:v.replace("__","/"))??"#",className:"w-full max-w-sm h-full cursor-pointer",children:o.jsxs("div",{className:"bg-pmi-gray-light py-4 md:py-6 px-4 space-y-4 rounded-lg drop-shadow-lg h-full",children:[o.jsx("div",{className:"relative w-16 h-16 md:w-20 md:h-20 overflow-hidden rounded-full",children:o.jsx("img",{src:`${ze}/${b.image}`,alt:"",className:"absolute top-1/2 left-1/2 w-auto h-full transform -translate-x-1/2 -translate-y-1/2 object-cover"})}),o.jsxs("div",{className:"flex justify-between items-center",children:[o.jsx("h4",{className:"font-medium text-base md:text-xl",children:e==="en"?b.title:b.title_indo}),o.jsx("img",{src:"/svg/arrow/arrow-right.svg",alt:"arrow",className:"w-8 h-8"})]})]})},x)})})]}),o.jsx("div",{className:"bg-pmi-light-red md:py-14",children:o.jsxs("div",{className:"w-[22rem] md:w-full max-w-7xl space-y-4 py-8 px-2 mx-auto",children:[o.jsx("h3",{className:"font-normal text-lg md:text-2xl text-pmi-red",children:t("common:trainingPrograms.checkSchedule")}),o.jsx("p",{className:"font-semibold text-2xl md:text-4xl text-pmi-black",children:t("common:trainingPrograms.ongoingTrainings")}),o.jsx(zM,{})]})}),o.jsx("div",{className:"bg-pmi-red-dark bg-gradient-to-r from-pmi-red-dark to-pmi-red-light lg:max-h-[32rem] px-2 xl:px-0",children:o.jsxs("div",{className:"w-[21rem] md:w-full flex flex-col lg:flex-row lg:items-center lg:justify-center gap-6 max-w-7xl mx-auto py-8 lg:py-0",children:[o.jsx("div",{className:"relative space-y-4 py-12 text-pmi-white",children:p&&p[0]&&o.jsxs(o.Fragment,{children:[o.jsx("h4",{className:"text-xl md:text-2xl lg:max-w-md font-bold mb-4 leading-tight",children:e==="en"?p[0].subtitle:p[0].subtitle_indo}),o.jsx("h3",{className:"lg:max-w-md text-4xl font-bold mb-4 leading-tight",children:e==="en"?p[0].title:p[0].title_indo}),o.jsx("p",{className:"max-w-lg text-base font-light mb-4",children:k(e==="en"?p[0].desc||"":p[0].desc_indo||"",350)}),o.jsx("a",{href:"/training-certification/training/testimonials",className:"block w-full max-w-44 md:max-w-64 bg-pmi-white font-semibold text-pmi-black text-base md:text-xl text-center rounded-lg drop-shadow-lg py-2",children:t("common:learnMore")})]})}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-x-8 gap-y-16 lg:gap-y-10 lg:-mt-8",children:[h&&[1,2,3,4,5,6].map((b,x)=>o.jsxs("div",{className:`w-full lg:max-w-xs h-52 space-y-2 p-6 bg-pmi-gray-light drop-shadow-lg rounded-lg ${x%2===0&&"-mt-6"} ${x%2===1&&"-mt-14"} animate-pulse p-4 rounded-lg shadow-lg bg-gray-100 min-w-72`,children:[o.jsx("div",{className:"h-4 bg-gray-300 rounded w-1/3 mb-2"}),o.jsx("div",{className:"h-3 bg-gray-300 rounded w-full mb-44"}),o.jsx("div",{className:"h-3 bg-gray-300 rounded w-full mb-44"}),o.jsx("div",{className:"h-10"}),o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"bg-gray-300 rounded-full w-12 h-12 mb-4"}),o.jsxs("div",{className:"flex flex-col",children:[o.jsx("div",{className:"h-3 bg-gray-300 rounded w-24 mb-4"}),o.jsx("div",{className:"h-3 bg-gray-300 rounded w-14 mb-4"})]})]})]})),d&&d.map((b,x)=>o.jsx("div",{className:`w-full lg:max-w-xs h-52 space-y-2 p-4 bg-pmi-gray-light drop-shadow-lg rounded-lg ${x%2===0&&"-mt-14 md:-mt-6"} ${x%2===1&&"-mt-14"}`,children:o.jsxs("div",{className:"flex flex-col h-full",children:[o.jsxs("div",{children:[o.jsx("h5",{className:"font-medium text-lg",children:k(e==="en"?b.title||"":b.title_indo||"",40)}),o.jsx("p",{className:"font-light text-sm text-pmi-gray",children:k(e==="en"?b.desc||"":b.desc_indo||"",160)})]}),o.jsxs("div",{className:"flex gap-2",children:[o.jsx("div",{children:o.jsx("div",{className:"relative w-12 h-12 overflow-hidden rounded-full",children:o.jsx("img",{src:`${ze}/${b.image}`,alt:"",className:"absolute top-1/2 left-1/2 w-auto h-full transform -translate-x-1/2 -translate-y-1/2 object-cover"})})}),o.jsxs("div",{className:"flex flex-col justify-center",children:[o.jsx("div",{className:"text-sm",children:b.name}),o.jsx("div",{className:"font-light text-xs text-pmi-gray",children:b.position})]})]})]})},x))]})]})}),o.jsxs("div",{className:"bg-pmi-white py-8",children:[o.jsxs("div",{className:"w-[22rem] md:w-full max-w-7xl space-y-4 py-10 px-2 mx-auto",children:[o.jsx("h3",{className:"font-normal text-lg md:text-2xl text-pmi-red",children:t("common:trainingPrograms.whyChoose")}),o.jsx("p",{className:"font-medium text-2xl md:text-4xl text-pmi-black",children:t("common:trainingPrograms.impactTitle")}),o.jsx("div",{className:`grid grid-cols-1 md:grid-cols-${m&&m.value?m.value:3} gap-4`,children:n&&n.map((b,x)=>o.jsxs("div",{className:"w-full max-w-md flex justify-between items-center py-8 px-6 bg-pmi-gray-light rounded-lg h-full",children:[o.jsxs("div",{className:"relative space-y-4",children:[o.jsx("p",{className:"font-medium text-lg",children:e==="en"?b.title:b.title_indo}),o.jsx("span",{className:"font-light text-base text-pmi-gray",children:e==="en"?b.desc:b.desc_indo})]}),o.jsx("div",{children:o.jsx("div",{className:"relative w-16 h-16 md:w-20 md:h-20 overflow-hidden rounded-full",children:o.jsx("img",{src:`${ze}/${b.image}`,alt:"",className:"absolute top-1/2 left-1/2 w-auto h-full transform -translate-x-1/2 -translate-y-1/2 object-cover"})})})]},x))})]}),o.jsxs("div",{className:"w-[22rem] md:w-full max-w-7xl space-y-4 py-10 px-2 mx-auto",children:[o.jsx("h3",{className:"font-normal text-lg md:text-2xl text-pmi-red",children:t("common:trainingPrograms.ourClients.title")}),o.jsxs("div",{className:"flex flex-col md:flex-row justify-between",children:[o.jsx("p",{className:"font-medium text-2xl md:text-4xl text-pmi-black",children:t("common:trainingPrograms.ourClients.description")}),o.jsx("a",{href:"/training-certification/training/clients",className:"font-medium text-base text-pmi-red capitalize",children:t("common:viewAll")})]}),o.jsxs("div",{className:"w-full shadow-lg rounded-lg px-4 py-4 md:px-8 md:py-8 md:mb-6 space-y-6 bg-radial-gradient-platinum",children:[a&&o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-5 ga
180p-6",children:[1,2,3,4,5].map(b=>o.jsx(Ot,{onlyImage:!0,minHeight:"min-h-32",minWidth:"min-w-44"},b))}),!a&&r&&o.jsx(Lz,{brands:r,baseItems:5})]})]})]})]})},Qbe=()=>{const{t}=Se(["menu"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:training")}];return o.jsx(Ye,{type:"default",title:"training",breadcrumbs:e,children:o.jsx(Jbe,{})})},Zbe=()=>{const{t}=Se(["common"]),{data:e,refetch:n,isLoading:i}=$z();return Z.useEffect(()=>{n()},[]),o.jsx("div",{className:"relative py-8",children:o.jsxs("div",{className:"w-[22rem] md:w-full max-w-7xl space-y-4 py-10 px-2 mx-auto text-center md:text-left",children:[o.jsx("h3",{className:"font-normal text-lg md:text-2xl text-pmi-red",children:t("common:trainingPrograms.ourClients.title")}),o.jsx("p",{className:"font-medium text-2xl md:text-4xl text-pmi-black",children:t("common:trainingPrograms.ourClients.description")}),o.jsxs("div",{className:"w-full grid-cols-1 grid md:grid-cols-3 lg:grid-cols-5 py-8 mb-6 gap-6",children:[i&&[1,2,3,4,5].map(r=>o.jsx(Ot,{onlyImage:!0,minHeight:"min-h-32",minWidth:"min-w-44"},r)),!i&&e&&e.map((r,s)=>o.jsxs("div",{className:"relative space-y-4 mx-auto",children:[o.jsx("div",{className:"flex justify-center items-center p-4 mx-2 bg-white rounded-lg shadow-lg max-w-56",children:o.jsx("img",{src:`${ze}/${r.path}`,alt:`Brand logo ${s}`,className:"max-w-full h-28 object-contain"})},s),o.jsx("div",{className:"mt-4 text-sm text-center text-pmi-gray uppercase",children:o.jsx("p",{children:r.company_name})})]}))]})]})})},eve=()=>{const{t}=Se(["menu"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:training"),path:"/training-certification/training"},{label:t("menu:clients")}];return o.jsx(Ye,{type:"default",title:"clients",breadcrumbs:e,children:o.jsx(Zbe,{})})},tve=()=>{const{t}=Se(["common"]),{language:e}=_e(),{training_program_slug:n}=ni(),{data:i,refetch:r}=Fz(n||"");return Z.useEffect(()=>{r()},[]),i&&o.jsx("div",{className:"bg-gradient-to-t from-pmi-gray to-transparent space-y-6 rounded-b-[3rem] px-2 md:pt-6",children:o.jsxs("div",{className:"w-[21rem] md:w-full max-w-6xl mx-auto flex flex-col md:flex-row items-center justify-between gap-4",children:[o.jsxs("div",{className:"relative space-y-4 py-8 md:py-12 max-w-3xl",children:[o.jsx("h2",{className:"xl:max-w-xl text-xl md:text-2xl text-pmi-red font-normal mb-4 leading-tight",children:t("common:trainingPrograms.title")}),o.jsx("h2",{className:"xl:max-w-xl text-4xl md:text-5xl text-pmi-white font-bold mb-4 leading-tight",children:e==="en"?i.name:i.name_indo}),o.jsx("p",{className:"xl:max-w-xl text-base md:text-xl text-pmi-white font-light leading-6 mb-4",children:e==="en"?i.desc:i.desc_indo})]}),o.jsx("div",{className:"relative",children:o.jsx("img",{src:`${ze}/${i.image}`,alt:"lsp",className:"w-full"})})]})})},nve=({data:t})=>{const{t:e}=Se(["common"]),{training_program_slug:n}=ni(),{language:i}=_e(),{data:r,refetch:s}=Bbe(n||""),{data:a,refetch:l}=$be(n||""),{data:c,refetch:d}=Hbe(n||""),{data:u,refetch:h}=Obe();return Z.useEffect(()=>{s(),l(),d(),h()},[]),o.jsxs("div",{className:"relative",children:[o.jsx(tve,{}),o.jsxs("div",{className:"w-[22rem] md:w-full max-w-6xl space-y-4 py-12 px-2 mx-auto",children:[o.jsx("h3",{className:"font-normal text-xl md:text-2xl text-pmi-red",children:e("common:trainingProgramType.trainingTypes.title")}),o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 justify-center justify-items-center place-items-center gap-8 mx-auto",children:u&&u.filter(p=>p.training_program_id===t.id).map((p,y)=>o.jsx("a",{href:`/training-certification/training/detail/${n}/${p.slug}`,className:"cursor-pointer w-full",children:o.jsxs("div",{className:"w-full h-32 flex items-center gap-2 bg-pmi-gray-light rounded-lg drop-shadow-lg p-4",children:[o.jsx("div",{children:o.jsx("div",{className:"relative w-16 h-16 md:w-20 md:h-20 overflow-hidden rounded-full",children:o.jsx("img",{src:`${ze}/${p.image}`,alt:"",className:"absolute top-1/2 left-1/2 w-auto h-full transform -translate-x-1/2 -translate-y-1/2 object-cover"})})}),o.jsxs("div",{className:"relative space-y-2",children:[o.jsx("h4",{className:"font-medium text-lg md:text-xl",children:i==="en"?p.name:p.name_indo}),o.jsx("p",{className:"font-light text-pmi-gray text-sm",children:i==="en"?p.short_desc:p.short_desc_indo})]})]})},y))})]}),o.jsxs("div",{className:"w-[21rem] md:w-full max-w-6xl space-y-8 py-6 px-6 md:px-8 mx-auto rounded-lg bg-pmi-light-red-bg",children:[o.jsx("h3",{className:"font-medium text-xl md:text-2xl",children:e("common:trainingProgramType.whyTakeTraining.title")}),o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 mx-auto break-all",children:r&&r.map((p,y)=>o.jsxs("div",{className:"flex gap-4 text-lg",children:[o.jsx("img",{src:"/svg/training/check.svg",className:"w-8 h-8"}),o.jsx("p",{className:"font-light text-pmi-gray leading-4",children:i==="en"?p.title:p.title_indo})]},y))})]}),o.jsxs("div",{className:"w-[21rem] md:w-full max-w-6xl flex flex-col md:flex-row gap-6 py-12 mx-auto",children:[o.jsxs("div",{className:"w-full space-y-6 bg-pmi-gray-light rounded-2xl py-6 px-6 md:px-8",children:[o.jsx("h3",{className:"font-medium text-xl md:text-2xl",children:e("common:trainingProgramType.trainingOutcomes.title")}),o.jsx("div",{className:"relative space-y-6 break-all",children:a&&a.map((p,y)=>o.jsxs("div",{className:"flex gap-4 ",children:[o.jsx("img",{src:"/svg/training/check.svg",className:"w-8 h-8"}),o.jsxs("div",{className:"relative space-y-2 text-pmi-gray",children:[o.jsx("h4",{className:"font-medium text-lg",children:i==="en"?p.title:p.title_indo}),o.jsx("p",{className:"font-light text-base leading-4",children:i==="en"?p.desc:p.desc_indo})]})]},y))})]}),o.jsxs("div",{className:"w-full max-w-lg space-y-6 bg-pmi-red-dark bg-gradient-to-r from-pmi-red-dark to-pmi-red-light text-pmi-white rounded-2xl py-6 px-6 md:px-8",children:[o.jsx("h3",{className:"font-medium text-xl md:text-2xl",children:e("common:trainingProgramType.classHoursNotes.title")}),o.jsx("ul",{className:"relative space-y-6 break-all",children:c&&c.map((p,y)=>o.jsxs("li",{className:"space-y-2",children:[o.jsx("h4",{className:"font-medium text-lg",children:i==="en"?p.title:p.title_indo}),o.jsx("p",{className:"font-light text-base md:text-lg leading-4",children:i==="en"?p.desc:p.desc_indo})]},y))})]})]}),o.jsx("div",{className:"bg-pmi-light-red-bg md:py-14",children:o.jsxs("div",{className:"w-[22rem] md:w-full max-w-6xl space-y-4 py-8 px-2 mx-auto",children:[o.jsx("h3",{className:"font-normal text-lg md:text-2xl text-pmi-red",children:e("common:trainingPrograms.checkSchedule")}),o.jsx("p",{className:"font-medium text-2xl md:text-4xl text-pmi-black",children:e("common:trainingPrograms.ongoingTrainings")}),o.jsx(zM,{})]})})]})},ive=()=>{const{t}=Se(["menu"]),{training_program_slug:e}=ni(),{data:n,isLoading:i}=Fz(e||""),r=()=>[{label:t("menu:home"),path:"/"},{label:t("menu:training"),path:"/training-certification/training"},{label:t(`menu:${e}`)}];return o.jsx(Ye,{type:"default",title:e,breadcrumbs:r(),children:i?null:n?o.jsx(nve,{data:n}):o.jsx(xi,{})})},rve=()=>{const{language:t}=_e(),{data:e,refetch:n}=zz();return Z.useEffect(()=>{n()},[]),e&&o.jsx("div",{className:"bg-pmi-red-dark bg-gradient-to-r from-pmi-red-dark to-pmi-red-light space-y-6 px-6 py-8",children:o.jsxs("div",{className:"w-full flex flex-col lg:flex-row lg:items-center lg:justify-between max-w-7xl xl:mx-auto",children:[o.jsxs("div",{className:"relative space-y-4 py-8 text-pmi-white",children:[o.jsx("h2",{className:"text-xl md:text-3xl font-medium leading-tight",children:t==="en"?e[0].subtitle:e[0].subtitle_indo}),o.jsx("h3",{className:"text-3xl md:text-5xl font-bold leading-tight",children:t==="en"?e[0].title:e[0].title_indo})]}),o.jsx("div",{className:"flex flex-col md:flex-row justify-start gap-6",children:o.jsx("p",{className:"xl:max-w-2xl text-base text-pmi-white font-light",children:t==="en"?e[0].desc:e[0].desc_indo})})]})})},sve=()=>{const{language:t}=_e(),{data:e,refetch:n,isLoading:i}=Hz(1);return Z.useEffect(()=>{n()},[]),o.jsxs("div",{className:"relative py-8",children:[o.jsx(rve,{}),o.jsxs("div",{className:"space-y-4 mx-auto max-w-7xl py-12",children:[i&&[1,2,3].map(()=>o.jsxs("div",{className:"w-[22rem] md:w-full max-w-4xl lg:h-48 space-y-2 p-6 mx-auto bg-pmi-gray-light drop-shadow-lg animate-pulse rounded-lg shadow-lg min-w-72",children:[o.jsx("div",{className:"h-4 bg-gray-300 rounded w-1/3 mb-2"}),o.jsx("div",{className:"h-3 bg-gray-300 rounded w-full mb-44"}),o.jsx("div",{className:"h-3 bg-gray-300 rounded w-full mb-44"}),o.jsx("div",{className:"h-5"}),o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"bg-gray-300 rounded-full w-12 h-12 mb-4"}),o.jsxs("div",{className:"flex flex-col",children:[o.jsx("div",{className:"h-3 bg-gray-300 rounded w-24 mb-4"}),o.jsx("div",{className:"h-3 bg-gray-300 rounded w-14 mb-4"})]})]})]})),e&&e.map((r,s)=>o.jsxs("div",{className:"w-[22rem] md:w-full max-w-4xl lg:min-h-56 space-y-2 p-4 md:p-6 mx-auto bg-pmi-gray-light drop-shadow-lg rounded-lg flex flex-col justify-between",children:[o.jsxs("div",{children:[o.jsx("h5",{className:"font-medium text-lg md:text-xl",children:t==="en"?r.title:r.title_indo}),o.jsx("p",{className:"font-light text-base",children:o.jsx("q",{children:t==="en"?r.desc:r.desc_indo})})]}),o.jsxs("div",{className:"flex gap-2",children:[o.jsx("img",{src:`${ze}/${r.image}`,alt:"blood",className:"w-12 h-12"}),o.jsxs("div",{className:"relative space-y-2",children:[o.jsx("p",{className:"text-sm",children:r.name}),o.jsx("span",{className:"font-light text-xs text-pmi-gray",children:r.position})]})]})]},s))]})]})},ave=()=>{const{t}=Se(["menu"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:training"),path:"/training-certification/training"},{label:t("menu:clients")}];return o.jsx(Ye,{type:"default",title:"clients",breadcrumbs:e,children:o.jsx(sve,{})})},ove=()=>{const{language:t}=_e(),{data:e,refetch:n}=lp("TrainingProgramDetail");return Z.useEffect(()=>{n()},[]),e&&o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-8 px-4 md:px-20",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center max-w-2xl",children:t==="en"?e[0].title:e[0].title_indo}),o.jsxs("div",{className:"w-full max-w-4xl mx-auto py-8 lg:px-8 space-y-12",children:[o.jsx("img",{src:`${ze}/${e[0].image}`,alt:"background",className:"w-full object-cover max-h-96"}),o.jsx("div",{className:"space-y-4 mx-auto",children:o.jsx("div",{className:"w-fullspace-y-4 text-pmi-black text-base font-light leading-8 text-ju
180stify",children:o.jsx(Et,{customClassName:"space-y-4",content:t==="en"?e[0].desc:e[0].desc_indo})})})]})]})},lve=()=>{const{t}=Se(["menu"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:training"),path:"/training-certification/training"},{label:t("menu:trainingPrograms")}];return o.jsx(Ye,{type:"default",title:"training",breadcrumbs:e,children:o.jsx(ove,{})})},cve=({data:t})=>{const{language:e}=_e();return t&&o.jsxs("div",{className:"bg-pmi-white",children:[o.jsx("div",{className:"bg-pmi-red-dark bg-gradient-to-r from-pmi-red-dark to-pmi-red-light rounded-b-[2rem] py-8 lg:py-12 xl:py-20 md:px-8",children:o.jsxs("div",{className:"w-[22rem] md:w-full max-w-6xl mx-auto flex flex-col md:flex-row items-center md:items-end justify-between gap-4",children:[o.jsx("div",{className:"max-w-3xl md:-mb-12",children:o.jsx("h2",{className:"text-2xl md:text-5xl text-white font-medium mb-4 leading-tight",children:e==="en"?t.name:t.name_indo})}),o.jsx("div",{className:"relative -mb-28 md:-mb-28 lg:-mb-32 xl:-mb-48 xl:mr-20",children:o.jsx("div",{children:o.jsx("div",{className:"relative w-72 h-72 overflow-hidden rounded-full",children:o.jsx("img",{src:`${ze}/${t.image}`,alt:"",className:"absolute top-1/2 left-1/2 w-auto h-full transform -translate-x-1/2 -translate-y-1/2 object-cover"})})})})]})}),o.jsx("div",{className:"w-[22rem] md:w-full max-w-6xl space-y-4 mx-auto mt-28 lg:mt-12",children:o.jsx("div",{className:"font-light text-lg max-w-3xl px-2",children:o.jsx(Et,{content:e==="en"?t.desc:t.desc_indo})})})]})},dve=({category:t})=>{const{language:e}=_e(),{t:n}=Se(["common"]),[i,r]=Z.useState(1),[s,a]=Z.useState(1),{data:l,refetch:c,isLoading:d}=Dbe(i,t);Z.useEffect(()=>{c()},[]),Z.useEffect(()=>{d==!1&&a((i-1)*10)},[i,d]);const u=h=>{r(h)};return o.jsxs("div",{className:"overflow-x-auto py-4",children:[o.jsxs("table",{className:"min-w-full table-auto bg-white border border-gray-200 text-pmi-gray",children:[o.jsx("thead",{className:"bg-pmi-red text-pmi-white",children:o.jsxs("tr",{children:[o.jsx("th",{className:"px-4 py-2",children:n("trainingTypeDetail.tables.no")}),o.jsx("th",{className:"px-4",children:n("trainingTypeDetail.tables.trainingName")}),o.jsx("th",{className:"px-4 capitalize w-56",children:n("trainingTypeDetail.tables.effectiveLearningHours")}),o.jsx("th",{className:"px-4",children:n("trainingTypeDetail.tables.description")})]})}),o.jsx("tbody",{children:l&&l.data.map((h,p)=>o.jsxs("tr",{className:"hover:bg-gray-50",children:[o.jsx("td",{className:"border border-gray-300 px-4 py-2 text-center",children:s+p+1}),o.jsx("td",{className:"border border-gray-300 px-4 py-2",children:e==="en"?h.name:h.name_indo}),o.jsx("td",{className:"border border-gray-300 px-4 py-2 text-center",children:h.learning_time}),o.jsx("td",{className:"border border-gray-300 px-4 py-2",children:e==="en"?h.desc:h.desc_indo})]},p))})]}),o.jsxs("p",{className:"font-medium text-base text-pmi-gray py-4",children:[o.jsx("span",{className:"italic text-pmi-red",children:"*"}),"Â ",n("common:trainingTypeDetail.effectiveLearningHour")]}),o.jsx("div",{className:"col-span-full border-b border-pmi-gray-lighter",children:o.jsx("p",{className:"w-full text-pmi-gray text-sm font-light mt-8",children:n("common:pagination",{start:(l==null?void 0:l.from)||0,end:(l==null?void 0:l.to)||0,total:(l==null?void 0:l.total)||0})})}),o.jsx("div",{className:"col-span-full justify-center",children:l&&l.links&&o.jsx(Hi,{links:l.links,onPageChange:u,currentPage:i})})]})},uve=({data:t})=>{const{t:e}=Se(["common"]),{training_category_slug:n}=ni(),{data:i}=Bz(n||"");return o.jsxs("div",{className:"relative",children:[o.jsx(cve,{data:t}),o.jsx("div",{className:"bg-pmi-white md:py-6",children:i&&o.jsx("div",{className:"w-[22rem] md:w-full max-w-6xl space-y-6 py-8 mx-auto",children:o.jsx(dve,{category:i.id.toString()})})}),o.jsx("div",{className:"bg-pmi-light-red-bg md:py-14",children:o.jsxs("div",{className:"w-[22rem] md:w-full max-w-6xl space-y-4 py-8 px-2 mx-auto",children:[o.jsx("h3",{className:"font-normal text-lg md:text-2xl text-pmi-red",children:e("common:trainingPrograms.checkSchedule")}),o.jsx("p",{className:"font-medium text-2xl md:text-4xl text-pmi-black",children:e("common:trainingPrograms.ongoingTrainings")}),o.jsx(zM,{})]})})]})},hve=()=>{const{t}
180=Se(["menu"]),{training_program_slug:e,training_category_slug:n}=ni(),{data:i,isLoading:r}=Bz(n||""),s=()=>[{label:t("menu:home"),path:"/"},{label:t("menu:training"),path:"/training-certification/training"},{label:t(`menu:${e}`),path:`/training-certification/training/type/${e}`},{label:t(`menu:${n}`)}];return o.jsx(Ye,{type:"default",title:n,breadcrumbs:s(),children:r?null:i?o.jsx(uve,{data:i}):o.jsx(xi,{})})},pve=()=>{const{language:t}=_e(),{data:e,refetch:n}=jv("training__knowledge-and-innovation-center");return Z.useEffect(()=>{n()},[]),e&&o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-8 px-4 md:px-20",children:[o.jsx("h3",{className:"font-bold text-2xl md:text-4xl text-pmi-red text-center max-w-2xl",children:t==="en"?e[0].title:e[0].title_indo}),o.jsxs("div",{className:"w-[22rem] md:w-full max-w-4xl mx-auto py-8 lg:px-8 space-y-12",children:[o.jsx("img",{src:`${ze}/${e[0].image}`,alt:"background",className:"w-full object-cover max-h-96"}),o.jsx("div",{className:"space-y-4 mx-auto",children:o.jsx("div",{className:"w-full space-y-4 text-pmi-black text-base font-light leading-8 text-justify",children:o.jsx(Et,{customClassName:"space-y-4",content:t==="en"?e[0].desc:e[0].desc_indo})})}),o.jsx("div",{className:"space-y-4 mx-auto",children:o.jsx("a",{href:e[0].url,target:"_blank",className:"block w-full bg-pmi-red text-pmi-white py-2 text-center font-medium",children:t==="en"?e[0].title:e[0].title_indo})})]})]})},mve=()=>{const{t}=Se(["menu"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:training"),path:"/training-certification/training"},{label:t("menu:pmiKnowledgeAndInnovationCenter")}];return o.jsx(Ye,{type:"default",title:"pmiKnowledgeAndInnovationCenter",breadcrumbs:e,children:o.jsx(pve,{})})},fve=()=>{const{language:t}=_e(),{data:e,refetch:n}=jv("training__humanist");return Z.useEffect(()=>{n()},[]),e&&o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-8 px-4 md:px-20",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center max-w-2xl",children:t==="en"?e[0].title:e[0].title_indo}),o.jsxs("div",{className:"w-[22rem] md:w-full max-w-4xl mx-auto py-8 lg:px-8 space-y-12",children:[o.jsx("img",{src:`${ze}/${e[0].image}`,alt:"background",className:"w-full object-cover max-h-96"}),o.jsx("div",{className:"space-y-4 mx-auto",children:o.jsx("div",{className:"w-full space-y-4 text-pmi-black text-base font-light leading-8 text-justify",children:o.jsx(Et,{customClassName:"space-y-4",content:t==="en"?e[0].desc:e[0].desc_indo})})}),o.jsx("div",{className:"space-y-4 mx-auto",children:o.jsx("a",{href:e[0].url,className:"block w-full bg-pmi-red text-pmi-white py-2 text-center font-medium",children:t==="en"?e[0].title:e[0].title_indo})})]})]})},gve=()=>{const{t}=Se(["menu"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:training"),path:"/training-certification/training"},{label:t("menu:humanis")}];return o.jsx(Ye,{type:"default",title:"humanis",breadcrumbs:e,children:o.jsx(fve,{})})},xve=()=>{const{language:t}=_e(),{data:e,refetch:n}=jv("training__duties-and-functions");return Z.useEffect(()=>{n()},[]),e&&o.jsx("div",{className:"space-y-8",children:o.jsxs("div",{className:"bg-pmi-white",children:[o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-8 px-4 md:px-20",children:[o.jsx("h3",{className:"font-bold text-2xl md:text-4xl text-pmi-red text-center max-w-2xl",children:t==="en"?e[0].title:e[0].title_indo}),o.jsxs("div",{className:"w-[22rem] md:w-full max-w-4xl mx-auto py-8 lg:px-8 space-y-12",children:[o.jsx("img",{src:`${ze}/${e[0].image}`,alt:"background",className:"w-full object-cover max-h-96"}),o.jsx("div",{className:"space-y-4 mx-auto",children:o.jsx("div",{className:"w-full space-y-4 text-pmi-black text-base font-light leading-8 text-justify",children:o.jsx(Et,{customClassName:"space-y-4",content:t==="en"?e[0].desc:e[0].desc_indo})})})]})]}),o.jsx("div",{className:"bg-pmi-red-dark bg-gradient-to-r from-pmi-red-dark to-pmi-red-light",children:o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-8 px-4 md:px-20",children:[o.jsx("h3",{className:"font-bold text-2xl md:text-4xl text-pmi-white text-center max-w-2xl",children:t==="en"?e[1].title:e[1].title_indo}),o.jsxs("div",{className:"w-[22rem] md:w-full max-w-4xl mx-auto py-8 lg:px-8 space-y-12",children:[o.jsx("img",{src:`${ze}/${e[1].image}`,alt:"background",className:"w-full object-cover max-h-96"}),o.jsx("div",{className:"space-y-4 mx-auto",children:o.jsx("div",{className:"w-full space-y-4 text-pmi-white text-base font-light leading-8 text-ju
180stify",children:o.jsx(Et,{customClassName:"space-y-4",content:t==="en"?e[1].desc:e[1].desc_indo})})})]})]})})]})})},yve=()=>{const{t}=Se(["menu"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:training"),path:"/training-certification/training"},{label:t("menu:dutiesAndFunctions")}];return o.jsx(Ye,{type:"default",title:"dutiesAndFunctions",breadcrumbs:e,children:o.jsx(xve,{})})},bve=({data:t})=>{const{t:e}=Se(["common"]),{language:n}=_e();return o.jsxs("div",{className:"w-full bg-white rounded-sm shadow-md overflow-hidden lg:flex",children:[o.jsx("div",{className:"w-full xl:w-1/2",children:o.jsx(or,{className:"w-full h-full max-h-64 lg:max-h-[28rem] object-cover",src:`${ze}/${t.image}`,alt:t.name})}),o.jsxs("div",{className:"w-full xl:w-1/2 px-4 lg:px-8 py-8 space-y-4",children:[o.jsx("h2",{className:"uppercase tracking-wide text-lg md:text-xl font-medium",children:t.name}),o.jsxs("div",{className:"grid grid-cols-[auto_max-content_auto] lg:grid-cols-[100px_10px_auto] gap-x-1 md:gap-x-4 gap-y-4 text-pmi-gray",children:[o.jsx("span",{children:e("common:universitiesAndLPK.establishedYear")}),o.jsx("span",{children:":"}),o.jsx("span",{children:t.year_established}),o.jsx("span",{children:e("common:universitiesAndLPK.address")}),o.jsx("span",{children:":"}),o.jsx("span",{children:t.address}),o.jsx("span",{children:e("common:universitiesAndLPK.phone")}),o.jsx("span",{children:":"}),o.jsx("span",{children:t.phone}),o.jsx("span",{children:e("common:universitiesAndLPK.fieldsOfStudy")}),o.jsx("span",{children:":"}),o.jsx("div",{children:t.study_program})]}),t.link&&t.link.length>0?o.jsx("a",{href:t.link,target:"_blank",rel:"noreferrer noopener",className:"w-full bg-pmi-red text-white py-1 font-bold text-center rounded-md inline-block",children:e("common:universitiesAndLPK:visitWebsite")}):""]})]})},vve=()=>{const{t}=Se(["common"]),[e,n]=Z.useState(1),{language:i}=_e(),{searchTerm:r}=kr(),{data:s,refetch:a}=Vbe(e),{data:l,refetch:c}=lp("training__universities-and-lpk"),d=s,u=h=>{n(h)};return Z.useEffect(()=>{c(),a()},[r,i,e]),o.jsxs("div",{className:"relative space-y-12 pb-8 px-4 xl:px-0",children:[o.jsx("div",{className:"w-[22rem] md:w-full max-w-5xl mx-auto space-y-8 py-12",children:l&&o.jsxs(o.Fragment,{children:[o.jsx("h2",{className:"font-bold text-center text-2xl md:text-4xl text-pmi-red",children:i==="en"?l[0].title:l[0].title_indo}),o.jsx(Et,{customClassName:"font-light md:text-center text-xl text-pmi-gray",content:i==="en"?l[0].desc:l[0].desc_indo})]})}),o.jsxs("div",{className:"w-[22rem] md:w-full max-w-6xl relative space-y-8 mx-auto",children:[d&&d.data.length===0&&o.jsx("p",{className:"text-center text-lg text-pmi-gray",children:t("common:noData")}),d&&d.data.map((h,p)=>o.jsx(bve,{data:h},p))]}),o.jsx("div",{className:"w-[22rem] md:w-full max-w-6xl mx-auto border-b border-pmi-gray-lighter",children:o.jsx("p",{className:"w-full text-pmi-gray text-sm font-light mt-8",children:t("common:pagination",{start:(d==null?void 0:d.from)||0,end:(d==null?void 0:d.to)||0,total:(d==null?void 0:d.total)||0})})}),o.jsx("div",{className:"flex justify-center",children:d&&d.links&&o.jsx(Hi,{links:d.links,onPageChange:u,currentPage:e})})]})},wve=()=>{const{t}=Se(["menu"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:training"),path:"/training-certification/training"},{label:t("menu:universitiesAndLpk")}];return o.jsx(Ye,{type:"default",title:"universitiesAndLpk",breadcrumbs:e,children:o.jsx(vve,{})})},AE=({title:t,address:e,phone:n,email:i,website:r,image:s="/png/training/headquarters.png"})=>o.jsxs("div",{className:"w-full flex flex-col md:flex-row items-center gap-2",children:[o.jsx("div",{className:"w-full md:max-w-40 h-48 md:h-full rounded-lg",children:o.jsx("img",{src:s,className:"w-full"})}),o.jsxs("div",{className:"w-full bg-pmi-gray-light shadow-md drop-shadow-lg rounded-lg px-6 py-4 space-y-2 text-pmi-gray",children:[o.jsx("h3",{className:"text-pmi-black text-lg font-medium mb-2 capitalize",children:t}),o.jsxs("div",{className:"flex gap-2",children:[o.jsx("img",{src:"/svg/contact-us/location.svg",alt:"location",className:"w-4 h4"}),o.jsx("p",{className:"text-xs",children:e})]}),o.jsxs("div",{className:"flex gap-2",children:[o.jsx("img",{src:"/svg/contact-us/phone.svg",alt:"phone",className:"w-4 h4"}),o.jsx("p",{className:"text-xs",children:n})]}),o.jsxs("div",{className:"flex gap-2",children:[o.jsx("img",{src:"/svg/contact-us/mail.svg",alt:"phone",className:"w-4 h4"}),o.jsx("a",{href:`mailto:${i}`,target:"_blank",className:"text-xs text-pmi-red",children:i})]}),o.jsxs("div",{className:"flex gap-2",children:[o.jsx("img",{src:"/svg/contact-us/world.svg",alt:"phone",className:"w-4 h4"}),o.jsx("a",{href:`http://${r}`,target:"_blank",className:"text-xs text-pmi-red",children:r})]})]})]}),kve=({isOpen:t,onClose:e,data:n})=>{const{t:i}=Se("t"),{language:r}=_e();return o.jsxs(cs,{open:t,onClose:e,className:"fixed inset-0 inset-y-40 z-[100050] flex items-center justify-center px-2 mt-40 lg:mt-56 xl:mt-[8rem]",children:[o.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50"}),o.jsx(nc,{className:"w-full max-w-4xl min-h-96 overflow-hidden text-left align-middle rounded-2xl shadow-xl relative",style:{backgroundImage:"linear-gradient(135deg, #951000, #C8484C)",backgroundSize:"cover",backgroundPosition:"center"},children:n&&o.jsxs("div",{className:"h-full p-6",children:[o.jsxs(pv,{className:"flex justify-between items-start z-50",children:[o.jsx("span",{children:"Â "}),o.jsx("div",{className:"relative space-y-4",children:o.jsx("h3",{className:"text-2xl font-medium leading-6 text-pmi-white text-center",children:n.branch_name})}),o.jsx("button",{className:"text-pmi-white hover:text-gray-lighter -mt-4 text-2xl z-50",onClick:e,children:o.jsx(cp,{color:"#ffffff",addClassName:"w-8 h-8"})})]}
180),o.jsxs("div",{className:"w-full max-w-3xl mx-auto space-y-6 mt-4 z-50 overflow-y-auto scroll-container h-[67vh]",children:[o.jsx("div",{className:"w-full max-w-lg mx-auto",children:n&&o.jsx(AE,{title:n.branch_name,address:n.address,phone:n.phone_number,email:n.email,website:n.web_url,image:`${ze}/${n.image}`})}),o.jsxs("div",{className:"w-full space-y-4",children:[o.jsx("h4",{className:"font-medium text-pmi-white text-xl",children:i("common:trainingCenters.facilities.title")}),o.jsx("p",{className:"font-normal text-pmi-white text-base text-justify",children:r==="en"?n.desc:n.desc_indo})]}),o.jsx("div",{className:"w-full flex flex-col md:flex-row items-center md:items-start justify-center gap-4",children:n.facilities.map((s,a)=>o.jsxs("div",{className:"w-full max-w-40 space-y-2 ",children:[o.jsx("div",{className:"bg-pmi-white rounded-lg drop-shadow-md p-2",children:o.jsx("img",{src:`${ze}/${s.media.path}`,alt:s.name,className:"w-full h-36"})}),o.jsx("p",{className:"text-pmi-white text-center",children:r==="en"?s.name:s.name_indo})]},a))})]})]})})]})},Sve=()=>{const{t}=Se(["common"]),{language:e}=_e(),[n,i]=Z.useState(null),[r,s]=Z.useState(!1),{data:a,refetch:l}=jv("training__training-center-locations"),{data:c,refetch:d}=QN();Z.useEffect(()=>{d(),l()},[]);const u=p=>{i(p),s(!0)},h=()=>s(!1);return o.jsxs("div",{className:"relative space-y-8 py-2 mb-8 px-2",children:[a&&o.jsx(o.Fragment,{children:o.jsxs("div",{className:"w-[22rem] md:w-full max-w-5xl mx-auto space-y-8 py-8 md:py-12",children:[o.jsx("h2",{className:"font-bold text-center text-2xl md:text-4xl text-pmi-red",children:e==="en"?a[0].title:a[0].title_indo}),o.jsx("p",{className:"font-light text-center text-lg text-pmi-gray",children:e==="en"?a[0].subtitle:a[0].subtitle_indo})]})}),o.jsxs("div",{className:"w-[22rem] md:w-full max-w-5xl space-y-4 mx-auto",children:[o.jsx("h3",{className:"text-xl md:text-2xl text-pmi-red",children:t("common:trainingCenters.centers.badanDiklatPMI")}),o.jsx("div",{className:"justify-center w-full grid grid-cols-1 md:grid-cols-2 gap-6",children:c&&c.map((p,y)=>p.category_id==3&&o.jsx("div",{className:"cursor-pointer",onClick:()=>u(p),children:o.jsx(AE,{title:p.branch_name,address:p.address,phone:p.phone_number,email:p.email,website:p.web_url,image:`${ze}/${p.image}`})},y))})]}),o.jsxs("div",{className:"w-[22rem] md:w-full max-w-5xl space-y-4 mx-auto",children:[o.jsx("h3",{className:"text-xl md:text-2xl text-pmi-red",children:t("common:trainingCenters.centers.pusdiklatPMI")}),o.jsx("div",{className:"justify-center w-full grid grid-cols-1 md:grid-cols-2 gap-6",children:c&&c.map((p,y)=>p.category_id==2&&o.jsx("div",{className:"cursor-pointer",onClick:()=>u(p),children:o.jsx(AE,{title:p.branch_name,address:p.address,phone:p.phone_number,email:p.email,website:p.web_url,image:`${ze}/${p.image}`},y)},y))})]}),o.jsx(kve,{isOpen:r,onClose:h,data:n})]})},Cve=()=>{const{t}=Se(["menu"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:training"),path:"/training-certification/training"},{label:t("menu:trainingCenterLocations")}];return o.jsx(Ye,{type:"default",title:"trainingCenterLocations",breadcrumbs:e,children:o.jsx(Sve,{})})},jve=({training:t})=>{const{t:e}=Se(["common"]),{language:n}=_e();return o.jsx("div",{className:"overflow-x-auto py-4",children:o.jsxs("table",{className:"min-w-full table-auto bg-white border border-gray-200 text-pmi-gray",children:[o.jsx("thead",{className:"bg-pmi-red text-pmi-white",children:o.jsxs("tr",{children:[o.jsx("th",{className:"px-4 py-2",children:e("trainingPrograms.tables.trainingName")}),o.jsx("th",{className:"px-4 py-2",children:e("trainingPrograms.tables.category")}),o.jsx("th",{className:"px-4 py-2",children:e("trainingPrograms.tables.schedule")}),o.jsx("th",{className:"px-4 py-2",children:e("trainingPrograms.tables.location")})]})}),o.jsx("tbody",{className:"bg-pmi-white",children:o.jsxs("tr",{className:"hover:bg-gray-50",children:[o.jsx("td",{className:"border border-gray-300 px-4 py-2",children:n==="en"?t.training.name:t.training.name_indo}),o.jsx("td",{className:"border border-gray-300 px-4 py-2",children:n==="en"?t.training.training_c
180ategory.name:t.training.training_category.name_indo}),o.jsx("td",{className:"border border-gray-300 px-4 py-2",children:IB(t.start_date,t.end_date,n)}),o.jsx("td",{className:"border border-gray-300 px-4 py-2",children:t.training_center.branch_name})]},t.id)})]})})},Tve=()=>{const{t}=Se(),{id:e}=ni(),{language:n}=_e(),{register:i,handleSubmit:r,watch:s,setValue:a,formState:{errors:l}}=Ks({}),[c,d]=Z.useState(null),[u,h]=Z.useState(0),[p,y]=Z.useState([]),[m,w]=Z.useState([]),[k,b]=Z.useState(!1),{data:x,refetch:v}=Fbe(Number(e)),{data:E,refetch:N}=QN(2),{data:S,refetch:_}=_be(u),$=ec(),V=s("category_id"),I=s("branch_id"),A=Ibe();Z.useEffect(()=>{v(),N()},[e]),Z.useEffect(()=>{x&&a("training_id",x.training.id)},[x]),Z.useEffect(()=>{_()},[u]),Z.useEffect(()=>{if(E){const C=E.map(D=>({value:D.branch_id,label:D.branch_name}));y(C),a("branch_id",E[0].branch_id)}},[e,E]),Z.useEffect(()=>{if(S){const C=S.map(D=>({value:D.id,label:D.name}));w(C),a("category_id",S[0].id)}},[e,S]),Z.useEffect(()=>{A.isSuccess&&$("/training-certification/training/registration-confirmation")},[A.isSuccess]);const L=()=>b(!0),T=()=>b(!1),g=C=>{a("branch_id",C)},f=C=>{a("category_id",C)},j=C=>{h(C)},P=C=>{C&&(C.user_session=C.name,C.training_schedule_id=Number(e),A.mutate(C,{onError:D=>{D instanceof Error&&D.response&&d(D.response.data.message)}}))};return o.jsxs(o.Fragment,{children:[o.jsx($h,{isOpen:k,closeModal:T,title:t("common:privacyPolicy.title"),children:o.jsx(ng,{})},k?"privacy-policy-open":"privacy-policy-closed"),o.jsxs("form",{onSubmit:r(P),className:"p-4 space-y-4",children:[o.jsx("label",{className:"text-base block mb-2",children:t("trainingRegistrationForm.fields.training")}),x&&o.jsx(er,{options:[{value:x.id,label:n==="en"?x.training.name:x.training.name_indo}],value:x.id,onChange:g,placeholder:"",disabled:!0}),o.jsx("div",{className:"border px-4",children:x&&o.jsx(jve,{training:x})}),o.jsx("label",{className:"text-base block mb-2",children:t("trainingRegistrationForm.fields.name")}),o.jsx("input",{type:"text",placeholder:t("trainingRegistrationForm.fields.namePlaceholder"),className:"w-full p-4 border border-gray-300 rounded-md outline-none",...i("name",{required:t("validation.required")})}),l.name&&o.jsx("span",{className:"text-red-500",children:l.name.message}),o.jsx("label",{className:"text-base block mb-2",children:t("trainingRegistrationForm.fields.email")}),o.jsx("input",{type:"email",placeholder:t("trainingRegistrationForm.fields.emailPlaceholder"),className:"w-full p-4 border border-gray-300 rounded-md outline-none",...i("email",{required:t("validation.required")})}),l.email&&o.jsx("span",{className:"text-red-500",children:l.email.message}),o.jsx("label",{className:"text-base block mb-2",children:t("trainingRegistrationForm.fields.phone")}),o.jsx("input",{type:"tel",placeholder:t("trainingRegistrationForm.fields.phonePlaceholder"),className:"w-full p-4 border border-gray-300 rounded-md outline-none",...i("phone",{required:t("validation.required")})}),l.phone&&o.jsx("span",{className:"text-red-500",children:l.phone.message}),o.jsx("label",{className:"block mb-2",children:t("trainingRegistrationForm.fields.chooseCategory")}),o.jsx("div",{className:"flex gap-2",children:[t("trainingRegistrationForm.fields.internal"),t("trainingRegistrationForm.fields.external")].map((C,D)=>o.jsx("span",{className:on({"border rounded-full py-1 px-6":!0,"text-sm text-pmi-gray capitalize":!0,"text-pmi-red bg-pmi-light-red border-pmi-red":u===D}),onClick:()=>j(D),children:C},D))}),u===0&&o.jsxs(o.Fragment,{children:[o.jsx("label",{className:"text-base block mb-2",children:t("trainingRegistrationForm.fields.origin")}),o.jsx(er,{options:p,value:I,onChange:g,placeholder:t("trainingRegistrationForm.fields.chooseOrigin")}),l.branch_id&&o.jsx("span",{className:"text-red-500",children:t("validation.required")}),o.jsx(er,{options:m,value:V,onChange:f}),l.category_id&&o.jsx("span",{className:"text-red-500",children:t("validation.required")})]}),u===1&&o.jsxs(o.Fragment,{children:[o.jsx("label",{className:"text-base block mb-2",children:t("trainingRegistrationForm.fields.origin")}),o.jsx(er,{options:m,value:V,onChange:f}),l.category_id&&o.jsx("span",{className:"text-red-500",children:t("validation.required")}),o.jsx("textarea",{placeholder:t("trainingRegistrationForm.fields.remarkPlaceholder"),className:"w-full p-4 border border-gray-300 rounded-md outline-none",...i("notes")}),l.notes&&o.jsx("span",{className:"text-red-500",children:t("validation.required")})]}),o.jsxs("div",{className:"flex items-center mb-4",children:[o.jsx("input",{type:"checkbox",...i("acceptTerms",{required:!0}),className:"mr-2"}),o.jsx("button",{type:"button",onClick:L,className:"text-sm text-gray-600",children:o.jsx(Li,{text:t("trainingRegistrationForm.fields.privacyPolicy"),highlights:["Privacy Policy","Kebijakan Privasi"]})})]}),l.acceptTerms&&o.jsx("span",{className:"text-red-500",children:t("validation.requiredChecked")}),c&&o.jsx("div",{className:"py-2 text-center",children:o.jsx("span",{className:"text-red-500",children:c})}),o.jsx("button",{type:"submit",className:"w-full bg-pmi-red text-white p-2 rounded-md",children:t("trainingRegistrationForm.fields.register")})]})]})},Pve=()=>{const{t}=Se(["common"]);return o.jsxs("div",{className:"w-full space-y-4 py-12",children:[o.jsxs("div",{className:"w-full max-w-4xl px-4 space-y-6 mx-auto text-center",children:[o.jsx("h2",{className:"font-bold text-2xl md:text-4xl text-pmi-red",children:t("common:trainingRegistrationForm.title")}),o.jsx("p",{className:"font-normal text-lg text-pmi-gray w-full",children:t("common:trainingRegistrationForm.description")})]}),o.jsx("div",{className:"max-w-4xl space-y-6 py-4 mx-auto",children:o.jsx(Tve,{})})]})},Eve=()=>{const{t}=Se(["menu"]),e=[{label:t("menu:home"),path:"/"},{label:t("menu:training"),path:"/training-certification/training"},{label:t("menu:trainingRegistrationForm")}];return o.jsx(Ye,{type:"default",title:"trainingRegistrationForm",breadcrumbs:e,children:o.jsx(Pve,{})})},Ave=()=>{const{t}=Se(["common"]),{data:e}=Xf();return console.log(e),o.jsxs("div",{className:"md:flex md:flex-col flex-wrap gap-4 items-center justify-center py-12 px-2",children:[o.jsx("p",{className:"font-medium text-lg text-pmi-gray text-center py-4",children:t("common:registerSuccess.followUs")}),o.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-center gap-x-16",children:[!e&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"flex flex-col justify-center items-center gap-4",children:o.jsxs("a",{href:"https://www.facebook.com/Palang+Merah+Indonesia",target:"_blank",rel:"noopener noreferrer","aria-label":"Facebook",className:"group rounded-full bg-pmi-gray-light hover:bg-pmi-red p-4",children:[o.jsx("img",{src:ep,alt:"Facebook",className:"w-16 h-16] transition-transform transform group-hover:hidden"}),o.jsx("img",{src:tp,alt:"Facebook",className:"w-16 h-16 transition-transform transform hidden group-hover:block"})]})}),o.jsx("div",{className:"flex flex-col justify-center items-center gap-4",children:o.jsxs("a",{href:"https://twitter.com/palangmerah",target:"_blank",rel:"noopener noreferrer","aria-label":"X (formerly Twitter)",className:"group rounded-full bg-pmi-gray-light hover:bg-pmi-red p-4",children:[o.jsx("img",{src:np,alt:"Twitter",className:"w-16 h-16 transition-transform transform group-hover:hidden"}),o.jsx("img",{src:ip,alt:"Twitter",className:"w-16 h-16 transition-transform transform hidden group-hover:block"})]})}),o.jsx("div",{className:"flex flex-col justify-center items-center gap-4",children:o.jsxs("a",{href:"https://www.instagram.com/palangmerah_indonesia",target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram",className:"group rounded-full bg-pmi-gray-light hover:bg-pmi-red p-4",children:[o.jsx("img",{src:rp,alt:"Instagram",className:"w-16 h-16 transition-transform transform group-hover:hidden"}),o.jsx("img",{src:sp,alt:"Instagram",className:"w-16 h-16 transition-transform transform hidden group-hover:block"})]})}),o.jsx("div",{className:"flex flex-col justify-center items-center gap-4",children:o.jsxs("a",{href:"https://www.instagram.com/pmi_tv",target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram",className:"group rounded-full bg-pmi-gray-light hover:bg-pmi-red p-4",children:[o.jsx("img",{src:ap,alt:"YouTube",className:"w-16 h-16 transition-transform transform group-hover:hidden"}),o.jsx("img",{src:op,alt:"YouTube",className:"w-16 h-16 transition-transform transform hidden group-hover:block"})]})})]}),e&&e.map((n,i)=>o.jsx("div",{className:"flex flex-col justify-center items-center gap-4",children:o.jsxs("a",{href:n.url,target:"_blank",rel:"noopener noreferrer","aria-label":n.title,className:"flex justify-center items-center group rounded-full bg-pmi-gray-light hover:bg-pmi-red w-24 h-24 text-6xl",children:[o.jsx("span",{className:"mx-auto text-pmi-red transition-transform transform group-hover:hidden",children:o.jsx("i",{className:n.image})}),o.jsx("span",{className:"text-white transition-transform transform hidden group-hover:block",children:o.jsx("i",{className:n.image})})]})},i))]})]})},Nve=()=>{const{t}=Se(["common"]);return o.jsxs("div",{className:"flex flex-col flex-wrap gap-2 items-center justify-center mt-8 py-20 my-12 px-2",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center",children:t("common:registrationSuccess.title")}),o.jsx("img",{src:"/svg/heart.svg",alt:t("common:registrationSuccess.title"),className:"w-60 h-60"}),o.jsx("p",{className:"font-normal text-2xl text-pmi-gray text-center",children:t("common:registrationSuccess.message")}),o.jsx("p",{className:"font-light text-lg text-pmi-gray text-center",children:t("common:registrationSuccess.appreciation")})]})},Mve=()=>{const{t}=Se(["common"]),e=[{title:t("common:registrationSuccess.sections.reviewProcess"),description:t("common:registrationSuccess.details.review"),icon:"/svg/volunteers/carbon-review.svg"},{title:t("common:registrationSuccess.sections.contact"),description:t("common:registrationSuccess.details.emailConfirmation"),icon:"/svg/volunteers/email-open-heart-outline.svg"},{title:t("common:registrationSuccess.sections.training"),description:t("common:registrationSuccess.details.approval"),icon:"/svg/volunteers/group-meeting-call.svg"}];return o.jsxs("div",{className:"flex flex-col flex-wrap gap-4 items-center justify-center mt-8 py-12 bg-pmi-gray-light",children:[o.jsx("h3",{className:"font-bold text-4xl text-pmi-red text-center",children:t("common:registrationSuccess.whatsNext")}),o.jsx("div",{className:"flex flex-col md:flex-row justify-center items-center gap-8 mt-12 text-center max-w-6xl",children:e.map((n,i)=>
180o.jsx(mv,{title:n.title,description:n.description,icon:n.icon},i))})]})},Dve=()=>{const t=nv(),e=Z.useRef(null);return Z.useEffect(()=>{e.current=t.pathname},[t]),e.current},_ve=()=>{const{t}=Se(["menu"]),e=Dve(),n=[{label:t("menu:home"),path:"/"},{label:t("menu:training"),path:"/training-certification/training"},{label:t("menu:trainingRegistrationForm"),path:e||""},{label:t("menu:thankYou")}];return o.jsxs(Ye,{type:"default",title:"thankYou",breadcrumbs:n,children:[o.jsx(Nve,{}),o.jsx(Mve,{}),o.jsx(Ave,{})]})},Ive="https://ifrc.csod.com/client/ifrc/default.aspx",Rve=[{path:"/training-certification/certification-area/:id",element:o.jsx($ye,{}),errorElement:o.jsx(We,{})},{path:"/training-certification/testimonials",element:o.jsx(fbe,{}),errorElement:o.jsx(We,{})},{path:"/training-certification/competency-test-center",element:o.jsx(obe,{}),errorElement:o.jsx(We,{})},{path:"/training-certification/competency-test-center/pca",element:o.jsx(dbe,{}),errorElement:o.jsx(We,{})},{path:"/training-certification/certification-news",element:o.jsx(Uye,{}),errorElement:o.jsx(We,{})},{path:"/training-certification/certification-news/:id",element:o.jsx(qye,{}),errorElement:o.jsx(We,{})},{path:"/training-certification/training",element:o.jsx(Qbe,{}),errorElement:o.jsx(We,{})},{path:"/training-certification/training/type/:training_program_slug",element:o.jsx(ive,{}),errorElement:o.jsx(We,{})},{path:"/training-certification/training/detail/:training_program_slug/:training_category_slug",element:o.jsx(hve,{}),errorElement:o.jsx(We,{})},{path:"/training-certification/training/training-programs",element:o.jsx(lve,{}),errorElement:o.jsx(We,{})},{path:"/training-certification/training/knowledge-and-innovation-center",element:o.jsx(mve,{}),errorElement:o.jsx(We,{})},{path:"/training-certification/training/duties-and-functions",element:o.jsx(yve,{}),errorElement:o.jsx(We,{})},{path:"/training-certification/training/training-center-locations",element:o.jsx(Cve,{}),errorElement:o.jsx(We,{})},{path:"/training-certification/training/universities-and-lpk",element:o.jsx(wve,{}),errorElement:o.jsx(We,{})},{path:"/training-certification/training/humanist",element:o.jsx(gve,{}),errorElement:o.jsx(We,{})},{path:"/training-certification/training/registration/:id",element:o.jsx(Eve,{}),errorElement:o.jsx(We,{})},{path:"/training-certification/training/registration-confirmation",element:o.jsx(_ve,{}),errorElement:o.jsx(We,{})},{path:"/training-certification/training/testimonials",element:o.jsx(ave,{}),errorElement:o.jsx(We,{})},{path:"/training-certification/training/clients",element:o.jsx(eve,{}),errorElement:o.jsx(We,{})},{path:"/training-certification/ifrc",element:o.jsx(lw,{url:Ive}),errorElement:o.jsx(We,{})},{path:"/training/terms",element:o.jsx(Pz,{}),errorElement:o.jsx(We,{})}],Ove=[{path:"/",element:o.jsx(Wne,{}),errorElement:o.jsx(We,{})},...aie,...mie,...Hle,...Cle,...epe,...ufe,...Cfe,...Sge,...Sye,...pxe,...Nxe,...Oye,...Rve,...fye,{path:"*",element:o.jsx(xi,{})}],Lve=O7(Ove),{slice:Fve,forEach:Bve}=[];function $ve(t){return Bve.call(Fve.call(arguments,1),e=>{if(e)for(const n in e)t[n]===void 0&&(t[n]=e[n])}),t}const vL=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Hve=(t,e,n)=>{const i=n||{};i.path=i.path||"/";const r=encodeURIComponent(e);let s=`${t}=${r}`;if(i.maxAge>0){const a=i.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");s+=`; Max-Age=${Math.floor(a)}`}if(i.domain){if(!vL.test(i.domain))throw new TypeError("option domain is invalid");s+=`; Domain=${i.domain}`}if(i.path){if(!vL.test(i.path))throw new TypeError("option path is invalid");s+=`; Path=${i.path}`}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invali
180d");s+=`; Expires=${i.expires.toUTCString()}`}if(i.httpOnly&&(s+="; HttpOnly"),i.secure&&(s+="; Secure"),i.sameSite)switch(typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return s},wL={create(t,e,n,i){let r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(r.expires=new Date,r.expires.setTime(r.expires.getTime()+n*60*1e3)),i&&(r.domain=i),document.cookie=Hve(t,encodeURIComponent(e),r)},read(t){const e=`${t}=`,n=document.cookie.split(";");for(let i=0;i<n.length;i++){let r=n[i];for(;r.charAt(0)===" ";)r=r.substring(1,r.length);if(r.indexOf(e)===0)return r.substring(e.length,r.length)}return null},remove(t){this.create(t,"",-1)}};var zve={name:"cookie",lookup(t){let{lookupCookie:e}=t;if(e&&typeof document<"u")return wL.read(e)||void 0},cacheUserLanguage(t,e){let{lookupCookie:n,cookieMinutes:i,cookieDomain:r,cookieOptions:s}=e;n&&typeof document<"u"&&wL.create(n,t,i,r,s)}},Vve={name:"querystring",lookup(t){var i;let{lookupQuerystring:e}=t,n;if(typeof window<"u"){let{search:r}=window.location;!window.location.search&&((i=window.location.hash)==null?void 0:i.indexOf("?"))>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));const a=r.substring(1).split("&");for(let l=0;l<a.length;l++){const c=a[l].indexOf("=");c>0&&a[l].substring(0,c)===e&&(n=a[l].substring(c+1))}}return n}};let Ag=null;const kL=()=>{if(Ag!==null)return Ag;try{Ag=window!=="undefined"&&window.localStorage!==null;const t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Ag=!1}return Ag};var Uve={name:"localStorage",lookup(t){let{lookupLocalStorage:e}=t;if(e&&kL())return window.localStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupLocalStorage:n}=e;n&&kL()&&window.localStorage.setItem(n,t)}};let Ng=null;const SL=()=>{if(Ng!==null)return Ng;try{Ng=window!=="undefined"&&window.sessionStorage!==null;const t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Ng=!1}return Ng};var Wve={name:"sessionStorage",lookup(t){let{lookupSessionStorage:e}=t;if(e&&SL())return window.sessionStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupSessionStorage:n}=e;n&&SL()&&window.sessionStorage.setItem(n,t)}},Gve={name:"navigator",lookup(t){const e=[];if(typeof navigator<"u"){const{languages:n,userLanguage:i,language:r}=navigator;if(n)for(let s=0;s<n.length;s++)e.push(n[s]);i&&e.push(i),r&&e.push(r)}return e.length>0?e:void 0}},qve={name:"htmlTag",lookup(t){let{htmlTag:e}=t,n;const i=e||(typeof document<"u"?document.documentElement:null);return i&&typeof i.getAttribute=="function"&&(n=i.getAttribute("lang")),n}},Kve={name:"path",lookup(t){var r;let{lookupFromPathIndex:e}=t;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?(r=n[typeof e=="number"?e:0])==null?void 0:r.replace("/",""):void 0}},Yve={name:"subdomain",lookup(t){var r,s;let{lookupFromSubdomainIndex:e}=t;const n=typeof e=="number"?e+1:1,i=typeof window<"u"&&((s=(r=window.location)==null?void 0:r.hostname)==null?void 0:s.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(i)return i[n]}};function Xve(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:t=>t}}class Vz{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,n)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e||{languageUtils:{}},this.options=$ve(n,this.options||{},Xve()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=r=>r.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(zve),this.addDetector(Vve),this.addDetector(Uve),this.addDetector(Wve),this.addDetector(Gve),this.addDetector(qve),this.addDetector(Kve),this.addDetector(Yve)}addDetector(e){return this.detectors[e.name]=e,this}detect(e){e||(e=this.options.order);let n=[];return e.forEach(i=>
180{if(this.detectors[i]){let r=this.detectors[i].lookup(this.options);r&&typeof r=="string"&&(r=[r]),r&&(n=n.concat(r))}}),n=n.map(i=>this.options.convertDetectedLanguage(i)),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(e,n){n||(n=this.options.caches),n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||n.forEach(i=>{this.detectors[i]&&this.detectors[i].cacheUserLanguage(e,this.options)}))}}Vz.type="languageDetector";const Jve="Welcome",Qve="This is your React app with i18n support.",Zve="search",e0e="view",t0e="donate",n0e="Read More",i0e="Load More",r0e="Learn more",s0e="see detail",a0e="view all",o0e="donations",l0e="get involved",c0e="Join us in making a difference and supporting our mission to empower communities through vital services and support.",d0e="Refresh",u0e="categories",h0e="Showing {{start}} to {{end}} of {{total}} entries",p0e="members",m0e="register",f0e="join now",g0e="year",x0e="date",y0e="day",b0e="hour",v0e="Abstract",w0e="Phone",k0e="Please selected",S0e="{{date}} | Viewed {{count}} times",C0e="Back",j0e="Updates",T0e=" All",P0e="Show all",E0e="Share",A0e="via",N0e="Or",M0e="Download",D0e="Copy Link",_0e="Link copied to clipboard!",I0e="Failed to copy link.",R0e="Select Option",O0e="No data available",L0e={notFound:"Not Found",notExists:"Sorry, the page you are looking for does not exist.",unexpectedOccured:"Sorry, an unexpected error has occurred.",goBack:"Go back to the homepage"},F0e={title:"Need Help Now?",description:"If you are in immediate need of help, please contact your local Red Cross Center",contactUs:"CONTACT US"},B0e={sunday:"Sunday",monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday"},$0e={january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December"},H0e={required:"This field is required.",requiredChecked:"This field must be checked."},z0e={contactUs:"Contact Us",followUs:"Follow us on social media",pmiHq:"PMI Headquarters"},V0e={title:"Together, We Can Make a Difference",subTitle:"Join us in our mission to provide life-saving assistance and hope to those in need.",offers:{title:"Together for Humanity",subTitle:"Contribute to change through Blood Donation, Volunteering, and Education",cards:[{title:"Blood Donation",subTitle:"Donate blood and save lives!",description:"Your contribution can make a significant difference in someone's life. Join our blood donation drives and be a hero today."},{title:"Volunteer",subTitle:"Help your community, volunteer today!",description:" Volunteer and support your community. Your time and skills can help us achieve our mission. Sign up now to make a meaningful impact."},{title:"Training",subTitle:"Boost your skills with our training!",description:"Learn and grow with our programs. Learn how you can contribute effectively and support our cause. Enroll today and be part of the change."}]},latestNews:"Latest News",activities:"Activities",publications:"Publications",infografis:"Infographics",ourGrowingComunity:"Our Growing Community",visitorInsights:"Visitor Insights",totalVisitorsToday:"Total Visitors Today",totalVisitorsAllTime:"Total Visitors All Time",totalDownloads:"Total Downloads"},U0e={branchOffice:"PMI Branch Office",reachOut:"Reach Out to Your Nearest PMI Office for Assistance",selectCity:"Select City"},W0e={title:"Blood Stock Information",subTitle:"Real-Time Blood Stock Availability",byArea:"Blood Stock by Area",selectCity:"Select your city or regency to view detailed blood stock information",placeholderCity:"Type or select your city or regency",availability:"Blood Stock Availability",disclaimer:"The number of blood stocks can change at any time. For the latest blood stock information, please contact the relevant Blood Transfusion Unit (UTD)."},G0e={title:"Location",subTitle:"Find a Blood Donation Center Near You",titleArea:"Search Blood Donor Centers",selectCity:"Select a province, city, or regency to view available blood donor centers",bloodDonorList:"Blood Donor Centers List",bloodDonorDetail:"Detailed information about blood donor centers in your selected area",needAssistance:"Need Assistance?",forMoreInfo:"For more information or assistance, please contact your nearest Blood Transfusion Unit (UTD)"},q0e={title:"Donor Information",description:"Access your profile and blood donation history by entering your details",fields:{nik:{label:"NIK",placeholder:"Enter your NIK number"},donorId:{label:"Donor ID",placeholder:"Enter your donor ID"},phoneNumber:{label:"Phone Number",placeholder:"Enter your phone number"}},data:{noInformation:"No Donor Information Found",forgiveInformation:"Sorry, we couldn't find any donor information for the provided ID. Please check the ID number and try again. If you continue to experience issues, contact our support team for assistance."},history:{title:"Blood Donor History",description:"Review your past donation records"},missingEntries:{label:"Missing Entries?",description:"For more information or assistance, please contact your nearest Blood Transfusion Unit (UTD)"}},K0e={title:"Frequently Asked Questions",description:"Find Answers to Your Most Common Questions about Blood Donation",categories:{donor:"Blood Donation",cost:"Cost",requirements:"Requirements",platelets:"Platelets",benefits:"Benefits"},questions:{q1:"Why do we have to pay when we need blood from PMI?",q2:"Why do we need to donate blood?",q3:"High Demand",q4:"Free Health Check",q5:"Doesn't hurt much",q6:"Why is the process so slow when we need blood?",q7:"What are the requirements for donating blood?",q8:"What should we prepare before donating?",q9:"Is donating blood healthy?",q10:"Don't donate blood if:",q11:"When should you postpone donating blood?",q12:"What is apheresis platelet donation?",q13:"What are platelets?",q14:"Who needs platelet transfusions?",q15:"Are there special requirements to be an apheresis platelet donor?",q16:"What are the benefits for apheresis platelet donors?",q17:"How does platelet donation work?",q18:"What are the benefits for the recipient of apheresis platelets?"},answers:{a1:"Explanation about the costs required when needing blood from PMI.",a2:"There is a great need for blood donation.",a3:"Every eight seconds, someone needs a blood transfusion in Indonesia.",a4:"Before donating blood, staff will check your body temperature, pulse, blood pressure, and hemoglobin levels.",a5:"Yes, you will feel pain, but it is minimal and will go away quickly.",a6:"Explanation about why the blood retrieval process takes time.",a7:"Requirements that must be met to donate blood.",a8:"Information on what to prepare before donating blood.",a9:"Explanation of the health benefits of donating blood.",a10:"Situations and conditions where it is better not to donate blood.",a11:"The right time to postpone blood donation and why.",a12:"Explanation of apheresis platelet donation.",a13:"Information about what platelets are.",a14:"Information on who needs platelet transfusions.",a15:"Special requirements to be an apheresis platelet donor.",a16:"Benefits for apheresis platelet donors.",a17:"Explanation of how the platelet donation technique is performed.",a18:"Benefits for the recipient of apheresis platelets."}},Y0e={downloadApp:"Download the âAyo Donorâ App",joinMovement:"Join the Lifesaving Movement with PMI",description:"Stay connected with the <span class='text-pmi-red'>Indonesian Red Cross</span> and make blood donation easier than ever with the <span class='text-pmi-red'>Ayo Donor</span> App.",downloadNow:"Download Ayo Donor Mobile App Now",forIOS:"For iOS",forAndroid:"For Android",joinThous
180ands:"Join Thousands of Lifesavers Across Indonesia",iosVersion:"iOS 12.0 and up",androidVersion:"Android 4.4 and up",joinCommunity:"Join our growing community of blood donors and volunteers today. Download the Ayo Donor app and be part of a movement that's saving lives across Indonesia. With every donation, you make a difference. Your blood can save lives. Be a hero, download the Ayo Donor app now!",appFeatures:"App Features",exploreFeatures:"Explore the Essential Features of the <span class='text-pmi-red'>Ayo Donor</span> App",digitalDonorCard:"Digital Donor Card",feeds:"Feeds",digitalDonorCardDescription:"Get your digital donor card easily within the app with quick sign up process.",feedsDescription:"Post photos about your experience with PMI. Share, like, and comment on posts.",trackDonorHistory:"Track Donor History",trackDonorHistoryDescription:"Monitor your donor history.",eventSchedules:"Event Schedules",eventSchedulesDescription:"View and sign up for upcoming blood donation events.",newsResources:"News & Resources",newsResourcesDescription:"Access news, articles, videos, and FAQs about blood donation and PMI.",bloodDonorReminders:"Blood Donor Reminders",bloodDonorRemindersDescription:"Receive timely notifications and reminders for your next blood donor.",findDonationLocations:"Find Donation Locations",findDonationLocationsDescription:"Locate & contact the nearest blood donation centers and events.",checkBloodStock:"Check Current Blood Stock",checkBloodStockDescription:"Stay informed about the current blood stock levels in your area.",onlineDonations:"Online Donations",onlineDonationsDescription:"Easily donate through PMI, specific programs, special causes, or general funds.",emergencyNumbers:"Dial Indonesia Emergency Numbers",emergencyNumbersDescription:"Quickly access important emergency contact numbers in Indonesia."},X0e={title:"Press Release",stayUpdated:"Stay Updated with Our Latest Announcements and News",searchPressReleases:"Search press releases...",searchRequired:"Search is required",recentPressRelease:"Recent Press Release",notFound:"Data you are looking for is not available"},J0e={title:"Articles",exploreInDepthInformationAndUpdates:"Explore In-Depth Information and Updates",searchArticles:"Search article...",recentArticle:"Recent Article",notFound:"Data you are looking for is not available"},Q0e={title:"Social Media",followUs:"Follow Us on Social Media and Stay Updated with Our Latest Highlights and Updates"},Z0e={title:"Volunteer Stories",searchVolunteerStories:"Search volunteer stories...",recentVolunteerStories:"Recent Volunteer Stories",seeMoreVideos:"see more videos"},ewe={title:"Foreign Volunteer Form",personalInformation:"Personal Information",contactInformation:"Contact Information",submitButton:"Submit",confirmation:"Foreign Volunteer Confirmation",reviewData:"Review your data for completeness.",thankYouTitle:"Thank You for registering as a Volunteer!",thankYouBody:"Thank you for registering as a volunteer. We truly appreciate your dedication and enthusiasm in joining us. Together, let's make a positive impact and bring meaningful change!",whatHappensNextTitle:"What happens next?",whatHappensNextBody:"Your data will be further processed by our team. You will receive updates on the update process of your submission.",form:{fullName:{label:"Full Name",placeholder:"Enter your full name"},firstName:{label:"First Name",placeholder:"Enter your first name"},lastName:{label:"Last Name",placeholder:"Enter your last name"},email:{label:"Email",placeholder:"Enter your email address"},phoneNumber:{label:"Phone Number",placeholder:"Enter your phone number (WhatsApp number)"},emergencyContact:{label:"Emergency Contact",placeholder:"Enter an emergency contact number"},passportNumber:{label:"Passport Number",placeholder:"Enter your passport number"},passportExpirationDate:{label:"Passport Expiration Date",placeholder:"Select your passport expiration date"},passportDocument:{label:"Passport Document",placeholder:"Upload your passport document"},visaNumber:{label:"Visa Number",placeholder:"Enter your visa number"},visaType:{label:"Visa Type",placeholder:"Select your visa type"},visaExpirationDate:{label:"Visa Expiration Date",placeholder:"Select your visa expiration date"},visaDocument:{label:"Visa Document",placeholder:"Upload your visa document"},dateOfBirth:{label:"Date of Birth",placeholder:"Select your date of birth"},gender:{label:"Gender",placeholder:"Select your gender",options:{male:"Male",female:"Female"}},skills:{label:"Skills to contribute as a PMI Volunteer",placeholder:"Enter your skills"},nationality:{label:"Nationality",placeholder:"Select your nationality"},residence:{label:"Residence in Indonesia",placeholder:"Enter your residence location in Indonesia"},educationLevel:{label:"Education Level",placeholder:"Select your education level"},profession:{label:"Profession",placeholder:"Select your profession"}}},twe={title:"Volunteer",exploreOurVolunteerProgramsAndJoinOurLifesavingMission:"Explore Our Volunteer Programs and Join Our Lifesaving Mission",youthRedCross:"Youth Red Cross",palangMerahRemaja:"Palang Merah Remaja (PMR)",pmrDescription:"An extracurricular program for students in schools or educational institutions focusing on Red Cross activities.",volunteerCorps:"Volunteer Corps",korpsSukarela:"Korps Sukarela (KSR)",ksrDescription:"A unit for individuals who voluntarily become members of KSR. You can register at the local PMI office or join the Student Activity Unit (UKM) at your university.",voluntaryWorkforce:"Voluntary Workforce",tenagaSukarela:"Tenaga Sukarela (TSR)",tsrDescription:"PMI members recruited from the community with specific professional skills, such as doctors, nutritionists, accountants, journalists, artists, teachers, etc.",foreignVolunteers:"Foreign Volunteers",tenagaAsing:"Tenaga Asing",foreignVolunteersDescription:"Foreign Volunteers are individuals from outside Indonesia who bring their unique skills, perspectives, and experiences to support the mission of PMI.",whyVolunteerWithUs:"Why Volunteer with Us?",makingADifference:"Making a Difference",gainingNewSkills:"Gaining New Skills",beingPartOfACommunity:"Being Part of a Community",personalFulfillmentAndGrowth:"Personal Fulfillment and Growth",makingADifferenceDescription:"Volunteering allows you to have a direct and positive impact on the lives of individuals and communities. Whether you're assisting in disaster relief, providing medical care, or supporting educational programs, your contributions help create lasting change and improve the well-being of others.",gainingNewSkillsDescription:"Through volunteering, you can develop and enhance a wide range of skills. From leadership and teamwork to
180specialized technical abilities, the hands-on experience gained in volunteer roles can be invaluable. These skills not only benefit your personal growth but also enhance your professional resume.",beingPartOfACommunityDescription:"Volunteering connects you with like-minded individuals who share a common goal of helping others. It fosters a sense of belonging and camaraderie as you work together towards meaningful objectives. This sense of community can lead to lasting friendships and a strong support network.",personalFulfillmentAndGrowthDescription:"The act of giving your time and effort to a cause you care about brings a profound sense of fulfillment. Volunteering offers opportunities for self-reflection, learning, and personal development. It can boost your self-confidence, provide a sense of purpose, and inspire a more positive outlook on life.",volunteerStories:"Volunteer Stories",inspiringJourneysRealStoriesFromOurDedicatedVolunteers:"Inspiring Journeys: Real Stories from Our Dedicated Volunteers",fromStudentToLeader:"From Student to Leader",bayusJourneyWithTheYouthRedCross:"Bayuâs Journey with the Youth Red Cross",bayusStoryDescription:"Bayu joined the Youth Red Cross as a high school student. Through her involvement, she developed leadership skills and a deep sense of responsibility. Now, she leads her own team of volunteers, inspiring others to make a difference in their communities.",aLifesaverInAction:"A Lifesaver in Action",pasyasExperienceWithTheVolunteerCorps:"Pasya's Experience with the Volunteer Corps",pasyasStoryDescription:"Pasya, a medical student, joined the Volunteer Corps to gain practical experience and give back to society. His first mission involved responding to a natural disaster, where he provided crucial medical care. The experience was life-changing, solidifying his commitment to humanitarian work.",fromCorporateToCommunity:"From Corporate to Community",rindusTransitionToVolunteering:"Rindu's Transition to Volunteering",rindusStoryDescription:"After a successful career in finance, Rindu wanted to do something more meaningful. She joined the Voluntary Workforce, using her skills to manage logistics for disaster relief efforts. Her story highlights the fulfillment and purpose she found in helping others.",forElementarySchoolLevel:"For elementary school level",forJuniorHighSchoolLevel:"For junior high school level",forSeniorHighSchoolLevel:"For senior high school level",universityStudentUnitDescription:"This unit is composed of university students who participate in KSR activities through their campus-based organizations. They often collaborate with the Student Activity Units (UKM) that focus on Red Cross activities within their universities.",pmiHeadquartersUnitDescription:"This unit includes volunteers who register and operate directly through the PMI city or district headquarters. These volunteers may come from various backgrounds and are not limited to university students."},nwe={title:"Become a Volunteer",fillInTheRegistrationFormBelow:"Fill in the registration form below",profile:"Profile",name:"Name",nik:"Nomor Induk Kependudukan (NIK)",enterYourFullName:"Enter your full name",enterYourIdNumber:"Enter your ID number",birthPlace:"Birth Place",birthDate:"Birth Date",gender:"Gender",enterYourBirthPlace:"Enter your birth place",selectYourBirthDate:"Select your birth date",selectYourGender:"Select your gender",religion:"Religion",bloodType:"Blood Type",selectYourReligion:"Select your religion",selectYourBloodType:"Select your blood type",email:"Email",phoneNumber:"Phone Number",enterYourEmail:"Enter your email",phoneCode:"+62",enterYourPhoneNumber:"Enter your phone number",addressAsStatedInIdCard:"Address (as stated in ID Card)",province:"Province",cityOrRegency:"City / Regency",selectProvince:"Select province",selectCityOrRegency:"Select city / regency",district:"District",villageOrSubdistrict:"Village / Subdistrict",selectDistrict:"Select district",selectVillageOrSubdistrict:"Select village / subdistrict",idAddressTheSameAsYourCurrentAddress:"ID address the same as your current address",currentAddress:"Current Address",pmiDistrictUnit:"PMI District Unit",cityOrDistrict:"City / District",unit:"Unit",selectCityOrDistrict:"Select city / district",selectUnit:"Select unit",photo:"Photo",uploadPhoto:"Upload photo",browseFile:"Browse File",requiredField:"Please fill out this field"},iwe={thankYou:"Thank You for Registering as a Volunteer!",registrationSubmitted:"Your registration has been successfully submitted.",appreciation:"We appreciate your willingness to join our mission and make a positive impact in our
180community.",whatsNext:"Whatâs Next?",reviewProcess:"Review Process",contact:"Contact",orientation:"Orientation",reviewProcessDetail:"Our team will review your application and verify the provided information.",emailConfirmation:"You will receive an email confirmation shortly. Please check your inbox (and spam/junk folder) for further instructions.",orientationDetail:"Once your application is approved, we will invite you to an orientation session where you will learn more about your role and responsibilities.",needHelp:"Need help?",contactUs:"If you have any questions or need further assistance, please contact us at your nearest Blood Transfusion Unit (UTD).",followUs:"Follow us on social media to stay updated with our latest news and events."},rwe={"7FundamentalPrinciples":"7 Fundamental Principles",fundamentalPrinciplesTitle:"The Fundamental Principles of The International Red Cross and Red Crescent Movement",humanity:"Humanity",humanityDescription:"The International Red Cross and Red Crescent Movement, born of a desire to bring assistance without discrimination to the wounded on the battlefield, endeavour, in its international and national capacity, to prevent and alleviate human suffering whenever it may be found. Its purpose is to protect life and health and to ensure respect for the human being. It promotes mutual understanding, friendship, cooperation and lasting peace among all peoples.",impartiality:"Impartiality",impartialityDescription:"It makes no discrimination as to nationality, race, religious beliefs, class or political opinions. It endeavour to relieve the suffering of individuals, being guided solely by their needs, and to give priority to the most urgent cases of distress.",neutrality:"Neutrality",neutralityDescription:"In order to continue to enjoy the confidence of all, the Movement may not take sides in hostilities or engage at any time in controversies of a political, racial, religious or ideological nature.",independence:"Independence",independenceDescription:"The Movement is independent. The National Societies, while auxiliaries in the humanitarian services of their governments and subject to the laws of their respective countries, must always maintain their autonomy so that they may be able at all times to act in accordance with the principles of the Movement.",voluntaryService:"Voluntary Service",voluntaryServiceDescription:"The Movement is a voluntary relief movement not prompted in any manner by desire for gain.",unity:"Unity",unityDescription:"There can be only one Red Cross and one Red Crescent society in any one country. It must be open to all. It must carry on its humanitarian work throughout its territory.",universality:"Universality",universalityDescription:"The International Red Cross and Red Crescent Movement, in which all societies have equal status and share equal responsibilities and duties in helping each other, is worldwide.",fundamentalPrinciplesConclusion:"The Fundamental Principles express the values and practices of the International Red Cross and Red Crescent Movement. These principles serve as a guide for action and a shared identity for the movement.",redCrossSymbol:"Red Cross Symbol",redCrossSymbolDescription:"Adopted under the original Geneva Convention of 1864, its design is the reverse of the Swiss flag, acknowledging the historic connection between Switzerland and the original Geneva Convention.",redCrescentSymbol:"Red Crescent Symbol",redCrescentSymbolDescription:"Created in the late 1800s to avoid religious connotations associated with the Red Cross symbol in certain countries. It was officially recognized in the revised Geneva Convention of 1929.",redCrystalSymbol:"Red Crystal Symbol",redCrystalSymbolDescription:"Established in 2005 to enhance protection in situations where existing symbols might not be perceived as neutral.",understandingEmblem:"Understanding the Emblem: The Significance of the Red Cross"},swe={title:"Vision & Mission",ofTheIndonesianRedCross:"of the Indonesian Red Cross",ourVision:"Our Vision",visionText:"To establish PMI (Indonesian Red Cross) as a professional and integrated organization that works in harmony with the community.",ourMission:"Our Mission",missionText1:"To uphold PMI's reputation at both national and international levels.",missionText2:"To be a leading humanitarian organization that provides high-quality services to the community in accordance with the fundamental principles of the International Red Cross and Red Crescent Movement.",missionText3:"To enhance the integrity and independence of the organization through sustainable strategic partnerships with the government, private sector, Movement partners, community, and other stakeholders at all levels of PMI, prioritizing support for those in need.",strategicPlan:"Strategic Plan",strategicPlanTitle1:"Effective Organizational Functioning",strategicPlanTitle2:"Resource Capacity Enhancement",strategicPlanTitle3:"Community Resilience Building",strategicPlanTitle4:"Quality Blood Services",strategicPlanTitle5:"Government Collaboration",strategicPlanTitle6:"Sustainable Partnerships",strategicPlanTitle7:"Organizational Accountability",strategicPlanTitle8:"Humanitarian Values Promotion",strategicPlanText1:"Develop PMI to function effectively at all levels, ensuring the implementation of policies, organizational regulations, systems, and procedures established.",strategicPlanText2:"Enhance the capacity of PMI's resources at all levels, including human resources and necessary infrastru
180cture for disaster management operations across Indonesia.",strategicPlanText3:"Improve community resilience to reduce the risks and impacts of disasters and diseases.",strategicPlanText4:"Increase the availability, safety, and quality of blood services throughout Indonesia.",strategicPlanText5:"Strengthen cooperation with central and local governments to fulfill PMI's mandate and humanitarian functions.",strategicPlanText6:"Foster sustainable partnerships with the public sector, private sector, movement partners, donor institutions, and other stakeholders at all levels in serving the community.",strategicPlanText7:"Enhance the accountability of PMI as a humanitarian organization at both national and international levels.",strategicPlanText8:"Promote understanding among all societal elements about humanitarian values, the Fundamental Principles of the International Red Cross and Red Crescent Movement, and International Humanitarian Law through communication, education, and dissemination efforts."},awe={title:"Organization Structure",subTitle:"of the Indonesian Red Cross",centralBoardComposition:"Central Board Composition of the Indonesian Red Cross",period:"Period {{date}}",requiredField:"Cannot be left blank"},owe={title:"History",subtitle:"of the Indonesian Red Cross",firstContent:["The establishment of the Indonesian Red Cross actually began before World War II. On October 21, 1873, the Dutch Colonial Government founded the Red Cross in Indonesia under the name Nederlands Rode Kruis Afdeling Indie (Nerkai). However, it was later dissolved during the Japanese occupation.","The struggle to establish the Indonesian Red Cross began around 1932, spearheaded by Dr. RCL Senduk and Dr. Bahder Djohan. The initiative gained broad support, particularly from Indonesia's educated circles. Despite their efforts to present the proposal at the Nerkai Conference in 1940, it was outrightly rejected.","Undeterred, the plan was temporarily set aside, waiting for the right opportunity. During the Japanese occupation, they attempted once more to form a National Red Cross Body, but this effort was again thwarted by the Japanese military government, forcing the proposal to be shelved for a second time."],quote:"Seventeen days after the declaration of independence on August 17, 1945, President Soekarno issued an order to establish a National Red Cross organization. Following the President's directive, Dr. Buntaran, who was then the Minister of Health in Indonesia's first cabinet, formed the Committee of Five on September 5, 1945. The committee consisted of Dr. R. Mochtar (Chairman), Dr. Bahder Djohan (Secretary), Dr. Djuhana, Dr. Marzuki, and Dr. Sitanala.",secondContent:["The Indonesian Red Cross Society (PMI) was successfully established on September 17, 1945, under the leadership of Drs. Mohammad Hatta. As only one national society is allowed per country, on January 16, 1950, the Dutch government dissolved NERKAI and transferred its assets to PMI. The transfer was represented by Dr. B. Van Trich from NERKAI and Dr. Bahder Djohan from PMI.","PMI began its activities by providing aid to victims of the Indonesian War of Independence and repatriating Allied and Japanese prisoners of war. Due to its efforts, PMI received international recognition from the International Committee of the Red Cross (ICRC) on June 15, 1950, and became a member of the International Red Cross. Subsequently, in October 1950, PMI was accepted as the 68th member of the League of Red Cross and Red Crescent Societies, now known as the International Federation of Red Cross and Red Crescent Societies (IFRC).","PMI continued to provide assistance, leading to the Indonesian government issuing Presidential Decree No. 25 on January 16, 1950, and reinforcing it with Presidential Decree No. 246 on November 29, 1963. These decrees recognized PMI's existence and tasked it with providing first aid to disaster and war victims in accordance with the 1949 Geneva Conventions.","In 2018, PMI became a legal humanitarian organization under Law No. 1 of 2018 on Red Cross Affairs. This law mandates PMI to carry out Red Cross activities according to the 1949 Geneva Conventions, aiming to prevent and alleviate suffering and protect victims of war and disasters without discrimination based on religion, nationality, ethnicity, race, gender, social status, or political views.","As of February 2019, PMI is established in 33 provinces, 474 regencies/cities, and 3,406 districts, with nearly 1.5 million volunteers ready to provide services."],tasks_title:"Tasks Performed by PMI",tasks_subtitle:"based on Undang-Undang No. 1 Tahun 2018 regarding the Red Cross",tasks:["Providing aid to victims of armed conflicts, riots, and other disturbances;","Offering blood services in accordance with legal regulations;","Developing and managing volunteers;","Conducting education and training related to Red Cross activities;","Disseminating information about Red Cross activities;","Assisting in disaster management both domestically and internationally;","Providing health and social services; and","Carrying out other humanitarian tasks assigned by the government."],ourJourney:"Our Journey Through Time: The Story of PMI"},lwe={title:"Disaster Management",subtitle:"Ensuring Safety and Support in Times of Crisis",titleIntroduction:"Swift and Effective Response to Protect Communities",introduction:"Disasters, whether natural or man-made, are events that threaten and disrupt the lives and livelihoods of communities. These events often result in casualties, environmental damage, property loss, and psychological impact. The Indonesian Red Cross (PMI) is mandated to assist in disaster management, ensuring a swift, effective, and coordinated response to supp
180ort affected communities.",services:{title:"Disaster Services",content:[{title:"Understanding Disasters",description:"Indonesia's geographical location and diverse topography make it one of the most disaster-prone countries in the world. The United Nations International Strategy for Disaster Reduction (UN-ISDR) highlights Indonesia as being at high risk for tsunamis, landslides, and volcanic eruptions. PMI's mandate, outlined in Presidential Decrees No. 25 of 1950 and No. 24 of 1963, includes responsibilities before, during, and after disasters."},{title:"Comprehensive Disaster Management",description:"Disaster management encompasses all efforts and activities aimed at prevention, mitigation, preparedness, emergency response, relief, recovery, rehabilitation, and reconstruction before, during, and after a disaster."},{title:"Rapid Response and Coordination",description:"PMI operates under the '6-Hour Principle,' ensuring that initial response efforts begin within six hours of a disaster. This principle supports PMI's commitment to providing quick, accurate, and coordinated disaster response."},{title:"Emergency Response Capacity",description:"PMI's disaster response operations are supported by a network of volunteers across Indonesia, acting as the frontline responders. Additionally, PMI has disaster response equipment and supplies stored in regional warehouses located in Banten, Padang, Semarang, Gresik, and Makassar. These warehouses ensure that aid is readily available for various regions, including Java, Sumatra, Kalimantan, and the eastern islands of Sumbawa, Maluku, Papua, and Sulawesi."},{title:"Mobilized Fleet",description:"PMI's disaster response fleet includes helicopters, ambulances, amphibious vehicles (Haglund), water tankers, and mobile blood donation units. These resources, combined with disaster command posts and water and sanitation equipment, enhance PMI's operational capacity."}]},responseSection:{title:"Weâre Always Ready When Help Is Needed",description:"Our mission is to address the immediate needs of individuals, families, and communities affected by disasters. Discover how we respond to crises, both large and small, across the nation."},tabs:{naturalDisaster:"Natural Disaster",nonNaturalDisaster:"Non-Natural Disaster",socialDisaster:"Social Disaster"},content:{naturalDisaster:{earthquakeRelief:"Earthquake Relief",volcanicEruptionRelief:"Volcanic Eruption Relief",tsunamiRelief:"Tsunami Relief",landslideRelief:"Landslide Relief",floodRelief:"Flood Relief"},nonNaturalDisaster:{fire:"Fire Response",chemical:"Chemical Hazard Response"},socialDisaster:{communitySupport:"Community Support",economicRelief:"Economic Relief"}},activities:{title:"Disaster Management Activities",content:[{title:"Prevention",description:"Efforts focused on preventing disasters through education, infrastru
180cture improvements, and community awareness programs."},{title:"Mitigation",description:"Actions aimed at reducing the impact of disasters by identifying high-risk areas and promoting safe building practices and community relocation when necessary."},{title:"Preparedness",description:"Training and preparing communities and volunteers to respond effectively to disasters, including the development of emergency plans and stockpiling necessary supplies."},{title:"Early Warning",description:"Implementing systems to provide timely warnings to communities about impending disasters, allowing for early action and evacuation."},{title:"Response",description:"Immediate actions taken during a disaster to provide emergency assistance, including search and rescue operations, medical care, and the establishment of emergency shelters."},{title:"Relief",description:"Providing essential aid such as food, shelter, and medical care to alleviate suffering and stabilize the affected population."},{title:"Recovery",description:"Efforts to restore normalcy to affected communities, including rebuilding infrastructure and providing psychological support."},{title:"Rehabilitation",description:"Long-term efforts to restore and improve the pre-disaster conditions of affected communities, focusing on social and economic stability."},{title:"Reconstruction",description:"Rebuilding and upgrading infrastructure to better withstand future disasters and improve community resilience."}]},paradigmOfMitigation:{title:"Paradigm of Mitigation",content:[{title:"Identifying Risk Areas",description:"Focusing on identifying high-risk areas and vulnerable communities to better prepare for and mitigate disaster impacts."},{title:"Structural Mitigation",description:"Constructing buildings and infrastructure designed to withstand disasters."},{title:"Behavioral Mitigation",description:"Promoting safe practices and relocation of vulnerable communities through regulations and land-use planning."}]},paradigmOfEmergencyRelief:{title:"Paradigm of Emergency Relief",content:[{title:"Focused Response During Disasters",description:"Providing immediate relief through food, shelter, and healthcare to reduce suffering and damage."},{title:"Post-Disaster Relief Goals",description:"Aiming to quickly alleviate suffering and accelerate recovery efforts."}]},pmiTask:{title:"PMIâs Task",subtitle:"Before, During and After Disasters",sections:{before:{title:"Before",tasks:[{title:"Education and Training",description:"Conducting awareness programs and training to enhance community readiness for disasters."},{title:"Volunteer Preparation",description:"Preparing volunteers at the local level to assist in disaster response."},{title:"Risk Mapping",description:"Identifying and mapping disaster-prone areas."},{title:"Infrastructure Readiness",description:"Ensuring that disaster response facilities and equipment are in place and functional."},{title:"Inter-sectoral Collaboration",description:"Strengthening partnerships with various sectors to improve disaster preparedness."}]},during:{title:"During",tasks:[{title:"Establishing Command Posts",description:"Setting up disaster command centers and mobilizing resources."},{title:"Providing Immediate Aid",description:"Delivering first aid, evacuation, health services, temporary shelter, and setting up public kitchens."},{title:"Conducting Assessments",description:"Evaluating the disaster impact and identifying the needs of affected populations."},{title:"Distributing Aid",description:"Delivering relief supplies based on assessment results."},{title:"Coordinating with Agencies",description:"Collaborating with relevant agencies to ensure a comprehensive disaster response."}]},after:{title:"After",tasks:[{title:"Recovery and Rehabilitation",description:"Restoring and rehabilitating the conditions of disaster victims and their environment."},{title:"Problem Solving and Counseling",description:"Addressing ongoing issues and providing psychological support to affected communities."},{title:"Resource Reassessment",description:"Reassessing resources and infrastru
180cture to ensure readiness for future disasters."},{title:"Evaluation and Improvement",description:"Reviewing disaster management activities to identify areas for improvement in future responses."}]}}},strategicPartnerships:{title:"Strategic Partnerships",description:"PMI collaborates with government agencies, private sectors, movement partners, and other stakeholders to enhance disaster response and recovery efforts. These partnerships are crucial for maintaining the integrity and independence of PMI while fulfilling its humanitarian mandate."},communityResilience:{title:"Commitment to Community Resilience",description:"PMI is dedicated to building community resilience to reduce the risks and impacts of disasters and diseases. Through education, training, and preparedness programs, PMI empowers communities to be better equipped in facing future challenges."}},cwe={title:"Earthquake Relief",subtitle:"Your support empowers the global Red Cross network to provide lifesaving assistance and essential resources that help communities recover and rebuild their lives.",howYourSupportHelps:{title:"How Your Support Helps",efforts:["Conduct search and rescue efforts","Provide medical care","Serve food and water","Distribute relief supplies","Build emergency shelter","Restore communications","Restore water supplies","Teach disaster preparedness","Rebuild communities"]},recent:"Recent",response:"Response",recentEarthquakeResponses:"Recent Earthquake Responses",howToContribute:{title:"How to Contribute",description:"With our secure online donation system, supporting PMI has never been easier. You can choose to make a one-time contribution or opt for a recurring monthly donation, providing continuous support to our ongoing efforts. Select from preset donation amounts or enter a custom amount that fits your budget.",subtitle:"Every rupiah you donate makes a tangible impact on the lives of those in need.",donateNow:"Donate Now"}},dwe={title:"Health & Social Services",description:"Comprehensive Care and Support for All",subtitle:"Ensuring Community Well-Being Through Comprehensive Health and Social Services",intro:"Health and social services are crucial to ensuring the well-being of individuals and communities. These services encompass efforts to prevent diseases, promote health, provide emergency medical care, and support social welfare.",commitment:"The Indonesian Red Cross (PMI) is committed to delivering these essential services to improve the quality of life for everyone.",lifelineTitle:"A Lifeline for Community Well-Being",lifelineDescription:"PMI's wide-reaching efforts to address healthcare at the community level, emergency response services in critical situations, and initiatives aimed at improving social welfare.",communityHealthServices:"Community Health Services",emergencyHealthServices:"Emergency Health Services",socialServices:"Social Services",objective:"Objective",objective1:"Cure diseases, maintain and enhance health, and prevent illnesses through health education, regular check-ups, and treatment for various conditions",objective2:"Provide immediate medical intervention ensuring that victims receive prompt medical attention to stabilize their conditions and prevent further harm.",objective3:"Enhance social well-being and improve relationships within the social environment, where material, spiritual, and social needs are met.",socialServicesKeyFunctions:{title:"Key Functions of Social Services",descriptions:"Enhancing Welfare and Community Development",functions:["Improving Community Living Conditions","Human Resource Development","Social Change Orientation","Resource Mobilization","Institutional Support"]},learnMore:"Learn More About Volunteering",visitVolunteersPage:"Visit our Volunteers Page and Sign Up to start contributing your expertise today.",skillsCanSaveLives:"Your skills can save lives and support communities in need.",j
180oinUs:"Join us in making a differenceâtogether, we can achieve more.",donateNow:"Donate Now"},uwe={title:"International Services",description:"Global Outreach for Humanitarian Impact",subtitle:"Extending Aid and Expertise Worldwide",intro:"The Indonesian Red Cross (PMI) extends its humanitarian efforts beyond national borders, offering assistance and expertise to communities around the world. Our commitment to international service is rooted in the fundamental principles of the International Red Cross and Red Crescent Movement, aiming to alleviate human suffering, protect life and health, and uphold human dignity during emergencies and disasters.",givingHopeWorldwide:{title:"Giving Hope Worldwide",scope:"The scope of our mission is vast. Millions of volunteers, in countries across the globe work to help save lives.",volunteersWorldwide:"Over 15 Million",volunteersWorldwideDescription:"volunteers worldwide",countriesWithRedCross:"192 Countries",countriesWithRedCrossDescription:"with a Red Cross or Crescent Society",peopleHelped:"1 in 65 people",peopleHelpedDescription:"around the world helped each year",yearsOfAid:"150+ Years",yearsOfAidDescription:"of aid to the most vulnerable"},internationalAid:{title:"Delivering International Aid",description:"From Latin America and Africa to Asia and Europe, the Indonesian Red Cross helps people in some of the worldâs most at-risk communities. This work is powered by the generosity of volunteers and donors.",childrenVaccinated:"Over 2 Billion ",childrenVaccinatedDescription:"children vaccinated through measles and rubella campaigns since 2001",peopleBenefiting:"More Than 200 Million",peopleBenefitingDescription:"people benefiting from Indonesian Red Cross assistance",familiesReconnected:"More than 5,500",familiesReconnectedDescription:"More than 5,500 families reconnected internationally with support"},missionInAction:{title:"Putting Our Mission Into Action",description:"By reconnecting families separated by crises, helping to rebuild communities devastated by disasters, or working alongside health organizations to eliminate global disease, the International Services of the Red Cross works every day to provide relief.",services:{respondingToDisasters:"Responding to International Disasters & Crises",eliminatingMeasles:"Eliminating Measles",buildingSaferCommunities:"Building Safer Communities",refugeeMigrationCrisis:"Refugee Migration Crisis",reconnectingFamilies:"Reconnecting Families",restoreCommunications:"Restore Communications"}}},hwe={title:"Programs",subtitle:"Empowering Communities Through Our Programs",searchPlaceholder:"Search programs",search:"Search",categories:{disasterManagement:"Disaster Management",healthAndSocialServices:"Health & Social Services"},year:"Year",period:"Period",area:"Area",beneficiary:"Beneficiary",supportPartner:"Support Partner",downloadReport:"Download Report",background:"Backgroun
180d"},pwe={title:"Careers",jobOpenings:{title:"Job Opportunities",description:"Join Our Team and Make a Difference"},categories:[{title:"Healthcare Services",description:"Opportunities in providing medical and health-related support."},{title:"Administrative",description:"Roles involving office management, coordination, and organizational tasks."},{title:"Emergency Response",description:"Positions related to immediate response and aid during emergencies."},{title:"Volunteer Coordination",description:"Roles focused on managing and supporting volunteers."},{title:"Education and Training",description:"Opportunities in providing education and training programs."}]},mwe={howToApply:"How to Apply",instructions:"Interested candidates are invited to send their resume and a cover letter outlining their qualifications and experience to [email protected] by 31 Aug 2024.",equalOpportunity:"PMI is an equal opportunity employer. We encourage applications from candidates of all backgrounds and experiences."},fwe={title:"Library",pmiLibrary:"PMI Library",description:"Discover a wide range of e-books, activity photos and videos, audios, publication documents, and KIE media",exploreOurLibrary:"Explore PMI Library",accessPhotosVideosAudiosPublicationsMediaAndEBooks:"Access Photos, Videos, Audios, Publications, Media, and E-Books",totalVisitorsToday:"Total PMI Library Visitors Today",totalVisitorsAllTime:"Total PMI Library Visitors All Time",totalDownloads:"Total PMI Library Downloads",activityPhotos:{title:"Activity Photos",searchActivities:"Search activities",capturingMoments:"Capturing Moments of Humanitarian Efforts",activityPhotosList:"{{mediaType}} List",browseCapturedMoments:"Browse through our captured moments"},activityVideos:{title:"Activity Videos",visualStories:"Visual Stories of Our Impact",searchActivities:"Search activities",activityVideosList:"{{mediaType}} List",browseCapturedMoments:"Browse through our captured moments"},kieMedia:{title:"KIE Media",educationalResources:"Educational and Informative Resources",searchKieMedia:"Search KIE Media",kieMediaList:"{{mediaType}} List",browseInformativeResources:"Browse through our informative resources"},publications:{title:"Publications",inDepthReports:"In-Depth Reports and Research",searchPublications:"Search publications",publicationsList:"{{mediaType}} List",browsePublications:"Browse through our {{mediaType}}"},audio:{title:"Audio",searchAudios:"Search audios",listenAudioCollections:"Listen to our Audio Collections",audioList:"{{mediaType}} List",browseAudioCollection:"Browse through our {{mediaType}} collection"},ebooks:{title:"e-Books",searchEbookTitle:"Search e-book title",digitalCollection:"A Digital Collection of Knowledge and Resources",ebookList:"{{mediaType}} List",browseCollections:"Browse through our {{mediaType}} collections"},table:{no:"No.",cover:"Cover",title:"Title",category:"Category",year:"Year",actions:"Action",share:"Share",mediaType:"Media Type",docType:"Doc. Type",fileSize:"File Size",format:"Format",duration:"Duration",detail:"Detail"}},gwe={title:"Annual Report",annualReportsCaseStudiesFactSheetsAndSurveyReports:"Annual Reports, Case Studies, Fact Sheets, and Survey Reports",annualReport:"Annual Report",caseStudy:"Case Study",factSheet:"Fact Sheet",surveyReport:"Survey Report",seePmiLibrary:"See PMI Library",viewReport:"View Report",watchReport:"Watch Video Report"},xwe={categories:{title:"CATEGORIES",bloodDonors:"Donor Darah",ambulanceServices:"Layanan Ambulans",pmiVolunteers:"Relawan PMI",pmiTraining:"Pelatihan PMI",pmiInternships:"Magang di PMI",fundraising:"Penggalangan Donasi"},faqList:[{title:"DONOR DARAH",questions:[{question:"Why do we need to donate blood?",answer:"Blood donation is crucial as it helps save lives by providing essential blood to patients in need, such as those undergoing surgery or with chronic conditions."},{question:"What are the requirements for donating blood?",answer:"Requirements include being in good health, meeting age and weight criteria, and not having recently undergone certain medical procedures."},{question:"What is the process for donating blood?",answer:"The process involves registration, health screening, blood collection, and a short recovery period."},{question:"How is the blood screened after donation?",answer:"Blood is tested for various infections and diseases, including HIV, Hepatitis B and C, and Syphilis, before it is used."},{question:"How long do I have to wait before donating again?",answer:"Typically, you should wait at least 56 days before donating blood again to ensure full recovery and safety."},{question:"Why shouldn't I donate blood if I'm still taking medication?",answer:"Certain medications can affect the safety and quality of the donated blood. It is important to consult with a healthcare provider before donating."},{question:"Does donating blood break the fast?",answer:"Donating blood generally does not break the fast, but it is advisable to consult with a religious authority if you have concerns."},{question:"When should I postpone donating blood?",answer:"Postpone donation if you are ill, have recently had surgery, or if you are pregnant or breastfeeding."},{question:"What should I do if I experience bruising after donating blood?",answer:"Bruising is common but should subside. Apply ice and elevate the arm. If it worsens or you have concerns, contact the blood donation center."},{question:"Why is there a cost for obtaining blood from PMI?",answer:"Costs may cover processing, testing, and handling expenses. Blood donation itself is typically free, but there may be administrative fees."},{question:"What does PMI do with blood that tests positive for HIV, Hepatitis B, Hepatitis C, and Syphilis?",answer:"Blood that tests positive for these infections is discarded and the donor is informed and referred for further testing and care."},{question:"What are the benefits of donating blood?",answer:"Benefits include helping save lives, contributing to public health, and feeling a sense of accomplishment and community involvement."},{question:"How can we check the blood stock at PMI?",answer:"You can inquire about blood stock levels by contacting PMI directly or checking their official website for updates."},{question:"How can we find the PMI blood donation schedule?",answer:"The blood donation schedule can be found on PMIâs website or by contacting their local offices."},{question:"Locations of PMI Blood Donation Units across Indonesia",answer:"Locations can be found on PMIâs website or by contacting local PMI offices for the nearest blood donation units."},{question:"What is the process for requesting blood from PMI?",answer:"The process involves submitting a request through PMIâs blood bank with details of the required blood type and quantity."},{question:"How can we organize a blood donation event at an institution?",answer:"Contact PMI to arrange logistics, schedule the event, and coordinate with their team for a successful donation drive."},{question:"What if my hemoglobin level is low?",answer:"If your hemoglobin level is low, you may
180need to improve your diet or seek medical advice before you are eligible to donate blood."},{question:"What happens if the donated blood fails the screening?",answer:"Blood that fails screening is discarded, and the donor is informed and referred for further medical testing if needed."},{question:"What should I do before donating blood?",answer:"Ensure you are well-hydrated, have eaten a healthy meal, and avoid strenuous activity before donating."}]},{title:"LAYANAN AMBULANS",questions:[{question:"What types of ambulances does PMI have?",answer:"PMI operates various types of ambulances including standard ambulances for non-emergency transport and advanced life support ambulances for emergency situations."},{question:"What is a transport and emergency ambulance?",answer:"A transport ambulance is used for non-emergency patient transfers, while an emergency ambulance is equipped for immediate medical care and emergency response."},{question:"Where can I get help with ambulance services?",answer:"You can contact PMI directly through their emergency hotline or visit the nearest PMI office for ambulance services."},{question:"What are the requirements to access ambulance services?",answer:"Requirements typically include the need for medical assistance or emergency transport, and in some cases, a referral from a medical professional."},{question:"How much does it cost to get ambulance services?",answer:"Costs can vary depending on the type of service and distance. Please contact PMI for specific pricing information."},{question:"How can I use PMI ambulance services for an event?",answer:"To use PMI ambulance services for an event, you should contact PMI well in advance to arrange for the necessary services and ensure availability."}]},{title:"RELAWAN PMI",questions:[{question:"What are the components of PMI Volunteers?",answer:"PMI Volunteers are comprised of various components including medical teams, disaster response units, and community outreach groups."},{question:"What are the requirements to become a PMI Volunteer?",answer:"Requirements include a commitment to PMIâs mission, participation in training programs, and meeting health and background criteria."},{question:"What is PMR?",answer:"PMR stands for Palang Merah Remaja, or Indonesian Red Cross Youth, which involves young volunteers participating in humanitarian activities."},{question:"What are the levels of PMR?",answer:"Levels include PMR Junior, PMR
180Senior, and PMR Leader, each with increasing responsibilities and training."},{question:"Requirements to become a PMR member",answer:"Requirements include being a student or youth with a passion for humanitarian work and completing necessary training programs."},{question:"How to register as a PMR member?",answer:"Register by contacting your local PMI office or schoolâs PMR unit and completing the required application forms."},{question:"What is KSR?",answer:"KSR stands for Korps Sukarelawan, or Volunteer Corps, which consists of university students providing emergency and disaster response services."},{question:"Requirements to become a KSR member",answer:"Requirements include being a university student, completing an application process, and attending training sessions."},{question:"How to register as a KSR member?",answer:"Register by contacting your universityâs KSR coordinator or the nearest PMI office and completing the registration process."},{question:"What is TSR?",answer:"TSR stands for Tenaga Sukarela, or Volunteer Workers, who provide specialized skills and support for PMIâs various programs."},{question:"Requirements to become a TSR member",answer:"Requirements include having specific skills or expertise, and completing PMIâs application and training procedures."},{question:"How to register as a TSR member?",answer:"Register by contacting PMI with your resume and skills details and following their application process."},{question:"What is DDS?",answer:"DDS stands for Donor Darah Sukarela, or Voluntary Blood Donor, individuals who regularly donate blood as part of PMIâs programs."}]},{title:"PMI TRAINING",questions:[{question:"What types of internal training does PMI offer?",answer:"PMI offers internal training programs including disaster response, first aid, and humanitarian aid training for its staff and volunteers."},{question:"What external training can PMI provide?",answer:"External training includes workshops and seminars on disaster management, health services, and community engagement."},{question:"What is the minimum number of participants required for PMI training?",answer:"The minimum number of participants can vary depending on the type of training but typically requires a group of at least 10 to 15 individuals."},{question:"What are the costs for participating in PMI training?",answer:"Costs may vary based on the training program and duration. Contact PMI for detailed pricing information."},{question:"Can we attend PMI training online?",answer:"Yes, PMI offers some training programs online, allowing participants to join remotely."},{question:"How do I register for PMI training?",answer:"Register by contacting PMI directly, filling out an application form, and following their registration procedures."}]},{title:"FUND RAISE",questions:[{question:"What is the legal basis for PMI to conduct fundraising?",answer:"PMI conducts fundraising based on regulations and guidelines established for non-profit organizations and charitable activities."},{question:"When can I donate to PMI?",answer:"Donations can be made at any time through PMIâs official channels, including online platforms and donation drives."},{question:"What types of donations can be given to PMI?",answer:"Donations can include money, blood, medical supplies, and other resources needed for humanitarian efforts."},{question:"How can I donate to PMI (as an individual or as a community/organization)?",answer:"Individuals and organizations can donate through PMIâs website, local offices, or by participating in fundraising events."},{question:"Can I/we use the PMI logo during fundraising activities?",answer:"Use of the PMI logo is subject to approval from PMI. Contact them for guidelines and permission."},{question:"If I have other questions or need further discussion, who should I contact?",answer:"For additional questions or discussions, contact PMI through their official communication channels or visit their local office."}]},{title:"INTERN AT PMI",questions:[{question:"How can I intern at PMI?",answer:"Apply for an internship by contacting PMI with your resume and covering letter, and follow their application process."},{question:"Are internships at PMI paid?",answer:"Internships at PMI may be unpaid or offer stipends depending on the position and program. Check with PMI for details."},{question:"What are the benefits of interning at PMI?",answer:"Benefits include gaining valuable experience in humanitarian work, networking opportunities, and developing skills relevant to your career."}]}]},ywe={title:"Donate Now",supportMessage:"Support Life-Saving Efforts Through PMI With Your Donation",description:"Your contribution helps us provide essential services to affected communities, such as disaster relief, health crisis response and many more.",alertSelectPaymentMethod:"Please select payment method first.",donationFrequency:{label:"Cho
180ose your donation nominal",options:{oneTime:"One-time Donation",scheduled:"Scheduled Donation"},oneTimeDescription:"A single donation to support PMI's current needs.",scheduledDescription:"Set up an automatic scheduled donation to sustain ongoing efforts."},donationSchedule:{label:"Select your preferred donation schedule",options:{daily:"Daily",weekly:"Weekly",monthly:"Monthly",hour:"Hour"},timeNote:"If you schedule your donation for this time, your automatic donation will be debited at the selected time the next day. However, if the next day is the 29th, 30th, or 31st, the transaction will begin on the 1st of the following month."},donationAmount:{label:"Input your donation amount",minimumNote:"The minimum donation amount for this program is Rp10.000. Please adjust your donation accordingly."},donorCategory:{label:"Donor Category",placeholder:"Select your donor category",categories:{individuals:"Individuals",corporates:"Corporates",businesses:"Businesses",organizations:"Organizations",communityGroups:"Community Groups",movementPartners:"Movement Partners"}},donationPurpose:{label:"Donation Purpose",placeholder:"Select your donation purpose",categories:{disasterRelief:"Disaster Relief",healthCrisisManagement:"Health Crisis Management",generalHumanitarianSupport:"General Humanitarian Support",pmiDevelopmentAndCampaigns:"PMI Development and Campaigns"}},receipt:{label:"Do you want to receive a receipt for your donation?",options:{yes:"Yes",no:"No"},wantReceive:"Where do you want to receive your receipt?",nameLabel:"Name on the Receipt",companyNameLabel:"Contact Person",emailLabel:"Email Address",phoneLabel:"Phone Number (WhatsApp number)"},donateFormLabel:{donationType:"Donation Type",frequency:"Frequency",date:"Date",time:"Time",donationAmount:"Donation Amount",donorType:"Donor Type",donorCategory:"Donor Category",donationPurpose:"Donation Purpose",receipt:"Receipt",nameOnReceipt:"Name on the Receipt",email:"Email",phoneNumber:"Phone Number (WhatsApp number)"},button:"Donate Now",donationConfirmation:"Donation Confirmation",reviewContributionDetails:"Review Your Contribution Details",choosePaymentMethod:"Choose Your Payment Method",securePaymentOptions:"Secure Payment Options for Your Donation",continueToPayment:"Continue to Payment",bankTransfer:"Bank Transfer",creditCard:"Credit/Debit Card",thankYouTitle:"Thank You for Your Generosity!",supportMakesDifference:"Your Support Makes a Difference",thankYouMessage:"Thank you for your generous donation! Your contribution will directly support PMIâs efforts in saving lives and providing critical services to those in need. We appreciate your kindness and commitment to making a positive impact.",receiptInfo:"If you opted to receive a receipt, youâll receive an email confirmation shortly. You can track the impact of your donation by following our latest updates on our website and social media channels.",exploreCampaignsTitle:"Explore Our Campaigns",exploreCampaignsMessage:"Interested in seeing how your contributions are making an impact? Visit our Campaigns Page to track real-time progress, review detailed reports, and stay updated on the latest developments.",privacyPolicy:"I have read and agree to the Privacy Policy regarding the collection and use of my personal data.",visitCampaignsPage:"Visit Campaigns Page"},bwe={title:"Why You Need to Donate",intro:"Your Contribution is Vital for Saving Lives and Building Resilient Communities",description:["Your donation to the Indonesian Red Cross (PMI) plays a crucial role in helping us respond to emergencies, provide essential healthcare and support vulnerable communities and make a powerful way to make a direct impact on the lives of millions in need across Indonesia.","As one of the leading non-profit humanitarian organizations in Indonesia, PMI relies on the generosity of donors like you to fund our wide range of services. Whether it's providing relief during natural disasters, offering essential medical care, or facilitating blood donations that save lives, your contribution enables PMI to reach vulnerable communities swiftly and effectively.","PMI has consistently led disaster relief efforts in Indonesia, providing swift assistance in line with its commitment to responding within 6 hours of a natural disaster.","By donating, you help ensure that resources are available for emergency relief, preparedness, and ongoing programs that promote health and well-being across the nation. Every donation counts, and with your support, PMI can continue to be a lifeline for those facing crises."],whyItMatters:"Why Your Donation Matters",disasterRelief:{title:"Disaster Relief and Emergency Re
180sponse",description:"Indonesia is highly prone to natural disasters. Your donation directly supports our rapid response efforts, ensuring that victims receive urgent medical care, shelter, food, and clean water when they need it the most."},healthCrisis:{title:"Health Crisis Management",description:"In times of health crises, such as outbreaks of disease, PMI is there to offer crucial support. Your donation helps fund medical supplies, health services, and educational campaigns aimed at preventing and controlling the spread of illnesses."},communityResilience:{title:"Community Resilience and Development",description:"Beyond immediate disaster relief, PMI is committed to building resilient communities. Your support enables us to run programs that educate and prepare communities for future disasters, reducing their vulnerability and strengthening their capacity to cope with crises."},supportGrowth:{title:"Supporting PMIâs Growth",description:"To maintain and expand our operations, PMI continually develops new programs and campaigns that address emerging needs. Your donation contributes to the development and sustainability of these vital initiatives, allowing us to serve more people, more effectively."},volunteerGuide:"How to Become a Volunteer at PMI: Guide to Making a Difference",howToContribute:{title:"How to",contribute:"Contribute",description:"With our secure online donation system, supporting PMI has never been easier. You can choose to make a one-time contribution or opt for a recurring monthly donation, providing continuous support to our ongoing efforts. Select from preset donation amounts or enter a custom amount that fits your budget.",subtitle:"Every rupiah you donate makes a tangible impact on the lives of those in need.",cta:"Donate Now"}},vwe={campaignsTitle:"Donation Campaign",campaignsSubtitle:"Select the donation campaign you want to support",searchPlaceholder:"Search campaigns...",raised:"Raised",goal:"Goal",seeAll:"See All",disasterRelief:"Disaster Relief",healthCrisisManagement:"Health Crisis Management",generalHumanitarianSupport:"General Humanitarian Support",pmiDevelopmentCampaigns:"PMI Development and Campaigns",others:"Others",background:"Backgroun
180d",campaignDescription:"Campaign Description",fundAllocationPlan:"Fund Allocation Plan",donateNow:"Donate Now",donationImpact:"Donation Impact",viewDetail:"View Detail",started:"started {{time}} ago",raisedFrom:"raised from {{amount}}",donors:"donors",gallery:"Gallery",ongoing:"Ongoing",completed:"Completed"},wwe={title:"Goods Donation",contributeItems:"Contribute Essential Items to Support Our Humanitarian Efforts",nonMonetaryDonations:"Non-monetary donations in the form of goods are invaluable to our operations. By donating essential items, you directly support the Indonesian Red Cross (PMI) in delivering aid where itâs needed most. Whether itâs food, hygiene kits, or other necessary goods, your contribution makes a significant impact. Below, youâll find the steps to donate, important terms and conditions, and an online donation form to simplify the process.",howToDonate:"How to Donate",contactPmi:"Contact PMI",directDelivery:"Direct Delivery",prepareDocumentation:"Prepare Documentation",contactInstructions:"Reach out to your nearest PMI office or contact our WhatsApp donation line for assistance.",deliveryInstructions:"You can deliver your donation directly to the nearest PMI headquarters or warehouse after confirming with us.",documentationInstructions:"Prepare a Goods Donation Handover Report (the format can be downloaded here).",donationConfirmation:"Goods Donation Confirmation",thankYouTitle:"Thank You for Your Generous Donation!",thankYouMessage:"Dear [Donor Name / Company],",thankYouBody:"Thank you for your generous donation to the Indonesian Red Cross. Your support is invaluable in helping us provide essential care and assistance to those in need. Together, we are making a significant impact on the lives of many.",whatHappensNextTitle:"What happens next?",whatHappensNextBody:"Your donation will be processed and distributed to the areas where it is most needed. You will receive updates on how your contribution is being used and the impact it is having.",form:{title:"Goods Donation Form",donorName:"Donor/Company Name",donorNamePlaceholder:"Enter donor/company
180name",typeOfGoods:"Type of Goods",typeOfGoodsPlaceholder:"Enter type of goods",notes:"Notes",notesPlaceholder:"Enter notes",quantity:"Quantity",quantityPlaceholder:"Enter quantity of goods",uploadPhoto:"Upload Photo of Donated Goods",uploadedFiles:"Uploaded files",dragAndDrop:"Drag & Drop File",or:"or",browse:"Browse",fileSizeLimit:"Up to 5MB | File types: JPG, JPEG, PNG",contactDetails:"Contact Details",name:"Name",emailAddress:"Email Address",phoneNumber:"Phone Number",termsAndConditions:"Terms & Conditions",donationRestrictions:"Donation Restrictions",donationRestrictionsText:"We do not accept donations from companies involved in the production of alcohol, tobacco, or any environmentally harmful products.",shelfLifeRequirements:"Shelf Life Requirements",shelfLifeRequirementsText:"Food, beverages, and hygiene kits must have a minimum shelf life of 6 months.",termsAccepted:"I have read and agree to the Terms & Conditions and Privacy Policy.",submitButton:"Donate Now",confirmDonation:"Confirm Donation"}},kwe={title:"Privacy Policy",intro:"At PMI (Indonesian Red Cross), we value your privacy and are committed to protecting your personal information. This Privacy Policy explains how we collect, use, and protect the personal data you provide through our website, specifically in forms such as Name, Company Name, Phone Number, Email, and other details. By submitting your information to us, you consent to the terms outlined in this policy.",sections:[{title:"Information We Collect",content:"When you fill out forms on our website, we may collect the following information:",list:["Name: To identify you and address your inquiries appropriately.","Company Name: To assist with partnerships or organizational inquiries.","Phone Number: For direct communication regarding your submission or inquiries.","Email Address: To send you updates, responses, and important notifications. ","Other Information: Any additional information you voluntarily provide in the form (e.g., notes or remarks)."]},{title:"How We Use Your Information",content:"We use the information collected for the following purposes:",list:["To communicate with you regarding your submission or inquiry.","To process any donations, services, or requests youâve submitted.","To improve our website functionality and services.","To comply with any legal obligations and protect our rights."]},{title:"Data Protection and Security",content:"PMI takes your privacy seriously and implements appropriate security measures to safeguard your personal information against unauthorized access, alteration, or disclosure. We use encryption and other security technologies to protect the integrity of your data."},{title:"Sharing of Information",content:"Your personal data will not be sold, rented, or shared with third parties, except where required by law or necessary to fulfill the purpose of your submission (e.g., collaborating with relevant partners). All third-party partners adhere to our privacy standards to ensure the security and confidentiality of your data."},{title:"Retention of Information",content:"We will retain your personal information for as long as necessary to fulfill the purposes for which it was collected, or as required by applicable laws and regulations."},{title:"Your Rights",content:"You have the right to:",list:["Access the personal information we hold about you.","Request corrections to any inaccuracies.","Withdraw your consent for us to use your data, where applicable.","Request the deletion of your personal data, subject to any legal requirements."]},{title:"Changes to This Privacy Policy",content:"We reserve the right to modify this Privacy Policy at any time. Any changes will be posted on this page, and your continued use of the website following the changes indicates your acceptance of the revised policy."},{title:"Contact Us",content:"If you have any questions or concerns regarding this Privacy Policy, please contact us at: [Insert Contact Email/Phone Number]."}]},Swe={title:"Terms and Conditions",organization:"Indonesian Red Cross",sections:[{title:"Introduction",content:"Thank y
180ou for considering a donation to the Indonesian Red Cross (PMI). By using the Goods Donation form on our website, you agree to the following terms and conditions. These guidelines ensure that your donation is processed effectively and supports PMIâs mission to help those in need."},{title:"Eligibility to Donate",content:"By submitting a goods donation, you confirm that:",list:["You are legally permitted to donate the items.","The goods are owned by you and are free of any third-party claims.","You are at least 18 years old or have parental/guardian consent if under 18."]},{title:"Condition of Donated Goods",content:"All donated goods must be in good, usable condition. PMI reserves the right to refuse any items that:",list:["Are damaged, broken, or non-functional.","Pose a health or safety hazard.","Do not meet the current needs of our beneficiaries."]},{title:"Donation Process",content:"After submitting the donation form:",list:["PMI will review your submission to ensure it meets our criteria.","PMI may contact you for further details about the donated goods or to arrange collection or drop-off.","PMI is not responsible for transportation costs unless otherwise agreed."]},{title:"Use of Donated Goods",content:"All donated items will be used solely to further PMIâs humanitarian efforts, which may include distribution to beneficiaries, use in PMI operations, or sale to raise funds for our programs. PMI reserves the right to allocate or dispose of the goods as deemed necessary based on current needs and logistical considerations."},{title:"Privacy and Data Protection",content:"By submitting the form, you consent to the collection and use of your personal information as outlined in PMIâs Privacy Policy. Your data will be used only for the purpose of processing your donation and will not be shared with third parties without your consent."},{title:"Acknowledgment of Donation",content:"PMI may provide an acknowledgment of your donation, but this acknowledgment does not serve as a receipt for tax purposes. For tax deduction claims, please consult your local tax authorities and ensure compliance with relevant regulations."},{title:"Modification of Terms",content:"PMI reserves the right to update these terms and conditions at any time. Changes will be effective immediately upon posting to the website. Continued use of the Goods Donation form signifies your acceptance of any changes."},{title:"Contact Information",content:"If you have any questions about these terms or the donation process, please contact us at:",list:["[insert email]","[insert phone number]"]}]},Cwe={lendYourTalents:"Lend Your Talents, Save Lives",empowerMission:"Empower Our Mission with Your Expertise",volunteeringIntro:"At PMI, we believe that every skill and service can save lives. By donating your expertiseâwhether in healthcare, logistics, education, or technical supportâyou directly contribute to our mission. Your professional knowledge and hands-on assistance enable us to respond effectively to emergencies and ongoing needs.",volunteeringImpact:"Volunteering at PMI is more than just lending a handâit's about making a lasting difference. Our volunteers are the backbone of our operations, providing vital support during emergencies, training communities, and delivering essential services. Whether you're a medical professional, teacher, engineer, or simply passionate about helping others, thereâs a place for you at PMI.",volunteersBackground:"Our volunteers come from all walks of life, united by a shared commitment to humanitarian work. They are students, professionals, retirees, and everyday heroes who bring their unique skills to the table. Together, they form a powerful force that drives our mission forward.",volunteeringInAction:"Volunteering in Action",learnMoreVolunteering:"Learn More About Volunteering",visitVolunteersPageSignUp:"Visit our Volunteers Page and Sign Up to start contributing your expertise today. Your skills can save lives and support communities in need. Join us in making a differenceâ together, we can achieve more.",visitVolunteersPage:"Join Now"},jwe={title:"Partnerships",marketingToolsCatalog:"Marketing Tools / Program Catalog",exploreMarketingTools:"Explore Our Comprehensive Marketing Tools & Program Offer
180ings",disasterResponseProgram:{title:"Disaster Response Program",programs:"Disaster Management Programs",importance:"The Importance of Our Disaster Response Program",description:"The Disaster Response Program is a vital initiative under our partnerships that focuses on providing immediate assistance to communities affected by natural disasters. Through collaborative efforts with local governments, NGOs, and volunteers, this program ensures rapid deployment of resources, including medical aid, food supplies, and shelter, to those in urgent need. Our dedicated teams work tirelessly to assess the situation, coordinate relief efforts, and implement effective strategies that address the immediate challenges faced by affected populations. By fostering strong partnerships, we enhance our capacity to respond swiftly and efficiently, helping communities recover and rebuild in the aftermath of disasters."},disasterPreparednessProgram:{title:"Disaster Preparedness Program",programs:"Disaster Management Programs",importance:"Building Resilience",description:"The Disaster Preparedness Program is a proactive initiative aimed at equipping communities with essential skills and knowledge to effectively respond to natural disasters. Through a combination of training workshops, educational resources, and hands-on simulations, we empower individuals and local organizations to understand the risks they face and develop actionable response plans. This program fosters collaboration between community members and local authorities, ensuring that everyone is prepared and knows their role in times of crisis. By emphasizing preparedness, we aim to minimize the impact of disasters, protect lives, and enhance the resilience of communities across Indonesia."},disasterRecovery:{title:"Disaster Recovery",programs:"Disaster Management Programs",importance:"Rebuilding Lives",description:"The Disaster Recovery Program is dedicated to supporting communities in their journey to restore and rebuild after a disaster strikes. Our approach focuses on providing immediate relief and long-term assistance, ensuring that affected individuals have access to essential resources such as housing, healthcare, and financial support. We work closely with local governments and organizations to facilitate a comprehensive recovery process, which includes not only restoring physical infrastructure but also addressing the emotional and psychological needs of those impacted. By fostering community engagement and resilience, this program helps families regain stability, empowering them to rebuild their lives and thrive in the aftermath of adversity."},emergencyHealth:{title:"Emergency Health",programs:"Health Programs",importance:"A Rapid Response to Health Crises",description:"The Emergency Health program is designed to provide immediate medical assistance during disasters and health emergencies. Our trained health professionals swiftly deploy to affected areas, delivering essential medical care, triage services, and life-saving treatments to those in need. By collaborating with local health authorities and organizations, we ensure that vulnerable populations receive prompt attention and access to vital health services. This program not only addresses immediate health concerns but also lays the groundwork for long-term recovery and resilience, reinforcing the health systems within affected communities."},socialServices:{title:"Social Services",programs:"Health Programs",importance:"Supporting the Well-Being of Communities",description:"The Social Services program focuses on enhancing the overall well-being of individuals and families in need. By offering a range of support services, including counseling, nutrition assistance, and advocacy, we address the social determinants of health that affect vulnerable populations. Our dedicated team works to identify the unique challenges faced by communities, providing tailored solutions that empower individuals to improve their quality of life. Through collaboration with local organizations and stakeholders, we strive to create a supportive environment where everyone can access the resources they need to thrive."},publicHealth:{title:"Public Health",programs:"Health Programs",importance:"Promoting Health and Preventing Disease",description:"The Public Health program aims to improve c
180ommunity health outcomes through preventive measures, education, and awareness initiatives. By focusing on critical areas such as vaccination campaigns, sanitation, and health education, we work to reduce the incidence of communicable diseases and promote healthy lifestyles. Our approach emphasizes community engagement, ensuring that individuals understand the importance of preventive health practices and access to necessary health services. Through partnerships with local health authorities and organizations, we strive to build healthier communities and enhance the overall well-being of the populations we serve."},waterSanitationHygiene:{title:"Water, Sanitation, and Hygiene (WASH) Services",importance:"Ensuring Access to WASH Services",description:"The Water, Sanitation, and Hygiene (WASH) Services program is dedicated to promoting health and well-being by ensuring access to clean water, adequate sanitation, and proper hygiene practices in communities across Indonesia. Recognizing the critical role that WASH plays in preventing disease and enhancing quality of life, we work tirelessly to implement sustainable solutions, such as constructing clean water supply systems, improving sanitation facilities, and conducting hygiene education campaigns. Through collaboration with local communities and partners, we empower individuals to adopt healthier behaviors, ultimately reducing the risk of waterborne diseases and fostering a cleaner, healthier environment for all."},contactForm:{title:"Contact Form",companyName:"Company Name",companyNamePlaceholder:"Enter company name",notes:"Partnership Goals",notesPlaceholder:"Enter partnership goals",contactDetails:"Contact Details",name:"Name",email:"Email Address",phoneNumber:"Phone Number",termsAccepted:"I have read and agree to the Privacy Policy regarding the collection and use of my personal data.",submit:"Submit"},submissionSuccess:{title:"Submission Successful!",message:"Your submission has been successfully received.",appreciation:"We appreciate your interest and commitment to making a difference. Our team will review your information and get back to you shortly. Together, we can create a positive impact and support those in need. Thank you for your contribution!",contactUs:"Have Questions? Contact Us!",immediateContact:"If you have any immediate questions or concerns, please donât hesitate to contact us directly by our email [email protected] or message to +6221 7992325."},hallOfFame:{platinum:{title:"Platinum",description:"Donations of IDR 5 billion and above",detail:"Platinum donors are celebrated for their outstanding dedication to philanthropy, playing a pivotal role in empowering PMI to deliver life-saving services on a grand scale.",logos:["LOGOIPSUM","logoipsum","FACTORY","COMPANY"]},gold:{title:"Gold",description:"Donations between IDR 1 billion and IDR 5 billion",detail:"Gold-level donors are honored for their exceptional support in transforming lives and enabling PMI to expand its humanitarian efforts.",logos:["LOGOIPSUM","logoipsum","FACTORY","COMPANY"]},silver:{title:"Silver",description:"Donations between IDR 500 million and IDR 1 billion",detail:"Silver-level donors are recognized for their substantial contributions in greatly enhancing PMIâs ability to provide essential services and care.",logos:["LOGOIPSUM","logoipsum","FACTORY","COMPANY"]},bronze:{title:"Bronze",description:"Donations between IDR 100 million and IDR 500 million",detail:"Bronze-level donors are celebrated for their generosity in making a meaningful impact on their communities.",logos:["LOGOIPSUM","logoipsum","FACTORY","COMPANY"]},thankYou:{title:"Thank You for Your Extraordinary Support",description:"At the Indonesian Red Cross (PMI), our mission to provide life-saving services and disaster relief would not be possible without the generosity of donors like you. Your contributions not only help us respond swiftly in times of crisis but also strengthen communities through preparedness, health, and social programs.",gratitude:"We extend our deepest gratitude to each and every donor featured in our Hall of Fame. Your selfless support allows us to continue our humanitarian efforts, bringing hope and care to those in need. Together, we are making a lasting difference.",conclusion:"Thank y
180ou for being a vital part of our journey to a brighter, safer future for all."}}},Twe={title:"Donation Impact",description:"Thank you to the donors who have made a meaningful impact on humanity.This Donation Impact showcases success stories and testimonials from various beneficiaries, highlighting the positive effects of the program. The format for presenting the donation impact can be in the form of an infographic or a success story narrative.",successStories:"Success Stories",inspiringStories:"Inspiring Stories of Resilience and Hope",infographic:"Infographic",snapshot:"A Snapshot of Your Donations at Work"},Pwe={certifiedPersonnels:"Certified Personnels",accessors:"Accessors",courses:"Occupation",topics:"Topics",overview:"Overview",keyPoints:"Key Points",whoShouldTake:"Who Should Take This Certification?",competencyUnits:"Competency Units",certificationSchemes:"Certification Schemas",competency:{table:{code:"Code of Competency Unit",unit:"Competency Unit"}},emergencyResponse:{title:"Emergency Response",description:"Develop critical skills for handling emergency situations with confidence and precision",competencyUnits:"View Competency Units",certificationSchemes:{list:["Manager for Disaster Response and Health Crisis Operation","Junior Manager for Disaster Response and Health Crisis Operation","Senior Coordinator for Impact Rapid Assessment of Disaster and Health Crisis","Senior Operator for Impact Rapid Assessment of Disasters and Health Crisis","Senior Coordinator for Search, Rescue and Evacuation","Senior Executor for Search, Rescue and Evacuation","Manager for Emergency Shelter Management","Senior Coordinator for Emergency Shelter Management","Junior Manager for Relief Distribution","Senior Coordinator for Relief Distribution"]},overview:{description:"Emergency response is critical in minimizing the loss of life and mitigating the impact of disasters and health crises. Whether facing natural disasters, pandemics, or large-scale emergencies, effective response strategies require swift coordination and expert knowledge. From organizing search-and-rescue operations to managing evacuation efforts, professionals must act quickly and decisively to safeguard affected communities. Mastering disaster management techniques ensures that responders are equipped to handle unpredictable situations with precision, preventing further escalation of harm.",nextDescription:"A successful emergency response extends beyond immediate rescue efforts to include the management of emergency shelters and efficient aid distribution. Providing temporary housing for displaced individuals and ensuring access to essential resources such as food, medical supplies, and hygiene kits are key components of post-crisis recovery. Rapid impact assessments help identify the scope of damage, allowing organizations to prioritize their actions and deploy targeted interventions. With the right skills and preparedness, emergency responders play a pivotal role in restoring stability and hope to affected populations."},keyPoints:[{title:"Preparedness and Planning",description:"Effective emergency response begins with proper preparedness. Governments, humanitarian organizations, and local communities must have plans in place before disaster strikes. This includes establishing communication networks, assembling emergency response teams, training personnel, and stockpiling necessary supplies like food, water, medical equipment, and shelter materials."},{title:"Rapid Assessment and Coordination",description:"Once a disaster occurs, the first step is to assess the extent of the damage and the needs of affected populations. This requires collaboration between local authorities, national agencies, and international organizations. A rapid needs assessment helps identify the most urgent requirements, such as search and rescue operations, medical care, food, water, and shelter."},{title:"Search and Rescue Operations",description:"In the immediate aftermath of a disaster, search and rescue (SAR) teams are deployed to locate and assist survivors. These teams use specialized equipment, such as sniffer dogs, drones, and thermal imaging, to locate victims trapped under rubble or in hard-to-reach areas."},{title:"Provision of Basic Necessities",description:"One of the main priorities in the early hours of an emergency is to provide food, water, medical aid, and temporary shelter. Mobile medical units, emergency food supplies, and clean drinking water are essential to prevent the spread of disease and ensure the survival of affected populations."},{title:"Medical Care and Public Health",description:"Health response teams provide emergency medical services, including triage, surgical care, and psychological support. The risk of infectious diseases often rises in the wake of disasters, and medical teams also focus on controlling outbreaks and providing vaccines, particularly in crowded shelters."},{title:"Shelter and Housing",description:"Providing temporary shelters or setting up refugee camps is essential for displaced populations. Emergency shelters should be designed to offer protection from the elements while maintaining privacy and security. The use of tents, tarps, and mobile homes is common, but long-term recovery efforts often focus on rebuilding permanent housing."},{title:"Logistics and Supply Chain Management",description:"Efficient logistics are critical for ensuring that aid reaches those in need as quickly as possible. This includes managing transportation routes, coordinating delivery of supplies, and ensuring that distribution points are accessible. Challenges often arise due to damaged infrastru
180cture, which can delay the arrival of critical resources."},{title:"Communication",description:"Effective communication is crucial during a disaster. Not only does it help coordinate response efforts, but it also provides critical information to affected communities. Public information campaigns, emergency broadcasting systems, and social media are used to disseminate warnings, safety instructions, and updates."},{title:"Collaboration and Coordination",description:"Disaster response involves the coordination of various stakeholders, including local governments, national agencies, international organizations, non-governmental organizations (NGOs), and the private sector. The ability to work together effectively is vital to ensure that resources are used efficiently, and there is no duplication of efforts."},{title:"Security and Protection",description:"In many cases, disasters can lead to social unrest or security concerns, such as looting or violence in shelters. Ensuring the safety of affected populations, response teams, and aid workers is paramount. Security personnel and law enforcement may be required to maintain order."}],certificationAudience:[{title:"First Responders and Emergency Personnel",description:"Police, firefighters, paramedics, and others involved in frontline emergency operations."},{title:"Healthcare Workers and Humanitarian Aid Staff",description:"Doctors, nurses, relief workers, and volunteers participating in disaster relief missions."},{title:"Community Leaders and Disaster Risk Managers",description:"Individuals responsible for organizing local disaster preparedness and emergency responses."},{title:"NGO and Government Officials",description:"Personnel working in disaster management agencies, emergency shelters, or public safety departments."}]},disasterRiskReduction:{title:"Disaster Risk Reduction",description:"A comprehensive approach to identifying, assessing, and reducing disaster risks, aiming to build resilient communities.",overview:{description:"Disaster Risk Reduction (DRR) involves proactive measures to prevent or mitigate the effects of natural and man-made hazards, minimizing their impact on communities, economies, and ecosystems. It also emphasizes building resilience to cope with and recover from disasters effectively.",nextDescription:"By fostering collaboration among governments, organizations, and communities, and committing to long-term risk management, DRR aims to reduce disaster impacts and prepare societies for future challenges."},certificationSchemes:{list:["Senior Supervisor of Community-Based Risk Assessment for Disaster and Health Crisis","Junior Expert of Community-Based Risk Assessment for Disaster and Health Crisis","Senior Operator of Community-Based Risk Assessment for Disaster and Health Crisis","Senior Supervisor for Community-Based Resilient Village Toward Disaster and Health Crisis","Junior Expert for Community-Based Resilient Village Toward Disaster and Health Crisis","Senior Operator for Community-Based Resilient Village Toward Disaster and Health Crisis","Senior Supervisor for Disaster Risk Reduction Promotion","Junior Expert for Disaster Risk Reduction Promotion","Senior Operator for Disaster Risk Reduction Promotion","Junior Manager for Resilient Community Empowerment Toward Disaster and Health Crisis","Senior Coordinator for Resilient Community Empowerment Toward Disaster and Health Crisis","Senior Operator for Resilient Community Empowerment Toward Disaster and Health Crisis","Junior Manager for Disaster Safer Education Empowerment","Senior Coordinator for Disaster Safer Education Empowerment","Senior Operator for Disaster Safer Education Empowerment"]},keyPoints:[{title:"Risk Assessment",description:"Identifying potential hazards and evaluating risks to people, property, infrastructure, and the environment. This involves analyzing vulnerability and understanding the likelihood and severity of disasters like earthquakes, floods, and industrial accidents."},{title:"Prevention and Mitigation",description:"Implementing measures to prevent disasters or reduce their impact. Prevention includes policies like land use planning, while mitigation involves actions like strengthening infrastru
180cture and establishing early warning systems."},{title:"Preparedness",description:"Ensuring readiness to respond effectively to disasters through emergency response plans, training, simulations, and early warning systems."},{title:"Response and Recovery",description:"Providing immediate relief, such as search and rescue, medical aid, and food, followed by rebuilding and restoring communities while addressing psychological impacts and improving future resilience."},{title:"Building Resilience",description:"Enhancing the ability of individuals and systems to adapt to and recover from disasters. This includes strengthening infrastructure, diversifying livelihoods, improving education, and fostering community engagement."}],certificationAudience:[{title:"Disaster Risk Reduction Personnel",description:"Professionals specializing in reducing disaster risks and promoting community resilience."},{title:"Community Leaders and Disaster Risk Managers",description:"Individuals responsible for organizing local disaster preparedness and emergency responses."},{title:"NGO and Government Officials",description:"Personnel working in disaster management agencies, public safety departments, or emergency shelters."}]},healthcareServices:{title:"Healthcare Services",description:"A broad range of services designed to maintain, improve, and restore the health and well-being of individuals and communities.",overview:{description:"Healthcare services encompass a variety of activities aimed at preventing illness, treating medical conditions, managing chronic diseases, and promoting overall health. Delivered by trained professionals in both public and private sectors, these services are essential for maintaining and improving the health of individuals and communities.",nextDescription:"Certification in healthcare services enhances the quality, safety, and efficiency of healthcare systems, ensuring continuous improvement, regulatory compliance, and high-quality care for patients."},certificationSchemes:{list:["Senior Coordinator for Health Promotion","Senior Operator for Health Promotion","Senior Coordinator for First Aid","Senior Operator for First Aid","Senior Coordinator for Ambulance Services","Senior Operator of Ambulance Services","Senior Supervisor for Occupational Health and Safety","Operator for Occupational Health and Safety","Senior Coordinator of Psycho-social Support","Senior Operator for Psycho-social Support"]},keyPoints:[{title:"Emergency Care",description:"Emergency care services provide immediate treatment for life-threatening conditions, such as heart attacks, strokes, trauma, and accidents. These services are offered in emergency departments, urgent care centers, and through ambulance services."},{title:"Public Health Services",description:"Public health services focus on promoting wellness, preventing diseases, and controlling health risks. Programs include vaccination campaigns, health education, disease surveillance, environmental health efforts, and initiatives to reduce health disparities."},{title:"Workforce",description:"A skilled healthcare workforce, including doctors, nurses, technicians, and support staff, is vital for delivering high-quality healthcare. Ongoing training and professional development are essential for keeping healthcare workers up-to-date with medical advances and patient care practices."},{title:"Quality Assurance",description:"Quality assurance ensures healthcare services meet standards and guidelines that improve health outcomes, ensuring patient care is effective, efficient, and safe."},{title:"Patient Safety",description:"Patient safety certification ensures healthcare providers follow best practices to minimize the risk of harm to patients, improving patient care and reducing medical errors."},{title:"Regulatory Compliance",description:"Certification ensures healthcare providers comply with local, national, and international regulations, as well as accreditation requirements, to maintain high standards in patient care."},{title:"Credibility and Trust",description:"Certification provides patients with the assurance that healthcare professionals and facilities are competent, trustworthy, and dedicated to delivering high-quality care."}],certificationAudience:[{title:"First Aid Responders and Emergency Personnel",description:"Police, firefighters, paramedics, and other emergency personnel involved in frontline emergency care and operations."},{title:"Healthcare Workers and Humanitarian Aid Staff",description:"Doctors, nurses, relief workers, and volunteers who participate in disaster relief efforts and healthcare missions."}]},bloodServices:{title:"Blood Services",description:"Blood donor services are essential to ensuring the availability of safe, life-saving blood and blood products for patients in need of transfusions.",overview:{description:"Blood donor services manage the collection, testing, processing, storage, and distribution of blood. These services play a crucial role in treating medical conditions like trauma, surgery, cancer, anemia, and chronic diseases. By supporting blood donations, these services meet the growing demand for blood supplies, ensuring that life-saving blood products are available when needed.",nextDescription:"Certification in blood services ensures the safety, quality, and ethical handling of blood donations, maintaining a reliable blood supply and protecting both donors and recipients."},certificationSchemes:{list:["Manager for Blood Management","Junior Supervisor of Voluntary Blood Donor Recruitment","Junior Technician for Blood Distribution","Junior Technician for Pre Blood Transfusion Examination","Junior Technician for Blood Tapping","Junior Technician for Blood Treatment","Junior Technician for Quality Control","Junior Technician of Blood Test"]},keyPoints:[{title:"Donor Eligibility and Screening",description:"Certified blood donor organizations must implement comprehensive screening processes, including health asse
180ssments, medical history reviews, and testing for infectious diseases to ensure donor and recipient safety."},{title:"Blood Collection Practices",description:"Certification ensures that blood donation is carried out in a sterile, safe, and hygienic environment, following proper identification protocols, collection methods, and the use of disposable, sterile equipment."},{title:"Testing and Blood Processing",description:"Donated blood is rigorously tested for common infections, such as HIV, hepatitis B and C, and syphilis. Certified services also follow guidelines for blood typing, crossmatching, and separating blood into components like plasma, platelets, and red blood cells."},{title:"Blood Storage and Distribution",description:"Certified organizations store and transport blood products under strict temperature and environmental standards to maintain potency and safety, ensuring timely delivery and reducing risks."},{title:"Recordkeeping and Traceability",description:"Detailed records are maintained for all donations, tests, and blood products, ensuring traceability and providing a history of how blood products were used in case of adverse events."},{title:"Quality Assurance and Safety Monitoring",description:"Ongoing quality control measures are implemented to ensure the effectiveness of blood collection, testing, and processing. Regular audits and external inspections verify compliance with safety and quality standards."},{title:"Donor Education and Support",description:"Certified organizations provide education and support to donors, ensuring they are well-informed about the donation process, its risks, and aftercare. Donor safety and comfort are prioritized to minimize adverse reactions."}],certificationAudience:[{title:"Healthcare Workers in Blood Donation",description:"Doctors, nurses, relief workers, and volunteers involved in blood donation efforts, ensuring blood donation processes are safe, efficient, and ethical."}]},jobTraining:{title:"Job Training",description:"Job training helps individuals develop the specific skills and knowledge needed to perform tasks effectively, with trainers playing a key role in bridging the gap between theoretical knowledge and practical application.",overview:{description:"Job training involves designing, delivering, and assessing training programs to equip employees with the skills to meet performance expectations. Trainers work across various industries like manufacturing, healthcare, technology, and customer service. Job training certification validates expertise in these areas and enhances career prospects, improving workforce productivity.",nextDescription:"Certification ensures that job trainers possess the skills necessary to effectively transfer knowledge, fostering skill development and improving both personal and organizational success."},certificationSchemes:{list:["Master Instructor","Senior Instructor","Instructor","Trainer"]},keyPoints:[{title:"Instructional Design",description:"Certified job trainers must be skilled in designing training materials, including lesson plans, handouts, and assessment tools, to meet the needs of both the organization and the learners."},{title:"Communication Skills",description:"Effective communication is essential. Trainers must explain complex concepts in simple terms, provide clear instructions, and engage learners through discussions, demonstrations, and other interactive methods."},{title:"Classroom Management",description:"Trainers need to manage in-person and virtual classrooms, creating a positive learning environment, handling diverse learner needs, and ensuring training sessions run smoothly."},{title:"Assessment and Evaluation",description:"Trainers must assess learnersâ progress, identify areas for improvement, provide feedback, and evaluate the effectiveness of training programs using performance metrics and surveys."},{title:"Adaptability",description:"Certified trainers must adapt training methods to accommodate different learning styles, technological tools, and evolving industry requirements, ensuring that training remains relevant."},{title:"Industry Expertise",description:"Trainers must possess deep knowledge of the subject matter they teach, whether it's technical skills, customer service, or soft skills, ensuring they can train employees for success in specific roles or industries."}],certificationAudience:[{title:"Trainers and Lecturers",description:"Trainers, instructors, and lecturers who design and deliver training programs across various industries, ensuring learners acquire the skills and knowledge needed for success in their careers."}]}},Ewe={title:"Testimonials",description:"Read firsthand experiences from participants who have completed our certification programs",testimonialsList:[{name:"Rini Susanti",certification:"Certified First Aid Responder",quote:'"The training I received from PMI was exceptional. Not only did I gain valuable life-saving skills, but the instructors were professional, patient, and truly passionate about helping others. Now, I feel confident in my ability to respond in emergencie
180s and support my community."'},{name:"Andi Setiawan",certification:"Disaster Management Trainee",quote:`"PMI's Disaster Management certification was a game-changer for me. The hands-on experience combined with in-depth knowledge on crisis handling has prepared me to act swiftly during disasters. I highly recommend this training to anyone looking to make a real difference."`},{name:"Maya Lestari",certification:"Volunteer and Health Educator",quote:`"Thanks to PMI's comprehensive training, I can now effectively educate others on health and hygiene practices. The certification not only boosted my skills but also helped me contribute more meaningfully as a volunteer. The impact of their programs is truly transformative."`}],lspDocumentation:{title:"Documentation",documents:["Mastering First Aid: A Step-by-Step Guide to PMI Certification","Disaster Management Training: Key Skills for Rapid Response","Health & Social Services: Your Complete Certification Journey"]},moreVideos:"See more videos",empoweringMessage:"Empowering You to Make a Difference",empoweringDescription:"At PMI, we believe in empowering individuals with the skills and knowledge to make a real difference in their communities. The experiences shared by our certified trainees and volunteers are a testament to the quality and impact of our training programs.",empoweringDescriptionTwo:"Whether youâre looking to gain life-saving skills, prepare for disaster management, or contribute to health education, our courses offer the tools you need to succeed. Join us in making a lasting impactâone certification at a time."},Awe={title:"Certification News",description:"Stay updated with the latest news and developments in the certification landscape.",searchPlaceholder:"Search certification news",recentNews:"Recent News"},Nwe={title:"Training Programs",description:"PMI provides highly applicable training programs to improve the capabilities and competencies of both individuals and organizations/companies in several areas, including First Aid, Disaster Emergency Response, Disaster Preparedness, Emergency Water and Sanitation, Logistics Assistance Distribution, Volunteerism Dissemination, Health Management, Training Management, and Volunteer Management.",individualTraining:"Individual Training",individualDescription:"Empower Yourself with Essential Skills for a Safer Tomorrow",partnerTraining:"Partner Training",partnerDescription:"Strengthen Your Team, Elevate Your Organizationâs Preparedness",startLearning:"Start Learning Today",pmiTraining:"PMI Education and Training",startLearningToday:"Start Learning Today",pmiKnowledgeAndInnovationCenter:"PMI Knowledge and Innovation Center",dutiesAndFunctions:"Duties & Functions of the Training Agency & Training Center",trainingAndEducationCenter:"Training & Education Center",trainingCenterLocations:"Locations of Training & Education Centers",universitiesAndLpk:"Universities & LPK",humanis:"Humanis",checkSchedule:"Check Our Schedule",ongoingTrainings:"Ongoing Trainings",participantTestimonials:"Participant Testimonials",trainingImpactDescription:"Our training programs have empowered countless individuals and organizations. Read the experiences of participants who have gained valuable skills and knowledge to respond to emergencies, improve their leadership, and enhance community preparedness.",leadershipGrowth:"Leadership Growth",confidenceInFirstAid:"Confidence in First Aid",whyChoose:"Why Choose Our Training?",impactTitle:"Empowering You for Real-World Impact",instructors:"Professional Instructors",certification:"Certification",curriculum:"Updated Curriculum",instructorsDescription:"Learn from experienced trainers with extensive backgrounds in their respective fields.",certificationDescription:"Receive recognized certifications that validate your skills and knowledge.",curriculumDescription:"Our training programs use the latest materials and methodologies.",tables:{no:"No",trainingName:"Training Name",category:"Category",schedule:"Schedule",location:"Location",status:"Status",ongoing:"Ongoing",action:"Action",register:"Register"},empoweringKnowledge:{title:"Empowering Individuals and Organizations Through Knowledge",description:"At the Indonesian Red Cross (PMI), we believe that equipping individuals and organizations with the right skills can save lives, foster resilience, and build stronger communities. Our training programs are designed to provide comprehensive knowledge and hands-on expertise in critical areas such as first aid, disaster response, and healthcare management.",subDescription:"Whether you're a professional looking to expand your expertise or an individual eager to make a difference, our courses offer something for everyone.",ctaTitle:"Make a Difference with PMI Training",ctaDescription:"By participating in our training programs, youâre not only enhancing your skills but also contributing to a safer, more prepared society. These courses are an investment in yourself, your organization, and
180your community.",ctaCallToAction:"Join us today and be a part of a movement dedicated to saving lives and fostering resilience."},ourClients:{title:"Our Clients",description:"Trusted by leading organizations"},realStories:{title:"Real Stories. Real Impact.",description:"Our training programs have empowered countless individuals and organizations. Read the experiences of participants who have gained valuable skills and knowledge to respond to emergencies, improve their leadership, and enhance community preparedness.",testimonialsTitle:"Participant Testimonials"}},Mwe={individualTraining:{title:"Individual Training",description:"Our individual training programs are designed for those looking to enhance their personal skills and knowledge. Whether you are part of the PMI team or a member of the general public, we offer tailored courses to meet your needs."},partnerTraining:{title:"Partner Training",description:"Our partner training programs are tailored for organizations, companies, and community groups seeking to enhance their team's skills in health services, emergency response, and organizational development."},trainingTypes:{title:"Training Types",internalTraining:{title:"Internal Training",description:"Internal training is exclusively for PMI staff, aimed at enhancing skills and competencies for better service delivery."},publicTraining:{title:"Training for the General Public",description:"Our training programs are open to anyone looking to learn skills in first aid, health education & disaster preparedness."},partnerTraining:{title:"Partner Training",description:"Tailored for organizations, companies, and community groups seeking to enhance their team's skills"}},whyTakeTraining:{title:"Why Take This Training?",points:["Improve service quality and response efficiency.","Respond effectively in emergency situations.","Stay updated with the latest industry practices.","Gain knowledge that can be applied in daily life or volunteer activities."]},trainingOutcomes:{title:"Training Outcomes",points:{gainTitle:"Gain Knowledge",gainDescription:"Earn valuable knowledge and experience with the hands-on training.",developTitle:"Develop Skills",developDescription:"Develop life-saving skills and health education.",competenciesTitle:"Competencies",competenciesDescription:"Enhanced competencies in both service and management skills.",certificateOfCompletion:"Certificate of Completion",certificateOfCompletionDescription:"Certification upon successful completion of the training."}},classHoursNotes:{title:"Class Hours and Important Notes",totalHours:"Total Hours",totalHoursDescription:"20-40 hours, depending on the course.",requirements:"Requirements",requirementsDescription:"Open to all participants aged 18 and above.",requirementInfo:"Prior experience may be required for certain courses.",notes:"Notes",certificateOfCompletionDescription:"Some training will be mandatory for all PMI staff."}},Dwe={trainingForTheGeneralPublic:{title:"Training for the General Public",description:"Our training programs are open to anyone looking to learn skills in first aid, health education, and disaster preparedness. Whether you're an individual wanting to gain essential life-saving knowledge or an organization seeking to enhance your team's capabilities, our courses provide comprehensive instruction in a practical and engaging format. With expert trainers and hands-on experiences, participants will gain the confidence and competence needed to respond effectively in emergency situations. By fostering a deeper understanding of these critical areas, we aim to empower individuals and communities to be better prepared for unexpected challenges."},partnerTraining:{title:"Partner Training",description:"Tailored for organizations, companies, and community groups seeking to enhance their team's skills, our training programs are designed to meet the specific needs and goals of each group. We offer customized courses that address relevant challenges, improve team collaboration, and ensure that employees or members are well-equipped to handle crises and emergency situations. Through targeted learning sessions, interactive workshops, and scenario-based training, organizations can build a more resilient and capable workforce, enhancing their overall preparedness and response capabilities in the face of disasters or health emergencie
180s."},internalTraining:{title:"Internal Training",description:"Internal training is exclusively for PMI staff, aimed at enhancing skills and competencies for better service delivery. These training programs focus on developing expertise in areas such as disaster response, first aid, health services, and community engagement. By investing in the continuous professional growth of our team, we ensure that our staff is equipped with the knowledge and tools necessary to respond effectively in critical situations, uphold the values of PMI, and deliver high-quality services to those in need."},tables:{no:"No.",trainingName:"Training Name",effectiveLearningHours:"Effective Learning Hours (JPE)",description:"Description"},effectiveLearningHour:"1 JPE (Effective Learning Hour) = 45 minutes"},_we={title:"Competency Test Center",description:"Find official locations where you can take competency tests to validate your skills.",searchPlaceholder:"Search Competency Test Center",selectLocation:"Select a province, city, or regency to view available competency test center",listTitle:"Competency Test Center List",listDescription:"Detailed information about competency test center in your selected area",pmiPca:{title:"Palang Merah Indonesia Professional Certification Agency (PMI-PCA)",description:"The Professional Certification Agency of Palang Merah Indonesia (PMI-PCA) is a leading organization committed to enhancing the professional competence and standards of humanitarian and emergency response professionals across Indonesia."},tables:{no:"No",location:"Location",name:"Test Center Name",address:"Address",status:"Status",detail:"Detail"},assistance:{title:"Need Assistance?",description:"For more information or assistance, please contact your nearest Competency Test Center (TUK) or LSP PMI through one of the channels below."},certificationStats:{numberOfSchemes:"Number of Certification Schemas",numberOfPersonnel:"Number of Certified Personnel",numberOfAssessors:"Number of Active Assessors",male:"Male",female:"Female"}},Iwe={aboutUs:"About Us",description:"The Professional Certification Agency of Palang Merah Indonesia (PMI-PCA) is a leading organization committed to enhancing the professional competence and standards of humanitarian and emergency response professionals across Indonesia. Established under the license of Badan N
180asional Sertifikasi Profesi (BNSP) number BNSP-LSP-2086-ID on March 7th 2022, PMI-PCA offers comprehensive certification programs designed to improve the skills, knowledge, and performance of individuals working in the fields of emergency response, disaster risk reduction, healthcare services, blood donor services, and job training.",trustedAuthority:"As a trusted authority in professional certification, we ensure that our programs align with international best practices, national standards, and PMIâs mission to deliver high-quality humanitarian services. Our goal is to promote excellence and ensure that professionals are equipped with the competencies needed to respond effectively to emergencies and crises.",vision:"Our Vision",visionDescription:"Highly QUALIFIED, COMPETENT, and CHARACTER-DRIVEN Human Resources (HR) in humanitarian services refer to the fundamental principles of the International Red Cross and Red Crescent Movement and the Core Humanitarian Standard.",mission:"Our Mission",missionValues:{developStandards:"Developing high-quality and reliable competency standards.",conductTests:"Conducting competency tests for PMI (Indonesian Red Cross) personnel and other humanitarian workers.",humanitarianStandards:"Developing competency standards based on international humanitarian principles."},coreValues:"Core Values",values:{excellence:"Excellence: We uphold the highest standards of professionalism and strive for continuous improvement.",integrity:"Integrity: We act with transparency, accountability, and respect for human dignity in all our certification programs.",empowerment:"Empowerment: We empower professionals with the knowledge and skills to make a positive impact during emergencies and disasters.",collaboration:"Collaboration: We work in close partnership with national and international organizations to ensure our certifications are meaningful and impactful.",service:"Service: We are dedicated to supporting the development of humanitarian professionals, helping them better serve communities in need."},certificationPrograms:{title:"Certification Programs",description:"PMI-PCA offers a wide range of certification programs tailored to various sectors within the humanitarian field, including but not limited to:",sectors:{disasterManagement:"Disaster Management & Response",disasterRiskReduction:"Disaster Risk Reduction",healthcareServices:"Healthcare Services",bloodDonorServices:"Blood Donor Services",jobTraining:"Job Training"},details:{disasterManagement:"Recognizing expertise in managing humanitarian relief operations, resource mobilization, and the distribution of aid, response coordination, and crisis management.",disasterRiskReduction:"Certification for professionals in community-based disaster preparedness, prevention and mitigation.",healthcareServices:"Certifying individuals in first aid, emergency medical services, and professionals providing community health services in times of crisis, including disease control and health outreach programs.",bloodDonorServices:"Specialized certifications for professionals in blood donation, tapping blood, blood test, pre blood transfusion examination, and blood distribution.",jobTraining:"Certifications for trainers/instructors and facilitators in all sectors."}},whyChoose:{title:"Why Choose PMI-PCA?",trustedAuthority:"Trusted Authority",expertAssessors:"Expert Assessors",comprehensiveSupport:"Comprehensive Support",trustedAuthorityDescription:"Under license of Badan N
180asional Sertifikasi Profesi (BNSP), we adhere to the BNSP guidelines and ensure that our programs are of the highest standard.",expertAssessorsDescription:"Our certification programs are delivered by highly experienced professionals with extensive knowledge of their field.",comprehensiveSupportDescription:"We provide candidates with continuous support throughout their certification journey, ensuring they gain the practical skills needed to excel in their field."},ourImpact:{title:"Our Impact",description1:"Since its inception, PMI-PCA has certified hundreds of professionals across Indonesia, contributing to the strengthening of the countryâs disaster response infrastructure. Our graduates play a pivotal role in saving lives, providing essential services, and supporting communities during natural disasters, mitigation, public health crises, and other humanitarian emergencies.",description2:"Through our certification programs, PMI-PCA is creating a pool of qualified, capable professionals who are ready to make a difference when it matters most."},contactUs:{title:"Contact Us",agencyName:"Palang Merah Indonesia Professional Certification Agency",address:"Jl. Arumsari RT 11 RW 02 Kel. Sambiroto Kec. Tembalang Kota Semarang Provinsi Jawa Tengah 50276",website:"www.pmi.or.id"}},Rwe={title:"PMI Knowledge and Innovation Center",description:"The PMI Knowledge and Innovation Center is a premier hub designed to drive the development of
180knowledge, technology, and innovative solutions in the field of humanitarian work. Through collaboration with experts, educational institutions, and strategic partners, we provide various resources and training to strengthen individual and organizational capacities. Our focus includes disaster management, healthcare services, and community development, aiming to create data-driven and technological solutions to address future challenges.",objective:"The PMI Knowledge and Innovation Center aims to be a catalyst for change by introducing new ideas relevant to humanitarian needs. Here, research, technology development, and training programs are designed to deliver tangible impacts for communities. With a collaborative approach, we continuously improve best practices in emergency response, health education, and community empowerment, while fostering sustainable innovations to create more effective and efficient solutions.",visit:"Visit the PMI Knowledge and Innovation Center"},Owe={trainingAgencyDutiesAndFunctions:"Duties & Functions of the Training Agency",trainingAgencyDescription:"Based on the Indonesian Red Cross Organizational Regulation No. 01/PO/PP PMI/III/2022, concerning the Red Cross Education and Training Agency and the Indonesian Red Cross (PMI) Red Cross Education and Training Center, the Red Cross Education and Training Agency, hereinafter referred to as Badiklat PMI, is a Technical Implementation Unit of the PMI Central Board that organizes guidance, management of education and training at the national level. Badiklat PMI is tasked as an official PMI institution that controls the quality of education and training programs at the national level, develops cooperation with PMI's external partners both at the national and international levels, and has a function as a center for certification of PMI human resource competencies/companies/institutions/institutions, a center for developing training methods and PMI training curricula and a center for accreditation of PMI Training Centers throughout Indonesia, as well as being tasked with carrying out trainings of national and international scope.Translated with DeepL.com (free version)",trainingCenterDutiesAndFunctions:"Duties & Functions of the Training Center",trainingCenterDescription:"The PMI Training Center is tasked with implementing education and training activities at the Provincial/District/City level, developing cooperation with PMI external partners at the Provincial/District/City level, and has a function as a certification center for PMI human resources/companies/institutions at the regional level."},Lwe={title:"Training Centers & Education Locations",subtitle:"Find Your Nearest Training Centers",centers:{badanDiklatPMI:"Badan Diklat PMI",pusdiklatPMI:"Pusdiklat PMI"},facilities:{title:"Facilities",description:"Diklat UTD Pusat PMI is a professional training center designed to enhance the competencies of healthcare personnel and volunteers in blood transfusion services. This facility provides a comfortable and modern environment to support learning and best practices in healthcare."}},Fwe={title:"Universities & Vocational Training Institutions (LPK)",description:"PMI collaborates with universities and Vocational Training Institutions (LPK) to support the development of education, research, and training in humanitarian fields and vocational skills. Partnerships with universities include organizing training programs, seminars, joint research, and community service initiatives that empower students and academics as agents of change. Meanwhile, partnerships with LPK focus on providing job training aimed at enhancing skills and employment opportunities, creating tangible positive impacts for the community.",establishedYear:"Year Established",address:"Address",phone:"Phone",fieldsOfStudy:"Fields of Study",visitWebsite:"Visit Website"},Bwe={title:"Humanist",whyHumanistIsImportant:"Why is Humanism Important in Humanitarian Efforts?",whyHumanistIsImportantDescription:"The humanist approach places people at the center of every humanitarian effort and action. At PMI, values such as empathy, respect for dignity, and solidarity are the foundation of providing aid to those in need. By focusing on the needs of individuals and communities, PMI ensures that every service offered is not only practical but also addresses the emotional and social aspects of the beneficiaries.",pmiCommitmentToHumanistPrinciples:"PMI's Commitment to Upholding Humanist Principles",pmiCommitmentToHumanistPrinciplesDescription:"Through various programs and services, PMI strives to deliver solutions rooted in humanist principles. This is reflected in how we respond to disasters, provide education, and build community capacity. By deeply listening to and understanding the needs of communities, PMI creates more meaningful and sustainable impacts on their lives.",visitHumanistWebsite:"Visit the Humanist Website"},$we={title:"Training Registration Form",description:"Fill out the form below to register for our training programs and enhance your skills in humanitarian services.",f
180ields:{training:"Training",trainingName:"Training Name",category:"Category",schedule:"Schedule",location:"Location",name:"Name",namePlaceholder:"Insert name",email:"Email",emailPlaceholder:"Insert email",phone:"Phone Number (WA)",phonePlaceholder:"Insert WhatsApp phone number",chooseCategory:"Choose category",internal:"Internal",external:"External",origin:"Asal",chooseOrigin:"Choose asal PMI",remarkPlaceholder:"Remarks",privacyPolicy:"I have read and agree to the Privacy Policy regarding the collection and use of my personal data.",register:"Register"}},Hwe={title:"Registration Success!",message:"Your registration has been successfully submitted.",appreciation:"We appreciate your willingness to join our mission and make a positive impact in our community.",whatsNext:"Whatâs Next?",sections:{reviewProcess:"Review Process",contact:"Contact",training:"Training"},details:{review:"Our team will review your application and verify the provided information.",emailConfirmation:"You will receive an email confirmation shortly. Please check your inbox (and spam/junk folder) for further instructions.",approval:"Once your application is approved, youâll be ready to join the training at the scheduled location and time."}},zwe={welcome:Jve,description:Qve,search:Zve,view:e0e,donate:t0e,readMore:n0e,loadMore:i0e,learnMore:r0e,seeDetail:s0e,viewAll:a0e,donations:o0e,getInvolved:l0e,joinText1:c0e,refresh:d0e,categories:u0e,pagination:h0e,members:p0e,register:m0e,joinNow:f0e,year:g0e,date:x0e,day:y0e,hour:b0e,abstract:v0e,phone:w0e,pleaseSelect:k0e,viewed:S0e,back:C0e,updates:j0e,all:T0e,showAll:P0e,share:E0e,via:A0e,or:N0e,download:M0e,copyLink:D0e,successCopy:_0e,errorCopy:I0e,selectOption:R0e,noData:O0e,error:L0e,helpSection:F0e,week:B0e,months:$0e,validation:H0e,footer:z0e,home:V0e,contactUs:U0e,bloodStockInfo:W0e,location:G0e,donorInformation:q0e,faq:K0e,goDonor:Y0e,pressRelease:X0e,articles:J0e,socialMedia:Q0e,volunteerStories:Z0e,volunteerForeign:ewe,volunteer:twe,registerVolunteer:nwe,registerSuccess:iwe,fundamentalPrinciples:rwe,visionMission:swe,organizationStructure:awe,history:owe,disasterManagement:lwe,earthquakeRelief:cwe,healthSocialServices:dwe,internationalServices:uwe,programs:hwe,careers:pwe,jobDetails:mwe,library:fwe,publications:gwe,faqLibrary:xwe,donateNow:ywe,whyDonate:bwe,monetaryCampaigns:vwe,goodsDonation:wwe,privacyPolicy:kwe,termsAndConditions:Swe,skillsServices:Cwe,partnerships:jwe,donationImpact:Twe,certifiedArea:Pwe,testimonials:Ewe,certificationNews:Awe,trainingPrograms:Nwe,trainingProgramType:Mwe,trainingTypeDetail
180:Dwe,competencyTestCentre:_we,pca:Iwe,pmiKnowledgeAndInnovationCenter:Rwe,dutiesAndFunctions:Owe,trainingCenters:Lwe,universitiesAndLPK:Fwe,humanist:Bwe,trainingRegistrationForm:$we,registrationSuccess:Hwe},Vwe="PALANG MERAH INDONESIA – PROFESSIONAL-CHARACTER-MOVING WITH THE COMMUNITY",Uwe="PALANG MERAH INDONESIA | HELP WITH ALL YOUR HEART",Wwe="Your generosity saves lives. Every contribution counts.",Gwe={title:Vwe,description:Uwe,tagline:Wwe},qwe="{{count}} pcs",Kwe="{{count}} people",Ywe={refreshData:"Refresh Data",latestUpdate:"Latest Update",location:"LOCATION:",headquarters:"Headquarters",national:"National",province:"Province",chooseOption:"Choose option",search:"Search...",city:"City",subdistrict:"Subdistrict",chooseOptionCity:"Choose option",warehouseLocation:"Warehouse Location",chooseOptionAll:"All"},Xwe={title:"Stock Logistics",babyKit:"Baby Kit",hygieneKit:"Hygiene Kit",familyKit:"Family Kit",tarpaulin:"Tarpaulin",mattress:"Mattress",blanket:"Blanket",raincoat:"Raincoat",bodyBag:"Body Bag",mosquitoNet:"Mosquito Net",kitchenKit:"Kitchen Kit",sarong:"Sarong",medicalMask:"Medical Mask",redVest:"Red Vest",schoolKit:"School Kit"},Jwe={title:"Distribution Data",totalItemValue:"Total Item Value",openStockValue:"Open Stock Value",incomingItemValue:"Incoming Item Value",mutationInValue:"Mutation In Value",mutationOutValue:"Mutation Out Value",totalOutgoingWeightKg:"Total Outgoing Weight (kg)",category:"Category",warehouseLocation:"Warehouse Location",warehouseValue:"Warehouse Value",placeDelivery:"Location Delivery",aidValue:"Aid Value",totalWeight:"Total Weight",top5Items:"Top 5 Items",productName:"Product Name",itemDelivery2024:"Item Delivery (2024)",itemDelivery:"Item Delivery",itemDeliveryWithoutYear:"Item Delivery",nonFoodAid:"Bantuan Non Food",equipmentAid:"Peralatan Bantuan",personalEquipment:"Personal Equipment",donationValue:"Donation Value",theresNoDataToShow:"There's no data to show",total_item_value:"Total Item Value",open_stock_value:"Open Stock Value",incoming_item_value:"Incoming Item Value",outcoming_item_value:"Outcoming Item Value",mutation_in_value:"Mutation In Value",mutation_out_value:"Mutation Out Value",donation_value:"Donation Value",outcoming_weight:"Total Outgoing Weight (kg)",distribution_weight:"Total Distribution Weight (kg)"},Qwe={title:"Disaster Response Assets",helicopter:"Helicopter",ambulance:"Ambulance",openBackTruck:"Open Back Truck (4 Wheels)",doubleCabin4WD:"Double Cabin / 4WD (4 Wheels)",waterTankTruck:"Water Tank Truck",gunnerTruck:"Gunner Truck",cargoTruck:"Cargo Truck",threeWheeler:"Three Wheeler",motorcycleFirstResponder:"Motorcycle First Responder",boat:"Boat",hagglund:"Hagglund",drone:"Drone",heavyEquipment:"Other Heavy Equipment",fieldCommunication:"Field Communication Equipment",mobileKitchen:"Mobile Kitchen",ppe:"APD",shelterAndEquipment:"Shelter and Equipment",medicalEquipment:"Medical Equipment",generatorLighting:"Generator & Lighting",fieldEquipment:"Field Equipment"},Zwe={title:"PMI HR Expertise",doctor:"Doctor",firstAid:"First Aid",housing:"Housing",psychosocial:"Psychosocial",nurse:"Nurse",pharmacist:"Pharmacist",waterAndSanitation:"Water and Sanitation",logisticsAndDistribution:"Logistics and Distribution",midwife:"Midwife",familyReconnection:"Family Reconnection",youthHealth:"Youth Health",otherExpertise:"Other Expertise"},eke={stock:"Stock",asset:"Asset",hr:"HR Skills"},tke={quantity:qwe,people:Kwe,filter:Ywe,stockLogistics:Xwe,dataDistribution:Jwe,disasterResponseAssets:Qwe,hrsSkills:Zwe,dashboard:eke},nke="Home",ike="Contact Us",rke="Donation",ske="Blood Donation",ake="Training & Certification",oke="Volunteer",lke="Join Volunteer",cke="News",dke="About Us",uke="Donations",hke="General Donations",pke="Program Donations",mke="Goods Donations",fke="How to Donate",gke="Blood Stock Info",xke="Locations",yke="Donor Data Info",bke="FAQ",vke="Certification Area",wke="Emergency Response",kke="Competency Test Center",Ske="PMI PCA",Cke="Disaster Risk Reduction",jke="Certification News",Tke="Certification Schemas",Pke="Healthcare Services",Eke="Testimonials",Ake="Blood Services",Nke="Job Training",Mke="Training",Dke="Training Programs",_ke="Individual Training",Ike="Partner Training",Rke="Internal Training",Oke="Training for the General Public",Lke="PMI Knowledge and Innovation Center",Fke="Duties & Functions of the Training Agency",Bke="Locations of Training & Education Centers",$ke="Universities & LPK",Hke="Humanist",zke="Training Registration Form",Vke="Clients",Uke="Training & Certification",Wke="Professional Certification Bodies",Gke="Knowledge & Innovation Center",qke="IFRC",Kke="e-Learning (humanis)",Yke="Agenda",Xke="Volunteers",Jke="Volunteer Stories",Qke="Foreign Volunteer",Zke="Foreign Volunteer Confirmation",e1e="Press Releases",t1e="Articles",n1e="Social Media",i1e="Services",r1e="Disaster Management",s1e="Earthquake Relief",a1e="Health & Social Services",o1e="International Services",l1e="Programs",c1e="Library",d1e="PMI Library",u1e="Annual Report",h1e="About Us",p1e="7 Principles of the Movement",m1e="Vision & Mission",f1e="Organization Structure",g1e="Governance",x1e="History",y1e="Careers",b1e="Job Opportunities",v1e="Go Donor App",w1e="Monetary Donations",k1e="Why Donate",S1e="Donate Now",C1e="Donation Confirmation",j1e="Goods Donation Confirmation",T1e="Payment",P1e="Thank You",E1e="Donation Campaigns",A1e="Membership",N1e="Non-Monetary Donations",M1e="Goods Donation",D1e="Skills / Services",_1e="Partnerships",I1e="Marketing Tools / Program Catalog",R1e="Disaster Management Programs",O1e="Disaster Response Program",L1e="Disaster Preparedness Program",F1e="Disaster Recovery",B1e="Disaster Preparedness Programs",$1e="Health Programs",H1e="Emergency Health",z1e="Social Services",V1e="Public Health",U1e="Water, Sanitation & Hygiene Services",W1e="Hall of Fame",G1e="Form Submission Confirmation",q1e="Donation Impact",K1e="Where Your Donations Go",Y1e="Stock",X1e="Data Distribution - Logistic",J1e="Data Distribution - Asset",Q1e="PMI Human Resource Skills",Z1e="Main Content",eSe="This is the main content area. Add your content here.",tSe="Privacy Policy",nSe="Terms and Conditions",iSe={home:nke,contactUs:ike,donation:rke,bloodDonation:ske,trainingAndCerification:ake,volunteer:oke,joinVolunteer:lke,news:cke,aboutUs:dke,donations:uke,generalDonations:hke,programDonations:pke,goodsDonations:mke,howToDonate:fke,bloodStockInfo:gke,locations:xke,donorDataInfo:yke,faq:bke,certificationArea:vke,emergencyResponse:wke,competencyTestCentre:kke,pca:Ske,disasterRiskReduction:Cke,certificationNews:jke,certificationSchemes:Tke,healthcareServices:Pke,testimonials:Eke,bloodServices:Ake,jobTraining:Nke,training:Mke,trainingPrograms:Dke,individualTraining:_ke,partnerTraining:Ike,internalTraining:Rke,trainingForTheGeneralPublic:Oke,pmiKnowledgeAndInnovationCenter:Lke,dutiesAndFunctions:Fke,trainingCenterLocations:Bke,universitiesAndLpk:$ke,humanis:Hke,trainingRegistrationForm:zke,clients:Vke,trainingCertification:Uke,professionalCertificationBodies:Wke,knowledgeInnovationCenter:Gke,ifrc:qke,eLearningHumanis:Kke,agenda:Yke,volunteers:Xke,volunteerStories:Jke,volunteerForeign:Qke,volunteerForeignConfirmation:Zke,pressReleases:e1e,articles:t1e,socialMedia:n1e,services:i1e,disasterManagement:r1e,earthquakeRelief:s1e,healthSocialServices:a1e,internationalServices:o1e,programs:l1e,library:c1e,pmiLibrary:d1e,publications:u1e,aboutUsSection:h1e,movementPrinciples:p1e,visionMission:m1e,organizationStructure:f1e,governance:g1e,history:x1e,careers:y1e,jobOpenings:b1e,goDonorApp:v1e,monetaryDonations:w1e,whyDonate:k1e,donateNow:S1e,donationConfirmation:C1e,goodsDonationConfirmation:j1e,payment:T1e,thankYou:P1e,campaigns:E1e,membership:A1e,nonMonetaryDonations:N1e,goodsDonation:M1e,skillsServices:D1e,partnerships:_1e,marketingToolsProgramCatalog:I1e,disasterManagementPrograms:R1e,disasterResponseProgram:O1e,disasterPreparednessProgram:L1e,disasterRecovery:F1e,disasterPreparednessPrograms:B1e,healthPrograms:$1e,emergencyHealth:H1e,socialServices:z1e,publicHealth:V1e,waterSanitationHygiene:U1e,hallOfFame:W1e,formSubmissionConfirmation:G1e,donationImpact:q1e,whereYourDonationsGo:K1e,stock:Y1e,dataDistribution:X1e,disasterResponseAssets:J1e,pmiHumanResourceSkills:Q1e,mainContent:Z1e,contentDescription:eSe,privacyPolicy:tSe,termsAndConditions:nSe},rSe="Welcome",sSe="This is your React app with i18n support.",aSe="cari",oSe="lihat",lSe="donasi",cSe="Selengkapnya",dSe="Muat Lebih",uSe="Pelajari lebih lanjut",hSe="lihat detail",pSe="lihat semua",mSe="donasi",fSe="terlibat",gSe="Bergabunglah dengan kami dalam membuat perbedaan dan mendukung misi kami untuk memberdayakan masyarakat melalui layanan dan dukungan penting.",xSe="Segarkan",ySe="Kategori",bSe="Menampilkan {{start}} hingga {{end}} dari {{total}} entri",vSe="anggota",wSe="pendaftaran",kSe="gabung sekarang",SSe="tahun",CSe="tanggal",jSe="hari",TSe="jam",PSe="Abstrak",ESe="Telepon",ASe="Silahakan pilih",NSe="{{date}} | Dilihat {{count}} kali",MSe="Kembali",DSe="Pembaruan",_Se="Semua",ISe="Tampilkan semua",RSe="Bagikan",OSe="melalui",LSe="Atau",FSe="Unduh",BSe="Salin Tautan",$Se="Tautan berhasil di salin!",HSe="Gagal menyalin tautan.",zSe="Pilih Opsi",VSe="Tidak ada data yang tersedia",USe={notFound:"Tidak Ditemukan",notExists:"Maaf, halaman yang anda cari tidak ada.",unexpectedOccured:"Maaf, telah terjadi kesalahan tak terduga.",goBack:"Kembali ke halaman awal"},WSe={title:"Butuh Bantuan Sekarang?",description:"Jika anda membutuhkan bantuan segera, silakan hubungi Pusat Palang Merah setempat",contactUs:"HUBUNGI KAMI"},GSe={sunday:"Minggu",monday:"Senin",tuesday:"Selasa",wednesday:"Rabu",thursday:"Kamis",friday:"Jumat",saturday:"Sabtu"},qSe={january:"Januari",february:"Februari",march:"Maret",april:"April",may:"Mei",june:"Juni",july:"Juli",august:"Agustus",september:"September",october:"Oktober",november:"November",december:"Desember"},KSe={required:"Kolom ini wajib diisi.",requiredChecked:"Kolom ini wajib dicentang."},YSe={contactUs:"Kontak Kami",followUs:"Ikuti sosial media kami",pmiHq:"Markas Pusat PMI"},XSe={title:"Bersama, kita dapat membuat perubahan",subTitle:"Bergabunglah dengan kami dalam misi kami untuk memberikan bantuan dan harapan yang menyelamatkan jiwa bagi mereka yang membutuhkan.",offers:{title:"Bersama untuk Kemanusiaan",subTitle:"Berkontribusi untuk perubahan melalui Donor Darah, Relawan, dan Pendidikan",cards:[{title:"Donor Darah",subTitle:"Donor darah dan selamatkan nyawa!",description:"Kontribusi anda dapat membuat perbedaan signifikan dalam hidup seseorang. Bergabunglah dengan kegiatan donor darah kami dan jadilah pahlawan hari ini."},{title:"Relawan",subTitle:"Bantu komunitas anda, jadilah relawan hari ini!",description:"Relawan dan dukung komunitas anda. Waktu dan keterampilan anda dapat membantu kami mencapai misi kami. Daftar sekarang untuk membuat dampak yang berarti."},{title:"Pelatihan",subTitle:"Tingkatkan keterampilan anda dengan pelatihan kami!",description:"Belajar dan berkembang dengan program kami. Pelajari cara berkontribusi secara efektif dan mendukung tujuan kami. Daftar sekarang dan jadilah bagian dari perubahan."}]},latestNews:"Berita Terkini",activities:"Aktivitas",publications:"Publikasi",infografis:"Infografis",ourGrowingComunity:"Komunitas Kami yang Terus Berkembang",visitorInsights:"Pengunjung",totalVisitorsToday:"Total Pengunjung Hari Ini",totalVisitorsAllTime:"Total Pengunjung Sepanjang Waktu",totalDownloads:"Total Unduhan"},JSe={branchOffice:"Kantor Cabang PMI",reachOut:"Hubungi Kantor PMI Terdekat untuk Bantuan",selectCity:"Pilih Kota"},QSe={title:"Informasi Stok Darah",subTitle:"Ketersediaan Stok Darah Real-Time",byArea:"Stok Darah Berdasarkan Area",selectCity:"Pilih kota atau k
180abupaten anda untuk melihat informasi stok darah secara detail",placeholderCity:"Tipe atau pilih kota dan tempat tinggal",availability:"Ketersediaan Stok Darah",disclaimer:"Jumlah stok darah dapat berubah sewaktu-waktu. Untuk informasi stok darah terbaru, harap hubungi Unit Transfusi Darah (UTD) terkait."},ZSe={title:"Lokasi",titleArea:"Cari Pusat Donor Darah",subTitle:"Temukan Pusat Donor Darah Terdekat anda",selectCity:"Pilih provinsi, kota, atau kabupaten untuk melihat pusat donor darah yang tersedia",bloodDonorList:"Daftar Pusat Donor Darah",bloodDonorDetail:"Informasi lengkap tentang pusat donor darah di wilayah pilihan anda",needAssistance:"Butuh Bantuan?",forMoreInfo:"Untuk informasi atau bantuan lebih lanjut, silakan menghubungi Unit Transfusi Darah (UTD) terdekat"},eCe={title:"Informasi Donor",description:"Akses profil anda dan riwayat donor darah dengan memasukkan detail anda",fields:{nik:{label:"NIK",placeholder:"Masukkan nomor NIK anda"},donorId:{label:"ID Donor",placeholder:"Masukkan ID donor anda"},phoneNumber:{label:"Nomor Telepon",placeholder:"Masukkan nomor telepon anda"}},data:{noInformation:"Tidak Ada Informasi Donor yang Ditemukan",forgiveInformation:"Maaf, kami tidak dapat menemukan informasi donor untuk tanda pengenal yang diberikan. Silakan periksa nomor ID dan coba lagi.Jika anda terus mengalami masalah, hubungi tim dukungan kami untuk mendapatkan bantuan."},history:{title:"Riwayat Donor Darah",description:"Tinjau catatan donor anda sebelumnya"},missingEntries:{label:"Catatan yang Hilang?",description:"Untuk informasi lebih lanjut atau bantuan, silakan hubungi Unit Transfusi Darah (UTD) terdekat"}}
180,tCe={title:"Pertanyaan yang Sering Diajukan",description:"Temukan Jawaban atas Pertanyaan Paling Umum anda Tentang Donor Darah",categories:{donor:"Donor Darah",cost:"Biaya",requirements:"Persyaratan",platelets:"Trombosit",benefits:"Keuntungan"},questions:{q1:"Mengapa harus bayar saat kita butuh darah dari PMI?",q2:"Mengapa kita perlu donor darah?",q3:"Kebutuhan yang besar",q4:"Pemeriksaan kesehatan gratis",q5:"Tidak menyakitkan",q6:"Kenapa ketika membutuhkan darah prosesnya lama?",q7:"Apa syarat-syarat untuk mendonorkan darah?",q8:"Apa yang harus kita persiapkan sebelum donor?",q9:"Apakah dengan donor darah dapat menyehatkan?",q10:"Jangan menyumbangkan darah jika:",q11:"Kapan harus menunda untuk menyumbangkan darah?",q12:"Apakah donor trombosit Apheresis?",q13:"Apa yang disebut trombosit (platelet)?",q14:"Siapa yang memerlukan transfusi trombosit?",q15:"Adakah persyaratan khusus untuk menjadi donor trombosit apheresis?",q16:"Apakah keuntungan bagi pendonor trombosit apheresis?",q17:"Bagaimana teknik donor trombosit berlangsung?",q18:"Apakah keuntungan bagi pasien penerima trombosit apheresis?"},answers:{a1:"Penjelasan terkait biaya yang diperlukan saat membutuhkan darah dari PMI.",a2:"Ada kebutuhan besar untuk donor darah.",a3:"Setiap delapan detik, ada satu orang yang membutuhkan transfusi darah di Indonesia.",a4:"Sebelum mendonorkan darah, petugas akan memeriksa suhu tubuh, denyut nadi, tekanan darah, dan kadar hemoglobin anda.",a5:"Ya, anda akan merasa sakit, tetapi rasa sakit itu minimal dan akan hilang dengan cepat.",a6:"Penjelasan terkait alasan proses pengambilan darah yang memakan waktu.",a7:"Syarat-syarat yang harus dipenuhi untuk mendonorkan darah.",a8:"Informasi mengenai persiapan yang perlu dilakukan sebelum donor darah.",a9:"Penjelasan terkait manfaat kesehatan dari mendonorkan darah.",a10:"Situasi dan kondisi di mana lebih baik tidak mendonorkan darah.",a11:"Waktu yang tepat untuk menunda donor darah dan alasannya.",a12:"Penjelasan mengenai donor trombosit Apheresis.",a13:"Informasi tentang apa itu trombosit.",a14:"Informasi tentang siapa saja yang memerlukan transfusi trombosit.",a15:"Persyaratan khusus untuk menjadi donor trombosit apheresis.",a16:"Manfaat bagi pendonor trombosit apheresis.",a17:"Penjelasan tentang bagaimana teknik donor trombosit dilakukan.",a18:"Manfaat bagi pasien penerima trombosit apheresis."}},nCe={downloadApp:"Unduh Aplikasi âAyo Donorâ",joinMovement:"Bergabung dengan Gerakan Menyelamatkan Nyawa bersama PMI",description:"Tetap terhubung dengan <span class='text-pmi-red'>Palang Merah Indonesia</span> dan mempermudah donor darah anda dengan Aplikasi <span class='text-pmi-red'>Ayo Donor</span>.",downloadNow:"Unduh Aplikasi Ayo Donor Sekarang",forIOS:"Untuk iOS",forAndroid:"Untuk Android",joinThous
180ands:"Bergabunglah dengan Ribuan Penyelamat Nyawa di Seluruh Indonesia",iosVersion:"iOS 12.0 dan yang lebih baru",androidVersion:"Android 4.4 dan yang lebih baru",joinCommunity:"Bergabunglah dengan komunitas donor darah dan relawan kami yang terus berkembang hari ini. Unduh aplikasi Ayo Donor dan jadilah bagian dari gerakan yang menyelamatkan nyawa di seluruh Indonesia. Dengan setiap donasi, anda membuat perbedaan. Darah anda dapat menyelamatkan nyawa. Jadilah pahlawan, unduh aplikasi Ayo Donor sekarang!",appFeatures:"Fitur Aplikasi",exploreFeatures:"Jelajahi Fitur-Fitur Penting dari Aplikasi <span class='text-pmi-red'>Ayo Donor</span>",digitalDonorCard:"Kartu Donor Digital",feeds:"Berita",digitalDonorCardDescription:"Dapatkan kartu donor digital anda dengan mudah di dalam aplikasi melalui proses pendaftaran yang cepat.",feedsDescription:"Unggah foto tentang pengalaman anda dengan PMI. Bagikan, suka, dan komentari postingan.",trackDonorHistory:"Pantau Riwayat Donor",trackDonorHistoryDescription:"Pantau riwayat donor anda.",eventSchedules:"Jadwal Acara",eventSchedulesDescription:"Lihat dan daftar untuk acara donor darah yang akan datang.",newsResources:"Berita and Sumber Daya",newsResourcesDescription:"Akses berita, artikel, video, dan FAQ tentang donor darah dan PMI.",bloodDonorReminders:"Pengingat Donor Darah",bloodDonorRemindersDescription:"Terima pemberitahuan dan pengingat tepat waktu untuk donor darah anda berikutnya.",findDonationLocations:"Temukan Lokasi Donasi",findDonationLocationsDescription:"Temukan & hubungi pusat donor darah dan acara terdekat.",checkBloodStock:"Periksa Stok Darah Saat Ini",checkBloodStockDescription:"Tetap terinformasi tentang tingkat stok darah saat ini di area anda.",onlineDonations:"Donasi Online",onlineDonationsDescription:"Donasi dengan mudah melalui PMI, program tertentu, penyebab khusus, atau dana umum.",emergencyNumbers:"Hubungi Nomor Darurat Indonesia",emergencyNumbersDescription:"Akses nomor kontak darurat penting di Indonesia dengan cepat."},iCe={title:"Siaran Pers",stayUpdated:"Tetap Terupdate dengan Pengumuman dan Berita Terbaru Kami",searchPressReleases:"Cari siaran pers...",searchRequired:"Pencarian tidak boleh kosong",recentPressRelease:"Siaran Pers Terbaru",notFound:"Data yang anda cari tidak tersedia"},rCe={title:"Artikel",exploreInDepthInformationAndUpdates:"Jelajahi Informasi Mendalam dan Pembaruan",searchArticles:"Cari artikel...",recentArticle:"Artikel Terbaru",notFound:"Data yang anda cari tidak tersedia"},sCe={title:"Sosial Media",followUs:"Ikuti Kami di Media Sosial dan Tetap Update dengan Sorotan dan Pembaruan Terbaru Kami"},aCe={title:"Kisah Relawan",searchVolunteerStories:"Cari kisah relawan...",recentVolunteerStories:"Kisah relawan terbaru",seeMoreVideos:"tampilkan banyak video"},oCe={title:"Foreign Volunteer Form",personalInformation:"Personal Information",contactInformation:"Contact Information",submitButton:"Submit",confirmation:"Foreign Volunteer Confirmation",reviewData:"Review your data for completeness.",thankYouTitle:"Thank You for registering as a Volunteer!",thankYouBody:"Thank you for registering as a volunteer. We truly appreciate your dedication and enthusiasm in joining us. Together, let's make a positive impact and bring meaningful change!",whatHappensNextTitle:"What happens next?",whatHappensNextBody:"Your data will be further processed by our team. You will receive updates on the update process of your submission.",form:{fullName:{label:"Full Name",placeholder:"Enter your full name"},firstName:{label:"First Name",placeholder:"Enter your first name"},lastName:{label:"Last Name",placeholder:"Enter your last name"},email:{label:"Email",placeholder:"Enter your email address"},phoneNumber:{label:"Phone Number",placeholder:"Enter your phone number (WhatsApp number)"},emergencyContact:{label:"Emergency Contact",placeholder:"Enter an emergency contact number"},passportNumber:{label:"Passport Number",placeholder:"Enter your passport number"},passportExpirationDate:{label:"Passport Expiration Date",placeholder:"Select your passport expiration date"},passportDocument:{label:"Passport Document",placeholder:"Upload your passport document"},visaNumber:{label:"Visa Number",placeholder:"Enter your visa number"},visaType:{label:"Visa Type",placeholder:"Select your visa type"},visaExpirationDate:{label:"Visa Expiration Date",placeholder:"Select your visa expiration date"},visaDocument:{label:"Visa Document",placeholder:"Upload your visa document"},dateOfBirth:{label:"Date of Birth",placeholder:"Select your date of birth"},gender:{label:"Gender",placeholder:"Select your gender",options:{male:"Male",female:"Female"}},skills:{label:"Skills to contribute as a PMI Volunteer",placeholder:"Enter your skills"},nationality:{label:"Nationality",placeholder:"Select your nationality"},residence:{label:"Residence in Indonesia",placeholder:"Enter your residence location in Indonesia"},educationLevel:{label:"Education Level",placeholder:"Select your education level"},profession:{label:"Profession",placeholder:"Select your profession"}}},lCe={title:"Relawan",exploreOurVolunteerProgramsAndJoinOurLifesavingMission:"Jelajahi Program Relawan Kami dan Bergabunglah dalam Misi Penyelamatan Kami",youthRedCross:"Palang Merah Remaja",palangMerahRemaja:"Palang Merah Remaja (PMR)",pmrDescription:"Program ekstrakurikuler untuk siswa di sekolah atau lembaga pendidikan yang berfokus pada kegiatan Palang Merah.",volunteerCorps:"Korps Sukarela",korpsSukarela:"Korps Sukarela (KSR)",ksrDescription:"Unit bagi individu yang secara sukarela menjadi anggota KSR. anda dapat mendaftar di kantor PMI setempat atau bergabung dengan Unit Kegiatan Mahasiswa (UKM) di universitas anda.",voluntaryWorkforce:"Tenaga Sukarela",tenagaSukarela:"Tenaga Sukarela (TSR)",tsrDescription:"Anggota PMI yang direkrut dari masyarakat dengan keterampilan profesional khusus, seperti dokter, ahli gizi, akuntan, jurnalis, seniman, guru, dll.",foreignVolunteers:"Relawan Luar Negri",tenagaAsing:"Tenaga Asing",foreignVolunteersDescription:"Relawan Asing adalah individu dari luar Indonesia yang membawa keterampilan, perspektif, dan pengalaman unik mereka untu
180k mendukung misi PMI.",whyVolunteerWithUs:"Mengapa Menjadi Relawan Bersama Kami?",makingADifference:"Membuat Perbedaan",gainingNewSkills:"Mengembangkan Keterampilan Baru",beingPartOfACommunity:"Menjadi Bagian dari Komunitas",personalFulfillmentAndGrowth:"Kepuasan & Pertumbuhan Pribadi",makingADifferenceDescription:"Menjadi relawan memungkinkan anda memiliki dampak langsung dan positif pada kehidupan individu dan komunitas. Apakah anda membantu dalam penanggulangan bencana, memberikan perawatan medis, atau mendukung program pendidikan, kontribusi anda membantu menciptakan perubahan yang bertahan lama dan meningkatkan kesejahteraan orang lain.",gainingNewSkillsDescription:"Melalui relawan, anda dapat mengembangkan dan meningkatkan berbagai keterampilan. Dari kepemimpinan dan kerja sama tim hingga kemampuan teknis khusus, pengalaman langsung yang diperoleh dalam peran relawan bisa sangat berharga. Keterampilan ini tidak hanya bermanfaat bagi pertumbuhan pribadi anda tetapi juga memperkaya resume profesional anda.",beingPartOfACommunityDescription:"Menjadi relawan menghubungkan anda dengan individu yang memiliki tujuan yang sama untuk membantu orang lain. Ini mendorong rasa kebersamaan dan persahabatan saat anda bekerja sama menuju tujuan yang bermakna. Rasa komunitas ini dapat menyebabkan persahabatan yang bertahan lama dan jaringan dukungan yang kuat.",personalFulfillmentAndGrowthDescription:"Memberikan waktu dan upaya anda untuk suatu tujuan yang anda pedulikan membawa rasa kepuasan yang mendalam. Menjadi relawan menawarkan peluang untuk refleksi diri, pembelajaran, dan pengembangan pribadi. Ini dapat meningkatkan kepercayaan diri anda, memberikan rasa tujuan, dan menginspirasi pandangan hidup yang lebih positif.",volunteerStories:"Kisah Relawan",inspiringJourneysRealStoriesFromOurDedicatedVolunteers:"Perjalanan yang Menginspirasi: Kisah Nyata dari Relawan Kami yang Berdedikasi",fromStudentToLeader:"Dari Siswa Menjadi Pemimpin",bayusJourneyWithTheYouthRedCross:"Perjalanan Bayu dengan Palang Merah Remaja",bayusStoryDescription:"Bayu bergabung dengan Palang Merah Remaja saat masih di sekolah menengah. Melalui keterlibatannya, dia mengembangkan keterampilan kepemimpinan dan rasa tanggung jawab yang mendalam. Sekarang, dia memimpin tim relawannya sendiri, menginspirasi orang lain untuk membuat perbedaan di komunitas mereka.",aLifesaverInAction:"Penyelamat dalam Aksi",pasyasExperienceWithTheVolunteerCorps:"Pengalaman Pasya dengan Korps Sukarela",pasyasStoryDescription:"Pasya, seorang mahasiswa kedokteran, bergabung dengan Korps Sukarela untuk mendapatkan pengalaman praktis dan memberi kembali kepada masyarakat. Misi pertamanya melibatkan penanggulangan bencana alam, di mana dia memberikan perawatan medis yang penting. Pengalaman itu mengubah hidupnya, memperkuat komitmennya terhadap pekerjaan kemanusiaan.",fromCorporateToCommunity:"Dari Korporat ke Komunitas",rindusTransitionToVolunteering:"Transisi Rindu ke Kegiatan Relawan",rindusStoryDescription:"Setelah karier yang sukses di bidang keuangan, Rindu ingin melakukan sesuatu yang lebih bermakna. Dia bergabung dengan Tenaga Sukarela, menggunakan keterampilannya untuk mengelola logistik dalam upaya bantuan bencana. Kisahnya menyoroti kepuasan dan tujuan yang dia temukan dalam membantu orang lain.",forElementarySchoolLevel:"Untuk tingkat sekolah dasar",forJuniorHighSchoolLevel:"Untuk tingkat sekolah menengah pertama",forSeniorHighSchoolLevel:"Untuk tingkat sekolah menengah atas",universityStudentUnitDescription:"Unit ini terdiri dari mahasiswa yang berpartisipasi dalam kegiatan KSR melalui organisasi berbasis kampus mereka. Mereka sering bekerja sama dengan Unit Kegiatan Mahasiswa (UKM) yang berfokus pada kegiatan Palang Merah di universitas mereka.",pmiHeadquartersUnitDescription:"Unit ini mencakup relawan yang mendaftar dan beroperasi langsung melalui markas PMI kota atau kabupaten. Relawan ini mungkin berasal dari berbagai latar belakang dan tidak terbatas pada mahasiswa universitas."},cCe={title:"Menjadi Relawan",fillInTheRegistrationFormBelow:"Isi formulir pendaftaran di bawah ini",profile:"Profil",name:"Nama",nik:"Nomor Induk Kependudukan (NIK)",enterYourFullName:"Masukkan nama lengkap anda",enterYourIdNumber:"Masukkan nomor ID anda",birthPlace:"Tempat Lahir",birthDate:"Tanggal Lahir",gender:"Jenis Kelamin",enterYourBirthPlace:"Masukkan tempat lahir anda",selectYourBirthDate:"Pilih tanggal lahir anda",selectYourGender:"Pilih jenis kelamin anda",religion:"Agama",bloodT
180ype:"Golongan Darah",selectYourReligion:"Pilih agama anda",selectYourBloodType:"Pilih golongan darah anda",email:"Email",phoneNumber:"Nomor Telepon",enterYourEmail:"Masukkan email anda",phoneCode:"+62",enterYourPhoneNumber:"Masukkan nomor telepon anda",addressAsStatedInIdCard:"Alamat (sesuai KTP)",province:"Provinsi",cityOrRegency:"Kota / Kabupaten",selectProvince:"Pilih provinsi",selectCityOrRegency:"Pilih kota / kabupaten",district:"Kecamatan",villageOrSubdistrict:"Desa / Kelurahan",selectDistrict:"Pilih kecamatan",selectVillageOrSubdistrict:"Pilih desa / kelurahan",idAddressTheSameAsYourCurrentAddress:"Alamat KTP sama dengan alamat saat ini",currentAddress:"Alamat Saat Ini",pmiDistrictUnit:"Unit PMI Kabupaten",cityOrDistrict:"Kota / Kabupaten",unit:"Unit",selectCityOrDistrict:"Pilih kota / kabupaten",selectUnit:"Pilih unit",photo:"Foto",uploadPhoto:"Unggah foto",browseFile:"Telusuri Berkas",requiredField:"Mohon kolom ini untuk diisi"},dCe={thankYou:"Terima Kasih Telah Mendaftar sebagai Relawan!",registrationSubmitted:"Pendaftaran anda telah berhasil dikirim.",appreciation:"Kami menghargai kesediaan anda untuk bergabung dengan misi kami dan memberikan dampak positif di komunitas kami.",whatsNext:"Apa Selanjutnya?",reviewProcess:"Proses Peninjauan",contact:"Kontak",orientation:"Orientasi",reviewProcessDetail:"Tim kami akan meninjau aplikasi anda dan memverifikasi informasi yang diberikan.",emailConfirmation:"Anda akan menerima konfirmasi melalui email segera. Harap periksa kotak masuk anda (dan folder spam/junk) untuk instruksi lebih lanjut.",orientationDetail:"Setelah aplikasi anda disetujui, kami akan mengundang anda ke sesi orientasi di mana anda akan mempelajari lebih lanjut tentang peran dan tanggung jawab anda.",needHelp:"Butuh bantuan?",contactUs:"Jika anda memiliki pertanyaan atau membutuhkan bantuan lebih lanjut, silakan hubungi kami di Unit Transfusi Darah (UTD) terdekat.",followUs:"Ikuti kami di media sosial untuk mendapatkan berita dan acara terbaru kami."},uCe={aboutUs:"Tentang Kami","7FundamentalPrinciples":"7 Prinsip Dasar",fundamentalPrinciplesTitle:"Prinsip-Prinsip Dasar Gerakan Palang Merah dan Bulan Sabit Merah Internasional",humanity:"Kemanusiaan",humanityDescription:"Gerakan Palang Merah dan Bulan Sabit Merah Internasional, lahir dari keinginan untuk memberikan bantuan tanpa diskriminasi kepada yang terluka di medan perang, berusaha, dalam kapasitas internasional dan nasionalnya, untuk mencegah dan mengurangi penderitaan manusia di mana pun ia ditemukan. Tujuannya adalah untuk melindungi kehidupan dan kesehatan serta memastikan penghormatan terhadap manusia. Ini mempromosikan saling pengertian, persahabatan, kerja sama dan perdamaian abadi di antara semua orang.",impartiality:"Kenetralan",impartialityDescription:"Ia ti
180dak membedakan berdasarkan kebangsaan, ras, keyakinan agama, kelas, atau pendapat politik. Ia berusaha untuk meringankan penderitaan individu, dipandu semata-mata oleh kebutuhan mereka, dan memberikan prioritas kepada kasus-kasus darurat yang paling mendesak.",neutrality:"Kenetralan",neutralityDescription:"Agar terus menikmati kepercayaan semua pihak, Gerakan ini tidak boleh memihak dalam permusuhan atau terlibat kapan saja dalam kontroversi yang bersifat politik, ras, agama atau ideologi.",independence:"Kemandirian",independenceDescription:"Gerakan ini independen. Perhimpunan Nasional, sementara itu adalah pendukung dalam layanan kemanusiaan dari pemerintah mereka dan tunduk pada hukum negara masing-masing, harus selalu menjaga otonomi mereka sehingga mereka dapat bertindak sesuai dengan prinsip-prinsip Gerakan setiap saat.",voluntaryService:"Kesukarelaan",voluntaryServiceDescription:"Gerakan ini adalah gerakan bantuan sukarela yang tidak didorong dengan cara apa pun oleh keinginan untuk keuntungan.",unity:"Kesatuan",unityDescription:"Hanya ada satu perhimpunan Palang Merah dan satu perhimpunan Bulan Sabit Merah di setiap negara. Ia harus terbuka untuk semua. Ia harus menjalankan pekerjaan kemanusiaannya di seluruh wilayahnya.",universality:"Kesemestaan",universalityDescription:"Gerakan Palang Merah dan Bulan Sabit Merah Internasional, di mana semua perhimpunan memiliki status yang setara dan berbagi tanggung jawab serta tugas yang sama dalam membantu satu sama lain, bersifat internasional.",fundamentalPrinciplesConclusion:"Prinsip-Prinsip Dasar ini mengekspresikan nilai-nilai dan praktik Gerakan Palang Merah dan Bulan Sabit Merah Internasional. Prinsip-prinsip ini berfungsi sebagai panduan untuk tindakan dan identitas bersama bagi gerakan.",redCrossSymbol:"Simbol Palang Merah",redCrossSymbolDescription:"Diadopsi di bawah Konvensi Jenewa asli tahun 1864, desainnya adalah kebalikan dari bendera Swiss, mengakui hubungan historis antara Swiss dan Konvensi Jenewa asli.",redCrescentSymbol:"Simbol Bulan Sabit Merah",redCrescentSymbolDescription:"Dibuat pada akhir 1800-an untuk menghindari konotasi keagamaan yang terkait dengan simbol Palang Merah di negara-negara tertentu. Itu diakui secara resmi dalam revisi Konvensi Jenewa tahun 1929.",redCrystalSymbol:"Simbol Kristal Merah",redCrystalSymbolDescription:"Dibentuk pada tahun 2005 untuk meningkatkan perlindungan dalam situasi di mana simbol yang ada mungkin tidak dianggap netral.",understandingEmblem:"Memahami Lambang: Arti Penting Palang Merah"},hCe={title:"Visi & Misi",ofTheIndonesianRedCross:"Palang Merah Indonesia",ourVision:"Visi Kami",visionText:"Menjadikan PMI sebagai organisasi profesional dan terintegrasi yang bekerja selaras dengan masyarakat.",ourMission:"Misi Kami",missionText1:"Menjaga reputasi PMI di tingkat nasional dan internasional.",missionText2:"Menjadi organisasi kemanusiaan terkemuka yang memberikan layanan berkualitas tinggi kepada masyarakat sesuai dengan prinsip-prinsip dasar Gerakan Palang Merah dan Bulan Sabit Merah Internasional.",missionText3:"Meningkatkan integritas dan kemandirian organisasi melalui kemitraan strategis berkelanjutan dengan pemerintah, sektor swasta, mitra Gerakan, masyarakat, dan pemangku kepentingan lainnya di semua tingkatan PMI, dengan mengutamakan dukungan bagi mereka yang membutuhkan.",strategicPlan:"Rencana Strategis",strategicPlanTitle1:"Fungsi Organisasi yang Efektif",strategicPlanTitle2:"Peningkatan Kapasitas Sumber Daya",strategicPlanTitle3:"Peningkatan Ketahanan Masyarakat",strategicPlanTitle4:"Layanan Darah Berkualitas",strategicPlanTitle5:"Kolaborasi dengan Pemerintah",strategicPlanTitle6:"Kemitraan Berkelanjutan",strategicPlanTitle7:"Akuntabilitas Organisasi",strategicPlanTitle8:"Promosi Nilai-Nilai Kemanusiaan",strategicPlanText1:"Mengembangkan PMI agar berfungsi secara efektif di semua tingkatan, memastikan penerapan kebijakan, peraturan organisasi, sistem, dan prosedur yang ditetapkan.",strategicPlanText2:"Meningkatkan kapasitas sumber daya PMI di semua tingkatan, termasuk sumber daya manusia dan infrastruktur yang diperlukan untuk operasi manajemen bencana di seluruh Indonesia.",strategicPlanText3:"Meningkatkan ketahanan masyarakat untuk mengurangi risiko dan dampak bencana dan penyakit.",strategicPlanText4:"Meningkatkan ketersediaan, keamanan, dan kualitas layanan darah di seluruh Indonesia.",strategicPlanText5:"Memperkuat kerja sama dengan pemerintah pusat dan daerah untu
180k memenuhi mandat dan fungsi kemanusiaan PMI.",strategicPlanText6:"Membangun kemitraan berkelanjutan dengan sektor publik, sektor swasta, mitra gerakan, lembaga donor, dan pemangku kepentingan lainnya di semua tingkatan dalam melayani masyarakat.",strategicPlanText7:"Meningkatkan akuntabilitas PMI sebagai organisasi kemanusiaan di tingkat nasional dan internasional.",strategicPlanText8:"Meningkatkan pemahaman di antara semua elemen masyarakat tentang nilai-nilai kemanusiaan, Prinsip-Prinsip Dasar Gerakan Palang Merah dan Bulan Sabit Merah Internasional, serta Hukum Humaniter Internasional melalui upaya komunikasi, pendidikan, dan penyebaran."},pCe={title:"Struktur Organisasi",subTitle:"Palang Merah Indonesia",centralBoardComposition:"Susunan Pengurus Pusat Palang Merah Indonesia",period:"Periode {{date}}",requiredField:"Tidak boleh kosong"},mCe={title:"Sejarah",subtitle:"Palang Merah Indonesia",firstContent:["Pembentukan Palang Merah Indonesia sebenarnya dimulai sebelum Perang Dunia II. Pada tanggal 21 Oktober 1873, Pemerintah Kolonial Belanda mendirikan Palang Merah di Indonesia dengan nama Nederlands Rode Kruis Afdeling Indie (Nerkai). Namun, Nerkai dibubarkan selama pendudukan Jepang.","Perjuangan untuk mendirikan Palang Merah Indonesia dimulai sekitar tahun 1932, dipimpin oleh Dr. RCL Senduk dan Dr. Bahder Djohan. Inisiatif ini mendapat dukungan luas, terutama dari kalangan terdidik di Indonesia. Meskipun upaya mereka untuk menyampaikan proposal di Konferensi Nerkai pada tahun 1940, proposal tersebut ditolak secara langsung.","Tidak gentar, rencana tersebut ditunda sementara, menunggu kesempatan yang tepat. Selama pendudukan Jepang, mereka mencoba sekali lagi untuk membentuk Badan Palang Merah Nasional, tetapi upaya ini kembali digagalkan oleh pemerintah militer Jepang, memaksa proposal tersebut untuk dibatalkan untuk kedua kalinya."],quote:"Tujuh belas hari setelah proklamasi kemerdekaan pada tanggal 17 Agustus 1945, Presiden Soekarno mengeluarkan perintah untuk membentuk organisasi Palang Merah Nasional. Menindaklanjuti perintah Presiden, Dr. Buntaran, yang saat itu menjabat sebagai Menteri Kesehatan dalam kabinet pertama Indonesia, membentuk Panitia Lima pada tanggal 5 September 1945. Panitia tersebut terdiri dari Dr. R. Mochtar (Ketua), Dr. Bahder Djohan (Sekretaris), Dr. Djuhana, Dr. Marzuki, dan Dr. Sitanala.",secondContent:["Palang Merah Indonesia (PMI) berhasil didirikan pada tanggal 17 September 1945, di bawah kepemimpinan Drs. Mohammad Hatta. Karena hanya diperbolehkan satu organisasi nasional per negara, pada tanggal 16 Januari 1950, pemerintah Belanda membubarkan NERKAI dan mengalihkan asetnya kepada PMI. Pengalihan tersebut diwakili oleh Dr. B. Van Trich dari NERKAI dan Dr. Bahder Djohan dari PMI.","PMI memulai kegiatannya dengan memberikan bantuan kepad
180a korban Perang Kemerdekaan Indonesia dan memulangkan tawanan perang Sekutu dan Jepang. Karena usahanya, PMI menerima pengakuan internasional dari Komite Internasional Palang Merah (ICRC) pada tanggal 15 Juni 1950 dan menjadi anggota Palang Merah Internasional. Selanjutnya, pada bulan Oktober 1950, PMI diterima sebagai anggota ke-68 Liga Palang Merah dan Bulan Sabit Merah, yang sekarang dikenal sebagai Federasi Internasional Palang Merah dan Bulan Sabit Merah (IFRC).","PMI terus memberikan bantuan, yang mengarah pada pemerintah Indonesia yang mengeluarkan Keputusan Presiden No. 25 pada tanggal 16 Januari 1950, dan memperkuatnya dengan Keputusan Presiden No. 246 pada tanggal 29 November 1963. Keputusan ini mengakui keberadaan PMI dan menugaskannya untuk memberikan pertolongan pertama kepada korban bencana dan perang sesuai dengan Konvensi Jenewa 1949.","Pada tahun 2018, PMI menjadi organisasi kemanusiaan yang sah di bawah Undang-Undang No. 1 Tahun 2018 tentang Kepalangmerahan. Undang-undang ini mewajibkan PMI untuk melaksanakan kegiatan kepalangmerahan sesuai dengan Konvensi Jenewa 1949, dengan tujuan mencegah dan meringankan penderitaan serta melindungi korban perang dan bencana tanpa diskriminasi berdasarkan agama, kebangsaan, etnis, ras, jenis kelamin, status sosial, atau pandangan politik.","Per Februari 2019, PMI sudah terbentuk di 33 provinsi, 474 kabupaten/kota, dan 3.406 kecamatan, dengan hampir 1,5 juta relawan siap memberikan layanan."],tasks_title:"Tugas PMI",tasks_subtitle:"berdasarkan Undang-Undang No. 1 Tahun 2018 tentang Kepalangmerahan",tasks:["Memberikan bantuan kepad
180a korban konflik bersenjata, kerusuhan, dan gangguan lainnya;","Menyediakan layanan darah sesuai dengan peraturan perundang-undangan;","Mengembangkan dan mengelola relawan;","Melaksanakan pendidikan dan pelatihan terkait kegiatan kepalangmerahan;","Menyebarkan informasi tentang kegiatan kepalangmerahan;","Membantu penanggulangan bencana baik di dalam maupun di luar negeri;","Menyediakan layanan kesehatan dan sosial; dan","Melaksanakan tugas kemanusiaan lainnya yang ditugaskan oleh pemerintah."],ourJourney:"Perjalanan Kami Melalui Waktu: Kisah PMI"},fCe={title:"Manajemen Bencana",subtitle:"Menjamin Keselamatan dan Dukungan dalam Waktu Krisis",titleIntroduction:"Respon Cepat dan Efektif untuk Melindungi Komunitas",introduction:"Bencana, baik yang bersifat alamiah maupun buatan manusia, adalah peristiwa yang mengancam dan mengganggu kehidupan serta mata pencaharian komunitas. Peristiwa-peristiwa ini sering mengakibatkan korban jiwa, kerusakan lingkungan, kehilangan harta benda, dan dampak psikologis. Palang Merah Indonesia (PMI) memiliki mandat untuk membantu dalam manajemen bencana, memastikan respons yang cepat, efektif, dan terkoordinasi untuk mendukung komunitas yang terkena dampak.",services:{title:"Layanan Bencana",content:[{understanding:"Memahami Bencana",description:"Lokasi geografis Indonesia dan topografi yang beragam menjadikannya salah satu negara yang paling rawan bencana di dunia. Strategi Internasional untuk Pengurangan Bencana Perserikatan Bangsa-Bangsa (UN-ISDR) menyoroti Indonesia sebagai wilayah yang berisiko tinggi terhadap tsunami, tanah longsor, dan letusan vulkanik. Mandat PMI, yang diuraikan dalam Keputusan Presiden No. 25 tahun 1950 dan No. 24 tahun 1963, mencakup tanggung jawab sebelum, selama, dan setelah bencana."},{title:"Manajemen Bencana Komprehensif",description:"Manajemen bencana mencakup semua upaya dan kegiatan yang bertujuan pada pencegahan, mitigasi, kesiapsiagaan, respons darurat, bantuan, pemulihan, rehabilitasi, dan rekonstruksi sebelum, selama, dan setelah bencana."},{title:"Respons Cepat dan Koordinasi",description:"PMI beroperasi dengan prinsip '6 Jam', memastikan bahwa upaya respons awal dimulai dalam waktu enam jam setelah bencana. Prinsip ini mendukung komitmen PMI untuk memberikan respons bencana yang cepat, akurat, dan terkoordinasi."},{title:"Kapasitas Respons Darurat",description:"Operasi respons bencana PMI didukung oleh jaringan relawan di seluruh Indonesia, yang bertindak sebagai responden garis depan. Selain itu, PMI memiliki peralatan dan persediaan respons bencana yang disimpan di gudang regional yang terletak di Banten, Padang, Semarang, Gresik, dan Makassar. Gudang-gudang ini memastikan bahwa bantuan tersedia untuk berbagai wilayah, termasuk Jawa, Sumatra, Kalimantan, dan pulau-pulau timur seperti Sumbawa, Maluku, Papua, dan Sulawesi."},{title:"Armada yang Dimobilisasi",description:"Armada respons bencana PMI mencakup helikopter, ambulans, kendaraan amfibi (Haglund), tangki air, dan unit donor darah bergerak. Sumber daya ini, dikombinasikan dengan pos komando bencana dan peralatan air serta sanitasi, meningkatkan kapasitas operasional PMI."}]},responseSection:{subtitle:"Kami Selalu Siap Saat Bantuan Dibutuhkan",description:"Misi kami adalah menangani kebutuhan langsung dari individu, keluarga, dan komunitas yang terkena dampak bencana. Temukan bagaimana kami merespons krisis, besar maupun kecil, di seluruh negeri."},tabs:{naturalDisaster:"Bencana Alam",nonNaturalDisaster:"Bencana Non-Alam",socialDisaster:"Bencana Sosial"},content:{naturalDisaster:{earthquakeRelief:"Bantuan Gempa Bumi",volcanicEruptionRelief:"Bantuan Letusan Gunung Berapi",tsunamiRelief:"Bantuan Tsunami",landslideRelief:"Bantuan Tanah Longsor",floodRelief:"Bantuan Banjir"},nonNaturalDisaster:{fire:"Respon Kebakaran",chemical:"Respon Bahaya Kimia"},socialDisaster:{communitySupport:"Dukungan Komunitas",economicRelief:"Bantuan Ekonomi"}},activities:{title:"Kegiatan Manajemen Bencana",content:[{title:"Pencegahan",description:"Upaya yang difokuskan pada pencegahan bencana melalui pendidikan, perbaikan infrastruktur, dan program kes
180adaran komunitas."},{title:"Mitigasi",description:"Tindakan yang bertujuan untuk mengurangi dampak bencana dengan mengidentifikasi area berisiko tinggi dan mempromosikan praktik pembangunan yang aman serta relokasi komunitas bila perlu."},{title:"Kesiapsiagaan",description:"Pelatihan dan persiapan komunitas dan relawan untuk merespons bencana secara efektif, termasuk pengembangan rencana darurat dan pengumpulan persediaan yang diperlukan."},{title:"Peringatan Dini",description:"Menerapkan sistem untuk memberikan peringatan tepat waktu kepada komunitas tentang bencana yang akan datang, memungkinkan tindakan awal dan evakuasi."},{title:"Respons",description:"Tindakan segera yang diambil selama bencana untuk memberikan bantuan darurat, termasuk operasi pencarian dan penyelamatan, perawatan medis, dan pendirian tempat penampungan darurat."},{title:"Bantuan",description:"Memberikan bantuan penting seperti makanan, tempat tinggal, dan perawatan medis untuk mengurangi penderitaan dan menstabilkan populasi yang terkena dampak."},{title:"Pemulihan",description:"Upaya untuk memulihkan normalitas bagi komunitas yang terkena dampak, termasuk membangun kembali infrastruktur dan memberikan dukungan psikologis."},{title:"Rehabilitasi",description:"Upaya jangka panjang untuk memulihkan dan meningkatkan kondisi sebelum bencana dari komunitas yang terkena dampak, fokus pada stabilitas sosial dan ekonomi."},{title:"Rekonstruksi",description:"Membangun kembali dan meningkatkan infrastruktur untuk lebih tahan terhadap bencana di masa depan dan meningkatkan ketahanan komunitas."}]},paradigmOfMitigation:{title:"Paradigma Mitigasi",content:[{title:"Mengidentifikasi Area Risiko",description:"Berfokus pada identifikasi area berisiko tinggi dan komunitas yang rentan untuk lebih mempersiapkan dan mengurangi dampak bencana."},{title:"Mitigasi Struktural",description:"Membangun gedung dan infrastruktur yang dirancang untuk menahan bencana."},{title:"Mitigasi Perilaku",description:"Mempromosikan praktik aman dan relokasi komunitas yang rentan melalui peraturan dan perencanaan tata guna lahan."}]},paradigmOfEmergencyRelief:{title:"Paradigma Bantuan Darurat",content:[{title:"Respons Terfokus Selama Bencana",description:"Memberikan bantuan segera melalui makanan, tempat tinggal, dan perawatan kesehatan untuk mengurangi penderitaan dan kerusakan."},{title:"Tujuan Bantuan Pasca Bencana",description:"Bertujuan untuk dengan cepat mengurangi penderitaan dan mempercepat upaya pemulihan."}]},pmiTask:{title:"Tugas PMI",subtitle:"Sebelum, Selama dan Setelah Bencana",sections:{before:{title:"Sebelum",tasks:[{title:"Pendidikan dan Pelatihan",description:"Melaksanakan program kesadaran dan pelatihan untuk meningkatkan kesiapan komunitas menghadapi bencana."},{title:"Persiapan Relawan",description:"Menyiapkan relawan di tingkat lokal untuk membantu dalam respons bencana."},{title:"Pemetaan Risiko",description:"Mengidentifikasi dan memetakan daerah rawan bencana."},{title:"Kesiapan Infrastruktur",description:"Memastikan fasilitas dan peralatan respons bencana siap dan berfungsi."},{title:"Kolaborasi Antar-Sektor",description:"Memperkuat kemitraan dengan berbagai sektor untuk meningkatkan kesiapsiagaan bencana."}]},during:{title:"Selama",tasks:[{title:"Pendirian Posko",description:"Mendirikan pusat komando bencana dan memobilisasi sumber daya."},{title:"Penyediaan Bantuan Langsung",description:"Memberikan pertolongan pertama, evakuasi, layanan kesehatan, tempat penampungan sementara, dan mendirikan dapur umum."},{title:"Pelaksanaan Penilaian",description:"Mengevaluasi dampak bencana dan mengidentifikasi kebutuhan populasi yang terkena dampak."},{title:"Distribusi Bantuan",description:"Mendistribusikan bantuan berdasarkan hasil penilaian."},{title:"Koordinasi dengan Lembaga",description:"Bekerja sama dengan lembaga terkait untuk memastikan respons bencana yang komprehensif."}]},after:{title:"Sesudah",tasks:[{title:"Pemulihan dan Rehabilitasi",description:"Memulihkan dan merehabilitasi kondisi korban bencana dan lingkungan mereka."},{title:"Pemecahan Masalah dan Konseling",description:"Mengatasi masalah yang berkelanjutan dan memberikan dukungan psikologis kepada komunitas y
180ang terkena dampak."},{title:"Penilaian Ulang Sumber Daya",description:"Menilai kembali sumber daya dan infrastruktur untuk memastikan kesiapan menghadapi bencana di masa depan."},{title:"Evaluasi dan Peningkatan",description:"Meninjau kegiatan manajemen bencana untuk mengidentifikasi area yang perlu ditingkatkan dalam respons di masa depan."}]}}},strategicPartnerships:{title:"Kemitraan Strategis",description:"PMI bekerja sama dengan lembaga pemerintah, sektor swasta, mitra gerakan, dan pemangku kepentingan lainnya untuk meningkatkan respons dan pemulihan bencana. Kemitraan ini penting untuk menjaga integritas dan independensi PMI sambil memenuhi mandat kemanusiaannya."},communityResilience:{title:"Komitmen terhadap Ketahanan Komunitas",description:"PMI berdedikasi untuk membangun ketahanan komunitas guna mengurangi risiko dan dampak bencana serta penyakit. Melalui program pendidikan, pelatihan, dan kesiapsiagaan, PMI memberdayakan komunitas untuk lebih siap menghadapi tantangan di masa depan."}},gCe={title:"Bantuan Gempa",subtitle:"Dukungan anda memberdayakan jaringan global Palang Merah untuk memberikan bantuan penyelamatan jiwa dan sumber daya penting yang membantu masyarakat pulih dan membangun kembali kehidupan mereka.",howYourSupportHelps:{title:"Bagaimana Dukungan anda Membantu",efforts:["Melakukan upaya pencarian dan penyelamatan","Memberikan perawatan medis","Menyajikan makanan dan air","Mendistribusikan bantuan","Membangun tempat penampungan darurat","Memulihkan komunikasi","Memulihkan pasokan air","Mengajarkan kesiapsiagaan bencana","Membangun kembali komunitas"]},recent:"Terbaru",response:"Respon",recentEarthquakeResponses:"Respon Terbaru Terhadap Gempa",howToContribute:{title:"Cara Berkontribusi",description:"Dengan sistem donasi online yang aman, mendukung PMI menjadi lebih mudah. anda dapat memilih untuk memberikan kontribusi satu kali atau memilih donasi bulanan berulang, memberikan dukungan terus-menerus untuk upaya kami yang berkelanjutan. Pilih dari jumlah donasi yang telah ditentukan atau masukkan jumlah khusus sesuai anggaran anda.",subtitle:"Setiap rupiah yang anda sumbangkan berdampak nyata bagi kehidupan mereka yang membutuhkan.",donateNow:"Donasi Sekarang"}},xCe={title:"Kesehatan & Layanan Sosial",description:"Perawatan dan Dukungan Menyeluruh untuk Semua",subtitle:"Menjamin Kesejahteraan Masyarakat Melalui Layanan Kesehatan dan Sosial yang Komprehensif",intro:"Layanan kesehatan dan sosial sangat penting untuk menjamin kesejahteraan individu dan masyarakat. Layanan ini mencakup upaya untuk mencegah penyakit, mempromosikan kesehatan, memberikan perawatan medis darurat, dan mendukung kesejahteraan sosial.",commitment:"Palang Merah Indonesia (PMI) berkomitmen untuk memberikan layanan penting ini guna meningkatkan kualitas hidup bagi semua orang.",lifelineTitle:"Garis Hidup untuk Kesejahteraan Masyarakat",lifelineDescription:"Upaya luas PMI untuk menangani kesehatan di tingkat komunitas, layanan respons darurat dalam situasi kritis, dan inisiatif yang bertujuan meningkatkan kesejahteraan sosial.",communityHealthServices:"Layanan Kesehatan Komunitas",emergencyHealthServices:"Layanan Kesehatan Darurat",socialServices:"Layanan Sosial",objective:"Tujuan",objective1:"Menyembuhkan penyakit, memelihara dan meningkatkan kesehatan, serta mencegah penyakit melalui pendidikan kesehatan, pemeriksaan rutin, dan pengobatan untuk berbagai kondisi",objective2:"Memberikan intervensi medis segera yang memastikan korban menerima perawatan medis cepat untuk menstabilkan kondisi dan mencegah kerusakan lebih lanjut.",objective3:"Meningkatkan kesejahteraan sosial dan memperbaiki hubungan dalam lingkungan sosial, di mana kebutuhan material, spiritual, dan sosial terpenuhi.",socialServicesKeyFunctions:{title:"Fungsi Utama Layanan Sosial",descriptions:"Meningkatkan Kesejahteraan dan Pengembangan Masyarakat",functions:["Memperbaiki Kondisi Hidup Masyarakat","Pengembangan Sumber Daya Manusia","Orientasi Perubahan Sosial","Mobilisasi Sumber Daya","Dukungan Kelembagaan"]},learnMore:"Pelajari Lebih Lanjut Tentang Relawan",visitVolunteersPage:"Kunjungi Halaman Relawan kami dan Daftar untuk mulai memberikan kontribusi keahlian anda hari ini.",skillsCanSaveLives:"Keahlian anda dapat menyelamatkan nyawa dan mendukung masyarakat yang membutuhkan.",joinUs:"Bergabunglah dengan kami untuk membuat perbedaanâbersama, kita bisa mencapai lebih banyak.",donateNow:"Donasi Sekarang"},yCe={title:"Layanan Internasional",description:"Jangkauan Global untuk Dampak Kemanusiaan",intro:"Palang Merah Indonesia (PMI) memperluas upaya kemanusiaannya di luar batas negara, menawarkan bantuan dan keahlian kepada komunitas di seluruh dunia. Komitmen kami terhadap layanan internasional didasarkan pada prinsi
180p-prinsip dasar Gerakan Palang Merah dan Bulan Sabit Merah Internasional, bertujuan untuk meringankan penderitaan manusia, melindungi kehidupan dan kesehatan, serta menjaga martabat manusia selama keadaan darurat dan bencana.",subtitle:"Memperluas Bantuan dan Keahlian ke Seluruh Dunia",givingHopeWorldwide:{title:"Memberi Harapan ke Seluruh Dunia",scope:"Lingkup misi kami sangat luas. Jutaan relawan di negara-negara di seluruh dunia bekerja untuk menyelamatkan nyawa.",volunteersWorldwide:"Lebih dari 15 Juta",volunteersWorldwideDescription:"relawan di seluruh dunia",countriesWithRedCross:"192 Negara",countriesWithRedCrossDescription:"dengan Palang Merah atau Bulan Sabit Merah",peopleHelped:"1 dari 65",peopleHelpedDescription:"di dunia dibantu setiap tahun",yearsOfAid:"150+ Tahun",yearsOfAidDescription:"bantuan untuk yang paling rentan"},internationalAid:{title:"Memberikan Bantuan Internasional",description:"Dari Amerika Latin dan Afrika hingga Asia dan Eropa, Palang Merah Indonesia membantu orang-orang di beberapa komunitas paling berisiko di dunia. Pekerjaan ini didukung oleh kemurahan hati para relawan dan donatur.",childrenVaccinated:"Lebih dari 2 Miliar anak-anak",childrenVaccinatedDescription:"anak-anak divaksinasi melalui kampanye campak dan rubella sejak 2001",peopleBenefiting:"Lebih dari 200 Juta",peopleBenefitingDescription:"Lebih dari 200 Juta orang mendapatkan manfaat dari bantuan Palang Merah Indonesia",familiesReconnected:"Lebih dari 5.500 keluarga terhubung kembali secara internasional dengan dukungan",familiesReconnectedDescription:"keluarga terhubung kembali secara internasional dengan dukungan"},missionInAction:{title:"Menjalankan Misi Kami",description:"Dengan menyatukan kembali keluarga yang terpisah akibat krisis, membantu membangun kembali komunitas yang hancur akibat bencana, atau bekerja sama dengan organisasi kesehatan untuk menghilangkan penyakit global, Layanan Internasional Palang Merah bekerja setiap hari untuk memberikan bantuan.",services:{respondingToDisasters:"Menanggapi Bencana & Krisis Internasional",eliminatingMeasles:"Menghilangkan Campak",buildingSaferCommunities:"Membangun Komunitas yang Lebih Aman",refugeeMigrationCrisis:"Krisis Migrasi Pengungsi",reconnectingFamilies:"Menyatukan Kembali Keluarga",restoreCommunications:"Memulihkan Komunikasi"}}},bCe={title:"Program",subtitle:"Memberdayakan Komunitas Melalui Program Kami",searchPlaceholder:"Cari program",search:"
180Cari",categories:{disasterManagement:"Manajemen Bencana",healthAndSocialServices:"Layanan Kesehatan & Sosial"},year:"Tahun",period:"Periode",area:"Wilayah",beneficiary:"Penerima Manfaat",supportPartner:"Mitra Pendukung",downloadReport:"Unduh Laporan",background:"Latar Belakang"},vCe={title:"Karir",jobOpenings:{title:"Peluang Karir",description:"Bergabunglah dengan Tim Kami dan Buat Perbedaan"},categories:[{title:"Layanan Kesehatan",description:"Kesempatan dalam memberikan dukungan medis dan kesehatan."},{title:"Administrasi",description:"Peran yang melibatkan manajemen kantor, koordinasi, dan tugas organisasi."},{title:"Respons Darurat",description:"Posisi terkait dengan respons dan bantuan segera selama keadaan darurat."},{title:"Koordinasi Relawan",description:"Peran yang berfokus pada manajemen dan dukungan relawan."},{title:"Edukasi dan Pelatihan",description:"Kesempatan dalam menyediakan program pendidikan dan pelatihan."}]},wCe={howToApply:"Cara Melamar",instructions:"Kandidat yang berminat diundang untuk mengirimkan resume dan surat lamaran yang menjelaskan kualifikasi dan pengalaman mereka ke [email protected] sebelum 31 Agustus 2024.",equalOpportunity:"PMI adalah pemberi kerja yang memberikan kesempatan yang sama. Kami mendorong aplikasi dari kandidat dengan latar belakang dan pengalaman yang beragam."},kCe={title:"Pustaka",pmiLibrary:"Pustaka PMI",description:"Temukan berbagai e-book, foto dan video aktivitas, audio, dokumen publikasi, dan media KIE",exploreOurLibrary:"Jelajahi Pustaka PMI",accessPhotosVideosAudiosPublicationsMediaAndEBooks:"Akses Foto, Video, Audio, Publikasi, Media, dan E-Book",totalVisitorsToday:"Total Pengunjung Pustaka PMI Hari Ini",totalVisitorsAllTime:"Total Pengunjung Pustaka PMI Sepanjang Waktu",totalDownloads:"Total Unduhan Pustaka PMI",activityPhotos:{title:"Foto Kegiatan",searchActivities:"Cari kegiatan",capturingMoments:"Mengabadikan Momen-Momen Upaya Kemanusiaan",activityPhotosList:"Daftar {{mediaType}}",browseCapturedMoments:"Telusuri momen-momen yang telah kami abadikan"},activityVideos:{activityVideos:"Video Kegiatan",visualStories:"Cerita Visual Dampak Kami",searchActivities:"Cari kegiatan",activityVideosList:"Daftar {{mediaType}}",browseCapturedMoments:"Telusuri momen-momen yang telah kami abadikan"},kieMedia:{title:"Media KIE",educationalResources:"Sumber Daya Edukasi dan Informasi",searchKieMedia:"Cari Media KIE",kieMediaList:"Daftar {{mediaType}}",browseInformativeResources:"Telusuri sumber daya informatif kami"},publications:{title:"Publikasi",inDepthReports:"Laporan dan Penelitian Mendalam",searchPublications:"Cari publikasi",publicationsList:"Daftar {{mediaType}}",browsePublications:"Telusuri {{mediaType}} kami"},audio:{title:"Audio",searchAudios:"Cari audio",listenAudioCollections:"Dengarkan Koleksi Audio Kami",audioList:"Daftar {{mediaType}}",browseAudioCollection:"Telusuri koleksi {{mediaType}} kami"},ebooks:{title:"e-Books",searchEbookTitle:"Cari judul e-book",digitalCollection:"Koleksi Digital Pengetahuan dan Sumber Daya",ebookList:"Daftar {{mediaType}}",browseCollections:"Jelajahi koleksi {{mediaType}} kami"},table:{no:"No.",cover:"Sampul",title:"Judul",category:"Kategori",year:"Tahun",actions:"Aksi",share:"Bagikan",mediaType:"Jenis Media",fileSize:"Ukuran File",format:"Format",docType:"Jenis Dokumen",duration:"Durasi",detail:"Detail"}},SCe={title:"Laporan Tahunan",annualReportsCaseStudiesFactSheetsAndSurveyReports:"Laporan Tahunan, Studi Kasus, Lembar Fakta, dan Laporan Survei",annualReport:"Laporan Tahunan",caseStudy:"Studi Kasus",factSheet:"Lembar Fakta",surveyReport:"Laporan Survei",seePmiLibrary:"Lihat Pustaka PMI",viewReport:"Lihat Laporan",watchReport:"Tonton Laporan Video"},CCe={categories:{title:"KATEGORI",bloodDonors:"Donor Darah",ambulanceServices:"Layanan Ambulans",pmiVolunteers:"Relawan PMI",pmiTraining:"Pelatihan PMI",pmiInternships:"Magang di PMI",fundraising:"Penggalangan Donasi"},faqList:[{title:"DONOR DARAH",questions:[{question:"Mengapa kita perlu mendonorkan darah?",answer:"Donasi darah sangat penting karena membantu menyelamatkan nyawa dengan menyediakan darah yang dibutuhkan oleh pasien, seperti mereka yang menjalani operasi atau memiliki kondisi kronis."},{question:"Apa saja persyaratan untuk mendonorkan darah?",answer:"Persyaratan termasuk dalam keadaan sehat, memenuhi kriteria usia dan berat badan, dan tidak baru-baru ini menjalani prosedur medis tertentu."}
180,{question:"Apa proses untuk mendonorkan darah?",answer:"Prosesnya melibatkan pendaftaran, skrining kesehatan, pengambilan darah, dan periode pemulihan singkat."},{question:"Bagaimana darah disaring setelah donasi?",answer:"Darah diuji untuk berbagai infeksi dan penyakit, termasuk HIV, Hepatitis B dan C, serta Sifilis, sebelum digunakan."},{question:"Berapa lama saya harus menunggu sebelum mendonorkan lagi?",answer:"Biasanya, anda harus menunggu setidaknya 56 hari sebelum mendonorkan darah lagi untuk memastikan pemulihan dan keamanan penuh."},{question:"Mengapa saya tidak boleh mendonorkan darah jika saya masih mengonsumsi obat?",answer:"Obat-obatan tertentu dapat mempengaruhi keamanan dan kualitas darah yang didonorkan. Penting untuk berkonsultasi dengan penyedia layanan kesehatan sebelum mendonorkan."},{question:"Apakah mendonorkan darah membatalkan puasa?",answer:"Mendonorkan darah umumnya tidak membatalkan puasa, tetapi disarankan untuk berkonsultasi dengan otoritas agama jika anda memiliki kekhawatiran."},{question:"Kapan saya harus menunda mendonorkan darah?",answer:"Tunda donasi jika anda sakit, baru-baru ini menjalani operasi, atau jika anda sedang hamil atau menyusui."},{question:"Apa yang harus saya lakukan jika mengalami memar setelah mendonorkan darah?",answer:"Memar adalah hal yang umum tetapi seharusnya mereda. Oleskan es dan angkat lengan. Jika memar memburuk atau anda memiliki kekhawatiran, hubungi pusat donor darah."},{question:"Mengapa ada biaya untuk mendapatkan darah dari PMI?",answer:"Biaya mungkin mencakup pengolahan, pengujian, dan biaya penanganan. Donasi darah itu sendiri biasanya gratis, tetapi mungkin ada biaya administrasi."},{question:"Apa yang dilakukan PMI dengan darah yang tes positif untuk HIV, Hepatitis B, Hepatitis C, dan Sifilis?",answer:"Darah yang tes positif untuk infeksi ini akan dibuang dan donor akan diberi tahu serta dirujuk untuk tes dan perawatan lebih lanjut jika diperlukan."},{question:"Apa manfaat mendonorkan darah?",answer:"Manfaat termasuk membantu menyelamatkan nyawa, berkontribusi pada kesehatan masyarakat, dan merasakan pencapaian serta keterlibatan komunitas."},{question:"Bagaimana cara memeriksa stok darah di PMI?",answer:"Anda dapat menanyakan tingkat stok darah dengan menghubungi PMI secara langsung atau memeriksa situs web resmi mereka untuk pembaruan."},{question:"Bagaimana cara menemukan jadwal donor darah PMI?",answer:"Jadwal donor darah dapat ditemukan di situs web PMI atau dengan menghubungi kantor PMI setempat."},{question:"Lokasi Unit Donor Darah PMI di seluruh Indonesia",answer:"Lokasi dapat ditemukan di situs web PMI atau dengan menghubungi kantor PMI setempat untuk unit donor darah terdekat."},{question:"Apa proses untuk meminta darah dari PMI?",answer:"Prosesnya melibatkan mengajukan permintaan melalui bank darah PMI dengan rincian jenis darah dan jumlah yang diperlukan."},{question:"Bagaimana cara menyelenggarakan acara donor darah di suatu institusi?",answer:"Hubungi PMI untuk mengatur logistik, menjadwalkan acara, dan berkoordinasi dengan tim mereka untuk acara donasi yang sukses."},{question:"Apa yang terjadi jika level hemoglobin saya rendah?",answer:"Jika level hemoglobin anda rendah, anda mungkin perlu meningkatkan diet anda atau mencari nasihat medis sebelum anda memenuhi syarat untuk mendonor darah."},{question:"Apa yang terjadi jika darah yang didonorkan gagal dalam penyaringan?",answer:"Darah yang gagal dalam penyaringan akan dibuang, dan donor akan diberi tahu serta dirujuk untuk tes medis lebih lanjut jika diperlukan."},{question:"Apa yang harus saya lakukan sebelum mendonorkan darah?",answer:"Pastikan anda terhidrasi dengan baik, telah makan makanan sehat, dan hindari aktivitas berat sebelum mendonor."}]},{title:"LAYANAN AMBULANS",questions:[{question:"Jenis ambulans apa yang dimiliki PMI?",answer:"PMI mengoperasikan berbagai jenis ambulans termasuk ambulans standar untuk transportasi non-darurat dan ambulans dukungan hidup canggih untuk situasi darurat."},{question:"Apa itu ambulans transportasi dan gawat darurat?",answer:"Ambulans transportasi digunakan untuk pemindahan pasien non-darurat, sementara ambulans gawat darurat dilengkapi untuk perawatan medis segera dan tanggapan darurat."},{question:"Kemana saya bisa mendapatkan bantuan untuk pelayanan ambulans?",answer:"Anda dapat menghubungi PMI langsung melalui saluran darurat mereka atau mengunjungi kantor PMI terdekat untuk layanan ambulans."},{question:"Apa syarat untuk dapat mengakses layanan ambulans?",answer:"Syarat biasanya mencakup kebutuhan akan bantuan medis atau transportasi darurat, dan dalam bebera
180pa kasus, rujukan dari profesional medis."},{question:"Berapa biaya yang dibutuhkan untuk mendapatkan layanan ambulans?",answer:"Biaya dapat bervariasi tergantung pada jenis layanan dan jarak. Silakan hubungi PMI untuk informasi harga yang spesifik."},{question:"Bagaimana saya bisa menggunakan jasa pelayanan ambulans PMI di acara atau event?",answer:"Untuk menggunakan layanan ambulans PMI di acara, anda harus menghubungi PMI jauh-jauh hari sebelumnya untuk mengatur layanan yang diperlukan dan memastikan ketersediaan."}]},{title:"RELAWAN PMI",questions:[{question:"Apa saja komponen Relawan PMI?",answer:"Relawan PMI terdiri dari berbagai komponen termasuk tim medis, unit tanggap darurat, dan kelompok keterlibatan komunitas."},{question:"Apa saja persyaratan menjadi Relawan PMI?",answer:"Persyaratan termasuk komitmen terhadap misi PMI, partisipasi dalam program pelatihan, dan memenuhi kriteria kesehatan serta latar belakang."},{question:"Apa itu PMR?",answer:"PMR adalah Palang Merah Remaja, yang melibatkan relawan muda yang berpartisipasi dalam kegiatan kemanusiaan."},{question:"Apa saja tingkatan PMR?",answer:"Tingkatan termasuk PMR Junior, PMR
180Senior, dan PMR Leader, masing-masing dengan tanggung jawab dan pelatihan yang meningkat."},{question:"Syarat menjadi anggota PMR",answer:"Syarat termasuk menjadi siswa atau pemuda dengan semangat untuk pekerjaan kemanusiaan dan menyelesaikan program pelatihan yang diperlukan."},{question:"Bagaimana cara mendaftar menjadi anggota PMR?",answer:"Daftar dengan menghubungi kantor PMI setempat atau unit PMR di sekolah anda dan melengkapi formulir aplikasi yang diperlukan."},{question:"Apa itu KSR?",answer:"KSR adalah Korps Sukarelawan, yang terdiri dari mahasiswa universitas yang memberikan layanan tanggap darurat dan bencana."},{question:"Syarat menjadi anggota KSR",answer:"Persyaratan termasuk menjadi mahasiswa universitas, menyelesaikan proses aplikasi, dan menghadiri sesi pelatihan."},{question:"Bagaimana cara mendaftar menjadi anggota KSR?",answer:"Daftar dengan menghubungi koordinator KSR di universitas anda atau kantor PMI terdekat dan melengkapi proses pendaftaran."},{question:"Apa itu TSR?",answer:"TSR adalah Tenaga Sukarelawan Remaja, yang terdiri dari remaja yang terlibat dalam kegiatan dan pelatihan PMI."},{question:"Syarat menjadi anggota TSR",answer:"Syarat termasuk usia remaja, minat dalam kegiatan sukarela, dan penyelesaian pelatihan yang sesuai."},{question:"Bagaimana cara mendaftar menjadi anggota TSR?",answer:"Daftar dengan menghubungi PMI atau program TSR terdekat dan mengisi formulir pendaftaran yang diperlukan."},{question:"Apa itu DDS?",answer:"DDS adalah Donor Darah Sukarela, individu yang secara rutin mendonorkan darah untuk membantu pasien yang membutuhkan."}]},{title:"PELATIHAN PMI",questions:[{question:"Jenis pelatihan internal apa yang ditawarkan PMI?",answer:"PMI menawarkan pelatihan dalam tanggap darurat, manajemen bencana, dan keterampilan medis serta kepemimpinan."},{question:"Pelatihan eksternal apa yang dapat PMI sediakan?",answer:"Pelatihan eksternal termasuk program untuk komunitas, organisasi, dan lembaga yang membutuhkan pelatihan kemanusiaan."},{question:"Berapa jumlah peserta minimum yang diperlukan untuk pelatihan PMI?",answer:"Jumlah peserta minimum bervariasi tetapi umumnya memerlukan kelompok minimal 10 hingga 15 orang."},{question:"Apa biaya untuk mengikuti pelatihan PMI?",answer:"Biaya dapat bervariasi tergantung pada program dan durasi pelatihan. Hubungi PMI untuk informasi harga yang lebih detail."},{question:"Bisakah kita mengikuti pelatihan PMI secara online?",answer:"Ya, PMI menawarkan beberapa program pelatihan secara online, memungkinkan peserta bergabung dari jarak jauh."},{question:"Bagaimana cara mendaftar untuk pelatihan PMI?",answer:"Daftar dengan menghubungi PMI langsung, mengisi formulir aplikasi, dan mengikuti prosedur pendaftaran mereka."}]},{title:"PENGGALANGAN DANA",questions:[{question:"Apa dasar hukum PMI untuk melakukan penggalangan dana?",answer:"PMI melakukan penggalangan dana berdasarkan peraturan dan pedoman yang ditetapkan untuk organisasi non-profit dan kegiatan amal."},{question:"Kapan saya bisa berdonasi ke PMI?",answer:"Donasi dapat dilakukan kapan saja melalui saluran resmi PMI, termasuk platform online dan acara penggalangan dana."},{question:"Jenis donasi apa yang dapat diberikan kepada PMI?",answer:"Donasi dapat berupa uang, darah, perlengkapan medis, dan sumber daya lain yang dibutuhkan untuk upaya kemanusiaan."}
180,{question:"Bagaimana cara mendonasi ke PMI (sebagai individu atau sebagai komunitas/organisasi)?",answer:"Individu dan organisasi dapat mendonasikan melalui situs web PMI, kantor lokal, atau dengan berpartisipasi dalam acara penggalangan dana."},{question:"Bisakah saya/kami menggunakan logo PMI selama kegiatan penggalangan dana?",answer:"Penggunaan logo PMI memerlukan persetujuan dari PMI. Hubungi mereka untuk panduan dan izin."},{question:"Jika saya memiliki pertanyaan lain atau membutuhkan diskusi lebih lanjut, siapa yang harus saya hubungi?",answer:"Untuk pertanyaan tambahan atau diskusi, hubungi PMI melalui saluran komunikasi resmi mereka atau kunjungi kantor lokal mereka."}]},{title:"MAGANG DI PMI",questions:[{question:"Bagaimana cara magang di PMI?",answer:"Ajukan permohonan magang dengan menghubungi PMI dengan CV dan surat lamaran anda, dan ikuti proses aplikasi mereka."},{question:"Apakah magang di PMI dibayar?",answer:"Magang di PMI bisa jadi tidak dibayar atau menawarkan tunjangan tergantung pada posisi dan program. Periksa dengan PMI untuk detail."},{question:"Apa manfaat magang di PMI?",answer:"Manfaat termasuk mendapatkan pengalaman berharga dalam pekerjaan kemanusiaan, kesempatan berjejaring, dan mengembangkan keterampilan yang relevan dengan karir anda."}]}]},jCe={title:"Donasi Sekarang",supportMessage:"Dukung Upaya Penyelamatan Nyawa Melalui PMI dengan Berdonasi",description:"Kontribusi Anda membantu kami menyediakan layanan utama masayarakat terdampak mulai dari bantuan bencana hingga respons krisis kesehatan, dan lainnya.",alertSelectPaymentMethod:"Harap pilih metode pembayaran terlebih dahulu.",donationFrequency:{label:"Pilih nominal donasi anda",options:{oneTime:"Donasi Satu Kali",scheduled:"Donasi Terjadwal"},oneTimeDescription:"Donasi satu kali untuk mendukung kebutuhan PMI saat ini.",scheduledDescription:"Atur donasi otomatis terjadwal untuk mendukung upaya yang berkelanjutan."},donationSchedule:{label:"Pilih jadwal donasi yang anda inginkan",options:{daily:"Harian",weekly:"Mingguan",monthly:"Bulanan",hour:"Jam"},timeNote:"Jika anda menjadwalkan donasi pada waktu ini, donasi otomatis anda akan didebet pada waktu yang dipilih hari berikutnya. Namun, jika hari berikutnya adalah tanggal 29, 30, atau 31, transaksi akan dimulai pada tanggal 1 bulan berikutnya."},donationAmount:{label:"Masukkan jumlah donasi anda",minimumNote:"Jumlah donasi minimum untuk program ini adalah Rp10.000. Harap sesuaikan donasi anda."},donorCategory:{label:"Kategori Donatur",placeholder:"Pilih kategori donatur anda",categories:{individuals:"Individu",corporates:"Perusahaan",businesses:"Bisnis",organizations:"Organisasi",communityGroups:"Kelompok Komunitas",movementPartners:"Mitra Gerakan"}},donationPurpose:{label:"Tujuan Donasi",placeholder:"Pilih tujuan donasi anda",categories:{disasterRelief:"Bantuan Tanggap Bencana",healthCrisisManagement:"Manajemen Krisis Kesehatan",generalHumanitarianSupport:"Dukungan Kemanusiaan Umum",pmiDevelopmentAndCampaigns:"Pengembangan dan Kampanye PMI"}},receipt:{label:"Apakah anda ingin menerima tanda terima untuk donasi anda?",options:{yes:"Ya",no:"Tidak"},wantReceive:"Dimanakah anda ingin menerima tanda terima?",nameLabel:"Nama pada Tanda Terima",companyNameLabel:"Narahubung",emailLabel:"Alamat Email",phoneLabel:"Nomor Telepon (Nomor WhatsApp)"},donateFormLabel:{donationType:"Jenis Donasi",frequency:"Frekuensi",date:"Tanggal",time:"Waktu",donationAmount:"Jumlah Donasi",donorType:"Tipe Donatur",donorCategory:"Kategori Donatur",donationPurpose:"Tujuan Donasi",receipt:"Tanda Terima",nameOnReceipt:"Nama pada Tanda Terima",email:"Email",phoneNumber:"Nomor Telepon (Nomor WhatsApp)"},button:"Donasi Sekarang",donationConfirmation:"Konfirmasi Donasi",reviewContributionDetails:"Tinjau Rincian Kontribusi anda",choosePaymentMethod:"Pilih Metode Pembayaran",securePaymentOptions:"Opsi Pembayaran Aman untuk Donasi anda",continueToPayment:"Lanjutkan ke Pembayaran",bankTransfer:"Transfer Bank",creditCard:"Kartu Kredit/Debit",thankYouTitle:"Terima Kasih atas Kedermawanan anda!",supportMakesDifference:"Dukungan anda Membuat Perbedaan",thankYouMessage:"Terima kasih atas donasi yang murah hati! Kontribusi anda akan langsung mendukung upaya PMI dalam menyelamatkan nyawa dan memberikan layanan penting bagi mereka yang membutuhkan. Kami menghargai kebaikan dan komitmen anda untuk memberikan dampak positif.",receiptInfo:"Jika anda memilih untuk menerima tanda terima, anda akan segera menerima konfirmasi email. anda dapat melacak dampak donasi anda dengan mengikuti pembaruan terbaru kami di situs web dan saluran media s
180osial kami.",exploreCampaignsTitle:"Jelajahi Kampanye Kami",exploreCampaignsMessage:"Tertarik melihat bagaimana kontribusi anda memberikan dampak? Kunjungi Halaman Kampanye kami untuk melacak perkembangan secara real-time, meninjau laporan terperinci, dan tetap terupdate tentang perkembangan terbaru.",privacyPolicy:"Saya telah membaca dan setuju dengan Kebijakan Privasi mengenai pengumpulan dan penggunaan data pribadi saya.",visitCampaignsPage:"Kunjungi Halaman Kampanye"},TCe={title:"Mengapa anda Perlu Berdonasi",intro:"Kontribusi anda Sangat Penting untuk Menyelamatkan Nyawa dan Membangun Komunitas yang Tangguh",description:["Donasi anda kepada Palang Merah Indonesia (PMI) memainkan peran penting dalam membantu kami merespons keadaan darurat, menyediakan perawatan kesehatan penting, dan mendukung komunitas rentan, dan menjadi cara yang kuat untuk memberikan dampak langsung pada kehidupan jutaan orang yang membutuhkan di seluruh Indonesia.","Sebagai salah satu organisasi kemanusiaan nirlaba terkemuka di Indonesia, PMI bergantung pada kemurahan hati para donor seperti anda untuk mendanai berbagai layanan kami. Baik itu memberikan bantuan saat bencana alam, menawarkan perawatan medis penting, atau memfasilitasi donor darah yang menyelamatkan jiwa, kontribusi anda memungkinkan PMI menjangkau komunitas yang rentan dengan cepat dan efektif.","PMI secara konsisten memimpin upaya bantuan bencana di Indonesia, memberikan bantuan cepat sesuai dengan komitmennya untuk merespons dalam waktu 6 jam setelah bencana alam terjadi.","Dengan berdonasi, anda membantu memastikan bahwa sumber daya tersedia untuk bantuan darurat, kesiapsiagaan, dan program berkelanjutan yang mempromosikan kesehatan dan kesejahteraan di
180seluruh negeri. Setiap donasi sangat berarti, dan dengan dukungan anda, PMI dapat terus menjadi harapan bagi mereka yang menghadapi krisis."],whyItMatters:"Mengapa Donasi anda Penting",disasterRelief:{title:"Tanggap Darurat Bencana dan Bantuan Darurat",description:"Indonesia sangat rentan terhadap bencana alam. Donasi anda secara langsung mendukung upaya tanggap cepat kami, memastikan bahwa korban menerima perawatan medis darurat, tempat berlindung, makanan, dan air bersih saat mereka sangat membutuhkannya."},healthCrisis:{title:"Manajemen Krisis Kesehatan",description:"Dalam masa krisis kesehatan, seperti wabah penyakit, PMI hadir untuk memberikan dukungan penting. Donasi anda membantu mendanai pasokan medis, layanan kesehatan, dan kampanye edukasi yang bertujuan untuk mencegah dan mengendalikan penyebaran penyakit."},communityResilience:{title:"Ketahanan dan Pengembangan Komunitas",description:"Selain bantuan bencana langsung, PMI berkomitmen untuk membangun komunitas yang tangguh. Dukungan anda memungkinkan kami menjalankan program yang mendidik dan mempersiapkan komunitas menghadapi bencana di masa depan, mengurangi kerentanan mereka dan memperkuat kapasitas mereka dalam menghadapi krisis."},supportGrowth:{title:"Mendukung Pertumbuhan PMI",description:"Untuk mempertahankan dan memperluas operasi kami, PMI terus mengembangkan program dan kampanye baru yang menangani kebutuhan yang muncul. Donasi anda berkontribusi pada pengembangan dan keberlanjutan inisiatif penting ini, memungkinkan kami untuk melayani lebih banyak orang dengan lebih efektif."},volunteerGuide:"Cara Menjadi Relawan di PMI: Panduan untuk Membuat Perubahan",howToContribute:{title:"Cara",contribute:"Berdonasi",description:"Dengan sistem donasi online kami yang aman, mendukung PMI menjadi lebih mudah. anda dapat memilih untuk memberikan kontribusi satu kali atau memilih donasi bulanan berulang, memberikan dukungan berkelanjutan untuk upaya kami yang sedang berlangsung. Pilih dari jumlah donasi yang telah ditetapkan atau masukkan jumlah kustom yang sesuai dengan anggaran anda.",subtitle:"Setiap rupiah yang anda donasikan memberikan dampak nyata pada kehidupan mereka yang membutuhkan.",cta:"Donasi Sekarang"}},PCe={campaignsTitle:"Kampanye Donasi",campaignsSubtitle:"Pilih donasi yang Anda inginkan",searchPlaceholder:"Cari kampanye...",raised:"Terkumpul",goal:"Tujuan",seeAll:"Lihat Semua",disasterRelief:"Bantuan Bencana",healthCrisisManagement:"Manajemen Krisis Kesehatan",generalHumanitarianSupport:"Dukungan Kemanusiaan Umum",pmiDevelopmentCampaigns:"Pengembangan dan Kampanye PMI",others:"Lainnya",background:"Latar Belakang",campaignDescription:"Deskripsi Kampanye",fundAllocationPlan:"Rencana Alokasi Dana",donateNow:"Donasi Sekarang",donationImpact:"Dampak Donasi",viewDetail:"Lihat Detail",started:"dimulai {{time}} yang lalu",raisedFrom:"terkumpul dari {{amount}}",donors:"donatur",gallery:"Galeri",ongoing:"Berjalan",completed:"Selesai"},ECe={title:"Donasi Barang",contributeItems:"Sumbangkan Barang Penting untuk Mendukung Upaya Kemanusiaan Kami",nonMonetaryDonations:"Donasi non-monetary dalam bentuk barang sangat berharga bagi operasi kami. Dengan menyumbangkan barang-barang penting, anda secara langsung mendukung Palang Merah Indonesia (PMI) dalam menyalurkan bantuan ke tempat yang paling membutuhkan. Baik itu makanan, paket kebersihan, atau barang-barang penting lainnya, kontribusi anda memberikan dampak signifikan. Di bawah ini, anda akan menemukan langkah-langkah untuk berdonasi, syarat dan ketentuan penting, serta formulir donasi online untuk mempermudah proses.",howToDonate:"Cara Berdonasi",contactPmi:"Hubungi PMI",directDelivery:"Pengiriman Langsung",prepareDocumentation:"Siapkan Dokumentasi",contactInstructions:"Hubungi kantor PMI terdekat atau kontak WhatsApp donasi kami untuk bantuan.",deliveryInstructions:"Anda dapat mengirimkan donasi anda langsung ke markas atau gudang PMI terdekat setelah melakukan konfirmasi dengan kami.",documentationInstructions:"Siapkan Laporan Serah Terima Donasi Barang (format dapat diunduh di sini).",donationConfirmation:"Konfirmasi Donasi Barang",thankYouTitle:"Terima Kasih atas Donasi anda yang Murah Hati!",thankYouMessage:"Yth. [Nama Donatur / Perusahaan],",thankYouBody:"Terima kasih atas donasi anda yang murah hati kepada Palang Merah Indonesia. Dukungan anda sangat berharga dalam membantu kami memberikan perawatan dan bantuan yang penting kepada mereka yang membutuhkan. Bersama-sama, kita membuat dampak besar bagi kehidupan banyak orang.",whatHappensNextTitle:"Apa yang terjadi selanjutnya?",whatHappensNextBody:"Donasi anda akan diproses dan didistribusikan ke daerah-daerah yang paling membutuhkan. anda akan menerima pembaruan tentang bagaimana kontribusi anda digunakan dan dampak yang telah diberikannya.",form:{title:"Formulir Donasi Barang",donorName:"Nama Donor/Perusahaan",donorNamePlaceholder:"Masukkan nama donor/perusahaan",typeOfGoods:"Jenis Barang",typeOfGoodsPlaceholder:"Masukkan jenis barang",notes:"Catatan",notesPlaceholder:"Masukkan catatan",quantity:"Jumlah",quantityPlaceholder:"Masukkan jumlah barang",uploadPhoto:"Unggah Foto Barang yang Didonasikan",uploadedFiles:"File yang Diupload",dragAndDrop:"Seret & Jatuhkan File",or:"atau",browse:"Telusuri",fileSizeLimit:"Hingga 5MB | Jenis file: JPG, JPEG, PNG",contactDetails:"Detail Kontak",name:"Nama",emailAddress:"Alamat Email",phoneNumber:"Nomor Telepon",termsAndConditions:"Syarat & Ketentuan",donationRestrictions:"Pembatasan Donasi",donationRestrictionsText:"Kami tidak menerima donasi dari perusahaan yang terlibat dalam produksi alkohol, tembakau, atau produk yang merusak lingkungan.",shelfLifeRequirements:"Persyaratan Masa Simpan",shelfLifeRequirementsText:"Makanan, minuman, dan kit kebersih
180an harus memiliki masa simpan minimum 6 bulan.",termsAccepted:"Saya telah membaca dan menyetujui Syarat & Ketentuan dan Kebijakan Privasi.",submitButton:"Donasi Sekarang",confirmDonation:"Konfirmasi Donasi"}},ACe={title:"Kebijakan Privasi",intro:"Di PMI (Palang Merah Indonesia), kami menghargai privasi anda dan berkomitmen untuk melindungi informasi pribadi anda. Kebijakan Privasi ini menjelaskan bagaimana kami mengumpulkan, menggunakan, dan melindungi data pribadi yang anda berikan melalui situs web kami, khususnya dalam formulir seperti Nama, Nama Perusahaan, Nomor Telepon, Email, dan rincian lainnya. Dengan mengirimkan informasi anda kepada kami, anda menyetujui syarat yang dijelaskan dalam kebijakan ini.",sections:[{title:"Informasi yang Kami Kumpulkan",content:"Ketika anda mengisi formulir di situs web kami, kami dapat mengumpulkan informasi berikut: Nama: Untuk mengidentifikasi anda dan menanggapi pertanyaan anda dengan tepat. Nama Perusahaan: Untuk membantu dengan kemitraan atau pertanyaan organisasi. Nomor Telepon: Untuk komunikasi langsung mengenai pengajuan atau pertanyaan anda. Alamat Email: Untuk mengirimkan pembaruan, tanggapan, dan pemberitahuan penting kepada anda. Informasi Lain: Informasi tambahan yang anda berikan secara sukarela dalam formulir (misalnya, catatan atau komentar)."},{title:"Bagaimana Kami Menggunakan Informasi anda",content:"Kami menggunakan informasi yang dikumpulkan untuk tujuan berikut: Untuk berkomunikasi dengan anda mengenai pengajuan atau pertanyaan anda. Untuk memproses sumbangan, layanan, atau permintaan yang telah anda ajukan. Untuk meningkatkan fungsionalitas dan layanan situs web kami. Untuk mematuhi kewajiban hukum dan melindungi hak kami."},{title:"Perlindungan dan Keamanan Data",content:"PMI menganggap serius privasi anda dan menerapkan langkah-langkah keamanan yang tepat untuk melindungi informasi pribadi anda dari akses, perubahan, atau pengungkapan yang tidak sah. Kami menggunakan enkripsi dan teknologi keamanan lainnya untuk melindungi integritas data anda."},{title:"Pembagian Informasi",content:"Data pribadi anda tidak akan dijual, disewakan, atau dibagikan kepada pihak ketiga, kecuali jika diharuskan oleh hukum atau diperlukan untuk memenuhi tujuan pengajuan anda (misalnya, bekerja sama dengan mitra yang relevan). Semua mitra pihak ketiga mematuhi standar privasi kami untuk memastikan keamanan dan kerahasiaan data anda."},{title:"Retensi Informasi",content:"Kami akan menyimpan informasi pribadi anda selama diperlukan untuk memenuhi tujuan pengumpulan, atau sesuai dengan hukum dan regulasi yang berlaku."},{title:"Hak anda",content:"Anda memiliki hak untuk:",list:["Mengakses informasi pribadi yang kami miliki tentang anda.","Meminta perbaikan atas ketidakakuratan apa pun.","Mencabut persetujuan anda untuk kami menggunakan data anda, jika berlaku.","Meminta penghapusan data pribadi anda, dengan mempertimbangkan persyaratan hukum yang berlaku."]},{title:"Perubahan pada Kebijakan Privasi Ini",content:"Kami berhak untuk mengubah Kebijakan Privasi ini kapan saja. Setiap perubahan akan diposting di halaman ini, dan penggunaan anda yang berkelanjutan terhadap situs web setelah perubahan menunjukkan penerimaan anda terhadap kebijakan yang direvisi."},{title:"Hubungi Kami",content:"Jika anda memiliki pertanyaan atau kekhawatiran mengenai Kebijakan Privasi ini, silakan hubungi kami di: [Masukkan Email/Telepon Kontak]"}]},NCe={title:"Syarat dan Ketentuan",organization:"Palang Merah Indonesia",sections:[{title:"Pendahuluan",content:"Terima kasih telah mempertimbangkan untuk melakukan donasi kepada Palang Merah Indonesia (PMI). Dengan menggunakan formulir Donasi Barang di situs web kami, anda setuju dengan syarat dan ketentuan berikut. Pedoman ini memastikan bahwa donasi anda diproses secara efektif dan mendukung misi PMI untuk membantu mereka yang membutuhkan."},{title:"Kelayakan untuk Mendonasikan",content:"Dengan mengajukan donasi barang, anda mengonfirmasi bahwa:",list:["Anda diizinkan secara hukum untuk mendonasikan barang tersebut.","Barang tersebut adalah milik anda dan bebas dari klaim pihak ketiga.","Anda berusia minimal 18 tahun atau memiliki izin dari orang tua/wali jika di bawah 18 tahun."]},{title:"Kondisi Barang yang Didonasikan",content:"Semua barang yang didonasikan harus dalam kondisi baik dan dapat digunakan. PMI berhak menolak barang apa pun yang:",list:["Rusak, patah, atau tidak berfungsi.","Menimbulkan bahaya kesehatan atau keselamatan.","Tidak memenuhi kebutuhan saat ini dari penerima manfaat kami."]},{title:"Proses Donasi",content:"Setelah mengajukan formulir donasi:",list:["PMI akan meninjau pengajuan anda untuk memastikan bahwa itu memenuhi kriteria kami.","PMI mungkin menghubungi anda untuk detail lebih lanjut tentang barang yang didonasikan atau untuk mengatur pengambilan atau pengantaran.","PMI tidak bertanggung jawab atas biaya transportasi kecuali disepakati sebaliknya."]},{title:"Penggunaan Barang yang Didonasikan",content:"Semua barang yang didonasikan akan digunakan semata-mata untuk mendukung upaya kemanusiaan PMI, yang mungkin termasuk distribusi kepada penerima manfaat, digunakan dalam operasi PMI, atau dijual untuk mengumpulkan dana untuk program kami. PMI berhak untuk mengalokasikan atau membuang barang sesuai dengan kebutuhan saat ini dan pertimbangan logistik."},{title:"Privasi dan Perlindungan Data",content:"Dengan mengajukan formulir, anda menyetujui pengumpulan dan penggunaan informasi pribadi anda sesuai dengan Kebijakan Privasi PMI. Data anda hanya akan digunakan untuk tujuan pemrosesan donasi anda dan tidak akan dibagikan kepada pihak ketiga tanpa persetujuan anda."},{title:"Pengakuan Donasi",content:"PMI dapat memberikan pengakuan atas donasi anda, tetapi pengakuan ini tidak berfungsi sebagai tanda terima untuk keperluan pajak. Untuk klaim pemotongan pajak, silakan konsultasikan dengan otoritas pajak setempat dan pastikan mematuhi peraturan yang relevan."},{title:"Perubahan Syarat",content:"PMI berhak untuk memperbarui syarat dan ketentuan ini kapan saja. Perubahan akan berlaku segera setelah diposting di situs web. Penggunaan formulir Donasi Barang yang berkelanjutan menunjukkan penerimaan anda terhadap perubahan tersebut."},{title:"Informasi Kontak",content:"Jika anda memiliki pertanyaan tentang syarat ini atau proses donasi, silakan hubungi kami di:",list:["[masukkan email]","[masukkan nomor telepon]"]}]},MCe={lendYourTalents:"Sumbangkan Keahlian anda, Selamatkan Nyawa",empowerMission:"Dukung Misi Kami dengan Keahlian anda",volunteeringIntro:"Di PMI, kami percaya bahwa setiap keahlian dan layanan dapat menyelamatkan nyawa. Dengan mendonasikan keahlian andaâbaik di bi
180dang kesehatan, logistik, pendidikan, atau dukungan teknisâAnda langsung berkontribusi pada misi kami. Pengetahuan profesional dan bantuan langsung anda memungkinkan kami merespons keadaan darurat dan kebutuhan yang terus berlanjut dengan lebih efektif.",volunteeringImpact:"Menjadi relawan di PMI lebih dari sekedar membantuâini tentang membuat perubahan yang bertahan lama. Para relawan kami adalah tulang punggung operasi kami, memberikan dukungan vital selama keadaan darurat, melatih komunitas, dan menyediakan layanan penting. Apakah anda seorang profesional medis, guru, insinyur, atau hanya memiliki hasrat untuk membantu orang lain, ada tempat untuk anda di PMI.",volunteersBackground:"Relawan kami berasal dari berbagai latar belakang, disatukan oleh komitmen bersama untuk pekerjaan kemanusiaan. Mereka adalah siswa, profesional, pensiunan, dan pahlawan sehari-hari yang membawa keterampilan unik mereka. Bersama-sama, mereka membentuk kekuatan yang mendorong misi kami maju.",volunteeringInAction:"Aksi Kerelawanan",learnMoreVolunteering:"Pelajari Lebih Lanjut Tentang Menjadi Relawan",visitVolunteersPageSignUp:"Kunjungi Halaman Relawan kami dan Daftar untuk mulai berkontribusi dengan keahlian anda hari ini. Keterampilan anda dapat menyelamatkan nyawa dan mendukung masyarakat yang membutuhkan. Bergabunglah dengan kami untuk membuat perbedaanâbersama-sama, kita bisa mencapai lebih banyak.",visitVolunteersPage:"Gabung Sekarang"},DCe={title:"Kemitraan",marketingToolsCatalog:"Alat Pemasaran / Katalog Program",exploreMarketingTools:"Jelajahi Alat Pemasaran & Penawaran Program Kami yang Komprehensif",disasterResponseProgram:{title:"Program Tanggap Bencana",programs:"Program Manajemen Bencana",importance:"Pentingnya Program Tanggap Bencana Kami",description:"Program Tanggap Bencana adalah inisiatif penting dalam kemitraan kami yang berfokus pada pemberian bantuan segera kepada komunitas yang terkena dampak bencana alam. Melalui upaya kolaboratif dengan pemerintah setempat, LSM, dan relawan, program ini memastikan pengiriman sumber daya yang cepat, termasuk bantuan medis, pasokan makanan, dan tempat penampungan, kepada mereka yang membutuhkan. Tim kami bekerja tanpa henti untuk menilai situasi, mengoordinasikan upaya bantuan, dan menerapkan strategi yang efektif untuk menangani tantangan langsung yang dihadapi populasi yang terdampak. Dengan memperkuat kemitraan, kami meningkatkan kapasitas kami untuk merespons dengan cepat dan efisien, membantu komunitas pulih dan bangkit kembali setelah bencana."},disasterPreparednessProgram:{title:"Program Kesiapsiagaan Bencana",programs:"Program Manajemen Bencana",importance:"Membangun Ketahanan",description:"Program Kesiapsiagaan Bencana adalah inisiatif proaktif yang bertujuan untuk melengkapi komunitas dengan keterampilan dan pengetahuan penting untuk merespons bencana alam secara efektif. Melalui kombinasi lokakarya pelatihan, sumber daya pendidikan, dan simulasi praktis, kami memberdayakan individu dan organisasi lokal untuk memahami risiko yang mereka hadapi dan mengembangkan rencana tindakan tanggap. Program ini mendorong kolaborasi antara anggota komunitas dan otoritas lokal, memastikan bahwa semua orang siap dan mengetahui peran mereka di masa krisis. Dengan menekankan kesiapsiagaan, kami bertujuan untuk meminimalkan dampak bencana, melindungi nyawa, dan meningkatkan ketahanan komunitas di seluruh Indonesia."},disasterRecovery:{title:"Pemulihan Bencana",programs:"Program Manajemen Bencana",importance:"Membangun Kembali Kehidupan",description:"Program Pemulihan Bencana didedikasikan untuk mendukung komunitas dalam perjalanan mereka untuk memulihkan dan membangun kembali setelah bencana melanda. Pendekatan kami berfokus pada pemberian bantuan segera dan dukungan jangka panjang, memastikan bahwa individu yang terdampak memiliki akses ke sumber daya penting seperti perumahan, perawatan kesehatan, dan dukungan keuangan. Kami bekerja sama dengan pemerintah lokal dan organisasi untuk memfasilitasi proses pemulihan yang komprehensif, yang tidak hanya memulihkan infrastruktur fisik tetapi juga menangani kebutuhan emosional dan psikologis mereka yang terkena dampak. Dengan mendorong keterlibatan dan ketahanan komunitas, program ini membantu keluarga mendapatkan stabilitas kembali, memberdayakan mereka untu
180k membangun kembali kehidupan mereka dan berkembang di tengah kesulitan."},emergencyHealth:{title:"Kesehatan Darurat",programs:"Program Kesehatan",importance:"Tanggap Cepat Terhadap Krisis Kesehatan",description:"Program Kesehatan Darurat dirancang untuk memberikan bantuan medis segera selama bencana dan keadaan darurat kesehatan. Tenaga kesehatan terlatih kami segera diterjunkan ke daerah yang terkena dampak, memberikan perawatan medis esensial, layanan triase, dan pengobatan penyelamat nyawa kepada mereka yang membutuhkan. Dengan berkolaborasi dengan otoritas kesehatan lokal dan organisasi, kami memastikan bahwa populasi yang rentan menerima perhatian yang cepat dan akses ke layanan kesehatan yang penting. Program ini tidak hanya menangani masalah kesehatan segera tetapi juga meletakkan dasar untuk pemulihan jangka panjang dan ketahanan, memperkuat sistem kesehatan dalam komunitas yang terkena dampak."},socialServices:{title:"Layanan Sosial",programs:"Program Kesehatan",importance:"Mendukung Kesejahteraan Komunitas",description:"Program Layanan Sosial berfokus pada meningkatkan kesejahteraan individu dan keluarga yang membutuhkan. Dengan menawarkan berbagai layanan dukungan, termasuk konseling, bantuan gizi, dan advokasi, kami menangani determinan sosial kesehatan yang mempengaruhi populasi yang rentan. Tim berdedikasi kami bekerja untuk mengidentifikasi tantangan unik yang dihadapi komunitas, menyediakan solusi yang disesuaikan yang memberdayakan individu untuk meningkatkan kualitas hidup mereka. Melalui kolaborasi dengan organisasi dan pemangku kepentingan lokal, kami berupaya menciptakan lingkungan yang mendukung di mana setiap orang dapat mengakses sumber daya yang mereka butuhkan untuk berkembang."},publicHealth:{title:"Kesehatan Masyarakat",programs:"Program Kesehatan",importance:"Meningkatkan Kesehatan dan Mencegah Penyakit",description:"Program Kesehatan Masyarakat bertujuan untuk meningkatkan hasil kesehatan masyarakat melalui langkah-langkah pencegahan, pendidikan, dan inisiatif kesadaran. Dengan berfokus pada area kritis seperti kampanye vaksinasi, sanitasi, dan pendidikan kesehatan, kami bekerja untuk mengurangi kejadian penyakit menular dan mempromosikan gaya hidup sehat. Pendekatan kami menekankan keterlibatan masyarakat, memastikan bahwa individu memahami pentingnya praktik kesehatan preventif dan akses ke layanan kesehatan yang diperlukan. Melalui kemitraan dengan otoritas kesehatan lokal dan organisasi, kami berupaya membangun komunitas yang lebih sehat dan meningkatkan kesejahteraan populasi yang kami layani."},waterSanitationHygiene:{title:"Layanan Air, Sanitasi, dan Kebersihan (WASH)",importance:"Menjamin Akses ke Layanan WASH",description:"Program Layanan Air, Sanitasi, dan Kebersihan (WASH) didedikasikan untuk mempromosikan kesehatan dan kesejahteraan dengan memastikan akses ke air bersih, sanitasi yang memadai, dan praktik kebersihan yang tepat di komunitas di seluruh Indonesia. Menyadari peran penting yang dimainkan oleh WASH dalam mencegah penyakit dan meningkatkan kualitas hidup, kami bekerja tanpa henti untuk menerapkan solusi yang berkelanjutan, seperti membangun sistem pasokan air bersih, memperbaiki fasilitas sanitasi, dan melaksanakan kampanye pendidikan kebersihan. Melalui kolaborasi dengan komunitas dan mitra lokal, kami memberdayakan individu untuk mengadopsi perilaku yang lebih sehat, sehingga mengurangi risiko penyakit yang ditularkan melalui air dan menciptakan lingkungan yang lebih bersih dan lebih sehat bagi semua."},contactForm:{title:"Formulir Kontak",companyName:"Nama Perusahaan",companyNamePlaceholder:"Masukkan nama perusahaan",notes:"Tujuan Kemitraan",notesPlaceholder:"Masukkan tujuan kemitraan",contactDetails:"Detail Kontak",name:"Nama",email:"Alamat Email",phoneNumber:"Nomor Telepon",termsAccepted:"Saya telah membaca dan menyetujui Kebijakan Privasi terkait pengumpulan dan penggunaan data pribadi saya.",submit:"Kirim"},submissionSuccess:{title:"Pengiriman Berhasil!",message:"Pengiriman anda telah berhasil diterima.",appreciation:"Kami menghargai minat dan komitmen anda untuk membuat perbedaan. Tim kami akan meninjau informasi anda dan segera menghubungi anda kembali. Bersama, kita dapat menciptakan dampak positif dan membantu mereka yang membutuhkan. Terima kasih atas kontribusi anda!",contactUs:"Punya Pertanyaan? Hubungi Kami!",immediateContact:"Jika anda memiliki pertanyaan atau kekhawatiran mendesak, jangan ragu untuk menghubungi kami langsung melalui email [email protected] atau pesan ke +6221 7992325."},hallOfFame:{platinum:{title:"Platinum",description:"Donasi sebesar IDR 5 miliar ke atas",detail
180:"Donatur Platinum dihormati atas dedikasi luar biasa mereka dalam filantropi, memainkan peran penting dalam memberdayakan PMI untuk memberikan layanan penyelamatan nyawa dalam skala besar.",logos:["LOGOIPSUM","logoipsum","FACTORY","COMPANY"]},gold:{title:"Emas",description:"Donasi antara IDR 1 miliar dan IDR 5 miliar",detail:"Donatur tingkat Emas dihormati atas dukungan luar biasa mereka dalam mengubah kehidupan dan memungkinkan PMI memperluas upaya kemanusiaannya.",logos:["LOGOIPSUM","logoipsum","FACTORY","COMPANY"]},silver:{title:"Perak",description:"Donasi antara IDR 500 juta dan IDR 1 miliar",detail:"Donatur tingkat Perak diakui atas kontribusi besar mereka dalam meningkatkan kemampuan PMI untuk menyediakan layanan penting dan perawatan.",logos:["LOGOIPSUM","logoipsum","FACTORY","COMPANY"]},bronze:{title:"Perunggu",description:"Donasi antara IDR 100 juta dan IDR 500 juta",detail:"Donatur tingkat Perunggu dihormati atas kemurahan hati mereka dalam memberikan dampak yang berarti di masyarakat.",logos:["LOGOIPSUM","logoipsum","FACTORY","COMPANY"]},thankYou:{title:"Terima Kasih atas Dukungan Luar Biasa anda",description:"Di Palang Merah Indonesia (PMI), misi kami untuk memberikan layanan penyelamatan nyawa dan bantuan bencana tidak akan mungkin terjadi tanpa kemurahan hati para donatur seperti anda. Kontribusi anda tidak hanya membantu kami merespons dengan cepat di saat krisis, tetapi juga memperkuat masyarakat melalui program kesiapsiagaan, kesehatan, dan sosial.",gratitude:"Kami mengucapkan terima kasih yang sedalam-dalamnya kepada setiap donatur yang ditampilkan di Hall of Fame kami. Dukungan tanpa pamrih anda memungkinkan kami untuk melanjutkan upaya kemanusiaan kami, membawa harapan dan perawatan bagi mereka yang membutuhkan. Bersama-sama, kita membuat perbedaan yang berarti.",conclusion:"Terima kasih telah menjadi bagian penting dari perjalanan kami menuju masa depan yang lebih cerah dan lebih aman bagi semua."}}},_Ce={title:"Dampak Donasi",description:"Terima kasih kepada para donatur yang telah memberikan dampak berarti bagi kemanusiaan. Dampak Donasi ini menampilkan kisah sukses dan testimoni dari berbagai penerima manfaat, menyoroti efek positif dari program tersebut. Format penyajian dampak donasi bisa berupa infografis atau narasi kisah sukses.",successStories:"Kisah Sukses",inspiringStories:"Kisah Inspiratif tentang Ketangguhan dan Harapan",infographic:"Infografis",snapshot:"Gambaran Singkat Tentang Pemanfaatan Donasi anda"},ICe={certifiedPersonnels:"Personel Bersertifikat",accessors:"Asesor",courses:"Okupasi",topics:"Topik",overview:"Ikhtisar",keyPoints:"Poin Penting",whoShouldTake:"Siapa yang Harus Mengikuti Sertifikasi Ini?",competencyUnits:"Unit Kompetensi",certificationSchemes:"Skema Sertifikasi",competency:{table:{code:"Kode Unit Kompetensi",unit:"Unit Kompetensi"}},emergencyResponse:{title:"Respon Darurat",description:"Kembangkan keterampilan penting untuk menangani situasi darurat dengan percaya diri dan ketepatan",certificationSchemes:{title:"Skema Sertifikasi",list:["Manajer untuk Operasi Tanggap Bencana dan Krisis Kesehatan","Manajer Junior untuk Operasi Tanggap Bencana dan Krisis Kesehatan","Koordinator Senior untuk Penilaian Cepat Dampak Bencana dan Krisis Kesehatan","Operator Senior untuk Penilaian Cepat Dampak Bencana dan Krisis Kesehatan","Koordinator Senior untuk Pencarian, Penyelamatan, dan Evakuasi","Eksekutor Senior untuk Pencarian, Penyelamatan, dan Evakuasi","Manajer untuk Pengelolaan Tempat Penampungan Darurat","Koordinator Senior untuk Pengelolaan Tempat Penampungan Darurat","Manajer Junior untuk Distribusi Bantuan","Koordinator Senior untuk Distribusi Bantuan"]},competencyUnits:"Lihat Unit Kompetensi",overview:{description:"Respon darurat sangat penting untuk meminimalkan kehilangan nyawa dan mengurangi dampak bencana serta krisis kesehatan. Baik menghadapi bencana alam, pandemi, atau keadaan darurat berskala besar, strategi respon yang efektif memerlukan koordinasi cepat dan pengetahuan ahli. Mulai dari mengatur operasi pencarian dan penyelamatan hingga mengelola upaya evakuasi, para profesional harus bertindak cepat dan tegas untuk melindungi masyarakat yang terdampak. Menguasai teknik manajemen bencana memastikan bahwa responder siap menangani situasi yang tidak terduga dengan presisi, mencegah eskalasi lebih lanjut.",nextDescription:"Respon darurat yang berhasil melampaui upaya penyelamatan langsung dengan mencakup pengelolaan tempat penampungan darurat dan distribusi bantuan yang efisien. Memberikan tempat tinggal sementara bagi individu yang mengungsi dan memastikan akses ke sumber daya penting seperti makanan, pasokan medis, dan perlengkapan kebersih
180an adalah komponen utama pemulihan pasca-krisis. Penilaian dampak cepat membantu mengidentifikasi tingkat kerusakan, memungkinkan organisasi memprioritaskan tindakan mereka dan melakukan intervensi yang tepat sasaran. Dengan keterampilan dan kesiapan yang tepat, responder darurat memainkan peran penting dalam memulihkan stabilitas dan harapan bagi populasi yang terdampak."},keyPoints:[{title:"Kesiapsiagaan dan Perencanaan",description:"Respon darurat yang efektif dimulai dengan kesiapsiagaan yang tepat. Pemerintah, organisasi kemanusiaan, dan komunitas lokal harus memiliki rencana sebelum bencana terjadi. Ini mencakup membangun jaringan komunikasi, membentuk tim tanggap darurat, melatih personel, dan menyimpan persediaan penting seperti makanan, air, peralatan medis, dan bahan tempat tinggal."},{title:"Penilaian Cepat dan Koordinasi",description:"Setelah bencana terjadi, langkah pertama adalah menilai tingkat kerusakan dan kebutuhan populasi terdampak. Ini membutuhkan kolaborasi antara otoritas lokal, lembaga nasional, dan organisasi internasional. Penilaian kebutuhan cepat membantu mengidentifikasi kebutuhan paling mendesak, seperti operasi pencarian dan penyelamatan, perawatan medis, makanan, air, dan tempat tinggal."},{title:"Operasi Pencarian dan Penyelamatan",description:"Segera setelah bencana, tim pencarian dan penyelamatan (SAR) dikerahkan untuk menemukan dan membantu korban. Tim ini menggunakan peralatan khusus, seperti anjing pelacak, drone, dan pencitraan termal, untuk menemukan korban yang terperangkap di bawah reruntuhan atau di area yang sulit dijangkau."},{title:"Penyediaan Kebutuhan Dasar",description:"Salah satu prioritas utama dalam jam-jam awal darurat adalah menyediakan makanan, air, bantuan medis, dan tempat tinggal sementara. Unit medis keliling, persediaan makanan darurat, dan air minum bersih sangat penting untuk mencegah penyebaran penyakit dan memastikan kelangsungan hidup populasi terdampak."},{title:"Perawatan Medis dan Kesehatan Masyarakat",description:"Tim tanggap kesehatan menyediakan layanan medis darurat, termasuk triase, perawatan bedah, dan dukungan psikologis. Risiko penyakit menular sering meningkat setelah bencana, dan tim medis juga fokus pada pengendalian wabah dan pemberian vaksin, terutama di tempat penampungan yang padat."},{title:"Tempat Tinggal dan Perumahan",description:"Penyediaan tempat penampungan sementara atau pendirian kamp pengungsi sangat penting bagi populasi yang kehilangan tempat tinggal. Tempat penampungan darurat harus dirancang untuk memberikan perlindungan dari elemen luar sambil menjaga privasi dan keamanan. Penggunaan tenda, terpal, dan rumah mobil umum dilakukan, tetapi upaya pemulihan jangka panjang sering difokuskan pada pembangunan perumahan permanen."},{title:"Logistik dan Manajemen Rantai Pasok",description:"Logistik yang efisien sangat penting untuk memastikan bantuan mencapai mereka yang membutuhkan secepat mungkin. Ini mencakup pengelolaan rute transportasi, koordinasi pengiriman pasokan, dan memastikan titik distribusi dapat diakses. Tantangan sering muncul karena infrastruktur yang rusak, yang dapat menunda kedatangan sumber daya kritis."},{title:"Komunikasi",description:"Komunikasi yang efektif sangat penting selama bencana. Selain membantu mengoordinasikan upaya tanggap, komunikasi juga menyediakan informasi penting bagi komunitas yang terdampak. Kampanye informasi publik, sistem penyiaran darurat, dan media sosial digunakan untuk menyebarkan peringatan, instruksi keselamatan, dan pembaruan."},{title:"Kolaborasi dan Koordinasi",description:"Respon bencana melibatkan koordinasi berbagai pemangku kepentingan, termasuk pemerintah lokal, lembaga nasional, organisasi internasional, organisasi non-pemerintah (NGO), dan sektor swasta. Kemampuan untuk bekerja sama secara efektif sangat penting untuk memastikan sumber daya digunakan secara efisien dan tidak ada duplikasi upaya."},{title:"Keamanan dan Perlindungan",description:"Dalam banyak kasus, bencana dapat menyebabkan kerusuhan sosial atau masalah keamanan, seperti penjarahan atau kekerasan di tempat penampungan. Memastikan keselamatan populasi terdampak, tim tanggap, dan pekerja bantuan adalah hal yang utama. Personel keamanan dan penegak hukum mungkin diperlukan untuk menjaga ketertiban."}],certificationAudience:[{title:"Responden Pertama dan Personel Darurat",description:"Polisi, pemadam kebakaran, paramedis, dan lainnya yang terlibat dalam operasi darurat garis depan."},{title:"Tenaga Kesehatan dan Staf Bantuan Kemanusiaan",description:"Dokter, perawat, pekerja bantuan, dan relawan yang berpartisipasi dalam misi bantuan bencana."},{title:"Pemimpin Komunitas dan Manajer Risiko Bencana",description:"Individu yang bertanggung jawab mengorganisir kesiapsiagaan bencana lokal dan tanggap darurat."},{title:"Pejabat LSM dan Pemerintah",description:"Personel yang bekerja di lembaga manajemen bencana, tempat penampungan darurat, atau departemen keselamatan publik."}],competencyUnitsDetails:{units:{disasterManagement:{title:"Manajemen Krisis Bencana dan Kesehatan",modules:["Modul 1: Dasar-
180Dasar Pengajaran","Modul 2: Menguasai Penyampaian Pelatihan","Modul 3: Teknik Pengajaran Lanjutan","Modul 4: Kepemimpinan dan Pendampingan dalam Program Pelatihan","Modul 5: Metode Penilaian dan Umpan Balik"],finalAssessment:"Penilaian Akhir: Buat dan sampaikan program pelatihan untuk tinjauan sejawat"},impactAssessment:{title:"Penilaian Dampak Cepat untuk Bencana dan Krisis Kesehatan",modules:["Modul 1: Dasar-Dasar Pengajaran","Modul 2: Menguasai Penyampaian Pelatihan","Modul 3: Teknik Pengajaran Lanjutan","Modul 4: Kepemimpinan dan Pendampingan dalam Program Pelatihan","Modul 5: Metode Penilaian dan Umpan Balik"],finalAssessment:"Penilaian Akhir: Buat dan sampaikan program pelatihan untuk tinjauan sejawat"},searchRescue:{title:"Pencarian, Penyelamatan, dan Evakuasi",modules:["Modul 1: Dasar-Dasar Pengajaran","Modul 2: Menguasai Penyampaian Pelatihan","Modul 3: Teknik Pengajaran Lanjutan","Modul 4: Kepemimpinan dan Pendampingan dalam Program Pelatihan","Modul 5: Metode Penilaian dan Umpan Balik"],finalAssessment:"Penilaian Akhir: Buat dan sampaikan program pelatihan untuk tinjauan sejawat"},shelterManagement:{title:"Manajemen Tempat Penampungan Darurat",modules:["Modul 1: Dasar-Dasar Pengajaran","Modul 2: Menguasai Penyampaian Pelatihan","Modul 3: Teknik Pengajaran Lanjutan","Modul 4: Kepemimpinan dan Pendampingan dalam Program Pelatihan","Modul 5: Metode Penilaian dan Umpan Balik"],finalAssessment:"Penilaian Akhir: Buat dan sampaikan program pelatihan untuk tinjauan sejawat"},aidDistribution:{title:"Distribusi Bantuan",modules:["Modul 1: Dasar-Dasar Pengajaran","Modul 2: Menguasai Penyampaian Pelatihan","Modul 3: Teknik Pengajaran Lanjutan","Modul 4: Kepemimpinan dan Pendampingan dalam Program Pelatihan","Modul 5: Metode Penilaian dan Umpan Balik"],finalAssessment:"Penilaian Akhir: Buat dan sampaikan program pelatihan untuk tinjauan sejawat"}}}},disasterRiskReduction:{title:"Pengurangan Risiko Bencana",description:"Pendekatan komprehensif untuk mengidentifikasi, menilai, dan mengurangi risiko bencana, dengan tujuan membangun komunitas yang tangguh.",overview:{description:"Pengurangan Risiko Bencana (PRB) melibatkan langkah-langkah proaktif untuk mencegah atau mengurangi dampak dari bahaya alam dan buatan manusia, meminimalkan dampaknya pada komunitas, ekonomi, dan ekosistem. Ini juga menekankan pembangunan ketahanan untuk mengatasi dan pulih dari bencana secara efektif.",nextDescription:"Dengan mendorong kolaborasi antara pemerintah, organisasi, dan komunitas, serta komitmen untuk manajemen risiko jangka panjang, PRB bertujuan untuk mengurangi dampak bencana dan mempersiapkan masyarakat untuk tantangan di masa depan."},certificationSchemes:{list:["Supervisor Senior Penilaian Risiko Berbasis Komunitas untuk Bencana dan Krisis Kesehatan","Ahli Muda Penilaian Risiko Berbasis Komunitas untuk Bencana dan Krisis Kesehatan","Operator Senior Penilaian Risiko Berbasis Komunitas untuk Bencana dan Krisis Kesehatan","Supervisor Senior untuk Desa Tangguh Berbasis Komunitas dalam Menghadapi Bencana dan Krisis Kesehatan","Ahli Muda untuk Desa Tangguh Berbasis Komunitas dalam Menghadapi Bencana dan Krisis Kesehatan","Operator Senior untuk Desa Tangguh Berbasis Komunitas dalam Menghadapi Bencana dan Krisis Kesehatan","Supervisor Senior untuk Promosi Pengurangan Risiko Bencana","Ahli Muda untuk Promosi Pengurangan Risiko Bencana","Operator Senior untuk Promosi Pengurangan Risiko Bencana","Manajer Muda untuk Pemberdayaan Komunitas Tangguh Menghadapi Bencana dan Krisis Kesehatan","Koordinator Senior untuk Pemberdayaan Komunitas Tangguh Menghadapi Bencana dan Krisis Kesehatan","Operator Senior untuk Pemberdayaan Komunitas Tangguh Menghadapi Bencana dan Krisis Kesehatan","Manajer Muda untuk Pemberdayaan Pendidikan Aman Bencana","Koordinator Senior untuk Pemberdayaan Pendidikan Aman Bencana","Operator Senior untuk Pemberdayaan Pendidikan Aman Bencana"]},keyPoints:[{title:"Penilaian Risiko",description:"Mengidentifikasi potensi bahaya dan mengevaluasi risiko terhadap manusia, properti, infrastruktur, dan lingkungan. Ini melibatkan analisis kerentanannya dan pemahaman tentang kemungkinan serta tingkat keparahan bencana seperti gempa bumi, banjir, dan kecelakaan industri."},{title:"Pencegahan dan Mitigasi",description:"Melakukan langkah-langkah untuk mencegah bencana atau mengurangi dampaknya. Pencegahan mencakup kebijakan seperti perencanaan penggunaan lahan, sementara mitigasi melibatkan tindakan seperti memperkuat infrastruktur dan membangun sistem peringatan dini."},{title:"Kesiapsiagaan",description:"Memastikan kesiapan untuk merespons bencana secara efektif melalui rencana tanggap darurat, pelatihan, simulasi, dan sistem peringatan dini."},{title:"Respon dan Pemulihan",description:"Memberikan bantuan darurat, seperti pencarian dan penyelamatan, bantuan medis, dan makanan, diikuti dengan membangun kembali dan memulihkan komunitas sambil menangani dampak psikologis dan meningkatkan ketahanan di masa depan."},{title:"Membangun Ketahanan",description:"Meningkatkan kemampuan individu dan sistem untuk beradaptasi dan pulih dari bencana. Ini mencakup memperkuat infrastruktur, mendiversifikasi mata pencaharian, meningkatkan pendidikan, dan mend
180orong keterlibatan komunitas."}],certificationAudience:[{title:"Personel Pengurangan Risiko Bencana",description:"Profesional yang mengkhususkan diri dalam mengurangi risiko bencana dan mempromosikan ketahanan komunitas."},{title:"Pemimpin Komunitas dan Manajer Risiko Bencana",description:"Individu yang bertanggung jawab untuk mengorganisir kesiapsiagaan lokal dan respons darurat."},{title:"Pejabat LSM dan Pemerintah",description:"Personel yang bekerja di agen manajemen bencana, departemen keselamatan publik, atau tempat penampungan darurat."}]},healthcareServices:{title:"Layanan Kesehatan",description:"Berbagai layanan yang dirancang untuk memelihara, meningkatkan, dan mengembalikan kesehatan serta kesejahteraan individu dan komunitas.",overview:{description:"Layanan kesehatan mencakup berbagai kegiatan yang bertujuan mencegah penyakit, mengobati kondisi medis, mengelola penyakit kronis, dan mempromosikan kesehatan secara keseluruhan. Diberikan oleh profesional terlatih di sektor publik dan swasta, layanan ini penting untuk memelihara dan meningkatkan kesehatan individu dan komunitas.",nextDescription:"Sertifikasi dalam layanan kesehatan meningkatkan kualitas, keselamatan, dan efisiensi sistem kesehatan, memastikan perbaikan berkelanjutan, kepatuhan terhadap regulasi, dan perawatan berkualitas tinggi untuk pasien."},certificationSchemes:{list:["Koordinator Senior untuk Promosi Kesehatan","Operator Senior untuk Promosi Kesehatan","Koordinator Senior untuk Pertolongan Pertama","Operator Senior untuk Pertolongan Pertama","Koordinator Senior untuk Layanan Ambulans","Operator Senior untuk Layanan Ambulans","Supervisor Senior untuk Kesehatan dan Keselamatan Kerja","Operator untuk Kesehatan dan Keselamatan Kerja","Koordinator Senior untuk Dukungan Psiko-sosial","Operator Senior untuk Dukungan Psiko-sosial"]},keyPoints:[{title:"Perawatan Darurat",description:"Layanan perawatan darurat memberikan perawatan segera untuk kondisi yang mengancam jiwa, seperti serangan jantung, stroke, trauma, dan kecelakaan. Layanan ini diberikan di ruang gawat darurat, pusat perawatan darurat, dan melalui layanan ambulans."},{title:"Layanan Kesehatan Masyarakat",description:"Layanan kesehatan masyarakat fokus pada promosi kesehatan, pencegahan penyakit, dan pengendalian risiko kesehatan. Program-program ini termasuk kampanye vaksinasi, edukasi kesehatan, pengawasan penyakit, upaya kesehatan lingkungan, dan inisiatif untuk mengurangi disparitas kesehatan."},{title:"Tenaga Kerja",description:"Tenaga kerja terampil di bidang kesehatan, termasuk dokter, perawat, teknisi, dan staf pendukung, sangat penting untuk memberikan perawatan kesehatan berkualitas tinggi. Pelatihan berkelanjutan dan pengembangan profesional sangat penting untuk memastikan pekerja kesehatan tetap terinformasi dengan kemajuan medis dan praktik perawatan pasien."},{title:"Jaminan Kualitas",description:"Jaminan kualitas memastikan layanan kesehatan memenuhi standar dan pedoman yang meningkatkan hasil kesehatan, memastikan perawatan pasien yang efektif, efisien, dan aman."},{title:"Keamanan Pasien",description:"Sertifikasi keamanan pasien memastikan penyedia layanan kesehatan mengikuti praktik terbaik untuk meminimalkan risiko cedera pada pasien, meningkatkan perawatan pasien, dan mengurangi kesalahan medis."},{title:"Kepatuhan Regulasi",description:"Sertifikasi memastikan penyedia layanan kesehatan mematuhi peraturan lokal, nasional, dan internasional, serta persyaratan akreditasi, untuk menjaga standar tinggi dalam perawatan pasien."},{title:"Kredibilitas dan Kepercayaan",description:"Sertifikasi memberikan jaminan kepada pasien bahwa profesional dan fasilitas kesehatan kompeten, dapat dipercaya, dan berdedikasi untuk memberikan perawatan berkualitas tinggi."}],certificationAudience:[{title:"Penanggap Pertolongan Pertama dan Personel Darurat",description:"Polisi, pemadam kebakaran, paramedis, dan personel darurat lainnya yang terlibat dalam perawatan darurat garis depan dan operasi."},{title:"Pekerja Kesehatan dan Staf Bantuan Kemanusiaan",description:"Dokter, perawat, pekerja bantuan, dan relawan yang terlibat dalam upaya bantuan bencana dan misi kesehatan."}]},bloodServices:{title:"Layanan Darah",description:"Layanan donor darah sangat penting untuk memastikan ketersediaan darah dan produk darah yang aman dan menyelamatkan nyawa bagi pasien yang membutuhkan transfusi.",overview:{description:"Layanan donor darah mengelola pengumpulan, pengujian, pemrosesan, penyimpanan, dan distribusi darah. Layanan ini memainkan peran krusial dalam mengobati kondisi medis seperti trauma, bedah, kanker, anemia, dan penyakit kronis. Dengan mendukung donor darah, layanan ini memenuhi permintaan yang terus meningkat untuk pasokan darah, memastikan produk darah yang menyelamatkan nyawa tersedia saat dibutuhkan.",nextDescription:"Sertifikasi dalam layanan darah memastikan keselamatan, kualitas, dan penanganan etis dari donor darah, mempertahankan pasokan darah yang andal dan melindungi baik donor maupun penerima."},certificationSchemes:{list:["Manajer untuk Manajemen Darah","Supervisor Junior untuk Rekrutmen Donor Darah Sukarela","Teknisi Junior untuk Distribusi Darah","Teknisi Junior untuk Pemeriksaan Pra Transfusi Darah","Teknisi Junior untuk Pengetikan Darah","Teknisi Junior untuk Pengolahan Darah","Teknisi Junior untuk Kontrol Kualitas","Teknisi Junior untuk Tes Darah"]},keyPoints:[{title:"Kelayakan dan Penyaringan Donor",description:"Organisasi donor darah bersertifikat harus menerapkan proses penyaringan yang komprehensif, termasuk penilaian kesehatan, tinjauan riwayat medis, dan pengujian untuk penyakit menular guna memastikan keselamatan donor dan penerima."},{title:"Praktik Pengumpulan Darah",description:"Sertifikasi memastikan bahwa donor darah dilakukan di lingkungan yang steril, aman, dan higienis, mengikuti protokol identifikasi yang benar, metode pengumpulan, dan penggunaan peralatan steril sekali pakai."},{title:"Pengujian dan Pemrosesan Darah",description:"Darah yang didonasikan diuji secara ketat untuk infeksi umum seperti HIV, hepatitis B dan C, dan sifilis. Layanan yang disertifikasi juga mengikuti pedoman untuk pengetikan darah, pencocokan silang, dan pemisahan darah menjadi komponen-komponen seperti plasma, trombosit, dan sel darah merah."},{title:"Penyimpanan dan Distribusi Darah",description:"Organisasi yang disertifikasi menyimpan dan mengang
180kut produk darah di bawah standar suhu dan lingkungan yang ketat untuk menjaga potensi dan keselamatan, memastikan pengiriman tepat waktu dan mengurangi risiko."},{title:"Pencatatan dan Penelusuran",description:"Catatan rinci dipelihara untuk semua sumbangan, pengujian, dan produk darah, memastikan penelusuran dan memberikan sejarah penggunaan produk darah jika terjadi peristiwa yang merugikan."},{title:"Jaminan Kualitas dan Pemantauan Keamanan",description:"Langkah-langkah kontrol kualitas yang berkelanjutan diterapkan untuk memastikan efektivitas pengumpulan, pengujian, dan pemrosesan darah. Audit rutin dan inspeksi eksternal memverifikasi kepatuhan terhadap standar keselamatan dan kualitas."},{title:"Edukasi dan Dukungan Donor",description:"Organisasi yang disertifikasi memberikan edukasi dan dukungan kepada donor, memastikan mereka mendapatkan informasi yang baik tentang proses donor, risikonya, dan perawatan setelah donor. Keamanan dan kenyamanan donor diprioritaskan untuk meminimalkan reaksi merugikan."}],certificationAudience:[{title:"Pekerja Kesehatan dalam Donor Darah",description:"Dokter, perawat, pekerja bantuan, dan relawan yang terlibat dalam upaya donor darah, memastikan proses donor darah aman, efisien, dan etis."}]},jobTraining:{title:"Pelatihan Kerja",description:"Pelatihan kerja membantu individu mengembangkan keterampilan dan pengetahuan khusus yang dibutuhkan untuk melakukan tugas secara efektif, dengan pelatih yang berperan penting dalam menjembatani kesenjangan antara pengetahuan teoretis dan penerapan praktis.",overview:{description:"Pelatihan kerja melibatkan perancangan, penyampaian, dan penilaian program pelatihan untuk membekali karyawan dengan keterampilan yang dibutuhkan untuk memenuhi harapan kinerja. Pelatih bekerja di berbagai industri seperti manufaktur, layanan kesehatan, teknologi, dan perdagangan, serta mengajarkan keterampilan teknis dan non-teknis untuk mencapai efisiensi dan kesuksesan di tempat kerja.",nextDescription:"Pelatihan dalam pengembangan keterampilan teknis dan keterampilan lunak akan membantu individu berkembang dalam karier mereka, dan pelatihan berkelanjutan menjadi faktor penting untuk mencapai hasil profesional yang positif."},certificationSchemes:{list:["Pelatih Ahli dalam Pengembangan Profesional","Pelatih untuk Pengembangan Keterampilan Kerja","Pelatih untuk Pengembangan Karier","Pelatih Keterampilan Lanjut untuk Keterampilan Manajerial","Pelatih untuk Program Pengembangan Karier"]},keyPoints:[{title:"Pelatihan Keterampilan Kerja",description:"Pelatihan kerja mengembangkan keterampilan dan pengetahuan teknis yang diperlukan untuk melaksanakan pekerjaan secara efektif. Fokus pada keterampilan praktis yang dapat langsung diterapkan dalam pekerjaan sehari-hari."}],certificationAudience:[{title:"Pelatih Profesional",description:"Pelatih yang berfokus pada pengembangan keterampilan kerja dan manajerial yang diperlukan untuk kesuksesan karyawan dan perusahaan."}]}},RCe={title:"Testimoni",description:"Baca pengalaman langsung dari peserta yang telah menyelesaikan program sertifikasi kami",testimonialsList:[{name:"Rini Susanti",certification:"Responder Pertolongan Pertama Bersertifikat",quote:'"Pelatihan yang saya terima dari PMI sangat luar biasa. Tidak hanya saya memperoleh keterampilan penyelamatan hidup yang berharga, tetapi pengajarnya juga profesional, sabar, dan sangat bersemangat membantu orang lain. Sekarang, saya merasa percaya diri untuk merespons keadaan darurat dan mendukung komunitas saya."'},{name:"Andi Setiawan",certification:"Peserta Pelatihan Manajemen Bencana",quote:'"Sertifikasi Manajemen Bencana PMI sangat mengubah hidup saya. Pengalaman langsung yang dipa
180dukan dengan pengetahuan mendalam tentang penanganan krisis telah mempersiapkan saya untuk bertindak cepat saat bencana terjadi. Saya sangat merekomendasikan pelatihan ini bagi siapa saja yang ingin membuat perbedaan nyata."'},{name:"Maya Lestari",certification:"Relawan dan Pendidik Kesehatan",quote:'"Berkat pelatihan komprehensif dari PMI, sekarang saya bisa mendidik orang lain tentang praktik kesehatan dan kebersihan dengan efektif. Sertifikasi ini tidak hanya meningkatkan keterampilan saya tetapi juga membantu saya berkontribusi lebih bermakna sebagai relawan. Dampak dari program mereka benar-benar transformatif."'}],lspDocumentation:{title:"Dokumentasi",documents:["Menguasai Pertolongan Pertama: Panduan Langkah-demi-Langkah untuk Sertifikasi PMI","Pelatihan Manajemen Bencana: Keterampilan Utama untuk Tanggap Cepat","Layanan Kesehatan & Sosial: Perjalanan Sertifikasi anda"]},moreVideos:"Lihat lebih banyak video",empoweringMessage:"Memberdayakan anda untuk Membuat Perbedaan",empoweringDescription:"Di PMI, kami percaya dalam memberdayakan individu dengan keterampilan dan pengetahuan untuk membuat perbedaan nyata di komunitas mereka. Pengalaman yang dibagikan oleh peserta pelatihan dan relawan bersertifikat kami adalah bukti kualitas dan dampak dari program pelatihan kami.",empoweringDescriptionTwo:"Apakah anda ingin memperoleh keterampilan penyelamatan hidup, mempersiapkan diri untuk manajemen bencana, atau berkontribusi pada pendidikan kesehatan, kursus kami menawarkan alat yang anda butuhkan untuk sukses. Bergabunglah dengan kami dalam menciptakan dampak yang langgengâsatu sertifikasi pada satu waktu."},OCe={title:"Berita Sertifikasi",description:"Tetap terinformasi dengan berita dan perkembangan terbaru di dunia sertifikasi.",searchPlaceholder:"Cari berita sertifikasi",recentNews:"Berita Terbaru"},LCe={title:"Program Pelatihan",description:"PMI menyediakan program-program pelatihan yang sangat aplikatif untuk peningkatan kemampuan dan kompetensi baik individu maupun organisasi/perusahaan dalam bebera
180pa bidang, diantaranya Pertolongan Pertama, Tanggap Darurat Bencana, Siaga Bencana, Air dan Sanitasi Darurat, Distribusi Bantuan Logistik, Diseminasi Kepalangmerahan, Manajemen Kesehatan, Manajemen Pelatihan, dan Manajemen Relawan.",individualTraining:"Pelatihan Individu",individualDescription:"Perkuat Diri anda dengan Keterampilan Penting untuk Masa Depan yang Lebih Aman",partnerTraining:"Pelatihan Mitra",partnerDescription:"Perkuat Tim anda, Tingkatkan Kesiapan Organisasi anda",startLearning:"Mulai Belajar Hari Ini",pmiTraining:"Pendidikan dan Pelatihan PMI",pmiKnowledgeAndInnovationCenter:"Pusat Pengetahuan dan Inovasi PMI",dutiesAndFunctions:"Tugas & Fungsi Badan Diklat & Pusdiklat",trainingAndEducationCenter:"Diklat & Pusdiklat",trainingCenterLocations:"Lokasi Badan Diklat & Pusdiklat",universitiesAndLpk:"Perguruan Tinggi & LPK",humanis:"Humanis",checkSchedule:"Cek Jadwal Kami",ongoingTrainings:"Pelatihan yang Sedang Berlangsung",participantTestimonials:"Testimoni Peserta",trainingImpactDescription:"Program pelatihan kami telah memberdayakan banyak individu dan organisasi. Baca pengalaman para peserta yang telah memperoleh keterampilan dan pengetahuan berharga untuk merespons keadaan darurat, meningkatkan kepemimpinan, dan memperkuat kesiapsiagaan komunitas.",leadershipGrowth:"Pengembangan Kepemimpinan",confidenceInFirstAid:"Percaya Diri dalam Pertolongan Pertama",whyCh
180oose:"Mengapa Memilih Pelatihan Kami?",impactTitle:"Memberdayakan anda untuk Dampak Dunia Nyata",instructors:"Instruktur Profesional",certification:"Sertifikasi",curriculum:"Kurikulum Terbaru",instructorsDescription:"Belajar dari pelatih berpengalaman dengan latar belakang yang luas di bidang masing-masing.",certificationDescription:"Dapatkan sertifikasi yang diakui yang memvalidasi keterampilan dan pengetahuan anda.",curriculumDescription:"Program pelatihan kami menggunakan materi dan metodologi terbaru.",tables:{no:"No",trainingName:"Nama Pelatihan",category:"Kategori",schedule:"Jadwal",location:"Lokasi",status:"Status",ongoing:"Berlangsung",action:"Aksi",register:"Daftar"},empoweringKnowledge:{title:"Memberdayakan Individu dan Organisasi Melalui Pengetahuan",description:"Di Palang Merah Indonesia (PMI), kami percaya bahwa membekali individu dan organisasi dengan keterampilan yang tepat dapat menyelamatkan nyawa, membangun ketahanan, dan memperkuat komunitas. Program pelatihan kami dirancang untuk memberikan pengetahuan yang komprehensif dan keahlian praktis di bidang-bidang penting seperti pertolongan pertama, tanggap darurat bencana, dan manajemen kesehatan.",subDescription:"Apakah anda seorang profesional yang ingin memperluas keahlian atau individu yang ingin membuat perbedaan, kursus kami menawarkan sesuatu untuk semua orang.",ctaTitle:"Buat Perbedaan dengan Pelatihan PMI",ctaDescription:"Dengan mengikuti program pelatihan kami, anda tidak hanya meningkatkan keterampilan tetapi juga berkontribusi pada masyarakat yang lebih aman dan lebih siap. Kursus ini adalah investasi pada diri anda sendiri, organisasi anda, dan komunitas anda.",ctaCallToAction:"Bergabunglah dengan kami hari ini dan menjadi bagian dari gerakan yang didedikasikan untuk menyelamatkan nyawa dan membangun ketahanan."},ourClients:{title:"Klien Kami",description:"Dipercaya oleh organisasi terkemuka"},realStories:{title:"Kisah Nyata. Dampak Nyata.",description:"Program pelatihan kami telah memberdayakan banyak individu dan organisasi. Baca pengalaman para peserta yang telah mendapatkan keterampilan dan pengetahuan berharga untuk merespons keadaan darurat, meningkatkan kepemimpinan mereka, dan memperkuat kesiapan komunitas.",testimonialsTitle:"Testimoni Peserta"}},FCe={individualTraining:{title:"Pelatihan Individu",description:"Program pelatihan individu kami dirancang untuk mereka yang ingin meningkatkan keterampilan dan pengetahuan pribadi. Baik anda bagian dari tim PMI atau masyarakat umum, kami menawarkan kursus yang disesuaikan dengan kebutuhan anda."},partnerTraining:{title:"Pelatihan Mitra",description:"Program pelatihan mitra kami dirancang khusus untuk organisasi, perusahaan, dan kelompok masyarakat yang ingin meningkatkan keterampilan tim mereka dalam layanan kesehatan, tanggap darurat, dan pengembangan organisasi."},trainingTypes:{title:"Jenis Pelatihan",internalTraining:{title:"Pelatihan Internal",description:"Pelatihan internal khusus untuk staf PMI, yang bertujuan meningkatkan keterampilan dan kompetensi untuk memberikan layanan yang lebih baik."},publicTraining:{title:"Pelatihan untuk Umum",description:"Program pelatihan kami terbuka untuk siapa saja yang ingin belajar keterampilan dalam pertolongan pertama, pendidikan kesehatan, & kesiapsiagaan bencana."},partnerTraining:{title:"Pelatihan Mitra",description:"Dirancang khusus untuk organisasi, perusahaan, dan kelompok masyarakat yang ingin meningkatkan keterampilan tim mereka"}},whyTakeTraining:{title:"Mengapa Mengikuti Pelatihan Ini?",points:["Meningkatkan kualitas layanan dan efisiensi tanggapan.","Menanggapi situasi darurat secara efektif.","Selalu mengikuti praktik industri terbaru.","Memperoleh pengetahuan yang dapat diterapkan dalam kehidupan sehari-h
180ari atau kegiatan sukarela."]},trainingOutcomes:{title:"Hasil Pelatihan",points:{gainKnowledge:"Peroleh Pengetahuan",gainKnowledgeDescription:"Dapatkan pengetahuan berharga dan pengalaman melalui pelatihan praktis.",developSkills:"Kembangkan Keterampilan",developSkillsDescription:"Kembangkan keterampilan yang dapat menyelamatkan nyawa dan pendidikan kesehatan.",competencies:"Kompetensi",competenciesDescription:"Kompetensi yang lebih baik dalam keterampilan pelayanan dan manajemen.",certificateOfCompletion:"Sertifikat Penyelesaian",certificateOfCompletionDescription:"Sertifikat diberikan setelah menyelesaikan pelatihan dengan sukses."}},classHoursNotes:{title:"Jam Kelas dan Catatan Penting",totalHours:"Total Jam",totalHoursDescription:"20-40 jam, tergantung pada kursus.",requirements:"Persyaratan",requirementsDescription:"Terbuka untuk semua peserta yang berusia 18 tahun ke atas.",requirementInfo:"Pengalaman sebelumnya mungkin diperlukan untuk kursus tertentu.",notes:"Catatan",certificateOfCompletionDescription:"Beberapa pelatihan akan wajib diikuti oleh seluruh staf PMI."}},BCe={trainingForTheGeneralPublic:{title:"Pelatihan untuk Masyarakat Umum",description:"Program pelatihan kami terbuka untuk siapa saja yang ingin belajar keterampilan pertolongan pertama, pendidikan kesehatan, dan kesiapsiagaan bencana. Apakah anda seorang individu yang ingin mendapatkan pengetahuan menyelamatkan nyawa yang penting atau sebuah organisasi yang ingin meningkatkan kemampuan tim anda, kursus kami memberikan instruksi komprehensif dalam format yang praktis dan menarik. Dengan pelatih ahli dan pengalaman langsung, peserta akan memperoleh rasa percaya diri dan kompetensi yang diperlukan untuk merespons dengan efektif dalam situasi darurat. Dengan meningkatkan pemahaman yang lebih mendalam tentang area-area penting ini, kami bertujuan untuk memberdayakan individu dan komunitas untuk lebih siap menghadapi tantangan tak terduga."},partnerTraining:{title:"Pelatihan Mitra",description:"Disesuaikan untuk organisasi, perusahaan, dan kelompok komunitas yang ingin meningkatkan keterampilan tim mereka, program pelatihan kami dirancang untuk memenuhi kebutuhan dan tujuan spesifik setiap kelompok. Kami menawarkan kursus yang disesuaikan untuk mengatasi tantangan yang relevan, meningkatkan kolaborasi tim, dan memastikan bahwa karyawan atau anggota siap menghadapi krisis dan situasi darurat. Melalui sesi pembelajaran yang terarah, lokakarya interaktif, dan pelatihan berbasis skenario, organisasi dapat membangun tenaga kerja yang lebih tangguh dan kompeten, meningkatkan kesiapan dan kemampuan respons keseluruhan mereka dalam menghadapi bencana atau keadaan darurat kesehatan."},internalTraining:{title:"Pelatihan Internal",description:"Pelatihan internal khusus untuk staf PMI, bertujuan untuk meningkatkan keterampilan dan kompetensi untuk memberikan pelayanan yang lebih baik. Program pelatihan ini fokus pada pengembangan keahlian di bidang seperti respons bencana, pertolongan pertama, layanan kesehatan, dan keterlibatan komunitas. Dengan berinvestasi dalam pertumbuhan profesional berkelanjutan tim kami, kami memastikan bahwa staf kami dilengkapi dengan pengetahuan dan alat yang diperlukan untuk merespons secara efektif dalam situasi kritis, menjunjung tinggi nilai-nilai PMI, dan memberikan layanan berkualitas tinggi kepada mereka yang membutuhkan."},tables:{no:"No.",trainingName:"Nama Pelatihan",effectiveLearningHours:"Jam Pembelajaran Efektif (JPE)",description:"Deskripsi"},effectiveLearningHour:"1 JPE (Jam Pembelajaran Efektif) = 45 menit"},$Ce={title:"Tempat Uji Kompetensi",description:"Temukan lokasi resmi tempat anda dapat mengikuti uji kompetensi untuk memvalidasi keahlian anda.",searchPlaceholder:"Cari Tempat Uji Kompetensi",selectLocation:"Pilih provinsi, kota, atau kabupaten untuk melihat Tempat Uji kompetensi yang tersedia",listTitle:"Daftar Tempat Uji Kompetensi",listDescription:"Informasi detail tentang Tempat Uji kompetensi di area yang anda pilih",pmiPca:{title:"Lembaga Sertifikasi Profesi Palang Merah Indonesia (PMI-PCA)",description:"Lembaga Sertifikasi Profesi Palang Merah Indonesia (PMI-PCA) adalah organisasi terkemuka yang berkomitmen untuk meningkatkan kompetensi profesional dan standar bagi tenaga kemanusiaan dan tanggap darurat di seluruh Indonesia."},tables:{no:"No",location:"Lokasi",name:"Nama Tempat Uji",address:"Alamat",status:"Status",detail
180:"Detail"},assistance:{title:"Butuh Bantuan?",description:"Untuk informasi lebih lanjut atau bantuan, silakan hubungi TUK terdekat atau LSP PMI melalui salah satu saluran di bawah ini."},certificationStats:{numberOfSchemes:"Jumlah Skema Sertifikasi",numberOfPersonnel:"Jumlah Personel Tersertifikasi",numberOfAssessors:"Jumlah Asesor Aktif",male:"Laki-laki",female:"Perempuan"}},HCe={aboutUs:"Tentang Kami",description:"Lembaga Sertifikasi Profesi Palang Merah Indonesia (PMI-PCA) adalah organisasi terkemuka yang berkomitmen untuk meningkatkan kompetensi profesional dan standar bagi pekerja kemanusiaan dan tanggap darurat di seluruh Indonesia. Didirikan berdasarkan lisensi Badan Nasional Sertifikasi Profesi (BNSP) nomor BNSP-LSP-2086-ID pada tanggal 7 Maret 2022, PMI-PCA menawarkan program sertifikasi komprehensif yang dirancang untuk meningkatkan keterampilan, pengetahuan, dan kinerja individu di bidang tanggap darurat, pengurangan risiko bencana, layanan kesehatan, layanan donor darah, dan pelatihan kerja.",trustedAuthority:"Sebagai otoritas terpercaya dalam sertifikasi profesional, kami memastikan program kami selaras dengan praktik terbaik internasional, standar nasional, dan misi PMI untuk memberikan layanan kemanusiaan berkualitas tinggi. Tujuan kami adalah mempromosikan keunggulan dan memastikan para profesional memiliki kompetensi yang diperlukan untuk merespons secara efektif dalam keadaan darurat dan krisis.",vision:"Visi Kami",visionDescription:"SDM yang BERKUALITAS, KOMPETEN, dan BERKARAKTER di bidang layanan kemanusiaan sesuai dengan prinsip dasar Gerakan Palang Merah dan Bulan Sabit Merah Internasional serta Standar Kemanusiaan Inti.",mission:"Misi Kami",missionValues:{developStandards:"Mengembangkan standar kompetensi yang berkualitas tinggi dan dapat diandalkan.",conductTests:"Melakukan uji kompetensi bagi personel PMI (Palang Merah Indonesia) dan pekerja kemanusiaan lainnya.",humanitarianStandards:"Mengembangkan standar kompetensi berdasarkan prinsip kemanusiaan internasional."},coreValues:"Nilai Inti",values:{excellence:"Keunggulan: Kami menjunjung tinggi standar profesionalisme tertinggi dan berusaha untuk terus meningkatkan.",integrity:"Integritas: Kami bertindak dengan transparansi, akuntabilitas, dan menghormati martabat manusia dalam semua program sertifikasi kami.",empowerment:"Pemberdayaan: Kami memberdayakan para profesional dengan pengetahuan dan keterampilan untuk memberikan dampak positif selama keadaan darurat dan bencana.",collaboration:"Kolaborasi: Kami bekerja sama erat dengan organisasi nasional dan internasional untuk memastikan sertifikasi kami bermakna dan berdampak.",service:"Pelayanan: Kami berdedikasi untuk mendukung pengembangan profesional kemanusiaan, membantu mereka lebih baik melayani masyarakat yang membutuhkan."},certificationPrograms:{title:"Program Sertifikasi",description:"LSP PMI menawarkan berbagai program sertifikasi yang disesuaikan dengan berbagai sektor di bidang kemanusiaan, termasuk namun tidak terbatas pada:",sectors:{disasterManagement:"Manajemen & Tanggap Bencana",disasterRiskReduction:"Pengurangan Risiko Bencana",healthcareServices:"Layanan Kesehatan",bloodDonorServices:"Layanan Donor Darah",jobTraining:"Pelatihan Kerja"},details:{disasterManagement:"Mengakui keahlian dalam mengelola operasi bantuan kemanusiaan, mobilisasi sumber daya, distribusi bantuan, koordinasi respons, dan manajemen krisis.",disasterRiskReduction:"Sertifikasi untuk profesional dalam kesiapsiagaan berbasis masyarakat, pencegahan, dan mitigasi bencana.",healthcareServices:"Menyertifikasi individu dalam pertolongan pertama, layanan medis darurat, dan profesional yang menyediakan layanan kesehatan masyarakat saat krisis, termasuk pengendalian penyakit dan program penyuluhan kesehatan.",bloodDonorServices:"Sertifikasi khusus untuk profesional dalam donor darah, pengambilan darah, tes darah, pemeriksaan pra transfusi darah, dan distribusi darah.",jobTraining:"Sertifikasi untuk pelatih/instruktur dan fasilitator di semua sektor."}},whyChoose:{title:"Mengapa Memilih LSP PMI?",trustedAuthority:"Otoritas Terpercaya",expertAssessors:"Asesor Ahli",comprehensiveSupport:"Dukungan Komprehensif",trustedAuthorityDescription:"Di bawah lisensi Badan Nasional Sertifikasi Profesi (BNSP), kami mematuhi pedoman BNSP dan memastikan program kami memenuhi standar tertinggi.",expertAssessorsDescription:"Program sertifikasi kami disampaikan oleh para profesional berpengalaman dengan pengetahuan mendalam di bidangnya.",comprehensiveSupportDescription:"Kami memberikan dukungan berkelanjutan kepad
180a kandidat sepanjang perjalanan sertifikasi mereka, memastikan mereka mendapatkan keterampilan praktis yang diperlukan untuk unggul di bidang mereka."},ourImpact:{title:"Dampak Kami",description1:"Sejak didirikan, LSP PMI telah mensertifikasi ratusan profesional di seluruh Indonesia, berkontribusi pada penguatan infrastruktur tanggap bencana negara. Lulusan kami memainkan peran penting dalam menyelamatkan nyawa, memberikan layanan penting, dan mendukung masyarakat selama bencana alam, mitigasi, krisis kesehatan masyarakat, dan keadaan darurat kemanusiaan lainnya.",description2:"Melalui program sertifikasi kami, LSP PMI menciptakan kelompok profesional berkualitas dan kompeten yang siap membuat perbedaan ketika dibutuhkan."},contactUs:{title:"Hubungi Kami",agencyName:"Lembaga Sertifikasi Profesi Palang Merah Indonesia",address:"Jl. Arumsari RT 11 RW 02 Kel. Sambiroto Kec. Tembalang Kota Semarang Provinsi Jawa Tengah 50276",website:"www.pmi.or.id"}},zCe={title:"Pusat Pengetahuan dan Inovasi PMI",description:"Pusat Pengetahuan dan Inovasi PMI adalah pusat unggulan yang dirancang untuk mendorong pengembangan pengetahuan, teknologi, dan solusi inovatif di bidang kemanusiaan. Melalui kolaborasi dengan para ahli, lembaga pendidikan, dan mitra strategis, kami menyediakan berbagai sumber daya dan pelatihan untuk memperkuat kapasitas individu dan organisasi. Fokus kami mencakup pengelolaan bencana, pelayanan kesehatan, dan pengembangan komunitas, dengan tujuan menciptakan solusi berbasis data dan teknologi guna menghadapi tantangan masa depan.",objective:"Pusat Pengetahuan dan Inovasi PMI bertujuan untuk menjadi katalisator perubahan dengan menghadirkan ide-ide baru yang relevan untuk kebutuhan kemanusiaan. Di sini, penelitian, pengembangan teknologi, dan program pelatihan dirancang untuk memberikan dampak nyata bagi masyarakat. Dengan pendekatan yang berbasis kolaborasi, kami terus mengembangkan praktik terbaik dalam tanggap darurat, edukasi kesehatan, dan pemberdayaan masyarakat, sekaligus mendorong inovasi yang berkelanjutan untuk menciptakan solusi yang lebih efektif dan efisien.",visit:"Kunjungi Pusat Pengetahuan dan Inovasi PMI"},VCe={trainingAgencyDutiesAndFunctions:"Tugas & Fungsi Badan Diklat",trainingAgencyDescription:"Berdasarkan Peraturan Organisasi Palang Merah Indonesia No. 01/PO/PP PMI/III/2022, Tentang Badan Pendidikan dan Pelatihan Kepalangmerahan dan Pusat Pendidikan dan Pelatihan Kepalangmerahan Palang Merah Indonesia (PMI), Badan Pendidikan dan Pelatihan Kepalangmerahan yang selanjutnya disebut sebagai Badiklat PMI adalah Unit Pelaksana Teknis Pengurus Pusat PMI yang menyelenggarakan pembinaan, pengelolaan pendidikan, dan pelatihan di tingkat nasional. Badiklat PMI bertugas sebagai lembaga resmi PMI yang mengontrol kualitas program Pendidikan dan pelatihan untuk tingkat nasional, mengembangkan kerja sama dengan mitra eksternal PMI baik di tingkat nasional maupun internasional, dan memiliki fungsi sebagai pusat sertifikasi kompetensi SDM PMI/perusahaan/lembaga/institusi, pusat pengembangan metode pelatihan dan kurikulum pelatihan PMI dan pusat akreditasi Pusdiklat PMI se-Indonesia, serta bertugas melaksanakan pelatihan-pelatihan lingkup nasional dan internasional. ",trainingCenterDutiesAndFunctions:"Tugas & Fungsi Pusdiklat",trainingCenterDescription:"Pusdiklat PMI bertugas sebagai pelaksana kegiatan Pendidikan dan pelatihan tingkat Provinsi/ Kabupaten/Kota, mengembangkan kerja sama dengan mitra eksternal PMI di tingkat Provinsi/Kabupaten/Kota, dan memiliki fungsi sebagai pusat sertifikasi SDM PMI/perusahaan/lembaga/institusi di tingkat daerah."},UCe={title:"Pusat Pelatihan & Lokasi Pendidikan",subtitle:"Temukan Pusat Pelatihan Terdekat anda",centers:{badanDiklatPMI:"Badan Diklat PMI",pusdiklatPMI:"Pusdiklat PMI"},facilities:{title:"Fasilitas",description:"Diklat UTD Pusat PMI adalah pusat pelatihan profesional yang dirancang untuk meningkatkan kompetensi tenaga kesehatan dan relawan dalam pelayanan transfusi darah. Fasilitas ini menawarkan lingkungan yang nyaman dan modern untuk mendukung proses pembelajaran dan praktik terbaik di bi
180dang kesehatan."}},WCe={title:"Perguruan Tinggi & Lembaga Pelatihan Kerja (LPK)",description:"PMI menjalin kemitraan dengan perguruan tinggi dan Lembaga Pelatihan Kerja (LPK) untuk mendukung pengembangan pendidikan, penelitian, dan pelatihan di bidang kemanusiaan serta keterampilan vokasional. Kerja sama dengan perguruan tinggi mencakup penyelenggaraan program pelatihan, seminar, penelitian bersama, dan pengabdian masyarakat yang memberdayakan mahasiswa dan akademisi sebagai agen perubahan. Sementara itu, kemitraan dengan LPK difokuskan pada penyediaan pelatihan kerja yang berorientasi pada peningkatan keterampilan dan peluang kerja, guna menciptakan dampak positif yang nyata bagi masyarakat.",establishedYear:"Tahun Berdiri",address:"Alamat",phone:"Telepon",fieldsOfStudy:"Bidang Studi",visitWebsite:"Kunjungi Website"},GCe={title:"Humanis",whyHumanistIsImportant:"Mengapa Humanis Penting dalam Kemanusiaan?",whyHumanistIsImportantDescription:"Pendekatan humanis menempatkan manusia sebagai pusat dari setiap upaya dan tindakan kemanusiaan. Di PMI, nilai-nilai seperti empati, penghormatan terhadap martabat, dan solidaritas menjadi landasan dalam memberikan bantuan kepad
180a mereka yang membutuhkan. Dengan berfokus pada kebutuhan individu dan komunitas, PMI memastikan bahwa setiap layanan yang diberikan tidak hanya bersifat praktis tetapi juga memperhatikan aspek emosional dan sosial para penerima manfaat.",pmiCommitmentToHumanistPrinciples:"Komitmen PMI untuk Menjunjung Prinsip Humanis",pmiCommitmentToHumanistPrinciplesDescription:"Melalui berbagai program dan layanan, PMI berupaya menghadirkan solusi yang berbasis pada prinsip humanis. Hal ini tercermin dalam cara kami merespons bencana, memberikan edukasi, dan membangun kapasitas masyarakat. Dengan mendengarkan dan memahami kebutuhan masyarakat secara mendalam, PMI dapat menciptakan dampak yang lebih bermakna dan berkelanjutan bagi kehidupan mereka.",visitHumanistWebsite:"Kunjungi Website Humanis"},qCe={title:"Formulir Pendaftaran Pelatihan",description:"Isi formulir di bawah ini untuk mendaftar program pelatihan kami dan tingkatkan keterampilan anda dalam layanan kemanusiaan.",fields:{training:"Pelatihan *",trainingName:"Nama Pelatihan",category:"Kategori",schedule:"Jadwal",location:"Lokasi",name:"Nama *",namePlaceholder:"Masukkan nama",email:"Email *",emailPlaceholder:"Masukkan email",phone:"Nomor Telepon (WA) *",phonePlaceholder:"Masukkan nomor WhatsApp",chooseCategory:"Pilih kategori",internal:"Internal",external:"Eksternal",origin:"Asal *",chooseOrigin:"Pilih asal PMI",remarkPlaceholder:"Keterangan",privacyPolicy:"Saya telah membaca dan menyetujui Kebijakan Privasi terkait pengumpulan dan penggunaan data pribadi saya.",register:"Daftar"}},KCe={title:"Pendaftaran Berhasil!",message:"Pendaftaran anda telah berhasil dikirim.",appreciation:"Kami menghargai kesediaan anda untuk bergabung dalam misi kami dan memberikan dampak positif pada komunitas.",whatsNext:"Apa Selanjutnya?",sections:{reviewProcess:"Proses Peninjauan",contact:"Kontak",training:"Pelatihan"},details:{review:"Tim kami akan meninjau aplikasi anda dan memverifikasi informasi yang telah diberikan.",emailConfirmation:"Anda akan segera menerima konfirmasi melalui email. Harap periksa kotak masuk anda (dan folder spam/junk) untuk instruksi lebih lanjut.",approval:"Setelah aplikasi anda disetujui, anda siap untuk mengikuti pelatihan di lokasi dan waktu yang dijadwalkan."}},YCe={welcome:rSe,description:sSe,search:aSe,view:oSe,donate:lSe,readMore:cSe,loadMore:dSe,learnMore:uSe,seeDetail:hSe,viewAll:pSe,donations:mSe,getInvolved:fSe,joinText1:gSe,refresh:xSe,categories:ySe,pagination:bSe,members:vSe,register:wSe,joinNow:kSe,year:SSe,date:CSe,day:jSe,hour:TSe,abstract:PSe,phone:ESe,pleaseSelect:ASe,viewed:NSe,back:MSe,updates:DSe,all:_Se,showAll:ISe,share:RSe,via:OSe,or:LSe,download:FSe,copyLink:BSe,successCopy:$Se,errorCopy:HSe,selectOption:zSe,noData:VSe,error:USe,helpSection:WSe,week:GSe,months:qSe,validation:KSe,footer:YSe,home:XSe,contactUs:JSe,bloodStockInfo:QSe,location:ZSe,donorInformation:eCe,faq:tCe,goDonor:nCe,pressRelease:iCe,articles:rCe,socialMedia:sCe,volunteerStories:aCe,volunteerForeign:oCe,volunteer:lCe,registerVolunteer:cCe,registerSuccess:dCe,fundamentalPrinciples:uCe,visionMission:hCe,organizationStructure:pCe,history:mCe,disasterManagement:fCe,earthquakeRelief:gCe,healthSocialServices:xCe,internationalServices:yCe,programs:bCe,careers:vCe,jobDetails:wCe,library:kCe,publications:SCe,faqLibrary:CCe,donateNow:jCe,whyDonate:TCe,monetaryCampaigns:PCe,goodsDonation:ECe,privacyPolicy:ACe,termsAndConditions:NCe,skillsServices:MCe,partnerships:DCe,donationImpact:_Ce,certifiedArea:ICe,testimonials:RCe,certificationNews:OCe,trainingPrograms:LCe,trainingProgramType:FCe,trainingTypeDetail
180:BCe,competencyTestCentre:$Ce,pca:HCe,pmiKnowledgeAndInnovationCenter:zCe,dutiesAndFunctions:VCe,trainingCenters:UCe,universitiesAndLPK:WCe,humanist:GCe,trainingRegistrationForm:qCe,registrationSuccess:KCe},XCe="PALANG MERAH INDONESIA – PROFESIONAL-BERKARAKTER-BERGERAK BERSAMA MASYARAKAT",JCe="PALANG MERAH INDONESIA | MENOLONG SEPENUH HATI",QCe="Kemurahan hati Anda menyelamatkan nyawa. Setiap kontribusi sangatlah berarti",ZCe={title:XCe,description:JCe,tagline:QCe},e2e="{{count}} pcs",t2e="{{count}} orang",n2e={refreshData:"Perbarui Data",latestUpdate:"Pembaruan Terakhir",location:"LOKASI:",headquarters:"Markas Pusat",national:"Nasional",province:"Provinsi",chooseOption:"Pilih opsi",search:"Cari...",city:"Kab/Kota",subdistrict:"Kecamatan",chooseOptionCity:"Pilih opsi",warehouseLocation:"Lokasi Gudang",chooseOptionAll:"Semua"},i2e={title:"Data Sebaran",totalItemValue:"Total Nilai Barang",openStockValue:"Nilai Open Stock",incomingItemValue:"Nilai Masuk Barang",mutationInValue:"Nilai Mutasi In",mutationOutValue:"Nilai Mutasi Out",totalOutgoingWeightKg:"Berat Keluar (kg)",category:"Kategori",warehouseValue:"Nilai Gudang",warehouseLocation:"Nilai Gudang",aidValue:"Nilai Bantuan",placeDelivery:"Tujuan Pengiriman",totalWeight:"Total Berat",top5Items:"Top 5 Item",productName:"Nama Produk",itemDelivery2024:"Pengiriman Barang (2024)",itemDelivery:"Pengiriman Barang",itemDeliveryWithoutYear:"Pengiriman Barang",nonFoodAid:"Bantuan Non Food",equipmentAid:"Peralatan Bantuan",personalEquipment:"Personal Equipment",donationValue:"Nilai Donasi",theresNoDataToShow:"Tidak ada data untuk ditampilkan",total_item_value:"Total Nilai Barang",open_stock_value:"Nilai Open Stock",incoming_item_value:"Nilai Masuk Barang",outcoming_item_value:"Nilai Keluar Barang",mutation_in_value:"Nilai Mutasi Masuk",mutation_out_value:"Nilai Mutasi Keluar",donation_value:"Nilai Donasi",outcoming_weight:"Total Berat Keluar (kg)",distribution_weight:"Total Berat Pengiriman (kg)"},r2e={title:"Logistik Stok",babyKit:"Paket Bayi",hygieneKit:"Paket Kebersihan",familyKit:"Paket Keluarga",tarpaulin:"Terpal",mattress:"Matras",blanket:"Selimut",raincoat:"Jas Hujan",bodyBag:"Kantong Mayat",mosquitoNet:"Kelambu",kitchenKit:"Paket Dapur",sarong:"Sarung",medicalMask:"Masker Medis",redVest:"Rompi Merah",schoolKit:"Paket Sekolah"},s2e={title:"Aset Respon Bencana",helicopter:"Helikopter",ambulance:"Ambulans",openBackTruck:"Roda 4 Bak Terbuka",doubleCabin4WD:"Roda 4 Double Cabin / 4WD",waterTankTruck:"Truk Tangki Air",gunnerTruck:"Truk Gunner",cargoTruck:"Truk Barang",threeWheeler:"Roda 3",motorcycleFirstResponder:"Roda 2 First Responder",boat:"Perahu",hagglund:"Hagglund",drone:"Drone",heavyEquipment:"Alat Berat Lainnya",fieldCommunication:"Alat Komunikasi Lapangan",mobileKitchen:"Alat Dapur Umum",ppe:"APD",shelterAndEquipment:"Shelter dan Peralatan",medicalEquipment:"Peralatan Kesehatan",generatorLighting:"Genset & Penerangan",fieldEquipment:"Peralatan Lapangan"},a2e={title:"Keahlian SDM PMI",doctor:"Dokter",firstAid:"Pertolongan Pertama",housing:"Hunian",psychosocial:"Psikososial",nurse:"Perawat",pharmacist:"Apoteker",waterAndSanitation:"Air dan Sanitasi",logisticsAndDistribution:"Logistik dan Distribusi",midwife:"Bidan",familyReconnection:"Pemulihan Hubungan Kel.",youthHealth:"Kesehatan Remaja",otherExpertise:"Keahlian Lainnya"},o2e={stock:"Stok",asset:"Aset",hr:"Keahlian SDM"},l2e={quantity:e2e,people:t2e,filter:n2e,dataDistribution:i2e,stockLogistics:r2e,disasterResponseAssets:s2e,hrsSkills:a2e,dashboard:o2e},c2e="Beranda",d2e="Kontak Kami",u2e="Donasi",h2e="Donor Darah",p2e="Pelatihan & Sertifikasi",m2e="Relawan",f2e="Gabung Relawan",g2e="Berita",x2e="Tentang Kami",y2e="Donasi",b2e="Donasi Umum",v2e="Donasi Program",w2e="Donasi Barang",k2e="Cara Berdonasi",S2e="Info Stok Darah",C2e="Lokasi",j2e="Info Data Donor",T2e="FAQ",P2e="Area Sertifikasi",E2e="Skema Sertifikasi",A2e="Tanggap Darurat",N2e="Tempat Uji Kompetensi",M2e="PMI PCA",D2e="Pengurangan Risiko Bencana",_2e="Berita Sertifikasi",I2e="Layanan Kesehatan",R2e="Testimoni",O2e="Layanan Darah",L2e="Pelatihan Kerja",F2e="Pelatihan",B2e="Program Pelatihan",$2e="Pelatihan Individu",H2e="Pelatihan Partner",z2e="Pelatihan Internal",V2e="Pelatihan untuk Masyarakat Umum",U2e="Pusat Pengetahuan dan Inovasi PMI",W2e="Tugas & Fungsi Badan Diklat",G2e="Lokasi Badan Diklat & Pusdiklat",q2e="Perguruan Tinggi & LPK",K2e="Humanis",Y2e="Formulir Pendaftaran Pelatihan",X2e="Klien",J2e="Pelatihan & Sertifikasi",Q2e="Lembaga Sertifikasi Profesi",Z2e="Pusat Pengetahuan & Inovasi",eje="IFRC",tje="e-Learning (humanis)",nje="Agenda",ije="Relawan",rje="Kisah Relawan",sje="Relawan Luar Negri",aje="Konfirmasi Relawan Luar Negri",oje="Siaran Pers",lje="Artikel",cje="Media Sosial",dje="Layanan",uje="Manajemen Bencana",hje="Bantuan Gempa Bumi",pje="Layanan Kesehatan & Sosial",mje="Layanan Internasional",fje="Program",gje="Pustaka",xje="Pustaka PMI",yje="Laporan Tahunan",bje="Tentang Kami",vje="7 Prinsip Gerakan",wje="Visi & Misi",kje="Struktur Organisasi",Sje="Tata Kelola",Cje="Sejarah",jje="Karir",Tje="Peluang Karir",Pje="Ayo Donor App",Eje="Donasi Uang",Aje="Mengapa Donasi",Nje="Donasi Sekarang",Mje="Konfirmasi Donasi",Dje="Konfirmasi Donasi Barang",_je="Pembayaran",Ije="Terima Kasih",Rje="Kampanye Donasi",Oje="Keanggotaan",Lje="Donasi Non-Materi",Fje="Donasi Barang",Bje="Keterampilan / Layanan",$je="Kemitraan",Hje="Alat Pemasaran / Katalog Program",zje="Program Tanggap Bencana",Vje="Program Manajemen Bencana",Uje="Program Tanggap Darurat Bencana",Wje="Program Kesiapsiagaan Bencana",Gje="Pemulihan Pasca Bencana",qje="Program Kesehatan",Kje="Kesehatan Darurat",Yje="Layanan Sosial",Xje="Kesehatan Masyarakat",Jje="Layanan Air, Sanitasi & Kebersih
180an",Qje="Hall of Fame",Zje="Konfirmasi Pengiriman Formulir",eTe="Dampak Donasi",tTe="Ke mana Donasi Anda Pergi",nTe="Stok",iTe="Data Sebaran - Logistik",rTe="Data Sebaran - Aset",sTe="Keahlian SDM PMI",aTe="Konten Utama",oTe="Ini adalah area konten utama. Tambahkan konten Anda di sini.",lTe="Kebijakan Privasi",cTe="Syarat dan Ketentuan",dTe={home:c2e,contactUs:d2e,donation:u2e,bloodDonation:h2e,trainingAndCerification:p2e,volunteer:m2e,joinVolunteer:f2e,news:g2e,aboutUs:x2e,donations:y2e,generalDonations:b2e,programDonations:v2e,goodsDonations:w2e,howToDonate:k2e,bloodStockInfo:S2e,locations:C2e,donorDataInfo:j2e,faq:T2e,certificationAreaTitle:P2e,certificationSchemes:E2e,emergencyResponse:A2e,competencyTestCentre:N2e,pca:M2e,disasterRiskReduction:D2e,certificationNews:_2e,healthcareServices:I2e,testimonials:R2e,bloodServices:O2e,jobTraining:L2e,training:F2e,trainingPrograms:B2e,individualTraining:$2e,partnerTraining:H2e,internalTraining:z2e,trainingForTheGeneralPublic:V2e,pmiKnowledgeAndInnovationCenter:U2e,dutiesAndFunctions:W2e,trainingCenterLocations:G2e,universitiesAndLpk:q2e,humanis:K2e,trainingRegistrationForm:Y2e,clients:X2e,trainingCertification:J2e,professionalCertificationBodies:Q2e,knowledgeInnovationCenter:Z2e,ifrc:eje,eLearningHumanis:tje,agenda:nje,volunteers:ije,volunteerStories:rje,volunteerForeign:sje,volunteerForeignConfirmation:aje,pressReleases:oje,articles:lje,socialMedia:cje,services:dje,disasterManagement:uje,earthquakeRelief:hje,healthSocialServices:pje,internationalServices:mje,programs:fje,library:gje,pmiLibrary:xje,publications:yje,aboutUsSection:bje,movementPrinciples:vje,visionMission:wje,organizationStructure:kje,governance:Sje,history:Cje,careers:jje,jobOpenings:Tje,goDonorApp:Pje,monetaryDonations:Eje,whyDonate:Aje,donateNow:Nje,donationConfirmation:Mje,goodsDonationConfirmation:Dje,payment:_je,thankYou:Ije,campaigns:Rje,membership:Oje,nonMonetaryDonations:Lje,goodsDonation:Fje,skillsServices:Bje,partnerships:$je,marketingToolsProgramCatalog:Hje,disasterResponsePrograms:zje,disasterManagementPrograms:Vje,disasterResponseProgram:Uje,disasterPreparednessProgram:Wje,disasterRecovery:Gje,healthPrograms:qje,emergencyHealth:Kje,socialServices:Yje,publicHealth:Xje,waterSanitationHygiene:Jje,hallOfFame:Qje,formSubmissionConfirmation:Zje,donationImpact:eTe,whereYourDonationsGo:tTe,stock:nTe,dataDistribution:iTe,disasterResponseAssets:rTe,pmiHumanResourceSkills:sTe,mainContent:aTe,contentDescription:oTe,privacyPolicy:lTe,termsAndConditions:cTe},Uz=new Vz;Uz.addDetector({name:"customLocalStorageDetector",lookup:()=>"id",cacheUserLanguage:()=>localStorage.setItem("language","id")});ar.use(Uz).use(KW).init({detection:{order:["customLocalStorageDetector","navigator"],caches:["customLocalStorageDetector"]},resources:{en:{common:zwe,header:Gwe,menu:iSe,dashboard:tke},id:{common:YCe,header:ZCe,menu:dTe,dashboard:l2e}},fallbackLng:"en",ns:["common","header","dashboard","menu"],defaultNS:"common",interpolation:{escapeValue:!1}});const uTe=new yK;Ld.initialize(iG);function hTe(){return Z.useEffect(()=>{Ld.send({hitType:"pageview",page:window.location.pathname})},[]),o.jsx(CK,{client:uTe,children:o.jsx(rY,{children:o.jsx(Kne,{children:o.jsxs(yre,{children:[o.jsx(Ffe,{position:"bottom-left",theme:"colored"}),o.jsx(W7,{router:Lve})]})})})})}X2.createRoot(document.getElementById("root")).render(o.jsx(Ie.StrictMode,{children:o.jsx(hTe,{})}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.