vendor: 5,346 bytes, lines 1-9
1var HN=Object.defineProperty;var D_=e=>{throw TypeError(e)};var zN=(e,t,n)=>t in e?HN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ti=(e,t,n)=>zN(e,typeof t!="symbol"?t+"":t,n),Ip=(e,t,n)=>t.has(e)||D_("Cannot "+n);var U=(e,t,n)=>(Ip(e,t,"read from private field"),n?n.call(e):t.get(e)),Ae=(e,t,n)=>t.has(e)?D_("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ye=(e,t,n,r)=>(Ip(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),$e=(e,t,n)=>(Ip(e,t,"access private method"),n);var dd=(e,t,n,r)=>({set _(i){ye(e,t,i,n)},get _(){return U(e,t,r)}});function $N(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var zu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ks(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var WE={exports:{}},of={},VE={exports:{}},Ue={};/** 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 Cc=Symbol.for("react.element"),qN=Symbol.for("react.portal"),WN=Symbol.for("react.fragment"),VN=Symbol.for("react.strict_mode"),KN=Symbol.for("react.profiler"),GN=Symbol.for("react.provider"),YN=Symbol.for("react.context"),QN=Symbol.for("react.forward_ref"),ZN=Symbol.for("react.suspense"),XN=Symbol.for("react.memo"),JN=Symbol.for("react.lazy"),M_=Symbol.iterator;function eP(e){return e===null||typeof e!="object"?null:(e=M_&&e[M_]||e["@@iterator"],typeof e=="function"?e:null)}var KE={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},GE=Object.assign,YE={};function vl(e,t,n){this.props=e,this.context=t,this.refs=YE,this.updater=n||KE}vl.prototype.isReactComponent={};vl.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};vl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function QE(){}QE.prototype=vl.prototype;function q0(e,t,n){this.props=e,this.context=t,this.refs=YE,this.updater=n||KE}var W0=q0.prototype=new QE;W0.constructor=q0;GE(W0,vl.prototype);W0.isPureReactComponent=!0;var B_=Array.isArray,ZE=Object.prototype.hasOwnProperty,V0={current:null},XE={key:!0,ref:!0,__self:!0,__source:!0};function JE(e,t,n){var r,i={},s=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(s=""+t.key),t)ZE.call(t,r)&&!XE.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var u=Array(l),h=0;h<l;h++)u[h]=arguments[h+2];i.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:Cc,type:e,key:s,ref:a,props:i,_owner:V0.current}}function tP(e,t){return{$$typeof:Cc,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function K0(e){return typeof e=="object"&&e!==null&&e.$$typeof===Cc}function nP(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var F_=/\/+/g;function Op(e,t){return typeof e=="object"&&e!==null&&e.key!=null?nP(""+e.key):t.toString(36)}function Gd(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(s){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Cc:case qN:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+Op(a,0):r,B_(i)?(n="",e!=null&&(n=e.replace(F_,"$&/")+"/"),Gd(i,t,n,"",function(h){return h})):i!=null&&(K0(i)&&(i=tP(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(F_,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",B_(e))for(var l=0;l<e.length;l++){s=e[l];var u=r+Op(s,l);a+=Gd(s,t,n,u,i)}else if(u=eP(e),typeof u=="function")for(e=u.call(e),l=0;!(s=e.next()).done;)s=s.value,u=r+Op(s,l++),a+=Gd(s,t,n,u,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}
vendor: 6,344 bytes, lines 9-25
9function hd(e,t,n){if(e==null)return e;var r=[],i=0;return Gd(e,r,"","",function(s){return t.call(n,s,i++)}),r}function rP(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var gn={current:null},Yd={transition:null},iP={ReactCurrentDispatcher:gn,ReactCurrentBatchConfig:Yd,ReactCurrentOwner:V0};function ew(){throw Error("act(...) is not supported in production builds of React.")}Ue.Children={map:hd,forEach:function(e,t,n){hd(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return hd(e,function(){t++}),t},toArray:function(e){return hd(e,function(t){return t})||[]},only:function(e){if(!K0(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ue.Component=vl;Ue.Fragment=WN;Ue.Profiler=KN;Ue.PureComponent=q0;Ue.StrictMode=VN;Ue.Suspense=ZN;Ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=iP;Ue.act=ew;Ue.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=GE({},e.props),i=e.key,s=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,a=V0.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)ZE.call(t,u)&&!XE.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&l!==void 0?l[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){l=Array(u);for(var h=0;h<u;h++)l[h]=arguments[h+2];r.children=l}return{$$typeof:Cc,type:e.type,key:i,ref:s,props:r,_owner:a}};Ue.createContext=function(e){return e={$$typeof:YN,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:GN,_context:e},e.Consumer=e};Ue.createElement=JE;Ue.createFactory=function(e){var t=JE.bind(null,e);return t.type=e,t};Ue.createRef=function(){return{current:null}};Ue.forwardRef=function(e){return{$$typeof:QN,render:e}};Ue.isValidElement=K0;Ue.lazy=function(e){return{$$typeof:JN,_payload:{_status:-1,_result:e},_init:rP}};Ue.memo=function(e,t){return{$$typeof:XN,type:e,compare:t===void 0?null:t}};Ue.startTransition=function(e){var t=Yd.transition;Yd.transition={};try{e()}finally{Yd.transition=t}};Ue.unstable_act=ew;Ue.useCallback=function(e,t){return gn.current.useCallback(e,t)};Ue.useContext=function(e){return gn.current.useContext(e)};Ue.useDebugValue=function(){};Ue.useDeferredValue=function(e){return gn.current.useDeferredValue(e)};Ue.useEffect=function(e,t){return gn.current.useEffect(e,t)};Ue.useId=function(){return gn.current.useId()};Ue.useImperativeHandle=function(e,t,n){return gn.current.useImperativeHandle(e,t,n)};Ue.useInsertionEffect=function(e,t){return gn.current.useInsertionEffect(e,t)};Ue.useLayoutEffect=function(e,t){return gn.current.useLayoutEffect(e,t)};Ue.useMemo=function(e,t){return gn.current.useMemo(e,t)};Ue.useReducer=function(e,t,n){return gn.current.useReducer(e,t,n)};Ue.useRef=function(e){return gn.current.useRef(e)};Ue.useState=function(e){return gn.current.useState(e)};Ue.useSyncExternalStore=function(e,t,n){return gn.current.useSyncExternalStore(e,t,n)};Ue.useTransition=function(){return gn.current.useTransition()};Ue.version="18.3.1";VE.exports=Ue;var A=VE.exports;const X=Ks(A),G0=$N({__proto__:null,default:X},[A]);/** 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 sP=A,oP=Symbol.for("react.element"),aP=Symbol.for("react.fragment"),lP=Object.prototype.hasOwnProperty,uP=sP.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,cP={key:!0,ref:!0,__self:!0,__source:!0};function tw(e,t,n){var r,i={},s=null,a=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)lP.call(t,r)&&!cP.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:oP,type:e,key:s,ref:a,props:i,_owner:uP.current}}of.Fragment=aP;of.jsx=tw;of.jsxs=tw;WE.exports=of;var c=WE.exports,nw={exports:{}},Yn={},rw={exports:{}},iw={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */(function(e){function t(z,J){var N=z.length;z.push(J);e:for(;0<N;){var le=N-1>>>1,ue=z[le];if(0<i(ue,J))z[le]=J,z[N]=ue,N=le;else break e}}function n(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var J=z[0],N=z.pop();if(N!==J){z[0]=N;e:for(var le=0,ue=z.length,j=ue>>>1;le<j;){var fe=2*(le+1)-1,ve=z[fe],pe=fe+1,Ne=z[pe];if(0>i(ve,N))pe<ue&&0>i(Ne,ve)?(z[le]=Ne,z[pe]=N,le=pe):(z[le]=ve,z[fe]=N,le=fe);else if(pe<ue&&0>i(Ne,N))z[le]=Ne,z[pe]=N,le=pe;else break e}}return J}function i(z,J){var N=z.sortIndex-J.sortIndex;return N!==0?N:z.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var u=[],h=[],f=1,m=null,y=3,g=!1,x=!1,v=!1,k=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function T(z){for(var J=n(h);J!==null;){if(J.callback===null)r(h);else if(J.startTime<=z)r(h),J.sortIndex=J.expirationTime,t(u,J);else break;J=n(h)}}function P(z){if(v=!1,T(z),!x)if(n(u)!==null)x=!0,se(F);else{var J=n(h);J!==null&&me(P,J.startTime-z)}}function F(z,J){x=!1,v&&(v=!1,E(K),K=-1),g=!0;var N=y;try{for(T(J),m=n(u);m!==null&&(!(m.expirationTime>J)||z&&!Z());){var le=m.callback;if(typeof le=="function"){m.callback=null,y=m.priorityLevel;var ue=le(m.expirationTime<=J);J=e.unstable_now(),typeof ue=="function"?m.callback=ue:m===n(u)&&r(u),T(J)}else r(u);m=n(u)}if(m!==null)var j=!0;
vendor: 8,989 bytes, lines 25-34
25else{var fe=n(h);fe!==null&&me(P,fe.startTime-J),j=!1}return j}finally{m=null,y=N,g=!1}}var O=!1,H=null,K=-1,Q=5,M=-1;function Z(){return!(e.unstable_now()-M<Q)}function W(){if(H!==null){var z=e.unstable_now();M=z;var J=!0;try{J=H(!0,z)}finally{J?ce():(O=!1,H=null)}}else O=!1}var ce;if(typeof S=="function")ce=function(){S(W)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,de=ee.port2;ee.port1.onmessage=W,ce=function(){de.postMessage(null)}}else ce=function(){k(W,0)};function se(z){H=z,O||(O=!0,ce())}function me(z,J){K=k(function(){z(e.unstable_now())},J)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null},e.unstable_continueExecution=function(){x||g||(x=!0,se(F))},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(z){switch(y){case 1:case 2:case 3:var J=3;break;default:J=y}var N=y;y=J;try{return z()}finally{y=N}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(z,J){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var N=y;y=z;try{return J()}finally{y=N}},e.unstable_scheduleCallback=function(z,J,N){var le=e.unstable_now();switch(typeof N=="object"&&N!==null?(N=N.delay,N=typeof N=="number"&&0<N?le+N:le):N=le,z){case 1:var ue=-1;break;case 2:ue=250;break;case 5:ue=1073741823;break;case 4:ue=1e4;break;default:ue=5e3}return ue=N+ue,z={id:f++,callback:J,priorityLevel:z,startTime:N,expirationTime:ue,sortIndex:-1},N>le?(z.sortIndex=N,t(h,z),n(u)===null&&z===n(h)&&(v?(E(K),K=-1):v=!0,me(P,N-le))):(z.sortIndex=ue,t(u,z),x||g||(x=!0,se(F))),z},e.unstable_shouldYield=Z,e.unstable_wrapCallback=function(z){var J=y;return function(){var N=y;y=J;try{return z.apply(this,arguments)}finally{y=N}}}})(iw);rw.exports=iw;var dP=rw.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 hP=A,Kn=dP;function ie(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var sw=new Set,$u={};function Ko(e,t){ll(e,t),ll(e+"Capture",t)}function ll(e,t){for($u[e]=t,e=0;e<t.length;e++)sw.add(t[e])}var Di=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zm=Object.prototype.hasOwnProperty,fP=/^[: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]*$/,U_={},H_={};function pP(e){return zm.call(H_,e)?!0:zm.call(U_,e)?!1:fP.test(e)?H_[e]=!0:(U_[e]=!0,!1)}function mP(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function gP(e,t,n,r){if(t===null||typeof t>"u"||mP(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function yn(e,t,n,r,i,s,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=a}var Qt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Qt[e]=new yn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Qt[t]=new yn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Qt[e]=new yn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Qt[e]=new yn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Qt[e]=new yn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Qt[e]=new yn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Qt[e]=new yn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Qt[e]=new yn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Qt[e]=new yn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Y0=/[\-:]([a-z])/g;function Q0(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Y0,Q0);Qt[t]=new yn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Y0,Q0);Qt[t]=new yn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Y0,Q0);Qt[t]=new yn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Qt[e]=new yn(e,1,!1,e.toLowerCase(),null,!1,!1)});Qt.xlinkHref=new yn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Qt[e]=new yn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Z0(e,t,n,r){var i=Qt.hasOwnProperty(t)?Qt[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(gP(t,n,i,r)&&(n=null),r||i===null?pP(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var zi=hP.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,fd=Symbol.for("react.element"),wa=Symbol.for("react.portal"),Ta=Symbol.for("react.fragment"),X0=Symbol.for("react.strict_mode"),$m=Symbol.for("react.profiler"),ow=Symbol.for("react.provider"),aw=Symbol.for("react.context"),J0=Symbol.for("react.forward_ref"),qm=Symbol.for("react.suspense"),Wm=Symbol.for("react.suspense_list"),ey=Symbol.for("react.memo"),fs=Symbol.for("react.lazy"),lw=Symbol.for("react.offscreen"),z_=Symbol.iterator;function Ql(e){return e===null||typeof e!="object"?null:(e=z_&&e[z_]||e["@@iterator"],typeof e=="function"?e:null)}var gt=Object.assign,Lp;function fu(e){if(Lp===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Lp=t&&t[1]||""}return` 34`+Lp+e}var Rp=!1;function jp(e,t){if(!e||Rp)return"";Rp=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(h){var r=h}Reflect.construct(e,[],t)}else{try{t.call()}catch(h){r=h}e.call(t.prototype)}else{try{throw Error()}catch(h){r=h}e()}}
vendor: 18,193 bytes, lines 34-37
34catch(h){if(h&&r&&typeof h.stack=="string"){for(var i=h.stack.split(` 35`),s=r.stack.split(` 36`),a=i.length-1,l=s.length-1;1<=a&&0<=l&&i[a]!==s[l];)l--;for(;1<=a&&0<=l;a--,l--)if(i[a]!==s[l]){if(a!==1||l!==1)do if(a--,l--,0>l||i[a]!==s[l]){var u=` 37`+i[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=a&&0<=l);break}}}finally{Rp=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?fu(e):""}function yP(e){switch(e.tag){case 5:return fu(e.type);case 16:return fu("Lazy");case 13:return fu("Suspense");case 19:return fu("SuspenseList");case 0:case 2:case 15:return e=jp(e.type,!1),e;case 11:return e=jp(e.type.render,!1),e;case 1:return e=jp(e.type,!0),e;default:return""}}function Vm(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ta:return"Fragment";case wa:return"Portal";case $m:return"Profiler";case X0:return"StrictMode";case qm:return"Suspense";case Wm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case aw:return(e.displayName||"Context")+".Consumer";case ow:return(e._context.displayName||"Context")+".Provider";case J0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ey:return t=e.displayName||null,t!==null?t:Vm(e.type)||"Memo";case fs:t=e._payload,e=e._init;try{return Vm(e(t))}catch{}}return null}function bP(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Vm(t);case 8:return t===X0?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function zs(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function uw(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _P(e){var t=uw(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,s.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function pd(e){e._valueTracker||(e._valueTracker=_P(e))}function cw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=uw(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function yh(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Km(e,t){var n=t.checked;return gt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function $_(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=zs(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function dw(e,t){t=t.checked,t!=null&&Z0(e,"checked",t,!1)}function Gm(e,t){dw(e,t);var n=zs(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ym(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ym(e,t.type,zs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function q_(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ym(e,t,n){(t!=="number"||yh(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var pu=Array.isArray;function Ba(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+zs(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Qm(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(ie(91));return gt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function W_(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(ie(92));if(pu(n)){if(1<n.length)throw Error(ie(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:zs(n)}}function hw(e,t){var n=zs(t.value),r=zs(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function V_(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function fw(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Zm(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?fw(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var md,pw=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(md=md||document.createElement("div"),md.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=md.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function qu(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var xu={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},vP=["Webkit","ms","Moz","O"];Object.keys(xu).forEach(function(e){vP.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),xu[t]=xu[e]})});function mw(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||xu.hasOwnProperty(e)&&xu[e]?(""+t).trim():t+"px"}function gw(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=mw(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var xP=gt({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 Xm(e,t){if(t){if(xP[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ie(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ie(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ie(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ie(62))}}function Jm(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var eg=null;function ty(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var tg=null,Fa=null,Ua=null;function K_(e){if(e=Pc(e)){if(typeof tg!="function")throw Error(ie(280));var t=e.stateNode;t&&(t=df(t),tg(e.stateNode,e.type,t))}}function yw(e){Fa?Ua?Ua.push(e):Ua=[e]:Fa=e}function bw(){if(Fa){var e=Fa,t=Ua;if(Ua=Fa=null,K_(e),t)for(e=0;e<t.length;e++)K_(t[e])}}function _w(e,t){return e(t)}function vw(){}var Dp=!1;function xw(e,t,n){if(Dp)return e(t,n);Dp=!0;try{return _w(e,t,n)}finally{Dp=!1,(Fa!==null||Ua!==null)&&(vw(),bw())}}function Wu(e,t){var n=e.stateNode;if(n===null)return null;var r=df(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(ie(231,t,typeof n));return n}var ng=!1;if(Di)try{var Zl={};Object.defineProperty(Zl,"passive",{get:function(){ng=!0}}),window.addEventListener("test",Zl,Zl),window.removeEventListener("test",Zl,Zl)}catch{ng=!1}function EP(e,t,n,r,i,s,a,l,u){var h=Array.prototype.slice.call(arguments,3);try{t.apply(n,h)}catch(f){this.onError(f)}}var Eu=!1,bh=null,_h=!1,rg=null,wP={onError:function(e){Eu=!0,bh=e}};function TP(e,t,n,r,i,s,a,l,u){Eu=!1,bh=null,EP.apply(wP,arguments)}function SP(e,t,n,r,i,s,a,l,u){if(TP.apply(this,arguments),Eu){if(Eu){var h=bh;Eu=!1,bh=null}else throw Error(ie(198));_h||(_h=!0,rg=h)}}function Go(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Ew(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function G_(e){if(Go(e)!==e)throw Error(ie(188))}function kP(e){var t=e.alternate;if(!t){if(t=Go(e),t===null)throw Error(ie(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return G_(i),e;if(s===r)return G_(i),t;s=s.sibling}throw Error(ie(188))}if(n.return!==r.return)n=i,r=s;else{for(var a=!1,l=i.child;l;){if(l===n){a=!0,n=i,r=s;break}if(l===r){a=!0,r=i,n=s;break}l=l.sibling}if(!a){for(l=s.child;l;){if(l===n){a=!0,n=s,r=i;break}if(l===r){a=!0,r=s,n=i;break}l=l.sibling}if(!a)throw Error(ie(189))}}if(n.alternate!==r)throw Error(ie(190))}if(n.tag!==3)throw Error(ie(188));return n.stateNode.current===n?e:t}function ww(e){return e=kP(e),e!==null?Tw(e):null}function Tw(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Tw(e);if(t!==null)return t;e=e.sibling}return null}var Sw=Kn.unstable_scheduleCallback,Y_=Kn.unstable_cancelCallback,CP=Kn.unstable_shouldYield,AP=Kn.unstable_requestPaint,Et=Kn.unstable_now,NP=Kn.unstable_getCurrentPriorityLevel,ny=Kn.unstable_ImmediatePriority,kw=Kn.unstable_UserBlockingPriority,vh=Kn.unstable_NormalPriority,PP=Kn.unstable_LowPriority,Cw=Kn.unstable_IdlePriority,af=null,li=null;function IP(e){if(li&&typeof li.onCommitFiberRoot=="function")try{li.onCommitFiberRoot(af,e,void 0,(e.current.flags&128)===128)}catch{}}var Ir=Math.clz32?Math.clz32:RP,OP=Math.log,LP=Math.LN2;function RP(e){return e>>>=0,e===0?32:31-(OP(e)/LP|0)|0}var gd=64,yd=4194304;function mu(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function xh(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~i;l!==0?r=mu(l):(s&=a,s!==0&&(r=mu(s)))}else a=n&~i,a!==0?r=mu(a):s!==0&&(r=mu(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ir(t),i=1<<n,r|=e[n],t&=~i;return r}function jP(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function DP(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var a=31-Ir(s),l=1<<a,u=i[a];u===-1?(!(l&n)||l&r)&&(i[a]=jP(l,t)):u<=t&&(e.expiredLanes|=l),s&=~l}}function ig(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Aw(){var e=gd;return gd<<=1,!(gd&4194240)&&(gd=64),e}function Mp(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ac(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ir(t),e[t]=n}function MP(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Ir(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function ry(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ir(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Je=0;function Nw(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Pw,iy,Iw,Ow,Lw,sg=!1,bd=[],Os=null,Ls=null,Rs=null,Vu=new Map,Ku=new Map,gs=[],BP="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 Q_(e,t){switch(e){case"focusin":case"focusout":Os=null;break;case"dragenter":case"dragleave":Ls=null;break;case"mouseover":case"mouseout":Rs=null;break;case"pointerover":case"pointerout":Vu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ku.delete(t.pointerId)}}function Xl(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=Pc(t),t!==null&&iy(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function FP(e,t,n,r,i){switch(t){case"focusin":return Os=Xl(Os,e,t,n,r,i),!0;case"dragenter":return Ls=Xl(Ls,e,t,n,r,i),!0;case"mouseover":return Rs=Xl(Rs,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return Vu.set(s,Xl(Vu.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,Ku.set(s,Xl(Ku.get(s)||null,e,t,n,r,i)),!0}return!1}function Rw(e){var t=_o(e.target);if(t!==null){var n=Go(t);if(n!==null){if(t=n.tag,t===13){if(t=Ew(n),t!==null){e.blockedOn=t,Lw(e.priority,function(){Iw(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Qd(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=og(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);eg=r,n.target.dispatchEvent(r),eg=null}else return t=Pc(n),t!==null&&iy(t),e.blockedOn=n,!1;t.shift()}return!0}function Z_(e,t,n){Qd(e)&&n.delete(t)}function UP(){sg=!1,Os!==null&&Qd(Os)&&(Os=null),Ls!==null&&Qd(Ls)&&(Ls=null),Rs!==null&&Qd(Rs)&&(Rs=null),Vu.forEach(Z_),Ku.forEach(Z_)}function Jl(e,t){e.blockedOn===t&&(e.blockedOn=null,sg||(sg=!0,Kn.unstable_scheduleCallback(Kn.unstable_NormalPriority,UP)))}function Gu(e){function t(i){return Jl(i,e)}if(0<bd.length){Jl(bd[0],e);for(var n=1;n<bd.length;n++){var r=bd[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Os!==null&&Jl(Os,e),Ls!==null&&Jl(Ls,e),Rs!==null&&Jl(Rs,e),Vu.forEach(t),Ku.forEach(t),n=0;n<gs.length;n++)r=gs[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<gs.length&&(n=gs[0],n.blockedOn===null);)Rw(n),n.blockedOn===null&&gs.shift()}var Ha=zi.ReactCurrentBatchConfig,Eh=!0;function HP(e,t,n,r){var i=Je,s=Ha.transition;Ha.transition=null;try{Je=1,sy(e,t,n,r)}finally{Je=i,Ha.transition=s}}function zP(e,t,n,r){var i=Je,s=Ha.transition;Ha.transition=null;try{Je=4,sy(e,t,n,r)}finally{Je=i,Ha.transition=s}}function sy(e,t,n,r){if(Eh){var i=og(e,t,n,r);if(i===null)Kp(e,t,r,wh,n),Q_(e,r);else if(FP(i,e,t,n,r))r.stopPropagation();else if(Q_(e,r),t&4&&-1<BP.indexOf(e)){for(;i!==null;){var s=Pc(i);if(s!==null&&Pw(s),s=og(e,t,n,r),s===null&&Kp(e,t,r,wh,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else Kp(e,t,r,null,n)}}var wh=null;function og(e,t,n,r){if(wh=null,e=ty(r),e=_o(e),e!==null)if(t=Go(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Ew(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return wh=e,null}
vendor: 10,401 bytes, line 37
37function jw(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(NP()){case ny:return 1;case kw:return 4;case vh:case PP:return 16;case Cw:return 536870912;default:return 16}default:return 16}}var As=null,oy=null,Zd=null;function Dw(){if(Zd)return Zd;var e,t=oy,n=t.length,r,i="value"in As?As.value:As.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[s-r];r++);return Zd=i.slice(e,1<r?1-r:void 0)}function Xd(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function _d(){return!0}function X_(){return!1}function Qn(e){function t(n,r,i,s,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(s):s[l]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?_d:X_,this.isPropagationStopped=X_,this}return gt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=_d)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=_d)},persist:function(){},isPersistent:_d}),t}var xl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ay=Qn(xl),Nc=gt({},xl,{view:0,detail:0}),$P=Qn(Nc),Bp,Fp,eu,lf=gt({},Nc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ly,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==eu&&(eu&&e.type==="mousemove"?(Bp=e.screenX-eu.screenX,Fp=e.screenY-eu.screenY):Fp=Bp=0,eu=e),Bp)},movementY:function(e){return"movementY"in e?e.movementY:Fp}}),J_=Qn(lf),qP=gt({},lf,{dataTransfer:0}),WP=Qn(qP),VP=gt({},Nc,{relatedTarget:0}),Up=Qn(VP),KP=gt({},xl,{animationName:0,elapsedTime:0,pseudoElement:0}),GP=Qn(KP),YP=gt({},xl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),QP=Qn(YP),ZP=gt({},xl,{data:0}),ev=Qn(ZP),XP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},JP={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"},eI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tI(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=eI[e])?!!t[e]:!1}function ly(){return tI}var nI=gt({},Nc,{key:function(e){if(e.key){var t=XP[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Xd(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?JP[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ly,charCode:function(e){return e.type==="keypress"?Xd(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xd(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),rI=Qn(nI),iI=gt({},lf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),tv=Qn(iI),sI=gt({},Nc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ly}),oI=Qn(sI),aI=gt({},xl,{propertyName:0,elapsedTime:0,pseudoElement:0}),lI=Qn(aI),uI=gt({},lf,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),cI=Qn(uI),dI=[9,13,27,32],uy=Di&&"CompositionEvent"in window,wu=null;Di&&"documentMode"in document&&(wu=document.documentMode);var hI=Di&&"TextEvent"in window&&!wu,Mw=Di&&(!uy||wu&&8<wu&&11>=wu),nv=" ",rv=!1;function Bw(e,t){switch(e){case"keyup":return dI.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Sa=!1;function fI(e,t){switch(e){case"compositionend":return Fw(t);case"keypress":return t.which!==32?null:(rv=!0,nv);case"textInput":return e=t.data,e===nv&&rv?null:e;default:return null}}function pI(e,t){if(Sa)return e==="compositionend"||!uy&&Bw(e,t)?(e=Dw(),Zd=oy=As=null,Sa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mw&&t.locale!=="ko"?null:t.data;default:return null}}var mI={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 iv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!mI[e.type]:t==="textarea"}function Uw(e,t,n,r){yw(r),t=Th(t,"onChange"),0<t.length&&(n=new ay("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Tu=null,Yu=null;function gI(e){Zw(e,0)}function uf(e){var t=Aa(e);if(cw(t))return e}function yI(e,t){if(e==="change")return t}var Hw=!1;if(Di){var Hp;if(Di){var zp="oninput"in document;if(!zp){var sv=document.createElement("div");sv.setAttribute("oninput","return;"),zp=typeof sv.oninput=="function"}Hp=zp}else Hp=!1;Hw=Hp&&(!document.documentMode||9<document.documentMode)}function ov(){Tu&&(Tu.detachEvent("onpropertychange",zw),Yu=Tu=null)}function zw(e){if(e.propertyName==="value"&&uf(Yu)){var t=[];Uw(t,Yu,e,ty(e)),xw(gI,t)}}function bI(e,t,n){e==="focusin"?(ov(),Tu=t,Yu=n,Tu.attachEvent("onpropertychange",zw)):e==="focusout"&&ov()}function _I(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return uf(Yu)}function vI(e,t){if(e==="click")return uf(t)}function xI(e,t){if(e==="input"||e==="change")return uf(t)}function EI(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Rr=typeof Object.is=="function"?Object.is:EI;function Qu(e,t){if(Rr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!zm.call(t,i)||!Rr(e[i],t[i]))return!1}return!0}function av(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lv(e,t){var n=av(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=av(n)}}function $w(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$w(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qw(){for(var e=window,t=yh();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=yh(e.document)}return t}function cy(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function wI(e){var t=qw(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&$w(n.ownerDocument.documentElement,n)){if(r!==null&&cy(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=lv(n,s);var a=lv(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var TI=Di&&"documentMode"in document&&11>=document.documentMode,ka=null,ag=null,Su=null,lg=!1;function uv(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;lg||ka==null||ka!==yh(r)||(r=ka,"selectionStart"in r&&cy(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,501 bytes, line 37
37sNode:r.focusNode,focusOffset:r.focusOffset}),Su&&Qu(Su,r)||(Su=r,r=Th(ag,"onSelect"),0<r.length&&(t=new ay("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ka)))}function vd(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ca={animationend:vd("Animation","AnimationEnd"),animationiteration:vd("Animation","AnimationIteration"),animationstart:vd("Animation","AnimationStart"),transitionend:vd("Transition","TransitionEnd")},$p={},Ww={};Di&&(Ww=document.createElement("div").style,"AnimationEvent"in window||(delete Ca.animationend.animation,delete Ca.animationiteration.animation,delete Ca.animationstart.animation),"TransitionEvent"in window||delete Ca.transitionend.transition);function cf(e){if($p[e])return $p[e];if(!Ca[e])return e;var t=Ca[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ww)return $p[e]=t[n];return e}var Vw=cf("animationend"),Kw=cf("animationiteration"),Gw=cf("animationstart"),Yw=cf("transitionend"),Qw=new Map,cv="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 Gs(e,t){Qw.set(e,t),Ko(t,[e])}for(var qp=0;qp<cv.length;qp++){var Wp=cv[qp],SI=Wp.toLowerCase(),kI=Wp[0].toUpperCase()+Wp.slice(1);Gs(SI,"on"+kI)}Gs(Vw,"onAnimationEnd");Gs(Kw,"onAnimationIteration");Gs(Gw,"onAnimationStart");Gs("dblclick","onDoubleClick");Gs("focusin","onFocus");Gs("focusout","onBlur");Gs(Yw,"onTransitionEnd");ll("onMouseEnter",["mouseout","mouseover"]);ll("onMouseLeave",["mouseout","mouseover"]);ll("onPointerEnter",["pointerout","pointerover"]);ll("onPointerLeave",["pointerout","pointerover"]);Ko("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ko("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ko("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ko("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ko("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ko("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gu="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(" "),CI=new Set("cancel close invalid load scroll toggle".split(" ").concat(gu));function dv(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,SP(r,t,void 0,e),e.currentTarget=null}function Zw(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],u=l.instance,h=l.currentTarget;if(l=l.listener,u!==s&&i.isPropagationStopped())break e;dv(i,l,h),s=u}else for(a=0;a<r.length;a++){if(l=r[a],u=l.instance,h=l.currentTarget,l=l.listener,u!==s&&i.isPropagationStopped())break e;dv(i,l,h),s=u}}}if(_h)throw e=rg,_h=!1,rg=null,e}function at(e,t){var n=t[fg];n===void 0&&(n=t[fg]=new Set);var r=e+"__bubble";n.has(r)||(Xw(t,e,2,!1),n.add(r))}function Vp(e,t,n){var r=0;t&&(r|=4),Xw(n,e,r,t)}var xd="_reactListening"+Math.random().toString(36).slice(2);function Zu(e){if(!e[xd]){e[xd]=!0,sw.forEach(function(n){n!=="selectionchange"&&(CI.has(n)||Vp(n,!1,e),Vp(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xd]||(t[xd]=!0,Vp("selectionchange",!1,t))}}function Xw(e,t,n,r){switch(jw(t)){case 1:var i=HP;break;case 4:i=zP;break;default:i=sy}n=i.bind(null,t,n,e),i=void 0,!ng||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Kp(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var l=r.stateNode.containerInfo;
vendor: 4,157 bytes, line 37
37if(l===i||l.nodeType===8&&l.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var u=a.tag;if((u===3||u===4)&&(u=a.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;a=a.return}for(;l!==null;){if(a=_o(l),a===null)return;if(u=a.tag,u===5||u===6){r=s=a;continue e}l=l.parentNode}}r=r.return}xw(function(){var h=s,f=ty(n),m=[];e:{var y=Qw.get(e);if(y!==void 0){var g=ay,x=e;switch(e){case"keypress":if(Xd(n)===0)break e;case"keydown":case"keyup":g=rI;break;case"focusin":x="focus",g=Up;break;case"focusout":x="blur",g=Up;break;case"beforeblur":case"afterblur":g=Up;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":g=J_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=WP;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=oI;break;case Vw:case Kw:case Gw:g=GP;break;case Yw:g=lI;break;case"scroll":g=$P;break;case"wheel":g=cI;break;case"copy":case"cut":case"paste":g=QP;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=tv}var v=(t&4)!==0,k=!v&&e==="scroll",E=v?y!==null?y+"Capture":null:y;v=[];for(var S=h,T;S!==null;){T=S;var P=T.stateNode;if(T.tag===5&&P!==null&&(T=P,E!==null&&(P=Wu(S,E),P!=null&&v.push(Xu(S,P,T)))),k)break;S=S.return}0<v.length&&(y=new g(y,x,null,n,f),m.push({event:y,listeners:v}))}}if(!(t&7)){e:{if(y=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",y&&n!==eg&&(x=n.relatedTarget||n.fromElement)&&(_o(x)||x[Mi]))break e;if((g||y)&&(y=f.window===f?f:(y=f.ownerDocument)?y.defaultView||y.parentWindow:window,g?(x=n.relatedTarget||n.toElement,g=h,x=x?_o(x):null,x!==null&&(k=Go(x),x!==k||x.tag!==5&&x.tag!==6)&&(x=null)):(g=null,x=h),g!==x)){if(v=J_,P="onMouseLeave",E="onMouseEnter",S="mouse",(e==="pointerout"||e==="pointerover")&&(v=tv,P="onPointerLeave",E="onPointerEnter",S="pointer"),k=g==null?y:Aa(g),T=x==null?y:Aa(x),y=new v(P,S+"leave",g,n,f),y.target=k,y.relatedTarget=T,P=null,_o(f)===h&&(v=new v(E,S+"enter",x,n,f),v.target=T,v.relatedTarget=k,P=v),k=P,g&&x)t:{for(v=g,E=x,S=0,T=v;T;T=la(T))S++;for(T=0,P=E;P;P=la(P))T++;for(;0<S-T;)v=la(v),S--;for(;0<T-S;)E=la(E),T--;for(;S--;){if(v===E||E!==null&&v===E.alternate)break t;v=la(v),E=la(E)}v=null}else v=null;g!==null&&hv(m,y,g,v,!1),x!==null&&k!==null&&hv(m,k,x,v,!0)}}e:{if(y=h?Aa(h):window,g=y.nodeName&&y.nodeName.toLowerCase(),g==="select"||g==="input"&&y.type==="file")var F=yI;else if(iv(y))if(Hw)F=xI;else{F=_I;var O=bI}else(g=y.nodeName)&&g.toLowerCase()==="input"&&(y.type==="checkbox"||y.type==="radio")&&(F=vI);if(F&&(F=F(e,h))){Uw(m,F,n,f);break e}O&&O(e,y,h),e==="focusout"&&(O=y._wrapperState)&&O.controlled&&y.type==="number"&&Ym(y,"number",y.value)}switch(O=h?Aa(h):window,e){case"focusin":(iv(O)||O.contentEditable==="true")&&(ka=O,ag=h,Su=null);break;case"focusout":Su=ag=ka=null;break;case"mousedown":lg=!0;break;case"contextmenu":case"mouseup":case"dragend":lg=!1,uv(m,n,f);break;case"selectionchange":if(TI)break;case"keydown":case"keyup":uv(m,n,f)}var H;if(uy)e:{switch(e){case"compositionstart":var K="onCompositionStart";break e;case"compositionend":K="onCompositionEnd";break e;case"compositionupdate":K="onCompositionUpdate";break e}K=void 0}else Sa?Bw(e,n)&&(K="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(K="onCompositionStart");K&&(Mw&&n.locale!=="ko"&&(Sa||K!=="onCompositionStart"?K==="onCompositionEnd"&&Sa&&(H=Dw()):(As=f,oy="value"in As?As.value:As.textContent,Sa=!0)),O=Th(h,K),0<O.length&&(K=new ev(K,e,null,n,f),m.push({event:K,listeners:O}),H?K.data=H:(H=Fw(n),H!==null&&(K.data=H)))),(H=hI?fI(e,n):pI(e,n))&&(h=Th(h,"onBeforeInput"),0<h.length&&(f=new ev("onBeforeInput","beforeinput",null,n,f),m.push({event:f,listeners:h}),f.data=H))}Zw(m,t)})}function Xu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Th(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Wu(e,n),s!=null&&r.unshift(Xu(e,s,i)
vendor: 3,107 bytes, lines 37-38
37),s=Wu(e,t),s!=null&&r.push(Xu(e,s,i))),e=e.return}return r}function la(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function hv(e,t,n,r,i){for(var s=t._reactName,a=[];n!==null&&n!==r;){var l=n,u=l.alternate,h=l.stateNode;if(u!==null&&u===r)break;l.tag===5&&h!==null&&(l=h,i?(u=Wu(n,s),u!=null&&a.unshift(Xu(n,u,l))):i||(u=Wu(n,s),u!=null&&a.push(Xu(n,u,l)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var AI=/\r\n?/g,NI=/\u0000|\uFFFD/g;function fv(e){return(typeof e=="string"?e:""+e).replace(AI,` 38`).replace(NI,"")}function Ed(e,t,n){if(t=fv(t),fv(e)!==t&&n)throw Error(ie(425))}function Sh(){}var ug=null,cg=null;function dg(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var hg=typeof setTimeout=="function"?setTimeout:void 0,PI=typeof clearTimeout=="function"?clearTimeout:void 0,pv=typeof Promise=="function"?Promise:void 0,II=typeof queueMicrotask=="function"?queueMicrotask:typeof pv<"u"?function(e){return pv.resolve(null).then(e).catch(OI)}:hg;function OI(e){setTimeout(function(){throw e})}function Gp(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Gu(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Gu(t)}function js(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function mv(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var El=Math.random().toString(36).slice(2),oi="__reactFiber$"+El,Ju="__reactProps$"+El,Mi="__reactContainer$"+El,fg="__reactEvents$"+El,LI="__reactListeners$"+El,RI="__reactHandles$"+El;function _o(e){var t=e[oi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Mi]||n[oi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=mv(e);e!==null;){if(n=e[oi])return n;e=mv(e)}return t}e=n,n=e.parentNode}return null}function Pc(e){return e=e[oi]||e[Mi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Aa(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ie(33))}function df(e){return e[Ju]||null}var pg=[],Na=-1;function Ys(e){return{current:e}}function lt(e){0>Na||(e.current=pg[Na],pg[Na]=null,Na--)}function st(e,t){Na++,pg[Na]=e.current,e.current=t}var $s={},on=Ys($s),Pn=Ys(!1),Mo=$s;function ul(e,t){var n=e.type.contextTypes;if(!n)return $s;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function In(e){return e=e.childContextTypes,e!=null}function kh(){lt(Pn),lt(on)}function gv(e,t,n){if(on.current!==$s)throw Error(ie(168));st(on,t),st(Pn,n)}
vendor: 28,500 bytes, lines 38-40
38function Jw(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(ie(108,bP(e)||"Unknown",i));return gt({},n,r)}function Ch(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||$s,Mo=on.current,st(on,e),st(Pn,Pn.current),!0}function yv(e,t,n){var r=e.stateNode;if(!r)throw Error(ie(169));n?(e=Jw(e,t,Mo),r.__reactInternalMemoizedMergedChildContext=e,lt(Pn),lt(on),st(on,e)):lt(Pn),st(Pn,n)}var Pi=null,hf=!1,Yp=!1;function eT(e){Pi===null?Pi=[e]:Pi.push(e)}function jI(e){hf=!0,eT(e)}function Qs(){if(!Yp&&Pi!==null){Yp=!0;var e=0,t=Je;try{var n=Pi;for(Je=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Pi=null,hf=!1}catch(i){throw Pi!==null&&(Pi=Pi.slice(e+1)),Sw(ny,Qs),i}finally{Je=t,Yp=!1}}return null}var Pa=[],Ia=0,Ah=null,Nh=0,or=[],ar=0,Bo=null,Li=1,Ri="";function po(e,t){Pa[Ia++]=Nh,Pa[Ia++]=Ah,Ah=e,Nh=t}function tT(e,t,n){or[ar++]=Li,or[ar++]=Ri,or[ar++]=Bo,Bo=e;var r=Li;e=Ri;var i=32-Ir(r)-1;r&=~(1<<i),n+=1;var s=32-Ir(t)+i;if(30<s){var a=i-i%5;s=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Li=1<<32-Ir(t)+i|n<<i|r,Ri=s+e}else Li=1<<s|n<<i|r,Ri=e}function dy(e){e.return!==null&&(po(e,1),tT(e,1,0))}function hy(e){for(;e===Ah;)Ah=Pa[--Ia],Pa[Ia]=null,Nh=Pa[--Ia],Pa[Ia]=null;for(;e===Bo;)Bo=or[--ar],or[ar]=null,Ri=or[--ar],or[ar]=null,Li=or[--ar],or[ar]=null}var qn=null,$n=null,dt=!1,Nr=null;function nT(e,t){var n=cr(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function bv(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,qn=e,$n=js(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,qn=e,$n=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Bo!==null?{id:Li,overflow:Ri}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=cr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,qn=e,$n=null,!0):!1;default:return!1}}function mg(e){return(e.mode&1)!==0&&(e.flags&128)===0}function gg(e){if(dt){var t=$n;if(t){var n=t;if(!bv(e,t)){if(mg(e))throw Error(ie(418));t=js(n.nextSibling);var r=qn;t&&bv(e,t)?nT(r,n):(e.flags=e.flags&-4097|2,dt=!1,qn=e)}}else{if(mg(e))throw Error(ie(418));e.flags=e.flags&-4097|2,dt=!1,qn=e}}}function _v(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;qn=e}function wd(e){if(e!==qn)return!1;if(!dt)return _v(e),dt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!dg(e.type,e.memoizedProps)),t&&(t=$n)){if(mg(e))throw rT(),Error(ie(418));for(;t;)nT(e,t),t=js(t.nextSibling)}if(_v(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ie(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){$n=js(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}$n=null}}else $n=qn?js(e.stateNode.nextSibling):null;return!0}function rT(){for(var e=$n;e;)e=js(e.nextSibling)}function cl(){$n=qn=null,dt=!1}function fy(e){Nr===null?Nr=[e]:Nr.push(e)}var DI=zi.ReactCurrentBatchConfig;function tu(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(ie(309));var r=n.stateNode}if(!r)throw Error(ie(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(a){var l=i.refs;a===null?delete l[s]:l[s]=a},t._stringRef=s,t)}if(typeof e!="string")throw Error(ie(284));if(!n._owner)throw Error(ie(290,e))}return e}function Td(e,t){throw e=Object.prototype.toString.call(t),Error(ie(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function vv(e){var t=e._init;return t(e._payload)}function iT(e){function t(E,S){if(e){var T=E.deletions;T===null?(E.deletions=[S],E.flags|=16):T.push(S)}}function n(E,S){if(!e)return null;for(;S!==null;)t(E,S),S=S.sibling;return null}function r(E,S){for(E=new Map;S!==null;)S.key!==null?E.set(S.key,S):E.set(S.index,S),S=S.sibling;return E}function i(E,S){return E=Fs(E,S),E.index=0,E.sibling=null,E}function s(E,S,T){return E.index=T,e?(T=E.alternate,T!==null?(T=T.index,T<S?(E.flags|=2,S):T):(E.flags|=2,S)):(E.flags|=1048576,S)}function a(E){return e&&E.alternate===null&&(E.flags|=2),E}function l(E,S,T,P){return S===null||S.tag!==6?(S=nm(T,E.mode,P),S.return=E,S):(S=i(S,T),S.return=E,S)}function u(E,S,T,P){var F=T.type;return F===Ta?f(E,S,T.props.children,P,T.key):S!==null&&(S.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===fs&&vv(F)===S.type)?(P=i(S,T.props),P.ref=tu(E,S,T),P.return=E,P):(P=sh(T.type,T.key,T.props,null,E.mode,P),P.ref=tu(E,S,T),P.return=E,P)}function h(E,S,T,P){return S===null||S.tag!==4||S.stateNode.containerInfo!==T.containerInfo||S.stateNode.implementation!==T.implementation?(S=rm(T,E.mode,P),S.return=E,S):(S=i(S,T.children||[]),S.return=E,S)}function f(E,S,T,P,F){return S===null||S.tag!==7?(S=jo(T,E.mode,P,F),S.return=E,S):(S=i(S,T),S.return=E,S)}function m(E,S,T){if(typeof S=="string"&&S!==""||typeof S=="number")return S=nm(""+S,E.mode,T),S.return=E,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case fd:return T=sh(S.type,S.key,S.props,null,E.mode,T),T.ref=tu(E,null,S),T.return=E,T;case wa:return S=rm(S,E.mode,T),S.return=E,S;case fs:var P=S._init;return m(E,P(S._payload),T)}if(pu(S)||Ql(S))return S=jo(S,E.mode,T,null),S.return=E,S;Td(E,S)}return null}function y(E,S,T,P){var F=S!==null?S.key:null;if(typeof T=="string"&&T!==""||typeof T=="number")return F!==null?null:l(E,S,""+T,P);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case fd:return T.key===F?u(E,S,T,P):null;case wa:return T.key===F?h(E,S,T,P):null;case fs:return F=T._init,y(E,S,F(T._payload),P)}if(pu(T)||Ql(T))return F!==null?null:f(E,S,T,P,null);Td(E,T)}return null}function g(E,S,T,P,F){if(typeof P=="string"&&P!==""||typeof P=="number")return E=E.get(T)||null,l(S,E,""+P,F);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case fd:return E=E.get(P.key===null?T:P.key)||null,u(S,E,P,F);case wa:return E=E.get(P.key===null?T:P.key)||null,h(S,E,P,F);case fs:var O=P._init;return g(E,S,T,O(P._payload),F)}if(pu(P)||Ql(P))return E=E.get(T)||null,f(S,E,P,F,null);Td(S,P)}return null}function x(E,S,T,P){for(var F=null,O=null,H=S,K=S=0,Q=null;H!==null&&K<T.length;K++){H.index>K?(Q=H,H=null):Q=H.sibling;var M=y(E,H,T[K],P);if(M===null){H===null&&(H=Q);break}e&&H&&M.alternate===null&&t(E,H),S=s(M,S,K),O===null?F=M:O.sibling=M,O=M,H=Q}if(K===T.length)return n(E,H),dt&&po(E,K),F;if(H===null){for(;K<T.length;K++)H=m(E,T[K],P),H!==null&&(S=s(H,S,K),O===null?F=H:O.sibling=H,O=H);return dt&&po(E,K),F}for(H=r(E,H);K<T.length;K++)Q=g(H,E,K,T[K],P),Q!==null&&(e&&Q.alternate!==null&&H.delete(Q.key===null?K:Q.key),S=s(Q,S,K),O===null?F=Q:O.sibling=Q,O=Q);return e&&H.forEach(function(Z){return t(E,Z)}),dt&&po(E,K),F}function v(E,S,T,P){var F=Ql(T);if(typeof F!="function")throw Error(ie(150));if(T=F.call(T),T==null)throw Error(ie(151));for(var O=F=null,H=S,K=S=0,Q=null,M=T.next();H!==null&&!M.done;K++,M=T.next()){H.index>K?(Q=H,H=null):Q=H.sibling;var Z=y(E,H,M.value,P);if(Z===null){H===null&&(H=Q);break}e&&H&&Z.alternate===null&&t(E,H),S=s(Z,S,K),O===null?F=Z:O.sibling=Z,O=Z,H=Q}if(M.done)return n(E,H),dt&&po(E,K),F;if(H===null){for(;!M.done;K++,M=T.next())M=m(E,M.value,P),M!==null&&(S=s(M,S,K),O===null?F=M:O.sibling=M,O=M);return dt&&po(E,K),F}for(H=r(E,H);!M.done;K++,M=T.next())M=g(H,E,K,M.value,P),M!==null&&(e&&M.alternate!==null&&H.delete(M.key===null?K:M.key),S=s(M,S,K),O===null?F=M:O.sibling=M,O=M);return e&&H.forEach(function(W){return t(E,W)}),dt&&po(E,K),F}function k(E,S,T,P){if(typeof T=="object"&&T!==null&&T.type===Ta&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case fd:e:{for(var F=T.key,O=S;O!==null;){if(O.key===F){if(F=T.type,F===Ta){if(O.tag===7){n(E,O.sibling),S=i(O,T.props.children),S.return=E,E=S;break e}}else if(O.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===fs&&vv(F)===O.type){n(E,O.sibling),S=i(O,T.props),S.ref=tu(E,O,T),S.return=E,E=S;break e}n(E,O);break}else t(E,O);O=O.sibling}T.type===Ta?(S=jo(T.props.children,E.mode,P,T.key),S.return=E,E=S):(P=sh(T.type,T.key,T.props,null,E.mode,P),P.ref=tu(E,S,T),P.return=E,E=P)}return a(E);case wa:e:{for(O=T.key;S!==null;){if(S.key===O)if(S.tag===4&&S.stateNode.containerInfo===T.containerInfo&&S.stateNode.implementation===T.implementation){n(E,S.sibling),S=i(S,T.children||[]),S.return=E,E=S;break e}else{n(E,S);break}else t(E,S);S=S.sibling}S=rm(T,E.mode,P),S.return=E,E=S}return a(E);case fs:return O=T._init,k(E,S,O(T._payload),P)}if(pu(T))return x(E,S,T,P);if(Ql(T))return v(E,S,T,P);Td(E,T)}return typeof T=="string"&&T!==""||typeof T=="number"?(T=""+T,S!==null&&S.tag===6?(n(E,S.sibling),S=i(S,T),S.return=E,E=S):(n(E,S),S=nm(T,E.mode,P),S.return=E,E=S),a(E)):n(E,S)}return k}var dl=iT(!0),sT=iT(!1),Ph=Ys(null),Ih=null,Oa=null,py=null;function my(){py=Oa=Ih=null}function gy(e){var t=Ph.current;lt(Ph),e._currentValue=t}function yg(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function za(e,t){Ih=e,py=Oa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Nn=!0),e.firstContext=null)}function hr(e){var t=e._currentValue;if(py!==e)if(e={context:e,memoizedValue:t,next:null},Oa===null){if(Ih===null)throw Error(ie(308));Oa=e,Ih.dependencies={lanes:0,firstContext:e}}else Oa=Oa.next=e;return t}var vo=null;function yy(e){vo===null?vo=[e]:vo.push(e)}function oT(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,yy(t)):(n.next=i.next,i.next=n),t.interleaved=n,Bi(e,r)}function Bi(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ps=!1;function by(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function aT(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ji(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ds(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ge&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Bi(e,n)}return i=r.interleaved,i===null?(t.next=t,yy(r)):(t.next=i.next,i.next=t),r.interleaved=t,Bi(e,n)}function Jd(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ry(e,n)}}function xv(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=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?i=s=a:s=s.next=a,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Oh(e,t,n,r){var i=e.updateQueue;ps=!1;var s=i.firstBaseUpdate,a=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var u=l,h=u.next;u.next=null,a===null?s=h:a.next=h,a=u;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==a&&(l===null?f.firstBaseUpdate=h:l.next=h,f.lastBaseUpdate=u))}if(s!==null){var m=i.baseState;a=0,f=h=u=null,l=s;do{var y=l.lane,g=l.eventTime;if((r&y)===y){f!==null&&(f=f.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,v=l;switch(y=t,g=n,v.tag){case 1:if(x=v.payload,typeof x=="function"){m=x.call(g,m,y);break e}m=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=v.payload,y=typeof x=="function"?x.call(g,m,y):x,y==null)break e;m=gt({},m,y);break e;case 2:ps=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,y=i.effects,y===null?i.effects=[l]:y.push(l))}else g={eventTime:g,lane:y,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(h=f=g,u=m):f=f.next=g,a|=y;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;y=l,l=y.next,y.next=null,i.lastBaseUpdate=y,i.shared.pending=null}}while(!0);if(f===null&&(u=m),i.baseState=u,i.firstBaseUpdate=h,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);Uo|=a,e.lanes=a,e.memoizedState=m}}function Ev(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(ie(191,i));i.call(r)}}}var Ic={},ui=Ys(Ic),ec=Ys(Ic),tc=Ys(Ic);function xo(e){if(e===Ic)throw Error(ie(174));return e}function _y(e,t){switch(st(tc,t),st(ec,e),st(ui,Ic),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Zm(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Zm(t,e)}lt(ui),st(ui,t)}function hl(){lt(ui),lt(ec),lt(tc)}function lT(e){xo(tc.current);var t=xo(ui.current),n=Zm(t,e.type);t!==n&&(st(ec,e),st(ui,n))}function vy(e){ec.current===e&&(lt(ui),lt(ec))}var pt=Ys(0);function Lh(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Qp=[];function xy(){for(var e=0;e<Qp.length;e++)Qp[e]._workInProgressVersionPrimary=null;Qp.length=0}var eh=zi.ReactCurrentDispatcher,Zp=zi.ReactCurrentBatchConfig,Fo=0,mt=null,Lt=null,Ut=null,Rh=!1,ku=!1,nc=0,MI=0;function en(){throw Error(ie(321))}function Ey(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Rr(e[n],t[n]))return!1;return!0}function wy(e,t,n,r,i,s){if(Fo=s,mt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,eh.current=e===null||e.memoizedState===null?HI:zI,e=n(r,i),ku){s=0;do{if(ku=!1,nc=0,25<=s)throw Error(ie(301));s+=1,Ut=Lt=null,t.updateQueue=null,eh.current=$I,e=n(r,i)}while(ku)}if(eh.current=jh,t=Lt!==null&&Lt.next!==null,Fo=0,Ut=Lt=mt=null,Rh=!1,t)throw Error(ie(300));return e}function Ty(){var e=nc!==0;return nc=0,e}function Zr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ut===null?mt.memoizedState=Ut=e:Ut=Ut.next=e,Ut}function fr(){if(Lt===null){var e=mt.alternate;e=e!==null?e.memoizedState:null}else e=Lt.next;var t=Ut===null?mt.memoizedState:Ut.next;if(t!==null)Ut=t,Lt=e;else{if(e===null)throw Error(ie(310));Lt=e,e={memoizedState:Lt.memoizedState,baseState:Lt.baseState,baseQueue:Lt.baseQueue,queue:Lt.queue,next:null},Ut===null?mt.memoizedState=Ut=e:Ut=Ut.next=e}return Ut}function rc(e,t){return typeof t=="function"?t(e):t}function Xp(e){var t=fr(),n=t.queue;if(n===null)throw Error(ie(311));n.lastRenderedReducer=e;var r=Lt,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var a=i.next;i.next=s.next,s.next=a}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var l=a=null,u=null,h=s;do{var f=h.lane;if((Fo&f)===f)u!==null&&(u=u.next={lane:0,action:h.action,hasEagerState:h.hasEagerState,eagerState:h.eagerState,next:null}),r=h.hasEagerState?h.eagerState:e(r,h.action);else{var m={lane:f,action:h.action,hasEagerState:h.hasEagerState,eagerState:h.eagerState,next:null};u===null?(l=u=m,a=r):u=u.next=m,mt.lanes|=f,Uo|=f}h=h.next}while(h!==null&&h!==s);u===null?a=r:u.next=l,Rr(r,t.memoizedState)||(Nn=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,mt.lanes|=s,Uo|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Jp(e){var t=fr(),n=t.queue;if(n===null)throw Error(ie(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do s=e(s,a.action),a=a.next;while(a!==i);Rr(s,t.memoizedState)||(Nn=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function uT(){}function cT(e,t){var n=mt,r=fr(),i=t(),s=!Rr(r.memoizedState,i);if(s&&(r.memoizedState=i,Nn=!0),r=r.queue,Sy(fT.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Ut!==null&&Ut.memoizedState.tag&1){if(n.flags|=2048,ic(9,hT.bind(null,n,r,i,t),void 0,null),zt===null)throw Error(ie(349));Fo&30||dT(n,t,i)}return i}function dT(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=mt.updateQueue,t===null?(t={lastEffect:null,stores:null},mt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function hT(e,t,n,r){t.value=n,t.getSnapshot=r,pT(t)&&mT(e)}function fT(e,t,n){return n(function(){pT(t)&&mT(e)})}function pT(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Rr(e,n)}catch{return!0}}function mT(e){var t=Bi(e,1);t!==null&&Or(t,e,1,-1)}function wv(e){var t=Zr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:rc,lastRenderedState:e},t.queue=e,e=e.dispatch=UI.bind(null,mt,e),[t.memoizedState,e]}function ic(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=mt.updateQueue,t===null?(t={lastEffect:null,stores:null},mt.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function gT(){return fr().memoizedState}function th(e,t,n,r){var i=Zr();mt.flags|=e,i.memoizedState=ic(1|t,n,void 0,r===void 0?null:r)}function ff(e,t,n,r){var i=fr();r=r===void 0?null:r;var s=void 0;if(Lt!==null){var a=Lt.memoizedState;if(s=a.destroy,r!==null&&Ey(r,a.deps)){i.memoizedState=ic(t,n,s,r);return}}mt.flags|=e,i.memoizedState=ic(1|t,n,s,r)}function Tv(e,t){return th(8390656,8,e,t)}function Sy(e,t){return ff(2048,8,e,t)}function yT(e,t){return ff(4,2,e,t)}function bT(e,t){return ff(4,4,e,t)}function _T(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function vT(e,t,n){return n=n!=null?n.concat([e]):null,ff(4,4,_T.bind(null,t,e),n)}function ky(){}function xT(e,t){var n=fr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ey(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ET(e,t){var n=fr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ey(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function wT(e,t,n){return Fo&21?(Rr(n,t)||(n=Aw(),mt.lanes|=n,Uo|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Nn=!0),e.memoizedState=n)}function BI(e,t){var n=Je;Je=n!==0&&4>n?n:4,e(!0);var r=Zp.transition;Zp.transition={};try{e(!1),t()}finally{Je=n,Zp.transition=r}}function TT(){return fr().memoizedState}function FI(e,t,n){var r=Bs(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ST(e))kT(t,n);else if(n=oT(e,t,n,r),n!==null){var i=mn();Or(n,e,r,i),CT(n,t,r)}}function UI(e,t,n){var r=Bs(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ST(e))kT(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var a=t.lastRenderedState,l=s(a,n);if(i.hasEagerState=!0,i.eagerState=l,Rr(l,a)){var u=t.interleaved;u===null?(i.next=i,yy(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=oT(e,t,i,r),n!==null&&(i=mn(),Or(n,e,r,i),CT(n,t,r))}}function ST(e){var t=e.alternate;return e===mt||t!==null&&t===mt}function kT(e,t){ku=Rh=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function CT(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ry(e,n)}}var jh={readContext:hr,useCallback:en,useContext:en,useEffect:en,useImperativeHandle:en,useInsertionEffect:en,useLayoutEffect:en,useMemo:en,useReducer:en,useRef:en,useState:en,useDebugValue:en,useDeferredValue:en,useTransition:en,useMutableSource:en,useSyncExternalStore:en,useId:en,unstable_isNewReconciler:!1},HI={readContext:hr,useCallback:function(e,t){return Zr().memoizedState=[e,t===void 0?null:t],e},useContext:hr,useEffect:Tv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,th(4194308,4,_T.bind(null,t,e),n)},useLayoutEffect:function(e,t){return th(4194308,4,e,t)},useInsertionEffect:function(e,t){return th(4,2,e,t)},useMemo:function(e,t){var n=Zr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Zr();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=FI.bind(null,mt,e),[r.memoizedState,e]},useRef:function(e){var t=Zr();return e={current:e},t.memoizedState=e},useState:wv,useDebugValue:ky,useDeferredValue:function(e){return Zr().memoizedState=e},useTransition:function(){var e=wv(!1),t=e[0];return e=BI.bind(null,e[1]),Zr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=mt,i=Zr();if(dt){if(n===void 0)throw Error(ie(407));n=n()}else{if(n=t(),zt===null)throw Error(ie(349));Fo&30||dT(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Tv(fT.bind(null,r,s,e),[e]),r.flags|=2048,ic(9,hT.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Zr(),t=zt.identifierPrefix;if(dt){var n=Ri,r=Li;n=(r&~(1<<32-Ir(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=nc++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=MI++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},zI={readContext:hr,useCallback:xT,useContext:hr,useEffect:Sy,useImperativeHandle:vT,useInsertionEffect:yT,useLayoutEffect:bT,useMemo:ET,useReducer:Xp,useRef:gT,useState:function(){return Xp(rc)},useDebugValue:ky,useDeferredValue:function(e){var t=fr();return wT(t,Lt.memoizedState,e)},useTransition:function(){var e=Xp(rc)[0],t=fr().memoizedState;return[e,t]},useMutableSource:uT,useSyncExternalStore:cT,useId:TT,unstable_isNewReconciler:!1},$I={readContext:hr,useCallback:xT,useContext:hr,useEffect:Sy,useImperativeHandle:vT,useInsertionEffect:yT,useLayoutEffect:bT,useMemo:ET,useReducer:Jp,useRef:gT,useState:function(){return Jp(rc)},useDebugValue:ky,useDeferredValue:function(e){var t=fr();return Lt===null?t.memoizedState=e:wT(t,Lt.memoizedState,e)},useTransition:function(){var e=Jp(rc)[0],t=fr().memoizedState;return[e,t]},useMutableSource:uT,useSyncExternalStore:cT,useId:TT,unstable_isNewReconciler:!1};function Tr(e,t){if(e&&e.defaultProps){t=gt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function bg(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:gt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var pf={isMounted:function(e){return(e=e._reactInternals)?Go(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=mn(),i=Bs(e),s=ji(r,i);s.payload=t,n!=null&&(s.callback=n),t=Ds(e,s,i),t!==null&&(Or(t,e,i,r),Jd(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=mn(),i=Bs(e),s=ji(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Ds(e,s,i),t!==null&&(Or(t,e,i,r),Jd(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=mn(),r=Bs(e),i=ji(n,r);i.tag=2,t!=null&&(i.callback=t),t=Ds(e,i,r),t!==null&&(Or(t,e,r,n),Jd(t,e,r))}};function Sv(e,t,n,r,i,s,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,a):t.prototype&&t.prototype.isPureReactComponent?!Qu(n,r)||!Qu(i,s):!0}function AT(e,t,n){var r=!1,i=$s,s=t.contextType;return typeof s=="object"&&s!==null?s=hr(s):(i=In(t)?Mo:on.current,r=t.contextTypes,s=(r=r!=null)?ul(e,i):$s),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=pf,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function kv(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&pf.enqueueReplaceState(t,t.state,null)}function _g(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},by(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=hr(s):(s=In(t)?Mo:on.current,i.context=ul(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(bg(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&pf.enqueueReplaceState(i,i.state,null),Oh(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function fl(e,t){try{var n="",r=t;do n+=yP(r),r=r.return;while(r);var i=n}catch(s){i=` 39Error generating stack: `+s.message+` 40`+s.stack}return{value:e,source:t,stack:i,digest:null}}function em(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function vg(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var qI=typeof WeakMap=="function"?WeakMap:Map;function NT(e,t,n){n=ji(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Mh||(Mh=!0,Pg=r),vg(e,t)},n}function PT(e,t,n){n=ji(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){vg(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){vg(e,t),typeof r!="function"&&(Ms===null?Ms=new Set([this]):Ms.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function Cv(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new qI;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=iO.bind(null,e,t,n),t.then(e,e))}function Av(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Nv(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=ji(-1,1),t.tag=2,Ds(n,t,1))),n.lanes|=1),e)}var WI=zi.ReactCurrentOwner,Nn=!1;function fn(e,t,n,r){t.child=e===null?sT(t,null,n,r):dl(t,e.child,n,r)}function Pv(e,t,n,r,i){n=n.render;var s=t.ref;return za(t,i),r=wy(e,t,n,r,s,i),n=Ty(),e!==null&&!Nn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Fi(e,t,i)):(dt&&n&&dy(t),t.flags|=1,fn(e,t,r,i),t.child)}function Iv(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!Ry(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,IT(e,t,s,r,i)):(e=sh(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var a=s.memoizedProps;if(n=n.compare,n=n!==null?n:Qu,n(a,r)&&e.ref===t.ref)return Fi(e,t,i)}return t.flags|=1,e=Fs(s,r),e.ref=t.ref,e.return=t,t.child=e}function IT(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(Qu(s,r)&&e.ref===t.ref)if(Nn=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(Nn=!0);else return t.lanes=e.lanes,Fi(e,t,i)}return xg(e,t,n,r,i)}function OT(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},st(Ra,Un),Un|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,st(Ra,Un),Un|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,st(Ra,Un),Un|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,st(Ra,Un),Un|=r;return fn(e,t,i,n),t.child}function LT(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}
vendor: 9,519 bytes, line 40
40function xg(e,t,n,r,i){var s=In(n)?Mo:on.current;return s=ul(t,s),za(t,i),n=wy(e,t,n,r,s,i),r=Ty(),e!==null&&!Nn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Fi(e,t,i)):(dt&&r&&dy(t),t.flags|=1,fn(e,t,n,i),t.child)}function Ov(e,t,n,r,i){if(In(n)){var s=!0;Ch(t)}else s=!1;if(za(t,i),t.stateNode===null)nh(e,t),AT(t,n,r),_g(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var u=a.context,h=n.contextType;typeof h=="object"&&h!==null?h=hr(h):(h=In(n)?Mo:on.current,h=ul(t,h));var f=n.getDerivedStateFromProps,m=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";m||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||u!==h)&&kv(t,a,r,h),ps=!1;var y=t.memoizedState;a.state=y,Oh(t,r,a,i),u=t.memoizedState,l!==r||y!==u||Pn.current||ps?(typeof f=="function"&&(bg(t,n,f,r),u=t.memoizedState),(l=ps||Sv(t,n,l,r,y,u,h))?(m||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=h,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,aT(e,t),l=t.memoizedProps,h=t.type===t.elementType?l:Tr(t.type,l),a.props=h,m=t.pendingProps,y=a.context,u=n.contextType,typeof u=="object"&&u!==null?u=hr(u):(u=In(n)?Mo:on.current,u=ul(t,u));var g=n.getDerivedStateFromProps;(f=typeof g=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==m||y!==u)&&kv(t,a,r,u),ps=!1,y=t.memoizedState,a.state=y,Oh(t,r,a,i);var x=t.memoizedState;l!==m||y!==x||Pn.current||ps?(typeof g=="function"&&(bg(t,n,g,r),x=t.memoizedState),(h=ps||Sv(t,n,h,r,y,x,u)||!1)?(f||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,x,u),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,x,u)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),a.props=r,a.state=x,a.context=u,r=h):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),r=!1)}return Eg(e,t,n,r,s,i)}function Eg(e,t,n,r,i,s){LT(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&yv(t,n,!1),Fi(e,t,s);r=t.stateNode,WI.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=dl(t,e.child,null,s),t.child=dl(t,null,l,s)):fn(e,t,l,s),t.memoizedState=r.state,i&&yv(t,n,!0),t.child}function RT(e){var t=e.stateNode;t.pendingContext?gv(e,t.pendingContext,t.pendingContext!==t.context):t.context&&gv(e,t.context,!1),_y(e,t.containerInfo)}function Lv(e,t,n,r,i){return cl(),fy(i),t.flags|=256,fn(e,t,n,r),t.child}var wg={dehydrated:null,treeContext:null,retryLane:0};function Tg(e){return{baseLanes:e,cachePool:null,transitions:null}}function jT(e,t,n){var r=t.pendingProps,i=pt.current,s=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),st(pt,i&1),e===null)return gg(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,s?(r=t.mode,s=t.child,a={mode:"hidden",children:a},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=a):s=yf(a,r,0,null),e=jo(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Tg(n),t.memoizedState=wg,e):Cy(t,a));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return VI(e,t,a,r,l,i,n);if(s){s=r.fallback,a=t.mode,i=e.child,l=i.sibling;var u={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Fs(i,u),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?s=Fs(l,s):(s=jo(s,a,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,a=e.child.memoizedState,a=a===null?Tg(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},s.memoizedState=a,s.childLanes=e.childLanes&~n,t.memoizedState=wg,r}return s=e.child,e=s.sibling,r=Fs(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Cy(e,t){return t=yf({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Sd(e,t,n,r){return r!==null&&fy(r),dl(t,e.child,null,n),e=Cy(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function VI(e,t,n,r,i,s,a){if(n)return t.flags&256?(t.flags&=-257,r=em(Error(ie(422))),Sd(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=yf({mode:"visible",children:r.children},i,0,null),s=jo(s,i,a,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&dl(t,e.child,null,a),t.child.memoizedState=Tg(a),t.memoizedState=wg,s);if(!(t.mode&1))return Sd(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,s=Error(ie(419)),r=em(s,r,void 0),Sd(e,t,a,r)}if(l=(a&e.childLanes)!==0,Nn||l){if(r=zt,r!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|a)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,Bi(e,i),Or(r,e,i,-1))}return Ly(),r=em(Error(ie(421))),Sd(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=sO.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,$n=js(i.nextSibling),qn=t,dt=!0,Nr=null,e!==null&&(or[ar++]=Li,or[ar++]=Ri,or[ar++]=Bo,Li=e.id,Ri=e.overflow,Bo=t),t=Cy(t,r.children),t.flags|=4096,t)}function Rv(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),yg(e.return,t,n)}function tm(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function DT(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(fn(e,t,r.children,n),r=pt.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Rv(e,n,t);else if(e.tag===19)Rv(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(st(pt,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Lh(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),tm(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Lh(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}tm(t,!0,n,null,s);break;case"together":tm(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function nh(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Fi(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Uo|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ie(153));if(t.child!==null){for(e=t.child,n=Fs(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Fs(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function KI(e,t,n){switch(t.tag){case 3:RT(t),cl();break;case 5:lT(t);break;case 1:In(t.type)&&Ch(t);break;case 4:_y(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;st(Ph,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(st(pt,pt.current&1),t.flags|=128,null):n&t.child.childLanes?jT(e,t,n):(st(pt,pt.current&1),e=Fi(e,t,n),e!==null?e.sibling:null);st(pt,pt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return DT(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),st(pt,pt.current),r)break;return null;case 22:case 23:return t.lanes=0,OT(e,t,n)}return Fi(e,t,n)}var MT,Sg,BT,FT;MT=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Sg=function(){};BT=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,xo(ui.current);var s=null;
vendor: 4,115 bytes, line 40
40switch(n){case"input":i=Km(e,i),r=Km(e,r),s=[];break;case"select":i=gt({},i,{value:void 0}),r=gt({},r,{value:void 0}),s=[];break;case"textarea":i=Qm(e,i),r=Qm(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Sh)}Xm(n,r);var a;n=null;for(h in i)if(!r.hasOwnProperty(h)&&i.hasOwnProperty(h)&&i[h]!=null)if(h==="style"){var l=i[h];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else h!=="dangerouslySetInnerHTML"&&h!=="children"&&h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&h!=="autoFocus"&&($u.hasOwnProperty(h)?s||(s=[]):(s=s||[]).push(h,null));for(h in r){var u=r[h];if(l=i!=null?i[h]:void 0,r.hasOwnProperty(h)&&u!==l&&(u!=null||l!=null))if(h==="style")if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(s||(s=[]),s.push(h,n)),n=u;else h==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,l=l?l.__html:void 0,u!=null&&l!==u&&(s=s||[]).push(h,u)):h==="children"?typeof u!="string"&&typeof u!="number"||(s=s||[]).push(h,""+u):h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&($u.hasOwnProperty(h)?(u!=null&&h==="onScroll"&&at("scroll",e),s||l===u||(s=[])):(s=s||[]).push(h,u))}n&&(s=s||[]).push("style",n);var h=s;(t.updateQueue=h)&&(t.flags|=4)}};FT=function(e,t,n,r){n!==r&&(t.flags|=4)};function nu(e,t){if(!dt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function tn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function GI(e,t,n){var r=t.pendingProps;switch(hy(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return tn(t),null;case 1:return In(t.type)&&kh(),tn(t),null;case 3:return r=t.stateNode,hl(),lt(Pn),lt(on),xy(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(wd(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Nr!==null&&(Lg(Nr),Nr=null))),Sg(e,t),tn(t),null;case 5:vy(t);var i=xo(tc.current);if(n=t.type,e!==null&&t.stateNode!=null)BT(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(ie(166));return tn(t),null}if(e=xo(ui.current),wd(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[oi]=t,r[Ju]=s,e=(t.mode&1)!==0,n){case"dialog":at("cancel",r),at("close",r);break;case"iframe":case"object":case"embed":at("load",r);break;case"video":case"audio":for(i=0;i<gu.length;i++)at(gu[i],r);break;case"source":at("error",r);break;case"img":case"image":case"link":at("error",r),at("load",r);break;case"details":at("toggle",r);break;case"input":$_(r,s),at("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},at("invalid",r);break;case"textarea":W_(r,s),at("invalid",r)}Xm(n,s),i=null;for(var a in s)if(s.hasOwnProperty(a)){var l=s[a];a==="children"?typeof l=="string"?r.textContent!==l&&(s.suppressHydrationWarning!==!0&&Ed(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&Ed(r.textContent,l,e),i=["children",""+l]):$u.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&at("scroll",r)}switch(n){case"input":pd(r),q_(r,s,!0);break;case"textarea":pd(r),V_(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Sh)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=fw(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>
40",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[oi]=t,e[Ju]=r,MT(e,t,!1,!1),t.stateNode=e;e:{switch(a=Jm(n,r),n){case"dialog":at("cancel",e),at("close",e),i=r;break;case"iframe":case"object":case"embed":at("load",e),i=r;break;case"video":case"audio":for(i=0;i<gu.length;i++)at(gu[i],e);i=r;break;case"source":at("error",e),i=r;break;case"img":case"image":case"link":at("error",e),at("load",e),i=r;break;case"details":at("toggle",e),i=r;break;case"input":$_(e,r),i=Km(e,r),at("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=gt({},r,{value:void 0}),at("invalid",e);break;case"textarea":W_(e,r),i=Qm(e,r),at("invalid",e);break;default:i=r}Xm(n,i),l=i;for(s in l)if(l.hasOwnProperty(s)){var u=l[s];s==="style"?gw(e,u):s==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&pw(e,u)):s==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&qu(e,u):typeof u=="number"&&qu(e,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&($u.hasOwnProperty(s)?u!=null&&s==="onScroll"&&at("scroll",e):u!=null&&Z0(e,s,u,a))}switch(n){case"input":pd(e),q_(e,r,!1);break;case"textarea":pd(e),V_(e);break;case"option":r.value!=null&&e.setAttribute("value",""+zs(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Ba(e,!!r.multiple,s,!1):r.defaultValue!=null&&Ba(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Sh)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return tn(t),null;case 6:if(e&&t.stateNode!=null)FT(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(ie(166));if(n=xo(tc.current),xo(ui.current),wd(t)){if(r=t.stateNode,n=t.memoizedProps,r[oi]=t,(s=r.nodeValue!==n)&&(e=qn,e!==null))switch(e.tag){case 3:Ed(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ed(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[oi]=t,t.stateNode=r}return tn(t),null;case 13:if(lt(pt),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(dt&&$n!==null&&t.mode&1&&!(t.flags&128))rT(),cl(),t.flags|=98560,s=!1;else if(s=wd(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(ie(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(ie(317));s[oi]=t}else cl(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;tn(t),s=!1}else Nr!==null&&(Lg(Nr),Nr=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||pt.current&1?Rt===0&&(Rt=3):Ly())),t.updateQueue!==null&&(t.flags|=4),tn(t),null);case 4:return hl(),Sg(e,t),e===null&&Zu(t.stateNode.containerInfo),tn(t),null;case 10:return gy(t.type._context),tn(t),null;case 17:return In(t.type)&&kh(),tn(t),null;case 19:if(lt(pt),s=t.memoizedState,s===null)return tn(t),null;if(r=(t.flags&128)!==0,a=s.rendering,a===null)if(r)nu(s,!1);else{if(Rt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Lh(e),a!==null){for(t.flags|=128,nu(s,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,a=s.alternate,a===null?(s.childLanes=0,s.lanes=e,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,e=a.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return st(pt,pt.current&1|2),t.child}e=e.sibling}s.tail!==null&&Et()>pl&&(t.flags|=128,r=!0,nu(s,!1),t.lanes=4194304)}else{if(!r)if(e=Lh(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),nu(s,!0),s.tail===null&&s.tailMode==="hidden"&&!a.alternate&&!dt)return tn(t),null}else 2*Et()-s.renderingStartTime>pl&&n!==1073741824&&(t.flags|=128,r=!0,nu(s,!1),t.lanes=4194304);s.isBackwards?(a.sibling=t.child,t.child=a):(n=s.last,n!==null?n.sibling=a:t.child=a,s.last=a)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Et(),t.sibling=null,n=pt.current,st(pt,r?n&1|2:n&1),t):(tn(t),null);case 22:case 23:return Oy(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Un&1073741824&&(tn(t),t.subtreeFlags&6&&(t.flags|=8192)):tn(t),null;case 24:return null;case 25:return null}throw Error(ie(156,t.tag))}function YI(e,t){switch(hy(t),t.tag){case 1:return In(t.type)&&kh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;
vendor: 25,850 bytes, line 40
40case 3:return hl(),lt(Pn),lt(on),xy(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return vy(t),null;case 13:if(lt(pt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ie(340));cl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return lt(pt),null;case 4:return hl(),null;case 10:return gy(t.type._context),null;case 22:case 23:return Oy(),null;case 24:return null;default:return null}}var kd=!1,rn=!1,QI=typeof WeakSet=="function"?WeakSet:Set,ge=null;function La(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){vt(e,t,r)}else n.current=null}function kg(e,t,n){try{n()}catch(r){vt(e,t,r)}}var jv=!1;function ZI(e,t){if(ug=Eh,e=qw(),cy(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var a=0,l=-1,u=-1,h=0,f=0,m=e,y=null;t:for(;;){for(var g;m!==n||i!==0&&m.nodeType!==3||(l=a+i),m!==s||r!==0&&m.nodeType!==3||(u=a+r),m.nodeType===3&&(a+=m.nodeValue.length),(g=m.firstChild)!==null;)y=m,m=g;for(;;){if(m===e)break t;if(y===n&&++h===i&&(l=a),y===s&&++f===r&&(u=a),(g=m.nextSibling)!==null)break;m=y,y=m.parentNode}m=g}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(cg={focusedElem:e,selectionRange:n},Eh=!1,ge=t;ge!==null;)if(t=ge,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ge=e;else for(;ge!==null;){t=ge;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var v=x.memoizedProps,k=x.memoizedState,E=t.stateNode,S=E.getSnapshotBeforeUpdate(t.elementType===t.type?v:Tr(t.type,v),k);E.__reactInternalSnapshotBeforeUpdate=S}break;case 3:var T=t.stateNode.containerInfo;T.nodeType===1?T.textContent="":T.nodeType===9&&T.documentElement&&T.removeChild(T.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ie(163))}}catch(P){vt(t,t.return,P)}if(e=t.sibling,e!==null){e.return=t.return,ge=e;break}ge=t.return}return x=jv,jv=!1,x}function Cu(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&kg(t,n,s)}i=i.next}while(i!==r)}}function mf(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Cg(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function UT(e){var t=e.alternate;t!==null&&(e.alternate=null,UT(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[oi],delete t[Ju],delete t[fg],delete t[LI],delete t[RI])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function HT(e){return e.tag===5||e.tag===3||e.tag===4}function Dv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||HT(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ag(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Sh));else if(r!==4&&(e=e.child,e!==null))for(Ag(e,t,n),e=e.sibling;e!==null;)Ag(e,t,n),e=e.sibling}function Ng(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ng(e,t,n),e=e.sibling;e!==null;)Ng(e,t,n),e=e.sibling}var Kt=null,Ar=!1;function is(e,t,n){for(n=n.child;n!==null;)zT(e,t,n),n=n.sibling}function zT(e,t,n){if(li&&typeof li.onCommitFiberUnmount=="function")try{li.onCommitFiberUnmount(af,n)}catch{}switch(n.tag){case 5:rn||La(n,t);case 6:var r=Kt,i=Ar;Kt=null,is(e,t,n),Kt=r,Ar=i,Kt!==null&&(Ar?(e=Kt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Kt.removeChild(n.stateNode));break;case 18:Kt!==null&&(Ar?(e=Kt,n=n.stateNode,e.nodeType===8?Gp(e.parentNode,n):e.nodeType===1&&Gp(e,n),Gu(e)):Gp(Kt,n.stateNode));break;case 4:r=Kt,i=Ar,Kt=n.stateNode.containerInfo,Ar=!0,is(e,t,n),Kt=r,Ar=i;break;case 0:case 11:case 14:case 15:if(!rn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,a=s.destroy;s=s.tag,a!==void 0&&(s&2||s&4)&&kg(n,t,a),i=i.next}while(i!==r)}is(e,t,n);break;case 1:if(!rn&&(La(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){vt(n,t,l)}is(e,t,n);break;case 21:is(e,t,n);break;case 22:n.mode&1?(rn=(r=rn)||n.memoizedState!==null,is(e,t,n),rn=r):is(e,t,n);break;default:is(e,t,n)}}function Mv(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new QI),t.forEach(function(r){var i=oO.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function vr(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 5:Kt=l.stateNode,Ar=!1;break e;case 3:Kt=l.stateNode.containerInfo,Ar=!0;break e;case 4:Kt=l.stateNode.containerInfo,Ar=!0;break e}l=l.return}if(Kt===null)throw Error(ie(160));zT(s,a,i),Kt=null,Ar=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(h){vt(i,t,h)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)$T(t,e),t=t.sibling}function $T(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vr(t,e),Yr(e),r&4){try{Cu(3,e,e.return),mf(3,e)}catch(v){vt(e,e.return,v)}try{Cu(5,e,e.return)}catch(v){vt(e,e.return,v)}}break;case 1:vr(t,e),Yr(e),r&512&&n!==null&&La(n,n.return);break;case 5:if(vr(t,e),Yr(e),r&512&&n!==null&&La(n,n.return),e.flags&32){var i=e.stateNode;try{qu(i,"")}catch(v){vt(e,e.return,v)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,a=n!==null?n.memoizedProps:s,l=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{l==="input"&&s.type==="radio"&&s.name!=null&&dw(i,s),Jm(l,a);var h=Jm(l,s);for(a=0;a<u.length;a+=2){var f=u[a],m=u[a+1];f==="style"?gw(i,m):f==="dangerouslySetInnerHTML"?pw(i,m):f==="children"?qu(i,m):Z0(i,f,m,h)}switch(l){case"input":Gm(i,s);break;case"textarea":hw(i,s);break;case"select":var y=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var g=s.value;g!=null?Ba(i,!!s.multiple,g,!1):y!==!!s.multiple&&(s.defaultValue!=null?Ba(i,!!s.multiple,s.defaultValue,!0):Ba(i,!!s.multiple,s.multiple?[]:"",!1))}i[Ju]=s}catch(v){vt(e,e.return,v)}}break;case 6:if(vr(t,e),Yr(e),r&4){if(e.stateNode===null)throw Error(ie(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(v){vt(e,e.return,v)}}break;case 3:if(vr(t,e),Yr(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Gu(t.containerInfo)}catch(v){vt(e,e.return,v)}break;case 4:vr(t,e),Yr(e);break;case 13:vr(t,e),Yr(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Py=Et())),r&4&&Mv(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(rn=(h=rn)||f,vr(t,e),rn=h):vr(t,e),Yr(e),r&8192){if(h=e.memoizedState!==null,(e.stateNode.isHidden=h)&&!f&&e.mode&1)for(ge=e,f=e.child;f!==null;){for(m=ge=f;ge!==null;){switch(y=ge,g=y.child,y.tag){case 0:case 11:case 14:case 15:Cu(4,y,y.return);break;case 1:La(y,y.return);var x=y.stateNode;if(typeof x.componentWillUnmount=="function"){r=y,n=y.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(v){vt(r,n,v)}}break;case 5:La(y,y.return);break;case 22:if(y.memoizedState!==null){Fv(m);continue}}g!==null?(g.return=y,ge=g):Fv(m)}f=f.sibling}e:for(f=null,m=e;;){if(m.tag===5){if(f===null){f=m;try{i=m.stateNode,h?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(l=m.stateNode,u=m.memoizedProps.style,a=u!=null&&u.hasOwnProperty("display")?u.display:null,l.style.display=mw("display",a))}catch(v){vt(e,e.return,v)}}}else if(m.tag===6){if(f===null)try{m.stateNode.nodeValue=h?"":m.memoizedProps}catch(v){vt(e,e.return,v)}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===e)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break e;for(;m.sibling===null;){if(m.return===null||m.return===e)break e;f===m&&(f=null),m=m.return}f===m&&(f=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:vr(t,e),Yr(e),r&4&&Mv(e);break;case 21:break;default:vr(t,e),Yr(e)}}function Yr(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(HT(n)){var r=n;break e}n=n.return}throw Error(ie(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(qu(i,""),r.flags&=-33);var s=Dv(e);Ng(e,s,i);break;case 3:case 4:var a=r.stateNode.containerInfo,l=Dv(e);Ag(e,l,a);break;default:throw Error(ie(161))}}catch(u){vt(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function XI(e,t,n){ge=e,qT(e)}function qT(e,t,n){for(var r=(e.mode&1)!==0;ge!==null;){var i=ge,s=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||kd;if(!a){var l=i.alternate,u=l!==null&&l.memoizedState!==null||rn;l=kd;var h=rn;if(kd=a,(rn=u)&&!h)for(ge=i;ge!==null;)a=ge,u=a.child,a.tag===22&&a.memoizedState!==null?Uv(i):u!==null?(u.return=a,ge=u):Uv(i);for(;s!==null;)ge=s,qT(s),s=s.sibling;ge=i,kd=l,rn=h}Bv(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,ge=s):Bv(e)}}function Bv(e){for(;ge!==null;){var t=ge;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:rn||mf(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!rn)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Tr(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Ev(t,s,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ev(t,a,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var h=t.alternate;if(h!==null){var f=h.memoizedState;if(f!==null){var m=f.dehydrated;m!==null&&Gu(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(ie(163))}rn||t.flags&512&&Cg(t)}catch(y){vt(t,t.return,y)}}if(t===e){ge=null;break}if(n=t.sibling,n!==null){n.return=t.return,ge=n;break}ge=t.return}}function Fv(e){for(;ge!==null;){var t=ge;if(t===e){ge=null;break}var n=t.sibling;if(n!==null){n.return=t.return,ge=n;break}ge=t.return}}function Uv(e){for(;ge!==null;){var t=ge;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{mf(4,t)}catch(u){vt(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(u){vt(t,i,u)}}var s=t.return;try{Cg(t)}catch(u){vt(t,s,u)}break;case 5:var a=t.return;try{Cg(t)}catch(u){vt(t,a,u)}}}catch(u){vt(t,t.return,u)}if(t===e){ge=null;break}var l=t.sibling;if(l!==null){l.return=t.return,ge=l;break}ge=t.return}}var JI=Math.ceil,Dh=zi.ReactCurrentDispatcher,Ay=zi.ReactCurrentOwner,dr=zi.ReactCurrentBatchConfig,Ge=0,zt=null,It=null,Yt=0,Un=0,Ra=Ys(0),Rt=0,sc=null,Uo=0,gf=0,Ny=0,Au=null,An=null,Py=0,pl=1/0,Ci=null,Mh=!1,Pg=null,Ms=null,Cd=!1,Ns=null,Bh=0,Nu=0,Ig=null,rh=-1,ih=0;function mn(){return Ge&6?Et():rh!==-1?rh:rh=Et()}function Bs(e){return e.mode&1?Ge&2&&Yt!==0?Yt&-Yt:DI.transition!==null?(ih===0&&(ih=Aw()),ih):(e=Je,e!==0||(e=window.event,e=e===void 0?16:jw(e.type)),e):1}function Or(e,t,n,r){if(50<Nu)throw Nu=0,Ig=null,Error(ie(185));Ac(e,n,r),(!(Ge&2)||e!==zt)&&(e===zt&&(!(Ge&2)&&(gf|=n),Rt===4&&ys(e,Yt)),On(e,r),n===1&&Ge===0&&!(t.mode&1)&&(pl=Et()+500,hf&&Qs()))}function On(e,t){var n=e.callbackNode;DP(e,t);var r=xh(e,e===zt?Yt:0);if(r===0)n!==null&&Y_(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Y_(n),t===1)e.tag===0?jI(Hv.bind(null,e)):eT(Hv.bind(null,e)),II(function(){!(Ge&6)&&Qs()}),n=null;else{switch(Nw(r)){case 1:n=ny;break;case 4:n=kw;break;case 16:n=vh;break;case 536870912:n=Cw;break;default:n=vh}n=XT(n,WT.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function WT(e,t){if(rh=-1,ih=0,Ge&6)throw Error(ie(327));var n=e.callbackNode;if($a()&&e.callbackNode!==n)return null;var r=xh(e,e===zt?Yt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Fh(e,r);else{t=r;var i=Ge;Ge|=2;var s=KT();(zt!==e||Yt!==t)&&(Ci=null,pl=Et()+500,Ro(e,t));do try{nO();break}catch(l){VT(e,l)}while(!0);my(),Dh.current=s,Ge=i,It!==null?t=0:(zt=null,Yt=0,t=Rt)}if(t!==0){if(t===2&&(i=ig(e),i!==0&&(r=i,t=Og(e,i))),t===1)throw n=sc,Ro(e,0),ys(e,r),On(e,Et()),n;if(t===6)ys(e,r);else{if(i=e.current.alternate,!(r&30)&&!eO(i)&&(t=Fh(e,r),t===2&&(s=ig(e),s!==0&&(r=s,t=Og(e,s))),t===1))throw n=sc,Ro(e,0),ys(e,r),On(e,Et()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(ie(345));case 2:mo(e,An,Ci);break;case 3:if(ys(e,r),(r&130023424)===r&&(t=Py+500-Et(),10<t)){if(xh(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){mn(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=hg(mo.bind(null,e,An,Ci),t);break}mo(e,An,Ci);break;case 4:if(ys(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-Ir(r);s=1<<a,a=t[a],a>i&&(i=a),r&=~s}if(r=i,r=Et()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*JI(r/1960))-r,10<r){e.timeoutHandle=hg(mo.bind(null,e,An,Ci),r);break}mo(e,An,Ci);break;case 5:mo(e,An,Ci);break;default:throw Error(ie(329))}}}return On(e,Et()),e.callbackNode===n?WT.bind(null,e):null}function Og(e,t){var n=Au;return e.current.memoizedState.isDehydrated&&(Ro(e,t).flags|=256),e=Fh(e,t),e!==2&&(t=An,An=n,t!==null&&Lg(t)),e}function Lg(e){An===null?An=e:An.push.apply(An,e)}function eO(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!Rr(s(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ys(e,t){for(t&=~Ny,t&=~gf,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ir(t),r=1<<n;e[n]=-1,t&=~r}}function Hv(e){if(Ge&6)throw Error(ie(327));$a();var t=xh(e,0);if(!(t&1))return On(e,Et()),null;var n=Fh(e,t);if(e.tag!==0&&n===2){var r=ig(e);r!==0&&(t=r,n=Og(e,r))}if(n===1)throw n=sc,Ro(e,0),ys(e,t),On(e,Et()),n;if(n===6)throw Error(ie(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,mo(e,An,Ci),On(e,Et()),null}function Iy(e,t){var n=Ge;Ge|=1;try{return e(t)}finally{Ge=n,Ge===0&&(pl=Et()+500,hf&&Qs())}}function Ho(e){Ns!==null&&Ns.tag===0&&!(Ge&6)&&$a();var t=Ge;Ge|=1;var n=dr.transition,r=Je;try{if(dr.transition=null,Je=1,e)return e()}finally{Je=r,dr.transition=n,Ge=t,!(Ge&6)&&Qs()}}function Oy(){Un=Ra.current,lt(Ra)}function Ro(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,PI(n)),It!==null)for(n=It.return;n!==null;){var r=n;switch(hy(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&kh();break;case 3:hl(),lt(Pn),lt(on),xy();break;case 5:vy(r);break;case 4:hl();break;case 13:lt(pt);break;case 19:lt(pt);break;case 10:gy(r.type._context);break;case 22:case 23:Oy()}n=n.return}if(zt=e,It=e=Fs(e.current,null),Yt=Un=t,Rt=0,sc=null,Ny=gf=Uo=0,An=Au=null,vo!==null){for(t=0;t<vo.length;t++)if(n=vo[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var a=s.next;s.next=i,r.next=a}n.pending=r}vo=null}return e}function VT(e,t){do{var n=It;try{if(my(),eh.current=jh,Rh){for(var r=mt.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Rh=!1}if(Fo=0,Ut=Lt=mt=null,ku=!1,nc=0,Ay.current=null,n===null||n.return===null){Rt=1,sc=t,It=null;break}e:{var s=e,a=n.return,l=n,u=t;if(t=Yt,l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var h=u,f=l,m=f.tag;if(!(f.mode&1)&&(m===0||m===11||m===15)){var y=f.alternate;y?(f.updateQueue=y.updateQueue,f.memoizedState=y.memoizedState,f.lanes=y.lanes):(f.updateQueue=null,f.memoizedState=null)}var g=Av(a);if(g!==null){g.flags&=-257,Nv(g,a,l,s,t),g.mode&1&&Cv(s,h,t),t=g,u=h;var x=t.updateQueue;if(x===null){var v=new Set;v.add(u),t.updateQueue=v}else x.add(u);break e}else{if(!(t&1)){Cv(s,h,t),Ly();break e}u=Error(ie(426))}}else if(dt&&l.mode&1){var k=Av(a);if(k!==null){!(k.flags&65536)&&(k.flags|=256),Nv(k,a,l,s,t),fy(fl(u,l));break e}}s=u=fl(u,l),Rt!==4&&(Rt=2),Au===null?Au=[s]:Au.push(s),s=a;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var E=NT(s,u,t);xv(s,E);break e;case 1:l=u;var S=s.type,T=s.stateNode;if(!(s.flags&128)&&(typeof S.getDerivedStateFromError=="function"||T!==null&&typeof T.componentDidCatch=="function"&&(Ms===null||!Ms.has(T)))){s.flags|=65536,t&=-t,s.lanes|=t;var P=PT(s,l,t);xv(s,P);break e}}s=s.return}while(s!==null)}YT(n)}catch(F){t=F,It===n&&n!==null&&(It=n=n.return);continue}break}while(!0)}function KT(){var e=Dh.current;return Dh.current=jh,e===null?jh:e}function Ly(){(Rt===0||Rt===3||Rt===2)&&(Rt=4),zt===null||!(Uo&268435455)&&!(gf&268435455)||ys(zt,Yt)}function Fh(e,t){var n=Ge;Ge|=2;var r=KT();(zt!==e||Yt!==t)&&(Ci=null,Ro(e,t));do try{tO();break}catch(i){VT(e,i)}while(!0);if(my(),Ge=n,Dh.current=r,It!==null)throw Error(ie(261));return zt=null,Yt=0,Rt}function tO(){for(;It!==null;)GT(It)}function nO(){for(;It!==null&&!CP();)GT(It)}function GT(e){var t=ZT(e.alternate,e,Un);e.memoizedProps=e.pendingProps,t===null?YT(e):It=t,Ay.current=null}function YT(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=YI(n,t),n!==null){n.flags&=32767,It=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Rt=6,It=null;return}}else if(n=GI(n,t,Un),n!==null){It=n;return}if(t=t.sibling,t!==null){It=t;return}It=t=e}while(t!==null);Rt===0&&(Rt=5)}function mo(e,t,n){var r=Je,i=dr.transition;try{dr.transition=null,Je=1,rO(e,t,n,r)}finally{dr.transition=i,Je=r}return null}function rO(e,t,n,r){do $a();while(Ns!==null);if(Ge&6)throw Error(ie(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(ie(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(MP(e,s),e===zt&&(It=zt=null,Yt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Cd||(Cd=!0,XT(vh,function(){return $a(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=dr.transition,dr.transition=null;var a=Je;Je=1;var l=Ge;Ge|=4,Ay.current=null,ZI(e,n),$T(n,e),wI(cg),Eh=!!ug,cg=ug=null,e.current=n,XI(n),AP(),Ge=l,Je=a,dr.transition=s}else e.current=n;if(Cd&&(Cd=!1,Ns=e,Bh=i),s=e.pendingLanes,s===0&&(Ms=null),IP(n.stateNode),On(e,Et()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Mh)throw Mh=!1,e=Pg,Pg=null,e;return Bh&1&&e.tag!==0&&$a(),s=e.pendingLanes,s&1?e===Ig?Nu++:(Nu=0,Ig=e):Nu=0,Qs(),null}function $a(){if(Ns!==null){var e=Nw(Bh),t=dr.transition,n=Je;try{if(dr.transition=null,Je=16>e?16:e,Ns===null)var r=!1;else{if(e=Ns,Ns=null,Bh=0,Ge&6)throw Error(ie(331));var i=Ge;for(Ge|=4,ge=e.current;ge!==null;){var s=ge,a=s.child;if(ge.flags&16){var l=s.deletions;if(l!==null){for(var u=0;u<l.length;u++){var h=l[u];for(ge=h;ge!==null;){var f=ge;switch(f.tag){case 0:case 11:case 15:Cu(8,f,s)}var m=f.child;if(m!==null)m.return=f,ge=m;else for(;ge!==null;){f=ge;var y=f.sibling,g=f.return;if(UT(f),f===h){ge=null;break}if(y!==null){y.return=g,ge=y;break}ge=g}}}var x=s.alternate;if(x!==null){var v=x.child;if(v!==null){x.child=null;do{var k=v.sibling;v.sibling=null,v=k}while(v!==null)}}ge=s}}if(s.subtreeFlags&2064&&a!==null)a.return=s,ge=a;else e:for(;ge!==null;){if(s=ge,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Cu(9,s,s.return)}var E=s.sibling;if(E!==null){E.return=s.return,ge=E;break e}ge=s.return}}var S=e.current;for(ge=S;ge!==null;){a=ge;var T=a.child;if(a.subtreeFlags&2064&&T!==null)T.return=a,ge=T;else e:for(a=S;ge!==null;){if(l=ge,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:mf(9,l)}}catch(F){vt(l,l.return,F)}if(l===a){ge=null;break e}var P=l.sibling;if(P!==null){P.return=l.return,ge=P;break e}ge=l.return}}if(Ge=i,Qs(),li&&typeof li.onPostCommitFiberRoot=="function")try{li.onPostCommitFiberRoot(af,e)}catch{}r=!0}return r}finally{Je=n,dr.transition=t}}return!1}function zv(e,t,n){t=fl(n,t),t=NT(e,t,1),e=Ds(e,t,1),t=mn(),e!==null&&(Ac(e,1,t),On(e,t))}function vt(e,t,n){if(e.tag===3)zv(e,e,n);else for(;t!==null;){if(t.tag===3){zv(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ms===null||!Ms.has(r))){e=fl(n,e),e=PT(t,e,1),t=Ds(t,e,1),e=mn(),t!==null&&(Ac(t,1,e),On(t,e));break}}t=t.return}}function iO(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=mn(),e.pingedLanes|=e.suspendedLanes&n,zt===e&&(Yt&n)===n&&(Rt===4||Rt===3&&(Yt&130023424)===Yt&&500>Et()-Py?Ro(e,0):Ny|=n),On(e,t)}function QT(e,t){t===0&&(e.mode&1?(t=yd,yd<<=1,!(yd&130023424)&&(yd=4194304)):t=1);var n=mn();e=Bi(e,t),e!==null&&(Ac(e,t,n),On(e,n))}function sO(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),QT(e,n)}function oO(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ie(314))}r!==null&&r.delete(t),QT(e,n)}var ZT;ZT=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Pn.current)Nn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Nn=!1,KI(e,t,n);Nn=!!(e.flags&131072)}else Nn=!1,dt&&t.flags&1048576&&tT(t,Nh,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;nh(e,t),e=t.pendingProps;var i=ul(t,on.current);za(t,n),i=wy(null,t,r,e,i,n);var s=Ty();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,In(r)?(s=!0,Ch(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,by(t),i.updater=pf,t.stateNode=i,i._reactInternals=t,_g(t,r,e,n),t=Eg(null,t,r,!0,s,n)):(t.tag=0,dt&&s&&dy(t),fn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(nh(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=lO(r),e=Tr(r,e),i){case 0:t=xg(null,t,r,e,n);break e;case 1:t=Ov(null,t,r,e,n);break e;case 11:t=Pv(null,t,r,e,n);break e;case 14:t=Iv(null,t,r,Tr(r.type,e),n);break e}throw Error(ie(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Tr(r,i),xg(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Tr(r,i),Ov(e,t,r,i,n);case 3:e:{if(RT(t),e===null)throw Error(ie(387));r=t.pendingProps,s=t.memoizedState,i=s.element,aT(e,t),Oh(t,r,null,n);var a=t.memoizedState;if(r=a.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=fl(Error(ie(423)),t),t=Lv(e,t,r,n,i);break e}else if(r!==i){i=fl(Error(ie(424)),t),t=Lv(e,t,r,n,i);break e}else for($n=js(t.stateNode.containerInfo.firstChild),qn=t,dt=!0,Nr=null,n=sT(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(cl(),r===i){t=Fi(e,t,n);break e}fn(e,t,r,n)}t=t.child}return t;case 5:return lT(t),e===null&&gg(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,a=i.children,dg(r,i)?a=null:s!==null&&dg(r,s)&&(t.flags|=32),LT(e,t),fn(e,t,a,n),t.child;case 6:return e===null&&gg(t),null;case 13:return jT(e,t,n);case 4:return _y(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=dl(t,null,r,n):fn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Tr(r,i),Pv(e,t,r,i,n);case 7:return fn(e,t,t.pendingProps,n),t.child;case 8:return fn(e,t,t.pendingProps.children,n),t.child;case 12:return fn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,a=i.value,st(Ph,r._currentValue),r._currentValue=a,s!==null)if(Rr(s.value,a)){if(s.children===i.children&&!Pn.current){t=Fi(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){a=s.child;for(var u=l.firstContext;u!==null;){if(u.context===r){if(s.tag===1){u=ji(-1,n&-n),u.tag=2;var h=s.updateQueue;if(h!==null){h=h.shared;var f=h.pending;f===null?u.next=u:(u.next=f.next,f.next=u),h.pending=u}}s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),yg(s.return,n,t),l.lanes|=n;break}u=u.next}}else if(s.tag===10)a=s.type===t.type?null:s.child;else if(s.tag===18){if(a=s.return,a===null)throw Error(ie(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),yg(a,n,t),a=s.sibling}else a=s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===t){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}fn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,za(t,n),i=hr(i),r=r(i),t.flags|=1,fn(e,t,r,n),t.child;case 14:return r=t.type,i=Tr(r,t.pendingProps),i=Tr(r.type,i),Iv(e,t,r,i,n);case 15:return IT(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Tr(r,i),nh(e,t),t.tag=1,In(r)?(e=!0,Ch(t)):e=!1,za(t,n),AT(t,r,i),_g(t,r,i,n),Eg(null,t,r,!0,e,n);case 19:return DT(e,t,n);
vendor: 5,827 bytes, line 40
40case 22:return OT(e,t,n)}throw Error(ie(156,t.tag))};function XT(e,t){return Sw(e,t)}function aO(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function cr(e,t,n,r){return new aO(e,t,n,r)}function Ry(e){return e=e.prototype,!(!e||!e.isReactComponent)}function lO(e){if(typeof e=="function")return Ry(e)?1:0;if(e!=null){if(e=e.$$typeof,e===J0)return 11;if(e===ey)return 14}return 2}function Fs(e,t){var n=e.alternate;return n===null?(n=cr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function sh(e,t,n,r,i,s){var a=2;if(r=e,typeof e=="function")Ry(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ta:return jo(n.children,i,s,t);case X0:a=8,i|=8;break;case $m:return e=cr(12,n,t,i|2),e.elementType=$m,e.lanes=s,e;case qm:return e=cr(13,n,t,i),e.elementType=qm,e.lanes=s,e;case Wm:return e=cr(19,n,t,i),e.elementType=Wm,e.lanes=s,e;case lw:return yf(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ow:a=10;break e;case aw:a=9;break e;case J0:a=11;break e;case ey:a=14;break e;case fs:a=16,r=null;break e}throw Error(ie(130,e==null?e:typeof e,""))}return t=cr(a,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function jo(e,t,n,r){return e=cr(7,e,r,t),e.lanes=n,e}function yf(e,t,n,r){return e=cr(22,e,r,t),e.elementType=lw,e.lanes=n,e.stateNode={isHidden:!1},e}function nm(e,t,n){return e=cr(6,e,null,t),e.lanes=n,e}function rm(e,t,n){return t=cr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function uO(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Mp(0),this.expirationTimes=Mp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mp(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function jy(e,t,n,r,i,s,a,l,u){return e=new uO(e,t,n,l,u),t===1?(t=1,s===!0&&(t|=8)):t=0,s=cr(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},by(s),e}function cO(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:wa,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function JT(e){if(!e)return $s;e=e._reactInternals;e:{if(Go(e)!==e||e.tag!==1)throw Error(ie(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(In(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(ie(171))}if(e.tag===1){var n=e.type;if(In(n))return Jw(e,n,t)}return t}function eS(e,t,n,r,i,s,a,l,u){return e=jy(n,r,!0,e,i,s,a,l,u),e.context=JT(null),n=e.current,r=mn(),i=Bs(n),s=ji(r,i),s.callback=t??null,Ds(n,s,i),e.current.lanes=i,Ac(e,i,r),On(e,r),e}function bf(e,t,n,r){var i=t.current,s=mn(),a=Bs(i);return n=JT(n),t.context===null?t.context=n:t.pendingContext=n,t=ji(s,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ds(i,t,a),e!==null&&(Or(e,i,a,s),Jd(e,i,a)),a}function Uh(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function $v(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Dy(e,t){$v(e,t),(e=e.alternate)&&$v(e,t)}function dO(){return null}var tS=typeof reportError=="function"?reportError:function(e){console.error(e)};function My(e){this._internalRoot=e}_f.prototype.render=My.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(ie(409));bf(e,t,null,null)};_f.prototype.unmount=My.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ho(function(){bf(null,e,null,null)}),t[Mi]=null}};function _f(e){this._internalRoot=e}_f.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ow();e={blockedOn:null,target:e,priority:t};for(var n=0;n<gs.length&&t!==0&&t<gs[n].priority;n++);gs.splice(n,0,e),n===0&&Rw(e)}};function By(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function vf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function qv(){}function hO(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var h=Uh(a);s.call(h)}}var a=eS(t,r,e,0,null,!1,!1,"",qv);return e._reactRootContainer=a,e[Mi]=a.current,Zu(e.nodeType===8?e.parentNode:e),Ho(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var h=Uh(u);l.call(h)}}var u=jy(e,0,!1,null,null,!1,!1,"",qv);return e._reactRootContainer=u,e[Mi]=u.current,Zu(e.nodeType===8?e.parentNode:e),Ho(function(){bf(t,u,n,r)}),u}function xf(e,t,n,r,i){var s=n._reactRootContainer;if(s){var a=s;if(typeof i=="function"){var l=i;
40i=function(){var u=Uh(a);l.call(u)}}bf(t,a,e,i)}else a=hO(n,t,e,i,r);return Uh(a)}Pw=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=mu(t.pendingLanes);n!==0&&(ry(t,n|1),On(t,Et()),!(Ge&6)&&(pl=Et()+500,Qs()))}break;case 13:Ho(function(){var r=Bi(e,1);if(r!==null){var i=mn();Or(r,e,1,i)}}),Dy(e,1)}};iy=function(e){if(e.tag===13){var t=Bi(e,134217728);if(t!==null){var n=mn();Or(t,e,134217728,n)}Dy(e,134217728)}};Iw=function(e){if(e.tag===13){var t=Bs(e),n=Bi(e,t);if(n!==null){var r=mn();Or(n,e,t,r)}Dy(e,t)}};Ow=function(){return Je};Lw=function(e,t){var n=Je;try{return Je=e,t()}finally{Je=n}};tg=function(e,t,n){switch(t){case"input":if(Gm(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=df(r);if(!i)throw Error(ie(90));cw(r),Gm(r,i)}}}break;case"textarea":hw(e,n);break;case"select":t=n.value,t!=null&&Ba(e,!!n.multiple,t,!1)}};_w=Iy;vw=Ho;var fO={usingClientEntryPoint:!1,Events:[Pc,Aa,df,yw,bw,Iy]},ru={findFiberByHostInstance:_o,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},pO={bundleType:ru.bundleType,version:ru.version,rendererPackageName:ru.rendererPackageName,rendererConfig:ru.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:zi.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ww(e),e===null?null:e.stateNode},findFiberByHostInstance:ru.findFiberByHostInstance||dO,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 Ad=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ad.isDisabled&&Ad.supportsFiber)try{af=Ad.inject(pO),li=Ad}catch{}}Yn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fO;Yn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!By(t))throw Error(ie(200));return cO(e,t,null,n)};Yn.createRoot=function(e,t){if(!By(e))throw Error(ie(299));var n=!1,r="",i=tS;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=jy(e,1,!1,null,null,n,!1,r,i),e[Mi]=t.current,Zu(e.nodeType===8?e.parentNode:e),new My(t)};Yn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(ie(188)):(e=Object.keys(e).join(","),Error(ie(268,e)));return e=ww(t),e=e===null?null:e.stateNode,e};Yn.flushSync=function(e){return Ho(e)};Yn.hydrate=function(e,t,n){if(!vf(t))throw Error(ie(200));return xf(null,e,t,!0,n)};Yn.hydrateRoot=function(e,t,n){if(!By(e))throw Error(ie(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",a=tS;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=eS(t,null,e,1,n??null,i,!1,s,a),e[Mi]=t.current,Zu(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new _f(t)};Yn.render=function(e,t,n){if(!vf(t))throw Error(ie(200));return xf(null,e,t,!1,n)};Yn.unmountComponentAtNode=function(e){if(!vf(e))throw Error(ie(40));return e._reactRootContainer?(Ho(function(){xf(null,null,e,!1,function(){e._reactRootContainer=null,e[Mi]=null})}),!0):!1};Yn.unstable_batchedUpdates=Iy;Yn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!vf(n))throw Error(ie(200));if(e==null||e._reactInternals===void 0)throw Error(ie(38));return xf(e,t,n,!1,r)};Yn.version="18.3.1-next-f1338f8080-20240426";function nS(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(nS)}catch(e){console.error(e)}}nS(),nw.exports=Yn;var wl=nw.exports;const rS=Ks(wl);var iS,Wv=wl;iS=Wv.createRoot,Wv.hydrateRoot;var Oc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},zo=typeof window>"u"||"Deno"in globalThis;function Cn(){}function mO(e,t){return typeof e=="function"?e(t):e}function Rg(e){return typeof e=="number"&&e>=0&&e!==1/0}function sS(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Us(e,t){return typeof e=="function"?e(t):e}function sr(e,t){return typeof e=="function"?e(t):e}function Vv(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:a,stale:l}=e;if(a){if(r){if(t.queryHash!==Fy(a,t.options))return!1}else if(!ac(t.queryKey,a))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||i&&i!==t.state.fetchStatus||s&&!s(t))}function Kv(e,t){const{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(oc(t.options.mutationKey)!==oc(s))return!1}else if(!ac(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Fy(e,t){return((t==null?void 0:t.queryKeyHashFn)||oc)(e)}function oc(e){return JSON.stringify(e,(t,n)=>Dg(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function ac(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>ac(e[n],t[n])):!1}function oS(e,t){if(e===t)return e;const n=Gv(e)&&Gv(t);if(n||Dg(e)&&Dg(t)){const r=n?e:Object.keys(e),i=r.length,s=n?t:Object.keys(t),a=s.length,l=n?[]:{},u=new Set(r);let h=0;for(let f=0;f<a;f++){const m=n?f:s[f];(!n&&u.has(m)||n)&&e[m]===void 0&&t[m]===void 0?(l[m]=void 0,h++):(l[m]=oS(e[m],t[m]),l[m]===e[m]&&e[m]!==void 0&&h++)}return i===a&&h===i?e:l}return t}function jg(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Gv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Dg(e){if(!Yv(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Yv(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Yv(e){return Object.prototype.toString.call(e)==="[object Object]"}function gO(e){return new Promise(t=>{setTimeout(t,e)})}function Mg(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?oS(e,t):t}function yO(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function bO(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Uy=Symbol();function aS(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Uy?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function _O(e,t){return typeof e=="function"?e(...t):!!e}var To,vs,Qa,OE,vO=(OE=class extends Oc{constructor(){super();Ae(this,To);Ae(this,vs);Ae(this,Qa);ye(this,Qa,t=>{if(!zo&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){U(this,vs)||this.setEventListener(U(this,Qa))}onUnsubscribe(){var t;this.hasListeners()||((t=U(this,vs))==null||t.call(this),ye(this,vs,void 0))}setEventListener(t){var n;ye(this,Qa,t),(n=U(this,vs))==null||n.call(this),ye(this,vs,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){U(this,To)!==t&&(ye(this,To,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 4,924 bytes, line 40
40this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof U(this,To)=="boolean"?U(this,To):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},To=new WeakMap,vs=new WeakMap,Qa=new WeakMap,OE),Hy=new vO,Za,xs,Xa,LE,xO=(LE=class extends Oc{constructor(){super();Ae(this,Za,!0);Ae(this,xs);Ae(this,Xa);ye(this,Xa,t=>{if(!zo&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){U(this,xs)||this.setEventListener(U(this,Xa))}onUnsubscribe(){var t;this.hasListeners()||((t=U(this,xs))==null||t.call(this),ye(this,xs,void 0))}setEventListener(t){var n;ye(this,Xa,t),(n=U(this,xs))==null||n.call(this),ye(this,xs,t(this.setOnline.bind(this)))}setOnline(t){U(this,Za)!==t&&(ye(this,Za,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return U(this,Za)}},Za=new WeakMap,xs=new WeakMap,Xa=new WeakMap,LE),Hh=new xO;function Bg(){let e,t;const n=new Promise((i,s)=>{e=i,t=s});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function EO(e){return Math.min(1e3*2**e,3e4)}function lS(e){return(e??"online")==="online"?Hh.isOnline():!0}var uS=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function im(e){return e instanceof uS}function cS(e){let t=!1,n=0,r=!1,i;const s=Bg(),a=v=>{var k;r||(y(new uS(v)),(k=e.abort)==null||k.call(e))},l=()=>{t=!0},u=()=>{t=!1},h=()=>Hy.isFocused()&&(e.networkMode==="always"||Hh.isOnline())&&e.canRun(),f=()=>lS(e.networkMode)&&e.canRun(),m=v=>{var k;r||(r=!0,(k=e.onSuccess)==null||k.call(e,v),i==null||i(),s.resolve(v))},y=v=>{var k;r||(r=!0,(k=e.onError)==null||k.call(e,v),i==null||i(),s.reject(v))},g=()=>new Promise(v=>{var k;i=E=>{(r||h())&&v(E)},(k=e.onPause)==null||k.call(e)}).then(()=>{var v;i=void 0,r||(v=e.onContinue)==null||v.call(e)}),x=()=>{if(r)return;let v;const k=n===0?e.initialPromise:void 0;try{v=k??e.fn()}catch(E){v=Promise.reject(E)}Promise.resolve(v).then(m).catch(E=>{var O;if(r)return;const S=e.retry??(zo?0:3),T=e.retryDelay??EO,P=typeof T=="function"?T(n,E):T,F=S===!0||typeof S=="number"&&n<S||typeof S=="function"&&S(n,E);if(t||!F){y(E);return}n++,(O=e.onFail)==null||O.call(e,n,E),gO(P).then(()=>h()?void 0:g()).then(()=>{t?y(E):x()})})};return{promise:s,cancel:a,continue:()=>(i==null||i(),s),cancelRetry:l,continueRetry:u,canStart:f,start:()=>(f()?x():g().then(x),s)}}var wO=e=>setTimeout(e,0);function TO(){let e=[],t=0,n=l=>{l()},r=l=>{l()},i=wO;const s=l=>{t?e.push(l):i(()=>{n(l)})},a=()=>{const l=e;e=[],l.length&&i(()=>{r(()=>{l.forEach(u=>{n(u)})})})};return{batch:l=>{let u;t++;try{u=l()}finally{t--,t||a()}return u},batchCalls:l=>(...u)=>{s(()=>{l(...u)})},schedule:s,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{i=l}}}var Gt=TO(),So,RE,dS=(RE=class{constructor(){Ae(this,So)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Rg(this.gcTime)&&ye(this,So,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(zo?1/0:5*60*1e3))}clearGcTimeout(){U(this,So)&&(clearTimeout(U(this,So)),ye(this,So,void 0))}},So=new WeakMap,RE),Ja,ko,ir,Co,nn,wc,Ao,kr,ki,jE,SO=(jE=class extends dS{constructor(t){super();Ae(this,kr);Ae(this,Ja);Ae(this,ko);Ae(this,ir);Ae(this,Co);Ae(this,nn);Ae(this,wc);Ae(this,Ao);ye(this,Ao,!1),ye(this,wc,t.defaultOptions),this.setOptions(t.options),this.observers=[],ye(this,Co,t.client),ye(this,ir,U(this,Co).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ye(this,Ja,kO(this.options)),this.state=t.state??U(this,Ja),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=U(this,nn))==null?void 0:t.promise}setOptions(t){this.options={...U(this,wc),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&U(this,ir).remove(this)}setData(t,n){const r=Mg(this.state.data,t,this.options);return $e(this,kr,ki).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){$e(this,kr,ki).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=U(this,nn))==null?void 0:r.promise;return(i=U(this,nn))==null||i.cancel(t),n?n.then(Cn).catch(Cn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(U(this,Ja))}isActive(){return this.observers.some(t=>sr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Uy||this.state.dataUpdateCount+this.state.errorUpdate
vendor: 1,274 bytes, line 40
40Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Us(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!sS(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=U(this,nn))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=U(this,nn))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),U(this,ir).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(U(this,nn)&&(U(this,Ao)?U(this,nn).cancel({revert:!0}):U(this,nn).cancelRetry()),this.scheduleGc()),U(this,ir).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||$e(this,kr,ki).call(this,{type:"invalidate"})}
vendor: 24,947 bytes, line 40
40fetch(t,n){var h,f,m;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(U(this,nn))return U(this,nn).continueRetry(),U(this,nn).promise}if(t&&this.setOptions(t),!this.options.queryFn){const y=this.observers.find(g=>g.options.queryFn);y&&this.setOptions(y.options)}const r=new AbortController,i=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(ye(this,Ao,!0),r.signal)})},s=()=>{const y=aS(this.options,n),x=(()=>{const v={client:U(this,Co),queryKey:this.queryKey,meta:this.meta};return i(v),v})();return ye(this,Ao,!1),this.options.persister?this.options.persister(y,x,this):y(x)},l=(()=>{const y={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:U(this,Co),state:this.state,fetchFn:s};return i(y),y})();(h=this.options.behavior)==null||h.onFetch(l,this),ye(this,ko,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=l.fetchOptions)==null?void 0:f.meta))&&$e(this,kr,ki).call(this,{type:"fetch",meta:(m=l.fetchOptions)==null?void 0:m.meta});const u=y=>{var g,x,v,k;im(y)&&y.silent||$e(this,kr,ki).call(this,{type:"error",error:y}),im(y)||((x=(g=U(this,ir).config).onError)==null||x.call(g,y,this),(k=(v=U(this,ir).config).onSettled)==null||k.call(v,this.state.data,y,this)),this.scheduleGc()};return ye(this,nn,cS({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,abort:r.abort.bind(r),onSuccess:y=>{var g,x,v,k;if(y===void 0){u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(y)}catch(E){u(E);return}(x=(g=U(this,ir).config).onSuccess)==null||x.call(g,y,this),(k=(v=U(this,ir).config).onSettled)==null||k.call(v,y,this.state.error,this),this.scheduleGc()},onError:u,onFail:(y,g)=>{$e(this,kr,ki).call(this,{type:"failed",failureCount:y,error:g})},onPause:()=>{$e(this,kr,ki).call(this,{type:"pause"})},onContinue:()=>{$e(this,kr,ki).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),U(this,nn).start()}},Ja=new WeakMap,ko=new WeakMap,ir=new WeakMap,Co=new WeakMap,nn=new WeakMap,wc=new WeakMap,Ao=new WeakMap,kr=new WeakSet,ki=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...hS(r.data,this.options),fetchMeta:t.meta??null};case"success":return ye(this,ko,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return im(i)&&i.revert&&U(this,ko)?{...U(this,ko),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Gt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),U(this,ir).notify({query:this,type:"updated",action:t})})},jE);function hS(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:lS(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function kO(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ti,DE,CO=(DE=class extends Oc{constructor(t={}){super();Ae(this,ti);this.config=t,ye(this,ti,new Map)}build(t,n,r){const i=n.queryKey,s=n.queryHash??Fy(i,n);let a=this.get(s);return a||(a=new SO({client:t,queryKey:i,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){U(this,ti).has(t.queryHash)||(U(this,ti).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=U(this,ti).get(t.queryHash);n&&(t.destroy(),n===t&&U(this,ti).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Gt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return U(this,ti).get(t)}getAll(){return[...U(this,ti).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Vv(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Vv(t,r)):n}notify(t){Gt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Gt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Gt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ti=new WeakMap,DE),ni,dn,No,ri,cs,ME,AO=(ME=class extends dS{constructor(t){super();Ae(this,ri);Ae(this,ni);Ae(this,dn);Ae(this,No);this.mutationId=t.mutationId,ye(this,dn,t.mutationCache),ye(this,ni,[]),this.state=t.state||NO(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){U(this,ni).includes(t)||(U(this,ni).push(t),this.clearGcTimeout(),U(this,dn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ye(this,ni,U(this,ni).filter(n=>n!==t)),this.scheduleGc(),U(this,dn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){U(this,ni).length||(this.state.status==="pending"?this.scheduleGc():U(this,dn).remove(this))}continue(){var t;return((t=U(this,No))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,a,l,u,h,f,m,y,g,x,v,k,E,S,T,P,F,O,H,K;const n=()=>{$e(this,ri,cs).call(this,{type:"continue"})};ye(this,No,cS({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(Q,M)=>{$e(this,ri,cs).call(this,{type:"failed",failureCount:Q,error:M})},onPause:()=>{$e(this,ri,cs).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>U(this,dn).canRun(this)}));const r=this.state.status==="pending",i=!U(this,No).canStart();try{if(r)n();else{$e(this,ri,cs).call(this,{type:"pending",variables:t,isPaused:i}),await((a=(s=U(this,dn).config).onMutate)==null?void 0:a.call(s,t,this));const M=await((u=(l=this.options).onMutate)==null?void 0:u.call(l,t));M!==this.state.context&&$e(this,ri,cs).call(this,{type:"pending",context:M,variables:t,isPaused:i})}const Q=await U(this,No).start();return await((f=(h=U(this,dn).config).onSuccess)==null?void 0:f.call(h,Q,t,this.state.context,this)),await((y=(m=this.options).onSuccess)==null?void 0:y.call(m,Q,t,this.state.context)),await((x=(g=U(this,dn).config).onSettled)==null?void 0:x.call(g,Q,null,this.state.variables,this.state.context,this)),await((k=(v=this.options).onSettled)==null?void 0:k.call(v,Q,null,t,this.state.context)),$e(this,ri,cs).call(this,{type:"success",data:Q}),Q}catch(Q){try{throw await((S=(E=U(this,dn).config).onError)==null?void 0:S.call(E,Q,t,this.state.context,this)),await((P=(T=this.options).onError)==null?void 0:P.call(T,Q,t,this.state.context)),await((O=(F=U(this,dn).config).onSettled)==null?void 0:O.call(F,void 0,Q,this.state.variables,this.state.context,this)),await((K=(H=this.options).onSettled)==null?void 0:K.call(H,void 0,Q,t,this.state.context)),Q}finally{$e(this,ri,cs).call(this,{type:"error",error:Q})}}finally{U(this,dn).runNext(this)}}},ni=new WeakMap,dn=new WeakMap,No=new WeakMap,ri=new WeakSet,cs=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Gt.batch(()=>{U(this,ni).forEach(r=>{r.onMutationUpdate(t)}),U(this,dn).notify({mutation:this,type:"updated",action:t})})},ME);function NO(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ii,Cr,Tc,BE,PO=(BE=class extends Oc{constructor(t={}){super();Ae(this,Ii);Ae(this,Cr);Ae(this,Tc);this.config=t,ye(this,Ii,new Set),ye(this,Cr,new Map),ye(this,Tc,0)}build(t,n,r){const i=new AO({mutationCache:this,mutationId:++dd(this,Tc)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){U(this,Ii).add(t);const n=Nd(t);if(typeof n=="string"){const r=U(this,Cr).get(n);r?r.push(t):U(this,Cr).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(U(this,Ii).delete(t)){const n=Nd(t);if(typeof n=="string"){const r=U(this,Cr).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&U(this,Cr).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Nd(t);if(typeof n=="string"){const r=U(this,Cr).get(n),i=r==null?void 0:r.find(s=>s.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=Nd(t);if(typeof n=="string"){const i=(r=U(this,Cr).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Gt.batch(()=>{U(this,Ii).forEach(t=>{this.notify({type:"removed",mutation:t})}),U(this,Ii).clear(),U(this,Cr).clear()})}getAll(){return Array.from(U(this,Ii))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Kv(n,r))}findAll(t={}){return this.getAll().filter(n=>Kv(t,n))}notify(t){Gt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Gt.batch(()=>Promise.all(t.map(n=>n.continue().catch(Cn))))}},Ii=new WeakMap,Cr=new WeakMap,Tc=new WeakMap,BE);function Nd(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Qv(e){return{onFetch:(t,n)=>{var f,m,y,g,x;const r=t.options,i=(y=(m=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:m.fetchMore)==null?void 0:y.direction,s=((g=t.state.data)==null?void 0:g.pages)||[],a=((x=t.state.data)==null?void 0:x.pageParams)||[];let l={pages:[],pageParams:[]},u=0;const h=async()=>{let v=!1;const k=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},E=aS(t.options,t.fetchOptions),S=async(T,P,F)=>{if(v)return Promise.reject();if(P==null&&T.pages.length)return Promise.resolve(T);const H=(()=>{const Z={client:t.client,queryKey:t.queryKey,pageParam:P,direction:F?"backward":"forward",meta:t.options.meta};return k(Z),Z})(),K=await E(H),{maxPages:Q}=t.options,M=F?bO:yO;return{pages:M(T.pages,K,Q),pageParams:M(T.pageParams,P,Q)}};if(i&&s.length){const T=i==="backward",P=T?IO:Zv,F={pages:s,pageParams:a},O=P(r,F);l=await S(F,O,T)}else{const T=e??s.length;do{const P=u===0?a[0]??r.initialPageParam:Zv(r,l);if(u>0&&P==null)break;l=await S(l,P),u++}while(u<T)}return l};t.options.persister?t.fetchFn=()=>{var v,k;return(k=(v=t.options).persister)==null?void 0:k.call(v,h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=h}}}function Zv(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function IO(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var bt,Es,ws,el,tl,Ts,nl,rl,FE,OO=(FE=class{constructor(e={}){Ae(this,bt);Ae(this,Es);Ae(this,ws);Ae(this,el);Ae(this,tl);Ae(this,Ts);Ae(this,nl);Ae(this,rl);ye(this,bt,e.queryCache||new CO),ye(this,Es,e.mutationCache||new PO),ye(this,ws,e.defaultOptions||{}),ye(this,el,new Map),ye(this,tl,new Map),ye(this,Ts,0)}mount(){dd(this,Ts)._++,U(this,Ts)===1&&(ye(this,nl,Hy.subscribe(async e=>{e&&(await this.resumePausedMutations(),U(this,bt).onFocus())})),ye(this,rl,Hh.subscribe(async e=>{e&&(await this.resumePausedMutations(),U(this,bt).onOnline())})))}unmount(){var e,t;dd(this,Ts)._--,U(this,Ts)===0&&((e=U(this,nl))==null||e.call(this),ye(this,nl,void 0),(t=U(this,rl))==null||t.call(this),ye(this,rl,void 0))}isFetching(e){return U(this,bt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return U(this,Es).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=U(this,bt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=U(this,bt).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Us(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return U(this,bt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=U(this,bt).get(r.queryHash),s=i==null?void 0:i.state.data,a=mO(t,s);if(a!==void 0)return U(this,bt).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Gt.batch(()=>U(this,bt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=U(this,bt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=U(this,bt);Gt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=U(this,bt);return Gt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Gt.batch(()=>U(this,bt).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Cn).catch(Cn)}invalidateQueries(e,t={}){return Gt.batch(()=>(U(this,bt).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Gt.batch(()=>U(this,bt).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(Cn)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Cn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=U(this,bt).build(this,t);return n.isStaleByTime(Us(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Cn).catch(Cn)}fetchInfiniteQuery(e){return e.behavior=Qv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Cn).catch(Cn)}ensureInfiniteQueryData(e){return e.behavior=Qv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Hh.isOnline()?U(this,Es).resumePausedMutations():Promise.resolve()}getQueryCache(){return U(this,bt)}getMutationCache(){return U(this,Es)}getDefaultOptions(){return U(this,ws)}setDefaultOptions(e){ye(this,ws,e)}setQueryDefaults(e,t){U(this,el).set(oc(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...U(this,el).values()],n={};return t.forEach(r=>{ac(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){U(this,tl).set(oc(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...U(this,tl).values()],n={};return t.forEach(r=>{ac(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...U(this,ws).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Fy(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Uy&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...U(this,ws).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){U(this,bt).clear(),U(this,Es).clear()}},bt=new WeakMap,Es=new WeakMap,ws=new WeakMap,el=new WeakMap,tl=new WeakMap,Ts=new WeakMap,nl=new WeakMap,rl=new WeakMap,FE),Sn,qe,Sc,hn,Po,il,Ss,ks,kc,sl,ol,Io,Oo,Cs,al,Xe,yu,Fg,Ug,Hg,zg,$g,qg,Wg,fS,UE,LO=(UE=class extends Oc{constructor(t,n){super();Ae(this,Xe);Ae(this,Sn);Ae(this,qe);Ae(this,Sc);Ae(this,hn);Ae(this,Po);Ae(this,il);Ae(this,Ss);Ae(this,ks);Ae(this,kc);Ae(this,sl);Ae(this,ol);Ae(this,Io);Ae(this,Oo);Ae(this,Cs);Ae(this,al,new Set);this.options=n,ye(this,Sn,t),ye(this,ks,null),ye(this,Ss,Bg()),this.options.experimental_prefetchInRender||U(this,Ss).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(U(this,qe).addObserver(this),Xv(U(this,qe),this.options)?$e(this,Xe,yu).call(this):this.updateResult(),$e(this,Xe,zg).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Vg(U(this,qe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Vg(U(this,qe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,$e(this,Xe,$g).call(this),$e(this,Xe,qg).call(this),U(this,qe).removeObserver(this)}setOptions(t){const n=this.options,r=U(this,qe);if(this.options=U(this,Sn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof sr(this.options.enabled,U(this,qe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");$e(this,Xe,Wg).call(this),U(this,qe).setOptions(this.options),n._defaulted&&!jg(this.options,n)&&U(this,Sn).getQueryCache().notify({type:"observerOptionsUpdated",query:U(this,qe),observer:this});const i=this.hasListeners();i&&Jv(U(this,qe),r,this.options,n)&&$e(this,Xe,yu).call(this),this.updateResult(),i&&(U(this,qe)!==r||sr(this.options.enabled,U(this,qe))!==sr(n.enabled,U(this,qe))||Us(this.options.staleTime,U(this,qe))!==Us(n.staleTime,U(this,qe)))&&$e(this,Xe,Fg).call(this);const s=$e(this,Xe,Ug).call(this);i&&(U(this,qe)!==r||sr(this.options.enabled,U(this,qe))!==sr(n.enabled,U(this,qe))||s!==U(this,Cs))&&$e(this,Xe,Hg).call(this,s)}getOptimisticResult(t){const n=U(this,Sn).getQueryCache().build(U(this,Sn),t),r=this.createResult(n,t);return jO(this,r)&&(ye(this,hn,r),ye(this,il,this.options),ye(this,Po,U(this,qe).state)),r}getCurrentResult(){return U(this,hn)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),Reflect.get(r,i))})}trackProp(t){U(this,al).add(t)}getCurrentQuery(){return U(this,qe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=U(this,Sn).defaultQueryOptions(t),r=U(this,Sn).getQueryCache().build(U(this,Sn),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return $e(this,Xe,yu).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),U(this,hn)))}createResult(t,n){var Q;const r=U(this,qe),i=this.options,s=U(this,hn),a=U(this,Po),l=U(this,il),h=t!==r?t.state:U(this,Sc),{state:f}=t;let m={...f},y=!1,g;if(n._optimisticResults){const M=this.hasListeners(),Z=!M&&Xv(t,n),W=M&&Jv(t,r,n,i);(Z||W)&&(m={...m,...hS(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:x,errorUpdatedAt:v,status:k}=m;g=m.data;let E=!1;if(n.placeholderData!==void 0&&g===void 0&&k==="pending"){let M;s!=null&&s.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData)?(M=s.data,E=!0):M=typeof n.placeholderData=="function"?n.placeholderData((Q=U(this,ol))==null?void 0:Q.state.data,U(this,ol)):n.placeholderData,M!==void 0&&(k="success",g=Mg(s==null?void 0:s.data,M,n),y=!0)}if(n.select&&g!==void 0&&!E)if(s&&g===(a==null?void 0:a.data)&&n.select===U(this,kc))g=U(this,sl);else try{ye(this,kc,n.select),g=n.select(g),g=Mg(s==null?void 0:s.data,g,n),ye(this,sl,g),ye(this,ks,null)}catch(M){ye(this,ks,M)}U(this,ks)&&(x=U(this,ks),g=U(this,sl),v=Date.now(),k="error");const S=m.fetchStatus==="fetching",T=k==="pending",P=k==="error",F=T&&S,O=g!==void 0,K={status:k,fetchStatus:m.fetchStatus,isPending:T,isSuccess:k==="success",isError:P,isInitialLoading:F,isLoading:F,data:g,dataUpdatedAt:m.dataUpdatedAt,error:x,errorUpdatedAt:v,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>h.dataUpdateCount||m.errorUpdateCount>h.errorUpdateCount,isFetching:S,isRefetching:S&&!T,isLoadingError:P&&!O,isPaused:m.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:P&&O,isStale:zy(t,n),refetch:this.refetch,promise:U(this,Ss),isEnabled:sr(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const M=ce=>{K.status==="error"?ce.reject(K.error):K.data!==void 0&&ce.resolve(K.data)},Z=()=>{const ce=ye(this,Ss,K.promise=Bg());M(ce)},W=U(this,Ss);switch(W.status){case"pending":t.queryHash===r.queryHash&&M(W);break;case"fulfilled":(K.status==="error"||K.data!==W.value)&&Z();break;case"rejected":(K.status!=="error"||K.error!==W.reason)&&Z();break}}return K}updateResult(){const t=U(this,hn),n=this.createResult(U(this,qe),this.options);if(ye(this,Po,U(this,qe).state),ye(this,il,this.options),U(this,Po).data!==void 0&&ye(this,ol,U(this,qe)),jg(n,t))return;ye(this,hn,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!U(this,al).size)return!0;const a=new Set(s??U(this,al));return this.options.throwOnError&&a.add("error"),Object.keys(U(this,hn)).some(l=>{const u=l;return U(this,hn)[u]!==t[u]&&a.has(u)})};$e(this,Xe,fS).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&$e(this,Xe,zg).call(this)}},Sn=new WeakMap,qe=new WeakMap,Sc=new WeakMap,hn=new WeakMap,Po=new WeakMap,il=new WeakMap,Ss=new WeakMap,ks=new WeakMap,kc=new WeakMap,sl=new WeakMap,ol=new WeakMap,Io=new WeakMap,Oo=new WeakMap,Cs=new WeakMap,al=new WeakMap,Xe=new WeakSet,yu=function(t){$e(this,Xe,Wg).call(this);let n=U(this,qe).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Cn)),n},Fg=function(){$e(this,Xe,$g).call(this);const t=Us(this.options.staleTime,U(this,qe));if(zo||U(this,hn).isStale||!Rg(t))return;const r=sS(U(this,hn).dataUpdatedAt,t)+1;ye(this,Io,setTimeout(()=>{U(this,hn).isStale||this.updateResult()},r))},Ug=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(U(this,qe)):this.options.refetchInterval)??!1},Hg=function(t){$e(this,Xe,qg).call(this),ye(this,Cs,t),!(zo||sr(this.options.enabled,U(this,qe))===!1||!Rg(U(this,Cs))||U(this,Cs)===0)&&ye(this,Oo,setInterval(()=>{(this.options.refetchIntervalInBackground||Hy.isFocused())&&$e(this,Xe,yu).call(this)},U(this,Cs)))},zg=function(){$e(this,Xe,Fg).call(this),$e(this,Xe,Hg).call(this,$e(this,Xe,Ug).call(this))},$g=function(){U(this,Io)&&(clearTimeout(U(this,Io)),ye(this,Io,void 0))},qg=function(){U(this,Oo)&&(clearInterval(U(this,Oo)),ye(this,Oo,void 0))},Wg=function(){const t=U(this,Sn).getQueryCache().build(U(this,Sn),this.options);if(t===U(this,qe))return;const n=U(this,qe);ye(this,qe,t),ye(this,Sc,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},fS=function(t){Gt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(U(this,hn))}),U(this,Sn).getQueryCache().notify({query:U(this,qe),type:"observerResultsUpdated"})})},UE);function RO(e,t){return sr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Xv(e,t){return RO(e,t)||e.state.data!==void 0&&Vg(e,t,t.refetchOnMount)}function Vg(e,t,n){if(sr(t.enabled,e)!==!1&&Us(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&zy(e,t)}return!1}function Jv(e,t,n,r){return(e!==t||sr(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&zy(e,n)}function zy(e,t){return sr(t.enabled,e)!==!1&&e.isStaleByTime(Us(t.staleTime,e))}function jO(e,t){return!jg(e.getCurrentResult(),t)}var pS=A.createContext(void 0),DO=e=>{const t=A.useContext(pS);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},MO=({client:e,children:t})=>(A.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(pS.Provider,{value:e,children:t})),mS=A.createContext(!1),BO=()=>A.useContext(mS);mS.Provider;function FO(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}
40var UO=A.createContext(FO()),HO=()=>A.useContext(UO),zO=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},$O=e=>{A.useEffect(()=>{e.clearReset()},[e])},qO=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||_O(n,[e.error,r])),WO=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},VO=(e,t)=>e.isLoading&&e.isFetching&&!t,KO=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,ex=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function GO(e,t,n){var m,y,g,x,v;const r=BO(),i=HO(),s=DO(),a=s.defaultQueryOptions(e);(y=(m=s.getDefaultOptions().queries)==null?void 0:m._experimental_beforeQuery)==null||y.call(m,a),a._optimisticResults=r?"isRestoring":"optimistic",WO(a),zO(a,i),$O(i);const l=!s.getQueryCache().get(a.queryHash),[u]=A.useState(()=>new t(s,a)),h=u.getOptimisticResult(a),f=!r&&e.subscribed!==!1;if(A.useSyncExternalStore(A.useCallback(k=>{const E=f?u.subscribe(Gt.batchCalls(k)):Cn;return u.updateResult(),E},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),A.useEffect(()=>{u.setOptions(a)},[a,u]),KO(a,h))throw ex(a,u,i);if(qO({result:h,errorResetBoundary:i,throwOnError:a.throwOnError,query:s.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw h.error;if((x=(g=s.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||x.call(g,a,h),a.experimental_prefetchInRender&&!zo&&VO(h,r)){const k=l?ex(a,u,i):(v=s.getQueryCache().get(a.queryHash))==null?void 0:v.promise;k==null||k.catch(Cn).finally(()=>{u.updateResult()})}return a.notifyOnChangeProps?h:u.trackResult(h)}function He(e,t){return GO(e,LO)}/** 41 * @remix-run/router v1.23.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 lc(){return lc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lc.apply(this,arguments)}var Ps;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ps||(Ps={}));const tx="popstate";function YO(e){e===void 0&&(e={});function t(r,i){let{pathname:s,search:a,hash:l}=r.location;return Kg("",{pathname:s,search:a,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:zh(i)}return ZO(t,n,null,e)}function Ot(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function gS(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function QO(){return Math.random().toString(36).substr(2,8)}function nx(e,t){return{usr:e.state,key:e.key,idx:t}}function Kg(e,t,n,r){return n===void 0&&(n=null),lc({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Tl(t):t,{state:n,key:t&&t.key||r||QO()})}function zh(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Tl(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function ZO(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,a=i.history,l=Ps.Pop,u=null,h=f();h==null&&(h=0,a.replaceState(lc({},a.state,{idx:h}),""));function f(){return(a.state||{idx:null}).idx}function m(){l=Ps.Pop;let k=f(),E=k==null?null:k-h;h=k,u&&u({action:l,location:v.location,delta:E})}function y(k,E){l=Ps.Push;let S=Kg(v.location,k,E);h=f()+1;let T=nx(S,h),P=v.createHref(S);try{a.pushState(T,"",P)}catch(F){if(F instanceof DOMException&&F.name==="DataCloneError")throw F;i.location.assign(P)}s&&u&&u({action:l,location:v.location,delta:1})}function g(k,E){l=Ps.Replace;let S=Kg(v.location,k,E);h=f();let T=nx(S,h),P=v.createHref(S);a.replaceState(T,"",P),s&&u&&u({action:l,location:v.location,delta:0})}function x(k){let E=i.location.origin!=="null"?i.location.origin:i.location.href,S=typeof k=="string"?k:zh(k);
vendor: 2,909 bytes, line 49
49return S=S.replace(/ $/,"%20"),Ot(E,"No window.location.(origin|href) available to create URL for href: "+S),new URL(S,E)}let v={get action(){return l},get location(){return e(i,a)},listen(k){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(tx,m),u=k,()=>{i.removeEventListener(tx,m),u=null}},createHref(k){return t(i,k)},createURL:x,encodeLocation(k){let E=x(k);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:y,replace:g,go(k){return a.go(k)}};return v}var rx;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(rx||(rx={}));function XO(e,t,n){return n===void 0&&(n="/"),JO(e,t,n,!1)}function JO(e,t,n,r){let i=typeof t=="string"?Tl(t):t,s=$y(i.pathname||"/",n);if(s==null)return null;let a=yS(e);eL(a);let l=null;for(let u=0;l==null&&u<a.length;++u){let h=dL(s);l=uL(a[u],h,r)}return l}function yS(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(s,a,l)=>{let u={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};u.relativePath.startsWith("/")&&(Ot(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let h=Hs([r,u.relativePath]),f=n.concat(u);s.children&&s.children.length>0&&(Ot(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+h+'".')),yS(s.children,t,f,h)),!(s.path==null&&!s.index)&&t.push({path:h,score:aL(h,s.index),routesMeta:f})};return e.forEach((s,a)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))i(s,a);else for(let u of bS(s.path))i(s,a,u)}),t}function bS(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let a=bS(r.join("/")),l=[];return l.push(...a.map(u=>u===""?s:[s,u].join("/"))),i&&l.push(...a),l.map(u=>e.startsWith("/")&&u===""?"/":u)}function eL(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:lL(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const tL=/^:[\w-]+$/,nL=3,rL=2,iL=1,sL=10,oL=-2,ix=e=>e==="*";function aL(e,t){let n=e.split("/"),r=n.length;return n.some(ix)&&(r+=oL),t&&(r+=rL),n.filter(i=>!ix(i)).reduce((i,s)=>i+(tL.test(s)?nL:s===""?iL:sL),r)}function lL(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function uL(e,t,n){let{routesMeta:r}=e,i={},s="/",a=[];for(let l=0;l<r.length;++l){let u=r[l],h=l===r.length-1,f=s==="/"?t:t.slice(s.length)||"/",m=sx({path:u.relativePath,caseSensitive:u.caseSensitive,end:h},f),y=u.route;if(!m&&h&&n&&!r[r.length-1].route.index&&(m=sx({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},f)),!m)return null;
vendor: 9,495 bytes, lines 49-58
49Object.assign(i,m.params),a.push({params:i,pathname:Hs([s,m.pathname]),pathnameBase:mL(Hs([s,m.pathnameBase])),route:y}),m.pathnameBase!=="/"&&(s=Hs([s,m.pathnameBase]))}return a}function sx(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=cL(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],a=s.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((h,f,m)=>{let{paramName:y,isOptional:g}=f;if(y==="*"){let v=l[m]||"";a=s.slice(0,s.length-v.length).replace(/(.)\/+$/,"$1")}const x=l[m];return g&&!x?h[y]=void 0:h[y]=(x||"").replace(/%2F/g,"/"),h},{}),pathname:s,pathnameBase:a,pattern:e}}function cL(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),gS(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,u)=>(r.push({paramName:l,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function dL(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return gS(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function $y(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function hL(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Tl(e):e;return{pathname:n?n.startsWith("/")?n:fL(n,t):t,search:gL(r),hash:yL(i)}}function fL(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function sm(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. 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 pL(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function _S(e,t){let n=pL(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function vS(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Tl(e):(i=lc({},e),Ot(!i.pathname||!i.pathname.includes("?"),sm("?","pathname","search",i)),Ot(!i.pathname||!i.pathname.includes("#"),sm("#","pathname","hash",i)),Ot(!i.search||!i.search.includes("#"),sm("#","search","hash",i)));let s=e===""||i.pathname==="",a=s?"/":i.pathname,l;if(a==null)l=n;else{let m=t.length-1;if(!r&&a.startsWith("..")){let y=a.split("/");for(;y[0]==="..";)y.shift(),m-=1;i.pathname=y.join("/")}l=m>=0?t[m]:"/"}let u=hL(i,l),h=a&&a!=="/"&&a.endsWith("/"),f=(s||a===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(h||f)&&(u.pathname+="/"),u}const Hs=e=>e.join("/").replace(/\/\/+/g,"/"),mL=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),gL=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,yL=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function bL(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const xS=["post","put","patch","delete"];new Set(xS);const _L=["get",...xS];new Set(_L);/** 50 * React Router v6.30.1 51 * 52 * Copyright (c) Remix Software Inc. 53 * 54 * This source code is licensed under the MIT license found in the 55 * LICENSE.md file in the root directory of this source tree. 56 * 57 * @license MIT 58 */function uc(){return uc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uc.apply(this,arguments)}const qy=A.createContext(null),vL=A.createContext(null),Yo=A.createContext(null),Ef=A.createContext(null),Zs=A.createContext({outlet:null,matches:[],isDataRoute:!1}),ES=A.createContext(null);function xL(e,t){let{relative:n}=t===void 0?{}:t;Lc()||Ot(!1);let{basename:r,navigator:i}=A.useContext(Yo),{hash:s,pathname:a,search:l}=TS(e,{relative:n}),u=a;return r!=="/"&&(u=a==="/"?r:Hs([r,a])),i.createHref({pathname:u,search:l,hash:s})}function Lc(){return A.useContext(Ef)!=null}function Ln(){return Lc()||Ot(!1),A.useContext(Ef).location}function wS(e){A.useContext(Yo).static||A.useLayoutEffect(e)}function wf(){let{isDataRoute:e}=A.useContext(Zs);return e?RL():EL()}function EL(){Lc()||Ot(!1);let e=A.useContext(qy),{basename:t,future:n,navigator:r}=A.useContext(Yo),{matches:i}=A.useContext(Zs),{pathname:s}=Ln(),a=JSON.stringify(_S(i,n.v7_relativeSplatPath)),l=A.useRef(!1);return wS(()=>{l.current=!0}),A.useCallback(function(h,f){if(f===void 0&&(f={}),!l.current)return;if(typeof h=="number"){r.go(h);return}let m=vS(h,JSON.parse(a),s,f.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Hs([t,m.pathname])),(f.replace?r.replace:r.push)(m,f.state,f)},[t,r,a,s,e])}function fi(){let{matches:e}=A.useContext(Zs),t=e[e.length-1];return t?t.params:{}}function TS(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=A.useContext(Yo),{matches:i}=A.useContext(Zs),{pathname:s}=Ln(),a=JSON.stringify(_S(i,r.v7_relativeSplatPath));return A.useMemo(()=>vS(e,JSON.parse(a),s,n==="path"),[e,a,s,n])}function wL(e,t){return TL(e,t)}function TL(e,t,n,r){Lc()||Ot(!1);let{navigator:i}=A.useContext(Yo),{matches:s}=A.useContext(Zs),a=s[s.length-1],l=a?a.params:{};a&&a.pathname;let u=a?a.pathnameBase:"/";a&&a.route;let h=Ln(),f;if(t){var m;let k=typeof t=="string"?Tl(t):t;u==="/"||(m=k.pathname)!=null&&m.startsWith(u)||Ot(!1),f=k}else f=h;let y=f.pathname||"/",g=y;if(u!=="/"){let k=u.replace(/^\//,"").split("/");g="/"+y.replace(/^\//,"").split("/").slice(k.length).join("/")}let x=XO(e,{pathname:g}),v=NL(x&&x.map(k=>Object.assign({},k,{params:Object.assign({},l,k.params),pathname:Hs([u,i.encodeLocation?i.encodeLocation(k.pathname).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?u:Hs([u,i.encodeLocation?i.encodeLocation(k.pathnameBase).pathname:k.pathnameBase])})),s,n,r);return t&&v?A.createElement(Ef.Provider,{value:{location:uc({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Ps.Pop}},v):v}function SL(){let e=LL(),t=bL(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},t),n?A.createElement("pre",{style:i},n):null,null)}const kL=A.createElement(SL,null);class CL extends A.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?A.createElement(Zs.Provider,{value:this.props.routeContext},A.createElement(ES.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function AL(e){let{routeContext:t,match:n,children:r}=e,i=A.useContext(qy);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),A.createElement(Zs.Provider,{value:t},r)}function NL(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let f=a.findIndex(m=>m.route.id&&(l==null?void 0:l[m.route.id])!==void 0);f>=0||Ot(!1),a=a.slice(0,Math.min(a.length,f+1))}let u=!1,h=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f<a.length;f++){let m=a[f];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(h=f),m.route.id){let{loaderData:y,errors:g}=n,x=m.route.loader&&y[m.route.id]===void 0&&(!g||g[m.route.id]===void 0);if(m.route.lazy||x){u=!0,h>=0?a=a.slice(0,h+1):a=[a[0]];break}}}return a.reduceRight((f,m,y)=>{let g,x=!1,v=null,k=null;n&&(g=l&&m.route.id?l[m.route.id]:void 0,v=m.route.errorElement||kL,u&&(h<0&&y===0?(x=!0,k=null):h===y&&(x=!0,k=m.route.hydrateFallbackElement||null)));let E=t.concat(a.slice(0,y+1)),S=()=>{let T;return g?T=v:x?T=k:m.route.Component?T=A.createElement(m.route.Component,null):m.route.element?T=m.route.element:T=f,A.createElement(AL,{match:m,routeContext:{outlet:f,matches:E,isDataRoute:n!=null},children:T})};return n&&(m.route.ErrorBoundary||m.route.errorElement||y===0)?A.createElement(CL,{location:n.location,revalidation:n.revalidation,component:v,error:g,children:S(),routeC
58ontext:{outlet:null,matches:E,isDataRoute:!0}}):S()},null)}var SS=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(SS||{}),$h=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}($h||{});function PL(e){let t=A.useContext(qy);return t||Ot(!1),t}function IL(e){let t=A.useContext(vL);return t||Ot(!1),t}function OL(e){let t=A.useContext(Zs);return t||Ot(!1),t}function kS(e){let t=OL(),n=t.matches[t.matches.length-1];return n.route.id||Ot(!1),n.route.id}function LL(){var e;let t=A.useContext(ES),n=IL($h.UseRouteError),r=kS($h.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function RL(){let{router:e}=PL(SS.UseNavigateStable),t=kS($h.UseNavigateStable),n=A.useRef(!1);return wS(()=>{n.current=!0}),A.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,uc({fromRouteId:t},s)))},[e,t])}function jL(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Ke(e){Ot(!1)}function DL(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Ps.Pop,navigator:s,static:a=!1,future:l}=e;Lc()&&Ot(!1);let u=t.replace(/^\/*/,"/"),h=A.useMemo(()=>({basename:u,navigator:s,static:a,future:uc({v7_relativeSplatPath:!1},l)}),[u,l,s,a]);typeof r=="string"&&(r=Tl(r));let{pathname:f="/",search:m="",hash:y="",state:g=null,key:x="default"}=r,v=A.useMemo(()=>{let k=$y(f,u);return k==null?null:{location:{pathname:k,search:m,hash:y,state:g,key:x},navigationType:i}},[u,f,m,y,g,x,i]);return v==null?null:A.createElement(Yo.Provider,{value:h},A.createElement(Ef.Provider,{children:n,value:v}))}function ML(e){let{children:t,location:n}=e;return wL(Gg(t),n)}new Promise(()=>{});function Gg(e,t){t===void 0&&(t=[]);let n=[];return A.Children.forEach(e,(r,i)=>{if(!A.isValidElement(r))return;let s=[...t,i];if(r.type===A.Fragment){n.push.apply(n,Gg(r.props.children,s));return}r.type!==Ke&&Ot(!1),!r.props.index||!r.props.children||Ot(!1);let a={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=Gg(r.props.children,s)),n.push(a)}),n}/** 59 * React Router DOM v6.30.1 60 * 61 * Copyright (c) Remix Software Inc. 62 * 63 * This source code is licensed under the MIT license found in the 64 * LICENSE.md file in the root directory of this source tree. 65 * 66 * @license MIT 67 */function Yg(){return Yg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yg.apply(this,arguments)}function BL(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function FL(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function UL(e,t){return e.button===0&&(!t||t==="_self")&&!FL(e)}function Qg(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function HL(e,t){let n=Qg(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(s=>{n.append(i,s)})}),n}const zL=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],$L="6";try{window.__reactRouterVersion=$L}catch{}const qL="startTransition",ox=G0[qL];function WL(e){let{basename:t,children:n,future:r,window:i}=e,s=A.useRef();s.current==null&&(s.current=YO({window:i,v5Compat:!0}));let a=s.current,[l,u]=A.useState({action:a.action,location:a.location}),{v7_startTransition:h}=r||{},f=A.useCallback(m=>{h&&ox?ox(()=>u(m)):u(m)},[u,h]);return A.useLayoutEffect(()=>a.listen(f),[a,f]),A.useEffect(()=>
67jL(r),[r]),A.createElement(DL,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}const VL=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",KL=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xe=A.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:s,replace:a,state:l,target:u,to:h,preventScrollReset:f,viewTransition:m}=t,y=BL(t,zL),{basename:g}=A.useContext(Yo),x,v=!1;if(typeof h=="string"&&KL.test(h)&&(x=h,VL))try{let T=new URL(window.location.href),P=h.startsWith("//")?new URL(T.protocol+h):new URL(h),F=$y(P.pathname,g);P.origin===T.origin&&F!=null?h=F+P.search+P.hash:v=!0}catch{}let k=xL(h,{relative:i}),E=GL(h,{replace:a,state:l,target:u,preventScrollReset:f,relative:i,viewTransition:m});function S(T){r&&r(T),T.defaultPrevented||E(T)}return A.createElement("a",Yg({},y,{href:x||k,onClick:v||s?r:S,ref:n,target:u}))});var ax;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ax||(ax={}));var lx;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(lx||(lx={}));function GL(e,t){let{target:n,replace:r,state:i,preventScrollReset:s,relative:a,viewTransition:l}=t===void 0?{}:t,u=wf(),h=Ln(),f=TS(e,{relative:a});return A.useCallback(m=>{if(UL(m,n)){m.preventDefault();let y=r!==void 0?r:zh(h)===zh(f);u(e,{replace:y,state:i,preventScrollReset:s,relative:a,viewTransition:l})}},[h,u,f,r,i,n,e,s,a,l])}function YL(e){let t=A.useRef(Qg(e)),n=A.useRef(!1),r=Ln(),i=A.useMemo(()=>HL(r.search,n.current?null:t.current),[r.search]),s=wf(),a=A.useCallback((l,u)=>{const h=Qg(typeof l=="function"?l(i):l);n.current=!0,s("?"+h,u)},[s,i]);return[i,a]}var ux=["light","dark"],QL="(prefers-color-scheme: dark)",ZL=A.createContext(void 0),XL={setTheme:e=>{},themes:[]},JL=()=>{var e;return(e=A.useContext(ZL))!=null?e:XL};A.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:s,value:a,attrs:l,nonce:u})=>{let h=s==="system",f=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(x=>`'${x}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,m=i?ux.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",y=(x,v=!1,k=!0)=>{let E=a?a[x]:x,S=v?x+"|| ''":`'${E}'`,T="";return i&&k&&!v&&ux.includes(x)&&(T+=`d.style.colorScheme = '${x}';`),n==="class"?v||E?T+=`c.add(${S})`:T+="null":E&&(T+=`d[s](n,${S})`),T},g=e?`!function(){${f}${y(e)}}()`:r?`!function(){try{${f}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${h})){var t='${QL}',m=window.matchMedia(t);if(m.media!==t||m.matches){${y("dark")}}else{${y("light")}}}else if(e){${a?`var x=${JSON.stringify(a)};`:""}${y(a?"x[e]":"e",!0)}}${h?"":"else{"+y(s,!1,!1)+"}"}${m}}catch(e){}}()`:`!function(){try{${f}var e=localStorage.getItem('${t}');if(e){${a?`var x=${JSON.stringify(a)};`:""}${y(a?"x[e]":"e",!0)}}else{${y(s,!1,!1)};}${m}}catch(t){}}();`;return A.createElement("script",{nonce:u,dangerouslySetInnerHTML:{__html:g}})});var eR=e=>{switch(e){case"success":return rR;case"info":return sR;case"warning":return iR;case"error":return oR;default:return null}},tR=Array(12).fill(0),nR=({visible:e,className:t})=>X.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},X.createElement("div",{className:"sonner-spinner"},tR.map((n,r)=>X.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),rR=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},X.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),iR=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
67currentColor",height:"20",width:"20"},X.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),sR=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},X.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),oR=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},X.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),aR=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},X.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),X.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),lR=()=>{let[e,t]=X.useState(document.hidden);return X.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Zg=1,uR=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,i=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Zg++,s=this.toasts.find(l=>l.id===i),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),s?this.toasts=this.toasts.map(l=>l.id===i?(this.publish({...l,...e,id:i,title:n}),{...l,...e,id:i,dismissible:a,title:n}):l):this.addToast({title:n,...r,dismissible:a,id:i}),i},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
67this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),i=n!==void 0,s,a=r.then(async u=>{if(s=["resolve",u],X.isValidElement(u))i=!1,this.create({id:n,type:"default",message:u});else if(dR(u)&&!u.ok){i=!1;let h=typeof t.error=="function"?await t.error(`HTTP error! status: ${u.status}`):t.error,f=typeof t.description=="function"?await t.description(`HTTP error! status: ${u.status}`):t.description;this.create({id:n,type:"error",message:h,description:f})}else if(t.success!==void 0){i=!1;let h=typeof t.success=="function"?await t.success(u):t.success,f=typeof t.description=="function"?await t.description(u):t.description;this.create({id:n,type:"success",message:h,description:f})}}).catch(async u=>{if(s=["reject",u],t.error!==void 0){i=!1;let h=typeof t.error=="function"?await t.error(u):t.error,f=typeof t.description=="function"?await t.description(u):t.description;this.create({id:n,type:"error",message:h,description:f})}}).finally(()=>{var u;i&&(this.dismiss(n),n=void 0),(u=t.finally)==null||u.call(t)}),l=()=>new Promise((u,h)=>a.then(()=>s[0]==="reject"?h(s[1]):u(s[1])).catch(h));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Zg++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},kn=new uR,cR=(e,t)=>{let n=(t==null?void 0:t.id)||Zg++;return kn.addToast({title:e,...t,id:n}),n},dR=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",hR=cR,fR=()=>kn.toasts,pR=()=>kn.getActiveToasts(),mR=Object.assign(hR,{success:kn.success,info:kn.info,warning:kn.warning,error:kn.error,custom:kn.custom,message:kn.message,promise:kn.promise,dismiss:kn.dismiss,loading:kn.loading},{getHistory:fR,getToasts:pR});function gR(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}gR(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
67left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
67:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
67--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} 68`);function Pd(e){return e.label!==void 0}var yR=3,bR="32px",_R="16px",cx=4e3,vR=356,xR=14,ER=20,wR=200;function xr(...e){return e.filter(Boolean).join(" ")}function TR(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var SR=e=>{var t,n,r,i,s,a,l,u,h,f,m;let{invert:y,toast:g,unstyled:x,interacting:v,setHeights:k,visibleToasts:E,heights:S,index:T,toasts:P,expanded:F,removeToast:O,defaultRichColors:H,closeButton:K,style:Q,cancelButtonStyle:M,actionButtonStyle:Z,className:W="",descriptionClassName:ce="",duration:ee,position:de,gap:se,loadingIcon:me,expandByDefault:z,classNames:J,icons:N,closeButtonAriaLabel:le="Close toast",pauseWhenPageIsHidden:ue}=e,[j,fe]=X.useState(null),[ve,pe]=X.useState(null),[Ne,ut]=X.useState(!1),[Dt,Mt]=X.useState(!1),[$t,bn]=X.useState(!1),[_n,es]=X.useState(!1),[bi,Ur]=X.useState(!1),[Hr,Zn]=X.useState(0),[mr,ts]=X.useState(0),gr=X.useRef(g.duration||ee||cx),no=X.useRef(null),Xn=X.useRef(null),jl=T===0,Dl=T+1<=E,G=g.type,ae=g.dismissible!==!1,Ce=g.className||"",De=g.descriptionClassName||"",ze=X.useMemo(()=>S.findIndex(Pe=>Pe.toastId===g.id)||0,[S,g.id]),Zt=X.useMemo(()=>{var Pe;return(Pe=g.closeButton)!=null?Pe:K},[g.closeButton,K]),Jn=X.useMemo(()=>g.duration||ee||cx,[g.duration,ee]),Xt=X.useRef(0),Jt=X.useRef(0),yr=X.useRef(0),yt=X.useRef(null),[vn,jn]=de.split("-"),Wc=X.useMemo(()=>S.reduce((Pe,Ze,tt)=>tt>=ze?Pe:Pe+Ze.height,0),[S,ze]),Ml=lR(),Vc=g.invert||y,Xo=G==="loading";Jt.current=X.useMemo(()=>ze*se+Wc,[ze,Wc]),X.useEffect(()=>{gr.current=Jn},[Jn]),X.useEffect(()=>{ut(!0)},[]),X.useEffect(()=>{let Pe=Xn.current;if(Pe){let Ze=Pe.getBoundingClientRect().height;return ts(Ze),k(tt=>[{toastId:g.id,height:Ze,position:g.position},...tt]),()=>k(tt=>tt.filter(Dn=>Dn.toastId!==g.id))}},[k,g.id]),X.useLayoutEffect(()=>{if(!Ne)return;let Pe=Xn.current,Ze=Pe.style.height;Pe.style.height="auto";let tt=Pe.getBoundingClientRect().height;Pe.style.height=Ze,ts(tt),k(Dn=>Dn.find(un=>un.toastId===g.id)?Dn.map(un=>un.toastId===g.id?{...un,height:tt}:un):[{toastId:g.id,height:tt,position:g.position},...Dn])}
68,[Ne,g.title,g.description,k,g.id]);let zr=X.useCallback(()=>{Mt(!0),Zn(Jt.current),k(Pe=>Pe.filter(Ze=>Ze.toastId!==g.id)),setTimeout(()=>{O(g)},wR)},[g,O,k,Jt]);X.useEffect(()=>{if(g.promise&&G==="loading"||g.duration===1/0||g.type==="loading")return;let Pe;return F||v||ue&&Ml?(()=>{if(yr.current<Xt.current){let Ze=new Date().getTime()-Xt.current;gr.current=gr.current-Ze}yr.current=new Date().getTime()})():gr.current!==1/0&&(Xt.current=new Date().getTime(),Pe=setTimeout(()=>{var Ze;(Ze=g.onAutoClose)==null||Ze.call(g,g),zr()},gr.current)),()=>clearTimeout(Pe)},[F,v,g,G,ue,Ml,zr]),X.useEffect(()=>{g.delete&&zr()},[zr,g.delete]);function ip(){var Pe,Ze,tt;return N!=null&&N.loading?X.createElement("div",{className:xr(J==null?void 0:J.loader,(Pe=g==null?void 0:g.classNames)==null?void 0:Pe.loader,"sonner-loader"),"data-visible":G==="loading"},N.loading):me?X.createElement("div",{className:xr(J==null?void 0:J.loader,(Ze=g==null?void 0:g.classNames)==null?void 0:Ze.loader,"sonner-loader"),"data-visible":G==="loading"},me):X.createElement(nR,{className:xr(J==null?void 0:J.loader,(tt=g==null?void 0:g.classNames)==null?void 0:tt.loader),visible:G==="loading"})}return X.createElement("li",{tabIndex:0,ref:Xn,className:xr(W,Ce,J==null?void 0:J.toast,(t=g==null?void 0:g.classNames)==null?void 0:t.toast,J==null?void 0:J.default,J==null?void 0:J[G],(n=g==null?void 0:g.classNames)==null?void 0:n[G]),"data-sonner-toast":"","data-rich-colors":(r=g.richColors)!=null?r:H,"data-styled":!(g.jsx||g.unstyled||x),"data-mounted":Ne,"data-promise":!!g.promise,"data-swiped":bi,"data-removed":Dt,"data-visible":Dl,"data-y-position":vn,"data-x-position":jn,"data-index":T,"data-front":jl,"data-swiping":$t,"data-dismissible":ae,"data-type":G,"data-invert":Vc,"data-swipe-out":_n,"data-swipe-direction":ve,"data-expanded":!!(F||z&&Ne),style:{"--index":T,"--toasts-before":T,"--z-index":P.length-T,"--offset":`${Dt?Hr:Jt.current}px`,"--initial-height":z?"auto":`${mr}px`,...Q,...g.style},onDragEnd:()=>{bn(!1),fe(null),yt.current=null},onPointerDown:Pe=>{Xo||!ae||(no.current=new Date,Zn(Jt.current),Pe.target.setPointerCapture(Pe.pointerId),Pe.target.tagName!=="BUTTON"&&(bn(!0),yt.current={x:Pe.clientX,y:Pe.clientY}))},onPointerUp:()=>{var Pe,Ze,tt,Dn;if(_n||!ae)return;yt.current=null;let un=Number(((Pe=Xn.current)==null?void 0:Pe.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),$r=Number(((Ze=Xn.current)==null?void 0:Ze.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),_i=new Date().getTime()-((tt=no.current)==null?void 0:tt.getTime()),Mn=j==="x"?un:$r,qr=Math.abs(Mn)/_i;if(Math.abs(Mn)>=ER||qr>.11){Zn(Jt.current),(Dn=g.onDismiss)==null||Dn.call(g,g),pe(j==="x"?un>0?"right":"left":$r>0?"down":"up"),zr(),es(!0),Ur(!1);return}bn(!1),fe(null)},onPointerMove:Pe=>{var Ze,tt,Dn,un;if(!yt.current||!ae||((Ze=window.getSelection())==null?void 0:Ze.toString().length)>0)return;let $r=Pe.clientY-yt.current.y,_i=Pe.clientX-yt.current.x,Mn=(tt=e.swipeDirections)!=null?tt:TR(de);!j&&(Math.abs(_i)>1||Math.abs($r)>1)&&fe(Math.abs(_i)>Math.abs($r)?"x":"y");let qr={x:0,y:0};j==="y"?(Mn.includes("top")||Mn.includes("bottom"))&&(Mn.includes("top")&&$r<0||Mn.includes("bottom")&&$r>0)&&(qr.y=$r):j==="x"&&(Mn.includes("left")||Mn.includes("right"))&&(Mn.includes("left")&&_i<0||Mn.includes("right")&&_i>0)&&(qr.x=_i),(Math.abs(qr.x)>0||Math.abs(qr.y)>0)&&Ur(!0),(Dn=Xn.current)==null||Dn.style.setProperty("--swipe-amount-x",`${qr.x}px`),(un=Xn.current)==null||un.style.setProperty("--swipe-amount-y",`${qr.y}px`)}},Zt&&!g.jsx?X.createElement("button",{"aria-label":le,"data-disabled":Xo,"data-close-button":!0,onClick:Xo||!ae?()=>{}:()=>{var Pe;zr(),(Pe=g.onDismiss)==null||Pe.call(g,g)},className:xr(J==null?void 0:J.closeButton,(i=g==null?void 0:g.classNames)==null?void 0:i.closeButton)},(s=N==null?void 0:N.close)!=null?s:aR):null,g.jsx||A.isValidElement(g.title)?g.jsx?g.jsx:typeof g.title=="function"?g.title():g.title:X.createElement(X.Fragment,null,G||g.icon||g.promise?X.createElement("div",{"data-icon":"",className:xr(J==null?void 0:J.icon,(a=g==null?void 0:g.classNames)==null?void 0:a.icon)},g.promise||g.type==="loading"&&!g.icon?g.icon||ip():null,g.type!=="loading"?g.icon||(N==null?void 0:N[G])||eR(G):null):null,X.createElement("div",{"data-content":"",className:xr(J==null?void 0:J.content,(l=g==null?void 0:g.classNames)==null?void 0:l.content)},X.createElement("div",{"data-title":"",className:xr(J==null?void 0:J.title,(u=g==null?void 0:g.classNames)==null?void 0:u.title)},typeof g.title=="function"?g.title():g.title),g.description?X.createElement("div",{"data-description":"",className:xr(ce,De,J==null?void 0:J.description,(h=g==null?void 0:g.classNames)==null?void 0:h.description)},typeof g.description=="function"?g.description():g.description):null),A.isValidElement(g.cancel)?g.cancel:g.cancel&&Pd(g.cancel)?X.createElement("button",{"data-button":!0,"data-cancel":!0,style:g.cancelButtonStyle||M,onClick:Pe=>{var Ze,tt;Pd(g.cancel)&&ae&&((tt=(Ze=g.cancel).onClick)==null||tt.call(Ze,Pe),zr())},className:xr(J==null?void 0:J.cancelButton,(f=g==null?void 0:g.classNames)==null?void 0:f.cancelButton)},g.cancel.label):null,A.isValidElement(g.action)?g.action:g.action&&Pd(g.action)?X.createElement("button",{"data-button":!0,"data-action":!0,style:g.actionButtonStyle||Z,onClick:Pe=>{var Ze,tt;Pd(g.action)&&((tt=(Ze=g.action).onClick)==null||tt.call(Ze,Pe),!Pe.defaultPrevented&&zr())},className:xr(J==null?void 0:J.actionButton,(m=g==null?void 0:g.classNames)==null?void 0:m.actionButton)},g.action.label):null))};function dx(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function kR(e,t){let n={};return[e,t].forEach((r,i)=>{let s=i===1,a=s?"--mobile-offset":"--offset",l=s?_R:bR;function u(h){["top","right","bottom","left"].forEach(f=>{n[`${a}-${f}`]=typeof h=="number"?`${h}px`:h})}typeof r=="number"||typeof r=="string"?u(r):typeof r=="object"?["top","right","bottom","left"].forEach(h=>{r[h]===void 0?n[`${a}-${h}`]=l:n[`${a}-${h}`]=typeof r[h]=="number"?`${r[h]}px`:r[h]}):u(l)}),n}var CR=A.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:i=["altKey","KeyT"],expand:s,closeButton:a,className:l,offset:u,mobileOffset:h,theme:f="light",richColors:m,duration:y,style:g,visibleToasts:x=yR,toastOptions:v,dir:k=dx(),gap:E=xR,loadingIcon:S,icons:T,containerAriaLabel:P="Notifications",pauseWhenPageIsHidden:F}=e,[O,H]=X.useState([]),K=X.useMemo(()=>Array.from(new Set([r].concat(O.filter(ue=>ue.position).map(ue=>ue.position)))),[O,r]),[Q,M]=X.useState([]),[Z,W]=X.useState(!1),[ce,ee]=X.useState(!1),[de,se]=X.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
68k":"light"),me=X.useRef(null),z=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),J=X.useRef(null),N=X.useRef(!1),le=X.useCallback(ue=>{H(j=>{var fe;return(fe=j.find(ve=>ve.id===ue.id))!=null&&fe.delete||kn.dismiss(ue.id),j.filter(({id:ve})=>ve!==ue.id)})},[]);return X.useEffect(()=>kn.subscribe(ue=>{if(ue.dismiss){H(j=>j.map(fe=>fe.id===ue.id?{...fe,delete:!0}:fe));return}setTimeout(()=>{rS.flushSync(()=>{H(j=>{let fe=j.findIndex(ve=>ve.id===ue.id);return fe!==-1?[...j.slice(0,fe),{...j[fe],...ue},...j.slice(fe+1)]:[ue,...j]})})})}),[]),X.useEffect(()=>{if(f!=="system"){se(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?se("dark"):se("light")),typeof window>"u")return;let ue=window.matchMedia("(prefers-color-scheme: dark)");try{ue.addEventListener("change",({matches:j})=>{se(j?"dark":"light")})}catch{ue.addListener(({matches:fe})=>{try{se(fe?"dark":"light")}catch(ve){console.error(ve)}})}},[f]),X.useEffect(()=>{O.length<=1&&W(!1)},[O]),X.useEffect(()=>{let ue=j=>{var fe,ve;i.every(pe=>j[pe]||j.code===pe)&&(W(!0),(fe=me.current)==null||fe.focus()),j.code==="Escape"&&(document.activeElement===me.current||(ve=me.current)!=null&&ve.contains(document.activeElement))&&W(!1)};return document.addEventListener("keydown",ue),()=>document.removeEventListener("keydown",ue)},[i]),X.useEffect(()=>{if(me.current)return()=>{J.current&&(J.current.focus({preventScroll:!0}),J.current=null,N.current=!1)}},[me.current]),X.createElement("section",{ref:t,"aria-label":`${P} ${z}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},K.map((ue,j)=>{var fe;let[ve,pe]=ue.split("-");return O.length?X.createElement("ol",{key:ue,dir:k==="auto"?dx():k,tabIndex:-1,ref:me,className:l,"data-sonner-toaster":!0,"data-theme":de,"data-y-position":ve,"data-lifted":Z&&O.length>1&&!s,"data-x-position":pe,style:{"--front-toast-height":`${((fe=Q[0])==null?void 0:fe.height)||0}px`,"--width":`${vR}px`,"--gap":`${E}px`,...g,...kR(u,h)},onBlur:Ne=>{N.current&&!Ne.currentTarget.contains(Ne.relatedTarget)&&(N.current=!1,J.current&&(J.current.focus({preventScroll:!0}),J.current=null))},onFocus:Ne=>{Ne.target instanceof HTMLElement&&Ne.target.dataset.dismissible==="false"||N.current||(N.current=!0,J.current=Ne.relatedTarget)},onMouseEnter:()=>W(!0),onMouseMove:()=>W(!0),onMouseLeave:()=>{ce||W(!1)},onDragEnd:()=>W(!1),onPointerDown:Ne=>{Ne.target instanceof HTMLElement&&Ne.target.dataset.dismissible==="false"||ee(!0)},onPointerUp:()=>ee(!1)},O.filter(Ne=>!Ne.position&&j===0||Ne.position===ue).map((Ne,ut)=>{var Dt,Mt;return X.createElement(SR,{key:Ne.id,icons:T,index:ut,toast:Ne,defaultRichColors:m,duration:(Dt=v==null?void 0:v.duration)!=null?Dt:y,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:n,visibleToasts:x,closeButton:(Mt=v==null?void 0:v.closeButton)!=null?Mt:a,interacting:ce,position:ue,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,removeToast:le,toasts:O.filter($t=>$t.position==Ne.position),heights:Q.filter($t=>$t.position==Ne.position),setHeights:M,expandByDefault:s,gap:E,loadingIcon:S,expanded:Z,pauseWhenPageIsHidden:F,swipeDirections:e.swipeDirections})})):null}))});const AR=({...e})=>{const{theme:t="system"}=JL();return c.jsx(CR,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},NR=1,PR=1e6;let om=0;function IR(){return om=(om+1)%Number.MAX_SAFE_INTEGER,om.toString()}const am=new Map,hx=e=>{if(am.has(e))return;const t=setTimeout(()=>{am.delete(e),Pu({type:"REMOVE_TOAST",toastId:e})},PR);am.set(e,t)},OR=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,NR)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;
68return n?hx(n):e.toasts.forEach(r=>{hx(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},oh=[];let ah={toasts:[]};function Pu(e){ah=OR(ah,e),oh.forEach(t=>{t(ah)})}function LR({...e}){const t=IR(),n=i=>Pu({type:"UPDATE_TOAST",toast:{...i,id:t}}),r=()=>Pu({type:"DISMISS_TOAST",toastId:t});return Pu({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function RR(){const[e,t]=A.useState(ah);return A.useEffect(()=>(oh.push(t),()=>{const n=oh.indexOf(t);n>-1&&oh.splice(n,1)}),[e]),{...e,toast:LR,dismiss:n=>Pu({type:"DISMISS_TOAST",toastId:n})}}function wt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function fx(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function CS(...e){return t=>{let n=!1;const r=e.map(i=>{const s=fx(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<r.length;i++){const s=r[i];typeof s=="function"?s():fx(e[i],null)}}}}function Gn(...e){return A.useCallback(CS(...e),e)}function Sl(e,t=[]){let n=[];function r(s,a){const l=A.createContext(a),u=n.length;n=[...n,a];const h=m=>{var E;const{scope:y,children:g,...x}=m,v=((E=y==null?void 0:y[e])==null?void 0:E[u])||l,k=A.useMemo(()=>x,Object.values(x));return c.jsx(v.Provider,{value:k,children:g})};h.displayName=s+"Provider";function f(m,y){var v;const g=((v=y==null?void 0:y[e])==null?void 0:v[u])||l,x=A.useContext(g);if(x)return x;if(a!==void 0)return a;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[h,f]}const i=()=>{const s=n.map(a=>A.createContext(a));return function(l){const u=(l==null?void 0:l[e])||s;return A.useMemo(()=>({[`__scope${e}`]:{...l,[e]:u}}),[l,u])}};return i.scopeName=e,[r,jR(i,...t)]}function jR(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const a=r.reduce((l,{useScope:u,scopeName:h})=>{const m=u(s)[`__scope${h}`];return{...l,...m}},{});return A.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Xg(e){const t=DR(e),n=A.forwardRef((r,i)=>{const{children:s,...a}=r,l=A.Children.toArray(s),u=l.find(BR);if(u){const h=u.props.children,f=l.map(m=>m===u?A.Children.count(h)>1?A.Children.only(null):A.isValidElement(h)?h.props.children:null:m);return c.jsx(t,{...a,ref:i,children:A.isValidElement(h)?A.cloneElement(h,void 0,f):null})}return c.jsx(t,{...a,ref:i,children:s})});return n.displayName=`${e}.Slot`,n}function DR(e){const t=A.forwardRef((n,r)=>{const{children:i,...s}=n;if(A.isValidElement(i)){const a=UR(i),l=FR(s,i.props);return i.type!==A.Fragment&&(l.ref=r?CS(r,a):a),A.cloneElement(i,l)}return A.Children.count(i)>1?A.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var AS=Symbol("radix.slottable");function MR(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=AS,t}function BR(e){return A.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===AS}function FR(e,t){const n={...t};for(const r in t){const i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...l)=>{const u=s(...l);return i(...l),u}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function UR(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function NS(e){const t=e+"CollectionProvider",[n,r]=Sl(t),[i,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=v=>{const{scope:k,children:E}=v,S=X.useRef(null),T=X.useRef(new Map).current;return c.jsx(i,{scope:k,itemMap:T,collectionRef:S,children:E})};a.displayName=t;const l=e+"CollectionSlot",u=Xg(l),h=X.forwardRef((v,k)=>{const{scope:E,children:S}=v,T=s(l,E),P=Gn(k,T.collectionRef);return c.jsx(u,{ref:P,children:S})});h.displayName=l;const f=e+"CollectionItemSlot",m="data-radix-collection-item",y=Xg(f),g=X.forwardRef((v,k)=>{const{scope:E,children:S,...T}=v,P=X.useRef(null),F=Gn(k,P),O=s(f,E);return X.useEffect(()=>(O.itemMap.set(P,{ref:P,...T}),()=>void O.itemMap.delete(P))),c.jsx(y,{[m]:"",ref:F,children:S})});g.displayName=f;function x(v){const k=s(e+"CollectionConsumer",v);return X.useCallback(()=>{const S=k.collectionRef.current;if(!S)return[];const T=Array.from(S.querySelectorAll(`[${m}]`));return Array.from(k.itemMap.values()).sort((O,H)=>T.indexOf(O.ref.current)-T.indexOf(H.ref.current))},[k.collectionRef,k.itemMap])}return[{Provider:a,Slot:h,ItemSlot:g},x,r]}var HR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],jt=HR.reduce((e,t)=>
vendor: 8,608 bytes, line 68
68{const n=Xg(`Primitive.${t}`),r=A.forwardRef((i,s)=>{const{asChild:a,...l}=i,u=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(u,{...l,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function PS(e,t){e&&wl.flushSync(()=>e.dispatchEvent(t))}function qs(e){const t=A.useRef(e);return A.useEffect(()=>{t.current=e}),A.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function zR(e,t=globalThis==null?void 0:globalThis.document){const n=qs(e);A.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var $R="DismissableLayer",Jg="dismissableLayer.update",qR="dismissableLayer.pointerDownOutside",WR="dismissableLayer.focusOutside",px,IS=A.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Wy=A.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:a,onDismiss:l,...u}=e,h=A.useContext(IS),[f,m]=A.useState(null),y=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=A.useState({}),x=Gn(t,H=>m(H)),v=Array.from(h.layers),[k]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),E=v.indexOf(k),S=f?v.indexOf(f):-1,T=h.layersWithOutsidePointerEventsDisabled.size>0,P=S>=E,F=KR(H=>{const K=H.target,Q=[...h.branches].some(M=>M.contains(K));!P||Q||(i==null||i(H),a==null||a(H),H.defaultPrevented||l==null||l())},y),O=GR(H=>{const K=H.target;[...h.branches].some(M=>M.contains(K))||(s==null||s(H),a==null||a(H),H.defaultPrevented||l==null||l())},y);return zR(H=>{S===h.layers.size-1&&(r==null||r(H),!H.defaultPrevented&&l&&(H.preventDefault(),l()))},y),A.useEffect(()=>{if(f)return n&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(px=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(f)),h.layers.add(f),mx(),()=>{n&&h.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=px)}},[f,y,n,h]),A.useEffect(()=>()=>{f&&(h.layers.delete(f),h.layersWithOutsidePointerEventsDisabled.delete(f),mx())},[f,h]),A.useEffect(()=>{const H=()=>g({});return document.addEventListener(Jg,H),()=>document.removeEventListener(Jg,H)},[]),c.jsx(jt.div,{...u,ref:x,style:{pointerEvents:T?P?"auto":"none":void 0,...e.style},onFocusCapture:wt(e.onFocusCapture,O.onFocusCapture),onBlurCapture:wt(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:wt(e.onPointerDownCapture,F.onPointerDownCapture)})});Wy.displayName=$R;var VR="DismissableLayerBranch",OS=A.forwardRef((e,t)=>{const n=A.useContext(IS),r=A.useRef(null),i=Gn(t,r);return A.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),c.jsx(jt.div,{...e,ref:i})});OS.displayName=VR;function KR(e,t=globalThis==null?void 0:globalThis.document){const n=qs(e),r=A.useRef(!1),i=A.useRef(()=>{});return A.useEffect(()=>{const s=l=>{if(l.target&&!r.current){let u=function(){LS(qR,n,h,{discrete:!0})};const h={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=u,t.addEventListener("click",i.current,{once:!0})):u()}else t.removeEventListener("click",i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function GR(e,t=globalThis==null?void 0:globalThis.document){const n=qs(e),r=A.useRef(!1);return A.useEffect(()=>{const i=s=>{s.target&&!r.current&&LS(WR,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function mx(){const e=new CustomEvent(Jg);document.dispatchEvent(e)}function LS(e,t,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?PS(i,s):i.dispatchEvent(s)}var YR=Wy,QR=OS,di=globalThis!=null&&globalThis.document?A.useLayoutEffect:()=>{},ZR="Portal",RS=A.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[i,s]=A.useState(!1);di(()=>s(!0),[]);const a=n||i&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?rS.createPortal(c.jsx(jt.div,{...r,ref:t}),a):null});RS.displayName=ZR;function XR(e,t){return A.useReducer((n,r)=>t[n][r]??n,e)}var Tf=e=>{const{present:t,children:n}=e,r=JR(t),i=typeof n=="function"?n({present:r.isPresent}):A.Children.only(n),s=Gn(r.ref,e3(i));return typeof n=="function"||r.isPresent?A.cloneElement(i,{ref:s}):null};Tf.displayName="Presence";function JR(e){const[t,n]=A.useState(),r=A.useRef(null),i=A.useRef(e),s=A.useRef("none"),a=e?"mounted":"unmounted",[l,u]=XR(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return A.useEffect(()=>{const h=Id(r.current);s.current=l==="mounted"?h:"none"},[l]),di(()=>{const h=r.current,f=i.current;if(f!==e){const y=s.current,g=Id(h);e?u("MOUNT"):g==="none"||(h==null?void 0:h.display)==="none"?u("UNMOUNT"):u(f&&y!==g?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,u]),di(()=>{if(t){let h;const f=t.ownerDocument.defaultView??window,m=g=>{const v=Id(r.current).includes(g.animationName);if(g.target===t&&v&&(u("ANIMATION_END"),!i.current)){const k=t.style.animationFillMode;t.style.animationFillMode="forwards",h=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=k)})}},y=g=>{g.target===t&&(s.current=Id(r.current))};return t.addEventListener("animationstart",y),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{f.clearTimeout(h),t.removeEventListener("animationstart",y),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:A.useCallback(h=>{r.current=h?getComputedStyle(h):null,n(h)},[])}}function Id(e){return(e==null?void 0:e.animationName)||"none"}function e3(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var t3=G0[" useInsertionEffect ".trim().toString()]||di;function Sf({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,s,a]=n3({defaultProp:t,onChange:n}),l=e!==void 0,u=l?e:i;{const f=A.useRef(e!==void 0);A.useEffect(()=>{const m=f.current;m!==l&&console.warn(`${r} is changing from ${m?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=l},[l,r])}const h=A.useCallback(f=>{var m;if(l){const y=r3(f)?f(e):f;y!==e&&((m=a.current)==null||m.call(a,y))}else s(f)},[l,e,s,a]);return[u,h]}function n3({defaultProp:e,onChange:t}){const[n,r]=A.useState(e),i=A.useRef(n),s=A.useRef(t);return t3(()=>{s.current=t},[t]),A.useEffect(()=>{var a;i.current!==n&&((a=s.current)==null||a.call(s,n),i.current=n)},[n,i]),[n,r,s]}function r3(e){return typeof e=="function"}var i3=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),s3="VisuallyHidden",kf=A.forwardRef((e,t)=>c.jsx(jt.span,{...e,ref:t,style:{...i3,...e.style}}));kf.displayName=s3;var o3=kf,Vy="ToastProvider",[Ky,a3,l3]=NS("Toast"),[jS,mK]=Sl("Toast",[l3]),[u3,Cf]=jS(Vy),DS=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:s=50,children:a}=e,[l,u]=A.useState(null),[h,f]=A.useState(0),m=A.useRef(!1),y=A.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Vy}\`. Expected non-empty \`string\`.`),c.jsx(Ky.Provider,{scope:t,children:c.jsx(u3,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:s,toastCount:h,viewport:l,onViewportChange:u,onToastAdd:A.useCallback(()=>f(g=>g+1),[]),onToastRemove:A.useCallback(()=>f(g=>g-1),[]),isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:y,children:a})})};DS.displayName=Vy;var MS="ToastViewport",c3=["F8"],e0="toast.viewportPause",t0="toast.viewportResume",BS=A.forwardRef((e,t)=>
68{const{__scopeToast:n,hotkey:r=c3,label:i="Notifications ({hotkey})",...s}=e,a=Cf(MS,n),l=a3(n),u=A.useRef(null),h=A.useRef(null),f=A.useRef(null),m=A.useRef(null),y=Gn(t,m,a.onViewportChange),g=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=a.toastCount>0;A.useEffect(()=>{const k=E=>{var T;r.length!==0&&r.every(P=>E[P]||E.code===P)&&((T=m.current)==null||T.focus())};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[r]),A.useEffect(()=>{const k=u.current,E=m.current;if(x&&k&&E){const S=()=>{if(!a.isClosePausedRef.current){const O=new CustomEvent(e0);E.dispatchEvent(O),a.isClosePausedRef.current=!0}},T=()=>{if(a.isClosePausedRef.current){const O=new CustomEvent(t0);E.dispatchEvent(O),a.isClosePausedRef.current=!1}},P=O=>{!k.contains(O.relatedTarget)&&T()},F=()=>{k.contains(document.activeElement)||T()};return k.addEventListener("focusin",S),k.addEventListener("focusout",P),k.addEventListener("pointermove",S),k.addEventListener("pointerleave",F),window.addEventListener("blur",S),window.addEventListener("focus",T),()=>{k.removeEventListener("focusin",S),k.removeEventListener("focusout",P),k.removeEventListener("pointermove",S),k.removeEventListener("pointerleave",F),window.removeEventListener("blur",S),window.removeEventListener("focus",T)}}},[x,a.isClosePausedRef]);const v=A.useCallback(({tabbingDirection:k})=>{const S=l().map(T=>{const P=T.ref.current,F=[P,...w3(P)];return k==="forwards"?F:F.reverse()});return(k==="forwards"?S.reverse():S).flat()},[l]);return A.useEffect(()=>{const k=m.current;if(k){const E=S=>{var F,O,H;const T=S.altKey||S.ctrlKey||S.metaKey;if(S.key==="Tab"&&!T){const K=document.activeElement,Q=S.shiftKey;if(S.target===k&&Q){(F=h.current)==null||F.focus();return}const W=v({tabbingDirection:Q?"backwards":"forwards"}),ce=W.findIndex(ee=>ee===K);lm(W.slice(ce+1))?S.preventDefault():Q?(O=h.current)==null||O.focus():(H=f.current)==null||H.focus()}};return k.addEventListener("keydown",E),()=>k.removeEventListener("keydown",E)}},[l,v]),c.jsxs(QR,{ref:u,role:"region","aria-label":i.replace("{hotkey}",g),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&c.jsx(n0,{ref:h,onFocusFromOutsideViewport:()=>{const k=v({tabbingDirection:"forwards"});lm(k)}}),c.jsx(Ky.Slot,{scope:n,children:c.jsx(jt.ol,{tabIndex:-1,...s,ref:y})}),x&&c.jsx(n0,{ref:f,onFocusFromOutsideViewport:()=>{const k=v({tabbingDirection:"backwards"});lm(k)}})]})});BS.displayName=MS;var FS="ToastFocusProxy",n0=A.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,s=Cf(FS,n);return c.jsx(kf,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:a=>{var h;const l=a.relatedTarget;!((h=s.viewport)!=null&&h.contains(l))&&r()}})});n0.displayName=FS;var Rc="Toast",d3="toast.swipeStart",h3="toast.swipeMove",f3="toast.swipeCancel",p3="toast.swipeEnd",US=A.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:s,...a}=e,[l,u]=Sf({prop:r,defaultProp:i??!0,onChange:s,caller:Rc});return c.jsx(Tf,{present:n||l,children:c.jsx(y3,{open:l,...a,ref:t,onClose:()=>u(!1),onPause:qs(e.onPause),onResume:qs(e.onResume),onSwipeStart:wt(e.onSwipeStart,h=>{h.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:wt(e.onSwipeMove,h=>{const{x:f,y:m}=h.detail.delta;h.currentTarget.setAttribute("data-swipe","move"),h.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),h.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${m}px`)}),onSwipeCancel:wt(e.onSwipeCancel,h=>{h.currentTarget.setAttribute("data-swipe","cancel"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),h.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:wt(e.onSwipeEnd,h=>{const{x:f,y:m}=h.detail.delta;h.currentTarget.setAttribute("data-swipe","end"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),h.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}
68px`),h.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${m}px`),u(!1)})})})});US.displayName=Rc;var[m3,g3]=jS(Rc,{onClose(){}}),y3=A.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:i,open:s,onClose:a,onEscapeKeyDown:l,onPause:u,onResume:h,onSwipeStart:f,onSwipeMove:m,onSwipeCancel:y,onSwipeEnd:g,...x}=e,v=Cf(Rc,n),[k,E]=A.useState(null),S=Gn(t,ee=>E(ee)),T=A.useRef(null),P=A.useRef(null),F=i||v.duration,O=A.useRef(0),H=A.useRef(F),K=A.useRef(0),{onToastAdd:Q,onToastRemove:M}=v,Z=qs(()=>{var de;(k==null?void 0:k.contains(document.activeElement))&&((de=v.viewport)==null||de.focus()),a()}),W=A.useCallback(ee=>{!ee||ee===1/0||(window.clearTimeout(K.current),O.current=new Date().getTime(),K.current=window.setTimeout(Z,ee))},[Z]);A.useEffect(()=>{const ee=v.viewport;if(ee){const de=()=>{W(H.current),h==null||h()},se=()=>{const me=new Date().getTime()-O.current;H.current=H.current-me,window.clearTimeout(K.current),u==null||u()};return ee.addEventListener(e0,se),ee.addEventListener(t0,de),()=>{ee.removeEventListener(e0,se),ee.removeEventListener(t0,de)}}},[v.viewport,F,u,h,W]),A.useEffect(()=>{s&&!v.isClosePausedRef.current&&W(F)},[s,F,v.isClosePausedRef,W]),A.useEffect(()=>(Q(),()=>M()),[Q,M]);const ce=A.useMemo(()=>k?KS(k):null,[k]);return v.viewport?c.jsxs(c.Fragment,{children:[ce&&c.jsx(b3,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:ce}),c.jsx(m3,{scope:n,onClose:Z,children:wl.createPortal(c.jsx(Ky.ItemSlot,{scope:n,children:c.jsx(YR,{asChild:!0,onEscapeKeyDown:wt(l,()=>{v.isFocusedToastEscapeKeyDownRef.current||Z(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:c.jsx(jt.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":v.swipeDirection,...x,ref:S,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:wt(e.onKeyDown,ee=>{ee.key==="Escape"&&(l==null||l(ee.nativeEvent),ee.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,Z()))}),onPointerDown:wt(e.onPointerDown,ee=>{ee.button===0&&(T.current={x:ee.clientX,y:ee.clientY})}),onPointerMove:wt(e.onPointerMove,ee=>{if(!T.current)return;const de=ee.clientX-T.current.x,se=ee.clientY-T.current.y,me=!!P.current,z=["left","right"].includes(v.swipeDirection),J=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,N=z?J(0,de):0,le=z?0:J(0,se),ue=ee.pointerType==="touch"?10:2,j={x:N,y:le},fe={originalEvent:ee,delta:j};me?(P.current=j,Od(h3,m,fe,{discrete:!1})):gx(j,v.swipeDirection,ue)?(P.current=j,Od(d3,f,fe,{discrete:!1}),ee.target.setPointerCapture(ee.pointerId)):(Math.abs(de)>ue||Math.abs(se)>ue)&&(T.current=null)}),onPointerUp:wt(e.onPointerUp,ee=>{const de=P.current,se=ee.target;if(se.hasPointerCapture(ee.pointerId)&&se.releasePointerCapture(ee.pointerId),P.current=null,T.current=null,de){const me=ee.currentTarget,z={originalEvent:ee,delta:de};gx(de,v.swipeDirection,v.swipeThreshold)?Od(p3,g,z,{discrete:!0}):Od(f3,y,z,{discrete:!0}),me.addEventListener("click",J=>J.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),b3=e=>{const{__scopeToast:t,children:n,...r}=e,i=Cf(Rc,t),[s,a]=A.useState(!1),[l,u]=A.useState(!1);return x3(()=>a(!0)),A.useEffect(()=>{const h=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(h)},[]),l?null:c.jsx(RS,{asChild:!0,children:c.jsx(kf,{...r,children:s&&c.jsxs(c.Fragment,{children:[i.label," ",n]})})})},_3="ToastTitle",HS=A.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(jt.div,{...r,ref:t})});HS.displayName=_3;var v3="ToastDescription",zS=A.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(jt.div,{...r,ref:t})});zS.displayName=v3;var $S="ToastAction",qS=A.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?c.jsx(VS,{altText:n,asChild:!0,children:c.jsx(Gy,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${$S}\`. Expected non-empty \`string\`.`),null)});qS.displayName=$S;var WS="ToastClose",Gy=A.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,i=g3(WS,n);return c.jsx(VS,{asChild:!0,children:c.jsx(jt.button,{type:"button",...r,ref:t,onClick:wt(e.onClick,i.onClose)})})});Gy.displayName=WS;var VS=A.forwardRef((e,t)=>
vendor: 6,634 bytes, lines 68-132
68{const{__scopeToast:n,altText:r,...i}=e;return c.jsx(jt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function KS(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),E3(r)){const i=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!i)if(s){const a=r.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...KS(r))}}),t}function Od(e,t,n,{discrete:r}){const i=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?PS(i,s):i.dispatchEvent(s)}var gx=(e,t,n=0)=>{const r=Math.abs(e.x),i=Math.abs(e.y),s=r>i;return t==="left"||t==="right"?s&&r>n:!s&&i>n};function x3(e=()=>{}){const t=qs(e);di(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function E3(e){return e.nodeType===e.ELEMENT_NODE}function w3(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function lm(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var T3=DS,GS=BS,YS=US,QS=HS,ZS=zS,XS=qS,JS=Gy;function ek(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=ek(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function tk(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ek(e))&&(r&&(r+=" "),r+=t);return r}const yx=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,bx=tk,S3=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return bx(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:s}=t,a=Object.keys(i).map(h=>{const f=n==null?void 0:n[h],m=s==null?void 0:s[h];if(f===null)return null;const y=yx(f)||yx(m);return i[h][y]}),l=n&&Object.entries(n).reduce((h,f)=>{let[m,y]=f;return y===void 0||(h[m]=y),h},{}),u=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((h,f)=>{let{class:m,className:y,...g}=f;return Object.entries(g).every(x=>{let[v,k]=x;return Array.isArray(k)?k.includes({...s,...l}[v]):{...s,...l}[v]===k})?[...h,m,y]:h},[]);return bx(e,a,u,n==null?void 0:n.class,n==null?void 0:n.className)};/** 69 * @license lucide-react v0.462.0 - ISC 70 * 71 * This source code is licensed under the ISC license. 72 * See the LICENSE file in the root directory of this source tree. 73 */const k3=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),nk=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 74 * @license lucide-react v0.462.0 - ISC 75 * 76 * This source code is licensed under the ISC license. 77 * See the LICENSE file in the root directory of this source tree. 78 */var C3={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 79 * @license lucide-react v0.462.0 - ISC 80 * 81 * This source code is licensed under the ISC license. 82 * See the LICENSE file in the root directory of this source tree. 83 */const A3=A.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:a,...l},u)=>A.createElement("svg",{ref:u,...C3,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:nk("lucide",i),...l},[...a.map(([h,f])=>A.createElement(h,f)),...Array.isArray(s)?s:[s]]));/** 84 * @license lucide-react v0.462.0 - ISC 85 * 86 * This source code is licensed under the ISC license. 87 * See the LICENSE file in the root directory of this source tree. 88 */const ht=(e,t)=>{const n=A.forwardRef(({className:r,...i},s)=>A.createElement(A3,{ref:s,iconNode:t,className:nk(`lucide-${k3(e)}`,r),...i}));return n.displayName=`${e}`,n};/** 89 * @license lucide-react v0.462.0 - ISC 90 * 91 * This source code is licensed under the ISC license. 92 * See the LICENSE file in the root directory of this source tree. 93 */const Af=ht("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 94 * @license lucide-react v0.462.0 - ISC 95 * 96 * This source code is licensed under the ISC license. 97 * See the LICENSE file in the root directory of this source tree. 98 */const N3=ht("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/** 99 * @license lucide-react v0.462.0 - ISC 100 * 101 * This source code is licensed under the ISC license. 102 * See the LICENSE file in the root directory of this source tree. 103 */const P3=ht("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/** 104 * @license lucide-react v0.462.0 - ISC 105 * 106 * This source code is licensed under the ISC license. 107 * See the LICENSE file in the root directory of this source tree. 108 */const I3=ht("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** 109 * @license lucide-react v0.462.0 - ISC 110 * 111 * This source code is licensed under the ISC license. 112 * See the LICENSE file in the root directory of this source tree. 113 */const Yy=ht("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 114 * @license lucide-react v0.462.0 - ISC 115 * 116 * This source code is licensed under the ISC license. 117 * See the LICENSE file in the root directory of this source tree. 118 */const rk=ht("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 119 * @license lucide-react v0.462.0 - ISC 120 * 121 * This source code is licensed under the ISC license. 122 * See the LICENSE file in the root directory of this source tree. 123 */const ik=ht("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 124 * @license lucide-react v0.462.0 - ISC 125 * 126 * This source code is licensed under the ISC license. 127 * See the LICENSE file in the root directory of this source tree. 128 */const Nf=ht("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 129 * @license lucide-react v0.462.0 - ISC 130 * 131 * This source code is licensed under the ISC license. 132 * See the LICENSE file in the root directory of this source tree.
133 */const O3=ht("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** 134 * @license lucide-react v0.462.0 - ISC 135 * 136 * This source code is licensed under the ISC license. 137 * See the LICENSE file in the root directory of this source tree. 138 */const L3=ht("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** 139 * @license lucide-react v0.462.0 - ISC 140 * 141 * This source code is licensed under the ISC license. 142 * See the LICENSE file in the root directory of this source tree. 143 */const R3=ht("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/** 144 * @license lucide-react v0.462.0 - ISC 145 * 146 * This source code is licensed under the ISC license. 147 * See the LICENSE file in the root directory of this source tree. 148 */const Qy=ht("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** 149 * @license lucide-react v0.462.0 - ISC 150 * 151 * This source code is licensed under the ISC license. 152 * See the LICENSE file in the root directory of this source tree. 153 */const j3=ht("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** 154 * @license lucide-react v0.462.0 - ISC 155 * 156 * This source code is licensed under the ISC license. 157 * See the LICENSE file in the root directory of this source tree. 158 */const sk=ht("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** 159 * @license lucide-react v0.462.0 - ISC 160 * 161 * This source code is licensed under the ISC license. 162 * See the LICENSE file in the root directory of this source tree. 163 */const D3=ht("Navigation",[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]]);/** 164 * @license lucide-react v0.462.0 - ISC 165 * 166 * This source code is licensed under the ISC license. 167 * See the LICENSE file in the root directory of this source tree. 168 */const M3=ht("Newspaper",[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]]);/** 169 * @license lucide-react v0.462.0 - ISC 170 * 171 * This source code is licensed under the ISC license. 172 * See the LICENSE file in the root directory of this source tree. 173 */const B3=ht("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/** 174 * @license lucide-react v0.462.0 - ISC 175 * 176 * This source code is licensed under the ISC license. 177 * See the LICENSE file in the root directory of this source tree. 178 */const ml=ht("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 179 * @license lucide-react v0.462.0 - ISC 180 * 181 * This source code is licensed under the ISC license. 182 * See the LICENSE file in the root directory of this source tree. 183 */const F3=ht("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 184 * @license lucide-react v0.462.0 - ISC 185 * 186 * This source code is licensed under the ISC license. 187 * See the LICENSE file in the root directory of this source tree. 188 */const ok=ht("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/** 189 * @license lucide-react v0.462.0 - ISC 190 * 191 * This source code is licensed under the ISC license. 192 * See the LICENSE file in the root directory of this source tree.
vendor: 8,771 bytes, lines 193-208
193 */const U3=ht("ThumbsDown",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]);/** 194 * @license lucide-react v0.462.0 - ISC 195 * 196 * This source code is licensed under the ISC license. 197 * See the LICENSE file in the root directory of this source tree. 198 */const H3=ht("ThumbsUp",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]);/** 199 * @license lucide-react v0.462.0 - ISC 200 * 201 * This source code is licensed under the ISC license. 202 * See the LICENSE file in the root directory of this source tree. 203 */const z3=ht("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/** 204 * @license lucide-react v0.462.0 - ISC 205 * 206 * This source code is licensed under the ISC license. 207 * See the LICENSE file in the root directory of this source tree. 208 */const Zy=ht("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Xy="-",$3=e=>{const t=W3(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const l=a.split(Xy);return l[0]===""&&l.length!==1&&l.shift(),ak(l,t)||q3(a)},getConflictingClassGroupIds:(a,l)=>{const u=n[a]||[];return l&&r[a]?[...u,...r[a]]:u}}},ak=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?ak(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(Xy);return(a=t.validators.find(({validator:l})=>l(s)))==null?void 0:a.classGroupId},_x=/^\[(.+)\]$/,q3=e=>{if(_x.test(e)){const t=_x.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},W3=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return K3(Object.entries(e.classGroups),n).forEach(([s,a])=>{r0(a,r,s,t)}),r},r0=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:vx(t,i);s.classGroupId=n;return}if(typeof i=="function"){if(V3(i)){r0(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,a])=>{r0(a,vx(t,s),n,r)})})},vx=(e,t)=>{let n=e;return t.split(Xy).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},V3=e=>e.isThemeGetter,K3=(e,t)=>t?e.map(([n,r])=>{const i=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([a,l])=>[t+a,l])):s);return[n,i]}):e,G3=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(s,a)=>{n.set(s,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return i(s,a),a},set(s,a){n.has(s)?n.set(s,a):i(s,a)}}},lk="!",Y3=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],s=t.length,a=l=>{const u=[];let h=0,f=0,m;for(let k=0;k<l.length;k++){let E=l[k];if(h===0){if(E===i&&(r||l.slice(k,k+s)===t)){u.push(l.slice(f,k)),f=k+s;continue}if(E==="/"){m=k;continue}}E==="["?h++:E==="]"&&h--}const y=u.length===0?l:l.substring(f),g=y.startsWith(lk),x=g?y.substring(1):y,v=m&&m>f?m-f:void 0;return{modifiers:u,hasImportantModifier:g,baseClassName:x,maybePostfixModifierPosition:v}};return n?l=>n({className:l,parseClassName:a}):a},Q3=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},Z3=e=>({cache:G3(e.cacheSize),parseClassName:Y3(e),...$3(e)}),X3=/\s+/,J3=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,s=[],a=e.trim().split(X3);let l="";for(let u=a.length-1;u>=0;u-=1){const h=a[u],{modifiers:f,hasImportantModifier:m,baseClassName:y,maybePostfixModifierPosition:g}=n(h);let x=!!g,v=r(x?y.substring(0,g):y);if(!v){if(!x){l=h+(l.length>0?" "+l:l);continue}if(v=r(y),!v){l=h+(l.length>0?" "+l:l);continue}x=!1}const k=Q3(f).join(":"),E=m?k+lk:k,S=E+v;if(s.includes(S))continue;s.push(S);const T=i(v,x);for(let P=0;P<T.length;++P){const F=T[P];s.push(E+F)}l=h+(l.length>0?" "+l:l)}return l};function ej(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=uk(t))&&(r&&(r+=" "),r+=n);return r}const uk=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=uk(e[r]))&&(n&&(n+=" "),n+=t);return n};function tj(e,...t){let n,r,i,s=a;function a(u){const h=t.reduce((f,m)=>m(f),e());return n=Z3(h),r=n.cache.get,i=n.cache.set,s=l,l(u)}function l(u){const h=r(u);if(h)return h;const f=J3(u,n);return i(u,f),f}return function(){return s(ej.apply(null,arguments))}}const ot=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},ck=/^\[(?:([a-z-]+):)?(.+)\]$/i,nj=/^\d+\/\d+$/,rj=new Set(["px","full","screen"]),ij=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,sj=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,oj=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,aj=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,lj=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Si=e=>qa(e)||rj.has(e)||nj.test(e),ss=e=>kl(e,"length",gj),qa=e=>!!e&&!Number.isNaN(Number(e)),um=e=>kl(e,"number",qa),iu=e=>!!e&&Number.isInteger(Number(e)),uj=e=>e.endsWith("%")&&qa(e.slice(0,-1)),Le=e=>ck.test(e),os=e=>ij.test(e),cj=new Set(["length","size","percentage"]),dj=e=>kl(e,cj,dk),hj=e=>kl(e,"position",dk),fj=new Set(["image","url"]),pj=e=>kl(e,fj,bj),mj=e=>kl(e,"",yj),su=()=>!0,kl=(e,t,n)=>{const r=ck.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},gj=e=>sj.test(e)&&!oj.test(e),dk=()=>!1,yj=e=>aj.test(e),bj=e=>lj.test(e),_j=()=>{const e=ot("colors"),t=ot("spacing"),n=ot("blur"),r=ot("brightness"),i=ot("borderColor"),s=ot("borderRadius"),a=ot("borderSpacing"),l=ot("borderWidth"),u=ot("contrast"),h=ot("grayscale"),f=ot("hueRotate"),m=ot("invert"),y=ot("gap"),g=ot("gradientColorStops"),x=ot("gradientColorStopPositions"),v=ot("inset"),k=ot("margin"),E=ot("opacity"),S=ot("padding"),T=ot("saturate"),P=ot("scale"),F=ot("sepia"),O=ot("skew"),H=ot("space"),K=ot("translate"),Q=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto",Le,t],W=()=>[Le,t],ce=()=>["",Si,ss],ee=()=>["auto",qa,Le],de=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],se=()=>["solid","dashed","dotted","double","none"],me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>["start","end","center","between","around","evenly","stretch"],J=()=>["","0",Le],N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],le=()=>[qa,Le];return{cacheSize:500,separator:":",theme:{colors:[su],spacing:[Si,ss],blur:["none","",os,Le],brightness:le(),borderColor:[e],borderRadius:["none","","full",os,Le],borderSpacing:W(),borderWidth:ce(),contrast:le(),grayscale:J(),hueRotate:le(),invert:J(),gap:W(),gradientColorStops:[e],gradientColorStopPositions:[uj,ss],inset:Z(),margin:Z(),opacity:le(),padding:W(),saturate:le(),scale:le(),sepia:J(),skew:le(),space:W(),translate:W()},classGroups:{aspect:[{aspect:["auto","square","video",Le]}],container:["container"],columns:[{columns:[os]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...de(),Le]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:Q()}],"overscroll-x":[{"overscroll-x":Q()}],"overscroll-y":[{"overscroll-y":Q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}
vendor: 9,961 bytes, line 208
208],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",iu,Le]}],basis:[{basis:Z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Le]}],grow:[{grow:J()}],shrink:[{shrink:J()}],order:[{order:["first","last","none",iu,Le]}],"grid-cols":[{"grid-cols":[su]}],"col-start-end":[{col:["auto",{span:["full",iu,Le]},Le]}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":[su]}],"row-start-end":[{row:["auto",{span:[iu,Le]},Le]}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Le]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Le]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...z(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[S]}],px:[{px:[S]}],py:[{py:[S]}],ps:[{ps:[S]}],pe:[{pe:[S]}],pt:[{pt:[S]}],pr:[{pr:[S]}],pb:[{pb:[S]}],pl:[{pl:[S]}],m:[{m:[k]}],mx:[{mx:[k]}],my:[{my:[k]}],ms:[{ms:[k]}],me:[{me:[k]}],mt:[{mt:[k]}],mr:[{mr:[k]}],mb:[{mb:[k]}],ml:[{ml:[k]}],"space-x":[{"space-x":[H]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[H]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Le,t]}],"min-w":[{"min-w":[Le,t,"min","max","fit"]}],"max-w":[{"max-w":[Le,t,"none","full","min","max","fit","prose",{screen:[os]},os]}],h:[{h:[Le,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Le,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Le,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Le,t,"auto","min","max","fit"]}],"font-size":[{text:["base",os,ss]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",um]}],"font-family":[{font:[su]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Le]}],"line-clamp":[{"line-clamp":["none",qa,um]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Si,Le]}],"list-image":[{"list-image":["none",Le]}],"list-style-type":[{list:["none","disc","decimal",Le]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[E]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[E]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Si,ss]}],"underline-offset":[{"underline-offset":["auto",Si,Le]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:W()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Le]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[E]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...de(),hj]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",dj]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},pj]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[E]}],"border-style":[{border:[...se(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[E]}],"divide-style":[{divide:se()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...se()]}],"outline-offset":[{"outline-offset":[Si,Le]}],"outline-w":[{outline:[Si,ss]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[Si,ss]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",os,mj]}],"shadow-color":[{shadow:[su]}],opacity:[{opacity:[E]}],"mix-blend":[{"mix-blend":[...me(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":me()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",os,Le]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[m]}],saturate:[{saturate:[T]}],sepia:[{sepia:[F]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[E]}],"backdrop-saturate":[{"backdrop-saturate":[T]}],"backdrop-sepia":[{"backdrop-sepia":[F]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Le]}],duration:[{duration:le()}],ease:[{ease:["linear","in","out","in-out",Le]}],delay:[{delay:le()}],animate:[{animate:["none","spin","ping","pulse","bounce",Le]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[P]}],"scale-x":[{"scale-x":[P]}],"scale-y":[{"scale-y":[P]}],rotate:[{rotate:[iu,Le]}],"translate-x":[{"translate-x":[K]}],"translate-y":[{"translate-y":[K]}],"skew-x":[{"skew-x":[O]}],"skew-y":[{"skew-y":[O]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Le]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Le]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":W()}],"scroll-mx":[{"scroll-mx":W()}],"scroll-my":[{"scroll-my":W()}],"scroll-ms":[{"scroll-ms":W()}],"scroll-me":[{"scroll-me":W()}],"scroll-mt":[{"scroll-mt":W()}],"scroll-mr":[{"scroll-mr":W()}],"scroll-mb":[{"scroll-mb":W()}],"scroll-ml":[{"scroll-ml":W()}],"scroll-p":[{"scroll-p":W()}],"scroll-px":[{"scroll-px":W()}],"scroll-py":[{"scroll-py":W()}],"scroll-ps":[{"scroll-ps":W()}],"scroll-pe":[{"scroll-pe":W()}],"scroll-pt":[{"scroll-pt":W()}],"scroll-pr":[{"scroll-pr":W()}],"scroll-pb":[{"scroll-pb":W()}],"scroll-pl":[{"scroll-pl":W()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
vendor: 4,647 bytes, line 208
208],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Le]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Si,ss,um]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},vj=tj(_j);function pi(...e){return vj(tk(e))}const xj=T3,hk=A.forwardRef(({className:e,...t},n)=>c.jsx(GS,{ref:n,className:pi("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));hk.displayName=GS.displayName;const Ej=S3("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),fk=A.forwardRef(({className:e,variant:t,...n},r)=>c.jsx(YS,{ref:r,className:pi(Ej({variant:t}),e),...n}));fk.displayName=YS.displayName;const wj=A.forwardRef(({className:e,...t},n)=>c.jsx(XS,{ref:n,className:pi("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));wj.displayName=XS.displayName;const pk=A.forwardRef(({className:e,...t},n)=>c.jsx(JS,{ref:n,className:pi("absolute right-2 top-2 rounded-md p-1 text-foreground
vendor: 11,628 bytes, line 208
208/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:c.jsx(Zy,{className:"h-4 w-4"})}));pk.displayName=JS.displayName;const mk=A.forwardRef(({className:e,...t},n)=>c.jsx(QS,{ref:n,className:pi("text-sm font-semibold",e),...t}));mk.displayName=QS.displayName;const gk=A.forwardRef(({className:e,...t},n)=>c.jsx(ZS,{ref:n,className:pi("text-sm opacity-90",e),...t}));gk.displayName=ZS.displayName;function Tj(){const{toasts:e}=RR();return c.jsxs(xj,{children:[e.map(function({id:t,title:n,description:r,action:i,...s}){return c.jsxs(fk,{...s,children:[c.jsxs("div",{className:"grid gap-1",children:[n&&c.jsx(mk,{children:n}),r&&c.jsx(gk,{children:r})]}),i,c.jsx(pk,{})]},t)}),c.jsx(hk,{})]})}var Sj=G0[" useId ".trim().toString()]||(()=>{}),kj=0;function yk(e){const[t,n]=A.useState(Sj());return di(()=>{n(r=>r??String(kj++))},[e]),t?`radix-${t}`:""}const Cj=["top","right","bottom","left"],Ws=Math.min,Hn=Math.max,qh=Math.round,Ld=Math.floor,ci=e=>({x:e,y:e}),Aj={left:"right",right:"left",bottom:"top",top:"bottom"},Nj={start:"end",end:"start"};function i0(e,t,n){return Hn(e,Ws(t,n))}function Ui(e,t){return typeof e=="function"?e(t):e}function Hi(e){return e.split("-")[0]}function Cl(e){return e.split("-")[1]}function Jy(e){return e==="x"?"y":"x"}function eb(e){return e==="y"?"height":"width"}const Pj=new Set(["top","bottom"]);function ai(e){return Pj.has(Hi(e))?"y":"x"}function tb(e){return Jy(ai(e))}function Ij(e,t,n){n===void 0&&(n=!1);const r=Cl(e),i=tb(e),s=eb(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Wh(a)),[a,Wh(a)]}function Oj(e){const t=Wh(e);return[s0(e),t,s0(t)]}function s0(e){return e.replace(/start|end/g,t=>Nj[t])}const xx=["left","right"],Ex=["right","left"],Lj=["top","bottom"],Rj=["bottom","top"];function jj(e,t,n){switch(e){case"top":case"bottom":return n?t?Ex:xx:t?xx:Ex;case"left":case"right":return t?Lj:Rj;default:return[]}}function Dj(e,t,n,r){const i=Cl(e);let s=jj(Hi(e),n==="start",r);return i&&(s=s.map(a=>a+"-"+i),t&&(s=s.concat(s.map(s0)))),s}function Wh(e){return e.replace(/left|right|bottom|top/g,t=>Aj[t])}function Mj(e){return{top:0,right:0,bottom:0,left:0,...e}}function bk(e){return typeof e!="number"?Mj(e):{top:e,right:e,bottom:e,left:e}}function Vh(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function wx(e,t,n){let{reference:r,floating:i}=e;const s=ai(t),a=tb(t),l=eb(a),u=Hi(t),h=s==="y",f=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,y=r[l]/2-i[l]/2;let g;switch(u){case"top":g={x:f,y:r.y-i.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:m};break;case"left":g={x:r.x-i.width,y:m};break;default:g={x:r.x,y:r.y}}switch(Cl(t)){case"start":g[a]-=y*(n&&h?-1:1);break;case"end":g[a]+=y*(n&&h?-1:1);break}return g}const Bj=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:a}=n,l=s.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(t));let h=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:m}=wx(h,r,u),y=r,g={},x=0;for(let v=0;v<l.length;v++){const{name:k,fn:E}=l[v],{x:S,y:T,data:P,reset:F}=await E({x:f,y:m,initialPlacement:r,placement:y,strategy:i,middlewareData:g,rects:h,platform:a,elements:{reference:e,floating:t}});f=S??f,m=T??m,g={...g,[k]:{...g[k],...P}},F&&x<=50&&(x++,typeof F=="object"&&(F.placement&&(y=F.placement),F.rects&&(h=F.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):F.rects),{x:f,y:m}=wx(h,y,u)),v=-1)}return{x:f,y:m,placement:y,strategy:i,middlewareData:g}};async function cc(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:a,elements:l,strategy:u}=e,{boundary:h="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:y=!1,padding:g=0}=Ui(t,e),x=bk(g),k=l[y?m==="floating"?"reference":"floating":m],E=Vh(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:h,rootBoundary:f,strategy:u})),S=m==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),P=await(s.isElement==null?void 0:s.isElement(T))?await(s.getScale==null?void 0:s.getScale(T))||{x:1,y:1}:{x:1,y:1},F=Vh(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:S,offsetParent:T,strategy:u}):S);return{top:(E.top-F.top+x.top)/P.y,bottom:(F.bottom-E.bottom+x.bottom)/P.y,left:(E.left-F.left+x.left)/P.x,right:(F.right-E.right+x.right)/P.x}}const Fj=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:s,platform:a,elements:l,middlewareData:u}=t,{element:h,padding:f=0}=Ui(e,t)||{};if(h==null)return{};const m=bk(f),y={x:n,y:r},g=tb(i),x=eb(g),v=await a.getDimensions(h),k=g==="y",E=k?"top":"left",S=k?"bottom":"right",T=k?"clientHeight":"clientWidth",P=s.reference[x]+s.reference[g]-y[g]-s.floating[x],F=y[g]-s.reference[g],O=await(a.getOffsetParent==null?void 0:a.getOffsetParent(h));let H=O?O[T]:0;(!H||!await(a.isElement==null?void 0:a.isElement(O)))&&(H=l.floating[T]||s.floating[x]);const K=P/2-F/2,Q=H/2-v[x]/2-1,M=Ws(m[E],Q),Z=Ws(m[S],Q),W=M,ce=H-v[x]-Z,ee=H/2-v[x]/2+K,de=i0(W,ee,ce),se=!u.arrow&&Cl(i)!=null&&ee!==de&&s.reference[x]/2-(ee<W?M:Z)-v[x]/2<0,me=se?ee<W?ee-W:ee-ce:0;return{[g]:y[g]+me,data:{[g]:de,centerOffset:ee-de-me,...se&&{alignmentOffset:me}},reset:se}}}),Uj=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:a,initialPlacement:l,platform:u,elements:h}=t,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:y,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:v=!0,...k}=Ui(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const E=Hi(i),S=ai(l),T=Hi(l)===l,P=await(u.isRTL==null?void 0:u.isRTL(h.floating)),F=y||(T||!v?[Wh(l)]:Oj(l)),O=x!=="none";!y&&O&&F.push(...Dj(l,v,x,P));const H=[l,...F],K=await cc(t,k),Q=[];let M=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&Q.push(K[E]),m){const ee=Ij(i,a,P);Q.push(K[ee[0]],K[ee[1]])}if(M=[...M,{placement:i,overflows:Q}],!Q.every(ee=>ee<=0)){var Z,W;const ee=(((Z=s.flip)==null?void 0:Z.index)||0)+1,de=H[ee];if(de&&(!(m==="alignment"?S!==ai(de):!1)||M.every(z=>z.overflows[0]>0&&ai(z.placement)===S)))return{data:{index:ee,overflows:M},reset:{placement:de}};let se=(W=M.filter(me=>me.overflows[0]<=0).sort((me,z)=>me.overflows[1]-z.overflows[1])[0])==null?void 0:W.placement;if(!se)switch(g){case"bestFit":{var ce;const me=(ce=M.filter(z=>{if(O){const J=ai(z.placement);return J===S||J==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(J=>J>0).reduce((J,N)=>J+N,0)]).sort((z,J)=>z[1]-J[1])[0])==null?void 0:ce[0];me&&(se=me);break}case"initialPlacement":se=l;break}if(i!==se)return{reset:{placement:se}}}return{}}}};function Tx(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Sx(e){return Cj.some(t=>e[t]>=0)}const Hj=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Ui(e,t);switch(r){case"referenceHidden":{const s=await cc(t,{...i,elementContext:"reference"}),a=Tx(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Sx(a)}}}case"escaped":{const s=await cc(t,{...i,altBoundary:!0}),a=Tx(s,n.floating);return{data:{escapedOffsets:a,escaped:Sx(a)}}}default:return{}}}}},_k=new Set(["left","top"]);async function zj(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Hi(n),l=Cl(n),u=ai(n)==="y",h=_k.has(a)?-1:1,f=s&&u?-1:1,m=Ui(t,e);let{mainAxis:y,crossAxis:g,alignmentAxis:x}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return l&&typeof x=="number"&&(g=l==="end"?x*-1:x),u?{x:g*f,y:y*h}:{x:y*h,y:g*f}}const $j=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:a,middlewareData:l}=t,u=await zj(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+u.x,y:s+u.y,data:{...u,placement:a}}}}},qj=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:k=>{let{x:E,y:S}=k;return{x:E,y:S}}},...u}=Ui(e,t),h={x:n,y:r},f=await cc(t,u),m=ai(Hi(i)),y=Jy(m);let g=h[y],x=h[m];if(s){const k=y==="y"?"top":"left",E=y==="y"?"bottom":"right",S=g+f[k],T=g-f[E];g=i0(S,g,T)}if(a){const k=m==="y"?"top":"left",E=m==="y"?"bottom":"right",S=x+f[k],T=x-f[E];x=i0(S,x,T)}const v=l.fn({...t,[y]:g,[m]:x});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[y]:s,[m]:a}}}}}},Wj=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:a}=t,{offset:l=0,mainAxis:u=!0,crossAxis:h=!0}=Ui(e,t),f={x:n,y:r},m=ai(i),y=Jy(m);let g=f[y],x=f[m];const v=Ui(l,t),k=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){const T=y==="y"?"height":"width",P=s.reference[y]-s.floating[T]+k.mainAxis,F=s.reference[y]+s.reference[T]-k.mainAxis;g<P?g=P:g>F&&(g=F)}if(h){var E,S;const T=y==="y"?"width":"height",P=_k.has(Hi(i)),F=s.reference[m]-s.floating[T]+(P&&((E=a.offset)==null?void 0:E[m])||0)+(P?0:k.crossAxis),O=s.reference[m]+s.reference[T]+(P?0:((S=a.offset)==null?void 0:S[m])||0)-(P?k.crossAxis:0);x<F?x=F:x>O&&(x=O)}return{[y]:g,[m]:x}}}},Vj=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:s,platform:a,elements:l}=t,{apply:u=()=>{},...h}=Ui(e,t),f=await cc(t,h),m=Hi(i),y=Cl(i),g=ai(i)==="y",{width:x,height:v}=s.floating;let k,E;m==="top"||m==="bottom"?(k=m,E=y===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(E=m,k=y==="end"?"top":"bottom");const S=v-f.top-f.bottom,T=x-f.left-f.right,P=Ws(v-f[k],S),F=Ws(x-f[E],T),O=!t.middlewareData.shift;let H=P,K=F;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(K=T),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(H=S),O&&!y){const M=Hn(f.left,0),Z=Hn(f.right,0),W=Hn(f.top,0),ce=Hn(f.bottom,0);g?K=x-2*(M!==0||Z!==0?M+Z:Hn(f.left,f.right)):H=v-2*(W!==0||ce!==0?W+ce:Hn(f.top,f.bottom))}await u({...t,availableWidth:K,availableHeight:H});const Q=await a.getDimensions(l.floating);return x!==Q.width||v!==Q.height?{reset:{rects:!0}}:{}}}};function Pf(){return typeof window<"u"}function Al(e){return vk(e)?(e.nodeName||"").toLowerCase():"#document"}function Wn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function mi(e){var t;return(t=(vk(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function vk(e){return Pf()?e instanceof Node||e instanceof Wn(e).Node:!1}function jr(e){return Pf()?e instanceof Element||e instanceof Wn(e).Element:!1}function hi(e){return Pf()?e instanceof HTMLElement||e instanceof Wn(e).HTMLElement:!1}function kx(e){return!Pf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Wn(e).ShadowRoot}const Kj=new Set(["inline","contents"]);function jc(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Dr(e);
vendor: 4,121 bytes, line 208
208return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Kj.has(i)}const Gj=new Set(["table","td","th"]);function Yj(e){return Gj.has(Al(e))}const Qj=[":popover-open",":modal"];function If(e){return Qj.some(t=>{try{return e.matches(t)}catch{return!1}})}const Zj=["transform","translate","scale","rotate","perspective"],Xj=["transform","translate","scale","rotate","perspective","filter"],Jj=["paint","layout","strict","content"];function nb(e){const t=rb(),n=jr(e)?Dr(e):e;return Zj.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Xj.some(r=>(n.willChange||"").includes(r))||Jj.some(r=>(n.contain||"").includes(r))}function eD(e){let t=Vs(e);for(;hi(t)&&!gl(t);){if(nb(t))return t;if(If(t))return null;t=Vs(t)}return null}function rb(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const tD=new Set(["html","body","#document"]);function gl(e){return tD.has(Al(e))}function Dr(e){return Wn(e).getComputedStyle(e)}function Of(e){return jr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Vs(e){if(Al(e)==="html")return e;const t=e.assignedSlot||e.parentNode||kx(e)&&e.host||mi(e);return kx(t)?t.host:t}function xk(e){const t=Vs(e);return gl(t)?e.ownerDocument?e.ownerDocument.body:e.body:hi(t)&&jc(t)?t:xk(t)}function dc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=xk(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),a=Wn(i);if(s){const l=o0(a);return t.concat(a,a.visualViewport||[],jc(i)?i:[],l&&n?dc(l):[])}return t.concat(i,dc(i,[],n))}function o0(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ek(e){const t=Dr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=hi(e),s=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=qh(n)!==s||qh(r)!==a;return l&&(n=s,r=a),{width:n,height:r,$:l}}function ib(e){return jr(e)?e:e.contextElement}function Wa(e){const t=ib(e);if(!hi(t))return ci(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=Ek(t);let a=(s?qh(n.width):n.width)/r,l=(s?qh(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const nD=ci(0);function wk(e){const t=Wn(e);return!rb()||!t.visualViewport?nD:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rD(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Wn(e)?!1:t}function $o(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=ib(e);let a=ci(1);t&&(r?jr(r)&&(a=Wa(r)):a=Wa(e));const l=rD(s,n,r)?wk(s):ci(0);let u=(i.left+l.x)/a.x,h=(i.top+l.y)/a.y,f=i.width/a.x,m=i.height/a.y;if(s){const y=Wn(s),g=r&&jr(r)?Wn(r):r;let x=y,v=o0(x);for(;v&&r&&g!==x;){const k=Wa(v),E=v.getBoundingClientRect(),S=Dr(v),T=E.left+(v.clientLeft+parseFloat(S.paddingLeft))*k.x,P=E.top+(v.clientTop+parseFloat(S.paddingTop))*k.y;u*=k.x,h*=k.y,f*=k.x,m*=k.y,u+=T,h+=P,x=Wn(v),v=o0(x)}}return Vh({width:f,height:m,x:u,y:h})}function sb(e,t){const n=Of(e).scrollLeft;return t?t.left+n:$o(mi(e)).left+n}function Tk(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:sb(e,r)),s=r.top+t.scrollTop;return{x:i,y:s}}function iD(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",a=mi(r),l=t?If(t.floating):!1;if(r===a||l&&s)return n;let u={scrollLeft:0,scrollTop:0},h=ci(1);const f=ci(0),m=hi(r);if((m||!m&&!s)&&((Al(r)!=="body"||jc(a))&&(u=Of(r)),hi(r))){const g=$o(r);h=Wa(r),f.x=g.x+r.clientLeft,f.y=g.y+r.clientTop}const y=a&&!m&&!s?Tk(a,u,!0):ci(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-u.scrollLeft*h.x+f.x+y.x,y:n.y*h.y-u.scrollTop*h.y+f.y+y.y}}function sD(e){return Array.from(e.getClientRects())}function oD(e){const t=mi(e),n=Of(e),r=e.ownerDocument.body,i=Hn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Hn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+sb(e);const l=-n.scrollTop;return Dr(r).direction==="rtl"&&(a+=Hn(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:a,y:l}}
vendor: 6,613 bytes, line 208
208function aD(e,t){const n=Wn(e),r=mi(e),i=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,l=0,u=0;if(i){s=i.width,a=i.height;const h=rb();(!h||h&&t==="fixed")&&(l=i.offsetLeft,u=i.offsetTop)}return{width:s,height:a,x:l,y:u}}const lD=new Set(["absolute","fixed"]);function uD(e,t){const n=$o(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=hi(e)?Wa(e):ci(1),a=e.clientWidth*s.x,l=e.clientHeight*s.y,u=i*s.x,h=r*s.y;return{width:a,height:l,x:u,y:h}}function Cx(e,t,n){let r;if(t==="viewport")r=aD(e,n);else if(t==="document")r=oD(mi(e));else if(jr(t))r=uD(t,n);else{const i=wk(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Vh(r)}function Sk(e,t){const n=Vs(e);return n===t||!jr(n)||gl(n)?!1:Dr(n).position==="fixed"||Sk(n,t)}function cD(e,t){const n=t.get(e);if(n)return n;let r=dc(e,[],!1).filter(l=>jr(l)&&Al(l)!=="body"),i=null;const s=Dr(e).position==="fixed";let a=s?Vs(e):e;for(;jr(a)&&!gl(a);){const l=Dr(a),u=nb(a);!u&&l.position==="fixed"&&(i=null),(s?!u&&!i:!u&&l.position==="static"&&!!i&&lD.has(i.position)||jc(a)&&!u&&Sk(e,a))?r=r.filter(f=>f!==a):i=l,a=Vs(a)}return t.set(e,r),r}function dD(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?If(t)?[]:cD(t,this._c):[].concat(n),r],l=a[0],u=a.reduce((h,f)=>{const m=Cx(t,f,i);return h.top=Hn(m.top,h.top),h.right=Ws(m.right,h.right),h.bottom=Ws(m.bottom,h.bottom),h.left=Hn(m.left,h.left),h},Cx(t,l,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function hD(e){const{width:t,height:n}=Ek(e);return{width:t,height:n}}function fD(e,t,n){const r=hi(t),i=mi(t),s=n==="fixed",a=$o(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const u=ci(0);function h(){u.x=sb(i)}if(r||!r&&!s)if((Al(t)!=="body"||jc(i))&&(l=Of(t)),r){const g=$o(t,!0,s,t);u.x=g.x+t.clientLeft,u.y=g.y+t.clientTop}else i&&h();s&&!r&&i&&h();const f=i&&!r&&!s?Tk(i,l):ci(0),m=a.left+l.scrollLeft-u.x-f.x,y=a.top+l.scrollTop-u.y-f.y;return{x:m,y,width:a.width,height:a.height}}function cm(e){return Dr(e).position==="static"}function Ax(e,t){if(!hi(e)||Dr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return mi(e)===n&&(n=n.ownerDocument.body),n}function kk(e,t){const n=Wn(e);if(If(e))return n;if(!hi(e)){let i=Vs(e);for(;i&&!gl(i);){if(jr(i)&&!cm(i))return i;i=Vs(i)}return n}let r=Ax(e,t);for(;r&&Yj(r)&&cm(r);)r=Ax(r,t);return r&&gl(r)&&cm(r)&&!nb(r)?n:r||eD(e)||n}const pD=async function(e){const t=this.getOffsetParent||kk,n=this.getDimensions,r=await n(e.floating);return{reference:fD(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function mD(e){return Dr(e).direction==="rtl"}const gD={convertOffsetParentRelativeRectToViewportRelativeRect:iD,getDocumentElement:mi,getClippingRect:dD,getOffsetParent:kk,getElementRects:pD,getClientRects:sD,getDimensions:hD,getScale:Wa,isElement:jr,isRTL:mD};function Ck(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function yD(e,t){let n=null,r;const i=mi(e);function s(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,u){l===void 0&&(l=!1),u===void 0&&(u=1),s();const h=e.getBoundingClientRect(),{left:f,top:m,width:y,height:g}=h;if(l||t(),!y||!g)return;const x=Ld(m),v=Ld(i.clientWidth-(f+y)),k=Ld(i.clientHeight-(m+g)),E=Ld(f),T={rootMargin:-x+"px "+-v+"px "+-k+"px "+-E+"px",threshold:Hn(0,Ws(1,u))||1};let P=!0;function F(O){const H=O[0].intersectionRatio;if(H!==u){if(!P)return a();H?a(!1,H):r=setTimeout(()=>{a(!1,1e-7)},1e3)}H===1&&!Ck(h,e.getBoundingClientRect())&&a(),P=!1}try{n=new IntersectionObserver(F,{...T,root:i.ownerDocument})}catch{n=new IntersectionObserver(F,T)}n.observe(e)}return a(!0),s}function bD(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,h=ib(e),f=i||s?[...h?dc(h):[],...dc(t)]:[];f.forEach(E=>{i&&E.addEventListener("scroll",n,{passive:!0}),s&&E.addEventListener("resize",n)});const m=h&&l?yD(h,n):null;let y=-1,g=null;a&&(g=new ResizeObserver(E=>{let[S]=E;S&&S.target===h&&g&&(g.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var T;(T=g)==null||T.observe(t)})),n()}),h&&!u&&g.observe(h),g.observe(t));let x,v=u?$o(e):null;u&&k();function k(){const E=$o(e);v&&!Ck(v,E)&&n(),v=E,x=requestAnimationFrame(k)}return n(),()=>{var E;f.forEach(S=>{i&&S.removeEventListener("scroll",n),s&&S.removeEventListener("resize",n)}),m==null||m(),(E=g)==null||E.disconnect(),g=null,u&&cancelAnimationFrame(x)}}const _D=$j,vD=qj,xD=Uj,ED=Vj,wD=Hj,Nx=Fj,TD=Wj,SD=(e,t,n)=>{const r=new Map,i={platform:gD,...n},s={...i.platform,_c:r};return Bj(e,t,{...i,platform:s})};var kD=typeof document<"u",CD=function(){},lh=kD?A.useLayoutEffect:CD;function Kh(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Kh(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const s=i[r];if(!(s==="_owner"&&e.$$typeof)&&!Kh(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Ak(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Px(e,t){const n=Ak(e);return Math.round(t*n)/n}function dm(e){const t=A.useRef(e);return lh(()=>{t.current=e}),t}function AD(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:a}={},transform:l=!0,whileElementsMounted:u,open:h}=e,[f,m]=A.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[y,g]=A.useState(r);Kh(y,r)||g(r);const[x,v]=A.useState(null),[k,E]=A.useState(null),S=A.useCallback(z=>{z!==O.current&&(O.current=z,v(z))},[]),T=A.useCallback(z=>{z!==H.current&&(H.current=z,E(z))},[]),P=s||x,F=a||k,O=A.useRef(null),H=A.useRef(null),K=A.useRef(f),Q=u!=null,M=dm(u),Z=dm(i),W=dm(h),ce=A.useCallback(()=>{if(!O.current||!H.current)return;const z={placement:t,strategy:n,middleware:y};Z.current&&(z.platform=Z.current),SD(O.current,H.current,z).then(J=>{const N={...J,isPositioned:W.current!==!1};ee.current&&!Kh(K.current,N)&&(K.current=N,wl.flushSync(()=>{m(N)}))})},[y,t,n,Z,W]);lh(()=>{h===!1&&K.current.isPositioned&&(K.current.isPositioned=!1,m(z=>({...z,isPositioned:!1})))},[h]);const ee=A.useRef(!1);lh(()=>(ee.current=!0,()=>{ee.current=!1}),[]),lh(()=>
vendor: 1,492 bytes, line 208
208{if(P&&(O.current=P),F&&(H.current=F),P&&F){if(M.current)return M.current(P,F,ce);ce()}},[P,F,ce,M,Q]);const de=A.useMemo(()=>({reference:O,floating:H,setReference:S,setFloating:T}),[S,T]),se=A.useMemo(()=>({reference:P,floating:F}),[P,F]),me=A.useMemo(()=>{const z={position:n,left:0,top:0};if(!se.floating)return z;const J=Px(se.floating,f.x),N=Px(se.floating,f.y);return l?{...z,transform:"translate("+J+"px, "+N+"px)",...Ak(se.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:J,top:N}},[n,l,se.floating,f.x,f.y]);return A.useMemo(()=>({...f,update:ce,refs:de,elements:se,floatingStyles:me}),[f,ce,de,se,me])}const ND=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Nx({element:r.current,padding:i}).fn(n):{}:r?Nx({element:r,padding:i}).fn(n):{}}}},PD=(e,t)=>({..._D(e),options:[e,t]}),ID=(e,t)=>({...vD(e),options:[e,t]}),OD=(e,t)=>({...TD(e),options:[e,t]}),LD=(e,t)=>({...xD(e),options:[e,t]}),RD=(e,t)=>({...ED(e),options:[e,t]}),jD=(e,t)=>({...wD(e),options:[e,t]}),DD=(e,t)=>({...ND(e),options:[e,t]});var MD="Arrow",Nk=A.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...s}=e;return c.jsx(jt.svg,{...s,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});Nk.displayName=MD;var BD=Nk;function FD(e){const[t,n]=A.useState(void 0);return di(()=>
vendor: 5,089 bytes, line 208
208{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let a,l;if("borderBoxSize"in s){const u=s.borderBoxSize,h=Array.isArray(u)?u[0]:u;a=h.inlineSize,l=h.blockSize}else a=e.offsetWidth,l=e.offsetHeight;n({width:a,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Pk="Popper",[Ik,Ok]=Sl(Pk),[gK,Lk]=Ik(Pk),Rk="PopperAnchor",jk=A.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,s=Lk(Rk,n),a=A.useRef(null),l=Gn(t,a);return A.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:c.jsx(jt.div,{...i,ref:l})});jk.displayName=Rk;var ob="PopperContent",[UD,HD]=Ik(ob),Dk=A.forwardRef((e,t)=>{var Ne,ut,Dt,Mt,$t,bn;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:s="center",alignOffset:a=0,arrowPadding:l=0,avoidCollisions:u=!0,collisionBoundary:h=[],collisionPadding:f=0,sticky:m="partial",hideWhenDetached:y=!1,updatePositionStrategy:g="optimized",onPlaced:x,...v}=e,k=Lk(ob,n),[E,S]=A.useState(null),T=Gn(t,_n=>S(_n)),[P,F]=A.useState(null),O=FD(P),H=(O==null?void 0:O.width)??0,K=(O==null?void 0:O.height)??0,Q=r+(s!=="center"?"-"+s:""),M=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},Z=Array.isArray(h)?h:[h],W=Z.length>0,ce={padding:M,boundary:Z.filter($D),altBoundary:W},{refs:ee,floatingStyles:de,placement:se,isPositioned:me,middlewareData:z}=AD({strategy:"fixed",placement:Q,whileElementsMounted:(..._n)=>bD(..._n,{animationFrame:g==="always"}),elements:{reference:k.anchor},middleware:[PD({mainAxis:i+K,alignmentAxis:a}),u&&ID({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?OD():void 0,...ce}),u&&LD({...ce}),RD({...ce,apply:({elements:_n,rects:es,availableWidth:bi,availableHeight:Ur})=>{const{width:Hr,height:Zn}=es.reference,mr=_n.floating.style;mr.setProperty("--radix-popper-available-width",`${bi}px`),mr.setProperty("--radix-popper-available-height",`${Ur}px`),mr.setProperty("--radix-popper-anchor-width",`${Hr}px`),mr.setProperty("--radix-popper-anchor-height",`${Zn}px`)}}),P&&DD({element:P,padding:l}),qD({arrowWidth:H,arrowHeight:K}),y&&jD({strategy:"referenceHidden",...ce})]}),[J,N]=Fk(se),le=qs(x);di(()=>{me&&(le==null||le())},[me,le]);const ue=(Ne=z.arrow)==null?void 0:Ne.x,j=(ut=z.arrow)==null?void 0:ut.y,fe=((Dt=z.arrow)==null?void 0:Dt.centerOffset)!==0,[ve,pe]=A.useState();return di(()=>{E&&pe(window.getComputedStyle(E).zIndex)},[E]),c.jsx("div",{ref:ee.setFloating,"data-radix-popper-content-wrapper":"",style:{...de,transform:me?de.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ve,"--radix-popper-transform-origin":[(Mt=z.transformOrigin)==null?void 0:Mt.x,($t=z.transformOrigin)==null?void 0:$t.y].join(" "),...((bn=z.hide)==null?void 0:bn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(UD,{scope:n,placedSide:J,onArrowChange:F,arrowX:ue,arrowY:j,shouldHideArrow:fe,children:c.jsx(jt.div,{"data-side":J,"data-align":N,...v,ref:T,style:{...v.style,animation:me?void 0:"none"}})})})});Dk.displayName=ob;var Mk="PopperArrow",zD={top:"bottom",right:"left",bottom:"top",left:"right"},Bk=A.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,s=HD(Mk,r),a=zD[s.placedSide];return c.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:c.jsx(BD,{...i,ref:n,style:{...i.style,display:"block"}})})});Bk.displayName=Mk;function $D(e){return e!==null}var qD=e=>({name:"transformOrigin",options:e,fn(t){var k,E,S;const{placement:n,rects:r,middlewareData:i}=t,a=((k=i.arrow)==null?void 0:k.centerOffset)!==0,l=a?0:e.arrowWidth,u=a?0:e.arrowHeight,[h,f]=Fk(n),m={start:"0%",center:"50%",end:"100%"}[f],y=(((E=i.arrow)==null?void 0:E.x)??0)+l/2,g=(((S=i.arrow)==null?void 0:S.y)??0)+u/2;let x="",v="";return h==="bottom"?(x=a?m:`${y}px`,v=`${-u}px`):h==="top"?(x=a?m:`${y}px`,v=`${r.floating.height+u}px`):h==="right"?(x=`${-u}px`,v=a?m:`${g}px`):h==="left"&&(x=`${r.floating.width+u}px`,v=a?m:`${g}px`),{data:{x,y:v}}}});function Fk(e){const[t,n="center"]=e.split("-");return[t,n]}var WD=jk,VD=Dk,KD=Bk,[Lf,yK]=Sl("Tooltip",[Ok]),ab=Ok(),Uk="TooltipProvider",GD=700,Ix="tooltip.open",[YD,Hk]=Lf(Uk),zk=e=>{const{__scopeTooltip:t,delayDuration:n=GD,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:s}=e,a=A.useRef(!0),l=A.useRef(!1),u=A.useRef(0);return A.useEffect(()=>{const h=u.current;return()=>window.clearTimeout(h)},[]),c.jsx(YD,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:A.useCallback(()=>{window.clearTimeout(u.current),a.current=!1},[]),onClose:A.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:A.useCallback(h=>{l.current=h}
vendor: 5,737 bytes, line 208
208,[]),disableHoverableContent:i,children:s})};zk.displayName=Uk;var $k="Tooltip",[bK,Rf]=Lf($k),a0="TooltipTrigger",QD=A.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Rf(a0,n),s=Hk(a0,n),a=ab(n),l=A.useRef(null),u=Gn(t,l,i.onTriggerChange),h=A.useRef(!1),f=A.useRef(!1),m=A.useCallback(()=>h.current=!1,[]);return A.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),c.jsx(WD,{asChild:!0,...a,children:c.jsx(jt.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:u,onPointerMove:wt(e.onPointerMove,y=>{y.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),f.current=!0)}),onPointerLeave:wt(e.onPointerLeave,()=>{i.onTriggerLeave(),f.current=!1}),onPointerDown:wt(e.onPointerDown,()=>{i.open&&i.onClose(),h.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:wt(e.onFocus,()=>{h.current||i.onOpen()}),onBlur:wt(e.onBlur,i.onClose),onClick:wt(e.onClick,i.onClose)})})});QD.displayName=a0;var ZD="TooltipPortal",[_K,XD]=Lf(ZD,{forceMount:void 0}),yl="TooltipContent",qk=A.forwardRef((e,t)=>{const n=XD(yl,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...s}=e,a=Rf(yl,e.__scopeTooltip);return c.jsx(Tf,{present:r||a.open,children:a.disableHoverableContent?c.jsx(Wk,{side:i,...s,ref:t}):c.jsx(JD,{side:i,...s,ref:t})})}),JD=A.forwardRef((e,t)=>{const n=Rf(yl,e.__scopeTooltip),r=Hk(yl,e.__scopeTooltip),i=A.useRef(null),s=Gn(t,i),[a,l]=A.useState(null),{trigger:u,onClose:h}=n,f=i.current,{onPointerInTransitChange:m}=r,y=A.useCallback(()=>{l(null),m(!1)},[m]),g=A.useCallback((x,v)=>{const k=x.currentTarget,E={x:x.clientX,y:x.clientY},S=i6(E,k.getBoundingClientRect()),T=s6(E,S),P=o6(v.getBoundingClientRect()),F=l6([...T,...P]);l(F),m(!0)},[m]);return A.useEffect(()=>()=>y(),[y]),A.useEffect(()=>{if(u&&f){const x=k=>g(k,f),v=k=>g(k,u);return u.addEventListener("pointerleave",x),f.addEventListener("pointerleave",v),()=>{u.removeEventListener("pointerleave",x),f.removeEventListener("pointerleave",v)}}},[u,f,g,y]),A.useEffect(()=>{if(a){const x=v=>{const k=v.target,E={x:v.clientX,y:v.clientY},S=(u==null?void 0:u.contains(k))||(f==null?void 0:f.contains(k)),T=!a6(E,a);S?y():T&&(y(),h())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[u,f,a,h,y]),c.jsx(Wk,{...e,ref:s})}),[e6,t6]=Lf($k,{isInside:!1}),n6=MR("TooltipContent"),Wk=A.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:a,...l}=e,u=Rf(yl,n),h=ab(n),{onClose:f}=u;return A.useEffect(()=>(document.addEventListener(Ix,f),()=>document.removeEventListener(Ix,f)),[f]),A.useEffect(()=>{if(u.trigger){const m=y=>{const g=y.target;g!=null&&g.contains(u.trigger)&&f()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[u.trigger,f]),c.jsx(Wy,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:m=>m.preventDefault(),onDismiss:f,children:c.jsxs(VD,{"data-state":u.stateAttribute,...h,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(n6,{children:r}),c.jsx(e6,{scope:n,isInside:!0,children:c.jsx(o3,{id:u.contentId,role:"tooltip",children:i||r})})]})})});qk.displayName=yl;var Vk="TooltipArrow",r6=A.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=ab(n);return t6(Vk,n).isInside?null:c.jsx(KD,{...i,...r,ref:t})});r6.displayName=Vk;function i6(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,i,s)){case s:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function s6(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function o6(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function a6(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const l=t[s],u=t[a],h=l.x,f=l.y,m=u.x,y=u.y;f>r!=y>r&&n<(m-h)*(r-f)/(y-f)+h&&(i=!i)}return i}function l6(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),u6(t)}function u6(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(i.y-a.y)>=(s.y-a.y)*(i.x-a.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(i.y-a.y)>=(s.y-a.y)*(i.x-a.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var c6=zk,Kk=qk;const d6=c6,h6=A.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(Kk,{ref:r,sideOffset:t,className:pi("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
208de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));h6.displayName=Kk.displayName;var f6=typeof Element<"u",p6=typeof Map=="function",m6=typeof Set=="function",g6=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function uh(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!uh(e[r],t[r]))return!1;return!0}var s;if(p6&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;for(s=e.entries();!(r=s.next()).done;)if(!uh(r.value[1],t.get(r.value[0])))return!1;return!0}if(m6&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(g6&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(f6&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!uh(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var y6=function(t,n){try{return uh(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const b6=Ks(y6);var _6=function(e,t,n,r,i,s,a,l){if(!e){var u;if(t===void 0)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var h=[n,r,i,s,a,l],f=0;u=new Error(t.replace(/%s/g,function(){return h[f++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}},v6=_6;const Ox=Ks(v6);var x6=function(t,n,r,i){var s=r?r.call(i,t,n):void 0;if(s!==void 0)return!!s;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var a=Object.keys(t),l=Object.keys(n);if(a.length!==l.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(n),h=0;h<a.length;h++){var f=a[h];if(!u(f))return!1;var m=t[f],y=n[f];if(s=r?r.call(i,m,y,f):void 0,s===!1||s===void 0&&m!==y)return!1}return!0};const E6=Ks(x6);var Gk=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(Gk||{}),hm={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},Lx=Object.values(Gk),jf={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Yk=Object.entries(jf).reduce((e,[t,n])=>(e[n]=t,e),{}),Pr="data-rh",Va={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Ka=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},w6=e=>{let t=Ka(e,"title");const n=Ka(e,Va.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=Ka(e,Va.DEFAULT_TITLE);return t||r||void 0},T6=e=>Ka(e,Va.ON_CHANGE_CLIENT_STATE)||(()=>{}),fm=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),S6=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const i=Object.keys(r);for(let s=0;s<i.length;s+=1){const l=i[s].toLowerCase();if(e.indexOf(l)!==-1&&r[l])return n.concat(r)}}return n},[]),k6=e=>console&&typeof console.warn=="function"&&console.warn(e),ou=(e,t,n)=>{const r={};return n.filter(i=>Array.isArray(i[e])?!0:(typeof i[e]<"u"&&k6(`Helmet: ${e} should be of type "Array". Instead found type "${typeof i[e]}"`),!1)).map(i=>i[e]).reverse().reduce((i,s)=>{const a={};s.filter(u=>{let h;const f=Object.keys(u);for(let y=0;y<f.length;y+=1){const g=f[y],x=g.toLowerCase();
208t.indexOf(x)!==-1&&!(h==="rel"&&u[h].toLowerCase()==="canonical")&&!(x==="rel"&&u[x].toLowerCase()==="stylesheet")&&(h=x),t.indexOf(g)!==-1&&(g==="innerHTML"||g==="cssText"||g==="itemprop")&&(h=g)}if(!h||!u[h])return!1;const m=u[h].toLowerCase();return r[h]||(r[h]={}),a[h]||(a[h]={}),r[h][m]?!1:(a[h][m]=!0,!0)}).reverse().forEach(u=>i.push(u));const l=Object.keys(a);for(let u=0;u<l.length;u+=1){const h=l[u],f={...r[h],...a[h]};r[h]=f}return i},[]).reverse()},C6=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},A6=e=>({baseTag:S6(["href"],e),bodyAttributes:fm("bodyAttributes",e),defer:Ka(e,Va.DEFER),encode:Ka(e,Va.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:fm("htmlAttributes",e),linkTags:ou("link",["rel","href"],e),metaTags:ou("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:ou("noscript",["innerHTML"],e),onChangeClientState:T6(e),scriptTags:ou("script",["src","innerHTML"],e),styleTags:ou("style",["cssText"],e),title:w6(e),titleAttributes:fm("titleAttributes",e),prioritizeSeoTags:C6(e,Va.PRIORITIZE_SEO_TAGS)}),Qk=e=>Array.isArray(e)?e.join(""):e,N6=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},pm=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(N6(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},Rx=(e,t)=>({...e,[t]:void 0}),P6=["noscript","script","style"],l0=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),Zk=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),I6=(e,t,n,r)=>{const i=Zk(n),s=Qk(t);return i?`<${e} ${Pr}="true" ${i}>${l0(s,r)}</${e}>`:`<${e} ${Pr}="true">${l0(s,r)}</${e}>`},O6=(e,t,n=!0)=>t.reduce((r,i)=>{const s=i,a=Object.keys(s).filter(h=>!(h==="innerHTML"||h==="cssText")).reduce((h,f)=>{const m=typeof s[f]>"u"?f:`${f}="${l0(s[f],n)}"`;return h?`${h} ${m}`:m},""),l=s.innerHTML||s.cssText||"",u=P6.indexOf(e)===-1;return`${r}<${e} ${Pr}="true" ${a}${u?"/>":`>${l}</${e}>`}`},""),Xk=(e,t={})=>Object.keys(e).reduce((n,r)=>{const i=jf[r];return n[i||r]=e[r],n},t),L6=(e,t,n)=>{const r={key:t,[Pr]:!0},i=Xk(n,r);return[X.createElement("title",i,t)]},ch=(e,t)=>t.map((n,r)=>{const i={key:r,[Pr]:!0};return Object.keys(n).forEach(s=>{const l=jf[s]||s;if(l==="innerHTML"||l==="cssText"){const u=n.innerHTML||n.cssText;i.dangerouslySetInnerHTML={__html:u}}else i[l]=n[s]}),X.createElement(e,i)}),rr=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>L6(e,t.title,t.titleAttributes),toString:()=>I6(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Xk(t),toString:()=>Zk(t)};default:return{toComponent:()=>ch(e,t),toString:()=>O6(e,t,n)}}},R6=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const i=pm(e,hm.meta),s=pm(t,hm.link),a=pm(n,hm.script);return{priorityMethods:{toComponent:()=>[...ch("meta",i.priority),...ch("link",s.priority),...ch("script",a.priority)],toString:()=>`${rr("meta",i.priority,r)} ${rr("link",s.priority,r)} ${rr("script",a.priority,r)}`},metaTags:i.default,linkTags:s.default,scriptTags:a.default}},j6=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:s,styleTags:a,title:l="",titleAttributes:u,prioritizeSeoTags:h}=e;let{linkTags:f,metaTags:m,scriptTags:y}=e,g={toComponent:()=>[],toString:()=>""};return h&&({priorityMethods:g,linkTags:f,metaTags:m,scriptTags:y}=R6(e)),{priority:g,base:rr("base",t,r),bodyAttributes:rr("bodyAttributes",n,r),htmlAttributes:rr("htmlAttributes",i,r),link:rr("link",f,r),meta:rr("meta",m,r),noscript:rr("noscript",s,r),script:rr("script",y,r),style:rr("style",a,r),title:rr("title",{title:l,titleAttributes:u},r)}},u0=j6,Rd=[],lb=!!(typeof window<"u"&&window.document&&window.document.createElement),c0=class{constructor(e,t){Ti(this,"instances",[]);Ti(this,"canUseDOM",lb);Ti(this,"context");Ti(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Rd:this.instances,add:e=>{(this.canUseDOM?Rd:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Rd:this.instances).indexOf(e);(this.canUseDOM?Rd:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=u0({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},D6=parseInt(X.version.split(".")[0],10),d0=D6>=19,M6={},Jk=X.createContext(M6),Lo,eC=(Lo=class extends A.Component{constructor(n){super(n);Ti(this,"helmetData");d0?this.helmetData=null:this.helmetData=new c0(this.props.context||{},Lo.canUseDOM)}render(){return d0?X.createElement(X.Fragment,null,this.props.children):X.createElement(Jk.Provider,{value:this.helmetData.value},this.props.children)}},Ti(Lo,"canUseDOM",lb),Lo),ua=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${Pr}]`),i=[].slice.call(r),s=[];let a;return t&&t.length&&t.forEach(l=>{const u=document.createElement(e);for(const h in l)if(Object.prototype.hasOwnProperty.call(l,h))if(h==="innerHTML")u.innerHTML=l.innerHTML;else if(h==="cssText"){const f=l.cssText;u.appendChild(document.createTextNode(f))}else{const f=h,m=typeof l[f]>"u"?"":l[f];u.setAttribute(h,m)}
208u.setAttribute(Pr,"true"),i.some((h,f)=>(a=f,u.isEqualNode(h)))?i.splice(a,1):s.push(u)}),i.forEach(l=>{var u;return(u=l.parentNode)==null?void 0:u.removeChild(l)}),s.forEach(l=>n.appendChild(l)),{oldTags:i,newTags:s}},h0=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(Pr),i=r?r.split(","):[],s=[...i],a=Object.keys(t);for(const l of a){const u=t[l]||"";n.getAttribute(l)!==u&&n.setAttribute(l,u),i.indexOf(l)===-1&&i.push(l);const h=s.indexOf(l);h!==-1&&s.splice(h,1)}for(let l=s.length-1;l>=0;l-=1)n.removeAttribute(s[l]);i.length===s.length?n.removeAttribute(Pr):n.getAttribute(Pr)!==a.join(",")&&n.setAttribute(Pr,a.join(","))},B6=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=Qk(e)),h0("title",t)},jx=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:s,metaTags:a,noscriptTags:l,onChangeClientState:u,scriptTags:h,styleTags:f,title:m,titleAttributes:y}=e;h0("body",r),h0("html",i),B6(m,y);const g={baseTag:ua("base",n),linkTags:ua("link",s),metaTags:ua("meta",a),noscriptTags:ua("noscript",l),scriptTags:ua("script",h),styleTags:ua("style",f)},x={},v={};Object.keys(g).forEach(k=>{const{newTags:E,oldTags:S}=g[k];E.length&&(x[k]=E),S.length&&(v[k]=g[k].oldTags)}),t&&t(),u(e,x,v)},au=null,F6=e=>{au&&cancelAnimationFrame(au),e.defer?au=requestAnimationFrame(()=>{jx(e,()=>{au=null})}):(jx(e),au=null)},U6=F6,Dx=class extends A.Component{constructor(){super(...arguments);Ti(this,"rendered",!1)}shouldComponentUpdate(t){return!E6(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const i=A6(t.get().map(s=>{const{context:a,...l}=s.props;return l}));eC.canUseDOM?U6(i):u0&&(r=u0(i)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},dh=[],Mx=e=>{const t={};for(const n of Object.keys(e))t[Yk[n]||n]=e[n];return t},lo=e=>{const t={};for(const n of Object.keys(e)){const r=jf[n];t[r||n]=e[n]}return t},Bx=(e,t)=>{if(!lb)return;const n=document.getElementsByTagName(e)[0];if(!n)return;const r="data-rh-managed",i=n.getAttribute(r),s=i?i.split(","):[],a=Object.keys(t);for(const l of s)a.includes(l)||n.removeAttribute(l);for(const l of a){const u=t[l];u==null||u===!1?n.removeAttribute(l):u===!0?n.setAttribute(l,""):n.setAttribute(l,String(u))}a.length>0?n.setAttribute(r,a.join(",")):n.removeAttribute(r)},mm=()=>{const e={},t={};for(const n of dh){const{htmlAttributes:r,bodyAttributes:i}=n.props;r&&Object.assign(e,Mx(r)),i&&Object.assign(t,Mx(i))}Bx("html",e),Bx("body",t)},H6=class extends A.Component{componentDidMount(){dh.push(this),mm()}componentDidUpdate(){mm()}componentWillUnmount(){const e=dh.indexOf(this);e!==-1&&dh.splice(e,1),mm()}resolveTitle(){const{title:e,titleTemplate:t,defaultTitle:n}=this.props;return e&&t?t.replace(/%s/g,()=>Array.isArray(e)?e.join(""):e):e||n||void 0}renderTitle(){const e=this.resolveTitle();if(e===void 0)return null;const t=this.props.titleAttributes||{};return X.createElement("title",lo(t),e)}renderBase(){const{base:e}=this.props;return e?X.createElement("base",lo(e)):null}renderMeta(){const{meta:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>X.createElement("meta",{key:n,...lo(t)}))}renderLink(){const{link:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>X.createElement("link",{key:n,...lo(t)}))}renderScript(){const{script:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...i}=t,s=lo(i);return r&&(s.dangerouslySetInnerHTML={__html:r}),X.createElement("script",{key:n,...s})})}renderStyle(){const{style:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{cssText:r,...i}=t,s=lo(i);return r&&(s.dangerouslySetInnerHTML={__html:r}),X.createElement("style",{key:n,...s})})}renderNoscript(){const{noscript:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...i}=t,s=lo(i);return r&&(s.dangerouslySetInnerHTML={__html:r}),X.createElement("noscript",{key:n,...s})})}render(){return X.createElement(X.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},Hm,f0=(Hm=class extends A.Component{shouldComponentUpdate(e){return!b6(Rx(this.props,"helmetData"),Rx(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}
208warnOnInvalidChildren(e,t){return Ox(Lx.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Lx.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Ox(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return X.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:i,...s}=r.props,a=Object.keys(s).reduce((u,h)=>(u[Yk[h]||h]=s[h],u),{});let{type:l}=r;switch(typeof l=="symbol"?l=l.toString():this.warnOnInvalidChildren(r,i),l){case"Symbol(react.fragment)":t=this.mapChildrenToProps(i,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,a,i);break;default:t=this.mapObjectTypeChildren(r,t,a,i);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof c0)){const i=r;r=new c0(i.context,!0),delete n.helmetData}return d0?X.createElement(H6,{...n}):r?X.createElement(Dx,{...n,context:r.value}):X.createElement(Jk.Consumer,null,i=>X.createElement(Dx,{...n,context:i}))}},Ti(Hm,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),Hm);function Df(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function z6(e,t,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function l(f){try{h(r.next(f))}catch(m){a(m)}}function u(f){try{h(r.throw(f))}catch(m){a(m)}}function h(f){f.done?s(f.value):i(f.value).then(l,u)}h((r=r.apply(e,t||[])).next())})}const $6=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class ub extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class q6 extends ub{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class Fx extends ub{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Ux extends ub{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var p0;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(p0||(p0={}));class W6{constructor(t,{headers:n={},customFetch:r,region:i=p0.Any}={}){this.url=t,this.headers=n,this.region=i,this.fetch=$6(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return z6(this,arguments,void 0,function*(n,r={}){var i;let s,a;try{const{headers:l,method:u,body:h,signal:f,timeout:m}=r;let y={},{region:g}=r;g||(g=this.region);const x=new URL(`${this.url}/${n}`);g&&g!=="any"&&(y["x-region"]=g,x.searchParams.set("forceFunctionRegion",g));let v;h&&(l&&!Object.prototype.hasOwnProperty.call(l,"Content-Type")||!l)?typeof Blob<"u"&&h instanceof Blob||h instanceof ArrayBuffer?(y["Content-Type"]="application/octet-stream",v=h):typeof h=="string"?(y["Content-Type"]="text/plain",v=h):typeof FormData<"u"&&h instanceof FormData?v=h:(y["Content-Type"]="application/json",v=JSON.stringify(h)):h&&typeof h!="string"&&!(typeof Blob<"u"&&h instanceof Blob)&&!(h instanceof ArrayBuffer)&&!(typeof FormData<"u"&&h instanceof FormData)?v=JSON.stringify(h):v=h;let k=f;
208m&&(a=new AbortController,s=setTimeout(()=>a.abort(),m),f?(k=a.signal,f.addEventListener("abort",()=>a.abort())):k=a.signal);const E=yield this.fetch(x.toString(),{method:u||"POST",headers:Object.assign(Object.assign(Object.assign({},y),this.headers),l),body:v,signal:k}).catch(F=>{throw new q6(F)}),S=E.headers.get("x-relay-error");if(S&&S==="true")throw new Fx(E);if(!E.ok)throw new Ux(E);let T=((i=E.headers.get("Content-Type"))!==null&&i!==void 0?i:"text/plain").split(";")[0].trim(),P;return T==="application/json"?P=yield E.json():T==="application/octet-stream"||T==="application/pdf"?P=yield E.blob():T==="text/event-stream"?P=E:T==="multipart/form-data"?P=yield E.formData():P=yield E.text(),{data:P,error:null,response:E}}catch(l){return{data:null,error:l,response:l instanceof Ux||l instanceof Fx?l.context:void 0}}finally{s&&clearTimeout(s)}})}}var V6=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}},K6=class{constructor(e){var t,n,r;this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(n=e.isMaybeSingle)!==null&&n!==void 0?n:!1,this.urlLengthLimit=(r=e.urlLengthLimit)!==null&&r!==void 0?r:8e3,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}then(e,t){var n=this;this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const r=this.fetch;let i=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async s=>{let a=null,l=null,u=null,h=s.status,f=s.statusText;if(s.ok){var m,y;if(n.method!=="HEAD"){var g;const k=await s.text();k===""||(n.headers.get("Accept")==="text/csv"||n.headers.get("Accept")&&(!((g=n.headers.get("Accept"))===null||g===void 0)&&g.includes("application/vnd.pgrst.plan+text"))?l=k:l=JSON.parse(k))}const x=(m=n.headers.get("Prefer"))===null||m===void 0?void 0:m.match(/count=(exact|planned|estimated)/),v=(y=s.headers.get("content-range"))===null||y===void 0?void 0:y.split("/");x&&v&&v.length>1&&(u=parseInt(v[1])),n.isMaybeSingle&&Array.isArray(l)&&(l.length>1?(a={code:"PGRST116",details:`Results contain ${l.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},l=null,u=null,h=406,f="Not Acceptable"):l.length===1?l=l[0]:l=null)}else{const x=await s.text();try{a=JSON.parse(x),Array.isArray(a)&&s.status===404&&(l=[],a=null,h=200,f="OK")}catch{s.status===404&&x===""?(h=204,f="No Content"):a={message:x}}if(a&&n.shouldThrowOnError)throw new V6(a)}return{error:a,data:l,count:u,status:h,statusText:f}});return this.shouldThrowOnError||(i=i.catch(s=>{var a;let l="",u="",h="";const f=s==null?void 0:s.cause;if(f){var m,y,g,x;const E=(m=f==null?void 0:f.message)!==null&&m!==void 0?m:"",S=(y=f==null?void 0:f.code)!==null&&y!==void 0?y:"";l=`${(g=s==null?void 0:s.name)!==null&&g!==void 0?g:"FetchError"}: ${s==null?void 0:s.message}`,l+=` 209 210Caused by: ${(x=f==null?void 0:f.name)!==null&&x!==void 0?x:"Error"}: ${E}`,S&&(l+=` (${S})`),f!=null&&f.stack&&(l+=` 211${f.stack}`)}else{var v;l=(v=s==null?void 0:s.stack)!==null&&v!==void 0?v:""}const k=this.url.toString().length;return(s==null?void 0:s.name)==="AbortError"||(s==null?void 0:s.code)==="ABORT_ERR"?(h="",u="Request was aborted (timeout or manual cancellation)",k>this.urlLengthLimit&&(u+=`. Note: Your request URL is ${k} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):((f==null?void 0:f.name)==="HeadersOverflowError"||(f==null?void 0:f.code)==="UND_ERR_HEADERS_OVERFLOW")&&(h="",u="HTTP headers exceeded server limits (typically 16KB)",k>this.urlLengthLimit&&(u+=`. Your request URL is ${k} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{error:{message:`${(a=s==null?void 0:s.name)!==null&&a!==void 0?a:"FetchError"}: ${s==null?void 0:s.message}`,details:l,hint:u,code:h},data:null,count:null,status:0,statusText:""}}
211)),i.then(e,t)}returns(){return this}overrideTypes(){return this}},G6=class extends K6{select(e){let t=!1;const n=(e??"*").split("").map(r=>/\s/.test(r)&&!t?"":(r==='"'&&(t=!t),r)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:n,foreignTable:r,referencedTable:i=r}={}){const s=i?`${i}.order`:"order",a=this.url.searchParams.get(s);return this.url.searchParams.set(s,`${a?`${a},`:""}${e}.${t?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:n=t}={}){const r=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${e}`),this}range(e,t,{foreignTable:n,referencedTable:r=n}={}){const i=typeof r>"u"?"offset":`${r}.offset`,s=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(i,`${e}`),this.url.searchParams.set(s,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:r=!1,wal:i=!1,format:s="text"}={}){var a;const l=[e?"analyze":null,t?"verbose":null,n?"settings":null,r?"buffers":null,i?"wal":null].filter(Boolean).join("|"),u=(a=this.headers.get("Accept"))!==null&&a!==void 0?a:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${s}; for="${u}"; options=${l};`),s==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const Hx=new RegExp("[,()]");var ba=class extends G6{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&Hx.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`in.(${n})`),this}notIn(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&Hx.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`not.in.(${n})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:n,type:r}={}){let i="";r==="plain"?i="pl":r==="phrase"?i="ph":r==="websearch"&&(i="w");const s=n===void 0?"":`(${n})`;return this.url.searchParams.append(e,`${i}fts${s}.${t}`),this}match(e){return Object.entries(e).filter(([t,n])=>
211n!==void 0).forEach(([t,n])=>{this.url.searchParams.append(t,`eq.${n}`)}),this}not(e,t,n){return this.url.searchParams.append(e,`not.${t}.${n}`),this}or(e,{foreignTable:t,referencedTable:n=t}={}){const r=n?`${n}.or`:"or";return this.url.searchParams.append(r,`(${e})`),this}filter(e,t,n){return this.url.searchParams.append(e,`${t}.${n}`),this}},Y6=class{constructor(e,{headers:t={},schema:n,fetch:r,urlLengthLimit:i=8e3}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=r,this.urlLengthLimit=i}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:n=!1,count:r}=t??{},i=n?"HEAD":"GET";let s=!1;const a=(e??"*").split("").map(h=>/\s/.test(h)&&!s?"":(h==='"'&&(s=!s),h)).join(""),{url:l,headers:u}=this.cloneRequestState();return l.searchParams.set("select",a),r&&u.append("Prefer",`count=${r}`),new ba({method:i,url:l,headers:u,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}insert(e,{count:t,defaultToNull:n=!0}={}){var r;const i="POST",{url:s,headers:a}=this.cloneRequestState();if(t&&a.append("Prefer",`count=${t}`),n||a.append("Prefer","missing=default"),Array.isArray(e)){const l=e.reduce((u,h)=>u.concat(Object.keys(h)),[]);if(l.length>0){const u=[...new Set(l)].map(h=>`"${h}"`);s.searchParams.set("columns",u.join(","))}}return new ba({method:i,url:s,headers:a,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:r,defaultToNull:i=!0}={}){var s;const a="POST",{url:l,headers:u}=this.cloneRequestState();if(u.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),t!==void 0&&l.searchParams.set("on_conflict",t),r&&u.append("Prefer",`count=${r}`),i||u.append("Prefer","missing=default"),Array.isArray(e)){const h=e.reduce((f,m)=>f.concat(Object.keys(m)),[]);if(h.length>0){const f=[...new Set(h)].map(m=>`"${m}"`);l.searchParams.set("columns",f.join(","))}}return new ba({method:a,url:l,headers:u,schema:this.schema,body:e,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch,urlLengthLimit:this.urlLengthLimit})}update(e,{count:t}={}){var n;const r="PATCH",{url:i,headers:s}=this.cloneRequestState();return t&&s.append("Prefer",`count=${t}`),new ba({method:r,url:i,headers:s,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit})}delete({count:e}={}){var t;const n="DELETE",{url:r,headers:i}=this.cloneRequestState();return e&&i.append("Prefer",`count=${e}`),new ba({method:n,url:r,headers:i,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit})}};function hc(e){"@babel/helpers - typeof";return hc=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},hc(e)}function Q6(e,t){if(hc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(hc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Z6(e){var t=Q6(e,"string");return hc(t)=="symbol"?t:t+""}function X6(e,t,n){return(t=Z6(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zx(Object(n),!0).forEach(function(r){X6(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var J6=class tC{constructor(t,{headers:n={},schema:r,fetch:i,timeout:s,urlLengthLimit:a=8e3}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.urlLengthLimit=a;const l=i??globalThis.fetch;s!==void 0&&s>0?this.fetch=(u,h)=>{const f=new AbortController,m=setTimeout(()=>f.abort(),s),y=h==null?void 0:h.signal;if(y){if(y.aborted)return clearTimeout(m),l(u,h);const g=()=>{clearTimeout(m),f.abort()};return y.addEventListener("abort",g,{once:!0}),l(u,jd(jd({},h),{}
211,{signal:f.signal})).finally(()=>{clearTimeout(m),y.removeEventListener("abort",g)})}return l(u,jd(jd({},h),{},{signal:f.signal})).finally(()=>clearTimeout(m))}:this.fetch=l}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new Y6(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}schema(t){return new tC(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}rpc(t,n={},{head:r=!1,get:i=!1,count:s}={}){var a;let l;const u=new URL(`${this.url}/rpc/${t}`);let h;const f=g=>g!==null&&typeof g=="object"&&(!Array.isArray(g)||g.some(f)),m=r&&Object.values(n).some(f);m?(l="POST",h=n):r||i?(l=r?"HEAD":"GET",Object.entries(n).filter(([g,x])=>x!==void 0).map(([g,x])=>[g,Array.isArray(x)?`{${x.join(",")}}`:`${x}`]).forEach(([g,x])=>{u.searchParams.append(g,x)})):(l="POST",h=n);const y=new Headers(this.headers);return m?y.set("Prefer",s?`count=${s},return=minimal`:"return=minimal"):s&&y.set("Prefer",`count=${s}`),new ba({method:l,url:u,headers:y,schema:this.schemaName,body:h,fetch:(a=this.fetch)!==null&&a!==void 0?a:fetch,urlLengthLimit:this.urlLengthLimit})}};class e4{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const n=globalThis.process;if(n){const r=n.versions;if(r&&r.node){const i=r.node,s=parseInt(i.replace(/^v/,"").split(".")[0]);return s>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${s} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${s} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 212import ws from "ws" 213new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=` 214 215Suggested solution: ${t.workaround}`),new Error(n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const t4="2.101.1",n4=`realtime-js/${t4}`,r4="1.0.0",nC="2.0.0",i4=nC,s4=1e4,o4=100,bs={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},rC={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave",access_token:"access_token"},m0={connecting:"connecting",open:"open",closing:"closing",closed:"closed"};class a4{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,n){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(t));let r=[t.join_ref,t.ref,t.topic,t.event,t.payload];return n(JSON.stringify(r))}_binaryEncodeUserBroadcastPush(t){var n;return this._isArrayBuffer((n=t.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var n,r;const i=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,i)}_encodeJsonUserBroadcastPush(t){var n,r;const i=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:{},a=new TextEncoder().encode(JSON.stringify(i)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,a)}_encodeUserBroadcastPush(t,n,r){var i,s;const a=t.topic,l=(i=t.ref)!==null&&i!==void 0?i:"",u=(s=t.join_ref)!==null&&s!==void 0?s:"",h=t.payload.event,f=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},m=Object.keys(f).length===0?"":JSON.stringify(f);
215if(u.length>255)throw new Error(`joinRef length ${u.length} exceeds maximum of 255`);if(l.length>255)throw new Error(`ref length ${l.length} exceeds maximum of 255`);if(a.length>255)throw new Error(`topic length ${a.length} exceeds maximum of 255`);if(h.length>255)throw new Error(`userEvent length ${h.length} exceeds maximum of 255`);if(m.length>255)throw new Error(`metadata length ${m.length} exceeds maximum of 255`);const y=this.USER_BROADCAST_PUSH_META_LENGTH+u.length+l.length+a.length+h.length+m.length,g=new ArrayBuffer(this.HEADER_LENGTH+y);let x=new DataView(g),v=0;x.setUint8(v++,this.KINDS.userBroadcastPush),x.setUint8(v++,u.length),x.setUint8(v++,l.length),x.setUint8(v++,a.length),x.setUint8(v++,h.length),x.setUint8(v++,m.length),x.setUint8(v++,n),Array.from(u,E=>x.setUint8(v++,E.charCodeAt(0))),Array.from(l,E=>x.setUint8(v++,E.charCodeAt(0))),Array.from(a,E=>x.setUint8(v++,E.charCodeAt(0))),Array.from(h,E=>x.setUint8(v++,E.charCodeAt(0))),Array.from(m,E=>x.setUint8(v++,E.charCodeAt(0)));var k=new Uint8Array(g.byteLength+r.byteLength);return k.set(new Uint8Array(g),0),k.set(new Uint8Array(r),g.byteLength),k.buffer}decode(t,n){if(this._isArrayBuffer(t)){let r=this._binaryDecode(t);return n(r)}if(typeof t=="string"){const r=JSON.parse(t),[i,s,a,l,u]=r;return n({join_ref:i,ref:s,topic:a,event:l,payload:u})}return n({})}_binaryDecode(t){const n=new DataView(t),r=n.getUint8(0),i=new TextDecoder;switch(r){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,n,i)}}_decodeUserBroadcast(t,n,r){const i=n.getUint8(1),s=n.getUint8(2),a=n.getUint8(3),l=n.getUint8(4);let u=this.HEADER_LENGTH+4;const h=r.decode(t.slice(u,u+i));u=u+i;const f=r.decode(t.slice(u,u+s));u=u+s;const m=r.decode(t.slice(u,u+a));u=u+a;const y=t.slice(u,t.byteLength),g=l===this.JSON_ENCODING?JSON.parse(r.decode(y)):y,x={type:this.BROADCAST_EVENT,event:f,payload:g};return a>0&&(x.meta=JSON.parse(m)),{join_ref:null,ref:null,topic:h,event:this.BROADCAST_EVENT,payload:x}}_isArrayBuffer(t){var n;return t instanceof ArrayBuffer||((n=t==null?void 0:t.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(t,n){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([r])=>n.includes(r)))}}var rt;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(rt||(rt={}));const $x=(e,t,n={})=>{var r;const i=(r=n.skipTypes)!==null&&r!==void 0?r:[];return t?Object.keys(t).reduce((s,a)=>(s[a]=l4(a,e,t,i),s),{}):{}},l4=(e,t,n,r)=>{const i=t.find(l=>
vendor: 5,523 bytes, line 215
215l.name===e),s=i==null?void 0:i.type,a=n[e];return s&&!r.includes(s)?iC(s,a):g0(a)},iC=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return h4(t,n)}switch(e){case rt.bool:return u4(t);case rt.float4:case rt.float8:case rt.int2:case rt.int4:case rt.int8:case rt.numeric:case rt.oid:return c4(t);case rt.json:case rt.jsonb:return d4(t);case rt.timestamp:return f4(t);case rt.abstime:case rt.date:case rt.daterange:case rt.int4range:case rt.int8range:case rt.money:case rt.reltime:case rt.text:case rt.time:case rt.timestamptz:case rt.timetz:case rt.tsrange:case rt.tstzrange:return g0(t);default:return g0(t)}},g0=e=>e,u4=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},c4=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},d4=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},h4=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let s;const a=e.slice(1,n);try{s=JSON.parse("["+a+"]")}catch{s=a?a.split(","):[]}return s.map(l=>iC(t,l))}return e},f4=e=>typeof e=="string"?e.replace(" ","T"):e,sC=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};var Iu=e=>typeof e=="function"?e:function(){return e},p4=typeof self<"u"?self:null,_a=typeof window<"u"?window:null,ei=p4||_a||globalThis,m4="2.0.0",g4=1e4,y4=1e3,ii={connecting:0,open:1,closing:2,closed:3},En={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Ai={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},y0={longpoll:"longpoll",websocket:"websocket"},b4={complete:4},b0="base64url.bearer.phx.",Dd=class{constructor(e,t,n,r){this.channel=e,this.event=t,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHooks=[],this.sent=!1,this.ref=void 0}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}matchReceive({status:e,response:t,_ref:n}){this.recHooks.filter(r=>r.status===e).forEach(r=>r.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},oC=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},_4=class{constructor(e,t,n){this.state=En.closed,this.topic=e,this.params=Iu(t||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Dd(this,Ai.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new oC(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=En.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(r=>r.send()),this.pushBuffer=[]}),this.joinPush.receive("error",r=>{this.state=En.errored,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=En.closed,this.socket.remove(this)}),this.onError(r=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.isJoining()&&this.joinPush.reset(),this.state=En.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),new Dd(this,Ai.leave,Iu({}),this.timeout).send(),this.state=En.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(Ai.reply,(r,i)=>{this.trigger(this.replyEventName(i),r)})}join(e=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}
vendor: 5,263 bytes, line 215
215teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=En.closed,this.bindings=[]}onClose(e){this.on(Ai.close,e)}onError(e){return this.on(Ai.error,t=>e(t))}on(e,t){let n=this.bindingRef++;return this.bindings.push({event:e,ref:n,callback:t}),n}off(e,t){this.bindings=this.bindings.filter(n=>!(n.event===e&&(typeof t>"u"||t===n.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,n=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new Dd(this,e,function(){return t},n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=En.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Ai.close,"leave")},n=new Dd(this,Ai.leave,Iu({}),e);return n.receive("ok",()=>t()).receive("timeout",()=>t()),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(e,t,n){return t}filterBindings(e,t,n){return!0}isMember(e,t,n,r){return this.topic!==e?!1:r&&r!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:n,joinRef:r}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=En.joining,this.joinPush.resend(e))}trigger(e,t,n,r){let i=this.onMessage(e,t,n,r);if(t&&!i)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let s=this.bindings.filter(a=>a.event===e&&this.filterBindings(a,t,n));for(let a=0;a<s.length;a++)s[a].callback(i,n,r||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===En.closed}isErrored(){return this.state===En.errored}isJoined(){return this.state===En.joined}isJoining(){return this.state===En.joining}isLeaving(){return this.state===En.leaving}},Gh=class{static request(e,t,n,r,i,s,a){if(ei.XDomainRequest){let l=new ei.XDomainRequest;return this.xdomainRequest(l,e,t,r,i,s,a)}else if(ei.XMLHttpRequest){let l=new ei.XMLHttpRequest;return this.xhrRequest(l,e,t,n,r,i,s,a)}else{if(ei.fetch&&ei.AbortController)return this.fetchRequest(e,t,n,r,i,s,a);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(e,t,n,r,i,s,a){let l={method:e,headers:n,body:r},u=null;return i&&(u=new AbortController,setTimeout(()=>u.abort(),i),l.signal=u.signal),ei.fetch(t,l).then(h=>h.text()).then(h=>this.parseJSON(h)).then(h=>a&&a(h)).catch(h=>{h.name==="AbortError"&&s?s():a&&a(null)}),u}static xdomainRequest(e,t,n,r,i,s,a){return e.timeout=i,e.open(t,n),e.onload=()=>{let l=this.parseJSON(e.responseText);a&&a(l)},s&&(e.ontimeout=s),e.onprogress=()=>{},e.send(r),e}static xhrRequest(e,t,n,r,i,s,a,l){e.open(t,n,!0),e.timeout=s;for(let[u,h]of Object.entries(r))e.setRequestHeader(u,h);return e.onerror=()=>l&&l(null),e.onreadystatechange=()=>{if(e.readyState===b4.complete&&l){let u=this.parseJSON(e.responseText);l(u)}},a&&(e.ontimeout=a),e.send(i),e}static parseJSON(e){if(!e||e==="")return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let n=[];for(var r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let i=t?`${t}[${r}]`:r,s=e[r];typeof s=="object"?n.push(this.serialize(s,i)):n.push(encodeURIComponent(i)+"="+encodeURIComponent(s))}return n.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let n=e.match(/\?/)?"&":"?";return`${e}${n}${this.serialize(t)}`}},v4=e=>{let t="",n=new Uint8Array(e),r=n.byteLength;for(let i=0;i<r;i++)t+=String.fromCharCode(n[i]);return btoa(t)},ca=class{constructor(e,t){t&&t.length===2&&t[1].startsWith(b0)&&(this.authToken=atob(t[1].slice(b0.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=ii.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+y0.websocket),"$1/"+y0.longpoll)}endpointURL(){return Gh.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,n){this.close(e,t,n),this.readyState=ii.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===ii.open||this.readyState===ii.connecting}poll(){const e={Accept:"application/json"};this.authToken&&(e["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",e,null,()=>this.ontimeout(),t=>{if(t){var{status:n,token:r,messages:i}=t;if(n===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=r}else n=0;switch(n){case 200:i.forEach(s=>{setTimeout(()=>this.onmessage({data:s}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=ii.open,this.onopen({}),this.poll();break;
215case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${n}`)}})}send(e){typeof e!="string"&&(e=v4(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},e.join(` 216`),()=>this.onerror("timeout"),t=>{this.awaitingBatchAck=!1,!t||t.status!==200?(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(e,t,n){for(let i of this.reqs)i.abort();this.readyState=ii.closed;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",r)):this.onclose(r)}ajax(e,t,n,r,i){let s,a=()=>{this.reqs.delete(s),r()};s=Gh.request(e,this.endpointURL(),t,n,this.timeout,a,l=>{this.reqs.delete(s),this.isActive()&&i(l)}),this.reqs.add(s)}},x4=class bu{constructor(t,n={}){let r=n.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=t,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(r.state,i=>{let{onJoin:s,onLeave:a,onSync:l}=this.caller;this.joinRef=this.channel.joinRef(),this.state=bu.syncState(this.state,i,s,a),this.pendingDiffs.forEach(u=>{this.state=bu.syncDiff(this.state,u,s,a)}),this.pendingDiffs=[],l()}),this.channel.on(r.diff,i=>{let{onJoin:s,onLeave:a,onSync:l}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(i):(this.state=bu.syncDiff(this.state,i,s,a),l())})}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}list(t){return bu.list(this.state,t)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(t,n,r,i){let s=this.clone(t),a={},l={};return this.map(s,(u,h)=>{n[u]||(l[u]=h)}),this.map(n,(u,h)=>{let f=s[u];if(f){let m=h.metas.map(v=>v.phx_ref),y=f.metas.map(v=>v.phx_ref),g=h.metas.filter(v=>y.indexOf(v.phx_ref)<0),x=f.metas.filter(v=>m.indexOf(v.phx_ref)<0);g.length>0&&(a[u]=h,a[u].metas=g),x.length>0&&(l[u]=this.clone(f),l[u].metas=x)}else a[u]=h}),this.syncDiff(s,{joins:a,leaves:l},r,i)}static syncDiff(t,n,r,i){let{joins:s,leaves:a}=this.clone(n);return r||(r=function(){}),i||(i=function(){}),this.map(s,(l,u)=>{let h=t[l];if(t[l]=this.clone(u),h){let f=t[l].metas.map(y=>y.phx_ref),m=h.metas.filter(y=>f.indexOf(y.phx_ref)<0);t[l].metas.unshift(...m)}r(l,h,u)}),this.map(a,(l,u)=>{let h=t[l];if(!h)return;let f=u.metas.map(m=>m.phx_ref);h.metas=h.metas.filter(m=>f.indexOf(m.phx_ref)<0),i(l,h,u),h.metas.length===0&&delete t[l]}),t}static list(t,n){return n||(n=function(r,i){return i}),this.map(t,(r,i)=>n(r,i))}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static clone(t){return JSON.parse(JSON.stringify(t))}},Md={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(n))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[n,r,i,s,a]=JSON.parse(e);return t({join_ref:n,ref:r,topic:i,event:s,payload:a})}},binaryEncode(e){let{join_ref:t,ref:n,event:r,topic:i,payload:s}=e,a=this.META_LENGTH+t.length+n.length+i.length+r.length,l=new ArrayBuffer(this.HEADER_LENGTH+a),u=new DataView(l),h=0;u.setUint8(h++,this.KINDS.push),u.setUint8(h++,t.length),u.setUint8(h++,n.length),u.setUint8(h++,i.length),u.setUint8(h++,r.length),Array.from(t,m=>u.setUint8(h++,m.charCodeAt(0))),Array.from(n,m=>u.setUint8(h++,m.charCodeAt(0))),Array.from(i,m=>u.setUint8(h++,m.charCodeAt(0))),Array.from(r,m=>u.setUint8(h++,m.charCodeAt(0)));var f=new Uint8Array(l.byteLength+s.byteLength);return f.set(new Uint8Array(l),0),f.set(new Uint8Array(s),l.byteLength),f.buffer},binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(e,t,r);case this.KINDS.reply:return this.decodeReply(e,t,r);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,r)}}
vendor: 8,419 bytes, line 216
216,decodePush(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),s=t.getUint8(3),a=this.HEADER_LENGTH+this.META_LENGTH-1,l=n.decode(e.slice(a,a+r));a=a+r;let u=n.decode(e.slice(a,a+i));a=a+i;let h=n.decode(e.slice(a,a+s));a=a+s;let f=e.slice(a,e.byteLength);return{join_ref:l,ref:null,topic:u,event:h,payload:f}},decodeReply(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),s=t.getUint8(3),a=t.getUint8(4),l=this.HEADER_LENGTH+this.META_LENGTH,u=n.decode(e.slice(l,l+r));l=l+r;let h=n.decode(e.slice(l,l+i));l=l+i;let f=n.decode(e.slice(l,l+s));l=l+s;let m=n.decode(e.slice(l,l+a));l=l+a;let y=e.slice(l,e.byteLength),g={status:m,response:y};return{join_ref:u,ref:h,topic:f,event:Ai.reply,payload:g}},decodeBroadcast(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),s=this.HEADER_LENGTH+2,a=n.decode(e.slice(s,s+r));s=s+r;let l=n.decode(e.slice(s,s+i));s=s+i;let u=e.slice(s,e.byteLength);return{join_ref:null,ref:null,topic:a,event:l,payload:u}}},E4=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||g4,this.transport=t.transport||ei.WebSocket||ca,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null,this.sessionStore=t.sessionStorage||ei&&ei.sessionStorage,this.establishedConnections=0,this.defaultEncoder=Md.encode.bind(Md),this.defaultDecoder=Md.decode.bind(Md),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=t.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==ca?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let n=null;_a&&_a.addEventListener&&(_a.addEventListener("pagehide",r=>{this.conn&&(this.disconnect(),n=this.connectClock)}),_a.addEventListener("pageshow",r=>{n===this.connectClock&&(n=null,this.connect())}),_a.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=t.autoSendHeartbeat??!0,this.heartbeatCallback=t.heartbeatCallback??(()=>{}),this.rejoinAfterMs=r=>t.rejoinAfterMs?t.rejoinAfterMs(r):[1e3,2e3,5e3][r-1]||1e4,this.reconnectAfterMs=r=>t.reconnectAfterMs?t.reconnectAfterMs(r):[10,50,100,150,200,250,500,1e3,2e3][r-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(r,i,s)=>{console.log(`${r}: ${i}`,s)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=Iu(t.params||{}),this.endPoint=`${e}/${y0.websocket}`,this.vsn=t.vsn||m4,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new oC(()=>{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(async()=>{t.beforeReconnect&&await t.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=t.authToken}getLongPollTransport(){return ca}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=e}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=Gh.appendParams(Gh.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return e.charAt(0)!=="/"?e:e.charAt(1)==="/"?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,n){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,n)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=Iu(e)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==ca?this.connectWithFallback(ca,this.longPollFallbackMs):this.transportConnect())}log(e,t,n){this.logger&&this.logger(e,t,n)}hasLogger(){return this.logger!==null}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}onHeartbeat(e){this.heartbeatCallback=e}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),n=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let r=this.onMessage(i=>{i.ref===t&&(this.off([r]),e(Date.now()-n))});return!0}transportName(e){switch(e){case ca:return"LongPoll";default:return e.name}}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=["phoenix",`${b0}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=t=>this.onConnError(t),this.conn.onmessage=t=>this.onConnMessage(t),this.conn.onclose=t=>this.onConnClose(t)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let n=!1,r=!0,i,s,a=this.transportName(e),l=u=>{this.log("transport",`falling back to ${a}...`,u),this.off([i,s]),r=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${a}`))return l("memorized");this.fallbackTimer=setTimeout(l,t),s=this.onError(u=>{this.log("transport","error",u),r&&!n&&(clearTimeout(this.fallbackTimer),l(u))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(n=!0,!r){let u=this.transportName(e);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${u}`,"true"),this.log("transport",`established ${u} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(l,t),this.ping(u=>{this.log("transport","connected to primary after",u),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks("open")}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(e){this.log("error","error in heartbeat callback",e)}this.triggerChanError(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),y4,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,n){if(!this.conn)return e&&e();const r=this.conn;this.waitForBufferDone(r,()=>{t?r.close(t,n||""):r.close(),this.waitForSocketClosed(r,()=>{this.conn===r&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e()})})}waitForBufferDone(e,t,n=1){if(n===5||!e.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(e,t,n+1)},150*n)}waitForSocketClosed(e,t,n=1){if(n===5||e.readyState===ii.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(e,t,n+1)},150*n)}onConnClose(e){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",e)}onConnError(e){this.hasLogger()&&this.log("transport",e);let t=this.transport,n=this.establishedConnections;this.triggerStateCallbacks("error",e,t,n),(t===this.transport||n>0)&&this.triggerChanError()}
216triggerChanError(){this.channels.forEach(e=>{e.isErrored()||e.isLeaving()||e.isClosed()||e.trigger(Ai.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case ii.connecting:return"connecting";case ii.open:return"open";case ii.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([n])=>e.indexOf(n)===-1)}channel(e,t={}){let n=new _4(e,t,this);return this.channels.push(n),n}push(e){if(this.hasLogger()){let{topic:t,event:n,payload:r,ref:i,join_ref:s}=e;this.log("push",`${t} ${n} (${s}, ${i})`,r)}this.isConnected()?this.encode(e,t=>this.conn.send(t)):this.sendBuffer.push(()=>this.encode(e,t=>this.conn.send(t)))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(e){this.log("error","error in heartbeat callback",e)}return}if(this.pendingHeartbeatRef){this.heartbeatTimeout();return}this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(e){this.log("error","error in heartbeat callback",e)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,t=>{let{topic:n,event:r,payload:i,ref:s,join_ref:a}=t;if(s&&s===this.pendingHeartbeatRef){const l=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(i.status==="ok"?"ok":"error",l)}catch(u){this.log("error","error in heartbeat callback",u)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log("receive",`${i.status||""} ${n} ${r} ${s&&"("+s+")"||""}`.trim(),i);for(let l=0;l<this.channels.length;l++){const u=this.channels[l];u.isMember(n,r,i,a)&&u.trigger(r,i,s,a)}this.triggerStateCallbacks("message",t)})}triggerStateCallbacks(e,...t){try{this.stateChangeCallbacks[e].forEach(([n,r])=>{try{r(...t)}catch(i){this.log("error",`error in ${e} callback`,i)}})}catch(n){this.log("error",`error triggering ${e} callbacks`,n)}}leaveOpenTopic(e){let t=this.channels.find(n=>n.topic===e&&(n.isJoined()||n.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}};class Ou{constructor(t,n){const r=T4(n);this.presence=new x4(t.getChannel(),r),this.presence.onJoin((i,s,a)=>{const l=Ou.onJoinPayload(i,s,a);t.getChannel().trigger("presence",l)}),this.presence.onLeave((i,s,a)=>{const l=Ou.onLeavePayload(i,s,a);t.getChannel().trigger("presence",l)}),this.presence.onSync(()=>{t.getChannel().trigger("presence",{event:"sync"})})}get state(){return Ou.transformState(this.presence.state)}static transformState(t){return t=w4(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const i=t[r];return n[r]=hh(i),n},{})}static onJoinPayload(t,n,r){const i=qx(n),s=hh(r);return{event:"join",key:t,currentPresences:i,newPresences:s}}static onLeavePayload(t,n,r){const i=qx(n),s=hh(r);return{event:"leave",key:t,currentPresences:i,leftPresences:s}}}function hh(e){return e.metas.map(t=>(t.presence_ref=t.phx_ref,delete t.phx_ref,delete t.phx_ref_prev,t))}function w4(e){return JSON.parse(JSON.stringify(e))}function T4(e){return(e==null?void 0:e.events)&&{events:e.events}}function qx(e){return e!=null&&e.metas?hh(e):[]}var Wx;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Wx||(Wx={}));class S4{get state(){return this.presenceAdapter.state}constructor(t,n){this.channel=t,this.presenceAdapter=new Ou(this.channel.channelAdapter,n)}}class k4{constructor(t,n,r){const i=C4(r);this.channel=t.getSocket().channel(n,i),this.socket=t}get state(){return this.channel.state}set state(t){this.channel.state=t}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(t,n){return this.channel.on(t,n)}off(t,n){this.channel.off(t,n)}subscribe(t){return this.channel.join(t)}unsubscribe(t){return this.channel.leave(t)}teardown(){this.channel.teardown()}onClose(t){this.channel.onClose(t)}onError(t){return this.channel.onError(t)}push(t,n,r){let i;try{i=this.channel.push(t,n,r)}catch{throw`tried to push '${t}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`}if(this.channel.pushBuffer.length>
216o4){const s=this.channel.pushBuffer.shift();s.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${s.event}`,s.payload())}return i}updateJoinPayload(t){const n=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},n),t)}canPush(){return this.socket.isConnected()&&this.state===bs.joined}isJoined(){return this.state===bs.joined}isJoining(){return this.state===bs.joining}isClosed(){return this.state===bs.closed}isLeaving(){return this.state===bs.leaving}updateFilterBindings(t){this.channel.filterBindings=t}updatePayloadTransform(t){this.channel.onMessage=t}getChannel(){return this.channel}}function C4(e){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},e.config)}}var Vx;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(Vx||(Vx={}));var ja;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(ja||(ja={}));var Ni;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Ni||(Ni={}));class Lu{get state(){return this.channelAdapter.state}set state(t){this.channelAdapter.state=t}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(t,n={config:{}},r){var i,s;if(this.topic=t,this.params=n,this.socket=r,this.bindings={},this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.channelAdapter=new k4(this.socket.socketAdapter,t,this.params),this.presence=new S4(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=sC(this.socket.socketAdapter.endPointURL()),this.private=this.params.config.private||!1,!this.private&&(!((s=(i=this.params.config)===null||i===void 0?void 0:i.broadcast)===null||s===void 0)&&s.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,n=this.timeout){var r,i,s;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:a,presence:l,private:u}}=this.params,h=(i=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(g=>g.filter))!==null&&i!==void 0?i:[],f=!!this.bindings[ja.PRESENCE]&&this.bindings[ja.PRESENCE].length>0||((s=this.params.config.presence)===null||s===void 0?void 0:s.enabled)===!0,m={},y={broadcast:a,presence:Object.assign(Object.assign({},l),{enabled:f}),postgres_changes:h,private:u};this.socket.accessTokenValue&&(m.access_token=this.socket.accessTokenValue),this._onError(g=>{t==null||t(Ni.CHANNEL_ERROR,g)}),this._onClose(()=>t==null?void 0:t(Ni.CLOSED)),this.updateJoinPayload(Object.assign({config:y},m)),this._updateFilterMessage(),this.channelAdapter.subscribe(n).receive("ok",async({postgres_changes:g})=>{if(this.socket._isManualToken()||this.socket.setAuth(),g===void 0){t==null||t(Ni.SUBSCRIBED);return}this._updatePostgresBindings(g,t)}).receive("error",g=>{this.state=bs.errored,t==null||t(Ni.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(g).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(Ni.TIMED_OUT)})}return this}_updatePostgresBindings(t,n){var r;const i=this.bindings.postgres_changes,s=(r=i==null?void 0:i.length)!==null&&r!==void 0?r:0,a=[];for(let l=0;l<s;l++){const u=i[l],{filter:{event:h,schema:f,table:m,filter:y}}=u,g=t&&t[l];if(g&&g.event===h&&Lu.isFilterValueEqual(g.schema,f)&&Lu.isFilterValueEqual(g.table,m)&&Lu.isFilterValueEqual(g.filter,y))a.push(Object.assign(Object.assign({},u),{id:g.id}));else{this.unsubscribe(),this.state=bs.errored,n==null||n(Ni.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=a,this.state!=bs.errored&&n&&n(Ni.SUBSCRIBED)}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){const i=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),s=t===ja.PRESENCE||t===ja.POSTGRES_CHANGES;if(i&&s)throw this.socket.log("channel",`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`),new Error(`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(t,n,r)}async httpSend(t,n,r={}){var i;if(n==null)return Promise.reject("Payload is required for httpSend()");const s={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(s.Authorization=`Bearer ${this.socket.accessTokenValue}`);const a={method:"POST",headers:s,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:n,private:this.private}]})},l=await this._fetchWithTimeout(this.broadcastEndpointURL,a,(i=r.timeout)!==null&&i!==void 0?i:this.timeout);if(l.status===202)return{success:!0};let u=l.statusText;
216try{const h=await l.json();u=h.error||h.message||u}catch{}return Promise.reject(new Error(u))}async send(t,n={}){var r,i;if(!this.channelAdapter.canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:s,payload:a}=t,l={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(l.Authorization=`Bearer ${this.socket.accessTokenValue}`);const u={method:"POST",headers:l,body:JSON.stringify({messages:[{topic:this.subTopic,event:s,payload:a,private:this.private}]})};try{const h=await this._fetchWithTimeout(this.broadcastEndpointURL,u,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((i=h.body)===null||i===void 0?void 0:i.cancel()),h.ok?"ok":"error"}catch(h){return h.name==="AbortError"?"timed out":"error"}}else return new Promise(s=>{var a,l,u;const h=this.channelAdapter.push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((u=(l=(a=this.params)===null||a===void 0?void 0:a.config)===null||l===void 0?void 0:l.broadcast)===null||u===void 0)&&u.ack)&&s("ok"),h.receive("ok",()=>s("ok")),h.receive("error",()=>s("error")),h.receive("timeout",()=>s("timed out"))})}updateJoinPayload(t){this.channelAdapter.updateJoinPayload(t)}async unsubscribe(t=this.timeout){return new Promise(n=>{this.channelAdapter.unsubscribe(t).receive("ok",()=>n("ok")).receive("timeout",()=>n("timed out")).receive("error",()=>n("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(t,n,r){const i=new AbortController,s=setTimeout(()=>i.abort(),r),a=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:i.signal}));return clearTimeout(s),a}_on(t,n,r){const i=t.toLocaleLowerCase(),s=this.channelAdapter.on(t,r),a={type:i,filter:n,callback:r,ref:s};return this.bindings[i]?this.bindings[i].push(a):this.bindings[i]=[a],this._updateFilterMessage(),this}_onClose(t){this.channelAdapter.onClose(t)}_onError(t){this.channelAdapter.onError(t)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((t,n,r)=>{var i,s,a,l,u,h,f;const m=t.event.toLocaleLowerCase();if(this._notThisChannelEvent(m,r))return!1;const y=(i=this.bindings[m])===null||i===void 0?void 0:i.find(g=>g.ref===t.ref);if(!y)return!0;if(["broadcast","presence","postgres_changes"].includes(m))if("id"in y){const g=y.id,x=(s=y.filter)===null||s===void 0?void 0:s.event;return g&&((a=n.ids)===null||a===void 0?void 0:a.includes(g))&&(x==="*"||(x==null?void 0:x.toLocaleLowerCase())===((l=n.data)===null||l===void 0?void 0:l.type.toLocaleLowerCase()))}else{const g=(h=(u=y==null?void 0:y.filter)===null||u===void 0?void 0:u.event)===null||h===void 0?void 0:h.toLocaleLowerCase();return g==="*"||g===((f=n==null?void 0:n.event)===null||f===void 0?void 0:f.toLocaleLowerCase())}else return y.type.toLocaleLowerCase()===m})}_notThisChannelEvent(t,n){const{close:r,error:i,leave:s,join:a}=rC;return n&&[r,i,s,a].includes(t)&&n!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((t,n,r)=>{if(typeof n=="object"&&"ids"in n){const i=n.data,{schema:s,table:a,commit_timestamp:l,type:u,errors:h}=i;return Object.assign(Object.assign({},{schema:s,table:a,commit_timestamp:l,eventType:u,new:{},old:{},errors:h}),this._getPayloadRecords(i))}return n})}copyBindings(t){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const n in t.bindings)for(const r of t.bindings[n])this._on(r.type,r.filter,r.callback)}static isFilterValueEqual(t,n){return(t??void 0)===(n??void 0)}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=$x(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=$x(t.columns,t.old_record)),n}}class A4{constructor(t,n){this.socket=new E4(t,n)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(t){this.socket.heartbeatCallback=t}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(t,n,r,i=1e4){return new Promise(s=>{setTimeout(()=>s("timeout"),i),this.socket.disconnect(()=>{t(),s("ok")},n,r)})}push(t){this.socket.push(t)}log(t,n,r){this.socket.log(t,n,r)}makeRef(){return this.socket.makeRef()}onOpen(t){this.socket.onOpen(t)}onClose(t){this.socket.onClose(t)}onError(t){this.socket.onError(t)}onMessage(t){this.socket.onMessage(t)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==m0.connecting}isDisconnecting(){return this.socket.connectionState()==m0.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const N4={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},P4=[1e3,2e3,5e3,1e4],I4=1e4,O4=` 217 addEventListener("message", (e) => { 218 if (e.data.event === "start") { 219 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 220 } 221 });`;class L4{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(t,n){var r;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={}
221,this.ref=0,this.serializer=new a4,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._resolveFetch=s=>s?(...a)=>s(...a):(...a)=>fetch(...a),!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey;const i=this._initializeOptions(n);this.socketAdapter=new A4(t,i),this.httpEndpoint=sC(t),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(t){const n=t.message;throw n.includes("Node.js")?new Error(`${n} 222 223To use Realtime in Node.js, you need to provide a WebSocket implementation: 224 225Option 1: Use Node.js 22+ which has native WebSocket support 226Option 2: Install and provide the "ws" package: 227 228 npm install ws 229 230 import ws from "ws" 231 const client = new RealtimeClient(url, { 232 ...options, 233 transport: ws 234 })`):new Error(`WebSocket not available: ${n}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(t,n){return this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},t,n)}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return n==="ok"&&t.teardown(),this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=this.channels.map(async r=>{const i=await r.unsubscribe();return r.teardown(),i}),n=await Promise.all(t);return this.disconnect(),n}log(t,n,r){this.socketAdapter.log(t,n,r)}connectionState(){return this.socketAdapter.connectionState()||m0.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(t,n={config:{}}){const r=`realtime:${t}`,i=this.getChannels().find(s=>s.topic===r);if(i)return i;{const s=new Lu(`realtime:${t}`,n,this);return this.channels.push(s),s}}push(t){this.socketAdapter.push(t)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(t){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(t)}_makeRef(){return this.socketAdapter.makeRef()}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic)}async _performAuth(t=null){let n,r=!1;if(t)n=t,r=!0;else if(this.accessToken)try{n=await this.accessToken()}catch(i){this.log("error","Error fetching access token from callback",i),n=this.accessTokenValue}else n=this.accessTokenValue;r?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(i=>{const s={access_token:n,version:n4};n&&i.updateJoinPayload(s),i.joinedOnce&&i.channelAdapter.isJoined()&&i.channelAdapter.push(rC.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(n=>{this.log("error",`Error setting auth in ${t}`,n)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(n=>{this.log("error","error waiting for auth on connect",n)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(t=>{t.ref&&t.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(t){return(n,r)=>{n=="sent"&&this._setAuthSafely(),t&&t(n,r)}}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([O4],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_initializeOptions(t){var n,r,i,s,a,l,u,h,f;this.worker=(n=t==null?void 0:t.worker)!==null&&n!==void 0?n:!1,this.accessToken=(r=t==null?void 0:t.accessToken)!==null&&r!==void 0?r:null;const m={};
234m.timeout=(i=t==null?void 0:t.timeout)!==null&&i!==void 0?i:s4,m.heartbeatIntervalMs=(s=t==null?void 0:t.heartbeatIntervalMs)!==null&&s!==void 0?s:N4.HEARTBEAT_INTERVAL,m.transport=(a=t==null?void 0:t.transport)!==null&&a!==void 0?a:e4.getWebSocketConstructor(),m.params=t==null?void 0:t.params,m.logger=t==null?void 0:t.logger,m.heartbeatCallback=this._wrapHeartbeatCallback(t==null?void 0:t.heartbeatCallback),m.reconnectAfterMs=(l=t==null?void 0:t.reconnectAfterMs)!==null&&l!==void 0?l:v=>P4[v-1]||I4;let y,g;const x=(u=t==null?void 0:t.vsn)!==null&&u!==void 0?u:i4;switch(x){case r4:y=(v,k)=>k(JSON.stringify(v)),g=(v,k)=>k(JSON.parse(v));break;case nC:y=this.serializer.encode.bind(this.serializer),g=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${m.vsn}`)}if(m.vsn=x,m.encode=(h=t==null?void 0:t.encode)!==null&&h!==void 0?h:y,m.decode=(f=t==null?void 0:t.decode)!==null&&f!==void 0?f:g,m.beforeReconnect=this._reconnectAuth.bind(this),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,m.params=Object.assign(Object.assign({},m.params),{log_level:this.logLevel})),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl,m.autoSendHeartbeat=!this.worker}return m}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}var fc=class extends Error{constructor(e,t){var n;super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&((n=t.icebergType)==null?void 0:n.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function R4(e,t,n){const r=new URL(t,e);if(n)for(const[i,s]of Object.entries(n))s!==void 0&&r.searchParams.set(i,s);return r.toString()}async function j4(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function D4(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:i,body:s,headers:a}){const l=R4(e.baseUrl,r,i),u=await j4(e.auth),h=await t(l,{method:n,headers:{...s?{"Content-Type":"application/json"}:{},...u,...a},body:s?JSON.stringify(s):void 0}),f=await h.text(),m=(h.headers.get("content-type")||"").includes("application/json"),y=m&&f?JSON.parse(f):f;if(!h.ok){const g=m?y:void 0,x=g==null?void 0:g.error;throw new fc((x==null?void 0:x.message)??`Request failed with status ${h.status}`,{status:h.status,icebergType:x==null?void 0:x.type,icebergCode:x==null?void 0:x.code,details:g})}return{status:h.status,headers:h.headers,data:y}}}}function Bd(e){return e.join("�")}var M4=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:Bd(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(r=>({namespace:r}))}async createNamespace(e,t){const n={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Bd(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Bd(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Bd(e.namespace)}`}),!0}catch(t){if(t instanceof fc&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof fc&&n.status===409)return;throw n}}};function da(e){return e.join("�")}var B4=class{constructor(e,t="",n){this.client=e,this.prefix=t,this.accessDelegation=n}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${da(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${da(e.namespace)}/tables`,body:t,headers:n})).data.metadata}async updateTable(e,t){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${da(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${da(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String((t==null?void 0:t.purge)??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${da(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${da(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof fc&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof fc&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},F4=class{constructor(e){var r;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=D4({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(r=e.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new M4(this.client,t),this.tableOps=new B4(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
234async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}},Mf=class extends Error{constructor(e,t="storage",n,r){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=n,this.statusCode=r}};function Bf(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var _0=class extends Mf{constructor(e,t,n,r="storage"){super(e,r,t,n),this.name=r==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},aC=class extends Mf{constructor(e,t,n="storage"){super(e,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};const U4=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),H4=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},v0=e=>{if(Array.isArray(e))return e.map(n=>v0(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const i=n.replace(/([-_][a-z])/gi,s=>s.toUpperCase().replace(/[-_]/g,""));t[i]=v0(r)}),t},z4=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e);function pc(e){"@babel/helpers - typeof";return pc=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},pc(e)}function $4(e,t){if(pc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(pc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function q4(e){var t=$4(e,"string");return pc(t)=="symbol"?t:t+""}function W4(e,t,n){return(t=q4(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Te(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Kx(Object(n),!0).forEach(function(r){W4(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const Gx=e=>{var t;return e.msg||e.message||e.error_description||(typeof e.error=="string"?e.error:(t=e.error)===null||t===void 0?void 0:t.message)||JSON.stringify(e)},V4=async(e,t,n,r)=>{if(e!==null&&typeof e=="object"&&typeof e.json=="function"){const i=e;let s=parseInt(i.status,10);Number.isFinite(s)||(s=500),i.json().then(a=>{const l=(a==null?void 0:a.statusCode)||(a==null?void 0:a.code)||s+"";t(new _0(Gx(a),s,l,r))}).catch(()=>{const a=s+"";t(new _0(i.statusText||`HTTP ${s} error`,s,a,r))})}else t(new aC(Gx(e),e,r))},K4=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||e==="HEAD"||!r?Te(Te({},i),n):(H4(r)?(i.headers=Te({"Content-Type":"application/json"},t==null?void 0:t.headers),i.body=JSON.stringify(r)):i.body=r,t!=null&&t.duplex&&(i.duplex=t.duplex),Te(Te({},i),n))};async function lu(e,t,n,r,i,s,a){return new Promise((l,u)=>{e(n,K4(t,r,i,s)).then(h=>{if(!h.ok)throw h;if(r!=null&&r.noResolveJson)return h;if(a==="vectors"){const f=h.headers.get("content-type");if(h.headers.get("content-length")==="0"||h.status===204)return{};if(!f||!f.includes("application/json"))return{}}return h.json()}).then(h=>l(h)).catch(h=>V4(h,u,r,a))})}function lC(e="storage"){return{get:async(t,n,r,i)=>lu(t,"GET",n,r,i,void 0,e),post:async(t,n,r,i,s)=>lu(t,"POST",n,i,s,r,e),put:async(t,n,r,i,s)=>lu(t,"PUT",n,i,s,r,e),head:async(t,n,r,i)=>lu(t,"HEAD",n,Te(Te({},r),{},{noResolveJson:!0}),i,void 0,e),remove:async(t,n,r,i,s)=>lu(t,"DELETE",n,i,s,r,e)}}const G4=lC("storage"),{get:mc,post:Sr,put:x0,head:Y4,remove:cb}=G4,zn=lC("vectors");var Nl=class{constructor(e,t={},n,r="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=t,this.fetch=U4(n),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=Te(Te({},this.headers),{},{[e]:t}),this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Bf(n))return{data:null,error:n};throw n}}},Q4=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t}then(e,t){return this.execute().then(e,t)}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Bf(t))return{data:null,error:t};throw t}}};let uC;uC=Symbol.toStringTag;var Z4=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[uC]="BlobDownloadBuilder",this.promise=null}asStream(){return new Q4(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Bf(t))return{data:null,error:t};throw t}}};const X4={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Yx={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};
234var J4=class extends Nl{constructor(e,t={},n,r){super(e,t,r,"storage"),this.bucketId=n}async uploadOrUpdate(e,t,n,r){var i=this;return i.handleOperation(async()=>{let s;const a=Te(Te({},Yx),r);let l=Te(Te({},i.headers),e==="POST"&&{"x-upsert":String(a.upsert)});const u=a.metadata;typeof Blob<"u"&&n instanceof Blob?(s=new FormData,s.append("cacheControl",a.cacheControl),u&&s.append("metadata",i.encodeMetadata(u)),s.append("",n)):typeof FormData<"u"&&n instanceof FormData?(s=n,s.has("cacheControl")||s.append("cacheControl",a.cacheControl),u&&!s.has("metadata")&&s.append("metadata",i.encodeMetadata(u))):(s=n,l["cache-control"]=`max-age=${a.cacheControl}`,l["content-type"]=a.contentType,u&&(l["x-metadata"]=i.toBase64(i.encodeMetadata(u))),(typeof ReadableStream<"u"&&s instanceof ReadableStream||s&&typeof s=="object"&&"pipe"in s&&typeof s.pipe=="function")&&!a.duplex&&(a.duplex="half")),r!=null&&r.headers&&(l=Te(Te({},l),r.headers));const h=i._removeEmptyFolders(t),f=i._getFinalPath(h),m=await(e=="PUT"?x0:Sr)(i.fetch,`${i.url}/object/${f}`,s,Te({headers:l},a!=null&&a.duplex?{duplex:a.duplex}:{}));return{path:h,id:m.Id,fullPath:m.Key}})}async upload(e,t,n){return this.uploadOrUpdate("POST",e,t,n)}async uploadToSignedUrl(e,t,n,r){var i=this;const s=i._removeEmptyFolders(e),a=i._getFinalPath(s),l=new URL(i.url+`/object/upload/sign/${a}`);return l.searchParams.set("token",t),i.handleOperation(async()=>{let u;const h=Te(Te({},Yx),r),f=Te(Te({},i.headers),{"x-upsert":String(h.upsert)});return typeof Blob<"u"&&n instanceof Blob?(u=new FormData,u.append("cacheControl",h.cacheControl),u.append("",n)):typeof FormData<"u"&&n instanceof FormData?(u=n,u.append("cacheControl",h.cacheControl)):(u=n,f["cache-control"]=`max-age=${h.cacheControl}`,f["content-type"]=h.contentType),{path:s,fullPath:(await x0(i.fetch,l.toString(),u,{headers:f})).Key}})}async createSignedUploadUrl(e,t){var n=this;return n.handleOperation(async()=>{let r=n._getFinalPath(e);const i=Te({},n.headers);t!=null&&t.upsert&&(i["x-upsert"]="true");const s=await Sr(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:i}),a=new URL(n.url+s.url),l=a.searchParams.get("token");if(!l)throw new Mf("No token returned by API");return{signedUrl:a.toString(),path:e,token:l}})}async update(e,t,n){return this.uploadOrUpdate("PUT",e,t,n)}async move(e,t,n){var r=this;return r.handleOperation(async()=>await Sr(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
234stinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers}))}async copy(e,t,n){var r=this;return r.handleOperation(async()=>({path:(await Sr(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,destinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers})).Key}))}async createSignedUrl(e,t,n){var r=this;return r.handleOperation(async()=>{let i=r._getFinalPath(e);const s=typeof(n==null?void 0:n.transform)=="object"&&n.transform!==null&&Object.keys(n.transform).length>0;let a=await Sr(r.fetch,`${r.url}/object/sign/${i}`,Te({expiresIn:t},s?{transform:n.transform}:{}),{headers:r.headers});const l=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"",u=s&&a.signedURL.includes("/object/sign/")?a.signedURL.replace("/object/sign/","/render/image/sign/"):a.signedURL;return{signedUrl:encodeURI(`${r.url}${u}${l}`)}})}async createSignedUrls(e,t,n){var r=this;return r.handleOperation(async()=>{const i=await Sr(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),s=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return i.map(a=>Te(Te({},a),{},{signedUrl:a.signedURL?encodeURI(`${r.url}${a.signedURL}${s}`):null}))})}download(e,t,n){const r=typeof(t==null?void 0:t.transform)<"u"?"render/image/authenticated":"object",i=this.transformOptsToQueryString((t==null?void 0:t.transform)||{}),s=i?`?${i}`:"",a=this._getFinalPath(e),l=()=>mc(this.fetch,`${this.url}/${r}/${a}${s}`,{headers:this.headers,noResolveJson:!0},n);return new Z4(l,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);return t.handleOperation(async()=>v0(await mc(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})))}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await Y4(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(i){if(t.shouldThrowOnError)throw i;if(Bf(i)){var r;const s=i instanceof _0?i.status:i instanceof aC?(r=i.originalError)===null||r===void 0?void 0:r.status:void 0;if(s!==void 0&&[400,404].includes(s))return{data:!1,error:i}}throw i}}getPublicUrl(e,t){const n=this._getFinalPath(e),r=[],i=t!=null&&t.download?`download=${t.download===!0?"":t.download}`:"";i!==""&&r.push(i);const s=typeof(t==null?void 0:t.transform)<"u"?"render/image":"object",a=this.transformOptsToQueryString((t==null?void 0:t.transform)||{});a!==""&&r.push(a);let l=r.join("&");return l!==""&&(l=`?${l}`),{data:{publicUrl:encodeURI(`${this.url}/${s}/public/${n}${l}`)}}}async remove(e){var t=this;return t.handleOperation(async()=>await cb(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async list(e,t,n){var r=this;return r.handleOperation(async()=>{const i=Te(Te(Te({},X4),t),{},{prefix:e||""});return await Sr(r.fetch,`${r.url}/object/list/${r.bucketId}`,i,{headers:r.headers},n)})}async listV2(e,t){var n=this;return n.handleOperation(async()=>{const r=Te({},e);return await Sr(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const t=[];return e.width&&t.push(`width=${e.width}`),e.height&&t.push(`height=${e.height}`),e.resize&&t.push(`resize=${e.resize}`),e.format&&t.push(`format=${e.format}`),e.quality&&t.push(`quality=${e.quality}`),t.join("&")}};const eM="2.101.1",Dc={"X-Client-Info":`storage-js/${eM}`};var tM=class extends Nl{constructor(e,t={},n,r){const i=new URL(e);r!=null&&r.useNewHostname&&/supabase\.(co|in|red)$/.test(i.hostname)&&!i.hostname.includes("storage.supabase.")&&(i.hostname=i.hostname.replace("supabase.","storage.supabase."));const s=i.href.replace(/\/$/,""),a=Te(Te({},Dc),t);super(s,a,n,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=t.listBucketOptionsToQueryString(e);return await mc(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await mc(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var n=this;return n.handleOperation(async()=>await Sr(n.fetch,`${n.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async updateBucket(e,t){var n=this;return n.handleOperation(async()=>await x0(n.fetch,`${n.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await Sr(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await cb(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}}
234,nM=class extends Nl{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=Te(Te({},Dc),t);super(r,i,n,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Sr(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&n.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&n.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&n.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&n.set("sortOrder",e.sortOrder),e!=null&&e.search&&n.set("search",e.search);const r=n.toString(),i=r?`${t.url}/bucket?${r}`:`${t.url}/bucket`;return await mc(t.fetch,i,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await cb(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!z4(e))throw new Mf("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const n=new F4({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}),r=this.shouldThrowOnError;return new Proxy(n,{get(i,s){const a=i[s];return typeof a!="function"?a:async(...l)=>{try{return{data:await a.apply(i,l),error:null}}catch(u){if(r)throw u;return{data:null,error:u}}}}})}},rM=class extends Nl{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=Te(Te({},Dc),{},{"Content-Type":"application/json"},t);super(r,i,n,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await zn.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var n=this;return n.handleOperation(async()=>await zn.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await zn.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var n=this;return n.handleOperation(async()=>await zn.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{})}},iM=class extends Nl{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=Te(Te({},Dc),{},{"Content-Type":"application/json"},t);super(r,i,n,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await zn.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await zn.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await zn.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await zn.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await zn.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},sM=class extends Nl{constructor(e,t={},n){const r=e.replace(/\/$/,""),i=Te(Te({},Dc),{},{"Content-Type":"application/json"},t);super(r,i,n,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await zn.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await zn.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await zn.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await zn.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},oM=class extends sM{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new aM(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,n=this;return t().call(n,e)}async getBucket(e){var t=()=>super.getBucket,n=this;return t().call(n,e)}async listBuckets(e={}){var t=()=>super.listBuckets,n=this;return t().call(n,e)}async deleteBucket(e){var t=()=>super.deleteBucket,n=this;return t().call(n,e)}},aM=class extends rM{constructor(e,t,n,r){super(e,t,r),this.vectorBucketName=n}async createIndex(e){var t=()=>super.createIndex,n=this;return t().call(n,Te(Te({},e),{},{vectorBucketName:n.vectorBucketName}))}
234async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,Te(Te({},e),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,n=this;return t().call(n,n.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,n=this;return t().call(n,n.vectorBucketName,e)}index(e){return new lM(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},lM=class extends iM{constructor(e,t,n,r,i){super(e,t,i),this.vectorBucketName=n,this.indexName=r}async putVectors(e){var t=()=>super.putVectors,n=this;return t().call(n,Te(Te({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,Te(Te({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,Te(Te({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,Te(Te({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,Te(Te({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},uM=class extends tM{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new J4(this.url,this.headers,e,this.fetch)}get vectors(){return new oM(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new nM(this.url+"/iceberg",this.headers,this.fetch)}};const cC="2.101.1",va=30*1e3,E0=3,gm=E0*va,cM="http://localhost:9999",dM="supabase.auth.token",hM={"X-Client-Info":`gotrue-js/${cC}`},w0="X-Supabase-Api-Version",dC={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},fM=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,pM=10*60*1e3;class gc extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function be(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class mM extends gc{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function gM(e){return be(e)&&e.name==="AuthApiError"}class yo extends gc{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class $i extends gc{constructor(t,n,r,i){super(t,r,i),this.name=n,this.status=r}}class Bn extends $i{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function ym(e){return be(e)&&e.name==="AuthSessionMissingError"}class ha extends $i{constructor(){super("Auth session or user missing","AuthInvalidToken
234ResponseError",500,void 0)}}class Fd extends $i{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Ud extends $i{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function yM(e){return be(e)&&e.name==="AuthImplicitGrantRedirectError"}class Qx extends $i{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class bM extends $i{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class T0 extends $i{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function bm(e){return be(e)&&e.name==="AuthRetryableFetchError"}class Zx extends $i{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class S0 extends $i{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Yh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Xx=` 235\r=`.split(""),_M=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<Xx.length;t+=1)e[Xx[t].charCodeAt(0)]=-2;for(let t=0;t<Yh.length;t+=1)e[Yh[t].charCodeAt(0)]=t;return e})();function Jx(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Yh[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Yh[r]),t.queuedBits-=6}}function hC(e,t,n){const r=_M[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function e1(e){const t=[],n=a=>{t.push(String.fromCodePoint(a))},r={utf8seq:0,codepoint:0},i={queue:0,queuedBits:0},s=a=>{EM(a,r,n)};for(let a=0;a<e.length;a+=1)hC(e.charCodeAt(a),i,s);return t.join("")}function vM(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function xM(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const i=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|i)+65536,n+=1}vM(r,t)}}function EM(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function Ga(e){const t=[],n={queue:0,queuedBits:0},r=i=>{t.push(i)};for(let i=0;i<e.length;i+=1)hC(e.charCodeAt(i),n,r);return new Uint8Array(t)}function wM(e){const t=[];return xM(e,n=>t.push(n)),new Uint8Array(t)}function Eo(e){const t=[],n={queue:0,queuedBits:0},r=i=>{t.push(i)};return e.forEach(i=>Jx(i,n,r)),Jx(null,n,r),t.join("")}function TM(e){return Math.round(Date.now()/1e3)+e}function SM(){return Symbol("auth-callback")}const Vt=()=>typeof window<"u"&&typeof document<"u",uo={tested:!1,writable:!1},fC=()=>{if(!Vt())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(uo.tested)return uo.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),uo.tested=!0,uo.writable=!0}catch{uo.tested=!0,uo.writable=!1}return uo.writable};function kM(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEac
235h((i,s)=>{t[s]=i})}catch{}return n.searchParams.forEach((r,i)=>{t[i]=r}),t}const pC=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),CM=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",xa=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},co=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},Wt=async(e,t)=>{await e.removeItem(t)};class Ff{constructor(){this.promise=new Ff.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}Ff.promiseConstructor=Promise;function Hd(e){const t=e.split(".");if(t.length!==3)throw new S0("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!fM.test(t[r]))throw new S0("JWT not in base64url format");return{header:JSON.parse(e1(t[0])),payload:JSON.parse(e1(t[1])),signature:Ga(t[2]),raw:{header:t[0],payload:t[1]}}}async function AM(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function NM(e,t){return new Promise((r,i)=>{(async()=>{for(let s=0;s<1/0;s++)try{const a=await e(s);if(!t(s,null,a)){r(a);return}}catch(a){if(!t(s,a)){i(a);return}}})()})}function PM(e){return("0"+e.toString(16)).substr(-2)}function IM(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let i="";for(let s=0;s<56;s++)i+=n.charAt(Math.floor(Math.random()*r));return i}return crypto.getRandomValues(t),Array.from(t,PM).join("")}async function OM(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),i=new Uint8Array(r);return Array.from(i).map(s=>String.fromCharCode(s)).join("")}async function LM(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await OM(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function fa(e,t,n=!1){const r=IM();let i=r;n&&(i+="/PASSWORD_RECOVERY"),await xa(e,`${t}-code-verifier`,i);const s=await LM(r);return[s,r===s?"plain":"s256"]}const RM=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function jM(e){const t=e.headers.get(w0);if(!t||!t.match(RM))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function DM(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function MM(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const BM=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function pa(e){if(!BM.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function _m(){const e={};return new Proxy(e,{get:(t,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function FM(e,t){return new Proxy(e,{get:(n,r,i)=>{if(r==="__isInsecureUserWarningProxy")return!0;if(typeof r=="symbol"){const s=r.toString();if(s==="Symbol(Symbol.toPrimitive)"||s==="Symbol(Symbol.toStringTag)"||s==="Symbol(util.inspect.custom)"||s==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,i)}return!t.value&&typeof r=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(n,r,i)}})}function t1(e){return JSON.parse(JSON.stringify(e))}const go=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),UM=[502,503,504];async function n1(e){var t;if(!CM(e))throw new T0(go(e),0);if(UM.includes(e.status))throw new T0(go(e),e.status);let n;try{n=await e.json()}catch(s){throw new yo(go(s),s)}let r;const i=jM(e);if(i&&i.getTime()>=dC["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new Zx(go(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new Bn}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((s,a)=>
235s&&typeof a=="string",!0))throw new Zx(go(n),e.status,n.weak_password.reasons);throw new mM(go(n),e.status||500,r)}const HM=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),i.body=JSON.stringify(r),Object.assign(Object.assign({},i),n))};async function we(e,t,n,r){var i;const s=Object.assign({},r==null?void 0:r.headers);s[w0]||(s[w0]=dC["2024-01-01"].name),r!=null&&r.jwt&&(s.Authorization=`Bearer ${r.jwt}`);const a=(i=r==null?void 0:r.query)!==null&&i!==void 0?i:{};r!=null&&r.redirectTo&&(a.redirect_to=r.redirectTo);const l=Object.keys(a).length?"?"+new URLSearchParams(a).toString():"",u=await zM(e,t,n+l,{headers:s,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(u):{data:Object.assign({},u),error:null}}async function zM(e,t,n,r,i,s){const a=HM(t,r,i,s);let l;try{l=await e(n,Object.assign({},a))}catch(u){throw console.error(u),new T0(go(u),0)}if(l.ok||await n1(l),r!=null&&r.noResolveJson)return l;try{return await l.json()}catch(u){await n1(u)}}function wr(e){var t;let n=null;WM(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=TM(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function r1(e){const t=wr(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function _s(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function $M(e){return{data:e,error:null}}function qM(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:s}=e,a=Df(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),l={action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:s},u=Object.assign({},a);return{data:{properties:l,user:u},error:null}}function i1(e){return e}function WM(e){return e.access_token&&e.refresh_token&&e.expires_in}const vm=["global","local","others"];class VM{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=pC(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)}}async signOut(t,n=vm[0]){if(vm.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${vm.join(", ")}`);try{return await we(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(be(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await we(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:_s})}catch(r){if(be(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=Df(t,["options"]),i=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(i.new_email=r==null?void 0:r.newEmail,delete i.newEmail),await we(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:i,headers:this.headers,xform:qM,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(be(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await we(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:_s})}catch(n){if(be(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,i,s,a,l,u;try{const h={nextPage:null,lastPage:0,total:0},f=await we(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(s=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:""},xform:i1});if(f.error)throw f.error;const m=await f.json(),y=(a=f.headers.get("x-total-count"))!==null&&a!==void 0?a:0,g=(u=(l=f.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&u!==void 0?u:[];return g.length>0&&(g.forEach(x=>{const v=parseInt(x.split(";")[0].split("=")[1].substring(0,1)),k=JSON.parse(x.split(";")[1].split("=")[1]);h[`${k}Page`]=v}),h.total=parseInt(y)),{data:Object.assign(Object.assign({},m),h),error:null}}catch(h){if(be(h))return{data:{users:[]},error:h};throw h}}async getUserById(t){pa(t);try{return await we(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:_s})}catch(n){if(be(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){pa(t);try{return await we(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:_s})}catch(r){if(be(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){pa(t);
235try{return await we(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:_s})}catch(r){if(be(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){pa(t.userId);try{const{data:n,error:r}=await we(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:i=>({data:{factors:i},error:null})});return{data:n,error:r}}catch(n){if(be(n))return{data:null,error:n};throw n}}async _deleteFactor(t){pa(t.userId),pa(t.id);try{return{data:await we(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(be(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,r,i,s,a,l,u;try{const h={nextPage:null,lastPage:0,total:0},f=await we(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(s=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:""},xform:i1});if(f.error)throw f.error;const m=await f.json(),y=(a=f.headers.get("x-total-count"))!==null&&a!==void 0?a:0,g=(u=(l=f.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&u!==void 0?u:[];return g.length>0&&(g.forEach(x=>{const v=parseInt(x.split(";")[0].split("=")[1].substring(0,1)),k=JSON.parse(x.split(";")[1].split("=")[1]);h[`${k}Page`]=v}),h.total=parseInt(y)),{data:Object.assign(Object.assign({},m),h),error:null}}catch(h){if(be(h))return{data:{clients:[]},error:h};throw h}}async _createOAuthClient(t){try{return await we(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(be(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await we(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(be(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await we(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(be(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await we(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(be(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await we(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(be(n))return{data:null,error:n};throw n}}async _listCustomProviders(t){try{const n={};return t!=null&&t.type&&(n.type=t.type),await we(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:n,xform:r=>{var i;return{data:{providers:(i=r==null?void 0:r.providers)!==null&&i!==void 0?i:[]},error:null}}})}catch(n){if(be(n))return{data:{providers:[]},error:n};throw n}}async _createCustomProvider(t){try{return await we(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(be(n))return{data:null,error:n};throw n}}async _getCustomProvider(t){try{return await we(this.fetch,"GET",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(be(n))return{data:null,error:n};throw n}}async _updateCustomProvider(t,n){try{return await we(this.fetch,"PUT",`${this.url}/admin/custom-providers/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(be(r))return{data:null,error:r};throw r}}async _deleteCustomProvider(t){try{return await we(this.fetch,"DELETE",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(be(n))return{data:null,error:n};throw n}}}function s1(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const Qr={debug:!!(globalThis&&fC()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};
235class mC extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class o1 extends mC{}async function KM(e,t,n){Qr.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;let i;t>0&&(i=setTimeout(()=>{r.abort(),Qr.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t)),await Promise.resolve();try{return await globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async s=>{if(s){clearTimeout(i),Qr.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await n()}finally{Qr.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw Qr.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new o1(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(Qr.debug)try{const a=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(a,null," "))}catch(a){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",a)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),clearTimeout(i),await n()}})}catch(s){if(t>0&&clearTimeout(i),(s==null?void 0:s.name)==="AbortError"&&t>0){if(r.signal.aborted)return Qr.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire timeout, recovering by stealing lock",e),console.warn(`@supabase/gotrue-js: Lock "${e}" was not released within ${t}ms. This may indicate an orphaned lock from a component unmount (e.g., React Strict Mode). Forcefully acquiring the lock to recover.`),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,{mode:"exclusive",steal:!0},async a=>{if(a){Qr.debug&&console.log("@supabase/gotrue-js: navigatorLock: recovered (stolen)",e,a.name);try{return await n()}finally{Qr.debug&&console.log("@supabase/gotrue-js: navigatorLock: released (stolen)",e,a.name)}}else return console.warn("@supabase/gotrue-js: Navigator LockManager returned null lock even with steal: true"),await n()}));throw Qr.debug&&console.log("@supabase/gotrue-js: navigatorLock: lock was stolen by another request",e),new o1(`Lock "${e}" was released because another request stole it`)}throw s}}function GM(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function gC(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function YM(e){return parseInt(e,16)}function QM(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function ZM(e){var t;const{chainId:n,domain:r,expirationTime:i,issuedAt:s=new Date,nonce:a,notBefore:l,requestId:u,resources:h,scheme:f,uri:m,version:y}=e;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(a&&a.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${a}`);if(!m)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(y!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${y}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(` 236`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const g=gC(e.address),x=f?`${f}://${r}`:r,v=e.statement?`${e.statement} 237`:"",k=`${x} wants you to sign in with your Ethereum account: 238${g} 239 240${v}`;let E=`URI: ${m} 241Version: ${y} 242Chain ID: ${n}${a?` 243Nonce: ${a}`:""} 244Issued At: ${s.toISOString()}`;if(i&&(E+=` 245Expiration Time: ${i.toISOString()}`),l&&(E+=` 246Not Before: ${l.toISOString()}`),u&&(E+=` 247Request ID: ${u}`),h){let S=` 248Resources:`;for(const T of h){if(!T||typeof T!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${T}`);S+=` 249- ${T}`}E+=S}return`${k} 250${E}`}
250class Pt extends Error{constructor({message:t,code:n,cause:r,name:i}){var s;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=(s=i??(r instanceof Error?r.name:void 0))!==null&&s!==void 0?s:"Unknown Error",this.code=n}}class Qh extends Pt{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function XM({error:e,options:t}){var n,r,i;const{publicKey:s}=t;if(!s)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Pt({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((n=s.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new Pt({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((r=s.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new Pt({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((i=s.authenticatorSelection)===null||i===void 0?void 0:i.userVerification)==="required")return new Pt({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new Pt({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Pt({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return s.pubKeyCredParams.filter(l=>l.type==="public-key").length===0?new Pt({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Pt({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const a=window.location.hostname;if(yC(a)){if(s.rp.id!==a)return new Pt({message:`The RP ID "${s.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Pt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(s.user.id.byteLength<1||s.user.id.byteLength>64)return new Pt({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new Pt({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Pt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function JM({error:e,options:t}){const{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Pt({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Pt({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(yC(r)){if(n.rpId!==r)return new Pt({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Pt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Pt({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Pt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class e5{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const t5=new e5;function n5(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:n,excludeCredentials:r}=e,i=Df(e,["challenge","user","excludeCredentials"]),s=Ga(t).buffer,a=Object.assign(Object.assign({},n),{id:Ga(n.id).buffer}),l=Object.assign(Object.assign({},i),{challenge:s,user:a});if(r&&r.length>0){l.excludeCredentials=new Array(r.length);for(let u=0;u<r.length;u++){const h=r[u];l.excludeCredentials[u]=Object.assign(Object.assign({},h),{id:Ga(h.id).buffer,type:h.type||"public-key",transports:h.transports})}}return l}function r5(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:n}=e,r=Df(e,["challenge","allowCredentials"]),i=Ga(t).buffer,s=Object.assign(Object.assign({},r),{challenge:i});if(n&&n.length>0){s.allowCredentials=new Array(n.length);for(let a=0;a<n.length;a++){const l=n[a];s.allowCredentials[a]=Object.assign(Object.assign({},l),{id:Ga(l.id).buffer,type:l.type||"public-key",transports:l.transports})}}return s}function i5(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e;return{id:e.id,rawId:e.id,response:{attestationObject:Eo(new Uint8Array(e.response.attestationObject)),clientDataJSON:Eo(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function s5(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e,r=e.getClientExtensionResults(),i=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:Eo(new Uint8Array(i.authenticatorData)),clientDataJSON:Eo(new Uint8Array(i.clientDataJSON)),signature:Eo(new Uint8Array(i.signature)),userHandle:i.userHandle?Eo(new Uint8Array(i.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function yC(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function a1(){var e,t;return!!(Vt()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.get)=="function")}async function o5(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Qh("Browser returned unexpected credential type",t)}:{data:null,error:new Qh("Empty credential response",t)}}
250catch(t){return{data:null,error:XM({error:t,options:e})}}}async function a5(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Qh("Browser returned unexpected credential type",t)}:{data:null,error:new Qh("Empty credential response",t)}}catch(t){return{data:null,error:JM({error:t,options:e})}}}const l5={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},u5={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Zh(...e){const t=i=>i!==null&&typeof i=="object"&&!Array.isArray(i),n=i=>i instanceof ArrayBuffer||ArrayBuffer.isView(i),r={};for(const i of e)if(i)for(const s in i){const a=i[s];if(a!==void 0)if(Array.isArray(a))r[s]=a;else if(n(a))r[s]=a;else if(t(a)){const l=r[s];t(l)?r[s]=Zh(l,a):r[s]=Zh(a)}else r[s]=a}return r}function c5(e,t){return Zh(l5,e,t||{})}function d5(e,t){return Zh(u5,e,t||{})}class h5{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:n,friendlyName:r,signal:i},s){var a;try{const{data:l,error:u}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!l)return{data:null,error:u};const h=i??t5.createNewAbortSignal();if(l.webauthn.type==="create"){const{user:f}=l.webauthn.credential_options.publicKey;if(!f.name){const m=r;if(m)f.name=`${f.id}:${m}`;else{const g=(await this.client.getUser()).data.user,x=((a=g==null?void 0:g.user_metadata)===null||a===void 0?void 0:a.name)||(g==null?void 0:g.email)||(g==null?void 0:g.id)||"User";f.name=`${f.id}:${x}`}}f.displayName||(f.displayName=f.name)}switch(l.webauthn.type){case"create":{const f=c5(l.webauthn.credential_options.publicKey,s==null?void 0:s.create),{data:m,error:y}=await o5({publicKey:f,signal:h});return m?{data:{factorId:t,challengeId:l.id,webauthn:{type:l.webauthn.type,credential_response:m}},error:null}:{data:null,error:y}}case"request":{const f=d5(l.webauthn.credential_options.publicKey,s==null?void 0:s.request),{data:m,error:y}=await a5(Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:f,signal:h}));return m?{data:{factorId:t,challengeId:l.id,webauthn:{type:l.webauthn.type,credential_response:m}},error:null}:{data:null,error:y}}}}catch(l){return be(l)?{data:null,error:l}:{data:null,error:new yo("Unexpected error in challenge",l)}}}async _verify({challengeId:t,factorId:n,webauthn:r}){return this.client.mfa.verify({factorId:n,challengeId:t,webauthn:r})}async _authenticate({factorId:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:i}={}},s){if(!n)return{data:null,error:new gc("rpId is required for WebAuthn authentication")};try{if(!a1())return{data:null,error:new yo("Browser does not support WebAuthn",null)};const{data:a,error:l}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:r},signal:i},{request:s});if(!a)return{data:null,error:l};const{webauthn:u}=a;return this._verify({factorId:t,challengeId:a.challengeId,webauthn:{type:u.type,rpId:n,rpOrigins:r,credential_response:u.credential_response}})}catch(a){return be(a)?{data:null,error:a}:{data:null,error:new yo("Unexpected error in authenticate",a)}}}async _register({friendlyName:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:i}={}},s){if(!n)return{data:null,error:new gc("rpId is required for WebAuthn registration")};try{if(!a1())return{data:null,error:new yo("Browser does not support WebAuthn",null)};const{data:a,error:l}=await this._enroll({friendlyName:t});if(!a)return await this.client.mfa.listFactors().then(f=>{var m;return(m=f.data)===null||m===void 0?void 0:m.all.find(y=>y.factor_type==="webauthn"&&y.friendly_name===t&&y.status!=="unverified")}).then(f=>f?this.client.mfa.unenroll({factorId:f==null?void 0:f.id}):void 0),{data:null,error:l};const{data:u,error:h}=await this._challenge({factorId:a.id,friendlyName:a.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:i},{create:s});return u?this._verify({factorId:a.id,challengeId:u.challengeId,webauthn:{rpId:n,rpOrigins:r,type:u.webauthn.type,credential_response:u.webauthn.credential_response}}):{data:null,error:h}}catch(a){return be(a)?{data:null,error:a}:{data:null,error:new yo("Unexpected error in register",a)}}}}GM();const f5={url:cM,storageKey:dM,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:hM,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1};async function l1(e,t,n){return await n()}const ma={};class yc{get jwks(){var t,n;return(n=(t=ma[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){ma[this.storageKey]=Object.assign(Object.assign({},ma[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=ma[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){ma[this.storageKey]=Object.assign(Object.assign({},ma[this.storageKey]),{cachedAt:t})}constructor(t){var n,r,i;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const s=Object.assign(Object.assign({},f5),t);
250if(this.storageKey=s.storageKey,this.instanceID=(n=yc.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,yc.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.instanceID>0&&Vt()){const a=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(a),this.logDebugMessages&&console.trace(a)}if(this.persistSession=s.persistSession,this.autoRefreshToken=s.autoRefreshToken,this.admin=new VM({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=pC(s.fetch),this.lock=s.lock||l1,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,this.throwOnError=s.throwOnError,this.lockAcquireTimeout=s.lockAcquireTimeout,s.lock?this.lock=s.lock:this.persistSession&&Vt()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=KM:this.lock=l1,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new h5(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(s.storage?this.storage=s.storage:fC()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=s1(this.memoryStorage)),s.userStorage&&(this.userStorage=s.userStorage)):(this.memoryStorage={},this.storage=s1(this.memoryStorage)),Vt()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(a){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",a)}(i=this.broadcastChannel)===null||i===void 0||i.addEventListener("message",async a=>{this._debug("received broadcast notification from other tab or client",a);try{await this._notifyAllSubscribers(a.data.event,a.data.session,!1)}catch(l){this._debug("#broadcastChannel","error",l)}})}s.skipAutoInitialize||this.initialize().catch(a=>{this._debug("#initialize()","error",a)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${cC}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let n={},r="none";if(Vt()&&(n=kM(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),Vt()&&this.detectSessionInUrl&&r!=="none"){const{data:i,error:s}=await this._getSessionFromURL(n,r);if(s){if(this._debug("#_initialize()","error detecting session from URL",s),yM(s)){const u=(t=s.details)===null||t===void 0?void 0:t.code;if(u==="identity_already_exists"||u==="identity_not_found"||u==="single_identity_not_deletable")return{error:s}}return{error:s}}const{session:a,redirectType:l}=i;return this._debug("#_initialize()","detected session in URL",a,"redirect type",l),await this._saveSession(a),setTimeout(async()=>{l==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",a):await this._notifyAllSubscribers("SIGNED_IN",a)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return be(n)?this._returnResult({error:n}):this._returnResult({error:new yo("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,i;try{const s=await we(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(i=t==null?void 0:t.options)===null||i===void 0?void 0:i.captchaToken}},xform:wr}),{data:a,error:l}=s;if(l||!a)return this._returnResult({data:{user:null,session:null},error:l});const u=a.session,h=a.user;return a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",u)),this._returnResult({data:{user:h,session:u},error:null})}catch(s){if(be(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signUp(t){var n,r,i;try{let s;if("email"in t){const{email:f,password:m,options:y}=t;let g=null,x=null;this.flowType==="pkce"&&([g,x]=await fa(this.storage,this.storageKey)),s=await we(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:y==null?void 0:y.emailRedirectTo,body:{email:f,password:m,data:(n=y==null?void 0:y.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:y==null?void 0:y.captchaToken},code_challenge:g,code_challenge_method:x},xform:wr})}else if("phone"in t){const{phone:f,password:m,options:y}=t;s=await we(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:f,password:m,data:(r=y==null?void 0:y.data)!==null&&r!==void 0?r:{},channel:(i=y==null?void 0:y.channel)!==null&&i!==void 0?i:"sms",gotrue_meta_security:{captcha_token:y==null?void 0:y.captchaToken}},xform:wr})}else throw new Fd("You must provide either an email or phone number and a password");const{data:a,error:l}=s;if(l||!a)return await Wt(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:l});const u=a.session,h=a.user;return a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",u)),this._returnResult({data:{user:h,session:u},error:null})}catch(s){if(await Wt(this.storage,`${this.storageKey}-code-verifier`),be(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithPassword(t){try{let n;if("email"in t){const{email:s,password:a,options:l}=t;n=await we(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:s,password:a,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:r1})}else if("phone"in t){const{phone:s,password:a,options:l}=t;n=await we(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:s,password:a,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:r1})}else throw new Fd("You must provide either an email or phone number and a password");const{data:r,error:i}=n;if(i)return this._returnResult({data:{user:null,session:null},error:i});if(!r||!r.session||!r.user){const s=new ha;return this._returnResult({data:{user:null,session:null},error:s})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),this._returnResult({data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:i})}catch(n){if(be(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(t){var n,r,i,s;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(i=t.options)===null||i===void 0?void 0:i.queryParams,skipBrowserRedirect:(s=t.options)===null||s===void 0?void 0:s.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:n}=t;switch(n){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(t){var n,r,i,s,a,l,u,h,f,m,y;let g,x;if("message"in t)g=t.message,x=t.signature;else{const{chain:v,wallet:k,statement:E,options:S}=t;let T;if(Vt())if(typeof k=="object")T=k;else{const Q=window;if("ethereum"in Q&&typeof Q.ethereum=="object"&&"request"in Q.ethereum&&typeof Q.ethereum.request=="function")T=Q.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof k!="object"||!(S!=null&&S.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");T=k}const P=new URL((n=S==null?void 0:S.url)!==null&&n!==void 0?n:window.location.href),F=await T.request({method:"eth_requestAccounts"}).then(Q=>Q).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!F||F.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const O=gC(F[0]);let H=(r=S==null?void 0:S.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!H){const Q=await T.request({method:"eth_chainId"});H=YM(Q)}const K={domain:P.host,address:O,statement:E,uri:P.href,version:"1",chainId:H,nonce:(i=S==null?void 0:S.signInWithEthereum)===null||i===void 0?void 0:i.nonce,issuedAt:(a=(s=S==null?void 0:S.signInWithEthereum)===null||s===void 0?void 0:s.issuedAt)!==null&&a!==void 0?a:new Date,expirationTime:(l=S==null?void 0:S.signInWithEthereum)===null||l===void 0?void 0:l.expirationTime,notBefore:(u=S==null?void 0:S.signInWithEthereum)===null||u===void 0?void 0:u.notBefore,requestId:(h=S==null?void 0:S.signInWithEthereum)===null||h===void 0?void 0:h.requestId,resources:(f=S==null?void 0:S.signInWithEthereum)===null||f===void 0?void 0:f.resources};g=ZM(K),x=await T.request({method:"personal_sign",params:[QM(g),O]})}try{const{data:v,error:k}=await we(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:g,signature:x},!((m=t.options)===null||m===void 0)&&m.captchaToken?{gotrue_meta_security:{captcha_token:(y=t.options)===null||y===void 0?void 0:y.captchaToken}}:null),xform:wr});if(k)throw k;if(!v||!v.session||!v.user){const E=new ha;return this._returnResult({data:{user:null,session:null},error:E})}return v.session&&(await this._saveSession(v.session),await this._notifyAllSubscribers("SIGNED_IN",v.session)),this._returnResult({data:Object.assign({},v),error:k})}catch(v){if(be(v))return this._returnResult({data:{user:null,session:null},error:v});throw v}}async signInWithSolana(t){var n,r,i,s,a,l,u,h,f,m,y,g;let x,v;if("message"in t)x=t.message,v=t.signature;else{const{chain:k,wallet:E,statement:S,options:T}=t;let P;if(Vt())if(typeof E=="object")P=E;else{const O=window;if("solana"in O&&typeof O.solana=="object"&&("signIn"in O.solana&&typeof O.solana.signIn=="function"||"signMessage"in O.solana&&typeof O.solana.signMessage=="function"))P=O.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof E!="object"||!(T!=null&&T.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");P=E}const F=new URL((n=T==null?void 0:T.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in P&&P.signIn){const O=await P.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},T==null?void 0:T.signInWithSolana),{version:"1",domain:F.host,uri:F.href}),S?{statement:S}:null));let H;if(Array.isArray(O)&&O[0]&&typeof O[0]=="object")H=O[0];else if(O&&typeof O=="object"&&"signedMessage"in O&&"signature"in O)H=O;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in H&&"signature"in H&&(typeof H.signedMessage=="string"||H.signedMessage instanceof Uint8Array)&&H.signature instanceof Uint8Array)x=typeof H.signedMessage=="string"?H.signedMessage:new TextDecoder().decode(H.signedMessage),v=H.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in P)||typeof P.signMessage!="function"||!("publicKey"in P)||typeof P!="object"||!P.publicKey||!("toBase58"in P.publicKey)||typeof P.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");x=[`${F.host} wants you to sign in with your Solana account:`,P.publicKey.toBase58(),...S?["",S,""]:[""],"Version: 1",`URI: ${F.href}`,`Issued At: ${(i=(r=T==null?void 0:T.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&i!==void 0?i:new Date().toISOString()}`,...!((s=T==null?void 0:T.signInWithSolana)===null||s===void 0)&&s.notBefore?[`Not Before: ${T.signInWithSolana.notBefore}`]:[],...!((a=T==null?void 0:T.signInWithSolana)===null||a===void 0)&&a.expirationTime?[`Expiration Time: ${T.signInWithSolana.expirationTime}`]:[],...!((l=T==null?void 0:T.signInWithSolana)===null||l===void 0)&&l.chainId?[`Chain ID: ${T.signInWithSolana.chainId}`]:[],...!((u=T==null?void 0:T.signInWithSolana)===null||u===void 0)&&u.nonce?[`Nonce: ${T.signInWithSolana.nonce}`]:[],...!((h=T==null?void 0:T.signInWithSolana)===null||h===void 0)&&h.requestId?[`Request ID: ${T.signInWithSolana.requestId}`]:[],...!((m=(f=T==null?void 0:T.signInWithSolana)===null||f===void 0?void 0:f.resources)===null||m===void 0)&&m.length?["Resources",...T.
250signInWithSolana.resources.map(H=>`- ${H}`)]:[]].join(` 251`);const O=await P.signMessage(new TextEncoder().encode(x),"utf8");if(!O||!(O instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");v=O}}try{const{data:k,error:E}=await we(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:x,signature:Eo(v)},!((y=t.options)===null||y===void 0)&&y.captchaToken?{gotrue_meta_security:{captcha_token:(g=t.options)===null||g===void 0?void 0:g.captchaToken}}:null),xform:wr});if(E)throw E;if(!k||!k.session||!k.user){const S=new ha;return this._returnResult({data:{user:null,session:null},error:S})}return k.session&&(await this._saveSession(k.session),await this._notifyAllSubscribers("SIGNED_IN",k.session)),this._returnResult({data:Object.assign({},k),error:E})}catch(k){if(be(k))return this._returnResult({data:{user:null,session:null},error:k});throw k}}async _exchangeCodeForSession(t){const n=await co(this.storage,`${this.storageKey}-code-verifier`),[r,i]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new bM;const{data:s,error:a}=await we(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:wr});if(await Wt(this.storage,`${this.storageKey}-code-verifier`),a)throw a;if(!s||!s.session||!s.user){const l=new ha;return this._returnResult({data:{user:null,session:null,redirectType:null},error:l})}return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),this._returnResult({data:Object.assign(Object.assign({},s),{redirectType:i??null}),error:a})}catch(s){if(await Wt(this.storage,`${this.storageKey}-code-verifier`),be(s))return this._returnResult({data:{user:null,session:null,redirectType:null},error:s});throw s}}async signInWithIdToken(t){try{const{options:n,provider:r,token:i,access_token:s,nonce:a}=t,l=await we(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:i,access_token:s,nonce:a,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:wr}),{data:u,error:h}=l;if(h)return this._returnResult({data:{user:null,session:null},error:h});if(!u||!u.session||!u.user){const f=new ha;return this._returnResult({data:{user:null,session:null},error:f})}return u.session&&(await this._saveSession(u.session),await this._notifyAllSubscribers("SIGNED_IN",u.session)),this._returnResult({data:u,error:h})}catch(n){if(be(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(t){var n,r,i,s,a;try{if("email"in t){const{email:l,options:u}=t;let h=null,f=null;this.flowType==="pkce"&&([h,f]=await fa(this.storage,this.storageKey));const{error:m}=await we(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:l,data:(n=u==null?void 0:u.data)!==null&&n!==void 0?n:{},create_user:(r=u==null?void 0:u.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:u==null?void 0:u.captchaToken},code_challenge:h,code_challenge_method:f},redirectTo:u==null?void 0:u.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:m})}if("phone"in t){const{phone:l,options:u}=t,{data:h,error:f}=await we(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:l,data:(i=u==null?void 0:u.data)!==null&&i!==void 0?i:{},create_user:(s=u==null?void 0:u.shouldCreateUser)!==null&&s!==void 0?s:!0,gotrue_meta_security:{captcha_token:u==null?void 0:u.captchaToken},channel:(a=u==null?void 0:u.channel)!==null&&a!==void 0?a:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:h==null?void 0:h.message_id},error:f})}throw new Fd("You must provide either an email or phone number.")}catch(l){if(await Wt(this.storage,`${this.storageKey}-code-verifier`),be(l))return this._returnResult({data:{user:null,session:null},error:l});throw l}}async verifyOtp(t){var n,r;try{let i,s;"options"in t&&(i=(n=t.options)===null||n===void 0?void 0:n.redirectTo,s=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:a,error:l}=await we(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:s}}),redirectTo:i,xform:wr});if(l)throw l;if(!a)throw new Error("An error occurred on token verification.");const u=a.session,h=a.user;return u!=null&&u.access_token&&(await this._saveSession(u),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",u)),this._returnResult({data:{user:h,session:u},error:null})}catch(i){if(be(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithSSO(t){var n,r,i,s,a;try{let l=null,u=null;this.flowType==="pkce"&&([l,u]=await fa(this.storage,this.storageKey));const h=await we(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((i=t==null?void 0:t.options)===null||i===void 0)&&i.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:l,code_challenge_method:u}),headers:this.headers,xform:$M});return!((s=h.data)===null||s===void 0)&&s.url&&Vt()&&!(!((a=t.options)===null||a===void 0)&&a.skipBrowserRedirect)&&window.location.assign(h.data.url),this._returnResult(h)}catch(l){if(await Wt(this.storage,`${this.storageKey}-code-verifier`),be(l))return this._returnResult({data:null,error:l});throw l}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new Bn;const{error:i}=await we(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:i})})}catch(t){if(be(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:i,options:s}=t,{error:a}=await we(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:i,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},redirectTo:s==null?void 0:s.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:a})}else if("phone"in t){const{phone:r,type:i,options:s}=t,{data:a,error:l}=await we(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:i,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:a==null?void 0:a.message_id},error:l})}throw new Fd("You must provide either an email or phone number and a type")}catch(n){if(be(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),i=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await i}catch{}})()),i}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const i=[...this.pendingInLock];await Promise.all(i),this.pendingInLock.splice(0,i.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await co(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not val
251id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<gm:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const a=await co(this.userStorage,this.storageKey+"-user");a!=null&&a.user?t.user=a.user:t.user=_m()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const a={value:this.suppressGetSessionWarning};t.user=FM(t.user,a),a.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:i,error:s}=await this._callRefreshToken(t.refresh_token);return s?this._returnResult({data:{session:null},error:s}):this._returnResult({data:{session:i},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const n=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(t){try{return t?await we(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:_s}):await this._useSession(async n=>{var r,i,s;const{data:a,error:l}=n;if(l)throw l;return!(!((r=a.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Bn}:await we(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(s=(i=a.session)===null||i===void 0?void 0:i.access_token)!==null&&s!==void 0?s:void 0,xform:_s})})}catch(n){if(be(n))return ym(n)&&(await this._removeSession(),await Wt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:i,error:s}=r;if(s)throw s;if(!i.session)throw new Bn;const a=i.session;let l=null,u=null;this.flowType==="pkce"&&t.email!=null&&([l,u]=await fa(this.storage,this.storageKey));const{data:h,error:f}=await we(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:l,code_challenge_method:u}),jwt:a.access_token,xform:_s});if(f)throw f;return a.user=h.user,await this._saveSession(a),await this._notifyAllSubscribers("USER_UPDATED",a),this._returnResult({data:{user:a.user},error:null})})}catch(r){if(await Wt(this.storage,`${this.storageKey}-code-verifier`),be(r))return this._returnResult({data:{user:null},error:r});throw r}}async setSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new Bn;const n=Date.now()/1e3;let r=n,i=!0,s=null;const{payload:a}=Hd(t.access_token);if(a.exp&&(r=a.exp,i=r<=n),i){const{data:l,error:u}=await this._callRefreshToken(t.refresh_token);if(u)return this._returnResult({data:{user:null,session:null},error:u});if(!l)return{data:{user:null,session:null},error:null};s=l}else{const{data:l,error:u}=await this._getUser(t.access_token);if(u)return this._returnResult({data:{user:null,session:null},error:u});s={access_token:t.access_token,refresh_token:t.refresh_token,user:l.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)}return this._returnResult({data:{user:s.user,session:s},error:null})}catch(n){if(be(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:a,error:l}=n;if(l)throw l;t=(r=a.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new Bn;const{data:i,error:s}=await this._callRefreshToken(t.refresh_token);return s?this._returnResult({data:{user:null,session:null},error:s}):i?this._returnResult({data:{user:i.user,session:i},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(be(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){try{if(!Vt())throw new Ud("No browser detected.");
251if(t.error||t.error_description||t.error_code)throw new Ud(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new Qx("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Ud("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new Qx("No code detected.");const{data:S,error:T}=await this._exchangeCodeForSession(t.code);if(T)throw T;const P=new URL(window.location.href);return P.searchParams.delete("code"),window.history.replaceState(window.history.state,"",P.toString()),{data:{session:S.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:i,access_token:s,refresh_token:a,expires_in:l,expires_at:u,token_type:h}=t;if(!s||!l||!a||!h)throw new Ud("No session defined in URL");const f=Math.round(Date.now()/1e3),m=parseInt(l);let y=f+m;u&&(y=parseInt(u));const g=y-f;g*1e3<=va&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${g}s, should have been closer to ${m}s`);const x=y-m;f-x>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",x,y,f):f-x<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",x,y,f);const{data:v,error:k}=await this._getUser(s);if(k)throw k;const E={provider_token:r,provider_refresh_token:i,access_token:s,expires_in:m,expires_at:y,refresh_token:a,token_type:h,user:v.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:E,redirectType:t.type},error:null})}catch(r){if(be(r))return this._returnResult({data:{session:null,redirectType:null},error:r});throw r}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await co(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:i,error:s}=n;if(s&&!ym(s))return this._returnResult({error:s});const a=(r=i.session)===null||r===void 0?void 0:r.access_token;if(a){const{error:l}=await this.admin.signOut(a,t);if(l&&!(gM(l)&&(l.status===404||l.status===401||l.status===403)||ym(l)))return this._returnResult({error:l})}return t!=="others"&&(await this._removeSession(),await Wt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=SM(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,i;try{const{data:{session:s},error:a}=n;if(a)throw a;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",s)),this._debug("INITIAL_SESSION","callback id",t,"session",s)}catch(s){await((i=this.stateChangeEmitters.get(t))===null||i===void 0?void 0:i.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",s),console.error(s)}})}async resetPasswordForEmail(t,n={}){let r=null,i=null;this.flowType==="pkce"&&([r,i]=await fa(this.storage,this.storageKey,!0));try{return await we(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:i,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(s){if(await Wt(this.storage,`${this.storageKey}-code-verifier`),be(s))return this._returnResult({data:null,error:s});throw s}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return this._returnResult({data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(n){if(be(n))return this._returnResult({data:null,error:n});throw n}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var n;try{const{data:r,error:i}=await this._useSession(async s=>{var a,l,u,h,f;const{data:m,error:y}=s;if(y)throw y;const g=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(a=t.options)===null||a===void 0?void 0:a.redirectTo,scopes:(l=t.options)===null||l===void 0?void 0:l.scopes,queryParams:(u=t.options)===null||u===void 0?void 0:u.queryParams,skipBrowserRedirect:!0});return await we(this.fetch,"GET",g,{headers:this.headers,jwt:(f=(h=m.session)===null||h===void 0?void 0:h.access_token)!==null&&f!==void 0?f:void 0})});if(i)throw i;return Vt()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),this._returnResult({data:{provider:t.provider,url:r==null?void 0:r.url},error:null})}catch(r){if(be(r))return this._returnResult({data:{provider:t.provider,url:null},error:r});throw r}}async linkIdentityIdToken(t){return await this._useSession(async n=>{var r;try{const{error:i,data:{session:s}}=n;
251if(i)throw i;const{options:a,provider:l,token:u,access_token:h,nonce:f}=t,m=await we(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=s==null?void 0:s.access_token)!==null&&r!==void 0?r:void 0,body:{provider:l,id_token:u,access_token:h,nonce:f,link_identity:!0,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:wr}),{data:y,error:g}=m;return g?this._returnResult({data:{user:null,session:null},error:g}):!y||!y.session||!y.user?this._returnResult({data:{user:null,session:null},error:new ha}):(y.session&&(await this._saveSession(y.session),await this._notifyAllSubscribers("USER_UPDATED",y.session)),this._returnResult({data:y,error:g}))}catch(i){if(await Wt(this.storage,`${this.storageKey}-code-verifier`),be(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}})}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,i;const{data:s,error:a}=n;if(a)throw a;return await we(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(i=(r=s.session)===null||r===void 0?void 0:r.access_token)!==null&&i!==void 0?i:void 0})})}catch(n){if(be(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await NM(async i=>(i>0&&await AM(200*Math.pow(2,i-1)),this._debug(n,"refreshing attempt",i),await we(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:wr})),(i,s)=>{const a=200*Math.pow(2,i);return s&&bm(s)&&Date.now()+a-r<va})}catch(r){if(this._debug(n,"error",r),be(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),Vt()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const i=await co(this.storage,this.storageKey);if(i&&this.userStorage){let a=await co(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!a&&(a={user:i.user},await xa(this.userStorage,this.storageKey+"-user",a)),i.user=(t=a==null?void 0:a.user)!==null&&t!==void 0?t:_m()}else if(i&&!i.user&&!i.user){const a=await co(this.storage,this.storageKey+"-user");a&&(a!=null&&a.user)?(i.user=a.user,await Wt(this.storage,this.storageKey+"-user"),await xa(this.storage,this.storageKey,i)):i.user=_m()}if(this._debug(r,"session from storage",i),!this._isValidSession(i)){this._debug(r,"session is not valid"),i!==null&&await this._removeSession();return}const s=((n=i.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<gm;if(this._debug(r,`session has${s?"":" not"} expired with margin of ${gm}s`),s){if(this.autoRefreshToken&&i.refresh_token){const{error:a}=await this._callRefreshToken(i.refresh_token);a&&(console.error(a),bm(a)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",a),await this._removeSession()))}}else if(i.user&&i.user.__isUserNotAvailableProxy===!0)try{const{data:a,error:l}=await this._getUser(i.access_token);!l&&(a!=null&&a.user)?(i.user=a.user,await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(a){console.error("Error getting user data:",a),this._debug(r,"error getting user data, skipping SIGNED_IN notification",a)}else await this._notifyAllSubscribers("SIGNED_IN",i)}catch(i){this._debug(r,"error",i),console.error(i);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new Bn;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const i=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(i,"begin");try{this.refreshingDeferred=new Ff;const{data:s,error:a}=await this._refreshAccessToken(t);if(a)throw a;if(!s.session)throw new Bn;await this._saveSession(s.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",s.session);const l={data:s.session,error:null};return this.refreshingDeferred.resolve(l),l}catch(s){if(this._debug(i,"error",s),be(s)){const a={data:null,error:s};return bm(s)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(a),a}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(s),s}finally{this.refreshingDeferred=null,this._debug(i,"end")}}async _notifyAllSubscribers(t,n,r=!0){const i=`#_notifyAllSubscribers(${t})`;this._debug(i,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const s=[],a=Array.from(this.stateChangeEmitters.values()).map(async l=>{try{await l.callback(t,n)}catch(u){s.push(u)}});if(await Promise.all(a),s.length>0){for(let l=0;l<s.length;l+=1)console.error(s[l]);throw s[0]}}finally{this._debug(i,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await Wt(this.storage,`${this.storageKey}-code-verifier`);const n=Object.assign({},t),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await xa(this.userStorage,this.storageKey+"-user",{user:n.user});const i=Object.assign({},n);delete i.user;const s=t1(i);await xa(this.storage,this.storageKey,s)}else{const i=t1(n);await xa(this.storage,this.storageKey,i)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await Wt(this.storage,this.storageKey),await Wt(this.storage,this.storageKey+"-code-verifier"),await Wt(this.storage,this.storageKey+"-user"),this.userStorage&&await Wt(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&Vt()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
251catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),va);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const n=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=n,n&&typeof n=="object"&&typeof n.unref=="function"?n.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(n)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const n=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,n&&clearTimeout(n)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const i=Math.floor((r.expires_at*1e3-t)/va);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts ${va}ms, refresh threshold is ${E0} ticks`),i<=E0&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof mC)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Vt()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const i=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&i.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&i.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[s,a]=await fa(this.storage,this.storageKey),l=new URLSearchParams({code_challenge:`${encodeURIComponent(s)}`,code_challenge_method:`${encodeURIComponent(a)}`});i.push(l.toString())}if(r!=null&&r.queryParams){const s=new URLSearchParams(r.queryParams);i.push(s.toString())}return r!=null&&r.skipBrowserRedirect&&i.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${i.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:i,error:s}=n;return s?this._returnResult({data:null,error:s}):await we(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(be(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,i;const{data:s,error:a}=n;
251if(a)return this._returnResult({data:null,error:a});const l=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:u,error:h}=await we(this.fetch,"POST",`${this.url}/factors`,{body:l,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return h?this._returnResult({data:null,error:h}):(t.factorType==="totp"&&u.type==="totp"&&(!((i=u==null?void 0:u.totp)===null||i===void 0)&&i.qr_code)&&(u.totp.qr_code=`data:image/svg+xml;utf-8,${u.totp.qr_code}`),this._returnResult({data:u,error:null}))})}catch(n){if(be(n))return this._returnResult({data:null,error:n});throw n}}async _verify(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:i,error:s}=n;if(s)return this._returnResult({data:null,error:s});const a=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?i5(t.webauthn.credential_response):s5(t.webauthn.credential_response)})}:{code:t.code}),{data:l,error:u}=await we(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:a,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return u?this._returnResult({data:null,error:u}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+l.expires_in},l)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",l),this._returnResult({data:l,error:u}))})}catch(n){if(be(n))return this._returnResult({data:null,error:n});throw n}})}async _challenge(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:i,error:s}=n;if(s)return this._returnResult({data:null,error:s});const a=await we(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});if(a.error)return a;const{data:l}=a;if(l.type!=="webauthn")return{data:l,error:null};switch(l.webauthn.type){case"create":return{data:Object.assign(Object.assign({},l),{webauthn:Object.assign(Object.assign({},l.webauthn),{credential_options:Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:n5(l.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},l),{webauthn:Object.assign(Object.assign({},l.webauthn),{credential_options:Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:r5(l.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(be(n))return this._returnResult({data:null,error:n});throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?this._returnResult({data:null,error:r}):await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){var t;const{data:{user:n},error:r}=await this.getUser();if(r)return{data:null,error:r};const i={all:[],phone:[],totp:[],webauthn:[]};for(const s of(t=n==null?void 0:n.factors)!==null&&t!==void 0?t:[])i.all.push(s),s.status==="verified"&&i[s.factor_type].push(s);return{data:i,error:null}}async _getAuthenticatorAssuranceLevel(t){var n,r,i,s;if(t)try{const{payload:g}=Hd(t);let x=null;g.aal&&(x=g.aal);let v=x;const{data:{user:k},error:E}=await this.getUser(t);if(E)return this._returnResult({data:null,error:E});((r=(n=k==null?void 0:k.factors)===null||n===void 0?void 0:n.filter(P=>P.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(v="aal2");const T=g.amr||[];return{data:{currentLevel:x,nextLevel:v,currentAuthenticationMethods:T},error:null}}catch(g){if(be(g))return this._returnResult({data:null,error:g});throw g}const{data:{session:a},error:l}
251=await this.getSession();if(l)return this._returnResult({data:null,error:l});if(!a)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:u}=Hd(a.access_token);let h=null;u.aal&&(h=u.aal);let f=h;((s=(i=a.user.factors)===null||i===void 0?void 0:i.filter(g=>g.status==="verified"))!==null&&s!==void 0?s:[]).length>0&&(f="aal2");const y=u.amr||[];return{data:{currentLevel:h,nextLevel:f,currentAuthenticationMethods:y},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async n=>{const{data:{session:r},error:i}=n;return i?this._returnResult({data:null,error:i}):r?await we(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:r.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new Bn})})}catch(n){if(be(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:i},error:s}=r;if(s)return this._returnResult({data:null,error:s});if(!i)return this._returnResult({data:null,error:new Bn});const a=await we(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"approve"},xform:l=>({data:l,error:null})});return a.data&&a.data.redirect_url&&Vt()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(a.data.redirect_url),a})}catch(r){if(be(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:i},error:s}=r;if(s)return this._returnResult({data:null,error:s});if(!i)return this._returnResult({data:null,error:new Bn});const a=await we(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"deny"},xform:l=>({data:l,error:null})});return a.data&&a.data.redirect_url&&Vt()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(a.data.redirect_url),a})}catch(r){if(be(r))return this._returnResult({data:null,error:r});throw r}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;return r?this._returnResult({data:null,error:r}):n?await we(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new Bn})})}catch(t){if(be(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async n=>{const{data:{session:r},error:i}=n;return i?this._returnResult({data:null,error:i}):r?(await we(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new Bn})})}catch(n){if(be(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(l=>l.kid===t);if(r)return r;const i=Date.now();if(r=this.jwks.keys.find(l=>l.kid===t),r&&this.jwks_cached_at+pM>i)return r;const{data:s,error:a}=await we(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(a)throw a;return!s.keys||s.keys.length===0||(this.jwks=s,this.jwks_cached_at=i,r=s.keys.find(l=>l.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:g,error:x}
251=await this.getSession();if(x||!g.session)return this._returnResult({data:null,error:x});r=g.session.access_token}const{header:i,payload:s,signature:a,raw:{header:l,payload:u}}=Hd(r);n!=null&&n.allowExpired||DM(s.exp);const h=!i.alg||i.alg.startsWith("HS")||!i.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(i.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!h){const{error:g}=await this.getUser(r);if(g)throw g;return{data:{claims:s,header:i,signature:a},error:null}}const f=MM(i.alg),m=await crypto.subtle.importKey("jwk",h,f,!0,["verify"]);if(!await crypto.subtle.verify(f,m,a,wM(`${l}.${u}`)))throw new S0("Invalid JWT signature");return{data:{claims:s,header:i,signature:a},error:null}}catch(r){if(be(r))return this._returnResult({data:null,error:r});throw r}}}yc.nextInstanceID={};const p5=yc,m5="2.101.1";let _u="";typeof Deno<"u"?_u="deno":typeof document<"u"?_u="web":typeof navigator<"u"&&navigator.product==="ReactNative"?_u="react-native":_u="node";const g5={"X-Client-Info":`supabase-js-${_u}/${m5}`},y5={headers:g5},b5={schema:"public"},_5={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},v5={};function bc(e){"@babel/helpers - typeof";return bc=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},bc(e)}function x5(e,t){if(bc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(bc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function E5(e){var t=x5(e,"string");return bc(t)=="symbol"?t:t+""}function w5(e,t,n){return(t=E5(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _t(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?u1(Object(n),!0).forEach(function(r){w5(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const T5=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),S5=()=>Headers,k5=(e,t,n)=>{const r=T5(n),i=S5();return async(s,a)=>{var l;const u=(l=await t())!==null&&l!==void 0?l:e;let h=new i(a==null?void 0:a.headers);return h.has("apikey")||h.set("apikey",e),h.has("Authorization")||h.set("Authorization",`Bearer ${u}`),r(s,_t(_t({},a),{},{headers:h}))}};function C5(e){return e.endsWith("/")?e:e+"/"}function A5(e,t){var n,r;const{db:i,auth:s,realtime:a,global:l}=e,{db:u,auth:h,realtime:f,global:m}=t,y={db:_t(_t({},u),i),auth:_t(_t({},h),s),realtime:_t(_t({},f),a),storage:{},global:_t(_t(_t({},m),l),{},{headers:_t(_t({},(n=m==null?void 0:m.headers)!==null&&n!==void 0?n:{}),(r=l==null?void 0:l.headers)!==null&&r!==void 0?r:{})}),accessToken:async()=>""};return e.accessToken?y.accessToken=e.accessToken:delete y.accessToken,y}function N5(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(C5(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var P5=class extends p5{constructor(e){super(e)}},I5=class{constructor(e,t,n){var r,i;this.supabaseUrl=e,this.supabaseKey=t;const s=N5(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",s),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",s),this.storageUrl=new URL("storage/v1",s),this.functionsUrl=new URL("functions/v1",s);const a=`sb-${s.hostname.split(".")[0]}-auth-token`,l={db:b5,realtime:v5,auth:_t(_t({},_5),{},{storageKey:a}),global:y5},u=A5(n??{},l);if(this.storageKey=(r=u.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(i=u.global.headers)!==null&&i!==void 0?i:{},u.accessToken)this.accessToken=u.accessToken,this.auth=new Proxy({},{get:(f,m)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(m)} is not possible`)}});else{var h;this.auth=this._initSupabaseAuthClient((h=u.auth)!==null&&h!==void 0?h:{},this.headers,u.global.fetch)}this.fetch=k5(t,this._getAccessToken.bind(this),u.global.fetch),this.realtime=this._initRealtimeClient(_t({headers:this.headers,accessToken:this._getAccessToken.bind(this)},u.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(f=>this.realtime.setAuth(f)).catch(f=>console.warn("Failed to set initial Realtime auth token:",f)),this.rest=new J6(new URL("rest/v1",s).href,{headers:this.headers,schema:u.db.schema,fetch:this.fetch,timeout:u.db.timeout,urlLengthLimit:u.db.urlLengthLimit}),this.storage=new uM(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),u.accessToken||this._listenForAuthEvents()}get functions(){return new W6(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,n)}
251channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,n;if(e.accessToken)return await e.accessToken();const{data:r}=await e.auth.getSession();return(t=(n=r.session)===null||n===void 0?void 0:n.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:i,storageKey:s,flowType:a,lock:l,debug:u,throwOnError:h},f,m){const y={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new P5({url:this.authUrl.href,headers:_t(_t({},y),f),storageKey:s,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:i,flowType:a,lock:l,debug:u,throwOnError:h,fetch:m,hasCustomAuthorizationHeader:Object.keys(this.headers).some(g=>g.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new L4(this.realtimeUrl.href,_t(_t({},e),{},{params:_t(_t({},{apikey:this.supabaseKey}),e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t==null?void 0:t.access_token)})}_handleTokenChanged(e,t,n){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const O5=(e,t,n)=>new I5(e,t,n);function L5(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const n=t.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=18:!1}L5()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const R5="https://chwmsnpuormcykedjelz.supabase.co",j5="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImNod21zbnB1b3JtY3lrZWRqZWx6Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzU0NTMwNTIsImV4cCI6MjA5MTAyOTA1Mn0.rYAyHFzRjoBAWL6z8eudA68j2UH9yM2rhuYUB8925vc",Ie=O5(R5,j5,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}});function D5(){const[e,t]=A.useState(!1),[n,r]=A.useState(""),[i,s]=A.useState([]),[a,l]=A.useState(!1),u=A.useRef(null),h=wf();A.useEffect(()=>{const y=g=>{var x,v;g.key==="/"&&!g.ctrlKey&&!g.metaKey&&((x=document.activeElement)==null?void 0:x.tagName)!=="INPUT"&&((v=document.activeElement)==null?void 0:v.tagName)!=="TEXTAREA"&&(g.preventDefault(),t(!0)),g.key==="Escape"&&t(!1)};return window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)},[]),A.useEffect(()=>{var y;e&&((y=u.current)==null||y.focus())},[e]),A.useEffect(()=>{if(n.length<2){s([]);return}const y=setTimeout(async()=>{l(!0);const g=`%${n}%`,[x,v,k,E,S]=await Promise.all([Ie.from("product_categories").select("name, slug").ilike("name",g).limit(5),Ie.from("suppliers").select("name, slug").ilike("name",g).limit(5),Ie.from("areas").select("name, slug").ilike("name",g).limit(5),Ie.from("guides").select("title, slug").ilike("title",g).limit(5),Ie.from("glossary_terms").select("term, slug").ilike("term",g).limit(5)]),T=[...(x.data||[]).map(P=>({type:"Product",name:P.name||"",slug:P.slug||"",href:`/products/${P.slug}`})),...(v.data||[]).map(P=>({type:"Supplier",name:P.name||"",slug:P.slug||"",href:`/suppliers/${P.slug}`})),...(k.data||[]).map(P=>({type:"Area",name:P.name||"",slug:P.slug||"",href:`/areas/${P.slug}`})),...(E.data||[]).map(P=>({type:"Guide",name:P.title||"",slug:P.slug||"",href:`/guides/${P.slug}`})),...(S.data||[]).map(P=>({type:"Glossary",name:P.term||"",slug:P.slug||"",href:`/glossary/${P.slug}`}))];s(T),l(!1)},300);return()=>clearTimeout(y)},[n]);const f=y=>{h(y),t(!1),r("")},m={Product:"bg-primary text-primary-foreground",Supplier:"bg-secondary text-secondary-foreground",Area:"bg-trust text-trust-foreground",Guide:"bg-accent text-accent-foreground",Glossary:"bg-muted text-muted-foreground"};return c.jsxs(c.Fragment,{children:[c.jsxs("button",{onClick:()=>t(!0),className:"flex items-center gap-1.5 text-muted-foreground hover:text-foreground transition-colors p-2",title:"Search (/)",children:[c.jsx(ml,{size:16}),c.jsx("kbd",{className:"hidden md:inline text-[10px] border border-border rounded px-1 py-0.5 bg-muted text-muted-foreground font-mono",children:"/"})]}),e&&c.jsx("div",{className:"fixed inset-0 z-[100] bg-foreground
251/30 flex items-start justify-center pt-[10vh]",onClick:()=>t(!1),children:c.jsxs("div",{className:"bg-card border border-border shadow-lg w-full max-w-lg mx-4",onClick:y=>y.stopPropagation(),children:[c.jsxs("div",{className:"flex items-center border-b border-border px-4",children:[c.jsx(ml,{size:16,className:"text-muted-foreground flex-shrink-0"}),c.jsx("input",{ref:u,value:n,onChange:y=>r(y.target.value),placeholder:"Search products, suppliers, areas, guides...",className:"flex-1 px-3 py-3 bg-transparent text-foreground text-sm focus:outline-none"}),c.jsx("button",{onClick:()=>t(!1),className:"p-1 text-muted-foreground hover:text-foreground",children:c.jsx(Zy,{size:16})})]}),i.length>0&&c.jsx("ul",{className:"max-h-80 overflow-y-auto",children:i.map((y,g)=>c.jsx("li",{children:c.jsxs("button",{onClick:()=>f(y.href),className:"w-full text-left px-4 py-2.5 hover:bg-muted flex items-center gap-3 text-sm",children:[c.jsx("span",{className:`text-[10px] font-semibold px-1.5 py-0.5 ${m[y.type]||"bg-muted text-muted-foreground"}`,children:y.type}),c.jsx("span",{className:"text-foreground",children:y.name})]})},`${y.type}-${y.slug}-${g}`))}),n.length>=2&&i.length===0&&!a&&c.jsx("p",{className:"px-4 py-6 text-sm text-muted-foreground text-center",children:"No results found."}),a&&c.jsx("p",{className:"px-4 py-6 text-sm text-muted-foreground text-center",children:"Searching..."})]})})]})}const c1=[{label:"Guides",href:"/guides"},{label:"News",href:"/news"},{label:"Standards",href:"/standards"},{label:"Products",href:"/products"},{label:"Suppliers",href:"/suppliers"},{label:"About",href:"/about"}];function M5(){const[e,t]=A.useState(!1);return c.jsxs("header",{className:"border-b border-border bg-card sticky top-0 z-50",children:[c.jsxs("div",{className:"container-wide flex items-center justify-between h-14",children:[c.jsxs(xe,{to:"/",className:"flex flex-col font-heading font-bold text-foreground leading-none",children:[c.jsx("span",{className:"text-lg tracking-tight text-primary",children:"MLC"}),c.jsxs("span",{className:"hidden sm:block text-[10px] font-semibold tracking-wide text-muted-foreground",children:[c.jsx("span",{className:"text-primary",children:"M"}),"y ",c.jsx("span",{className:"text-primary",children:"L"}),"ocal ",c.jsx("span",{className:"text-primary",children:"C"}),"omponents"]})]}),c.jsxs("div",{className:"flex items-center gap-1",children:[c.jsx("nav",{className:"hidden md:flex items-center gap-1",children:c1.map(n=>c.jsx(xe,{to:n.href,className:"text-sm font-medium text-foreground hover:text-primary transition-colors px-3 py-2",children:n.label},n.href))}),c.jsx(D5,{}),c.jsx("button",{className:"md:hidden p-2 ml-1",onClick:()=>t(!e),"aria-label":"Toggle menu",children:e?c.jsx(Zy,{size:20}):c.jsx(sk,{size:20})})]})]}),e&&c.jsx("nav",{className:"md:hidden border-t border-border bg-card pb-4",children:c1.map(n=>c.jsx(xe,{to:n.href,onClick:()=>t(!1),className:"block px-4 py-2 text-sm text-foreground hover:bg-muted",children:n.label},n.href))})]})}const B5="https://mlc.org.uk";function F5(e){return typeof window<"u"&&window.location.hostname==="mlc.org.uk"?e:`${B5}${e}`}function Mc(e,t){try{const n=F5(e),r=JSON.stringify(t);if(typeof navigator<"u"&&typeof navigator.sendBeacon=="function"){const i=new Blob([r],{type:"application/json"});navigator.sendBeacon(n,i);return}fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:r,keepalive:!0,mode:"cors"}).catch(()=>{})}catch{}}function qo(e,t,n,r){Mc("/api/track",{action:e,page_type:t,page_slug:n,page_name:r})}function U5(e,t){Mc("/api/page-vote",{page_path:e,is_helpful:t})}function H5(e){Mc("/api/experience",{page_path:e.pagePath,page_type:e.pageType,rating:e.rating,comment:e.comment,email:e.email||null,name:e.name||null})}function bC(e,t,n){Mc("/api/newsletter",{email:e,source_path:t,source_label:n})}function z5(e){Mc("/api/enquiry",e)}function $5(){const{pathname:e}=Ln(),[t,n]=A.useState(""),[r,i]=A.useState("idle"),[s,a]=A.useState(""),l=async u=>{u.preventDefault();const h=t.trim().toLowerCase();if(!h||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(h)){a("Please enter a valid email."),i("error");return}i("loading"),a(""),bC(h,e,"footer");const{error:f}=await Ie.from("email_subscribers").insert({email:h,source:"footer"});if(f&&f.code!=="23505"){a("Something went wrong."),i("error");return}i("success")};return r==="success"?c.jsx("div",{className:"bg-primary/10 border-y border-primary/20",children:c.jsxs("div",{className:"container-wide py-5 flex items-center justify-center gap-2",children:[c.jsx(Nf,{size:16,className:"text-primary"}),c.jsx("span",{className:"text-sm font-medium text-primary",children:"Check your inbox to confirm your subscription."})]})}):c.jsx("div",{className:"bg-secondary border-b border-secondary-foreground
251/10",children:c.jsxs("div",{className:"container-wide py-6",children:[c.jsxs("div",{className:"flex flex-col md:flex-row md:items-center md:justify-between gap-4",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"w-10 h-10 bg-primary/10 flex items-center justify-center flex-shrink-0",children:c.jsx(Qy,{size:18,className:"text-primary"})}),c.jsxs("div",{children:[c.jsx("p",{className:"text-sm font-heading font-semibold text-secondary-foreground",children:"Get weekly UK supply chain updates"}),c.jsx("p",{className:"text-xs text-secondary-foreground/60",children:"Free tools, supplier alerts & industry briefings. No spam."})]})]}),c.jsxs("form",{onSubmit:l,className:"flex gap-2 w-full md:w-auto md:min-w-[400px]",children:[c.jsx("input",{type:"email",value:t,onChange:u=>n(u.target.value),placeholder:"Your work email",className:"flex-1 px-4 py-2.5 bg-secondary-foreground/5 text-secondary-foreground border border-secondary-foreground/15 text-sm focus:outline-none focus:ring-2 focus:ring-primary placeholder:text-secondary-foreground/40",required:!0}),c.jsx("button",{type:"submit",disabled:r==="loading",className:"bg-primary text-primary-foreground px-5 py-2.5 text-sm font-semibold hover:opacity-90 transition-opacity disabled:opacity-50 flex items-center gap-1.5 whitespace-nowrap",children:r==="loading"?"...":c.jsxs(c.Fragment,{children:["Subscribe ",c.jsx(Af,{size:14})]})})]})]}),r==="error"&&c.jsx("p",{className:"text-xs text-red-400 mt-2 md:text-right",children:s})]})})}const q5=[{title:"Reference",links:[{label:"Products",href:"/products"},{label:"Suppliers",href:"/suppliers"},{label:"Supplier Finder",href:"/tools/supplier-finder"},{label:"Areas",href:"/areas"}]},{title:"Resources",links:[{label:"Guides",href:"/guides"},{label:"Standards",href:"/standards"},{label:"Glossary",href:"/glossary"},{label:"Trade Bodies",href:"/trade-bodies"},{label:"News",href:"/news"}]},{title:"About MLC",links:[{label:"About",href:"/about"},{label:"Advertise",href:"/guides/advertise-with-mlc"},{label:"Editorial Methodology",href:"/editorial-methodology"},{label:"Contact",href:"/contact"},{label:"Privacy Policy",href:"/privacy"},{label:"Terms & Conditions",href:"/terms"},{label:"Cookie Policy",href:"/cookies"},{label:"Disclaimer",href:"/disclaimer"}]}];function W5(){return c.jsxs("footer",{className:"bg-secondary text-secondary-foreground",children:[c.jsx($5,{}),c.jsxs("div",{className:"container-wide py-12",children:[c.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-8",children:[c.jsxs("div",{children:[c.jsxs("div",{className:"flex flex-col font-heading font-bold leading-none",children:[c.jsx("span",{className:"text-lg tracking-tight text-primary",children:"MLC"}),c.jsxs("span",{className:"text-[10px] font-semibold tracking-wide text-secondary-foreground/50",children:[c.jsx("span",{className:"text-primary",children:"M"}),"y ",c.jsx("span",{className:"text-primary",children:"L"}),"ocal ",c.jsx("span",{className:"text-primary",children:"C"}),"omponents"]})]}),c.jsx("p",{className:"mt-2 text-sm text-secondary-foreground/70",children:"Free UK directory for engineering component suppliers."}),c.jsx("a",{href:"mailto:[email protected]",className:"text-sm text-primary hover:underline mt-2 inline-block",children:"[email protected]"})]}),q5.map(e=>c.jsxs("div",{children:[c.jsx("h4",{className:"font-heading font-semibold text-sm mb-3",children:e.title}),c.jsx("ul",{className:"space-y-1.5",children:e.links.map(t=>c.jsx("li",{children:c.jsx(xe,{to:t.href,className:"text-sm text-secondary-foreground/70 hover:text-primary transition-colors",children:t.label})},t.href))})]},e.title))]}),c.jsxs("div",{className:"border-t border-secondary-foreground/10 mt-8 pt-6 text-xs text-secondary-foreground/50 space-y-3",children:[c.jsxs("p",{children:["All information on this site is provided for general guidance only. Data from interactive tools, calculators, reference tables, and supplier listings may contain errors and must be independently verified before use in any engineering, manufacturing, or procurement application. See our full ",c.jsx(xe,{to:"/disclaimer",className:"text-secondary-foreground
251/70 hover:text-primary transition-colors underline",children:"Disclaimer"})," and ",c.jsx(xe,{to:"/terms",className:"text-secondary-foreground/70 hover:text-primary transition-colors underline",children:"Terms"}),"."]}),c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("span",{children:"Independent directory. Supplier data verified via Companies House."}),c.jsx("span",{children:"Operated by Defining Style Limited · Company No. 10572391 · ICO Registration ZA711914"}),c.jsxs("span",{children:["© ",new Date().getFullYear()," My Local Components (mlc.org.uk). All rights reserved."]})]})]})]})]})}const V5=[{label:"Guides",href:"/guides",icon:I3},{label:"News",href:"/news",icon:M3},{label:"Search",href:"/tools/supplier-finder",icon:ml},{label:"Products",href:"/products",icon:B3},{label:"More",href:"/about",icon:sk}];function K5(){const e=Ln();return c.jsx("nav",{className:"md:hidden fixed bottom-0 left-0 right-0 z-50 bg-card border-t border-border",children:c.jsx("div",{className:"flex items-center justify-around h-14",children:V5.map(t=>{const n=t.icon,r=e.pathname.startsWith(t.href);return c.jsxs(xe,{to:t.href,className:`flex flex-col items-center justify-center gap-0.5 text-[10px] font-medium transition-colors ${r?"text-primary":"text-muted-foreground"}`,children:[c.jsx(n,{size:18}),c.jsx("span",{children:t.label})]},t.href)})})})}function G5(){const[e,t]=A.useState(!1);return A.useEffect(()=>{const n=()=>t(window.scrollY>400);return window.addEventListener("scroll",n,{passive:!0}),()=>window.removeEventListener("scroll",n)},[]),e?c.jsx("button",{onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),className:"fixed bottom-20 md:bottom-8 right-4 z-40 w-10 h-10 bg-primary text-primary-foreground flex items-center justify-center shadow-md hover:opacity-90 transition-opacity animate-fade-in","aria-label":"Back to top",children:c.jsx(N3,{size:18})}):null}function _e({children:e}){return c.jsxs("div",{className:"min-h-screen flex flex-col",children:[c.jsx(M5,{}),c.jsx("main",{className:"flex-1 pb-16 md:pb-0 animate-fade-in",children:e}),c.jsx(W5,{}),c.jsx(K5,{}),c.jsx(G5,{})]})}function Ye({title:e,description:t,canonical:n,ogType:r="website",ogImage:i,author:s,noindex:a,contentPage:l,noSuffix:u}){l&&!e&&console.warn("[PageMeta] content page missing SEO title",{canonical:n});const h=!!n&&n.includes("-usa-"),m=u?e:`${e}${l?h?" | MLC":" | MLC UK":" | My Local Components"}`,y=n?`https://mlc.org.uk${n}`:void 0;return c.jsxs(f0,{children:[c.jsx("title",{children:m}),t&&c.jsx("meta",{name:"description",content:t}),s&&c.jsx("meta",{name:"author",content:s}),a&&c.jsx("meta",{name:"robots",content:"noindex,nofollow"}),y&&c.jsx("link",{rel:"canonical",href:y}),c.jsx("meta",{property:"og:title",content:m}),t&&c.jsx("meta",{property:"og:description",content:t}),c.jsx("meta",{property:"og:type",content:r}),y&&c.jsx("meta",{property:"og:url",content:y}),i&&c.jsx("meta",{property:"og:image",content:i}),c.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),c.jsx("meta",{name:"twitter:title",content:m}),t&&c.jsx("meta",{name:"twitter:description",content:t})]})}function Uf({data:e}){return e?Array.isArray(e)?c.jsx(c.Fragment,{children:e.map((t,n)=>c.jsx(f0,{children:c.jsx("script",{type:"application/ld+json",children:JSON.stringify(t)})},n))}):c.jsx(f0,{children:c.jsx("script",{type:"application/ld+json",children:JSON.stringify(e)})}):null}function Y5({faq:e}){if(!e||!Array.isArray(e)||e.length===0)return null;const t={"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.map(n=>{var r;return{"@type":"Question",name:n.question||n.name||"",acceptedAnswer:{"@type":"Answer",text:n.answer||((r=n.acceptedAnswer)==null?void 0:r.text)||""}}})};return c.jsx(Uf,{data:t})}function St({items:e}){const t={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e.map((n,r)=>({"@type":"ListItem",position:r+1,name:n.name,item:`https://mlc.org.uk${n.url}`}))};return c.jsx(Uf,{data:t})}function qi(e){if(!e)return"1 min";const t=e.split(/\s+/).length;return`${Math.max(1,Math.round(t/200))} min`}function pr(e){return e?new Date(e).toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"}):""}function Wi(e){if(!e||typeof e!="object")return;const t=e.featured_image;if(t){if(typeof t=="string")return t;if(typeof t=="object"&&t!==null&&"url"in t){const n=t.url;return typeof n=="string"?n:void 0}}}const Q5=[{icon:z3,text:"Supplier Finder & Standards Lookup tools"},{icon:L3,text:"Weekly UK supply chain briefings"},{icon:P3,text:"New supplier alerts for your categories"},{icon:ml,text:"Priority access to new tools"}];function Z5({source:e="homepage",variant:t="banner"}){const[n,r]=A.useState(""),[i,s]=A.useState(""),[a,l]=A.useState(""),[u,h]=A.useState("idle"),[f,m]=A.useState(""),y=async g=>{g.preventDefault();const x=n.trim().toLowerCase();if(!x||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(x)){m("Please enter a valid email address."),h("error");return}h("loading"),m("");const{error:v}=await Ie.from("email_subscribers").insert({email:x,source:e,name:i.trim()||null,company:a.trim()||null});if(v){if(v.code==="23505"){h("success");return}m("Something went wrong. Please try again."),h("error");return}h("success")};return u==="success"?c.jsx("div",{className:t==="banner"?"bg-card border-y border-border py-10":"",children:c.jsxs("div",{className:t==="banner"?"container-wide text-center":"text-center py-6",children:[c.jsxs("div",{className:"inline-flex items-center gap-2 bg-green-50 border border-green-200 px-4 py-2 mb-3",children:[c.jsx(Nf,{className:"text-green-600",size:18}),c.jsx("span",{className:"text-sm font-semibold text-green-800",children:"You're in!"})]}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"We'll send you tools access and industry updates. No spam, unsubscribe anytime."})]})}):t==="inline"?c.jsxs("div",{className:"border border-border bg-card p-6",children:[c.jsx("h3",{className:"font-heading font-bold text-foreground mb-1",children:"Get free tool access"}),c.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Join 2,000+ UK engineers. Get supplier alerts and early access to new tools."}),c.jsxs("form",{onSubmit:y,className:"space-y-2",children:[c.jsx("input",{type:"text",value:i,onChange:g=>s(g.target.value),placeholder:"Your name",className:"w-full px-3 py-2 bg-background text-foreground border border-border text-sm focus:outline-none focus:ring-2 focus:ring-primary",required:!0}),c.jsx("input",{type:"email",value:n,onChange:g=>r(g.target.value),placeholder:"Your work email",className:"w-full px-3 py-2 bg-background text-foreground border border-border text-sm focus:outline-none focus:ring-2 focus:ring-primary",required:!0}),c.jsx("button",{type:"submit",disabled:u==="loading",className:"w-full bg-primary text-primary-foreground px-4 py-2 text-sm font-semibold hover:opacity-90 transition-opacity disabled:opacity-50",children:u==="loading"?"...":"Join Free"})]}),u==="error"&&c.jsx("p",{className:"text-xs text-red-600 mt-1",children:f}),c.jsx("p",{className:"text-[10px] text-muted-foreground mt-2",children:"No spam. Unsubscribe anytime."})]}):c.jsx("section",{className:"bg-card border-y border-border",children:c.jsx("div",{className:"container-wide py-12 sm:py-14",children:c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 lg:gap-12 items-center",children:[c.jsxs("div",{children:[c.jsx("span",{className:"inline-block text-[11px] font-bold text-primary uppercase tracking-widest mb-3 border border-primary/20 bg-primary/5 px-2.5 py-1",children:"Free for UK Engineers"}),c.jsx("h2",{className:"text-2xl sm:text-3xl font-heading font-bold text-foreground leading-tight mb-4",children:"Get Free Access to MLC Tools & Supplier Alerts"}),c.jsx("p",{className:"text-muted-foreground text-sm mb-6",children:"Join thousands of UK engineers who use MLC to find verified suppliers faster. Get weekly briefings and early access to new tools."}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:Q5.map(g=>c.jsxs("div",{className:"flex items-center gap-2.5 bg-muted/50 border border-border px-3 py-2.5",children:[c.jsx("div",{className:"w-8 h-8 bg-primary/10 flex items-center justify-center flex-shrink-0",children:c.jsx(g.icon,{size:16,className:"text-primary"})}),c.jsx("span",{className:"text-sm text-foreground font-medium leading-snug",children:g.text})]},g.text))})]}),c.jsxs("div",{className:"bg-muted border border-border p-6 sm:p-8",children:[c.jsx("h3",{className:"font-heading font-bold text-lg text-foreground mb-1",children:"Sign up - it's free"}),c.jsx("p",{className:"text-sm text-muted-foreground mb-5",children:"No credit card. No spam. Unsubscribe in one click."}),c.jsxs("form",{onSubmit:y,className:"space-y-3",children:[c.jsxs("div",{children:[c.jsx("label",{htmlFor:"capture-name",className:"text-xs font-semibold text-foreground block mb-1",children:"Your name"}),c.jsx("input",{id:"capture-name",type:"text",value:i,onChange:g=>s(g.target.value),placeholder:"John Smith",className:"w-full px-4 py-3 bg-card text-foreground border border-border text-sm focus:outline-none focus:ring-2 focus:ring-primary",required:!0})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"capture-email",className:"text-xs font-semibold text-foreground block mb-1",children:"Work email address"}),c.jsx("input",{id:"capture-email",type:"email",value:n,onChange:g=>r(g.target.value),placeholder:"[email protected]",className:"w-full px-4 py-3 bg-card text-foreground border border-border text-sm focus:outline-none focus:ring-2 focus:ring-primary",required:!0})]}),c.jsxs("div",{children:[c.jsxs("label",{htmlFor:"capture-company",className:"text-xs font-semibold text-foreground block mb-1",children:["Company ",c.jsx("span",{className:"font-normal text-muted-foreground",children:"(optional)"})]}),c.jsx("input",{id:"capture-company",type:"text",value:a,onChange:g=>l(g.target.value),placeholder:"Your company name",className:"w-full px-4 py-3 bg-card text-foreground border border-border text-sm focus:outline-none focus:ring-2 focus:ring-primary"})]}),u==="error"&&c.jsx("p",{className:"text-xs text-red-600",children:f}),c.jsx("button",{type:"submit",disabled:u==="loading",className:"w-full bg-primary text-primary-foreground px-6 py-3 text-sm font-bold hover:opacity-90 transition-opacity disabled:opacity-50 flex items-center justify-center gap-2",children:u==="loading"?"Joining...":c.jsxs(c.Fragment,{children:["Get Free Access ",c.jsx(Af,{size:16})]})})]}),c.jsx("p",{className:"text-[11px] text-muted-foreground mt-3 text-center",children:"2,000+ engineers already signed up"})]})]})})})}function X5(){return c.jsxs("section",{className:"container-wide py-16",children:[c.jsx("h2",{className:"text-2xl font-heading font-bold mb-6",children:"What Is My Local Components?"}),c.jsx("div",{className:"prose prose-sm max-w-none text-muted-foreground",children:c.jsx("p",{children:"My Local Components is an independent UK engineering trade publication covering tool reviews, technical comparisons, reference data, and industry news. Our editorial team produces in-depth content for engineers, workshop owners, and procurement teams across the UK â from material selection guides and standards explainers to in-house testing of bearings, seals, fasteners, and power transmission components. Alongside our editorial work we maintain a reference directory of UK component suppliers, cross-referenced against Companies House public re
251cords, so readers can move from article to sourcing in a single step."})})]})}const J5=[{name:"Fasteners & Fixings",slug:"fasteners",desc:"Hex bolts, cap screws, rivets, nuts, washers, and anchors from M1.6 to M64 in stainless, high-tensile, and brass."},{name:"Bearings",slug:"bearings",desc:"Ball bearings, roller bearings, needle bearings, thrust bearings, and linear bearings from SKF, NSK, FAG, and Timken stockists."},{name:"Seals & Gaskets",slug:"seals",desc:"O-rings, oil seals, mechanical seals, gaskets, and V-rings in nitrile, Viton, EPDM, and PTFE."},{name:"Power Transmission",slug:"belts",desc:"V-belts, timing belts, pulleys, gears, sprockets, chains, and couplings from UK distributors."},{name:"Pneumatics & Hydraulics",slug:"actuators",desc:"Cylinders, actuators, valves, FRL units, hoses, fittings, and hydraulic pumps."},{name:"Springs",slug:"springs",desc:"Compression, extension, torsion, disc, wave, and gas springs from UK manufacturers."},{name:"Linear Motion",slug:"bearings",desc:"Linear bearings, ball screws, lead screws, linear guides, and actuators."},{name:"Engineering Materials",slug:"motors",desc:"Steel, aluminium, brass, copper, nylon, PTFE, and PEEK in bar, sheet, tube, and plate."},{name:"Plumbing & Pipeline",slug:"hoses",desc:"Pipe fittings, flanges, couplings, adaptors, and hose connectors in BSP and metric."},{name:"Engineering Hardware",slug:"fasteners",desc:"Handles, knobs, hinges, latches, levelling feet, castors, and gas springs."},{name:"Adhesives & Sealants",slug:"gaskets",desc:"Threadlockers, retaining compounds, instant adhesives, epoxy, and silicone sealants."},{name:"Lubrication",slug:"filters",desc:"Greases, hydraulic oils, cutting fluids, sprays, and bearing lubricants."},{name:"Tools & Measurement",slug:"sensors",desc:"Calipers, micrometers, torque wrenches, pullers, and thread gauges."},{name:"Pumps & Compressors",slug:"pumps",desc:"Centrifugal, gear, diaphragm, and submersible pumps plus piston and screw compressors."},{name:"Valves & Flow Control",slug:"valves",desc:"Ball, gate, globe, butterfly, check, solenoid, and pressure relief valves."}];function e8(){return c.jsx("section",{className:"bg-muted/50 border-t border-b border-border",children:c.jsxs("div",{className:"container-wide py-16",children:[c.jsx("h2",{className:"text-2xl font-heading font-bold mb-8",children:"Browse by Product Category"}),c.jsx("ul",{className:"space-y-4",children:J5.map(e=>c.jsxs("li",{className:"flex flex-col sm:flex-row sm:items-baseline gap-1 sm:gap-2",children:[c.jsx(xe,{to:`/products/${e.slug}`,className:"font-heading font-semibold text-primary hover:underline shrink-0",children:e.name}),c.jsx("span",{className:"hidden sm:inline text-muted-foreground",children:"-"}),c.jsx("span",{className:"text-sm text-muted-foreground",children:e.desc})]},e.name))})]})})}const t8=[{name:"Birmingham",slug:"birmingham"},{name:"Manchester",slug:"manchester"},{name:"Sheffield",slug:"sheffield"},{name:"Leeds",slug:"leeds"},{name:"Glasgow",slug:"glasgow"},{name:"London",slug:"london"},{name:"Bristol",slug:"bristol"},{name:"Newcastle",slug:"newcastle"},{name:"Nottingham",slug:"nottingham"},{name:"Coventry",slug:"coventry"},{name:"Derby",slug:"derby"},{name:"Wolverhampton",slug:"wolverhampton"}];function n8(){return c.jsxs("section",{className:"container-wide py-16",children:[c.jsx("h2",{className:"text-2xl font-heading font-bold mb-4",children:"Find Engineering Component Suppliers Near You"}),c.jsx("p",{className:"text-muted-foreground text-sm max-w-3xl mb-8",children:"MLC covers 50+ UK cities and industrial hubs. The West Midlands, Yorkshire, and the North West are home to the highest concentration of engineering component manufacturers in the UK - a legacy of Britain's industrial heritage. Browse suppliers by location to find local stock, trade counters, and next-day delivery options."}),c.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-4",children:t8.map(e=>c.jsxs(xe,{to:`/areas/${e.slug}`,className:"border border-border bg-card p-4 hover:border-primary transition-colors group flex items-center gap-3",children:[c.jsx(j3,{size:18,className:"text-primary shrink-0"}),c.jsx("span",{className:"font-heading font-semibold text-sm group-hover:text-primary transition-colors",children:e.name})]},e.slug))})]})}function r8(){return c.jsx("section",{className:"bg-secondary text-secondary-foreground",children:c.jsx("div",{className:"container-wide py-16",children:c.jsxs("div",{className:"flex items-start gap-4 max-w-3xl",children:[c.jsx(F3,{size:32,className:"text-primary shrink-0 mt-1"}),c.jsxs("div",{children:[c.jsx("h2",{className:"text-2xl font-heading font-bold mb-4",children:"How We Verify Suppliers"}
251),c.jsx("p",{className:"text-secondary-foreground/80 text-sm leading-relaxed",children:"Every supplier on MLC is verified against Companies House public records. We check company status (active, dissolved, or in liquidation), incorporation date, registered office address, SIC codes, and director history. This means you can check whether a supplier has been trading for 2 months or 20 years before placing an order. We don't accept paid listings or sponsored placements - every listing is based on publicly available data."})]})]})})})}const xm=[{name:"Confederation of British Metalforming",abbr:"CBM",slug:"cbm"},{name:"British & Irish Association of Fastener Distributors",abbr:"BIAFD",slug:"biafd"},{name:"British Pump Manufacturers Association",abbr:"BPMA",slug:"bpma"},{name:"Institute of Spring Technology",abbr:"IST",slug:"ist"}];function i8(){return c.jsx("section",{className:"bg-muted/50 border-t border-border",children:c.jsxs("div",{className:"container-wide py-16",children:[c.jsx("h2",{className:"text-2xl font-heading font-bold mb-4",children:"UK Engineering Trade Bodies"}),c.jsxs("p",{className:"text-muted-foreground text-sm max-w-3xl",children:["MLC references data from leading UK trade associations including the"," ",xm.map((e,t)=>c.jsxs("span",{children:[c.jsxs(xe,{to:`/trade-bodies/${e.slug}`,className:"text-primary hover:underline",children:[e.name," (",e.abbr,")"]}),t<xm.length-2?", the ":t===xm.length-2?", and the ":""]},e.slug)),". These organisations set industry standards, provide technical guidance, and maintain quality benchmarks across the UK engineering sector."]})]})})}var Hf="Collapsible",[s8,_C]=Sl(Hf),[o8,db]=s8(Hf),vC=A.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:s,onOpenChange:a,...l}=e,[u,h]=Sf({prop:r,defaultProp:i??!1,onChange:a,caller:Hf});return c.jsx(o8,{scope:n,disabled:s,contentId:yk(),open:u,onOpenToggle:A.useCallback(()=>h(f=>!f),[h]),children:c.jsx(jt.div,{"data-state":fb(u),"data-disabled":s?"":void 0,...l,ref:t})})});vC.displayName=Hf;var xC="CollapsibleTrigger",EC=A.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,i=db(xC,n);return c.jsx(jt.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":fb(i.open
vendor: 4,106 bytes, line 251
251),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:t,onClick:wt(e.onClick,i.onOpenToggle)})});EC.displayName=xC;var hb="CollapsibleContent",wC=A.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=db(hb,e.__scopeCollapsible);return c.jsx(Tf,{present:n||i.open,children:({present:s})=>c.jsx(a8,{...r,ref:t,present:s})})});wC.displayName=hb;var a8=A.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:i,...s}=e,a=db(hb,n),[l,u]=A.useState(r),h=A.useRef(null),f=Gn(t,h),m=A.useRef(0),y=m.current,g=A.useRef(0),x=g.current,v=a.open||l,k=A.useRef(v),E=A.useRef(void 0);return A.useEffect(()=>{const S=requestAnimationFrame(()=>k.current=!1);return()=>cancelAnimationFrame(S)},[]),di(()=>{const S=h.current;if(S){E.current=E.current||{transitionDuration:S.style.transitionDuration,animationName:S.style.animationName},S.style.transitionDuration="0s",S.style.animationName="none";const T=S.getBoundingClientRect();m.current=T.height,g.current=T.width,k.current||(S.style.transitionDuration=E.current.transitionDuration,S.style.animationName=E.current.animationName),u(r)}},[a.open,r]),c.jsx(jt.div,{"data-state":fb(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!v,...s,ref:f,style:{"--radix-collapsible-content-height":y?`${y}px`:void 0,"--radix-collapsible-content-width":x?`${x}px`:void 0,...e.style},children:v&&i})});function fb(e){return e?"open":"closed"}var l8=vC,u8=EC,c8=wC,d8=A.createContext(void 0);function h8(e){const t=A.useContext(d8);return e||t||"ltr"}var Mr="Accordion",f8=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[pb,p8,m8]=NS(Mr),[zf,vK]=Sl(Mr,[m8,_C]),mb=_C(),TC=X.forwardRef((e,t)=>{const{type:n,...r}=e,i=r,s=r;return c.jsx(pb.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?c.jsx(_8,{...s,ref:t}):c.jsx(b8,{...i,ref:t})})});TC.displayName=Mr;var[SC,g8]=zf(Mr),[kC,y8]=zf(Mr,{collapsible:!1}),b8=X.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:s=!1,...a}=e,[l,u]=Sf({prop:n,defaultProp:r??"",onChange:i,caller:Mr});return c.jsx(SC,{scope:e.__scopeAccordion,value:X.useMemo(()=>l?[l]:[],[l]),onItemOpen:u,onItemClose:X.useCallback(()=>s&&u(""),[s,u]),children:c.jsx(kC,{scope:e.__scopeAccordion,collapsible:s,children:c.jsx(CC,{...a,ref:t})})})}),_8=X.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},...s}=e,[a,l]=Sf({prop:n,defaultProp:r??[],onChange:i,caller:Mr}),u=X.useCallback(f=>l((m=[])=>[...m,f]),[l]),h=X.useCallback(f=>l((m=[])=>m.filter(y=>y!==f)),[l]);return c.jsx(SC,{scope:e.__scopeAccordion,value:a,onItemOpen:u,onItemClose:h,children:c.jsx(kC,{scope:e.__scopeAccordion,collapsible:!0,children:c.jsx(CC,{...s,ref:t})})})}),[v8,$f]=zf(Mr),CC=X.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:i,orientation:s="vertical",...a}=e,l=X.useRef(null),u=Gn(l,t),h=p8(n),m=h8(i)==="ltr",y=wt(e.onKeyDown,g=>{var K;if(!f8.includes(g.key))return;const x=g.target,v=h().filter(Q=>{var M;return!((M=Q.ref.current)!=null&&M.disabled)}),k=v.findIndex(Q=>Q.ref.current===x),E=v.length;if(k===-1)return;g.preventDefault();let S=k;const T=0,P=E-1,F=()=>{S=k+1,S>P&&(S=T)},O=()=>{S=k-1,S<T&&(S=P)};switch(g.key){case"Home":S=T;break;case"End":S=P;break;case"ArrowRight":s==="horizontal"&&(m?F():O());break;case"ArrowDown":s==="vertical"&&F();break;case"ArrowLeft":s==="horizontal"&&(m?O():F());break;case"ArrowUp":s==="vertical"&&O();break}const H=S%E;(K=v[H].ref.current)==null||K.focus()});return c.jsx(v8,{scope:n,disabled:r,direction:i,orientation:s,children:c.jsx(pb.Slot,{scope:n,children:c.jsx(jt.div,{...a,"data-orientation":s,ref:u,onKeyDown:r?void 0:y})})})}),Xh="AccordionItem",[x8,gb]=zf(Xh),AC=X.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...i}=e,s=$f(Xh,n),a=g8(Xh,n),l=mb(n),u=yk(),h=r&&a.value.includes(r)||!1,f=s.disabled||e.disabled;return c.jsx(x8,{scope:n,open:h,disabled:f,triggerId:u,children:c.jsx(l8,{"data-orientation":s.orientation,"data-state":RC(h),...l,...i,ref:t,disabled:f,open:h,onOpenChange:m=>{m?a.onItemOpen(r):a.onItemClose(r)}})})});AC.displayName=Xh;var NC="AccordionHeader",PC=X.forwardRef((e,t)=>
251{const{__scopeAccordion:n,...r}=e,i=$f(Mr,n),s=gb(NC,n);return c.jsx(jt.h3,{"data-orientation":i.orientation,"data-state":RC(s.open),"data-disabled":s.disabled?"":void 0,...r,ref:t})});PC.displayName=NC;var k0="AccordionTrigger",IC=X.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=$f(Mr,n),s=gb(k0,n),a=y8(k0,n),l=mb(n);return c.jsx(pb.ItemSlot,{scope:n,children:c.jsx(u8,{"aria-disabled":s.open&&!a.collapsible||void 0,"data-orientation":i.orientation,id:s.triggerId,...l,...r,ref:t})})});IC.displayName=k0;var OC="AccordionContent",LC=X.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=$f(Mr,n),s=gb(OC,n),a=mb(n);return c.jsx(c8,{role:"region","aria-labelledby":s.triggerId,"data-orientation":i.orientation,...a,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});LC.displayName=OC;function RC(e){return e?"open":"closed"}var E8=TC,w8=AC,T8=PC,jC=IC,DC=LC;const S8=E8,MC=A.forwardRef(({className:e,...t},n)=>c.jsx(w8,{ref:n,className:pi("border-b",e),...t}));MC.displayName="AccordionItem";const BC=A.forwardRef(({className:e,children:t,...n},r)=>c.jsx(T8,{className:"flex",children:c.jsxs(jC,{ref:r,className:pi("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,c.jsx(rk,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));BC.displayName=jC.displayName;const FC=A.forwardRef(({className:e,children:t,...n},r)=>c.jsx(DC,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:c.jsx("div",{className:pi("pb-4 pt-0",e),children:t})}));FC.displayName=DC.displayName;const d1=[{question:"Is MLC free to use?",answer:"Yes. My Local Components is completely free for buyers. All supplier listings, product data, and buying guides are available without registration or payment."},{question:"How are suppliers verified?",answer:"Every supplier is cross-referenced against Companies House public records. We verify company status, incorporation date, directors, and registered address. We don't accept paid listings."},{question:"Can I request a quote through MLC?",answer:"MLC is a directory, not a marketplace. We provide verified supplier contact details so you can reach out directly. This means no middleman markup on your orders."},{question:"How many suppliers are listed?",answer:"MLC lists over 13,000 UK engineering companies across 15 product categories, sourced from Companies House SIC code data covering manufacturing codes 22190 through 46690."},{question:"What areas does MLC cover?",answer:"We cover 50+ UK cities and industrial regions, with the strongest coverage in the West Midlands, Yorkshire, Greater Manchester, and the North East - the UK's engineering heartlands."},{question:"How often is the data updated?",answer:"Supplier data is refreshed weekly from Companies House. Product specifications reference current ISO, BS, and DIN standards. News articles are published daily."}];function k8(){return c.jsxs(c.Fragment,{children:[c.jsx(Y5,{faq:d1}),c.jsxs("section",{className:"container-wide py-16",children:[c.jsx("h2",{className:"text-2xl font-heading font-bold mb-8",children:"Frequently Asked Questions"}),c.jsx(S8,{type:"single",collapsible:!0,className:"max-w-3xl",children:d1.map((e,t)=>c.jsxs(MC,{value:`faq-${t}`,children:[c.jsx(BC,{className:"text-left font-heading font-semibold text-sm",children:e.question}),c.jsx(FC,{className:"text-muted-foreground",children:e.answer})]},t))})]})]})}const C8="/assets/bearings-_Z5_mcjp.png",A8="/assets/seals-CO1FRJjG.png",N8="/assets/fasteners-DpV2aWnw.png",P8="/assets/springs-BGJ03nCN.png",I8="/assets/pumps-DciEpx1h.png",O8="/assets/valves-QvN2A_xv.png",UC="/assets/gears-DDk_z1gF.png",L8="/assets/belts-Bt3aimz4.png",R8="/assets/couplings-DU0d9KYD.png",j8="/assets/filters-DtyKOY7k.png",D8="/assets/hoses-BI47nyrC.png",M8="/assets/gaskets-Cg_VGudX.png",B8="/assets/motors-BoA_ySLj.png",F8="/assets/actuators-CImnBYXi.png",U8="/assets/sensors-DEJkBiVa.png",H8="/assets/cbm-DRaoNrEP.png",z8="/assets/biafd-C5NNDV3T.png",$8="/assets/btma-fVy2OSW3.png",q8="/assets/bpma-DqLyIj33.png",W8="/assets/ist-qMn3pktj.png",V8="/assets/bsi-33jxOOCS.png",K8="/assets/homepage-DN9TpFGY.jpg",G8={bearings:C8,seals:A8,fasteners:N8,springs:P8,pumps:I8,valves:O8,gears:UC,belts:L8,couplings:R8,filters:j8,hoses:D8,gaskets:M8,motors:B8,actuators:F8,sensors:U8};function Y8(){const{data:e,isLoading:t}=He({queryKey:["product_categories"],queryFn:async()=>{const{data:s}=await Ie.from("product_categories").select("name, slug, icon").eq("is_published",!0).is("parent_slug",null).order("name");return s||[]}}),{data:n}=He({queryKey:["news_recent"],queryFn:async()=>{const{data:s}=await Ie.from("news_articles").select("title, slug, meta_description, category, published_at").eq("is_published",!0).order("published_at",{ascending:!1}).limit(4);return s||[]}}),r={"@context":"https://schema.org","@type":"WebSite",name:"My Local Components",url:"https://mlc.org.uk",potentialAction:{"@type":"SearchAction",target:"https://mlc.org.uk/tools/supplier-finder?q={search_term_string}","query-input":"required name=search_term_string"}},i={"@context":"https://schema.org","@type":"Organization",name:"My Local Components",url:"https://mlc.org.uk",description:"Free UK directory for engineering component suppliers"};return c.jsxs(_e,{children:[c.jsx(Ye,{noSuffix:!0,title:"MLC - UK Engineering Trade Reviews, Reference Charts and Buying Guides",description:"Independent UK engineering trade publication. Tool reviews, technical comparisons, reference data, and industry news for engineers, workshop owners, and procurement teams.",canonical:"/"}),c.jsx(Uf,{data:[r,i]}),c.jsxs("section",{className:"relative bg-secondary text-secondary-foreground py-16 sm:py-24 overflow-hidden",children:[c.jsx("img",{src:K8,alt:"",role:"presentation",className:"absolute inset-0 w-full h-full object-cover",width:1920,height:640,loading:"eager",fetchPriority:"high"}),c.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-secondary/80 via-secondary/30 to-secondary/50"}),c.jsxs("div",{className:"relative container-wide text-center",children:[c.jsx("h1",{className:"text-3xl sm:text-4xl lg:text-5xl font-heading font-bold max-w-3xl mx-auto leading-tight",children:"My Local Components"}
251),c.jsx("p",{className:"mt-4 text-secondary-foreground/80 max-w-2xl mx-auto text-base sm:text-lg",children:"Independent UK engineering trade publication. Tool reviews, technical comparisons, reference data, and industry news for engineers, workshop owners, and procurement teams."})]})]}),c.jsx("section",{className:"bg-[#F5F5F5] border-b border-border",children:c.jsxs("div",{className:"container-wide py-6",children:[c.jsx("h2",{className:"text-center text-sm font-heading font-semibold text-muted-foreground mb-4",children:"Trusted Data Sources"}),c.jsxs("div",{className:"flex flex-wrap justify-center gap-4 sm:gap-6 mb-6",children:[c.jsxs("div",{className:"flex items-center gap-2 bg-card border border-border px-4 py-2.5",children:[c.jsx(Nf,{size:18,className:"text-green-600 flex-shrink-0"}),c.jsx("span",{className:"text-sm font-semibold text-foreground",children:"Companies House Verified"})]}),c.jsxs("div",{className:"flex items-center gap-2 bg-card border border-border px-4 py-2.5",children:[c.jsx("span",{className:"text-sm font-semibold text-foreground",children:"Domain Est. 1998"}),c.jsx("span",{className:"text-xs text-muted-foreground",children:"- 28 years"})]})]}),c.jsx("h3",{className:"text-center text-xs font-heading font-semibold text-muted-foreground mb-3 uppercase tracking-wider",children:"Data Referenced From"}),c.jsx("div",{className:"flex flex-wrap justify-center items-center gap-6 sm:gap-8",children:[{abbr:"CBM",full:"Confederation of British Metalforming",img:H8,url:"https://thecbm.co.uk"},{abbr:"BIAFD",full:"British & Irish Association of Fastener Distributors",img:z8,url:"https://biafd.org"},{abbr:"BTMA",full:"British Turned Parts Manufacturers Association",img:$8,url:"https://www.btma.org"},{abbr:"BPMA",full:"British Pump Manufacturers Association",img:q8,url:"https://bpma.org.uk"},{abbr:"IST",full:"Institute of Spring Technology",img:W8,url:"https://ist.org.uk"},{abbr:"BSI",full:"British Standards Institution",img:V8,url:"https://www.bsigroup.com"}].map(s=>c.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer",title:s.full,className:"opacity-70 hover:opacity-100 transition-opacity",children:c.jsx("img",{src:s.img,alt:s.full,loading:"lazy",width:48,height:48,className:"h-10 sm:h-12 w-auto object-contain"})},s.abbr))}),c.jsx("p",{className:"text-center text-[9px] text-muted-foreground/60 mt-3",children:"Logos are trademarks of their respective organisations. MLC is not affiliated with or endorsed by these bodies."})]})}),c.jsx(X5,{}),c.jsxs("section",{className:"container-wide pb-16",children:[c.jsx("h2",{className:"text-2xl font-heading font-bold text-center mb-8",children:"Product Categories"}),t?c.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 gap-4",children:Array.from({length:15}).map((s,a)=>c.jsxs("div",{className:"border border-border bg-card p-4 text-center animate-pulse",children:[c.jsx("div",{className:"h-8 w-8 bg-muted rounded mx-auto mb-2"}),c.jsx("div",{className:"h-4 w-20 bg-muted rounded mx-auto"})]},a))}):c.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 gap-4",children:(e&&e.length>0?e:Array.from({length:15},(s,a)=>({name:["Bearings","Seals","Fasteners","Springs","Pumps","Valves","Gears","Belts","Couplings","Filters","Hoses","Gaskets","Motors","Actuators","Sensors"][a],slug:["bearings","seals","fasteners","springs","pumps","valves","gears","belts","couplings","filters","hoses","gaskets","motors","actuators","sensors"][a],icon:null}))).map(s=>c.jsxs(xe,{to:`/products/${s.slug}`,className:"border border-border bg-card p-4 text-center hover:border-primary hover:shadow-sm transition-all group",children:[c.jsx("img",{src:G8[s.slug||""]||UC,alt:s.name||"",loading:"lazy",width:48,height:48,className:"w-12 h-12 object-contain mx-auto mb-2"}),c.jsx("span",{className:"text-sm font-heading font-semibold group-hover:text-primary transition-colors",children:s.name})]},s.slug))})]}),c.jsx(e8,{}),c.jsx(Z5,{source:"homepage"}),c.jsx(r8,{}),c.jsx("section",{className:"bg-muted py-16",children:c.jsxs("div",{className:"container-wide",children:[c.jsx("h2",{className:"text-2xl font-heading font-bold text-center mb-10",children:"How MLC Works"}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[{step:"1",title:"Search by product or location",desc:"Browse 15 product categories or find suppliers in your area."},{step:"2",title:"View verified supplier data",desc:"Every listing is verified against Companies House public re
251cords."},{step:"3",title:"Contact suppliers directly",desc:"Get phone, email, and website details to reach suppliers."}].map(s=>c.jsxs("div",{className:"text-center",children:[c.jsx("div",{className:"w-12 h-12 bg-primary text-primary-foreground flex items-center justify-center mx-auto mb-4 text-lg font-bold",children:s.step}),c.jsx("h3",{className:"font-heading font-semibold mb-2",children:s.title}),c.jsx("p",{className:"text-sm text-muted-foreground",children:s.desc})]},s.step))})]})}),c.jsx(i8,{}),n&&n.length>0&&c.jsxs("section",{className:"container-wide py-16",children:[c.jsxs("div",{className:"flex items-center justify-between mb-8",children:[c.jsx("h2",{className:"text-2xl font-heading font-bold",children:"UK Engineering Industry News"}),c.jsxs(xe,{to:"/news",className:"text-sm text-primary hover:underline flex items-center gap-1",children:["All news ",c.jsx(Af,{size:14})]})]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6",children:n.map(s=>c.jsxs(xe,{to:`/news/${s.slug}`,className:"border border-border bg-card p-5 hover:border-primary transition-colors group",children:[s.category&&c.jsx("span",{className:"text-xs font-semibold text-primary",children:s.category}),c.jsx("h3",{className:"font-heading font-semibold mt-1 group-hover:text-primary transition-colors",children:s.title}),s.meta_description&&c.jsx("p",{className:"text-sm text-muted-foreground mt-2 line-clamp-2",children:s.meta_description}),c.jsx("span",{className:"text-xs text-muted-foreground mt-2 block",children:pr(s.published_at)})]},s.slug))})]}),c.jsx(n8,{}),c.jsx(k8,{})]})}const Q8=[{name:"Products",href:"/products"},{name:"Suppliers",href:"/suppliers"},{name:"Areas",href:"/areas"},{name:"Guides",href:"/guides"},{name:"Standards",href:"/standards"},{name:"Glossary",href:"/glossary"},{name:"News",href:"/news"},{name:"Trade Bodies",href:"/trade-bodies"}],Z8=()=>{const e=Ln(),t=wf(),[n,r]=A.useState("");A.useEffect(()=>{console.error("404: route not found:",e.pathname)},[e.pathname]);const i=s=>{s.preventDefault(),n.trim()&&t(`/suppliers?q=${encodeURIComponent(n.trim())}`)};return c.jsxs(_e,{children:[c.jsx(Ye,{title:"Page Not Found",description:"The page you are looking for could not be found.",noindex:!0}),c.jsxs("div",{className:"container-narrow py-20 text-center",children:[c.jsx("p",{className:"text-sm font-semibold text-primary mb-2",children:"404"}),c.jsx("h1",{className:"text-3xl font-heading font-bold mb-3",children:"Page Not Found"}),c.jsxs("p",{className:"text-muted-foreground mb-8",children:["We couldn't find ",c.jsx("code",{className:"bg-muted px-1.5 py-0.5 text-sm",children:e.pathname}),". Try searching or jump back to a section below."]}),c.jsxs("form",{onSubmit:i,className:"flex max-w-md mx-auto mb-10 border border-border bg-card",children:[c.jsx("input",{value:n,onChange:s=>r(s.target.value),placeholder:"Search suppliers, products, guides...",className:"flex-1 px-4 py-2.5 bg-transparent text-sm text-foreground outline-none","aria-label":"Search"}),c.jsx("button",{type:"submit",className:"px-4 bg-primary text-primary-foreground","aria-label":"Search",children:c.jsx(ml,{size:16})})]}),c.jsx("div",{className:"flex flex-wrap justify-center gap-2",children:Q8.map(s=>c.jsx(xe,{to:s.href,className:"border border-border px-3 py-1.5 text-sm hover:border-primary transition-colors",children:s.name},s.href))})]})]})};function h1(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,s=!1;for(;!s;){r===-1&&(r=n.length,s=!0);const a=n.slice(i,r).trim();(a||!s)&&t.push(a),i=r+1,r=n.indexOf(",",i)}return t}function HC(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const X8=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,J8=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,eB={};function f1(e,t){return(eB.jsx?J8:X8).test(e)}const tB=/[ \t\n\f\r]/g;function nB(e){return typeof e=="object"?e.type==="text"?p1(e.value):!1:p1(e)}function p1(e){return e.replace(tB,"")===""}class Bc{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Bc.prototype.normal={};Bc.prototype.property={};Bc.prototype.space=void 0;function zC(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Bc(n,r,t)}function _c(e){return e.toLowerCase()}class Rn{constructor(t,n){this.attribute=n,this.property=t}}Rn.prototype.attribute="";Rn.prototype.booleanish=!1;Rn.prototype.boolean=!1;Rn.prototype.commaOrSpaceSeparated=!1;Rn.prototype.commaSeparated=!1;Rn.prototype.defined=!1;Rn.prototype.mustUseProperty=!1;Rn.prototype.number=!1;Rn.prototype.overloadedBoolean=!1;Rn.prototype.property="";Rn.prototype.spaceSeparated=!1;Rn.prototype.space=void 0;let rB=0;const Re=Qo(),Nt=Qo(),C0=Qo(),oe=Qo(),it=Qo(),Ya=Qo(),Fn=Qo();function Qo(){return 2**++rB}const A0=Object.freeze(Object.defineProperty({__proto__:null,boolean:Re,booleanish:Nt,commaOrSpaceSeparated:Fn,commaSeparated:Ya,number:oe,overloadedBoolean:C0,spaceSeparated:it},Symbol.toStringTag,{value:"Module"})),Em=Object.keys(A0);class yb extends Rn{constructor(t,n,r,i){let s=-1;if(super(t,n),m1(this,"space",i),typeof r=="number")for(;++s<Em.length;){const a=Em[s];m1(this,Em[s],(r&A0[a])===A0[a])}}}yb.prototype.defined=!0;function m1(e,t,n){n&&(e[t]=n)}function Pl(e){const t={},n={};
vendor: 4,423 bytes, line 251
251for(const[r,i]of Object.entries(e.properties)){const s=new yb(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[_c(r)]=r,n[_c(s.attribute)]=r}return new Bc(t,n,e.space)}const $C=Pl({properties:{ariaActiveDescendant:null,ariaAtomic:Nt,ariaAutoComplete:null,ariaBusy:Nt,ariaChecked:Nt,ariaColCount:oe,ariaColIndex:oe,ariaColSpan:oe,ariaControls:it,ariaCurrent:null,ariaDescribedBy:it,ariaDetails:null,ariaDisabled:Nt,ariaDropEffect:it,ariaErrorMessage:null,ariaExpanded:Nt,ariaFlowTo:it,ariaGrabbed:Nt,ariaHasPopup:null,ariaHidden:Nt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:it,ariaLevel:oe,ariaLive:null,ariaModal:Nt,ariaMultiLine:Nt,ariaMultiSelectable:Nt,ariaOrientation:null,ariaOwns:it,ariaPlaceholder:null,ariaPosInSet:oe,ariaPressed:Nt,ariaReadOnly:Nt,ariaRelevant:null,ariaRequired:Nt,ariaRoleDescription:it,ariaRowCount:oe,ariaRowIndex:oe,ariaRowSpan:oe,ariaSelected:Nt,ariaSetSize:oe,ariaSort:null,ariaValueMax:oe,ariaValueMin:oe,ariaValueNow:oe,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function qC(e,t){return t in e?e[t]:t}function WC(e,t){return qC(e,t.toLowerCase())}const iB=Pl({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ya,acceptCharset:it,accessKey:it,action:null,allow:null,allowFullScreen:Re,allowPaymentRequest:Re,allowUserMedia:Re,alt:null,as:null,async:Re,autoCapitalize:null,autoComplete:it,autoFocus:Re,autoPlay:Re,blocking:it,capture:null,charSet:null,checked:Re,cite:null,className:it,cols:oe,colSpan:null,content:null,contentEditable:Nt,controls:Re,controlsList:it,coords:oe|Ya,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Re,defer:Re,dir:null,dirName:null,disabled:Re,download:C0,draggable:Nt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Re,formTarget:null,headers:it,height:oe,hidden:C0,high:oe,href:null,hrefLang:null,htmlFor:it,httpEquiv:it,id:null,imageSizes:null,imageSrcSet:null,inert:Re,inputMode:null,integrity:null,is:null,isMap:Re,itemId:null,itemProp:it,itemRef:it,itemScope:Re,itemType:it,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Re,low:oe,manifest:null,max:null,maxLength:oe,media:null,method:null,min:null,minLength:oe,multiple:Re,muted:Re,name:null,nonce:null,noModule:Re,noValidate:Re,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Re,optimum:oe,pattern:null,ping:it,placeholder:null,playsInline:Re,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Re,referrerPolicy:null,rel:it,required:Re,reversed:Re,rows:oe,rowSpan:oe,sandbox:it,scope:null,scoped:Re,seamless:Re,selected:Re,shadowRootClonable:Re,shadowRootDelegatesFocus:Re,shadowRootMode:null,shape:null,size:oe,sizes:null,slot:null,span:oe,spellCheck:Nt,src:null,
251srcDoc:null,srcLang:null,srcSet:null,start:oe,step:null,style:null,tabIndex:oe,target:null,title:null,translate:null,type:null,typeMustMatch:Re,useMap:null,value:Nt,width:oe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:it,axis:null,background:null,bgColor:null,border:oe,borderColor:null,bottomMargin:oe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Re,declare:Re,event:null,face:null,frame:null,frameBorder:null,hSpace:oe,leftMargin:oe,link:null,longDesc:null,lowSrc:null,marginHeight:oe,marginWidth:oe,noResize:Re,noHref:Re,noShade:Re,noWrap:Re,object:null,profile:null,prompt:null,rev:null,rightMargin:oe,rules:null,scheme:null,scrolling:Nt,standby:null,summary:null,text:null,topMargin:oe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:oe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Re,disableRemotePlayback:Re,prefix:null,property:null,results:oe,security:null,unselectable:null},space:"html",transform:WC}),sB=Pl({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
251-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Fn,accentHeight:oe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:oe,amplitude:oe,arabicForm:null,ascent:oe,attributeName:null,attributeType:null,azimuth:oe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:oe,by:null,calcMode:null,capHeight:oe,className:it,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:oe,diffuseConstant:oe,direction:null,display:null,dur:null,divisor:oe,dominantBaseline:null,download:Re,dx:null,dy:null,edgeMode:null,editable:null,elevation:oe,enableBackground:null,end:null,event:null,exponent:oe,externalResourcesRequired:null,fill:null,fillOpacity:oe,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ya,g2:Ya,glyphName:Ya,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:oe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:oe,horizOriginX:oe,horizOriginY:oe,id:null,ideographic:oe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:oe,k:oe,k1:oe,k2:oe,k3:oe,k4:oe,kernelMatrix:Fn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:oe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:oe,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
vendor: 3,904 bytes, line 251
251Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:oe,overlineThickness:oe,paintOrder:null,panose1:null,path:null,pathLength:oe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:it,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:oe,pointsAtY:oe,pointsAtZ:oe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Fn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Fn,rev:Fn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Fn,requiredFeatures:Fn,requiredFonts:Fn,requiredFormats:Fn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:oe,specularExponent:oe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:oe,strikethroughThickness:oe,string:null,stroke:null,strokeDashArray:Fn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:oe,strokeOpacity:oe,strokeWidth:null,style:null,surfaceScale:oe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Fn,tabIndex:oe,tableValues:null,target:null,targetX:oe,targetY:oe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Fn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:oe,underlineThickness:oe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:oe,values:null,vAlphabetic:oe,vMathematical:oe,vectorEffect:null,vHanging:oe,vIdeographic:oe,version:null,vertAdvY:oe,vertOriginX:oe,vertOriginY:oe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:oe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:qC}),VC=Pl({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),KC=Pl({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:WC}),GC=Pl({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),oB={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},aB=/[A-Z]/g,g1=/-[a-z]/g,lB=/^data[-\w.:]+$/i;function qf(e,t){const n=_c(t);let r=t,i=Rn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&lB.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(g1,cB);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!g1.test(s)){let a=s.replace(aB,uB);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=yb}return new i(r,t)}function uB(e){return"-"+e.toLowerCase()}function cB(e){return e.charAt(1).toUpperCase()}const Fc=zC([$C,iB,VC,KC,GC],"html"),Xs=zC([$C,sB,VC,KC,GC],"svg");function y1(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function YC(e){return e.join(" ").trim()}var bb={},b1=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,dB=/\n/g,hB=/^\s*/,fB=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,pB=/^:\s*/,mB=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,gB=/^[;
vendor: 4,146 bytes, lines 251-252
251\s]*/,yB=/^\s+|\s+$/g,bB=` 252`,_1="/",v1="*",bo="",_B="comment",vB="declaration";function xB(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(x){var v=x.match(dB);v&&(n+=v.length);var k=x.lastIndexOf(bB);r=~k?x.length-k:r+x.length}function s(){var x={line:n,column:r};return function(v){return v.position=new a(x),h(),v}}function a(x){this.start=x,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function l(x){var v=new Error(t.source+":"+n+":"+r+": "+x);if(v.reason=x,v.filename=t.source,v.line=n,v.column=r,v.source=e,!t.silent)throw v}function u(x){var v=x.exec(e);if(v){var k=v[0];return i(k),e=e.slice(k.length),v}}function h(){u(hB)}function f(x){var v;for(x=x||[];v=m();)v!==!1&&x.push(v);return x}function m(){var x=s();if(!(_1!=e.charAt(0)||v1!=e.charAt(1))){for(var v=2;bo!=e.charAt(v)&&(v1!=e.charAt(v)||_1!=e.charAt(v+1));)++v;if(v+=2,bo===e.charAt(v-1))return l("End of comment missing");var k=e.slice(2,v-2);return r+=2,i(k),e=e.slice(v),r+=2,x({type:_B,comment:k})}}function y(){var x=s(),v=u(fB);if(v){if(m(),!u(pB))return l("property missing ':'");var k=u(mB),E=x({type:vB,property:x1(v[0].replace(b1,bo)),value:k?x1(k[0].replace(b1,bo)):bo});return u(gB),E}}function g(){var x=[];f(x);for(var v;v=y();)v!==!1&&(x.push(v),f(x));return x}return h(),g()}function x1(e){return e?e.replace(yB,bo):bo}var EB=xB,wB=zu&&zu.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(bb,"__esModule",{value:!0});bb.default=SB;const TB=wB(EB);function SB(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,TB.default)(e),i=typeof t=="function";return r.forEach(s=>{if(s.type!=="declaration")return;const{property:a,value:l}=s;i?t(a,l,s):l&&(n=n||{},n[a]=l)}),n}var Wf={};Object.defineProperty(Wf,"__esModule",{value:!0});Wf.camelCase=void 0;var kB=/^--[a-zA-Z0-9_-]+$/,CB=/-([a-z])/g,AB=/^[^-]+$/,NB=/^-(webkit|moz|ms|o|khtml)-/,PB=/^-(ms)-/,IB=function(e){return!e||AB.test(e)||kB.test(e)},OB=function(e,t){return t.toUpperCase()},E1=function(e,t){return"".concat(t,"-")},LB=function(e,t){return t===void 0&&(t={}),IB(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(PB,E1):e=e.replace(NB,E1),e.replace(CB,OB))};Wf.camelCase=LB;var RB=zu&&zu.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},jB=RB(bb),DB=Wf;function N0(e,t){var n={};return!e||typeof e!="string"||(0,jB.default)(e,function(r,i){r&&i&&(n[(0,DB.camelCase)(r,t)]=i)}),n}N0.default=N0;var MB=N0;const BB=Ks(MB),Vf=QC("end"),gi=QC("start");function QC(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function ZC(e){const t=gi(e),n=Vf(e);if(t&&n)return{start:t,end:n}}function Ru(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?w1(e.position):"start"in e||"end"in e?w1(e):"line"in e||"column"in e?P0(e):""}function P0(e){return T1(e&&e.line)+":"+T1(e&&e.column)}function w1(e){return P0(e&&e.start)+"-"+P0(e&&e.end)}function T1(e){return e&&typeof e=="number"?e:1}class an extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",s={},a=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?i=t:!s.cause&&t&&(a=!0,i=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?s.ruleId=r:(s.source=r.slice(0,u),s.ruleId=r.slice(u+1))}if(!s.place&&s.ancestors&&s.ancestors){const u=s.ancestors[s.ancestors.length-1];u&&(s.place=u.position)}const l=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=l?l.line:void 0,this.name=Ru(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=a&&s.cause&&typeof s.cause.stack=="str
252ing"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}an.prototype.file="";an.prototype.name="";an.prototype.reason="";an.prototype.message="";an.prototype.stack="";an.prototype.column=void 0;an.prototype.line=void 0;an.prototype.ancestors=void 0;an.prototype.cause=void 0;an.prototype.fatal=void 0;an.prototype.place=void 0;an.prototype.ruleId=void 0;an.prototype.source=void 0;const _b={}.hasOwnProperty,FB=new Map,UB=/[A-Z]/g,HB=new Set(["table","tbody","thead","tfoot","tr"]),zB=new Set(["td","th"]),XC="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function $B(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=ZB(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=QB(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Xs:Fc,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=JC(i,e,void 0);return s&&typeof s!="string"?s:i.create(e,i.Fragment,{children:s||void 0},void 0)}function JC(e,t,n){if(t.type==="element")return qB(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return WB(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return KB(e,t,n);if(t.type==="mdxjsEsm")return VB(e,t);if(t.type==="root")return GB(e,t,n);if(t.type==="text")return YB(e,t)}function qB(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Xs,e.schema=i),e.ancestors.push(t);const s=t2(e,t.tagName,!1),a=XB(e,t);let l=xb(e,t);return HB.has(t.tagName)&&(l=l.filter(function(u){return typeof u=="string"?!nB(u):!0})),e2(e,a,s,t),vb(a,l),e.ancestors.pop(),e.schema=r,e.create(t,s,a,n)}function WB(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}vc(e,t.position)}function VB(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);vc(e,t.position)}function KB(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Xs,e.schema=i),e.ancestors.push(t);const s=t.name===null?e.Fragment:t2(e,t.name,!0),a=JB(e,t),l=xb(e,t);return e2(e,a,s,t),vb(a,l),e.ancestors.pop(),e.schema=r,e.create(t,s,a,n)}function GB(e,t,n){const r={};return vb(r,xb(e,t)),e.create(t,e.Fragment,r,n)}function YB(e,t){return t.value}function e2(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function vb(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function QB(e,t,n){return r;function r(i,s,a,l){const h=Array.isArray(a.children)?n:t;return l?h(s,a,l):h(s,a)}}function ZB(e,t){return n;function n(r,i,s,a){const l=Array.isArray(s.children),u=gi(r);return t(i,s,a,l,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function XB(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&_b.call(t.properties,i)){const s=eF(e,i,t.properties[i]);if(s){const[a,l]=s;e.tableCellAlignToStyle&&a==="align"&&typeof l=="string"&&zB.has(t.tagName)?r=l:n[a]=l}}if(r){const s=n.style||(n.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function JB(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const s=r.data.estree.body[0];s.type;const a=s.expression;a.type;const l=a.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else vc(e,t.position);else{const i=r.name;let s;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const l=r.value.data.estree.body[0];l.type,s=e.evaluater.evaluateExpression(l.expression)}else vc(e,t.position);else s=r.value===null?!0:r.value;n[i]=s}return n}function xb(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:FB;for(;++r<t.children.length;){const s=t.children[r];let a;if(e.passKeys){const u=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(u){const h=i.get(u)||0;a=u+"-"+h,i.set(u,h+1)}}const l=JC(e,s,a);l!==void 0&&n.push(l)}return n}function eF(e,t,n){const r=qf(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?HC(n):YC(n)),r.property==="style"){let i=typeof n=="object"?n:tF(e,String(n));return e.stylePropertyNameCase==="css"&&(i=nF(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?oB[r.property]||r.property:r.attribute,n]}}function tF(e,t){try{return BB(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new an("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=XC+"#cannot-parse-style-attribute",i}}function t2(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let s=-1,a;for(;++s<i.length;){const l=f1(i[s])?{type:"Identifier",name:i[s]}:{type:"Literal",value:i[s]};a=a?{type:"MemberExpression",object:a,property:l,computed:!!(s&&l.type==="Literal"),optional:!1}:l}r=a}else r=f1(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return _b.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);vc(e)}function vc(e,t){const n=new an("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=XC+"#cannot-handle-mdx-estrees-without-createevaluater",n}function nF(e){const t={};let n;for(n in e)_b.call(e,n)&&(t[rF(n)]=e[n]);return t}function rF(e){let t=e.replace(UB,iF);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function iF(e){return"-"+e.toLowerCase()}const wm={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},sF={};function Eb(e,t){const n=sF,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return n2(e,r,i)}function n2(e,t,n){if(oF(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return S1(e.children,t,n)}return Array.isArray(e)?S1(e,t,n):""}function S1(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=n2(e[i],t,n);return r.join("")}function oF(e){return!!(e&&typeof e=="object")}const k1=document.createElement("i");function wb(e){const t="&"+e+";";k1.innerHTML=t;const n=k1.textContent;
vendor: 14,467 bytes, line 252
252return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Vn(e,t,n,r){const i=e.length;let s=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);s<r.length;)a=r.slice(s,s+1e4),a.unshift(t,0),e.splice(...a),s+=1e4,t+=1e4}function lr(e,t){return e.length>0?(Vn(e,e.length,0,t),e):t}const C1={}.hasOwnProperty;function r2(e){const t={};let n=-1;for(;++n<e.length;)aF(t,e[n]);return t}function aF(e,t){let n;for(n in t){const i=(C1.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let a;if(s)for(a in s){C1.call(i,a)||(i[a]=[]);const l=s[a];lF(i[a],Array.isArray(l)?l:l?[l]:[])}}}function lF(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Vn(e,0,0,r)}function i2(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Lr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const pn=Js(/[A-Za-z]/),sn=Js(/[\dA-Za-z]/),uF=Js(/[#-'*+\--9=?A-Z^-~]/);function Jh(e){return e!==null&&(e<32||e===127)}const I0=Js(/\d/),cF=Js(/[\dA-Fa-f]/),dF=Js(/[!-/:-@[-`{-~]/);function Se(e){return e!==null&&e<-2}function et(e){return e!==null&&(e<0||e===32)}function Fe(e){return e===-2||e===-1||e===32}const Kf=Js(new RegExp("\\p{P}|\\p{S}","u")),Wo=Js(/\s/);function Js(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Il(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const s=e.charCodeAt(n);let a="";if(s===37&&sn(e.charCodeAt(n+1))&&sn(e.charCodeAt(n+2)))i=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(a=String.fromCharCode(s));else if(s>55295&&s<57344){const l=e.charCodeAt(n+1);s<56320&&l>56319&&l<57344?(a=String.fromCharCode(s,l),i=1):a="�"}else a=String.fromCharCode(s);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Ve(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let s=0;return a;function a(u){return Fe(u)?(e.enter(n),l(u)):t(u)}function l(u){return Fe(u)&&s++<i?(e.consume(u),l):(e.exit(n),t(u))}}const hF={tokenize:fF};function fF(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Ve(e,t,"linePrefix")}function i(l){return e.enter("paragraph"),s(l)}function s(l){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,a(l)}function a(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return Se(l)?(e.consume(l),e.exit("chunkText"),s):(e.consume(l),a)}}const pF={tokenize:mF},A1={tokenize:gF};function mF(e){const t=this,n=[];let r=0,i,s,a;return l;function l(T){if(r<n.length){const P=n[r];return t.containerState=P[1],e.attempt(P[0].continuation,u,h)(T)}return h(T)}function u(T){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&S();const P=t.events.length;let F=P,O;for(;F--;)if(t.events[F][0]==="exit"&&t.events[F][1].type==="chunkFlow"){O=t.events[F][1].end;break}E(r);let H=P;for(;H<t.events.length;)t.events[H][1].end={...O},H++;return Vn(t.events,F+1,0,t.events.slice(P)),t.events.length=H,h(T)}return l(T)}function h(T){if(r===n.length){if(!i)return y(T);if(i.currentConstruct&&i.currentConstruct.concrete)return x(T);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(A1,f,m)(T)}function f(T){return i&&S(),E(r),y(T)}function m(T){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,x(T)}function y(T){return t.containerState={},e.attempt(A1,g,x)(T)}function g(T){return r++,n.push([t.currentConstruct,t.containerState]),y(T)}function x(T){if(T===null){i&&S(),E(0),e.consume(T);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:s}),v(T)}function v(T){if(T===null){k(e.exit("chunkFlow"),!0),E(0),e.consume(T);return}return Se(T)?(e.consume(T),k(e.exit("chunkFlow")),r=0,t.interrupt=void 0,l):(e.consume(T),v)}function k(T,P){const F=t.sliceStream(T);if(P&&F.push(null),T.previous=s,s&&(s.next=T),s=T,i.defineSkip(T.start),i.write(F),t.parser.lazy[T.start.line]){let O=i.events.length;for(;O--;)if(i.events[O][1].start.offset<a&&(!i.events[O][1].end||i.events[O][1].end.offset>a))return;const H=t.events.length;let K=H,Q,M;for(;K--;)if(t.events[K][0]==="exit"&&t.events[K][1].type==="chunkFlow"){if(Q){M=t.events[K][1].end;break}Q=!0}for(E(r),O=H;O<t.events.length;)t.events[O][1].end={...M},O++;Vn(t.events,K+1,0,t.events.slice(H)),t.events.length=O}}function E(T){let P=n.length;for(;P-- >T;){const F=n[P];t.containerState=F[1],F[0].exit.call(t,e)}n.length=T}function S(){i.write([null]),s=void 0,i=void 0,t.containerState._closeFlow=void 0}}function gF(e,t,n){return Ve(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function bl(e){if(e===null||et(e)||Wo(e))return 1;if(Kf(e))return 2}function Gf(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const s=e[i].resolveAll;s&&!r.includes(s)&&(t=s(t,n),r.push(s))}return t}const O0={name:"attention",resolveAll:yF,tokenize:bF};function yF(e,t){let n=-1,r,i,s,a,l,u,h,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const m={...e[r][1].end},y={...e[n][1].start};N1(m,-u),N1(y,u),a={type:u>1?"strongSequence":"emphasisSequence",start:m,end:{...e[r][1].end}},l={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:y},s={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...a.start},end:{...l.end}},e[r][1].end={...a.start},e[n][1].start={...l.end},h=[],e[r][1].end.offset-e[r][1].start.offset&&(h=lr(h,[["enter",e[r][1],t],["exit",e[r][1],t]])),h=lr(h,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",s,t]]),h=lr(h,Gf(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),h=lr(h,[["exit",s,t],["enter",l,t],["exit",l,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,h=lr(h,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,Vn(e,r-1,n-r+3,h),n=r+h.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function bF(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=bl(r);let s;return a;function a(u){return s=u,e.enter("attentionSequence"),l(u)}function l(u){if(u===s)return e.consume(u),l;const h=e.exit("attentionSequence"),f=bl(u),m=!f||f===2&&i||n.includes(u),y=!i||i===2&&f||n.includes(r);return h._open=!!(s===42?m:m&&(i||!y)),h._close=!!(s===42?y:y&&(f||!m)),t(u)}}function N1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const _F={name:"autolink",tokenize:vF};function vF(e,t,n){let r=0;return i;function i(g){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(g){return pn(g)?(e.consume(g),a):g===64?n(g):h(g)}function a(g){return g===43||g===45||g===46||sn(g)?(r=1,l(g)):h(g)}function l(g){return g===58?(e.consume(g),r=0,u):(g===43||g===45||g===46||sn(g))&&r++<32?(e.consume(g),l):(r=0,h(g))}function u(g){return g===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):g===null||g===32||g===60||Jh(g)?n(g):(e.consume(g),u)}function h(g){return g===64?(e.consume(g),f):uF(g)?(e.consume(g),h):n(g)}function f(g){return sn(g)?m(g):n(g)}function m(g){return g===46?(e.consume(g),r=0,f):g===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):y(g)}function y(g){if((g===45||sn(g))&&r++<63){const x=g===45?y:m;return e.consume(g),x}return n(g)}}const Uc={partial:!0,tokenize:xF};function xF(e,t,n){return r;function r(s){return Fe(s)?Ve(e,i,"linePrefix")(s):i(s)}function i(s){return s===null||Se(s)?t(s):n(s)}}const s2={continuation:{tokenize:wF},exit:TF,name:"blockQuote",tokenize:EF};function EF(e,t,n){const r=this;return i;function i(a){if(a===62){const l=r.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),s}return n(a)}function s(a){return Fe(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function wF(e,t,n){const r=this;return i;function i(a){return Fe(a)?Ve(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):s(a)}function s(a){return e.attempt(s2,t,n)(a)}}function TF(e){e.exit("blockQuote")}const o2={name:"characterEscape",tokenize:SF};function SF(e,t,n){return r;function r(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),i}function i(s){return dF(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const a2={name:"characterReference",tokenize:kF};function kF(e,t,n){const r=this;let i=0,s,a;return l;function l(m){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),u}function u(m){return m===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(m),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),s=31,a=sn,f(m))}function h(m){return m===88||m===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(m),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,a=cF,f):(e.enter("characterReferenceValue"),s=7,a=I0,f(m))}function f(m){if(m===59&&i){const y=e.exit("characterReferenceValue");return a===sn&&!wb(r.sliceSerialize(y))?n(m):(e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(m)&&i++<s?(e.consume(m),f):n(m)}}const P1={partial:!0,tokenize:AF},I1={concrete:!0,name:"codeFenced",tokenize:CF};function CF(e,t,n){const r=this,i={partial:!0,tokenize:F};let s=0,a=0,l;return u;function u(O){return h(O)}function h(O){const H=r.events[r.events.length-1];return s=H&&H[1].type==="linePrefix"?H[2].sliceSerialize(H[1],!0).length:0,l=O,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(O)}function f(O){return O===l?(a++,e.consume(O),f):a<3?n(O):(e.exit("codeFencedFenceSequence"),Fe(O)?Ve(e,m,"whitespace")(O):m(O))}function m(O){return O===null||Se(O)?(e.exit("codeFencedFence"),r.interrupt?t(O):e.check(P1,v,P)(O)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),y(O))}function y(O){return O===null||Se(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),m(O)):Fe(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ve(e,g,"whitespace")(O)):O===96&&O===l?n(O):(e.consume(O),y)}function g(O){return O===null||Se(O)?m(O):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(O))}function x(O){return O===null||Se(O)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),m(O)):O===96&&O===l?n(O):(e.consume(O),x)}function v(O){return e.attempt(i,P,k)(O)}function k(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),E}function E(O){return s>0&&Fe(O)?Ve(e,S,"linePrefix",s+1)(O):S(O)}function S(O){return O===null||Se(O)?e.check(P1,v,P)(O):(e.enter("codeFlowValue"),T(O))}function T(O){return O===null||Se(O)?(e.exit("codeFlowValue"),S(O)):(e.consume(O),T)}function P(O){return e.exit("codeFenced"),t(O)}function F(O,H,K){let Q=0;return M;function M(de){return O.enter("lineEnding"),O.consume(de),O.exit("lineEnding"),Z}function Z(de){return O.enter("codeFencedFence"),Fe(de)?Ve(O,W,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(de):W(de)}function W(de){return de===l?(O.enter("codeFencedFenceSequence"),ce(de)):K(de)}function ce(de){return de===l?(Q++,O.consume(de),ce):Q>=a?(O.exit("codeFencedFenceSequence"),Fe(de)?Ve(O,ee,"whitespace")(de):ee(de)):K(de)}function ee(de){return de===null||Se(de)?(O.exit("codeFencedFence"),H(de)):K(de)}}}function AF(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),s)}function s(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const Tm={name:"codeIndented",tokenize:PF},NF={partial:!0,tokenize:IF};function PF(e,t,n){const r=this;return i;function i(h){return e.enter("codeIndented"),Ve(e,s,"linePrefix",5)(h)}function s(h){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?a(h):n(h)}function a(h){return h===null?u(h):Se(h)?e.attempt(NF,a,u)(h):(e.enter("codeFlowValue"),l(h))}function l(h){return h===null||Se(h)?(e.exit("codeFlowValue"),a(h)):(e.consume(h),l)}function u(h){return e.exit("codeIndented"),t(h)}}function IF(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):Se(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):Ve(e,s,"linePrefix",5)(a)}function s(a){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(a):Se(a)?i(a):n(a)}}const OF={name:"codeText",previous:RF,resolve:LF,tokenize:jF};function LF(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function RF(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}
vendor: 5,374 bytes, line 252
252function jF(e,t,n){let r=0,i,s;return a;function a(m){return e.enter("codeText"),e.enter("codeTextSequence"),l(m)}function l(m){return m===96?(e.consume(m),r++,l):(e.exit("codeTextSequence"),u(m))}function u(m){return m===null?n(m):m===32?(e.enter("space"),e.consume(m),e.exit("space"),u):m===96?(s=e.enter("codeTextSequence"),i=0,f(m)):Se(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),u):(e.enter("codeTextData"),h(m))}function h(m){return m===null||m===32||m===96||Se(m)?(e.exit("codeTextData"),u(m)):(e.consume(m),h)}function f(m){return m===96?(e.consume(m),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(m)):(s.type="codeTextData",h(m))}}class DF{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&uu(this.left,r),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),uu(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),uu(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);uu(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);uu(this.left,n.reverse())}}}function uu(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function l2(e){const t={};let n=-1,r,i,s,a,l,u,h;const f=new DF(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,s=0,s<u.length&&u[s][1].type==="lineEndingBlank"&&(s+=2),s<u.length&&u[s][1].type==="content"))for(;++s<u.length&&u[s][1].type!=="content";)u[s][1].type==="chunkText"&&(u[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,MF(f,n)),n=t[n],h=!0);else if(r[1]._container){for(s=n,i=void 0;s--;)if(a=f.get(s),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=s);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},l=f.slice(i,n),l.unshift(r),f.splice(i,n-i+1,l))}}return Vn(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!h}function MF(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const s=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const l=a.events,u=[],h={};let f,m,y=-1,g=n,x=0,v=0;const k=[v];for(;g;){for(;e.get(++i)[1]!==g;);s.push(i),g._tokenizer||(f=r.sliceStream(g),g.next||f.push(null),m&&a.defineSkip(g.start),g._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(f),g._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),m=g,g=g.next}for(g=n;++y<l.length;)l[y][0]==="exit"&&l[y-1][0]==="enter"&&l[y][1].type===l[y-1][1].type&&l[y][1].start.line!==l[y][1].end.line&&(v=y+1,k.push(v),g._tokenizer=void 0,g.previous=void 0,g=g.next);for(a.events=[],g?(g._tokenizer=void 0,g.previous=void 0):k.pop(),y=k.length;y--;){const E=l.slice(k[y],k[y+1]),S=s.pop();u.push([S,S+E.length-1]),e.splice(S,2,E)}for(u.reverse(),y=-1;++y<u.length;)h[x+u[y][0]]=x+u[y][1],x+=u[y][1]-u[y][0]-1;return h}const BF={resolve:UF,tokenize:HF},FF={partial:!0,tokenize:zF};function UF(e){return l2(e),e}function HF(e,t){let n;return r;function r(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(l)}function i(l){return l===null?s(l):Se(l)?e.check(FF,a,s)(l):(e.consume(l),i)}function s(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function a(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function zF(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Ve(e,s,"linePrefix")}function s(a){if(a===null||Se(a))return n(a);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function u2(e,t,n,r,i,s,a,l,u){const h=u||Number.POSITIVE_INFINITY;let f=0;return m;function m(E){return E===60?(e.enter(r),e.enter(i),e.enter(s),e.consume(E),e.exit(s),y):E===null||E===32||E===4
vendor: 21,025 bytes, line 252
2521||Jh(E)?n(E):(e.enter(r),e.enter(a),e.enter(l),e.enter("chunkString",{contentType:"string"}),v(E))}function y(E){return E===62?(e.enter(s),e.consume(E),e.exit(s),e.exit(i),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),g(E))}function g(E){return E===62?(e.exit("chunkString"),e.exit(l),y(E)):E===null||E===60||Se(E)?n(E):(e.consume(E),E===92?x:g)}function x(E){return E===60||E===62||E===92?(e.consume(E),g):g(E)}function v(E){return!f&&(E===null||E===41||et(E))?(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(r),t(E)):f<h&&E===40?(e.consume(E),f++,v):E===41?(e.consume(E),f--,v):E===null||E===32||E===40||Jh(E)?n(E):(e.consume(E),E===92?k:v)}function k(E){return E===40||E===41||E===92?(e.consume(E),v):v(E)}}function c2(e,t,n,r,i,s){const a=this;let l=0,u;return h;function h(g){return e.enter(r),e.enter(i),e.consume(g),e.exit(i),e.enter(s),f}function f(g){return l>999||g===null||g===91||g===93&&!u||g===94&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(g):g===93?(e.exit(s),e.enter(i),e.consume(g),e.exit(i),e.exit(r),t):Se(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),m(g))}function m(g){return g===null||g===91||g===93||Se(g)||l++>999?(e.exit("chunkString"),f(g)):(e.consume(g),u||(u=!Fe(g)),g===92?y:m)}function y(g){return g===91||g===92||g===93?(e.consume(g),l++,m):m(g)}}function d2(e,t,n,r,i,s){let a;return l;function l(y){return y===34||y===39||y===40?(e.enter(r),e.enter(i),e.consume(y),e.exit(i),a=y===40?41:y,u):n(y)}function u(y){return y===a?(e.enter(i),e.consume(y),e.exit(i),e.exit(r),t):(e.enter(s),h(y))}function h(y){return y===a?(e.exit(s),u(a)):y===null?n(y):Se(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),Ve(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(y))}function f(y){return y===a||y===null||Se(y)?(e.exit("chunkString"),h(y)):(e.consume(y),y===92?m:f)}function m(y){return y===a||y===92?(e.consume(y),f):f(y)}}function ju(e,t){let n;return r;function r(i){return Se(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Fe(i)?Ve(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const $F={name:"definition",tokenize:WF},qF={partial:!0,tokenize:VF};function WF(e,t,n){const r=this;let i;return s;function s(g){return e.enter("definition"),a(g)}function a(g){return c2.call(r,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function l(g){return i=Lr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),u):n(g)}function u(g){return et(g)?ju(e,h)(g):h(g)}function h(g){return u2(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function f(g){return e.attempt(qF,m,m)(g)}function m(g){return Fe(g)?Ve(e,y,"whitespace")(g):y(g)}function y(g){return g===null||Se(g)?(e.exit("definition"),r.parser.defined.push(i),t(g)):n(g)}}function VF(e,t,n){return r;function r(l){return et(l)?ju(e,i)(l):n(l)}function i(l){return d2(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function s(l){return Fe(l)?Ve(e,a,"whitespace")(l):a(l)}function a(l){return l===null||Se(l)?t(l):n(l)}}const KF={name:"hardBreakEscape",tokenize:GF};function GF(e,t,n){return r;function r(s){return e.enter("hardBreakEscape"),e.consume(s),i}function i(s){return Se(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const YF={name:"headingAtx",resolve:QF,tokenize:ZF};function QF(e,t){let n=e.length-2,r=3,i,s;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},s={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Vn(e,r,n-r+1,[["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t]])),e}function ZF(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),s(f)}function s(f){return e.enter("atxHeadingSequence"),a(f)}function a(f){return f===35&&r++<6?(e.consume(f),a):f===null||et(f)?(e.exit("atxHeadingSequence"),l(f)):n(f)}function l(f){return f===35?(e.enter("atxHeadingSequence"),u(f)):f===null||Se(f)?(e.exit("atxHeading"),t(f)):Fe(f)?Ve(e,l,"whitespace")(f):(e.enter("atxHeadingText"),h(f))}function u(f){return f===35?(e.consume(f),u):(e.exit("atxHeadingSequence"),l(f))}function h(f){return f===null||f===35||et(f)?(e.exit("atxHeadingText"),l(f)):(e.consume(f),h)}}const XF=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],O1=["pre","script","style","textarea"],JF={concrete:!0,name:"htmlFlow",resolveTo:nU,tokenize:rU},eU={partial:!0,tokenize:sU},tU={partial:!0,tokenize:iU};function nU(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function rU(e,t,n){const r=this;let i,s,a,l,u;return h;function h(j){return f(j)}function f(j){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(j),m}function m(j){return j===33?(e.consume(j),y):j===47?(e.consume(j),s=!0,v):j===63?(e.consume(j),i=3,r.interrupt?t:N):pn(j)?(e.consume(j),a=String.fromCharCode(j),k):n(j)}function y(j){return j===45?(e.consume(j),i=2,g):j===91?(e.consume(j),i=5,l=0,x):pn(j)?(e.consume(j),i=4,r.interrupt?t:N):n(j)}function g(j){return j===45?(e.consume(j),r.interrupt?t:N):n(j)}function x(j){const fe="CDATA[";return j===fe.charCodeAt(l++)?(e.consume(j),l===fe.length?r.interrupt?t:W:x):n(j)}function v(j){return pn(j)?(e.consume(j),a=String.fromCharCode(j),k):n(j)}function k(j){if(j===null||j===47||j===62||et(j)){const fe=j===47,ve=a.toLowerCase();return!fe&&!s&&O1.includes(ve)?(i=1,r.interrupt?t(j):W(j)):XF.includes(a.toLowerCase())?(i=6,fe?(e.consume(j),E):r.interrupt?t(j):W(j)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(j):s?S(j):T(j))}return j===45||sn(j)?(e.consume(j),a+=String.fromCharCode(j),k):n(j)}function E(j){return j===62?(e.consume(j),r.interrupt?t:W):n(j)}function S(j){return Fe(j)?(e.consume(j),S):M(j)}function T(j){return j===47?(e.consume(j),M):j===58||j===95||pn(j)?(e.consume(j),P):Fe(j)?(e.consume(j),T):M(j)}function P(j){return j===45||j===46||j===58||j===95||sn(j)?(e.consume(j),P):F(j)}function F(j){return j===61?(e.consume(j),O):Fe(j)?(e.consume(j),F):T(j)}function O(j){return j===null||j===60||j===61||j===62||j===96?n(j):j===34||j===39?(e.consume(j),u=j,H):Fe(j)?(e.consume(j),O):K(j)}function H(j){return j===u?(e.consume(j),u=null,Q):j===null||Se(j)?n(j):(e.consume(j),H)}function K(j){return j===null||j===34||j===39||j===47||j===60||j===61||j===62||j===96||et(j)?F(j):(e.consume(j),K)}function Q(j){return j===47||j===62||Fe(j)?T(j):n(j)}function M(j){return j===62?(e.consume(j),Z):n(j)}function Z(j){return j===null||Se(j)?W(j):Fe(j)?(e.consume(j),Z):n(j)}function W(j){return j===45&&i===2?(e.consume(j),se):j===60&&i===1?(e.consume(j),me):j===62&&i===4?(e.consume(j),le):j===63&&i===3?(e.consume(j),N):j===93&&i===5?(e.consume(j),J):Se(j)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(eU,ue,ce)(j)):j===null||Se(j)?(e.exit("htmlFlowData"),ce(j)):(e.consume(j),W)}function ce(j){return e.check(tU,ee,ue)(j)}function ee(j){return e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),de}function de(j){return j===null||Se(j)?ce(j):(e.enter("htmlFlowData"),W(j))}function se(j){return j===45?(e.consume(j),N):W(j)}function me(j){return j===47?(e.consume(j),a="",z):W(j)}function z(j){if(j===62){const fe=a.toLowerCase();return O1.includes(fe)?(e.consume(j),le):W(j)}return pn(j)&&a.length<8?(e.consume(j),a+=String.fromCharCode(j),z):W(j)}function J(j){return j===93?(e.consume(j),N):W(j)}function N(j){return j===62?(e.consume(j),le):j===45&&i===2?(e.consume(j),N):W(j)}function le(j){return j===null||Se(j)?(e.exit("htmlFlowData"),ue(j)):(e.consume(j),le)}function ue(j){return e.exit("htmlFlow"),t(j)}}function iU(e,t,n){const r=this;return i;function i(a){return Se(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),s):n(a)}function s(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function sU(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Uc,t,n)}}const oU={name:"htmlText",tokenize:aU};function aU(e,t,n){const r=this;let i,s,a;return l;function l(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),u}function u(N){return N===33?(e.consume(N),h):N===47?(e.consume(N),F):N===63?(e.consume(N),T):pn(N)?(e.consume(N),K):n(N)}function h(N){return N===45?(e.consume(N),f):N===91?(e.consume(N),s=0,x):pn(N)?(e.consume(N),S):n(N)}function f(N){return N===45?(e.consume(N),g):n(N)}function m(N){return N===null?n(N):N===45?(e.consume(N),y):Se(N)?(a=m,me(N)):(e.consume(N),m)}function y(N){return N===45?(e.consume(N),g):m(N)}function g(N){return N===62?se(N):N===45?y(N):m(N)}function x(N){const le="CDATA[";return N===le.charCodeAt(s++)?(e.consume(N),s===le.length?v:x):n(N)}function v(N){return N===null?n(N):N===93?(e.consume(N),k):Se(N)?(a=v,me(N)):(e.consume(N),v)}function k(N){return N===93?(e.consume(N),E):v(N)}function E(N){return N===62?se(N):N===93?(e.consume(N),E):v(N)}function S(N){return N===null||N===62?se(N):Se(N)?(a=S,me(N)):(e.consume(N),S)}function T(N){return N===null?n(N):N===63?(e.consume(N),P):Se(N)?(a=T,me(N)):(e.consume(N),T)}function P(N){return N===62?se(N):T(N)}function F(N){return pn(N)?(e.consume(N),O):n(N)}function O(N){return N===45||sn(N)?(e.consume(N),O):H(N)}function H(N){return Se(N)?(a=H,me(N)):Fe(N)?(e.consume(N),H):se(N)}function K(N){return N===45||sn(N)?(e.consume(N),K):N===47||N===62||et(N)?Q(N):n(N)}function Q(N){return N===47?(e.consume(N),se):N===58||N===95||pn(N)?(e.consume(N),M):Se(N)?(a=Q,me(N)):Fe(N)?(e.consume(N),Q):se(N)}function M(N){return N===45||N===46||N===58||N===95||sn(N)?(e.consume(N),M):Z(N)}function Z(N){return N===61?(e.consume(N),W):Se(N)?(a=Z,me(N)):Fe(N)?(e.consume(N),Z):Q(N)}function W(N){return N===null||N===60||N===61||N===62||N===96?n(N):N===34||N===39?(e.consume(N),i=N,ce):Se(N)?(a=W,me(N)):Fe(N)?(e.consume(N),W):(e.consume(N),ee)}function ce(N){return N===i?(e.consume(N),i=void 0,de):N===null?n(N):Se(N)?(a=ce,me(N)):(e.consume(N),ce)}function ee(N){return N===null||N===34||N===39||N===60||N===61||N===96?n(N):N===47||N===62||et(N)?Q(N):(e.consume(N),ee)}function de(N){return N===47||N===62||et(N)?Q(N):n(N)}function se(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):n(N)}function me(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),z}function z(N){return Fe(N)?Ve(e,J,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):J(N)}function J(N){return e.enter("htmlTextData"),a(N)}}const Tb={name:"labelEnd",resolveAll:dU,resolveTo:hU,tokenize:fU},lU={tokenize:pU},uU={tokenize:mU},cU={tokenize:gU};function dU(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Vn(e,0,e.length,n),e}function hU(e,t){let n=e.length,r=0,i,s,a,l;for(;n--;)if(i=e[n][1],s){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(s=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const u={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[s][1].start},end:{...e[a][1].end}},f={type:"labelText",start:{...e[s+r+2][1].end},end:{...e[a-2][1].start}};return l=[["enter",u,t],["enter",h,t]],l=lr(l,e.slice(s+1,s+r+3)),l=lr(l,[["enter",f,t]]),l=lr(l,Gf(t.parser.constructs.insideSpan.null,e.slice(s+r+4,a-3),t)),l=lr(l,[["exit",f,t],e[a-2],e[a-1],["exit",h,t]]),l=lr(l,e.slice(a+1)),l=lr(l,[["exit",u,t]]),Vn(e,s,e.length,l),e}function fU(e,t,n){const r=this;let i=r.events.length,s,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){s=r.events[i][1];break}return l;function l(y){return s?s._inactive?m(y):(a=r.parser.defined.includes(Lr(r.sliceSerialize({start:s.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(y),e.exit("labelMarker"),e.exit("labelEnd"),u):n(y)}function u(y){return y===40?e.attempt(lU,f,a?f:m)(y):y===91?e.attempt(uU,f,a?h:m)(y):a?f(y):m(y)}function h(y){return e.attempt(cU,f,m)(y)}function f(y){return t(y)}function m(y){return s._balanced=!0,n(y)}}function pU(e,t,n){return r;function r(m){return e.enter("resource"),e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),i}function i(m){return et(m)?ju(e,s)(m):s(m)}function s(m){return m===41?f(m):u2(e,a,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function a(m){return et(m)?ju(e,u)(m):f(m)}function l(m){return n(m)}function u(m){return m===34||m===39||m===40?d2(e,h,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):f(m)}function h(m){return et(m)?ju(e,f)(m):f(m)}function f(m){return m===41?(e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),e.exit("resource"),t):n(m)}}function mU(e,t,n){const r=this;return i;function i(l){return c2.call(r,e,s,a,"reference","referenceMarker","referenceString")(l)}function s(l){return r.parser.defined.includes(Lr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function a(l){return n(l)}}function gU(e,t,n){return r;function r(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),i}function i(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const yU={name:"labelStartImage",resolveAll:Tb.resolveAll,tokenize:bU};function bU(e,t,n){const r=this;return i;function i(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),s}function s(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),a):n(l)}function a(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const _U={name:"labelStartLink",resolveAll:Tb.resolveAll,tokenize:vU};function vU(e,t,n){const r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),s}function s(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const Sm={name:"lineEnding",tokenize:xU};function xU(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Ve(e,t,"linePrefix")}}const fh={name:"thematicBreak",tokenize:EU};function EU(e,t,n){let r=0,i;return s;function s(h){return e.enter("thematicBreak"),a(h)}function a(h){return i=h,l(h)}function l(h){return h===i?(e.enter("thematicBreakSequence"),u(h)):r>=3&&(h===null||Se(h))?(e.exit("thematicBreak"),t(h)):n(h)}function u(h){return h===i?(e.consume(h),r++,u):(e.exit("thematicBreakSequence"),Fe(h)?Ve(e,l,"whitespace")(h):l(h))}}const Tn={continuation:{tokenize:kU},exit:AU,name:"list",tokenize:SU},wU={partial:!0,tokenize:NU},TU={partial:!0,tokenize:CU};function SU(e,t,n){const r=this,i=r.events[r.events.length-1];let s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return l;function l(g){const x=r.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!r.containerState.marker||g===r.containerState.marker:I0(g)){if(r.containerState.type||(r.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(fh,n,h)(g):h(g);if(!r.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(g)}return n(g)}function u(g){return I0(g)&&++a<10?(e.consume(g),u):(!r.interrupt||a<2)&&(r.containerState.marker?g===r.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),h(g)):n(g)}function h(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||g,e.check(Uc,r.interrupt?n:f,e.attempt(wU,y,m))}function f(g){return r.containerState.initialBlankLine=!0,s++,y(g)}function m(g){return Fe(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),y):n(g)}function y(g){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function kU(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Uc,i,s);function i(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ve(e,t,"listItemIndent",r.containerState.size+1)(l)}function s(l){return r.containerState.furtherBlankLines||!Fe(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(TU,t,a)(l))}function a(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ve(e,e.attempt(Tn,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function CU(e,t,n){const r=this;return Ve(e,i,"listItemIndent",r.containerState.size+1);function i(s){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(s):n(s)}}function AU(e){e.exit(this.containerState.type)}function NU(e,t,n){const r=this;return Ve(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(s){const a=r.events[r.events.length-1];return!Fe(s)&&a&&a[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const L1={name:"setextUnderline",resolveTo:PU,tokenize:IU};function PU(e,t){let n=e.length,r,i,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const a={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",s?(e.splice(i,0,["enter",a,t]),e.splice(s+1,0,["exit",e[r][1],t]),e[r][1].end={...e[s][1].end}):e[r][1]=a,e.push(["exit",a,t]),e}function IU(e,t,n){const r=this;let i;return s;function s(h){let f=r.events.length,m;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){m=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||m)?(e.enter("setextHeadingLine"),i=h,a(h)):n(h)}function a(h){return e.enter("setextHeadingLineSequence"),l(h)}function l(h){return h===i?(e.consume(h),l):(e.exit("setextHeadingLineSequence"),Fe(h)?Ve(e,u,"lineSuffix")(h):u(h))}function u(h){return h===null||Se(h)?(e.exit("setextHeadingLine"),t(h)):n(h)}}const OU={tokenize:LU};function LU(e){const t=this,n=e.attempt(Uc,r,e.attempt(this.parser.constructs.flowInitial,i,Ve(e,e.attempt(this.parser.constructs.flow,i,e.attempt(BF,i)),"linePrefix")));return n;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const RU={resolveAll:f2()},jU=h2("string"),DU=h2("text");function h2(e){return{resolveAll:f2(e==="text"?MU:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],s=n.attempt(i,a,l);return a;function a(f){return h(f)?s(f):l(f)}function l(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),u}function u(f){return h(f)?(n.exit("data"),s(f)):(n.consume(f),u)}function h(f){if(f===null)return!0;const m=i[f];let y=-1;if(m)for(;++y<m.length;){const g=m[y];if(!g.previous||g.previous.call(r,r.previous))return!0}return!1}}}function f2(e){return t;function t(n,r){let i=-1,s;for(;++i<=n.length;)s===void 0?n[i]&&n[i][1].type==="data"&&(s=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==s+2&&(n[s][1].end=n[i-1][1].end,n.splice(s+2,i-s-2),i=s+2),s=void 0);return e?e(n,r):n}}function MU(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let s=i.length,a=-1,l=0,u;
vendor: 4,980 bytes, lines 252-254
252for(;s--;){const h=i[s];if(typeof h=="string"){for(a=h.length;h.charCodeAt(a-1)===32;)l++,a--;if(a)break;a=-1}else if(h===-2)u=!0,l++;else if(h!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const h={type:n===e.length||u||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?a:r.start._bufferIndex+a,_index:r.start._index+s,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...h.start},r.start.offset===r.end.offset?Object.assign(r,h):(e.splice(n,0,["enter",h,t],["exit",h,t]),n+=2)}n++}return e}const BU={42:Tn,43:Tn,45:Tn,48:Tn,49:Tn,50:Tn,51:Tn,52:Tn,53:Tn,54:Tn,55:Tn,56:Tn,57:Tn,62:s2},FU={91:$F},UU={[-2]:Tm,[-1]:Tm,32:Tm},HU={35:YF,42:fh,45:[L1,fh],60:JF,61:L1,95:fh,96:I1,126:I1},zU={38:a2,92:o2},$U={[-5]:Sm,[-4]:Sm,[-3]:Sm,33:yU,38:a2,42:O0,60:[_F,oU],91:_U,92:[KF,o2],93:Tb,95:O0,96:OF},qU={null:[O0,RU]},WU={null:[42,95]},VU={null:[]},KU=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:WU,contentInitial:FU,disable:VU,document:BU,flow:HU,flowInitial:UU,insideSpan:qU,string:zU,text:$U},Symbol.toStringTag,{value:"Module"}));function GU(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},s=[];let a=[],l=[];const u={attempt:H(F),check:H(O),consume:S,enter:T,exit:P,interrupt:H(O,{interrupt:!0})},h={code:null,containerState:{},defineSkip:v,events:[],now:x,parser:e,previous:null,sliceSerialize:y,sliceStream:g,write:m};let f=t.tokenize.call(h,u);return t.resolveAll&&s.push(t),h;function m(Z){return a=lr(a,Z),k(),a[a.length-1]!==null?[]:(K(t,0),h.events=Gf(s,h.events,h),h.events)}function y(Z,W){return QU(g(Z),W)}function g(Z){return YU(a,Z)}function x(){const{_bufferIndex:Z,_index:W,line:ce,column:ee,offset:de}=r;return{_bufferIndex:Z,_index:W,line:ce,column:ee,offset:de}}function v(Z){i[Z.line]=Z.column,M()}function k(){let Z;for(;r._index<a.length;){const W=a[r._index];if(typeof W=="string")for(Z=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===Z&&r._bufferIndex<W.length;)E(W.charCodeAt(r._bufferIndex));else E(W)}}function E(Z){f=f(Z)}function S(Z){Se(Z)?(r.line++,r.column=1,r.offset+=Z===-3?2:1,M()):Z!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),h.previous=Z}function T(Z,W){const ce=W||{};return ce.type=Z,ce.start=x(),h.events.push(["enter",ce,h]),l.push(ce),ce}function P(Z){const W=l.pop();return W.end=x(),h.events.push(["exit",W,h]),W}function F(Z,W){K(Z,W.from)}function O(Z,W){W.restore()}function H(Z,W){return ce;function ce(ee,de,se){let me,z,J,N;return Array.isArray(ee)?ue(ee):"tokenize"in ee?ue([ee]):le(ee);function le(pe){return Ne;function Ne(ut){const Dt=ut!==null&&pe[ut],Mt=ut!==null&&pe.null,$t=[...Array.isArray(Dt)?Dt:Dt?[Dt]:[],...Array.isArray(Mt)?Mt:Mt?[Mt]:[]];return ue($t)(ut)}}function ue(pe){return me=pe,z=0,pe.length===0?se:j(pe[z])}function j(pe){return Ne;function Ne(ut){return N=Q(),J=pe,pe.partial||(h.currentConstruct=pe),pe.name&&h.parser.constructs.disable.null.includes(pe.name)?ve():pe.tokenize.call(W?Object.assign(Object.create(h),W):h,u,fe,ve)(ut)}}function fe(pe){return Z(J,N),de}function ve(pe){return N.restore(),++z<me.length?j(me[z]):se}}}function K(Z,W){Z.resolveAll&&!s.includes(Z)&&s.push(Z),Z.resolve&&Vn(h.events,W,h.events.length-W,Z.resolve(h.events.slice(W),h)),Z.resolveTo&&(h.events=Z.resolveTo(h.events,h))}function Q(){const Z=x(),W=h.previous,ce=h.currentConstruct,ee=h.events.length,de=Array.from(l);return{from:ee,restore:se};function se(){r=Z,h.previous=W,h.currentConstruct=ce,h.events.length=ee,l=de,M()}}function M(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function YU(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,s=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,s)];else{if(a=e.slice(n,i),r>-1){const l=a[0];typeof l=="string"?a[0]=l.slice(r):a.shift()}s>0&&a.push(e[i].slice(0,s))}return a}function QU(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const s=e[n];let a;if(typeof s=="string")a=s;else switch(s){case-5:{a="\r";break}case-4:{a=` 253`;break}case-3:{a=`\r 254`;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(s)}i=s===-2,r.push(a)}return r.join("")}function ZU(e){const r={constructs:r2([KU,...(e||{}).extensions||[]]),content:i(hF),defined:[],document:i(pF),flow:i(OU),lazy:{},string:i(jU),text:i(DU)};return r;function i(s){return a;function a(l){return GU(r,s,l)}}}function XU(e){for(;!l2(e););return e}const R1=/[\0\t\n\r]/g;function JU(){let e=1,t="",n=!0,r;return i;function i(s,a,l){const u=[];let h,f,m,y,g;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(a||void 0).decode(s)),m=0,t="",n&&(s.charCodeAt(0)===65279&&m++,n=void 0);m<s.length;){if(R1.lastIndex=m,h=R1.exec(s),y=h&&h.index!==void 0?h.index:s.length,g=s.charCodeAt(y),!h){t=s.slice(m);break}if(g===10&&m===y&&r)u.push(-3),r=void 0;
vendor: 10,963 bytes, line 254
254else switch(r&&(u.push(-5),r=void 0),m<y&&(u.push(s.slice(m,y)),e+=y-m),g){case 0:{u.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,u.push(-2);e++<f;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}m=y+1}return l&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const e9=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function t9(e){return e.replace(e9,n9)}function n9(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),s=i===120||i===88;return i2(n.slice(s?2:1),s?16:10)}return wb(n)||e}const p2={}.hasOwnProperty;function r9(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),i9(n)(XU(ZU(n).document().write(JU()(e,t,!0))))}function i9(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(mr),autolinkProtocol:Q,autolinkEmail:Q,atxHeading:s(bi),blockQuote:s(Mt),characterEscape:Q,characterReference:Q,codeFenced:s($t),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:s($t,a),codeText:s(bn,a),codeTextData:Q,data:Q,codeFlowValue:Q,definition:s(_n),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:s(es),hardBreakEscape:s(Ur),hardBreakTrailing:s(Ur),htmlFlow:s(Hr,a),htmlFlowData:Q,htmlText:s(Hr,a),htmlTextData:Q,image:s(Zn),label:a,link:s(mr),listItem:s(gr),listItemValue:y,listOrdered:s(ts,m),listUnordered:s(ts),paragraph:s(no),reference:j,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:s(bi),strong:s(Xn),thematicBreak:s(Dl)},exit:{atxHeading:u(),atxHeadingSequence:F,autolink:u(),autolinkEmail:Dt,autolinkProtocol:ut,blockQuote:u(),characterEscapeValue:M,characterReferenceMarkerHexadecimal:ve,characterReferenceMarkerNumeric:ve,characterReferenceValue:pe,characterReference:Ne,codeFenced:u(k),codeFencedFence:v,codeFencedFenceInfo:g,codeFencedFenceMeta:x,codeFlowValue:M,codeIndented:u(E),codeText:u(de),codeTextData:M,data:M,definition:u(),definitionDestinationString:P,definitionLabelString:S,definitionTitleString:T,emphasis:u(),hardBreakEscape:u(W),hardBreakTrailing:u(W),htmlFlow:u(ce),htmlFlowData:M,htmlText:u(ee),htmlTextData:M,image:u(me),label:J,labelText:z,lineEnding:Z,link:u(se),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:fe,resourceDestinationString:N,resourceTitleString:le,resource:ue,setextHeading:u(K),setextHeadingLineSequence:H,setextHeadingText:O,strong:u(),thematicBreak:u()}};m2(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(G){let ae={type:"root",children:[]};const Ce={stack:[ae],tokenStack:[],config:t,enter:l,exit:h,buffer:a,resume:f,data:n},De=[];let ze=-1;for(;++ze<G.length;)if(G[ze][1].type==="listOrdered"||G[ze][1].type==="listUnordered")if(G[ze][0]==="enter")De.push(ze);else{const Zt=De.pop();ze=i(G,Zt,ze)}for(ze=-1;++ze<G.length;){const Zt=t[G[ze][0]];p2.call(Zt,G[ze][1].type)&&Zt[G[ze][1].type].call(Object.assign({sliceSerialize:G[ze][2].sliceSerialize},Ce),G[ze][1])}if(Ce.tokenStack.length>0){const Zt=Ce.tokenStack[Ce.tokenStack.length-1];(Zt[1]||j1).call(Ce,void 0,Zt[0])}for(ae.position={start:as(G.length>0?G[0][1].start:{line:1,column:1,offset:0}),end:as(G.length>0?G[G.length-2][1].end:{line:1,column:1,offset:0})},ze=-1;++ze<t.transforms.length;)ae=t.transforms[ze](ae)||ae;return ae}function i(G,ae,Ce){let De=ae-1,ze=-1,Zt=!1,Jn,Xt,Jt,yr;for(;++De<=Ce;){const yt=G[De];switch(yt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{yt[0]==="enter"?ze++:ze--,yr=void 0;break}case"lineEndingBlank":{yt[0]==="enter"&&(Jn&&!yr&&!ze&&!Jt&&(Jt=De),yr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:yr=void 0}if(!ze&&yt[0]==="enter"&&yt[1].type==="listItemPrefix"||ze===-1&&yt[0]==="exit"&&(yt[1].type==="listUnordered"||yt[1].type==="listOrdered")){if(Jn){let vn=De;for(Xt=void 0;vn--;){const jn=G[vn];if(jn[1].type==="lineEnding"||jn[1].type==="lineEndingBlank"){if(jn[0]==="exit")continue;Xt&&(G[Xt][1].type="lineEndingBlank",Zt=!0),jn[1].type="lineEnding",Xt=vn}else if(!(jn[1].type==="linePrefix"||jn[1].type==="blockQuotePrefix"||jn[1].type==="blockQuotePrefixWhitespace"||jn[1].type==="blockQuoteMarker"||jn[1].type==="listItemIndent"))break}Jt&&(!Xt||Jt<Xt)&&(Jn._spread=!0),Jn.end=Object.assign({},Xt?G[Xt][1].start:yt[1].end),G.splice(Xt||De,0,["exit",Jn,yt[2]]),De++,Ce++}if(yt[1].type==="listItemPrefix"){const vn={type:"listItem",_spread:!1,start:Object.assign({},yt[1].start),end:void 0};Jn=vn,G.splice(De,0,["enter",vn,yt[2]]),De++,Ce++,Jt=void 0,yr=!0}}}return G[ae][1]._spread=Zt,Ce}function s(G,ae){return Ce;function Ce(De){l.call(this,G(De),De),ae&&ae.call(this,De)}}function a(){this.stack.push({type:"fragment",children:[]})}function l(G,ae,Ce){this.stack[this.stack.length-1].children.push(G),this.stack.push(G),this.tokenStack.push([ae,Ce||void 0]),G.position={start:as(ae.start),end:void 0}}function u(G){return ae;function ae(Ce){G&&G.call(this,Ce),h.call(this,Ce)}}function h(G,ae){const Ce=this.stack.pop(),De=this.tokenStack.pop();if(De)De[0].type!==G.type&&(ae?ae.call(this,G,De[0]):(De[1]||j1).call(this,G,De[0]));else throw new Error("Cannot close `"+G.type+"` ("+Ru({start:G.start,end:G.end})+"): itâs not open");Ce.position.end=as(G.end)}function f(){return Eb(this.stack.pop())}function m(){this.data.expectingFirstListItemValue=!0}function y(G){if(this.data.expectingFirstListItemValue){const ae=this.stack[this.stack.length-2];ae.start=Number.parseInt(this.sliceSerialize(G),10),this.data.expectingFirstListItemValue=void 0}}function g(){const G=this.resume(),ae=this.stack[this.stack.length-1];ae.lang=G}function x(){const G=this.resume(),ae=this.stack[this.stack.length-1];ae.meta=G}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function k(){const G=this.resume(),ae=this.stack[this.stack.length-1];ae.value=G.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const G=this.resume(),ae=this.stack[this.stack.length-1];ae.value=G.replace(/(\r?\n|\r)$/g,"")}function S(G){const ae=this.resume(),Ce=this.stack[this.stack.length-1];Ce.label=ae,Ce.identifier=Lr(this.sliceSerialize(G)).toLowerCase()}function T(){const G=this.resume(),ae=this.stack[this.stack.length-1];ae.title=G}function P(){const G=this.resume(),ae=this.stack[this.stack.length-1];ae.url=G}function F(G){const ae=this.stack[this.stack.length-1];if(!ae.depth){const Ce=this.sliceSerialize(G).length;ae.depth=Ce}}function O(){this.data.setextHeadingSlurpLineEnding=!0}function H(G){const ae=this.stack[this.stack.length-1];ae.depth=this.sliceSerialize(G).codePointAt(0)===61?1:2}function K(){this.data.setextHeadingSlurpLineEnding=void 0}function Q(G){const Ce=this.stack[this.stack.length-1].children;let De=Ce[Ce.length-1];(!De||De.type!=="text")&&(De=jl(),De.position={start:as(G.start),end:void 0},Ce.push(De)),this.stack.push(De)}function M(G){const ae=this.stack.pop();ae.value+=this.sliceSerialize(G),ae.position.end=as(G.end)}function Z(G){const ae=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ce=ae.children[ae.children.length-1];Ce.position.end=as(G.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ae.type)&&(Q.call(this,G),M.call(this,G))}function W(){this.data.atHardBreak=!0}function ce(){const G=this.resume(),ae=this.stack[this.stack.length-1];ae.value=G}function ee(){const G=this.resume(),ae=this.stack[this.stack.length-1];ae.value=G}function de(){const G=this.resume(),ae=this.stack[this.stack.length-1];ae.value=G}function se(){const G=this.stack[this.stack.length-1];if(this.data.inReference){const ae=this.data.referenceType||"shortcut";G.type+="Reference",G.referenceType=ae,delete G.url,delete G.title}else delete G.identifier,delete G.label;this.data.referenceType=void 0}function me(){const G=this.stack[this.stack.length-1];if(this.data.inReference){const ae=this.data.referenceType||"shortcut";G.type+="Reference",G.referenceType=ae,delete G.url,delete G.title}else delete G.identifier,delete G.label;this.data.referenceType=void 0}function z(G){const ae=this.sliceSerialize(G),Ce=this.stack[this.stack.length-2];Ce.label=t9(ae),Ce.identifier=Lr(ae).toLowerCase()}function J(){const G=this.stack[this.stack.length-1],ae=this.resume(),Ce=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ce.type==="link"){const De=G.children;Ce.children=De}else Ce.alt=ae}function N(){const G=this.resume(),ae=this.stack[this.stack.length-1];ae.url=G}function le(){const G=this.resume(),ae=this.stack[this.stack.length-1];ae.title=G}function ue(){this.data.inReference=void 0}function j(){this.data.referenceType="collapsed"}function fe(G){const ae=this.resume(),Ce=this.stack[this.stack.length-1];Ce.label=ae,Ce.identifier=Lr(this.sliceSerialize(G)).toLowerCase(),this.data.referenceType="full"}function ve(G){this.data.characterReferenceType=G.type}function pe(G){const ae=this.sliceSerialize(G),Ce=this.data.characterReferenceType;let De;Ce?(De=i2(ae,Ce==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):De=wb(ae);const ze=this.stack[this.stack.length-1];ze.value+=De}function Ne(G){const ae=this.stack.pop();ae.position.end=as(G.end)}function ut(G){M.call(this,G);const ae=this.stack[this.stack.length-1];ae.url=this.sliceSerialize(G)}function Dt(G){M.call(this,G);const ae=this.stack[this.stack.length-1];ae.url="mailto:"+this.sliceSerialize(G)}function Mt(){return{type:"blockquote",children:[]}}function $t(){return{type:"code",lang:null,meta:null,value:""}}function bn(){return{type:"inlineCode",value:""}}function _n(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function es(){return{type:"emphasis",children:[]}}function bi(){return{type:"heading",depth:0,children:[]}}function Ur(){return{type:"break"}}function Hr(){return{type:"html",value:""}}function Zn(){return{type:"image",title:null,url:"",alt:null}}function mr(){return{type:"link",title:null,url:"",children:[]}}function ts(G){return{type:"list",ordered:G.type==="listOrdered",start:null,spread:G._spread,children:[]}}function gr(G){return{type:"listItem",spread:G._spread,checked:null,children:[]}}function no(){return{type:"paragraph",children:[]}}function Xn(){return{type:"strong",children:[]}}function jl(){return{type:"text",value:""}}function Dl(){return{type:"thematicBreak"}}}function as(e){return{line:e.line,column:e.column,offset:e.offset}}function m2(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?m2(e,r):s9(e,r)}}function s9(e,t){let n;for(n in t)if(p2.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function j1(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ru({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ru({start:t.start,end:t.end}
vendor: 5,868 bytes, lines 254-258
254)+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ru({start:t.start,end:t.end})+") is still open")}function o9(e){const t=this;t.parser=n;function n(r){return r9(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function a9(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function l9(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` 255`}]}function u9(e,t){const n=t.value?t.value+` 256`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let s={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}function c9(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function d9(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function h9(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Il(r.toLowerCase()),s=e.footnoteOrder.indexOf(r);let a,l=e.footnoteCounts.get(r);l===void 0?(l=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=s+1,l+=1,e.footnoteCounts.set(r,l);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,u);const h={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,h),e.applyData(t,h)}function f9(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function p9(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function g2(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),s=i[0];s&&s.type==="text"?s.value="["+s.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function m9(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return g2(e,t);const i={src:Il(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,s),e.applyData(t,s)}function g9(e,t){const n={src:Il(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function y9(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function b9(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return g2(e,t);const i={href:Il(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function _9(e,t){const n={href:Il(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function v9(e,t,n){const r=e.all(t),i=n?x9(n):y2(t),s={},a=[];if(typeof t.checked=="boolean"){const f=r[0];let m;f&&f.type==="element"&&f.tagName==="p"?m=f:(m={type:"element",tagName:"p",properties:{},children:[]},r.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const f=r[l];(i||l!==0||f.type!=="element"||f.tagName!=="p")&&a.push({type:"text",value:` 257`}),f.type==="element"&&f.tagName==="p"&&!i?a.push(...f.children):a.push(f)}const u=r[r.length-1];u&&(i||u.type!=="element"||u.tagName!=="p")&&a.push({type:"text",value:` 258`});const h={type:"element",tagName:"li",properties:s,children:a};return e.patch(t,h),e.applyData(t,h)}function x9(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=y2(n[r])}return t}function y2(e){const t=e.spread;return t??e.children.length>1}function E9(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,s),e.applyData(t,s)}function w9(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function T9(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function S9(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function k9(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),i.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=gi(t.children[1]),u=Vf(t.children[t.children.length-1]);
vendor: 1,878 bytes, line 258
258l&&u&&(a.position={start:l,end:u}),i.push(a)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,s),e.applyData(t,s)}function C9(e,t,n){const r=n?n.children:void 0,s=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,l=a?a.length:t.children.length;let u=-1;const h=[];for(;++u<l;){const m=t.children[u],y={},g=a?a[u]:void 0;g&&(y.align=g);let x={type:"element",tagName:s,properties:y,children:[]};m&&(x.children=e.all(m),e.patch(m,x),x=e.applyData(m,x)),h.push(x)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,f),e.applyData(t,f)}function A9(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const D1=9,M1=32;function N9(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const s=[];for(;r;)s.push(B1(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return s.push(B1(t.slice(i),i>0,!1)),s.join("")}function B1(e,t,n){let r=0,i=e.length;if(t){let s=e.codePointAt(r);for(;s===D1||s===M1;)r++,s=e.codePointAt(r)}if(n){let s=e.codePointAt(i-1);for(;s===D1||s===M1;)i--,s=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function P9(e,t){const n={type:"text",value:N9(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function I9(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const O9={blockquote:a9,break:l9,code:u9,delete:c9,emphasis:d9,footnoteReference:h9,heading:f9,html:p9,imageReference:m9,image:g9,inlineCode:y9,linkReference:b9,link:_9,listItem:v9,list:E9,paragraph:w9,root:T9,strong:S9,table:k9,tableCell:A9,tableRow:C9,text:P9,thematicBreak:I9,toml:zd,yaml:zd,definition:zd,footnoteDefinition:zd};function zd(){}const b2=-1,Yf=0,Du=1,ef=2,Sb=3,kb=4,Cb=5,Ab=6,_2=7,v2=8,L9=typeof self=="object"?self:globalThis,F1=(e,t)=>
vendor: 4,689 bytes, lines 258-260
258{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new L9[e](t)},R9=(e,t)=>{const n=(i,s)=>(e.set(s,i),i),r=i=>{if(e.has(i))return e.get(i);const[s,a]=t[i];switch(s){case Yf:case b2:return n(a,i);case Du:{const l=n([],i);for(const u of a)l.push(r(u));return l}case ef:{const l=n({},i);for(const[u,h]of a)l[r(u)]=r(h);return l}case Sb:return n(new Date(a),i);case kb:{const{source:l,flags:u}=a;return n(new RegExp(l,u),i)}case Cb:{const l=n(new Map,i);for(const[u,h]of a)l.set(r(u),r(h));return l}case Ab:{const l=n(new Set,i);for(const u of a)l.add(r(u));return l}case _2:{const{name:l,message:u}=a;return n(F1(l,u),i)}case v2:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:l}=new Uint8Array(a);return n(new DataView(l),a)}}return n(F1(s,a),i)};return r},U1=e=>R9(new Map,e)(0),ga="",{toString:j9}={},{keys:D9}=Object,cu=e=>{const t=typeof e;if(t!=="object"||!e)return[Yf,t];const n=j9.call(e).slice(8,-1);switch(n){case"Array":return[Du,ga];case"Object":return[ef,ga];case"Date":return[Sb,ga];case"RegExp":return[kb,ga];case"Map":return[Cb,ga];case"Set":return[Ab,ga];case"DataView":return[Du,n]}return n.includes("Array")?[Du,n]:n.includes("Error")?[_2,n]:[ef,n]},$d=([e,t])=>e===Yf&&(t==="function"||t==="symbol"),M9=(e,t,n,r)=>{const i=(a,l)=>{const u=r.push(a)-1;return n.set(l,u),u},s=a=>{if(n.has(a))return n.get(a);let[l,u]=cu(a);switch(l){case Yf:{let f=a;switch(u){case"bigint":l=v2,f=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);f=null;break;case"undefined":return i([b2],a)}return i([l,f],a)}case Du:{if(u){let y=a;return u==="DataView"?y=new Uint8Array(a.buffer):u==="ArrayBuffer"&&(y=new Uint8Array(a)),i([u,[...y]],a)}const f=[],m=i([l,f],a);for(const y of a)f.push(s(y));return m}case ef:{if(u)switch(u){case"BigInt":return i([u,a.toString()],a);case"Boolean":case"Number":case"String":return i([u,a.valueOf()],a)}if(t&&"toJSON"in a)return s(a.toJSON());const f=[],m=i([l,f],a);for(const y of D9(a))(e||!$d(cu(a[y])))&&f.push([s(y),s(a[y])]);return m}case Sb:return i([l,a.toISOString()],a);case kb:{const{source:f,flags:m}=a;return i([l,{source:f,flags:m}],a)}case Cb:{const f=[],m=i([l,f],a);for(const[y,g]of a)(e||!($d(cu(y))||$d(cu(g))))&&f.push([s(y),s(g)]);return m}case Ab:{const f=[],m=i([l,f],a);for(const y of a)(e||!$d(cu(y)))&&f.push(s(y));return m}}const{message:h}=a;return i([l,{name:u,message:h}],a)};return s},H1=(e,{json:t,lossy:n}={})=>{const r=[];return M9(!(t||n),!!t,new Map,r)(e),r},Vo=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?U1(H1(e,t)):structuredClone(e):(e,t)=>U1(H1(e,t));function B9(e,t){const n=[{type:"text",value:"â©"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function F9(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function U9(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||B9,r=e.options.footnoteBackLabel||F9,i=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let u=-1;for(;++u<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[u]);if(!h)continue;const f=e.all(h),m=String(h.identifier).toUpperCase(),y=Il(m.toLowerCase());let g=0;const x=[],v=e.footnoteCounts.get(m);for(;v!==void 0&&++g<=v;){x.length>0&&x.push({type:"text",value:" "});let S=typeof n=="string"?n:n(u,g);typeof S=="string"&&(S={type:"text",value:S}),x.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+y+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,g),className:["data-footnote-backref"]},children:Array.isArray(S)?S:[S]})}const k=f[f.length-1];if(k&&k.type==="element"&&k.tagName==="p"){const S=k.children[k.children.length-1];S&&S.type==="text"?S.value+=" ":k.children.push({type:"text",value:" "}),k.children.push(...x)}else f.push(...x);const E={type:"element",tagName:"li",properties:{id:t+"fn-"+y},children:e.wrap(f,!0)};e.patch(h,E),l.push(E)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Vo(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` 259`},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:` 260`}]}}const Qf=function(e){if(e==null)return q9;if(typeof e=="function")return Zf(e);
vendor: 21,057 bytes, lines 260-264
260if(typeof e=="object")return Array.isArray(e)?H9(e):z9(e);if(typeof e=="string")return $9(e);throw new Error("Expected function, string, or object as test")};function H9(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Qf(e[n]);return Zf(r);function r(...i){let s=-1;for(;++s<t.length;)if(t[s].apply(this,i))return!0;return!1}}function z9(e){const t=e;return Zf(n);function n(r){const i=r;let s;for(s in e)if(i[s]!==t[s])return!1;return!0}}function $9(e){return Zf(t);function t(n){return n&&n.type===e}}function Zf(e){return t;function t(n,r,i){return!!(W9(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function q9(){return!0}function W9(e){return e!==null&&typeof e=="object"&&"type"in e}const x2=[],V9=!0,L0=!1,K9="skip";function E2(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const s=Qf(i),a=r?-1:1;l(e,void 0,[])();function l(u,h,f){const m=u&&typeof u=="object"?u:{};if(typeof m.type=="string"){const g=typeof m.tagName=="string"?m.tagName:typeof m.name=="string"?m.name:void 0;Object.defineProperty(y,"name",{value:"node ("+(u.type+(g?"<"+g+">":""))+")"})}return y;function y(){let g=x2,x,v,k;if((!t||s(u,h,f[f.length-1]||void 0))&&(g=G9(n(u,f)),g[0]===L0))return g;if("children"in u&&u.children){const E=u;if(E.children&&g[0]!==K9)for(v=(r?E.children.length:-1)+a,k=f.concat(E);v>-1&&v<E.children.length;){const S=E.children[v];if(x=l(S,v,k)(),x[0]===L0)return x;v=typeof x[1]=="number"?x[1]:v+a}}return g}}}function G9(e){return Array.isArray(e)?e:typeof e=="number"?[V9,e]:e==null?x2:[e]}function Xf(e,t,n,r){let i,s,a;typeof t=="function"&&typeof n!="function"?(s=void 0,a=t,i=n):(s=t,a=n,i=r),E2(e,s,l,i);function l(u,h){const f=h[h.length-1],m=f?f.children.indexOf(u):void 0;return a(u,m,f)}}const R0={}.hasOwnProperty,Y9={};function Q9(e,t){const n=t||Y9,r=new Map,i=new Map,s=new Map,a={...O9,...n.handlers},l={all:h,applyData:X9,definitionById:r,footnoteById:i,footnoteCounts:s,footnoteOrder:[],handlers:a,one:u,options:n,patch:Z9,wrap:eH};return Xf(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const m=f.type==="definition"?r:i,y=String(f.identifier).toUpperCase();m.has(y)||m.set(y,f)}}),l;function u(f,m){const y=f.type,g=l.handlers[y];if(R0.call(l.handlers,y)&&g)return g(l,f,m);if(l.options.passThrough&&l.options.passThrough.includes(y)){if("children"in f){const{children:v,...k}=f,E=Vo(k);return E.children=l.all(f),E}return Vo(f)}return(l.options.unknownHandler||J9)(l,f,m)}function h(f){const m=[];if("children"in f){const y=f.children;let g=-1;for(;++g<y.length;){const x=l.one(y[g],f);if(x){if(g&&y[g-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=z1(x.value)),!Array.isArray(x)&&x.type==="element")){const v=x.children[0];v&&v.type==="text"&&(v.value=z1(v.value))}Array.isArray(x)?m.push(...x):m.push(x)}}}return m}}function Z9(e,t){e.position&&(t.position=ZC(e))}function X9(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,s=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const a="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:a}}n.type==="element"&&s&&Object.assign(n.properties,Vo(s)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function J9(e,t){const n=t.data||{},r="value"in t&&!(R0.call(n,"hProperties")||R0.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function eH(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:` 261`});++r<e.length;)r&&n.push({type:"text",value:` 262`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:` 263`}),n}function z1(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function $1(e,t){const n=Q9(e,t),r=n.one(e,void 0),i=U9(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&s.children.push({type:"text",value:` 264`},i),s}function tH(e,t){return e&&"run"in e?async function(n,r){const i=$1(n,{file:r,...t});await e.run(i,r)}:function(n,r){return $1(n,{file:r,...e||t})}}function q1(e){if(e)throw e}var ph=Object.prototype.hasOwnProperty,w2=Object.prototype.toString,W1=Object.defineProperty,V1=Object.getOwnPropertyDescriptor,K1=function(t){return typeof Array.isArray=="function"?Array.isArray(t):w2.call(t)==="[object Array]"},G1=function(t){if(!t||w2.call(t)!=="[object Object]")return!1;var n=ph.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&ph.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||ph.call(t,i)},Y1=function(t,n){W1&&n.name==="__proto__"?W1(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Q1=function(t,n){if(n==="__proto__")if(ph.call(t,n)){if(V1)return V1(t,n).value}else return;return t[n]},nH=function e(){var t,n,r,i,s,a,l=arguments[0],u=1,h=arguments.length,f=!1;for(typeof l=="boolean"&&(f=l,l=arguments[1]||{},u=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});u<h;++u)if(t=arguments[u],t!=null)for(n in t)r=Q1(l,n),i=Q1(t,n),l!==i&&(f&&i&&(G1(i)||(s=K1(i)))?(s?(s=!1,a=r&&K1(r)?r:[]):a=r&&G1(r)?r:{},Y1(l,{name:n,newValue:e(f,a,i)})):typeof i<"u"&&Y1(l,{name:n,newValue:i}));return l};const km=Ks(nH);function j0(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function rH(){const e=[],t={run:n,use:r};return t;function n(...i){let s=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);l(null,...i);function l(u,...h){const f=e[++s];let m=-1;if(u){a(u);return}for(;++m<i.length;)(h[m]===null||h[m]===void 0)&&(h[m]=i[m]);i=h,f?iH(f,l)(...h):a(null,...h)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function iH(e,t){let n;return r;function r(...a){const l=e.length>a.length;let u;l&&a.push(i);try{u=e.apply(this,a)}catch(h){const f=h;if(l&&n)throw f;return i(f)}l||(u&&u.then&&typeof u.then=="function"?u.then(s,i):u instanceof Error?i(u):s(u))}function i(a,...l){n||(n=!0,t(a,...l))}function s(a){i(null,a)}}const Xr={basename:sH,dirname:oH,extname:aH,join:lH,sep:"/"};function sH(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Hc(e);let n=0,r=-1,i=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else r<0&&(s=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,l=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else a<0&&(s=!0,a=i+1),l>-1&&(e.codePointAt(i)===t.codePointAt(l--)?l<0&&(r=i):(l=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function oH(e){if(Hc(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function aH(e){Hc(e);let t=e.length,n=-1,r=0,i=-1,s=0,a;for(;t--;){const l=e.codePointAt(t);if(l===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),l===46?i<0?i=t:s!==1&&(s=1):i>-1&&(s=-1)}return i<0||n<0||s===0||s===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function lH(...e){let t=-1,n;for(;++t<e.length;)Hc(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":uH(n)}function uH(e){Hc(e);const t=e.codePointAt(0)===47;let n=cH(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function cH(e,t){let n="",r=0,i=-1,s=0,a=-1,l,u;for(;++a<=e.length;){if(a<e.length)l=e.codePointAt(a);else{if(l===47)break;l=47}if(l===47){if(!(i===a-1||s===1))if(i!==a-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=a,s=0;continue}}else if(n.length>0){n="",r=0,i=a,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,s=0}else l===46&&s>-1?s++:s=-1}return n}function Hc(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const dH={cwd:hH};function hH(){return"/"}function D0(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function fH(e){if(typeof e=="string")e=new URL(e);else if(!D0(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return pH(e)}function pH(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Cm=["history","path","basename","stem","extname","dirname"];class T2{constructor(t){let n;t?D0(t)?n={path:t}:typeof t=="string"||mH(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":dH.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Cm.length;){const s=Cm[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let i;for(i in n)Cm.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Xr.basename(this.path):void 0}set basename(t){Nm(t,"basename"),Am(t,"basename"),this.path=Xr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Xr.dirname(this.path):void 0}set dirname(t){Z1(this.basename,"dirname"),this.path=Xr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Xr.extname(this.path):void 0}set extname(t){if(Am(t,"extname"),Z1(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Xr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){D0(t)&&(t=fH(t)),Nm(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Xr.basename(this.path,this.extname):void 0}set stem(t){Nm(t,"stem"),Am(t,"stem"),this.path=Xr.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new an(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Am(e,t){if(e&&e.includes(Xr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Xr.sep+"`")}function Nm(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Z1(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function mH(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const gH=function(e){const r=this.constructor.prototype,i=r[e],s=function(){return i.apply(s,arguments)};return Object.setPrototypeOf(s,r),s},yH={}.hasOwnProperty;class Nb extends gH{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=rH()}copy(){const t=new Nb;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(km(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Om("data",this.frozen),this.namespace[t]=n,this):yH.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Om("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=qd(t),r=this.parser||this.Parser;return Pm("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Pm("process",this.parser||this.Parser),Im("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(s,a){const l=qd(t),u=r.parse(l);r.run(u,l,function(f,m,y){if(f||!m||!y)return h(f);const g=m,x=r.stringify(g,y);vH(x)?y.value=x:y.result=x,h(f,y)});function h(f,m){f||!m?a(f):s?s(m):n(void 0,m)}}}processSync(t){let n=!1,r;return this.freeze(),Pm("processSync",this.parser||this.Parser),Im("processSync",this.compiler||this.Compiler),this.process(t,i),J1("processSync","process",n),r;function i(s,a){n=!0,q1(s),r=a}}run(t,n,r){X1(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(a,l){const u=qd(n);i.run(t,u,h);function h(f,m,y){const g=m||t;f?l(f):a?a(g):r(void 0,g,y)}}}runSync(t,n){let r=!1,i;return this.run(t,n,s),J1("runSync","run",r),i;function s(a,l){q1(a),i=l,r=!0}}stringify(t,n){this.freeze();const r=qd(n),i=this.compiler||this.Compiler;return Im("stringify",i),X1(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Om("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?l(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(h){if(typeof h=="function")u(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[f,...m]=h;u(f,m)}else a(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function a(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(h.plugins),h.settings&&(i.settings=km(!0,i.settings,h.settings))}function l(h){let f=-1;if(h!=null)if(Array.isArray(h))for(;++f<h.length;){const m=h[f];s(m)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function u(h,f){let m=-1,y=-1;for(;++m<r.length;)if(r[m][0]===h){y=m;break}if(y===-1)r.push([h,...f]);else if(f.length>0){let[g,...x]=f;const v=r[y][1];j0(v)&&j0(g)&&(g=km(!0,v,g)),r[y]=[h,g,...x]}}}}const bH=new Nb().freeze();function Pm(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Im(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Om(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function X1(e){if(!j0(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function J1(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function qd(e){return _H(e)?e:new T2(e)}function _H(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function vH(e){return typeof e=="string"||xH(e)}function xH(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const EH="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",eE=[],tE={allowDangerousHtml:!0},wH=/^(https?|ircs?|mailto|xmpp)$/i,TH=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function SH(e){const t=kH(e),n=CH(e);return AH(t.runSync(t.parse(n),n),e)}function kH(e){const t=e.rehypePlugins||eE,n=e.remarkPlugins||eE,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...tE}:tE;return bH().use(o9).use(n).use(tH,r).use(t)}function CH(e){const t=e.children||"",n=new T2;return typeof t=="string"&&(n.value=t),n}function AH(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,s=t.disallowedElements,a=t.skipHtml,l=t.unwrapDisallowed,u=t.urlTransform||NH;for(const f of TH)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+EH+f.id,void 0);return Xf(e,h),$B(e,{Fragment:c.Fragment,components:i,ignoreInvalidStyle:!0,jsx:c.jsx,jsxs:c.jsxs,passKeys:!0,passNode:!0});function h(f,m,y){if(f.type==="raw"&&y&&typeof m=="number")return a?y.children.splice(m,1):y.children[m]={type:"text",value:f.value},m;if(f.type==="element"){let g;for(g in wm)if(Object.hasOwn(wm,g)&&Object.hasOwn(f.properties,g)){const x=f.properties[g],v=wm[g];(v===null||v.includes(f.tagName))&&(f.properties[g]=u(String(x||""),g,f))}}if(f.type==="element"){let g=n?!n.includes(f.tagName):s?s.includes(f.tagName):!1;if(!g&&r&&typeof m=="number"&&(g=!r(f,m,y)),g&&y&&typeof m=="number")return l&&f.children?y.children.splice(m,1,...f.children):y.children.splice(m,1),m}}}function NH(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||wH.test(e.slice(0,t))?e:""}function nE(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function PH(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function IH(e,t,n){const i=Qf((n||{}).ignore||[]),s=OH(t);let a=-1;for(;++a<s.length;)E2(e,"text",l);function l(h,f){let m=-1,y;for(;++m<f.length;){const g=f[m],x=y?y.children:void 0;if(i(g,x?x.indexOf(g):void 0,y))return;y=g}if(y)return u(h,f)}function u(h,f){const m=f[f.length-1],y=s[a][0],g=s[a][1];let x=0;const k=m.children.indexOf(h);let E=!1,S=[];y.lastIndex=0;let T=y.exec(h.value);for(;T;){const P=T.index,F={index:T.index,input:T.input,stack:[...f,h]};let O=g(...T,F);if(typeof O=="string"&&(O=O.length>0?{type:"text",value:O}:void 0),O===!1?y.lastIndex=P+1:(x!==P&&S.push({type:"text",value:h.value.slice(x,P)}),Array.isArray(O)?S.push(...O):O&&S.push(O),x=P+T[0].length,E=!0),!y.global)break;T=y.exec(h.value)}return E?(x<h.value.length&&S.push({type:"text",value:h.value.slice(x)}),m.children.splice(k,1,...S)):S=[h],k+S.length}}function OH(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([LH(i[0]),RH(i[1])])}return t}function LH(e){return typeof e=="string"?new RegExp(PH(e),"g"):e}function RH(e){return typeof e=="function"?e:function(){return e}}const Lm="phrasing",Rm=["autolink","link","image","label"];function jH(){return{transforms:[zH],enter:{literalAutolink:MH,literalAutolinkEmail:jm,literalAutolinkHttp:jm,literalAutolinkWww:jm},exit:{literalAutolink:HH,literalAutolinkEmail:UH,literalAutolinkHttp:BH,literalAutolinkWww:FH}}}function DH(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Lm,notInConstruct:Rm},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Lm,notInConstruct:Rm},{character:":",before:"[ps]",after:"\\/",inConstruct:Lm,notInConstruct:Rm}]}}function MH(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function jm(e){this.config.enter.autolinkProtocol.call(this,e)}function BH(e){this.config.exit.autolinkProtocol.call(this,e)}function FH(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function UH(e){this.config.exit.autolinkEmail.call(this,e)}function HH(e){this.exit(e)}function zH(e){IH(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,$H],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S}
264)([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),qH]],{ignore:["link","linkReference"]})}function $H(e,t,n,r,i){let s="";if(!S2(i)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!WH(n)))return!1;const a=VH(n+r);if(!a[0])return!1;const l={type:"link",title:null,url:s+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[l,{type:"text",value:a[1]}]:l}function qH(e,t,n,r){return!S2(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function WH(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function VH(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=nE(e,"(");let s=nE(e,")");for(;r!==-1&&i>s;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),s++;return[e,n]}function S2(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Wo(n)||Kf(n))&&(!t||n!==47)}k2.peek=t7;function KH(){this.buffer()}function GH(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function YH(){this.buffer()}function QH(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function ZH(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Lr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function XH(e){this.exit(e)}function JH(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Lr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function e7(e){this.exit(e)}function t7(){return"["}function k2(e,t,n,r){const i=n.createTracker(r);let s=i.move("[^");const a=n.enter("footnoteReference"),l=n.enter("reference");return s+=i.move(n.safe(n.associationId(e),{after:"]",before:s})),l(),a(),s+=i.move("]"),s}function n7(){return{enter:{gfmFootnoteCallString:KH,gfmFootnoteCall:GH,gfmFootnoteDefinitionLabelString:YH,gfmFootnoteDefinition:QH},exit:{gfmFootnoteCallString:ZH,gfmFootnoteCall:XH,gfmFootnoteDefinitionLabelString:JH,gfmFootnoteDefinition:e7}}}function r7(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:k2},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,s,a){const l=s.createTracker(a);let u=l.move("[^");const h=s.enter("footnoteDefinition"),f=s.enter("label");return u+=l.move(s.safe(s.associationId(r),{before:u,after:"]"})),f(),u+=l.move("]:"),r.children&&r.children.length>0&&(l.shift(4),u+=l.move((t?` 265`:" ")+s.indentLines(s.containerFlow(r,l.current()),t?C2:i7))),h(),u}}function i7(e,t,n){return t===0?e:C2(e,t,n)}function C2(e,t,n){return(n?"":" ")+e}const s7=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];A2.peek=c7;function o7(){return{canContainEols:["delete"],enter:{strikethrough:l7},exit:{strikethrough:u7}}}function a7(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:s7}],handlers:{delete:A2}}}function l7(e){this.enter({type:"delete",children:[]},e)}function u7(e){this.exit(e)}function A2(e,t,n,r){const i=n.createTracker(r),s=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),s(),a}function c7(){return"~"}function d7(e){return e.length}function h7(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||d7,s=[],a=[],l=[],u=[];let h=0,f=-1;for(;++f<e.length;){const v=[],k=[];let E=-1;for(e[f].length>h&&(h=e[f].length);++E<e[f].length;){const S=f7(e[f][E]);if(n.alignDelimiters!==!1){const T=i(S);k[E]=T,(u[E]===void 0||T>u[E])&&(u[E]=T)}v.push(S)}a[f]=v,l[f]=k}let m=-1;if(typeof r=="object"&&"length"in r)for(;++m<h;)s[m]=rE(r[m]);else{const v=rE(r);for(;++m<h;)s[m]=v}m=-1;const y=[],g=[];for(;++m<h;){const v=s[m];let k="",E="";v===99?(k=":",E=":"):v===108?k=":":v===114&&(E=":");let S=n.alignDelimiters===!1?1:Math.max(1,u[m]-k.length-E.length);const T=k+"-".repeat(S)+E;n.alignDelimiters!==!1&&(S=k.length+S+E.length,S>u[m]&&(u[m]=S),g[m]=S),y[m]=T}a.splice(1,0,y),l.splice(1,0,g),f=-1;const x=[];for(;++f<a.length;){const v=a[f],k=l[f];m=-1;const E=[];for(;++m<h;){const S=v[m]||"";let T="",P="";
vendor: 5,369 bytes, lines 265-277
265if(n.alignDelimiters!==!1){const F=u[m]-(k[m]||0),O=s[m];O===114?T=" ".repeat(F):O===99?F%2?(T=" ".repeat(F/2+.5),P=" ".repeat(F/2-.5)):(T=" ".repeat(F/2),P=T):P=" ".repeat(F)}n.delimiterStart!==!1&&!m&&E.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&S==="")&&(n.delimiterStart!==!1||m)&&E.push(" "),n.alignDelimiters!==!1&&E.push(T),E.push(S),n.alignDelimiters!==!1&&E.push(P),n.padding!==!1&&E.push(" "),(n.delimiterEnd!==!1||m!==h-1)&&E.push("|")}x.push(n.delimiterEnd===!1?E.join("").replace(/ +$/,""):E.join(""))}return x.join(` 266`)}function f7(e){return e==null?"":String(e)}function rE(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const iE={}.hasOwnProperty;function N2(e,t){const n=t||{};function r(i,...s){let a=r.invalid;const l=r.handlers;if(i&&iE.call(i,e)){const u=String(i[e]);a=iE.call(l,u)?l[u]:r.unknown}if(a)return a.call(this,i,...s)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function p7(e,t,n,r){const i=n.enter("blockquote"),s=n.createTracker(r);s.move("> "),s.shift(2);const a=n.indentLines(n.containerFlow(e,s.current()),m7);return i(),a}function m7(e,t,n){return">"+(n?"":" ")+e}function g7(e,t){return sE(e,t.inConstruct,!0)&&!sE(e,t.notInConstruct,!1)}function sE(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function oE(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===` 267`&&g7(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\ 268`}function y7(e,t){const n=String(e);let r=n.indexOf(t),i=r,s=0,a=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++s>a&&(a=s):s=1,i=r+t.length,r=n.indexOf(t,i);return a}function b7(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function _7(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function v7(e,t,n,r){const i=_7(n),s=e.value||"",a=i==="`"?"GraveAccent":"Tilde";if(b7(e,n)){const m=n.enter("codeIndented"),y=n.indentLines(s,x7);return m(),y}const l=n.createTracker(r),u=i.repeat(Math.max(y7(s,i)+1,3)),h=n.enter("codeFenced");let f=l.move(u);if(e.lang){const m=n.enter(`codeFencedLang${a}`);f+=l.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...l.current()})),m()}if(e.lang&&e.meta){const m=n.enter(`codeFencedMeta${a}`);f+=l.move(" "),f+=l.move(n.safe(e.meta,{before:f,after:` 269`,encode:["`"],...l.current()})),m()}return f+=l.move(` 270`),s&&(f+=l.move(s+` 271`)),f+=l.move(u),h(),f}function x7(e,t,n){return(n?"":" ")+e}function Pb(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function E7(e,t,n,r){const i=Pb(n),s=i==='"'?"Quote":"Apostrophe",a=n.enter("definition");let l=n.enter("label");const u=n.createTracker(r);let h=u.move("[");return h+=u.move(n.safe(n.associationId(e),{before:h,after:"]",...u.current()})),h+=u.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),h+=u.move("<"),h+=u.move(n.safe(e.url,{before:h,after:">",...u.current()})),h+=u.move(">")):(l=n.enter("destinationRaw"),h+=u.move(n.safe(e.url,{before:h,after:e.title?" ":` 272`,...u.current()}))),l(),e.title&&(l=n.enter(`title${s}`),h+=u.move(" "+i),h+=u.move(n.safe(e.title,{before:h,after:i,...u.current()})),h+=u.move(i),l()),a(),h}function w7(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function xc(e){return"&#x"+e.toString(16).toUpperCase()+";"}function tf(e,t,n){const r=bl(e),i=bl(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}P2.peek=T7;function P2(e,t,n,r){const i=w7(n),s=n.enter("emphasis"),a=n.createTracker(r),l=a.move(i);let u=a.move(n.containerPhrasing(e,{after:i,before:l,...a.current()}));const h=u.charCodeAt(0),f=tf(r.before.charCodeAt(r.before.length-1),h,i);f.inside&&(u=xc(h)+u.slice(1));const m=u.charCodeAt(u.length-1),y=tf(r.after.charCodeAt(0),m,i);y.inside&&(u=u.slice(0,-1)+xc(m));const g=a.move(i);return s(),n.attentionEncodeSurroundingInfo={after:y.outside,before:f.outside},l+u+g}function T7(e,t,n){return n.options.emphasis||"*"}function S7(e,t){let n=!1;return Xf(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,L0}),!!((!e.depth||e.depth<3)&&Eb(e)&&(t.options.setext||n))}function k7(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(r);if(S7(e,n)){const f=n.enter("headingSetext"),m=n.enter("phrasing"),y=n.containerPhrasing(e,{...s.current(),before:` 273`,after:` 274`});return m(),f(),y+` 275`+(i===1?"=":"-").repeat(y.length-(Math.max(y.lastIndexOf("\r"),y.lastIndexOf(` 276`))+1))}const a="#".repeat(i),l=n.enter("headingAtx"),u=n.enter("phrasing");s.move(a+" ");let h=n.containerPhrasing(e,{before:"# ",after:` 277`,...s.current()});
vendor: 5,283 bytes, line 277
277return/^[\t ]/.test(h)&&(h=xc(h.charCodeAt(0))+h.slice(1)),h=h?a+" "+h:a,n.options.closeAtx&&(h+=" "+a),u(),l(),h}I2.peek=C7;function I2(e){return e.value||""}function C7(){return"<"}O2.peek=A7;function O2(e,t,n,r){const i=Pb(n),s=i==='"'?"Quote":"Apostrophe",a=n.enter("image");let l=n.enter("label");const u=n.createTracker(r);let h=u.move("![");return h+=u.move(n.safe(e.alt,{before:h,after:"]",...u.current()})),h+=u.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),h+=u.move("<"),h+=u.move(n.safe(e.url,{before:h,after:">",...u.current()})),h+=u.move(">")):(l=n.enter("destinationRaw"),h+=u.move(n.safe(e.url,{before:h,after:e.title?" ":")",...u.current()}))),l(),e.title&&(l=n.enter(`title${s}`),h+=u.move(" "+i),h+=u.move(n.safe(e.title,{before:h,after:i,...u.current()})),h+=u.move(i),l()),h+=u.move(")"),a(),h}function A7(){return"!"}L2.peek=N7;function L2(e,t,n,r){const i=e.referenceType,s=n.enter("imageReference");let a=n.enter("label");const l=n.createTracker(r);let u=l.move("![");const h=n.safe(e.alt,{before:u,after:"]",...l.current()});u+=l.move(h+"]["),a();const f=n.stack;n.stack=[],a=n.enter("reference");const m=n.safe(n.associationId(e),{before:u,after:"]",...l.current()});return a(),n.stack=f,s(),i==="full"||!h||h!==m?u+=l.move(m+"]"):i==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}function N7(){return"!"}R2.peek=P7;function R2(e,t,n){let r=e.value||"",i="`",s=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++s<n.unsafe.length;){const a=n.unsafe[s],l=n.compilePattern(a);let u;if(a.atBreak)for(;u=l.exec(r);){let h=u.index;r.charCodeAt(h)===10&&r.charCodeAt(h-1)===13&&h--,r=r.slice(0,h)+" "+r.slice(u.index+1)}}return i+r+i}function P7(){return"`"}function j2(e,t){const n=Eb(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}D2.peek=I7;function D2(e,t,n,r){const i=Pb(n),s=i==='"'?"Quote":"Apostrophe",a=n.createTracker(r);let l,u;if(j2(e,n)){const f=n.stack;n.stack=[],l=n.enter("autolink");let m=a.move("<");return m+=a.move(n.containerPhrasing(e,{before:m,after:">",...a.current()})),m+=a.move(">"),l(),n.stack=f,m}l=n.enter("link"),u=n.enter("label");let h=a.move("[");return h+=a.move(n.containerPhrasing(e,{before:h,after:"](",...a.current()})),h+=a.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),h+=a.move("<"),h+=a.move(n.safe(e.url,{before:h,after:">",...a.current()})),h+=a.move(">")):(u=n.enter("destinationRaw"),h+=a.move(n.safe(e.url,{before:h,after:e.title?" ":")",...a.current()}))),u(),e.title&&(u=n.enter(`title${s}`),h+=a.move(" "+i),h+=a.move(n.safe(e.title,{before:h,after:i,...a.current()})),h+=a.move(i),u()),h+=a.move(")"),l(),h}function I7(e,t,n){return j2(e,n)?"<":"["}M2.peek=O7;function M2(e,t,n,r){const i=e.referenceType,s=n.enter("linkReference");let a=n.enter("label");const l=n.createTracker(r);let u=l.move("[");const h=n.containerPhrasing(e,{before:u,after:"]",...l.current()});u+=l.move(h+"]["),a();const f=n.stack;n.stack=[],a=n.enter("reference");const m=n.safe(n.associationId(e),{before:u,after:"]",...l.current()});return a(),n.stack=f,s(),i==="full"||!h||h!==m?u+=l.move(m+"]"):i==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}function O7(){return"["}function Ib(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function L7(e){const t=Ib(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function R7(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function B2(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function j7(e,t,n,r){const i=n.enter("list"),s=n.bulletCurrent;let a=e.ordered?R7(n):Ib(n);const l=e.ordered?a==="."?")":".":L7(n);let u=t&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),B2(n)===a&&f){let m=-1;for(;++m<e.children.length;){const y=e.children[m];if(y&&y.type==="listItem"&&y.children&&y.children[0]&&y.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(a=l),n.bulletCurrent=a;const h=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=s,i(),h}function D7(e){const t=e.options.listItemIndent||"one";
vendor: 8,222 bytes, lines 277-279
277if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function M7(e,t,n,r){const i=D7(n);let s=n.bulletCurrent||Ib(n);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let a=s.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const l=n.createTracker(r);l.move(s+" ".repeat(a-s.length)),l.shift(a);const u=n.enter("listItem"),h=n.indentLines(n.containerFlow(e,l.current()),f);return u(),h;function f(m,y,g){return y?(g?"":" ".repeat(a))+m:(g?s:s+" ".repeat(a-s.length))+m}}function B7(e,t,n,r){const i=n.enter("paragraph"),s=n.enter("phrasing"),a=n.containerPhrasing(e,r);return s(),i(),a}const F7=Qf(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function U7(e,t,n,r){return(e.children.some(function(a){return F7(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function H7(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}F2.peek=z7;function F2(e,t,n,r){const i=H7(n),s=n.enter("strong"),a=n.createTracker(r),l=a.move(i+i);let u=a.move(n.containerPhrasing(e,{after:i,before:l,...a.current()}));const h=u.charCodeAt(0),f=tf(r.before.charCodeAt(r.before.length-1),h,i);f.inside&&(u=xc(h)+u.slice(1));const m=u.charCodeAt(u.length-1),y=tf(r.after.charCodeAt(0),m,i);y.inside&&(u=u.slice(0,-1)+xc(m));const g=a.move(i+i);return s(),n.attentionEncodeSurroundingInfo={after:y.outside,before:f.outside},l+u+g}function z7(e,t,n){return n.options.strong||"*"}function $7(e,t,n,r){return n.safe(e.value,r)}function q7(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function W7(e,t,n){const r=(B2(n)+(n.options.ruleSpaces?" ":"")).repeat(q7(n));return n.options.ruleSpaces?r.slice(0,-1):r}const U2={blockquote:p7,break:oE,code:v7,definition:E7,emphasis:P2,hardBreak:oE,heading:k7,html:I2,image:O2,imageReference:L2,inlineCode:R2,link:D2,linkReference:M2,list:j7,listItem:M7,paragraph:B7,root:U7,strong:F2,text:$7,thematicBreak:W7};function V7(){return{enter:{table:K7,tableData:aE,tableHeader:aE,tableRow:Y7},exit:{codeText:Q7,table:G7,tableData:Dm,tableHeader:Dm,tableRow:Dm}}}function K7(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function G7(e){this.exit(e),this.data.inTable=void 0}function Y7(e){this.enter({type:"tableRow",children:[]},e)}function Dm(e){this.exit(e)}function aE(e){this.enter({type:"tableCell",children:[]},e)}function Q7(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Z7));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Z7(e,t){return t==="|"?t:e}function X7(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` 278`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:y,table:a,tableCell:u,tableRow:l}};function a(g,x,v,k){return h(f(g,v,k),g.align)}function l(g,x,v,k){const E=m(g,v,k),S=h([E]);return S.slice(0,S.indexOf(` 279`))}function u(g,x,v,k){const E=v.enter("tableCell"),S=v.enter("phrasing"),T=v.containerPhrasing(g,{...k,before:s,after:s});return S(),E(),T}function h(g,x){return h7(g,{align:x,alignDelimiters:r,padding:n,stringLength:i})}function f(g,x,v){const k=g.children;let E=-1;const S=[],T=x.enter("table");for(;++E<k.length;)S[E]=m(k[E],x,v);return T(),S}function m(g,x,v){const k=g.children;let E=-1;const S=[],T=x.enter("tableRow");for(;++E<k.length;)S[E]=u(k[E],g,x,v);return T(),S}function y(g,x,v){let k=U2.inlineCode(g,x,v);return v.stack.includes("tableCell")&&(k=k.replace(/\|/g,"\\$&")),k}}function J7(){return{exit:{taskListCheckValueChecked:lE,taskListCheckValueUnchecked:lE,paragraph:tz}}}function ez(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:nz}}}function lE(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function tz(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let s=-1,a;for(;++s<i.length;){const l=i[s];if(l.type==="paragraph"){a=l;break}}a===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function nz(e,t,n,r){const i=e.children[0],s=typeof e.checked=="boolean"&&i&&i.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",l=n.createTracker(r);s&&l.move(a);let u=U2.listItem(e,t,n,{...r,...l.current()});return s&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),u;function h(f){return f+a}}function rz(){return[jH(),n7(),o7(),V7(),J7()]}function iz(e){return{extensions:[DH(),r7(e),a7(),X7(e),ez()]}}const sz={tokenize:dz,partial:!0},H2={tokenize:hz,partial:!0},z2={tokenize:fz,partial:!0},$2={tokenize:pz,partial:!0},oz={tokenize:mz,partial:!0},q2={name:"wwwAutolink",tokenize:uz,previous:V2},W2={name:"protocolAutolink",tokenize:cz,previous:K2},Vi={name:"emailAutolink",tokenize:lz,previous:G2},yi={};function az(){return{text:yi}}let ho=48;for(;ho<123;)yi[ho]=Vi,ho++,ho===58?ho=65:ho===91&&(ho=97);yi[43]=Vi;yi[45]=Vi;yi[46]=Vi;yi[95]=Vi;yi[72]=[Vi,W2];yi[104]=[Vi,W2];yi[87]=[Vi,q2];yi[119]=[Vi,q2];function lz(e,t,n){const r=this;let i,s;return a;function a(m){return!M0(m)||!G2.call(r,r.previous)||Ob(r.events)?n(m):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(m))}function l(m){return M0(m)?(e.consume(m),l):m===64?(e.consume(m),u):n(m)}function u(m){return m===46?e.check(oz,f,h)(m):m===45||m===95||sn(m)?(s=!0,e.consume(m),u):f(m)}function h(m){return e.consume(m),i=!0,u}function f(m){return s&&i&&pn(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(m)):n(m)}}function uz(e,t,n){const r=this;return i;function i(a){return a!==87&&a!==119||!V2.call(r,r.previous)||Ob(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(sz,e.attempt(H2,e.attempt(z2,s),n),n)(a))}function s(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function cz(e,t,n){const r=this;let i="",s=!1;return a;function a(m){return(m===72||m===104)&&K2.call(r,r.previous)&&!Ob(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(m),e.consume(m),l):n(m)}function l(m){if(pn(m)&&i.length<5)return i+=String.fromCodePoint(m),e.consume(m),l;if(m===58){const y=i.toLowerCase();if(y==="http"||y==="https")return e.consume(m),u}return n(m)}function u(m){return m===47?(e.consume(m),s?h:(s=!0,u)):n(m)}function h(m){return m===null||Jh(m)||et(m)||Wo(m)||Kf(m)?n(m):e.attempt(H2,e.attempt(z2,f),n)(m)}function f(m){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(m)}}function dz(e,t,n){let r=0;return i;function i(a){return(a===87||a===119)&&r<3?(r++,e.consume(a),i):a===46&&r===3?(e.consume(a),s):n(a)}function s(a){return a===null?n(a):t(a)}}function hz(e,t,n){let r,i,s;return a;function a(h){return h===46||h===95?e.check($2,u,l)(h):h===null||et(h)||Wo(h)||h!==45&&Kf(h)?u(h):(s=!0,e.consume(h),a)}function l(h){return h===95?r=!0:(i=r,r=void 0),e.consume(h),a}function u(h){return i||r||!s?n(h):t(h)}}function fz(e,t){let n=0,r=0;return i;function i(a){return a===40?(n++,e.consume(a),i):a===41&&r<n?s(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?e.check($2,t,s
vendor: 6,621 bytes, line 279
279)(a):a===null||et(a)||Wo(a)?t(a):(e.consume(a),i)}function s(a){return a===41&&r++,e.consume(a),i}}function pz(e,t,n){return r;function r(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),r):l===38?(e.consume(l),s):l===93?(e.consume(l),i):l===60||l===null||et(l)||Wo(l)?t(l):n(l)}function i(l){return l===null||l===40||l===91||et(l)||Wo(l)?t(l):r(l)}function s(l){return pn(l)?a(l):n(l)}function a(l){return l===59?(e.consume(l),r):pn(l)?(e.consume(l),a):n(l)}}function mz(e,t,n){return r;function r(s){return e.consume(s),i}function i(s){return sn(s)?n(s):t(s)}}function V2(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||et(e)}function K2(e){return!pn(e)}function G2(e){return!(e===47||M0(e))}function M0(e){return e===43||e===45||e===46||e===95||sn(e)}function Ob(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const gz={tokenize:Tz,partial:!0};function yz(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:xz,continuation:{tokenize:Ez},exit:wz}},text:{91:{name:"gfmFootnoteCall",tokenize:vz},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:bz,resolveTo:_z}}}}function bz(e,t,n){const r=this;let i=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){a=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return l;function l(u){if(!a||!a._balanced)return n(u);const h=Lr(r.sliceSerialize({start:a.end,end:r.now()}));return h.codePointAt(0)!==94||!s.includes(h.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function _z(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},l=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",s,t],["enter",a,t],["exit",a,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...l),e}function vz(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s=0,a;return l;function l(m){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),u}function u(m){return m!==94?n(m):(e.enter("gfmFootnoteCallMarker"),e.consume(m),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(m){if(s>999||m===93&&!a||m===null||m===91||et(m))return n(m);if(m===93){e.exit("chunkString");const y=e.exit("gfmFootnoteCallString");return i.includes(Lr(r.sliceSerialize(y)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(m)}return et(m)||(a=!0),s++,e.consume(m),m===92?f:h}function f(m){return m===91||m===92||m===93?(e.consume(m),s++,h):h(m)}}function xz(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,a=0,l;return u;function u(x){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(x){return x===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(x)}function f(x){if(a>999||x===93&&!l||x===null||x===91||et(x))return n(x);if(x===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return s=Lr(r.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),y}return et(x)||(l=!0),a++,e.consume(x),x===92?m:f}function m(x){return x===91||x===92||x===93?(e.consume(x),a++,f):f(x)}function y(x){return x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),i.includes(s)||i.push(s),Ve(e,g,"gfmFootnoteDefinitionWhitespace")):n(x)}function g(x){return t(x)}}function Ez(e,t,n){return e.check(Uc,t,e.attempt(gz,t,n))}function wz(e){e.exit("gfmFootnoteDefinition")}function Tz(e,t,n){const r=this;return Ve(e,i,"gfmFootnoteDefinitionIndent",5);function i(s){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(s):n(s)}}function Sz(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:s,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,l){let u=-1;for(;++u<a.length;)if(a[u][0]==="enter"&&a[u][1].type==="strikethroughSequenceTemporary"&&a[u][1]._close){let h=u;for(;h--;)if(a[h][0]==="exit"&&a[h][1].type==="strikethroughSequenceTemporary"&&a[h][1]._open&&a[u][1].end.offset-a[u][1].start.offset===a[h][1].end.offset-a[h][1].start.offset){a[u][1].type="strikethroughSequence",a[h][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},a[h][1].start),end:Object.assign({},a[u][1].end)},m={type:"strikethroughText",start:Object.assign({},a[h][1].end),end:Object.assign({},a[u][1].start)},y=[["enter",f,l],["enter",a[h][1],l],["exit",a[h][1],l],["enter",m,l]],g=l.parser.constructs.insideSpan.null;g&&Vn(y,y.length,0,Gf(g,a.slice(h+1,u),l)),Vn(y,y.length,0,[["exit",m,l],["enter",a[u][1],l],["exit",a[u][1],l],["exit",f,l]]),Vn(a,h-1,u-h+3,y),u=h+y.length-2;break}}for(u=-1;++u<a.length;)a[u][1].type==="strikethroughSequenceTemporary"&&(a[u][1].type="data");return a}function s(a,l,u){const h=this.previous,f=this.events;let m=0;return y;function y(x){return h===126&&f[f.length-1][1].type!=="characterEscape"?u(x):(a.enter("strikethroughSequenceTemporary"),g(x))}function g(x){const v=bl(h);if(x===126)return m>1?u(x):(a.consume(x),m++,g);
vendor: 5,341 bytes, line 279
279if(m<2&&!n)return u(x);const k=a.exit("strikethroughSequenceTemporary"),E=bl(x);return k._open=!E||E===2&&!!v,k._close=!v||v===2&&!!E,l(x)}}}class kz{constructor(){this.map=[]}add(t,n,r){Cz(this,t,n,r)}consume(t){if(this.map.sort(function(s,a){return s[0]-a[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const s of i)t.push(s);i=r.pop()}this.map.length=0}}function Cz(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function Az(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function Nz(){return{flow:{null:{name:"table",tokenize:Pz,resolveAll:Iz}}}}function Pz(e,t,n){const r=this;let i=0,s=0,a;return l;function l(M){let Z=r.events.length-1;for(;Z>-1;){const ee=r.events[Z][1].type;if(ee==="lineEnding"||ee==="linePrefix")Z--;else break}const W=Z>-1?r.events[Z][1].type:null,ce=W==="tableHead"||W==="tableRow"?O:u;return ce===O&&r.parser.lazy[r.now().line]?n(M):ce(M)}function u(M){return e.enter("tableHead"),e.enter("tableRow"),h(M)}function h(M){return M===124||(a=!0,s+=1),f(M)}function f(M){return M===null?n(M):Se(M)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),g):n(M):Fe(M)?Ve(e,f,"whitespace")(M):(s+=1,a&&(a=!1,i+=1),M===124?(e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),a=!0,f):(e.enter("data"),m(M)))}function m(M){return M===null||M===124||et(M)?(e.exit("data"),f(M)):(e.consume(M),M===92?y:m)}function y(M){return M===92||M===124?(e.consume(M),m):m(M)}function g(M){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(M):(e.enter("tableDelimiterRow"),a=!1,Fe(M)?Ve(e,x,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):x(M))}function x(M){return M===45||M===58?k(M):M===124?(a=!0,e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),v):F(M)}function v(M){return Fe(M)?Ve(e,k,"whitespace")(M):k(M)}function k(M){return M===58?(s+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(M),e.exit("tableDelimiterMarker"),E):M===45?(s+=1,E(M)):M===null||Se(M)?P(M):F(M)}function E(M){return M===45?(e.enter("tableDelimiterFiller"),S(M)):F(M)}function S(M){return M===45?(e.consume(M),S):M===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(M),e.exit("tableDelimiterMarker"),T):(e.exit("tableDelimiterFiller"),T(M))}function T(M){return Fe(M)?Ve(e,P,"whitespace")(M):P(M)}function P(M){return M===124?x(M):M===null||Se(M)?!a||i!==s?F(M):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(M)):F(M)}function F(M){return n(M)}function O(M){return e.enter("tableRow"),H(M)}function H(M){return M===124?(e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),H):M===null||Se(M)?(e.exit("tableRow"),t(M)):Fe(M)?Ve(e,H,"whitespace")(M):(e.enter("data"),K(M))}function K(M){return M===null||M===124||et(M)?(e.exit("data"),H(M)):(e.consume(M),M===92?Q:K)}function Q(M){return M===92||M===124?(e.consume(M),K):K(M)}}function Iz(e,t){let n=-1,r=!0,i=0,s=[0,0,0,0],a=[0,0,0,0],l=!1,u=0,h,f,m;const y=new kz;for(;++n<e.length;){const g=e[n],x=g[1];g[0]==="enter"?x.type==="tableHead"?(l=!1,u!==0&&(uE(y,t,u,h,f),f=void 0,u=0),h={type:"table",start:Object.assign({},x.start),end:Object.assign({},x.end)},y.add(n,0,[["enter",h,t]])):x.type==="tableRow"||x.type==="tableDelimiterRow"?(r=!0,m=void 0,s=[0,0,0,0],a=[0,n+1,0,0],l&&(l=!1,f={type:"tableBody",start:Object.assign({},x.start),end:Object.assign({},x.end)},y.add(n,0,[["enter",f,t]])),i=x.type==="tableDelimiterRow"?2:f?3:1):i&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")?(r=!1,a[2]===0&&(s[1]!==0&&(a[0]=a[1],m=Wd(y,t,s,i,void 0,m),s=[0,0,0,0]),a[2]=n)):x.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(a[0]=a[1],m=Wd(y,t,s,i,void 0,m)),s=a,a=[s[1],n,0,0])):x.type==="tableHead"?(l=!0,u=n):x.type==="tableRow"||x.type==="tableDelimiterRow"?(u=n,s[1]!==0?(a[0]=a[1],m=Wd(y,t,s,i,n,m)):a[1]!==0&&(m=Wd(y,t,a,i,n,m)),i=0):i&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")&&(a[3]=n)}for(u!==0&&uE(y,t,u,h,f),y.consume(t.events),n=-1;++n<t.events.length;){const g=t.events[n];g[0]==="enter"&&g[1].type==="table"&&(g[1]._align=Az(t.events,n))}return e}function Wd(e,t,n,r,i,s){const a=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(s.end=Object.assign({},Ea(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const u=Ea(t.events,n[1]);if(s={type:a,start:Object.assign({},u),end:Object.assign({},u)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){const h=Ea(t.events,n[2]),f=Ea(t.events,n[3]),m={type:l,start:Object.assign({},h),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",m,t]]),r!==2){const y=t.events[n[2]],g=t.events[n[3]];if(y[1].end=Object.assign({}
vendor: 9,779 bytes, lines 279-280
279,g[1].end),y[1].type="chunkText",y[1].contentType="text",n[3]>n[2]+1){const x=n[2]+1,v=n[3]-n[2]-1;e.add(x,v,[])}}e.add(n[3]+1,0,[["exit",m,t]])}return i!==void 0&&(s.end=Object.assign({},Ea(t.events,i)),e.add(i,0,[["exit",s,t]]),s=void 0),s}function uE(e,t,n,r,i){const s=[],a=Ea(t.events,n);i&&(i.end=Object.assign({},a),s.push(["exit",i,t])),r.end=Object.assign({},a),s.push(["exit",r,t]),e.add(n+1,0,s)}function Ea(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Oz={name:"tasklistCheck",tokenize:Rz};function Lz(){return{text:{91:Oz}}}function Rz(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),s)}function s(u){return et(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),a):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),a):n(u)}function a(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(u)}function l(u){return Se(u)?t(u):Fe(u)?e.check({tokenize:jz},t,n)(u):n(u)}}function jz(e,t,n){return Ve(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Dz(e){return r2([az(),yz(),Sz(e),Nz(),Lz()])}const Mz={};function Bz(e){const t=this,n=e||Mz,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Dz(n)),s.push(rz()),a.push(iz(n))}const cE=/[#.]/g;function Fz(e,t){const n=e||"",r={};let i=0,s,a;for(;i<n.length;){cE.lastIndex=i;const l=cE.exec(n),u=n.slice(i,l?l.index:n.length);u&&(s?s==="#"?r.id=u:Array.isArray(r.className)?r.className.push(u):r.className=[u]:a=u,i+=u.length),l&&(s=l[0],i++)}return{type:"element",tagName:a||t||"div",properties:r,children:[]}}function Y2(e,t,n){const r=n?$z(n):void 0;function i(s,a,...l){let u;if(s==null){u={type:"root",children:[]};const h=a;l.unshift(h)}else{u=Fz(s,t);const h=u.tagName.toLowerCase(),f=r?r.get(h):void 0;if(u.tagName=f||h,Uz(a))l.unshift(a);else for(const[m,y]of Object.entries(a))Hz(e,u.properties,m,y)}for(const h of l)B0(u.children,h);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return i}function Uz(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const s=i;for(const a of s)if(typeof a!="number"&&typeof a!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Hz(e,t,n,r){const i=qf(e,n);let s;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;s=r}else typeof r=="boolean"?s=r:typeof r=="string"?i.spaceSeparated?s=y1(r):i.commaSeparated?s=h1(r):i.commaOrSpaceSeparated?s=y1(h1(r).join(" ")):s=dE(i,i.property,r):Array.isArray(r)?s=[...r]:s=i.property==="style"?zz(r):String(r);if(Array.isArray(s)){const a=[];for(const l of s)a.push(dE(i,i.property,l));s=a}i.property==="className"&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[i.property]=s}}function B0(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)B0(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?B0(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function dE(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||_c(n)===_c(t)))return!0}return n}function zz(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function $z(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const qz=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],Wz=Y2(Fc,"div"),Vz=Y2(Xs,"g",qz);function Kz(e){const t=String(e),n=[];return{toOffset:i,toPoint:r};function r(s){if(typeof s=="number"&&s>-1&&s<=t.length){let a=0;for(;;){let l=n[a];if(l===void 0){const u=hE(t,n[a-1]);l=u===-1?t.length+1:u+1,n[a]=l}if(l>s)return{line:a+1,column:s-(a>0?n[a-1]:0)+1,offset:s};a++}}}function i(s){if(s&&typeof s.line=="number"&&typeof s.column=="number"&&!Number.isNaN(s.line)&&!Number.isNaN(s.column)){for(;n.length<s.line;){const l=n[n.length-1],u=hE(t,l),h=u===-1?t.length+1:u+1;if(l===h)break;n.push(h)}const a=(s.line>1?n[s.line-2]:0)+s.column-1;if(a<n[s.line-1])return a}}}function hE(e,t){const n=e.indexOf("\r",t),r=e.indexOf(` 280`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const wo={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Q2={}.hasOwnProperty,Gz=Object.prototype;function Yz(e,t){const n=t||{};return Lb({file:n.file||void 0,location:!1,schema:n.space==="svg"?Xs:Fc,verbose:n.verbose||!1},e)}function Lb(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},mh(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:Z2(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const s=String(e.file),a=Kz(s),l=a.toPoint(0),u=a.toPoint(s.length);n.position={start:l,end:u}}return n}case"#documentType":{const r=t;return n={type:"doctype"},mh(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},mh(e,r,n),n}default:return n=Qz(e,t),n}}function Z2(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=Lb(e,t[n]);r.push(i)}return r}function Qz(e,t){const n=e.schema;e.schema=t.namespaceURI===wo.svg?Xs:Fc;let r=-1;const i={};for(;++r<t.attrs.length;){const l=t.attrs[r],u=(l.prefix?l.prefix+":":"")+l.name;Q2.call(Gz,u)||(i[u]=l.value)}const a=(e.schema.space==="svg"?Vz:Wz)(t.tagName,i,Z2(e,t.childNodes));if(mh(e,t,a),a.tagName==="template"){const l=t,u=l.sourceCodeLocation,h=u&&u.startTag&&Da(u.startTag),f=u&&u.endTag&&Da(u.endTag),m=Lb(e,l.content);h&&f&&e.file&&(m.position={start:h.end,end:f.start}),a.content=m}return e.schema=n,a}function mh(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=Zz(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function Zz(e,t,n){const r=Da(n);if(t.type==="element"){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const s={};let a;if(n.attrs)for(a in n.attrs)Q2.call(n.attrs,a)&&(s[qf(e.schema,a).property]=Da(n.attrs[a]));n.startTag;const l=Da(n.startTag),u=n.endTag?Da(n.endTag):void 0,h={opening:l};u&&(h.closing=u),h.properties=s,t.data={position:h}}}return r}function Da(e){const t=fE({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=fE({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function fE(e){return e.line&&e.column?e:void 0}const Xz={},Jz={}.hasOwnProperty,X2=N2("type",{handlers:{root:t$,element:o$,text:i$,comment:s$,doctype:r$}});function e$(e,t){const r=(t||Xz).space;return X2(e,r==="svg"?Xs:Fc)}function t$(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Rb(e.children,n,t),Ol(e,n),n}function n$(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Rb(e.children,n,t),Ol(e,n),n}function r$(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Ol(e,t),t}function i$(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Ol(e,t),t}function s$(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Ol(e,t),t}function o$(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Xs);const i=[];let s;if(e.properties){for(s in e.properties)if(s!=="children"&&Jz.call(e.properties,s)){const u=a$(r,s,e.properties[s]);u&&i.push(u)}}const a=r.space,l={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:wo[a],childNodes:[],parentNode:null};return l.childNodes=Rb(e.children,l,r),Ol(e,l),e.tagName==="template"&&e.content&&(l.content=n$(e.content,r)),l}function a$(e,t,n){const r=qf(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?HC(n):YC(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const s=i.name.indexOf(":");s<0?i.prefix="":(i.name=i.name.slice(s+1),i.prefix=r.attribute.slice(0,s)),i.namespace=wo[r.space]}return i}function Rb(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const s=X2(e[r],n);s.parentNode=t,i.push(s)}return i}function Ol(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const l$=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","
280image","img","input","keygen","link","meta","param","source","track","wbr"],u$=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),ct="�";var I;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(I||(I={}));const wn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function J2(e){return e>=55296&&e<=57343}function c$(e){return e>=56320&&e<=57343}function d$(e,t){return(e-55296)*1024+9216+t}function eA(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function tA(e){return e>=64976&&e<=65007||u$.has(e)}var Y;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invali
vendor: 4,101 bytes, line 280
280dCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(Y||(Y={}));const h$=65536;class f${constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=h$,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:i,offset:s}=this,a=i+n,l=s+n;return{code:t,startLine:r,endLine:r,startCol:a,endCol:a,startOffset:l,endOffset:l}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(c$(n))return this.pos++,this._addGap(),d$(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,I.EOF;return this._err(Y.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,I.EOF;const r=this.html.charCodeAt(n);return r===I.CARRIAGE_RETURN?I.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,I.EOF;let t=this.html.charCodeAt(this.pos);return t===I.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,I.LINE_FEED):t===I.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,J2(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===I.LINE_FEED||t===I.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){eA(t)?this._err(Y.controlCharacterInInputStream):tA(t)&&this._err(Y.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Be;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Be||(Be={}));function nA(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const p$=new Uint16Array('
vendor: 16,129 bytes, line 280
280áµ<ÃıÊÒÕ»×ÙµÛÞ¢ßà à©àªà¶¡à¹à¼à¼¦áá¨á¡ááááá¥\0\0\0\0\0\0á«áá¦á°á·á½¾â â°âââ»ââ ¤â¤â´â¹â¿ããºã¹ã¬ã£¾ã¨¨ã©±ã« 㬮à EMabcfglmnoprstu\\bfms�¦³¹ÃÃligè»ÃäPè»&ä¦cuteè»Ãäreve;äÄiyx}rcè»Ãä;är;ìðraveè»Ãäpha;äacr;äd;æ©Ägp¡on;äf;ìð¸plyFunction;æ¡ingè»Ã
ä
Äcs¾Ãr;ìðign;æildeè»Ãämlè»ÃäÐaceforsuåûþÄÄĢħĪÄcrêòkslash;æÅ¶Ã¶Ã¸;æ«§ed;æy;äÆcrtÄ
ÄÄause;æµnoullis;æ¬a;är;ìð
pf;ìð¹eve;äcòÄmpeq;æÜHOacdefhilorsuÅÅÅÆÆÆ¢ÆµÆ·ÆºÇÈɳɸɾcy;ä§PYè»Â©ä©ÆcpyÅŢźute;äÄ;iŧŨætalDifferentialD;æ
leys;æÈaeioÆÆÆÆron;ädilè»Ãärc;änint;æ°ot;äÄdnƧÆilla;ä¸terDot;ä·Ã²Å¿i;ä§rcleÈDMPTÇÇÇÇot;æinus;ælus;æimes;æoÄcsǢǸkwiseContourIntegral;æ²eCurlyÄDQÈÈoubleQuote;æuote;æÈlnpuÈȨÉÉonÄ;eȥȦæ·;æ©´ÆgitȯȶȺruent;æ¡nt;æ¯ourIntegral;æ®ÄfrÉÉ;æoduct;ænterClockwiseContourIntegral;æ³oss;樯cr;ìðpÄ;CÊÊ
æap;æÖDJSZacefiosÊ Ê¬Ê°Ê´Ê¸ËËˡ˦̳ÒÄ;oŹʥtrahd;æ¤cy;äcy;ä
cy;äÆgrsÊ¿ËËger;æ¡r;æ¡hv;櫤ÄayËËron;ä;älÄ;tËËæa;är;ìðÄaf˫̧Äcm˰̢riticalÈADGTÌÌÌÌcute;ä´oÅ´ÌÌ;äbleAcute;ärave;ä ilde;äond;æferentialD;æ
Ѱ̽\0\0\0ÍÍ\0Ð
f;ìð»Æ;DEÍÍÍä¨ot;æqual;æbleÌCDLRUVͣͲÎÏϢϸontourIntegraìȹoɴ͹\0\0ͻ»ÍnArrow;æÄeoÎΤftÆARTÎÎΡrrow;æightArrow;æeÃ¥ËngÄLRΫÏeftÄARγιrrow;æ¸ightArrow;æºightArrow;æ¹ightÄATÏÏrrow;æee;æ¨pÉÏ©\0\0ϯrrow;æownArrow;æerticalBar;æ¥nÌABLRTaÐЪаÑѿͼrrowÆ;BUÐÐТæar;æ¤pArrow;æµreve;äeftËк\0Ñ\0ÑightVector;æ¥eeVector;æ¥ectorÄ;BÑÑæ½ar;æ¥ightÇѧ\0ѱeeVector;æ¥ectorÄ;BѺѻæar;æ¥eeÄ;AÒÒæ¤rrow;æ§ÄctÒÒr;ìðrok;äà NTacdfglmopqstuxÒ½ÓÓÓÓÓ¢Ó§Ó®ÓµÔ¡Ô¯Ô¶ÕÕÕ Õ¥G;ä
Hè»Ãäcuteè»ÃäÆaiyÓÓÓron;ärcè»Ãä;äot;är;ìðraveè»Ãäement;æÄapÓºÓ¾cr;ätyÉÔ\0\0ÔmallSquare;æ»erySmallSquare;æ«ÄgpÔ¦Ôªon;äf;ìð¼silon;äuÄaiÔ¼ÕlÄ;TÕÕæ©µilde;ælibrium;æÄciÕÕr;æ°m;橳a;ämlè»ÃäÄipÕªÕ¯sts;æonentialE;æ
ÊcfiosÖ
ÖÖÖ²×y;ä¤r;ìðlledÉÖ\0\0Ö£mallSquare;æ¼erySmallSquare;æªÍ°Öº\0Ö¿\0\0×f;ìð½All;æriertrf;æ±cÃ²×ØJTabcdfgorst×¨×¬×¯×ºØØØØØØ£Ù¬Ù²cy;äè»>ä¾mmaÄ;d׷׸ä;äreve;äÆeiyØØØdil;ä¢rc;ä;äot;ä r;ìð;æpf;ìð¾eaterÌEFGLSTصÙÙÙÙÙ¦qualÄ;Lؾؿæ¥ess;æullEqual;æ§reater;檢ess;æ·lantEqual;橾ilde;æ³cr;ìð¢;æ«ÐAacfiosuÚ
ÚÚÚÚÚªÚ¾ÛRDcy;äªÄctÚÚek;ä;äirc;ä¤r;ælbertSpace;æÇ°Ú¯\0Ú²f;æizontalLine;æÄctÛÛ
òکrok;ä¦mpÅÛÛownHumðįqual;æÜEJOacdfgmnostuÛºÛ¾ÜÜÜÜÜܡܨÝݸÞÞÞcy;älig;ä²cy;äcuteè»ÃäÄiyÜÜrcè»Ãä;äot;ä°r;æraveè»ÃäÆ;apÜ Ü¯Ü¿ÄcgÜ´Ü·r;äªinaryI;æ
lieóÏÇ´Ý\0Ý¢Ä;eÝÝæ¬ÄgrÝÝral;æ«section;æisibleÄCTݬݲomma;æ£imes;æ¢ÆgptÝ¿ÞÞon;ä®f;ìða;äcr;æilde;ä¨Ç«Þ\0Þcy;älè»ÃäÊcfosuÞ¬Þ·Þ¼ßßÄiyÞ±Þµrc;ä´;är;ìðpf;ìðÇ£ß\0ßr;ìð¥rcy;äkcy;äÎHJacfosߤߨ߽߬߱à à cy;ä¥cy;äppa;äÄeyß¶ß»dil;ä¶;är;ìðpf;ìðcr;ìð¦ÖJTaceflmostà ¥à ©à ¬à¡à¡£à¦³à¦¸à§à§à¨·à©cy;äè»<ä¼Êcmnprà ·à ¼à¡à¡à¡ute;ä¹bda;äg;æªlacetrf;ær;æÆaeyà¡à¡à¡¡ron;ä½dil;ä»;äÄfsࡨ॰tÔACDFRTUVarࡾࢩࢱࣦ࣠ࣼयà¥Î४Änrà¢à¢gleBracket;æ¨rowÆ;BRà¢à¢à¢æar;æ¤ightArrow;æeiling;æoǵࢷ\0à£bleBracket;æ¦nÇà£\0à£eeVector;楡ectorÄ;Bà£à£æar;æ¥loor;æightÄAV࣯ࣵrrow;æector;æ¥Äerà¤à¤eÆ;AVà¤à¤à¤æ£rrow;æ¤ector;æ¥iangleÆ;BEतथऩæ²ar;æ§qual;æ´pÆDTVषà¥à¥ownVector;æ¥eeVector;æ¥ ectorÄ;Bà¥à¥æ¿ar;æ¥ectorÄ;B॥०æ¼ar;æ¥ightáÎsÌEFGLSTॾà¦à¦à¦à¦¢à¦qualGreater;æullEqual;æ¦reater;æ¶ess;檡lantEqual;橽ilde;æ²r;ìðÄ;eঽাæftarrow;æidot;ä¿Ænpwà§à¨à¨gÈLRlrà§à§·à¨à¨eftÄAR০৬rrow;æµightArrow;æ·ightArrow;æ¶eftÄarγà¨ightáοightáÏf;ìðerÄLRਢਬeftArrow;æightArrow;æÆchtਾà©à©Ã²à¡;æ°rok;ä
;æªÐacefiosuà©à©à© ੷੼àª
àªàªp;æ¤
y;äÄdl੥੯iumSpace;ælintrf;æ³r;ìðnusPlus;æpf;ìðcò੶;äÒJacefostuણધàªà«à¬à¬à¶à¶à¶cy;äcute;ä
Æaey઴હાron;ä
dil;ä
;äÆgswà«à«°à¬ativeÆMTVà«à«à«¨ediumSpace;æhiÄcn૦à«Ã«à«eryThiîà«tedÄGL૸à¬reaterGreateòٳessLesóà©Line;är;ìðÈBnptଢନଷ଺reak;æ BreakingSpace;ä f;æÚ;CDEGHLNPRSTVàààªà¼à®¡à¯«à°à±à²à²¦à³àµ¡à¶
櫬Äouàà¤ngruent;æ¢pCap;æoubleVerticalBar;æ¦Ælqxà®à®à®ement;æualÄ;Tà®à®æ ilde;ìâ̸ists;æreaterÎ;EFGLSTஶஷ஽à¯à¯à¯à¯¥æ¯qual;æ±ullEqual;ìâ§Ì¸reater;ìâ«Ì¸ess;æ¹lantEqual;ì⩾̸ilde;æµumpÅ௲௽ownHump;ìâ̸qual;ìâ̸eÄfsà°à°§tTriangleÆ;BEà°à°à°¡æªar;ìâ§Ì¸qual;æ¬sÌ;EGLSTవశ఼à±à±à±æ®qual;æ°reater;æ¸ess;ìâªÌ¸lantEqual;ì⩽̸ilde;æ´estedÄGL౨౹reaterGreater;ì⪢̸essLess;ì⪡̸recedesÆ;ESà²à²à²æqual;ì⪯̸lantEqual;æ ÄeiಫಹverseElement;æghtTriangleÆ;BEà³à³à³æ«ar;ìâ§Ì¸qual;æÄquà³à´uareSuÄbp೨೹setÄ;Eà³°à³³ìâ̸qual;æ¢ersetÄ;Eà´à´ìâ̸qual;æ£Æbcpà´à´¤àµsetÄ;Eà´à´ìââqual;æceedsÈ;ESTà´²à´³à´»àµæqual;ì⪰̸lantEqual;æ¡ilde;ìâ¿Ì¸ersetÄ;Eàµàµìââqual;æildeÈ;EFT൮൯൵ൿæqual;æullEqual;æilde;æerticalBar;æ¤cr;ìð©ildeè»Ãä;äÜEacdfgmoprstuvà¶½à·à·à·à·à· à·§à·¼à¸à¸ ยา฿à¹lig;ä
cuteè»ÃäÄiyà·à·rcè»Ãä;äblac;ä
r;ìðraveè»ÃäÆaei෮ෲ෶cr;ä
ga;ä©cron;äpf;ìðenCurlyÄDQà¸à¸oubleQuote;æuote;æ;æ©Äclวฬr;ìðªashè»ÃäiŬื฼deè»Ãäes;樷mlè»ÃäerÄBPà¹à¹ Äarà¹à¹r;æ¾acÄekà¹à¹;æet;æ´arenthesis;æÒacfhilors๿àºàºàºàºàºàºàº°à»¼rtialD;æy;är;ìði;ä¦;ä usMinus;ä±ÄipຢàºncareplanÃ¥Úf;æÈ;eio຺ູ໠໤檻cedesÈ;ESTà»à»à»à»æºqual;檯lantEqual;æ¼ilde;æ¾me;æ³Ädp໩໮uct;æortionÄ;aȥ໹l;æÄcià¼à¼r;ìð«;ä¨ÈUfosà¼à¼à¼à¼OTè»"ä¢r;ìðpf;æcr;ìð¬ØBEacefhiorsu༾à½à½à½ ཱིྦྷྪà¾áá©á´á¾arr;æ¤Gè»Â®ä®Æcnrà½à½à½ute;ä
g;æ«rÄ;tà½à½æ l;æ¤Æaeyཧཬཱron;ä
dil;ä
;ä Ä;vླྀཹæerseÄEUà¾à¾Älqà¾à¾ement;æuilibrium;æpEquilibrium;楯r»ཹo;ä¡ghtÐACDFTUVaà¿à¿«à¿³á¢á¨ááÏÄnrà¿à¿gleBracket;æ©rowÆ;BLà¿à¿à¿¡æar;æ¥eftArrow;æeiling;æoǵ࿹\0á
bleBracket;æ§nÇá\0áeeVector;æ¥ectorÄ;Bááæar;æ¥loor;æÄerááeÆ;AVáµá¶á¼æ¢rrow;æ¦ector;æ¥iangleÆ;BEáááæ³ar;æ§qual;æµpÆDTVá£á®á¸ownVector;æ¥eeVector;æ¥ectorÄ;Bááæ¾ar;æ¥ectorÄ;Bááæar;æ¥Äpuááf;ændImplies;楰ightarrow;æÄchá¹á¼r;æ;æ±leDelayed;æ§´ÚHOacfhimoqstuá¤á±á·á½ááá
á
á
¡á
§áµá»á¿ÄCcá©á®Hcy;ä©y;ä¨FTcy;ä¬cute;ä
Ê;aeiyáááááæª¼ron;ä
dil;ä
rc;ä
;ä¡r;ìðortÈDLRUáªá´á¾á
ownArrow»ÐeftArrow»à¢ightArrow»à¿pArrow;ægma;ä£allCircle;æpf;ìðɲá
\0\0á
°t;æareÈ;ISUá
ȇ
¼áá¯æ¡ntersection;æuÄbpáásetÄ;Eááæqual;æersetÄ;Eá¨á©æqual;ænion;æcr;ìð®ar;æÈbcmpááááÄ;sááæetÄ;Eááqual;æÄchá á
eedsÈ;ESTáá®á´á¿æ»qual;檰lantEqual;æ½ilde;æ¿Tháà¾;æÆ;esááá£ærsetÄ;Eááæqual;æet»áÖHRSacfhiorsá¾ááááá±á¶ááááORNè»ÃäADE;æ¢ÄHcáácy;äy;ä¦Äbuáá;ä;䤯aeyá¥áªá¯ron;ä
¤dil;ä
¢;ä¢r;ìðÄeiá»áDzá\0áefore;æ´a;äÄcnáákSpace;ìââSpace;ældeÈ;EFTá«á¬á²á¼æ¼qual;æullEqual;æ
ilde;æpf;ìðipleDot;æÄctáár;ìð¯rok;ä
¦à«¡á·ááá¦\0á¬á±\0\0\0\0\0á¸á½á·á
\0á¿áááÄcrá»áuteè»ÃärÄ;oááæcir;æ¥rÇ£á\0áy;äve;ä
¬Äiyáá£rcè»Ãä;ä£blac;ä
°r;ìðraveè»Ãäacr;ä
ªÄdiáá©erÄBPááÄaráár;äacÄekáá;æet;æµarenthesis;æonÄ;Pá°á±ælus;æÄgpá»á¿on;ä
²f;ìðÐADETadpsáá®á¸áϨááá³rrowÆ;BDá
á á¤ar;æ¤ownArrow;æ
ownArrow;æquilibrium;楮eeÄ;Aááæ¥rrow;æ¥ownáϳerÄLRáá¨eftArrow;æightArrow;æiÄ;lá¹áºäon;ä¥ing;ä
®cr;ìð°ilde;ä
¨mlè»ÃäÒDbcdefosvá§á¬á°á³á¾á
áááash;æ«ar;æ««y;äashÄ;lá»á¼æ©;櫦Äeráá
;æÆbtyáááºar;æÄ;iáácalÈBLSTá¡á¥áªá´ar;æ£ine;ä¼eparator;æilde;æThinSpace;ær;ìðpf;ìðcr;ìð±dash;æªÊcefosá§á¬á±á¶á¼irc;ä
´dge;ær;ìðpf;ìðcr;ìð²Èfiosáááár;ìð;äpf;ìðcr;ìð³ÒAIUacfosuá±áµá¹á½ááááá cy;ä¯cy;äcy;ä®cuteè»ÃäÄiyáárc;ä
¶;ä«r;ìðpf;ìðcr;ìð´ml;ä
¸ÐHacdefosáµá¹á¿áááá á¤cy;äcute;ä
¹Äayááron;ä
½;äot;ä
»Ç²á\0áoWidtèà«a;är;æ¨pf;æ¤cr;ìðµà¯¡ááá\0á°á¶á¿\0\0\0\0ááá«áá\0ááá²á¹\0á¾cuteè»Ã¡ä¡reve;äÌ;Ediuyááá¡á£á¨áæ¾;ìâ¾Ì³;æ¿rcè»Ã¢ä¢teè»Â´Ì;ä°ligè»Ã¦ä¦Ä;r²áº;ìðraveè»Ã ä ÄepááÄfpáásym;æµÃ¨áha;ä±ÄapácÄclá¤á§r;äg;樿ɤá°\0\0áÊ;adsváºá»á¿ááæ§nd;æ©;æ©lope;æ©;æ©Î;elmrszááááá¿ááæ ;榤e»ásdÄ;aá¥á¦æ¡Ñ¡á°á²á´á¶á¸áºá¼á¾;榨;榩;榪;榫;榬;æ¦;榮;榯tÄ;vá
áæbÄ;dááæ¾;æ¦Äptááh;æ¢Â»Â¹arr;æ¼Ägpá£á§on;ä
f;ìðÎ;Eaeiopáá»á½áááá;æ©°cir;橯;æd;æs;ä§roxÄ;eááñáingè»Ã¥ä¥Æctyá¡á¦á¨r;ìð¶;äªmpÄ;eáá¯Ã±Êildeè»Ã£ä£mlè»Ã¤ä¤Äciááoninôɲnt;æ¨à Nabcdefiklnoprsuáá±á°á¼ááá¸á½á á¦á ¹á¡á᤽á¥á¥°ot;æ«Äcrá¶ákÈcepsáá
ááong;æpsilon;ä¶rime;æµimÄ;eááæ½q;æÅ¶á¢á¦ee;æ½edÄ;gá¬áæ
e»árkÄ;táá·brk;æ¶Äoyáá;ä±quo;æÊcmprtááá¡á¤á¨ausÄ;eÄÄptyv;榰séánoÃµÄÆahwá¯á±á³;ä²;æ¶een;æ¬r;ìðgÎcostuvwááá³ááááÆaiuáááÃ°Ý rc;æ¯pÂ»á±Ædptá¤á¨áot;æ¨lus;æ¨imes;æ¨É±á¹\0\0á¾cup;æ¨ar;æ
riangleÄduááown;æ½p;æ³plus;æ¨eÃ¥áÃ¥áarow;æ¤Æakoáá ¦á µÄcná²á £kÆlstáºÖ«á ozenge;æ§«riangleÈ;dlrá á á á æ´own;æ¾eft;æight;æ¸k;æ£Æ±á «\0á ³Æ²á ¯\0á ±;æ;æ4;æck;æÄeoá ¾á¡Ä;qá¡á¡ì=â¥uiv;ìâ¡â¥t;æÈptwxá¡á¡á¡§á¡¬f;ìðÄ;táá¡£om»átie;æØDHUVbdhmptuvá¢
á¢á¢ªá¢»á£á£á£¬á£¿á¤
á¤á¤á¤¡ÈLRlrá¢á¢á¢á¢;æ;æ;æ;æÊ;DUduᢡᢢᢤᢦᢨæ;æ¦;æ©;æ¤;æ§ÈLRlrᢳᢵᢷᢹ;æ;æ;æ;æÎ;HLRhlrá£á£á£á£á£á£á£æ;æ¬;æ£;æ ;æ«;æ¢;æox;æ§ÈLRlrᣤᣦᣨᣪ;æ;æ;æ;æÊ;DUduڽ᣷᣹᣻᣽;æ¥;æ¨;æ¬;æ´inus;ælus;æimes;æ ÈLRlrá¤á¤á¤á¤;æ;æ;æ;æÎ;HLRhlrᤰᤱᤳᤵᤷ᤻᤹æ;æª;æ¡;æ;æ¼;æ¤;æÄevÄ£á¥barè»Â¦ä¦Èceioá¥á¥á¥á¥ r;ìð·mi;æmÄ;eáálÆ;bhᥨᥩᥫä;æ§
sub;æÅ¬á¥´á¥¾lÄ;e᥹᥺æ¢t»᥺pÆ;Eeįá¦
á¦;檮Ä;qÛÛೡᦧ\0᧨á¨á¨á¨²\0ᨷá©\0\0᪴\0\0á«\0\0ᬡᬮáá\0᯽\0á°Æcprá¦á¦²á§ute;äÌ;abcdsᦿá§á§á§á§á§æ©nd;æ©rcup;æ©Äauá§á§p;æ©p;æ©ot;æ©;ìâ©ï¸Äeo᧢᧥t;æÃ®ÚÈaeiuá§°á§»á¨á¨
ǰ᧵\0᧸s;æ©on;ädilè»Ã§ä§rc;äpsÄ;sá¨á¨æ©m;æ©ot;äÆdmná¨á¨ ᨦilè»Â¸Æptyv;榲tè¢;eá¨á¨®ä¢räƲr;ìð Æceiᨽá©á©y;äckÄ;má©á©æark»á©;ärÎ;Ecefmsá©á© ᩢᩫ᪤᪪᪮æ;æ§Æ;elᩩᩪá©äq;æeɡᩴ\0\0áªrrowÄlr᩼áªeft;æºight;æ»ÊRSacdáªáªáªáªáªÂ»à½;æst;æirc;æash;ænint;æ¨id;櫯cir;æ§ubsÄ;u᪻᪼æ£it»᪼ˬá«á«á«º\0á¬onÄ;eá«á«äºÄ;qÃÃÉá«\0\0á«¢aÄ;tá«á«ä¬;äÆ;fl᫨᫩᫫æÃ®á
eÄmx᫱᫶ent»᫩eóÉǧ᫾\0á¬Ä;dá»á¬ot;æ©nÃ´ÉÆfryá¬á¬á¬;ìðoäÉè©;sÅá¬r;æÄaoᬥᬩrr;æµss;æÄcuᬲᬷr;ìð¸ÄbpᬼáÄ;eááæ«;æ«Ä;eááæ«;æ«dot;æ¯Îdelprvwá á¬á·á®á®¬á¯á¯¹arrÄlrá¨áª;椸;椵ɰá²\0\0áµr;æc;æarrÄ;pá¿á®æ¶;椽Ì;bcdosá®á®á®á®¡á®¥á®¨æªrcap;æ©Äauá®á®p;æ©p;æ©ot;ær;æ©
;ìâªï¸Èalrv᮵ᮿá¯á¯£rrÄ;mᮼᮽæ·;椼yÆevwá¯á¯á¯qɰá¯\0\0á¯reãá³uãáµee;æedge;æenè»Â¤ä¤earrowÄlrᯮ᯳eft»á®ight»ᮽeäá¯Äciá°á°oninôǷnt;æ±lcty;æà¦AHabcdefhijlorstuwz᰸᰻᰿á±á±©á±µá²á²á²¬á²·á³»á³¿á´áµ»á¶á¶«á¶»á·á·ròÎar;楥Èglrsá±á±á±á±ger;æ eth;æ¸Ã²á³hÄ;vá±á±æÂ»à¤Å«á±¡á±§arow;æ¤aãÌÄayᱮᱳron;ä;ä´Æ;ao̲ᱼá²ÄgrÊ¿á²r;ætseq;æ©·Æglmá²á²á²è»Â°ä°ta;ä´ptyv;榱ÄirᲣᲨsht;楿;ìð¡arÄlrᲳᲵ»à£Â»áÊaegsvá³Í¸á³á³á³ mÆ;oșá³á³ndÄ;șá³uit;æ¦amma;äin;æ²Æ;io᳧᳨᳸ä·deè÷;oá³§á³°ntimes;ænø᳷cy;äcɯá´\0\0á´rn;æop;æÊlptuwá´á´á´¢áµáµlar;ä¤f;ìðÊ;empsÌá´á´·á´½áµqÄ;dÍá´³ot;æinus;æ¸lus;æquare;æ¡blebarwedgåúnÆadhá®áµáµ§ownarrowóá²arpoonÄlrᵲᵶefôᲴighôᲶŢᵿá¶
karo÷à½É¯á¶\0\0á¶rn;æop;æÆcotá¶á¶£á¶¦Äryá¶á¶¡;ìð¹;äl;æ§¶rok;äÄdrá¶°á¶´ot;æ±iÄ;fá¶ºá æ¿Äahá·á·ròЩaòྦangle;榦Äciá·á·y;ägrarr;æ¿à¤Dacdefglmnopqrstuxá¸á¸á¸á¸¸Õ¸á¸¼á¹á¹¡á¹¾áº¥áº¯áº½á»¡á¼ªá¼·á½á½á½ÄDoá¸á´´oôá²Äcsá¸á¸uteè»Ã©ä©ter;æ©®ÈaioyḢḧḱḶron;ärÄ;cá¸á¸®æè»Ãªäªlon;æ;äot;äÄDrá¹á¹
ot;æ;ìð¢Æ;rsá¹á¹á¹æªaveè»Ã¨ä¨Ä;dá¹á¹æªot;æªÈ;ilsṪṫṲṴæªnters;æ§;æÄ;dṹṺæªot;æªÆapsáº
áºáºcr;ätyÆ;sváºáºáºæ
et»áºpÄ1;áºáº¤Ä³áº¡áº£;æ;æ
æÄgsẪẬ;ä
p;æÄgpẴẸon;äf;ìðÆalsá»á»á»rÄ;sá»á»æl;æ§£us;橱iÆ;lvá»á»á»äµon»á»;äµÈcsuvỪỳá¼á¼£Äioữḱrc»Ḯɩỹ\0\0á»»ÃÕantÄglá¼á¼tr»á¹ess»ṺÆaeiá¼á¼á¼ls;ä½st;ævÄ;DȵἠD;橸parsl;æ§¥ÄDaἯἳot;ærr;楱Æcdiá¼¾á½á»¸r;æ¯oôÍÄahá½á½;ä·è»Ã°ä°Ämrá½á½lè»Ã«ä«o;æ¬Æcipὡὤὧl;ä¡sôծÄeoὬὴctatioîÕnentialåչৡá¾\0á¾\0ᾡᾧ\0\0á¿á¿\0á¿\0ῦῪâ\0ââllingdotseñá¹y;ämale;æÆilrá¾á¾³á¿lig;èï¬É©á¾¹\0\0á¾½g;èï¬ig;èï¬;ìð£lig;èï¬lig;ìfjÆaltá¿á¿á¿¡t;æig;èï¬ns;æ±of;äǰ΅\0ῳf;ìðÄakÖ¿á¿·Ä;vῼ´æ;æ«artint;æ¨ÄaoââÄcsââαââ°â¸â
â\0âβâ¢â¥â§âªâ¬\0â®è»Â½ä½;æ
è»Â¼ä¼;æ
;æ
;æ
Ƴâ´\0â¶;æ
;æ
Ê´â¾â\0\0âè»Â¾ä¾;æ
;æ
5;æ
ƶâ\0â;æ
;æ
8;æ
l;æwn;æ¢cr;ìð»à¢Eabcdefgijlnorstvââââ¥â°â´â°âµâºâ¿âââ¸Ìâ¾â
âÄ;lÙâ;æªÆcmpâââute;äµmaÄ;dâá³ä³;æªreve;äÄiyâªâ®rc;ä;ä³ot;ä¡È;lqsؾÙâ½âÆ;qsؾÙâlanô٥È;cdlÙ¥âââ¥c;檩otÄ;oââæªÄ;lâ¢â£æª;æªÄ;eâªâìâï¸s;æªr;ìð¤Ä;gÙ³Ømel;æ·cy;äÈ;EajÙâââ;æª;檥;檤ÈEaesâââ©â´;æ©pÄ;pâ£â¤æªrox»â¤Ä;qâ®â¯æªÄ;qâ®âim;æ§pf;ìðÄciâ
â
r;æmÆ;elÙ«â
â
;æª;æªè>;cdlqr×®â
â
ªâ
®â
³â
¹Äciâ
¥â
§;檧r;橺ot;æPar;æ¦uest;橼Êadelsââ
ªâÙâǰâ\0âproøâr;楸qÄlqØ¿âlesóâiÃÙ«Äenâ£ârtneqq;ìâ©ï¸Ã
âªÔAabcefkosyâââ±âµâºâââ¯â¨â½ròΠÈilmrâââârsðáf»â¤ilôکÄdrâ â¤cy;äÆ;cwࣴâ«â¯ir;æ¥;æar;æirc;䥯alrââârtsÄ;uââæ¥it»âlip;æ¦con;æ¹r;ìð¥sÄewâ£â©arow;椥arow;椦Êamoprâºâ¾âââ£rr;æ¿tht;æ»kÄlrââeftarrow;æ©ightarrow;æªf;ìðbar;æÆcltâ¯â´â¸r;ìð½asèâ´rok;ä§Äbpââull;æhen»á±à«¡â£\0âª\0â¸â
â\0ââ³\0\0â¸â¢â§â¢â¿\0ââªâ´cuteè»ÃäÆ;iyݱâ°âµrcè»Ã®ä®;ä¸Äcxâ¼â¿y;äµclè»Â¡ä¡ÄfrÎâ;ìð¦raveè»Ã¬ä¬È;inoܾââ©â®Äinâ¢â¦nt;æ¨t;æfin;æ§ta;æ©lig;䳯aopâ¾ââÆcgtâ
ââr;䫯elpÜââinÃ¥ÞarÃ´Ü h;ä±f;æ·ed;äµÊ;cfotÓ´â¬â±â½âare;æ
inÄ;tâ¸â¹æie;æ§doôâÊ;celpÝââââ¡al;æºÄgrââeróá£Ã£âarhk;æ¨rod;樼Ècgptâ¯â²â¶â»y;äon;ä¯f;ìða;ä¹uestè»Â¿ä¿Äciââr;ìð¾nÊ;EdsvÓ´âââ¡Ó³;æ¹ot;æµÄ;vâ¦â§æ´;æ³Ä;iÝ·â®lde;ä©Ç«â¸\0â¼cy;älè»Ã¯ä¯Ìcfmosuââââ¡â§âµÄiyâârc;äµ;ä¹r;ìð§ath;ä·pf;ìðÇ£â¬\0â±r;ìð¿rcy;äkcy;äÐacfghjosâââ¢â§ââ±âµâ»ppaÄ;vââäº;ä°Äeyââ dil;ä·;äºr;ìð¨reen;ä¸cy;ä
cy;äpf;ìðcr;ìðà®ABEHabcdefghjlmnoprstuvâ°ââââââ½âââââ¥â¹â½ââ²âââ¨âââ â Æartâ·âºâ¼ròà§Ã²Îail;æ¤arr;æ¤Ä;gà¦â;æªar;楢ॣâ¥\0âª\0â±\0\0\0\0\0âµâº\0âââ\0â¹ute;äºmptyv;榴raîà¡bda;ä»gÆ;dlà¢ââ;æ¦Ã¥à¢;æª
uoè»Â«ä«rÐ;bfhlpstà¢ââ¦â©â«â®â±âµÄ;fà¢â£s;æ¤s;æ¤Ã«âp;æ«l;椹im;楳l;æ¢Æ;aeâ¿ââæª«il;æ¤Ä;sââæª;ìâªï¸Æabrââârr;æ¤rk;æ²Äakâ¢â¬cÄekâ¨âª;ä»;äÄesâ±â³;æ¦lÄduâ¹â»;æ¦;æ¦Èaeuyââââron;ä¾Ädiââil;ä¼Ã¬à¢°Ã¢â©;
vendor: 4,294 bytes, line 280
280ä»Ècqrsâ£â¦ââ½a;椶uoÄ;rà¸áÄduâ²â·har;楧shar;æ¥h;æ²Ê;fgqsââà¦â³â¿æ¤tÊahlrtââ¤â·ââ¨rrowÄ;tà¢â¡aéâ¶arpoonÄduâ¯â´own»Ñp»०eftarrows;æightÆahsââârrowÄ;sࣴࢧarpoonóà¾quigarro÷â°hreetimes;æÆ;qsâà¦âºlanôবÊ;cdgsবââââ¨c;檨otÄ;oââæ©¿Ä;rââæª;æªÄ;eâ¢â¥ìâï¸s;æªÊadegsâ³â¹â½ââpproøâot;æqÄgqââ
ôà¦gtòâôà¦iÃলÆilrâ࣡âsht;楼;ìð©Ä;Eà¦â£;æªÅ¡â©â¶rÄduâ²â®Ä;l॥â³;楪lk;æcy;äÊ;achtà©ââââròâorneòá´ard;楫ri;æºÄioââ¤dot;ä
ustÄ;aâ¬âæ°che»âÈEaesâ»â½ââ;æ¨pÄ;pââæªrox»âÄ;qââæªÄ;qââ»im;æ¦Ðabnoptwzâ©â´â·ââ¯âââÄnrâ®â±g;æ¬r;æ½rëà£gÆlmrâ¿ââeftÄar০âightá৲apsto;æ¼ightá৽parrowÄlrâ¥â©efôâight;æ¬Æaflâ¶â¹â½r;æ¦
;ìðus;æ¨imes;樴šââst;æÃ¡áÆ;efââá ænge»âarÄ;lâ¤â¥ä¨t;æ¦Êachmtâ³â¶â¼â
âròࢨorneòá¶arÄ;dà¾â;æ¥;æri;æ¿Ìachiqtââà©â¢â®â»quo;æ¹r;ìðmÆ;egলâªâ¬;æª;æªÄbuâªâ³oÄ;rà¸â¹;ærok;ä
è<;cdhilqrà «ââ¹ââ â¥âªâ°Äciââ;檦r;橹reÃ¥â²mes;æarr;楶uest;æ©»ÄPiâµâ¹ar;æ¦Æ;efâ à¤á ærÄduâ â shar;æ¥har;楦Äenâ â ¡rtneqq;ìâ¨ï¸Ã
â ÜDacdefhilnopsuâ¡â¡
â¢â¢â¢â¢ ⢥⢨â£â£¢â£¤àªâ£³â¤Dot;æºÈclprâ¡â¡â¡£â¡½rè»Â¯ä¯Äetâ¡â¡;æÄ;eâ¡â¡æ se»â¡Ä;sá»â¡¨toÈ;dluá»â¡³â¡·â¡»owîÒefôà¤Ã°áker;æ®Äoyâ¢â¢mma;権;ä¼ash;æasuredangle»á¦r;ìðªo;æ§Æcdn⢯⢴â£roè»ÂµäµÈ;acdá¤â¢½â£â£sôá§ir;æ«°otè»Â·ÆµusÆ;bdâ£á¤â£æÄ;uá´¼â£;横ţâ£â£¡p;æ«Ã²âðàªÄdp⣩⣮els;æ§f;ìðÄct⣸⣽r;ìðpos»áÆ;lmâ¤â¤â¤ä¼timap;æ¸à°GLRVabcdefghijlmoprstuvwâ¥â¥â¥¾â¦â¦â§â§©â¨â¨â©â©âªâªâª¤âª¨â¬â¬ââ¿â®®â°´â±§â±¼â³©Ägtâ¥â¥;ìâ̸Ä;vâ¥à¯ìâ«âÆeltâ¥â¥²â¥¶ftÄar⥡⥧rrow;æightarrow;æ;ìâ̸Ä;v⥻à±ìâªâightarrow;æÄDdâ¦â¦ash;æ¯ash;æ®Êbcnpt⦣⦧⦬⦱â§la»Ëute;ä
g;ìâ âÊ;Eiopà¶â¦¼â§â§
â§;ì⩰̸d;ìâ̸s;ä
roøà¶urÄ;aâ§â§æ®lÄ;sâ§à¬¸Ç³â§\0â§£pè»Â ଷmpÄ;e௹à°Êaeouyâ§´â§¾â¨â¨â¨Ç°â§¹\0â§»;æ©on;ä
dil;ä
ngÄ;dൾâ¨ot;ìâ©Ì¸p;æ©;ä½ash;æÎ;Aadqsxà®â¨©â¨â¨»â©â©
â©rr;ærÄhr⨳⨶k;椤Ä;oá²á°ot;ìâ̸uiöà£Äeiâ©â©ar;椨Ãà®istÄ;sà® à®r;ìð«ÈEestà¯
⩦⩹⩼Æ;qs஼â©à¯¡Æ;qs஼à¯
â©´lanô௢iÃ௪Ä;rà®¶âªÂ»à®·ÆAapâªâªâªrò⥱rr;æ®ar;櫲Æ;svà¾âªà¾Ä;d⪡⪢æ¼;æºcy;äÎAEadest⪷⪺⪾â«â«
⫶⫹rò⥦;ìâ¦Ì¸rr;ær;æ¥È;fqsà°»â«â«£â«¯tÄarâ«â«rro÷â«ightarroÃ·âªÆ;qs఻⪺⫪lanôà±Ä;sà±â«´Â»à°¶iÃà±Ä;rవ⫾iÄ;eà°à°¥iäà¶Äptâ¬â¬f;ìðè¬;inâ¬â¬â¬¶ä¬nÈ;Edvà®â¬¤â¬¨â¬®;ìâ¹Ì¸ot;ìâµÌ¸Ç¡à®â¬³â¬µ;æ·;æ¶iÄ;vಸ⬼ǡಸââ;æ¾;æ½Æaorââ£â©rÈ;astà»âââlleìà»l;ì⫽â¥;ìâ̸lint;æ¨Æ;ceà²â°â³uåಥÄ;cà²â¸Ä;eà²â½Ã±à²ÈAaitâ®â®â®â®§ròâ¦rrÆ;cwâ®â®â®æ;ì⤳̸;ìâ̸ghtarrow»â®riÄ;eà³à³Îchimpqu⮽â¯â¯â¬à¸â¯¤â¯¯È;cerà´²â¯à´·â¯uÃ¥àµ
;ìðortÉâ¬
\0\0â¯aráâmÄ;e൮â¯Ä;q൴൳suÄbp⯫â¯Ã¥à³¸Ã¥à´Æbcp⯶â°â°È;Ees⯿â°à´¢â°æ;ìâ«
̸etÄ;eà´â°qÄ;qà´£â°cÄ;eà´²â°Ã±à´¸È;EesⰢⰣàµâ°§æ
;ìâ«Ì¸etÄ;eàµâ°®qÄ;qൠⰣÈgilrⰽⰿâ±
â±Ã¬à¯ldeè»Ã±ä±Ã§à±iangleÄlrâ±â±eftÄ;eà°â±Ã±à°¦ightÄ;eà³â±¥Ã±à³Ä;mⱬâ±ä½Æ;esⱴⱵⱹä£ro;æp;æÒDHadgilrsâ²â²â²â²â²£â²°â²¶â³â³£ash;æarr;æ¤p;ìââash;æ¬ÄetⲨⲬ;ìâ¥â;ì>ânfin;æ§ÆAetâ²½â³â³
rr;æ¤;ìâ¤âÄ;râ³â³ì<âie;ìâ´âÄAtâ³â³rr;æ¤rie;ìâµâim;ìâ¼âÆAanâ³°â³´â´rr;ærÄhr⳺⳽k;椣Ä;oá§á¥ear;椧ááª\0\0\0\0\0\0\0\0\0\0\0\0\0â´\0â´¸âµâµ ⵥ⵲â¶á¬\0\0â¶â¶«\0â·â·\0â·â¸â¸«â¸¾â¹Äcsâ´±áªuteè»Ã³ä³Äiyâ´¼âµ
rÄ;cáªâµè»Ã´ä´;ä¾Êabios᪠âµâµÇâµlac;ä
v;樸old;榼lig;ä
Äcr⵩âµir;榿;ìð¬Í¯âµ¹\0\0âµ¼\0â¶n;äaveè»Ã²ä²;æ§Äbmâ¶à·´ar;榵Èacitâ¶â¶â¶¥â¶¨ròáªÄirâ¶â¶ r;榾oss;榻nÃ¥à¹;æ§Æaeiⶱⶵⶹcr;ä
ga;äÆcdnâ·â·
Çron;ä¿;榶pf;ìð Æaelâ·â·Çr;榷rp;榹Î;adiosvⷪⷫⷮâ¸â¸â¸â¸æ¨ròáªÈ;efmâ··â·¸â¸â¸
æ©rÄ;oⷾⷿæ´f»ⷿè»Âªäªè»Âºäºgof;æ¶r;æ©lope;æ©;æ©Æcloâ¸â¸¡â¸§Ã²â¸ashè»Ã¸ä¸l;æiŬⸯ⸴deè»ÃµäµesÄ;aÇ⸺s;樶mlè»Ã¶ä¶bar;æ½à«¡â¹\0â¹½\0âºâº\0⺢⺹\0\0â»àº\0â¼\0\0⼫⾼\0â¿rÈ;
vendor: 6,210 bytes, line 280
280astÐâ¹§â¹²àº
è¶;lâ¹â¹®ä¶leìÐɩ⹸\0\0â¹»m;櫳;櫽y;ä¿rÊcimptâºâºâºá¡¥âºnt;ä¥od;ä®il;æ°enk;æ±r;ìðÆimo⺨⺰⺴Ä;vâºâº®ä;ämaô੶ne;æÆ;tv⺿â»â»ächfork»´;äÄauâ»â»nÄckâ»â»kÄ;hâ´â»;æÃ¶â´sÒ;abcdemst⻳⻴á¤â»¹â»½â¼â¼â¼â¼ä«cir;樣ir;樢Äouáµâ¼;樥;橲nè»Â±àºim;樦wo;樧Æipuâ¼â¼ â¼¥ntint;æ¨f;ìð¡ndè»Â£ä£Ô;Eaceinosuà»â¼¿â½â½â½â¾â¾â¾â½¾â¾¶;檳p;檷uÃ¥à»Ä;cà»â½Ì;acensà»â½â½â½¦â½¨â½¾pproøâ½urlyeñà»Ã±à»Æaes⽯⽶⽺pprox;檹qq;檵im;æ¨iÃà»meÄ;sâ¾àº®æ²ÆEas⽸â¾â½ºÃ°â½µÆdfp໬â¾â¾¯Æals⾠⾥⾪lar;æ®ine;æurf;æÄ;t໻⾴ï໻rel;æ°Äciâ¿â¿
r;ìð
;äncsp;æÌfiopsuâ¿â¢â¿â¿¥â¿«â¿±r;ìð®pf;ìð¢rime;æcr;ìðÆaeo⿸ããtÄei⿾ã
rnionóڰnt;æ¨stÄ;eããä¿Ã±á¼Ã´à¼àªABHabcdefhilmnoprstuxããããã ãã«ã
ã
¢ã
²ãããã¤ã©ãã®ã²ãã°ã·Æartãããròá³Ã²Ïail;æ¤aròᱥar;楤Îcdenqrtã¨ãµã¸ã¿ãããÄeuãã±;ìâ½Ì±te;ä
iãá
®mptyv;榳gÈ;delà¿ããã;æ¦;榥åà¿uoè»Â»ä»rÖ;abcfhlpstwà¿ã¬ã¯ã·ã¹ã¼ã¾ããããp;極Ä;fà¿ ã´s;æ¤ ;椳s;æ¤Ã«âðâ®l;æ¥
im;楴l;æ£;æÄaiããil;æ¤oÄ;nããæ¶alÃ³à¼Æabrã§ãªã®ròá¥rk;æ³Äakã³ã½cÄekã¹ã»;ä½;äÄesãã;æ¦lÄduãã;æ¦;æ¦Èaeuyããã§ã©ron;ä
Ädiã¡ã¥il;ä
ì࿲âãº;äÈclqsã´ã·ã½ã
a;椷dhar;楩uoÄ;rÈÈh;æ³Æacgã
ã
à½lÈ;ipsླྀã
ã
ánÃ¥á»arôྩt;æÆilrã
©á£ã
®sht;楽;ìð¯Äaoã
·ãrÄduã
½ã
¿Â»Ñ»Ä;láã;楬Ä;vããä;䱯gnsãã¹ã¼htÌahlrstã¤ã°ããã¤ã®rrowÄ;tà¿ãaéãarpoonÄduã»ã¿owîã
¾p»áeftÄahããrrowó࿪arpoonóÕightarrows;æquigarro÷ãhreetimes;æg;äingdotseñἲÆahmãããrò࿪aòÕ;æoustÄ;aããæ±che»ãmid;æ«®Èabptã²ã½ããÄnrã·ãºg;ær;æ¾rëáÆaflãããr;æ¦;ìð£us;樮imes;樵Äapãã§rÄ;gã£ã¤ä©t;æ¦olint;æ¨aròã£Èachqã»ãá¼ã
quo;æºr;ìðÄbuã»ãoÄ;rÈÈÆhirããã reÃ¥ã¸mes;æiÈ;eflãªáá ¡ã«æ¹tri;æ§luhar;楨;æàµ¡ãããã¬ã¸ã±\0ãºã¤\0\0ã¬ã°\0ã¨ãããã±ãã±\0ã\0\0ã³cute;ä
quïâºÔ;Eaceinpsyáã³ãµã¿ããããã¦ã©;檴ǰãº\0ã¼;檸on;ä
¡uÃ¥á¾Ä;dá³ãil;ä
rc;ä
ÆEasããã;檶p;檺im;æ©olint;æ¨iÃá;äotÆ;beã´áµãµæ
;橦ÎAacmstxãããããã£ãrr;ærÄhrããëâ¨Ä;oਸ਼਴tè»Â§ä§i;ä»war;椩mÄinã©Ã°nuóñt;æ¶rÄ;oã¶âìð°Èacoyãããã rp;æ¯Ähyããcy;ä;ärtÉã\0\0ãiäá¤araì⹯è»ÂäÄgmã¨ã´maÆ;fvã±ã²ã²ä;äÐ;deglnprá«ã
ããããã¡ã¦ot;橪Ä;qá±á°Ä;Eããæª;æª Ä;Eããæª;æªe;ælus;樤arr;楲aròá½Èaeitã¸ãããÄlsã½ãlsetméãªhp;樳parsl;槤Ädlá£ãe;æ£Ä;eããæªªÄ;sã¢ã£æª¬;ìâª¬ï¸Æflpã®ã³ãtcy;äÄ;bã¸ã¹ä¯Ä;aã¾ã¿æ§r;æ¿f;ìð¤aÄdrãÐesÄ;uããæ it»ãÆcsuã ã¹ãÄauã¥ã¯pÄ;sáã«;ìâï¸pÄ;sá´ãµ;ìâï¸uÄbpã¿ãÆ;esááãetÄ;eáãñáÆ;esá¨áãetÄ;eá¨ãÃ±á®Æ;afá
»ã¦Ö°rÅ¥ã«Ö±Â»á
¼aròá
Ècemtã¹ã¾ãã
r;ìðtmîñiìãaræá¾ÄarããrÄ;fãá¿æÄanããightÄepã£ãªpsiloîỠhé⺯s»â¡Êbcmnpã»ãáããÒ;Edemnprsãããããã£ã¬ã±ã¶æ;æ«
ot;檽Ä;dáãot;æ«ult;æ«ÄEeã¨ãª;æ«;ælus;檿arr;楹Æeiuã½ããtÆ;enãã
ãqÄ;qáãeqÄ;qã«ã¨m;æ«Äbpãã;æ«;æ«cÌ;acensáã¬ã²ã¹ã»ã¦pproøãºurlyeñá¾Ã±á³Æaesãããpproøãqñãg;æªÚ123;Edehlmnpsã©ã¬ã¯áã²ã´ãããããã¨ãè»Â¹ä¹è»Â²ä²è»Â³ä³;æ«Äosã¹ã¼t;檾ub;æ«Ä;dá¢ã
ot;æ«sÄouããl;æb;æ«arr;楻ult;æ«ÄEeã¤ã¦;æ«;ælus;æ«Æeiuã´ããtÆ;enáã¼ãqÄ;qá¢ã²eqÄ;qã§ã¤m;æ«Äbpãã;æ«;æ«ÆAanãã ãrr;ærÄhrã¦ã¨Ã«â®Ä;oਫ਩war;椪ligè»Ãä௡ããã áã³ã¹\0ã¾ã\0\0\0\0\0ãã\0ãã¬\0\0\0ãɲã\0\0ãget;æ;ärÃ«à¹Æaeyã¦ã«ã°ron;ä
¥dil;ä
£;älrec;ær;ìð±Èeikoãããµã¼Ç²ã\0ãeÄ4fááaÆ;svãããä¸ym;äÄcnã¢ã²kÄasã¨ã®pproøáim»á¬sðáÄasãºã®Ã°árnè»Ã¾ä¾Ç¬Ìãâ§esèÃ;bdãããäÄ;aá¤ãr;樱;樰Æepsã¡ã£ãáâ©È;bcfÒã¬ã°ã´ot;æ¶ir;櫱Ä;oã¹ã¼ìð¥rk;æ«Ã¡ã¢rime;æ´Æaipããã¤dÃ¥áÎadempstã¡ããããããngleÊ;dlqrã°ã±ã¶ããæµown»ᶻeftÄ;eâ ã¾Ã±à¤®;æightÄ;eãªãñáot;æ¬inus;樺lus;樹b;æ§ime;樻ezium;æ¢Æchtã²ã½ãÄryã·ã»;ìð;äcy;ärok;ä
§Äioããxôá·headÄlrãã eftarro÷à¡ightarrow»à½à¤AHabcdfghlmoprstuwãããã¤ã°ã¼ã ã 㠣㠴ã¡ã¡ã¡«ã¢©ã£ã£ã£ªã£¶ròÏar;楣Äcrãã¢uteè»ÃºäºÃ²á
rÇ£ãª\0ãy;äve;ä
Äiyãµãºrcè»Ã»ä»;äÆabhã ã ã ròálac;ä
±aòáÄirã ã sht;楾;ìð²raveè»Ã¹ä¹Å¡ã §ã ±rÄlr㠬㠮»à¥Â»álk;æÄctã ¹ã¡É¯ã ¿\0\0ã¡rnÄ;eã¡
ã¡ær»ã¡op;æri;æ¸Äalã¡ã¡cr;ä
«è»Â¨ÍÄgp㡢㡦on;ä
³f;ìð¦Ìadhlsuá
㡸㡽á²ã¢ã¢ ownáá³arpoonÄlrã¢ã¢efôã ighô㠯iÆ;hlã¢ã¢ã¢ä
»áºon»ã¢parrows;æÆcit㢰ã£ã£É¯ã¢¶\0\0ã£rnÄ;e㢼㢽ær»㢽op;æng;ä
¯ri;æ¹cr;ìðÆdirã£ã£ã£¢ot;æ°lde;ä
©iÄ;fã°ã£¨Â»á Äam㣯㣲rò㢨lè»Ã¼ä¼angle;榧ÞABDacdeflnoprszã¤ã¤ã¤©ã¤ã¦µã¦¸ã¦½ã§ã§¤ã§¨ã§³ã§¹ã§½ã¨ã¨ ròϷarÄ;v㤦㤧櫨;æ«©asèϡÄnr㤲㤷grt;æ¦Îeknprstã£ã¥ã¥ã¥ã¥ã¥¤ã¦appáâothinÃ§áºÆhirã«â»ã¥opô⾵Ä;há·ã¥¢Ã¯ãÄiu㥩ã¥gmáã³Äbp㥲ã¦setneqÄ;q㥽ã¦ìâï¸;ìâ«ï¸setneqÄ;qã¦ã¦ìâï¸;ìâ«ï¸Ährã¦ã¦etáãiangleÄlr㦪㦯eft»थight»áy;ä²ashÂ»á¶Æelrã§ã§ã§Æ;beâ·ªã§ã§ar;æ»q;ælip;æ®Äbtã§á¨aòá©r;ìð³tré㦮suÄbp㧯㧱»à´Â»àµpf;ìð§roð໻tré㦴Äcuã¨ã¨r;ìðÄbpã¨ã¨nÄEeã¦ã¨Â»ã¥¾nÄEeã¦ã¨Â»ã¦igzag;æ¦Îcefoprs㨶㨻ã©ã©ã©ã©¡ã©ªirc;ä
µÄdiã©ã©Äbgã©
ã©ar;æ©eÄ;qáºã©;æerp;ær;ìð´pf;ìð¨Ä;eá¹ã©¦atèá¹cr;ìðà«£áãª\0ãª\0ãªãª\0\0ãªãª¨ãª«ãª¯\0\0ã«ã«\0ã«áátréár;ìðµÄAaãªãªròÏrò৶;ä¾ÄAa㪡㪤ròθrò৫aðâis;æ»Ædptá¤ãªµãª¾Äfl㪺á©;ìð©imÃ¥á²ÄAaã«ã«ròÏròà¨Äcqã«á¸r;ìðÄptáã«réáÐacefiosu㫰㫽ã¬ã¬ã¬ã¬ã¬ã¬¡cÄuyã«¶ã«»teè»Ã½ä½;äÄiyã¬ã¬rc;ä
·;änè»Â¥ä¥r;ìð¶cy;äpf;ìðªcr;ìðÄcm㬦㬩y;älè»Ã¿ä¿Ôacdefhioswããããã¤ã©ãã´ãºã®cute;ä
ºÄayããron;ä
¾;ä·ot;ä
¼Äetãã¡træáa;ä¶r;ìð·cy;ä¶grarr;æpf;ìð«cr;ìðÄjnã®
ã®;æj;æ
280'.split("").map(e=>e.charCodeAt(0))),m$=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function g$(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=m$.get(e))!==null&&t!==void 0?t:e}var Ht;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Ht||(Ht={}));const y$=32;var Is;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Is||(Is={}));function F0(e){return e>=Ht.ZERO&&e<=Ht.NINE}function b$(e){return e>=Ht.UPPER_A&&e<=Ht.UPPER_F||e>=Ht.LOWER_A&&e<=Ht.LOWER_F}function _$(e){return e>=Ht.UPPER_A&&e<=Ht.UPPER_Z||e>=Ht.LOWER_A&&e<=Ht.LOWER_Z||F0(e)}function v$(e){return e===Ht.EQUALS||_$(e)}var Ft;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Ft||(Ft={}));var Oi;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Oi||(Oi={}));class x${constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Ft.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Oi.Strict}startEntity(t){this.decodeMode=t,this.state=Ft.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Ft.EntityStart:return t.charCodeAt(n)===Ht.NUM?(this.state=Ft.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Ft.NamedEntity,this.stateNamedEntity(t,n));case Ft.NumericStart:return this.stateNumericStart(t,n);case Ft.NumericDecimal:return this.stateNumericDecimal(t,n);case Ft.NumericHex:return this.stateNumericHex(t,n);case Ft.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|y$)===Ht.LOWER_X?(this.state=Ft.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Ft.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const s=r-n;this.result=this.result*Math.pow(i,s)+Number.parseInt(t.substr(n,s),i),this.consumed+=s}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(F0(i)||b$(i))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(F0(i))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Ht.SEMI)this.consumed+=1;else if(this.decodeMode===Oi.Strict)return 0;return this.emitCodePoint(g$(this.result),this.consumed),this.errors&&(t!==Ht.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let i=r[this.treeIndex],s=(i&Is.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const a=t.charCodeAt(n);if(this.treeIndex=E$(r,i,this.treeIndex+Math.max(1,s),a),this.treeIndex<0)return this.result===0||this.decodeMode===Oi.Attribute&&(s===0||v$(a))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],s=(i&Is.VALUE_LENGTH)>>14,s!==0){if(a===Ht.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==Oi.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&Is.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~Is.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;
vendor: 66,754 bytes, line 280
280switch(this.state){case Ft.NamedEntity:return this.result!==0&&(this.decodeMode!==Oi.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Ft.NumericDecimal:return this.emitNumericEntity(0,2);case Ft.NumericHex:return this.emitNumericEntity(0,3);case Ft.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Ft.EntityStart:return 0}}}function E$(e,t,n,r){const i=(t&Is.BRANCH_LENGTH)>>7,s=t&Is.JUMP_TABLE;if(i===0)return s!==0&&r===s?n:-1;if(s){const u=r-s;return u<0||u>=i?-1:e[n+u]-1}let a=n,l=a+i-1;for(;a<=l;){const u=a+l>>>1,h=e[u];if(h<r)a=u+1;else if(h>r)l=u-1;else return e[u+i]}return-1}var ne;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(ne||(ne={}));var Do;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Do||(Do={}));var ur;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(ur||(ur={}));var q;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(q||(q={}));var b;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(b||(b={}));const w$=new Map([[q.A,b.A],[q.ADDRESS,b.ADDRESS],[q.ANNOTATION_XML,b.ANNOTATION_XML],[q.APPLET,b.APPLET],[q.AREA,b.AREA],[q.ARTICLE,b.ARTICLE],[q.ASIDE,b.ASIDE],[q.B,b.B],[q.BASE,b.BASE],[q.BASEFONT,b.BASEFONT],[q.BGSOUND,b.BGSOUND],[q.BIG,b.BIG],[q.BLOCKQUOTE,b.BLOCKQUOTE],[q.BODY,b.BODY],[q.BR,b.BR],[q.BUTTON,b.BUTTON],[q.CAPTION,b.CAPTION],[q.CENTER,b.CENTER],[q.CODE,b.CODE],[q.COL,b.COL],[q.COLGROUP,b.COLGROUP],[q.DD,b.DD],[q.DESC,b.DESC],[q.DETAILS,b.DETAILS],[q.DIALOG,b.DIALOG],[q.DIR,b.DIR],[q.DIV,b.DIV],[q.DL,b.DL],[q.DT,b.DT],[q.EM,b.EM],[q.EMBED,b.EMBED],[q.FIELDSET,b.FIELDSET],[q.FIGCAPTION,b.FIGCAPTION],[q.FIGURE,b.FIGURE],[q.FONT,b.FONT],[q.FOOTER,b.FOOTER],[q.FOREIGN_OBJECT,b.FOREIGN_OBJECT],[q.FORM,b.FORM],[q.FRAME,b.FRAME],[q.FRAMESET,b.FRAMESET],[q.H1,b.H1],[q.H2,b.H2],[q.H3,b.H3],[q.H4,b.H4],[q.H5,b.H5],[q.H6,b.H6],[q.HEAD,b.HEAD],[q.HEADER,b.HEADER],[q.HGROUP,b.HGROUP],[q.HR,b.HR],[q.HTML,b.HTML],[q.I,b.I],[q.IMG,b.IMG],[q.IMAGE,b.IMAGE],[q.INPUT,b.INPUT],[q.IFRAME,b.IFRAME],[q.KEYGEN,b.KEYGEN],[q.LABEL,b.LABEL],[q.LI,b.LI],[q.LINK,b.LINK],[q.LISTING,b.LISTING],[q.MAIN,b.MAIN],[q.MALIGNMARK,b.MALIGNMARK],[q.MARQUEE,b.MARQUEE],[q.MATH,b.MATH],[q.MENU,b.MENU],[q.META,b.META],[q.MGLYPH,b.MGLYPH],[q.MI,b.MI],[q.MO,b.MO],[q.MN,b.MN],[q.MS,b.MS],[q.MTEXT,b.MTEXT],[q.NAV,b.NAV],[q.NOBR,b.NOBR],[q.NOFRAMES,b.NOFRAMES],[q.NOEMBED,b.NOEMBED],[q.NOSCRIPT,b.NOSCRIPT],[q.OBJECT,b.OBJECT],[q.OL,b.OL],[q.OPTGROUP,b.OPTGROUP],[q.OPTION,b.OPTION],[q.P,b.P],[q.PARAM,b.PARAM],[q.PLAINTEXT,b.PLAINTEXT],[q.PRE,b.PRE],[q.RB,b.RB],[q.RP,b.RP],[q.RT,b.RT],[q.RTC,b.RTC],[q.RUBY,b.RUBY],[q.S,b.S],[q.SCRIPT,b.SCRIPT],[q.SEARCH,b.SEARCH],[q.SECTION,b.SECTION],[q.SELECT,b.SELECT],[q.SOURCE,b.SOURCE],[q.SMALL,b.SMALL],[q.SPAN,b.SPAN],[q.STRIKE,b.STRIKE],[q.STRONG,b.STRONG],[q.STYLE,b.STYLE],[q.SUB,b.SUB],[q.SUMMARY,b.SUMMARY],[q.SUP,b.SUP],[q.TABLE,b.TABLE],[q.TBODY,b.TBODY],[q.TEMPLATE,b.TEMPLATE],[q.TEXTAREA,b.TEXTAREA],[q.TFOOT,b.TFOOT],[q.TD,b.TD],[q.TH,b.TH],[q.THEAD,b.THEAD],[q.TITLE,b.TITLE],[q.TR,b.TR],[q.TRACK,b.TRACK],[q.TT,b.TT],[q.U,b.U],[q.UL,b.UL],[q.SVG,b.SVG],[q.VAR,b.VAR],[q.WBR,b.WBR],[q.XMP,b.XMP]]);function Ll(e){var t;return(t=w$.get(e))!==null&&t!==void 0?t:b.UNKNOWN}const re=b,T$={[ne.HTML]:new Set([re.ADDRESS,re.APPLET,re.AREA,re.ARTICLE,re.ASIDE,re.BASE,re.BASEFONT,re.BGSOUND,re.BLOCKQUOTE,re.BODY,re.BR,re.BUTTON,re.CAPTION,re.CENTER,re.COL,re.COLGROUP,re.DD,re.DETAILS,re.DIR,re.DIV,re.DL,re.DT,re.EMBED,re.FIELDSET,re.FIGCAPTION,re.FIGURE,re.FOOTER,re.FORM,re.FRAME,re.FRAMESET,re.H1,re.H2,re.H3,re.H4,re.H5,re.H6,re.HEAD,re.HEADER,re.HGROUP,re.HR,re.HTML,re.IFRAME,re.IMG,re.INPUT,re.LI,re.LINK,re.LISTING,re.MAIN,re.MARQUEE,re.MENU,re.META,re.NAV,re.NOEMBED,re.NOFRAMES,re.NOSCRIPT,re.OBJECT,re.OL,re.P,re.PARAM,re.PLAINTEXT,re.PRE,re.SCRIPT,re.SECTION,re.SELECT,re.SOURCE,re.STYLE,re.SUMMARY,re.TABLE,re.TBODY,re.TD,re.TEMPLATE,re.TEXTAREA,re.TFOOT,re.TH,re.THEAD,re.TITLE,re.TR,re.TRACK,re.UL,re.WBR,re.XMP]),[ne.MATHML]:new Set([re.MI,re.MO,re.MN,re.MS,re.MTEXT,re.ANNOTATION_XML]),[ne.SVG]:new Set([re.TITLE,re.FOREIGN_OBJECT,re.DESC]),[ne.XLINK]:new Set,[ne.XML]:new Set,[ne.XMLNS]:new Set},U0=new Set([re.H1,re.H2,re.H3,re.H4,re.H5,re.H6]);q.STYLE,q.SCRIPT,q.XMP,q.IFRAME,q.NOEMBED,q.NOFRAMES,q.PLAINTEXT;var R;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(R||(R={}));const Tt={DATA:R.DATA,RCDATA:R.RCDATA,RAWTEXT:R.RAWTEXT,SCRIPT_DATA:R.SCRIPT_DATA,PLAINTEXT:R.PLAINTEXT,CDATA_SECTION:R.CDATA_SECTION};function S$(e){return e>=I.DIGIT_0&&e<=I.DIGIT_9}function vu(e){return e>=I.LATIN_CAPITAL_A&&e<=I.LATIN_CAPITAL_Z}function k$(e){return e>=I.LATIN_SMALL_A&&e<=I.LATIN_SMALL_Z}function ds(e){return k$(e)||vu(e)}function pE(e){return ds(e)||S$(e)}function Vd(e){return e+32}function rA(e){return e===I.SPACE||e===I.LINE_FEED||e===I.TABULATION||e===I.FORM_FEED}function mE(e){return rA(e)||e===I.SOLIDUS||e===I.GREATER_THAN_SIGN}function C$(e){return e===I.NULL?Y.nullCharacterReference:e>1114111?Y.characterReferenceOutsideUnicodeRange:J2(e)?Y.surrogateCharacterReference:tA(e)?Y.noncharacterCharacterReference:eA(e)||e===I.CARRIAGE_RETURN?Y.controlCharacterReference:null}class A${constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=R.DATA,this.returnState=R.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new f$(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new x$(p$,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Y.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(Y.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=C$(r);i&&this._err(i,1)}}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Be.START_TAG,tagName:"",tagID:b.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Be.END_TAG,tagName:"",tagID:b.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Be.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Be.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(nA(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const i=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(Y.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Ll(t.tagName),t.type===Be.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(Y.endTagWithAttributes),t.selfClosing&&this._err(Y.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Be.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Be.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Be.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Be.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=rA(t)?Be.WHITESPACE_CHARACTER:t===I.NULL?Be.NULL_CHARACTER:Be.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Be.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=R.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Oi.Attribute:Oi.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===R.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===R.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===R.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case R.DATA:{this._stateData(t);break}case R.RCDATA:{this._stateRcdata(t);break}case R.RAWTEXT:{this._stateRawtext(t);break}case R.SCRIPT_DATA:{this._stateScriptData(t);break}case R.PLAINTEXT:{this._statePlaintext(t);break}case R.TAG_OPEN:{this._stateTagOpen(t);break}case R.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case R.TAG_NAME:{this._stateTagName(t);break}case R.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case R.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case R.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case R.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case R.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case R.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case R.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case R.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case R.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case R.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case R.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case R.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case R.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case R.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case R.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case R.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case R.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case R.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case R.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case R.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case R.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case R.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case R.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case R.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case R.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case R.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case R.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case R.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case R.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case R.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case R.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case R.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case R.BOGUS_COMMENT:{this._stateBogusComment(t);break}case R.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case R.COMMENT_START:{this._stateCommentStart(t);break}case R.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case R.COMMENT:{this._stateComment(t);break}case R.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case R.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case R.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case R.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case R.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case R.COMMENT_END:{this._stateCommentEnd(t);break}case R.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case R.DOCTYPE:{this._stateDoctype(t);break}case R.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case R.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case R.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case R.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case R.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case R.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case R.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case R.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case R.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case R.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case R.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case R.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case R.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case R.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case R.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case R.CDATA_SECTION:{this._stateCdataSection(t);break}case R.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case R.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case R.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case R.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case I.LESS_THAN_SIGN:{this.state=R.TAG_OPEN;break}case I.AMPERSAND:{this._startCharacterReference();break}case I.NULL:{this._err(Y.unexpectedNullCharacter),this._emitCodePoint(t);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case I.AMPERSAND:{this._startCharacterReference();break}case I.LESS_THAN_SIGN:{this.state=R.RCDATA_LESS_THAN_SIGN;break}case I.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(ct);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case I.LESS_THAN_SIGN:{this.state=R.RAWTEXT_LESS_THAN_SIGN;break}case I.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(ct);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case I.LESS_THAN_SIGN:{this.state=R.SCRIPT_DATA_LESS_THAN_SIGN;break}case I.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(ct);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case I.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(ct);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(ds(t))this._createStartTagToken(),this.state=R.TAG_NAME,this._stateTagName(t);else switch(t){case I.EXCLAMATION_MARK:{this.state=R.MARKUP_DECLARATION_OPEN;break}case I.SOLIDUS:{this.state=R.END_TAG_OPEN;break}case I.QUESTION_MARK:{this._err(Y.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=R.BOGUS_COMMENT,this._stateBogusComment(t);break}case I.EOF:{this._err(Y.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Y.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=R.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(ds(t))this._createEndTagToken(),this.state=R.TAG_NAME,this._stateTagName(t);else switch(t){case I.GREATER_THAN_SIGN:{this._err(Y.missingEndTagName),this.state=R.DATA;break}case I.EOF:{this._err(Y.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(Y.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=R.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=R.BEFORE_ATTRIBUTE_NAME;break}case I.SOLIDUS:{this.state=R.SELF_CLOSING_START_TAG;break}case I.GREATER_THAN_SIGN:{this.state=R.DATA,this.emitCurrentTagToken();break}case I.NULL:{this._err(Y.unexpectedNullCharacter),n.tagName+=ct;break}case I.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(vu(t)?Vd(t):t)}}_stateRcdataLessThanSign(t){t===I.SOLIDUS?this.state=R.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=R.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){ds(t)?(this.state=R.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=R.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=R.BEFORE_ATTRIBUTE_NAME,!1;case I.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=R.SELF_CLOSING_START_TAG,!1;case I.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=R.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=R.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===I.SOLIDUS?this.state=R.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=R.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){ds(t)?(this.state=R.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=R.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=R.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case I.SOLIDUS:{this.state=R.SCRIPT_DATA_END_TAG_OPEN;break}case I.EXCLAMATION_MARK:{this.state=R.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=R.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){ds(t)?(this.state=R.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=R.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=R.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===I.HYPHEN_MINUS?(this.state=R.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=R.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===I.HYPHEN_MINUS?(this.state=R.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=R.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case I.HYPHEN_MINUS:{this.state=R.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=R.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case I.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(ct);break}case I.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case I.HYPHEN_MINUS:{this.state=R.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=R.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case I.NULL:{this._err(Y.unexpectedNullCharacter),this.state=R.SCRIPT_DATA_ESCAPED,this._emitChars(ct);break}case I.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=R.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case I.HYPHEN_MINUS:{this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=R.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case I.GREATER_THAN_SIGN:{this.state=R.SCRIPT_DATA,this._emitChars(">");break}case I.NULL:{this._err(Y.unexpectedNullCharacter),this.state=R.SCRIPT_DATA_ESCAPED,this._emitChars(ct);break}case I.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=R.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===I.SOLIDUS?this.state=R.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:ds(t)?(this._emitChars("<"),this.state=R.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=R.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){ds(t)?(this.state=R.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=R.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=R.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(wn.SCRIPT,!1)&&mE(this.preprocessor.peek(wn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<wn.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=R.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=R.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case I.HYPHEN_MINUS:{this.state=R.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=R.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case I.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(ct);break}case I.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case I.HYPHEN_MINUS:{this.state=R.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=R.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case I.NULL:{this._err(Y.unexpectedNullCharacter),this.state=R.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ct);break}case I.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=R.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case I.HYPHEN_MINUS:{this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=R.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case I.GREATER_THAN_SIGN:{this.state=R.SCRIPT_DATA,this._emitChars(">");break}case I.NULL:{this._err(Y.unexpectedNullCharacter),this.state=R.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ct);break}case I.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=R.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===I.SOLIDUS?(this.state=R.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=R.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(wn.SCRIPT,!1)&&mE(this.preprocessor.peek(wn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<wn.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=R.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=R.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.SOLIDUS:case I.GREATER_THAN_SIGN:case I.EOF:{this.state=R.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case I.EQUALS_SIGN:{this._err(Y.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=R.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=R.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:case I.SOLIDUS:case I.GREATER_THAN_SIGN:case I.EOF:{this._leaveAttrName(),this.state=R.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case I.EQUALS_SIGN:{this._leaveAttrName(),this.state=R.BEFORE_ATTRIBUTE_VALUE;break}case I.QUOTATION_MARK:case I.APOSTROPHE:case I.LESS_THAN_SIGN:{this._err(Y.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case I.NULL:{this._err(Y.unexpectedNullCharacter),this.currentAttr.name+=ct;break}default:this.currentAttr.name+=String.fromCodePoint(vu(t)?Vd(t):t)}}_stateAfterAttributeName(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.SOLIDUS:{this.state=R.SELF_CLOSING_START_TAG;break}case I.EQUALS_SIGN:{this.state=R.BEFORE_ATTRIBUTE_VALUE;break}case I.GREATER_THAN_SIGN:{this.state=R.DATA,this.emitCurrentTagToken();break}case I.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=R.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.QUOTATION_MARK:{this.state=R.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case I.APOSTROPHE:{this.state=R.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(Y.missingAttributeValue),this.state=R.DATA,this.emitCurrentTagToken();break}default:this.state=R.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case I.QUOTATION_MARK:{this.state=R.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case I.AMPERSAND:{this._startCharacterReference();break}case I.NULL:{this._err(Y.unexpectedNullCharacter),this.currentAttr.value+=ct;break}case I.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case I.APOSTROPHE:{this.state=R.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case I.AMPERSAND:{this._startCharacterReference();break}case I.NULL:{this._err(Y.unexpectedNullCharacter),this.currentAttr.value+=ct;break}case I.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this._leaveAttrValue(),this.state=R.BEFORE_ATTRIBUTE_NAME;break}case I.AMPERSAND:{this._startCharacterReference();break}case I.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=R.DATA,this.emitCurrentTagToken();break}case I.NULL:{this._err(Y.unexpectedNullCharacter),this.currentAttr.value+=ct;break}case I.QUOTATION_MARK:case I.APOSTROPHE:case I.LESS_THAN_SIGN:case I.EQUALS_SIGN:case I.GRAVE_ACCENT:{this._err(Y.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case I.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this._leaveAttrValue(),this.state=R.BEFORE_ATTRIBUTE_NAME;break}case I.SOLIDUS:{this._leaveAttrValue(),this.state=R.SELF_CLOSING_START_TAG;break}case I.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=R.DATA,this.emitCurrentTagToken();break}case I.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this._err(Y.missingWhitespaceBetweenAttributes),this.state=R.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case I.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=R.DATA,this.emitCurrentTagToken();break}case I.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this._err(Y.unexpectedSolidusInTag),this.state=R.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case I.GREATER_THAN_SIGN:{this.state=R.DATA,this.emitCurrentComment(n);break}case I.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case I.NULL:{this._err(Y.unexpectedNullCharacter),n.data+=ct;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(wn.DASH_DASH,!0)?(this._createCommentToken(wn.DASH_DASH.length+1),this.state=R.COMMENT_START):this._consumeSequenceIfMatch(wn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(wn.DOCTYPE.length+1),this.state=R.DOCTYPE):this._consumeSequenceIfMatch(wn.CDATA_START,!0)?this.inForeignNode?this.state=R.CDATA_SECTION:(this._err(Y.cdataInHtmlContent),this._createCommentToken(wn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=R.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Y.incorrectlyOpenedComment),this._createCommentToken(2),this.state=R.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case I.HYPHEN_MINUS:{this.state=R.COMMENT_START_DASH;break}case I.GREATER_THAN_SIGN:{this._err(Y.abruptClosingOfEmptyComment),this.state=R.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=R.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case I.HYPHEN_MINUS:{this.state=R.COMMENT_END;break}case I.GREATER_THAN_SIGN:{this._err(Y.abruptClosingOfEmptyComment),this.state=R.DATA,this.emitCurrentComment(n);break}case I.EOF:{this._err(Y.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=R.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case I.HYPHEN_MINUS:{this.state=R.COMMENT_END_DASH;break}case I.LESS_THAN_SIGN:{n.data+="<",this.state=R.COMMENT_LESS_THAN_SIGN;break}case I.NULL:{this._err(Y.unexpectedNullCharacter),n.data+=ct;break}case I.EOF:{this._err(Y.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case I.EXCLAMATION_MARK:{n.data+="!",this.state=R.COMMENT_LESS_THAN_SIGN_BANG;break}case I.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=R.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===I.HYPHEN_MINUS?this.state=R.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=R.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===I.HYPHEN_MINUS?this.state=R.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=R.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==I.GREATER_THAN_SIGN&&t!==I.EOF&&this._err(Y.nestedComment),this.state=R.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case I.HYPHEN_MINUS:{this.state=R.COMMENT_END;break}case I.EOF:{this._err(Y.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=R.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case I.GREATER_THAN_SIGN:{this.state=R.DATA,this.emitCurrentComment(n);break}case I.EXCLAMATION_MARK:{this.state=R.COMMENT_END_BANG;break}case I.HYPHEN_MINUS:{n.data+="-";break}case I.EOF:{this._err(Y.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=R.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case I.HYPHEN_MINUS:{n.data+="--!",this.state=R.COMMENT_END_DASH;break}case I.GREATER_THAN_SIGN:{this._err(Y.incorrectlyClosedComment),this.state=R.DATA,this.emitCurrentComment(n);break}case I.EOF:{this._err(Y.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=R.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=R.BEFORE_DOCTYPE_NAME;break}case I.GREATER_THAN_SIGN:{this.state=R.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case I.EOF:{this._err(Y.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Y.missingWhitespaceBeforeDoctypeName),this.state=R.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(vu(t))this._createDoctypeToken(String.fromCharCode(Vd(t))),this.state=R.DOCTYPE_NAME;else switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.NULL:{this._err(Y.unexpectedNullCharacter),this._createDoctypeToken(ct),this.state=R.DOCTYPE_NAME;break}case I.GREATER_THAN_SIGN:{this._err(Y.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=R.DATA;break}case I.EOF:{this._err(Y.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=R.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=R.AFTER_DOCTYPE_NAME;break}case I.GREATER_THAN_SIGN:{this.state=R.DATA,this.emitCurrentDoctype(n);break}case I.NULL:{this._err(Y.unexpectedNullCharacter),n.name+=ct;break}case I.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(vu(t)?Vd(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.GREATER_THAN_SIGN:{this.state=R.DATA,this.emitCurrentDoctype(n);break}case I.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(wn.PUBLIC,!1)?this.state=R.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(wn.SYSTEM,!1)?this.state=R.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Y.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=R.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=R.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case I.QUOTATION_MARK:{this._err(Y.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=R.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{this._err(Y.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=R.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(Y.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=R.DATA,this.emitCurrentDoctype(n);break}case I.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=R.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.QUOTATION_MARK:{n.publicId="",this.state=R.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{n.publicId="",this.state=R.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(Y.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=R.DATA,this.emitCurrentDoctype(n);break}case I.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=R.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case I.QUOTATION_MARK:{this.state=R.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case I.NULL:{this._err(Y.unexpectedNullCharacter),n.publicId+=ct;break}case I.GREATER_THAN_SIGN:{this._err(Y.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=R.DATA;break}case I.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case I.APOSTROPHE:{this.state=R.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case I.NULL:{this._err(Y.unexpectedNullCharacter),n.publicId+=ct;break}case I.GREATER_THAN_SIGN:{this._err(Y.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=R.DATA;break}case I.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=R.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case I.GREATER_THAN_SIGN:{this.state=R.DATA,this.emitCurrentDoctype(n);break}case I.QUOTATION_MARK:{this._err(Y.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=R.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{this._err(Y.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=R.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case I.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=R.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=R.DATA;break}case I.QUOTATION_MARK:{n.systemId="",this.state=R.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{n.systemId="",this.state=R.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case I.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=R.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=R.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case I.QUOTATION_MARK:{this._err(Y.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=R.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{this._err(Y.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=R.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(Y.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=R.DATA,this.emitCurrentDoctype(n);break}case I.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=R.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.QUOTATION_MARK:{n.systemId="",this.state=R.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{n.systemId="",this.state=R.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(Y.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=R.DATA,this.emitCurrentDoctype(n);break}case I.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=R.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case I.QUOTATION_MARK:{this.state=R.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case I.NULL:{this._err(Y.unexpectedNullCharacter),n.systemId+=ct;break}case I.GREATER_THAN_SIGN:{this._err(Y.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=R.DATA;break}case I.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case I.APOSTROPHE:{this.state=R.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case I.NULL:{this._err(Y.unexpectedNullCharacter),n.systemId+=ct;break}case I.GREATER_THAN_SIGN:{this._err(Y.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=R.DATA;break}case I.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=R.DATA;break}case I.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Y.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=R.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case I.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=R.DATA;break}case I.NULL:{this._err(Y.unexpectedNullCharacter);break}case I.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case I.RIGHT_SQUARE_BRACKET:{this.state=R.CDATA_SECTION_BRACKET;break}case I.EOF:{this._err(Y.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===I.RIGHT_SQUARE_BRACKET?this.state=R.CDATA_SECTION_END:(this._emitChars("]"),this.state=R.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case I.GREATER_THAN_SIGN:{this.state=R.DATA;break}case I.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=R.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(I.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&pE(this.preprocessor.peek(1))?R.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){pE(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===I.SEMICOLON&&this._err(Y.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const iA=new Set([b.DD,b.DT,b.LI,b.OPTGROUP,b.OPTION,b.P,b.RB,b.RP,b.RT,b.RTC]),gE=new Set([...iA,b.CAPTION,b.COLGROUP,b.TBODY,b.TD,b.TFOOT,b.TH,b.THEAD,b.TR]),nf=new Set([b.APPLET,b.CAPTION,b.HTML,b.MARQUEE,b.OBJECT,b.TABLE,b.TD,b.TEMPLATE,b.TH]),N$=new Set([...nf,b.OL,b.UL]),P$=new Set([...nf,b.BUTTON]),yE=new Set([b.ANNOTATION_XML,b.MI,b.MN,b.MO,b.MS,b.MTEXT]),bE=new Set([b.DESC,b.FOREIGN_OBJECT,b.TITLE]),I$=new Set([b.TR,b.TEMPLATE,b.HTML]),O$=new Set([b.TBODY,b.TFOOT,b.THEAD,b.TEMPLATE,b.HTML]),L$=new Set([b.TABLE,b.TEMPLATE,b.HTML]),R$=new Set([b.TD,b.TH]);class j${get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=b.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===b.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===ne.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==ne.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(U0,ne.HTML)}popUntilTableCellPopped(){this.popUntilPopped(R$,ne.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(L$,ne.HTML)}clearBackToTableBodyContext(){this.clearBackTo(O$,ne.HTML)}clearBackToTableRowContext(){this.clearBackTo(I$,ne.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===b.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===b.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case ne.HTML:{if(i===t)return!0;if(n.has(i))return!1;break}case ne.SVG:{if(bE.has(i))return!1;break}case ne.MATHML:{if(yE.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,nf)}hasInListItemScope(t){return this.hasInDynamicScope(t,N$)}hasInButtonScope(t){return this.hasInDynamicScope(t,P$)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case ne.HTML:{if(U0.has(n))return!0;if(nf.has(n))return!1;break}case ne.SVG:{if(bE.has(n))return!1;break}case ne.MATHML:{if(yE.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===ne.HTML)switch(this.tagIDs[n]){case t:return!0;case b.TABLE:case b.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===ne.HTML)switch(this.tagIDs[t]){case b.TBODY:case b.THEAD:case b.TFOOT:return!0;case b.TABLE:case b.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===ne.HTML)switch(this.tagIDs[n]){case t:return!0;case b.OPTION:case b.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&iA.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&gE.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&gE.has(this.currentTagId);)this.pop()}}const Mm=3;var si;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(si||(si={}));const _E={type:si.Marker};class D${constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,s=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let l=0;l<this.entries.length;l++){const u=this.entries[l];if(u.type===si.Marker)break;const{element:h}=u;if(this.treeAdapter.getTagName(h)===s&&this.treeAdapter.getNamespaceURI(h)===a){const f=this.treeAdapter.getAttrList(h);f.length===i&&r.push({idx:l,attrs:f})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<Mm)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<Mm)return;const i=new Map(n.map(a=>[a.name,a.value]));let s=0;for(let a=0;a<r.length;a++){const l=r[a];l.attrs.every(u=>i.get(u.name)===u.value)&&(s+=1,s>=Mm&&this.entries.splice(l.idx,1))}}insertMarker(){this.entries.unshift(_E)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:si.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:si.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(_E);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===si.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===si.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===si.Element&&n.element===t)}}const hs={createDocument(){return{nodeName:"#document",mode:ur.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(s=>s.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const s={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};hs.appendChild(e,s)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(hs.isTextNode(n)){n.value+=t;return}}hs.appendChild(e,hs.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&hs.isTextNode(r)?r.value+=t:hs.insertBefore(e,hs.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},sA="html",M$="about:legacy-compat",B$="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",oA=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],F$=[...oA,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],U$=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),aA=["-
280//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],H$=[...aA,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function vE(e,t){return t.some(n=>e.startsWith(n))}function z$(e){return e.name===sA&&e.publicId===null&&(e.systemId===null||e.systemId===M$)}function $$(e){if(e.name!==sA)return ur.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===B$)return ur.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),U$.has(n))return ur.QUIRKS;let r=t===null?F$:oA;if(vE(n,r))return ur.QUIRKS;if(r=t===null?aA:H$,vE(n,r))return ur.LIMITED_QUIRKS}return ur.NO_QUIRKS}const xE={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},q$="definitionurl",W$="definitionURL",V$=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),K$=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:ne.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:ne.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:ne.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:ne.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:ne.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:ne.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:ne.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:ne.XML}],["xml:space",{prefix:"xml",name:"space",namespace:ne.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:ne.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:ne.XMLNS}]]),G$=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Y$=new Set([b.B,b.BIG,b.BLOCKQUOTE,b.BODY,b.BR,b.CENTER,b.CODE,b.DD,b.DIV,b.DL,b.DT,b.EM,b.EMBED,b.H1,b.H2,b.H3,b.H4,b.H5,b.H6,b.HEAD,b.HR,b.I,b.IMG,b.LI,b.LISTING,b.MENU,b.META,b.NOBR,b.OL,b.P,b.PRE,b.RUBY,b.S,b.SMALL,b.SPAN,b.STRONG,b.STRIKE,b.SUB,b.SUP,b.TABLE,b.TT,b.U,b.UL,b.VAR]);function Q$(e){const t=e.tagID;return t===b.FONT&&e.attrs.some(({name:r})=>r===Do.COLOR||r===Do.SIZE||r===Do.FACE)||Y$.has(t)}function lA(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===q$){e.attrs[t].name=W$;break}}function uA(e){for(let t=0;t<e.attrs.length;t++){const n=V$.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function jb(e){for(let t=0;t<e.attrs.length;t++){const n=K$.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function Z$(e){const t=G$.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Ll(e.tagName))}function X$(e,t){return t===ne.MATHML&&(e===b.MI||e===b.MO||e===b.MN||e===b.MS||e===b.MTEXT)}function J$(e,t,n){if(t===ne.MATHML&&e===b.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Do.ENCODING){const i=n[r].value.toLowerCase();return i===xE.TEXT_HTML||i===xE.APPLICATION_XML}}return t===ne.SVG&&(e===b.FOREIGN_OBJECT||e===b.DESC||e===b.TITLE)}function eq(e,t,n,r){return(!r||r===ne.HTML)&&J$(e,t,n)||(!r||r===ne.MATHML)&&X$(e,t)}const tq="hidden",nq=8,rq=3;var D;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(D||(D={}));const iq={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},cA=new Set([b.TABLE,b.TBODY,b.TFOOT,b.THEAD,b.TR]),EE={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:hs,onParseError:null};class wE{constructor(t,n,r=null,i=null){this.fragmentContext=r,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=D.INITIAL,this.originalInsertionMode=D.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...EE,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new A$(this.options,this),this.activeFormattingElements=new D$(this.treeAdapter),this.fragmentContextID=r?Ll(this.treeAdapter.getTagName(r)):b.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new j$(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...EE,...n};t??(t=r.treeAdapter.createElement(q.TEMPLATE,ne.HTML,[]));const i=r.treeAdapter.createElement("documentmock",ne.HTML,[]),s=new this(r,i,t);return s.fragmentContextID===b.TEMPLATE&&s.tmplInsertionModeStack.unshift(D.IN_TEMPLATE),s._initTokenizerForFragmentParsing(),s._insertFakeRootElement(),s._resetInsertionMode(),s._findFormInFragmentContext(),s}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var i;if(!this.onParseError)return;const s=(i=t.location)!==null&&i!==void 0?i:iq,a={code:n,startLine:s.startLine,startCol:s.startCol,startOffset:s.startOffset,endLine:r?s.startLine:s.endLine,endCol:r?s.startCol:s.endCol,endOffset:r?s.startOffset:s.endOffset};this.onParseError(a)}onItemPush(t,n,r){var i,s;(s=(i=this.treeAdapter).onItemPush)===null||s===void 0||s.call(i,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let s,a;this.openElements.stackTop===0&&this.fragmentContext?(s=this.fragmentContext,a=this.fragmentContextID):{current:s,currentTagId:a}=this.openElements,this._setContextModes(s,a)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===ne.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,ne.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=D.TEXT}switchToPlaintextParsing(){this.insertionMode=D.TEXT,this.originalInsertionMode=D.IN_BODY,this.tokenizer.state=Tt.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;
vendor: 52,529 bytes, line 280
280for(;t;){if(this.treeAdapter.getTagName(t)===q.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==ne.HTML))switch(this.fragmentContextID){case b.TITLE:case b.TEXTAREA:{this.tokenizer.state=Tt.RCDATA;break}case b.STYLE:case b.XMP:case b.IFRAME:case b.NOEMBED:case b.NOFRAMES:case b.NOSCRIPT:{this.tokenizer.state=Tt.RAWTEXT;break}case b.SCRIPT:{this.tokenizer.state=Tt.SCRIPT_DATA;break}case b.PLAINTEXT:{this.tokenizer.state=Tt.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const a=this.treeAdapter.getChildNodes(this.document).find(l=>this.treeAdapter.isDocumentTypeNode(l));a&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,ne.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,ne.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(q.HTML,ne.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,b.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),s=r?i.lastIndexOf(r):i.length,a=i[s-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){const{endLine:u,endCol:h,endOffset:f}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:u,endCol:h,endOffset:f})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),s=n.type===Be.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===b.SVG&&this.treeAdapter.getTagName(n)===q.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===ne.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===b.MGLYPH||t.tagID===b.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,ne.HTML)}_processToken(t){switch(t.type){case Be.CHARACTER:{this.onCharacter(t);break}case Be.NULL_CHARACTER:{this.onNullCharacter(t);break}case Be.COMMENT:{this.onComment(t);break}case Be.DOCTYPE:{this.onDoctype(t);break}case Be.START_TAG:{this._processStartTag(t);break}case Be.END_TAG:{this.onEndTag(t);break}case Be.EOF:{this.onEof(t);break}case Be.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),s=this.treeAdapter.getAttrList(n);return eq(t,i,s,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===si.Marker||this.openElements.contains(i.element)),r=n===-1?t-1:n-1;for(let i=r;i>=0;i--){const s=this.activeFormattingElements.entries[i];this._insertElement(s.token,this.treeAdapter.getNamespaceURI(s.element)),s.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=D.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(b.P),this.openElements.popUntilTagNamePopped(b.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case b.TR:{this.insertionMode=D.IN_ROW;return}case b.TBODY:case b.THEAD:case b.TFOOT:{this.insertionMode=D.IN_TABLE_BODY;return}case b.CAPTION:{this.insertionMode=D.IN_CAPTION;return}case b.COLGROUP:{this.insertionMode=D.IN_COLUMN_GROUP;return}case b.TABLE:{this.insertionMode=D.IN_TABLE;return}case b.BODY:{this.insertionMode=D.IN_BODY;return}case b.FRAMESET:{this.insertionMode=D.IN_FRAMESET;return}case b.SELECT:{this._resetInsertionModeForSelect(t);return}case b.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case b.HTML:{this.insertionMode=this.headElement?D.AFTER_HEAD:D.BEFORE_HEAD;return}case b.TD:case b.TH:{if(t>0){this.insertionMode=D.IN_CELL;return}break}case b.HEAD:{if(t>0){this.insertionMode=D.IN_HEAD;return}break}}this.insertionMode=D.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===b.TEMPLATE)break;if(r===b.TABLE){this.insertionMode=D.IN_SELECT_IN_TABLE;return}}this.insertionMode=D.IN_SELECT}_isElementCausesFosterParenting(t){return cA.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case b.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===ne.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case b.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return T$[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){RW(this,t);return}switch(this.insertionMode){case D.INITIAL:{du(this,t);break}case D.BEFORE_HTML:{Mu(this,t);break}case D.BEFORE_HEAD:{Bu(this,t);break}case D.IN_HEAD:{Fu(this,t);break}case D.IN_HEAD_NO_SCRIPT:{Uu(this,t);break}case D.AFTER_HEAD:{Hu(this,t);break}case D.IN_BODY:case D.IN_CAPTION:case D.IN_CELL:case D.IN_TEMPLATE:{hA(this,t);break}case D.TEXT:case D.IN_SELECT:case D.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case D.IN_TABLE:case D.IN_TABLE_BODY:case D.IN_ROW:{Bm(this,t);break}case D.IN_TABLE_TEXT:{bA(this,t);break}case D.IN_COLUMN_GROUP:{rf(this,t);break}case D.AFTER_BODY:{sf(this,t);break}case D.AFTER_AFTER_BODY:{gh(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){LW(this,t);return}switch(this.insertionMode){case D.INITIAL:{du(this,t);break}case D.BEFORE_HTML:{Mu(this,t);break}case D.BEFORE_HEAD:{Bu(this,t);break}case D.IN_HEAD:{Fu(this,t);break}case D.IN_HEAD_NO_SCRIPT:{Uu(this,t);break}case D.AFTER_HEAD:{Hu(this,t);break}case D.TEXT:{this._insertCharacters(t);break}case D.IN_TABLE:case D.IN_TABLE_BODY:case D.IN_ROW:{Bm(this,t);break}case D.IN_COLUMN_GROUP:{rf(this,t);break}case D.AFTER_BODY:{sf(this,t);break}case D.AFTER_AFTER_BODY:{gh(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){H0(this,t);return}switch(this.insertionMode){case D.INITIAL:case D.BEFORE_HTML:case D.BEFORE_HEAD:case D.IN_HEAD:case D.IN_HEAD_NO_SCRIPT:case D.AFTER_HEAD:case D.IN_BODY:case D.IN_TABLE:case D.IN_CAPTION:case D.IN_COLUMN_GROUP:case D.IN_TABLE_BODY:case D.IN_ROW:case D.IN_CELL:case D.IN_SELECT:case D.IN_SELECT_IN_TABLE:case D.IN_TEMPLATE:case D.IN_FRAMESET:case D.AFTER_FRAMESET:{H0(this,t);break}case D.IN_TABLE_TEXT:{hu(this,t);break}case D.AFTER_BODY:{dq(this,t);break}case D.AFTER_AFTER_BODY:case D.AFTER_AFTER_FRAMESET:{hq(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case D.INITIAL:{fq(this,t);break}case D.BEFORE_HEAD:case D.IN_HEAD:case D.IN_HEAD_NO_SCRIPT:case D.AFTER_HEAD:{this._err(t,Y.misplacedDoctype);break}case D.IN_TABLE_TEXT:{hu(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,Y.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?jW(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case D.INITIAL:{du(this,t);break}case D.BEFORE_HTML:{pq(this,t);break}case D.BEFORE_HEAD:{gq(this,t);break}case D.IN_HEAD:{Br(this,t);break}case D.IN_HEAD_NO_SCRIPT:{_q(this,t);break}case D.AFTER_HEAD:{xq(this,t);break}case D.IN_BODY:{ln(this,t);break}case D.IN_TABLE:{_l(this,t);break}case D.IN_TABLE_TEXT:{hu(this,t);break}case D.IN_CAPTION:{yW(this,t);break}case D.IN_COLUMN_GROUP:{Bb(this,t);break}case D.IN_TABLE_BODY:{tp(this,t);break}case D.IN_ROW:{np(this,t);break}case D.IN_CELL:{vW(this,t);break}case D.IN_SELECT:{xA(this,t);break}case D.IN_SELECT_IN_TABLE:{EW(this,t);break}case D.IN_TEMPLATE:{TW(this,t);break}case D.AFTER_BODY:{kW(this,t);break}case D.IN_FRAMESET:{CW(this,t);break}case D.AFTER_FRAMESET:{NW(this,t);break}case D.AFTER_AFTER_BODY:{IW(this,t);break}case D.AFTER_AFTER_FRAMESET:{OW(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?DW(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case D.INITIAL:{du(this,t);break}case D.BEFORE_HTML:{mq(this,t);break}case D.BEFORE_HEAD:{yq(this,t);break}case D.IN_HEAD:{bq(this,t);break}case D.IN_HEAD_NO_SCRIPT:{vq(this,t);break}case D.AFTER_HEAD:{Eq(this,t);break}case D.IN_BODY:{ep(this,t);break}case D.TEXT:{aW(this,t);break}case D.IN_TABLE:{Ec(this,t);break}case D.IN_TABLE_TEXT:{hu(this,t);break}case D.IN_CAPTION:{bW(this,t);break}case D.IN_COLUMN_GROUP:{_W(this,t);break}case D.IN_TABLE_BODY:{z0(this,t);break}case D.IN_ROW:{vA(this,t);break}case D.IN_CELL:{xW(this,t);break}case D.IN_SELECT:{EA(this,t);break}case D.IN_SELECT_IN_TABLE:{wW(this,t);break}case D.IN_TEMPLATE:{SW(this,t);break}case D.AFTER_BODY:{TA(this,t);break}case D.IN_FRAMESET:{AW(this,t);break}case D.AFTER_FRAMESET:{PW(this,t);break}case D.AFTER_AFTER_BODY:{gh(this,t);break}}}onEof(t){switch(this.insertionMode){case D.INITIAL:{du(this,t);break}case D.BEFORE_HTML:{Mu(this,t);break}case D.BEFORE_HEAD:{Bu(this,t);break}case D.IN_HEAD:{Fu(this,t);break}case D.IN_HEAD_NO_SCRIPT:{Uu(this,t);break}case D.AFTER_HEAD:{Hu(this,t);break}case D.IN_BODY:case D.IN_TABLE:case D.IN_CAPTION:case D.IN_COLUMN_GROUP:case D.IN_TABLE_BODY:case D.IN_ROW:case D.IN_CELL:case D.IN_SELECT:case D.IN_SELECT_IN_TABLE:{gA(this,t);break}case D.TEXT:{lW(this,t);break}case D.IN_TABLE_TEXT:{hu(this,t);break}case D.IN_TEMPLATE:{wA(this,t);break}case D.AFTER_BODY:case D.IN_FRAMESET:case D.AFTER_FRAMESET:case D.AFTER_AFTER_BODY:case D.AFTER_AFTER_FRAMESET:{Mb(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===I.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case D.IN_HEAD:case D.IN_HEAD_NO_SCRIPT:case D.AFTER_HEAD:case D.TEXT:case D.IN_COLUMN_GROUP:case D.IN_SELECT:case D.IN_SELECT_IN_TABLE:case D.IN_FRAMESET:case D.AFTER_FRAMESET:{this._insertCharacters(t);break}case D.IN_BODY:case D.IN_CAPTION:case D.IN_CELL:case D.IN_TEMPLATE:case D.AFTER_BODY:case D.AFTER_AFTER_BODY:case D.AFTER_AFTER_FRAMESET:{dA(this,t);break}case D.IN_TABLE:case D.IN_TABLE_BODY:case D.IN_ROW:{Bm(this,t);break}case D.IN_TABLE_TEXT:{yA(this,t);break}}}}function sq(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):mA(e,t),n}function oq(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function aq(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let s=0,a=i;a!==n;s++,a=i){i=e.openElements.getCommonAncestor(a);const l=e.activeFormattingElements.getElementEntry(a),u=l&&s>=rq;!l||u?(u&&e.activeFormattingElements.removeEntry(l),e.openElements.remove(a)):(a=lq(e,l),r===t&&(e.activeFormattingElements.bookmark=l),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function lq(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function uq(e,t,n){const r=e.treeAdapter.getTagName(t),i=Ll(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const s=e.treeAdapter.getNamespaceURI(t);i===b.TEMPLATE&&s===ne.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function cq(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,s=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,s,i.tagID)}function Db(e,t){for(let n=0;n<nq;n++){const r=sq(e,t);if(!r)break;const i=oq(e,r);if(!i)break;e.activeFormattingElements.bookmark=r;const s=aq(e,i,r.element),a=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(s),a&&uq(e,a,s),cq(e,i,r)}}function H0(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function dq(e,t){e._appendCommentNode(t,e.openElements.items[0])}function hq(e,t){e._appendCommentNode(t,e.document)}function Mb(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const s=e.openElements.items[1],a=e.treeAdapter.getNodeSourceCodeLocation(s);a&&!a.endTag&&e._setEndLocation(s,t)}}}}function fq(e,t){e._setDocumentType(t);const n=t.forceQuirks?ur.QUIRKS:$$(t);z$(t)||e._err(t,Y.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=D.BEFORE_HTML}function du(e,t){e._err(t,Y.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ur.QUIRKS),e.insertionMode=D.BEFORE_HTML,e._processToken(t)}function pq(e,t){t.tagID===b.HTML?(e._insertElement(t,ne.HTML),e.insertionMode=D.BEFORE_HEAD):Mu(e,t)}function mq(e,t){const n=t.tagID;(n===b.HTML||n===b.HEAD||n===b.BODY||n===b.BR)&&Mu(e,t)}function Mu(e,t){e._insertFakeRootElement(),e.insertionMode=D.BEFORE_HEAD,e._processToken(t)}function gq(e,t){switch(t.tagID){case b.HTML:{ln(e,t);break}case b.HEAD:{e._insertElement(t,ne.HTML),e.headElement=e.openElements.current,e.insertionMode=D.IN_HEAD;break}default:Bu(e,t)}}function yq(e,t){const n=t.tagID;n===b.HEAD||n===b.BODY||n===b.HTML||n===b.BR?Bu(e,t):e._err(t,Y.endTagWithoutMatchingOpenElement)}function Bu(e,t){e._insertFakeElement(q.HEAD,b.HEAD),e.headElement=e.openElements.current,e.insertionMode=D.IN_HEAD,e._processToken(t)}function Br(e,t){switch(t.tagID){case b.HTML:{ln(e,t);break}case b.BASE:case b.BASEFONT:case b.BGSOUND:case b.LINK:case b.META:{e._appendElement(t,ne.HTML),t.ackSelfClosing=!0;break}case b.TITLE:{e._switchToTextParsing(t,Tt.RCDATA);break}case b.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Tt.RAWTEXT):(e._insertElement(t,ne.HTML),e.insertionMode=D.IN_HEAD_NO_SCRIPT);break}case b.NOFRAMES:case b.STYLE:{e._switchToTextParsing(t,Tt.RAWTEXT);break}case b.SCRIPT:{e._switchToTextParsing(t,Tt.SCRIPT_DATA);break}case b.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=D.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(D.IN_TEMPLATE);break}case b.HEAD:{e._err(t,Y.misplacedStartTagForHeadElement);break}default:Fu(e,t)}}function bq(e,t){switch(t.tagID){case b.HEAD:{e.openElements.pop(),e.insertionMode=D.AFTER_HEAD;break}case b.BODY:case b.BR:case b.HTML:{Fu(e,t);break}case b.TEMPLATE:{Zo(e,t);break}default:e._err(t,Y.endTagWithoutMatchingOpenElement)}}function Zo(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==b.TEMPLATE&&e._err(t,Y.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(b.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Y.endTagWithoutMatchingOpenElement)}function Fu(e,t){e.openElements.pop(),e.insertionMode=D.AFTER_HEAD,e._processToken(t)}function _q(e,t){switch(t.tagID){case b.HTML:{ln(e,t);break}case b.BASEFONT:case b.BGSOUND:case b.HEAD:case b.LINK:case b.META:case b.NOFRAMES:case b.STYLE:{Br(e,t);break}case b.NOSCRIPT:{e._err(t,Y.nestedNoscriptInHead);break}default:Uu(e,t)}}function vq(e,t){switch(t.tagID){case b.NOSCRIPT:{e.openElements.pop(),e.insertionMode=D.IN_HEAD;break}case b.BR:{Uu(e,t);break}default:e._err(t,Y.endTagWithoutMatchingOpenElement)}}function Uu(e,t){const n=t.type===Be.EOF?Y.openElementsLeftAfterEof:Y.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=D.IN_HEAD,e._processToken(t)}function xq(e,t){switch(t.tagID){case b.HTML:{ln(e,t);break}case b.BODY:{e._insertElement(t,ne.HTML),e.framesetOk=!1,e.insertionMode=D.IN_BODY;break}case b.FRAMESET:{e._insertElement(t,ne.HTML),e.insertionMode=D.IN_FRAMESET;break}case b.BASE:case b.BASEFONT:case b.BGSOUND:case b.LINK:case b.META:case b.NOFRAMES:case b.SCRIPT:case b.STYLE:case b.TEMPLATE:case b.TITLE:{e._err(t,Y.abandonedHeadElementChild),e.openElements.push(e.headElement,b.HEAD),Br(e,t),e.openElements.remove(e.headElement);break}case b.HEAD:{e._err(t,Y.misplacedStartTagForHeadElement);break}default:Hu(e,t)}}function Eq(e,t){switch(t.tagID){case b.BODY:case b.HTML:case b.BR:{Hu(e,t);break}case b.TEMPLATE:{Zo(e,t);break}default:e._err(t,Y.endTagWithoutMatchingOpenElement)}}function Hu(e,t){e._insertFakeElement(q.BODY,b.BODY),e.insertionMode=D.IN_BODY,Jf(e,t)}function Jf(e,t){switch(t.type){case Be.CHARACTER:{hA(e,t);break}case Be.WHITESPACE_CHARACTER:{dA(e,t);break}case Be.COMMENT:{H0(e,t);break}case Be.START_TAG:{ln(e,t);break}case Be.END_TAG:{ep(e,t);break}case Be.EOF:{gA(e,t);break}}}function dA(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function hA(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function wq(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Tq(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function Sq(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,ne.HTML),e.insertionMode=D.IN_FRAMESET)}function kq(e,t){e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._insertElement(t,ne.HTML)}function Cq(e,t){e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&U0.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,ne.HTML)}function Aq(e,t){e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._insertElement(t,ne.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Nq(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._insertElement(t,ne.HTML),n||(e.formElement=e.openElements.current))}function Pq(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===b.LI&&i===b.LI||(n===b.DD||n===b.DT)&&(i===b.DD||i===b.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==b.ADDRESS&&i!==b.DIV&&i!==b.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._insertElement(t,ne.HTML)}function Iq(e,t){e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._insertElement(t,ne.HTML),e.tokenizer.state=Tt.PLAINTEXT}function Oq(e,t){e.openElements.hasInScope(b.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(b.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,ne.HTML),e.framesetOk=!1}function Lq(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(q.A);n&&(Db(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,ne.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Rq(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ne.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function jq(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(b.NOBR)&&(Db(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,ne.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Dq(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ne.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Mq(e,t){e.treeAdapter.getDocumentMode(e.document)!==ur.QUIRKS&&e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._insertElement(t,ne.HTML),e.framesetOk=!1,e.insertionMode=D.IN_TABLE}function fA(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ne.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function pA(e){const t=nA(e,Do.TYPE);return t!=null&&t.toLowerCase()===tq}function Bq(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ne.HTML),pA(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Fq(e,t){e._appendElement(t,ne.HTML),t.ackSelfClosing=!0}function Uq(e,t){e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._appendElement(t,ne.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Hq(e,t){t.tagName=q.IMG,t.tagID=b.IMG,fA(e,t)}function zq(e,t){e._insertElement(t,ne.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Tt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=D.TEXT}function $q(e,t){e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Tt.RAWTEXT)}function qq(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Tt.RAWTEXT)}function TE(e,t){e._switchToTextParsing(t,Tt.RAWTEXT)}function Wq(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ne.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===D.IN_TABLE||e.insertionMode===D.IN_CAPTION||e.insertionMode===D.IN_TABLE_BODY||e.insertionMode===D.IN_ROW||e.insertionMode===D.IN_CELL?D.IN_SELECT_IN_TABLE:D.IN_SELECT}function Vq(e,t){e.openElements.currentTagId===b.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,ne.HTML)}function Kq(e,t){e.openElements.hasInScope(b.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,ne.HTML)}function Gq(e,t){e.openElements.hasInScope(b.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(b.RTC),e._insertElement(t,ne.HTML)}function Yq(e,t){e._reconstructActiveFormattingElements(),lA(t),jb(t),t.selfClosing?e._appendElement(t,ne.MATHML):e._insertElement(t,ne.MATHML),t.ackSelfClosing=!0}function Qq(e,t){e._reconstructActiveFormattingElements(),uA(t),jb(t),t.selfClosing?e._appendElement(t,ne.SVG):e._insertElement(t,ne.SVG),t.ackSelfClosing=!0}function SE(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ne.HTML)}function ln(e,t){switch(t.tagID){case b.I:case b.S:case b.B:case b.U:case b.EM:case b.TT:case b.BIG:case b.CODE:case b.FONT:case b.SMALL:case b.STRIKE:case b.STRONG:{Rq(e,t);break}case b.A:{Lq(e,t);break}case b.H1:case b.H2:case b.H3:case b.H4:case b.H5:case b.H6:{Cq(e,t);break}case b.P:case b.DL:case b.OL:case b.UL:case b.DIV:case b.DIR:case b.NAV:case b.MAIN:case b.MENU:case b.ASIDE:case b.CENTER:case b.FIGURE:case b.FOOTER:case b.HEADER:case b.HGROUP:case b.DIALOG:case b.DETAILS:case b.ADDRESS:case b.ARTICLE:case b.SEARCH:case b.SECTION:case b.SUMMARY:case b.FIELDSET:case b.BLOCKQUOTE:case b.FIGCAPTION:{kq(e,t);break}case b.LI:case b.DD:case b.DT:{Pq(e,t);break}case b.BR:case b.IMG:case b.WBR:case b.AREA:case b.EMBED:case b.KEYGEN:{fA(e,t);break}case b.HR:{Uq(e,t);break}case b.RB:case b.RTC:{Kq(e,t);break}case b.RT:case b.RP:{Gq(e,t);break}case b.PRE:case b.LISTING:{Aq(e,t);break}case b.XMP:{$q(e,t);break}case b.SVG:{Qq(e,t);break}case b.HTML:{wq(e,t);break}case b.BASE:case b.LINK:case b.META:case b.STYLE:case b.TITLE:case b.SCRIPT:case b.BGSOUND:case b.BASEFONT:case b.TEMPLATE:{Br(e,t);break}case b.BODY:{Tq(e,t);break}case b.FORM:{Nq(e,t);break}case b.NOBR:{jq(e,t);break}case b.MATH:{Yq(e,t);break}case b.TABLE:{Mq(e,t);break}case b.INPUT:{Bq(e,t);break}case b.PARAM:case b.TRACK:case b.SOURCE:{Fq(e,t);break}case b.IMAGE:{Hq(e,t);break}case b.BUTTON:{Oq(e,t);break}case b.APPLET:case b.OBJECT:case b.MARQUEE:{Dq(e,t);break}case b.IFRAME:{qq(e,t);break}case b.SELECT:{Wq(e,t);break}case b.OPTION:case b.OPTGROUP:{Vq(e,t);break}case b.NOEMBED:case b.NOFRAMES:{TE(e,t);break}case b.FRAMESET:{Sq(e,t);break}case b.TEXTAREA:{zq(e,t);break}case b.NOSCRIPT:{e.options.scriptingEnabled?TE(e,t):SE(e,t);break}case b.PLAINTEXT:{Iq(e,t);break}case b.COL:case b.TH:case b.TD:case b.TR:case b.HEAD:case b.FRAME:case b.TBODY:case b.TFOOT:case b.THEAD:case b.CAPTION:case b.COLGROUP:break;default:SE(e,t)}}function Zq(e,t){if(e.openElements.hasInScope(b.BODY)&&(e.insertionMode=D.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Xq(e,t){e.openElements.hasInScope(b.BODY)&&(e.insertionMode=D.AFTER_BODY,TA(e,t))}function Jq(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function eW(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(b.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(b.FORM):n&&e.openElements.remove(n))}function tW(e){e.openElements.hasInButtonScope(b.P)||e._insertFakeElement(q.P,b.P),e._closePElement()}function nW(e){e.openElements.hasInListItemScope(b.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(b.LI),e.openElements.popUntilTagNamePopped(b.LI))}function rW(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function iW(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function sW(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function oW(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(q.BR,b.BR),e.openElements.pop(),e.framesetOk=!1}function mA(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const s=e.openElements.items[i],a=e.openElements.tagIDs[i];if(r===a&&(r!==b.UNKNOWN||e.treeAdapter.getTagName(s)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(s,a))break}}function ep(e,t){switch(t.tagID){case b.A:case b.B:case b.I:case b.S:case b.U:case b.EM:case b.TT:case b.BIG:case b.CODE:case b.FONT:case b.NOBR:case b.SMALL:case b.STRIKE:case b.STRONG:{Db(e,t);break}case b.P:{tW(e);break}case b.DL:case b.UL:case b.OL:case b.DIR:case b.DIV:case b.NAV:case b.PRE:case b.MAIN:case b.MENU:case b.ASIDE:case b.BUTTON:case b.CENTER:case b.FIGURE:case b.FOOTER:case b.HEADER:case b.HGROUP:case b.DIALOG:case b.ADDRESS:case b.ARTICLE:case b.DETAILS:case b.SEARCH:case b.SECTION:case b.SUMMARY:case b.LISTING:case b.FIELDSET:case b.BLOCKQUOTE:case b.FIGCAPTION:{Jq(e,t);break}case b.LI:{nW(e);break}case b.DD:case b.DT:{rW(e,t);break}case b.H1:case b.H2:case b.H3:case b.H4:case b.H5:case b.H6:{iW(e);break}case b.BR:{oW(e);break}case b.BODY:{Zq(e,t);break}case b.HTML:{Xq(e,t);break}case b.FORM:{eW(e);break}case b.APPLET:case b.OBJECT:case b.MARQUEE:{sW(e,t);break}case b.TEMPLATE:{Zo(e,t);break}default:mA(e,t)}}function gA(e,t){e.tmplInsertionModeStack.length>0?wA(e,t):Mb(e,t)}function aW(e,t){var n;t.tagID===b.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function lW(e,t){e._err(t,Y.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Bm(e,t){if(e.openElements.currentTagId!==void 0&&cA.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=D.IN_TABLE_TEXT,t.type){case Be.CHARACTER:{bA(e,t);break}case Be.WHITESPACE_CHARACTER:{yA(e,t);break}}else zc(e,t)}function uW(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,ne.HTML),e.insertionMode=D.IN_CAPTION}function cW(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ne.HTML),e.insertionMode=D.IN_COLUMN_GROUP}function dW(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(q.COLGROUP,b.COLGROUP),e.insertionMode=D.IN_COLUMN_GROUP,Bb(e,t)}function hW(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ne.HTML),e.insertionMode=D.IN_TABLE_BODY}function fW(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(q.TBODY,b.TBODY),e.insertionMode=D.IN_TABLE_BODY,tp(e,t)}function pW(e,t){e.openElements.hasInTableScope(b.TABLE)&&(e.openElements.popUntilTagNamePopped(b.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function mW(e,t){pA(t)?e._appendElement(t,ne.HTML):zc(e,t),t.ackSelfClosing=!0}function gW(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,ne.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function _l(e,t){switch(t.tagID){case b.TD:case b.TH:case b.TR:{fW(e,t);break}case b.STYLE:case b.SCRIPT:case b.TEMPLATE:{Br(e,t);break}case b.COL:{dW(e,t);break}case b.FORM:{gW(e,t);break}case b.TABLE:{pW(e,t);break}case b.TBODY:case b.TFOOT:case b.THEAD:{hW(e,t);break}case b.INPUT:{mW(e,t);break}case b.CAPTION:{uW(e,t);break}case b.COLGROUP:{cW(e,t);break}default:zc(e,t)}}function Ec(e,t){switch(t.tagID){case b.TABLE:{e.openElements.hasInTableScope(b.TABLE)&&(e.openElements.popUntilTagNamePopped(b.TABLE),e._resetInsertionMode());break}case b.TEMPLATE:{Zo(e,t);break}case b.BODY:case b.CAPTION:case b.COL:case b.COLGROUP:case b.HTML:case b.TBODY:case b.TD:case b.TFOOT:case b.TH:case b.THEAD:case b.TR:break;default:zc(e,t)}}function zc(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Jf(e,t),e.fosterParentingEnabled=n}function yA(e,t){e.pendingCharacterTokens.push(t)}function bA(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function hu(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)zc(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const _A=new Set([b.CAPTION,b.COL,b.COLGROUP,b.TBODY,b.TD,b.TFOOT,b.TH,b.THEAD,b.TR]);function yW(e,t){const n=t.tagID;_A.has(n)?e.openElements.hasInTableScope(b.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(b.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=D.IN_TABLE,_l(e,t)):ln(e,t)}function bW(e,t){const n=t.tagID;switch(n){case b.CAPTION:case b.TABLE:{e.openElements.hasInTableScope(b.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(b.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=D.IN_TABLE,n===b.TABLE&&Ec(e,t));break}case b.BODY:case b.COL:case b.COLGROUP:case b.HTML:case b.TBODY:case b.TD:case b.TFOOT:case b.TH:case b.THEAD:case b.TR:break;default:ep(e,t)}}function Bb(e,t){switch(t.tagID){case b.HTML:{ln(e,t);break}case b.COL:{e._appendElement(t,ne.HTML),t.ackSelfClosing=!0;break}case b.TEMPLATE:{Br(e,t);break}default:rf(e,t)}}function _W(e,t){switch(t.tagID){case b.COLGROUP:{e.openElements.currentTagId===b.COLGROUP&&(e.openElements.pop(),e.insertionMode=D.IN_TABLE);break}case b.TEMPLATE:{Zo(e,t);break}case b.COL:break;default:rf(e,t)}}function rf(e,t){e.openElements.currentTagId===b.COLGROUP&&(e.openElements.pop(),e.insertionMode=D.IN_TABLE,e._processToken(t))}function tp(e,t){switch(t.tagID){case b.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,ne.HTML),e.insertionMode=D.IN_ROW;break}case b.TH:case b.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(q.TR,b.TR),e.insertionMode=D.IN_ROW,np(e,t);break}case b.CAPTION:case b.COL:case b.COLGROUP:case b.TBODY:case b.TFOOT:case b.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE,_l(e,t));break}default:_l(e,t)}}function z0(e,t){const n=t.tagID;switch(t.tagID){case b.TBODY:case b.TFOOT:case b.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE);break}case b.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE,Ec(e,t));break}case b.BODY:case b.CAPTION:case b.COL:case b.COLGROUP:case b.HTML:case b.TD:case b.TH:case b.TR:break;default:Ec(e,t)}}function np(e,t){switch(t.tagID){case b.TH:case b.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,ne.HTML),e.insertionMode=D.IN_CELL,e.activeFormattingElements.insertMarker();break}case b.CAPTION:case b.COL:case b.COLGROUP:case b.TBODY:case b.TFOOT:case b.THEAD:case b.TR:{e.openElements.hasInTableScope(b.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE_BODY,tp(e,t));break}default:_l(e,t)}}function vA(e,t){switch(t.tagID){case b.TR:{e.openElements.hasInTableScope(b.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE_BODY);break}case b.TABLE:{e.openElements.hasInTableScope(b.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE_BODY,z0(e,t));break}case b.TBODY:case b.TFOOT:case b.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(b.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE_BODY,z0(e,t));break}case b.BODY:case b.CAPTION:case b.COL:case b.COLGROUP:case b.HTML:case b.TD:case b.TH:break;default:Ec(e,t)}}function vW(e,t){const n=t.tagID;_A.has(n)?(e.openElements.hasInTableScope(b.TD)||e.openElements.hasInTableScope(b.TH))&&(e._closeTableCell(),np(e,t)):ln(e,t)}function xW(e,t){const n=t.tagID;switch(n){case b.TD:case b.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=D.IN_ROW);break}case b.TABLE:case b.TBODY:case b.TFOOT:case b.THEAD:case b.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),vA(e,t));break}case b.BODY:case b.CAPTION:case b.COL:case b.COLGROUP:case b.HTML:break;default:ep(e,t)}}function xA(e,t){switch(t.tagID){case b.HTML:{ln(e,t);break}case b.OPTION:{e.openElements.currentTagId===b.OPTION&&e.openElements.pop(),e._insertElement(t,ne.HTML);break}case b.OPTGROUP:{e.openElements.currentTagId===b.OPTION&&e.openElements.pop(),e.openElements.currentTagId===b.OPTGROUP&&e.openElements.pop(),e._insertElement(t,ne.HTML);break}case b.HR:{e.openElements.currentTagId===b.OPTION&&e.openElements.pop(),e.openElements.currentTagId===b.OPTGROUP&&e.openElements.pop(),e._appendElement(t,ne.HTML),t.ackSelfClosing=!0;break}case b.INPUT:case b.KEYGEN:case b.TEXTAREA:case b.SELECT:{e.openElements.hasInSelectScope(b.SELECT)&&(e.openElements.popUntilTagNamePopped(b.SELECT),e._resetInsertionMode(),t.tagID!==b.SELECT&&e._processStartTag(t));break}case b.SCRIPT:case b.TEMPLATE:{Br(e,t);break}}}function EA(e,t){switch(t.tagID){case b.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===b.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===b.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===b.OPTGROUP&&e.openElements.pop();break}case b.OPTION:{e.openElements.currentTagId===b.OPTION&&e.openElements.pop();break}case b.SELECT:{e.openElements.hasInSelectScope(b.SELECT)&&(e.openElements.popUntilTagNamePopped(b.SELECT),e._resetInsertionMode());break}case b.TEMPLATE:{Zo(e,t);break}}}function EW(e,t){const n=t.tagID;n===b.CAPTION||n===b.TABLE||n===b.TBODY||n===b.TFOOT||n===b.THEAD||n===b.TR||n===b.TD||n===b.TH?(e.openElements.popUntilTagNamePopped(b.SELECT),e._resetInsertionMode(),e._processStartTag(t)):xA(e,t)}function wW(e,t){const n=t.tagID;n===b.CAPTION||n===b.TABLE||n===b.TBODY||n===b.TFOOT||n===b.THEAD||n===b.TR||n===b.TD||n===b.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(b.SELECT),e._resetInsertionMode(),e.onEndTag(t)):EA(e,t)}function TW(e,t){switch(t.tagID){case b.BASE:case b.BASEFONT:case b.BGSOUND:case b.LINK:case b.META:case b.NOFRAMES:case b.SCRIPT:case b.STYLE:case b.TEMPLATE:case b.TITLE:{Br(e,t);break}case b.CAPTION:case b.COLGROUP:case b.TBODY:case b.TFOOT:case b.THEAD:{e.tmplInsertionModeStack[0]=D.IN_TABLE,e.insertionMode=D.IN_TABLE,_l(e,t);break}case b.COL:{e.tmplInsertionModeStack[0]=D.IN_COLUMN_GROUP,e.insertionMode=D.IN_COLUMN_GROUP,Bb(e,t);break}case b.TR:{e.tmplInsertionModeStack[0]=D.IN_TABLE_BODY,e.insertionMode=D.IN_TABLE_BODY,tp(e,t);break}case b.TD:case b.TH:{e.tmplInsertionModeStack[0]=D.IN_ROW,e.insertionMode=D.IN_ROW,np(e,t);break}default:e.tmplInsertionModeStack[0]=D.IN_BODY,e.insertionMode=D.IN_BODY,ln(e,t)}}function SW(e,t){t.tagID===b.TEMPLATE&&Zo(e,t)}function wA(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(b.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Mb(e,t)}function kW(e,t){t.tagID===b.HTML?ln(e,t):sf(e,t)}function TA(e,t){var n;if(t.tagID===b.HTML){if(e.fragmentContext||(e.insertionMode=D.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===b.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else sf(e,t)}function sf(e,t){e.insertionMode=D.IN_BODY,Jf(e,t)}function CW(e,t){switch(t.tagID){case b.HTML:{ln(e,t);break}case b.FRAMESET:{e._insertElement(t,ne.HTML);break}case b.FRAME:{e._appendElement(t,ne.HTML),t.ackSelfClosing=!0;break}case b.NOFRAMES:{Br(e,t);break}}}function AW(e,t){t.tagID===b.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==b.FRAMESET&&(e.insertionMode=D.AFTER_FRAMESET))}function NW(e,t){switch(t.tagID){case b.HTML:{ln(e,t);break}case b.NOFRAMES:{Br(e,t);break}}}function PW(e,t){t.tagID===b.HTML&&(e.insertionMode=D.AFTER_AFTER_FRAMESET)}function IW(e,t){t.tagID===b.HTML?ln(e,t):gh(e,t)}function gh(e,t){e.insertionMode=D.IN_BODY,Jf(e,t)}function OW(e,t){switch(t.tagID){case b.HTML:{ln(e,t);break}case b.NOFRAMES:{Br(e,t);break}}}function LW(e,t){t.chars=ct,e._insertCharacters(t)}function RW(e,t){e._insertCharacters(t),e.framesetOk=!1}function SA(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==ne.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function jW(e,t){if(Q$(t))SA(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===ne.MATHML?lA(t):r===ne.SVG&&(Z$(t),uA(t)),jb(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function DW(e,t){if(t.tagID===b.P||t.tagID===b.BR){SA(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===ne.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}q.AREA,q.BASE,q.BASEFONT,q.BGSOUND,q.BR,q.COL,q.EMBED,q.FRAME,q.HR,q.IMG,q.INPUT,q.KEYGEN,q.LINK,q.META,q.PARAM,q.SOURCE,q.TRACK,q.WBR;const MW=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,BW=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),kE={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function kA(e,t){const n=GW(e),r=N2("type",{handlers:{root:FW,element:UW,text:HW,comment:AA,doctype:zW,raw:qW},unknown:WW}),i={parser:n?new wE(kE):wE.getFragmentParser(void 0,kE),handle(l){r(l,i)},stitches:!1,options:t||{}};r(e,i),Rl(i,gi());const s=n?i.parser.document:i.parser.getFragment(),a=Yz(s,{file:i.options.file});return i.stitches&&Xf(a,"comment",function(l,u,h){const f=l;if(f.value.stitch&&h&&u!==void 0){const m=h.children;return m[u]=f.value.stitch,u}}),a.type==="root"&&a.children.length===1&&a.children[0].type===e.type?a.children[0]:a}function CA(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function FW(e,t){CA(e.children,t)}function UW(e,t){VW(e,t),CA(e.children,t),KW(e,t)}function HW(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Be.CHARACTER,chars:e.value,location:$c(e)};Rl(t,gi(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function zW(e,t){const n={type:Be.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:$c(e)};Rl(t,gi(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function $W(e,t){t.stitches=!0;const n=YW(e);if("children"in e&&"children"in n){const r=kA({type:"root",children:e.children},t.options);n.children=r.children}AA({type:"comment",value:{stitch:n}},t)}function AA(e,t){const n=e.value,r={type:Be.COMMENT,data:n,location:$c(e)};Rl(t,gi(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function qW(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,NA(t,gi(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(MW,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function WW(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))$W(n,t);else{let r="";throw BW.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function Rl(e,t){NA(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Tt.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function NA(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function VW(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Tt.PLAINTEXT)return;Rl(t,gi(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:wo.html;i===wo.html&&n==="svg"&&(i=wo.svg);const s=e$({...e,children:[]},{space:i===wo.svg?"svg":"html"}),a={type:Be.START_TAG,tagName:n,tagID:Ll(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in s?s.attrs:[],location:$c(e)};t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function KW(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&l$.includes(n)||t.parser.tokenizer.state===Tt.PLAINTEXT)return;Rl(t,Vf(e));const r={type:Be.END_TAG,tagName:n,tagID:Ll(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:$c(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Tt.RCDATA||t.parser.tokenizer.state===Tt.RAWTEXT||t.parser.tokenizer.state===Tt.SCRIPT_DATA)&&(t.parser.tokenizer.state=Tt.DATA)}function GW(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function $c(e){const t=gi(e)||{line:void 0,column:void 0,offset:void 0},n=Vf(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function YW(e){return"children"in e?Vo({...e,children:[]}):Vo(e)}function QW(e){return function(t,n){return kA(t,{...e,file:n})}}const fo=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Jr={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...fo,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...fo],h2:[["className","sr-only"]],img:[...fo,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...fo,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...fo],table:[...fo],ul:[...fo,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},ms={}.hasOwnProperty;function ZW(e,t){let n={type:"root",children:[]};const r={schema:t?{...Jr,...t}:Jr,stack:[]},i=PA(r,e);return i&&(Array.isArray(i)?i.length===1?n=i[0]:n.children=i:n=i),n}function PA(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return XW(e,n);case"doctype":return JW(e,n);case"element":return eV(e,n);case"root":return tV(e,n);case"text":return nV(e,n)}}}function XW(e,t){if(e.schema.allowComments){const n=typeof t.value=="string"?t.value:"",r=n.indexOf("-->"),s={type:"comment",value:r<0?n:n.slice(0,r)};return qc(s,t),s}}function JW(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return qc(n,t),n}}function eV(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const r=IA(e,t.children),i=rV(e,t.properties);e.stack.pop();let s=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(s=!0,e.schema.ancestors&&ms.call(e.schema.ancestors,n))){const l=e.schema.ancestors[n];let u=-1;for(s=!1;++u<l.length;)e.stack.includes(l[u])&&(s=!0)}if(!s)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;const a={type:"element",tagName:n,properties:i,children:r};return qc(a,t),a}function tV(e,t){const r={type:"root",children:IA(e,t.children)};return qc(r,t),r}function nV(e,t){const r={type:"text",value:typeof t.value=="string"?t.value:""};return qc(r,t),r}function IA(e,t){const n=[];if(Array.isArray(t)){const r=t;let i=-1;for(;++i<r.length;){const s=PA(e,r[i]);s&&(Array.isArray(s)?n.push(...s):n.push(s))}}return n}function rV(e,t){const n=e.stack[e.stack.length-1],r=e.schema.attributes,i=e.schema.required,s=r&&ms.call(r,n)?r[n]:void 0,a=r&&ms.call(r,"*")?r["*"]:void 0,l=t&&typeof t=="object"?t:{},u={};let h;for(h in l)if(ms.call(l,h)){const f=l[h];let m=CE(e,AE(s,h),h,f);m==null&&(m=CE(e,AE(a,h),h,f)),m!=null&&(u[h]=m)}if(i&&ms.call(i,n)){const f=i[n];for(h in f)ms.call(f,h)&&!ms.call(u,h)&&(u[h]=f[h])}return u}function CE(e,t,n,r){return t?Array.isArray(r)?iV(e,t,n,r):OA(e,t,n,r):void 0}function iV(e,t,n,r){let i=-1;const s=[];for(;++i<r.length;){const a=OA(e,t,n,r[i]);
280(typeof a=="number"||typeof a=="string")&&s.push(a)}return s}function OA(e,t,n,r){if(!(typeof r!="boolean"&&typeof r!="number"&&typeof r!="string")&&sV(e,n,r)){if(typeof t=="object"&&t.length>1){let i=!1,s=0;for(;++s<t.length;){const a=t[s];if(a&&typeof a=="object"&&"flags"in a){if(a.test(String(r))){i=!0;break}}else if(a===r){i=!0;break}}if(!i)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function sV(e,t,n){const r=e.schema.protocols&&ms.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||r.length===0)return!0;const i=String(n),s=i.indexOf(":"),a=i.indexOf("?"),l=i.indexOf("#"),u=i.indexOf("/");if(s<0||u>-1&&s>u||a>-1&&s>a||l>-1&&s>l)return!0;let h=-1;for(;++h<r.length;){const f=r[h];if(s===f.length&&i.slice(0,f.length)===f)return!0}return!1}function qc(e,t){const n=ZC(t);t.data&&(e.data=Vo(t.data)),n&&(e.position=n)}function AE(e,t){let n,r=-1;if(e)for(;++r<e.length;){const i=e[r],s=typeof i=="string"?i:i[0];if(s===t)return i;s==="data*"&&(n=i)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return n}function oV(e){return function(t){return ZW(t,e)}}const aV=[{value:"one_off",label:"One-off"},{value:"spare_set",label:"Spare set"},{value:"recurring",label:"Recurring"},{value:"spec_in",label:"Spec-in"}],lV=[{value:"breakdown_today",label:"Breakdown today"},{value:"week",label:"Within a week"},{value:"planned",label:"Planned"},{value:"spec_phase",label:"Spec phase"}];function Fb({productType:e,productDetail:t="",pageType:n="",pageSlug:r="",heading:i,subheading:s="A UK specialist will respond within 1 working day with pricing and lead time on a like-for-like equivalent."}){const a=e==="mechanical_seal"?"mechanical seal":"O-ring",l=i??(t?`Get a quotation for a ${t} equivalent ${a}`:`Get a quotation for an equivalent ${a}`),{pathname:u}=Ln(),[h,f]=A.useState(""),[m,y]=A.useState(""),[g,x]=A.useState(""),[v,k]=A.useState(""),[E,S]=A.useState(""),[T,P]=A.useState(""),[F,O]=A.useState(""),[H,K]=A.useState(""),[Q,M]=A.useState(""),[Z,W]=A.useState(""),[ce,ee]=A.useState(!1),de=se=>{if(se.preventDefault(),W(""),!h.trim())return W("Please enter your name.");if(!g.trim())return W("Please enter your email.");if(E.trim().length<50)return W("Please describe your enquiry in at least 50 characters.");z5({name:h.trim(),business_name:m.trim()||void 0,email:g.trim(),phone:v.trim()||void 0,product_type:e,product_detail:t||void 0,enquiry:E.trim(),application:T.trim()||void 0,quantity:F||void 0,urgency:H||void 0,current_supplier:Q.trim()||void 0,source_path:u,page_type:n||void 0,page_slug:r||void 0}),ee(!0)};return ce?c.jsx("section",{className:"my-8 border border-primary bg-card p-6",children:c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx(Yy,{className:"text-primary mt-0.5",size:20}),c.jsxs("div",{children:[c.jsx("h3",{className:"font-heading font-semibold text-foreground mb-1",children:"Thanks â enquiry received."}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"A UK specialist will respond within 1 working day with pricing and lead time on a like-for-like equivalent."})]})]})}):c.jsxs("section",{className:"my-8 border border-border bg-card p-5 sm:p-6","aria-label":"Seal enquiry form",children:[c.jsx("h3",{className:"font-heading font-semibold text-lg text-foreground mb-1",children:l}),c.jsx("p",{className:"text-sm text-muted-foreground mb-5",children:s}),c.jsxs("form",{onSubmit:de,className:"space-y-4",children:[c.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[c.jsx(us,{label:"Name",required:!0,children:c.jsx("input",{type:"text",value:h,onChange:se=>f(se.target.value),required:!0,className:ls})}),c.jsx(us,{label:"Business name",children:c.jsx("input",{type:"text",value:m,onChange:se=>y(se.target.value),className:ls})}),c.jsx(us,{label:"Email",required:!0,children:c.jsx("input",{type:"email",value:g,onChange:se=>x(se.target.value),required:!0,className:ls})}),c.jsx(us,{label:"Phone",children:c.jsx("input",{type:"tel",value:v,onChange:se=>k(se.target.value),className:ls})})]}),t&&c.jsx(us,{label:"Product",children:c.jsx("input",{type:"text",value:t,readOnly:!0,className:`${ls} bg-muted/40 cursor-not-allowed`})}),c.jsxs(us,{label:"Enquiry",required:!0,hint:"50+ characters",children:[c.jsx("textarea",{value:E,onChange:se=>S(se.target.value),rows:4,required:!0,className:ls}),c.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[E.trim().length,"/50"]})]}),c.jsx(us,{label:"Application",hint:"fluid, temperature, pressure, RPM",children:c.jsx("input",{type:"text",value:T,onChange:se=>P(se.target.value),className:ls})}),c.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[c.jsx(NE,{label:"Quantity",name:"quantity",value:F,onChange:O,options:aV}),c.jsx(NE,{label:"Urgency",name:"urgency",value:H,onChange:K,options:lV})]}),c.jsx(us,{label:"Current supplier",children:c.jsx("input",{type:"text",value:Q,onChange:se=>M(se.target.value),className:ls})}),Z&&c.jsx("p",{className:"text-xs text-destructive",children:Z}),c.jsx("button",{type:"submit",className:"bg-primary text-primary-foreground px-6 py-2.5 text-sm font-semibold hover:opacity-90 transition-opacity",children:"Send enquiry"})]})]})}const ls="w-full border border-border bg-background px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary";function us({label:e,required:t,hint:n,children:r}){return c.jsxs("div",{children:[c.jsxs("label",{className:"block text-xs font-semibold text-muted-foreground mb-1.5",children:[e," ",t&&c.jsx("span",{className:"text-primary",children:"*"})," ",n&&c.jsxs("span",{className:"font-normal",children:["(",n,")"]})]}),r]})}function NE({label:e,name:t,value:n,onChange:r,options:i}){return c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-semibold text-muted-foreground mb-1.5",children:e}),c.jsx("div",{className:"flex flex-wrap gap-2",children:i.map(s=>{const a=n===s.value;return c.jsx("button",{type:"button",onClick:()=>
280r(s.value),className:`px-3 py-1.5 text-xs font-semibold border transition-colors ${a?"bg-primary text-primary-foreground border-primary":"bg-card text-muted-foreground border-border hover:border-primary"}`,children:s.label},s.value)})}),c.jsx("input",{type:"hidden",name:t,value:n})]})}function Ub({variant:e="all",className:t=""}){return c.jsxs("aside",{className:`mt-10 border-l-2 border-border bg-muted/40 p-4 text-xs text-muted-foreground leading-relaxed ${t}`,"aria-label":"Trademark notice",children:[c.jsx("p",{className:"font-semibold text-foreground mb-1",children:"Trademark notice"}),(e==="ffkm"||e==="all")&&c.jsxs("p",{children:["Kalrez",c.jsx("sup",{children:"®"})," is a registered trademark of DuPont. Chemraz",c.jsx("sup",{children:"®"})," is a registered trademark of Greene Tweed. Perlast",c.jsx("sup",{children:"®"})," and Isolast",c.jsx("sup",{children:"®"})," are registered trademarks of Precision Polymer Engineering (IDEX). Markez",c.jsx("sup",{children:"®"})," is a registered trademark of Marco Rubber. Simriz",c.jsx("sup",{children:"®"})," is a registered trademark of Freudenberg Sealing Technologies. Tecnoflon",c.jsx("sup",{children:"®"})," is a registered trademark of Solvay/Syensqo. Parofluor",c.jsx("sup",{children:"®"})," is a registered trademark of Parker Hannifin. Aflas",c.jsx("sup",{children:"®"})," ","is a registered trademark of AGC Inc."]}),(e==="mechanical-seal"||e==="all")&&c.jsxs("p",{className:"mt-2",children:["John Crane",c.jsx("sup",{children:"®"}),", AESSEAL",c.jsx("sup",{children:"®"}),", Flowserve",c.jsx("sup",{children:"®"}),", EagleBurgmann",c.jsx("sup",{children:"®"})," and other manufacturer names are trademarks of their respective owners."]}),c.jsx("p",{className:"mt-2",children:"My Local Components is independent and not affiliated with, endorsed by, or sponsored by any of the brand owners listed. All trademarks are the property of their respective owners and are referenced for identification and cross-reference purposes only."})]})}const Er=[["className",/.*/],["class",/.*/],["style",/.*/],["id",/.*/],["type",/.*/],["value",/.*/],["step",/.*/],["min",/.*/],["max",/.*/],["placeholder",/.*/],["name",/.*/],["selected",/.*/],["checked",/.*/],["disabled",/.*/],["readOnly",/.*/],["readonly",/.*/],["for",/.*/],["htmlFor",/.*/],["rows",/.*/],["cols",/.*/],["inputMode",/.*/],["inputmode",/.*/],["multiple",/.*/]];var HE,zE,$E,qE;const uV={...Jr,clobberPrefix:"",required:{...Jr.required||{},input:{}},tagNames:[...Jr.tagNames||[],"figure","figcaption","aside","section","details","summary","input","select","option","optgroup","textarea","button","label","fieldset","legend","output","form"],attributes:{...Jr.attributes,a:[...((HE=Jr.attributes)==null?void 0:HE.a)||[],["rel",/.*/],["target",/.*/],["data-affiliate-domain",/.*/],["className",/.*/],["class",/.*/],["style",/.*/]],div:[...((zE=Jr.attributes)==null?void 0:zE.div)||[],["data-mlc-form",/.*/],["data-product-type",/.*/],["data-product-detail",/.*/],["data-page-type",/.*/],["data-page-slug",/.*/],["data-form-heading",/.*/],["data-form-subheading",/.*/],["className",/.*/],["class",/.*/],["style",/.*/],["id",/.*/]],span:[...(($E=Jr.attributes)==null?void 0:$E.span)||[],["className",/.*/],["class",/.*/],["style",/.*/]],figure:[["className",/.*/],["class",/.*/],["style",/.*/]],figcaption:[["className",/.*/],["class",/.*/],["style",/.*/]],aside:[["className",/.*/],["class",/.*/],["style",/.*/]],section:[["className",/.*/],["class",/.*/],["style",/.*/]],input:Er,select:Er,option:Er,optgroup:Er,textarea:Er,button:Er,label:Er,fieldset:Er,legend:Er,output:Er,form:Er,"*":[...((qE=Jr.attributes)==null?void 0:qE["*"])||[],"className","class","style","id"]}};function cV(e){const t=[],n=/<script\b[^>]*>([\s\S]*?)<\/script>/gi;let r;for(;(r=n.exec(e))!==null;)r[1]&&r[1].trim()&&t.push(r[1]);return t}const dV={input:({value:e,...t})=>c.jsx("input",{...t,defaultValue:e}),textarea:({value:e,children:t,...n})=>c.jsx("textarea",{...n,defaultValue:e??t}),select:({value:e,...t})=>c.jsx("select",{...t,defaultValue:e}),option:({selected:e,...t})=>c.jsx("option",{...t})};function Ki({content:e,className:t=""}){const n=A.useRef(null),r=A.useRef(null),[i,s]=A.useState([]);return A.useEffect(()=>{const a=n.current;if(!a)return;const l=a.querySelectorAll('[data-mlc-form="seal_enquiry"]'),u=[];l.forEach(h=>{h.innerHTML="",u.push({el:h,productType:h.dataset.productType||"other",productDetail:h.dataset.productDetail||"",pageType:h.dataset.pageType||"",pageSlug:h.dataset.pageSlug||""})}),s(u)},[e]),A.useEffect(()=>{const a=r.current;if(!a||!e)return;const l=cV(e);if(l.length===0)return;const u=requestAnimationFrame(()=>{l.forEach(h=>{const f=document.createElement("script");f.type="text/javascript",f.textContent=h,a.appendChild(f)})});return()=>{cancelAnimationFrame(u),a.innerHTML=""}},[e]),e?c.jsxs(c.Fragment,{children:[c.jsx("div",{ref:n,className:`mlc-content ${t}`,children:c.jsx(SH,{remarkPlugins:[Bz],rehypePlugins:[QW,[oV,uV]],components:dV,children:e})}),c.jsx("div",{ref:r,hidden:!0}),i.map((a,l)=>wl.createPortal(c.jsxs(c.Fragment,{children:[c.jsx(Fb,{productType:a.productType,productDetail:a.productDetail,pageType:a.pageType,pageSlug:a.pageSlug}),c.jsx(Ub,{variant:a.productType==="mechanical_seal"?"mechanical-seal":"ffkm"})]}),a.el,`seal-form-${l}`))]}):null}function kt({items:e}){return c.jsx("nav",{"aria-label":"Breadcrumb",className:"text-xs text-muted-foreground mb-4",children:c.jsx("ol",{className:"flex flex-wrap items-center gap-1",children:e.map((t,n)=>c.jsxs("li",{className:"flex items-center gap-1",children:[n>0&&c.jsx(ik,{size:12}),n<e.length-1?c.jsx(xe,{to:t.href,className:"hover:text-primary transition-colors",children:t.name}):c.jsx("span",{className:"text-foreground font-medium",children:t.name})]},t.href))})})}
280function Fr({title:e,subtitle:t,backgroundImage:n,children:r}){return c.jsxs("section",{className:"relative bg-secondary text-secondary-foreground overflow-hidden",children:[c.jsx("img",{src:n,alt:"",role:"presentation",className:"absolute inset-0 w-full h-full object-cover",width:1920,height:640,loading:"eager",fetchPriority:"high"}),c.jsx("div",{className:"absolute inset-0 bg-secondary/80"}),c.jsxs("div",{className:"relative container-wide py-14 sm:py-20",children:[c.jsx("h1",{className:"text-3xl sm:text-4xl font-heading font-bold max-w-2xl leading-tight",children:e}),t&&c.jsx("p",{className:"mt-3 text-secondary-foreground/70 max-w-xl text-sm sm:text-base",children:t}),r]})]})}function hV({name:e,slug:t,jobTitle:n}){return c.jsxs("div",{className:"flex flex-col",children:[c.jsx(xe,{to:`/contributors/${t}`,className:"text-sm font-medium text-primary hover:underline",children:e}),c.jsx("span",{className:"text-xs text-muted-foreground",children:n})]})}function Gi({name:e,slug:t,jobTitle:n,bio:r}){return c.jsxs("div",{className:"border border-border bg-card p-6 mt-8",children:[c.jsx("h3",{className:"text-sm font-heading font-semibold text-muted-foreground uppercase tracking-wider mb-3",children:"About the contributor"}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[c.jsx("div",{className:"w-12 h-12 rounded-sm bg-muted flex items-center justify-center text-primary font-bold text-lg flex-shrink-0",children:e.charAt(0)}),c.jsxs("div",{children:[c.jsx(xe,{to:`/contributors/${t}`,className:"font-heading font-semibold text-foreground hover:text-primary",children:e}),c.jsx("p",{className:"text-sm text-muted-foreground",children:n}),r&&c.jsx("p",{className:"text-sm text-muted-foreground mt-2 line-clamp-3",children:r}),c.jsxs(xe,{to:`/contributors/${t}`,className:"text-sm text-primary hover:underline mt-2 inline-block",children:["View all articles by ",e.split(" ")[0]," â"]})]})]})]})}function Yi({title:e,category:t,contributorName:n,contributorSlug:r,contributorTitle:i,verifiedDate:s,readTime:a}){return c.jsxs("div",{className:"mb-8",children:[c.jsx("h1",{className:"text-2xl sm:text-3xl font-heading font-bold text-foreground mb-3",children:e}),c.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm",children:[t&&c.jsx("span",{className:"inline-block bg-primary text-primary-foreground text-xs font-semibold px-2.5 py-0.5",children:t}),n&&r&&i&&c.jsx(hV,{name:n,slug:r,jobTitle:i}),s&&c.jsxs("span",{className:"text-xs text-muted-foreground",children:["Verified ",s]}),a&&c.jsxs("span",{className:"text-xs text-muted-foreground",children:[a," read"]})]}),c.jsx("p",{className:"text-xs text-muted-foreground mt-3 border-t border-border pt-3",children:"Independent directory. Supplier data verified via Companies House."})]})}function fV({size:e=16}){return c.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})}function Qi({title:e,url:t}){const n=t||(typeof window<"u"?window.location.href:""),r=()=>{navigator.clipboard.writeText(n),mR.success("Link copied to clipboard")};return c.jsxs("div",{className:"flex items-center gap-3 py-4 mt-6 border-t border-border",children:[c.jsx("span",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider",children:"Share this page"}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("button",{onClick:r,className:"p-2 text-muted-foreground hover:text-primary transition-colors",title:"Copy link",children:c.jsx(O3,{size:16})}),c.jsx("a",{href:`mailto:?subject=${encodeURIComponent(e)}&body=${encodeURIComponent(n)}`,className:"p-2 text-muted-foreground hover:text-primary transition-colors",title:"Email",children:c.jsx(Qy,{size:16})}),c.jsx("a",{href:`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(n)}`,target:"_blank",rel:"noopener noreferrer",className:"p-2 text-muted-foreground hover:text-primary transition-colors",title:"LinkedIn",children:c.jsx(R3,{size:16})}),c.jsx("a",{href:`https://x.com/intent/tweet?url=${encodeURIComponent(n)}&text=${encodeURIComponent(e)}`,target:"_blank",rel:"noopener noreferrer",className:"p-2 text-muted-foreground hover:text-primary transition-colors",title:"X (Twitter)",children:c.jsx(fV,{size:16})})]})]})}function Zi({sources:e}){return!e||!Array.isArray(e)||e.length===0?null:c.jsxs("section",{className:"mt-8 pt-6 border-t border-border",children:[c.jsx("h3",{className:"text-sm font-heading font-semibold text-muted-foreground uppercase tracking-wider mb-3",children:"References"}),c.jsx("ol",{className:"list-decimal list-inside space-y-1",children:e.map((t,n)=>c.jsx("li",{className:"text-sm text-muted-foreground",children:t.url?c.jsx("a",{href:t.url,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:t.title}):t.title},n))})]})}function pV({data:e}){if(!e)return null;let t=[];return Array.isArray(e)?t=e:typeof e=="object"&&(t=Object.entries(e).map(([n,r])=>({property:n,value:String(r)}))),t.length===0?null:c.jsxs("div",{className:"border-l-4 border-primary p-4 sm:p-6 bg-accent mb-8 rounded-r",children:[c.jsx("h3",{className:"font-heading font-semibold text-primary mb-3 text-base",children:"Qu
280ick Specifications"}),c.jsx("table",{className:"w-full text-sm",children:c.jsx("tbody",{children:t.map((n,r)=>c.jsxs("tr",{className:"border-b border-border last:border-b-0",children:[c.jsx("td",{className:"py-2 pr-4 font-medium text-foreground whitespace-nowrap",children:n.property}),c.jsx("td",{className:"py-2 text-muted-foreground",children:n.value})]},r))})})]})}function Xi({faq:e}){if(!e||!Array.isArray(e)||e.length===0)return null;const t=e.map(n=>{var r;return{question:n.question||n.name||"",answer:n.answer||((r=n.acceptedAnswer)==null?void 0:r.text)||""}}).filter(n=>n.question&&n.answer);return c.jsxs("section",{className:"mt-10 border-l-4 border-primary pl-6",children:[c.jsx("h2",{className:"text-xl font-heading font-bold text-foreground mb-4",children:"Frequently Asked Questions"}),c.jsx("div",{className:"space-y-2",children:t.map((n,r)=>c.jsx(mV,{question:n.question,answer:n.answer},r))})]})}function mV({question:e,answer:t}){const[n,r]=A.useState(!1);return c.jsxs("div",{className:"border border-border bg-card",children:[c.jsxs("button",{onClick:()=>r(!n),className:"w-full flex items-center justify-between p-4 text-left",children:[c.jsx("span",{className:"font-semibold text-sm text-foreground pr-4",children:e}),c.jsx(rk,{className:`w-5 h-5 text-primary flex-shrink-0 transition-transform duration-200 ${n?"rotate-180":""}`})]}),c.jsx("div",{className:`overflow-hidden transition-all duration-200 ${n?"max-h-96":"max-h-0"}`,children:c.jsx("p",{className:"px-4 pb-4 text-sm text-muted-foreground leading-relaxed",children:t})})]})}function Ji(){return c.jsxs("div",{className:"container-narrow py-12 animate-pulse",children:[c.jsx("div",{className:"h-4 w-24 bg-muted rounded mb-4"}),c.jsx("div",{className:"h-8 w-3/4 bg-muted rounded mb-3"}),c.jsxs("div",{className:"flex gap-3 mb-8",children:[c.jsx("div",{className:"h-5 w-20 bg-muted rounded"}),c.jsx("div",{className:"h-5 w-32 bg-muted rounded"}),c.jsx("div",{className:"h-5 w-16 bg-muted rounded"})]}),c.jsxs("div",{className:"space-y-3",children:[c.jsx("div",{className:"h-4 w-full bg-muted rounded"}),c.jsx("div",{className:"h-4 w-5/6 bg-muted rounded"}),c.jsx("div",{className:"h-4 w-4/5 bg-muted rounded"}),c.jsx("div",{className:"h-4 w-full bg-muted rounded"}),c.jsx("div",{className:"h-4 w-3/4 bg-muted rounded"})]})]})}function eo({count:e=6}){return c.jsxs("div",{className:"container-wide py-12 animate-pulse",children:[c.jsx("div",{className:"h-8 w-48 bg-muted rounded mb-8"}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:Array.from({length:e}).map((t,n)=>c.jsxs("div",{className:"border border-border bg-card p-5",children:[c.jsx("div",{className:"h-5 w-3/4 bg-muted rounded mb-2"}),c.jsx("div",{className:"h-4 w-full bg-muted rounded"}),c.jsx("div",{className:"h-4 w-2/3 bg-muted rounded mt-1"})]},n))})]})}const gV="/assets/products-CYRWnE-9.jpg";function to(){const{pathname:e}=Ln(),[t,n]=A.useState(!1),r=i=>{t||(U5(e,i),n(!0))};return c.jsx("section",{className:"border-t border-border mt-10 pt-6","aria-label":"Page feedback",children:t?c.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[c.jsx(Yy,{size:16,className:"text-primary"}),c.jsx("span",{children:"Thanks for your feedback."})]}):c.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[c.jsx("span",{className:"text-sm font-heading font-semibold text-foreground",children:"Was this page helpful?"}),c.jsxs("button",{type:"button",onClick:()=>r(!0),className:"inline-flex items-center gap-1.5 border border-border bg-card px-3 py-1.5 text-sm hover:border-primary hover:text-primary transition-colors","aria-label":"Yes, this page was helpful",children:[c.jsx(H3,{size:14}),"Yes"]}),c.jsxs("button",{type:"button",onClick:()=>r(!1),className:"inline-flex items-center gap-1.5 border border-border bg-card px-3 py-1.5 text-sm hover:border-primary hover:text-primary transition-colors","aria-label":"No, this page was not helpful",children:[c.jsx(U3,{size:14}),"No"]})]})})}function yV(){const[e,t]=A.useState("az"),[n,r]=A.useState(""),{data:i,isLoading:s}=He({queryKey:["product_categories_hub"],queryFn:async()=>{const{data:u}=await Ie.from("product_categories").select("name, slug, icon, seo_de
280scription, parent_slug").eq("is_published",!0).order("name");return u||[]}}),a=A.useMemo(()=>i?[...new Set(i.map(u=>u.parent_slug).filter(Boolean))]:[],[i]),l=A.useMemo(()=>{let u=i||[];return n&&(u=u.filter(h=>h.parent_slug===n)),e==="az"&&(u=[...u].sort((h,f)=>(h.name||"").localeCompare(f.name||""))),u},[i,n,e]);return s?c.jsx(_e,{children:c.jsx(eo,{count:9})}):c.jsxs(_e,{children:[c.jsx(Ye,{title:"Engineering Product Categories",description:"Browse 15 categories of engineering components from UK suppliers.",canonical:"/products"}),c.jsx(St,{items:[{name:"Home",url:"/"},{name:"Products",url:"/products"}]}),c.jsx(Fr,{title:"Product Categories",subtitle:"Browse 15 categories of engineering components from UK suppliers.",backgroundImage:gV}),c.jsxs("div",{className:"container-wide py-12",children:[c.jsx(kt,{items:[{name:"Home",href:"/"},{name:"Products",href:"/products"}]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-8 text-sm",children:[c.jsx("span",{className:"text-muted-foreground font-medium",children:"Sort:"}),c.jsx("button",{onClick:()=>t("az"),className:`px-3 py-1.5 border transition-colors ${e==="az"?"bg-primary text-primary-foreground border-primary":"border-border text-muted-foreground hover:text-foreground"}`,children:"A-Z"}),c.jsx("button",{onClick:()=>t("suppliers"),className:`px-3 py-1.5 border transition-colors ${e==="suppliers"?"bg-primary text-primary-foreground border-primary":"border-border text-muted-foreground hover:text-foreground"}`,children:"Most Suppliers"}),a.length>0&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"text-muted-foreground font-medium ml-4",children:"Category:"}),c.jsx("button",{onClick:()=>r(""),className:`px-3 py-1.5 border transition-colors ${n?"border-border text-muted-foreground hover:text-foreground":"bg-primary text-primary-foreground border-primary"}`,children:"All"}),a.map(u=>c.jsx("button",{onClick:()=>r(u),className:`px-3 py-1.5 border transition-colors ${n===u?"bg-primary text-primary-foreground border-primary":"border-border text-muted-foreground hover:text-foreground"}`,children:u},u))]})]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:l.map(u=>c.jsxs(xe,{to:`/products/${u.slug}`,onClick:()=>qo("click_product","product_category",u.slug||"",u.name||""),className:"border border-border bg-card p-5 hover:border-primary transition-colors group",children:[c.jsx("h2",{className:"font-heading font-semibold group-hover:text-primary",children:u.name}),u.seo_description&&c.jsx("p",{className:"text-sm text-muted-foreground mt-1 line-clamp-2",children:u.seo_description})]},u.slug))})]})]})}function bV(){const{slug:e}=fi(),{data:t,isLoading:n}=He({queryKey:["product_category",e],queryFn:async()=>{const{data:i}=await Ie.from("product_categories").select("*, authors(name, slug, job_title, bio)").eq("slug",e).eq("is_published",!0).single();return i}});if(n)return c.jsx(_e,{children:c.jsx(Ji,{})});if(!t)return c.jsx(_e,{children:c.jsx("div",{className:"container-wide py-12",children:c.jsx("p",{children:"Not found."})})});const r=t.authors;return c.jsxs(_e,{children:[c.jsx(Ye,{contentPage:!0,title:t.name||"",description:t.seo_description||"",canonical:`/products/${e}`,ogType:"article",ogImage:Wi(t.sources_json),author:r==null?void 0:r.name,noindex:t.noindex||!1}),c.jsxs("div",{className:"container-narrow py-12",children:[c.jsx(kt,{items:[{name:"Home",href:"/"},{name:"Products",href:"/products"},{name:t.name||"",href:`/products/${e}`}]}),c.jsx(Yi,{title:t.name||"",category:"Product Category",contributorName:r==null?void 0:r.name,contributorSlug:r==null?void 0:r.slug,contributorTitle:r==null?void 0:r.job_title,verifiedDate:pr(t.updated_at),readTime:qi(t.seo_content)}),c.jsx(pV,{data:t.specs_table}),c.jsx(Ki,{content:t.seo_content}),c.jsx(Xi,{faq:t.faq_json}),c.jsx(to,{}),c.jsx(Zi,{sources:t.sources_json}),c.jsx(Qi,{title:t.name||""}),r&&c.jsx(Gi,{name:r.name,slug:r.slug,jobTitle:r.job_title,bio:r.bio})]})]})}const _V="/assets/suppliers-Br0p2Nis.jpg";function vV(e){if(!e)return"";const t=new Date(e),n=Date.now()-t.getTime(),r=Math.floor(n/864e5);if(r<1)return"today";if(r===1)return"1 day ago";if(r<30)return`${r} days ago`;const i=Math.floor(r/30);if(i===1)return"1 month ago";if(i<12)return`${i} months ago`;const s=Math.floor(r/365);
280return s===1?"1 year ago":`${s} years ago`}function xV({value:e,size:t=14}){return c.jsx("div",{className:"flex items-center gap-0.5","aria-label":`${e} out of 5 stars`,children:[1,2,3,4,5].map(n=>c.jsx(ok,{size:t,className:n<=e?"fill-primary text-primary":"text-muted-foreground/40"},n))})}function LA({pageType:e,entityName:t}){const{pathname:n}=Ln(),[r,i]=A.useState(!1),[s,a]=A.useState(0),[l,u]=A.useState(""),[h,f]=A.useState(""),[m,y]=A.useState(""),[g,x]=A.useState(!1),[v,k]=A.useState(""),{data:E}=He({queryKey:["user_experiences",n],queryFn:async()=>{const{data:T}=await Ie.from("user_experiences").select("id, name, rating, comment, created_at").eq("page_path",n).eq("is_published",!0).eq("is_approved",!0).order("created_at",{ascending:!1}).limit(10);return T||[]}}),S=T=>{if(T.preventDefault(),k(""),!s||s<1||s>5){k("Please choose a rating from 1 to 5 stars.");return}if(l.trim().length<50){k("Please write at least 50 characters.");return}H5({pagePath:n,pageType:e,rating:s,comment:l.trim(),name:h.trim()||void 0,email:m.trim()||void 0}),x(!0),a(0),u(""),f(""),y(""),setTimeout(()=>i(!1),4e3)};return c.jsxs("section",{className:"mt-10 pt-6 border-t border-border","aria-label":"User experiences",children:[c.jsxs("h2",{className:"font-heading font-semibold text-lg mb-4",children:["User experiences with ",t]}),E&&E.length>0?c.jsx("ul",{className:"space-y-4 mb-6",children:E.map(T=>{var P;return c.jsxs("li",{className:"border border-border bg-card p-4",children:[c.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 mb-2",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(xV,{value:T.rating||0}),c.jsx("span",{className:"text-sm font-heading font-semibold text-foreground",children:((P=T.name)==null?void 0:P.trim())||"Anonymous"})]}),c.jsx("span",{className:"text-xs text-muted-foreground",children:vV(T.created_at)})]}),c.jsx("p",{className:"text-sm text-foreground whitespace-pre-line",children:T.comment})]},T.id)})}):c.jsx("p",{className:"text-sm text-muted-foreground mb-6",children:"No experiences shared yet. Be the first to add one."}),c.jsxs("details",{open:r,onToggle:T=>i(T.target.open),className:"border border-border bg-card",children:[c.jsxs("summary",{className:"cursor-pointer px-4 py-3 text-sm font-heading font-semibold text-foreground hover:text-primary",children:["Share your experience with ",t]}),c.jsx("div",{className:"p-4 border-t border-border",children:g?c.jsxs("div",{className:"flex items-center gap-2 text-sm text-primary",children:[c.jsx(Yy,{size:16}),c.jsx("span",{children:"Thanks â your review will be published after moderation."})]}):c.jsxs("form",{onSubmit:S,className:"space-y-4",children:[c.jsxs("div",{children:[c.jsxs("label",{className:"block text-xs font-semibold text-muted-foreground mb-1.5",children:["Rating ",c.jsx("span",{className:"text-primary",children:"*"})]}),c.jsx("div",{className:"flex items-center gap-1",children:[1,2,3,4,5].map(T=>c.jsx("button",{type:"button",onClick:()=>a(T),"aria-label":`${T} stars`,className:"p-1",children:c.jsx(ok,{size:22,className:T<=s?"fill-primary text-primary":"text-muted-foreground/40 hover:text-primary"})},T))})]}),c.jsxs("div",{children:[c.jsxs("label",{htmlFor:"exp-comment",className:"block text-xs font-semibold text-muted-foreground mb-1.5",children:["Comment ",c.jsx("span",{className:"text-primary",children:"*"})," ",c.jsx("span",{className:"font-normal",children:"(50+ characters)"})]}),c.jsx("textarea",{id:"exp-comment",value:l,onChange:T=>u(T.target.value),rows:4,className:"w-full border border-border bg-background px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary",required:!0}),c.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[l.trim().length,"/50"]})]}),c.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsxs("label",{htmlFor:"exp-name",className:"block text-xs font-semibold text-muted-foreground mb-1.5",children:["Name ",c.jsx("span",{className:"font-normal",children:"(optional)"})]}),c.jsx("input",{id:"exp-name",type:"text",value:h,onChange:T=>f(T.target.value),className:"w-full border border-border bg-background px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary"})]}),c.jsxs("div",{children:[c.jsxs("label",{htmlFor:"exp-email",className:"block text-xs font-semibold text-muted-foreground mb-1.5",children:["Email ",c.jsx("span",{className:"font-normal",children:"(optional, won't be published)"})]}),c.jsx("input",{id:"exp-email",type:"email",value:m,onChange:T=>y(T.target.value),className:"w-full border border-border bg-background px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary"})]})]}),v&&c.jsx("p",{className:"text-xs text-destructive",children:v}),c.jsx("button",{type:"submit",className:"bg-primary text-primary-foreground px-5 py-2 text-sm font-semibold hover:opacity-90 transition-opacity",children:"Submit"})]})})]})]})}function EV(){const[e,t]=A.useState("az"),[n,r]=A.useState([]),[i,s]=A.useState(""),[a,l]=A.useState(""),{data:u,isLoading:h}=He({queryKey:["suppliers_hub"],queryFn:async()=>{const{data:v}=await Ie.from("suppliers").select("name, slug, seo_description, company_
280status, area_slug, product_categories, certifications, created_at").eq("is_published",!0).eq("noindex",!1).order("name").limit(500);return v||[]}}),{data:f}=He({queryKey:["areas_for_filter"],queryFn:async()=>{const{data:v}=await Ie.from("areas").select("name, slug").eq("is_published",!0).order("name");return v||[]}}),{data:m}=He({queryKey:["categories_for_filter"],queryFn:async()=>{const{data:v}=await Ie.from("product_categories").select("name, slug").eq("is_published",!0).order("name");return v||[]}}),y=A.useMemo(()=>{if(!u)return[];const v=new Set;return u.forEach(k=>{var E;return(E=k.certifications)==null?void 0:E.forEach(S=>v.add(S))}),[...v].sort()},[u]),g=A.useMemo(()=>{let v=u||[];return n.length>0&&(v=v.filter(k=>{var E;return(E=k.product_categories)==null?void 0:E.some(S=>n.includes(S))})),i&&(v=v.filter(k=>k.area_slug===i)),a&&(v=v.filter(k=>{var E;return(E=k.certifications)==null?void 0:E.includes(a)})),e==="az"&&(v=[...v].sort((k,E)=>(k.name||"").localeCompare(E.name||""))),e==="newest"&&(v=[...v].sort((k,E)=>(E.created_at||"").localeCompare(k.created_at||""))),v},[u,n,i,a,e]),x=v=>r(k=>k.includes(v)?k.filter(E=>E!==v):[...k,v]);return h?c.jsx(_e,{children:c.jsx(eo,{count:9})}):c.jsxs(_e,{children:[c.jsx(Ye,{title:"UK Engineering Component Suppliers",description:"Browse verified UK suppliers of engineering components.",canonical:"/suppliers"}),c.jsx(St,{items:[{name:"Home",url:"/"},{name:"Suppliers",url:"/suppliers"}]}),c.jsx(Fr,{title:"UK Suppliers",subtitle:"Browse verified UK suppliers of engineering components.",backgroundImage:_V}),c.jsxs("div",{className:"container-wide py-12",children:[c.jsx(kt,{items:[{name:"Home",href:"/"},{name:"Suppliers",href:"/suppliers"}]}),c.jsxs("div",{className:"border border-border bg-card p-4 mb-8 space-y-4",children:[c.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm",children:[c.jsx("span",{className:"text-muted-foreground font-medium",children:"Sort:"}),c.jsx("button",{onClick:()=>t("az"),className:`px-3 py-1.5 border transition-colors ${e==="az"?"bg-primary text-primary-foreground border-primary":"border-border text-muted-foreground hover:text-foreground"}`,children:"A-Z"}),c.jsx("button",{onClick:()=>t("newest"),className:`px-3 py-1.5 border transition-colors ${e==="newest"?"bg-primary text-primary-foreground border-primary":"border-border text-muted-foreground hover:text-foreground"}`,children:"Newest"})]}),c.jsxs("div",{className:"flex flex-wrap items-start gap-3 text-sm",children:[c.jsx("span",{className:"text-muted-foreground font-medium pt-1.5",children:"Area:"}),c.jsxs("select",{value:i,onChange:v=>s(v.target.value),className:"border border-border bg-card px-3 py-1.5 text-sm text-foreground",children:[c.jsx("option",{value:"",children:"All Areas"}),(f||[]).map(v=>c.jsx("option",{value:v.slug||"",children:v.name},v.slug))]}),c.jsx("span",{className:"text-muted-foreground font-medium pt-1.5 ml-2",children:"Certification:"}),c.jsxs("select",{value:a,onChange:v=>l(v.target.value),className:"border border-border bg-card px-3 py-1.5 text-sm text-foreground",children:[c.jsx("option",{value:"",children:"All"}),y.map(v=>c.jsx("option",{value:v,children:v},v))]})]}),m&&m.length>0&&c.jsxs("div",{className:"flex flex-wrap items-start gap-2 text-sm",children:[c.jsx("span",{className:"text-muted-foreground font-medium pt-1",children:"Products:"}),m.map(v=>c.jsx("button",{onClick:()=>x(v.slug||""),className:`px-2 py-1 border text-xs transition-colors ${n.includes(v.slug||"")?"bg-primary text-primary-foreground border-primary":"border-border text-muted-foreground hover:text-foreground"}`,children:v.name},v.slug))]})]}),c.jsxs("p",{className:"text-sm text-muted-foreground mb-4",children:[g.length," suppliers found"]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:g.map(v=>c.jsxs(xe,{to:`/suppliers/${v.slug}`,onClick:()=>qo("click_supplier","suppliers",v.slug||"",v.name||""),className:"border border-border bg-card p-5 hover:border-primary transition-colors group",children:[c.jsx("h2",{className:"font-heading font-semibold group-hover:text-primary",children:v.name}
280),v.company_status&&c.jsx("span",{className:`text-xs font-semibold px-2 py-0.5 inline-block mt-1 ${v.company_status==="Active"?"bg-trust text-trust-foreground":"bg-muted text-muted-foreground"}`,children:v.company_status}),v.seo_description&&c.jsx("p",{className:"text-sm text-muted-foreground mt-2 line-clamp-2",children:v.seo_description})]},v.slug))})]})]})}function wV(){const{slug:e}=fi(),{data:t,isLoading:n}=He({queryKey:["supplier",e],queryFn:async()=>{const{data:s}=await Ie.from("suppliers").select("*, authors(name, slug, job_title, bio)").eq("slug",e).eq("is_published",!0).single();return s}});if(n)return c.jsx(_e,{children:c.jsx(Ji,{})});if(!t)return c.jsx(_e,{children:c.jsx("div",{className:"container-wide py-12",children:c.jsx("p",{children:"Not found."})})});const r=t.authors,i=t.directors;return c.jsxs(_e,{children:[c.jsx(Ye,{contentPage:!0,title:t.name||"",description:t.seo_description||"",canonical:`/suppliers/${e}`,ogType:"article",ogImage:Wi(t.sources_json),author:r==null?void 0:r.name,noindex:t.noindex||!1}),c.jsxs("div",{className:"container-narrow py-12",children:[c.jsx(kt,{items:[{name:"Home",href:"/"},{name:"Suppliers",href:"/suppliers"},{name:t.name||"",href:`/suppliers/${e}`}]}),c.jsx(Yi,{title:t.name||"",category:"Supplier",contributorName:r==null?void 0:r.name,contributorSlug:r==null?void 0:r.slug,contributorTitle:r==null?void 0:r.job_title,verifiedDate:pr(t.updated_at),readTime:qi(t.seo_content)}),c.jsxs("div",{className:"border border-border bg-card p-6 mb-8",children:[c.jsx("h2",{className:"font-heading font-semibold mb-4 text-lg",children:"Company Information"}),c.jsxs("dl",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-8 gap-y-3 text-sm",children:[t.company_number&&c.jsxs("div",{children:[c.jsx("dt",{className:"text-muted-foreground",children:"Company Number"}),c.jsx("dd",{children:c.jsx("a",{href:`https://find-and-update.company-information.service.gov.uk/company/${t.company_number}`,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:t.company_number})})]}),t.incorporation_date&&c.jsxs("div",{children:[c.jsx("dt",{className:"text-muted-foreground",children:"Incorporated"}),c.jsx("dd",{children:pr(t.incorporation_date)})]}),t.company_status&&c.jsxs("div",{children:[c.jsx("dt",{className:"text-muted-foreground",children:"Status"}),c.jsx("dd",{children:c.jsx("span",{className:`text-xs font-semibold px-2 py-0.5 ${t.company_status==="Active"?"bg-trust text-trust-foreground":"bg-muted text-muted-foreground"}`,children:t.company_status})})]}),t.registered_address&&c.jsxs("div",{className:"sm:col-span-2",children:[c.jsx("dt",{className:"text-muted-foreground",children:"Registered Address"}),c.jsx("dd",{children:t.registered_address})]})]}),i&&i.length>0&&c.jsxs("div",{className:"mt-4 pt-4 border-t border-border",children:[c.jsx("h3",{className:"text-sm font-heading font-semibold mb-2",children:"Directors"}),c.jsx("ul",{className:"space-y-1",children:i.map((s,a)=>c.jsxs("li",{className:"text-sm text-muted-foreground",children:[s.name,s.role?` - ${s.role}`:""]},a))})]})]}),c.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-6 mb-8",children:[(t.website||t.phone||t.email)&&c.jsxs("div",{className:"border border-border bg-card p-5",children:[c.jsx("h3",{className:"font-heading font-semibold text-sm mb-3",children:"Contact"}),t.website&&c.jsx("p",{className:"text-sm",children:c.jsx("a",{href:t.website,target:"_blank",rel:"noopener noreferrer",onClick:()=>qo("visit_website","supplier",e||"",t.name||""),className:"text-primary hover:underline",children:t.website})}),t.phone&&c.jsx("p",{className:"text-sm",children:c.jsx("a",{href:`tel:${t.phone.replace(/\s+/g,"")}`,onClick:()=>qo("call_phone","supplier",e||"",t.name||""),className:"text-primary hover:underline",children:t.phone})}),t.email&&c.jsx("p",{className:"text-sm",children:c.jsx("a",{href:`mailto:${t.email}`,className:"text-primary hover:underline",children:t.email})})]}),t.certifications&&t.certifications.length>0&&c.jsxs("div",{className:"border border-border bg-card p-5",children:[c.jsx("h3",{className:"font-heading font-semibold text-sm mb-3",children:"Certifications"}),c.jsx("div",{className:"flex flex-wrap gap-2",children:t.certifications.map(s=>c.jsx("span",{className:"text-xs bg-muted text-muted-foreground px-2 py-1",children:s},s))})]})]}),t.product_categories&&t.product_categories.length>0&&c.jsxs("div",{className:"mb-8",children:[c.jsx("h3",{className:"font-heading font-semibold text-sm mb-2",children:"Product Categories"}),c.jsx("div",{className:"flex flex-wrap gap-2",children:t.product_categories.map(s=>c.jsx(xe,{to:`/products/${s}`,className:"text-xs bg-accent text-accent-foreground px-2 py-1 hover:bg-primary hover:text-primary-foreground transition-colors",children:s},s))})]}),c.jsx(Ki,{content:t.seo_content}),c.jsx(Xi,{faq:t.faq_json}),c.jsx(LA,{pageType:"supplier",entityName:t.name||"this supplier"}),c.jsx(to,{}),c.jsx(Zi,{sources:t.sources_json}),c.jsx(Qi,{title:t.name||""}),r&&c.jsx(Gi,{name:r.name,slug:r.slug,jobTitle:r.job_title,bio:r.bio})]})]})}var $0={exports:{}};/* @preserve 281 * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com 282 * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade 283 */(function(e,t){(function(n,r){r(t)})(zu,function(n){var r="1.9.4";function i(o){var d,p,_,w;for(p=1,_=arguments.length;p<_;p++){w=arguments[p];for(d in w)o[d]=w[d]}return o}var s=Object.create||function(){function o(){}return function(d){return o.prototype=d,new o}}();function a(o,d){var p=Array.prototype.slice;
283if(o.bind)return o.bind.apply(o,p.call(arguments,1));var _=p.call(arguments,2);return function(){return o.apply(d,_.length?_.concat(p.call(arguments)):arguments)}}var l=0;function u(o){return"_leaflet_id"in o||(o._leaflet_id=++l),o._leaflet_id}function h(o,d,p){var _,w,C,B;return B=function(){_=!1,w&&(C.apply(p,w),w=!1)},C=function(){_?w=arguments:(o.apply(p,arguments),setTimeout(B,d),_=!0)},C}function f(o,d,p){var _=d[1],w=d[0],C=_-w;return o===_&&p?o:((o-w)%C+C)%C+w}function m(){return!1}function y(o,d){if(d===!1)return o;var p=Math.pow(10,d===void 0?6:d);return Math.round(o*p)/p}function g(o){return o.trim?o.trim():o.replace(/^\s+|\s+$/g,"")}function x(o){return g(o).split(/\s+/)}function v(o,d){Object.prototype.hasOwnProperty.call(o,"options")||(o.options=o.options?s(o.options):{});for(var p in d)o.options[p]=d[p];return o.options}function k(o,d,p){var _=[];for(var w in o)_.push(encodeURIComponent(p?w.toUpperCase():w)+"="+encodeURIComponent(o[w]));return(!d||d.indexOf("?")===-1?"?":"&")+_.join("&")}var E=/\{ *([\w_ -]+) *\}/g;function S(o,d){return o.replace(E,function(p,_){var w=d[_];if(w===void 0)throw new Error("No value provided for variable "+p);return typeof w=="function"&&(w=w(d)),w})}var T=Array.isArray||function(o){return Object.prototype.toString.call(o)==="[object Array]"};function P(o,d){for(var p=0;p<o.length;p++)if(o[p]===d)return p;return-1}var F="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function O(o){return window["webkit"+o]||window["moz"+o]||window["ms"+o]}var H=0;function K(o){var d=+new Date,p=Math.max(0,16-(d-H));return H=d+p,window.setTimeout(o,p)}var Q=window.requestAnimationFrame||O("RequestAnimationFrame")||K,M=window.cancelAnimationFrame||O("CancelAnimationFrame")||O("CancelRequestAnimationFrame")||function(o){window.clearTimeout(o)};function Z(o,d,p){if(p&&Q===K)o.call(d);else return Q.call(window,a(o,d))}function W(o){o&&M.call(window,o)}var ce={__proto__:null,extend:i,create:s,bind:a,get lastId(){return l},stamp:u,throttle:h,wrapNum:f,falseFn:m,formatNum:y,trim:g,splitWords:x,setOptions:v,getParamString:k,template:S,isArray:T,indexOf:P,emptyImageUrl:F,requestFn:Q,cancelFn:M,requestAnimFrame:Z,cancelAnimFrame:W};function ee(){}ee.extend=function(o){var d=function(){v(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},p=d.__super__=this.prototype,_=s(p);_.constructor=d,d.prototype=_;for(var w in this)Object.prototype.hasOwnProperty.call(this,w)&&w!=="prototype"&&w!=="__super__"&&(d[w]=this[w]);return o.statics&&i(d,o.statics),o.includes&&(de(o.includes),i.apply(null,[_].concat(o.includes))),i(_,o),delete _.statics,delete _.includes,_.options&&(_.options=p.options?s(p.options):{},i(_.options,o.options)),_._initHooks=[],_.callInitHooks=function(){if(!this._initHooksCalled){p.callInitHooks&&p.callInitHooks.call(this),this._initHooksCalled=!0;for(var C=0,B=_._initHooks.length;C<B;C++)_._initHooks[C].call(this)}},d},ee.include=function(o){var d=this.prototype.options;return i(this.prototype,o),o.options&&(this.prototype.options=d,this.mergeOptions(o.options)),this},ee.mergeOptions=function(o){return i(this.prototype.options,o),this},ee.addInitHook=function(o){var d=Array.prototype.slice.call(arguments,1),p=typeof o=="function"?o:function(){this[o].apply(this,d)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(p),this};function de(o){if(!(typeof L>"u"||!L||!L.Mixin)){o=T(o)?o:[o];for(var d=0;d<o.length;
283d++)o[d]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var se={on:function(o,d,p){if(typeof o=="object")for(var _ in o)this._on(_,o[_],d);else{o=x(o);for(var w=0,C=o.length;w<C;w++)this._on(o[w],d,p)}return this},off:function(o,d,p){if(!arguments.length)delete this._events;else if(typeof o=="object")for(var _ in o)this._off(_,o[_],d);else{o=x(o);for(var w=arguments.length===1,C=0,B=o.length;C<B;C++)w?this._off(o[C]):this._off(o[C],d,p)}return this},_on:function(o,d,p,_){if(typeof d!="function"){console.warn("wrong listener type: "+typeof d);return}if(this._listens(o,d,p)===!1){p===this&&(p=void 0);var w={fn:d,ctx:p};_&&(w.once=!0),this._events=this._events||{},this._events[o]=this._events[o]||[],this._events[o].push(w)}},_off:function(o,d,p){var _,w,C;if(this._events&&(_=this._events[o],!!_)){if(arguments.length===1){if(this._firingCount)for(w=0,C=_.length;w<C;w++)_[w].fn=m;delete this._events[o];return}if(typeof d!="function"){console.warn("wrong listener type: "+typeof d);return}var B=this._listens(o,d,p);if(B!==!1){var $=_[B];this._firingCount&&($.fn=m,this._events[o]=_=_.slice()),_.splice(B,1)}}},fire:function(o,d,p){if(!this.listens(o,p))return this;var _=i({},d,{type:o,target:this,sourceTarget:d&&d.sourceTarget||this});if(this._events){var w=this._events[o];if(w){this._firingCount=this._firingCount+1||1;for(var C=0,B=w.length;C<B;C++){var $=w[C],V=$.fn;$.once&&this.off(o,V,$.ctx),V.call($.ctx||this,_)}this._firingCount--}}return p&&this._propagateEvent(_),this},listens:function(o,d,p,_){typeof o!="string"&&console.warn('"string" type argument expected');var w=d;typeof d!="function"&&(_=!!d,w=void 0,p=void 0);var C=this._events&&this._events[o];if(C&&C.length&&this._listens(o,w,p)!==!1)return!0;if(_){for(var B in this._eventParents)if(this._eventParents[B].listens(o,d,p,_))return!0}return!1},_listens:function(o,d,p){if(!this._events)return!1;var _=this._events[o]||[];if(!d)return!!_.length;p===this&&(p=void 0);for(var w=0,C=_.length;w<C;w++)if(_[w].fn===d&&_[w].ctx===p)return w;return!1},once:function(o,d,p){if(typeof o=="object")for(var _ in o)this._on(_,o[_],d,!0);else{o=x(o);for(var w=0,C=o.length;w<C;w++)this._on(o[w],d,p,!0)}return this},addEventParent:function(o){return this._eventParents=this._eventParents||{},this._eventParents[u(o)]=o,this},removeEventParent:function(o){return this._eventParents&&delete this._eventParents[u(o)],this},_propagateEvent:function(o){for(var d in this._eventParents)this._eventParents[d].fire(o.type,i({layer:o.target,propagatedFrom:o.target},o),!0)}};se.addEventListener=se.on,se.removeEventListener=se.clearAllEventListeners=se.off,se.addOneTimeEventListener=se.once,se.fireEvent=se.fire,se.hasEventListeners=se.listens;var me=ee.extend(se);function z(o,d,p){this.x=p?Math.round(o):o,this.y=p?Math.round(d):d}var J=Math.trunc||function(o){return o>0?Math.floor(o):Math.ceil(o)};z.prototype={clone:function(){return new z(this.x,this.y)},add:function(o){return this.clone()._add(N(o))},_add:function(o){return this.x+=o.x,this.y+=o.y,this},subtract:function(o){return this.clone()._subtract(N(o))},_subtract:function(o){return this.x-=o.x,this.y-=o.y,this},divideBy:function(o){return this.clone()._divideBy(o)},_divideBy:function(o){return this.x/=o,this.y/=o,this},multiplyBy:function(o){return this.clone()._multiplyBy(o)},_multiplyBy:function(o){return this.x*=o,this.y*=o,this},scaleBy:function(o){return new z(this.x*o.x,this.y*o.y)},unscaleBy:function(o){return new z(this.x/o.x,this.y/o.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=J(this.x),this.y=J(this.y),this},distanceTo:function(o){o=N(o);var d=o.x-this.x,p=o.y-this.y;return Math.sqrt(d*d+p*p)},equals:function(o){return o=N(o),o.x===this.x&&o.y===this.y},contains:function(o){return o=N(o),Math.abs(o.x)<=Math.abs(this.x)&&Math.abs(o.y)<=Math.abs(this.y)},toString:function(){return"Point("+y(this.x)+", "+y(this.y)+")"}};function N(o,d,p){return o instanceof z?o:T(o)?new z(o[0],o[1]):o==null?o:typeof o=="object"&&"x"in o&&"y"in o?new z(o.x,o.y):new z(o,d,p)}function le(o,d){if(o)for(var p=d?[o,d]:o,_=0,w=p.length;_<w;_++)this.extend(p[_])}le.prototype={extend:function(o){var d,p;if(!o)return this;if(o instanceof z||typeof o[0]=="number"||"x"in o)d=p=N(o);else if(o=ue(o),d=o.min,p=o.max,!d||!p)return this;return!this.min&&!this.max?(this.min=d.clone(),this.max=p.clone()):(this.min.x=Math.min(d.x,this.min.x),this.max.x=Math.max(p.x,this.max.x),this.min.y=Math.min(d.y,this.min.y),this.max.y=Math.max(p.y,this.max.y)),this},getCenter:function(o){return N((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,o)},getBottomLeft:function(){return N(this.min.x,this.max.y)},getTopRight:function(){return N(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(o){var d,p;return typeof o[0]=="number"||o instanceof z?o=N(o):o=ue(o),o instanceof le?(d=o.min,p=o.max):d=p=o,d.x>=this.min.x&&p.x<=this.max.x&&d.y>=this.min.y&&p.y<=this.max.y},intersects:function(o){o=ue(o);var d=this.min,p=this.max,_=o.min,w=o.max,C=w.x>=d.x&&_.x<=p.x,B=w.y>=d.y&&_.y<=p.y;return C&&B},overlaps:function(o){o=ue(o);var d=this.min,p=this.max,_=o.min,w=o.max,C=w.x>d.x&&_.x<p.x,B=w.y>d.y&&_.y<p.y;return C&&B},isValid:function(){return!!(this.min&&this.max)}
283,pad:function(o){var d=this.min,p=this.max,_=Math.abs(d.x-p.x)*o,w=Math.abs(d.y-p.y)*o;return ue(N(d.x-_,d.y-w),N(p.x+_,p.y+w))},equals:function(o){return o?(o=ue(o),this.min.equals(o.getTopLeft())&&this.max.equals(o.getBottomRight())):!1}};function ue(o,d){return!o||o instanceof le?o:new le(o,d)}function j(o,d){if(o)for(var p=d?[o,d]:o,_=0,w=p.length;_<w;_++)this.extend(p[_])}j.prototype={extend:function(o){var d=this._southWest,p=this._northEast,_,w;if(o instanceof ve)_=o,w=o;else if(o instanceof j){if(_=o._southWest,w=o._northEast,!_||!w)return this}else return o?this.extend(pe(o)||fe(o)):this;return!d&&!p?(this._southWest=new ve(_.lat,_.lng),this._northEast=new ve(w.lat,w.lng)):(d.lat=Math.min(_.lat,d.lat),d.lng=Math.min(_.lng,d.lng),p.lat=Math.max(w.lat,p.lat),p.lng=Math.max(w.lng,p.lng)),this},pad:function(o){var d=this._southWest,p=this._northEast,_=Math.abs(d.lat-p.lat)*o,w=Math.abs(d.lng-p.lng)*o;return new j(new ve(d.lat-_,d.lng-w),new ve(p.lat+_,p.lng+w))},getCenter:function(){return new ve((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new ve(this.getNorth(),this.getWest())},getSouthEast:function(){return new ve(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(o){typeof o[0]=="number"||o instanceof ve||"lat"in o?o=pe(o):o=fe(o);var d=this._southWest,p=this._northEast,_,w;
283return o instanceof j?(_=o.getSouthWest(),w=o.getNorthEast()):_=w=o,_.lat>=d.lat&&w.lat<=p.lat&&_.lng>=d.lng&&w.lng<=p.lng},intersects:function(o){o=fe(o);var d=this._southWest,p=this._northEast,_=o.getSouthWest(),w=o.getNorthEast(),C=w.lat>=d.lat&&_.lat<=p.lat,B=w.lng>=d.lng&&_.lng<=p.lng;return C&&B},overlaps:function(o){o=fe(o);var d=this._southWest,p=this._northEast,_=o.getSouthWest(),w=o.getNorthEast(),C=w.lat>d.lat&&_.lat<p.lat,B=w.lng>d.lng&&_.lng<p.lng;return C&&B},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(o,d){return o?(o=fe(o),this._southWest.equals(o.getSouthWest(),d)&&this._northEast.equals(o.getNorthEast(),d)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function fe(o,d){return o instanceof j?o:new j(o,d)}function ve(o,d,p){if(isNaN(o)||isNaN(d))throw new Error("Invalid LatLng object: ("+o+", "+d+")");this.lat=+o,this.lng=+d,p!==void 0&&(this.alt=+p)}ve.prototype={equals:function(o,d){if(!o)return!1;o=pe(o);var p=Math.max(Math.abs(this.lat-o.lat),Math.abs(this.lng-o.lng));return p<=(d===void 0?1e-9:d)},toString:function(o){return"LatLng("+y(this.lat,o)+", "+y(this.lng,o)+")"},distanceTo:function(o){return ut.distance(this,pe(o))},wrap:function(){return ut.wrapLatLng(this)},toBounds:function(o){var d=180*o/40075017,p=d/Math.cos(Math.PI/180*this.lat);return fe([this.lat-d,this.lng-p],[this.lat+d,this.lng+p])},clone:function(){return new ve(this.lat,this.lng,this.alt)}};function pe(o,d,p){return o instanceof ve?o:T(o)&&typeof o[0]!="object"?o.length===3?new ve(o[0],o[1],o[2]):o.length===2?new ve(o[0],o[1]):null:o==null?o:typeof o=="object"&&"lat"in o?new ve(o.lat,"lng"in o?o.lng:o.lon,o.alt):d===void 0?null:new ve(o,d,p)}var Ne={latLngToPoint:function(o,d){var p=this.projection.project(o),_=this.scale(d);return this.transformation._transform(p,_)},pointToLatLng:function(o,d){var p=this.scale(d),_=this.transformation.untransform(o,p);return this.projection.unproject(_)},project:function(o){return this.projection.project(o)},unproject:function(o){return this.projection.unproject(o)},scale:function(o){return 256*Math.pow(2,o)},zoom:function(o){return Math.log(o/256)/Math.LN2},getProjectedBounds:function(o){if(this.infinite)return null;var d=this.projection.bounds,p=this.scale(o),_=this.transformation.transform(d.min,p),w=this.transformation.transform(d.max,p);return new le(_,w)},infinite:!1,wrapLatLng:function(o){var d=this.wrapLng?f(o.lng,this.wrapLng,!0):o.lng,p=this.wrapLat?f(o.lat,this.wrapLat,!0):o.lat,_=o.alt;return new ve(p,d,_)},wrapLatLngBounds:function(o){var d=o.getCenter(),p=this.wrapLatLng(d),_=d.lat-p.lat,w=d.lng-p.lng;if(_===0&&w===0)return o;
283var C=o.getSouthWest(),B=o.getNorthEast(),$=new ve(C.lat-_,C.lng-w),V=new ve(B.lat-_,B.lng-w);return new j($,V)}},ut=i({},Ne,{wrapLng:[-180,180],R:6371e3,distance:function(o,d){var p=Math.PI/180,_=o.lat*p,w=d.lat*p,C=Math.sin((d.lat-o.lat)*p/2),B=Math.sin((d.lng-o.lng)*p/2),$=C*C+Math.cos(_)*Math.cos(w)*B*B,V=2*Math.atan2(Math.sqrt($),Math.sqrt(1-$));return this.R*V}}),Dt=6378137,Mt={R:Dt,MAX_LATITUDE:85.0511287798,project:function(o){var d=Math.PI/180,p=this.MAX_LATITUDE,_=Math.max(Math.min(p,o.lat),-p),w=Math.sin(_*d);return new z(this.R*o.lng*d,this.R*Math.log((1+w)/(1-w))/2)},unproject:function(o){var d=180/Math.PI;return new ve((2*Math.atan(Math.exp(o.y/this.R))-Math.PI/2)*d,o.x*d/this.R)},bounds:function(){var o=Dt*Math.PI;return new le([-o,-o],[o,o])}()};function $t(o,d,p,_){if(T(o)){this._a=o[0],this._b=o[1],this._c=o[2],this._d=o[3];return}this._a=o,this._b=d,this._c=p,this._d=_}$t.prototype={transform:function(o,d){return this._transform(o.clone(),d)},_transform:function(o,d){return d=d||1,o.x=d*(this._a*o.x+this._b),o.y=d*(this._c*o.y+this._d),o},untransform:function(o,d){return d=d||1,new z((o.x/d-this._b)/this._a,(o.y/d-this._d)/this._c)}};function bn(o,d,p,_){return new $t(o,d,p,_)}var _n=i({},ut,{code:"EPSG:3857",projection:Mt,transformation:function(){var o=.5/(Math.PI*Mt.R);return bn(o,.5,-o,.5)}()}),es=i({},_n,{code:"EPSG:900913"});function bi(o){return document.createElementNS("http://www.w3.org/2000/svg",o)}function Ur(o,d){var p="",_,w,C,B,$,V;for(_=0,C=o.length;_<C;_++){for($=o[_],w=0,B=$.length;w<B;w++)V=$[w],p+=(w?"L":"M")+V.x+" "+V.y;p+=d?Ee.svg?"z":"x":""}return p||"M0 0"}var Hr=document.documentElement.style,Zn="ActiveXObject"in window,mr=Zn&&!document.addEventListener,ts="msLaunchUri"in navigator&&!("documentMode"in document),gr=Wr("webkit"),no=Wr("android"),Xn=Wr("android 2")||Wr("android 3"),jl=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Dl=no&&Wr("Google")&&jl<537&&!("AudioNode"in window),G=!!window.opera,ae=!ts&&Wr("chrome"),Ce=Wr("gecko")&&!gr&&!G&&!Zn,De=!ae&&Wr("safari"),ze=Wr("phantom"),Zt="OTransition"in Hr,Jn=navigator.platform.indexOf("Win")===0,Xt=Zn&&"transition"in Hr,Jt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Xn,yr="MozPerspective"in Hr,yt=!window.L_DISABLE_3D&&(Xt||Jt||yr)&&!Zt&&!ze,vn=typeof orientation<"u"||Wr("mobile"),jn=vn&&gr,Wc=vn&&Jt,Ml=!window.PointerEvent&&window.MSPointerEvent,Vc=!!(window.PointerEvent||Ml),Xo="ontouchstart"in window||!!window.TouchEvent,zr=!window.L_NO_TOUCH&&(Xo||Vc),ip=vn&&G,Pe=vn&&Ce,Ze=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,tt=function(){var o=!1;try{var d=Object.defineProperty({},"passive",{get:function(){o=!0}});window.addEventListener("testPassiveEventSupport",m,d),window.removeEventListener("testPassiveEventSupport",m,d)}catch{}return o}(),Dn=function(){return!!document.createElement("canvas").getContext}(),un=!!(document.createElementNS&&bi("svg").createSVGRect),$r=!!un&&function(){var o=document.createElement("div");return o.innerHTML="<svg/>",(o.firstChild&&o.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),_i=!un&&function(){try{var o=document.createElement("div");o.innerHTML='<v:shape adj="1"/>';var d=o.firstChild;return d.style.behavior="url(#default#VML)",d&&typeof d.adj=="object"}catch{return!1}}(),Mn=navigator.platform.indexOf("Mac")===0,qr=navigator.platform.indexOf("Linux")===0;function Wr(o){return navigator.userAgent.toLowerCase().indexOf(o)>=0}var Ee={ie:Zn,ielt9:mr,edge:ts,webkit:gr,android:no,android23:Xn,androidStock:Dl,opera:G,chrome:ae,gecko:Ce,safari:De,phantom:ze,opera12:Zt,win:Jn,ie3d:Xt,webkit3d:Jt,gecko3d:yr,any3d:yt,mobile:vn,mobileWebkit:jn,mobileWebkit3d:Wc,msPointer:Ml,pointer:Vc,touch:zr,touchNative:Xo,mobileOpera:ip,mobileGecko:Pe,retina:Ze,passiveEvents:tt,canvas:Dn,svg:un,vml:_i,inlineSvg:$r,mac:Mn,linux:qr},Hb=Ee.msPointer?"MSPointerDown":"pointerdown",zb=Ee.msPointer?"MSPointerMove":"pointermove",$b=Ee.msPointer?"MSPointerUp":"pointerup",qb=Ee.msPointer?"MSPointerCancel":"pointercancel",sp={touchstart:Hb,touchmove:zb,touchend:$b,touchcancel:qb},Wb={touchstart:HA,touchmove:Kc,touchend:Kc,touchcancel:Kc},Jo={},Vb=!1;function DA(o,d,p){return d==="touchstart"&&UA(),Wb[d]?(p=Wb[d].bind(this,p),o.addEventListener(sp[d],p,!1),p):(console.warn("wrong event specified:",d),m)}function MA(o,d,p){if(!sp[d]){console.warn("wrong event specified:",d);return}o.removeEventListener(sp[d],p,!1)}function BA(o){Jo[o.pointerId]=o}function FA(o){Jo[o.pointerId]&&(Jo[o.pointerId]=o)}function Kb(o){delete Jo[o.pointerId]}function UA(){Vb||(document.addEventListener(Hb,BA,!0),document.addEventListener(zb,FA,!0),document.addEventListener($b,Kb,!0),document.addEventListener(qb,Kb,!0),Vb=!0)}function Kc(o,d){if(d.pointerType!==(d.MSPOINTER_TYPE_MOUSE||"mouse")){d.touches=[];for(var p in Jo)d.touches.push(Jo[p]);d.changedTouches=[d],o(d)}}function HA(o,d){d.MSPOINTER_TYPE_TOUCH&&d.pointerType===d.MSPOINTER_TYPE_TOUCH&&qt(d),Kc(o,d)}function zA(o){var d={},p,_;for(_ in o)p=o[_],d[_]=p&&p.bind?p.bind(o):p;return o=d,d.type="dblclick",d.detail=2,d.isTrusted=!1,d._simulated=!0,d}var $A=200;function qA(o,d){o.addEventListener("dblclick",d);var p=0,_;function w(C){if(C.detail!==1){_=C.detail;return}if(!(C.pointerType==="mouse"||C.sourceCapabilities&&!C.sourceCapabilities.firesTouchEvents)){var B=Xb(C);if(!(B.some(function(V){return V instanceof HTMLLabelElement&&V.attributes.for})&&!B.some(function(V){return V instanceof HTMLInputElement||V instanceof HTMLSelectElement}))){var $=Date.now();$-p<=$A?(_++,_===2&&d(zA(C))):_=1,p=$}}}return o.addEventListener("click",w),{dblclick:d,simDblclick:w}}function WA(o,d){o.removeEventListener("dblclick",d.dblclick),o.removeEventListener("click",d.simDblclick)}var op=Qc(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Bl=Qc(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Gb=Bl==="webkitTransition"||Bl==="OTransition"?Bl+"End":"transitionend";
283function Yb(o){return typeof o=="string"?document.getElementById(o):o}function Fl(o,d){var p=o.style[d]||o.currentStyle&&o.currentStyle[d];if((!p||p==="auto")&&document.defaultView){var _=document.defaultView.getComputedStyle(o,null);p=_?_[d]:null}return p==="auto"?null:p}function Qe(o,d,p){var _=document.createElement(o);return _.className=d||"",p&&p.appendChild(_),_}function ft(o){var d=o.parentNode;d&&d.removeChild(o)}function Gc(o){for(;o.firstChild;)o.removeChild(o.firstChild)}function ea(o){var d=o.parentNode;d&&d.lastChild!==o&&d.appendChild(o)}function ta(o){var d=o.parentNode;d&&d.firstChild!==o&&d.insertBefore(o,d.firstChild)}function ap(o,d){if(o.classList!==void 0)return o.classList.contains(d);var p=Yc(o);return p.length>0&&new RegExp("(^|\\s)"+d+"(\\s|$)").test(p)}function je(o,d){if(o.classList!==void 0)for(var p=x(d),_=0,w=p.length;_<w;_++)o.classList.add(p[_]);else if(!ap(o,d)){var C=Yc(o);lp(o,(C?C+" ":"")+d)}}function xt(o,d){o.classList!==void 0?o.classList.remove(d):lp(o,g((" "+Yc(o)+" ").replace(" "+d+" "," ")))}function lp(o,d){o.className.baseVal===void 0?o.className=d:o.className.baseVal=d}function Yc(o){return o.correspondingElement&&(o=o.correspondingElement),o.className.baseVal===void 0?o.className:o.className.baseVal}function er(o,d){"opacity"in o.style?o.style.opacity=d:"filter"in o.style&&VA(o,d)}function VA(o,d){var p=!1,_="DXImageTransform.Microsoft.Alpha";try{p=o.filters.item(_)}catch{if(d===1)return}d=Math.round(d*100),p?(p.Enabled=d!==100,p.Opacity=d):o.style.filter+=" progid:"+_+"(opacity="+d+")"}function Qc(o){for(var d=document.documentElement.style,p=0;p<o.length;p++)if(o[p]in d)return o[p];return!1}function ro(o,d,p){var _=d||new z(0,0);o.style[op]=(Ee.ie3d?"translate("+_.x+"px,"+_.y+"px)":"translate3d("+_.x+"px,"+_.y+"px,0)")+(p?" scale("+p+")":"")}function Ct(o,d){o._leaflet_pos=d,Ee.any3d?ro(o,d):(o.style.left=d.x+"px",o.style.top=d.y+"px")}function io(o){return o._leaflet_pos||new z(0,0)}var Ul,Hl,up;if("onselectstart"in document)Ul=function(){Oe(window,"selectstart",qt)},Hl=function(){nt(window,"selectstart",qt)};else{var zl=Qc(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Ul=function(){if(zl){var o=document.documentElement.style;up=o[zl],o[zl]="none"}},Hl=function(){zl&&(document.documentElement.style[zl]=up,up=void 0)}}function cp(){Oe(window,"dragstart",qt)}function dp(){nt(window,"dragstart",qt)}var Zc,hp;function fp(o){for(;o.tabIndex===-1;)o=o.parentNode;o.style&&(Xc(),Zc=o,hp=o.style.outlineStyle,o.style.outlineStyle="none",Oe(window,"keydown",Xc))}function Xc(){Zc&&(Zc.style.outlineStyle=hp,Zc=void 0,hp=void 0,nt(window,"keydown",Xc))}function Qb(o){do o=o.parentNode;while((!o.offsetWidth||!o.offsetHeight)&&o!==document.body);return o}function pp(o){var d=o.getBoundingClientRect();return{x:d.width/o.offsetWidth||1,y:d.height/o.offsetHeight||1,boundingClientRect:d}}var KA={__proto__:null,TRANSFORM:op,TRANSITION:Bl,TRANSITION_END:Gb,get:Yb,getStyle:Fl,create:Qe,remove:ft,empty:Gc,toFront:ea,toBack:ta,hasClass:ap,addClass:je,removeClass:xt,setClass:lp,getClass:Yc,setOpacity:er,testProp:Qc,setTransform:ro,setPosition:Ct,getPosition:io,get disableTextSelection(){return Ul},get enableTextSelection(){return Hl},disableImageDrag:cp,enableImageDrag:dp,preventOutline:fp,restoreOutline:Xc,getSizedParentNode:Qb,getScale:pp};function Oe(o,d,p,_){if(d&&typeof d=="object")for(var w in d)gp(o,w,d[w],p);else{d=x(d);for(var C=0,B=d.length;C<B;C++)gp(o,d[C],p,_)}return this}var Vr="_leaflet_events";function nt(o,d,p,_){if(arguments.length===1)Zb(o),delete o[Vr];else if(d&&typeof d=="object")for(var w in d)yp(o,w,d[w],p);else if(d=x(d),arguments.length===2)Zb(o,function($){return P(d,$)!==-1});else for(var C=0,B=d.length;C<B;C++)yp(o,d[C],p,_);return this}function Zb(o,d){for(var p in o[Vr]){var _=p.split(/\d/)[0];(!d||d(_))&&yp(o,_,null,null,p)}}
283var mp={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function gp(o,d,p,_){var w=d+u(p)+(_?"_"+u(_):"");if(o[Vr]&&o[Vr][w])return this;var C=function($){return p.call(_||o,$||window.event)},B=C;!Ee.touchNative&&Ee.pointer&&d.indexOf("touch")===0?C=DA(o,d,C):Ee.touch&&d==="dblclick"?C=qA(o,C):"addEventListener"in o?d==="touchstart"||d==="touchmove"||d==="wheel"||d==="mousewheel"?o.addEventListener(mp[d]||d,C,Ee.passiveEvents?{passive:!1}:!1):d==="mouseenter"||d==="mouseleave"?(C=function($){$=$||window.event,_p(o,$)&&B($)},o.addEventListener(mp[d],C,!1)):o.addEventListener(d,B,!1):o.attachEvent("on"+d,C),o[Vr]=o[Vr]||{},o[Vr][w]=C}function yp(o,d,p,_,w){w=w||d+u(p)+(_?"_"+u(_):"");var C=o[Vr]&&o[Vr][w];if(!C)return this;!Ee.touchNative&&Ee.pointer&&d.indexOf("touch")===0?MA(o,d,C):Ee.touch&&d==="dblclick"?WA(o,C):"removeEventListener"in o?o.removeEventListener(mp[d]||d,C,!1):o.detachEvent("on"+d,C),o[Vr][w]=null}function so(o){return o.stopPropagation?o.stopPropagation():o.originalEvent?o.originalEvent._stopped=!0:o.cancelBubble=!0,this}function bp(o){return gp(o,"wheel",so),this}function $l(o){return Oe(o,"mousedown touchstart dblclick contextmenu",so),o._leaflet_disable_click=!0,this}function qt(o){return o.preventDefault?o.preventDefault():o.returnValue=!1,this}function oo(o){return qt(o),so(o),this}function Xb(o){if(o.composedPath)return o.composedPath();for(var d=[],p=o.target;p;)d.push(p),p=p.parentNode;return d}function Jb(o,d){if(!d)return new z(o.clientX,o.clientY);var p=pp(d),_=p.boundingClientRect;return new z((o.clientX-_.left)/p.x-d.clientLeft,(o.clientY-_.top)/p.y-d.clientTop)}var GA=Ee.linux&&Ee.chrome?window.devicePixelRatio:Ee.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function e_(o){return Ee.edge?o.wheelDeltaY/2:o.deltaY&&o.deltaMode===0?-o.deltaY/GA:o.deltaY&&o.deltaMode===1?-o.deltaY*20:o.deltaY&&o.deltaMode===2?-o.deltaY*60:o.deltaX||o.deltaZ?0:o.wheelDelta?(o.wheelDeltaY||o.wheelDelta)/2:o.detail&&Math.abs(o.detail)<32765?-o.detail*20:o.detail?o.detail/-32765*60:0}function _p(o,d){var p=d.relatedTarget;if(!p)return!0;try{for(;p&&p!==o;)p=p.parentNode}catch{return!1}return p!==o}var YA={__proto__:null,on:Oe,off:nt,stopPropagation:so,disableScrollPropagation:bp,disableClickPropagation:$l,preventDefault:qt,stop:oo,getPropagationPath:Xb,getMousePosition:Jb,getWheelDelta:e_,isExternalTarget:_p,addListener:Oe,removeListener:nt},t_=me.extend({run:function(o,d,p,_){this.stop(),this._el=o,this._inProgress=!0,this._duration=p||.25,this._easeOutPower=1/Math.max(_||.5,.2),this._startPos=io(o),this._offset=d.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=Z(this._animate,this),this._step()},_step:function(o){var d=+new Date-this._startTime,p=this._duration*1e3;d<p?this._runFrame(this._easeOut(d/p),o):(this._runFrame(1),this._complete())},_runFrame:function(o,d){var p=this._startPos.add(this._offset.multiplyBy(o));d&&p._round(),Ct(this._el,p),this.fire("step")},_complete:function(){W(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(o){return 1-Math.pow(1-o,this._easeOutPower)}}),We=me.extend({options:{crs:_n,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(o,d){d=v(this,d),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(o),this._initLayout(),this._onResize=a(this._onResize,this),this._initEvents(),d.maxBounds&&this.setMaxBounds(d.maxBounds),d.zoom!==void 0&&(this._zoom=this._limitZoom(d.zoom)),d.center&&d.zoom!==void 0&&this.setView(pe(d.center),d.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Bl&&Ee.any3d&&!Ee.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Oe(this._proxy,Gb,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)}
vendor: 1,354 bytes, line 283
283,setView:function(o,d,p){if(d=d===void 0?this._zoom:this._limitZoom(d),o=this._limitCenter(pe(o),d,this.options.maxBounds),p=p||{},this._stop(),this._loaded&&!p.reset&&p!==!0){p.animate!==void 0&&(p.zoom=i({animate:p.animate},p.zoom),p.pan=i({animate:p.animate,duration:p.duration},p.pan));var _=this._zoom!==d?this._tryAnimatedZoom&&this._tryAnimatedZoom(o,d,p.zoom):this._tryAnimatedPan(o,p.pan);if(_)return clearTimeout(this._sizeTimer),this}return this._resetView(o,d,p.pan&&p.pan.noMoveStart),this},setZoom:function(o,d){return this._loaded?this.setView(this.getCenter(),o,{zoom:d}):(this._zoom=o,this)},zoomIn:function(o,d){return o=o||(Ee.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+o,d)},zoomOut:function(o,d){return o=o||(Ee.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-o,d)},setZoomAround:function(o,d,p){var _=this.getZoomScale(d),w=this.getSize().divideBy(2),C=o instanceof z?o:this.latLngToContainerPoint(o),B=C.subtract(w).multiplyBy(1-1/_),$=this.containerPointToLatLng(w.add(B));return this.setView($,d,{zoom:p})},_getBoundsCenterZoom:function(o,d){d=d||{},o=o.getBounds?o.getBounds():fe(o);var p=N(d.paddingTopLeft||d.padding||[0,0]),_=N(d.paddingBottomRight||d.padding||[0,0]),w=this.getBoundsZoom(o,!1,p.add(_));if(w=typeof d.maxZoom=="number"?Math.min(d.maxZoom,w):w,w===1/0)return{center:o.getCenter(),zoom:w};
283var C=_.subtract(p).divideBy(2),B=this.project(o.getSouthWest(),w),$=this.project(o.getNorthEast(),w),V=this.unproject(B.add($).divideBy(2).add(C),w);return{center:V,zoom:w}},fitBounds:function(o,d){if(o=fe(o),!o.isValid())throw new Error("Bounds are not valid.");var p=this._getBoundsCenterZoom(o,d);return this.setView(p.center,p.zoom,d)},fitWorld:function(o){return this.fitBounds([[-90,-180],[90,180]],o)},panTo:function(o,d){return this.setView(o,this._zoom,{pan:d})},panBy:function(o,d){if(o=N(o).round(),d=d||{},!o.x&&!o.y)return this.fire("moveend");if(d.animate!==!0&&!this.getSize().contains(o))return this._resetView(this.unproject(this.project(this.getCenter()).add(o)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new t_,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),d.noMoveStart||this.fire("movestart"),d.animate!==!1){je(this._mapPane,"leaflet-pan-anim");var p=this._getMapPanePos().subtract(o).round();this._panAnim.run(this._mapPane,p,d.duration||.25,d.easeLinearity)}else this._rawPanBy(o),this.fire("move").fire("moveend");return this},flyTo:function(o,d,p){if(p=p||{},p.animate===!1||!Ee.any3d)return this.setView(o,d,p);this._stop();var _=this.project(this.getCenter()),w=this.project(o),C=this.getSize(),B=this._zoom;o=pe(o),d=d===void 0?B:d;var $=Math.max(C.x,C.y),V=$*this.getZoomScale(B,d),te=w.distanceTo(_)||1,he=1.42,ke=he*he;function Me(At){var cd=At?-1:1,MN=At?V:$,BN=V*V-$*$+cd*ke*ke*te*te,FN=2*MN*ke*te,Pp=BN/FN,j_=Math.sqrt(Pp*Pp+1)-Pp,UN=j_<1e-9?-18:Math.log(j_);return UN}function cn(At){return(Math.exp(At)-Math.exp(-At))/2}function Bt(At){return(Math.exp(At)+Math.exp(-At))/2}function nr(At){return cn(At)/Bt(At)}var xn=Me(0);function aa(At){return $*(Bt(xn)/Bt(xn+he*At))}function LN(At){return $*(Bt(xn)*nr(xn+he*At)-cn(xn))/ke}function RN(At){return 1-Math.pow(1-At,1.5)}var jN=Date.now(),L_=(Me(1)-xn)/he,DN=p.duration?1e3*p.duration:1e3*L_*.8;function R_(){var At=(Date.now()-jN)/DN,cd=RN(At)*L_;At<=1?(this._flyToFrame=Z(R_,this),this._move(this.unproject(_.add(w.subtract(_).multiplyBy(LN(cd)/te)),B),this.get
vendor: 5,151 bytes, line 283
283ScaleZoom($/aa(cd),B),{flyTo:!0})):this._move(o,d)._moveEnd(!0)}return this._moveStart(!0,p.noMoveStart),R_.call(this),this},flyToBounds:function(o,d){var p=this._getBoundsCenterZoom(o,d);return this.flyTo(p.center,p.zoom,d)},setMaxBounds:function(o){return o=fe(o),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),o.isValid()?(this.options.maxBounds=o,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(o){var d=this.options.minZoom;return this.options.minZoom=o,this._loaded&&d!==o&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(o):this},setMaxZoom:function(o){var d=this.options.maxZoom;return this.options.maxZoom=o,this._loaded&&d!==o&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(o):this},panInsideBounds:function(o,d){this._enforcingBounds=!0;var p=this.getCenter(),_=this._limitCenter(p,this._zoom,fe(o));return p.equals(_)||this.panTo(_,d),this._enforcingBounds=!1,this},panInside:function(o,d){d=d||{};var p=N(d.paddingTopLeft||d.padding||[0,0]),_=N(d.paddingBottomRight||d.padding||[0,0]),w=this.project(this.getCenter()),C=this.project(o),B=this.getPixelBounds(),$=ue([B.min.add(p),B.max.subtract(_)]),V=$.getSize();if(!$.contains(C)){this._enforcingBounds=!0;var te=C.subtract($.getCenter()),he=$.extend(C).getSize().subtract(V);w.x+=te.x<0?-he.x:he.x,w.y+=te.y<0?-he.y:he.y,this.panTo(this.unproject(w),d),this._enforcingBounds=!1}return this},invalidateSize:function(o){if(!this._loaded)return this;o=i({animate:!1,pan:!0},o===!0?{animate:!0}:o);var d=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var p=this.getSize(),_=d.divideBy(2).round(),w=p.divideBy(2).round(),C=_.subtract(w);return!C.x&&!C.y?this:(o.animate&&o.pan?this.panBy(C):(o.pan&&this._rawPanBy(C),this.fire("move"),o.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(a(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:d,newSize:p}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(o){if(o=this._locateOptions=i({timeout:1e4,watch:!1},o),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var d=a(this._handleGeolocationResponse,this),p=a(this._handleGeolocationError,this);return o.watch?this._locationWatchId=navigator.geolocation.watchPosition(d,p,o):navigator.geolocation.getCurrentPosition(d,p,o),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(o){if(this._container._leaflet_id){var d=o.code,p=o.message||(d===1?"permission denied":d===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:d,message:"Geolocation error: "+p+"."})}},_handleGeolocationResponse:function(o){if(this._container._leaflet_id){var d=o.coords.latitude,p=o.coords.longitude,_=new ve(d,p),w=_.toBounds(o.coords.accuracy*2),C=this._locateOptions;if(C.setView){var B=this.getBoundsZoom(w);this.setView(_,C.maxZoom?Math.min(B,C.maxZoom):B)}var $={latlng:_,bounds:w,timestamp:o.timestamp};for(var V in o.coords)typeof o.coords[V]=="number"&&($[V]=o.coords[V]);this.fire("locationfound",$)}},addHandler:function(o,d){if(!d)return this;var p=this[o]=new d(this);return this._handlers.push(p),this.options[o]&&p.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),ft(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(W(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var o;for(o in this._layers)this._layers[o].remove();for(o in this._panes)ft(this._panes[o]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(o,d){var p="leaflet-pane"+(o?" leaflet-"+o.replace("Pane","")+"-pane":""),_=Qe("div",p,d||this._mapPane);return o&&(this._panes[o]=_),_},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var o=this.getPixelBounds(),d=this.unproject(o.getBottomLeft()),p=this.unproject(o.getTopRight());return new j(d,p)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZo
283om===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(o,d,p){o=fe(o),p=N(p||[0,0]);var _=this.getZoom()||0,w=this.getMinZoom(),C=this.getMaxZoom(),B=o.getNorthWest(),$=o.getSouthEast(),V=this.getSize().subtract(p),te=ue(this.project($,_),this.project(B,_)).getSize(),he=Ee.any3d?this.options.zoomSnap:1,ke=V.x/te.x,Me=V.y/te.y,cn=d?Math.max(ke,Me):Math.min(ke,Me);return _=this.getScaleZoom(cn,_),he&&(_=Math.round(_/(he/100))*(he/100),_=d?Math.ceil(_/he)*he:Math.floor(_/he)*he),Math.max(w,Math.min(C,_))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new z(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(o,d){var p=this._getTopLeftPoint(o,d);return new le(p,p.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(o){return this.options.crs.getProjectedBounds(o===void 0?this.getZoom():o)},getPane:function(o){return typeof o=="string"?this._panes[o]:o},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(o,d){var p=this.options.crs;return d=d===void 0?this._zoom:d,p.scale(o)/p.scale(d)},getScaleZoom:function(o,d){var p=this.options.crs;d=d===void 0?this._zoom:d;var _=p.zoom(o*p.scale(d));return isNaN(_)?1/0:_},project:function(o,d){return d=d===void 0?this._zoom:d,this.options.crs.latLngToPoint(pe(o),d)},unproject:function(o,d){return d=d===void 0?this._zoom:d,this.options.crs.pointToLatLng(N(o),d)},layerPointToLatLng:function(o){var d=N(o).add(this.getPixelOrigin());return this.unproject(d)},latLngToLayerPoint:function(o){var d=this.project(pe(o))._round();return d._subtract(this.getPixelOrigin())},wrapLatLng:function(o){return this.options.crs.wrapLatLng(pe(o))},wrapLatLngBounds:function(o){return this.options.crs.wrapLatLngBounds(fe(o))},distance:function(o,d){return this.options.crs.distance(pe(o),pe(d))},containerPointToLayerPoint:function(o){return N(o).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(o){return N(o).add(this._getMapPanePos())},containerPointToLatLng:function(o){var d=this.containerPointToLayerPoint(N(o));return this.layerPointToLatLng(d)},latLngToContainerPoint:function(o){return this.layerPointToContainerPoint(this.latLngToLayerPoint(pe(o)))},mouseEventToContainerPoint:function(o){return Jb(o,this._container)},mouseEventToLayerPoint:function(o){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(o))},mouseEventToLatLng:function(o){return this.layerPointToLatLng(this.mouseEventToLayerPoint(o))},_initContainer:function(o){var d=this._container=Yb(o);if(d){if(d._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Oe(d,"scroll",this._onScroll,this),this._containerId=u(d)},_initLayout:function(){var o=this._container;this._fadeAnimated=this.options.fadeAnimation&&Ee.any3d,je(o,"leaflet-container"+(Ee.touch?" leaflet-touch":"")+(Ee.retina?" leaflet-retina":"")+(Ee.ielt9?" leaflet-oldie":"")+(Ee.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var d=Fl(o,"position");d!=="absolute"&&d!=="relative"&&d!=="fixed"&&d!=="sticky"&&(o.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var o=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Ct(this._mapPane,new z(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(je(o.markerPane,"leaflet-zoom-hide"),je(o.shadowPane,"leaflet-zoom-hide"))},_resetView:function(o,d,p){Ct(this._mapPane,new z(0,0));var _=!this._loaded;this._loaded=!0,d=this._limitZoom(d),this.fire("viewprereset");var w=this._zoom!==d;this._moveStart(w,p)._move(o,d)._moveEnd(w),this.fire("viewreset"),_&&this.fire("load")},_moveStart:function(o,d){return o&&this.fire("zoomstart"),d||this.fire("movestart"),this},_move:function(o,d,p,_){d===void 0&&(d=this._zoom);var w=this._zoom!==d;return this._zoom=d,this._lastCenter=o,this._pixelOrigin=this._getNewPixelOrigin(o),_?p&&p.pinch&&this.fire("zoom",p):((w||p&&p.pinch)&&this.fire("zoom",p),this.fire("move",p)),this},_moveEnd:function(o){return o&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return W(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(o){Ct(this._mapPane,this._getMapPanePos().subtract(o))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(o){this._targets={},this._targets[u(this._container)]=this;var d=o?nt:Oe;d(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&d(window,"resize",this._onResize,this),Ee.any3d&&this.options.transform3DLimit&&(o?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){W(this._resizeRequest),this._resizeRequest=Z(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var o=this._getMapPanePos();Math.max(Math.abs(o.x),Math.abs(o.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(o,d){for(var p=[],_,w=d==="mouseout"||d==="mouseover",C=o.target||o.srcElement,B=!1;C;){if(_=this._targets[u(C)],_&&(d==="click"||d==="preclick")&&this._draggableMoved(_)){B=!0;break}if(_&&_.listens(d,!0)&&(w&&!_p(C,o)||(p.push(_),w))||C===this._container)break;C=C.parentNode}return!p.length&&!B&&!w&&this.listens(d,!0)&&(p=[this]),p},_isClickDisabled:function(o){for(;o&&o!==this._container;){if(o._leaflet_disable_click)return!0;o=o.parentNode}},_handleDOMEvent:function(o){var d=o.target||o.srcElement;if(!(!this._loaded||d._leaflet_disable_events||o.type==="click"&&this._isCl
283ickDisabled(d))){var p=o.type;p==="mousedown"&&fp(d),this._fireDOMEvent(o,p)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(o,d,p){if(o.type==="click"){var _=i({},o);_.type="preclick",this._fireDOMEvent(_,_.type,p)}var w=this._findEventTargets(o,d);if(p){for(var C=[],B=0;B<p.length;B++)p[B].listens(d,!0)&&C.push(p[B]);w=C.concat(w)}if(w.length){d==="contextmenu"&&qt(o);var $=w[0],V={originalEvent:o};if(o.type!=="keypress"&&o.type!=="keydown"&&o.type!=="keyup"){var te=$.getLatLng&&(!$._radius||$._radius<=10);V.containerPoint=te?this.latLngToContainerPoint($.getLatLng()):this.mouseEventToContainerPoint(o),V.layerPoint=this.containerPointToLayerPoint(V.containerPoint),V.latlng=te?$.getLatLng():this.layerPointToLatLng(V.layerPoint)}for(B=0;B<w.length;B++)if(w[B].fire(d,V,!0),V.originalEvent._stopped||w[B].options.bubblingMouseEvents===!1&&P(this._mouseEvents,d)!==-1)return}},_draggableMoved:function(o){return o=o.dragging&&o.dragging.enabled()?o:this,o.dragging&&o.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var o=0,d=this._handlers.length;o<d;o++)this._handlers[o].disable()},whenReady:function(o,d){return this._loaded?o.call(d||this,{target:this}):this.on("load",o,d),this},_getMapPanePos:function(){return io(this._mapPane)||new z(0,0)},_moved:function(){var o=this._getMapPanePos();return o&&!o.equals([0,0])},_getTopLeftPoint:function(o,d){var p=o&&d!==void 0?this._getNewPixelOrigin(o,d):this.getPixelOrigin();return p.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(o,d){var p=this.getSize()._divideBy(2);return this.project(o,d)._subtract(p)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(o,d,p){var _=this._getNewPixelOrigin(p,d);return this.project(o,d)._subtract(_)},_latLngBoundsToNewLayerBounds:function(o,d,p){var _=this._getNewPixelOrigin(p,d);
vendor: 14,318 bytes, line 283
283return ue([this.project(o.getSouthWest(),d)._subtract(_),this.project(o.getNorthWest(),d)._subtract(_),this.project(o.getSouthEast(),d)._subtract(_),this.project(o.getNorthEast(),d)._subtract(_)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(o){return this.latLngToLayerPoint(o).subtract(this._getCenterLayerPoint())},_limitCenter:function(o,d,p){if(!p)return o;var _=this.project(o,d),w=this.getSize().divideBy(2),C=new le(_.subtract(w),_.add(w)),B=this._getBoundsOffset(C,p,d);return Math.abs(B.x)<=1&&Math.abs(B.y)<=1?o:this.unproject(_.add(B),d)},_limitOffset:function(o,d){if(!d)return o;var p=this.getPixelBounds(),_=new le(p.min.add(o),p.max.add(o));return o.add(this._getBoundsOffset(_,d))},_getBoundsOffset:function(o,d,p){var _=ue(this.project(d.getNorthEast(),p),this.project(d.getSouthWest(),p)),w=_.min.subtract(o.min),C=_.max.subtract(o.max),B=this._rebound(w.x,-C.x),$=this._rebound(w.y,-C.y);return new z(B,$)},_rebound:function(o,d){return o+d>0?Math.round(o-d)/2:Math.max(0,Math.ceil(o))-Math.max(0,Math.floor(d))},_limitZoom:function(o){var d=this.getMinZoom(),p=this.getMaxZoom(),_=Ee.any3d?this.options.zoomSnap:1;return _&&(o=Math.round(o/_)*_),Math.max(d,Math.min(p,o))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){xt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(o,d){var p=this._getCenterOffset(o)._trunc();return(d&&d.animate)!==!0&&!this.getSize().contains(p)?!1:(this.panBy(p,d),!0)},_createAnimProxy:function(){var o=this._proxy=Qe("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(o),this.on("zoomanim",function(d){var p=op,_=this._proxy.style[p];ro(this._proxy,this.project(d.center,d.zoom),this.getZoomScale(d.zoom,1)),_===this._proxy.style[p]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ft(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var o=this.getCenter(),d=this.getZoom();ro(this._proxy,this.project(o,d),this.getZoomScale(d,1))},_catchTransitionEnd:function(o){this._animatingZoom&&o.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(o,d,p){if(this._animatingZoom)return!0;if(p=p||{},!this._zoomAnimated||p.animate===!1||this._nothingToAnimate()||Math.abs(d-this._zoom)>this.options.zoomAnimationThreshold)return!1;var _=this.getZoomScale(d),w=this._getCenterOffset(o)._divideBy(1-1/_);return p.animate!==!0&&!this.getSize().contains(w)?!1:(Z(function(){this._moveStart(!0,p.noMoveStart||!1)._animateZoom(o,d,!0)},this),!0)},_animateZoom:function(o,d,p,_){this._mapPane&&(p&&(this._animatingZoom=!0,this._animateToCenter=o,this._animateToZoom=d,je(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:o,zoom:d,noUpdate:_}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(a(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&xt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function QA(o,d){return new We(o,d)}var br=ee.extend({options:{position:"topright"},initialize:function(o){v(this,o)},getPosition:function(){return this.options.position},setPosition:function(o){var d=this._map;return d&&d.removeControl(this),this.options.position=o,d&&d.addControl(this),this},getContainer:function(){return this._container},addTo:function(o){this.remove(),this._map=o;var d=this._container=this.onAdd(o),p=this.getPosition(),_=o._controlCorners[p];return je(d,"leaflet-control"),p.indexOf("bottom")!==-1?_.insertBefore(d,_.firstChild):_.appendChild(d),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(ft(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(o){this._map&&o&&o.screenX>0&&o.screenY>0&&this._map.getContainer().focus()}}),ql=function(o){return new br(o)};We.include({addControl:function(o){return o.addTo(this),this},removeControl:function(o){return o.remove(),this},_initControlPos:function(){var o=this._controlCorners={},d="leaflet-",p=this._controlContainer=Qe("div",d+"control-container",this._container);function _(w,C){var B=d+w+" "+d+C;o[w+C]=Qe("div",B,p)}_("top","left"),_("top","right"),_("bottom","left"),_("bottom","right")},_clearControlPos:function(){for(var o in this._controlCorners)ft(this._controlCorners[o]);ft(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var n_=br.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(o,d,p,_){return p<_?-1:_<p?1:0}},initialize:function(o,d,p){v(this,p),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var _ in o)this._addLayer(o[_],_);for(_ in d)this._addLayer(d[_],_,!0)},onAdd:function(o){this._initLayout(),this._update(),this._map=o,o.on("zoomend",this._checkDisabledLayers,this);for(var d=0;d<this._layers.length;d++)this._layers[d].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(o){return br.prototype.addTo.call(this,o),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var o=0;o<this._layers.length;o++)this._layers[o].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(o,d){return this._addLayer(o,d),this._map?this._update():this},addOverlay:function(o,d){return this._addLayer(o,d,!0),this._map?this._update():this},removeLayer:function(o){o.off("add remove",this._onLayerChange,this);var d=this._getLayer(u(o));return d&&this._layers.splice(this._layers.indexOf(d),1),this._map?this._update():this},expand:function(){je(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var o=this._map.getSize().y-(this._container.offsetTop+50);return o<this._section.clientHeight?(je(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=o+"px"):xt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return xt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var o="leaflet-control-layers",d=this._container=Qe("div",o),p=this.options.collapsed;d.setAttribute("aria-haspopup",!0),$l(d),bp(d);var _=this._section=Qe("section",o+"-list");p&&(this._map.on("click",this.collapse,this),Oe(d,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var w=this._layersLink=Qe("a",o+"-toggle",d);w.href="#",w.title="Layers",w.setAttribute("role","button"),Oe(w,{keydown:function(C){C.keyCode===13&&this._expandSafely()},click:function(C){qt(C),this._expandSafely()}},this),p||this.expand(),this._baseLayersList=Qe("div",o+"-base",_),this._separator=Qe("div",o+"-separator",_),this._overlaysList=Qe("div",o+"-overlays",_),d.appendChild(_)},_getLayer:function(o){for(var d=0;d<this._layers.length;d++)if(this._layers[d]&&u(this._layers[d].layer)===o)return this._layers[d]},_addLayer:function(o,d,p){this._map&&o.on("add remove",this._onLayerChange,this),this._layers.push({layer:o,name:d,overlay:p}),this.options.sortLayers&&this._layers.sort(a(function(_,w){return this.options.sortFunction(_.layer,w.layer,_.name,w.name)},this)),this.options.autoZIndex&&o.setZIndex&&(this._lastZIndex++,o.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Gc(this._baseLayersList),Gc(this._overlaysList),this._layerControlInputs=[];var o,d,p,_,w=0;for(p=0;p<this._layers.length;p++)_=this._layers[p],this._addItem(_),d=d||_.overlay,o=o||!_.overlay,w+=_.overlay?0:1;return this.options.hideSingleBase&&(o=o&&w>1,this._baseLayersList.style.display=o?"":"none"),this._separator.style.display=d&&o?"":"none",this},_onLayerChange:function(o){this._handlingClick||this._update();var d=this._getLayer(u(o.target)),p=d.overlay?o.type==="add"?"overlayadd":"overlayremove":o.type==="add"?"baselayerchange":null;p&&this._map.fire(p,d)},_createRadioElement:function(o,d){var p='<input type="radio" class="leaflet-control-layers-selector" name="'+o+'"'+(d?' checked="checked"':"")+"/>",_=document.createElement("div");return _.innerHTML=p,_.firstChild},_addItem:function(o){var d=document.createElement("label"),p=this._map.hasLayer(o.layer),_;o.overlay?(_=document.createElement("input"),_.type="checkbox",_.className="leaflet-control-layers-selector",_.defaultChecked=p):_=this._createRadioElement("leaflet-base-layers_"+u(this),p),this._layerControlInputs.push(_),_.layerId=u(o.layer),Oe(_,"click",this._onInputClick,this);var w=document.createElement("span");w.innerHTML=" "+o.name;var C=document.createElement("span");d.appendChild(C),C.appendChild(_),C.appendChild(w);var B=o.overlay?this._overlaysList:this._baseLayersList;return B.appendChild(d),this._checkDisabledLayers(),d},_onInputClick:function(){if(!this._preventClick){var o=this._layerControlInputs,d,p,_=[],w=[];this._handlingClick=!0;for(var C=o.length-1;C>=0;C--)d=o[C],p=this._getLayer(d.layerId).layer,d.checked?_.push(p):d.checked||w.push(p);for(C=0;C<w.length;C++)this._map.hasLayer(w[C])&&this._map.removeLayer(w[C]);for(C=0;C<_.length;C++)this._map.hasLayer(_[C])||this._map.addLayer(_[C]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var o=this._layerControlInputs,d,p,_=this._map.getZoom(),w=o.length-1;w>=0;w--)d=o[w],p=this._getLayer(d.layerId).layer,d.disabled=p.options.minZoom!==void 0&&_<p.options.minZoom||p.options.maxZoom!==void 0&&_>p.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var o=this._section;this._preventClick=!0,Oe(o,"click",qt),this.expand();var d=this;setTimeout(function(){nt(o,"click",qt),d._preventClick=!1})}}),ZA=function(o,d,p){return new n_(o,d,p)},vp=br.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(o){var d="leaflet-control-zoom",p=Qe("div",d+" leaflet-bar"),_=this.options;return this._zoomInButton=this._createButton(_.zoomInText,_.zoomInTitle,d+"-in",p,this._zoomIn),this._zoomOutButton=this._createButton(_.zoomOutText,_.zoomOutTitle,d+"-out",p,this._zoomOut),this._updateDisabled(),o.on("zoomend zoomlevelschange",this._updateDisabled,this),p},onRemove:function(o){o.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(o){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(o.shiftKey?3:1))},_zoomOut:function(o){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(o.shiftKey?3:1))},_createButton:function(o,d,p,_,w){var C=Qe("a",p,_);return C.innerHTML=o,C.href="#",C.title=d,C.setAttribute("role","button"),C.setAttribute("aria-label",d),$l(C),Oe(C,"click",oo),Oe(C,"click",w,this),Oe(C,"click",this._refocusOnMap,this),C},_updateDisabled:function(){var o=this._map,d="leaflet-disabled";xt(this._zoomInButton,d),xt(this._zoomOutButton,d),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||o._zoom===o.getMinZoom())&&(je(this._zoomOutButton,d),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||o._zoom===o.getMaxZoom())&&(je(this._zoomInButton,d),this._zoomInButton.setAttribute("aria-disabled","true"))}});We.mergeOptions({zoomControl:!0}),We.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new vp,this.addControl(this.zoomControl))});var XA=function(o){return new vp(o)},r_=br.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(o){var d="leaflet-control-scale",p=Qe("div",d),_=this.options;return this._addScales(_,d+"-line",p),o.on(_.updateWhenIdle?"moveend":"move",this._update,this),o.whenReady(this._update,this),p},onRemove:function(o){o.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(o,d,p){o.metric&&(this._mScale=Qe("div",d,p)),o.imperial&&(this._iScale=Qe("div",d,p))},_update:function(){var o=this._map,d=o.getSize().y/2,p=o.distance(o.containerPointToLatLng([0,d]),o.containerPointToLatLng([this.options.maxWidth,d]));this._updateScales(p)},_updateScales:function(o){this.options.metric&&o&&this._updateMetric(o),this.options.imperial&&o&&this._updateImperial(o)},_updateMetric:function(o){var d=this._getRoundNum(o),p=d<1e3?d+" m":d/1e3+" km";this._updateScale(this._mScale,p,d/o)},_updateImperial:function(o){var d=o*3.2808399,p,_,w;d>5280?(p=d/5280,_=this._getRoundNum(p),this._updateScale(this._iScale,_+" mi",_/p)):(w=this._getRoundNum(d),this._updateScale(this._iScale,w+" ft",w/d))},_updateScale:function(o,d,p){o.style.width=Math.round(this.options.maxWidth*p)+"px",o.innerHTML=d},_getRoundNum:function(o){var d=Math.pow(10,(Math.floor(o)+"").length-1),p=o/d;return p=p>=10?10:p>=5?5:p>=3?3:p>=2?2:1,d*p}}),JA=function(o){return new r_(o)},eN='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',xp=br.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Ee.inlineSvg?eN+" ":"")+"Leaflet</a>"},initialize:function(o){v(this,o),this._attributions={}}
283,onAdd:function(o){o.attributionControl=this,this._container=Qe("div","leaflet-control-attribution"),$l(this._container);for(var d in o._layers)o._layers[d].getAttribution&&this.addAttribution(o._layers[d].getAttribution());return this._update(),o.on("layeradd",this._addAttribution,this),this._container},onRemove:function(o){o.off("layeradd",this._addAttribution,this)},_addAttribution:function(o){o.layer.getAttribution&&(this.addAttribution(o.layer.getAttribution()),o.layer.once("remove",function(){this.removeAttribution(o.layer.getAttribution())},this))},setPrefix:function(o){return this.options.prefix=o,this._update(),this},addAttribution:function(o){return o?(this._attributions[o]||(this._attributions[o]=0),this._attributions[o]++,this._update(),this):this},removeAttribution:function(o){return o?(this._attributions[o]&&(this._attributions[o]--,this._update()),this):this},_update:function(){if(this._map){var o=[];for(var d in this._attributions)this._attributions[d]&&o.push(d);var p=[];this.options.prefix&&p.push(this.options.prefix),o.length&&p.push(o.join(", ")),this._container.innerHTML=p.join(' <span aria-hidden="true">|</span> ')}}});We.mergeOptions({attributionControl:!0}),We.addInitHook(function(){this.options.attributionControl&&new xp().addTo(this)});var tN=function(o){return new xp(o)};br.Layers=n_,br.Zoom=vp,br.Scale=r_,br.Attribution=xp,ql.layers=ZA,ql.zoom=XA,ql.scale=JA,ql.attribution=tN;var Kr=ee.extend({initialize:function(o){this._map=o},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Kr.addTo=function(o,d){return o.addHandler(d,this),this};var nN={Events:se},i_=Ee.touch?"touchstart mousedown":"mousedown",ns=me.extend({options:{clickTolerance:3},initialize:function(o,d,p,_){v(this,_),this._element=o,this._dragStartTarget=d||o,this._preventOutline=p},enable:function(){this._enabled||(Oe(this._dragStartTarget,i_,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ns._dragging===this&&this.finishDrag(!0),nt(this._dragStartTarget,i_,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(o){if(this._enabled&&(this._moved=!1,!ap(this._element,"leaflet-zoom-anim"))){if(o.touches&&o.touches.length!==1){ns._dragging===this&&this.finishDrag();return}if(!(ns._dragging||o.shiftKey||o.which!==1&&o.button!==1&&!o.touches)&&(ns._dragging=this,this._preventOutline&&fp(this._element),cp(),Ul(),!this._moving)){this.fire("down");var d=o.touches?o.touches[0]:o,p=Qb(this._element);this._startPoint=new z(d.clientX,d.clientY),this._startPos=io(this._element),this._parentScale=pp(p);var _=o.type==="mousedown";Oe(document,_?"mousemove":"touchmove",this._onMove,this),Oe(document,_?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(o){if(this._enabled){if(o.touches&&o.touches.length>1){this._moved=!0;return}var d=o.touches&&o.touches.length===1?o.touches[0]:o,p=new z(d.clientX,d.clientY)._subtract(this._startPoint);!p.x&&!p.y||Math.abs(p.x)+Math.abs(p.y)<this.options.clickTolerance||(p.x/=this._parentScale.x,p.y/=this._parentScale.y,qt(o),this._moved||(this.fire("dragstart"),this._moved=!0,je(document.body,"leaflet-dragging"),this._lastTarget=o.target||o.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),je(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(p),this._moving=!0,this._lastEvent=o,this._updatePosition())}},_updatePosition:function(){var o={originalEvent:this._lastEvent};this.fire("predrag",o),Ct(this._element,this._newPos),this.fire("drag",o)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(o){xt(document.body,"leaflet-dragging"),this._lastTarget&&(xt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),nt(document,"mousemove touchmove",this._onMove,this),nt(document,"mouseup touchend touchcancel",this._onUp,this),dp(),Hl();var d=this._moved&&this._moving;this._moving=!1,ns._dragging=!1,d&&this.fire("dragend",{noInertia:o,distance:this._newPos.distanceTo(this._startPos)})}});function s_(o,d,p){var _,w=[1,4,2,8],C,B,$,V,te,he,ke,Me;for(C=0,he=o.length;C<he;C++)o[C]._code=ao(o[C],d);for($=0;$<4;$++){for(ke=w[$],_=[],C=0,he=o.length,B=he-1;C<he;B=C++)V=o[C],te=o[B],V._code&ke?te._code&ke||(Me=Jc(te,V,ke,d,p),Me._code=ao(Me,d),_.push(Me)):(te._code&ke&&(Me=Jc(te,V,ke,d,p),Me._code=ao(Me,d),_.push(Me)),_.push(V));o=_}return o}function o_(o,d){var p,_,w,C,B,$,V,te,he;if(!o||o.length===0)throw new Error("latlngs not passed");tr(o)||(console.warn("latlngs are not flat! Only the first ring will be used"),o=o[0]);var ke=pe([0,0]),Me=fe(o),cn=Me.getNorthWest().distanceTo(Me.getSouthWest
283())*Me.getNorthEast().distanceTo(Me.getNorthWest());cn<1700&&(ke=Ep(o));var Bt=o.length,nr=[];for(p=0;p<Bt;p++){var xn=pe(o[p]);nr.push(d.project(pe([xn.lat-ke.lat,xn.lng-ke.lng])))}for($=V=te=0,p=0,_=Bt-1;p<Bt;_=p++)w=nr[p],C=nr[_],B=w.y*C.x-C.y*w.x,V+=(w.x+C.x)*B,te+=(w.y+C.y)*B,$+=B*3;$===0?he=nr[0]:he=[V/$,te/$];var aa=d.unproject(N(he));return pe([aa.lat+ke.lat,aa.lng+ke.lng])}function Ep(o){for(var d=0,p=0,_=0,w=0;w<o.length;w++){var C=pe(o[w]);d+=C.lat,p+=C.lng,_++}return pe([d/_,p/_])}var rN={__proto__:null,clipPolygon:s_,polygonCenter:o_,centroid:Ep};function a_(o,d){if(!d||!o.length)return o.slice();var p=d*d;return o=oN(o,p),o=sN(o,p),o}function l_(o,d,p){return Math.sqrt(Wl(o,d,p,!0))}function iN(o,d,p){return Wl(o,d,p)}function sN(o,d){var p=o.length,_=typeof Uint8Array<"u"?Uint8Array:Array,w=new _(p);w[0]=w[p-1]=1,wp(o,w,d,0,p-1);var C,B=[];for(C=0;C<p;C++)w[C]&&B.push(o[C]);return B}function wp(o,d,p,_,w){var C=0,B,$,V;for($=_+1;$<=w-1;$++)V=Wl(o[$],o[_],o[w],!0),V>C&&(B=$,C=V);C>p&&(d[B]=1,wp(o,d,p,_,B),wp(o,d,p,B,w))}function oN(o,d){for(var p=[o[0]],_=1,w=0,C=o.length;_<C;_++)aN(o[_],o[w])>d&&(p.push(o[_]),w=_);return w<C-1&&p.push(o[C-1]),p}var u_;function c_(o,d,p,_,w){var C=_?u_:ao(o,p),B=ao(d,p),$,V,te;for(u_=B;;){if(!(C|B))return[o,d];if(C&B)return!1;$=C||B,V=Jc(o,d,$,p,w),te=ao(V,p),$===C?(o=V,C=te):(d=V,B=te)}}function Jc(o,d,p,_,w){var C=d.x-o.x,B=d.y-o.y,$=_.min,V=_.max,te,he;return p&8?(te=o.x+C*(V.y-o.y)/B,he=V.y):p&4?(te=o.x+C*($.y-o.y)/B,he=$.y):p&2?(te=V.x,he=o.y+B*(V.x-o.x)/C):p&1&&(te=$.x,he=o.y+B*($.x-o.x)/C),new z(te,he,w)}function ao(o,d){var p=0;return o.x<d.min.x?p|=1:o.x>d.max.x&&(p|=2),o.y<d.min.y?p|=4:o.y>d.max.y&&(p|=8),p}function aN(o,d){var p=d.x-o.x,_=d.y-o.y;return p*p+_*_}function Wl(o,d,p,_){var w=d.x,C=d.y,B=p.x-w,$=p.y-C,V=B*B+$*$,te;return V>0&&(te=((o.x-w)*B+(o.y-C)*$)/V,te>1?(w=p.x,C=p.y):te>0&&(w+=B*te,C+=$*te)),B=o.x-w,$=o.y-C,_?B*B+$*$:new z(w,C)}function tr(o){return!T(o[0])||typeof o[0][0]!="object"&&typeof o[0][0]<"u"}function d_(o){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),tr(o)}function h_(o,d){var p,_,w,C,B,$,V,te;if(!o||o.length===0)throw new Error("latlngs not passed");tr(o)||(console.warn("latlngs are not flat! Only the first ring will be used"),o=o[0]);var he=pe([0,0]),ke=fe(o),Me=ke.getNorthWest().distanceTo(ke.getSouthWest
vendor: 4,233 bytes, line 283
283())*ke.getNorthEast().distanceTo(ke.getNorthWest());Me<1700&&(he=Ep(o));var cn=o.length,Bt=[];for(p=0;p<cn;p++){var nr=pe(o[p]);Bt.push(d.project(pe([nr.lat-he.lat,nr.lng-he.lng])))}for(p=0,_=0;p<cn-1;p++)_+=Bt[p].distanceTo(Bt[p+1])/2;if(_===0)te=Bt[0];else for(p=0,C=0;p<cn-1;p++)if(B=Bt[p],$=Bt[p+1],w=B.distanceTo($),C+=w,C>_){V=(C-_)/w,te=[$.x-V*($.x-B.x),$.y-V*($.y-B.y)];break}var xn=d.unproject(N(te));return pe([xn.lat+he.lat,xn.lng+he.lng])}var lN={__proto__:null,simplify:a_,pointToSegmentDistance:l_,closestPointOnSegment:iN,clipSegment:c_,_getEdgeIntersection:Jc,_getBitCode:ao,_sqClosestPointOnSegment:Wl,isFlat:tr,_flat:d_,polylineCenter:h_},Tp={project:function(o){return new z(o.lng,o.lat)},unproject:function(o){return new ve(o.y,o.x)},bounds:new le([-180,-90],[180,90])},Sp={R:6378137,R_MINOR:6356752314245179e-9,bounds:new le([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(o){var d=Math.PI/180,p=this.R,_=o.lat*d,w=this.R_MINOR/p,C=Math.sqrt(1-w*w),B=C*Math.sin(_),$=Math.tan(Math.PI/4-_/2)/Math.pow((1-B)/(1+B),C/2);return _=-p*Math.log(Math.max($,1e-10)),new z(o.lng*d*p,_)},unproject:function(o){for(var d=180/Math.PI,p=this.R,_=this.R_MINOR/p,w=Math.sqrt(1-_*_),C=Math.exp(-o.y/p),B=Math.PI/2-2*Math.atan(C),$=0,V=.1,te;$<15&&Math.abs(V)>1e-7;$++)te=w*Math.sin(B),te=Math.pow((1-te)/(1+te),w/2),V=Math.PI/2-2*Math.atan(C*te)-B,B+=V;return new ve(B*d,o.x*d/p)}},uN={__proto__:null,LonLat:Tp,Mercator:Sp,SphericalMercator:Mt},cN=i({},ut,{code:"EPSG:3395",projection:Sp,transformation:function(){var o=.5/(Math.PI*Sp.R);return bn(o,.5,-o,.5)}()}),f_=i({},ut,{code:"EPSG:4326",projection:Tp,transformation:bn(1/180,1,-1/180,.5)}),dN=i({},Ne,{projection:Tp,transformation:bn(1,0,-1,0),scale:function(o){return Math.pow(2,o)},zoom:function(o){return Math.log(o)/Math.LN2},distance:function(o,d){var p=d.lng-o.lng,_=d.lat-o.lat;return Math.sqrt(p*p+_*_)},infinite:!0});Ne.Earth=ut,Ne.EPSG3395=cN,Ne.EPSG3857=_n,Ne.EPSG900913=es,Ne.EPSG4326=f_,Ne.Simple=dN;var _r=me.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(o){return o.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(o){return o&&o.removeLayer(this),this},getPane:function(o){return this._map.getPane(o?this.options[o]||o:this.options.pane)},addInteractiveTarget:function(o){return this._map._targets[u(o)]=this,this},removeInteractiveTarget:function(o){return delete this._map._targets[u(o)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(o){var d=o.target;if(d.hasLayer(this)){if(this._map=d,this._zoomAnimated=d._zoomAnimated,this.getEvents){var p=this.getEvents();d.on(p,this),this.once("remove",function(){d.off(p,this)},this)}this.onAdd(d),this.fire("add"),d.fire("layeradd",{layer:this})}}});We.include({addLayer:function(o){if(!o._layerAdd)throw new Error("The provided object is not a Layer.");var d=u(o);return this._layers[d]?this:(this._layers[d]=o,o._mapToAdd=this,o.beforeAdd&&o.beforeAdd(this),this.whenReady(o._layerAdd,o),this)},removeLayer:function(o){var d=u(o);return this._layers[d]?(this._loaded&&o.onRemove(this),delete this._layers[d],this._loaded&&(this.fire("layerremove",{layer:o}),o.fire("remove")),o._map=o._mapToAdd=null,this):this},hasLayer:function(o){return u(o)in this._layers},eachLayer:function(o,d){for(var p in this._layers)o.call(d,this._layers[p]);return this},_addLayers:function(o){o=o?T(o)?o:[o]:[];for(var d=0,p=o.length;d<p;d++)this.addLayer(o[d])},_addZoomLimit:function(o){(!isNaN(o.options.maxZoom)||!isNaN(o.options.minZoom))&&(this._zoomBoundLayers[u(o)]=o,this._updateZoomLevels())},_removeZoomLimit:function(o){var d=u(o);this._zoomBoundLayers[d]&&(delete this._zoomBoundLayers[d],this._updateZoomLevels())},_updateZoomLevels:function(){var o=1/0,d=-1/0,p=this._getZoomSpan();for(var _ in this._zoomBoundLayers){var w=this._zoomBoundLayers[_].options;o=w.minZoom===void 0?o:Math.min(o,w.minZoom),d=w.maxZoom===void 0?d:Math.max(d,w.maxZoom)}this._layersMaxZoom=d===-1/0?void 0:d,this._layersMinZoom=o===1/0?void 0:o,p!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZo
283om&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var na=_r.extend({initialize:function(o,d){v(this,d),this._layers={};var p,_;if(o)for(p=0,_=o.length;p<_;p++)this.addLayer(o[p])},addLayer:function(o){var d=this.getLayerId(o);return this._layers[d]=o,this._map&&this._map.addLayer(o),this},removeLayer:function(o){var d=o in this._layers?o:this.getLayerId(o);return this._map&&this._layers[d]&&this._map.removeLayer(this._layers[d]),delete this._layers[d],this},hasLayer:function(o){var d=typeof o=="number"?o:this.getLayerId(o);return d in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(o){var d=Array.prototype.slice.call(arguments,1),p,_;for(p in this._layers)_=this._layers[p],_[o]&&_[o].apply(_,d);return this},onAdd:function(o){this.eachLayer(o.addLayer,o)},onRemove:function(o){this.eachLayer(o.removeLayer,o)},eachLayer:function(o,d){for(var p in this._layers)o.call(d,this._layers[p]);return this},getLayer:function(o){return this._layers[o]},getLayers:function(){var o=[];return this.eachLayer(o.push,o),o},setZIndex:function(o){return this.invoke("setZIndex",o)},getLayerId:function(o){return u(o)}}),hN=function(o,d){return new na(o,d)},vi=na.extend({addLayer:function(o){return this.hasLayer(o)?this:(o.addEventParent(this),na.prototype.addLayer.call(this,o),this.fire("layeradd",{layer:o}))},removeLayer:function(o){return this.hasLayer(o)?(o in this._layers&&(o=this._layers[o]),o.removeEventParent(this),na.prototype.removeLayer.call(this,o),this.fire("layerremove",{layer:o})):this},setStyle:function(o){return this.invoke("setStyle",o)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var o=new j;for(var d in this._layers){var p=this._layers[d];o.extend(p.getBounds?p.getBounds():p.getLatLng())}return o}}),fN=function(o,d){return new vi(o,d)},ra=ee.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(o){v(this,o)},createIcon:function(o){return this._createIcon("icon",o)},createShadow:function(o){return this._createIcon("shadow",o)},_createIcon:function(o,d){var p=this._getIconUrl(o);if(!p){if(o==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var _=this._createImg(p,d&&d.tagName==="IMG"?d:null);return this._setIconStyles(_,o),(this.options.crossOrigin||this.options.crossOrigin==="")&&(_.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),_},_setIconStyles:function(o,d){var p=this.options,_=p[d+"Size"];typeof _=="number"&&(_=[_,_]);var w=N(_),C=N(d==="shadow"&&p.shadowAnchor||p.iconAnchor||w&&w.divideBy(2,!0));o.className="leaflet-marker-"+d+" "+(p.className||""),C&&(o.style.marginLeft=-C.x+"px",o.style.marginTop=-C.y+"px"),w&&(o.style.width=w.x+"px",o.style.height=w.y+"px")},_createImg:function(o,d){return d=d||document.createElement("img"),d.src=o,d},_getIconUrl:function(o){return Ee.retina&&this.options[o+"RetinaUrl"]||this.options[o+"Url"]}});function pN(o){return new ra(o)}var Vl=ra.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(o){return typeof Vl.imagePath!="string"&&(Vl.imagePath=this._detectIconPath()),(this.options.imagePath||Vl.imagePath)+ra.prototype._getIconUrl.call(this,o)},_stripUrl:function(o){var d=function(p,_,w){var C=_.exec(p);return C&&C[w]};return o=d(o,/^url\((['"])?(.+)\1\)$/,2),o&&d(o,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var o=Qe("div","leaflet-default-icon-path",document.body),d=Fl(o,"background-image")||Fl(o,"backgroundImage");if(document.body.removeChild(o),d=this._stripUrl(d),d)return d;var p=document.querySelector('link[href$="leaflet.css"]');return p?p.href.substring(0,p.href.length-11-1):""}}
vendor: 4,228 bytes, line 283
283),p_=Kr.extend({initialize:function(o){this._marker=o},addHooks:function(){var o=this._marker._icon;this._draggable||(this._draggable=new ns(o,o,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),je(o,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&xt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(o){var d=this._marker,p=d._map,_=this._marker.options.autoPanSpeed,w=this._marker.options.autoPanPadding,C=io(d._icon),B=p.getPixelBounds(),$=p.getPixelOrigin(),V=ue(B.min._subtract($).add(w),B.max._subtract($).subtract(w));if(!V.contains(C)){var te=N((Math.max(V.max.x,C.x)-V.max.x)/(B.max.x-V.max.x)-(Math.min(V.min.x,C.x)-V.min.x)/(B.min.x-V.min.x),(Math.max(V.max.y,C.y)-V.max.y)/(B.max.y-V.max.y)-(Math.min(V.min.y,C.y)-V.min.y)/(B.min.y-V.min.y)).multiplyBy(_);p.panBy(te,{animate:!1}),this._draggable._newPos._add(te),this._draggable._startPos._add(te),Ct(d._icon,this._draggable._newPos),this._onDrag(o),this._panRequest=Z(this._adjustPan.bind(this,o))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(o){this._marker.options.autoPan&&(W(this._panRequest),this._panRequest=Z(this._adjustPan.bind(this,o)))},_onDrag:function(o){var d=this._marker,p=d._shadow,_=io(d._icon),w=d._map.layerPointToLatLng(_);p&&Ct(p,_),d._latlng=w,o.latlng=w,o.oldLatLng=this._oldLatLng,d.fire("move",o).fire("drag",o)},_onDragEnd:function(o){W(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",o)}}),ed=_r.extend({options:{icon:new Vl,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(o,d){v(this,d),this._latlng=pe(o)},onAdd:function(o){this._zoomAnimated=this._zoomAnimated&&o.options.markerZoomAnimation,this._zoomAnimated&&o.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(o){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&o.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(o){var d=this._latlng;return this._latlng=pe(o),this.update(),this.fire("move",{oldLatLng:d,latlng:this._latlng})},setZIndexOffset:function(o){return this.options.zIndexOffset=o,this.update()},getIcon:function(){return this.options.icon},setIcon:function(o){return this.options.icon=o,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var o=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(o)}return this},_initIcon:function(){var o=this.options,d="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),p=o.icon.createIcon(this._icon),_=!1;p!==this._icon&&(this._icon&&this._removeIcon(),_=!0,o.title&&(p.title=o.title),p.tagName==="IMG"&&(p.alt=o.alt||"")),je(p,d),o.keyboard&&(p.tabIndex="0",p.setAttribute("role","button")),this._icon=p,o.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Oe(p,"focus",this._panOnFocus,this);var w=o.icon.createShadow(this._shadow),C=!1;w!==this._shadow&&(this._removeShadow(),C=!0),w&&(je(w,d),w.alt=""),this._shadow=w,o.opacity<1&&this._updateOpacity(),_&&this.getPane().appendChild(this._icon),this._initInteraction(),w&&C&&this.getPane(o.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}
vendor: 5,647 bytes, line 283
283),this.options.autoPanOnFocus&&nt(this._icon,"focus",this._panOnFocus,this),ft(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ft(this._shadow),this._shadow=null},_setPos:function(o){this._icon&&Ct(this._icon,o),this._shadow&&Ct(this._shadow,o),this._zIndex=o.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(o){this._icon&&(this._icon.style.zIndex=this._zIndex+o)},_animateZoom:function(o){var d=this._map._latLngToNewLayerPoint(this._latlng,o.zoom,o.center).round();this._setPos(d)},_initInteraction:function(){if(this.options.interactive&&(je(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),p_)){var o=this.options.draggable;this.dragging&&(o=this.dragging.enabled(),this.dragging.disable()),this.dragging=new p_(this),o&&this.dragging.enable()}},setOpacity:function(o){return this.options.opacity=o,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var o=this.options.opacity;this._icon&&er(this._icon,o),this._shadow&&er(this._shadow,o)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var o=this._map;if(o){var d=this.options.icon.options,p=d.iconSize?N(d.iconSize):N(0,0),_=d.iconAnchor?N(d.iconAnchor):N(0,0);o.panInside(this._latlng,{paddingTopLeft:_,paddingBottomRight:p.subtract(_)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function mN(o,d){return new ed(o,d)}var rs=_r.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(o){this._renderer=o.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(o){return v(this,o),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&o&&Object.prototype.hasOwnProperty.call(o,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),td=rs.extend({options:{fill:!0,radius:10},initialize:function(o,d){v(this,d),this._latlng=pe(o),this._radius=this.options.radius},setLatLng:function(o){var d=this._latlng;return this._latlng=pe(o),this.redraw(),this.fire("move",{oldLatLng:d,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(o){return this.options.radius=this._radius=o,this.redraw()},getRadius:function(){return this._radius},setStyle:function(o){var d=o&&o.radius||this._radius;return rs.prototype.setStyle.call(this,o),this.setRadius(d),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var o=this._radius,d=this._radiusY||o,p=this._clickTolerance(),_=[o+p,d+p];this._pxBounds=new le(this._point.subtract(_),this._point.add(_))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(o){return o.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function gN(o,d){return new td(o,d)}var kp=td.extend({initialize:function(o,d,p){if(typeof d=="number"&&(d=i({},p,{radius:d})),v(this,d),this._latlng=pe(o),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(o){return this._mRadius=o,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var o=[this._radius,this._radiusY||this._radius];return new j(this._map.layerPointToLatLng(this._point.subtract(o)),this._map.layerPointToLatLng(this._point.add(o)))},setStyle:rs.prototype.setStyle,_project:function(){var o=this._latlng.lng,d=this._latlng.lat,p=this._map,_=p.options.crs;if(_.distance===ut.distance){var w=Math.PI/180,C=this._mRadius/ut.R/w,B=p.project([d+C,o]),$=p.project([d-C,o]),V=B.add($).divideBy(2),te=p.unproject(V).lat,he=Math.acos((Math.cos(C*w)-Math.sin(d*w)*Math.sin(te*w))/(Math.cos(d*w)*Math.cos(te*w)))/w;(isNaN(he)||he===0)&&(he=C/Math.cos(Math.PI/180*d)),this._point=V.subtract(p.getPixelOrigin()),this._radius=isNaN(he)?0:V.x-p.project([te,o-he]).x,this._radiusY=V.y-B.y}else{var ke=_.unproject(_.project(this._latlng).subtract([this._mRadius,0]));this._point=p.latLngToLayerPoint(this._latlng),this._radius=this._point.x-p.latLngToLayerPoint(ke).x}this._updateBounds()}});function yN(o,d,p){return new kp(o,d,p)}var xi=rs.extend({options:{smoothFactor:1,noClip:!1},initialize:function(o,d){v(this,d),this._setLatLngs(o)},getLatLngs:function(){return this._latlngs},setLatLngs:function(o){return this._setLatLngs(o),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(o){for(var d=1/0,p=null,_=Wl,w,C,B=0,$=this._parts.length;B<$;B++)for(var V=this._parts[B],te=1,he=V.length;te<he;te++){w=V[te-1],C=V[te];var ke=_(o,w,C,!0);ke<d&&(d=ke,p=_(o,w,C))}return p&&(p.distance=Math.sqrt(d)),p}
283,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return h_(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(o,d){return d=d||this._defaultShape(),o=pe(o),d.push(o),this._bounds.extend(o),this.redraw()},_setLatLngs:function(o){this._bounds=new j,this._latlngs=this._convertLatLngs(o)},_defaultShape:function(){return tr(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(o){for(var d=[],p=tr(o),_=0,w=o.length;_<w;_++)p?(d[_]=pe(o[_]),this._bounds.extend(d[_])):d[_]=this._convertLatLngs(o[_]);return d},_project:function(){var o=new le;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,o),this._bounds.isValid()&&o.isValid()&&(this._rawPxBounds=o,this._updateBounds())},_updateBounds:function(){var o=this._clickTolerance(),d=new z(o,o);this._rawPxBounds&&(this._pxBounds=new le([this._rawPxBounds.min.subtract(d),this._rawPxBounds.max.add(d)]))},_projectLatlngs:function(o,d,p){var _=o[0]instanceof ve,w=o.length,C,B;if(_){for(B=[],C=0;C<w;C++)B[C]=this._map.latLngToLayerPoint(o[C]),p.extend(B[C]);d.push(B)}else for(C=0;C<w;C++)this._projectLatlngs(o[C],d,p)},_clipPoints:function(){var o=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(o))){if(this.options.noClip){this._parts=this._rings;return}var d=this._parts,p,_,w,C,B,$,V;for(p=0,w=0,C=this._rings.length;p<C;p++)for(V=this._rings[p],_=0,B=V.length;_<B-1;_++)$=c_(V[_],V[_+1],o,_,!0),$&&(d[w]=d[w]||[],d[w].push($[0]),($[1]!==V[_+1]||_===B-2)&&(d[w].push($[1]),w++))}},_simplifyPoints:function(){for(var o=this._parts,d=this.options.smoothFactor,p=0,_=o.length;p<_;p++)o[p]=a_(o[p],d)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(o,d){var p,_,w,C,B,$,V=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(o))return!1;for(p=0,C=this._parts.length;p<C;p++)for($=this._parts[p],_=0,B=$.length,w=B-1;_<B;w=_++)if(!(!d&&_===0)&&l_(o,$[w],$[_])<=V)return!0;return!1}});function bN(o,d){return new xi(o,d)}xi._flat=d_;var ia=xi.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length}
283,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return o_(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(o){var d=xi.prototype._convertLatLngs.call(this,o),p=d.length;return p>=2&&d[0]instanceof ve&&d[0].equals(d[p-1])&&d.pop(),d},_setLatLngs:function(o){xi.prototype._setLatLngs.call(this,o),tr(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return tr(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var o=this._renderer._bounds,d=this.options.weight,p=new z(d,d);if(o=new le(o.min.subtract(p),o.max.add(p)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(o))){if(this.options.noClip){this._parts=this._rings;return}for(var _=0,w=this._rings.length,C;_<w;_++)C=s_(this._rings[_],o,!0),C.length&&this._parts.push(C)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(o){var d=!1,p,_,w,C,B,$,V,te;if(!this._pxBounds||!this._pxBounds.contains(o))return!1;for(C=0,V=this._parts.length;C<V;C++)for(p=this._parts[C],B=0,te=p.length,$=te-1;B<te;$=B++)_=p[B],w=p[$],_.y>o.y!=w.y>o.y&&o.x<(w.x-_.x)*(o.y-_.y)/(w.y-_.y)+_.x&&(d=!d);return d||xi.prototype._containsPoint.call(this,o,!0)}});function _N(o,d){return new ia(o,d)}var Ei=vi.extend({initialize:function(o,d){v(this,d),this._layers={},o&&this.addData(o)},addData:function(o){var d=T(o)?o:o.features,p,_,w;if(d){for(p=0,_=d.length;p<_;p++)w=d[p],(w.geometries||w.geometry||w.features||w.coordinates)&&this.addData(w);return this}var C=this.options;if(C.filter&&!C.filter(o))return this;var B=nd(o,C);return B?(B.feature=sd(o),B.defaultOptions=B.options,this.resetStyle(B),C.onEachFeature&&C.onEachFeature(o,B),this.addLayer(B)):this},resetStyle:function(o){return o===void 0?this.eachLayer(this.resetStyle,this):(o.options=i({},o.defaultOptions),this._setLayerStyle(o,this.options.style),this)},setStyle:function(o){return this.eachLayer(function(d){this._setLayerStyle(d,o)},this)},_setLayerStyle:function(o,d){o.setStyle&&(typeof d=="function"&&(d=d(o.feature)),o.setStyle(d))}});function nd(o,d){var p=o.type==="Feature"?o.geometry:o,_=p?p.coordinates:null,w=[],C=d&&d.pointToLayer,B=d&&d.coordsToLatLng||Cp,$,V,te,he;if(!_&&!p)return null;switch(p.type){case"Point":return $=B(_),m_(C,o,$,d);case"MultiPoint":for(te=0,he=_.length;te<he;te++)$=B(_[te]),w.push(m_(C,o,$,d));return new vi(w);case"LineString":case"MultiLineString":return V=rd(_,p.type==="LineString"?0:1,B),new xi(V,d);case"Polygon":case"MultiPolygon":return V=rd(_,p.type==="Polygon"?1:2,B),new ia(V,d);case"GeometryCollection":for(te=0,he=p.geometries.length;te<he;te++){var ke=nd({geometry:p.geometries[te],type:"Feature",properties:o.properties},d);ke&&w.push(ke)}return new vi(w);case"FeatureCollection":for(te=0,he=p.features.length;te<he;te++){var Me=nd(p.features[te],d);Me&&w.push(Me)}return new vi(w);default:throw new Error("Invalid GeoJSON object.")}}function m_(o,d,p,_){return o?o(d,p):new ed(p,_&&_.markersInheritOptions&&_)}function Cp(o){return new ve(o[1],o[0],o[2])}function rd(o,d,p){for(var _=[],w=0,C=o.length,B;w<C;w++)B=d?rd(o[w],d-1,p):(p||Cp)(o[w]),_.push(B);return _}function Ap(o,d){return o=pe(o),o.alt!==void 0?[y(o.lng,d),y(o.lat,d),y(o.alt,d)]:[y(o.lng,d),y(o.lat,d)]}function id(o,d,p,_){for(var w=[],C=0,B=o.length;C<B;C++)w.push(d?id(o[C],tr(o[C])?0:d-1,p,_):Ap(o[C],_));return!d&&p&&w.length>0&&w.push(w[0].slice()),w}function sa(o,d){return o.feature?i({},o.feature,{geometry:d}):sd(d)}function sd(o){return o.type==="Feature"||o.type==="FeatureCollection"?o:{type:"Feature",properties:{},geometry:o}}var Np={toGeoJSON:function(o){return sa(this,{type:"Point",coordinates:Ap(this.getLatLng(),o)})}};ed.include(Np),kp.include(Np),td.include(Np),xi.include({toGeoJSON:function(o){var d=!tr(this._latlngs),p=id(this._latlngs,d?1:0,!1,o);return sa(this,{type:(d?"Multi":"")+"LineString",coordinates:p})}}),ia.include({toGeoJSON:function(o){var d=!tr(this._latlngs),p=d&&!tr(this._latlngs[0]),_=id(this._latlngs,p?2:d?1:0,!0,o);return d||(_=[_]),sa(this,{type:(p?"Multi":"")+"Polygon",coordinates:_})}}),na.include({toMultiPoint:function(o){var d=[];return this.eachLayer(function(p){d.push(p.toGeoJSON(o).geometry.coordinates)}),sa(this,{type:"MultiPoint",coordinates:d})},toGeoJSON:function(o){var d=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(d==="MultiPoint")return this.toMultiPoint(o);var p=d==="GeometryCollection",_=[];return this.eachLayer(function(w){if(w.toGeoJSON){var C=w.toGeoJSON(o);if(p)_.push(C.geometry);else{var B=sd(C);B.type==="FeatureCollection"?_.push.apply(_,B.features):_.push(B)}}}),p?sa(this,{geometries:_,type:"GeometryCollection"}):{type:"FeatureCollection",features:_}}});function g_(o,d){return new Ei(o,d)}var vN=g_,od=_r.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(o,d,p){this._url=o,this._bounds=fe(d),v(this,p)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(je(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ft(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(o){return this.options.opacity=o,this._image&&this._updateOpacity(),this},setStyle:function(o){return o.opacity&&this.setOpacity(o.opacity),this},bringToFront:function(){return this._map&&ea(this._image),this},bringToBack:function(){return this._map&&ta(this._image),this},setUrl:function(o){return this._url=o,this._image&&(this._image.src=o),this}
vendor: 10,744 bytes, line 283
283,setBounds:function(o){return this._bounds=fe(o),this._map&&this._reset(),this},getEvents:function(){var o={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(o.zoomanim=this._animateZoom),o},setZIndex:function(o){return this.options.zIndex=o,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var o=this._url.tagName==="IMG",d=this._image=o?this._url:Qe("img");if(je(d,"leaflet-image-layer"),this._zoomAnimated&&je(d,"leaflet-zoom-animated"),this.options.className&&je(d,this.options.className),d.onselectstart=m,d.onmousemove=m,d.onload=a(this.fire,this,"load"),d.onerror=a(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(d.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),o){this._url=d.src;return}d.src=this._url,d.alt=this.options.alt},_animateZoom:function(o){var d=this._map.getZoomScale(o.zoom),p=this._map._latLngBoundsToNewLayerBounds(this._bounds,o.zoom,o.center).min;ro(this._image,p,d)},_reset:function(){var o=this._image,d=new le(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),p=d.getSize();Ct(o,d.min),o.style.width=p.x+"px",o.style.height=p.y+"px"},_updateOpacity:function(){er(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var o=this.options.errorOverlayUrl;o&&this._url!==o&&(this._url=o,this._image.src=o)},getCenter:function(){return this._bounds.getCenter()}}),xN=function(o,d,p){return new od(o,d,p)},y_=od.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var o=this._url.tagName==="VIDEO",d=this._image=o?this._url:Qe("video");if(je(d,"leaflet-image-layer"),this._zoomAnimated&&je(d,"leaflet-zoom-animated"),this.options.className&&je(d,this.options.className),d.onselectstart=m,d.onmousemove=m,d.onloadeddata=a(this.fire,this,"load"),o){for(var p=d.getElementsByTagName("source"),_=[],w=0;w<p.length;w++)_.push(p[w].src);this._url=p.length>0?_:[d.src];return}T(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(d.style,"objectFit")&&(d.style.objectFit="fill"),d.autoplay=!!this.options.autoplay,d.loop=!!this.options.loop,d.muted=!!this.options.muted,d.playsInline=!!this.options.playsInline;for(var C=0;C<this._url.length;C++){var B=Qe("source");B.src=this._url[C],d.appendChild(B)}}});function EN(o,d,p){return new y_(o,d,p)}var b_=od.extend({_initImage:function(){var o=this._image=this._url;je(o,"leaflet-image-layer"),this._zoomAnimated&&je(o,"leaflet-zoom-animated"),this.options.className&&je(o,this.options.className),o.onselectstart=m,o.onmousemove=m}});function wN(o,d,p){return new b_(o,d,p)}var Gr=_r.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(o,d){o&&(o instanceof ve||T(o))?(this._latlng=pe(o),v(this,d)):(v(this,o),this._source=d),this.options.content&&(this._content=this.options.content)},openOn:function(o){return o=arguments.length?o:this._source._map,o.hasLayer(this)||o.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(o){return this._map?this.close():(arguments.length?this._source=o:o=this._source,this._prepareOpen(),this.openOn(o._map)),this},onAdd:function(o){this._zoomAnimated=o._zoomAnimated,this._container||this._initLayout(),o._fadeAnimated&&er(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),o._fadeAnimated&&er(this._container,1),this.bringToFront(),this.options.interactive&&(je(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(o){o._fadeAnimated?(er(this._container,0),this._removeTimeout=setTimeout(a(ft,void 0,this._container),200)):ft(this._container),this.options.interactive&&(xt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(o){return this._latlng=pe(o),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(o){return this._content=o,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var o={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(o.zoomanim=this._animateZoom),o},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ea(this._container),this},bringToBack:function(){return this._map&&ta(this._container),this},_prepareOpen:function(o){var d=this._source;if(!d._map)return!1;if(d instanceof vi){d=null;var p=this._source._layers;for(var _ in p)if(p[_]._map){d=p[_];break}if(!d)return!1;this._source=d}if(!o)if(d.getCenter)o=d.getCenter();else if(d.getLatLng)o=d.getLatLng();else if(d.getBounds)o=d.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(o),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var o=this._contentNode,d=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof d=="string")o.innerHTML=d;else{for(;o.hasChildNodes();)o.removeChild(o.firstChild);o.appendChild(d)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var o=this._map.latLngToLayerPoint(this._latlng),d=N(this.options.offset),p=this._getAnchor();this._zoomAnimated?Ct(this._container,o.add(p)):d=d.add(o).add(p);var _=this._containerBottom=-d.y,w=this._containerLeft=-Math.round(this._containerWidth/2)+d.x;this._container.style.bottom=_+"px",this._container.style.left=w+"px"}},_getAnchor:function(){return[0,0]}});We.include({_initOverlay:function(o,d,p,_){var w=d;return w instanceof o||(w=new o(_).setContent(d)),p&&w.setLatLng(p),w}}),_r.include({_initOverlay:function(o,d,p,_){var w=p;return w instanceof o?(v(w,_),w._source=this):(w=d&&!_?d:new o(_,this),w.setContent(p)),w}});var ad=Gr.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(o){return o=arguments.length?o:this._source._map,!o.hasLayer(this)&&o._popup&&o._popup.options.autoClose&&o.removeLayer(o._popup),o._popup=this,Gr.prototype.openOn.call(this,o)},onAdd:function(o){Gr.prototype.onAdd.call(this,o),o.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof rs||this._source.on("preclick",so))},onRemove:function(o){Gr.prototype.onRemove.call(this,o),o.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof rs||this._source.off("preclick",so))},getEvents:function(){var o=Gr.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(o.preclick=this.close),this.options.keepInView&&(o.moveend=this._adjustPan),o},_initLayout:function(){var o="leaflet-popup",d=this._container=Qe("div",o+" "+(this.options.className||"")+" leaflet-zoom-animated"),p=this._wrapper=Qe("div",o+"-content-wrapper",d);if(this._contentNode=Qe("div",o+"-content",p),$l(d),bp(this._contentNode),Oe(d,"contextmenu",so),this._tipContainer=Qe("div",o+"-tip-container",d),this._tip=Qe("div",o+"-tip",this._tipContainer),this.options.closeButton){var _=this._closeButton=Qe("a",o+"-close-button",d);_.setAttribute("role","button"),_.setAttribute("aria-label","Close popup"),_.href="#close",_.innerHTML='<span aria-hidden="true">×</span>',Oe(_,"click",function(w){qt(w),this.close()},this)}},_updateLayout:function(){var o=this._contentNode,d=o.style;d.width="",d.whiteSpace="nowrap";var p=o.offsetWidth;p=Math.min(p,this.options.maxWidth),p=Math.max(p,this.options.minWidth),d.width=p+1+"px",d.whiteSpace="",d.height="";var _=o.offsetHeight,w=this.options.maxHeight,C="leaflet-popup-scrolled";w&&_>w?(d.height=w+"px",je(o,C)):xt(o,C),this._containerWidth=this._container.offsetWidth},_animateZoom:function(o){var d=this._map._latLngToNewLayerPoint(this._latlng,o.zoom,o.center),p=this._getAnchor();Ct(this._container,d.add(p))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var o=this._map,d=parseInt(Fl(this._container,"marginBottom"),10)||0,p=this._container.offsetHeight+d,_=this._containerWidth,w=new z(this._containerLeft,-p-this._containerBottom);w._add(io(this._container));var C=o.layerPointToContainerPoint(w),B=N(this.options.autoPanPadding),$=N(this.options.autoPanPaddingTopLeft||B),V=N(this.options.autoPanPaddingBottomRight||B),te=o.getSize(),he=0,ke=0;C.x+_+V.x>te.x&&(he=C.x+_-te.x+V.x),C.x-he-$.x<0&&(he=C.x-$.x),C.y+p+V.y>te.y&&(ke=C.y+p-te.y+V.y),C.y-ke-$.y<0&&(ke=C.y-$.y),(he||ke)&&(this.options.keepInView&&(this._autopanning=!0),o.fire("autopanstart").panBy([he,ke]))}},_getAnchor:function(){return N(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),TN=function(o,d){return new ad(o,d)};We.mergeOptions({closePopupOnClick:!0}),We.include({openPopup:function(o,d,p){return this._initOverlay(ad,o,d,p).openOn(this),this},closePopup:function(o){return o=arguments.length?o:this._popup,o&&o.close(),this}}),_r.include({bindPopup:function(o,d){return this._popup=this._initOverlay(ad,this._popup,o,d),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(o){return this._popup&&(this instanceof vi||(this._popup._source=this),this._popup._prepareOpen(o||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1}
283,setPopupContent:function(o){return this._popup&&this._popup.setContent(o),this},getPopup:function(){return this._popup},_openPopup:function(o){if(!(!this._popup||!this._map)){oo(o);var d=o.layer||o.target;if(this._popup._source===d&&!(d instanceof rs)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(o.latlng);return}this._popup._source=d,this.openPopup(o.latlng)}},_movePopup:function(o){this._popup.setLatLng(o.latlng)},_onKeyPress:function(o){o.originalEvent.keyCode===13&&this._openPopup(o)}});var ld=Gr.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(o){Gr.prototype.onAdd.call(this,o),this.setOpacity(this.options.opacity),o.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(o){Gr.prototype.onRemove.call(this,o),o.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var o=Gr.prototype.getEvents.call(this);return this.options.permanent||(o.preclick=this.close),o},_initLayout:function(){var o="leaflet-tooltip",d=o+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Qe("div",d),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+u(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(o){var d,p,_=this._map,w=this._container,C=_.latLngToContainerPoint(_.getCenter()),B=_.layerPointToContainerPoint(o),$=this.options.direction,V=w.offsetWidth,te=w.offsetHeight,he=N(this.options.offset),ke=this._getAnchor();$==="top"?(d=V/2,p=te):$==="bottom"?(d=V/2,p=0):$==="center"?(d=V/2,p=te/2):$==="right"?(d=0,p=te/2):$==="left"?(d=V,p=te/2):B.x<C.x?($="right",d=0,p=te/2):($="left",d=V+(he.x+ke.x)*2,p=te/2),o=o.subtract(N(d,p,!0)).add(he).add(ke),xt(w,"leaflet-tooltip-right"),xt(w,"leaflet-tooltip-left"),xt(w,"leaflet-tooltip-top"),xt(w,"leaflet-tooltip-bottom"),je(w,"leaflet-tooltip-"+$),Ct(w,o)},_updatePosition:function(){var o=this._map.latLngToLayerPoint(this._latlng);this._setPosition(o)},setOpacity:function(o){this.options.opacity=o,this._container&&er(this._container,o)},_animateZoom:function(o){var d=this._map._latLngToNewLayerPoint(this._latlng,o.zoom,o.center);this._setPosition(d)},_getAnchor:function(){return N(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),SN=function(o,d){return new ld(o,d)};We.include({openTooltip:function(o,d,p){return this._initOverlay(ld,o,d,p).openOn(this),this},closeTooltip:function(o){return o.close(),this}}),_r.include({bindTooltip:function(o,d){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(ld,this._tooltip,o,d),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(o){if(!(!o&&this._tooltipHandlersAdded)){var d=o?"off":"on",p={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?p.add=this._openTooltip:(p.mouseover=this._openTooltip,p.mouseout=this.closeTooltip,p.click=this._openTooltip,this._map?this._addFocusListeners():p.add=this._addFocusListeners),this._tooltip.options.sticky&&(p.mousemove=this._moveTooltip),this[d](p),this._tooltipHandlersAdded=!o}},openTooltip:function(o){return this._tooltip&&(this instanceof vi||(this._tooltip._source=this),this._tooltip._prepareOpen(o)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(o){return this._tooltip&&this._tooltip.setContent(o),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(o){var d=typeof o.getElement=="function"&&o.getElement();d&&(Oe(d,"focus",function(){this._tooltip._source=o,this.openTooltip()},this),Oe(d,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(o){var d=typeof o.getElement=="function"&&o.getElement();d&&d.setAttribute("aria-describedby",this._tooltip._container.id)}
vendor: 4,344 bytes, line 283
283,_openTooltip:function(o){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var d=this;this._map.once("moveend",function(){d._openOnceFlag=!1,d._openTooltip(o)});return}this._tooltip._source=o.layer||o.target,this.openTooltip(this._tooltip.options.sticky?o.latlng:void 0)}},_moveTooltip:function(o){var d=o.latlng,p,_;this._tooltip.options.sticky&&o.originalEvent&&(p=this._map.mouseEventToContainerPoint(o.originalEvent),_=this._map.containerPointToLayerPoint(p),d=this._map.layerPointToLatLng(_)),this._tooltip.setLatLng(d)}});var __=ra.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(o){var d=o&&o.tagName==="DIV"?o:document.createElement("div"),p=this.options;if(p.html instanceof Element?(Gc(d),d.appendChild(p.html)):d.innerHTML=p.html!==!1?p.html:"",p.bgPos){var _=N(p.bgPos);d.style.backgroundPosition=-_.x+"px "+-_.y+"px"}return this._setIconStyles(d,"icon"),d},createShadow:function(){return null}});function kN(o){return new __(o)}ra.Default=Vl;var Kl=_r.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Ee.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(o){v(this,o)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(o){o._addZoomLimit(this)},onRemove:function(o){this._removeAllTiles(),ft(this._container),o._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ea(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ta(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(o){return this.options.opacity=o,this._updateOpacity(),this},setZIndex:function(o){return this.options.zIndex=o,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var o=this._clampZoom(this._map.getZoom());o!==this._tileZoom&&(this._tileZoom=o,this._updateLevels()),this._update()}return this},getEvents:function(){var o={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=h(this._onMoveEnd,this.options.updateInterval,this)),o.move=this._onMove),this._zoomAnimated&&(o.zoomanim=this._animateZoom),o},createTile:function(){return document.createElement("div")},getTileSize:function(){var o=this.options.tileSize;return o instanceof z?o:new z(o,o)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(o){for(var d=this.getPane().children,p=-o(-1/0,1/0),_=0,w=d.length,C;_<w;_++)C=d[_].style.zIndex,d[_]!==this._container&&C&&(p=o(p,+C));isFinite(p)&&(this.options.zIndex=p+o(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Ee.ielt9){er(this._container,this.options.opacity);var o=+new Date,d=!1,p=!1;for(var _ in this._tiles){var w=this._tiles[_];if(!(!w.current||!w.loaded)){var C=Math.min(1,(o-w.loaded)/200);er(w.el,C),C<1?d=!0:(w.active?p=!0:this._onOpaqueTile(w),w.active=!0)}}p&&!this._noPrune&&this._pruneTiles(),d&&(W(this._fadeFrame),this._fadeFrame=Z(this._updateOpacity,this))}},_onOpaqueTile:m,_initContainer:function(){this._container||(this._container=Qe("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var o=this._tileZoom,d=this.options.maxZoom;if(o!==void 0){for(var p in this._levels)p=Number(p),this._levels[p].el.children.length||p===o?(this._levels[p].el.style.zIndex=d-Math.abs(o-p),this._onUpdateLevel(p)):(ft(this._levels[p].el),this._removeTilesAtZoom(p),this._onRemoveLevel(p),delete this._levels[p]);var _=this._levels[o],w=this._map;return _||(_=this._levels[o]={},_.el=Qe("div","leaflet-tile-container leaflet-zoom-animated",this._container),_.el.style.zIndex=d,_.origin=w.project(w.unproject(w.getPixelOrigin()),o).roun
283d(),_.zoom=o,this._setZoomTransform(_,w.getCenter(),w.getZoom()),m(_.el.offsetWidth),this._onCreateLevel(_)),this._level=_,_}},_onUpdateLevel:m,_onRemoveLevel:m,_onCreateLevel:m,_pruneTiles:function(){if(this._map){var o,d,p=this._map.getZoom();if(p>this.options.maxZoom||p<this.options.minZoom){this._removeAllTiles();return}for(o in this._tiles)d=this._tiles[o],d.retain=d.current;for(o in this._tiles)if(d=this._tiles[o],d.current&&!d.active){var _=d.coords;this._retainParent(_.x,_.y,_.z,_.z-5)||this._retainChildren(_.x,_.y,_.z,_.z+2)}for(o in this._tiles)this._tiles[o].retain||this._removeTile(o)}},_removeTilesAtZoom:function(o){for(var d in this._tiles)this._tiles[d].coords.z===o&&this._removeTile(d)},_removeAllTiles:function(){for(var o in this._tiles)this._removeTile(o)},_invalidateAll:function(){for(var o in this._levels)ft(this._levels[o].el),this._onRemoveLevel(Number(o)),delete this._levels[o];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(o,d,p,_){var w=Math.floor(o/2),C=Math.floor(d/2),B=p-1,$=new z(+w,+C);$.z=+B;var V=this._tileCoordsToKey($),te=this._tiles[V];return te&&te.active?(te.retain=!0,!0):(te&&te.loaded&&(te.retain=!0),B>_?this._retainParent(w,C,B,_):!1)},_retainChildren:function(o,d,p,_){for(var w=2*o;w<2*o+2;w++)for(var C=2*d;C<2*d+2;C++){var B=new z(w,C);B.z=p+1;var $=this._tileCoordsToKey(B),V=this._tiles[$];if(V&&V.active){V.retain=!0;continue}else V&&V.loaded&&(V.retain=!0);p+1<_&&this._retainChildren(w,C,p+1,_)}},_resetView:function(o){var d=o&&(o.pinch||o.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),d,d)},_animateZoom:function(o){this._setView(o.center,o.zoom,!0,o.noUpdate)},_clampZoom:function(o){var d=this.options;return d.minNativeZoom!==void 0&&o<d.minNativeZoom?d.minNativeZoom:d.maxNativeZoom!==void 0&&d.maxNativeZoom<o?d.maxNativeZoom:o},_setView:function(o,d,p,_){var w=Math.round(d);this.options.maxZoom!==void 0&&w>this.options.maxZoom||this.options.minZoom!==void 0&&w<this.options.minZoom?w=void 0:w=this._clampZoom(w);var C=this.options.updateWhenZooming&&w!==this._tileZoom;(!_||C)&&(this._tileZoom=w,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),w!==void 0&&this._update(o),p||this._pruneTiles(),this._noPrune=!!p),this._setZoomTransforms(o,d)},_setZoomTransforms:function(o,d){for(var p in this._levels)this._setZoomTransform(this._levels[p],o,d)},_setZoomTransform:function(o,d,p){var _=this._map.getZoomScale(p,o.zoom),w=o.origin.multiplyBy(_).subtract(this._map._getNewPixelOrigin(d,p)).round();Ee.any3d?ro(o.el,w,_):Ct(o.el,w)},_resetGrid:function(){var o=this._map,d=o.options.crs,p=this._tileSize=this.getTileSize(),_=this._tileZoom,w=this._map.getPixelWorldBounds(this._tileZoom);w&&(this._globalTileRange=this._pxBoundsToTileRange(w)),this._wrapX=d.wrapLng&&!this.options.noWrap&&[Math.floor(o.project([0,d.wrapLng[0]],_).x/p.x),Math.ceil(o.project([0,d.wrapLng[1]],_).x/p.y)],this._wrapY=d.wrapLat&&!this.options.noWrap&&[Math.floor(o.project([d.wrapLat[0],0],_).y/p.x),Math.ceil(o.project([d.wrapLat[1],0],_).y/p.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(o){var d=this._map,p=d._animatingZoom?Math.max(d._animateToZoom,d.getZoom()):d.getZoom(),_=d.getZoomScale(p,this._tileZoom),w=d.project(o,this._tileZoom).floor(),C=d.getSize().divideBy(_*2);return new le(w.subtract(C),w.add(C))},_update:function(o){var d=this._map;if(d){var p=this._clampZoom(d.getZoom());if(o===void 0&&(o=d.getCenter()),this._tileZoom!==void 0){var _=this._getTiledPixelBounds(o),w=this._pxBoundsToTileRange(_),C=w.getCenter(),B=[],$=this.options.keepBuffer,V=new le(w.getBottomLeft().subtract([$,-$]),w.getTopRight().add([$,-$]));if(!(isFinite(w.min.x)&&isFinite(w.min.y)&&isFinite(w.max.x)&&isFinite(w.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var te in this._tiles){var he=this._tiles[te].coords;(he.z!==this._tileZoom||!V.contains(new z(he.x,he.y)))&&(this._tiles[te].current=!1)}if(Math.abs(p-this._tileZoom)>1){this._setView(o,p);return}for(var ke=w.min.y;ke<=w.max.y;ke++)for(var Me=w.min.x;Me<=w.max.x;Me++){var cn=new z(Me,ke);if(cn.z=this._tileZoom,!!this._isValidTile(cn)){var Bt=this._tiles[this._tileCoordsToKey(cn)];Bt?Bt.current=!0:B.push(cn)}}if(B.sort(function(xn,aa){return xn.distanceTo(C)-aa.distanceTo(C)}),B.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var nr=document.createDocumentFragment();for(Me=0;Me<B.length;Me++)this._addTile(B[Me],nr);this._level.el.appendChild(nr)}}}},_isValidTile:function(o){var d=this._map.options.crs;if(!d.infinite){var p=this._globalTileRange;if(!d.wrapLng&&(o.x<p.min.x||o.x>p.max.x)||!d.wrapLat&&(o.y<p.min.y||o.y>p.max.y))return!1}if(!this.options.bounds)return!0;var _=this._tileCoordsToBounds(o);return fe(this.options.bounds).overlaps(_)},_keyToBounds:function(o){return this._tileCoordsToBounds(this._keyToTileCoords(o))},_tileCoordsToNwSe:function(o){var d=this._map,p=this.getTileSize(),_=o.scaleBy(p),w=_.add(p),C=d.unproject(_,o.z),B=d.unproject(w,o.z);return[C,B]},_tileCoordsToBounds:function(o){var d=this._tileCoordsToNwSe(o),p=new j(d[0],d[1]);return this.options.noWrap||(p=this._map.wrapLatLngBounds(p)),p}
vendor: 6,882 bytes, line 283
283,_tileCoordsToKey:function(o){return o.x+":"+o.y+":"+o.z},_keyToTileCoords:function(o){var d=o.split(":"),p=new z(+d[0],+d[1]);return p.z=+d[2],p},_removeTile:function(o){var d=this._tiles[o];d&&(ft(d.el),delete this._tiles[o],this.fire("tileunload",{tile:d.el,coords:this._keyToTileCoords(o)}))},_initTile:function(o){je(o,"leaflet-tile");var d=this.getTileSize();o.style.width=d.x+"px",o.style.height=d.y+"px",o.onselectstart=m,o.onmousemove=m,Ee.ielt9&&this.options.opacity<1&&er(o,this.options.opacity)},_addTile:function(o,d){var p=this._getTilePos(o),_=this._tileCoordsToKey(o),w=this.createTile(this._wrapCoords(o),a(this._tileReady,this,o));this._initTile(w),this.createTile.length<2&&Z(a(this._tileReady,this,o,null,w)),Ct(w,p),this._tiles[_]={el:w,coords:o,current:!0},d.appendChild(w),this.fire("tileloadstart",{tile:w,coords:o})},_tileReady:function(o,d,p){d&&this.fire("tileerror",{error:d,tile:p,coords:o});var _=this._tileCoordsToKey(o);p=this._tiles[_],p&&(p.loaded=+new Date,this._map._fadeAnimated?(er(p.el,0),W(this._fadeFrame),this._fadeFrame=Z(this._updateOpacity,this)):(p.active=!0,this._pruneTiles()),d||(je(p.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:p.el,coords:o})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Ee.ielt9||!this._map._fadeAnimated?Z(this._pruneTiles,this):setTimeout(a(this._pruneTiles,this),250)))},_getTilePos:function(o){return o.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(o){var d=new z(this._wrapX?f(o.x,this._wrapX):o.x,this._wrapY?f(o.y,this._wrapY):o.y);return d.z=o.z,d},_pxBoundsToTileRange:function(o){var d=this.getTileSize();return new le(o.min.unscaleBy(d).floor(),o.max.unscaleBy(d).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var o in this._tiles)if(!this._tiles[o].loaded)return!1;return!0}});function CN(o){return new Kl(o)}var oa=Kl.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(o,d){this._url=o,d=v(this,d),d.detectRetina&&Ee.retina&&d.maxZoom>0?(d.tileSize=Math.floor(d.tileSize/2),d.zoomReverse?(d.zoomOffset--,d.minZoom=Math.min(d.maxZoom,d.minZoom+1)):(d.zoomOffset++,d.maxZoom=Math.max(d.minZoom,d.maxZoom-1)),d.minZoom=Math.max(0,d.minZoom)):d.zoomReverse?d.minZoom=Math.min(d.maxZoom,d.minZoom):d.maxZoom=Math.max(d.minZoom,d.maxZoom),typeof d.subdomains=="string"&&(d.subdomains=d.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(o,d){return this._url===o&&d===void 0&&(d=!0),this._url=o,d||this.redraw(),this},createTile:function(o,d){var p=document.createElement("img");return Oe(p,"load",a(this._tileOnLoad,this,d,p)),Oe(p,"error",a(this._tileOnError,this,d,p)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(p.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(p.referrerPolicy=this.options.referrerPolicy),p.alt="",p.src=this.getTileUrl(o),p},getTileUrl:function(o){var d={r:Ee.retina?"@2x":"",s:this._getSubdomain(o),x:o.x,y:o.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var p=this._globalTileRange.max.y-o.y;this.options.tms&&(d.y=p),d["-y"]=p}return S(this._url,i(d,this.options))},_tileOnLoad:function(o,d){Ee.ielt9?setTimeout(a(o,this,null,d),0):o(null,d)},_tileOnError:function(o,d,p){var _=this.options.errorTileUrl;_&&d.getAttribute("src")!==_&&(d.src=_),o(p,d)},_onTileRemove:function(o){o.tile.onload=null},_getZoomForUrl:function(){var o=this._tileZoom,d=this.options.maxZoom,p=this.options.zoomReverse,_=this.options.zoomOffset;return p&&(o=d-o),o+_},_getSubdomain:function(o){var d=Math.abs(o.x+o.y)%this.options.subdomains.length;return this.options.subdomains[d]},_abortLoading:function(){var o,d;for(o in this._tiles)if(this._tiles[o].coords.z!==this._tileZoom&&(d=this._tiles[o].el,d.onload=m,d.onerror=m,!d.complete)){d.src=F;var p=this._tiles[o].coords;ft(d),delete this._tiles[o],this.fire("tileabort",{tile:d,coords:p})}},_removeTile:function(o){var d=this._tiles[o];if(d)return d.el.setAttribute("src",F),Kl.prototype._removeTile.call(this,o)},_tileReady:function(o,d,p){if(!(!this._map||p&&p.getAttribute("src")===F))return Kl.prototype._tileReady.call(this,o,d,p)}});function v_(o,d){return new oa(o,d)}var x_=oa.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(o,d){this._url=o;var p=i({},this.defaultWmsParams);for(var _ in d)_ in this.options||(p[_]=d[_]);d=v(this,d);var w=d.detectRetina&&Ee.retina?2:1,C=this.getTileSize();p.width=C.x*w,p.height=C.y*w,this.wmsParams=p},onAdd:function(o){this._crs=this.options.crs||o.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var d=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[d]=this._crs.code,oa.prototype.onAdd.call(this,o)},getTileUrl:function(o){var d=this._tileCoordsToNwSe(o),p=this._crs,_=ue(p.project(d[0]),p.project(d[1])),w=_.min,C=_.max,B=(this._wmsVersion>=1.3&&this._crs===f_?[w.y,w.x,C.y,C.x]:[w.x,w.y,C.x,C.y]).join(","),$=oa.prototype.getTileUrl.call(this,o);return $+k(this.wmsParams,$,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+B},setParams:function(o,d){return i(this.wmsParams,o),d||this.redraw(),this}});function AN(o,d){return new x_(o,d)}oa.WMS=x_,v_.wms=AN;var wi=_r.extend({options:{padding:.1},initialize:function(o){v(this,o),u(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),je(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var o={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(o.zoomanim=this._onAnimZoom),o},_onAnimZoom:function(o){this._updateTransform(o.center,o.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(o,d){var p=this._map.getZoomScale(d,this._zoom),_=this._map.getSize().multiplyBy(.5+this.options.padding),w=this._map.project(this._center,d),C=_.multiplyBy(-p).add(w).subtract(this._map._getNewPixelOrigin(o,d));Ee.any3d?ro(this._container,C,p):Ct(this._container,C)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var o in this._layers)this._layers[o]._reset()},_onZoomEnd:function(){for(var o in this._layers)this._layers[o]._project()},_updatePaths:function(){for(var o in this._layers)this._layers[o]._update()},_update:function(){var o=this.options.padding,d=this._map.getSize(),p=this._map.containerPointToLayerPoint(d.multiplyBy(-o)).round();
vendor: 3,979 bytes, line 283
283this._bounds=new le(p,p.add(d.multiplyBy(1+o*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),E_=wi.extend({options:{tolerance:0},getEvents:function(){var o=wi.prototype.getEvents.call(this);return o.viewprereset=this._onViewPreReset,o},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){wi.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var o=this._container=document.createElement("canvas");Oe(o,"mousemove",this._onMouseMove,this),Oe(o,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Oe(o,"mouseout",this._handleMouseOut,this),o._leaflet_disable_events=!0,this._ctx=o.getContext("2d")},_destroyContainer:function(){W(this._redrawRequest),delete this._ctx,ft(this._container),nt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var o;this._redrawBounds=null;for(var d in this._layers)o=this._layers[d],o._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){wi.prototype._update.call(this);var o=this._bounds,d=this._container,p=o.getSize(),_=Ee.retina?2:1;Ct(d,o.min),d.width=_*p.x,d.height=_*p.y,d.style.width=p.x+"px",d.style.height=p.y+"px",Ee.retina&&this._ctx.scale(2,2),this._ctx.translate(-o.min.x,-o.min.y),this.fire("update")}},_reset:function(){wi.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(o){this._updateDashArray(o),this._layers[u(o)]=o;var d=o._order={layer:o,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=d),this._drawLast=d,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(o){this._requestRedraw(o)},_removePath:function(o){var d=o._order,p=d.next,_=d.prev;p?p.prev=_:this._drawLast=_,_?_.next=p:this._drawFirst=p,delete o._order,delete this._layers[u(o)],this._requestRedraw(o)},_updatePath:function(o){this._extendRedrawBounds(o),o._project(),o._update(),this._requestRedraw(o)},_updateStyle:function(o){this._updateDashArray(o),this._requestRedraw(o)},_updateDashArray:function(o){if(typeof o.options.dashArray=="string"){var d=o.options.dashArray.split(/[, ]+/),p=[],_,w;for(w=0;w<d.length;w++){if(_=Number(d[w]),isNaN(_))return;p.push(_)}o.options._dashArray=p}else o.options._dashArray=o.options.dashArray},_requestRedraw:function(o){this._map&&(this._extendRedrawBounds(o),this._redrawRequest=this._redrawRequest||Z(this._redraw,this))},_extendRedrawBounds:function(o){if(o._pxBounds){var d=(o.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new le,this._redrawBounds.extend(o._pxBounds.min.subtract([d,d])),this._redrawBounds.extend(o._pxBounds.max.add([d,d]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var o=this._redrawBounds;if(o){var d=o.getSize();this._ctx.clearRect(o.min.x,o.min.y,d.x,d.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var o,d=this._redrawBounds;if(this._ctx.save(),d){var p=d.getSize();this._ctx.beginPath(),this._ctx.rect(d.min.x,d.min.y,p.x,p.y),this._ctx.clip()}this._drawing=!0;for(var _=this._drawFirst;_;_=_.next)o=_.layer,(!d||o._pxBounds&&o._pxBounds.intersects(d))&&o._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(o,d){if(this._drawing){var p,_,w,C,B=o._parts,$=B.length,V=this._ctx;if($){for(V.beginPath(),p=0;p<$;p++){for(_=0,w=B[p].length;_<w;_++)C=B[p][_],V[_?"lineTo":"moveTo"](C.x,C.y);d&&V.closePath()}this._fillStroke(V,o)}}},_updateCircle:function(o){if(!(!this._drawing||o._empty())){var d=o._point,p=this._ctx,_=Math.max(Math.round(o._radius),1),w=(Math.max(Math.round(o._radiusY),1)||_)/_;w!==1&&(p.save(),p.scale(1,w)),p.beginPath(),p.arc(d.x,d.y/w,_,0,Math.PI*2,!1),w!==1&&p.restore(
vendor: 6,422 bytes, line 283
283),this._fillStroke(p,o)}},_fillStroke:function(o,d){var p=d.options;p.fill&&(o.globalAlpha=p.fillOpacity,o.fillStyle=p.fillColor||p.color,o.fill(p.fillRule||"evenodd")),p.stroke&&p.weight!==0&&(o.setLineDash&&o.setLineDash(d.options&&d.options._dashArray||[]),o.globalAlpha=p.opacity,o.lineWidth=p.weight,o.strokeStyle=p.color,o.lineCap=p.lineCap,o.lineJoin=p.lineJoin,o.stroke())},_onClick:function(o){for(var d=this._map.mouseEventToLayerPoint(o),p,_,w=this._drawFirst;w;w=w.next)p=w.layer,p.options.interactive&&p._containsPoint(d)&&(!(o.type==="click"||o.type==="preclick")||!this._map._draggableMoved(p))&&(_=p);this._fireEvent(_?[_]:!1,o)},_onMouseMove:function(o){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var d=this._map.mouseEventToLayerPoint(o);this._handleMouseHover(o,d)}},_handleMouseOut:function(o){var d=this._hoveredLayer;d&&(xt(this._container,"leaflet-interactive"),this._fireEvent([d],o,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(o,d){if(!this._mouseHoverThrottled){for(var p,_,w=this._drawFirst;w;w=w.next)p=w.layer,p.options.interactive&&p._containsPoint(d)&&(_=p);_!==this._hoveredLayer&&(this._handleMouseOut(o),_&&(je(this._container,"leaflet-interactive"),this._fireEvent([_],o,"mouseover"),this._hoveredLayer=_)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,o),this._mouseHoverThrottled=!0,setTimeout(a(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(o,d,p){this._map._fireDOMEvent(d,p||d.type,o)},_bringToFront:function(o){var d=o._order;if(d){var p=d.next,_=d.prev;if(p)p.prev=_;else return;_?_.next=p:p&&(this._drawFirst=p),d.prev=this._drawLast,this._drawLast.next=d,d.next=null,this._drawLast=d,this._requestRedraw(o)}},_bringToBack:function(o){var d=o._order;if(d){var p=d.next,_=d.prev;if(_)_.next=p;else return;p?p.prev=_:_&&(this._drawLast=_),d.prev=null,d.next=this._drawFirst,this._drawFirst.prev=d,this._drawFirst=d,this._requestRedraw(o)}}});function w_(o){return Ee.canvas?new E_(o):null}var Gl=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(o){return document.createElement("<lvml:"+o+' class="lvml">')}}catch{}return function(o){return document.createElement("<"+o+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),NN={_initContainer:function(){this._container=Qe("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(wi.prototype._update.call(this),this.fire("update"))},_initPath:function(o){var d=o._container=Gl("shape");je(d,"leaflet-vml-shape "+(this.options.className||"")),d.coordsize="1 1",o._path=Gl("path"),d.appendChild(o._path),this._updateStyle(o),this._layers[u(o)]=o},_addPath:function(o){var d=o._container;this._container.appendChild(d),o.options.interactive&&o.addInteractiveTarget(d)},_removePath:function(o){var d=o._container;ft(d),o.removeInteractiveTarget(d),delete this._layers[u(o)]},_updateStyle:function(o){var d=o._stroke,p=o._fill,_=o.options,w=o._container;w.stroked=!!_.stroke,w.filled=!!_.fill,_.stroke?(d||(d=o._stroke=Gl("stroke")),w.appendChild(d),d.weight=_.weight+"px",d.color=_.color,d.opacity=_.opacity,_.dashArray?d.dashStyle=T(_.dashArray)?_.dashArray.join(" "):_.dashArray.replace(/( *, *)/g," "):d.dashStyle="",d.endcap=_.lineCap.replace("butt","flat"),d.joinstyle=_.lineJoin):d&&(w.removeChild(d),o._stroke=null),_.fill?(p||(p=o._fill=Gl("fill")),w.appendChild(p),p.color=_.fillColor||_.color,p.opacity=_.fillOpacity):p&&(w.removeChild(p),o._fill=null)},_updateCircle:function(o){var d=o._point.round(),p=Math.round(o._radius),_=Math.round(o._radiusY||p);this._setPath(o,o._empty()?"M0 0":"AL "+d.x+","+d.y+" "+p+","+_+" 0,"+65535*360)},_setPath:function(o,d){o._path.v=d},_bringToFront:function(o){ea(o._container)},_bringToBack:function(o){ta(o._container)}},ud=Ee.vml?Gl:bi,Yl=wi.extend({_initContainer:function(){this._container=ud("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=ud("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ft(this._container),nt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){wi.prototype._update.call(this);var o=this._bounds,d=o.getSize(),p=this._container;(!this._svgSize||!this._svgSize.equals(d))&&(this._svgSize=d,p.setAttribute("width",d.x),p.setAttribute("height",d.y)),Ct(p,o.min),p.setAttribute("viewBox",[o.min.x,o.min.y,d.x,d.y].join(" ")),this.fire("update")}},_initPath:function(o){var d=o._path=ud("path");o.options.className&&je(d,o.options.className),o.options.interactive&&je(d,"leaflet-interactive"),this._updateStyle(o),this._layers[u(o)]=o},_addPath:function(o){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(o._path),o.addInteractiveTarget(o._path)},_removePath:function(o){ft(o._path),o.removeInteractiveTarget(o._path),delete this._layers[u(o)]},_updatePath:function(o){o._project(),o._update()},_updateStyle:function(o){var d=o._path,p=o.options;d&&(p.stroke?(d.setAttribute("stroke",p.color),d.setAttribute("stroke-opacity",p.opacity),d.setAttribute("stroke-width",p.weight),d.setAttribute("stroke-linecap",p.lineCap),d.setAttribute("stroke-linejoin",p.lineJoin),p.dashArray?d.setAttribute("stroke-dasharray",p.dashArray):d.removeAttribute("stroke-dasharray"),p.dashOffset?d.setAttribute("stroke-dashoffset",p.dashOffset):d.removeAttribute("stroke-dashoffset")):d.setAttribute("stroke","none"),p.fill?(d.setAttribute("fill",p.fillColor||p.color),d.setAttribute("fill-opacity",p.fillOpacity),d.setAttribute("fill-rule",p.fillRule||"evenodd")):d.setAttribute("fill","none"))},_updatePoly:function(o,d){this._setPath(o,Ur(o._parts,d))},_updateCircle:function(o){var d=o._point,p=Math.max(Math.round(o._radius),1),_=Math.max(Math.round(o._radiusY),1)||p,w="a"+p+","+_+" 0 1,0 ",C=o._empty()?"M0 0":"M"+(d.x-p)+","+d.y+w+p*2+",0 "+w+-p*2+",0 ";this._setPath(o,C)},_setPath:function(o,d){o._path.setAttribute("d",d)},_bringToFront:function(o){ea(o._path)},_bringToBack:function(o){ta(o._path)}});Ee.vml&&Yl.include(NN);function T_(o){return Ee.svg||Ee.vml?new Yl(o):null}We.include({getRenderer:function(o){var d=o.options.renderer||this._getPaneRenderer(o.options.pane)||this.options.renderer||this._renderer;return d||(d=this._renderer=this._createRenderer()),this.hasLayer(d)||this.addLayer(d),d}
283,_getPaneRenderer:function(o){if(o==="overlayPane"||o===void 0)return!1;var d=this._paneRenderers[o];return d===void 0&&(d=this._createRenderer({pane:o}),this._paneRenderers[o]=d),d},_createRenderer:function(o){return this.options.preferCanvas&&w_(o)||T_(o)}});var S_=ia.extend({initialize:function(o,d){ia.prototype.initialize.call(this,this._boundsToLatLngs(o),d)},setBounds:function(o){return this.setLatLngs(this._boundsToLatLngs(o))},_boundsToLatLngs:function(o){return o=fe(o),[o.getSouthWest(),o.getNorthWest(),o.getNorthEast(),o.getSouthEast()]}});function PN(o,d){return new S_(o,d)}Yl.create=ud,Yl.pointsToPath=Ur,Ei.geometryToLayer=nd,Ei.coordsToLatLng=Cp,Ei.coordsToLatLngs=rd,Ei.latLngToCoords=Ap,Ei.latLngsToCoords=id,Ei.getFeature=sa,Ei.asFeature=sd,We.mergeOptions({boxZoom:!0});var k_=Kr.extend({initialize:function(o){this._map=o,this._container=o._container,this._pane=o._panes.overlayPane,this._resetStateTimeout=0,o.on("unload",this._destroy,this)},addHooks:function(){Oe(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){nt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ft(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(o){if(!o.shiftKey||o.which!==1&&o.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Ul(),cp(),this._startPoint=this._map.mouseEventToContainerPoint(o),Oe(document,{contextmenu:oo,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(o){this._moved||(this._moved=!0,this._box=Qe("div","leaflet-zoom-box",this._container),je(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(o);var d=new le(this._point,this._startPoint),p=d.getSize();Ct(this._box,d.min),this._box.style.width=p.x+"px",this._box.style.height=p.y+"px"},_finish:function(){this._moved&&(ft(this._box),xt(this._container,"leaflet-crosshair")),Hl(),dp(),nt(document,{contextmenu:oo,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(o){if(!(o.which!==1&&o.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(a(this._resetState,this),0);var d=new j(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(d).fire("boxzoomend",{boxZoomBounds:d})}},_onKeyDown:function(o){o.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});We.addInitHook("addHandler","boxZoom",k_),We.mergeOptions({doubleClickZoom:!0});var C_=Kr.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(o){var d=this._map,p=d.getZoom(),_=d.options.zoomDelta,w=o.originalEvent.shiftKey?p-_:p+_;d.options.doubleClickZoom==="center"?d.setZoom(w):d.setZoomAround(o.containerPoint,w)}});We.addInitHook("addHandler","doubleClickZoom",C_),We.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var A_=Kr.extend({addHooks:function(){if(!this._draggable){var o=this._map;this._draggable=new ns(o._mapPane,o._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),o.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),o.on("zoomend",this._onZoomEnd,this),o.whenReady(this._onZoomEnd,this))}je(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){xt(this._map._container,"leaflet-grab"),xt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved}
vendor: 4,082 bytes, line 283
283,moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var o=this._map;if(o._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var d=fe(this._map.options.maxBounds);this._offsetLimit=ue(this._map.latLngToContainerPoint(d.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(d.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;o.fire("movestart").fire("dragstart"),o.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(o){if(this._map.options.inertia){var d=this._lastTime=+new Date,p=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(p),this._times.push(d),this._prunePositions(d)}this._map.fire("move",o).fire("drag",o)},_prunePositions:function(o){for(;this._positions.length>1&&o-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var o=this._map.getSize().divideBy(2),d=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=d.subtract(o).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(o,d){return o-(o-d)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var o=this._draggable._newPos.subtract(this._draggable._startPos),d=this._offsetLimit;o.x<d.min.x&&(o.x=this._viscousLimit(o.x,d.min.x)),o.y<d.min.y&&(o.y=this._viscousLimit(o.y,d.min.y)),o.x>d.max.x&&(o.x=this._viscousLimit(o.x,d.max.x)),o.y>d.max.y&&(o.y=this._viscousLimit(o.y,d.max.y)),this._draggable._newPos=this._draggable._startPos.add(o)}},_onPreDragWrap:function(){var o=this._worldWidth,d=Math.round(o/2),p=this._initialWorldOffset,_=this._draggable._newPos.x,w=(_-d+p)%o+d-p,C=(_+d+p)%o-d-p,B=Math.abs(w+p)<Math.abs(C+p)?w:C;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=B},_onDragEnd:function(o){var d=this._map,p=d.options,_=!p.inertia||o.noInertia||this._times.length<2;if(d.fire("dragend",o),_)d.fire("moveend");else{this._prunePositions(+new Date);var w=this._lastPos.subtract(this._positions[0]),C=(this._lastTime-this._times[0])/1e3,B=p.easeLinearity,$=w.multiplyBy(B/C),V=$.distanceTo([0,0]),te=Math.min(p.inertiaMaxSpeed,V),he=$.multiplyBy(te/V),ke=te/(p.inertiaDeceleration*B),Me=he.multiplyBy(-ke/2).round();!Me.x&&!Me.y?d.fire("moveend"):(Me=d._limitOffset(Me,d.options.maxBounds),Z(function(){d.panBy(Me,{duration:ke,easeLinearity:B,noMoveStart:!0,animate:!0})}))}}});We.addInitHook("addHandler","dragging",A_),We.mergeOptions({keyboard:!0,keyboardPanDelta:80});var N_=Kr.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(o){this._map=o,this._setPanDelta(o.options.keyboardPanDelta),this._setZoomDelta(o.options.zoomDelta)},addHooks:function(){var o=this._map._container;o.tabIndex<=0&&(o.tabIndex="0"),Oe(o,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),nt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var o=document.body,d=document.documentElement,p=o.scrollTop||d.scrollTop,_=o.scrollLeft||d.scrollLeft;this._map._container.focus(),window.scrollTo(_,p)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(o){var d=this._panKeys={},p=this.keyCodes,_,w;for(_=0,w=p.left.length;_<w;_++)d[p.left[_]]=[-1*o,0];for(_=0,w=p.right.length;_<w;_++)d[p.right[_]]=[o,0];for(_=0,w=p.down.length;_<w;_++)d[p.down[_]]=[0,o];for(_=0,w=p.up.length;_<w;_++)d[p.up[_]]=[0,-1*o]},_setZoomDelta:function(o){var d=this._zoomKeys={},p=this.keyCodes,_,w;for(_=0,w=p.zoomIn.length;_<w;_++)d[p.zoomIn[_]]=o;for(_=0,w=p.zoomOut.length;_<w;_++)d[p.zoomOut[_]]=-o}
283,_addHooks:function(){Oe(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){nt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(o){if(!(o.altKey||o.ctrlKey||o.metaKey)){var d=o.keyCode,p=this._map,_;if(d in this._panKeys){if(!p._panAnim||!p._panAnim._inProgress)if(_=this._panKeys[d],o.shiftKey&&(_=N(_).multiplyBy(3)),p.options.maxBounds&&(_=p._limitOffset(N(_),p.options.maxBounds)),p.options.worldCopyJump){var w=p.wrapLatLng(p.unproject(p.project(p.getCenter()).add(_)));p.panTo(w)}else p.panBy(_)}else if(d in this._zoomKeys)p.setZoom(p.getZoom()+(o.shiftKey?3:1)*this._zoomKeys[d]);else if(d===27&&p._popup&&p._popup.options.closeOnEscapeKey)p.closePopup();else return;oo(o)}}});We.addInitHook("addHandler","keyboard",N_),We.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var P_=Kr.extend({addHooks:function(){Oe(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){nt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(o){var d=e_(o),p=this._map.options.wheelDebounceTime;this._delta+=d,this._lastMousePos=this._map.mouseEventToContainerPoint(o),this._startTime||(this._startTime=+new Date);var _=Math.max(p-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(a(this._performZoom,this),_),oo(o)},_performZoom:function(){var o=this._map,d=o.getZoom(),p=this._map.options.zoomSnap||0;o._stop();var _=this._delta/(this._map.options.wheelPxPerZoomLevel*4),w=4*Math.log(2/(1+Math.exp(-Math.abs(_))))/Math.LN2,C=p?Math.ceil(w/p)*p:w,B=o._limitZoom(d+(this._delta>0?C:-C))-d;this._delta=0,this._startTime=null,B&&(o.options.scrollWheelZoom==="center"?o.setZoom(d+B):o.setZoomAround(this._lastMousePos,d+B))}});We.addInitHook("addHandler","scrollWheelZoom",P_);var IN=600;We.mergeOptions({tapHold:Ee.touchNative&&Ee.safari&&Ee.mobile,tapTolerance:15});var I_=Kr.extend({addHooks:function(){Oe(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){nt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(o){if(clearTimeout(this._holdTimeout),o.touches.length===1){var d=o.touches[0];this._startPos=this._newPos=new z(d.clientX,d.clientY),this._holdTimeout=setTimeout(a(function(){this._cancel(),this._isTapValid()&&(Oe(document,"touchend",qt),Oe(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",d))},this),IN),Oe(document,"touchend touchcancel contextmenu",this._cancel,this),Oe(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function o(){nt(document,"touchend",qt),nt(document,"touchend touchcancel",o)},_cancel:function(){clearTimeout(this._holdTimeout),nt(document,"touchend touchcancel contextmenu",this._cancel,this),nt(document,"touchmove",this._onMove,this)},_onMove:function(o){var d=o.touches[0];this._newPos=new z(d.clientX,d.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(o,d){var p=new MouseEvent(o,{bubbles:!0,cancelable:!0,view:window,screenX:d.screenX,screenY:d.screenY,clientX:d.clientX,clientY:d.clientY});p._simulated=!0,d.target.dispatchEvent(p)}});We.addInitHook("addHandler","tapHold",I_),We.mergeOptions({touchZoom:Ee.touch,bounceAtZoomLimits:!0});var O_=Kr.extend({addHooks:function(){je(this._map._container,"leaflet-touch-zoom"),Oe(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){xt(this._map._container,"leaflet-touch-zoom"),nt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(o){var d=this._map;if(!(!o.touches||o.touches.length!==2||d._animatingZoom||this._zooming)){var p=d.mouseEventToContainerPoint(o.touches[0]),_=d.mouseEventToContainerPoint(o.touches[1]);this._centerPoint=d.getSize()._divideBy(2),this._startLatLng=d.containerPointToLatLng(this._centerPoint),d.options.touchZoom!=="center"&&(this._pinchStartLatLng=d.containerPointToLatLng(p.add(_)._divideBy(2))),this._startDist=p.distanceTo(_),this._startZoom=d.getZoom(),this._moved=!1,this._zooming=!0,d._stop(),Oe(document,"touchmove",this._onTouchMove,this),Oe(document,"touchend touchcancel",this._onTouchEnd,this),qt(o)}}
283,_onTouchMove:function(o){if(!(!o.touches||o.touches.length!==2||!this._zooming)){var d=this._map,p=d.mouseEventToContainerPoint(o.touches[0]),_=d.mouseEventToContainerPoint(o.touches[1]),w=p.distanceTo(_)/this._startDist;if(this._zoom=d.getScaleZoom(w,this._startZoom),!d.options.bounceAtZoomLimits&&(this._zoom<d.getMinZoom()&&w<1||this._zoom>d.getMaxZoom()&&w>1)&&(this._zoom=d._limitZoom(this._zoom)),d.options.touchZoom==="center"){if(this._center=this._startLatLng,w===1)return}else{var C=p._add(_)._divideBy(2)._subtract(this._centerPoint);if(w===1&&C.x===0&&C.y===0)return;this._center=d.unproject(d.project(this._pinchStartLatLng,this._zoom).subtract(C),this._zoom)}this._moved||(d._moveStart(!0,!1),this._moved=!0),W(this._animRequest);var B=a(d._move,d,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=Z(B,this,!0),qt(o)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,W(this._animRequest),nt(document,"touchmove",this._onTouchMove,this),nt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});We.addInitHook("addHandler","touchZoom",O_),We.BoxZoom=k_,We.DoubleClickZoom=C_,We.Drag=A_,We.Keyboard=N_,We.ScrollWheelZoom=P_,We.TapHold=I_,We.TouchZoom=O_,n.Bounds=le,n.Browser=Ee,n.CRS=Ne,n.Canvas=E_,n.Circle=kp,n.CircleMarker=td,n.Class=ee,n.Control=br,n.DivIcon=__,n.DivOverlay=Gr,n.DomEvent=YA,n.DomUtil=KA,n.Draggable=ns,n.Evented=me,n.FeatureGroup=vi,n.GeoJSON=Ei,n.GridLayer=Kl,n.Handler=Kr,n.Icon=ra,n.ImageOverlay=od,n.LatLng=ve,n.LatLngBounds=j,n.Layer=_r,n.LayerGroup=na,n.LineUtil=lN,n.Map=We,n.Marker=ed,n.Mixin=nN,n.Path=rs,n.Point=z,n.PolyUtil=rN,n.Polygon=ia,n.Polyline=xi,n.Popup=ad,n.PosAnimation=t_,n.Projection=uN,n.Rectangle=S_,n.Renderer=wi,n.SVG=Yl,n.SVGOverlay=b_,n.TileLayer=oa,n.Tooltip=ld,n.Transformation=$t,n.Util=ce,n.VideoOverlay=y_,n.bind=a,n.bounds=ue,n.canvas=w_,n.circle=yN,n.circleMarker=gN,n.control=ql,n.divIcon=kN,n.extend=i,n.featureGroup=fN,n.geoJSON=g_,n.geoJson=vN,n.gridLayer=CN,n.icon=pN,n.imageOverlay=xN,n.latLng=pe,n.latLngBounds=fe,n.layerGroup=hN,n.map=QA,n.marker=mN,n.point=N,n.polygon=_N,n.polyline=bN,n.popup=TN,n.rectangle=PN,n.setOptions=v,n.stamp=u,n.svg=T_,n.svgOverlay=wN,n.tileLayer=v_,n.tooltip=SN,n.transformation=bn,n.version=r,n.videoOverlay=EN;var ON=window.L;n.noConflict=function(){return window.L=ON,this},window.L=n})})($0,$0.exports);var TV=$0.exports;const ya=Ks(TV),SV=/\b(?:GIR\s?0AA|[A-PR-UWYZ][A-HK-Y]?\d[A-Z\d]?\s*\d[ABD-HJLNP-UW-Z]{2})\b/i;function Ma(e){return typeof e=="number"&&Number.isFinite(e)}function RA(e){return e.trim().toUpperCase().replace(/\s+/g," ")}function kV(e){const t=e==null?void 0:e.toUpperCase().match(SV);return t?RA(t[0]):null}function PE(e){return e.flatMap(t=>!Ma(t.latitude)||!Ma(t.longitude)?[]:[{name:t.name||"Supplier",slug:t.slug||"",latitude:t.latitude,longitude:t.longitude}])}function Kd(e){const t=new Map;return e.forEach(n=>{const r=`${n.latitude.toFixed(6)}:${n.longitude.toFixed(6)}`;t.set(r,[...t.get(r)||[],n])}),[...t.values()].flatMap(n=>n.length===1?n:n.map((r,i)=>{const s=i/n.length*Math.PI*2,a=.0015,l=Math.sin(s)*a,u=Math.cos(s)*a/Math.max(Math.cos(r.latitude*Math.PI/180),.35);return{...r,latitude:r.latitude+l,longitude:r.longitude+u}}))}function Fm(e,t){const n=getComputedStyle(document.documentElement);return`hsl(${n.getPropertyValue(e).trim()||n.getPropertyValue(t).trim()})`}function CV({name:e,latitude:t,longitude:n,suppliers:r=[]}){const i=A.useRef(null),s=A.useRef(null),a=A.useRef(null),[l,u]=A.useState(()=>Kd(PE(r)));return A.useEffect(()=>{let h=!1;const f=PE(r),m=r.flatMap(x=>{if(Ma(x.latitude)&&Ma(x.longitude))return[];const v=kV(x.registeredAddress);return v?[{name:x.name||"Supplier",slug:x.slug||"",postcode:v}]:[]});if(m.length===0)return u(Kd(f)),()=>{h=!0};const y=[...new Set(m.map(x=>x.postcode))];return(async()=>{var x;try{const v=await fetch("https://api.postcodes.io/postcodes",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({postcodes:y})});if(!v.ok)throw new Error("Postcode lookup failed");const k=await v.json(),E=new Map;(x=k.result)==null||x.forEach(T=>{var P,F;Ma((P=T.result)==null?void 0:P.latitude)&&Ma((F=T.result)==null?void 0:F.longitude)&&E.set(RA(T.query),{latitude:T.result.latitude,longitude:T.result.longitude})});const S=m.flatMap(T=>{const P=E.get(T.postcode);return P?[{name:T.name,slug:T.slug,latitude:P.latitude,longitude:P.longitude}]:[]});h||u(Kd([...f,...S]))}catch{h||u(Kd(f))}})(),()=>{h=!0}},[r]),A.useEffect(()=>{if(!i.current)return;const h=ya.map(i.current,{scrollWheelZoom:!1,zoomControl:!0});return ya.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}
283.png",{attribution:"© OpenStreetMap contributors"}).addTo(h),a.current=ya.layerGroup().addTo(h),s.current=h,h.setView([t,n],10),()=>{var f;(f=a.current)==null||f.remove(),a.current=null,h.remove(),s.current=null}},[t,n]),A.useEffect(()=>{const h=s.current,f=a.current;if(!h||!f)return;const m=Fm("--primary","--foreground"),y=Fm("--background","--card"),g=Fm("--muted-foreground","--foreground"),x=[[t,n]];f.clearLayers(),ya.circleMarker([t,n],{radius:7,color:g,fillColor:y,fillOpacity:1,weight:2}).bindTooltip(e,{direction:"top"}).addTo(f),l.forEach(k=>{x.push([k.latitude,k.longitude]),ya.circleMarker([k.latitude,k.longitude],{radius:8,color:y,fillColor:m,fillOpacity:1,weight:2}).bindTooltip(k.name,{direction:"top"}).addTo(f)});const v=ya.latLngBounds(x);l.length===0?h.setView([t,n],10):v.getSouthWest().equals(v.getNorthEast())?h.setView(v.getCenter(),12):h.fitBounds(v.pad(.25),{animate:!1}),requestAnimationFrame(()=>h.invalidateSize())},[t,n,e,l]),c.jsx("div",{className:"mb-8 overflow-hidden border border-border bg-card",children:c.jsx("div",{ref:i,className:"h-[280px] w-full","aria-label":`Map of ${e}`})})}const AV="/assets/areas-lHEdstn5.jpg";function NV(){const{data:e,isLoading:t}=He({queryKey:["areas_hub"],queryFn:async()=>{const{data:n}=await Ie.from("areas").select("name, slug, county, region, supplier_count").eq("is_published",!0).order("name");return n||[]}});return t?c.jsx(_e,{children:c.jsx(eo,{count:9})}):c.jsxs(_e,{children:[c.jsx(Ye,{title:"UK Areas - Engineering Component Suppliers",description:"Find engineering component suppliers by UK area.",canonical:"/areas"}),c.jsx(St,{items:[{name:"Home",url:"/"},{name:"Areas",url:"/areas"}]}),c.jsx(Fr,{title:"UK Areas",subtitle:"Find engineering component suppliers by UK area.",backgroundImage:AV}),c.jsxs("div",{className:"container-wide py-12",children:[c.jsx(kt,{items:[{name:"Home",href:"/"},{name:"Areas",href:"/areas"}]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:(e||[]).map(n=>c.jsxs(xe,{to:`/areas/${n.slug}`,className:"border border-border bg-card p-5 hover:border-primary transition-colors group",children:[c.jsx("h2",{className:"font-heading font-semibold group-hover:text-primary",children:n.name}),c.jsxs("p",{className:"text-sm text-muted-foreground",children:[n.county,n.region?`, ${n.region}`:""]}),(n.supplier_count??0)>0&&c.jsxs("span",{className:"text-xs text-primary mt-1 inline-block",children:[n.supplier_count," suppliers"]})]},n.slug))})]})]})}function PV(){const{slug:e}=fi(),{data:t,isLoading:n}=He({queryKey:["area",e],queryFn:async()=>{const{data:a}=await Ie.from("areas").select("*, authors(name, slug, job_title, bio)").eq("slug",e).eq("is_published",!0).single();return a}}),{data:r}=He({queryKey:["area_suppliers",e],enabled:!!e,queryFn:async()=>{const{data:a}=await Ie.from("suppliers").select("name, slug, company_status, product_categories, latitude, longitude, registered_address").eq("area_slug",e).eq("is_published",!0).order("name");return a||[]}});if(n)return c.jsx(_e,{children:c.jsx(Ji,{})});if(!t)return c.jsx(_e,{children:c.jsx("div",{className:"container-wide py-12",children:c.jsx("p",{children:"Not found."})})});const i=t.authors,s=new Map;return r==null||r.forEach(a=>{var l;return(l=a.product_categories)==null?void 0:l.forEach(u=>s.set(u,(s.get(u)||0)+1))}),c.jsxs(_e,{children:[c.jsx(Ye,{contentPage:!0,title:t.name||"",description:t.seo_description||"",canonical:`/areas/${e}`,ogType:"article",ogImage:Wi(t.sources_json),author:i==null?void 0:i.name,noindex:t.noindex||!1}),c.jsxs("div",{className:"container-narrow py-12",children:[c.jsx(kt,{items:[{name:"Home",href:"/"},{name:"Areas",href:"/areas"},{name:t.name||"",href:`/areas/${e}`}]}),c.jsx(Yi,{title:t.name||"",category:"Area",contributorName:i==null?void 0:i.name,contributorSlug:i==null?void 0:i.slug,contributorTitle:i==null?void 0:i.job_title,verifiedDate:pr(t.updated_at),readTime:qi(t.seo_content)}),t.latitude&&t.longitude?c.jsxs(c.Fragment,{children:[c.jsx(CV,{name:t.name||"",latitude:t.latitude,longitude:t.longitude,suppliers:r||[]}),c.jsxs("a",{href:`https://www.google.com/maps/dir/?api=1&destination=${t.latitude},${t.longitude}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>qo("get_directions","area",e||"",t.name||""),className:"inline-flex items-center gap-1.5 text-sm text-primary hover:underline mb-8 -mt-4",children:[c.jsx(D3,{size:14}),"Get directions to ",t.name]})]}):c.jsxs("div",{className:"border border-border bg-muted h-48 flex items-center justify-center mb-8 text-sm text-muted-foreground",children:["ð Map view - ",t.name]}),c.jsxs("div",{className:"flex gap-4 mb-8",children:[c.jsxs("div",{className:"border border-border bg-card px-4 py-3",children:[c.jsx("span",{className:"text-2xl font-heading font-bold text-primary",children:(r==null?void 0:r.length)||t.supplier_count||0}),c.jsx("p",{className:"text-xs text-muted-foreground",children:"Suppliers"})]}),c.jsxs("div",{className:"border border-border bg-card px-4 py-3",children:[c.jsx("span",{className:"text-2xl font-heading font-bold text-primary",children:s.size}),c.jsx("p",{className:"text-xs text-muted-foreground",children:"Product Categories"})]})]}),s.size>
2830&&c.jsxs("div",{className:"mb-8",children:[c.jsxs("h2",{className:"font-heading font-semibold mb-3",children:["Product Categories in ",t.name]}),c.jsx("div",{className:"flex flex-wrap gap-2",children:[...s.entries()].sort((a,l)=>l[1]-a[1]).map(([a,l])=>c.jsxs(xe,{to:`/products/${a}`,className:"text-xs bg-accent text-accent-foreground px-2 py-1 hover:bg-primary hover:text-primary-foreground transition-colors",children:[a," (",l,")"]},a))})]}),r&&r.length>0&&c.jsxs("div",{className:"mb-8",children:[c.jsxs("h2",{className:"font-heading font-semibold mb-3",children:["Suppliers in ",t.name]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:r.map(a=>c.jsxs(xe,{to:`/suppliers/${a.slug}`,onClick:()=>qo("click_supplier","area",a.slug||"",a.name||""),className:"border border-border bg-card p-4 hover:border-primary transition-colors group",children:[c.jsx("h3",{className:"text-sm font-heading font-semibold group-hover:text-primary",children:a.name}),a.company_status&&c.jsx("span",{className:`text-[10px] font-semibold px-1.5 py-0.5 mt-1 inline-block ${a.company_status==="Active"?"bg-trust text-trust-foreground":"bg-muted text-muted-foreground"}`,children:a.company_status})]},a.slug))})]}),c.jsx(Ki,{content:t.seo_content}),c.jsx(Xi,{faq:t.faq_json}),c.jsx(to,{}),c.jsx(Zi,{sources:t.sources_json}),c.jsx(Qi,{title:t.name||""}),i&&c.jsx(Gi,{name:i.name,slug:i.slug,jobTitle:i.job_title,bio:i.bio})]})]})}const rp="/assets/guides-B78rhh56.jpg";function IV({sourceLabel:e,heading:t="Monthly engineering reference updates",subheading:n="New guides, standards updates and supplier news. Unsubscribe any time."}){const{pathname:r}=Ln(),[i,s]=A.useState(""),[a,l]=A.useState("idle"),[u,h]=A.useState(""),f=m=>{m.preventDefault();const y=i.trim().toLowerCase();if(!y||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(y)){h("Please enter a valid email."),l("error");return}bC(y,r,e),l("success"),s("")};return a==="success"?c.jsxs("div",{className:"border border-primary/30 bg-primary/5 p-5 mt-10 flex items-center gap-3",children:[c.jsx(Nf,{size:20,className:"text-primary flex-shrink-0"}),c.jsx("p",{className:"text-sm font-medium text-foreground",children:"Check your inbox to confirm your subscription."})]}):c.jsxs("aside",{className:"border border-border bg-card p-5 mt-10","aria-label":"Newsletter signup",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[c.jsx("div",{className:"w-9 h-9 bg-primary/10 flex items-center justify-center flex-shrink-0",children:c.jsx(Qy,{size:16,className:"text-primary"})}),c.jsxs("div",{children:[c.jsx("p",{className:"text-sm font-heading font-semibold text-foreground",children:t}),c.jsx("p",{className:"text-xs text-muted-foreground",children:n})]})]}),c.jsxs("form",{onSubmit:f,className:"flex flex-col sm:flex-row gap-2",children:[c.jsx("input",{type:"email",value:i,onChange:m=>s(m.target.value),placeholder:"[email protected]","aria-label":"Email address",className:"flex-1 border border-border bg-background px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary",required:!0}),c.jsxs("button",{type:"submit",className:"bg-primary text-primary-foreground px-5 py-2 text-sm font-semibold hover:opacity-90 transition-opacity inline-flex items-center justify-center gap-1.5",children:["Subscribe ",c.jsx(Af,{size:14})]})]}),a==="error"&&c.jsx("p",{className:"text-xs text-destructive mt-2",children:u})]})}const OV={"reference-table":"Reference Tables",comparison:"Comparisons",calculator:"Calculators","manufacturer-brand":"Engineering Brands","ffkm-compound":"FFKM Compounds","ffkm-comparison":"FFKM Cross-Reference","seal-manufacturer":"Seal Manufacturers"};function IE(e){return OV[e]||e}function LV(){const[e,t]=YL(),n=e.get("category")||"",[r,i]=A.useState(n);A.useEffect(()=>{i(e.get("category")||"")},[e]);const s=f=>{i(f),t(f?{category:f}:{})},{data:a,isLoading:l}=He({queryKey:["guides_hub"],queryFn:async()=>{const{data:f}=await Ie.from("guides").select("title, slug, meta_description, category").eq("is_published",!0).order("created_at",{ascending:!1});return f||[]}}),u=A.useMemo(()=>{const f=new Set;return a==null||a.forEach(m=>{m.category&&f.add(m.category)}),[...f].sort()},[a]),h=A.useMemo(()=>r?(a||[]).filter(f=>f.category===r):a||[],[a,r]);return l?c.jsx(_e,{children:c.jsx(eo,{count:6})}):c.jsxs(_e,{children:[c.jsx(Ye,{title:"Engineering Guides",description:"Technical guides for engineering components, materials, and specifications.",canonical:"/guides"}),c.jsx(St,{items:[{name:"Home",url:"/"},{name:"Guides",url:"/guides"}]}),c.jsx(Fr,{title:"Engineering Guides",subtitle:"Technical guides for engineering components, materials, and specifications.",backgroundImage:rp}),c.jsxs("div",{className:"container-wide py-12",children:[c.jsx(kt,{items:[{name:"Home",href:"/"},{name:"Guides",href:"/guides"}]}),u.length>0&&c.jsxs("div",{className:"flex flex-wrap gap-2 mb-8",children:[c.jsxs("button",{onClick:()=>s(""),className:`px-3 py-1.5 text-xs font-semibold border transition-colors ${r?"bg-card text-muted-foreground border-border hover:border-primary":"bg-primary text-primary-foreground border-primary"}`,children:["All (",a==null?void 0:a.length,")"]}),u.map(f=>{const m=(a==null?void 0:a.filter(y=>y.category===f).length)||0;return c.jsxs("button",{onClick:()=>s(f),className:`px-3 py-1.5 text-xs font-semibold border transition-colors ${r===f?"bg-primary text-primary-foreground border-primary":"bg-card text-muted-foreground border-border hover:border-primary"}`,children:[IE(f)," (",m,")"]},f)})]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:h.map(f=>c.jsxs(xe,{to:`/guides/${f.slug}`,className:"border border-border bg-card p-5 hover:border-primary transition-colors group",children:[f.category&&c.jsx("span",{className:"text-xs font-semibold text-primary",children:IE(f.category)}),c.jsx("h2",{className:"font-heading font-semibold mt-1 group-hover:text-primary",children:f.title}),f.meta_description&&c.jsx("p",{className:"text-sm text-muted-foreground mt-1 line-clamp-2",children:f.meta_description})]},f.slug))})]})]})}function RV(){const{slug:e}=fi(),{data:t,isLoading:n}=He({queryKey:["guide",e],queryFn:async()=>{const{data:i}=await Ie.from("guides").select("*, authors(name, slug, job_title, bio)").eq("slug",e).eq("is_published",!0).single();return i}});if(n)return c.jsx(_e,{children:c.jsx(Ji,{})});if(!t)return c.jsx(_e,{children:c.jsx("div",{className:"container-wide py-12",children:c.jsx("p",{children:"Not found."})})});const r=t.authors;return c.jsxs(_e,{children:[c.jsx(Ye,{contentPage:!0,title:t.title||"",description:t.meta_description||"",canonical:`/guides/${e}`,ogType:"article",ogImage:Wi(t.sources_json),author:r==null?void 0:r.name,noindex:t.noindex||!1}),c.jsxs("div",{className:"container-narrow py-12",children:[c.jsx(kt,{items:[{name:"Home",href:"/"},{name:"Guides",href:"/guides"},{name:t.title||"",href:`/guides/${e}`}]}),c.jsx(Yi,{title:t.title||"",category:t.category||"Guide",contributorName:r==null?void 0:r.name,contributorSlug:r==null?void 0:r.slug,contributorTitle:r==null?void 0:r.job_title,verifiedDate:pr(t.updated_at),readTime:qi(t.content)}),c.jsx(Ki,{content:t.content}),c.jsx(IV,{sourceLabel:"guide-bottom"}),c.jsx(Xi,{faq:t.faq_json}),c.jsx(to,{}),c.jsx(Zi,{sources:t.sources_json}),c.jsx(Qi,{title:t.title||""}),r&&c.jsx(Gi,{name:r.name,slug:r.slug,jobTitle:r.job_title,bio:r.bio})]})]})}const jV="/assets/standards-DffbgVhc.jpg";function DV(){const{data:e,isLoading:t}=He({queryKey:["standards_hub"],queryFn:async()=>{const{data:n}=await Ie.from("standards").select("name, slug, standard_number, issuing_body, seo_de
283scription").eq("is_published",!0).order("name");return n||[]}});return t?c.jsx(_e,{children:c.jsx(eo,{count:6})}):c.jsxs(_e,{children:[c.jsx(Ye,{title:"Engineering Standards",description:"UK and international standards for engineering components.",canonical:"/standards"}),c.jsx(St,{items:[{name:"Home",url:"/"},{name:"Standards",url:"/standards"}]}),c.jsx(Fr,{title:"Engineering Standards",subtitle:"UK and international standards for engineering components.",backgroundImage:jV}),c.jsxs("div",{className:"container-wide py-12",children:[c.jsx(kt,{items:[{name:"Home",href:"/"},{name:"Standards",href:"/standards"}]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:(e||[]).map(n=>c.jsxs(xe,{to:`/standards/${n.slug}`,className:"border border-border bg-card p-5 hover:border-primary transition-colors group",children:[c.jsx("h2",{className:"font-heading font-semibold group-hover:text-primary",children:n.name}),n.standard_number&&c.jsx("p",{className:"text-xs text-primary font-mono mt-1",children:n.standard_number}),n.issuing_body&&c.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:n.issuing_body})]},n.slug))})]})]})}function MV(){const{slug:e}=fi(),{data:t,isLoading:n}=He({queryKey:["standard",e],queryFn:async()=>{const{data:i}=await Ie.from("standards").select("*, authors(name, slug, job_title, bio)").eq("slug",e).eq("is_published",!0).single();return i}});if(n)return c.jsx(_e,{children:c.jsx(Ji,{})});if(!t)return c.jsx(_e,{children:c.jsx("div",{className:"container-wide py-12",children:c.jsx("p",{children:"Not found."})})});const r=t.authors;return c.jsxs(_e,{children:[c.jsx(Ye,{contentPage:!0,title:t.name||"",description:t.seo_description||"",canonical:`/standards/${e}`,ogType:"article",ogImage:Wi(t.sources_json),author:r==null?void 0:r.name,noindex:t.noindex||!1}),c.jsxs("div",{className:"container-narrow py-12",children:[c.jsx(kt,{items:[{name:"Home",href:"/"},{name:"Standards",href:"/standards"},{name:t.name||"",href:`/standards/${e}`}]}),c.jsx(Yi,{title:t.name||"",category:t.issuing_body||"Standard",contributorName:r==null?void 0:r.name,contributorSlug:r==null?void 0:r.slug,contributorTitle:r==null?void 0:r.job_title,verifiedDate:pr(t.updated_at),readTime:qi(t.seo_content)}),c.jsx(Ki,{content:t.seo_content}),c.jsx(Xi,{faq:t.faq_json}),c.jsx(to,{}),c.jsx(Zi,{sources:t.sources_json}),c.jsx(Qi,{title:t.name||""}),r&&c.jsx(Gi,{name:r.name,slug:r.slug,jobTitle:r.job_title,bio:r.bio})]})]})}const BV="/assets/glossary-DkLMJo5K.jpg";function FV(){const{data:e,isLoading:t}=He({queryKey:["glossary_hub"],queryFn:async()=>{const{data:n}=await Ie.from("glossary_terms").select("term, slug, definition").eq("is_published",!0).order("term");return n||[]}});return t?c.jsx(_e,{children:c.jsx(eo,{count:9})}):c.jsxs(_e,{children:[c.jsx(Ye,{title:"Engineering Glossary",description:"Definitions of engineering terms for bearings, seals, fasteners and more.",canonical:"/glossary"}),c.jsx(St,{items:[{name:"Home",url:"/"},{name:"Glossary",url:"/glossary"}]}),c.jsx(Fr,{title:"Engineering Glossary",subtitle:"Definitions of engineering terms for bearings, seals, fasteners and more.",backgroundImage:BV}),c.jsxs("div",{className:"container-wide py-12",children:[c.jsx(kt,{items:[{name:"Home",href:"/"},{name:"Glossary",href:"/glossary"}]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:(e||[]).map(n=>c.jsxs(xe,{to:`/glossary/${n.slug}`,className:"border border-border bg-card p-5 hover:border-primary transition-colors group",children:[c.jsx("h2",{className:"font-heading font-semibold group-hover:text-primary",children:n.term}),n.definition&&c.jsx("p",{className:"text-sm text-muted-foreground mt-1 line-clamp-2",children:n.definition})]},n.slug))})]})]})}function UV(){const{slug:e}=fi(),{data:t,isLoading:n}=He({queryKey:["glossary_term",e],queryFn:async()=>{const{data:i}=await Ie.from("glossary_terms").select("*, authors(name, slug, job_title, bio)").eq("slug",e).eq("is_published",!0).single();return i}});if(n)return c.jsx(_e,{children:c.jsx(Ji,{})});if(!t)return c.jsx(_e,{children:c.jsx("div",{className:"container-wide py-12",children:c.jsx("p",{children:"Not found."})})});const r=t.authors;return c.jsxs(_e,{children:[c.jsx(Ye,{contentPage:!0,title:t.term||"",description:t.definition||"",canonical:`/glossary/${e}`,ogType:"article",ogImage:Wi(t.sources_json),author:r==null?void 0:r.name,noindex:t.noindex||!1}),c.jsxs("div",{className:"container-narrow py-12",children:[c.jsx(kt,{items:[{name:"Home",href:"/"},{name:"Glossary",href:"/glossary"},{name:t.term||"",href:`/glossary/${e}`}]}),c.jsx(Yi,{title:t.term||"",category:"Glossary",contributorName:r==null?void 0:r.name,contributorSlug:r==null?void 0:r.slug,contributorTitle:r==null?void 0:r.job_title,verifiedDate:pr(t.updated_at),readTime:qi(t.extended_content)}),t.definition&&c.jsx("p",{className:"text-lg text-foreground mb-6",children:t.definition}),c.jsx(Ki,{content:t.extended_content}),c.jsx(Xi,{faq:t.faq_json}),t.related_terms&&t.related_terms.length>0&&c.jsxs("div",{className:"mt-6",children:[c.jsx("h3",{className:"font-heading font-semibold text-sm mb-2",children:"Related Terms"}),c.jsx("div",{className:"flex flex-wrap gap-2",children:t.related_terms.map(i=>c.jsx(xe,{to:`/glossary/${i}`,className:"text-xs bg-accent text-accent-foreground px-2 py-1 hover:bg-primary hover:text-primary-foreground transition-colors",children:i},i))})]}),c.jsx(to,{}),c.jsx(Zi,{sources:t.sources_json}),c.jsx(Qi,{title:t.term||""}),r&&c.jsx(Gi,{name:r.name,slug:r.slug,jobTitle:r.job_title,bio:r.bio})]})]})}const HV="/assets/trade-bodies-BXjCQ6sw.jpg";function zV(){const{data:e,isLoading:t}=He({queryKey:["trade_bodies_hub"],queryFn:async()=>{const{data:n}=await Ie.from("trade_bodies").select("name, slug, abbreviation, focus, seo_de
283scription").eq("is_published",!0).order("name");return n||[]}});return t?c.jsx(_e,{children:c.jsx(eo,{count:6})}):c.jsxs(_e,{children:[c.jsx(Ye,{title:"UK Engineering Trade Bodies",description:"Directory of UK trade bodies and associations for engineering components.",canonical:"/trade-bodies"}),c.jsx(St,{items:[{name:"Home",url:"/"},{name:"Trade Bodies",url:"/trade-bodies"}]}),c.jsx(Fr,{title:"UK Trade Bodies",subtitle:"Directory of UK trade bodies and associations for engineering components.",backgroundImage:HV}),c.jsxs("div",{className:"container-wide py-12",children:[c.jsx(kt,{items:[{name:"Home",href:"/"},{name:"Trade Bodies",href:"/trade-bodies"}]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:(e||[]).map(n=>c.jsxs(xe,{to:`/trade-bodies/${n.slug}`,className:"border border-border bg-card p-5 hover:border-primary transition-colors group",children:[c.jsxs("h2",{className:"font-heading font-semibold group-hover:text-primary",children:[n.abbreviation?`${n.abbreviation} - `:"",n.name]}),n.focus&&c.jsx("p",{className:"text-sm text-muted-foreground mt-1 line-clamp-2",children:n.focus})]},n.slug))})]})]})}function $V(){const{slug:e}=fi(),{data:t,isLoading:n}=He({queryKey:["trade_body",e],queryFn:async()=>{const{data:i}=await Ie.from("trade_bodies").select("*, authors(name, slug, job_title, bio)").eq("slug",e).eq("is_published",!0).single();return i}});if(n)return c.jsx(_e,{children:c.jsx(Ji,{})});if(!t)return c.jsx(_e,{children:c.jsx("div",{className:"container-wide py-12",children:c.jsx("p",{children:"Not found."})})});const r=t.authors;return c.jsxs(_e,{children:[c.jsx(Ye,{contentPage:!0,title:t.name||"",description:t.seo_description||"",canonical:`/trade-bodies/${e}`,ogType:"article",ogImage:Wi(t.sources_json),author:r==null?void 0:r.name,noindex:t.noindex||!1}),c.jsxs("div",{className:"container-narrow py-12",children:[c.jsx(kt,{items:[{name:"Home",href:"/"},{name:"Trade Bodies",href:"/trade-bodies"},{name:t.name||"",href:`/trade-bodies/${e}`}]}),c.jsx(Yi,{title:t.name||"",category:"Trade Body",contributorName:r==null?void 0:r.name,contributorSlug:r==null?void 0:r.slug,contributorTitle:r==null?void 0:r.job_title,verifiedDate:pr(t.updated_at),readTime:qi(t.seo_content)}),t.website&&c.jsx("p",{className:"text-sm mb-4",children:c.jsx("a",{href:t.website,target:"_blank",rel:"noopener noreferrer",onClick:()=>qo("click_trade_body","trade_body",e||"",t.name||""),className:"text-primary hover:underline",children:t.website})}),c.jsx(Ki,{content:t.seo_content}),c.jsx(Xi,{faq:t.faq_json}),c.jsx(LA,{pageType:"trade_body",entityName:t.name||"this trade body"}),c.jsx(to,{}),c.jsx(Zi,{sources:t.sources_json}),c.jsx(Qi,{title:t.name||""}),r&&c.jsx(Gi,{name:r.name,slug:r.slug,jobTitle:r.job_title,bio:r.bio})]})]})}const qV="/assets/news-cqIx4aHx.jpg",WV=["All","Industry News","Standards Updates","Supply Chain","Trade Shows","UK Manufacturing"];function VV(){const[e,t]=A.useState("All"),{data:n,isLoading:r}=He({queryKey:["news_hub"],queryFn:async()=>{const{data:s}=await Ie.from("news_articles").select("title, slug, meta_description, category, source_name, published_at").eq("is_published",!0).order("published_at",{ascending:!1});return s||[]}}),i=e==="All"?n:n==null?void 0:n.filter(s=>s.category===e);return r?c.jsx(_e,{children:c.jsx(eo,{count:6})}):c.jsxs(_e,{children:[c.jsx(Ye,{title:"Engineering Industry News",description:"Latest UK engineering component industry news, standards updates, and supply chain developments.",canonical:"/news"}),c.jsx(St,{items:[{name:"Home",url:"/"},{name:"News",url:"/news"}]}),c.jsx(Fr,{title:"Engineering News",subtitle:"Latest UK engineering component industry news, standards updates, and supply chain developments.",backgroundImage:qV}),c.jsxs("div",{className:"container-wide py-12",children:[c.jsx(kt,{items:[{name:"Home",href:"/"},{name:"News",href:"/news"}]}),c.jsx("div",{className:"flex flex-wrap gap-2 mb-8 border-b border-border pb-4",children:WV.map(s=>c.jsx("button",{onClick:()=>t(s),className:`text-sm px-3 py-1.5 font-medium transition-colors ${e===s?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground hover:text-foreground"}`,children:s},s))}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[c.jsx("div",{className:"lg:col-span-2 grid grid-cols-1 sm:grid-cols-2 gap-4",children:(i||[]).map(s=>c.jsxs(xe,{to:`/news/${s.slug}`,className:"border border-border bg-card p-5 hover:border-primary transition-colors group",children:[s.category&&c.jsx("span",{className:"text-xs font-semibold text-primary",children:s.category}),c.jsx("h2",{className:"font-heading font-semibold mt-1 group-hover:text-primary",children:s.title}),s.meta_description&&c.jsx("p",{className:"text-sm text-muted-foreground mt-1 line-clamp-2",children:s.meta_description}),c.jsxs("div",{className:"flex items-center gap-2 mt-2 text-xs text-muted-foreground",children:[s.source_name&&c.jsx("span",{children:s.source_name}),c.jsx("span",{children:pr(s.published_at)})]})]},s.slug))}),c.jsxs("aside",{className:"border border-border bg-card p-5 h-fit",children:[c.jsx("h3",{className:"font-heading font-semibold mb-4 text-sm uppercase tracking-wider text-muted-foreground",children:"Trending"}),c.jsx("ol",{className:"space-y-3",children:(n||[]).slice(0,5).map((s,a)=>c.jsx("li",{children:c.jsxs(xe,{to:`/news/${s.slug}`,className:"flex gap-3 group",children:[c.jsx("span",{className:"text-primary font-bold text-sm",children:a+1}),c.jsx("span",{className:"text-sm group-hover:text-primary transition-colors line-clamp-2",children:s.title})]})},s.slug))})]})]})]})]})}function KV(){const{slug:e}=fi(),{data:t,isLoading:n}=He({queryKey:["news_article",e],queryFn:async()=>{const{data:i}=await Ie.from("news_articles").select("*, authors(name, slug, job_title, bio)").eq("slug",e).eq("is_published",!0).single();return i}});if(n)return c.jsx(_e,{children:c.jsx(Ji,{})});if(!t)return c.jsx(_e,{children:c.jsx("div",{className:"container-wide py-12",children:c.jsx("p",{children:"Not found."})})});const r=t.authors;return c.jsxs(_e,{children:[c.jsx(Ye,{contentPage:!0,title:t.title||"",description:t.meta_description||"",canonical:`/news/${e}`,ogType:"article",ogImage:Wi(t.sources_json),author:r==null?void 0:r.name,noindex:t.noindex||!1}),c.jsxs("div",{className:"container-narrow py-12",children:[c.jsx(kt,{items:[{name:"Home",href:"/"},{name:"News",href:"/news"},{name:t.title||"",href:`/news/${e}`}]}),c.jsx(Yi,{title:t.title||"",category:t.category||"News",contributorName:r==null?void 0:r.name,contributorSlug:r==null?void 0:r.slug,contributorTitle:r==null?void 0:r.job_title,verifiedDate:pr(t.published_at),readTime:qi(t.content)}),t.source_name&&c.jsxs("p",{className:"text-sm text-muted-foreground mb-6",children:["Source: ",t.source_url?c.jsx("a",{href:t.source_url,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:t.source_name}):t.source_name]}),c.jsx(Ki,{content:t.content}),c.jsx(Xi,{faq:t.faq_json}),c.jsx(to,{}),c.jsx(Zi,{sources:t.sources_json}),c.jsx(Qi,{title:t.title||""}),r&&c.jsx(Gi,{name:r.name,slug:r.slug,jobTitle:r.job_title,bio:r.bio})]})]})}function GV(){var h,f;const{slug:e}=fi(),{data:t,isLoading:n}=He({queryKey:["contributor",e],queryFn:async()=>{const{data:m}=await Ie.from("authors").select("*").eq("slug",e).single();return m}}),{data:r}=He({queryKey:["contributor_products",t==null?void 0:t.id],enabled:!!(t!=null&&t.id),queryFn:async()=>{const{data:m}=await Ie.from("product_categories").select("name, slug").eq("author_id",t.id).eq("is_published",!0);return m||[]}}),{data:i}=He({queryKey:["contributor_guides",t==null?void 0:t.id],enabled:!!(t!=null&&t.id),queryFn:async()=>{const{data:m}=await Ie.from("guides").select("title, slug").eq("author_id",t.id).eq("is_published",!0);return m||[]}}),{data:s}=He({queryKey:["contributor_suppliers",t==null?void 0:t.id],enabled:!!(t!=null&&t.id),queryFn:async()=>{const{data:m}=await Ie.from("suppliers").select("name, slug").eq("author_id",t.id).eq("is_published",!0).limit(20);return m||[]}}),{data:a}=He({queryKey:["contributor_news",t==null?void 0:t.id],enabled:!!(t!=null&&t.id),queryFn:async()=>{const{data:m}=await Ie.from("news_articles").select("title, slug").eq("author_id",t.id).eq("is_published",!0);return m||[]}});if(n)return c.jsx(_e,{children:c.jsx(Ji,{})});if(!t)return c.jsx(_e,{children:c.jsx("div",{className:"container-wide py-12",children:c.jsx("p",{children:"Not found."})})});const l=((h=t.expertise)==null?void 0:h.split(",").map(m=>m.trim()))||[],u={"@context":"https://schema.org","@type":"Person",name:t.name,jobTitle:t.job_title,de
283scription:t.bio,url:`https://mlc.org.uk/contributors/${e}`};return c.jsxs(_e,{children:[c.jsx(Ye,{title:t.name||"",description:`${t.name} - ${t.job_title}. Contributor at My Local Components.`,canonical:`/contributors/${e}`,ogType:"article",author:t.name||void 0}),c.jsx(Uf,{data:u}),c.jsx(St,{items:[{name:"Home",url:"/"},{name:"Contributors",url:"/about"},{name:t.name||"",url:`/contributors/${e}`}]}),c.jsxs("div",{className:"container-narrow py-12",children:[c.jsx(kt,{items:[{name:"Home",href:"/"},{name:"About",href:"/about"},{name:t.name||"",href:`/contributors/${e}`}]}),c.jsxs("div",{className:"flex items-start gap-6 mb-8",children:[c.jsx("div",{className:"w-16 h-16 bg-muted flex items-center justify-center text-primary font-bold text-2xl flex-shrink-0",children:(f=t.name)==null?void 0:f.charAt(0)}),c.jsxs("div",{children:[c.jsx("h1",{className:"text-2xl font-heading font-bold",children:t.name}),c.jsx("p",{className:"text-muted-foreground",children:t.job_title})]})]}),c.jsx("p",{className:"text-foreground mb-6",children:t.bio}),l.length>0&&c.jsxs("div",{className:"mb-8",children:[c.jsx("h2",{className:"font-heading font-semibold text-sm mb-2",children:"Expertise"}),c.jsx("div",{className:"flex flex-wrap gap-2",children:l.map(m=>c.jsx("span",{className:"text-xs bg-accent text-accent-foreground px-2 py-1",children:m},m))})]}),[{title:"Product Categories",items:r,prefix:"/products/",nameKey:"name"},{title:"Guides",items:i,prefix:"/guides/",nameKey:"title"},{title:"Suppliers",items:s,prefix:"/suppliers/",nameKey:"name"},{title:"News Articles",items:a,prefix:"/news/",nameKey:"title"}].filter(m=>m.items&&m.items.length>0).map(m=>c.jsxs("div",{className:"mb-8",children:[c.jsx("h2",{className:"font-heading font-semibold mb-3",children:m.title}),c.jsx("ul",{className:"space-y-1",children:m.items.map(y=>c.jsx("li",{children:c.jsx(xe,{to:`${m.prefix}${y.slug}`,className:"text-sm text-primary hover:underline",children:y[m.nameKey]})},y.slug))})]},m.title))]})]})}function YV(){const{categorySlug:e,areaSlug:t}=fi(),n=`${e}-${t}`,{data:r,isLoading:i}=He({queryKey:["product_area",n],queryFn:async()=>{const{data:u}=await Ie.from("product_areas").select("*, authors(name, slug, job_title, bio)").eq("slug",n).single();return u}}),{data:s}=He({queryKey:["product_category_name",e],enabled:!!e,queryFn:async()=>{const{data:u}=await Ie.from("product_categories").select("name").eq("slug",e).single();return u}}),{data:a}=He({queryKey:["product_area_suppliers",e,t],enabled:!!e&&!!t,queryFn:async()=>{const{data:u}=await Ie.from("suppliers").select("name, slug, company_status").eq("area_slug",t).contains("product_categories",[e]).order("name");return u||[]}});if(i)return c.jsx(_e,{children:c.jsx("div",{className:"container-wide py-12",children:c.jsx("p",{children:"Loading..."})})});if(!r||r.noindex)return c.jsxs(_e,{children:[c.jsx(Ye,{title:`${e} in ${t}`,description:"",canonical:`/products/${e}/${t}`,noindex:!0}),c.jsxs("div",{className:"container-narrow py-16 text-center",children:[c.jsx("h1",{className:"text-2xl font-heading font-bold mb-4",children:"Coming Soon"}),c.jsx("p",{className:"text-muted-foreground mb-8",children:"We're working on content for this combination. In the meantime, try these pages:"}),c.jsxs("div",{className:"flex justify-center gap-4",children:[c.jsxs(xe,{to:`/products/${e}`,className:"bg-primary text-primary-foreground px-4 py-2 text-sm font-semibold hover:opacity-90 transition-opacity",children:["View ",e]}),c.jsxs(xe,{to:`/areas/${t}`,className:"border border-border px-4 py-2 text-sm font-semibold hover:border-primary transition-colors",children:["View ",t]})]}),a&&a.length>0&&c.jsxs("div",{className:"mt-12 text-left",children:[c.jsx("h2",{className:"font-heading font-semibold mb-4",children:"Matching Suppliers"}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:a.map(u=>c.jsx(xe,{to:`/suppliers/${u.slug}`,className:"border border-border bg-card p-4 hover:border-primary transition-colors group text-left",children:c.jsx("h3",{className:"text-sm font-heading font-semibold group-hover:text-primary",children:u.name})},u.slug))})]})]})]});const l=r.authors;return c.jsxs(_e,{children:[c.jsx(Ye,{contentPage:!0,title:r.name||"",description:r.seo_description||"",canonical:`/products/${e}/${t}`,ogType:"article",ogImage:Wi(r.sources_json),author:l==null?void 0:l.name,noindex:r.noindex||!1}),c.jsxs("div",{className:"container-narrow py-12",children:[c.jsx(kt,{items:[{name:"Home",href:"/"},{name:"Products",href:"/products"},{name:(s==null?void 0:s.name)||e||"",href:`/products/${e}`},{name:r.name||"",href:`/products/${e}/${t}`}]}),c.jsx(Yi,{title:r.name||"",category:"Product + Area",contributorName:l==null?void 0:l.name,contributorSlug:l==null?void 0:l.slug,contributorTitle:l==null?void 0:l.job_title,verifiedDate:pr(r.updated_at),readTime:qi(r.seo_content)}),c.jsx(Ki,{content:r.seo_content}),c.jsx(Xi,{faq:r.faq_json}),a&&a.length>0&&c.jsxs("div",{className:"mt-8",children:[c.jsx("h2",{className:"font-heading font-semibold mb-4",children:"Suppliers"}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:a.map(u=>c.jsxs(xe,{to:`/suppliers/${u.slug}`,className:"border border-border bg-card p-4 hover:border-primary transition-colors group",children:[c.jsx("h3",{className:"text-sm font-heading font-semibold group-hover:text-primary",children:u.name}
283),u.company_status&&c.jsx("span",{className:`text-[10px] font-semibold px-1.5 py-0.5 mt-1 inline-block ${u.company_status==="Active"?"bg-trust text-trust-foreground":"bg-muted text-muted-foreground"}`,children:u.company_status})]},u.slug))})]}),c.jsx(Zi,{sources:r.sources_json}),c.jsx(Qi,{title:r.name||""}),l&&c.jsx(Gi,{name:l.name,slug:l.slug,jobTitle:l.job_title,bio:l.bio})]})]})}function QV(){return c.jsxs(_e,{children:[c.jsx(Ye,{title:"About My Local Components",description:"My Local Components is a free UK directory helping engineers, procurement teams, and workshop owners find verified component suppliers.",canonical:"/about"}),c.jsx(St,{items:[{name:"Home",url:"/"},{name:"About",url:"/about"}]}),c.jsxs("div",{className:"container-narrow py-12",children:[c.jsx("h1",{className:"text-3xl font-heading font-bold mb-6",children:"About My Local Components"}),c.jsx("p",{className:"text-foreground mb-6",children:"My Local Components is a free UK directory helping engineers, procurement teams, and workshop owners find verified component suppliers. We cover bearings, seals, fasteners, springs, pumps, valves and more across 170+ UK areas."}),c.jsx("p",{className:"text-foreground mb-6",children:"mlc.org.uk has been online since 1998, originally as the Meat & Livestock Commission's official website. The domain now serves as the UK's independent engineering components directory."}),c.jsxs("p",{className:"text-foreground mb-6",children:["Contact us: ",c.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"})]}),c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-4",children:"How we verify data"}),c.jsx("p",{className:"text-foreground mb-4",children:"All supplier listings are verified against Companies House public records. We cross-reference SIC codes, filing history, and company status to ensure accuracy. Product specifications reference ISO, BS, and DIN standards."}),c.jsxs("p",{className:"text-sm text-muted-foreground mb-6",children:["Read our full ",c.jsx(xe,{to:"/editorial-methodology",className:"text-primary hover:underline",children:"editorial methodology"}),"."]}),c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-4",children:"Our Contributors"}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 mb-8",children:[{name:"Mel Sykes",slug:"mel-sykes",title:"Industrial Supply Chain Specialist"},{name:"Rachel Mayfield",slug:"rachel-mayfield",title:"Supply Chain Analyst"}].map(e=>c.jsx(xe,{to:`/contributors/${e.slug}`,className:"border border-border bg-card p-5 hover:border-primary transition-colors group",children:c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"w-10 h-10 bg-muted flex items-center justify-center text-primary font-bold",children:e.name.charAt(0)}),c.jsxs("div",{children:[c.jsx("p",{className:"font-heading font-semibold group-hover:text-primary",children:e.name}),c.jsx("p",{className:"text-xs text-muted-foreground",children:e.title})]})]})},e.slug))}),c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-4",children:"Contact"}),c.jsxs("p",{className:"text-foreground",children:["For enquiries, corrections, or feedback, visit our ",c.jsx(xe,{to:"/contact",className:"text-primary hover:underline",children:"contact page"}),"."]})]})]})}function ZV(){return c.jsxs(_e,{children:[c.jsx(Ye,{title:"Editorial Methodology",description:"How My Local Components verifies supplier data, references standards, and maintains accuracy.",canonical:"/editorial-methodology"}),c.jsx(St,{items:[{name:"Home",url:"/"},{name:"Editorial Methodology",url:"/editorial-methodology"}]}),c.jsxs("div",{className:"container-narrow py-12",children:[c.jsx("h1",{className:"text-3xl font-heading font-bold mb-8",children:"Editorial Methodology"}),c.jsxs("section",{className:"mb-8",children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mb-3",children:"Our Data"}),c.jsx("p",{className:"text-foreground",children:"All supplier listings are verified against Companies House public records. We cross-reference SIC codes, filing history, and company status to ensure accuracy."})]}),c.jsxs("section",{className:"mb-8",children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mb-3",children:"Industry Standards"}),c.jsx("p",{className:"text-foreground",children:"Product specifications reference ISO, BS, and DIN standards. We consult published standards documents and trade body guidance."})]}),c.jsxs("section",{className:"mb-8",children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mb-3",children:"Our C
283ontributors"}),c.jsx("p",{className:"text-foreground mb-3",children:"MLC content is written and verified by experienced industry professionals:"}),c.jsxs("ul",{className:"space-y-2",children:[c.jsx("li",{children:c.jsxs("li",{children:[c.jsx(xe,{to:"/contributors/mel-sykes",className:"text-primary hover:underline font-medium",children:"Mel Sykes"}),c.jsx("span",{className:"text-muted-foreground",children:" - Industrial Supply Chain Specialist"})]})}),c.jsxs("li",{children:[c.jsx(xe,{to:"/contributors/rachel-mayfield",className:"text-primary hover:underline font-medium",children:"Rachel Mayfield"}),c.jsxs("span",{className:"text-muted-foreground",children:[" ",c.jsx("span",{className:"text-muted-foreground",children:" - Supply Chain Analyst"})]})]})]})]}),c.jsxs("section",{className:"mb-8",children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mb-3",children:"How We Source Information"}),c.jsxs("ul",{className:"list-disc list-inside space-y-1 text-foreground",children:[c.jsx("li",{children:"Companies House API"}),c.jsx("li",{children:"Trade body registers (CBM, BIAFD, BTMA, BPMA, IST)"}),c.jsx("li",{children:"Published standards documents"}),c.jsx("li",{children:"Manufacturer technical data sheets"})]})]}),c.jsxs("section",{className:"mb-8",children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mb-3",children:"Corrections"}),c.jsxs("p",{className:"text-foreground",children:["If you spot an error, ",c.jsx(xe,{to:"/contact",className:"text-primary hover:underline",children:"contact us"}),". We investigate and update within 48 hours."]})]}),c.jsxs("section",{className:"mb-8",children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mb-3",children:"Independence"}),c.jsx("p",{className:"text-foreground",children:"MLC is not affiliated with any component manufacturer or distributor. Listings are based on public records, not paid placement."})]})]})]})}function XV(){return c.jsxs(_e,{children:[c.jsx(Ye,{title:"Contact Us",description:"Get in touch with My Local Components for enquiries, corrections, or feedback.",canonical:"/contact"}),c.jsx(St,{items:[{name:"Home",url:"/"},{name:"Contact",url:"/contact"}]}),c.jsxs("div",{className:"container-narrow py-12",children:[c.jsx("h1",{className:"text-3xl font-heading font-bold mb-6",children:"Contact Us"}),c.jsx("p",{className:"text-foreground mb-6",children:"For enquiries, data corrections, or general feedback about My Local Components, please get in touch using the details below."}),c.jsx("div",{className:"border border-border bg-card p-6",children:c.jsxs("dl",{className:"space-y-3 text-sm",children:[c.jsxs("div",{children:[c.jsx("dt",{className:"text-muted-foreground",children:"Email"}),c.jsx("dd",{children:c.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"})})]}),c.jsxs("div",{children:[c.jsx("dt",{className:"text-muted-foreground",children:"Website"}),c.jsx("dd",{children:c.jsx("a",{href:"https://mlc.org.uk",className:"text-primary hover:underline",children:"mlc.org.uk"})})]})]})})]})]})}function JV(){return c.jsxs(_e,{children:[c.jsx(Ye,{title:"Privacy Policy",description:"Privacy policy for My Local Components (mlc.org.uk). How we collect, use, and protect your data.",canonical:"/privacy"}),c.jsx(St,{items:[{name:"Home",url:"/"},{name:"Privacy Policy",url:"/privacy"}]}),c.jsxs("div",{className:"container-narrow py-12",children:[c.jsx("h1",{className:"text-3xl font-heading font-bold mb-2",children:"Privacy Policy"}),c.jsx("p",{className:"text-sm text-muted-foreground mb-8",children:"Last updated: 6 April 2026"}),c.jsxs("div",{className:"prose prose-sm max-w-none text-foreground space-y-6",children:[c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"1. Who we are"}),c.jsxs("p",{children:['My Local Components ("MLC", "we", "us") operates the website mlc.org.uk. We are an independent directory of UK engineering component suppliers. Our contact email is ',c.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"}),"."]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"2. What data we collect"}),c.jsx("p",{children:"We collect the minimum data necessary to operate this website:"}),c.jsxs("ul",{className:"list-disc list-inside space-y-1 mt-2",children:[c.jsxs("li",{children:[c.jsx("strong",{children:"Usage data"})," - pages visited, time on site, referring URL, browser type, device type, and approximate location (country/region level). This is collected via anal
283ytics cookies."]}),c.jsxs("li",{children:[c.jsx("strong",{children:"Contact form submissions"})," - if you contact us via our contact page or email, we store your email address and message content to respond to your enquiry."]}),c.jsxs("li",{children:[c.jsx("strong",{children:"Cookie preferences"})," - we store your cookie consent choice in your browser's local storage."]})]}),c.jsx("p",{className:"mt-2",children:"We do not collect sensitive personal data. We do not require user registration."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"3. How we use your data"}),c.jsxs("ul",{className:"list-disc list-inside space-y-1",children:[c.jsx("li",{children:"To operate and maintain the website"}),c.jsx("li",{children:"To understand how visitors use the site and improve content"}),c.jsx("li",{children:"To respond to enquiries submitted via email or contact forms"}),c.jsx("li",{children:"To detect and prevent abuse or spam"})]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"4. Legal basis for processing"}),c.jsx("p",{children:"We process data under the following lawful bases (UK GDPR):"}),c.jsxs("ul",{className:"list-disc list-inside space-y-1 mt-2",children:[c.jsxs("li",{children:[c.jsx("strong",{children:"Legitimate interests"})," - to operate the website, analyse usage, and improve our service"]}),c.jsxs("li",{children:[c.jsx("strong",{children:"Consent"})," - for non-essential cookies (analytics). You can withdraw consent at any time via the cookie settings on this site"]}),c.jsxs("li",{children:[c.jsx("strong",{children:"Contract"})," - to respond to your contact form submissions"]})]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"5. Cookies"}),c.jsxs("p",{children:["We use cookies and similar technologies. For full details of the cookies we set and how to manage them, please see our ",c.jsx(xe,{to:"/cookies",className:"text-primary hover:underline",children:"Cookie Policy"}),"."]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"6. Data sharing"}),c.jsx("p",{children:"We do not sell, trade, or rent your personal data. We may share anonymised, aggregated usage statistics that cannot identify any individual. Data may be processed by third-party service providers (hosting, analytics) who act as data processors under contract."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"7. Data retention"}),c.jsxs("ul",{className:"list-disc list-inside space-y-1",children:[c.jsx("li",{children:"Analytics data is retained for 26 months, then automatically deleted"}),c.jsx("li",{children:"Contact form data is retained for 12 months after your last interaction"}),c.jsx("li",{children:"Cookie consent preferences are stored in your browser until cleared"})]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"8. Your rights"}),c.jsx("p",{children:"Under UK GDPR, you have the right to:"}),c.jsxs("ul",{className:"list-disc list-inside space-y-1 mt-2",children:[c.jsx("li",{children:"Access the personal data we hold about you"}),c.jsx("li",{children:"Request correction of inaccurate data"}),c.jsx("li",{children:"Request deletion of your data"}),c.jsx("li",{children:"Object to processing based on legitimate interests"}),c.jsx("li",{children:"Withdraw consent for analytics cookies at any time"}),c.jsx("li",{children:"Lodge a complaint with the Information Commissioner's Office (ICO)"})]}),c.jsxs("p",{className:"mt-2",children:["To exercise any of these rights, email ",c.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"}),"."]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"9. Third-party links"}),c.jsx("p",{children:"Our directory contains links to supplier websites and external resources. We are not responsible for the privacy practices of those sites. We recommend reviewing their privacy policies before providing any personal data."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"10. Children's privacy"}),c.jsx("p",{children:"This website is not directed at individuals under 16. We do not knowingly collect data from children."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"11. Changes to this policy"}),c.jsx("p",{children:'We may update this policy from time to time. The "Last updated" date at the top of this page will reflect the most recent revision. Continued use of the site after changes constitutes acceptance.'})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"12. Contact"}),c.jsxs("p",{children:["For privacy-related enquiries, contact us at ",c.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"}),"."]})]})]})]})]})}function eK(){return c.jsxs(_e,{children:[c.jsx(Ye,{title:"Disclaimer",description:"Disclaimer and limitation of liability for My Local Components (mlc.org.uk).",canonical:"/disclaimer"}),c.jsx(St,{items:[{name:"Home",url:"/"},{name:"Disclaimer",url:"/disclaimer"}]}),c.jsxs("div",{className:"container-narrow py-12",children:[c.jsx("h1",{className:"text-3xl font-heading font-bold mb-2",children:"Disclaimer"}),c.jsx("p",{className:"text-sm text-muted-foreground mb-8",children:"Last updated: 6 April 2026"}),c.jsxs("div",{className:"prose prose-sm max-w-none text-foreground space-y-6",children:[c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"1. General information"}),c.jsx("p",{children:"The information provided on My Local Components (mlc.org.uk) is for general informational purposes only. While we take reasonable steps to ensure accuracy, we make no representations or warranties of any kind, express or implied, about the completeness, accuracy, reliability, suitability, or availability of the information, products, services, or related graphics contained on this website."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"2. Supplier data"}),c.jsx("p",{children:"Supplier information is sourced primarily from C
283ompanies House public records and other publicly available sources. We verify data regularly but cannot guarantee real-time accuracy of:"}),c.jsxs("ul",{className:"list-disc list-inside space-y-1 mt-2",children:[c.jsx("li",{children:"Company trading status"}),c.jsx("li",{children:"Registered addresses"}),c.jsx("li",{children:"Director information"}),c.jsx("li",{children:"Contact details (phone, email, website)"}),c.jsx("li",{children:"Product ranges or services offered"}),c.jsx("li",{children:"Certifications or accreditations"})]}),c.jsx("p",{className:"mt-2",children:"Always verify critical supplier information directly with the company before making purchasing decisions."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"3. Technical standards and reference data"}),c.jsx("p",{children:"Product specifications, reference tables, and technical information reference published ISO, BS, DIN, and other standards. This information is provided as a guide only and should not be used as a substitute for consulting the official, current versions of standard documents from the relevant issuing body (BSI, ISO, DIN, etc.)."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"4. Interactive tools and calculators"}),c.jsx("p",{children:"This website provides interactive tools, calculators, and reference charts (including but not limited to bolt torque calculators, O-ring size finders, thread pitch charts, bearing dimension tables, and hardness conversion charts). These tools are provided for general guidance and estimation purposes only."}),c.jsxs("ul",{className:"list-disc list-inside space-y-1 mt-2",children:[c.jsx("li",{children:"Calculator outputs and chart data may contain errors, omissions, or inaccuracies"}),c.jsx("li",{children:"Results should always be independently verified against official standard documents before use in any engineering, manufacturing, or procurement application"}),c.jsx("li",{children:"We accept no liability for any loss, damage, injury, or defect arising from reliance on calculator results or reference data provided on this site"}),c.jsx("li",{children:"Users are solely responsible for validating any values used in safety-critical, structural, or precision engineering applications"})]}),c.jsx("p",{className:"mt-2",children:"If you are unsure about any value, consult the relevant standard document or a qualified engineer before proceeding."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"5. Independence"}),c.jsx("p",{children:"My Local Components is an independent directory. We are not affiliated with, endorsed by, or formally connected to any component manufacturer, distributor, or trade body. Inclusion in the directory does not constitute endorsement or recommendation. Trade body abbreviations and references are used for informational purposes only."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"6. Limitation of liability"}),c.jsx("p",{children:"To the fullest extent permitted by law, My Local Components excludes all liability for any loss or damage arising from your use of this website, including but not limited to:"}),c.jsxs("ul",{className:"list-disc list-inside space-y-1 mt-2",children:[c.jsx("li",{children:"Direct, indirect, or consequential loss"}),c.jsx("li",{children:"Loss of profit, revenue, or anticipated savings"}),c.jsx("li",{children:"Loss of data or goodwill"}),c.jsx("li",{children:"Any loss arising from reliance on information published on this site"})]}),c.jsx("p",{className:"mt-2",children:"Nothing in this disclaimer excludes or limits liability for death or personal injury caused by negligence, fraud, or any other liability that cannot be excluded under English law."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"7. External links"}),c.jsx("p",{children:"This website contains links to third-party websites including supplier websites, trade body websites, and standards bodies. We have no control over the content or availability of those sites and accept no responsibility for them or for any loss or damage arising from your use of them."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"8. Professional advice"}),c.jsx("p",{children:"Nothing on this website constitutes professional engineering, procurement, or legal advice. For specific technical requirements, consult a qualified engineer or relevant professional body."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"9. Corrections"}),c.jsxs("p",{children:["If you identify any inaccurate information on this website, please contact us at ",c.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"}),". We aim to investigate and correct verified errors within 48 hours."]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"10. Governing law"}),c.jsx("p",{children:"This disclaimer is governed by English law. Any disputes arising from the use of this website shall be subject to the exclusive jurisdiction of the courts of England and Wales."})]})]})]})]})}function tK(){return c.jsxs(_e,{children:[c.jsx(Ye,{title:"Terms and Conditions",description:"Terms and conditions for using My Local Components (mlc.org.uk).",canonical:"/terms"}),c.jsx(St,{items:[{name:"Home",url:"/"},{name:"Terms and Conditions",url:"/terms"}]}),c.jsxs("div",{className:"container-narrow py-12",children:[c.jsx("h1",{className:"text-3xl font-heading font-bold mb-2",children:"Terms and Conditions"}),c.jsx("p",{className:"text-sm text-muted-foreground mb-8",children:"Last updated: 6 April 2026"}),c.jsxs("div",{className:"prose prose-sm max-w-none text-foreground space-y-6",children:[c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"1. Introduction"}),c.jsx("p",{children:'These terms and conditions ("Terms") govern your use of the My Local Components website at mlc.org.uk ("the Site"). By accessing or using the Site, you agree to be bound by these Terms. If you do not agree, you must not use the Site.'}),c.jsx("p",{className:"mt-2",children:'The Site is operated by My Local Components ("MLC", "we", "us", "our").'})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"2. Use of the Site"}),c.jsx("p",{children:"You may use the Site for lawful purposes only. You agree not to:"}),c.jsxs("ul",{className:"list-disc list-inside space-y-1 mt-2",children:[c.jsx("li",{children:"Use the Site in any way that breaches applicable local, national, or international law"}),c.jsx("li",{children:"Use automated tools, bots, scrapers, or crawlers to extract data from the Site without our written permission"}),c.jsx("li",{children:"Attempt to gain unauthorised access to any part of the Site or its infrastru
283cture"}),c.jsx("li",{children:"Reproduce, duplicate, copy, or resell any part of the Site's content for commercial purposes without permission"}),c.jsx("li",{children:"Transmit any material that is defamatory, offensive, or otherwise objectionable"}),c.jsx("li",{children:"Interfere with or disrupt the integrity or performance of the Site"})]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"3. Directory content"}),c.jsx("p",{children:"The Site provides a directory of UK engineering component suppliers. Listings are compiled from publicly available sources including Companies House. We do not guarantee that:"}),c.jsxs("ul",{className:"list-disc list-inside space-y-1 mt-2",children:[c.jsx("li",{children:"All information is accurate, complete, or current"}),c.jsx("li",{children:"Listed suppliers are currently trading or solvent"}),c.jsx("li",{children:"Contact details are operational"}),c.jsx("li",{children:"Products or services described are available"})]}),c.jsx("p",{className:"mt-2",children:"Supplier listings do not constitute endorsement or recommendation. You are responsible for carrying out your own due diligence before engaging with any supplier."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"4. Intellectual property"}),c.jsx("p",{children:"All content on the Site, including text, data compilations, graphics, logos, page layout, and software, is owned by My Local Components or its licensors and is protected by copyright and other intellectual property laws."}),c.jsx("p",{className:"mt-2",children:"You may view, download, and print pages for your own personal, non-commercial use, provided you do not modify the content and retain all copyright notices."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"5. User submissions"}),c.jsx("p",{children:"If you submit corrections, feedback, or other content to us (via email or contact forms), you grant MLC a non-exclusive, royalty-free, perpetual licence to use, modify, and publish that content for the purpose of improving the directory."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"6. Third-party links"}),c.jsx("p",{children:"The Site contains links to external websites operated by third parties. We have no control over those websites and accept no responsibility for their content, privacy practices, or availability. Linking to a third-party site does not imply endorsement."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"7. Limitation of liability"}),c.jsx("p",{children:'The Site is provided on an "as is" and "as available" basis. To the fullest extent permitted by law:'}),c.jsxs("ul",{className:"list-disc list-inside space-y-1 mt-2",children:[c.jsx("li",{children:"We exclude all warranties, whether express or implied"}),c.jsx("li",{children:"We shall not be liable for any direct, indirect, incidental, special, or consequential damages arising from your use of (or inability to use) the Site"}),c.jsx("li",{children:"Our total liability shall not exceed the amount you have paid to us for use of the Site (which is nil for free directory access)"})]}),c.jsx("p",{className:"mt-2",children:"Nothing in these Terms excludes liability for death or personal injury caused by negligence, fraud or fraudulent misrepresentation, or any other liability that cannot be excluded under English law."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"8. Indemnity"}),c.jsx("p",{children:"You agree to indemnify and hold harmless MLC, its contributors, and service providers from any claims, damages, losses, or expenses (including legal fees) arising from your use of the Site or breach of these Terms."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"9. Availability"}),c.jsx("p",{children:"We do not guarantee that the Site will be available at all times. We may suspend, withdraw, or restrict access to all or part of the Site for business or operational reasons. We will try to give reasonable notice of any planned suspension."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"10. Changes to these Terms"}),c.jsx("p",{children:'We may revise these Terms at any time by updating this page. The "Last updated" date at the top will reflect the most recent changes. Continued use of the Site after changes constitutes acceptance of the revised Terms.'})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"11. Severability"}),c.jsx("p",{children:"If any provision of these Terms is found to be unlawful, void, or unenforceable, that provision shall be deemed severable and shall not affect the validity or enforceability of the remaining provisions."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"12. Governing law"}),c.jsx("p",{children:"These Terms are governed by the laws of England and Wales. Any disputes arising from these Terms or the use of the Site shall be subject to the exclusive jurisdiction of the courts of England and Wales."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"13. Contact"}),c.jsxs("p",{children:["For questions about these Terms, contact us at ",c.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"}),"."]})]})]})]})]})}function nK(){return c.jsxs(_e,{children:[c.jsx(Ye,{title:"Cookie Policy",description:"Cookie policy for My Local Components (mlc.org.uk). Details of cookies used and how to manage them.",canonical:"/cookies"}),c.jsx(St,{items:[{name:"Home",url:"/"},{name:"Cookie Policy",url:"/cookies"}]}),c.jsxs("div",{className:"container-narrow py-12",children:[c.jsx("h1",{className:"text-3xl font-heading font-bold mb-2",children:"Cookie Policy"}),c.jsx("p",{className:"text-sm text-muted-foreground mb-8",children:"Last updated: 6 April 2026"}),c.jsxs("div",{className:"prose prose-sm max-w-none text-foreground space-y-6",children:[c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"1. What are cookies?"}),c.jsx("p",{children:"Cookies are small text files placed on your device when you visit a website. They are widely used to make websites work efficie
283ntly, provide information to site owners, and improve the user experience."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"2. Cookies we use"}),c.jsx("p",{children:"We use the following categories of cookies:"}),c.jsx("h3",{className:"text-lg font-heading font-semibold mt-6 mb-2",children:"Strictly necessary cookies"}),c.jsx("p",{children:"These cookies are essential for the website to function. They cannot be switched off."}),c.jsx("div",{className:"overflow-x-auto mt-2",children:c.jsxs("table",{className:"w-full text-sm border border-border",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"bg-muted",children:[c.jsx("th",{className:"text-left p-2 border-b border-border font-semibold",children:"Cookie"}),c.jsx("th",{className:"text-left p-2 border-b border-border font-semibold",children:"Purpose"}),c.jsx("th",{className:"text-left p-2 border-b border-border font-semibold",children:"Duration"})]})}),c.jsxs("tbody",{children:[c.jsxs("tr",{children:[c.jsx("td",{className:"p-2 border-b border-border font-mono text-xs",children:"mlc_cookie_consent"}),c.jsx("td",{className:"p-2 border-b border-border",children:"Stores your cookie consent preference"}),c.jsx("td",{className:"p-2 border-b border-border",children:"12 months"})]}),c.jsxs("tr",{children:[c.jsx("td",{className:"p-2 border-b border-border font-mono text-xs",children:"sb-*-auth-token"}),c.jsx("td",{className:"p-2 border-b border-border",children:"Authentication session (if logged in)"}),c.jsx("td",{className:"p-2 border-b border-border",children:"Session"})]})]})]})}),c.jsx("h3",{className:"text-lg font-heading font-semibold mt-6 mb-2",children:"Analytics cookies"}),c.jsx("p",{children:"These cookies help us understand how visitors interact with the website. All data is anonymised."}),c.jsx("div",{className:"overflow-x-auto mt-2",children:c.jsxs("table",{className:"w-full text-sm border border-border",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"bg-muted",children:[c.jsx("th",{className:"text-left p-2 border-b border-border font-semibold",children:"Cookie"}),c.jsx("th",{className:"text-left p-2 border-b border-border font-semibold",children:"Purpose"}),c.jsx("th",{className:"text-left p-2 border-b border-border font-semibold",children:"Duration"})]})}),c.jsxs("tbody",{children:[c.jsxs("tr",{children:[c.jsx("td",{className:"p-2 border-b border-border font-mono text-xs",children:"_ga"}),c.jsx("td",{className:"p-2 border-b border-border",children:"Distinguishes unique visitors"}),c.jsx("td",{className:"p-2 border-b border-border",children:"2 years"})]}),c.jsxs("tr",{children:[c.jsx("td",{className:"p-2 border-b border-border font-mono text-xs",children:"_ga_*"}),c.jsx("td",{className:"p-2 border-b border-border",children:"Maintains session state"}),c.jsx("td",{className:"p-2 border-b border-border",children:"2 years"})]})]})]})})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"3. How to manage cookies"}),c.jsx("p",{children:"You can control cookies through:"}),c.jsxs("ul",{className:"list-disc list-inside space-y-1 mt-2",children:[c.jsxs("li",{children:[c.jsx("strong",{children:"Our cookie banner"})," - when you first visit the site, you can accept or decline non-essential cookies"]}),c.jsxs("li",{children:[c.jsx("strong",{children:"Your browser settings"})," - most browsers allow you to refuse or delete cookies. See your browser's help documentation for instructions"]})]}),c.jsx("p",{className:"mt-2",children:"Please note that blocking essential cookies may affect the functionality of the website."}),c.jsx("h3",{className:"text-lg font-heading font-semibold mt-6 mb-2",children:"Browser-specific instructions"}),c.jsxs("ul",{className:"list-disc list-inside space-y-1",children:[c.jsx("li",{children:c.jsx("a",{href:"https://support.google.com/chrome/answer/95647",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Google Chrome"})}),c.jsx("li",{children:c.jsx("a",{href:"https://support.mozilla.org/en-US/kb/cookies-information-websites-store-on-your-computer",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Mozilla Firefox"})}),c.jsx("li",{children:c.jsx("a",{href:"https://support.apple.com/en-gb/guide/safari/sfri11471/mac",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Apple Safari"})}),c.jsx("li",{children:c.jsx("a",{href:"https://support.microsoft.com/en-us
283/microsoft-edge/delete-cookies-in-microsoft-edge-63947406-40ac-c3b8-57b9-2a946a29ae09",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Microsoft Edge"})})]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"4. Third-party cookies"}),c.jsx("p",{children:"Some pages may embed content from third-party services (e.g. maps). These services may set their own cookies. We have no control over third-party cookies. Please refer to the respective providers' cookie policies for more information."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"5. Changes to this policy"}),c.jsx("p",{children:'We may update this cookie policy from time to time. Changes will be reflected in the "Last updated" date at the top of this page.'})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-heading font-semibold mt-8 mb-3",children:"6. Further information"}),c.jsxs("p",{children:["For more details about how we handle your data, see our ",c.jsx(xe,{to:"/privacy",className:"text-primary hover:underline",children:"Privacy Policy"}),"."]}),c.jsxs("p",{className:"mt-2",children:["For questions about cookies, contact us at ",c.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"}),"."]})]})]})]})]})}function rK(){const[e,t]=A.useState(""),[n,r]=A.useState(""),{data:i}=He({queryKey:["finder_categories"],queryFn:async()=>{const{data:h}=await Ie.from("product_categories").select("name, slug").order("name");return h||[]}}),{data:s}=He({queryKey:["finder_areas"],queryFn:async()=>{const{data:h}=await Ie.from("areas").select("name, slug").order("name");return h||[]}}),{data:a,isLoading:l}=He({queryKey:["finder_results",e,n],enabled:!!(e||n),queryFn:async()=>{let h=Ie.from("suppliers").select("name, slug, company_status, seo_de
283scription, area_slug, product_categories, certifications").order("name").limit(50);n&&(h=h.eq("area_slug",n)),e&&(h=h.contains("product_categories",[e]));const{data:f}=await h;return f||[]}}),u=e?n?3:2:1;return c.jsxs(_e,{children:[c.jsx(Ye,{title:"Supplier Finder Tool",description:"Find UK engineering component suppliers by product category and location.",canonical:"/tools/supplier-finder"}),c.jsx(St,{items:[{name:"Home",url:"/"},{name:"Supplier Finder",url:"/tools/supplier-finder"}]}),c.jsxs("div",{className:"container-wide py-12",children:[c.jsx("h1",{className:"text-3xl font-heading font-bold mb-2",children:"Supplier Finder"}),c.jsx("p",{className:"text-muted-foreground mb-8",children:"Find UK suppliers by product category and location."}),c.jsx("div",{className:"flex items-center gap-2 mb-8 text-sm",children:[{n:1,label:"Select Product"},{n:2,label:"Select Location"},{n:3,label:"View Results"}].map((h,f)=>c.jsxs("div",{className:"flex items-center gap-2",children:[f>0&&c.jsx(ik,{size:14,className:"text-muted-foreground"}),c.jsxs("span",{className:`px-2.5 py-1 text-xs font-semibold ${u>=h.n?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground"}`,children:[h.n,". ",h.label]})]},h.n))}),c.jsxs("div",{className:"mb-6",children:[c.jsx("label",{className:"block text-sm font-heading font-semibold mb-2",children:"Product Category"}),c.jsxs("select",{value:e,onChange:h=>t(h.target.value),className:"w-full sm:w-80 border border-border bg-card px-4 py-2.5 text-sm text-foreground",children:[c.jsx("option",{value:"",children:"All categories"}),(i||[]).map(h=>c.jsx("option",{value:h.slug||"",children:h.name},h.slug))]})]}),c.jsxs("div",{className:"mb-8",children:[c.jsx("label",{className:"block text-sm font-heading font-semibold mb-2",children:"Location / Area"}),c.jsxs("select",{value:n,onChange:h=>r(h.target.value),className:"w-full sm:w-80 border border-border bg-card px-4 py-2.5 text-sm text-foreground",children:[c.jsx("option",{value:"",children:"All areas"}),(s||[]).map(h=>c.jsx("option",{value:h.slug||"",children:h.name},h.slug))]})]}),(e||n)&&c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center justify-between mb-4",children:[c.jsx("h2",{className:"font-heading font-semibold",children:l?"Searching...":`${(a==null?void 0:a.length)||0} suppliers found`}),e&&n&&c.jsx(xe,{to:`/products/${e}/${n}`,className:"text-sm text-primary hover:underline",children:"View full page â"})]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:(a||[]).map(h=>c.jsxs(xe,{to:`/suppliers/${h.slug}`,className:"border border-border bg-card p-5 hover:border-primary transition-colors group",children:[c.jsx("h3",{className:"font-heading font-semibold group-hover:text-primary text-sm",children:h.name}),h.company_status&&c.jsx("span",{className:`text-[10px] font-semibold px-1.5 py-0.5 mt-1 inline-block ${h.company_status==="Active"?"bg-trust text-trust-foreground":"bg-muted text-muted-foreground"}`,children:h.company_status}),h.seo_description&&c.jsx("p",{className:"text-xs text-muted-foreground mt-2 line-clamp-2",children:h.seo_description}),h.certifications&&h.certifications.length>0&&c.jsx("div",{className:"flex flex-wrap gap-1 mt-2",children:h.certifications.slice(0,3).map(f=>c.jsx("span",{className:"text-[10px] bg-muted text-muted-foreground px-1.5 py-0.5",children:f},f))})]},h.slug))})]}),!e&&!n&&c.jsx("div",{className:"border border-border bg-muted/50 p-8 text-center text-sm text-muted-foreground",children:"Select a product category or area to find matching suppliers."})]})]})}function iK(){const[e,t]=A.useState(""),{data:n}=He({queryKey:["standards_lookup",e],enabled:e.length>=2,queryFn:async()=>{const r=`%${e}%`,{data:i}=await Ie.from("standards").select("name, slug, standard_number, issuing_body, applies_to, seo_description").or(`standard_number.ilike.${r},name.ilike.${r}`).limit(20);return i||[]}});return c.jsxs(_e,{children:[c.jsx(Ye,{title:"Standards Quick Reference",description:"Look up ISO, BS, and DIN standards for engineering components.",canonical:"/tools/standards-lookup"}),c.jsx(St,{items:[{name:"Home",url:"/"},{name:"Standards Lookup",url:"/tools/standards-lookup"}]}),c.jsxs("div",{className:"container-wide py-12",children:[c.jsx("h1",{className:"text-3xl font-heading font-bold mb-2",children:"Standards Quick Reference"}),c.jsx("p",{className:"text-muted-foreground mb-8",children:'Search by standard number (e.g. "ISO 4032", "BS EN 10269") or name.'}),c.jsxs("div",{className:"relative max-w-lg mb-8",children:[c.jsx(ml,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",size:18}
283),c.jsx("input",{type:"text",value:e,onChange:r=>t(r.target.value),placeholder:"Search standards...",className:"w-full pl-10 pr-4 py-3 border border-border bg-card text-foreground text-sm focus:outline-none focus:ring-2 focus:ring-primary"})]}),n&&n.length>0&&c.jsx("div",{className:"space-y-4",children:n.map(r=>c.jsxs(xe,{to:`/standards/${r.slug}`,className:"block border border-border bg-card p-5 hover:border-primary transition-colors group",children:[c.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[r.standard_number&&c.jsx("span",{className:"text-sm font-mono text-primary font-semibold",children:r.standard_number}),r.issuing_body&&c.jsx("span",{className:"text-xs bg-muted text-muted-foreground px-2 py-0.5",children:r.issuing_body})]}),c.jsx("h2",{className:"font-heading font-semibold mt-1 group-hover:text-primary",children:r.name}),r.seo_description&&c.jsx("p",{className:"text-sm text-muted-foreground mt-1 line-clamp-2",children:r.seo_description}),r.applies_to&&r.applies_to.length>0&&c.jsxs("div",{className:"flex flex-wrap gap-1 mt-2",children:[c.jsx("span",{className:"text-xs text-muted-foreground",children:"Applies to:"}),r.applies_to.map(i=>c.jsx("span",{className:"text-xs bg-accent text-accent-foreground px-1.5 py-0.5",children:i},i))]})]},r.slug))}),e.length>=2&&n&&n.length===0&&c.jsxs("p",{className:"text-sm text-muted-foreground text-center py-8",children:['No standards foun
283d matching "',e,'".']}),e.length<2&&c.jsx("div",{className:"border border-border bg-muted/50 p-8 text-center text-sm text-muted-foreground",children:"Type at least 2 characters to search standards."})]})]})}function sK(){return c.jsxs(_e,{children:[c.jsx(Ye,{title:"Seals & O-Rings â UK mechanical seals and FFKM O-ring directory",description:"Independent UK directory for mechanical seals and FFKM/Kalrez O-rings. Browse manufacturer references, compare grades and get a UK quote within 1 working day.",canonical:"/seals-orings"}),c.jsx(St,{items:[{name:"Home",url:"/"},{name:"Seals & O-Rings",url:"/seals-orings"}]}),c.jsx(Fr,{title:"Seals & O-Rings",subtitle:"Two specialist verticals â pick the one that matches your application.",backgroundImage:rp}),c.jsxs("div",{className:"container-wide py-12",children:[c.jsx(kt,{items:[{name:"Home",href:"/"},{name:"Seals & O-Rings",href:"/seals-orings"}]}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mt-6",children:[c.jsxs(xe,{to:"/mechanical-seals",className:"border border-border bg-card p-6 hover:border-primary transition-colors group",children:[c.jsx("h2",{className:"font-heading font-bold text-xl text-foreground group-hover:text-primary mb-2",children:"Mechanical Seals â"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"Cartridge, component and API-style seals. John Crane, AESSEAL, Flowserve, EagleBurgmann and more â plus BS EN 12756 and API 682 references."})]}),c.jsxs(xe,{to:"/o-rings",className:"border border-border bg-card p-6 hover:border-primary transition-colors group",children:[c.jsx("h2",{className:"font-heading font-bold text-xl text-foreground group-hover:text-primary mb-2",children:"FFKM / Kalrez O-Rings â"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"Perfluoroelastomer compounds â Kalrez, Chemraz, Perlast, Markez, Isolast. Reference pages and cross-brand comparisons."})]})]}),c.jsxs("section",{className:"mt-12","aria-labelledby":"cross-ref-heading",children:[c.jsx("h2",{id:"cross-ref-heading",className:"font-heading font-bold text-2xl text-foreground mb-3",children:"Coming soon â Cross-Reference Tools"}),c.jsx("p",{className:"text-foreground/80 mb-5",children:"Type any seal model and get equivalents across all brands â launching shortly."}),c.jsxs("div",{className:"border border-dashed border-border bg-muted/30 p-6 opacity-70",children:[c.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"In the meantime, browse:"}),c.jsxs("div",{className:"flex flex-wrap gap-4",children:[c.jsx(xe,{to:"/guides?category=ffkm-comparison",className:"text-sm font-semibold text-primary hover:underline",children:"FFKM cross-reference â"}),c.jsx(xe,{to:"/guides?category=seal-manufacturer",className:"text-sm font-semibold text-primary hover:underline",children:"Seal manufacturer pages â"})]})]})]})]})]})}function jA({items:e}){return e.length?c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:e.map(t=>c.jsxs(xe,{to:`/guides/${t.slug}`,className:"border border-border bg-card p-5 hover:border-primary transition-colors group",children:[c.jsx("h3",{className:"font-heading font-semibold text-foreground group-hover:text-primary",children:t.title}),t.meta_description&&c.jsx("p",{className:"text-sm text-muted-foreground mt-1 line-clamp-2",children:t.meta_description})]},t.slug))}):c.jsx("p",{className:"text-sm text-muted-foreground",children:"Coming soon."})}function oK(){const{data:e}=He({queryKey:["guides","seal-manufacturer"],queryFn:async()=>{const{data:t}=await Ie.from("guides").select("slug, title, meta_description").eq("is_published",!0).eq("noindex",!1).eq("category","seal-manufacturer").order("title");return t||[]}});return c.jsxs(_e,{children:[c.jsx(Ye,{title:"Mechanical Seals â UK manufacturers, suppliers & references",description:"Independent UK directory of mechanical seal manufacturers â John Crane, AESSEAL, Flowserve, EagleBurgmann and more. Cartridge, component and API-style seals, plus a UK quote within 1 working day.",canonical:"/mechanical-seals"}),c.jsx(St,{items:[{name:"Home",url:"/"},{name:"Seals & O-Rings",url:"/seals-orings"},{name:"Mechanical Seals",url:"/mechanical-seals"}]}),c.jsx(Fr,{title:"Mechanical Seals",subtitle:"Cartridge, component and API-style mechanical seals â independent brand-by-brand references and UK supply.",backgroundImage:rp}),c.jsxs("div",{className:"container-wide py-12",children:[c.jsx(kt,{items:[{name:"Home",href:"/"},{name:"Seals & O-Rings",href:"/seals-orings"},{name:"Mechanical Seals",href:"/mechanical-seals"}]}),c.jsx("section",{className:"mt-6 max-w-3xl",children:c.jsx("p",{className:"text-foreground
283/80",children:"Browse impartial reference pages for the global mechanical seal manufacturers, the relevant UK and international standards, and request a quote from an independent UK specialist."})}),c.jsxs("section",{className:"mt-10","aria-labelledby":"mfrs",children:[c.jsx("h2",{id:"mfrs",className:"font-heading font-bold text-2xl text-foreground mb-4",children:"Manufacturer reference pages"}),c.jsx(jA,{items:e||[]})]}),c.jsxs("section",{className:"mt-10","aria-labelledby":"related",children:[c.jsx("h2",{id:"related",className:"font-heading font-bold text-2xl text-foreground mb-4",children:"Suppliers & standards"}),c.jsxs("ul",{className:"space-y-2",children:[c.jsx("li",{children:c.jsx(xe,{to:"/products/mechanical-seals",className:"text-sm font-semibold text-primary hover:underline",children:"Browse mechanical seal suppliers â"})}),c.jsx("li",{children:c.jsx(xe,{to:"/standards/bs-en-12756",className:"text-sm font-semibold text-primary hover:underline",children:"BS EN 12756 â dimensions for mechanical seals â"})}),c.jsx("li",{children:c.jsx(xe,{to:"/standards/api-682",className:"text-sm font-semibold text-primary hover:underline",children:"API 682 â pumps, shaft sealing systems â"})})]})]}),c.jsx(Fb,{productType:"mechanical_seal",pageType:"mechanical-seals-hub",pageSlug:"mechanical-seals",heading:"Get a quotation for an equivalent mechanical seal"}),c.jsx(Ub,{variant:"mechanical-seal"})]})]})}function aK(){const{data:e}=He({queryKey:["guides","ffkm-compound"],queryFn:async()=>{const{data:t}=await Ie.from("guides").select("slug, title, meta_description").eq("is_published",!0).eq("noindex",!1).eq("category","ffkm-compound").order("title");return t||[]}});return c.jsxs(_e,{children:[c.jsx(Ye,{title:"FFKM / Kalrez O-Rings â UK compound directory & cross-reference",description:"Independent UK reference for FFKM perfluoroelastomer O-rings â Kalrez, Chemraz, Perlast, Markez, Isolast and more. Compare grades, find equivalents and s
283ource UK stock.",canonical:"/o-rings"}),c.jsx(St,{items:[{name:"Home",url:"/"},{name:"Seals & O-Rings",url:"/seals-orings"},{name:"O-Rings",url:"/o-rings"}]}),c.jsx(Fr,{title:"FFKM / Kalrez O-Rings",subtitle:"Perfluoroelastomer O-rings â Kalrez, Chemraz, Perlast, Markez, Isolast. Compare grades and source UK stock.",backgroundImage:rp}),c.jsxs("div",{className:"container-wide py-12",children:[c.jsx(kt,{items:[{name:"Home",href:"/"},{name:"Seals & O-Rings",href:"/seals-orings"},{name:"O-Rings",href:"/o-rings"}]}),c.jsx("section",{className:"mt-6 max-w-3xl",children:c.jsx("p",{className:"text-foreground/80",children:"FFKM (perfluoroelastomer) compounds offer the broadest chemical resistance and highest temperature ceiling of any O-ring elastomer. Use the references below to identify the right grade for your application or find a cross-brand equivalent."})}),c.jsxs("section",{className:"mt-10","aria-labelledby":"compounds",children:[c.jsx("h2",{id:"compounds",className:"font-heading font-bold text-2xl text-foreground mb-4",children:"FFKM compound reference pages"}),c.jsx(jA,{items:e||[]})]}),c.jsxs("section",{className:"mt-10","aria-labelledby":"cross-ref",children:[c.jsx("h2",{id:"cross-ref",className:"font-heading font-bold text-2xl text-foreground mb-4",children:"Cross-reference & comparison"}),c.jsx("ul",{className:"space-y-2",children:c.jsx("li",{children:c.jsx(xe,{to:"/guides?category=ffkm-comparison",className:"text-sm font-semibold text-primary hover:underline",children:"FFKM cross-reference comparisons â"})})})]}),c.jsx(Fb,{productType:"ffkm_oring",pageType:"o-rings-hub",pageSlug:"o-rings",heading:"Get a quotation for an equivalent FFKM O-ring"}),c.jsx(Ub,{variant:"ffkm"})]})]})}const Um="mlc_cookie_consent";function lK(){const[e,t]=A.useState(!1);A.useEffect(()=>{if(!localStorage.getItem(Um)){const s=setTimeout(()=>t(!0),1e3);return()=>clearTimeout(s)}},[]);const n=()=>{localStorage.setItem(Um,"accepted"),t(!1)},r=()=>{localStorage.setItem(Um,"declined"),t(!1)};return e?c.jsx("div",{className:"fixed bottom-0 left-0 right-0 z-[100] bg-secondary border-t border-border shadow-lg",children:c.jsxs("div",{className:"container-wide py-4 flex flex-col sm:flex-row items-start sm:items-center gap-3 sm:gap-4",children:[c.jsxs("div",{className:"flex-1 text-sm text-secondary-foreground",children:["We use cookies to ensure the site functions correctly and to understand how you use it. See our ",c.jsx(xe,{to:"/cookies",className:"text-primary hover:underline",children:"Cookie Policy"})," for details."]}),c.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[c.jsx("button",{onClick:r,className:"text-sm px-4 py-2 border border-border bg-card text-foreground hover:bg-muted transition-colors",children:"Decline"}),c.jsx("button",{onClick:n,className:"text-sm px-4 py-2 bg-primary text-primary-foreground font-semibold hover:opacity-90 transition-opacity",children:"Accept All"})]})]})}):null}const uK=()=>{const{pathname:e}=Ln();return A.useEffect(()=>{window.scrollTo({top:0,left:0})},[e]),null};function cK(){const e=Ln();A.useEffect(()=>{typeof window>"u"||typeof window.gtag=="function"&&window.gtag("event","page_view",{page_path:e.pathname+e.search,page_location:window.location.href,page_title:document.title,send_to:"G-1E26RMVJ59"})},[e.pathname,e.search])}const dK=new OO;function hK(){return cK(),c.jsxs(c.Fragment,{children:[c.jsx(uK,{}),c.jsxs(ML,{children:[c.jsx(Ke,{path:"/",element:c.jsx(Y8,{})}),c.jsx(Ke,{path:"/products",element:c.jsx(yV,{})}),c.jsx(Ke,{path:"/products/:slug",element:c.jsx(bV,{})}),c.jsx(Ke,{path:"/products/:categorySlug/:areaSlug",element:c.jsx(YV,{})}),c.jsx(Ke,{path:"/suppliers",element:c.jsx(EV,{})}),c.jsx(Ke,{path:"/suppliers/:slug",element:c.jsx(wV,{})}),c.jsx(Ke,{path:"/areas",element:c.jsx(NV,{})}),c.jsx(Ke,{path:"/areas/:slug",element:c.jsx(PV,{})}),c.jsx(Ke,{path:"/guides",element:c.jsx(LV,{})}),c.jsx(Ke,{path:"/guides/:slug",element:c.jsx(RV,{})}),c.jsx(Ke,{path:"/standards",element:c.jsx(DV,{})}),c.jsx(Ke,{path:"/standards/:slug",element:c.jsx(MV,{})}),c.jsx(Ke,{path:"/glossary",element:c.jsx(FV,{})}),c.jsx(Ke,{path:"/glossary/:slug",element:c.jsx(UV,{})}),c.jsx(Ke,{path:"/trade-bodies",element:c.jsx(zV,{})}),c.jsx(Ke,{path:"/trade-bodies/:slug",element:c.jsx($V,{})}),c.jsx(Ke,{path:"/news",element:c.jsx(VV,{})}),c.jsx(Ke,{path:"/news/:slug",element:c.jsx(KV,{})}),c.jsx(Ke,{path:"/contributors/:slug",element:c.jsx(GV,{})}),c.jsx(Ke,{path:"/about",element:c.jsx(QV,{})}),c.jsx(Ke,{path:"/editorial-methodology",element:c.jsx(ZV,{})}),c.jsx(Ke,{path:"/contact",element:c.jsx(XV,{})}),c.jsx(Ke,{path:"/privacy",element:c.jsx(JV,{})}),c.jsx(Ke,{path:"/disclaimer",element:c.jsx(eK,{})}),c.jsx(Ke,{path:"/terms",element:c.jsx(tK,{})}),c.jsx(Ke,{path:"/cookies",element:c.jsx(nK,{})}),c.jsx(Ke,{path:"/tools/supplier-finder",element:c.jsx(rK,{})}),c.jsx(Ke,{path:"/tools/standards-lookup",element:c.jsx(iK,{})}),c.jsx(Ke,{path:"/seals-orings",element:c.jsx(sK,{})}),c.jsx(Ke,{path:"/mechanical-seals",element:c.jsx(oK,{})}),c.jsx(Ke,{path:"/o-rings",element:c.jsx(aK,{})}),c.jsx(Ke,{path:"*",element:c.jsx(Z8,{})})]}),c.jsx(lK,{})]})}const fK=()=>c.jsx(eC,{children:c.jsx(MO,{client:dK,children:c.jsxs(d6,{children:[c.jsx(Tj,{}),c.jsx(AR,{}),c.jsx(WL,{children:c.jsx(hK,{})})]})})});iS(document.getElementById("root")).render(c.jsx(fK,{}));
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.