vendor: 28,723 bytes, lines 1-10
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/taquito-beacon-wallet.es6-B8_oul8V.js","assets/taquito.es6-DBx45n6_.js"])))=>i.map(i=>d[i]); 2function jK(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(n,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>n[s]})}}}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 s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(s){if(s.ep)return;s.ep=!0;const i=r(s);fetch(s.href,i)}})();var Rm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function c3e(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){var s=!1;try{s=this instanceof n}catch{}return s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),r}var O2={exports:{}},Hp={};/** 3 * @license React 4 * react-jsx-runtime.production.js 5 * 6 * Copyright (c) Meta Platforms, Inc. and affiliates. 7 * 8 * This source code is licensed under the MIT license found in the 9 * LICENSE file in the root directory of this source tree. 10 */var r8;function wK(){if(r8)return Hp;r8=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,s,i){var o=null;if(i!==void 0&&(o=""+i),s.key!==void 0&&(o=""+s.key),"key"in s){i={};for(var l in s)l!=="key"&&(i[l]=s[l])}else i=s;return s=i.ref,{$$typeof:e,type:n,key:o,ref:s!==void 0?s:null,props:i}}return Hp.Fragment=t,Hp.jsx=r,Hp.jsxs=r,Hp}var n8;function kK(){return n8||(n8=1,O2.exports=wK()),O2.exports}var a=kK(),gc=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(){}},PK={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},TK=class{#t=PK;#e=!1;setTimeoutProvider(e){this.#t=e}setTimeout(e,t){return this.#t.setTimeout(e,t)}clearTimeout(e){this.#t.clearTimeout(e)}setInterval(e,t){return this.#t.setInterval(e,t)}clearInterval(e){this.#t.clearInterval(e)}},Ml=new TK;function AK(e){setTimeout(e,0)}var Yl=typeof window>"u"||"Deno"in globalThis;function Vr(){}function zK(e,t){return typeof e=="function"?e(t):e}function nP(e){return typeof e=="number"&&e>=0&&e!==1/0}function EB(e,t){return Math.max(e+(t||0)-Date.now(),0)}function wo(e,t){return typeof e=="function"?e(t):e}function da(e,t){return typeof e=="function"?e(t):e}function a8(e,t){const{type:r="all",exact:n,fetchStatus:s,predicate:i,queryKey:o,stale:l}=e;if(o){if(n){if(t.queryHash!==B4(o,t.options))return!1}else if(!$g(t.queryKey,o))return!1}if(r!=="all"){const d=t.isActive();if(r==="active"&&!d||r==="inactive"&&d)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||s&&s!==t.state.fetchStatus||i&&!i(t))}function s8(e,t){const{exact:r,status:n,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(Oo(t.options.mutationKey)!==Oo(i))return!1}else if(!$g(t.options.mutationKey,i))return!1}return!(n&&t.state.status!==n||s&&!s(t))}function B4(e,t){return(t?.queryKeyHashFn||Oo)(e)}function Oo(e){return JSON.stringify(e,(t,r)=>aP(r)?Object.keys(r).sort().reduce((n,s)=>(n[s]=r[s],n),{}):r)}function $g(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>$g(e[r],t[r])):!1}var CK=Object.prototype.hasOwnProperty;function L4(e,t){if(e===t)return e;const r=i8(e)&&i8(t);if(!r&&!(aP(e)&&aP(t)))return t;const s=(r?e:Object.keys(e)).length,i=r?t:Object.keys(t),o=i.length,l=r?new Array(o):{};let d=0;for(let u=0;u<o;u++){const g=r?u:i[u],f=e[g],m=t[g];if(f===m){l[g]=f,(r?u<s:CK.call(e,g))&&d++;continue}if(f===null||m===null||typeof f!="object"||typeof m!="object"){l[g]=m;continue}const y=L4(f,m);l[g]=y,y===f&&d++}return s===o&&d===s?e:l}function Fg(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function i8(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function aP(e){if(!o8(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!o8(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function o8(e){return Object.prototype.toString.call(e)==="[object Object]"}function EK(e){return new Promise(t=>{Ml.setTimeout(t,e)})}function sP(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?L4(e,t):t}function OK(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function MK(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Wn=Symbol();function OB(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Wn?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function MB(e,t){return typeof e=="function"?e(...t):!!e}var NK=class extends gc{#t;#e;#r;constructor(){super(),this.#r=e=>{if(!Yl&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#r=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},W4=new NK;function iP(){let e,t;const r=new Promise((s,i)=>{e=s,t=i});r.status="pending",r.catch(()=>{});function n(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{n({status:"fulfilled",value:s}),e(s)},r.reject=s=>{n({status:"rejected",reason:s}),t(s)},r}var RK=AK;function DK(){let e=[],t=0,r=l=>{l()},n=l=>{l()},s=RK;const i=l=>{t?e.push(l):s(()=>{r(l)})},o=()=>{const l=e;e=[],l.length&&s(()=>{n(()=>{l.forEach(d=>{r(d)})})})};return{batch:l=>{let d;t++;try{d=l()}finally{t--,t||o()}return d},batchCalls:l=>(...d)=>{i(()=>{l(...d)})},schedule:i,setNotifyFunction:l=>{r=l},setBatchNotifyFunction:l=>{n=l},setScheduler:l=>{s=l}}}var Gt=DK(),_K=class extends gc{#t=!0;#e;#r;constructor(){super(),this.#r=e=>{if(!Yl&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#e||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#r=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(r=>{r(e)}))}isOnline(){return this.#t}},Yx=new _K;function IK(e){return Math.min(1e3*2**e,3e4)}function NB(e){return(e??"online")==="online"?Yx.isOnline():!0}var oP=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function RB(e){let t=!1,r=0,n;const s=iP(),i=()=>s.status!=="pending",o=b=>{if(!i()){const v=new oP(b);m(v),e.onCancel?.(v)}},l=()=>{t=!0},d=()=>{t=!1},u=()=>W4.isFocused()&&(e.networkMode==="always"||Yx.isOnline())&&e.canRun(),g=()=>NB(e.networkMode)&&e.canRun(),f=b=>{i()||(n?.(),s.resolve(b))},m=b=>{i()||(n?.(),s.reject(b))},y=()=>new Promise(b=>{n=v=>{(i()||u())&&b(v)},e.onPause?.()}).then(()=>{n=void 0,i()||e.onContinue?.()}),S=()=>{if(i())return;let b;const v=r===0?e.initialPromise:void 0;try{b=v??e.fn()}catch(j){b=Promise.reject(j)}Promise.resolve(b).then(f).catch(j=>{if(i())return;const k=e.retry??(Yl?0:3),P=e.retryDelay??IK,O=typeof P=="function"?P(r,j):P,T=k===!0||typeof k=="number"&&r<k||typeof k=="function"&&k(r,j);if(t||!T){m(j);return}r++,e.onFail?.(r,j),EK(O).then(()=>u()?void 0:y()).then(()=>{t?m(j):S()})})};return{promise:s,status:()=>s.status,cancel:o,continue:()=>(n?.(),s),cancelRetry:l,continueRetry:d,canStart:g,start:()=>(g()?S():y().then(S),s)}}var DB=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),nP(this.gcTime)&&(this.#t=Ml.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Yl?1/0:300*1e3))}clearGcTimeout(){this.#t&&(Ml.clearTimeout(this.#t),this.#t=void 0)}},BK=class extends DB{#t;#e;#r;#a;#n;#s;#o;constructor(e){super(),this.#o=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#r=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=l8(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(e){if(this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=l8(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,t){const r=sP(this.state.data,e,this.options);return this.#i({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#n?.promise;return this.#n?.cancel(e),t?t.then(Vr).catch(Vr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>da(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Wn||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>wo(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!EB(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#n&&(this.#o?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#n?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(e&&this.setOptions(e),!this.options.queryFn){const l=this.observers.find(d=>d.options.queryFn);l&&this.setOptions(l.options)}const r=new AbortController,n=l=>{Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(this.#o=!0,r.signal)})},s=()=>{const l=OB(this.options,t),u=(()=>{const g={client:this.#a,queryKey:this.queryKey,meta:this.meta};return n(g),g})();return this.#o=!1,this.options.persister?this.options.persister(l,u,this):l(u)},o=(()=>{const l={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:s};return n(l),l})();this.options.behavior?.onFetch(o,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#i({type:"fetch",meta:o.fetchOptions?.meta}),this.#n=RB({initialPromise:t?.initialPromise,fn:o.fetchFn,onCancel:l=>{l instanceof oP&&l.revert&&this.setState({...this.#e,fetchStatus:"idle"}),r.abort()},onFail:(l,d)=>{this.#i({type:"failed",failureCount:l,error:d})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{const l=await this.#n.start();if(l===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(l),this.#r.config.onSuccess?.(l,this),this.#r.config.onSettled?.(l,this.state.error,this),l}catch(l){if(l instanceof oP){if(l.silent)return this.#n.promise;if(l.revert){if(this.state.data===void 0)throw l;return this.state.data}}throw this.#i({type:"error",error:l}),this.#r.config.onError?.(l,this),this.#r.config.onSettled?.(this.state.data,l,this),l}finally{this.scheduleGc()}}#i(e){const t=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,..._B(r.data,this.options),fetchMeta:e.meta??null};case"success":const n={...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=e.manual?n:void 0,n;case"error":const s=e.error;return{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=t(this.state),Gt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function _B(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:NB(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function l8(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Vf=class extends gc{constructor(e,t){super(),this.options=t,this.#t=e,this.#i=null,this.#o=iP(),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#r=void 0;#a=void 0;#n;#s;#o;#i;#g;#u;#p;#c;#d;#l;#h=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),c8(this.#e,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return lP(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return lP(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#v(),this.#S(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,r=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof da(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#j(),this.#e.setOptions(this.options),t._defaulted&&!Fg(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const n=this.hasListeners();n&&d8(this.#e,r,this.options,t)&&this.#f(),this.updateResult(),n&&(this.#e!==r||da(this.options.enabled,this.#e)!==da(t.enabled,this.#e)||wo(this.options.staleTime,this.#e)!==wo(t.staleTime,this.#e))&&this.#m();const s=this.#x();n&&(this.#e!==r||da(this.options.enabled,this.#e)!==da(t.enabled,this.#e)||s!==this.#l)&&this.#y(s)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),r=this.createResult(t,e);return WK(this,r)&&(this.#a=r,this.#s=this.options,this.#n=this.#e.state),r}getCurrentResult(){return this.#a}trackResult(e,t){return new Proxy(e,{get:(r,n)=>(this.trackProp(n),t?.(n),n==="promise"&&!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,n))})}trackProp(e){this.#h.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),r=this.#t.getQueryCache().build(this.#t,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#f(e){this.#j();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Vr)),t}#m(){this.#v();const e=wo(this.options.staleTime,this.#e);if(Yl||this.#a.isStale||!nP(e))return;const r=EB(this.#a.dataUpdatedAt,e)+1;this.#c=Ml.setTimeout(()=>{this.#a.isStale||this.updateResult()},r)}#x(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(e){this.#S(),this.#l=e,!(Yl||da(this.options.enabled,this.#e)===!1||!nP(this.#l)||this.#l===0)&&(this.#d=Ml.setInterval(()=>{(this.options.refetchIntervalInBackground||W4.isFocused())&&this.#f()},this.#l))}#b(){this.#m(),this.#y(this.#x())}#v(){this.#c&&(Ml.clearTimeout(this.#c),this.#c=void 0)}#S(){this.#d&&(Ml.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){const r=this.#e,n=this.options,s=this.#a,i=this.#n,o=this.#s,d=e!==r?e.state:this.#r,{state:u}=e;let g={...u},f=!1,m;if(t._optimisticResults){const N=this.hasListeners(),M=!N&&c8(e,t),B=N&&d8(e,r,t,n);(M||B)&&(g={...g,..._B(u.data,e.options)}),t._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:y,errorUpdatedAt:S,status:b}=g;m=g.data;let v=!1;if(t.placeholderData!==void 0&&m===void 0&&b==="pending"){let N;s?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(N=s.data,v=!0):N=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,N!==void 0&&(b="success",m=sP(s?.data,N,t),f=!0)}if(t.select&&m!==void 0&&!v)if(s&&m===i?.data&&t.select===this.#g)m=this.#u;else try{this.#g=t.select,m=t.select(m),m=sP(s?.data,m,t),this.#u=m,this.#i=null}catch(N){this.#i=N}this.#i&&(y=this.#i,m=this.#u,S=Date.now(),b="error");const j=g.fetchStatus==="fetching",k=b==="pending",P=b==="error",O=k&&j,T=m!==void 0,A={status:b,fetchStatus:g.fetchStatus,isPending:k,isSuccess:b==="success",isError:P,isInitialLoading:O,isLoading:O,data:m,dataUpdatedAt:g.dataUpdatedAt,error:y,errorUpdatedAt:S,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>d.dataUpdateCount||g.errorUpdateCount>d.errorUpdateCount,isFetching:j,isRefetching:j&&!k,isLoadingError:P&&!T,isPaused:g.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:P&&T,isStale:$4(e,t),refetch:this.refetch,promise:this.#o,isEnabled:da(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const N=R=>{A.status==="error"?R.reject(A.error):A.data!==void 0&&R.resolve(A.data)},M=()=>{const R=this.#o=A.promise=iP();N(R)},B=this.#o;switch(B.status){case"pending":e.queryHash===r.queryHash&&N(B);break;case"fulfilled":(A.status==="error"||A.data!==B.value)&&M();break;case"rejected":(A.status!=="error"||A.error!==B.reason)&&M();break}}return A}updateResult(){const e=this.#a,t=this.createResult(this.#e,this.options);if(this.#n=this.#e.state,this.#s=this.options,this.#n.data!==void 0&&(this.#p=this.#e),Fg(t,e))return;this.#a=t;const r=()=>{if(!e)return!0;const{notifyOnChangeProps:n}=this.options,s=typeof n=="function"?n():n;if(s==="all"||!s&&!this.#h.size)return!0;const i=new Set(s??this.#h);return this.options.throwOnError&&i.add("error"),Object.keys(this.#a).some(o=>{const l=o;return this.#a[l]!==e[l]&&i.has(l)})};this.#w({listeners:r()})}#j(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#r=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#w(e){Gt.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#a)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function LK(e,t){return da(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function c8(e,t){return LK(e,t)||e.state.data!==void 0&&lP(e,t,t.refetchOnMount)}function lP(e,t,r){if(da(t.enabled,e)!==!1&&wo(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&$4(e,t)}return!1}function d8(e,t,r,n){return(e!==t||da(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&$4(e,r)}function $4(e,t){return da(t.enabled,e)!==!1&&e.isStaleByTime(wo(t.staleTime,e))}function WK(e,t){return!Fg(e.getCurrentResult(),t)}function Zx(e){return{onFetch:(t,r)=>{const n=t.options,s=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],o=t.state.data?.pageParams||[];let l={pages:[],pageParams:[]},d=0;const u=async()=>{let g=!1;const f=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},m=OB(t.options,t.fetchOptions),y=async(S,b,v)=>{if(g)return Promise.reject();if(b==null&&S.pages.length)return Promise.resolve(S);const k=(()=>{const C={client:t.client,queryKey:t.queryKey,pageParam:b,direction:v?"backward":"forward",meta:t.options.meta};return f(C),C})(),P=await m(k),{maxPages:O}=t.options,T=v?MK:OK;return{pages:T(S.pages,P,O),pageParams:T(S.pageParams,b,O)}};if(s&&i.length){const S=s==="backward",b=S?IB:cP,v={pages:i,pageParams:o},j=b(n,v);l=await y(v,j,S)}else{const S=e??i.length;do{const b=d===0?o[0]??n.initialPageParam:cP(n,l);if(d>0&&b==null)break;l=await y(l,b),d++}while(d<S)}return l};t.options.persister?t.fetchFn=()=>t.options.persister?.(u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=u}}}function cP(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function IB(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}function $K(e,t){return t?cP(e,t)!=null:!1}function FK(e,t){return!t||!e.getPreviousPageParam?!1:IB(e,t)!=null}var BB=class extends Vf{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:Zx()})}getOptimisticResult(e){return e.behavior=Zx(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:r}=e,n=super.createResult(e,t),{isFetching:s,isRefetching:i,isError:o,isRefetchError:l}=n,d=r.fetchMeta?.fetchMore?.direction,u=o&&d==="forward",g=s&&d==="forward",f=o&&d==="backward",m=s&&d==="backward";return{...n,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:$K(t,r.data),hasPreviousPage:FK(t,r.data),isFetchNextPageError:u,isFetchingNextPage:g,isFetchPreviousPageError:f,isFetchingPreviousPage:m,isRefetchError:l&&!u&&!f,isRefetching:i&&!g&&!m}}},HK=class extends DB{#t;#e;#r;#a;constructor(e){super(),this.#t=e.client,this.mutationId=e.mutationId,this.#r=e.mutationCache,this.#e=[],this.state=e.state||LB(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#r.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#r.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#n({type:"continue"})},r={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=RB({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(i,o)=>{this.#n({type:"failed",failureCount:i,error:o})},onPause:()=>{this.#n({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#r.canRun(this)});const n=this.state.status==="pending",s=!this.#a.canStart();try{if(n)t();else{this.#n({type:"pending",variables:e,isPaused:s}),await this.#r.config.onMutate?.(e,this,r);const o=await this.options.onMutate?.(e,r);o!==this.state.context&&this.#n({type:"pending",context:o,variables:e,isPaused:s})}const i=await this.#a.start();return await this.#r.config.onSuccess?.(i,e,this.state.context,this,r),await this.options.onSuccess?.(i,e,this.state.context,r),await this.#r.config.onSettled?.(i,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(i,null,e,this.state.context,r),this.#n({type:"success",data:i}),i}catch(i){try{throw await this.#r.config.onError?.(i,e,this.state.context,this,r),await this.options.onError?.(i,e,this.state.context,r),await this.#r.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(void 0,i,e,this.state.context,r),i}finally{this.#n({type:"error",error:i})}}finally{this.#r.runNext(this)}}#n(e){const t=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Gt.batch(()=>{this.#e.forEach(r=>{r.onMutationUpdate(e)}),this.#r.notify({mutation:this,type:"updated",action:e})})}};function LB(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var qK=class extends gc{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#r=0}#t;#e;#r;build(e,t,r){const n=new HK({client:e,mutationCache:this,mutationId:++this.#r,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#t.add(e);const t=Dm(e);if(typeof t=="string"){const r=this.#e.get(t);r?r.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=Dm(e);if(typeof t=="string"){const r=this.#e.get(t);if(r)if(r.length>1){const n=r.indexOf(e);n!==-1&&r.splice(n,1)}else r[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Dm(e);if(typeof t=="string"){const n=this.#e.get(t)?.find(s=>
10s.state.status==="pending");return!n||n===e}else return!0}runNext(e){const t=Dm(e);return typeof t=="string"?this.#e.get(t)?.find(n=>n!==e&&n.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Gt.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(r=>s8(t,r))}findAll(e={}){return this.getAll().filter(t=>s8(e,t))}notify(e){Gt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Gt.batch(()=>Promise.all(e.map(t=>t.continue().catch(Vr))))}};function Dm(e){return e.options.scope?.id}var UK=class extends gc{#t;#e=void 0;#r;#a;constructor(t,r){super(),this.#t=t,this.setOptions(r),this.bindMethods(),this.#n()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const r=this.options;this.options=this.#t.defaultMutationOptions(t),Fg(this.options,r)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#r,observer:this}),r?.mutationKey&&this.options.mutationKey&&Oo(r.mutationKey)!==Oo(this.options.mutationKey)?this.reset():this.#r?.state.status==="pending"&&this.#r.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#r?.removeObserver(this)}onMutationUpdate(t){this.#n(),this.#s(t)}getCurrentResult(){return this.#e}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#n(),this.#s()}mutate(t,r){return this.#a=r,this.#r?.removeObserver(this),this.#r=this.#t.getMutationCache().build(this.#t,this.options),this.#r.addObserver(this),this.#r.execute(t)}#n(){const t=this.#r?.state??LB();this.#e={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#s(t){Gt.batch(()=>{if(this.#a&&this.hasListeners()){const r=this.#e.variables,n=this.#e.context,s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#a.onSuccess?.(t.data,r,n,s),this.#a.onSettled?.(t.data,null,r,n,s)):t?.type==="error"&&(this.#a.onError?.(t.error,r,n,s),this.#a.onSettled?.(void 0,t.error,r,n,s))}this.listeners.forEach(r=>{r(this.#e)})})}};function u8(e,t){const r=new Set(t);return e.filter(n=>!r.has(n))}function GK(e,t,r){const n=e.slice(0);return n[t]=r,n}var VK=class extends gc{#t;#e;#r;#a;#n;#s;#o;#i;#g=[];constructor(e,t,r){super(),this.#t=e,this.#a=r,this.#r=[],this.#n=[],this.#e=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#n.forEach(e=>{e.subscribe(t=>{this.#d(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#n.forEach(e=>{e.destroy()})}setQueries(e,t){this.#r=e,this.#a=t,Gt.batch(()=>{const r=this.#n,n=this.#c(this.#r);this.#g=n,n.forEach(g=>g.observer.setOptions(g.defaultedQueryOptions));const s=n.map(g=>g.observer),i=s.map(g=>g.getCurrentResult()),o=r.length!==s.length,l=s.some((g,f)=>g!==r[f]),d=o||l,u=d?!0:i.some((g,f)=>{const m=this.#e[f];return!m||!Fg(g,m)});!d&&!u||(d&&(this.#n=s),this.#e=i,this.hasListeners()&&(d&&(u8(r,s).forEach(g=>{g.destroy()}),u8(s,r).forEach(g=>{g.subscribe(f=>{this.#d(g,f)})})),this.#l()))})}getCurrentResult(){return this.#e}getQueries(){return this.#n.map(e=>e.getCurrentQuery())}getObservers(){return this.#n}getOptimisticResult(e,t){const r=this.#c(e),n=r.map(s=>s.observer.getOptimisticResult(s.defaultedQueryOptions));return[n,s=>this.#p(s??n,t),()=>this.#u(n,r)]}#u(e,t){return t.map((r,n)=>{const s=e[n];return r.defaultedQueryOptions.notifyOnChangeProps?s:r.observer.trackResult(s,i=>{t.forEach(o=>{o.observer.trackProp(i)})})})}#p(e,t){return t?((!this.#s||this.#e!==this.#i||t!==this.#o)&&(this.#o=t,this.#i=this.#e,this.#s=L4(this.#s,t(e))),this.#s):e}#c(e){const t=new Map(this.#n.map(n=>[n.options.queryHash,n])),r=[];return e.forEach(n=>{const s=this.#t.defaultQueryOptions(n),i=t.get(s.queryHash);i?r.push({defaultedQueryOptions:s,observer:i}):r.push({defaultedQueryOptions:s,observer:new Vf(this.#t,s)})}),r}#d(e,t){const r=this.#n.indexOf(e);r!==-1&&(this.#e=GK(this.#e,r,t),this.#l())}#l(){if(this.hasListeners()){const e=this.#s,t=this.#u(this.#e,this.#g),r=this.#p(t,this.#a?.combine);e!==r&&Gt.batch(()=>
vendor: 5,170 bytes, line 10
10{this.listeners.forEach(n=>{n(this.#e)})})}}},XK=class extends gc{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,r){const n=t.queryKey,s=t.queryHash??B4(n,t);let i=this.get(s);return i||(i=new BK({client:e,queryKey:n,queryHash:s,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(i)),i}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Gt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(r=>a8(t,r))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(r=>a8(e,r)):t}notify(e){Gt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Gt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Gt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},KK=class{#t;#e;#r;#a;#n;#s;#o;#i;constructor(e={}){this.#t=e.queryCache||new XK,this.#e=e.mutationCache||new qK,this.#r=e.defaultOptions||{},this.#a=new Map,this.#n=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#o=W4.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=Yx.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#o?.(),this.#o=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#t.build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(wo(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=this.#t.get(n.queryHash)?.state.data,o=zK(t,i);if(o!==void 0)return this.#t.build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return Gt.batch(()=>this.#t.findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;Gt.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=this.#t;return Gt.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=Gt.batch(()=>this.#t.findAll(e).map(s=>s.cancel(r)));return Promise.all(n).then(Vr).catch(Vr)}invalidateQueries(e,t={}){return Gt.batch(()=>(this.#t.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=Gt.batch(()=>this.#t.findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,r);return r.throwOnError||(i=i.catch(Vr)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(n).then(Vr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=this.#t.build(this,t);return r.isStaleByTime(wo(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Vr).catch(Vr)}fetchInfiniteQuery(e){return e.behavior=Zx(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Vr).catch(Vr)}ensureInfiniteQueryData(e){return e.behavior=Zx(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Yx.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#r}setDefaultOptions(e){this.#r=e}setQueryDefaults(e,t){this.#a.set(Oo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#a.values()],r={};return t.forEach(n=>{$g(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){this.#n.set(Oo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#n.values()],r={};return t.forEach(n=>{$g(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#r.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=B4(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===Wn&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#r.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},M2={exports:{}};
10function QK(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var WB={exports:{}},Zt=WB.exports={},ds,us;function dP(){throw new Error("setTimeout has not been defined")}function uP(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?ds=setTimeout:ds=dP}catch{ds=dP}try{typeof clearTimeout=="function"?us=clearTimeout:us=uP}catch{us=uP}})();function $B(e){if(ds===setTimeout)return setTimeout(e,0);if((ds===dP||!ds)&&setTimeout)return ds=setTimeout,setTimeout(e,0);try{return ds(e,0)}catch{try{return ds.call(null,e,0)}catch{return ds.call(this,e,0)}}}function YK(e){if(us===clearTimeout)return clearTimeout(e);if((us===uP||!us)&&clearTimeout)return us=clearTimeout,clearTimeout(e);try{return us(e)}catch{try{return us.call(null,e)}catch{return us.call(this,e)}}}var ai=[],Ld=!1,Nl,_x=-1;function ZK(){!Ld||!Nl||(Ld=!1,Nl.length?ai=Nl.concat(ai):_x=-1,ai.length&&FB())}function FB(){if(!Ld){var e=$B(ZK);Ld=!0;for(var t=ai.length;t;){for(Nl=ai,ai=[];++_x<t;)Nl&&Nl[_x].run();_x=-1,t=ai.length}Nl=null,Ld=!1,YK(e)}}Zt.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];ai.push(new HB(e,t)),ai.length===1&&!Ld&&$B(FB)};function HB(e,t){this.fun=e,this.array=t}HB.prototype.run=function(){this.fun.apply(null,this.array)};Zt.title="browser";Zt.browser=!0;Zt.env={};Zt.argv=[];Zt.version="";Zt.versions={};function wi(){}Zt.on=wi;Zt.addListener=wi;Zt.once=wi;Zt.off=wi;Zt.removeListener=wi;Zt.removeAllListeners=wi;Zt.emit=wi;Zt.prependListener=wi;Zt.prependOnceListener=wi;Zt.listeners=function(e){return[]};Zt.binding=function(e){throw new Error("process.binding is not supported")};Zt.cwd=function(){return"/"};Zt.chdir=function(e){throw new Error("process.chdir is not supported")};Zt.umask=function(){return 0};var JK=WB.exports;const Wd=QK(JK);var qe={},p8;function eQ(){if(p8)return qe;p8=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),m=Symbol.iterator;function y(H){return H===null||typeof H!="object"?null:(H=m&&H[m]||H["@@iterator"],typeof H=="function"?H:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,v={};function j(H,K,Q){this.props=H,this.context=K,this.refs=v,this.updater=Q||S}j.prototype.isReactComponent={},j.prototype.setState=function(H,K){if(typeof H!="object"&&typeof H!="function"&&H!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,H,K,"setState")},j.prototype.forceUpdate=function(H){this.updater.enqueueForceUpdate(this,H,"forceUpdate")};function k(){}k.prototype=j.prototype;function P(H,K,Q){this.props=H,this.context=K,this.refs=v,this.updater=Q||S}var O=P.prototype=new k;O.constructor=P,b(O,j.prototype),O.isPureReactComponent=!0;var T=Array.isArray;function C(){}var A={H:null,A:null,T:null,S:null},N=Object.prototype.hasOwnProperty;function M(H,K,Q){var re=Q.ref;return{$$typeof:e,type:H,key:K,ref:re!==void 0?re:null,props:Q}}function B(H,K){return M(H.type,K,H.props)}function R(H){return typeof H=="object"&&H!==null&&H.$$typeof===e}function _(H){var K={"=":"=0",":":"=2"};return"$"+H.replace(/[=:]/g,function(Q){return K[Q]})}var W=/\/+/g;function V(H,K){return typeof H=="object"&&H!==null&&H.key!=null?_(""+H.key):K.toString(36)}function F(H){switch(H.status){case"fulfilled":return H.value;case"rejected":throw H.reason;default:switch(typeof H.status=="string"?H.then(C,C):(H.status="pending",H.then(function(K){H.status==="pending"&&(H.status="fulfilled",H.value=K)},function(K){H.status==="pending"&&(H.status="rejected",H.reason=K)})),H.status){case"fulfilled":return H.value;case"rejected":throw H.reason}}throw H}function I(H,K,Q,re,ue){var xe=typeof H;
vendor: 5,953 bytes, line 10
10(xe==="undefined"||xe==="boolean")&&(H=null);var Se=!1;if(H===null)Se=!0;else switch(xe){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(H.$$typeof){case e:case t:Se=!0;break;case g:return Se=H._init,I(Se(H._payload),K,Q,re,ue)}}if(Se)return ue=ue(H),Se=re===""?"."+V(H,0):re,T(ue)?(Q="",Se!=null&&(Q=Se.replace(W,"$&/")+"/"),I(ue,K,Q,"",function(Oe){return Oe})):ue!=null&&(R(ue)&&(ue=B(ue,Q+(ue.key==null||H&&H.key===ue.key?"":(""+ue.key).replace(W,"$&/")+"/")+Se)),K.push(ue)),1;Se=0;var ze=re===""?".":re+":";if(T(H))for(var fe=0;fe<H.length;fe++)re=H[fe],xe=ze+V(re,fe),Se+=I(re,K,Q,xe,ue);else if(fe=y(H),typeof fe=="function")for(H=fe.call(H),fe=0;!(re=H.next()).done;)re=re.value,xe=ze+V(re,fe++),Se+=I(re,K,Q,xe,ue);else if(xe==="object"){if(typeof H.then=="function")return I(F(H),K,Q,re,ue);throw K=String(H),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(H).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return Se}function U(H,K,Q){if(H==null)return H;var re=[],ue=0;return I(H,re,"","",function(xe){return K.call(Q,xe,ue++)}),re}function q(H){if(H._status===-1){var K=H._result;K=K(),K.then(function(Q){(H._status===0||H._status===-1)&&(H._status=1,H._result=Q)},function(Q){(H._status===0||H._status===-1)&&(H._status=2,H._result=Q)}),H._status===-1&&(H._status=0,H._result=K)}if(H._status===1)return H._result.default;throw H._result}var Z=typeof reportError=="function"?reportError:function(H){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof H=="object"&&H!==null&&typeof H.message=="string"?String(H.message):String(H),error:H});if(!window.dispatchEvent(K))return}else if(typeof Wd=="object"&&typeof Wd.emit=="function"){Wd.emit("uncaughtException",H);return}console.error(H)},le={map:U,forEach:function(H,K,Q){U(H,function(){K.apply(this,arguments)},Q)},count:function(H){var K=0;return U(H,function(){K++}),K},toArray:function(H){return U(H,function(K){return K})||[]},only:function(H){if(!R(H))throw Error("React.Children.only expected to receive a single React element child.");return H}};return qe.Activity=f,qe.Children=le,qe.Component=j,qe.Fragment=r,qe.Profiler=s,qe.PureComponent=P,qe.StrictMode=n,qe.Suspense=d,qe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A,qe.__COMPILER_RUNTIME={__proto__:null,c:function(H){return A.H.useMemoCache(H)}},qe.cache=function(H){return function(){return H.apply(null,arguments)}},qe.cacheSignal=function(){return null},qe.cloneElement=function(H,K,Q){if(H==null)throw Error("The argument must be a React element, but you passed "+H+".");var re=b({},H.props),ue=H.key;if(K!=null)for(xe in K.key!==void 0&&(ue=""+K.key),K)!N.call(K,xe)||xe==="key"||xe==="__self"||xe==="__source"||xe==="ref"&&K.ref===void 0||(re[xe]=K[xe]);var xe=arguments.length-2;if(xe===1)re.children=Q;else if(1<xe){for(var Se=Array(xe),ze=0;ze<xe;ze++)Se[ze]=arguments[ze+2];re.children=Se}return M(H.type,ue,re)},qe.createContext=function(H){return H={$$typeof:o,_currentValue:H,_currentValue2:H,_threadCount:0,Provider:null,Consumer:null},H.Provider=H,H.Consumer={$$typeof:i,_context:H},H},qe.createElement=function(H,K,Q){var re,ue={},xe=null;if(K!=null)for(re in K.key!==void 0&&(xe=""+K.key),K)N.call(K,re)&&re!=="key"&&re!=="__self"&&re!=="__source"&&(ue[re]=K[re]);var Se=arguments.length-2;if(Se===1)ue.children=Q;else if(1<Se){for(var ze=Array(Se),fe=0;fe<Se;fe++)ze[fe]=arguments[fe+2];ue.children=ze}if(H&&H.defaultProps)for(re in Se=H.defaultProps,Se)ue[re]===void 0&&(ue[re]=Se[re]);return M(H,xe,ue)},qe.createRef=function(){return{current:null}},qe.forwardRef=function(H){return{$$typeof:l,render:H}},qe.isValidElement=R,qe.lazy=function(H){return{$$typeof:g,_payload:{_status:-1,_result:H},_init:q}},qe.memo=function(H,K){return{$$typeof:u,type:H,compare:K===void 0?null:K}},qe.startTransition=function(H){var K=A.T,Q={};A.T=Q;try{var re=H(),ue=A.S;ue!==null&&ue(Q,re),typeof re=="object"&&re!==null&&typeof re.then=="function"&&re.then(C,Z)}catch(xe){Z(xe)}finally{K!==null&&Q.types!==null&&(K.types=Q.types),A.T=K}},qe.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},qe.use=function(H){return A.H.use(H)},qe.useActionState=function(H,K,Q){return A.H.useActionState(H,K,Q)},qe.useCallback=function(H,K){return A.H.useCallback(H,K)},qe.useContext=function(H){return A.H.useContext(H)},qe.useDebugValue=function(){},qe.useDeferredValue=function(H,K){return A.H.useDeferredValue(H,K)},qe.useEffect=function(H,K){return A.H.useEffect(H,K)},qe.useEffectEvent=function(H){return A.H.useEffectEvent(H)},qe.useId=function(){return A.H.useId()},qe.useImperativeHandle=function(H,K,Q){return A.H.useImperativeHandle(H,K,Q)},qe.useInsertionEffect=function(H,K){return A.H.useInsertionEffect(H,K)},qe.useLayoutEffect=function(H,K){return A.H.useLayoutEffect(H,K)},qe.useMemo=function(H,K){return A.H.useMemo(H,K)},qe.useOptimistic=function(H,K){return A.H.useOptimistic(H,K)},qe.useReducer=function(H,K,Q){return A.H.useReducer(H,K,Q)},qe.useRef=function(H){return A.H.useRef(H)},qe.useState=function(H){return A.H.useState(H)},qe.useSyncExternalStore=function(H,K,Q){return A.H.useSyncExternalStore(H,K,Q)},qe.useTransition=function(){return A.H.useTransition()},qe.version="19.2.1",qe}var g8;function Xf(){return g8||(g8=1,M2.exports=eQ()),M2.exports}var E=Xf();const G=jt(E),qB=jK({__proto__:null,default:G},[E]);var UB=E.createContext(void 0),Kf=e=>{const t=E.useContext(UB);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},tQ=({client:e,children:t})=>(E.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),a.jsx(UB.Provider,{value:e,children:t})),GB=E.createContext(!1),VB=()=>E.useContext(GB);GB.Provider;function rQ(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}
10var nQ=E.createContext(rQ()),XB=()=>E.useContext(nQ),KB=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},QB=e=>{E.useEffect(()=>{e.clearReset()},[e])},YB=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(s&&e.data===void 0||MB(r,[e.error,n])),F4=(e,t)=>t.state.data===void 0,ZB=e=>{if(e.suspense){const r=s=>s==="static"?s:Math.max(s??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...s)=>r(n(...s)):r(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},JB=(e,t)=>e.isLoading&&e.isFetching&&!t,pP=(e,t)=>e?.suspense&&t.isPending,Jx=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function eL({queries:e,...t},r){const n=Kf(r),s=VB(),i=XB(),o=E.useMemo(()=>e.map(b=>{const v=n.defaultQueryOptions(b);return v._optimisticResults=s?"isRestoring":"optimistic",v}),[e,n,s]);o.forEach(b=>{ZB(b),KB(b,i)}),QB(i);const[l]=E.useState(()=>new VK(n,o,t)),[d,u,g]=l.getOptimisticResult(o,t.combine),f=!s&&t.subscribed!==!1;E.useSyncExternalStore(E.useCallback(b=>f?l.subscribe(Gt.batchCalls(b)):Vr,[l,f]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),E.useEffect(()=>{l.setQueries(o,t)},[o,t,l]);const y=d.some((b,v)=>pP(o[v],b))?d.flatMap((b,v)=>{const j=o[v];if(j){const k=new Vf(n,j);if(pP(j,b))return Jx(j,k,i);JB(b,s)&&Jx(j,k,i)}return[]}):[];if(y.length>0)throw Promise.all(y);const S=d.find((b,v)=>{const j=o[v];return j&&YB({result:b,errorResetBoundary:i,throwOnError:j.throwOnError,query:n.getQueryCache().get(j.queryHash),suspense:j.suspense})});if(S?.error)throw S.error;return u(g())}function ey(e,t,r){const n=VB(),s=XB(),i=Kf(r),o=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(o),o._optimisticResults=n?"isRestoring":"optimistic",ZB(o),KB(o,s),QB(s);const l=!i.getQueryCache().get(o.queryHash),[d]=E.useState(()=>new t(i,o)),u=d.getOptimisticResult(o),g=!n&&e.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(f=>{const m=g?d.subscribe(Gt.batchCalls(f)):Vr;return d.updateResult(),m},[d,g]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),E.useEffect(()=>{d.setOptions(o)},[o,d]),pP(o,u))throw Jx(o,d,s);if(YB({result:u,errorResetBoundary:s,throwOnError:o.throwOnError,query:i.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw u.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(o,u),o.experimental_prefetchInRender&&!Yl&&JB(u,n)&&(l?Jx(o,d,s):i.getQueryCache().get(o.queryHash)?.promise)?.catch(Vr).finally(()=>{d.updateResult()}),o.notifyOnChangeProps?u:d.trackResult(u)}function aQ(e,t){return ey(e,Vf,t)}function sQ(e,t){return ey({...e,enabled:!0,suspense:!0,throwOnError:F4,placeholderData:void 0},Vf,t)}function iQ(e,t){return ey({...e,enabled:!0,suspense:!0,throwOnError:F4},BB,t)}function oQ(e,t){return eL({...e,queries:e.queries.map(r=>({...r,suspense:!0,throwOnError:F4,enabled:!0,placeholderData:void 0}))},t)}function lQ(e,t){const r=Kf(t);r.getQueryState(e.queryKey)||r.prefetchQuery(e)}function cQ(e,t){const r=Kf(t);r.getQueryState(e.queryKey)||r.prefetchInfiniteQuery(e)}function dQ(e,t){const r=Kf(t),[n]=E.useState(()=>new UK(r,e));E.useEffect(()=>{n.setOptions(e)},[n,e]);const s=E.useSyncExternalStore(E.useCallback(o=>n.subscribe(Gt.batchCalls(o)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),i=E.useCallback((o,l)=>{n.mutate(o,l).catch(Vr)},[n]);if(s.error&&MB(n.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:i,mutateAsync:s.mutate}}function uQ(e,t){return ey(e,BB,t)}function Zl(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}const pQ=typeof Symbol=="function"&&!!Symbol.asyncIterator;function tL(e){return pQ&&Zl(e)&&Symbol.asyncIterator in e}var gQ=Object.create,rL=Object.defineProperty,fQ=Object.getOwnPropertyDescriptor,nL=Object.getOwnPropertyNames,hQ=Object.getPrototypeOf,mQ=Object.prototype.hasOwnProperty,Qf=(e,t)=>function(){return t||(0,e[nL(e)[0]])((t={exports:{}}).exports,t),t.exports},xQ=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var s=nL(t),i=0,o=s.length,l;i<o;i++)l=s[i],!mQ.call(e,l)&&l!==r&&rL(e,l,{get:(d=>
10t[d]).bind(null,l),enumerable:!(n=fQ(t,l))||n.enumerable});return e},ty=(e,t,r)=>(r=e!=null?gQ(hQ(e)):{},xQ(rL(r,"default",{value:e,enumerable:!0}),e));const aL=()=>{},f8=e=>{Object.freeze&&Object.freeze(e)};function sL(e,t,r){var n;const s=t.join(".");return(n=r[s])!==null&&n!==void 0||(r[s]=new Proxy(aL,{get(i,o){if(!(typeof o!="string"||o==="then"))return sL(e,[...t,o],r)},apply(i,o,l){const d=t[t.length-1];let u={args:l,path:t};return d==="call"?u={args:l.length>=2?[l[1]]:[],path:t.slice(0,-1)}:d==="apply"&&(u={args:l.length>=2?l[1]:[],path:t.slice(0,-1)}),f8(u.args),f8(u.path),e(u)}})),r[s]}const ry=e=>sL(e,[],Object.create(null)),H4=e=>new Proxy(aL,{get(t,r){if(r!=="then")return e(r)}});var iL=Qf({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function r(n){"@babel/helpers - typeof";return t.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},t.exports.__esModule=!0,t.exports.default=t.exports,r(n)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),yQ=Qf({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var r=iL().default;function n(s,i){if(r(s)!="object"||!s)return s;var o=s[Symbol.toPrimitive];if(o!==void 0){var l=o.call(s,i||"default");if(r(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(s)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),bQ=Qf({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var r=iL().default,n=yQ();function s(i){var o=n(i,"string");return r(o)=="symbol"?o:o+""}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),oL=Qf({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var r=bQ();function n(s,i,o){return(i=r(i))in s?Object.defineProperty(s,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):s[i]=o,s}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),q4=Qf({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var r=oL();function n(i,o){var l=Object.keys(i);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(i);o&&(d=d.filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable})),l.push.apply(l,d)}return l}function s(i){for(var o=1;o<arguments.length;o++){var l=arguments[o]!=null?arguments[o]:{};o%2?n(Object(l),!0).forEach(function(d){r(i,d,l[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(l)):n(Object(l)).forEac
10h(function(d){Object.defineProperty(i,d,Object.getOwnPropertyDescriptor(l,d))})}return i}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}});ty(q4());ty(oL());var _m=ty(q4());function vQ(e,t){if("error"in e){const n=t.deserialize(e.error);return{ok:!1,error:(0,_m.default)((0,_m.default)({},e),{},{error:n})}}return{ok:!0,result:(0,_m.default)((0,_m.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var N2=class extends Error{constructor(){super("Unable to transform response from server")}};function SQ(e,t){let r;try{r=vQ(e,t)}catch{throw new N2}if(!r.ok&&(!Zl(r.error.error)||typeof r.error.error.code!="number"))throw new N2;if(r.ok&&!Zl(r.result))throw new N2;return r}ty(q4());function ny(e){const t={subscribe(r){let n=null,s=!1,i=!1,o=!1;function l(){if(n===null){o=!0;return}i||(i=!0,typeof n=="function"?n():n&&n.unsubscribe())}return n=e({next(d){var u;s||(u=r.next)===null||u===void 0||u.call(r,d)},error(d){var u;s||(s=!0,(u=r.error)===null||u===void 0||u.call(r,d),l())},complete(){var d;s||(s=!0,(d=r.complete)===null||d===void 0||d.call(r),l())}}),o&&l(),{unsubscribe:l}},pipe(...r){return r.reduce(jQ,t)}};return t}function jQ(e,t){return t(e)}function wQ(e){const t=new AbortController;return new Promise((n,s)=>{let i=!1;function o(){i||(i=!0,l.unsubscribe())}t.signal.addEventListener("abort",()=>{s(t.signal.reason)});const l=e.subscribe({next(d){i=!0,n(d),o()},error(d){s(d)},complete(){t.abort(),o()}})})}var kQ=Object.create,lL=Object.defineProperty,PQ=Object.getOwnPropertyDescriptor,cL=Object.getOwnPropertyNames,TQ=Object.getPrototypeOf,AQ=Object.prototype.hasOwnProperty,Wo=(e,t)=>function(){return t||(0,e[cL(e)[0]])((t={exports:{}}).exports,t),t.exports},zQ=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var s=cL(t),i=0,o=s.length,l;i<o;i++)l=s[i],!AQ.call(e,l)&&l!==r&&lL(e,l,{get:(d=>t[d]).bind(null,l),enumerable:!(n=PQ(t,l))||n.enumerable});return e},fc=(e,t,r)=>(r=e!=null?kQ(TQ(e)):{},zQ(t||!e||!e.__esModule?lL(r,"default",{value:e,enumerable:!0}):r,e)),CQ=Wo({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function r(n,s){if(n==null)return{};var i={};for(var o in n)if({}.hasOwnProperty.call(n,o)){if(s.includes(o))continue;i[o]=n[o]}return i}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),EQ=Wo({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var r=CQ();function n(s,i){if(s==null)return{};var o,l,d=r(s,i);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(s);for(l=0;l<u.length;l++)o=u[l],i.includes(o)||{}.propertyIsEnumerable.call(s,o)&&(d[o]=s[o])}return d}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),dL=Wo({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function r(n){"@babel/helpers - typeof";return t.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},t.exports.__esModule=!0,t.exports.default=t.exports,r(n)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),OQ=Wo({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var r=dL().default;function n(s,i){if(r(s)!="object"||!s)return s;var o=s[Symbol.toPrimitive];if(o!==void 0){var l=o.call(s,i||"default");if(r(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(s)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),MQ=Wo({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var r=dL().default,n=OQ();function s(i){var o=n(i,"string");return r(o)=="symbol"?o:o+""}
10t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),NQ=Wo({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var r=MQ();function n(s,i,o){return(i=r(i))in s?Object.defineProperty(s,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):s[i]=o,s}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Yf=Wo({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var r=NQ();function n(i,o){var l=Object.keys(i);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(i);o&&(d=d.filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable})),l.push.apply(l,d)}return l}function s(i){for(var o=1;o<arguments.length;o++){var l=arguments[o]!=null?arguments[o]:{};o%2?n(Object(l),!0).forEach(function(d){r(i,d,l[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(l)):n(Object(l)).forEach(function(d){Object.defineProperty(i,d,Object.getOwnPropertyDescriptor(l,d))})}return i}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),RQ=fc(EQ(),1),h8=fc(Yf(),1);const DQ=["cursor","direction"];function ps(e,t,r){const n=e.flatMap(s=>s.split("."));if(!t&&(!r||r==="any"))return n.length?[n]:[];if(r==="infinite"&&Zl(t)&&("direction"in t||"cursor"in t)){const{cursor:s,direction:i}=t,o=(0,RQ.default)(t,DQ);return[n,{input:o,type:"infinite"}]}return[n,(0,h8.default)((0,h8.default)({},typeof t<"u"&&t!==Wn&&{input:t}),r&&r!=="any"&&{type:r})]}function Ix(e){return ps(e,void 0,"any")}var _Q=Object.create,uL=Object.defineProperty,IQ=Object.getOwnPropertyDescriptor,pL=Object.getOwnPropertyNames,BQ=Object.getPrototypeOf,LQ=Object.prototype.hasOwnProperty,Ps=(e,t)=>function(){return t||(0,e[pL(e)[0]])((t={exports:{}}).exports,t),t.exports},WQ=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var s=pL(t),i=0,o=s.length,l;i<o;i++)l=s[i],!LQ.call(e,l)&&l!==r&&uL(e,l,{get:(d=>t[d]).bind(null,l),enumerable:!(n=IQ(t,l))||n.enumerable});return e},Jt=(e,t,r)=>(r=e!=null?_Q(BQ(e)):{},WQ(t||!e||!e.__esModule?uL(r,"default",{value:e,enumerable:!0}):r,e)),gL=Ps({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function r(n){"@babel/helpers - typeof";return t.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},t.exports.__esModule=!0,t.exports.default=t.exports,r(n)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),$Q=Ps({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var r=gL().default;function n(s,i){if(r(s)!="object"||!s)return s;var o=s[Symbol.toPrimitive];if(o!==void 0){var l=o.call(s,i||"default");if(r(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(s)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),FQ=Ps({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var r=gL().default,n=$Q();function s(i){var o=n(i,"string");return r(o)=="symbol"?o:o+""}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),hc=Ps({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var r=FQ();function n(s,i,o){return(i=r(i))in s?Object.defineProperty(s,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):s[i]=o,s}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),qa=Ps({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var r=hc();function n(i,o){var l=Object.keys(i);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(i);o&&(d=d.filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable})),l.push.apply(l,d)}return l}function s(i){for(var o=1;o<arguments.length;o++){var l=arguments[o]!=null?arguments[o]:{};
10o%2?n(Object(l),!0).forEach(function(d){r(i,d,l[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(l)):n(Object(l)).forEach(function(d){Object.defineProperty(i,d,Object.getOwnPropertyDescriptor(l,d))})}return i}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}});function HQ(e){return t=>{let r=0,n=null;const s=[];function i(){n||(n=t.subscribe({next(l){for(const u of s){var d;(d=u.next)===null||d===void 0||d.call(u,l)}},error(l){for(const u of s){var d;(d=u.error)===null||d===void 0||d.call(u,l)}},complete(){for(const d of s){var l;(l=d.complete)===null||l===void 0||l.call(d)}}}))}function o(){if(r===0&&n){const l=n;n=null,l.unsubscribe()}}return ny(l=>(r++,s.push(l),i(),{unsubscribe(){r--,o();const d=s.findIndex(u=>u===l);d>-1&&s.splice(d,1)}}))}}function qQ(e){let t=e;const r=[],n=o=>{t!==void 0&&o.next(t),r.push(o)},s=o=>{r.splice(r.indexOf(o),1)},i=ny(o=>(n(o),()=>{s(o)}));return i.next=o=>{if(t!==o){t=o;for(const l of r)l.next(o)}},i.get=()=>t,i}function UQ(e){return ny(t=>{function r(s=0,i=e.op){const o=e.links[s];if(!o)throw new Error("No more links to execute - did you forget to add an ending link?");return o({op:i,next(d){return r(s+1,d)}})}return r().subscribe(t)})}var Im=Jt(hc(),1),xd=Jt(qa(),1);function GQ(e){return e instanceof Yd}function VQ(e){return Zl(e)&&Zl(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function XQ(e,t){return typeof e=="string"?e:Zl(e)&&typeof e.message=="string"?e.message:t}var Yd=class Bx extends Error{constructor(t,r){var n,s;const i=r?.cause;super(t,{cause:i}),(0,Im.default)(this,"cause",void 0),(0,Im.default)(this,"shape",void 0),(0,Im.default)(this,"data",void 0),(0,Im.default)(this,"meta",void 0),this.meta=r?.meta,this.cause=i,this.shape=r==null||(n=r.result)===null||n===void 0?void 0:n.error,this.data=r==null||(s=r.result)===null||s===void 0?void 0:s.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,Bx.prototype)}static from(t,r={}){const n=t;return GQ(n)?(r.meta&&(n.meta=(0,xd.default)((0,xd.default)({},n.meta),r.meta)),n):VQ(n)?new Bx(n.error.message,(0,xd.default)((0,xd.default)({},r),{},{result:n})):new Bx(XQ(n,"Unknown error"),(0,xd.default)((0,xd.default)({},r),{},{cause:n}))}};function KQ(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:r=>r,deserialize:r=>r},output:{serialize:r=>r,deserialize:r=>r}}}const m8=e=>typeof e=="function";function QQ(e){if(e)return e;if(typeof window<"u"&&m8(window.fetch))return window.fetch;if(typeof globalThis<"u"&&m8(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var jg=Jt(qa());function YQ(e){return{url:e.url.toString(),fetch:e.fetch,transformer:KQ(e.transformer),methodOverride:e.methodOverride}}function ZQ(e){const t={};for(let r=0;r<e.length;r++){const n=e[r];t[r]=n}return t}const JQ={query:"GET",mutation:"POST",subscription:"PATCH"};function fL(e){return"input"in e?e.transformer.input.serialize(e.input):ZQ(e.inputs.map(t=>e.transformer.input.serialize(t)))}const hL=e=>{const t=e.url.split("?");let n=t[0].replace(/\/$/,"")+"/"+e.path;const s=[];if(t[1]&&s.push(t[1]),"inputs"in e&&s.push("batch=1"),e.type==="query"||e.type==="subscription"){const i=fL(e);i!==void 0&&e.methodOverride!=="POST"&&s.push(`input=${encodeURIComponent(JSON.stringify(i))}`)}return s.length&&(n+="?"+s.join("&")),n},eY=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=fL(e);return t!==void 0?JSON.stringify(t):void 0},tY=e=>sY((0,jg.default)((0,jg.default)({},e),{},{contentTypeHeader:"application/json",getUrl:hL,getBody:eY}));var rY=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const nY=e=>{var t;if(e?.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new rY};async function aY(e){var t;nY(e.signal);const r=e.getUrl(e),n=e.getBody(e),s=(t=e.methodOverride)!==null&&t!==void 0?t:JQ[e.type],i=await(async()=>{const l=await e.headers();return Symbol.iterator in l?Object.fromEntries(l):l})(),o=(0,jg.default)((0,jg.default)((0,jg.default)({},e.contentTypeHeader&&s!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),i);return QQ(e.fetch)(r,{method:s,signal:e.signal,body:n,headers:o})}async function sY(e){const t={},r=await aY(e);t.response=r;const n=await r.json();return t.responseJSON=n,{json:n,meta:t}}Jt(qa(),1);const x8=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function y8(e){let t=null,r=null;const n=()=>{clearTimeout(r),r=null,t=null};function s(l){const d=[[]];let u=0;for(;;){const m=l[u];if(!m)break;const y=d[d.length-1];if(m.aborted){var g;(g=m.reject)===null||g===void 0||g.call(m,new Error("Aborted")),u++;continue}if(e.validate(y.concat(m).map(b=>b.key))){y.push(m),u++;continue}if(y.length===0){var f;(f=m.reject)===null||f===void 0||f.call(m,new Error("Input is too big for a single dispatch")),u++;continue}d.push([])}return d}function i(){const l=s(t);n();for(const d of l){if(!d.length)continue;const u={items:d};for(const f of d)f.batch=u;e.fetch(u.items.map(f=>f.key)).then(async f=>{await Promise.all(f.map(async(y,S)=>{const b=u.items[S];try{var v;
10const k=await Promise.resolve(y);(v=b.resolve)===null||v===void 0||v.call(b,k)}catch(k){var j;(j=b.reject)===null||j===void 0||j.call(b,k)}b.batch=null,b.reject=null,b.resolve=null}));for(const y of u.items){var m;(m=y.reject)===null||m===void 0||m.call(y,new Error("Missing result")),y.batch=null}}).catch(f=>{for(const y of u.items){var m;(m=y.reject)===null||m===void 0||m.call(y,f),y.batch=null}})}}function o(l){var d;const u={aborted:!1,key:l,batch:null,resolve:x8,reject:x8},g=new Promise((f,m)=>{var y;u.reject=m,u.resolve=f,(y=t)!==null&&y!==void 0||(t=[]),t.push(u)});return(d=r)!==null&&d!==void 0||(r=setTimeout(i)),g}return{load:o}}function iY(...e){const t=new AbortController,r=e.length;let n=0;const s=()=>{++n===r&&t.abort()};for(const i of e)i?.aborted?s():i?.addEventListener("abort",s,{once:!0});return t.signal}var Bm=Jt(qa(),1);function oY(e){var t,r;const n=YQ(e),s=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,i=(r=e.maxItems)!==null&&r!==void 0?r:1/0;return()=>{const o=g=>({validate(f){if(s===1/0&&i===1/0)return!0;if(f.length>i)return!1;const m=f.map(b=>b.path).join(","),y=f.map(b=>b.input);return hL((0,Bm.default)((0,Bm.default)({},n),{},{type:g,path:m,inputs:y,signal:null})).length<=s},async fetch(f){const m=f.map(k=>k.path).join(","),y=f.map(k=>k.input),S=iY(...f.map(k=>k.signal)),b=await tY((0,Bm.default)((0,Bm.default)({},n),{},{path:m,inputs:y,type:g,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:f}):e.headers:{}},signal:S}));return(Array.isArray(b.json)?b.json:f.map(()=>b.json)).map(k=>({meta:b.meta,json:k}))}}),l=y8(o("query")),d=y8(o("mutation")),u={query:l,mutation:d};return({op:g})=>ny(f=>{/* istanbul ignore if -- @preserve */if(g.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const y=u[g.type].load(g);let S;return y.then(b=>{S=b;const v=SQ(b.json,n.transformer.output);if(!v.ok){f.error(Yd.from(v.error,{meta:b.meta}));return}f.next({context:b.meta,result:v.result}),f.complete()}).catch(b=>{f.error(Yd.from(b,{meta:S?.meta}))}),()=>{}})}}Jt(qa(),1);const mL=(e,...t)=>typeof e=="function"?e(...t):e;Jt(hc(),1);function lY(){let e,t;return{promise:new Promise((n,s)=>{e=n,t=s}),resolve:e,reject:t}}async function cY(e){const t=await mL(e.url);if(!e.connectionParams)return t;const n=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+n}async function dY(e){const t={method:"connectionParams",data:await mL(e)};return JSON.stringify(t)}Jt(hc(),1);var Al=Jt(hc(),1);function uY(e){const{promise:t,resolve:r,reject:n}=lY();return e.addEventListener("open",()=>{e.removeEventListener("error",n),r()}),e.addEventListener("error",n),t}function pY(e,{intervalMs:t,pongTimeoutMs:r}){let n,s;function i(){n=setTimeout(()=>{e.send("PING"),s=setTimeout(()=>{e.close()},r)},t)}function o(){clearTimeout(n),i()}function l(){clearTimeout(s),o()}e.addEventListener("open",i),e.addEventListener("message",({data:d})=>{clearTimeout(n),i(),d==="PONG"&&l()}),e.addEventListener("close",()=>{clearTimeout(n),clearTimeout(s)})}var gY=class gP{constructor(t){var r;if((0,Al.default)(this,"id",++gP.connectCount),(0,Al.default)(this,"WebSocketPonyfill",void 0),(0,Al.default)(this,"urlOptions",void 0),(0,Al.default)(this,"keepAliveOpts",void 0),(0,Al.default)(this,"wsObservable",qQ(null)),(0,Al.default)(this,"openPromise",null),this.WebSocketPonyfill=(r=t.WebSocketPonyfill)!==null&&r!==void 0?r:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++gP.connectCount;const r=cY(t.urlOptions).then(n=>new t.WebSocketPonyfill(n));t.openPromise=r.then(async n=>{t.ws=n,n.addEventListener("message",function({data:s}){s==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&pY(n,t.keepAliveOpts),n.addEventListener("close",()=>{t.ws===n&&(t.ws=null)}),await uY(n),t.urlOptions.connectionParams&&n.send(await dY(t.urlOptions.connectionParams))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var r;(r=t.ws)===null||r===void 0||r.close()}}};(0,Al.default)(gY,"connectCount",0);Jt(hc(),1);Jt(qa(),1);var R2=Jt(hc(),1),b8=Jt(qa(),1),ay=class{constructor(e){(0,R2.default)(this,"links",void 0),(0,R2.default)(this,"runtime",void 0),(0,R2.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return UQ({links:this.links,op:(0,b8.default)((0,b8.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(HQ())}async requestAsPromise(e){var t=this;try{const r=t.$request(e);return(await wQ(r)).result.data}catch(r){throw Yd.from(r)}}query(e,t,r){return this.requestAsPromise({type:"query",path:e,input:t,context:r?.context,signal:r?.signal})}mutation(e,t,r){return this.requestAsPromise({type:"mutation",path:e,input:t,context:r?.context,signal:r?.signal})}subscription(e,t,r){return this.$request({type:"subscription",path:e,input:t,context:r.context,signal:r.signal}).subscribe({next(s){switch(s.result.type){case"state":{var i;(i=r.onConnectionStateChange)===null||i===void 0||i.call(r,s.result);break}case"started":{var o;(o=r.onStarted)===null||o===void 0||o.call(r,{context:s.context});break}case"stopped":{var l;(l=r.onStopped)===null||l===void 0||l.call(r);break}case"data":case void 0:{var d;(d=r.onData)===null||d===void 0||d.call(r,s.result.data);break}}},error(s){var i;(i=r.onError)===null||i===void 0||i.call(r,s)},complete(){var s;(s=r.onComplete)===null||s===void 0||s.call(r)}})}};const xL=Symbol.for("trpc_untypedClient"),fY={query:"query",mutate:"mutation",subscribe:"subscription"},hY=e=>fY[e];function yL(e){const t=ry(({path:r,args:n})=>{const s=[...r],i=hY(s.pop()),o=s.join(".");return e[i](o,...n)});return H4(r=>r===xL?e:t[r])}function mY(e){const t=new ay(e);return yL(t)}function U4(e){return e[xL]}Jt(qa(),1);Jt(qa(),1);var xY=Ps({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function r(s){var i,o,l,d=2;for(typeof Symbol<"u"&&(o=Symbol.asyncIterator,l=Symbol.iterator);d--;){if(o&&(i=s[o])!=null)return i.call(s);if(l&&(i=s[l])!=null)return new n(i.call(s));o="@@asyncIterator",l="@@iterator"}throw new TypeError("Object is not async iterable")}function n(s){function i(o){if(Object(o)!==o)return Promise.reject(new TypeError(o+" is not an object."));var l=o.done;return Promise.resolve(o.value).then(function(d){return{value:d,done:l}})}return n=function(l){this.s=l,this.n=l.next},n.prototype={s:null,n:null,next:function(){return i(this.n.apply(this.s,arguments))},return:function(l){var d=this.s.return;return d===void 0?Promise.resolve({value:l,done:!0}):i(d.apply(this.s,arguments))},throw:function(l){var d=this.s.return;return d===void 0?Promise.reject(l):i(d.apply(this.s,arguments))}},new n(s)}
10t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}});Jt(xY(),1);Jt(qa(),1);var yY=Ps({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function r(){var n=typeof SuppressedError=="function"?SuppressedError:function(l,d){var u=Error();return u.name="SuppressedError",u.error=l,u.suppressed=d,u},s={},i=[];function o(l,d){if(d!=null){if(Object(d)!==d)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(l)var u=d[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(u===void 0&&(u=d[Symbol.dispose||Symbol.for("Symbol.dispose")],l))var g=u;if(typeof u!="function")throw new TypeError("Object is not disposable.");g&&(u=function(){try{g.call(d)}catch(m){return Promise.reject(m)}}),i.push({v:d,d:u,a:l})}else l&&i.push({d,a:l});return d}return{e:s,u:o.bind(null,!1),a:o.bind(null,!0),d:function(){var d,u=this.e,g=0;function f(){for(;d=i.pop();)try{if(!d.a&&g===1)return g=0,i.push(d),Promise.resolve().then(f);if(d.d){var y=d.d.call(d.v);if(d.a)return g|=2,Promise.resolve(y).then(f,m)}else g|=1}catch(S){return m(S)}if(g===1)return u!==s?Promise.reject(u):Promise.resolve();if(u!==s)throw u}function m(y){return u=u!==s?new n(y,u):y,f()}return f()}}}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),bL=Ps({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function r(n,s){this.v=n,this.k=s}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),bY=Ps({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var r=bL();function n(s){return new r(s,0)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),vY=Ps({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var r=bL();function n(i){return function(){return new s(i.apply(this,arguments))}}function s(i){var o,l;function d(g,f){try{var m=i[g](f),y=m.value,S=y instanceof r;Promise.resolve(S?y.v:y).then(function(b){if(S){var v=g==="return"?"return":"next";if(!y.k||b.done)return d(v,b);b=i[v](b).value}u(m.done?"return":"normal",b)},function(b){d("throw",b)})}catch(b){u("throw",b)}}function u(g,f){switch(g){case"return":o.resolve({value:f,done:!0});break;case"throw":o.reject(f);break;default:o.resolve({value:f,done:!1})}(o=o.next)?d(o.key,o.arg):l=null}this._invoke=function(g,f){return new Promise(function(m,y){var S={key:g,arg:f,resolve:m,reject:y,next:null};l?l=l.next=S:(o=l=S,d(g,f))})},typeof i.return!="function"&&(this.return=void 0)}s.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},s.prototype.next=function(i){return this._invoke("next",i)},s.prototype.throw=function(i){return this._invoke("throw",i)},s.prototype.return=function(i){return this._invoke("return",i)},t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}});Jt(yY(),1);Jt(bY(),1);Jt(vY(),1);Jt(qa(),1);function SY(e){return ry(({path:t,args:r})=>{var n;const s=[...t],i=s.pop();if(i==="useMutation")return e[i](s,...r);if(i==="_def")return{path:s};const[o,...l]=r,d=(n=l[0])!==null&&n!==void 0?n:{};return e[i](s,o,d)})}var D2;const jY=["client","ssrContext","ssrState","abortOnUnmount"],wY=(D2=E.createContext)===null||D2===void 0?void 0:D2.call(qB,null),kY=e=>{switch(e){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function PY(e){return ry(t=>{const r=[...t.path],n=r.pop(),s=[...t.args],i=s.shift(),o=kY(n),l=ps(r,i,o);return{infiniteQueryOptions:()=>e.infiniteQueryOptions(r,l,s[0]),queryOptions:()=>e.queryOptions(r,l,...s),fetch:()=>e.fetchQuery(l,...s),fetchInfinite:()=>e.fetchInfiniteQuery(l,s[0]),prefetch:()=>e.prefetchQuery(l,...s),prefetchInfinite:()=>e.prefetchInfiniteQuery(l,s[0]),ensureData:()=>e.ensureQueryData(l,...s),invalidate:()=>e.invalidateQueries(l,...s),reset:()=>e.resetQueries(l,...s),refetch:()=>e.refetchQueries(l,...s),cancel:()=>e.cancelQuery(l,...s),setData:()=>{e.setQueryData(l,s[0],s[1])},setQueriesData:()=>e.setQueriesData(l,s[0],s[1],s[2]),setInfiniteData:()=>{e.setInfiniteQueryData(l,s[0],s[1])},getData:()=>e.getQueryData(l),getInfiniteData:()=>e.getInfiniteQueryData(l),setMutationDefaults:()=>e.setMutationDefaults(Ix(r),i),getMutationDefaults:()=>e.getMutationDefaults(Ix(r)),isMutating:()=>e.isMutating({mutationKey:Ix(r)})}[n]()})}function TY(e){const t=yL(e.client),r=PY(e);return H4(n=>{const s=n;return s==="client"?t:jY.includes(s)?e[s]:r[n]})}var AY=fc(Yf(),1);function v8(e){const t=e instanceof ay?e:U4(e);return ry(r=>{const n=r.path,s=n.join("."),[i,o]=r.args;return(0,AY.default)({queryKey:ps(n,i,"query"),queryFn:()=>t.query(s,i,o?.trpc)},o)})}var _2=fc(Yf(),1);function tn(e,t,r){var n;const s=e[0];let i=(n=e[1])===null||n===void 0?void 0:n.input;if(r){var o;i=(0,_2.default)((0,_2.default)((0,_2.default)({},(o=i)!==null&&o!==void 0?o:{}),r.pageParam?{cursor:r.pageParam}:{}),{},{direction:r.direction})}return[s.join("."),i,t?.trpc]}var zY=Wo({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function r(s){var i,o,l,d=2;for(typeof Symbol<"u"&&(o=Symbol.asyncIterator,l=Symbol.iterator);d--;){if(o&&(i=s[o])!=null)return i.call(s);if(l&&(i=s[l])!=null)return new n(i.call(s));o="@@asyncIterator",l="@@iterator"}throw new TypeError("Object is not async iterable")}function n(s){function i(o){if(Object(o)!==o)return Promise.reject(new TypeError(o+" is not an object."));var l=o.done;return Promise.resolve(o.value).then(function(d){return{value:d,done:l}})}return n=function(l){this.s=l,this.n=l.next},n.prototype={s:null,n:null,next:function(){return i(this.n.apply(this.s,arguments))},return:function(l){var d=this.s.return;return d===void 0?Promise.resolve({value:l,done:!0}):i(d.apply(this.s,arguments))},throw:function(l){var d=this.s.return;return d===void 0?Promise.reject(l):i(d.apply(this.s,arguments))}},new n(s)}
10t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),CY=fc(zY(),1);function fP(e){return{path:e.path.join(".")}}function qp(e){const t=fP(e);return E.useMemo(()=>t,[t])}async function vL(e,t,r){const s=t.getQueryCache().build(t,{queryKey:r});s.setState({data:[],status:"success"});const i=[];var o=!1,l=!1,d;try{for(var u=(0,CY.default)(e),g;o=!(g=await u.next()).done;o=!1){const f=g.value;i.push(f),s.setState({data:[...i]})}}catch(f){l=!0,d=f}finally{try{o&&u.return!=null&&await u.return()}finally{if(l)throw d}}return i}var ct=fc(Yf(),1);function EY(e){const{client:t,queryClient:r}=e,n=t instanceof ay?t:U4(t);return{infiniteQueryOptions:(s,i,o)=>{var l,d;const u=((l=i[1])===null||l===void 0?void 0:l.input)===Wn,g=async f=>{var m;const y=(0,ct.default)((0,ct.default)({},o),{},{trpc:(0,ct.default)((0,ct.default)({},o?.trpc),!(o==null||(m=o.trpc)===null||m===void 0)&&m.abortOnUnmount?{signal:f.signal}:{signal:null})});return await n.query(...tn(i,y,{direction:f.direction,pageParam:f.pageParam}))};return Object.assign((0,ct.default)((0,ct.default)({},o),{},{initialData:o?.initialData,queryKey:i,queryFn:u?Wn:g,initialPageParam:(d=o?.initialCursor)!==null&&d!==void 0?d:null}),{trpc:fP({path:s})})},queryOptions:(s,i,o)=>{var l;const d=((l=i[1])===null||l===void 0?void 0:l.input)===Wn,u=async g=>{var f;const m=(0,ct.default)((0,ct.default)({},o),{},{trpc:(0,ct.default)((0,ct.default)({},o?.trpc),!(o==null||(f=o.trpc)===null||f===void 0)&&f.abortOnUnmount?{signal:g.signal}:{signal:null})}),y=await n.query(...tn(i,m));return tL(y)?vL(y,r,i):y};return Object.assign((0,ct.default)((0,ct.default)({},o),{},{initialData:o?.initialData,queryKey:i,queryFn:d?Wn:u}),{trpc:fP({path:s})})},fetchQuery:(s,i)=>r.fetchQuery((0,ct.default)((0,ct.default)({},i),{},{queryKey:s,queryFn:()=>n.query(...tn(s,i))})),fetchInfiniteQuery:(s,i)=>{var o;return r.fetchInfiniteQuery((0,ct.default)((0,ct.default)({},i),{},{queryKey:s,queryFn:({pageParam:l,direction:d})=>n.query(...tn(s,i,{pageParam:l,direction:d})),initialPageParam:(o=i?.initialCursor)!==null&&o!==void 0?o:null}))},prefetchQuery:(s,i)=>r.prefetchQuery((0,ct.default)((0,ct.default)({},i),{},{queryKey:s,queryFn:()=>n.query(...tn(s,i))})),prefetchInfiniteQuery:(s,i)=>{var o;return r.prefetchInfiniteQuery((0,ct.default)((0,ct.default)({},i),{},{queryKey:s,queryFn:({pageParam:l,direction:d})=>n.query(...tn(s,i,{pageParam:l,direction:d})),initialPageParam:(o=i?.initialCursor)!==null&&o!==void 0?o:null}))},ensureQueryData:(s,i)=>r.ensureQueryData((0,ct.default)((0,ct.default)({},i),{},{queryKey:s,queryFn:()=>n.query(...tn(s,i))})),invalidateQueries:(s,i,o)=>r.invalidateQueries((0,ct.default)((0,ct.default)({},i),{},{queryKey:s}),o),resetQueries:(s,i,o)=>r.resetQueries((0,ct.default)((0,ct.default)({},i),{},{queryKey:s}),o),refetchQueries:(s,i,o)=>r.refetchQueries((0,ct.default)((0,ct.default)({},i),{},{queryKey:s}),o),cancelQuery:(s,i)=>r.cancelQueries({queryKey:s},i),setQueryData:(s,i,o)=>r.setQueryData(s,i,o),setQueriesData:(s,i,o,l)=>r.setQueriesData((0,ct.default)((0,ct.default)({},i),{},{queryKey:s}),o,l),getQueryData:s=>r.getQueryData(s),setInfiniteQueryData:(s,i,o)=>r.setQueryData(s,i,o),getInfiniteQueryData:s=>r.getQueryData(s),setMutationDefaults:(s,i)=>{const o=s[0],l=d=>n.mutation(...tn([o,{input:d}],e));return r.setMutationDefaults(s,typeof i=="function"?i({canonicalMutationFn:l}):i)},getMutationDefaults:s=>r.getMutationDefaults(s),isMutating:s=>r.isMutating((0,ct.default)((0,ct.default)({},s),{},{exact:!0}))}}var je=fc(Yf());const S8=(e,t)=>new Proxy(e,{get(n,s){return t(s),n[s]}});function OY(e){var t,r;const n=(t=void 0)!==null&&t!==void 0?t:T=>T.originalFn(),s=(r=void 0)!==null&&r!==void 0?r:wY,i=mY,o=T=>{var C;const{abortOnUnmount:A=!1,queryClient:N,ssrContext:M}=T,[B,R]=E.useState((C=T.ssrState)!==null&&C!==void 0?C:!1),_=T.client instanceof ay?T.client:U4(T.client),W=E.useMemo(()=>EY({client:_,queryClient:N}),[_,N]),V=E.useMemo(()=>(0,je.default)({abortOnUnmount:A,queryClient:N,client:_,ssrContext:M??null,ssrState:B},W),[A,_,W,N,M,B]);return E.useEffect(()=>{R(F=>F?"mounted":!1)},[]),a.jsx(s.Provider,{value:V,children:T.children})};function l(){const T=E.useContext(s);if(!T)throw new Error("Unable to find tRPC Context. Did you forget to wrap your Ap
10p inside `withTRPC` HoC?");return T}function d(T,C){var A;const{queryClient:N,ssrState:M}=l();return M&&M!=="mounted"&&((A=N.getQueryCache().find({queryKey:T}))===null||A===void 0?void 0:A.state.status)==="error"?(0,je.default)({retryOnMount:!1},C):C}function u(T,C,A){var N,M,B,R,_;const W=l(),{abortOnUnmount:V,client:F,ssrState:I,queryClient:U,prefetchQuery:q}=W,Z=ps(T,C,"query"),le=U.getQueryDefaults(Z),H=C===Wn;typeof window>"u"&&I==="prepass"&&(A==null||(N=A.trpc)===null||N===void 0?void 0:N.ssr)!==!1&&((M=A?.enabled)!==null&&M!==void 0?M:le?.enabled)!==!1&&!H&&!U.getQueryCache().find({queryKey:Z})&&q(Z,A);const K=d(Z,(0,je.default)((0,je.default)({},le),A)),Q=(B=(R=A==null||(_=A.trpc)===null||_===void 0?void 0:_.abortOnUnmount)!==null&&R!==void 0?R:void 0)!==null&&B!==void 0?B:V,re=aQ((0,je.default)((0,je.default)({},K),{},{queryKey:Z,queryFn:H?C:async ue=>{const xe=(0,je.default)((0,je.default)({},K),{},{trpc:(0,je.default)((0,je.default)({},K?.trpc),Q?{signal:ue.signal}:{signal:null})}),Se=await F.query(...tn(Z,xe));return tL(Se)?vL(Se,U,Z):Se}}),U);return re.trpc=qp({path:T}),re}function g(T,C,A){var N,M,B;const R=l(),_=ps(T,C,"query"),W=C===Wn,V=(N=(M=A==null||(B=A.trpc)===null||B===void 0?void 0:B.abortOnUnmount)!==null&&M!==void 0?M:void 0)!==null&&N!==void 0?N:R.abortOnUnmount;lQ((0,je.default)((0,je.default)({},A),{},{queryKey:_,queryFn:W?C:F=>{const I={trpc:(0,je.default)((0,je.default)({},A?.trpc),V?{signal:F.signal}:{})};return R.client.query(...tn(_,I))}}))}function f(T,C,A){var N,M,B;const R=l(),_=ps(T,C,"query"),W=(N=(M=A==null||(B=A.trpc)===null||B===void 0?void 0:B.abortOnUnmount)!==null&&M!==void 0?M:void 0)!==null&&N!==void 0?N:R.abortOnUnmount,V=sQ((0,je.default)((0,je.default)({},A),{},{queryKey:_,queryFn:F=>{const I=(0,je.default)((0,je.default)({},A),{},{trpc:(0,je.default)((0,je.default)({},A?.trpc),W?{signal:F.signal}:{signal:null})});return R.client.query(...tn(_,I))}}),R.queryClient);return V.trpc=qp({path:T}),[V.data,V]}function m(T,C){const{client:A,queryClient:N}=l(),M=Ix(T),B=N.defaultMutationOptions(N.getMutationDefaults(M)),R=dQ((0,je.default)((0,je.default)({},C),{},{mutationKey:M,mutationFn:_=>A.mutation(...tn([T,{input:_}],C)),onSuccess(..._){var W,V;return n({originalFn:()=>{var I,U,q;return(I=C==null||(U=C.onSuccess)===null||U===void 0?void 0:U.call(C,..._))!==null&&I!==void 0?I:B==null||(q=B.onSuccess)===null||q===void 0?void 0:q.call(B,..._)},queryClient:N,meta:(W=(V=C?.meta)!==null&&V!==void 0?V:B?.meta)!==null&&W!==void 0?W:{}})}}),N);return R.trpc=qp({path:T}),R}const y={data:void 0,error:null,status:"idle"},S={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function b(T,C,A){var N;const M=(N=A?.enabled)!==null&&N!==void 0?N:C!==Wn,B=Oo(ps(T,C,"any")),{client:R}=l(),_=E.useRef(A);E.useEffect(()=>{_.current=A});const[W]=E.useState(new Set([])),V=E.useCallback(H=>{W.add(H)},[W]),F=E.useRef(null),I=E.useCallback(H=>{const K=q.current,Q=q.current=H(K);let re=!1;for(const ue of W)if(K[ue]!==Q[ue]){re=!0;break}re&&le(S8(Q,V))},[V,W]),U=E.useCallback(()=>{var H;if((H=F.current)===null||H===void 0||H.unsubscribe(),!M){I(()=>(0,je.default)((0,je.default)({},y),{},{reset:U}));return}I(()=>(0,je.default)((0,je.default)({},S),{},{reset:U}));const K=R.subscription(T.join("."),C??void 0,{onStarted:()=>{var Q,re;(Q=(re=_.current).onStarted)===null||Q===void 0||Q.call(re),I(ue=>(0,je.default)((0,je.default)({},ue),{},{status:"pending",error:null}))},onData:Q=>{var re,ue;(re=(ue=_.current).onData)===null||re===void 0||re.call(ue,Q),I(xe=>(0,je.default)((0,je.default)({},xe),{},{status:"pending",data:Q,error:null}))},onError:Q=>{var re,ue;(re=(ue=_.current).onError)===null||re===void 0||re.call(ue,Q),I(xe=>(0,je.default)((0,je.default)({},xe),{},{status:"error",error:Q}))},onConnectionStateChange:Q=>{I(re=>{switch(Q.state){case"idle":return(0,je.default)((0,je.default)({},re),{},{status:Q.state,error:null,data:void 0});case"connecting":return(0,je.default)((0,je.default)({},re),{},{error:Q.error,status:Q.state});case"pending":return re}})},onComplete:()=>{var Q,re;(Q=(re=_.current).onComplete)===null||Q===void 0||Q.call(re),I(ue=>(0,je.default)((0,je.default)({},ue),{},{status:"idle",error:null,data:void 0}))}});F.current=K},[R,B,M,I]);E.useEffect(()=>(U(),()=>{var H;(H=F.current)===null||H===void 0||H.unsubscribe()}),[U]);const q=E.useRef(M?(0,je.default)((0,je.default)({},S),{},{reset:U}):(0,je.default)((0,je.default)({},y),{},{reset:U})),[Z,le]=E.useState(S8(q.current,V));return Z}function v(T,C,A){var N,M,B,R,_;const{client:W,ssrState:V,prefetchInfiniteQuery:F,queryClient:I,abortOnUnmount:U}=l(),q=ps(T,C,"infinite"),Z=I.getQueryDefaults(q),le=C===Wn;typeof window>"u"&&V==="prepass"&&(A==null||(N=A.trpc)===null||N===void 0?void 0:N.ssr)!==!1&&((M=A?.enabled)!==null&&M!==void 0?M:Z?.enabled)!==!1&&!le&&!I.getQueryCache().find({queryKey:q})&&F(q,(0,je.default)((0,je.default)({},Z),A));const H=d(q,(0,je.default)((0,je.default)({},Z),A)),K=(B=A==null||(R=A.trpc)===null||R===void 0?void 0:R.abortOnUnmount)!==null&&B!==void 0?B:U,Q=uQ((0,je.default)((0,je.default)({},H),{},{initialPageParam:(_=A.initialCursor)!==null&&_!==void 0?_:null,persister:A.persister,queryKey:q,queryFn:le?C:re=>{var ue;const xe=(0,je.default)((0,je.default)({},H),{},{trpc:(0,je.default)((0,je.default)({},H?.trpc),K?{signal:re.signal}:{signal:null})});return W.query(...tn(q,xe,{pageParam:(ue=re.pageParam)!==null&&ue!==void 0?ue:A.initialCursor,direction:re.direction}))}}),I);return Q.trpc=qp({path:T}),Q}function j(T,C,A){var N,M,B;const R=l(),_=ps(T,C,"infinite"),W=R.queryClient.getQueryDefaults(_),V=C===Wn,F=d(_,(0,je.default)((0,je.default)({},W),A)),I=(N=A==null||(M=A.trpc)===null||M===void 0?void 0:M.abortOnUnmount)!==null&&N!==void 0?N:R.abortOnUnmount;cQ((0,je.default)((0,je.default)({},A),{},{initialPageParam:(B=A.initialCursor)!==null&&B!==void 0?B:null,queryKey:_,queryFn:V?C:U=>{var q;const Z=(0,je.default)((0,je.default)({},F),{},{trpc:(0,je.default)((0,je.default)({},F?.trpc),I?{signal:U.signal}:{})});return R.client.query(...tn(_,Z,{pageParam:(q=U.pageParam)!==null&&q!==void 0?q:A.initialCursor,direction:U.direction}))}}))}function k(T,C,A){var N,M,B;const R=l(),_=ps(T,C,"infinite"),W=R.queryClient.getQueryDefaults(_),V=d(_,(0,je.default)((0,je.default)({},W),A)),F=(N=A==null||(M=A.trpc)===null||M===void 0?void 0:M.abortOnUnmount)!==null&&N!==void 0?N:R.abortOnUnmount,I=iQ((0,je.default)((0,je.default)({},A),{},{initialPageParam:(B=A.initialCursor)!==null&&B!==void 0?B:null,queryKey:_,queryFn:U=>{var q;const Z=(0,je.default)((0,je.default)({},V),{},{trpc:(0,je.default)((0,je.default)({},V?.trpc),F?{signal:U.signal}:{})});return R.client.query(...tn(_,Z,{pageParam:(q=U.pageParam)!==null&&q!==void 0?q:A.initialCursor,direction:U.direction}))}}),R.queryClient);return I.trpc=qp({path:T}),[I.data,I]}return{Provider:o,createClient:i,useContext:l,useUtils:l,useQuery:u,usePrefetchQuery:g,useSuspenseQuery:f,useQueries:(T,C)=>{const{ssrState:A,queryClient:N,prefetchQuery:M,client:B}=l(),R=v8(B),_=T(R);if(typeof window>"u"&&A==="prepass")for(const V of _){var W;const F=V;((W=F.trpc)===null||W===void 0?void 0:W.ssr)!==!1&&!N.getQueryCache().find({queryKey:F.queryKey})&&M(F.queryKey,F)}return eL({queries:_.map(V=>(0,je.default)((0,je.default)({},V),{},{queryKey:V.queryKey})),combine:C?.combine},N)},useSuspenseQueries:T=>{const{queryClient:C,client:A}=l(),N=v8(A),M=T(N),B=oQ({queries:M.map(R=>(0,je.default)((0,je.default)({},R),{},{queryFn:R.queryFn,queryKey:R.queryKey}))},C);return[B.map(R=>R.data),B]},useMutation:m,useSubscription:b,useInfiniteQuery:v,usePrefetchInfiniteQuery:j,useSuspenseInfiniteQuery:k}}function MY(e){const t=SY(e);return H4(r=>r==="useContext"||r==="useUtils"?()=>{const n=e.useUtils();return E.useMemo(()=>TY(n),[n])}:e.hasOwnProperty(r)?e[r]:t[r])}function NY(e){const t=OY();return MY(t)}const ee=NY(),RY="Please login (10001)";var I2={exports:{}},Up={},B2={exports:{}},L2={};
vendor: 12,685 bytes, lines 10-28
10/** 11 * @license React 12 * scheduler.production.js 13 * 14 * Copyright (c) Meta Platforms, Inc. and affiliates. 15 * 16 * This source code is licensed under the MIT license found in the 17 * LICENSE file in the root directory of this source tree. 18 */var j8;function DY(){return j8||(j8=1,(function(e){function t(I,U){var q=I.length;I.push(U);e:for(;0<q;){var Z=q-1>>>1,le=I[Z];if(0<s(le,U))I[Z]=U,I[q]=le,q=Z;else break e}}function r(I){return I.length===0?null:I[0]}function n(I){if(I.length===0)return null;var U=I[0],q=I.pop();if(q!==U){I[0]=q;e:for(var Z=0,le=I.length,H=le>>>1;Z<H;){var K=2*(Z+1)-1,Q=I[K],re=K+1,ue=I[re];if(0>s(Q,q))re<le&&0>s(ue,Q)?(I[Z]=ue,I[re]=q,Z=re):(I[Z]=Q,I[K]=q,Z=K);else if(re<le&&0>s(ue,q))I[Z]=ue,I[re]=q,Z=re;else break e}}return U}function s(I,U){var q=I.sortIndex-U.sortIndex;return q!==0?q:I.id-U.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var d=[],u=[],g=1,f=null,m=3,y=!1,S=!1,b=!1,v=!1,j=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;function O(I){for(var U=r(u);U!==null;){if(U.callback===null)n(u);else if(U.startTime<=I)n(u),U.sortIndex=U.expirationTime,t(d,U);else break;U=r(u)}}function T(I){if(b=!1,O(I),!S)if(r(d)!==null)S=!0,C||(C=!0,_());else{var U=r(u);U!==null&&F(T,U.startTime-I)}}var C=!1,A=-1,N=5,M=-1;function B(){return v?!0:!(e.unstable_now()-M<N)}function R(){if(v=!1,C){var I=e.unstable_now();M=I;var U=!0;try{e:{S=!1,b&&(b=!1,k(A),A=-1),y=!0;var q=m;try{t:{for(O(I),f=r(d);f!==null&&!(f.expirationTime>I&&B());){var Z=f.callback;if(typeof Z=="function"){f.callback=null,m=f.priorityLevel;var le=Z(f.expirationTime<=I);if(I=e.unstable_now(),typeof le=="function"){f.callback=le,O(I),U=!0;break t}f===r(d)&&n(d),O(I)}else n(d);f=r(d)}if(f!==null)U=!0;else{var H=r(u);H!==null&&F(T,H.startTime-I),U=!1}}break e}finally{f=null,m=q,y=!1}U=void 0}}finally{U?_():C=!1}}}var _;if(typeof P=="function")_=function(){P(R)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,V=W.port2;W.port1.onmessage=R,_=function(){V.postMessage(null)}}else _=function(){j(R,0)};function F(I,U){A=j(function(){I(e.unstable_now())},U)}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(I){I.callback=null},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_next=function(I){switch(m){case 1:case 2:case 3:var U=3;break;default:U=m}var q=m;m=U;try{return I()}finally{m=q}},e.unstable_requestPaint=function(){v=!0},e.unstable_runWithPriority=function(I,U){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var q=m;m=I;try{return U()}finally{m=q}},e.unstable_scheduleCallback=function(I,U,q){var Z=e.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?Z+q:Z):q=Z,I){case 1:var le=-1;break;case 2:le=250;break;case 5:le=1073741823;break;case 4:le=1e4;break;default:le=5e3}return le=q+le,I={id:g++,callback:U,priorityLevel:I,startTime:q,expirationTime:le,sortIndex:-1},q>Z?(I.sortIndex=q,t(u,I),r(d)===null&&I===r(u)&&(b?(k(A),A=-1):b=!0,F(T,q-Z))):(I.sortIndex=le,t(d,I),S||y||(S=!0,C||(C=!0,_()))),I},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(I){var U=m;return function(){var q=m;m=U;try{return I.apply(this,arguments)}finally{m=q}}}})(L2)),L2}var w8;function _Y(){return w8||(w8=1,B2.exports=DY()),B2.exports}var W2={exports:{}},Hr={};/** 19 * @license React 20 * react-dom.production.js 21 * 22 * Copyright (c) Meta Platforms, Inc. and affiliates. 23 * 24 * This source code is licensed under the MIT license found in the 25 * LICENSE file in the root directory of this source tree. 26 */var k8;function IY(){if(k8)return Hr;k8=1;var e=Xf();function t(d){var u="https://react.dev/errors/"+d;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)u+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+d+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function i(d,u,g){var f=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:f==null?null:""+f,children:d,containerInfo:u,implementation:g}}var o=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(d,u){if(d==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}return Hr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,Hr.createPortal=function(d,u){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error(t(299));return i(d,u,null,g)},Hr.flushSync=function(d){var u=o.T,g=n.p;try{if(o.T=null,n.p=2,d)return d()}finally{o.T=u,n.p=g,n.d.f()}},Hr.preconnect=function(d,u){typeof d=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,n.d.C(d,u))},Hr.prefetchDNS=function(d){typeof d=="string"&&n.d.D(d)},Hr.preinit=function(d,u){if(typeof d=="string"&&u&&typeof u.as=="string"){var g=u.as,f=l(g,u.crossOrigin),m=typeof u.integrity=="string"?u.integrity:void 0,y=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;g==="style"?n.d.S(d,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:f,integrity:m,fetchPriority:y}):g==="script"&&n.d.X(d,{crossOrigin:f,integrity:m,fetchPriority:y,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},Hr.preinitModule=function(d,u){if(typeof d=="string")if(typeof u=="object"&&u!==null){if(u.as==null||u.as==="script"){var g=l(u.as,u.crossOrigin);n.d.M(d,{crossOrigin:g,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})}}else u==null&&n.d.M(d)},Hr.preload=function(d,u){if(typeof d=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){var g=u.as,f=l(g,u.crossOrigin);n.d.L(d,g,{crossOrigin:f,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},Hr.preloadModule=function(d,u){if(typeof d=="string")if(u){var g=l(u.as,u.crossOrigin);n.d.m(d,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:g,integrity:typeof u.integrity=="string"?u.integrity:void 0})}else n.d.m(d)},Hr.requestFormReset=function(d){n.d.r(d)},Hr.unstable_batchedUpdates=function(d,u){return d(u)},Hr.useFormState=function(d,u,g){return o.H.useFormState(d,u,g)},Hr.useFormStatus=function(){return o.H.useHostTransitionStatus()},Hr.version="19.2.1",Hr}var P8;function SL(){if(P8)return W2.exports;P8=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),W2.exports=IY(),W2.exports}var T8;function BY(){if(T8)return Up;T8=1;var e=_Y(),t=Xf(),r=SL();function n(c){var p="https://react.dev/errors/"+c;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)p+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+c+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(c){return!(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)}function i(c){var p=c,h=c;if(c.alternate)for(;p.return;)p=p.return;else{c=p;do p=c,(p.flags&4098)!==0&&(h=p.return),c=p.return;while(c)}return p.tag===3?h:null}function o(c){if(c.tag===13){var p=c.memoizedState;if(p===null&&(c=c.alternate,c!==null&&(p=c.memoizedState)),p!==null)return p.dehydrated}return null}function l(c){if(c.tag===31){var p=c.memoizedState;if(p===null&&(c=c.alternate,c!==null&&(p=c.memoizedState)),p!==null)return p.dehydrated}return null}function d(c){if(i(c)!==c)throw Error(n(188))}function u(c){var p=c.alternate;if(!p){if(p=i(c),p===null)throw Error(n(188));return p!==c?null:c}for(var h=c,x=p;;){var w=h.return;if(w===null)break;var z=w.alternate;if(z===null){if(x=w.return,x!==null){h=x;continue}break}if(w.child===z.child){for(z=w.child;z;){if(z===h)return d(w),c;if(z===x)return d(w),p;z=z.sibling}throw Error(n(188))}if(h.return!==x.return)h=w,x=z;else{for(var D=!1,L=w.child;L;){if(L===h){D=!0,h=w,x=z;break}if(L===x){D=!0,x=w,h=z;break}L=L.sibling}if(!D){for(L=z.child;L;){if(L===h){D=!0,h=z,x=w;break}if(L===x){D=!0,x=z,h=w;break}L=L.sibling}if(!D)throw Error(n(189))}}if(h.alternate!==x)throw Error(n(190))}if(h.tag!==3)throw Error(n(188));return h.stateNode.current===h?c:p}function g(c){var p=c.tag;if(p===5||p===26||p===27||p===6)return c;for(c=c.child;c!==null;){if(p=g(c),p!==null)return p;c=c.sibling}return null}var f=Object.assign,m=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),P=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),B=Symbol.for("react.memo_cache_sentinel"),R=Symbol.iterator;function _(c){return c===null||typeof c!="object"?null:(c=R&&c[R]||c["@@iterator"],typeof c=="function"?c:null)}var W=Symbol.for("react.client.reference");function V(c){if(c==null)return null;if(typeof c=="function")return c.$$typeof===W?null:c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case b:return"Fragment";case j:return"Profiler";case v:return"StrictMode";case T:return"Suspense";case C:return"SuspenseList";case M:return"Activity"}if(typeof c=="object")switch(c.$$typeof){case S:return"Portal";case P:return c.displayName||"Context";case k:return(c._context.displayName||"Context")+".Consumer";case O:var p=c.render;return c=c.displayName,c||(c=p.displayName||p.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case A:return p=c.displayName||null,p!==null?p:V(c.type)||"Memo";case N:p=c._payload,c=c._init;try{return V(c(p))}catch{}}return null}var F=Array.isArray,I=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q={pending:!1,data:null,method:null,action:null},Z=[],le=-1;function H(c){return{current:c}}function K(c){0>le||(c.current=Z[le],Z[le]=null,le--)}function Q(c,p){le++,Z[le]=c.current,c.current=p}var re=H(null),ue=H(null),xe=H(null),Se=H(null);function ze(c,p){switch(Q(xe,p),Q(ue,c),Q(re,null),p.nodeType){case 9:case 11:c=(c=p.documentElement)&&(c=c.namespaceURI)?PC(c):0;break;default:if(c=p.tagName,p=p.namespaceURI)p=PC(p),c=TC(p,c);else switch(c){case"svg":c=1;break;case"math":c=2;break;default:c=0}}K(re),Q(re,c)}function fe(){K(re),K(ue),K(xe)}function Oe(c){c.memoizedState!==null&&Q(Se,c);var p=re.current,h=TC(p,c.type);p!==h&&(Q(ue,c),Q(re,h))}function Ne(c){ue.current===c&&(K(re),K(ue)),Se.current===c&&(K(Se),Lp._currentValue=q)}var ge,it;function He(c){if(ge===void 0)try{throw Error()}catch(h){var p=h.stack.trim().match(/\n( *(at )?)/);ge=p&&p[1]||"",it=-1<h.stack.indexOf(` 27 at`)?" (<anonymous>)":-1<h.stack.indexOf("@")?"@unknown:0:0":""}return` 28`+ge+c+it}var zt=!1;function Tt(c,p){if(!c||zt)return"";zt=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var x={DetermineComponentFrameRoot:function(){try{if(p){var pe=function(){throw Error()};if(Object.defineProperty(pe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(pe,[])}catch(ie){var ae=ie}Reflect.construct(c,[],pe)}else{try{pe.call()}catch(ie){ae=ie}c.call(pe.prototype)}}else{try{throw Error()}catch(ie){ae=ie}(pe=c())&&typeof pe.catch=="function"&&pe.catch(function(){})}}
vendor: 10,160 bytes, lines 28-33
28catch(ie){if(ie&&ae&&typeof ie.stack=="string")return[ie.stack,ae.stack]}return[null,null]}};x.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var w=Object.getOwnPropertyDescriptor(x.DetermineComponentFrameRoot,"name");w&&w.configurable&&Object.defineProperty(x.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var z=x.DetermineComponentFrameRoot(),D=z[0],L=z[1];if(D&&L){var X=D.split(` 29`),ne=L.split(` 30`);for(w=x=0;x<X.length&&!X[x].includes("DetermineComponentFrameRoot");)x++;for(;w<ne.length&&!ne[w].includes("DetermineComponentFrameRoot");)w++;if(x===X.length||w===ne.length)for(x=X.length-1,w=ne.length-1;1<=x&&0<=w&&X[x]!==ne[w];)w--;for(;1<=x&&0<=w;x--,w--)if(X[x]!==ne[w]){if(x!==1||w!==1)do if(x--,w--,0>w||X[x]!==ne[w]){var oe=` 31`+X[x].replace(" at new "," at ");return c.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",c.displayName)),oe}while(1<=x&&0<=w);break}}}finally{zt=!1,Error.prepareStackTrace=h}return(h=c?c.displayName||c.name:"")?He(h):""}function Wt(c,p){switch(c.tag){case 26:case 27:case 5:return He(c.type);case 16:return He("Lazy");case 13:return c.child!==p&&p!==null?He("Suspense Fallback"):He("Suspense");case 19:return He("SuspenseList");case 0:case 15:return Tt(c.type,!1);case 11:return Tt(c.type.render,!1);case 1:return Tt(c.type,!0);case 31:return He("Activity");default:return""}}function cn(c){try{var p="",h=null;do p+=Wt(c,h),h=c,c=c.return;while(c);return p}catch(x){return` 32Error generating stack: `+x.message+` 33`+x.stack}}var tr=Object.prototype.hasOwnProperty,Ka=e.unstable_scheduleCallback,zn=e.unstable_cancelCallback,_t=e.unstable_shouldYield,Vn=e.unstable_requestPaint,vr=e.unstable_now,Cc=e.unstable_getCurrentPriorityLevel,Ko=e.unstable_ImmediatePriority,vh=e.unstable_UserBlockingPriority,Qo=e.unstable_NormalPriority,Zu=e.unstable_LowPriority,Cs=e.unstable_IdlePriority,Sh=e.log,Ei=e.unstable_setDisableYieldValue,Yo=null,Zr=null;function Aa(c){if(typeof Sh=="function"&&Ei(c),Zr&&typeof Zr.setStrictMode=="function")try{Zr.setStrictMode(Yo,c)}catch{}}var $r=Math.clz32?Math.clz32:Qa,vb=Math.log,Ju=Math.LN2;function Qa(c){return c>>>=0,c===0?32:31-(vb(c)/Ju|0)|0}var Ec=256,Oc=262144,Zo=4194304;function Ya(c){var p=c&42;if(p!==0)return p;switch(c&-c){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return c&261888;case 262144:case 524288:case 1048576:case 2097152:return c&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return c&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return c}}function Fe(c,p,h){var x=c.pendingLanes;if(x===0)return 0;var w=0,z=c.suspendedLanes,D=c.pingedLanes;c=c.warmLanes;var L=x&134217727;return L!==0?(x=L&~z,x!==0?w=Ya(x):(D&=L,D!==0?w=Ya(D):h||(h=L&~c,h!==0&&(w=Ya(h))))):(L=x&~z,L!==0?w=Ya(L):D!==0?w=Ya(D):h||(h=x&~c,h!==0&&(w=Ya(h)))),w===0?0:p!==0&&p!==w&&(p&z)===0&&(z=w&-w,h=p&-p,z>=h||z===32&&(h&4194048)!==0)?p:w}function Nt(c,p){return(c.pendingLanes&~(c.suspendedLanes&~c.pingedLanes)&p)===0}function Sr(c,p){switch(c){case 1:case 2:case 4:case 8:case 64:return p+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return p+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Fr(){var c=Zo;return Zo<<=1,(Zo&62914560)===0&&(Zo=4194304),c}function Oi(c){for(var p=[],h=0;31>h;h++)p.push(c);return p}function It(c,p){c.pendingLanes|=p,p!==268435456&&(c.suspendedLanes=0,c.pingedLanes=0,c.warmLanes=0)}function dn(c,p,h,x,w,z){var D=c.pendingLanes;c.pendingLanes=h,c.suspendedLanes=0,c.pingedLanes=0,c.warmLanes=0,c.expiredLanes&=h,c.entangledLanes&=h,c.errorRecoveryDisabledLanes&=h,c.shellSuspendCounter=0;var L=c.entanglements,X=c.expirationTimes,ne=c.hiddenUpdates;for(h=D&~h;0<h;){var oe=31-$r(h),pe=1<<oe;L[oe]=0,X[oe]=-1;var ae=ne[oe];if(ae!==null)for(ne[oe]=null,oe=0;oe<ae.length;oe++){var ie=ae[oe];ie!==null&&(ie.lane&=-536870913)}h&=~pe}x!==0&&Jo(c,x,0),z!==0&&w===0&&c.tag!==0&&(c.suspendedLanes|=z&~(D&~p))}function Jo(c,p,h){c.pendingLanes|=p,c.suspendedLanes&=~p;var x=31-$r(p);c.entangledLanes|=p,c.entanglements[x]=c.entanglements[x]|1073741824|h&261930}function un(c,p){var h=c.entangledLanes|=p;for(c=c.entanglements;h;){var x=31-$r(h),w=1<<x;w&p|c[x]&p&&(c[x]|=p),h&=~w}}function pn(c,p){var h=p&-p;return h=(h&42)!==0?1:Mc(h),(h&(c.suspendedLanes|p))!==0?0:h}function Mc(c){switch(c){case 2:c=1;break;case 8:c=4;break;case 32:c=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:c=128;break;case 268435456:c=134217728;break;default:c=0}return c}function za(c){return c&=-c,2<c?8<c?(c&134217727)!==0?32:268435456:8:2}function Sb(){var c=U.p;return c!==0?c:(c=window.event,c===void 0?32:KC(c.type))}function u3(c,p){var h=U.p;try{return U.p=c,p()}finally{U.p=h}}var Mi=Math.random().toString(36).slice(2),Cr="__reactFiber$"+Mi,gn="__reactProps$"+Mi,Nc="__reactContainer$"+Mi,jb="__reactEvents$"+Mi,uV="__reactListeners$"+Mi,pV="__reactHandles$"+Mi,p3="__reactResources$"+Mi,ep="__reactMarker$"+Mi;function wb(c){delete c[Cr],delete c[gn],delete c[jb],delete c[uV],delete c[pV]}function Rc(c){var p=c[Cr];if(p)return p;for(var h=c.parentNode;h;){if(p=h[Nc]||h[Cr]){if(h=p.alternate,p.child!==null||h!==null&&h.child!==null)for(c=NC(c);c!==null;){if(h=c[Cr])return h;c=NC(c)}return p}c=h,h=c.parentNode}return null}function Dc(c){if(c=c[Cr]||c[Nc]){var p=c.tag;if(p===5||p===6||p===13||p===31||p===26||p===27||p===3)return c}return null}function tp(c){var p=c.tag;if(p===5||p===26||p===27||p===6)return c.stateNode;throw Error(n(33))}function _c(c){var p=c[p3];return p||(p=c[p3]={hoistableStyles:new Map,hoistableScripts:new Map}),p}function jr(c){c[ep]=!0}var g3=new Set,f3={};function el(c,p){Ic(c,p),Ic(c+"Capture",p)}function Ic(c,p){for(f3[c]=p,c=0;c<p.length;c++)g3.add(p[c])}var gV=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),h3={},m3={};function fV(c){return tr.call(m3,c)?!0:tr.call(h3,c)?!1:gV.test(c)?m3[c]=!0:(h3[c]=!0,!1)}function jh(c,p,h){if(fV(p))if(h===null)c.removeAttribute(p);else{switch(typeof h){case"undefined":case"function":case"symbol":c.removeAttribute(p);return;case"boolean":var x=p.toLowerCase().slice(0,5);if(x!=="data-"&&x!=="aria-"){c.removeAttribute(p);return}}c.setAttribute(p,""+h)}}function wh(c,p,h){if(h===null)c.removeAttribute(p);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":c.removeAttribute(p);return}c.setAttribute(p,""+h)}}function Es(c,p,h,x){if(x===null)c.removeAttribute(h);else{switch(typeof x){case"undefined":case"function":case"symbol":case"boolean":c.removeAttribute(h);return}c.setAttributeNS(p,h,""+x)}}function Xn(c){switch(typeof c){case"bigint":case"boolean":case"number":case"string":case"undefined":return c;case"object":return c;default:return""}}function x3(c){var p=c.type;return(c=c.nodeName)&&c.toLowerCase()==="input"&&(p==="checkbox"||p==="radio")}function hV(c,p,h){var x=Object.getOwnPropertyDescriptor(c.constructor.prototype,p);if(!c.hasOwnProperty(p)&&typeof x<"u"&&typeof x.get=="function"&&typeof x.set=="function"){var w=x.get,z=x.set;return Object.defineProperty(c,p,{configurable:!0,get:function(){return w.call(this)},set:function(D){h=""+D,z.call(this,D)}}),Object.defineProperty(c,p,{enumerable:x.enumerable}),{getValue:function(){return h},setValue:function(D){h=""+D},stopTracking:function(){c._valueTracker=null,delete c[p]}}}}function kb(c){if(!c._valueTracker){var p=x3(c)?"checked":"value";c._valueTracker=hV(c,p,""+c[p])}}function y3(c){if(!c)return!1;var p=c._valueTracker;if(!p)return!0;var h=p.getValue(),x="";return c&&(x=x3(c)?c.checked?"true":"false":c.value),c=x,c!==h?(p.setValue(c),!0):!1}function kh(c){if(c=c||(typeof document<"u"?document:void 0),typeof c>"u")return null;try{return c.activeElement||c.body}catch{return c.body}}var mV=/[\n"\\]/g;function Kn(c){return c.replace(mV,function(p){return"\\"+p.charCodeAt(0).toString(16)+" "})}function Pb(c,p,h,x,w,z,D,L){c.name="",D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?c.type=D:c.removeAttribute("type"),p!=null?D==="number"?(p===0&&c.value===""||c.value!=p)&&(c.value=""+Xn(p)):c.value!==""+Xn(p)&&(c.value=""+Xn(p)):D!=="submit"&&D!=="reset"||c.removeAttribute("value"),p!=null?Tb(c,D,Xn(p)):h!=null?Tb(c,D,Xn(h)):x!=null&&c.removeAttribute("value"),w==null&&z!=null&&(c.defaultChecked=!!z),w!=null&&(c.checked=w&&typeof w!="function"&&typeof w!="symbol"),L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"?c.name=""+Xn(L):c.removeAttribute("name")}function b3(c,p,h,x,w,z,D,L){if(z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"&&(c.type=z),p!=null||h!=null){if(!(z!=="submit"&&z!=="reset"||p!=null)){kb(c);return}h=h!=null?""+Xn(h):"",p=p!=null?""+Xn(p):h,L||p===c.value||(c.value=p),c.defaultValue=p}x=x??w,x=typeof x!="function"&&typeof x!="symbol"&&!!x,c.checked=L?c.checked:!!x,c.defaultChecked=!!x,D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"&&(c.name=D),kb(c)}function Tb(c,p,h){p==="number"&&kh(c.ownerDocument)===c||c.defaultValue===""+h||(c.defaultValue=""+h)}function Bc(c,p,h,x){if(c=c.options,p){p={};for(var w=0;w<h.length;w++)p["$"+h[w]]=!0;for(h=0;h<c.length;
vendor: 4,861 bytes, line 33
33h++)w=p.hasOwnProperty("$"+c[h].value),c[h].selected!==w&&(c[h].selected=w),w&&x&&(c[h].defaultSelected=!0)}else{for(h=""+Xn(h),p=null,w=0;w<c.length;w++){if(c[w].value===h){c[w].selected=!0,x&&(c[w].defaultSelected=!0);return}p!==null||c[w].disabled||(p=c[w])}p!==null&&(p.selected=!0)}}function v3(c,p,h){if(p!=null&&(p=""+Xn(p),p!==c.value&&(c.value=p),h==null)){c.defaultValue!==p&&(c.defaultValue=p);return}c.defaultValue=h!=null?""+Xn(h):""}function S3(c,p,h,x){if(p==null){if(x!=null){if(h!=null)throw Error(n(92));if(F(x)){if(1<x.length)throw Error(n(93));x=x[0]}h=x}h==null&&(h=""),p=h}h=Xn(p),c.defaultValue=h,x=c.textContent,x===h&&x!==""&&x!==null&&(c.value=x),kb(c)}function Lc(c,p){if(p){var h=c.firstChild;if(h&&h===c.lastChild&&h.nodeType===3){h.nodeValue=p;return}}c.textContent=p}var xV=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function j3(c,p,h){var x=p.indexOf("--")===0;h==null||typeof h=="boolean"||h===""?x?c.setProperty(p,""):p==="float"?c.cssFloat="":c[p]="":x?c.setProperty(p,h):typeof h!="number"||h===0||xV.has(p)?p==="float"?c.cssFloat=h:c[p]=(""+h).trim():c[p]=h+"px"}function w3(c,p,h){if(p!=null&&typeof p!="object")throw Error(n(62));if(c=c.style,h!=null){for(var x in h)!h.hasOwnProperty(x)||p!=null&&p.hasOwnProperty(x)||(x.indexOf("--")===0?c.setProperty(x,""):x==="float"?c.cssFloat="":c[x]="");for(var w in p)x=p[w],p.hasOwnProperty(w)&&h[w]!==x&&j3(c,w,x)}else for(var z in p)p.hasOwnProperty(z)&&j3(c,z,p[z])}function Ab(c){if(c.indexOf("-")===-1)return!1;switch(c){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 yV=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
33-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),bV=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ph(c){return bV.test(""+c)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":c}function Os(){}var zb=null;function Cb(c){return c=c.target||c.srcElement||window,c.correspondingUseElement&&(c=c.correspondingUseElement),c.nodeType===3?c.parentNode:c}var Wc=null,$c=null;function k3(c){var p=Dc(c);if(p&&(c=p.stateNode)){var h=c[gn]||null;e:switch(c=p.stateNode,p.type){case"input":if(Pb(c,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name),p=h.name,h.type==="radio"&&p!=null){for(h=c;h.parentNode;)h=h.parentNode;for(h=h.querySelectorAll('input[name="'+Kn(""+p)+'"][type="radio"]'),p=0;p<h.length;p++){var x=h[p];if(x!==c&&x.form===c.form){var w=x[gn]||null;if(!w)throw Error(n(90));Pb(x,w.value,w.defaultValue,w.defaultValue,w.checked,w.defaultChecked,w.type,w.name)}}for(p=0;p<h.length;p++)x=h[p],x.form===c.form&&y3(x)}break e;case"textarea":v3(c,h.value,h.defaultValue);break e;case"select":p=h.value,p!=null&&Bc(c,!!h.multiple,p,!1)}}}var Eb=!1;function P3(c,p,h){if(Eb)return c(p,h);Eb=!0;try{var x=c(p);return x}finally{if(Eb=!1,(Wc!==null||$c!==null)&&(pm(),Wc&&(p=Wc,c=$c,$c=Wc=null,k3(p),c)))for(p=0;p<c.length;p++)k3(c[p])}}function rp(c,p){var h=c.stateNode;if(h===null)return null;var x=h[gn]||null;if(x===null)return null;h=x[p];e:switch(p){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(x=!x.disabled)||(c=c.type,x=!(c==="button"||c==="input"||c==="select"||c==="textarea")),c=!x;break e;default:c=!1}if(c)return null;if(h&&typeof h!="function")throw Error(n(231,p,typeof h));return h}var Ms=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ob=!1;if(Ms)try{var np={};Object.defineProperty(np,"passive",{get:function(){Ob=!0}}),window.addEventListener("test",np,np),window.removeEventListener("test",np,np)}catch{Ob=!1}var Ni=null,Mb=null,Th=null;function T3(){if(Th)return Th;var c,p=Mb,h=p.length,x,w="value"in Ni?Ni.value:Ni.textContent,z=w.length;for(c=0;c<h&&p[c]===w[c];c++);var D=h-c;for(x=1;x<=D&&p[h-x]===w[z-x];x++);return Th=w.slice(c,1<x?1-x:void 0)}function Ah(c){var p=c.keyCode;return"charCode"in c?(c=c.charCode,c===0&&p===13&&(c=13)):c=p,c===10&&(c=13),32<=c||c===13?c:0}function zh(){return!0}function A3(){return!1}function fn(c){function p(h,x,w,z,D){this._reactName=h,this._targetInst=w,this.type=x,this.nativeEvent=z,this.target=D,this.currentTarget=null;for(var L in c)c.hasOwnProperty(L)&&(h=c[L],this[L]=h?h(z):z[L]);return this.isDefaultPrevented=(z.defaultPrevented!=null?z.defaultPrevented:z.returnValue===!1)?zh:A3,this.isPropagationStopped=A3,this}return f(p.prototype,{preventDefault:function(){this.defaultPrevented=!0;var h=this.nativeEvent;h&&(h.preventDefault?h.preventDefault():typeof h.returnValue!="unknown"&&(h.returnValue=!1),this.isDefaultPrevented=zh)},stopPropagation:function(){var h=this.nativeEvent;h&&(h.stopPropagation?h.stopPropagation():typeof h.cancelBubble!="unknown"&&(h.cancelBubble=!0),this.isPropagationStopped=zh)},persist:function(){},isPersistent:zh}),p}var tl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(c){return c.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ch=fn(tl),ap=f({},tl,{view:0,detail:0}),vV=fn(ap),Nb,Rb,sp,Eh=f({},ap,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_b,button:0,buttons:0,relatedTarget:function(c){return c.relatedTarget===void 0?c.fromElement===c.srcElement?c.toElement:c.fromElement:c.relatedTarget},movementX:function(c){return"movementX"in c?c.movementX:(c!==sp&&(sp&&c.type==="mousemove"?(Nb=c.screenX-sp.screenX,Rb=c.screenY-sp.screenY):Rb=Nb=0,sp=c),Nb)},movementY:function(c){return"movementY"in c?c.movementY:Rb}}),z3=fn(Eh),SV=f({},Eh,{dataTransfer:0}),jV=fn(SV),wV=f({},ap,{relatedTarget:0}),Db=fn(wV),kV=f({},tl,{animationName:0,elapsedTime:0,pseudoElement:0}),PV=fn(kV),TV=f({},tl,{clipboardData:function(c){return"clipboardData"in c?c.clipboardData:window.clipboardData}}),AV=fn(TV),zV=f({},tl,{data:0}
vendor: 4,314 bytes, line 33
33),C3=fn(zV),CV={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},EV={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"},OV={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function MV(c){var p=this.nativeEvent;return p.getModifierState?p.getModifierState(c):(c=OV[c])?!!p[c]:!1}function _b(){return MV}var NV=f({},ap,{key:function(c){if(c.key){var p=CV[c.key]||c.key;if(p!=="Unidentified")return p}return c.type==="keypress"?(c=Ah(c),c===13?"Enter":String.fromCharCode(c)):c.type==="keydown"||c.type==="keyup"?EV[c.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_b,charCode:function(c){return c.type==="keypress"?Ah(c):0},keyCode:function(c){return c.type==="keydown"||c.type==="keyup"?c.keyCode:0},which:function(c){return c.type==="keypress"?Ah(c):c.type==="keydown"||c.type==="keyup"?c.keyCode:0}}),RV=fn(NV),DV=f({},Eh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),E3=fn(DV),_V=f({},ap,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_b}),IV=fn(_V),BV=f({},tl,{propertyName:0,elapsedTime:0,pseudoElement:0}),LV=fn(BV),WV=f({},Eh,{deltaX:function(c){return"deltaX"in c?c.deltaX:"wheelDeltaX"in c?-c.wheelDeltaX:0},deltaY:function(c){return"deltaY"in c?c.deltaY:"wheelDeltaY"in c?-c.wheelDeltaY:"wheelDelta"in c?-c.wheelDelta:0},deltaZ:0,deltaMode:0}),$V=fn(WV),FV=f({},tl,{newState:0,oldState:0}),HV=fn(FV),qV=[9,13,27,32],Ib=Ms&&"CompositionEvent"in window,ip=null;Ms&&"documentMode"in document&&(ip=document.documentMode);var UV=Ms&&"TextEvent"in window&&!ip,O3=Ms&&(!Ib||ip&&8<ip&&11>=ip),M3=" ",N3=!1;function R3(c,p){switch(c){case"keyup":return qV.indexOf(p.keyCode)!==-1;case"keydown":return p.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function D3(c){return c=c.detail,typeof c=="object"&&"data"in c?c.data:null}var Fc=!1;function GV(c,p){switch(c){case"compositionend":return D3(p);case"keypress":return p.which!==32?null:(N3=!0,M3);case"textInput":return c=p.data,c===M3&&N3?null:c;default:return null}}function VV(c,p){if(Fc)return c==="compositionend"||!Ib&&R3(c,p)?(c=T3(),Th=Mb=Ni=null,Fc=!1,c):null;switch(c){case"paste":return null;case"keypress":if(!(p.ctrlKey||p.altKey||p.metaKey)||p.ctrlKey&&p.altKey){if(p.char&&1<p.char.length)return p.char;if(p.which)return String.fromCharCode(p.which)}return null;case"compositionend":return O3&&p.locale!=="ko"?null:p.data;default:return null}}var XV={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 _3(c){var p=c&&c.nodeName&&c.nodeName.toLowerCase();return p==="input"?!!XV[c.type]:p==="textarea"}function I3(c,p,h,x){Wc?$c?$c.push(x):$c=[x]:Wc=x,p=bm(p,"onChange"),0<p.length&&(h=new Ch("onChange","change",null,h,x),c.push({event:h,listeners:p}))}var op=null,lp=null;function KV(c){bC(c,0)}function Oh(c){var p=tp(c);if(y3(p))return c}function B3(c,p){if(c==="change")return p}var L3=!1;if(Ms){var Bb;if(Ms){var Lb="oninput"in document;if(!Lb){var W3=document.createElement("div");W3.setAttribute("oninput","return;"),Lb=typeof W3.oninput=="function"}Bb=Lb}else Bb=!1;L3=Bb&&(!document.documentMode||9<document.documentMode)}function $3(){op&&(op.detachEvent("onpropertychange",F3),lp=op=null)}function F3(c){if(c.propertyName==="value"&&Oh(lp)){var p=[];I3(p,lp,c,Cb(c)),P3(KV,p)}}function QV(c,p,h){c==="focusin"?($3(),op=p,lp=h,op.attachEvent("onpropertychange",F3)):c==="focusout"&&$3()}function YV(c){if(c==="selectionchange"||c==="keyup"||c==="keydown")return Oh(lp)}function ZV(c,p){if(c==="click")return Oh(p)}function JV(c,p){if(c==="input"||c==="change")return Oh(p)}
vendor: 4,120 bytes, line 33
33function eX(c,p){return c===p&&(c!==0||1/c===1/p)||c!==c&&p!==p}var Cn=typeof Object.is=="function"?Object.is:eX;function cp(c,p){if(Cn(c,p))return!0;if(typeof c!="object"||c===null||typeof p!="object"||p===null)return!1;var h=Object.keys(c),x=Object.keys(p);if(h.length!==x.length)return!1;for(x=0;x<h.length;x++){var w=h[x];if(!tr.call(p,w)||!Cn(c[w],p[w]))return!1}return!0}function H3(c){for(;c&&c.firstChild;)c=c.firstChild;return c}function q3(c,p){var h=H3(c);c=0;for(var x;h;){if(h.nodeType===3){if(x=c+h.textContent.length,c<=p&&x>=p)return{node:h,offset:p-c};c=x}e:{for(;h;){if(h.nextSibling){h=h.nextSibling;break e}h=h.parentNode}h=void 0}h=H3(h)}}function U3(c,p){return c&&p?c===p?!0:c&&c.nodeType===3?!1:p&&p.nodeType===3?U3(c,p.parentNode):"contains"in c?c.contains(p):c.compareDocumentPosition?!!(c.compareDocumentPosition(p)&16):!1:!1}function G3(c){c=c!=null&&c.ownerDocument!=null&&c.ownerDocument.defaultView!=null?c.ownerDocument.defaultView:window;for(var p=kh(c.document);p instanceof c.HTMLIFrameElement;){try{var h=typeof p.contentWindow.location.href=="string"}catch{h=!1}if(h)c=p.contentWindow;else break;p=kh(c.document)}return p}function Wb(c){var p=c&&c.nodeName&&c.nodeName.toLowerCase();return p&&(p==="input"&&(c.type==="text"||c.type==="search"||c.type==="tel"||c.type==="url"||c.type==="password")||p==="textarea"||c.contentEditable==="true")}var tX=Ms&&"documentMode"in document&&11>=document.documentMode,Hc=null,$b=null,dp=null,Fb=!1;function V3(c,p,h){var x=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;Fb||Hc==null||Hc!==kh(x)||(x=Hc,"selectionStart"in x&&Wb(x)?x={start:x.selectionStart,end:x.selectionEnd}:(x=(x.ownerDocument&&x.ownerDocument.defaultView||window).getSelection(),x={anchorNode:x.anchorNode,anchorOffset:x.anchorOffset,focusNode:x.focusNode,focusOffset:x.focusOffset}),dp&&cp(dp,x)||(dp=x,x=bm($b,"onSelect"),0<x.length&&(p=new Ch("onSelect","select",null,p,h),c.push({event:p,listeners:x}),p.target=Hc)))}function rl(c,p){var h={};return h[c.toLowerCase()]=p.toLowerCase(),h["Webkit"+c]="webkit"+p,h["Moz"+c]="moz"+p,h}var qc={animationend:rl("Animation","AnimationEnd"),animationiteration:rl("Animation","AnimationIteration"),animationstart:rl("Animation","AnimationStart"),transitionrun:rl("Transition","TransitionRun"),transitionstart:rl("Transition","TransitionStart"),transitioncancel:rl("Transition","TransitionCancel"),transitionend:rl("Transition","TransitionEnd")},Hb={},X3={};Ms&&(X3=document.createElement("div").style,"AnimationEvent"in window||(delete qc.animationend.animation,delete qc.animationiteration.animation,delete qc.animationstart.animation),"TransitionEvent"in window||delete qc.transitionend.transition);function nl(c){if(Hb[c])return Hb[c];if(!qc[c])return c;var p=qc[c],h;for(h in p)if(p.hasOwnProperty(h)&&h in X3)return Hb[c]=p[h];return c}var K3=nl("animationend"),Q3=nl("animationiteration"),Y3=nl("animationstart"),rX=nl("transitionrun"),nX=nl("transitionstart"),aX=nl("transitioncancel"),Z3=nl("transitionend"),J3=new Map,qb="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");qb.push("scrollEnd");function Ca(c,p){J3.set(c,p),el(p,[c])}var Mh=typeof reportError=="function"?reportError:function(c){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var p=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof c=="object"&&c!==null&&typeof c.message=="string"?String(c.message):String(c),error:c});if(!window.dispatchEvent(p))return}else if(typeof Wd=="object"&&typeof Wd.emit=="function"){Wd.emit
vendor: 2,442 bytes, line 33
33("uncaughtException",c);return}console.error(c)},Qn=[],Uc=0,Ub=0;function Nh(){for(var c=Uc,p=Ub=Uc=0;p<c;){var h=Qn[p];Qn[p++]=null;var x=Qn[p];Qn[p++]=null;var w=Qn[p];Qn[p++]=null;var z=Qn[p];if(Qn[p++]=null,x!==null&&w!==null){var D=x.pending;D===null?w.next=w:(w.next=D.next,D.next=w),x.pending=w}z!==0&&ez(h,w,z)}}function Rh(c,p,h,x){Qn[Uc++]=c,Qn[Uc++]=p,Qn[Uc++]=h,Qn[Uc++]=x,Ub|=x,c.lanes|=x,c=c.alternate,c!==null&&(c.lanes|=x)}function Gb(c,p,h,x){return Rh(c,p,h,x),Dh(c)}function al(c,p){return Rh(c,null,null,p),Dh(c)}function ez(c,p,h){c.lanes|=h;var x=c.alternate;x!==null&&(x.lanes|=h);for(var w=!1,z=c.return;z!==null;)z.childLanes|=h,x=z.alternate,x!==null&&(x.childLanes|=h),z.tag===22&&(c=z.stateNode,c===null||c._visibility&1||(w=!0)),c=z,z=z.return;return c.tag===3?(z=c.stateNode,w&&p!==null&&(w=31-$r(h),c=z.hiddenUpdates,x=c[w],x===null?c[w]=[p]:x.push(p),p.lane=h|536870912),z):null}function Dh(c){if(50<Mp)throw Mp=0,t2=null,Error(n(185));for(var p=c.return;p!==null;)c=p,p=c.return;return c.tag===3?c.stateNode:null}var Gc={};function sX(c,p,h,x){this.tag=c,this.key=h,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=p,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=x,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function En(c,p,h,x){return new sX(c,p,h,x)}function Vb(c){return c=c.prototype,!(!c||!c.isReactComponent)}function Ns(c,p){var h=c.alternate;return h===null?(h=En(c.tag,p,c.key,c.mode),h.elementType=c.elementType,h.type=c.type,h.stateNode=c.stateNode,h.alternate=c,c.alternate=h):(h.pendingProps=p,h.type=c.type,h.flags=0,h.subtreeFlags=0,h.deletions=null),h.flags=c.flags&65011712,h.childLanes=c.childLanes,h.lanes=c.lanes,h.child=c.child,h.memoizedProps=c.memoizedProps,h.memoizedState=c.memoizedState,h.updateQueue=c.updateQueue,p=c.dependencies,h.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext},h.sibling=c.sibling,h.index=c.index,h.ref=c.ref,h.refCleanup=c.refCleanup,h}function tz(c,p){c.flags&=65011714;var h=c.alternate;return h===null?(c.childLanes=0,c.lanes=p,c.child=null,c.subtreeFlags=0,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,c.stateNode=null):(c.childLanes=h.childLanes,c.lanes=h.lanes,c.child=h.child,c.subtreeFlags=0,c.deleti
vendor: 13,995 bytes, line 33
33ons=null,c.memoizedProps=h.memoizedProps,c.memoizedState=h.memoizedState,c.updateQueue=h.updateQueue,c.type=h.type,p=h.dependencies,c.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext}),c}function _h(c,p,h,x,w,z){var D=0;if(x=c,typeof c=="function")Vb(c)&&(D=1);else if(typeof c=="string")D=dK(c,h,re.current)?26:c==="html"||c==="head"||c==="body"?27:5;else e:switch(c){case M:return c=En(31,h,p,w),c.elementType=M,c.lanes=z,c;case b:return sl(h.children,w,z,p);case v:D=8,w|=24;break;case j:return c=En(12,h,p,w|2),c.elementType=j,c.lanes=z,c;case T:return c=En(13,h,p,w),c.elementType=T,c.lanes=z,c;case C:return c=En(19,h,p,w),c.elementType=C,c.lanes=z,c;default:if(typeof c=="object"&&c!==null)switch(c.$$typeof){case P:D=10;break e;case k:D=9;break e;case O:D=11;break e;case A:D=14;break e;case N:D=16,x=null;break e}D=29,h=Error(n(130,c===null?"null":typeof c,"")),x=null}return p=En(D,h,p,w),p.elementType=c,p.type=x,p.lanes=z,p}function sl(c,p,h,x){return c=En(7,c,x,p),c.lanes=h,c}function Xb(c,p,h){return c=En(6,c,null,p),c.lanes=h,c}function rz(c){var p=En(18,null,null,0);return p.stateNode=c,p}function Kb(c,p,h){return p=En(4,c.children!==null?c.children:[],c.key,p),p.lanes=h,p.stateNode={containerInfo:c.containerInfo,pendingChildren:null,implementation:c.implementation},p}var nz=new WeakMap;function Yn(c,p){if(typeof c=="object"&&c!==null){var h=nz.get(c);return h!==void 0?h:(p={value:c,source:p,stack:cn(p)},nz.set(c,p),p)}return{value:c,source:p,stack:cn(p)}}var Vc=[],Xc=0,Ih=null,up=0,Zn=[],Jn=0,Ri=null,Za=1,Ja="";function Rs(c,p){Vc[Xc++]=up,Vc[Xc++]=Ih,Ih=c,up=p}function az(c,p,h){Zn[Jn++]=Za,Zn[Jn++]=Ja,Zn[Jn++]=Ri,Ri=c;var x=Za;c=Ja;var w=32-$r(x)-1;x&=~(1<<w),h+=1;var z=32-$r(p)+w;if(30<z){var D=w-w%5;z=(x&(1<<D)-1).toString(32),x>>=D,w-=D,Za=1<<32-$r(p)+w|h<<w|x,Ja=z+c}else Za=1<<z|h<<w|x,Ja=c}function Qb(c){c.return!==null&&(Rs(c,1),az(c,1,0))}function Yb(c){for(;c===Ih;)Ih=Vc[--Xc],Vc[Xc]=null,up=Vc[--Xc],Vc[Xc]=null;for(;c===Ri;)Ri=Zn[--Jn],Zn[Jn]=null,Ja=Zn[--Jn],Zn[Jn]=null,Za=Zn[--Jn],Zn[Jn]=null}function sz(c,p){Zn[Jn++]=Za,Zn[Jn++]=Ja,Zn[Jn++]=Ri,Za=p.id,Ja=p.overflow,Ri=c}var Er=null,Ct=null,nt=!1,Di=null,ea=!1,Zb=Error(n(519));function _i(c){var p=Error(n(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw pp(Yn(p,c)),Zb}function iz(c){var p=c.stateNode,h=c.type,x=c.memoizedProps;switch(p[Cr]=c,p[gn]=x,h){case"dialog":Ze("cancel",p),Ze("close",p);break;case"iframe":case"object":case"embed":Ze("load",p);break;case"video":case"audio":for(h=0;h<Rp.length;h++)Ze(Rp[h],p);break;case"source":Ze("error",p);break;case"img":case"image":case"link":Ze("error",p),Ze("load",p);break;case"details":Ze("toggle",p);break;case"input":Ze("invalid",p),b3(p,x.value,x.defaultValue,x.checked,x.defaultChecked,x.type,x.name,!0);break;case"select":Ze("invalid",p);break;case"textarea":Ze("invalid",p),S3(p,x.value,x.defaultValue,x.children)}h=x.children,typeof h!="string"&&typeof h!="number"&&typeof h!="bigint"||p.textContent===""+h||x.suppressHydrationWarning===!0||wC(p.textContent,h)?(x.popover!=null&&(Ze("beforetoggle",p),Ze("toggle",p)),x.onScroll!=null&&Ze("scroll",p),x.onScrollEnd!=null&&Ze("scrollend",p),x.onClick!=null&&(p.onclick=Os),p=!0):p=!1,p||_i(c,!0)}function oz(c){for(Er=c.return;Er;)switch(Er.tag){case 5:case 31:case 13:ea=!1;return;case 27:case 3:ea=!0;return;default:Er=Er.return}}function Kc(c){if(c!==Er)return!1;if(!nt)return oz(c),nt=!0,!1;var p=c.tag,h;if((h=p!==3&&p!==27)&&((h=p===5)&&(h=c.type,h=!(h!=="form"&&h!=="button")||m2(c.type,c.memoizedProps)),h=!h),h&&Ct&&_i(c),oz(c),p===13){if(c=c.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(n(317));Ct=MC(c)}else if(p===31){if(c=c.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(n(317));Ct=MC(c)}else p===27?(p=Ct,Qi(c.type)?(c=S2,S2=null,Ct=c):Ct=p):Ct=Er?ra(c.stateNode.nextSibling):null;return!0}function il(){Ct=Er=null,nt=!1}function Jb(){var c=Di;return c!==null&&(yn===null?yn=c:yn.push.apply(yn,c),Di=null),c}function pp(c){Di===null?Di=[c]:Di.push(c)}var e1=H(null),ol=null,Ds=null;function Ii(c,p,h){Q(e1,p._currentValue),p._currentValue=h}function _s(c){c._currentValue=e1.current,K(e1)}function t1(c,p,h){for(;c!==null;){var x=c.alternate;if((c.childLanes&p)!==p?(c.childLanes|=p,x!==null&&(x.childLanes|=p)):x!==null&&(x.childLanes&p)!==p&&(x.childLanes|=p),c===h)break;c=c.return}}function r1(c,p,h,x){var w=c.child;for(w!==null&&(w.return=c);w!==null;){var z=w.dependencies;if(z!==null){var D=w.child;z=z.firstContext;e:for(;z!==null;){var L=z;z=w;for(var X=0;X<p.length;X++)if(L.context===p[X]){z.lanes|=h,L=z.alternate,L!==null&&(L.lanes|=h),t1(z.return,h,c),x||(D=null);break e}z=L.next}}else if(w.tag===18){if(D=w.return,D===null)throw Error(n(341));D.lanes|=h,z=D.alternate,z!==null&&(z.lanes|=h),t1(D,h,c),D=null}else D=w.child;if(D!==null)D.return=w;else for(D=w;D!==null;){if(D===c){D=null;break}if(w=D.sibling,w!==null){w.return=D.return,D=w;break}D=D.return}w=D}}function Qc(c,p,h,x){c=null;for(var w=p,z=!1;w!==null;){if(!z){if((w.flags&524288)!==0)z=!0;else if((w.flags&262144)!==0)break}if(w.tag===10){var D=w.alternate;if(D===null)throw Error(n(387));if(D=D.memoizedProps,D!==null){var L=w.type;Cn(w.pendingProps.value,D.value)||(c!==null?c.push(L):c=[L])}}else if(w===Se.current){if(D=w.alternate,D===null)throw Error(n(387));D.memoizedState.memoizedState!==w.memoizedState.memoizedState&&(c!==null?c.push(Lp):c=[Lp])}w=w.return}c!==null&&r1(p,c,h,x),p.flags|=262144}function Bh(c){for(c=c.firstContext;c!==null;){if(!Cn(c.context._currentValue,c.memoizedValue))return!0;c=c.next}return!1}function ll(c){ol=c,Ds=null,c=c.dependencies,c!==null&&(c.firstContext=null)}function Or(c){return lz(ol,c)}function Lh(c,p){return ol===null&&ll(c),lz(c,p)}function lz(c,p){var h=p._currentValue;if(p={context:p,memoizedValue:h,next:null},Ds===null){if(c===null)throw Error(n(308));Ds=p,c.dependencies={lanes:0,firstContext:p},c.flags|=524288}else Ds=Ds.next=p;return h}var iX=typeof AbortController<"u"?AbortController:function(){var c=[],p=this.signal={aborted:!1,addEventListener:function(h,x){c.push(x)}};this.abort=function(){p.aborted=!0,c.forEach(function(h){return h()})}},oX=e.unstable_scheduleCallback,lX=e.unstable_NormalPriority,rr={$$typeof:P,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function n1(){return{controller:new iX,data:new Map,refCount:0}}function gp(c){c.refCount--,c.refCount===0&&oX(lX,function(){c.controller.abort()})}var fp=null,a1=0,Yc=0,Zc=null;function cX(c,p){if(fp===null){var h=fp=[];a1=0,Yc=o2(),Zc={status:"pending",value:void 0,then:function(x){h.push(x)}}}return a1++,p.then(cz,cz),p}function cz(){if(--a1===0&&fp!==null){Zc!==null&&(Zc.status="fulfilled");var c=fp;fp=null,Yc=0,Zc=null;for(var p=0;p<c.length;p++)(0,c[p])()}}function dX(c,p){var h=[],x={status:"pending",value:null,reason:null,then:function(w){h.push(w)}};return c.then(function(){x.status="fulfilled",x.value=p;for(var w=0;w<h.length;w++)(0,h[w])(p)},function(w){for(x.status="rejected",x.reason=w,w=0;w<h.length;w++)(0,h[w])(void 0)}),x}var dz=I.S;I.S=function(c,p){V6=vr(),typeof p=="object"&&p!==null&&typeof p.then=="function"&&cX(c,p),dz!==null&&dz(c,p)};var cl=H(null);function s1(){var c=cl.current;return c!==null?c:wt.pooledCache}function Wh(c,p){p===null?Q(cl,cl.current):Q(cl,p.pool)}function uz(){var c=s1();return c===null?null:{parent:rr._currentValue,pool:c}}var Jc=Error(n(460)),i1=Error(n(474)),$h=Error(n(542)),Fh={then:function(){}};function pz(c){return c=c.status,c==="fulfilled"||c==="rejected"}function gz(c,p,h){switch(h=c[h],h===void 0?c.push(p):h!==p&&(p.then(Os,Os),p=h),p.status){case"fulfilled":return p.value;case"rejected":throw c=p.reason,hz(c),c;default:if(typeof p.status=="string")p.then(Os,Os);else{if(c=wt,c!==null&&100<c.shellSuspendCounter)throw Error(n(482));c=p,c.status="pending",c.then(function(x){if(p.status==="pending"){var w=p;w.status="fulfilled",w.value=x}},function(x){if(p.status==="pending"){var w=p;w.status="rejected",w.reason=x}})}switch(p.status){case"fulfilled":return p.value;case"rejected":throw c=p.reason,hz(c),c}throw ul=p,Jc}}function dl(c){try{var p=c._init;return p(c._payload)}catch(h){throw h!==null&&typeof h=="object"&&typeof h.then=="function"?(ul=h,Jc):h}}var ul=null;function fz(){if(ul===null)throw Error(n(459));var c=ul;return ul=null,c}function hz(c){if(c===Jc||c===$h)throw Error(n(483))}var ed=null,hp=0;function Hh(c){var p=hp;return hp+=1,ed===null&&(ed=[]),gz(ed,c,p)}function mp(c,p){p=p.props.ref,c.ref=p!==void 0?p:null}function qh(c,p){throw p.$$typeof===m?Error(n(525)):(c=Object.prototype.toString.call(p),Error(n(31,c==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":c)))}function mz(c){function p(J,Y){if(c){var te=J.deletions;te===null?(J.deletions=[Y],J.flags|=16):te.push(Y)}}function h(J,Y){if(!c)return null;for(;Y!==null;)p(J,Y),Y=Y.sibling;return null}function x(J){for(var Y=new Map;J!==null;)J.key!==null?Y.set(J.key,J):Y.set(J.index,J),J=J.sibling;return Y}function w(J,Y){return J=Ns(J,Y),J.index=0,J.sibling=null,J}function z(J,Y,te){return J.index=te,c?(te=J.alternate,te!==null?(te=te.index,te<Y?(J.flags|=67108866,Y):te):(J.flags|=67108866,Y)):(J.flags|=1048576,Y)}function D(J){return c&&J.alternate===null&&(J.flags|=67108866),J}function L(J,Y,te,de){return Y===null||Y.tag!==6?(Y=Xb(te,J.mode,de),Y.return=J,Y):(Y=w(Y,te),Y.return=J,Y)}function X(J,Y,te,de){var Re=te.type;return Re===b?oe(J,Y,te.props.children,de,te.key):Y!==null&&(Y.elementType===Re||typeof Re=="object"&&Re!==null&&Re.$$typeof===N&&dl(Re)===Y.type)?(Y=w(Y,te.props),mp(Y,te),Y.return=J,Y):(Y=_h(te.type,te.key,te.props,null,J.mode,de),mp(Y,te),Y.return=J,Y)}function ne(J,Y,te,de){return Y===null||Y.tag!==4||Y.stateNode.containerInfo!==te.containerInfo||Y.stateNode.implementation!==te.implementation?(Y=Kb(te,J.mode,de),Y.return=J,Y):(Y=w(Y,te.children||[]),Y.return=J,Y)}function oe(J,Y,te,de,Re){return Y===null||Y.tag!==7?(Y=sl(te,J.mode,de,Re),Y.return=J,Y):(Y=w(Y,te),Y.return=J,Y)}function pe(J,Y,te){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return Y=Xb(""+Y,J.mode,te),Y.return=J,Y;if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case y:return te=_h(Y.type,Y.key,Y.props,null,J.mode,te),mp(te,Y),te.return=J,te;case S:return Y=Kb(Y,J.mode,te),Y.return=J,Y;case N:return Y=dl(Y),pe(J,Y,te)}if(F(Y)||_(Y))return Y=sl(Y,J.mode,te,null),Y.return=J,Y;if(typeof Y.then=="function")return pe(J,Hh(Y),te);if(Y.$$typeof===P)return pe(J,Lh(J,Y),te);qh(J,Y)}return null}function ae(J,Y,te,de){var Re=Y!==null?Y.key:null;if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return Re!==null?null:L(J,Y,""+te,de);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case y:return te.key===Re?X(J,Y,te,de):null;case S:return te.key===Re?ne(J,Y,te,de):null;case N:return te=dl(te),ae(J,Y,te,de)}if(F(te)||_(te))return Re!==null?null:oe(J,Y,te,de,null);if(typeof te.then=="function")return ae(J,Y,Hh(te),de);if(te.$$typeof===P)return ae(J,Y,Lh(J,te),de);qh(J,te)}return null}function ie(J,Y,te,de,Re){if(typeof de=="string"&&de!==""||typeof de=="number"||typeof de=="bigint")return J=J.get(te)||null,L(Y,J,""+de,Re);if(typeof de=="object"&&de!==null){switch(de.$$typeof){case y:return J=J.get(de.key===null?te:de.key)||null,X(Y,J,de,Re);case S:return J=J.get(de.key===null?te:de.key)||null,ne(Y,J,de,Re);case N:return de=dl(de),ie(J,Y,te,de,Re)}if(F(de)||_(de))return J=J.get(te)||null,oe(Y,J,de,Re,null);if(typeof de.then=="function")return ie(J,Y,te,Hh(de),Re);if(de.$$typeof===P)return ie(J,Y,te,Lh(Y,de),Re);qh(Y,de)}return null}function Pe(J,Y,te,de){for(var Re=null,ot=null,Ce=Y,Ge=Y=0,rt=null;Ce!==null&&Ge<te.length;Ge++){Ce.index>Ge?(rt=Ce,Ce=null):rt=Ce.sibling;var lt=ae(J,Ce,te[Ge],de);if(lt===null){Ce===null&&(Ce=rt);break}c&&Ce&<.alternate===null&&p(J,Ce),Y=z(lt,Y,Ge),ot===null?Re=lt:ot.sibling=lt,ot=lt,Ce=rt}if(Ge===te.length)return h(J,Ce),nt&&Rs(J,Ge),Re;if(Ce===null){for(;Ge<te.length;Ge++)Ce=pe(J,te[Ge],de),Ce!==null&&(Y=z(Ce,Y,Ge),ot===null?Re=Ce:ot.sibling=Ce,ot=Ce);return nt&&Rs(J,Ge),Re}for(Ce=x(Ce);Ge<te.length;Ge++)rt=ie(Ce,J,Ge,te[Ge],de),rt!==null&&(c&&rt.alternate!==null&&Ce.delete(rt.key===null?Ge:rt.key),Y=z(rt,Y,Ge),ot===null?Re=rt:ot.sibling=rt,ot=rt);return c&&Ce.forEach(function(to){return p(J,to)}),nt&&Rs(J,Ge),Re}function Be(J,Y,te,de){if(te==null)throw Error(n(151));for(var Re=null,ot=null,Ce=Y,Ge=Y=0,rt=null,lt=te.next();Ce!==null&&!lt.done;Ge++,lt=te.next()){Ce.index>Ge?(rt=Ce,Ce=null):rt=Ce.sibling;var to=ae(J,Ce,lt.value,de);if(to===null){Ce===null&&(Ce=rt);break}c&&Ce&&to.alternate===null&&p(J,Ce),Y=z(to,Y,Ge),ot===null?Re=to:ot.sibling=to,ot=to,Ce=rt}if(lt.done)return h(J,Ce),nt&&Rs(J,Ge),Re;if(Ce===null){for(;!lt.done;Ge++,lt=te.next())lt=pe(J,lt.value,de),lt!==null&&(Y=z(lt,Y,Ge),ot===null?Re=lt:ot.sibling=lt,ot=lt);return nt&&Rs(J,Ge),Re}for(Ce=x(Ce);!lt.done;Ge++,lt=te.next())lt=ie(Ce,J,Ge,lt.value,de),lt!==null&&(c&<.alternate!==null&&Ce.delete(lt.key===null?Ge:lt.key),Y=z(lt,Y,Ge),ot===null?Re=lt:ot.sibling=lt,ot=lt);return c&&Ce.forEach(function(SK){return p(J,SK)}),nt&&Rs(J,Ge),Re}function vt(J,Y,te,de){if(typeof te=="object"&&te!==null&&te.type===b&&te.key===null&&(te=te.props.children),typeof te=="object"&&te!==null){switch(te.$$typeof){case y:e:{for(var Re=te.key;Y!==null;){if(Y.key===Re){if(Re=te.type,Re===b){if(Y.tag===7){h(J,Y.sibling),de=w(Y,te.props.children),de.return=J,J=de;break e}}else if(Y.elementType===Re||typeof Re=="object"&&Re!==null&&Re.$$typeof===N&&dl(Re)===Y.type){h(J,Y.sibling),de=w(Y,te.props),mp(de,te),de.return=J,J=de;break e}h(J,Y);break}else p(J,Y);Y=Y.sibling}te.type===b?(de=sl(te.props.children,J.mode,de,te.key),de.return=J,J=de):(de=_h(te.type,te.key,te.props,null,J.mode,de),mp(de,te),de.return=J,J=de)}return D(J);case S:e:{for(Re=te.key;Y!==null;){if(Y.key===Re)if(Y.tag===4&&Y.stateNode.containerInfo===te.containerInfo&&Y.stateNode.implementation===te.
vendor: 9,061 bytes, line 33
33implementation){h(J,Y.sibling),de=w(Y,te.children||[]),de.return=J,J=de;break e}else{h(J,Y);break}else p(J,Y);Y=Y.sibling}de=Kb(te,J.mode,de),de.return=J,J=de}return D(J);case N:return te=dl(te),vt(J,Y,te,de)}if(F(te))return Pe(J,Y,te,de);if(_(te)){if(Re=_(te),typeof Re!="function")throw Error(n(150));return te=Re.call(te),Be(J,Y,te,de)}if(typeof te.then=="function")return vt(J,Y,Hh(te),de);if(te.$$typeof===P)return vt(J,Y,Lh(J,te),de);qh(J,te)}return typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint"?(te=""+te,Y!==null&&Y.tag===6?(h(J,Y.sibling),de=w(Y,te),de.return=J,J=de):(h(J,Y),de=Xb(te,J.mode,de),de.return=J,J=de),D(J)):h(J,Y)}return function(J,Y,te,de){try{hp=0;var Re=vt(J,Y,te,de);return ed=null,Re}catch(Ce){if(Ce===Jc||Ce===$h)throw Ce;var ot=En(29,Ce,null,J.mode);return ot.lanes=de,ot.return=J,ot}finally{}}}var pl=mz(!0),xz=mz(!1),Bi=!1;function o1(c){c.updateQueue={baseState:c.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function l1(c,p){c=c.updateQueue,p.updateQueue===c&&(p.updateQueue={baseState:c.baseState,firstBaseUpdate:c.firstBaseUpdate,lastBaseUpdate:c.lastBaseUpdate,shared:c.shared,callbacks:null})}function Li(c){return{lane:c,tag:0,payload:null,callback:null,next:null}}function Wi(c,p,h){var x=c.updateQueue;if(x===null)return null;if(x=x.shared,(ut&2)!==0){var w=x.pending;return w===null?p.next=p:(p.next=w.next,w.next=p),x.pending=p,p=Dh(c),ez(c,null,h),p}return Rh(c,x,p,h),Dh(c)}function xp(c,p,h){if(p=p.updateQueue,p!==null&&(p=p.shared,(h&4194048)!==0)){var x=p.lanes;x&=c.pendingLanes,h|=x,p.lanes=h,un(c,h)}}function c1(c,p){var h=c.updateQueue,x=c.alternate;if(x!==null&&(x=x.updateQueue,h===x)){var w=null,z=null;if(h=h.firstBaseUpdate,h!==null){do{var D={lane:h.lane,tag:h.tag,payload:h.payload,callback:null,next:null};z===null?w=z=D:z=z.next=D,h=h.next}while(h!==null);z===null?w=z=p:z=z.next=p}else w=z=p;h={baseState:x.baseState,firstBaseUpdate:w,lastBaseUpdate:z,shared:x.shared,callbacks:x.callbacks},c.updateQueue=h;return}c=h.lastBaseUpdate,c===null?h.firstBaseUpdate=p:c.next=p,h.lastBaseUpdate=p}var d1=!1;function yp(){if(d1){var c=Zc;if(c!==null)throw c}}function bp(c,p,h,x){d1=!1;var w=c.updateQueue;Bi=!1;var z=w.firstBaseUpdate,D=w.lastBaseUpdate,L=w.shared.pending;if(L!==null){w.shared.pending=null;var X=L,ne=X.next;X.next=null,D===null?z=ne:D.next=ne,D=X;var oe=c.alternate;oe!==null&&(oe=oe.updateQueue,L=oe.lastBaseUpdate,L!==D&&(L===null?oe.firstBaseUpdate=ne:L.next=ne,oe.lastBaseUpdate=X))}if(z!==null){var pe=w.baseState;D=0,oe=ne=X=null,L=z;do{var ae=L.lane&-536870913,ie=ae!==L.lane;if(ie?(tt&ae)===ae:(x&ae)===ae){ae!==0&&ae===Yc&&(d1=!0),oe!==null&&(oe=oe.next={lane:0,tag:L.tag,payload:L.payload,callback:null,next:null});e:{var Pe=c,Be=L;ae=p;var vt=h;switch(Be.tag){case 1:if(Pe=Be.payload,typeof Pe=="function"){pe=Pe.call(vt,pe,ae);break e}pe=Pe;break e;case 3:Pe.flags=Pe.flags&-65537|128;case 0:if(Pe=Be.payload,ae=typeof Pe=="function"?Pe.call(vt,pe,ae):Pe,ae==null)break e;pe=f({},pe,ae);break e;case 2:Bi=!0}}ae=L.callback,ae!==null&&(c.flags|=64,ie&&(c.flags|=8192),ie=w.callbacks,ie===null?w.callbacks=[ae]:ie.push(ae))}else ie={lane:ae,tag:L.tag,payload:L.payload,callback:L.callback,next:null},oe===null?(ne=oe=ie,X=pe):oe=oe.next=ie,D|=ae;if(L=L.next,L===null){if(L=w.shared.pending,L===null)break;ie=L,L=ie.next,ie.next=null,w.lastBaseUpdate=ie,w.shared.pending=null}}while(!0);oe===null&&(X=pe),w.baseState=X,w.firstBaseUpdate=ne,w.lastBaseUpdate=oe,z===null&&(w.shared.lanes=0),Ui|=D,c.lanes=D,c.memoizedState=pe}}function yz(c,p){if(typeof c!="function")throw Error(n(191,c));c.call(p)}function bz(c,p){var h=c.callbacks;if(h!==null)for(c.callbacks=null,c=0;c<h.length;c++)yz(h[c],p)}var td=H(null),Uh=H(0);function vz(c,p){c=Us,Q(Uh,c),Q(td,p),Us=c|p.baseLanes}function u1(){Q(Uh,Us),Q(td,td.current)}function p1(){Us=Uh.current,K(td),K(Uh)}var On=H(null),ta=null;function $i(c){var p=c.alternate;Q(Vt,Vt.current&1),Q(On,c),ta===null&&(p===null||td.current!==null||p.memoizedState!==null)&&(ta=c)}function g1(c){Q(Vt,Vt.current),Q(On,c),ta===null&&(ta=c)}function Sz(c){c.tag===22?(Q(Vt,Vt.current),Q(On,c),ta===null&&(ta=c)):Fi()}function Fi(){Q(Vt,Vt.current),Q(On,On.current)}function Mn(c){K(On),ta===c&&(ta=null),K(Vt)}var Vt=H(0);function Gh(c){for(var p=c;p!==null;){if(p.tag===13){var h=p.memoizedState;if(h!==null&&(h=h.dehydrated,h===null||b2(h)||v2(h)))return p}else if(p.tag===19&&(p.memoizedProps.revealOrder==="forwards"||p.memoizedProps.revealOrder==="backwards"||p.memoizedProps.revealOrder==="unstable_legacy-backwards"||p.memoizedProps.revealOrder==="together")){if((p.flags&128)!==0)return p}else if(p.child!==null){p.child.return=p,p=p.child;continue}if(p===c)break;for(;p.sibling===null;){if(p.return===null||p.return===c)return null;p=p.return}p.sibling.return=p.return,p=p.sibling}return null}var Is=0,Ue=null,yt=null,nr=null,Vh=!1,rd=!1,gl=!1,Xh=0,vp=0,nd=null,uX=0;function $t(){throw Error(n(321))}function f1(c,p){if(p===null)return!1;for(var h=0;h<p.length&&h<c.length;h++)if(!Cn(c[h],p[h]))return!1;return!0}function h1(c,p,h,x,w,z){return Is=z,Ue=p,p.memoizedState=null,p.updateQueue=null,p.lanes=0,I.H=c===null||c.memoizedState===null?a6:E1,gl=!1,z=h(x,w),gl=!1,rd&&(z=wz(p,h,x,w)),jz(c),z}function jz(c){I.H=wp;var p=yt!==null&&yt.next!==null;if(Is=0,nr=yt=Ue=null,Vh=!1,vp=0,nd=null,p)throw Error(n(300));c===null||ar||(c=c.dependencies,c!==null&&Bh(c)&&(ar=!0))}function wz(c,p,h,x){Ue=c;var w=0;do{if(rd&&(nd=null),vp=0,rd=!1,25<=w)throw Error(n(301));if(w+=1,nr=yt=null,c.updateQueue!=null){var z=c.updateQueue;z.lastEffect=null,z.events=null,z.stores=null,z.memoCache!=null&&(z.memoCache.index=0)}I.H=s6,z=p(h,x)}while(rd);return z}function pX(){var c=I.H,p=c.useState()[0];return p=typeof p.then=="function"?Sp(p):p,c=c.useState()[0],(yt!==null?yt.memoizedState:null)!==c&&(Ue.flags|=1024),p}function m1(){var c=Xh!==0;return Xh=0,c}function x1(c,p,h){p.updateQueue=c.updateQueue,p.flags&=-2053,c.lanes&=~h}function y1(c){if(Vh){for(c=c.memoizedState;c!==null;){var p=c.queue;p!==null&&(p.pending=null),c=c.next}Vh=!1}Is=0,nr=yt=Ue=null,rd=!1,vp=Xh=0,nd=null}function Jr(){var c={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nr===null?Ue.memoizedState=nr=c:nr=nr.next=c,nr}function Xt(){if(yt===null){var c=Ue.alternate;c=c!==null?c.memoizedState:null}else c=yt.next;var p=nr===null?Ue.memoizedState:nr.next;if(p!==null)nr=p,yt=c;else{if(c===null)throw Ue.alternate===null?Error(n(467)):Error(n(310));yt=c,c={memoizedState:yt.memoizedState,baseState:yt.baseState,baseQueue:yt.baseQueue,queue:yt.queue,next:null},nr===null?Ue.memoizedState=nr=c:nr=nr.next=c}return nr}function Kh(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Sp(c){var p=vp;return vp+=1,nd===null&&(nd=[]),c=gz(nd,c,p),p=Ue,(nr===null?p.memoizedState:nr.next)===null&&(p=p.alternate,I.H=p===null||p.memoizedState===null?a6:E1),c}function Qh(c){if(c!==null&&typeof c=="object"){if(typeof c.then=="function")return Sp(c);if(c.$$typeof===P)return Or(c)}throw Error(n(438,String(c)))}function b1(c){var p=null,h=Ue.updateQueue;if(h!==null&&(p=h.memoCache),p==null){var x=Ue.alternate;x!==null&&(x=x.updateQueue,x!==null&&(x=x.memoCache,x!=null&&(p={data:x.data.map(function(w){return w.slice()}),index:0})))}if(p==null&&(p={data:[],index:0}),h===null&&(h=Kh(),Ue.updateQueue=h),h.memoCache=p,h=p.data[p.index],h===void 0)for(h=p.data[p.index]=Array(c),x=0;x<c;x++)h[x]=B;return p.index++,h}function Bs(c,p){return typeof p=="function"?p(c):p}function Yh(c){var p=Xt();return v1(p,yt,c)}function v1(c,p,h){var x=c.queue;if(x===null)throw Error(n(311));x.lastRenderedReducer=h;var w=c.baseQueue,z=x.pending;if(z!==null){if(w!==null){var D=w.next;w.next=z.next,z.next=D}p.baseQueue=w=z,x.pending=null}if(z=c.baseState,w===null)c.memoizedState=z;else{p=w.next;var L=D=null,X=null,ne=p,oe=!1;do{var pe=ne.lane&-536870913;if(pe!==ne.lane?(tt&pe)===pe:(Is&pe)===pe){var ae=ne.revertLane;if(ae===0)X!==null&&(X=X.next={lane:0,revertLane:0,gesture:null,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null}),pe===Yc&&(oe=!0);else if((Is&ae)===ae){ne=ne.next,ae===Yc&&(oe=!0);continue}else pe={lane:0,revertLane:ne.revertLane,gesture:null,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null},X===null?(L=X=pe,D=z):X=X.next=pe,Ue.lanes|=ae,Ui|=ae;pe=ne.action,gl&&h(z,pe),z=ne.hasEagerState?ne.eagerState:h(z,pe)}else ae={lane:pe,revertLane:ne.revertLane,gesture:ne.gesture,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null},X===null?(L=X=ae,D=z):X=X.next=ae,Ue.lanes|=pe,Ui|=pe;ne=ne.next}while(ne!==null&&ne!==p);if(X===null?D=z:X.next=L,!Cn(z,c.memoizedState)&&(ar=!0,oe&&(h=Zc,h!==null)))throw h;c.memoizedState=z,c.baseState=D,c.baseQueue=X,x.lastRenderedState=z}return w===null&&(x.lanes=0),[c.memoizedState,x.dispatch]}function S1(c){var p=Xt(),h=p.queue;if(h===null)throw Error(n(311));h.lastRenderedReducer=c;
vendor: 14,878 bytes, line 33
33var x=h.dispatch,w=h.pending,z=p.memoizedState;if(w!==null){h.pending=null;var D=w=w.next;do z=c(z,D.action),D=D.next;while(D!==w);Cn(z,p.memoizedState)||(ar=!0),p.memoizedState=z,p.baseQueue===null&&(p.baseState=z),h.lastRenderedState=z}return[z,x]}function kz(c,p,h){var x=Ue,w=Xt(),z=nt;if(z){if(h===void 0)throw Error(n(407));h=h()}else h=p();var D=!Cn((yt||w).memoizedState,h);if(D&&(w.memoizedState=h,ar=!0),w=w.queue,k1(Az.bind(null,x,w,c),[c]),w.getSnapshot!==p||D||nr!==null&&nr.memoizedState.tag&1){if(x.flags|=2048,ad(9,{destroy:void 0},Tz.bind(null,x,w,h,p),null),wt===null)throw Error(n(349));z||(Is&127)!==0||Pz(x,p,h)}return h}function Pz(c,p,h){c.flags|=16384,c={getSnapshot:p,value:h},p=Ue.updateQueue,p===null?(p=Kh(),Ue.updateQueue=p,p.stores=[c]):(h=p.stores,h===null?p.stores=[c]:h.push(c))}function Tz(c,p,h,x){p.value=h,p.getSnapshot=x,zz(p)&&Cz(c)}function Az(c,p,h){return h(function(){zz(p)&&Cz(c)})}function zz(c){var p=c.getSnapshot;c=c.value;try{var h=p();return!Cn(c,h)}catch{return!0}}function Cz(c){var p=al(c,2);p!==null&&bn(p,c,2)}function j1(c){var p=Jr();if(typeof c=="function"){var h=c;if(c=h(),gl){Aa(!0);try{h()}finally{Aa(!1)}}}return p.memoizedState=p.baseState=c,p.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bs,lastRenderedState:c},p}function Ez(c,p,h,x){return c.baseState=h,v1(c,yt,typeof x=="function"?x:Bs)}function gX(c,p,h,x,w){if(em(c))throw Error(n(485));if(c=p.action,c!==null){var z={payload:w,action:c,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(D){z.listeners.push(D)}};I.T!==null?h(!0):z.isTransition=!1,x(z),h=p.pending,h===null?(z.next=p.pending=z,Oz(p,z)):(z.next=h.next,p.pending=h.next=z)}}function Oz(c,p){var h=p.action,x=p.payload,w=c.state;if(p.isTransition){var z=I.T,D={};I.T=D;try{var L=h(w,x),X=I.S;X!==null&&X(D,L),Mz(c,p,L)}catch(ne){w1(c,p,ne)}finally{z!==null&&D.types!==null&&(z.types=D.types),I.T=z}}else try{z=h(w,x),Mz(c,p,z)}catch(ne){w1(c,p,ne)}}function Mz(c,p,h){h!==null&&typeof h=="object"&&typeof h.then=="function"?h.then(function(x){Nz(c,p,x)},function(x){return w1(c,p,x)}):Nz(c,p,h)}function Nz(c,p,h){p.status="fulfilled",p.value=h,Rz(p),c.state=h,p=c.pending,p!==null&&(h=p.next,h===p?c.pending=null:(h=h.next,p.next=h,Oz(c,h)))}function w1(c,p,h){var x=c.pending;if(c.pending=null,x!==null){x=x.next;do p.status="rejected",p.reason=h,Rz(p),p=p.next;while(p!==x)}c.action=null}function Rz(c){c=c.listeners;for(var p=0;p<c.length;p++)(0,c[p])()}function Dz(c,p){return p}function _z(c,p){if(nt){var h=wt.formState;if(h!==null){e:{var x=Ue;if(nt){if(Ct){t:{for(var w=Ct,z=ea;w.nodeType!==8;){if(!z){w=null;break t}if(w=ra(w.nextSibling),w===null){w=null;break t}}z=w.data,w=z==="F!"||z==="F"?w:null}if(w){Ct=ra(w.nextSibling),x=w.data==="F!";break e}}_i(x)}x=!1}x&&(p=h[0])}}return h=Jr(),h.memoizedState=h.baseState=p,x={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dz,lastRenderedState:p},h.queue=x,h=t6.bind(null,Ue,x),x.dispatch=h,x=j1(!1),z=C1.bind(null,Ue,!1,x.queue),x=Jr(),w={state:p,dispatch:null,action:c,pending:null},x.queue=w,h=gX.bind(null,Ue,w,z,h),w.dispatch=h,x.memoizedState=c,[p,h,!1]}function Iz(c){var p=Xt();return Bz(p,yt,c)}function Bz(c,p,h){if(p=v1(c,p,Dz)[0],c=Yh(Bs)[0],typeof p=="object"&&p!==null&&typeof p.then=="function")try{var x=Sp(p)}catch(D){throw D===Jc?$h:D}else x=p;p=Xt();var w=p.queue,z=w.dispatch;return h!==p.memoizedState&&(Ue.flags|=2048,ad(9,{destroy:void 0},fX.bind(null,w,h),null)),[x,z,c]}function fX(c,p){c.action=p}function Lz(c){var p=Xt(),h=yt;if(h!==null)return Bz(p,h,c);Xt(),p=p.memoizedState,h=Xt();var x=h.queue.dispatch;return h.memoizedState=c,[p,x,!1]}function ad(c,p,h,x){return c={tag:c,create:h,deps:x,inst:p,next:null},p=Ue.updateQueue,p===null&&(p=Kh(),Ue.updateQueue=p),h=p.lastEffect,h===null?p.lastEffect=c.next=c:(x=h.next,h.next=c,c.next=x,p.lastEffect=c),c}function Wz(){return Xt().memoizedState}function Zh(c,p,h,x){var w=Jr();Ue.flags|=c,w.memoizedState=ad(1|p,{destroy:void 0},h,x===void 0?null:x)}function Jh(c,p,h,x){var w=Xt();x=x===void 0?null:x;var z=w.memoizedState.inst;yt!==null&&x!==null&&f1(x,yt.memoizedState.deps)?w.memoizedState=ad(p,z,h,x):(Ue.flags|=c,w.memoizedState=ad(1|p,z,h,x))}function $z(c,p){Zh(8390656,8,c,p)}function k1(c,p){Jh(2048,8,c,p)}function hX(c){Ue.flags|=4;var p=Ue.updateQueue;if(p===null)p=Kh(),Ue.updateQueue=p,p.events=[c];else{var h=p.events;h===null?p.events=[c]:h.push(c)}}function Fz(c){var p=Xt().memoizedState;return hX({ref:p,nextImpl:c}),function(){if((ut&2)!==0)throw Error(n(440));return p.impl.apply(void 0,arguments)}}function Hz(c,p){return Jh(4,2,c,p)}function qz(c,p){return Jh(4,4,c,p)}function Uz(c,p){if(typeof p=="function"){c=c();var h=p(c);return function(){typeof h=="function"?h():p(null)}}if(p!=null)return c=c(),p.current=c,function(){p.current=null}}function Gz(c,p,h){h=h!=null?h.concat([c]):null,Jh(4,4,Uz.bind(null,p,c),h)}function P1(){}function Vz(c,p){var h=Xt();p=p===void 0?null:p;var x=h.memoizedState;return p!==null&&f1(p,x[1])?x[0]:(h.memoizedState=[c,p],c)}function Xz(c,p){var h=Xt();p=p===void 0?null:p;var x=h.memoizedState;if(p!==null&&f1(p,x[1]))return x[0];if(x=c(),gl){Aa(!0);try{c()}finally{Aa(!1)}}return h.memoizedState=[x,p],x}function T1(c,p,h){return h===void 0||(Is&1073741824)!==0&&(tt&261930)===0?c.memoizedState=p:(c.memoizedState=h,c=K6(),Ue.lanes|=c,Ui|=c,h)}function Kz(c,p,h,x){return Cn(h,p)?h:td.current!==null?(c=T1(c,h,x),Cn(c,p)||(ar=!0),c):(Is&42)===0||(Is&1073741824)!==0&&(tt&261930)===0?(ar=!0,c.memoizedState=h):(c=K6(),Ue.lanes|=c,Ui|=c,p)}function Qz(c,p,h,x,w){var z=U.p;U.p=z!==0&&8>z?z:8;var D=I.T,L={};I.T=L,C1(c,!1,p,h);try{var X=w(),ne=I.S;if(ne!==null&&ne(L,X),X!==null&&typeof X=="object"&&typeof X.then=="function"){var oe=dX(X,x);jp(c,p,oe,Dn(c))}else jp(c,p,x,Dn(c))}catch(pe){jp(c,p,{then:function(){},status:"rejected",reason:pe},Dn())}finally{U.p=z,D!==null&&L.types!==null&&(D.types=L.types),I.T=D}}function mX(){}function A1(c,p,h,x){if(c.tag!==5)throw Error(n(476));var w=Yz(c).queue;Qz(c,w,p,q,h===null?mX:function(){return Zz(c),h(x)})}function Yz(c){var p=c.memoizedState;if(p!==null)return p;p={memoizedState:q,baseState:q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bs,lastRenderedState:q},next:null};var h={};return p.next={memoizedState:h,baseState:h,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bs,lastRenderedState:h},next:null},c.memoizedState=p,c=c.alternate,c!==null&&(c.memoizedState=p),p}function Zz(c){var p=Yz(c);p.next===null&&(p=c.alternate.memoizedState),jp(c,p.next.queue,{},Dn())}function z1(){return Or(Lp)}function Jz(){return Xt().memoizedState}function e6(){return Xt().memoizedState}function xX(c){for(var p=c.return;p!==null;){switch(p.tag){case 24:case 3:var h=Dn();c=Li(h);var x=Wi(p,c,h);x!==null&&(bn(x,p,h),xp(x,p,h)),p={cache:n1()},c.payload=p;return}p=p.return}}function yX(c,p,h){var x=Dn();h={lane:x,revertLane:0,gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},em(c)?r6(p,h):(h=Gb(c,p,h,x),h!==null&&(bn(h,c,x),n6(h,p,x)))}function t6(c,p,h){var x=Dn();jp(c,p,h,x)}function jp(c,p,h,x){var w={lane:x,revertLane:0,gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null};if(em(c))r6(p,w);else{var z=c.alternate;if(c.lanes===0&&(z===null||z.lanes===0)&&(z=p.lastRenderedReducer,z!==null))try{var D=p.lastRenderedState,L=z(D,h);if(w.hasEagerState=!0,w.eagerState=L,Cn(L,D))return Rh(c,p,w,0),wt===null&&Nh(),!1}catch{}finally{}if(h=Gb(c,p,w,x),h!==null)return bn(h,c,x),n6(h,p,x),!0}return!1}function C1(c,p,h,x){if(x={lane:2,revertLane:o2(),gesture:null,action:x,hasEagerState:!1,eagerState:null,next:null},em(c)){if(p)throw Error(n(479))}else p=Gb(c,h,x,2),p!==null&&bn(p,c,2)}function em(c){var p=c.alternate;return c===Ue||p!==null&&p===Ue}function r6(c,p){rd=Vh=!0;var h=c.pending;h===null?p.next=p:(p.next=h.next,h.next=p),c.pending=p}function n6(c,p,h){if((h&4194048)!==0){var x=p.lanes;x&=c.pendingLanes,h|=x,p.lanes=h,un(c,h)}}var wp={readContext:Or,use:Qh,useCallback:$t,useContext:$t,useEffect:$t,useImperativeHandle:$t,useLayoutEffect:$t,useInsertionEffect:$t,useMemo:$t,useReducer:$t,useRef:$t,useState:$t,useDebugValue:$t,useDeferredValue:$t,useTransition:$t,useSyncExternalStore:$t,useId:$t,useHostTransitionStatus:$t,useFormState:$t,useActionState:$t,useOptimistic:$t,useMemoCache:$t,useCacheRefresh:$t};wp.useEffectEvent=$t;var a6={readContext:Or,use:Qh,useCallback:function(c,p){return Jr().memoizedState=[c,p===void 0?null:p],c},useContext:Or,useEffect:$z,useImperativeHandle:function(c,p,h){h=h!=null?h.concat([c]):null,Zh(4194308,4,Uz.bind(null,p,c),h)},useLayoutEffect:function(c,p){return Zh(4194308,4,c,p)},useInsertionEffect:function(c,p){Zh(4,2,c,p)},useMemo:function(c,p){var h=Jr();p=p===void 0?null:p;var x=c();if(gl){Aa(!0);try{c()}finally{Aa(!1)}}return h.memoizedState=[x,p],x},useReducer:function(c,p,h){var x=Jr();if(h!==void 0){var w=h(p);if(gl){Aa(!0);try{h(p)}finally{Aa(!1)}}}else w=p;return x.memoizedState=x.baseState=w,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:c,lastRenderedState:w},x.queue=c,c=c.dispatch=yX.bind(null,Ue,c),[x.memoizedState,c]},useRef:function(c){var p=Jr();return c={current:c},p.memoizedState=c},useState:function(c){c=j1(c);var p=c.queue,h=t6.bind(null,Ue,p);return p.dispatch=h,[c.memoizedState,h]},useDebugValue:P1,useDeferredValue:function(c,p){var h=Jr();return T1(h,c,p)},useTransition:function(){var c=j1(!1);return c=Qz.bind(null,Ue,c.queue,!0,!1),Jr().memoizedState=c,[!1,c]},useSyncExternalStore:function(c,p,h){var x=Ue,w=Jr();if(nt){if(h===void 0)throw Error(n(407));h=h()}else{if(h=p(),wt===null)throw Error(n(349));(tt&127)!==0||Pz(x,p,h)}w.memoizedState=h;var z={value:h,getSnapshot:p};return w.queue=z,$z(Az.bind(null,x,z,c),[c]),x.flags|=2048,ad(9,{destroy:void 0},Tz.bind(null,x,z,h,p),null),h},useId:function(){var c=Jr(),p=wt.identifierPrefix;if(nt){var h=Ja,x=Za;h=(x&~(1<<32-$r(x)-1)).toString(32)+h,p="_"+p+"R_"+h,h=Xh++,0<h&&(p+="H"+h.toString(32)),p+="_"}else h=uX++,p="_"+p+"r_"+h.toString(32)+"_";return c.memoizedState=p},useHostTransitionStatus:z1,useFormState:_z,useActionState:_z,useOptimistic:function(c){var p=Jr();p.memoizedState=p.baseState=c;var h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return p.queue=h,p=C1.bind(null,Ue,!0,h),h.dispatch=p,[c,p]},useMemoCache:b1,useCacheRefresh:function(){return Jr().memoizedState=xX.bind(null,Ue)},useEffectEvent:function(c){var p=Jr(),h={impl:c};return p.memoizedState=h,function(){if((ut&2)!==0)throw Error(n(440));return h.impl.apply(void 0,arguments)}}},E1={readContext:Or,use:Qh,useCallback:Vz,useContext:Or,useEffect:k1,useImperativeHandle:Gz,useInsertionEffect:Hz,useLayoutEffect:qz,useMemo:Xz,useReducer:Yh,useRef:Wz,useState:function(){return Yh(Bs)},useDebugValue:P1,useDeferredValue:function(c,p){var h=Xt();return Kz(h,yt.memoizedState,c,p)},useTransition:function(){var c=Yh(Bs)[0],p=Xt().memoizedState;return[typeof c=="boolean"?c:Sp(c),p]},useSyncExternalStore:kz,useId:Jz,useHostTransitionStatus:z1,useFormState:Iz,useActionState:Iz,useOptimistic:function(c,p){var h=Xt();return Ez(h,yt,c,p)},useMemoCache:b1,useCacheRefresh:e6};E1.useEffectEvent=Fz;var s6={readContext:Or,use:Qh,useCallback:Vz,useContext:Or,useEffect:k1,useImperativeHandle:Gz,useInsertionEffect:Hz,useLayoutEffect:qz,useMemo:Xz,useReducer:S1,useRef:Wz,useState:function(){return S1(Bs)},useDebugValue:P1,useDeferredValue:function(c,p){var h=Xt();return yt===null?T1(h,c,p):Kz(h,yt.memoizedState,c,p)},useTransition:function(){var c=S1(Bs)[0],p=Xt().memoizedState;return[typeof c=="boolean"?c:Sp(c),p]},useSyncExternalStore:kz,useId:Jz,useHostTransitionStatus:z1,useFormState:Lz,useActionState:Lz,useOptimistic:function(c,p){var h=Xt();return yt!==null?Ez(h,yt,c,p):(h.baseState=c,[c,h.queue.dispatch])},useMemoCache:b1,useCacheRefresh:e6};s6.useEffectEvent=Fz;function O1(c,p,h,x){p=c.memoizedState,h=h(x,p),h=h==null?p:f({},p,h),c.memoizedState=h,c.lanes===0&&(c.updateQueue.baseState=h)}var M1={enqueueSetState:function(c,p,h){c=c._reactInternals;var x=Dn(),w=Li(x);w.payload=p,h!=null&&(w.callback=h),p=Wi(c,w,x),p!==null&&(bn(p,c,x),xp(p,c,x))},enqueueReplaceState:function(c,p,h){c=c._reactInternals;var x=Dn(),w=Li(x);w.tag=1,w.payload=p,h!=null&&(w.callback=h),p=Wi(c,w,x),p!==null&&(bn(p,c,x),xp(p,c,x))},enqueueForceUpdate:function(c,p){c=c._reactInternals;var h=Dn(),x=Li(h);x.tag=2,p!=null&&(x.callback=p),p=Wi(c,x,h),p!==null&&(bn(p,c,h),xp(p,c,h))}};function i6(c,p,h,x,w,z,D){return c=c.stateNode,typeof c.shouldComponentUpdate=="function"?c.shouldComponentUpdate(x,z,D):p.prototype&&p.prototype.isPureReactComponent?!cp(h,x)||!cp(w,z):!0}function o6(c,p,h,x){c=p.state,typeof p.componentWillReceiveProps=="function"&&p.componentWillReceiveProps(h,x),typeof p.UNSAFE_componentWillReceiveProps=="function"&&p.UNSAFE_componentWillReceiveProps(h,x),p.state!==c&&M1.enqueueReplaceState(p,p.state,null)}function fl(c,p){var h=p;if("ref"in p){h={};for(var x in p)x!=="ref"&&(h[x]=p[x])}if(c=c.defaultProps){h===p&&(h=f({},h));for(var w in c)h[w]===void 0&&(h[w]=c[w])}return h}function l6(c){Mh(c)}function c6(c){console.error(c)}function d6(c){Mh(c)}function tm(c,p){try{var h=c.onUncaughtError;h(p.value,{componentStack:p.stack})}catch(x){setTimeout(function(){throw x})}}function u6(c,p,h){try{var x=c.onCaughtError;x(h.value,{componentStack:h.stack,errorBoundary:p.tag===1?p.stateNode:null})}catch(w){setTimeout(function(){throw w})}}function N1(c,p,h){return h=Li(h),h.tag=3,h.payload={element:null},h.callback=function(){tm(c,p)},h}function p6(c){return c=Li(c),c.tag=3,c}function g6(c,p,h,x){var w=h.type.getDerivedStateFromError;if(typeof w=="function"){var z=x.value;c.payload=function(){return w(z)},c.callback=function(){u6(p,h,x)}}var D=h.stateNode;D!==null&&typeof D.componentDidCatch=="function"&&(c.callback=function(){u6(p,h,x),typeof w!="function"&&(Gi===null?Gi=new Set([this]):Gi.add(this));var L=x.stack;this.componentDidCatch(x.value,{componentStack:L!==null?L:""})})}function bX(c,p,h,x,w){if(h.flags|=32768,x!==null&&typeof x=="object"&&typeof x.then=="function"){if(p=h.alternate,p!==null&&Qc(p,h,w,!0),h=On.current,h!==null){switch(h.tag){case 31:case 13:return ta===null?gm():h.alternate===null&&Ft===0&&(Ft=3),h.flags&=-257,h.flags|=65536,h.lanes=w,x===Fh?h.flags|=16384:(p=h.updateQueue,p===null?h.updateQueue=new Set([x]):p.add(x),a2(c,x,w)),!1;case 22:return h.flags|=65536,x===Fh?h.flags|=16384:(p=h.updateQueue,p===null?(p={transitions:null,markerInstances:null,retryQueue:new Set([x])},h.updateQueue=p):(h=p.retryQueue,h===null?p.retryQueue=new Set([x]):h.add(x)),a2(c,x,w)),!1}throw Error(n(435,h.tag))}return a2(c,x,w),gm(),!1}if(nt)return p=On.current,p!==null?((p.flags&65536)===0&&(p.flags|=256),p.flags|=65536,p.lanes=w,x!==Zb&&(c=Error(n(422),{cause:x}
vendor: 10,919 bytes, line 33
33),pp(Yn(c,h)))):(x!==Zb&&(p=Error(n(423),{cause:x}),pp(Yn(p,h))),c=c.current.alternate,c.flags|=65536,w&=-w,c.lanes|=w,x=Yn(x,h),w=N1(c.stateNode,x,w),c1(c,w),Ft!==4&&(Ft=2)),!1;var z=Error(n(520),{cause:x});if(z=Yn(z,h),Op===null?Op=[z]:Op.push(z),Ft!==4&&(Ft=2),p===null)return!0;x=Yn(x,h),h=p;do{switch(h.tag){case 3:return h.flags|=65536,c=w&-w,h.lanes|=c,c=N1(h.stateNode,x,c),c1(h,c),!1;case 1:if(p=h.type,z=h.stateNode,(h.flags&128)===0&&(typeof p.getDerivedStateFromError=="function"||z!==null&&typeof z.componentDidCatch=="function"&&(Gi===null||!Gi.has(z))))return h.flags|=65536,w&=-w,h.lanes|=w,w=p6(w),g6(w,c,h,x),c1(h,w),!1}h=h.return}while(h!==null);return!1}var R1=Error(n(461)),ar=!1;function Mr(c,p,h,x){p.child=c===null?xz(p,null,h,x):pl(p,c.child,h,x)}function f6(c,p,h,x,w){h=h.render;var z=p.ref;if("ref"in x){var D={};for(var L in x)L!=="ref"&&(D[L]=x[L])}else D=x;return ll(p),x=h1(c,p,h,D,z,w),L=m1(),c!==null&&!ar?(x1(c,p,w),Ls(c,p,w)):(nt&&L&&Qb(p),p.flags|=1,Mr(c,p,x,w),p.child)}function h6(c,p,h,x,w){if(c===null){var z=h.type;return typeof z=="function"&&!Vb(z)&&z.defaultProps===void 0&&h.compare===null?(p.tag=15,p.type=z,m6(c,p,z,x,w)):(c=_h(h.type,null,x,p,p.mode,w),c.ref=p.ref,c.return=p,p.child=c)}if(z=c.child,!F1(c,w)){var D=z.memoizedProps;if(h=h.compare,h=h!==null?h:cp,h(D,x)&&c.ref===p.ref)return Ls(c,p,w)}return p.flags|=1,c=Ns(z,x),c.ref=p.ref,c.return=p,p.child=c}function m6(c,p,h,x,w){if(c!==null){var z=c.memoizedProps;if(cp(z,x)&&c.ref===p.ref)if(ar=!1,p.pendingProps=x=z,F1(c,w))(c.flags&131072)!==0&&(ar=!0);else return p.lanes=c.lanes,Ls(c,p,w)}return D1(c,p,h,x,w)}function x6(c,p,h,x){var w=x.children,z=c!==null?c.memoizedState:null;if(c===null&&p.stateNode===null&&(p.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),x.mode==="hidden"){if((p.flags&128)!==0){if(z=z!==null?z.baseLanes|h:h,c!==null){for(x=p.child=c.child,w=0;x!==null;)w=w|x.lanes|x.childLanes,x=x.sibling;x=w&~z}else x=0,p.child=null;return y6(c,p,z,h,x)}if((h&536870912)!==0)p.memoizedState={baseLanes:0,cachePool:null},c!==null&&Wh(p,z!==null?z.cachePool:null),z!==null?vz(p,z):u1(),Sz(p);else return x=p.lanes=536870912,y6(c,p,z!==null?z.baseLanes|h:h,h,x)}else z!==null?(Wh(p,z.cachePool),vz(p,z),Fi(),p.memoizedState=null):(c!==null&&Wh(p,null),u1(),Fi());return Mr(c,p,w,h),p.child}function kp(c,p){return c!==null&&c.tag===22||p.stateNode!==null||(p.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),p.sibling}function y6(c,p,h,x,w){var z=s1();return z=z===null?null:{parent:rr._currentValue,pool:z},p.memoizedState={baseLanes:h,cachePool:z},c!==null&&Wh(p,null),u1(),Sz(p),c!==null&&Qc(c,p,x,!0),p.childLanes=w,null}function rm(c,p){return p=am({mode:p.mode,children:p.children},c.mode),p.ref=c.ref,c.child=p,p.return=c,p}function b6(c,p,h){return pl(p,c.child,null,h),c=rm(p,p.pendingProps),c.flags|=2,Mn(p),p.memoizedState=null,c}function vX(c,p,h){var x=p.pendingProps,w=(p.flags&128)!==0;if(p.flags&=-129,c===null){if(nt){if(x.mode==="hidden")return c=rm(p,x),p.lanes=536870912,kp(null,c);if(g1(p),(c=Ct)?(c=OC(c,ea),c=c!==null&&c.data==="&"?c:null,c!==null&&(p.memoizedState={dehydrated:c,treeContext:Ri!==null?{id:Za,overflow:Ja}:null,retryLane:536870912,hydrationErrors:null},h=rz(c),h.return=p,p.child=h,Er=p,Ct=null)):c=null,c===null)throw _i(p);return p.lanes=536870912,null}return rm(p,x)}var z=c.memoizedState;if(z!==null){var D=z.dehydrated;if(g1(p),w)if(p.flags&256)p.flags&=-257,p=b6(c,p,h);else if(p.memoizedState!==null)p.child=c.child,p.flags|=128,p=null;else throw Error(n(558));else if(ar||Qc(c,p,h,!1),w=(h&c.childLanes)!==0,ar||w){if(x=wt,x!==null&&(D=pn(x,h),D!==0&&D!==z.retryLane))throw z.retryLane=D,al(c,D),bn(x,c,D),R1;gm(),p=b6(c,p,h)}else c=z.treeContext,Ct=ra(D.nextSibling),Er=p,nt=!0,Di=null,ea=!1,c!==null&&sz(p,c),p=rm(p,x),p.flags|=4096;return p}return c=Ns(c.child,{mode:x.mode,children:x.children}),c.ref=p.ref,p.child=c,c.return=p,c}function nm(c,p){var h=p.ref;if(h===null)c!==null&&c.ref!==null&&(p.flags|=4194816);else{if(typeof h!="function"&&typeof h!="object")throw Error(n(284));(c===null||c.ref!==h)&&(p.flags|=4194816)}}function D1(c,p,h,x,w){return ll(p),h=h1(c,p,h,x,void 0,w),x=m1(),c!==null&&!ar?(x1(c,p,w),Ls(c,p,w)):(nt&&x&&Qb(p),p.flags|=1,Mr(c,p,h,w),p.child)}function v6(c,p,h,x,w,z){return ll(p),p.updateQueue=null,h=wz(p,x,h,w),jz(c),x=m1(),c!==null&&!ar?(x1(c,p,z),Ls(c,p,z)):(nt&&x&&Qb(p),p.flags|=1,Mr(c,p,h,z),p.child)}function S6(c,p,h,x,w){if(ll(p),p.stateNode===null){var z=Gc,D=h.contextType;typeof D=="object"&&D!==null&&(z=Or(D)),z=new h(x,z),p.memoizedState=z.state!==null&&z.state!==void 0?z.state:null,z.updater=M1,p.stateNode=z,z._reactInternals=p,z=p.stateNode,z.props=x,z.state=p.memoizedState,z.refs={},o1(p),D=h.contextType,z.context=typeof D=="object"&&D!==null?Or(D):Gc,z.state=p.memoizedState,D=h.getDerivedStateFromProps,typeof D=="function"&&(O1(p,h,D,x),z.state=p.memoizedState),typeof h.getDerivedStateFromProps=="function"||typeof z.getSnapshotBeforeUpdate=="function"||typeof z.UNSAFE_componentWillMount!="function"&&typeof z.componentWillMount!="function"||(D=z.state,typeof z.componentWillMount=="function"&&z.componentWillMount(),typeof z.UNSAFE_componentWillMount=="function"&&z.UNSAFE_componentWillMount(),D!==z.state&&M1.enqueueReplaceState(z,z.state,null),bp(p,x,z,w),yp(),z.state=p.memoizedState),typeof z.componentDidMount=="function"&&(p.flags|=4194308),x=!0}else if(c===null){z=p.stateNode;var L=p.memoizedProps,X=fl(h,L);z.props=X;var ne=z.context,oe=h.contextType;D=Gc,typeof oe=="object"&&oe!==null&&(D=Or(oe));var pe=h.getDerivedStateFromProps;oe=typeof pe=="function"||typeof z.getSnapshotBeforeUpdate=="function",L=p.pendingProps!==L,oe||typeof z.UNSAFE_componentWillReceiveProps!="function"&&typeof z.componentWillReceiveProps!="function"||(L||ne!==D)&&o6(p,z,x,D),Bi=!1;var ae=p.memoizedState;z.state=ae,bp(p,x,z,w),yp(),ne=p.memoizedState,L||ae!==ne||Bi?(typeof pe=="function"&&(O1(p,h,pe,x),ne=p.memoizedState),(X=Bi||i6(p,h,X,x,ae,ne,D))?(oe||typeof z.UNSAFE_componentWillMount!="function"&&typeof z.componentWillMount!="function"||(typeof z.componentWillMount=="function"&&z.componentWillMount(),typeof z.UNSAFE_componentWillMount=="function"&&z.UNSAFE_componentWillMount()),typeof z.componentDidMount=="function"&&(p.flags|=4194308)):(typeof z.componentDidMount=="function"&&(p.flags|=4194308),p.memoizedProps=x,p.memoizedState=ne),z.props=x,z.state=ne,z.context=D,x=X):(typeof z.componentDidMount=="function"&&(p.flags|=4194308),x=!1)}else{z=p.stateNode,l1(c,p),D=p.memoizedProps,oe=fl(h,D),z.props=oe,pe=p.pendingProps,ae=z.context,ne=h.contextType,X=Gc,typeof ne=="object"&&ne!==null&&(X=Or(ne)),L=h.getDerivedStateFromProps,(ne=typeof L=="function"||typeof z.getSnapshotBeforeUpdate=="function")||typeof z.UNSAFE_componentWillReceiveProps!="function"&&typeof z.componentWillReceiveProps!="function"||(D!==pe||ae!==X)&&o6(p,z,x,X),Bi=!1,ae=p.memoizedState,z.state=ae,bp(p,x,z,w),yp();var ie=p.memoizedState;D!==pe||ae!==ie||Bi||c!==null&&c.dependencies!==null&&Bh(c.dependencies)?(typeof L=="function"&&(O1(p,h,L,x),ie=p.memoizedState),(oe=Bi||i6(p,h,oe,x,ae,ie,X)||c!==null&&c.dependencies!==null&&Bh(c.dependencies))?(ne||typeof z.UNSAFE_componentWillUpdate!="function"&&typeof z.componentWillUpdate!="function"||(typeof z.componentWillUpdate=="function"&&z.componentWillUpdate(x,ie,X),typeof z.UNSAFE_componentWillUpdate=="function"&&z.UNSAFE_componentWillUpdate(x,ie,X)),typeof z.componentDidUpdate=="function"&&(p.flags|=4),typeof z.getSnapshotBeforeUpdate=="function"&&(p.flags|=1024)):(typeof z.componentDidUpdate!="function"||D===c.memoizedProps&&ae===c.memoizedState||(p.flags|=4),typeof z.getSnapshotBeforeUpdate!="function"||D===c.memoizedProps&&ae===c.memoizedState||(p.flags|=1024),p.memoizedProps=x,p.memoizedState=ie),z.props=x,z.state=ie,z.context=X,x=oe):(typeof z.componentDidUpdate!="function"||D===c.memoizedProps&&ae===c.memoizedState||(p.flags|=4),typeof z.getSnapshotBeforeUpdate!="function"||D===c.memoizedProps&&ae===c.memoizedState||(p.flags|=1024),x=!1)}return z=x,nm(c,p),x=(p.flags&128)!==0,z||x?(z=p.stateNode,h=x&&typeof h.getDerivedStateFromError!="function"?null:z.render(),p.flags|=1,c!==null&&x?(p.child=pl(p,c.child,null,w),p.child=pl(p,null,h,w)):Mr(c,p,h,w),p.memoizedState=z.state,c=p.child):c=Ls(c,p,w),c}function j6(c,p,h,x){return il(),p.flags|=256,Mr(c,p,h,x),p.child}var _1={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function I1(c){return{baseLanes:c,cachePool:uz()}}function B1(c,p,h){return c=c!==null?c.childLanes&~h:0,p&&(c|=Rn),c}function w6(c,p,h){var x=p.pendingProps,w=!1,z=(p.flags&128)!==0,D;if((D=z)||(D=c!==null&&c.memoizedState===null?!1:(Vt.current&2)!==0),D&&(w=!0,p.flags&=-129),D=(p.flags&32)!==0,p.flags&=-33,c===null){if(nt){if(w?$i(p):Fi(),(c=Ct)?(c=OC(c,ea),c=c!==null&&c.data!=="&"?c:null,c!==null&&(p.memoizedState={dehydrated:c,treeContext:Ri!==null?{id:Za,overflow:Ja}:null,retryLane:536870912,hydrationErrors:null},h=rz(c),h.return=p,p.child=h,Er=p,Ct=null)):c=null,c===null)throw _i(p);return v2(c)?p.lanes=32:p.lanes=536870912,null}var L=x.children;return x=x.fallback,w?(Fi(),w=p.mode,L=am({mode:"hidden",children:L},w),x=sl(x,w,h,null),L.return=p,x.return=p,L.sibling=x,p.child=L,x=p.child,x.memoizedState=I1(h),x.childLanes=B1(c,D,h),p.memoizedState=_1,kp(null,x)):($i(p),L1(p,L))}var X=c.memoizedState;if(X!==null&&(L=X.dehydrated,L!==null)){if(z)p.flags&256?($i(p),p.flags&=-257,p=W1(c,p,h)):p.memoizedState!==null?(Fi(),p.child=c.child,p.flags|=128,p=null):(Fi(),L=x.fallback,w=p.mode,x=am({mode:"visible",children:x.children},w),L=sl(L,w,h,null),L.flags|=2,x.return=p,L.return=p,x.sibling=L,p.child=x,pl(p,c.child,null,h),x=p.child,x.memoizedState=I1(h),x.childLanes=B1(c,D,h),p.memoizedState=_1,p=kp(null,x));else if($i(p),v2(L)){if(D=L.nextSibling&&L.nextSibling.dataset,D)var ne=D.dgst;D=ne,x=Error(n(419)),x.stack="",x.digest=D,pp({value:x,source:null,stack:null}),p=W1(c,p,h)}else if(ar||Qc(c,p,h,!1),D=(h&c.childLanes)!==0,ar||D){if(D=wt,D!==null&&(x=pn(D,h),x!==0&&x!==X.retryLane))throw X.retryLane=x,al(c,x),bn(D,c,x),R1;b2(L)||gm(),p=W1(c,p,h)}else b2(L)?(p.flags|=192,p.child=c.child,p=null):(c=X.treeContext,Ct=ra(L.nextSibling),Er=p,nt=!0,Di=null,ea=!1,c!==null&&sz(p,c),p=L1(p,x.children),p.flags|=4096);return p}return w?(Fi(),L=x.fallback,w=p.mode,X=c.child,ne=X.sibling,x=Ns(X,{mode:"hidden",children:x.children}),x.subtreeFlags=X.subtreeFlags&65011712,ne!==null?L=Ns(ne,L):(L=sl(L,w,h,null),L.flags|=2),L.return=p,x.return=p,x.sibling=L,p.child=x,kp(null,x),x=p.child,L=c.child.memoizedState,L===null?L=I1(h):(w=L.cachePool,w!==null?(X=rr._currentValue,w=w.parent!==X?{parent:X,pool:X}:w):w=uz(),L={baseLanes:L.baseLanes|h,cachePool:w}),x.memoizedState=L,x.childLanes=B1(c,D,h),p.memoizedState=_1,kp(c.child,x)):($i(p),h=c.child,c=h.sibling,h=Ns(h,{mode:"visible",children:x.children}
vendor: 5,353 bytes, line 33
33),h.return=p,h.sibling=null,c!==null&&(D=p.deletions,D===null?(p.deletions=[c],p.flags|=16):D.push(c)),p.child=h,p.memoizedState=null,h)}function L1(c,p){return p=am({mode:"visible",children:p},c.mode),p.return=c,c.child=p}function am(c,p){return c=En(22,c,null,p),c.lanes=0,c}function W1(c,p,h){return pl(p,c.child,null,h),c=L1(p,p.pendingProps.children),c.flags|=2,p.memoizedState=null,c}function k6(c,p,h){c.lanes|=p;var x=c.alternate;x!==null&&(x.lanes|=p),t1(c.return,p,h)}function $1(c,p,h,x,w,z){var D=c.memoizedState;D===null?c.memoizedState={isBackwards:p,rendering:null,renderingStartTime:0,last:x,tail:h,tailMode:w,treeForkCount:z}:(D.isBackwards=p,D.rendering=null,D.renderingStartTime=0,D.last=x,D.tail=h,D.tailMode=w,D.treeForkCount=z)}function P6(c,p,h){var x=p.pendingProps,w=x.revealOrder,z=x.tail;x=x.children;var D=Vt.current,L=(D&2)!==0;if(L?(D=D&1|2,p.flags|=128):D&=1,Q(Vt,D),Mr(c,p,x,h),x=nt?up:0,!L&&c!==null&&(c.flags&128)!==0)e:for(c=p.child;c!==null;){if(c.tag===13)c.memoizedState!==null&&k6(c,h,p);else if(c.tag===19)k6(c,h,p);else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===p)break e;for(;c.sibling===null;){if(c.return===null||c.return===p)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}switch(w){case"forwards":for(h=p.child,w=null;h!==null;)c=h.alternate,c!==null&&Gh(c)===null&&(w=h),h=h.sibling;h=w,h===null?(w=p.child,p.child=null):(w=h.sibling,h.sibling=null),$1(p,!1,w,h,z,x);break;case"backwards":case"unstable_legacy-backwards":for(h=null,w=p.child,p.child=null;w!==null;){if(c=w.alternate,c!==null&&Gh(c)===null){p.child=w;break}c=w.sibling,w.sibling=h,h=w,w=c}$1(p,!0,h,null,z,x);break;case"together":$1(p,!1,null,null,void 0,x);break;default:p.memoizedState=null}return p.child}function Ls(c,p,h){if(c!==null&&(p.dependencies=c.dependencies),Ui|=p.lanes,(h&p.childLanes)===0)if(c!==null){if(Qc(c,p,h,!1),(h&p.childLanes)===0)return null}else return null;if(c!==null&&p.child!==c.child)throw Error(n(153));if(p.child!==null){for(c=p.child,h=Ns(c,c.pendingProps),p.child=h,h.return=p;c.sibling!==null;)c=c.sibling,h=h.sibling=Ns(c,c.pendingProps),h.return=p;h.sibling=null}return p.child}function F1(c,p){return(c.lanes&p)!==0?!0:(c=c.dependencies,!!(c!==null&&Bh(c)))}function SX(c,p,h){switch(p.tag){case 3:ze(p,p.stateNode.containerInfo),Ii(p,rr,c.memoizedState.cache),il();break;case 27:case 5:Oe(p);break;case 4:ze(p,p.stateNode.containerInfo);break;case 10:Ii(p,p.type,p.memoizedProps.value);break;case 31:if(p.memoizedState!==null)return p.flags|=128,g1(p),null;break;case 13:var x=p.memoizedState;if(x!==null)return x.dehydrated!==null?($i(p),p.flags|=128,null):(h&p.child.childLanes)!==0?w6(c,p,h):($i(p),c=Ls(c,p,h),c!==null?c.sibling:null);$i(p);break;case 19:var w=(c.flags&128)!==0;if(x=(h&p.childLanes)!==0,x||(Qc(c,p,h,!1),x=(h&p.childLanes)!==0),w){if(x)return P6(c,p,h);p.flags|=128}if(w=p.memoizedState,w!==null&&(w.rendering=null,w.tail=null,w.lastEffect=null),Q(Vt,Vt.current),x)break;return null;case 22:return p.lanes=0,x6(c,p,h,p.pendingProps);case 24:Ii(p,rr,c.memoizedState.cache)}return Ls(c,p,h)}function T6(c,p,h){if(c!==null)if(c.memoizedProps!==p.pendingProps)ar=!0;else{if(!F1(c,h)&&(p.flags&128)===0)return ar=!1,SX(c,p,h);ar=(c.flags&131072)!==0}else ar=!1,nt&&(p.flags&1048576)!==0&&az(p,up,p.index);switch(p.lanes=0,p.tag){case 16:e:{var x=p.pendingProps;if(c=dl(p.elementType),p.type=c,typeof c=="function")Vb(c)?(x=fl(c,x),p.tag=1,p=S6(null,p,c,x,h)):(p.tag=0,p=D1(null,p,c,x,h));else{if(c!=null){var w=c.$$typeof;if(w===O){p.tag=11,p=f6(null,p,c,x,h);break e}else if(w===A){p.tag=14,p=h6(null,p,c,x,h);break e}}throw p=V(c)||c,Error(n(306,p,""))}}return p;case 0:return D1(c,p,p.type,p.pendingProps,h);case 1:return x=p.type,w=fl(x,p.pendingProps),S6(c,p,x,w,h);case 3:e:{if(ze(p,p.stateNode.containerInfo),c===null)throw Error(n(387));x=p.pendingProps;var z=p.memoizedState;w=z.element,l1(c,p),bp(p,x,null,h);var D=p.memoizedState;if(x=D.cache,Ii(p,rr,x),x!==z.cache&&r1(p,[rr],h,!0),yp(),x=D.element,z.isDehydrated)if(z={element:x,isDehydrated:!1,cache:D.cache},p.updateQueue.baseState=z,p.memoizedState=z,p.flags&256){p=j6(c,p,x,h);break e}else if(x!==w){w=Yn(Error(n(424)),p),pp(w),p=j6(c,p,x,h);break e}else{switch(c=p.stateNode.containerInfo,c.nodeType){case 9:c=c.body;break;default:c=c.nodeName==="HTML"?c.ownerDocument.body:c}for(Ct=ra(c.firstChild),Er=p,nt=!0,Di=null,ea=!0,h=xz(p,null,x,h),p.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling}else{if(il(),x===w){p=Ls(c,p,h);break e}Mr(c,p,x,h)}p=p.child}return p;case 26:return nm(c,p),c===null?(h=IC(p.type,null,p.pendingProps,null))?p.memoizedState=h:nt||(h=p.type,c=p.pendingProps,x=vm(xe.current).createElement(h),x[Cr]=p,x[gn]=c,Nr(x,h,c),jr(x),p.stateNode=x):p.memoizedState=IC(p.type,c.memoizedProps,p.pendingProps,c.memoizedState),null;case 27:return Oe(p),c===null&&nt&&(x=p.stateNode=RC(p.type,p.pendingProps,xe.current),Er=p,ea=!0,w=Ct,Qi(p.type)?(S2=w,Ct=ra(x.firstChild)):Ct=w),Mr(c,p,p.pendingProps.children,h),nm(c,p),c===null&&(p.flags|=4194304),p.child;case 5:return c===null&&nt&&((w=x=Ct)&&(x=YX(x,p.type,p.pendingProps,ea),x!==null?(p.stateNode=x,Er=p,Ct=ra(x.firstChild),ea=!1,w=!0):w=!1),w||_i(p)),Oe(p),w=p.type,z=p.pendingProps,D=c!==null?c.memoizedProps:null,x=z.children,m2(w,z)?x=null:D!==null&&m2(w,D)&&(p.flags|=32),p.memoizedState!==null&&(w=h1(c,p,pX,null,
vendor: 4,206 bytes, line 33
33null,h),Lp._currentValue=w),nm(c,p),Mr(c,p,x,h),p.child;case 6:return c===null&&nt&&((c=h=Ct)&&(h=ZX(h,p.pendingProps,ea),h!==null?(p.stateNode=h,Er=p,Ct=null,c=!0):c=!1),c||_i(p)),null;case 13:return w6(c,p,h);case 4:return ze(p,p.stateNode.containerInfo),x=p.pendingProps,c===null?p.child=pl(p,null,x,h):Mr(c,p,x,h),p.child;case 11:return f6(c,p,p.type,p.pendingProps,h);case 7:return Mr(c,p,p.pendingProps,h),p.child;case 8:return Mr(c,p,p.pendingProps.children,h),p.child;case 12:return Mr(c,p,p.pendingProps.children,h),p.child;case 10:return x=p.pendingProps,Ii(p,p.type,x.value),Mr(c,p,x.children,h),p.child;case 9:return w=p.type._context,x=p.pendingProps.children,ll(p),w=Or(w),x=x(w),p.flags|=1,Mr(c,p,x,h),p.child;case 14:return h6(c,p,p.type,p.pendingProps,h);case 15:return m6(c,p,p.type,p.pendingProps,h);case 19:return P6(c,p,h);case 31:return vX(c,p,h);case 22:return x6(c,p,h,p.pendingProps);case 24:return ll(p),x=Or(rr),c===null?(w=s1(),w===null&&(w=wt,z=n1(),w.pooledCache=z,z.refCount++,z!==null&&(w.pooledCacheLanes|=h),w=z),p.memoizedState={parent:x,cache:w},o1(p),Ii(p,rr,w)):((c.lanes&h)!==0&&(l1(c,p),bp(p,null,null,h),yp()),w=c.memoizedState,z=p.memoizedState,w.parent!==x?(w={parent:x,cache:x},p.memoizedState=w,p.lanes===0&&(p.memoizedState=p.updateQueue.baseState=w),Ii(p,rr,x)):(x=z.cache,Ii(p,rr,x),x!==w.cache&&r1(p,[rr],h,!0))),Mr(c,p,p.pendingProps.children,h),p.child;case 29:throw p.pendingProps}throw Error(n(156,p.tag))}function Ws(c){c.flags|=4}function H1(c,p,h,x,w){if((p=(c.mode&32)!==0)&&(p=!1),p){if(c.flags|=16777216,(w&335544128)===w)if(c.stateNode.complete)c.flags|=8192;else if(J6())c.flags|=8192;else throw ul=Fh,i1}else c.flags&=-16777217}function A6(c,p){if(p.type!=="stylesheet"||(p.state.loading&4)!==0)c.flags&=-16777217;else if(c.flags|=16777216,!FC(p))if(J6())c.flags|=8192;else throw ul=Fh,i1}function sm(c,p){p!==null&&(c.flags|=4),c.flags&16384&&(p=c.tag!==22?Fr():536870912,c.lanes|=p,ld|=p)}function Pp(c,p){if(!nt)switch(c.tailMode){case"hidden":p=c.tail;for(var h=null;p!==null;)p.alternate!==null&&(h=p),p=p.sibling;h===null?c.tail=null:h.sibling=null;break;case"collapsed":h=c.tail;for(var x=null;h!==null;)h.alternate!==null&&(x=h),h=h.sibling;x===null?p||c.tail===null?c.tail=null:c.tail.sibling=null:x.sibling=null}}function Et(c){var p=c.alternate!==null&&c.alternate.child===c.child,h=0,x=0;if(p)for(var w=c.child;w!==null;)h|=w.lanes|w.childLanes,x|=w.subtreeFlags&65011712,x|=w.flags&65011712,w.return=c,w=w.sibling;else for(w=c.child;w!==null;)h|=w.lanes|w.childLanes,x|=w.subtreeFlags,x|=w.flags,w.return=c,w=w.sibling;return c.subtreeFlags|=x,c.childLanes=h,p}function jX(c,p,h){var x=p.pendingProps;switch(Yb(p),p.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Et(p),null;case 1:return Et(p),null;case 3:return h=p.stateNode,x=null,c!==null&&(x=c.memoizedState.cache),p.memoizedState.cache!==x&&(p.flags|=2048),_s(rr),fe(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(c===null||c.child===null)&&(Kc(p)?Ws(p):c===null||c.memoizedState.isDehydrated&&(p.flags&256)===0||(p.flags|=1024,Jb())),Et(p),null;case 26:var w=p.type,z=p.memoizedState;return c===null?(Ws(p),z!==null?(Et(p),A6(p,z)):(Et(p),H1(p,w,null,x,h))):z?z!==c.memoizedState?(Ws(p),Et(p),A6(p,z)):(Et(p),p.flags&=-16777217):(c=c.memoizedProps,c!==x&&Ws(p),Et(p),H1(p,w,c,x,h)),null;case 27:if(Ne(p),h=xe.current,w=p.type,c!==null&&p.stateNode!=null)c.memoizedProps!==x&&Ws(p);else{if(!x){if(p.stateNode===null)throw Error(n(166));return Et(p),null}c=re.current,Kc(p)?iz(p):(c=RC(w,x,h),p.stateNode=c,Ws(p))}return Et(p),null;case 5:if(Ne(p),w=p.type,c!==null&&p.stateNode!=null)c.memoizedProps!==x&&Ws(p);else{if(!x){if(p.stateNode===null)throw Error(n(166));return Et(p),null}if(z=re.current,Kc(p))iz(p);else{var D=vm(xe.current);switch(z){case 1:z=D.createElementNS("http://www.w3.org/2000/svg",w);break;case 2:z=D.createElementNS("http://www.w3.org/1998/Math/MathML",w);break;default:switch(w){case"svg":z=D.createElementNS("http://www.w3.org/2000/svg",w);break;case"math":z=D.createElementNS("http://www.w3.org/1998/Math/MathML",w);break;case"script":z=D.createElement("div"),z.innerHTML="<script><\/script>
33",z=z.removeChild(z.firstChild);break;case"select":z=typeof x.is=="string"?D.createElement("select",{is:x.is}):D.createElement("select"),x.multiple?z.multiple=!0:x.size&&(z.size=x.size);break;default:z=typeof x.is=="string"?D.createElement(w,{is:x.is}):D.createElement(w)}}z[Cr]=p,z[gn]=x;e:for(D=p.child;D!==null;){if(D.tag===5||D.tag===6)z.appendChild(D.stateNode);else if(D.tag!==4&&D.tag!==27&&D.child!==null){D.child.return=D,D=D.child;continue}if(D===p)break e;for(;D.sibling===null;){if(D.return===null||D.return===p)break e;D=D.return}D.sibling.return=D.return,D=D.sibling}p.stateNode=z;e:switch(Nr(z,w,x),w){case"button":case"input":case"select":case"textarea":x=!!x.autoFocus;break e;case"img":x=!0;break e;default:x=!1}x&&Ws(p)}}return Et(p),H1(p,p.type,c===null?null:c.memoizedProps,p.pendingProps,h),null;case 6:if(c&&p.stateNode!=null)c.memoizedProps!==x&&Ws(p);else{if(typeof x!="string"&&p.stateNode===null)throw Error(n(166));if(c=xe.current,Kc(p)){if(c=p.stateNode,h=p.memoizedProps,x=null,w=Er,w!==null)switch(w.tag){case 27:case 5:x=w.memoizedProps}c[Cr]=p,c=!!(c.nodeValue===h||x!==null&&x.suppressHydrationWarning===!0||wC(c.nodeValue,h)),c||_i(p,!0)}else c=vm(c).createTextNode(x),c[Cr]=p,p.stateNode=c}return Et(p),null;case 31:if(h=p.memoizedState,c===null||c.memoizedState!==null){if(x=Kc(p),h!==null){if(c===null){if(!x)throw Error(n(318));if(c=p.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(n(557));c[Cr]=p}else il(),(p.flags&128)===0&&(p.memoizedState=null),p.flags|=4;Et(p),c=!1}else h=Jb(),c!==null&&c.memoizedState!==null&&(c.memoizedState.hydrationErrors=h),c=!0;if(!c)return p.flags&256?(Mn(p),p):(Mn(p),null);if((p.flags&128)!==0)throw Error(n(558))}return Et(p),null;case 13:if(x=p.memoizedState,c===null||c.memoizedState!==null&&c.memoizedState.dehydrated!==null){if(w=Kc(p),x!==null&&x.dehydrated!==null){if(c===null){if(!w)throw Error(n(318));if(w=p.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error(n(317));w[Cr]=p}else il(),(p.flags&128)===0&&(p.memoizedState=null),p.flags|=4;Et(p),w=!1}else w=Jb(),c!==null&&c.memoizedState!==null&&(c.memoizedState.hydrationErrors=w),w=!0;if(!w)return p.flags&256?(Mn(p),p):(Mn(p),null)}return Mn(p),(p.flags&128)!==0?(p.lanes=h,p):(h=x!==null,c=c!==null&&c.memoizedState!==null,h&&(x=p.child,w=null,x.alternate!==null&&x.alternate.memoizedState!==null&&x.alternate.memoizedState.cachePool!==null&&(w=x.alternate.memoizedState.cachePool.pool),z=null,x.memoizedState!==null&&x.memoizedState.cachePool!==null&&(z=x.memoizedState.cachePool.pool),z!==w&&(x.flags|=2048)),h!==c&&h&&(p.child.flags|=8192),sm(p,p.updateQueue),Et(p),null);case 4:return fe(),c===null&&u2(p.stateNode.containerInfo),Et(p),null;case 10:return _s(p.type),Et(p),null;case 19:if(K(Vt),x=p.memoizedState,x===null)return Et(p),null;if(w=(p.flags&128)!==0,z=x.rendering,z===null)if(w)Pp(x,!1);else{if(Ft!==0||c!==null&&(c.flags&128)!==0)for(c=p.child;c!==null;){if(z=Gh(c),z!==null){for(p.flags|=128,Pp(x,!1),c=z.updateQueue,p.updateQueue=c,sm(p,c),p.subtreeFlags=0,c=h,h=p.child;h!==null;)tz(h,c),h=h.sibling;return Q(Vt,Vt.current&1|2),nt&&Rs(p,x.treeForkCount),p.child}c=c.sibling}x.tail!==null&&vr()>dm&&(p.flags|=128,w=!0,Pp(x,!1),p.lanes=4194304)}else{if(!w)if(c=Gh(z),c!==null){if(p.flags|=128,w=!0,c=c.updateQueue,p.updateQueue=c,sm(p,c),Pp(x,!0),x.tail===null&&x.tailMode==="hidden"&&!z.alternate&&!nt)return Et(p),null}else 2*vr()-x.renderingStartTime>dm&&h!==536870912&&(p.flags|=128,w=!0,Pp(x,!1),p.lanes=4194304);x.isBackwards?(z.sibling=p.child,p.child=z):(c=x.last,c!==null?c.sibling=z:p.child=z,x.last=z)}return x.tail!==null?(c=x.tail,x.rendering=c,x.tail=c.sibling,x.renderingStartTime=vr(),c.sibling=null,h=Vt.current,Q(Vt,w?h&1|2:h&1),nt&&Rs(p,x.treeForkCount),c):(Et(p),null);case 22:case 23:return Mn(p),p1(),x=p.memoizedState!==null,c!==null?c.memoizedState!==null!==x&&(p.flags|=8192):x&&(p.flags|=8192),x?(h&536870912)!==0&&(p.flags&128)===0&&(Et(p),p.subtreeFlags&6&&(p.flags|=8192)):Et(p),h=p.updateQueue,h!==null&&sm(p,h.retryQueue),h=null,c!==null&&c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(h=c.memoizedState.cachePool.pool),x=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(x=p.memoizedState.cachePool.pool),x!==h&&(p.flags|=2048),c!==null&&K(cl),null;case 24:return h=null,c!==null&&(h=c.memoizedState.cache),p.memoizedState.cache!==h&&(p.flags|=2048),_s(rr),Et(p),null;case 25:return null;case 30:return null}throw Error(n(156,p.tag))}function wX(c,p){switch(Yb(p),p.tag){case 1:return c=p.flags,c&65536?(p.flags=c&-65537|128,p):null;case 3:return _s(rr),fe(),c=p.flags,(c&65536)!==0&&(c&128)===0?(p.flags=c&-65537|128,p):null;case 26:case 27:case 5:return Ne(p),null;case 31:if(p.memoizedState!==null){if(Mn(p),p.alternate===null)throw Error(n(340));il()}return c=p.flags,c&65536?(p.flags=c&-65537|128,p):null;case 13:if(Mn(p),c=p.memoizedState,c!==null&&c.dehydrated!==null){if(p.alternate===null)throw Error(n(340));il()}return c=p.flags,c&65536?(p.flags=c&-65537|128,p):null;case 19:return K(Vt),null;case 4:return fe(),null;case 10:return _s(p.type),null;case 22:case 23:return Mn(p),p1(),c!==null&&K(cl),c=p.flags,c&65536?(p.flags=c&-65537|128,p):null;case 24:return _s(rr),null;case 25:return null;default:return null}}function z6(c,p){switch(Yb(p),p.tag){case 3:_s(rr),fe();break;case 26:case 27:case 5:Ne(p);break;case 4:fe();break;case 31:p.memoizedState!==null&&Mn(p);break;case 13:Mn(p);break;case 19:K(Vt);break;case 10:_s(p.type);break;case 22:case 23:Mn(p),p1(),c!==null&&K(cl);break;case 24:_s(rr)}}function Tp(c,p){try{var h=p.updateQueue,x=h!==null?h.lastEffect:null;if(x!==null){var w=x.next;h=w;do{if((h.tag&c)===c){x=void 0;var z=h.create,D=h.inst;x=z(),D.destroy=x}h=h.next}while(h!==w)}}catch(L){mt(p,p.return,L)}}function Hi(c,p,h){try{var x=p.updateQueue,w=x!==null?x.lastEffect:null;if(w!==null){var z=w.next;x=z;do{if((x.tag&c)===c){var D=x.inst,L=D.destroy;if(L!==void 0){D.destroy=void 0,w=p;var X=h,ne=L;try{ne()}catch(oe){mt(w,X,oe)}}}x=x.next}while(x!==z)}}catch(oe){mt(p,p.return,oe)}}function C6(c){var p=c.updateQueue;if(p!==null){var h=c.stateNode;try{bz(p,h)}catch(x){mt(c,c.return,x)}}}function E6(c,p,h){h.props=fl(c.type,c.memoizedProps),h.state=c.memoizedState;
vendor: 15,869 bytes, line 33
33try{h.componentWillUnmount()}catch(x){mt(c,p,x)}}function Ap(c,p){try{var h=c.ref;if(h!==null){switch(c.tag){case 26:case 27:case 5:var x=c.stateNode;break;case 30:x=c.stateNode;break;default:x=c.stateNode}typeof h=="function"?c.refCleanup=h(x):h.current=x}}catch(w){mt(c,p,w)}}function es(c,p){var h=c.ref,x=c.refCleanup;if(h!==null)if(typeof x=="function")try{x()}catch(w){mt(c,p,w)}finally{c.refCleanup=null,c=c.alternate,c!=null&&(c.refCleanup=null)}else if(typeof h=="function")try{h(null)}catch(w){mt(c,p,w)}else h.current=null}function O6(c){var p=c.type,h=c.memoizedProps,x=c.stateNode;try{e:switch(p){case"button":case"input":case"select":case"textarea":h.autoFocus&&x.focus();break e;case"img":h.src?x.src=h.src:h.srcSet&&(x.srcset=h.srcSet)}}catch(w){mt(c,c.return,w)}}function q1(c,p,h){try{var x=c.stateNode;UX(x,c.type,h,p),x[gn]=p}catch(w){mt(c,c.return,w)}}function M6(c){return c.tag===5||c.tag===3||c.tag===26||c.tag===27&&Qi(c.type)||c.tag===4}function U1(c){e:for(;;){for(;c.sibling===null;){if(c.return===null||M6(c.return))return null;c=c.return}for(c.sibling.return=c.return,c=c.sibling;c.tag!==5&&c.tag!==6&&c.tag!==18;){if(c.tag===27&&Qi(c.type)||c.flags&2||c.child===null||c.tag===4)continue e;c.child.return=c,c=c.child}if(!(c.flags&2))return c.stateNode}}function G1(c,p,h){var x=c.tag;if(x===5||x===6)c=c.stateNode,p?(h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h).insertBefore(c,p):(p=h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h,p.appendChild(c),h=h._reactRootContainer,h!=null||p.onclick!==null||(p.onclick=Os));else if(x!==4&&(x===27&&Qi(c.type)&&(h=c.stateNode,p=null),c=c.child,c!==null))for(G1(c,p,h),c=c.sibling;c!==null;)G1(c,p,h),c=c.sibling}function im(c,p,h){var x=c.tag;if(x===5||x===6)c=c.stateNode,p?h.insertBefore(c,p):h.appendChild(c);else if(x!==4&&(x===27&&Qi(c.type)&&(h=c.stateNode),c=c.child,c!==null))for(im(c,p,h),c=c.sibling;c!==null;)im(c,p,h),c=c.sibling}function N6(c){var p=c.stateNode,h=c.memoizedProps;try{for(var x=c.type,w=p.attributes;w.length;)p.removeAttributeNode(w[0]);Nr(p,x,h),p[Cr]=c,p[gn]=h}catch(z){mt(c,c.return,z)}}var $s=!1,sr=!1,V1=!1,R6=typeof WeakSet=="function"?WeakSet:Set,wr=null;function kX(c,p){if(c=c.containerInfo,f2=Am,c=G3(c),Wb(c)){if("selectionStart"in c)var h={start:c.selectionStart,end:c.selectionEnd};else e:{h=(h=c.ownerDocument)&&h.defaultView||window;var x=h.getSelection&&h.getSelection();if(x&&x.rangeCount!==0){h=x.anchorNode;var w=x.anchorOffset,z=x.focusNode;x=x.focusOffset;try{h.nodeType,z.nodeType}catch{h=null;break e}var D=0,L=-1,X=-1,ne=0,oe=0,pe=c,ae=null;t:for(;;){for(var ie;pe!==h||w!==0&&pe.nodeType!==3||(L=D+w),pe!==z||x!==0&&pe.nodeType!==3||(X=D+x),pe.nodeType===3&&(D+=pe.nodeValue.length),(ie=pe.firstChild)!==null;)ae=pe,pe=ie;for(;;){if(pe===c)break t;if(ae===h&&++ne===w&&(L=D),ae===z&&++oe===x&&(X=D),(ie=pe.nextSibling)!==null)break;pe=ae,ae=pe.parentNode}pe=ie}h=L===-1||X===-1?null:{start:L,end:X}}else h=null}h=h||{start:0,end:0}}else h=null;for(h2={focusedElem:c,selectionRange:h},Am=!1,wr=p;wr!==null;)if(p=wr,c=p.child,(p.subtreeFlags&1028)!==0&&c!==null)c.return=p,wr=c;else for(;wr!==null;){switch(p=wr,z=p.alternate,c=p.flags,p.tag){case 0:if((c&4)!==0&&(c=p.updateQueue,c=c!==null?c.events:null,c!==null))for(h=0;h<c.length;h++)w=c[h],w.ref.impl=w.nextImpl;break;case 11:case 15:break;case 1:if((c&1024)!==0&&z!==null){c=void 0,h=p,w=z.memoizedProps,z=z.memoizedState,x=h.stateNode;try{var Pe=fl(h.type,w);c=x.getSnapshotBeforeUpdate(Pe,z),x.__reactInternalSnapshotBeforeUpdate=c}catch(Be){mt(h,h.return,Be)}}break;case 3:if((c&1024)!==0){if(c=p.stateNode.containerInfo,h=c.nodeType,h===9)y2(c);else if(h===1)switch(c.nodeName){case"HEAD":case"HTML":case"BODY":y2(c);break;default:c.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((c&1024)!==0)throw Error(n(163))}if(c=p.sibling,c!==null){c.return=p.return,wr=c;break}wr=p.return}}function D6(c,p,h){var x=h.flags;switch(h.tag){case 0:case 11:case 15:Hs(c,h),x&4&&Tp(5,h);break;case 1:if(Hs(c,h),x&4)if(c=h.stateNode,p===null)try{c.componentDidMount()}catch(D){mt(h,h.return,D)}else{var w=fl(h.type,p.memoizedProps);p=p.memoizedState;try{c.componentDidUpdate(w,p,c.__reactInternalSnapshotBeforeUpdate)}catch(D){mt(h,h.return,D)}}x&64&&C6(h),x&512&&Ap(h,h.return);break;case 3:if(Hs(c,h),x&64&&(c=h.updateQueue,c!==null)){if(p=null,h.child!==null)switch(h.child.tag){case 27:case 5:p=h.child.stateNode;break;case 1:p=h.child.stateNode}try{bz(c,p)}catch(D){mt(h,h.return,D)}}break;case 27:p===null&&x&4&&N6(h);case 26:case 5:Hs(c,h),p===null&&x&4&&O6(h),x&512&&Ap(h,h.return);break;case 12:Hs(c,h);break;case 31:Hs(c,h),x&4&&B6(c,h);break;case 13:Hs(c,h),x&4&&L6(c,h),x&64&&(c=h.memoizedState,c!==null&&(c=c.dehydrated,c!==null&&(h=NX.bind(null,h),JX(c,h))));break;case 22:if(x=h.memoizedState!==null||$s,!x){p=p!==null&&p.memoizedState!==null||sr,w=$s;var z=sr;$s=x,(sr=p)&&!z?qs(c,h,(h.subtreeFlags&8772)!==0):Hs(c,h),$s=w,sr=z}break;case 30:break;default:Hs(c,h)}}function _6(c){var p=c.alternate;p!==null&&(c.alternate=null,_6(p)),c.child=null,c.deletions=null,c.sibling=null,c.tag===5&&(p=c.stateNode,p!==null&&wb(p)),c.stateNode=null,c.return=null,c.dependencies=null,c.memoizedProps=null,c.memoizedState=null,c.pendingProps=null,c.stateNode=null,c.updateQueue=null}var Rt=null,hn=!1;function Fs(c,p,h){for(h=h.child;h!==null;)I6(c,p,h),h=h.sibling}function I6(c,p,h){if(Zr&&typeof Zr.onCommitFiberUnmount=="function")try{Zr.onCommitFiberUnmount(Yo,h)}catch{}switch(h.tag){case 26:sr||es(h,p),Fs(c,p,h),h.memoizedState?h.memoizedState.count--:h.stateNode&&(h=h.stateNode,h.parentNode.removeChild(h));break;case 27:sr||es(h,p);var x=Rt,w=hn;Qi(h.type)&&(Rt=h.stateNode,hn=!1),Fs(c,p,h),_p(h.stateNode),Rt=x,hn=w;break;case 5:sr||es(h,p);case 6:if(x=Rt,w=hn,Rt=null,Fs(c,p,h),Rt=x,hn=w,Rt!==null)if(hn)try{(Rt.nodeType===9?Rt.body:Rt.nodeName==="HTML"?Rt.ownerDocument.body:Rt).removeChild(h.stateNode)}catch(z){mt(h,p,z)}else try{Rt.removeChild(h.stateNode)}catch(z){mt(h,p,z)}break;case 18:Rt!==null&&(hn?(c=Rt,CC(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,h.stateNode),md(c)):CC(Rt,h.stateNode));break;case 4:x=Rt,w=hn,Rt=h.stateNode.containerInfo,hn=!0,Fs(c,p,h),Rt=x,hn=w;break;case 0:case 11:case 14:case 15:Hi(2,h,p),sr||Hi(4,h,p),Fs(c,p,h);break;case 1:sr||(es(h,p),x=h.stateNode,typeof x.componentWillUnmount=="function"&&E6(h,p,x)),Fs(c,p,h);break;case 21:Fs(c,p,h);break;case 22:sr=(x=sr)||h.memoizedState!==null,Fs(c,p,h),sr=x;break;default:Fs(c,p,h)}}function B6(c,p){if(p.memoizedState===null&&(c=p.alternate,c!==null&&(c=c.memoizedState,c!==null))){c=c.dehydrated;try{md(c)}catch(h){mt(p,p.return,h)}}}function L6(c,p){if(p.memoizedState===null&&(c=p.alternate,c!==null&&(c=c.memoizedState,c!==null&&(c=c.dehydrated,c!==null))))try{md(c)}catch(h){mt(p,p.return,h)}}function PX(c){switch(c.tag){case 31:case 13:case 19:var p=c.stateNode;return p===null&&(p=c.stateNode=new R6),p;case 22:return c=c.stateNode,p=c._retryCache,p===null&&(p=c._retryCache=new R6),p;default:throw Error(n(435,c.tag))}}function om(c,p){var h=PX(c);p.forEach(function(x){if(!h.has(x)){h.add(x);var w=RX.bind(null,c,x);x.then(w,w)}})}function mn(c,p){var h=p.deletions;if(h!==null)for(var x=0;x<h.length;x++){var w=h[x],z=c,D=p,L=D;e:for(;L!==null;){switch(L.tag){case 27:if(Qi(L.type)){Rt=L.stateNode,hn=!1;break e}break;case 5:Rt=L.stateNode,hn=!1;break e;case 3:case 4:Rt=L.stateNode.containerInfo,hn=!0;break e}L=L.return}if(Rt===null)throw Error(n(160));I6(z,D,w),Rt=null,hn=!1,z=w.alternate,z!==null&&(z.return=null),w.return=null}if(p.subtreeFlags&13886)for(p=p.child;p!==null;)W6(p,c),p=p.sibling}var Ea=null;function W6(c,p){var h=c.alternate,x=c.flags;switch(c.tag){case 0:case 11:case 14:case 15:mn(p,c),xn(c),x&4&&(Hi(3,c,c.return),Tp(3,c),Hi(5,c,c.return));break;case 1:mn(p,c),xn(c),x&512&&(sr||h===null||es(h,h.return)),x&64&&$s&&(c=c.updateQueue,c!==null&&(x=c.callbacks,x!==null&&(h=c.shared.hiddenCallbacks,c.shared.hiddenCallbacks=h===null?x:h.concat(x))));break;case 26:var w=Ea;if(mn(p,c),xn(c),x&512&&(sr||h===null||es(h,h.return)),x&4){var z=h!==null?h.memoizedState:null;if(x=c.memoizedState,h===null)if(x===null)if(c.stateNode===null){e:{x=c.type,h=c.memoizedProps,w=w.ownerDocument||w;t:switch(x){case"title":z=w.getElementsByTagName("title")[0],(!z||z[ep]||z[Cr]||z.namespaceURI==="http://www.w3.org/2000/svg"||z.hasAttribute("itemprop"))&&(z=w.createElement(x),w.head.insertBefore(z,w.querySelector("head > title"))),Nr(z,x,h),z[Cr]=c,jr(z),x=z;break e;case"link":var D=WC("link","href",w).get(x+(h.href||""));if(D){for(var L=0;L<D.length;L++)if(z=D[L],z.getAttribute("href")===(h.href==null||h.href===""?null:h.href)&&z.getAttribute("rel")===(h.rel==null?null:h.rel)&&z.getAttribute("title")===(h.title==null?null:h.title)&&z.getAttribute("crossorigin")===(h.crossOrigin==null?null:h.crossOrigin)){D.splice(L,1);break t}}z=w.createElement(x),Nr(z,x,h),w.head.appendChild(z);break;case"meta":if(D=WC("meta","content",w).get(x+(h.content||""))){for(L=0;L<D.length;L++)if(z=D[L],z.getAttribute("content")===(h.content==null?null:""+h.content)&&z.getAttribute("name")===(h.name==null?null:h.name)&&z.getAttribute("property")===(h.property==null?null:h.property)&&z.getAttribute("http-equiv")===(h.httpEquiv==null?null:h.httpEquiv)&&z.getAttribute("charset")===(h.charSet==null?null:h.charSet)){D.splice(L,1);break t}}z=w.createElement(x),Nr(z,x,h),w.head.appendChild(z);break;default:throw Error(n(468,x))}z[Cr]=c,jr(z),x=z}c.stateNode=x}else $C(w,c.type,c.stateNode);else c.stateNode=LC(w,x,c.memoizedProps);else z!==x?(z===null?h.stateNode!==null&&(h=h.stateNode,h.parentNode.removeChild(h)):z.count--,x===null?$C(w,c.type,c.stateNode):LC(w,x,c.memoizedProps)):x===null&&c.stateNode!==null&&q1(c,c.memoizedProps,h.memoizedProps)}break;case 27:mn(p,c),xn(c),x&512&&(sr||h===null||es(h,h.return)),h!==null&&x&4&&q1(c,c.memoizedProps,h.memoizedProps);break;case 5:if(mn(p,c),xn(c),x&512&&(sr||h===null||es(h,h.return)),c.flags&32){w=c.stateNode;try{Lc(w,"")}catch(Pe){mt(c,c.return,Pe)}}x&4&&c.stateNode!=null&&(w=c.memoizedProps,q1(c,w,h!==null?h.memoizedProps:w)),x&1024&&(V1=!0);break;case 6:if(mn(p,c),xn(c),x&4){if(c.stateNode===null)throw Error(n(162));x=c.memoizedProps,h=c.stateNode;try{h.nodeValue=x}catch(Pe){mt(c,c.return,Pe)}}break;case 3:if(wm=null,w=Ea,Ea=Sm(p.containerInfo),mn(p,c),Ea=w,xn(c),x&4&&h!==null&&h.memoizedState.isDehydrated)try{md(p.containerInfo)}catch(Pe){mt(c,c.return,Pe)}V1&&(V1=!1,$6(c));break;case 4:x=Ea,Ea=Sm(c.stateNode.containerInfo),mn(p,c),xn(c),Ea=x;break;case 12:mn(p,c),xn(c);break;case 31:mn(p,c),xn(c),x&4&&(x=c.updateQueue,x!==null&&(c.updateQueue=null,om(c,x)));break;case 13:mn(p,c),xn(c),c.child.flags&8192&&c.memoizedState!==null!=(h!==null&&h.memoizedState!==null)&&(cm=vr()),x&4&&(x=c.updateQueue,x!==null&&(c.updateQueue=null,om(c,x)));break;case 22:w=c.memoizedState!==null;var X=h!==null&&h.memoizedState!==null,ne=$s,oe=sr;if($s=ne||w,sr=oe||X,mn(p,c),sr=oe,$s=ne,xn(c),x&8192)e:for(p=c.stateNode,p._visibility=w?p._visibility&-2:p._visibility|1,w&&(h===null||X||$s||sr||hl(c)),h=null,p=c;;){if(p.tag===5||p.tag===26){if(h===null){X=h=p;try{if(z=X.stateNode,w)D=z.style,typeof D.setProperty=="function"?D.setProperty("display","none","important"):D.display="none";else{L=X.stateNode;var pe=X.memoizedProps.style,ae=pe!=null&&pe.hasOwnProperty("display")?pe.display:null;L.style.display=ae==null||typeof ae=="boolean"?"":(""+ae).trim()}}catch(Pe){mt(X,X.return,Pe)}}}else if(p.tag===6){if(h===null){X=p;try{X.stateNode.nodeValue=w?"":X.memoizedProps}catch(Pe){mt(X,X.return,Pe)}}}else if(p.tag===18){if(h===null){X=p;try{var ie=X.stateNode;w?EC(ie,!0):EC(X.stateNode,!1)}catch(Pe){mt(X,X.return,Pe)}}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===c)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===c)break e;for(;p.sibling===null;){if(p.return===null||p.return===c)break e;h===p&&(h=null),p=p.return}h===p&&(h=null),p.sibling.return=p.return,p=p.sibling}x&4&&(x=c.updateQueue,x!==null&&(h=x.retryQueue,h!==null&&(x.retryQueue=null,om(c,h))));break;case 19:mn(p,c),xn(c),x&4&&(x=c.updateQueue,x!==null&&(c.updateQueue=null,om(c,x)));break;case 30:break;case 21:break;default:mn(p,c),xn(c)}}function xn(c){var p=c.flags;if(p&2){try{for(var h,x=c.return;x!==null;){if(M6(x)){h=x;break}x=x.return}if(h==null)throw Error(n(160));switch(h.tag){case 27:var w=h.stateNode,z=U1(c);im(c,z,w);break;case 5:var D=h.stateNode;h.flags&32&&(Lc(D,""),h.flags&=-33);var L=U1(c);im(c,L,D);break;case 3:case 4:var X=h.stateNode.containerInfo,ne=U1(c);G1(c,ne,X);break;default:throw Error(n(161))}}catch(oe){mt(c,c.return,oe)}c.flags&=-3}p&4096&&(c.flags&=-4097)}function $6(c){if(c.subtreeFlags&1024)for(c=c.child;c!==null;){var p=c;$6(p),p.tag===5&&p.flags&1024&&p.stateNode.reset(),c=c.sibling}}function Hs(c,p){if(p.subtreeFlags&8772)for(p=p.child;p!==null;)D6(c,p.alternate,p),p=p.sibling}function hl(c){for(c=c.child;c!==null;){var p=c;switch(p.tag){case 0:case 11:case 14:case 15:Hi(4,p,p.return),hl(p);break;case 1:es(p,p.return);var h=p.stateNode;typeof h.componentWillUnmount=="function"&&E6(p,p.return,h),hl(p);break;case 27:_p(p.stateNode);case 26:case 5:es(p,p.return),hl(p);break;case 22:p.memoizedState===null&&hl(p);break;case 30:hl(p);break;default:hl(p)}c=c.sibling}}function qs(c,p,h){for(h=h&&(p.subtreeFlags&8772)!==0,p=p.child;p!==null;){var x=p.alternate,w=c,z=p,D=z.flags;switch(z.tag){case 0:case 11:case 15:qs(w,z,h),Tp(4,z);break;case 1:if(qs(w,z,h),x=z,w=x.stateNode,typeof w.componentDidMount=="function")try{w.componentDidMount()}catch(ne){mt(x,x.return,ne)}if(x=z,w=x.updateQueue,w!==null){var L=x.stateNode;try{var X=w.shared.hiddenCallbacks;if(X!==null)for(w.shared.hiddenCallbacks=null,w=0;w<X.length;w++)yz(X[w],L)}catch(ne){mt(x,x.return,ne)}}h&&D&64&&C6(z),Ap(z,z.return);break;case 27:N6(z);case 26:case 5:qs(w,z,h),h&&x===null&&D&4&&O6(z),Ap(z,z.return);break;case 12:qs(w,z,h);break;case 31:qs(w,z,h),h&&D&4&&B6(w,z);break;case 13:qs(w,z,h),h&&D&4&&L6(w,z);break;case 22:z.memoizedState===null&&qs(w,z,h),Ap(z,z.return);break;case 30:break;default:qs(w,z,h)}p=p.sibling}}function X1(c,p){var h=null;c!==null&&c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(h=c.memoizedState.cachePool.pool),c=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(c=p.memoizedState.cachePool.pool),c!==h&&(c!=null&&c.refCount++,h!=null&&gp(h))}function K1(c,p){c=null,p.alternate!==null&&(c=p.alternate.memoizedState.cache),p=p.memoizedState.cache,p!==c&&(p.refCount++,c!=null&&gp(c))}function Oa(c,p,h,x){if(p.subtreeFlags&10256)for(p=p.child;p!==null;)F6(c,p,h,x),p=p.sibling}function F6(c,p,h,x){var w=p.flags;switch(p.tag){case 0:case 11:case 15:Oa(c,p,h,x),w&2048&&Tp(9,p);break;case 1:Oa(c,p,h,x);break;case 3:Oa(c,p,h,x),w&2048&&(c=null,p.alternate!==null&&(c=p.alternate.memoizedState.cache),p=p.memoizedState.cache,p!==c&&(p.refCount++,c!=null&&gp(c)));break;case 12:if(w&2048){Oa(c,p,h,x),c=p.stateNode;try{var z=p.memoizedProps,D=z.id,L=z.onPostCommit;typeof L=="function"&&L(D,p.alternate===null?"mount":"update",c.passiveEffectDuration,-0)}catch(X){mt(p,p.return,X)}}else Oa(c,p,h,x);break;case 31:Oa(c,p,h,x);break;case 13:Oa(c,p,h,x);break;case 23:break;case 22:z=p.stateNode,D=p.alternate,p.memoizedState!==null?z._visibility&2?Oa(c,p,h,x):zp(c,p):z._visibility&2?Oa(c,p,h,x):(z._visibility|=2,sd(c,p,h,x,(p.subtreeFlags&10256)!==0||!1)),w&2048&&X1(D,p);break;case 24:Oa(c,p,h,x),w&2048&&K1(p.alternate,p);break;default:Oa(c,p,h,x)}}function sd(c,p,h,x,w){for(w=w&&((p.subtreeFlags&10256)!==0||!1),p=p.child;p!==null;){var z=c,D=p,L=h,X=x,ne=D.flags;switch(D.tag){case 0:case 11:case 15:sd(z,D,L,X,w),Tp(8,D);break;case 23:break;case 22:var oe=D.stateNode;D.memoizedState!==null?oe._visibility&2?sd(z,D,L,X,w):zp(z,D):(oe._visibility|=2,sd(z,D,L,X,w)
vendor: 17,293 bytes, line 33
33),w&&ne&2048&&X1(D.alternate,D);break;case 24:sd(z,D,L,X,w),w&&ne&2048&&K1(D.alternate,D);break;default:sd(z,D,L,X,w)}p=p.sibling}}function zp(c,p){if(p.subtreeFlags&10256)for(p=p.child;p!==null;){var h=c,x=p,w=x.flags;switch(x.tag){case 22:zp(h,x),w&2048&&X1(x.alternate,x);break;case 24:zp(h,x),w&2048&&K1(x.alternate,x);break;default:zp(h,x)}p=p.sibling}}var Cp=8192;function id(c,p,h){if(c.subtreeFlags&Cp)for(c=c.child;c!==null;)H6(c,p,h),c=c.sibling}function H6(c,p,h){switch(c.tag){case 26:id(c,p,h),c.flags&Cp&&c.memoizedState!==null&&uK(h,Ea,c.memoizedState,c.memoizedProps);break;case 5:id(c,p,h);break;case 3:case 4:var x=Ea;Ea=Sm(c.stateNode.containerInfo),id(c,p,h),Ea=x;break;case 22:c.memoizedState===null&&(x=c.alternate,x!==null&&x.memoizedState!==null?(x=Cp,Cp=16777216,id(c,p,h),Cp=x):id(c,p,h));break;default:id(c,p,h)}}function q6(c){var p=c.alternate;if(p!==null&&(c=p.child,c!==null)){p.child=null;do p=c.sibling,c.sibling=null,c=p;while(c!==null)}}function Ep(c){var p=c.deletions;if((c.flags&16)!==0){if(p!==null)for(var h=0;h<p.length;h++){var x=p[h];wr=x,G6(x,c)}q6(c)}if(c.subtreeFlags&10256)for(c=c.child;c!==null;)U6(c),c=c.sibling}function U6(c){switch(c.tag){case 0:case 11:case 15:Ep(c),c.flags&2048&&Hi(9,c,c.return);break;case 3:Ep(c);break;case 12:Ep(c);break;case 22:var p=c.stateNode;c.memoizedState!==null&&p._visibility&2&&(c.return===null||c.return.tag!==13)?(p._visibility&=-3,lm(c)):Ep(c);break;default:Ep(c)}}function lm(c){var p=c.deletions;if((c.flags&16)!==0){if(p!==null)for(var h=0;h<p.length;h++){var x=p[h];wr=x,G6(x,c)}q6(c)}for(c=c.child;c!==null;){switch(p=c,p.tag){case 0:case 11:case 15:Hi(8,p,p.return),lm(p);break;case 22:h=p.stateNode,h._visibility&2&&(h._visibility&=-3,lm(p));break;default:lm(p)}c=c.sibling}}function G6(c,p){for(;wr!==null;){var h=wr;switch(h.tag){case 0:case 11:case 15:Hi(8,h,p);break;case 23:case 22:if(h.memoizedState!==null&&h.memoizedState.cachePool!==null){var x=h.memoizedState.cachePool.pool;x!=null&&x.refCount++}break;case 24:gp(h.memoizedState.cache)}if(x=h.child,x!==null)x.return=h,wr=x;else e:for(h=c;wr!==null;){x=wr;var w=x.sibling,z=x.return;if(_6(x),x===h){wr=null;break e}if(w!==null){w.return=z,wr=w;break e}wr=z}}}var TX={getCacheForType:function(c){var p=Or(rr),h=p.data.get(c);return h===void 0&&(h=c(),p.data.set(c,h)),h},cacheSignal:function(){return Or(rr).controller.signal}},AX=typeof WeakMap=="function"?WeakMap:Map,ut=0,wt=null,Ye=null,tt=0,ht=0,Nn=null,qi=!1,od=!1,Q1=!1,Us=0,Ft=0,Ui=0,ml=0,Y1=0,Rn=0,ld=0,Op=null,yn=null,Z1=!1,cm=0,V6=0,dm=1/0,um=null,Gi=null,pr=0,Vi=null,cd=null,Gs=0,J1=0,e2=null,X6=null,Mp=0,t2=null;function Dn(){return(ut&2)!==0&&tt!==0?tt&-tt:I.T!==null?o2():Sb()}function K6(){if(Rn===0)if((tt&536870912)===0||nt){var c=Oc;Oc<<=1,(Oc&3932160)===0&&(Oc=262144),Rn=c}else Rn=536870912;return c=On.current,c!==null&&(c.flags|=32),Rn}function bn(c,p,h){(c===wt&&(ht===2||ht===9)||c.cancelPendingCommit!==null)&&(dd(c,0),Xi(c,tt,Rn,!1)),It(c,h),((ut&2)===0||c!==wt)&&(c===wt&&((ut&2)===0&&(ml|=h),Ft===4&&Xi(c,tt,Rn,!1)),ts(c))}function Q6(c,p,h){if((ut&6)!==0)throw Error(n(327));var x=!h&&(p&127)===0&&(p&c.expiredLanes)===0||Nt(c,p),w=x?EX(c,p):n2(c,p,!0),z=x;do{if(w===0){od&&!x&&Xi(c,p,0,!1);break}else{if(h=c.current.alternate,z&&!zX(h)){w=n2(c,p,!1),z=!1;continue}if(w===2){if(z=p,c.errorRecoveryDisabledLanes&z)var D=0;else D=c.pendingLanes&-536870913,D=D!==0?D:D&536870912?536870912:0;if(D!==0){p=D;e:{var L=c;w=Op;var X=L.current.memoizedState.isDehydrated;if(X&&(dd(L,D).flags|=256),D=n2(L,D,!1),D!==2){if(Q1&&!X){L.errorRecoveryDisabledLanes|=z,ml|=z,w=4;break e}z=yn,yn=w,z!==null&&(yn===null?yn=z:yn.push.apply(yn,z))}w=D}if(z=!1,w!==2)continue}}if(w===1){dd(c,0),Xi(c,p,0,!0);break}e:{switch(x=c,z=w,z){case 0:case 1:throw Error(n(345));case 4:if((p&4194048)!==p)break;case 6:Xi(x,p,Rn,!qi);break e;case 2:yn=null;break;case 3:case 5:break;default:throw Error(n(329))}if((p&62914560)===p&&(w=cm+300-vr(),10<w)){if(Xi(x,p,Rn,!qi),Fe(x,0,!0)!==0)break e;Gs=p,x.timeoutHandle=AC(Y6.bind(null,x,h,yn,um,Z1,p,Rn,ml,ld,qi,z,"Throttled",-0,0),w);break e}Y6(x,h,yn,um,Z1,p,Rn,ml,ld,qi,z,null,-0,0)}}break}while(!0);ts(c)}function Y6(c,p,h,x,w,z,D,L,X,ne,oe,pe,ae,ie){if(c.timeoutHandle=-1,pe=p.subtreeFlags,pe&8192||(pe&16785408)===16785408){pe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Os},H6(p,z,pe);var Pe=(z&62914560)===z?cm-vr():(z&4194048)===z?V6-vr():0;if(Pe=pK(pe,Pe),Pe!==null){Gs=z,c.cancelPendingCommit=Pe(sC.bind(null,c,p,z,h,x,w,D,L,X,oe,pe,null,ae,ie)),Xi(c,z,D,!ne);return}}sC(c,p,z,h,x,w,D,L,X)}function zX(c){for(var p=c;;){var h=p.tag;if((h===0||h===11||h===15)&&p.flags&16384&&(h=p.updateQueue,h!==null&&(h=h.stores,h!==null)))for(var x=0;x<h.length;x++){var w=h[x],z=w.getSnapshot;w=w.value;try{if(!Cn(z(),w))return!1}catch{return!1}}if(h=p.child,p.subtreeFlags&16384&&h!==null)h.return=p,p=h;else{if(p===c)break;for(;p.sibling===null;){if(p.return===null||p.return===c)return!0;p=p.return}p.sibling.return=p.return,p=p.sibling}}return!0}function Xi(c,p,h,x){p&=~Y1,p&=~ml,c.suspendedLanes|=p,c.pingedLanes&=~p,x&&(c.warmLanes|=p),x=c.expirationTimes;for(var w=p;0<w;){var z=31-$r(w),D=1<<z;x[z]=-1,w&=~D}h!==0&&Jo(c,h,p)}function pm(){return(ut&6)===0?(Np(0),!1):!0}function r2(){if(Ye!==null){if(ht===0)var c=Ye.return;else c=Ye,Ds=ol=null,y1(c),ed=null,hp=0,c=Ye;for(;c!==null;)z6(c.alternate,c),c=c.return;Ye=null}}function dd(c,p){var h=c.timeoutHandle;h!==-1&&(c.timeoutHandle=-1,XX(h)),h=c.cancelPendingCommit,h!==null&&(c.cancelPendingCommit=null,h()),Gs=0,r2(),wt=c,Ye=h=Ns(c.current,null),tt=p,ht=0,Nn=null,qi=!1,od=Nt(c,p),Q1=!1,ld=Rn=Y1=ml=Ui=Ft=0,yn=Op=null,Z1=!1,(p&8)!==0&&(p|=p&32);var x=c.entangledLanes;if(x!==0)for(c=c.entanglements,x&=p;0<x;){var w=31-$r(x),z=1<<w;p|=c[w],x&=~z}return Us=p,Nh(),h}function Z6(c,p){Ue=null,I.H=wp,p===Jc||p===$h?(p=fz(),ht=3):p===i1?(p=fz(),ht=4):ht=p===R1?8:p!==null&&typeof p=="object"&&typeof p.then=="function"?6:1,Nn=p,Ye===null&&(Ft=1,tm(c,Yn(p,c.current)))}function J6(){var c=On.current;return c===null?!0:(tt&4194048)===tt?ta===null:(tt&62914560)===tt||(tt&536870912)!==0?c===ta:!1}function eC(){var c=I.H;return I.H=wp,c===null?wp:c}function tC(){var c=I.A;return I.A=TX,c}function gm(){Ft=4,qi||(tt&4194048)!==tt&&On.current!==null||(od=!0),(Ui&134217727)===0&&(ml&134217727)===0||wt===null||Xi(wt,tt,Rn,!1)}function n2(c,p,h){var x=ut;ut|=2;var w=eC(),z=tC();(wt!==c||tt!==p)&&(um=null,dd(c,p)),p=!1;var D=Ft;e:do try{if(ht!==0&&Ye!==null){var L=Ye,X=Nn;switch(ht){case 8:r2(),D=6;break e;case 3:case 2:case 9:case 6:On.current===null&&(p=!0);var ne=ht;if(ht=0,Nn=null,ud(c,L,X,ne),h&&od){D=0;break e}break;default:ne=ht,ht=0,Nn=null,ud(c,L,X,ne)}}CX(),D=Ft;break}catch(oe){Z6(c,oe)}while(!0);return p&&c.shellSuspendCounter++,Ds=ol=null,ut=x,I.H=w,I.A=z,Ye===null&&(wt=null,tt=0,Nh()),D}function CX(){for(;Ye!==null;)rC(Ye)}function EX(c,p){var h=ut;ut|=2;var x=eC(),w=tC();wt!==c||tt!==p?(um=null,dm=vr()+500,dd(c,p)):od=Nt(c,p);e:do try{if(ht!==0&&Ye!==null){p=Ye;var z=Nn;t:switch(ht){case 1:ht=0,Nn=null,ud(c,p,z,1);break;case 2:case 9:if(pz(z)){ht=0,Nn=null,nC(p);break}p=function(){ht!==2&&ht!==9||wt!==c||(ht=7),ts(c)},z.then(p,p);break e;case 3:ht=7;break e;case 4:ht=5;break e;case 7:pz(z)?(ht=0,Nn=null,nC(p)):(ht=0,Nn=null,ud(c,p,z,7));break;case 5:var D=null;switch(Ye.tag){case 26:D=Ye.memoizedState;case 5:case 27:var L=Ye;if(D?FC(D):L.stateNode.complete){ht=0,Nn=null;var X=L.sibling;if(X!==null)Ye=X;else{var ne=L.return;ne!==null?(Ye=ne,fm(ne)):Ye=null}break t}}ht=0,Nn=null,ud(c,p,z,5);break;case 6:ht=0,Nn=null,ud(c,p,z,6);break;case 8:r2(),Ft=6;break e;default:throw Error(n(462))}}OX();break}catch(oe){Z6(c,oe)}while(!0);return Ds=ol=null,I.H=x,I.A=w,ut=h,Ye!==null?0:(wt=null,tt=0,Nh(),Ft)}function OX(){for(;Ye!==null&&!_t();)rC(Ye)}function rC(c){var p=T6(c.alternate,c,Us);c.memoizedProps=c.pendingProps,p===null?fm(c):Ye=p}function nC(c){var p=c,h=p.alternate;switch(p.tag){case 15:case 0:p=v6(h,p,p.pendingProps,p.type,void 0,tt);break;case 11:p=v6(h,p,p.pendingProps,p.type.render,p.ref,tt);break;case 5:y1(p);default:z6(h,p),p=Ye=tz(p,Us),p=T6(h,p,Us)}c.memoizedProps=c.pendingProps,p===null?fm(c):Ye=p}function ud(c,p,h,x){Ds=ol=null,y1(p),ed=null,hp=0;var w=p.return;try{if(bX(c,w,p,h,tt)){Ft=1,tm(c,Yn(h,c.current)),Ye=null;return}}catch(z){if(w!==null)throw Ye=w,z;Ft=1,tm(c,Yn(h,c.current)),Ye=null;return}p.flags&32768?(nt||x===1?c=!0:od||(tt&536870912)!==0?c=!1:(qi=c=!0,(x===2||x===9||x===3||x===6)&&(x=On.current,x!==null&&x.tag===13&&(x.flags|=16384))),aC(p,c)):fm(p)}function fm(c){var p=c;do{if((p.flags&32768)!==0){aC(p,qi);return}c=p.return;var h=jX(p.alternate,p,Us);if(h!==null){Ye=h;return}if(p=p.sibling,p!==null){Ye=p;return}Ye=p=c}while(p!==null);Ft===0&&(Ft=5)}function aC(c,p){do{var h=wX(c.alternate,c);if(h!==null){h.flags&=32767,Ye=h;return}if(h=c.return,h!==null&&(h.flags|=32768,h.subtreeFlags=0,h.deletions=null),!p&&(c=c.sibling,c!==null)){Ye=c;return}Ye=c=h}while(c!==null);Ft=6,Ye=null}function sC(c,p,h,x,w,z,D,L,X){c.cancelPendingCommit=null;do hm();while(pr!==0);if((ut&6)!==0)throw Error(n(327));if(p!==null){if(p===c.current)throw Error(n(177));if(z=p.lanes|p.childLanes,z|=Ub,dn(c,h,z,D,L,X),c===wt&&(Ye=wt=null,tt=0),cd=p,Vi=c,Gs=h,J1=z,e2=w,X6=x,(p.subtreeFlags&10256)!==0||(p.flags&10256)!==0?(c.callbackNode=null,c.callbackPriority=0,DX(Qo,function(){return dC(),null})):(c.callbackNode=null,c.callbackPriority=0),x=(p.flags&13878)!==0,(p.subtreeFlags&13878)!==0||x){x=I.T,I.T=null,w=U.p,U.p=2,D=ut,ut|=4;try{kX(c,p,h)}finally{ut=D,U.p=w,I.T=x}}pr=1,iC(),oC(),lC()}}function iC(){if(pr===1){pr=0;var c=Vi,p=cd,h=(p.flags&13878)!==0;if((p.subtreeFlags&13878)!==0||h){h=I.T,I.T=null;var x=U.p;U.p=2;var w=ut;ut|=4;try{W6(p,c);var z=h2,D=G3(c.containerInfo),L=z.focusedElem,X=z.selectionRange;if(D!==L&&L&&L.ownerDocument&&U3(L.ownerDocument.documentElement,L)){if(X!==null&&Wb(L)){var ne=X.start,oe=X.end;if(oe===void 0&&(oe=ne),"selectionStart"in L)L.selectionStart=ne,L.selectionEnd=Math.min(oe,L.value.length);else{var pe=L.ownerDocument||document,ae=pe&&pe.defaultView||window;if(ae.getSelection){var ie=ae.getSelection(),Pe=L.textContent.length,Be=Math.min(X.start,Pe),vt=X.end===void 0?Be:Math.min(X.end,Pe);!ie.extend&&Be>vt&&(D=vt,vt=Be,Be=D);var J=q3(L,Be),Y=q3(L,vt);if(J&&Y&&(ie.rangeCount!==1||ie.anchorNode!==J.node||ie.anchorOffset!==J.offset||ie.focusNode!==Y.node||ie.focusOffset!==Y.offset)){var te=pe.createRange();te.setStart(J.node,J.offset),ie.removeAllRanges(),Be>vt?(ie.addRange(te),ie.extend(Y.node,Y.offset)):(te.setEnd(Y.node,Y.offset),ie.addRange(te))}}}}for(pe=[],ie=L;ie=ie.parentNode;)ie.nodeType===1&&pe.push({element:ie,left:ie.scrollLeft,top:ie.scrollTop});for(typeof L.focus=="function"&&L.focus(),L=0;L<pe.length;L++){var de=pe[L];de.element.scrollLeft=de.left,de.element.scrollTop=de.top}}Am=!!f2,h2=f2=null}finally{ut=w,U.p=x,I.T=h}}c.current=p,pr=2}}function oC(){if(pr===2){pr=0;var c=Vi,p=cd,h=(p.flags&8772)!==0;if((p.subtreeFlags&8772)!==0||h){h=I.T,I.T=null;var x=U.p;U.p=2;var w=ut;ut|=4;try{D6(c,p.alternate,p)}finally{ut=w,U.p=x,I.T=h}}pr=3}}function lC(){if(pr===4||pr===3){pr=0,Vn();var c=Vi,p=cd,h=Gs,x=X6;(p.subtreeFlags&10256)!==0||(p.flags&10256)!==0?pr=5:(pr=0,cd=Vi=null,cC(c,c.pendingLanes));var w=c.pendingLanes;if(w===0&&(Gi=null),za(h),p=p.stateNode,Zr&&typeof Zr.onCommitFiberRoot=="function")try{Zr.onCommitFiberRoot(Yo,p,void 0,(p.current.flags&128)===128)}catch{}if(x!==null){p=I.T,w=U.p,U.p=2,I.T=null;try{for(var z=c.onRecoverableError,D=0;D<x.length;D++){var L=x[D];z(L.value,{componentStack:L.stack})}}finally{I.T=p,U.p=w}}(Gs&3)!==0&&hm(),ts(c),w=c.pendingLanes,(h&261930)!==0&&(w&42)!==0?c===t2?Mp++:(Mp=0,t2=c):Mp=0,Np(0)}}function cC(c,p){(c.pooledCacheLanes&=p)===0&&(p=c.pooledCache,p!=null&&(c.pooledCache=null,gp(p)))}function hm(){return iC(),oC(),lC(),dC()}function dC(){if(pr!==5)return!1;var c=Vi,p=J1;J1=0;var h=za(Gs),x=I.T,w=U.p;try{U.p=32>h?32:h,I.T=null,h=e2,e2=null;var z=Vi,D=Gs;if(pr=0,cd=Vi=null,Gs=0,(ut&6)!==0)throw Error(n(331));var L=ut;if(ut|=4,U6(z.current),F6(z,z.current,D,h),ut=L,Np(0,!1),Zr&&typeof Zr.onPostCommitFiberRoot=="function")try{Zr.onPostCommitFiberRoot(Yo,z)}catch{}return!0}finally{U.p=w,I.T=x,cC(c,p)}}function uC(c,p,h){p=Yn(h,p),p=N1(c.stateNode,p,2),c=Wi(c,p,2),c!==null&&(It(c,2),ts(c))}function mt(c,p,h){if(c.tag===3)uC(c,c,h);else for(;p!==null;){if(p.tag===3){uC(p,c,h);break}else if(p.tag===1){var x=p.stateNode;if(typeof p.type.getDerivedStateFromError=="function"||typeof x.componentDidCatch=="function"&&(Gi===null||!Gi.has(x))){c=Yn(h,c),h=p6(2),x=Wi(p,h,2),x!==null&&(g6(h,x,p,c),It(x,2),ts(x));break}}p=p.return}}function a2(c,p,h){var x=c.pingCache;if(x===null){x=c.pingCache=new AX;var w=new Set;x.set(p,w)}else w=x.get(p),w===void 0&&(w=new Set,x.set(p,w));w.has(h)||(Q1=!0,w.add(h),c=MX.bind(null,c,p,h),p.then(c,c))}function MX(c,p,h){var x=c.pingCache;x!==null&&x.delete(p),c.pingedLanes|=c.suspendedLanes&h,c.warmLanes&=~h,wt===c&&(tt&h)===h&&(Ft===4||Ft===3&&(tt&62914560)===tt&&300>vr()-cm?(ut&2)===0&&dd(c,0):Y1|=h,ld===tt&&(ld=0)),ts(c)}function pC(c,p){p===0&&(p=Fr()),c=al(c,p),c!==null&&(It(c,p),ts(c))}function NX(c){var p=c.memoizedState,h=0;p!==null&&(h=p.retryLane),pC(c,h)}function RX(c,p){var h=0;switch(c.tag){case 31:case 13:var x=c.stateNode,w=c.memoizedState;w!==null&&(h=w.retryLane);break;case 19:x=c.stateNode;break;case 22:x=c.stateNode._retryCache;break;default:throw Error(n(314))}x!==null&&x.delete(p),pC(c,h)}function DX(c,p){return Ka(c,p)}var mm=null,pd=null,s2=!1,xm=!1,i2=!1,Ki=0;function ts(c){c!==pd&&c.next===null&&(pd===null?mm=pd=c:pd=pd.next=c),xm=!0,s2||(s2=!0,IX())}function Np(c,p){if(!i2&&xm){i2=!0;do for(var h=!1,x=mm;x!==null;){if(c!==0){var w=x.pendingLanes;if(w===0)var z=0;else{var D=x.suspendedLanes,L=x.pingedLanes;z=(1<<31-$r(42|c)+1)-1,z&=w&~(D&~L),z=z&201326741?z&201326741|1:z?z|2:0}z!==0&&(h=!0,mC(x,z))}else z=tt,z=Fe(x,x===wt?z:0,x.cancelPendingCommit!==null||x.timeoutHandle!==-1),(z&3)===0||Nt(x,z)||(h=!0,mC(x,z));x=x.next}while(h);i2=!1}}function _X(){gC()}function gC(){xm=s2=!1;var c=0;Ki!==0&&VX()&&(c=Ki);for(var p=vr(),h=null,x=mm;x!==null;){var w=x.next,z=fC(x,p);z===0?(x.next=null,h===null?mm=w:h.next=w,w===null&&(pd=h)):(h=x,(c!==0||(z&3)!==0)&&(xm=!0)),x=w}pr!==0&&pr!==5||Np(c),Ki!==0&&(Ki=0)}function fC(c,p){for(var h=c.suspendedLanes,x=c.pingedLanes,w=c.expirationTimes,z=c.pendingLanes&-62914561;0<z;){var D=31-$r(z),L=1<<D,X=w[D];X===-1?((L&h)===0||(L&x)!==0)&&(w[D]=Sr(L,p)):X<=p&&(c.expiredLanes|=L),z&=~L}if(p=wt,h=tt,h=Fe(c,c===p?h:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),x=c.callbackNode,h===0||c===p&&(ht===2||ht===9)||c.cancelPendingCommit!==null)return x!==null&&x!==null&&zn(x),c.callbackNode=null,c.callbackPriority=0;if((h&3)===0||Nt(c,h)){if(p=h&-h,p===c.callbackPriority)return p;switch(x!==null&&zn(x),za(h)){case 2:case 8:h=vh;break;case 32:h=Qo;break;case 268435456:h=Cs;break;default:h=Qo}return x=hC.bind(null,c),h=Ka(h,x),c.callbackPriority=p,c.callbackNode=h,p}return x!==null&&x!==null&&zn(x),c.callbackPriority=2,c.callbackNode=null,2}function hC(c,p){if(pr!==0&&pr!==5)return c.callbackNode=null,c.callbackPriority=0,null;var h=c.callbackNode;if(hm()&&c.callbackNode!==h)return null;var x=tt;return x=Fe(c,c===wt?x:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),x===0?null:(Q6(c,x,p),fC(c,vr()),c.callbackNode!=null&&c.callbackNode===h?hC.bind(null,c):null)}function mC(c,p){if(hm())return null;Q6(c,p,!0)}function IX(){KX(function(){(ut&6)!==0?Ka(Ko,_X):gC()})}function o2(){if(Ki===0){var c=Yc;c===0&&(c=Ec,Ec<<=1,(Ec&261888)===0&&(Ec=256)),Ki=c}return Ki}function xC(c){return c==null||typeof c=="symbol"||typeof c=="boolean"?null:typeof c=="function"?c:Ph(""+c)}function yC(c,p){var h=p.ownerDocument.createElement("input");return h.name=p.name,h.value=p.value,c.id&&h.setAttribute("form",c.id),p.parentNode.insertBefore(h,p),c=new FormData(c),h.parentNode.removeChild(h),c}function BX(c,p,h,x,w){if(p==="submit"&&h&&h.stateNode===w){var z=xC((w[gn]||null).action),D=x.submitter;D&&(p=(p=D[gn]||null)?xC(p.formAction):D.getAttribute("formAction"),p!==null&&(z=p,D=null));var L=new Ch("action","action",null,x,w);c.push({event:L,listeners:[{instance:null,listener:function(){if(x.defaultPrevented){if(Ki!==0){var X=D?yC(w,D):new FormData(w);A1(h,{pending:!0,data:X,method:w.method,action:z},null,X)}}else typeof z=="function"&&(L.preventDefault(),X=D?yC(w,D):new FormData(w),A1(h,{pending:!0,data:X,method:w.method,action:z},z,X))},currentTarget:w}]})}}for(var l2=0;l2<qb.length;l2++){var c2=qb[l2],LX=c2.toLowerCase(),WX=c2[0].toUpperCase()+c2.slice(1);Ca(LX,"on"+WX)}Ca(K3,"onAnimationEnd"),Ca(Q3,"onAnimationIteration"),Ca(Y3,"onAnimationStart"),Ca("dblclick","onDoubleClick"),Ca("focusin","onFocus"),Ca("focusout","onBlur"),Ca(rX,"onTransitionRun"),Ca(nX,"onTransitionStart"),Ca(aX,"onTransitionCancel"),Ca(Z3,"onTransitionEnd"),Ic("onMouseEnter",["mouseout","mouseover"]),Ic("onMouseLeave",["mouseout","mouseover"]),Ic("onPointerEnter",["pointerout","pointerover"]),Ic("onPointerLeave",["pointerout","pointerover"]),el("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),el("onSelect","focusout contextmenu dragend focu
33sin keydown keyup mousedown mouseup selectionchange".split(" ")),el("onBeforeInput",["compositionend","keypress","textInput","paste"]),el("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),el("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),el("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rp="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(" "),$X=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Rp));function bC(c,p){p=(p&4)!==0;for(var h=0;h<c.length;h++){var x=c[h],w=x.event;x=x.listeners;e:{var z=void 0;if(p)for(var D=x.length-1;0<=D;D--){var L=x[D],X=L.instance,ne=L.currentTarget;if(L=L.listener,X!==z&&w.isPropagationStopped())break e;z=L,w.currentTarget=ne;try{z(w)}catch(oe){Mh(oe)}w.currentTarget=null,z=X}else for(D=0;D<x.length;D++){if(L=x[D],X=L.instance,ne=L.currentTarget,L=L.listener,X!==z&&w.isPropagationStopped())break e;z=L,w.currentTarget=ne;try{z(w)}catch(oe){Mh(oe)}w.currentTarget=null,z=X}}}}function Ze(c,p){var h=p[jb];h===void 0&&(h=p[jb]=new Set);var x=c+"__bubble";h.has(x)||(vC(p,c,2,!1),h.add(x))}function d2(c,p,h){var x=0;p&&(x|=4),vC(h,c,x,p)}var ym="_reactListening"+Math.random().toString(36).slice(2);function u2(c){if(!c[ym]){c[ym]=!0,g3.forEach(function(h){h!=="selectionchange"&&($X.has(h)||d2(h,!1,c),d2(h,!0,c))});var p=c.nodeType===9?c:c.ownerDocument;p===null||p[ym]||(p[ym]=!0,d2("selectionchange",!1,p))}}function vC(c,p,h,x){switch(KC(p)){case 2:var w=hK;break;case 8:w=mK;break;default:w=T2}h=w.bind(null,p,h,c),w=void 0,!Ob||p!=="touchstart"&&p!=="touchmove"&&p!=="wheel"||(w=!0),x?w!==void 0?c.addEventListener(p,h,{capture:!0,passive:w}):c.addEventListener(p,h,!0):w!==void 0?c.addEventListener(p,h,{passive:w}):c.addEventListener(p,h,!1)}function p2(c,p,h,x,w){var z=x;if((p&1)===0&&(p&2)===0&&x!==null)e:for(;;){if(x===null)return;var D=x.tag;if(D===3||D===4){var L=x.stateNode.containerInfo;if(L===w)break;if(D===4)for(D=x.return;D!==null;){var X=D.tag;if((X===3||X===4)&&D.stateNode.containerInfo===w)return;D=D.return}for(;L!==null;){if(D=Rc(L),D===null)return;if(X=D.tag,X===5||X===6||X===26||X===27){x=z=D;continue e}L=L.parentNode}}x=x.return}P3(function(){var ne=z,oe=Cb(h),pe=[];e:{var ae=J3.get(c);if(ae!==void 0){var ie=Ch,Pe=c;switch(c){case"keypress":if(Ah(h)===0)break e;case"keydown":case"keyup":ie=RV;break;case"focusin":Pe="focus",ie=Db;break;case"focusout":Pe="blur",ie=Db;break;case"beforeblur":case"afterblur":ie=Db;break;case"click":if(h.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ie=z3;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ie=jV;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ie=IV;break;case K3:case Q3:case Y3:ie=PV;break;case Z3:ie=LV;break;case"scroll":case"scrollend":ie=vV;break;case"wheel":ie=$V;break;case"copy":case"cut":case"paste":ie=AV;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ie=E3;break;case"toggle":case"beforetoggle":ie=HV}var Be=(p&4)!==0,vt=!Be&&(c==="scroll"||c==="scrollend"),J=Be?ae!==null?ae+"Capture":null:ae;Be=[];for(var Y=ne,te;Y!==null;){var de=Y;if(te=de.stateNode,de=de.tag,de!==5&&de!==26&&de!==27||te===null||J===null||(de=rp(Y,J),de!=null&&Be.push(Dp(Y,de,te))),vt)break;Y=Y.return}0<Be.length&&(ae=new ie(ae,Pe,null,h,oe),pe.push({event:ae,listeners:Be}))}}if((p&7)===0){e:{if(ae=c==="mouseover"||c==="pointerover",ie=c==="mouseout"||c==="pointerout",ae&&h!==zb&&(Pe=h.relatedTarget||h.fromElement)&&(Rc(Pe)||Pe[Nc]))break e;if((ie||ae)&&(ae=oe.window===oe?oe:(ae=oe.ownerDocument)?ae.defaultView||ae.parentWindow:window,ie?(Pe=h.relatedTarget||h.toElement,ie=ne,Pe=Pe?Rc(Pe):null,Pe!==null&&(vt=i(Pe),Be=Pe.tag,Pe!==vt||Be!==5&&Be!==27&&Be!==6)&&(Pe=null)):(ie=null,Pe=ne),ie!==Pe)){if(Be=z3,de="onMouseLeave",J="onMouseEnter",Y="mouse",(c==="pointerout"||c==="pointerover")&&(Be=E3,de="onPointerLeave",J="onPointerEnter",Y="pointer"),vt=ie==null?ae:tp(ie),te=Pe==null?ae:tp(Pe),ae=new Be(de,Y+"leave",ie,h,oe),ae.target=vt,ae.relatedTarget=te,de=null,Rc(oe)===ne&&(Be=new Be(J,Y+"enter",Pe,h,oe),Be.target=te,Be.relatedTarget=vt,de=Be),vt=de,ie&&Pe)t:{for(Be=FX,J=ie,Y=Pe,te=0,de=J;de;de=Be(de))te++;de=0;for(var Re=Y;Re;Re=Be(Re))de++;for(;0<te-de;)J=Be(J),te--;for(;0<de-te;)Y=Be(Y),de--;for(;te--;){if(J===Y||Y!==null&&J===Y.alternate){Be=J;break t}J=Be(J),Y=Be(Y)}Be=null}else Be=null;ie!==null&&SC(pe,ae,ie,Be,!1),Pe!==null&&vt!==null&&SC(pe,vt,Pe,Be,!0)}}
vendor: 5,244 bytes, lines 33-34
33e:{if(ae=ne?tp(ne):window,ie=ae.nodeName&&ae.nodeName.toLowerCase(),ie==="select"||ie==="input"&&ae.type==="file")var ot=B3;else if(_3(ae))if(L3)ot=JV;else{ot=YV;var Ce=QV}else ie=ae.nodeName,!ie||ie.toLowerCase()!=="input"||ae.type!=="checkbox"&&ae.type!=="radio"?ne&&Ab(ne.elementType)&&(ot=B3):ot=ZV;if(ot&&(ot=ot(c,ne))){I3(pe,ot,h,oe);break e}Ce&&Ce(c,ae,ne),c==="focusout"&&ne&&ae.type==="number"&&ne.memoizedProps.value!=null&&Tb(ae,"number",ae.value)}switch(Ce=ne?tp(ne):window,c){case"focusin":(_3(Ce)||Ce.contentEditable==="true")&&(Hc=Ce,$b=ne,dp=null);break;case"focusout":dp=$b=Hc=null;break;case"mousedown":Fb=!0;break;case"contextmenu":case"mouseup":case"dragend":Fb=!1,V3(pe,h,oe);break;case"selectionchange":if(tX)break;case"keydown":case"keyup":V3(pe,h,oe)}var Ge;if(Ib)e:{switch(c){case"compositionstart":var rt="onCompositionStart";break e;case"compositionend":rt="onCompositionEnd";break e;case"compositionupdate":rt="onCompositionUpdate";break e}rt=void 0}else Fc?R3(c,h)&&(rt="onCompositionEnd"):c==="keydown"&&h.keyCode===229&&(rt="onCompositionStart");rt&&(O3&&h.locale!=="ko"&&(Fc||rt!=="onCompositionStart"?rt==="onCompositionEnd"&&Fc&&(Ge=T3()):(Ni=oe,Mb="value"in Ni?Ni.value:Ni.textContent,Fc=!0)),Ce=bm(ne,rt),0<Ce.length&&(rt=new C3(rt,c,null,h,oe),pe.push({event:rt,listeners:Ce}),Ge?rt.data=Ge:(Ge=D3(h),Ge!==null&&(rt.data=Ge)))),(Ge=UV?GV(c,h):VV(c,h))&&(rt=bm(ne,"onBeforeInput"),0<rt.length&&(Ce=new C3("onBeforeInput","beforeinput",null,h,oe),pe.push({event:Ce,listeners:rt}),Ce.data=Ge)),BX(pe,c,ne,h,oe)}bC(pe,p)})}function Dp(c,p,h){return{instance:c,listener:p,currentTarget:h}}function bm(c,p){for(var h=p+"Capture",x=[];c!==null;){var w=c,z=w.stateNode;if(w=w.tag,w!==5&&w!==26&&w!==27||z===null||(w=rp(c,h),w!=null&&x.unshift(Dp(c,w,z)),w=rp(c,p),w!=null&&x.push(Dp(c,w,z))),c.tag===3)return x;c=c.return}return[]}function FX(c){if(c===null)return null;do c=c.return;while(c&&c.tag!==5&&c.tag!==27);return c||null}function SC(c,p,h,x,w){for(var z=p._reactName,D=[];h!==null&&h!==x;){var L=h,X=L.alternate,ne=L.stateNode;if(L=L.tag,X!==null&&X===x)break;L!==5&&L!==26&&L!==27||ne===null||(X=ne,w?(ne=rp(h,z),ne!=null&&D.unshift(Dp(h,ne,X))):w||(ne=rp(h,z),ne!=null&&D.push(Dp(h,ne,X)))),h=h.return}D.length!==0&&c.push({event:p,listeners:D})}var HX=/\r\n?/g,qX=/\u0000|\uFFFD/g;function jC(c){return(typeof c=="string"?c:""+c).replace(HX,` 34`).replace(qX,"")}function wC(c,p){return p=jC(p),jC(c)===p}function bt(c,p,h,x,w,z){switch(h){case"children":typeof x=="string"?p==="body"||p==="textarea"&&x===""||Lc(c,x):(typeof x=="number"||typeof x=="bigint")&&p!=="body"&&Lc(c,""+x);break;case"className":wh(c,"class",x);break;case"tabIndex":wh(c,"tabindex",x);break;case"dir":case"role":case"viewBox":case"width":case"height":wh(c,h,x);break;case"style":w3(c,x,z);break;case"data":if(p!=="object"){wh(c,"data",x);break}case"src":case"href":if(x===""&&(p!=="a"||h!=="href")){c.removeAttribute(h);break}if(x==null||typeof x=="function"||typeof x=="symbol"||typeof x=="boolean"){c.removeAttribute(h);break}x=Ph(""+x),c.setAttribute(h,x);break;case"action":case"formAction":if(typeof x=="function"){c.setAttribute(h,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof z=="function"&&(h==="formAction"?(p!=="input"&&bt(c,p,"name",w.name,w,null),bt(c,p,"formEncType",w.formEncType,w,null),bt(c,p,"formMethod",w.formMethod,w,null),bt(c,p,"formTarget",w.formTarget,w,null)):(bt(c,p,"encType",w.encType,w,null),bt(c,p,"method",w.method,w,null),bt(c,p,"target",w.target,w,null)));if(x==null||typeof x=="symbol"||typeof x=="boolean"){c.removeAttribute(h);break}x=Ph(""+x),c.setAttribute(h,x);break;case"onClick":x!=null&&(c.onclick=Os);break;case"onScroll":x!=null&&Ze("scroll",c);break;case"onScrollEnd":x!=null&&Ze("scrollend",c);break;case"dangerouslySetInnerHTML":if(x!=null){if(typeof x!="object"||!("__html"in x))throw Error(n(61));if(h=x.__html,h!=null){if(w.children!=null)throw Error(n(60));c.innerHTML=h}}break;case"multiple":c.multiple=x&&typeof x!="function"&&typeof x!="symbol";break;case"muted":c.muted=x&&typeof x!="function"&&typeof x!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(x==null||typeof x=="function"||typeof x=="boolean"||typeof x=="symbol"){c.removeAttribute("xlink:href");break}h=Ph(""+x),c.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",h);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":x!=null&&typeof x!="function"&&typeof x!="symbol"?c.setAttribute(h,""+x):c.removeAttribute(h);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
34ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":x&&typeof x!="function"&&typeof x!="symbol"?c.setAttribute(h,""):c.removeAttribute(h);break;case"capture":case"download":x===!0?c.setAttribute(h,""):x!==!1&&x!=null&&typeof x!="function"&&typeof x!="symbol"?c.setAttribute(h,x):c.removeAttribute(h);break;case"cols":case"rows":case"size":case"span":x!=null&&typeof x!="function"&&typeof x!="symbol"&&!isNaN(x)&&1<=x?c.setAttribute(h,x):c.removeAttribute(h);break;case"rowSpan":case"start":x==null||typeof x=="function"||typeof x=="symbol"||isNaN(x)?c.removeAttribute(h):c.setAttribute(h,x);break;case"popover":Ze("beforetoggle",c),Ze("toggle",c),jh(c,"popover",x);break;case"xlinkActuate":Es(c,"http://www.w3.org/1999/xlink","xlink:actuate",x);break;case"xlinkArcrole":Es(c,"http://www.w3.org/1999/xlink","xlink:arcrole",x);break;case"xlinkRole":Es(c,"http://www.w3.org/1999/xlink","xlink:role",x);break;case"xlinkShow":Es(c,"http://www.w3.org/1999/xlink","xlink:show",x);break;case"xlinkTitle":Es(c,"http://www.w3.org/1999/xlink","xlink:title",x);break;case"xlinkType":Es(c,"http://www.w3.org/1999/xlink","xlink:type",x);break;case"xmlBase":Es(c,"http://www.w3.org/XML/1998/namespace","xml:base",x);break;case"xmlLang":Es(c,"http://www.w3.org/XML/1998/namespace","xml:lang",x);break;case"xmlSpace":Es(c,"http://www.w3.org/XML/1998/namespace","xml:space",x);break;case"is":jh(c,"is",x);break;case"innerText":case"textContent":break;default:(!(2<h.length)||h[0]!=="o"&&h[0]!=="O"||h[1]!=="n"&&h[1]!=="N")&&(h=yV.get(h)||h,jh(c,h,x))}}function g2(c,p,h,x,w,z){switch(h){case"style":w3(c,x,z);break;case"dangerouslySetInnerHTML":if(x!=null){if(typeof x!="object"||!("__html"in x))throw Error(n(61));if(h=x.__html,h!=null){if(w.children!=null)throw Error(n(60));c.innerHTML=h}}break;case"children":typeof x=="string"?Lc(c,x):(typeof x=="number"||typeof x=="bigint")&&Lc(c,""+x);break;case"onScroll":x!=null&&Ze("scroll",c);break;case"onScrollEnd":x!=null&&Ze("scrollend",c);break;case"onClick":x!=null&&(c.onclick=Os);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!f3.hasOwnProperty(h))e:{if(h[0]==="o"&&h[1]==="n"&&(w=h.endsWith("Capture"),p=h.slice(2,w?h.length-7:void 0),z=c[gn]||null,z=z!=null?z[h]:null,typeof z=="function"&&c.removeEventListener(p,z,w),typeof x=="function")){typeof z!="function"&&z!==null&&(h in c?c[h]=null:c.hasAttribute(h)&&c.removeAttribute(h)),c.addEventListener(p,x,w);break e}h in c?c[h]=x:x===!0?c.setAttribute(h,""):jh(c,h,x)}}}function Nr(c,p,h){switch(p){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ze("error",c),Ze("load",c);var x=!1,w=!1,z;for(z in h)if(h.hasOwnProperty(z)){var D=h[z];if(D!=null)switch(z){case"src":x=!0;break;case"srcSet":w=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n(137,p));default:bt(c,p,z,D,h,null)}}w&&bt(c,p,"srcSet",h.srcSet,h,null),x&&bt(c,p,"src",h.src,h,null);return;case"input":Ze("invalid",c);var L=z=D=w=null,X=null,ne=null;for(x in h)if(h.hasOwnProperty(x)){var oe=h[x];if(oe!=null)switch(x){case"name":w=oe;break;case"type":D=oe;break;case"checked":X=oe;break;case"defaultChecked":ne=oe;break;case"value":z=oe;break;case"defaultValue":L=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(n(137,p));break;default:bt(c,p,x,oe,h,null)}}b3(c,z,L,X,ne,D,w,!1);return;case"select":Ze("invalid",c),x=D=z=null;for(w in h)if(h.hasOwnProperty(w)&&(L=h[w],L!=null))switch(w){case"value":z=L;break;case"defaultValue":D=L;break;case"multiple":x=L;default:bt(c,p,w,L,h,null)}p=z,h=D,c.multiple=!!x,p!=null?Bc(c,!!x,p,!1):h!=null&&Bc(c,!!x,h,!0);return;case"textarea":Ze("invalid",c),z=w=x=null;for(D in h)if(h.hasOwnProperty(D)&&(L=h[D],L!=null))switch(D){case"value":x=L;break;case"defaultValue":w=L;break;case"children":z=L;break;case"dangerouslySetInnerHTML":if(L!=null)throw Error(n(91));break;default:bt(c,p,D,L,h,null)}S3(c,x,w,z);return;case"option":for(X in h)if(h.hasOwnProperty(X)&&(x=h[X],x!=null))switch(X){case"selected":c.selected=x&&typeof x!="function"&&typeof x!="symbol";break;default:bt(c,p,X,x,h,null)}return;case"dialog":Ze("beforetoggle",c),Ze("toggle",c),Ze("cancel",c),Ze("close",c);break;case"iframe":case"object":Ze("load",c);break;case"video":case"audio":for(x=0;x<Rp.length;x++)Ze(Rp[x],c);break;case"image":Ze("error",c),Ze("load",c);break;case"details":Ze("toggle",c);break;case"embed":case"source":case"link":Ze("error",c),Ze("load",c);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ne in h)if(h.hasOwnProperty(ne)&&(x=h[ne],x!=null))switch(ne){case"children":case"dangerouslySetInnerHTML":throw Error(n(137,p));default:bt(c,p,ne,x,h,null)}return;
vendor: 1,362 bytes, line 34
34default:if(Ab(p)){for(oe in h)h.hasOwnProperty(oe)&&(x=h[oe],x!==void 0&&g2(c,p,oe,x,h,void 0));return}}for(L in h)h.hasOwnProperty(L)&&(x=h[L],x!=null&&bt(c,p,L,x,h,null))}function UX(c,p,h,x){switch(p){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var w=null,z=null,D=null,L=null,X=null,ne=null,oe=null;for(ie in h){var pe=h[ie];if(h.hasOwnProperty(ie)&&pe!=null)switch(ie){case"checked":break;case"value":break;case"defaultValue":X=pe;default:x.hasOwnProperty(ie)||bt(c,p,ie,null,x,pe)}}for(var ae in x){var ie=x[ae];if(pe=h[ae],x.hasOwnProperty(ae)&&(ie!=null||pe!=null))switch(ae){case"type":z=ie;break;case"name":w=ie;break;case"checked":ne=ie;break;case"defaultChecked":oe=ie;break;case"value":D=ie;break;case"defaultValue":L=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(n(137,p));break;default:ie!==pe&&bt(c,p,ae,ie,x,pe)}}Pb(c,D,L,X,ne,oe,z,w);return;case"select":ie=D=L=ae=null;for(z in h)if(X=h[z],h.hasOwnProperty(z)&&X!=null)switch(z){case"value":break;case"multiple":ie=X;default:x.hasOwnProperty(z)||bt(c,p,z,null,x,X)}for(w in x)if(z=x[w],X=h[w],x.hasOwnProperty(w)&&(z!=null||X!=null))switch(w){case"value":ae=z;break;case"defaultValue":L=z;break;case"multiple":D=z;default:z!==X&&bt(c,p,w,z,x,X)}p=L,h=D,x=ie,ae!=null?Bc(c,!!h,ae,!1):!!x!=!!h&&(p!=null?Bc(c,!!h,p,
vendor: 5,266 bytes, line 34
34!0):Bc(c,!!h,h?[]:"",!1));return;case"textarea":ie=ae=null;for(L in h)if(w=h[L],h.hasOwnProperty(L)&&w!=null&&!x.hasOwnProperty(L))switch(L){case"value":break;case"children":break;default:bt(c,p,L,null,x,w)}for(D in x)if(w=x[D],z=h[D],x.hasOwnProperty(D)&&(w!=null||z!=null))switch(D){case"value":ae=w;break;case"defaultValue":ie=w;break;case"children":break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(n(91));break;default:w!==z&&bt(c,p,D,w,x,z)}v3(c,ae,ie);return;case"option":for(var Pe in h)if(ae=h[Pe],h.hasOwnProperty(Pe)&&ae!=null&&!x.hasOwnProperty(Pe))switch(Pe){case"selected":c.selected=!1;break;default:bt(c,p,Pe,null,x,ae)}for(X in x)if(ae=x[X],ie=h[X],x.hasOwnProperty(X)&&ae!==ie&&(ae!=null||ie!=null))switch(X){case"selected":c.selected=ae&&typeof ae!="function"&&typeof ae!="symbol";break;default:bt(c,p,X,ae,x,ie)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Be in h)ae=h[Be],h.hasOwnProperty(Be)&&ae!=null&&!x.hasOwnProperty(Be)&&bt(c,p,Be,null,x,ae);for(ne in x)if(ae=x[ne],ie=h[ne],x.hasOwnProperty(ne)&&ae!==ie&&(ae!=null||ie!=null))switch(ne){case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(n(137,p));break;default:bt(c,p,ne,ae,x,ie)}return;default:if(Ab(p)){for(var vt in h)ae=h[vt],h.hasOwnProperty(vt)&&ae!==void 0&&!x.hasOwnProperty(vt)&&g2(c,p,vt,void 0,x,ae);for(oe in x)ae=x[oe],ie=h[oe],!x.hasOwnProperty(oe)||ae===ie||ae===void 0&&ie===void 0||g2(c,p,oe,ae,x,ie);return}}for(var J in h)ae=h[J],h.hasOwnProperty(J)&&ae!=null&&!x.hasOwnProperty(J)&&bt(c,p,J,null,x,ae);for(pe in x)ae=x[pe],ie=h[pe],!x.hasOwnProperty(pe)||ae===ie||ae==null&&ie==null||bt(c,p,pe,ae,x,ie)}function kC(c){switch(c){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function GX(){if(typeof performance.getEntriesByType=="function"){for(var c=0,p=0,h=performance.getEntriesByType("resource"),x=0;x<h.length;x++){var w=h[x],z=w.transferSize,D=w.initiatorType,L=w.duration;if(z&&L&&kC(D)){for(D=0,L=w.responseEnd,x+=1;x<h.length;x++){var X=h[x],ne=X.startTime;if(ne>L)break;var oe=X.transferSize,pe=X.initiatorType;oe&&kC(pe)&&(X=X.responseEnd,D+=oe*(X<L?1:(L-ne)/(X-ne)))}if(--x,p+=8*(z+D)/(w.duration/1e3),c++,10<c)break}}if(0<c)return p/c/1e6}return navigator.connection&&(c=navigator.connection.downlink,typeof c=="number")?c:5}var f2=null,h2=null;function vm(c){return c.nodeType===9?c:c.ownerDocument}function PC(c){switch(c){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function TC(c,p){if(c===0)switch(p){case"svg":return 1;case"math":return 2;default:return 0}return c===1&&p==="foreignObject"?0:c}function m2(c,p){return c==="textarea"||c==="noscript"||typeof p.children=="string"||typeof p.children=="number"||typeof p.children=="bigint"||typeof p.dangerouslySetInnerHTML=="object"&&p.dangerouslySetInnerHTML!==null&&p.dangerouslySetInnerHTML.__html!=null}var x2=null;function VX(){var c=window.event;return c&&c.type==="popstate"?c===x2?!1:(x2=c,!0):(x2=null,!1)}var AC=typeof setTimeout=="function"?setTimeout:void 0,XX=typeof clearTimeout=="function"?clearTimeout:void 0,zC=typeof Promise=="function"?Promise:void 0,KX=typeof queueMicrotask=="function"?queueMicrotask:typeof zC<"u"?function(c){return zC.resolve(null).then(c).catch(QX)}:AC;function QX(c){setTimeout(function(){throw c})}function Qi(c){return c==="head"}function CC(c,p){var h=p,x=0;do{var w=h.nextSibling;if(c.removeChild(h),w&&w.nodeType===8)if(h=w.data,h==="/$"||h==="/&"){if(x===0){c.removeChild(w),md(p);return}x--}else if(h==="$"||h==="$?"||h==="$~"||h==="$!"||h==="&")x++;else if(h==="html")_p(c.ownerDocument.documentElement);else if(h==="head"){h=c.ownerDocument.head,_p(h);for(var z=h.firstChild;z;){var D=z.nextSibling,L=z.nodeName;z[ep]||L==="SCRIPT"||L==="STYLE"||L==="LINK"&&z.rel.toLowerCase()==="stylesheet"||h.removeChild(z),z=D}}else h==="body"&&_p(c.ownerDocument.body);h=w}while(h);md(p)}function EC(c,p){var h=c;c=0;do{var x=h.nextSibling;if(h.nodeType===1?p?(h._stashedDisplay=h.style.display,h.style.display="none"):(h.style.display=h._stashedDisplay||"",h.getAttribute("style")===""&&h.removeAttribute("style")):h.nodeType===3&&(p?(h._stashedText=h.nodeValue,h.nodeValue=""):h.nodeValue=h._stashedText||""),x&&x.nodeType===8)if(h=x.data,h==="/$"){if(c===0)break;c--}else h!=="$"&&h!=="$?"&&h!=="$~"&&h!=="$!"||c++;h=x}while(h)}function y2(c){var p=c.firstChild;for(p&&p.nodeType===10&&(p=p.nextSibling);p;){var h=p;switch(p=p.nextSibling,h.nodeName){case"HTML":case"HEAD":case"BODY":y2(h),wb(h);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(h.rel.toLowerCase()==="stylesheet")continue}c.removeChild(h)}}function YX(c,p,h,x){for(;c.nodeType===1;){var w=h;if(c.nodeName.toLowerCase()!==p.toLowerCase()){if(!x&&(c.nodeName!=="INPUT"||c.type!=="hidden"))break}else if(x){if(!c[ep])switch(p){case"meta":if(!c.hasAttribute("itemprop"))break;return c;case"link":if(z=c.getAttribute("rel"),z==="stylesheet"&&c.hasAttribute("data-precedence"))break;if(z!==w.rel||c.getAttribute("href")!==(w.href==null||w.href===""?null:w.href)||c.getAttribute("crossorigin")!==(w.
vendor: 10,388 bytes, line 34
34crossOrigin==null?null:w.crossOrigin)||c.getAttribute("title")!==(w.title==null?null:w.title))break;return c;case"style":if(c.hasAttribute("data-precedence"))break;return c;case"script":if(z=c.getAttribute("src"),(z!==(w.src==null?null:w.src)||c.getAttribute("type")!==(w.type==null?null:w.type)||c.getAttribute("crossorigin")!==(w.crossOrigin==null?null:w.crossOrigin))&&z&&c.hasAttribute("async")&&!c.hasAttribute("itemprop"))break;return c;default:return c}}else if(p==="input"&&c.type==="hidden"){var z=w.name==null?null:""+w.name;if(w.type==="hidden"&&c.getAttribute("name")===z)return c}else return c;if(c=ra(c.nextSibling),c===null)break}return null}function ZX(c,p,h){if(p==="")return null;for(;c.nodeType!==3;)if((c.nodeType!==1||c.nodeName!=="INPUT"||c.type!=="hidden")&&!h||(c=ra(c.nextSibling),c===null))return null;return c}function OC(c,p){for(;c.nodeType!==8;)if((c.nodeType!==1||c.nodeName!=="INPUT"||c.type!=="hidden")&&!p||(c=ra(c.nextSibling),c===null))return null;return c}function b2(c){return c.data==="$?"||c.data==="$~"}function v2(c){return c.data==="$!"||c.data==="$?"&&c.ownerDocument.readyState!=="loading"}function JX(c,p){var h=c.ownerDocument;if(c.data==="$~")c._reactRetry=p;else if(c.data!=="$?"||h.readyState!=="loading")p();else{var x=function(){p(),h.removeEventListener("DOMContentLoaded",x)};h.addEventListener("DOMContentLoaded",x),c._reactRetry=x}}function ra(c){for(;c!=null;c=c.nextSibling){var p=c.nodeType;if(p===1||p===3)break;if(p===8){if(p=c.data,p==="$"||p==="$!"||p==="$?"||p==="$~"||p==="&"||p==="F!"||p==="F")break;if(p==="/$"||p==="/&")return null}}return c}var S2=null;function MC(c){c=c.nextSibling;for(var p=0;c;){if(c.nodeType===8){var h=c.data;if(h==="/$"||h==="/&"){if(p===0)return ra(c.nextSibling);p--}else h!=="$"&&h!=="$!"&&h!=="$?"&&h!=="$~"&&h!=="&"||p++}c=c.nextSibling}return null}function NC(c){c=c.previousSibling;for(var p=0;c;){if(c.nodeType===8){var h=c.data;if(h==="$"||h==="$!"||h==="$?"||h==="$~"||h==="&"){if(p===0)return c;p--}else h!=="/$"&&h!=="/&"||p++}c=c.previousSibling}return null}function RC(c,p,h){switch(p=vm(h),c){case"html":if(c=p.documentElement,!c)throw Error(n(452));return c;case"head":if(c=p.head,!c)throw Error(n(453));return c;case"body":if(c=p.body,!c)throw Error(n(454));return c;default:throw Error(n(451))}}function _p(c){for(var p=c.attributes;p.length;)c.removeAttributeNode(p[0]);wb(c)}var na=new Map,DC=new Set;function Sm(c){return typeof c.getRootNode=="function"?c.getRootNode():c.nodeType===9?c:c.ownerDocument}var Vs=U.d;U.d={f:eK,r:tK,D:rK,C:nK,L:aK,m:sK,X:oK,S:iK,M:lK};function eK(){var c=Vs.f(),p=pm();return c||p}function tK(c){var p=Dc(c);p!==null&&p.tag===5&&p.type==="form"?Zz(p):Vs.r(c)}var gd=typeof document>"u"?null:document;function _C(c,p,h){var x=gd;if(x&&typeof p=="string"&&p){var w=Kn(p);w='link[rel="'+c+'"][href="'+w+'"]',typeof h=="string"&&(w+='[crossorigin="'+h+'"]'),DC.has(w)||(DC.add(w),c={rel:c,crossOrigin:h,href:p},x.querySelector(w)===null&&(p=x.createElement("link"),Nr(p,"link",c),jr(p),x.head.appendChild(p)))}}function rK(c){Vs.D(c),_C("dns-prefetch",c,null)}function nK(c,p){Vs.C(c,p),_C("preconnect",c,p)}function aK(c,p,h){Vs.L(c,p,h);var x=gd;if(x&&c&&p){var w='link[rel="preload"][as="'+Kn(p)+'"]';p==="image"&&h&&h.imageSrcSet?(w+='[imagesrcset="'+Kn(h.imageSrcSet)+'"]',typeof h.imageSizes=="string"&&(w+='[imagesizes="'+Kn(h.imageSizes)+'"]')):w+='[href="'+Kn(c)+'"]';var z=w;switch(p){case"style":z=fd(c);break;case"script":z=hd(c)}na.has(z)||(c=f({rel:"preload",href:p==="image"&&h&&h.imageSrcSet?void 0:c,as:p},h),na.set(z,c),x.querySelector(w)!==null||p==="style"&&x.querySelector(Ip(z))||p==="script"&&x.querySelector(Bp(z))||(p=x.createElement("link"),Nr(p,"link",c),jr(p),x.head.appendChild(p)))}}function sK(c,p){Vs.m(c,p);var h=gd;if(h&&c){var x=p&&typeof p.as=="string"?p.as:"script",w='link[rel="modulepreload"][as="'+Kn(x)+'"][href="'+Kn(c)+'"]',z=w;switch(x){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":z=hd(c)}if(!na.has(z)&&(c=f({rel:"modulepreload",href:c},p),na.set(z,c),h.querySelector(w)===null)){switch(x){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(h.querySelector(Bp(z)))return}x=h.createElement("link"),Nr(x,"link",c),jr(x),h.head.appendChild(x)}}}function iK(c,p,h){Vs.S(c,p,h);var x=gd;if(x&&c){var w=_c(x).hoistableStyles,z=fd(c);p=p||"default";var D=w.get(z);if(!D){var L={loading:0,preload:null};if(D=x.querySelector(Ip(z)))L.loading=5;else{c=f({rel:"stylesheet",href:c,"data-precedence":p},h),(h=na.get(z))&&j2(c,h);var X=D=x.createElement("link");jr(X),Nr(X,"link",c),X._p=new Promise(function(ne,oe){X.onload=ne,X.onerror=oe}),X.addEventListener("load",function(){L.loading|=1}),X.addEventListener("error",function(){L.loading|=2}),L.loading|=4,jm(D,p,x)}D={type:"stylesheet",instance:D,count:1,state:L},w.set(z,D)}}}function oK(c,p){Vs.X(c,p);var h=gd;if(h&&c){var x=_c(h).hoistableScripts,w=hd(c),z=x.get(w);z||(z=h.querySelector(Bp(w)),z||(c=f({src:c,async:!0},p),(p=na.get(w))&&w2(c,p),z=h.createElement("script"),jr(z),Nr(z,"link",c),h.head.appendChild(z)),z={type:"script",instance:z,count:1,state:null},x.set(w,z))}}function lK(c,p){Vs.M(c,p);var h=gd;if(h&&c){var x=_c(h).hoistableScripts,w=hd(c),z=x.get(w);z||(z=h.querySelector(Bp(w)),z||(c=f({src:c,async:!0,type:"module"},p),(p=na.get(w))&&w2(c,p),z=h.createElement("script"),jr(z),Nr(z,"link",c),h.head.appendChild(z)),z={type:"script",instance:z,count:1,state:null},x.set(w,z))}}function IC(c,p,h,x){var w=(w=xe.current)?Sm(w):null;if(!w)throw Error(n(446));switch(c){case"meta":case"title":return null;case"style":return typeof h.precedence=="string"&&typeof h.href=="string"?(p=fd(h.href),h=_c(w).hoistableStyles,x=h.get(p),x||(x={type:"style",instance:null,count:0,state:null},h.set(p,x)),x):{type:"void",instance:null,count:0,state:null};case"link":if(h.rel==="stylesheet"&&typeof h.href=="string"&&typeof h.precedence=="string"){c=fd(h.href);var z=_c(w).hoistableStyles,D=z.get(c);if(D||(w=w.ownerDocument||w,D={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},z.set(c,D),(z=w.querySelector(Ip(c)))&&!z._p&&(D.instance=z,D.state.loading=5),na.has(c)||(h={rel:"preload",as:"style",href:h.href,crossOrigin:h.crossOrigin,integrity:h.integrity,media:h.media,hrefLang:h.hrefLang,referrerPolicy:h.referrerPolicy},na.set(c,h),z||cK(w,c,h,D.state))),p&&x===null)throw Error(n(528,""));return D}if(p&&x!==null)throw Error(n(529,""));return null;case"script":return p=h.async,h=h.src,typeof h=="string"&&p&&typeof p!="function"&&typeof p!="symbol"?(p=hd(h),h=_c(w).hoistableScripts,x=h.get(p),x||(x={type:"script",instance:null,count:0,state:null},h.set(p,x)),x):{type:"void",instance:null,count:0,state:null};default:throw Error(n(444,c))}}function fd(c){return'href="'+Kn(c)+'"'}function Ip(c){return'link[rel="stylesheet"]['+c+"]"}function BC(c){return f({},c,{"data-precedence":c.precedence,precedence:null})}function cK(c,p,h,x){c.querySelector('link[rel="preload"][as="style"]['+p+"]")?x.loading=1:(p=c.createElement("link"),x.preload=p,p.addEventListener("load",function(){return x.loading|=1}),p.addEventListener("error",function(){return x.loading|=2}),Nr(p,"link",h),jr(p),c.head.appendChild(p))}function hd(c){return'[src="'+Kn(c)+'"]'}function Bp(c){return"script[async]"+c}function LC(c,p,h){if(p.count++,p.instance===null)switch(p.type){case"style":var x=c.querySelector('style[data-href~="'+Kn(h.href)+'"]');if(x)return p.instance=x,jr(x),x;var w=f({},h,{"data-href":h.href,"data-precedence":h.precedence,href:null,precedence:null});return x=(c.ownerDocument||c).createElement("style"),jr(x),Nr(x,"style",w),jm(x,h.precedence,c),p.instance=x;case"stylesheet":w=fd(h.href);var z=c.querySelector(Ip(w));if(z)return p.state.loading|=4,p.instance=z,jr(z),z;x=BC(h),(w=na.get(w))&&j2(x,w),z=(c.ownerDocument||c).createElement("link"),jr(z);var D=z;return D._p=new Promise(function(L,X){D.onload=L,D.onerror=X}),Nr(z,"link",x),p.state.loading|=4,jm(z,h.precedence,c),p.instance=z;case"script":return z=hd(h.src),(w=c.querySelector(Bp(z)))?(p.instance=w,jr(w),w):(x=h,(w=na.get(z))&&(x=f({},h),w2(x,w)),c=c.ownerDocument||c,w=c.createElement("script"),jr(w),Nr(w,"link",x),c.head.appendChild(w),p.instance=w);case"void":return null;default:throw Error(n(443,p.type))}else p.type==="stylesheet"&&(p.state.loading&4)===0&&(x=p.instance,p.state.loading|=4,jm(x,h.precedence,c));return p.instance}function jm(c,p,h){for(var x=h.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),w=x.length?x[x.length-1]:null,z=w,D=0;D<x.length;D++){var L=x[D];if(L.dataset.precedence===p)z=L;else if(z!==w)break}z?z.parentNode.insertBefore(c,z.nextSibling):(p=h.nodeType===9?h.head:h,p.insertBefore(c,p.firstChild))}function j2(c,p){c.crossOrigin==null&&(c.crossOrigin=p.crossOrigin),c.referrerPolicy==null&&(c.referrerPolicy=p.referrerPolicy),c.title==null&&(c.title=p.title)}function w2(c,p){c.crossOrigin==null&&(c.crossOrigin=p.crossOrigin),c.referrerPolicy==null&&(c.referrerPolicy=p.referrerPolicy),c.integrity==null&&(c.integrity=p.integrity)}var wm=null;function WC(c,p,h){if(wm===null){var x=new Map,w=wm=new Map;w.set(h,x)}else w=wm,x=w.get(h),x||(x=new Map,w.set(h,x));if(x.has(c))return x;for(x.set(c,null),h=h.getElementsByTagName(c),w=0;w<h.length;w++){var z=h[w];if(!(z[ep]||z[Cr]||c==="link"&&z.getAttribute("rel")==="stylesheet")&&z.namespaceURI!=="http://www.w3.org/2000/svg"){var D=z.getAttribute(p)||"";D=c+D;var L=x.get(D);L?L.push(z):x.set(D,[z])}}return x}function $C(c,p,h){c=c.ownerDocument||c,c.head.insertBefore(h,p==="title"?c.querySelector("head > title"):null)}function dK(c,p,h){if(h===1||p.itemProp!=null)return!1;switch(c){case"meta":case"title":return!0;case"style":if(typeof p.precedence!="string"||typeof p.href!="string"||p.href==="")break;return!0;case"link":if(typeof p.rel!="string"||typeof p.href!="string"||p.href===""||p.onLoad||p.onError)break;switch(p.rel){case"stylesheet":return c=p.disabled,typeof p.precedence=="string"&&c==null;default:return!0}case"script":if(p.async&&typeof p.async!="function"&&typeof p.async!="symbol"&&!p.onLoad&&!p.onError&&p.src&&typeof p.src=="string")return!0}return!1}function FC(c){return!(c.type==="stylesheet"&&(c.state.loading&3)===0)}function uK(c,p,h,x){if(h.type==="stylesheet"&&(typeof x.media!="str
34ing"||matchMedia(x.media).matches!==!1)&&(h.state.loading&4)===0){if(h.instance===null){var w=fd(x.href),z=p.querySelector(Ip(w));if(z){p=z._p,p!==null&&typeof p=="object"&&typeof p.then=="function"&&(c.count++,c=km.bind(c),p.then(c,c)),h.state.loading|=4,h.instance=z,jr(z);return}z=p.ownerDocument||p,x=BC(x),(w=na.get(w))&&j2(x,w),z=z.createElement("link"),jr(z);var D=z;D._p=new Promise(function(L,X){D.onload=L,D.onerror=X}),Nr(z,"link",x),h.instance=z}c.stylesheets===null&&(c.stylesheets=new Map),c.stylesheets.set(h,p),(p=h.state.preload)&&(h.state.loading&3)===0&&(c.count++,h=km.bind(c),p.addEventListener("load",h),p.addEventListener("error",h))}}var k2=0;function pK(c,p){return c.stylesheets&&c.count===0&&Tm(c,c.stylesheets),0<c.count||0<c.imgCount?function(h){var x=setTimeout(function(){if(c.stylesheets&&Tm(c,c.stylesheets),c.unsuspend){var z=c.unsuspend;c.unsuspend=null,z()}},6e4+p);0<c.imgBytes&&k2===0&&(k2=62500*GX());var w=setTimeout(function(){if(c.waitingForImages=!1,c.count===0&&(c.stylesheets&&Tm(c,c.stylesheets),c.unsuspend)){var z=c.unsuspend;c.unsuspend=null,z()}},(c.imgBytes>
vendor: 4,175 bytes, line 34
34k2?50:800)+p);return c.unsuspend=h,function(){c.unsuspend=null,clearTimeout(x),clearTimeout(w)}}:null}function km(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Tm(this,this.stylesheets);else if(this.unsuspend){var c=this.unsuspend;this.unsuspend=null,c()}}}var Pm=null;function Tm(c,p){c.stylesheets=null,c.unsuspend!==null&&(c.count++,Pm=new Map,p.forEach(gK,c),Pm=null,km.call(c))}function gK(c,p){if(!(p.state.loading&4)){var h=Pm.get(c);if(h)var x=h.get(null);else{h=new Map,Pm.set(c,h);for(var w=c.querySelectorAll("link[data-precedence],style[data-precedence]"),z=0;z<w.length;z++){var D=w[z];(D.nodeName==="LINK"||D.getAttribute("media")!=="not all")&&(h.set(D.dataset.precedence,D),x=D)}x&&h.set(null,x)}w=p.instance,D=w.getAttribute("data-precedence"),z=h.get(D)||x,z===x&&h.set(null,w),h.set(D,w),this.count++,x=km.bind(this),w.addEventListener("load",x),w.addEventListener("error",x),z?z.parentNode.insertBefore(w,z.nextSibling):(c=c.nodeType===9?c.head:c,c.insertBefore(w,c.firstChild)),p.state.loading|=4}}var Lp={$$typeof:P,Provider:null,Consumer:null,_currentValue:q,_currentValue2:q,_threadCount:0};function fK(c,p,h,x,w,z,D,L,X){this.tag=1,this.containerInfo=c,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Oi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Oi(0),this.hiddenUpdates=Oi(null),this.identifierPrefix=x,this.onUncaughtError=w,this.onCaughtError=z,this.onRecoverableError=D,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=X,this.incompleteTransitions=new Map}function HC(c,p,h,x,w,z,D,L,X,ne,oe,pe){return c=new fK(c,p,h,D,X,ne,oe,pe,L),p=1,z===!0&&(p|=24),z=En(3,null,null,p),c.current=z,z.stateNode=c,p=n1(),p.refCount++,c.pooledCache=p,p.refCount++,z.memoizedState={element:x,isDehydrated:h,cache:p},o1(z),c}function qC(c){return c?(c=Gc,c):Gc}function UC(c,p,h,x,w,z){w=qC(w),x.context===null?x.context=w:x.pendingContext=w,x=Li(p),x.payload={element:h},z=z===void 0?null:z,z!==null&&(x.callback=z),h=Wi(c,x,p),h!==null&&(bn(h,c,p),xp(h,c,p))}function GC(c,p){if(c=c.memoizedState,c!==null&&c.dehydrated!==null){var h=c.retryLane;c.retryLane=h!==0&&h<p?h:p}}function P2(c,p){GC(c,p),(c=c.alternate)&&GC(c,p)}function VC(c){if(c.tag===13||c.tag===31){var p=al(c,67108864);p!==null&&bn(p,c,67108864),P2(c,67108864)}}function XC(c){if(c.tag===13||c.tag===31){var p=Dn();p=Mc(p);var h=al(c,p);h!==null&&bn(h,c,p),P2(c,p)}}var Am=!0;function hK(c,p,h,x){var w=I.T;I.T=null;var z=U.p;try{U.p=2,T2(c,p,h,x)}finally{U.p=z,I.T=w}}function mK(c,p,h,x){var w=I.T;I.T=null;var z=U.p;try{U.p=8,T2(c,p,h,x)}finally{U.p=z,I.T=w}}function T2(c,p,h,x){if(Am){var w=A2(x);if(w===null)p2(c,p,x,zm,h),QC(c,x);else if(yK(w,c,p,h,x))x.stopPropagation();else if(QC(c,x),p&4&&-1<xK.indexOf(c)){for(;w!==null;){var z=Dc(w);if(z!==null)switch(z.tag){case 3:if(z=z.stateNode,z.current.memoizedState.isDehydrated){var D=Ya(z.pendingLanes);if(D!==0){var L=z;for(L.pendingLanes|=2,L.entangledLanes|=2;D;){var X=1<<31-$r(D);L.entanglements[1]|=X,D&=~X}ts(z),(ut&6)===0&&(dm=vr()+500,Np(0))}}break;case 31:case 13:L=al(z,2),L!==null&&bn(L,z,2),pm(),P2(z,2)}if(z=A2(x),z===null&&p2(c,p,x,zm,h),z===w)break;w=z}w!==null&&x.stopPropagation()}else p2(c,p,x,null,h)}}function A2(c){return c=Cb(c),z2(c)}var zm=null;function z2(c){if(zm=null,c=Rc(c),c!==null){var p=i(c);if(p===null)c=null;else{var h=p.tag;if(h===13){if(c=o(p),c!==null)return c;c=null}else if(h===31){if(c=l(p),c!==null)return c;c=null}else if(h===3){if(p.stateNode.current.memoizedState.isDehydrated)return p.tag===3?p.stateNode.containerInfo:null;c=null}else p!==c&&(c=null)}}return zm=c,null}function KC(c){switch(c){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invali
34d":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Cc()){case Ko:return 2;case vh:return 8;case Qo:case Zu:return 32;case Cs:return 268435456;default:return 32}default:return 32}}var C2=!1,Yi=null,Zi=null,Ji=null,Wp=new Map,$p=new Map,eo=[],xK="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function QC(c,p){switch(c){case"focusin":case"focusout":Yi=null;break;case"dragenter":case"dragleave":Zi=null;break;case"mouseover":case"mouseout":Ji=null;break;case"pointerover":case"pointerout":Wp.delete(p.pointerId);break;case"gotpointercapture":case"lostpointercapture":$p.delete(p.pointerId)}}function Fp(c,p,h,x,w,z){return c===null||c.nativeEvent!==z?(c={blockedOn:p,domEventName:h,eventSystemFlags:x,nativeEvent:z,targetContainers:[w]},p!==null&&(p=Dc(p),p!==null&&VC(p)),c):(c.eventSystemFlags|=x,p=c.targetContainers,w!==null&&p.indexOf(w)===-1&&p.push(w),c)}function yK(c,p,h,x,w){switch(p){case"focusin":return Yi=Fp(Yi,c,p,h,x,w),!0;case"dragenter":return Zi=Fp(Zi,c,p,h,x,w),!0;case"mouseover":return Ji=Fp(Ji,c,p,h,x,w),!0;case"pointerover":var z=w.pointerId;return Wp.set(z,Fp(Wp.get(z)||null,c,p,h,x,w)),!0;case"gotpointercapture":return z=w.pointerId,$p.set(z,Fp($p.get(z)||null,c,p,h,x,w)),!0}return!1}function YC(c){var p=Rc(c.target);if(p!==null){var h=i(p);if(h!==null){if(p=h.tag,p===13){if(p=o(h),p!==null){c.blockedOn=p,u3(c.priority,function(){XC(h)});return}}else if(p===31){if(p=l(h),p!==null){c.blockedOn=p,u3(c.priority,function(){XC(h)});return}}else if(p===3&&h.stateNode.current.memoizedState.isDehydrated){c.blockedOn=h.tag===3?h.stateNode.containerInfo:null;return}}}c.blockedOn=null}function Cm(c){if(c.blockedOn!==null)return!1;for(var p=c.targetContainers;0<p.length;){var h=A2(c.nativeEvent);if(h===null){h=c.nativeEvent;var x=new h.constructor(h.type,h);zb=x,h.target.dispatchEvent(x),zb=null}else return p=Dc(h),p!==null&&VC(p),c.blockedOn=h,!1;p.shift()}return!0}function ZC(c,p,h){Cm(c)&&h.delete(p)}function bK(){C2=!1,Yi!==null&&Cm(Yi)&&(Yi=null),Zi!==null&&Cm(Zi)&&(Zi=null),Ji!==null&&Cm(Ji)&&(Ji=null),Wp.forEach(ZC),$p.forEach(ZC)}function Em(c,p){c.blockedOn===p&&(c.blockedOn=null,C2||(C2=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,bK)))}var Om=null;function JC(c){Om!==c&&(Om=c,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Om===c&&(Om=null);for(var p=0;p<c.length;p+=3){var h=c[p],x=c[p+1],w=c[p+2];if(typeof x!="function"){if(z2(x||h)===null)continue;break}var z=Dc(h);z!==null&&(c.splice(p,3),p-=3,A1(z,{pending:!0,data:w,method:h.method,action:x},x,w))}}))}function md(c){function p(X){return Em(X,c)}Yi!==null&&Em(Yi,c),Zi!==null&&Em(Zi,c),Ji!==null&&Em(Ji,c),Wp.forEach(p),$p.forEach(p);for(var h=0;h<eo.length;h++){var x=eo[h];x.blockedOn===c&&(x.blockedOn=null)}for(;0<eo.length&&(h=eo[0],h.blockedOn===null);)YC(h),h.blockedOn===null&&eo.shift();if(h=(c.ownerDocument||c).$$reactFormReplay,h!=null)for(x=0;x<h.length;x+=3){var w=h[x],z=h[x+1],D=w[gn]||null;if(typeof z=="function")D||JC(h);else if(D){var L=null;if(z&&z.hasAttribute("formAction")){if(w=z,D=z[gn]||null)L=D.formAction;else if(z2(w)!==null)continue}else L=D.action;
vendor: 4,527 bytes, line 34
34typeof L=="function"?h[x+1]=L:(h.splice(x,3),x-=3),JC(h)}}}function e8(){function c(z){z.canIntercept&&z.info==="react-transition"&&z.intercept({handler:function(){return new Promise(function(D){return w=D})},focusReset:"manual",scroll:"manual"})}function p(){w!==null&&(w(),w=null),x||setTimeout(h,20)}function h(){if(!x&&!navigation.transition){var z=navigation.currentEntry;z&&z.url!=null&&navigation.navigate(z.url,{state:z.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var x=!1,w=null;return navigation.addEventListener("navigate",c),navigation.addEventListener("navigatesuccess",p),navigation.addEventListener("navigateerror",p),setTimeout(h,100),function(){x=!0,navigation.removeEventListener("navigate",c),navigation.removeEventListener("navigatesuccess",p),navigation.removeEventListener("navigateerror",p),w!==null&&(w(),w=null)}}}function E2(c){this._internalRoot=c}Mm.prototype.render=E2.prototype.render=function(c){var p=this._internalRoot;if(p===null)throw Error(n(409));var h=p.current,x=Dn();UC(h,x,c,p,null,null)},Mm.prototype.unmount=E2.prototype.unmount=function(){var c=this._internalRoot;if(c!==null){this._internalRoot=null;var p=c.containerInfo;UC(c.current,2,null,c,null,null),pm(),p[Nc]=null}};function Mm(c){this._internalRoot=c}Mm.prototype.unstable_scheduleHydration=function(c){if(c){var p=Sb();c={blockedOn:null,target:c,priority:p};for(var h=0;h<eo.length&&p!==0&&p<eo[h].priority;h++);eo.splice(h,0,c),h===0&&YC(c)}};var t8=t.version;if(t8!=="19.2.1")throw Error(n(527,t8,"19.2.1"));U.findDOMNode=function(c){var p=c._reactInternals;if(p===void 0)throw typeof c.render=="function"?Error(n(188)):(c=Object.keys(c).join(","),Error(n(268,c)));return c=u(p),c=c!==null?g(c):null,c=c===null?null:c.stateNode,c};var vK={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:I,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Nm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nm.isDisabled&&Nm.supportsFiber)try{Yo=Nm.inject(vK),Zr=Nm}catch{}}return Up.createRoot=function(c,p){if(!s(c))throw Error(n(299));var h=!1,x="",w=l6,z=c6,D=d6;return p!=null&&(p.unstable_strictMode===!0&&(h=!0),p.identifierPrefix!==void 0&&(x=p.identifierPrefix),p.onUncaughtError!==void 0&&(w=p.onUncaughtError),p.onCaughtError!==void 0&&(z=p.onCaughtError),p.onRecoverableError!==void 0&&(D=p.onRecoverableError)),p=HC(c,1,!1,null,null,h,x,null,w,z,D,e8),c[Nc]=p.current,u2(c),new E2(p)},Up.hydrateRoot=function(c,p,h){if(!s(c))throw Error(n(299));var x=!1,w="",z=l6,D=c6,L=d6,X=null;return h!=null&&(h.unstable_strictMode===!0&&(x=!0),h.identifierPrefix!==void 0&&(w=h.identifierPrefix),h.onUncaughtError!==void 0&&(z=h.onUncaughtError),h.onCaughtError!==void 0&&(D=h.onCaughtError),h.onRecoverableError!==void 0&&(L=h.onRecoverableError),h.formState!==void 0&&(X=h.formState)),p=HC(c,1,!0,p,h??null,x,w,X,z,D,L,e8),p.context=qC(null),h=p.current,x=Dn(),x=Mc(x),w=Li(x),w.callback=null,Wi(h,w,x),h=x,p.current.lanes=h,It(p,h),ts(p),c[Nc]=p.current,u2(c),new Mm(p)},Up.version="19.2.1",Up}var A8;function LY(){if(A8)return I2.exports;A8=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),I2.exports=BY(),I2.exports}var WY=LY(),$Y=(function(){function e(){this.keyToValue=new Map,this.valueToKey=new Map}return e.prototype.set=function(t,r){this.keyToValue.set(t,r),this.valueToKey.set(r,t)},e.prototype.getByKey=function(t){return this.keyToValue.get(t)},e.prototype.getByValue=function(t){return this.valueToKey.get(t)},e.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},e})(),jL=(function(){function e(t){this.generateIdentifier=t,this.kv=new $Y}return e.prototype.register=function(t,r){this.kv.getByValue(t)||(r||(r=this.generateIdentifier(t)),this.kv.set(r,t))},e.prototype.clear=function(){this.kv.clear()},e.prototype.getIdentifier=function(t){return this.kv.getByValue(t)},e.prototype.getValue=function(t){return this.kv.getByKey(t)},e})(),FY=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}
34t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),HY=(function(e){FY(t,e);function t(){var r=e.call(this,function(n){return n.name})||this;return r.classToAllowedProps=new Map,r}return t.prototype.register=function(r,n){typeof n=="object"?(n.allowProps&&this.classToAllowedProps.set(r,n.allowProps),e.prototype.register.call(this,r,n.identifier)):e.prototype.register.call(this,r,n)},t.prototype.getAllowedProps=function(r){return this.classToAllowedProps.get(r)},t})(jL),qY=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),s,i=[],o;try{for(;(t===void 0||t-- >0)&&!(s=n.next()).done;)i.push(s.value)}catch(l){o={error:l}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i};function UY(e){if("values"in Object)return Object.values(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(e[r]);return t}function GY(e,t){var r=UY(e);if("find"in r)return r.find(t);for(var n=r,s=0;s<n.length;s++){var i=n[s];if(t(i))return i}}function Zd(e,t){Object.entries(e).forEach(function(r){var n=qY(r,2),s=n[0],i=n[1];return t(i,s)})}function Lx(e,t){return e.indexOf(t)!==-1}function z8(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(t(n))return n}}var VY=(function(){function e(){this.transfomers={}}return e.prototype.register=function(t){this.transfomers[t.name]=t},e.prototype.findApplicable=function(t){return GY(this.transfomers,function(r){return r.isApplicable(t)})},e.prototype.findByName=function(t){return this.transfomers[t]},e})(),XY=function(e){return Object.prototype.toString.call(e).slice(8,-1)},wL=function(e){return typeof e>"u"},KY=function(e){return e===null},Hg=function(e){return typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype},hP=function(e){return Hg(e)&&Object.keys(e).length===0},Mo=function(e){return Array.isArray(e)},QY=function(e){return typeof e=="string"},YY=function(e){return typeof e=="number"&&!isNaN(e)},ZY=function(e){return typeof e=="boolean"},JY=function(e){return e instanceof RegExp},qg=function(e){return e instanceof Map},Ug=function(e){return e instanceof Set},kL=function(e){return XY(e)==="Symbol"},eZ=function(e){return e instanceof Date&&!isNaN(e.valueOf())},tZ=function(e){return e instanceof Error},C8=function(e){return typeof e=="number"&&isNaN(e)},rZ=function(e){return ZY(e)||KY(e)||wL(e)||YY(e)||QY(e)||kL(e)},nZ=function(e){return typeof e=="bigint"},aZ=function(e){return e===1/0||e===-1/0},sZ=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},iZ=function(e){return e instanceof URL},PL=function(e){return e.replace(/\./g,"\\.")},$2=function(e){return e.map(String).map(PL).join(".")},wg=function(e){for(var t=[],r="",n=0;n<e.length;n++){var s=e.charAt(n),i=s==="\\"&&e.charAt(n+1)===".";if(i){r+=".",n++;continue}var o=s===".";if(o){t.push(r),r="";
34continue}r+=s}var l=r;return t.push(l),t},mP=function(){return mP=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},mP.apply(this,arguments)},xP=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),s,i=[],o;try{for(;(t===void 0||t-- >0)&&!(s=n.next()).done;)i.push(s.value)}catch(l){o={error:l}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i},yP=function(e,t){for(var r=0,n=t.length,s=e.length;r<n;r++,s++)e[s]=t[r];return e};function rs(e,t,r,n){return{isApplicable:e,annotation:t,transform:r,untransform:n}}var TL=[rs(wL,"undefined",function(){return null},function(){}),rs(nZ,"bigint",function(e){return e.toString()},function(e){return typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),rs(eZ,"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),rs(tZ,"Error",function(e,t){var r={name:e.name,message:e.message};return t.allowedErrorProps.forEach(function(n){r[n]=e[n]}),r},function(e,t){var r=new Error(e.message);return r.name=e.name,r.stack=e.stack,t.allowedErrorProps.forEach(function(n){r[n]=e[n]}),r}),rs(JY,"regexp",function(e){return""+e},function(e){var t=e.slice(1,e.lastIndexOf("/")),r=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,r)}),rs(Ug,"set",function(e){return yP([],xP(e.values()))},function(e){return new Set(e)}),rs(qg,"map",function(e){return yP([],xP(e.entries()))},function(e){return new Map(e)}),rs(function(e){return C8(e)||aZ(e)},"number",function(e){return C8(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),rs(function(e){return e===0&&1/e===-1/0},"number",function(){return"-0"},Number),rs(iZ,"URL",function(e){return e.toString()},function(e){return new URL(e)})];function sy(e,t,r,n){return{isApplicable:e,annotation:t,transform:r,untransform:n}}var AL=sy(function(e,t){if(kL(e)){var r=!!t.symbolRegistry.getIdentifier(e);return r}return!1},function(e,t){var r=t.symbolRegistry.getIdentifier(e);return["symbol",r]},function(e){return e.description},function(e,t,r){var n=r.symbolRegistry.getValue(t[1]);if(!n)throw new Error("Trying to deserialize unknown symbol");return n}),oZ=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),zL=sy(sZ,function(e){return["typed-array",e.constructor.name]},function(e){return yP([],xP(e))},function(e,t){var r=oZ[t[1]];if(!r)throw new Error("Trying to deserialize unknown typed array");return new r(e)});function CL(e,t){if(e?.constructor){var r=!!t.classRegistry.getIdentifier(e.constructor);return r}return!1}var EL=sy(CL,function(e,t){var r=t.classRegistry.getIdentifier(e.constructor);return["class",r]},function(e,t){var r=t.classRegistry.getAllowedProps(e.constructor);if(!r)return mP({},e);var n={};return r.forEach(function(s){n[s]=e[s]}),n},function(e,t,r){var n=r.classRegistry.getValue(t[1]);if(!n)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(n.prototype),e)}),OL=sy(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){var r=t.customTransformerRegistry.findApplicable(e);return["custom",r.name]},function(e,t){var r=t.customTransformerRegistry.findApplicable(e);return r.serialize(e)},function(e,t,r){var n=r.customTransformerRegistry.findByName(t[1]);if(!n)throw new Error("Trying to deserialize unknown custom value");return n.deserialize(e)}),lZ=[EL,AL,OL,zL],E8=function(e,t){var r=z8(lZ,function(s){return s.isApplicable(e,t)});if(r)return{value:r.transform(e,t),type:r.annotation(e,t)};var n=z8(TL,function(s){return s.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation}},ML={};TL.forEach(function(e){ML[e.annotation]=e});var cZ=function(e,t,r){if(Mo(t))switch(t[0]){case"symbol":return AL.untransform(e,t,r);case"class":return EL.untransform(e,t,r);case"custom":return OL.untransform(e,t,r);case"typed-array":return zL.untransform(e,t,r);default:throw new Error("Unknown transformation: "+t)}else{var n=ML[t];if(!n)throw new Error("Unknown transformation: "+t);return n.untransform(e,r)}},Rd=function(e,t){for(var r=e.keys();t>0;)r.next(),t--;return r.next().value};function NL(e){if(Lx(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Lx(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Lx(e,"constructor"))throw new Error("constructor is not allowed as a property")}var dZ=function(e,t){NL(t);for(var r=0;r<t.length;r++){var n=t[r];
34if(Ug(e))e=Rd(e,+n);else if(qg(e)){var s=+n,i=+t[++r]==0?"key":"value",o=Rd(e,s);switch(i){case"key":e=o;break;case"value":e=e.get(o);break}}else e=e[n]}return e},bP=function(e,t,r){if(NL(t),t.length===0)return r(e);for(var n=e,s=0;s<t.length-1;s++){var i=t[s];if(Mo(n)){var o=+i;n=n[o]}else if(Hg(n))n=n[i];else if(Ug(n)){var l=+i;n=Rd(n,l)}else if(qg(n)){var d=s===t.length-2;if(d)break;var l=+i,u=+t[++s]==0?"key":"value",g=Rd(n,l);switch(u){case"key":n=g;break;case"value":n=n.get(g);break}}}var f=t[t.length-1];if(Mo(n)?n[+f]=r(n[+f]):Hg(n)&&(n[f]=r(n[f])),Ug(n)){var m=Rd(n,+f),y=r(m);m!==y&&(n.delete(m),n.add(y))}if(qg(n)){var l=+t[t.length-2],S=Rd(n,l),u=+f==0?"key":"value";switch(u){case"key":{var b=r(S);n.set(b,n.get(S)),b!==S&&n.delete(S);break}case"value":{n.set(S,r(n.get(S)));break}}}return e},ni=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),s,i=[],o;try{for(;(t===void 0||t-- >0)&&!(s=n.next()).done;)i.push(s.value)}catch(l){o={error:l}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i},yo=function(e,t){for(var r=0,n=t.length,s=e.length;r<n;r++,s++)e[s]=t[r];return e};function vP(e,t,r){if(r===void 0&&(r=[]),!!e){if(!Mo(e)){Zd(e,function(o,l){return vP(o,t,yo(yo([],ni(r)),ni(wg(l))))});return}var n=ni(e,2),s=n[0],i=n[1];i&&Zd(i,function(o,l){vP(o,t,yo(yo([],ni(r)),ni(wg(l))))}),t(s,r)}}function uZ(e,t,r){return vP(t,function(n,s){e=bP(e,s,function(i){return cZ(i,n,r)})}),e}function pZ(e,t){function r(o,l){var d=dZ(e,wg(l));o.map(wg).forEach(function(u){e=bP(e,u,function(){return d})})}if(Mo(t)){var n=ni(t,2),s=n[0],i=n[1];s.forEach(function(o){e=bP(e,wg(o),function(){return e})}),i&&Zd(i,r)}else Zd(t,r);return e}var gZ=function(e,t){return Hg(e)||Mo(e)||qg(e)||Ug(e)||CL(e,t)};function fZ(e,t,r){var n=r.get(e);n?n.push(t):r.set(e,[t])}function hZ(e,t){var r={},n=void 0;return e.forEach(function(s){if(!(s.length<=1)){t||(s=s.map(function(d){return d.map(String)}).sort(function(d,u){return d.length-u.length}));var i=ni(s),o=i[0],l=i.slice(1);o.length===0?n=l.map($2):r[$2(o)]=l.map($2)}}),n?hP(r)?[n]:[n,r]:hP(r)?void 0:r}var RL=function(e,t,r,n,s,i,o){var l;s===void 0&&(s=[]),i===void 0&&(i=[]),o===void 0&&(o=new Map);var d=rZ(e);if(!d){fZ(e,s,t);var u=o.get(e);if(u)return n?{transformedValue:null}:u}if(!gZ(e,r)){var g=E8(e,r),f=g?{transformedValue:g.value,annotations:[g.type]}:{transformedValue:e};return d||o.set(e,f),f}if(Lx(i,e))return{transformedValue:null};var m=E8(e,r),y=(l=m?.value)!==null&&l!==void 0?l:e,S=Mo(y)?[]:{},b={};Zd(y,function(j,k){var P=RL(j,t,r,n,yo(yo([],ni(s)),[k]),yo(yo([],ni(i)),[e]),o);S[k]=P.transformedValue,Mo(P.annotations)?b[k]=P.annotations:Hg(P.annotations)&&Zd(P.annotations,function(O,T){b[PL(k)+"."+T]=O})});var v=hP(b)?{transformedValue:S,annotations:m?[m.type]:void 0}:{transformedValue:S,annotations:m?[m.type,b]:b};return d||o.set(e,v),v};function DL(e){return Object.prototype.toString.call(e).slice(8,-1)}function O8(e){return DL(e)==="Array"}function mZ(e){if(DL(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function xZ(e,t,r,n,s){const i={}.propertyIsEnumerable.call(n,t)?"enumerable":"nonenumerable";i==="enumerable"&&(e[t]=r),s&&i==="nonenumerable"&&Object.defineProperty(e,t,{value:r,enumerable:!1,writable:!0,configurable:!0})}function SP(e,t={}){if(O8(e))return e.map(s=>SP(s,t));if(!mZ(e))return e;const r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols(e);return[...r,...n].reduce((s,i)=>{if(O8(t.props)&&!t.props.includes(i))return s;const o=e[i],l=SP(o,t);return xZ(s,i,l,e,t.nonenumerable),s},{})}var El=function(){return El=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},El.apply(this,arguments)},yZ=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),s,i=[],o;try{for(;(t===void 0||t-- >0)&&!(s=n.next()).done;)i.push(s.value)}catch(l){o={error:l}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i},bZ=function(e,t){for(var r=0,n=t.length,s=e.length;r<n;r++,s++)e[s]=t[r];return e},ki=(function(){function e(t){var r=t===void 0?{}:t,n=r.dedupe,s=n===void 0?!1:n;this.classRegistry=new HY,this.symbolRegistry=new jL(function(i){var o;return(o=i.description)!==null&&o!==void 0?o:""}),this.customTransformerRegistry=new VY,this.allowedErrorProps=[],this.dedupe=s}
34return e.prototype.serialize=function(t){var r=new Map,n=RL(t,r,this,this.dedupe),s={json:n.transformedValue};n.annotations&&(s.meta=El(El({},s.meta),{values:n.annotations}));var i=hZ(r,this.dedupe);return i&&(s.meta=El(El({},s.meta),{referentialEqualities:i})),s},e.prototype.deserialize=function(t){var r=t.json,n=t.meta,s=SP(r);return n?.values&&(s=uZ(s,n.values,this)),n?.referentialEqualities&&(s=pZ(s,n.referentialEqualities)),s},e.prototype.stringify=function(t){return JSON.stringify(this.serialize(t))},e.prototype.parse=function(t){return this.deserialize(JSON.parse(t))},e.prototype.registerClass=function(t,r){this.classRegistry.register(t,r)},e.prototype.registerSymbol=function(t,r){this.symbolRegistry.register(t,r)},e.prototype.registerCustom=function(t,r){this.customTransformerRegistry.register(El({name:r},t))},e.prototype.allowErrorProps=function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];(t=this.allowedErrorProps).push.apply(t,bZ([],yZ(r)))},e.defaultInstance=new e,e.serialize=e.defaultInstance.serialize.bind(e.defaultInstance),e.deserialize=e.defaultInstance.deserialize.bind(e.defaultInstance),e.stringify=e.defaultInstance.stringify.bind(e.defaultInstance),e.parse=e.defaultInstance.parse.bind(e.defaultInstance),e.registerClass=e.defaultInstance.registerClass.bind(e.defaultInstance),e.registerSymbol=e.defaultInstance.registerSymbol.bind(e.defaultInstance),e.registerCustom=e.defaultInstance.registerCustom.bind(e.defaultInstance),e.allowErrorProps=e.defaultInstance.allowErrorProps.bind(e.defaultInstance),e})();ki.serialize;ki.deserialize;ki.stringify;ki.parse;ki.registerClass;ki.registerCustom;ki.registerSymbol;ki.allowErrorProps;var vZ=(e,t,r,n,s,i,o,l)=>{let d=document.documentElement,u=["light","dark"];function g(y){(Array.isArray(e)?e:[e]).forEach(S=>{let b=S==="class",v=b&&i?s.map(j=>i[j]||j):s;b?(d.classList.remove(...v),d.classList.add(i&&i[y]?i[y]:y)):d.setAttribute(S,y)}),f(y)}function f(y){l&&u.includes(y)&&(d.style.colorScheme=y)}function m(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)g(n);else try{let y=localStorage.getItem(t)||r,S=o&&y==="system"?m():y;g(S)}catch{}},SZ=E.createContext(void 0),jZ={setTheme:e=>{},themes:[]},wZ=()=>{var e;return(e=E.useContext(SZ))!=null?e:jZ};E.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:s,defaultTheme:i,value:o,themes:l,nonce:d,scriptProps:u})=>{let g=JSON.stringify([r,t,i,e,l,o,n,s]).slice(1,-1);return E.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?d:"",dangerouslySetInnerHTML:{__html:`(${vZ.toString()})(${g})`}})});var G4=SL();const _L=jt(G4);function kZ(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}const PZ=e=>{switch(e){case"success":return zZ;case"info":return EZ;case"warning":return CZ;case"error":return OZ;default:return null}},TZ=Array(12).fill(0),AZ=({visible:e,className:t})=>G.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},G.createElement("div",{className:"sonner-spinner"},TZ.map((r,n)=>G.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),zZ=G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},G.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"})),CZ=G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},G.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"})),EZ=G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},G.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"})),OZ=G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},G.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"})),MZ=G.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"},G.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),G.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),NZ=()=>{const[e,t]=G.useState(document.hidden);return G.useEffect(()=>{const r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e};let jP=1;class RZ{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>
vendor: 3,612 bytes, line 34
34{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...s}=t,i=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:jP++,o=this.toasts.find(d=>d.id===i),l=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),o?this.toasts=this.toasts.map(d=>d.id===i?(this.publish({...d,...t,id:i,title:n}),{...d,...t,id:i,dismissible:l,title:n}):d):this.addToast({title:n,...s,dismissible:l,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const s=Promise.resolve(t instanceof Function?t():t);let i=n!==void 0,o;const l=s.then(async u=>{if(o=["resolve",u],G.isValidElement(u))i=!1,this.create({id:n,type:"default",message:u});else if(_Z(u)&&!u.ok){i=!1;const f=typeof r.error=="function"?await r.error(`HTTP error! status: ${u.status}`):r.error,m=typeof r.description=="function"?await r.description(`HTTP error! status: ${u.status}`):r.description,S=typeof f=="object"&&!G.isValidElement(f)?f:{message:f};this.create({id:n,type:"error",description:m,...S})}else if(u instanceof Error){i=!1;const f=typeof r.error=="function"?await r.error(u):r.error,m=typeof r.description=="function"?await r.description(u):r.description,S=typeof f=="object"&&!G.isValidElement(f)?f:{message:f};this.create({id:n,type:"error",description:m,...S})}else if(r.success!==void 0){i=!1;const f=typeof r.success=="function"?await r.success(u):r.success,m=typeof r.description=="function"?await r.description(u):r.description,S=typeof f=="object"&&!G.isValidElement(f)?f:{message:f};this.create({id:n,type:"success",description:m,...S})}}).catch(async u=>{if(o=["reject",u],r.error!==void 0){i=!1;const g=typeof r.error=="function"?await r.error(u):r.error,f=typeof r.description=="function"?await r.description(u):r.description,y=typeof g=="object"&&!G.isValidElement(g)?g:{message:g};this.create({id:n,type:"error",description:f,...y})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),d=()=>new Promise((u,g)=>l.then(()=>o[0]==="reject"?g(o[1]):u(o[1])).catch(g));return typeof n!="string"&&typeof n!="number"?{unwrap:d}:Object.assign(n,{unwrap:d})},this.custom=(t,r)=>{const n=r?.id||jP++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Sn=new RZ,DZ=(e,t)=>{const r=t?.id||jP++;return Sn.addToast({title:e,...t,id:r}),r},_Z=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",IZ=DZ,BZ=()=>Sn.toasts,LZ=()=>Sn.getActiveToasts(),Ee=Object.assign(IZ,{success:Sn.success,info:Sn.info,warning:Sn.warning,error:Sn.error,custom:Sn.custom,message:Sn.message,promise:Sn.promise,dismiss:Sn.dismiss,loading:Sn.loading},{getHistory:BZ,getToasts:LZ});kZ
vendor: 14,873 bytes, line 34
34("[data-sonner-toaster][dir=ltr],html[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%)}[data-sonner-toaster][dir=rtl],html[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%)}[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:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[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);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[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 rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [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)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [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;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left: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);background:var(--normal-bg);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-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[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}[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}[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,0)) translateX(var(--swipe-amount-x,0));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{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{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{from{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-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--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-sonner-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-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-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, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-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-sonner-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]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[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]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[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]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[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]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[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:first-child{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)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{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%)}");function
vendor: 2,421 bytes, line 34
34Lm(e){return e.label!==void 0}const WZ=3,$Z="24px",FZ="16px",M8=4e3,HZ=356,qZ=14,UZ=45,GZ=200;function ns(...e){return e.filter(Boolean).join(" ")}function VZ(e){const[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}const XZ=e=>{var t,r,n,s,i,o,l,d,u;const{invert:g,toast:f,unstyled:m,interacting:y,setHeights:S,visibleToasts:b,heights:v,index:j,toasts:k,expanded:P,removeToast:O,defaultRichColors:T,closeButton:C,style:A,cancelButtonStyle:N,actionButtonStyle:M,className:B="",descriptionClassName:R="",duration:_,position:W,gap:V,expandByDefault:F,classNames:I,icons:U,closeButtonAriaLabel:q="Close toast"}=e,[Z,le]=G.useState(null),[H,K]=G.useState(null),[Q,re]=G.useState(!1),[ue,xe]=G.useState(!1),[Se,ze]=G.useState(!1),[fe,Oe]=G.useState(!1),[Ne,ge]=G.useState(!1),[it,He]=G.useState(0),[zt,Tt]=G.useState(0),Wt=G.useRef(f.duration||_||M8),cn=G.useRef(null),tr=G.useRef(null),Ka=j===0,zn=j+1<=b,_t=f.type,Vn=f.dismissible!==!1,vr=f.className||"",Cc=f.descriptionClassName||"",Ko=G.useMemo(()=>v.findIndex(Fe=>Fe.toastId===f.id)||0,[v,f.id]),vh=G.useMemo(()=>{var Fe;return(Fe=f.closeButton)!=null?Fe:C},[f.closeButton,C]),Qo=G.useMemo(()=>f.duration||_||M8,[f.duration,_]),Zu=G.useRef(0),Cs=G.useRef(0),Sh=G.useRef(0),Ei=G.useRef(null),[Yo,Zr]=W.split("-"),Aa=G.useMemo(()=>v.reduce((Fe,Nt,Sr)=>Sr>=Ko?Fe:Fe+Nt.height,0),[v,Ko]),$r=NZ(),vb=f.invert||g,Ju=_t==="loading";Cs.current=G.useMemo(()=>Ko*V+Aa,[Ko,Aa]),G.useEffect(()=>{Wt.current=Qo},[Qo]),G.useEffect(()=>{re(!0)},[]),G.useEffect(()=>{const Fe=tr.current;if(Fe){const Nt=Fe.getBoundingClientRect().height;return Tt(Nt),S(Sr=>[{toastId:f.id,height:Nt,position:f.position},...Sr]),()=>S(Sr=>Sr.filter(Fr=>Fr.toastId!==f.id))}},[S,f.id]),G.useLayoutEffect(()=>{if(!Q)return;const Fe=tr.current,Nt=Fe.style.height;Fe.style.height="auto";const Sr=Fe.getBoundingClientRect().height;Fe.style.height=Nt,Tt(Sr),S(Fr=>Fr.find(It=>It.toastId===f.id)?Fr.map(It=>It.toastId===f.id?{...It,height:Sr}:It):[{toastId:f.id,height:Sr,position:f.position},...Fr])},[Q,f.title,f.description,S,f.id,f.jsx,f.action,f.cancel]);const Qa=G.useCallback(()=>{xe(!0),He(Cs.current),S(Fe=>Fe.filter(Nt=>Nt.toastId!==f.id)),setTimeout(()=>{O(f)},GZ)},[f,O,S,Cs]);G.useEffect(()=>{if(f.promise&&_t==="loading"||f.duration===1/0||f.type==="loading")return;let Fe;return P||y||$r?(()=>{if(Sh.current<Zu.current){const Fr=new Date().getTime()-Zu.current;Wt.current=Wt.current-Fr}
vendor: 20,200 bytes, line 34
34Sh.current=new Date().getTime()})():(()=>{Wt.current!==1/0&&(Zu.current=new Date().getTime(),Fe=setTimeout(()=>{f.onAutoClose==null||f.onAutoClose.call(f,f),Qa()},Wt.current))})(),()=>clearTimeout(Fe)},[P,y,f,_t,$r,Qa]),G.useEffect(()=>{f.delete&&(Qa(),f.onDismiss==null||f.onDismiss.call(f,f))},[Qa,f.delete]);function Ec(){var Fe;if(U?.loading){var Nt;return G.createElement("div",{className:ns(I?.loader,f==null||(Nt=f.classNames)==null?void 0:Nt.loader,"sonner-loader"),"data-visible":_t==="loading"},U.loading)}return G.createElement(AZ,{className:ns(I?.loader,f==null||(Fe=f.classNames)==null?void 0:Fe.loader),visible:_t==="loading"})}const Oc=f.icon||U?.[_t]||PZ(_t);var Zo,Ya;return G.createElement("li",{tabIndex:0,ref:tr,className:ns(B,vr,I?.toast,f==null||(t=f.classNames)==null?void 0:t.toast,I?.default,I?.[_t],f==null||(r=f.classNames)==null?void 0:r[_t]),"data-sonner-toast":"","data-rich-colors":(Zo=f.richColors)!=null?Zo:T,"data-styled":!(f.jsx||f.unstyled||m),"data-mounted":Q,"data-promise":!!f.promise,"data-swiped":Ne,"data-removed":ue,"data-visible":zn,"data-y-position":Yo,"data-x-position":Zr,"data-index":j,"data-front":Ka,"data-swiping":Se,"data-dismissible":Vn,"data-type":_t,"data-invert":vb,"data-swipe-out":fe,"data-swipe-direction":H,"data-expanded":!!(P||F&&Q),"data-testid":f.testId,style:{"--index":j,"--toasts-before":j,"--z-index":k.length-j,"--offset":`${ue?it:Cs.current}px`,"--initial-height":F?"auto":`${zt}px`,...A,...f.style},onDragEnd:()=>{ze(!1),le(null),Ei.current=null},onPointerDown:Fe=>{Fe.button!==2&&(Ju||!Vn||(cn.current=new Date,He(Cs.current),Fe.target.setPointerCapture(Fe.pointerId),Fe.target.tagName!=="BUTTON"&&(ze(!0),Ei.current={x:Fe.clientX,y:Fe.clientY})))},onPointerUp:()=>{var Fe,Nt,Sr;if(fe||!Vn)return;Ei.current=null;const Fr=Number(((Fe=tr.current)==null?void 0:Fe.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Oi=Number(((Nt=tr.current)==null?void 0:Nt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),It=new Date().getTime()-((Sr=cn.current)==null?void 0:Sr.getTime()),dn=Z==="x"?Fr:Oi,Jo=Math.abs(dn)/It;if(Math.abs(dn)>=UZ||Jo>.11){He(Cs.current),f.onDismiss==null||f.onDismiss.call(f,f),K(Z==="x"?Fr>0?"right":"left":Oi>0?"down":"up"),Qa(),Oe(!0);return}else{var un,pn;(un=tr.current)==null||un.style.setProperty("--swipe-amount-x","0px"),(pn=tr.current)==null||pn.style.setProperty("--swipe-amount-y","0px")}ge(!1),ze(!1),le(null)},onPointerMove:Fe=>{var Nt,Sr,Fr;if(!Ei.current||!Vn||((Nt=window.getSelection())==null?void 0:Nt.toString().length)>0)return;const It=Fe.clientY-Ei.current.y,dn=Fe.clientX-Ei.current.x;var Jo;const un=(Jo=e.swipeDirections)!=null?Jo:VZ(W);!Z&&(Math.abs(dn)>1||Math.abs(It)>1)&&le(Math.abs(dn)>Math.abs(It)?"x":"y");let pn={x:0,y:0};const Mc=za=>1/(1.5+Math.abs(za)/20);if(Z==="y"){if(un.includes("top")||un.includes("bottom"))if(un.includes("top")&&It<0||un.includes("bottom")&&It>0)pn.y=It;else{const za=It*Mc(It);pn.y=Math.abs(za)<Math.abs(It)?za:It}}else if(Z==="x"&&(un.includes("left")||un.includes("right")))if(un.includes("left")&&dn<0||un.includes("right")&&dn>0)pn.x=dn;else{const za=dn*Mc(dn);pn.x=Math.abs(za)<Math.abs(dn)?za:dn}(Math.abs(pn.x)>0||Math.abs(pn.y)>0)&&ge(!0),(Sr=tr.current)==null||Sr.style.setProperty("--swipe-amount-x",`${pn.x}px`),(Fr=tr.current)==null||Fr.style.setProperty("--swipe-amount-y",`${pn.y}px`)}},vh&&!f.jsx&&_t!=="loading"?G.createElement("button",{"aria-label":q,"data-disabled":Ju,"data-close-button":!0,onClick:Ju||!Vn?()=>{}:()=>{Qa(),f.onDismiss==null||f.onDismiss.call(f,f)},className:ns(I?.closeButton,f==null||(n=f.classNames)==null?void 0:n.closeButton)},(Ya=U?.close)!=null?Ya:MZ):null,(_t||f.icon||f.promise)&&f.icon!==null&&(U?.[_t]!==null||f.icon)?G.createElement("div",{"data-icon":"",className:ns(I?.icon,f==null||(s=f.classNames)==null?void 0:s.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Ec():null,f.type!=="loading"?Oc:null):null,G.createElement("div",{"data-content":"",className:ns(I?.content,f==null||(i=f.classNames)==null?void 0:i.content)},G.createElement("div",{"data-title":"",className:ns(I?.title,f==null||(o=f.classNames)==null?void 0:o.title)},f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title),f.description?G.createElement("div",{"data-description":"",className:ns(R,Cc,I?.description,f==null||(l=f.classNames)==null?void 0:l.description)},typeof f.description=="function"?f.description():f.description):null),G.isValidElement(f.cancel)?f.cancel:f.cancel&&Lm(f.cancel)?G.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||N,onClick:Fe=>{Lm(f.cancel)&&Vn&&(f.cancel.onClick==null||f.cancel.onClick.call(f.cancel,Fe),Qa())},className:ns(I?.cancelButton,f==null||(d=f.classNames)==null?void 0:d.cancelButton)},f.cancel.label):null,G.isValidElement(f.action)?f.action:f.action&&Lm(f.action)?G.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||M,onClick:Fe=>{Lm(f.action)&&(f.action.onClick==null||f.action.onClick.call(f.action,Fe),!Fe.defaultPrevented&&Qa())},className:ns(I?.actionButton,f==null||(u=f.classNames)==null?void 0:u.actionButton)},f.action.label):null)};function N8(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function KZ(e,t){const r={};return[e,t].forEach((n,s)=>{const i=s===1,o=i?"--mobile-offset":"--offset",l=i?FZ:$Z;function d(u){["top","right","bottom","left"].forEach(g=>{r[`${o}-${g}`]=typeof u=="number"?`${u}px`:u})}typeof n=="number"||typeof n=="string"?d(n):typeof n=="object"?["top","right","bottom","left"].forEach(u=>{n[u]===void 0?r[`${o}-${u}`]=l:r[`${o}-${u}`]=typeof n[u]=="number"?`${n[u]}px`:n[u]}):d(l)}),r}const QZ=G.forwardRef(function(t,r){const{id:n,invert:s,position:i="bottom-right",hotkey:o=["altKey","KeyT"],expand:l,closeButton:d,className:u,offset:g,mobileOffset:f,theme:m="light",richColors:y,duration:S,style:b,visibleToasts:v=WZ,toastOptions:j,dir:k=N8(),gap:P=qZ,icons:O,containerAriaLabel:T="Notifications"}=t,[C,A]=G.useState([]),N=G.useMemo(()=>n?C.filter(Q=>Q.toasterId===n):C.filter(Q=>!Q.toasterId),[C,n]),M=G.useMemo(()=>Array.from(new Set([i].concat(N.filter(Q=>Q.position).map(Q=>Q.position)))),[N,i]),[B,R]=G.useState([]),[_,W]=G.useState(!1),[V,F]=G.useState(!1),[I,U]=G.useState(m!=="system"?m:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),q=G.useRef(null),Z=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),le=G.useRef(null),H=G.useRef(!1),K=G.useCallback(Q=>{A(re=>{var ue;return(ue=re.find(xe=>xe.id===Q.id))!=null&&ue.delete||Sn.dismiss(Q.id),re.filter(({id:xe})=>xe!==Q.id)})},[]);return G.useEffect(()=>Sn.subscribe(Q=>{if(Q.dismiss){requestAnimationFrame(()=>{A(re=>re.map(ue=>ue.id===Q.id?{...ue,delete:!0}:ue))});return}setTimeout(()=>{_L.flushSync(()=>{A(re=>{const ue=re.findIndex(xe=>xe.id===Q.id);return ue!==-1?[...re.slice(0,ue),{...re[ue],...Q},...re.slice(ue+1)]:[Q,...re]})})})}),[C]),G.useEffect(()=>{if(m!=="system"){U(m);return}if(m==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?U("dark"):U("light")),typeof window>"u")return;const Q=window.matchMedia("(prefers-color-scheme: dark)");try{Q.addEventListener("change",({matches:re})=>{U(re?"dark":"light")})}catch{Q.addListener(({matches:ue})=>{try{U(ue?"dark":"light")}catch(xe){console.error(xe)}})}},[m]),G.useEffect(()=>{C.length<=1&&W(!1)},[C]),G.useEffect(()=>{const Q=re=>{var ue;if(o.every(ze=>re[ze]||re.code===ze)){var Se;W(!0),(Se=q.current)==null||Se.focus()}re.code==="Escape"&&(document.activeElement===q.current||(ue=q.current)!=null&&ue.contains(document.activeElement))&&W(!1)};return document.addEventListener("keydown",Q),()=>document.removeEventListener("keydown",Q)},[o]),G.useEffect(()=>{if(q.current)return()=>{le.current&&(le.current.focus({preventScroll:!0}),le.current=null,H.current=!1)}},[q.current]),G.createElement("section",{ref:r,"aria-label":`${T} ${Z}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},M.map((Q,re)=>{var ue;const[xe,Se]=Q.split("-");return N.length?G.createElement("ol",{key:Q,dir:k==="auto"?N8():k,tabIndex:-1,ref:q,className:u,"data-sonner-toaster":!0,"data-sonner-theme":I,"data-y-position":xe,"data-x-position":Se,style:{"--front-toast-height":`${((ue=B[0])==null?void 0:ue.height)||0}px`,"--width":`${HZ}px`,"--gap":`${P}px`,...b,...KZ(g,f)},onBlur:ze=>{H.current&&!ze.currentTarget.contains(ze.relatedTarget)&&(H.current=!1,le.current&&(le.current.focus({preventScroll:!0}),le.current=null))},onFocus:ze=>{ze.target instanceof HTMLElement&&ze.target.dataset.dismissible==="false"||H.current||(H.current=!0,le.current=ze.relatedTarget)},onMouseEnter:()=>W(!0),onMouseMove:()=>W(!0),onMouseLeave:()=>{V||W(!1)},onDragEnd:()=>W(!1),onPointerDown:ze=>{ze.target instanceof HTMLElement&&ze.target.dataset.dismissible==="false"||F(!0)},onPointerUp:()=>F(!1)},N.filter(ze=>!ze.position&&re===0||ze.position===Q).map((ze,fe)=>{var Oe,Ne;return G.createElement(XZ,{key:ze.id,icons:O,index:fe,toast:ze,defaultRichColors:y,duration:(Oe=j?.duration)!=null?Oe:S,className:j?.className,descriptionClassName:j?.descriptionClassName,invert:s,visibleToasts:v,closeButton:(Ne=j?.closeButton)!=null?Ne:d,interacting:V,position:Q,style:j?.style,unstyled:j?.unstyled,classNames:j?.classNames,cancelButtonStyle:j?.cancelButtonStyle,actionButtonStyle:j?.actionButtonStyle,closeButtonAriaLabel:j?.closeButtonAriaLabel,removeToast:K,toasts:N.filter(ge=>ge.position==ze.position),heights:B.filter(ge=>ge.position==ze.position),setHeights:R,expandByDefault:l,gap:P,expanded:_,swipeDirections:t.swipeDirections})})):null}))}),YZ=({...e})=>{const{theme:t="system"}=wZ();return a.jsx(QZ,{"data-loc":"client/src/components/ui/sonner.tsx:8",theme:t,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...e})};function ri(e,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e?.(s),r===!1||!s.defaultPrevented)return t?.(s)}}function R8(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function IL(...e){return t=>{let r=!1;const n=e.map(s=>{const i=R8(s,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():R8(e[s],null)}}}}function mc(...e){return E.useCallback(IL(...e),e)}function BL(e,t=[]){let r=[];function n(i,o){const l=E.createContext(o),d=r.length;r=[...r,o];const u=f=>{const{scope:m,children:y,...S}=f,b=m?.[e]?.[d]||l,v=E.useMemo(()=>S,Object.values(S));return a.jsx(b.Provider,{value:v,children:y})};u.displayName=i+"Provider";function g(f,m){const y=m?.[e]?.[d]||l,S=E.useContext(y);if(S)return S;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,g]}const s=()=>{const i=r.map(o=>E.createContext(o));return function(l){const d=l?.[e]||i;return E.useMemo(()=>({[`__scope${e}`]:{...l,[e]:d}}),[l,d])}};return s.scopeName=e,[n,ZZ(s,...t)]}function ZZ(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=n.reduce((l,{useScope:d,scopeName:u})=>{const f=d(i)[`__scope${u}`];return{...l,...f}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}function JZ(e){const t=eJ(e),r=E.forwardRef((n,s)=>{const{children:i,...o}=n,l=E.Children.toArray(i),d=l.find(rJ);if(d){const u=d.props.children,g=l.map(f=>f===d?E.Children.count(u)>1?E.Children.only(null):E.isValidElement(u)?u.props.children:null:f);return a.jsx(t,{...o,ref:s,children:E.isValidElement(u)?E.cloneElement(u,void 0,g):null})}return a.jsx(t,{...o,ref:s,children:i})});return r.displayName=`${e}.Slot`,r}function eJ(e){const t=E.forwardRef((r,n)=>{const{children:s,...i}=r;if(E.isValidElement(s)){const o=aJ(s),l=nJ(i,s.props);return s.type!==E.Fragment&&(l.ref=n?IL(n,o):o),E.cloneElement(s,l)}return E.Children.count(s)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var LL=Symbol("radix.slottable");function tJ(e){const t=({children:r})=>a.jsx(a.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=LL,t}function rJ(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===LL}function nJ(e,t){const r={...t};for(const n in t){const s=e[n],i=t[n];/^on[A-Z]/.test(n)?s&&i?r[n]=(...l)=>{const d=i(...l);return s(...l),d}:s&&(r[n]=s):n==="style"?r[n]={...s,...i}:n==="className"&&(r[n]=[s,i].filter(Boolean).join(" "))}return{...e,...r}}function aJ(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var sJ=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],xc=sJ.reduce((e,t)=>{const r=JZ(`Primitive.${t}`),n=E.forwardRef((s,i)=>{const{asChild:o,...l}=s,d=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function iJ(e,t){e&&G4.flushSync(()=>e.dispatchEvent(t))}function iy(e){const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),E.useMemo(()=>(...r)=>t.current?.(...r),[])}function oJ(e,t=globalThis?.document){const r=iy(e);E.useEffect(()=>{const n=s=>{s.key==="Escape"&&r(s)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var lJ="DismissableLayer",wP="dismissableLayer.update",cJ="dismissableLayer.pointerDownOutside",dJ="dismissableLayer.focusOutside",D8,WL=E.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$L=E.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:l,...d}=e,u=E.useContext(WL),[g,f]=E.useState(null),m=g?.ownerDocument??globalThis?.document,[,y]=E.useState({}),S=mc(t,A=>f(A)),b=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),j=b.indexOf(v),k=g?b.indexOf(g):-1,P=u.layersWithOutsidePointerEventsDisabled.size>0,O=k>=j,T=gJ(A=>{const N=A.target,M=[...u.branches].some(B=>B.contains(N));!O||M||(s?.(A),o?.(A),A.defaultPrevented||l?.())},m),C=fJ(A=>{const N=A.target;[...u.branches].some(B=>B.contains(N))||(i?.(A),o?.(A),A.defaultPrevented||l?.())},m);return oJ(A=>{k===u.layers.size-1&&(n?.(A),!A.defaultPrevented&&l&&(A.preventDefault(),l()))},m),E.useEffect(()=>{if(g)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(D8=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(g)),u.layers.add(g),_8(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=D8)}},[g,m,r,u]),E.useEffect(()=>()=>{g&&(u.layers.delete(g),u.layersWithOutsidePointerEventsDisabled.delete(g),_8())},[g,u]),E.useEffect(()=>{const A=()=>y({});return document.addEventListener(wP,A),()=>document.removeEventListener(wP,A)},[]),a.jsx(xc.div,{...d,ref:S,style:{pointerEvents:P?O?"auto":"none":void 0,...e.style},onFocusCapture:ri(e.onFocusCapture,C.onFocusCapture),onBlurCapture:ri(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:ri(e.onPointerDownCapture,T.onPointerDownCapture)})});$L.displayName=lJ;var uJ="DismissableLayerBranch",pJ=E.forwardRef((e,t)=>{const r=E.useContext(WL),n=E.useRef(null),s=mc(t,n);return E.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),a.jsx(xc.div,{...e,ref:s})});pJ.displayName=uJ;function gJ(e,t=globalThis?.document){const r=iy(e),n=E.useRef(!1),s=E.useRef(()=>{});return E.useEffect(()=>{const i=l=>{if(l.target&&!n.current){let d=function(){FL(cJ,r,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=d,t.addEventListener("click",s.current,{once:!0})):d()}else t.removeEventListener("click",s.current);n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function fJ(e,t=globalThis?.document){const r=iy(e),n=E.useRef(!1);return E.useEffect(()=>{const s=i=>{i.target&&!n.current&&FL(dJ,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function _8(){const e=new CustomEvent(wP);document.dispatchEvent(e)}function FL(e,t,r,{discrete:n}){const s=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),n?iJ(s,i):s.dispatchEvent(i)}var Gg=globalThis?.document?E.useLayoutEffect:()=>{};const hJ=["top","right","bottom","left"],No=Math.min,Ln=Math.max,e0=Math.round,Wm=Math.floor,ys=e=>({x:e,y:e}),mJ={left:"right",right:"left",bottom:"top",top:"bottom"},xJ={start:"end",end:"start"};function kP(e,t,r){return Ln(e,No(t,r))}function mi(e,t){return typeof e=="function"?e(t):e}function xi(e){return e.split("-")[0]}function _u(e){return e.split("-")[1]}function V4(e){return e==="x"?"y":"x"}function X4(e){return e==="y"?"height":"width"}const yJ=new Set(["top","bottom"]);function fs(e){return yJ.has(xi(e))?"y":"x"}function K4(e){return V4(fs(e))}function bJ(e,t,r){r===void 0&&(r=!1);const n=_u(e),s=K4(e),i=X4(s);let o=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=t0(o)),[o,t0(o)]}function vJ(e){const t=t0(e);return[PP(e),t,PP(t)]}function PP(e){return e.replace(/start|end/g,t=>xJ[t])}const I8=["left","right"],B8=["right","left"],SJ=["top","bottom"],jJ=["bottom","top"];function wJ(e,t,r){switch(e){case"top":case"bottom":return r?t?B8:I8:t?I8:B8;case"left":case"right":return t?SJ:jJ;default:return[]}}function kJ(e,t,r,n){const s=_u(e);let i=wJ(xi(e),r==="start",n);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(PP)))),i}function t0(e){return e.replace(/left|right|bottom|top/g,t=>mJ[t])}function PJ(e){return{top:0,right:0,bottom:0,left:0,...e}}function HL(e){return typeof e!="number"?PJ(e):{top:e,right:e,bottom:e,left:e}}function r0(e){const{x:t,y:r,width:n,height:s}=e;return{width:n,height:s,top:r,left:t,right:t+n,bottom:r+s,x:t,y:r}}function L8(e,t,r){let{reference:n,floating:s}=e;const i=fs(t),o=K4(t),l=X4(o),d=xi(t),u=i==="y",g=n.x+n.width/2-s.width/2,f=n.y+n.height/2-s.height/2,m=n[l]/2-s[l]/2;let y;switch(d){case"top":y={x:g,y:n.y-s.height};break;case"bottom":y={x:g,y:n.y+n.height};break;case"right":y={x:n.x+n.width,y:f};break;case"left":y={x:n.x-s.width,y:f};break;default:y={x:n.x,y:n.y}}switch(_u(t)){case"start":y[o]-=m*(r&&u?-1:1);break;case"end":y[o]+=m*(r&&u?-1:1);break}return y}const TJ=async(e,t,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:i=[],platform:o}=r,l=i.filter(Boolean),d=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:g,y:f}=L8(u,n,d),m=n,y={},S=0;for(let b=0;b<l.length;b++){const{name:v,fn:j}=l[b],{x:k,y:P,data:O,reset:T}=await j({x:g,y:f,initialPlacement:n,placement:m,strategy:s,middlewareData:y,rects:u,platform:o,elements:{reference:e,floating:t}});g=k??g,f=P??f,y={...y,[v]:{...y[v],...O}},T&&S<=50&&(S++,typeof T=="object"&&(T.placement&&(m=T.placement),T.rects&&(u=T.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):T.rects),{x:g,y:f}=L8(u,m,d)),b=-1)}return{x:g,y:f,placement:m,strategy:s,middlewareData:y}};async function Vg(e,t){var r;t===void 0&&(t={});const{x:n,y:s,platform:i,rects:o,elements:l,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:g="viewport",elementContext:f="floating",altBoundary:m=!1,padding:y=0}=mi(t,e),S=HL(y),v=l[m?f==="floating"?"reference":"floating":f],j=r0(await i.getClippingRect
vendor: 16,069 bytes, line 34
34({element:(r=await(i.isElement==null?void 0:i.isElement(v)))==null||r?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:g,strategy:d})),k=f==="floating"?{x:n,y:s,width:o.floating.width,height:o.floating.height}:o.reference,P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),O=await(i.isElement==null?void 0:i.isElement(P))?await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1}:{x:1,y:1},T=r0(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:k,offsetParent:P,strategy:d}):k);return{top:(j.top-T.top+S.top)/O.y,bottom:(T.bottom-j.bottom+S.bottom)/O.y,left:(j.left-T.left+S.left)/O.x,right:(T.right-j.right+S.right)/O.x}}const AJ=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:s,rects:i,platform:o,elements:l,middlewareData:d}=t,{element:u,padding:g=0}=mi(e,t)||{};if(u==null)return{};const f=HL(g),m={x:r,y:n},y=K4(s),S=X4(y),b=await o.getDimensions(u),v=y==="y",j=v?"top":"left",k=v?"bottom":"right",P=v?"clientHeight":"clientWidth",O=i.reference[S]+i.reference[y]-m[y]-i.floating[S],T=m[y]-i.reference[y],C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let A=C?C[P]:0;(!A||!await(o.isElement==null?void 0:o.isElement(C)))&&(A=l.floating[P]||i.floating[S]);const N=O/2-T/2,M=A/2-b[S]/2-1,B=No(f[j],M),R=No(f[k],M),_=B,W=A-b[S]-R,V=A/2-b[S]/2+N,F=kP(_,V,W),I=!d.arrow&&_u(s)!=null&&V!==F&&i.reference[S]/2-(V<_?B:R)-b[S]/2<0,U=I?V<_?V-_:V-W:0;return{[y]:m[y]+U,data:{[y]:F,centerOffset:V-F-U,...I&&{alignmentOffset:U}},reset:I}}}),zJ=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:s,middlewareData:i,rects:o,initialPlacement:l,platform:d,elements:u}=t,{mainAxis:g=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:b=!0,...v}=mi(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const j=xi(s),k=fs(l),P=xi(l)===l,O=await(d.isRTL==null?void 0:d.isRTL(u.floating)),T=m||(P||!b?[t0(l)]:vJ(l)),C=S!=="none";!m&&C&&T.push(...kJ(l,b,S,O));const A=[l,...T],N=await Vg(t,v),M=[];let B=((n=i.flip)==null?void 0:n.overflows)||[];if(g&&M.push(N[j]),f){const V=bJ(s,o,O);M.push(N[V[0]],N[V[1]])}if(B=[...B,{placement:s,overflows:M}],!M.every(V=>V<=0)){var R,_;const V=(((R=i.flip)==null?void 0:R.index)||0)+1,F=A[V];if(F&&(!(f==="alignment"?k!==fs(F):!1)||B.every(q=>fs(q.placement)===k?q.overflows[0]>0:!0)))return{data:{index:V,overflows:B},reset:{placement:F}};let I=(_=B.filter(U=>U.overflows[0]<=0).sort((U,q)=>U.overflows[1]-q.overflows[1])[0])==null?void 0:_.placement;if(!I)switch(y){case"bestFit":{var W;const U=(W=B.filter(q=>{if(C){const Z=fs(q.placement);return Z===k||Z==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(Z=>Z>0).reduce((Z,le)=>Z+le,0)]).sort((q,Z)=>q[1]-Z[1])[0])==null?void 0:W[0];U&&(I=U);break}case"initialPlacement":I=l;break}if(s!==I)return{reset:{placement:I}}}return{}}}};function W8(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $8(e){return hJ.some(t=>e[t]>=0)}const CJ=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...s}=mi(e,t);switch(n){case"referenceHidden":{const i=await Vg(t,{...s,elementContext:"reference"}),o=W8(i,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:$8(o)}}}case"escaped":{const i=await Vg(t,{...s,altBoundary:!0}),o=W8(i,r.floating);return{data:{escapedOffsets:o,escaped:$8(o)}}}default:return{}}}}},qL=new Set(["left","top"]);async function EJ(e,t){const{placement:r,platform:n,elements:s}=e,i=await(n.isRTL==null?void 0:n.isRTL(s.floating)),o=xi(r),l=_u(r),d=fs(r)==="y",u=qL.has(o)?-1:1,g=i&&d?-1:1,f=mi(t,e);let{mainAxis:m,crossAxis:y,alignmentAxis:S}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof S=="number"&&(y=l==="end"?S*-1:S),d?{x:y*g,y:m*u}:{x:m*u,y:y*g}}const OJ=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:s,y:i,placement:o,middlewareData:l}=t,d=await EJ(t,e);return o===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:s+d.x,y:i+d.y,data:{...d,placement:o}}}}},MJ=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:s}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:l={fn:v=>{let{x:j,y:k}=v;return{x:j,y:k}}},...d}=mi(e,t),u={x:r,y:n},g=await Vg(t,d),f=fs(xi(s)),m=V4(f);let y=u[m],S=u[f];if(i){const v=m==="y"?"top":"left",j=m==="y"?"bottom":"right",k=y+g[v],P=y-g[j];y=kP(k,y,P)}if(o){const v=f==="y"?"top":"left",j=f==="y"?"bottom":"right",k=S+g[v],P=S-g[j];S=kP(k,S,P)}const b=l.fn({...t,[m]:y,[f]:S});return{...b,data:{x:b.x-r,y:b.y-n,enabled:{[m]:i,[f]:o}}}}}},NJ=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:s,rects:i,middlewareData:o}=t,{offset:l=0,mainAxis:d=!0,crossAxis:u=!0}=mi(e,t),g={x:r,y:n},f=fs(s),m=V4(f);let y=g[m],S=g[f];const b=mi(l,t),v=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(d){const P=m==="y"?"height":"width",O=i.reference[m]-i.floating[P]+v.mainAxis,T=i.reference[m]+i.reference[P]-v.mainAxis;y<O?y=O:y>T&&(y=T)}if(u){var j,k;const P=m==="y"?"width":"height",O=qL.has(xi(s)),T=i.reference[f]-i.floating[P]+(O&&((j=o.offset)==null?void 0:j[f])||0)+(O?0:v.crossAxis),C=i.reference[f]+i.reference[P]+(O?0:((k=o.offset)==null?void 0:k[f])||0)-(O?v.crossAxis:0);S<T?S=T:S>C&&(S=C)}return{[m]:y,[f]:S}}}},RJ=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:s,rects:i,platform:o,elements:l}=t,{apply:d=()=>{},...u}=mi(e,t),g=await Vg(t,u),f=xi(s),m=_u(s),y=fs(s)==="y",{width:S,height:b}=i.floating;let v,j;f==="top"||f==="bottom"?(v=f,j=m===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(j=f,v=m==="end"?"top":"bottom");const k=b-g.top-g.bottom,P=S-g.left-g.right,O=No(b-g[v],k),T=No(S-g[j],P),C=!t.middlewareData.shift;let A=O,N=T;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(N=P),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(A=k),C&&!m){const B=Ln(g.left,0),R=Ln(g.right,0),_=Ln(g.top,0),W=Ln(g.bottom,0);y?N=S-2*(B!==0||R!==0?B+R:Ln(g.left,g.right)):A=b-2*(_!==0||W!==0?_+W:Ln(g.top,g.bottom))}await d({...t,availableWidth:N,availableHeight:A});const M=await o.getDimensions(l.floating);return S!==M.width||b!==M.height?{reset:{rects:!0}}:{}}}};function oy(){return typeof window<"u"}function Iu(e){return UL(e)?(e.nodeName||"").toLowerCase():"#document"}function Hn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ts(e){var t;return(t=(UL(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function UL(e){return oy()?e instanceof Node||e instanceof Hn(e).Node:!1}function Wa(e){return oy()?e instanceof Element||e instanceof Hn(e).Element:!1}function Ss(e){return oy()?e instanceof HTMLElement||e instanceof Hn(e).HTMLElement:!1}function F8(e){return!oy()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Hn(e).ShadowRoot}const DJ=new Set(["inline","contents"]);function Zf(e){const{overflow:t,overflowX:r,overflowY:n,display:s}=$a(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!DJ.has(s)}const _J=new Set(["table","td","th"]);function IJ(e){return _J.has(Iu(e))}const BJ=[":popover-open",":modal"];function ly(e){return BJ.some(t=>{try{return e.matches(t)}catch{return!1}})}const LJ=["transform","translate","scale","rotate","perspective"],WJ=["transform","translate","scale","rotate","perspective","filter"],$J=["paint","layout","strict","content"];function Q4(e){const t=Y4(),r=Wa(e)?$a(e):e;return LJ.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||WJ.some(n=>(r.willChange||"").includes(n))||$J.some(n=>(r.contain||"").includes(n))}function FJ(e){let t=Ro(e);for(;Ss(t)&&!Jd(t);){if(Q4(t))return t;if(ly(t))return null;t=Ro(t)}return null}function Y4(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const HJ=new Set(["html","body","#document"]);function Jd(e){return HJ.has(Iu(e))}function $a(e){return Hn(e).getComputedStyle(e)}function cy(e){return Wa(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ro(e){if(Iu(e)==="html")return e;const t=e.assignedSlot||e.parentNode||F8(e)&&e.host||Ts(e);return F8(t)?t.host:t}function GL(e){const t=Ro(e);return Jd(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ss(t)&&Zf(t)?t:GL(t)}function Xg(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const s=GL(e),i=s===((n=e.ownerDocument)==null?void 0:n.body),o=Hn(s);if(i){const l=TP(o);return t.concat(o,o.visualViewport||[],Zf(s)?s:[],l&&r?Xg(l):[])}return t.concat(s,Xg(s,[],r))}function TP(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function VL(e){const t=$a(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const s=Ss(e),i=s?e.offsetWidth:r,o=s?e.offsetHeight:n,l=e0(r)!==i||e0(n)!==o;return l&&(r=i,n=o),{width:r,height:n,$:l}}function Z4(e){return Wa(e)?e:e.contextElement}function $d(e){const t=Z4(e);if(!Ss(t))return ys(1);const r=t.getBoundingClientRect(),{width:n,height:s,$:i}=VL(t);let o=(i?e0(r.width):r.width)/n,l=(i?e0(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const qJ=ys(0);function XL(e){const t=Hn(e);return!Y4()||!t.visualViewport?qJ:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function UJ(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Hn(e)?!1:t}function Jl(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect(),i=Z4(e);let o=ys(1);t&&(n?Wa(n)&&(o=$d(n)):o=$d(e));const l=UJ(i,r,n)?XL(i):ys(0);let d=(s.left+l.x)/o.x,u=(s.top+l.y)/o.y,g=s.width/o.x,f=s.height/o.y;if(i){const m=Hn(i),y=n&&Wa(n)?Hn(n):n;let S=m,b=TP(S);for(;b&&n&&y!==S;){const v=$d(b),j=b.getBoundingClientRect(),k=$a(b),P=j.left+(b.clientLeft+parseFloat(k.paddingLeft))*v.x,O=j.top+(b.clientTop+parseFloat(k.paddingTop))*v.y;d*=v.x,u*=v.y,g*=v.x,f*=v.y,d+=P,u+=O,S=Hn(b),b=TP(S)}}return r0({width:g,height:f,x:d,y:u})}function dy(e,t){const r=cy(e).scrollLeft;return t?t.left+r:Jl(Ts(e)).left+r}function KL(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-dy(e,r),s=r.top+t.scrollTop;return{x:n,y:s}}function GJ(e){let{elements:t,rect:r,offsetParent:n,strategy:s}=e;const i=s==="fixed",o=Ts(n),l=t?ly(t.floating):!1;if(n===o||l&&i)return r;let d={scrollLeft:0,scrollTop:0},u=ys(1);const g=ys(0),f=Ss(n);if((f||!f&&!i)&&((Iu(n)!=="body"||Zf(o))&&(d=cy(n)),Ss(n))){const y=Jl(n);u=$d(n),g.x=y.x+n.clientLeft,g.y=y.y+n.clientTop}const m=o&&!f&&!i?KL(o,d):ys(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-d.scrollLeft*u.x+g.x+m.x,y:r.y*u.y-d.scrollTop*u.y+g.y+m.y}}function VJ(e){return Array.from(e.getClientRects())}function XJ(e){const t=Ts(e),r=cy(e),n=e.ownerDocument.body,s=Ln(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Ln(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+dy(e);const l=-r.scrollTop;return $a(n).direction==="rtl"&&(o+=Ln(t.clientWidth,n.clientWidth)-s),{width:s,height:i,x:o,y:l}}const H8=25;function KJ(e,t){const r=Hn(e),n=Ts(e),s=r.visualViewport;let i=n.clientWidth,o=n.clientHeight,l=0,d=0;if(s){i=s.width,o=s.height;const g=Y4();(!g||g&&t==="fixed")&&(l=s.offsetLeft,d=s.offsetTop)}const u=dy(n);if(u<=0){const g=n.ownerDocument,f=g.body,m=getComputedStyle(f),y=g.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,S=Math.abs(n.clientWidth-f.clientWidth-y);S<=H8&&(i-=S)}else u<=H8&&(i+=u);return{width:i,height:o,x:l,y:d}}const QJ=new Set(["absolute","fixed"]);function YJ(e,t){const r=Jl(e,!0,t==="fixed"),n=r.top+e.clientTop,s=r.left+e.clientLeft,i=Ss(e)?$d(e):ys(1),o=e.clientWidth*i.x,l=e.clientHeight*i.y,d=s*i.x,u=n*i.y;return{width:o,height:l,x:d,y:u}}function q8(e,t,r){let n;if(t==="viewport")n=KJ(e,r);else if(t==="document")n=XJ(Ts(e));else if(Wa(t))n=YJ(t,r);else{const s=XL(e);n={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return r0(n)}function QL(e,t){const r=Ro(e);return r===t||!Wa(r)||Jd(r)?!1:$a(r).position==="fixed"||QL(r,t)}function ZJ(e,t){const r=t.get(e);if(r)return r;let n=Xg(e,[],!1).filter(l=>Wa(l)&&Iu(l)!=="body"),s=null;const i=$a(e).position==="fixed";let o=i?Ro(e):e;for(;Wa(o)&&!Jd(o);){const l=$a(o),d=Q4(o);!d&&l.position==="fixed"&&(s=null),(i?!d&&!s:!d&&l.position==="static"&&!!s&&QJ.has(s.position)||Zf(o)&&!d&&QL(e,o))?n=n.filter(g=>g!==o):s=l,o=Ro(o)}return t.set(e,n),n}function JJ(e){let{element:t,boundary:r,rootBoundary:n,strategy:s}=e;const o=[...r==="clippingAncestors"?ly(t)?[]:ZJ(t,this._c):[].concat(r),n],l=o[0],d=o.reduce((u,g)=>{const f=q8(t,g,s);return u.top=Ln(f.top,u.top),u.right=No(f.right,u.right),u.bottom=No(f.bottom,u.bottom),u.left=Ln(f.left,u.left),u},q8(t,l,s));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function eee(e){const{width:t,height:r}=VL(e);return{width:t,height:r}}function tee(e,t,r){const n=Ss(t),s=Ts(t),i=r==="fixed",o=Jl(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const d=ys(0);function u(){d.x=dy(s)}if(n||!n&&!i)if((Iu(t)!=="body"||Zf(s))&&(l=cy(t)),n){const y=Jl(t,!0,i,t);d.x=y.x+t.clientLeft,d.y=y.y+t.clientTop}else s&&u();i&&!n&&s&&u();const g=s&&!n&&!i?KL(s,l):ys(0),f=o.left+l.scrollLeft-d.x-g.x,m=o.top+l.scrollTop-d.y-g.y;return{x:f,y:m,width:o.width,height:o.height}}function F2(e){return $a(e).position==="static"}function U8(e,t){if(!Ss(e)||$a(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ts(e)===r&&(r=r.ownerDocument.body),r}function YL(e,t){const r=Hn(e);if(ly(e))return r;if(!Ss(e)){let s=Ro(e);for(;s&&!Jd(s);){if(Wa(s)&&!F2(s))return s;s=Ro(s)}return r}let n=U8(e,t);for(;n&&IJ(n)&&F2(n);)n=U8(n,t);return n&&Jd(n)&&F2(n)&&!Q4(n)?r:n||FJ(e)||r}const ree=async function(e){const t=this.getOffsetParent||YL,r=this.getDimensions,n=await r(e.floating);return{reference:tee(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function nee(e){return $a(e).direction==="rtl"}const aee={convertOffsetParentRelativeRectToViewportRelativeRect:GJ,getDocumentElement:Ts,getClippingRect:JJ,getOffsetParent:YL,getElementRects:ree,getClientRects:VJ,getDimensions:eee,getScale:$d,isElement:Wa,isRTL:nee};function ZL(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function see(e,t){let r=null,n;const s=Ts(e);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function o(l,d){l===void 0&&(l=!1),d===void 0&&(d=1),i();const u=e.getBoundingClientRect(),{left:g,top:f,width:m,height:y}=u;if(l||t(),!m||!y)return;const S=Wm(f),b=Wm(s.clientWidth-(g+m)),v=Wm(s.clientHeight-(f+y)),j=Wm(g),P={rootMargin:-S+"px "+-b+"px "+-v+"px "+-j+"px",threshold:Ln(0,No(1,d))||1};let O=!0;function T(C){const A=C[0].intersectionRatio;if(A!==d){if(!O)return o();A?o(!1,A):n=setTimeout(()=>{o(!1,1e-7)},1e3)}A===1&&!ZL(u,e.getBoundingClientRect())&&o(),O=!1}try{r=new IntersectionObserver(T,{...P,root:s.ownerDocument})}catch{r=new IntersectionObserver(T,P)}r.observe(e)}return o(!0),i}function iee(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=n,u=Z4(e),g=s||i?[...u?Xg(u):[],...Xg(t)]:[];g.forEach(j=>{s&&j.addEventListener("scroll",r,{passive:!0}),i&&j.addEventListener("resize",r)});const f=u&&l?see(u,r):null;let m=-1,y=null;o&&(y=new ResizeObserver(j=>{let[k]=j;k&&k.target===u&&y&&(y.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var P;(P=y)==null||P.observe(t)})),r()}),u&&!d&&y.observe(u),y.observe(t));let S,b=d?Jl(e):null;d&&v();
vendor: 2,294 bytes, line 34
34function v(){const j=Jl(e);b&&!ZL(b,j)&&r(),b=j,S=requestAnimationFrame(v)}return r(),()=>{var j;g.forEach(k=>{s&&k.removeEventListener("scroll",r),i&&k.removeEventListener("resize",r)}),f?.(),(j=y)==null||j.disconnect(),y=null,d&&cancelAnimationFrame(S)}}const oee=OJ,lee=MJ,cee=zJ,dee=RJ,uee=CJ,G8=AJ,pee=NJ,gee=(e,t,r)=>{const n=new Map,s={platform:aee,...r},i={...s.platform,_c:n};return TJ(e,t,{...s,platform:i})};var fee=typeof document<"u",hee=function(){},Wx=fee?E.useLayoutEffect:hee;function n0(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 r,n,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!n0(e[n],t[n]))return!1;return!0}if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,s[n]))return!1;for(n=r;n--!==0;){const i=s[n];if(!(i==="_owner"&&e.$$typeof)&&!n0(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function JL(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function V8(e,t){const r=JL(e);return Math.round(t*r)/r}function H2(e){const t=E.useRef(e);return Wx(()=>{t.current=e}),t}function mee(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:s,elements:{reference:i,floating:o}={},transform:l=!0,whileElementsMounted:d,open:u}=e,[g,f]=E.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[m,y]=E.useState(n);n0(m,n)||y(n);const[S,b]=E.useState(null),[v,j]=E.useState(null),k=E.useCallback(q=>{q!==C.current&&(C.current=q,b(q))},[]),P=E.useCallback(q=>{q!==A.current&&(A.current=q,j(q))},[]),O=i||S,T=o||v,C=E.useRef(null),A=E.useRef(null),N=E.useRef(g),M=d!=null,B=H2(d),R=H2(s),_=H2(u),W=E.useCallback(()=>{if(!C.current||!A.current)return;const q={placement:t,strategy:r,middleware:m};R.current&&(q.platform=R.current),gee(C.current,A.current,q).then(Z=>{const le={...Z,isPositioned:_.current!==!1};V.current&&!n0(N.current,le)&&(N.current=le,G4.flushSync(()=>{f(le)}))})},[m,t,r,R,_]);Wx(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,f(q=>({...q,isPositioned:!1})))},[u]);const V=E.useRef(!1);Wx(()=>(V.current=!0,()=>{V.current=!1}),[]),Wx(()=>
vendor: 4,514 bytes, line 34
34{if(O&&(C.current=O),T&&(A.current=T),O&&T){if(B.current)return B.current(O,T,W);W()}},[O,T,W,B,M]);const F=E.useMemo(()=>({reference:C,floating:A,setReference:k,setFloating:P}),[k,P]),I=E.useMemo(()=>({reference:O,floating:T}),[O,T]),U=E.useMemo(()=>{const q={position:r,left:0,top:0};if(!I.floating)return q;const Z=V8(I.floating,g.x),le=V8(I.floating,g.y);return l?{...q,transform:"translate("+Z+"px, "+le+"px)",...JL(I.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:Z,top:le}},[r,l,I.floating,g.x,g.y]);return E.useMemo(()=>({...g,update:W,refs:F,elements:I,floatingStyles:U}),[g,W,F,I,U])}const xee=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:s}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?G8({element:n.current,padding:s}).fn(r):{}:n?G8({element:n,padding:s}).fn(r):{}}}},yee=(e,t)=>({...oee(e),options:[e,t]}),bee=(e,t)=>({...lee(e),options:[e,t]}),vee=(e,t)=>({...pee(e),options:[e,t]}),See=(e,t)=>({...cee(e),options:[e,t]}),jee=(e,t)=>({...dee(e),options:[e,t]}),wee=(e,t)=>({...uee(e),options:[e,t]}),kee=(e,t)=>({...xee(e),options:[e,t]});var Pee="Arrow",eW=E.forwardRef((e,t)=>{const{children:r,width:n=10,height:s=5,...i}=e;return a.jsx(xc.svg,{...i,ref:t,width:n,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:a.jsx("polygon",{points:"0,0 30,0 15,10"})})});eW.displayName=Pee;var Tee=eW;function Aee(e){const[t,r]=E.useState(void 0);return Gg(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,l;if("borderBoxSize"in i){const d=i.borderBoxSize,u=Array.isArray(d)?d[0]:d;o=u.inlineSize,l=u.blockSize}else o=e.offsetWidth,l=e.offsetHeight;r({width:o,height:l})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var tW="Popper",[rW,nW]=BL(tW),[u3e,aW]=rW(tW),sW="PopperAnchor",iW=E.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...s}=e,i=aW(sW,r),o=E.useRef(null),l=mc(t,o),d=E.useRef(null);return E.useEffect(()=>{const u=d.current;d.current=n?.current||o.current,u!==d.current&&i.onAnchorChange(d.current)}),n?null:a.jsx(xc.div,{...s,ref:l})});iW.displayName=sW;var J4="PopperContent",[zee,Cee]=rW(J4),oW=E.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:l=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:g=0,sticky:f="partial",hideWhenDetached:m=!1,updatePositionStrategy:y="optimized",onPlaced:S,...b}=e,v=aW(J4,r),[j,k]=E.useState(null),P=mc(t,Se=>k(Se)),[O,T]=E.useState(null),C=Aee(O),A=C?.width??0,N=C?.height??0,M=n+(i!=="center"?"-"+i:""),B=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},R=Array.isArray(u)?u:[u],_=R.length>0,W={padding:B,boundary:R.filter(Oee),altBoundary:_},{refs:V,floatingStyles:F,placement:I,isPositioned:U,middlewareData:q}=mee({strategy:"fixed",placement:M,whileElementsMounted:(...Se)=>iee(...Se,{animationFrame:y==="always"}),elements:{reference:v.anchor},middleware:[yee({mainAxis:s+N,alignmentAxis:o}),d&&bee({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?vee():void 0,...W}),d&&See({...W}),jee({...W,apply:({elements:Se,rects:ze,availableWidth:fe,availableHeight:Oe})=>{const{width:Ne,height:ge}=ze.reference,it=Se.floating.style;it.setProperty("--radix-popper-available-width",`${fe}px`),it.setProperty("--radix-popper-available-height",`${Oe}px`),it.setProperty("--radix-popper-anchor-width",`${Ne}px`),it.setProperty("--radix-popper-anchor-height",`${ge}px`)}}),O&&kee({element:O,padding:l}),Mee({arrowWidth:A,arrowHeight:N}),m&&wee({strategy:"referenceHidden",...W})]}),[Z,le]=dW(I),H=iy(S);Gg(()=>{U&&H?.()},[U,H]);const K=q.arrow?.x,Q=q.arrow?.y,re=q.arrow?.centerOffset!==0,[ue,xe]=E.useState();return Gg(()=>{j&&xe(window.getComputedStyle(j).zIndex)},[j]),a.jsx("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:U?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ue,"--radix-popper-transform-origin":[q.transformOrigin?.x,q.transformOrigin?.y].join(" "),...q.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:a.jsx(zee,{scope:r,placedSide:Z,onArrowChange:T,arrowX:K,arrowY:Q,shouldHideArrow:re,children:a.jsx(xc.div,{"data-side":Z,"data-align":le,...b,ref:P,style:{...b.style,animation:U?void 0:"none"}})})})});oW.displayName=J4;var lW="PopperArrow",Eee={top:"bottom",right:"left",bottom:"top",left:"r
34ight"},cW=E.forwardRef(function(t,r){const{__scopePopper:n,...s}=t,i=Cee(lW,n),o=Eee[i.placedSide];return a.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:a.jsx(Tee,{...s,ref:r,style:{...s.style,display:"block"}})})});cW.displayName=lW;function Oee(e){return e!==null}var Mee=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:s}=t,o=s.arrow?.centerOffset!==0,l=o?0:e.arrowWidth,d=o?0:e.arrowHeight,[u,g]=dW(r),f={start:"0%",center:"50%",end:"100%"}[g],m=(s.arrow?.x??0)+l/2,y=(s.arrow?.y??0)+d/2;let S="",b="";return u==="bottom"?(S=o?f:`${m}px`,b=`${-d}px`):u==="top"?(S=o?f:`${m}px`,b=`${n.floating.height+d}px`):u==="right"?(S=`${-d}px`,b=o?f:`${y}px`):u==="left"&&(S=`${n.floating.width+d}px`,b=o?f:`${y}px`),{data:{x:S,y:b}}}});function dW(e){const[t,r="center"]=e.split("-");return[t,r]}var Nee=iW,Ree=oW,Dee=cW;function _ee(e,t){return E.useReducer((r,n)=>t[r][n]??r,e)}var uW=e=>{const{present:t,children:r}=e,n=Iee(t),s=typeof r=="function"?r({present:n.isPresent}):E.Children.only(r),i=mc(n.ref,Bee(s));return typeof r=="function"||n.isPresent?E.cloneElement(s,{ref:i}):null};
vendor: 4,248 bytes, line 34
34uW.displayName="Presence";function Iee(e){const[t,r]=E.useState(),n=E.useRef(null),s=E.useRef(e),i=E.useRef("none"),o=e?"mounted":"unmounted",[l,d]=_ee(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{const u=$m(n.current);i.current=l==="mounted"?u:"none"},[l]),Gg(()=>{const u=n.current,g=s.current;if(g!==e){const m=i.current,y=$m(u);e?d("MOUNT"):y==="none"||u?.display==="none"?d("UNMOUNT"):d(g&&m!==y?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,d]),Gg(()=>{if(t){let u;const g=t.ownerDocument.defaultView??window,f=y=>{const b=$m(n.current).includes(CSS.escape(y.animationName));if(y.target===t&&b&&(d("ANIMATION_END"),!s.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=g.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},m=y=>{y.target===t&&(i.current=$m(n.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{g.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:E.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function $m(e){return e?.animationName||"none"}function Bee(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Lee=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"}),Wee="VisuallyHidden",pW=E.forwardRef((e,t)=>a.jsx(xc.span,{...e,ref:t,style:{...Lee,...e.style}}));pW.displayName=Wee;var $ee=pW,[uy]=BL("Tooltip",[nW]),eA=nW(),gW="TooltipProvider",Fee=700,X8="tooltip.open",[Hee,fW]=uy(gW),hW=e=>{const{__scopeTooltip:t,delayDuration:r=Fee,skipDelayDuration:n=300,disableHoverableContent:s=!1,children:i}=e,o=E.useRef(!0),l=E.useRef(!1),d=E.useRef(0);return E.useEffect(()=>{const u=d.current;return()=>window.clearTimeout(u)},[]),a.jsx(Hee,{scope:t,isOpenDelayedRef:o,delayDuration:r,onOpen:E.useCallback(()=>{window.clearTimeout(d.current),o.current=!1},[]),onClose:E.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>o.current=!0,n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:E.useCallback(u=>{l.current=u},[]),disableHoverableContent:s,children:i})};hW.displayName=gW;var mW="Tooltip",[p3e,py]=uy(mW),AP="TooltipTrigger",qee=E.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,s=py(AP,r),i=fW(AP,r),o=eA(r),l=E.useRef(null),d=mc(t,l,s.onTriggerChange),u=E.useRef(!1),g=E.useRef(!1),f=E.useCallback(()=>u.current=!1,[]);return E.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),a.jsx(Nee,{asChild:!0,...o,children:a.jsx(xc.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...n,ref:d,onPointerMove:ri(e.onPointerMove,m=>{m.pointerType!=="touch"&&!g.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),g.current=!0)}),onPointerLeave:ri(e.onPointerLeave,()=>{s.onTriggerLeave(),g.current=!1}),onPointerDown:ri(e.onPointerDown,()=>{s.open&&s.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:ri(e.onFocus,()=>{u.current||s.onOpen()}),onBlur:ri(e.onBlur,s.onClose),onClick:ri(e.onClick,s.onClose)})})});qee.displayName=AP;var Uee="TooltipPortal",[g3e,Gee]=uy(Uee,{forceMount:void 0}),eu="TooltipContent",Vee=E.forwardRef((e,t)=>{const r=Gee(eu,e.__scopeTooltip),{forceMount:n=r.forceMount,side:s="top",...i}=e,o=py(eu,e.__scopeTooltip);return a.jsx(uW,{present:n||o.open,children:o.disableHoverableContent?a.jsx(xW,{side:s,...i,ref:t}):a.jsx(Xee,{side:s,...i,ref:t})})}),Xee=E.forwardRef((e,t)=>{const r=py(eu,e.__scopeTooltip),n=fW(eu,e.__scopeTooltip),s=E.useRef(null),i=mc(t,s),[o,l]=E.useState(null),{trigger:d,onClose:u}=r,g=s.current,{onPointerInTransitChange:f}=n,m=E.useCallback(()=>
vendor: 11,564 bytes, line 34
34{l(null),f(!1)},[f]),y=E.useCallback((S,b)=>{const v=S.currentTarget,j={x:S.clientX,y:S.clientY},k=Jee(j,v.getBoundingClientRect()),P=ete(j,k),O=tte(b.getBoundingClientRect()),T=nte([...P,...O]);l(T),f(!0)},[f]);return E.useEffect(()=>()=>m(),[m]),E.useEffect(()=>{if(d&&g){const S=v=>y(v,g),b=v=>y(v,d);return d.addEventListener("pointerleave",S),g.addEventListener("pointerleave",b),()=>{d.removeEventListener("pointerleave",S),g.removeEventListener("pointerleave",b)}}},[d,g,y,m]),E.useEffect(()=>{if(o){const S=b=>{const v=b.target,j={x:b.clientX,y:b.clientY},k=d?.contains(v)||g?.contains(v),P=!rte(j,o);k?m():P&&(m(),u())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[d,g,o,u,m]),a.jsx(xW,{...e,ref:i})}),[Kee,Qee]=uy(mW,{isInside:!1}),Yee=tJ("TooltipContent"),xW=E.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...l}=e,d=py(eu,r),u=eA(r),{onClose:g}=d;return E.useEffect(()=>(document.addEventListener(X8,g),()=>document.removeEventListener(X8,g)),[g]),E.useEffect(()=>{if(d.trigger){const f=m=>{m.target?.contains(d.trigger)&&g()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[d.trigger,g]),a.jsx($L,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:g,children:a.jsxs(Ree,{"data-state":d.stateAttribute,...u,...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:[a.jsx(Yee,{children:n}),a.jsx(Kee,{scope:r,isInside:!0,children:a.jsx($ee,{id:d.contentId,role:"tooltip",children:s||n})})]})})});Vee.displayName=eu;var yW="TooltipArrow",Zee=E.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,s=eA(r);return Qee(yW,r).isInside?null:a.jsx(Dee,{...s,...n,ref:t})});Zee.displayName=yW;function Jee(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,s,i)){case i:return"left";case s:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function ete(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function tte(e){const{top:t,right:r,bottom:n,left:s}=e;return[{x:s,y:t},{x:r,y:t},{x:r,y:n},{x:s,y:n}]}function rte(e,t){const{x:r,y:n}=e;let s=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const l=t[i],d=t[o],u=l.x,g=l.y,f=d.x,m=d.y;g>n!=m>n&&r<(f-u)*(n-g)/(m-g)+u&&(s=!s)}return s}function nte(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),ate(t)}function ate(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const s=e[n];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))t.pop();else break}t.push(s)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const s=e[n];for(;r.length>=2;){const i=r[r.length-1],o=r[r.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))r.pop();else break}r.push(s)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var ste=hW;function bW(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=bW(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function st(){for(var e,t,r=0,n="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=bW(e))&&(n&&(n+=" "),n+=t);return n}const tA="-",ite=e=>{const t=lte(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const l=o.split(tA);return l[0]===""&&l.length!==1&&l.shift(),vW(l,t)||ote(o)},getConflictingClassGroupIds:(o,l)=>{const d=r[o]||[];return l&&n[o]?[...d,...n[o]]:d}}},vW=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),s=n?vW(e.slice(1),n):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(tA);return t.validators.find(({validator:o})=>o(i))?.classGroupId},K8=/^\[(.+)\]$/,ote=e=>{if(K8.test(e)){const t=K8.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},lte=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const s in r)zP(r[s],n,s,t);return n},zP=(e,t,r,n)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:Q8(t,s);i.classGroupId=r;return}if(typeof s=="function"){if(cte(s)){zP(s(n),t,r,n);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([i,o])=>{zP(o,Q8(t,i),r,n)})})},Q8=(e,t)=>{let r=e;return t.split(tA).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},cte=e=>e.isThemeGetter,dte=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const s=(i,o)=>{r.set(i,o),t++,t>e&&(t=0,n=r,r=new Map)};return{get(i){let o=r.get(i);if(o!==void 0)return o;if((o=n.get(i))!==void 0)return s(i,o),o},set(i,o){r.has(i)?r.set(i,o):s(i,o)}}},CP="!",EP=":",ute=EP.length,pte=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=s=>{const i=[];let o=0,l=0,d=0,u;for(let S=0;S<s.length;S++){let b=s[S];if(o===0&&l===0){if(b===EP){i.push(s.slice(d,S)),d=S+ute;continue}if(b==="/"){u=S;continue}}b==="["?o++:b==="]"?o--:b==="("?l++:b===")"&&l--}const g=i.length===0?s:s.substring(d),f=gte(g),m=f!==g,y=u&&u>d?u-d:void 0;return{modifiers:i,hasImportantModifier:m,baseClassName:f,maybePostfixModifierPosition:y}};if(t){const s=t+EP,i=n;n=o=>o.startsWith(s)?i(o.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:o,maybePostfixModifierPosition:void 0}}if(r){const s=n;n=i=>r({className:i,parseClassName:s})}return n},gte=e=>e.endsWith(CP)?e.substring(0,e.length-1):e.startsWith(CP)?e.substring(1):e,fte=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const s=[];let i=[];return n.forEach(o=>{o[0]==="["||t[o]?(s.push(...i.sort(),o),i=[]):i.push(o)}),s.push(...i.sort()),s}},hte=e=>({cache:dte(e.cacheSize),parseClassName:pte(e),sortModifiers:fte(e),...ite(e)}),mte=/\s+/,xte=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s,sortModifiers:i}=t,o=[],l=e.trim().split(mte);let d="";for(let u=l.length-1;u>=0;u-=1){const g=l[u],{isExternal:f,modifiers:m,hasImportantModifier:y,baseClassName:S,maybePostfixModifierPosition:b}=r(g);if(f){d=g+(d.length>0?" "+d:d);continue}let v=!!b,j=n(v?S.substring(0,b):S);if(!j){if(!v){d=g+(d.length>0?" "+d:d);continue}if(j=n(S),!j){d=g+(d.length>0?" "+d:d);continue}v=!1}const k=i(m).join(":"),P=y?k+CP:k,O=P+j;if(o.includes(O))continue;o.push(O);const T=s(j,v);for(let C=0;C<T.length;++C){const A=T[C];o.push(P+A)}d=g+(d.length>0?" "+d:d)}return d};function yte(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=SW(t))&&(n&&(n+=" "),n+=r);return n}const SW=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=SW(e[n]))&&(r&&(r+=" "),r+=t);return r};function bte(e,...t){let r,n,s,i=o;function o(d){const u=t.reduce((g,f)=>f(g),e());return r=hte(u),n=r.cache.get,s=r.cache.set,i=l,l(d)}function l(d){const u=n(d);if(u)return u;const g=xte(d,r);return s(d,g),g}return function(){return i(yte.apply(null,arguments))}}const gr=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},jW=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,wW=/^\((?:(\w[\w-]*):)?(.+)\)$/i,vte=/^\d+\/\d+$/,Ste=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,jte=/\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$/,wte=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,kte=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Pte=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,yd=e=>vte.test(e),Ke=e=>!!e&&!Number.isNaN(Number(e)),ro=e=>!!e&&Number.isInteger(Number(e)),q2=e=>e.endsWith("%")&&Ke(e.slice(0,-1)),Xs=e=>Ste.test(e),Tte=()=>!0,Ate=e=>jte.test(e)&&!wte.test(e),kW=()=>!1,zte=e=>kte.test(e),Cte=e=>Pte.test(e),Ete=e=>!Te(e)&&!Ae(e),Ote=e=>Bu(e,AW,kW),Te=e=>jW.test(e),xl=e=>Bu(e,zW,Ate),U2=e=>Bu(e,_te,Ke),Y8=e=>Bu(e,PW,kW),Mte=e=>Bu(e,TW,Cte),Fm=e=>Bu(e,CW,zte),Ae=e=>wW.test(e),Gp=e=>Lu(e,zW),Nte=e=>Lu(e,Ite),Z8=e=>Lu(e,PW),Rte=e=>Lu(e,AW),Dte=e=>Lu(e,TW),Hm=e=>Lu(e,CW,!0),Bu=(e,t,r)=>{const n=jW.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Lu=(e,t,r=!1)=>{const n=wW.exec(e);return n?n[1]?t(n[1]):r:!1},PW=e=>e==="position"||e==="percentage",TW=e=>e==="image"||e==="url",AW=e=>e==="length"||e==="size"||e==="bg-size",zW=e=>e==="length",_te=e=>e==="number",Ite=e=>e==="family-name",CW=e=>e==="shadow",Bte=()=>{const e=gr("color"),t=gr("font"),r=gr("text"),n=gr("font-weight"),s=gr("tracking"),i=gr("leading"),o=gr("breakpoint"),l=gr("container"),d=gr("spacing"),u=gr("radius"),g=gr("shadow"),f=gr("inset-shadow"),m=gr("text-shadow"),y=gr("drop-shadow"),S=gr("blur"),b=gr("perspective"),v=gr("aspect"),j=gr("ease"),k=gr("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...O(),Ae,Te],C=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],N=()=>[Ae,Te,d],M=()=>[yd,"full","auto",...N()],B=()=>[ro,"none","subgrid",Ae,Te],R=()=>["auto",{span:["full",ro,Ae,Te]},ro,Ae,Te],_=()=>[ro,"auto",Ae,Te],W=()=>["auto","min","max","fr",Ae,Te],V=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],F=()=>["start","end","center","stretch","center-safe","end-safe"],I=()=>["auto",...N()],U=()=>[yd,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],q=()=>[e,Ae,Te],Z=()=>[...O(),Z8,Y8,{position:[Ae,Te]}],le=()=>["no-repeat",{repeat:["","x","y","space","round"]}],H=()=>["auto","cover","contain",Rte,Ote,{size:[Ae,Te]}],K=()=>[q2,Gp,xl],Q=()=>["","none","full",u,Ae,Te],re=()=>["",Ke,Gp,xl],ue=()=>["solid","dashed","dotted","double"],xe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Se=()=>[Ke,q2,Z8,Y8],ze=()=>["","none",S,Ae,Te],fe=()=>["none",Ke,Ae,Te],Oe=()=>["none",Ke,Ae,Te],Ne=()=>[Ke,Ae,Te],ge=()=>[yd,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Xs],breakpoint:[Xs],color:[Tte],container:[Xs],"drop-shadow":[Xs],ease:["in","out","in-out"],font:[Ete],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Xs],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Xs],shadow:[Xs],spacing:["px",Ke],text:[Xs],"text-shadow":[Xs],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",yd,Te,Ae,v]}
vendor: 12,862 bytes, line 34
34],container:["container"],columns:[{columns:[Ke,Te,Ae,l]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"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"],sr:["sr-only","not-sr-only"],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:T()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{start:M()}],end:[{end:M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[ro,"auto",Ae,Te]}],basis:[{basis:[yd,"full","auto",l,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ke,yd,"auto","initial","none",Te]}],grow:[{grow:["",Ke,Ae,Te]}],shrink:[{shrink:["",Ke,Ae,Te]}],order:[{order:[ro,"first","last","none",Ae,Te]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:R()}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:R()}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":W()}],"auto-rows":[{"auto-rows":W()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...V(),"normal"]}],"justify-items":[{"justify-items":[...F(),"normal"]}],"justify-self":[{"justify-self":["auto",...F()]}],"align-content":[{content:["normal",...V()]}],"align-items":[{items:[...F(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...F(),{baseline:["","last"]}]}],"place-content":[{"place-content":V()}],"place-items":[{"place-items":[...F(),"baseline"]}],"place-self":[{"place-self":["auto",...F()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:I()}],mx:[{mx:I()}],my:[{my:I()}],ms:[{ms:I()}],me:[{me:I()}],mt:[{mt:I()}],mr:[{mr:I()}],mb:[{mb:I()}],ml:[{ml:I()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],w:[{w:[l,"screen",...U()]}],"min-w":[{"min-w":[l,"screen","none",...U()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[o]},...U()]}],h:[{h:["screen","lh",...U()]}],"min-h":[{"min-h":["screen","lh","none",...U()]}],"max-h":[{"max-h":["screen","lh",...U()]}],"font-size":[{text:["base",r,Gp,xl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Ae,U2]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",q2,Te]}],"font-family":[{font:[Nte,Te,t]}],"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:[s,Ae,Te]}],"line-clamp":[{"line-clamp":[Ke,"none",Ae,U2]}],leading:[{leading:[i,...N()]}],"list-image":[{"list-image":["none",Ae,Te]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ae,Te]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:q()}],"text-color":[{text:q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ue(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ke,"from-font","auto",Ae,xl]}],"text-decoration-color":[{decoration:q()}],"underline-offset":[{"underline-offset":[Ke,"auto",Ae,Te]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ae,Te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ae,Te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Z()}],"bg-repeat":[{bg:le()}],"bg-size":[{bg:H()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ro,Ae,Te],radial:["",Ae,Te],conic:[ro,Ae,Te]},Dte,Mte]}],"bg-color":[{bg:q()}],"gradient-from-pos":[{from:K()}],"gradient-via-pos":[{via:K()}],"gradient-to-pos":[{to:K()}],"gradient-from":[{from:q()}],"gradient-via":[{via:q()}],"gradient-to":[{to:q()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:re()}],"border-w-x":[{"border-x":re()}],"border-w-y":[{"border-y":re()}],"border-w-s":[{"border-s":re()}],"border-w-e":[{"border-e":re()}],"border-w-t":[{"border-t":re()}],"border-w-r":[{"border-r":re()}],"border-w-b":[{"border-b":re()}],"border-w-l":[{"border-l":re()}],"divide-x":[{"divide-x":re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ue(),"hidden","none"]}],"divide-style":[{divide:[...ue(),"hidden","none"]}],"border-color":[{border:q()}],"border-color-x":[{"border-x":q()}],"border-color-y":[{"border-y":q()}],"border-color-s":[{"border-s":q()}],"border-color-e":[{"border-e":q()}],"border-color-t":[{"border-t":q()}],"border-color-r":[{"border-r":q()}],"border-color-b":[{"border-b":q()}],"border-color-l":[{"border-l":q()}],"divide-color":[{divide:q()}],"outline-style":[{outline:[...ue(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ke,Ae,Te]}],"outline-w":[{outline:["",Ke,Gp,xl]}],"outline-color":[{outline:q()}],shadow:[{shadow:["","none",g,Hm,Fm]}],"shadow-color":[{shadow:q()}],"inset-shadow":[{"inset-shadow":["none",f,Hm,Fm]}],"inset-shadow-color":[{"inset-shadow":q()}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:q()}],"ring-offset-w":[{"ring-offset":[Ke,xl]}],"ring-offset-color":[{"ring-offset":q()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":q()}],"text-shadow":[{"text-shadow":["none",m,Hm,Fm]}],"text-shadow-color":[{"text-shadow":q()}],opacity:[{opacity:[Ke,Ae,Te]}],"mix-blend":[{"mix-blend":[...xe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":xe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ke]}],"mask-image-linear-from-pos":[{"mask-linear-from":Se()}],"mask-image-linear-to-pos":[{"mask-linear-to":Se()}],"mask-image-linear-from-color":[{"mask-linear-from":q()}],"mask-image-linear-to-color":[{"mask-linear-to":q()}],"mask-image-t-from-pos":[{"mask-t-from":Se()}],"mask-image-t-to-pos":[{"mask-t-to":Se()}],"mask-image-t-from-color":[{"mask-t-from":q()}],"mask-image-t-to-color":[{"mask-t-to":q()}],"mask-image-r-from-pos":[{"mask-r-from":Se()}],"mask-image-r-to-pos":[{"mask-r-to":Se()}],"mask-image-r-from-color":[{"mask-r-from":q()}],"mask-image-r-to-color":[{"mask-r-to":q()}],"mask-image-b-from-pos":[{"mask-b-from":Se()}],"mask-image-b-to-pos":[{"mask-b-to":Se()}],"mask-image-b-from-color":[{"mask-b-from":q()}],"mask-image-b-to-color":[{"mask-b-to":q()}],"mask-image-l-from-pos":[{"mask-l-from":Se()}],"mask-image-l-to-pos":[{"mask-l-to":Se()}],"mask-image-l-from-color":[{"mask-l-from":q()}],"mask-image-l-to-color":[{"mask-l-to":q()}],"mask-image-x-from-pos":[{"mask-x-from":Se()}],"mask-image-x-to-pos":[{"mask-x-to":Se()}],"mask-image-x-from-color":[{"mask-x-from":q()}],"mask-image-x-to-color":[{"mask-x-to":q()}],"mask-image-y-from-pos":[{"mask-y-from":Se()}],"mask-image-y-to-pos":[{"mask-y-to":Se()}],"mask-image-y-from-color":[{"mask-y-from":q()}],"mask-image-y-to-color":[{"mask-y-to":q()}],"mask-image-radial":[{"mask-radial":[Ae,Te]}],"mask-image-radial-from-pos":[{"mask-radial-from":Se()}],"mask-image-radial-to-pos":[{"mask-radial-to":Se()}],"mask-image-radial-from-color":[{"mask-radial-from":q()}],"mask-image-radial-to-color":[{"mask-radial-to":q()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":O()}],"mask-image-conic-pos":[{"mask-conic":[Ke]}],"mask-image-conic-from-pos":[{"mask-conic-from":Se()}],"mask-image-conic-to-pos":[{"mask-conic-to":Se()}],"mask-image-conic-from-color":[{"mask-conic-from":q()}],"mask-image-conic-to-color":[{"mask-conic-to":q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Z()}],"mask-repeat":[{mask:le()}],"mask-size":[{mask:H()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ae,Te]}],filter:[{filter:["","none",Ae,Te]}],blur:[{blur:ze()}],brightness:[{brightness:[Ke,Ae,Te]}],contrast:[{contrast:[Ke,Ae,Te]}],"drop-shadow":[{"drop-shadow":["","none",y,Hm,Fm]}],"drop-shadow-color":[{"drop-shadow":q()}],grayscale:[{grayscale:["",Ke,Ae,Te]}],"hue-rotate":[{"hue-rotate":[Ke,Ae,Te]}],invert:[{invert:["",Ke,Ae,Te]}],saturate:[{saturate:[Ke,Ae,Te]}],sepia:[{sepia:["",Ke,Ae,Te]}],"backdrop-filter":[{"backdrop-filter":["","none",Ae,Te]}],"backdrop-blur":[{"backdrop-blur":ze()}],"backdrop-brightness":[{"backdrop-brightness":[Ke,Ae,Te]}],"backdrop-contrast":[{"backdrop-contrast":[Ke,Ae,Te]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ke,Ae,Te]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ke,Ae,Te]}],"backdrop-invert":[{"backdrop-invert":["",Ke,Ae,Te]}],"backdrop-opacity":[{"backdrop-opacity":[Ke,Ae,Te]}],"backdrop-saturate":[{"backdrop-saturate":[Ke,Ae,Te]}],"backdrop-sepia":[{"backdrop-sepia":["",Ke,Ae,Te]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ae,Te]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ke,"initial",Ae,Te]}],ease:[{ease:["linear","initial",j,Ae,Te]}],delay:[{delay:[Ke,Ae,Te]}],animate:[{animate:["none",k,Ae,Te]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,Ae,Te]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:fe()}],"rotate-x":[{"rotate-x":fe()}],"rotate-y":[{"rotate-y":fe()}],"rotate-z":[{"rotate-z":fe()}],scale:[{scale:Oe()}],"scale-x":[{"scale-x":Oe()}],"scale-y":[{"scale-y":Oe()}],"scale-z":[{"scale-z":Oe()}],"scale-3d":["scale-3d"],skew:[{skew:Ne()}],"skew-x":[{"skew-x":Ne()}],"skew-y":[{"skew-y":Ne()}],transform:[{transform:[Ae,Te,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ge()}],"translate-x":[{"translate-x":ge()}],"translate-y":[{"translate-y":ge()}],"translate-z":[{"translate-z":ge()}],"translate-none":["translate-none"],accent:[{accent:q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:q()}
34],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",Ae,Te]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"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"]}],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",Ae,Te]}],fill:[{fill:["none",...q()]}],"stroke-w":[{stroke:[Ke,Gp,xl,U2]}],stroke:[{stroke:["none",...q()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Lte=bte(Bte);function Wte(...e){return Lte(st(e))}function $te({delayDuration:e=0,...t}){return a.jsx(ste,{"data-loc":"client/src/components/ui/tooltip.tsx:11","data-slot":"tooltip-provider",delayDuration:e,...t})}function Fte(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var r,n,s,i,o=[],l="",d=e.split("/");for(d[0]||d.shift();s=d.shift();)r=s[0],r==="*"?(o.push(r),l+=s[1]==="?"?"(?:/(.*))?":"/(.*)"):r===":"?(n=s.indexOf("?",1),i=s.indexOf(".",1),o.push(s.substring(1,~n?n:~i?i:s.length)),l+=~n&&!~i?"(?:/([^/]+?))?":"/([^/]+?)",~i&&(l+=(~n?"?":"")+"\\"+s.substring(i))):l+="/"+s;return{keys:o,pattern:new RegExp("^"+l+(t?"(?=$|/)":"/?$"),"i")}}var G2={exports:{}},V2={};
34/** 35 * @license React 36 * use-sync-external-store-shim.production.js 37 * 38 * Copyright (c) Meta Platforms, Inc. and affiliates. 39 * 40 * This source code is licensed under the MIT license found in the 41 * LICENSE file in the root directory of this source tree. 42 */var J8;function Hte(){if(J8)return V2;J8=1;var e=Xf();function t(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,s=e.useEffect,i=e.useLayoutEffect,o=e.useDebugValue;function l(f,m){var y=m(),S=n({inst:{value:y,getSnapshot:m}}),b=S[0].inst,v=S[1];return i(function(){b.value=y,b.getSnapshot=m,d(b)&&v({inst:b})},[f,y,m]),s(function(){return d(b)&&v({inst:b}),f(function(){d(b)&&v({inst:b})})},[f]),o(y),y}function d(f){var m=f.getSnapshot;f=f.value;try{var y=m();return!r(f,y)}catch{return!0}}function u(f,m){return m()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:l;return V2.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g,V2}var eE;function EW(){return eE||(eE=1,G2.exports=Hte()),G2.exports}var rA=EW();const qte=qB.useInsertionEffect,Ute=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Gte=Ute?E.useLayoutEffect:E.useEffect,Vte=qte||Gte,OW=e=>{const t=E.useRef([e,(...r)=>t[0](...r)]).current;return Vte(()=>{t[0]=e}),t[1]},Xte="popstate",nA="pushState",aA="replaceState",Kte="hashchange",tE=[Xte,nA,aA,Kte],Qte=e=>{for(const t of tE)addEventListener(t,e);return()=>{for(const t of tE)removeEventListener(t,e)}},MW=(e,t)=>rA.useSyncExternalStore(Qte,e,t),Yte=()=>location.search,Zte=({ssrSearch:e=""}={})=>MW(Yte,()=>e),rE=()=>location.pathname,Jte=({ssrPath:e}={})=>MW(rE,e?()=>e:rE),ere=(e,{replace:t=!1,state:r=null}={})=>history[t?aA:nA](r,"",e),tre=(e={})=>[Jte(e),ere],nE=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[nE]>"u"){for(const e of[nA,aA]){const t=history[e];history[e]=function(){const r=t.apply(this,arguments),n=new Event(e);return n.arguments=arguments,dispatchEvent(n),r}}Object.defineProperty(window,nE,{value:!0})}const rre=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",NW=(e="")=>e==="/"?"":e,nre=(e,t)=>
42e[0]==="~"?e.slice(1):NW(t)+e,are=(e="",t)=>rre(OP(NW(e)),OP(t)),sre=e=>e[0]==="?"?e.slice(1):e,OP=e=>{try{return decodeURI(e)}catch{return e}},ire=e=>OP(sre(e)),RW={hook:tre,searchHook:Zte,parser:Fte,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e},DW=E.createContext(RW),Wu=()=>E.useContext(DW),_W={},IW=E.createContext(_W),Ua=()=>E.useContext(IW),gy=e=>{const[t,r]=e.hook(e);return[are(e.base,t),OW((n,s)=>r(nre(n,e.base),s))]},Sa=()=>gy(Wu()),As=()=>{const e=Wu();return ire(e.searchHook(e))},BW=(e,t,r,n)=>{const{pattern:s,keys:i}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",n),o=s.exec(r)||[],[l,...d]=o;return l!==void 0?[!0,(()=>{const u=i!==!1?Object.fromEntries(i.map((f,m)=>[f,d[m]])):o.groups;let g={...d};return u&&Object.assign(g,u),g})(),...n?[l]:[]]:[!1,null]},ore=({children:e,...t})=>{const r=Wu(),n=t.hook?RW:r;let s=n;const[i,o]=t.ssrPath?.split("?")??[];o&&(t.ssrSearch=o,t.ssrPath=i),t.hrefs=t.hrefs??t.hook?.hrefs;let l=E.useRef({}),d=l.current,u=d;for(let g in n){const f=g==="base"?n[g]+(t[g]||""):t[g]||n[g];d===u&&f!==u[g]&&(l.current=u={...u}),u[g]=f,(f!==n[g]||f!==s[g])&&(s=u)}return E.createElement(DW.Provider,{value:s,children:e})},aE=({children:e,component:t},r)=>t?E.createElement(t,{params:r}):typeof e=="function"?e(r):e,lre=e=>{let t=E.useRef(_W);const r=t.current;return t.current=Object.keys(e).length!==Object.keys(r).length||Object.entries(e).some(([n,s])=>s!==r[n])?e:r},be=({path:e,nest:t,match:r,...n})=>{const s=Wu(),[i]=gy(s),[o,l,d]=r??BW(s.parser,e,i,t),u=lre({...Ua(),...l});if(!o)return null;const g=d?E.createElement(ore,{base:d},aE(n,u)):aE(n,u);return E.createElement(IW.Provider,{value:u,children:g})},$=E.forwardRef((e,t)=>{const r=Wu(),[n,s]=gy(r),{to:i="",href:o=i,onClick:l,asChild:d,children:u,className:g,replace:f,state:m,...y}=e,S=OW(v=>{v.ctrlKey||v.metaKey||v.altKey||v.shiftKey||v.button!==0||(l?.(v),v.defaultPrevented||(v.preventDefault(),s(o,e)))}),b=r.hrefs(o[0]==="~"?o.slice(1):r.base+o,r);return d&&E.isValidElement(u)?E.cloneElement(u,{onClick:S,href:b}):E.createElement("a",{...y,onClick:S,href:b,className:g?.call?g(n===o):g,children:u,ref:t})}),MP=e=>Array.isArray(e)?e.flatMap(t=>MP(t&&t.type===E.Fragment?t.props.children:t)):[e],cre=({children:e,location:t})=>{const r=Wu(),[n]=gy(r);typeof window<"u"&&(window.__WOUTER_ROUTES__||(window.__WOUTER_ROUTES__=[]),MP(e).forEach(i=>{if(E.isValidElement(i)&&i.props.path){const o=i.props.path;window.__WOUTER_ROUTES__.includes(o)||window.__WOUTER_ROUTES__.push(o)}}));for(const s of MP(e)){let i=0;if(E.isValidElement(s)&&(i=BW(r.parser,s.props.path,t||n,s.props.nest))[0])return E.cloneElement(s,{match:i})}return null};/** 43 * @license lucide-react v0.453.0 - ISC 44 * 45 * This source code is licensed under the ISC license. 46 * See the LICENSE file in the root directory of this source tree. 47 */const dre=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),LW=(...e)=>e.filter((t,r,n)=>!!t&&n.indexOf(t)===r).join(" ");/** 48 * @license lucide-react v0.453.0 - ISC 49 * 50 * This source code is licensed under the ISC license. 51 * See the LICENSE file in the root directory of this source tree. 52 */var ure={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"};/** 53 * @license lucide-react v0.453.0 - ISC 54 * 55 * This source code is licensed under the ISC license. 56 * See the LICENSE file in the root directory of this source tree. 57 */const pre=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:s="",children:i,iconNode:o,...l},d)=>E.createElement("svg",{ref:d,...ure,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:LW("lucide",s),...l},[...o.map(([u,g])=>E.createElement(u,g)),...Array.isArray(i)?i:[i]]));/** 58 * @license lucide-react v0.453.0 - ISC 59 * 60 * This source code is licensed under the ISC license. 61 * See the LICENSE file in the root directory of this source tree. 62 */const se=(e,t)=>{const r=E.forwardRef(({className:n,...s},i)=>E.createElement(pre,{ref:i,iconNode:t,className:LW(`lucide-${dre(e)}`,n),...s}));return r.displayName=`${e}`,r};/** 63 * @license lucide-react v0.453.0 - ISC 64 * 65 * This source code is licensed under the ISC license. 66 * See the LICENSE file in the root directory of this source tree. 67 */const gre=se("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l
67-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/** 68 * @license lucide-react v0.453.0 - ISC 69 * 70 * This source code is licensed under the ISC license. 71 * See the LICENSE file in the root directory of this source tree. 72 */const fre=se("AlignLeft",[["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 18H3",key:"1amg6g"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/** 73 * @license lucide-react v0.453.0 - ISC 74 * 75 * This source code is licensed under the ISC license. 76 * See the LICENSE file in the root directory of this source tree. 77 */const WW=se("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/** 78 * @license lucide-react v0.453.0 - ISC 79 * 80 * This source code is licensed under the ISC license. 81 * See the LICENSE file in the root directory of this source tree. 82 */const hre=se("ArrowDownLeft",[["path",{d:"M17 7 7 17",key:"15tmo1"}],["path",{d:"M17 17H7V7",key:"1org7z"}]]);/** 83 * @license lucide-react v0.453.0 - ISC 84 * 85 * This source code is licensed under the ISC license. 86 * See the LICENSE file in the root directory of this source tree. 87 */const a0=se("ArrowDownUp",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"m21 8-4-4-4 4",key:"1c9v7m"}],["path",{d:"M17 4v16",key:"7dpous"}]]);/** 88 * @license lucide-react v0.453.0 - ISC 89 * 90 * This source code is licensed under the ISC license. 91 * See the LICENSE file in the root directory of this source tree. 92 */const ya=se("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 93 * @license lucide-react v0.453.0 - ISC 94 * 95 * This source code is licensed under the ISC license. 96 * See the LICENSE file in the root directory of this source tree. 97 */const Kg=se("ArrowRightLeft",[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]]);/** 98 * @license lucide-react v0.453.0 - ISC 99 * 100 * This source code is licensed under the ISC license. 101 * See the LICENSE file in the root directory of this source tree. 102 */const _e=se("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 103 * @license lucide-react v0.453.0 - ISC 104 * 105 * This source code is licensed under the ISC license. 106 * See the LICENSE file in the root directory of this source tree. 107 */const fy=se("ArrowUpDown",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]);/** 108 * @license lucide-react v0.453.0 - ISC 109 * 110 * This source code is licensed under the ISC license. 111 * See the LICENSE file in the root directory of this source tree. 112 */const tu=se("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/** 113 * @license lucide-react v0.453.0 - ISC 114 * 115 * This source code is licensed under the ISC license. 116 * See the LICENSE file in the root directory of this source tree. 117 */const mre=se("Atom",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["path",{d:"M20.2 20.2c2.04-2.03.02-7.36-4.5-11.9-4.54-4.52-9.87-6.54-11.9-4.5-2.04 2.03-.02 7.36 4.5 11.9 4.54 4.52 9.87 6.54 11.9 4.5Z",key:"1l2ple"}],["path",{d:"M15.7 15.7c4.52-4.54 6.54-9.87 4.5-11.9-2.03-2.04-7.36-.02-11.9 4.5-4.52 4.54-6.54 9.87-4.5 11.9 2.03 2.04 7.36.02 11.9-4.5Z",key:"1wam0m"}]]);/** 118 * @license lucide-react v0.453.0 - ISC 119 * 120 * This source code is licensed under the ISC license. 121 * See the LICENSE file in the root directory of this source tree. 122 */const xre=se("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/** 123 * @license lucide-react v0.453.0 - ISC 124 * 125 * This source code is licensed under the ISC license. 126 * See the LICENSE file in the root directory of this source tree. 127 */const sA=se("BadgeCheck",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 128 * @license lucide-react v0.453.0 - ISC 129 * 130 * This source code is licensed under the ISC license. 131 * See the LICENSE file in the root directory of this source tree. 132 */const iA=se("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"}]]);/** 133 * @license lucide-react v0.453.0 - ISC 134 * 135 * This source code is licensed under the ISC license. 136 * See the LICENSE file in the root directory of this source tree. 137 */const yre=se("Bold",[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]]);/** 138 * @license lucide-react v0.453.0 - ISC 139 * 140 * This source code is licensed under the ISC license. 141 * See the LICENSE file in the root directory of this source tree. 142 */const bre=se("BookOpenCheck",[["path",{d:"M12 21V7",key:"gj6g52"}],["path",{d:"m16 12 2 2 4-4",key:"mdajum"}],["path",{d:"M22 6V4a1 1 0 0 0-1-1h-5a4 4 0 0 0-4 4 4 4 0 0 0-4-4H3a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1h6a3 3 0 0 1 3 3 3 3 0 0 1 3-3h6a1 1 0 0 0 1-1v-1.3",key:"8arnkb"}]]);/** 143 * @license lucide-react v0.453.0 - ISC 144 * 145 * This source code is licensed under the ISC license. 146 * See the LICENSE file in the root directory of this source tree. 147 */const NP=se("BookOpenText",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M16 12h2",key:"7q9ll5"}],["path",{d:"M16 8h2",key:"msurwy"}],["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"}],["path",{d:"M6 12h2",key:"32wvfc"}],["path",{d:"M6 8h2",key:"30oboj"}]]);/** 148 * @license lucide-react v0.453.0 - ISC 149 * 150 * This source code is licensed under the ISC license. 151 * See the LICENSE file in the root directory of this source tree. 152 */const Pi=se("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"}]]);/** 153 * @license lucide-react v0.453.0 - ISC 154 * 155 * This source code is licensed under the ISC license. 156 * See the LICENSE file in the root directory of this source tree. 157 */const RP=se("Boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);/** 158 * @license lucide-react v0.453.0 - ISC 159 * 160 * This source code is licensed under the ISC license. 161 * See the LICENSE file in the root directory of this source tree. 162 */const vre=se("Braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);/** 163 * @license lucide-react v0.453.0 - ISC 164 * 165 * This source code is licensed under the ISC license. 166 * See the LICENSE file in the root directory of this source tree. 167 */const Sre=se("BriefcaseBusiness",[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2",key:"1ksdt3"}],["path",{d:"M22 13a18.15 18.15 0 0 1-20 0",key:"12hx5q"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/** 168 * @license lucide-react v0.453.0 - ISC 169 * 170 * This source code is licensed under the ISC license. 171 * See the LICENSE file in the root directory of this source tree. 172 */const jre=se("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}
172],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** 173 * @license lucide-react v0.453.0 - ISC 174 * 175 * This source code is licensed under the ISC license. 176 * See the LICENSE file in the root directory of this source tree. 177 */const Fa=se("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);/** 178 * @license lucide-react v0.453.0 - ISC 179 * 180 * This source code is licensed under the ISC license. 181 * See the LICENSE file in the root directory of this source tree. 182 */const wre=se("CalendarPlus",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 13V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8",key:"3spt84"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M16 19h6",key:"xwg31i"}],["path",{d:"M19 16v6",key:"tddt3s"}]]);/** 183 * @license lucide-react v0.453.0 - ISC 184 * 185 * This source code is licensed under the ISC license. 186 * See the LICENSE file in the root directory of this source tree. 187 */const kre=se("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/** 188 * @license lucide-react v0.453.0 - ISC 189 * 190 * This source code is licensed under the ISC license. 191 * See the LICENSE file in the root directory of this source tree. 192 */const $x=se("ChartNoAxesColumn",[["line",{x1:"18",x2:"18",y1:"20",y2:"10",key:"1xfpm4"}],["line",{x1:"12",x2:"12",y1:"20",y2:"4",key:"be30l9"}],["line",{x1:"6",x2:"6",y1:"20",y2:"14",key:"1r4le6"}]]);/** 193 * @license lucide-react v0.453.0 - ISC 194 * 195 * This source code is licensed under the ISC license. 196 * See the LICENSE file in the root directory of this source tree. 197 */const yc=se("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 198 * @license lucide-react v0.453.0 - ISC 199 * 200 * This source code is licensed under the ISC license. 201 * See the LICENSE file in the root directory of this source tree. 202 */const yi=se("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 203 * @license lucide-react v0.453.0 - ISC 204 * 205 * This source code is licensed under the ISC license. 206 * See the LICENSE file in the root directory of this source tree. 207 */const Pn=se("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** 208 * @license lucide-react v0.453.0 - ISC 209 * 210 * This source code is licensed under the ISC license. 211 * See the LICENSE file in the root directory of this source tree. 212 */const Le=se("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 213 * @license lucide-react v0.453.0 - ISC 214 * 215 * This source code is licensed under the ISC license. 216 * See the LICENSE file in the root directory of this source tree. 217 */const Jf=se("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** 218 * @license lucide-react v0.453.0 - ISC 219 * 220 * This source code is licensed under the ISC license. 221 * See the LICENSE file in the root directory of this source tree. 222 */const hy=se("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** 223 * @license lucide-react v0.453.0 - ISC 224 * 225 * This source code is licensed under the ISC license. 226 * See the LICENSE file in the root directory of this source tree. 227 */const ja=se("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 228 * @license lucide-react v0.453.0 - ISC 229 * 230 * This source code is licensed under the ISC license. 231 * See the LICENSE file in the root directory of this source tree. 232 */const Ga=se("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 233 * @license lucide-react v0.453.0 - ISC 234 * 235 * This source code is licensed under the ISC license. 236 * See the LICENSE file in the root directory of this source tree. 237 */const Pre=se("CircleDashed",[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]);/** 238 * @license lucide-react v0.453.0 - ISC 239 * 240 * This source code is licensed under the ISC license. 241 * See the LICENSE file in the root directory of this source tree. 242 */const Tre=se("CircleDot",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]);/** 243 * @license lucide-react v0.453.0 - ISC 244 * 245 * This source code is licensed under the ISC license. 246 * See the LICENSE file in the root directory of this source tree. 247 */const ru=se("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/** 248 * @license lucide-react v0.453.0 - ISC 249 * 250 * This source code is licensed under the ISC license. 251 * See the LICENSE file in the root directory of this source tree. 252 */const $W=se("Clock3",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16.5 12",key:"1aq6pp"}]]);/** 253 * @license lucide-react v0.453.0 - ISC 254 * 255 * This source code is licensed under the ISC license. 256 * See the LICENSE file in the root directory of this source tree. 257 */const oA=se("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 258 * @license lucide-react v0.453.0 - ISC 259 * 260 * This source code is licensed under the ISC license. 261 * See the LICENSE file in the root directory of this source tree. 262 */const FW=se("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/** 263 * @license lucide-react v0.453.0 - ISC 264 * 265 * This source code is licensed under the ISC license. 266 * See the LICENSE file in the root directory of this source tree. 267 */const Are=se("Coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]]);/** 268 * @license lucide-react v0.453.0 - ISC 269 * 270 * This source code is licensed under the ISC license. 271 * See the LICENSE file in the root directory of this source tree. 272 */const lA=se("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",ke
272y:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 273 * @license lucide-react v0.453.0 - ISC 274 * 275 * This source code is licensed under the ISC license. 276 * See the LICENSE file in the root directory of this source tree. 277 */const an=se("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"}]]);/** 278 * @license lucide-react v0.453.0 - ISC 279 * 280 * This source code is licensed under the ISC license. 281 * See the LICENSE file in the root directory of this source tree. 282 */const HW=se("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/** 283 * @license lucide-react v0.453.0 - ISC 284 * 285 * This source code is licensed under the ISC license. 286 * See the LICENSE file in the root directory of this source tree. 287 */const my=se("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** 288 * @license lucide-react v0.453.0 - ISC 289 * 290 * This source code is licensed under the ISC license. 291 * See the LICENSE file in the root directory of this source tree. 292 */const zre=se("Expand",[["path",{d:"m21 21-6-6m6 6v-4.8m0 4.8h-4.8",key:"1c15vz"}],["path",{d:"M3 16.2V21m0 0h4.8M3 21l6-6",key:"1fsnz2"}],["path",{d:"M21 7.8V3m0 0h-4.8M21 3l-6 6",key:"hawz9i"}],["path",{d:"M3 7.8V3m0 0h4.8M3 3l6 6",key:"u9ee12"}]]);/** 293 * @license lucide-react v0.453.0 - ISC 294 * 295 * This source code is licensed under the ISC license. 296 * See the LICENSE file in the root directory of this source tree. 297 */const ve=se("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/** 298 * @license lucide-react v0.453.0 - ISC 299 * 300 * This source code is licensed under the ISC license. 301 * See the LICENSE file in the root directory of this source tree. 302 */const qW=se("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** 303 * @license lucide-react v0.453.0 - ISC 304 * 305 * This source code is licensed under the ISC license. 306 * See the LICENSE file in the root directory of this source tree. 307 */const $u=se("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 308 * @license lucide-react v0.453.0 - ISC 309 * 310 * This source code is licensed under the ISC license. 311 * See the LICENSE file in the root directory of this source tree. 312 */const Cre=se("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/** 313 * @license lucide-react v0.453.0 - ISC 314 * 315 * This source code is licensed under the ISC license. 316 * See the LICENSE file in the root directory of this source tree. 317 */const Ere=se("FilePenLine",[["path",{d:"m18 5-2.414-2.414A2 2 0 0 0 14.172 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2",key:"142zxg"}],["path",{d:"M21.378 12.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"2t3380"}],["path",{d:"M8 18h1",key:"13wk12"}]]);/** 318 * @license lucide-react v0.453.0 - ISC 319 * 320 * This source code is licensed under the ISC license. 321 * See the LICENSE file in the root directory of this source tree. 322 */const s0=se("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"}]]);/** 323 * @license lucide-react v0.453.0 - ISC 324 * 325 * This source code is licensed under the ISC license. 326 * See the LICENSE file in the root directory of this source tree. 327 */const Ore=se("FilterX",[["path",{d:"M13.013 3H2l8 9.46V19l4 2v-8.54l.9-1.055",key:"1fi1da"}],["path",{d:"m22 3-5 5",key:"12jva0"}],["path",{d:"m17 3 5 5",key:"k36vhe"}]]);/** 328 * @license lucide-react v0.453.0 - ISC 329 * 330 * This source code is licensed under the ISC license. 331 * See the LICENSE file in the root directory of this source tree. 332 */const UW=se("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/** 333 * @license lucide-react v0.453.0 - ISC 334 * 335 * This source code is licensed under the ISC license. 336 * See the LICENSE file in the root directory of this source tree. 337 */const eh=se("FlaskConical",[["path",{d:"M10 2v7.527a2 2 0 0 1-.211.896L4.72 20.55a1 1 0 0 0 .9 1.45h12.76a1 1 0 0 0 .9-1.45l-5.069-10.127A2 2 0 0 1 14 9.527V2",key:"pzvekw"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M7 16h10",key:"wp8him"}]]);/** 338 * @license lucide-react v0.453.0 - ISC 339 * 340 * This source code is licensed under the ISC license. 341 * See the LICENSE file in the root directory of this source tree. 342 */const Mre=se("FolderHeart",[["path",{d:"M11 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v1.5",key:"6hud8k"}],["path",{d:"M13.9 17.45c-1.2-1.2-1.14-2.8-.2-3.73a2.43 2.43 0 0 1 3.44 0l.36.34.34-.34a2.43 2.43 0 0 1 3.45-.
34201c.95.95 1 2.53-.2 3.74L17.5 21Z",key:"wpff58"}]]);/** 343 * @license lucide-react v0.453.0 - ISC 344 * 345 * This source code is licensed under the ISC license. 346 * See the LICENSE file in the root directory of this source tree. 347 */const sE=se("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/** 348 * @license lucide-react v0.453.0 - ISC 349 * 350 * This source code is licensed under the ISC license. 351 * See the LICENSE file in the root directory of this source tree. 352 */const GW=se("GalleryVerticalEnd",[["path",{d:"M7 2h10",key:"nczekb"}],["path",{d:"M5 6h14",key:"u2x4p"}],["rect",{width:"18",height:"12",x:"3",y:"10",rx:"2",key:"l0tzu3"}]]);/** 353 * @license lucide-react v0.453.0 - ISC 354 * 355 * This source code is licensed under the ISC license. 356 * See the LICENSE file in the root directory of this source tree. 357 */const iE=se("Gavel",[["path",{d:"m14.5 12.5-8 8a2.119 2.119 0 1 1-3-3l8-8",key:"15492f"}],["path",{d:"m16 16 6-6",key:"vzrcl6"}],["path",{d:"m8 8 6-6",key:"18bi4p"}],["path",{d:"m9 7 8 8",key:"5jnvq1"}],["path",{d:"m21 11-8-8",key:"z4y7zo"}]]);/** 358 * @license lucide-react v0.453.0 - ISC 359 * 360 * This source code is licensed under the ISC license. 361 * See the LICENSE file in the root directory of this source tree. 362 */const Nre=se("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/** 363 * @license lucide-react v0.453.0 - ISC 364 * 365 * This source code is licensed under the ISC license. 366 * See the LICENSE file in the root directory of this source tree. 367 */const cA=se("GitCompare",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["path",{d:"M11 18H8a2 2 0 0 1-2-2V9",key:"19pyzm"}]]);/** 368 * @license lucide-react v0.453.0 - ISC 369 * 370 * This source code is licensed under the ISC license. 371 * See the LICENSE file in the root directory of this source tree. 372 */const VW=se("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/** 373 * @license lucide-react v0.453.0 - ISC 374 * 375 * This source code is licensed under the ISC license. 376 * See the LICENSE file in the root directory of this source tree. 377 */const ba=se("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/** 378 * @license lucide-react v0.453.0 - ISC 379 * 380 * This source code is licensed under the ISC license. 381 * See the LICENSE file in the root directory of this source tree. 382 */const Rre=se("Heading1",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"m17 12 3-2v8",key:"1hhhft"}]]);/** 383 * @license lucide-react v0.453.0 - ISC 384 * 385 * This source code is licensed under the ISC license. 386 * See the LICENSE file in the root directory of this source tree. 387 */const Dre=se("Heading2",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1",key:"9jr5yi"}]]);/** 388 * @license lucide-react v0.453.0 - ISC 389 * 390 * This source code is licensed under the ISC license. 391 * See the LICENSE file in the root directory of this source tree. 392 */const _re=se("Heading3",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2",key:"68ncm8"}],["path",{d:"M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2",key:"1ejuhz"}]]);/** 393 * @license lucide-react v0.453.0 - ISC 394 * 395 * This source code is licensed under the ISC license. 396 * See the LICENSE file in the root directory of this source tree. 397 */const Fx=se("Headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);/** 398 * @license lucide-react v0.453.0 - ISC 399 * 400 * This source code is licensed under the ISC license. 401 * See the LICENSE file in the root directory of this source tree. 402 */const Qt=se("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/** 403 * @license lucide-react v0.453.0 - ISC 404 * 405 * This source code is licensed under the ISC license. 406 * See the LICENSE file in the root directory of this source tree. 407 */const Qg=se("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/** 408 * @license lucide-react v0.453.0 - ISC 409 * 410 * This source code is licensed under the ISC license. 411 * See the LICENSE file in the root directory of this source tree. 412 */const Ire=se("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]]);/** 413 * @license lucide-react v0.453.0 - ISC 414 * 415 * This source code is licensed under the ISC license. 416 * See the LICENSE file in the root directory of this source tree. 417 */const oE=se("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);/** 418 * @license lucide-react v0.453.0 - ISC 419 * 420 * This source code is licensed under the ISC license. 421 * See the LICENSE file in the root directory of this source tree. 422 */const i0=se("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/** 423 * @license lucide-react v0.453.0 - ISC 424 * 425 * This source code is licensed under the ISC license. 426 * See the LICENSE file in the root directory of this source tree. 427 */const Bre=se("Italic",[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]]);/** 428 * @license lucide-react v0.453.0 - ISC 429 * 430 * This source code is licensed under the ISC license. 431 * See the LICENSE file in the root directory of this source tree. 432 */const th=se("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/** 433 * @license lucide-react v0.453.0 - ISC 434 * 435 * This source code is licensed under the ISC license. 436 * See the LICENSE file in the root directory of this source tree. 437 */const dA=se("Landmark",[["line",{x1:"3",x2:"21",y1:"22",y2:"22",key:"j8o0r"}],["line",{x1:"6",x2:"6",y1:"18",y2:"11",key:"10tf0k"}],["line",{x1:"10",x2:"10",y1:"18",y2:"11",key:"54lgf6"}],["line",{x1:"14",x2:"14",y1:"18",y2:"11",key:"380y"}],["line",{x1:"18",x2:"18",y1:"18",y2:"11",key:"1kevvc"}],["polygon",{points:"12 2 20 7 4 7",key:"jkujk7"}]]);/** 438 * @license lucide-react v0.453.0 - ISC 439 * 440 * This source code is licensed under the ISC license. 441 * See the LICENSE file in the root directory of this source tree. 442 */const rh=se("Layers3",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m6.08 9.5-3.5 1.6a1 1 0 0 0 0 1.81l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9a1 1 0 0 0 0-1.83l-3.5-1.59",key:"1e5n1m"}],["path",{d:"m6.08 14.5-3.5 1.6a1 1 0 0 0 0 1.81l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9a1 1 0 0 0 0-1.83l-3.5-1.59",key:"1iwflc"}]]);/** 443 * @license lucide-react v0.453.0 - ISC 444 * 445 * This source code is licensed under the ISC license. 446 * See the LICENSE file in the root directory of this source tree. 447 */const pg=se("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/** 448 * @license lucide-react v0.453.0 - ISC 449 * 450 * This source code is licensed under the ISC license. 451 * See the LICENSE file in the root directory of this source tree.
452 */const XW=se("LibraryBig",[["rect",{width:"8",height:"18",x:"3",y:"3",rx:"1",key:"oynpb5"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M20.4 18.9c.2.5-.1 1.1-.6 1.3l-1.9.7c-.5.2-1.1-.1-1.3-.6L11.1 5.1c-.2-.5.1-1.1.6-1.3l1.9-.7c.5-.2 1.1.1 1.3.6Z",key:"1qboyk"}]]);/** 453 * @license lucide-react v0.453.0 - ISC 454 * 455 * This source code is licensed under the ISC license. 456 * See the LICENSE file in the root directory of this source tree. 457 */const Lre=se("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/** 458 * @license lucide-react v0.453.0 - ISC 459 * 460 * This source code is licensed under the ISC license. 461 * See the LICENSE file in the root directory of this source tree. 462 */const xy=se("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"}]]);/** 463 * @license lucide-react v0.453.0 - ISC 464 * 465 * This source code is licensed under the ISC license. 466 * See the LICENSE file in the root directory of this source tree. 467 */const Wre=se("ListOrdered",[["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]]);/** 468 * @license lucide-react v0.453.0 - ISC 469 * 470 * This source code is licensed under the ISC license. 471 * See the LICENSE file in the root directory of this source tree. 472 */const $re=se("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);/** 473 * @license lucide-react v0.453.0 - ISC 474 * 475 * This source code is licensed under the ISC license. 476 * See the LICENSE file in the root directory of this source tree. 477 */const Va=se("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 478 * @license lucide-react v0.453.0 - ISC 479 * 480 * This source code is licensed under the ISC license. 481 * See the LICENSE file in the root directory of this source tree. 482 */const DP=se("Loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]);/** 483 * @license lucide-react v0.453.0 - ISC 484 * 485 * This source code is licensed under the ISC license. 486 * See the LICENSE file in the root directory of this source tree. 487 */const yy=se("LockKeyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]]);/** 488 * @license lucide-react v0.453.0 - ISC 489 * 490 * This source code is licensed under the ISC license. 491 * See the LICENSE file in the root directory of this source tree. 492 */const _P=se("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]]);/** 493 * @license lucide-react v0.453.0 - ISC 494 * 495 * This source code is licensed under the ISC license. 496 * See the LICENSE file in the root directory of this source tree. 497 */const Fre=se("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/** 498 * @license lucide-react v0.453.0 - ISC 499 * 500 * This source code is licensed under the ISC license. 501 * See the LICENSE file in the root directory of this source tree. 502 */const di=se("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"}]]);/** 503 * @license lucide-react v0.453.0 - ISC 504 * 505 * This source code is licensed under the ISC license. 506 * See the LICENSE file in the root directory of this source tree.
507 */const by=se("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"}]]);/** 508 * @license lucide-react v0.453.0 - ISC 509 * 510 * This source code is licensed under the ISC license. 511 * See the LICENSE file in the root directory of this source tree. 512 */const nu=se("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]);/** 513 * @license lucide-react v0.453.0 - ISC 514 * 515 * This source code is licensed under the ISC license. 516 * See the LICENSE file in the root directory of this source tree. 517 */const Hre=se("MessageSquareWarning",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M12 7v2",key:"stiyo7"}],["path",{d:"M12 13h.01",key:"y0uutt"}]]);/** 518 * @license lucide-react v0.453.0 - ISC 519 * 520 * This source code is licensed under the ISC license. 521 * See the LICENSE file in the root directory of this source tree. 522 */const qre=se("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/** 523 * @license lucide-react v0.453.0 - ISC 524 * 525 * This source code is licensed under the ISC license. 526 * See the LICENSE file in the root directory of this source tree. 527 */const Ure=se("MessagesSquare",[["path",{d:"M14 9a2 2 0 0 1-2 2H6l-4 4V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2z",key:"p1xzt8"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1",key:"1cx29u"}]]);/** 528 * @license lucide-react v0.453.0 - ISC 529 * 530 * This source code is licensed under the ISC license. 531 * See the LICENSE file in the root directory of this source tree. 532 */const Gre=se("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/** 533 * @license lucide-react v0.453.0 - ISC 534 * 535 * This source code is licensed under the ISC license. 536 * See the LICENSE file in the root directory of this source tree. 537 */const Vre=se("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/** 538 * @license lucide-react v0.453.0 - ISC 539 * 540 * This source code is licensed under the ISC license. 541 * See the LICENSE file in the root directory of this source tree. 542 */const Xre=se("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"}]]);/** 543 * @license lucide-react v0.453.0 - ISC 544 * 545 * This source code is licensed under the ISC license. 546 * See the LICENSE file in the root directory of this source tree. 547 */const Do=se("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/** 548 * @license lucide-react v0.453.0 - ISC 549 * 550 * This source code is licensed under the ISC license. 551 * See the LICENSE file in the root directory of this source tree. 552 */const Kre=se("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/** 553 * @license lucide-react v0.453.0 - ISC 554 * 555 * This source code is licensed under the ISC license. 556 * See the LICENSE file in the root directory of this source tree. 557 */const Qre=se("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]);/** 558 * @license lucide-react v0.453.0 - ISC 559 * 560 * This source code is licensed under the ISC license. 561 * See the LICENSE file in the root directory of this source tree. 562 */const Yre=se("Pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);/** 563 * @license lucide-react v0.453.0 - ISC 564 * 565 * This source code is licensed under the ISC license. 566 * See the LICENSE file in the root directory of this source tree. 567 */const Zre=se("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/** 568 * @license lucide-react v0.453.0 - ISC 569 * 570 * This source code is licensed under the ISC license. 571 * See the LICENSE file in the root directory of this source tree. 572 */const Jre=se("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** 573 * @license lucide-react v0.453.0 - ISC 574 * 575 * This source code is licensed under the ISC license. 576 * See the LICENSE file in the root directory of this source tree. 577 */const au=se("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** 578 * @license lucide-react v0.453.0 - ISC 579 * 580 * This source code is licensed under the ISC license. 581 * See the LICENSE file in the root directory of this source tree. 582 */const ene=se("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/** 583 * @license lucide-react v0.453.0 - ISC 584 * 585 * This source code is licensed under the ISC license. 586 * See the LICENSE file in the root directory of this source tree. 587 */const tne=se("Redo",[["path",{d:"M21 7v6h-6",key:"3ptur4"}],["path",{d:"M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7",key:"1kgawr"}]]);/** 588 * @license lucide-react v0.453.0 - ISC 589 * 590 * This source code is licensed under the ISC license. 591 * See the LICENSE file in the root directory of this source tree. 592 */const Fd=se("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** 593 * @license lucide-react v0.453.0 - ISC 594 * 595 * This source code is licensed under the ISC license. 596 * See the LICENSE file in the root directory of this source tree. 597 */const rne=se("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/** 598 * @license lucide-react v0.453.0 - ISC 599 * 600 * This source code is licensed under the ISC license. 601 * See the LICENSE file in the root directory of this source tree. 602 */const nne=se("Route",[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]]);/** 603 * @license lucide-react v0.453.0 - ISC 604 * 605 * This source code is licensed under the ISC license. 606 * See the LICENSE file in the root directory of this source tree. 607 */const uA=se("Rss",[["path",{d:"M4 11a9 9 0 0 1 9 9",key:"pv89mb"}],["path",{d:"M4 4a16 16 0 0 1 16 16",key:"k0647b"}],["circle",{cx:"5",cy:"19",r:"1",key:"bfqh0e"}]]);/** 608 * @license lucide-react v0.453.0 - ISC 609 * 610 * This source code is licensed under the ISC license. 611 * See the LICENSE file in the root directory of this source tree. 612 */const nh=se("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/** 613 * @license lucide-react v0.453.0 - ISC 614 * 615 * This source code is licensed under the ISC license. 616 * See the LICENSE file in the root directory of this source tree. 617 */const ft=se("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 618 * @license lucide-react v0.453.0 - ISC 619 * 620 * This source code is licensed under the ISC license. 621 * See the LICENSE file in the root directory of this source tree. 622 */const wa=se("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/** 623 * @license lucide-react v0.453.0 - ISC 624 * 625 * This source code is licensed under the ISC license. 626 * See the LICENSE file in the root directory of this source tree. 627 */const ane=se("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/** 628 * @license lucide-react v0.453.0 - ISC 629 * 630 * This source code is licensed under the ISC license. 631 * See the LICENSE file in the root directory of this source tree. 632 */const sne=se("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 633 * @license lucide-react v0.453.0 - ISC 634 * 635 * This source code is licensed under the ISC license. 636 * See the LICENSE file in the root directory of this source tree. 637 */const bc=se("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/** 638 * @license lucide-react v0.453.0 - ISC 639 * 640 * This source code is licensed under the ISC license. 641 * See the LICENSE file in the root directory of this source tree. 642 */const vy=se("ShieldAlert",[["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",ke
642y:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/** 643 * @license lucide-react v0.453.0 - ISC 644 * 645 * This source code is licensed under the ISC license. 646 * See the LICENSE file in the root directory of this source tree. 647 */const Un=se("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"}]]);/** 648 * @license lucide-react v0.453.0 - ISC 649 * 650 * This source code is licensed under the ISC license. 651 * See the LICENSE file in the root directory of this source tree. 652 */const ec=se("Shield",[["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"}]]);/** 653 * @license lucide-react v0.453.0 - ISC 654 * 655 * This source code is licensed under the ISC license. 656 * See the LICENSE file in the root directory of this source tree. 657 */const ine=se("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/** 658 * @license lucide-react v0.453.0 - ISC 659 * 660 * This source code is licensed under the ISC license. 661 * See the LICENSE file in the root directory of this source tree. 662 */const one=se("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);/** 663 * @license lucide-react v0.453.0 - ISC 664 * 665 * This source code is licensed under the ISC license. 666 * See the LICENSE file in the root directory of this source tree. 667 */const Fu=se("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/** 668 * @license lucide-react v0.453.0 - ISC 669 * 670 * This source code is licensed under the ISC license. 671 * See the LICENSE file in the root directory of this source tree. 672 */const KW=se("Sprout",[["path",{d:"M7 20h10",key:"e6iznv"}],["path",{d:"M10 20c5.5-2.5.8-6.4 3-10",key:"161w41"}],["path",{d:"M9.5 9.4c1.1.8 1.8 2.2 2.3 3.7-2 .4-3.5.4-4.8-.3-1.2-.6-2.3-1.9-3-4.2 2.8-.5 4.4 0 5.5.8z",key:"9gtqwd"}],["path",{d:"M14.1 6a7 7 0 0 0-1.1 4c1.9-.1 3.3-.6 4.3-1.4 1-1 1.6-2.3 1.7-4.6-2.7.1-4 1-4.9 2z",key:"bkxnd2"}]]);/** 673 * @license lucide-react v0.453.0 - ISC 674 * 675 * This source code is licensed under the ISC license. 676 * See the LICENSE file in the root directory of this source tree. 677 */const QW=se("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 678 * @license lucide-react v0.453.0 - ISC 679 * 680 * This source code is licensed under the ISC license. 681 * See the LICENSE file in the root directory of this source tree. 682 */const lne=se("StarOff",[["path",{d:"M8.34 8.34 2 9.27l5 4.87L5.82 21 12 17.77 18.18 21l-.59-3.43",ke
682y:"16m0ql"}],["path",{d:"M18.42 12.76 22 9.27l-6.91-1L12 2l-1.44 2.91",key:"1vt8nq"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/** 683 * @license lucide-react v0.453.0 - ISC 684 * 685 * This source code is licensed under the ISC license. 686 * See the LICENSE file in the root directory of this source tree. 687 */const o0=se("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/** 688 * @license lucide-react v0.453.0 - ISC 689 * 690 * This source code is licensed under the ISC license. 691 * See the LICENSE file in the root directory of this source tree. 692 */const cne=se("Store",[["path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7",key:"ztvudi"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4",key:"2ebpfo"}],["path",{d:"M2 7h20",key:"1fcdvo"}],["path",{d:"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7",key:"6c3vgh"}]]);/** 693 * @license lucide-react v0.453.0 - ISC 694 * 695 * This source code is licensed under the ISC license. 696 * See the LICENSE file in the root directory of this source tree. 697 */const dne=se("Strikethrough",[["path",{d:"M16 4H9a3 3 0 0 0-2.83 4",key:"43sutm"}],["path",{d:"M14 12a4 4 0 0 1 0 8H6",key:"nlfj13"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}]]);/** 698 * @license lucide-react v0.453.0 - ISC 699 * 700 * This source code is licensed under the ISC license. 701 * See the LICENSE file in the root directory of this source tree. 702 */const tc=se("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/** 703 * @license lucide-react v0.453.0 - ISC 704 * 705 * This source code is licensed under the ISC license. 706 * See the LICENSE file in the root directory of this source tree. 707 */const une=se("TestTubeDiagonal",[["path",{d:"M21 7 6.82 21.18a2.83 2.83 0 0 1-3.99-.01a2.83 2.83 0 0 1 0-4L17 3",key:"1ub6xw"}],["path",{d:"m16 2 6 6",key:"1gw87d"}],["path",{d:"M12 16H4",key:"1cjfip"}]]);/** 708 * @license lucide-react v0.453.0 - ISC 709 * 710 * This source code is licensed under the ISC license. 711 * See the LICENSE file in the root directory of this source tree. 712 */const pne=se("TimerReset",[["path",{d:"M10 2h4",key:"n1abiw"}],["path",{d:"M12 14v-4",key:"1evpnu"}],["path",{d:"M4 13a8 8 0 0 1 8-7 8 8 0 1 1-5.3 14L4 17.6",key:"1ts96g"}],["path",{d:"M9 17H4v5",key:"8t5av"}]]);/** 713 * @license lucide-react v0.453.0 - ISC 714 * 715 * This source code is licensed under the ISC license. 716 * See the LICENSE file in the root directory of this source tree. 717 */const pA=se("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/** 718 * @license lucide-react v0.453.0 - ISC 719 * 720 * This source code is licensed under the ISC license. 721 * See the LICENSE file in the root directory of this source tree. 722 */const Ha=se("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/** 723 * @license lucide-react v0.453.0 - ISC 724 * 725 * This source code is licensed under the ISC license. 726 * See the LICENSE file in the root directory of this source tree. 727 */const cr=se("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** 728 * @license lucide-react v0.453.0 - ISC 729 * 730 * This source code is licensed under the ISC license. 731 * See the LICENSE file in the root directory of this source tree. 732 */const gne=se("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 733 * @license lucide-react v0.453.0 - ISC 734 * 735 * This source code is licensed under the ISC license. 736 * See the LICENSE file in the root directory of this source tree. 737 */const fne=se("Trophy",[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}
737],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]]);/** 738 * @license lucide-react v0.453.0 - ISC 739 * 740 * This source code is licensed under the ISC license. 741 * See the LICENSE file in the root directory of this source tree. 742 */const vc=se("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);/** 743 * @license lucide-react v0.453.0 - ISC 744 * 745 * This source code is licensed under the ISC license. 746 * See the LICENSE file in the root directory of this source tree. 747 */const hne=se("Undo",[["path",{d:"M3 7v6h6",key:"1v2h90"}],["path",{d:"M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13",key:"1r6uu6"}]]);/** 748 * @license lucide-react v0.453.0 - ISC 749 * 750 * This source code is licensed under the ISC license. 751 * See the LICENSE file in the root directory of this source tree. 752 */const mne=se("UserRound",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);/** 753 * @license lucide-react v0.453.0 - ISC 754 * 755 * This source code is licensed under the ISC license. 756 * See the LICENSE file in the root directory of this source tree. 757 */const xne=se("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** 758 * @license lucide-react v0.453.0 - ISC 759 * 760 * This source code is licensed under the ISC license. 761 * See the LICENSE file in the root directory of this source tree. 762 */const Sc=se("UsersRound",[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]]);/** 763 * @license lucide-react v0.453.0 - ISC 764 * 765 * This source code is licensed under the ISC license. 766 * See the LICENSE file in the root directory of this source tree. 767 */const su=se("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** 768 * @license lucide-react v0.453.0 - ISC 769 * 770 * This source code is licensed under the ISC license. 771 * See the LICENSE file in the root directory of this source tree. 772 */const yne=se("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);/** 773 * @license lucide-react v0.453.0 - ISC 774 * 775 * This source code is licensed under the ISC license. 776 * See the LICENSE file in the root directory of this source tree. 777 */const bne=se("VolumeX",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]]);/** 778 * @license lucide-react v0.453.0 - ISC 779 * 780 * This source code is licensed under the ISC license. 781 * See the LICENSE file in the root directory of this source tree. 782 */const l0=se("Vote",[["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}],["path",{d:"M5 7c0-1.1.9-2 2-2h10a2 2 0 0 1 2 2v12H5V7Z",key:"1ezoue"}],["path",{d:"M22 19H2",key:"nuriw5"}]]);/** 783 * @license lucide-react v0.453.0 - ISC 784 * 785 * This source code is licensed under the ISC license. 786 * See the LICENSE file in the root directory of this source tree. 787 */const Yg=se("WalletCards",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2",key:"4125el"}],["path",{d:"M3 11h3c.8 0 1.6.3 2.1.9l1.1.9c1.6 1.6 4.1 1.6 5.7 0l1.1-.9c.5-.5 1.3-.9 2.1-.9H21",key:"1dpki6"}]]);/** 788 * @license lucide-react v0.453.0 - ISC 789 * 790 * This source code is licensed under the ISC license. 791 * See the LICENSE file in the root directory of this source tree. 792 */const vne=se("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"}]]);/** 793 * @license lucide-react v0.453.0 - ISC 794 * 795 * This source code is licensed under the ISC license. 796 * See the LICENSE file in the root directory of this source tree. 797 */const xr=se("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
797],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 798 * @license lucide-react v0.453.0 - ISC 799 * 800 * This source code is licensed under the ISC license. 801 * See the LICENSE file in the root directory of this source tree. 802 */const ko=se("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);class Sne extends E.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}render(){return this.state.hasError?a.jsx("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:27",className:"flex items-center justify-center min-h-screen p-8 bg-background",children:a.jsxs("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:28",className:"flex flex-col items-center w-full max-w-2xl p-8",children:[a.jsx(gne,{"data-loc":"client/src/components/ErrorBoundary.tsx:29",size:48,className:"text-destructive mb-6 flex-shrink-0"}),a.jsx("h2",{"data-loc":"client/src/components/ErrorBoundary.tsx:34",className:"text-xl mb-4",children:"An unexpected error occurred."}),a.jsx("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:36",className:"p-4 w-full rounded bg-muted overflow-auto mb-6",children:a.jsx("pre",{"data-loc":"client/src/components/ErrorBoundary.tsx:37",className:"text-sm text-muted-foreground whitespace-break-spaces",children:this.state.error?.stack})}),a.jsxs("button",{"data-loc":"client/src/components/ErrorBoundary.tsx:42",onClick:()=>window.location.reload(),className:Wte("flex items-center gap-2 px-4 py-2 rounded-lg","bg-primary text-primary-foreground","hover:opacity-90 cursor-pointer"),children:[a.jsx(rne,{"data-loc":"client/src/components/ErrorBoundary.tsx:50",size:16}),"Reload Page"]})]})}):this.props.children}}const jne=E.createContext(void 0);function wne({children:e,defaultTheme:t="light",switchable:r=!1}){const[n,s]=E.useState(()=>r&&localStorage.getItem("theme")||t);E.useEffect(()=>{const o=document.documentElement;n==="dark"?o.classList.add("dark"):o.classList.remove("dark"),r&&localStorage.setItem("theme",n)},[n,r]);const i=r?()=>{s(o=>o==="light"?"dark":"light")}:void 0;return a.jsx(jne.Provider,{"data-loc":"client/src/contexts/ThemeContext.tsx:52",value:{theme:n,toggleTheme:i,switchable:r},children:e})}const c0=["zh","ko","ja","de","es","fr","pt","ru","ar","tr"],hs={zh:"䏿",ko:"íêµì´",ja:"æ¥æ¬èª",de:"Deutsch",es:"Español",fr:"Français",pt:"Português",ru:"Ð ÑÑÑкий",ar:"Ø§ÙØ¹Ø±Ø¨ÙØ©",tr:"Türkçe"},YW={zh:"Chinese",ko:"Korean",ja:"Japanese",de:"German",es:"Spanish",fr:"French",pt:"Portuguese",ru:"Russian",ar:"Arabic",tr:"Turkish"},_o={zh:"ð¨ð³",ko:"ð°ð·",ja:"ð¯ðµ",de:"ð©ðª",es:"ðªð¸",fr:"ð«ð·",pt:"ð§ð·",ru:"ð·ðº",ar:"ð¸ð¦",tr:"ð¹ð·"},kne=["ar"];function Sy(e){return c0.includes(e)}const Pne="modulepreload",Tne=function(e){return"/"+e},lE={},cE=function(t,r,n){let s=Promise.resolve();if(r&&r.length>0){let d=function(u){return Promise.all(u.map(g=>Promise.resolve(g).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=o?.nonce||o?.getAttribute("nonce");s=d(r.map(u=>{if(u=Tne(u),u in lE)return;lE[u]=!0;const g=u.endsWith(".css"),f=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${f}`))return;const m=document.createElement("link");if(m.rel=g?"stylesheet":Pne,g||(m.as="script"),m.crossOrigin="",m.href=u,l&&m.setAttribute("nonce",l),document.head.appendChild(m),g)return new Promise((y,S)=>{m.addEventListener("load",y),m.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${u}`)))})}))}function i(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return s.then(o=>{for(const l of o||[])l.status==="rejected"&&i(l.reason);return t().catch(i)})},Hx="tz1VjHjMkdWdrqbWLswcd6QentEgqexSd27Q",Ane=`https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=${Hx}&bgcolor=ffffff&color=000000&margin=10`,zne=[1,5,10,25];let X2=null,dE=null;async function Cne(){if(!X2){const{TezosToolkit:e}=await cE(async()=>{const{TezosToolkit:s}=await import("./taquito.es6-DBx45n6_.js").then(i=>i.a5);return{TezosToolkit:s}},[]),{BeaconWallet:t}=await cE(async()=>{const{BeaconWallet:s}=await import("./taquito-beacon-wallet.es6-B8_oul8V.js");return{BeaconWallet:s}},__vite__mapDeps([0,1])),r=new e("https://rpc.tzbeta.net"),n=new t({name:"XTZ.News",network:{type:"mainnet"}});r.setWalletProvider(n),X2=r,dE=n}return{Tezos:X2,wallet:dE}}function Zg({variant:e="header"}){const[t,r]=E.useState(!1),[n,s]=E.useState("5"),[i,o]=E.useState("idle"),[l,d]=E.useState(null),u=e==="article",g=()=>{navigator.clipboard.writeText(Hx).then(()=>{Ee.success("Wallet address copied!")}
802).catch(()=>{Ee.error("Could not copy â please copy manually.")})},f=E.useCallback(async()=>{const y=parseFloat(n);if(!y||y<=0){Ee.error("Please enter a valid amount.");return}try{o("connecting");const{Tezos:S,wallet:b}=await Cne();await b.client.getActiveAccount()||await b.requestPermissions(),o("sending");const j=await S.wallet.transfer({to:Hx,amount:y}).send();d(j.opHash),o("success"),Ee.success("Thank you for your donation! ð")}catch(S){console.error("Donation error:",S);const b=(S?.message||S?.title||S?.description||JSON.stringify(S)||"").toLowerCase();if(b.includes("cancel")||b.includes("dismiss")||b.includes("abort")||b.includes("user rejected")||b.includes("not granted"))o("idle");else if(b.includes("not connected")||b.includes("no active account"))o("idle"),Ee.error("Please connect your wallet first.");else{o("error");const v=S?.message||S?.title||"Unknown error";Ee.error(`Error: ${v.substring(0,120)}`),console.error("Full error:",JSON.stringify(S,null,2))}}},[n]),m=()=>{r(!1),setTimeout(()=>{o("idle"),d(null)},300)};return a.jsxs(a.Fragment,{children:[a.jsxs("button",{"data-loc":"client/src/components/DonateButton.tsx:124",onClick:()=>r(!0),style:{display:"inline-flex",alignItems:"center",gap:u?"0.4rem":"0.35rem",padding:u?"0.55rem 1rem":"0.35rem 0.75rem",background:"linear-gradient(135deg, #2c7df7 0%, #1a6ae0 100%)",border:"none",borderRadius:u?"6px":"3px",color:"#fff",fontSize:u?"0.82rem":"0.7rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.06em",cursor:"pointer",transition:"all 0.15s",whiteSpace:"nowrap",flexShrink:0,fontFamily:"inherit",boxShadow:u?"0 2px 8px rgba(44,125,247,0.35)":"none"},onMouseEnter:y=>{y.currentTarget.style.background="linear-gradient(135deg, #1a6ae0 0%, #1258c4 100%)",y.currentTarget.style.transform="translateY(-1px)"},onMouseLeave:y=>{y.currentTarget.style.background="linear-gradient(135deg, #2c7df7 0%, #1a6ae0 100%)",y.currentTarget.style.transform="translateY(0)"},children:[a.jsxs("svg",{"data-loc":"client/src/components/DonateButton.tsx:155",width:u?"14":"12",height:u?"14":"12",viewBox:"0 0 32 32",fill:"currentColor",children:[a.jsx("path",{"data-loc":"client/src/components/DonateButton.tsx:156",d:"M16 2L2 9.5v13L16 30l14-7.5v-13L16 2zm0 3.09l10.5 5.63v11.56L16 27.91 5.5 22.28V10.72L16 5.09z"}),a.jsx("path",{"data-loc":"client/src/components/DonateButton.tsx:157",d:"M13 10v12h2v-5h4a3 3 0 000-6h-4V9h-2v1zm2 2h4a1 1 0 010 2h-4v-2z"})]}),"Donate XTZ"]}),t&&a.jsx("div",{"data-loc":"client/src/components/DonateButton.tsx:164",onClick:m,style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.75)",backdropFilter:"blur(4px)",zIndex:99999,display:"flex",alignItems:"center",justifyContent:"center",padding:"1rem"},children:a.jsxs("div",{"data-loc":"client/src/components/DonateButton.tsx:178",onClick:y=>y.stopPropagation(),style:{background:"#05152e",border:"1px solid rgba(44,125,247,0.3)",borderRadius:"16px",padding:"2rem",maxWidth:"400px",width:"100%",boxShadow:"0 20px 60px rgba(0,0,0,0.6)",animation:"donatePopIn 0.25s cubic-bezier(0.23,1,0.32,1)",position:"relative",zIndex:1e5},children:[a.jsxs("div",{"data-loc":"client/src/components/DonateButton.tsx:194",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"1.25rem"},children:[a.jsxs("div",{"data-loc":"client/src/components/DonateButton.tsx:195",style:{display:"flex",alignItems:"center",gap:"0.625rem"},children:[a.jsx("div",{"data-loc":"client/src/components/DonateButton.tsx:196",style:{width:"36px",height:"36px",borderRadius:"8px",background:"rgba(44,125,247,0.15)",border:"1px solid rgba(44,125,247,0.3)",display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsxs("svg",{"data-loc":"client/src/components/DonateButton.tsx:197",width:"18",height:"18",viewBox:"0 0 32 32",fill:"#2c7df7",children:[a.jsx("path",{"data-loc":"client/src/components/DonateButton.tsx:198",d:"M16 2L2 9.5v13L16 30l14-7.5v-13L16 2zm0 3.09l10.5 5.63v11.56L16 27.91 5.5 22.28V10.72L16 5.09z"}),a.jsx("path",{"data-loc":"client/src/components/DonateButton.tsx:199",d:"M13 10v12h2v-5h4a3 3 0 000-6h-4V9h-2v1zm2 2h4a1 1 0 010 2h-4v-2z"})]})}),a.jsxs("div",{"data-loc":"client/src/components/DonateButton.tsx:202",children:[a.jsx("h3",{"data-loc":"client/src/components/DonateButton.tsx:203",style:{fontSize:"1rem",fontWeight:900,color:"#fff",margin:0},children:"Donate XTZ"}),a.jsx("p",{"data-loc":"client/src/components/DonateButton.tsx:204",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.4)",margin:0},children:"Support XTZ.News"})]})]}),a.jsx("button",{"data-loc":"client/src/components/DonateButton.tsx:207",onClick:m,style:{background:"none",border:"none",color:"rgba(255,255,255,0.4)",cursor:"pointer",padding:"4px",fontSize:"1.2rem",lineHeight:1,transition:"color 0.15s",fontFamily:"inherit"},onMouseEnter:y=>y.currentTarget.style.color="#fff",onMouseLeave:y=>y.currentTarget.style.color="rgba(255,255,255,0.4)",children:"â"})]}),i==="success"?a.jsxs("div",{"data-loc":"client/src/components/DonateButton.tsx:216",style:{textAlign:"center",padding:"1rem 0"},children:[a.jsx("div",{"data-loc":"client/src/components/DonateButton.tsx:217",style:{fontSize:"3rem",marginBottom:"0.75rem"},children:"ð"}),a.jsx("h4",{"data-loc":"client/src/components/DonateButton.tsx:218",style:{color:"#4ade80",fontSize:"1.1rem",fontWeight:900,margin:"0 0 0.5rem"}
802,children:"Thank you!"}),a.jsx("p",{"data-loc":"client/src/components/DonateButton.tsx:219",style:{color:"rgba(255,255,255,0.6)",fontSize:"0.85rem",lineHeight:1.6,margin:"0 0 1.25rem"},children:"Your donation helps keep XTZ.News independent and community-funded."}),l&&a.jsx("a",{"data-loc":"client/src/components/DonateButton.tsx:223",href:`https://tzkt.io/${l}`,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",fontSize:"0.75rem",color:"#2c7df7",textDecoration:"none",fontWeight:700,marginBottom:"1rem"},children:"View transaction on TzKT â"}),a.jsxs("a",{"data-loc":"client/src/components/DonateButton.tsx:233",href:`https://twitter.com/intent/tweet?text=${encodeURIComponent(`I just donated ${n} XTZ to @XTZNews to support independent Tezos news! â¤ï¸%0A%0ASupport them too: https://xtz.news/support`)}`,target:"_blank",rel:"noopener noreferrer",style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"0.5rem",width:"100%",padding:"0.75rem",background:"#000",border:"1px solid rgba(255,255,255,0.15)",borderRadius:"8px",color:"#fff",textDecoration:"none",fontSize:"0.85rem",fontWeight:700,marginBottom:"0.5rem",transition:"background 0.15s"},onMouseEnter:y=>y.currentTarget.style.background="#1a1a1a",onMouseLeave:y=>y.currentTarget.style.background="#000",children:[a.jsx("svg",{"data-loc":"client/src/components/DonateButton.tsx:241",width:"15",height:"15",viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{"data-loc":"client/src/components/DonateButton.tsx:241",d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.748l7.73-8.835L1.254 2.25H8.08l4.253 5.622zm-1.161 17.52h1.833L7.084 4.126H5.117z"})}),"Share on X (Twitter)"]}),a.jsx("button",{"data-loc":"client/src/components/DonateButton.tsx:244",onClick:m,style:{display:"block",width:"100%",padding:"0.75rem",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"8px",color:"rgba(255,255,255,0.7)",cursor:"pointer",fontSize:"0.82rem",fontWeight:700,fontFamily:"inherit"},children:"Close"})]}):a.jsxs(a.Fragment,{children:[a.jsx("p",{"data-loc":"client/src/components/DonateButton.tsx:253",style:{fontSize:"0.82rem",color:"rgba(255,255,255,0.6)",lineHeight:1.6,marginBottom:"1.25rem",textAlign:"center"},children:"XTZ.News is independent and community-funded. Connect your Tezos wallet to donate directly on-chain. â¤ï¸"}),a.jsxs("div",{"data-loc":"client/src/components/DonateButton.tsx:258",style:{marginBottom:"1.25rem"},children:[a.jsx("p",{"data-loc":"client/src/components/DonateButton.tsx:259",style:{fontSize:"0.62rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.35)",marginBottom:"0.5rem"},children:"Amount (XTZ)"}),a.jsx("div",{"data-loc":"client/src/components/DonateButton.tsx:260",style:{display:"flex",gap:"0.4rem",marginBottom:"0.5rem",flexWrap:"wrap"},children:zne.map(y=>a.jsxs("button",{"data-loc":"client/src/components/DonateButton.tsx:262",onClick:()=>s(y.toString()),style:{padding:"0.4rem 0.75rem",borderRadius:"6px",border:n===y.toString()?"1px solid #2c7df7":"1px solid rgba(255,255,255,0.15)",background:n===y.toString()?"rgba(44,125,247,0.2)":"rgba(255,255,255,0.04)",color:n===y.toString()?"#2c7df7":"rgba(255,255,255,0.6)",fontSize:"0.82rem",fontWeight:700,cursor:"pointer",transition:"all 0.15s",fontFamily:"inherit"},children:[y," ê©"]},y))}),a.jsxs("div",{"data-loc":"client/src/components/DonateButton.tsx:282",style:{display:"flex",alignItems:"center",gap:"0.5rem",background:"rgba(255,255,255,0.04)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"8px",padding:"0.5rem 0.75rem"},children:[a.jsx("span",{"data-loc":"client/src/components/DonateButton.tsx:283",style:{fontSize:"0.85rem",color:"rgba(255,255,255,0.4)",fontWeight:700},children:"ê©"}),a.jsx("input",{"data-loc":"client/src/components/DonateButton.tsx:284",type:"number",value:n,onChange:y=>s(y.target.value),min:"0.1",step:"0.1",placeholder:"Custom amount",style:{flex:1,background:"none",border:"none",outline:"none",color:"#fff",fontSize:"0.9rem",fontWeight:700,fontFamily:"inherit"}}),a.jsx("span",{"data-loc":"client/src/components/DonateButton.tsx:293",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.3)"},children:"XTZ"})]})]}),a.jsxs("button",{"data-loc":"client/src/components/DonateButton.tsx:298",onClick:f,disabled:i==="connecting"||i==="sending",style:{width:"100%",padding:"0.9rem",background:i==="connecting"||i==="sending"?"rgba(44,125,247,0.5)":"#2c7df7",border:"none",borderRadius:"8px",color:"#fff",fontSize:"0.9rem",fontWeight:700,cursor:i==="connecting"||i==="sending"?"not-allowed":"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:"0.5rem",transition:"background 0.15s",fontFamily:"inherit",marginBottom:"0.75rem"},onMouseEnter:y=>{(i==="idle"||i==="error")&&(y.currentTarget.style.background="#1a6ae0")},onMouseLeave:y=>{(i==="idle"||i==="error")&&(y.currentTarget.style.background="#2c7df7")},children:[i==="connecting"&&a.jsxs(a.Fragment,{children:[a.jsxs("svg",{"data-loc":"client/src/components/DonateButton.tsx:323",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",style:{animation:"donateSpin 0.8s linear infinite"},children:[a.jsx("circle",{"data-loc":"client/src/components/DonateButton.tsx:323",cx:"12",cy:"12",r:"10",strokeOpacity:"0.3"}),a.jsx("path",{"data-loc":"client/src/components/DonateButton.tsx:323",d:"M12 2a10 10 0 0 1 10 10"})]})," Connecting walletâ¦"]}),i==="sending"&&a.jsxs(a.Fragment,{children:[a.jsxs("svg",{"data-loc":"client/src/components/DonateButton.tsx:326",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",style:{animation:"donateSpin 0.8s linear infinite"},children:[a.jsx("circle",{"data-loc":"client/src/components/DonateButton.tsx:326",cx:"12",cy:"12",r:"10",strokeOpacity:"0.3"}),a.jsx("path",{"data-loc":"client/src/components/DonateButton.tsx:326",d:"M12 2a10 10 0 0 1 10 10"})]})," Confirm in walletâ¦"]}),(i==="idle"||i==="error")&&a.jsxs(a.Fragment,{children:[a.jsxs("svg",{"data-loc":"client/src/components/DonateButton.tsx:330",width:"16",height:"16",viewBox:"0 0 32 32",fill:"
802currentColor",children:[a.jsx("path",{"data-loc":"client/src/components/DonateButton.tsx:331",d:"M16 2L2 9.5v13L16 30l14-7.5v-13L16 2zm0 3.09l10.5 5.63v11.56L16 27.91 5.5 22.28V10.72L16 5.09z"}),a.jsx("path",{"data-loc":"client/src/components/DonateButton.tsx:332",d:"M13 10v12h2v-5h4a3 3 0 000-6h-4V9h-2v1zm2 2h4a1 1 0 010 2h-4v-2z"})]}),i==="error"?"Try Again":`Connect Wallet & Donate ${n} XTZ`]})]}),a.jsxs("div",{"data-loc":"client/src/components/DonateButton.tsx:340",style:{display:"flex",alignItems:"center",gap:"0.75rem",marginBottom:"0.75rem"},children:[a.jsx("div",{"data-loc":"client/src/components/DonateButton.tsx:341",style:{flex:1,height:"1px",background:"rgba(255,255,255,0.08)"}}),a.jsx("span",{"data-loc":"client/src/components/DonateButton.tsx:342",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.25)",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em"},children:"or send manually"}),a.jsx("div",{"data-loc":"client/src/components/DonateButton.tsx:343",style:{flex:1,height:"1px",background:"rgba(255,255,255,0.08)"}})]}),a.jsxs("div",{"data-loc":"client/src/components/DonateButton.tsx:347",style:{display:"flex",gap:"0.875rem",alignItems:"center"},children:[a.jsx("div",{"data-loc":"client/src/components/DonateButton.tsx:348",style:{background:"#fff",borderRadius:"8px",padding:"5px",flexShrink:0},children:a.jsx("img",{"data-loc":"client/src/components/DonateButton.tsx:349",src:Ane,alt:"Wallet QR",width:"72",height:"72",style:{display:"block",borderRadius:"4px"}})}),a.jsxs("div",{"data-loc":"client/src/components/DonateButton.tsx:351",style:{flex:1,minWidth:0},children:[a.jsx("p",{"data-loc":"client/src/components/DonateButton.tsx:352",style:{fontSize:"0.62rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"rgba(255,255,255,0.3)",marginBottom:"0.35rem"},children:"Wallet Address"}),a.jsxs("div",{"data-loc":"client/src/components/DonateButton.tsx:353",style:{display:"flex",alignItems:"center",gap:"0.4rem",background:"rgba(255,255,255,0.04)",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"6px",padding:"0.4rem 0.6rem"},children:[a.jsx("code",{"data-loc":"client/src/components/DonateButton.tsx:354",style:{fontSize:"0.62rem",color:"#2c7df7",fontFamily:"monospace",flex:1,wordBreak:"break-all",lineHeight:1.4},children:Hx}),a.jsx("button",{"data-loc":"client/src/components/DonateButton.tsx:357",onClick:g,style:{background:"none",border:"none",color:"#2c7df7",cursor:"pointer",padding:"2px 4px",fontSize:"0.65rem",fontWeight:700,whiteSpace:"nowrap",fontFamily:"inherit",flexShrink:0},children:"Copy"})]})]})]})]}),a.jsx("style",{"data-loc":"client/src/components/DonateButton.tsx:369",children:` 803 @keyframes donatePopIn { 804 from { transform: scale(0.92) translateY(8px); opacity: 0; } 805 to { transform: scale(1) translateY(0); opacity: 1; } 806 } 807 @keyframes donateSpin { 808 to { transform: rotate(360deg); } 809 } 810 `})]})})]})}const gA=()=>{const e="https://manus.im",t="b4WZurEggWt4nzJXT2vL9d",r=`${window.location.origin}/api/oauth/callback`,n=btoa(r),s=new URL(`${e}/app-auth`);return s.searchParams.set("appId",t),s.searchParams.set("redirectUri",r),s.searchParams.set("state",n),s.searchParams.set("type","signIn"),s.toString()};function Wr(e){const{redirectOnUnauthenticated:t=!1,redirectPath:r=gA()}={},n=ee.useUtils(),s=ee.auth.me.useQuery(void 0,{retry:!1,refetchOnWindowFocus:!1}),i=ee.auth.logout.useMutation({onSuccess:()=>{n.auth.me.setData(void 0,null)}}),o=E.useCallback(async()=>{try{await i.mutateAsync()}catch(d){if(d instanceof Yd&&d.data?.code==="UNAUTHORIZED")return;throw d}finally{n.auth.me.setData(void 0,null),await n.auth.me.invalidate()}},[i,n]),l=E.useMemo(()=>(localStorage.setItem("manus-runtime-user-info",JSON.stringify(s.data)),{user:s.data??null,loading:s.isLoading||i.isPending,error:s.error??i.error??null,isAuthenticated:!!s.data}),[s.data,s.error,s.isLoading,i.error,i.isPending]);return E.useEffect(()=>{t&&(s.isLoading||i.isPending||l.user||typeof window>"u"||window.location.pathname!==r&&(window.location.href=r))},[t,r,i.isPending,s.isLoading,l.user]),{...l,refresh:()=>s.refetch(),logout:o}}function fA(e,t="/"){return!e||!e.startsWith("/")||e.startsWith("//")?t:e}function ZW(e){const t=typeof window>"u"?"/":`${window.location.pathname}${window.location.search}`;return`/login?returnTo=${encodeURIComponent(fA(e??t))}`}function IP(e){window.location.href=ZW(e)}function Je(e){return e?e.startsWith("/manus-storage/")?`/media/${e.slice(15)}`:e.replace(/^https?:\/\/(?:www\.)?xtz\.news\/manus-storage\//,"/media/"):""}const Ene=[{label:"HOME",href:"/"},{label:"LATEST NEWS",href:"/category/latest-news"},{label:"CATEGORIES",href:"/categories",children:[{label:"GAMES",href:"/category/games"},{label:"TOKENIZATION",href:"/category/tokenization"},{label:"EXHIBITION",href:"/category/exhibition"},{label:"MUSIC",href:"/category/music"},{label:"WALLETS",href:"/category/wallets"},{label:"STABLECOINS",href:"/category/stablecoins"},{label:"ALL CATEGORIES",href:"/categories"}]},{label:"PROJECTS",href:"/projects"},{label:"EVENTS",href:"/events"},{label:"COMMUNITY SERVICES",href:"/community-services"},{label:"TIMELINE",href:"/timeline"},{label:"EXPLORE",href:"/explorer",children:[{label:"EXPLORER",href:"/explorer"},{label:"STAKING",href:"/staking"},{label:"ART & CULTURE",href:"/art"},{label:"ART ON TEZOS HUB",href:"/art-on-tezos"}
810,{label:"ONCHAIN COMMUNITY ARCHIVES",href:"/onchain-community-archives"},{label:"TEZOS EVENTS",href:"/events"},{label:"TOOLS",href:"/tools"},{label:"TEZOS WALLET STARTER",href:"/wallets"},{label:"TEZOS STAKING STARTER",href:"/staking/start"},{label:"TZ5 WALLET GUIDE",href:"/guides/tz5-wallet"},{label:"POST-QUANTUM HUB",href:"/post-quantum"},{label:"ETHERLINK HUB",href:"/etherlink"},{label:"TOKEN PRICES",href:"/prices"}]},{label:"SUPPORT",href:"/support"}],uE=Je("/manus-storage/xtz-logo-square_c6689606.png"),pE={label:"Optimised Marketing",href:"https://optimised.marketing"},qm={message:"Get 25% websites & Marketing",code:"XTZ2026"},K2={label:"ADVERTISE WITH US",href:"/advertise"},One=[{label:"Read",items:[{label:"Home",href:"/"},{label:"Latest News",href:"/category/latest-news"},{label:"Categories",href:"/categories"},{label:"Projects",href:"/projects"},{label:"Events",href:"/events"},{label:"Community Services",href:"/community-services"},{label:"Timeline",href:"/timeline"}]},{label:"Explore",items:[{label:"Explorer",href:"/explorer"},{label:"Staking",href:"/staking"},{label:"Art & Culture",href:"/art"},{label:"Art on Tezos Hub",href:"/art-on-tezos"},{label:"Onchain Community Archives",href:"/onchain-community-archives"},{label:"Tools",href:"/tools"},{label:"Tezos Wallet Starter",href:"/wallets"},{label:"Tezos Staking Starter",href:"/staking/start"},{label:"tz5 Wallet Guide",href:"/guides/tz5-wallet"},{label:"Post-quantum Hub",href:"/post-quantum"},{label:"Etherlink Hub",href:"/etherlink"},{label:"Token Prices",href:"/prices"}]},{label:"Community",items:[{label:"Submit Article",href:"/submit-article"},{label:"Support XTZ.News",href:"/support"},{label:"Contact",href:"/contact"}]}],gE={fontSize:"0.76rem",fontWeight:700,letterSpacing:"0.04em",textTransform:"uppercase",color:"rgba(255,255,255,0.82)",background:"none",border:"none",padding:"0.5rem 0.55rem",cursor:"pointer",display:"flex",alignItems:"center",gap:"0.2rem",whiteSpace:"nowrap"};function Mne({onSearchOpen:e}){const[t,r]=E.useState(!1),[n,s]=E.useState(null),[i]=Sa(),o=E.useRef(null),{user:l,isAuthenticated:d,loading:u,logout:g}=Wr(),[f,m]=E.useState(!1),y=E.useRef(!1),S=ee.referralAnalytics.recordCopy.useMutation(),b=ZW(i.startsWith("/login")||i.startsWith("/register")?"/":i),v=async()=>{try{await navigator.clipboard.writeText(qm.code),m(!0),y.current||(y.current=!0,S.mutate(void 0)),window.setTimeout(()=>m(!1),1800)}catch{m(!1)}};return E.useEffect(()=>{document.body.classList.remove("light-mode"),localStorage.removeItem("xtz-dark-mode")},[]),E.useEffect(()=>{r(!1),s(null)},[i]),E.useEffect(()=>{const j=k=>{o.current&&!o.current.contains(k.target)&&s(null)};return document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)},[]),a.jsxs("header",{"data-loc":"client/src/components/Header.tsx:172",ref:o,"aria-label":"Site header",children:[a.jsx("div",{"data-loc":"client/src/components/Header.tsx:173",className:"hidden lg:flex",style:{background:"#123262",borderBottom:"1px solid rgba(255,255,255,0.1)",height:"36px",alignItems:"center"},children:a.jsxs("div",{"data-loc":"client/src/components/Header.tsx:174",className:"container",style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"1rem"},children:[a.jsx(Zg,{"data-loc":"client/src/components/Header.tsx:175",variant:"header"}),a.jsx($,{"data-loc":"client/src/components/Header.tsx:176",href:"/",style:{fontSize:"0.68rem",fontWeight:700,letterSpacing:"0.12em",textTransform:"uppercase",color:"rgba(255,255,255,0.8)",textDecoration:"none"},children:"XTZ.NEWS"}),a.jsxs($,{"data-loc":"client/src/components/Header.tsx:177",href:K2.href,"aria-label":"Advertise with XTZ.News",className:"advertise-header-link",style:{fontSize:"0.68rem",fontWeight:800,letterSpacing:"0.09em",textTransform:"uppercase",color:"#b9d3ff",display:"inline-flex",alignItems:"center",gap:"0.3rem",textDecoration:"none",whiteSpace:"nowrap",padding:"0.2rem 0.35rem",borderRadius:"4px"},children:[a.jsx(nu,{"data-loc":"client/src/components/Header.tsx:177",size:11,"aria-hidden":"true"}),K2.label]}),a.jsxs($,{"data-loc":"client/src/components/Header.tsx:178",href:"/prices",style:{fontSize:"0.68rem",fontWeight:700,letterSpacing:"0.12em",textTransform:"uppercase",color:"rgba(255,255,255,0.8)",display:"flex",alignItems:"center",gap:"0.35rem",textDecoration:"none"},children:[a.jsx(ve,{"data-loc":"client/src/components/Header.tsx:178",size:10}),"TEZOS TOKEN TRACKER"]}),!u&&(d?a.jsxs("button",{"data-loc":"client/src/components/Header.tsx:179",onClick:()=>g(),style:fE,children:[a.jsx(Fre,{"data-loc":"client/src/components/Header.tsx:179",size:11})," Sign out"]}):a.jsxs($,{"data-loc":"client/src/components/Header.tsx:179",href:b,style:fE,children:[a.jsx(_P,{"data-loc":"client/src/components/Header.tsx:179",size:11})," Sign in"]})),a.jsxs("details",{"data-loc":"client/src/components/Header.tsx:180",style:{position:"relative"},children:[a.jsxs("summary",{"data-loc":"client/src/components/Header.tsx:181",style:{listStyle:"none",background:"transparent",border:"1px solid rgba(255,255,255,0.2)",borderRadius:"4px",padding:"0.2rem 0.5rem",cursor:"pointer",display:"flex",alignItems:"center",gap:"0.3rem",color:"rgba(255,255,255,0.8)",fontSize:"0.65rem",fontWeight:700},children:[a.jsx(ba,{"data-loc":"client/src/components/Header.tsx:181",size:10})," ð¬ð§ EN ",a.jsx(yi,{"data-loc":"client/src/components/Header.tsx:181",size:9})]}),a.jsxs("div",{"data-loc":"client/src/components/Header.tsx:182",style:{position:"absolute",right:0,top:"calc(100% + 0.35rem)",background:"#05152e",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"6px",padding:"0.4rem",zIndex:1e3,minWidth:"164px",boxShadow:"0 8px 24px rgba(0,0,0,0.5)"},children:[a.jsx($,{"data-loc":"client/src/components/Header.tsx:183",href:"/",style:{display:"block",padding:"0.35rem 0.6rem",textDecoration:"none",fontSize:"0.72rem",color:"rgba(255,255,255,0.9)",fontWeight:700},children:"ð¬ð§ English"}),c0.map(j=>a.jsxs($,{"data-loc":"client/src/components/Header.tsx:184",href:`/${j}`,style:{display:"block",padding:"0.35rem 0.6rem",textDecoration:"none",fontSize:"0.72rem",color:"rgba(255,255,255,0.7)"},children:[_o[j]," ",hs[j]]},j))]})]})]})}),a.jsxs("div",{"data-loc":"client/src/components/Header.tsx:190",style:{background:"#05152e",borderBottom:"1px solid rgba(255,255,255,0.08)",display:"flex",alignItems:"stretch"},children:[a.jsxs("div",{"data-loc":"client/src/components/Header.tsx:191",className:"container",style:{display:"flex",alignItems:"center",height:"72px",flex:1},children:[a.jsxs("div",{"data-loc":"client/src/components/Header.tsx:192",style:{flexShrink:0,marginRight:"1.2rem",display:"flex",alignItems:"center",minWidth:0},children:[a.jsxs($,{"data-loc":"client/src/components/Header.tsx:193",href:"/",style:{flexShrink:0,marginRight:"0.7rem",display:"flex",alignItems:"center",position:"relative",zIndex:10},children:[a.jsx("img",{"data-loc":"client/src/components/Header.tsx:194",src:uE,alt:"XTZ.News",style:{height:"90px",width:"auto",marginTop:"-36px"},className:"hidden lg:block"}),a.jsx("img",{"data-loc":"client/src/components/Header.tsx:195",src:uE,alt:"XTZ.News",style:{height:"56px",width:"auto"},className:"lg:hidden"})]}),a.jsxs("span",{"data-loc":"client/src/components/Header.tsx:197",className:`optimised-logo-attribution ${i==="/"?"optimised-logo-attribution-home":""}`,style:{color:"rgba(255,255,255,0.44)",fontSize:"0.58rem",fontWeight:700,letterSpacing:"0.035em",display:"inline-flex",alignItems:"center",gap:"0.18rem",whiteSpace:"nowrap"},children:[a.jsx("span",{"data-loc":"client/src/components/Header.tsx:197",children:"Built by"}),a.jsxs("span",{"data-loc":"client/src/components/Header.tsx:197",className:"optimised-referral",children:[a.jsxs("a",{"data-loc":"client/src/components/Header.tsx:197",href:pE.href,target:"_blank",rel:"noopener noreferrer","aria-label":"Visit Optimised Marketing, the team building XTZ.News",className:"optimised-header-link",style:{color:"rgba(255,255,255,0.60)",fontWeight:800,textDecoration:"none",display:"inline-flex",alignItems:"center",gap:"0.25rem",padding:"0.22rem 0.28rem",borderRadius:"4px"},children:[a.jsx("span",{"data-loc":"client/src/components/Header.tsx:197",children:pE.label}),a.jsx(ve,{"data-loc":"client/src/components/Header.tsx:197",size:8,"aria-hidden":"true",className:"hidden sm:block"})]}),a.jsxs("span",{"data-loc":"client/src/components/Header.tsx:197",className:"optimised-referral-tooltip",role:"dialog","aria-label":"Optimised Marketing referral offer",children:[a.jsx("span",{"data-loc":"client/src/components/Header.tsx:197",children:qm.message}),a.jsx("span",{"data-loc":"client/src/components/Header.tsx:197",className:"optimised-referral-code",children:qm.code}),a.jsx("button",{"data-loc":"client/src/components/Header.tsx:197",type:"button",onClick:v,className:`optimised-referral-copy ${f?"optimised-referral-copy-success":""}`,"aria-label":f?"Referral code copied":`Copy referral code ${qm.code}`,children:a.jsx("span",{"data-loc":"client/src/components/Header.tsx:197","aria-live":"polite",children:f?a.jsxs(a.Fragment,{children:[a.jsx(yc,{"data-loc":"client/src/components/Header.tsx:197",size:11,"aria-hidden":"true"}),"Copied!"]}):a.jsxs(a.Fragment,{children:[a.jsx(an,{"data-loc":"client/src/components/Header.tsx:197",size:10,"aria-hidden":"true"}),"Copy"]})})})]})]})]})]}),a.jsx("nav",{"data-loc":"client/src/components/Header.tsx:200",className:"hidden lg:flex","aria-label":"Primary navigation",style:{flex:1,alignItems:"center",justifyContent:"center"},children:Ene.map(j=>a.jsx("div",{"data-loc":"client/src/components/Header.tsx:201",style:{position:"relative"},children:j.children?a.jsxs(a.Fragment,{children:[a.jsxs("button",{"data-loc":"client/src/components/Header.tsx:203",onClick:()=>s(n===j.label?null:j.label),"aria-expanded":n===j.label,"aria-haspopup":"menu","aria-controls":`desktop-menu-${j.label.toLowerCase()}`,style:gE,children:[j.label,a.jsx(yi,{"data-loc":"client/src/components/Header.tsx:203",size:10,style:{transform:n===j.label?"rotate(180deg)":"none",transition:"transform 0.2s"}})]}),n===j.label&&a.jsx("div",{"data-loc":"client/src/components/Header.tsx:204",id:`desktop-menu-${j.label.toLowerCase()}`,role:"menu",style:{position:"absolute",top:"100%",left:0,minWidth:"175px",background:"#05152e",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"5px",boxShadow:"0 8px 32px rgba(0,0,0,0.6)",zIndex:100,padding:"0.3rem 0"},children:j.children.map(k=>a.jsx($,{"data-loc":"client/src/components/Header.tsx:205",role:"menuitem",href:k.href,style:{display:"block",padding:"0.55rem 0.9rem",fontSize:"0.72rem",fontWeight:700,letterSpacing:"0.04em",textTransform:"uppercase",color:"rgba(255,255,255,0.7)",textDecoration:"none"},children:k.label},k.label))})]}):a.jsx($,{"data-loc":"client/src/components/Header.tsx:207",href:j.href,style:{...gE,display:"block",textDecoration:"none"},children:j.label})},j.label))}),a.jsx("div",{"data-loc":"client/src/components/Header.tsx:211",className:"hidden lg:flex",
810style:{alignItems:"center",marginLeft:"auto"},children:a.jsxs("button",{"data-loc":"client/src/components/Header.tsx:212",onClick:e,"aria-label":"Search XTZ.News","aria-keyshortcuts":"Control+K Meta+K /",style:{display:"flex",alignItems:"center",gap:"0.45rem",padding:"0.45rem 0.65rem",color:"rgba(255,255,255,0.72)",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.13)",borderRadius:"5px",cursor:"pointer",fontSize:"0.7rem",fontWeight:700},children:[a.jsx(ft,{"data-loc":"client/src/components/Header.tsx:212",size:16}),a.jsx("span",{"data-loc":"client/src/components/Header.tsx:212",children:"Search"}),a.jsx("kbd",{"data-loc":"client/src/components/Header.tsx:212",style:{fontSize:"0.58rem",color:"rgba(255,255,255,0.35)",borderLeft:"1px solid rgba(255,255,255,0.12)",paddingLeft:"0.45rem"},children:"âK"})]})}),a.jsx("div",{"data-loc":"client/src/components/Header.tsx:214",className:"lg:hidden",style:{marginLeft:"auto"}})]}),a.jsxs("button",{"data-loc":"client/src/components/Header.tsx:217",onClick:()=>r(j=>!j),"aria-label":t?"Close main menu":"Open main menu","aria-expanded":t,"aria-controls":"mobile-navigation",className:"mobile-menu-trigger",style:{background:"#2c7df7",border:"none",color:"#fff",width:"72px",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"0.35rem",cursor:"pointer",flexShrink:0,fontSize:"0.62rem",fontWeight:900,letterSpacing:"0.12em",textTransform:"uppercase"},children:[t?a.jsx(xr,{"data-loc":"client/src/components/Header.tsx:218",size:22}):a.jsxs("svg",{"data-loc":"client/src/components/Header.tsx:218",width:"24",height:"18",viewBox:"0 0 24 18",fill:"none",children:[a.jsx("rect",{"data-loc":"client/src/components/Header.tsx:218",width:"24",height:"3",rx:"1.5",fill:"white"}),a.jsx("rect",{"data-loc":"client/src/components/Header.tsx:218",y:"7.5",width:"24",height:"3",rx:"1.5",fill:"white"}),a.jsx("rect",{"data-loc":"client/src/components/Header.tsx:218",y:"15",width:"24",height:"3",rx:"1.5",fill:"white"})]}),"MENU"]})]}),a.jsx("div",{"data-loc":"client/src/components/Header.tsx:223",className:"lg:hidden",style:{background:"#05152e",borderBottom:"1px solid rgba(255,255,255,0.1)",padding:"0.5rem 1rem"},children:a.jsxs("button",{"data-loc":"client/src/components/Header.tsx:224",onClick:e,"aria-label":"Search XTZ.News",style:{width:"100%",display:"flex",alignItems:"center",gap:"0.75rem",padding:"0.7rem 1rem",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"5px",color:"rgba(255,255,255,0.68)",fontSize:"0.86rem",cursor:"pointer",textAlign:"left"},children:[a.jsx(ft,{"data-loc":"client/src/components/Header.tsx:224",size:16}),a.jsx("span",{"data-loc":"client/src/components/Header.tsx:224",children:"Search XTZ.News"})]})}),t&&a.jsx("div",{"data-loc":"client/src/components/Header.tsx:227",className:"lg:hidden",style:{background:"#05152e",borderBottom:"1px solid rgba(255,255,255,0.1)"},children:a.jsxs("nav",{"data-loc":"client/src/components/Header.tsx:228",id:"mobile-navigation",className:"container","aria-label":"Mobile navigation",style:{padding:"0.75rem 0"},children:[a.jsx("div",{"data-loc":"client/src/components/Header.tsx:229",style:{display:"flex",gap:"0.5rem",padding:"0.35rem 0.75rem 0.8rem"},children:!u&&(d?a.jsxs("button",{"data-loc":"client/src/components/Header.tsx:230",onClick:()=>g(),style:{...Q2,flex:1},children:[a.jsx(mne,{"data-loc":"client/src/components/Header.tsx:230",size:14})," ",l?.name||"Signed in",a.jsx("span",{"data-loc":"client/src/components/Header.tsx:230",style:{marginLeft:"auto",color:"rgba(255,255,255,0.55)"},children:"Sign out"})]}):a.jsxs(a.Fragment,{children:[a.jsxs($,{"data-loc":"client/src/components/Header.tsx:230",href:b,style:{...Q2,flex:1},children:[a.jsx(_P,{"data-loc":"client/src/components/Header.tsx:230",size:14})," Sign in"]}),a.jsx($,{"data-loc":"client/src/components/Header.tsx:230",href:`/register?returnTo=${encodeURIComponent(i)}`,style:{...Q2,flex:1,background:"#2c7df7",borderColor:"#2c7df7",color:"#fff"},children:"Create account"})]}))}),a.jsxs("div",{"data-loc":"client/src/components/Header.tsx:232",style:{padding:"0.5rem 0.75rem 0.75rem",display:"flex",flexWrap:"wrap",alignItems:"center",gap:".7rem"},children:[a.jsx(Zg,{"data-loc":"client/src/components/Header.tsx:232",variant:"article"}),a.jsxs($,{"data-loc":"client/src/components/Header.tsx:232",href:K2.href,className:"advertise-header-link",style:{color:"#b9d3ff",fontSize:".7rem",fontWeight:800,textDecoration:"none",display:"inline-flex",alignItems:"center",gap:".3rem",padding:".3rem .4rem",borderRadius:"4px"},children:[a.jsx(nu,{"data-loc":"client/src/components/Header.tsx:232",size:13,"aria-hidden":"true"}),"Advertise with us"]})]}),One.map(j=>a.jsxs("section",{"data-loc":"client/src/components/Header.tsx:233",style:{padding:"0.75rem",borderTop:"1px solid rgba(255,255,255,0.07)"},children:[a.jsx("p",{"data-loc":"client/src/components/Header.tsx:234",style:{margin:"0 0 0.4rem",color:"#5a9fff",fontSize:"0.6rem",fontWeight:900,textTransform:"uppercase",letterSpacing:"0.13em"},children:j.label}),a.jsx("div",{"data-loc":"client/src/components/Header.tsx:235",style:{display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",gap:"0.35rem"},children:j.items.map(k=>a.jsx($,{"data-loc":"client/src/components/Header.tsx:235",href:k.href,style:{padding:"0.72rem",borderRadius:"5px",background:"rgba(255,255,255,0.045)",color:"rgba(255,255,255,0.85)",fontSize:"0.74rem",fontWeight:700,textDecoration:"none"},children:k.label},k.label))})]},j.label)),a.jsxs("details",{"data-loc":"client/src/components/Header.tsx:237",style:{margin:"0.8rem 0.75rem",color:"rgba(255,255,255,0.7)"},children:[a.jsx("summary",{"data-loc":"client/src/components/Header.tsx:237",style:{cursor:"pointer",fontSize:"0.72rem",fontWeight:700},children:"International editions"}),a.jsxs("div",{"data-loc":"client/src/components/Header.tsx:237",style:{display:"flex",flexWrap:"wrap",gap:"0.5rem",paddingTop:"0.75rem"},children:[a.jsx($,{"data-loc":"client/src/components/Header.tsx:237",href:"/",style:{color:"rgba(255,255,255,0.8)",textDecoration:"none",fontSize:"0.7rem"},children:"ð¬ð§ English"}),c0.map(j=>a.jsxs($,{"data-loc":"client/src/components/Header.tsx:237",href:`/${j}`,style:{color:"rgba(255,255,255,0.65)",textDecoration:"none",fontSize:"0.7rem"},children:[_o[j]," ",hs[j]]},j))]})]})]})}),a.jsx("style",{"data-loc":"client/src/components/Header.tsx:240",children:` 811 .mobile-menu-trigger { display: flex; } 812 @media (min-width: 1024px) { .mobile-menu-trigger { display: none !important; } } 813 .optimised-header-link, .advertise-header-link { transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), background-color 160ms cubic-bezier(0.23, 1, 0.32, 1), color 160ms cubic-bezier(0.23, 1, 0.32, 1); } 814 @media (max-width: 1023px) { .optimised-logo-attribution { align-items: center !important; font-size: 0.54rem !important; justify-content: center; letter-spacing: 0.02em !important; } } 815 .optimised-logo-attribution-home { color: rgba(255,255,255,0.32) !important; } 816 .optimised-logo-attribution-home .optimised-header-link { color: rgba(255,255,255,0.44) !important; } 817 .optimised-referral { display: inline-flex; position: relative; } 818 .optimised-referral::after { content: ""; height: 10px; left: 0; position: absolute; right: 0; top: 100%; } 819 .optimised-referral-tooltip { background: #0b2144; border: 1px solid rgba(255,255,255,0.18); border-radius: 6px; box-shadow: 0 10px 24px rgba(0,0,0,0.36); color: rgba(255,255,255,0.92); display: flex; font-size: 0.66rem; font-weight: 700; gap: 0.45rem; left: 0; line-height: 1.2; opacity: 0; padding: 0.45rem 0.5rem; pointer-events: none; position: absolute; top: 100%; transform: translateY(-2px); transition: opacity 160ms cubic-bezier(0.23, 1, 0.32, 1), transform 160ms cubic-bezier(0.23, 1, 0.32, 1); visibility: hidden; width: max-content; z-index: 120; } 820 .optimised-referral:hover .optimised-referral-tooltip, .optimised-referral:focus-within .optimised-referral-tooltip { opacity: 1; pointer-events: auto; transform: translateY(0); visibility: visible; } 821 .optimised-referral-code { color: #b9d3ff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.04em; } 822 .optimised-referral-copy { align-items: center; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 3px; color: #fff; cursor: pointer; display: inline-flex; font-size: 0.6rem; font-weight: 800; gap: 0.2rem; padding: 0.15rem 0.3rem; } 823 .optimised-referral-copy > span { align-items: center; display: inline-flex; gap: 0.2rem; } 824 .optimised-referral-copy-success { background: rgba(34,197,94,0.18); border-color: rgba(74,222,128,0.7); color: #86efac; } 825 .optimised-referral-copy:hover, .optimised-referral-copy:focus-visible { background: rgba(255,255,255,0.18); outline: 2px solid rgba(255,255,255,0.75); outline-offset: 2px; } 826 .optimised-header-link:hover, .optimised-header-link:focus-visible { transform: translateY(-1px); background: rgba(255,255,255,0.09); color: rgba(255,255,255,0.92) !important; } 827 .advertise-header-link:hover, .advertise-header-link:focus-visible { transform: translateY(-1px); background: rgba(185, 211, 255, 0.13); color: #fff !important; } 828 .optimised-header-link:focus-visible, .advertise-header-link:focus-visible { outline: 2px solid rgba(255,255,255,0.8); outline-offset: 2px; } 829 `})]})}
829const fE={display:"inline-flex",alignItems:"center",gap:"0.3rem",fontSize:"0.68rem",fontWeight:800,letterSpacing:"0.08em",textTransform:"uppercase",color:"#a7c9ff",background:"transparent",border:"none",padding:0,cursor:"pointer",textDecoration:"none"},Q2={display:"inline-flex",alignItems:"center",gap:"0.4rem",justifyContent:"center",padding:"0.68rem",borderRadius:"6px",border:"1px solid rgba(44,125,247,0.55)",color:"#a7c9ff",background:"rgba(44,125,247,0.1)",textDecoration:"none",fontSize:"0.72rem",fontWeight:800,cursor:"pointer"},Nne=Je("/manus-storage/xtz-logo-square_c6689606.png");function Rne(){const e=new Date().getFullYear(),t=()=>window.scrollTo({top:0,behavior:"smooth"});return a.jsxs("footer",{"data-loc":"client/src/components/Footer.tsx:12",children:[a.jsx("div",{"data-loc":"client/src/components/Footer.tsx:14",style:{background:"#030e1f",borderTop:"1px solid rgba(255,255,255,0.06)",padding:"2rem 0"},children:a.jsxs("div",{"data-loc":"client/src/components/Footer.tsx:15",className:"container",children:[a.jsx("p",{"data-loc":"client/src/components/Footer.tsx:16",style:{fontSize:"0.65rem",fontWeight:700,color:"rgba(255,255,255,0.3)",textTransform:"uppercase",letterSpacing:"0.1em",marginBottom:"1rem"},children:"More Tezos News"}),a.jsx("div",{"data-loc":"client/src/components/Footer.tsx:17",style:{display:"flex",flexWrap:"wrap",gap:"0.5rem 1.25rem"},children:[{label:"Tezos DeFi News",href:"/category/defi"},{label:"Tezos NFT News",href:"/category/nfts"},{label:"Tezos Gaming News",href:"/category/games"},{label:"Tezos Adoption",href:"/category/adoption"},{label:"Tezos Stablecoins",href:"/category/stablecoins"},{label:"Tezos Wallets",href:"/category/wallets"},{label:"Tezos Tokenization",href:"/category/tokenization"},{label:"Tezos Exhibition",href:"/category/exhibition"},{label:"Tezos Music",href:"/category/music"},{label:"Tezos Projects",href:"/projects"},{label:"Tezos Timeline",href:"/timeline"},{label:"Latest Tezos News",href:"/category/latest-news"}].map(r=>a.jsx($,{"data-loc":"client/src/components/Footer.tsx:32",href:r.href,style:{fontSize:"0.75rem",color:"rgba(255,255,255,0.4)",textDecoration:"none",transition:"color 0.2s"},onMouseEnter:n=>n.currentTarget.style.color="#2c7df7",onMouseLeave:n=>n.currentTarget.style.color="rgba(255,255,255,0.4)",children:r.label},r.href))})]})}),a.jsx("div",{"data-loc":"client/src/components/Footer.tsx:43",style:{background:"#05152e",borderTop:"1px solid rgba(255,255,255,0.1)",padding:"2.5rem 0"},children:a.jsx("div",{"data-loc":"client/src/components/Footer.tsx:44",className:"container",children:a.jsxs("div",{"data-loc":"client/src/components/Footer.tsx:45",style:{display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:"1.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/components/Footer.tsx:47",style:{display:"flex",alignItems:"center",gap:"0.7rem",flexShrink:0},children:[a.jsx($,{"data-loc":"client/src/components/Footer.tsx:48",href:"/",className:"footer-logo-link","aria-label":"XTZ.News home",children:a.jsx("img",{"data-loc":"client/src/components/Footer.tsx:49",src:Nne,alt:"XTZ.News",className:"footer-logo-image",style:{display:"block",width:"64px",height:"64px",objectFit:"contain"}})}),a.jsxs("button",{"data-loc":"client/src/components/Footer.tsx:56",type:"button",className:"footer-scroll-top",onClick:t,"aria-label":"Back to the top of the page",children:[a.jsxs("svg",{"data-loc":"client/src/components/Footer.tsx:57","aria-hidden":"true",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.3",strokeLinecap:"round",strokeLinejoin:"round",children:[a.jsx("path",{"data-loc":"client/src/components/Footer.tsx:57",d:"m18 15-6-6-6 6"}),a.jsx("path",{"data-loc":"client/src/components/Footer.tsx:57",d:"M12 9v11"})]}),a.jsx("span",{"data-loc":"client/src/components/Footer.tsx:58",children:"Back to top"})]})]}),a.jsx("nav",{"data-loc":"client/src/components/Footer.tsx:63",style:{display:"flex",flexWrap:"wrap",gap:"0.5rem 1.5rem",alignItems:"center"},children:[{label:"Home",href:"/"},{label:"Latest News",href:"/category/latest-news"},{label:"Timeline",href:"/timeline"},{label:"Contact",href:"/contact"},{label:"Advertise",href:"/advertise"},{label:"Support Us",href:"/support"},{label:"Submit Article",href:"/submit-article"}].map(r=>a.jsx($,{"data-loc":"client/src/components/Footer.tsx:73",href:r.href,style:{fontSize:"0.75rem",fontWeight:600,textTransform:"uppercase",letterSpacing:"0.08em",color:"rgba(255,255,255,0.65)",textDecoration:"none",transition:"color 0.2s"},onMouseEnter:n=>n.currentTarget.style.color="#fff",onMouseLeave:n=>n.currentTarget.style.color="rgba(255,255,255,0.65)",children:r.label},r.label))}),a.jsxs("div",{"data-loc":"client/src/components/Footer.tsx:86",style:{display:"flex",alignItems:"center",gap:"0.5rem",flexWrap:"wrap"},children:[a.jsxs("a",{"data-loc":"client/src/components/Footer.tsx:87",href:"mailto:[email protected]",style:{display:"flex",alignItems:"center",gap:"0.4rem",padding:"0 0.75rem",he
829ight:"36px",border:"1px solid rgba(255,255,255,0.2)",borderRadius:"2px",color:"rgba(255,255,255,0.65)",textDecoration:"none",fontSize:"0.72rem",fontWeight:700,letterSpacing:"0.04em",transition:"all 0.2s",whiteSpace:"nowrap"},onMouseEnter:r=>{r.currentTarget.style.borderColor="#2c7df7",r.currentTarget.style.color="#2c7df7"},onMouseLeave:r=>{r.currentTarget.style.borderColor="rgba(255,255,255,0.2)",r.currentTarget.style.color="rgba(255,255,255,0.65)"},children:[a.jsxs("svg",{"data-loc":"client/src/components/Footer.tsx:93",width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[a.jsx("rect",{"data-loc":"client/src/components/Footer.tsx:93",width:"20",height:"16",x:"2",y:"4",rx:"2"}),a.jsx("path",{"data-loc":"client/src/components/Footer.tsx:93",d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"})]}),"[email protected]"]}),[{label:"Twitter",href:"https://twitter.com/XTZNews",svg:a.jsx("svg",{"data-loc":"client/src/components/Footer.tsx:97",width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{"data-loc":"client/src/components/Footer.tsx:97",d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.748l7.73-8.835L1.254 2.25H8.08l4.253 5.622zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})},{label:"Facebook",href:"https://www.facebook.com/xtz.news",svg:a.jsx("svg",{"data-loc":"client/src/components/Footer.tsx:98",width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{"data-loc":"client/src/components/Footer.tsx:98",d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})})},{label:"LinkedIn",href:"https://www.linkedin.com/company/xtz-news",svg:a.jsx("svg",{"data-loc":"client/src/components/Footer.tsx:99",width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{"data-loc":"client/src/components/Footer.tsx:99",d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})})},{label:"Telegram",href:"https://t.me/xtznews",svg:a.jsx("svg",{"data-loc":"client/src/components/Footer.tsx:100",width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{"data-loc":"client/src/components/Footer.tsx:100",d:"M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"})})}].map(r=>a.jsx("a",{"data-loc":"client/src/components/Footer.tsx:102",href:r.href,target:"_blank",rel:"noopener noreferrer","aria-label":r.label,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"36px",height:"36px",border:"1px solid #2c7df7",borderRadius:"2px",color:"#2c7df7",textDecoration:"none",transition:"all 0.2s"},onMouseEnter:n=>{n.currentTarget.style.background="#2c7df7",n.currentTarget.style.color="#fff"},onMouseLeave:n=>{n.currentTarget.style.background="none",n.currentTarget.style.color="#2c7df7"},children:r.svg},r.label))]})]})})}),a.jsx("div",{"data-loc":"client/src/components/Footer.tsx:121",style:{background:"#000",borderTop:"1px solid rgba(255,255,255,0.08)",padding:"1rem 0"},children:a.jsxs("div",{"data-loc":"client/src/components/Footer.tsx:122",className:"container",style:{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between",gap:"0.75rem"},children:[a.jsxs("p",{"data-loc":"client/src/components/Footer.tsx:123",style:{fontSize:"0.7rem",color:"rgba(255,255,255,0.35)",margin:0},children:["© ",e," XTZ.News. All rights reserved."]}),a.jsxs("div",{"data-loc":"client/src/components/Footer.tsx:126",style:{display:"flex",flexWrap:"wrap",gap:"1rem"},children:[a.jsxs("p",{"data-loc":"client/src/components/Footer.tsx:127",style:{fontSize:"0.65rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"rgba(255,255,255,0.52)",margin:0},children:["Built by"," ",a.jsx("a",{"data-loc":"client/src/components/Footer.tsx:129",href:"https://optimised.marketing",className:"footer-credit-link",style:{color:"inherit",textDecoration:"none",transition:"color 0.2s"},children:"Optimised Marketing"})]}),[{label:"Privacy Policy",href:"/privacy-policy"},{label:"Editorial Policy",href:"/newsroom/editorial-policy"},{label:"Disclaimer",href:"/disclaimer"},{label:"Terms & Conditions",href:"/terms-and-conditions"}].map(r=>a.jsx($,{"data-loc":"client/src/components/Footer.tsx:143",href:r.href,style:{fontSize:"0.65rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"rgba(255,255,255,0.35)",textDecoration:"none",transition:"color 0.2s"},onMouseEnter:n=>n.currentTarget.style.color="rgba(255,255,255,0.7)",onMouseLeave:n=>n.currentTarget.style.color="rgba(255,255,255,0.35)",children:r.label},r.label))]})]})})]})}const JW="xtz_recent_searches";function BP(){try{return JSON.parse(localStorage.getItem(JW)||"[]").slice(0,5)}catch{return[]}}function Y2(e){try{const t=BP().filter(r=>r!==e);localStorage.setItem(JW,JSON.stringify([e,...t].slice(0,5)))}catch{}}function Dne({onClose:e}){const[t,r]=E.useState(""),[n,s]=E.useState(""),[i,o]=E.useState(BP),l=E.useRef(null),[,d]=Sa();E.useEffect(()=>{setTimeout(()=>l.current?.focus(),60);const k=P=>{P.key==="Escape"&&e()};return document.addEventListener("keydown",k),document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",k),document.body.style.overflow=""}},[e]),E.useEffect(()=>{const k=setTimeout(()=>s(t),300);return()=>clearTimeout(k)},[t]);const{data:u,isLoading:g}=ee.posts.searchAll.useQuery({q:n,limit:8},{enabled:n.length>=2}),f=u?.posts??[],m=u?.projects??[],y=k=>{k.trim()&&(Y2(k.trim()),o(BP()),e(),d(`/search?q=${encodeURIComponent(k.trim())}`))},S=k=>k?new Date(k).toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"}):"",b=n.length>=2&&!g&&(f.length>0||m.length>0),v=n.length>=2&&!g&&f.length===0&&m.length===0,j=g&&n.length>=2?"Searching XTZ.News":b?`${f.length+m.length} results found for ${n}`:v?`No results found for ${n}`:"";return a.jsxs(a.Fragment,{children:[a.jsx("div",{"data-loc":"client/src/components/SearchModal.tsx:74","aria-hidden":"true",onClick:e,style:{position:"fixed",inset:0,zIndex:9998,background:"rgba(0,0,0,0.8)",backdropFilter:"blur(6px)",WebkitBackdropFilter:"blur(6px)",animation:"srFadeIn 0.15s ease"}}),a.jsxs("div",{"data-loc":"client/src/components/SearchModal.tsx:77",role:"dialog","aria-modal":"true","aria-labelledby":"site-search-title",style:{position:"fixed",top:0,left:0,right:0,zIndex:9999,background:"#05152e",borderBottom:"1px solid rgba(44,125,247,0.3)",boxShadow:"0 24px 64px rgba(0,0,0,0.7)",animation:"srSlideDown 0.2s cubic-bezier(0.23,1,0.32,1)",maxHeight:"85vh",display:"flex",flexDirection:"column"},children:[a.jsx("h2",{"data-loc":"client/src/components/SearchModal.tsx:78",id:"site-search-title",className:"sr-only",children:"Search XTZ.News"}),a.jsx("p",{"data-loc":"client/src/components/SearchModal.tsx:79",className:"sr-only",role:"status","aria-live":"polite","aria-atomic":"true",children:j}),a.jsxs("div",{"data-loc":"client/src/components/SearchModal.tsx:82",style:{display:"flex",alignItems:"center",gap:"1rem",padding:"1.25rem 1.5rem",borderBottom:"1px solid rgba(255,255,255,0.06)"},children:[a.jsx("div",{"data-loc":"client/src/components/SearchModal.tsx:83",style:{color:g?"#2c7df7":"rgba(255,255,255,0.4)",flexShrink:0,transition:"color 0.2s"},children:g?a.jsx(Va,{"data-loc":"client/src/components/SearchModal.tsx:84",size:22,style:{animation:"srSpin 0.8s linear infinite"}}):a.jsx(ft,{"data-loc":"client/src/components/SearchModal.tsx:84",size:22})}),a.jsx("input",{"data-loc":"client/src/components/SearchModal.tsx:86",ref:l,type:"text",value:t,onChange:k=>r(k.target.value),onKeyDown:k=>k.key==="Enter"&&y(t),placeholder:"Search articles, projects, categories...","aria-label":"Search articles, projects, and categories",style:{flex:1,background:"none",border:"none",outline:"none",color:"#fff",fontSize:"1.15rem",fontFamily:"inherit",fontWeight:500}}),t&&a.jsx("button",{"data-loc":"client/src/components/SearchModal.tsx:97",onClick:()=>r(""),"aria-label":"Clear search query",style:{background:"rgba(255,255,255,0.08)",border:"none",borderRadius:"50%",width:"28px",height:"28px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:"rgba(255,255,255,0.5)",flexShrink:0,transition:"all 0.15s"},onMouseEnter:k=>{k.currentTarget.style.background="rgba(255,255,255,0.15)",k.currentTarget.style.color="#fff"},onMouseLeave:k=>{k.currentTarget.style.background="rgba(255,255,255,0.08)",k.currentTarget.style.color="rgba(255,255,255,0.5)"},children:a.jsx(xr,{"data-loc":"client/src/components/SearchModal.tsx:100",size:14})}),a.jsxs("button",{"data-loc":"client/src/components/SearchModal.tsx:102",onClick:e,"aria-label":"Close search",style:{background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"4px",color:"rgba(255,255,255,0.4)",cursor:"pointer",padding:"0.3rem 0.6rem",fontSize:"0.68rem",fontWeight:700,letterSpacing:"0.06em",display:"flex",alignItems:"center",gap:"0.3rem",flexShrink:0,transition:"all 0.15s"},onMouseEnter:k=>{k.currentTarget.style.background="rgba(255,255,255,0.12)",k.currentTarget.style.color="#fff"},onMouseLeave:k=>{k.currentTarget.style.background="rgba(255,255,255,0.06)",k.currentTarget.style.color="rgba(255,255,255,0.4)"},children:[a.jsx(xr,{"data-loc":"client/src/components/SearchModal.tsx:105",size:11})," ESC"]})]}),a.jsxs("div",{"data-loc":"client/src/components/SearchModal.tsx:109",style:{overflowY:"auto",flex:1},children:[g&&n.length>=2&&a.jsxs("div",{"data-loc":"client/src/components/SearchModal.tsx:113",style:{padding:"1rem 1.5rem"},children:[a.jsx("p",{"data-loc":"client/src/components/SearchModal.tsx:114",style:{fontSize:"0.62rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",color:"rgba(255,255,255,0.25)",margin:"0 0 0.75rem"},children:"Searching..."}),Array.from({length:4}).map((k,P)=>a.jsxs("div",{"data-loc":"client/src/components/SearchModal.tsx:116",style:{display:"flex",alignItems:"center",gap:"0.875rem",padding:"0.7rem 0.75rem",marginBottom:"0.25rem"},children:[a.jsx("div",{"data-loc":"client/src/components/SearchModal.tsx:117",style:{width:"54px",height:"40px",borderRadius:"4px",background:"linear-gradient(90deg, #0a1f3d 25%, #123262 50%, #0a1f3d 75%)",backgroundSize:"200% 100%",animation:"srShimmer 1.4s infinite",flexShrink:0}}),a.jsxs("div",{"data-loc":"client/src/components/SearchModal.tsx:118",style:{flex:1,display:"flex",flexDirection:"column",gap:"0.4rem"},children:[a.jsx("div",{"data-loc":"client/src/components/SearchModal.tsx:119",style:{height:"14px",borderRadius:"3px",background:"linear-gradient(90deg, #0a1f3d 25%, #123262 50%, #0a1f3d 75%)",backgroundSize:"200% 100%",animation:"srShimmer 1.4s infinite",width:`${70+P*7%25}%`}}),a.jsx("div",{"data-loc":"client/src/components/SearchModal.tsx:120",style:{height:"10px",borderRadius:"3px",background:"linear-gradient(90deg, #0a1f3d 25%, #123262 50%, #0a1f3d 75%)",backgroundSize:"200% 100%",animation:"srShimmer 1.4s infinite",width:"40%"}})]})]},P))]}),b&&a.jsxs("div",{"data-loc":"client/src/components/SearchModal.tsx:129",style:{padding:"1rem 1.5rem"},children:[a.jsxs("p",{"data-loc":"client/src/components/SearchModal.tsx:130",style:{fontSize:"0.62rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",color:"rgba(255,255,255,0.25)",margin:"0 0 0.75rem"},children:[f.length+m.length," result",f.length+m.length!==1?"s":"",' for "',n,'"']}),f.map(k=>a.jsxs($,{"data-loc":"client/src/components/SearchModal.tsx:134",href:`/${k.slug}`,onClick:()=>
829{Y2(t),e()},style:{textDecoration:"none",display:"flex",alignItems:"center",gap:"0.875rem",padding:"0.7rem 0.75rem",borderRadius:"6px",transition:"background 0.15s"},onMouseEnter:P=>P.currentTarget.style.background="rgba(44,125,247,0.08)",onMouseLeave:P=>P.currentTarget.style.background="transparent",children:[a.jsx("div",{"data-loc":"client/src/components/SearchModal.tsx:138",style:{width:"54px",height:"40px",borderRadius:"4px",overflow:"hidden",flexShrink:0,background:"#0a1f3d"},children:k.featuredImageUrl&&a.jsx("img",{"data-loc":"client/src/components/SearchModal.tsx:139",src:Je(k.featuredImageUrl),alt:"",style:{width:"100%",height:"100%",objectFit:"cover"},onError:P=>P.currentTarget.style.display="none"})}),a.jsxs("div",{"data-loc":"client/src/components/SearchModal.tsx:141",style:{flex:1,minWidth:0},children:[a.jsx("p",{"data-loc":"client/src/components/SearchModal.tsx:142",style:{fontSize:"0.88rem",fontWeight:600,color:"#fff",margin:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:k.title}),a.jsxs("div",{"data-loc":"client/src/components/SearchModal.tsx:143",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginTop:"0.2rem"},children:[k.categories?.[0]&&a.jsx("span",{"data-loc":"client/src/components/SearchModal.tsx:144",style:{fontSize:"0.58rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"#2c7df7",background:"rgba(44,125,247,0.1)",padding:"1px 5px",borderRadius:"2px"},children:k.categories[0].name}),a.jsx("span",{"data-loc":"client/src/components/SearchModal.tsx:145",style:{fontSize:"0.67rem",color:"rgba(255,255,255,0.3)"},children:S(k.publishedAt)})]})]}),a.jsx(_e,{"data-loc":"client/src/components/SearchModal.tsx:148",size:13,style:{color:"rgba(255,255,255,0.2)",flexShrink:0}})]},k.id)),m.length>0&&a.jsxs(a.Fragment,{children:[a.jsxs("p",{"data-loc":"client/src/components/SearchModal.tsx:153",style:{fontSize:"0.62rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",color:"rgba(255,255,255,0.25)",margin:"1.1rem 0 0.55rem",display:"flex",alignItems:"center",gap:"0.35rem"},children:[a.jsx(RP,{"data-loc":"client/src/components/SearchModal.tsx:153",size:11})," Tezos projects"]}),m.map(k=>a.jsxs($,{"data-loc":"client/src/components/SearchModal.tsx:155",href:`/projects/${k.slug}`,onClick:()=>{Y2(t),e()},style:{textDecoration:"none",display:"flex",alignItems:"center",gap:"0.875rem",padding:"0.7rem 0.75rem",borderRadius:"6px",transition:"background 0.15s"},onMouseEnter:P=>P.currentTarget.style.background="rgba(44,125,247,0.08)",onMouseLeave:P=>P.currentTarget.style.background="transparent",children:[a.jsx("div",{"data-loc":"client/src/components/SearchModal.tsx:156",style:{width:"54px",height:"40px",borderRadius:"4px",overflow:"hidden",flexShrink:0,background:"#0a1f3d",display:"flex",alignItems:"center",justifyContent:"center",color:"#5a9fff"},children:k.logoUrl?a.jsx("img",{"data-loc":"client/src/components/SearchModal.tsx:157",src:k.logoUrl,alt:"",style:{width:"100%",height:"100%",objectFit:"cover"}}):a.jsx(RP,{"data-loc":"client/src/components/SearchModal.tsx:157",size:18})}),a.jsxs("div",{"data-loc":"client/src/components/SearchModal.tsx:159",style:{flex:1,minWidth:0},children:[a.jsx("p",{"data-loc":"client/src/components/SearchModal.tsx:160",style:{fontSize:"0.88rem",fontWeight:600,color:"#fff",margin:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:k.title}),a.jsx("span",{"data-loc":"client/src/components/SearchModal.tsx:161",style:{display:"inline-block",marginTop:"0.2rem",fontSize:"0.58rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"#2c7df7",background:"rgba(44,125,247,0.1)",padding:"1px 5px",borderRadius:"2px"},children:"Project"})]}),a.jsx(_e,{"data-loc":"client/src/components/SearchModal.tsx:163",size:13,style:{color:"rgba(255,255,255,0.2)",flexShrink:0}})]},k.id))]}),a.jsxs("button",{"data-loc":"client/src/components/SearchModal.tsx:168",onClick:()=>y(t),style:{width:"100%",marginTop:"0.5rem",padding:"0.7rem",background:"rgba(44,125,247,0.07)",border:"1px solid rgba(44,125,247,0.18)",borderRadius:"6px",color:"#2c7df7",fontSize:"0.78rem",fontWeight:700,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:"0.4rem",transition:"all 0.2s"},onMouseEnter:k=>{k.currentTarget.style.background="#2c7df7",k.currentTarget.style.color="#fff"},onMouseLeave:k=>{k.currentTarget.style.background="rgba(44,125,247,0.07)",k.currentTarget.style.color="#2c7df7"},children:['View all results for "',n,'" ',a.jsx(_e,{"data-loc":"client/src/components/SearchModal.tsx:171",size:13})]})]}),v&&a.jsxs("div",{"data-loc":"client/src/components/SearchModal.tsx:177",style:{padding:"3rem 1.5rem",textAlign:"center"},children:[a.jsxs("p",{"data-loc":"client/src/components/SearchModal.tsx:178",style:{fontSize:"1rem",color:"rgba(255,255,255,0.45)",margin:"0 0 0.4rem"},children:['No results for "',n,'"']}),a.jsx("p",{"data-loc":"client/src/components/SearchModal.tsx:179",style:{fontSize:"0.8rem",color:"rgba(255,255,255,0.25)",margin:0},children:"Try different keywords or browse below"})]}),n.length<2&&a.jsxs("div",{"data-loc":"client/src/components/SearchModal.tsx:185",style:{padding:"1.25rem 1.5rem",display:"flex",flexDirection:"column",gap:"1.5rem"},children:[i.length>0&&a.jsxs("div",{"data-loc":"client/src/components/SearchModal.tsx:187",children:[a.jsxs("p",{"data-loc":"client/src/components/SearchModal.tsx:188",style:{fontSize:"0.62rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",color:"rgba(255,255,255,0.25)",margin:"0 0 0.75rem",display:"flex",alignItems:"center",gap:"0.4rem"},children:[a.jsx(oA,{"data-loc":"client/src/components/SearchModal.tsx:189",size:11})," Recent Searches"]}),a.jsx("div",{"data-loc":"client/src/components/SearchModal.tsx:191",style:{display:"flex",flexWrap:"wrap",gap:"0.4rem"},children:i.map(k=>a.jsx("button",{"data-loc":"client/src/components/SearchModal.tsx:193",onClick:()=>{r(k),s(k)},style:{padding:"0.4rem 0.875rem",background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"100px",color:"rgba(255,255,255,0.6)",fontSize:"0.78rem",cursor:"pointer",transition:"all 0.15s"},onMouseEnter:P=>{P.currentTarget.style.background="rgba(44,125,247,0.1)",P.currentTarget.style.borderColor="rgba(44,125,247,0.3)",P.currentTarget.style.color="#fff"},onMouseLeave:P=>{P.currentTarget.style.background="rgba(255,255,255,0.05)",P.currentTarget.style.borderColor="rgba(255,255,255,0.1)",P.currentTarget.style.color="rgba(255,255,255,0.6)"},children:k},k))})]}),a.jsxs("div",{"data-loc":"client/src/components/SearchModal.tsx:202",children:[a.jsxs("p",{"data-loc":"client/src/components/SearchModal.tsx:203",style:{fontSize:"0.62rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",color:"rgba(255,255,255,0.25)",margin:"0 0 0.75rem",display:"flex",alignItems:"center",gap:"0.4rem"},children:[a.jsx(cr,{"data-loc":"client/src/components/SearchModal.tsx:204",size:11})," Popular Topics"]}),a.jsx("div",{"data-loc":"client/src/components/SearchModal.tsx:206",style:{display:"flex",flexWrap:"wrap",gap:"0.4rem"},children:["Etherlink","DeFi","NFT","QuipuSwap","Youves","Governance","Staking","TzEL","Tezos X","Gaming","Adoption","Wallets"].map(k=>a.jsx("button",{"data-loc":"client/src/components/SearchModal.tsx:208",onClick:()=>{r(k),s(k)},style:{padding:"0.4rem 0.875rem",background:"rgba(44,125,247,0.07)",border:"1px solid rgba(44,125,247,0.18)",borderRadius:"100px",color:"#2c7df7",fontSize:"0.78rem",fontWeight:600,cursor:"pointer",transition:"all 0.15s"},onMouseEnter:P=>{P.currentTarget.style.background="#2c7df7",P.currentTarget.style.color="#fff"},onMouseLeave:P=>{P.currentTarget.style.background="rgba(44,125,247,0.07)",P.currentTarget.style.color="#2c7df7"},children:k},k))})]})]})]}),a.jsx("div",{"data-loc":"client/src/components/SearchModal.tsx:221",style:{padding:"0.625rem 1.5rem",borderTop:"1px solid rgba(255,255,255,0.05)",display:"flex",alignItems:"center",gap:"1.5rem"},children:[["âµ","to search"],["ESC","to close"]].map(([k,P])=>a.jsxs("span",{"data-loc":"client/src/components/SearchModal.tsx:223",style:{fontSize:"0.62rem",color:"rgba(255,255,255,0.2)",display:"flex",alignItems:"center",gap:"0.35rem"},children:[a.jsx("kbd",{"data-loc":"client/src/components/SearchModal.tsx:224",style:{background:"rgba(255,255,255,0.07)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"3px",padding:"1px 5px",fontSize:"0.58rem",fontFamily:"inherit"},children:k}),P]},k))})]}),a.jsx("style",{"data-loc":"client/src/components/SearchModal.tsx:231",children:` 830 @keyframes srFadeIn { from { opacity:0 } to { opacity:1 } } 831 @keyframes srSlideDown { from { transform:translateY(-16px); opacity:0 } to { transform:translateY(0); opacity:1 } } 832 @keyframes srSpin { to { transform:rotate(360deg) } } 833 @keyframes srShimmer { 0% { background-position:200% 0 } 100% { background-position:-200% 0 } } 834 `})]})}function _ne(e){return e>
834=1e3?`$${e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`:e>=1?`$${e.toFixed(4)}`:e>=1e-4?`$${e.toFixed(4)}`:`$${e.toExponential(2)}`}function Ine(e){return`${e>=0?"+":""}${e.toFixed(2)}%`}function Bne({data:e,isUp:t}){if(!e||e.length<2)return null;const r=48,n=20,s=Math.min(...e),o=Math.max(...e)-s||1,l=e.map((d,u)=>{const g=u/(e.length-1)*r,f=n-(d-s)/o*n;return`${g.toFixed(1)},${f.toFixed(1)}`}).join(" ");return a.jsx("svg",{"data-loc":"client/src/components/PriceTicker.tsx:30",width:r,height:n,viewBox:`0 0 ${r} ${n}`,style:{flexShrink:0},children:a.jsx("polyline",{"data-loc":"client/src/components/PriceTicker.tsx:31",points:l,fill:"none",stroke:t?"#4ade80":"#f87171",strokeWidth:"1.5",strokeLinejoin:"round",strokeLinecap:"round"})})}function Lne(){const[,e]=Sa(),{data:t=[],isLoading:r}=ee.prices.tezosTokens.useQuery(void 0,{refetchInterval:9e4,staleTime:6e4});if(r||t.length===0)return null;const n=[...t,...t];return a.jsxs("div",{"data-loc":"client/src/components/PriceTicker.tsx:56",style:{background:"#0a1f3d",borderBottom:"1px solid rgba(255,255,255,0.08)",overflow:"hidden",height:"36px",display:"flex",alignItems:"center"},children:[a.jsx("div",{"data-loc":"client/src/components/PriceTicker.tsx:65",style:{flexShrink:0,padding:"0 0.875rem",fontSize:"0.6rem",fontWeight:900,letterSpacing:"0.12em",textTransform:"uppercase",color:"#fff",background:"#2c7df7",height:"100%",display:"flex",alignItems:"center",whiteSpace:"nowrap",zIndex:2},children:"TEZOS TOKENS"}),a.jsx("div",{"data-loc":"client/src/components/PriceTicker.tsx:84",style:{flex:1,overflow:"hidden",position:"relative",maskImage:"linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%)",WebkitMaskImage:"linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%)"},children:a.jsx("div",{"data-loc":"client/src/components/PriceTicker.tsx:91",className:"ticker-track",style:{display:"flex",alignItems:"center",animation:"ticker-scroll 80s linear infinite",width:"max-content"},children:n.map((s,i)=>{const o=s.change24h>=0,l=s.sparkline??[];return a.jsxs("button",{"data-loc":"client/src/components/PriceTicker.tsx:104",onClick:()=>e("/prices"),style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",padding:"0 1.25rem",borderRight:"1px solid rgba(255,255,255,0.07)",height:"36px",whiteSpace:"nowrap",textDecoration:"none",background:"none",border:"none",transition:"background 0.15s",cursor:"pointer"},onMouseEnter:d=>d.currentTarget.style.background="rgba(44,125,247,0.12)",onMouseLeave:d=>d.currentTarget.style.background="transparent",children:[s.image&&a.jsx("img",{"data-loc":"client/src/components/PriceTicker.tsx:126",src:s.image,alt:s.symbol,style:{width:"14px",height:"14px",borderRadius:"50%",flexShrink:0},onError:d=>d.currentTarget.style.display="none"}),a.jsx("span",{"data-loc":"client/src/components/PriceTicker.tsx:135",style:{fontSize:"0.7rem",fontWeight:700,color:"#fff",letterSpacing:"0.03em"},children:s.symbol}),a.jsx("span",{"data-loc":"client/src/components/PriceTicker.tsx:140",style:{fontSize:"0.7rem",color:"rgba(255,255,255,0.75)",fontVariantNumeric:"tabular-nums"},children:_ne(s.price)}),l.length>=2&&a.jsx(Bne,{"data-loc":"client/src/components/PriceTicker.tsx:146",data:l,isUp:o}),a.jsxs("span",{"data-loc":"client/src/components/PriceTicker.tsx:150",style:{fontSize:"0.65rem",fontWeight:600,color:o?"#4ade80":"#f87171",display:"flex",alignItems:"center",gap:"0.1rem"},children:[o?a.jsx(cr,{"data-loc":"client/src/components/PriceTicker.tsx:158",size:10}):a.jsx(Ha,{"data-loc":"client/src/components/PriceTicker.tsx:158",size:10}),Ine(s.change24h)]})]},`${s.id}-${i}`)})})}),a.jsx("style",{"data-loc":"client/src/components/PriceTicker.tsx:167",children:` 835 @keyframes ticker-scroll { 836 0% { transform: translateX(0); } 837 100% { transform: translateX(-50%); } 838 } 839 .ticker-track:hover { 840 animation-play-state: paused; 841 } 842 `})]})}const hE="xtz_breaking_news_dismissed";function Wne(){const{data:e}=ee.settings.getBreakingNews.useQuery(void 0,{staleTime:3e5}),[t,r]=E.useState(!1),[n,s]=E.useState(!1);E.useEffect(()=>{if(!e?.text)return;try{if(sessionStorage.getItem(hE)===e.text){r(!0);return}}catch{}const l=setTimeout(()=>s(!0),80);return()=>clearTimeout(l)},[e?.text]);const i=()=>{s(!1),setTimeout(()=>{try{sessionStorage.setItem(hE,e?.text||"")}catch{}r(!0)},300)};if(!e?.active||!e?.text||t)return null;const o=a.jsxs("div",{"data-loc":"client/src/components/BreakingNewsBanner.tsx:45",style:{display:"flex",alignItems:"center",gap:"0.6rem",flex:1,minWidth:0},children:[a.jsxs("div",{"data-loc":"client/src/components/BreakingNewsBanner.tsx:4
8426",style:{display:"flex",alignItems:"center",gap:"0.4rem",flexShrink:0},children:[a.jsx(ko,{"data-loc":"client/src/components/BreakingNewsBanner.tsx:47",size:13,style:{color:"#fbbf24",animation:"zapPulse 1.5s ease-in-out infinite"}}),a.jsx("span",{"data-loc":"client/src/components/BreakingNewsBanner.tsx:54",style:{fontSize:"0.6rem",fontWeight:900,textTransform:"uppercase",letterSpacing:"0.12em",color:"#fbbf24",background:"rgba(251,191,36,0.15)",padding:"2px 7px",borderRadius:"2px",border:"1px solid rgba(251,191,36,0.3)",whiteSpace:"nowrap"},children:"Breaking"})]}),a.jsx("p",{"data-loc":"client/src/components/BreakingNewsBanner.tsx:63",style:{margin:0,fontSize:"0.82rem",fontWeight:600,color:"#fff",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.text}),e.url&&a.jsx("span",{"data-loc":"client/src/components/BreakingNewsBanner.tsx:70",style:{fontSize:"0.75rem",fontWeight:700,color:"#fbbf24",whiteSpace:"nowrap",flexShrink:0},children:"Read more â"})]});return a.jsxs(a.Fragment,{children:[a.jsx("style",{"data-loc":"client/src/components/BreakingNewsBanner.tsx:80",children:` 843 @keyframes zapPulse { 844 0%, 100% { opacity: 1; transform: scale(1); } 845 50% { opacity: 0.7; transform: scale(1.15); } 846 } 847 @keyframes bannerShimmer { 848 0% { background-position: -200% center; } 849 100% { background-position: 200% center; } 850 } 851 `}),a.jsxs("div",{"data-loc":"client/src/components/BreakingNewsBanner.tsx:91",style:{background:"linear-gradient(90deg, #1a0a00 0%, #2d1500 50%, #1a0a00 100%)",borderBottom:"1px solid rgba(251,191,36,0.3)",position:"relative",zIndex:50,overflow:"hidden",maxHeight:n?"60px":"0px",opacity:n?1:0,transition:"max-height 0.35s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease-out"},children:[a.jsx("div",{"data-loc":"client/src/components/BreakingNewsBanner.tsx:105",style:{position:"absolute",inset:0,background:"linear-gradient(90deg, transparent 0%, rgba(251,191,36,0.04) 50%, transparent 100%)",backgroundSize:"200% 100%",animation:"bannerShimmer 3s linear infinite",pointerEvents:"none"}}),a.jsxs("div",{"data-loc":"client/src/components/BreakingNewsBanner.tsx:116",className:"container",style:{display:"flex",alignItems:"center",gap:"0.75rem",padding:"0.6rem 1.25rem",position:"relative"},children:[e.url?a.jsx($,{"data-loc":"client/src/components/BreakingNewsBanner.tsx:127",href:e.url,style:{textDecoration:"none",flex:1,minWidth:0,display:"flex"},children:o}):a.jsx("div",{"data-loc":"client/src/components/BreakingNewsBanner.tsx:131",style:{flex:1,minWidth:0,display:"flex"},children:o}),a.jsx("button",{"data-loc":"client/src/components/BreakingNewsBanner.tsx:135",onClick:i,"aria-label":"Dismiss breaking news",style:{background:"none",border:"none",cursor:"pointer",color:"rgba(255,255,255,0.4)",padding:"0.2rem",flexShrink:0,display:"flex",alignItems:"center",transition:"color 0.15s, transform 0.15s"},onMouseEnter:l=>{l.currentTarget.style.color="#fff",l.currentTarget.style.transform="rotate(90deg)"},onMouseLeave:l=>{l.currentTarget.style.color="rgba(255,255,255,0.4)",l.currentTarget.style.transform="rotate(0deg)"},children:a.jsx(xr,{"data-loc":"client/src/components/BreakingNewsBanner.tsx:153",size:14})})]})]})]})}function $ne({children:e}){const[t,r]=E.useState(!1),[n,s]=E.useState(!1),[i]=Sa();E.useEffect(()=>{window.scrollTo({top:0,behavior:"instant"})},[i]),E.useEffect(()=>{const l=()=>r(window.scrollY>400);return window.addEventListener("scroll",l,{passive:!0}),()=>window.removeEventListener("scroll",l)},[]),E.useEffect(()=>{const l=d=>{const u=d.target,g=u?.tagName==="INPUT"||u?.tagName==="TEXTAREA"||u?.isContentEditable;if(d.key==="Escape"&&n){s(!1);return}const f=(d.metaKey||d.ctrlKey)&&d.key.toLowerCase()==="k",m=d.key==="/"&&!d.metaKey&&!d.ctrlKey&&!d.altKey;!g&&(f||m)&&(d.preventDefault(),s(!0))};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[n]);const o=()=>{window.scrollTo({top:0,behavior:"smooth"})};return a.jsxs("div",{"data-loc":"client/src/components/Layout.tsx:60",className:"flex flex-col min-h-screen",style:{background:"var(--body-bg)"},children:[a.jsx("a",{"data-loc":"client/src/components/Layout.t
851sx:61",className:"skip-link",href:"#main-content",children:"Skip to main content"}),a.jsx(Wne,{"data-loc":"client/src/components/Layout.tsx:62"}),a.jsxs("div",{"data-loc":"client/src/components/Layout.tsx:63",className:"sticky top-0 z-50",children:[a.jsx(Lne,{"data-loc":"client/src/components/Layout.tsx:64"}),a.jsx(Mne,{"data-loc":"client/src/components/Layout.tsx:65",onSearchOpen:()=>s(!0)})]}),a.jsx("main",{"data-loc":"client/src/components/Layout.tsx:68",id:"main-content",tabIndex:-1,className:"flex-1",children:e}),a.jsx(Rne,{"data-loc":"client/src/components/Layout.tsx:70"}),a.jsx("button",{"data-loc":"client/src/components/Layout.tsx:73",onClick:o,className:`scroll-top-btn ${t?"visible":""}`,"aria-label":"Scroll to top",children:a.jsx(Jf,{"data-loc":"client/src/components/Layout.tsx:78",size:18})}),n&&a.jsx(Dne,{"data-loc":"client/src/components/Layout.tsx:82",onClose:()=>s(!1)})]})}function Um(e){return e?new Date(e).toLocaleDateString("en-GB",{day:"numeric",month:"long",year:"numeric"}):""}function Fne(e){return e.replace(/<[^>]*>/g,"").replace(/&[a-z]+;/gi," ").trim()}function Z2({src:e,alt:t,className:r,style:n}){const[s,i]=E.useState(!1),o=Je(e),l=o.startsWith("/media/");return s&&!l?a.jsx("div",{"data-loc":"client/src/components/PostCard.tsx:43",className:r,style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",display:"flex",alignItems:"center",justifyContent:"center",...n},children:a.jsxs("svg",{"data-loc":"client/src/components/PostCard.tsx:44",width:"32",height:"32",viewBox:"0 0 40 40",fill:"none",opacity:"0.15",children:[a.jsx("rect",{"data-loc":"client/src/components/PostCard.tsx:45",width:"40",height:"40",rx:"6",fill:"#2c7df7"}),a.jsx("text",{"data-loc":"client/src/components/PostCard.tsx:46",x:"20",y:"28",textAnchor:"middle",fill:"white",fontSize:"18",fontWeight:"900",fontFamily:"Arial",children:"X"})]})}):a.jsx("img",{"data-loc":"client/src/components/PostCard.tsx:52",src:o,alt:t,className:r,style:n,onError:()=>{l||i(!0)}})}function ms({post:e,variant:t="default"}){const r=e.categories?.[0],n=e.excerpt?Fne(e.excerpt).slice(0,160):"";return t==="hero"?a.jsxs("article",{"data-loc":"client/src/components/PostCard.tsx:68",className:"relative h-full group overflow-hidden rounded",children:[a.jsxs("div",{"data-loc":"client/src/components/PostCard.tsx:70",className:"absolute inset-0",children:[e.featuredImageUrl?a.jsx(Z2,{"data-loc":"client/src/components/PostCard.tsx:72",src:e.featuredImageUrl,alt:e.title,className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-105"}):a.jsx("div",{"data-loc":"client/src/components/PostCard.tsx:78",className:"w-full h-full",style:{background:"var(--xtz-navy)"}}),a.jsx("div",{"data-loc":"client/src/components/PostCard.tsx:80",className:"absolute inset-0",style:{background:"linear-gradient(to top, rgba(5,21,46,0.95) 0%, rgba(5,21,46,0.5) 50%, transparent 100%)"}})]}),a.jsxs("div",{"data-loc":"client/src/components/PostCard.tsx:90",className:"relative h-full flex flex-col justify-end p-5",children:[r&&a.jsxs($,{"data-loc":"client/src/components/PostCard.tsx:92",href:`/category/${r.slug}`,className:"cat-tag mb-2 self-start",children:[a.jsx(tc,{"data-loc":"client/src/components/PostCard.tsx:93",size:9,className:"cat-tag-icon"}),r.name.toUpperCase()]}),a.jsx($,{"data-loc":"client/src/components/PostCard.tsx:97",href:`/${e.slug}`,children:a.jsx("h2",{"data-loc":"client/src/components/PostCard.tsx:98",className:"text-lg font-bold text-white leading-snug mb-2 group-hover:text-blue-300 transition-colors line-clamp-3",children:e.title})}),n&&a.jsx("p",{"data-loc":"client/src/components/PostCard.tsx:103",className:"text-sm text-white/60 line-clamp-2 mb-3",children:n}),a.jsxs("div",{"data-loc":"client/src/components/PostCard.tsx:105",className:"flex items-center justify-between",children:[a.jsx("span",{"data-loc":"client/src/components/PostCard.tsx:106",className:"text-xs text-white/40",children:Um(e.publishedAt)}),a.jsx($,{"data-loc":"client/src/components/PostCard.tsx:107",href:`/${e.slug}`,className:"btn-read-more text-xs py-1.5 px-3",children:"READ MORE"})]})]})]}):t==="horizontal"?a.jsxs("article",{"data-loc":"client/src/components/Post
851Card.tsx:118",className:"flex gap-3 group",children:[a.jsx($,{"data-loc":"client/src/components/PostCard.tsx:119",href:`/${e.slug}`,className:"shrink-0",children:e.featuredImageUrl?a.jsx(Z2,{"data-loc":"client/src/components/PostCard.tsx:121",src:e.featuredImageUrl,alt:e.title,className:"w-20 h-14 object-cover rounded transition-opacity group-hover:opacity-80"}):a.jsx("div",{"data-loc":"client/src/components/PostCard.tsx:127",className:"w-20 h-14 rounded flex items-center justify-center",style:{background:"var(--xtz-navy)"},children:a.jsx("span",{"data-loc":"client/src/components/PostCard.tsx:128",style:{color:"rgba(255,255,255,0.1)",fontSize:"0.5rem",fontWeight:700},children:"XTZ"})})}),a.jsxs("div",{"data-loc":"client/src/components/PostCard.tsx:132",className:"flex-1 min-w-0",children:[r&&a.jsx($,{"data-loc":"client/src/components/PostCard.tsx:134",href:`/category/${r.slug}`,className:"cat-tag mb-1 inline-flex",children:r.name.toUpperCase()}),a.jsx($,{"data-loc":"client/src/components/PostCard.tsx:138",href:`/${e.slug}`,children:a.jsx("h3",{"data-loc":"client/src/components/PostCard.tsx:139",className:"text-sm font-semibold text-white leading-snug line-clamp-2 group-hover:text-blue-300 transition-colors",children:e.title})}),a.jsx("p",{"data-loc":"client/src/components/PostCard.tsx:143",className:"text-xs text-white/40 mt-1",children:Um(e.publishedAt)})]})]}):t==="compact"?a.jsxs("article",{"data-loc":"client/src/components/PostCard.tsx:151",className:"group",children:[a.jsx($,{"data-loc":"client/src/components/PostCard.tsx:152",href:`/${e.slug}`,children:a.jsx("h3",{"data-loc":"client/src/components/PostCard.tsx:153",className:"text-sm font-semibold text-white/80 leading-snug line-clamp-2 group-hover:text-white transition-colors",children:e.title})}),a.jsx("p",{"data-loc":"client/src/components/PostCard.tsx:157",className:"text-xs text-white/40 mt-1",children:Um(e.publishedAt)})]}):a.jsxs("article",{"data-loc":"client/src/components/PostCard.tsx:164",className:"news-card group flex flex-col h-full",children:[a.jsx($,{"data-loc":"client/src/components/PostCard.tsx:166",href:`/${e.slug}`,className:"block overflow-hidden aspect-[16/9] shrink-0",children:e.featuredImageUrl?a.jsx(Z2,{"data-loc":"client/src/components/PostCard.tsx:168",src:e.featuredImageUrl,alt:e.title,className:"w-full h-full object-cover transition-transform duration-400 group-hover:scale-105"}):a.jsx("div",{"data-loc":"client/src/components/PostCard.tsx:174",className:"w-full h-full flex items-center justify-center",style:{background:"var(--xtz-navy)"},children:a.jsx("span",{"data-loc":"client/src/components/PostCard.tsx:178",className:"text-white/20 text-xs font-bold uppercase tracking-widest",children:"XTZ.News"})})}),a.jsxs("div",{"data-loc":"client/src/components/PostCard.tsx:184",className:"flex flex-col flex-1 p-4",children:[e.categories&&e.categories.length>0&&a.jsx("div",{"data-loc":"client/src/components/PostCard.tsx:187",className:"flex flex-wrap gap-1.5 mb-2",children:e.categories.slice(0,3).map(s=>a.jsxs($,{"data-loc":"client/src/components/PostCard.tsx:189",href:`/category/${s.slug}`,className:"cat-tag",children:[a.jsx(tc,{"data-loc":"client/src/components/PostCard.tsx:190",size:9,className:"cat-tag-icon"}),s.name.toUpperCase()]},s.id))}),a.jsx($,{"data-loc":"client/src/components/PostCard.tsx:198",href:`/${e.slug}`,className:"flex-1",children:a.jsx("h3",{"data-loc":"client/src/components/PostCard.tsx:199",className:"font-bold text-white leading-snug line-clamp-3 group-hover:text-blue-300 transition-colors text-base",children:e.title})}),n&&a.jsx("p",{"data-loc":"client/src/components/PostCard.tsx:206",className:"text-sm text-white/50 line-clamp-2 mt-2",children:n}),a.jsxs("div",{"data-loc":"client/src/components/PostCard.tsx:210",className:"flex items-center justify-between mt-3 pt-3 border-t border-white/8",children:[a.jsx("span",{"data-loc":"client/src/components/PostCard.tsx:211",className:"text-xs text-white/40",children:Um(e.publishedAt)}),a.jsx($,{"data-loc":"client/src/components/PostCard.tsx:212",href:`/${e.slug}`,className:"btn-read-more text-xs py-1 px-2.5",children:"READ MORE"})]})]})]})}const Hne=["etherlink","tokenization","stablecoins","payments","lending","dao","wallets","authentication","acurast","quipuswap","plenty","youves-news","objkt-ne
851ws","hicetnunc-news","games","art","adoption","environmental"],qne=new Set(["latest-news"]);function Une(e){const t=new Map(Hne.map((r,n)=>[r,n]));return e.filter(r=>(r.postCount??0)>0&&!qne.has(r.slug)).sort((r,n)=>{const s=t.get(r.slug)??Number.MAX_SAFE_INTEGER,i=t.get(n.slug)??Number.MAX_SAFE_INTEGER;return s!==i?s-i:(n.postCount??0)-(r.postCount??0)})}function Gne(e){return!e.isAuthenticated&&!e.loading?"guest":e.feedLoading?"loading":e.followedCount===0?"chooseTopics":e.postCount===0?"emptyFeed":"stories"}function Vne(e,t){return`${t?"Unfollow":"Follow"} ${e}`}function Xne(){return a.jsx("p",{"data-loc":"client/src/components/ForYouControls.tsx:6",role:"status","aria-live":"polite",style:{margin:"0 0 0.65rem",color:"rgba(255,255,255,0.68)",fontSize:"0.78rem"},children:"New stories from your followed topics will appear here as they are published. You can adjust your topics below."})}function J2({name:e,following:t,onToggle:r,disabled:n=!1,compact:s=!1}){return a.jsxs("button",{"data-loc":"client/src/components/ForYouControls.tsx:26",type:"button",onClick:r,disabled:n,"aria-pressed":t,"aria-label":Vne(e,t),style:{padding:s?"0.4rem 0.58rem":"0.42rem 0.6rem",border:`1px solid ${t?"rgba(54,211,153,0.6)":"rgba(255,255,255,0.14)"}`,background:t?"rgba(54,211,153,0.12)":"rgba(255,255,255,0.045)",color:t?"#5fe4b1":"rgba(255,255,255,0.78)",borderRadius:"999px",cursor:"pointer",fontSize:s?"0.68rem":"0.7rem",fontWeight:700},children:[t?"â ":"+ ",e]})}function Kne(e){if(!e)return"Recently";const t=Math.max(0,Date.now()-new Date(e).getTime()),r=Math.floor(t/36e5);return r<1?"Just now":r<24?`${r}h ago`:`${Math.floor(r/24)}d ago`}function Qne(){const{isAuthenticated:e,loading:t}=Wr(),r=ee.useUtils(),{data:n=[]}=ee.categories.all.useQuery(),{data:s,isLoading:i}=ee.preferences.forYou.useQuery({limit:4},{enabled:e}),o=s?.followedCategories??[],l=s?.posts??[],d=Gne({isAuthenticated:e,loading:t,feedLoading:i,followedCount:o.length,postCount:l.length}),u=E.useMemo(()=>new Set(o.map(b=>b.id)),[o]),g=ee.preferences.toggleCategory.useMutation({onSuccess:async()=>{await Promise.all([r.preferences.followedCategories.invalidate(),r.preferences.forYou.invalidate()])}}),f=(b,v)=>{if(!e){IP();return}g.mutate({categoryId:b,following:v})},m=E.useMemo(()=>Une(n),[n]),y=m.slice(0,12),S=m.slice(12);return a.jsx("section",{"data-loc":"client/src/components/ForYouFeed.tsx:63","aria-labelledby":"for-you-heading",style:{background:"#020914",padding:"1.25rem 0 0"},children:a.jsx("div",{"data-loc":"client/src/components/ForYouFeed.tsx:64",className:"container",children:a.jsxs("div",{"data-loc":"client/src/components/ForYouFeed.tsx:65",style:{border:"1px solid rgba(44,125,247,0.28)",borderRadius:"10px",padding:"1rem",background:"linear-gradient(135deg, rgba(20,75,156,0.18), rgba(5,21,46,0.95) 48%, rgba(5,21,46,0.98))"},children:[a.jsxs("div",{"data-loc":"client/src/components/ForYouFeed.tsx:66",style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:"1rem",flexWrap:"wrap",marginBottom:e&&o.length>0?"0.9rem":0},children:[a.jsxs("div",{"data-loc":"client/src/components/ForYouFeed.tsx:67",style:{display:"flex",alignItems:"flex-start",gap:"0.7rem"},children:[a.jsx("div",{"data-loc":"client/src/components/ForYouFeed.tsx:68",style:{width:"32px",height:"32px",display:"grid",placeItems:"center",borderRadius:"8px",background:"rgba(44,125,247,0.2)",color:"#8ebdff",flexShrink:0},children:a.jsx(Fu,{"data-loc":"client/src/components/ForYouFeed.tsx:68",size:17})}),a.jsxs("div",{"data-loc":"client/src/components/ForYouFeed.tsx:69",children:[a.jsx("h2",{"data-loc":"client/src/components/ForYouFeed.tsx:70",id:"for-you-heading",style:{margin:0,fontSize:"0.95rem",color:"#fff",fontWeight:900,letterSpacing:"0.04em",textTransform:"uppercase"},children:"For You"}),a.jsx("p",{"data-loc":"client/src/components/ForYouFeed.tsx:71",style:{margin:"0.25rem 0 0",color:"rgba(255,255,255,0.56)",fontSize:"0.76rem",lineHeight:1.45},children:e&&o.length>0?`Fresh reporting from ${o.map(b=>b.name).slice(0,3).join(", ")}${o.length>3?" and more":""}.`:"Follow the Tezos topics you care about to shape this feed."})]})]}),!e&&!t&&a.jsxs("button",{"data-loc":"client/src/components/ForYouFeed.tsx:79",type:"button",onClick:()=>{IP()},style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",padding:"0.5rem 0.7rem",border:"1px solid rgba(44,125,247,0.6)",borderRadius:"6px",color:"#a7c9ff",background:"rgba(44,125,247,0.12)",fontSize:"0.7rem",fontWeight:800,cursor:"pointer"},children:[a.jsx(iA,{"data-loc":"client/src/components/ForYouFeed.tsx:79",size:13})," Sign in to personalise"]})]}),d==="guest"?null:d==="loading"?a.jsx("div",{"data-loc":"client/src/components/ForYouFeed.tsx:84",style:{display:"grid",gridTemplateColumns:"repeat(4, minmax(0, 1fr))",gap:"0.6rem",marginTop:"0.9rem"},children:Array.from({length:4}).map((b,v)=>a.jsx("div",{"data-loc":"client/src/components/ForYouFeed.tsx:85",className:"skeleton",style:{height:"68px",borderRadius:"6px"}},v))}):d==="chooseTopics"?a.jsxs("div",{"data-loc":"client/src/components/ForYouFeed.tsx:88",style:{marginTop:"0.9rem"},children:[a.jsx("p",{"data-loc":"client/src/components/ForYouFeed.tsx:89",style:{margin:"0 0 0.55rem",color:"rgba(255,255,255,0.42)",fontSize:"0.68rem",fontWeight:800,textTransform:"uppercase",letterSpacing:"0.1em"},children:"Choose your crypto & ecosystem topics"}),a.jsx("div",{"data-loc":"client/src/components/ForYouFeed.tsx:90",style:{display:"flex",gap:"0.45rem",flexWrap:"wrap"},children:y.map(b=>a.jsx(J2,{"data-loc":"client/src/components/ForYouFeed.tsx:91",name:b.name,following:!1,onToggle:()=>f(b.id,!0),disabled:g.isPending},b.id))})]}):a.jsxs(a.Fragment,{children:[d==="emptyFeed"?a.jsx(Xne,{"data-loc":"client/src/components/ForYouFeed.tsx:96"}):a.jsx("div",{"data-loc":"client/src/components/ForYouFeed.tsx:96",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(205px, 1fr))",gap:"0.55rem"},children:l.map(b=>a.jsxs($,{"data-loc":"client/src/components/ForYouFeed.tsx:98",href:`/${b.slug}`,style:{display:"flex",gap:"0.6rem",minWidth:0,padding:"0.55rem",borderRadius:"6px",textDecoration:"none",background:"rgba(255,255,255,0.035)",border:"1px solid rgba(255,255,255,0.07)"},children:[b.featuredImageUrl?a.jsx("img",{"data-loc":"client/src/components/ForYouFeed.tsx:99",src:Je(b.featuredImageUrl),alt:"",style:{width:"50px",height:"50px",borderRadius:"4px",objectFit:"cover",flexShrink:0}}):a.jsx("div",{"data-loc":"client/src/components/ForYouFeed.tsx:99",style:{width:"50px",height:"50px",borderRadius:"4px",background:"#0b2548",flexShrink:0}}),a.jsxs("div",{"data-loc":"client/src/components/ForYouFeed.tsx:100",style:{minWidth:0},children:[a.jsx("p",{"data-loc":"client/src/components/ForYouFeed.tsx:101",style:{margin:0,color:"#fff",fontSize:"0.74rem",lineHeight:1.32,fontWeight:800,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:b.title}),a.jsxs("span",{"data-loc":"client/src/components/ForYouFeed.tsx:102",style:{display:"block",marginTop:"0.3rem",color:"rgba(255,255,255,0.42)",fontSize:"0.62rem"},children:[b.categories[0]?.name??"Tezos News"," · ",Kne(b.publishedAt)]})]})]},b.id))}),a.jsxs("details",{"data-loc":"client/src/components/ForYouFeed.tsx:107",style:{marginTop:"0.75rem"},children:[a.jsxs("summary",{"data-loc":"client/src/components/ForYouFeed.tsx:108",style:{cursor:"pointer",color:"#93bfff",fontSize:"0.7rem",fontWeight:800,listStyle:"none",display:"inline-flex",alignItems:"center",gap:"0.3rem"}
851,children:["Manage crypto topics (",m.length,") ",a.jsx(_e,{"data-loc":"client/src/components/ForYouFeed.tsx:108",size:12})]}),a.jsx("div",{"data-loc":"client/src/components/ForYouFeed.tsx:109",style:{display:"flex",gap:"0.4rem",flexWrap:"wrap",marginTop:"0.65rem"},children:y.map(b=>{const v=u.has(b.id);return a.jsx(J2,{"data-loc":"client/src/components/ForYouFeed.tsx:112",name:b.name,following:v,onToggle:()=>f(b.id,!v),disabled:g.isPending,compact:!0},b.id)})}),S.length>0&&a.jsxs("details",{"data-loc":"client/src/components/ForYouFeed.tsx:116",style:{marginTop:"0.65rem"},children:[a.jsxs("summary",{"data-loc":"client/src/components/ForYouFeed.tsx:117",style:{cursor:"pointer",color:"rgba(255,255,255,0.58)",fontSize:"0.66rem",fontWeight:800,listStyle:"none"},children:["More Tezos topics (",S.length,")"]}),a.jsx("div",{"data-loc":"client/src/components/ForYouFeed.tsx:118",style:{display:"flex",gap:"0.4rem",flexWrap:"wrap",marginTop:"0.55rem"},children:S.map(b=>{const v=u.has(b.id);return a.jsx(J2,{"data-loc":"client/src/components/ForYouFeed.tsx:121",name:b.name,following:v,onToggle:()=>f(b.id,!v),disabled:g.isPending,compact:!0},b.id)})})]})]})]})]})})})}function Yne(){const[e,t]=E.useState(""),[,r]=Sa(),{data:n=[]}=ee.categories.all.useQuery(),s=n.filter(o=>(o.postCount??0)>=5).slice(0,10),i=o=>{o.preventDefault(),e.trim()&&r(`/search?q=${encodeURIComponent(e.trim())}`)};return a.jsx("div",{"data-loc":"client/src/components/HomepageFilters.tsx:22",style:{background:"#05152e",borderBottom:"1px solid rgba(255,255,255,0.08)",padding:"1rem 0"},children:a.jsxs("div",{"data-loc":"client/src/components/HomepageFilters.tsx:23",className:"container",style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"1rem"},children:[a.jsxs("form",{"data-loc":"client/src/components/HomepageFilters.tsx:25",onSubmit:i,style:{position:"relative",flex:"0 0 280px"},children:[a.jsx(ft,{"data-loc":"client/src/components/HomepageFilters.tsx:26",size:14,style:{position:"absolute",left:"0.75rem",top:"50%",transform:"translateY(-50%)",color:"rgba(255,255,255,0.4)",pointerEvents:"none"}}),a.jsx("input",{"data-loc":"client/src/components/HomepageFilters.tsx:27",type:"text",value:e,onChange:o=>t(o.target.value),placeholder:"Search articles...",style:{width:"100%",padding:"0.55rem 1rem 0.55rem 2.25rem",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"3px",color:"#fff",fontSize:"0.8rem",outline:"none",fontFamily:"inherit",transition:"border-color 0.2s"},onFocus:o=>o.currentTarget.style.borderColor="#2c7df7",onBlur:o=>o.currentTarget.style.borderColor="rgba(255,255,255,0.12)"})]}),a.jsx("div",{"data-loc":"client/src/components/HomepageFilters.tsx:50",style:{width:"1px",height:"24px",background:"rgba(255,255,255,0.12)",flexShrink:0}}),a.jsxs("div",{"data-loc":"client/src/components/HomepageFilters.tsx:53",style:{display:"flex",flexWrap:"wrap",gap:"0.4rem",flex:1},children:[s.map(o=>a.jsx("a",{"data-loc":"client/src/components/HomepageFilters.tsx:55",href:`/category/${o.slug}`,style:{fontSize:"0.65rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",padding:"0.3rem 0.7rem",borderRadius:"2px",background:"rgba(44,125,247,0.1)",color:"rgba(255,255,255,0.7)",border:"1px solid rgba(44,125,247,0.2)",textDecoration:"none",transition:"all 0.2s",whiteSpace:"nowrap"},onMouseEnter:l=>{l.currentTarget.style.background="#2c7df7",l.currentTarget.style.color="#fff",l.currentTarget.style.borderColor="#2c7df7"},onMouseLeave:l=>{l.currentTarget.style.background="rgba(44,125,247,0.1)",l.currentTarget.style.color="rgba(255,255,255,0.7)",l.currentTarget.style.borderColor="rgba(44,125,247,0.2)"},children:o.name},o.id)),a.jsx("a",{"data-loc":"client/src/components/HomepageFilters.tsx:86",href:"/categories",style:{fontSize:"0.65rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",padding:"0.3rem 0.7rem",borderRadius:"2px",background:"transparent",color:"rgba(255,255,255,0.4)",border:"1px solid rgba(255,255,255,0.12)",textDecoration:"none",transition:"all 0.2s",whiteSpace:"nowrap"},onMouseEnter:o=>{o.currentTarget.style.color="#fff",o.currentTarget.style.borderColor="rgba(255,255,255,0.3)"},onMouseLeave:o=>{o.currentTarget.style.color="rgba(255,255,255,0.4)",o.currentTarget.style.borderColor="rgba(255,255,255,0.12)"},children:"All Categories â"})]})]})})}const Zne=[{label:"Network & health",description:"Consensus, finality and live chain context",href:"https://tezos.systems/",icon:gre},{label:"Capital",description:"Tezos and Etherlink market intelligence",href:"https://tezos.systems/capital/",icon:dA},{label:"Bakers",description:"Validator capacity and staking signals",href:"https://tezos.systems/bakers/",
851icon:jre},{label:"Governance",description:"Current votes and protocol history",href:"https://tezos.systems/governance/",icon:Un}];function Jne(){return a.jsx("section",{"data-loc":"client/src/components/TezosSystemsNetworkPulse.tsx:33","aria-labelledby":"network-pulse-title",style:{background:"#05152e",borderTop:"1px solid rgba(44,125,247,0.24)",borderBottom:"1px solid rgba(44,125,247,0.18)",padding:"2.25rem 0"},children:a.jsx("div",{"data-loc":"client/src/components/TezosSystemsNetworkPulse.tsx:37",className:"container",style:{padding:"0 1.25rem"},children:a.jsxs("div",{"data-loc":"client/src/components/TezosSystemsNetworkPulse.tsx:38",className:"network-pulse-shell",children:[a.jsxs("div",{"data-loc":"client/src/components/TezosSystemsNetworkPulse.tsx:39",className:"network-pulse-intro",children:[a.jsxs("div",{"data-loc":"client/src/components/TezosSystemsNetworkPulse.tsx:40",style:{display:"flex",alignItems:"center",gap:"0.55rem",marginBottom:"0.6rem"},children:[a.jsx("span",{"data-loc":"client/src/components/TezosSystemsNetworkPulse.tsx:41","aria-hidden":"true",style:{width:"8px",height:"8px",borderRadius:"50%",background:"#34d399",boxShadow:"0 0 0 5px rgba(52,211,153,0.12)"}}),a.jsx("span",{"data-loc":"client/src/components/TezosSystemsNetworkPulse.tsx:42",style:{fontSize:"0.67rem",letterSpacing:"0.14em",fontWeight:900,color:"#6ee7b7",textTransform:"uppercase"},children:"Live network context"})]}),a.jsx("h2",{"data-loc":"client/src/components/TezosSystemsNetworkPulse.tsx:44",id:"network-pulse-title",style:{margin:0,color:"#fff",fontSize:"clamp(1.35rem, 3vw, 2rem)",lineHeight:1.1,fontWeight:900},children:"Tezos Network Pulse"}),a.jsx("p",{"data-loc":"client/src/components/TezosSystemsNetworkPulse.tsx:47",style:{maxWidth:"32rem",margin:"0.85rem 0 0",color:"rgba(255,255,255,0.66)",lineHeight:1.65,fontSize:"0.92rem"},children:"Continue from the headlines into live network, capital, baker and governance context from Tezos Systems."}),a.jsxs("a",{"data-loc":"client/src/components/TezosSystemsNetworkPulse.tsx:50",href:"https://tezos.systems/",target:"_blank",rel:"noopener noreferrer","aria-label":"Explore Tezos Systems live dashboard (opens in a new tab)",className:"network-pulse-explore",children:["Explore Tezos Systems ",a.jsx(tu,{"data-loc":"client/src/components/TezosSystemsNetworkPulse.tsx:57",size:15,"aria-hidden":"true"})]})]}),a.jsx("ul",{"data-loc":"client/src/components/TezosSystemsNetworkPulse.tsx:61",className:"network-pulse-links","aria-label":"Tezos Systems live destinations",children:Zne.map(({label:e,description:t,href:r,icon:n})=>a.jsx("li",{"data-loc":"client/src/components/TezosSystemsNetworkPulse.tsx:63",children:a.jsxs("a",{"data-loc":"client/src/components/TezosSystemsNetworkPulse.tsx:64",href:r,target:"_blank",rel:"noopener noreferrer","aria-label":`${e}: ${t} (opens in a new tab)`,className:"network-pulse-link",children:[a.jsx("span",{"data-loc":"client/src/components/TezosSystemsNetworkPulse.tsx:71",className:"network-pulse-icon","aria-hidden":"true",children:a.jsx(n,{"data-loc":"client/src/components/TezosSystemsNetworkPulse.tsx:71",size:17})}),a.jsxs("span",{"data-loc":"client/src/components/TezosSystemsNetworkPulse.tsx:72",style:{minWidth:0},children:[a.jsx("span",{"data-loc":"client/src/components/TezosSystemsNetworkPulse.tsx:73",className:"network-pulse-link-title",children:e}),a.jsx("span",{"data-loc":"client/src/components/TezosSystemsNetworkPulse.tsx:74",className:"network-pulse-link-description",children:t})]}),a.jsx(tu,{"data-loc":"client/src/components/TezosSystemsNetworkPulse.tsx:76",size:15,"aria-hidden":"true",style:{marginLeft:"auto",color:"#60a5fa",flexShrink:0}})]})},e))})]})})})}function eae(){return a.jsx("section",{"data-loc":"client/src/components/PostQuantumHomepageFeature.tsx:7","aria-labelledby":"post-quantum-home-title",className:"post-quantum-home-feature",children:a.jsx("div",{"data-loc":"client/src/components/PostQuantumHomepageFeature.tsx:8",className:"container",children:a.jsxs("div",{"data-loc":"client/src/components/PostQuantumHomepageFeature.tsx:9",className:"post-quantum-home-feature__shell",children:[a.jsx("div",{"data-loc":"client/src/components/PostQuantumHomepageFeature.tsx:10",className:"post-quantum-home-feature__mark","aria-hidden":"true",children:a.jsx(Un,{"data-loc":"client/src/components/PostQuantumHomepageFeature.tsx:10",size:27})}),a.jsxs("div",{"data-loc":"client/src/components/PostQuantumHomepageFeature.tsx:11",className:"post-quantum-home-feature__content",children:[a.jsxs("p",{"data-loc":"client/src/components/PostQuantumHomepageFeature.tsx:12",children:[a.jsx(eh,{"data-loc":"client/src/components/PostQuantumHomepageFeature.tsx:12",size:14,"aria-hidden":"true"})," Post-quantum research"]}),a.jsxs("h2",{"data-loc":"client/src/components/PostQuantumHomepageFeature.tsx:13",id:"post-quantum-home-title",children:["Understand ",a.jsx("code",{"data-loc":"client/src/components/PostQuantumHomepageFeature.tsx:13",children:"tz5"})," before you encounter it."]}),a.jsx("p",{"data-loc":"client/src/components/PostQuantumHomepageFeature.tsx:14",className:"post-quantum-home-feature__lede",children:"A calm, plain-English guide to Tezosâ testnet-stage post-quantum account researchâwhat the prefix means, what has not changed, and how to recognise trusted future testing information."}),a.jsxs("div",{"data-loc":"client/src/components/PostQuantumHomepageFeature.tsx:15",className:"post-quantum-home-feature__actions",children:[a.jsxs($,{"data-loc":"client/src/components/PostQuantumHomepageFeature.tsx:16",href:"/guides/tz5-wallet",className:"post-quantum-home-feature__primary",children:["Read the tz5 wallet guide ",a.jsx(_e,{"data-loc":"client/src/components/PostQuantumHomepageFeature.tsx:16",size:16,"aria-hidden":"true"})]}),a.jsxs($,{"data-loc":"client/src/components/PostQuantumHomepageFeature.tsx:17",href:"/post-quantum",className:"post-quantum-home-feature__secondary",children:[a.jsx(bre,{"data-loc":"client/src/components/PostQuantumHomepageFeature.tsx:17",size:16,"aria-hidden":"true"})," Explore the resource hub"]})]})]}),a.jsxs("aside",{"data-loc":"client/src/components/PostQuantumHomepageFeature.tsx:20","aria-label":"Current tz5 status",className:"post-quantum-home-feature__status",children:[a.jsx("span",{"data-loc":"client/src/components/PostQuantumHomepageFeature.tsx:21",children:"Current status"}),a.jsx("strong",{"data-loc":"client/src/components/PostQuantumHomepageFeature.tsx:22",children:"Testnet-stage research"}),a.jsx("p",{"data-loc":"client/src/components/PostQuantumHomepageFeature.tsx:23",children:"Not an ordinary Mainnet wallet migration."})]})]})})})}function tae(){return a.jsxs("section",{"data-loc":"client/src/components/WalletStarterHomepageFeature.tsx:7","aria-labelledby":"wallet-starter-home-title",style:{background:"#000",padding:"0 0 1.5rem"},children:[a.jsx("div",{"data-loc":"client/src/components/WalletStarterHomepageFeature.tsx:8",className:"container",children:a.jsxs("div",{"data-loc":"client/src/components/WalletStarterHomepageFeature.tsx:9",className:"wallet-starter-home-grid",style:{display:"grid",gridTemplateColumns:"auto minmax(0,1fr) auto",alignItems:"center",gap:"1rem",padding:"1.15rem",borderRadius:"12px",border:"1px solid rgba(134,239,172,0.23)",background:"linear-gradient(115deg, rgba(5,38,52,0.95), rgba(7,30,65,0.95) 58%, rgba(7,22,49,0.95))"},children:[a.jsx("span",{"data-loc":"client/src/components/WalletStarterHomepageFeature.tsx:10","aria-hidden":"true",style:{display:"grid",placeItems:"center",height:"46px",width:"46px",borderRadius:"10px",background:"rgba(134,239,172,0.12)",color:"#86efac"},children:a.jsx(Yg,{"data-loc":"client/src/components/WalletStarterHomepageFeature.tsx:10",size:23})}),a.jsxs("div",{"data-loc":"client/src/components/WalletStarterHomepageFeature.tsx:11",children:[a.jsx("p",{"data-loc":"client/src/components/WalletStarterHomepageFeature.tsx:11",style:{margin:0,color:"#86efac",fontSize:"0.64rem",fontWeight:900,letterSpacing:"0.12em",textTransform:"uppercase"},children:"Tezos wallet starter"}),a.jsx("h2",{"data-loc":"client/src/components/WalletStarterHomepageFeature.tsx:11",id:"wallet-starter-home-title",style:{margin:"0.2rem 0",fontSize:"clamp(1.12rem, 2vw, 1.45rem)",letterSpacing:"-0.025em"},children:"New to Tezos? Start with a calm wallet guide."}),a.jsx("p",{"data-loc":"client/src/components/WalletStarterHomepageFeature.tsx:11",style:{margin:0,color:"rgba(255,255,255,0.65)",fontSize:"0.82rem",lineHeight:1.5},children:"Learn the address prefixes, official setup route, and read-only tools before you connect or sign."})]}),a.jsxs("div",{"data-loc":"client/src/components/WalletStarterHomepageFeature.tsx:12",style:{display:"flex",gap:"0.65rem",flexWrap:"wrap"},children:[a.jsxs($,{"data-loc":"client/src/components/WalletStarterHomepageFeature.tsx:12",href:"/wallets","aria-label":"Open the Tezos wallet starter guide",style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",color:"#061a39",background:"#86efac",padding:"0.68rem 0.82rem",borderRadius:"7px",fontSize:"0.76rem",fontWeight:900,textDecoration:"none",whiteSpace:"nowrap"},children:["Start here ",a.jsx(_e,{"data-loc":"client/src/components/WalletStarterHomepageFeature.tsx:12",size:14,"aria-hidden":"true"})]}),a.jsxs($,{"data-loc":"client/src/components/WalletStarterHomepageFeature.tsx:12",href:"/glossary/tezos-prefixes","aria-label":"Open the Tezos address prefix glossary",style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",color:"#b8ffd0",fontSize:"0.75rem",fontWeight:800,textDecoration:"none",whiteSpace:"nowrap"},children:[a.jsx(Pi,{"data-loc":"client/src/components/WalletStarterHomepageFeature.tsx:12",size:14,"aria-hidden":"true"})," Prefix glossary"]})]})]})}),a.jsx("style",{"data-loc":"client/src/components/WalletStarterHomepageFeature.tsx:15",children:"@media (max-width: 700px) { .wallet-starter-home-grid { grid-template-columns: auto minmax(0,1fr) !important; } .wallet-starter-home-grid > div:last-child { grid-column: 1 / -1; } }"})]})}function rae(){return a.jsxs("section",{"data-loc":"client/src/components/StakingStarterHomepageFeature.tsx:6","aria-labelledby":"staking-starter-home-title",style:{background:"#000",padding:"0 0 1.5rem"},children:[a.jsx("div",{"data-loc":"client/src/components/StakingStarterHomepageFeature.tsx:6",className:"container",children:a.jsxs("div",{"data-loc":"client/src/components/StakingStarterHomepageFeature.tsx:6",className:"staking-starter-home-grid",style:{display:"grid",gridTemplateColumns:"auto minmax(0,1fr) auto",alignItems:"center",gap:"1rem",padding:"1.15rem",borderRadius:"12px",border:"1px solid rgba(134,239,172,0.2)",background:"linear-gradient(115deg, rgba(5,48,42,0.92), rgba(7,30,65,0.95) 58%, rgba(7,22,49,0.95))"},children:[a.jsx("span",{"data-loc":"client/src/components/StakingStarterHomepageFeature.tsx:6","aria-hidden":"true",style:{display:"grid",placeItems:"center",height:"46px",width:"46px",borderRadius:"10px",background:"rgba(134,239,172,0.12)",color:"#86efac"},children:a.jsx(KW,{"data-loc":"client/src/components/StakingStarterHomepageFeature.tsx:6",size:23})}),a.jsxs("div",{"data-loc":"client/src/components/StakingStarterHomepageFeature.tsx:6",children:[a.jsx("p",{"data-loc":"client/src/components/StakingStarterHomepageFeature.tsx:6",style:{margin:0,color:"#86efac",fontSize:"0.64rem",fontWeight:900,letterSpacing:"0.12em",textTransform:"uppercase"},children:"Tezos staking starter"}),a.jsx("h2",{"data-loc":"client/src/components/StakingStarterHomepageFeature.tsx:6",id:"staking-starter-home-title",style:{margin:"0.2rem 0",fontSize:"clamp(1.12rem, 2vw, 1.45rem)",letterSpacing:"-0.025em"},children:"Delegation and staking, explained without the jargon."}),a.jsx("p",{"data-loc":"client/src/components/StakingStarterHomepageFeature.tsx:6",style:{margin:0,color:"rgba(255,255,255,0.65)",fontSize:"0.82rem",lineHeight:1.5},children:"Learn what stays liquid, what is locked, and which public information to check before you use a staking interface."})]}),a.jsxs("div",{"data-loc":"client/src/components/StakingStarterHomepageFeature.tsx:6",style:{display:"flex",gap:"0.65rem",flexWrap:"wrap"},children:[a.jsxs($,{"data-loc":"client/src/components/StakingStarterHomepageFeature.tsx:6",href:"/staking/start","aria-label":"Open the Tezos staking starter guide",style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",color:"#052a2c",background:"#86efac",padding:"0.68rem 0.82rem",borderRadius:"7px",fontSize:"0.76rem",fontWeight:900,textDecoration:"none",whiteSpace:"nowrap"},children:["Start here ",a.jsx(_e,{"data-loc":"client/src/components/StakingStarterHomepageFeature.tsx:6",size:14,"aria-hidden":"true"})]}),a.jsxs($,{"data-loc":"client/src/components/StakingStarterHomepageFeature.tsx:6",href:"/explorer/bakers","aria-label":"Browse Tezos bakers",style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",color:"#b8ffd0",fontSize:"0.75rem",fontWeight:800,textDecoration:"none",whiteSpace:"nowrap"},children:[a.jsx(Sc,{"data-loc":"client/src/components/StakingStarterHomepageFeature.tsx:6",size:14,"aria-hidden":"true"})," Browse bakers"]})]})]})}),a.jsx("style",{"data-loc":"client/src/components/StakingStarterHomepageFeature.tsx:6",children:"@media (max-width: 700px) { .staking-starter-home-grid { grid-template-columns: auto minmax(0,1fr) !important; } .staking-starter-home-grid > div:last-child { grid-column: 1 / -1; } }"})]})}function nae(){return a.jsx("section",{"data-loc":"client/src/components/ArtOnTezosHomepageFeature.tsx:7","aria-labelledby":"art-on-tezos-home-title",style:{background:"linear-gradient(120deg, #161039 0%, #103b4f 54%, #25113b 100%)",borderBottom:"1px solid rgba(255,255,255,0.1)",borderTop:"1px solid rgba(255,255,255,0.1)",padding:"2.25rem 0",overflow:"hidden"},children:a.jsxs("div",{"data-loc":"client/src/components/ArtOnTezosHomepageFeature.tsx:8",className:"container",style:{display:"grid",gridTemplateColumns:"minmax(0, 1.5fr) minmax(220px, 0.7fr)",gap:"2rem",alignItems:"center"},children:[a.jsxs("div",{"data-loc":"client/src/components/ArtOnTezosHomepageFeature.tsx:9",children:[a.jsxs("p",{"data-loc":"client/src/components/ArtOnTezosHomepageFeature.tsx:10",style:{margin:"0 0 0.55rem",color:"#f9a8d4",fontWeight:900,fontSize:"0.68rem",letterSpacing:"0.12em",textTransform:"uppercase",display:"flex",gap:"0.4rem",alignItems:"center"},children:[a.jsx(Fu,{"data-loc":"client/src/components/ArtOnTezosHomepageFeature.tsx:10",size:13,"aria-hidden":"true"})," Tezos cultural collection"]}),a.jsx("h2",{"data-loc":"client/src/components/ArtOnTezosHomepageFeature.tsx:11",id:"art-on-tezos-home-title",style:{margin:"0 0 0.65rem",color:"#fff",fontSize:"clamp(1.35rem, 3vw, 2rem)",lineHeight:1.15,fontWeight:900},children:"Art on Tezos, in one place."}),a.jsx("p",{"data-loc":"client/src/components/ArtOnTezosHomepageFeature.tsx:12",style:{margin:0,maxWidth:"650px",color:"rgba(255,255,255,0.74)",lineHeight:1.6,fontSize:"0.92rem"},children:"Follow art projects, creator-led coverage, exhibitions, collecting context, and the latest XTZ.News stories from the Tezos art ecosystem."})]}),a.jsxs($,{"data-loc":"client/src/components/ArtOnTezosHomepageFeature.tsx:14",href:"/art-on-tezos",style:{display:"inline-flex",justifyContent:"center",alignItems:"center",gap:"0.55rem",padding:"0.85rem 1rem",textDecoration:"none",color:"#171022",background:"#f9a8d4",borderRadius:"8px",fontSize:"0.8rem",fontWeight:900,alignSelf:"center"},children:[a.jsx(Do,{"data-loc":"client/src/components/ArtOnTezosHomepageFeature.tsx:15",size:16,"aria-hidden":"true"})," Explore the collection ",a.jsx(_e,{"data-loc":"client/src/components/ArtOnTezosHomepageFeature.tsx:15",size:16,"aria-hidden":"true"})]})]})})}function aae(){return a.jsxs("section",{"data-loc":"client/src/components/OnchainCommunityArchivesHomepageFeature.tsx:7","aria-labelledby":"onchain-archives-home-title",style:{background:"linear-gradient(120deg, #071d29 0%, #151035 56%, #0a1f2b 100%)",borderBottom:"1px solid rgba(255,255,255,0.1)",borderTop:"1px solid rgba(255,255,255,0.1)",padding:"2.25rem 0",overflow:"hidden"},children:[a.jsxs("div",{"data-loc":"client/src/components/OnchainCommunityArchivesHomepageFeature.tsx:8",className:"container archive-home-feature",style:{display:"grid",gridTemplateColumns:"minmax(0, 1.45fr) minmax(220px, 0.7fr)",gap:"2rem",alignItems:"center"},children:[a.jsxs("div",{"data-loc":"client/s
851rc/components/OnchainCommunityArchivesHomepageFeature.tsx:9",children:[a.jsxs("p",{"data-loc":"client/src/components/OnchainCommunityArchivesHomepageFeature.tsx:10",style:{margin:"0 0 0.55rem",color:"#99f6e4",fontWeight:900,fontSize:"0.68rem",letterSpacing:"0.12em",textTransform:"uppercase",display:"flex",gap:"0.4rem",alignItems:"center"},children:[a.jsx(WW,{"data-loc":"client/src/components/OnchainCommunityArchivesHomepageFeature.tsx:10",size:13,"aria-hidden":"true"})," Tezos culture route"]}),a.jsx("h2",{"data-loc":"client/src/components/OnchainCommunityArchivesHomepageFeature.tsx:11",id:"onchain-archives-home-title",style:{margin:"0 0 0.65rem",color:"#fff",fontSize:"clamp(1.35rem, 3vw, 2rem)",lineHeight:1.15,fontWeight:900},children:"Onchain community archives."}),a.jsx("p",{"data-loc":"client/src/components/OnchainCommunityArchivesHomepageFeature.tsx:12",style:{margin:0,maxWidth:"650px",color:"rgba(255,255,255,0.74)",lineHeight:1.6,fontSize:"0.92rem"},children:"Follow THE WALL Todayâs early beta alongside Tezos culture projects, community-made work and editorial stories that preserve shared digital moments."})]}),a.jsxs($,{"data-loc":"client/src/components/OnchainCommunityArchivesHomepageFeature.tsx:14",href:"/onchain-community-archives",style:{display:"inline-flex",justifyContent:"center",alignItems:"center",gap:"0.55rem",padding:"0.85rem 1rem",textDecoration:"none",color:"#06201e",background:"#99f6e4",borderRadius:"8px",fontSize:"0.8rem",fontWeight:900,alignSelf:"center"},children:[a.jsx(Sc,{"data-loc":"client/src/components/OnchainCommunityArchivesHomepageFeature.tsx:15",size:16,"aria-hidden":"true"})," Explore the hub ",a.jsx(_e,{"data-loc":"client/src/components/OnchainCommunityArchivesHomepageFeature.tsx:15",size:16,"aria-hidden":"true"})]})]}),a.jsx("style",{"data-loc":"client/src/components/OnchainCommunityArchivesHomepageFeature.tsx:18",children:"@media (max-width: 680px) { .archive-home-feature { grid-template-columns: 1fr !important; } }"})]})}const sae=[{id:"optimised-marketing",title:"Optimised Marketing",description:"Explore the digital marketing and web work behind XTZ.News.",url:"https://optimised.marketing",ctaLabel:"Visit site",active:!0,placeholder:!1},{id:"next-owner-app",title:"Your next app",description:"A reserved space for another owner-managed business or app.",url:"",ctaLabel:"Reserved",active:!0,placeholder:!0}];function iae(){const{data:e}=ee.settings.getFirstPartyPromotions.useQuery(),r=(Array.isArray(e)&&e.length?e:sae).filter(l=>l.active),[n,s]=E.useState(0);if(E.useEffect(()=>{s(0)},[r.length]),E.useEffect(()=>{if(r.length<2)return;const l=window.setInterval(()=>s(d=>(d+1)%r.length),8e3);return()=>window.clearInterval(l)},[r.length]),!r.length)return null;const i=r[n%r.length],o=a.jsxs(a.Fragment,{children:[a.jsx("div",{"data-loc":"client/src/components/FirstPartyPromotion.tsx:20",style:{width:"42px",height:"42px",borderRadius:"9px",display:"grid",placeItems:"center",background:i.placeholder?"rgba(251,191,36,.13)":"rgba(99,247,177,.13)",border:"1px solid rgba(99,247,177,.28)",color:i.placeholder?"#fbbf24":"#63f7b1",flexShrink:0},children:a.jsx(nu,{"data-loc":"client/src/components/FirstPartyPromotion.tsx:20",size:19,"aria-hidden":"true"})}),a.jsxs("div",{"data-loc":"client/src/components/FirstPartyPromotion.tsx:20",style:{minWidth:0,flex:1},children:[a.jsx("p",{"data-loc":"client/src/components/FirstPartyPromotion.tsx:20",style:{margin:"0 0 .25rem",color:i.placeholder?"#fbbf24":"#63f7b1",fontSize:".62rem",fontWeight:900,letterSpacing:".12em",textTransform:"uppercase"},children:i.placeholder?"Future owner placement":"From our network"}),a.jsx("h2",{"data-loc":"client/src/components/FirstPartyPromotion.tsx:20",style:{color:"#fff",margin:0,fontSize:"1rem",lineHeight:1.25},children:i.title}),i.description&&a.jsx("p",{"data-loc":"client/src/components/FirstPartyPromotion.tsx:20",style:{color:"rgba(255,255,255,.62)",margin:".45rem 0 0",fontSize:".8rem",lineHeight:1.55},children:i.description})]}),i.url?a.jsxs("span",{"data-loc":"client/src/components/FirstPartyPromotion.tsx:20",style:{display:"inline-flex",alignItems:"center",gap:".35rem",color:"#071d40",background:"#63f7b1",padding:".62rem .8rem",borderRadius:"4px",fontSize:".72rem",fontWeight:900,whiteSpace:"nowrap",flexShrink:0},children:[i.ctaLabel||"Explore",a.jsx(ve,{"data-loc":"client/src/components/FirstPartyPromotion.tsx:20",size:13,"aria-hidden":"true"})]}):a.jsx("span",{"data-loc":"client/src/components/FirstPartyPromotion.tsx:20",style:{color:"rgba(255,255,255,.48)",border:"1px dashed rgba(255,255,255,.28)",padding:".62rem .8rem",borderRadius:"4px",fontSize:".72rem",fontWeight:800},children:"Reserved"})]});return a.jsx("aside",{"data-loc":"client/src/components/FirstPartyPromotion.tsx:21","aria-label":"First-party promotion",style:{background:"linear-gradient(135deg,#082742,#05152e)",borderTop:"1px solid rgba(99,247,177,.26)",borderBottom:"1px solid rgba(99,247,177,.2)"},children:a.jsxs("div",{"data-loc":"client/src/components/FirstPartyPromotion.tsx:21",className:"container",style:{padding:"1rem 1.25rem"},children:[i.url?i.url.startsWith("/")?a.jsx($,{"data-loc":"client/src/components/FirstPartyPromotion.tsx:21",href:i.url,style:{display:"flex",alignItems:"center",gap:".85rem",textDecoration:"none",flexWrap:"wrap"},children:o}):a.jsx("a",{"data-loc":"client/src/components/FirstPartyPromotion.tsx:21",href:i.url,target:"_blank",rel:"noopener noreferrer",style:{display:"flex",alignItems:"center",gap:".85rem",textDecoration:"none",flexWrap:"wrap"},children:o}):a.jsx("div",{"data-loc":"client/src/components/FirstPartyPromotion.tsx:21",style:{display:"flex",alignItems:"center",gap:".85rem",flexWrap:"wrap"},children:o}),r.length>1&&a.jsx("div",{"data-loc":"client/src/components/FirstPartyPromotion.tsx:21","aria-label":"Promotion rotation",style:{display:"flex",gap:".3rem",marginTop:".65rem"},children:r.map((l,d)=>a.jsx("button",{"data-loc":"client/src/components/FirstPartyPromotion.tsx:21",onClick:()=>s(d),"aria-label":`Show ${l.title}
851`,"aria-current":d===n,style:{width:d===n?"20px":"6px",height:"6px",borderRadius:"99px",border:0,background:d===n?"#63f7b1":"rgba(255,255,255,.28)",padding:0,cursor:"pointer",transition:"width .18s ease-out"}},l.id))})]})})}const oae="/manus-storage/optimised-marketing-xtz-news-wide_fbd697e0.png";function lae(e,t=Date.now()){if(!e.active)return!1;if(!e.endAt)return!0;const r=Date.parse(e.endAt);return Number.isNaN(r)||r>t}function cae({placement:e,campaign:t,now:r}){if(!lae(t,r))return null;const n=e==="home",s=n?"490px":"760px";return a.jsx("aside",{"data-loc":"client/src/components/FirstPartyImageBanner.tsx:26","aria-label":"First-party promotion for Optimised Marketing",style:{background:n?"#000":"transparent",padding:n?".35rem 0 .15rem":"2rem 0 0"},children:a.jsx("div",{"data-loc":"client/src/components/FirstPartyImageBanner.tsx:27",className:n?"container":void 0,style:n?{padding:"0 1.25rem"}:void 0,children:a.jsxs("div",{"data-loc":"client/src/components/FirstPartyImageBanner.tsx:28",style:{maxWidth:s,margin:"0 auto"},children:[a.jsx("p",{"data-loc":"client/src/components/FirstPartyImageBanner.tsx:29",style:{margin:"0 0 .2rem",color:"#63f7b1",fontSize:".58rem",fontWeight:900,letterSpacing:".12em",textTransform:"uppercase"},children:"From our network"}),a.jsx("a",{"data-loc":"client/src/components/FirstPartyImageBanner.tsx:30",href:"https://optimised.marketing",target:"_blank",rel:"noopener noreferrer","aria-label":"Visit Optimised Marketing, the team building and supporting XTZ.News",style:{display:"block",borderRadius:"5px",overflow:"hidden",border:"1px solid rgba(99,247,177,.3)",lineHeight:0,boxShadow:"0 8px 24px rgba(0,0,0,.2)"},children:a.jsx("img",{"data-loc":"client/src/components/FirstPartyImageBanner.tsx:37",src:Je(oae),alt:"Optimised Marketing proudly building and supporting XTZ.News â Web3 sites, apps, and digital products",width:2172,height:724,loading:n?"eager":"lazy",decoding:"async",style:{display:"block",width:"100%",height:"auto",aspectRatio:"3 / 1",objectFit:"contain",background:"#06142b"}})})]})})})}function e$({placement:e}){const{data:t}=ee.settings.getFirstPartyBannerCampaign.useQuery(),[r,n]=E.useState(()=>Date.now());return E.useEffect(()=>{const s=window.setInterval(()=>n(Date.now()),6e4);return()=>window.clearInterval(s)},[]),a.jsx(cae,{"data-loc":"client/src/components/FirstPartyImageBanner.tsx:60",placement:e,campaign:t??{active:!0,endAt:null},now:r})}const Jg={community:"Community gathering",conference:"Conference",meetup:"Meetup",workshop:"Workshop",exhibition:"Exhibition",online:"Online event",other:"Other"};function dae(e){return Array.from(new Set(e.map(t=>t.location?.trim()).filter(t=>!!t))).sort((t,r)=>t.localeCompare(r))}function uae(e){return Array.from(new Set(e.map(t=>t.eventType).filter(t=>!!t))).sort((t,r)=>(Jg[t]||t).localeCompare(Jg[r]||r))}function t$(e){return e.trim()}function r$(e,t){return Array.from(new Set(e.flatMap(r=>
851r[t]??[]).map(t$).filter(Boolean))).sort((r,n)=>r.localeCompare(n))}function pae(e){return r$(e,"speakers")}function gae(e){return r$(e,"topics")}function mE(e,t){return t==="all"||(e??[]).some(r=>t$(r)===t)}function fae(e,t,r,n="all",s="all"){return e.filter(i=>(t==="all"||i.location?.trim()===t)&&(r==="all"||i.eventType===r)&&mE(i.speakers,n)&&mE(i.topics,s))}function Rl(e){return new Date(e.startAt).getTime()}function Hd(e){return new Date(e.endAt??e.startAt).getTime()}function hae(e){return new Date(`${e}T00:00:00`).getTime()}function mae(e){return new Date(`${e}T23:59:59.999`).getTime()}function ev(e,t){const r=t.now??Date.now(),n=t.from?hae(t.from):void 0,s=t.to?mae(t.to):void 0;return e.filter(i=>{const o=Rl(i),l=Hd(i);return!(!Number.isFinite(o)||!Number.isFinite(l)||t.scope==="current"&&l<r||t.scope==="upcoming"&&o<r||t.scope==="past"&&l>=r||n!==void 0&&o<n||s!==void 0&&o>s)}).sort((i,o)=>t.scope==="past"?Hd(o)-Hd(i):Rl(i)-Rl(o))}function xae(e,t=Date.now()){const r=e.filter(s=>Rl(s)>=t).sort((s,i)=>Rl(s)-Rl(i))[0];if(r)return{event:r,state:"upcoming"};const n=e.filter(s=>Rl(s)<t&&Hd(s)>=t).sort((s,i)=>Hd(s)-Hd(i))[0];return n?{event:n,state:"ongoing"}:void 0}function yae(e,t){const r=new Date(e),n=new Intl.DateTimeFormat("en-GB",{dateStyle:"medium",timeStyle:"short",...t?{timeZone:t}:{}}).format(r);if(!t)return n;const s=new Intl.DateTimeFormat("en-GB",{timeZone:t,timeZoneName:"short"}).formatToParts(r).find(i=>i.type==="timeZoneName")?.value;return s?`${n} ${s}`:n}function xE(){const{data:e=[],isLoading:t}=ee.tezosEventCandidates.published.useQuery(void 0,{staleTime:3e5}),r=xae(e);if(!t&&!r)return a.jsxs("aside",{"data-loc":"client/src/components/NextTezosEventWidget.tsx:21","aria-label":"Tezos events",style:{background:"#05152e",border:"1px solid rgba(251,191,36,0.22)",borderRadius:"8px",padding:"1.1rem"},children:[a.jsx("p",{"data-loc":"client/src/components/NextTezosEventWidget.tsx:22",style:{margin:0,color:"#fcd34d",fontSize:"0.62rem",fontWeight:900,letterSpacing:"0.11em",textTransform:"uppercase"},children:"Tezos events"}),a.jsx("h2",{"data-loc":"client/src/components/NextTezosEventWidget.tsx:23",style:{margin:"0.5rem 0",color:"#fff",fontSize:"1.05rem",lineHeight:1.25},children:"No upcoming event is currently published"}),a.jsx("p",{"data-loc":"client/src/components/NextTezosEventWidget.tsx:24",style:{margin:0,color:"rgba(255,255,255,0.58)",fontSize:"0.78rem",lineHeight:1.55},children:"Browse the editor-reviewed calendar or submit an official listing for review."}),a.jsx($,{"data-loc":"client/src/components/NextTezosEventWidget.tsx:25",href:"/events",style:{display:"inline-flex",marginTop:"0.8rem",color:"#fcd34d",fontSize:"0.72rem",fontWeight:800,textDecoration:"none"},children:"Browse events â"})]});const n=r?.event,s=r?.state==="ongoing"?"Now showing":"Next event";return a.jsxs("aside",{"data-loc":"client/src/components/NextTezosEventWidget.tsx:33","aria-label":"Next Tezos event",style:{background:"linear-gradient(135deg, #0b2144 0%, #05152e 100%)",border:"1px solid rgba(251,191,36,0.38)",borderRadius:"8px",overflow:"hidden"},children:[a.jsxs("div",{"data-loc":"client/src/components/NextTezosEventWidget.tsx:34",style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"0.75rem",padding:"0.85rem 1rem",borderBottom:"1px solid rgba(251,191,36,0.18)"},children:[a.jsxs("span",{"data-loc":"client/src/components/NextTezosEventWidget.tsx:35",style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",color:"#fcd34d",fontSize:"0.62rem",fontWeight:900,letterSpacing:"0.11em",textTransform:"uppercase"},children:[a.jsx(Fa,{"data-loc":"client/src/components/NextTezosEventWidget.tsx:35",size:14,"aria-hidden":"true"})," ",s]}),a.jsx($,{"data-loc":"client/src/components/NextTezosEventWidget.tsx:36",href:"/events",style:{color:"rgba(255,255,255,0.63)",fontSize:"0.68rem",fontWeight:800,textDecoration:"none"},children:"All events â"})]}),a.jsx("div",{"data-loc":"client/src/components/NextTezosEventWidget.tsx:38",style:{padding:"1rem"},children:t||!n?a.jsx("div",{"data-loc":"client/src/components/NextTezosEventWidget.tsx:39",className:"skeleton",style:{height:"136px"}}):a.jsxs(a.Fragment,{children:[a.jsx("p",{"data-loc":"client/src/components/NextTezosEventWidget.tsx:40",style:{margin:0,color:"#fcd34d",fontSize:"0.7rem",fontWeight:800,lineHeight:1.45},children:yae(n.startAt,n.timezone)}),a.jsx("h2",{"data-loc":"client/src/components/NextTezosEventWidget.tsx:41",style:{margin:"0.5rem 0",color:"#fff",fontSize:"1.08rem",lineHeight:1.25},children:n.title}),n.location&&a.jsxs("p",{"data-loc":"client/src/components/NextTezosEventWidget.tsx:42",style:{display:"flex",alignItems:"flex-start",ga
851p:"0.4rem",margin:"0.6rem 0",color:"rgba(255,255,255,0.62)",fontSize:"0.73rem",lineHeight:1.45},children:[a.jsx(by,{"data-loc":"client/src/components/NextTezosEventWidget.tsx:42",size:13,style:{flexShrink:0,marginTop:"0.1rem"},"aria-hidden":"true"}),n.location]}),a.jsxs("div",{"data-loc":"client/src/components/NextTezosEventWidget.tsx:43",style:{display:"flex",flexWrap:"wrap",gap:"0.7rem",marginTop:"0.9rem"},children:[a.jsx($,{"data-loc":"client/src/components/NextTezosEventWidget.tsx:44",href:"/events",style:{color:"#fcd34d",fontSize:"0.72rem",fontWeight:900,textDecoration:"none"},children:"View calendar â"}),a.jsxs("a",{"data-loc":"client/src/components/NextTezosEventWidget.tsx:45",href:n.sourceUrl,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.25rem",color:"rgba(255,255,255,0.72)",fontSize:"0.72rem",fontWeight:800,textDecoration:"none"},children:["Official listing ",a.jsx(ve,{"data-loc":"client/src/components/NextTezosEventWidget.tsx:45",size:12,"aria-hidden":"true"})]})]})]})})]})}const jy="https://xtz.news",d0="XTZ.News",bae=`${jy}/manus-storage/xtz-logo-square_c6689606.png`,yE="@XTZNews";function Ie({title:e,description:t,keywords:r,canonical:n,ogType:s="website",ogImage:i,twitterCard:o="summary_large_image",article:l,jsonLd:d,noIndex:u=!1}){E.useEffect(()=>{const g=i||bae,f=n||jy;document.title=e;const m=(b,v,j="name")=>{let k=document.querySelector(`meta[${j}="${b}"]`);k||(k=document.createElement("meta"),k.setAttribute(j,b),document.head.appendChild(k)),k.content=v},y=(b,v="name")=>{document.querySelector(`meta[${v}="${b}"]`)?.remove()},S=(b,v)=>{let j=document.querySelector(`link[rel="${b}"]`);j||(j=document.createElement("link"),j.rel=b,document.head.appendChild(j)),j.href=v};if(m("description",t),r&&m("keywords",r),m("robots",u?"noindex, nofollow":"index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1"),S("canonical",f),m("og:title",e,"property"),m("og:description",t,"property"),m("og:type",s,"property"),m("og:image",g,"property"),m("og:image:width","1200","property"),m("og:image:height","630","property"),m("og:url",f,"property"),m("og:site_name",d0,"property"),m("og:locale","en_GB","property"),s==="article"&&l?(l.publishedTime&&m("article:published_time",l.publishedTime,"property"),l.modifiedTime&&m("article:modified_time",l.modifiedTime,"property"),l.author&&m("article:author",l.author,"property"),l.section&&m("article:section",l.section,"property"),l.tags&&(document.querySelectorAll('meta[property="article:tag"]').forEach(b=>b.remove()),l.tags.slice(0,5).forEach(b=>{const v=document.createElement("meta");v.setAttribute("property","article:tag"),v.content=b,document.head.appendChild(v)}))):(y("article:published_time","property"),y("article:modified_time","property"),y("article:author","property"),y("article:section","property")),m("twitter:card",o),m("twitter:site",yE),m("twitter:creator",yE),m("twitter:title",e),m("twitter:description",t),m("twitter:image",g),m("twitter:image:alt",e),document.querySelector('script[data-seo="true"]')?.remove(),d){const b=Array.isArray(d)?d:[d],v=document.createElement("script");v.type="application/ld+json",v.setAttribute("data-seo","true"),v.textContent=JSON.stringify(b.length===1?b[0]:b),document.head.appendChild(v)}return()=>{document.title=`${d0} â Tezos News`,document.querySelector('script[data-seo="true"]')?.remove()}},[e,t,r,n,s,i,o,u])}const ka=e=>({"@context":"https://schema.org","@type":"WebPage",name:e.title,description:e.description,url:e.url,isPartOf:{"@type":"WebSite",name:d0,url:jy},...e.breadcrumbs?{breadcrumb:{"@type":"BreadcrumbList",itemListElement:e.breadcrumbs.map((t,r)=>({"@type":"ListItem",position:r+1,name:t.name,item:t.url}))}}:{}}),ln=e=>({"@context":"https://schema.org","@type":"SoftwareApplication",name:e.name,description:e.description,url:e.url,applicationCategory:"FinanceApplication",operatingSystem:"Web",offers:{"@type":"Offer",price:"0",priceCurrency:"USD"},publisher:{"@type":"Organization",name:d0,url:jy}}),Pa=e=>({"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.map(t=>
851({"@type":"Question",name:t.question,acceptedAnswer:{"@type":"Answer",text:t.answer}}))});function qx(e){return{headline:"Youâre subscribed.",description:e?"Your Resend welcome email is on its way from [email protected].":"Your subscription has been saved. Your newsletter will arrive at the next scheduled send.",preferenceNote:"Your welcome email includes secure links to manage preferences or unsubscribe at any time."}}function vae(e){return e?new Date(e).toLocaleDateString("en-GB",{day:"numeric",month:"long",year:"numeric"}).toUpperCase():""}function Sae(e){return e.replace(/<[^>]*>/g,"").replace(/&[a-z#0-9]+;/gi," ").trim()}function n$(){return a.jsx("section",{"data-loc":"client/src/pages/Home.tsx:36",style:{background:"#000"},children:a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:37",style:{minHeight:"480px",background:"#05152e",position:"relative",overflow:"hidden"},children:[a.jsx("div",{"data-loc":"client/src/pages/Home.tsx:38",className:"skeleton",style:{position:"absolute",inset:0,borderRadius:0}}),a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:39",style:{position:"absolute",bottom:"2rem",left:"1.25rem",right:"1.25rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/Home.tsx:40",className:"skeleton",style:{height:"14px",width:"120px",marginBottom:"12px"}}),a.jsx("div",{"data-loc":"client/src/pages/Home.tsx:41",className:"skeleton",style:{height:"12px",width:"100px",marginBottom:"16px"}}),a.jsx("div",{"data-loc":"client/src/pages/Home.tsx:42",className:"skeleton",style:{height:"28px",width:"85%",marginBottom:"8px"}}),a.jsx("div",{"data-loc":"client/src/pages/Home.tsx:43",className:"skeleton",style:{height:"28px",width:"65%",marginBottom:"16px"}}),a.jsx("div",{"data-loc":"client/src/pages/Home.tsx:44",className:"skeleton",style:{height:"38px",width:"130px"}})]})]})})}function hA({count:e=4,cols:t=4}){return a.jsx("div",{"data-loc":"client/src/pages/Home.tsx:53",style:{display:"grid",gridTemplateColumns:`repeat(${t}, 1fr)`,gap:"1rem"},children:Array.from({length:e}).map((r,n)=>a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:55",style:{borderRadius:"4px",overflow:"hidden"},children:[a.jsx("div",{"data-loc":"client/src/pages/Home.tsx:56",className:"skeleton",style:{height:"160px",borderRadius:0}}),a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:57",style:{padding:"1rem",background:"#05152e"},children:[a.jsx("div",{"data-loc":"client/src/pages/Home.tsx:58",className:"skeleton",style:{height:"12px",width:"60px",marginBottom:"10px"}}),a.jsx("div",{"data-loc":"client/src/pages/Home.tsx:59",className:"skeleton",style:{height:"16px",width:"90%",marginBottom:"8px"}}),a.jsx("div",{"data-loc":"client/src/pages/Home.tsx:60",className:"skeleton",style:{height:"16px",width:"70%",marginBottom:"12px"}})]})]},n))})}function jae({latestPosts:e,mostReadPosts:t}){const[r,n]=E.useState(0),[s,i]=E.useState("latest"),o=E.useRef(null),l=()=>{o.current=setInterval(()=>n(m=>(m+1)%e.length),7e3)};E.useEffect(()=>(e.length>1&&l(),()=>{o.current&&clearInterval(o.current)}),[e.length]);const d=m=>{n(m),o.current&&clearInterval(o.current),l()};if(!e.length)return a.jsx(n$,{"data-loc":"client/src/pages/Home.tsx:89"});const u=e[r],g=u.categories?.[0],f=s==="latest"?e.slice(0,5):t.slice(0,5);return a.jsxs("section",{"data-loc":"client/src/pages/Home.tsx:96",style:{background:"#000"},children:[a.jsx("div",{"data-loc":"client/src/pages/Home.tsx:99",className:"container",style:{padding:"0 1.25rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:100",style:{display:"flex",flexDirection:"column"},children:[a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:103",style:{position:"relative",overflow:"hidden",minHeight:"480px",flex:"none"},className:"hero-image-area",children:[a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:108",style:{position:"absolute",inset:0},children:[u.featuredImageUrl?a.jsx("img",{"data-loc":"client/src/pages/Home.tsx:110",src:Je(u.featuredImageUrl),alt:u.title,style:{width:"100%",height:"100%",objectFit:"cover"}},u.id):a.jsx("div",{"data-loc":"client/src/pages/Home.tsx:113",style:{width:"100%",height:"100%",background:"#05152e"}}),a.jsx("div",{"data-loc":"client/src/pages/Home.tsx:115",style:{position:"absolute",inset:0,background:"linear-gradient(to right, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.2) 100%)"}})]}),a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:119",style:{position:"absolute",top:"1rem",right:"1rem",display:"flex",alignItems:"center",gap:"0.5rem",zIndex:2},children:[g&&a.jsx($,{"data-loc":"client/src/pages/Home.tsx:121",href:`/category/${g.slug}`,className:"cat-tag",children:g.name.toUpperCase()}),a.jsx("button",{"data-loc":"client/src/pages/Home.tsx:123",style:{background:"rgba(44,125,247,0.2)",border:"1px solid rgba(44,125,247,0.4)",color:"#2c7df7",width:"28px",height:"28px",borderRadius:"2px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:a.jsx(bc,{"data-loc":"client/src/pages/Home.tsx:124",size:12})})]}),a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:129",style:{position:"relative",zIndex:2,padding:"2rem 1.25rem 2.5rem",display:"flex",flexDirection:"column",justifyContent:"flex-end",height:"100%"},children:[a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:130",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginBottom:"0.75rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/Home.tsx:131",style:{width:"3px",height:"18px",background:"#2c7df7",display:"inline-block",borderRadius:"1px",flexShrink:0}}),a.jsx("span",{"data-loc":"client/src/pages/Home.tsx:132",style:{fontSize:"0.8rem",fontWeight:900,letterSpacing:"0.1em",textTransform:"uppercase",color:"#fff"},children:"LATEST NEWS"})]}),a.jsx("div",{"data-loc":"client/src/pages/Home.tsx:134",style:{display:"inline-flex",alignItems:"center",background:"#2c7df7",color:"#fff",fontSize:"0.65rem",fontWeight:700,letterSpacing:"0.08em",textTransform:"uppercase",padding:"3px 8px",marginBottom:"0.875rem",alignSelf:"flex-start"},children:vae(u.publishedAt)}),a.jsx($,{"data-loc":"client/src/pages/Home.tsx:137",href:`/${u.slug}`,style:{textDecoration:"none"},children:a.jsx("h1",{"data-loc":"client/src/pages/Home.tsx:138",style:{fontSize:"clamp(1.4rem, 4vw, 1.85rem)",fontWeight:900,lineHeight:1.25,color:"#fff",marginBottom:"0.875rem",transition:"color 0.2s"},onMouseEnter:m=>m.currentTarget.style.color="#2c7df7",onMouseLeave:m=>m.currentTarget.style.color="#fff",children:u.title})}),u.excerpt&&a.jsx("p",{"data-loc":"client/src/pages/Home.tsx:147",style:{fontSize:"0.875rem",lineHeight:1.7,color:"rgba(255,255,255,0.75)",marginBottom:"1.5rem",display:"-webkit-box",WebkitLineClamp:4,WebkitBoxOrient:"vertical",overflow:"hidden"},children:Sae(u.excerpt)}),a.jsx($,{"data-loc":"client/src/pages/Home.tsx:151",href:`/${u.slug}`,style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",fontSize:"0.8rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",padding:"0.7rem 1.75rem",background:"#2c7df7",color:"#fff",border:"none",borderRadius:"2px",textDecoration:"none",alignSelf:"flex-start",transition:"background 0.2s"},onMouseEnter:m=>m.currentTarget.style.background="#1a6ae0",onMouseLeave:m=>m.currentTarget.style.background="#2c7df7",children:"READ MORE âº"})]}),e.length>1&&a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:162",style:{position:"absolute",bottom:"1rem",right:"1rem",display:"flex",flexDirection:"column",gap:"0.25rem",zIndex:2},children:[a.jsx("button",{"data-loc":"client/src/pages/Home.tsx:163",onClick:()=>d((r+1)%e.length),style:{background:"#2c7df7",border:"none",color:"#fff",width:"40px",height:"40px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",borderRadius:"2px"},children:a.jsx(Le,{"data-loc":"client/src/pages/Home.tsx:163",size:18})}),a.jsx("button",{"data-loc":"client/src/pages/Home.tsx:164",onClick:()=>d((r-1+e.length)%e.length),style:{background:"#2c7df7",border:"none",color:"#fff",width:"40px",height:"40px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",borderRadius:"2px"},children:a.jsx(Pn,{"data-loc":"client/src/pages/Home.tsx:164",size:18})})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:170",style:{background:"#000",borderTop:"1px solid rgba(255,255,255,0.1)"},className:"tabs-panel",children:[a.jsx("div",{"data-loc":"client/src/pages/Home.tsx:175",style:{display:"flex",borderBottom:"1px solid rgba(255,255,255,0.12)"},children:["latest","most-read"].map(m=>a.jsx("button",{"data-loc":"client/src/pages/Home.tsx:177",onClick:()=>i(m),style:{flex:1,padding:"0.875rem 0.5rem",fontSize:"0.7rem",fontWeight:700,letterSpacing:"0.12em",textTransform:"uppercase",color:"#fff",background:s===m?"#2c7df7":"transparent",border:"none",borderBottom:s===m?"2px solid #2c7df7":"2px solid transparent",curs
851or:"pointer",transition:"all 0.2s"},children:m==="latest"?"LATEST STORIES":"MOST READ"},m))}),a.jsx("div",{"data-loc":"client/src/pages/Home.tsx:184",children:f.map((m,y)=>a.jsx("div",{"data-loc":"client/src/pages/Home.tsx:186",onClick:()=>s==="latest"&&d(y),style:{borderBottom:"1px solid rgba(255,255,255,0.08)",background:s==="latest"&&y===r?"rgba(44,125,247,0.08)":"transparent",borderLeft:s==="latest"&&y===r?"4px solid #2c7df7":"4px solid transparent",transition:"background 0.2s",cursor:"pointer"},onMouseEnter:S=>{s==="latest"&&y===r||(S.currentTarget.style.background="rgba(255,255,255,0.04)")},onMouseLeave:S=>{s==="latest"&&y===r||(S.currentTarget.style.background="transparent")},children:a.jsx($,{"data-loc":"client/src/pages/Home.tsx:191",href:`/${m.slug}`,style:{display:"block",padding:"0.875rem 1.25rem",textDecoration:"none"},onClick:S=>S.stopPropagation(),children:a.jsx("p",{"data-loc":"client/src/pages/Home.tsx:192",style:{fontSize:"1.2rem",fontWeight:700,lineHeight:1.4,color:"#fff",margin:0},children:m.title})})},m.id))})]})]})}),a.jsx("style",{"data-loc":"client/src/pages/Home.tsx:202",children:` 852 @media (min-width: 1024px) { 853 section > div > div { 854 flex-direction: row !important; 855 } 856 .hero-image-area { 857 flex: 0 0 67% !important; 858 min-height: 511px !important; 859 } 860 .tabs-panel { 861 flex: 0 0 33% !important; 862 border-top: none !important; 863 border-left: 1px solid rgba(255,255,255,0.1) !important; 864 min-height: 511px !important; 865 } 866 } 867 `})]})}function wae({posts:e}){const[t,r]=E.useState(0),[n,s]=E.useState(4);E.useEffect(()=>{const o=()=>s(window.innerWidth<640?1:window.innerWidth<1024?2:4);return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[]);const i=n;return a.jsx("section",{"data-loc":"client/src/pages/Home.tsx:296",style:{padding:"2.5rem 0",background:"#000"},children:a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:297",className:"container",children:[a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:298",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"1.25rem"},children:[a.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:299",className:"section-title",style:{marginBottom:0},children:"MOST POPULAR"}),a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:300",style:{display:"flex",gap:"0.5rem"},children:[a.jsx("button",{"data-loc":"client/src/pages/Home.tsx:301",onClick:()=>r(Math.max(0,t-i)),disabled:t===0,className:"carousel-arrow",style:{opacity:t===0?.3:1},children:a.jsx(Pn,{"data-loc":"client/src/pages/Home.tsx:301",size:14})}),a.jsx("button",{"data-loc":"client/src/pages/Home.tsx:302",onClick:()=>r(Math.min(e.length-i,t+i)),disabled:t+i>=e.length,className:"carousel-arrow",style:{opacity:t+i>=e.length?.3:1},children:a.jsx(Le,{"data-loc":"client/src/pages/Home.tsx:302",size:14})})]})]}),e.length===0?a.jsx(hA,{"data-loc":"client/src/pages/Home.tsx:305",count:n,cols:n}):a.jsx("div",{"data-loc":"client/src/pages/Home.tsx:306",style:{display:"grid",gridTemplateColumns:`repeat(${n}, 1fr)`,gap:"1rem"},children:e.slice(t,t+i).map(o=>a.jsx(ms,{"data-loc":"client/src/pages/Home.tsx:307",post:o,variant:"default"},o.id))})]})})}function kae({posts:e}){const[t,r]=E.useState(!1);if(E.useEffect(()=>{const i=()=>r(window.innerWidth<768);return i(),window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)},[]),!e.length)return a.jsx("section",{"data-loc":"client/src/pages/Home.tsx:326",style:{padding:"2.5rem 0",background:"#05152e"},children:a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:327",className:"container",children:[a.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:327",className:"section-title",children:"FEATURED NEWS"}),a.jsx(hA,{"data-loc":"client/src/pages/Home.tsx:327",count:3,cols:t?1:3})]})});const[n,...s]=e;return a.jsx("section",{"data-loc":"client/src/pages/Home.tsx:332",style:{padding:"2.5rem 0",background:"#05152e"},children:a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:333",className:"container",children:[a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:334",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"1.25rem"},children:[a.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:335",className:"section-title",style:{marginBottom:0},children:"FEATURED NEWS"}),a.jsx($,{"data-loc":"client/src/pages/Home.tsx:336",href:"/category/latest-news",className:"btn-read-more",style:{fontSize:"0.65rem",padding:"0.4rem 1rem"},children:"VIEW MORE"})]}),t?a.jsx("div",{"data-loc":"client/src/pages/Home.tsx:339",style:{display:"flex",flexDirection:"column",gap:"1rem"},children:e.slice(0,4).map(i=>a.jsx(ms,{"data-loc":"client/src/pages/Home.tsx:340",post:i,variant:"default"},i.id))}):a.jsxs(a.Fragment,{children:[a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:344",style:{display:"grid",gridTemplateColumns:"2fr 1fr",gap:"1rem",marginBottom:"1rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/Home.tsx:345",style:{height:"340px"},children:a.jsx(ms,{"data-loc":"client/src/pages/Home.tsx:345",post:n,variant:"hero"})}),a.jsx("div",{"data-loc":"client/src/pages/Home.tsx:346",style:{display:"grid",gridTemplateRows:"1fr 1fr",gap:"1rem"},children:s.slice(0,2).map(i=>a.jsx(ms,{"data-loc":"client/src/pages/Home.tsx:347",post:i,variant:"hero"},i.id))})]}),s.length>
8672&&a.jsx("div",{"data-loc":"client/src/pages/Home.tsx:351",style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"1rem"},children:s.slice(2,5).map(i=>a.jsx(ms,{"data-loc":"client/src/pages/Home.tsx:352",post:i,variant:"default"},i.id))})]})]})})}function bE({weekPosts:e,allTimePosts:t}){const[r,n]=E.useState("week"),s=r==="week"?e:t;return!e.length&&!t.length?null:a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:368",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"8px",overflow:"hidden",position:"sticky",top:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:369",style:{padding:"0.875rem 1.25rem",borderBottom:"1px solid rgba(255,255,255,0.07)"},children:[a.jsx("div",{"data-loc":"client/src/pages/Home.tsx:370",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"0.6rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:371",style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/Home.tsx:372",style:{width:"8px",height:"8px",borderRadius:"50%",background:"#f97316",animation:"pulse 2s infinite"}}),a.jsx("span",{"data-loc":"client/src/pages/Home.tsx:373",style:{fontSize:"0.72rem",fontWeight:900,textTransform:"uppercase",letterSpacing:"0.1em",color:"#fff"},children:"Trending"})]})}),a.jsx("div",{"data-loc":"client/src/pages/Home.tsx:376",style:{display:"flex",gap:"0.3rem"},children:["week","alltime"].map(i=>a.jsx("button",{"data-loc":"client/src/pages/Home.tsx:378",onClick:()=>n(i),style:{padding:"0.25rem 0.65rem",borderRadius:"3px",fontSize:"0.62rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.06em",cursor:"pointer",border:r===i?"1px solid #f97316":"1px solid rgba(255,255,255,0.12)",background:r===i?"rgba(249,115,22,0.15)":"transparent",color:r===i?"#f97316":"rgba(255,255,255,0.4)",transition:"all 0.15s"},children:i==="week"?"This Week":"All Time"},i))})]}),a.jsx("div",{"data-loc":"client/src/pages/Home.tsx:385",style:{padding:"0.5rem 0"},children:s.slice(0,7).map((i,o)=>a.jsxs($,{"data-loc":"client/src/pages/Home.tsx:387",href:`/${i.slug}`,style:{textDecoration:"none",display:"flex",alignItems:"flex-start",gap:"0.75rem",padding:"0.75rem 1.25rem",transition:"background 0.15s"},onMouseEnter:l=>l.currentTarget.style.background="rgba(255,255,255,0.04)",onMouseLeave:l=>l.currentTarget.style.background="transparent",children:[a.jsx("span",{"data-loc":"client/src/pages/Home.tsx:390",style:{fontSize:"1.1rem",fontWeight:900,color:o<3?"#f97316":"rgba(255,255,255,0.2)",flexShrink:0,width:"1.5rem",lineHeight:1.3},children:o+1}),a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:391",style:{flex:1,minWidth:0},children:[a.jsx("p",{"data-loc":"client/src/pages/Home.tsx:392",style:{margin:0,fontSize:"0.82rem",fontWeight:700,color:"rgba(255,255,255,0.85)",lineHeight:1.4,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:i.title}),i.categories?.[0]&&a.jsx("span",{"data-loc":"client/src/pages/Home.tsx:394",style:{fontSize:"0.6rem",fontWeight:700,color:"#2c7df7",textTransform:"uppercase",letterSpacing:"0.08em",marginTop:"0.2rem",display:"block"},children:i.categories[0].name})]}),i.viewCount>0&&a.jsx("span",{"data-loc":"client/src/pages/Home.tsx:398",style:{fontSize:"0.6rem",color:"rgba(255,255,255,0.25)",flexShrink:0,fontWeight:600},children:i.viewCount>=1e3?`${(i.viewCount/1e3).toFixed(1)}k`:i.viewCount})]},i.id))}),a.jsx("div",{"data-loc":"client/src/pages/Home.tsx:403",style:{padding:"0.75rem 1.25rem",borderTop:"1px solid rgba(255,255,255,0.06)"},children:a.jsx($,{"data-loc":"client/src/pages/Home.tsx:404",href:"/search",style:{fontSize:"0.7rem",fontWeight:700,color:"#2c7df7",textDecoration:"none",display:"flex",alignItems:"center",gap:"0.3rem"},children:"View all trending â"})})]})}function Pae(){const[e,t]=E.useState(""),r=typeof window<"u"&&!1,[n,s]=E.useState(r),[i,o]=E.useState(r),l=ee.newsletter.subscribe.useMutation({onSuccess:f=>{o(f.welcomeEmailRequested),s(!0),t("")}}),{data:d}=ee.newsletter.subscriberCount.useQuery(void 0,{staleTime:5*6e4}),u=typeof d=="number"?d:1026,g=f=>{f.preventDefault(),e.trim()&&l.mutate({email:e.trim(),govAlerts:!1})};return a.jsx("section",{"data-loc":"client/src/pages/Home.tsx:428",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 60%, #05152e 100%)",borderTop:"1px solid rgba(44,125,247,0.2)",borderBottom:"1px solid rgba(44,125,247,0.2)",padding:"2.5rem 0"},children:a.jsx("div",{"data-loc":"client/src/pages/Home.tsx:429",className:"container",children:a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:430",style:{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between",gap:"1.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:431",style:{flex:"1 1 300px"},children:[a.jsx("p",{"data-loc":"client/src/pages/Home.tsx:432",style:{margin:"0 0 0.3rem",fontSize:"0.65rem",fontWeight:800,textTransform:"uppercase",letterSpacing:"0.12em",color:"#2c7df7"},children:"Free Newsletter"}),a.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:433",style:{margin:"0 0 0.5rem",fontSize:"clamp(1.2rem, 3vw, 1.75rem)",fontWeight:900,color:"#fff",lineHeight:1.2},children:"Stay ahead of Tezos"}),a.jsxs("p",{"data-loc":"client/src/pages/Home.tsx:434",style:{margin:0,fontSize:"0.85rem",color:"rgba(255,255,255,0.55)"}
867,children:["Join ",u.toLocaleString(),"+ readers. Monthly digest on the first of each month."]})]}),a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:436",style:{flex:"1 1 360px"},children:[n?a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:438",className:"newsletter-success-card",role:"status","aria-live":"polite",style:{position:"relative",overflow:"hidden",background:"linear-gradient(135deg, rgba(44,125,247,0.24), rgba(99,247,177,0.16))",border:"1px solid rgba(99,247,177,0.42)",borderRadius:"7px",padding:"1rem 1.25rem",textAlign:"center"},children:[a.jsx("span",{"data-loc":"client/src/pages/Home.tsx:439",className:"newsletter-success-card__glow","aria-hidden":"true"}),a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:440",style:{position:"relative"},children:[a.jsx(ja,{"data-loc":"client/src/pages/Home.tsx:441",className:"newsletter-success-card__icon",size:25,color:"#63f7b1","aria-hidden":"true"}),a.jsx("p",{"data-loc":"client/src/pages/Home.tsx:442",style:{margin:"0.25rem 0",color:"#fff",fontWeight:800},children:qx(i).headline}),a.jsx("p",{"data-loc":"client/src/pages/Home.tsx:443",style:{margin:0,color:"rgba(255,255,255,0.74)",fontSize:"0.76rem",lineHeight:1.5},children:qx(i).description}),a.jsx("p",{"data-loc":"client/src/pages/Home.tsx:444",style:{margin:"0.4rem 0 0",color:"rgba(255,255,255,0.5)",fontSize:"0.68rem",lineHeight:1.4},children:qx(i).preferenceNote})]})]}):a.jsxs("form",{"data-loc":"client/src/pages/Home.tsx:448",onSubmit:g,style:{display:"flex",gap:"0.5rem"},children:[a.jsx("input",{"data-loc":"client/src/pages/Home.tsx:449",type:"email",value:e,onChange:f=>t(f.target.value),placeholder:"[email protected]",required:!0,style:{flex:1,padding:"0.75rem 1rem",background:"rgba(255,255,255,0.08)",border:"1px solid rgba(255,255,255,0.15)",borderRadius:"4px",color:"#fff",fontSize:"0.88rem",outline:"none",fontFamily:"inherit"},onFocus:f=>f.currentTarget.style.borderColor="#2c7df7",onBlur:f=>f.currentTarget.style.borderColor="rgba(255,255,255,0.15)"}),a.jsx("button",{"data-loc":"client/src/pages/Home.tsx:453",type:"submit",disabled:l.isPending,style:{padding:"0.75rem 1.5rem",background:"#2c7df7",border:"none",borderRadius:"4px",color:"#fff",fontSize:"0.82rem",fontWeight:700,cursor:l.isPending?"not-allowed":"pointer",whiteSpace:"nowrap",transition:"background 0.2s",opacity:l.isPending?.7:1},onMouseEnter:f=>{l.isPending||(f.currentTarget.style.background="#1a6ae0")},onMouseLeave:f=>{f.currentTarget.style.background="#2c7df7"},children:l.isPending?"Subscribingâ¦":"Subscribe Free"})]}),l.isError&&a.jsx("p",{"data-loc":"client/src/pages/Home.tsx:461",style:{margin:"0.5rem 0 0",fontSize:"0.75rem",color:"#ef4444"},children:"Something went wrong. Please try again."})]})]})})})}function Tae({posts:e,weekPosts:t,allTimePosts:r}){const[n,s]=E.useState(!1),[i,o]=E.useState(!1);E.useEffect(()=>{const d=()=>s(window.innerWidth<900);return d(),window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[]);const l=i?e:e.slice(0,8);return a.jsx("section",{"data-loc":"client/src/pages/Home.tsx:480",style:{padding:"2.5rem 0",background:"#000"},children:a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:481",className:"container",children:[a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:482",style:{display:"grid",gridTemplateColumns:n?"1fr":"1fr 300px",gap:"2rem",alignItems:"start"},children:[a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:484",children:[a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:485",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"1.25rem"},children:[a.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:486",className:"section-title",style:{marginBottom:0},children:"LATEST NEWS"}),a.jsx($,{"data-loc":"client/src/pages/Home.tsx:487",href:"/category/latest-news",className:"btn-read-more",style:{fontSize:"0.65rem",padding:"0.4rem 1rem"},children:"VIEW MORE"})]}),e.length===0?a.jsx(hA,{"data-loc":"client/src/pages/Home.tsx:489",count:n?2:4,cols:n?1:2}):a.jsxs(a.Fragment,{children:[a.jsx("div",{"data-loc":"client/src/pages/Home.tsx:491",style:{display:"grid",gridTemplateColumns:n?"1fr":"repeat(auto-fill, minmax(220px, 1fr))",gap:"1rem"},children:l.map(d=>a.jsx(ms,{"data-loc":"client/src/pages/Home.tsx:492",post:d,variant:"default"},d.id))}),!i&&e.length>8&&a.jsx("div",{"data-loc":"client/src/pages/Home.tsx:496",style:{textAlign:"center",marginTop:"1.75rem"},children:a.jsx("button",{"data-loc":"client/src/pages/Home.tsx:497",onClick:()=>o(!0),style:{display:"inline-flex",alignItems:"center",gap:"0.5rem",padding:"0.75rem 2rem",background:"transparent",border:"2px s
867olid rgba(44,125,247,0.5)",borderRadius:"3px",color:"#2c7df7",fontSize:"0.78rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",cursor:"pointer",transition:"all 0.2s"},onMouseEnter:d=>{d.currentTarget.style.background="rgba(44,125,247,0.1)",d.currentTarget.style.borderColor="#2c7df7"},onMouseLeave:d=>{d.currentTarget.style.background="transparent",d.currentTarget.style.borderColor="rgba(44,125,247,0.5)"},children:"Load More Articles"})}),i&&a.jsx("div",{"data-loc":"client/src/pages/Home.tsx:506",style:{textAlign:"center",marginTop:"1.5rem"},children:a.jsx($,{"data-loc":"client/src/pages/Home.tsx:507",href:"/category/latest-news",style:{fontSize:"0.75rem",fontWeight:700,color:"#2c7df7",textDecoration:"none"},children:"View all latest news â"})})]})]}),!n&&a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:514",style:{display:"grid",gap:"1rem"},children:[a.jsx(xE,{"data-loc":"client/src/pages/Home.tsx:514"}),a.jsx(bE,{"data-loc":"client/src/pages/Home.tsx:514",weekPosts:t,allTimePosts:r})]})]}),n&&a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:518",style:{display:"grid",gap:"1rem",marginTop:"2rem"},children:[a.jsx(xE,{"data-loc":"client/src/pages/Home.tsx:519"}),(t.length>0||r.length>0)&&a.jsx(bE,{"data-loc":"client/src/pages/Home.tsx:520",weekPosts:t,allTimePosts:r})]})]})})}function Aae(){const{data:e,isLoading:t}=ee.posts.homepageData.useQuery(void 0,{staleTime:6e4}),r=e?.latest??[],n=e?.mostRead??[],s=e?.featured??[];return Ie({title:"Tezos News | XTZ.News â Latest Tezos Blockchain Updates",description:"XTZ.News is the leading source for Tezos news. Get the latest Tezos blockchain updates, XTZ price, DeFi, NFTs, protocol upgrades, and ecosystem developments.",keywords:"Tezos news, XTZ news, Tezos blockchain, Tezos updates, XTZ price, Tezos DeFi, Tezos NFT, Tezos ecosystem, Tezos protocol upgrade",canonical:"https://xtz.news/",ogType:"website",jsonLd:[{"@context":"https://schema.org","@type":"WebSite",name:"XTZ.News",url:"https://xtz.news",description:"The leading source for Tezos blockchain news, XTZ price, DeFi, NFTs, and ecosystem developments.",potentialAction:{"@type":"SearchAction",target:{"@type":"EntryPoint",urlTemplate:"https://xtz.news/search?q={search_term_string}"},"query-input":"required name=search_term_string"}},{"@context":"https://schema.org","@type":"Organization",name:"XTZ.News",url:"https://xtz.news",logo:"https://xtz.news/manus-storage/xtz-logo-square_c6689606.png",sameAs:["https://twitter.com/XTZNews"]}]}),a.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:567",style:{background:"#000"},children:[a.jsx("h1",{"data-loc":"client/src/pages/Home.tsx:569",style:{position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",border:0},children:"Tezos News â Latest XTZ Blockchain Updates, DeFi, NFTs & Ecosystem"}),t?a.jsx(n$,{"data-loc":"client/src/pages/Home.tsx:572"}):a.jsx(jae,{"data-loc":"client/src/pages/Home.tsx:572",latestPosts:r,mostReadPosts:n}),a.jsx(e$,{"data-loc":"client/src/pages/Home.tsx:573",placement:"home"}),a.jsx(Yne,{"data-loc":"client/src/pages/Home.tsx:574"}),a.jsx(tae,{"data-loc":"client/src/pages/Home.tsx:575"}),a.jsx(rae,{"data-loc":"client/src/pages/Home.tsx:576"}),a.jsx(nae,{"data-loc":"client/src/pages/Home.tsx:577"}),a.jsx(aae,{"data-loc":"client/src/pages/Home.tsx:578"}),a.jsx(iae,{"data-loc":"client/src/pages/Home.tsx:579"}),a.jsx(eae,{"data-loc":"client/src/pages/Home.tsx:580"}),a.jsx(Jne,{"data-loc":"client/src/pages/Home.tsx:581"}),a.jsx(Tae,{"data-loc":"client/src/pages/Home.tsx:582",posts:r.slice(0,8),weekPosts:e?.trending??n,allTimePosts:n}),a.jsx(Qne,{"data-loc":"client/src/pages/Home.tsx:583"}),a.jsx(kae,{"data-loc":"client/src/pages/Home.tsx:584",posts:s}),a.jsx(wae,{"data-loc":"client/src/pages/Home.tsx:585",posts:n}),a.jsx(Pae,{"data-loc":"client/src/pages/Home.tsx:586"})]})}function zae(){const{data:e,isLoading:t}=ee.prices.tezosTokens.useQuery(void 0,{staleTime:9e4,refetchInterval:9e4}),r=e?.find(o=>o.symbol==="XTZ"||o.id==="tezos");if(t||!r)return a.jsxs("div",{"data-loc":"client/src/components/XtzPriceWi
867dget.tsx:15",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"6px",padding:"1rem",marginBottom:"1.5rem"},children:[a.jsx("div",{"data-loc":"client/src/components/XtzPriceWidget.tsx:16",className:"skeleton",style:{height:"14px",width:"80px",marginBottom:"8px"}}),a.jsx("div",{"data-loc":"client/src/components/XtzPriceWidget.tsx:17",className:"skeleton",style:{height:"24px",width:"120px",marginBottom:"6px"}}),a.jsx("div",{"data-loc":"client/src/components/XtzPriceWidget.tsx:18",className:"skeleton",style:{height:"12px",width:"60px"}})]});const n=typeof r.price=="number"?r.price:parseFloat(r.price||"0"),s=typeof r.change24h=="number"?r.change24h:parseFloat(r.change24h||"0"),i=s>=0;return a.jsx($,{"data-loc":"client/src/components/XtzPriceWidget.tsx:28",href:"/prices",style:{textDecoration:"none",display:"block"},children:a.jsxs("div",{"data-loc":"client/src/components/XtzPriceWidget.tsx:29",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"6px",padding:"1rem 1.25rem",marginBottom:"1.5rem",transition:"border-color 0.2s, background 0.2s",cursor:"pointer"},onMouseEnter:o=>{o.currentTarget.style.borderColor="rgba(44,125,247,0.4)",o.currentTarget.style.background="#0a1f3d"},onMouseLeave:o=>{o.currentTarget.style.borderColor="rgba(255,255,255,0.08)",o.currentTarget.style.background="#05152e"},children:[a.jsxs("div",{"data-loc":"client/src/components/XtzPriceWidget.tsx:49",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"0.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/components/XtzPriceWidget.tsx:50",style:{display:"flex",alignItems:"center",gap:"0.4rem"},children:[r.image&&a.jsx("img",{"data-loc":"client/src/components/XtzPriceWidget.tsx:52",src:r.image,alt:"XTZ",style:{width:"18px",height:"18px",borderRadius:"50%"}}),a.jsx("span",{"data-loc":"client/src/components/XtzPriceWidget.tsx:54",style:{fontSize:"0.7rem",fontWeight:700,color:"rgba(255,255,255,0.5)",textTransform:"uppercase",letterSpacing:"0.08em"},children:"Tezos (XTZ)"})]}),a.jsx(ve,{"data-loc":"client/src/components/XtzPriceWidget.tsx:58",size:11,style:{color:"rgba(255,255,255,0.25)"}})]}),a.jsxs("div",{"data-loc":"client/src/components/XtzPriceWidget.tsx:62",style:{display:"flex",alignItems:"baseline",gap:"0.6rem"},children:[a.jsxs("span",{"data-loc":"client/src/components/XtzPriceWidget.tsx:63",style:{fontSize:"1.4rem",fontWeight:900,color:"#fff",letterSpacing:"-0.02em"},children:["$",n<1?n.toFixed(4):n.toFixed(2)]}),a.jsxs("div",{"data-loc":"client/src/components/XtzPriceWidget.tsx:66",style:{display:"flex",alignItems:"center",gap:"0.2rem"},children:[i?a.jsx(cr,{"data-loc":"client/src/components/XtzPriceWidget.tsx:68",size:12,style:{color:"#22c55e"}}):a.jsx(Ha,{"data-loc":"client/src/components/XtzPriceWidget.tsx:70",size:12,style:{color:"#ef4444"}}),a.jsxs("span",{"data-loc":"client/src/components/XtzPriceWidget.tsx:72",style:{fontSize:"0.75rem",fontWeight:700,color:i?"#22c55e":"#ef4444"},children:[i?"+":"",s.toFixed(2),"%"]})]})]}),r.sparkline&&r.sparkline.length>1&&a.jsx("div",{"data-loc":"client/src/components/XtzPriceWidget.tsx:80",style:{marginTop:"0.6rem",height:"28px",position:"relative",overflow:"hidden"},children:a.jsx("svg",{"data-loc":"client/src/components/XtzPriceWidget.tsx:81",viewBox:`0 0 ${r.sparkline.length-1} 28`,preserveAspectRatio:"none",style:{width:"100%",height:"100%"},children:(()=>{const o=r.sparkline,l=Math.min(...o),u=Math.max(...o)-l||1,g=o.map((f,m)=>`${m},${28-(f-l)/u*24}`).join(" ");return a.jsx("polyline",{"data-loc":"client/src/components/XtzPriceWidget.tsx:91",points:g,fill:"none",stroke:i?"#22c55e":"#ef4444",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.7"})})()})}),a.jsx("p",{"data-loc":"client/src/components/XtzPriceWidget.tsx:106",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.3)",margin:"0.5rem 0 0",textAlign:"right"},children:"View all Tezos token prices â"})]})})}function Cae(){const[e,t]=E.useState(""),[r,n]=E.useState(!1),[s,i]=E.useState(!1),{data:o=1026}=ee.newsletter.subscriberCount.useQuery(void 0,{staleTime:5*6e4}),l=ee.newsletter.subscribe.useMutation({onSuccess:()=>{i(!0),t("")},onError:u=>{Ee.error(u.message||"Subscription failed. Please try again.")}}),d=u=>{u.preventDefault(),e.trim()&&l.mutate({email:e.trim(),govAlerts:r})};return s?a.jsxs("div",{"data-loc":"client/src/components/ArticleNewsletterSignup.tsx:33",style:{background:"linear-gradient(135deg, rgba(44,125,247,0.12) 0%, rgba(44,125,247,0.04) 100%)",border:"1px solid rgba(44,125,247,0.3)",borderRadius:"8px",padding:"2rem",textAlign:"center",marginTop:"2rem"},children:[a.jsx(ja,{"data-loc":"client/src/components/ArticleNewsletterSignup.tsx:41",size:32,style:{color:"#22c55e",margin:"0 auto 0.75rem"}}),a.jsx("h3",{"data-loc":"client/src/components/ArticleNewsletterSignup.tsx:42",style:{fontSize:"1.1rem",fontWeight:800,color:"#fff",margin:"0 0 0.4rem"},children:"You're subscribed!"}),a.jsxs("p",{"data-loc":"client/src/components/ArticleNewsletterSignup.tsx:45",style:{fontSize:"0.85rem",color:"rgba(255,255,255,0.55)",margin:0},children:["Welcome to the XTZ.News monthly digest.",r?" You'll also receive governance alerts when new Tezos proposals enter voting.":" You'll receive the previous monthâs Tezos stories on the first of each month."]})]}):a.jsxs("div",{"data-loc":"client/src/components/ArticleNewsletterSignup.tsx:53",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",border:"1px solid rgba(44,125,247,0.2)",borderRadius:"8px",padding:"2rem",marginTop:"2rem",position:"relative",overflow:"hidden"},children:[a.jsx("div",{"data-loc":"client/src/components/ArticleNewsletterSignup.tsx:63",style:{position:"absolute",top:0,right:0,width:"200px",height:"200px",background:"radial-gradient(circle at top right, rgba(44,125,247,0.15) 0%, transparent 70%)",pointerEvents:"none"}}),a.jsxs("div",{"data-loc":"client/src/components/ArticleNewsletterSignup.tsx:69",style:{position:"relative"},children:[a.jsxs("div",{"data-loc":"client/src/components/ArticleNewsletterSignup.tsx:71",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginBottom:"0.75rem"},children:[a.jsx("div",{"data-loc":"client/src/components/ArticleNewsletterSignup.tsx:72",style:{width:"32px",height:"32px",background:"rgba(44,125,247,0.2)",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsx(di,{"data-loc":"client/src/components/ArticleNewsletterSignup.tsx:73",size:15,style:{color:"#2c7df7"}})}),a.jsx("span",{"data-loc":"client/src/components/ArticleNewsletterSignup.tsx:75",style:{fontSize:"0.65rem",fontWeight:700,color:"#2c7df7",textTransform:"uppercase",letterSpacing:"0.1em"},children:"Monthly Digest"})]}),a.jsx("h3",{"data-loc":"client/src/components/ArticleNewsletterSignup.tsx:80",style:{fontSize:"1.2rem",fontWeight:900,color:"#fff",margin:"0 0 0.5rem",lineHeight:1.3},children:"Stay ahead of Tezos news"}),a.jsxs("p",{"data-loc":"client/src/components/ArticleNewsletterSignup.tsx:83",style:{fontSize:"0.85rem",color:"rgba(255,255,255,0.55)",margin:"0 0 1.25rem",lineHeight:1.6}
867,children:["Join ",o.toLocaleString(),"+ Tezos enthusiasts who receive the previous monthâs top stories on the first of each month. No spam, unsubscribe anytime."]}),a.jsxs("form",{"data-loc":"client/src/components/ArticleNewsletterSignup.tsx:87",onSubmit:d,style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:[a.jsxs("div",{"data-loc":"client/src/components/ArticleNewsletterSignup.tsx:88",style:{display:"flex",gap:"0.5rem",flexWrap:"wrap"},children:[a.jsx("input",{"data-loc":"client/src/components/ArticleNewsletterSignup.tsx:89",type:"email",value:e,onChange:u=>t(u.target.value),placeholder:"Enter your email address",required:!0,style:{flex:"1 1 220px",padding:"0.7rem 1rem",background:"rgba(255,255,255,0.07)",border:"1px solid rgba(255,255,255,0.15)",borderRadius:"4px",color:"#fff",fontSize:"0.875rem",outline:"none",fontFamily:"inherit",transition:"border-color 0.2s"},onFocus:u=>u.currentTarget.style.borderColor="#2c7df7",onBlur:u=>u.currentTarget.style.borderColor="rgba(255,255,255,0.15)"}),a.jsxs("button",{"data-loc":"client/src/components/ArticleNewsletterSignup.tsx:110",type:"submit",disabled:l.isPending,style:{display:"flex",alignItems:"center",gap:"0.4rem",padding:"0.7rem 1.5rem",background:"#2c7df7",border:"none",borderRadius:"4px",color:"#fff",fontSize:"0.82rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.06em",cursor:"pointer",whiteSpace:"nowrap",transition:"background 0.2s",fontFamily:"inherit"},onMouseEnter:u=>u.currentTarget.style.background="#1a6ae0",onMouseLeave:u=>u.currentTarget.style.background="#2c7df7",children:[a.jsx(wa,{"data-loc":"client/src/components/ArticleNewsletterSignup.tsx:124",size:13}),l.isPending?"Subscribing...":"Subscribe Free"]})]}),a.jsxs("label",{"data-loc":"client/src/components/ArticleNewsletterSignup.tsx:130",style:{display:"flex",alignItems:"flex-start",gap:"0.6rem",cursor:"pointer",userSelect:"none"},children:[a.jsx("div",{"data-loc":"client/src/components/ArticleNewsletterSignup.tsx:131",onClick:()=>n(u=>!u),style:{width:"18px",height:"18px",borderRadius:"4px",flexShrink:0,marginTop:"1px",border:`2px solid ${r?"#2c7df7":"rgba(255,255,255,0.2)"}`,background:r?"#2c7df7":"transparent",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.15s",cursor:"pointer"},children:r&&a.jsx("svg",{"data-loc":"client/src/components/ArticleNewsletterSignup.tsx:141",width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",children:a.jsx("path",{"data-loc":"client/src/components/ArticleNewsletterSignup.tsx:142",d:"M1 4L3.5 6.5L9 1",stroke:"#fff",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),a.jsxs("div",{"data-loc":"client/src/components/ArticleNewsletterSignup.tsx:146",children:[a.jsxs("div",{"data-loc":"client/src/components/ArticleNewsletterSignup.tsx:147",style:{display:"flex",alignItems:"center",gap:"0.35rem"},children:[a.jsx(l0,{"data-loc":"client/src/components/ArticleNewsletterSignup.tsx:148",size:12,style:{color:r?"#2c7df7":"rgba(255,255,255,0.4)"}}),a.jsx("span",{"data-loc":"client/src/components/ArticleNewsletterSignup.tsx:149",style:{fontSize:"0.8rem",fontWeight:700,color:r?"#fff":"rgba(255,255,255,0.55)"},children:"Governance Alerts"}),a.jsx("span",{"data-loc":"client/src/components/ArticleNewsletterSignup.tsx:152",style:{fontSize:"0.6rem",fontWeight:700,padding:"1px 5px",borderRadius:"3px",background:"rgba(44,125,247,0.15)",color:"#2c7df7",textTransform:"uppercase",letterSpacing:"0.06em"},children:"New"})]}),a.jsx("p",{"data-loc":"client/src/components/ArticleNewsletterSignup.tsx:156",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.35)",margin:"0.15rem 0 0",lineHeight:1.5},children:"Get notified when a new Tezos protocol upgrade proposal enters the voting phase."})]})]})]}),a.jsxs("p",{"data-loc":"client/src/components/ArticleNewsletterSignup.tsx:163",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.3)",margin:"0.75rem 0 0"},children:["ð¬ Sent monthly · ",o.toLocaleString(),"+ subscribers · No spam"]})]})]})}let vE=!1,SE=!1;const tv=[];function Eae(){return new Promise(e=>
867{if(vE){e();return}if(tv.push(e),SE)return;SE=!0;const t=document.createElement("script");t.src="https://platform.twitter.com/widgets.js",t.async=!0,t.charset="utf-8",t.onload=()=>{vE=!0,tv.forEach(r=>r()),tv.length=0},document.head.appendChild(t)})}function Oae(e){const t=e.match(/(?:twitter\.com|x\.com)\/[^/]+\/status\/(\d+)/);return t?t[1]:null}function Mae({url:e}){const t=E.useRef(null),[r,n]=E.useState("loading");return E.useEffect(()=>{const s=Oae(e);if(!s||!t.current){n("error");return}const i=t.current;i.innerHTML="",Eae().then(()=>{if(!window.twttr){n("error");return}window.twttr.widgets.createTweet(s,i,{theme:"dark",dnt:"true",align:"center",conversation:"none"}).then(o=>{n(o?"loaded":"error")}).catch(()=>n("error"))})},[e]),a.jsxs("div",{"data-loc":"client/src/components/TweetEmbed.tsx:102",style:{margin:"1.75rem auto",maxWidth:"550px",borderRadius:"12px",overflow:"hidden",background:"rgba(255,255,255,0.03)",border:"1px solid rgba(255,255,255,0.08)",padding:r==="loaded"?"0":"1.5rem",display:"flex",flexDirection:"column",alignItems:"center",minHeight:r==="loading"?"120px":void 0,transition:"all 0.3s"},children:[r==="loading"&&a.jsxs("div",{"data-loc":"client/src/components/TweetEmbed.tsx:119",style:{display:"flex",alignItems:"center",gap:"0.75rem",color:"rgba(255,255,255,0.4)",fontSize:"0.82rem"},children:[a.jsx("svg",{"data-loc":"client/src/components/TweetEmbed.tsx:120",width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor",style:{color:"#1DA1F2",flexShrink:0},children:a.jsx("path",{"data-loc":"client/src/components/TweetEmbed.tsx:121",d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.748l7.73-8.835L1.254 2.25H8.08l4.253 5.622zm-1.161 17.52h1.833L7.084 4.126H5.117z"})}),"Loading tweetâ¦"]}),r==="error"&&a.jsxs("div",{"data-loc":"client/src/components/TweetEmbed.tsx:127",style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"0.5rem",color:"rgba(255,255,255,0.4)",fontSize:"0.82rem",textAlign:"center"},children:[a.jsx("svg",{"data-loc":"client/src/components/TweetEmbed.tsx:128",width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor",style:{color:"#1DA1F2"},children:a.jsx("path",{"data-loc":"client/src/components/TweetEmbed.tsx:129",d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.748l7.73-8.835L1.254 2.25H8.08l4.253 5.622zm-1.161 17.52h1.833L7.084 4.126H5.117z"})}),a.jsx("span",{"data-loc":"client/src/components/TweetEmbed.tsx:131",children:"Could not load tweet."}),a.jsx("a",{"data-loc":"client/src/components/TweetEmbed.tsx:132",href:e,target:"_blank",rel:"noopener noreferrer",style:{color:"#2c7df7",fontSize:"0.78rem"},children:"View on X â"})]}),a.jsx("div",{"data-loc":"client/src/components/TweetEmbed.tsx:138",ref:t,style:{width:"100%"}})]})}function Nae({previewSuccess:e=!1}){const[t,r]=E.useState(""),[n,s]=E.useState(e),[i,o]=E.useState(e),{data:l=1026}=ee.newsletter.subscriberCount.useQuery(void 0,{staleTime:5*6e4}),d=ee.newsletter.subscribe.useMutation({onSuccess:g=>{o(g.welcomeEmailRequested),s(!0),r("")},onError:g=>Ee.error(g.message||"Subscription failed. Please try again.")}),u=g=>{g.preventDefault(),t.trim()&&d.mutate({email:t.trim(),govAlerts:!1})};if(n){const g=qx(i);return a.jsxs("section",{"data-loc":"client/src/components/MidArticleNewsletter.tsx:24",className:"newsletter-success-card","aria-live":"polite","aria-label":"XTZ.News newsletter subscription confirmed",style:{margin:"2rem 0",padding:"1.4rem",borderRadius:"10px",textAlign:"center",position:"relative",overflow:"hidden",background:"linear-gradient(135deg, rgba(44,125,247,0.24), rgba(99,247,177,0.16))",border:"1px solid rgba(99,247,177,0.42)"},children:[a.jsx("span",{"data-loc":"client/src/components/MidArticleNewsletter.tsx:24",className:"newsletter-success-card__glow","aria-hidden":"true"}),a.jsxs("div",{"data-loc":"client/src/components/MidArticleNewsletter.tsx:24",style:{position:"relative"},children:[a.jsx(ja,{"data-loc":"client/src/components/MidArticleNewsletter.tsx:24",className:"newsletter-success-card__icon",size:30,color:"#63f7b1","aria-hidden":"true"}),a.jsx("p",{"data-loc":"client/src/components/MidArticleNewsletter.tsx:24",style:{margin:"0.55rem 0 0.15rem",color:"#8dbbff",fontSize:"0.62rem",fontWeight:900,letterSpacing:"0.1em",textTransform:"uppercase"},children:"XTZ.News Monthly Roundup"}),a.jsx("h2",{"data-loc":"client/src/components/MidArticleNewsletter.tsx:24",style:{color:"#fff",margin:"0.25rem 0",fontSize:"1.08rem"},children:g.headline}),a.jsx("p",{"data-loc":"client/src/components/MidArticleNewsletter.tsx:24",style:{maxWidth:"480px",margin:"0 auto",color:"rgba(255,255,255,0.75)",fontSize:"0.8rem",lineHeight:1.55},children:g.description}),a.jsx("p",{"data-loc":"client/src/components/MidArticleNewsletter.tsx:24",style:{maxWidth:"480px",margin:"0.55rem auto 0",color:"rgba(255,255,255,0.52)",fontSize:"0.7rem",lineHeight:1.45},children:g.preferenceNote})]})]})}return a.jsxs("section",{"data-loc":"client/src/components/MidArticleNewsletter.tsx:28","aria-labelledby":"mid-article-newsletter-title",style:{margin:"2rem 0",padding:"1.35rem",borderRadius:"10px",position:"relative",overflow:"hidden",background:"linear-gradient(120deg, #092a60, #0a1c3f 53%, #073c42)",border:"1px solid rgba(90,159,255,0.35)"},children:[a.jsx("div",{"data-loc":"client/src/components/MidArticleNewsletter.tsx:29","aria-hidden":"true",style:{position:"absolute",width:"180px",height:"180px",right:"-65px",top:"-90px",borderRadius:"50%",background:"radial-gradient(circle, rgba(99,247,177,0.22), transparent 68%)",pointerEvents:"none"}}),a.jsxs("div",{"data-loc":"client/src/components/MidArticleNewsletter.tsx:30",style:{position:"relative",display:"flex",alignItems:"flex-start",ga
867p:"0.9rem"},children:[a.jsx("div",{"data-loc":"client/src/components/MidArticleNewsletter.tsx:31",style:{display:"grid",placeItems:"center",flexShrink:0,width:"34px",height:"34px",borderRadius:"8px",color:"#fff",background:"linear-gradient(135deg, #2c7df7, #63f7b1)"},children:a.jsx(di,{"data-loc":"client/src/components/MidArticleNewsletter.tsx:31",size:17,"aria-hidden":"true"})}),a.jsxs("div",{"data-loc":"client/src/components/MidArticleNewsletter.tsx:32",style:{minWidth:0,flex:1},children:[a.jsxs("p",{"data-loc":"client/src/components/MidArticleNewsletter.tsx:33",style:{display:"flex",alignItems:"center",gap:"0.35rem",margin:"0 0 0.25rem",color:"#8dbbff",fontSize:"0.62rem",letterSpacing:"0.1em",textTransform:"uppercase",fontWeight:900},children:[a.jsx(Fu,{"data-loc":"client/src/components/MidArticleNewsletter.tsx:33",size:12,"aria-hidden":"true"})," XTZ.News monthly roundup"]}),a.jsx("h2",{"data-loc":"client/src/components/MidArticleNewsletter.tsx:34",id:"mid-article-newsletter-title",style:{margin:0,color:"#fff",fontSize:"1.05rem",fontWeight:900,lineHeight:1.25},children:"Get the signal, not the noise."}),a.jsxs("p",{"data-loc":"client/src/components/MidArticleNewsletter.tsx:35",style:{margin:"0.35rem 0 0.9rem",color:"rgba(255,255,255,0.68)",fontSize:"0.78rem",lineHeight:1.55},children:["Join ",l.toLocaleString(),"+ readers for the previous monthâs essential Tezos, Etherlink and governance stories."]}),a.jsxs("form",{"data-loc":"client/src/components/MidArticleNewsletter.tsx:36",onSubmit:u,style:{display:"flex",gap:"0.5rem",flexWrap:"wrap"},children:[a.jsx("label",{"data-loc":"client/src/components/MidArticleNewsletter.tsx:37",className:"sr-only",htmlFor:"mid-article-newsletter-email",children:"Email address"}),a.jsx("input",{"data-loc":"client/src/components/MidArticleNewsletter.tsx:38",id:"mid-article-newsletter-email",type:"email",value:t,onChange:g=>r(g.target.value),required:!0,placeholder:"[email protected]",style:{minWidth:"0",flex:"1 1 180px",padding:"0.62rem 0.75rem",color:"#fff",background:"rgba(3,14,31,0.58)",border:"1px solid rgba(255,255,255,0.22)",borderRadius:"5px",outline:"none",fontFamily:"inherit",fontSize:"0.78rem"}}),a.jsxs("button",{"data-loc":"client/src/components/MidArticleNewsletter.tsx:39",type:"submit",disabled:d.isPending,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"0.35rem",padding:"0.62rem 0.82rem",border:"1px solid #63f7b1",borderRadius:"5px",background:"#63f7b1",color:"#04172a",fontWeight:900,cursor:"pointer",fontSize:"0.72rem",fontFamily:"inherit",transition:"transform 160ms cubic-bezier(0.23, 1, 0.32, 1)"},children:[a.jsx(wa,{"data-loc":"client/src/components/MidArticleNewsletter.tsx:40",size:13,"aria-hidden":"true"}),d.isPending?"Joiningâ¦":"Join free"]})]}),a.jsx("p",{"data-loc":"client/src/components/MidArticleNewsletter.tsx:43",style:{margin:"0.55rem 0 0",color:"rgba(255,255,255,0.45)",fontSize:"0.62rem"},children:"One concise monthly email. Unsubscribe anytime."})]})]})]})}const u0=[{name:"ADHD USA",kentoUrl:"https://kento.art/artists/adhd/",objktProfileUrl:"https://objkt.com/@adhd"},{name:"Adiw Indonesia",kentoUrl:"https://kento.art/artists/adiw/",objktProfileUrl:"https://objkt.com/@adiw/"},{name:"albertine meunier France",kentoUrl:"https://kento.art/artists/albertine-meunier/",objktProfileUrl:"https://objkt.com/@albertine"},{name:"ALIENQUEEN USA",kentoUrl:"https://kento.art/artists/alienqueen/",objktProfileUrl:null},{name:"Amber Vittoria United States",kentoUrl:"https://kento.art/artists/amber-vittoria/",objktProfileUrl:null},{name:"Anna Lucia Germany",kentoUrl:"https://kento.art/artists/anna-lucia/",objktProfileUrl:"https://objkt.com/users/tz1M7dt8sWC64ZXkmiWbttVCtgFrFU6Do9x9"},{name:"Axstone Turkey",kentoUrl:"https://kento.art/artists/axstone/",objktProfileUrl:"https://objkt.com/@axstone"},{name:"Canek Zapata Mexico",kentoUrl:"https://kento.art/artists/canek-zapata/",objktProfileUrl:"https://objkt.com/@canekzapata"},{name:"cemhah United Kingdom",kentoUrl:"https://kento.art/artists/cemhah/",objktProfileUrl:null},{name:"Diela Indonesia",kentoUrl:"https://kento.art/artists/diela/",objktProfileUrl:"https://objkt.com/@diela"},{name:"Elna Frederick",kentoUrl:"https://kento.art/artists/elna-frederick/",objktProfileUrl:"https://objkt.com/@elnafrederick"},{name:"enigmatriz Argentina",kentoUrl:"https://kento.art/artists/enigmatriz/",objktProfileUrl:"https://objkt.com/users/tz1dAU7TWwosvt7J1Xw1pcuKUxH9Getn7rFb"},{name:"Esra Eslen Turkey",kentoUrl:"https://kento.art/artists/esra-eslen/",objktProfileUrl:"https://objkt.com/users/tz1hWgeCVVXDWBPLC9qf4PrXrwLYL2sa4pjt"},{name:"FelixFelixFelix France",kentoUrl:"https://kento.art/artists/felixfelixfelix/",objktProfileUrl:"https://objkt.com/@felixfelixfelix"},{name:"Ganbrood Netherlands",kentoUrl:"https://kento.art/artists/ganbrood/",objktProfileUrl:"https://objkt.com/@ganbrood"},{name:"Hayden Clay USA",kentoUrl:"https://kento.art/artists/hayden-clay/",objktProfileUrl:"https://objkt.com/@haydenclay"},{name:"hAyDiRoKeT Germany",kentoUrl:"https://kento.art/artists/haydiroket/",objktProfileUrl:"https://objkt.com/@haydiroket"},{name:"khwampa India",kentoUrl:"https://kento.art/artists/khwampa/",objktProfileUrl:"https://objkt.com/users/tz1Qr6zYF9hNiQRfxktLdNhqdGXFQziFsBsW"},{name:"Kior South Korea",kentoUrl:"https://kento.art/artists/kior/",objktProfileUrl:"https://objkt.com/users/tz1Nhmph9sWNYoYbmiTQX61g7NxbyN5mdJha"},{name:"kiszkiloszki Poland",kentoUrl:"https://kento.art/artists/kiszkiloszki/",objktProfileUrl:"https://objkt.com/@kiszkiloszki/"},{name:"Lewis Osborne United Kingdom",kentoUrl:"https://kento.art/artists/lewis-osborne/",objktProfileUrl:"https://objkt.com/@lewisosb"},{name:"Louis Dazy France",kentoUrl:"https://kento.art/artists/louis-dazy/",objktProfileUrl:"https://objkt.com/users/tz1Nf7SejopXzH4KQ3cZmgousGJeUNSjqyee"},{name:"MACBETH USA",kentoUrl:"https://kento.art/artists/macbeth/",objktProfileUrl:"https://objkt.com/@macbeth/"},{name:"Marcelo Pinel Brazil",kentoUrl:"https://kento.art/artists/marcelo-pinel/",objktProfileUrl:"https://objkt.com/@marcelopinel"},{name:"Mariah Serbia",kentoUrl:"https://kento.art/artists/mariah/",objktProfileUrl:"https://objkt.com/users/tz1Seby85cUvYPdS7RYZr9c8fXrAhFBbBmJ3"},{name:"MEK.txt Indonesia",kentoUrl:"https://kento.art/artists/mek-txt/",objktProfileUrl:"https://objkt.com/@micasso"},{name:"OELHAN France",kentoUrl:"https://kento.art/artists/oelhan/",objktProfileUrl:"https://objkt.com/users/tz1dTQ6KLvARRsu4X5gPLiFuSoTYWP3mrEPB"},{name:"OMGiDRAWEDit England",kentoUrl:"https://kento.art/artists/omgidrawedit/",objktProfileUrl:"https://objkt.com/@omgidrawedit"},{name:"PERFECTL00P USA",kentoUrl:"https://kento.art/artists/perfectl00
867p/",objktProfileUrl:"https://objkt.com/@perfectloop"},{name:"qubibi Japan",kentoUrl:"https://kento.art/artists/qubibi/",objktProfileUrl:"https://objkt.com/@qubibi"},{name:"Reza Afshar Turkey",kentoUrl:"https://kento.art/artists/reza-afshar/",objktProfileUrl:"https://objkt.com/users/tz1KymkNcKeeBGVT9TB4afkoxq5eQFkcLvvT"},{name:"Riniifish China/Canada",kentoUrl:"https://kento.art/artists/riniifish/",objktProfileUrl:"https://objkt.com/@riniifish"},{name:"Sabato US",kentoUrl:"https://kento.art/artists/sabato/",objktProfileUrl:"https://objkt.com/@sabatobox"},{name:"Salawaki Philippines",kentoUrl:"https://kento.art/artists/salawaki/",objktProfileUrl:"https://objkt.com/@salawaki"},{name:"Spøgelsesmaskinen Denmark",kentoUrl:"https://kento.art/artists/spogelsesmaskinen/",objktProfileUrl:"https://objkt.com/@spogel"},{name:"Strano Canada",kentoUrl:"https://kento.art/artists/strano/",objktProfileUrl:"https://objkt.com/@strano"},{name:"Travess Smalley USA",kentoUrl:"https://kento.art/artists/travess-smalley/",objktProfileUrl:null},{name:"UBERMORGEN Austria",kentoUrl:"https://kento.art/artists/ubermorgen/",objktProfileUrl:"https://objkt.com/@ubermorgen"},{name:"Violet Forest USA",kentoUrl:"https://kento.art/artists/violet-forest/",objktProfileUrl:"https://objkt.com/@violetforest"},{name:"zancan France",kentoUrl:"https://kento.art/artists/zancan/",objktProfileUrl:"https://objkt.com/@zancan"}],jE=u0.filter(e=>!!e.objktProfileUrl).length;function rv(e){return e.replace(/ (USA|United States|United Kingdom|England|France|Germany|Turkey|Mexico|Indonesia|Argentina|Netherlands|India|South Korea|Poland|Brazil|Serbia|Japan|Philippines|Denmark|Canada|China\/Canada|US|Austria)$/,"")}const Rae={"https://kento.art/artists/adhd/":"/manus-storage/kento-season-one-adhd_44376c26.webp","https://kento.art/artists/adiw/":"/manus-storage/kento-season-one-adiw_0e0be5cc.webp","https://kento.art/artists/albertine-meunier/":"/manus-storage/kento-season-one-albertine-meunier_2b953443.webp","https://kento.art/artists/alienqueen/":"/manus-storage/kento-season-one-alienqueen_7b5afef5.webp","https://kento.art/artists/amber-vittoria/":"/manus-storage/kento-season-one-amber-vittoria_b05deaaf.webp","https://kento.art/artists/anna-lucia/":"/manus-storage/kento-season-one-anna-lucia_40f6c94d.webp","https://kento.art/artists/axstone/":"/manus-storage/kento-season-one-axstone_165dc4a8.webp","https://kento.art/artists/canek-zapata/":"/manus-storage/kento-season-one-canek-zapata_2f897aad.webp","https://kento.art/artists/cemhah/":"/manus-storage/kento-season-one-cemhah_f7cd842a.webp","https://kento.art/artists/diela/":"/manus-storage/kento-season-one-diela_4a8fea5e.webp","https://kento.art/artists/elna-frederick/":"/manus-storage/kento-season-one-elna-frederick_63ec3672.webp","https://kento.art/artists/enigmatriz/":"/manus-storage/kento-season-one-enigmatriz_1d433878.webp","https://kento.art/artists/esra-eslen/":"/manus-storage/kento-season-one-esra-eslen_53103a00.webp","https://kento.art/artists/felixfelixfelix/":"/manus-storage/kento-season-one-felixfelixfelix_8680b796.webp","https://kento.art/artists/ganbrood/":"/manus-storage/kento-season-one-ganbrood_545adc7c.webp","https://kento.art/artists/hayden-clay/":"/manus-storage/kento-season-one-hayden-clay_4488780b.webp","https://kento.art/artists/haydiroket/":"/manus-storage/kento-season-one-haydiroket_0bf04287.webp","https://kento.art/artists/khwampa/":"/manus-storage/kento-season-one-khwampa_f8b940dc.webp","https://kento.art/artists/kior/":"/manus-storage/kento-season-one-kior_f4801d47.webp","https://kento.art/artists/kiszkiloszki/":"/manus-storage/kento-season-one-kiszkiloszki_72c2f121.webp","https://kento.art/artists/lewis-osborne/":"/manus-storage/kento-season-one-lewis-osborne_eac9c7a9.webp","https://kento.art/artists/louis-dazy/":"/manus-storage/kento-season-one-louis-dazy_e6148aa3.webp","https://kento.art/artists/macbeth/":"/manus-storage/kento-season-one-macbeth_d3de4e60.webp","https://kento.art/artists/marcelo-pinel/":"/manus-storage/kento-season-one-marcelo-pinel_f6bc5033.webp","https://kento.art/artists/mariah/":"/manus-storage/kento-season-one-mariah_70604339.webp","https://kento.art/artists/mek-txt/":"/manus-storage/kento-season-one-mek-txt_98453ac2.webp","https://kento.art/artists/oelhan/":"/manus-storage/kento-season-one-oelhan_435c62c6.webp","https://kento.art/artists/omgidrawedit/":"/manus-storage/kento-season-one-omgidrawedit_47f575e7.webp","https://kento.art/artists/perfectl00
867p/":"/manus-storage/kento-season-one-perfectl00p_496946af.webp","https://kento.art/artists/qubibi/":"/manus-storage/kento-season-one-qubibi_e10138ab.webp","https://kento.art/artists/reza-afshar/":"/manus-storage/kento-season-one-reza-afshar_d21b9443.webp","https://kento.art/artists/riniifish/":"/manus-storage/kento-season-one-riniifish_a893d46b.webp","https://kento.art/artists/sabato/":"/manus-storage/kento-season-one-sabato_43bb324e.webp","https://kento.art/artists/salawaki/":"/manus-storage/kento-season-one-salawaki_081692e9.webp","https://kento.art/artists/spogelsesmaskinen/":"/manus-storage/kento-season-one-spogelsesmaskinen_719af556.webp","https://kento.art/artists/strano/":"/manus-storage/kento-season-one-strano_a36d633a.webp","https://kento.art/artists/travess-smalley/":"/manus-storage/kento-season-one-travess-smalley_5b4ac74e.webp","https://kento.art/artists/ubermorgen/":"/manus-storage/kento-season-one-ubermorgen_8c03aca2.webp","https://kento.art/artists/violet-forest/":"/manus-storage/kento-season-one-violet-forest_38364b11.webp","https://kento.art/artists/zancan/":"/manus-storage/kento-season-one-zancan_6a0a6159.webp"};function Dae(e){return Rae[e]}const _ae=[{id:"all",label:"All artists",count:u0.length},{id:"verified",label:"Verified Objkt",count:jE},{id:"kento",label:"Kento profile",count:u0.length-jE}];function Iae(e,t){return t==="verified"?!!e.objktProfileUrl:t==="kento"?!e.objktProfileUrl:!0}function Bae(){const[e,t]=E.useState("all"),[r,n]=E.useState(""),s=r.trim().toLocaleLowerCase(),i=E.useMemo(()=>u0.filter(o=>(!s||rv(o.name).toLocaleLowerCase().includes(s))&&Iae(o,e)),[e,s]);return a.jsxs("section",{"data-loc":"client/src/components/KentoArtistDirectory.tsx:39","aria-labelledby":"kento-artist-directory-title",style:{margin:"1.2rem 0 2rem",border:"1px solid rgba(153,246,228,0.22)",borderRadius:"10px",background:"linear-gradient(145deg, rgba(7,26,53,0.92), rgba(5,21,46,0.72))",overflow:"hidden"},children:[a.jsxs("div",{"data-loc":"client/src/components/KentoArtistDirectory.tsx:43",style:{padding:"1.1rem 1.15rem",borderBottom:"1px solid rgba(153,246,228,0.15)"},children:[a.jsx("p",{"data-loc":"client/src/components/KentoArtistDirectory.tsx:44",style:{margin:"0 0 0.35rem",color:"#99f6e4",fontSize:"0.66rem",fontWeight:900,textTransform:"uppercase",letterSpacing:"0.12em"},children:"Creator directory"}),a.jsx("h3",{"data-loc":"client/src/components/KentoArtistDirectory.tsx:45",id:"kento-artist-directory-title",style:{margin:0,color:"#fff",fontSize:"1.08rem",lineHeight:1.3},children:"Find Season 01 artists"}),a.jsx("p",{"data-loc":"client/src/components/KentoArtistDirectory.tsx:46",style:{margin:"0.5rem 0 0",color:"rgba(255,255,255,0.62)",fontSize:"0.82rem",lineHeight:1.55},children:"Direct Objkt profiles are only shown where Kentoâs public artist page linked to one when checked on 1 October 2026."})]}),a.jsxs("div",{"data-loc":"client/src/components/KentoArtistDirectory.tsx:51",style:{padding:"1rem 1.15rem 1.15rem"},children:[a.jsxs("label",{"data-loc":"client/src/components/KentoArtistDirectory.tsx:52",style:{display:"block",position:"relative",marginBottom:"0.85rem"},children:[a.jsx("span",{"data-loc":"client/src/components/KentoArtistDirectory.tsx:53",className:"sr-only",children:"Search Kento Season 01 artists"}),a.jsx(ft,{"data-loc":"client/src/components/KentoArtistDirectory.tsx:54",size:15,"aria-hidden":"true",style:{position:"absolute",left:"0.75rem",top:"50%",transform:"translateY(-50%)",color:"rgba(255,255,255,0.42)"}}),a.jsx("input",{"data-loc":"client/src/components/KentoArtistDirectory.tsx:55",type:"search",value:r,onChange:o=>n(o.target.value),placeholder:"Search an artist","aria-label":"Search Kento Season 01 artists",style:{width:"100%",minHeight:"42px",padding:"0.65rem 0.8rem 0.65rem 2.45rem",borderRadius:"6px",border:"1px solid rgba(255,255,255,0.16)",background:"rgba(0,0,0,0.22)",color:"#fff",fontSize:"0.85rem"}})]}),a.jsx("div",{"data-loc":"client/src/components/KentoArtistDirectory.tsx:65",role:"group","aria-label":"Filter Kento Season 01 artists",style:{display:"flex",flexWrap:"wrap",gap:"0.45rem",marginBottom:"0.9rem"},children:_ae.map(o=>{const l=o.id===e;return a.jsxs("button",{"data-loc":"client/src/components/KentoArtistDirectory.tsx:69",type:"button",onClick:()=>t(o.id),"aria-pressed":l,style:{padding:"0.42rem 0.7rem",borderRadius:"999px",border:l?"1px solid #99f6e4":"1px solid rgba(255,255,255,0.15)",background:l?"rgba(153,246,228,0.16)":"rgba(255,255,255,0.05)",color:l?"#bffcf0":"rgba(255,255,255,0.72)",fontSize:"0.73rem",fontWeight:800,cursor:"pointer"},children:[o.label," ",a.jsxs("span",{"data-loc":"client/src/components/KentoArtistDirectory.tsx:76","aria-hidden":"true",children:["(",o.count,")"]})]},o.id)})}),a.jsxs("p",{"data-loc":"client/src/components/KentoArtistDirectory.tsx:82",role:"status","aria-live":"polite",style:{margin:"0 0 0.7rem",color:"rgba(255,255,255,0.48)",fontSize:"0.72rem",fontWeight:700},children:["Showing ",i.length," ",i.length===1?"artist":"artists"]}),i.length>0?a.jsx("div",{"data-loc":"client/src/components/KentoArtistDirectory.tsx:87",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(180px, 1fr))",gap:"0.55rem"},children:i.map(o=>{const l=!!o.objktProfileUrl,d=o.objktProfileUrl||o.kentoUrl,u=Dae(o.
867kentoUrl);return a.jsxs("a",{"data-loc":"client/src/components/KentoArtistDirectory.tsx:93",href:d,target:"_blank",rel:"noopener noreferrer","aria-label":`${rv(o.name)} â ${l?"verified Objkt profile":"official Kento artist page"}`,style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"0.55rem",minHeight:"70px",padding:"0.55rem",borderRadius:"7px",border:l?"1px solid rgba(153,246,228,0.23)":"1px solid rgba(255,255,255,0.12)",background:l?"rgba(153,246,228,0.055)":"rgba(255,255,255,0.035)",color:"#fff",textDecoration:"none"},children:[a.jsxs("span",{"data-loc":"client/src/components/KentoArtistDirectory.tsx:101",style:{display:"flex",minWidth:0,gap:"0.6rem"},children:[a.jsx("span",{"data-loc":"client/src/components/KentoArtistDirectory.tsx:102",style:{width:"50px",height:"50px",flexShrink:0,overflow:"hidden",borderRadius:"5px",background:"rgba(255,255,255,0.08)"},children:u&&a.jsx("img",{"data-loc":"client/src/components/KentoArtistDirectory.tsx:103",src:Je(u),alt:"",loading:"lazy",style:{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}),a.jsxs("span",{"data-loc":"client/src/components/KentoArtistDirectory.tsx:105",style:{minWidth:0},children:[a.jsx("span",{"data-loc":"client/src/components/KentoArtistDirectory.tsx:106",style:{display:"block",fontWeight:800,fontSize:"0.82rem",overflowWrap:"anywhere"},children:rv(o.name)}),a.jsxs("span",{"data-loc":"client/src/components/KentoArtistDirectory.tsx:107",style:{display:"flex",alignItems:"center",gap:"0.27rem",marginTop:"0.25rem",color:l?"#99f6e4":"rgba(255,255,255,0.5)",fontSize:"0.67rem",fontWeight:700},children:[l&&a.jsx(sA,{"data-loc":"client/src/components/KentoArtistDirectory.tsx:108",size:13,"aria-hidden":"true"})," ",l?"Verified Objkt profile":"Kento artist page"]})]})]}),a.jsx(ve,{"data-loc":"client/src/components/KentoArtistDirectory.tsx:112",size:14,"aria-hidden":"true",style:{color:l?"#99f6e4":"rgba(255,255,255,0.52)",flexShrink:0,marginTop:"0.1rem"}})]},o.kentoUrl)})}):a.jsx("p",{"data-loc":"client/src/components/KentoArtistDirectory.tsx:118",style:{margin:0,padding:"1rem",textAlign:"center",borderRadius:"7px",background:"rgba(255,255,255,0.04)",color:"rgba(255,255,255,0.62)",fontSize:"0.82rem"},children:"No Season 01 artists match that search. Try a different name or filter."})]})]})}const wE=[{src:"/manus-storage/teztowers-main-street-official_179fe977.png",alt:"Official TezTowers night city visual with a glowing golden T above the waterfront skyline",title:"Official city preview",detail:"The official city visual used in TezTowersâ first-day update, which linked readers to the public city interface.",sourceLabel:"TezTowers launch-day post â 1 October 2026",sourceUrl:"https://x.com/TezTowers/status/2105488167042515017"},{src:"/manus-storage/teztowers-plots-filling_4b402214.jpg",alt:"Wide overhead view of TezTowers Main St with rows of virtual buildings and billboards beside the waterfront",title:"Main St starts to fill",detail:"Shared by TezTowers on 30 September alongside its early-neighbourhood update.",sourceLabel:"TezTowers post â 30 September 2026",sourceUrl:"https://x.com/TezTowers/status/2105352862570365315"},{src:"/manus-storage/teztowers-official-avatar_9f05469a.png",alt:"Official TezTowers golden T mark in a night-time virtual city scene",title:"A city-facing identity",detail:"The projectâs official mark and city scene, as published on its own site.",sourceLabel:"TezTowers official site",sourceUrl:"https://teztowers.com/"}];function Lae(){const[e,t]=E.useState(null),r=E.useRef(null),n=e===null?null:wE[e];return E.useEffect(()=>{n&&r.current?.focus()},[n]),E.useEffect(()=>{if(!n)return;const s=i=>{i.key==="Escape"&&t(null)};return window.addEventListener("keydown",s),()=>window.removeEventListener("keydown",s)},[n]),a.jsxs("section",{"data-loc":"client/src/components/TezTowersLaunchGallery.tsx:60","aria-labelledby":"teztowers-gallery-title",style:{margin:"1.75rem 0 2rem",padding:"1rem",border:"1px solid rgba(250,204,21,0.23)",borderRadius:"10px",background:"linear-gradient(145deg, rgba(12,19,42,0.95), rgba(5,21,46,0.82))"},children:[a.jsxs("div",{"data-loc":"client/src/components/TezTowersLaunchGallery.tsx:61",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"1rem",marginBottom:"0.85rem"},children:[a.jsxs("div",{"data-loc":"client/src/components/TezTowersLaunchGallery.tsx:62",children:[a.jsx("p",{"data-loc":"client/src/components/TezTowersLaunchGallery.tsx:63",style:{margin:"0 0 0.28rem",color:"#facc15",fontSize:"0.66rem",fontWeight:900,letterSpacing:"0.12em",textTransform:"uppercase"},children:"Launch visuals"}),a.jsx("h3",{"data-loc":"client/src/components/TezTowersLaunchGallery.tsx:64",id:"teztowers-gallery-title",style:{margin:0,color:"#fff",fontSize:"1.08rem",lineHeight:1.3},children:"A compact look at TezTowers"})]}),a.jsx("span",{"data-loc":"client/src/components/TezTowersLaunchGallery.tsx:66",style:{flexShrink:0,color:"rgba(255,255,255,0.5)",fontSize:"0.7rem",fontWeight:700},children:"Click an image to enlarge"})]}),a.jsx("div",{"data-loc":"client/src/components/TezTowersLaunchGallery.tsx:69",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(155px, 1fr))",gap:"0.65rem"},children:wE.map((s,i)=>a.jsxs("button",{"data-loc":"client/src/components/TezTowersLaunchGallery.tsx:71",type:"button",onClick:()=>t(i),"aria-haspopup":"dialog","aria-label":`Enlarge ${s.title}`,style:{padding:0,overflow:"hidden",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"7px",background:"rgba(255,255,255,0.04)",color:"#fff",cursor:"zoom-in",textAlign:"left"},children:[a.jsxs("span",{"data-loc":"client/src/components/TezTowersLaunchGallery.tsx:79",style:{position:"relative",display:"block",aspectRatio:"16 / 9",overflow:"hidden",background:"#050b18"},children:[a.jsx("img",{"data-loc":"client/src/components/TezTowersLaunchGallery.tsx:80",src:Je(s.src),alt:s.alt,loading:"lazy",style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}}),a.jsx("span",{"data-loc":"client/src/components/TezTowersLaunchGallery.tsx:81","aria-hidden":"true",style:{position:"absolute",right:"0.45rem",bottom:"0.45rem",width:"28px",height:"28px",display:"grid",placeItems:"center",borderRadius:"999px",background:"rgba(0,0,0,0.68)",color:"#fff"},children:a.jsx(zre,{"data-loc":"client/src/components/TezTowersLaunchGallery.tsx:81",size:14})})]}),a.jsxs("span",{"data-loc":"client/src/components/TezTowersLaunchGallery.tsx:83",style:{display:"block",padding:"0.58rem 0.65rem"},children:[a.jsx("span",{"data-loc":"client/src/components/TezTowersLaunchGallery.tsx:84",style:{display:"block",color:"#fff",fontWeight:800,fontSize:"0.75rem"},children:s.title}),a.jsx("span",{"data-loc":"client/src/components/TezTowersLaunchGallery.tsx:85",style:{display:"block",marginTop:"0.2rem",color:"rgba(255,255,255,0.52)",fontSize:"0.64rem",lineHeight:1.35},children:s.sourceLabel})]})]},s.title))}),n&&a.jsx("div",{"data-loc":"client/src/components/TezTowersLaunchGallery.tsx:92",role:"dialog","aria-modal":"true","aria-labelledby":"teztowers-lightbox-title",style:{position:"fixed",inset:0,zIndex:1200,display:"flex",alignItems:"center",justifyContent:"center",padding:"1rem",background:"rgba(0,0,0,0.9)"},onMouseDown:()=>t(null),children:a.jsxs("div",{"data-loc":"client/src/components/TezTowersLaunchGallery.tsx:93",style:{width:"min(920px, 100%)",maxHeight:"calc(100vh - 2rem)",overflow:"auto",border:"1px solid rgba(250,204,21,0.34)",borderRadius:"10px",background:"#07152d"},onMouseDown:s=>s.stopPropagation(),children:[a.jsx("div",{"data-loc":"client/src/components/TezTowersLaunchGallery.tsx:94",style:{display:"flex",justifyContent:"flex-end",padding:"0.6rem 0.6rem 0"},children:a.jsx("button",{"data-loc":"client/src/components/TezTowersLaunchGallery.tsx:95",ref:r,type:"button",onClick:()=>t(null),"aria-label":"Close enlarged TezTowers visual",style:{display:"inline-grid",placeItems:"center",width:"36px",height:"36px",borderRadius:"999px",border:"1px solid rgba(255,255,255,0.2)",background:"rgba(255,255,255,0.07)",color:"#fff",cursor:"pointer"},children:a.jsx(xr,{"data-loc":"client/src/components/TezTowersLaunchGallery.tsx:95",size:17})})}),a.jsx("img",{"data-loc":"client/src/components/TezTowersLaunchGallery.tsx:97",src:Je(n.src),alt:n.alt,style:{display:"block",width:"100%",maxHeight:"68vh",objectFit:"contain",background:"#020611"}}),a.jsxs("div",{"data-loc":"client/src/components/TezTowersLaunchGallery.tsx:98",style:{padding:"1rem 1.15rem 1.2rem"},children:[a.jsx("h3",{"data-loc":"client/src/components/TezTowersLaunchGallery.tsx:99",id:"teztowers-lightbox-title",style:{margin:0,color:"#fff",fontSize:"1rem"},children:n.title}),a.jsx("p",{"data-loc":"client/src/components/TezTowersLaunchGallery.tsx:100",style:{margin:"0.45rem 0 0.8rem",color:"rgba(255,255,255,0.68)",fontSize:"0.82rem",lineHeight:1.55},children:n.detail}),a.jsxs("a",{"data-loc":"client/src/components/TezTowersLaunchGallery.tsx:101",href:n.sourceUrl,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",color:"#facc15",fontWeight:800,fontSize:"0.78rem",textDecoration:"none"},children:[n.sourceLabel," ",a.jsx(ve,{"data-loc":"client/src/components/TezTowersLaunchGallery.tsx:101",size:13,"aria-hidden":"true"})]})]})]})})]})}const Wae=[{key:"ml-dsa-44",matcher:/\bML-DSA-44\b/gi,definition:"ML-DSA-44 is a NIST-standardised post-quantum digital-signature scheme used by tz5 testnet accounts.",href:"/post-quantum#pq-glossary-ml-dsa-44"},{key:"stark-aggregation",matcher:/\bSTARK aggregation\b/gi,definition:"STARK aggregation combines many attestations into a proof that can be checked together; Quantumnet is testing a post-quantum approach.",href:"/post-quantum#pq-glossary-stark-aggregation"},{key:"xmss",matcher:/\bXMSS\b/gi,definition:"XMSS is a hash-based digital-signature scheme that Quantumnet is testing for consensus attestations.",href:"/post-quantum#pq-glossary-xmss"},{key:"zoda",matcher:/\bZODA\b/gi,definition:"ZODA is a two-dimensional tensor-code data-availability approach being evaluated in Quantumnet.",href:"/post-quantum#pq-glossary-zoda"},{key:"smart-rollup",matcher:/\bSmart Rollups?\b/gi,definition:"A Tezos Smart Rollup is a layer 2 system with its own sr1 address and commitment tree.",href:"/glossary/tezos-prefixes#sr1"},{key:"etherlink",matcher:/\bEtherlink\b/gi,definition:"Etherlink is a Tezos execution layer with EVM and Michelson interfaces.",href:"/etherlink"},{key:"michelson",matcher:/\bMichelson\b/gi,definition:"Michelson is Tezosâ smart-contract language.",href:"/glossary/tezos-prefixes#kt1"},{key:"delegation",matcher:/\bdelegat(?:e|ed|ing|ion)\b/gi,definition:"Delegation assigns a baker to an account while keeping its tez liquid.",href:"/staking/start"},{key:"staking",matcher:/\bstak(?:e|ed|ing)\b/gi,definition:"Staking locks tez with a baker and has different liquidity and risk characteristics from delegation.",href:"/staking/start"},{key:"baker",matcher:/\bbakers?\b/gi,definition:"A baker is a Tezos validator that participates in block production and can receive delegation or stake.",href:"/staking/start"},{key:"wxtz",matcher:/\bWXTZ\b/gi,definition:"WXTZ is an ERC-20-compatible wrapped representation of XTZ for relevant Etherlink EVM applications.",href:"/etherlink"},{key:"kt1",matcher:/\bKT1\b/g,definition:"KT1 identifies an originated Tezos smart contract.",href:"/glossary/tezos-prefixes#kt1"},{key:"sr1",matcher:/\bsr1\b/gi,definition:"sr1 identifies a Tezos Smart Rollup address.",href:"/glossary/tezos-prefixes#sr1"},{key:"tz5",matcher:/\btz5\b/gi,definition:"tz5 is a testnet-stage post-quantum Tezos account family; it is not an ordinary Mainnet wallet migration.",href:"/guides/tz5-wallet"},{key:"tz4",matcher:/\btz4\b/gi,definition:"tz4 identifies a Tezos BLS user-account family.",href:"/glossary/tezos-prefixes#tz4"},{key:"tz3",matcher:/\btz3\b/gi,definition:"tz3 identifies a Tezos P-256 user-account family.",href:"/glossary/tezos-prefixes#tz3"},{key:"tz2",matcher:/\btz2\b/gi,definition:"tz2 identifies a Tezos Secp256k1 user-account family.",href:"/glossary/tezos-prefixes#tz2"},{key:"tz1",matcher:/\btz1\b/gi,definition:"tz1 identifies a Tezos Ed25519 user-account family.",href:"/glossary/tezos-prefixes#tz1"},{key:"xtz",matcher:/\bXTZ\b/g,definition:"XTZ is the native coin of the Tezos network.",href:"/wallets"},{key:"tez",matcher:/\btez\b/gi,definition:"Tez is the native coin used on the Tezos network.",href:"/wallets"}],$ae="a, code, pre, script, style, h1, h2, h3, h4, h5, h6, blockquote, [data-technical-term], [data-glossary-definition]";function Fae(e){return new RegExp(e.source,e.flags.includes("g")?e.flags:`${e.flags}g`)}function kE(e,t){let r=null;for(const n of Wae){if(t.has(n.key))continue;const i=Fae(n.matcher).exec(e);!i||i.index===void 0||(!r||i.index<r.index||i.index===r.index&&i[0].length>r.length)&&(r={term:n,index:i.index,length:i[0].length,value:i[0]})}return r}function Hae(e){if(!e||typeof DOMParser>"u")return e;const t=new DOMParser().parseFromString(`<body>${e}</body>`,"text/html"),r=t.createTreeWalker(t.body,NodeFilter.SHOW_TEXT),n=[];let s;for(;s=r.nextNode();)n.push(s);const i=new Set;for(const o of n){const l=o.parentElement;if(!l||l.closest($ae)||!o.textContent?.trim())continue;const d=o.textContent;let u=0,g=d;const f=t.createDocumentFragment();let m=kE(g,i);if(m){for(;m;){m.index>0&&f.append(t.createTextNode(g.slice(0,m.index)));const y=t.createElement("a");y.className="article-glossary-term",y.href=m.term.href,y.dataset.glossaryDefinition=m.term.definition,y.setAttribute("aria-label",`${m.value}: ${m.term.definition} Open the related XTZ.News guide.`),y.textContent=m.value,f.append(y),i.add(m.term.key),u=m.index+m.length,g=g.slice(u),m=kE(g,i)}g&&f.append(t.createTextNode(g)),o.replaceWith(f)}}return t.body.innerHTML}function qae(e){return e.replace(/((?:src|poster)\s*=\s*["'])(?:https?:\/\/(?:www\.)?xtz\.news)?\/manus-storage\/([^"']+)(["'])/gi,(t,r,n,s)=>`${r}${Je(`/manus-storage/${n}`)}${s}`)}function Uae(e){const t=[],r=/<div[^>]+class=["']tweet-embed["'][^>]*data-tweet-url=["']([^"']+)["'][^>]*>[\s\S]*?<\/div>|<div[^>]+data-tweet-url=["']([^"']+)["'][^>]*class=["']tweet-embed["'][^>]*>[\s\S]*?<\/div>|<div[^>]+(?:class=["'][^"']*newsletter-cta[^"']*["']|data-article-newsletter=["'][^"']+["'])[^>]*>\s*<\/div>|<div[^>]+data-kento-artist-directory=["'][^"']+["'][^>]*>\s*<\/div>|<div[^>]+data-teztowers-gallery=["'][^"']+["'][^>]*>\s*<\/div>/gi;let n=0,s;for(;(s=r.exec(e))!==null;){if(s.index>n&&t.push({type:"html",content:e.slice(n,s.index)}),/newsletter-cta|data-article-newsletter/i.test(s[0])){t.push({type:"newsletter"}),n=s.index+s[0].length;continue}if(/data-kento-artist-directory/i.test(s[0])){t.push({type:"kentoArtists"}),n=s.index+s[0].length;continue}if(/data-teztowers-gallery/i.test(s[0])){t.push({type:"teztowersGallery"}),n=s.index+s[0].length;continue}const i=s[1]||s[2];
867i&&t.push({type:"tweet",url:i}),n=s.index+s[0].length}return n<e.length&&t.push({type:"html",content:e.slice(n)}),t}function a$({html:e,className:t,style:r,newsletterPreviewSuccess:n=!1}){const s=E.useMemo(()=>Hae(qae(e)),[e]),i=E.useMemo(()=>Uae(s),[s]);return i.some(l=>l.type==="tweet"||l.type==="newsletter"||l.type==="kentoArtists"||l.type==="teztowersGallery")?a.jsx("div",{"data-loc":"client/src/components/ArticleContent.tsx:106",className:t,style:r,children:i.map((l,d)=>l.type==="tweet"?a.jsx(Mae,{"data-loc":"client/src/components/ArticleContent.tsx:109",url:l.url},`tweet-${d}`):l.type==="newsletter"?a.jsx(Nae,{"data-loc":"client/src/components/ArticleContent.tsx:112",previewSuccess:n},`newsletter-${d}`):l.type==="kentoArtists"?a.jsx(Bae,{"data-loc":"client/src/components/ArticleContent.tsx:115"},`kento-artists-${d}`):l.type==="teztowersGallery"?a.jsx(Lae,{"data-loc":"client/src/components/ArticleContent.tsx:118"},`teztowers-gallery-${d}`):l.content.trim()?a.jsx("div",{"data-loc":"client/src/components/ArticleContent.tsx:122",dangerouslySetInnerHTML:{__html:l.content}},`html-${d}`):null)}):a.jsx("div",{"data-loc":"client/src/components/ArticleContent.tsx:97",className:t,style:r,dangerouslySetInnerHTML:{__html:s}})}function PE(e){if(isNaN(e))return"0:00";const t=Math.floor(e/60),r=Math.floor(e%60);return`${t}:${r.toString().padStart(2,"0")}`}function Gae({src:e,title:t,postId:r,featuredImageUrl:n,slug:s}){const i=E.useRef(null),o=E.useRef(null),[l,d]=E.useState(!1),[u,g]=E.useState(!1),[f,m]=E.useState(0),[y,S]=E.useState(0),[b,v]=E.useState(0),[j,k]=E.useState(!1),[P]=E.useState(e||null);E.useEffect(()=>{const B=i.current;if(!B||!P)return;const R=()=>{m(B.currentTime),v(B.duration?B.currentTime/B.duration*100:0)},_=()=>S(B.duration),W=()=>d(!1),V=()=>k(!0),F=()=>k(!1);return B.addEventListener("timeupdate",R),B.addEventListener("loadedmetadata",_),B.addEventListener("ended",W),B.addEventListener("waiting",V),B.addEventListener("canplay",F),()=>{B.removeEventListener("timeupdate",R),B.removeEventListener("loadedmetadata",_),B.removeEventListener("ended",W),B.removeEventListener("waiting",V),B.removeEventListener("canplay",F)}},[P]);const O=async()=>{const B=i.current;if(!(!B||!P))if(l)B.pause(),d(!1);else try{await B.play(),d(!0)}catch(R){console.error("Play error:",R)}},T=()=>{const B=i.current;B&&(B.muted=!u,g(!u))},C=B=>{const R=i.current,_=o.current;if(!R||!_||!y)return;const W=_.getBoundingClientRect(),V=(B.clientX-W.left)/W.width;R.currentTime=V*y},A=()=>{if(!P){Ee.error("Generate the audio first by pressing play.");return}const B=document.createElement("a");B.href=P,B.download=`${(t||"article").replace(/[^a-z0-9]/gi,"-").toLowerCase()}-george-elevenlabs.mp3`,B.target="_blank",document.body.appendChild(B),B.click(),document.body.removeChild(B),Ee.success("Downloading MP3...")},N=j,M=!!P;return a.jsxs("div",{"data-loc":"client/src/components/AudioPlayer.tsx:116",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",border:"1px solid rgba(44,125,247,0.3)",borderRadius:"6px",padding:"1rem 1.25rem",marginBottom:"1.5rem"},children:[P&&a.jsx("audio",{"data-loc":"client/src/components/AudioPlayer.tsx:125",ref:i,src:P,preload:"metadata"}),a.jsxs("div",{"data-loc":"client/src/components/AudioPlayer.tsx:128",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"0.875rem"},children:[a.jsxs("div",{"data-loc":"client/src/components/AudioPlayer.tsx:129",style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[a.jsx(Fx,{"data-loc":"client/src/components/AudioPlayer.tsx:130",size:14,style:{color:"#2c7df7",flexShrink:0}}),a.jsx("span",{"data-loc":"client/src/components/AudioPlayer.tsx:131",style:{fontSize:"0.7rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"#2c7df7"},children:"Listen to this article"}),!M&&a.jsx("span",{"data-loc":"client/src/components/AudioPlayer.tsx:135",style:{fontSize:"0.62rem",color:"rgba(255,255,255,0.35)",fontStyle:"italic"},children:"· George, ElevenLabs"})]}),a.jsx("div",{"data-loc":"client/src/components/AudioPlayer.tsx:141",style:{display:"flex",gap:"0.25rem"},children:a.jsxs("button",{"data-loc":"client/src/components/AudioPlayer.tsx:142",onClick:A,title:M?"Download MP3":"Generate audio first",style:{background:"none",border:"none",cursor:M?"pointer":"default",color:M?"rgba(255,255,255,0.5)":"rgba(255,255,255,0.2)",display:"flex",alignItems:"center",gap:"0.25rem",padding:"2px 6px",borderRadius:"3px",fontSize:"0.62rem",fontWeight:600,transition:"all 0.15s"},onMouseEnter:B=>{M&&(B.currentTarget.style.color="#2c7df7")},onMouseLeave:B=>{M&&(B.currentTarget.style.color="rgba(255,255,255,0.5)")},children:[a.jsx(my,{"data-loc":"client/src/components/AudioPlayer.tsx:149",size:11}),a.jsx("span",{"data-loc":"client/src/components/AudioPlayer.tsx:150",children:"MP3"})]})})]}),a.jsxs("div",{"data-loc":"client/src/components/AudioPlayer.tsx:157",style:{display:"flex",alignItems:"center",gap:"0.875rem"},children:[a.jsx("button",{"data-loc":"client/src/components/AudioPlayer.tsx:159",onClick:O,disabled:N&&!M,style:{width:"40px",height:"40px",borderRadius:"50%",background:"#2c7df7",border:"none",color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",flexShrink:0,transition:"background 0.2s, transform 0.1s"},onMouseEnter:B=>B.currentTarget.style.background="#1a6ae0",onMouseLeave:B=>B.currentTarget.style.background="#2c7df7",onMouseDown:B=>B.currentTarget.style.transform="scale(0.95)",onMouseUp:B=>B.currentTarget.style.transform="scale(1)","aria-label":l?"Pause":"Play",children:N?a.jsx("div",{"data-loc":"client/src/components/AudioPlayer.tsx:176",style:{width:"14px",height:"14px",border:"2px s
867olid rgba(255,255,255,0.4)",borderTopColor:"#fff",borderRadius:"50%",animation:"spin 0.8s linear infinite"}}):l?a.jsx(Kre,{"data-loc":"client/src/components/AudioPlayer.tsx:178",size:16}):a.jsx(Jre,{"data-loc":"client/src/components/AudioPlayer.tsx:180",size:16,style:{marginLeft:"2px"}})}),a.jsxs("div",{"data-loc":"client/src/components/AudioPlayer.tsx:185",style:{flex:1,display:"flex",flexDirection:"column",gap:"0.3rem"},children:[a.jsx("div",{"data-loc":"client/src/components/AudioPlayer.tsx:186",ref:o,onClick:C,style:{height:"4px",background:"rgba(255,255,255,0.1)",borderRadius:"2px",cursor:M?"pointer":"default",position:"relative",overflow:"hidden"},children:a.jsx("div",{"data-loc":"client/src/components/AudioPlayer.tsx:191",style:{position:"absolute",left:0,top:0,height:"100%",width:`${b}%`,background:"#2c7df7",borderRadius:"2px",transition:"width 0.1s linear"}})}),a.jsxs("div",{"data-loc":"client/src/components/AudioPlayer.tsx:193",style:{display:"flex",justifyContent:"space-between"},children:[a.jsx("span",{"data-loc":"client/src/components/AudioPlayer.tsx:194",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.45)",fontVariantNumeric:"tabular-nums"},children:M?PE(f):r?"Audio coming soon":"No audio"}),a.jsx("span",{"data-loc":"client/src/components/AudioPlayer.tsx:197",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.45)",fontVariantNumeric:"tabular-nums"},children:PE(y)})]})]}),a.jsx("button",{"data-loc":"client/src/components/AudioPlayer.tsx:204",onClick:T,style:{background:"none",border:"none",color:u?"rgba(255,255,255,0.3)":"rgba(255,255,255,0.6)",cursor:"pointer",padding:"4px",display:"flex",flexShrink:0,transition:"color 0.2s"},"aria-label":u?"Unmute":"Mute",onMouseEnter:B=>B.currentTarget.style.color="#fff",onMouseLeave:B=>B.currentTarget.style.color=u?"rgba(255,255,255,0.3)":"rgba(255,255,255,0.6)",children:u?a.jsx(bne,{"data-loc":"client/src/components/AudioPlayer.tsx:211",size:16}):a.jsx(yne,{"data-loc":"client/src/components/AudioPlayer.tsx:211",size:16})})]}),a.jsx("style",{"data-loc":"client/src/components/AudioPlayer.tsx:215",children:` 868 @keyframes spin { to { transform: rotate(360deg); } } 869 @keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } } 870 `})]})}function s$(e){return e.split("/").filter(Boolean)[0]??""}function Vae(e){return e.split("/").filter(Boolean).slice(1).map(t=>decodeURIComponent(t)).join("/")}function Xae(e,t=156){const r=e.replace(/\s+/g," ").trim();return r.length<=t?r:`${r.slice(0,t-1).replace(/\s+\S*$/,"").trim()}â¦`}function i$({takeaways:e}){if(!e)return null;const t=e.split(` 871`).map(r=>r.replace(/^[-â¢*]\s*/,"").trim()).filter(r=>r.length>0);return t.length===0?null:a.jsxs("div",{"data-loc":"client/src/components/KeyTakeaways.tsx:23",style:{background:"linear-gradient(135deg, rgba(44,125,247,0.08) 0%, rgba(26,106,224,0.05) 100%)",border:"1px solid rgba(44,125,247,0.2)",borderLeft:"3px solid #2c7df7",borderRadius:"6px",padding:"1.25rem 1.5rem",marginBottom:"1.75rem"},"aria-label":"Key Takeaways",children:[a.jsxs("h2",{"data-loc":"client/src/components/KeyTakeaways.tsx:34",style:{fontSize:"0.72rem",fontWeight:800,textTransform:"uppercase",letterSpacing:"0.12em",color:"#2c7df7",margin:"0 0 0.875rem",display:"flex",alignItems:"center",gap:"0.4rem"},children:[a.jsx(Ga,{"data-loc":"client/src/components/KeyTakeaways.tsx:47",size:13}),"Key Takeaways"]}),a.jsx("ul",{"data-loc":"client/src/components/KeyTakeaways.tsx:50",style:{margin:0,padding:0,listStyle:"none",display:"flex",flexDirection:"column",gap:"0.5rem"},children:t.slice(0,4).map((r,n)=>a.jsxs("li",{"data-loc":"client/src/components/KeyTakeaways.tsx:52",style:{display:"flex",alignItems:"flex-start",gap:"0.625rem",fontSize:"0.88rem",color:"rgba(255,255,255,0.8)",lineHeight:1.55},children:[a.jsx("span",{"data-loc":"client/src/components/KeyTakeaways.tsx:63",style:{width:"5px",height:"5px",borderRadius:"50%",background:"#2c7df7",flexShrink:0,marginTop:"0.45rem"}}),Xae(r)]},n))})]})}function Kae({title:e,url:t}){const r=encodeURIComponent(t),s=[{label:"Share Ganesha news on X",shortLabel:"Share on X",href:`https://twitter.com/intent/tweet?text=${encodeURIComponent(e)}&url=${r}`,icon:a.jsx("span",{"data-loc":"client/src/components/GaneshaSharePanel.tsx:17","aria-hidden":"true",style:{fontWeight:900,fontSize:"0.95rem",lineHeight:1},children:"X"}),color:"#111827"},{label:"Share Ganesha news on LinkedIn",shortLabel:"Share on LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${r}`,icon:a.jsx(xy,{"data-loc":"client/src/components/GaneshaSharePanel.tsx:24","aria-hidden":"true",size:16}),color:"#0A66C2"}];return a.jsx("section",{"data-loc":"client/src/components/GaneshaSharePanel.tsx:30","aria-labelledby":"ganesha-share-title",style:{marginTop:"2rem",padding:"1rem 1.1rem",borderRadius:"10px",background:"linear-gradient(135deg, rgba(42,255,170,0.11), rgba(44,125,247,0.08))",border:"1px solid rgba(85,255,183,0.25)"},children:a.jsxs("div",{"data-loc":"client/src/components/GaneshaSharePanel.tsx:31",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"1rem",flexWrap:"wrap"},children:[a.jsxs("div",{"data-loc":"client/src/components/GaneshaSharePanel.tsx:32",children:[a.jsxs("p",{"data-loc":"client/src/components/GaneshaSharePanel.tsx:33",style:{margin:"0 0 0.2rem",display:"flex",alignItems:"center",gap:"0.45rem",color:"#63f7b1",fontSize:"0.68rem",fontWeight:900,textTransform:"uppercase",letterSpacing:"0.1em"},children:[a.jsx(bc,{"data-loc":"client/src/components/GaneshaSharePanel.tsx:33",size:13})," Spread the update"]}),a.jsx("h2",{"data-loc":"client/src/components/GaneshaSharePanel.tsx:34",id:"ganesha-share-title",style:{margin:0,color:"#fff",fontSize:"0.98rem",fontWeight:800},children:"Share the Ganesha gateway story"})]}),a.jsx("div",{"data-loc":"client/src/components/GaneshaSharePanel.tsx:36",style:{display:"flex",gap:"0.5rem",flexWrap:"wrap"},children:s.map(i=>a.jsxs("a",{"data-loc":"client/src/components/GaneshaSharePanel.tsx:38",href:i.href,target:"_blank",rel:"noopener noreferrer","aria-label":i.label,style:{display:"inline-flex",alignItems:"center",gap:"0.45rem",padding:"0.55rem 0.75rem",borderRadius:"6px",background:i.color,border:"1px solid rgba(255,255,255,0.18)",color:"#fff",fontSize:"0.74rem",fontWeight:800,textDecoration:"none",transition:"transform 160ms cubic-bezier(0.23, 1, 0.32, 1), filter 160ms"},onMouseEnter:o=>{o.currentTarget.style.transform="translateY(-2px)",o.currentTarget.style.filter="brightness(1.15)"},onMouseLeave:o=>{o.currentTarget.style.transform="translateY(0)",o.currentTarget.style.filter="none"}
871,children:[i.icon,i.shortLabel]},i.shortLabel))})]})})}const nv={evm:{label:"EVM â Michelson",source:"EVM account or contract",gateway:"EVM precompile gateway",destination:"Michelson runtime",address:"0xfF00000000000000000000000000000000007",summary:"Calling the EVM precompile assigns a KT1 address on the Michelson runtime, creating an atomic cross-interface path."},michelson:{label:"Michelson â EVM",source:"Tezos account or Michelson contract",gateway:"Michelson native gateway",destination:"EVM runtime",address:"KT18oDJJKXMKhfE1bSuAPGp92pYcwVDiqsPw",summary:"Calling the Michelson gateway assigns an Ethereum address on the EVM side, associated with EIP-1271 account behaviour."}};function Qae(){const[e,t]=E.useState("evm"),r=nv[e],n=s=>()=>t(s);return a.jsxs("section",{"data-loc":"client/src/components/GatewayExplainer.tsx:32","aria-labelledby":"gateway-explainer-title",style:{margin:"1.5rem 0 1.75rem",padding:"1.25rem",background:"radial-gradient(circle at 50% 30%, rgba(51,255,175,0.14), transparent 41%), linear-gradient(145deg, #061b32, #07122a)",border:"1px solid rgba(88,255,185,0.22)",borderRadius:"12px",overflow:"hidden"},children:[a.jsxs("div",{"data-loc":"client/src/components/GatewayExplainer.tsx:33",style:{display:"flex",justifyContent:"space-between",gap:"1rem",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"1.1rem"},children:[a.jsxs("div",{"data-loc":"client/src/components/GatewayExplainer.tsx:34",children:[a.jsxs("p",{"data-loc":"client/src/components/GatewayExplainer.tsx:35",style:{display:"flex",alignItems:"center",gap:"0.45rem",margin:"0 0 0.25rem",fontSize:"0.68rem",fontWeight:900,color:"#63f7b1",letterSpacing:"0.1em",textTransform:"uppercase"},children:[a.jsx(Kg,{"data-loc":"client/src/components/GatewayExplainer.tsx:35",size:14})," Interactive explainer"]}),a.jsx("h2",{"data-loc":"client/src/components/GatewayExplainer.tsx:36",id:"gateway-explainer-title",style:{margin:0,color:"#fff",fontSize:"1.1rem",fontWeight:850},children:"How the two gateways connect"})]}),a.jsx("p",{"data-loc":"client/src/components/GatewayExplainer.tsx:38",id:"gateway-explainer-instructions",style:{margin:0,maxWidth:"310px",fontSize:"0.72rem",lineHeight:1.5,color:"rgba(255,255,255,0.55)"},children:"Hover, focus, or select an interface to follow that direction. Both sides commit or revert together."})]}),a.jsx("div",{"data-loc":"client/src/components/GatewayExplainer.tsx:41",role:"group","aria-describedby":"gateway-explainer-instructions","aria-label":"Choose a cross-interface gateway direction",style:{display:"flex",flexWrap:"wrap",gap:"0.55rem",marginBottom:"1rem"},children:Object.keys(nv).map(s=>{const i=e===s;return a.jsx("button",{"data-loc":"client/src/components/GatewayExplainer.tsx:45",type:"button",onClick:n(s),onMouseEnter:n(s),onFocus:n(s),"aria-pressed":i,style:{padding:"0.48rem 0.72rem",background:i?"#63f7b1":"rgba(255,255,255,0.06)",color:i?"#031320":"rgba(255,255,255,0.76)",border:i?"1px solid #63f7b1":"1px solid rgba(255,255,255,0.15)",borderRadius:"999px",cursor:"pointer",fontSize:"0.72rem",fontWeight:800,transition:"background 160ms cubic-bezier(0.23, 1, 0.32, 1), color 160ms cubic-bezier(0.23, 1, 0.32, 1), transform 160ms cubic-bezier(0.23, 1, 0.32, 1)"},children:nv[s].label},s)})}),a.jsxs("div",{"data-loc":"client/src/components/GatewayExplainer.tsx:52","aria-live":"polite","aria-atomic":"true",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(170px, 1fr))",alignItems:"stretch",gap:"0.65rem"},children:[a.jsxs("div",{"data-loc":"client/src/components/GatewayExplainer.tsx:53",style:{padding:"0.9rem",borderRadius:"8px",border:e==="evm"?"1px solid rgba(88,255,185,0.75)":"1px solid rgba(255,255,255,0.1)",background:e==="evm"?"rgba(31,86,100,0.38)":"rgba(255,255,255,0.035)"},children:[a.jsx(vre,{"data-loc":"client/src/components/GatewayExplainer.tsx:54",size:18,color:"#79a9ff","aria-hidden":"true"}),a.jsx("p",{"data-loc":"client/src/components/GatewayExplainer.tsx:55",style:{margin:"0.55rem 0 0.2rem",color:"#fff",fontSize:"0.82rem",fontWeight:800},children:"EVM interface"}),a.jsx("p",{"data-loc":"client/src/components/GatewayExplainer.tsx:56",style:{margin:0,color:"rgba(255,255,255,0.52)",fontSize:"0.7rem",lineHeight:1.45},children:"EVM accounts and smart contracts can call the precompile gateway."})]}),a.jsxs("div",{"data-loc":"client/src/components/GatewayExplainer.tsx:59",style:{padding:"0.9rem",borderRadius:"8px",border:"1px solid rgba(88,255,185,0.5)",background:"linear-gradient(180deg, rgba(61,245,169,0.18), rgba(61,245,169,0.06))",textAlign:"center"},children:[a.jsx(Tre,{"data-loc":"client/src/components/GatewayExplainer.tsx:60",size:21,color:"#63f7b1","aria-hidden":"true"}),a.jsx("p",{"data-loc":"client/src/components/GatewayExplainer.tsx:61",style:{margin:"0.45rem 0 0.15rem",color:"#fff",fontSize:"0.82rem",fontWeight:850},children:"NAC gateway"}),a.jsx("code",{"data-loc":"client/src/components/GatewayExplainer.tsx:62",style:{display:"block",color:"#a9ffcf",fontSize:"0.6rem",overflowWrap:"anywhere",lineHeight:1.35},children:r.address})]}),a.jsxs("div",{"data-loc":"client/src/components/GatewayExplainer.tsx:65",style:{padding:"0.9rem",borderRadius:"8px",border:e==="michelson"?"1px solid rgba(88,255,185,0.75)":"1px solid rgba(255,255,255,0.1)",background:e==="michelson"?"rgba(31,86,100,0.38)":"rgba(255,255,255,0.035)"},children:[a.jsx(RP,{"data-loc":"client/src/components/GatewayExplainer.tsx:66",size:18,color:"#f5b4ff","aria-hidden":"true"}),a.jsx("p",{"data-loc":"client/src/components/GatewayExplainer.tsx:67",style:{margin:"0.55rem 0 0.2rem",color:"#fff",fontSize:"0.82rem",fontWeight:800},children:"Michelson interface"}),a.jsx("p",{"data-loc":"client/src/components/GatewayExplainer.tsx:68",style:{margin:0,color:"rgba(255,255,255,0.52)",fontSize:"0.7rem",lineHeight:1.45},children:"Tezos accounts and Michelson contracts use the native gateway in the other direction."})]})]}),a.jsxs("div",{"data-loc":"client/src/components/GatewayExplainer.tsx:72",style:{display:"grid",gridTemplateColumns:"auto minmax(0, 1fr)",gap:"0.75rem",alignItems:"start",marginTop:"0.85rem",padding:"0.8rem",borderRadius:"7px",background:"rgba(0,0,0,0.18)",border:"1px solid rgba(255,255,255,0.07)"},children:[a.jsx(Un,{"data-loc":"client/src/components/GatewayExplainer.tsx:73",size:18,color:"#63f7b1","aria-hidden":"true"}),a.jsxs("div",{"data-loc":"client/src/components/GatewayExplainer.tsx:74",children:[a.jsxs("strong",{"data-loc":"client/src/components/GatewayExplainer.tsx:75",style:{display:"block",color:"#fff",fontSize:"0.75rem",marginBottom:"0.18rem"},children:[r.source," â ",r.gateway," â ",r.destination]}),a.jsx("p",{"data-loc":"client/src/components/GatewayExplainer.tsx:76",style:{margin:0,color:"rgba(255,255,255,0.6)",fontSize:"0.72rem",lineHeight:1.5},children:r.summary})]})]})]})}const Yae=[{href:"#ganesha-interfaces",label:"Two interfaces, one ledger"},{href:"#ganesha-nac",label:"What NAC changes"},{href:"#ganesha-tezos-x",label:"A foundation for Tezos X"}];function Zae(){return a.jsxs("nav",{"data-loc":"client/src/components/GaneshaTechnicalToc.tsx:12","aria-labelledby":"ganesha-toc-title",style:{background:"linear-gradient(145deg, #071c35, #05152e)",border:"1px solid rgba(99,247,177,0.2)",borderRadius:"8px",overflow:"hidden"},children:[a.jsxs("div",{"data-loc":"client/src/components/GaneshaTechnicalToc.tsx:13",style:{display:"flex",alignItems:"center",gap:"0.55rem",padding:"0.9rem 1rem",borderBottom:"1px solid rgba(255,255,255,0.07)"},children:[a.jsx("div",{"data-loc":"client/src/components/GaneshaTechnicalToc.tsx:14",style:{width:"26px",height:"26px",display:"grid",placeItems:"center",borderRadius:"6px",background:"rgba(99,247,177,0.13)",color:"#63f7b1"},children:a.jsx(Pi,{"data-loc":"client/src/components/GaneshaTechnicalToc.tsx:14",size:14,"aria-hidden":"true"})}),a.jsxs("div",{"data-loc":"client/src/components/GaneshaTechnicalToc.tsx:15",children:[a.jsx("p",{"data-loc":"client/src/components/GaneshaTechnicalToc.tsx:16",style:{margin:0,color:"#63f7b1",fontSize:"0.58rem",fontWeight:900,letterSpacing:"0.1em",textTransform:"uppercase"},children:"Technical guide"}),a.jsx("h2",{"data-loc":"client/src/components/GaneshaTechnicalToc.tsx:17",id:"ganesha-toc-title",style:{margin:"0.1rem 0 0",color:"#fff",fontSize:"0.8rem",fontWeight:850},children:"In this Ganesha update"})]})]}),a.jsx("ol",{"data-loc":"client/src/components/GaneshaTechnicalToc.tsx:20",style:{listStyle:"none",padding:"0.45rem",margin:0},children:Yae.map((e,t)=>a.jsx("li",{"data-loc":"client/src/components/GaneshaTechnicalToc.tsx:22",children:a.jsxs("a",{"data-loc":"client/src/components/GaneshaTechnicalToc.tsx:23",href:e.href,style:{display:"grid",gridTemplateColumns:"1.2rem minmax(0, 1fr) auto",alignItems:"center",gap:"0.45rem",padding:"0.65rem 0.55rem",color:"rgba(255,255,255,0.72)",textDecoration:"none",borderRadius:"5px",fontSize:"0.72rem",lineHeight:1.35,fontWeight:700,transition:"background 160ms cubic-bezier(0.23, 1, 0.32, 1), color 160ms cubic-bezier(0.23, 1, 0.32, 1)"},onMouseEnter:r=>{r.currentTarget.style.background="rgba(99,247,177,0.09)",r.currentTarget.style.color="#fff"},onMouseLeave:r=>{r.currentTarget.style.background="transparent",r.currentTarget.style.color="rgba(255,255,255,0.72)"},children:[a.jsxs("span",{"data-loc":"client/src/components/GaneshaTechnicalToc.tsx:24","aria-hidden":"true",style:{color:"rgba(99,247,177,0.7)",fontSize:"0.64rem",fontVariantNumeric:"tabular-nums"},children:["0",t+1]}),a.jsx("span",{"data-loc":"client/src/components/GaneshaTechnicalToc.tsx:25",children:e.label}),a.jsx(Le,{"data-loc":"client/src/components/GaneshaTechnicalToc.tsx:26",size:13,"aria-hidden":"true",color:"#63f7b1"})]})},e.href))})]})}function Jae({progress:e}){const t=Math.max(0,Math.min(100,Math.round(e)));return a.jsxs("div",{"data-loc":"client/src/components/ArticleReadingProgress.tsx:6","aria-label":`Article reading progress: ${t}%`,style:{position:"fixed",top:0,left:0,right:0,height:"4px",zIndex:9999,pointerEvents:"none",background:"rgba(255,255,255,0.08)",boxShadow:"0 1px 10px rgba(0,0,0,0.28)"},children:[a.jsx("div",{"data-loc":"client/src/components/ArticleReadingProgress.tsx:7",role:"progressbar","aria-label":"Article reading progress","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t,style:{height:"100%",width:`${t}%`,minWidth:t>0?"4px":0,background:"linear-gradient(90deg, #2c7df7 0%, #5a9fff 58%, #63f7b1 100%)",boxShadow:"0 0 10px rgba(99,247,177,0.55)",transition:"width 120ms linear"}}),a.jsxs("span",{"data-loc":"client/src/components/ArticleReadingProgress.tsx:8",className:"sr-only",children:[t,"% of this article read"]})]})}function ese(e,t){const r=new Set;return e.filter(n=>n.locale===t||r.has(n.locale)?!1:(r.add(n.locale),!0))}const o$="xtz_preferred_locale";function tse(){if(typeof window>"u")return null;try{const e=window.localStorage.getItem(o$);return e&&Sy(e)?e:null}catch{return null}}function p0(e){if(!(typeof window>"u"||!Sy(e)))try{window.localStorage.setItem(o$,e)}catch{}}function mA({translations:e,currentLocale:t,label:r="Read this article in",className:n}){const s=ese(e,t),[i,o]=E.useState(null);if(E.useEffect(()=>o(tse()),[]),!s.length)return null;const l=s.find(d=>d.locale===i);return a.jsxs("nav",{"data-loc":"client/src/components/ArticleLanguageChooser.tsx:30",className:n,"aria-label":"Available article translations",style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.45rem"},children:[a.jsxs("span",{"data-loc":"client/src/components/ArticleLanguageChooser.tsx:35",style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",fontSize:"0.68rem",fontWeight:800,textTransform:"uppercase",letterSpacing:"0.08em",color:"rgba(255,255,255,0.5)"},children:[a.jsx(ba,{"data-loc":"client/src/components/ArticleLanguageChooser.tsx:36",size:13,"aria-hidden":"true"})," ",r]}),l&&a.jsxs($,{"data-loc":"client/src/components/ArticleLanguageChooser.tsx:39",href:`/${l.locale}/${l.slug}`,onClick:()=>p0(l.locale),"aria-label":`Read this article in your preferred language, ${hs[l.locale]}`,style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",padding:"0.32rem 0.7rem",background:"rgba(91,247,160,0.12)",border:"1px solid rgba(91,247,160,0.42)",borderRadius:"20px",color:"#8ff4c0",fontSize:"0.72rem",fontWeight:800,textDecoration:"none"},children:["Your language: ",_o[l.locale]," ",hs[l.locale]]}),s.map(d=>{const u=d.locale;return a.jsxs($,{"data-loc":"client/src/components/ArticleLanguageChooser.tsx:51",href:`/${u}/${d.slug}`,onClick:()=>p0(u),"aria-label":`Read this article in ${hs[u]}`,style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",padding:"0.32rem 0.7rem",background:"rgba(44,125,247,0.12)",border:"1px solid rgba(44,125,247,0.28)",borderRadius:"20px",color:"#a7c9ff",fontSize:"0.72rem",fontWeight:700,textDecoration:"none"},children:[_o[u]," ",hs[u]]},u)})]})}const no={EVM:{label:"EVM",definition:"Ethereum Virtual Machine: the Ethereum-compatible environment used to run smart contracts."},Michelson:{label:"Michelson",definition:"Tezosâs smart-contract language and execution interface."},NAC:{label:"NAC",definition:"Native Atomic Composability: cross-interface actions succeed together or revert together."},EIP1271:{label:"EIP-1271",definition:"An Ethereum standard that lets a smart-contract account validate signatures."},KT1:{label:"KT1 address",definition:"The address prefix used by originated Tezos smart contracts."}};function ao(e){return`<span class="technical-term" tabindex="0" role="term" aria-label="${e.label}: ${e.definition}"><span class="technical-term__label">${e.label}</span><span class="technical-term__tooltip" role="tooltip">${e.definition}</span></span>`}function rse(e){return e.replace("EVM-side gateway to Etherlinkâs Michelson interface",`${ao(no.EVM)}-side gateway to Etherlinkâs ${ao(no.Michelson)} interface`).replace("Native Atomic Composability, or NAC,",`Native Atomic Composability, or ${ao(no.NAC)},`).replace("NAC is Etherlinkâs name",`${ao(no.NAC)} is Etherlinkâs name`).replace("Tezosâ EVM-compatible execution layer",`Tezosâ ${ao(no.EVM)}-compatible execution layer`).replace("adds a Michelson interface",`adds a ${ao(no.Michelson)} interface`).replace("assigned a KT1 address",`assigned a ${ao(no.KT1)}`).replace("account implementing EIP-1271",`account implementing ${ao(no.EIP1271)}`)}
871function nse({scrollY:e,articleTop:t,articleHeight:r,viewportHeight:n}){const s=t-n*.2,i=t+r-n*.55;return i<=s?e>=i?100:0:Math.max(0,Math.min(100,Math.round((e-s)/(i-s)*100)))}const ase="etherlink-ganesha-native-atomic-composability-gateway-on-chain";function sse(e){return e===ase}function TE(e){const t=e.categories?.map(s=>s.slug.toLowerCase())??[],r=e.title.toLowerCase();let n=0;return t.includes("etherlink")&&(n+=12),t.includes("tezos")&&(n+=8),r.includes("etherlink")&&(n+=6),r.includes("tezos")&&(n+=3),n}function ise(e){return[...e].sort((t,r)=>{const n=TE(r)-TE(t);if(n!==0)return n;const s=r.publishedAt?new Date(r.publishedAt).getTime():0,i=t.publishedAt?new Date(t.publishedAt).getTime():0;return s-i})}const ose="tezoracle-aims-to-restore-tezos-native-price-feeds";function lse(e){return e===ose}function AE(e){const t=e.categories?.map(s=>s.slug.toLowerCase())??[],r=e.title.toLowerCase();let n=0;t.includes("infrastructure")&&(n+=14),t.includes("defi")&&(n+=11),t.includes("etherlink")&&(n+=7);for(const s of["oracle","tezoracle","price feed","defi","etherlink","tezos x","michelson","evm"])r.includes(s)&&(n+=4);return n}function cse(e){return[...e].sort((t,r)=>{const n=AE(r)-AE(t);if(n!==0)return n;const s=r.publishedAt?new Date(r.publishedAt).getTime():0,i=t.publishedAt?new Date(t.publishedAt).getTime():0;return s-i})}function dse(){return a.jsx("section",{"data-loc":"client/src/components/TezOracleProjectLink.tsx:7","aria-labelledby":"tezoracle-project-profile-title",style:{marginTop:"2rem",padding:"1.1rem 1.15rem",borderRadius:"10px",background:"linear-gradient(135deg, rgba(44,125,247,0.12), rgba(128,92,255,0.08))",border:"1px solid rgba(86,147,255,0.3)"},children:a.jsxs("div",{"data-loc":"client/src/components/TezOracleProjectLink.tsx:8",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"1rem",flexWrap:"wrap"},children:[a.jsxs("div",{"data-loc":"client/src/components/TezOracleProjectLink.tsx:9",style:{maxWidth:"550px"},children:[a.jsxs("p",{"data-loc":"client/src/components/TezOracleProjectLink.tsx:10",style:{margin:"0 0 0.25rem",color:"#7cb4ff",fontSize:"0.68rem",fontWeight:900,textTransform:"uppercase",letterSpacing:"0.1em",display:"flex",gap:"0.4rem",alignItems:"center"},children:[a.jsx(Vre,{"data-loc":"client/src/components/TezOracleProjectLink.tsx:10",size:14})," Project directory"]}),a.jsx("h2",{"data-loc":"client/src/components/TezOracleProjectLink.tsx:11",id:"tezoracle-project-profile-title",style:{margin:"0 0 0.35rem",color:"#fff",fontSize:"1rem",fontWeight:800},children:"Follow TezOracleâs build progress"}),a.jsx("p",{"data-loc":"client/src/components/TezOracleProjectLink.tsx:12",style:{margin:0,color:"rgba(255,255,255,0.66)",fontSize:"0.8rem",lineHeight:1.55},children:"Visit the TezOracle project profile for verified build milestones, future published addresses, and related coverage."})]}),a.jsxs($,{"data-loc":"client/src/components/TezOracleProjectLink.tsx:14",href:"/projects/tezoracle","aria-label":"Open the TezOracle project profile",style:{display:"inline-flex",alignItems:"center",gap:"0.45rem",padding:"0.62rem 0.8rem",borderRadius:"6px",background:"#2c7df7",color:"#fff",fontSize:"0.75rem",fontWeight:800,textDecoration:"none",whiteSpace:"nowrap"},children:["Explore TezOracle ",a.jsx(tu,{"data-loc":"client/src/components/TezOracleProjectLink.tsx:15",size:15,"aria-hidden":"true"})]})]})})}function l$({contentType:e,title:t,url:r}){const n=encodeURIComponent(r),s=encodeURIComponent(t),i=e==="article"?"TezOracle news":"TezOracle project",o=[{label:`Share ${i} on X`,shortLabel:"Share on X",href:`https://twitter.com/intent/tweet?text=${s}&url=${n}`,color:"#111827",icon:a.jsx("span",{"data-loc":"client/src/components/TezOracleSharePanel.tsx:15","aria-hidden":"true",style:{fontWeight:900,fontSize:"0.95rem",lineHeight:1},children:"X"})},{label:`Share ${i} on LinkedIn`,shortLabel:"Share on LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${n}`,color:"#0A66C2",icon:a.jsx(xy,{"data-loc":"client/src/components/TezOracleSharePanel.tsx:16","aria-hidden":"true",size:16})}];return a.jsx("section",{"data-loc":"client/src/components/TezOracleSharePanel.tsx:20","aria-labelledby":`tezoracle-${e}-share-title`,style:{marginTop:"1.5rem",padding:"1rem 1.1rem",borderRadius:"10px",background:"rgba(44,125,247,0.07)",border:"1px solid rgba(44,125,247,0.23)"},children:a.jsxs("div",{"data-loc":"client/src/components/TezOracleSharePanel.tsx:21",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"1rem",flexWrap:"wrap"},children:[a.jsxs("div",{"data-loc":"client/src/components/TezOracleSharePanel.tsx:22",children:[a.jsxs("p",{"data-loc":"client/src/components/TezOracleSharePanel.tsx:23",style:{margin:"0 0 0.2rem",display:"flex",alignItems:"center",gap:"0.45rem",color:"#7cb4ff",fontSize:"0.68rem",fontWeight:900,textTransform:"uppercase",letterSpacing:"0.1em"},children:[a.jsx(bc,{"data-loc":"client/src/components/TezOracleSharePanel.tsx:23",size:13})," Share this update"]}),a.jsx("h2",{"data-loc":"client/src/components/TezOracleSharePanel.tsx:24",id:`tezoracle-${e}-share-title`,style:{margin:0,color:"#fff",fontSize:"0.98rem",fontWeight:800},children:"Help others follow TezOracle"})]}),a.jsx("div",{"data-loc":"client/src/components/TezOracleSharePanel.tsx:26",style:{display:"flex",gap:"0.5rem",flexWrap:"wrap"}
871,children:o.map(l=>a.jsxs("a",{"data-loc":"client/src/components/TezOracleSharePanel.tsx:28",href:l.href,target:"_blank",rel:"noopener noreferrer","aria-label":l.label,style:{display:"inline-flex",alignItems:"center",gap:"0.45rem",padding:"0.55rem 0.75rem",borderRadius:"6px",background:l.color,border:"1px solid rgba(255,255,255,0.18)",color:"#fff",fontSize:"0.74rem",fontWeight:800,textDecoration:"none",transition:"transform 160ms cubic-bezier(0.23, 1, 0.32, 1), filter 160ms"},onMouseEnter:d=>{d.currentTarget.style.transform="translateY(-2px)",d.currentTarget.style.filter="brightness(1.15)"},onMouseLeave:d=>{d.currentTarget.style.transform="translateY(0)",d.currentTarget.style.filter="none"},children:[l.icon,l.shortLabel]},l.shortLabel))})]})})}function use(){return a.jsxs("section",{"data-loc":"client/src/components/PostQuantumTopicFilter.tsx:8","aria-labelledby":"post-quantum-topic-title",style:{background:"linear-gradient(135deg, rgba(83, 62, 183, 0.19), rgba(5,21,46,0.96) 58%)",border:"1px solid rgba(137,113,255,0.32)",borderRadius:"8px",padding:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/components/PostQuantumTopicFilter.tsx:9",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginBottom:"0.5rem"},children:[a.jsx("span",{"data-loc":"client/src/components/PostQuantumTopicFilter.tsx:10","aria-hidden":"true",style:{display:"grid",placeItems:"center",width:"24px",height:"24px",borderRadius:"50%",background:"rgba(137,113,255,0.2)",color:"#c4b5fd"},children:a.jsx(mre,{"data-loc":"client/src/components/PostQuantumTopicFilter.tsx:10",size:14})}),a.jsx("span",{"data-loc":"client/src/components/PostQuantumTopicFilter.tsx:11",id:"post-quantum-topic-title",style:{fontSize:"0.65rem",fontWeight:800,textTransform:"uppercase",letterSpacing:"0.1em",color:"#d8d0ff"},children:"Topic filter"})]}),a.jsx("h2",{"data-loc":"client/src/components/PostQuantumTopicFilter.tsx:13",style:{margin:"0 0 0.35rem",fontSize:"0.95rem",lineHeight:1.3,color:"#fff"},children:"Post-quantum"}),a.jsx("p",{"data-loc":"client/src/components/PostQuantumTopicFilter.tsx:14",style:{margin:"0 0 0.75rem",color:"rgba(255,255,255,0.63)",fontSize:"0.75rem",lineHeight:1.55},children:"Find XTZ.News coverage of Tezos cryptography research, `tz5` testing and protocol-readiness work."}),a.jsxs($,{"data-loc":"client/src/components/PostQuantumTopicFilter.tsx:15",href:"/tag/post-quantum","aria-label":"Browse post-quantum articles",style:{color:"#c4b5fd",textDecoration:"none",fontSize:"0.72rem",fontWeight:800,display:"inline-flex",alignItems:"center",gap:"0.35rem"},children:["Browse post-quantum ",a.jsx(_e,{"data-loc":"client/src/components/PostQuantumTopicFilter.tsx:16",size:13,"aria-hidden":"true"})]})]})}function pse(){return a.jsx("aside",{"data-loc":"client/src/components/Tz5WalletGuideLink.tsx:7","aria-labelledby":"tz5-guide-link-title",style:{marginTop:"1.5rem",padding:"1.1rem 1.15rem",background:"linear-gradient(135deg, rgba(44,125,247,0.18), rgba(5,21,46,0.94) 58%)",border:"1px solid rgba(44,125,247,0.36)",borderRadius:"9px"},children:a.jsxs("div",{"data-loc":"client/src/components/Tz5WalletGuideLink.tsx:8",style:{display:"flex",alignItems:"flex-start",gap:"0.75rem"},children:[a.jsx("span",{"data-loc":"client/src/components/Tz5WalletGuideLink.tsx:9","aria-hidden":"true",style:{display:"grid",placeItems:"center",width:"32px",height:"32px",flexShrink:0,borderRadius:"7px",background:"rgba(44,125,247,0.2)",color:"#9bc5ff"},children:a.jsx(Un,{"data-loc":"client/src/components/Tz5WalletGuideLink.tsx:9",size:17})}),a.jsxs("div",{"data-loc":"client/src/components/Tz5WalletGuideLink.tsx:10",children:[a.jsx("p",{"data-loc":"client/src/components/Tz5WalletGuideLink.tsx:11",style:{margin:"0 0 0.18rem",fontSize:"0.62rem",fontWeight:800,color:"#72aaff",textTransform:"uppercase",letterSpacing:"0.1em"},children:"Reader guide"}),a.jsx("h2",{"data-loc":"client/src/components/Tz5WalletGuideLink.tsx:12",id:"tz5-guide-link-title",style:{margin:0,color:"#fff",fontSize:"1rem",lineHeight:1.35},children:"What is a tz5 wallet account?"}),a.jsx("p",{"data-loc":"client/src/components/Tz5WalletGuideLink.tsx:13",style:{margin:"0.4rem 0 0.7rem",color:"rgba(255,255,255,0.68)",fontSize:"0.8rem",lineHeight:1.55},children:"Read the plain-English guide to Tezosâ testnet-stage post-quantum account type and what ordinary holders should do today."}),a.jsxs($,{"data-loc":"client/src/components/Tz5WalletGuideLink.tsx:14",href:"/guides/tz5-wallet",style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",color:"#9bc5ff",fontSize:"0.75rem",fontWeight:800,textDecoration:"none"},children:["Read the tz5 wallet guide ",a.jsx(_e,{"data-loc":"client/src/components/Tz5WalletGuideLink.tsx:15",size:14,"aria-hidden":"true"})]})]})]})})}const gse="tezos-post-quantum-previewnet-why-now";function fse(e){return e===gse}function zE(e){const t=e.categories?.map(s=>s.slug.toLowerCase())??[],r=e.title.toLowerCase();let n=0;
871t.includes("infrastructure")&&(n+=8),t.includes("latest-news")&&(n+=2);for(const s of["post-quantum","quantum","cryptography","ushuaia","tz5","ml-dsa","data availability","protocol","tezos x"])r.includes(s)&&(n+=9);return n}function hse(e){return[...e].sort((t,r)=>{const n=zE(r)-zE(t);if(n!==0)return n;const s=r.publishedAt?new Date(r.publishedAt).getTime():0,i=t.publishedAt?new Date(t.publishedAt).getTime():0;return s-i})}const mse="kento-objkt-physical-digital-art-cards-kickstarter",xse="kento-season-one-funded-951-backers-215920";function yse(e){return e===mse||e===xse}function CE(e){const t=e.categories?.map(s=>s.slug.toLowerCase())??[],r=e.title.toLowerCase();let n=0;t.includes("art")&&(n+=16),t.includes("nfts")&&(n+=10),t.includes("exhibition")&&(n+=8);for(const s of["art","artist","collect","collector","digital art","nft","objkt","teia","exhibition","gallery","mint"])r.includes(s)&&(n+=4);return n}function bse(e){return[...e].sort((t,r)=>{const n=CE(r)-CE(t);if(n!==0)return n;const s=r.publishedAt?new Date(r.publishedAt).getTime():0,i=t.publishedAt?new Date(t.publishedAt).getTime():0;return s-i})}function c$({contentType:e,title:t,url:r}){const n=encodeURIComponent(r),s=encodeURIComponent(t),i=e==="article"?"Kento campaign story":"Kento project",o=[{label:`Share this ${i} on X`,shortLabel:"Share on X",href:`https://twitter.com/intent/tweet?text=${s}&url=${n}`,color:"#111827",icon:a.jsx("span",{"data-loc":"client/src/components/KentoSharePanel.tsx:15","aria-hidden":"true",style:{fontWeight:900,fontSize:"0.95rem",lineHeight:1},children:"X"})},{label:`Share this ${i} on LinkedIn`,shortLabel:"Share on LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${n}`,color:"#0A66C2",icon:a.jsx(xy,{"data-loc":"client/src/components/KentoSharePanel.tsx:16","aria-hidden":"true",size:16})}];return a.jsx("section",{"data-loc":"client/src/components/KentoSharePanel.tsx:20","aria-labelledby":`kento-${e}-share-title`,style:{marginTop:"1.5rem",padding:"1rem 1.1rem",borderRadius:"10px",background:"linear-gradient(135deg, rgba(249,168,212,0.11), rgba(45,212,191,0.08))",border:"1px solid rgba(249,168,212,0.28)"},children:a.jsxs("div",{"data-loc":"client/src/components/KentoSharePanel.tsx:21",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"1rem",flexWrap:"wrap"},children:[a.jsxs("div",{"data-loc":"client/src/components/KentoSharePanel.tsx:22",children:[a.jsxs("p",{"data-loc":"client/src/components/KentoSharePanel.tsx:23",style:{margin:"0 0 0.2rem",display:"flex",alignItems:"center",gap:"0.45rem",color:"#f9a8d4",fontSize:"0.68rem",fontWeight:900,textTransform:"uppercase",letterSpacing:"0.1em"},children:[a.jsx(bc,{"data-loc":"client/src/components/KentoSharePanel.tsx:23",size:13})," Share this story"]}),a.jsx("h2",{"data-loc":"client/src/components/KentoSharePanel.tsx:24",id:`kento-${e}-share-title`,style:{margin:0,color:"#fff",fontSize:"0.98rem",fontWeight:800},children:"Help others discover Kento"})]}),a.jsx("div",{"data-loc":"client/src/components/KentoSharePanel.tsx:26",style:{display:"flex",gap:"0.5rem",flexWrap:"wrap"},children:o.map(l=>a.jsxs("a",{"data-loc":"client/src/components/KentoSharePanel.tsx:27",href:l.href,target:"_blank",rel:"noopener noreferrer","aria-label":l.label,style:{display:"inline-flex",alignItems:"center",gap:"0.45rem",padding:"0.55rem 0.75rem",borderRadius:"6px",background:l.color,border:"1px solid rgba(255,255,255,0.18)",color:"#fff",fontSize:"0.74rem",fontWeight:800,textDecoration:"none"},children:[l.icon,l.shortLabel]},l.shortLabel))})]})})}const vse=[{slug:"lee-evans",name:"Lee Evans",jobTitle:"Writer",location:"United Kingdom",description:"Lee Evans is a UK-based writer for XTZ.News. His coverage follows Tezos technology, ecosystem projects, digital art, and the people building around the protocol, with an emphasis on clear context and direct source links.",imageUrl:"/manus-storage/lee-evans-xtz-news-author_7f0b6eaf.png",websiteUrl:"https://optimised.marketing",initials:"LE"},{slug:"rossa-browne",name:"Rossa Browne",jobTitle:"Writer",location:"Ireland",description:"Rossa Browne is an Ireland-based writer for XTZ.News. He follows Tezos news, digital culture, community developments, and practical reader context, with a focus on accessible editorial coverage.",initials:"RB"}];function xA(e){return vse.find(t=>t.slug===e)}function Sse({callout:e}){return a.jsxs("aside",{"data-loc":"client/src/components/ArticleEventCalendarLink.tsx:8","aria-label":"Related Tezos events",style:{marginTop:"1.65rem",padding:"1.15rem 1.2rem",borderRadius:"10px",background:"linear-gradient(120deg, rgba(245,158,11,0.13), rgba(44,125,247,0.09))",border:"1px solid rgba(251,191,36,0.32)",boxShadow:"0 10px 28px rgba(0,0,0,0.16)"},children:[a.jsxs("div",{"data-loc":"client/src/components/ArticleEventCalendarLink.tsx:9",style:{display:"flex",gap:"0.75rem",alignItems:"flex-start"},children:[a.jsx("div",{"data-loc":"client/src/components/ArticleEventCalendarLink.tsx:10","aria-hidden":"true",style:{display:"grid",placeItems:"center",flex:"0 0 auto",width:"34px",height:"34px",borderRadius:"8px",background:"rgba(251,191,36,0.15)",color:"#fcd34d"},children:a.jsx(Fa,{"data-loc":"client/src/components/ArticleEventCalendarLink.tsx:10",size:18})}),a.jsxs("div",{"data-loc":"client/src/components/ArticleEventCalendarLink.tsx:11",children:[a.jsx("p",{"data-loc":"client/src/components/ArticleEventCalendarLink.tsx:12",style:{margin:0,color:"#fcd34d",fontSize:"0.63rem",fontWeight:900,textTransform:"uppercase",letterSpacing:"0.12em"},children:e.eyebrow}),a.jsx("h2",{"data-loc":"client/src/components/ArticleEventCalendarLink.tsx:13",style:{margin:"0.35rem 0 0",color:"#fff",fontSize:"1.05rem",lineHeight:1.25},children:e.title}),a.jsx("p",{"data-loc":"client/src/components/ArticleEventCalendarLink.tsx:14",style:{margin:"0.45rem 0 0",color:"rgba(255,255,255,0.72)",fontSize:"0.85rem",lineHeight:1.55},children:e.description})]})]}),a.jsxs("div",{"data-loc":"client/src/components/ArticleEventCalendarLink.tsx:17",style:{display:"flex",flexWrap:"wrap",gap:"0.65rem",marginTop:"1rem"},children:[a.jsxs($,{"data-loc":"client/src/components/ArticleEventCalendarLink.tsx:18",href:`/events${e.eventQuery}`,style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",minHeight:"38px",borderRadius:"5px",padding:"0.55rem 0.8rem",background:"#fbbf24",color:"#1d1603",textDecoration:"none",fontSize:"0.78rem",fontWeight:900},children:["Open events ",a.jsx(Le,{"data-loc":"client/src/components/ArticleEventCalendarLink.tsx:18",size:15})]}),a.jsxs("a",{"data-loc":"client/src/components/ArticleEventCalendarLink.tsx:19",href:"https://xtz.news/events.ics",style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",minHeight:"38px",borderRadius:"5px",padding:"0.55rem 0.8rem",border:"1px solid rgba(255,255,255,0.22)",color:"rgba(255,255,255,0.9)",textDecoration:"none",fontSize:"0.78rem",fontWeight:800},children:[a.jsx(uA,{"data-loc":"client/src/components/ArticleEventCalendarLink.tsx:19",size:14})," Calendar feed"]})]})]})}const jse={"arthur-breitman-token2049-quantum-risks-crypto":{eyebrow:"Tezos events calendar",title:"Save the TOKEN2049 quantum panel",description:"View the eventâs organiser details, add the panel to a personal calendar, or subscribe to future editor-reviewed Tezos events.",eventQuery:"?topic=Post-Quantum"},"tezos-art-recap-responsive-signals-vienna-digital-works":{eyebrow:"Art on Tezos calendar",title:"Find the next Art on Tezos event",description:"Browse editor-reviewed exhibitions, talks and gatherings, then add the events that matter to a personal calendar.",eventQuery:"?topic=Art%20on%20Tezos"}};function wse(e){return jse[e]}function kse({credit:e,sourceUrl:t}){if(!e)return null;const r=a.jsxs(a.Fragment,{children:["Image: ",a.jsx("strong",{"data-loc":"client/src/components/ArticleFeaturedImageCredit.tsx:12",children:e})]});return a.jsx("figcaption",{"data-loc":"client/src/components/ArticleFeaturedImageCredit.tsx:15",className:"mx-auto max-w-[900px] px-4 py-2 text-left text-xs leading-5 text-white/55",style:{background:"#05152e",borderTop:"1px solid rgba(255,255,255,0.08)"},children:t?a.jsxs("a",{"data-loc":"client/src/components/ArticleFeaturedImageCredit.tsx:20",href:t,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-inherit underline decoration-white/25 underline-offset-4 transition-colors hover:text-white focus-visible:text-white",children:[r,a.jsx(ve,{"data-loc":"client/src/components/ArticleFeaturedImageCredit.tsx:27",size:12,"aria-hidden":"true"}),a.jsx("span",{"data-loc":"client/src/components/ArticleFeaturedImageCredit.tsx:28",className:"sr-only",children:" â opens official source in a
871new tab"})]}):r})}function Pse(e){E.useEffect(()=>{if(!e)return;const t="https://xtz.news",r=`${t}/${e.slug}`,n=`${e.title} | XTZ.News`,s=e.excerpt?e.excerpt.replace(/<[^>]*>/g,"").replace(/&[a-z#0-9]+;/gi," ").trim().slice(0,160):"The latest Tezos blockchain news, projects and updates.",i=`${t}/api/og?type=article&title=${encodeURIComponent(e.title.slice(0,100))}&category=${encodeURIComponent(e.categories?.[0]?.name||"Tezos News")}`,o=e.featuredImageUrl||i,l=(P,O)=>{let T=document.querySelector(`meta[property="${P}"]`);T||(T=document.createElement("meta"),T.setAttribute("property",P),document.head.appendChild(T)),T.setAttribute("content",O)},d=(P,O)=>{let T=document.querySelector(`meta[name="${P}"]`);T||(T=document.createElement("meta"),T.setAttribute("name",P),document.head.appendChild(T)),T.setAttribute("content",O)};document.title=n,l("og:type","article"),l("og:title",n),l("og:description",s),l("og:url",r),l("og:image",o),l("og:image:width","1200"),l("og:image:height","630"),l("og:site_name","XTZ.News"),e.publishedAt&&l("article:published_time",new Date(e.publishedAt).toISOString()),e.updatedAt&&l("article:modified_time",new Date(e.updatedAt).toISOString()),e.categories?.[0]&&l("article:section",e.categories[0].name),d("twitter:card","summary_large_image"),d("twitter:site","@XTZNews"),d("twitter:title",n),d("twitter:description",s),d("twitter:image",o),d("description",s);let u=document.querySelector("link[rel='canonical']");u||(u=document.createElement("link"),u.setAttribute("rel","canonical"),document.head.appendChild(u)),u.setAttribute("href",r);const g="schema-newsarticle";let f=document.getElementById(g);f||(f=document.createElement("script"),f.id=g,f.type="application/ld+json",document.head.appendChild(f));const m=e.publishedAt?new Date(e.publishedAt).toISOString():void 0,y=e.updatedAt?new Date(e.updatedAt).toISOString():m,S=xA(e.authorSlug),b=e.categories?.[0]?.name||"Tezos News",v=e.categories?.[0]?.slug||"latest-news",j=e.categories?.map(P=>P.name).join(", ")||"Tezos, XTZ, blockchain",k=[{"@context":"https://schema.org","@type":"NewsArticle",headline:e.title,description:s,image:[{"@type":"ImageObject",url:o,width:1200,height:630}],url:r,datePublished:m,dateModified:y,inLanguage:"en-GB",isAccessibleForFree:!0,keywords:j,author:S?[{"@type":"Person",name:S.name,url:`https://xtz.news/authors/${S.slug}`}]:[{"@type":"Organization",name:"XTZ.News",url:"https://xtz.news",sameAs:["https://twitter.com/XTZNews"]}],publisher:{"@type":"Organization",name:"XTZ.News",url:"https://xtz.news",logo:{"@type":"ImageObject",url:"https://xtz.news/manus-storage/xtz-logo-square_c6689606.png",width:512,height:512},sameAs:["https://twitter.com/XTZNews","https://www.facebook.com/xtz.news","https://www.linkedin.com/company/xtz-news"]},mainEntityOfPage:{"@type":"WebPage","@id":r},articleSection:b,thumbnailUrl:o,copyrightYear:m?new Date(m).getFullYear():new Date().getFullYear()},{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://xtz.news"},{"@type":"ListItem",position:2,name:b,item:`https://xtz.news/category/${v}`},{"@type":"ListItem",position:3,name:e.title,item:r}]}];return f.textContent=JSON.stringify(k),()=>{document.title="XTZ.News â Tezos News";const P=document.getElementById(g);P&&P.remove()}},[e?.slug,e?.updatedAt,e?.authorSlug])}function EE(e){return e?new Date(e).toLocaleDateString("en-GB",{day:"numeric",month:"long",year:"numeric"}):""}function av({title:e,url:t,variant:r="compact"}){const n=encodeURIComponent(t),s=encodeURIComponent(e),[i,o]=E.useState(""),l=async()=>{try{await navigator.clipboard.writeText(t),o("Article link copied to clipboard."),Ee.success("Link copied to clipboard!")}catch{o("Article link could not be copied. Please copy the page address manually."),Ee.error("Unable to copy the link.")}},d=async()=>{if(navigator.share)try{await navigator.share({title:e,url:t});return}catch{}l()},u=[{label:"Twitter",href:`https://twitter.com/intent/tweet?text=${s}&url=${n}`,icon:a.jsx(vc,{"data-loc":"client/src/pages/ArticlePage.tsx:234",size:r==="full"?16:13}),color:"#1DA1F2"},{label:"Facebook",href:`https://www.facebook.com/sharer/sharer.php?u=${n}`,icon:a.jsx(Cre,{"data-loc":"client/src/pages/ArticlePage.tsx:240",size:r==="full"?16:13}),color:"#1877F2"},{label:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${n}`,icon:a.jsx(xy,{"data-loc":"client/src/pages/ArticlePage.tsx:246",size:r==="full"?16:13}),color:"#0A66C2"},{label:"Telegram",href:`https://t.me/share/url?url=${n}&text=${s}`,icon:a.jsx(wa,{"data-loc":"client/src/pages/ArticlePage.tsx:252",size:r==="full"?16:13}),color:"#26A5E4"},{label:"WhatsApp",href:`https://wa.me/?text=${s}%20${n}`,icon:a.jsx("svg",{"data-loc":"client/src/pages/ArticlePage.tsx:259",width:r==="full"?16:13,height:r==="full"?16:13,viewBox:"0 0 24 24",fill:"
871currentColor",children:a.jsx("path",{"data-loc":"client/src/pages/ArticlePage.tsx:260",d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"})}),color:"#25D366"},{label:"Reddit",href:`https://reddit.com/submit?url=${n}&title=${s}`,icon:a.jsx("svg",{"data-loc":"client/src/pages/ArticlePage.tsx:269",width:r==="full"?16:13,height:r==="full"?16:13,viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{"data-loc":"client/src/pages/ArticlePage.tsx:270",d:"M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0zm5.01 4.744c.688 0 1.25.561 1.25 1.249a1.25 1.25 0 0 1-2.498.056l-2.597-.547-.8 3.747c1.824.07 3.48.632 4.674 1.488.308-.309.73-.491 1.207-.491.968 0 1.754.786 1.754 1.754 0 .716-.435 1.333-1.01 1.614a3.111 3.111 0 0 1 .042.52c0 2.694-3.13 4.87-7.004 4.87-3.874 0-7.004-2.176-7.004-4.87 0-.183.015-.366.043-.534A1.748 1.748 0 0 1 4.028 12c0-.968.786-1.754 1.754-1.754.463 0 .898.196 1.207.49 1.207-.883 2.878-1.43 4.744-1.487l.885-4.182a.342.342 0 0 1 .14-.197.35.35 0 0 1 .238-.042l2.906.617a1.214 1.214 0 0 1 1.108-.701zM9.25 12C8.561 12 8 12.562 8 13.25c0 .687.561 1.248 1.25 1.248.687 0 1.248-.561 1.248-1.249 0-.688-.561-1.249-1.249-1.249zm5.5 0c-.687 0-1.248.561-1.248 1.25 0 .687.561 1.248 1.249 1.248.688 0 1.249-.561 1.249-1.249 0-.687-.562-1.249-1.25-1.249zm-5.466 3.99a.327.327 0 0 0-.231.094.33.33 0 0 0 0 .463c.842.842 2.484.913 2.961.913.477 0 2.105-.056 2.961-.913a.361.361 0 0 0 .029-.463.33.33 0 0 0-.464 0c-.547.533-1.684.73-2.512.73-.828 0-1.979-.196-2.512-.73a.326.326 0 0 0-.232-.095z"})}),color:"#FF4500"}];return r==="full"?a.jsxs("div",{"data-loc":"client/src/pages/ArticlePage.tsx:279",style:{padding:"1.5rem",background:"rgba(44,125,247,0.05)",border:"1px solid rgba(44,125,247,0.15)",borderRadius:"4px"},children:[a.jsx("p",{"data-loc":"client/src/pages/ArticlePage.tsx:280",className:"sr-only",role:"status","aria-live":"polite","aria-atomic":"true",children:i}),a.jsx("p",{"data-loc":"client/src/pages/ArticlePage.tsx:281",style:{fontSize:"0.75rem",fontWeight:900,textTransform:"uppercase",letterSpacing:"0.12em",color:"rgba(255,255,255,0.5)",marginBottom:"1rem"},children:"Share this article"}),a.jsxs("div",{"data-loc":"client/src/pages/ArticlePage.tsx:284",style:{display:"flex",flexWrap:"wrap",gap:"0.5rem"},children:[u.map(g=>a.jsxs("a",{"data-loc":"client/src/pages/ArticlePage.tsx:286",href:g.href,target:"_blank",rel:"noopener noreferrer","aria-label":`Share on ${g.label}`,style:{display:"inline-flex",alignItems:"center",gap:"0.5rem",padding:"0.55rem 1rem",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"3px",color:"rgba(255,255,255,0.8)",textDecoration:"none",fontSize:"0.78rem",fontWeight:600,transition:"all 0.2s"},onMouseEnter:f=>{f.currentTarget.style.background=g.color,f.currentTarget.style.borderColor=g.color,f.currentTarget.style.color="#fff"},onMouseLeave:f=>{f.currentTarget.style.background="rgba(255,255,255,0.06)",f.currentTarget.style.borderColor="rgba(255,255,255,0.12)",f.currentTarget.style.color="rgba(255,255,255,0.8)"},children:[g.icon,g.label]},g.label)),a.jsxs("button",{"data-loc":"client/src/pages/ArticlePage.tsx:319",onClick:l,"aria-label":"Copy link",style:{display:"inline-flex",alignItems:"center",gap:"0.5rem",padding:"0.55rem 1rem",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"3px",color:"rgba(255,255,255,0.8)",fontSize:"0.78rem",fontWeight:600,cursor:"pointer",transition:"all 0.2s"},onMouseEnter:g=>{g.currentTarget.style.background="#2c7df7",g.currentTarget.style.borderColor="#2c7df7",g.currentTarget.style.color="#fff"},onMouseLeave:g=>{g.currentTarget.style.background="rgba(255,255,255,0.06)",g.currentTarget.style.borderColor="rgba(255,255,255,0.12)",g.currentTarget.style.color="rgba(255,255,255,0.8)"},children:[a.jsx(an,{"data-loc":"client/src/pages/ArticlePage.tsx:345",size:16}),"Copy Link"]})]})]}):a.jsxs("div",{"data-loc":"client/src/pages/ArticlePage.tsx:356",style:{display:"flex",alignItems:"center",gap:"0.4rem",flexWrap:"wrap"},children:[a.jsx("p",{"data-loc":"client/src/pages/ArticlePage.tsx:357",className:"sr-only",role:"status","aria-live":"polite","aria-atomic":"true",children:i}),a.jsxs("button",{"data-loc":"client/src/pages/ArticlePage.tsx:358",onClick:d,"aria-label":"Share this article",style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",padding:"0.35rem 0.6rem",borderRadius:"20px",background:"rgba(44,125,247,0.16)",border:"1px solid rgba(44,125,247,0.3)",color:"#8cbcff",cursor:"pointer",fontSize:"0.68rem",fontWeight:700},children:[a.jsx(bc,{"data-loc":"client/src/pages/ArticlePage.tsx:358",size:13})," Share"]}),a.jsx("button",{"data-loc":"client/src/pages/ArticlePage.tsx:359",onClick:l,"aria-label":"Copy article link",style:{display:"flex",alignItems:"center",justifyContent:"center",width:"30px",height:"30px",borderRadius:"20px",background:"rgba(255,255,255,0.12)",border:"none",color:"rgba(255,255,255,0.7)",cursor:"pointer",transition:"background 0.2s, transform 0.1s",flexShrink:0},onMouseEnter:g=>{g.currentTarget.style.background="rgba(255,255,255,0.22)",g.currentTarget.style.transform="scale(1.08)"},onMouseLeave:g=>{g.currentTarget.style.background="rgba(255,255,255,0.12)",g.currentTarget.style.transform="scale(1)"},children:a.jsx(an,{"data-loc":"client/src/pages/ArticlePage.tsx:374",size:13})})]})}function Tse(){const{slug:e}=Ua(),[t,r]=E.useState(0),[n,s]=E.useState(!1),[i,o]=E.useState("dark"),[l,d]=E.useState("md"),[u,g]=E.useState(!1),f=E.useRef(null),m=E.useRef(null),y={sm:"0.95rem",md:"1.125rem",lg:"1.3rem"};E.useEffect(()=>{const I=()=>{const U=window.scrollY||document.documentElement.scrollTop,q=m.current;if(q){const Z=U+q.getBoundingClientRect().top;r(nse({scrollY:U,articleTop:Z,articleHeight:q.offsetHeight,viewportHe
871ight:window.innerHeight}))}s(U>300)};return window.addEventListener("scroll",I,{passive:!0}),()=>window.removeEventListener("scroll",I)},[]);const{data:S,isLoading:b,error:v}=ee.posts.bySlug.useQuery({slug:e||""},{enabled:!!e}),{data:j=[]}=ee.posts.related.useQuery({postId:S?.id??0,categoryIds:S?.categories?.map(I=>I.id)??[],limit:6},{enabled:!!S}),k=j.filter((I,U,q)=>q.findIndex(Z=>Z.id===I.id)===U),{data:P=[]}=ee.translations.byPostId.useQuery({postId:S?.id??0},{enabled:!!S?.id});if(E.useEffect(()=>{if(!S?.slug)return;document.querySelectorAll("link[hreflang]").forEach(U=>U.remove());const I=(U,q)=>{const Z=document.createElement("link");Z.setAttribute("rel","alternate"),Z.setAttribute("hreflang",U),Z.setAttribute("href",q),document.head.appendChild(Z)};return I("en",`https://xtz.news/${S.slug}`),I("x-default",`https://xtz.news/${S.slug}`),P.forEach(U=>{I(U.locale,`https://xtz.news/${U.locale}/${U.slug}`)}),()=>{document.querySelectorAll("link[hreflang]").forEach(U=>U.remove())}},[S?.slug,P]),Pse(S),b)return a.jsx("div",{"data-loc":"client/src/pages/ArticlePage.tsx:462",className:"container py-16",children:a.jsxs("div",{"data-loc":"client/src/pages/ArticlePage.tsx:463",className:"max-w-3xl mx-auto space-y-4",children:[a.jsx("div",{"data-loc":"client/src/pages/ArticlePage.tsx:464",className:"skeleton h-8 w-3/4"}),a.jsx("div",{"data-loc":"client/src/pages/ArticlePage.tsx:465",className:"skeleton h-4 w-1/3"}),a.jsx("div",{"data-loc":"client/src/pages/ArticlePage.tsx:466",className:"skeleton h-64 w-full"}),a.jsx("div",{"data-loc":"client/src/pages/ArticlePage.tsx:467",className:"skeleton h-4 w-full"}),a.jsx("div",{"data-loc":"client/src/pages/ArticlePage.tsx:468",className:"skeleton h-4 w-5/6"}),a.jsx("div",{"data-loc":"client/src/pages/ArticlePage.tsx:469",className:"skeleton h-4 w-4/5"})]})});if(v||!S)return a.jsxs("div",{"data-loc":"client/src/pages/ArticlePage.tsx:477",className:"container py-16 text-center",children:[a.jsx("h1",{"data-loc":"client/src/pages/ArticlePage.tsx:478",className:"text-2xl font-bold text-white mb-4",children:"Article Not Found"}),a.jsx("p",{"data-loc":"client/src/pages/ArticlePage.tsx:479",className:"text-white/50 mb-6",children:"The article you're looking for doesn't exist or has been removed."}),a.jsxs($,{"data-loc":"client/src/pages/ArticlePage.tsx:480",href:"/",className:"btn-primary",children:[a.jsx(Qt,{"data-loc":"client/src/pages/ArticlePage.tsx:481",size:14})," Back to Home"]})]});const O=typeof window<"u"?window.location.href:`https://xtz.news/${e}`,T=sse(S.slug),C=lse(S.slug),A=fse(S.slug),N=yse(S.slug),M=xA(S.authorSlug),B=typeof window<"u"&&!1,R=T?ise(k):C?cse(k):A?hse(k):N?bse(k):k,_=S.content?S.content.replace(/<[^>]*>/g,"").split(/\s+/).filter(Boolean).length:0,W=Math.max(1,Math.round(_/200)),V=S.updatedAt||S.publishedAt,F=wse(S.slug);return a.jsxs("article",{"data-loc":"client/src/pages/ArticlePage.tsx:509","aria-labelledby":"article-title",children:[a.jsx(Jae,{"data-loc":"client/src/pages/ArticlePage.tsx:511",progress:t}),a.jsx("div",{"data-loc":"client/src/pages/ArticlePage.tsx:514","aria-label":"Article reading tools",style:{position:"fixed",bottom:0,left:0,right:0,zIndex:200,transform:n?"translateY(0)":"translateY(100%)",transition:"transform 0.3s cubic-bezier(0.23,1,0.32,1)",background:"rgba(5,21,46,0.97)",borderTop:"1px solid rgba(44,125,247,0.2)",backdropFilter:"blur(12px)",padding:"0.6rem 1rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/ArticlePage.tsx:515",className:"container",style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"1rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/ArticlePage.tsx:516",style:{fontSize:"0.75rem",fontWeight:700,color:"rgba(255,255,255,0.5)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,minWidth:0},children:S.title}),a.jsxs("div",{"data-loc":"client/src/pages/ArticlePage.tsx:517",style:{display:"flex",alignItems:"center",gap:"0.5rem",flexShrink:0},children:[a.jsxs("span",{"data-loc":"client/src/pages/ArticlePage.tsx:518",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.35)",marginRight:"0.25rem"},children:[t,"% read"]}),a.jsxs("div",{"data-loc":"client/src/pages/ArticlePage.tsx:519",style:{position:"relative"},children:[a.jsxs("button",{"data-loc":"client/src/pages/ArticlePage.tsx:520",onClick:()=>g(I=>!I),"aria-label":u?"Close reading controls":"Open reading controls","aria-expanded":u,"aria-controls":"article-reading-control
871s",style:{display:"flex",alignItems:"center",gap:"0.35rem",padding:"0.35rem 0.6rem",background:u?"rgba(44,125,247,0.2)":"rgba(255,255,255,0.07)",border:"1px solid rgba(255,255,255,0.14)",borderRadius:"20px",color:"rgba(255,255,255,0.72)",fontSize:"0.68rem",fontWeight:700,cursor:"pointer"},children:[a.jsx(ane,{"data-loc":"client/src/pages/ArticlePage.tsx:521",size:13})," Reading"]}),u&&a.jsxs("div",{"data-loc":"client/src/pages/ArticlePage.tsx:524",id:"article-reading-controls",role:"region","aria-labelledby":"reading-controls-title",style:{position:"absolute",bottom:"calc(100% + 0.65rem)",right:0,width:"230px",padding:"0.85rem",background:"#071a35",border:"1px solid rgba(44,125,247,0.35)",boxShadow:"0 12px 32px rgba(0,0,0,0.45)",borderRadius:"8px"},children:[a.jsx("p",{"data-loc":"client/src/pages/ArticlePage.tsx:525",id:"reading-controls-title",style:{margin:"0 0 0.65rem",fontSize:"0.62rem",color:"rgba(255,255,255,0.45)",fontWeight:800,textTransform:"uppercase",letterSpacing:"0.1em"},children:"Reading controls"}),a.jsxs("div",{"data-loc":"client/src/pages/ArticlePage.tsx:526",style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:"0.5rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/ArticlePage.tsx:527",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.65)"},children:"Text size"}),a.jsx("div",{"data-loc":"client/src/pages/ArticlePage.tsx:528",style:{display:"flex",gap:"0.2rem"},children:["sm","md","lg"].map((I,U)=>a.jsx("button",{"data-loc":"client/src/pages/ArticlePage.tsx:529",onClick:()=>{d(I),g(!1)},"aria-label":`Use ${I==="sm"?"small":I==="md"?"medium":"large"} text`,"aria-pressed":l===I,style:{padding:"0.28rem 0.48rem",background:l===I?"#2c7df7":"rgba(255,255,255,0.08)",border:"none",borderRadius:"4px",color:"#fff",fontSize:["0.6rem","0.72rem","0.85rem"][U],fontWeight:800,cursor:"pointer"},children:"A"},I))})]}),a.jsxs("button",{"data-loc":"client/src/pages/ArticlePage.tsx:532",onClick:()=>{o(I=>I==="dark"?"light":"dark"),g(!1)},"aria-label":i==="dark"?"Switch to light reading mode":"Switch to dark reading mode","aria-pressed":i==="light",style:{width:"100%",marginTop:"0.65rem",display:"flex",justifyContent:"space-between",alignItems:"center",padding:"0.55rem 0.6rem",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"5px",background:"rgba(255,255,255,0.06)",color:"rgba(255,255,255,0.75)",fontSize:"0.72rem",fontWeight:700,cursor:"pointer"},children:[a.jsx("span",{"data-loc":"client/src/pages/ArticlePage.tsx:533",children:i==="dark"?"Light reading mode":"Dark reading mode"}),a.jsx("span",{"data-loc":"client/src/pages/ArticlePage.tsx:533",children:i==="dark"?"âï¸":"ð"})]})]})]}),a.jsx(av,{"data-loc":"client/src/pages/ArticlePage.tsx:538",title:S.title,url:O})]})]})}),S.featuredImageUrl&&a.jsxs("figure",{"data-loc":"client/src/pages/ArticlePage.tsx:545",ref:f,"aria-labelledby":"article-title",style:{position:"relative",width:"100%",margin:0,background:`#05152e url("${Je(S.featuredImageUrl)}") center / contain no-repeat`,textAlign:"center"},children:[a.jsx("img",{"data-loc":"client/src/pages/ArticlePage.tsx:546",src:Je(S.featuredImageUrl),alt:S.featuredImageAlt?.trim()||`Featured image for ${S.title}`,fetchPriority:"high",loading:"eager",decoding:"async",style:{width:"100%",maxWidth:"900px",height:"auto",display:"block",margin:"0 auto",opacity:1},onError:I=>{I.currentTarget.parentElement.style.display="none"}}),a.jsx("div",{"data-loc":"client/src/pages/ArticlePage.tsx:556",style:{position:"absolute",inset:0,background:"linear-gradient(90deg, #05152e 25%, #0d2a5e 50%, #05152e 75%)",backgroundSize:"200% 100%",animation:"shimmer 1.5s infinite",zIndex:-1}}),a.jsx(kse,{"data-loc":"client/src/pages/ArticlePage.tsx:557",credit:S.featuredImageCredit,sourceUrl:S.featuredImageSourceUrl})]}),a.jsx("div",{"data-loc":"client/src/pages/ArticlePage.tsx:565",style:{background:"linear-gradient(180deg, #05152e 0%, #030e1f 100%)",borderBottom:"1px solid rgba(255,255,255,0.06)",padding:"2rem 0 1.75rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/ArticlePage.tsx:566",className:"container",children:[a.jsxs("nav",{"data-loc":"client/src/pages/ArticlePage.tsx:568",style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.35rem",marginBottom:"0.75rem",fontSize:"0.75rem",fontWeight:600},children:[a.jsx($,{"data-loc":"client/src/pages/ArticlePage.tsx:569",href:"/",style:{color:"rgba(255,255,255,0.5)",display:"flex",alignItems:"center",textDecoration:"none"},children:a.jsx(Qt,{"data-loc":"client/src/pages/ArticlePage.tsx:569",size:12})}),a.jsx(Le,{"data-loc":"client/src/pages/ArticlePage.tsx:570",size:10,style:{color:"rgba(255,255,255,0.25)"}}),S.categories?.[0]&&a.jsx($,{"data-loc":"client/src/pages/ArticlePage.tsx:572",href:`/category/${S.categories[0].slug}`,style:{color:"#5a9fff",textDecoration:"none",fontWeight:700,textTransform:"capitalize"},children:S.categories[0].name})]}),S.categories&&S.categories.length>0&&a.jsx("div",{"data-loc":"client/src/pages/ArticlePage.tsx:577",style:{display:"flex",flexWrap:"wrap",gap:"0.4rem",marginBottom:"1rem"},children:S.categories.map(I=>a.jsx($,{"data-loc":"client/src/pages/ArticlePage.tsx:579",href:`/category/${I.slug}`,style:{fontSize:"0.6rem",fontWeight:800,textTransform:"uppercase",letterSpacing:"0.1em",padding:"3px 9px",background:"#2c7df7",color:"#fff",borderRadius:"3px",textDecoration:"none"},children:I.name},I.id))}),a.jsx("h1",{"data-loc":"client/src/pages/ArticlePage.tsx:584",id:"article-title",style:{fontSize:"clamp(1.6rem, 4vw, 2.75rem)",fontWeight:900,color:"#fff",lineHeight:1.15,letterSpacing:"-0.02em",margin:"0 0 1.25rem",maxWidth:"820px"},children:S.title}),a.jsxs("div",{"data-loc":"client/src/pages/ArticlePage.tsx:588",style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.75rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ArticlePage.tsx:589",style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[M?.imageUrl?a.jsx("img",{"data-loc":"client/src/pages/ArticlePage.tsx:590",src:Je(M.imageUrl),alt:"",style:{width:"28px",height:"28px",borderRadius:"50%",objectFit:"cover",flexShrink:0}}):a.jsx("div",{"data-loc":"client/src/pages/ArticlePage.tsx:590",style:{width:"28px",height:"28px",borderRadius:"50%",background:"#2c7df7",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"0.7rem",fontWeight:900,color:"#fff",flexShrink:0},children:M?.initials||"X"}),M?a.jsxs($,{"data-loc":"client/src/pages/ArticlePage.tsx:591",href:`/authors/${M.slug}`,style:{fontSize:"0.8rem",fontWeight:700,color:"rgba(255,255,255,0.85)",textDecoration:"none"},children:["By ",M.name]}):a.jsx("span",{"data-loc":"client/src/pages/ArticlePage.tsx:591",style:{fontSize:"0.8rem",fontWeight:700,color:"rgba(255,255,255,0.85)"},children:"XTZ News"})]}),a.jsxs("time",{"data-loc":"client/src/pages/ArticlePage.tsx:593",dateTime:S.publishedAt?new Date(S.publishedAt).toISOString():void 0,style:{color:"rgba(255,255,255,0.4)",fontSize:"0.75rem"},children:["Published ",EE(S.publishedAt)]}),a.jsxs("time",{"data-loc":"client/src/pages/ArticlePage.tsx:594",dateTime:V?new Date(V).toISOString():void 0,style:{color:"rgba(255,255,255,0.52)",fontSize:"0.75rem"},children:["Last updated ",EE(V)]}),a.jsxs("span",{"data-loc":"client/src/pages/ArticlePage.tsx:595",style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",fontSize:"0.68rem",fontWeight:700,padding:"3px 9px",background:"rgba(255,255,255,0.08)",borderRadius:"20px",color:"rgba(255,255,255,0.7)"},children:[a.jsxs("svg",{"data-loc":"client/src/pages/ArticlePage.tsx:596",width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[a.jsx("circle",{"data-loc":"client/src/pages/ArticlePage.tsx:596",cx:"12",cy:"12",r:"10"}),a.jsx("polyline",{"data-loc":"client/src/pages/ArticlePage.tsx:596",points:"12 6 12 12 16 14"})]}),W," min read"]}),t>0&&a.jsxs("span",{"data-loc":"client/src/pages/ArticlePage.tsx:600",style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",fontSize:"0.68rem",fontWeight:700,padding:"3px 9px",background:"rgba(44,125,247,0.2)",borderRadius:"20px",color:"#5a9fff"},children:[t,"% read"]})]}),a.jsx("div",{"data-loc":"client/src/pages/ArticlePage.tsx:605",style:{marginTop:"1rem"},children:a.jsx(mA,{"data-loc":"client/src/pages/ArticlePage.tsx:606",translations:P})})]})}),a.jsxs("div",{"data-loc":"client/src/pages/ArticlePage.tsx:612",className:"container",style:{padding:"2.5rem 1.25rem 4rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ArticlePage.tsx:613",className:"article-layout",children:[a.jsxs("section",{"data-loc":"client/src/pages/ArticlePage.tsx:616","aria-label":"Article body",ref:m,children:[S.audioUrl&&a.jsx(Gae,{"data-loc":"client/src/pages/ArticlePage.tsx:619",src:S.audioUrl,title:S.title,postId:S.id,featuredImageUrl:S.featuredImageUrl,slug:S.slug}),a.jsx(i$,{"data-loc":"client/src/pages/ArticlePage.tsx:623",takeaways:S.keyTakeaways}),T&&a.jsx(Qae,{"data-loc":"client/src/pages/ArticlePage.tsx:625"}),a.jsxs("details",{"data-loc":"client/src/pages/ArticlePage.tsx:627",style:{marginBottom:"1.75rem",padding:"0.8rem 1rem",borderRadius:"6px",background:"rgba(44,125,247,0.045)",border:"1px solid rgba(44,125,247,0.14)",color:"rgba(255,255,255,0.55)"},children:[a.jsx("summary",{"data-loc":"client/src/pages/ArticlePage.tsx:628",style:{cursor:"pointer",color:"rgba(255,255,255,0.72)",fontSize:"0.76rem",fontWeight:700},children:"Reader note & support XTZ.News"}),a.jsxs("div",{"data-loc":"client/src/pages/ArticlePage.tsx:629",style:{display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:"0.75rem",paddingTop:"0.75rem",fontSize:"0.76rem",lineHeight:1.55},children:[a.jsxs("span",{"data-loc":"client/src/pages/ArticlePage.tsx:630",children:["This article is for informational purposes only and does not constitute financial advice. ",a.jsx($,{"data-loc":"client/src/pages/ArticlePage.tsx:630",href:"/disclaimer",style:{color:"#5a9fff",fontWeight:700},children:"Full Disclaimer â"})]}),a.jsx(Zg,{"data-loc":"client/src/pages/ArticlePage.tsx:631",variant:"article"})]})]}),a.jsx(a$,{"data-loc":"client/src/pages/ArticlePage.tsx:636",html:T?rse(S.content||""):S.content||"",className:`post-content${i==="light"?" reading-light":""}`,style:{transition:"background 0.3s, color 0.3s, fontSize 0.2s",fontSize:y[l]},newsletterPreviewSuccess:B}),F&&a.jsx(Sse,{"data-loc":"client/src/pages/ArticlePage.tsx:642",callout:F}),A&&a.jsx(pse,{"data-loc":"client/src/pages/ArticlePage.tsx:643"}),N&&a.jsxs("div",{"data-loc":"client/src/pages/ArticlePage.tsx:644",style:{marginTop:"1.5rem",padding:"1rem 1.1rem",borderRadius:"8px",border:"1px solid rgba(249,168,212,0.22)",background:"rgba(249,168,212,0.05)"},children:[a.jsx("p",{"data-loc":"client/src/pages/ArticlePage.tsx:644",style:{margin:"0 0 0.3rem",color:"#f9a8d4",fontSize:"0.67rem",fontWeight:900,textTransform:"uppercase",letterSpacing:"0.1em"},children:"Discover more"}),a.jsxs($,{"data-loc":"client/src/pages/ArticlePage.tsx:644",href:"/art-on-tezos",style:{color:"#fff",fontWeight:800,textDecoration:"none",fontSize:"0.9rem"},children:["Explore the Art on Tezos collection ",a.jsx(Le,{"data-loc":"client/src/pages/ArticlePage.tsx:644",size:15,style:{display:"inline",verticalAlign:"-2px"}})]})]}),S.tags&&S.tags.length>0&&a.jsxs("div",{"data-loc":"client/src/pages/ArticlePage.tsx:648",style:{display:"flex",flexWrap:"wrap",gap:"0.5rem",marginTop:"2.5rem",paddingTop:"1.5rem",borderTop:"1px solid rgba(255,255,255,0.08)"},children:[a.jsx("span",{"data-loc":"client/src/pages/ArticlePage.tsx:649",style:{fontSize:"0.65rem",fontWeight:800,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.35)",alignSelf:"center",marginRight:"0.25rem"},children:"Tags:"}),S.tags.map(I=>a.jsxs($,{"data-loc":"client/src/pages/ArticlePage.tsx:651",href:`/tag/${I.slug}`,style:{fontSize:"0.72rem",padding:"3px 10px",borderRadius:"20px",border:"1px solid rgba(255,255,255,0.12)",color:"rgba(255,255,255,0.5)",textDecoration:"none",transition:"all 0.15s"},onMouseEnter:U=>{U.currentTarget.style.color="#fff",U.currentTarget.style.borderColor="rgba(255,255,255,0.3)"},onMouseLeave:U=>{U.currentTarget.style.color="rgba(255,255,255,0.5)",U.currentTarget.style.borderColor="rgba(255,255,255,0.12)"},children:["#",I.name]},I.id))]}),T&&a.jsx(Kae,{"data-loc":"client/src/pages/ArticlePage.tsx:661",title:S.title,url:O}),C&&a.jsx(dse,{"data-loc":"client/src/pages/ArticlePage.tsx:662"}),C&&a.jsx(l$,{"data-loc":"client/src/pages/ArticlePage.tsx:663",contentType:"article",title:S.title,url:`https://xtz.news/${S.slug}`}),N&&a.jsx(c$,{"data-loc":"client/src/pages/ArticlePage.tsx:664",contentType:"article",title:S.title,url:`https://xtz.news/${S.slug}`}),a.jsx("div",{"data-loc":"client/src/pages/ArticlePage.tsx:665",style:{marginTop:"2rem"},children:a.jsx(av,{"data-loc":"client/src/pages/ArticlePage.tsx:666",title:S.title,url:O,variant:"full"})}),a.jsxs("div",{"data-loc":"client/src/pages/ArticlePage.tsx:670",style:{marginTop:"2rem",padding:"1.25rem 1.5rem",background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"10px",display:"flex",alignItems:"flex-start",ga
871p:"1rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/ArticlePage.tsx:671",style:{width:"52px",height:"52px",borderRadius:"50%",overflow:"hidden",background:"linear-gradient(135deg, #2c7df7, #1a6ae0)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"1.3rem",fontWeight:900,color:"#fff",flexShrink:0},children:M?.imageUrl?a.jsx("img",{"data-loc":"client/src/pages/ArticlePage.tsx:671",src:Je(M.imageUrl),alt:"",style:{width:"100%",height:"100%",objectFit:"cover"}}):M?.initials||"X"}),a.jsxs("div",{"data-loc":"client/src/pages/ArticlePage.tsx:672",children:[M?a.jsx($,{"data-loc":"client/src/pages/ArticlePage.tsx:673",href:`/authors/${M.slug}`,style:{fontWeight:800,color:"#fff",fontSize:"0.95rem",marginBottom:"0.2rem",textDecoration:"none",display:"inline-block"},children:M.name}):a.jsx("div",{"data-loc":"client/src/pages/ArticlePage.tsx:673",style:{fontWeight:800,color:"#fff",fontSize:"0.95rem",marginBottom:"0.2rem"},children:"XTZ.News Editorial"}),a.jsx("div",{"data-loc":"client/src/pages/ArticlePage.tsx:674",style:{fontSize:"0.72rem",color:"#2c7df7",fontWeight:700,marginBottom:"0.5rem",textTransform:"uppercase",letterSpacing:"0.06em"},children:M?M.jobTitle:"Tezos News Team"}),a.jsx("p",{"data-loc":"client/src/pages/ArticlePage.tsx:675",style:{fontSize:"0.8rem",color:"rgba(255,255,255,0.5)",margin:0,lineHeight:1.6},children:M?M.description:"XTZ.News is an independent news platform covering the Tezos blockchain ecosystem â from protocol upgrades and DeFi to digital art and community projects."}),M&&a.jsxs($,{"data-loc":"client/src/pages/ArticlePage.tsx:676",href:`/authors/${M.slug}`,style:{display:"inline-block",marginTop:"0.65rem",color:"#8cbcff",fontSize:"0.72rem",fontWeight:800,textDecoration:"none"},children:["View ",M.name,"'s profile â"]})]})]}),a.jsx(e$,{"data-loc":"client/src/pages/ArticlePage.tsx:680",placement:"article"}),a.jsx(Cae,{"data-loc":"client/src/pages/ArticlePage.tsx:683"})]}),a.jsxs("aside",{"data-loc":"client/src/pages/ArticlePage.tsx:687",className:"article-sidebar","aria-label":"Article supporting content",children:[T&&a.jsx(Zae,{"data-loc":"client/src/pages/ArticlePage.tsx:688"}),a.jsx(zae,{"data-loc":"client/src/pages/ArticlePage.tsx:690"}),a.jsx(use,{"data-loc":"client/src/pages/ArticlePage.tsx:691"}),R.length>0&&a.jsxs("div",{"data-loc":"client/src/pages/ArticlePage.tsx:695",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"8px",overflow:"hidden"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ArticlePage.tsx:696",style:{padding:"0.875rem 1rem",borderBottom:"1px solid rgba(255,255,255,0.07)",display:"flex",alignItems:"center",gap:"0.5rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/ArticlePage.tsx:697",style:{width:"3px",height:"16px",background:"#2c7df7",borderRadius:"2px"}}),a.jsx("span",{"data-loc":"client/src/pages/ArticlePage.tsx:698",style:{fontSize:"0.7rem",fontWeight:800,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.6)"},children:"Related"})]}),R.slice(0,5).map((I,U)=>a.jsxs($,{"data-loc":"client/src/pages/ArticlePage.tsx:701",href:`/${I.slug}`,style:{display:"flex",gap:"0.75rem",padding:"0.875rem 1rem",borderBottom:U<4?"1px solid rgba(255,255,255,0.05)":"none",textDecoration:"none",transition:"background 0.15s"},onMouseEnter:q=>{q.currentTarget.style.background="rgba(44,125,247,0.05)";const Z=q.currentTarget.querySelector("img");Z&&(Z.style.transform="scale(1.06)",Z.style.borderColor="rgba(44,125,247,0.4)")},onMouseLeave:q=>{q.currentTarget.style.background="transparent";const Z=q.currentTarget.querySelector("img");Z&&(Z.style.transform="scale(1)",Z.style.borderColor="transparent")},children:[I.featuredImageUrl&&a.jsx("div",{"data-loc":"client/src/pages/ArticlePage.tsx:713",style:{width:"52px",height:"52px",borderRadius:"4px",overflow:"hidden",flexShrink:0,border:"2px solid transparent",transition:"border-color 0.2s"},children:a.jsx("img",{"data-loc":"client/src/pages/ArticlePage.tsx:714",src:Je(I.featuredImageUrl),alt:I.title,style:{width:"100%",height:"100%",objectFit:"cover",transition:"transform 0.3s ease"},onError:q=>{q.currentTarget.parentElement.style.display="none"}})}),a.jsxs("div",{"data-loc":"client/src/pages/ArticlePage.tsx:717",style:{minWidth:0},children:[a.jsx("div",{"data-loc":"client/src/pages/ArticlePage.tsx:718",style:{fontSize:"0.78rem",fontWeight:700,color:"#fff",lineHeight:1.4,display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden"},children:I.title}),I.publishedAt&&a.jsx("div",{"data-loc":"client/src/pages/ArticlePage.tsx:719",style:{fontSize:"0.62rem",color:"rgba(255,255,255,0.3)",marginTop:"0.25rem"},children:new Date(I.publishedAt).toLocaleDateString("en-GB",{day:"numeric",month:"short"})})]})]},I.id))]}),a.jsxs("div",{"data-loc":"client/src/pages/ArticlePage.tsx:727",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"8px",padding:"1rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/ArticlePage.tsx:728",style:{fontSize:"0.65rem",fontWeight:800,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.4)",marginBottom:"0.75rem"},children:"Share this article"}),a.jsx(av,{"data-loc":"client/src/pages/ArticlePage.tsx:729",title:S.title,url:O})]})]})]}),R.length>0&&a.jsxs("section",{"data-loc":"client/src/pages/ArticlePage.tsx:736","aria-labelledby":"related-articles-title",style:{marginTop:"4rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ArticlePage.tsx:738",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"1.75rem",paddingBottom:"1rem",borderBottom:"1px solid rgba(255,255,255,0.08)"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ArticlePage.tsx:746",style:{display:"flex",alignItems:"center",gap:"0.75rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/ArticlePage.tsx:747",style:{width:"4px",height:"28px",background:"#2c7df7",borderRadius:"2px",flexShrink:0}}),a.jsxs("div",{"data-loc":"client/src/pages/ArticlePage.tsx:748",children:[a.jsx("p",{"data-loc":"client/src/pages/ArticlePage.tsx:749",style:{margin:0,fontSize:"0.65rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",color:T?"#63f7b1":A?"#c4b5fd":N?"#f9a8d4":"#2c7df7",marginBottom:"2px"},children:T?"Continue exploring Etherlink & Tezos":C?"Continue exploring Tezos infrastru
871cture":A?"Continue exploring Tezos cryptography":N?"Continue exploring Tezos art & collecting":"You might also like"}),a.jsx("h2",{"data-loc":"client/src/pages/ArticlePage.tsx:750",id:"related-articles-title",style:{margin:0,fontSize:"1.1rem",fontWeight:800,color:"#fff",letterSpacing:"-0.01em"},children:T?"More Etherlink and Tezos News":C?"More Tezos Infrastructure and DeFi":A?"Related Post-Quantum & Tezos Reading":N?"More Tezos Art & Collecting":"Related Articles"})]})]}),S.categories?.[0]&&a.jsxs($,{"data-loc":"client/src/pages/ArticlePage.tsx:754",href:`/category/${S.categories[0].slug}`,style:{fontSize:"0.7rem",fontWeight:700,color:"#2c7df7",textDecoration:"none",display:"flex",alignItems:"center",gap:"0.3rem",padding:"0.4rem 0.875rem",border:"1px solid rgba(44,125,247,0.35)",borderRadius:"4px",transition:"background 0.2s, border-color 0.2s",whiteSpace:"nowrap"},onMouseEnter:I=>{I.currentTarget.style.background="rgba(44,125,247,0.1)",I.currentTarget.style.borderColor="#2c7df7"},onMouseLeave:I=>{I.currentTarget.style.background="transparent",I.currentTarget.style.borderColor="rgba(44,125,247,0.35)"},children:["More from ",S.categories[0].name," â"]})]}),a.jsx("div",{"data-loc":"client/src/pages/ArticlePage.tsx:779",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))",gap:"1.25rem"},children:R.map(I=>a.jsx($,{"data-loc":"client/src/pages/ArticlePage.tsx:785",href:`/${I.slug}`,style:{textDecoration:"none",display:"block"},children:a.jsxs("div",{"data-loc":"client/src/pages/ArticlePage.tsx:786",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"8px",overflow:"hidden",transition:"transform 0.2s, border-color 0.2s, box-shadow 0.2s",height:"100%"},onMouseEnter:U=>{const q=U.currentTarget;q.style.transform="translateY(-3px)",q.style.borderColor="rgba(44,125,247,0.4)",q.style.boxShadow="0 8px 24px rgba(0,0,0,0.4)"},onMouseLeave:U=>{const q=U.currentTarget;q.style.transform="translateY(0)",q.style.borderColor="rgba(255,255,255,0.07)",q.style.boxShadow="none"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ArticlePage.tsx:809",style:{position:"relative",paddingTop:"56.25%",background:"#0d2a5e",overflow:"hidden"},children:[I.featuredImageUrl&&a.jsx("img",{"data-loc":"client/src/pages/ArticlePage.tsx:811",src:Je(I.featuredImageUrl),alt:I.title,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"},onError:U=>{U.currentTarget.style.display="none"}}),I.categories?.[0]&&a.jsx("div",{"data-loc":"client/src/pages/ArticlePage.tsx:820",style:{position:"absolute",top:"0.625rem",left:"0.625rem",background:"#2c7df7",color:"#fff",fontSize:"0.55rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",padding:"2px 7px",borderRadius:"3px"},children:I.categories[0].name})]}),a.jsxs("div",{"data-loc":"client/src/pages/ArticlePage.tsx:838",style:{padding:"1rem"},children:[a.jsx("h3",{"data-loc":"client/src/pages/ArticlePage.tsx:839",style:{margin:"0 0 0.5rem",fontSize:"0.9rem",fontWeight:700,color:"#fff",lineHeight:1.4,display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden"},children:I.title}),I.publishedAt&&a.jsx("p",{"data-loc":"client/src/pages/ArticlePage.tsx:853",style:{margin:0,fontSize:"0.65rem",color:"rgba(255,255,255,0.35)",fontWeight:500},children:new Date(I.publishedAt).toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"})})]})]})},I.id))})]})]})]})}function Ase({categoryId:e,categoryName:t,compact:r=!1}){const{isAuthenticated:n,loading:s}=Wr(),i=ee.useUtils(),{data:o=[]}=ee.preferences.followedCategories.useQuery(void 0,{enabled:n}),l=o.some(m=>m.id===e),d=ee.preferences.toggleCategory.useMutation({onSuccess:async()=>{await Promise.all([i.preferences.followedCategories.invalidate(),i.preferences.forYou.invalidate()])}}),u=()=>{if(!n){IP();return}d.mutate({categoryId:e,following:!l})},g=n?l?"Following":"Follow topic":"Sign in to follow",f=n?l?yc:iA:_P;return a.jsxs("button",{"data-loc":"client/src/components/CategoryFollowButton.tsx:40",type:"button",onClick:u,disabled:s||d.isPending,"aria-pressed":n?l:void 0,"aria-label":`${g}: ${t}`,title:n?void 0:`Sign in to follow ${t}`,style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",padding:r?"0.38rem 0.6rem":"0.55rem 0.8rem",border:`1px solid ${l?"rgba(54, 211, 153, 0.7)":"rgba(44,125,247,0.55)"}`,borderRadius:"999px",background:l?"rgba(54,211,153,0.12)":"rgba(44,125,247,0.12)",color:l?"#5fe4b1":"#9cc2ff",fontSize:r?"0.66rem":"0.74rem",fontWeight:800,letterSpacing:"0.04em",cursor:s||d.isPending?"wait":"pointer",opacity:s||d.isPending?.7:1},children:[a.jsx(f,{"data-loc":"client/src/components/CategoryFollowButton.tsx:63",size:r?12:14}),d.isPending?"Savingâ¦":g]}
871)}function zse(e){return e?new Date(e).toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"}):""}function d$({postId:e=0,categoryIds:t=[],categoryName:r,categorySlug:n,limit:s=6,heading:i="Related Articles",subHeading:o="You might also like"}){const{data:l=[]}=ee.posts.related.useQuery({postId:e,categoryIds:t,limit:s},{enabled:t.length>0||e>0,staleTime:3e5}),{data:d}=ee.posts.latest.useQuery({limit:s+2},{enabled:l.length<3,staleTime:5*6e4}),u=l.length>=3?l:(d??[]).filter(g=>g.id!==e).slice(0,s);return u.length?a.jsxs("section",{"data-loc":"client/src/components/RelatedArticles.tsx:56",style:{marginTop:"4rem",marginBottom:"2rem"},children:[a.jsxs("div",{"data-loc":"client/src/components/RelatedArticles.tsx:58",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"1.75rem",paddingBottom:"1rem",borderBottom:"1px solid rgba(255,255,255,0.08)",flexWrap:"wrap",gap:"0.75rem"},children:[a.jsxs("div",{"data-loc":"client/src/components/RelatedArticles.tsx:68",style:{display:"flex",alignItems:"center",gap:"0.75rem"},children:[a.jsx("div",{"data-loc":"client/src/components/RelatedArticles.tsx:69",style:{width:"4px",height:"28px",background:"#2c7df7",borderRadius:"2px",flexShrink:0}}),a.jsxs("div",{"data-loc":"client/src/components/RelatedArticles.tsx:70",children:[a.jsx("p",{"data-loc":"client/src/components/RelatedArticles.tsx:71",style:{margin:0,fontSize:"0.65rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",color:"#2c7df7",marginBottom:"2px"},children:o}),a.jsx("h2",{"data-loc":"client/src/components/RelatedArticles.tsx:74",style:{margin:0,fontSize:"1.1rem",fontWeight:800,color:"#fff",letterSpacing:"-0.01em"},children:i})]})]}),r&&n&&a.jsxs($,{"data-loc":"client/src/components/RelatedArticles.tsx:80",href:`/category/${n}`,style:{fontSize:"0.7rem",fontWeight:700,color:"#2c7df7",textDecoration:"none",display:"flex",alignItems:"center",gap:"0.3rem",padding:"0.4rem 0.875rem",border:"1px solid rgba(44,125,247,0.35)",borderRadius:"4px",transition:"background 0.2s, border-color 0.2s",whiteSpace:"nowrap"},onMouseEnter:g=>{g.currentTarget.style.background="rgba(44,125,247,0.1)",g.currentTarget.style.borderColor="#2c7df7"},onMouseLeave:g=>{g.currentTarget.style.background="transparent",g.currentTarget.style.borderColor="rgba(44,125,247,0.35)"},children:["More from ",r," â"]})]}),a.jsx("div",{"data-loc":"client/src/components/RelatedArticles.tsx:111",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))",gap:"1.25rem"},children:u.map(g=>a.jsx($,{"data-loc":"client/src/components/RelatedArticles.tsx:117",href:`/${g.slug}`,style:{textDecoration:"none",display:"block"},children:a.jsxs("div",{"data-loc":"client/src/components/RelatedArticles.tsx:118",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"8px",overflow:"hidden",transition:"transform 0.2s, border-color 0.2s, box-shadow 0.2s",height:"100%",display:"flex",flexDirection:"column"},onMouseEnter:f=>{const m=f.currentTarget;m.style.transform="translateY(-3px)",m.style.borderColor="rgba(44,125,247,0.4)",m.style.boxShadow="0 8px 24px rgba(0,0,0,0.4)"},onMouseLeave:f=>{const m=f.currentTarget;m.style.transform="translateY(0)",m.style.borderColor="rgba(255,255,255,0.07)",m.style.boxShadow="none"},children:[g.featuredImageUrl?a.jsx("div",{"data-loc":"client/src/components/RelatedArticles.tsx:144",style:{aspectRatio:"16/9",overflow:"hidden",flexShrink:0},children:a.jsx("img",{"data-loc":"client/src/components/RelatedArticles.tsx:145",src:Je(g.featuredImageUrl),alt:g.title,loading:"lazy",style:{width:"100%",height:"100%",objectFit:"cover",transition:"transform 0.3s"},onMouseEnter:f=>{f.currentTarget.style.transform="scale(1.04)"},onMouseLeave:f=>{f.currentTarget.style.transform="scale(1)"},onError:f=>{f.currentTarget.style.display="none"}})}):a.jsx("div",{"data-loc":"client/src/components/RelatedArticles.tsx:156",style:{aspectRatio:"16/9",background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsx("span",{"data-loc":"client/src/components/RelatedArticles.tsx:157",style:{fontSize:"2rem",opacity:.3},children:"ð°"})}),a.jsxs("div",{"data-loc":"client/src/components/RelatedArticles.tsx:162",style:{padding:"1rem",flex:1,display:"flex",flexDirection:"column",gap:"0.5rem"},children:[g.categories?.[0]&&a.jsx("span",{"data-loc":"client/src/components/RelatedArticles.tsx:165",style:{fontSize:"0.6rem",fontWeight:800,textTransform:"uppercase",letterSpacing:"0.1em",color:"#2c7df7",background:"rgba(44,125,247,0.1)",padding:"2px 7px",borderRadius:"2px",display:"inline-block",width:"fit-content"},children:g.categories[0].name}),a.jsx("h3",{"data-loc":"client/src/components/RelatedArticles.tsx:182",style:{margin:0,fontSize:"0.88rem",fontWeight:700,color:"#fff",lineHeight:1.4,display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden",flex:1},children:g.title}),g.publishedAt&&a.jsx("time",{"data-loc":"client/src/components/RelatedArticles.tsx:199",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.3)",fontWeight:600},children:zse(g.publishedAt)})]})]})},g.id))})]}):null}const sv=12;function Cse(){const{slug:e}=Ua(),[t,r]=E.useState(sv),[n,s]=E.useState(!1),[i,o]=E.useState("newest"),[l,d]=E.useState(""),{data:u}=ee.categories.bySlug.useQuery({slug:e||""},{enabled:!!e}),g=u?.name||(e||"").replace(/-/g," ").replace(/\b\w/g,k=>k.toUpperCase());
871Ie({title:`${g} News | XTZ.News â Tezos ${g} Updates`,description:`The latest Tezos ${g.toLowerCase()} news and updates. Stay informed on ${g.toLowerCase()} developments in the Tezos blockchain ecosystem.`,keywords:`Tezos ${g.toLowerCase()}, XTZ ${g.toLowerCase()}, Tezos ${g.toLowerCase()} news, Tezos blockchain ${g.toLowerCase()}`,canonical:`https://xtz.news/category/${e||""}`});const{data:f,isLoading:m}=ee.posts.byCategory.useQuery({slug:e||"",limit:t,offset:0},{enabled:!!e}),y=f?.posts??[],S=f?.total??0,b=y.filter(k=>!l||k.title.toLowerCase().includes(l.toLowerCase())).sort((k,P)=>i==="oldest"?new Date(k.publishedAt||0).getTime()-new Date(P.publishedAt||0).getTime():i==="popular"?(P.viewCount||0)-(k.viewCount||0):new Date(P.publishedAt||0).getTime()-new Date(k.publishedAt||0).getTime()),v=y.length<S;E.useEffect(()=>{m||s(!1)},[m,b.length]);const j=()=>{s(!0),r(k=>k+sv)};return a.jsxs("div",{"data-loc":"client/src/pages/CategoryPage.tsx:62",style:{background:"#000",minHeight:"100vh"},children:[a.jsx("div",{"data-loc":"client/src/pages/CategoryPage.tsx:64",style:{background:"#05152e",borderBottom:"1px solid rgba(255,255,255,0.1)",padding:"3rem 0 2rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/CategoryPage.tsx:65",className:"container",children:[a.jsxs("nav",{"data-loc":"client/src/pages/CategoryPage.tsx:67",style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.35rem",marginBottom:"1rem",fontSize:"0.8rem",fontWeight:600},children:[a.jsx($,{"data-loc":"client/src/pages/CategoryPage.tsx:68",href:"/",style:{color:"rgba(255,255,255,0.5)",display:"flex",alignItems:"center",textDecoration:"none"},children:a.jsx(Qt,{"data-loc":"client/src/pages/CategoryPage.tsx:69",size:13})}),a.jsx(Le,{"data-loc":"client/src/pages/CategoryPage.tsx:71",size:11,style:{color:"rgba(255,255,255,0.3)"}}),a.jsx($,{"data-loc":"client/src/pages/CategoryPage.tsx:72",href:"/categories",style:{color:"#2c7df7",textDecoration:"none",fontWeight:700},children:"Categories"}),a.jsx(Le,{"data-loc":"client/src/pages/CategoryPage.tsx:73",size:11,style:{color:"rgba(255,255,255,0.3)"}}),a.jsx("span",{"data-loc":"client/src/pages/CategoryPage.tsx:74",style:{color:"rgba(255,255,255,0.85)"},children:u?.name||e?.replace(/-/g," ")})]}),a.jsxs("div",{"data-loc":"client/src/pages/CategoryPage.tsx:77",style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"1rem",flexWrap:"wrap"},children:[a.jsx("h1",{"data-loc":"client/src/pages/CategoryPage.tsx:78",style:{fontSize:"clamp(2rem, 5vw, 3.5rem)",fontWeight:900,color:"#fff",textTransform:"uppercase",letterSpacing:"0.02em",margin:0},children:u?.name||e?.replace(/-/g," ")}),u&&a.jsx(Ase,{"data-loc":"client/src/pages/CategoryPage.tsx:81",categoryId:u.id,categoryName:u.name})]}),S>0&&a.jsxs("p",{"data-loc":"client/src/pages/CategoryPage.tsx:84",style:{fontSize:"0.8rem",color:"rgba(255,255,255,0.4)",marginTop:"0.5rem"},children:[S," articles"]})]})}),a.jsx("div",{"data-loc":"client/src/pages/CategoryPage.tsx:92",style:{background:"#05152e",borderBottom:"1px solid rgba(255,255,255,0.08)",padding:"0.75rem 0"},children:a.jsxs("div",{"data-loc":"client/src/pages/CategoryPage.tsx:93",className:"container",style:{display:"flex",flexWrap:"wrap",gap:"0.75rem",alignItems:"center"},children:[a.jsx("input",{"data-loc":"client/src/pages/CategoryPage.tsx:94",type:"text",placeholder:"Search in this category...",value:l,onChange:k=>d(k.target.value),style:{flex:"1 1 200px",minWidth:"160px",background:"rgba(255,255,255,0.07)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"4px",padding:"0.45rem 0.75rem",color:"#fff",fontSize:"0.82rem",outline:"none"}}),a.jsx("div",{"data-loc":"client/src/pages/CategoryPage.tsx:101",style:{display:"flex",gap:"0.4rem"},children:["newest","oldest","popular"].map(k=>a.jsx("button",{"data-loc":"client/src/pages/CategoryPage.tsx:103",onClick:()=>o(k),style:{padding:"0.4rem 0.8rem",borderRadius:"4px",fontSize:"0.75rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.04em",cursor:"pointer",border:i===k?"1px solid #2c7df7":"1px solid rgba(255,255,255,0.15)",background:i===k?"#2c7df7":"transparent",color:i===k?"#fff":"rgba(255,255,255,0.5)",transition:"all 0.15s"},children:k},k))}),l&&a.jsxs("span",{"data-loc":"client/src/pages/CategoryPage.tsx:111",style:{fontSize:"0.75rem",color:"rgba(255,255,255,0.4)"},children:[b.length," results"]})]})}),a.jsx("div",{"data-loc":"client/src/pages/CategoryPage.tsx:117",className:"container",style:{padding:"2.5rem 1.25rem"},children:m&&b.length===0?a.jsx("div",{"data-loc":"client/src/pages/CategoryPage.tsx:119",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))",gap:"1rem"},children:Array.from({length:8}).map((k,P)=>a.jsx("div",{"data-loc":"client/src/pages/CategoryPage.tsx:121",className:"skeleton",style:{height:"260px",borderRadius:"4px"}},P))}):b.length>0?a.jsxs(a.Fragment,{children:[a.jsx("div",{"data-loc":"client/src/pages/CategoryPage.tsx:126",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))",gap:"1rem"},children:b.map(k=>a.jsx(ms,{"data-loc":"client/src/pages/CategoryPage.tsx:128",post:k,variant:"default"},k.id))}),v&&a.jsxs("div",{"data-loc":"client/src/pages/CategoryPage.tsx:134",style:{display:"flex",flexDirection:"column",alignItems:"center",marginTop:"3rem",gap:"0.75rem"},children:[a.jsxs("p",{"data-loc":"client/src/pages/CategoryPage.tsx:135",style:{fontSize:"0.75rem",color:"rgba(255,255,255,0.35)",margin:0},children:["Showing ",b.length," of ",S," articles"]}),a.jsx("button",{"data-loc":"client/src/pages/CategoryPage.tsx:138",onClick:j,disabled:n||m,style:{display:"inline-flex",alignItems:"center",gap:"0.5rem",padding:"0.875rem 2.5rem",background:"transparent",border:"2px s
871olid #2c7df7",borderRadius:"3px",color:"#2c7df7",fontSize:"0.8rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",cursor:n?"not-allowed":"pointer",transition:"all 0.2s",opacity:n?.7:1},onMouseEnter:k=>{n||(k.currentTarget.style.background="#2c7df7",k.currentTarget.style.color="#fff")},onMouseLeave:k=>{k.currentTarget.style.background="transparent",k.currentTarget.style.color="#2c7df7"},children:n?a.jsxs(a.Fragment,{children:[a.jsx(Va,{"data-loc":"client/src/pages/CategoryPage.tsx:170",size:15,style:{animation:"spin 0.8s linear infinite"}})," Loading..."]}):a.jsxs(a.Fragment,{children:[a.jsx(yi,{"data-loc":"client/src/pages/CategoryPage.tsx:172",size:15})," Load More Articles"]})}),a.jsx("style",{"data-loc":"client/src/pages/CategoryPage.tsx:175",children:"@keyframes spin { to { transform: rotate(360deg); } }"})]}),!v&&S>sv&&a.jsx("div",{"data-loc":"client/src/pages/CategoryPage.tsx:181",style:{textAlign:"center",marginTop:"3rem"},children:a.jsxs("p",{"data-loc":"client/src/pages/CategoryPage.tsx:182",style:{fontSize:"0.75rem",color:"rgba(255,255,255,0.25)"},children:["All ",S," articles loaded"]})})]}):a.jsx("div",{"data-loc":"client/src/pages/CategoryPage.tsx:189",style:{textAlign:"center",padding:"4rem 0"},children:a.jsx("p",{"data-loc":"client/src/pages/CategoryPage.tsx:190",style:{color:"rgba(255,255,255,0.4)"},children:"No articles found in this category."})})}),u&&a.jsx("div",{"data-loc":"client/src/pages/CategoryPage.tsx:197",className:"container",style:{padding:"0 1.25rem 4rem"},children:a.jsx(d$,{"data-loc":"client/src/pages/CategoryPage.tsx:198",postId:0,categoryIds:u.id?[u.id]:[],categoryName:u.name,categorySlug:e||"",limit:6,heading:`More ${u.name} News`,subHeading:"Keep reading"})})]})}const iv=12;function Ese(){const{slug:e}=Ua(),[t,r]=E.useState(1),{data:n}=ee.tags.bySlug.useQuery({slug:e||""},{enabled:!!e}),s=n?.name||e?.replace(/-/g," ")||"";Ie({title:`${s?`#${s} â `:""}Tezos News | XTZ.News`,description:`Latest Tezos news tagged with ${s||e||""}. Stay up to date with XTZ blockchain developments, DeFi, NFTs, and ecosystem updates.`,keywords:`${s}, Tezos news, XTZ news, Tezos blockchain`,canonical:`https://xtz.news/tag/${e||""}`});const{data:i,isLoading:o}=ee.posts.byTag.useQuery({slug:e||"",limit:iv,offset:(t-1)*iv},{enabled:!!e}),l=i?.posts??[],d=i?.total??0,u=Math.ceil(d/iv);return a.jsxs("div",{"data-loc":"client/src/pages/TagPage.tsx:32",children:[a.jsx("div",{"data-loc":"client/src/pages/TagPage.tsx:33",className:"py-12 border-b border-white/10",style:{background:"var(--xtz-navy)"},children:a.jsxs("div",{"data-loc":"client/src/pages/TagPage.tsx:34",className:"container",children:[a.jsxs("nav",{"data-loc":"client/src/pages/TagPage.tsx:35",className:"breadcrumb mb-3",children:[a.jsx($,{"data-loc":"client/src/pages/TagPage.tsx:36",href:"/",children:a.jsx(Qt,{"data-loc":"client/src/pages/TagPage.tsx:36",size:12})}),a.jsx(Le,{"data-loc":"client/src/pages/TagPage.tsx:37",size:10,className:"breadcrumb-sep"}),a.jsx("span",{"data-loc":"client/src/pages/TagPage.tsx:38",className:"text-white/60",children:"Tag"}),a.jsx(Le,{"data-loc":"client/src/pages/TagPage.tsx:39",size:10,className:"breadcrumb-sep"}),a.jsxs("span",{"data-loc":"client/src/pages/TagPage.tsx:40",className:"text-white/80",children:["#",n?.name||e]})]}),a.jsxs("h1",{"data-loc":"client/src/pages/TagPage.tsx:42",className:"text-3xl font-black text-white",children:["#",n?.name||e?.replace(/-/g," ")]}),d>0&&a.jsxs("p",{"data-loc":"client/src/pages/TagPage.tsx:43",className:"text-sm text-white/40 mt-2",children:[d," articles"]})]})}),a.jsx("div",{"data-loc":"client/src/pages/TagPage.tsx:47",className:"container py-10",children:o?a.jsx("div",{"data-loc":"client/src/pages/TagPage.tsx:49",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:Array.from({length:8}).map((g,f)=>a.jsx("div",{"data-loc":"client/src/pages/TagPage.tsx:50",className:"skeleton h-64 rounded"},f))}):l.length>0?a.jsxs(a.Fragment,{children:[a.jsx("div",{"data-loc":"client/src/pages/TagPage.tsx:54",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:l.map(g=>a.jsx(ms,{"data-loc":"client/src/pages/TagPage.tsx:55",post:g},g.id))}),u>1&&a.jsxs("div",{"data-loc":"client/src/pages/TagPage.tsx:58",className:"pagination mt-10",children:[a.jsx("button",{"data-loc":"client/src/pages/TagPage.tsx:59",onClick:()=>r(Math.max(1,t-1)),disabled:t===1,className:"page-btn disabled:opacity-30",children:"â¹"}),Array.from({length:Math.min(u,7)},(g,f)=>a.jsx("button",{"data-loc":"client/src/pages/TagPage.tsx:61",onClick:()=>r(f+1),className:`page-btn ${t===f+1?"active":""}`,children:f+1},f+1)),a.jsx("button",{"data-loc":"client/src/pages/TagPage.tsx:63",onClick:()=>r(Math.min(u,t+1)),disabled:t===u,className:"page-btn disabled:opacity-30",children:"âº"})]})]}):a.jsx("div",{"data-loc":"client/src/pages/TagPage.tsx:68",className:"text-center py-16",children:a.jsx("p",{"data-loc":"client/src/pages/TagPage.tsx:68",className:"text-white/40",children:"No articles found for this tag."})})}),a.jsx("div",{"data-loc":"client/src/pages/TagPage.tsx:73",className:"container pb-16",children:a.jsx(d$,{"data-loc":"client/src/pages/TagPage.tsx:74",postId:0,categoryIds:[],limit:6,heading:"More Tezos News",subHeading:s?`More tagged #${s}`:"Keep reading"})})]})}function Ose(){Ie({title:"Tezos News Categories | XTZ.News â Browse by Topic",description:"Browse all Tezos news categories on XTZ.News. Find articles on Tezos DeFi, NFTs, gaming, stablecoins, wallets, adoption, protocol upgrades, and more.",keywords:"Tezos news categories, Tezos DeFi news, Tezos NFT news, Tezos gaming, Tezos stablecoins, Tezos adoption",canonical:"https://xtz.news/categories"});const{data:e=[],isLoading:t}=ee.categories.withImages.useQuery(),[r,n]=E.useState(""),[s,i]=E.useState("popular"),o=e.filter(u=>(u.postCount??0)>0),l=E.useMemo(()=>{let u=[...o];if(r.trim()){const g=r.toLowerCase();u=u.filter(f=>f.name.toLowerCase().includes(g))}return s==="popular"?u.sort((g,f)=>(f.postCount??0)-(g.postCount??0)):s==="alphabetical"&&u.sort((g,f)=>g.name.localeCompare(f.name)),u},[o,r,s]),d=[{value:"popular",label:"Most Popular",icon:a.jsx(cr,{"data-loc":"client/src/pages/CategoriesPage.tsx:34",size:13})},{value:"alphabetical",label:"AâZ",icon:a.jsx(fre,{"data-loc":"client/src/pages/CategoriesPage.tsx:35",size:13})},{value:"recent",label:"Recently Added",icon:a.jsx(fy,{"data-loc":"client/src/pages/CategoriesPage.tsx:36",size:13})}];return a.jsxs("div",{"data-loc":"client/src/pages/CategoriesPage.tsx:40",style:{background:"#000",minHeight:"100vh"},children:[a.jsx("div",{"data-loc":"client/src/pages/CategoriesPage.tsx:42",style:{background:"#05152e",borderBottom:"1px solid rgba(255,255,255,0.1)",padding:"3rem 0 1.5rem"},children:a.jsx("div",{"data-loc":"client/src/pages/CategoriesPage.tsx:43",className:"container",children:a.jsx("h1",{"data-loc":"client/src/pages/CategoriesPage.tsx:44",style:{fontSize:"clamp(2rem, 5vw, 3.5rem)",fontWeight:900,color:"#fff",textTransform:"uppercase",letterSpacing:"0.02em",margin:0},children:"ALL CATEGORIES"})})}),a.jsx("div",{"data-loc":"client/src/pages/CategoriesPage.tsx:51",style:{position:"sticky",top:"140px",zIndex:40,background:"#05152e",borderBottom:"1px solid rgba(255,255,255,0.1)",padding:"0.875rem 0",boxShadow:"0 4px 20px rgba(0,0,0,0.4)"},children:a.jsxs("div",{"data-loc":"client/src/pages/CategoriesPage.tsx:62",className:"container",style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.75rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/CategoriesPage.tsx:64",style:{position:"relative",flex:"0 0 260px"},children:[a.jsx(ft,{"data-loc":"client/src/pages/CategoriesPage.tsx:65",size:13,style:{position:"absolute",left:"0.75rem",top:"50%",transform:"translateY(-50%)",color:"rgba(255,255,255,0.4)",pointerEvents:"none"}}),a.jsx("input",{"data-loc":"client/src/pages/CategoriesPage.tsx:66",type:"text",value:r,onChange:u=>n(u.target.value),placeholder:"Search categories...",style:{width:"100%",padding:"0.55rem 1rem 0.55rem 2.2rem",background:"rgba(255,255,255,0.07)",border:"1px solid rgba(255,255,255,0.15)",borderRadius:"3px",color:"#fff",fontSize:"0.82rem",outline:"none",fontFamily:"inherit",transition:"border-color 0.2s"},onFocus:u=>u.currentTarget.style.borderColor="#2c7df7",onBlur:u=>u.currentTarget.style.borderColor="rgba(255,255,255,0.15)"})]}),a.jsxs("div",{"data-loc":"client/src/pages/CategoriesPage.tsx:89",style:{display:"flex",alignItems:"center",gap:"0.35rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/CategoriesPage.tsx:90",style:{fontSize:"0.65rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"rgba(255,255,255,0.35)",marginRight:"0.2rem"},children:"Sort:"}),d.map(u=>a.jsxs("button",{"data-loc":"client/src/pages/CategoriesPage.tsx:92",onClick:()=>i(u.value),style:{display:"flex",alignItems:"center",gap:"0.3rem",padding:"0.45rem 0.8rem",fontSize:"0.7rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.06em",background:s===u.value?"#2c7df7":"rgba(255,255,255,0.06)",color:s===u.value?"#fff":"rgba(255,255,255,0.6)",border:s===u.value?"1px solid #2c7df7":"1px solid rgba(255,255,255,0.12)",borderRadius:"3px",cursor:"pointer",transition:"all 0.2s",whiteSpace:"nowrap"},onMouseEnter:g=>{s!==u.value&&(g.currentTarget.style.background="rgba(255,255,255,0.1)",g.currentTarget.style.color="#fff")},onMouseLeave:g=>{s!==u.value&&(g.currentTarget.style.background="rgba(255,255,255,0.06)",g.currentTarget.style.color="rgba(255,255,255,0.6)")},children:[u.icon,u.label]},u.value))]}),!t&&a.jsxs("span",{"data-loc":"client/src/pages/CategoriesPage.tsx:114",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.3)",marginLeft:"auto"},children:[l.length," ",l.length===1?"category":"categories",r?` for "${r}"`:""]})]})}),a.jsx("div",{"data-loc":"client/src/pages/CategoriesPage.tsx:123",className:"container",style:{padding:"2rem 1.25rem"},children:t?a.jsx("div",{"data-loc":"client/src/pages/CategoriesPage.tsx:125",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(220px, 1fr))",gap:"1rem"},children:Array.from({length:12}).map((u,g)=>a.jsx("div",{"data-loc":"client/src/pages/CategoriesPage.tsx:126",className:"skeleton",style:{height:"180px",borderRadius:"4px"}},g))}):l.length===0?a.jsxs("div",{"data-loc":"client/src/pages/CategoriesPage.tsx:129",style:{textAlign:"center",padding:"5rem 0"},children:[a.jsx("div",{"data-loc":"client/src/pages/CategoriesPage.tsx:130",style:{fontSize:"3rem",marginBottom:"1rem"},children:"ð"}),a.jsx("h2",{"data-loc":"client/src/pages/CategoriesPage.tsx:131",style:{fontSize:"1.25rem",fontWeight:700,color:"#fff",marginBottom:"0.5rem"},children:"No categories found"}),a.jsxs("p",{"data-loc":"client/src/pages/CategoriesPage.tsx:132",style:{color:"rgba(255,255,255,0.4)",marginBottom:"1.5rem"},children:["No categories match â",r,"â. Try a different search term."]}),a.jsx("button",{"data-loc":"client/src/pages/CategoriesPage.tsx:135",onClick:()=>n(""),style:{padding:"0.6rem 1.5rem",background:"#2c7df7",border:"none",borderRadius:"3px",color:"#fff",fontSize:"0.8rem",fontWeight:700,cursor:"pointer",textTransform:"uppercase",letterSpacing:"0.08em"},children:"Clear Search"})]}):a.jsx("div",{"data-loc":"client/src/pages/CategoriesPage.tsx:143",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(220px, 1fr))",gap:"1rem"},children:l.map(u=>a.jsx($,{"data-loc":"client/src/pages/CategoriesPage.tsx:145",href:`/category/${u.slug}`,style:{textDecoration:"none",display:"block"},children:a.jsxs("article",{"data-loc":"client/src/pages/CategoriesPage.tsx:146",style:{position:"relative",height:"180px",borderRadius:"4px",overflow:"hidden",cursor:"pointer",transition:"transform 0.25s ease, box-shadow 0.25s ease"},onMouseEnter:g=>{g.currentTarget.style.transform="translateY(-4px)",g.currentTarget.style.boxShadow="0 12px 40px rgba(0,0,0,0.6)"},onMouseLeave:g=>{g.currentTarget.style.transform="translateY(0)",g.currentTarget.style.boxShadow="none"},children:[u.coverImage?a.jsx("img",{"data-loc":"client/src/pages/CategoriesPage.tsx:152",src:u.coverImage,alt:u.name,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"}}):a.jsx("div",{"data-loc":"client/src/pages/CategoriesPage.tsx:154",style:{position:"absolute",inset:0,background:"linear-gradient(135deg, #05152e 0%, #123262 100%)"}}),a.jsx("div",{"data-loc":"client/src/pages/CategoriesPage.tsx:156",style:{position:"absolute",inset:0,background:"linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.1) 100%)"}}),a.jsxs("div",{"data-loc":"client/src/pages/CategoriesPage.tsx:157",style:{position:"absolute",bottom:0,left:0,right:0,padding:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/CategoriesPage.tsx:158",style:{display:"flex",alignItems:"center",gap:"0.4rem",marginBottom:"0.3rem"},children:[a.jsx(tc,{"data-loc":"client/src/pages/CategoriesPage.tsx:159",size:10,style:{color:"#2c7df7",flexShrink:0}}),a.jsxs("span",{"data-loc":"client/src/pages/CategoriesPage.tsx:160",style:{fontSize:"0.6rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"#2c7df7"},children:[u.postCount," articles"]})]}),a.jsx("h3",{"data-loc":"client/src/pages/CategoriesPage.tsx:162",style:{fontSize:"1rem",fontWeight:900,color:"#fff",margin:0,lineHeight:1.2,textTransform:"uppercase",letterSpacing:"0.03em"},children:u.name})]})]})},u.id))})})]})}function OE(){Ie({title:"Tezos Projects Directory | XTZ.News â Tezos DeFi, NFTs & dApps",description:"Explore the Tezos ecosystem. Discover the best Tezos projects including DeFi protocols, NFT platforms, wallets, developer tools, and dApps built on Tezos.",keywords:"Tezos projects, Tezos DeFi, Tezos NFT, Tezos dApps, Tezos ecosystem, Tezos wallets, Tezos developer tools, XTZ projects",canonical:"https://xtz.news/projects"});const[e,t]=E.useState("All"),[r,n]=E.useState(""),[s,i]=E.useState("featured"),{data:o=[],isLoading:l}=ee.projects.all.useQuery({category:"all"}),d=E.useMemo(()=>{const g=new Set(o.map(m=>
871m.category).filter(Boolean)),f=["DeFi","NFTs","Gaming","Dev Tools","Wallets","Stablecoins","Layer 2","Block Explorer","DAOs","Governance","Digital Identity","Baking Tools","Core Development","Foundation","Community","Community Services","Privacy","Payments","Security Tokens","RWA","Web3 Infrastructure"];return["All",...f.filter(m=>g.has(m)),...Array.from(g).filter(m=>!f.includes(m))]},[o]),u=E.useMemo(()=>{let g=[...o];if(e!=="All"&&(g=g.filter(f=>f.category===e)),r.trim()){const f=r.toLowerCase();g=g.filter(m=>m.title?.toLowerCase().includes(f)||m.category?.toLowerCase().includes(f)||m.excerpt?.toLowerCase().includes(f))}return g.sort((f,m)=>s==="az"?(f.title||"").localeCompare(m.title||""):s==="za"?(m.title||"").localeCompare(f.title||""):s==="newest"?new Date(m.createdAt||0).getTime()-new Date(f.createdAt||0).getTime():m.featured&&!f.featured?1:f.featured&&!m.featured?-1:(f.title||"").localeCompare(m.title||"")),g},[o,e,r,s]);return a.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:54",style:{background:"#000",minHeight:"100vh"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:56",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",borderBottom:"1px solid rgba(44,125,247,0.2)",padding:"3.5rem 0 2.5rem",position:"relative",overflow:"hidden"},children:[a.jsx("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:57",style:{position:"absolute",inset:0,opacity:.04,backgroundImage:"repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(44,125,247,0.8) 40px, rgba(44,125,247,0.8) 41px)",pointerEvents:"none"}}),a.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:58",className:"container",style:{position:"relative"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:59",style:{display:"flex",alignItems:"center",gap:"1rem",marginBottom:"1rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:60",style:{width:"4px",height:"52px",background:"#2c7df7",borderRadius:"2px",flexShrink:0}}),a.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:61",children:[a.jsx("h1",{"data-loc":"client/src/pages/ProjectsPage.tsx:62",style:{fontSize:"clamp(2.5rem, 6vw, 4rem)",fontWeight:900,color:"#fff",textTransform:"uppercase",letterSpacing:"0.04em",margin:0,lineHeight:1},children:"Tezos Projects"}),a.jsxs("p",{"data-loc":"client/src/pages/ProjectsPage.tsx:63",style:{fontSize:"0.9rem",color:"rgba(255,255,255,0.45)",margin:"0.4rem 0 0"},children:[o.length," source-linked Tezos projects and works in progress"]})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:68",style:{position:"relative",maxWidth:"400px",marginTop:"1.5rem"},children:[a.jsx(ft,{"data-loc":"client/src/pages/ProjectsPage.tsx:69",size:14,style:{position:"absolute",left:"0.875rem",top:"50%",transform:"translateY(-50%)",color:"rgba(255,255,255,0.4)",pointerEvents:"none"}}),a.jsx("input",{"data-loc":"client/src/pages/ProjectsPage.tsx:70",type:"text",value:r,onChange:g=>n(g.target.value),placeholder:"Search projects...",style:{width:"100%",padding:"0.6rem 1rem 0.6rem 2.5rem",background:"rgba(255,255,255,0.08)",border:"1px solid rgba(255,255,255,0.15)",borderRadius:"4px",color:"#fff",fontSize:"0.85rem",outline:"none",fontFamily:"inherit",boxSizing:"border-box"},onFocus:g=>g.currentTarget.style.borderColor="#2c7df7",onBlur:g=>g.currentTarget.style.borderColor="rgba(255,255,255,0.15)"})]})]})]}),a.jsx("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:80",style:{background:"#05152e",borderBottom:"1px solid rgba(255,255,255,0.08)",overflowX:"auto",scrollbarWidth:"none"},children:a.jsx("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:81",className:"container",style:{display:"flex",gap:"0.35rem",padding:"0.875rem 1.25rem",width:"max-content",minWidth:"100%"},children:d.map(g=>a.jsx("button",{"data-loc":"client/src/pages/ProjectsPage.tsx:83",onClick:()=>t(g),style:{padding:"0.4rem 0.875rem",borderRadius:"100px",border:e===g?"1px solid #2c7df7":"1px solid rgba(255,255,255,0.12)",background:e===g?"#2c7df7":"rgba(255,255,255,0.04)",color:e===g?"#fff":"rgba(255,255,255,0.6)",fontSize:"0.72rem",fontWeight:600,textTransform:"uppercase",letterSpacing:"0.06em",curs
871or:"pointer",whiteSpace:"nowrap",transition:"all 0.2s"},children:g},g))})}),a.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:92",className:"container",style:{padding:"2.5rem 1.25rem 4rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:93",style:{display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:"0.75rem",marginBottom:"1.5rem"},children:[a.jsxs("p",{"data-loc":"client/src/pages/ProjectsPage.tsx:94",style:{fontSize:"0.75rem",color:"rgba(255,255,255,0.3)",margin:0,fontWeight:600},children:[u.length," project",u.length!==1?"s":"",e!=="All"?` in ${e}`:""]}),a.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:97",style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/ProjectsPage.tsx:98",style:{fontSize:"0.7rem",color:"rgba(255,255,255,0.35)",fontWeight:600,textTransform:"uppercase",letterSpacing:"0.08em"},children:"Sort:"}),a.jsxs("select",{"data-loc":"client/src/pages/ProjectsPage.tsx:99",value:s,onChange:g=>i(g.target.value),style:{padding:"0.4rem 0.75rem",background:"rgba(255,255,255,0.07)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"3px",color:"#fff",fontSize:"0.75rem",fontWeight:600,cursor:"pointer",outline:"none"},children:[a.jsx("option",{"data-loc":"client/src/pages/ProjectsPage.tsx:101",value:"featured",children:"Featured First"}),a.jsx("option",{"data-loc":"client/src/pages/ProjectsPage.tsx:102",value:"az",children:"A â Z"}),a.jsx("option",{"data-loc":"client/src/pages/ProjectsPage.tsx:103",value:"za",children:"Z â A"}),a.jsx("option",{"data-loc":"client/src/pages/ProjectsPage.tsx:104",value:"newest",children:"Newest"})]})]})]}),l?a.jsx("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:110",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(280px, 1fr))",gap:"1rem"},children:Array.from({length:12}).map((g,f)=>a.jsx("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:111",className:"skeleton",style:{height:"200px",borderRadius:"8px"}},f))}):u.length===0?a.jsx("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:114",style:{textAlign:"center",padding:"4rem 0"},children:a.jsx("p",{"data-loc":"client/src/pages/ProjectsPage.tsx:115",style:{color:"rgba(255,255,255,0.4)"},children:"No projects found."})}):a.jsx("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:118",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(280px, 1fr))",gap:"1.25rem"},children:u.map(g=>a.jsx(Mse,{"data-loc":"client/src/pages/ProjectsPage.tsx:119",project:g},g.id))}),a.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:124",style:{marginTop:"4rem",background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",border:"1px solid rgba(44,125,247,0.25)",borderRadius:"12px",overflow:"hidden",position:"relative"},children:[a.jsx("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:126",style:{position:"absolute",inset:0,opacity:.04,backgroundImage:"repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(44,125,247,0.8) 30px, rgba(44,125,247,0.8) 31px)",pointerEvents:"none"}}),a.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:127",style:{position:"relative",padding:"3rem 2.5rem",display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between",gap:"2rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:128",style:{flex:1,minWidth:"280px"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:129",style:{display:"inline-flex",alignItems:"center",gap:"0.5rem",background:"rgba(44,125,247,0.12)",border:"1px solid rgba(44,125,247,0.25)",borderRadius:"100px",padding:"0.35rem 0.875rem",marginBottom:"1rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:130",style:{width:"6px",height:"6px",borderRadius:"50%",background:"#2c7df7"}}),a.jsx("span",{"data-loc":"client/src/pages/ProjectsPage.tsx:131",style:{fontSize:"0.65rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",color:"#2c7df7"},children:"Building on Tezos?"})]}),a.jsx("h3",{"data-loc":"client/src/pages/ProjectsPage.tsx:133",style:{fontSize:"clamp(1.5rem, 3vw, 2.25rem)",fontWeight:900,color:"#fff",margin:"0 0 0.75rem",lineHeight:1.2,textTransform:"uppercase",letterSpacing:"0.02em"},children:"Submit Your Project"}),a.jsx("p",{"data-loc":"client/src/pages/ProjectsPage.tsx:134",style:{fontSize:"0.9rem",color:"rgba(255,255,255,0.55)",margin:0,lineHeight:1.7,maxWidth:"480px"},children:"Get your Tezos project featured on XTZ.News and reach thousands of Tezos enthusiasts, investors, and developers. We only list projects actively building in the Tezos ecosystem."})]}),a.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:138",style:{display:"flex",flexDirection:"column",gap:"0.75rem",flexShrink:0},children:[a.jsx($,{"data-loc":"client/src/pages/ProjectsPage.tsx:139",href:"/submit-project",style:{display:"inline-flex",alignItems:"center",gap:"0.5rem",padding:"0.875rem 2rem",background:"#2c7df7",borderRadius:"4px",color:"#fff",textDecoration:"none",fontSize:"0.85rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",whiteSpace:"nowrap",transition:"background 0.2s"},onMouseEnter:g=>g.currentTarget.style.background="#1a6ae0",onMouseLeave:g=>g.currentTarget.style.background="#2c7df7",children:"Submit a Project â"}),a.jsx("p",{"data-loc":"client/src/pages/ProjectsPage.tsx:145",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.3)",margin:0,textAlign:"center"},children:"Free · No sign-up required"})]})]})]})]})]})}function Mse({project:e}){const t=(()=>{try{return JSON.parse(e.tags||"[]")}catch{return[]}})();return a.jsx($,{"data-loc":"client/src/pages/ProjectsPage.tsx:158",href:`/projects/${e.slug}`,style:{textDecoration:"none"},children:a.jsxs("article",{"data-loc":"client/src/pages/ProjectsPage.tsx:159",style:{background:e.featured?"linear-gradient(135deg, #0a1f3d 0%, #0d2a5e 100%)":"#05152e",border:e.featured?"1px solid rgba(245,158,11,0.5)":"1px solid rgba(255,255,255,0.07)",borderRadius:"8px",overflow:"hidden",transition:"transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease",cursor:"pointer",height:"100%",display:"flex",flexDirection:"column",boxShadow:e.featured?"0 0 20px rgba(245,158,11,0.1)":"none"},onMouseEnter:r=>{const n=r.currentTarget;n.style.transform="translateY(-4px)",n.style.borderColor=e.featured?"rgba(245,158,11,0.8)":"rgba(44,125,247,0.4)",n.style.boxShadow=e.featured?"0 12px 40px rgba(245,158,11,0.2)":"0 12px 40px rgba(0,0,0,0.5)"},onMouseLeave:r=>{const n=r.currentTarget;n.style.transform="translateY(0)",n.style.borderColor=e.featured?"rgba(245,158,11,0.5)":"rgba(255,255,255,0.07)",n.style.boxShadow=e.featured?"0 0 20px rgba(245,158,11,0.1)":"none"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:164",style:{height:"140px",position:"relative",overflow:"hidden",flexShrink:0},children:[e.featuredImageUrl?a.jsx("img",{"data-loc":"client/src/pages/ProjectsPage.tsx:166",src:Je(e.featuredImageUrl),alt:e.title,style:{width:"100%",height:"100%",objectFit:"cover"}}):a.jsx("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:168",style:{width:"100%",height:"100%",background:"linear-gradient(135deg, #05152e 0%, #123262 100%)",display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsx(ba,{"data-loc":"client/src/pages/ProjectsPage.tsx:169",size:32,style:{color:"rgba(44,125,247,0.4)"}})}),a.jsx("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:172",style:{position:"absolute",top:"0.625rem",left:"0.625rem"},children:a.jsx("span",{"data-loc":"client/src/pages/ProjectsPage.tsx:173",style:{fontSize:"0.6rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"#fff",background:"rgba(44,125,247,0.85)",padding:"3px 8px",borderRadius:"2px"},children:e.category})}),e.featured&&a.jsx("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:176",style:{position:"absolute",top:"0.625rem",right:"0.625rem"},children:a.jsx("span",{"data-loc":"client/src/pages/ProjectsPage.tsx:177",style:{fontSize:"0.55rem",fontWeight:700,color:"#fff",background:"rgba(250,204,21,0.9)",padding:"3px 7px",borderRadius:"2px"},children:"â Featured"})})]}),a.jsxs("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:181",style:{padding:"1rem",flex:1,display:"flex",flexDirection:"column"},children:[a.jsx("h3",{"data-loc":"client/src/pages/ProjectsPage.tsx:182",style:{fontSize:"1rem",fontWeight:700,color:"#fff",margin:"0 0 0.5rem",lineHeight:1.3},children:e.title}),a.jsx("p",{"data-loc":"client/src/pages/ProjectsPage.tsx:183",style:{fontSize:"0.8rem",color:"rgba(255,255,255,0.55)",lineHeight:1.55,margin:"0 0 0.875rem",flex:1}
871,children:e.excerpt||e.shortDescription||""}),t.length>0&&a.jsx("div",{"data-loc":"client/src/pages/ProjectsPage.tsx:187",style:{display:"flex",flexWrap:"wrap",gap:"0.3rem",marginBottom:"0.875rem"},children:t.slice(0,3).map(r=>a.jsx("span",{"data-loc":"client/src/pages/ProjectsPage.tsx:189",style:{fontSize:"0.6rem",fontWeight:600,color:"rgba(255,255,255,0.4)",background:"rgba(255,255,255,0.06)",padding:"2px 6px",borderRadius:"2px",textTransform:"uppercase",letterSpacing:"0.06em"},children:r},r))}),e.websiteUrl&&a.jsxs("a",{"data-loc":"client/src/pages/ProjectsPage.tsx:194",href:e.websiteUrl,target:"_blank",rel:"nofollow noopener noreferrer",onClick:r=>r.stopPropagation(),style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",fontSize:"0.72rem",fontWeight:600,color:"#2c7df7",textDecoration:"none",marginTop:"auto"},children:[a.jsx(ve,{"data-loc":"client/src/pages/ProjectsPage.tsx:195",size:11}),"Visit Website"]})]})]})})}const Nse=[["Architecture","architectureStatus"],["Implementation","implementationStatus"],["Testnet","testnetStatus"],["Production","productionStatus"]];function Rse(e){return e==="Defined"?"#63f7b1":e==="Next"?"#7cb4ff":e==="Planned"?"#c5a7ff":"rgba(255,255,255,0.56)"}function Dse({status:e}){const t=e?.sourceCheckedAt?new Date(e.sourceCheckedAt):void 0,r=t&&!Number.isNaN(t.getTime()),n=e?.contractAddresses??[];return a.jsxs("section",{"data-loc":"client/src/components/TezOracleStatusPanel.tsx:34","aria-labelledby":"tezoracle-status-title",style:{background:"linear-gradient(135deg, rgba(44,125,247,0.12), rgba(5,21,46,0.96))",border:"1px solid rgba(44,125,247,0.33)",borderRadius:"9px",padding:"1.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/components/TezOracleStatusPanel.tsx:35",style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:"1rem",flexWrap:"wrap",marginBottom:"1.1rem"},children:[a.jsxs("div",{"data-loc":"client/src/components/TezOracleStatusPanel.tsx:36",children:[a.jsx("p",{"data-loc":"client/src/components/TezOracleStatusPanel.tsx:37",style:{color:"#7cb4ff",fontSize:"0.66rem",fontWeight:900,letterSpacing:"0.1em",textTransform:"uppercase",margin:"0 0 0.3rem"},children:"Official source monitor"}),a.jsx("h2",{"data-loc":"client/src/components/TezOracleStatusPanel.tsx:38",id:"tezoracle-status-title",style:{color:"#fff",fontSize:"1.08rem",fontWeight:850,margin:0},children:"TezOracle build status"})]}),a.jsxs("a",{"data-loc":"client/src/components/TezOracleStatusPanel.tsx:40",href:e?.sourceUrl||"https://tezoracle.com/",target:"_blank",rel:"nofollow noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",color:"#7cb4ff",fontSize:"0.72rem",fontWeight:800,textDecoration:"none"},children:["Official project status ",a.jsx(ve,{"data-loc":"client/src/components/TezOracleStatusPanel.tsx:41",size:13,"aria-hidden":"true"})]})]}),a.jsx("p",{"data-loc":"client/src/components/TezOracleStatusPanel.tsx:45",style:{color:"rgba(255,255,255,0.7)",fontSize:"0.8rem",lineHeight:1.55,margin:"0 0 1rem"},children:"Updates are derived from TezOracleâs official published status. The panel never infers testnet availability or contract addresses."}),a.jsx("div",{"data-loc":"client/src/components/TezOracleStatusPanel.tsx:47","aria-label":"TezOracle development milestones",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(130px, 1fr))",gap:"0.6rem"},children:Nse.map(([s,i])=>{const o=e?.[i]||"Awaiting check";return a.jsxs("div",{"data-loc":"client/src/components/TezOracleStatusPanel.tsx:50",style:{padding:"0.7rem",borderRadius:"6px",background:"rgba(0,0,0,0.2)",border:"1px solid rgba(255,255,255,0.08)"},children:[a.jsx("p",{"data-loc":"client/src/components/TezOracleStatusPanel.tsx:51",style:{margin:"0 0 0.24rem",color:"rgba(255,255,255,0.45)",fontSize:"0.62rem",fontWeight:800,textTransform:"uppercase",letterSpacing:"0.08em"},children:s}),a.jsxs("p",{"data-loc":"client/src/components/TezOracleStatusPanel.tsx:52",style:{margin:0,color:e?Rse(o):"rgba(255,255,255,0.6)",fontSize:"0.8rem",fontWeight:800,display:"flex",alignItems:"center",gap:"0.3rem"},children:[o==="Defined"?a.jsx(Ga,{"data-loc":"client/src/components/TezOracleStatusPanel.tsx:52",size:13,"aria-hidden":"true"}):a.jsx(Pre,{"data-loc":"client/src/components/TezOracleStatusPanel.tsx:52",size:13,"aria-hidden":"true"}),o]})]},i)})}),a.jsxs("div",{"data-loc":"client/src/components/TezOracleStatusPanel.tsx:57",style:{marginTop:"1rem",paddingTop:"1rem",borderTop:"1px solid rgba(255,255,255,0.1)"},children:[a.jsx("p",{"data-loc":"client/src/components/TezOracleStatusPanel.tsx:58",style:{margin:"0 0 0.5rem",color:"rgba(255,255,255,0.46)",fontSize:"0.65rem",fontWeight:800,letterSpacing:"0.08em",textTransform:"uppercase"},children:"Published contract addresses"}),n.length===0?a.jsxs("p",{"data-loc":"client/src/components/TezOracleStatusPanel.tsx:60",style:{margin:0,color:"rgba(255,255,255,0.73)",fontSize:"0.8rem",lineHeight:1.5,display:"flex",gap:"0.45rem",alignItems:"flex-start"},children:[a.jsx(yy,{"data-loc":"client/src/components/TezOracleStatusPanel.tsx:60",size:15,"aria-hidden":"true",style:{color:"#7cb4ff",flexShrink:0,marginTop:"0.1rem"}}),"No official testnet or production contract addresses have been published yet."]}):a.jsx("div",{"data-loc":"client/src/components/TezOracleStatusPanel.tsx:62",style:{display:"grid",gap:"0.45rem"},children:n.map(s=>a.jsxs("div",{"data-loc":"client/src/components/TezOracleStatusPanel.tsx:62",style:{padding:"0.62rem 0.7rem",borderRadius:"5px",background:"rgba(0,0,0,0.18)",color:"rgba(255,255,255,0.78)",fontSize:"0.76rem"},children:[a.jsxs("strong",{"data-loc":"client/src/components/TezOracleStatusPanel.tsx:62",style:{color:"#7cb4ff"},children:[s.label||s.network,":"]})," ",a.jsx("code",{"data-loc":"client/src/components/TezOracleStatusPanel.tsx:62",style:{wordBreak:"break-all"},children:s.address})]},`${s.network}:${s.address}`))})]}),a.jsxs("p",{"data-loc":"client/src/components/TezOracleStatusPanel.tsx:66","aria-live":"polite",style:{margin:"1rem 0 0",color:"rgba(255,255,255,0.46)",fontSize:"0.68rem",display:"flex",alignItems:"center",gap:"0.35rem"},children:[a.jsx($W,{"data-loc":"client/src/components/TezOracleStatusPanel.tsx:66",size:13,"aria-hidden":"true"}
871),r?`Last verified from the official source ${t.toLocaleString("en-GB",{dateStyle:"medium",timeStyle:"short"})}.`:"Daily source monitor awaiting its first verified check."]})]})}function ME(){const{slug:e}=Ua(),{data:t,isLoading:r,error:n}=ee.projects.bySlug.useQuery({slug:e||""},{enabled:!!e}),s=e==="tezoracle",i=e==="kento",o=e==="0xtzkt",l=e==="optimised-marketing",d=e==="the-wall-today",[u,g]=E.useState(!1),f=E.useRef(!1),m=ee.referralAnalytics.recordCopy.useMutation(),{data:y}=ee.projects.tezoracleStatus.useQuery(void 0,{enabled:s,staleTime:6e4}),S=async()=>{try{await navigator.clipboard.writeText("XTZ2026"),g(!0),f.current||(f.current=!0,m.mutate(void 0)),window.setTimeout(()=>g(!1),1800)}catch{g(!1)}};if(Ie({title:t?`${t.title} â Tezos Project | XTZ.News`:"Tezos Project | XTZ.News",description:t?.excerpt?.replace(/<[^>]*>/g,"").slice(0,155)||"Explore Tezos ecosystem projects on XTZ.News.",keywords:t?`${t.title}, Tezos project, XTZ ecosystem`:"Tezos projects, XTZ ecosystem",canonical:t?`https://xtz.news/projects/${t.slug}`:"https://xtz.news/projects",ogImage:t?.featuredImageUrl||void 0}),r)return a.jsx("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:52",style:{background:"#000",minHeight:"100vh"},children:a.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:53",className:"container",style:{padding:"3rem 1.25rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:54",className:"skeleton",style:{height:"300px",borderRadius:"8px",marginBottom:"1.5rem"}}),a.jsx("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:55",className:"skeleton",style:{height:"200px",borderRadius:"8px"}})]})});if(n||!t)return a.jsx("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:63",style:{background:"#000",minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:64",style:{textAlign:"center"},children:[a.jsx("h1",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:65",style:{color:"#fff",fontSize:"2rem",fontWeight:900,marginBottom:"1rem"},children:"Project Not Found"}),a.jsx($,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:66",href:"/projects",style:{color:"#2c7df7",textDecoration:"none"},children:"â Back to Projects"})]})});const b=(()=>{try{return JSON.parse(t.tags||"[]")}catch{return[]}})();return a.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:75",style:{background:"#000",minHeight:"100vh"},children:[a.jsx("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:77",style:{background:t.featuredImageUrl?`linear-gradient(to bottom, rgba(0,0,0,0.65) 0%, rgba(5,21,46,0.97) 100%), url('${Je(t.featuredImageUrl)}') center/cover no-repeat`:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",borderBottom:"1px solid rgba(44,125,247,0.2)",padding:"3rem 0 2.5rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:84",className:"container",children:[a.jsxs("nav",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:86",style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.35rem",marginBottom:"1.5rem",fontSize:"0.78rem",fontWeight:600},children:[a.jsx($,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:87",href:"/",style:{color:"rgba(255,255,255,0.5)",display:"flex",alignItems:"center",textDecoration:"none"},children:a.jsx(Qt,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:87",size:13})}),a.jsx(Le,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:88",size:11,style:{color:"rgba(255,255,255,0.3)"}}),a.jsx($,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:89",href:"/projects",style:{color:"#2c7df7",textDecoration:"none",fontWeight:700},children:"Projects"}),a.jsx(Le,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:90",size:11,style:{color:"rgba(255,255,255,0.3)"}}),a.jsx("span",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:91",style:{color:"rgba(255,255,255,0.85)"},children:t.title})]}),a.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:94",style:{display:"flex",flexWrap:"wrap",alignItems:"flex-start",gap:"1.5rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:96",style:{width:"80px",height:"80px",borderRadius:"12px",overflow:"hidden",flexShrink:0,background:"#05152e",border:"1px solid rgba(255,255,255,0.1)",display:"flex",alignItems:"center",justifyContent:"center"},children:t.featuredImageUrl?a.jsx("img",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:98",src:Je(t.featuredImageUrl),alt:t.title,style:{width:"100%",height:"100%",objectFit:"cover"}}):a.jsx(ba,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:100",size:32,style:{color:"rgba(44,125,247,0.5)"}})}),a.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:104",style:{flex:1,minWidth:"200px"},children:[a.jsx("span",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:105",style:{fontSize:"0.65rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",color:"#2c7df7",background:"rgba(44,125,247,0.1)",padding:"3px 10px",borderRadius:"2px",display:"inline-block",marginBottom:"0.75rem"},children:t.category}),a.jsx("h1",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:108",style:{fontSize:"clamp(1.75rem, 4vw, 3rem)",fontWeight:900,color:"#fff",margin:"0 0 0.75rem",lineHeight:1.15},children:t.title}),b.length>0&&a.jsx("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:112",style:{display:"flex",flexWrap:"wrap",gap:"0.35rem",marginBottom:"1.25rem"},children:b.map(v=>a.jsx("span",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:114",style:{fontSize:"0.65rem",fontWeight:600,color:"rgba(255,255,255,0.5)",background:"rgba(255,255,255,0.07)",padding:"3px 8px",borderRadius:"2px",textTransform:"uppercase",letterSpacing:"0.06em"},children:v},v))}),a.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:118",style:{display:"flex",flexWrap:"wrap",gap:"0.75rem"},children:[t.websiteUrl&&a.jsxs("a",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:120",href:t.websiteUrl,target:"_blank",rel:"nofollow noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.5rem",padding:"0.65rem 1.5rem",background:"#2c7df7",borderRadius:"3px",color:"#fff",textDecoration:"none",fontSize:"0.8rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em"},onMouseEnter:v=>v.currentTarget.style.background="#1a6ae0",onMouseLeave:v=>v.currentTarget.style.background="#2c7df7",children:[a.jsx(ba,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:125",size:14})," Visit Website"]}),l&&a.jsx("button",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:129",type:"button",onClick:S,"aria-label":u?"Referral code copied":"Copy Optimised Marketing referral code XTZ2026",style:{display:"inline-flex",alignItems:"center",gap:"0.45rem",padding:"0.65rem 1rem",borderRadius:"3px",border:u?"1px solid rgba(74,222,128,0.75)":"1px solid rgba(74,222,128,0.4)",background:u?"rgba(34,197,94,0.18)":"rgba(34,197,94,0.1)",color:u?"#86efac":"#bbf7d0",cursor:"pointer",fontSize:"0.75rem",fontWeight:800,letterSpacing:"0.04em"},children:a.jsx("span",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:135","aria-live":"polite",children:u?a.jsxs(a.Fragment,{children:[a.jsx(yc,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:135",size:14,"aria-hidden":"true"})," Copied!"]}):a.jsxs(a.Fragment,{children:[a.jsx(an,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:135",size:13,"aria-hidden":"true"})," Copy XTZ2026"]})})}),t.twitter&&a.jsxs("a",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:139",href:t.twitter,target:"_blank",rel:"nofollow noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.5rem",padding:"0.65rem 1.25rem",background:"rgba(29,161,242,0.15)",border:"1px solid rgba(29,161,242,0.4)",borderRadius:"3px",color:"#1DA1F2",textDecoration:"none",fontSize:"0.8rem",fontWeight:700},onMouseEnter:v=>{v.currentTarget.style.background="#1DA1F2",v.currentTarget.style.color="#fff"},onMouseLeave:v=>{v.currentTarget.style.background="rgba(29,161,242,0.15)",v.currentTarget.style.color="#1DA1F2"},children:[a.jsx("svg",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:144",width:"14",height:"14",viewBox:"0 0 24 24",fill:"
871currentColor",children:a.jsx("path",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:144",d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.744l7.73-8.835L1.254 2.25H8.08l4.253 5.622zm-1.161 17.52h1.833L7.084 4.126H5.117z"})}),"Twitter"]})]}),s&&a.jsx(l$,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:149",contentType:"project",title:"TezOracle â Tezos-native oracle infrastructure",url:"https://xtz.news/projects/tezoracle"}),i&&a.jsx(c$,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:150",contentType:"project",title:"Kento â physical art cards from the objkt team",url:"https://xtz.news/projects/kento"}),i&&a.jsxs($,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:151",href:"/kento-season-one-funded-951-backers-215920",style:{display:"inline-flex",alignItems:"center",gap:"0.45rem",padding:"0.65rem 1rem",borderRadius:"3px",border:"1px solid rgba(249,168,212,0.44)",background:"rgba(249,168,212,0.1)",color:"#f9a8d4",textDecoration:"none",fontSize:"0.75rem",fontWeight:800,letterSpacing:"0.03em"},children:[a.jsx(NP,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:151",size:14,"aria-hidden":"true"})," Season 01 funded: 951 backers â"]}),d&&a.jsxs($,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:152",href:"/the-wall-today-freezes-genesis-board-tezos-archive",style:{display:"inline-flex",alignItems:"center",gap:"0.45rem",padding:"0.65rem 1rem",borderRadius:"3px",border:"1px solid rgba(153,246,228,0.44)",background:"rgba(153,246,228,0.1)",color:"#99f6e4",textDecoration:"none",fontSize:"0.75rem",fontWeight:800,letterSpacing:"0.03em"},children:[a.jsx(NP,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:152",size:14,"aria-hidden":"true"})," Read the Genesis Wall coverage"]})]})]})]})}),a.jsx("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:159",className:"container",style:{padding:"2.5rem 1.25rem 4rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:160",style:{display:"grid",gridTemplateColumns:"1fr",gap:"1.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:162",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"8px",padding:"1.75rem"},children:[a.jsxs("h2",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:163",style:{fontSize:"0.85rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.4)",margin:"0 0 1rem",borderBottom:"2px solid #2c7df7",paddingBottom:"0.75rem"},children:["About ",t.title]}),a.jsx("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:166",className:"post-content",style:{fontSize:"0.95rem",color:"rgba(255,255,255,0.8)",lineHeight:1.75},dangerouslySetInnerHTML:{__html:t.content||t.excerpt||""}}),i&&a.jsxs($,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:171",href:"/art-on-tezos",style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",marginTop:"1.15rem",color:"#f9a8d4",fontSize:"0.78rem",fontWeight:800,textDecoration:"none"},children:["Explore the Art on Tezos collection ",a.jsx(Le,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:171",size:14})]}),i&&a.jsxs($,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:172",href:"/kento-season-one-funded-951-backers-215920",style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",marginTop:"0.9rem",marginLeft:"1rem",color:"#f9a8d4",fontSize:"0.78rem",fontWeight:800,textDecoration:"none"},children:["Read the Season 01 funding update ",a.jsx(Le,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:172",size:14})]}),d&&a.jsxs($,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:173",href:"/onchain-community-archives",style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",marginTop:"1.15rem",color:"#99f6e4",fontSize:"0.78rem",fontWeight:800,textDecoration:"none"},children:["Explore Onchain Community Archives ",a.jsx(Le,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:173",size:14})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:177",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(200px, 1fr))",gap:"1rem"},children:[a.jsx(NE,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:178",label:"Category",value:t.category||"â"}),a.jsx(NE,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:179",label:"Status",value:d?"Early beta (invite-only)":s||o?"In development":"â
Live & Verified"}),t.websiteUrl&&a.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:181",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"8px",padding:"1.25rem"},children:[a.jsx("p",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:182",style:{fontSize:"0.65rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"rgba(255,255,255,0.35)",margin:"0 0 0.5rem"},children:"Website"}),a.jsxs("a",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:183",href:t.websiteUrl,target:"_blank",rel:"nofollow noopener noreferrer",style:{fontSize:"0.85rem",color:"#2c7df7",textDecoration:"none",wordBreak:"break-all",display:"flex",alignItems:"center",gap:"0.3rem"},children:[a.jsx(ve,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:184",size:12}),t.websiteUrl.replace(/^https?:\/\//,"").replace(/\/$/,"")]})]})]}),s&&a.jsx(Dse,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:191",status:y}),t.github&&a.jsx(Ise,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:194",githubUrl:t.github,projectTitle:t.title}),a.jsx(_se,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:197",projectName:t.title}),a.jsx("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:200",children:a.jsxs($,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:201",href:"/projects",style:{display:"inline-flex",alignItems:"center",gap:"0.5rem",color:"rgba(255,255,255,0.4)",textDecoration:"none",fontSize:"0.8rem",fontWeight:600,transition:"color 0.2s"},onMouseEnter:v=>v.currentTarget.style.color="#fff",onMouseLeave:v=>v.currentTarget.style.color="rgba(255,255,255,0.4)",children:[a.jsx(ya,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:206",size:14})," Back to All Projects"]})})]})})]})}function NE({label:e,value:t}){return a.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:217",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"8px",padding:"1.25rem"},children:[a.jsx("p",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:218",style:{fontSize:"0.65rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"rgba(255,255,255,0.35)",margin:"0 0 0.4rem"},children:e}),a.jsx("p",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:219",style:{fontSize:"0.9rem",color:"rgba(255,255,255,0.8)",margin:0,fontWeight:600},children:t})]})}function _se({projectName:e}){const{data:t}=ee.posts.search.useQuery({q:e,limit:4}),r=Array.isArray(t)?t:t?.posts??[];return r.length?a.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:230",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"8px",padding:"1.75rem"},children:[a.jsx("h2",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:231",style:{fontSize:"0.85rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.4)",margin:"0 0 1.25rem",borderBottom:"2px s
871olid #2c7df7",paddingBottom:"0.75rem"},children:"Related News"}),a.jsx("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:234",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(220px, 1fr))",gap:"1rem"},children:r.map(n=>a.jsxs($,{"data-loc":"client/src/pages/ProjectDetailPage.tsx:236",href:`/${n.slug}`,style:{textDecoration:"none",display:"flex",gap:"0.75rem",alignItems:"flex-start"},children:[a.jsx("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:237",style:{width:"60px",height:"45px",borderRadius:"4px",flexShrink:0,overflow:"hidden",background:"#05152e"},children:n.featuredImageUrl&&a.jsx("img",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:239",src:Je(n.featuredImageUrl),alt:n.title,style:{width:"100%",height:"100%",objectFit:"cover"},onError:s=>{s.currentTarget.style.display="none"}})}),a.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:247",children:[a.jsx("h4",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:248",style:{fontSize:"0.82rem",fontWeight:600,color:"rgba(255,255,255,0.75)",margin:0,lineHeight:1.4},onMouseEnter:s=>s.currentTarget.style.color="#fff",onMouseLeave:s=>s.currentTarget.style.color="rgba(255,255,255,0.75)",children:n.title}),n.publishedAt&&a.jsx("p",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:253",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.3)",margin:"0.2rem 0 0"},children:new Date(n.publishedAt).toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"})})]})]},n.id))})]}):null}function Ise({githubUrl:e,projectTitle:t}){const{data:r=[],isLoading:n}=ee.projects.githubCommits.useQuery({githubUrl:e},{enabled:!!e,staleTime:3e5}),s=l=>{const d=new Date(l),g=new Date().getTime()-d.getTime(),f=Math.floor(g/(1e3*60*60*24));return f===0?"Today":f===1?"Yesterday":f<7?`${f} days ago`:f<30?`${Math.floor(f/7)} week${Math.floor(f/7)>1?"s":""} ago`:d.toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"})};if(n)return a.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:285",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"8px",padding:"1.75rem"},children:[a.jsxs("h2",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:286",style:{fontSize:"0.85rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.4)",margin:"0 0 1.25rem",borderBottom:"2px solid #2c7df7",paddingBottom:"0.75rem",display:"flex",alignItems:"center",gap:"0.5rem"},children:[a.jsx("svg",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:287",width:"14",height:"14",viewBox:"0 0 24 24",fill:"rgba(255,255,255,0.4)",children:a.jsx("path",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:287",d:"M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12z"})}),"Recent Development Activity"]}),a.jsx("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:290",style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:Array.from({length:3}).map((l,d)=>a.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:292",style:{display:"flex",gap:"0.875rem",alignItems:"flex-start"},children:[a.jsx("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:293",className:"skeleton",style:{width:"32px",height:"32px",borderRadius:"50%",flexShrink:0}}),a.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:294",style:{flex:1},children:[a.jsx("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:295",className:"skeleton",style:{height:"13px",borderRadius:"3px",width:`${60+d*10}%`,marginBottom:"0.4rem"}}),a.jsx("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:296",className:"skeleton",style:{height:"10px",borderRadius:"3px",width:"30%"}})]})]},d))})]});if(!r.length)return null;const i=e.match(/github\.com\/([^/]+\/[^/\s?#]+)/),o=i?i[1].replace(/\.git$/,""):null;return a.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:312",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"8px",padding:"1.75rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:313",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"1.25rem",paddingBottom:"0.75rem",borderBottom:"2px s
871olid #2c7df7"},children:[a.jsxs("h2",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:314",style:{fontSize:"0.85rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.4)",margin:0,display:"flex",alignItems:"center",gap:"0.5rem"},children:[a.jsx("svg",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:315",width:"14",height:"14",viewBox:"0 0 24 24",fill:"rgba(255,255,255,0.4)",children:a.jsx("path",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:315",d:"M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12z"})}),"Recent Development Activity"]}),o&&a.jsxs("a",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:319",href:e,target:"_blank",rel:"nofollow noopener noreferrer",style:{fontSize:"0.7rem",color:"#2c7df7",textDecoration:"none",fontWeight:600,display:"flex",alignItems:"center",gap:"0.3rem"},onMouseEnter:l=>l.currentTarget.style.textDecoration="underline",onMouseLeave:l=>l.currentTarget.style.textDecoration="none",children:[o," â"]})]}),a.jsx("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:329",style:{display:"flex",flexDirection:"column",gap:"0"},children:r.map((l,d)=>a.jsxs("a",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:331",href:l.url,target:"_blank",rel:"nofollow noopener noreferrer",style:{textDecoration:"none",display:"flex",gap:"0.875rem",alignItems:"flex-start",padding:"0.875rem 0",borderBottom:d<r.length-1?"1px solid rgba(255,255,255,0.05)":"none",transition:"background 0.15s"},onMouseEnter:u=>u.currentTarget.style.background="rgba(44,125,247,0.04)",onMouseLeave:u=>u.currentTarget.style.background="transparent",children:[a.jsx("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:337",style:{width:"32px",height:"32px",borderRadius:"50%",background:"rgba(44,125,247,0.1)",border:"1px solid rgba(44,125,247,0.25)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,marginTop:"1px"},children:a.jsxs("svg",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:338",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"#2c7df7",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[a.jsx("circle",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:339",cx:"12",cy:"12",r:"4"}),a.jsx("line",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:340",x1:"1.05",y1:"12",x2:"7",y2:"12"}),a.jsx("line",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:341",x1:"17.01",y1:"12",x2:"22.96",y2:"12"})]})}),a.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:345",style:{flex:1,minWidth:0},children:[a.jsx("p",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:346",style:{fontSize:"0.85rem",fontWeight:500,color:"rgba(255,255,255,0.8)",margin:"0 0 0.25rem",lineHeight:1.4,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:l.message}),a.jsxs("div",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:349",style:{display:"flex",alignItems:"center",gap:"0.75rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:350",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.35)"},children:l.author}),a.jsx("span",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:351",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.25)"},children:"·"}),a.jsx("span",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:352",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.35)"},children:s(l.date)}),a.jsx("code",{"data-loc":"client/src/pages/ProjectDetailPage.tsx:353",style:{fontSize:"0.6rem",color:"#2c7df7",background:"rgba(44,125,247,0.1)",padding:"1px 5px",borderRadius:"3px",fontFamily:"monospace"},children:l.sha})]})]})]},l.sha))})]})}const u$="Community Services",RE=`/submit-project?category=${encodeURIComponent(u$)}`;function Bse(){const{data:e=[],isLoading:t}=ee.projects.all.useQuery({category:"all"}),r=E.useMemo(()=>e.filter(n=>n.category===u$),[e]);
871return Ie({title:"Tezos Community Services | Agencies, Studios & Marketing | XTZ.News",description:"Discover Tezos-facing agencies, development studios and marketing providers in the XTZ.News Community Services directory.",keywords:"Tezos agencies, Tezos development studios, Tezos marketing, Tezos website development, Tezos community services",canonical:"https://xtz.news/community-services",jsonLd:ka({title:"Tezos Community Services | XTZ.News",description:"A source-linked directory of Tezos-facing agencies, development studios and marketing providers.",url:"https://xtz.news/community-services",breadcrumbs:[{name:"Home",url:"https://xtz.news/"},{name:"Projects",url:"https://xtz.news/projects"},{name:"Community Services",url:"https://xtz.news/community-services"}]})}),a.jsxs("main",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:36",style:{background:"#000",minHeight:"100vh"},children:[a.jsxs("section",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:37",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",borderBottom:"1px solid rgba(44,125,247,0.25)",padding:"3.5rem 0 3rem",position:"relative",overflow:"hidden"},children:[a.jsx("div",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:38",style:{position:"absolute",inset:0,opacity:.045,backgroundImage:"repeating-linear-gradient(45deg, transparent, transparent 34px, rgba(44,125,247,0.9) 34px, rgba(44,125,247,0.9) 35px)",pointerEvents:"none"}}),a.jsxs("div",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:39",className:"container",style:{position:"relative"},children:[a.jsxs("nav",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:40","aria-label":"Breadcrumb",style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.35rem",marginBottom:"1.5rem",fontSize:"0.78rem",fontWeight:600},children:[a.jsx($,{"data-loc":"client/src/pages/CommunityServicesPage.tsx:41",href:"/","aria-label":"Home",style:{color:"rgba(255,255,255,0.5)",display:"flex",alignItems:"center",textDecoration:"none"},children:a.jsx(Qt,{"data-loc":"client/src/pages/CommunityServicesPage.tsx:41",size:13})}),a.jsx(Le,{"data-loc":"client/src/pages/CommunityServicesPage.tsx:42",size:11,style:{color:"rgba(255,255,255,0.3)"}}),a.jsx($,{"data-loc":"client/src/pages/CommunityServicesPage.tsx:43",href:"/projects",style:{color:"#69a7ff",textDecoration:"none"},children:"Projects"}),a.jsx(Le,{"data-loc":"client/src/pages/CommunityServicesPage.tsx:44",size:11,style:{color:"rgba(255,255,255,0.3)"}}),a.jsx("span",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:45",style:{color:"rgba(255,255,255,0.86)"},children:"Community Services"})]}),a.jsxs("div",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:48",style:{maxWidth:"860px"},children:[a.jsxs("div",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:49",style:{display:"inline-flex",alignItems:"center",gap:"0.45rem",color:"#a8cbff",fontSize:"0.68rem",fontWeight:900,textTransform:"uppercase",letterSpacing:"0.12em",marginBottom:"0.85rem"},children:[a.jsx(Sre,{"data-loc":"client/src/pages/CommunityServicesPage.tsx:50",size:15,"aria-hidden":"true"})," Tezos project directory"]}),a.jsx("h1",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:52",style:{fontSize:"clamp(2.35rem, 6vw, 4.4rem)",fontWeight:900,color:"#fff",textTransform:"uppercase",letterSpacing:"0.025em",lineHeight:1,margin:0},children:"Community Services"}),a.jsx("p",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:53",style:{color:"rgba(255,255,255,0.72)",fontSize:"clamp(1rem, 2vw, 1.15rem)",lineHeight:1.7,maxWidth:"770px",margin:"1.1rem 0 0"},children:"A directory for Tezos-facing agencies, development studios and marketing providers. Explore teams that help projects present, build and grow within the wider Tezos community."}),a.jsxs("div",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:56",style:{display:"flex",flexWrap:"wrap",gap:"0.75rem",marginTop:"1.6rem"},children:[a.jsxs($,{"data-loc":"client/src/pages/CommunityServicesPage.tsx:57",href:RE,style:{display:"inline-flex",alignItems:"center",gap:"0.55rem",padding:"0.78rem 1.15rem",background:"#2c7df7",borderRadius:"4px",color:"#fff",textDecoration:"none",fontSize:"0.78rem",fontWeight:900,textTransform:"uppercase",letterSpacing:"0.07em"},children:[a.jsx(Sc,{"data-loc":"client/src/pages/CommunityServicesPage.tsx:58",size:16,"aria-hidden":"true"})," Submit your agency ",a.jsx(_e,{"data-loc":"client/src/pages/CommunityServicesPage.tsx:58",size:15,"aria-hidden":"true"})]}),a.jsx($,{"data-loc":"client/src/pages/CommunityServicesPage.tsx:60",href:"/projects",style:{display:"inline-flex",alignItems:"center",gap:"0.45rem",padding:"0.78rem 1.1rem",border:"1px solid rgba(255,255,255,0.25)",borderRadius:"4px",color:"rgba(255,255,255,0.86)",textDecoration:"none",fontSize:"0.78rem",fontWeight:800},children:"Browse all projects"})]})]})]})]}),a.jsxs("section",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:68",className:"container",style:{padding:"2.5rem 1.25rem 4rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:69",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(260px, 1fr))",gap:"1.5rem",alignItems:"start",marginBottom:"2.25rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:70",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"8px",padding:"1.5rem"},children:[a.jsx("h2",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:71",style:{color:"#fff",fontSize:"1.15rem",margin:"0 0 0.75rem",fontWeight:800},children:"What this directory covers"}),a.jsx("p",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:72",style:{color:"rgba(255,255,255,0.68)",fontSize:"0.9rem",lineHeight:1.7,margin:0},children:"Profiles may include website design and development, applications, marketing, SEO, automation and launch support. Each listing should identify its own scope and official contact path. Inclusion is for discovery and does not amount to an editorial end
871orsement."})]}),a.jsxs("aside",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:76",style:{background:"rgba(44,125,247,0.09)",border:"1px solid rgba(44,125,247,0.28)",borderRadius:"8px",padding:"1.5rem"},children:[a.jsx(Ga,{"data-loc":"client/src/pages/CommunityServicesPage.tsx:77",size:20,style:{color:"#79afff",marginBottom:"0.75rem"},"aria-hidden":"true"}),a.jsx("h2",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:78",style:{color:"#fff",fontSize:"1rem",margin:"0 0 0.45rem",fontWeight:800},children:"For service providers"}),a.jsx("p",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:79",style:{color:"rgba(255,255,255,0.65)",fontSize:"0.82rem",lineHeight:1.65,margin:0},children:"Submit a concise, source-linked profile. Listings are reviewed before they appear in the directory."})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:83",style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",flexWrap:"wrap",gap:"0.75rem",marginBottom:"1.1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:84",children:[a.jsx("p",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:85",style:{color:"#71aaff",fontSize:"0.66rem",fontWeight:900,textTransform:"uppercase",letterSpacing:"0.13em",margin:0},children:"Directory listings"}),a.jsx("h2",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:86",style:{color:"#fff",fontSize:"1.55rem",fontWeight:900,margin:"0.3rem 0 0"},children:"Tezos community service providers"})]}),!t&&a.jsxs("p",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:88",style:{color:"rgba(255,255,255,0.42)",fontSize:"0.78rem",margin:0},children:[r.length," listing",r.length===1?"":"s"]})]}),t?a.jsx("div",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:92",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(275px, 1fr))",gap:"1.15rem"},children:a.jsx("div",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:93",className:"skeleton",style:{height:"310px",borderRadius:"8px"}})}):r.length>0?a.jsx("div",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:96",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(275px, 1fr))",gap:"1.15rem"},children:r.map(n=>a.jsx(Lse,{"data-loc":"client/src/pages/CommunityServicesPage.tsx:97",project:n},n.id))}):a.jsxs("div",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:100",style:{background:"#05152e",border:"1px dashed rgba(255,255,255,0.18)",borderRadius:"8px",padding:"2.5rem",textAlign:"center"},children:[a.jsx("h2",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:101",style:{color:"#fff",margin:0,fontSize:"1.1rem"},children:"Be the first listed provider"}),a.jsx("p",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:102",style:{color:"rgba(255,255,255,0.6)",lineHeight:1.6,margin:"0.65rem auto 1.2rem",maxWidth:"500px"},children:"Tell readers how your agency, studio or marketing service supports projects in the Tezos ecosystem."}),a.jsxs($,{"data-loc":"client/src/pages/CommunityServicesPage.tsx:103",href:RE,style:{color:"#8dbdff",fontWeight:800,textDecoration:"none"},children:["Submit your agency ",a.jsx(_e,{"data-loc":"client/src/pages/CommunityServicesPage.tsx:103",size:14,style:{display:"inline",verticalAlign:"middle"}})]})]})]})]})}function Lse({project:e}){return a.jsx($,{"data-loc":"client/src/pages/CommunityServicesPage.tsx:113",href:`/projects/${e.slug}`,style:{textDecoration:"none"},children:a.jsxs("article",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:114",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"8px",overflow:"hidden",height:"100%",display:"flex",flexDirection:"column",transition:"transform 180ms cubic-bezier(0.23, 1, 0.32, 1), border-color 180ms cubic-bezier(0.23, 1, 0.32, 1)"},children:[a.jsxs("div",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:115",style:{height:"145px",position:"relative",overflow:"hidden"},children:[e.featuredImageUrl?a.jsx("img",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:116",src:Je(e.featuredImageUrl),alt:"",style:{width:"100%",height:"100%",objectFit:"cover"}}):a.jsx("div",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:116",style:{width:"100%",height:"100%",background:"linear-gradient(135deg, #0d2a5e, #05152e)"}}),a.jsx("span",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:117",style:{position:"absolute",top:"0.7rem",left:"0.7rem",background:"rgba(44,125,247,0.9)",color:"#fff",borderRadius:"3px",padding:"0.22rem 0.5rem",fontSize:"0.57rem",fontWeight:900,textTransform:"uppercase",letterSpacing:"0.09em"},children:"Community Services"})]}),a.jsxs("div",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:119",style:{padding:"1.1rem",display:"flex",flexDirection:"column",flex:1},children:[a.jsx("h3",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:120",style:{color:"#fff",fontSize:"1.05rem",margin:"0 0 0.55rem",fontWeight:800},children:e.title}),a.jsx("p",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:121",style:{color:"rgba(255,255,255,0.63)",fontSize:"0.82rem",lineHeight:1.6,margin:"0 0 1rem",flex:1}
871,children:e.shortDescription||e.excerpt||""}),a.jsxs("span",{"data-loc":"client/src/pages/CommunityServicesPage.tsx:122",style:{color:"#79afff",fontSize:"0.76rem",fontWeight:800},children:["View profile ",a.jsx(_e,{"data-loc":"client/src/pages/CommunityServicesPage.tsx:122",size:13,style:{verticalAlign:"middle"}})]})]})]})})}const Wse=["the-wall-today","teia","objkt","hek-tezos-digital-art","kento"],$se=["the-wall-today-freezes-genesis-board-tezos-archive","tezos-art-recap-responsive-signals-vienna-digital-works","kento-objkt-physical-digital-art-cards-kickstarter"],ov=new Map(Wse.map((e,t)=>[e,t])),lv=new Map($se.map((e,t)=>[e,t]));function Fse(e){return e.filter(t=>ov.has(t.slug)).sort((t,r)=>(ov.get(t.slug)??Number.MAX_SAFE_INTEGER)-(ov.get(r.slug)??Number.MAX_SAFE_INTEGER))}function Hse(e){return e.filter(t=>lv.has(t.slug)).sort((t,r)=>(lv.get(t.slug)??Number.MAX_SAFE_INTEGER)-(lv.get(r.slug)??Number.MAX_SAFE_INTEGER))}function qse(e){return e?new Date(e).toLocaleDateString("en-GB",{day:"numeric",month:"long",year:"numeric"}):""}function Use(){const{data:e=[],isLoading:t}=ee.projects.all.useQuery({category:"all"},{staleTime:3e5}),{data:r,isLoading:n}=ee.posts.byCategory.useQuery({slug:"art",limit:24,offset:0},{staleTime:3e5}),s=E.useMemo(()=>Fse(e),[e]),i=E.useMemo(()=>Hse(r?.posts??[]),[r?.posts]),o=s.find(l=>l.slug==="the-wall-today");return i.find(l=>l.slug==="the-wall-today-freezes-genesis-board-tezos-archive"),Ie({title:"Onchain Community Archives | Tezos Culture Projects | XTZ.News",description:"Discover Tezos culture projects and editorial coverage that preserve community-made work, shared digital art, and recurring onchain records.",keywords:"Tezos culture, onchain community archives, THE WALL Today, Tezos digital art, Teia, Objkt, community records",canonical:"https://xtz.news/onchain-community-archives",jsonLd:ka({title:"Onchain Community Archives | XTZ.News",description:"A source-led discovery hub for Tezos culture projects and community-made onchain records.",url:"https://xtz.news/onchain-community-archives",breadcrumbs:[{name:"Home",url:"https://xtz.news/"},{name:"Projects",url:"https://xtz.news/projects"},{name:"Onchain Community Archives",url:"https://xtz.news/onchain-community-archives"}]})}),a.jsxs("main",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:44",style:{minHeight:"100vh",background:"#05070d"},children:[a.jsxs("section",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:45",style:{position:"relative",overflow:"hidden",padding:"4rem 0 3.35rem",background:"radial-gradient(circle at 18% 12%, rgba(94,234,212,0.19), transparent 30%), radial-gradient(circle at 78% 6%, rgba(249,168,212,0.18), transparent 30%), linear-gradient(135deg, #071b2e, #160e2d 58%, #071422)"},children:[a.jsx("div",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:46",style:{position:"absolute",inset:0,pointerEvents:"none",opacity:.22,backgroundImage:"linear-gradient(rgba(94,234,212,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(94,234,212,0.08) 1px, transparent 1px)",backgroundSize:"34px 34px",maskImage:"linear-gradient(to bottom, #000, transparent)"}}),a.jsxs("div",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:47",className:"container",style:{position:"relative"},children:[a.jsxs("nav",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:48","aria-label":"Breadcrumb",style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.35rem",marginBottom:"1.35rem",color:"rgba(255,255,255,0.6)",fontSize:"0.76rem"},children:[a.jsx($,{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:49",href:"/","aria-label":"XTZ.News home",style:{color:"#fff",display:"inline-flex"},children:a.jsx(Qt,{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:49",size:14})}),a.jsx(Le,{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:50",size:13}),a.jsx($,{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:51",href:"/projects",style:{color:"#9edff0",textDecoration:"none"},children:"Projects"}),a.jsx(Le,{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:52",size:13}),a.jsx("span",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:53","aria-current":"page",children:"Onchain Community Archives"})]}),a.jsxs("div",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:56",className:"archive-hub-hero",style:{display:"grid",gridTemplateColumns:"minmax(0, 1.15fr) minmax(290px, 0.85fr)",gap:"2rem",alignItems:"center"},children:[a.jsxs("div",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:57",children:[a.jsxs("p",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:58",style:{display:"flex",alignItems:"center",gap:"0.45rem",margin:"0 0 0.8rem",color:"#99f6e4",fontSize:"0.68rem",fontWeight:900,letterSpacing:"0.12em",textTransform:"uppercase"},children:[a.jsx(WW,{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:58",size:15,"aria-hidden":"true"})," XTZ.News culture route"]}),a.jsx("h1",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:59",style:{margin:"0 0 1rem",color:"#fff",fontSize:"clamp(2.25rem, 5.6vw, 4.65rem)",fontWeight:950,letterSpacing:"-0.045em",lineHeight:.98},children:"Onchain community archives"}),a.jsx("p",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:60",style:{maxWidth:"720px",margin:0,color:"rgba(255,255,255,0.76)",fontSize:"clamp(1rem, 2vw, 1.18rem)",lineHeight:1.7},children:"A source-led route through Tezos projects that turn shared culture, community-made work and recurring digital moments into records people can revisit. Start with the current public beta information, then explore related art and culture projects."}),a.jsxs("div",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:61",style:{display:"flex",flexWrap:"wrap",gap:"0.65rem",marginTop:"1.55rem"},children:[a.jsxs("a",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:62",href:"#archive-projects",style:{display:"inline-flex",alignItems:"center",gap:"0.45rem",background:"#99f6e4",color:"#06201e",borderRadius:"6px",padding:"0.72rem 0.95rem",fontSize:"0.79rem",fontWeight:900,textDecoration:"none"},children:["Browse culture projects ",a.jsx(_e,{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:62",size:15,"aria-hidden":"true"})]}),a.jsxs("a",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:63",href:"#archive-coverage",style:{display:"inline-flex",alignItems:"center",gap:"0.45rem",border:"1px solid rgba(255,255,255,0.28)",color:"rgba(255,255,255,0.9)",borderRadius:"6px",padding:"0.72rem 0.95rem",fontSize:"0.79rem",fontWeight:800,textDecoration:"none"},children:["Read coverage ",a.jsx(NP,{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:63",size:15,"aria-hidden":"true"})]})]})]}),a.jsx("aside",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:67","aria-label":"Featured archive profile",style:{border:"1px solid rgba(153,246,228,0.34)",background:"rgba(2,9,20,0.62)",borderRadius:"14px",overflow:"hidden",boxShadow:"0 18px 45px rgba(0,0,0,0.22)"},children:o?a.jsxs($,{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:68",href:"/projects/the-wall-today",style:{display:"block",color:"inherit",textDecoration:"none"},children:[a.jsxs("div",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:69",style:{height:"148px",position:"relative",overflow:"hidden",background:"#071321"},children:[o.featuredImageUrl&&a.jsx("img",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:70",src:Je(o.featuredImageUrl),alt:o.featuredImageAlt||"THE WALL Today September Wall",style:{width:"100%",height:"100%",objectFit:"cover"}}),a.jsx("span",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:71",style:{position:"absolute",top:"0.8rem",left:"0.8rem",background:"rgba(4, 32, 38, 0.9)",color:"#99f6e4",border:"1px solid rgba(153,246,228,0.5)",borderRadius:"999px",padding:"0.27rem 0.55rem",fontSize:"0.58rem",fontWeight:900,letterSpacing:"0.09em",textTransform:"uppercase"},children:"Early beta profile"})]}),a.jsxs("div",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:73",style:{padding:"1.2rem"},children:[a.jsx("p",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:74",style:{margin:0,color:"#99f6e4",fontSize:"0.63rem",fontWeight:900,letterSpacing:"0.1em",textTransform:"uppercase"},children:"Featured community archive"}),a.jsx("h2",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:75",style:{margin:"0.5rem 0",color:"#fff",fontSize:"1.35rem",lineHeight:1.1},children:"THE WALL Today"}),a.jsx("p",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:76",style:{margin:0,color:"rgba(255,255,255,0.65)",fontSize:"0.8rem",lineHeight:1.55},children:o.shortDescription||o.excerpt}),a.jsxs("span",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:77",style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",marginTop:"1rem",color:"#fff",fontSize:"0.77rem",fontWeight:900},children:["View project profile ",a.jsx(_e,{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:77",size:14})]})]})]}):a.jsxs("div",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:79",style:{minHeight:"300px",padding:"1.2rem"},children:[a.jsx("p",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:79",style:{color:"#99f6e4",fontSize:"0.64rem",fontWeight:900,letterSpacing:"0.1em",textTransform:"uppercase"},children:"Featured community archive"}),a.jsx("div",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:79",className:"skeleton",style:{height:"24px",marginTop:"1rem"}}),a.jsx("div",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:79",className:"skeleton",style:{height:"88px",marginTop:"0.8rem"}})]})})]})]}),a.jsx("style",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:83",children:"@media (max-width: 720px) { .archive-hub-hero { grid-template-columns: 1fr !important; } }"})]}),a.jsxs("section",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:86",style:{borderBottom:"1px solid rgba(255,255,255,0.08)",background:"#081321",padding:"1.25rem 0"},children:[a.jsxs("div",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:87",className:"container archive-hub-paths",style:{display:"grid",gridTemplateColumns:"repeat(3, minmax(0, 1fr))",gap:"0.9rem"},children:[a.jsxs($,{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:88",href:"/art-on-tezos",style:{display:"flex",alignItems:"center",gap:"0.65rem",textDecoration:"none",color:"rgba(255,255,255,0.82)",padding:"0.6rem"},children:[a.jsx(Do,{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:88",size:18,color:"#f9a8d4","aria-hidden":"true"}),a.jsxs("span",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:88",children:[a.jsx("b",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:88",style:{display:"block",fontSize:"0.78rem"},children:"Art on Tezos"}),a.jsx("small",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:88",style:{color:"rgba(255,255,255,0.5)"},children:"Art projects and coverage"})]})]}),a.jsxs($,{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:89",href:"/art",style:{display:"flex",alignItems:"center",gap:"0.65rem",textDecoration:"none",color:"rgba(255,255,255,0.82)",padding:"0.6rem"},children:[a.jsx(Fu,{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:89",size:18,color:"#99f6e4","aria-hidden":"true"}),a.jsxs("span",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:89",children:[a.jsx("b",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:89",style:{display:"block",fontSize:"0.78rem"},children:"Art & culture archive"}),a.jsx("small",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:89",style:{color:"rgba(255,255,255,0.5)"},children:"Editorial reading routes"})]})]}),a.jsxs($,{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:90",href:"/events",style:{display:"flex",alignItems:"center",gap:"0.65rem",textDecoration:"none",color:"rgba(255,255,255,0.82)",padding:"0.6rem"},children:[a.jsx(dA,{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:90",size:18,color:"#f6c453","aria-hidden":"true"}),a.jsxs("span",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:90",children:[a.jsx("b",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:90",style:{display:"block",fontSize:"0.78rem"},children:"Events calendar"}),a.jsx("small",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:90",style:{color:"rgba(255,255,255,0.5)"},children:"Published culture events"})]})]})]}),a.jsx("style",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:92",children:"@media (max-width: 640px) { .archive-hub-paths { grid-template-columns: 1fr !important; } }"})]}),a.jsxs("section",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:95",id:"archive-projects",className:"container",style:{padding:"3.2rem 1.25rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:96",style:{display:"flex",alignItems:"end",justifyContent:"space-between",flexWrap:"wrap",gap:"1rem",marginBottom:"1.35rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:97",children:[a.jsx("p",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:97",style:{margin:0,color:"#99f6e4",fontSize:"0.66rem",fontWeight:900,letterSpacing:"0.11em",textTransform:"uppercase"},children:"Project directory"}),a.jsx("h2",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:97",style:{margin:"0.35rem 0 0",color:"#fff",fontSize:"1.6rem"},children:"Tezos culture projects to explore"})]}),a.jsxs($,{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:98",href:"/projects",style:{color:"#99f6e4",fontWeight:800,fontSize:"0.78rem",textDecoration:"none"},children:["Open all projects ",a.jsx(_e,{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:98",size:14,style:{display:"inline",verticalAlign:"-2px"}})]})]}),a.jsx("p",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:100",style:{maxWidth:"760px",margin:"0 0 1.5rem",color:"rgba(255,255,255,0.65)",fontSize:"0.9rem",lineHeight:1.7},children:"These profiles are connected by culture, community participation or the shared discovery of Tezos-made work. Inclusion is for editorial discovery; readers should review each projectâs own public information before participating or collecting."}),t?a.jsxs("div",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:101",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(220px, 1fr))",gap:"1rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:101",className:"skeleton",style:{height:"220px"}}),a.jsx("div",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:101",className:"skeleton",style:{height:"220px"}})]}):a.jsx("div",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:101",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(220px, 1fr))",gap:"1rem"},children:s.map(l=>a.jsx($,{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:101",href:`/projects/${l.slug}`,style:{textDecoration:"none"},children:a.jsxs("article",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:101",style:{height:"100%",overflow:"hidden",borderRadius:"10px",border:"1px solid rgba(255,255,255,0.1)",background:"#081321",transition:"transform 180ms cubic-bezier(0.23, 1, 0.32, 1), border-color 180ms cubic-bezier(0.23, 1, 0.32, 1)"},onMouseEnter:d=>{d.currentTarget.style.transform="translateY(-3px)",d.currentTarget.style.borderColor="rgba(153,246,228,0.5)"},onMouseLeave:d=>{d.currentTarget.style.transform="translateY(0)",d.currentTarget.style.borderColor="rgba(255,255,255,0.1)"},children:[a.jsx("div",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:101",style:{height:"128px",background:"#0c1f2f"},children:l.featuredImageUrl?a.jsx("img",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:101",src:Je(l.featuredImageUrl),alt:l.featuredImageAlt||l.title,style:{width:"100%",height:"100%",objectFit:"cover"}}):a.jsx("div",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:101",style:{height:"100%",display:"grid",placeItems:"center"},children:a.jsx(Sc,{
871"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:101",size:28,color:"#99f6e4"})})}),a.jsxs("div",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:101",style:{padding:"1rem"},children:[a.jsx("p",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:101",style:{margin:0,color:"#99f6e4",fontSize:"0.61rem",fontWeight:900,letterSpacing:"0.09em",textTransform:"uppercase"},children:l.category||"Community"}),a.jsx("h3",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:101",style:{margin:"0.42rem 0",color:"#fff",fontSize:"1rem"},children:l.title}),a.jsx("p",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:101",style:{margin:0,color:"rgba(255,255,255,0.6)",fontSize:"0.78rem",lineHeight:1.55,display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden"},children:l.shortDescription||l.excerpt}),a.jsxs("span",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:101",style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",marginTop:"0.8rem",color:"#99f6e4",fontSize:"0.72rem",fontWeight:900},children:["View profile ",a.jsx(_e,{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:101",size:13})]})]})]})},l.id))})]}),a.jsx("section",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:104",id:"archive-coverage",style:{padding:"3.2rem 0",borderTop:"1px solid rgba(255,255,255,0.08)",background:"#060913"},children:a.jsxs("div",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:105",className:"container",children:[a.jsxs("div",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:106",style:{display:"flex",alignItems:"end",justifyContent:"space-between",flexWrap:"wrap",gap:"1rem",marginBottom:"1.35rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:106",children:[a.jsx("p",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:106",style:{margin:0,color:"#f9a8d4",fontSize:"0.66rem",fontWeight:900,letterSpacing:"0.11em",textTransform:"uppercase"},children:"XTZ.News coverage"}),a.jsx("h2",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:106",style:{margin:"0.35rem 0 0",color:"#fff",fontSize:"1.6rem"},children:"Community records and Tezos culture stories"})]}),a.jsxs($,{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:106",href:"/art?type=recaps",style:{color:"#f9a8d4",fontSize:"0.78rem",fontWeight:800,textDecoration:"none"},children:["Browse the art archive ",a.jsx(_e,{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:106",size:14,style:{display:"inline",verticalAlign:"-2px"}})]})]}),n?a.jsx("div",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:107",className:"skeleton",style:{height:"260px"}}):i.length?a.jsx("div",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:107",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(250px, 1fr))",gap:"1rem"},children:i.map(l=>a.jsx($,{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:107",href:`/${l.slug}`,style:{textDecoration:"none"},children:a.jsxs("article",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:107",style:{overflow:"hidden",borderRadius:"10px",border:"1px solid rgba(255,255,255,0.1)",background:"#081321",height:"100%"},children:[a.jsx("div",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:107",style:{aspectRatio:"16 / 9",background:"#14263b"},children:l.featuredImageUrl&&a.jsx("img",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:107",src:Je(l.featuredImageUrl),alt:l.featuredImageAlt||l.title,style:{width:"100%",height:"100%",objectFit:"cover"}})}),a.jsxs("div",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:107",style:{padding:"1rem"},children:[a.jsx("p",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:107",style:{margin:0,color:"rgba(255,255,255,0.43)",fontSize:"0.67rem",fontWeight:700},children:qse(l.publishedAt)}),a.jsx("h3",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:107",style:{margin:"0.45rem 0",color:"#fff",fontSize:"1rem",lineHeight:1.35},children:l.title}),a.jsx("p",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:107",style:{margin:0,color:"rgba(255,255,255,0.59)",fontSize:"0.78rem",lineHeight:1.55,display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden"},children:l.excerpt}),a.jsxs("span",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:107",style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",marginTop:"0.8rem",color:"#f9a8d4",fontSize:"0.72rem",fontWeight:900},children:["Read article ",a.jsx(_e,{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:107",size:13})]})]})]})},l.id))}):a.jsx("div",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:107",style:{border:"1px dashed rgba(255,255,255,0.2)",borderRadius:"10px",padding:"2rem",color:"rgba(255,255,255,0.62)"},children:"This route will collect related published culture coverage as it is reviewed."})]})}),a.jsx("section",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:111",style:{padding:"3rem 0",background:"linear-gradient(135deg, #0d2b35, #171030)"},children:a.jsxs("div",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:112",className:"container",style:{display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:"1.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:112",children:[a.jsx("p",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:112",style:{margin:0,color:"#99f6e4",fontSize:"0.66rem",fontWeight:900,letterSpacing:"0.11em",textTransform:"uppercase"},children:"Editorial discovery"}),a.jsx("h2",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:112",style:{margin:"0.35rem 0 0",color:"#fff",fontSize:"clamp(1.45rem, 3vw, 2.2rem)"},children:"Know a Tezos culture project worth following?"}),a.jsx("p",{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:112",style:{maxWidth:"680px",margin:"0.7rem 0 0",color:"rgba(255,255,255,0.7)",lineHeight:1.65,fontSize:"0.9rem"},children:"Send the projectâs official link and concise context to the editorial team for review. Profiles and stories are checked before publication."})]}),a.jsxs($,{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:112",href:"/submit-project",style:{display:"inline-flex",alignItems:"center",gap:"0.5rem",borderRadius:"6px",padding:"0.8rem 1rem",color:"#071e25",background:"#99f6e4",fontSize:"0.8rem",fontWeight:900,textDecoration:"none"},children:["Submit a project ",a.jsx(_e,{"data-loc":"client/src/pages/OnchainCommunityArchivesPage.tsx:112",size:15})]})]})})]})}const cv=["January","February","March","April","May","June","July","August","September","October","November","December"];function dv(e){return e?new Date(e).getFullYear():0}function DE(e){return e?new Date(e).getMonth():-1}function Gse(){Ie({title:"Tezos News Timeline | XTZ.News â Tezos Blockchain History",description:"Browse the complete history of Tezos news chronologically. Explore Tezos protocol upgrades, ecosystem milestones, DeFi launches, NFT events, and XTZ developments by month and year.",keywords:"Tezos timeline, Tezos history, Tezos protocol upgrades, Tezos milestones, XTZ blockchain history",canonical:"https://xtz.news/timeline"});const{data:e=[],isLoading:t}=ee.posts.timeline.useQuery({limit:1e3}),{data:r=[]}=ee.categories.all.useQuery(),n=E.useMemo(()=>{const j=new Set;return e.forEach(k=>{const P=dv(k.publishedAt);P>0&&j.add(P)}),Array.from(j).sort((k,P)=>P-k)},[e]),[s,i]=E.useState(()=>new Date().getFullYear()),[o,l]=E.useState(()=>new Date().getMonth()),[d,u]=E.useState("all"),[g,f]=E.useState("all");E.useEffect(()=>{n.length>0&&!n.includes(s)&&i(n[0])},[n]);const m=E.useMemo(()=>{const j=new Set;return e.forEach(k=>{dv(k.publishedAt)===s&&j.add(DE(k.publishedAt))}),j},[e,s]);E.useEffect(()=>{if(m.size>0&&!m.has(o)){const j=Math.min(...Array.from(m));l(j)}},[s,m]);const y=E.useMemo(()=>{let j=e.filter(k=>dv(k.publishedAt)===s&&DE(k.publishedAt)===o);if(d!=="all"){const k=Date.now(),P=d==="week"?k-7*864e5:d==="month"?k-30*864e5:k-365*864e5;j=j.filter(O=>O.publishedAt&&new Date(O.publishedAt).getTime()>=P)}return g!=="all"&&(j=j.filter(k=>k.categories?.some(P=>P.slug===g))),j},[e,s,o,d,g]),S=n.find(j=>j<s),b=n.find(j=>j>s),v=E.useRef(null);return E.useEffect(()=>{const j=v.current?.querySelector(`[data-month="${o}"]`);j&&j.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},[o]),a.jsxs("div",{"data-loc":"client/src/pages/TimelinePage.tsx:95",style:{background:"#000",minHeight:"100vh"},children:[a.jsx("div",{"data-loc":"client/src/pages/TimelinePage.tsx:97",style:{position:"relative",minHeight:"280px",background:"linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 100%), url('https://xtz.news/wp-content/uploads/2023/08/hero-bg-4.jpg') center/cover no-repeat",display:"flex",alignItems:"flex-end",padding:"0 0 2.5rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/TimelinePage.tsx:105",className:"container",children:[a.jsx("h1",{"data-loc":"client/src/pages/TimelinePage.tsx:106",style:{fontSize:"clamp(2rem, 5vw, 3.5rem)",fontWeight:900,color:"#fff",textTransform:"uppercase",letterSpacing:"0.04em",margin:"0 0 1rem"},children:"News Timeline"}),a.jsx("p",{"data-loc":"client/src/pages/TimelinePage.tsx:109",style:{fontSize:"0.9rem",color:"rgba(255,255,255,0.65)",maxWidth:"600px",lineHeight:1.7,margin:0},children:"Welcome to XTZ News timeline, your dedicated source for all things Tezos. Our chronologically ordered timeline provides you with a comprehensive view of Tezos' news history, from its latest innovations to significant milestones. We aim to serve our readers with up-to-date news, thought-provoking articles, and in-depth analysis. Dive into our archives or stay current with our latest updates, all through this timeline."})]})}),a.jsx("div",{"data-loc":"client/src/pages/TimelinePage.tsx:116",style:{background:"#05152e",borderBottom:"1px solid rgba(255,255,255,0.1)",padding:"1.5rem 0 0",position:"sticky",top:"140px",zIndex:30},children:a.jsxs("div",{"data-loc":"client/src/pages/TimelinePage.tsx:117",className:"container",children:[a.jsxs("div",{"data-loc":"client/src/pages/TimelinePage.tsx:119",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"1.25rem"},children:[b?a.jsxs("button",{"data-loc":"client/src/pages/TimelinePage.tsx:122",onClick:()=>i(b),style:{display:"flex",alignItems:"center",gap:"0.4rem",background:"none",border:"none",color:"rgba(255,255,255,0.5)",fontSize:"1rem",fontWeight:700,cursor:"pointer",padding:"0.25rem 0.5rem",transition:"color 0.2s"},onMouseEnter:j=>j.currentTarget.style.color="#fff",onMouseLeave:j=>j.currentTarget.style.color="rgba(255,255,255,0.5)",children:[a.jsx(Pn,{"data-loc":"client/src/pages/TimelinePage.tsx:126",size:16})," ",b]}):a.jsx("div",{"data-loc":"client/src/pages/TimelinePage.tsx:128",style:{width:"80px"}}),a.jsx("h2",{"data-loc":"client/src/pages/TimelinePage.tsx:131",style:{fontSize:"2rem",fontWeight:900,color:"#fff",margin:0,letterSpacing:"0.04em"},children:s}),S?a.jsxs("button",{"data-loc":"client/src/pages/TimelinePage.tsx:137",onClick:()=>i(S),style:{display:"flex",alignItems:"center",gap:"0.4rem",background:"none",border:"none",color:"rgba(255,255,255,0.5)",fontSize:"1rem",fontWeight:700,cursor:"pointer",padding:"0.25rem 0.5rem",transition:"color 0.2s"},onMouseEnter:j=>j.currentTarget.style.color="#fff",onMouseLeave:j=>j.currentTarget.style.color="rgba(255,255,255,0.5)",children:[S," ",a.jsx(Le,{"data-loc":"client/src/pages/TimelinePage.tsx:141",size:16})]}):a.jsx("div",{"data-loc":"client/src/pages/TimelinePage.tsx:143",style:{width:"80px"}})]}),a.jsx("div",{"data-loc":"client/src/pages/TimelinePage.tsx:147",ref:v,style:{display:"flex",overflowX:"auto",gap:0,scrollbarWidth:"none",msOverflowStyle:"none",position:"relative"},children:cv.map((j,k)=>{const P=m.has(k),O=k===o;return a.jsxs("button",{"data-loc":"client/src/pages/TimelinePage.tsx:152","data-month":k,onClick:()=>P&&l(k),disabled:!P,style:{flex:"0 0 auto",padding:"0.6rem 1rem",background:"none",border:"none",borderBottom:O?"3px solid #2c7df7":"3px solid transparent",color:O?"#fff":P?"rgba(255,255,255,0.6)":"rgba(255,255,255,0.2)",fontSize:"0.85rem",fontWeight:O?700:500,cursor:P?"pointer":"default",transition:"all 0.2s",whiteSpace:"nowrap",position:"relative"},onMouseEnter:T=>{P&&!O&&(T.currentTarget.style.color="#fff")},onMouseLeave:T=>{O||(T.currentTarget.style.color=P?"rgba(255,255,255,0.6)":"rgba(255,255,255,0.2)")},children:[j,O&&a.jsx("div",{"data-loc":"client/src/pages/TimelinePage.tsx:177",style:{position:"absolute",bottom:"-5px",left:"50%",transform:"translateX(-50%)",width:"8px",height:"8px",borderRadius:"50%",background:"#2c7df7",border:"2px s
871olid #05152e"}})]},j)})})]})}),a.jsx("div",{"data-loc":"client/src/pages/TimelinePage.tsx:187",className:"container",style:{padding:"2.5rem 1.25rem 4rem"},children:t?a.jsx("div",{"data-loc":"client/src/pages/TimelinePage.tsx:189",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(300px, 1fr))",gap:"1rem"},children:Array.from({length:4}).map((j,k)=>a.jsx("div",{"data-loc":"client/src/pages/TimelinePage.tsx:190",className:"skeleton",style:{height:"280px",borderRadius:"6px"}},k))}):a.jsxs(a.Fragment,{children:[a.jsxs("div",{"data-loc":"client/src/pages/TimelinePage.tsx:195",style:{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between",gap:"1rem",marginBottom:"1.5rem",paddingBottom:"1.25rem",borderBottom:"3px solid #2c7df7"},children:[a.jsxs("h2",{"data-loc":"client/src/pages/TimelinePage.tsx:196",style:{fontSize:"clamp(1.5rem, 4vw, 2.25rem)",fontWeight:900,color:"#fff",textTransform:"uppercase",letterSpacing:"0.04em",margin:0},children:[cv[o]," ",s]}),a.jsxs("div",{"data-loc":"client/src/pages/TimelinePage.tsx:199",style:{display:"flex",gap:"0.75rem"},children:[a.jsxs("select",{"data-loc":"client/src/pages/TimelinePage.tsx:200",value:d,onChange:j=>u(j.target.value),style:{padding:"0.5rem 1rem",background:"#2c7df7",border:"none",borderRadius:"3px",color:"#fff",fontSize:"0.8rem",fontWeight:700,cursor:"pointer",outline:"none"},children:[a.jsx("option",{"data-loc":"client/src/pages/TimelinePage.tsx:205",value:"all",children:"Time Period"}),a.jsx("option",{"data-loc":"client/src/pages/TimelinePage.tsx:206",value:"week",children:"Last Week"}),a.jsx("option",{"data-loc":"client/src/pages/TimelinePage.tsx:207",value:"month",children:"Last Month"}),a.jsx("option",{"data-loc":"client/src/pages/TimelinePage.tsx:208",value:"year",children:"Last Year"})]}),a.jsxs("select",{"data-loc":"client/src/pages/TimelinePage.tsx:210",value:g,onChange:j=>f(j.target.value),style:{padding:"0.5rem 1rem",background:"#2c7df7",border:"none",borderRadius:"3px",color:"#fff",fontSize:"0.8rem",fontWeight:700,cursor:"pointer",outline:"none",maxWidth:"160px"},children:[a.jsx("option",{"data-loc":"client/src/pages/TimelinePage.tsx:215",value:"all",children:"Category"}),r.filter(j=>(j.postCount??0)>=5).map(j=>a.jsx("option",{"data-loc":"client/src/pages/TimelinePage.tsx:217",value:j.slug,children:j.name},j.id))]})]})]}),y.length===0?a.jsx("div",{"data-loc":"client/src/pages/TimelinePage.tsx:225",style:{textAlign:"center",padding:"4rem 0"},children:a.jsxs("p",{"data-loc":"client/src/pages/TimelinePage.tsx:226",style:{color:"rgba(255,255,255,0.4)"},children:["No articles found for ",cv[o]," ",s,"."]})}):a.jsx("div",{"data-loc":"client/src/pages/TimelinePage.tsx:229",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(300px, 1fr))",gap:"1.25rem"},children:y.map(j=>{const k=j.categories??[];return a.jsx($,{"data-loc":"client/src/pages/TimelinePage.tsx:233",href:`/${j.slug}`,style:{textDecoration:"none"},children:a.jsxs("article",{"data-loc":"client/src/pages/TimelinePage.tsx:234",style:{position:"relative",borderRadius:"6px",overflow:"hidden",background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",height:"100%",transition:"transform 0.2s ease, box-shadow 0.2s ease",cursor:"pointer"},onMouseEnter:P=>{P.currentTarget.style.transform="translateY(-4px)",P.currentTarget.style.boxShadow="0 12px 40px rgba(0,0,0,0.5)"},onMouseLeave:P=>{P.currentTarget.style.transform="translateY(0)",P.currentTarget.style.boxShadow="none"},children:[j.featuredImageUrl?a.jsx("div",{"data-loc":"client/src/pages/TimelinePage.tsx:250",style:{height:"200px",overflow:"hidden"},children:a.jsx("img",{"data-loc":"client/src/pages/TimelinePage.tsx:251",src:Je(j.featuredImageUrl),alt:j.title,style:{width:"100%",height:"100%",objectFit:"cover",transition:"transform 0.4s ease"},onMouseEnter:P=>P.currentTarget.style.transform="scale(1.05)",onMouseLeave:P=>P.currentTarget.style.transform="scale(1)"})}):a.jsx("div",{"data-loc":"client/src/pages/TimelinePage.tsx:256",style:{height:"200px",background:"linear-gradient(135deg, #05152e 0%, #123262 100%)"}}),a.jsxs("div",{"data-loc":"client/src/pages/TimelinePage.tsx:260",style:{position:"absolute",top:"0.75rem",left:"0.75rem",right:"0.75rem",display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"0.5rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/TimelinePage.tsx:261",style:{display:"flex",flexWrap:"wrap",gap:"0.35rem"},children:k.slice(0,2).map(P=>a.jsx("span",{"data-loc":"client/src/pages/TimelinePage.tsx:263",style:{fontSize:"0.6rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"#fff",background:"rgba(0,0,0,0.6)",padding:"3px 8px",borderRadius:"2px",backdropFilter:"blur(4px)"},children:P.name},P.id))}),a.jsx("button",{"data-loc":"client/src/pages/TimelinePage.tsx:268",onClick:P=>P.preventDefault(),style:{width:"28px",height:"28px",borderRadius:"50%",background:"rgba(44,125,247,0.8)",border:"none",color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",flexShrink:0},children:a.jsx(bc,{"data-loc":"client/src/pages/TimelinePage.tsx:272",size:12})})]}),a.jsx("div",{"data-loc":"client/src/pages/TimelinePage.tsx:277",style:{padding:"1rem"},children:a.jsx("h3",{"data-loc":"client/src/pages/TimelinePage.tsx:278",style:{fontSize:"0.95rem",fontWeight:700,color:"#fff",lineHeight:1.45,margin:0},children:j.title})})]})},j.id)})})]})})]})}const Gm={width:"100%",padding:"0.8rem 1rem",background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"4px",color:"#fff",fontSize:"0.9rem",outline:"none",fontFamily:"inherit",transition:"border-color 0.2s",boxSizing:"border-box"};function yl({children:e,required:t}){return a.jsxs("label",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:23",style:{display:"block",fontSize:"0.68rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.45)",marginBottom:"0.5rem"},children:[e," ",t&&a.jsx("span",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:24",style:{color:"#2c7df7"},children:"*"})]})}function uv({label:e,accept:t,hint:r,icon:n,onChange:s,value:i,onClear:o}){const l=E.useRef(null),[d,u]=E.useState(!1);return a.jsxs("div",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:37",onClick:()=>!i&&l.current?.click(),onDragOver:g=>{g.preventDefault(),u(!0)},onDragLeave:()=>u(!1),onDrop:g=>{g.preventDefault(),u(!1);const f=g.dataTransfer.files[0];f&&s(f)},style:{border:`2px dashed ${d?"#2c7df7":i?"rgba(74,222,128,0.4)":"rgba(255,255,255,0.12)"}`,borderRadius:"6px",padding:"1.25rem 1rem",cursor:i?"default":"pointer",background:d?"rgba(44,125,247,0.06)":i?"rgba(74,222,128,0.04)":"rgba(255,255,255,0.02)",transition:"all 0.2s",display:"flex",alignItems:"center",gap:"1rem"},onMouseEnter:g=>{i||(g.currentTarget.style.borderColor="rgba(44,125,247,0.35)")},onMouseLeave:g=>{i||(g.currentTarget.style.borderColor="rgba(255,255,255,0.12)")},children:[a.jsx("input",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:51",ref:l,type:"file",accept:t,style:{display:"none"},onChange:g=>s(g.target.files?.[0]??null)}),a.jsx("div",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:52",style:{width:"40px",height:"40px",borderRadius:"8px",background:i?"rgba(74,222,128,0.1)":"rgba(44,125,247,0.1)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:i?a.jsx(ja,{"data-loc":"client/src/pages/SubmitArticlePage.tsx:53",size:20,style:{color:"#4ade80"}}):a.jsx("span",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:53",style:{color:"#2c7df7"},children:n})}),a.jsx("div",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:55",style:{flex:1,minWidth:0},children:i?a.jsxs(a.Fragment,{children:[a.jsx("p",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:58",style:{fontSize:"0.85rem",fontWeight:600,color:"#fff",margin:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:i.name}),a.jsxs("p",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:59",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.4)",margin:"0.2rem 0 0"},children:[(i.size/1024/1024).toFixed(2)," MB · File ready"]})]}):a.jsxs(a.Fragment,{children:[a.jsx("p",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:63",style:{fontSize:"0.85rem",fontWeight:500,color:"rgba(255,255,255,0.6)",margin:0},children:e}),a.jsx("p",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:64",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.3)",margin:"0.2rem 0 0"},children:r})]})}),i&&a.jsx("button",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:69",onClick:g=>{g.stopPropagation(),o()},style:{background:"none",border:"none",color:"rgba(255,255,255,0.3)",cursor:"pointer",padding:"4px",display:"flex",flexShrink:0},onMouseEnter:g=>g.currentTarget.style.color="#f87171",onMouseLeave:g=>g.currentTarget.style.color="rgba(255,255,255,0.3)",children:a.jsx(xr,{"data-loc":"client/src/pages/SubmitArticlePage.tsx:72",size:16})})]})}function Vse(){Ie({title:"Submit a Tezos Article | XTZ.News â Share Your Tezos Story",description:"Submit your Tezos news article, press release, or project update to XTZ.News. Reach thousands of Tezos developers, investors, and enthusiasts.",keywords:"submit Tezos article, Tezos press release, XTZ news submission, Tezos guest post",canonical:"https://xtz.news/submit-article"});const[e,t]=E.useState({firstName:"",lastName:"",email:"",articleTitle:"",agreedToTerms:!1}),[r,n]=E.useState(null),[s,i]=E.useState(null),[o,l]=E.useState(null),[d,u]=E.useState(!1),[g,f]=E.useState(""),[m,y]=E.useState(!1),S=ee.upload.getUploadUrl.useMutation(),b=ee.submissions.create.useMutation(),v=async(k,P)=>{const O=await S.mutateAsync({filename:k.name,contentType:k.type,folder:P}),T=O.uploadUrl||O.uploadEndpoint,C=O.fileUrl||O.url||"",A=O.fileKey||O.key||"";return T&&await fetch(T,{method:"PUT",body:k,headers:{"Content-Type":k.type}}),{url:C,key:A}},j=async k=>
871{if(k.preventDefault(),f(""),!e.firstName.trim())return f("First name is required.");if(!e.email.trim())return f("Email address is required.");if(!e.articleTitle.trim())return f("Article title is required.");if(!s)return f("Please upload your article file (.docx or .pdf).");if(!e.agreedToTerms)return f("You must agree to the terms and conditions.");y(!0);try{const[P]=await Promise.all([v(s,"articles")]);let O="",T="",C="",A="";if(r){const N=await v(r,"banners");O=N.url,T=N.key}if(o){const N=await v(o,"images");C=N.url,A=N.key}await b.mutateAsync({firstName:e.firstName,lastName:e.lastName||void 0,email:e.email,articleTitle:e.articleTitle,articleFileUrl:P.url,articleFileKey:P.key,bannerImageUrl:O||void 0,bannerImageKey:T||void 0,image2Url:C||void 0,image2Key:A||void 0,agreedToTerms:e.agreedToTerms}),u(!0)}catch(P){f(P?.message||"Something went wrong. Please try again.")}finally{y(!1)}};return d?a.jsx("div",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:139",style:{background:"#000",minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsxs("div",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:140",style:{textAlign:"center",maxWidth:"480px",padding:"2rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:141",style:{width:"80px",height:"80px",borderRadius:"50%",background:"rgba(74,222,128,0.1)",border:"2px solid rgba(74,222,128,0.4)",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 1.5rem"},children:a.jsx(ja,{"data-loc":"client/src/pages/SubmitArticlePage.tsx:142",size:36,style:{color:"#4ade80"}})}),a.jsx("h1",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:144",style:{fontSize:"2rem",fontWeight:900,color:"#fff",margin:"0 0 0.75rem"},children:"Article Submitted!"}),a.jsx("p",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:145",style:{fontSize:"0.95rem",color:"rgba(255,255,255,0.6)",lineHeight:1.7,margin:"0 0 2rem"},children:"Thank you for submitting your article to XTZ.News. Our editorial team will review it and get back to you within 3â5 business days."}),a.jsx($,{"data-loc":"client/src/pages/SubmitArticlePage.tsx:148",href:"/",style:{display:"inline-flex",alignItems:"center",gap:"0.5rem",padding:"0.875rem 2rem",background:"#2c7df7",borderRadius:"4px",color:"#fff",textDecoration:"none",fontSize:"0.85rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em"},children:"Back to Home"})]})}):a.jsxs("div",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:157",style:{background:"#000",minHeight:"100vh"},children:[a.jsxs("div",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:159",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",borderBottom:"1px solid rgba(44,125,247,0.2)",padding:"4rem 0 3rem",position:"relative",overflow:"hidden"},children:[a.jsx("div",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:160",style:{position:"absolute",inset:0,opacity:.04,backgroundImage:"repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(44,125,247,0.8) 40px, rgba(44,125,247,0.8) 41px)",pointerEvents:"none"}}),a.jsxs("div",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:161",className:"container",style:{position:"relative"},children:[a.jsxs("nav",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:162",style:{display:"flex",alignItems:"center",gap:"0.35rem",marginBottom:"1.5rem",fontSize:"0.78rem",fontWeight:600},children:[a.jsx($,{"data-loc":"client/src/pages/SubmitArticlePage.tsx:163",href:"/",style:{color:"rgba(255,255,255,0.5)",display:"flex",alignItems:"center",textDecoration:"none"},children:a.jsx(Qt,{"data-loc":"client/src/pages/SubmitArticlePage.tsx:163",size:13})}),a.jsx(Le,{"data-loc":"client/src/pages/SubmitArticlePage.tsx:164",size:11,style:{color:"rgba(255,255,255,0.3)"}}),a.jsx("span",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:165",style:{color:"rgba(255,255,255,0.85)"},children:"Submit Article"})]}),a.jsxs("div",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:167",style:{display:"flex",alignItems:"center",gap:"1rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:168",style:{width:"4px",height:"52px",background:"#2c7df7",borderRadius:"2px",flexShrink:0}}),a.jsxs("div",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:169",children:[a.jsx("h1",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:170",style:{fontSize:"clamp(2.5rem, 6vw, 4rem)",fontWeight:900,color:"#fff",textTransform:"uppercase",letterSpacing:"0.04em",margin:0,lineHeight:1},children:"Submit Article"}),a.jsx("p",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:171",style:{fontSize:"0.9rem",color:"rgba(255,255,255,0.45)",margin:"0.4rem 0 0"},children:"Share your Tezos story with our community"})]})]})]})]}),a.jsx("div",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:177",className:"container",style:{padding:"3rem 1.25rem 5rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:178",style:{display:"grid",gridTemplateColumns:"1fr min(340px, 100%)",gap:"2.5rem",alignItems:"start"},children:[a.jsxs("form",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:180",onSubmit:j,children:[a.jsxs("div",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:182",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"8px",padding:"2rem",marginBottom:"1.25rem"},children:[a.jsx("h2",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:183",style:{fontSize:"0.75rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",color:"#2c7df7",margin:"0 0 1.5rem",paddingBottom:"0.75rem",borderBottom:"1px solid rgba(255,255,255,0.07)"},children:"Your Details"}),a.jsxs("div",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:184",style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"1rem",marginBottom:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:185",children:[a.jsx(yl,{"data-loc":"client/src/pages/SubmitArticlePage.tsx:186",required:!0,children:"First Name"}),a.jsx("input",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:187",type:"text",value:e.firstName,onChange:k=>t({...e,firstName:k.target.value}),placeholder:"John",style:Gm,onFocus:k=>k.currentTarget.style.borderColor="#2c7df7",onBlur:k=>k.currentTarget.style.borderColor="rgba(255,255,255,0.12)"})]}),a.jsxs("div",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:191",children:[a.jsx(yl,{"data-loc":"client/src/pages/SubmitArticlePage.tsx:192",children:"Last Name"}),a.jsx("input",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:193",type:"text",value:e.lastName,onChange:k=>t({...e,lastName:k.target.value}),placeholder:"Doe",style:Gm,onFocus:k=>k.currentTarget.style.borderColor="#2c7df7",onBlur:k=>k.currentTarget.style.borderColor="rgba(255,255,255,0.12)"})]})]}),a.jsx(yl,{"data-loc":"client/src/pages/SubmitArticlePage.tsx:198",required:!0,children:"Email Address"}),a.jsx("input",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:199",type:"email",value:e.email,onChange:k=>t({...e,email:k.target.value}),placeholder:"[email protected]",style:Gm,onFocus:k=>k.currentTarget.style.borderColor="#2c7df7",onBlur:k=>k.currentTarget.style.borderColor="rgba(255,255,255,0.12)"})]}),a.jsxs("div",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:205",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"8px",padding:"2rem",marginBottom:"1.25rem"},children:[a.jsx("h2",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:206",style:{fontSize:"0.75rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",color:"#2c7df7",margin:"0 0 1.5rem",paddingBottom:"0.75rem",borderBottom:"1px solid rgba(255,255,255,0.07)"},children:"Article Details"}),a.jsxs("div",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:207",style:{marginBottom:"1.25rem"},children:[a.jsx(yl,{"data-loc":"client/src/pages/SubmitArticlePage.tsx:208",required:!0,children:"Article Title"}),a.jsx("input",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:209",type:"text",value:e.articleTitle,onChange:k=>t({...e,articleTitle:k.target.value}),placeholder:"Title of your article",style:Gm,onFocus:k=>k.currentTarget.style.borderColor="#2c7df7",onBlur:k=>k.currentTarget.style.borderColor="rgba(255,255,255,0.12)"})]}),a.jsxs("div",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:213",style:{marginBottom:"1.25rem"},children:[a.jsx(yl,{"data-loc":"client/src/pages/SubmitArticlePage.tsx:214",required:!0,children:"Article File"}),a.jsx(uv,{"data-loc":"client/src/pages/SubmitArticlePage.tsx:215",label:"Upload your article",accept:".docx,.pdf,application/pdf,application/vnd.openxmlformats-officedocument.wordprocessingml.document",hint:"Word document (.docx) or PDF · Max 20MB",icon:a.jsx(s0,{"data-loc":"client/src/pages/SubmitArticlePage.tsx:215",size:20}),onChange:i,value:s,onClear:()=>i(null)})]}),a.jsxs("div",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:217",style:{marginBottom:"1.25rem"},children:[a.jsx(yl,{"data-loc":"client/src/pages/SubmitArticlePage.tsx:218",children:"Banner Image"}),a.jsx(uv,{"data-loc":"client/src/pages/SubmitArticlePage.tsx:219",label:"Upload a banner image",accept:"image/jpeg,image/png,image/webp",hint:"JPG, PNG or WebP · Recommended 1344Ã896px",
871icon:a.jsx(Qg,{"data-loc":"client/src/pages/SubmitArticlePage.tsx:219",size:20}),onChange:n,value:r,onClear:()=>n(null)})]}),a.jsxs("div",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:221",children:[a.jsxs(yl,{"data-loc":"client/src/pages/SubmitArticlePage.tsx:222",children:["Additional Image ",a.jsx("span",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:222",style:{fontSize:"0.6rem",color:"rgba(255,255,255,0.3)",fontWeight:400,textTransform:"none",letterSpacing:0},children:"(optional)"})]}),a.jsx(uv,{"data-loc":"client/src/pages/SubmitArticlePage.tsx:223",label:"Upload an additional image",accept:"image/jpeg,image/png,image/webp",hint:"JPG, PNG or WebP · Optional",icon:a.jsx(Qg,{"data-loc":"client/src/pages/SubmitArticlePage.tsx:223",size:20}),onChange:l,value:o,onClear:()=>l(null)})]})]}),a.jsx("div",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:228",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"8px",padding:"1.5rem",marginBottom:"1.25rem"},children:a.jsxs("label",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:229",style:{display:"flex",alignItems:"flex-start",gap:"0.875rem",cursor:"pointer"},children:[a.jsx("div",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:230",onClick:()=>t({...e,agreedToTerms:!e.agreedToTerms}),style:{width:"20px",height:"20px",borderRadius:"3px",flexShrink:0,border:e.agreedToTerms?"2px solid #2c7df7":"2px solid rgba(255,255,255,0.2)",background:e.agreedToTerms?"#2c7df7":"transparent",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s",marginTop:"2px"},children:e.agreedToTerms&&a.jsx("svg",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:232",width:"11",height:"9",viewBox:"0 0 11 9",fill:"none",children:a.jsx("path",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:232",d:"M1 4.5L4 7.5L10 1.5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),a.jsxs("span",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:234",style:{fontSize:"0.83rem",color:"rgba(255,255,255,0.65)",lineHeight:1.65},children:["I agree to the ",a.jsx("span",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:235",style:{color:"#2c7df7"},children:"privacy policy"})," and T&Cs outlined by XTZ.News. By uploading an article, I accept all copyright terms and confirm that the information is true and accurate to the best of my knowledge."]})]})}),g&&a.jsxs("div",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:241",style:{display:"flex",alignItems:"center",gap:"0.75rem",padding:"0.875rem 1rem",background:"rgba(248,113,113,0.07)",border:"1px solid rgba(248,113,113,0.2)",borderRadius:"4px",marginBottom:"1.25rem"},children:[a.jsx(hy,{"data-loc":"client/src/pages/SubmitArticlePage.tsx:242",size:16,style:{color:"#f87171",flexShrink:0}}),a.jsx("p",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:243",style:{fontSize:"0.85rem",color:"#f87171",margin:0},children:g})]}),a.jsx("button",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:247",type:"submit",disabled:m,style:{width:"100%",padding:"1rem",background:m?"rgba(44,125,247,0.5)":"#2c7df7",border:"none",borderRadius:"4px",color:"#fff",fontSize:"0.9rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",cursor:m?"not-allowed":"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:"0.625rem",transition:"background 0.2s"},onMouseEnter:k=>{m||(k.currentTarget.style.background="#1a6ae0")},onMouseLeave:k=>{m||(k.currentTarget.style.background="#2c7df7")},children:m?a.jsxs(a.Fragment,{children:[a.jsx(Va,{"data-loc":"client/src/pages/SubmitArticlePage.tsx:252",size:18,style:{animation:"spin 0.8s linear infinite"}})," Uploading & Submitting..."]}):a.jsxs(a.Fragment,{children:[a.jsx(wa,{"data-loc":"client/src/pages/SubmitArticlePage.tsx:252",size:16})," Submit Article"]})}),a.jsx("style",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:254",children:"@keyframes spin { to { transform: rotate(360deg); } }"})]}),a.jsxs("div",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:258",style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:259",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"8px",padding:"1.5rem"},children:[a.jsx("h3",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:260",style:{fontSize:"0.75rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"#2c7df7",margin:"0 0 1rem"},children:"Submission Guidelines"}),a.jsx("ul",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:261",style:{margin:0,padding:"0 0 0 1.1rem",display:"flex",flexDirection:"column",gap:"0.6rem"},children:["Submit as Word (.docx) or PDF","Must relate to the Tezos ecosystem","Banner image: 1344Ã896px recommended","Ensure all facts and quotes are accurate","Original content only â no plagiarism","Review within 3â5 business days"].map((k,P)=>a.jsx("li",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:263",style:{fontSize:"0.82rem",color:"rgba(255,255,255,0.6)",lineHeight:1.5},children:k},P))})]}),a.jsxs("div",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:267",style:{background:"rgba(44,125,247,0.06)",border:"1px solid rgba(44,125,247,0.2)",borderRadius:"8px",padding:"1.5rem"},children:[a.jsx("h3",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:268",style:{fontSize:"0.75rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"#2c7df7",margin:"0 0 0.75rem"},children:"Need Help?"}),a.jsx("p",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:269",style:{fontSize:"0.82rem",color:"rgba(255,255,255,0.6)",margin:"0 0 0.75rem",lineHeight:1.6},children:"Having trouble with the form? Contact us directly."}),a.jsx("a",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:270",href:"mailto:[email protected]",style:{fontSize:"0.85rem",color:"#2c7df7",textDecoration:"none",fontWeight:700},children:"[email protected]"})]}),a.jsxs("div",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:272",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"8px",padding:"1.5rem"},children:[a.jsx("h3",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:273",style:{fontSize:"0.75rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.4)",margin:"0 0 0.875rem"},children:"Topics We Cover"}),a.jsx("div",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:274",style:{display:"flex",flexWrap:"wrap",gap:"0.35rem"},children:["DeFi","NFTs","Gaming","Protocol","Adoption","Dev Tools","Governance","Stablecoins","Layer 2","RWA"].map(k=>a.jsx("span",{"data-loc":"client/src/pages/SubmitArticlePage.tsx:276",style:{fontSize:"0.62rem",fontWeight:600,color:"rgba(255,255,255,0.45)",background:"rgba(255,255,255,0.05)",padding:"3px 7px",borderRadius:"2px",textTransform:"uppercase",letterSpacing:"0.06em"},children:k},k))})]})]})]})})]})}const Vp={width:"100%",padding:"0.85rem 1rem",background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"4px",color:"#fff",fontSize:"0.9rem",outline:"none",fontFamily:"inherit",transition:"border-color 0.2s, background 0.2s",boxSizing:"border-box"};function Vm({children:e,required:t}){return a.jsxs("label",{"data-loc":"client/src/pages/ContactPage.tsx:23",style:{display:"block",fontSize:"0.68rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.45)",marginBottom:"0.5rem"},children:[e," ",t&&a.jsx("span",{"data-loc":"client/src/pages/ContactPage.tsx:24",style:{color:"#2c7df7"},children:"*"})]})}function pv(){const e=Math.floor(Math.random()*12)+1,t=Math.floor(Math.random()*12)+1;return{a:e,b:t,answer:e+t}}function Xp(e){e.currentTarget.style.borderColor="#2c7df7",e.currentTarget.style.background="rgba(44,125,247,0.04)"}function Kp(e){e.currentTarget.style.borderColor="rgba(255,255,255,0.12)",e.currentTarget.style.background="rgba(255,255,255,0.05)"}function Xse(){Ie({title:"Contact XTZ.News | Get in Touch with the Tezos News Team",description:"Contact the XTZ.News editorial team. Submit news tips, press releases, advertising enquiries, or general questions about Tezos blockchain news.",keywords:"contact XTZ News, Tezos news contact, submit Tezos news tip",canonical:"https://xtz.news/contact"});const[e,t]=E.useState({name:"",email:"",subject:"",message:"",honeypot:"",captchaAnswer:""}),[r,n]=E.useState(pv),[s,i]=E.useState(!1),[o,l]=E.useState(""),[d,u]=E.useState(!1),g=ee.system.notifyOwner.useMutation(),f=async m=>{if(m.preventDefault(),l(""),e.honeypot){i(!0);return}if(!e.name.trim())return l("Please enter your name.");if(!e.email.trim()||!e.email.includes("@"))return l("Please enter a valid email address.");
871if(!e.message.trim()||e.message.trim().length<10)return l("Please enter a message (at least 10 characters).");if(parseInt(e.captchaAnswer)!==r.answer){l(`Incorrect answer. What is ${r.a} + ${r.b}?`),n(pv()),t({...e,captchaAnswer:""});return}u(!0);try{await g.mutateAsync({title:`Contact Form: ${e.subject||"New Message"} â from ${e.name}`,content:`**From:** ${e.name} (${e.email}) 872**Subject:** ${e.subject||"N/A"} 873 874${e.message}`}),i(!0)}catch{l("Something went wrong. Please email us directly at [email protected]")}finally{u(!1)}};return s?a.jsx("div",{"data-loc":"client/src/pages/ContactPage.tsx:92",style:{background:"#000",minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsxs("div",{"data-loc":"client/src/pages/ContactPage.tsx:93",style:{textAlign:"center",maxWidth:"480px",padding:"2rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/ContactPage.tsx:94",style:{width:"80px",height:"80px",borderRadius:"50%",background:"rgba(74,222,128,0.1)",border:"2px solid rgba(74,222,128,0.4)",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 1.5rem",animation:"ctPopIn 0.4s cubic-bezier(0.23,1,0.32,1)"},children:a.jsx(ja,{"data-loc":"client/src/pages/ContactPage.tsx:95",size:36,style:{color:"#4ade80"}})}),a.jsx("h1",{"data-loc":"client/src/pages/ContactPage.tsx:97",style:{fontSize:"2rem",fontWeight:900,color:"#fff",margin:"0 0 0.75rem"},children:"Message Sent!"}),a.jsx("p",{"data-loc":"client/src/pages/ContactPage.tsx:98",style:{fontSize:"0.95rem",color:"rgba(255,255,255,0.6)",lineHeight:1.7,margin:"0 0 2rem"},children:"Thank you for getting in touch with XTZ.News. We'll get back to you within 24â48 hours."}),a.jsx($,{"data-loc":"client/src/pages/ContactPage.tsx:101",href:"/",style:{display:"inline-flex",alignItems:"center",gap:"0.5rem",padding:"0.875rem 2rem",background:"#2c7df7",borderRadius:"4px",color:"#fff",textDecoration:"none",fontSize:"0.85rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em"},children:"Back to Home"}),a.jsx("style",{"data-loc":"client/src/pages/ContactPage.tsx:104",children:"@keyframes ctPopIn { from { transform:scale(0.5);opacity:0 } to { transform:scale(1);opacity:1 } }"})]})}):a.jsxs("div",{"data-loc":"client/src/pages/ContactPage.tsx:111",style:{background:"#000",minHeight:"100vh"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ContactPage.tsx:113",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",borderBottom:"1px solid rgba(44,125,247,0.2)",padding:"4rem 0 3rem",position:"relative",overflow:"hidden"},children:[a.jsx("div",{"data-loc":"client/src/pages/ContactPage.tsx:114",style:{position:"absolute",inset:0,opacity:.04,backgroundImage:"repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(44,125,247,0.8) 40px, rgba(44,125,247,0.8) 41px)",pointerEvents:"none"}}),a.jsxs("div",{"data-loc":"client/src/pages/ContactPage.tsx:115",className:"container",style:{position:"relative"},children:[a.jsxs("nav",{"data-loc":"client/src/pages/ContactPage.tsx:116",style:{display:"flex",alignItems:"center",gap:"0.35rem",marginBottom:"1.5rem",fontSize:"0.78rem",fontWeight:600},children:[a.jsx($,{"data-loc":"client/src/pages/ContactPage.tsx:117",href:"/",style:{color:"rgba(255,255,255,0.5)",display:"flex",alignItems:"center",textDecoration:"none"},children:a.jsx(Qt,{"data-loc":"client/src/pages/ContactPage.tsx:117",size:13})}),a.jsx(Le,{"data-loc":"client/src/pages/ContactPage.tsx:118",size:11,style:{color:"rgba(255,255,255,0.3)"}}),a.jsx("span",{"data-loc":"client/src/pages/ContactPage.tsx:119",style:{color:"rgba(255,255,255,0.85)"},children:"Contact"})]}),a.jsxs("div",{"data-loc":"client/src/pages/ContactPage.tsx:121",style:{display:"flex",alignItems:"center",gap:"1rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/ContactPage.tsx:122",style:{width:"4px",height:"52px",background:"#2c7df7",borderRadius:"2px",flexShrink:0}}),a.jsxs("div",{"data-loc":"client/src/pages/ContactPage.tsx:123",children:[a.jsx("h1",{"data-loc":"client/src/pages/ContactPage.tsx:124",style:{fontSize:"clamp(2.5rem, 6vw, 4rem)",fontWeight:900,color:"#fff",textTransform:"uppercase",letterSpacing:"0.04em",margin:0,lineHeight:1},children:"Contact Us"}),a.jsx("p",{"data-loc":"client/src/pages/ContactPage.tsx:125",style:{fontSize:"0.9rem",color:"rgba(255,255,255,0.45)",margin:"0.4rem 0 0"},children:"Get in touch with the XTZ.News team"})]})]})]})]}),a.jsx("div",{"data-loc":"client/src/pages/ContactPage.tsx:131",className:"container",style:{padding:"3rem 1.25rem 5rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/ContactPage.tsx:132",style:{display:"grid",gridTemplateColumns:"1fr min(340px, 100%)",gap:"2.5rem",alignItems:"start"},children:[a.jsxs("form",{"data-loc":"client/src/pages/ContactPage.tsx:134",onSubmit:f,children:[a.jsx("input",{"data-loc":"client/src/pages/ContactPage.tsx:136",type:"text",name:"website_url",value:e.honeypot,onChange:m=>t({...e,honeypot:m.target.value}),style:{position:"absolute",left:"-9999px",opacity:0,height:0,width:0},tabIndex:-1,autoComplete:"off"}),a.jsxs("div",{"data-loc":"client/src/pages/ContactPage.tsx:139",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"8px",padding:"2rem"},children:[a.jsx("h2",{"data-loc":"client/src/pages/ContactPage.tsx:140",style:{fontSize:"0.75rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",color:"#2c7df7",margin:"0 0 1.5rem",paddingBottom:"0.75rem",borderBottom:"1px solid rgba(255,255,255,0.07)"},children:"Send a Message"}),a.jsxs("div",{"data-loc":"client/src/pages/ContactPage.tsx:142",style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"1rem",marginBottom:"1.25rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ContactPage.tsx:143",children:[a.jsx(Vm,{"data-loc":"client/src/pages/ContactPage.tsx:144",required:!0,children:"Your Name"}),a.jsx("input",{"data-loc":"client/src/pages/ContactPage.tsx:145",type:"text",value:e.name,onChange:m=>t({...e,name:m.target.value}),placeholder:"John Doe",style:Vp,onFocus:Xp,onBlur:Kp})]}),a.jsxs("div",{"data-loc":"client/src/pages/ContactPage.tsx:147",children:[a.jsx(Vm,{"data-loc":"client/src/pages/ContactPage.tsx:148",required:!0,children:"Email Address"}),a.jsx("input",{"data-loc":"client/src/pages/ContactPage.tsx:149",type:"email",value:e.email,onChange:m=>t({...e,email:m.target.value}),placeholder:"[email protected]",style:Vp,onFocus:Xp,onBlur:Kp})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/ContactPage.tsx:153",style:{marginBottom:"1.25rem"},children:[a.jsx(Vm,{"data-loc":"client/src/pages/ContactPage.tsx:154",children:"Subject"}),a.jsx("input",{"data-loc":"client/src/pages/ContactPage.tsx:155",type:"text",value:e.subject,onChange:m=>t({...e,subject:m.target.value}),placeholder:"What's this about?",style:Vp,onFocus:Xp,onBlur:Kp})]}),a.jsxs("div",{"data-loc":"client/src/pages/ContactPage.tsx:158",style:{marginBottom:"1.5rem"},children:[a.jsx(Vm,{"data-loc":"client/src/pages/ContactPage.tsx:159",required:!0,children:"Message"}),a.jsx("textarea",{"data-loc":"client/src/pages/ContactPage.tsx:160",value:e.message,onChange:m=>t({...e,message:m.target.value}),placeholder:"Your message...",rows:6,style:{...Vp,resize:"vertical",minHeight:"140px",lineHeight:1.65},onFocus:Xp,onBlur:Kp})]}),a.jsxs("div",{"data-loc":"client/src/pages/ContactPage.tsx:165",style:{background:"rgba(44,125,247,0.05)",border:"1px solid rgba(44,125,247,0.15)",borderRadius:"6px",padding:"1rem 1.25rem",marginBottom:"1.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ContactPage.tsx:166",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginBottom:"0.75rem"},children:[a.jsx(ec,{"data-loc":"client/src/pages/ContactPage.tsx:167",size:13,style:{color:"#2c7df7"}}),a.jsx("span",{"data-loc":"client/src/pages/ContactPage.tsx:168",style:{fontSize:"0.65rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.4)"},children:"Bot Protection"})]}),a.jsxs("div",{"data-loc":"client/src/pages/ContactPage.tsx:170",style:{display:"flex",alignItems:"center",gap:"1rem",flexWrap:"wrap"},children:[a.jsxs("p",{"data-loc":"client/src/pages/ContactPage.tsx:171",style:{fontSize:"0.95rem",color:"rgba(255,255,255,0.8)",margin:0,fontWeight:600},children:["What is ",a.jsxs("span",{"data-loc":"client/src/pages/ContactPage.tsx:172",style:{color:"#2c7df7",fontWeight:900},children:[r.a," + ",r.b]}),"?"]}),a.jsx("input",{"data-loc":"client/src/pages/ContactPage.tsx:174",type:"number",value:e.captchaAnswer,onChange:m=>t({...e,captchaAnswer:m.target.value}),placeholder:"Answer",style:{...Vp,width:"100px",padding:"0.6rem 0.875rem"},onFocus:Xp,onBlur:Kp}),a.jsx("button",{"data-loc":"client/src/pages/ContactPage.tsx:176",type:"button",onClick:()=>{n(pv()),t(m=>({...m,captchaAnswer:""}))},style:{background:"none",border:"none",color:"rgba(255,255,255,0.3)",cursor:"pointer",fontSize:"0.72rem",textDecoration:"underline",padding:0},children:"New question"})]})]}),o&&a.jsxs("div",{"data-loc":"client/src/pages/ContactPage.tsx:184",style:{display:"flex",alignItems:"center",gap:"0.75rem",padding:"0.875rem 1rem",background:"rgba(248,113,113,0.07)",border:"1px solid rgba(248,113,113,0.2)",borderRadius:"4px",marginBottom:"1.25rem"},children:[a.jsx(hy,{"data-loc":"client/src/pages/ContactPage.tsx:185",size:16,style:{color:"#f87171",flexShrink:0}}),a.jsx("p",{"data-loc":"client/src/pages/ContactPage.tsx:186",style:{fontSize:"0.85rem",color:"#f87171",margin:0},children:o})]}),a.jsx("button",{"data-loc":"client/src/pages/ContactPage.tsx:190",type:"submit",disabled:d,style:{width:"100%",padding:"1rem",background:d?"rgba(44,125,247,0.5)":"#2c7df7",border:"none",borderRadius:"4px",color:"#fff",fontSize:"0.9rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",curs
874or:d?"not-allowed":"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:"0.625rem",transition:"background 0.2s"},onMouseEnter:m=>{d||(m.currentTarget.style.background="#1a6ae0")},onMouseLeave:m=>{d||(m.currentTarget.style.background="#2c7df7")},children:d?a.jsxs(a.Fragment,{children:[a.jsx(Va,{"data-loc":"client/src/pages/ContactPage.tsx:195",size:18,style:{animation:"ctSpin 0.8s linear infinite"}})," Sending..."]}):a.jsxs(a.Fragment,{children:[a.jsx(wa,{"data-loc":"client/src/pages/ContactPage.tsx:195",size:16})," Send Message"]})}),a.jsx("style",{"data-loc":"client/src/pages/ContactPage.tsx:197",children:"@keyframes ctSpin { to { transform: rotate(360deg); } }"})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/ContactPage.tsx:202",style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ContactPage.tsx:203",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"8px",padding:"1.5rem"},children:[a.jsx("h3",{"data-loc":"client/src/pages/ContactPage.tsx:204",style:{fontSize:"0.75rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"#2c7df7",margin:"0 0 1.25rem"},children:"Direct Contact"}),a.jsx("div",{"data-loc":"client/src/pages/ContactPage.tsx:205",style:{display:"flex",flexDirection:"column",gap:"0.875rem"},children:[{icon:a.jsx(di,{"data-loc":"client/src/pages/ContactPage.tsx:207",size:16,style:{color:"#2c7df7"}}),label:"Email",value:"[email protected]",href:"mailto:[email protected]",bg:"rgba(44,125,247,0.12)",hover:"rgba(44,125,247,0.08)"},{icon:a.jsx("svg",{"data-loc":"client/src/pages/ContactPage.tsx:208",width:"16",height:"16",viewBox:"0 0 24 24",fill:"#1DA1F2",children:a.jsx("path",{"data-loc":"client/src/pages/ContactPage.tsx:208",d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.744l7.73-8.835L1.254 2.25H8.08l4.253 5.622zm-1.161 17.52h1.833L7.084 4.126H5.117z"})}),label:"Twitter / X",value:"@xtz_news",href:"https://twitter.com/xtz_news",bg:"rgba(29,161,242,0.12)",hover:"rgba(29,161,242,0.08)"}].map(m=>a.jsxs("a",{"data-loc":"client/src/pages/ContactPage.tsx:210",href:m.href,target:m.href.startsWith("http")?"_blank":void 0,rel:m.href.startsWith("http")?"nofollow noopener noreferrer":void 0,style:{display:"flex",alignItems:"center",gap:"0.875rem",textDecoration:"none",padding:"0.875rem",background:"rgba(255,255,255,0.03)",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"6px",transition:"all 0.2s"},onMouseEnter:y=>{y.currentTarget.style.background=m.hover,y.currentTarget.style.borderColor="rgba(44,125,247,0.2)"},onMouseLeave:y=>{y.currentTarget.style.background="rgba(255,255,255,0.03)",y.currentTarget.style.borderColor="rgba(255,255,255,0.07)"},children:[a.jsx("div",{"data-loc":"client/src/pages/ContactPage.tsx:215",style:{width:"36px",height:"36px",borderRadius:"8px",background:m.bg,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:m.icon}),a.jsxs("div",{"data-loc":"client/src/pages/ContactPage.tsx:216",children:[a.jsx("p",{"data-loc":"client/src/pages/ContactPage.tsx:217",style:{fontSize:"0.65rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"rgba(255,255,255,0.35)",margin:0},children:m.label}),a.jsx("p",{"data-loc":"client/src/pages/ContactPage.tsx:218",style:{fontSize:"0.88rem",fontWeight:600,color:"#fff",margin:"0.15rem 0 0"},children:m.value})]})]},m.label))})]}),a.jsxs("div",{"data-loc":"client/src/pages/ContactPage.tsx:225",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"8px",padding:"1.5rem"},children:[a.jsx("h3",{"data-loc":"client/src/pages/ContactPage.tsx:226",style:{fontSize:"0.75rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.4)",margin:"0 0 1rem"},children:"Common Enquiries"}),a.jsx("ul",{"data-loc":"client/src/pages/ContactPage.tsx:227",style:{margin:0,padding:"0 0 0 1.1rem",display:"flex",flexDirection:"column",gap:"0.5rem"},children:["Submit a news tip or press release","Advertise on XTZ.News","Report inaccurate information","Partnership or collaboration","Technical issues with the site","General feedback"].map((m,y)=>a.jsx("li",{"data-loc":"client/src/pages/ContactPage.tsx:229",style:{fontSize:"0.82rem",color:"rgba(255,255,255,0.55)",lineHeight:1.5},children:m}
874,y))})]}),a.jsxs("div",{"data-loc":"client/src/pages/ContactPage.tsx:234",style:{background:"rgba(44,125,247,0.06)",border:"1px solid rgba(44,125,247,0.2)",borderRadius:"8px",padding:"1.25rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ContactPage.tsx:235",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginBottom:"0.5rem"},children:[a.jsx(qre,{"data-loc":"client/src/pages/ContactPage.tsx:236",size:13,style:{color:"#2c7df7"}}),a.jsx("span",{"data-loc":"client/src/pages/ContactPage.tsx:237",style:{fontSize:"0.72rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"#2c7df7"},children:"Response Time"})]}),a.jsx("p",{"data-loc":"client/src/pages/ContactPage.tsx:239",style:{fontSize:"0.82rem",color:"rgba(255,255,255,0.6)",margin:0,lineHeight:1.6},children:"We aim to respond to all enquiries within 24â48 hours on business days."})]})]})]})})]})}const Kse=[["homepage_banner","Homepage banner"],["article_banner","Article companion banner"],["newsletter","Newsletter sponsorship"],["sponsored_article","Sponsored article"],["directory_feature","Featured directory listing"],["custom","Custom partnership"]],_E={contactName:"",contactEmail:"",companyName:"",websiteUrl:"",placementInterest:"homepage_banner",campaignBrief:"",agreedToContact:!1},bd={width:"100%",boxSizing:"border-box",borderRadius:"6px",border:"1px solid rgba(255,255,255,0.16)",background:"rgba(3,8,20,.72)",color:"#fff",font:"inherit",fontSize:".86rem",padding:".7rem .78rem"};function vd({htmlFor:e,children:t}){return a.jsx("label",{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:17",htmlFor:e,style:{display:"block",marginBottom:".38rem",color:"rgba(255,255,255,.72)",fontSize:".7rem",fontWeight:800,letterSpacing:".05em",textTransform:"uppercase"},children:t})}function Qse(){const[e,t]=E.useState(_E),[r,n]=E.useState(""),s=ee.advertiserEnquiries.create.useMutation({onSuccess:()=>{n("Thank you. Your enquiry has been sent to the advertising team for review."),t(_E)},onError:l=>n(l.message||"We could not send your enquiry just now. Please try again later.")}),i=(l,d)=>t(u=>({...u,[l]:d})),o=l=>{if(l.preventDefault(),n(""),!e.agreedToContact){n("Please confirm that the team may contact you about this enquiry.");return}s.mutate({contactName:e.contactName,contactEmail:e.contactEmail,companyName:e.companyName,...e.websiteUrl.trim()?{websiteUrl:e.websiteUrl.trim()}:{},placementInterest:e.placementInterest,campaignBrief:e.campaignBrief,agreedToContact:!0})};return a.jsxs("form",{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:24",onSubmit:o,"aria-describedby":"advertiser-enquiry-note",style:{marginTop:"1.1rem",padding:"1.1rem",background:"#05152e",border:"1px solid rgba(99,247,177,.28)",borderRadius:"8px"},children:[a.jsx("h2",{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:25",style:{color:"#fff",margin:0,fontSize:"1.15rem"},children:"Start an advertising enquiry"}),a.jsx("p",{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:25",style:{color:"rgba(255,255,255,.55)",margin:".45rem 0 0",fontSize:".8rem",lineHeight:1.55},children:"Tell us what you would like to promote. Requests are reviewed before any placement, pricing agreement, or public campaign is created."}),a.jsxs("div",{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:26",style:{display:"grid",gap:".75rem",gridTemplateColumns:"repeat(auto-fit, minmax(200px, 1fr))",marginTop:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:26",children:[a.jsx(vd,{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:26",htmlFor:"advertiser-contact-name",children:"Your name"}),a.jsx("input",{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:26",id:"advertiser-contact-name",value:e.contactName,onChange:l=>i("contactName",l.target.value),minLength:2,maxLength:255,required:!0,autoComplete:"name",style:bd})]}),a.jsxs("div",{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:26",children:[a.jsx(vd,{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:26",htmlFor:"advertiser-contact-email",children:"Email"}),a.jsx("input",{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:26",id:"advertiser-contact-email",type:"email",value:e.contactEmail,onChange:l=>i("contactEmail",l.target.value),maxLength:320,required:!0,autoComplete:"email",style:bd})]})]}),a.jsxs("div",{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:27",style:{display:"grid",gap:".75rem",gridTemplateColumns:"repeat(auto-fit, minmax(200px, 1fr))",marginTop:".75rem"},children:[a.jsxs("div",{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:27",children:[a.jsx(vd,{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:27",htmlFor:"advertiser-company",children:"Company or project"}),a.jsx("input",{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:27",id:"advertiser-company",value:e.companyName,onChange:l=>i("companyName",l.target.value),minLength:2,maxLength:255,required:!0,autoComplete:"organization",style:bd})]}),a.jsxs("div",{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:27",children:[a.jsxs(vd,{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:27",htmlFor:"advertiser-website",children:["Website ",a.jsx("span",{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:27",style:{textTransform:"none",fontWeight:400},children:"(optional)"})]}),a.jsx("input",{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:27",id:"advertiser-website",type:"url",value:e.websiteUrl,onChange:l=>i("websiteUrl",l.target.value),placeholder:"https://example.com",maxLength:2e3,style:bd})]})]}),a.jsxs("div",{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:28",style:{marginTop:".75rem"},children:[a.jsx(vd,{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:28",htmlFor:"advertiser-placement",children:"Placement of interest"}),a.jsx("select",{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:28",id:"advertiser-placement",value:e.placementInterest,onChange:l=>i("placementInterest",l.target.value),style:bd,children:Kse.map(([l,d])=>a.jsx("option",{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:28",value:l,children:d},l))})]}),a.jsxs("div",{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:29",style:{marginTop:".75rem"},children:[a.jsx(vd,{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:29",htmlFor:"advertiser-brief",children:"Campaign details"}),a.jsx("textarea",{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:29",id:"advertiser-brief",value:e.campaignBrief,onChange:l=>i("campaignBrief",l.target.value),minLength:30,maxLength:4e3,rows:5,required:!0,placeholder:"What would you like to promote, when would you like to run it, and what is the preferred destination?",style:{...bd,resize:"vertical",lineHeight:1.55}}),a.jsxs("p",{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:29",style:{color:"rgba(255,255,255,.42)",margin:".3rem 0 0",fontSize:".68rem"},children:[e.campaignBrief.length,"/4000 characters · minimum 30"]})]}),a.jsxs("label",{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:30",style:{display:"flex",gap:".55rem",alignItems:"flex-start",cursor:"pointer",color:"rgba(255,255,255,.72)",marginTop:"1rem",fontSize:".78rem",lineHeight:1.5},children:[a.jsx("input",{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:30",type:"checkbox",checked:e.agreedToContact,onChange:l=>i("agreedToContact",l.target.checked),style:{marginTop:".2rem",accentColor:"#63f7b1"}}),"I agree that XTZ.News may contact me about this advertising enquiry."]}),a.jsx("p",{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:31",id:"advertiser-enquiry-note",style:{color:"rgba(255,255,255,.44)",margin:".7rem 0 0",fontSize:".72rem",lineHeight:1.5},children:"Your details remain private. A notification is sent to the advertising inbox at [email protected]; no ad is published automatically."}),r&&a.jsxs("p",{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:32",role:"status",style:{color:r.startsWith("Thank")?"#7ff0bd":"#fecaca",margin:".75rem 0 0",fontSize:".78rem",fontWeight:700,display:"flex",gap:".4rem",alignItems:"center"},children:[a.jsx(Ga,{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:32",size:15}),r]}),a.jsx("button",{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:33",type:"submit",disabled:s.isPending,style:{display:"inline-flex",alignItems:"center",gap:".45rem",marginTop:"1rem",border:0,borderRadius:"4px",color:"#062013",background:"#63f7b1",padding:".7rem .9rem",cursor:s.isPending?"wait":"pointer",fontWeight:900,fontSize:".76rem"},children:s.isPending?a.jsxs(a.Fragment,{children:[a.jsx(Va,{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:33",className:"animate-spin",size:15})," Sending"]}):a.jsxs(a.Fragment,{children:[a.jsx(wa,{"data-loc":"client/src/components/AdvertiserEnquiryForm.tsx:33",size:15})," Send advertising enquiry"]})})]})}const Yse=[{placement:"Homepage companion banner",price:"Quote on request",detail:"A clearly labelled first-party placement beneath the lead story. Supply a 3:1 creative, such as 2172 à 724, and a destination URL."},{placement:"Article companion banner",price:"Quote on request",detail:"A clearly labelled placement after the author bio on published news articles; sized responsively for the reading column."}
874,{placement:"Newsletter sponsorship",price:"From £200",detail:"A sponsored slot in the monthly XTZ.News digest, subject to campaign fit and available inventory."},{placement:"Sponsored article",price:"From £300",detail:"Clearly labelled supplied or editorially prepared coverage, subject to source and disclosure review."},{placement:"Featured directory listing",price:"£75 / month",detail:"A highlighted project listing in the public directory, subject to editorial review and ongoing eligibility."}];function Zse(){return a.jsxs("main",{"data-loc":"client/src/pages/AdvertisePage.tsx:13",style:{background:"#000",minHeight:"100vh"},children:[a.jsx("section",{"data-loc":"client/src/pages/AdvertisePage.tsx:14",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",padding:"4.8rem 0 3.8rem",borderBottom:"1px solid rgba(44,125,247,.2)"},children:a.jsxs("div",{"data-loc":"client/src/pages/AdvertisePage.tsx:15",className:"container",style:{maxWidth:"940px"},children:[a.jsxs("div",{"data-loc":"client/src/pages/AdvertisePage.tsx:16",style:{display:"inline-flex",alignItems:"center",gap:".5rem",background:"rgba(44,125,247,.15)",border:"1px solid rgba(44,125,247,.3)",borderRadius:"20px",padding:".3rem .9rem",marginBottom:"1.35rem"},children:[a.jsx(cr,{"data-loc":"client/src/pages/AdvertisePage.tsx:16",size:13,style:{color:"#2c7df7"}}),a.jsx("span",{"data-loc":"client/src/pages/AdvertisePage.tsx:16",style:{fontSize:".72rem",fontWeight:800,color:"#79aaff",textTransform:"uppercase",letterSpacing:".08em"},children:"Advertise with us"})]}),a.jsx("h1",{"data-loc":"client/src/pages/AdvertisePage.tsx:17",style:{fontSize:"clamp(2rem,5vw,3.5rem)",fontWeight:900,color:"#fff",margin:"0 0 1rem",lineHeight:1.1},children:"Reach Tezos readers with clear sponsorship"}),a.jsx("p",{"data-loc":"client/src/pages/AdvertisePage.tsx:18",style:{fontSize:"1.05rem",color:"rgba(255,255,255,.68)",maxWidth:"690px",lineHeight:1.7,margin:0},children:"XTZ.News offers clearly labelled promotional placements for Tezos projects, apps, services, and community initiatives. Every request is checked for availability and editorial fit before a campaign is confirmed."}),a.jsxs("a",{"data-loc":"client/src/pages/AdvertisePage.tsx:19",href:"#advertising-enquiry",style:{display:"inline-flex",marginTop:"1.45rem",alignItems:"center",gap:".45rem",padding:".72rem 1rem",borderRadius:"4px",background:"#63f7b1",color:"#062013",fontWeight:900,fontSize:".78rem",textDecoration:"none"},children:[a.jsx(nu,{"data-loc":"client/src/pages/AdvertisePage.tsx:19",size:15})," Start an enquiry"]})]})}),a.jsxs("div",{"data-loc":"client/src/pages/AdvertisePage.tsx:23",className:"container",style:{maxWidth:"940px",padding:"3.3rem 1.25rem 4.5rem"},children:[a.jsxs("section",{"data-loc":"client/src/pages/AdvertisePage.tsx:24","aria-labelledby":"placement-pricing",style:{marginBottom:"3.8rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/AdvertisePage.tsx:25",style:{display:"flex",gap:".75rem",alignItems:"center",marginBottom:".45rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/AdvertisePage.tsx:25",style:{width:"4px",height:"28px",background:"#2c7df7",borderRadius:"2px"}}),a.jsx("h2",{"data-loc":"client/src/pages/AdvertisePage.tsx:25",id:"placement-pricing",style:{fontSize:"1.6rem",fontWeight:900,color:"#fff",margin:0},children:"Placements and pricing"})]}),a.jsx("p",{"data-loc":"client/src/pages/AdvertisePage.tsx:26",style:{color:"rgba(255,255,255,.54)",lineHeight:1.6,margin:".55rem 0 1.35rem",maxWidth:"760px",fontSize:".88rem"},children:"Shown prices are starting prices in GBP where listed. Banner availability, final dates, creative requirements, and campaign scope are agreed before publishing. Quote-based placements are confirmed after review."}),a.jsx("div",{"data-loc":"client/src/pages/AdvertisePage.tsx:27",style:{overflowX:"auto",border:"1px solid rgba(255,255,255,.1)",borderRadius:"8px",background:"#05152e"},children:a.jsxs("table",{"data-loc":"client/src/pages/AdvertisePage.tsx:27",style:{width:"100%",borderCollapse:"collapse",minWidth:"650px",textAlign:"left"},children:[a.jsx("thead",{"data-loc":"client/src/pages/AdvertisePage.tsx:27",children:a.jsxs("tr",{"data-loc":"client/src/pages/AdvertisePage.tsx:27",style:{background:"rgba(44,125,247,.12)"},children:[a.jsx("th",{"data-loc":"client/src/pages/AdvertisePage.tsx:27",style:gv,children:"Placement"}),a.jsx("th",{"data-loc":"client/src/pages/AdvertisePage.tsx:27",style:gv,children:"Starting price"}),a.jsx("th",{"data-loc":"client/src/pages/AdvertisePage.tsx:27",style:gv,children:"What is included"})]})}),a.jsx("tbody",{"data-loc":"client/src/pages/AdvertisePage.tsx:27",children:Yse.map(e=>a.jsxs("tr",{"data-loc":"client/src/pages/AdvertisePage.tsx:27",style:{borderTop:"1px solid rgba(255,255,255,.08)"},children:[a.jsx("td",{"data-loc":"client/src/pages/AdvertisePage.tsx:27",style:Jse,children:e.placement}),a.jsx("td",{"data-loc":"client/src/pages/AdvertisePage.tsx:27",style:eie,children:e.price}),a.jsx("td",{"data-loc":"client/src/pages/AdvertisePage.tsx:27",style:yA,children:e.detail})]},e.placement))})]})})]}),a.jsxs("section",{"data-loc":"client/src/pages/AdvertisePage.tsx:30","aria-labelledby":"banner-specifications",style:{marginBottom:"3.8rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/AdvertisePage.tsx:31",style:{display:"flex",gap:".75rem",alignItems:"center",marginBottom:".45rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/AdvertisePage.tsx:31",style:{width:"4px",height:"28px",background:"#63f7b1",borderRadius:"2px"}}),a.jsx("h2",{"data-loc":"client/src/pages/AdvertisePage.tsx:31",id:"banner-specifications",style:{fontSize:"1.6rem",fontWeight:900,color:"#fff",margin:0},children:"Banner placement details"})]}),a.jsx("div",{"data-loc":"client/src/pages/AdvertisePage.tsx:32",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit,minmax(230px,1fr))",gap:".9rem",marginTop:"1rem"},children:[["Homepage companion","Appears beneath the lead story and is marked âFrom our networkâ. The live placement keeps editorial content visually separate."],["Article companion","Appears after the author bio and before related reading, so the article body and reader controls are not interrupted."],["Creative delivery","Use a 3:1 PNG, WebP, or JPEG, ideally 2172 à 724. Provide meaningful alt text, an HTTPS destination, and only rights-cleared assets."]].map(([e,t])=>a.jsxs("article",{"data-loc":"client/src/pages/AdvertisePage.tsx:36",style:{background:"rgba(255,255,255,.03)",border:"1px solid rgba(255,255,255,.1)",borderRadius:"8px",padding:"1rem"},children:[a.jsx("h3",{"data-loc":"client/src/pages/AdvertisePage.tsx:36",style:{margin:0,color:"#fff",fontSize:".94rem"},children:e}),a.jsx("p",{"data-loc":"client/src/pages/AdvertisePage.tsx:36",style:{margin:".5rem 0 0",color:"rgba(255,255,255,.58)",fontSize:".78rem",lineHeight:1.55},children:t})]},e))})]}),a.jsxs("section",{"data-loc":"client/src/pages/AdvertisePage.tsx:39","aria-labelledby":"advertising-principles",style:{marginBottom:"3.8rem",background:"rgba(44,125,247,.07)",border:"1px solid rgba(44,125,247,.22)",borderRadius:"8px",padding:"1.1rem"},children:[a.jsx("h2",{"data-loc":"client/src/pages/AdvertisePage.tsx:39",id:"advertising-principles",style:{color:"#fff",fontSize:"1.05rem",margin:0},children:"How placements are handled"}),a.jsx("ul",{"data-loc":"client/src/pages/AdvertisePage.tsx:39",style:{listStyle:"none",margin:".75rem 0 0",padding:0,display:"grid",gap:".5rem"},children:["Promotional placements are labelled and kept separate from editorial reporting.","Campaigns do not use third-party ad scripts or behavioural tracking.","A banner campaign can have an end date and automatically hides when that date passes.","All advertiser information is private and reviewed by the XTZ.News team before a campaign goe
874s live."].map(e=>a.jsxs("li",{"data-loc":"client/src/pages/AdvertisePage.tsx:39",style:{display:"flex",gap:".5rem",color:"rgba(255,255,255,.68)",fontSize:".8rem",lineHeight:1.5},children:[a.jsx(ja,{"data-loc":"client/src/pages/AdvertisePage.tsx:39",size:14,style:{color:"#63f7b1",marginTop:".1rem",flexShrink:0}}),e]},e))})]}),a.jsxs("section",{"data-loc":"client/src/pages/AdvertisePage.tsx:41",id:"advertising-enquiry","aria-labelledby":"advertising-enquiry-heading",style:{background:"linear-gradient(135deg,rgba(44,125,247,.11),rgba(99,247,177,.06))",border:"1px solid rgba(99,247,177,.22)",borderRadius:"9px",padding:"clamp(1rem,4vw,2rem)"},children:[a.jsxs("div",{"data-loc":"client/src/pages/AdvertisePage.tsx:41",style:{display:"flex",alignItems:"center",gap:".6rem"},children:[a.jsx(di,{"data-loc":"client/src/pages/AdvertisePage.tsx:41",size:22,style:{color:"#63f7b1"}}),a.jsx("h2",{"data-loc":"client/src/pages/AdvertisePage.tsx:41",id:"advertising-enquiry-heading",style:{color:"#fff",margin:0,fontSize:"1.35rem"},children:"Discuss a campaign"})]}),a.jsx("p",{"data-loc":"client/src/pages/AdvertisePage.tsx:41",style:{color:"rgba(255,255,255,.59)",fontSize:".84rem",lineHeight:1.6,margin:".6rem 0 0"},children:"Send the essentials and the advertising team will review the request. No campaign, public listing, or payment is created by this form."}),a.jsx(Qse,{"data-loc":"client/src/pages/AdvertisePage.tsx:41"})]})]})]})}const gv={padding:".75rem",color:"#b9d3ff",fontSize:".68rem",fontWeight:900,textTransform:"uppercase",letterSpacing:".07em"},yA={padding:".85rem .75rem",color:"rgba(255,255,255,.65)",fontSize:".79rem",lineHeight:1.55,verticalAlign:"top"},Jse={...yA,color:"#fff",fontWeight:800},eie={...yA,color:"#63f7b1",fontWeight:900,whiteSpace:"nowrap"},wy="tz1VjHjMkdWdrqbWLswcd6QentEgqexSd27Q",tie=`https://api.tzkt.io/v1/operations/transactions?target=${wy}&limit=20&sort.desc=id&status=applied`,rie=`https://api.tzkt.io/v1/operations/transactions?target=${wy}&limit=100&status=applied`;function IE(e){return e?`${e.slice(0,6)}â¦${e.slice(-4)}`:""}function nie(e){const t=Date.now()-new Date(e).getTime(),r=Math.floor(t/6e4),n=Math.floor(t/36e5),s=Math.floor(t/864e5);return r<1?"just now":r<60?`${r}m ago`:n<24?`${n}h ago`:`${s}d ago`}function BE(e){return(e/1e6).toFixed(2)}function aie(e){const t=new Map;for(const r of e){if(!r.sender?.address||r.sender.address===wy||r.amount<=0)continue;const n=r.sender.address,s=t.get(n);s?(s.total+=r.amount,s.count+=1):t.set(n,{address:n,alias:r.sender.alias,total:r.amount,count:1})}return Array.from(t.values()).sort((r,n)=>n.total-r.total).slice(0,5)}function sie(){const[e,t]=E.useState([]),[r,n]=E.useState([]),[s,i]=E.useState("recent"),[o,l]=E.useState(!0);if(E.useEffect(()=>{Promise.all([fetch(tie).then(u=>u.json()).catch(()=>[]),fetch(rie).then(u=>u.json()).catch(()=>[])]).then(([u,g])=>{const f=u.filter(m=>m.sender?.address!==wy&&m.amount>0).slice(0,5);t(f),n(aie(g)),l(!1)})},[]),o||e.length===0&&r.length===0)return null;const d=u=>({padding:"0.3rem 0.75rem",borderRadius:"20px",border:u?"1px solid rgba(44,125,247,0.5)":"1px solid rgba(255,255,255,0.1)",background:u?"rgba(44,125,247,0.15)":"transparent",color:u?"#2c7df7":"rgba(255,255,255,0.4)",fontSize:"0.68rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.06em",cursor:"pointer",transition:"all 0.15s",fontFamily:"inherit"});return a.jsxs("div",{"data-loc":"client/src/components/RecentDonors.tsx:101",style:{background:"rgba(44,125,247,0.06)",border:"1px solid rgba(44,125,247,0.15)",borderRadius:"10px",padding:"1.25rem 1.5rem",marginBottom:"2rem"},children:[a.jsxs("div",{"data-loc":"client/src/components/RecentDonors.tsx:109",style:{display:"flex",alignItems:"center",gap:"0.625rem",marginBottom:"1rem",flexWrap:"wrap"},children:[a.jsxs("svg",{"data-loc":"client/src/components/RecentDonors.tsx:110",width:"16",height:"16",viewBox:"0 0 32 32",fill:"#2c7df7",children:[a.jsx("path",{"data-loc":"client/src/components/RecentDonors.tsx:111",d:"M16 2L2 9.5v13L16 30l14-7.5v-13L16 2zm0 3.09l10.5 5.63v11.56L16 27.91 5.5 22.28V10.72L16 5.09z"}),a.jsx("path",{"data-loc":"client/src/components/RecentDonors.tsx:112",d:"M13 10v12h2v-5h4a3 3 0 000-6h-4V9h-2v1zm2 2h4a1 1 0 010 2h-4v-2z"})]}),a.jsx("span",{"data-loc":"client/src/components/RecentDonors.tsx:114",style:{fontSize:"0.72rem",fontWeight:800,textTransform:"uppercase",letterSpacing:"0.1em",color:"#2c7df7"},children:"Donors"}),a.jsxs("div",{"data-loc":"client/src/components/RecentDonors.tsx:117",style:{display:"flex",gap:"0.35rem",marginLeft:"0.25rem"},children:[a.jsx("button",{"data-loc":"client/src/components/RecentDonors.tsx:118",style:d(s==="recent"),onClick:()=>i("recent"),children:"Recent"}),a.jsx("button",{"data-loc":"client/src/components/RecentDonors.tsx:119",style:d(s==="top"),onClick:()=>i("top"),children:"Top All-Time"})]}),a.jsx("span",{"data-loc":"client/src/components/RecentDonors.tsx:121",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.3)",marginLeft:"auto"}
874,children:"Thank you! â¤ï¸"})]}),s==="recent"&&a.jsx("div",{"data-loc":"client/src/components/RecentDonors.tsx:126",style:{display:"flex",flexDirection:"column",gap:"0.5rem"},children:e.length===0?a.jsx("p",{"data-loc":"client/src/components/RecentDonors.tsx:128",style:{fontSize:"0.82rem",color:"rgba(255,255,255,0.3)",textAlign:"center",margin:"0.5rem 0"},children:"No recent donations yet. Be the first!"}):e.map(u=>a.jsxs("a",{"data-loc":"client/src/components/RecentDonors.tsx:130",href:`https://tzkt.io/${u.hash}`,target:"_blank",rel:"noopener noreferrer",style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0.5rem 0.75rem",background:"rgba(255,255,255,0.03)",border:"1px solid rgba(255,255,255,0.06)",borderRadius:"6px",textDecoration:"none",transition:"all 0.15s",gap:"0.75rem"},onMouseEnter:g=>{g.currentTarget.style.background="rgba(44,125,247,0.08)",g.currentTarget.style.borderColor="rgba(44,125,247,0.2)"},onMouseLeave:g=>{g.currentTarget.style.background="rgba(255,255,255,0.03)",g.currentTarget.style.borderColor="rgba(255,255,255,0.06)"},children:[a.jsxs("div",{"data-loc":"client/src/components/RecentDonors.tsx:139",style:{display:"flex",alignItems:"center",gap:"0.5rem",minWidth:0},children:[a.jsx("div",{"data-loc":"client/src/components/RecentDonors.tsx:140",style:{width:"28px",height:"28px",borderRadius:"50%",background:"linear-gradient(135deg, #2c7df7, #1a6ae0)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,fontSize:"0.7rem",fontWeight:900,color:"#fff"},children:(u.sender.alias||u.sender.address).charAt(0).toUpperCase()}),a.jsx("span",{"data-loc":"client/src/components/RecentDonors.tsx:143",style:{fontSize:"0.78rem",fontWeight:600,color:"rgba(255,255,255,0.75)",fontFamily:"monospace",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:u.sender.alias||IE(u.sender.address)})]}),a.jsxs("div",{"data-loc":"client/src/components/RecentDonors.tsx:147",style:{display:"flex",alignItems:"center",gap:"0.75rem",flexShrink:0},children:[a.jsxs("span",{"data-loc":"client/src/components/RecentDonors.tsx:148",style:{fontSize:"0.82rem",fontWeight:800,color:"#2c7df7"},children:[BE(u.amount)," ê©"]}),a.jsx("span",{"data-loc":"client/src/components/RecentDonors.tsx:149",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.3)",whiteSpace:"nowrap"},children:nie(u.timestamp)})]})]},u.hash))}),s==="top"&&a.jsx("div",{"data-loc":"client/src/components/RecentDonors.tsx:158",style:{display:"flex",flexDirection:"column",gap:"0.5rem"},children:r.length===0?a.jsx("p",{"data-loc":"client/src/components/RecentDonors.tsx:160",style:{fontSize:"0.82rem",color:"rgba(255,255,255,0.3)",textAlign:"center",margin:"0.5rem 0"},children:"No donations yet. Be the first!"}):r.map((u,g)=>a.jsxs("a",{"data-loc":"client/src/components/RecentDonors.tsx:162",href:`https://tzkt.io/${u.address}`,target:"_blank",rel:"noopener noreferrer",style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0.5rem 0.75rem",background:"rgba(255,255,255,0.03)",border:"1px solid rgba(255,255,255,0.06)",borderRadius:"6px",textDecoration:"none",transition:"all 0.15s",gap:"0.75rem"},onMouseEnter:f=>{f.currentTarget.style.background="rgba(44,125,247,0.08)",f.currentTarget.style.borderColor="rgba(44,125,247,0.2)"},onMouseLeave:f=>{f.currentTarget.style.background="rgba(255,255,255,0.03)",f.currentTarget.style.borderColor="rgba(255,255,255,0.06)"},children:[a.jsxs("div",{"data-loc":"client/src/components/RecentDonors.tsx:171",style:{display:"flex",alignItems:"center",gap:"0.5rem",minWidth:0},children:[a.jsx("div",{"data-loc":"client/src/components/RecentDonors.tsx:172",style:{width:"28px",height:"28px",borderRadius:"50%",background:g===0?"linear-gradient(135deg, #f59e0b, #d97706)":g===1?"linear-gradient(135deg, #9ca3af, #6b7280)":g===2?"linear-gradient(135deg, #b45309, #92400e)":"linear-gradient(135deg, #2c7df7, #1a6ae0)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,fontSize:"0.72rem",fontWeight:900,color:"#fff"},children:g===0?"ð¥":g===1?"ð¥":g===2?"ð¥":`#${g+1}`}),a.jsxs("div",{"data-loc":"client/src/components/RecentDonors.tsx:175",style:{minWidth:0},children:[a.jsx("span",{"data-loc":"client/src/components/RecentDonors.tsx:176",style:{fontSize:"0.78rem",fontWeight:600,color:"rgba(255,255,255,0.75)",fontFamily:"monospace",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"block"},children:u.alias||IE(u.address)}),a.jsxs("span",{"data-loc":"client/src/components/RecentDonors.tsx:179",style:{fontSize:"0.62rem",color:"rgba(255,255,255,0.3)"},children:[u.count," donation",u.count!==1?"s":""]})]})]}),a.jsxs("span",{"data-loc":"client/src/components/RecentDonors.tsx:182",style:{fontSize:"0.88rem",fontWeight:900,color:g===0?"#f59e0b":"#2c7df7",flexShrink:0},children:[BE(u.total)," ê©"]})]},u.address))})]})}const LE="tz1VjHjMkdWdrqbWLswcd6QentEgqexSd27Q";
874function iie(){return Ie({title:"Support XTZ.News â Donate XTZ to Keep Tezos News Independent",description:"XTZ.News is an independent, community-funded Tezos news platform. Support us with a XTZ donation to keep the coverage free and unbiased.",canonical:"https://xtz.news/support"}),a.jsxs("div",{"data-loc":"client/src/pages/SupportPage.tsx:15",style:{background:"#000",minHeight:"100vh"},children:[a.jsxs("div",{"data-loc":"client/src/pages/SupportPage.tsx:17",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",borderBottom:"1px solid rgba(44,125,247,0.2)",padding:"5rem 0 4rem",position:"relative",overflow:"hidden"},children:[a.jsx("div",{"data-loc":"client/src/pages/SupportPage.tsx:18",style:{position:"absolute",inset:0,opacity:.04,backgroundImage:"repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(44,125,247,0.8) 40px, rgba(44,125,247,0.8) 41px)",pointerEvents:"none"}}),a.jsxs("div",{"data-loc":"client/src/pages/SupportPage.tsx:19",className:"container",style:{maxWidth:"760px",position:"relative",textAlign:"center"},children:[a.jsxs("div",{"data-loc":"client/src/pages/SupportPage.tsx:20",style:{display:"inline-flex",alignItems:"center",gap:"0.5rem",background:"rgba(44,125,247,0.15)",border:"1px solid rgba(44,125,247,0.3)",borderRadius:"20px",padding:"0.3rem 0.9rem",marginBottom:"1.5rem"},children:[a.jsxs("svg",{"data-loc":"client/src/pages/SupportPage.tsx:21",width:"13",height:"13",viewBox:"0 0 32 32",fill:"#2c7df7",children:[a.jsx("path",{"data-loc":"client/src/pages/SupportPage.tsx:22",d:"M16 2L2 9.5v13L16 30l14-7.5v-13L16 2zm0 3.09l10.5 5.63v11.56L16 27.91 5.5 22.28V10.72L16 5.09z"}),a.jsx("path",{"data-loc":"client/src/pages/SupportPage.tsx:23",d:"M13 10v12h2v-5h4a3 3 0 000-6h-4V9h-2v1zm2 2h4a1 1 0 010 2h-4v-2z"})]}),a.jsx("span",{"data-loc":"client/src/pages/SupportPage.tsx:25",style:{fontSize:"0.72rem",fontWeight:700,color:"#2c7df7",textTransform:"uppercase",letterSpacing:"0.08em"},children:"Support XTZ.News"})]}),a.jsx("h1",{"data-loc":"client/src/pages/SupportPage.tsx:27",style:{fontSize:"clamp(2rem, 5vw, 3.5rem)",fontWeight:900,color:"#fff",margin:"0 0 1rem",lineHeight:1.1},children:"Keep Tezos News Independent"}),a.jsx("p",{"data-loc":"client/src/pages/SupportPage.tsx:30",style:{fontSize:"1.1rem",color:"rgba(255,255,255,0.65)",lineHeight:1.7,margin:"0 0 2.5rem",maxWidth:"600px",marginLeft:"auto",marginRight:"auto"},children:"XTZ.News is a community-funded, independent news platform covering the Tezos blockchain ecosystem. We don't take money from VCs, foundations, or advertisers â we rely on readers like you."}),a.jsx(Zg,{"data-loc":"client/src/pages/SupportPage.tsx:33",variant:"article"})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/SupportPage.tsx:37",className:"container",style:{maxWidth:"760px",padding:"4rem 1.25rem"},children:[a.jsx(sie,{"data-loc":"client/src/pages/SupportPage.tsx:40"}),a.jsxs("section",{"data-loc":"client/src/pages/SupportPage.tsx:43",style:{marginBottom:"3.5rem"},children:[a.jsxs("h2",{"data-loc":"client/src/pages/SupportPage.tsx:44",style:{fontSize:"1.5rem",fontWeight:900,color:"#fff",margin:"0 0 1.5rem",display:"flex",alignItems:"center",gap:"0.75rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/SupportPage.tsx:45",style:{width:"4px",height:"28px",background:"#2c7df7",borderRadius:"2px",flexShrink:0}}),"Why Your Support Matters"]}),a.jsx("div",{"data-loc":"client/src/pages/SupportPage.tsx:48",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(220px, 1fr))",gap:"1rem"},children:[{icon:"ð°",title:"Independent Coverage",desc:"No foundation funding, no VC pressure. We cover Tezos honestly â the good and the bad."},{icon:"ð",title:"10 Languages",desc:"We translate every article into 10 languages to make Tezos news accessible globally."},{icon:"ð",title:"Audio Articles",desc:"Every article gets an AI-narrated audio version via ElevenLabs so you can listen on the go."},{icon:"â¡",title:"Real-time Data",desc:"Live XTZ prices, block explorer, staking calculator, NFT tools â all free, no paywalls."}].map(e=>a.jsxs("div",{"data-loc":"client/src/pages/SupportPage.tsx:55",style:{background:"rgba(255,255,255,0.03)",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"10px",padding:"1.5rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/SupportPage.tsx:56",style:{fontSize:"1.75rem",marginBottom:"0.75rem"},children:e.icon}),a.jsx("h3",{"data-loc":"client/src/pages/SupportPage.tsx:57",style:{fontSize:"0.9rem",fontWeight:800,color:"#fff",margin:"0 0 0.4rem"},children:e.title}),a.jsx("p",{"data-loc":"client/src/pages/SupportPage.tsx:58",style:{fontSize:"0.82rem",color:"rgba(255,255,255,0.5)",lineHeight:1.6,margin:0},children:e.desc})]},e.title))})]}),a.jsxs("section",{"data-loc":"client/src/pages/SupportPage.tsx:65",style:{marginBottom:"3.5rem"},children:[a.jsxs("h2",{"data-loc":"client/src/pages/SupportPage.tsx:66",style:{fontSize:"1.5rem",fontWeight:900,color:"#fff",margin:"0 0 1.5rem",display:"flex",alignItems:"center",gap:"0.75rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/SupportPage.tsx:67",style:{width:"4px",height:"28px",background:"#2c7df7",borderRadius:"2px",flexShrink:0}}),"What Donations Fund"]}),a.jsx("div",{"data-loc":"client/src/pages/SupportPage.tsx:70",style:{background:"rgba(255,255,255,0.03)",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"10px",padding:"1.75rem"}
874,children:[{label:"Server & infrastructure costs",pct:40},{label:"AI translation (10 languages à 1,500+ articles)",pct:30},{label:"ElevenLabs audio narration API",pct:20},{label:"Development & new features",pct:10}].map(e=>a.jsxs("div",{"data-loc":"client/src/pages/SupportPage.tsx:77",style:{marginBottom:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/SupportPage.tsx:78",style:{display:"flex",justifyContent:"space-between",marginBottom:"0.35rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/SupportPage.tsx:79",style:{fontSize:"0.82rem",color:"rgba(255,255,255,0.7)",fontWeight:600},children:e.label}),a.jsxs("span",{"data-loc":"client/src/pages/SupportPage.tsx:80",style:{fontSize:"0.78rem",color:"#2c7df7",fontWeight:700},children:[e.pct,"%"]})]}),a.jsx("div",{"data-loc":"client/src/pages/SupportPage.tsx:82",style:{height:"4px",background:"rgba(255,255,255,0.08)",borderRadius:"2px",overflow:"hidden"},children:a.jsx("div",{"data-loc":"client/src/pages/SupportPage.tsx:83",style:{height:"100%",width:`${e.pct}%`,background:"linear-gradient(90deg, #2c7df7, #1a6ae0)",borderRadius:"2px",transition:"width 1s ease"}})})]},e.label))})]}),a.jsxs("section",{"data-loc":"client/src/pages/SupportPage.tsx:91",style:{marginBottom:"3.5rem"},children:[a.jsxs("h2",{"data-loc":"client/src/pages/SupportPage.tsx:92",style:{fontSize:"1.5rem",fontWeight:900,color:"#fff",margin:"0 0 1.5rem",display:"flex",alignItems:"center",gap:"0.75rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/SupportPage.tsx:93",style:{width:"4px",height:"28px",background:"#2c7df7",borderRadius:"2px",flexShrink:0}}),"How to Donate"]}),a.jsxs("div",{"data-loc":"client/src/pages/SupportPage.tsx:96",style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/SupportPage.tsx:97",style:{background:"rgba(44,125,247,0.08)",border:"1px solid rgba(44,125,247,0.2)",borderRadius:"10px",padding:"1.5rem"},children:[a.jsx("h3",{"data-loc":"client/src/pages/SupportPage.tsx:98",style:{fontSize:"0.9rem",fontWeight:800,color:"#2c7df7",margin:"0 0 0.75rem",textTransform:"uppercase",letterSpacing:"0.06em"},children:"Via Wallet"}),a.jsxs("p",{"data-loc":"client/src/pages/SupportPage.tsx:99",style:{fontSize:"0.82rem",color:"rgba(255,255,255,0.6)",lineHeight:1.6,margin:"0 0 1rem"},children:["Click the ",a.jsx("strong",{"data-loc":"client/src/pages/SupportPage.tsx:100",style:{color:"#fff"},children:"Donate XTZ"})," button at the top of any page. Connect your Temple, Kukai, or AirGap wallet and send any amount."]}),a.jsx(Zg,{"data-loc":"client/src/pages/SupportPage.tsx:102",variant:"article"})]}),a.jsxs("div",{"data-loc":"client/src/pages/SupportPage.tsx:104",style:{background:"rgba(255,255,255,0.03)",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"10px",padding:"1.5rem"},children:[a.jsx("h3",{"data-loc":"client/src/pages/SupportPage.tsx:105",style:{fontSize:"0.9rem",fontWeight:800,color:"rgba(255,255,255,0.7)",margin:"0 0 0.75rem",textTransform:"uppercase",letterSpacing:"0.06em"},children:"Manual Transfer"}),a.jsx("p",{"data-loc":"client/src/pages/SupportPage.tsx:106",style:{fontSize:"0.82rem",color:"rgba(255,255,255,0.6)",lineHeight:1.6,margin:"0 0 0.75rem"},children:"Send XTZ directly to our wallet address:"}),a.jsx("div",{"data-loc":"client/src/pages/SupportPage.tsx:109",style:{background:"rgba(255,255,255,0.04)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"6px",padding:"0.625rem 0.875rem"},children:a.jsx("code",{"data-loc":"client/src/pages/SupportPage.tsx:110",style:{fontSize:"0.68rem",color:"#2c7df7",fontFamily:"monospace",wordBreak:"break-all"},children:LE})}),a.jsx("a",{"data-loc":"client/src/pages/SupportPage.tsx:114",href:`https://tzkt.io/${LE}`,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",marginTop:"0.75rem",fontSize:"0.72rem",color:"rgba(255,255,255,0.4)",textDecoration:"none",fontWeight:600},children:"View on TzKT â"})]})]})]}),a.jsx("div",{"data-loc":"client/src/pages/SupportPage.tsx:127",style:{textAlign:"center",padding:"2rem",background:"rgba(44,125,247,0.06)",border:"1px solid rgba(44,125,247,0.15)",borderRadius:"12px"},children:a.jsx("p",{"data-loc":"client/src/pages/SupportPage.tsx:128",style:{fontSize:"1.1rem",color:"rgba(255,255,255,0.75)",lineHeight:1.7,margin:0},children:"Every donation â big or small â helps us keep the lights on and the Tezos community informed. Thank y
874ou for being part of XTZ.News. â¤ï¸"})})]})]})}const oie="11 June 2026";function aa({title:e,children:t}){return a.jsxs("section",{"data-loc":"client/src/pages/DisclaimerPage.tsx:8",style:{marginBottom:"2.5rem"},children:[a.jsxs("h2",{"data-loc":"client/src/pages/DisclaimerPage.tsx:9",style:{fontSize:"1.1rem",fontWeight:800,color:"#fff",margin:"0 0 1rem",display:"flex",alignItems:"center",gap:"0.75rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/DisclaimerPage.tsx:10",style:{width:"3px",height:"20px",background:"#2c7df7",borderRadius:"2px",flexShrink:0}}),e]}),a.jsx("div",{"data-loc":"client/src/pages/DisclaimerPage.tsx:13",style:{fontSize:"0.9rem",color:"rgba(255,255,255,0.65)",lineHeight:1.8},children:t})]})}function lie(){return Ie({title:"Disclaimer | XTZ.News",description:"Full legal disclaimer for XTZ.News. Not financial advice. All content is for informational purposes only. Always do your own research.",canonical:"https://xtz.news/disclaimer"}),a.jsxs("div",{"data-loc":"client/src/pages/DisclaimerPage.tsx:28",style:{background:"#000",minHeight:"100vh"},children:[a.jsx("div",{"data-loc":"client/src/pages/DisclaimerPage.tsx:30",style:{background:"linear-gradient(135deg, #05152e 0%, #030e1f 100%)",borderBottom:"1px solid rgba(255,255,255,0.06)",padding:"4rem 0 3rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/DisclaimerPage.tsx:31",className:"container",style:{maxWidth:"820px"},children:[a.jsxs("div",{"data-loc":"client/src/pages/DisclaimerPage.tsx:32",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginBottom:"1rem"},children:[a.jsx($,{"data-loc":"client/src/pages/DisclaimerPage.tsx:33",href:"/",style:{fontSize:"0.78rem",color:"rgba(255,255,255,0.4)",textDecoration:"none"},children:"Home"}),a.jsx("span",{"data-loc":"client/src/pages/DisclaimerPage.tsx:34",style:{color:"rgba(255,255,255,0.2)",fontSize:"0.78rem"},children:"âº"}),a.jsx("span",{"data-loc":"client/src/pages/DisclaimerPage.tsx:35",style:{fontSize:"0.78rem",color:"rgba(255,255,255,0.7)"},children:"Disclaimer"})]}),a.jsx("h1",{"data-loc":"client/src/pages/DisclaimerPage.tsx:37",style:{fontSize:"clamp(1.8rem, 4vw, 2.75rem)",fontWeight:900,color:"#fff",margin:"0 0 0.75rem"},children:"Disclaimer"}),a.jsxs("p",{"data-loc":"client/src/pages/DisclaimerPage.tsx:38",style:{fontSize:"0.85rem",color:"rgba(255,255,255,0.4)",margin:0},children:["Last updated: ",oie]})]})}),a.jsxs("div",{"data-loc":"client/src/pages/DisclaimerPage.tsx:42",className:"container",style:{maxWidth:"820px",padding:"3.5rem 1.25rem 5rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/DisclaimerPage.tsx:45",style:{background:"rgba(248,113,113,0.07)",border:"1px solid rgba(248,113,113,0.25)",borderRadius:"10px",padding:"1.25rem 1.5rem",marginBottom:"2.5rem"},children:a.jsxs("p",{"data-loc":"client/src/pages/DisclaimerPage.tsx:46",style:{fontSize:"0.9rem",color:"rgba(255,255,255,0.85)",lineHeight:1.7,margin:0,fontWeight:600},children:[a.jsx("strong",{"data-loc":"client/src/pages/DisclaimerPage.tsx:47",style:{color:"#f87171"},children:"Important:"})," Nothing on XTZ.News constitutes financial, investment, legal, or tax advice. All content is published for informational and educational purposes only. Cryptocurrency and digital asset investments carry significant risk. Always conduct your own independent research and consult qualified professionals before making any financial decisions."]})}),a.jsxs(aa,{"data-loc":"client/src/pages/DisclaimerPage.tsx:51",title:"1. Not Financial Advice",children:[a.jsx("p",{"data-loc":"client/src/pages/DisclaimerPage.tsx:52",children:'The content published on XTZ.News, including but not limited to articles, news reports, analysis, opinion pieces, price commentary, project reviews, and any other material (collectively, "Content"), is provided solely for general informational and educational purposes.'}),a.jsx("p",{"data-loc":"client/src/pages/DisclaimerPage.tsx:53",style:{marginTop:"0.75rem"},children:"Nothing on this website constitutes, or should be construed as, financial advice, investment advice, trading advice, legal advice, tax advice, or any other form of professional advice. XTZ.News is a news and information platform, not a financial services provider, investment adviser, broker, or dealer."}),a.jsx("p",{"data-loc":"client/src/pages/DisclaimerPage.tsx:54",style:{marginTop:"0.75rem"},children:"You should not make any financial or investment decision based solely on information obtained from this website. Before making any investment or financial decision, you should seek independent advice from qualified and licensed financial, legal, and tax professionals."})]}),a.jsxs(aa,{"data-loc":"client/src/pages/DisclaimerPage.tsx:57",title:"2. Do Your Own Research (DYOR)",children:[a.jsx("p",{"data-loc":"client/src/pages/DisclaimerPage.tsx:58",children:"Cryptocurrency, blockchain technology, and digital assets are highly speculative, volatile, and complex. The Tezos ecosystem and all projects, tokens, protocols, and applications discu
874ssed on XTZ.News carry substantial risk, including the risk of total loss of any capital invested."}),a.jsx("p",{"data-loc":"client/src/pages/DisclaimerPage.tsx:59",style:{marginTop:"0.75rem"},children:"You are solely responsible for evaluating the merits and risks associated with any investment or financial decision. XTZ.News strongly encourages all readers to:"}),a.jsxs("ul",{"data-loc":"client/src/pages/DisclaimerPage.tsx:60",style:{marginTop:"0.75rem",paddingLeft:"1.5rem"},children:[a.jsx("li",{"data-loc":"client/src/pages/DisclaimerPage.tsx:61",style:{marginBottom:"0.4rem"},children:"Conduct thorough independent research before making any financial decisions"}),a.jsx("li",{"data-loc":"client/src/pages/DisclaimerPage.tsx:62",style:{marginBottom:"0.4rem"},children:"Verify all information from multiple independent sources"}),a.jsx("li",{"data-loc":"client/src/pages/DisclaimerPage.tsx:63",style:{marginBottom:"0.4rem"},children:"Consult qualified financial, legal, and tax advisers"}),a.jsx("li",{"data-loc":"client/src/pages/DisclaimerPage.tsx:64",style:{marginBottom:"0.4rem"},children:"Only invest what you can afford to lose entirely"}),a.jsx("li",{"data-loc":"client/src/pages/DisclaimerPage.tsx:65",style:{marginBottom:"0.4rem"},children:"Understand the regulatory environment in your jurisdiction"})]})]}),a.jsxs(aa,{"data-loc":"client/src/pages/DisclaimerPage.tsx:69",title:"3. No Endorsements or Recommendations",children:[a.jsx("p",{"data-loc":"client/src/pages/DisclaimerPage.tsx:70",children:"The mention, coverage, or discussion of any project, token, protocol, application, company, product, service, individual, or organisation on XTZ.News does not constitute an endorsement, recommendation, sponsorship, or approval by XTZ.News or its operators."}),a.jsx("p",{"data-loc":"client/src/pages/DisclaimerPage.tsx:71",style:{marginTop:"0.75rem"},children:"Coverage of a project on XTZ.News does not imply that XTZ.News has verified the legitimacy, accuracy, safety, or suitability of that project. News coverage is provided for informational purposes only and should not be interpreted as a positive or negative assessment of any project's value, prospects, or legitimacy."}),a.jsx("p",{"data-loc":"client/src/pages/DisclaimerPage.tsx:72",style:{marginTop:"0.75rem"},children:"XTZ.News may receive compensation from third parties in the form of advertising, sponsored content, or other arrangements. Where such arrangements exist, they will be clearly disclosed. Sponsored content does not constitute an endorsement of the sponsor's products or services."})]}),a.jsxs(aa,{"data-loc":"client/src/pages/DisclaimerPage.tsx:75",title:"4. Accuracy and Completeness of Information",children:[a.jsx("p",{"data-loc":"client/src/pages/DisclaimerPage.tsx:76",children:"While XTZ.News makes reasonable efforts to ensure the accuracy and timeliness of the Content published on this website, we make no representations or warranties of any kind, express or implied, about the completeness, accuracy, reliability, suitability, or availability of the Content."}),a.jsx("p",{"data-loc":"client/src/pages/DisclaimerPage.tsx:77",style:{marginTop:"0.75rem"},children:"The cryptocurrency and blockchain space moves rapidly. Information that is accurate at the time of publication may become outdated, incorrect, or misleading shortly thereafter. XTZ.News does not undertake any obligation to update or correct published content."}),a.jsx("p",{"data-loc":"client/src/pages/DisclaimerPage.tsx:78",style:{marginTop:"0.75rem"},children:"Prices, statistics, data, and other figures mentioned in articles are sourced from third-party providers and may not be accurate or up to date. You should independently verify all such information before relying on it."})]}),a.jsxs(aa,{"data-loc":"client/src/pages/DisclaimerPage.tsx:81",title:"5. Third-Party Links and Content",children:[a.jsx("p",{"data-loc":"client/src/pages/DisclaimerPage.tsx:82",children:"XTZ.News may contain links to third-party websites, platforms, applications, and resources. These links are provided for convenience and informational purposes only. XTZ.News has no control over the content, privacy practices, or policies of third-party websites and accepts no responsibility or liability for them."}),a.jsx("p",{"data-loc":"client/src/pages/DisclaimerPage.tsx:83",style:{marginTop:"0.75rem"},children:"The inclusion of any link does not imply endorsement, approval, or recommendation by XTZ.News of the linked website or its operator. You access third-party websites entirely at your own risk."}),a.jsx("p",{"data-loc":"client/src/pages/DisclaimerPage.tsx:84",style:{marginTop:"0.75rem"},children:"XTZ.News may embed or reference content from third-party platforms including but not limited to X (Twitter), YouTube, and other social media platforms. Such embedded content is subject to the terms and policies of the respective platforms."})]}),a.jsxs(aa,{"data-loc":"client/src/pages/DisclaimerPage.tsx:87",title:"6. No Liability",children:[a.jsx("p",{"data-loc":"client/src/pages/DisclaimerPage.tsx:88",children:"To the fullest extent permitted by applicable law, XTZ.News, its operators, contributors, authors, editors, and affiliates shall not be liable for any direct, indirect, incidental, special, consequential, or punitive damages arising from:"}),a.jsxs("ul",{"data-loc":"client/src/pages/DisclaimerPage.tsx:89",style:{marginTop:"0.75rem",paddingLeft:"1.5rem"},children:[a.jsx("li",{"data-loc":"client/src/pages/DisclaimerPage.tsx:90",style:{marginBottom:"0.4rem"},children:"Your use of, or inability to use, this website or its Content"}),a.jsx("li",{"data-loc":"client/src/pages/DisclaimerPage.tsx:91",style:{marginBottom:"0.4rem"},children:"Any reliance placed on information published on this website"}),a.jsx("li",{"data-loc":"client/src/pages/DisclaimerPage.tsx:92",style:{marginBottom:"0.4rem"},children:"Any financial losses, including loss of profits or capital, arising from decisions made based on Content on this website"}),a.jsx("li",{"data-loc":"client/src/pages/DisclaimerPage.tsx:93",style:{marginBottom:"0.4rem"},children:"Any errors, omissions, or inaccuracies in the Content"}),a.jsx("li",{"data-loc":"client/src/pages/DisclaimerPage.tsx:94",style:{marginBottom:"0.4rem"},children:"Unauthorised access to or alteration of your data or transmissions"}),a.jsx("li",{"data-loc":"client/src/pages/DisclaimerPage.tsx:95",style:{marginBottom:"0.4rem"},children:"Any other matter relating to this website"})]}),a.jsx("p",{"data-loc":"client/src/pages/DisclaimerPage.tsx:97",style:{marginTop:"0.75rem"},children:"This limitation of liability applies regardless of whether the claim is based on contract, tort, negligence, strict liability, or any other legal theory, even if XTZ.News has been advised of the possibility of such damages."})]}),a.jsxs(aa,{"data-loc":"client/src/pages/DisclaimerPage.tsx:100",title:"7. Investment Risk Warning",children:[a.jsx("p",{"data-loc":"client/src/pages/DisclaimerPage.tsx:101",children:"Cryptocurrency and digital asset investments are highly speculative and involve a significant degree of risk. The value of cryptocurrencies can fluctuate dramatically and may result in the total loss of your investment. Past performance is not indicative of future results."}),a.jsx("p",{"data-loc":"client/src/pages/DisclaimerPage.tsx:102",style:{marginTop:"0.75rem"},children:"Specific risks associated with cryptocurrency investments include, but are not limited to:"}),a.jsxs("ul",{"data-loc":"client/src/pages/DisclaimerPage.tsx:103",style:{marginTop:"0.75rem",paddingLeft:"1.5rem"},children:[a.jsx("li",{"data-loc":"client/src/pages/DisclaimerPage.tsx:104",style:{marginBottom:"0.4rem"}
874,children:"Extreme price volatility and market manipulation"}),a.jsx("li",{"data-loc":"client/src/pages/DisclaimerPage.tsx:105",style:{marginBottom:"0.4rem"},children:"Regulatory uncertainty and potential prohibition in certain jurisdictions"}),a.jsx("li",{"data-loc":"client/src/pages/DisclaimerPage.tsx:106",style:{marginBottom:"0.4rem"},children:"Smart contract vulnerabilities and protocol exploits"}),a.jsx("li",{"data-loc":"client/src/pages/DisclaimerPage.tsx:107",style:{marginBottom:"0.4rem"},children:"Exchange hacks, wallet compromises, and loss of private keys"}),a.jsx("li",{"data-loc":"client/src/pages/DisclaimerPage.tsx:108",style:{marginBottom:"0.4rem"},children:"Liquidity risk and inability to sell assets"}),a.jsx("li",{"data-loc":"client/src/pages/DisclaimerPage.tsx:109",style:{marginBottom:"0.4rem"},children:"Project failure, abandonment, or fraud"}),a.jsx("li",{"data-loc":"client/src/pages/DisclaimerPage.tsx:110",style:{marginBottom:"0.4rem"},children:"Tax implications that vary by jurisdiction"})]})]}),a.jsxs(aa,{"data-loc":"client/src/pages/DisclaimerPage.tsx:114",title:"8. AI-Generated and Translated Content",children:[a.jsx("p",{"data-loc":"client/src/pages/DisclaimerPage.tsx:115",children:'XTZ.News uses artificial intelligence tools to assist with content creation, including article translation into multiple languages and audio narration. AI-generated and AI-translated content may contain errors, inaccuracies, or mistranslations. Such content is provided on an "as is" basis and should not be relied upon as authoritative.'}),a.jsx("p",{"data-loc":"client/src/pages/DisclaimerPage.tsx:116",style:{marginTop:"0.75rem"},children:"Translated articles are provided for accessibility purposes only. In the event of any inconsistency between the English original and a translated version, the English version shall prevail."})]}),a.jsxs(aa,{"data-loc":"client/src/pages/DisclaimerPage.tsx:119",title:"9. Jurisdiction and Regulatory Compliance",children:[a.jsx("p",{"data-loc":"client/src/pages/DisclaimerPage.tsx:120",children:"The information on XTZ.News is intended for a general audience and may not be appropriate for all users in all jurisdictions. Cryptocurrency regulations vary significantly by country and are subject to change. It is your responsibility to ensure that your use of this website and any related activities comply with the laws and regulations applicable in your jurisdiction."}),a.jsx("p",{"data-loc":"client/src/pages/DisclaimerPage.tsx:121",style:{marginTop:"0.75rem"},children:"Nothing on this website is intended to constitute an offer or solicitation to buy or sell any financial instrument or cryptocurrency in any jurisdiction where such offer or solicitation would be unlawful."})]}),a.jsxs(aa,{"data-loc":"client/src/pages/DisclaimerPage.tsx:124",title:"10. Editorial Independence",children:[a.jsx("p",{"data-loc":"client/src/pages/DisclaimerPage.tsx:125",children:"XTZ.News operates as an independent news platform. Our editorial decisions are made independently of commercial considerations. However, we are a community-funded publication and may accept advertising, sponsorships, or donations. Such commercial relationships do n
874ot influence our editorial content, and any sponsored content is clearly labelled as such."}),a.jsx("p",{"data-loc":"client/src/pages/DisclaimerPage.tsx:126",style:{marginTop:"0.75rem"},children:"Contributors and authors may hold positions in the cryptocurrencies and projects they write about. Where material conflicts of interest exist, they will be disclosed. However, XTZ.News cannot guarantee that all potential conflicts of interest are always identified or disclosed."})]}),a.jsx(aa,{"data-loc":"client/src/pages/DisclaimerPage.tsx:129",title:"11. Changes to This Disclaimer",children:a.jsx("p",{"data-loc":"client/src/pages/DisclaimerPage.tsx:130",children:"XTZ.News reserves the right to modify this Disclaimer at any time without prior notice. Changes will be effective immediately upon posting to this page. Your continued use of this website following the posting of changes constitutes your acceptance of such changes. We encourage you to review this Disclaimer periodically."})}),a.jsx(aa,{"data-loc":"client/src/pages/DisclaimerPage.tsx:133",title:"12. Contact",children:a.jsxs("p",{"data-loc":"client/src/pages/DisclaimerPage.tsx:134",children:["If you have any questions about this Disclaimer, please contact us at ",a.jsx("a",{"data-loc":"client/src/pages/DisclaimerPage.tsx:134",href:"mailto:[email protected]",style:{color:"#2c7df7"},children:"[email protected]"}),"."]})}),a.jsxs("div",{"data-loc":"client/src/pages/DisclaimerPage.tsx:138",style:{borderTop:"1px solid rgba(255,255,255,0.08)",paddingTop:"2rem",display:"flex",flexWrap:"wrap",gap:"1.5rem"},children:[a.jsx($,{"data-loc":"client/src/pages/DisclaimerPage.tsx:139",href:"/privacy-policy",style:{fontSize:"0.82rem",color:"#2c7df7",textDecoration:"none"},children:"Privacy Policy"}),a.jsx($,{"data-loc":"client/src/pages/DisclaimerPage.tsx:140",href:"/terms-and-conditions",style:{fontSize:"0.82rem",color:"#2c7df7",textDecoration:"none"},children:"Terms & Conditions"}),a.jsx($,{"data-loc":"client/src/pages/DisclaimerPage.tsx:141",href:"/contact",style:{fontSize:"0.82rem",color:"#2c7df7",textDecoration:"none"},children:"Contact Us"})]})]})]})}function cie(){const e=As(),r=new URLSearchParams(e).get("q")||"",[n,s]=E.useState(r);Ie({title:n?`Search: "${n}" | XTZ.News`:"Search Tezos News | XTZ.News",description:"Search thousands of Tezos news articles, project updates, DeFi news, NFT coverage, and blockchain developments on XTZ.News.",keywords:"search Tezos news, find Tezos articles, XTZ news search",canonical:"https://xtz.news/search"});const[i,o]=E.useState(r);E.useEffect(()=>{const u=setTimeout(()=>o(n),400);return()=>clearTimeout(u)},[n]);const{data:l=[],isLoading:d}=ee.posts.search.useQuery({q:i,limit:20},{enabled:i.length>=2});return a.jsxs("div",{"data-loc":"client/src/pages/SearchPage.tsx:33",children:[a.jsx("div",{"data-loc":"client/src/pages/SearchPage.tsx:34",className:"py-10 border-b border-white/10",style:{background:"var(--xtz-navy)"},children:a.jsxs("div",{"data-loc":"client/src/pages/SearchPage.tsx:35",className:"container",children:[a.jsx("h1",{"data-loc":"client/src/pages/SearchPage.tsx:36",className:"text-2xl font-black text-white mb-4",children:"Search"}),a.jsxs("div",{"data-loc":"client/src/pages/SearchPage.tsx:37",className:"relative max-w-xl",children:[a.jsx(ft,{"data-loc":"client/src/pages/SearchPage.tsx:38",size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-white/40"}),a.jsx("input",{"data-loc":"client/src/pages/SearchPage.tsx:39",type:"text",value:n,onChange:u=>s(u.target.value),placeholder:"Search articles...",className:"search-input",autoFocus:!0})]})]})}),a.jsx("div",{"data-loc":"client/src/pages/SearchPage.tsx:51",className:"container py-10",children:i.length<2?a.jsx("p",{"data-loc":"client/src/pages/SearchPage.tsx:53",className:"text-white/40 text-center py-12",children:"Enter at least 2 characters to search."}):d?a.jsx("div",{"data-loc":"client/src/pages/SearchPage.tsx:55",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:Array.from({length:8}).map((u,g)=>a.jsx("div",{"data-loc":"client/src/pages/SearchPage.tsx:56",className:"skeleton h-64 roun
874ded"},g))}):l.length>0?a.jsxs(a.Fragment,{children:[a.jsxs("p",{"data-loc":"client/src/pages/SearchPage.tsx:60",className:"text-sm text-white/40 mb-5",children:[l.length," results for â",i,"â"]}),a.jsx("div",{"data-loc":"client/src/pages/SearchPage.tsx:61",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:l.map(u=>a.jsx(ms,{"data-loc":"client/src/pages/SearchPage.tsx:62",post:u},u.id))})]}):a.jsxs("p",{"data-loc":"client/src/pages/SearchPage.tsx:66",className:"text-white/40 text-center py-12",children:["No results found for â",i,"â"]})})]})}function die(){const{user:e,loading:t}=Wr(),{data:r}=ee.posts.count.useQuery(),{data:n=[]}=ee.categories.all.useQuery(),{data:s=[]}=ee.submissions.list.useQuery(void 0,{enabled:e?.role==="admin"}),{data:i=[]}=ee.artProjectSubmissions.list.useQuery(void 0,{enabled:e?.role==="admin"}),{data:o=[]}=ee.tezosEventCandidates.list.useQuery(void 0,{enabled:e?.role==="admin"}),{data:l=[]}=ee.correctionReports.list.useQuery(void 0,{enabled:e?.role==="admin"}),{data:d=[]}=ee.advertiserEnquiries.list.useQuery(void 0,{enabled:e?.role==="admin"});if(t)return a.jsx("div",{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:18",className:"container py-16 text-center",children:a.jsx("div",{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:18",className:"skeleton h-8 w-48 mx-auto"})});if(!e)return a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:23",className:"container py-16 text-center",children:[a.jsx("h1",{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:24",className:"text-2xl font-bold text-white mb-4",children:"Admin Access Required"}),a.jsx("p",{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:25",className:"text-white/50 mb-6",children:"Please log in to access the admin dashboard."}),a.jsx("a",{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:26",href:gA(),className:"btn-primary",children:"Log In"})]});if(e.role!=="admin")return a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:33",className:"container py-16 text-center",children:[a.jsx("h1",{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:34",className:"text-2xl font-bold text-white mb-4",children:"Access Denied"}),a.jsx("p",{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:35",className:"text-white/50 mb-6",children:"You don't have permission to access this area."}),a.jsx($,{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:36",href:"/",className:"btn-primary",children:"Back to Home"})]});const u=s.filter(v=>v.status==="pending").length,g=i.filter(v=>v.status==="pending").length,f=o.filter(v=>v.status==="pending").length,m=l.filter(v=>v.status==="pending").length,y=d.filter(v=>v.status==="pending").length,S=[{label:"Total Posts",value:r??"â",icon:a.jsx(s0,{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:48",size:20}),href:"/admin/posts"},{label:"Categories",value:n.length,icon:a.jsx(tc,{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:49",size:20}),href:"/admin/categories"},{label:"Submissions",value:s.length,icon:a.jsx(oE,{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:50",size:20}),href:"/admin/submissions",badge:u},{label:"Art Submissions",value:i.length,icon:a.jsx(Do,{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:51",size:20}),href:"/admin/art-project-submissions",badge:g},{label:"Event Candidates",value:o.length,icon:a.jsx(Fa,{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:52",size:20}),href:"/admin/tezos-event-candidates",badge:f},{label:"Projects",value:"â",icon:a.jsx(sE,{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:53",size:20}),href:"/admin/projects"}],b=[{label:"Manage Posts",href:"/admin/posts",icon:a.jsx(s0,{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:57",size:16})},{label:"Manage Categories",href:"/admin/categories",icon:a.jsx(tc,{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:58",size:16})},{label:"Manage Projects",href:"/admin/projects",icon:a.jsx(sE,{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:59",size:16})},{label:"Article Submissions",href:"/admin/submissions",icon:a.jsx(oE,{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:60",size:16}),badge:u},{label:"Art Project Submissions",href:"/admin/art-project-submissions",icon:a.jsx(Do,{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:61",size:16}),badge:g},{label:"Tezos Event Candidates",href:"/admin/tezos-event-candidates",icon:a.jsx(Fa,{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:62",size:16}),badge:f},{label:"Correction Reports",href:"/admin/correction-reports",icon:a.jsx(Hre,{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:63",size:16}),badge:m},{label:"Advertising Enquiries",href:"/admin/advertiser-enquiries",icon:a.jsx(nu,{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:64",size:16}),badge:y},{label:"Newsletter Subscribers",href:"/admin/subscribers",icon:a.jsx($x,{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:65",size:16})},{label:"Site Settings",href:"/admin/settings",icon:a.jsx(sne,{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:66",size:16})},{label:"First-Party Promotion",href:"/admin/first-party-promotion",icon:a.jsx(nu,{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:67",size:16})}];return a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:71",children:[a.jsx("div",{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:72",className:"py-10 border-b border-white/10",style:{background:"var(--xtz-navy)"},children:a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:73",className:"container flex items-center justify-between",children:[a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:74",children:[a.jsx("p",{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:75",className:"text-xs font-bold uppercase tracking-widest text-blue-400 mb-1",children:"Admin"}),a.jsx("h1",{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:76",className:"text-2xl font-black text-white",children:"Dashboard"}),a.jsxs("p",{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:77",className:"text-sm text-white/40 mt-1",children:["Welcome back, ",e.name]})]}),a.jsx($,{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:79",href:"/",className:"btn-read-more text-xs",children:"â View Site"})]})}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:83",className:"container py-8",children:[a.jsx("div",{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:85",className:"grid grid-cols-2 lg:grid-cols-3 xl:grid-cols-6 gap-4 mb-8",children:S.map(v=>a.jsxs($,{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:87",href:v.href,className:"p-5 rounded hover:bg-white/5 transition-colors relative group",style:{background:"var(--card-bg)",border:"1px solid var(--xtz-border)"},children:[a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:93",className:"flex items-start justify-between mb-3",children:[a.jsx("div",{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:94",className:"text-blue-400",children:v.icon}),v.badge?a.jsxs("span",{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:96",className:"text-xs font-bold px-1.5 py-0.5 rounded-full text-white",style:{background:"var(--xtz-blue)"},children:[v.badge," new"]}):null]}),a.jsx("p",{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:101",className:"text-2xl font-black text-white",children:v.value}),a.jsx("p",{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:102",className:"text-xs text-white/40 mt-1 uppercase tracking-widest",children:v.label}),a.jsx(Le,{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:103",size:14,className:"absolute right-4 top-1/2 -translate-y-1/2 text-white/20 group-hover:text-blue-400 transition-colors"})]},v.label))}),a.jsx("h2",{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:109",className:"section-title mb-4",children:"Qu
874ick Actions"}),a.jsx("div",{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:110",className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:b.map(v=>a.jsxs($,{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:112",href:v.href,className:"flex items-center justify-between p-4 rounded hover:bg-white/5 transition-colors",style:{background:"var(--card-bg)",border:"1px solid var(--xtz-border)"},children:[a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:118",className:"flex items-center gap-3",children:[a.jsx("span",{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:119",className:"text-blue-400",children:v.icon}),a.jsx("span",{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:120",className:"font-semibold text-white text-sm",children:v.label}),v.badge?a.jsx("span",{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:122",className:"text-xs font-bold px-1.5 py-0.5 rounded-full text-white",style:{background:"var(--xtz-blue)"},children:v.badge}):null]}),a.jsx(Le,{"data-loc":"client/src/pages/admin/AdminDashboard.tsx:127",size:14,className:"text-white/30"})]},v.label))})]})]})}function uie(e){return e?new Date(e).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}):""}function pie(){const{user:e}=Wr(),[t,r]=E.useState(1),n=20,s=ee.useUtils(),{data:i=[],isLoading:o}=ee.posts.adminList.useQuery({limit:n,offset:(t-1)*n}),l=ee.posts.adminUpdate.useMutation({onSuccess:()=>{s.posts.adminList.invalidate(),Ee.success("Updated")}}),d=ee.posts.adminDelete.useMutation({onSuccess:()=>{s.posts.adminList.invalidate(),Ee.success("Deleted")},onError:()=>Ee.error("Delete failed")});return!e||e.role!=="admin"?a.jsx("div",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:30",className:"container py-16 text-center",children:a.jsx("p",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:30",className:"text-white/50",children:"Access denied."})}):a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:34",children:[a.jsx("div",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:35",className:"py-8 border-b border-white/10",style:{background:"var(--xtz-navy)"},children:a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:36",className:"container flex items-center justify-between",children:[a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:37",className:"flex items-center gap-3",children:[a.jsx($,{"data-loc":"client/src/pages/admin/AdminPosts.tsx:38",href:"/admin",className:"text-white/40 hover:text-white",children:a.jsx(Pn,{"data-loc":"client/src/pages/admin/AdminPosts.tsx:38",size:18})}),a.jsx("h1",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:39",className:"text-xl font-black text-white",children:"Posts"})]}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:41",className:"flex items-center gap-3",children:[a.jsxs("span",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:42",className:"text-sm text-white/40",children:[i.length," shown"]}),a.jsx($,{"data-loc":"client/src/pages/admin/AdminPosts.tsx:43",href:"/admin/posts/new",className:"btn-primary text-xs py-1.5 px-3",children:"+ New Article"})]})]})}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:48",className:"container py-6",children:[o?a.jsx("div",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:50",className:"space-y-2",children:Array.from({length:10}).map((u,g)=>a.jsx("div",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:50",className:"skeleton h-12 rounded"},g))}):a.jsx("div",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:52",className:"overflow-x-auto",children:a.jsxs("table",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:53",className:"w-full text-sm",children:[a.jsx("thead",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:54",children:a.jsxs("tr",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:55",className:"border-b border-white/10 text-left",children:[a.jsx("th",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:56",className:"pb-3 text-xs font-bold uppercase tracking-widest text-white/40 pr-4",children:"Title"}),a.jsx("th",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:57",className:"pb-3 text-xs font-bold uppercase tracking-widest text-white/40 pr-4",children:"Status"}),a.jsx("th",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:58",className:"pb-3 text-xs font-bold uppercase tracking-widest text-white/40 pr-4",children:"Date"}),a.jsx("th",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:59",className:"pb-3 text-xs font-bold uppercase tracking-widest text-white/40 pr-4",children:"Views"}),a.jsx("th",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:60",className:"pb-3 text-xs font-bold uppercase tracking-widest text-white/40",children:"Actions"})]})}),a.jsx("tbody",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:63",className:"divide-y divide-white/5",children:i.map(u=>a.jsxs("tr",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:65",className:"hover:bg-white/3 transition-colors",children:[a.jsxs("td",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:66",className:"py-3 pr-4",children:[a.jsx("p",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:67",className:"font-semibold text-white/80 line-clamp-1 max-w-xs",children:u.title}),a.jsx("p",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:68",className:"text-xs text-white/30",children:u.slug})]}),a.jsx("td",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:70",className:"py-3 pr-4",children:a.jsx("span",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:71",className:`text-xs font-bold px-2 py-0.5 rounded ${u.status==="publish"?"bg-green-500/15 text-green-400":"bg-yellow-500/15 text-yellow-400"}`,children:u.status})}),a.jsx("td",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:75",className:"py-3 pr-4 text-white/40 text-xs whitespace-nowrap",children:uie(u.publishedAt)}),a.jsx("td",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:76",className:"py-3 pr-4 text-white/40 text-xs",children:u.viewCount}),a.jsx("td",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:77",className:"py-3",children:a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:78",className:"flex items-center gap-1.5",children:[a.jsx("a",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:79",href:`/${u.slug}`,target:"_blank",rel:"noopener noreferrer",className:"p-1.5 rounded hover:bg-white/10 text-white/40 hover:text-white transition-colors",title:"View",children:a.jsx($u,{"data-loc":"client/src/pages/admin/AdminPosts.tsx:79",size:13})}),a.jsx("button",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:80",onClick:()=>l.mutate({id:u.id,isFeatured:!u.isFeatured}),className:"p-1.5 rounded hover:bg-white/10 transition-colors",title:u.isFeatured?"Unfeature":"Feature",children:u.isFeatured?a.jsx(o0,{"data-loc":"client/src/pages/admin/AdminPosts.tsx:85",size:13,className:"text-yellow-400"}):a.jsx(lne,{"data-loc":"client/src/pages/admin/AdminPosts.tsx:85",size:13,className:"text-white/30"})}),a.jsx($,{"data-loc":"client/src/pages/admin/AdminPosts.tsx:87",href:`/admin/posts/${u.id}`,className:"p-1.5 rounded hover:bg-white/10 text-white/40 hover:text-blue-400 transition-colors",title:"Edit",children:a.jsx(Zre,{"data-loc":"client/src/pages/admin/AdminPosts.tsx:87",size:13})}),a.jsx("button",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:88",onClick:()=>{confirm("Delete this post?")&&d.mutate({id:u.id})},className:"p-1.5 rounded hover:bg-red-500/10 text-white/30 hover:text-red-400 transition-colors",title:"Delete",children:a.jsx(pA,{"data-loc":"client/src/pages/admin/AdminPosts.tsx:93",size:13})})]})})]},u.id))})]})}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:103",className:"flex gap-2 mt-6",children:[a.jsx("button",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:104",onClick:()=>r(Math.max(1,t-1)),disabled:t===1,className:"page-btn disabled:opacity-30",children:"â¹ Prev"}),a.jsx("button",{"data-loc":"client/src/pages/admin/AdminPosts.tsx:105",onClick:()=>r(t+1),disabled:i.length<n,className:"page-btn disabled:opacity-30",children:"Next âº"})]})]})]})}function gie(){const{id:e}=Ua(),{user:t}=Wr(),r=ee.useUtils(),{data:n=[]}=ee.posts.adminList.useQuery({limit:1e3,offset:0}),s=n.find(d=>d.id===Number(e)),[i,o]=E.useState({title:"",slug:"",status:"publish",isFeatured:!1,seoTitle:"",seoDescription:"",featuredImageUrl:"",authorSlug:"lee-evans"});E.useEffect(()=>{s&&o({title:s.title,slug:s.slug,status:s.status,isFeatured:s.isFeatured,seoTitle:s.seoTitle||"",seoDescription:s.seoDescription||"",featuredImageUrl:s.featuredImageUrl||"",authorSlug:s.authorSlug==="rossa-browne"?"rossa-browne":"lee-evans"})},[s]);const l=ee.posts.adminUpdate.useMutation({onSuccess:()=>
874{r.posts.adminList.invalidate(),Ee.success("Post updated!")},onError:()=>Ee.error("Update failed")});return!t||t.role!=="admin"?a.jsx("div",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:48",className:"container py-16 text-center",children:a.jsx("p",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:48",className:"text-white/50",children:"Access denied."})}):s?a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:56",children:[a.jsx("div",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:57",className:"py-8 border-b border-white/10",style:{background:"var(--xtz-navy)"},children:a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:58",className:"container flex items-center gap-3",children:[a.jsx($,{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:59",href:"/admin/posts",className:"text-white/40 hover:text-white",children:a.jsx(Pn,{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:59",size:18})}),a.jsx("h1",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:60",className:"text-xl font-black text-white",children:"Edit Post"})]})}),a.jsx("div",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:63",className:"container py-8 max-w-2xl",children:a.jsxs("form",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:64",onSubmit:d=>{d.preventDefault(),l.mutate({id:s.id,...i})},className:"space-y-5",children:[a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:65",children:[a.jsx("label",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:66",className:"block text-xs font-bold uppercase tracking-widest text-white/50 mb-1.5",children:"Title"}),a.jsx("input",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:67",value:i.title,onChange:d=>o({...i,title:d.target.value}),className:"form-input"})]}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:69",children:[a.jsx("label",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:70",className:"block text-xs font-bold uppercase tracking-widest text-white/50 mb-1.5",children:"Slug"}),a.jsx("input",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:71",value:i.slug,onChange:d=>o({...i,slug:d.target.value}),className:"form-input"})]}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:73",className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:74",children:[a.jsx("label",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:75",className:"block text-xs font-bold uppercase tracking-widest text-white/50 mb-1.5",children:"Status"}),a.jsxs("select",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:76",value:i.status,onChange:d=>o({...i,status:d.target.value}),className:"form-input",children:[a.jsx("option",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:77",value:"publish",children:"Published"}),a.jsx("option",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:78",value:"draft",children:"Draft"}),a.jsx("option",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:79",value:"private",children:"Private"})]})]}),a.jsx("div",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:82",className:"flex items-end pb-1",children:a.jsxs("label",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:83",className:"flex items-center gap-2 cursor-pointer",children:[a.jsx("input",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:84",type:"checkbox",checked:i.isFeatured,onChange:d=>o({...i,isFeatured:d.target.checked}),className:"w-4 h-4 accent-blue-500"}),a.jsx("span",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:85",className:"text-sm font-semibold text-white/70",children:"Featured post"})]})})]}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:89",children:[a.jsx("label",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:90",className:"block text-xs font-bold uppercase tracking-widest text-white/50 mb-1.5",children:"Featured Image URL"}),a.jsx("input",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:91",value:i.featuredImageUrl,onChange:d=>o({...i,featuredImageUrl:d.target.value}),className:"form-input",placeholder:"https://..."})]}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:93",children:[a.jsx("label",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:94",className:"block text-xs font-bold uppercase tracking-widest text-white/50 mb-1.5",children:"SEO Title"}),a.jsx("input",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:95",value:i.seoTitle,onChange:d=>o({...i,seoTitle:d.target.value}),className:"form-input"})]}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:97",children:[a.jsx("label",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:98",className:"block text-xs font-bold uppercase tracking-widest text-white/50 mb-1.5",children:"SEO Description"}),a.jsx("textarea",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:99",rows:3,value:i.seoDescription,onChange:d=>o({...i,seoDescription:d.target.value}),className:"form-input resize-none"})]}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:101",children:[a.jsx("label",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:102",className:"block text-xs font-bold uppercase tracking-widest text-white/50 mb-1.5",children:"Editorial Byline"}),a.jsxs("select",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:103",value:i.authorSlug,onChange:d=>o({...i,authorSlug:d.target.value}),className:"form-input",children:[a.jsx("option",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:104",value:"lee-evans",children:"Lee Evans"}),a.jsx("option",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:105",value:"rossa-browne",children:"Rossa Browne"})]}),a.jsx("p",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:107",className:"text-xs text-white/40 mt-1.5",children:"Choose the named XTZ.News writer responsible for this article. This updates the public byline and author archive only."})]}),a.jsxs("button",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:109",type:"submit",disabled:l.isPending,className:"btn-primary",children:[a.jsx(nh,{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:110",size:14})," ",l.isPending?"Saving...":"Save Changes"]})]})})]}):a.jsx("div",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:52",className:"container py-16 text-center",children:a.jsx("p",{"data-loc":"client/src/pages/admin/AdminPostEdit.tsx:52",className:"text-white/50",children:"Post not found."})})}function Dr(e){this.content=e}Dr.prototype={constructor:Dr,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,r){var n=r&&r!=e?this.remove(r):this,s=n.find(e),i=n.content.slice();return s==-1?i.push(r||e,t):(i[s+1]=t,r&&(i[s]=r)),new Dr(i)},remove:function(e){var t=this.find(e);if(t==-1)return this;var r=this.content.slice();return r.splice(t,2),new Dr(r)},addToStart:function(e,t){return new Dr([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var r=this.remove(e).content.slice();return r.push(e,t),new Dr(r)},addBefore:function(e,t,r){var n=this.remove(t),s=n.content.slice(),i=n.find(e);return s.splice(i==-1?s.length:i,0,t,r),new Dr(s)}
vendor: 5,161 bytes, line 874
874,forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=Dr.from(e),e.size?new Dr(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=Dr.from(e),e.size?new Dr(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=Dr.from(e);for(var r=0;r<e.content.length;r+=2)t=t.remove(e.content[r]);return t},toObject:function(){var e={};return this.forEach(function(t,r){e[t]=r}),e},get size(){return this.content.length>>1}};Dr.from=function(e){if(e instanceof Dr)return e;var t=[];if(e)for(var r in e)t.push(r,e[r]);return new Dr(t)};function p$(e,t,r){for(let n=0;;n++){if(n==e.childCount||n==t.childCount)return e.childCount==t.childCount?null:r;let s=e.child(n),i=t.child(n);if(s==i){r+=s.nodeSize;continue}if(!s.sameMarkup(i))return r;if(s.isText&&s.text!=i.text){for(let o=0;s.text[o]==i.text[o];o++)r++;return r}if(s.content.size||i.content.size){let o=p$(s.content,i.content,r+1);if(o!=null)return o}r+=s.nodeSize}}function g$(e,t,r,n){for(let s=e.childCount,i=t.childCount;;){if(s==0||i==0)return s==i?null:{a:r,b:n};let o=e.child(--s),l=t.child(--i),d=o.nodeSize;if(o==l){r-=d,n-=d;continue}if(!o.sameMarkup(l))return{a:r,b:n};if(o.isText&&o.text!=l.text){let u=0,g=Math.min(o.text.length,l.text.length);for(;u<g&&o.text[o.text.length-u-1]==l.text[l.text.length-u-1];)u++,r--,n--;return{a:r,b:n}}if(o.content.size||l.content.size){let u=g$(o.content,l.content,r-1,n-1);if(u)return u}r-=d,n-=d}}class he{constructor(t,r){if(this.content=t,this.size=r||0,r==null)for(let n=0;n<t.length;n++)this.size+=t[n].nodeSize}nodesBetween(t,r,n,s=0,i){for(let o=0,l=0;l<r;o++){let d=this.content[o],u=l+d.nodeSize;if(u>t&&n(d,s+l,i||null,o)!==!1&&d.content.size){let g=l+1;d.nodesBetween(Math.max(0,t-g),Math.min(d.content.size,r-g),n,s+g)}l=u}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,r,n,s){let i="",o=!0;return this.nodesBetween(t,r,(l,d)=>{let u=l.isText?l.text.slice(Math.max(t,d)-d,r-d):l.isLeaf?s?typeof s=="function"?s(l):s:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&u||l.isTextblock)&&n&&(o?o=!1:i+=n),i+=u},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let r=this.lastChild,n=t.firstChild,s=this.content.slice(),i=0;for(r.isText&&r.sameMarkup(n)&&(s[s.length-1]=r.withText(r.text+n.text),i=1);i<t.content.length;i++)s.push(t.content[i]);return new he(s,this.size+t.size)}cut(t,r=this.size){if(t==0&&r==this.size)return this;let n=[],s=0;if(r>t)for(let i=0,o=0;o<r;i++){let l=this.content[i],d=o+l.nodeSize;d>t&&((o<t||d>r)&&(l.isText?l=l.cut(Math.max(0,t-o),Math.min(l.text.length,r-o)):l=l.cut(Math.max(0,t-o-1),Math.min(l.content.size,r-o-1))),n.push(l),s+=l.nodeSize),o=d}return new he(n,s)}cutByIndex(t,r){return t==r?he.empty:t==0&&r==this.content.length?this:new he(this.content.slice(t,r))}replaceChild(t,r){let n=this.content[t];if(n==r)return this;let s=this.content.slice(),i=this.size+r.nodeSize-n.nodeSize;return s[t]=r,new he(s,i)}addToStart(t){return new he([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new he(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let r=0;r<this.content.length;r++)if(!this.content[r].eq(t.content[r]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(t){let r=this.content[t];if(!r)throw new RangeError("Index "+t+" out of range for "+this);return r}maybeChild(t){return this.content[t]||null}forEach(t){for(let r=0,n=0;r<this.content.length;r++){let s=this.content[r];t(s,n,r),n+=s.nodeSize}}findDiffStart(t,r=0){return p$(this,t,r)}findDiffEnd(t,r=this.size,n=t.size){return g$(this,t,r,n)}findIndex(t){if(t==0)return Xm(0,t);if(t==this.size)return Xm(this.content.length,t);if(t>this.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let r=0,n=0;;r++){let s=this.child(r),i=n+s.nodeSize;if(i>=t)return i==t?Xm(r+1,i):Xm(r,n);n=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,r){if(!r)return he.empty;if(!Array.isArray(r))throw new RangeError("Invalid input for Fragment.fromJSON");return he.fromArray(r.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return he.empty;let r,n=0;for(let s=0;s<t.length;s++){let i=t[s];n+=i.nodeSize,s&&i.isText&&t[s-1].sameMarkup(i)?(r||(r=t.slice(0,s)),r[r.length-1]=i.withText(r[r.length-1].text+i.text)):r&&r.push(i)}return new he(r||t,n)}static from(t){if(!t)return he.empty;if(t instanceof he)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new he([t],t.nodeSize);throw new RangeError("Can not convert "+t+" to a Fragment"+(t.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}he.empty=new he([],0);const fv={index:0,offset:0};function Xm(e,t){return fv.index=e,fv.offset=t,fv}function g0(e,t){if(e===t)return!0;
vendor: 4,186 bytes, line 874
874if(!(e&&typeof e=="object")||!(t&&typeof t=="object"))return!1;let r=Array.isArray(e);if(Array.isArray(t)!=r)return!1;if(r){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!g0(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!g0(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}let kt=class LP{constructor(t,r){this.type=t,this.attrs=r}addToSet(t){let r,n=!1;for(let s=0;s<t.length;s++){let i=t[s];if(this.eq(i))return t;if(this.type.excludes(i.type))r||(r=t.slice(0,s));else{if(i.type.excludes(this.type))return t;!n&&i.type.rank>this.type.rank&&(r||(r=t.slice(0,s)),r.push(this),n=!0),r&&r.push(i)}}return r||(r=t.slice()),n||r.push(this),r}removeFromSet(t){for(let r=0;r<t.length;r++)if(this.eq(t[r]))return t.slice(0,r).concat(t.slice(r+1));return t}isInSet(t){for(let r=0;r<t.length;r++)if(this.eq(t[r]))return!0;return!1}eq(t){return this==t||this.type==t.type&&g0(this.attrs,t.attrs)}toJSON(){let t={type:this.type.name};for(let r in this.attrs){t.attrs=this.attrs;break}return t}static fromJSON(t,r){if(!r)throw new RangeError("Invalid input for Mark.fromJSON");let n=t.marks[r.type];if(!n)throw new RangeError(`There is no mark type ${r.type} in this schema`);let s=n.create(r.attrs);return n.checkAttrs(s.attrs),s}static sameSet(t,r){if(t==r)return!0;if(t.length!=r.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].eq(r[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return LP.none;if(t instanceof LP)return[t];let r=t.slice();return r.sort((n,s)=>n.type.rank-s.type.rank),r}};kt.none=[];class f0 extends Error{}class we{constructor(t,r,n){this.content=t,this.openStart=r,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,r){let n=h$(this.content,t+this.openStart,r,this.openStart+1,this.openEnd+1);return n&&new we(n,this.openStart,this.openEnd)}removeBetween(t,r){return new we(f$(this.content,t+this.openStart,r+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,r){if(!r)return we.empty;let n=r.openStart||0,s=r.openEnd||0;if(typeof n!="number"||typeof s!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new we(he.fromJSON(t,r.content),n,s)}static maxOpen(t,r=!0){let n=0,s=0;for(let i=t.firstChild;i&&!i.isLeaf&&(r||!i.type.spec.isolating);i=i.firstChild)n++;for(let i=t.lastChild;i&&!i.isLeaf&&(r||!i.type.spec.isolating);i=i.lastChild)s++;return new we(t,n,s)}}we.empty=new we(he.empty,0,0);function f$(e,t,r){let{index:n,offset:s}=e.findIndex(t),i=e.maybeChild(n),{index:o,offset:l}=e.findIndex(r);if(s==t||i.isText){if(l!=r&&!e.child(o).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(r))}if(n!=o)throw new RangeError("Removing non-flat range");return e.replaceChild(n,i.copy(f$(i.content,t-s-1,r-s-1)))}function h$(e,t,r,n,s,i){let{index:o,offset:l}=e.findIndex(t),d=e.maybeChild(o);if(l==t||d.isText)return i&&n<=0&&s<=0&&!i.canReplace(o,o,r)?null:e.cut(0,t).append(r).append(e.cut(t));let u=h$(d.content,t-l-1,r,o==0?n-1:0,o==e.childCount-1?s-1:0,d);return u&&e.replaceChild(o,d.copy(u))}function fie(e,t,r){if(r.openStart>e.depth)throw new f0("Inserted content deeper than insertion position");if(e.depth-r.openStart!=t.depth-r.openEnd)throw new f0("Inconsistent open depths");return m$(e,t,r,0)}function m$(e,t,r,n){let s=e.index(n),i=e.node(n);if(s==t.index(n)&&n<e.depth-r.openStart){let o=m$(e,t,r,n+1);return i.copy(i.content.replaceChild(s,o))}else if(r.content.size)if(!r.openStart&&!r.openEnd&&e.depth==n&&t.depth==n){let o=e.parent,l=o.content;return Ul(o,l.cut(0,e.parentOffset).append(r.content).append(l.cut(t.parentOffset)))}else{let{start:o,end:l}=hie(r,e);return Ul(i,y$(e,o,l,t,n))}else return Ul(i,h0(e,t,n))}function x$(e,t){if(!t.type.compatibleContent(e.type))throw new f0("Cannot join "+t.type.name+" onto "+e.type.n
vendor: 10,026 bytes, line 874
874ame)}function WP(e,t,r){let n=e.node(r);return x$(n,t.node(r)),n}function ql(e,t){let r=t.length-1;r>=0&&e.isText&&e.sameMarkup(t[r])?t[r]=e.withText(t[r].text+e.text):t.push(e)}function kg(e,t,r,n){let s=(t||e).node(r),i=0,o=t?t.index(r):s.childCount;e&&(i=e.index(r),e.depth>r?i++:e.textOffset&&(ql(e.nodeAfter,n),i++));for(let l=i;l<o;l++)ql(s.child(l),n);t&&t.depth==r&&t.textOffset&&ql(t.nodeBefore,n)}function Ul(e,t){return e.type.checkContent(t),e.copy(t)}function y$(e,t,r,n,s){let i=e.depth>s&&WP(e,t,s+1),o=n.depth>s&&WP(r,n,s+1),l=[];return kg(null,e,s,l),i&&o&&t.index(s)==r.index(s)?(x$(i,o),ql(Ul(i,y$(e,t,r,n,s+1)),l)):(i&&ql(Ul(i,h0(e,t,s+1)),l),kg(t,r,s,l),o&&ql(Ul(o,h0(r,n,s+1)),l)),kg(n,null,s,l),new he(l)}function h0(e,t,r){let n=[];if(kg(null,e,r,n),e.depth>r){let s=WP(e,t,r+1);ql(Ul(s,h0(e,t,r+1)),n)}return kg(t,null,r,n),new he(n)}function hie(e,t){let r=t.depth-e.openStart,s=t.node(r).copy(e.content);for(let i=r-1;i>=0;i--)s=t.node(i).copy(he.from(s));return{start:s.resolveNoCache(e.openStart+r),end:s.resolveNoCache(s.content.size-e.openEnd-r)}}class ef{constructor(t,r,n){this.pos=t,this.path=r,this.parentOffset=n,this.depth=r.length/3-1}resolveDepth(t){return t==null?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[this.resolveDepth(t)*3]}index(t){return this.path[this.resolveDepth(t)*3+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)}start(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]}after(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,r=this.index(this.depth);if(r==t.childCount)return null;let n=this.pos-this.path[this.path.length-1],s=t.child(r);return n?t.child(r).cut(n):s}get nodeBefore(){let t=this.index(this.depth),r=this.pos-this.path[this.path.length-1];return r?this.parent.child(t).cut(0,r):t==0?null:this.parent.child(t-1)}posAtIndex(t,r){r=this.resolveDepth(r);let n=this.path[r*3],s=r==0?0:this.path[r*3-1]+1;for(let i=0;i<t;i++)s+=n.child(i).nodeSize;return s}marks(){let t=this.parent,r=this.index();if(t.content.size==0)return kt.none;if(this.textOffset)return t.child(r).marks;let n=t.maybeChild(r-1),s=t.maybeChild(r);if(!n){let l=n;n=s,s=l}let i=n.marks;for(var o=0;o<i.length;o++)i[o].type.spec.inclusive===!1&&(!s||!i[o].isInSet(s.marks))&&(i=i[o--].removeFromSet(i));return i}marksAcross(t){let r=this.parent.maybeChild(this.index());if(!r||!r.isInline)return null;let n=r.marks,s=t.parent.maybeChild(t.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!s||!n[i].isInSet(s.marks))&&(n=n[i--].removeFromSet(n));return n}sharedDepth(t){for(let r=this.depth;r>0;r--)if(this.start(r)<=t&&this.end(r)>=t)return r;return 0}blockRange(t=this,r){if(t.pos<this.pos)return t.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==t.pos?1:0);n>=0;n--)if(t.pos<=this.end(n)&&(!r||r(this.node(n))))return new m0(this,t,n);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos<this.pos?t:this}toString(){let t="";for(let r=1;r<=this.depth;r++)t+=(t?"/":"")+this.node(r).type.name+"_"+this.index(r-1);return t+":"+this.parentOffset}static resolve(t,r){if(!(r>=0&&r<=t.content.size))throw new RangeError("Position "+r+" out of range");let n=[],s=0,i=r;for(let o=t;;){let{index:l,offset:d}=o.content.findIndex(i),u=i-d;if(n.push(o,l,s+d),!u||(o=o.child(l),o.isText))break;i=u-1,s+=d+1}return new ef(r,n,i)}static resolveCached(t,r){let n=WE.get(t);if(n)for(let i=0;i<n.elts.length;i++){let o=n.elts[i];if(o.pos==r)return o}else WE.set(t,n=new mie);let s=n.elts[n.i]=ef.resolve(t,r);return n.i=(n.i+1)%xie,s}}class mie{constructor(){this.elts=[],this.i=0}}const xie=12,WE=new WeakMap;class m0{constructor(t,r,n){this.$from=t,this.$to=r,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const yie=Object.create(null);let Po=class $P{constructor(t,r,n,s=kt.none){this.type=t,this.attrs=r,this.marks=s,this.content=n||he.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(t){return this.content.child(t)}maybeChild(t){return this.content.maybeChild(t)}forEach(t){this.content.forEach(t)}nodesBetween(t,r,n,s=0){this.content.nodesBetween(t,r,n,s,this)}descendants(t){this.nodesBetween(0,this.content.size,t)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(t,r,n,s){return this.content.textBetween(t,r,n,s)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(t){return this==t||this.sameMarkup(t)&&this.content.eq(t.content)}sameMarkup(t){return this.hasMarkup(t.type,t.attrs,t.marks)}hasMarkup(t,r,n){return this.type==t&&g0(this.attrs,r||t.defaultAttrs||yie)&&kt.sameSet(this.marks,n||kt.none)}copy(t=null){return t==this.content?this:new $P(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new $P(this.type,this.attrs,this.content,t)}cut(t,r=this.content.size){return t==0&&r==this.content.size?this:this.copy(this.content.cut(t,r))}slice(t,r=this.content.size,n=!1){if(t==r)return we.empty;let s=this.resolve(t),i=this.resolve(r),o=n?0:s.sharedDepth(r),l=s.start(o),u=s.node(o).content.cut(s.pos-l,i.pos-l);return new we(u,s.depth-o,i.depth-o)}replace(t,r,n){return fie(this.resolve(t),this.resolve(r),n)}nodeAt(t){for(let r=this;;){let{index:n,offset:s}=r.content.findIndex(t);if(r=r.maybeChild(n),!r)return null;if(s==t||r.isText)return r;t-=s+1}}childAfter(t){let{index:r,offset:n}=this.content.findIndex(t);return{node:this.content.maybeChild(r),index:r,offset:n}}childBefore(t){if(t==0)return{node:null,index:0,offset:0};let{index:r,offset:n}=this.content.findIndex(t);if(n<t)return{node:this.content.child(r),index:r,offset:n};let s=this.content.child(r-1);return{node:s,index:r-1,offset:n-s.nodeSize}}resolve(t){return ef.resolveCached(this,t)}resolveNoCache(t){return ef.resolve(this,t)}rangeHasMark(t,r,n){let s=!1;return r>t&&this.nodesBetween(t,r,i=>(n.isInSet(i.marks)&&(s=!0),!s)),s}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),b$(this.marks,t)}contentMatchAt(t){let r=this.type.contentMatch.matchFragment(this.content,0,t);if(!r)throw new Error("Called contentMatchAt on a node with invalid content");return r}canReplace(t,r,n=he.empty,s=0,i=n.childCount){let o=this.contentMatchAt(t).matchFragment(n,s,i),l=o&&o.matchFragment(this.content,r);if(!l||!l.validEnd)return!1;for(let d=s;d<i;d++)if(!this.type.allowsMarks(n.child(d).marks))return!1;return!0}canReplaceWith(t,r,n,s){if(s&&!this.type.allowsMarks(s))return!1;let i=this.contentMatchAt(t).matchType(n),o=i&&i.matchFragment(this.content,r);return o?o.validEnd:!1}canAppend(t){return t.content.size?this.canReplace(this.childCount,this.childCount,t.content):this.type.compatibleContent(t.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let t=kt.none;for(let r=0;r<this.marks.length;r++){let n=this.marks[r];n.type.checkAttrs(n.attrs),t=n.addToSet(t)}if(!kt.sameSet(t,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(r=>r.type.name)}`);this.content.forEach(r=>r.check())}toJSON(){let t={type:this.type.name};for(let r in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(r=>r.toJSON())),t}static fromJSON(t,r){if(!r)throw new RangeError("Invalid input for Node.fromJSON");let n;if(r.marks){if(!Array.isArray(r.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=r.marks.map(t.markFromJSON)}if(r.type=="text"){if(typeof r.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(r.text,n)}let s=he.fromJSON(t,r.content),i=t.nodeType(r.type).create(r.attrs,s,n);return i.type.checkAttrs(i.attrs),i}};Po.prototype.text=void 0;class x0 extends Po{constructor(t,r,n,s){if(super(t,r,null,s),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):b$(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,r){return this.text.slice(t,r)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new x0(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new x0(this.type,this.attrs,t,this.marks)}cut(t=0,r=this.text.length){return t==0&&r==this.text.length?this:this.withText(this.text.slice(t,r))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function b$(e,t){for(let r=e.length-1;r>=0;r--)t=e[r].type.name+"("+t+")";return t}class rc{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,r){let n=new bie(t,r);
vendor: 9,611 bytes, lines 874-875
874if(n.next==null)return rc.empty;let s=v$(n);n.next&&n.err("Unexpected trailing text");let i=Tie(Pie(s));return Aie(i,n),i}matchType(t){for(let r=0;r<this.next.length;r++)if(this.next[r].type==t)return this.next[r].next;return null}matchFragment(t,r=0,n=t.childCount){let s=this;for(let i=r;s&&i<n;i++)s=s.matchType(t.child(i).type);return s}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let t=0;t<this.next.length;t++){let{type:r}=this.next[t];if(!(r.isText||r.hasRequiredAttrs()))return r}return null}compatible(t){for(let r=0;r<this.next.length;r++)for(let n=0;n<t.next.length;n++)if(this.next[r].type==t.next[n].type)return!0;return!1}fillBefore(t,r=!1,n=0){let s=[this];function i(o,l){let d=o.matchFragment(t,n);if(d&&(!r||d.validEnd))return he.from(l.map(u=>u.createAndFill()));for(let u=0;u<o.next.length;u++){let{type:g,next:f}=o.next[u];if(!(g.isText||g.hasRequiredAttrs())&&s.indexOf(f)==-1){s.push(f);let m=i(f,l.concat(g));if(m)return m}}return null}return i(this,[])}findWrapping(t){for(let n=0;n<this.wrapCache.length;n+=2)if(this.wrapCache[n]==t)return this.wrapCache[n+1];let r=this.computeWrapping(t);return this.wrapCache.push(t,r),r}computeWrapping(t){let r=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let s=n.shift(),i=s.match;if(i.matchType(t)){let o=[];for(let l=s;l.type;l=l.via)o.push(l.type);return o.reverse()}for(let o=0;o<i.next.length;o++){let{type:l,next:d}=i.next[o];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in r)&&(!s.type||d.validEnd)&&(n.push({match:l.contentMatch,type:l,via:s}),r[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(t){if(t>=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];function r(n){t.push(n);for(let s=0;s<n.next.length;s++)t.indexOf(n.next[s].next)==-1&&r(n.next[s].next)}return r(this),t.map((n,s)=>{let i=s+(n.validEnd?"*":" ")+" ";for(let o=0;o<n.next.length;o++)i+=(o?", ":"")+n.next[o].type.name+"->"+t.indexOf(n.next[o].next);return i}).join(` 875`)}}rc.empty=new rc(!0);class bie{constructor(t,r){this.string=t,this.nodeTypes=r,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function v$(e){let t=[];do t.push(vie(e));while(e.eat("|"));return t.length==1?t[0]:{type:"choice",exprs:t}}function vie(e){let t=[];do t.push(Sie(e));while(e.next&&e.next!=")"&&e.next!="|");return t.length==1?t[0]:{type:"seq",exprs:t}}function Sie(e){let t=kie(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else if(e.eat("{"))t=jie(e,t);else break;return t}function $E(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function jie(e,t){let r=$E(e),n=r;return e.eat(",")&&(e.next!="}"?n=$E(e):n=-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:r,max:n,expr:t}}function wie(e,t){let r=e.nodeTypes,n=r[t];if(n)return[n];let s=[];for(let i in r){let o=r[i];o.isInGroup(t)&&s.push(o)}return s.length==0&&e.err("No node type or group '"+t+"' found"),s}function kie(e){if(e.eat("(")){let t=v$(e);return e.eat(")")||e.err("Missing closing paren"),t}else if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=wie(e,e.next).map(r=>(e.inline==null?e.inline=r.isInline:e.inline!=r.isInline&&e.err("Mixing inline and block content"),{type:"name",value:r}));return e.pos++,t.length==1?t[0]:{type:"choice",exprs:t}}}function Pie(e){let t=[[]];return s(i(e,0),r()),t;function r(){return t.push([])-1}function n(o,l,d){let u={term:d,to:l};return t[o].push(u),u}function s(o,l){o.forEach(d=>d.to=l)}function i(o,l){if(o.type=="choice")return o.exprs.reduce((d,u)=>d.concat(i(u,l)),[]);if(o.type=="seq")for(let d=0;;d++){let u=i(o.exprs[d],l);if(d==o.exprs.length-1)return u;s(u,l=r())}else if(o.type=="star"){let d=r();return n(l,d),s(i(o.expr,d),d),[n(d)]}else if(o.type=="plus"){let d=r();return s(i(o.expr,l),d),s(i(o.expr,d),d),[n(d)]}else{if(o.type=="opt")return[n(l)].concat(i(o.expr,l));if(o.type=="range"){let d=l;for(let u=0;u<o.min;u++){let g=r();s(i(o.expr,d),g),d=g}if(o.max==-1)s(i(o.expr,d),d);else for(let u=o.min;u<o.max;u++){let g=r();n(d,g),s(i(o.expr,d),g),d=g}return[n(d)]}else{if(o.type=="name")return[n(l,void 0,o.value)];throw new Error("Unknown expr type")}}}}function S$(e,t){return t-e}function FE(e,t){let r=[];return n(t),r.sort(S$);function n(s){let i=e[s];if(i.length==1&&!i[0].term)return n(i[0].to);r.push(s);for(let o=0;o<i.length;o++){let{term:l,to:d}=i[o];!l&&r.indexOf(d)==-1&&n(d)}}}function Tie(e){let t=Object.create(null);return r(FE(e,0));function r(n){let s=[];n.forEach(o=>{e[o].forEach(({term:l,to:d})=>{if(!l)return;let u;for(let g=0;g<s.length;g++)s[g][0]==l&&(u=s[g][1]);FE(e,d).forEach(g=>{u||s.push([l,u=[]]),u.indexOf(g)==-1&&u.push(g)})})});let i=t[n.join(",")]=new rc(n.indexOf(e.length-1)>-1);for(let o=0;o<s.length;o++){let l=s[o][1].sort(S$);i.next.push({type:s[o][0],next:t[l.join(",")]||r(l)})}return i}}function Aie(e,t){for(let r=0,n=[e];r<n.length;r++){let s=n[r],i=!s.validEnd,o=[];for(let l=0;l<s.next.length;l++){let{type:d,next:u}=s.next[l];o.push(d.name),i&&!(d.isText||d.hasRequiredAttrs())&&(i=!1),n.indexOf(u)==-1&&n.push(u)}i&&t.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function j$(e){let t=Object.create(null);for(let r in e){let n=e[r];if(!n.hasDefault)return null;t[r]=n.default}return t}function w$(e,t){let r=Object.create(null);for(let n in e){let s=t&&t[n];if(s===void 0){let i=e[n];if(i.hasDefault)s=i.default;else throw new RangeError("No value supplied for attribute "+n)}r[n]=s}return r}function k$(e,t,r,n){for(let s in t)if(!(s in e))throw new RangeError(`Unsupported attribute ${s} for ${r} of type ${s}`);for(let s in e){let i=e[s];i.validate&&i.validate(t[s])}}function P$(e,t){let r=Object.create(null);if(t)for(let n in t)r[n]=new Cie(e,n,t[n]);return r}let HE=class T${constructor(t,r,n){this.name=t,this.schema=r,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=P$(t,n.attrs),this.defaultAttrs=j$(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||t=="text"),this.isText=t=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==rc.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(t){return this.groups.indexOf(t)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let t in this.attrs)if(this.attrs[t].isRequired)return!0;return!1}compatibleContent(t){return this==t||this.contentMatch.compatible(t.contentMatch)}computeAttrs(t){return!t&&this.defaultAttrs?this.defaultAttrs:w$(this.attrs,t)}create(t=null,r,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Po(this,this.computeAttrs(t),he.from(r),kt.setFrom(n))}createChecked(t=null,r,n){return r=he.from(r),this.checkContent(r),new Po(this,this.computeAttrs(t),r,kt.setFrom(n))}createAndFill(t=null,r,n){if(t=this.computeAttrs(t),r=he.from(r),r.size){let o=this.contentMatch.fillBefore(r);if(!o)return null;r=o.append(r)}let s=this.contentMatch.matchFragment(r),i=s&&s.fillBefore(he.empty,!0);return i?new Po(this,t,r.append(i),kt.setFrom(n)):null}validContent(t){let r=this.contentMatch.matchFragment(t);if(!r||!r.validEnd)return!1;for(let n=0;n<t.childCount;n++)if(!this.allowsMarks(t.child(n).marks))return!1;return!0}checkContent(t){if(!this.validContent(t))throw new RangeError(`Invalid content for node ${this.name}: ${t.toString().slice(0,50)}`)}checkAttrs(t){k$(this.attrs,t,"node",this.name)}allowsMarkType(t){return this.markSet==null||this.markSet.indexOf(t)>-1}allowsMarks(t){if(this.markSet==null)return!0;for(let r=0;r<t.length;r++)if(!this.allowsMarkType(t[r].type))return!1;return!0}allowedMarks(t){if(this.markSet==null)return t;let r;for(let n=0;n<t.length;n++)this.allowsMarkType(t[n].type)?r&&r.push(t[n]):r||(r=t.slice(0,n));return r?r.length?r:kt.none:t}static compile(t,r){let n=Object.create(null);t.forEach((i,o)=>n[i]=new T$(i,r,o));let s=r.spec.topNode||"doc";if(!n[s])throw new RangeError("Schema is missing its top node type ('"+s+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let i in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}};function zie(e,t,r){let n=r.split("|");return s=>{let i=s===null?"null":typeof s;if(n.indexOf(i)<0)throw new RangeError(`Expected value of type ${n} for attribute ${t} on type ${e}, got ${i}`)}}class Cie{constructor(t,r,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,"default"),this.default=n.default,this.validate=typeof n.validate=="string"?zie(t,r,n.validate):n.validate}get isRequired(){return!this.hasDefault}}class ky{constructor(t,r,n,s){this.name=t,this.rank=r,this.schema=n,this.spec=s,this.attrs=P$(t,s.attrs),this.excluded=null;let i=j$(this.attrs);this.instance=i?new kt(this,i):null}create(t=null){return!t&&this.instance?this.instance:new kt(this,w$(this.attrs,t))}static compile(t,r){let n=Object.create(null),s=0;return t.forEach((i,o)=>n[i]=new ky(i,s++,r,o)),n}removeFromSet(t){for(var r=0;r<t.length;
vendor: 8,640 bytes, lines 875-877
875r++)t[r].type==this&&(t=t.slice(0,r).concat(t.slice(r+1)),r--);return t}isInSet(t){for(let r=0;r<t.length;r++)if(t[r].type==this)return t[r]}checkAttrs(t){k$(this.attrs,t,"mark",this.name)}excludes(t){return this.excluded.indexOf(t)>-1}}class A${constructor(t){this.linebreakReplacement=null,this.cached=Object.create(null);let r=this.spec={};for(let s in t)r[s]=t[s];r.nodes=Dr.from(t.nodes),r.marks=Dr.from(t.marks||{}),this.nodes=HE.compile(this.spec.nodes,this),this.marks=ky.compile(this.spec.marks,this);let n=Object.create(null);for(let s in this.nodes){if(s in this.marks)throw new RangeError(s+" can not be both a node and a mark");let i=this.nodes[s],o=i.spec.content||"",l=i.spec.marks;if(i.contentMatch=n[o]||(n[o]=rc.parse(o,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=l=="_"?null:l?qE(this,l.split(" ")):l==""||!i.inlineContent?[]:null}for(let s in this.marks){let i=this.marks[s],o=i.spec.excludes;i.excluded=o==null?[i]:o==""?[]:qE(this,o.split(" "))}this.nodeFromJSON=s=>Po.fromJSON(this,s),this.markFromJSON=s=>kt.fromJSON(this,s),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,r=null,n,s){if(typeof t=="string")t=this.nodeType(t);else if(t instanceof HE){if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}else throw new RangeError("Invalid node type: "+t);return t.createChecked(r,n,s)}text(t,r){let n=this.nodes.text;return new x0(n,n.defaultAttrs,t,kt.setFrom(r))}mark(t,r){return typeof t=="string"&&(t=this.marks[t]),t.create(r)}nodeType(t){let r=this.nodes[t];if(!r)throw new RangeError("Unknown node type: "+t);return r}}function qE(e,t){let r=[];for(let n=0;n<t.length;n++){let s=t[n],i=e.marks[s],o=i;if(i)r.push(i);else for(let l in e.marks){let d=e.marks[l];(s=="_"||d.spec.group&&d.spec.group.split(" ").indexOf(s)>-1)&&r.push(o=d)}if(!o)throw new SyntaxError("Unknown mark type: '"+t[n]+"'")}return r}function Eie(e){return e.tag!=null}function Oie(e){return e.style!=null}let Pg=class FP{constructor(t,r){this.schema=t,this.rules=r,this.tags=[],this.styles=[];let n=this.matchedStyles=[];r.forEach(s=>{if(Eie(s))this.tags.push(s);else if(Oie(s)){let i=/[^=]*/.exec(s.style)[0];n.indexOf(i)<0&&n.push(i),this.styles.push(s)}}),this.normalizeLists=!this.tags.some(s=>{if(!/^(ul|ol)\b/.test(s.tag)||!s.node)return!1;let i=t.nodes[s.node];return i.contentMatch.matchType(i)})}parse(t,r={}){let n=new GE(this,r,!1);return n.addAll(t,kt.none,r.from,r.to),n.finish()}parseSlice(t,r={}){let n=new GE(this,r,!0);return n.addAll(t,kt.none,r.from,r.to),we.maxOpen(n.finish())}matchTag(t,r,n){for(let s=n?this.tags.indexOf(n)+1:0;s<this.tags.length;s++){let i=this.tags[s];if(Rie(t,i.tag)&&(i.namespace===void 0||t.namespaceURI==i.namespace)&&(!i.context||r.matchesContext(i.context))){if(i.getAttrs){let o=i.getAttrs(t);if(o===!1)continue;i.attrs=o||void 0}return i}}}matchStyle(t,r,n,s){for(let i=s?this.styles.indexOf(s)+1:0;i<this.styles.length;i++){let o=this.styles[i],l=o.style;if(!(l.indexOf(t)!=0||o.context&&!n.matchesContext(o.context)||l.length>t.length&&(l.charCodeAt(t.length)!=61||l.slice(t.length+1)!=r))){if(o.getAttrs){let d=o.getAttrs(r);if(d===!1)continue;o.attrs=d||void 0}return o}}}static schemaRules(t){let r=[];function n(s){let i=s.priority==null?50:s.priority,o=0;for(;o<r.length;o++){let l=r[o];if((l.priority==null?50:l.priority)<i)break}r.splice(o,0,s)}for(let s in t.marks){let i=t.marks[s].spec.parseDOM;i&&i.forEach(o=>{n(o=VE(o)),o.mark||o.ignore||o.clearMark||(o.mark=s)})}for(let s in t.nodes){let i=t.nodes[s].spec.parseDOM;i&&i.forEach(o=>{n(o=VE(o)),o.node||o.ignore||o.mark||(o.node=s)})}return r}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new FP(t,FP.schemaRules(t)))}};const z$={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Mie={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},C$={ol:!0,ul:!0},tf=1,HP=2,Tg=4;function UE(e,t,r){return t!=null?(t?tf:0)|(t==="full"?HP:0):e&&e.whitespace=="pre"?tf|HP:r&~Tg}class Km{constructor(t,r,n,s,i,o){this.type=t,this.attrs=r,this.marks=n,this.solid=s,this.options=o,this.content=[],this.activeMarks=kt.none,this.match=i||(o&Tg?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let r=this.type.contentMatch.fillBefore(he.from(t));if(r)this.match=this.type.contentMatch.matchFragment(r);else{let n=this.type.contentMatch,s;return(s=n.findWrapping(t.type))?(this.match=n,s):null}}return this.match.findWrapping(t.type)}finish(t){if(!(this.options&tf)){let n=this.content[this.content.length-1],s;if(n&&n.isText&&(s=/[ \t\r\n\u000c]+$/.exec(n.text))){let i=n;n.text.length==s[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-s[0].length))}}let r=he.from(this.content);return!t&&this.match&&(r=r.append(this.match.fillBefore(he.empty,!0))),this.type?this.type.create(this.attrs,r,this.marks):r}inlineContext(t){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:t.parentNode&&!z$.hasOwnProperty(t.parentNode.nodeName.toLowerCase())}}class GE{constructor(t,r,n){this.parser=t,this.options=r,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let s=r.topNode,i,o=UE(null,r.preserveWhitespace,0)|(n?Tg:0);s?i=new Km(s.type,s.attrs,kt.none,!0,r.topMatch||s.type.contentMatch,o):n?i=new Km(null,null,kt.none,!0,null,o):i=new Km(t.schema.topNodeType,null,kt.none,!0,null,o),this.nodes=[i],this.find=r.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(t,r){t.nodeType==3?this.addTextNode(t,r):t.nodeType==1&&this.addElement(t,r)}addTextNode(t,r){let n=t.nodeValue,s=this.top,i=s.options&HP?"full":this.localPreserveWS||(s.options&tf)>0,{schema:o}=this.parser;if(i==="full"||s.inlineContext(t)||/[^ \t\r\n\u000c]/.test(n)){if(i)if(i==="full")n=n.replace(/\r\n?/g,` 876`);else if(o.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(o.linebreakReplacement.create())){let l=n.split(/\r?\n|\r/);for(let d=0;d<l.length;d++)d&&this.insertNode(o.linebreakReplacement.create(),r,!0),l[d]&&this.insertNode(o.text(l[d]),r,!/\S/.test(l[d]));n=""}else n=n.replace(/\r?\n|\r/g," ");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let l=s.content[s.content.length-1],d=t.previousSibling;(!l||d&&d.nodeName=="BR"||l.isText&&/[ \t\r\n\u000c]$/.test(l.text))&&(n=n.slice(1))}n&&this.insertNode(o.text(n),r,!/\S/.test(n)),this.findInText(t)}else this.findInside(t)}addElement(t,r,n){let s=this.localPreserveWS,i=this.top;(t.tagName=="PRE"||/pre/.test(t.style&&t.style.whiteSpace))&&(this.localPreserveWS=!0);let o=t.nodeName.toLowerCase(),l;C$.hasOwnProperty(o)&&this.parser.normalizeLists&&Nie(t);let d=this.options.ruleFromNode&&this.options.ruleFromNode(t)||(l=this.parser.matchTag(t,this,n));e:if(d?d.ignore:Mie.hasOwnProperty(o))this.findInside(t),this.ignoreFallback(t,r);else if(!d||d.skip||d.closeParent){d&&d.closeParent?this.open=Math.max(0,this.open-1):d&&d.skip.nodeType&&(t=d.skip);let u,g=this.needsBlock;if(z$.hasOwnProperty(o))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),u=!0,i.type||(this.needsBlock=!0);else if(!t.firstChild){this.leafFallback(t,r);break e}let f=d&&d.skip?r:this.readStyles(t,r);f&&this.addAll(t,f),u&&this.sync(i),this.needsBlock=g}else{let u=this.readStyles(t,r);u&&this.addElementByRule(t,d,u,d.consuming===!1?l:void 0)}this.localPreserveWS=s}leafFallback(t,r){t.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(t.ownerDocument.createTextNode(` 877`),r)}ignoreFallback(t,r){t.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),r,!0)}readStyles(t,r){let n=t.style;if(n&&n.length)for(let s=0;s<this.parser.matchedStyles.length;s++){let i=this.parser.matchedStyles[s],o=n.getPropertyValue(i);if(o)for(let l=void 0;;){let d=this.parser.matchStyle(i,o,this,l);if(!d)break;if(d.ignore)return null;if(d.clearMark?r=r.filter(u=>!d.clearMark(u)):r=r.concat(this.parser.schema.marks[d.mark].create(d.attrs)),d.consuming===!1)l=d;else break}}return r}addElementByRule(t,r,n,s){let i,o;
vendor: 4,119 bytes, line 877
877if(r.node)if(o=this.parser.schema.nodes[r.node],o.isLeaf)this.insertNode(o.create(r.attrs),n,t.nodeName=="BR")||this.leafFallback(t,n);else{let d=this.enter(o,r.attrs||null,n,r.preserveWhitespace);d&&(i=!0,n=d)}else{let d=this.parser.schema.marks[r.mark];n=n.concat(d.create(r.attrs))}let l=this.top;if(o&&o.isLeaf)this.findInside(t);else if(s)this.addElement(t,n,s);else if(r.getContent)this.findInside(t),r.getContent(t,this.parser.schema).forEach(d=>this.insertNode(d,n,!1));else{let d=t;typeof r.contentElement=="string"?d=t.querySelector(r.contentElement):typeof r.contentElement=="function"?d=r.contentElement(t):r.contentElement&&(d=r.contentElement),this.findAround(t,d,!0),this.addAll(d,n),this.findAround(t,d,!1)}i&&this.sync(l)&&this.open--}addAll(t,r,n,s){let i=n||0;for(let o=n?t.childNodes[n]:t.firstChild,l=s==null?null:t.childNodes[s];o!=l;o=o.nextSibling,++i)this.findAtPoint(t,i),this.addDOM(o,r);this.findAtPoint(t,i)}findPlace(t,r,n){let s,i;for(let o=this.open,l=0;o>=0;o--){let d=this.nodes[o],u=d.findWrapping(t);if(u&&(!s||s.length>u.length+l)&&(s=u,i=d,!u.length))break;if(d.solid){if(n)break;l+=2}}if(!s)return null;this.sync(i);for(let o=0;o<s.length;o++)r=this.enterInner(s[o],null,r,!1);return r}insertNode(t,r,n){if(t.isInline&&this.needsBlock&&!this.top.type){let i=this.textblockFromContext();i&&(r=this.enterInner(i,null,r))}let s=this.findPlace(t,r,n);if(s){this.closeExtra();let i=this.top;i.match&&(i.match=i.match.matchType(t.type));let o=kt.none;for(let l of s.concat(t.marks))(i.type?i.type.allowsMarkType(l.type):XE(l.type,t.type))&&(o=l.addToSet(o));return i.content.push(t.mark(o)),!0}return!1}enter(t,r,n,s){let i=this.findPlace(t.create(r),n,!1);return i&&(i=this.enterInner(t,r,n,!0,s)),i}enterInner(t,r,n,s=!1,i){this.closeExtra();let o=this.top;o.match=o.match&&o.match.matchType(t);let l=UE(t,i,o.options);o.options&Tg&&o.content.length==0&&(l|=Tg);let d=kt.none;return n=n.filter(u=>(o.type?o.type.allowsMarkType(u.type):XE(u.type,t))?(d=u.addToSet(d),!1):!0),this.nodes.push(new Km(t,r,d,s,null,l)),this.open++,n}closeExtra(t=!1){let r=this.nodes.length-1;if(r>this.open){for(;r>this.open;r--)this.nodes[r-1].content.push(this.nodes[r].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(t){for(let r=this.open;r>=0;r--){if(this.nodes[r]==t)return this.open=r,!0;this.localPreserveWS&&(this.nodes[r].options|=tf)}return!1}get currentPos(){this.closeExtra();let t=0;for(let r=this.open;r>=0;r--){let n=this.nodes[r].content;for(let s=n.length-1;s>=0;s--)t+=n[s].nodeSize;r&&t++}return t}findAtPoint(t,r){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==t&&this.find[n].offset==r&&(this.find[n].pos=this.currentPos)}findInside(t){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&t.nodeType==1&&t.contains(this.find[r].node)&&(this.find[r].pos=this.currentPos)}findAround(t,r,n){if(t!=r&&this.find)for(let s=0;s<this.find.length;s++)this.find[s].pos==null&&t.nodeType==1&&t.contains(this.find[s].node)&&r.compareDocumentPosition(this.find[s].node)&(n?2:4)&&(this.find[s].pos=this.currentPos)}findInText(t){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==t&&(this.find[r].pos=this.currentPos-(t.nodeValue.length-this.find[r].offset))}matchesContext(t){if(t.indexOf("|")>-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let r=t.split("/"),n=this.options.context,s=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+(s?0:1),o=(l,d)=>{for(;l>=0;l--){let u=r[l];if(u==""){if(l==r.length-1||l==0)continue;for(;d>=i;d--)if(o(l-1,d))return!0;return!1}else{let g=d>0||d==0&&s?this.nodes[d].type:n&&d>=i?n.node(d-i).type:null;if(!g||g.name!=u&&!g.isInGroup(u))return!1;d--}}return!0};return o(r.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let r=t.depth;r>=0;r--){let n=t.node(r).contentMatchAt(t.indexAfter(r)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let r in this.parser.schema.nodes){let n=this.parser.schema.nodes[r];
vendor: 4,480 bytes, line 877
877if(n.isTextblock&&n.defaultAttrs)return n}}}function Nie(e){for(let t=e.firstChild,r=null;t;t=t.nextSibling){let n=t.nodeType==1?t.nodeName.toLowerCase():null;n&&C$.hasOwnProperty(n)&&r?(r.appendChild(t),t=r):n=="li"?r=t:n&&(r=null)}}function Rie(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function VE(e){let t={};for(let r in e)t[r]=e[r];return t}function XE(e,t){let r=t.schema.nodes;for(let n in r){let s=r[n];if(!s.allowsMarkType(e))continue;let i=[],o=l=>{i.push(l);for(let d=0;d<l.edgeCount;d++){let{type:u,next:g}=l.edge(d);if(u==t||i.indexOf(g)<0&&o(g))return!0}};if(o(s.contentMatch))return!0}}class jc{constructor(t,r){this.nodes=t,this.marks=r}serializeFragment(t,r={},n){n||(n=Qm(r).createDocumentFragment());let s=n,i=[];return t.forEach(o=>{if(i.length||o.marks.length){let l=0,d=0;for(;l<i.length&&d<o.marks.length;){let u=o.marks[d];if(!this.marks[u.type.name]){d++;continue}if(!u.eq(i[l][0])||u.type.spec.spanning===!1)break;l++,d++}for(;l<i.length;)s=i.pop()[1];for(;d<o.marks.length;){let u=o.marks[d++],g=this.serializeMark(u,o.isInline,r);g&&(i.push([u,s]),s.appendChild(g.dom),s=g.contentDOM||g.dom)}}s.appendChild(this.serializeNodeInner(o,r))}),n}serializeNodeInner(t,r){if(t.isText)return Qm(r).createTextNode(t.text);let{dom:n,contentDOM:s}=Ux(Qm(r),this.nodes[t.type.name](t),null,t.attrs);if(s){if(t.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(t.content,r,s)}return n}serializeNode(t,r={}){let n=this.serializeNodeInner(t,r);for(let s=t.marks.length-1;s>=0;s--){let i=this.serializeMark(t.marks[s],t.isInline,r);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(t,r,n={}){let s=this.marks[t.type.name];return s&&Ux(Qm(n),s(t,r),null,t.attrs)}static renderSpec(t,r,n=null,s){return typeof r=="string"?{dom:t.createTextNode(r)}:Ux(t,r,n,s)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new jc(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let r=KE(t.nodes);return r.text||(r.text=n=>n.text),r}static marksFromSchema(t){return KE(t.marks)}}function KE(e){let t={};for(let r in e){let n=e[r].spec.toDOM;n&&(t[r]=n)}return t}function Qm(e){return e.document||window.document}const QE=new WeakMap;function Die(e){let t=QE.get(e);return t===void 0&&QE.set(e,t=_ie(e)),t}function _ie(e){let t=null;function r(n){if(n&&typeof n=="object")if(Array.isArray(n))if(typeof n[0]=="string")t||(t=[]),t.push(n);else for(let s=0;s<n.length;s++)r(n[s]);else for(let s in n)r(n[s])}return r(e),t}function Ux(e,t,r,n){if(t.nodeType==3)return{dom:t};if(t.dom&&t.dom.nodeType==3)return t;let s=t[0],i;if(typeof s!="string")throw new RangeError("Invalid array passed to renderSpec");if(n&&(i=Die(n))&&i.indexOf(t)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let o=s.indexOf(" ");o>0&&(r=s.slice(0,o),s=s.slice(o+1));let l,d=r?e.createElementNS(r,s):e.createElement(s),u=t[1],g=1;if(u&&typeof u=="object"&&u.nodeType==null&&!Array.isArray(u)){g=2;for(let f in u)if(u[f]!=null){let m=f.indexOf(" ");m>0?d.setAttributeNS(f.slice(0,m),f.slice(m+1),u[f]):f=="style"&&d.style?d.style.cssText=u[f]:d.setAttribute(f,u[f])}}for(let f=g;f<t.length;f++){let m=t[f];if(m===0){if(f<t.length-1||f>g)throw new RangeError("Content hole must be the only child of its parent node");return{dom:d,contentDOM:d}}else if(typeof m=="string")d.appendChild(e.createTextNode(m));else{let{dom:y,contentDOM:S}=Ux(e,m,r,n);if(d.appendChild(y),S){if(l)throw new RangeError("Multiple content holes");l=S}}}return{dom:d,contentDOM:l}}const E$=65535,O$=Math.pow(2,16);function Iie(e,t){return e+t*O$}function YE(e){return e&E$}function Bie(e){return(e-(e&E$))/O$}const M$=1,N$=2,Gx=4,R$=8;class qP{constructor(t,r,n){this.pos=t,this.delInfo=r,this.recover=n}get deleted(){return(this.delInfo&R$)>0}get deletedBefore(){return(this.delInfo&(M$|Gx))>0}get deletedAfter(){return(this.delInfo&(N$|Gx))>0}get deletedAcross(){return(this.delInfo&Gx)>0}}class $n{constructor(t,r=!1){if(this.ranges=t,this.inverted=r,!t.length&&$n.empty)return $n.empty}recover(t){let r=0,n=YE(t);if(!this.inverted)for(let s=0;s<n;s++)r+=this.ranges[s*3+2]-this.ranges[s*3+1];return this.ranges[n*3]+r+Bie(t)}mapResult(t,r=1){return this._map(t,r,!1)}map(t,r=1){return this._map(t,r,!0)}_map(t,r,n){let s=0,i=this.inverted?2:1,o=this.inverted?1:2;
vendor: 4,394 bytes, line 877
877for(let l=0;l<this.ranges.length;l+=3){let d=this.ranges[l]-(this.inverted?s:0);if(d>t)break;let u=this.ranges[l+i],g=this.ranges[l+o],f=d+u;if(t<=f){let m=u?t==d?-1:t==f?1:r:r,y=d+s+(m<0?0:g);if(n)return y;let S=t==(r<0?d:f)?null:Iie(l/3,t-d),b=t==d?N$:t==f?M$:Gx;return(r<0?t!=d:t!=f)&&(b|=R$),new qP(y,b,S)}s+=g-u}return n?t+s:new qP(t+s,0,null)}touches(t,r){let n=0,s=YE(r),i=this.inverted?2:1,o=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let d=this.ranges[l]-(this.inverted?n:0);if(d>t)break;let u=this.ranges[l+i],g=d+u;if(t<=g&&l==s*3)return!0;n+=this.ranges[l+o]-u}return!1}forEach(t){let r=this.inverted?2:1,n=this.inverted?1:2;for(let s=0,i=0;s<this.ranges.length;s+=3){let o=this.ranges[s],l=o-(this.inverted?i:0),d=o+(this.inverted?0:i),u=this.ranges[s+r],g=this.ranges[s+n];t(l,l+u,d,d+g),i+=g-u}}invert(){return new $n(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(t){return t==0?$n.empty:new $n(t<0?[0,-t,0]:[0,0,t])}}$n.empty=new $n([]);class rf{constructor(t,r,n=0,s=t?t.length:0){this.mirror=r,this.from=n,this.to=s,this._maps=t||[],this.ownData=!(t||r)}get maps(){return this._maps}slice(t=0,r=this.maps.length){return new rf(this._maps,this.mirror,t,r)}appendMap(t,r){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(t),r!=null&&this.setMirror(this._maps.length-1,r)}appendMapping(t){for(let r=0,n=this._maps.length;r<t._maps.length;r++){let s=t.getMirror(r);this.appendMap(t._maps[r],s!=null&&s<r?n+s:void 0)}}getMirror(t){if(this.mirror){for(let r=0;r<this.mirror.length;r++)if(this.mirror[r]==t)return this.mirror[r+(r%2?-1:1)]}}setMirror(t,r){this.mirror||(this.mirror=[]),this.mirror.push(t,r)}appendMappingInverted(t){for(let r=t.maps.length-1,n=this._maps.length+t._maps.length;r>=0;r--){let s=t.getMirror(r);this.appendMap(t._maps[r].invert(),s!=null&&s>r?n-s-1:void 0)}}invert(){let t=new rf;return t.appendMappingInverted(this),t}map(t,r=1){if(this.mirror)return this._map(t,r,!0);for(let n=this.from;n<this.to;n++)t=this._maps[n].map(t,r);return t}mapResult(t,r=1){return this._map(t,r,!1)}_map(t,r,n){let s=0;for(let i=this.from;i<this.to;i++){let o=this._maps[i],l=o.mapResult(t,r);if(l.recover!=null){let d=this.getMirror(i);if(d!=null&&d>i&&d<this.to){i=d,t=this._maps[d].recover(l.recover);continue}}s|=l.delInfo,t=l.pos}return n?t:new qP(t,s,null)}}const hv=Object.create(null);let Yr=class{getMap(){return $n.empty}merge(t){return null}static fromJSON(t,r){if(!r||!r.stepType)throw new RangeError("Invalid input for Step.fromJSON");let n=hv[r.stepType];if(!n)throw new RangeError(`No step type ${r.stepType} defined`);return n.fromJSON(t,r)}static jsonID(t,r){if(t in hv)throw new RangeError("Duplicate use of step JSON ID "+t);return hv[t]=r,r.prototype.jsonID=t,r}};class lr{constructor(t,r){this.doc=t,this.failed=r}static ok(t){return new lr(t,null)}static fail(t){return new lr(null,t)}static fromReplace(t,r,n,s){try{return lr.ok(t.replace(r,n,s))}catch(i){if(i instanceof f0)return lr.fail(i.message);throw i}}}function bA(e,t,r){let n=[];for(let s=0;s<e.childCount;s++){let i=e.child(s);i.content.size&&(i=i.copy(bA(i.content,t,i))),i.isInline&&(i=t(i,r,s)),n.push(i)}return he.fromArray(n)}class bo extends Yr{constructor(t,r,n){super(),this.from=t,this.to=r,this.mark=n}apply(t){let r=t.slice(this.from,this.to),n=t.resolve(this.from),s=n.node(n.sharedDepth(this.to)),i=new we(bA(r.content,(o,l)=>!o.isAtom||!l.type.allowsMarkType(this.mark.type)?o:o.mark(this.mark.addToSet(o.marks)),s),r.openStart,r.openEnd);return lr.fromReplace(t,this.from,this.to,i)}invert(){return new Ba(this.from,this.to,this.mark)}map(t){let r=t.mapResult(this.from,1),n=t.mapResult(this.to,-1);return r.deleted&&n.deleted||r.pos>=n.pos?null:new bo(r.pos,n.pos,this.mark)}merge(t){return t instanceof bo&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new bo(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,r){if(typeof r.from!="number"||typeof r.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new bo(r.from,r.to,t.markFromJSON(r.mark))}}Yr.jsonID("addMark",bo);class Ba extends Yr{constructor(t,r,n){super(),this.from=t,this.to=r,this.mark=n}
vendor: 6,542 bytes, line 877
877apply(t){let r=t.slice(this.from,this.to),n=new we(bA(r.content,s=>s.mark(this.mark.removeFromSet(s.marks)),t),r.openStart,r.openEnd);return lr.fromReplace(t,this.from,this.to,n)}invert(){return new bo(this.from,this.to,this.mark)}map(t){let r=t.mapResult(this.from,1),n=t.mapResult(this.to,-1);return r.deleted&&n.deleted||r.pos>=n.pos?null:new Ba(r.pos,n.pos,this.mark)}merge(t){return t instanceof Ba&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new Ba(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,r){if(typeof r.from!="number"||typeof r.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Ba(r.from,r.to,t.markFromJSON(r.mark))}}Yr.jsonID("removeMark",Ba);class vo extends Yr{constructor(t,r){super(),this.pos=t,this.mark=r}apply(t){let r=t.nodeAt(this.pos);if(!r)return lr.fail("No node at mark step's position");let n=r.type.create(r.attrs,null,this.mark.addToSet(r.marks));return lr.fromReplace(t,this.pos,this.pos+1,new we(he.from(n),0,r.isLeaf?0:1))}invert(t){let r=t.nodeAt(this.pos);if(r){let n=this.mark.addToSet(r.marks);if(n.length==r.marks.length){for(let s=0;s<r.marks.length;s++)if(!r.marks[s].isInSet(n))return new vo(this.pos,r.marks[s]);return new vo(this.pos,this.mark)}}return new nc(this.pos,this.mark)}map(t){let r=t.mapResult(this.pos,1);return r.deletedAfter?null:new vo(r.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,r){if(typeof r.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new vo(r.pos,t.markFromJSON(r.mark))}}Yr.jsonID("addNodeMark",vo);class nc extends Yr{constructor(t,r){super(),this.pos=t,this.mark=r}apply(t){let r=t.nodeAt(this.pos);if(!r)return lr.fail("No node at mark step's position");let n=r.type.create(r.attrs,null,this.mark.removeFromSet(r.marks));return lr.fromReplace(t,this.pos,this.pos+1,new we(he.from(n),0,r.isLeaf?0:1))}invert(t){let r=t.nodeAt(this.pos);return!r||!this.mark.isInSet(r.marks)?this:new vo(this.pos,this.mark)}map(t){let r=t.mapResult(this.pos,1);return r.deletedAfter?null:new nc(r.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,r){if(typeof r.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new nc(r.pos,t.markFromJSON(r.mark))}}Yr.jsonID("removeNodeMark",nc);class or extends Yr{constructor(t,r,n,s=!1){super(),this.from=t,this.to=r,this.slice=n,this.structure=s}apply(t){return this.structure&&UP(t,this.from,this.to)?lr.fail("Structure replace would overwrite content"):lr.fromReplace(t,this.from,this.to,this.slice)}getMap(){return new $n([this.from,this.to-this.from,this.slice.size])}invert(t){return new or(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let r=t.mapResult(this.to,-1),n=this.from==this.to&&or.MAP_BIAS<0?r:t.mapResult(this.from,1);return n.deletedAcross&&r.deletedAcross?null:new or(n.pos,Math.max(n.pos,r.pos),this.slice,this.structure)}merge(t){if(!(t instanceof or)||t.structure||this.structure)return null;if(this.from+this.slice.size==t.from&&!this.slice.openEnd&&!t.slice.openStart){let r=this.slice.size+t.slice.size==0?we.empty:new we(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new or(this.from,this.to+(t.to-t.from),r,this.structure)}else if(t.to==this.from&&!this.slice.openStart&&!t.slice.openEnd){let r=this.slice.size+t.slice.size==0?we.empty:new we(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new or(t.from,this.to,r,this.structure)}else return null}toJSON(){let t={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,r){if(typeof r.from!="number"||typeof r.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new or(r.from,r.to,we.fromJSON(t,r.slice),!!r.structure)}}or.MAP_BIAS=1;Yr.jsonID("replace",or);class Pr extends Yr{constructor(t,r,n,s,i,o,l=!1){super(),this.from=t,this.to=r,this.gapFrom=n,this.gapTo=s,this.slice=i,this.insert=o,this.structure=l}apply(t){if(this.structure&&(UP(t,this.from,this.gapFrom)||UP(t,this.gapTo,this.to)))return lr.fail("Structure gap-replace would overwrite content");let r=t.slice(this.gapFrom,this.gapTo);if(r.openStart||r.openEnd)return lr.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,r.content);return n?lr.fromReplace(t,this.from,this.to,n):lr.fail("Content does not fit in gap")}getMap(){return new $n([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let r=this.gapTo-this.gapFrom;return new Pr(this.from,this.from+this.slice.size+r,this.from+this.insert,this.from+this.insert+r,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let r=t.mapResult(this.from,1),n=t.mapResult(this.to,-1),s=this.from==this.gapFrom?r.pos:t.map(this.gapFrom,-1),i=this.to==this.gapTo?n.pos:t.map(this.gapTo,1);return r.deletedAcross&&n.deletedAcross||s<r.pos||i>n.pos?null:new Pr(r.pos,n.pos,s,i,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,r){if(typeof r.from!="number"||typeof r.to!="number"||typeof r.gapFrom!="number"||typeof r.gapTo!="number"||typeof r.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Pr(r.from,r.to,r.gapFrom,r.gapTo,we.fromJSON(t,r.slice),r.insert,!!r.structure)}}Yr.jsonID("replaceAround",Pr);function UP(e,t,r){let n=e.resolve(t),s=r-t,i=n.depth;for(;s>0&&i>0&&n.indexAfter(i)==n.node(i).childCount;)i--,s--;if(s>0){let o=n.node(i).maybeChild(n.indexAfter(i));for(;s>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,s--}}return!1}function Lie(e,t,r,n){let s=[],i=[],o,l;e.doc.nodesBetween(t,r,(d,u,g)=>{if(!d.isInline)return;let f=d.marks;if(!n.isInSet(f)&&g.type.allowsMarkType(n.type)){let m=Math.max(u,t),y=Math.min(u+d.nodeSize,r),S=n.addToSet(f);for(let b=0;b<f.length;b++)f[b].isInSet(S)||(o&&o.to==m&&o.mark.eq(f[b])?o.to=y:s.push(o=new Ba(m,y,f[b])));l&&l.to==m?l.to=y:i.push(l=new bo(m,y,n))}}
vendor: 7,679 bytes, lines 877-878
877),s.forEach(d=>e.step(d)),i.forEach(d=>e.step(d))}function Wie(e,t,r,n){let s=[],i=0;e.doc.nodesBetween(t,r,(o,l)=>{if(!o.isInline)return;i++;let d=null;if(n instanceof ky){let u=o.marks,g;for(;g=n.isInSet(u);)(d||(d=[])).push(g),u=g.removeFromSet(u)}else n?n.isInSet(o.marks)&&(d=[n]):d=o.marks;if(d&&d.length){let u=Math.min(l+o.nodeSize,r);for(let g=0;g<d.length;g++){let f=d[g],m;for(let y=0;y<s.length;y++){let S=s[y];S.step==i-1&&f.eq(s[y].style)&&(m=S)}m?(m.to=u,m.step=i):s.push({style:f,from:Math.max(l,t),to:u,step:i})}}}),s.forEach(o=>e.step(new Ba(o.from,o.to,o.style)))}function vA(e,t,r,n=r.contentMatch,s=!0){let i=e.doc.nodeAt(t),o=[],l=t+1;for(let d=0;d<i.childCount;d++){let u=i.child(d),g=l+u.nodeSize,f=n.matchType(u.type);if(!f)o.push(new or(l,g,we.empty));else{n=f;for(let m=0;m<u.marks.length;m++)r.allowsMarkType(u.marks[m].type)||e.step(new Ba(l,g,u.marks[m]));if(s&&u.isText&&r.whitespace!="pre"){let m,y=/\r?\n|\r/g,S;for(;m=y.exec(u.text);)S||(S=new we(he.from(r.schema.text(" ",r.allowedMarks(u.marks))),0,0)),o.push(new or(l+m.index,l+m.index+m[0].length,S))}}l=g}if(!n.validEnd){let d=n.fillBefore(he.empty,!0);e.replace(l,l,new we(d,0,0))}for(let d=o.length-1;d>=0;d--)e.step(o[d])}function $ie(e,t,r){return(t==0||e.canReplace(t,e.childCount))&&(r==e.childCount||e.canReplace(0,r))}function Hu(e){let r=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth,s=0,i=0;;--n){let o=e.$from.node(n),l=e.$from.index(n)+s,d=e.$to.indexAfter(n)-i;if(n<e.depth&&o.canReplace(l,d,r))return n;if(n==0||o.type.spec.isolating||!$ie(o,l,d))break;l&&(s=1),d<o.childCount&&(i=1)}return null}function Fie(e,t,r){let{$from:n,$to:s,depth:i}=t,o=n.before(i+1),l=s.after(i+1),d=o,u=l,g=he.empty,f=0;for(let S=i,b=!1;S>r;S--)b||n.index(S)>0?(b=!0,g=he.from(n.node(S).copy(g)),f++):d--;let m=he.empty,y=0;for(let S=i,b=!1;S>r;S--)b||s.after(S+1)<s.end(S)?(b=!0,m=he.from(s.node(S).copy(m)),y++):u++;e.step(new Pr(d,u,o,l,new we(g.append(m),f,y),g.size-f,!0))}function SA(e,t,r=null,n=e){let s=Hie(e,t),i=s&&qie(n,t);return i?s.map(ZE).concat({type:t,attrs:r}).concat(i.map(ZE)):null}function ZE(e){return{type:e,attrs:null}}function Hie(e,t){let{parent:r,startIndex:n,endIndex:s}=e,i=r.contentMatchAt(n).findWrapping(t);if(!i)return null;let o=i.length?i[0]:t;return r.canReplaceWith(n,s,o)?i:null}function qie(e,t){let{parent:r,startIndex:n,endIndex:s}=e,i=r.child(n),o=t.contentMatch.findWrapping(i.type);if(!o)return null;let d=(o.length?o[o.length-1]:t).contentMatch;for(let u=n;d&&u<s;u++)d=d.matchType(r.child(u).type);return!d||!d.validEnd?null:o}function Uie(e,t,r){let n=he.empty;for(let o=r.length-1;o>=0;o--){if(n.size){let l=r[o].type.contentMatch.matchFragment(n);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}n=he.from(r[o].type.create(r[o].attrs,n))}let s=t.start,i=t.end;e.step(new Pr(s,i,s,i,new we(n,0,0),r.length,!0))}function Gie(e,t,r,n,s){if(!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=e.steps.length;e.doc.nodesBetween(t,r,(o,l)=>{let d=typeof s=="function"?s(o):s;if(o.isTextblock&&!o.hasMarkup(n,d)&&Vie(e.doc,e.mapping.slice(i).map(l),n)){let u=null;if(n.schema.linebreakReplacement){let y=n.whitespace=="pre",S=!!n.contentMatch.matchType(n.schema.linebreakReplacement);y&&!S?u=!1:!y&&S&&(u=!0)}u===!1&&_$(e,o,l,i),vA(e,e.mapping.slice(i).map(l,1),n,void 0,u===null);let g=e.mapping.slice(i),f=g.map(l,1),m=g.map(l+o.nodeSize,1);return e.step(new Pr(f,m,f+1,m-1,new we(he.from(n.create(d,null,o.marks)),0,0),1,!0)),u===!0&&D$(e,o,l,i),!1}})}function D$(e,t,r,n){t.forEach((s,i)=>{if(s.isText){let o,l=/\r?\n|\r/g;for(;o=l.exec(s.text);){let d=e.mapping.slice(n).map(r+1+i+o.index);e.replaceWith(d,d+1,t.type.schema.linebreakReplacement.create())}}})}function _$(e,t,r,n){t.forEach((s,i)=>{if(s.type==s.type.schema.linebreakReplacement){let o=e.mapping.slice(n).map(r+1+i);e.replaceWith(o,o+1,t.type.schema.text(` 878`))}})}function Vie(e,t,r){let n=e.resolve(t),s=n.index();return n.parent.canReplaceWith(s,s+1,r)}function Xie(e,t,r,n,s){let i=e.doc.nodeAt(t);if(!i)throw new RangeError("No node at given position");r||(r=i.type);let o=r.create(n,null,s||i.marks);if(i.isLeaf)return e.replaceWith(t,t+i.nodeSize,o);if(!r.validContent(i.content))throw new RangeError("Invalid content for node type "+r.name);e.step(new Pr(t,t+i.nodeSize,t+1,t+i.nodeSize-1,new we(he.from(o),0,0),1,!0))}function ui(e,t,r=1,n){let s=e.resolve(t),i=s.depth-r,o=n&&n[n.length-1]||s.parent;if(i<0||s.parent.type.spec.isolating||!s.parent.canReplace(s.index(),s.parent.childCount)||!o.type.validContent(s.parent.content.cutByIndex(s.index(),s.parent.childCount)))return!1;for(let u=s.depth-1,g=r-2;u>i;u--,g--){let f=s.node(u),m=s.index(u);if(f.type.spec.isolating)return!1;let y=f.content.cutByIndex(m,f.childCount),S=n&&n[g+1];S&&(y=y.replaceChild(0,S.type.create(S.attrs)));let b=n&&n[g]||f;if(!f.canReplace(m+1,f.childCount)||!b.type.validContent(y))return!1}let l=s.indexAfter(i),d=n&&n[0];return s.node(i).canReplaceWith(l,l,d?d.type:s.node(i+1).type)}function Kie(e,t,r=1,n){let s=e.doc.resolve(t),i=he.empty,o=he.empty;for(let l=s.depth,d=s.depth-r,u=r-1;l>d;l--,u--){i=he.from(s.node(l).copy(i));let g=n&&n[u];o=he.from(g?g.type.create(g.attrs,o):s.node(l).copy(o))}e.step(new or(t,t,new we(i.append(o),r,r),!0))}function $o(e,t){let r=e.resolve(t),n=r.index();return I$(r.nodeBefore,r.nodeAfter)&&r.parent.canReplace(n,n+1)}function Qie(e,t){t.content.size||e.type.compatibleContent(t.type);let r=e.contentMatchAt(e.childCount),{linebreakReplacement:n}=e.type.schema;for(let s=0;s<t.childCount;s++){let i=t.child(s),o=i.type==n?e.type.schema.nodes.text:i.type;if(r=r.matchType(o),!r||!e.type.allowsMarks(i.marks))return!1}return r.validEnd}function I$(e,t){return!!(e&&t&&!e.isLeaf&&Qie(e,t))}function Py(e,t,r=-1){let n=e.resolve(t);for(let s=n.depth;;s--){let i,o,l=n.index(s);if(s==n.depth?(i=n.nodeBefore,o=n.nodeAfter):r>0?(i=n.node(s+1),l++,o=n.node(s).maybeChild(l)):(i=n.node(s).maybeChild(l-1),o=n.node(s+1)),i&&!i.isTextblock&&I$(i,o)&&n.node(s).canReplace(l,l+1))return t;if(s==0)break;t=r<0?n.before(s):n.after(s)}}function Yie(e,t,r){let n=null,{linebreakReplacement:s}=e.doc.type.schema,i=e.doc.resolve(t-r),o=i.node().type;if(s&&o.inlineContent){let g=o.whitespace=="pre",f=!!o.contentMatch.matchType(s);g&&!f?n=!1:!g&&f&&(n=!0)}let l=e.steps.length;if(n===!1){let g=e.doc.resolve(t+r);_$(e,g.node(),g.before(),l)}o.inlineContent&&vA(e,t+r-1,o,i.node().contentMatchAt(i.index()),n==null);let d=e.mapping.slice(l),u=d.map(t-r);if(e.step(new or(u,d.map(t+r,-1),we.empty,!0)),n===!0){let g=e.doc.resolve(u);D$(e,g.node(),g.before(),e.steps.length)}return e}function Zie(e,t,r){let n=e.resolve(t);if(n.parent.canReplaceWith(n.index(),n.index(),r))return t;if(n.parentOffset==0)for(let s=n.depth-1;s>=0;s--){let i=n.index(s);if(n.node(s).canReplaceWith(i,i,r))return n.before(s+1);if(i>0)return null}if(n.parentOffset==n.parent.content.size)for(let s=n.depth-1;s>=0;s--){let i=n.indexAfter(s);if(n.node(s).canReplaceWith(i,i,r))return n.after(s+1);if(i<n.node(s).childCount)return null}return null}function B$(e,t,r){let n=e.resolve(t);if(!r.content.size)return t;let s=r.content;for(let i=0;i<r.openStart;i++)s=s.firstChild.content;for(let i=1;i<=(r.openStart==0&&r.size?2:1);i++)for(let o=n.depth;o>=0;o--){let l=o==n.depth?0:n.pos<=(n.start(o+1)+n.end(o+1))/2?-1:1,d=n.index(o)+(l>0?1:0),u=n.node(o),g=!1;if(i==1)g=u.canReplace(d,d,s);else{let f=u.contentMatchAt(d).findWrapping(s.firstChild.type);g=f&&u.canReplaceWith(d,d,f[0])}if(g)return l==0?n.pos:l<0?n.before(o+1):n.after(o+1)}return null}
vendor: 4,181 bytes, line 878
878function Ty(e,t,r=t,n=we.empty){if(t==r&&!n.size)return null;let s=e.resolve(t),i=e.resolve(r);return L$(s,i,n)?new or(t,r,n):new Jie(s,i,n).fit()}function L$(e,t,r){return!r.openStart&&!r.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),r.content)}class Jie{constructor(t,r,n){this.$from=t,this.$to=r,this.unplaced=n,this.frontier=[],this.placed=he.empty;for(let s=0;s<=t.depth;s++){let i=t.node(s);this.frontier.push({type:i.type,match:i.contentMatchAt(t.indexAfter(s))})}for(let s=t.depth;s>0;s--)this.placed=he.from(t.node(s).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let u=this.findFittable();u?this.placeNodes(u):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),r=this.placed.size-this.depth-this.$from.depth,n=this.$from,s=this.close(t<0?this.$to:n.doc.resolve(t));if(!s)return null;let i=this.placed,o=n.depth,l=s.depth;for(;o&&l&&i.childCount==1;)i=i.firstChild.content,o--,l--;let d=new we(i,o,l);return t>-1?new Pr(n.pos,t,this.$to.pos,this.$to.end(),d,r):d.size||n.pos!=this.$to.pos?new or(n.pos,s.pos,d):null}findFittable(){let t=this.unplaced.openStart;for(let r=this.unplaced.content,n=0,s=this.unplaced.openEnd;n<t;n++){let i=r.firstChild;if(r.childCount>1&&(s=0),i.type.spec.isolating&&s<=n){t=n;break}r=i.content}for(let r=1;r<=2;r++)for(let n=r==1?t:this.unplaced.openStart;n>=0;n--){let s,i=null;n?(i=mv(this.unplaced.content,n-1).firstChild,s=i.content):s=this.unplaced.content;let o=s.firstChild;for(let l=this.depth;l>=0;l--){let{type:d,match:u}=this.frontier[l],g,f=null;if(r==1&&(o?u.matchType(o.type)||(f=u.fillBefore(he.from(o),!1)):i&&d.compatibleContent(i.type)))return{sliceDepth:n,frontierDepth:l,parent:i,inject:f};if(r==2&&o&&(g=u.findWrapping(o.type)))return{sliceDepth:n,frontierDepth:l,parent:i,wrap:g};if(i&&u.matchType(i.type))break}}}openMore(){let{content:t,openStart:r,openEnd:n}=this.unplaced,s=mv(t,r);return!s.childCount||s.firstChild.isLeaf?!1:(this.unplaced=new we(t,r+1,Math.max(n,s.size+r>=t.size-n?r+1:0)),!0)}dropNode(){let{content:t,openStart:r,openEnd:n}=this.unplaced,s=mv(t,r);if(s.childCount<=1&&r>0){let i=t.size-r<=r+s.size;this.unplaced=new we(gg(t,r-1,1),r-1,i?r-1:n)}else this.unplaced=new we(gg(t,r,1),r,n)}placeNodes({sliceDepth:t,frontierDepth:r,parent:n,inject:s,wrap:i}){for(;this.depth>r;)this.closeFrontierNode();if(i)for(let b=0;b<i.length;b++)this.openFrontierNode(i[b]);let o=this.unplaced,l=n?n.content:o.content,d=o.openStart-t,u=0,g=[],{match:f,type:m}=this.frontier[r];if(s){for(let b=0;b<s.childCount;b++)g.push(s.child(b));f=f.matchFragment(s)}let y=l.size+t-(o.content.size-o.openEnd);for(;u<l.childCount;){let b=l.child(u),v=f.matchType(b.type);if(!v)break;u++,(u>1||d==0||b.content.size)&&(f=v,g.push(W$(b.mark(m.allowedMarks(b.marks)),u==1?d:0,u==l.childCount?y:-1)))}let S=u==l.childCount;S||(y=-1),this.placed=fg(this.placed,r,he.from(g)),this.frontier[r].match=f,S&&y<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let b=0,v=l;b<y;b++){let j=v.lastChild;this.frontier.push({type:j.type,match:j.contentMatchAt(j.childCount)}),v=j.content}this.unplaced=S?t==0?we.empty:new we(gg(o.content,t-1,1),t-1,y<0?o.openEnd:t-1):new we(gg(o.content,t,u),o.openStart,o.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let t=this.frontier[this.depth],r;if(!t.type.isTextblock||!xv(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(r=this.findCloseLevel(this.$to))&&r.depth==this.depth)return-1;let{depth:n}=this.$to,s=this.$to.after(n);for(;n>1&&s==this.$to.end(--n);)++s;return s}findCloseLevel(t){e:for(let r=Math.min(this.depth,t.depth);r>=0;r--){let{match:n,type:s}=this.frontier[r],i=r<t.depth&&t.end(r+1)==t.pos+(t.depth-(r+1)),o=xv(t,r,s,n,i);if(o){for(let l=r-1;l>=0;l--){let{match:d,type:u}=this.frontier[l],g=xv(t,l,u,d,!0);if(!g||g.childCount)continue e}return{depth:r,fit:o,move:i?t.doc.resolve(t.after(r+1)):t}}}}close(t){let r=this.findCloseLevel(t);if(!r)return null;for(;this.depth>r.depth;)this.closeFrontierNode();r.fit.childCount&&(this.placed=fg(this.placed,r.depth,r.fit)),t=r.move;for(let n=r.depth+1;n<=t.depth;
vendor: 3,165 bytes, line 878
878n++){let s=t.node(n),i=s.type.contentMatch.fillBefore(s.content,!0,t.index(n));this.openFrontierNode(s.type,s.attrs,i)}return t}openFrontierNode(t,r=null,n){let s=this.frontier[this.depth];s.match=s.match.matchType(t),this.placed=fg(this.placed,this.depth,he.from(t.create(r,n))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let r=this.frontier.pop().match.fillBefore(he.empty,!0);r.childCount&&(this.placed=fg(this.placed,this.frontier.length,r))}}function gg(e,t,r){return t==0?e.cutByIndex(r,e.childCount):e.replaceChild(0,e.firstChild.copy(gg(e.firstChild.content,t-1,r)))}function fg(e,t,r){return t==0?e.append(r):e.replaceChild(e.childCount-1,e.lastChild.copy(fg(e.lastChild.content,t-1,r)))}function mv(e,t){for(let r=0;r<t;r++)e=e.firstChild.content;return e}function W$(e,t,r){if(t<=0)return e;let n=e.content;return t>1&&(n=n.replaceChild(0,W$(n.firstChild,t-1,n.childCount==1?r-1:0))),t>0&&(n=e.type.contentMatch.fillBefore(n).append(n),r<=0&&(n=n.append(e.type.contentMatch.matchFragment(n).fillBefore(he.empty,!0)))),e.copy(n)}function xv(e,t,r,n,s){let i=e.node(t),o=s?e.indexAfter(t):e.index(t);if(o==i.childCount&&!r.compatibleContent(i.type))return null;let l=n.fillBefore(i.content,!0,o);return l&&!eoe(r,i.content,o)?l:null}function eoe(e,t,r){for(let n=r;n<t.childCount;n++)if(!e.allowsMarks(t.child(n).marks))return!0;return!1}function toe(e){return e.spec.defining||e.spec.definingForContent}function roe(e,t,r,n){if(!n.size)return e.deleteRange(t,r);let s=e.doc.resolve(t),i=e.doc.resolve(r);if(L$(s,i,n))return e.step(new or(t,r,n));let o=F$(s,i);o[o.length-1]==0&&o.pop();let l=-(s.depth+1);o.unshift(l);for(let m=s.depth,y=s.pos-1;m>0;m--,y--){let S=s.node(m).type.spec;if(S.defining||S.definingAsContext||S.isolating)break;o.indexOf(m)>-1?l=m:s.before(m)==y&&o.splice(1,0,-m)}let d=o.indexOf(l),u=[],g=n.openStart;for(let m=n.content,y=0;;y++){let S=m.firstChild;if(u.push(S),y==n.openStart)break;m=S.content}for(let m=g-1;m>=0;m--){let y=u[m],S=toe(y.type);if(S&&!y.sameMarkup(s.node(Math.abs(l)-1)))g=m;else if(S||!y.type.isTextblock)break}for(let m=n.openStart;m>=0;m--){let y=(m+g+1)%(n.openStart+1),S=u[y];if(S)for(let b=0;b<o.length;b++){let v=o[(b+d)%o.length],j=!0;v<0&&(j=!1,v=-v);let k=s.node(v-1),P=s.index(v-1);if(k.canReplaceWith(P,P,S.type,S.marks))return e.replace(s.before(v),j?i.after(v):r,new we($$(n.content,0,n.openStart,y),y,n.openEnd))}}let f=e.steps.length;for(let m=o.length-1;m>=0&&(e.replace(t,r,n),!(e.steps.length>f));m--){let y=o[m];y<0||(t=s.before(y),r=i.after(y))}}function $$(e,t,r,n,s){if(t<r){let i=e.firstChild;e=e.replaceChild(0,i.copy($$(i.content,t+1,r,n,i)))}if(t>n){let i=s.contentMatchAt(0),o=i.fillBefore(e).append(e);e=o.append(i.matchFragment(o).fillBefore(he.empty,!0))}return e}function noe(e,t,r,n){if(!n.isInline&&t==r&&e.doc.resolve(t).parent.content.size){let s=Zie(e.doc,t,n.type);s!=null&&(t=r=s)}e.replaceRange(t,r,new we(he.from(n),0,0))}function aoe(e,t,r){let n=e.doc.resolve(t),s=e.doc.resolve(r);if(n.parent.isTextblock&&s.parent.isTextblock&&n.start()!=s.start()&&n.parentOffset==0&&s.parentOffset==0){let o=n.sharedDepth(r),l=!1;for(let d=n.depth;d>o;
vendor: 4,154 bytes, line 878
878d--)n.node(d).type.spec.isolating&&(l=!0);for(let d=s.depth;d>o;d--)s.node(d).type.spec.isolating&&(l=!0);if(!l){for(let d=n.depth;d>0&&t==n.start(d);d--)t=n.before(d);for(let d=s.depth;d>0&&r==s.start(d);d--)r=s.before(d);n=e.doc.resolve(t),s=e.doc.resolve(r)}}let i=F$(n,s);for(let o=0;o<i.length;o++){let l=i[o],d=o==i.length-1;if(d&&l==0||n.node(l).type.contentMatch.validEnd)return e.delete(n.start(l),s.end(l));if(l>0&&(d||n.node(l-1).canReplace(n.index(l-1),s.indexAfter(l-1))))return e.delete(n.before(l),s.after(l))}for(let o=1;o<=n.depth&&o<=s.depth;o++)if(t-n.start(o)==n.depth-o&&r>n.end(o)&&s.end(o)-r!=s.depth-o&&n.start(o-1)==s.start(o-1)&&n.node(o-1).canReplace(n.index(o-1),s.index(o-1)))return e.delete(n.before(o),r);e.delete(t,r)}function F$(e,t){let r=[],n=Math.min(e.depth,t.depth);for(let s=n;s>=0;s--){let i=e.start(s);if(i<e.pos-(e.depth-s)||t.end(s)>t.pos+(t.depth-s)||e.node(s).type.spec.isolating||t.node(s).type.spec.isolating)break;(i==t.start(s)||s==e.depth&&s==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&s&&t.start(s-1)==i-1)&&r.push(s)}return r}class qd extends Yr{constructor(t,r,n){super(),this.pos=t,this.attr=r,this.value=n}apply(t){let r=t.nodeAt(this.pos);if(!r)return lr.fail("No node at attribute step's position");let n=Object.create(null);for(let i in r.attrs)n[i]=r.attrs[i];n[this.attr]=this.value;let s=r.type.create(n,null,r.marks);return lr.fromReplace(t,this.pos,this.pos+1,new we(he.from(s),0,r.isLeaf?0:1))}getMap(){return $n.empty}invert(t){return new qd(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let r=t.mapResult(this.pos,1);return r.deletedAfter?null:new qd(r.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,r){if(typeof r.pos!="number"||typeof r.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new qd(r.pos,r.attr,r.value)}}Yr.jsonID("attr",qd);class nf extends Yr{constructor(t,r){super(),this.attr=t,this.value=r}apply(t){let r=Object.create(null);for(let s in t.attrs)r[s]=t.attrs[s];r[this.attr]=this.value;let n=t.type.create(r,t.content,t.marks);return lr.ok(n)}getMap(){return $n.empty}invert(t){return new nf(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,r){if(typeof r.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new nf(r.attr,r.value)}}Yr.jsonID("docAttr",nf);let iu=class extends Error{};iu=function e(t){let r=Error.call(this,t);return r.__proto__=e.prototype,r};iu.prototype=Object.create(Error.prototype);iu.prototype.constructor=iu;iu.prototype.name="TransformError";class H${constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new rf}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let r=this.maybeStep(t);if(r.failed)throw new iu(r.failed);return this}maybeStep(t){let r=t.apply(this.doc);return r.failed||this.addStep(t,r.doc),r}get docChanged(){return this.steps.length>0}changedRange(){let t=1e9,r=-1e9;for(let n=0;n<this.mapping.maps.length;n++){let s=this.mapping.maps[n];n&&(t=s.map(t,1),r=s.map(r,-1)),s.forEach((i,o,l,d)=>{t=Math.min(t,l),r=Math.max(r,d)})}return t==1e9?null:{from:t,to:r}}addStep(t,r){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=r}replace(t,r=t,n=we.empty){let s=Ty(this.doc,t,r,n);return s&&this.step(s),this}replaceWith(t,r,n){return this.replace(t,r,new we(he.from(n),0,0))}delete(t,r){return this.replace(t,r,we.empty)}insert(t,r){return this.replaceWith(t,t,r)}replaceRange(t,r,n){return roe(this,t,r,n),this}replaceRangeWith(t,r,n){return noe(this,t,r,n),this}deleteRange(t,r){return aoe(this,t,r),this}lift(t,r){return Fie(this,t,r),this}join(t,r=1){return Yie(this,t,r),this}wrap(t,r){return Uie(this,t,r),this}setBlockType(t,r=t,n,s=null){return Gie(this,t,r,n,s),this}setNodeMarkup(t,r,n=null,s){return Xie(this,t,r,n,s),this}setNodeAttribute(t,r,n){return this.step(new qd(t,r,n)),this}setDocAttribute(t,r){return this.step(new nf(t,r)),this}addNodeMark(t,r){return this.step(new vo(t,r)),this}
vendor: 2,758 bytes, line 878
878removeNodeMark(t,r){let n=this.doc.nodeAt(t);if(!n)throw new RangeError("No node at position "+t);if(r instanceof kt)r.isInSet(n.marks)&&this.step(new nc(t,r));else{let s=n.marks,i,o=[];for(;i=r.isInSet(s);)o.push(new nc(t,i)),s=i.removeFromSet(s);for(let l=o.length-1;l>=0;l--)this.step(o[l])}return this}split(t,r=1,n){return Kie(this,t,r,n),this}addMark(t,r,n){return Lie(this,t,r,n),this}removeMark(t,r,n){return Wie(this,t,r,n),this}clearIncompatible(t,r,n){return vA(this,t,r,n),this}}const yv=Object.create(null);class Ve{constructor(t,r,n){this.$anchor=t,this.$head=r,this.ranges=n||[new soe(t.min(r),t.max(r))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let r=0;r<t.length;r++)if(t[r].$from.pos!=t[r].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(t,r=we.empty){let n=r.content.lastChild,s=null;for(let l=0;l<r.openEnd;l++)s=n,n=n.lastChild;let i=t.steps.length,o=this.ranges;for(let l=0;l<o.length;l++){let{$from:d,$to:u}=o[l],g=t.mapping.slice(i);t.replaceRange(g.map(d.pos),g.map(u.pos),l?we.empty:r),l==0&&tO(t,i,(n?n.isInline:s&&s.isTextblock)?-1:1)}}replaceWith(t,r){let n=t.steps.length,s=this.ranges;for(let i=0;i<s.length;i++){let{$from:o,$to:l}=s[i],d=t.mapping.slice(n),u=d.map(o.pos),g=d.map(l.pos);i?t.deleteRange(u,g):(t.replaceRangeWith(u,g,r),tO(t,n,r.isInline?-1:1))}}static findFrom(t,r,n=!1){let s=t.parent.inlineContent?new $e(t):Od(t.node(0),t.parent,t.pos,t.index(),r,n);if(s)return s;for(let i=t.depth-1;i>=0;i--){let o=r<0?Od(t.node(0),t.node(i),t.before(i+1),t.index(i),r,n):Od(t.node(0),t.node(i),t.after(i+1),t.index(i)+1,r,n);if(o)return o}return null}static near(t,r=1){return this.findFrom(t,r)||this.findFrom(t,-r)||new qn(t.node(0))}static atStart(t){return Od(t,t,0,0,1)||new qn(t)}static atEnd(t){return Od(t,t,t.content.size,t.childCount,-1)||new qn(t)}static fromJSON(t,r){if(!r||!r.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=yv[r.type];if(!n)throw new RangeError(`No selection type ${r.type} defined`);return n.fromJSON(t,r)}static jsonID(t,r){if(t in yv)throw new RangeError("Duplicate use of selection JSON ID "+t);return yv[t]=r,r.prototype.jsonID=t,r}getBookmark(){return $e.between(this.$anchor,this.$head).getBookmark()}}Ve.prototype.visible=!0;class soe{constructor(t,r){this.$from=t,this.$to=r}}let JE=!1;function eO(e){!JE&&!e.parent.inlineContent&&(JE=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class $e extends Ve{constructor(t,r=t){eO(t),eO(r),super(t,r)}
vendor: 6,604 bytes, line 878
878get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,r){let n=t.resolve(r.map(this.head));if(!n.parent.inlineContent)return Ve.near(n);let s=t.resolve(r.map(this.anchor));return new $e(s.parent.inlineContent?s:n,n)}replace(t,r=we.empty){if(super.replace(t,r),r==we.empty){let n=this.$from.marksAcross(this.$to);n&&t.ensureMarks(n)}}eq(t){return t instanceof $e&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new Ay(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,r){if(typeof r.anchor!="number"||typeof r.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new $e(t.resolve(r.anchor),t.resolve(r.head))}static create(t,r,n=r){let s=t.resolve(r);return new this(s,n==r?s:t.resolve(n))}static between(t,r,n){let s=t.pos-r.pos;if((!n||s)&&(n=s>=0?1:-1),!r.parent.inlineContent){let i=Ve.findFrom(r,n,!0)||Ve.findFrom(r,-n,!0);if(i)r=i.$head;else return Ve.near(r,n)}return t.parent.inlineContent||(s==0?t=r:(t=(Ve.findFrom(t,-n,!0)||Ve.findFrom(t,n,!0)).$anchor,t.pos<r.pos!=s<0&&(t=r))),new $e(t,r)}}Ve.jsonID("text",$e);class Ay{constructor(t,r){this.anchor=t,this.head=r}map(t){return new Ay(t.map(this.anchor),t.map(this.head))}resolve(t){return $e.between(t.resolve(this.anchor),t.resolve(this.head))}}class De extends Ve{constructor(t){let r=t.nodeAfter,n=t.node(0).resolve(t.pos+r.nodeSize);super(t,n),this.node=r}map(t,r){let{deleted:n,pos:s}=r.mapResult(this.anchor),i=t.resolve(s);return n?Ve.near(i):new De(i)}content(){return new we(he.from(this.node),0,0)}eq(t){return t instanceof De&&t.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new jA(this.anchor)}static fromJSON(t,r){if(typeof r.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new De(t.resolve(r.anchor))}static create(t,r){return new De(t.resolve(r))}static isSelectable(t){return!t.isText&&t.type.spec.selectable!==!1}}De.prototype.visible=!1;Ve.jsonID("node",De);class jA{constructor(t){this.anchor=t}map(t){let{deleted:r,pos:n}=t.mapResult(this.anchor);return r?new Ay(n,n):new jA(n)}resolve(t){let r=t.resolve(this.anchor),n=r.nodeAfter;return n&&De.isSelectable(n)?new De(r):Ve.near(r)}}class qn extends Ve{constructor(t){super(t.resolve(0),t.resolve(t.content.size))}replace(t,r=we.empty){if(r==we.empty){t.delete(0,t.doc.content.size);let n=Ve.atStart(t.doc);n.eq(t.selection)||t.setSelection(n)}else super.replace(t,r)}toJSON(){return{type:"all"}}static fromJSON(t){return new qn(t)}map(t){return new qn(t)}eq(t){return t instanceof qn}getBookmark(){return ioe}}Ve.jsonID("all",qn);const ioe={map(){return this},resolve(e){return new qn(e)}};function Od(e,t,r,n,s,i=!1){if(t.inlineContent)return $e.create(e,r);for(let o=n-(s>0?0:1);s>0?o<t.childCount:o>=0;o+=s){let l=t.child(o);if(l.isAtom){if(!i&&De.isSelectable(l))return De.create(e,r-(s<0?l.nodeSize:0))}else{let d=Od(e,l,r+s,s<0?l.childCount:0,s,i);if(d)return d}r+=l.nodeSize*s}return null}function tO(e,t,r){let n=e.steps.length-1;if(n<t)return;let s=e.steps[n];if(!(s instanceof or||s instanceof Pr))return;let i=e.mapping.maps[n],o;i.forEach((l,d,u,g)=>{o==null&&(o=g)}),e.setSelection(Ve.near(e.doc.resolve(o),r))}const rO=1,Ym=2,nO=4;class ooe extends H${constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(t){if(t.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=t,this.curSelectionFor=this.steps.length,this.updated=(this.updated|rO)&~Ym,this.storedMarks=null,this}get selectionSet(){return(this.updated&rO)>0}setStoredMarks(t){return this.storedMarks=t,this.updated|=Ym,this}ensureMarks(t){return kt.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&Ym)>0}addStep(t,r){super.addStep(t,r),this.updated=this.updated&~Ym,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,r=!0){let n=this.selection;return r&&(t=t.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||kt.none))),n.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,r,n){let s=this.doc.type.schema;if(r==null)return t?this.replaceSelectionWith(s.text(t),!0):this.deleteSelection();{if(n==null&&(n=r),!t)return this.deleteRange(r,n);let i=this.storedMarks;if(!i){let o=this.doc.resolve(r);i=n==r?o.marks():o.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(r,n,s.text(t,i)),!this.selection.empty&&this.selection.to==r+t.length&&this.setSelection(Ve.near(this.selection.$to)),this}}setMeta(t,r){return this.meta[typeof t=="string"?t:t.key]=r,this}getMeta(t){return this.meta[typeof t=="string"?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=nO,this}get scrolledIntoView(){return(this.updated&nO)>0}}function aO(e,t){return!t||!e?e:e.bind(t)}class hg{constructor(t,r,n){this.name=t,this.init=aO(r.init,n),this.apply=aO(r.apply,n)}}const loe=[new hg("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new hg("selection",{init(e,t){return e.selection||Ve.atStart(t.doc)},apply(e){return e.selection}}),new hg("storedMarks",{init(e){return e.storedMarks||null},apply(e,t,r,n){return n.selection.$cursor?e.storedMarks:null}}),new hg("scrollToSelection",{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})];class bv{constructor(t,r){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=loe.slice(),r&&r.forEach(n=>{if(this.pluginsByKey[n.key])throw new RangeError("Adding different instances of a keyed plugin ("+n.key+")");this.plugins.push(n),this.pluginsByKey[n.key]=n,n.spec.state&&this.fields.push(new hg(n.key,n.spec.state,n))})}}class Dd{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}
vendor: 4,141 bytes, line 878
878apply(t){return this.applyTransaction(t).state}filterTransaction(t,r=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=r){let s=this.config.plugins[n];if(s.spec.filterTransaction&&!s.spec.filterTransaction.call(s,t,this))return!1}return!0}applyTransaction(t){if(!this.filterTransaction(t))return{state:this,transactions:[]};let r=[t],n=this.applyInner(t),s=null;for(;;){let i=!1;for(let o=0;o<this.config.plugins.length;o++){let l=this.config.plugins[o];if(l.spec.appendTransaction){let d=s?s[o].n:0,u=s?s[o].state:this,g=d<r.length&&l.spec.appendTransaction.call(l,d?r.slice(d):r,u,n);if(g&&n.filterTransaction(g,o)){if(g.setMeta("appendedTransaction",t),!s){s=[];for(let f=0;f<this.config.plugins.length;f++)s.push(f<o?{state:n,n:r.length}:{state:this,n:0})}r.push(g),n=n.applyInner(g),i=!0}s&&(s[o]={state:n,n:r.length})}}if(!i)return{state:n,transactions:r}}}applyInner(t){if(!t.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let r=new Dd(this.config),n=this.config.fields;for(let s=0;s<n.length;s++){let i=n[s];r[i.name]=i.apply(t,this[i.name],this,r)}return r}get tr(){return new ooe(this)}static create(t){let r=new bv(t.doc?t.doc.type.schema:t.schema,t.plugins),n=new Dd(r);for(let s=0;s<r.fields.length;s++)n[r.fields[s].name]=r.fields[s].init(t,n);return n}reconfigure(t){let r=new bv(this.schema,t.plugins),n=r.fields,s=new Dd(r);for(let i=0;i<n.length;i++){let o=n[i].name;s[o]=this.hasOwnProperty(o)?this[o]:n[i].init(t,s)}return s}toJSON(t){let r={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(r.storedMarks=this.storedMarks.map(n=>n.toJSON())),t&&typeof t=="object")for(let n in t){if(n=="doc"||n=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let s=t[n],i=s.spec.state;i&&i.toJSON&&(r[n]=i.toJSON.call(s,this[s.key]))}return r}static fromJSON(t,r,n){if(!r)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let s=new bv(t.schema,t.plugins),i=new Dd(s);return s.fields.forEach(o=>{if(o.name=="doc")i.doc=Po.fromJSON(t.schema,r.doc);else if(o.name=="selection")i.selection=Ve.fromJSON(i.doc,r.selection);else if(o.name=="storedMarks")r.storedMarks&&(i.storedMarks=r.storedMarks.map(t.schema.markFromJSON));else{if(n)for(let l in n){let d=n[l],u=d.spec.state;if(d.key==o.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(r,l)){i[o.name]=u.fromJSON.call(d,t,r[l],i);return}}i[o.name]=o.init(t,i)}}),i}}function q$(e,t,r){for(let n in e){let s=e[n];s instanceof Function?s=s.bind(t):n=="handleDOMEvents"&&(s=q$(s,t,{})),r[n]=s}return r}class Lt{constructor(t){this.spec=t,this.props={},t.props&&q$(t.props,this,this.props),this.key=t.key?t.key.key:U$("plugin")}getState(t){return t[this.key]}}const vv=Object.create(null);function U$(e){return e in vv?e+"$"+ ++vv[e]:(vv[e]=0,e+"$")}class yr{constructor(t="key"){this.key=U$(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}const wA=(e,t)=>e.selection.empty?!1:(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function G$(e,t){let{$cursor:r}=e.selection;return!r||(t?!t.endOfTextblock("backward",e):r.parentOffset>0)?null:r}const V$=(e,t,r)=>{let n=G$(e,r);if(!n)return!1;let s=kA(n);if(!s){let o=n.blockRange(),l=o&&Hu(o);return l==null?!1:(t&&t(e.tr.lift(o,l).scrollIntoView()),!0)}let i=s.nodeBefore;if(rF(e,s,t,-1))return!0;if(n.parent.content.size==0&&(ou(i,"end")||De.isSelectable(i)))for(let o=n.depth;;o--){let l=Ty(e.doc,n.before(o),n.after(o),we.empty);if(l&&l.slice.size<l.to-l.from){if(t){let d=e.tr.step(l);d.setSelection(ou(i,"end")?Ve.findFrom(d.doc.resolve(d.mapping.map(s.pos,-1)),-1):De.create(d.doc,s.pos-i.nodeSize)),t(d.scrollIntoView())}return!0}if(o==1||n.node(o-1).childCount>1)break}return i.isAtom&&s.depth==n.depth-1?(t&&t(e.tr.delete(s.pos-i.nodeSize,s.pos).scrollIntoView()),!0):!1},coe=(e,t,r)=>{let n=G$(e,r);if(!n)return!1;let s=kA(n);return s?X$(e,s,t):!1},doe=(e,t,r)=>{let n=Q$(e,r);if(!n)return!1;let s=PA(n);return s?X$(e,s,t):!1};function X$(e,t,r){let n=t.nodeBefore,s=n,i=t.pos-1;for(;!s.isTextblock;
vendor: 5,540 bytes, lines 878-879
878i--){if(s.type.spec.isolating)return!1;let g=s.lastChild;if(!g)return!1;s=g}let o=t.nodeAfter,l=o,d=t.pos+1;for(;!l.isTextblock;d++){if(l.type.spec.isolating)return!1;let g=l.firstChild;if(!g)return!1;l=g}let u=Ty(e.doc,i,d,we.empty);if(!u||u.from!=i||u instanceof or&&u.slice.size>=d-i)return!1;if(r){let g=e.tr.step(u);g.setSelection($e.create(g.doc,i)),r(g.scrollIntoView())}return!0}function ou(e,t,r=!1){for(let n=e;n;n=t=="start"?n.firstChild:n.lastChild){if(n.isTextblock)return!0;if(r&&n.childCount!=1)return!1}return!1}const K$=(e,t,r)=>{let{$head:n,empty:s}=e.selection,i=n;if(!s)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("backward",e):n.parentOffset>0)return!1;i=kA(n)}let o=i&&i.nodeBefore;return!o||!De.isSelectable(o)?!1:(t&&t(e.tr.setSelection(De.create(e.doc,i.pos-o.nodeSize)).scrollIntoView()),!0)};function kA(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function Q$(e,t){let{$cursor:r}=e.selection;return!r||(t?!t.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size)?null:r}const Y$=(e,t,r)=>{let n=Q$(e,r);if(!n)return!1;let s=PA(n);if(!s)return!1;let i=s.nodeAfter;if(rF(e,s,t,1))return!0;if(n.parent.content.size==0&&(ou(i,"start")||De.isSelectable(i))){let o=Ty(e.doc,n.before(),n.after(),we.empty);if(o&&o.slice.size<o.to-o.from){if(t){let l=e.tr.step(o);l.setSelection(ou(i,"start")?Ve.findFrom(l.doc.resolve(l.mapping.map(s.pos)),1):De.create(l.doc,l.mapping.map(s.pos))),t(l.scrollIntoView())}return!0}}return i.isAtom&&s.depth==n.depth-1?(t&&t(e.tr.delete(s.pos,s.pos+i.nodeSize).scrollIntoView()),!0):!1},Z$=(e,t,r)=>{let{$head:n,empty:s}=e.selection,i=n;if(!s)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)return!1;i=PA(n)}let o=i&&i.nodeAfter;return!o||!De.isSelectable(o)?!1:(t&&t(e.tr.setSelection(De.create(e.doc,i.pos)).scrollIntoView()),!0)};function PA(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let r=e.node(t);if(e.index(t)+1<r.childCount)return e.doc.resolve(e.after(t+1));if(r.type.spec.isolating)break}return null}const uoe=(e,t)=>{let r=e.selection,n=r instanceof De,s;if(n){if(r.node.isTextblock||!$o(e.doc,r.from))return!1;s=r.from}else if(s=Py(e.doc,r.from,-1),s==null)return!1;if(t){let i=e.tr.join(s);n&&i.setSelection(De.create(i.doc,s-e.doc.resolve(s).nodeBefore.nodeSize)),t(i.scrollIntoView())}return!0},poe=(e,t)=>{let r=e.selection,n;if(r instanceof De){if(r.node.isTextblock||!$o(e.doc,r.to))return!1;n=r.to}else if(n=Py(e.doc,r.to,1),n==null)return!1;return t&&t(e.tr.join(n).scrollIntoView()),!0},goe=(e,t)=>{let{$from:r,$to:n}=e.selection,s=r.blockRange(n),i=s&&Hu(s);return i==null?!1:(t&&t(e.tr.lift(s,i).scrollIntoView()),!0)},J$=(e,t)=>{let{$head:r,$anchor:n}=e.selection;return!r.parent.type.spec.code||!r.sameParent(n)?!1:(t&&t(e.tr.insertText(` 879`).scrollIntoView()),!0)};function TA(e){for(let t=0;t<e.edgeCount;t++){let{type:r}=e.edge(t);if(r.isTextblock&&!r.hasRequiredAttrs())return r}return null}const foe=(e,t)=>{let{$head:r,$anchor:n}=e.selection;if(!r.parent.type.spec.code||!r.sameParent(n))return!1;let s=r.node(-1),i=r.indexAfter(-1),o=TA(s.contentMatchAt(i));if(!o||!s.canReplaceWith(i,i,o))return!1;if(t){let l=r.after(),d=e.tr.replaceWith(l,l,o.createAndFill());d.setSelection(Ve.near(d.doc.resolve(l),1)),t(d.scrollIntoView())}return!0},eF=(e,t)=>{let r=e.selection,{$from:n,$to:s}=r;if(r instanceof qn||n.parent.inlineContent||s.parent.inlineContent)return!1;let i=TA(s.parent.contentMatchAt(s.indexAfter()));if(!i||!i.isTextblock)return!1;if(t){let o=(!n.parentOffset&&s.index()<s.parent.childCount?n:s).pos,l=e.tr.insert(o,i.createAndFill());l.setSelection($e.create(l.doc,o+1)),t(l.scrollIntoView())}return!0},tF=(e,t)=>{let{$cursor:r}=e.selection;if(!r||r.parent.content.size)return!1;if(r.depth>1&&r.after()!=r.end(-1)){let i=r.before();if(ui(e.doc,i))return t&&t(e.tr.split(i).scrollIntoView()),!0}let n=r.blockRange(),s=n&&Hu(n);return s==null?!1:(t&&t(e.tr.lift(n,s).scrollIntoView()),!0)};function hoe(e){return(t,r)=>{let{$from:n,$to:s}=t.selection;if(t.selection instanceof De&&t.selection.node.isBlock)return!n.parentOffset||!ui(t.doc,n.pos)?!1:(r&&r(t.tr.split(n.pos).scrollIntoView()),!0);if(!n.depth)return!1;let i=[],o,l,d=!1,u=!1;for(let y=n.depth;;y--)if(n.node(y).isBlock){d=n.end(y)==n.pos+(n.depth-y),u=n.start(y)==n.pos-(n.depth-y),l=TA(n.node(y-1).contentMatchAt(n.indexAfter(y-1))),i.unshift(d&&l?{type:l}:null),o=y;break}else{if(y==1)return!1;i.unshift(null)}let g=t.tr;(t.selection instanceof $e||t.selection instanceof qn)&&g.deleteSelection();let f=g.mapping.map(n.pos),m=ui(g.doc,f,i.length,i);if(m||(i[0]=l?{type:l}:null,m=ui(g.doc,f,i.length,i)),!m)return!1;if(g.split(f,i.length,i),!d&&u&&n.node(o).type!=l){let y=g.mapping.map(n.before(o)),S=g.doc.resolve(y);l&&n.node(o-1).canReplaceWith(S.index(),S.index()+1,l)&&g.setNodeMarkup(g.mapping.map(n.before(o)),l)}return r&&r(g.scrollIntoView()),!0}}const moe=hoe(),xoe=(e,t)=>{let{$from:r,to:n}=e.selection,s,i=r.sharedDepth(n);return i==0?!1:(s=r.before(i),t&&t(e.tr.setSelection(De.create(e.doc,s))),!0)};function yoe(e,t,r){let n=t.nodeBefore,s=t.nodeAfter,i=t.index();return!n||!s||!n.type.compatibleContent(s.type)?!1:!n.content.size&&t.parent.canReplace(i-1,i)?(r&&r(e.tr.delete(t.pos-n.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(i,i+1)||!(s.isTextblock||$o(e.doc,t.pos))?!1:(r&&r(e.tr.join(t.pos).scrollIntoView()),!0)}
vendor: 5,558 bytes, line 879
879function rF(e,t,r,n){let s=t.nodeBefore,i=t.nodeAfter,o,l,d=s.type.spec.isolating||i.type.spec.isolating;if(!d&&yoe(e,t,r))return!0;let u=!d&&t.parent.canReplace(t.index(),t.index()+1);if(u&&(o=(l=s.contentMatchAt(s.childCount)).findWrapping(i.type))&&l.matchType(o[0]||i.type).validEnd){if(r){let y=t.pos+i.nodeSize,S=he.empty;for(let j=o.length-1;j>=0;j--)S=he.from(o[j].create(null,S));S=he.from(s.copy(S));let b=e.tr.step(new Pr(t.pos-1,y,t.pos,y,new we(S,1,0),o.length,!0)),v=b.doc.resolve(y+2*o.length);v.nodeAfter&&v.nodeAfter.type==s.type&&$o(b.doc,v.pos)&&b.join(v.pos),r(b.scrollIntoView())}return!0}let g=i.type.spec.isolating||n>0&&d?null:Ve.findFrom(t,1),f=g&&g.$from.blockRange(g.$to),m=f&&Hu(f);if(m!=null&&m>=t.depth)return r&&r(e.tr.lift(f,m).scrollIntoView()),!0;if(u&&ou(i,"start",!0)&&ou(s,"end")){let y=s,S=[];for(;S.push(y),!y.isTextblock;)y=y.lastChild;let b=i,v=1;for(;!b.isTextblock;b=b.firstChild)v++;if(y.canReplace(y.childCount,y.childCount,b.content)){if(r){let j=he.empty;for(let P=S.length-1;P>=0;P--)j=he.from(S[P].copy(j));let k=e.tr.step(new Pr(t.pos-S.length,t.pos+i.nodeSize,t.pos+v,t.pos+i.nodeSize-v,new we(j,S.length,0),0,!0));r(k.scrollIntoView())}return!0}}return!1}function nF(e){return function(t,r){let n=t.selection,s=e<0?n.$from:n.$to,i=s.depth;for(;s.node(i).isInline;){if(!i)return!1;i--}return s.node(i).isTextblock?(r&&r(t.tr.setSelection($e.create(t.doc,e<0?s.start(i):s.end(i)))),!0):!1}}const boe=nF(-1),voe=nF(1);function Soe(e,t=null){return function(r,n){let{$from:s,$to:i}=r.selection,o=s.blockRange(i),l=o&&SA(o,e,t);return l?(n&&n(r.tr.wrap(o,l).scrollIntoView()),!0):!1}}function sO(e,t=null){return function(r,n){let s=!1;for(let i=0;i<r.selection.ranges.length&&!s;i++){let{$from:{pos:o},$to:{pos:l}}=r.selection.ranges[i];r.doc.nodesBetween(o,l,(d,u)=>{if(s)return!1;if(!(!d.isTextblock||d.hasMarkup(e,t)))if(d.type==e)s=!0;else{let g=r.doc.resolve(u),f=g.index();s=g.parent.canReplaceWith(f,f+1,e)}})}if(!s)return!1;if(n){let i=r.tr;for(let o=0;o<r.selection.ranges.length;o++){let{$from:{pos:l},$to:{pos:d}}=r.selection.ranges[o];i.setBlockType(l,d,e,t)}n(i.scrollIntoView())}return!0}}function AA(...e){return function(t,r,n){for(let s=0;s<e.length;s++)if(e[s](t,r,n))return!0;return!1}}AA(wA,V$,K$);AA(wA,Y$,Z$);AA(J$,eF,tF,moe);typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function joe(e,t=null){return function(r,n){let{$from:s,$to:i}=r.selection,o=s.blockRange(i);if(!o)return!1;let l=n?r.tr:null;return woe(l,o,e,t)?(n&&n(l.scrollIntoView()),!0):!1}}function woe(e,t,r,n=null){let s=!1,i=t,o=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(r)&&t.startIndex==0){if(t.$from.index(t.depth-1)==0)return!1;let d=o.resolve(t.start-2);i=new m0(d,d,t.depth),t.endIndex<t.parent.childCount&&(t=new m0(t.$from,o.resolve(t.$to.end(t.depth)),t.depth)),s=!0}let l=SA(i,r,n,t);return l?(e&&koe(e,t,l,s,r),!0):!1}function koe(e,t,r,n,s){let i=he.empty;for(let g=r.length-1;g>=0;g--)i=he.from(r[g].type.create(r[g].attrs,i));e.step(new Pr(t.start-(n?2:0),t.end,t.start,t.end,new we(i,0,0),r.length,!0));let o=0;for(let g=0;g<r.length;g++)r[g].type==s&&(o=g+1);let l=r.length-o,d=t.start+r.length-(n?2:0),u=t.parent;for(let g=t.startIndex,f=t.endIndex,m=!0;g<f;g++,m=!1)!m&&ui(e.doc,d,l)&&(e.split(d,l),d+=2*l),d+=u.child(g).nodeSize;return e}function Poe(e){return function(t,r){let{$from:n,$to:s}=t.selection,i=n.blockRange(s,o=>o.childCount>0&&o.firstChild.type==e);return i?r?n.node(i.depth-1).type==e?Toe(t,r,e,i):Aoe(t,r,i):!0:!1}}function Toe(e,t,r,n){let s=e.tr,i=n.end,o=n.$to.end(n.depth);i<o&&(s.step(new Pr(i-1,o,i,o,new we(he.from(r.create(null,n.parent.copy())),1,0),1,!0)),n=new m0(s.doc.resolve(n.$from.pos),s.doc.resolve(o),n.depth));const l=Hu(n);if(l==null)return!1;s.lift(n,l);let d=s.doc.resolve(s.mapping.map(i,-1)-1);return $o(s.doc,d.pos)&&d.nodeBefore.type==d.nodeAfter.type&&s.join(d.pos),t(s.scrollIntoView()),!0}function Aoe(e,t,r){let n=e.tr,s=r.parent;for(let y=r.end,S=r.endIndex-1,b=r.startIndex;S>b;S--)y-=s.child(S).nodeSize,n.delete(y-1,y+1);let i=n.doc.resolve(r.start),o=i.nodeAfter;if(n.mapping.map(r.end)!=r.start+i.nodeAfter.nodeSize)return!1;let l=r.startIndex==0,d=r.endIndex==s.childCount,u=i.node(-1),g=i.index(-1);if(!u.canReplace(g+(l?0:1),g+1,o.content.append(d?he.empty:he.from(s))))return!1;let f=i.pos,m=f+o.nodeSize;return n.step(new Pr(f-(l?1:0),m+(d?1:0),f+1,m-1,new we((l?he.empty:he.from(s.copy(he.empty))).append(d?he.empty:he.from(s.copy(he.empty))),l?0:1,d?0:1),l?0:1)),t(n.scrollIntoView()),!0}function zoe(e){return function(t,r){let{$from:n,$to:s}=t.selection,i=n.blockRange(s,u=>u.childCount>0&&u.firstChild.type==e);if(!i)return!1;let o=i.startIndex;if(o==0)return!1;let l=i.parent,d=l.child(o-1);if(d.type!=e)return!1;if(r){let u=d.lastChild&&d.lastChild.type==l.type,g=he.from(u?e.create():null),f=new we(he.from(e.create(null,he.from(l.type.create(null,g)))),u?3:1,0),m=i.start,y=i.end;r(t.tr.step(new Pr(m-(u?3:1),y,m,y,f,1,!0)).scrollIntoView())}return!0}}const _r=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},lu=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t};let GP=null;const ti=function(e,t,r){let n=GP||(GP=document.createRange());return n.setEnd(e,r??e.nodeValue.length),n.setStart(e,t||0),n},Coe=function(){GP=null},ac=function(e,t,r,n){return r&&(iO(e,t,r,n,-1)||iO(e,t,r,n,1))},Eoe=/^(img|br|input|textarea|hr)$/i;function iO(e,t,r,n,s){for(var i;;){if(e==r&&t==n)return!0;
vendor: 1,085 bytes, line 879
879if(t==(s<0?0:pa(e))){let o=e.parentNode;if(!o||o.nodeType!=1||ah(e)||Eoe.test(e.nodeName)||e.contentEditable=="false")return!1;t=_r(e)+(s<0?0:1),e=o}else if(e.nodeType==1){let o=e.childNodes[t+(s<0?-1:0)];if(o.nodeType==1&&o.contentEditable=="false")if(!((i=o.pmViewDesc)===null||i===void 0)&&i.ignoreForSelection)t+=s;else return!1;else e=o,t=s<0?pa(e):0}else return!1}}function pa(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function Ooe(e,t){for(;;){if(e.nodeType==3&&t)return e;if(e.nodeType==1&&t>0){if(e.contentEditable=="false")return null;e=e.childNodes[t-1],t=pa(e)}else if(e.parentNode&&!ah(e))t=_r(e),e=e.parentNode;else return null}}function Moe(e,t){for(;;){if(e.nodeType==3&&t<e.nodeValue.length)return e;if(e.nodeType==1&&t<e.childNodes.length){if(e.contentEditable=="false")return null;e=e.childNodes[t],t=0}else if(e.parentNode&&!ah(e))t=_r(e)+1,e=e.parentNode;else return null}}function Noe(e,t,r){for(let n=t==0,s=t==pa(e);n||s;){if(e==r)return!0;let i=_r(e);if(e=e.parentNode,!e)return!1;n=n&&i==0,s=s&&i==pa(e)}}function ah(e){let t;for(let r=e;
vendor: 18,375 bytes, lines 879-880
879r&&!(t=r.pmViewDesc);r=r.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const zy=function(e){return e.focusNode&&ac(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function Ol(e,t){let r=document.createEvent("Event");return r.initEvent("keydown",!0,!0),r.keyCode=e,r.key=r.code=t,r}function Roe(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function Doe(e,t,r){if(e.caretPositionFromPoint)try{let n=e.caretPositionFromPoint(t,r);if(n)return{node:n.offsetNode,offset:Math.min(pa(n.offsetNode),n.offset)}}catch{}if(e.caretRangeFromPoint){let n=e.caretRangeFromPoint(t,r);if(n)return{node:n.startContainer,offset:Math.min(pa(n.startContainer),n.startOffset)}}}const js=typeof navigator<"u"?navigator:null,oO=typeof document<"u"?document:null,Fo=js&&js.userAgent||"",VP=/Edge\/(\d+)/.exec(Fo),aF=/MSIE \d/.exec(Fo),XP=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Fo),kn=!!(aF||XP||VP),To=aF?document.documentMode:XP?+XP[1]:VP?+VP[1]:0,fa=!kn&&/gecko\/(\d+)/i.test(Fo);fa&&+(/Firefox\/(\d+)/.exec(Fo)||[0,0])[1];const KP=!kn&&/Chrome\/(\d+)/.exec(Fo),Br=!!KP,sF=KP?+KP[1]:0,Qr=!kn&&!!js&&/Apple Computer/.test(js.vendor),cu=Qr&&(/Mobile\/\w+/.test(Fo)||!!js&&js.maxTouchPoints>2),ua=cu||(js?/Mac/.test(js.platform):!1),iF=js?/Win/.test(js.platform):!1,si=/Android \d/.test(Fo),sh=!!oO&&"webkitFontSmoothing"in oO.documentElement.style,_oe=sh?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function Ioe(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function Ks(e,t){return typeof e=="number"?e:e[t]}function Boe(e){let t=e.getBoundingClientRect(),r=t.width/e.offsetWidth||1,n=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*r,top:t.top,bottom:t.top+e.clientHeight*n}}function lO(e,t,r){let n=e.someProp("scrollThreshold")||0,s=e.someProp("scrollMargin")||5,i=e.dom.ownerDocument;for(let o=r||e.dom;o;){if(o.nodeType!=1){o=lu(o);continue}let l=o,d=l==i.body,u=d?Ioe(i):Boe(l),g=0,f=0;if(t.top<u.top+Ks(n,"top")?f=-(u.top-t.top+Ks(s,"top")):t.bottom>u.bottom-Ks(n,"bottom")&&(f=t.bottom-t.top>u.bottom-u.top?t.top+Ks(s,"top")-u.top:t.bottom-u.bottom+Ks(s,"bottom")),t.left<u.left+Ks(n,"left")?g=-(u.left-t.left+Ks(s,"left")):t.right>u.right-Ks(n,"right")&&(g=t.right-u.right+Ks(s,"right")),g||f)if(d)i.defaultView.scrollBy(g,f);else{let y=l.scrollLeft,S=l.scrollTop;f&&(l.scrollTop+=f),g&&(l.scrollLeft+=g);let b=l.scrollLeft-y,v=l.scrollTop-S;t={left:t.left-b,top:t.top-v,right:t.right-b,bottom:t.bottom-v}}let m=d?"fixed":getComputedStyle(o).position;if(/^(fixed|sticky)$/.test(m))break;o=m=="absolute"?o.offsetParent:lu(o)}}function Loe(e){let t=e.dom.getBoundingClientRect(),r=Math.max(0,t.top),n,s;for(let i=(t.left+t.right)/2,o=r+1;o<Math.min(innerHeight,t.bottom);o+=5){let l=e.root.elementFromPoint(i,o);if(!l||l==e.dom||!e.dom.contains(l))continue;let d=l.getBoundingClientRect();if(d.top>=r-20){n=l,s=d.top;break}}return{refDOM:n,refTop:s,stack:oF(e.dom)}}function oF(e){let t=[],r=e.ownerDocument;for(let n=e;n&&(t.push({dom:n,top:n.scrollTop,left:n.scrollLeft}),e!=r);n=lu(n));return t}function Woe({refDOM:e,refTop:t,stack:r}){let n=e?e.getBoundingClientRect().top:0;lF(r,n==0?0:n-t)}function lF(e,t){for(let r=0;r<e.length;r++){let{dom:n,top:s,left:i}=e[r];n.scrollTop!=s+t&&(n.scrollTop=s+t),n.scrollLeft!=i&&(n.scrollLeft=i)}}let Sd=null;function $oe(e){if(e.setActive)return e.setActive();if(Sd)return e.focus(Sd);let t=oF(e);e.focus(Sd==null?{get preventScroll(){return Sd={preventScroll:!0},!0}}:void 0),Sd||(Sd=!1,lF(t,0))}function cF(e,t){let r,n=2e8,s,i=0,o=t.top,l=t.top,d,u;for(let g=e.firstChild,f=0;g;g=g.nextSibling,f++){let m;if(g.nodeType==1)m=g.getClientRects();else if(g.nodeType==3)m=ti(g).getClientRects();else continue;for(let y=0;y<m.length;y++){let S=m[y];if(S.top<=o&&S.bottom>=l){o=Math.max(S.bottom,o),l=Math.min(S.top,l);let b=S.left>t.left?S.left-t.left:S.right<t.left?t.left-S.right:0;if(b<n){r=g,n=b,s=b&&r.nodeType==3?{left:S.right<t.left?S.right:S.left,top:t.top}:t,g.nodeType==1&&b&&(i=f+(t.left>=(S.left+S.right)/2?1:0));continue}}else S.top>t.top&&!d&&S.left<=t.left&&S.right>=t.left&&(d=g,u={left:Math.max(S.left,Math.min(S.right,t.left)),top:S.top});!r&&(t.left>=S.right&&t.top>=S.top||t.left>=S.left&&t.top>=S.bottom)&&(i=f+1)}}return!r&&d&&(r=d,s=u,n=0),r&&r.nodeType==3?Foe(r,s):!r||n&&r.nodeType==1?{node:e,offset:i}:cF(r,s)}function Foe(e,t){let r=e.nodeValue.length,n=document.createRange(),s;for(let i=0;i<r;i++){n.setEnd(e,i+1),n.setStart(e,i);let o=uo(n,1);if(o.top!=o.bottom&&zA(t,o)){s={node:e,offset:i+(t.left>=(o.left+o.right)/2?1:0)};break}}return n.detach(),s||{node:e,offset:0}}function zA(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function Hoe(e,t){let r=e.parentNode;return r&&/^li$/i.test(r.nodeName)&&t.left<e.getBoundingClientRect().left?r:e}function qoe(e,t,r){let{node:n,offset:s}=cF(t,r),i=-1;if(n.nodeType==1&&!n.firstChild){let o=n.getBoundingClientRect();i=o.left!=o.right&&r.left>(o.left+o.right)/2?1:-1}return e.docView.posFromDOM(n,s,i)}function Uoe(e,t,r,n){let s=-1;for(let i=t,o=!1;i!=e.dom;){let l=e.docView.nearestDesc(i,!0),d;if(!l)return null;if(l.dom.nodeType==1&&(l.node.isBlock&&l.parent||!l.contentDOM)&&((d=l.dom.getBoundingClientRect()).width||d.height)&&(l.node.isBlock&&l.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(l.dom.nodeName)&&(!o&&d.left>n.left||d.top>n.top?s=l.posBefore:(!o&&d.right<n.left||d.bottom<n.top)&&(s=l.posAfter),o=!0),!l.contentDOM&&s<0&&!l.node.isText))return(l.node.isBlock?n.top<(d.top+d.bottom)/2:n.left<(d.left+d.right)/2)?l.posBefore:l.posAfter;i=l.dom.parentNode}return s>-1?s:e.docView.posFromDOM(t,r,-1)}function dF(e,t,r){let n=e.childNodes.length;if(n&&r.top<r.bottom)for(let s=Math.max(0,Math.min(n-1,Math.floor(n*(t.top-r.top)/(r.bottom-r.top))-2)),i=s;;){let o=e.childNodes[i];if(o.nodeType==1){let l=o.getClientRects();for(let d=0;d<l.length;d++){let u=l[d];if(zA(t,u))return dF(o,t,u)}}if((i=(i+1)%n)==s)break}return e}function Goe(e,t){let r=e.dom.ownerDocument,n,s=0,i=Doe(r,t.left,t.top);i&&({node:n,offset:s}=i);let o=(e.root.elementFromPoint?e.root:r).elementFromPoint(t.left,t.top),l;if(!o||!e.dom.contains(o.nodeType!=1?o.parentNode:o)){let u=e.dom.getBoundingClientRect();if(!zA(t,u)||(o=dF(e.dom,t,u),!o))return null}if(Qr)for(let u=o;n&&u;u=lu(u))u.draggable&&(n=void 0);if(o=Hoe(o,t),n){if(fa&&n.nodeType==1&&(s=Math.min(s,n.childNodes.length),s<n.childNodes.length)){let g=n.childNodes[s],f;g.nodeName=="IMG"&&(f=g.getBoundingClientRect()).right<=t.left&&f.bottom>t.top&&s++}let u;sh&&s&&n.nodeType==1&&(u=n.childNodes[s-1]).nodeType==1&&u.contentEditable=="false"&&u.getBoundingClientRect().top>=t.top&&s--,n==e.dom&&s==n.childNodes.length-1&&n.lastChild.nodeType==1&&t.top>n.lastChild.getBoundingClientRect().bottom?l=e.state.doc.content.size:(s==0||n.nodeType!=1||n.childNodes[s-1].nodeName!="BR")&&(l=Uoe(e,n,s,t))}l==null&&(l=qoe(e,o,t));let d=e.docView.nearestDesc(o,!0);return{pos:l,inside:d?d.posAtStart-d.border:-1}}function cO(e){return e.top<e.bottom||e.left<e.right}function uo(e,t){let r=e.getClientRects();if(r.length){let n=r[t<0?0:r.length-1];if(cO(n))return n}return Array.prototype.find.call(r,cO)||e.getBoundingClientRect()}const Voe=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function uF(e,t,r){let{node:n,offset:s,atom:i}=e.docView.domFromPos(t,r<0?-1:1),o=sh||fa;if(n.nodeType==3)if(o&&(Voe.test(n.nodeValue)||(r<0?!s:s==n.nodeValue.length))){let d=uo(ti(n,s,s),r);if(fa&&s&&/\s/.test(n.nodeValue[s-1])&&s<n.nodeValue.length){let u=uo(ti(n,s-1,s-1),-1);if(u.top==d.top){let g=uo(ti(n,s,s+1),-1);if(g.top!=d.top)return Qp(g,g.left<u.left)}}return d}else{let d=s,u=s,g=r<0?1:-1;return r<0&&!s?(u++,g=-1):r>=0&&s==n.nodeValue.length?(d--,g=1):r<0?d--:u++,Qp(uo(ti(n,d,u),g),g<0)}if(!e.state.doc.resolve(t-(i||0)).parent.inlineContent){if(i==null&&s&&(r<0||s==pa(n))){let d=n.childNodes[s-1];if(d.nodeType==1)return Sv(d.getBoundingClientRect(),!1)}if(i==null&&s<pa(n)){let d=n.childNodes[s];if(d.nodeType==1)return Sv(d.getBoundingClientRect(),!0)}return Sv(n.getBoundingClientRect(),r>=0)}if(i==null&&s&&(r<0||s==pa(n))){let d=n.childNodes[s-1],u=d.nodeType==3?ti(d,pa(d)-(o?0:1)):d.nodeType==1&&(d.nodeName!="BR"||!d.nextSibling)?d:null;if(u)return Qp(uo(u,1),!1)}if(i==null&&s<pa(n)){let d=n.childNodes[s];for(;d.pmViewDesc&&d.pmViewDesc.ignoreForCoords;)d=d.nextSibling;let u=d?d.nodeType==3?ti(d,0,o?0:1):d.nodeType==1?d:null:null;if(u)return Qp(uo(u,-1),!0)}return Qp(uo(n.nodeType==3?ti(n):n,-r),r>=0)}function Qp(e,t){if(e.width==0)return e;let r=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:r,right:r}}function Sv(e,t){if(e.height==0)return e;let r=t?e.top:e.bottom;return{top:r,bottom:r,left:e.left,right:e.right}}function pF(e,t,r){let n=e.state,s=e.root.activeElement;n!=t&&e.updateState(t),s!=e.dom&&e.focus();try{return r()}finally{n!=t&&e.updateState(n),s!=e.dom&&s&&s.focus()}}function Xoe(e,t,r){let n=t.selection,s=r=="up"?n.$from:n.$to;return pF(e,t,()=>{let{node:i}=e.docView.domFromPos(s.pos,r=="up"?-1:1);for(;;){let l=e.docView.nearestDesc(i,!0);if(!l)break;if(l.node.isBlock){i=l.contentDOM||l.dom;break}i=l.dom.parentNode}let o=uF(e,s.pos,1);for(let l=i.firstChild;l;l=l.nextSibling){let d;if(l.nodeType==1)d=l.getClientRects();else if(l.nodeType==3)d=ti(l,0,l.nodeValue.length).getClientRects();else continue;for(let u=0;u<d.length;u++){let g=d[u];if(g.bottom>g.top+1&&(r=="up"?o.top-g.top>(g.bottom-o.top)*2:g.bottom-o.bottom>(o.bottom-g.top)*2))return!1}}return!0})}const Koe=/[\u0590-\u08ac]/;function Qoe(e,t,r){let{$head:n}=t.selection;if(!n.parent.isTextblock)return!1;let s=n.parentOffset,i=!s,o=s==n.parent.content.size,l=e.domSelection();return l?!Koe.test(n.parent.textContent)||!l.modify?r=="left"||r=="backward"?i:o:pF(e,t,()=>{let{focusNode:d,focusOffset:u,anchorNode:g,anchorOffset:f}=e.domSelectionRange(),m=l.caretBidiLevel;l.modify("move",r,"character");let y=n.depth?e.docView.domAfterPos(n.before()):e.dom,{focusNode:S,focusOffset:b}=e.domSelectionRange(),v=S&&!y.contains(S.nodeType==1?S:S.parentNode)||d==S&&u==b;try{l.collapse(g,f),d&&(d!=g||u!=f)&&l.extend&&l.extend(d,u)}catch{}return m!=null&&(l.caretBidiLevel=m),v}):n.pos==n.start()||n.pos==n.end()}let dO=null,uO=null,pO=!1;function Yoe(e,t,r){return dO==t&&uO==r?pO:(dO=t,uO=r,pO=r=="up"||r=="down"?Xoe(e,t,r):Qoe(e,t,r))}const ha=0,gO=1,Dl=2,ws=3;class ih{constructor(t,r,n,s){this.parent=t,this.children=r,this.dom=n,this.contentDOM=s,this.dirty=ha,n.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,r,n){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let r=0;r<this.children.length;r++)t+=this.children[r].size;return t}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let t=0;t<this.children.length;t++)this.children[t].destroy()}posBeforeChild(t){for(let r=0,n=this.posAtStart;;r++){let s=this.children[r];if(s==t)return n;n+=s.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(t,r,n){if(this.contentDOM&&this.contentDOM.contains(t.nodeType==1?t:t.parentNode))if(n<0){let i,o;if(t==this.contentDOM)i=t.childNodes[r-1];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;i=t.previousSibling}for(;i&&!((o=i.pmViewDesc)&&o.parent==this);)i=i.previousSibling;return i?this.posBeforeChild(o)+o.size:this.posAtStart}else{let i,o;if(t==this.contentDOM)i=t.childNodes[r];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;i=t.nextSibling}for(;i&&!((o=i.pmViewDesc)&&o.parent==this);)i=i.nextSibling;return i?this.posBeforeChild(o):this.posAtEnd}let s;if(t==this.dom&&this.contentDOM)s=r>_r(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))s=t.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(r==0)for(let i=t;;i=i.parentNode){if(i==this.dom){s=!1;break}if(i.previousSibling)break}if(s==null&&r==t.childNodes.length)for(let i=t;;i=i.parentNode){if(i==this.dom){s=!0;break}if(i.nextSibling)break}}return s??n>0?this.posAtEnd:this.posAtStart}nearestDesc(t,r=!1){for(let n=!0,s=t;s;s=s.parentNode){let i=this.getDesc(s),o;if(i&&(!r||i.node))if(n&&(o=i.nodeDOM)&&!(o.nodeType==1?o.contains(t.nodeType==1?t:t.parentNode):o==t))n=!1;else return i}}getDesc(t){let r=t.pmViewDesc;for(let n=r;n;n=n.parent)if(n==this)return r}posFromDOM(t,r,n){for(let s=t;s;s=s.parentNode){let i=this.getDesc(s);if(i)return i.localPosFromDOM(t,r,n)}return-1}descAt(t){for(let r=0,n=0;r<this.children.length;r++){let s=this.children[r],i=n+s.size;if(n==t&&i!=n){for(;!s.border&&s.children.length;)for(let o=0;o<s.children.length;o++){let l=s.children[o];if(l.size){s=l;break}}return s}if(t<i)return s.descAt(t-n-s.border);n=i}}domFromPos(t,r){if(!this.contentDOM)return{node:this.dom,offset:0,atom:t+1};let n=0,s=0;for(let i=0;n<this.children.length;n++){let o=this.children[n],l=i+o.size;if(l>t||o instanceof fF){s=t-i;break}i=l}if(s)return this.children[n].domFromPos(s-this.children[n].border,r);for(let i;n&&!(i=this.children[n-1]).size&&i instanceof gF&&i.side>=0;n--);if(r<=0){let i,o=!0;for(;i=n?this.children[n-1]:null,!(!i||i.dom.parentNode==this.contentDOM);n--,o=!1);return i&&r&&o&&!i.border&&!i.domAtom?i.domFromPos(i.size,r):{node:this.contentDOM,offset:i?_r(i.dom)+1:0}}else{let i,o=!0;for(;i=n<this.children.length?this.children[n]:null,!(!i||i.dom.parentNode==this.contentDOM);n++,o=!1);return i&&o&&!i.border&&!i.domAtom?i.domFromPos(0,r):{node:this.contentDOM,offset:i?_r(i.dom):this.contentDOM.childNodes.length}}}parseRange(t,r,n=0){if(this.children.length==0)return{node:this.contentDOM,from:t,to:r,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let s=-1,i=-1;for(let o=n,l=0;;l++){let d=this.children[l],u=o+d.size;if(s==-1&&t<=u){let g=o+d.border;if(t>=g&&r<=u-d.border&&d.node&&d.contentDOM&&this.contentDOM.contains(d.contentDOM))return d.parseRange(t,r,g);t=o;for(let f=l;f>0;f--){let m=this.children[f-1];if(m.size&&m.dom.parentNode==this.contentDOM&&!m.emptyChildAt(1)){s=_r(m.dom)+1;break}t-=m.size}s==-1&&(s=0)}if(s>-1&&(u>r||l==this.children.length-1)){r=u;for(let g=l+1;g<this.children.length;g++){let f=this.children[g];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(-1)){i=_r(f.dom);break}r+=f.size}i==-1&&(i=this.contentDOM.childNodes.length);break}o=u}return{node:this.contentDOM,from:t,to:r,fromOffset:s,toOffset:i}}emptyChildAt(t){if(this.border||!this.contentDOM||!this.children.length)return!1;let r=this.children[t<0?0:this.children.length-1];return r.size==0||r.emptyChildAt(t)}domAfterPos(t){let{node:r,offset:n}=this.domFromPos(t,0);if(r.nodeType!=1||n==r.childNodes.length)throw new RangeError("No node after pos "+t);return r.childNodes[n]}setSelection(t,r,n,s=!1){let i=Math.min(t,r),o=Math.max(t,r);for(let y=0,S=0;y<this.children.length;y++){let b=this.children[y],v=S+b.size;if(i>S&&o<v)return b.setSelection(t-S-b.border,r-S-b.border,n,s);S=v}let l=this.domFromPos(t,t?-1:1),d=r==t?l:this.domFromPos(r,r?-1:1),u=n.root.getSelection(),g=n.domSelectionRange(),f=!1;if((fa||Qr)&&t==r){let{node:y,offset:S}=l;if(y.nodeType==3){if(f=!!(S&&y.nodeValue[S-1]==` 880`),f&&S==y.nodeValue.length)for(let b=y,v;b;b=b.parentNode){if(v=b.nextSibling){v.nodeName=="BR"&&(l=d={node:v.parentNode,offset:_r(v)+1});break}let j=b.pmViewDesc;if(j&&j.node&&j.node.isBlock)break}}else{let b=y.childNodes[S-1];f=b&&(b.nodeName=="BR"||b.contentEditable=="false")}}if(fa&&g.focusNode&&g.focusNode!=d.node&&g.focusNode.nodeType==1){let y=g.focusNode.childNodes[g.focusOffset];y&&y.contentEditable=="false"&&(s=!0)}if(!(s||f&&Qr)&&ac(l.node,l.offset,g.anchorNode,g.anchorOffset)&&ac(d.node,d.offset,g.focusNode,g.focusOffset))return;let m=!1;if((u.extend||t==r)&&!(f&&fa)){u.collapse(l.node,l.offset);try{t!=r&&u.extend(d.node,d.offset),m=!0}catch{}}if(!m){if(t>r){let S=l;l=d,d=S}let y=document.createRange();y.setEnd(d.node,d.offset),y.setStart(l.node,l.offset),u.removeAllRanges(),u.addRange(y)}}ignoreMutation(t){return!this.contentDOM&&t.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,r){for(let n=0,s=0;s<this.children.length;s++){let i=this.children[s],o=n+i.size;if(n==o?t<=o&&r>=n:t<o&&r>n){let l=n+i.border,d=o-i.border;if(t>=l&&r<=d){this.dirty=t==n||r==o?Dl:gO,t==l&&r==d&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=ws:i.markDirty(t-l,r-l);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?Dl:ws}n=o}this.dirty=Dl}markParentsDirty(){let t=1;for(let r=this.parent;r;r=r.parent,t++){let n=t==1?Dl:gO;r.dirty<n&&(r.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(t){return!1}}class gF extends ih{constructor(t,r,n,s){let i,o=r.type.toDOM;if(typeof o=="function"&&(o=o(n,()=>{if(!i)return s;if(i.parent)return i.parent.posBeforeChild(i)})),!r.type.spec.raw){if(o.nodeType!=1){let l=document.createElement("span");l.appendChild(o),o=l}o.contentEditable="false",o.classList.add("ProseMirror-widget")}super(t,[],o,null),this.widget=r,this.widget=r,i=this}matchesWidget(t){return this.dirty==ha&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let r=this.widget.spec.stopEvent;return r?r(t):!1}ignoreMutation(t){return t.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class Zoe extends ih{constructor(t,r,n,s){super(t,[],r,null),this.textDOM=n,this.text=s}get size(){return this.text.length}localPosFromDOM(t,r){return t!=this.textDOM?this.posAtStart+(r?this.size:0):this.posAtStart+r}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return t.type==="characterData"&&t.target.nodeValue==t.oldValue}}class sc extends ih{constructor(t,r,n,s,i){super(t,[],n,s),this.mark=r,this.spec=i}
vendor: 8,581 bytes, line 880
880static create(t,r,n,s){let i=s.nodeViews[r.type.name],o=i&&i(r,s,n);return(!o||!o.dom)&&(o=jc.renderSpec(document,r.type.spec.toDOM(r,n),null,r.attrs)),new sc(t,r,o.dom,o.contentDOM||o.dom,o)}parseRule(){return this.dirty&ws||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(t){return this.dirty!=ws&&this.mark.eq(t)}markDirty(t,r){if(super.markDirty(t,r),this.dirty!=ha){let n=this.parent;for(;!n.node;)n=n.parent;n.dirty<this.dirty&&(n.dirty=this.dirty),this.dirty=ha}}slice(t,r,n){let s=sc.create(this.parent,this.mark,!0,n),i=this.children,o=this.size;r<o&&(i=YP(i,r,o,n)),t>0&&(i=YP(i,0,t,n));for(let l=0;l<i.length;l++)i[l].parent=s;return s.children=i,s}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class Ao extends ih{constructor(t,r,n,s,i,o,l,d,u){super(t,[],i,o),this.node=r,this.outerDeco=n,this.innerDeco=s,this.nodeDOM=l}static create(t,r,n,s,i,o){let l=i.nodeViews[r.type.name],d,u=l&&l(r,i,()=>{if(!d)return o;if(d.parent)return d.parent.posBeforeChild(d)},n,s),g=u&&u.dom,f=u&&u.contentDOM;if(r.isText){if(!g)g=document.createTextNode(r.text);else if(g.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else g||({dom:g,contentDOM:f}=jc.renderSpec(document,r.type.spec.toDOM(r),null,r.attrs));!f&&!r.isText&&g.nodeName!="BR"&&(g.hasAttribute("contenteditable")||(g.contentEditable="false"),r.type.spec.draggable&&(g.draggable=!0));let m=g;return g=xF(g,n,r),u?d=new Joe(t,r,n,s,g,f||null,m,u,i,o+1):r.isText?new Cy(t,r,n,s,g,m,i):new Ao(t,r,n,s,g,f||null,m,i,o+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(t.preserveWhitespace="full"),!this.contentDOM)t.getContent=()=>this.node.content;else if(!this.contentLost)t.contentElement=this.contentDOM;else{for(let r=this.children.length-1;r>=0;r--){let n=this.children[r];if(this.dom.contains(n.dom.parentNode)){t.contentElement=n.dom.parentNode;break}}t.contentElement||(t.getContent=()=>he.empty)}return t}matchesNode(t,r,n){return this.dirty==ha&&t.eq(this.node)&&y0(r,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,r){let n=this.node.inlineContent,s=r,i=t.composing?this.localCompositionInfo(t,r):null,o=i&&i.pos>-1?i:null,l=i&&i.pos<0,d=new tle(this,o&&o.node,t);ale(this.node,this.innerDeco,(u,g,f)=>{u.spec.marks?d.syncToMarks(u.spec.marks,n,t,g):u.type.side>=0&&!f&&d.syncToMarks(g==this.node.childCount?kt.none:this.node.child(g).marks,n,t,g),d.placeWidget(u,t,s)},(u,g,f,m)=>{d.syncToMarks(u.marks,n,t,m);let y;d.findNodeMatch(u,g,f,m)||l&&t.state.selection.from>s&&t.state.selection.to<s+u.nodeSize&&(y=d.findIndexWithChild(i.node))>-1&&d.updateNodeAt(u,g,f,y,t)||d.updateNextNode(u,g,f,t,m,s)||d.addNode(u,g,f,t,s),s+=u.nodeSize}),d.syncToMarks([],n,t,0),this.node.isTextblock&&d.addTextblockHacks(),d.destroyRest(),(d.changed||this.dirty==Dl)&&(o&&this.protectLocalComposition(t,o),hF(this.contentDOM,this.children,t),cu&&sle(this.dom))}localCompositionInfo(t,r){let{from:n,to:s}=t.state.selection;if(!(t.state.selection instanceof $e)||n<r||s>r+this.node.content.size)return null;let i=t.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let o=i.nodeValue,l=ile(this.node.content,o,n-r,s-r);return l<0?null:{node:i,pos:l,text:o}}else return{node:i,pos:-1,text:""}}protectLocalComposition(t,{node:r,pos:n,text:s}){if(this.getDesc(r))return;let i=r;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let o=new Zoe(this,i,r,s);t.input.compositionNodes.push(o),this.children=YP(this.children,n,n+s.length,t,o)}update(t,r,n,s){return this.dirty==ws||!t.sameMarkup(this.node)?!1:(this.updateInner(t,r,n,s),!0)}updateInner(t,r,n,s){this.updateOuterDeco(r),this.node=t,this.innerDeco=n,this.contentDOM&&this.updateChildren(s,this.posAtStart),this.dirty=ha}updateOuterDeco(t){if(y0(t,this.outerDeco))return;let r=this.nodeDOM.nodeType!=1,n=this.dom;this.dom=mF(this.dom,this.nodeDOM,QP(this.outerDeco,this.node,r),QP(t,this.node,r)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function fO(e,t,r,n,s){xF(n,t,e);let i=new Ao(void 0,e,t,r,n,n,n,s,0);return i.contentDOM&&i.updateChildren(s,0),i}class Cy extends Ao{constructor(t,r,n,s,i,o,l){super(t,r,n,s,i,null,o,l,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,r,n,s){return this.dirty==ws||this.dirty!=ha&&!this.inParent()||!t.sameMarkup(this.node)?!1:(this.updateOuterDeco(r),(this.dirty!=ha||t.text!=this.node.text)&&t.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=t.text,s.trackWrites==this.nodeDOM&&(s.trackWrites=null)),this.node=t,this.dirty=ha,!0)}inParent(){let t=this.parent.contentDOM;for(let r=this.nodeDOM;r;r=r.parentNode)if(r==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,r,n){return t==this.nodeDOM?this.posAtStart+Math.min(r,this.node.text.length):super.localPosFromDOM(t,r,n)}ignoreMutation(t){return t.type!="characterData"&&t.type!="selection"}slice(t,r,n){let s=this.node.cut(t,r),i=document.createTextNode(s.text);return new Cy(this.parent,s,this.outerDeco,this.innerDeco,i,i,n)}markDirty(t,r){super.markDirty(t,r),this.dom!=this.nodeDOM&&(t==0||r==this.nodeDOM.nodeValue.length)&&(this.dirty=ws)}get domAtom(){return!1}isText(t){return this.node.text==t}}class fF extends ih{parseRule(){return{ignore:!0}}matchesHack(t){return this.dirty==ha&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class Joe extends Ao{constructor(t,r,n,s,i,o,l,d,u,g){super(t,r,n,s,i,o,l,u,g),this.spec=d}update(t,r,n,s){if(this.dirty==ws)return!1;if(this.spec.update&&(this.node.type==t.type||this.spec.multiType)){let i=this.spec.update(t,r,n);return i&&this.updateInner(t,r,n,s),i}else return!this.contentDOM&&!t.isLeaf?!1:super.update(t,r,n,s)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,r,n,s){this.spec.setSelection?this.spec.setSelection(t,r,n.root):super.setSelection(t,r,n,s)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return this.spec.stopEvent?this.spec.stopEvent(t):!1}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function hF(e,t,r){let n=e.firstChild,s=!1;for(let i=0;i<t.length;i++){let o=t[i],l=o.dom;if(l.parentNode==e){for(;l!=n;)n=hO(n),s=!0;n=n.nextSibling}else s=!0,e.insertBefore(l,n);if(o instanceof sc){let d=n?n.previousSibling:e.lastChild;hF(o.contentDOM,o.children,r),n=d?d.nextSibling:e.firstChild}}for(;n;)n=hO(n),s=!0;s&&r.trackWrites==e&&(r.trackWrites=null)}const Ag=function(e){e&&(this.nodeName=e)};Ag.prototype=Object.create(null);const _l=[new Ag];function QP(e,t,r){if(e.length==0)return _l;let n=r?_l[0]:new Ag,s=[n];for(let i=0;i<e.length;i++){let o=e[i].type.attrs;if(o){o.nodeName&&s.push(n=new Ag(o.nodeName));for(let l in o){let d=o[l];d!=null&&(r&&s.length==1&&s.push(n=new Ag(t.isInline?"span":"div")),l=="class"?n.class=(n.class?n.class+" ":"")+d:l=="style"?n.style=(n.style?n.style+";":"")+d:l!="nodeName"&&(n[l]=d))}}}return s}function mF(e,t,r,n){if(r==_l&&n==_l)return t;let s=t;for(let i=0;i<n.length;i++){let o=n[i],l=r[i];if(i){let d;l&&l.nodeName==o.nodeName&&s!=e&&(d=s.parentNode)&&d.nodeName.toLowerCase()==o.nodeName||(d=document.createElement(o.nodeName),d.pmIsDeco=!0,d.appendChild(s),l=_l[0]),s=d}ele(s,l||_l[0],o)}return s}function ele(e,t,r){for(let n in t)n!="class"&&n!="style"&&n!="nodeName"&&!(n in r)&&e.removeAttribute(n);for(let n in r)n!="class"&&n!="style"&&n!="nodeName"&&r[n]!=t[n]&&e.setAttribute(n,r[n]);
vendor: 4,234 bytes, line 880
880if(t.class!=r.class){let n=t.class?t.class.split(" ").filter(Boolean):[],s=r.class?r.class.split(" ").filter(Boolean):[];for(let i=0;i<n.length;i++)s.indexOf(n[i])==-1&&e.classList.remove(n[i]);for(let i=0;i<s.length;i++)n.indexOf(s[i])==-1&&e.classList.add(s[i]);e.classList.length==0&&e.removeAttribute("class")}if(t.style!=r.style){if(t.style){let n=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,s;for(;s=n.exec(t.style);)e.style.removeProperty(s[1])}r.style&&(e.style.cssText+=r.style)}}function xF(e,t,r){return mF(e,e,_l,QP(t,r,e.nodeType!=1))}function y0(e,t){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].type.eq(t[r].type))return!1;return!0}function hO(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class tle{constructor(t,r,n){this.lock=r,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=t,this.preMatch=rle(t.node.content,t)}destroyBetween(t,r){if(t!=r){for(let n=t;n<r;n++)this.top.children[n].destroy();this.top.children.splice(t,r-t),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(t,r,n,s){let i=0,o=this.stack.length>>1,l=Math.min(o,t.length);for(;i<l&&(i==o-1?this.top:this.stack[i+1<<1]).matchesMark(t[i])&&t[i].type.spec.spanning!==!1;)i++;for(;i<o;)this.destroyRest(),this.top.dirty=ha,this.index=this.stack.pop(),this.top=this.stack.pop(),o--;for(;o<t.length;){this.stack.push(this.top,this.index+1);let d=-1,u=this.top.children.length;s<this.preMatch.index&&(u=Math.min(this.index+3,u));for(let g=this.index;g<u;g++){let f=this.top.children[g];if(f.matchesMark(t[o])&&!this.isLocked(f.dom)){d=g;break}}if(d>-1)d>this.index&&(this.changed=!0,this.destroyBetween(this.index,d)),this.top=this.top.children[this.index];else{let g=sc.create(this.top,t[o],r,n);this.top.children.splice(this.index,0,g),this.top=g,this.changed=!0}this.index=0,o++}}findNodeMatch(t,r,n,s){let i=-1,o;if(s>=this.preMatch.index&&(o=this.preMatch.matches[s-this.preMatch.index]).parent==this.top&&o.matchesNode(t,r,n))i=this.top.children.indexOf(o,this.index);else for(let l=this.index,d=Math.min(this.top.children.length,l+5);l<d;l++){let u=this.top.children[l];if(u.matchesNode(t,r,n)&&!this.preMatch.matched.has(u)){i=l;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(t,r,n,s,i){let o=this.top.children[s];return o.dirty==ws&&o.dom==o.contentDOM&&(o.dirty=Dl),o.update(t,r,n,i)?(this.destroyBetween(this.index,s),this.index++,!0):!1}findIndexWithChild(t){for(;;){let r=t.parentNode;if(!r)return-1;if(r==this.top.contentDOM){let n=t.pmViewDesc;if(n){for(let s=this.index;s<this.top.children.length;s++)if(this.top.children[s]==n)return s}return-1}t=r}}updateNextNode(t,r,n,s,i,o){for(let l=this.index;l<this.top.children.length;l++){let d=this.top.children[l];if(d instanceof Ao){let u=this.preMatch.matched.get(d);if(u!=null&&u!=i)return!1;let g=d.dom,f,m=this.isLocked(g)&&!(t.isText&&d.node&&d.node.isText&&d.nodeDOM.nodeValue==t.text&&d.dirty!=ws&&y0(r,d.outerDeco));if(!m&&d.update(t,r,n,s))return this.destroyBetween(this.index,l),d.dom!=g&&(this.changed=!0),this.index++,!0;if(!m&&(f=this.recreateWrapper(d,t,r,n,s,o)))return this.destroyBetween(this.index,l),this.top.children[this.index]=f,f.contentDOM&&(f.dirty=Dl,f.updateChildren(s,o+1),f.dirty=ha),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(t,r,n,s,i,o){if(t.dirty||r.isAtom||!t.children.length||!t.node.content.eq(r.content)||!y0(n,t.outerDeco)||!s.eq(t.innerDeco))return null;let l=Ao.create(this.top,r,n,s,i,o);if(l.contentDOM){l.children=t.children,t.children=[];for(let d of l.children)d.parent=l}return t.destroy(),l}addNode(t,r,n,s,i){let o=Ao.create(this.top,t,r,n,s,i);o.contentDOM&&o.updateChildren(s,i+1),this.top.children.splice(this.index++,0,o),this.changed=!0}placeWidget(t,r,n){let s=this.index<this.top.children.length?this.top.children[this.index]:null;if(s&&s.matchesWidget(t)&&(t==s.widget||!s.widget.type.toDOM.parentNode))this.index++;else{let i=new gF(this.top,t,r,n);this.top.children.splice(this.index++,0,i),this.changed=!0}}addTextblockHacks(){let t=this.top.children[this.index-1],r=this.top;for(;t instanceof sc;)r=t,t=r.children[r.children.length-1];
vendor: 5,311 bytes, line 880
880(!t||!(t instanceof Cy)||/\n$/.test(t.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(t.node.text))&&((Qr||Br)&&t&&t.dom.contentEditable=="false"&&this.addHackNode("IMG",r),this.addHackNode("BR",this.top))}addHackNode(t,r){if(r==this.top&&this.index<r.children.length&&r.children[this.index].matchesHack(t))this.index++;else{let n=document.createElement(t);t=="IMG"&&(n.className="ProseMirror-separator",n.alt=""),t=="BR"&&(n.className="ProseMirror-trailingBreak");let s=new fF(this.top,[],n,null);r!=this.top?r.children.push(s):r.children.splice(this.index++,0,s),this.changed=!0}}isLocked(t){return this.lock&&(t==this.lock||t.nodeType==1&&t.contains(this.lock.parentNode))}}function rle(e,t){let r=t,n=r.children.length,s=e.childCount,i=new Map,o=[];e:for(;s>0;){let l;for(;;)if(n){let u=r.children[n-1];if(u instanceof sc)r=u,n=u.children.length;else{l=u,n--;break}}else{if(r==t)break e;n=r.parent.children.indexOf(r),r=r.parent}let d=l.node;if(d){if(d!=e.child(s-1))break;--s,i.set(l,s),o.push(l)}}return{index:s,matched:i,matches:o.reverse()}}function nle(e,t){return e.type.side-t.type.side}function ale(e,t,r,n){let s=t.locals(e),i=0;if(s.length==0){for(let u=0;u<e.childCount;u++){let g=e.child(u);n(g,s,t.forChild(i,g),u),i+=g.nodeSize}return}let o=0,l=[],d=null;for(let u=0;;){let g,f;for(;o<s.length&&s[o].to==i;){let v=s[o++];v.widget&&(g?(f||(f=[g])).push(v):g=v)}if(g)if(f){f.sort(nle);for(let v=0;v<f.length;v++)r(f[v],u,!!d)}else r(g,u,!!d);let m,y;if(d)y=-1,m=d,d=null;else if(u<e.childCount)y=u,m=e.child(u++);else break;for(let v=0;v<l.length;v++)l[v].to<=i&&l.splice(v--,1);for(;o<s.length&&s[o].from<=i&&s[o].to>i;)l.push(s[o++]);let S=i+m.nodeSize;if(m.isText){let v=S;o<s.length&&s[o].from<v&&(v=s[o].from);for(let j=0;j<l.length;j++)l[j].to<v&&(v=l[j].to);v<S&&(d=m.cut(v-i),m=m.cut(0,v-i),S=v,y=-1)}else for(;o<s.length&&s[o].to<S;)o++;let b=m.isInline&&!m.isLeaf?l.filter(v=>!v.inline):l.slice();n(m,b,t.forChild(i,m),y),i=S}}function sle(e){if(e.nodeName=="UL"||e.nodeName=="OL"){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}function ile(e,t,r,n){for(let s=0,i=0;s<e.childCount&&i<=n;){let o=e.child(s++),l=i;if(i+=o.nodeSize,!o.isText)continue;let d=o.text;for(;s<e.childCount;){let u=e.child(s++);if(i+=u.nodeSize,!u.isText)break;d+=u.text}if(i>=r){if(i>=n&&d.slice(n-t.length-l,n-l)==t)return n-t.length;let u=l<n?d.lastIndexOf(t,n-l-1):-1;if(u>=0&&u+t.length+l>=r)return l+u;if(r==n&&d.length>=n+t.length-l&&d.slice(n-l,n-l+t.length)==t)return n}}return-1}function YP(e,t,r,n,s){let i=[];for(let o=0,l=0;o<e.length;o++){let d=e[o],u=l,g=l+=d.size;u>=r||g<=t?i.push(d):(u<t&&i.push(d.slice(0,t-u,n)),s&&(i.push(s),s=void 0),g>r&&i.push(d.slice(r-u,d.size,n)))}return i}function CA(e,t=null){let r=e.domSelectionRange(),n=e.state.doc;if(!r.focusNode)return null;let s=e.docView.nearestDesc(r.focusNode),i=s&&s.size==0,o=e.docView.posFromDOM(r.focusNode,r.focusOffset,1);if(o<0)return null;let l=n.resolve(o),d,u;if(zy(r)){for(d=o;s&&!s.node;)s=s.parent;let f=s.node;if(s&&f.isAtom&&De.isSelectable(f)&&s.parent&&!(f.isInline&&Noe(r.focusNode,r.focusOffset,s.dom))){let m=s.posBefore;u=new De(o==m?l:n.resolve(m))}}else{if(r instanceof e.dom.ownerDocument.defaultView.Selection&&r.rangeCount>1){let f=o,m=o;for(let y=0;y<r.rangeCount;y++){let S=r.getRangeAt(y);f=Math.min(f,e.docView.posFromDOM(S.startContainer,S.startOffset,1)),m=Math.max(m,e.docView.posFromDOM(S.endContainer,S.endOffset,-1))}if(f<0)return null;[d,o]=m==e.state.selection.anchor?[m,f]:[f,m],l=n.resolve(o)}else d=e.docView.posFromDOM(r.anchorNode,r.anchorOffset,1);if(d<0)return null}let g=n.resolve(d);if(!u){let f=t=="pointer"||e.state.selection.head<l.pos&&!i?1:-1;u=EA(e,g,l,f)}return u}function yF(e){return e.editable?e.hasFocus():vF(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function pi(e,t=!1){let r=e.state.selection;if(bF(e,r),!!yF(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&Br){let n=e.domSelectionRange(),s=e.domObserver.currentSelection;if(n.anchorNode&&s.anchorNode&&ac(n.anchorNode,n.anchorOffset,s.anchorNode,s.anchorOffset)){e.input.mouseDown.delayedSelectionSync=!0,e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper)lle(e);else{let{anchor:n,head:s}=r,i,o;mO&&!(r instanceof $e)&&(r.$from.parent.inlineContent||(i=xO(e,r.from)),!r.empty&&!r.$from.parent.inlineContent&&(o=xO(e,r.to))),e.docView.setSelection(n,s,e,t),mO&&(i&&yO(i),o&&yO(o)),r.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&ole(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}const mO=Qr||Br&&sF<63;function xO(e,t){let{node:r,offset:n}=e.docView.domFromPos(t,0),s=n<r.childNodes.length?r.childNodes[n]:null,i=n?r.childNodes[n-1]:null;if(Qr&&s&&s.contentEditable=="false")return jv(s);if((!s||s.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(s)return jv(s);if(i)return jv(i)}}function jv(e){return e.contentEditable="true",Qr&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function yO(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function ole(e){let t=e.dom.ownerDocument;
vendor: 8,168 bytes, lines 880-883
880t.removeEventListener("selectionchange",e.input.hideSelectionGuard);let r=e.domSelectionRange(),n=r.anchorNode,s=r.anchorOffset;t.addEventListener("selectionchange",e.input.hideSelectionGuard=()=>{(r.anchorNode!=n||r.anchorOffset!=s)&&(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!yF(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function lle(e){let t=e.domSelection();if(!t)return;let r=e.cursorWrapper.dom,n=r.nodeName=="IMG";n?t.collapse(r.parentNode,_r(r)+1):t.collapse(r,0),!n&&!e.state.selection.visible&&kn&&To<=11&&(r.disabled=!0,r.disabled=!1)}function bF(e,t){if(t instanceof De){let r=e.docView.descAt(t.from);r!=e.lastSelectedViewDesc&&(bO(e),r&&r.selectNode(),e.lastSelectedViewDesc=r)}else bO(e)}function bO(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function EA(e,t,r,n){return e.someProp("createSelectionBetween",s=>s(e,t,r))||$e.between(t,r,n)}function vO(e){return e.editable&&!e.hasFocus()?!1:vF(e)}function vF(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(t.anchorNode.nodeType==3?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(t.focusNode.nodeType==3?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function cle(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),r=e.domSelectionRange();return ac(t.node,t.offset,r.anchorNode,r.anchorOffset)}function ZP(e,t){let{$anchor:r,$head:n}=e.selection,s=t>0?r.max(n):r.min(n),i=s.parent.inlineContent?s.depth?e.doc.resolve(t>0?s.after():s.before()):null:s;return i&&Ve.findFrom(i,t)}function po(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function SO(e,t,r){let n=e.state.selection;if(n instanceof $e)if(r.indexOf("s")>-1){let{$head:s}=n,i=s.textOffset?null:t<0?s.nodeBefore:s.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let o=e.state.doc.resolve(s.pos+i.nodeSize*(t<0?-1:1));return po(e,new $e(n.$anchor,o))}else if(n.empty){if(e.endOfTextblock(t>0?"forward":"backward")){let s=ZP(e.state,t);return s&&s instanceof De?po(e,s):!1}else if(!(ua&&r.indexOf("m")>-1)){let s=n.$head,i=s.textOffset?null:t<0?s.nodeBefore:s.nodeAfter,o;if(!i||i.isText)return!1;let l=t<0?s.pos-i.nodeSize:s.pos;return i.isAtom||(o=e.docView.descAt(l))&&!o.contentDOM?De.isSelectable(i)?po(e,new De(t<0?e.state.doc.resolve(s.pos-i.nodeSize):s)):sh?po(e,new $e(e.state.doc.resolve(t<0?l:l+i.nodeSize))):!1:!1}}else return!1;else{if(n instanceof De&&n.node.isInline)return po(e,new $e(t>0?n.$to:n.$from));{let s=ZP(e.state,t);return s?po(e,s):!1}}}function b0(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function zg(e,t){let r=e.pmViewDesc;return r&&r.size==0&&(t<0||e.nextSibling||e.nodeName!="BR")}function jd(e,t){return t<0?dle(e):ule(e)}function dle(e){let t=e.domSelectionRange(),r=t.focusNode,n=t.focusOffset;if(!r)return;let s,i,o=!1;for(fa&&r.nodeType==1&&n<b0(r)&&zg(r.childNodes[n],-1)&&(o=!0);;)if(n>0){if(r.nodeType!=1)break;{let l=r.childNodes[n-1];if(zg(l,-1))s=r,i=--n;else if(l.nodeType==3)r=l,n=r.nodeValue.length;else break}}else{if(SF(r))break;{let l=r.previousSibling;for(;l&&zg(l,-1);)s=r.parentNode,i=_r(l),l=l.previousSibling;if(l)r=l,n=b0(r);else{if(r=r.parentNode,r==e.dom)break;n=0}}}o?JP(e,r,n):s&&JP(e,s,i)}function ule(e){let t=e.domSelectionRange(),r=t.focusNode,n=t.focusOffset;if(!r)return;let s=b0(r),i,o;for(;;)if(n<s){if(r.nodeType!=1)break;let l=r.childNodes[n];if(zg(l,1))i=r,o=++n;else break}else{if(SF(r))break;{let l=r.nextSibling;for(;l&&zg(l,1);)i=l.parentNode,o=_r(l)+1,l=l.nextSibling;if(l)r=l,n=0,s=b0(r);else{if(r=r.parentNode,r==e.dom)break;n=s=0}}}i&&JP(e,i,o)}function SF(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function ple(e,t){for(;e&&t==e.childNodes.length&&!ah(e);)t=_r(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let r=e.childNodes[t];if(r.nodeType==3)return r;if(r.nodeType==1&&r.contentEditable=="false")break;e=r,t=0}}function gle(e,t){for(;e&&!t&&!ah(e);)t=_r(e),e=e.parentNode;for(;e&&t;){let r=e.childNodes[t-1];if(r.nodeType==3)return r;if(r.nodeType==1&&r.contentEditable=="false")break;e=r,t=e.childNodes.length}}function JP(e,t,r){if(t.nodeType!=3){let i,o;(o=ple(t,r))?(t=o,r=0):(i=gle(t,r))&&(t=i,r=i.nodeValue.length)}let n=e.domSelection();if(!n)return;if(zy(n)){let i=document.createRange();i.setEnd(t,r),i.setStart(t,r),n.removeAllRanges(),n.addRange(i)}else n.extend&&n.extend(t,r);e.domObserver.setCurSelection();let{state:s}=e;setTimeout(()=>{e.state==s&&pi(e)},50)}function jO(e,t){let r=e.state.doc.resolve(t);if(!(Br||iF)&&r.parent.inlineContent){let s=e.coordsAtPos(t);if(t>r.start()){let i=e.coordsAtPos(t-1),o=(i.top+i.bottom)/2;if(o>s.top&&o<s.bottom&&Math.abs(i.left-s.left)>1)return i.left<s.left?"ltr":"rtl"}if(t<r.end()){let i=e.coordsAtPos(t+1),o=(i.top+i.bottom)/2;if(o>s.top&&o<s.bottom&&Math.abs(i.left-s.left)>1)return i.left>s.left?"ltr":"rtl"}}return getComputedStyle(e.dom).direction=="rtl"?"rtl":"ltr"}function wO(e,t,r){let n=e.state.selection;if(n instanceof $e&&!n.empty||r.indexOf("s")>-1||ua&&r.indexOf("m")>-1)return!1;let{$from:s,$to:i}=n;if(!s.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let o=ZP(e.state,t);if(o&&o instanceof De)return po(e,o)}if(!s.parent.inlineContent){let o=t<0?s:i,l=n instanceof qn?Ve.near(o,t):Ve.findFrom(o,t);return l?po(e,l):!1}return!1}function kO(e,t){if(!(e.state.selection instanceof $e))return!0;let{$head:r,$anchor:n,empty:s}=e.state.selection;if(!r.sameParent(n))return!0;if(!s)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let i=!r.textOffset&&(t<0?r.nodeBefore:r.nodeAfter);if(i&&!i.isText){let o=e.state.tr;return t<0?o.delete(r.pos-i.nodeSize,r.pos):o.delete(r.pos,r.pos+i.nodeSize),e.dispatch(o),!0}return!1}function PO(e,t,r){e.domObserver.stop(),t.contentEditable=r,e.domObserver.start()}function fle(e){if(!Qr||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:r}=e.domSelectionRange();if(t&&t.nodeType==1&&r==0&&t.firstChild&&t.firstChild.contentEditable=="false"){let n=t.firstChild;PO(e,n,"true"),setTimeout(()=>PO(e,n,"false"),20)}return!1}function hle(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function mle(e,t){let r=t.keyCode,n=hle(t);if(r==8||ua&&r==72&&n=="c")return kO(e,-1)||jd(e,-1);if(r==46&&!t.shiftKey||ua&&r==68&&n=="c")return kO(e,1)||jd(e,1);if(r==13||r==27)return!0;if(r==37||ua&&r==66&&n=="c"){let s=r==37?jO(e,e.state.selection.from)=="ltr"?-1:1:-1;return SO(e,s,n)||jd(e,s)}else if(r==39||ua&&r==70&&n=="c"){let s=r==39?jO(e,e.state.selection.from)=="ltr"?1:-1:1;return SO(e,s,n)||jd(e,s)}else{if(r==38||ua&&r==80&&n=="c")return wO(e,-1,n)||jd(e,-1);if(r==40||ua&&r==78&&n=="c")return fle(e)||wO(e,1,n)||jd(e,1);if(n==(ua?"m":"c")&&(r==66||r==73||r==89||r==90))return!0}return!1}function OA(e,t){e.someProp("transformCopied",y=>{t=y(t,e)});let r=[],{content:n,openStart:s,openEnd:i}=t;for(;s>1&&i>1&&n.childCount==1&&n.firstChild.childCount==1;){s--,i--;let y=n.firstChild;r.push(y.type.name,y.attrs!=y.type.defaultAttrs?y.attrs:null),n=y.content}let o=e.someProp("clipboardSerializer")||jc.fromSchema(e.state.schema),l=AF(),d=l.createElement("div");d.appendChild(o.serializeFragment(n,{document:l}));let u=d.firstChild,g,f=0;for(;u&&u.nodeType==1&&(g=TF[u.nodeName.toLowerCase()]);){for(let y=g.length-1;y>=0;y--){let S=l.createElement(g[y]);for(;d.firstChild;)S.appendChild(d.firstChild);d.appendChild(S),f++}u=d.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${s} ${i}${f?` -${f}`:""} ${JSON.stringify(r)}`);let m=e.someProp("clipboardTextSerializer",y=>y(t,e))||t.content.textBetween(0,t.content.size,` 881 882`);return{dom:d,text:m,slice:t}}function jF(e,t,r,n,s){let i=s.parent.type.spec.code,o,l;if(!r&&!t)return null;let d=!!t&&(n||i||!r);if(d){if(e.someProp("transformPastedText",m=>{t=m(t,i||n,e)}),i)return l=new we(he.from(e.state.schema.text(t.replace(/\r\n?/g,` 883`))),0,0),e.someProp("transformPasted",m=>{l=m(l,e,!0)}),l;let f=e.someProp("clipboardTextParser",m=>m(t,s,n,e));if(f)l=f;else{let m=s.marks(),{schema:y}
vendor: 12,965 bytes, line 883
883=e.state,S=jc.fromSchema(y);o=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(b=>{let v=o.appendChild(document.createElement("p"));b&&v.appendChild(S.serializeNode(y.text(b,m)))})}}else e.someProp("transformPastedHTML",f=>{r=f(r,e)}),o=vle(r),sh&&Sle(o);let u=o&&o.querySelector("[data-pm-slice]"),g=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(g&&g[3])for(let f=+g[3];f>0;f--){let m=o.firstChild;for(;m&&m.nodeType!=1;)m=m.nextSibling;if(!m)break;o=m}if(l||(l=(e.someProp("clipboardParser")||e.someProp("domParser")||Pg.fromSchema(e.state.schema)).parseSlice(o,{preserveWhitespace:!!(d||g),context:s,ruleFromNode(m){return m.nodeName=="BR"&&!m.nextSibling&&m.parentNode&&!xle.test(m.parentNode.nodeName)?{ignore:!0}:null}})),g)l=jle(TO(l,+g[1],+g[2]),g[4]);else if(l=we.maxOpen(yle(l.content,s),!0),l.openStart||l.openEnd){let f=0,m=0;for(let y=l.content.firstChild;f<l.openStart&&!y.type.spec.isolating;f++,y=y.firstChild);for(let y=l.content.lastChild;m<l.openEnd&&!y.type.spec.isolating;m++,y=y.lastChild);l=TO(l,f,m)}return e.someProp("transformPasted",f=>{l=f(l,e,d)}),l}const xle=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function yle(e,t){if(e.childCount<2)return e;for(let r=t.depth;r>=0;r--){let s=t.node(r).contentMatchAt(t.index(r)),i,o=[];if(e.forEach(l=>{if(!o)return;let d=s.findWrapping(l.type),u;if(!d)return o=null;if(u=o.length&&i.length&&kF(d,i,l,o[o.length-1],0))o[o.length-1]=u;else{o.length&&(o[o.length-1]=PF(o[o.length-1],i.length));let g=wF(l,d);o.push(g),s=s.matchType(g.type),i=d}}),o)return he.from(o)}return e}function wF(e,t,r=0){for(let n=t.length-1;n>=r;n--)e=t[n].create(null,he.from(e));return e}function kF(e,t,r,n,s){if(s<e.length&&s<t.length&&e[s]==t[s]){let i=kF(e,t,r,n.lastChild,s+1);if(i)return n.copy(n.content.replaceChild(n.childCount-1,i));if(n.contentMatchAt(n.childCount).matchType(s==e.length-1?r.type:e[s+1]))return n.copy(n.content.append(he.from(wF(r,e,s+1))))}}function PF(e,t){if(t==0)return e;let r=e.content.replaceChild(e.childCount-1,PF(e.lastChild,t-1)),n=e.contentMatchAt(e.childCount).fillBefore(he.empty,!0);return e.copy(r.append(n))}function eT(e,t,r,n,s,i){let o=t<0?e.firstChild:e.lastChild,l=o.content;return e.childCount>1&&(i=0),s<n-1&&(l=eT(l,t,r,n,s+1,i)),s>=r&&(l=t<0?o.contentMatchAt(0).fillBefore(l,i<=s).append(l):l.append(o.contentMatchAt(o.childCount).fillBefore(he.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,o.copy(l))}function TO(e,t,r){return t<e.openStart&&(e=new we(eT(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),r<e.openEnd&&(e=new we(eT(e.content,1,r,e.openEnd,0,0),e.openStart,r)),e}const TF={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let AO=null;function AF(){return AO||(AO=document.implementation.createHTMLDocument("title"))}let wv=null;function ble(e){let t=window.trustedTypes;return t?(wv||(wv=t.defaultPolicy||t.createPolicy("ProseMirrorClipboard",{createHTML:r=>r})),wv.createHTML(e)):e}function vle(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let r=AF().createElement("div"),n=/<([a-z][^>\s]+)/i.exec(e),s;if((s=n&&TF[n[1].toLowerCase()])&&(e=s.map(i=>"<"+i+">").join("")+e+s.map(i=>"</"+i+">").reverse().join("")),r.innerHTML=ble(e),s)for(let i=0;i<s.length;i++)r=r.querySelector(s[i])||r;return r}function Sle(e){let t=e.querySelectorAll(Br?"span:not([class]):not([style])":"span.Apple-converted-space");for(let r=0;r<t.length;r++){let n=t[r];n.childNodes.length==1&&n.textContent=="Â "&&n.parentNode&&n.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),n)}}function jle(e,t){if(!e.size)return e;let r=e.content.firstChild.type.schema,n;try{n=JSON.parse(t)}catch{return e}let{content:s,openStart:i,openEnd:o}=e;for(let l=n.length-2;l>=0;l-=2){let d=r.nodes[n[l]];if(!d||d.hasRequiredAttrs())break;s=he.from(d.create(n[l+1],s)),i++,o++}return new we(s,i,o)}const sn={},on={},wle={touchstart:!0,touchmove:!0};class kle{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function Ple(e){for(let t in sn){let r=sn[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=n=>{Ale(e,n)&&!MA(e,n)&&(e.editable||!(n.type in on))&&r(e,n)},wle[t]?{passive:!0}:void 0)}Qr&&e.dom.addEventListener("input",()=>null),tT(e)}function So(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function Tle(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function tT(e){e.someProp("handleDOMEvents",t=>{for(let r in t)e.input.eventHandlers[r]||e.dom.addEventListener(r,e.input.eventHandlers[r]=n=>MA(e,n))})}function MA(e,t){return e.someProp("handleDOMEvents",r=>{let n=r[t.type];return n?n(e,t)||t.defaultPrevented:!1})}function Ale(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let r=t.target;r!=e.dom;r=r.parentNode)if(!r||r.nodeType==11||r.pmViewDesc&&r.pmViewDesc.stopEvent(t))return!1;return!0}function zle(e,t){!MA(e,t)&&sn[t.type]&&(e.editable||!(t.type in on))&&sn[t.type](e,t)}on.keydown=(e,t)=>{let r=t;if(e.input.shiftKey=r.keyCode==16||r.shiftKey,!CF(e,r)&&(e.input.lastKeyCode=r.keyCode,e.input.lastKeyCodeTime=Date.now(),!(si&&Br&&r.keyCode==13)))if(r.keyCode!=229&&e.domObserver.forceFlush(),cu&&r.keyCode==13&&!r.ctrlKey&&!r.altKey&&!r.metaKey){let n=Date.now();e.input.lastIOSEnter=n,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==n&&(e.someProp("handleKeyDown",s=>s(e,Ol(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",n=>n(e,r))||mle(e,r)?r.preventDefault():So(e,"key")};on.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)};on.keypress=(e,t)=>{let r=t;if(CF(e,r)||!r.charCode||r.ctrlKey&&!r.altKey||ua&&r.metaKey)return;if(e.someProp("handleKeyPress",s=>s(e,r))){r.preventDefault();return}let n=e.state.selection;if(!(n instanceof $e)||!n.$from.sameParent(n.$to)){let s=String.fromCharCode(r.charCode),i=()=>e.state.tr.insertText(s).scrollIntoView();!/[\r\n]/.test(s)&&!e.someProp("handleTextInput",o=>o(e,n.$from.pos,n.$to.pos,s,i))&&e.dispatch(i()),r.preventDefault()}};function Ey(e){return{left:e.clientX,top:e.clientY}}function Cle(e,t){let r=t.x-e.clientX,n=t.y-e.clientY;return r*r+n*n<100}function NA(e,t,r,n,s){if(n==-1)return!1;let i=e.state.doc.resolve(n);for(let o=i.depth+1;o>0;o--)if(e.someProp(t,l=>o>i.depth?l(e,r,i.nodeAfter,i.before(o),s,!0):l(e,r,i.node(o),i.before(o),s,!1)))return!0;return!1}function Ud(e,t,r){if(e.focused||e.focus(),e.state.selection.eq(t))return;let n=e.state.tr.setSelection(t);n.setMeta("pointer",!0),e.dispatch(n)}function Ele(e,t){if(t==-1)return!1;let r=e.state.doc.resolve(t),n=r.nodeAfter;return n&&n.isAtom&&De.isSelectable(n)?(Ud(e,new De(r)),!0):!1}function Ole(e,t){if(t==-1)return!1;let r=e.state.selection,n,s;r instanceof De&&(n=r.node);let i=e.state.doc.resolve(t);for(let o=i.depth+1;o>0;o--){let l=o>i.depth?i.nodeAfter:i.node(o);if(De.isSelectable(l)){n&&r.$from.depth>0&&o>=r.$from.depth&&i.before(r.$from.depth+1)==r.$from.pos?s=i.before(r.$from.depth):s=i.before(o);break}}return s!=null?(Ud(e,De.create(e.state.doc,s)),!0):!1}function Mle(e,t,r,n,s){return NA(e,"handleClickOn",t,r,n)||e.someProp("handleClick",i=>i(e,t,n))||(s?Ole(e,r):Ele(e,r))}function Nle(e,t,r,n){return NA(e,"handleDoubleClickOn",t,r,n)||e.someProp("handleDoubleClick",s=>s(e,t,n))}function Rle(e,t,r,n){return NA(e,"handleTripleClickOn",t,r,n)||e.someProp("handleTripleClick",s=>s(e,t,n))||Dle(e,r,n)}function Dle(e,t,r){if(r.button!=0)return!1;let n=e.state.doc;if(t==-1)return n.inlineContent?(Ud(e,$e.create(n,0,n.content.size)),!0):!1;let s=n.resolve(t);for(let i=s.depth+1;i>0;i--){let o=i>s.depth?s.nodeAfter:s.node(i),l=s.before(i);if(o.inlineContent)Ud(e,$e.create(n,l+1,l+1+o.content.size));else if(De.isSelectable(o))Ud(e,De.create(n,l));else continue;return!0}}function RA(e){return v0(e)}const zF=ua?"metaKey":"ctrlKey";sn.mousedown=(e,t)=>{let r=t;e.input.shiftKey=r.shiftKey;let n=RA(e),s=Date.now(),i="singleClick";s-e.input.lastClick.time<500&&Cle(r,e.input.lastClick)&&!r[zF]&&e.input.lastClick.button==r.button&&(e.input.lastClick.type=="singleClick"?i="doubleClick":e.input.lastClick.type=="doubleClick"&&(i="tripleClick")),e.input.lastClick={time:s,x:r.clientX,y:r.clientY,type:i,button:r.button};let o=e.posAtCoords(Ey(r));o&&(i=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new _le(e,o,r,!!n)):(i=="doubleClick"?Nle:Rle)(e,o.pos,o.inside,r)?r.preventDefault():So(e,"pointer"))};class _le{constructor(t,r,n,s){this.view=t,this.pos=r,this.event=n,this.flushed=s,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!n[zF],this.allowDefault=n.shiftKey;let i,o;if(r.inside>-1)i=t.state.doc.nodeAt(r.inside),o=r.inside;else{let g=t.state.doc.resolve(r.pos);i=g.parent,o=g.depth?g.before():0}const l=s?null:n.target,d=l?t.docView.nearestDesc(l,!0):null;this.target=d&&d.nodeDOM.nodeType==1?d.nodeDOM:null;let{selection:u}=t.state;n.button==0&&(i.type.spec.draggable&&i.type.spec.selectable!==!1||u instanceof De&&u.from<=o&&u.to>o)&&(this.mightDrag={node:i,pos:o,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&fa&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),So(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>pi(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let r=this.pos;this.view.state.doc!=this.startDoc&&(r=this.view.posAtCoords(Ey(t))),this.updateAllowDefault(t),this.allowDefault||!r?So(this.view,"pointer"):Mle(this.view,r.pos,r.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||Qr&&this.mightDrag&&!this.mightDrag.node.isAtom||Br&&!this.view.state.selection.visible&&Math.min(Math.abs(r.pos-this.view.state.selection.from),Math.abs(r.pos-this.view.state.selection.to))<=2)?(Ud(this.view,Ve.near(this.view.state.doc.resolve(r.pos))),t.preventDefault()):So(this.view,"pointer")}move(t){this.updateAllowDefault(t),So(this.view,"pointer"),t.buttons==0&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}sn.touchstart=e=>{e.input.lastTouch=Date.now(),RA(e),So(e,"pointer")};sn.touchmove=e=>{e.input.lastTouch=Date.now(),So(e,"pointer")};sn.contextmenu=e=>RA(e);function CF(e,t){return e.composing?!0:Qr&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const Ile=si?5e3:-1;on.compositionstart=on.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,r=t.selection.$to;if(t.selection instanceof $e&&(t.storedMarks||!r.textOffset&&r.parentOffset&&r.nodeBefore.marks.some(n=>n.type.spec.inclusive===!1)||Br&&iF&&Ble(e)))e.markCursor=e.state.storedMarks||r.marks(),v0(e,!0),e.markCursor=null;else if(v0(e,!t.selection.empty),fa&&t.selection.empty&&r.parentOffset&&!r.textOffset&&r.nodeBefore.marks.length){let n=e.domSelectionRange();for(let s=n.focusNode,i=n.focusOffset;s&&s.nodeType==1&&i!=0;){let o=i<0?s.lastChild:s.childNodes[i-1];if(!o)break;if(o.nodeType==3){let l=e.domSelection();l&&l.collapse(o,o.nodeValue.length);break}else s=o,i=-1}}e.input.composing=!0}EF(e,Ile)};function Ble(e){let{focusNode:t,focusOffset:r}=e.domSelectionRange();if(!t||t.nodeType!=1||r>=t.childNodes.length)return!1;let n=t.childNodes[r];
vendor: 4,196 bytes, line 883
883return n.nodeType==1&&n.contentEditable=="false"}on.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.badSafariComposition?e.domObserver.forceFlush():e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,EF(e,20))};function EF(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>v0(e),t))}function OF(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Wle());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function Lle(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let r=Ooe(t.focusNode,t.focusOffset),n=Moe(t.focusNode,t.focusOffset);if(r&&n&&r!=n){let s=n.pmViewDesc,i=e.domObserver.lastChangedTextNode;if(r==i||n==i)return i;if(!s||!s.isText(n.nodeValue))return n;if(e.input.compositionNode==n){let o=r.pmViewDesc;if(!(!o||!o.isText(r.nodeValue)))return n}}return r||n}function Wle(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function v0(e,t=!1){if(!(si&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),OF(e),t||e.docView&&e.docView.dirty){let r=CA(e),n=e.state.selection;return r&&!r.eq(n)?e.dispatch(e.state.tr.setSelection(r)):(e.markCursor||t)&&!n.$from.node(n.$from.sharedDepth(n.to)).inlineContent?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}function $le(e,t){if(!e.dom.parentNode)return;let r=e.dom.parentNode.appendChild(document.createElement("div"));r.appendChild(t),r.style.cssText="position: fixed; left: -10000px; top: 10px";let n=getSelection(),s=document.createRange();s.selectNodeContents(t),e.dom.blur(),n.removeAllRanges(),n.addRange(s),setTimeout(()=>{r.parentNode&&r.parentNode.removeChild(r),e.focus()},50)}const af=kn&&To<15||cu&&_oe<604;sn.copy=on.cut=(e,t)=>{let r=t,n=e.state.selection,s=r.type=="cut";if(n.empty)return;let i=af?null:r.clipboardData,o=n.content(),{dom:l,text:d}=OA(e,o);i?(r.preventDefault(),i.clearData(),i.setData("text/html",l.innerHTML),i.setData("text/plain",d)):$le(e,l),s&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function Fle(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function Hle(e,t){if(!e.dom.parentNode)return;let r=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,n=e.dom.parentNode.appendChild(document.createElement(r?"textarea":"div"));r||(n.contentEditable="true"),n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus();let s=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),n.parentNode&&n.parentNode.removeChild(n),r?sf(e,n.value,null,s,t):sf(e,n.textContent,n.innerHTML,s,t)},50)}function sf(e,t,r,n,s){let i=jF(e,t,r,n,e.state.selection.$from);if(e.someProp("handlePaste",d=>d(e,s,i||we.empty)))return!0;if(!i)return!1;let o=Fle(i),l=o?e.state.tr.replaceSelectionWith(o,n):e.state.tr.replaceSelection(i);return e.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function MF(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let r=e.getData("text/uri-list");return r?r.replace(/\r?\n/g," "):""}on.paste=(e,t)=>{let r=t;if(e.composing&&!si)return;let n=af?null:r.clipboardData,s=e.input.shiftKey&&e.input.lastKeyCode!=45;n&&sf(e,MF(n),n.getData("text/html"),s,r)?r.preventDefault():Hle(e,r)};class NF{constructor(t,r,n){this.slice=t,this.move=r,this.node=n}}const qle=ua?"altKey":"ctrlKey";function RF(e,t){let r;return e.someProp("dragCopies",n=>{r=r||n(t)}),r!=null?!r:!t[qle]}sn.dragstart=(e,t)=>{let r=t,n=e.input.mouseDown;if(n&&n.done(),!r.dataTransfer)return;let s=e.state.selection,i=s.empty?null:e.posAtCoords(Ey(r)),o;if(!(i&&i.pos>=s.from&&i.pos<=(s instanceof De?s.to-1:s.to))){if(n&&n.mightDrag)o=De.create(e.state.doc,n.mightDrag.pos);else if(r.target&&r.target.nodeType==1){let f=e.docView.nearestDesc(r.target,!0);f&&f.node.type.spec.draggable&&f!=e.docView&&(o=De.create(e.state.doc,f.posBefore))}}
vendor: 7,636 bytes, line 883
883let l=(o||e.state.selection).content(),{dom:d,text:u,slice:g}=OA(e,l);(!r.dataTransfer.files.length||!Br||sF>120)&&r.dataTransfer.clearData(),r.dataTransfer.setData(af?"Text":"text/html",d.innerHTML),r.dataTransfer.effectAllowed="copyMove",af||r.dataTransfer.setData("text/plain",u),e.dragging=new NF(g,RF(e,r),o)};sn.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)};on.dragover=on.dragenter=(e,t)=>t.preventDefault();on.drop=(e,t)=>{try{Ule(e,t,e.dragging)}finally{e.dragging=null}};function Ule(e,t,r){if(!t.dataTransfer)return;let n=e.posAtCoords(Ey(t));if(!n)return;let s=e.state.doc.resolve(n.pos),i=r&&r.slice;i?e.someProp("transformPasted",y=>{i=y(i,e,!1)}):i=jF(e,MF(t.dataTransfer),af?null:t.dataTransfer.getData("text/html"),!1,s);let o=!!(r&&RF(e,t));if(e.someProp("handleDrop",y=>y(e,t,i||we.empty,o))){t.preventDefault();return}if(!i)return;t.preventDefault();let l=i?B$(e.state.doc,s.pos,i):s.pos;l==null&&(l=s.pos);let d=e.state.tr;if(o){let{node:y}=r;y?y.replace(d):d.deleteSelection()}let u=d.mapping.map(l),g=i.openStart==0&&i.openEnd==0&&i.content.childCount==1,f=d.doc;if(g?d.replaceRangeWith(u,u,i.content.firstChild):d.replaceRange(u,u,i),d.doc.eq(f))return;let m=d.doc.resolve(u);if(g&&De.isSelectable(i.content.firstChild)&&m.nodeAfter&&m.nodeAfter.sameMarkup(i.content.firstChild))d.setSelection(new De(m));else{let y=d.mapping.map(l);d.mapping.maps[d.mapping.maps.length-1].forEach((S,b,v,j)=>y=j),d.setSelection(EA(e,m,d.doc.resolve(y)))}e.focus(),e.dispatch(d.setMeta("uiEvent","drop"))}sn.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&pi(e)},20))};sn.blur=(e,t)=>{let r=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),r.relatedTarget&&e.dom.contains(r.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)};sn.beforeinput=(e,t)=>{if(Br&&si&&t.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:n}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=n||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",i=>i(e,Ol(8,"Backspace")))))return;let{$cursor:s}=e.state.selection;s&&s.pos>0&&e.dispatch(e.state.tr.delete(s.pos-1,s.pos).scrollIntoView())},50)}};for(let e in on)sn[e]=on[e];function of(e,t){if(e==t)return!0;for(let r in e)if(e[r]!==t[r])return!1;for(let r in t)if(!(r in e))return!1;return!0}class S0{constructor(t,r){this.toDOM=t,this.spec=r||Gl,this.side=this.spec.side||0}map(t,r,n,s){let{pos:i,deleted:o}=t.mapResult(r.from+s,this.side<0?-1:1);return o?null:new rn(i-n,i-n,this)}valid(){return!0}eq(t){return this==t||t instanceof S0&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&of(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class zo{constructor(t,r){this.attrs=t,this.spec=r||Gl}map(t,r,n,s){let i=t.map(r.from+s,this.spec.inclusiveStart?-1:1)-n,o=t.map(r.to+s,this.spec.inclusiveEnd?1:-1)-n;return i>=o?null:new rn(i,o,this)}valid(t,r){return r.from<r.to}eq(t){return this==t||t instanceof zo&&of(this.attrs,t.attrs)&&of(this.spec,t.spec)}static is(t){return t.type instanceof zo}destroy(){}}class DA{constructor(t,r){this.attrs=t,this.spec=r||Gl}map(t,r,n,s){let i=t.mapResult(r.from+s,1);if(i.deleted)return null;let o=t.mapResult(r.to+s,-1);return o.deleted||o.pos<=i.pos?null:new rn(i.pos-n,o.pos-n,this)}valid(t,r){let{index:n,offset:s}=t.content.findIndex(r.from),i;return s==r.from&&!(i=t.child(n)).isText&&s+i.nodeSize==r.to}eq(t){return this==t||t instanceof DA&&of(this.attrs,t.attrs)&&of(this.spec,t.spec)}destroy(){}}class rn{constructor(t,r,n){this.from=t,this.to=r,this.type=n}copy(t,r){return new rn(t,r,this.type)}eq(t,r=0){return this.type.eq(t.type)&&this.from+r==t.from&&this.to+r==t.to}map(t,r,n){return this.type.map(t,this,r,n)}static widget(t,r,n){return new rn(t,t,new S0(r,n))}static inline(t,r,n,s){return new rn(t,r,new zo(n,s))}static node(t,r,n,s){return new rn(t,r,new DA(n,s))}get spec(){return this.type.spec}get inline(){return this.type instanceof zo}get widget(){return this.type instanceof S0}}const Md=[],Gl={};class Bt{constructor(t,r){this.local=t.length?t:Md,this.children=r.length?r:Md}static create(t,r){return r.length?j0(r,t,0,Gl):Ur}find(t,r,n){let s=[];return this.findInner(t??0,r??1e9,s,0,n),s}findInner(t,r,n,s,i){for(let o=0;o<this.local.length;o++){let l=this.local[o];l.from<=r&&l.to>=t&&(!i||i(l.spec))&&n.push(l.copy(l.from+s,l.to+s))}for(let o=0;o<this.children.length;o+=3)if(this.children[o]<r&&this.children[o+1]>t){let l=this.children[o]+1;this.children[o+2].findInner(t-l,r-l,n,s+l,i)}}map(t,r,n){return this==Ur||t.maps.length==0?this:this.mapInner(t,r,0,0,n||Gl)}mapInner(t,r,n,s,i){let o;for(let l=0;l<this.local.length;l++){let d=this.local[l].map(t,n,s);d&&d.type.valid(r,d)?(o||(o=[])).push(d):i.onRemove&&i.onRemove(this.local[l].spec)}return this.children.length?Gle(this.children,o||[],t,r,n,s,i):o?new Bt(o.sort(Vl),Md):Ur}add(t,r){return r.length?this==Ur?Bt.create(t,r):this.addInner(t,r,0):this}addInner(t,r,n){let s,i=0;t.forEach((l,d)=>{let u=d+n,g;if(g=_F(r,l,u)){for(s||(s=this.children.slice());i<s.length&&s[i]<d;)i+=3;s[i]==d?s[i+2]=s[i+2].addInner(l,g,u+1):s.splice(i,0,d,d+l.nodeSize,j0(g,l,u+1,Gl)),i+=3}});let o=DF(i?IF(r):r,-n);for(let l=0;l<o.length;l++)o[l].type.valid(t,o[l])||o.splice(l--,1);return new Bt(o.length?this.local.concat(o).sort(Vl):this.local,s||this.children)}remove(t){return t.length==0||this==Ur?this:this.removeInner(t,0)}removeInner(t,r){let n=this.children,s=this.local;for(let i=0;i<n.length;i+=3){let o,l=n[i]+r,d=n[i+1]+r;for(let g=0,f;g<t.length;g++)(f=t[g])&&f.from>l&&f.to<d&&(t[g]=null,(o||(o=[])).push(f));if(!o)continue;n==this.children&&(n=this.children.slice());let u=n[i+2].removeInner(o,l+1);u!=Ur?n[i+2]=u:(n.splice(i,3),i-=3)}if(s.length){for(let i=0,o;i<t.length;i++)if(o=t[i])for(let l=0;l<s.length;l++)s[l].eq(o,r)&&(s==this.local&&(s=this.local.slice()),s.splice(l--,1))}return n==this.children&&s==this.local?this:s.length||n.length?new Bt(s,n):Ur}forChild(t,r){if(this==Ur)return this;if(r.isLeaf)return Bt.empty;let n,s;for(let l=0;l<this.children.length;l+=3)if(this.children[l]>=t){this.children[l]==t&&(n=this.children[l+2]);break}let i=t+1,o=i+r.content.size;for(let l=0;l<this.local.length;l++){let d=this.local[l];if(d.from<o&&d.to>i&&d.type instanceof zo){let u=Math.max(i,d.from)-i,g=Math.min(o,d.to)-i;u<g&&(s||(s=[])).push(d.copy(u,g))}}if(s){let l=new Bt(s.sort(Vl),Md);return n?new mo([l,n]):l}return n||Ur}eq(t){if(this==t)return!0;if(!(t instanceof Bt)||this.local.length!=t.local.length||this.children.length!=t.children.length)return!1;for(let r=0;r<this.local.length;r++)if(!this.local[r].eq(t.local[r]))return!1;for(let r=0;r<this.children.length;r+=3)if(this.children[r]!=t.children[r]||this.children[r+1]!=t.children[r+1]||!this.children[r+2].eq(t.children[r+2]))return!1;return!0}locals(t){return _A(this.localsInner(t))}localsInner(t){if(this==Ur)return Md;if(t.inlineContent||!this.local.some(zo.is))return this.local;let r=[];for(let n=0;n<this.local.length;n++)this.local[n].type instanceof zo||r.push(this.local[n]);return r}forEachSet(t){t(this)}}Bt.empty=new Bt([],[]);Bt.removeOverlap=_A;const Ur=Bt.empty;class mo{constructor(t){this.members=t}map(t,r){const n=this.members.map(s=>s.map(t,r,Gl));return mo.from(n)}forChild(t,r){if(r.isLeaf)return Bt.empty;let n=[];for(let s=0;s<this.members.length;s++){let i=this.members[s].forChild(t,r);
vendor: 15,044 bytes, line 883
883i!=Ur&&(i instanceof mo?n=n.concat(i.members):n.push(i))}return mo.from(n)}eq(t){if(!(t instanceof mo)||t.members.length!=this.members.length)return!1;for(let r=0;r<this.members.length;r++)if(!this.members[r].eq(t.members[r]))return!1;return!0}locals(t){let r,n=!0;for(let s=0;s<this.members.length;s++){let i=this.members[s].localsInner(t);if(i.length)if(!r)r=i;else{n&&(r=r.slice(),n=!1);for(let o=0;o<i.length;o++)r.push(i[o])}}return r?_A(n?r:r.sort(Vl)):Md}static from(t){switch(t.length){case 0:return Ur;case 1:return t[0];default:return new mo(t.every(r=>r instanceof Bt)?t:t.reduce((r,n)=>r.concat(n instanceof Bt?n:n.members),[]))}}forEachSet(t){for(let r=0;r<this.members.length;r++)this.members[r].forEachSet(t)}}function Gle(e,t,r,n,s,i,o){let l=e.slice();for(let u=0,g=i;u<r.maps.length;u++){let f=0;r.maps[u].forEach((m,y,S,b)=>{let v=b-S-(y-m);for(let j=0;j<l.length;j+=3){let k=l[j+1];if(k<0||m>k+g-f)continue;let P=l[j]+g-f;y>=P?l[j+1]=m<=P?-2:-1:m>=g&&v&&(l[j]+=v,l[j+1]+=v)}f+=v}),g=r.maps[u].map(g,-1)}let d=!1;for(let u=0;u<l.length;u+=3)if(l[u+1]<0){if(l[u+1]==-2){d=!0,l[u+1]=-1;continue}let g=r.map(e[u]+i),f=g-s;if(f<0||f>=n.content.size){d=!0;continue}let m=r.map(e[u+1]+i,-1),y=m-s,{index:S,offset:b}=n.content.findIndex(f),v=n.maybeChild(S);if(v&&b==f&&b+v.nodeSize==y){let j=l[u+2].mapInner(r,v,g+1,e[u]+i+1,o);j!=Ur?(l[u]=f,l[u+1]=y,l[u+2]=j):(l[u+1]=-2,d=!0)}else d=!0}if(d){let u=Vle(l,e,t,r,s,i,o),g=j0(u,n,0,o);t=g.local;for(let f=0;f<l.length;f+=3)l[f+1]<0&&(l.splice(f,3),f-=3);for(let f=0,m=0;f<g.children.length;f+=3){let y=g.children[f];for(;m<l.length&&l[m]<y;)m+=3;l.splice(m,0,g.children[f],g.children[f+1],g.children[f+2])}}return new Bt(t.sort(Vl),l)}function DF(e,t){if(!t||!e.length)return e;let r=[];for(let n=0;n<e.length;n++){let s=e[n];r.push(new rn(s.from+t,s.to+t,s.type))}return r}function Vle(e,t,r,n,s,i,o){function l(d,u){for(let g=0;g<d.local.length;g++){let f=d.local[g].map(n,s,u);f?r.push(f):o.onRemove&&o.onRemove(d.local[g].spec)}for(let g=0;g<d.children.length;g+=3)l(d.children[g+2],d.children[g]+u+1)}for(let d=0;d<e.length;d+=3)e[d+1]==-1&&l(e[d+2],t[d]+i+1);return r}function _F(e,t,r){if(t.isLeaf)return null;let n=r+t.nodeSize,s=null;for(let i=0,o;i<e.length;i++)(o=e[i])&&o.from>r&&o.to<n&&((s||(s=[])).push(o),e[i]=null);return s}function IF(e){let t=[];for(let r=0;r<e.length;r++)e[r]!=null&&t.push(e[r]);return t}function j0(e,t,r,n){let s=[],i=!1;t.forEach((l,d)=>{let u=_F(e,l,d+r);if(u){i=!0;let g=j0(u,l,r+d+1,n);g!=Ur&&s.push(d,d+l.nodeSize,g)}});let o=DF(i?IF(e):e,-r).sort(Vl);for(let l=0;l<o.length;l++)o[l].type.valid(t,o[l])||(n.onRemove&&n.onRemove(o[l].spec),o.splice(l--,1));return o.length||s.length?new Bt(o,s):Ur}function Vl(e,t){return e.from-t.from||e.to-t.to}function _A(e){let t=e;for(let r=0;r<t.length-1;r++){let n=t[r];if(n.from!=n.to)for(let s=r+1;s<t.length;s++){let i=t[s];if(i.from==n.from){i.to!=n.to&&(t==e&&(t=e.slice()),t[s]=i.copy(i.from,n.to),zO(t,s+1,i.copy(n.to,i.to)));continue}else{i.from<n.to&&(t==e&&(t=e.slice()),t[r]=n.copy(n.from,i.from),zO(t,s,n.copy(i.from,n.to)));break}}}return t}function zO(e,t,r){for(;t<e.length&&Vl(r,e[t])>0;)t++;e.splice(t,0,r)}function kv(e){let t=[];return e.someProp("decorations",r=>{let n=r(e.state);n&&n!=Ur&&t.push(n)}),e.cursorWrapper&&t.push(Bt.create(e.state.doc,[e.cursorWrapper.deco])),mo.from(t)}const Xle={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},Kle=kn&&To<=11;class Qle{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class Yle{constructor(t,r){this.view=t,this.handleDOMChange=r,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new Qle,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(n=>{for(let s=0;s<n.length;s++)this.queue.push(n[s]);kn&&To<=11&&n.some(s=>s.type=="childList"&&s.removedNodes.length||s.type=="characterData"&&s.oldValue.length>s.target.nodeValue.length)?this.flushSoon():Qr&&t.composing&&n.some(s=>s.type=="childList"&&s.target.nodeName=="TR")?(t.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),Kle&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,Xle)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let r=0;r<t.length;r++)this.queue.push(t[r]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(vO(this.view)){if(this.suppressingSelectionUpdates)return pi(this.view);if(kn&&To<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&ac(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let r=new Set,n;for(let i=t.focusNode;i;i=lu(i))r.add(i);for(let i=t.anchorNode;i;i=lu(i))if(r.has(i)){n=i;break}let s=n&&this.view.docView.nearestDesc(n);if(s&&s.ignoreMutation({type:"selection",target:n.nodeType==3?n.parentNode:n}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let r=this.pendingRecords();r.length&&(this.queue=[]);let n=t.domSelectionRange(),s=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&vO(t)&&!this.ignoreSelectionChange(n),i=-1,o=-1,l=!1,d=[];if(t.editable)for(let g=0;g<r.length;g++){let f=this.registerMutation(r[g],d);f&&(i=i<0?f.from:Math.min(f.from,i),o=o<0?f.to:Math.max(f.to,o),f.typeOver&&(l=!0))}if(d.some(g=>g.nodeName=="BR")&&(t.input.lastKeyCode==8||t.input.lastKeyCode==46)){for(let g of d)if(g.nodeName=="BR"&&g.parentNode){let f=g.nextSibling;for(;f&&f.nodeType==1;){if(f.contentEditable=="false"){g.parentNode.removeChild(g);break}f=f.firstChild}}}else if(fa&&d.length){let g=d.filter(f=>f.nodeName=="BR");if(g.length==2){let[f,m]=g;f.parentNode&&f.parentNode.parentNode==m.parentNode?m.remove():f.remove()}else{let{focusNode:f}=this.currentSelection;for(let m of g){let y=m.parentNode;y&&y.nodeName=="LI"&&(!f||ece(t,f)!=y)&&m.remove()}}}let u=null;i<0&&s&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)<Date.now()-300&&zy(n)&&(u=CA(t))&&u.eq(Ve.near(t.state.doc.resolve(0),1))?(t.input.lastFocus=0,pi(t),this.currentSelection.set(n),t.scrollToSelection()):(i>-1||s)&&(i>-1&&(t.docView.markDirty(i,o),Zle(t)),t.input.badSafariComposition&&(t.input.badSafariComposition=!1,tce(t,d)),this.handleDOMChange(i,o,l,d),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(n)||pi(t),this.currentSelection.set(n))}registerMutation(t,r){if(r.indexOf(t.target)>-1)return null;let n=this.view.docView.nearestDesc(t.target);if(t.type=="attributes"&&(n==this.view.docView||t.attributeName=="contenteditable"||t.attributeName=="style"&&!t.oldValue&&!t.target.getAttribute("style"))||!n||n.ignoreMutation(t))return null;if(t.type=="childList"){for(let g=0;g<t.addedNodes.length;g++){let f=t.addedNodes[g];r.push(f),f.nodeType==3&&(this.lastChangedTextNode=f)}if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(t.target))return{from:n.posBefore,to:n.posAfter};let s=t.previousSibling,i=t.nextSibling;if(kn&&To<=11&&t.addedNodes.length)for(let g=0;g<t.addedNodes.length;g++){let{previousSibling:f,nextSibling:m}=t.addedNodes[g];(!f||Array.prototype.indexOf.call(t.addedNodes,f)<0)&&(s=f),(!m||Array.prototype.indexOf.call(t.addedNodes,m)<0)&&(i=m)}let o=s&&s.parentNode==t.target?_r(s)+1:0,l=n.localPosFromDOM(t.target,o,-1),d=i&&i.parentNode==t.target?_r(i):t.target.childNodes.length,u=n.localPosFromDOM(t.target,d,1);return{from:l,to:u}}else return t.type=="attributes"?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:(this.lastChangedTextNode=t.target,{from:n.posAtStart,to:n.posAtEnd,typeOver:t.target.nodeValue==t.oldValue})}}let CO=new WeakMap,EO=!1;function Zle(e){if(!CO.has(e)&&(CO.set(e,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace)!==-1)){if(e.requiresGeckoHackNode=fa,EO)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),EO=!0}}function OO(e,t){let r=t.startContainer,n=t.startOffset,s=t.endContainer,i=t.endOffset,o=e.domAtPos(e.state.selection.anchor);return ac(o.node,o.offset,s,i)&&([r,n,s,i]=[s,i,r,n]),{anchorNode:r,anchorOffset:n,focusNode:s,focusOffset:i}}function Jle(e,t){if(t.getComposedRanges){let s=t.getComposedRanges(e.root)[0];if(s)return OO(e,s)}let r;function n(s){s.preventDefault(),s.stopImmediatePropagation(),r=s.getTargetRanges()[0]}return e.dom.addEventListener("beforeinput",n,!0),document.execCommand("indent"),e.dom.removeEventListener("beforeinput",n,!0),r?OO(e,r):null}function ece(e,t){for(let r=t.parentNode;r&&r!=e.dom;r=r.parentNode){let n=e.docView.nearestDesc(r,!0);if(n&&n.node.isBlock)return r}return null}function tce(e,t){var r;let{focusNode:n,focusOffset:s}=e.domSelectionRange();for(let i of t)if(((r=i.parentNode)===null||r===void 0?void 0:r.nodeName)=="TR"){let o=i.nextSibling;for(;o&&o.nodeName!="TD"&&o.nodeName!="TH";)o=o.nextSibling;if(o){let l=o;for(;;){let d=l.firstChild;if(!d||d.nodeType!=1||d.contentEditable=="false"||/^(BR|IMG)$/.test(d.nodeName))break;l=d}l.insertBefore(i,l.firstChild),n==i&&e.domSelection().collapse(i,s)}else i.parentNode.removeChild(i)}}function rce(e,t,r){let{node:n,fromOffset:s,toOffset:i,from:o,to:l}=e.docView.parseRange(t,r),d=e.domSelectionRange(),u,g=d.anchorNode;if(g&&e.dom.contains(g.nodeType==1?g:g.parentNode)&&(u=[{node:g,offset:d.anchorOffset}],zy(d)||u.push({node:d.focusNode,offset:d.focusOffset})),Br&&e.input.lastKeyCode===8)for(let v=i;v>s;v--){let j=n.childNodes[v-1],k=j.pmViewDesc;if(j.nodeName=="BR"&&!k){i=v;break}if(!k||k.size)break}let f=e.state.doc,m=e.someProp("domParser")||Pg.fromSchema(e.state.schema),y=f.resolve(o),S=null,b=m.parse(n,{topNode:y.parent,topMatch:y.parent.contentMatchAt(y.index()),topOpen:!0,from:s,to:i,preserveWhitespace:y.parent.type.whitespace=="pre"?"full":!0,findPositions:u,ruleFromNode:nce,context:y});if(u&&u[0].pos!=null){let v=u[0].pos,j=u[1]&&u[1].pos;j==null&&(j=v),S={anchor:v+o,head:j+o}}return{doc:b,sel:S,from:o,to:l}}function nce(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName=="BR"&&e.parentNode){if(Qr&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let r=document.createElement("div");return r.appendChild(document.createElement("li")),{skip:r}}else if(e.parentNode.lastChild==e||Qr&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName=="IMG"&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const ace=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function sce(e,t,r,n,s){let i=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let A=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,N=CA(e,A);if(N&&!e.state.selection.eq(N)){if(Br&&si&&e.input.lastKeyCode===13&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp("handleKeyDown",B=>B(e,Ol(13,"Enter"))))return;let M=e.state.tr.setSelection(N);A=="pointer"?M.setMeta("pointer",!0):A=="key"&&M.scrollIntoView(),i&&M.setMeta("composition",i),e.dispatch(M)}return}let o=e.state.doc.resolve(t),l=o.sharedDepth(r);t=o.before(l+1),r=e.state.doc.resolve(r).after(l+1);let d=e.state.selection,u=rce(e,t,r),g=e.state.doc,f=g.slice(u.from,u.to),m,y;e.input.lastKeyCode===8&&Date.now()-100<e.input.lastKeyCodeTime?(m=e.state.selection.to,y="end"):(m=e.state.selection.from,y="start"),e.input.lastKeyCode=null;let S=lce(f.content,u.doc.content,u.from,m,y);if(S&&e.input.domChangeCount++,(cu&&e.input.lastIOSEnter>Date.now()-225||si)&&s.some(A=>A.nodeType==1&&!ace.test(A.nodeName))&&(!S||S.endA>=S.endB)&&e.someProp("handleKeyDown",A=>A(e,Ol(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!S)if(n&&d instanceof $e&&!d.empty&&d.$head.sameParent(d.$anchor)&&!e.composing&&!(u.sel&&u.sel.anchor!=u.sel.head))S={start:d.from,endA:d.to,endB:d.to};else{if(u.sel){let A=MO(e,e.state.doc,u.sel);if(A&&!A.eq(e.state.selection)){let N=e.state.tr.setSelection(A);i&&N.setMeta("composition",i),e.dispatch(N)}}return}e.state.selection.from<e.state.selection.to&&S.start==S.endB&&e.state.selection instanceof $e&&(S.start>e.state.selection.from&&S.start<=e.state.selection.from+2&&e.state.selection.from>=u.from?S.start=e.state.selection.from:S.endA<e.state.selection.to&&S.endA>=e.state.selection.to-2&&e.state.selection.to<=u.to&&(S.endB+=e.state.selection.to-S.endA,S.endA=e.state.selection.to)),kn&&To<=11&&S.endB==S.start+1&&S.endA==S.start&&S.start>u.from&&u.doc.textBetween(S.start-u.from-1,S.start-u.from+1)==" Â "&&(S.start--,S.endA--,S.endB--);let b=u.doc.resolveNoCache(S.start-u.from),v=u.doc.resolveNoCache(S.endB-u.from),j=g.resolve(S.start),k=b.sameParent(v)&&b.parent.inlineContent&&j.end()>=S.endA;if((cu&&e.input.lastIOSEnter>Date.now()-225&&(!k||s.some(A=>A.nodeName=="DIV"||A.nodeName=="P"))||!k&&b.pos<u.doc.content.size&&(!b.sameParent(v)||!b.parent.inlineContent)&&b.pos<v.pos&&!/\S/.test(u.doc.textBetween(b.pos,v.pos,"","")))&&e.someProp("handleKeyDown",A=>A(e,Ol(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>S.start&&oce(g,S.start,S.endA,b,v)&&e.someProp("handleKeyDown",A=>A(e,Ol(8,"Backspace")))){si&&Br&&e.domObserver.suppressSelectionUpdates();return}
vendor: 4,892 bytes, line 883
883Br&&S.endB==S.start&&(e.input.lastChromeDelete=Date.now()),si&&!k&&b.start()!=v.start()&&v.parentOffset==0&&b.depth==v.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==S.endA&&(S.endB-=2,v=u.doc.resolveNoCache(S.endB-u.from),setTimeout(()=>{e.someProp("handleKeyDown",function(A){return A(e,Ol(13,"Enter"))})},20));let P=S.start,O=S.endA,T=A=>{let N=A||e.state.tr.replace(P,O,u.doc.slice(S.start-u.from,S.endB-u.from));if(u.sel){let M=MO(e,N.doc,u.sel);M&&!(Br&&e.composing&&M.empty&&(S.start!=S.endB||e.input.lastChromeDelete<Date.now()-100)&&(M.head==P||M.head==N.mapping.map(O)-1)||kn&&M.empty&&M.head==P)&&N.setSelection(M)}return i&&N.setMeta("composition",i),N.scrollIntoView()},C;if(k)if(b.pos==v.pos){kn&&To<=11&&b.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>pi(e),20));let A=T(e.state.tr.delete(P,O)),N=g.resolve(S.start).marksAcross(g.resolve(S.endA));N&&A.ensureMarks(N),e.dispatch(A)}else if(S.endA==S.endB&&(C=ice(b.parent.content.cut(b.parentOffset,v.parentOffset),j.parent.content.cut(j.parentOffset,S.endA-j.start())))){let A=T(e.state.tr);C.type=="add"?A.addMark(P,O,C.mark):A.removeMark(P,O,C.mark),e.dispatch(A)}else if(b.parent.child(b.index()).isText&&b.index()==v.index()-(v.textOffset?0:1)){let A=b.parent.textBetween(b.parentOffset,v.parentOffset),N=()=>T(e.state.tr.insertText(A,P,O));e.someProp("handleTextInput",M=>M(e,P,O,A,N))||e.dispatch(N())}else e.dispatch(T());else e.dispatch(T())}function MO(e,t,r){return Math.max(r.anchor,r.head)>t.content.size?null:EA(e,t.resolve(r.anchor),t.resolve(r.head))}function ice(e,t){let r=e.firstChild.marks,n=t.firstChild.marks,s=r,i=n,o,l,d;for(let g=0;g<n.length;g++)s=n[g].removeFromSet(s);for(let g=0;g<r.length;g++)i=r[g].removeFromSet(i);if(s.length==1&&i.length==0)l=s[0],o="add",d=g=>g.mark(l.addToSet(g.marks));else if(s.length==0&&i.length==1)l=i[0],o="remove",d=g=>g.mark(l.removeFromSet(g.marks));else return null;let u=[];for(let g=0;g<t.childCount;g++)u.push(d(t.child(g)));if(he.from(u).eq(e))return{mark:l,type:o}}function oce(e,t,r,n,s){if(r-t<=s.pos-n.pos||Pv(n,!0,!1)<s.pos)return!1;let i=e.resolve(t);if(!n.parent.isTextblock){let l=i.nodeAfter;return l!=null&&r==t+l.nodeSize}if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let o=e.resolve(Pv(i,!0,!0));return!o.parent.isTextblock||o.pos>r||Pv(o,!0,!1)<r?!1:n.parent.content.cut(n.parentOffset).eq(o.parent.content)}function Pv(e,t,r){let n=e.depth,s=t?e.end():e.pos;for(;n>0&&(t||e.indexAfter(n)==e.node(n).childCount);)n--,s++,t=!1;if(r){let i=e.node(n).maybeChild(e.indexAfter(n));for(;i&&!i.isLeaf;)i=i.firstChild,s++}return s}function lce(e,t,r,n,s){let i=e.findDiffStart(t,r);if(i==null)return null;let{a:o,b:l}=e.findDiffEnd(t,r+e.size,r+t.size);if(s=="end"){let d=Math.max(0,i-Math.min(o,l));n-=o+d-i}if(o<i&&e.size<t.size){let d=n<=i&&n>=o?i-n:0;i-=d,i&&i<t.size&&NO(t.textBetween(i-1,i+1))&&(i+=d?1:-1),l=i+(l-o),o=i}else if(l<i){let d=n<=i&&n>=l?i-n:0;i-=d,i&&i<e.size&&NO(e.textBetween(i-1,i+1))&&(i+=d?1:-1),o=i+(o-l),l=i}return{start:i,endA:o,endB:l}}function NO(e){if(e.length!=2)return!1;let t=e.charCodeAt(0),r=e.charCodeAt(1);return t>=56320&&t<=57343&&r>=55296&&r<=56319}class BF{constructor(t,r){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new kle,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=r,this.state=r.state,this.directPlugins=r.plugins||[],this.directPlugins.forEach(BO),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):typeof t=="function"?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=_O(this),DO(this),this.nodeViews=IO(this),this.docView=fO(this.state.doc,RO(this),kv(this),this.dom,this),this.domObserver=new Yle(this,(n,s,i,o)=>sce(this,n,s,i,o)),this.domObserver.start(),Ple(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let r in t)this._props[r]=t[r];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&tT(this);let r=this._props;this._props=t,t.plugins&&(t.plugins.forEach(BO),this.directPlugins=t.plugins),this.updateStateInner(t.state,r)}setProps(t){let r={};for(let n in this._props)r[n]=this._props[n];r.state=this.state;for(let n in t)r[n]=t[n];this.update(r)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,r){var n;let s=this.state,i=!1,o=!1;t.storedMarks&&this.composing&&(OF(this),o=!0),this.state=t;let l=s.plugins!=t.plugins||this._props.plugins!=r.plugins;if(l||this._props.plugins!=r.plugins||this._props.nodeViews!=r.nodeViews){let y=IO(this);dce(y,this.nodeViews)&&(this.nodeViews=y,i=!0)}
vendor: 4,656 bytes, line 883
883(l||r.handleDOMEvents!=this._props.handleDOMEvents)&&tT(this),this.editable=_O(this),DO(this);let d=kv(this),u=RO(this),g=s.plugins!=t.plugins&&!s.doc.eq(t.doc)?"reset":t.scrollToSelection>s.scrollToSelection?"to selection":"preserve",f=i||!this.docView.matchesNode(t.doc,u,d);(f||!t.selection.eq(s.selection))&&(o=!0);let m=g=="preserve"&&o&&this.dom.style.overflowAnchor==null&&Loe(this);if(o){this.domObserver.stop();let y=f&&(kn||Br)&&!this.composing&&!s.selection.empty&&!t.selection.empty&&cce(s.selection,t.selection);if(f){let S=Br?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=Lle(this)),(i||!this.docView.update(t.doc,u,d,this))&&(this.docView.updateOuterDeco(u),this.docView.destroy(),this.docView=fO(t.doc,u,d,this.dom,this)),S&&(!this.trackWrites||!this.dom.contains(this.trackWrites))&&(y=!0)}y||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&cle(this))?pi(this,y):(bF(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(s),!((n=this.dragging)===null||n===void 0)&&n.node&&!s.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,s),g=="reset"?this.dom.scrollTop=0:g=="to selection"?this.scrollToSelection():m&&Woe(m)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!(!t||!this.dom.contains(t.nodeType==1?t:t.parentNode))){if(!this.someProp("handleScrollToSelection",r=>r(this)))if(this.state.selection instanceof De){let r=this.docView.domAfterPos(this.state.selection.from);r.nodeType==1&&lO(this,r.getBoundingClientRect(),t)}else lO(this,this.coordsAtPos(this.state.selection.head,1),t)}}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(!t||t.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let r=0;r<this.directPlugins.length;r++){let n=this.directPlugins[r];n.spec.view&&this.pluginViews.push(n.spec.view(this))}for(let r=0;r<this.state.plugins.length;r++){let n=this.state.plugins[r];n.spec.view&&this.pluginViews.push(n.spec.view(this))}}else for(let r=0;r<this.pluginViews.length;r++){let n=this.pluginViews[r];n.update&&n.update(this,t)}}updateDraggedNode(t,r){let n=t.node,s=-1;if(n.from<this.state.doc.content.size&&this.state.doc.nodeAt(n.from)==n.node)s=n.from;else{let i=n.from+(this.state.doc.content.size-r.doc.content.size);(i>0&&i<this.state.doc.content.size&&this.state.doc.nodeAt(i))==n.node&&(s=i)}this.dragging=new NF(t.slice,t.move,s<0?void 0:De.create(this.state.doc,s))}someProp(t,r){let n=this._props&&this._props[t],s;if(n!=null&&(s=r?r(n):n))return s;for(let o=0;o<this.directPlugins.length;o++){let l=this.directPlugins[o].props[t];if(l!=null&&(s=r?r(l):l))return s}let i=this.state.plugins;if(i)for(let o=0;o<i.length;o++){let l=i[o].props[t];if(l!=null&&(s=r?r(l):l))return s}}hasFocus(){if(kn){let t=this.root.activeElement;if(t==this.dom)return!0;if(!t||!this.dom.contains(t))return!1;for(;t&&this.dom!=t&&this.dom.contains(t);){if(t.contentEditable=="false")return!1;t=t.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&$oe(this.dom),pi(this),this.domObserver.start()}get root(){let t=this._root;if(t==null){for(let r=this.dom.parentNode;r;r=r.parentNode)if(r.nodeType==9||r.nodeType==11&&r.host)return r.getSelection||(Object.getPrototypeOf(r).getSelection=()=>r.ownerDocument.getSelection()),this._root=r}return t||document}updateRoot(){this._root=null}posAtCoords(t){return Goe(this,t)}coordsAtPos(t,r=1){return uF(this,t,r)}domAtPos(t,r=0){return this.docView.domFromPos(t,r)}nodeDOM(t){let r=this.docView.descAt(t);return r?r.nodeDOM:null}posAtDOM(t,r,n=-1){let s=this.docView.posFromDOM(t,r,n);if(s==null)throw new RangeError("DOM position not inside the editor");return s}endOfTextblock(t,r){return Yoe(this,r||this.state,t)}pasteHTML(t,r){return sf(this,"",t,!1,r||new ClipboardEvent("paste"))}pasteText(t,r){return sf(this,t,null,!0,r||new ClipboardEvent("paste"))}serializeForClipboard(t){return OA(this,t)}destroy(){this.docView&&(Tle(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],kv(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,Coe())}get isDestroyed(){return this.docView==null}dispatchEvent(t){return zle(this,t)}domSelectionRange(){let t=this.domSelection();return t?Qr&&this.root.nodeType===11&&Roe(this.dom.ownerDocument)==this.dom&&Jle(this,t)||t:{focusNode:null,focusOffset:0,anch
vendor: 4,111 bytes, line 883
883orNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}BF.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))};function RO(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",r=>{if(typeof r=="function"&&(r=r(e.state)),r)for(let n in r)n=="class"?t.class+=" "+r[n]:n=="style"?t.style=(t.style?t.style+";":"")+r[n]:!t[n]&&n!="contenteditable"&&n!="nodeName"&&(t[n]=String(r[n]))}),t.translate||(t.translate="no"),[rn.node(0,e.state.doc.content.size,t)]}function DO(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:rn.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function _O(e){return!e.someProp("editable",t=>t(e.state)===!1)}function cce(e,t){let r=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(r)!=t.$anchor.start(r)}function IO(e){let t=Object.create(null);function r(n){for(let s in n)Object.prototype.hasOwnProperty.call(t,s)||(t[s]=n[s])}return e.someProp("nodeViews",r),e.someProp("markViews",r),t}function dce(e,t){let r=0,n=0;for(let s in e){if(e[s]!=t[s])return!0;r++}for(let s in t)n++;return r!=n}function BO(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var Io={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},w0={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},uce=typeof navigator<"u"&&/Mac/.test(navigator.platform),pce=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Ir=0;Ir<10;Ir++)Io[48+Ir]=Io[96+Ir]=String(Ir);for(var Ir=1;Ir<=24;Ir++)Io[Ir+111]="F"+Ir;for(var Ir=65;Ir<=90;Ir++)Io[Ir]=String.fromCharCode(Ir+32),w0[Ir]=String.fromCharCode(Ir);for(var Tv in Io)w0.hasOwnProperty(Tv)||(w0[Tv]=Io[Tv]);function gce(e){var t=uce&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||pce&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",r=!t&&e.key||(e.shiftKey?w0:Io)[e.keyCode]||e.key||"Unidentified";return r=="Esc"&&(r="Escape"),r=="Del"&&(r="Delete"),r=="Left"&&(r="ArrowLeft"),r=="Up"&&(r="ArrowUp"),r=="Right"&&(r="ArrowRight"),r=="Down"&&(r="ArrowDown"),r}const fce=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),hce=typeof navigator<"u"&&/Win/.test(navigator.platform);function mce(e){let t=e.split(/-(?!$)/),r=t[t.length-1];r=="Space"&&(r=" ");let n,s,i,o;for(let l=0;l<t.length-1;l++){let d=t[l];if(/^(cmd|meta|m)$/i.test(d))o=!0;else if(/^a(lt)?$/i.test(d))n=!0;else if(/^(c|ctrl|control)$/i.test(d))s=!0;else if(/^s(hift)?$/i.test(d))i=!0;else if(/^mod$/i.test(d))fce?o=!0:s=!0;else throw new Error("Unrecognized modifier name: "+d)}return n&&(r="Alt-"+r),s&&(r="Ctrl-"+r),o&&(r="Meta-"+r),i&&(r="Shift-"+r),r}function xce(e){let t=Object.create(null);for(let r in e)t[mce(r)]=e[r];return t}function Av(e,t,r=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),r&&t.shiftKey&&(e="Shift-"+e),e}function yce(e){return new Lt({props:{handleKeyDown:LF(e)}})}function LF(e){let t=xce(e);return function(r,n){let s=gce(n),i,o=t[Av(s,n)];if(o&&o(r.state,r.dispatch,r))return!0;if(s.length==1&&s!=" "){if(n.shiftKey){let l=t[Av(s,n,!1)];
vendor: 14,128 bytes, line 883
883if(l&&l(r.state,r.dispatch,r))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(hce&&n.ctrlKey&&n.altKey)&&(i=Io[n.keyCode])&&i!=s){let l=t[Av(i,n)];if(l&&l(r.state,r.dispatch,r))return!0}}return!1}}var bce=Object.defineProperty,IA=(e,t)=>{for(var r in t)bce(e,r,{get:t[r],enumerable:!0})};function Oy(e){const{state:t,transaction:r}=e;let{selection:n}=r,{doc:s}=r,{storedMarks:i}=r;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return i},get selection(){return n},get doc(){return s},get tr(){return n=r.selection,s=r.doc,i=r.storedMarks,r}}}var My=class{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:t,state:r}=this,{view:n}=t,{tr:s}=r,i=this.buildProps(s);return Object.fromEntries(Object.entries(e).map(([o,l])=>[o,(...u)=>{const g=l(...u)(i);return!s.getMeta("preventDispatch")&&!this.hasCustomState&&n.dispatch(s),g}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){const{rawCommands:r,editor:n,state:s}=this,{view:i}=n,o=[],l=!!e,d=e||s.tr,u=()=>(!l&&t&&!d.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(d),o.every(f=>f===!0)),g={...Object.fromEntries(Object.entries(r).map(([f,m])=>[f,(...S)=>{const b=this.buildProps(d,t),v=m(...S)(b);return o.push(v),g}])),run:u};return g}createCan(e){const{rawCommands:t,state:r}=this,n=!1,s=e||r.tr,i=this.buildProps(s,n);return{...Object.fromEntries(Object.entries(t).map(([l,d])=>[l,(...u)=>d(...u)({...i,dispatch:void 0})])),chain:()=>this.createChain(s,n)}}buildProps(e,t=!0){const{rawCommands:r,editor:n,state:s}=this,{view:i}=n,o={tr:e,editor:n,view:i,state:Oy({state:s,transaction:e}),dispatch:t?()=>{}:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(r).map(([l,d])=>[l,(...u)=>d(...u)(o)]))}};return o}},WF={};IA(WF,{blur:()=>vce,clearContent:()=>Sce,clearNodes:()=>jce,command:()=>wce,createParagraphNear:()=>kce,cut:()=>Pce,deleteCurrentNode:()=>Tce,deleteNode:()=>Ace,deleteRange:()=>zce,deleteSelection:()=>Cce,enter:()=>Ece,exitCode:()=>Oce,extendMarkRange:()=>Mce,first:()=>Nce,focus:()=>Dce,forEach:()=>_ce,insertContent:()=>Ice,insertContentAt:()=>Wce,joinBackward:()=>Hce,joinDown:()=>Fce,joinForward:()=>qce,joinItemBackward:()=>Uce,joinItemForward:()=>Gce,joinTextblockBackward:()=>Vce,joinTextblockForward:()=>Xce,joinUp:()=>$ce,keyboardShortcut:()=>Qce,lift:()=>Yce,liftEmptyBlock:()=>Zce,liftListItem:()=>Jce,newlineInCode:()=>ede,resetAttributes:()=>tde,scrollIntoView:()=>rde,selectAll:()=>nde,selectNodeBackward:()=>ade,selectNodeForward:()=>sde,selectParentNode:()=>ide,selectTextblockEnd:()=>ode,selectTextblockStart:()=>lde,setContent:()=>cde,setMark:()=>Ede,setMeta:()=>Ode,setNode:()=>Mde,setNodeSelection:()=>Nde,setTextDirection:()=>Rde,setTextSelection:()=>Dde,sinkListItem:()=>_de,splitBlock:()=>Ide,splitListItem:()=>Bde,toggleList:()=>Wde,toggleMark:()=>$de,toggleNode:()=>Fde,toggleWrap:()=>Hde,undoInputRule:()=>qde,unsetAllMarks:()=>Ude,unsetMark:()=>Gde,unsetTextDirection:()=>Vde,updateAttributes:()=>Xde,wrapIn:()=>Kde,wrapInList:()=>Qde});var vce=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{var r;e.isDestroyed||(t.dom.blur(),(r=window?.getSelection())==null||r.removeAllRanges())}),!0),Sce=(e=!0)=>({commands:t})=>t.setContent("",{emitUpdate:e}),jce=()=>({state:e,tr:t,dispatch:r})=>{const{selection:n}=t,{ranges:s}=n;return r&&s.forEach(({$from:i,$to:o})=>{e.doc.nodesBetween(i.pos,o.pos,(l,d)=>{if(l.type.isText)return;const{doc:u,mapping:g}=t,f=u.resolve(g.map(d)),m=u.resolve(g.map(d+l.nodeSize)),y=f.blockRange(m);if(!y)return;const S=Hu(y);if(l.type.isTextblock){const{defaultType:b}=f.parent.contentMatchAt(f.index());t.setNodeMarkup(y.start,b)}(S||S===0)&&t.lift(y,S)})}),!0},wce=e=>t=>e(t),kce=()=>({state:e,dispatch:t})=>eF(e,t),Pce=(e,t)=>({editor:r,tr:n})=>{const{state:s}=r,i=s.doc.slice(e.from,e.to);n.deleteRange(e.from,e.to);const o=n.mapping.map(t);return n.insert(o,i.content),n.setSelection(new $e(n.doc.resolve(Math.max(o-1,0)))),!0},Tce=()=>({tr:e,dispatch:t})=>{const{selection:r}=e,n=r.$anchor.node();if(n.content.size>0)return!1;const s=e.selection.$anchor;for(let i=s.depth;i>0;i-=1)if(s.node(i).type===n.type){if(t){const l=s.before(i),d=s.after(i);e.delete(l,d).scrollIntoView()}return!0}return!1};function ur(e,t){if(typeof e=="string"){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}var Ace=e=>({tr:t,state:r,dispatch:n})=>{const s=ur(e,r.schema),i=t.selection.$anchor;for(let o=i.depth;o>0;o-=1)if(i.node(o).type===s){if(n){const d=i.before(o),u=i.after(o);t.delete(d,u).scrollIntoView()}return!0}return!1},zce=e=>({tr:t,dispatch:r})=>{const{from:n,to:s}=e;return r&&t.delete(n,s),!0},Cce=()=>({state:e,dispatch:t})=>wA(e,t),Ece=()=>({commands:e})=>e.keyboardShortcut("Enter"),Oce=()=>({state:e,dispatch:t})=>foe(e,t);function BA(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function k0(e,t,r={strict:!0}){const n=Object.keys(t);return n.length?n.every(s=>r.strict?t[s]===e[s]:BA(t[s])?t[s].test(e[s]):t[s]===e[s]):!0}function $F(e,t,r={}){return e.find(n=>n.type===t&&k0(Object.fromEntries(Object.keys(r).map(s=>[s,n.attrs[s]])),r))}function LO(e,t,r={}){return!!$F(e,t,r)}function LA(e,t,r){if(!e||!t)return;let n=e.parent.childAfter(e.parentOffset);if((!n.node||!n.node.marks.some(u=>u.type===t))&&(n=e.parent.childBefore(e.parentOffset)),!n.node||!n.node.marks.some(u=>u.type===t))return;if(!r){const u=n.node.marks.find(g=>g.type===t);u&&(r=u.attrs)}if(!$F([...n.node.marks],t,r))return;let i=n.index,o=e.start()+n.offset,l=i+1,d=o+n.node.nodeSize;for(;i>0&&LO([...e.parent.child(i-1).marks],t,r);)i-=1,o-=e.parent.child(i).nodeSize;for(;l<e.parent.childCount&&LO([...e.parent.child(l).marks],t,r);)d+=e.parent.child(l).nodeSize,l+=1;return{from:o,to:d}}function Ti(e,t){if(typeof e=="string"){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}var Mce=(e,t)=>({tr:r,state:n,dispatch:s})=>{const i=Ti(e,n.schema),{doc:o,selection:l}=r,{$from:d,from:u,to:g}=l;if(s){const f=LA(d,i,t);if(f&&f.from<=u&&f.to>=g){const m=$e.create(o,f.from,f.to);r.setSelection(m)}}return!0},Nce=e=>t=>{const r=typeof e=="function"?e(t):e;for(let n=0;n<r.length;n+=1)if(r[n](t))return!0;return!1};function FF(e){return e instanceof $e}function Il(e=0,t=0,r=0){return Math.min(Math.max(e,t),r)}function HF(e,t=null){if(!t)return null;const r=Ve.atStart(e),n=Ve.atEnd(e);if(t==="start"||t===!0)return r;if(t==="end")return n;const s=r.from,i=n.to;return t==="all"?$e.create(e,Il(0,s,i),Il(e.content.size,s,i)):$e.create(e,Il(t,s,i),Il(t,s,i))}function WO(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}function P0(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function Rce(){return typeof navigator<"u"?/^((?!chrome|android).)*safari/i.test(navigator.userAgent):!1}var Dce=(e=null,t={})=>({editor:r,view:n,tr:s,dispatch:i})=>{t={scrollIntoView:!0,...t};const o=()=>{(P0()||WO())&&n.dom.focus(),Rce()&&!P0()&&!WO()&&n.dom.focus({preventScroll:!0}),requestAnimationFrame(()=>{r.isDestroyed||(n.focus(),t?.scrollIntoView&&r.commands.scrollIntoView())})};try{if(n.hasFocus()&&e===null||e===!1)return!0}catch{return!1}if(i&&e===null&&!FF(r.state.selection))return o(),!0;const l=HF(s.doc,e)||r.state.selection,d=r.state.selection.eq(l);return i&&(d||s.setSelection(l),d&&s.storedMarks&&s.setStoredMarks(s.storedMarks),o()),!0},_ce=(e,t)=>r=>e.every((n,s)=>t(n,{...r,index:s})),Ice=(e,t)=>({tr:r,commands:n})=>n.insertContentAt({from:r.selection.from,to:r.selection.to},e,t),qF=e=>{const t=e.childNodes;for(let r=t.length-1;r>=0;r-=1){const n=t[r];n.nodeType===3&&n.nodeValue&&/^(\n\s\s|\n)$/.test(n.nodeValue)?e.removeChild(n):n.nodeType===1&&qF(n)}return e};function Zm(e){if(typeof window>"u")throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");const t=`<body>${e}</body>`,r=new window.DOMParser().parseFromString(t,"text/html").body;return qF(r)}function lf(e,t,r){if(e instanceof Po||e instanceof he)return e;r={slice:!0,parseOptions:{},...r};const n=typeof e=="object"&&e!==null,s=typeof e=="string";if(n)try{if(Array.isArray(e)&&e.length>0)return he.fromArray(e.map(l=>t.nodeFromJSON(l)));const o=t.nodeFromJSON(e);return r.errorOnInvalidContent&&o.check(),o}catch(i){if(r.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:i});return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",i),lf("",t,r)}if(s){if(r.errorOnInvalidContent){let o=!1,l="";const d=new A$({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:u=>(o=!0,l=typeof u=="string"?u:u.outerHTML,null)}]}})});if(r.slice?Pg.fromSchema(d).parseSlice(Zm(e),r.parseOptions):Pg.fromSchema(d).parse(Zm(e),r.parseOptions),r.errorOnInvalidContent&&o)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${l}`)})}const i=Pg.fromSchema(t);return r.slice?i.parseSlice(Zm(e),r.parseOptions).content:i.parse(Zm(e),r.parseOptions)}return lf("",t,r)}function Bce(e,t,r){const n=e.steps.length-1;if(n<t)return;const s=e.steps[n];if(!(s instanceof or||s instanceof Pr))return;const i=e.mapping.maps[n];let o=0;i.forEach((l,d,u,g)=>{o===0&&(o=g)}),e.setSelection(Ve.near(e.doc.resolve(o),r))}var Lce=e=>!("type"in e),Wce=(e,t,r)=>({tr:n,dispatch:s,editor:i})=>{var o;if(s){r={parseOptions:i.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...r};let l;const d=v=>{i.emit("contentError",{editor:i,error:v,disableCollaboration:()=>{"collaboration"in i.storage&&typeof i.storage.collaboration=="object"&&i.storage.collaboration&&(i.storage.collaboration.isDisabled=!0)}})},u={preserveWhitespace:"full",...r.parseOptions};if(!r.errorOnInvalidContent&&!i.options.enableContentCheck&&i.options.emitContentError)try{lf(t,i.schema,{parseOptions:u,errorOnInvalidContent:!0})}catch(v){d(v)}try{l=lf(t,i.schema,{parseOptions:u,errorOnInvalidContent:(o=r.errorOnInvalidContent)!=null?o:i.options.enableContentCheck})}catch(v){return d(v),!1}let{from:g,to:f}=typeof e=="number"?{from:e,to:e}:{from:e.from,to:e.to},m=!0,y=!0;if((Lce(l)?l:[l]).forEach(v=>{v.check(),m=m?v.isText&&v.marks.length===0:!1,y=y?v.isBlock:!1}),g===f&&y){const{parent:v}=n.doc.resolve(g);v.isTextblock&&!v.type.spec.code&&!v.childCount&&(g-=1,f+=1)}let b;if(m){if(Array.isArray(t))b=t.map(v=>v.text||"").join("");else if(t instanceof he){let v="";t.forEach(j=>{j.text&&(v+=j.text)}),b=v}else typeof t=="object"&&t&&t.text?b=t.text:b=t;n.insertText(b,g,f)}else{b=l;const v=n.doc.resolve(g),j=v.node(),k=v.parentOffset===0,P=j.isText||j.isTextblock,O=j.content.size>0;k&&P&&O&&y&&(g=Math.max(0,g-1)),n.replaceWith(g,f,b)}r.updateSelection&&Bce(n,n.steps.length-1,-1),r.applyInputRules&&n.setMeta("applyInputRules",{from:g,text:b}),r.applyPasteRules&&n.setMeta("applyPasteRules",{from:g,text:b})}return!0},$ce=()=>({state:e,dispatch:t})=>uoe(e,t),Fce=()=>({state:e,dispatch:t})=>poe(e,t),Hce=()=>({state:e,dispatch:t})=>V$(e,t),qce=()=>({state:e,dispatch:t})=>Y$(e,t),Uce=()=>({state:e,dispatch:t,tr:r})=>{try{const n=Py(e.doc,e.selection.$from.pos,-1);return n==null?!1:(r.join(n,2),t&&t(r),!0)}catch{return!1}},Gce=()=>({state:e,dispatch:t,tr:r})=>{try{const n=Py(e.doc,e.selection.$from.pos,1);return n==null?!1:(r.join(n,2),t&&t(r),!0)}catch{return!1}},Vce=()=>({state:e,dispatch:t})=>coe(e,t),Xce=()=>({state:e,dispatch:t})=>doe(e,t);function UF(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function Kce(e){const t=e.split(/-(?!$)/);let r=t[t.length-1];r==="Space"&&(r=" ");let n,s,i,o;for(let l=0;l<t.length-1;l+=1){const d=t[l];if(/^(cmd|meta|m)$/i.test(d))o=!0;else if(/^a(lt)?$/i.test(d))n=!0;else if(/^(c|ctrl|control)$/i.test(d))s=!0;else if(/^s(hift)?$/i.test(d))i=!0;else if(/^mod$/i.test(d))P0()||UF()?o=!0:s=!0;else throw new Error(`Unrecognized modifier name: ${d}`)}return n&&(r=`Alt-${r}`),s&&(r=`Ctrl-${r}`),o&&(r=`Meta-${r}`),i&&(r=`Shift-${r}`),r}var Qce=e=>({editor:t,view:r,tr:n,dispatch:s})=>{const i=Kce(e).split(/-(?!$)/),o=i.find(u=>!["Alt","Ctrl","Meta","Shift"].includes(u)),l=new KeyboardEvent("keydown",{key:o==="Space"?" ":o,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),d=t.captureTransaction(()=>{r.someProp("handleKeyDown",u=>u(r,l))});return d?.steps.forEach(u=>{const g=u.map(n.mapping);g&&s&&n.maybeStep(g)}),!0};function Bo(e,t,r={}){const{from:n,to:s,empty:i}=e.selection,o=t?ur(t,e.schema):null,l=[];e.doc.nodesBetween(n,s,(f,m)=>{if(f.isText)return;const y=Math.max(n,m),S=Math.min(s,m+f.nodeSize);l.push({node:f,from:y,to:S})});const d=s-n,u=l.filter(f=>o?o.name===f.node.type.name:!0).filter(f=>k0(f.node.attrs,r,{strict:!1}));return i?!!u.length:u.reduce((f,m)=>f+m.to-m.from,0)>=d}var Yce=(e,t={})=>({state:r,dispatch:n})=>{const s=ur(e,r.schema);return Bo(r,s,t)?goe(r,n):!1},Zce=()=>({state:e,dispatch:t})=>tF(e,t),Jce=e=>({state:t,dispatch:r})=>{const n=ur(e,t.schema);return Poe(n)(t,r)},ede=()=>({state:e,dispatch:t})=>J$(e,t);function Ny(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function $O(e,t){const r=typeof t=="string"?[t]:t;return Object.keys(e).reduce((n,s)=>(r.includes(s)||(n[s]=e[s]),n),{})}var tde=(e,t)=>({tr:r,state:n,dispatch:s})=>{let i=null,o=null;const l=Ny(typeof e=="string"?e:e.name,n.schema);if(!l)return!1;l==="node"&&(i=ur(e,n.schema)),l==="mark"&&(o=Ti(e,n.schema));let d=!1;
883return r.selection.ranges.forEach(u=>{n.doc.nodesBetween(u.$from.pos,u.$to.pos,(g,f)=>{i&&i===g.type&&(d=!0,s&&r.setNodeMarkup(f,void 0,$O(g.attrs,t))),o&&g.marks.length&&g.marks.forEach(m=>{o===m.type&&(d=!0,s&&r.addMark(f,f+g.nodeSize,o.create($O(m.attrs,t))))})})}),d},rde=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),nde=()=>({tr:e,dispatch:t})=>{if(t){const r=new qn(e.doc);e.setSelection(r)}return!0},ade=()=>({state:e,dispatch:t})=>K$(e,t),sde=()=>({state:e,dispatch:t})=>Z$(e,t),ide=()=>({state:e,dispatch:t})=>xoe(e,t),ode=()=>({state:e,dispatch:t})=>voe(e,t),lde=()=>({state:e,dispatch:t})=>boe(e,t);function rT(e,t,r={},n={}){return lf(e,t,{slice:!1,parseOptions:r,errorOnInvalidContent:n.errorOnInvalidContent})}var cde=(e,{errorOnInvalidContent:t,emitUpdate:r=!0,parseOptions:n={}}={})=>({editor:s,tr:i,dispatch:o,commands:l})=>{const{doc:d}=i;if(n.preserveWhitespace!=="full"){const u=rT(e,s.schema,n,{errorOnInvalidContent:t??s.options.enableContentCheck});return o&&i.replaceWith(0,d.content.size,u).setMeta("preventUpdate",!r),!0}return o&&i.setMeta("preventUpdate",!r),l.insertContentAt({from:0,to:d.content.size},e,{parseOptions:n,errorOnInvalidContent:t??s.options.enableContentCheck})};function GF(e,t){const r=Ti(t,e.schema),{from:n,to:s,empty:i}=e.selection,o=[];i?(e.storedMarks&&o.push(...e.storedMarks),o.push(...e.selection.$head.marks())):e.doc.nodesBetween(n,s,d=>{o.push(...d.marks)});const l=o.find(d=>d.type.name===r.name);return l?{...l.attrs}:{}}function VF(e,t){const r=new H$(e);return t.forEach(n=>{n.steps.forEach(s=>{r.step(s)})}),r}function dde(e){for(let t=0;t<e.edgeCount;t+=1){const{type:r}=e.edge(t);if(r.isTextblock&&!r.hasRequiredAttrs())return r}return null}function ude(e,t,r){const n=[];return e.nodesBetween(t.from,t.to,(s,i)=>{r(s)&&n.push({node:s,pos:i})}),n}function pde(e,t){for(let r=e.depth;r>0;r-=1){const n=e.node(r);if(t(n))return{pos:r>0?e.before(r):0,start:e.start(r),depth:r,node:n}}}function Ry(e){return t=>pde(t.$from,e)}function Me(e,t,r){return e.config[t]===void 0&&e.parent?Me(e.parent,t,r):typeof e.config[t]=="function"?e.config[t].bind({...r,parent:e.parent?Me(e.parent,t,r):null}):e.config[t]}function WA(e){return e.map(t=>{const r={name:t.name,options:t.options,storage:t.storage},n=Me(t,"addExtensions",r);return n?[t,...WA(n())]:t}).flat(10)}function $A(e,t){const r=jc.fromSchema(t).serializeFragment(e),s=document.implementation.createHTMLDocument().createElement("div");return s.appendChild(r),s.innerHTML}function XF(e){return typeof e=="function"}function xt(e,t=void 0,...r){return XF(e)?t?e.bind(t)(...r):e(...r):e}function gde(e={}){return Object.keys(e).length===0&&e.constructor===Object}function du(e){const t=e.filter(s=>s.type==="extension"),r=e.filter(s=>s.type==="node"),n=e.filter(s=>s.type==="mark");return{baseExtensions:t,nodeExtensions:r,markExtensions:n}}function KF(e){const t=[],{nodeExtensions:r,markExtensions:n}=du(e),s=[...r,...n],i={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1},o=r.filter(u=>u.name!=="text").map(u=>u.name),l=n.map(u=>u.name),d=[...o,...l];return e.forEach(u=>{const g={name:u.name,options:u.options,storage:u.storage,extensions:s},f=Me(u,"addGlobalAttributes",g);if(!f)return;f().forEach(y=>{let S;Array.isArray(y.types)?S=y.types:y.types==="*"?S=d:y.types==="nodes"?S=o:y.types==="marks"?S=l:S=[],S.forEach(b=>{Object.entries(y.attributes).forEach(([v,j])=>{t.push({type:b,name:v,attribute:{...i,...j}})})})})}),s.forEach(u=>{const g={name:u.name,options:u.options,storage:u.storage},f=Me(u,"addAttributes",g);if(!f)return;const m=f();Object.entries(m).forEach(([y,S])=>{const b={...i,...S};typeof b?.default=="function"&&(b.default=b.default()),b?.isRequired&&b?.default===void 0&&delete b.default,t.push({type:u.name,name:y,attribute:b})})}),t}function fde(e){const t=[];let r="",n=!1,s=!1,i=0;const o=e.length;for(let l=0;l<o;l+=1){const d=e[l];if(d==="'"&&!s){n=!n,r+=d;continue}if(d==='"'&&!n){s=!s,r+=d;continue}if(!n&&!s){if(d==="("){i+=1,r+=d;continue}if(d===")"&&i>0){i-=1,r+=d;continue}if(d===";"&&i===0){t.push(r),r="";
vendor: 12,617 bytes, lines 883-885
883continue}}r+=d}return r&&t.push(r),t}function FO(e){const t=[],r=fde(e||""),n=r.length;for(let s=0;s<n;s+=1){const i=r[s],o=i.indexOf(":");if(o===-1)continue;const l=i.slice(0,o).trim(),d=i.slice(o+1).trim();l&&d&&t.push([l,d])}return t}function Yt(...e){return e.filter(t=>!!t).reduce((t,r)=>{const n={...t};return Object.entries(r).forEach(([s,i])=>{if(!n[s]){n[s]=i;return}if(s==="class"){const l=i?String(i).split(" "):[],d=n[s]?n[s].split(" "):[],u=l.filter(g=>!d.includes(g));n[s]=[...d,...u].join(" ")}else if(s==="style"){const l=new Map([...FO(n[s]),...FO(i)]);n[s]=Array.from(l.entries()).map(([d,u])=>`${d}: ${u}`).join("; ")}else n[s]=i}),n},{})}function cf(e,t){return t.filter(r=>r.type===e.type.name).filter(r=>r.attribute.rendered).map(r=>r.attribute.renderHTML?r.attribute.renderHTML(e.attrs)||{}:{[r.name]:e.attrs[r.name]}).reduce((r,n)=>Yt(r,n),{})}function hde(e){return typeof e!="string"?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e==="true"?!0:e==="false"?!1:e}function HO(e,t){return"style"in e?e:{...e,getAttrs:r=>{const n=e.getAttrs?e.getAttrs(r):e.attrs;if(n===!1)return!1;const s=t.reduce((i,o)=>{const l=o.attribute.parseHTML?o.attribute.parseHTML(r):hde(r.getAttribute(o.name));return l==null?i:{...i,[o.name]:l}},{});return{...n,...s}}}}function qO(e){return Object.fromEntries(Object.entries(e).filter(([t,r])=>t==="attrs"&&gde(r)?!1:r!=null))}function UO(e){var t,r;const n={};return!((t=e?.attribute)!=null&&t.isRequired)&&"default"in(e?.attribute||{})&&(n.default=e.attribute.default),((r=e?.attribute)==null?void 0:r.validate)!==void 0&&(n.validate=e.attribute.validate),[e.name,n]}function mde(e,t){var r;const n=KF(e),{nodeExtensions:s,markExtensions:i}=du(e),o=(r=s.find(u=>Me(u,"topNode")))==null?void 0:r.name,l=Object.fromEntries(s.map(u=>{const g=n.filter(j=>j.type===u.name),f={name:u.name,options:u.options,storage:u.storage,editor:t},m=e.reduce((j,k)=>{const P=Me(k,"extendNodeSchema",f);return{...j,...P?P(u):{}}},{}),y=qO({...m,content:xt(Me(u,"content",f)),marks:xt(Me(u,"marks",f)),group:xt(Me(u,"group",f)),inline:xt(Me(u,"inline",f)),atom:xt(Me(u,"atom",f)),selectable:xt(Me(u,"selectable",f)),draggable:xt(Me(u,"draggable",f)),code:xt(Me(u,"code",f)),whitespace:xt(Me(u,"whitespace",f)),linebreakReplacement:xt(Me(u,"linebreakReplacement",f)),defining:xt(Me(u,"defining",f)),isolating:xt(Me(u,"isolating",f)),attrs:Object.fromEntries(g.map(UO))}),S=xt(Me(u,"parseHTML",f));S&&(y.parseDOM=S.map(j=>HO(j,g)));const b=Me(u,"renderHTML",f);b&&(y.toDOM=j=>b({node:j,HTMLAttributes:cf(j,g)}));const v=Me(u,"renderText",f);return v&&(y.toText=v),[u.name,y]})),d=Object.fromEntries(i.map(u=>{const g=n.filter(v=>v.type===u.name),f={name:u.name,options:u.options,storage:u.storage,editor:t},m=e.reduce((v,j)=>{const k=Me(j,"extendMarkSchema",f);return{...v,...k?k(u):{}}},{}),y=qO({...m,inclusive:xt(Me(u,"inclusive",f)),excludes:xt(Me(u,"excludes",f)),group:xt(Me(u,"group",f)),spanning:xt(Me(u,"spanning",f)),code:xt(Me(u,"code",f)),attrs:Object.fromEntries(g.map(UO))}),S=xt(Me(u,"parseHTML",f));S&&(y.parseDOM=S.map(v=>HO(v,g)));const b=Me(u,"renderHTML",f);return b&&(y.toDOM=v=>b({mark:v,HTMLAttributes:cf(v,g)})),[u.name,y]}));return new A$({topNode:o,nodes:l,marks:d})}function xde(e){const t=e.filter((r,n)=>e.indexOf(r)!==n);return Array.from(new Set(t))}function Cg(e){return e.sort((r,n)=>{const s=Me(r,"priority")||100,i=Me(n,"priority")||100;return s>i?-1:s<i?1:0})}function QF(e){const t=Cg(WA(e)),r=xde(t.map(n=>n.name));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(n=>`'${n}'`).join(", ")}]. This can lead to issues.`),t}function YF(e,t,r){const{from:n,to:s}=t,{blockSeparator:i=` 884 885`,textSerializers:o={}}=r||{};let l="";return e.nodesBetween(n,s,(d,u,g,f)=>{var m;d.isBlock&&u>n&&(l+=i);const y=o?.[d.type.name];if(y)return g&&(l+=y({node:d,pos:u,parent:g,index:f,range:t})),!1;d.isText&&(l+=(m=d?.text)==null?void 0:m.slice(Math.max(n,u)-u,s-u))}),l}function yde(e,t){const r={from:0,to:e.content.size};return YF(e,r,t)}function ZF(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,t])=>t.spec.toText).map(([t,r])=>[t,r.spec.toText]))}function bde(e,t){const r=ur(t,e.schema),{from:n,to:s}=e.selection,i=[];e.doc.nodesBetween(n,s,l=>{i.push(l)});const o=i.reverse().find(l=>l.type.name===r.name);return o?{...o.attrs}:{}}function JF(e,t){const r=Ny(typeof t=="string"?t:t.name,e.schema);return r==="node"?bde(e,t):r==="mark"?GF(e,t):{}}function vde(e,t=JSON.stringify){const r={};return e.filter(n=>{const s=t(n);return Object.prototype.hasOwnProperty.call(r,s)?!1:r[s]=!0})}function Sde(e){const t=vde(e);return t.length===1?t:t.filter((r,n)=>!t.filter((i,o)=>o!==n).some(i=>r.oldRange.from>=i.oldRange.from&&r.oldRange.to<=i.oldRange.to&&r.newRange.from>=i.newRange.from&&r.newRange.to<=i.newRange.to))}function eH(e){const{mapping:t,steps:r}=e,n=[];return t.maps.forEach((s,i)=>{const o=[];if(s.ranges.length)s.forEach((l,d)=>{o.push({from:l,to:d})});else{const{from:l,to:d}=r[i];if(l===void 0||d===void 0)return;o.push({from:l,to:d})}o.forEach(({from:l,to:d})=>{const u=t.slice(i).map(l,-1),g=t.slice(i).map(d),f=t.invert().map(u,-1),m=t.invert().map(g);n.push({oldRange:{from:f,to:m},newRange:{from:u,to:g}})})}),Sde(n)}function FA(e,t,r){const n=[];return e===t?r.resolve(e).marks().forEach(s=>{const i=r.resolve(e),o=LA(i,s.type);o&&n.push({mark:s,...o})}):r.nodesBetween(e,t,(s,i)=>{!s||s?.nodeSize===void 0||n.push(...s.marks.map(o=>({from:i,to:i+s.nodeSize,mark:o})))}),n}var jde=(e,t,r,n=20)=>{const s=e.doc.resolve(r);let i=n,o=null;for(;i>0&&o===null;){const l=s.node(i);l?.type.name===t?o=l:i-=1}return[o,i]};function Yp(e,t){return t.nodes[e]||t.marks[e]||null}function Vx(e,t,r){return Object.fromEntries(Object.entries(r).filter(([n])=>{const s=e.find(i=>i.type===t&&i.name===n);return s?s.attribute.keepOnSplit:!1}))}var wde=(e,t=500)=>{let r="";const n=e.parentOffset;return e.parent.nodesBetween(Math.max(0,n-t),n,(s,i,o,l)=>{var d,u;const g=((u=(d=s.type.spec).toText)==null?void 0:u.call(d,{node:s,pos:i,parent:o,index:l}))||s.textContent||"%leaf%";r+=s.isAtom&&!s.isText?g:g.slice(0,Math.max(0,n-i))}),r};function nT(e,t,r={}){const{empty:n,ranges:s}=e.selection,i=t?Ti(t,e.schema):null;if(n)return!!(e.storedMarks||e.selection.$from.marks()).filter(f=>i?i.name===f.type.name:!0).find(f=>k0(f.attrs,r,{strict:!1}));let o=0;const l=[];if(s.forEach(({$from:f,$to:m})=>{const y=f.pos,S=m.pos;e.doc.nodesBetween(y,S,(b,v)=>{if(i&&b.inlineContent&&!b.type.allowsMarkType(i))return!1;if(!b.isText&&!b.marks.length)return;const j=Math.max(y,v),k=Math.min(S,v+b.nodeSize),P=k-j;o+=P,l.push(...b.marks.map(O=>({mark:O,from:j,to:k})))})}),o===0)return!1;const d=l.filter(f=>i?i.name===f.mark.type.name:!0).filter(f=>k0(f.mark.attrs,r,{strict:!1})).reduce((f,m)=>f+m.to-m.from,0),u=l.filter(f=>i?f.mark.type!==i&&f.mark.type.excludes(i):!0).reduce((f,m)=>f+m.to-m.from,0);return(d>0?d+u:d)>=o}function kde(e,t,r={}){if(!t)return Bo(e,null,r)||nT(e,null,r);const n=Ny(t,e.schema);return n==="node"?Bo(e,t,r):n==="mark"?nT(e,t,r):!1}var Pde=(e,t)=>{const{$from:r,$to:n,$anchor:s}=e.selection;if(t){const i=Ry(l=>l.type.name===t)(e.selection);if(!i)return!1;const o=e.doc.resolve(i.pos+1);return s.pos+1===o.end()}return!(n.parentOffset<n.parent.nodeSize-2||r.pos!==n.pos)},Tde=e=>{const{$from:t,$to:r}=e.selection;return!(t.parentOffset>0||t.pos!==r.pos)};function GO(e,t){return Array.isArray(t)?t.some(r=>(typeof r=="string"?r:r.name)===e.name):t}function zv(e,t){const{nodeExtensions:r}=du(t),n=r.find(o=>o.name===e);if(!n)return!1;const s={name:n.name,options:n.options,storage:n.storage},i=xt(Me(n,"group",s));return typeof i!="string"?!1:i.split(" ").includes("list")}function Dy(e,{checkChildren:t=!0,ignoreWhitespace:r=!1}={}){var n;if(r){if(e.type.name==="hardBreak")return!0;if(e.isText)return!/\S/.test((n=e.text)!=null?n:"")}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(e.content.childCount===0)return!0;if(t){let s=!0;return e.content.forEach(i=>{s!==!1&&(Dy(i,{ignoreWhitespace:r,checkChildren:t})||(s=!1))}),s}return!1}function tH(e){return e instanceof De}var rH=class nH{constructor(t){this.position=t}static fromJSON(t){return new nH(t.position)}toJSON(){return{position:this.position}}};function Ade(e,t){const r=t.mapping.mapResult(e.position);return{position:new rH(r.pos),mapResult:r}}function zde(e){return new rH(e)}function Cde(e,t,r){var n;const{selection:s}=t;let i=null;if(FF(s)&&(i=s.$cursor),i){const l=(n=e.storedMarks)!=null?n:i.marks();return i.parent.type.allowsMarkType(r)&&(!!r.isInSet(l)||!l.some(u=>u.type.excludes(r)))}const{ranges:o}=s;return o.some(({$from:l,$to:d})=>{let u=l.depth===0?e.doc.inlineContent&&e.doc.type.allowsMarkType(r):!1;return e.doc.nodesBetween(l.pos,d.pos,(g,f,m)=>{if(u)return!1;if(g.isInline){const y=!m||m.type.allowsMarkType(r),S=!!r.isInSet(g.marks)||!g.marks.some(b=>b.type.excludes(r));u=y&&S}return!u}),u})}var Ede=(e,t={})=>({tr:r,state:n,dispatch:s})=>{const{selection:i}=r,{empty:o,ranges:l}=i,d=Ti(e,n.schema);if(s)if(o){const u=GF(n,d);r.addStoredMark(d.create({...u,...t}))}else l.forEach(u=>{const g=u.$from.pos,f=u.$to.pos;n.doc.nodesBetween(g,f,(m,y)=>{const S=Math.max(y,g),b=Math.min(y+m.nodeSize,f);m.marks.find(j=>j.type===d)?m.marks.forEach(j=>{d===j.type&&r.addMark(S,b,d.create({...j.attrs,...t}))}):r.addMark(S,b,d.create(t))})});return Cde(n,r,d)},Ode=(e,t)=>({tr:r})=>(r.setMeta(e,t),!0),Mde=(e,t={})=>({state:r,dispatch:n,chain:s})=>{const i=ur(e,r.schema);let o;return r.selection.$anchor.sameParent(r.selection.$head)&&(o=r.selection.$anchor.parent.attrs),i.isTextblock?s().command(({commands:l})=>sO(i,{...o,...t})(r)?!0:l.clearNodes()).command(({state:l})=>sO(i,{...o,...t})(l,n)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},Nde=e=>({tr:t,dispatch:r})=>{if(r){const{doc:n}=t,s=Il(e,0,n.content.size),i=De.create(n,s);t.setSelection(i)}return!0},Rde=(e,t)=>({tr:r,state:n,dispatch:s})=>{const{selection:i}=n;let o,l;return typeof t=="number"?(o=t,l=t):t&&"from"in t&&"to"in t?(o=t.from,l=t.to):(o=i.from,l=i.to),s&&r.doc.nodesBetween(o,l,(d,u)=>{d.isText||r.setNodeMarkup(u,void 0,{...d.attrs,dir:e})}),!0},Dde=e=>({tr:t,dispatch:r})=>{if(r){const{doc:n}=t,{from:s,to:i}=typeof e=="number"?{from:e,to:e}:e,o=$e.atStart(n).from,l=$e.atEnd(n).to,d=Il(s,o,l),u=Il(i,o,l),g=$e.create(n,d,u);t.setSelection(g)}return!0},_de=e=>({state:t,dispatch:r})=>{const n=ur(e,t.schema);return zoe(n)(t,r)};function VO(e,t){const r=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(r){const n=r.filter(s=>t?.includes(s.type.name));e.tr.ensureMarks(n)}}var Ide=({keepMarks:e=!0}={})=>({tr:t,state:r,dispatch:n,editor:s})=>{const{selection:i,doc:o}=t,{$from:l,$to:d}=i,u=s.extensionManager.attributes,g=Vx(u,l.node().type.name,l.node().attrs);if(i instanceof De&&i.node.isBlock)return!l.parentOffset||!ui(o,l.pos)?!1:(n&&(e&&VO(r,s.extensionManager.splittableMarks),t.split(l.pos).scrollIntoView()),!0);if(!l.parent.isBlock)return!1;const f=d.parentOffset===d.parent.content.size,m=l.depth===0?void 0:dde(l.node(-1).contentMatchAt(l.indexAfter(-1)));let y=f&&m?[{type:m,attrs:g}]:void 0,S=ui(t.doc,t.mapping.map(l.pos),1,y);if(!y&&!S&&ui(t.doc,t.mapping.map(l.pos),1,m?[{type:m}]:void 0)&&(S=!0,y=m?[{type:m,attrs:g}]:void 0),n){if(S&&(i instanceof $e&&t.deleteSelection(),t.split(t.mapping.map(l.pos),1,y),m&&!f&&!l.parentOffset&&l.parent.type!==m)){const b=t.mapping.map(l.before()),v=t.doc.resolve(b);l.node(-1).canReplaceWith(v.index(),v.index()+1,m)&&t.setNodeMarkup(t.mapping.map(l.before()),m)}e&&VO(r,s.extensionManager.splittableMarks),t.scrollIntoView()}return S},Bde=(e,t={})=>({tr:r,state:n,dispatch:s,editor:i})=>{var o;const l=ur(e,n.schema),{$from:d,$to:u}=n.selection,g=n.selection.node;if(g&&g.isBlock||d.depth<2||!d.sameParent(u))return!1;const f=d.node(-1);if(f.type!==l)return!1;const m=i.extensionManager.attributes;if(d.parent.content.size===0&&d.node(-1).childCount===d.indexAfter(-1)){if(d.depth===2||d.node(-3).type!==l||d.index(-2)!==d.node(-2).childCount-1)return!1;if(s){let j=he.empty;const k=d.index(-1)?1:d.index(-2)?2:3;for(let N=d.depth-k;N>=d.depth-3;N-=1)j=he.from(d.node(N).copy(j));const P=d.indexAfter(-1)<d.node(-2).childCount?1:d.indexAfter(-2)<d.node(-3).childCount?2:3,O={...Vx(m,d.node().type.name,d.node().attrs),...t},T=((o=l.contentMatch.defaultType)==null?void 0:o.createAndFill(O))||void 0;j=j.append(he.from(l.createAndFill(null,T)||void 0));const C=d.before(d.depth-(k-1));r.replace(C,d.after(-P),new we(j,4-k,0));let A=-1;r.doc.nodesBetween(C,r.doc.content.size,(N,M)=>
vendor: 3,409 bytes, line 885
885{if(A>-1)return!1;N.isTextblock&&N.content.size===0&&(A=M+1)}),A>-1&&r.setSelection($e.near(r.doc.resolve(A))),r.scrollIntoView()}return!0}const y=u.pos===d.end()?f.contentMatchAt(0).defaultType:null,S={...Vx(m,f.type.name,f.attrs),...t},b={...Vx(m,d.node().type.name,d.node().attrs),...t};r.delete(d.pos,u.pos);const v=y?[{type:l,attrs:S},{type:y,attrs:b}]:[{type:l,attrs:S}];if(!ui(r.doc,d.pos,2))return!1;if(s){const{selection:j,storedMarks:k}=n,{splittableMarks:P}=i.extensionManager,O=k||j.$to.parentOffset&&j.$from.marks();if(r.split(d.pos,2,v).scrollIntoView(),!O||!s)return!0;const T=O.filter(C=>P.includes(C.type.name));r.ensureMarks(T)}return!0},Cv=(e,t)=>{const r=Ry(o=>o.type===t)(e.selection);if(!r)return!0;const n=e.doc.resolve(Math.max(0,r.pos-1)).before(r.depth);if(n===void 0)return!0;const s=e.doc.nodeAt(n);return r.node.type===s?.type&&$o(e.doc,r.pos)&&e.join(r.pos),!0},Ev=(e,t)=>{const r=Ry(o=>o.type===t)(e.selection);if(!r)return!0;const n=e.doc.resolve(r.start).after(r.depth);if(n===void 0)return!0;const s=e.doc.nodeAt(n);return r.node.type===s?.type&&$o(e.doc,n)&&e.join(n),!0};function Lde(e){const t=e.doc,r=t.firstChild;if(!r)return null;const n=t.resolve(1),s=t.resolve(r.nodeSize-1);return $e.between(n,s)}var Wde=(e,t,r,n={})=>({editor:s,tr:i,state:o,dispatch:l,chain:d,commands:u,can:g})=>{const{extensions:f,splittableMarks:m}=s.extensionManager,y=ur(e,o.schema),S=ur(t,o.schema),{selection:b,storedMarks:v}=o,{$from:j,$to:k}=b,P=j.blockRange(k),O=v||b.$to.parentOffset&&b.$from.marks();if(!P)return!1;const T=Ry(W=>zv(W.type.name,f))(b),C=b.from===0&&b.to===o.doc.content.size,A=o.doc.content.content,N=A.length===1?A[0]:null,M=C&&N&&zv(N.type.name,f)?{node:N,pos:0}:null,B=T??M,R=!!T&&P.depth>=1&&P.depth-T.depth<=1,_=!!M;if((R||_)&&B){if(B.node.type===y)return C&&_?d().command(({tr:W,dispatch:V})=>{const F=Lde(W);return F?(W.setSelection(F),V&&V(W),!0):!1}).liftListItem(S).run():u.liftListItem(S);if(zv(B.node.type.name,f)&&y.validContent(B.node.content))return d().command(()=>(i.setNodeMarkup(B.pos,y),!0)).command(()=>Cv(i,y)).command(()=>Ev(i,y)).run()}return!r||!O||!l?d().command(()=>g().wrapInList(y,n)?!0:u.clearNodes()).wrapInList(y,n).command(()=>Cv(i,y)).command(()=>Ev(i,y)).run():d().command(()=>{const W=g().wrapInList(y,n),V=O.filter(F=>m.includes(F.type.name));return i.ensureMarks(V),W?!0:u.clearNodes()}).wrapInList(y,n).command(()=>Cv(i,y)).command(()=>Ev(i,y)).run()},$de=(e,t={},r={})=>({state:n,commands:s})=>{const{extendEmptyMarkRange:i=!1}=r,o=Ti(e,n.schema);return nT(n,o,t)?s.unsetMark(o,{extendEmptyMarkRange:i}):s.setMark(o,t)},Fde=(e,t,r={})=>({state:n,commands:s})=>{const i=ur(e,n.schema),o=ur(t,n.schema),l=Bo(n,i,r);let d;return n.selection.$anchor.sameParent(n.selection.$head)&&(d=n.selection.$anchor.parent.attrs),l?s.setNode(o,d):s.setNode(i,{...d,...r})},Hde=(e,t={})=>({state:r,commands:n})=>{const s=ur(e,r.schema);return Bo(r,s,t)?n.lift(s):n.wrapIn(s,t)},qde=()=>({state:e,dispatch:t})=>{const r=e.plugins;for(let n=0;n<r.length;n+=1){const s=r[n];let i;if(s.spec.isInputRules&&(i=s.getState(e))){if(t){const o=e.tr,l=i.transform;for(let d=l.steps.length-1;d>=0;d-=1)o.step(l.steps[d].invert(l.docs[d]));if(i.text){const d=o.doc.resolve(i.from).marks();o.replaceWith(i.from,i.to,e.schema.text(i.text,d))}else o.delete(i.from,i.to)}return!0}}return!1},Ude=()=>({tr:e,dispatch:t})=>{const{selection:r}=e,{empty:n,ranges:s}=r;
vendor: 34,424 bytes, lines 885-958
885return n||t&&s.forEach(i=>{e.removeMark(i.$from.pos,i.$to.pos)}),!0},Gde=(e,t={})=>({tr:r,state:n,dispatch:s})=>{var i;const{extendEmptyMarkRange:o=!1}=t,{selection:l}=r,d=Ti(e,n.schema),{$from:u,empty:g,ranges:f}=l;if(!s)return!0;if(g&&o){let{from:m,to:y}=l;const S=(i=u.marks().find(v=>v.type===d))==null?void 0:i.attrs,b=LA(u,d,S);b&&(m=b.from,y=b.to),r.removeMark(m,y,d)}else f.forEach(m=>{r.removeMark(m.$from.pos,m.$to.pos,d)});return r.removeStoredMark(d),!0},Vde=e=>({tr:t,state:r,dispatch:n})=>{const{selection:s}=r;let i,o;return typeof e=="number"?(i=e,o=e):e&&"from"in e&&"to"in e?(i=e.from,o=e.to):(i=s.from,o=s.to),n&&t.doc.nodesBetween(i,o,(l,d)=>{if(l.isText)return;const u={...l.attrs};delete u.dir,t.setNodeMarkup(d,void 0,u)}),!0},Xde=(e,t={})=>({tr:r,state:n,dispatch:s})=>{let i=null,o=null;const l=Ny(typeof e=="string"?e:e.name,n.schema);if(!l)return!1;l==="node"&&(i=ur(e,n.schema)),l==="mark"&&(o=Ti(e,n.schema));let d=!1;return r.selection.ranges.forEach(u=>{const g=u.$from.pos,f=u.$to.pos;let m,y,S,b;r.selection.empty?n.doc.nodesBetween(g,f,(v,j)=>{i&&i===v.type&&(d=!0,S=Math.max(j,g),b=Math.min(j+v.nodeSize,f),m=j,y=v)}):n.doc.nodesBetween(g,f,(v,j)=>{j<g&&i&&i===v.type&&(d=!0,S=Math.max(j,g),b=Math.min(j+v.nodeSize,f),m=j,y=v),j>=g&&j<=f&&(i&&i===v.type&&(d=!0,s&&r.setNodeMarkup(j,void 0,{...v.attrs,...t})),o&&v.marks.length&&v.marks.forEach(k=>{if(o===k.type&&(d=!0,s)){const P=Math.max(j,g),O=Math.min(j+v.nodeSize,f);r.addMark(P,O,o.create({...k.attrs,...t}))}}))}),y&&(m!==void 0&&s&&r.setNodeMarkup(m,void 0,{...y.attrs,...t}),o&&y.marks.length&&y.marks.forEach(v=>{o===v.type&&s&&r.addMark(S,b,o.create({...v.attrs,...t}))}))}),d},Kde=(e,t={})=>({state:r,dispatch:n})=>{const s=ur(e,r.schema);return Soe(s,t)(r,n)},Qde=(e,t={})=>({state:r,dispatch:n})=>{const s=ur(e,r.schema);return joe(s,t)(r,n)},Yde=class{constructor(){this.callbacks={}}on(t,r){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(r),this}emit(t,...r){const n=this.callbacks[t];return n&&n.forEach(s=>s.apply(this,r)),this}off(t,r){const n=this.callbacks[t];return n&&(r?this.callbacks[t]=n.filter(s=>s!==r):delete this.callbacks[t]),this}once(t,r){const n=(...s)=>{this.off(t,n),r.apply(this,s)};return this.on(t,n)}removeAllListeners(){this.callbacks={}}},_y=class{constructor(e){var t;this.find=e.find,this.handler=e.handler,this.undoable=(t=e.undoable)!=null?t:!0}},Zde=(e,t)=>{if(BA(t))return t.exec(e);const r=t(e);if(!r)return null;const n=[r.text];return n.index=r.index,n.input=e,n.data=r.data,r.replaceWith&&(r.text.includes(r.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),n.push(r.replaceWith)),n};function Jm(e){var t;const{editor:r,from:n,to:s,text:i,rules:o,plugin:l}=e,{view:d}=r;if(d.composing)return!1;const u=d.state.doc.resolve(n);if(u.parent.type.spec.code||(t=u.nodeBefore||u.nodeAfter)!=null&&t.marks.find(m=>m.type.spec.code))return!1;let g=!1;const f=wde(u)+i;return o.forEach(m=>{if(g)return;const y=Zde(f,m.find);if(!y)return;const S=d.state.tr,b=Oy({state:d.state,transaction:S}),v={from:n-(y[0].length-i.length),to:s},{commands:j,chain:k,can:P}=new My({editor:r,state:b});m.handler({state:b,range:v,match:y,commands:j,chain:k,can:P})===null||!S.steps.length||(m.undoable&&S.setMeta(l,{transform:S,from:n,to:s,text:i}),d.dispatch(S),g=!0)}),g}function Jde(e){const{editor:t,rules:r}=e,n=new Lt({state:{init(){return null},apply(s,i,o){const l=s.getMeta(n);if(l)return l;const d=s.getMeta("applyInputRules");return!!d&&setTimeout(()=>{let{text:g}=d;typeof g=="string"?g=g:g=$A(he.from(g),o.schema);const{from:f}=d,m=f+g.length;Jm({editor:t,from:f,to:m,text:g,rules:r,plugin:n})}),s.selectionSet||s.docChanged?null:i}},props:{handleTextInput(s,i,o,l){return Jm({editor:t,from:i,to:o,text:l,rules:r,plugin:n})},handleDOMEvents:{compositionend:s=>(setTimeout(()=>{const{$cursor:i}=s.state.selection;i&&Jm({editor:t,from:i.pos,to:i.pos,text:"",rules:r,plugin:n})}),!1)},handleKeyDown(s,i){if(i.key!=="Enter")return!1;const{$cursor:o}=s.state.selection;return o?Jm({editor:t,from:o.pos,to:o.pos,text:` 886`,rules:r,plugin:n}):!1}},isInputRules:!0});return n}function eue(e){return Object.prototype.toString.call(e).slice(8,-1)}function ex(e){return eue(e)!=="Object"?!1:e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function aH(e,t){const r={...e};return ex(e)&&ex(t)&&Object.keys(t).forEach(n=>{ex(t[n])&&ex(e[n])?r[n]=aH(e[n],t[n]):r[n]=t[n]}),r}var HA=class{constructor(e={}){this.type="extendable",this.parent=null,this.child=null,this.name="",this.config={name:this.name},this.config={...this.config,...e},this.name=this.config.name}get options(){return{...xt(Me(this,"addOptions",{name:this.name}))||{}}}get storage(){return{...xt(Me(this,"addStorage",{name:this.name,options:this.options}))||{}}}configure(e={}){const t=this.extend({...this.config,addOptions:()=>aH(this.options,e)});return t.name=this.name,t.parent=this.parent,this.child=null,t}extend(e={}){const t=new this.constructor({...this.config,...e});return t.parent=this,this.child=t,t.name="name"in e?e.name:t.parent.name,t}},wc=class sH extends HA{constructor(){super(...arguments),this.type="mark"}static create(t={}){const r=typeof t=="function"?t():t;return new sH(r)}static handleExit({editor:t,mark:r}){const{tr:n}=t.state,s=t.state.selection.$from;if(s.pos===s.end()){const o=s.marks();if(!!!o.find(u=>u?.type.name===r.name))return!1;const d=o.find(u=>u?.type.name===r.name);return d&&n.removeStoredMark(d),n.insertText(" ",s.pos),t.view.dispatch(n),!0}return!1}configure(t){return super.configure(t)}extend(t){const r=typeof t=="function"?t():t;return super.extend(r)}};function tue(e){return typeof e=="number"}var rue=class{constructor(e){this.find=e.find,this.handler=e.handler}},nue=(e,t,r)=>{if(BA(t))return[...e.matchAll(t)];const n=t(e,r);return n?n.map(s=>{const i=[s.text];return i.index=s.index,i.input=e,i.data=s.data,s.replaceWith&&(s.text.includes(s.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),i.push(s.replaceWith)),i}):[]};function aue(e){const{editor:t,state:r,from:n,to:s,rule:i,pasteEvent:o,dropEvent:l}=e,{commands:d,chain:u,can:g}=new My({editor:t,state:r}),f=[];return r.doc.nodesBetween(n,s,(y,S)=>{var b,v,j,k,P;if((v=(b=y.type)==null?void 0:b.spec)!=null&&v.code||!(y.isText||y.isTextblock||y.isInline))return;const O=(P=(k=(j=y.content)==null?void 0:j.size)!=null?k:y.nodeSize)!=null?P:0,T=Math.max(n,S),C=Math.min(s,S+O);if(T>=C)return;const A=y.isText?y.text||"":y.textBetween(T-S,C-S,void 0,"");nue(A,i.find,o).forEach(M=>{if(M.index===void 0)return;const B=T+M.index+1,R=B+M[0].length,_={from:r.tr.mapping.map(B),to:r.tr.mapping.map(R)},W=i.handler({state:r,range:_,match:M,commands:d,chain:u,can:g,pasteEvent:o,dropEvent:l});f.push(W)})}),f.every(y=>y!==null)}var tx=null,sue=e=>{var t;const r=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(t=r.clipboardData)==null||t.setData("text/html",e),r};function iue(e){const{editor:t,rules:r}=e;let n=null,s=!1,i=!1,o=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,l;try{l=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{l=null}const d=({state:g,from:f,to:m,rule:y,pasteEvt:S})=>{const b=g.tr,v=Oy({state:g,transaction:b});if(!(!aue({editor:t,state:v,from:Math.max(f-1,0),to:m.b-1,rule:y,pasteEvent:S,dropEvent:l})||!b.steps.length)){try{l=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{l=null}return o=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,b}};return r.map(g=>new Lt({view(f){const m=S=>{var b;n=(b=f.dom.parentElement)!=null&&b.contains(S.target)?f.dom.parentElement:null,n&&(tx=t)},y=()=>{tx&&(tx=null)};return window.addEventListener("dragstart",m),window.addEventListener("dragend",y),{destroy(){window.removeEventListener("dragstart",m),window.removeEventListener("dragend",y)}}},props:{handleDOMEvents:{drop:(f,m)=>{if(i=n===f.dom.parentElement,l=m,!i){const y=tx;y?.isEditable&&setTimeout(()=>{const S=y.state.selection;S&&y.commands.deleteRange({from:S.from,to:S.to})},10)}return!1},paste:(f,m)=>{var y;const S=(y=m.clipboardData)==null?void 0:y.getData("text/html");return o=m,s=!!S?.includes("data-pm-slice"),!1}}},appendTransaction:(f,m,y)=>{const S=f[0],b=S.getMeta("uiEvent")==="paste"&&!s,v=S.getMeta("uiEvent")==="drop"&&!i,j=S.getMeta("applyPasteRules"),k=!!j;if(!b&&!v&&!k)return;if(k){let{text:T}=j;typeof T=="string"?T=T:T=$A(he.from(T),y.schema);const{from:C}=j,A=C+T.length,N=sue(T);return d({rule:g,state:y,from:C,to:{b:A},pasteEvt:N})}const P=m.doc.content.findDiffStart(y.doc.content),O=m.doc.content.findDiffEnd(y.doc.content);if(!(!tue(P)||!O||P===O.b))return d({rule:g,state:y,from:P,to:O,pasteEvt:o})}}))}var Iy=class{constructor(e,t){this.splittableMarks=[],this.editor=t,this.baseExtensions=e,this.extensions=QF(e),this.schema=mde(this.extensions,t),this.setupExtensions()}get commands(){return this.extensions.reduce((e,t)=>{const r={name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:this.editor,type:Yp(t.name,this.schema)},n=Me(t,"addCommands",r);return n?{...e,...n()}:e},{})}get plugins(){const{editor:e}=this;return Cg([...this.extensions].reverse()).flatMap(n=>{const s={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:e,type:Yp(n.name,this.schema)},i=[],o=Me(n,"addKeyboardShortcuts",s);let l={};if(n.type==="mark"&&Me(n,"exitable",s)&&(l.ArrowRight=()=>wc.handleExit({editor:e,mark:n})),o){const m=Object.fromEntries(Object.entries(o()).map(([y,S])=>[y,()=>S({editor:e})]));l={...l,...m}}const d=yce(l);i.push(d);const u=Me(n,"addInputRules",s);if(GO(n,e.options.enableInputRules)&&u){const m=u();if(m&&m.length){const y=Jde({editor:e,rules:m}),S=Array.isArray(y)?y:[y];i.push(...S)}}const g=Me(n,"addPasteRules",s);if(GO(n,e.options.enablePasteRules)&&g){const m=g();if(m&&m.length){const y=iue({editor:e,rules:m});i.push(...y)}}const f=Me(n,"addProseMirrorPlugins",s);if(f){const m=f();i.push(...m)}return i})}get attributes(){return KF(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:t}=du(this.extensions);return Object.fromEntries(t.filter(r=>!!Me(r,"addNodeView")).map(r=>{const n=this.attributes.filter(d=>d.type===r.name),s={name:r.name,options:r.options,storage:this.editor.extensionStorage[r.name],editor:e,type:ur(r.name,this.schema)},i=Me(r,"addNodeView",s);if(!i)return[];const o=i();if(!o)return[];const l=(d,u,g,f,m)=>{const y=cf(d,n);return o({node:d,view:u,getPos:g,decorations:f,innerDecorations:m,editor:e,extension:r,HTMLAttributes:y})};return[r.name,l]}))}dispatchTransaction(e){const{editor:t}=this;return Cg([...this.extensions].reverse()).reduceRight((n,s)=>{const i={name:s.name,options:s.options,storage:this.editor.extensionStorage[s.name],editor:t,type:Yp(s.name,this.schema)},o=Me(s,"dispatchTransaction",i);return o?l=>{o.call(i,{transaction:l,next:n})}:n},e)}transformPastedHTML(e){const{editor:t}=this;return Cg([...this.extensions]).reduce((n,s)=>{const i={name:s.name,options:s.options,storage:this.editor.extensionStorage[s.name],editor:t,type:Yp(s.name,this.schema)},o=Me(s,"transformPastedHTML",i);return o?(l,d)=>{const u=n(l,d);return o.call(i,u)}:n},e||(n=>n))}get markViews(){const{editor:e}=this,{markExtensions:t}=du(this.extensions);return Object.fromEntries(t.filter(r=>!!Me(r,"addMarkView")).map(r=>{const n=this.attributes.filter(l=>l.type===r.name),s={name:r.name,options:r.options,storage:this.editor.extensionStorage[r.name],editor:e,type:Ti(r.name,this.schema)},i=Me(r,"addMarkView",s);if(!i)return[];const o=(l,d,u)=>{const g=cf(l,n);return i()({mark:l,view:d,inline:u,editor:e,extension:r,HTMLAttributes:g,updateAttributes:f=>{Sue(l,e,f)}})};return[r.name,o]}))}destroy(){this.extensions.forEach(e=>{let t=e;for(;t.parent;){const r=t.parent;r.child===t&&(r.child=null),t=r}}),this.extensions=[],this.baseExtensions=[],this.schema=null,this.editor=null}setupExtensions(){const e=this.extensions;this.editor.extensionStorage=Object.fromEntries(e.map(t=>[t.name,t.storage])),e.forEach(t=>{var r;const n={name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:this.editor,type:Yp(t.name,this.schema)};t.type==="mark"&&((r=xt(Me(t,"keepOnSplit",n)))==null||r)&&this.splittableMarks.push(t.name);const s=Me(t,"onBeforeCreate",n),i=Me(t,"onCreate",n),o=Me(t,"onUpdate",n),l=Me(t,"onSelectionUpdate",n),d=Me(t,"onTransaction",n),u=Me(t,"onFocus",n),g=Me(t,"onBlur",n),f=Me(t,"onDestroy",n);s&&this.editor.on("beforeCreate",s),i&&this.editor.on("create",i),o&&this.editor.on("update",o),l&&this.editor.on("selectionUpdate",l),d&&this.editor.on("transaction",d),u&&this.editor.on("focus",u),g&&this.editor.on("blur",g),f&&this.editor.on("destroy",f)})}};Iy.resolve=QF;Iy.sort=Cg;Iy.flatten=WA;var oue={};IA(oue,{ClipboardTextSerializer:()=>oH,Commands:()=>lH,Delete:()=>cH,Drop:()=>dH,Editable:()=>uH,FocusEvents:()=>gH,Keymap:()=>fH,Paste:()=>hH,Tabindex:()=>mH,TextDirection:()=>xH,focusEventsPluginKey:()=>pH});var er=class iH extends HA{constructor(){super(...arguments),this.type="extension"}static create(t={}){const r=typeof t=="function"?t():t;return new iH(r)}configure(t){return super.configure(t)}extend(t){const r=typeof t=="function"?t():t;return super.extend(r)}},oH=er.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new Lt({key:new yr("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:e}=this,{state:t,schema:r}=e,{doc:n,selection:s}=t,{ranges:i}=s,o=Math.min(...i.map(g=>g.$from.pos)),l=Math.max(...i.map(g=>g.$to.pos)),d=ZF(r);return YF(n,{from:o,to:l},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:d})}}})]}}),lH=er.create({name:"commands",addCommands(){return{...WF}}}),cH=er.create({name:"delete",onUpdate({transaction:e,appendedTransactions:t}){var r,n,s;const i=()=>{var o,l,d,u;if((u=(d=(l=(o=this.editor.options.coreExtensionOptions)==null?void 0:o.delete)==null?void 0:l.filterTransaction)==null?void 0:d.call(l,e))!=null?u:e.getMeta("y-sync$"))return;const g=VF(e.before,[e,...t]);eH(g).forEach(y=>{g.mapping.mapResult(y.oldRange.from).deletedAfter&&g.mapping.mapResult(y.oldRange.to).deletedBefore&&g.before.nodesBetween(y.oldRange.from,y.oldRange.to,(S,b)=>{const v=b+S.nodeSize-2,j=y.oldRange.from<=b&&v<=y.oldRange.to;this.editor.emit("delete",{type:"node",node:S,from:b,to:v,newFrom:g.mapping.map(b),newTo:g.mapping.map(v),deletedRange:y.oldRange,newRange:y.newRange,partial:!j,editor:this.editor,transaction:e,combinedTransform:g})})});const m=g.mapping;g.steps.forEach((y,S)=>{var b,v;if(y instanceof Ba){const j=m.slice(S).map(y.from,-1),k=m.slice(S).map(y.to),P=m.invert().map(j,-1),O=m.invert().map(k),T=j>0?(b=g.doc.nodeAt(j-1))==null?void 0:b.marks.some(A=>A.eq(y.mark)):!1,C=(v=g.doc.nodeAt(k))==null?void 0:v.marks.some(A=>A.eq(y.mark));this.editor.emit("delete",{type:"mark",mark:y.mark,from:y.from,to:y.to,deletedRange:{from:P,to:O},newRange:{from:j,to:k},partial:!!(C||T),editor:this.editor,transaction:e,combinedTransform:g})}})};(s=(n=(r=this.editor.options.coreExtensionOptions)==null?void 0:r.delete)==null?void 0:n.async)==null||s?setTimeout(i,0):i()}}),dH=er.create({name:"drop",addProseMirrorPlugins(){return[new Lt({key:new yr("tiptapDrop"),props:{handleDrop:(e,t,r,n)=>{this.editor.emit("drop",{editor:this.editor,event:t,slice:r,moved:n})}}})]}}),uH=er.create({name:"editable",addProseMirrorPlugins(){return[new Lt({key:new yr("editable"),props:{editable:()=>this.editor.options.editable}})]}}),pH=new yr("focusEvents"),gH=er.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:e}=this;return[new Lt({key:pH,props:{handleDOMEvents:{focus:(t,r)=>{e.isFocused=!0;const n=e.state.tr.setMeta("focus",{event:r}).setMeta("addToHistory",!1);return t.dispatch(n),!1},blur:(t,r)=>{e.isFocused=!1;const n=e.state.tr.setMeta("blur",{event:r}).setMeta("addToHistory",!1);return t.dispatch(n),!1}}}})]}}),fH=er.create({name:"keymap",addKeyboardShortcuts(){const e=()=>this.editor.commands.first(({commands:o})=>[()=>o.undoInputRule(),()=>o.command(({tr:l})=>{const{selection:d,doc:u}=l,{empty:g,$anchor:f}=d,{pos:m,parent:y}=f,S=f.parent.isTextblock&&m>0?l.doc.resolve(m-1):f,b=S.parent.type.spec.isolating,v=f.pos-f.parentOffset,j=b&&S.parent.childCount===1?v===f.pos:Ve.atStart(u).from===m;return!g||!y.type.isTextblock||y.textContent.length||!j||j&&f.parent.type.name==="paragraph"?!1:o.clearNodes()}),()=>o.deleteSelection(),()=>o.joinBackward(),()=>o.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:o})=>[()=>o.deleteSelection(),()=>o.deleteCurrentNode(),()=>o.joinForward(),()=>o.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:o})=>[()=>o.newlineInCode(),()=>o.createParagraphNear(),()=>o.liftEmptyBlock(),()=>o.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},s={...n},i={...n,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return P0()||UF()?i:s},addProseMirrorPlugins(){return[new Lt({key:new yr("clearDocument"),appendTransaction:(e,t,r)=>{if(e.some(b=>b.getMeta("composition")))return;const n=e.some(b=>b.docChanged)&&!t.doc.eq(r.doc),s=e.some(b=>b.getMeta("preventClearDocument"));if(!n||s)return;const{empty:i,from:o,to:l}=t.selection,d=Ve.atStart(t.doc).from,u=Ve.atEnd(t.doc).to;if(i||!(o===d&&l===u)||!Dy(r.doc))return;const m=r.tr,y=Oy({state:r,transaction:m}),{commands:S}=new My({editor:this.editor,state:y});if(S.clearNodes(),!!m.steps.length)return m}})]}}),hH=er.create({name:"paste",addProseMirrorPlugins(){return[new Lt({key:new yr("tiptapPaste"),props:{handlePaste:(e,t,r)=>{this.editor.emit("paste",{editor:this.editor,event:t,slice:r})}}})]}}),mH=er.create({name:"tabindex",addOptions(){return{value:void 0}},addProseMirrorPlugins(){return[new Lt({key:new yr("tabindex"),props:{attributes:()=>{var e;return!this.editor.isEditable&&this.options.value===void 0?{}:{tabindex:(e=this.options.value)!=null?e:"0"}}}})]}}),xH=er.create({name:"textDirection",addOptions(){return{direction:void 0}},addGlobalAttributes(){if(!this.options.direction)return[];const{nodeExtensions:e}=du(this.extensions);return[{types:e.filter(t=>t.name!=="text").map(t=>t.name),attributes:{dir:{default:this.options.direction,parseHTML:t=>{const r=t.getAttribute("dir");return r&&(r==="ltr"||r==="rtl"||r==="auto")?r:this.options.direction},renderHTML:t=>t.dir?{dir:t.dir}:{}}}}]},addProseMirrorPlugins(){return[new Lt({key:new yr("textDirection"),props:{attributes:()=>{const e=this.options.direction;return e?{dir:e}:{}}}})]}}),lue=class mg{constructor(t,r,n=!1,s=null){this.currentNode=null,this.actualDepth=null,this.isBlock=n,this.resolvedPos=t,this.editor=r,this.currentNode=s}get name(){return this.node.type.name}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var t;return(t=this.actualDepth)!=null?t:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(t){let r=this.from,n=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You canât set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}r=this.from+1,n=this.to-1}this.editor.commands.insertContentAt({from:r,to:n},t)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const t=this.resolvedPos.start(this.resolvedPos.depth-1),r=this.resolvedPos.doc.resolve(t);return new mg(r,this.editor)}get before(){let t=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.from-3)),new mg(t,this.editor)}get after(){let t=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.to+3)),new mg(t,this.editor)}get children(){const t=[];return this.node.content.forEach((r,n)=>{const s=r.isBlock&&!r.isTextblock,i=r.isAtom&&!r.isText,o=r.isInline,l=this.pos+n+(i?0:1);if(l<0||l>this.resolvedPos.doc.nodeSize-2)return;const d=this.resolvedPos.doc.resolve(l);if(!s&&!o&&d.depth<=this.depth)return;const u=new mg(d,this.editor,s,s||o?r:null);s&&(u.actualDepth=this.depth+1),t.push(u)}),t}get firstChild(){return this.children[0]||null}get lastChild(){const t=this.children;return t[t.length-1]||null}closest(t,r={}){let n=null,s=this.parent;for(;s&&!n;){if(s.node.type.name===t)if(Object.keys(r).length>0){const i=s.node.attrs,o=Object.keys(r);for(let l=0;l<o.length;l+=1){const d=o[l];if(i[d]!==r[d])break}}else n=s;s=s.parent}return n}querySelector(t,r={}){return this.querySelectorAll(t,r,!0)[0]||null}querySelectorAll(t,r={},n=!1){let s=[];if(!this.children||this.children.length===0)return s;const i=Object.keys(r);return this.children.forEach(o=>{n&&s.length>0||(o.node.type.name===t&&i.every(d=>r[d]===o.node.attrs[d])&&s.push(o),!(n&&s.length>0)&&(s=s.concat(o.querySelectorAll(t,r,n))))}),s}setAttribute(t){const{tr:r}=this.editor.state;r.setNodeMarkup(this.from,void 0,{...this.node.attrs,...t}),this.editor.view.dispatch(r)}},cue=`.ProseMirror { 887 position: relative; 888} 889 890.ProseMirror { 891 word-wrap: break-word; 892 white-space: pre-wrap; 893 white-space: break-spaces; 894 -webkit-font-variant-ligatures: none; 895 font-variant-ligatures: none; 896 font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */ 897} 898 899.ProseMirror [contenteditable="false"] { 900 white-space: normal; 901} 902 903.ProseMirror [contenteditable="false"] [contenteditable="true"] { 904 white-space: pre-wrap; 905} 906 907.ProseMirror pre { 908 white-space: pre-wrap; 909} 910 911img.ProseMirror-separator { 912 display: inline !important; 913 border: none !important; 914 margin: 0 !important; 915 width: 0 !important; 916 height: 0 !important; 917} 918 919.ProseMirror-gapcursor { 920 display: none; 921 pointer-events: none; 922 position: absolute; 923 margin: 0; 924} 925 926.ProseMirror-gapcursor:after { 927 content: ""; 928 display: block; 929 position: absolute; 930 top: -2px; 931 width: 20px; 932 border-top: 1px solid black; 933 animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite; 934} 935 936@keyframes ProseMirror-cursor-blink { 937 to { 938 visibility: hidden; 939 } 940} 941 942.ProseMirror-hideselection *::selection { 943 background: transparent; 944} 945 946.ProseMirror-hideselection *::-moz-selection { 947 background: transparent; 948} 949 950.ProseMirror-hideselection * { 951 caret-color: transparent; 952} 953 954.ProseMirror-focused .ProseMirror-gapcursor { 955 display: block; 956}`;function due(e,t,r){const n=document.querySelector("style[data-tiptap-style]");if(n!==null)return n;const s=document.createElement("style");return t&&s.setAttribute("nonce",t),s.setAttribute("data-tiptap-style",""),s.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(s),s}var uue=class extends Yde{constructor(e={}){super(),this.css=null,this.className="tiptap",this.editorView=null,this.isFocused=!1,this.destroyed=!1,this.isInitialized=!1,this.extensionStorage={},this.instanceId=Math.random().toString(36).slice(2,9),this.options={element:typeof document<"u"?document.createElement("div"):null,content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,textDirection:void 0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onMount:()=>null,onUnmount:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:n})=>{throw n},onPaste:()=>null,onDrop:()=>null,onDelete:()=>null,enableExtensionDispatchTransaction:!0},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.utils={getUpdatedPosition:Ade,createMappablePosition:zde},this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("mount",this.options.onMount),this.on("unmount",this.options.onUnmount),this.on("contentError",this.options.onContentError),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:n,slice:s,moved:i})=>this.options.onDrop(n,s,i)),this.on("paste",({event:n,slice:s})=>this.options.onPaste(n,s)),this.on("delete",this.options.onDelete);const t=this.createDoc(),r=HF(t,this.options.autofocus);this.editorState=Dd.create({doc:t,schema:this.schema,selection:r||void 0}),this.options.element&&this.mount(this.options.element)}mount(e){if(typeof document>"u")throw new Error("[tiptap error]: The editor cannot be mounted because there is no 'document' defined in this environment.");this.createView(e),this.emit("mount",{editor:this}),this.css&&!document.head.contains(this.css)&&document.head.appendChild(this.css),window.setTimeout(()=>{this.isDestroyed||(this.options.autofocus!==!1&&this.options.autofocus!==null&&this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}unmount(){if(this.editorView){const e=this.editorView.dom;e?.editor&&delete e.editor,this.editorView.destroy()}if(this.editorView=null,this.isInitialized=!1,this.css&&!document.querySelectorAll(`.${this.className}`).length)try{typeof this.css.remove=="function"?this.css.remove():this.css.parentNode&&this.css.parentNode.removeChild(this.css)}catch(e){console.warn("Failed to remove CSS element:",e)}this.css=null,this.emit("unmount",{editor:this})}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&typeof document<"u"&&(this.css=due(cue,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.editorView||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}),t&&this.emit("update",{editor:this,transaction:this.state.tr,appendedTransactions:[]})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get view(){return this.editorView?this.editorView:new Proxy({state:this.editorState,updateState:e=>{this.editorState=e},dispatch:e=>{this.dispatchTransaction(e)},composing:!1,dragging:null,editable:!0,isDestroyed:!1},{get:(e,t)=>{if(this.editorView)return this.editorView[t];if(t==="state")return this.editorState;if(t in e)return Reflect.get(e,t);throw new Error(`[tiptap error]: The editor view is not available. Cannot access view['${t}']. The editor may not be mounted yet.`)}})}get state(){return this.editorView&&(this.editorState=this.view.state),this.editorState}registerPlugin(e,t){const r=XF(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],n=this.state.reconfigure({plugins:r});return this.view.updateState(n),n}unregisterPlugin(e){if(this.isDestroyed)return;const t=this.state.plugins;let r=t;if([].concat(e).forEach(s=>{const i=typeof s=="string"?`${s}$`:s.key;r=r.filter(o=>!o.key.startsWith(i))}),t.length===r.length)return;const n=this.state.reconfigure({plugins:r});return this.view.updateState(n),n}createExtensionManager(){var e,t,r,n;const i=[...this.options.enableCoreExtensions?[uH,oH.configure({blockSeparator:(t=(e=this.options.coreExtensionOptions)==null?void 0:e.clipboardTextSerializer)==null?void 0:t.blockSeparator}),lH,gH,fH,mH.configure({value:(n=(r=this.options.coreExtensionOptions)==null?void 0:r.tabindex)==null?void 0:n.value}),dH,hH,cH,xH.configure({direction:this.options.textDirection})].filter(o=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[o.name]!==!1:!0):[],...this.options.extensions].filter(o=>["extension","node","mark"].includes(o?.type));this.extensionManager=new Iy(i,this)}createCommandManager(){this.commandManager=new My({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createDoc(){let e;try{e=rT(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(t){if(!(t instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(t.message))throw t;this.emit("contentError",{editor:this,error:t,disableCollaboration:()=>{"collaboration"in this.storage&&typeof this.storage.collaboration=="object"&&this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(r=>r.name!=="collaboration"),this.createExtensionManager()}}),e=rT(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}return e}createView(e){const{editorProps:t,enableExtensionDispatchTransaction:r}=this.options,n=t.dispatchTransaction||this.dispatchTransaction.bind(this),s=r?this.extensionManager.dispatchTransaction(n):n,i=t.transformPastedHTML,o=this.extensionManager.transformPastedHTML(i);this.editorView=new BF(e,{...t,attributes:{role:"textbox",...t?.attributes},dispatchTransaction:s,transformPastedHTML:o,state:this.editorState,markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews});const l=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(l),this.prependClass(),this.injectCSS();const d=this.view.dom;d.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`${this.className} ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(u=>{var g;return(g=this.capturedTransaction)==null?void 0:g.step(u)});return}const{state:t,transactions:r}=this.state.applyTransaction(e),n=!this.state.selection.eq(t.selection),s=r.includes(e),i=this.state;if(this.emit("beforeTransaction",{editor:this,transaction:e,nextState:t}),!s)return;this.view.updateState(t),this.emit("transaction",{editor:this,transaction:e,appendedTransactions:r.slice(1)}),n&&this.emit("selectionUpdate",{editor:this,transaction:e});const o=r.findLast(u=>u.getMeta("focus")||u.getMeta("blur")),l=o?.getMeta("focus"),d=o?.getMeta("blur");l&&this.emit("focus",{editor:this,event:l.event,transaction:o}),d&&this.emit("blur",{editor:this,event:d.event,transaction:o}),!(e.getMeta("preventUpdate")||!r.some(u=>u.docChanged)||i.doc.eq(t.doc))&&this.emit("update",{editor:this,transaction:e,appendedTransactions:r.slice(1)})}getAttributes(e){return JF(this.state,e)}isActive(e,t){const r=typeof e=="string"?e:null,n=typeof e=="string"?t:e;return kde(this.state,r,n)}getJSON(){return this.state.doc.toJSON()}getHTML(){return $A(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:t=` 957 958`,textSerializers:r={}}=e||{};return yde(this.state.doc,{blockSeparator:t,textSerializers:{...ZF(this.schema),...r}})}get isEmpty(){return Dy(this.state.doc)}destroy(){this.destroyed||(this.destroyed=!0,this.emit("destroy"),this.unmount(),this.removeAllListeners(),this.extensionManager.destroy(),this.extensionManager=null,this.schema=null,this.commandManager=null,this.extensionStorage={})}get isDestroyed(){var e,t;return(t=(e=this.editorView)==null?void 0:e.isDestroyed)!=null?t:!0}$node(e,t){var r;return((r=this.$doc)==null?void 0:r.querySelector(e,t))||null}$nodes(e,t){var r;return((r=this.$doc)==null?void 0:r.querySelectorAll(e,t))||null}$pos(e){const t=this.state.doc.resolve(e);return new lue(t,this)}get $doc(){return this.$pos(0)}};function uu(e){return new _y({find:e.find,handler:({state:t,range:r,match:n})=>{const s=xt(e.getAttributes,void 0,n);if(s===!1||s===null)return null;const{tr:i}=t,o=n[n.length-1],l=n[0];if(o){const d=l.search(/\S/),u=r.from+l.indexOf(o),g=u+o.length;if(FA(r.from,r.to,t.doc).filter(y=>y.mark.type.excluded.find(b=>b===e.type&&b!==y.mark.type)).filter(y=>y.to>u).length)return null;g<r.to&&i.delete(g,r.to),u>r.from&&i.delete(r.from+d,u);const m=r.from+d+o.length;i.addMark(r.from+d,m,e.type.create(s||{})),i.removeStoredMark(e.type)}},undoable:e.undoable})}function yH(e){return new _y({find:e.find,handler:({state:t,range:r,match:n})=>{const s=xt(e.getAttributes,void 0,n)||{},{tr:i}=t,o=r.from;let l=r.to;const d=e.type.create(s);if(n[1]){const u=n[0].lastIndexOf(n[1]);let g=o+u;g>l?g=l:l=g+n[1].length;const f=n[0][n[0].length-1];i.insertText(f,o+n[0].length-1),i.replaceWith(g,l,d)}else if(n[0]){const u=e.type.isInline?o:o-1;i.insert(u,e.type.create(s)).delete(i.mapping.map(o),i.mapping.map(l))}i.scrollIntoView()},undoable:e.undoable})}function aT(e){return new _y({find:e.find,handler:({state:t,range:r,match:n})=>{const s=t.doc.resolve(r.from),i=xt(e.getAttributes,void 0,n)||{};if(!s.node(-1).canReplaceWith(s.index(-1),s.indexAfter(-1),e.type))return null;t.tr.delete(r.from,r.to).setBlockType(r.from,r.from,e.type,i)},undoable:e.undoable})}function pu(e){return new _y({find:e.find,handler:({state:t,range:r,match:n,chain:s})=>{const i=xt(e.getAttributes,void 0,n)||{},o=t.tr.delete(r.from,r.to),d=o.doc.resolve(r.from).blockRange(),u=d&&SA(d,e.type,i);if(!u)return null;if(o.wrap(d,u),e.keepMarks&&e.editor){const{selection:f,storedMarks:m}=t,{splittableMarks:y}=e.editor.extensionManager,S=m||f.$to.parentOffset&&f.$from.marks();if(S){const b=S.filter(v=>
958y.includes(v.type.name));o.ensureMarks(b)}}if(e.keepAttributes){const f=e.type.name==="bulletList"||e.type.name==="orderedList"?"listItem":"taskList";s().updateAttributes(f,i).run()}const g=o.doc.resolve(r.from-1).nodeBefore;g&&g.type===e.type&&$o(o.doc,r.from-1)&&(!e.joinPredicate||e.joinPredicate(n,g))&&o.join(r.from-1)},undoable:e.undoable})}var pue=e=>"touches"in e,gue=class{constructor(e){this.directions=["bottom-left","bottom-right","top-left","top-right"],this.minSize={height:8,width:8},this.preserveAspectRatio=!1,this.classNames={container:"",wrapper:"",handle:"",resizing:""},this.initialWidth=0,this.initialHeight=0,this.aspectRatio=1,this.isResizing=!1,this.activeHandle=null,this.startX=0,this.startY=0,this.startWidth=0,this.startHeight=0,this.isShiftKeyPressed=!1,this.lastEditableState=void 0,this.handleMap=new Map,this.handleMouseMove=l=>{if(!this.isResizing||!this.activeHandle)return;const d=l.clientX-this.startX,u=l.clientY-this.startY;this.handleResize(d,u)},this.handleTouchMove=l=>{if(!this.isResizing||!this.activeHandle)return;const d=l.touches[0];if(!d)return;const u=d.clientX-this.startX,g=d.clientY-this.startY;this.handleResize(u,g)},this.handleMouseUp=()=>{if(!this.isResizing)return;const l=this.element.offsetWidth,d=this.element.offsetHeight;this.onCommit(l,d),this.isResizing=!1,this.activeHandle=null,this.container.dataset.resizeState="false",this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)},this.handleKeyDown=l=>{l.key==="Shift"&&(this.isShiftKeyPressed=!0)},this.handleKeyUp=l=>{l.key==="Shift"&&(this.isShiftKeyPressed=!1)};var t,r,n,s,i,o;this.node=e.node,this.editor=e.editor,this.element=e.element,this.contentElement=e.contentElement,this.getPos=e.getPos,this.onResize=e.onResize,this.onCommit=e.onCommit,this.onUpdate=e.onUpdate,(t=e.options)!=null&&t.min&&(this.minSize={...this.minSize,...e.options.min}),(r=e.options)!=null&&r.max&&(this.maxSize=e.options.max),(n=e?.options)!=null&&n.directions&&(this.directions=e.options.directions),(s=e.options)!=null&&s.preserveAspectRatio&&(this.preserveAspectRatio=e.options.preserveAspectRatio),(i=e.options)!=null&&i.className&&(this.classNames={container:e.options.className.container||"",wrapper:e.options.className.wrapper||"",handle:e.options.className.handle||"",resizing:e.options.className.resizing||""}),(o=e.options)!=null&&o.createCustomHandle&&(this.createCustomHandle=e.options.createCustomHandle),this.wrapper=this.createWrapper(),this.container=this.createContainer(),this.applyInitialSize(),this.attachHandles(),this.editor.on("update",this.handleEditorUpdate.bind(this))}get dom(){return this.container}get contentDOM(){var e;return(e=this.contentElement)!=null?e:null}handleEditorUpdate(){const e=this.editor.isEditable;e!==this.lastEditableState&&(this.lastEditableState=e,e?e&&this.handleMap.size===0&&this.attachHandles():this.removeHandles())}update(e,t,r){return e.type!==this.node.type?!1:(this.node=e,this.onUpdate?this.onUpdate(e,t,r):!0)}destroy(){this.isResizing&&(this.container.dataset.resizeState="false",this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp),this.isResizing=!1,this.activeHandle=null),this.editor.off("update",this.handleEditorUpdate.bind(this)),this.container.remove()}createContainer(){const e=document.createElement("div");return e.dataset.resizeContainer="",e.dataset.node=this.node.type.name,e.style.display=this.node.type.isInline?"inline-flex":"flex",this.classNames.container&&(e.className=this.classNames.container),e.appendChild(this.wrapper),e}createWrapper(){const e=document.createElement("div");return e.style.position="relative",e.style.display="block",e.dataset.resizeWrapper="",this.classNames.wrapper&&(e.className=this.classNames.wrapper),e.appendChild(this.element),e}createHandle(e){const t=document.createElement("div");return t.dataset.resizeHandle=e,t.style.position="absolute",this.classNames.handle&&(t.className=this.classNames.handle),t}positionHandle(e,t){const r=t.includes("top"),n=t.includes("bottom"),s=t.includes("left"),i=t.includes("right");r&&(e.style.top="0"),n&&(e.style.bottom="0"),s&&(e.style.left="0"),i&&(e.style.right="0"),(t==="top"||t==="bottom")&&(e.style.left="0",e.style.right="0"),(t==="left"||t==="right")&&(e.style.top="0",e.
958style.bottom="0")}attachHandles(){this.directions.forEach(e=>{let t;this.createCustomHandle?t=this.createCustomHandle(e):t=this.createHandle(e),t instanceof HTMLElement||(console.warn(`[ResizableNodeView] createCustomHandle("${e}") did not return an HTMLElement. Falling back to default handle.`),t=this.createHandle(e)),this.createCustomHandle||this.positionHandle(t,e),t.addEventListener("mousedown",r=>this.handleResizeStart(r,e)),t.addEventListener("touchstart",r=>this.handleResizeStart(r,e)),this.handleMap.set(e,t),this.wrapper.appendChild(t)})}removeHandles(){this.handleMap.forEach(e=>e.remove()),this.handleMap.clear()}applyInitialSize(){const e=this.node.attrs.width,t=this.node.attrs.height;e?(this.element.style.width=`${e}px`,this.initialWidth=e):this.initialWidth=this.element.offsetWidth,t?(this.element.style.height=`${t}px`,this.initialHeight=t):this.initialHeight=this.element.offsetHeight,this.initialWidth>0&&this.initialHeight>0&&(this.aspectRatio=this.initialWidth/this.initialHeight)}handleResizeStart(e,t){e.preventDefault(),e.stopPropagation(),this.isResizing=!0,this.activeHandle=t,pue(e)?(this.startX=e.touches[0].clientX,this.startY=e.touches[0].clientY):(this.startX=e.clientX,this.startY=e.clientY),this.startWidth=this.element.offsetWidth,this.startHeight=this.element.offsetHeight,this.startWidth>0&&this.startHeight>0&&(this.aspectRatio=this.startWidth/this.startHeight),this.getPos(),this.container.dataset.resizeState="true",this.classNames.resizing&&this.container.classList.add(this.classNames.resizing),document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("touchmove",this.handleTouchMove),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}handleResize(e,t){if(!this.activeHandle)return;const r=this.preserveAspectRatio||this.isShiftKeyPressed,{width:n,height:s}=this.calculateNewDimensions(this.activeHandle,e,t),i=this.applyConstraints(n,s,r);this.element.style.width=`${i.width}px`,this.element.style.height=`${i.height}px`,this.onResize&&this.onResize(i.width,i.height)}calculateNewDimensions(e,t,r){let n=this.startWidth,s=this.startHeight;const i=e.includes("right"),o=e.includes("left"),l=e.includes("bottom"),d=e.includes("top");return i?n=this.startWidth+t:o&&(n=this.startWidth-t),l?s=this.startHeight+r:d&&(s=this.startHeight-r),(e==="right"||e==="left")&&(n=this.startWidth+(i?t:-t)),(e==="top"||e==="bottom")&&(s=this.startHeight+(l?r:-r)),this.preserveAspectRatio||this.isShiftKeyPressed?this.applyAspectRatio(n,s,e):{width:n,height:s}}applyConstraints(e,t,r){var n,s,i,o;if(!r){let u=Math.max(this.minSize.width,e),g=Math.max(this.minSize.height,t);return(n=this.maxSize)!=null&&n.width&&(u=Math.min(this.maxSize.width,u)),(s=this.maxSize)!=null&&s.height&&(g=Math.min(this.maxSize.height,g)),{width:u,height:g}}let l=e,d=t;return l<this.minSize.width&&(l=this.minSize.width,d=l/this.aspectRatio),d<this.minSize.height&&(d=this.minSize.height,l=d*this.aspectRatio),(i=this.maxSize)!=null&&i.width&&l>this.maxSize.width&&(l=this.maxSize.width,d=l/this.aspectRatio),(o=this.maxSize)!=null&&o.height&&d>this.maxSize.height&&(d=this.maxSize.height,l=d*this.aspectRatio),{width:l,height:d}}applyAspectRatio(e,t,r){const n=r==="left"||r==="right",s=r==="top"||r==="bottom";return n?{width:e,height:e/this.aspectRatio}:s?{width:t*this.aspectRatio,height:t}:{width:e,height:e/this.aspectRatio}}};function fue(e,t){const{selection:r}=e,{$from:n}=r;if(r instanceof De){const i=n.index();return n.parent.canReplaceWith(i,i+1,t)}let s=n.depth;for(;s>=0;){const i=n.index(s);if(n.node(s).contentMatchAt(i).matchType(t))return!0;s-=1}return!1}var hue={};IA(hue,{createAtomBlockMarkdownSpec:()=>mue,createBlockMarkdownSpec:()=>xue,createInlineMarkdownSpec:()=>vue,parseAttributes:()=>qA,parseIndentedBlocks:()=>sT,renderNestedMarkdownContent:()=>GA,serializeAttributes:()=>UA});function qA(e){if(!e?.trim())return{};const t={},r=[],n=e.replace(/["']([^"']*)["']/g,u=>(r.push(u),`__QUOTED_${r.length-1}
958__`)),s=n.match(/(?:^|\s)\.([a-zA-Z][\w-]*)/g);if(s){const u=s.map(g=>g.trim().slice(1));t.class=u.join(" ")}const i=n.match(/(?:^|\s)#([a-zA-Z][\w-]*)/);i&&(t.id=i[1]);const o=/([a-zA-Z][\w-]*)\s*=\s*(__QUOTED_\d+__)/g;Array.from(n.matchAll(o)).forEach(([,u,g])=>{var f;const m=parseInt(((f=g.match(/__QUOTED_(\d+)__/))==null?void 0:f[1])||"0",10),y=r[m];y&&(t[u]=y.slice(1,-1))});const d=n.replace(/(?:^|\s)\.([a-zA-Z][\w-]*)/g,"").replace(/(?:^|\s)#([a-zA-Z][\w-]*)/g,"").replace(/([a-zA-Z][\w-]*)\s*=\s*__QUOTED_\d+__/g,"").trim();return d&&d.split(/\s+/).filter(Boolean).forEach(g=>{g.match(/^[a-zA-Z][\w-]*$/)&&(t[g]=!0)}),t}function UA(e){if(!e||Object.keys(e).length===0)return"";const t=[];return e.class&&String(e.class).split(/\s+/).filter(Boolean).forEach(n=>t.push(`.${n}`)),e.id&&t.push(`#${e.id}`),Object.entries(e).forEach(([r,n])=>{r==="class"||r==="id"||(n===!0?t.push(r):n!==!1&&n!=null&&t.push(`${r}="${String(n)}"`))}),t.join(" ")}function mue(e){const{nodeName:t,name:r,parseAttributes:n=qA,serializeAttributes:s=UA,defaultAttributes:i={},requiredAttributes:o=[],allowedAttributes:l}=e,d=r||t,u=g=>{if(!l)return g;const f={};return l.forEach(m=>{m in g&&(f[m]=g[m])}),f};return{parseMarkdown:(g,f)=>{const m={...i,...g.attributes};return f.createNode(t,m,[])},markdownTokenizer:{name:t,level:"block",start(g){var f;const m=new RegExp(`^:::${d}(?:\\s|$)`,"m"),y=(f=g.match(m))==null?void 0:f.index;return y!==void 0?y:-1},tokenize(g,f,m){const y=new RegExp(`^:::${d}(?:\\s+\\{([^}]*)\\})?\\s*:::(?:\\n|$)`),S=g.match(y);if(!S)return;const b=S[1]||"",v=n(b);if(!o.find(k=>!(k in v)))return{type:t,raw:S[0],attributes:v}}},renderMarkdown:g=>{const f=u(g.attrs||{}),m=s(f),y=m?` {${m}}`:"";return`:::${d}${y} :::`}}}function xue(e){const{nodeName:t,name:r,getContent:n,parseAttributes:s=qA,serializeAttributes:i=UA,defaultAttributes:o={},content:l="block",allowedAttributes:d}=e,u=r||t,g=f=>{if(!d)return f;const m={};return d.forEach(y=>{y in f&&(m[y]=f[y])}),m};return{parseMarkdown:(f,m)=>{let y;if(n){const b=n(f);y=typeof b=="string"?[{type:"text",text:b}]:b}else l==="block"?y=m.parseChildren(f.tokens||[]):y=m.parseInline(f.tokens||[]);const S={...o,...f.attributes};return m.createNode(t,S,y)},markdownTokenizer:{name:t,level:"block",start(f){var m;const y=new RegExp(`^:::${u}`,"m"),S=(m=f.match(y))==null?void 0:m.index;return S!==void 0?S:-1},tokenize(f,m,y){var S;const b=new RegExp(`^:::${u}(?:\\s+\\{([^}]*)\\})?\\s*\\n`),v=f.match(b);if(!v)return;const[j,k=""]=v,P=s(k);let O=1;const T=j.length;let C="";const A=/^:::([\w-]*)(\s.*)?/gm,N=f.slice(T);for(A.lastIndex=0;;){const M=A.exec(N);if(M===null)break;const B=M.index,R=M[1];if(!((S=M[2])!=null&&S.endsWith(":::"))){if(R)O+=1;else if(O-=1,O===0){const _=N.slice(0,B);C=_.trim();const W=f.slice(0,T+B+M[0].length);let V=[];if(C)if(l==="block")for(V=y.blockTokens(_),V.forEach(F=>{F.text&&(!F.tokens||F.tokens.length===0)&&(F.tokens=y.inlineTokens(F.text))});V.length>0;){const F=V[V.length-1];if(F.type==="paragraph"&&(!F.text||F.text.trim()===""))V.pop();else break}else V=y.inlineTokens(C);return{type:t,raw:W,attributes:P,content:C,tokens:V}}}}}},renderMarkdown:(f,m)=>{const y=g(f.attrs||{}),S=i(y),b=S?` {${S}}`:"",v=m.renderChildren(f.content||[],` 959 960`);return`:::${u}${b} 961 962${v} 963 964:::`}}}function yue(e){if(!e.trim())return{};const t={},r=/(\w+)=(?:"([^"]*)"|'([^']*)')/g;let n=r.exec(e);for(;n!==null;){const[,s,i,o]=n;t[s]=i||o,n=r.exec(e)}return t}function bue(e){return Object.entries(e).filter(([,t])=>t!=null).map(([t,r])=>`${t}="${r}"`).join(" ")}function vue(e){const{nodeName:t,name:r,getContent:n,parseAttributes:s=yue,serializeAttributes:i=bue,defaultAttributes:o={},selfClosing:l=!1,allowedAttributes:d}=e,u=r||t,g=m=>{if(!d)return m;const y={};return d.forEach(S=>{const b=typeof S=="string"?S:S.name,v=typeof S=="string"?void 0:S.skipIfDefault;if(b in m){const j=m[b];if(v!==void 0&&j===v)return;y[b]=j}}),y},f=u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return{parseMarkdown:(m,y)=>{const S={...o,...m.attributes};if(l)return y.createNode(t,S);const b=n?n(m):m.content||"";return b?y.createNode(t,S,[y.createTextNode(b)]):y.createNode(t,S,[])},markdownTokenizer:{name:t,level:"inline",start(m){const y=l?new RegExp(`\\[${f}\\s*[^\\]]*\\]`):new RegExp(`\\[${f}\\s*[^\\]]*\\][\\s\\S]*?\\[\\/${f}\\]`),S=m.match(y),b=S?.index;return b!==void 0?b:-1},tokenize(m,y,S){const b=l?new RegExp(`^\\[${f}\\s*([^\\]]*)\\]`):new RegExp(`^\\[${f}\\s*([^\\]]*)\\]([\\s\\S]*?)\\[\\/${f}\\]`),v=m.match(b);if(!v)return;let j="",k="";if(l){const[,O]=v;k=O}else{const[,O,T]=v;k=O,j=T||""}const P=s(k.trim());return{type:t,raw:v[0],content:j.trim(),attributes:P}}},renderMarkdown:m=>{let y="";n?y=n(m):m.content&&m.content.length>0&&(y=m.content.filter(j=>j.type==="text").map(j=>j.text).join(""));const S=g(m.attrs||{}),b=i(S),v=b?` ${b}`:"";return l?`[${u}${v}]`:`[${u}${v}]${y}[/${u}]`}}
964}function sT(e,t,r){var n,s,i,o;const l=e.split(` 965`),d=[];let u="",g=0;const f=t.baseIndentSize||2;for(;g<l.length;){const m=l[g],y=m.match(t.itemPattern);if(!y){if(d.length>0)break;if(m.trim()===""){g+=1,u=`${u}${m} 966`;continue}else return}const S=t.extractItemData(y),{indentLevel:b,mainContent:v}=S;u=`${u}${m} 967`;const j=[v];for(g+=1;g<l.length;){const T=l[g];if(T.trim()===""){const A=l.slice(g+1).findIndex(B=>B.trim()!=="");if(A===-1)break;if((((s=(n=l[g+1+A].match(/^(\s*)/))==null?void 0:n[1])==null?void 0:s.length)||0)>b){j.push(T),u=`${u}${T} 968`,g+=1;continue}else break}if((((o=(i=T.match(/^(\s*)/))==null?void 0:i[1])==null?void 0:o.length)||0)>b)j.push(T),u=`${u}${T} 969`,g+=1;else break}let k;const P=j.slice(1);if(P.length>0){const T=P.map(C=>C.slice(b+f)).join(` 970`);T.trim()&&(t.customNestedParser?k=t.customNestedParser(T):k=r.blockTokens(T))}const O=t.createToken(S,k);d.push(O)}if(d.length!==0)return{items:d,raw:u}}function GA(e,t,r,n){if(!e||!Array.isArray(e.content))return"";const s=typeof r=="function"?r(n):r,[i,...o]=e.content,l=t.renderChildren([i]);let d=`${s}${l}`;return o&&o.length>0&&o.forEach((u,g)=>{var f,m;const y=(m=(f=t.renderChild)==null?void 0:f.call(t,u,g+1))!=null?m:t.renderChildren([u]);if(y!=null){const S=y.split(` 971`).map(b=>b?t.indent(b):t.indent("")).join(` 972`);d+=u.type==="paragraph"?` 973 974${S}`:` 975${S}`}}),d}function Sue(e,t,r={}){const{state:n}=t,{doc:s,tr:i}=n,o=e;s.descendants((l,d)=>{const u=i.mapping.map(d),g=i.mapping.map(d)+l.nodeSize;let f=null;if(l.marks.forEach(y=>{if(y!==o)return!1;f=y}),!f)return;let m=!1;if(Object.keys(r).forEach(y=>{r[y]!==f.attrs[y]&&(m=!0)}),m){const y=e.type.create({...e.attrs,...r});i.removeMark(u,g,e.type),i.addMark(u,g,y)}}),i.docChanged&&t.view.dispatch(i)}var Tn=class bH extends HA{constructor(){super(...arguments),this.type="node"}static create(t={}){const r=typeof t=="function"?t():t;return new bH(r)}configure(t){return super.configure(t)}extend(t){const r=typeof t=="function"?t():t;return super.extend(r)}};function ic(e){return new rue({find:e.find,handler:({state:t,range:r,match:n,pasteEvent:s})=>{const i=xt(e.getAttributes,void 0,n,s);if(i===!1||i===null)return null;const{tr:o}=t,l=n[n.length-1],d=n[0];let u=r.to;if(l){const g=d.search(/\S/),f=r.from+d.indexOf(l),m=f+l.length;if(FA(r.from,r.to,t.doc).filter(b=>b.mark.type.excluded.find(j=>j===e.type&&j!==b.mark.type)).filter(b=>b.to>f).length)return null;m<r.to&&o.delete(m,r.to),f>r.from&&o.delete(r.from+g,f),u=r.from+g+l.length,o.addMark(r.from+g,u,e.type.create(i||{})),n.index!==void 0&&n.input!==void 0&&n.index+n[0].length>=n.input.length||o.removeStoredMark(e.type)}}})}const{getOwnPropertyNames:jue,getOwnPropertySymbols:wue}=Object,{hasOwnProperty:kue}=Object.prototype;function Ov(e,t){return function(n,s,i){return e(n,s,i)&&t(n,s,i)}}function rx(e){return function(r,n,s){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,s);const{cache:i}=s,o=i.get(r),l=i.get(n);if(o&&l)return o===n&&l===r;i.set(r,n),i.set(n,r);const d=e(r,n,s);return i.delete(r),i.delete(n),d}}function Pue(e){return e?.[Symbol.toStringTag]}function XO(e){return jue(e).concat(wue(e))}const Tue=Object.hasOwn||((e,t)=>kue.call(e,t));function kc(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const Aue="__v",zue="__o",Cue="_owner",{getOwnPropertyDescriptor:KO,keys:QO}=Object;function Eue(e,t){return e.byteLength===t.byteLength&&T0(new Uint8Array(e),new Uint8Array(t))}function Oue(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function Mue(e,t){return e.byteLength===t.byteLength&&T0(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function Nue(e,t){return kc(e.getTime(),t.getTime())}function Rue(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Due(e,t){return e===t}function YO(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const s=new Array(n),i=e.entries();let o,l,d=0;for(;(o=i.next())&&!o.done;){const u=t.entries();let g=!1,f=0;for(;(l=u.next())&&!l.done;){if(s[f]){f++;continue}const m=o.value,y=l.value;if(r.equals(m[0],y[0],d,f,e,t,r)&&r.equals(m[1],y[1],m[0],y[0],e,t,r)){g=s[f]=!0;break}f++}if(!g)return!1;d++}return!0}const _ue=kc;function Iue(e,t,r){const n=QO(e);let s=n.length;if(QO(t).length!==s)return!1;for(;s-- >0;)if(!vH(e,t,r,n[s]))return!1;return!0}function Zp(e,t,r){const n=XO(e);let s=n.length;if(XO(t).length!==s)return!1;let i,o,l;for(;s-- >0;)if(i=n[s],!vH(e,t,r,i)||(o=KO(e,i),l=KO(t,i),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function Bue(e,t){return kc(e.valueOf(),t.valueOf())}function Lue(e,t){return e.source===t.source&&e.flags===t.flags}function ZO(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const s=new Array(n),i=e.values();let o,l;for(;(o=i.next())&&!o.done;){const d=t.values();let u=!1,g=0;for(;(l=d.next())&&!l.done;){if(!s[g]&&r.equals(o.value,l.value,o.value,l.value,e,t,r)){u=s[g]=!0;break}g++}if(!u)return!1}return!0}function T0(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function Wue(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function vH(e,t,r,n){return(n===Cue||n===zue||n===Aue)&&(e.$$typeof||t.$$typeof)?!0:Tue(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const $ue="[object ArrayBuffer]",Fue="[object Arguments]",Hue="[object Boolean]",que="[object DataView]",Uue="[object Date]",Gue="[object Error]",Vue="[object Map]",Xue="[object Number]",Kue="[object Object]",Que="[object RegExp]",Yue="[object Set]",Zue="[object String]",Jue={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array
975]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},epe="[object URL]",tpe=Object.prototype.toString;function rpe({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:s,areFunctionsEqual:i,areMapsEqual:o,areNumbersEqual:l,areObjectsEqual:d,arePrimitiveWrappersEqual:u,areRegExpsEqual:g,areSetsEqual:f,areTypedArraysEqual:m,areUrlsEqual:y,unknownTagComparators:S}){return function(v,j,k){if(v===j)return!0;if(v==null||j==null)return!1;const P=typeof v;if(P!==typeof j)return!1;if(P!=="object")return P==="number"?l(v,j,k):P==="function"?i(v,j,k):!1;const O=v.constructor;if(O!==j.constructor)return!1;if(O===Object)return d(v,j,k);if(Array.isArray(v))return t(v,j,k);if(O===Date)return n(v,j,k);if(O===RegExp)return g(v,j,k);if(O===Map)return o(v,j,k);if(O===Set)return f(v,j,k);const T=tpe.call(v);if(T===Uue)return n(v,j,k);if(T===Que)return g(v,j,k);if(T===Vue)return o(v,j,k);if(T===Yue)return f(v,j,k);if(T===Kue)return typeof v.then!="function"&&typeof j.then!="function"&&d(v,j,k);if(T===epe)return y(v,j,k);if(T===Gue)return s(v,j,k);if(T===Fue)return d(v,j,k);if(Jue[T])return m(v,j,k);if(T===$ue)return e(v,j,k);if(T===que)return r(v,j,k);if(T===Hue||T===Xue||T===Zue)return u(v,j,k);if(S){let C=S[T];if(!C){const A=Pue(v);A&&(C=S[A])}if(C)return C(v,j,k)}return!1}}function npe({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:Eue,areArraysEqual:r?Zp:Oue,areDataViewsEqual:Mue,areDatesEqual:Nue,areErrorsEqual:Rue,areFunctionsEqual:Due,areMapsEqual:r?Ov(YO,Zp):YO,areNumbersEqual:_ue,areObjectsEqual:r?Zp:Iue,arePrimitiveWrappersEqual:Bue,areRegExpsEqual:Lue,areSetsEqual:r?Ov(ZO,Zp):ZO,areTypedArraysEqual:r?Ov(T0,Zp):T0,areUrlsEqual:Wue,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const s=rx(n.areArraysEqual),i=rx(n.areMapsEqual),o=rx(n.areObjectsEqual),l=rx(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:s,areMapsEqual:i,areObjectsEqual:o,areSetsEqual:l})}return n}function ape(e){return function(t,r,n,s,i,o,l){return e(t,r,l)}}function spe({circular:e,comparator:t,createState:r,equals:n,strict:s}){if(r)return function(l,d){const{cache:u=e?new WeakMap:void 0,meta:g}=r();return t(l,d,{cache:u,equals:n,meta:g,strict:s})};if(e)return function(l,d){return t(l,d,{cache:new WeakMap,equals:n,meta:void 0,strict:s})};const i={cache:void 0,equals:n,meta:void 0,strict:s};return function(l,d){return t(l,d,i)}}const ipe=Ho();Ho({strict:!0});Ho({circular:!0});Ho({circular:!0,strict:!0});Ho({createInternalComparator:()=>kc});Ho({strict:!0,createInternalComparator:()=>kc});Ho({circular:!0,createInternalComparator:()=>kc});Ho({circular:!0,createInternalComparator:()=>kc,strict:!0});function Ho(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:s=!1}=e,i=npe(e),o=rpe(i),l=r?r(o):ape(o);return spe({circular:t,comparator:o,createState:n,equals:l,strict:s})}var Mv={exports:{}},Nv={};/** 976 * @license React 977 * use-sync-external-store-shim/with-selector.production.js 978 * 979 * Copyright (c) Meta Platforms, Inc. and affiliates. 980 * 981 * This source code is licensed under the MIT license found in the 982 * LICENSE file in the root directory of this source tree. 983 */var JO;function ope(){if(JO)return Nv;JO=1;var e=Xf(),t=EW();function r(u,g){return u===g&&(u!==0||1/u===1/g)||u!==u&&g!==g}var n=typeof Object.is=="function"?Object.is:r,s=t.useSyncExternalStore,i=e.useRef,o=e.useEffect,l=e.useMemo,d=e.useDebugValue;return Nv.useSyncExternalStoreWithSelector=function(u,g,f,m,y){var S=i(null);if(S.current===null){var b={hasValue:!1,value:null};S.current=b}else b=S.current;S=l(function(){function j(C){if(!k){if(k=!0,P=C,C=m(C),y!==void 0&&b.hasValue){var A=b.value;if(y(A,C))return O=A}return O=C}if(A=O,n(P,C))return A;var N=m(C);return y!==void 0&&y(A,N)?(P=C,A):(P=C,O=N)}var k=!1,P,O,T=f===void 0?null:f;return[function(){return j(g())},T===null?void 0:function(){return j(T())}]},[g,f,m,y]);var v=s(u,S[0],S[1]);return o(function(){b.hasValue=!0,b.value=v},[v]),d(v),v},Nv}var eM;function lpe(){return eM||(eM=1,Mv.exports=ope()),Mv.exports}var cpe=lpe(),dpe=(...e)=>t=>{e.forEach(r=>{typeof r=="function"?r(t):r&&(r.current=t)})},upe=({contentComponent:e})=>{const t=rA.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getServerSnapshot);return a.jsx(a.Fragment,{children:Object.values(t)})};function ppe(){const e=new Set;let t={};return{subscribe(r){return e.add(r),()=>{e.delete(r)}},getSnapshot(){return t},getServerSnapshot(){return t},setRenderer(r,n){t={...t,[r]:_L.createPortal(n.reactElement,n.element,r)},e.forEach(s=>s())},removeRenderer(r){const n={...t};delete n[r],t=n,e.forEach(s=>s())}}}var gpe=class extends G.Component{constructor(e){super(e),this.editorContentRef=G.createRef()}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){var e;const t=this.props.editor;if(t&&!t.isDestroyed&&((e=t.view.dom)!=null&&e.parentNode)){if(t.contentComponent)return;const r=this.editorContentRef.current;r.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:r}),t.contentComponent=ppe(),t.createNodeViews(),t.isEditorContentInitialized=!0,this.forceUpdate()}}componentWillUnmount(){var e;const t=this.props.editor;if(t){t.isEditorContentInitialized=!1,t.isDestroyed||t.view.setProps({nodeViews:{}}),t.contentComponent=null;try{if(!((e=t.view.dom)!=null&&e.parentNode))return;const r=document.createElement("div");r.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:r})}catch{}}}render(){const{editor:e,innerRef:t,...r}=this.props;return a.jsxs(a.Fragment,{children:[a.jsx("div",{ref:dpe(t,this.editorContentRef),...r}),e?.contentComponent&&a.jsx(upe,{contentComponent:e.contentComponent})]})}},fpe=E.forwardRef((e,t)=>
983{const r=G.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[e.editor]);return G.createElement(gpe,{key:r,innerRef:t,...e})}),SH=G.memo(fpe),hpe=typeof window<"u"?E.useLayoutEffect:E.useEffect,mpe=class{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber?this.lastSnapshot:(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber},this.lastSnapshot)}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){const t=()=>{this.transactionNumber+=1,this.subscribers.forEach(n=>n())},r=this.editor;return r.on("transaction",t),()=>{r.off("transaction",t)}}}};function xpe(e){var t;const[r]=E.useState(()=>new mpe(e.editor)),n=cpe.useSyncExternalStoreWithSelector(r.subscribe,r.getSnapshot,r.getServerSnapshot,e.selector,(t=e.equalityFn)!=null?t:ipe);return hpe(()=>r.watch(e.editor),[e.editor,r]),E.useDebugValue(n),n}var jH=typeof window>"u",ype=jH||!!(typeof window<"u"&&window.next),bpe=class wH{constructor(t){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=t,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(t){this.editor=t,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(r=>r())}getInitialEditor(){var t;let r=(t=this.options.current.immediatelyRender)!=null?t:!0;return r&&(jH||ype)&&(r=!1),r?this.createEditor():null}createEditor(){const t={...this.options.current,onBeforeCreate:(...n)=>{var s,i;return(i=(s=this.options.current).onBeforeCreate)==null?void 0:i.call(s,...n)},onBlur:(...n)=>{var s,i;return(i=(s=this.options.current).onBlur)==null?void 0:i.call(s,...n)},onCreate:(...n)=>{var s,i;return(i=(s=this.options.current).onCreate)==null?void 0:i.call(s,...n)},onDestroy:(...n)=>{var s,i;return(i=(s=this.options.current).onDestroy)==null?void 0:i.call(s,...n)},onFocus:(...n)=>{var s,i;return(i=(s=this.options.current).onFocus)==null?void 0:i.call(s,...n)},onSelectionUpdate:(...n)=>{var s,i;return(i=(s=this.options.current).onSelectionUpdate)==null?void 0:i.call(s,...n)},onTransaction:(...n)=>{var s,i;return(i=(s=this.options.current).onTransaction)==null?void 0:i.call(s,...n)},onUpdate:(...n)=>{var s,i;return(i=(s=this.options.current).onUpdate)==null?void 0:i.call(s,...n)},onContentError:(...n)=>{var s,i;return(i=(s=this.options.current).onContentError)==null?void 0:i.call(s,...n)},onDrop:(...n)=>{var s,i;return(i=(s=this.options.current).onDrop)==null?void 0:i.call(s,...n)},onPaste:(...n)=>{var s,i;return(i=(s=this.options.current).onPaste)==null?void 0:i.call(s,...n)},onDelete:(...n)=>{var s,i;return(i=(s=this.options.current).onDelete)==null?void 0:i.call(s,...n)}};return new uue(t)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(t){return this.subscriptions.add(t),()=>{this.subscriptions.delete(t)}}static compareOptions(t,r){return Object.keys(t).every(n=>["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(n)?!0:n==="extensions"&&t.extensions&&r.extensions?t.extensions.length!==r.extensions.length?!1:t.extensions.every((s,i)=>{var o;return s===((o=r.extensions)==null?void 0:o[i])}):t[n]===r[n])}onRender(t){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&t.length===0?wH.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(t),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(t){if(this.editor&&!this.editor.isDestroyed){
983if(this.previousDeps===null){this.previousDeps=t;return}if(this.previousDeps.length===t.length&&this.previousDeps.every((n,s)=>n===t[s]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=t}scheduleDestroy(){const t=this.instanceId,r=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===t){r&&r.setOptions(this.options.current);return}r&&!r.isDestroyed&&(r.destroy(),this.instanceId===t&&this.setEditor(null))},1)}};function vpe(e={},t=[]){const r=E.useRef(e);r.current=e;const[n]=E.useState(()=>new bpe(r)),s=rA.useSyncExternalStore(n.subscribe,n.getEditor,n.getServerSnapshot);return E.useDebugValue(s),E.useEffect(n.onRender(t)),xpe({editor:s,selector:({transactionNumber:i})=>e.shouldRerenderOnTransaction===!1||e.shouldRerenderOnTransaction===void 0?null:e.immediatelyRender&&i===0?0:i+1}),s}var kH=E.createContext({editor:null});kH.Consumer;var Spe=E.createContext({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),jpe=()=>E.useContext(Spe);G.forwardRef((e,t)=>{const{onDragStart:r}=jpe(),n=e.as||"div";return a.jsx(n,{...e,ref:t,"data-node-view-wrapper":"",onDragStart:r,style:{whiteSpace:"normal",...e.style}})});G.createContext({markViewContentRef:()=>{}});var VA=E.createContext({get editor(){throw new Error("useTiptap must be used within a <Tiptap> provider")}});VA.displayName="TiptapContext";var wpe=()=>E.useContext(VA);function PH({editor:e,instance:t,children:r}){const n=e??t;if(!n)throw new Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");const s=E.useMemo(()=>({editor:n}),[n]),i=E.useMemo(()=>({editor:n}),[n]);return a.jsx(kH.Provider,{value:i,children:a.jsx(VA.Provider,{value:s,children:r})})}PH.displayName="Tiptap";function TH({...e}){const{editor:t}=wpe();return a.jsx(SH,{editor:t,...e})}TH.displayName="Tiptap.Content";Object.assign(PH,{Content:TH});var A0=(e,t)=>{if(e==="slot")return 0;if(e instanceof Function)return e(t);const{children:r,...n}=t??{};if(e==="svg")throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");return[e,n,r]},kpe=/^\s*>\s$/,Ppe=Tn.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:e}){return A0("blockquote",{...Yt(this.options.HTMLAttributes,e),children:A0("slot",{})})},parseMarkdown:(e,t)=>{var r;const n=(r=t.parseBlockChildren)!=null?r:t.parseChildren;return t.createNode("blockquote",void 0,n(e.tokens||[]))},renderMarkdown:(e,t)=>{if(!e.content)return"";const r=">",n=[];return e.content.forEach((s,i)=>{var o,l;const g=((l=(o=t.renderChild)==null?void 0:o.call(t,s,i))!=null?l:t.renderChildren([s])).split(` 984`).map(f=>f.trim()===""?r:`${r} ${f}`);n.push(g.join(` 985`))}),n.join(` 986${r} 987`)},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[pu({find:kpe,type:this.type})]}}),Tpe=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,Ape=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,zpe=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,Cpe=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,Epe=wc.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:e=>e.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:e=>e.type.name===this.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return A0("strong",{...Yt(this.options.HTMLAttributes,e),children:A0("slot",{})})},markdownTokenName:"strong",parseMarkdown:(e,t)=>t.applyMark("bold",t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:"<strong>",close:"</strong>"}},renderMarkdown:(e,t)=>`**${t.renderChildren(e)}**`,addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}}
vendor: 7,853 bytes, lines 987-1008
987,addInputRules(){return[uu({find:Tpe,type:this.type}),uu({find:zpe,type:this.type})]},addPasteRules(){return[ic({find:Ape,type:this.type}),ic({find:Cpe,type:this.type})]}}),Ope=/(^|[^`])`([^`]+)`(?!`)$/,Mpe=/(^|[^`])`([^`]+)`(?!`)/g,Npe=wc.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:e}){return["code",Yt(this.options.HTMLAttributes,e),0]},markdownTokenName:"codespan",parseMarkdown:(e,t)=>t.applyMark("code",[{type:"text",text:e.text||""}]),renderMarkdown:(e,t)=>e.content?`\`${t.renderChildren(e.content)}\``:"",addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[uu({find:Ope,type:this.type})]},addPasteRules(){return[ic({find:Mpe,type:this.type})]}}),Rv=4,Rpe=/^```([a-z]+)?[\s\n]$/,Dpe=/^~~~([a-z]+)?[\s\n]$/,_pe=Tn.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:Rv,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{var t;const{languageClassPrefix:r}=this.options;if(!r)return null;const i=[...((t=e.firstElementChild)==null?void 0:t.classList)||[]].filter(o=>o.startsWith(r)).map(o=>o.replace(r,""))[0];return i||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:e,HTMLAttributes:t}){return["pre",Yt(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},markdownTokenName:"code",parseMarkdown:(e,t)=>{var r,n;return((r=e.raw)==null?void 0:r.startsWith("```"))===!1&&((n=e.raw)==null?void 0:n.startsWith("~~~"))===!1&&e.codeBlockStyle!=="indented"?[]:t.createNode("codeBlock",{language:e.lang||null},e.text?[t.createTextNode(e.text)]:[])},renderMarkdown:(e,t)=>{var r;let n="";const s=((r=e.attrs)==null?void 0:r.language)||"";return e.content?n=[`\`\`\`${s}`,t.renderChildren(e.content),"```"].join(` 988`):n=`\`\`\`${s} 989 990\`\`\``,n},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:e,$anchor:t}=this.editor.state.selection,r=t.pos===1;return!e||t.parent.type.name!==this.name?!1:r||!t.parent.textContent.length?this.editor.commands.clearNodes():!1},Tab:({editor:e})=>{var t;if(!this.options.enableTabIndentation)return!1;const r=(t=this.options.tabSize)!=null?t:Rv,{state:n}=e,{selection:s}=n,{$from:i,empty:o}=s;if(i.parent.type!==this.type)return!1;const l=" ".repeat(r);return o?e.commands.insertContent(l):e.commands.command(({tr:d})=>{const{from:u,to:g}=s,y=n.doc.textBetween(u,g,` 991`,` 992`).split(` 993`).map(S=>l+S).join(` 994`);return d.replaceWith(u,g,n.schema.text(y)),!0})},"Shift-Tab":({editor:e})=>{var t;if(!this.options.enableTabIndentation)return!1;const r=(t=this.options.tabSize)!=null?t:Rv,{state:n}=e,{selection:s}=n,{$from:i,empty:o}=s;return i.parent.type!==this.type?!1:o?e.commands.command(({tr:l})=>{var d;const{pos:u}=i,g=i.start(),f=i.end(),y=n.doc.textBetween(g,f,` 995`,` 996`).split(` 997`);let S=0,b=0;const v=u-g;for(let C=0;C<y.length;C+=1){if(b+y[C].length>=v){S=C;break}b+=y[C].length+1}const k=((d=y[S].match(/^ */))==null?void 0:d[0])||"",P=Math.min(k.length,r);if(P===0)return!0;let O=g;for(let C=0;C<S;C+=1)O+=y[C].length+1;return l.delete(O,O+P),u-O<=P&&l.setSelection($e.create(l.doc,O)),!0}):e.commands.command(({tr:l})=>{const{from:d,to:u}=s,m=n.doc.textBetween(d,u,` 998`,` 999`).split(` 1000`).map(y=>{var S;const b=((S=y.match(/^ */))==null?void 0:S[0])||"",v=Math.min(b.length,r);return y.slice(v)}).join(` 1001`);return l.replaceWith(d,u,n.schema.text(m)),!0})},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:t}=e,{selection:r}=t,{$from:n,empty:s}=r;if(!s||n.parent.type!==this.type)return!1;const i=n.parentOffset===n.parent.nodeSize-2,o=n.parent.textContent.endsWith(` 1002 1003`);return!i||!o?!1:e.chain().command(({tr:l})=>(l.delete(n.pos-2,n.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;const{state:t}=e,{selection:r,doc:n}=t,{$from:s,empty:i}=r;if(!i||s.parent.type!==this.type||!(s.parentOffset===s.parent.nodeSize-2))return!1;const l=s.after();return l===void 0?!1:n.nodeAt(l)?e.commands.command(({tr:u})=>(u.setSelection(Ve.near(n.resolve(l))),!0)):e.commands.exitCode()}}},addInputRules(){return[aT({find:Rpe,type:this.type,getAttributes:e=>({language:e[1]})}),aT({find:Dpe,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new Lt({key:new yr("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;const r=t.clipboardData.getData("text/plain"),n=t.clipboardData.getData("vscode-editor-data"),s=n?JSON.parse(n):void 0,i=s?.mode;if(!r||!i)return!1;const{tr:o,schema:l}=e.state,d=l.text(r.replace(/\r\n?/g,` 1004`));return o.replaceSelectionWith(this.type.create({language:i},d)),o.selection.$from.parent.type!==this.type&&o.setSelection($e.near(o.doc.resolve(Math.max(0,o.selection.from-2)))),o.setMeta("paste",!0),e.dispatch(o),!0}}})]}}),Ipe=Tn.create({name:"doc",topNode:!0,content:"block+",renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,` 1005 1006`):""}),Bpe=Tn.create({name:"hardBreak",markdownTokenName:"br",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:e}){return["br",Yt(this.options.HTMLAttributes,e)]},renderText(){return` 1007`},renderMarkdown:()=>` 1008`,parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:r,editor:n})=>e.first([()=>e.exitCode(),()=>e.command(()=>{const{selection:s,storedMarks:i}=r;if(s.$from.parent.type.spec.isolating)return!1;const{keepMarks:o}=this.options,{splittableMarks:l}=n.extensionManager,d=i||s.$to.parentOffset&&s.$from.marks();return t().insertContent({type:this.name}).command(({tr:u,dispatch:g})=>{if(g&&d&&o){const f=d.filter(m=>l.includes(m.type.name));u.ensureMarks(f)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),Lpe=Tn.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,Yt(this.options.HTMLAttributes,t),0]},parseMarkdown:(e,t)=>t.createNode("heading",{level:e.depth||1},t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>{var r;const n=(r=e.attrs)!=null&&r.level?parseInt(e.attrs.level,10):1,s="#".repeat(n);return e.content?`${s} ${t.renderChildren(e.content)}`:""},addCommands(){return{setHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.setNode(this.name,e):!1,toggleHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.toggleNode(this.name,"paragraph",e):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>aT({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${e}}
1008)\\s$`),type:this.type,getAttributes:{level:e}}))}}),Wpe=Tn.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{},nextNodeType:"paragraph"}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:e}){return["hr",Yt(this.options.HTMLAttributes,e)]},markdownTokenName:"hr",parseMarkdown:(e,t)=>t.createNode("horizontalRule"),renderMarkdown:()=>"---",addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{if(!fue(t,t.schema.nodes[this.name]))return!1;const{selection:r}=t,{$to:n}=r,s=e();return tH(r)?s.insertContentAt(n.pos,{type:this.name}):s.insertContent({type:this.name}),s.command(({state:i,tr:o,dispatch:l})=>{if(l){const{$to:d}=o.selection,u=d.end();if(d.nodeAfter)d.nodeAfter.isTextblock?o.setSelection($e.create(o.doc,d.pos+1)):d.nodeAfter.isBlock?o.setSelection(De.create(o.doc,d.pos)):o.setSelection($e.create(o.doc,d.pos));else{const g=i.schema.nodes[this.options.nextNodeType]||d.parent.type.contentMatch.defaultType,f=g?.create();f&&(o.insert(u,f),o.setSelection($e.create(o.doc,u+1)))}o.scrollIntoView()}return!0}).run()}}},addInputRules(){return[yH({find:/^(?:---|â-|___\s|\*\*\*\s)$/,type:this.t
vendor: 4,515 bytes, line 1008
1008ype})]}}),$pe=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,Fpe=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,Hpe=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,qpe=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,Upe=wc.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:e=>e.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:e=>e.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:e}){return["em",Yt(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},markdownTokenName:"em",parseMarkdown:(e,t)=>t.applyMark("italic",t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:"<em>",close:"</em>"}},renderMarkdown:(e,t)=>`*${t.renderChildren(e)}*`,addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[uu({find:$pe,type:this.type}),uu({find:Hpe,type:this.type})]},addPasteRules(){return[ic({find:Fpe,type:this.type}),ic({find:qpe,type:this.type})]}});const Gpe="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2
1008ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",Vpe="ελ1Ï
2бг1ел3деÑи4еÑ2каÑолик6ом3мÐ
1008ºÐ´2он1Ñква6онлайн5Ñг3ÑÑÑ2Ñ2ÑайÑ3Ñб3ÑкÑ3Òаз3Õ°Õ¡Õµ3×שר××5×§××3Ø§Ø¨ÙØ¸Ø¨Ù5را٠ÙÙ5ÙØ§Ø±Ø¯Ù4Ø¨ØØ±ÙÙ5جزائر5Ø³Ø¹ÙØ¯ÙØ©6عÙÙØ§Ù5٠غرب5٠ارات5ÛØ±Ø§Ù5بارت2زار4ÙØªÙ3ھارت5تÙÙØ³4Ø³ÙØ¯Ø§Ù3Ø±ÙØ©5Ø´Ø¨ÙØ©4عراÙ2ب2٠اÙ4ÙÙØ³Ø·ÙÙ6ÙØ·Ø±3ÙØ§Ø«ÙÙÙÙ6ÙÙ 3٠صر2ÙÙØ³Ùا5ÙØ±ÙتاÙÙØ§7ÙØ¹4Ù٠راÙ5پاکستاÙ7ÚØ§Ø±Øª4à¤à¥à¤®3नà¥à¤3à¤à¤¾à¤°à¤¤0मà¥3à¥à¤¤5सà¤à¤à¤ न5বাà¦à¦²à¦¾5à¦à¦¾à¦°à¦¤2ৰত4à¨à¨¾à¨°à¨¤4àªàª¾àª°àª¤4à¬à¬¾à¬°à¬¤4à®à®¨à¯à®¤à®¿à®¯à®¾6லà®à¯à®à¯6à®à®¿à®à¯à®à®ªà¯à®ªà¯à®°à¯11à°à°¾à°°à°¤à±5à²à²¾à²°à²¤4à´à´¾à´°à´¤à´5à¶½à¶à¶à·4à¸à¸à¸¡3à¹à¸à¸¢3ລາວ3áá2ã¿ããª3ã¢ãã¾ã³4ã¯ã©ã¦ã4ã°ã¼ã°ã«4ã³ã 2ã¹ãã¢3ã»ã¼ã«3ãã¡ãã·ã§ã³6ãã¤ã³ã4ä¸ç2ä¸ä¿¡1å½1å1æç½3äºé©¬é3ä¼ä¸2ä½å±±2ä¿¡æ¯2å¥åº·2å «å¦2å ¬å¸1ç2å°æ¹¾1ç£2åå1åº1æ 2åé0大é åº5å¨çº¿2大æ¿2天主æ3娱ä¹2å®¶é»2广ä¸2å¾®å2æ å2æç±ä½ 3ææº2æè2æ¿å¡1åº2æ°å å¡2é»2æ¶å°2æ¸ç±2æºæ2淡马é¡3游æ2æ¾³é2ç¹ç2ç§»å¨2ç»ç»æºæ4ç½å1åº1ç«1ç»2èé2è°·æ2è´ç©2é販2éå¢2é»è¨çç§4é£å©æµ¦3é£å2é¤å 2馿 ¼éæ3港2ë·ë·1ì»´2ì¼ì±2íêµ2",iT="numeric",oT="ascii",lT="alpha",Eg="asciinumeric",xg="alphanumeric",cT="domain",AH="emoji",Xpe="scheme",Kpe="slashscheme",Dv="whitespace";function Qpe(e,t){return e in t||(t[e]=[]),t[e]}function Bl(e,t,r){t[iT]&&(t[Eg]=!0,t[xg]=!0),t[oT]&&(t[Eg]=!0,t[lT]=!0),t[Eg]&&(t[xg]=!0),t[lT]&&(t[xg]=!0),t[xg]&&(t[cT]=!0),t[AH]&&(t[cT]=!0);for(const n in t){const s=Qpe(n,r);s.indexOf(e)<0&&s.push(e)}}function Ype(e,t){const r={};for(const n in t)t[n].indexOf(e)>=0&&(r[n]=!0);return r}function jn(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}jn.groups={};jn.prototype={accepts(){return!!this.t},go(e){const t=this,r=t.j[e];if(r)return r;for(let n=0;n<t.jr.length;n++){const s=t.jr[n][0],i=t.jr[n][1];if(i&&s.test(e))return i}return t.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,r,n){for(let s=0;s<e.length;s++)this.tt(e[s],t,r,n)},tr(e,t,r,n){n=n||jn.groups;let s;return t&&t.j?s=t:(s=new jn(t),r&&n&&Bl(t,r,n)),this.jr.push([e,s]),s},ts(e,t,r,n){let s=this;const i=e.length;if(!i)return s;for(let o=0;o<i-1;o++)s=s.tt(e[o]);return s.tt(e[i-1],t,r,n)},tt(e,t,r,n){n=n||jn.groups;const s=this;if(t&&t.j)return s.j[e]=t,t;const i=t;let o,l=s.go(e);if(l?(o=new jn,Object.assign(o.j,l.j),o.jr.push.apply(o.jr,l.jr),o.jd=l.jd,o.t=l.t):o=new jn,i){if(n)if(o.t&&typeof o.t=="string"){const d=Object.assign(Ype(o.t,n),r);Bl(i,d,n)}else r&&Bl(i,r,n);o.t=i}return s.j[e]=o,o}};const Xe=(e,t,r,n,s)=>e.ta(t,r,n,s),Ht=(e,t,r,n,s)=>e.tr(t,r,n,s),tM=(e,t,r,n,s)=>e.ts(t,r,n,s),me=(e,t,r,n,s)=>e.tt(t,r,n,s),ei="WORD",dT="UWORD",zH="ASCIINUMERICAL",CH="ALPHANUMERICAL",df="LOCALHOST",uT="TLD",pT="UTLD",Xx="SCHEME",Nd="SLASH_SCHEME",XA="NUM",gT="WS",KA="NL",Og="OPENBRACE",Mg="CLOSEBRACE",z0="OPENBRACKET",C0="CLOSEBRACKET",E0="OPENPAREN",O0="CLOSEPAREN",M0="OPENANGLEBRACKET",N0="CLOSEANGLEBRACKET",R0="FULLWIDTHLEFTPAREN",D0="FULLWIDTHRIGHTPAREN",_0="LEFTCORNERBRACKET",I0="RIGHTCORNERBRACKET",B0="LEFTWHITECORNERBRACKET",L0="RIGHTWHITECORNERBRACKET",W0="FULLWIDTHLESSTHAN",$0="FULLWIDTHGREATERTHAN",F0="AMPERSAND",H0="APOSTROPHE",q0="ASTERISK",go="AT",U0="BACKSLASH",G0="BACKTICK",V0="CARET",Ll="COLON",QA="COMMA",X0="DOLLAR",is="DOT",K0="EQUALS",YA="EXCLAMATION",ca="HYPHEN",Ng="PERCENT",Q0="PIPE",Y0="PLUS",Z0="POUND",Rg="QUERY",ZA="QUOTE",EH="FULLWIDTHMIDDLEDOT",JA="SEMI",ls="SLASH",Dg="TILDE",J0="UNDERSCORE",OH="EMOJI",e5="SYM";var MH=Object.freeze({__proto__:null,ALPHANUMERICAL:CH,AMPERSAND:F0,APOSTROPHE:H0,ASCIINUMERICAL:zH,ASTERISK:q0,AT:go,BACKSLASH:U0,BACKTICK:G0,CARET:V0,CLOSEANGLEBRACKET:N0,CLOSEBRACE:Mg,CLOSEBRACKET:C0,CLOSEPAREN:O0,COLON:Ll,COMMA:QA,DOLLAR:X0,DOT:is,EMOJI:OH,EQUALS:K0,EXCLAMATION:YA,FULLWIDTHGREATERTHAN:$0,FULLWIDTHLEFTPAREN:R0,FULLWIDTHLESSTHAN:W0,FULLWIDTHMIDDLEDOT:EH,FULLWIDTHRIGHTPAREN:D0,HYPHEN:ca,LEFTCORNERBRACKET:_0,LEFTWHITECORNERBRACKET:B0,LOCALHOST:df,NL:KA,NUM:XA,OPENANGLEBRACKET:M0,OPENBRACE:Og,OPENBRACKET:z0,OPENPAREN:E0,PERCENT:Ng,PIPE:Q0,PLUS:Y0,POUND:Z0,QUERY:Rg,QUOTE:ZA,RIGHTCORNERBRACKET:I0,RIGHTWHITECORNERBRACKET:L0,SCHEME:Xx,SEMI:JA,SLASH:ls,SLASH_SCHEME:Nd,SYM:e5,TILDE:Dg,TLD:uT,UNDERSCORE:J0,UTLD:pT,UWORD:dT,WORD:ei,WS:gT});const Qs=/[a-z]/,Jp=new RegExp("\\p{L}","u"),_v=new RegExp("\\p{Emoji}","u"),Ys=/\d/,Iv=/\s/,rM="\r",Bv=` 1009`,Zpe="ï¸",Jpe="â",Lv="";let nx=null,ax=null;function ege(e=[]){const t={};jn.groups=t;const r=new jn;nx==null&&(nx=nM(Gpe)),ax==null&&(ax=nM(Vpe)),me(r,"'",H0),me(r,"{",Og),me(r,"}",Mg),me(r,"[",z0),me(r,"]",C0),me(r,"(",E0),me(r,")",O0),me(r,"<",M0),me(r,">",N0),me(r,"ï¼",R0),me(r,"ï¼",D0),me(r,"ã",_0),me(r,"ã",I0),me(r,"ã",B0),me(r,"ã",L0),me(r,"ï¼",W0),me(r,"ï¼",$0),me(r,"&",F0),me(r,"*",q0),me(r,"@",go),me(r,"`",G0),me(r,"^",V0),me(r,":",Ll),me(r,",",QA),me(r,"$",X0),me(r,".",is),me(r,"=",K0),me(r,"!",YA),me(r,"-",ca),me(r,"%",Ng),me(r,"|",Q0),me(r,"+",Y0),me(r,"#",Z0),me(r,"?",Rg),me(r,'"',ZA),me(r,"/",ls),me(r,";",JA),me(r,"~",Dg),me(r,"_",J0),me(r,"\\",U0),me(r,"ã»",EH);const n=Ht(r,Ys,XA,{[iT]:!0});Ht(n,Ys,n);const s=Ht(n,Qs,zH,{[Eg]:!0}),i=Ht(n,Jp,CH,{[xg]:!0}),o=Ht(r,Qs,ei,{[oT]:!0});Ht(o,Ys,s),Ht(o,Qs,o),Ht(s,Ys,s),Ht(s,Qs,s);const l=Ht(r,Jp,dT,{[lT]:!0});Ht(l,Qs),Ht(l,Ys,i),Ht(l,Jp,l),Ht(i,Ys,i),Ht(i,Qs),Ht(i,Jp,i);const d=me(r,Bv,KA,{[Dv]:!0}),u=me(r,rM,gT,{[Dv]:!0}),g=Ht(r,Iv,gT,{[Dv]:!0});me(r,Lv,g),me(u,Bv,d),me(u,Lv,g),Ht(u,Iv,g),me(g,rM),me(g,Bv),Ht(g,Iv,g),me(g,Lv,g);const f=Ht(r,_v,OH,{[AH]:!0});me(f,"#"),Ht(f,_v,f),me(f,Zpe,f);const m=me(f,Jpe);me(m,"#"),Ht(m,_v,f);const y=[[Qs,o],[Ys,s]],S=[[Qs,null],[Jp,l],[Ys,i]];for(let b=0;b<nx.length;b++)so(r,nx[b],uT,ei,y);for(let b=0;b<ax.length;b++)so(r,ax[b],pT,dT,S);Bl(uT,{tld:!0,ascii:!0},t),Bl(pT,{utld:!0,alpha:!0},t),so(r,"file",Xx,ei,y),so(r,"mailto",Xx,ei,y),so(r,"http",Nd,ei,y),so(r,"https",Nd,ei,y),so(r,"ftp",Nd,ei,y),so(r,"ftps",Nd,ei,y),Bl(Xx,{scheme:!0,ascii:!0},t),Bl(Nd,{slashscheme:!0,ascii:!0},t),e=e.sort((b,v)=>b[0]>v[0]?1:-1);for(let b=0;b<e.length;b++){const v=e[b][0],k=e[b][1]?{[Xpe]:!0}:{[Kpe]:!0};v.indexOf("-")>=0?k[cT]=!0:Qs.test(v)?Ys.test(v)?k[Eg]=!0:k[oT]=!0:k[iT]=!0,tM(r,v,v,k)}return tM(r,"localhost",df,{ascii:!0}),r.jd=new jn(e5),{start:r,tokens:Object.assign({groups:t},MH)}}function NH(e,t){const r=tge(t.replace(/[A-Z]/g,l=>l.toLowerCase())),n=r.length,s=[];let i=0,o=0;for(;o<n;){let l=e,d=null,u=0,g=null,f=-1,m=-1;for(;o<n&&(d=l.go(r[o]));)l=d,l.accepts()?(f=0,m=0,g=l):f>=0&&(f+=r[o].length,m++),u+=r[o].length,i+=r[o].length,o++;
vendor: 8,484 bytes, lines 1009-1012
1009i-=f,o-=m,u-=f,s.push({t:g.t,v:t.slice(i-u,i),s:i-u,e:i})}return s}function tge(e){const t=[],r=e.length;let n=0;for(;n<r;){let s=e.charCodeAt(n),i,o=s<55296||s>56319||n+1===r||(i=e.charCodeAt(n+1))<56320||i>57343?e[n]:e.slice(n,n+2);t.push(o),n+=o.length}return t}function so(e,t,r,n,s){let i;const o=t.length;for(let l=0;l<o-1;l++){const d=t[l];e.j[d]?i=e.j[d]:(i=new jn(n),i.jr=s.slice(),e.j[d]=i),e=i}return i=new jn(r),i.jr=s.slice(),e.j[t[o-1]]=i,i}function nM(e){const t=[],r=[];let n=0,s="0123456789";for(;n<e.length;){let i=0;for(;s.indexOf(e[n+i])>=0;)i++;if(i>0){t.push(r.join(""));for(let o=parseInt(e.substring(n,n+i),10);o>0;o--)r.pop();n+=i}else r.push(e[n]),n++}return t}const uf={defaultProtocol:"http",events:null,format:aM,formatHref:aM,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function e7(e,t=null){let r=Object.assign({},uf);e&&(r=Object.assign(r,e instanceof e7?e.o:e));const n=r.ignoreTags,s=[];for(let i=0;i<n.length;i++)s.push(n[i].toUpperCase());this.o=r,t&&(this.defaultRender=t),this.ignoreTags=s}e7.prototype={o:uf,ignoreTags:[],defaultRender(e){return e},check(e){return this.get("validate",e.toString(),e)},get(e,t,r){const n=t!=null;let s=this.o[e];return s&&(typeof s=="object"?(s=r.t in s?s[r.t]:uf[e],typeof s=="function"&&n&&(s=s(t,r))):typeof s=="function"&&n&&(s=s(t,r.t,r)),s)},getObj(e,t,r){let n=this.o[e];return typeof n=="function"&&t!=null&&(n=n(t,r.t,r)),n},render(e){const t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}};function aM(e){return e}function RH(e,t){this.t="token",this.v=e,this.tk=t}RH.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){const t=this.toString(),r=e.get("truncate",t,this),n=e.get("format",t,this);return r&&n.length>r?n.substring(0,r)+"â¦":n},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=uf.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,r=this.toHref(e.get("defaultProtocol")),n=e.get("formatHref",r,this),s=e.get("tagName",r,t),i=this.toFormattedString(e),o={},l=e.get("className",r,t),d=e.get("target",r,t),u=e.get("rel",r,t),g=e.getObj("attributes",r,t),f=e.getObj("events",r,t);return o.href=n,l&&(o.class=l),d&&(o.target=d),u&&(o.rel=u),g&&Object.assign(o,g),{tagName:s,attributes:o,content:i,eventListeners:f}}};function By(e,t){class r extends RH{constructor(s,i){super(s,i),this.t=e}}for(const n in t)r.prototype[n]=t[n];return r.t=e,r}const rge=By("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),sM=By("text"),nge=By("nl"),sx=By("url",{isLink:!0,toHref(e=uf.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==df&&e[1].t===Ll}}),sa=e=>new jn(e);function age({groups:e}){const t=e.domain.concat([F0,q0,go,U0,G0,V0,X0,K0,ca,XA,Ng,Q0,Y0,Z0,ls,e5,Dg,J0]),r=[H0,Ll,QA,is,YA,Ng,Rg,ZA,JA,M0,N0,Og,Mg,C0,z0,E0,O0,R0,D0,_0,I0,B0,L0,W0,$0],n=[F0,H0,q0,U0,G0,V0,X0,K0,ca,Og,Mg,Ng,Q0,Y0,Z0,Rg,ls,e5,Dg,J0],s=sa(),i=me(s,Dg);Xe(i,n,i),Xe(i,e.domain,i);const o=sa(),l=sa(),d=sa();Xe(s,e.domain,o),Xe(s,e.scheme,l),Xe(s,e.slashscheme,d),Xe(o,n,i),Xe(o,e.domain,o);const u=me(o,go);me(i,go,u),me(l,go,u),me(d,go,u);const g=me(i,is);Xe(g,n,i),Xe(g,e.domain,i);const f=sa();Xe(u,e.domain,f),Xe(f,e.domain,f);const m=me(f,is);Xe(m,e.domain,f);const y=sa(rge);Xe(m,e.tld,y),Xe(m,e.utld,y),me(u,df,y);const S=me(f,ca);me(S,ca,S),Xe(S,e.domain,f),Xe(y,e.domain,f),me(y,is,m),me(y,ca,S);const b=me(o,ca),v=me(o,is);me(b,ca,b),Xe(b,e.domain,o),Xe(v,n,i),Xe(v,e.domain,o);const j=sa(sx);Xe(v,e.tld,j),Xe(v,e.utld,j),Xe(j,e.domain,o),Xe(j,n,i),me(j,is,v),me(j,ca,b),me(j,go,u);const k=me(j,Ll),P=sa(sx);Xe(k,e.numeric,P);const O=sa(sx),T=sa();Xe(O,t,O),Xe(O,r,T),Xe(T,t,O),Xe(T,r,T),me(j,ls,O),me(P,ls,O);const C=me(l,Ll),A=me(d,Ll),N=me(A,ls),M=me(N,ls);Xe(l,e.domain,o),me(l,is,v),me(l,ca,b),Xe(d,e.domain,o),me(d,is,v),me(d,ca,b),Xe(C,e.domain,O),me(C,ls,O),me(C,Rg,O),Xe(M,e.domain,O),Xe(M,t,O),me(M,ls,O);const B=[[Og,Mg],[z0,C0],[E0,O0],[M0,N0],[R0,D0],[_0,I0],[B0,L0],[W0,$0]];for(let R=0;R<B.length;R++){const[_,W]=B[R],V=me(O,_);me(T,_,V);const F=sa(sx);Xe(V,t,F);const I=sa();Xe(V,r,I),me(V,W,O),Xe(F,t,F),Xe(F,r,I),Xe(I,t,F),Xe(I,r,I),me(F,W,O),me(I,W,O)}return me(s,df,j),me(s,KA,nge),{start:s,tokens:MH}}function sge(e,t,r){let n=r.length,s=0,i=[],o=[];for(;s<n;){let l=e,d=null,u=null,g=0,f=null,m=-1;for(;s<n&&!(d=l.go(r[s].t));)o.push(r[s++]);for(;s<n&&(u=d||l.go(r[s].t));)d=null,l=u,l.accepts()?(m=0,f=l):m>=0&&m++,s++,g++;if(m<0)s-=g,s<n&&(o.push(r[s]),s++);else{o.length>0&&(i.push(Wv(sM,t,o)),o=[]),s-=m,g-=m;const y=f.t,S=r.slice(s-g,s);i.push(Wv(y,t,S))}}return o.length>0&&i.push(Wv(sM,t,o)),i}function Wv(e,t,r){const n=r[0].s,s=r[r.length-1].e,i=t.slice(n,s);return new e(i,r)}const ige=typeof console<"u"&&console&&console.warn||(()=>{}),oge="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",Ot={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function lge(){return jn.groups={},Ot.scanner=null,Ot.parser=null,Ot.tokenQueue=[],Ot.pluginQueue=[],Ot.customSchemes=[],Ot.initialized=!1,Ot}function iM(e,t=!1){if(Ot.initialized&&ige(`linkifyjs: already initialized - will not register custom scheme "${e}" ${oge}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw new Error(`linkifyjs: incorrect scheme format. 10101. Must only contain digits, lowercase ASCII letters or "-" 10112. Cannot start or end with "-" 10123. "-" cannot repeat`);Ot.customSchemes.push([e,t])}function cge(){Ot.scanner=ege(Ot.customSchemes);for(let e=0;e<Ot.tokenQueue.length;e++)Ot.tokenQueue[e][1]({scanner:Ot.scanner});Ot.parser=age(Ot.scanner.tokens);for(let e=0;e<Ot.pluginQueue.length;e++)Ot.pluginQueue[e][1]({scanner:Ot.scanner,parser:Ot.parser});return Ot.initialized=!0,Ot}function t7(e){return Ot.initialized||cge(),sge(Ot.parser.start,e,NH(Ot.scanner.start,e))}t7.scan=NH;function DH(e,t=null,r=null){if(t&&typeof t=="object"){if(r)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);r=t,t=null}const n=new e7(r),s=t7(e),i=[];for(let o=0;o<s.length;o++){const l=s[o];l.isLink&&(!t||l.t===t)&&n.check(l)&&i.push(l.toFormattedObject(n))}return i}var r7="[\0-  áá â-\u2029âã]",dge=new RegExp(r7),uge=new RegExp(`${r7}$`),pge=new RegExp(r7,"g");function gge(e){return e.length===1?e[0].isLink:e.length===3&&e[1].isLink?["()","[]"].includes(e[0].value+e[2].value):!1}function fge(e){return new Lt({key:new yr("autolink"),appendTransaction:(t,r,n)=>{const s=t.some(u=>u.docChanged)&&!r.doc.eq(n.doc),i=t.some(u=>u.getMeta("preventAutolink"));if(!s||i)return;const{tr:o}=n,l=VF(r.doc,[...t]);if(eH(l).forEach(({newRange:u})=>{const g=ude(n.doc,u,y=>y.isTextblock);let f,m;if(g.length>1)f=g[0],m=n.doc.textBetween(f.pos,f.pos+f.node.nodeSize,void 0," ");else if(g.length){const y=n.doc.textBetween(u.from,u.to," "," ");if(!uge.test(y))return;f=g[0],m=n.doc.textBetween(f.pos,u.to,void 0," ")}if(f&&m){const y=m.split(dge).filter(Boolean);if(y.length<=0)return!1;const S=y[y.length-1],b=f.pos+m.lastIndexOf(S);if(!S)return!1;const v=t7(S).map(j=>j.toObject(e.defaultProtocol));if(!gge(v))return!1;v.filter(j=>j.isLink).map(j=>({...j,from:b+j.start+1,to:b+j.end+1})).filter(j=>n.schema.marks.code?!n.doc.rangeHasMark(j.from,j.to,n.schema.marks.code):!0).filter(j=>e.validate(j.value)).filter(j=>e.shouldAutoLink(j.value)).forEach(j=>{FA(j.from,j.to,n.doc).some(k=>k.mark.type===e.type)||o.addMark(j.from,j.to,e.type.create({href:j.href}))})}}),!!o.steps.length)return o}})}function hge(e){return new Lt({key:new yr("handleClickLink"),props:{handleClick:(t,r,n)=>{var s,i;if(n.button!==0||!t.editable)return!1;let o=null;if(n.target instanceof HTMLAnchorElement)o=n.target;else{const d=n.target;if(!d)return!1;const u=e.editor.view.dom;o=d.closest("a"),o&&!u.contains(o)&&(o=null)}if(!o)return!1;let l=!1;if(e.enableClickSelection&&(l=e.editor.commands.extendMarkRange(e.type.n
vendor: 4,029 bytes, line 1012
1012ame)),e.openOnClick){const d=JF(t.state,e.type.name),u=(s=o.href)!=null?s:d.href,g=(i=o.target)!=null?i:d.target;u&&(window.open(u,g),l=!0)}return l}}})}function mge(e){return new Lt({key:new yr("handlePasteLink"),props:{handlePaste:(t,r,n)=>{const{shouldAutoLink:s}=e,{state:i}=t,{selection:o}=i,{empty:l}=o;if(l)return!1;let d="";n.content.forEach(g=>{d+=g.textContent});const u=DH(d,{defaultProtocol:e.defaultProtocol}).find(g=>g.isLink&&g.value===d);return!d||!u||s!==void 0&&!s(u.value)?!1:e.editor.commands.setMark(e.type,{href:u.href})}}})}function bl(e,t){const r=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return t&&t.forEach(n=>{const s=typeof n=="string"?n:n.scheme;s&&r.push(s)}),!e||e.replace(pge,"").match(new RegExp(`^(?:(?:${r.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}var _H=wc.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(e=>{if(typeof e=="string"){iM(e);return}iM(e.scheme,e.optionalSlashes)})},onDestroy(){lge()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(e,t)=>!!bl(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>{const t=/^[a-z][a-z0-9+.-]*:\/\//i.test(e),r=/^[a-z][a-z0-9+.-]*:/i.test(e);if(t||r&&!e.includes("@"))return!0;const s=(e.includes("@")?e.split("@").pop():e).split(/[/?#:]/)[0];return!(/^\d{1,3}(\.\d{1,3}){3}$/.test(s)||!/\./.test(s))}}},addAttributes(){return{href:{default:null,parseHTML(e){return e.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class},title:{default:null}}},parseHTML(){return[{tag:"a[href]",getAttrs:e=>{const t=e.getAttribute("href");return!t||!this.options.isAllowedUri(t,{defaultValidate:r=>!!bl(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:e}){return this.options.isAllowedUri(e.href,{defaultValidate:t=>!!bl(t,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",Yt(this.options.HTMLAttributes,e),0]:["a",Yt(this.options.HTMLAttributes,{...e,href:""}),0]},markdownTokenName:"link",parseMarkdown:(e,t)=>t.applyMark("link",t.parseInline(e.tokens||[]),{href:e.href,title:e.title||null}),renderMarkdown:(e,t)=>{var r,n,s,i;const o=(n=(r=e.attrs)==null?void 0:r.href)!=null?n:"",l=(i=(s=e.attrs)==null?void 0:s.title)!=null?i:"",d=t.renderChildren(e);return l?`[${d}](${o} "${l}")`:`[${d}](${o})`},addCommands(){return{setLink:e=>({chain:t})=>{const{href:r}=e;return this.options.isAllowedUri(r,{defaultValidate:n=>!!bl(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?t().setMark(this.name,e).setMeta("preventAutolink",!0).run():!1},toggleLink:e=>({chain:t})=>{const{href:r}=e||{};return r&&!this.options.isAllowedUri(r,{defaultValidate:n=>!!bl(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[ic({find:e=>{const t=[];if(e){const{protocols:r,defaultProtocol:n}=this.options,s=DH(e).filter(i=>i.isLink&&this.options.isAllowedUri(i.value,{defaultValidate:o=>!!bl(o,r),protocols:r,defaultProtocol:n}));s.length&&s.forEach(i=>{this.options.shouldAutoLink(i.value)&&t.push({text:i.value,data:{href:i.href},index:i.start})})}return t}
vendor: 6,267 bytes, lines 1012-1013
1012,type:this.type,getAttributes:e=>{var t;return{href:(t=e.data)==null?void 0:t.href}}})]},addProseMirrorPlugins(){const e=[],{protocols:t,defaultProtocol:r}=this.options;return this.options.autolink&&e.push(fge({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:n=>this.options.isAllowedUri(n,{defaultValidate:s=>!!bl(s,t),protocols:t,defaultProtocol:r}),shouldAutoLink:this.options.shouldAutoLink})),e.push(hge({type:this.type,editor:this.editor,openOnClick:this.options.openOnClick==="whenNotEditable"?!0:this.options.openOnClick,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&e.push(mge({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink})),e}}),xge=_H,yge=Object.defineProperty,bge=(e,t)=>{for(var r in t)yge(e,r,{get:t[r],enumerable:!0})},vge="listItem",oM="textStyle",lM=/^\s*([-+*])\s$/,IH=Tn.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:e}){return["ul",Yt(this.options.HTMLAttributes,e),0]},markdownTokenName:"list",parseMarkdown:(e,t)=>e.type!=="list"||e.ordered?[]:{type:"bulletList",content:e.items?t.parseChildren(e.items):[]},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,` 1013`):"",markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(vge,this.editor.getAttributes(oM)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=pu({find:lM,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=pu({find:lM,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(oM),editor:this.editor})),[e]}});function Sge(e){var t,r;const n=(t=e.tokens)==null?void 0:t[0];return!!(e.text&&((r=e.tokens)==null?void 0:r.length)===1&&n?.type==="list"&&n.ordered&&n.raw===e.text)}function jge(e,t){return t.tokenizeInline?t.parseInline(t.tokenizeInline(e)):t.parseInline([{type:"text",raw:e,text:e}])}var BH=Tn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:e}){return["li",Yt(this.options.HTMLAttributes,e),0]},markdownTokenName:"list_item",parseMarkdown:(e,t)=>{var r;if(e.type!=="list_item")return[];const n=(r=t.parseBlockChildren)!=null?r:t.parseChildren;let s=[];if(e.tokens&&e.tokens.length>0){if(Sge(e))return{type:"listItem",content:[{type:"paragraph",content:jge(e.text||"",t)}]};if(e.tokens.some(o=>o.type==="paragraph"))s=n(e.tokens);else{const o=e.tokens[0];if(o&&o.type==="text"&&o.tokens&&o.tokens.length>0){if(s=[{type:"paragraph",content:t.parseInline(o.tokens)}],e.tokens.length>1){const d=e.tokens.slice(1),u=n(d);s.push(...u)}}else s=n(e.tokens)}}return s.length===0&&(s=[{type:"paragraph",content:[]}]),{type:"listItem",content:s}},renderMarkdown:(e,t,r)=>GA(e,t,n=>{var s,i;return n.parentType==="bulletList"?"- ":n.parentType==="orderedList"?`${(((i=(s=n.meta)==null?void 0:s.parentAttrs)==null?void 0:i.start)||1)+n.index}. `:"- "},r),addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),wge={};bge(wge,{findListItemPos:()=>oh,getNextListDepth:()=>n7,handleBackspace:()=>fT,handleDelete:()=>hT,hasListBefore:()=>LH,hasListItemAfter:()=>kge,hasListItemBefore:()=>WH,listItemHasSubList:()=>$H,nextListIsDeeper:()=>FH,nextListIsHigher:()=>HH});var oh=(e,t)=>{const{$from:r}=t.selection,n=ur(e,t.schema);let s=null,i=r.depth,o=r.pos,l=null;for(;i>0&&l===null;)s=r.node(i),s.type===n?l=i:(i-=1,o-=1);return l===null?null:{$pos:t.doc.resolve(o),depth:l}},n7=(e,t)=>{const r=oh(e,t);if(!r)return!1;const[,n]=jde(t,e,r.$pos.pos+4);return n},LH=(e,t,r)=>{const{$anchor:n}=e.selection,s=Math.max(0,n.pos-2),i=e.doc.resolve(s).node();return!(!i||!r.includes(i.type.name))},WH=(e,t)=>{var r;const{$anchor:n}=t.selection,s=t.doc.resolve(n.pos-2);return!(s.index()===0||((r=s.nodeBefore)==null?void 0:r.type.name)!==e)},$H=(e,t,r)=>{if(!r)return!1;const n=ur(e,t.schema);let s=!1;return r.descendants(i=>{i.type===n&&(s=!0)}),s},fT=(e,t,r)=>{if(e.commands.undoInputRule())return!0;if(e.state.selection.from!==e.state.selection.to)return!1;if(!Bo(e.state,t)&&LH(e.state,t,r)){const{$anchor:l}=e.state.selection,d=e.state.doc.resolve(l.before()-1),u=[];d.node().descendants((m,y)=>{m.type.name===t&&u.push({node:m,pos:y})});const g=u.at(-1);if(!g)return!1;const f=e.state.doc.resolve(d.start()+g.pos+1);return e.chain().cut({from:l.start()-1,to:l.end()+1},f.end()).joinForward().run()}if(!Bo(e.state,t)||!Tde(e.state))return!1;const n=oh(t,e.state);if(!n)return!1;const i=e.state.doc.resolve(n.$pos.pos-2).node(n.depth),o=$H(t,e.state,i);return WH(t,e.state)&&!o?e.commands.joinItemBackward():e.chain().liftListItem(t).run()},FH=(e,t)=>{const r=n7(e,t),n=oh(e,t);return!n||!r?!1:r>n.depth},HH=(e,t)=>{const r=n7(e,t),n=oh(e,t);return!n||!r?!1:r<n.depth},hT=(e,t)=>{if(!Bo(e.state,t)||!Pde(e.state,t))return!1;const{selection:r}=e.state,{$from:n,$to:s}=r;return!r.empty&&n.sameParent(s)?!1:FH(t,e.state)?e.chain().focus(e.state.selection.from+4).lift(t).joinBackward().run():HH(t,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward()},kge=(e,t)=>{var r;const{$anchor:n}=t.selection,s=t.doc.resolve(n.pos-n.parentOffset-2);return!(s.index()===s.parent.childCount-1||((r=s.nodeAfter)==null?void 0:r.type.name)!==e)},qH=er.create({name:"listKeymap",addOptions(){return{listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}},addKeyboardShortcuts(){return{Delete:({editor:e})=>{let t=!1;
1013return this.options.listTypes.forEach(({itemName:r})=>{e.state.schema.nodes[r]!==void 0&&hT(e,r)&&(t=!0)}),t},"Mod-Delete":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:r})=>{e.state.schema.nodes[r]!==void 0&&hT(e,r)&&(t=!0)}),t},Backspace:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:r,wrapperNames:n})=>{e.state.schema.nodes[r]!==void 0&&fT(e,r,n)&&(t=!0)}),t},"Mod-Backspace":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:r,wrapperNames:n})=>{e.state.schema.nodes[r]!==void 0&&fT(e,r,n)&&(t=!0)}),t}}}}),cM=/^(\s*)(\d+)\.\s+(.*)$/,Pge=/^\s/;function Tge(e){const t=e.trimStart();return/^[-+*]\s+/.test(t)||/^\d+\.\s+/.test(t)||/^>\s?/.test(t)||/^```/.test(t)||/^~~~/.test(t)}function Age(e){const t=[],r=[];let n=!1;return e.forEach(s=>{if(n){r.push(s);return}if(s.trim()===""){n=!0,r.push(s);return}if(t.length>0&&Tge(s)){n=!0,r.push(s);return}t.push(s)}),{paragraphLines:t,blockLines:r}}function zge(e){const t=[];let r=0,n=0;for(;r<e.length;){const s=e[r],i=s.match(cM);if(!i)break;const[,o,l,d]=i,u=o.length,g=[d];let f=r+1;const m=[s];let y=!1;for(;f<e.length;){const S=e[f];if(S.match(cM))break;if(S.trim()==="")m.push(S),g.push(""),y=!0,f+=1;else if(S.match(Pge))m.push(S),g.push(S.slice(u+2)),f+=1;else{if(y)break;m.push(S),g.push(S),f+=1}}t.push({indent:u,number:parseInt(l,10),content:g.join(` 1014`).trim(),contentLines:g,raw:m.join(` 1015`)}),n=f,r=f}return[t,n]}function UH(e,t,r){const n=[];let s=0;for(;s<e.length;){const i=e[s];if(i.indent===t){const{paragraphLines:o,blockLines:l}=Age(i.contentLines),d=o.join(` 1016`).trim(),u=[];d&&u.push({type:"paragraph",raw:d,tokens:r.inlineTokens(d)});const g=l.join(` 1017`).trim();if(g){const y=r.blockTokens(g);u.push(...y)}let f=s+1;const m=[];for(;f<e.length&&e[f].indent>t;)m.push(e[f]),f+=1;if(m.length>0){const y=Math.min(...m.map(b=>b.indent)),S=UH(m,y,r);u.push({type:"list",ordered:!0,start:m[0].number,items:S,raw:m.map(b=>b.raw).join(` 1018`)})}n.push({type:"list_item",raw:i.raw,tokens:u}),s=f}else s+=1}return n}function Cge(e,t){return e.map(r=>{if(r.type!=="list_item")return t.parseChildren([r])[0];const n=[];return r.tokens&&r.tokens.length>0&&r.tokens.forEach(s=>{if(s.type==="paragraph"||s.type==="list"||s.type==="blockquote"||s.type==="code")n.push(...t.parseChildren([s]));else if(s.type==="text"&&s.tokens){const i=t.parseChildren([s]);n.push({type:"paragraph",content:i})}else{const i=t.parseChildren([s]);i.length>0&&n.push(...i)}}),{type:"listItem",content:n}})}var Ege="listItem",dM="textStyle",uM=/^(\d+)\.\s$/,GH=Tn.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1},type:{default:null,parseHTML:e=>e.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:e}){const{start:t,...r}=e;return t===1?["ol",Yt(this.options.HTMLAttributes,r),0]:["ol",Yt(this.options.HTMLAttributes,e),0]},markdownTokenName:"list",parseMarkdown:(e,t)=>{if(e.type!=="list"||!e.ordered)return[];const r=e.start||1,n=e.items?Cge(e.items,t):[];return r!==1?{type:"orderedList",attrs:{start:r},content:n}:{type:"orderedList",content:n}},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,` 1019`):"",markdownTokenizer:{name:"orderedList",level:"block",start:e=>{const t=e.match(/^(\s*)(\d+)\.\s+/),r=t?.index;return r!==void 0?r:-1},tokenize:(e,t,r)=>{var n;const s=e.split(` 1020`),[i,o]=zge(s);if(i.length===0)return;const l=UH(i,0,r);return l.length===0?void 0:{type:"list",ordered:!0,start:((n=i[0])==null?void 0:n.number)||1,items:l,raw:s.slice(0,o).join(` 1021`)}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(Ege,this.editor.getAttributes(dM)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}}
vendor: 5,483 bytes, lines 1021-1022
1021,addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=pu({find:uM,type:this.type,getAttributes:t=>({start:+t[1]}),joinPredicate:(t,r)=>r.childCount+r.attrs.start===+t[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=pu({find:uM,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:t=>({start:+t[1],...this.editor.getAttributes(dM)}),joinPredicate:(t,r)=>r.childCount+r.attrs.start===+t[1],editor:this.editor})),[e]}}),Oge=/^\s*(\[([( |x])?\])\s$/,Mge=Tn.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{const t=e.getAttribute("data-checked");return t===""||t==="true"},renderHTML:e=>({"data-checked":e.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:e,HTMLAttributes:t}){return["li",Yt(this.options.HTMLAttributes,t,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:e.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(e,t)=>{const r=[];if(e.tokens&&e.tokens.length>0?r.push(t.createNode("paragraph",{},t.parseInline(e.tokens))):e.text?r.push(t.createNode("paragraph",{},[t.createNode("text",{text:e.text})])):r.push(t.createNode("paragraph",{},[])),e.nestedTokens&&e.nestedTokens.length>0){const n=t.parseChildren(e.nestedTokens);r.push(...n)}return t.createNode("taskItem",{checked:e.checked||!1},r)},renderMarkdown:(e,t)=>{var r;const s=`- [${(r=e.attrs)!=null&&r.checked?"x":" "}] `;return GA(e,t,s)},addKeyboardShortcuts(){const e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:r,editor:n})=>{const s=document.createElement("li"),i=document.createElement("label"),o=document.createElement("span"),l=document.createElement("input"),d=document.createElement("div"),u=f=>{var m,y;l.ariaLabel=((y=(m=this.options.a11y)==null?void 0:m.checkboxLabel)==null?void 0:y.call(m,f,l.checked))||`Task item checkbox for ${f.textContent||"empty task item"}`};u(e),i.contentEditable="false",l.type="checkbox",l.addEventListener("mousedown",f=>f.preventDefault()),l.addEventListener("change",f=>{if(!n.isEditable&&!this.options.onReadOnlyChecked){l.checked=!l.checked;return}const{checked:m}=f.target;n.isEditable&&typeof r=="function"&&n.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:y})=>{const S=r();if(typeof S!="number")return!1;const b=y.doc.nodeAt(S);return y.setNodeMarkup(S,void 0,{...b?.attrs,checked:m}),!0}).run(),!n.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(e,m)||(l.checked=!l.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([f,m])=>{s.setAttribute(f,m)}),s.dataset.checked=e.attrs.checked,l.checked=e.attrs.checked,i.append(l,o),s.append(i,d),Object.entries(t).forEach(([f,m])=>{s.setAttribute(f,m)});let g=new Set(Object.keys(t));return{dom:s,contentDOM:d,update:f=>{if(f.type!==this.type)return!1;s.dataset.checked=f.attrs.checked,l.checked=f.attrs.checked,u(f);const m=n.extensionManager.attributes,y=cf(f,m),S=new Set(Object.keys(y)),b=this.options.HTMLAttributes;return g.forEach(v=>{S.has(v)||(v in b?s.setAttribute(v,b[v]):s.removeAttribute(v))}),Object.entries(y).forEach(([v,j])=>{j==null?v in b?s.setAttribute(v,b[v]):s.removeAttribute(v):s.setAttribute(v,j)}),g=S,!0}}}},addInputRules(){return[pu({find:Oge,type:this.type,getAttributes:e=>({checked:e[e.length-1]==="x"})})]}}),Nge=Tn.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return["ul",Yt(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},parseMarkdown:(e,t)=>t.createNode("taskList",{},t.parseChildren(e.items||[])),renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,` 1022`):"",markdownTokenizer:{name:"taskList",level:"block",start(e){var t;const r=(t=e.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))==null?void 0:t.index;return r!==void 0?r:-1},tokenize(e,t,r){const n=i=>{const o=sT(i,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:l=>({indentLevel:l[1].length,mainContent:l[4],checked:l[3].toLowerCase()==="x"}),createToken:(l,d)=>({type:"taskItem",raw:"",mainContent:l.mainContent,indentLevel:l.indentLevel,checked:l.checked,text:l.mainContent,tokens:r.inlineTokens(l.mainContent),nestedTokens:d}),customNestedParser:n},r);return o?[{type:"taskList",raw:o.raw,items:o.items}]:r.blockTokens(i)},s=sT(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:i=>({indentLevel:i[1].length,mainContent:i[4],checked:i[3].toLowerCase()==="x"}),createToken:(i,o)=>({type:"taskItem",raw:"",mainContent:i.mainContent,indentLevel:i.indentLevel,checked:i.checked,text:i.mainContent,tokens:r.inlineTokens(i.mainContent),nestedTokens:o}),customNestedParser:n},r);if(s)return{type:"taskList",raw:s.raw,items:s.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}}
1022,addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});er.create({name:"listKit",addExtensions(){const e=[];return this.options.bulletList!==!1&&e.push(IH.configure(this.options.bulletList)),this.options.listItem!==!1&&e.push(BH.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(qH.configure(this.options.listKeymap)),this.options.orderedList!==!1&&e.push(GH.configure(this.options.orderedList)),this.options.taskItem!==!1&&e.push(Mge.configure(this.options.taskItem)),this.options.taskList!==!1&&e.push(Nge.configure(this.options.taskList)),e}});var ix=" ",$v="Â ",Rge=Tn.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:e}){return["p",Yt(this.options.HTMLAttributes,e),0]},parseMarkdown:(e,t)=>{const r=e.tokens||[];if(r.length===1&&r[0].type==="image")return t.parseChildren([r[0]]);const n=t.parseInline(r);return r.length===1&&r[0].type==="text"&&(r[0].raw===ix||r[0].text===ix||r[0].raw===$v||r[0].text===$v)&&n.length===1&&n[0].type==="text"&&(n[0].text===ix||n[0].text===$v)?t.createNode("paragraph",void 0,[]):t.createNode("paragraph",void 0,n)},renderMarkdown:(e,t,r)=>{var n,s;if(!e)return"";const i=Array.isArray(e.content)?e.content:[];if(i.length===0){const o=Array.isArray((n=r?.previousNode)==null?void 0:n.content)?r.previousNode.content:[];return((s=r?.previousNode)==null?void 0:s.type)==="paragraph"&&o.length===0?ix:""}return t.renderChildren(i)},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),Dge=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,_ge=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,Ige=wc.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>e.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["s",Yt(this.options.HTMLAttributes,e),0]},markdownTokenName:"del",parseMarkdown:(e,t)=>t.applyMark("strike",t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>`~~${t.renderChildren(e)}~~`,addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[uu({find:Dge,type:this.type})]},addPasteRules(){return[ic({find:_ge,type:this.type})]}}),Bge=Tn.create({name:"text",group:"inline",parseMarkdown:e=>({type:"text",text:e.text||""}),renderMarkdown:e=>e.text||""}),Lge=wc.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>e.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["u",Yt(this.options.HTMLAttributes,e),0]},parseMarkdown(e,t){return t.applyMark(this.name||"underline",t.parseInline(e.tokens||[]))},renderMarkdown(e,t){return`++${t.renderChildren(e)}++`},markdownTokenizer:{name:"underline",level:"inline",start(e){return e.indexOf("++")},tokenize(e,t,r){const s=/^(\+\+)([\s\S]+?)(\+\+)/.exec(e);if(!s)return;const i=s[2].trim();return{type:"underline",raw:s[0],text:i,tokens:r.inlineTokens(i)}}},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}});function Wge(e={}){return new Lt({view(t){return new $ge(t,e)}})}class $ge{constructor(t,r){var n;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(n=r.width)!==null&&n!==void 0?n:1,this.color=r.color===!1?void 0:r.color||"black",this.class=r.class,this.handlers=["dragover","dragend","drop","dragleave"].map(s=>{let i=o=>{this[s](o)};return t.dom.addEventListener(s,i),{name:s,handler:i}})}
vendor: 4,302 bytes, line 1022
1022destroy(){this.handlers.forEach(({name:t,handler:r})=>this.editorView.dom.removeEventListener(t,r))}update(t,r){this.cursorPos!=null&&r.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,t==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t=this.editorView.state.doc.resolve(this.cursorPos),r=!t.parent.inlineContent,n,s=this.editorView.dom,i=s.getBoundingClientRect(),o=i.width/s.offsetWidth,l=i.height/s.offsetHeight;if(r){let f=t.nodeBefore,m=t.nodeAfter;if(f||m){let y=this.editorView.nodeDOM(this.cursorPos-(f?f.nodeSize:0));if(y){let S=y.getBoundingClientRect(),b=f?S.bottom:S.top;f&&m&&(b=(b+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let v=this.width/2*l;n={left:S.left,right:S.right,top:b-v,bottom:b+v}}}}if(!n){let f=this.editorView.coordsAtPos(this.cursorPos),m=this.width/2*o;n={left:f.left-m,right:f.left+m,top:f.top,bottom:f.bottom}}let d=this.editorView.dom.offsetParent;this.element||(this.element=d.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",r),this.element.classList.toggle("prosemirror-dropcursor-inline",!r);let u,g;if(!d||d==document.body&&getComputedStyle(d).position=="static")u=-pageXOffset,g=-pageYOffset;else{let f=d.getBoundingClientRect(),m=f.width/d.offsetWidth,y=f.height/d.offsetHeight;u=f.left-d.scrollLeft*m,g=f.top-d.scrollTop*y}this.element.style.left=(n.left-u)/o+"px",this.element.style.top=(n.top-g)/l+"px",this.element.style.width=(n.right-n.left)/o+"px",this.element.style.height=(n.bottom-n.top)/l+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}dragover(t){if(!this.editorView.editable)return;let r=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),n=r&&r.inside>=0&&this.editorView.state.doc.nodeAt(r.inside),s=n&&n.type.spec.disableDropCursor,i=typeof s=="function"?s(this.editorView,r,t):s;if(r&&!i){let o=r.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let l=B$(this.editorView.state.doc,o,this.editorView.dragging.slice);l!=null&&(o=l)}this.setCursor(o),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){this.editorView.dom.contains(t.relatedTarget)||this.setCursor(null)}}class Ut extends Ve{constructor(t){super(t,t)}map(t,r){let n=t.resolve(r.map(this.head));return Ut.valid(n)?new Ut(n):Ve.near(n)}content(){return we.empty}eq(t){return t instanceof Ut&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,r){if(typeof r.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new Ut(t.resolve(r.pos))}getBookmark(){return new a7(this.anchor)}static valid(t){let r=t.parent;if(r.inlineContent||!Fge(t)||!Hge(t))return!1;let n=r.type.spec.allowGapCursor;if(n!=null)return n;let s=r.contentMatchAt(t.index()).defaultType;return s&&s.isTextblock}static findGapCursorFrom(t,r,n=!1){e:for(;;){if(!n&&Ut.valid(t))return t;let s=t.pos,i=null;for(let o=t.depth;;o--){let l=t.node(o);if(r>0?t.indexAfter(o)<l.childCount:t.index(o)>0){i=l.child(r>0?t.indexAfter(o):t.index(o)-1);break}else if(o==0)return null;s+=r;let d=t.doc.resolve(s);if(Ut.valid(d))return d}for(;;){let o=r>0?i.firstChild:i.lastChild;if(!o){if(i.isAtom&&!i.isText&&!De.isSelectable(i)){t=t.doc.resolve(s+i.nodeSize*r),n=!1;continue e}break}i=o,s+=r;let l=t.doc.resolve(s);if(Ut.valid(l))return l}return null}}}Ut.prototype.visible=!1;Ut.findFrom=Ut.findGapCursorFrom;Ve.jsonID("gapcursor",Ut);class a7{constructor(t){this.pos=t}map(t){return new a7(t.map(this.pos))}resolve(t){let r=t.resolve(this.pos);return Ut.valid(r)?new Ut(r):Ve.near(r)}}function VH(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}function Fge(e){for(let t=e.depth;t>=0;t--){let r=e.index(t),n=e.node(t);if(r==0){if(n.type.spec.isolating)return!0;continue}for(let s=n.child(r-1);;s=s.lastChild){if(s.childCount==0&&!s.inlineContent||VH(s.type))return!0;
vendor: 19,231 bytes, line 1022
1022if(s.inlineContent)return!1}}return!0}function Hge(e){for(let t=e.depth;t>=0;t--){let r=e.indexAfter(t),n=e.node(t);if(r==n.childCount){if(n.type.spec.isolating)return!0;continue}for(let s=n.child(r);;s=s.firstChild){if(s.childCount==0&&!s.inlineContent||VH(s.type))return!0;if(s.inlineContent)return!1}}return!0}function qge(){return new Lt({props:{decorations:Xge,createSelectionBetween(e,t,r){return t.pos==r.pos&&Ut.valid(r)?new Ut(r):null},handleClick:Gge,handleKeyDown:Uge,handleDOMEvents:{beforeinput:Vge}}})}const Uge=LF({ArrowLeft:ox("horiz",-1),ArrowRight:ox("horiz",1),ArrowUp:ox("vert",-1),ArrowDown:ox("vert",1)});function ox(e,t){const r=e=="vert"?t>0?"down":"up":t>0?"right":"left";return function(n,s,i){let o=n.selection,l=t>0?o.$to:o.$from,d=o.empty;if(o instanceof $e){if(!i.endOfTextblock(r)||l.depth==0)return!1;d=!1,l=n.doc.resolve(t>0?l.after():l.before())}let u=Ut.findGapCursorFrom(l,t,d);return u?(s&&s(n.tr.setSelection(new Ut(u))),!0):!1}}function Gge(e,t,r){if(!e||!e.editable)return!1;let n=e.state.doc.resolve(t);if(!Ut.valid(n))return!1;let s=e.posAtCoords({left:r.clientX,top:r.clientY});return s&&s.inside>-1&&De.isSelectable(e.state.doc.nodeAt(s.inside))?!1:(e.dispatch(e.state.tr.setSelection(new Ut(n))),!0)}function Vge(e,t){if(t.inputType!="insertCompositionText"||!(e.state.selection instanceof Ut))return!1;let{$from:r}=e.state.selection,n=r.parent.contentMatchAt(r.index()).findWrapping(e.state.schema.nodes.text);if(!n)return!1;let s=he.empty;for(let o=n.length-1;o>=0;o--)s=he.from(n[o].createAndFill(null,s));let i=e.state.tr.replace(r.pos,r.pos,new we(s,0,0));return i.setSelection($e.near(i.doc.resolve(r.pos+1))),e.dispatch(i),!1}function Xge(e){if(!(e.selection instanceof Ut))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",Bt.create(e.doc,[rn.widget(e.selection.head,t,{key:"gapcursor"})])}var t5=200,Tr=function(){};Tr.prototype.append=function(t){return t.length?(t=Tr.from(t),!this.length&&t||t.length<t5&&this.leafAppend(t)||this.length<t5&&t.leafPrepend(this)||this.appendInner(t)):this};Tr.prototype.prepend=function(t){return t.length?Tr.from(t).append(this):this};Tr.prototype.appendInner=function(t){return new Kge(this,t)};Tr.prototype.slice=function(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.length),t>=r?Tr.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,r))};Tr.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)};Tr.prototype.forEach=function(t,r,n){r===void 0&&(r=0),n===void 0&&(n=this.length),r<=n?this.forEachInner(t,r,n,0):this.forEachInvertedInner(t,r,n,0)};Tr.prototype.map=function(t,r,n){r===void 0&&(r=0),n===void 0&&(n=this.length);var s=[];return this.forEach(function(i,o){return s.push(t(i,o))},r,n),s};Tr.from=function(t){return t instanceof Tr?t:t&&t.length?new XH(t):Tr.empty};var XH=(function(e){function t(n){e.call(this),this.values=n}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(s,i){return s==0&&i==this.length?this:new t(this.values.slice(s,i))},t.prototype.getInner=function(s){return this.values[s]},t.prototype.forEachInner=function(s,i,o,l){for(var d=i;d<o;d++)if(s(this.values[d],l+d)===!1)return!1},t.prototype.forEachInvertedInner=function(s,i,o,l){for(var d=i-1;d>=o;d--)if(s(this.values[d],l+d)===!1)return!1},t.prototype.leafAppend=function(s){if(this.length+s.length<=t5)return new t(this.values.concat(s.flatten()))},t.prototype.leafPrepend=function(s){if(this.length+s.length<=t5)return new t(s.flatten().concat(this.values))},r.length.get=function(){return this.values.length},r.depth.get=function(){return 0},Object.defineProperties(t.prototype,r),t})(Tr);Tr.empty=new XH([]);var Kge=(function(e){function t(r,n){e.call(this),this.left=r,this.right=n,this.length=r.length+n.length,this.depth=Math.max(r.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(n){return n<this.left.length?this.left.get(n):this.right.get(n-this.left.length)},t.prototype.forEachInner=function(n,s,i,o){var l=this.left.length;if(s<l&&this.left.forEachInner(n,s,Math.min(i,l),o)===!1||i>l&&this.right.forEachInner(n,Math.max(s-l,0),Math.min(this.length,i)-l,o+l)===!1)return!1},t.prototype.forEachInvertedInner=function(n,s,i,o){var l=this.left.length;if(s>l&&this.right.forEachInvertedInner(n,s-l,Math.max(i,l)-l,o+l)===!1||i<l&&this.left.forEachInvertedInner(n,Math.min(s,l),i,o)===!1)return!1},t.prototype.sliceInner=function(n,s){if(n==0&&s==this.length)return this;var i=this.left.length;return s<=i?this.left.slice(n,s):n>=i?this.right.slice(n-i,s-i):this.left.slice(n,i).append(this.right.slice(0,s-i))},t.prototype.leafAppend=function(n){var s=this.right.leafAppend(n);if(s)return new t(this.left,s)},t.prototype.leafPrepend=function(n){var s=this.left.leafPrepend(n);if(s)return new t(s,this.right)},t.prototype.appendInner=function(n){return this.left.depth>=Math.max(this.right.depth,n.depth)+1?new t(this.left,new t(this.right,n)):new t(this,n)},t})(Tr);const Qge=500;class _a{constructor(t,r){this.items=t,this.eventCount=r}popEvent(t,r){if(this.eventCount==0)return null;let n=this.items.length;for(;;n--)if(this.items.get(n-1).selection){--n;break}let s,i;r&&(s=this.remapping(n,this.items.length),i=s.maps.length);let o=t.tr,l,d,u=[],g=[];return this.items.forEach((f,m)=>{if(!f.step){s||(s=this.remapping(n,m+1),i=s.maps.length),i--,g.push(f);return}if(s){g.push(new cs(f.map));let y=f.step.map(s.slice(i)),S;y&&o.maybeStep(y).doc&&(S=o.mapping.maps[o.mapping.maps.length-1],u.push(new cs(S,void 0,void 0,u.length+g.length))),i--,S&&s.appendMap(S,i)}else o.maybeStep(f.step);if(f.selection)return l=s?f.selection.map(s.slice(i)):f.selection,d=new _a(this.items.slice(0,n).append(g.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:d,transform:o,selection:l}}addTransform(t,r,n,s){let i=[],o=this.eventCount,l=this.items,d=!s&&l.length?l.get(l.length-1):null;for(let g=0;g<t.steps.length;g++){let f=t.steps[g].invert(t.docs[g]),m=new cs(t.mapping.maps[g],f,r),y;(y=d&&d.merge(m))&&(m=y,g?i.pop():l=l.slice(0,l.length-1)),i.push(m),r&&(o++,r=void 0),s||(d=m)}let u=o-n.depth;return u>Zge&&(l=Yge(l,u),o-=u),new _a(l.append(i),o)}remapping(t,r){let n=new rf;return this.items.forEach((s,i)=>{let o=s.mirrorOffset!=null&&i-s.mirrorOffset>=t?n.maps.length-s.mirrorOffset:void 0;n.appendMap(s.map,o)},t,r),n}addMaps(t){return this.eventCount==0?this:new _a(this.items.append(t.map(r=>new cs(r))),this.eventCount)}rebased(t,r){if(!this.eventCount)return this;let n=[],s=Math.max(0,this.items.length-r),i=t.mapping,o=t.steps.length,l=this.eventCount;this.items.forEach(m=>{m.selection&&l--},s);let d=r;this.items.forEach(m=>{let y=i.getMirror(--d);if(y==null)return;o=Math.min(o,y);let S=i.maps[y];if(m.step){let b=t.steps[y].invert(t.docs[y]),v=m.selection&&m.selection.map(i.slice(d+1,y));v&&l++,n.push(new cs(S,b,v))}else n.push(new cs(S))},s);let u=[];for(let m=r;m<o;m++)u.push(new cs(i.maps[m]));let g=this.items.slice(0,s).append(u).append(n),f=new _a(g,l);return f.emptyItemCount()>Qge&&(f=f.compress(this.items.length-n.length)),f}emptyItemCount(){let t=0;return this.items.forEach(r=>{r.step||t++}),t}compress(t=this.items.length){let r=this.remapping(0,t),n=r.maps.length,s=[],i=0;return this.items.forEach((o,l)=>{if(l>=t)s.push(o),o.selection&&i++;else if(o.step){let d=o.step.map(r.slice(n)),u=d&&d.getMap();if(n--,u&&r.appendMap(u,n),d){let g=o.selection&&o.selection.map(r.slice(n));g&&i++;let f=new cs(u.invert(),d,g),m,y=s.length-1;(m=s.length&&s[y].merge(f))?s[y]=m:s.push(f)}}else o.map&&n--},this.items.length,0),new _a(Tr.from(s.reverse()),i)}}_a.empty=new _a(Tr.empty,0);function Yge(e,t){let r;return e.forEach((n,s)=>{if(n.selection&&t--==0)return r=s,!1}),e.slice(r)}class cs{constructor(t,r,n,s){this.map=t,this.step=r,this.selection=n,this.mirrorOffset=s}merge(t){if(this.step&&t.step&&!t.selection){let r=t.step.merge(this.step);if(r)return new cs(r.getMap().invert(),r,this.selection)}}}class fo{constructor(t,r,n,s,i){this.done=t,this.undone=r,this.prevRanges=n,this.prevTime=s,this.prevComposition=i}}const Zge=20;function Jge(e,t,r,n){let s=r.getMeta(Xl),i;if(s)return s.historyState;r.getMeta(rfe)&&(e=new fo(e.done,e.undone,null,0,-1));let o=r.getMeta("appendedTransaction");if(r.steps.length==0)return e;if(o&&o.getMeta(Xl))return o.getMeta(Xl).redo?new fo(e.done.addTransform(r,void 0,n,Kx(t)),e.undone,pM(r.mapping.maps),e.prevTime,e.prevComposition):new fo(e.done,e.undone.addTransform(r,void 0,n,Kx(t)),null,e.prevTime,e.prevComposition);if(r.getMeta("addToHistory")!==!1&&!(o&&o.getMeta("addToHistory")===!1)){let l=r.getMeta("composition"),d=e.prevTime==0||!o&&e.prevComposition!=l&&(e.prevTime<(r.time||0)-n.newGroupDelay||!efe(r,e.prevRanges)),u=o?Fv(e.prevRanges,r.mapping):pM(r.mapping.maps);return new fo(e.done.addTransform(r,d?t.selection.getBookmark():void 0,n,Kx(t)),_a.empty,u,r.time,l??e.prevComposition)}else return(i=r.getMeta("rebased"))?new fo(e.done.rebased(r,i),e.undone.rebased(r,i),Fv(e.prevRanges,r.mapping),e.prevTime,e.prevComposition):new fo(e.done.addMaps(r.mapping.maps),e.undone.addMaps(r.mapping.maps),Fv(e.prevRanges,r.mapping),e.prevTime,e.prevComposition)}function efe(e,t){if(!t)return!1;if(!e.docChanged)return!0;let r=!1;return e.mapping.maps[0].forEach((n,s)=>{for(let i=0;i<t.length;i+=2)n<=t[i+1]&&s>=t[i]&&(r=!0)}),r}function pM(e){let t=[];for(let r=e.length-1;r>=0&&t.length==0;r--)e[r].forEach((n,s,i,o)=>t.push(i,o));return t}function Fv(e,t){if(!e)return null;let r=[];for(let n=0;n<e.length;n+=2){let s=t.map(e[n],1),i=t.map(e[n+1],-1);s<=i&&r.push(s,i)}return r}function tfe(e,t,r){let n=Kx(t),s=Xl.get(t).spec.config,i=(r?e.undone:e.done).popEvent(t,n);if(!i)return null;let o=i.selection.resolve(i.transform.doc),l=(r?e.done:e.undone).addTransform(i.transform,t.selection.getBookmark(),s,n),d=new fo(r?l:i.remaining,r?i.remaining:l,null,0,-1);return i.transform.setSelection(o).setMeta(Xl,{redo:r,historyState:d})}let Hv=!1,gM=null;function Kx(e){let t=e.plugins;if(gM!=t){Hv=!1,gM=t;for(let r=0;r<t.length;r++)if(t[r].spec.historyPreserveItems){Hv=!0;break}}return Hv}const Xl=new yr("history"),rfe=new yr("closeHistory");function nfe(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new Lt({key:Xl,state:{init(){return new fo(_a.empty,_a.empty,null,0,-1)},apply(t,r,n){return Jge(r,n,t,e)}},config:e,props:{handleDOMEvents:{beforeinput(t,r){let n=r.inputType,s=n=="historyUndo"?QH:n=="historyRedo"?YH:null;return!s||!t.editable?!1:(r.preventDefault(),s(t.state,t.dispatch))}}}})}function KH(e,t){return(r,n)=>{let s=Xl.getState(r);if(!s||(e?s.undone:s.done).eventCount==0)return!1;if(n){let i=tfe(s,r,e);i&&n(t?i.scrollIntoView():i)}return!0}}const QH=KH(!1,!0),YH=KH(!0,!0);er.create({name:"characterCount",addOptions(){return{limit:null,autoTrim:!0,mode:"textSize",textCounter:e=>e.length,wordCounter:e=>e.split(" ").filter(t=>t!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=e=>{const t=e?.node||this.editor.state.doc;if((e?.mode||this.options.mode)==="textSize"){const n=t.textBetween(0,t.content.size,void 0," ");return this.options.textCounter(n)}return t.nodeSize},this.storage.words=e=>{const t=e?.node||this.editor.state.doc,r=t.textBetween(0,t.content.size," "," ");return this.options.wordCounter(r)}},addProseMirrorPlugins(){let e=!1;return[new Lt({key:new yr("characterCount"),appendTransaction:(t,r,n)=>{if(e)return;const s=this.options.limit,i=this.options.autoTrim;if(s==null||s===0||i===!1){e=!0;return}const o=this.storage.characters({node:n.doc});if(o>s){const l=o-s,d=0,u=l;console.warn(`[CharacterCount] Initial content exceeded limit of ${s} characters. Content was automatically trimmed.`);const g=n.tr.deleteRange(d,u);return e=!0,g}e=!0},filterTransaction:(t,r)=>{const n=this.options.limit;if(!t.docChanged||n===0||n===null||n===void 0)return!0;const s=this.storage.characters({node:r.doc}),i=this.storage.characters({node:t.doc});if(i<=n||s>n&&i>n&&i<=s)return!0;if(s>n&&i>n&&i>s||!t.getMeta("paste"))return!1;const l=t.selection.$head.pos,d=i-n,u=l-d,g=l;return t.deleteRange(u,g),!(this.storage.characters({node:t.doc})>n)}})]}});var afe=er.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[Wge(this.options)]}});er.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new Lt({key:new yr("focus"),props:{decorations:({doc:e,selection:t})=>{const{isEditable:r,isFocused:n}=this.editor,{anchor:s}=t,i=[];if(!r||!n)return Bt.create(e,[]);let o=0;this.options.mode==="deepest"&&e.descendants((d,u)=>{if(d.isText)return;if(!(s>=u&&s<=u+d.nodeSize-1))return!1;o+=1});let l=0;return e.descendants((d,u)=>{if(d.isText||!(s>=u&&s<=u+d.nodeSize-1))return!1;if(l+=1,this.options.mode==="deepest"&&o-l>0||this.options.mode==="shallowest"&&l>1)return this.options.mode==="deepest";i.push(rn.node(u,u+d.nodeSize,{class:this.options.className}))}),Bt.create(e,i)}}})]}});var sfe=er.create({name:"gapCursor",addProseMirrorPlugins(){return[qge()]},extendNodeSchema(e){var t;const r={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:(t=xt(Me(e,"allowGapCursor",r)))!=null?t:null}}}),fM="placeholder";function ife(e){return e.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/^[0-9-]+/,"").replace(/^-+/,"").toLowerCase()}var ofe=er.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",dataAttribute:fM,placeholder:"Write something â¦",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){const e=this.options.dataAttribute?`data-${ife(this.options.dataAttribute)}`:`data-${fM}`;return[new Lt({key:new yr("placeholder"),props:{decorations:({doc:t,selection:r})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:s}=r,i=[];if(!n)return null;const o=this.editor.isEmpty;return t.descendants((l,d)=>{const u=s>=d&&s<=d+l.nodeSize,g=!l.isLeaf&&Dy(l);if(!l.type.isTextblock)return this.options.includeChildren;if((u||!this.options.showOnlyCurrent)&&g){const f=[this.options.emptyNodeClass];o&&f.push(this.options.emptyEditorClass);const m=rn.node(d,d+l.nodeSize,{class:f.join(" "),[e]:typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:l,pos:d,hasAnchor:u}):this.options.placeholder});i.push(m)}return this.options.includeChildren}),Bt.create(t,i)}}})]}});er.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:e,options:t}=this;return[new Lt({key:new yr("selection"),props:{decorations(r){return r.selection.empty||e.isFocused||!e.isEditable||tH(r.selection)||e.view.dragging?null:Bt.create(r.doc,[rn.inline(r.selection.from,r.selection.to,{class:t.className})])}}})]}});var lfe="skipTrailingNode";function hM({types:e,node:t}){return t&&Array.isArray(e)&&e.includes(t.type)||t?.type===e}var cfe=er.create({name:"trailingNode",addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){var e;const t=new yr(this.name),r=this.options.node||((e=this.editor.schema.topNodeType.contentMatch.defaultType)==null?void 0:e.name)||"paragraph",n=Object.entries(this.editor.schema.nodes).map(([,s])=>s).filter(s=>(this.options.notAfter||[]).concat(r).includes(s.name));return[new Lt({key:t,appendTransaction:(s,i,o)=>{const{doc:l,tr:d,schema:u}=o,g=t.getState(o),f=l.content.size,m=u.nodes[r];if(!s.some(y=>y.getMeta(lfe))&&g)return d.insert(f,m.create())},state:{init:(s,i)=>{const o=i.tr.doc.lastChild;return!hM({node:o,types:n})},apply:(s,i)=>{if(!s.docChanged||s.getMeta("__uniqueIDTransaction"))return i;const o=s.doc.lastChild;return!hM({node:o,types:n})}}})]}}),dfe=er.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:e,dispatch:t})=>QH(e,t),redo:()=>({state:e,dispatch:t})=>YH(e,t)}},addProseMirrorPlugins(){return[nfe(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-Ñ":()=>this.editor.commands.undo(),"Shift-Mod-Ñ":()=>this.editor.commands.redo()}}}),ufe=er.create({name:"starterKit",addExtensions(){var e,t,r,n;const s=[];return this.options.bold!==!1&&s.push(Epe.configure(this.options.bold)),this.options.blockquote!==!1&&s.push(Ppe.configure(this.options.blockquote)),this.options.bulletList!==!1&&s.push(IH.configure(this.options.bulletList)),this.options.code!==!1&&s.push(Npe.configure(this.options.code)),this.options.codeBlock!==!1&&s.push(_pe.configure(this.options.codeBlock)),this.options.document!==!1&&s.push(Ipe.configure(this.options.document)),this.options.dropcursor!==!1&&s.push(afe.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&s.push(sfe.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&s.push(Bpe.configure(this.options.hardBreak)),this.options.heading!==!1&&s.push(Lpe.configure(this.options.heading)),this.options.undoRedo!==!1&&s.push(dfe.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&s.push(Wpe.configure(this.options.horizontalRule)),this.options.italic!==!1&&s.push(Upe.configure(this.options.italic)),this.options.listItem!==!1&&s.push(BH.configure(this.options.listItem)),this.options.listKeymap!==!1&&s.push(qH.configure((e=this.options)==null?void 0:e.listKeymap)),this.options.link!==!1&&s.push(_H.configure((t=this.options)==null?void 0:t.link)),this.options.orderedList!==!1&&s.push(GH.configure(this.options.orderedList)),this.options.paragraph!==!1&&s.push(Rge.configure(this.options.paragraph)),this.options.strike!==!1&&s.push(Ige.configure(this.options.strike)),this.options.text!==!1&&s.push(Bge.configure(this.options.text)),this.options.underline!==!1&&s.push(Lge.configure((r=this.options)==null?void 0:r.underline)),this.options.trailingNode!==!1&&s.push(cfe.configure((n=this.options)==null?void 0:n.trailingNode)),s}}),pfe=ufe,gfe=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,ffe=Tn.create({name:"image",addOptions(){return{inline:!1,allowBase64:!1,HTMLAttributes:{},resize:!1}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){return["img",Yt(this.options.HTMLAttributes,e)]},parseMarkdown:(e,t)=>t.createNode("image",{src:e.href,title:e.title,alt:e.text}),renderMarkdown:e=>{var t,r,n,s,i,o;const l=(r=(t=e.attrs)==null?void 0:t.src)!=null?r:"",d=(s=(n=e.attrs)==null?void 0:n.alt)!=null?s:"",u=(o=(i=e.attrs)==null?void 0:i.title)!=null?o:"";return u?``:``}
1022,addNodeView(){if(!this.options.resize||!this.options.resize.enabled||typeof document>"u")return null;const{directions:e,minWidth:t,minHeight:r,alwaysPreserveAspectRatio:n}=this.options.resize;return({node:s,getPos:i,HTMLAttributes:o,editor:l})=>{const d=document.createElement("img");Object.entries(o).forEach(([f,m])=>{if(m!=null)switch(f){case"width":case"height":break;default:d.setAttribute(f,m);break}}),d.src=o.src;const u=new gue({element:d,editor:l,node:s,getPos:i,onResize:(f,m)=>{d.style.width=`${f}px`,d.style.height=`${m}px`},onCommit:(f,m)=>{const y=i();y!==void 0&&this.editor.chain().setNodeSelection(y).updateAttributes(this.name,{width:f,height:m}).run()},onUpdate:(f,m,y)=>f.type===s.type,options:{directions:e,min:{width:t,height:r},preserveAspectRatio:n===!0}}),g=u.dom;return g.style.visibility="hidden",g.style.pointerEvents="none",d.onload=()=>{g.style.visibility="",g.style.pointerEvents=""},u}},addCommands(){return{setImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addInputRules(){return[yH({find:gfe,type:this.type,getAttributes:e=>{const[,,t,r,n]=e;return{src:r,alt:t,title:n}}})]}}),hfe=ffe,mfe=ofe;function en({onClick:e,active:t,title:r,children:n}){return a.jsx("button",{"data-loc":"client/src/components/RichTextEditor.tsx:27",type:"button",onClick:e,title:r,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"30px",height:"30px",borderRadius:"3px",border:"none",background:t?"#2c7df7":"transparent",color:t?"#fff":"rgba(255,255,255,0.7)",cursor:"pointer",transition:"all 0.15s",flexShrink:0},onMouseEnter:s=>{t||(s.currentTarget.style.background="rgba(255,255,255,0.1)")},onMouseLeave:s=>{t||(s.currentTarget.style.background="transparent")},children:n})}function lx(){return a.jsx("div",{"data-loc":"client/src/components/RichTextEditor.tsx:58",style:{width:"1px",height:"20px",background:"rgba(255,255,255,0.15)",margin:"0 4px",flexShrink:0}})}function xfe({content:e,onChange:t,placeholder:r="Start writing..."}){const n=vpe({extensions:[pfe,hfe.configure({inline:!1,allowBase64:!0}),xge.configure({openOnClick:!1,HTMLAttributes:{class:"editor-link"}}),mfe.configure({placeholder:r})],content:e,onUpdate:({editor:o})=>{t(o.getHTML())}});if(!n)return null;const s=()=>{const o=window.prompt("Enter image URL:");o&&n.chain().focus().setImage({src:o}).run()},i=()=>{const o=window.prompt("Enter URL:");o&&n.chain().focus().setLink({href:o}).run()};return a.jsxs("div",{"data-loc":"client/src/components/RichTextEditor.tsx:88",style:{border:"1px solid rgba(255,255,255,0.15)",borderRadius:"4px",overflow:"hidden"},children:[a.jsxs("div",{"data-loc":"client/src/components/RichTextEditor.tsx:90",style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"2px",padding:"6px 8px",background:"rgba(255,255,255,0.04)",borderBottom:"1px solid rgba(255,255,255,0.1)"},children:[a.jsx(en,{"data-loc":"client/src/components/RichTextEditor.tsx:99",onClick:()=>n.chain().focus().undo().run(),title:"Undo",children:a.jsx(hne,{"data-loc":"client/src/components/RichTextEditor.tsx:99",size:14})}),a.jsx(en,{"data-loc":"client/src/components/RichTextEditor.tsx:100",onClick:()=>n.chain().focus().redo().run(),title:"Redo",children:a.jsx(tne,{"data-loc":"client/src/components/RichTextEditor.tsx:100",size:14})}),a.jsx(lx,{"data-loc":"client/src/components/RichTextEditor.tsx:101"}),a.jsx(en,{"data-loc":"client/src/components/RichTextEditor.tsx:102",onClick:()=>n.chain().focus().toggleHeading({level:1}).run(),active:n.isActive("heading",{level:1}),title:"Heading 1",children:a.jsx(Rre,{"data-loc":"client/src/components/RichTextEditor.tsx:102",size:14})}),a.jsx(en,{"data-loc":"client/src/components/RichTextEditor.tsx:103",onClick:()=>n.chain().focus().toggleHeading({level:2}).run(),active:n.isActive("heading",{level:2}),title:"Heading 2",children:a.jsx(Dre,{"data-loc":"client/src/components/RichTextEditor.tsx:103",size:14})}),a.jsx(en,{"data-loc":"client/src/components/RichTextEditor.tsx:104",onClick:()=>n.chain().focus().toggleHeading({level:3}).run(),active:n.isActive("heading",{level:3}),title:"Heading 3",children:a.jsx(_re,{"data-loc":"client/src/components/RichTextEditor.tsx:104",size:14})}),a.jsx(lx,{"data-loc":"client/src/components/RichTextEditor.tsx:105"}),a.jsx(en,{"data-loc":"client/src/components/RichTextEditor.tsx:106",onClick:()=>n.chain().focus().toggleBold().run(),active:n.isActive("bold"),title:"Bold",children:a.jsx(yre,{"data-loc":"client/src/components/RichTextEditor.tsx:106",size:14})}),a.jsx(en,{"data-loc":"client/src/components/RichTextEditor.tsx:107",onClick:()=>n.chain().focus().toggleItalic().run(),active:n.isActive("italic"),title:"Italic",children:a.jsx(Bre,{"data-loc":"client/src/components/RichTextEditor.tsx:107",size:14})}),a.jsx(en,{"data-loc":"client/src/components/RichTextEditor.tsx:108",onClick:()=>n.chain().focus().toggleStrike().run(),active:n.isActive("strike"),title:"Str
1022ikethrough",children:a.jsx(dne,{"data-loc":"client/src/components/RichTextEditor.tsx:108",size:14})}),a.jsx(en,{"data-loc":"client/src/components/RichTextEditor.tsx:109",onClick:()=>n.chain().focus().toggleCode().run(),active:n.isActive("code"),title:"Inline code",children:a.jsx(FW,{"data-loc":"client/src/components/RichTextEditor.tsx:109",size:14})}),a.jsx(lx,{"data-loc":"client/src/components/RichTextEditor.tsx:110"}),a.jsx(en,{"data-loc":"client/src/components/RichTextEditor.tsx:111",onClick:()=>n.chain().focus().toggleBulletList().run(),active:n.isActive("bulletList"),title:"Bullet list",children:a.jsx($re,{"data-loc":"client/src/components/RichTextEditor.tsx:111",size:14})}),a.jsx(en,{"data-loc":"client/src/components/RichTextEditor.tsx:112",onClick:()=>n.chain().focus().toggleOrderedList().run(),active:n.isActive("orderedList"),title:"Numbered list",children:a.jsx(Wre,{"data-loc":"client/src/components/RichTextEditor.tsx:112",size:14})}),a.jsx(en,{"data-loc":"client/src/components/RichTextEditor.tsx:113",onClick:()=>n.chain().focus().toggleBlockquote().run(),active:n.isActive("blockquote"),title:"Blockquote",children:a.jsx(ene,{"data-loc":"client/src/components/RichTextEditor.tsx:113",size:14})}),a.jsx(en,{"data-loc":"client/src/components/RichTextEditor.tsx:114",onClick:()=>n.chain().focus().setHorizontalRule().run(),title:"Horizontal rule",children:a.jsx(Gre,{"data-loc":"client/src/components/RichTextEditor.tsx:114",size:14})}),a.jsx(lx,{"data-loc":"client/src/components/RichTextEditor.tsx:115"}),a.jsx(en,{"data-loc":"client/src/components/RichTextEditor.tsx:116",onClick:i,active:n.isActive("link"),title:"Add link",children:a.jsx(Lre,{"data-loc":"client/src/components/RichTextEditor.tsx:116",size:14})}),a.jsx(en,{"data-loc":"client/src/components/RichTextEditor.tsx:117",onClick:s,title:"Add image",children:a.jsx(Qg,{"data-loc":"client/src/components/RichTextEditor.tsx:117",size:14})})]}),a.jsx(SH,{"data-loc":"client/src/components/RichTextEditor.tsx:121",editor:n,style:{minHeight:"400px",padding:"1rem",background:"rgba(255,255,255,0.02)",color:"#fff",fontSize:"0.95rem",lineHeight:1.7,outline:"none"}}),a.jsx("style",{"data-loc":"client/src/components/RichTextEditor.tsx:134",children:` 1023 .tiptap { 1024 outline: none; 1025 min-height: 400px; 1026 } 1027 .tiptap p { margin-bottom: 1rem; } 1028 .tiptap h1 { font-size: 1.75rem; font-weight: 900; margin: 1.5rem 0 0.75rem; } 1029 .tiptap h2 { font-size: 1.4rem; font-weight: 700; margin: 1.5rem 0 0.75rem; } 1030 .tiptap h3 { font-size: 1.15rem; font-weight: 700; margin: 1.25rem 0 0.5rem; } 1031 .tiptap ul, .tiptap ol { padding-left: 1.5rem; margin-bottom: 1rem; } 1032 .tiptap li { margin-bottom: 0.3rem; } 1033 .tiptap blockquote { border-left: 3px solid #2c7df7; padding: 0.5rem 1rem; margin: 1rem 0; background: rgba(44,125,247,0.08); color: rgba(255,255,255,0.8); font-style: italic; } 1034 .tiptap code { background: rgba(255,255,255,0.1); padding: 0.1rem 0.4rem; border-radius: 3px; font-size: 0.85em; } 1035 .tiptap pre { background: rgba(0,0,0,0.4); padding: 1rem; border-radius: 4px; overflow-x: auto; margin-bottom: 1rem; } 1036 .tiptap pre code { background: none; padding: 0; } 1037 .tiptap hr { border: none; border-top: 1px solid rgba(255,255,255,0.15); margin: 1.5rem 0; } 1038 .tiptap img { max-width: 100%; border-radius: 4px; margin: 1rem 0; } 1039 .tiptap a, .editor-link { color: #2c7df7; text-decoration: underline; } 1040 .tiptap p.is-editor-empty:first-child::before { content: attr(data-placeholder); color: rgba(255,255,255,0.3); pointer-events: none; float: left; height: 0; } 1041 `})]})}function yfe(){const{user:e}=Wr(),[,t]=Sa(),r=ee.useUtils(),[n,s]=E.useState({title:"",slug:"",excerpt:"",content:"",featuredImageUrl:"",status:"draft",isFeatured:!1,seoTitle:"",seoDescription:""}),[i,o]=E.useState([]),[l,d]=E.useState(!1),[u,g]=E.useState(""),[f,m]=E.useState(!1),{data:y=[]}=ee.categories.all.useQuery(),S=P=>{const O=P.toLowerCase().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").slice(0,200);s(T=>({...T,title:P,slug:O}))},b=ee.posts.adminCreate.useMutation({onSuccess:()=>
1041{r.posts.adminList.invalidate(),Ee.success("Article saved!"),t("/admin/posts")},onError:P=>Ee.error(P.message||"Failed to save")}),v=(P,O)=>{if(P.preventDefault(),!n.title.trim()){Ee.error("Title is required");return}if(!n.slug.trim()){Ee.error("Slug is required");return}b.mutate({...n,status:O})};if(!e||e.role!=="admin")return a.jsx("div",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:59",className:"container py-16 text-center",children:a.jsx("p",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:59",style:{color:"rgba(255,255,255,0.5)"},children:"Access denied."})});const j=y.filter(P=>i.includes(P.id)),k=y.filter(P=>!i.includes(P.id)&&P.name.toLowerCase().includes(u.toLowerCase()));return a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:70",style:{background:"#000",minHeight:"100vh"},children:[a.jsx("div",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:72",style:{background:"#05152e",borderBottom:"1px solid rgba(255,255,255,0.1)",padding:"1rem 0"},children:a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:73",className:"container",style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:74",style:{display:"flex",alignItems:"center",gap:"0.75rem"},children:[a.jsx($,{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:75",href:"/admin/posts",style:{color:"rgba(255,255,255,0.4)",display:"flex"},children:a.jsx(Pn,{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:75",size:20})}),a.jsx("h1",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:76",style:{fontSize:"1.1rem",fontWeight:900,color:"#fff",margin:0},children:"New Article"})]}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:78",style:{display:"flex",gap:"0.75rem"},children:[a.jsxs("button",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:79",type:"button",onClick:()=>d(!l),style:{display:"flex",alignItems:"center",gap:"0.4rem",padding:"0.5rem 1rem",background:"transparent",border:"1px solid rgba(255,255,255,0.2)",borderRadius:"3px",color:"rgba(255,255,255,0.7)",fontSize:"0.75rem",fontWeight:700,cursor:"pointer",textTransform:"uppercase",letterSpacing:"0.08em"},children:[a.jsx($u,{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:81",size:13})," ",l?"Edit":"Preview"]}),a.jsxs("button",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:83",type:"button",onClick:P=>v(P,"draft"),disabled:b.isPending,style:{display:"flex",alignItems:"center",gap:"0.4rem",padding:"0.5rem 1rem",background:"transparent",border:"1px solid #2c7df7",borderRadius:"3px",color:"#2c7df7",fontSize:"0.75rem",fontWeight:700,cursor:"pointer",textTransform:"uppercase",letterSpacing:"0.08em"},children:[a.jsx(nh,{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:85",size:13})," Save Draft"]}),a.jsx("button",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:87",type:"button",onClick:P=>v(P,"publish"),disabled:b.isPending,style:{display:"flex",alignItems:"center",gap:"0.4rem",padding:"0.5rem 1.25rem",background:"#2c7df7",border:"none",borderRadius:"3px",color:"#fff",fontSize:"0.75rem",fontWeight:700,cursor:"pointer",textTransform:"uppercase",letterSpacing:"0.08em"},children:b.isPending?"Publishing...":"Publish"})]})]})}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:95",className:"container",style:{padding:"2rem 1.25rem",display:"grid",gridTemplateColumns:"1fr 280px",gap:"1.5rem",alignItems:"start"},children:[a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:97",style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[a.jsx("input",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:99",type:"text",value:n.title,onChange:P=>S(P.target.value),placeholder:"Article title...",style:{width:"100%",padding:"0.875rem 1rem",background:"rgba(255,255,255,0.04)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"4px",color:"#fff",fontSize:"1.5rem",fontWeight:900,outline:"none",fontFamily:"inherit"}}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:103",style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:104",style:{fontSize:"0.75rem",color:"rgba(255,255,255,0.4)",whiteSpace:"nowrap"},children:"URL slug:"}),a.jsx("input",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:105",type:"text",value:n.slug,onChange:P=>s(O=>({...O,slug:P.target.value.toLowerCase().replace(/[^a-z0-9-]/g,"-")})),style:{flex:1,padding:"0.4rem 0.75rem",background:"rgba(255,255,255,0.04)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"3px",color:"rgba(255,255,255,0.7)",fontSize:"0.8rem",outline:"none",fontFamily:"inherit"}})]}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:110",children:[a.jsx("label",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:111",style:{display:"block",fontSize:"0.7rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.4)",marginBottom:"0.5rem"},children:"Excerpt"}),a.jsx("textarea",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:112",value:n.excerpt,onChange:P=>s(O=>({...O,excerpt:P.target.value})),rows:3,placeholder:"Brief summary shown in article cards...",style:{width:"100%",padding:"0.75rem 1rem",background:"rgba(255,255,255,0.04)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"4px",color:"#fff",fontSize:"0.9rem",outline:"none",resize:"vertical",fontFamily:"inherit"}})]}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:117",children:[a.jsx("label",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:118",style:{display:"block",fontSize:"0.7rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.4)",marginBottom:"0.5rem"},children:"Article Content"}),l?a.jsx("div",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:120",className:"post-content",style:{padding:"1.5rem",background:"rgba(255,255,255,0.02)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"4px",minHeight:"400px"},dangerouslySetInnerHTML:{__html:n.content||"<p style='color:rgba(255,255,255,0.3)'>Nothing to preview yet...</p>"}}):a.jsx(xfe,{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:123",content:n.content,onChange:P=>s(O=>({...O,content:P})),placeholder:"Write your article here..."})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:129",style:{display:"flex",flexDirection:"column",gap:"1rem",position:"sticky",top:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:131",style:{padding:"1rem",background:"#05152e",borderRadius:"4px",border:"1px solid rgba(255,255,255,0.1)"},children:[a.jsx("label",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:132",style:{display:"block",fontSize:"0.7rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.5)",marginBottom:"0.75rem"},children:"Featured Image URL"}),a.jsx("input",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:133",type:"text",value:n.featuredImageUrl,onChange:P=>s(O=>({...O,featuredImageUrl:P.target.value})),placeholder:"https://...",style:{width:"100%",padding:"0.6rem 0.75rem",background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"3px",color:"#fff",fontSize:"0.8rem",outline:"none",fontFamily:"inherit"}}),n.featuredImageUrl&&a.jsx("img",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:136",src:n.featuredImageUrl,alt:"Preview",style:{width:"100%",height:"120px",objectFit:"cover",borderRadius:"3px",marginTop:"0.75rem"},onError:P=>P.currentTarget.style.display="none"})]}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:142",style:{padding:"1rem",background:"#05152e",borderRadius:"4px",border:"1px solid rgba(255,255,255,0.1)"},children:[a.jsx("label",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:143",style:{display:"block",fontSize:"0.7rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.5)",marginBottom:"0.75rem"},children:"Categories"}),j.length>0&&a.jsx("div",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:149",style:{display:"flex",flexWrap:"wrap",gap:"0.35rem",marginBottom:"0.75rem"},children:j.map(P=>a.jsxs("span",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:151",style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",padding:"0.2rem 0.5rem",background:"rgba(44,125,247,0.15)",border:"1px solid rgba(44,125,247,0.3)",borderRadius:"2px",fontSize:"0.7rem",fontWeight:700,color:"#2c7df7"},children:[a.jsx(tc,{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:152",size:9}),P.name,a.jsx("button",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:154",onClick:()=>o(O=>O.filter(T=>T!==P.id)),style:{background:"none",border:"none",color:"#2c7df7",cursor:"pointer",padding:0,display:"flex"},children:a.jsx(xr,{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:156",size:10})})]},P.id))}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:164",style:{position:"relative"},children:[a.jsx("input",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:165",type:"text",value:u,onChange:P=>{g(P.target.value),m(!0)},onFocus:()=>m(!0),placeholder:"Search and add categories...",style:{width:"100%",padding:"0.5rem 0.75rem",background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"3px",color:"#fff",fontSize:"0.8rem",outline:"none",fontFamily:"inherit"}}),f&&k.length>0&&a.jsx("div",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:174",style:{position:"absolute",top:"100%",left:0,right:0,background:"#05152e",border:"1px solid rgba(255,255,255,0.15)",borderRadius:"3px",zIndex:20,maxHeight:"180px",overflowY:"auto",marginTop:"2px",boxShadow:"0 8px 24px rgba(0,0,0,0.5)"},children:k.slice(0,20).map(P=>a.jsxs("button",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:176",onClick:()=>{o(O=>[...O,P.id]),g(""),m(!1)},style:{width:"100%",textAlign:"left",padding:"0.5rem 0.75rem",background:"none",border:"none",color:"rgba(255,255,255,0.8)",fontSize:"0.8rem",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"space-between",transition:"background 0.15s"},onMouseEnter:O=>O.currentTarget.style.background="rgba(44,125,247,0.1)",onMouseLeave:O=>O.currentTarget.style.background="none",children:[a.jsx("span",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:182",children:P.name}),a.jsx("span",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:183",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.3)"},children:P.postCount})]},P.id))})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:192",style:{padding:"1rem",background:"#05152e",borderRadius:"4px",border:"1px solid rgba(255,255,255,0.1)"},children:[a.jsx("label",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:193",style:{display:"block",fontSize:"0.7rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.5)",marginBottom:"0.75rem"},children:"SEO"}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:194",style:{marginBottom:"0.75rem"},children:[a.jsx("label",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:195",style:{display:"block",fontSize:"0.65rem",color:"rgba(255,255,255,0.4)",marginBottom:"0.35rem"},children:"SEO Title"}),a.jsx("input",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:196",type:"text",value:n.seoTitle,onChange:P=>s(O=>({...O,seoTitle:P.target.value})),placeholder:n.title||"Auto-filled from title",style:{width:"100%",padding:"0.5rem 0.75rem",background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"3px",color:"#fff",fontSize:"0.8rem",outline:"none",fontFamily:"inherit"}})]}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:199",children:[a.jsx("label",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:200",style:{display:"block",fontSize:"0.65rem",color:"rgba(255,255,255,0.4)",marginBottom:"0.35rem"},children:"Meta Description"}),a.jsx("textarea",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:201",rows:3,value:n.seoDescription,onChange:P=>s(O=>({...O,seoDescription:P.target.value})),placeholder:"Brief description for search engines...",style:{width:"100%",padding:"0.5rem 0.75rem",background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"3px",color:"#fff",fontSize:"0.8rem",outline:"none",resize:"none",fontFamily:"inherit"}})]})]}),a.jsx("div",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:207",style:{padding:"1rem",background:"#05152e",borderRadius:"4px",border:"1px solid rgba(255,255,255,0.1)"},children:a.jsxs("label",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:208",style:{display:"flex",alignItems:"center",gap:"0.5rem",cursor:"pointer"},children:[a.jsx("input",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:209",type:"checkbox",checked:n.isFeatured,onChange:P=>s(O=>({...O,isFeatured:P.target.checked})),style:{width:"16px",height:"16px",accentColor:"#2c7df7"}}),a.jsx("span",{"data-loc":"client/src/pages/admin/AdminPostNew.tsx:211",style:{fontSize:"0.8rem",color:"rgba(255,255,255,0.7)",fontWeight:600},children:"Mark as Featured"})]})})]})]})]})}function bfe(){const{user:e}=Wr(),{data:t=[],isLoading:r}=ee.categories.all.useQuery();return!e||e.role!=="admin"?a.jsx("div",{"data-loc":"client/src/pages/admin/AdminCategories.tsx:11",className:"container py-16 text-center",children:a.jsx("p",{"data-loc":"client/src/pages/admin/AdminCategories.tsx:11",className:"text-white/50",children:"Access denied."})}):a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminCategories.tsx:15",children:[a.jsx("div",{"data-loc":"client/src/pages/admin/AdminCategories.tsx:16",className:"py-8 border-b border-white/10",style:{background:"var(--xtz-navy)"},children:a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminCategories.tsx:17",className:"container flex items-center gap-3",children:[a.jsx($,{"data-loc":"client/src/pages/admin/AdminCategories.tsx:18",href:"/admin",className:"text-white/40 hover:text-white",children:a.jsx(Pn,{"data-loc":"client/src/pages/admin/AdminCategories.tsx:18",size:18})}),a.jsx("h1",{"data-loc":"client/src/pages/admin/AdminCategories.tsx:19",className:"text-xl font-black text-white",children:"Categories"}),a.jsxs("span",{"data-loc":"client/src/pages/admin/AdminCategories.tsx:20",className:"text-sm text-white/40 ml-2",children:["(",t.length,")"]})]})}),a.jsx("div",{"data-loc":"client/src/pages/admin/AdminCategories.tsx:23",className:"container py-6",children:r?a.jsx("div",{"data-loc":"client/src/pages/admin/AdminCategories.tsx:25",className:"flex flex-wrap gap-2",children:Array.from({length:20}).map((n,s)=>a.jsx("div",{"data-loc":"client/src/pages/admin/AdminCategories.tsx:25",className:"skeleton h-8 w-24 rounded"},s))}):a.jsx("div",{"data-loc":"client/src/pages/admin/AdminCategories.tsx:27",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3",children:t.map(n=>a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminCategories.tsx:29",className:"flex items-center justify-between p-3 rounded",style:{background:"var(--card-bg)",border:"1px solid var(--xtz-border)"},children:[a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminCategories.tsx:30",className:"flex items-center gap-2",children:[a.jsx(tc,{"data-loc":"client/src/pages/admin/AdminCategories.tsx:31",size:13,className:"text-blue-400"}),a.jsx("span",{"data-loc":"client/src/pages/admin/AdminCategories.tsx:32",className:"font-semibold text-white text-sm",children:n.name})]}),a.jsxs("span",{"data-loc":"client/src/pages/admin/AdminCategories.tsx:34",className:"text-xs text-white/30",children:[n.postCount," posts"]})]},n.id))})})]})}function vfe(){const{user:e}=Wr(),{data:t=[],isLoading:r}=ee.projects.adminList.useQuery();return!e||e.role!=="admin"?a.jsx("div",{"data-loc":"client/src/pages/admin/AdminProjects.tsx:11",className:"container py-16 text-center",children:a.jsx("p",{"data-loc":"client/src/pages/admin/AdminProjects.tsx:11",className:"text-white/50",children:"Access denied."})}):a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminProjects.tsx:15",children:[a.jsx("div",{"data-loc":"client/src/pages/admin/AdminProjects.tsx:16",className:"py-8 border-b border-white/10",style:{background:"var(--xtz-navy)"},children:a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminProjects.tsx:17",class
1041Name:"container flex items-center gap-3",children:[a.jsx($,{"data-loc":"client/src/pages/admin/AdminProjects.tsx:18",href:"/admin",className:"text-white/40 hover:text-white",children:a.jsx(Pn,{"data-loc":"client/src/pages/admin/AdminProjects.tsx:18",size:18})}),a.jsx("h1",{"data-loc":"client/src/pages/admin/AdminProjects.tsx:19",className:"text-xl font-black text-white",children:"Projects"}),a.jsxs("span",{"data-loc":"client/src/pages/admin/AdminProjects.tsx:20",className:"text-sm text-white/40 ml-2",children:["(",t.length,")"]})]})}),a.jsx("div",{"data-loc":"client/src/pages/admin/AdminProjects.tsx:23",className:"container py-6",children:r?a.jsx("div",{"data-loc":"client/src/pages/admin/AdminProjects.tsx:25",className:"space-y-2",children:Array.from({length:8}).map((n,s)=>a.jsx("div",{"data-loc":"client/src/pages/admin/AdminProjects.tsx:25",className:"skeleton h-12 rounded"},s))}):a.jsx("div",{"data-loc":"client/src/pages/admin/AdminProjects.tsx:27",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:t.map(n=>a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminProjects.tsx:29",className:"p-4 rounded",style:{background:"var(--card-bg)",border:"1px solid var(--xtz-border)"},children:[a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminProjects.tsx:30",className:"flex items-start justify-between gap-2",children:[a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminProjects.tsx:31",children:[n.category&&a.jsx("span",{"data-loc":"client/src/pages/admin/AdminProjects.tsx:32",className:"cat-tag mb-2 inline-flex",children:n.category}),a.jsx("h3",{"data-loc":"client/src/pages/admin/AdminProjects.tsx:33",className:"font-bold text-white text-sm",children:n.title}),a.jsx("p",{"data-loc":"client/src/pages/admin/AdminProjects.tsx:34",className:"text-xs text-white/30 mt-1",children:n.slug})]}),n.featuredImageUrl&&a.jsx("img",{"data-loc":"client/src/pages/admin/AdminProjects.tsx:36",src:n.featuredImageUrl,alt:"",className:"w-12 h-10 object-cover rounded shrink-0"})]}),a.jsx("div",{"data-loc":"client/src/pages/admin/AdminProjects.tsx:38",className:"flex gap-2 mt-3",children:a.jsxs($,{"data-loc":"client/src/pages/admin/AdminProjects.tsx:39",href:`/project/${n.slug}`,className:"text-xs text-blue-400 hover:underline flex items-center gap-1",children:[a.jsx(ve,{"data-loc":"client/src/pages/admin/AdminProjects.tsx:39",size:11})," View"]})})]},n.id))})})]})}function Sfe(e){return e?new Date(e).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"}):""}const jfe={pending:"bg-yellow-500/15 text-yellow-400",reviewed:"bg-blue-500/15 text-blue-400",approved:"bg-green-500/15 text-green-400",rejected:"bg-red-500/15 text-red-400"};function wfe(){const{user:e}=Wr(),t=ee.useUtils(),{data:r=[],isLoading:n}=ee.submissions.list.useQuery(),s=ee.submissions.updateStatus.useMutation({onSuccess:()=>{t.submissions.list.invalidate(),Ee.success("Status updated")}});if(!e||e.role!=="admin")return a.jsx("div",{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:29",className:"container py-16 text-center",children:a.jsx("p",{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:29",className:"text-white/50",children:"Access denied."})});const i=r.filter(o=>o.status==="pending").length;return a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:35",children:[a.jsx("div",{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:36",className:"py-8 border-b border-white/10",style:{background:"var(--xtz-navy)"},children:a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:37",className:"container flex items-center gap-3",children:[a.jsx($,{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:38",href:"/admin",className:"text-white/40 hover:text-white",children:a.jsx(Pn,{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:38",size:18})}),a.jsx("h1",{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:39",className:"text-xl font-black text-white",children:"Article Submissions"}),i>0&&a.jsxs("span",{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:41",className:"text-xs font-bold px-2 py-0.5 rounded-full text-white ml-1",style:{background:"var(--xtz-blue)"},children:[i," pending"]})]})}),a.jsx("div",{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:48",className:"container py-6",children:n?a.jsx("div",{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:50",className:"space-y-3",children:Array.from({length:5}).map((o,l)=>a.jsx("div",{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:50",className:"skeleton h-24 rounded"},l))}):r.length===0?a.jsx("div",{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:52",className:"text-center py-16",children:a.jsx("p",{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:52",className:"text-white/40",children:"No submissions yet."})}):a.jsx("div",{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:54",className:"space-y-4",children:r.map(o=>a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:56",className:"p-5 rounded",style:{background:"var(--card-bg)",border:"1px solid var(--xtz-border)"},children:[a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:57",className:"flex items-start justify-between gap-4 flex-wrap",children:[a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:58",className:"flex-1 min-w-0",children:[a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:59",className:"flex items-center gap-2 flex-wrap mb-2",children:[a.jsx("span",{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:60",className:`text-xs font-bold px-2 py-0.5 rounded ${jfe[o.status]}`,children:o.status.toUpperCase()}),a.jsx("span",{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:63",className:"text-xs text-white/30",children:Sfe(o.createdAt)})]}),a.jsx("h3",{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:65",className:"font-bold text-white",children:o.articleTitle||"Untitled"}),a.jsxs("p",{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:66",className:"text-sm text-white/50 mt-1",children:[o.firstName," ",o.lastName,o.email?` â ${o.email}`:""]}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:70",className:"flex flex-wrap gap-3 mt-3",children:[o.articleFileUrl&&a.jsxs("a",{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:72",href:o.articleFileUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 text-xs text-blue-400 hover:underline",children:[a.jsx(s0,{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:73",size:12})," Article File"]}),o.bannerImageUrl&&a.jsxs("a",{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:77",href:o.bannerImageUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 text-xs text-blue-400 hover:underline",children:[a.jsx(Qg,{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:78",size:12})," Banner Image"]}),o.image2Url&&a.jsxs("a",{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:82",href:o.image2Url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 text-xs text-blue-400 hover:underline",children:[a.jsx(Qg,{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:83",size:12})," Additional Image"]})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:89",className:"flex items-center gap-2 shrink-0",children:[a.jsx("button",{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:90",onClick:()=>s.mutate({id:o.id,status:"reviewed"}),className:"p-2 rounded hover:bg-blue-500/10 text-white/40 hover:text-blue-400 transition-colors",title:"Mark as reviewed",children:a.jsx($u,{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:95",size:14})}),a.jsx("button",{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:97",onClick:()=>s.mutate({id:o.id,status:"approved"}),className:"p-2 rounded hover:bg-green-500/10 text-white/40 hover:text-green-400 transition-colors",title:"Ap
1041prove",children:a.jsx(yc,{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:102",size:14})}),a.jsx("button",{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:104",onClick:()=>s.mutate({id:o.id,status:"rejected"}),className:"p-2 rounded hover:bg-red-500/10 text-white/40 hover:text-red-400 transition-colors",title:"Reject",children:a.jsx(xr,{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:109",size:14})})]})]}),o.adminNotes&&a.jsxs("p",{"data-loc":"client/src/pages/admin/AdminSubmissions.tsx:114",className:"text-xs text-white/40 mt-3 pt-3 border-t border-white/8",children:["Notes: ",o.adminNotes]})]},o.id))})})]})}const kfe={pending:"bg-amber-400/15 text-amber-300",reviewed:"bg-sky-400/15 text-sky-300",approved:"bg-emerald-400/15 text-emerald-300",rejected:"bg-rose-400/15 text-rose-300"},qv={pending:"Pending",reviewed:"Reviewed",approved:"Approved",rejected:"Rejected"};function Pfe(e){return e?new Date(e).toLocaleString("en-GB",{dateStyle:"medium",timeStyle:"short"}):"â"}function Tfe(){const{user:e,loading:t}=Wr(),r=ee.useUtils(),{data:n=[],isLoading:s,isError:i}=ee.artProjectSubmissions.list.useQuery(void 0,{enabled:e?.role==="admin"}),[o,l]=E.useState("pending"),[d,u]=E.useState("newest"),[g,f]=E.useState(""),[m,y]=E.useState([]),[S,b]=E.useState({}),v=ee.artProjectSubmissions.updateStatus.useMutation({onSuccess:async()=>{await r.artProjectSubmissions.list.invalidate(),Ee.success("Submission status updated")},onError:()=>Ee.error("The submission could not be updated. Please try again.")}),j=E.useMemo(()=>{const A=g.trim().toLowerCase();return n.filter(N=>{const M=o==="all"||N.status===o,B=`${N.projectName} ${N.submitterName} ${N.submitterEmail} ${N.submitterType} ${N.projectType}`.toLowerCase();return M&&(!A||B.includes(A))}).sort((N,M)=>{const B=new Date(N.createdAt).getTime(),R=new Date(M.createdAt).getTime();return d==="newest"?R-B:B-R})},[g,d,o,n]),k=n.filter(A=>A.status==="pending").length,P=j.map(A=>A.id),O=P.length>0&&P.every(A=>m.includes(A)),T=(A,N)=>{v.mutate({id:A,status:N,notes:S[A]?.trim()||void 0})},C=async A=>{const N=m.filter(M=>n.some(B=>B.id===M));if(N.length)try{await Promise.all(N.map(M=>v.mutateAsync({id:M,status:A,notes:S[M]?.trim()||void 0}))),y([])}catch{}};return t?a.jsx("div",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:78",className:"container py-16 text-center",children:a.jsx("div",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:78",className:"skeleton h-8 w-56 mx-auto"})}):!e||e.role!=="admin"?a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:79",className:"container py-16 text-center",children:[a.jsx("h1",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:79",className:"text-2xl font-black text-white",children:"Access denied"}),a.jsx("p",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:79",className:"text-white/50 mt-3",children:"This review queue is available to XTZ.News administrators only."}),a.jsx($,{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:79",href:"/",className:"btn-primary inline-flex mt-6",children:"Back to home"})]}):a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:81",children:[a.jsx("header",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:82",className:"py-8 border-b border-white/10",style:{background:"var(--xtz-navy)"},children:a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:83",className:"container flex items-center gap-3",children:[a.jsx($,{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:84",href:"/admin","aria-label":"Back to dashboard",className:"text-white/50 hover:text-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-400 rounded",children:a.jsx(Pn,{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:84",size:18})}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:85",className:"flex-1 min-w-0",children:[a.jsx("p",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:85",className:"text-xs font-bold tracking-widest uppercase text-pink-300 mb-1",children:"Editorial queue"}),a.jsx("h1",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:85",className:"text-xl font-black text-white",children:"Art on Tezos submissions"})]}),a.jsxs("span",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:86",className:"text-xs font-bold px-2.5 py-1 rounded-full bg-amber-400/15 text-amber-300",children:[k," pending"]})]})}),a.jsxs("main",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:90",className:"container py-6",children:[a.jsx("div",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:91",className:"mb-5 p-4 rounded-lg border border-pink-300/20 bg-pink-300/5 text-sm text-white/65 leading-relaxed",children:"Every entry has been submitted for editorial review. Approving a submission changes its queue status only; it does not create or publish a directory profile automatically."}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:92",className:"grid grid-cols-1 lg:grid-cols-[minmax(0,1fr)_auto_auto] gap-3 mb-4",children:[a.jsxs("label",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:93",className:"relative",children:[a.jsx("span",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:93",className:"sr-only",children:"Search art project submissions"}),a.jsx(ft,{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:93",size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-white/40"}),a.jsx("input",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:93",value:g,onChange:A=>f(A.target.value),placeholder:"Search project, contact, or collection group",className:"w-full min-h-10 rounded border border-white/15 bg-white/5 pl-9 pr-3 text-sm text-white placeholder:text-white/35 focus:outline-none focus:border-pink-300"})]}),a.jsxs("label",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:94",className:"text-xs text-white/55",children:["Status",a.jsxs("select",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:94",value:o,onChange:A=>l(A.target.value),className:"block w-full mt-1 min-h-10 rounded border border-white/15 bg-[#09152d] px-3 text-sm text-white",children:[a.jsx("option",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:94",value:"all",children:"All statuses"}
1041),Object.keys(qv).map(A=>a.jsx("option",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:94",value:A,children:qv[A]},A))]})]}),a.jsxs("label",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:95",className:"text-xs text-white/55",children:["Sort",a.jsxs("select",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:95",value:d,onChange:A=>u(A.target.value),className:"block w-full mt-1 min-h-10 rounded border border-white/15 bg-[#09152d] px-3 text-sm text-white",children:[a.jsx("option",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:95",value:"newest",children:"Newest first"}),a.jsx("option",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:95",value:"oldest",children:"Oldest first"})]})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:97",className:"flex flex-wrap items-center justify-between gap-3 mb-5",children:[a.jsxs("label",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:97",className:"flex items-center gap-2 text-xs text-white/60 cursor-pointer",children:[a.jsx("input",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:97",type:"checkbox",checked:O,onChange:()=>y(O?m.filter(A=>!P.includes(A)):Array.from(new Set([...m,...P]))),className:"accent-pink-300"})," Select visible (",m.length,")"]}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:97",className:"flex flex-wrap gap-2",children:[a.jsx("button",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:97",type:"button",disabled:!m.length||v.isPending,onClick:()=>C("reviewed"),className:"min-h-9 px-3 rounded border border-sky-300/30 text-sky-300 text-xs font-bold disabled:opacity-40",children:"Mark reviewed"}),a.jsx("button",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:97",type:"button",disabled:!m.length||v.isPending,onClick:()=>C("approved"),className:"min-h-9 px-3 rounded border border-emerald-300/30 text-emerald-300 text-xs font-bold disabled:opacity-40",children:"Approve selected"}),a.jsx("button",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:97",type:"button",disabled:!m.length||v.isPending,onClick:()=>C("rejected"),className:"min-h-9 px-3 rounded border border-rose-300/30 text-rose-300 text-xs font-bold disabled:opacity-40",children:"Reject selected"})]})]}),s?a.jsx("div",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:98",className:"space-y-3",children:Array.from({length:4}).map((A,N)=>a.jsx("div",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:98",className:"skeleton h-48 rounded"},N))}):i?a.jsx("div",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:98",className:"rounded border border-rose-300/30 p-6 text-rose-200",children:"The review queue could not be loaded. Refresh the page and try again."}):j.length===0?a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:98",className:"rounded border border-white/10 p-12 text-center",children:[a.jsx(Do,{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:98",className:"mx-auto text-pink-300 mb-3"}),a.jsx("p",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:98",className:"text-white/65",children:"No Art on Tezos submissions match this view."})]}):a.jsx("div",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:98",className:"space-y-4",children:j.map(A=>a.jsx("article",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:98",className:"p-5 rounded-lg border border-white/10 bg-white/[0.03]",children:a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:98",className:"flex items-start gap-3",children:[a.jsx("input",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:98","aria-label":`Select ${A.projectName}`,type:"checkbox",checked:m.includes(A.id),onChange:()=>y(N=>N.includes(A.id)?N.filter(M=>M!==A.id):[...N,A.id]),className:"mt-1 accent-pink-300"}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:98",className:"min-w-0 flex-1",children:[a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:98",className:"flex flex-wrap gap-2 items-center",children:[a.jsx("span",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:98",className:`text-[0.65rem] px-2 py-0.5 rounded font-black uppercase tracking-wider ${kfe[A.status]}`,children:qv[A.status]}),a.jsxs("span",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:98",className:"text-xs text-white/35",children:["Submitted ",Pfe(A.createdAt)]}),a.jsx("span",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:98",className:"text-xs text-pink-200/75 capitalize",children:A.projectType.replace("_"," ")})]}),a.jsx("h2",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:98",className:"mt-2 text-lg font-black text-white",children:A.projectName}),a.jsxs("p",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:98",className:"mt-1 text-sm text-white/65",children:[A.submitterName," · ",A.submitterType," · ",a.jsx("a",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:98",href:`mailto:${A.submitterEmail}`,className:"text-blue-300 hover:underline",children:A.submitterEmail})]}),a.jsxs("a",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:98",href:A.websiteUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 mt-2 text-sm text-blue-300 hover:underline",children:["Open submitted website ",a.jsx(ve,{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:98",size:13})]}),a.jsx("p",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:98",className:"mt-3 whitespace-pre-wrap text-sm leading-6 text-white/75",children:A.description}),a.jsxs("label",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:98",className:"block mt-4 text-xs font-bold text-white/55",children:["Editorial note",a.jsx("textarea",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:98",value:S[A.id]??A.adminNotes??"",onChange:N=>b(M=>({...M,[A.id]:N.target.value})),maxLength:2e3,rows:2,placeholder:"Optional internal note saved with the status action",className:"mt-1 block w-full rounded border border-white/15 bg-black/20 p-2.5 text-sm text-white placeholder:text-white/30 focus:outline-none focus:border-pink-300"})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:98",className:"flex flex-col gap-2 shrink-0",children:[a.jsxs("button",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:98",type:"button",onClick:()=>T(A.id,"reviewed"),disabled:v.isPending,className:"inline-flex justify-center items-center gap-1 min-h-9 px-3 rounded border border-sky-300/30 text-sky-300 text-xs font-bold disabled:opacity-40",children:[a.jsx($u,{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:98",size:14})," Review"]}),a.jsxs("button",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:98",type:"button",onClick:()=>T(A.id,"approved"),disabled:v.isPending,className:"inline-flex justify-center items-center gap-1 min-h-9 px-3 rounded border border-emerald-300/30 text-emerald-300 text-xs font-bold disabled:opacity-40",children:[a.jsx(yc,{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:98",size:14})," Approve"]}),a.jsxs("button",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:98",type:"button",onClick:()=>T(A.id,"rejected"),disabled:v.isPending,className:"inline-flex justify-center items-center gap-1 min-h-9 px-3 rounded border border-rose-300/30 text-rose-300 text-xs font-bold disabled:opacity-40",children:[a.jsx(xr,{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:98",size:14})," Reject"]})]})]})},A.id))}),v.isPending&&a.jsxs("p",{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:99",role:"status",className:"fixed bottom-5 right-5 rounded bg-[#0b1830] border border-white/15 px-4 py-3 text-sm text-white shadow-xl",children:[a.jsx(Va,{"data-loc":"client/src/pages/admin/AdminArtProjectSubmissions.tsx:99",className:"inline mr-2 animate-spin",size:15}),"Updating review queueâ¦"]})]})]})}function mM(e){return e?new Date(e).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"}):""}function Afe(){const{user:e}=Wr(),{data:t=[],isLoading:r}=ee.newsletter.list.useQuery(),n=()=>{const o=[["Email","Name","Status","Subscribed At"],...t.map(g=>[g.email,g.name??"",g.status,mM(g.createdAt)])].map(g=>g.map(f=>`"${f}"`).join(",")).join(` 1042`),l=new Blob([o],{type:"text/csv"}),d=URL.createObjectURL(l),u=document.createElement("a");u.href=d,u.download=`xtz-news-subscribers-${new Date().toISOString().slice(0,10)}.csv`,u.click(),URL.revokeObjectURL(d)};if(!e||e.role!=="admin")return a.jsx("div",{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:31",className:"container py-16 text-center",children:a.jsx("p",{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:31",style:{color:"rgba(255,255,255,0.5)"},children:"Access denied."})});const s=t.filter(i=>i.status==="active").length;return a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:37",style:{background:"#000",minHeight:"100vh"},children:[a.jsx("div",{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:39",style:{background:"#05152e",borderBottom:"1px solid rgba(255,255,255,0.1)",padding:"1.5rem 0"},children:a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:40",className:"container",style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:41",style:{display:"flex",alignItems:"center",gap:"0.75rem"},children:[a.jsx($,{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:42",href:"/admin",style:{color:"rgba(255,255,255,0.4)",display:"flex"},children:a.jsx(Pn,{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:42",size:20})}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:43",children:[a.jsx("h1",{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:44",style:{fontSize:"1.1rem",fontWeight:900,color:"#fff",margin:0},children:"Newsletter Subscribers"}),a.jsxs("p",{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:45",style:{fontSize:"0.75rem",color:"rgba(255,255,255,0.4)",margin:0},children:[s," active · ",t.length," total"]})]})]}),a.jsxs("button",{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:50",onClick:n,disabled:t.length===0,style:{display:"flex",alignItems:"center",gap:"0.4rem",padding:"0.6rem 1.25rem",background:"#2c7df7",border:"none",borderRadius:"3px",color:"#fff",fontSize:"0.75rem",fontWeight:700,cursor:"pointer",textTransform:"uppercase",letterSpacing:"0.08em",opacity:t.length===0?.5:1},children:[a.jsx(my,{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:55",size:14})," Export CSV"]})]})}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:60",className:"container",style:{padding:"2rem 1.25rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:62",style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"1rem",marginBottom:"2rem"},children:[{label:"Total Subscribers",value:t.length,icon:a.jsx(su,{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:64",size:20})},{label:"Active",value:s,icon:a.jsx(di,{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:65",size:20})},{label:"Unsubscribed",value:t.length-s,icon:a.jsx(di,{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:66",size:20})}].map(i=>a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:68",style:{padding:"1.25rem",background:"#05152e",borderRadius:"4px",border:"1px solid rgba(255,255,255,0.1)"},children:[a.jsx("div",{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:69",style:{color:"#2c7df7",marginBottom:"0.5rem"},children:i.icon}),a.jsx("p",{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:70",style:{fontSize:"1.75rem",fontWeight:900,color:"#fff",margin:"0 0 0.25rem"},children:i.value}),a.jsx("p",{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:71",style:{fontSize:"0.72rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"rgba(255,255,255,0.4)",margin:0},children:i.label})]},i.label))}),r?a.jsx("div",{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:78",style:{display:"flex",flexDirection:"column",gap:"0.5rem"},children:Array.from({length:5}).map((i,o)=>a.jsx("div",{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:79",className:"skeleton",style:{height:"48px",borderRadius:"4px"}},o))}):t.length===0?a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:82",style:{textAlign:"center",padding:"4rem 0"},children:[a.jsx(di,{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:83",size:40,style:{color:"rgba(255,255,255,0.2)",marginBottom:"1rem"}}),a.jsx("p",{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:84",style:{color:"rgba(255,255,255,0.4)"},children:"No subscribers yet. Share the newsletter signup to start collecting emails."})]}):a.jsx("div",{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:87",style:{overflow:"hidden",borderRadius:"4px",border:"1px solid rgba(255,255,255,0.1)"},children:a.jsxs("table",{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:88",style:{width:"100%",borderCollapse:"collapse"},children:[a.jsx("thead",{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:89",children:a.jsx("tr",{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:90",style:{background:"#05152e",borderBottom:"1px solid rgba(255,255,255,0.1)"},children:["Email","Name","Status","Subscribed"].map(i=>a.jsx("th",{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:92",style:{padding:"0.75rem 1rem",textAlign:"left",fontSize:"0.65rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.4)"},children:i},i))})}),a.jsx("tbody",{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:96",children:t.map((i,o)=>a.jsxs("tr",{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:98",style:{borderBottom:"1px solid rgba(255,255,255,0.06)",background:o%2===0?"transparent":"rgba(255,255,255,0.02)"},children:[a.jsx("td",{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:99",style:{padding:"0.75rem 1rem",fontSize:"0.85rem",color:"#fff",fontWeight:500},children:i.email}),a.jsx("td",{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:100",style:{padding:"0.75rem 1rem",fontSize:"0.85rem",color:"rgba(255,255,255,0.6)"},children:i.name||"â"}),a.jsx("td",{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:101",style:{padding:"0.75rem 1rem"},children:a.jsx("span",{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:102",style:{fontSize:"0.65rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",padding:"0.2rem 0.5rem",borderRadius:"2px",background:i.status==="active"?"rgba(34,197,94,0.15)":"rgba(239,68,68,0.15)",color:i.status==="active"?"#4ade80":"#f87171"},children:i.status})}),a.jsx("td",{"data-loc":"client/src/pages/admin/AdminSubscribers.tsx:111",style:{padding:"0.75rem 1rem",fontSize:"0.8rem",color:"rgba(255,255,255,0.4)",whiteSpace:"nowrap"},children:mM(i.createdAt)})]},i.id))})]})})]})]})}function zfe(){const{user:e}=Wr(),{data:t,isLoading:r}=ee.settings.getBreakingNews.useQuery(),[n,s]=E.useState(""),[i,o]=E.useState(""),[l,d]=E.useState(!1),[u,g]=E.useState(!1);t&&!u&&(s(t.text||""),o(t.url||""),d(t.active||!1),g(!0));const f=ee.settings.setBreakingNews.useMutation({onSuccess:()=>Ee.success("Breaking news banner updated"),onError:j=>Ee.error("Failed to update: "+j.message)}),m=()=>{f.mutate({text:n,url:i,active:l})},[y,S]=E.useState(null),b=ee.audio.getOrGenerate.useMutation(),v=async()=>
1042{if(!(y?.running||!window.confirm("This will generate George ElevenLabs audio for all articles without audio. This may take several hours and will use ElevenLabs credits. Continue?"))){S({done:0,total:0,running:!0});try{const T=((await(await fetch("/api/trpc/posts.adminList?input="+encodeURIComponent(JSON.stringify({json:{page:1,limit:2e3}})))).json())?.result?.data?.json?.posts||[]).filter(A=>!A.audioUrl);S({done:0,total:T.length,running:!0}),Ee.info(`Starting batch audio generation for ${T.length} articles...`);let C=0;for(const A of T){try{await b.mutateAsync({postId:A.id}),C++,S({done:C,total:T.length,running:!0})}catch(N){console.error("Failed for post",A.id,N)}await new Promise(N=>setTimeout(N,500))}S({done:C,total:T.length,running:!1}),Ee.success(`Batch complete! Generated audio for ${C} articles.`)}catch{S(P=>P?{...P,running:!1}:null),Ee.error("Batch generation failed.")}}};return r?a.jsx("div",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:70",style:{background:"#000",minHeight:"100vh"}}):!e||e.role!=="admin"?a.jsx("div",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:73",style:{background:"#000",minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsx("p",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:74",style:{color:"rgba(255,255,255,0.4)"},children:"Admin access required."})}):a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:80",style:{background:"#000",minHeight:"100vh"},children:[a.jsx("div",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:82",style:{background:"#05152e",borderBottom:"1px solid rgba(255,255,255,0.1)",padding:"1.5rem 0"},children:a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:83",className:"container",children:[a.jsx("div",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:84",style:{display:"flex",alignItems:"center",gap:"1rem",marginBottom:"0.5rem"},children:a.jsxs($,{"data-loc":"client/src/pages/admin/AdminSettings.tsx:85",href:"/admin",style:{color:"rgba(255,255,255,0.4)",textDecoration:"none",display:"flex",alignItems:"center",gap:"0.3rem",fontSize:"0.8rem"},children:[a.jsx(ya,{"data-loc":"client/src/pages/admin/AdminSettings.tsx:86",size:14})," Admin"]})}),a.jsx("h1",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:89",style:{margin:0,fontSize:"1.5rem",fontWeight:900,color:"#fff"},children:"Site Settings"})]})}),a.jsx("div",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:93",className:"container",style:{padding:"2rem 1.25rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:94",style:{maxWidth:"700px"},children:[a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:97",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"8px",padding:"1.75rem",marginBottom:"1.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:98",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginBottom:"1.25rem"},children:[a.jsx(ko,{"data-loc":"client/src/pages/admin/AdminSettings.tsx:99",size:16,style:{color:"#fbbf24"}}),a.jsx("h2",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:100",style:{margin:0,fontSize:"1rem",fontWeight:800,color:"#fff"},children:"Breaking News Banner"}),a.jsx("span",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:101",style:{marginLeft:"auto",fontSize:"0.65rem",fontWeight:700,padding:"2px 8px",borderRadius:"3px",background:l?"rgba(34,197,94,0.15)":"rgba(255,255,255,0.06)",color:l?"#22c55e":"rgba(255,255,255,0.4)",border:`1px solid ${l?"rgba(34,197,94,0.3)":"rgba(255,255,255,0.12)"}`},children:l?"LIVE":"HIDDEN"})]}),a.jsx("p",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:106",style:{margin:"0 0 1.25rem",fontSize:"0.82rem",color:"rgba(255,255,255,0.5)",lineHeight:1.5},children:"Displays a dismissible amber banner above the navigation for breaking Tezos news. Dismissed per-session by visitors."}),a.jsx("div",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:111",style:{display:"flex",alignItems:"center",gap:"0.75rem",marginBottom:"1rem"},children:a.jsxs("button",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:112",onClick:()=>d(!l),style:{display:"flex",alignItems:"center",gap:"0.5rem",padding:"0.5rem 1rem",borderRadius:"4px",cursor:"pointer",background:l?"rgba(34,197,94,0.15)":"rgba(255,255,255,0.06)",border:`1px solid ${l?"rgba(34,197,94,0.4)":"rgba(255,255,255,0.15)"}`,color:l?"#22c55e":"rgba(255,255,255,0.5)",fontSize:"0.8rem",fontWeight:700,transition:"all 0.2s"},children:[l?a.jsx($u,{"data-loc":"client/src/pages/admin/AdminSettings.tsx:124",size:14}):a.jsx(qW,{"data-loc":"client/src/pages/admin/AdminSettings.tsx:124",size:14}),l?"Banner is ON":"Banner is OFF"]}
1042)}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:130",style:{marginBottom:"1rem"},children:[a.jsx("label",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:131",style:{display:"block",fontSize:"0.72rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"rgba(255,255,255,0.4)",marginBottom:"0.4rem"},children:"Banner Text *"}),a.jsx("input",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:134",type:"text",value:n,onChange:j=>s(j.target.value),placeholder:"e.g. Tezos Paris upgrade is now live â protocol upgrade complete",maxLength:200,style:{width:"100%",padding:"0.65rem 0.875rem",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"4px",color:"#fff",fontSize:"0.88rem",outline:"none",fontFamily:"inherit",boxSizing:"border-box"},onFocus:j=>j.currentTarget.style.borderColor="#fbbf24",onBlur:j=>j.currentTarget.style.borderColor="rgba(255,255,255,0.12)"}),a.jsxs("p",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:144",style:{margin:"0.3rem 0 0",fontSize:"0.65rem",color:"rgba(255,255,255,0.25)"},children:[n.length,"/200 characters"]})]}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:148",style:{marginBottom:"1.5rem"},children:[a.jsx("label",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:149",style:{display:"block",fontSize:"0.72rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"rgba(255,255,255,0.4)",marginBottom:"0.4rem"},children:"Link URL (optional)"}),a.jsx("input",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:152",type:"text",value:i,onChange:j=>o(j.target.value),placeholder:"e.g. /paris-upgrade-tezos-protocol or https://tezos.com/...",style:{width:"100%",padding:"0.65rem 0.875rem",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"4px",color:"#fff",fontSize:"0.88rem",outline:"none",fontFamily:"inherit",boxSizing:"border-box"},onFocus:j=>j.currentTarget.style.borderColor="#2c7df7",onBlur:j=>j.currentTarget.style.borderColor="rgba(255,255,255,0.12)"}),a.jsx("p",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:161",style:{margin:"0.3rem 0 0",fontSize:"0.65rem",color:"rgba(255,255,255,0.25)"},children:"Clicking the banner text will navigate to this URL. Leave blank for no link."})]}),n&&a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:166",style:{marginBottom:"1.5rem",background:"linear-gradient(90deg, #1a0a00 0%, #2d1500 50%, #1a0a00 100%)",border:"1px solid rgba(251,191,36,0.3)",borderRadius:"6px",padding:"0.6rem 1rem"},children:[a.jsx("p",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:167",style:{margin:"0 0 0.3rem",fontSize:"0.6rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.3)"},children:"Preview"}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:168",style:{display:"flex",alignItems:"center",gap:"0.6rem"},children:[a.jsx(ko,{"data-loc":"client/src/pages/admin/AdminSettings.tsx:169",size:13,style:{color:"#fbbf24",flexShrink:0}}),a.jsx("span",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:170",style:{fontSize:"0.6rem",fontWeight:900,textTransform:"uppercase",letterSpacing:"0.12em",color:"#fbbf24",background:"rgba(251,191,36,0.15)",padding:"2px 7px",borderRadius:"2px",border:"1px solid rgba(251,191,36,0.3)",whiteSpace:"nowrap"},children:"Breaking"}),a.jsx("p",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:171",style:{margin:0,fontSize:"0.82rem",fontWeight:600,color:"#fff",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n}),i&&a.jsx("span",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:172",style:{fontSize:"0.75rem",fontWeight:700,color:"#fbbf24",whiteSpace:"nowrap"},children:"Read more â"})]})]}),a.jsxs("button",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:178",onClick:m,disabled:f.isPending||!n.trim(),style:{display:"inline-flex",alignItems:"center",gap:"0.5rem",padding:"0.7rem 1.5rem",background:"#2c7df7",border:"none",borderRadius:"4px",color:"#fff",fontSize:"0.82rem",fontWeight:700,cursor:f.isPending||!n.trim()?"not-allowed":"pointer",opacity:f.isPending||!n.trim()?.6:1,transition:"background 0.2s"},onMouseEnter:j=>{!f.isPending&&n.trim()&&(j.currentTarget.style.background="#1a6ae0")},onMouseLeave:j=>{j.currentTarget.style.background="#2c7df7"},children:[a.jsx(nh,{"data-loc":"client/src/pages/admin/AdminSettings.tsx:192",size:14}),f.isPending?"Savingâ¦":"Save Banner Settings"]})]}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:198",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"8px",padding:"1.5rem",marginBottom:"1.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:199",style:{display:"flex",alignItems:"center",gap:"0.75rem",marginBottom:"1.25rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:200",style:{width:"32px",height:"32px",borderRadius:"6px",background:"rgba(34,197,94,0.15)",border:"1px solid rgba(34,197,94,0.3)",display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsx(Fx,{"data-loc":"client/src/pages/admin/AdminSettings.tsx:201",size:16,style:{color:"#22c55e"}})}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:203",children:[a.jsx("h2",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:204",style:{margin:0,fontSize:"1rem",fontWeight:800,color:"#fff"},children:"Audio & Podcast"}),a.jsx("p",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:205",style:{margin:0,fontSize:"0.75rem",color:"rgba(255,255,255,0.4)"},children:"ElevenLabs George voice narration for all articles"})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:210",style:{marginBottom:"1.5rem",padding:"1rem",background:"rgba(34,197,94,0.05)",border:"1px solid rgba(34,197,94,0.15)",borderRadius:"6px"},children:[a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:211",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginBottom:"0.5rem"},children:[a.jsx(uA,{"data-loc":"client/src/pages/admin/AdminSettings.tsx:212",size:14,style:{color:"#22c55e"}}),a.jsx("span",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:213",style:{fontSize:"0.78rem",fontWeight:700,color:"#22c55e"},children:"Podcast RSS Feed"})]}),a.jsx("p",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:215",style:{margin:"0 0 0.75rem",fontSize:"0.78rem",color:"rgba(255,255,255,0.5)"},children:"Submit this URL to Apple Podcasts, Spotify, and Google Podcasts:"}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:216",style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[a.jsx("code",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:217",style:{flex:1,padding:"0.5rem 0.75rem",background:"rgba(0,0,0,0.3)",borderRadius:"4px",fontSize:"0.8rem",color:"#22c55e",fontFamily:"monospace",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:"https://xtz.news/podcast.rss"}),a.jsx("button",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:218",onClick:()=>{navigator.clipboard.writeText("https://xtz.news/podcast.rss"),Ee.success("Copied!")},style:{padding:"0.5rem 0.875rem",background:"rgba(34,197,94,0.15)",border:"1px solid rgba(34,197,94,0.3)",borderRadius:"4px",color:"#22c55e",fontSize:"0.75rem",fontWeight:700,cursor:"pointer",whiteSpace:"nowrap"},children:"Copy URL"}),a.jsx("a",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:220",href:"https://xtz.news/podcast.rss",target:"_blank",rel:"noopener noreferrer",style:{padding:"0.5rem 0.875rem",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"4px",color:"rgba(255,255,255,0.6)",fontSize:"0.75rem",fontWeight:700,textDecoration:"none",whiteSpace:"nowrap"},children:"Preview"})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:226",style:{padding:"1rem",background:"rgba(255,165,0,0.05)",border:"1px solid rgba(255,165,0,0.15)",borderRadius:"6px"},children:[a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:227",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginBottom:"0.5rem"},children:[a.jsx(Fx,{"data-loc":"client/src/pages/admin/AdminSettings.tsx:228",size:14,style:{color:"#ffa500"}}),a.jsx("span",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:229",style:{fontSize:"0.78rem",fontWeight:700,color:"#ffa500"},children:"Batch Audio Generation"})]}),a.jsx("p",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:231",style:{margin:"0 0 0.875rem",fontSize:"0.78rem",color:"rgba(255,255,255,0.5)"},children:"Generate George ElevenLabs narration for all articles that don't have audio yet. This runs in the browser and may take several hours for 1,400+ articles. You can close the tab â audio already generated is cached."}),y&&a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:235",style:{marginBottom:"0.875rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:236",style:{display:"flex",justifyContent:"space-between",marginBottom:"0.3rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:237",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.5)"},children:y.running?"Generating...":"Complete"}),a.jsxs("span",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:238",style:{fontSize:"0.72rem",fontWeight:700,color:"#ffa500"},children:[y.done," / ",y.total]})]}),a.jsx("div",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:240",style:{height:"6px",background:"rgba(255,255,255,0.1)",borderRadius:"3px",overflow:"hidden"},children:a.jsx("div",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:241",style:{height:"100%",width:y.total>0?`${y.done/y.total*100}%`:"0%",background:"#ffa500",borderRadius:"3px",transition:"width 0.3s"}})})]}),a.jsxs("button",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:245",onClick:v,disabled:y?.running,style:{display:"inline-flex",alignItems:"center",gap:"0.5rem",padding:"0.65rem 1.25rem",background:y?.running?"rgba(255,165,0,0.1)":"rgba(255,165,0,0.15)",border:"1px solid rgba(255,165,0,0.3)",borderRadius:"4px",color:y?.running?"rgba(255,165,0,0.5)":"#ffa500",fontSize:"0.8rem",fontWeight:700,cursor:y?.running?"not-allowed":"pointer"},children:[a.jsx(Fx,{"data-loc":"client/src/pages/admin/AdminSettings.tsx:250",size:14}),y?.running?`Generating ${y.done}/${y.total}...`:"Generate Audio for All Articles"]})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:257",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"8px",padding:"1.25rem"},children:[a.jsx("h3",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:258",style:{margin:"0 0 0.875rem",fontSize:"0.82rem",fontWeight:800,color:"rgba(255,255,255,0.5)",textTransform:"uppercase",letterSpacing:"0.08em"},children:"Admin Navigation"}),a.jsx("div",{"data-loc":"client/src/pages/admin/AdminSettings.tsx:259",style:{display:"flex",flexWrap:"wrap",gap:"0.5rem"},children:[{href:"/admin",label:"Dashboard"},{href:"/admin/posts",label:"Posts"},{href:"/admin/categories",label:"Categories"},{href:"/admin/projects",label:"Projects"},{href:"/admin/submissions",label:"Submissions"},{href:"/admin/subscribers",label:"Subscribers"}].map(({href:j,label:k})=>a.jsx($,{"data-loc":"client/src/pages/admin/AdminSettings.tsx:268",href:j,style:{padding:"0.4rem 0.875rem",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"4px",color:"rgba(255,255,255,0.6)",textDecoration:"none",fontSize:"0.78rem",fontWeight:600,transition:"all 0.15s"},onMouseEnter:P=>{P.currentTarget.style.background="rgba(44,125,247,0.1)",P.currentTarget.style.color="#2c7df7"},onMouseLeave:P=>{P.currentTarget.style.background="rgba(255,255,255,0.06)",P.currentTarget.style.color="rgba(255,255,255,0.6)"},children:k},j))})]})]})})]})}function Cfe(){return a.jsxs("div",{"data-loc":"client/src/pages/NotFound.tsx:6",className:"container py-24 text-center",children:[a.jsx("h1",{"data-loc":"client/src/pages/NotFound.tsx:7",className:"text-8xl font-black mb-4",style:{color:"var(--xtz-blue)"},children:"404"}),a.jsx("h2",{"data-loc":"client/src/pages/NotFound.tsx:8",className:"text-2xl font-bold text-white mb-4",children:"Page Not Found"}),a.jsx("p",{"data-loc":"client/src/pages/NotFound.tsx:9",className:"text-white/50 mb-8 max-w-sm mx-auto",children:"The page you're looking for doesn't exist or has been moved."}),a.jsxs($,{"data-loc":"client/src/pages/NotFound.tsx:12",href:"/",className:"btn-primary",children:[a.jsx(Qt,{"data-loc":"client/src/pages/NotFound.tsx:13",size:14})," Back to Home"]})]})}const Efe={wallet:{eyebrow:"Tezos wallet help",title:"Understand an address before you act",description:"Use this read-only inspector for public on-chain information, then explore the account-prefix guide or current testnet-stage tz5 research.",links:[{title:"Tezos address-prefix glossary",copy:"Learn what tz1âtz5, KT1, and sr1 identify.",href:"/glossary/tezos-prefixes",icon:"book"}
1042,{title:"tz5 wallet guide",copy:"Plain-English post-quantum account context, with testnet-stage safeguards.",href:"/guides/tz5-wallet",icon:"shield"},{title:"Tezos Explorer",copy:"Search blocks, operations, bakers, and public chain activity.",href:"/explorer",icon:"compass"}]},staking:{eyebrow:"Tezos staking help",title:"Explore rewards with the right context",description:"Compare public baker information here, then inspect a wallet address or review the rewards history tool before making your own decision.",links:[{title:"Tezos rewards history",copy:"Review baker and delegator reward history by address.",href:"/tools/rewards",icon:"compass"},{title:"Tezos Wallet Inspector",copy:"Check public delegation and account activity without connecting a wallet.",href:"/tools/wallet",icon:"wallet"},{title:"Tezos address-prefix glossary",copy:"Understand the account and contract prefixes you see on-chain.",href:"/glossary/tezos-prefixes",icon:"book"}]},prices:{eyebrow:"Tezos market context",title:"Go beyond the price screen",description:"Use live token data alongside source-led Tezos news and practical tools. Market information is not personalised financial advice.",links:[{title:"Tezos staking calculator",copy:"Explore public baker and rewards data in a separate tool.",href:"/staking",icon:"compass"},{title:"Tezos Explorer",copy:"Check public network activity, blocks, transactions, and bakers.",href:"/explorer",icon:"compass"},{title:"Tezos Wallet Inspector",copy:"Understand a public address, tokens, delegation, and activity.",href:"/tools/wallet",icon:"wallet"}]},explorer:{eyebrow:"Tezos explorer help",title:"Know what you are looking at",description:"Search public chain data here, then use the address glossary or wallet inspector for a clearer explanation of Tezos account information.",links:[{title:"Tezos Wallet Inspector",copy:"View public balances, delegation, tokens, and activity for an address.",href:"/tools/wallet",icon:"wallet"},{title:"Tezos address-prefix glossary",copy:"A plain-English reference for tz1âtz5, KT1, and sr1.",href:"/glossary/tezos-prefixes",icon:"book"},{title:"Tezos staking calculator",copy:"Review baker and reward context from the staking tool.",href:"/staking",icon:"shield"}]}},Ofe={wallet:Yg,book:Pi,compass:lA,shield:Un};function Ly({context:e}){const t=Efe[e];return a.jsxs("section",{"data-loc":"client/src/components/TezosResourceLinks.tsx:66","aria-labelledby":`tezos-learning-${e}`,style:{marginTop:"2rem",padding:"1.25rem",borderRadius:"14px",border:"1px solid rgba(44,125,247,0.22)",background:"linear-gradient(135deg, rgba(5,21,46,0.96), rgba(13,42,94,0.62))"},children:[a.jsx("p",{"data-loc":"client/src/components/TezosResourceLinks.tsx:67",style:{margin:0,color:"#68a4ff",fontSize:"0.68rem",fontWeight:800,letterSpacing:"0.12em",textTransform:"uppercase"},children:t.eyebrow}),a.jsx("h2",{"data-loc":"client/src/components/TezosResourceLinks.tsx:68",id:`tezos-learning-${e}`,style:{margin:"0.35rem 0 0",color:"#fff",fontSize:"1.25rem",fontWeight:900},children:t.title}),a.jsx("p",{"data-loc":"client/src/components/TezosResourceLinks.tsx:69",style:{margin:"0.5rem 0 1rem",color:"rgba(255,255,255,0.62)",fontSize:"0.88rem",lineHeight:1.6,maxWidth:"72ch"},children:t.description}),a.jsx("div",{"data-loc":"client/src/components/TezosResourceLinks.tsx:70",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(190px, 1fr))",gap:"0.7rem"},children:t.links.map(r=>{const n=Ofe[r.icon];return a.jsxs($,{"data-loc":"client/src/components/TezosResourceLinks.tsx:74",href:r.href,"aria-label":`${r.title}: ${r.copy}`,style:{display:"block",padding:"0.9rem",borderRadius:"10px",border:"1px solid rgba(255,255,255,0.1)",background:"rgba(0,0,0,0.2)",color:"inherit",textDecoration:"none"},children:[a.jsx(n,{"data-loc":"client/src/components/TezosResourceLinks.tsx:75",size:17,style:{color:"#68a4ff",marginBottom:"0.55rem"},"aria-hidden":"true"}),a.jsxs("span",{"data-loc":"client/src/components/TezosResourceLinks.tsx:76",style:{display:"flex",alignItems:"center",gap:"0.3rem",color:"#fff",fontWeight:800,fontSize:"0.84rem"},children:[r.title," ",a.jsx(_e,{"data-loc":"client/src/components/TezosResourceLinks.tsx:76",size:13,"aria-hidden":"true"})]}),a.jsx("span",{"data-loc":"client/src/components/TezosResourceLinks.tsx:77",style:{display:"block",marginTop:"0.35rem",color:"rgba(255,255,255,0.5)",fontSize:"0.74rem",lineHeight:1.45},children:r.copy})]},r.href)})})]})}var Uv,xM;function An(){if(xM)return Uv;xM=1;var e=Array.isArray;return Uv=e,Uv}var Gv,yM;function ZH(){if(yM)return Gv;yM=1;var e=typeof Rm=="object"&&Rm&&Rm.Object===Object&&Rm;return Gv=e,Gv}var Vv,bM;function zs(){if(bM)return Vv;bM=1;var e=ZH(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Vv=r,Vv}var Xv,vM;function lh(){if(vM)return Xv;vM=1;var e=zs(),t=e.Symbol;return Xv=t,Xv}var Kv,SM;function Mfe(){if(SM)return Kv;SM=1;var e=lh(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,s=e?e.toStringTag:void 0;function i(o){var l=r.call(o,s),d=o[s];try{o[s]=void 0;var u=!0}catch{}var g=n.call(o);return u&&(l?o[s]=d:delete o[s]),g}return Kv=i,Kv}var Qv,jM;function Nfe(){if(jM)return Qv;jM=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Qv=r,Qv}var Yv,wM;function Ai(){if(wM)return Yv;wM=1;
vendor: 4,378 bytes, line 1042
1042var e=lh(),t=Mfe(),r=Nfe(),n="[object Null]",s="[object Undefined]",i=e?e.toStringTag:void 0;function o(l){return l==null?l===void 0?s:n:i&&i in Object(l)?t(l):r(l)}return Yv=o,Yv}var Zv,kM;function zi(){if(kM)return Zv;kM=1;function e(t){return t!=null&&typeof t=="object"}return Zv=e,Zv}var Jv,PM;function qu(){if(PM)return Jv;PM=1;var e=Ai(),t=zi(),r="[object Symbol]";function n(s){return typeof s=="symbol"||t(s)&&e(s)==r}return Jv=n,Jv}var eS,TM;function s7(){if(TM)return eS;TM=1;var e=An(),t=qu(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function s(i,o){if(e(i))return!1;var l=typeof i;return l=="number"||l=="symbol"||l=="boolean"||i==null||t(i)?!0:n.test(i)||!r.test(i)||o!=null&&i in Object(o)}return eS=s,eS}var tS,AM;function qo(){if(AM)return tS;AM=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return tS=e,tS}var rS,zM;function i7(){if(zM)return rS;zM=1;var e=Ai(),t=qo(),r="[object AsyncFunction]",n="[object Function]",s="[object GeneratorFunction]",i="[object Proxy]";function o(l){if(!t(l))return!1;var d=e(l);return d==n||d==s||d==r||d==i}return rS=o,rS}var nS,CM;function Rfe(){if(CM)return nS;CM=1;var e=zs(),t=e["__core-js_shared__"];return nS=t,nS}var aS,EM;function Dfe(){if(EM)return aS;EM=1;var e=Rfe(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return aS=r,aS}var sS,OM;function JH(){if(OM)return sS;OM=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return sS=r,sS}var iS,MM;function _fe(){if(MM)return iS;MM=1;var e=i7(),t=Dfe(),r=qo(),n=JH(),s=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,o=Function.prototype,l=Object.prototype,d=o.toString,u=l.hasOwnProperty,g=RegExp("^"+d.call(u).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(m){if(!r(m)||t(m))return!1;var y=e(m)?g:i;return y.test(n(m))}return iS=f,iS}var oS,NM;function Ife(){if(NM)return oS;NM=1;function e(t,r){return t?.[r]}return oS=e,oS}var lS,RM;function Pc(){if(RM)return lS;RM=1;var e=_fe(),t=Ife();function r(n,s){var i=t(n,s);return e(i)?i:void 0}return lS=r,lS}var cS,DM;function Wy(){if(DM)return cS;DM=1;var e=Pc(),t=e(Object,"create");return cS=t,cS}var dS,_M;function Bfe(){if(_M)return dS;_M=1;var e=Wy();function t(){this.__data__=e?e(null):{},this.size=0}return dS=t,dS}var uS,IM;function Lfe(){if(IM)return uS;IM=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return uS=e,uS}var pS,BM;function Wfe(){if(BM)return pS;BM=1;var e=Wy(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function s(i){var o=this.__data__;if(e){var l=o[i];return l===t?void 0:l}return n.call(o,i)?o[i]:void 0}return pS=s,pS}var gS,LM;function $fe(){if(LM)return gS;LM=1;var e=Wy(),t=Object.prototype,r=t.hasOwnProperty;function n(s){var i=this.__data__;return e?i[s]!==void 0:r.call(i,s)}return gS=n,gS}var fS,WM;function Ffe(){if(WM)return fS;WM=1;var e=Wy(),t="__lodash_hash_undefined__";function r(n,s){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=e&&s===void 0?t:s,this}return fS=r,fS}var hS,$M;function Hfe(){if($M)return hS;$M=1;var e=Bfe(),t=Lfe(),r=Wfe(),n=$fe(),s=Ffe();function i(o){var l=-1,d=o==null?0:o.length;for(this.clear();++l<d;){var u=o[l];this.set(u[0],u[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=s,hS=i,hS}var mS,FM;function qfe(){if(FM)return mS;FM=1;function e(){this.__data__=[],this.size=0}return mS=e,mS}var xS,HM;function o7(){if(HM)return xS;HM=1;function e(t,r){return t===r||t!==t&&r!==r}return xS=e,xS}var yS,qM;function $y(){if(qM)return yS;qM=1;var e=o7();function t(r,n){for(var s=r.length;s--;)if(e(r[s][0],n))return s;return-1}return yS=t,yS}var bS,UM;function Ufe(){if(UM)return bS;UM=1;var e=$y(),t=Array.prototype,r=t.splice;function n(s){var i=this.__data__,o=e(i,s);if(o<0)return!1;var l=i.length-1;return o==l?i.pop():r.call(i,o,1),--this.size,!0}return bS=n,bS}var vS,GM;function Gfe(){if(GM)return vS;GM=1;var e=$y();function t(r){var n=this.__data__,s=e(n,r);return s<0?void 0:n[s][1]}return vS=t,vS}var SS,VM;function Vfe(){if(VM)return SS;VM=1;var e=$y();function t(r){return e(this.__data__,r)>-1}return SS=t,SS}var jS,XM;
vendor: 9,807 bytes, lines 1042-1050
1042function Xfe(){if(XM)return jS;XM=1;var e=$y();function t(r,n){var s=this.__data__,i=e(s,r);return i<0?(++this.size,s.push([r,n])):s[i][1]=n,this}return jS=t,jS}var wS,KM;function Fy(){if(KM)return wS;KM=1;var e=qfe(),t=Ufe(),r=Gfe(),n=Vfe(),s=Xfe();function i(o){var l=-1,d=o==null?0:o.length;for(this.clear();++l<d;){var u=o[l];this.set(u[0],u[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=s,wS=i,wS}var kS,QM;function l7(){if(QM)return kS;QM=1;var e=Pc(),t=zs(),r=e(t,"Map");return kS=r,kS}var PS,YM;function Kfe(){if(YM)return PS;YM=1;var e=Hfe(),t=Fy(),r=l7();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return PS=n,PS}var TS,ZM;function Qfe(){if(ZM)return TS;ZM=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return TS=e,TS}var AS,JM;function Hy(){if(JM)return AS;JM=1;var e=Qfe();function t(r,n){var s=r.__data__;return e(n)?s[typeof n=="string"?"string":"hash"]:s.map}return AS=t,AS}var zS,e9;function Yfe(){if(e9)return zS;e9=1;var e=Hy();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return zS=t,zS}var CS,t9;function Zfe(){if(t9)return CS;t9=1;var e=Hy();function t(r){return e(this,r).get(r)}return CS=t,CS}var ES,r9;function Jfe(){if(r9)return ES;r9=1;var e=Hy();function t(r){return e(this,r).has(r)}return ES=t,ES}var OS,n9;function ehe(){if(n9)return OS;n9=1;var e=Hy();function t(r,n){var s=e(this,r),i=s.size;return s.set(r,n),this.size+=s.size==i?0:1,this}return OS=t,OS}var MS,a9;function c7(){if(a9)return MS;a9=1;var e=Kfe(),t=Yfe(),r=Zfe(),n=Jfe(),s=ehe();function i(o){var l=-1,d=o==null?0:o.length;for(this.clear();++l<d;){var u=o[l];this.set(u[0],u[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=s,MS=i,MS}var NS,s9;function eq(){if(s9)return NS;s9=1;var e=c7(),t="Expected a function";function r(n,s){if(typeof n!="function"||s!=null&&typeof s!="function")throw new TypeError(t);var i=function(){var o=arguments,l=s?s.apply(this,o):o[0],d=i.cache;if(d.has(l))return d.get(l);var u=n.apply(this,o);return i.cache=d.set(l,u)||d,u};return i.cache=new(r.Cache||e),i}return r.Cache=e,NS=r,NS}var RS,i9;function the(){if(i9)return RS;i9=1;var e=eq(),t=500;function r(n){var s=e(n,function(o){return i.size===t&&i.clear(),o}),i=s.cache;return s}return RS=r,RS}var DS,o9;function rhe(){if(o9)return DS;o9=1;var e=the(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(s){var i=[];return s.charCodeAt(0)===46&&i.push(""),s.replace(t,function(o,l,d,u){i.push(d?u.replace(r,"$1"):l||o)}),i});return DS=n,DS}var _S,l9;function d7(){if(l9)return _S;l9=1;function e(t,r){for(var n=-1,s=t==null?0:t.length,i=Array(s);++n<s;)i[n]=r(t[n],n,t);return i}return _S=e,_S}var IS,c9;function nhe(){if(c9)return IS;c9=1;var e=lh(),t=d7(),r=An(),n=qu(),s=e?e.prototype:void 0,i=s?s.toString:void 0;function o(l){if(typeof l=="string")return l;if(r(l))return t(l,o)+"";if(n(l))return i?i.call(l):"";var d=l+"";return d=="0"&&1/l==-1/0?"-0":d}return IS=o,IS}var BS,d9;function tq(){if(d9)return BS;d9=1;var e=nhe();function t(r){return r==null?"":e(r)}return BS=t,BS}var LS,u9;function rq(){if(u9)return LS;u9=1;var e=An(),t=s7(),r=rhe(),n=tq();function s(i,o){return e(i)?i:t(i,o)?[i]:r(n(i))}return LS=s,LS}var WS,p9;function qy(){if(p9)return WS;p9=1;var e=qu();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return WS=t,WS}var $S,g9;function u7(){if(g9)return $S;g9=1;var e=rq(),t=qy();function r(n,s){s=e(s,n);for(var i=0,o=s.length;n!=null&&i<o;)n=n[t(s[i++])];return i&&i==o?n:void 0}return $S=r,$S}var FS,f9;function nq(){if(f9)return FS;f9=1;var e=u7();function t(r,n,s){var i=r==null?void 0:e(r,n);return i===void 0?s:i}return FS=t,FS}var ahe=nq();const ma=jt(ahe);var HS,h9;function she(){if(h9)return HS;h9=1;function e(t){return t==null}return HS=e,HS}var ihe=she();const et=jt(ihe);var qS,m9;function ohe(){if(m9)return qS;m9=1;var e=Ai(),t=An(),r=zi(),n="[object String]";function s(i){return typeof i=="string"||!t(i)&&r(i)&&e(i)==n}return qS=s,qS}var lhe=ohe();const oc=jt(lhe);var che=i7();const Qe=jt(che);var dhe=qo();const Uu=jt(dhe);var US={exports:{}},pt={};/** 1043 * @license React 1044 * react-is.production.min.js 1045 * 1046 * Copyright (c) Facebook, Inc. and its affiliates. 1047 * 1048 * This source code is licensed under the MIT license found in the 1049 * LICENSE file in the root directory of this source tree. 1050 */var x9;function uhe(){if(x9)return pt;x9=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),l=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),S;S=Symbol.for("react.module.reference");function b(v){if(typeof v=="object"&&v!==null){var j=v.$$typeof;switch(j){case e:switch(v=v.type,v){case r:case s:case n:case u:case g:return v;default:switch(v=v&&v.$$typeof,v){case l:case o:case d:case m:case f:case i:return v;default:return j}}case t:return j}}}return pt.ContextConsumer=o,pt.ContextProvider=i,pt.Element=e,pt.ForwardRef=d,pt.Fragment=r,pt.Lazy=m,pt.Memo=f,pt.Portal=t,pt.Profiler=s,pt.StrictMode=n,pt.Suspense=u,pt.SuspenseList=g,pt.isAsyncMode=function(){return!1},pt.isConcurrentMode=function(){return!1},pt.isContextConsumer=function(v){return b(v)===o},pt.isContextProvider=function(v){return b(v)===i},pt.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},pt.isForwardRef=function(v){return b(v)===d},pt.isFragment=function(v){return b(v)===r},pt.isLazy=function(v){return b(v)===m},pt.isMemo=function(v){return b(v)===f},pt.isPortal=function(v){return b(v)===t},pt.isProfiler=function(v){return b(v)===s},pt.isStrictMode=function(v){return b(v)===n},pt.isSuspense=function(v){return b(v)===u},pt.isSuspenseList=function(v){return b(v)===g},pt.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===s||v===n||v===u||v===g||v===y||typeof v=="object"&&v!==null&&(v.$$typeof===m||v.$$typeof===f||v.$$typeof===i||v.$$typeof===o||v.$$typeof===d||v.$$typeof===S||v.getModuleId!==void 0)},pt.typeOf=b,pt}var y9;function phe(){return y9||(y9=1,US.exports=uhe()),US.exports}var ghe=phe(),GS,b9;function aq(){if(b9)return GS;b9=1;var e=Ai(),t=zi(),r="[object Number]";function n(s){return typeof s=="number"||t(s)&&e(s)==r}return GS=n,GS}var VS,v9;function fhe(){if(v9)return VS;v9=1;var e=aq();function t(r){return e(r)&&r!=+r}return VS=t,VS}var hhe=fhe();const ch=jt(hhe);var mhe=aq();const xhe=jt(mhe);var La=function(t){return t===0?0:t>0?1:-1},Wl=function(t){return oc(t)&&t.indexOf("%")===t.length-1},ye=function(t){return xhe(t)&&!ch(t)},yhe=function(t){return et(t)},mr=function(t){return ye(t)||oc(t)},bhe=0,dh=function(t){var r=++bhe;return"".concat(t||"").concat(r)},lc=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!ye(t)&&!oc(t))return n;var i;if(Wl(t)){var o=t.indexOf("%");i=r*parseFloat(t.slice(0,o))/100}else i=+t;return ch(i)&&(i=n),s&&i>r&&(i=r),i},xo=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},vhe=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},s=0;s<r;s++)if(!n[t[s]])n[t[s]]=!0;else return!0;return!1},Da=function(t,r){return ye(t)&&ye(r)?function(n){return t+n*(r-t)}:function(){return r}};function r5(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):ma(n,t))===r})}var She=function(t,r){return ye(t)&&ye(r)?t-r:oc(t)&&oc(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Gd(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function mT(e){"@babel/helpers - typeof";return mT=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},mT(e)}var jhe=["viewBox","children"],whe=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRen
1050dering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],S9=["points","pathLength"],XS={svg:jhe,polygon:S9,polyline:S9},p7=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDrag
1050Capture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],n5=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(E.isValidElement(t)&&(n=t.props),!Uu(n))return null;var s={};return Object.keys(n).forEach(function(i){p7.includes(i)&&(s[i]=r||function(o){return n[i](n,o)})}),s},khe=function(t,r,n){return function(s){return t(r,n,s),null}},a5=function(t,r,n){if(!Uu(t)||mT(t)!=="object")return null;var s=null;return Object.keys(t).forEach(function(i){var o=t[i];p7.includes(i)&&typeof o=="function"&&(s||(s={}),s[i]=khe(o,r,n))}),s},Phe=["children"],The=["children"];function j9(e,t){if(e==null)return{};var r=Ahe(e,t),n,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)n=i[s],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ahe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function xT(e){"@babel/helpers - typeof";return xT=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},xT(e)}var w9={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},gi=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},k9=null,KS=null,g7=function e(t){if(t===k9&&Array.isArray(KS))return KS;var r=[];return E.Children.forEach(t,function(n){et(n)||(ghe.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),KS=r,k9=t,r};function xa(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(s){return gi(s)}):n=[gi(t)],g7(e).forEach(function(s){var i=ma(s,"type.displayName")||ma(s,"type.name");n.indexOf(i)!==-1&&r.push(s)}),r}function Bn(e,t){var r=xa(e,t);return r&&r[0]}var P9=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,s=r.height;return!(!ye(n)||n<=0||!ye(s)||s<=0)},zhe=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],Che=function(t){return t&&t.type&&oc(t.type)&&zhe.indexOf(t.type)>=0},Ehe=function(t){return t&&xT(t)==="object"&&"clipDot"in t},Ohe=function(t,r,n,s){var i,o=(i=XS?.[s])!==null&&i!==void 0?i:[];return r.startsWith("data-")||!Qe(t)&&(s&&o.includes(r)||whe.includes(r))||n&&p7.includes(r)},at=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var s=t;if(E.isValidElement(t)&&(s=t.props),!Uu(s))return null;var i={};
vendor: 4,362 bytes, line 1050
1050return Object.keys(s).forEach(function(o){var l;Ohe((l=s)===null||l===void 0?void 0:l[o],o,r,n)&&(i[o]=s[o])}),i},yT=function e(t,r){if(t===r)return!0;var n=E.Children.count(t);if(n!==E.Children.count(r))return!1;if(n===0)return!0;if(n===1)return T9(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var s=0;s<n;s++){var i=t[s],o=r[s];if(Array.isArray(i)||Array.isArray(o)){if(!e(i,o))return!1}else if(!T9(i,o))return!1}return!0},T9=function(t,r){if(et(t)&&et(r))return!0;if(!et(t)&&!et(r)){var n=t.props||{},s=n.children,i=j9(n,Phe),o=r.props||{},l=o.children,d=j9(o,The);return s&&l?Gd(i,d)&&yT(s,l):!s&&!l?Gd(i,d):!1}return!1},A9=function(t,r){var n=[],s={};return g7(t).forEach(function(i,o){if(Che(i))n.push(i);else if(i){var l=gi(i.type),d=r[l]||{},u=d.handler,g=d.once;if(u&&(!g||!s[l])){var f=u(i,l,o);n.push(f),s[l]=!0}}}),n},Mhe=function(t){var r=t&&t.type;return r&&w9[r]?w9[r]:null},Nhe=function(t,r){return g7(r).indexOf(t)},Rhe=["children","width","height","viewBox","className","style","title","desc"];function bT(){return bT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bT.apply(this,arguments)}function Dhe(e,t){if(e==null)return{};var r=_he(e,t),n,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)n=i[s],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _he(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function vT(e){var t=e.children,r=e.width,n=e.height,s=e.viewBox,i=e.className,o=e.style,l=e.title,d=e.desc,u=Dhe(e,Rhe),g=s||{width:r,height:n,x:0,y:0},f=st("recharts-surface",i);return G.createElement("svg",bT({},at(u,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(g.x," ").concat(g.y," ").concat(g.width," ").concat(g.height)}),G.createElement("title",null,l),G.createElement("desc",null,d),t)}var Ihe=["children","className"];function ST(){return ST=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ST.apply(this,arguments)}function Bhe(e,t){if(e==null)return{};var r=Lhe(e,t),n,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)n=i[s],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Lhe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Kt=G.forwardRef(function(e,t){var r=e.children,n=e.className,s=Bhe(e,Ihe),i=st("recharts-layer",n);return G.createElement("g",ST({className:i},at(s,!0),{ref:t}),r)}),fi=function(t,r){for(var n=arguments.length,s=new Array(n>2?n-2:0),i=2;i<n;i++)s[i-2]=arguments[i]},QS,z9;function Whe(){if(z9)return QS;z9=1;function e(t,r,n){var s=-1,i=t.length;r<0&&(r=-r>i?0:i+r),n=n>i?i:n,n<0&&(n+=i),i=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(i);++s<i;)o[s]=t[s+r];return o}return QS=e,QS}var YS,C9;function $he(){if(C9)return YS;C9=1;var e=Whe();function t(r,n,s){var i=r.length;return s=s===void 0?i:s,!n&&s>=i?r:e(r,n,s)}return YS=t,YS}var ZS,E9;function sq(){if(E9)return ZS;E9=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",s=t+r+n,i="\\ufe0e\\ufe0f",o="\\u200d",l=RegExp("["+o+e+s+i+"]");function d(u){return l.test(u)}return ZS=d,ZS}var JS,O9;function Fhe(){if(O9)return JS;O9=1;function e(t){return t.split("")}return JS=e,JS}var ej,M9;function Hhe(){if(M9)return ej;M9=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",s=t+r+n,i="\\ufe0e\\ufe0f",o="["+e+"]",l="["+s+"]",d="\\ud83c[\\udffb-\\udfff]",u="(?:"+l+"|"+d+")",g="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",y="\\u200d",S=u+"?",b="["+i+"]?",v="(?:"+y+"(?:"+[g,f,m].join("|")+")"+b+S+")*",j=b+S+v,k="(?:"+[g+l+"?",l,f,m,o].join("|")+")",P=RegExp(d+"(?="+d+")|"+k+j,"g");function O(T){return T.match(P)||[]}return ej=O,ej}var tj,N9;function qhe(){if(N9)return tj;N9=1;var e=Fhe(),t=sq(),r=Hhe();function n(s){return t(s)?r(s):e(s)}return tj=n,tj}var rj,R9;
vendor: 4,365 bytes, line 1050
1050function Uhe(){if(R9)return rj;R9=1;var e=$he(),t=sq(),r=qhe(),n=tq();function s(i){return function(o){o=n(o);var l=t(o)?r(o):void 0,d=l?l[0]:o.charAt(0),u=l?e(l,1).join(""):o.slice(1);return d[i]()+u}}return rj=s,rj}var nj,D9;function Ghe(){if(D9)return nj;D9=1;var e=Uhe(),t=e("toUpperCase");return nj=t,nj}var Vhe=Ghe();const Uy=jt(Vhe);function At(e){return function(){return e}}const iq=Math.cos,s5=Math.sin,Xa=Math.sqrt,i5=Math.PI,Gy=2*i5,jT=Math.PI,wT=2*jT,zl=1e-6,Xhe=wT-zl;function oq(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function Khe(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return oq;const r=10**t;return function(n){this._+=n[0];for(let s=1,i=n.length;s<i;++s)this._+=Math.round(arguments[s]*r)/r+n[s]}}class Qhe{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?oq:Khe(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,s){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+s}`}bezierCurveTo(t,r,n,s,i,o){this._append`C${+t},${+r},${+n},${+s},${this._x1=+i},${this._y1=+o}`}arcTo(t,r,n,s,i){if(t=+t,r=+r,n=+n,s=+s,i=+i,i<0)throw new Error(`negative radius: ${i}`);let o=this._x1,l=this._y1,d=n-t,u=s-r,g=o-t,f=l-r,m=g*g+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(m>zl)if(!(Math.abs(f*d-u*g)>zl)||!i)this._append`L${this._x1=t},${this._y1=r}`;else{let y=n-o,S=s-l,b=d*d+u*u,v=y*y+S*S,j=Math.sqrt(b),k=Math.sqrt(m),P=i*Math.tan((jT-Math.acos((b+m-v)/(2*j*k)))/2),O=P/k,T=P/j;Math.abs(O-1)>zl&&this._append`L${t+O*g},${r+O*f}`,this._append`A${i},${i},0,0,${+(f*y>g*S)},${this._x1=t+T*d},${this._y1=r+T*u}`}}arc(t,r,n,s,i,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(s),d=n*Math.sin(s),u=t+l,g=r+d,f=1^o,m=o?s-i:i-s;this._x1===null?this._append`M${u},${g}`:(Math.abs(this._x1-u)>zl||Math.abs(this._y1-g)>zl)&&this._append`L${u},${g}`,n&&(m<0&&(m=m%wT+wT),m>Xhe?this._append`A${n},${n},0,1,${f},${t-l},${r-d}A${n},${n},0,1,${f},${this._x1=u},${this._y1=g}`:m>zl&&this._append`A${n},${n},0,${+(m>=jT)},${f},${this._x1=t+n*Math.cos(i)},${this._y1=r+n*Math.sin(i)}`)}rect(t,r,n,s){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+s}h${-n}Z`}toString(){return this._}}function f7(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new Qhe(t)}function h7(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function lq(e){this._context=e}lq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Vy(e){return new lq(e)}function cq(e){return e[0]}function dq(e){return e[1]}function uq(e,t){var r=At(!0),n=null,s=Vy,i=null,o=f7(l);e=typeof e=="function"?e:e===void 0?cq:At(e),t=typeof t=="function"?t:t===void 0?dq:At(t);function l(d){var u,g=(d=h7(d)).length,f,m=!1,y;for(n==null&&(i=s(y=o())),u=0;u<=g;++u)!(u<g&&r(f=d[u],u,d))===m&&((m=!m)?i.lineStart():i.lineEnd()),m&&i.point(+e(f,u,d),+t(f,u,d));if(y)return i=null,y+""||null}return l.x=function(d){return arguments.length?(e=typeof d=="function"?d:At(+d),l):e},l.y=function(d){return arguments.length?(t=typeof d=="function"?d:At(+d),l):t},l.defined=function(d){return arguments.length?(r=typeof d=="function"?d:At(!!d),l):r},l.curve=function(d){return arguments.length?(s=d,n!=null&&(i=s(n)),l):s},l.context=function(d){return arguments.length?(d==null?n=i=null:i=s(n=d),l):n},l}function cx(e,t,r){var n=null,s=At(!0),i=null,o=Vy,l=null,d=f7(u);e=typeof e=="function"?e:e===void 0?cq:At(+e),t=typeof t=="function"?t:At(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?dq:At(+r);function u(f){var m,y,S,b=(f=h7(f)).length,v,j=!1,k,P=new Array(b),O=new Array(b);
1050for(i==null&&(l=o(k=d())),m=0;m<=b;++m){if(!(m<b&&s(v=f[m],m,f))===j)if(j=!j)y=m,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),S=m-1;S>=y;--S)l.point(P[S],O[S]);l.lineEnd(),l.areaEnd()}j&&(P[m]=+e(v,m,f),O[m]=+t(v,m,f),l.point(n?+n(v,m,f):P[m],r?+r(v,m,f):O[m]))}if(k)return l=null,k+""||null}function g(){return uq().defined(s).curve(o).context(i)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:At(+f),n=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:At(+f),u):e},u.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:At(+f),u):n},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:At(+f),r=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:At(+f),u):t},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:At(+f),u):r},u.lineX0=u.lineY0=function(){return g().x(e).y(t)},u.lineY1=function(){return g().x(e).y(r)},u.lineX1=function(){return g().x(n).y(t)},u.defined=function(f){return arguments.length?(s=typeof f=="function"?f:At(!!f),u):s},u.curve=function(f){return arguments.length?(o=f,i!=null&&(l=o(i)),u):o},u.context=function(f){return arguments.length?(f==null?i=l=null:l=o(i=f),u):i},u}class pq{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function Yhe(e){return new pq(e,!0)}function Zhe(e){return new pq(e,!1)}const m7={draw(e,t){const r=Xa(t/i5);e.moveTo(r,0),e.arc(0,0,r,0,Gy)}},Jhe={draw(e,t){const r=Xa(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},gq=Xa(1/3),eme=gq*2,tme={draw(e,t){const r=Xa(t/eme),n=r*gq;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},rme={draw(e,t){const r=Xa(t),n=-r/2;e.rect(n,n,r,r)}},nme=.8908130915292852,fq=s5(i5/10)/s5(7*i5/10),ame=s5(Gy/10)*fq,sme=-iq(Gy/10)*fq,ime={draw(e,t){const r=Xa(t*nme),n=ame*r,s=sme*r;e.moveTo(0,-r),e.lineTo(n,s);for(let i=1;i<5;
vendor: 7,337 bytes, line 1050
1050++i){const o=Gy*i/5,l=iq(o),d=s5(o);e.lineTo(d*r,-l*r),e.lineTo(l*n-d*s,d*n+l*s)}e.closePath()}},aj=Xa(3),ome={draw(e,t){const r=-Xa(t/(aj*3));e.moveTo(0,r*2),e.lineTo(-aj*r,-r),e.lineTo(aj*r,-r),e.closePath()}},ia=-.5,oa=Xa(3)/2,kT=1/Xa(12),lme=(kT/2+1)*3,cme={draw(e,t){const r=Xa(t/lme),n=r/2,s=r*kT,i=n,o=r*kT+r,l=-i,d=o;e.moveTo(n,s),e.lineTo(i,o),e.lineTo(l,d),e.lineTo(ia*n-oa*s,oa*n+ia*s),e.lineTo(ia*i-oa*o,oa*i+ia*o),e.lineTo(ia*l-oa*d,oa*l+ia*d),e.lineTo(ia*n+oa*s,ia*s-oa*n),e.lineTo(ia*i+oa*o,ia*o-oa*i),e.lineTo(ia*l+oa*d,ia*d-oa*l),e.closePath()}};function dme(e,t){let r=null,n=f7(s);e=typeof e=="function"?e:At(e||m7),t=typeof t=="function"?t:At(t===void 0?64:+t);function s(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return s.type=function(i){return arguments.length?(e=typeof i=="function"?i:At(i),s):e},s.size=function(i){return arguments.length?(t=typeof i=="function"?i:At(+i),s):t},s.context=function(i){return arguments.length?(r=i??null,s):r},s}function o5(){}function l5(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function hq(e){this._context=e}hq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:l5(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:l5(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ume(e){return new hq(e)}function mq(e){this._context=e}mq.prototype={areaStart:o5,areaEnd:o5,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:l5(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function pme(e){return new mq(e)}function xq(e){this._context=e}xq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:l5(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function gme(e){return new xq(e)}function yq(e){this._context=e}yq.prototype={areaStart:o5,areaEnd:o5,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function fme(e){return new yq(e)}function _9(e){return e<0?-1:1}function I9(e,t,r){var n=e._x1-e._x0,s=t-e._x1,i=(e._y1-e._y0)/(n||s<0&&-0),o=(r-e._y1)/(s||n<0&&-0),l=(i*s+o*n)/(n+s);return(_9(i)+_9(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(l))||0}function B9(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function sj(e,t,r){var n=e._x0,s=e._y0,i=e._x1,o=e._y1,l=(i-n)/3;e._context.bezierCurveTo(n+l,s+l*t,i-l,o-l*r,i,o)}function c5(e){this._context=e}c5.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:sj(this,this._t0,B9(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,sj(this,B9(this,r=I9(this,e,t)),r);break;default:sj(this,this._t0,r=I9(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function bq(e){this._context=new vq(e)}(bq.prototype=Object.create(c5.prototype)).point=function(e,t){c5.prototype.point.call(this,t,e)};function vq(e){this._context=e}vq.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,s,i){this._context.bezierCurveTo(t,e,n,r,i,s)}};function hme(e){return new c5(e)}function mme(e){return new bq(e)}function Sq(e){this._context=e}Sq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=L9(e),s=L9(t),i=0,o=1;o<r;++i,++o)this._context.bezierCurveTo(n[0][i],s[0][i],n[1][i],s[1][i],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function L9(e){var t,r=e.length-1,n,s=new Array(r),i=new Array(r),o=new Array(r);for(s[0]=0,i[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)s[t]=1,i[t]=4,o[t]=4*e[t]+2*e[t+1];for(s[r-1]=2,i[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=s[t]/i[t-1],i[t]-=n,o[t]-=n*o[t-1];for(s[r-1]=o[r-1]/i[r-1],t=r-2;t>=0;--t)s[t]=(o[t]-s[t+1])/i[t];for(i[r-1]=(e[r]+s[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-s[t+1];return[s,i]}function xme(e){return new Sq(e)}function Xy(e,t){this._context=e,this._t=t}Xy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;
vendor: 18,604 bytes, lines 1050-1053
1050default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function yme(e){return new Xy(e,.5)}function bme(e){return new Xy(e,0)}function vme(e){return new Xy(e,1)}function gu(e,t){if((o=e.length)>1)for(var r=1,n,s,i=e[t[0]],o,l=i.length;r<o;++r)for(s=i,i=e[t[r]],n=0;n<l;++n)i[n][1]+=i[n][0]=isNaN(s[n][1])?s[n][0]:s[n][1]}function PT(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function Sme(e,t){return e[t]}function jme(e){const t=[];return t.key=e,t}function wme(){var e=At([]),t=PT,r=gu,n=Sme;function s(i){var o=Array.from(e.apply(this,arguments),jme),l,d=o.length,u=-1,g;for(const f of i)for(l=0,++u;l<d;++l)(o[l][u]=[0,+n(f,o[l].key,u,i)]).data=f;for(l=0,g=h7(t(o));l<d;++l)o[g[l]].index=l;return r(o,g),o}return s.keys=function(i){return arguments.length?(e=typeof i=="function"?i:At(Array.from(i)),s):e},s.value=function(i){return arguments.length?(n=typeof i=="function"?i:At(+i),s):n},s.order=function(i){return arguments.length?(t=i==null?PT:typeof i=="function"?i:At(Array.from(i)),s):t},s.offset=function(i){return arguments.length?(r=i??gu,s):r},s}function kme(e,t){if((n=e.length)>0){for(var r,n,s=0,i=e[0].length,o;s<i;++s){for(o=r=0;r<n;++r)o+=e[r][s][1]||0;if(o)for(r=0;r<n;++r)e[r][s][1]/=o}gu(e,t)}}function Pme(e,t){if((s=e.length)>0){for(var r=0,n=e[t[0]],s,i=n.length;r<i;++r){for(var o=0,l=0;o<s;++o)l+=e[o][r][1]||0;n[r][1]+=n[r][0]=-l/2}gu(e,t)}}function Tme(e,t){if(!(!((o=e.length)>0)||!((i=(s=e[t[0]]).length)>0))){for(var r=0,n=1,s,i,o;n<i;++n){for(var l=0,d=0,u=0;l<o;++l){for(var g=e[t[l]],f=g[n][1]||0,m=g[n-1][1]||0,y=(f-m)/2,S=0;S<l;++S){var b=e[t[S]],v=b[n][1]||0,j=b[n-1][1]||0;y+=v-j}d+=f,u+=y*f}s[n-1][1]+=s[n-1][0]=r,d&&(r-=u/d)}s[n-1][1]+=s[n-1][0]=r,gu(e,t)}}function pf(e){"@babel/helpers - typeof";return pf=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},pf(e)}var Ame=["type","size","sizeType"];function TT(){return TT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},TT.apply(this,arguments)}function W9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function $9(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?W9(Object(r),!0).forEach(function(n){zme(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zme(e,t,r){return t=Cme(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cme(e){var t=Eme(e,"string");return pf(t)=="symbol"?t:t+""}function Eme(e,t){if(pf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ome(e,t){if(e==null)return{};var r=Mme(e,t),n,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)n=i[s],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Mme(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var jq={symbolCircle:m7,symbolCross:Jhe,symbolDiamond:tme,symbolSquare:rme,symbolStar:ime,symbolTriangle:ome,symbolWye:cme},Nme=Math.PI/180,Rme=function(t){var r="symbol".concat(Uy(t));return jq[r]||m7},Dme=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var s=18*Nme;return 1.25*t*t*(Math.tan(s)-Math.tan(s*2)*Math.pow(Math.tan(s),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},_me=function(t,r){jq["symbol".concat(Uy(t))]=r},x7=function(t){var r=t.type,n=r===void 0?"circle":r,s=t.size,i=s===void 0?64:s,o=t.sizeType,l=o===void 0?"area":o,d=Ome(t,Ame),u=$9($9({},d),{},{type:n,size:i,sizeType:l}),g=function(){var v=Rme(n),j=dme().type(v).size(Dme(i,l,n));return j()},f=u.className,m=u.cx,y=u.cy,S=at(u,!0);return m===+m&&y===+y&&i===+i?G.createElement("path",TT({},S,{className:st("recharts-symbols",f),transform:"translate(".concat(m,", ").concat(y,")"),d:g()})):null};x7.registerSymbol=_me;function fu(e){"@babel/helpers - typeof";return fu=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},fu(e)}function AT(){return AT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},AT.apply(this,arguments)}function F9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Ime(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?F9(Object(r),!0).forEach(function(n){gf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lme(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,kq(n.key),n)}}function Wme(e,t,r){return t&&Lme(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $me(e,t,r){return t=d5(t),Fme(e,wq()?Reflect.construct(t,r||[],d5(e).constructor):t.apply(e,r))}function Fme(e,t){if(t&&(fu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hme(e)}function Hme(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wq=function(){return!!e})()}function d5(e){return d5=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},d5(e)}function qme(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zT(e,t)}function zT(e,t){return zT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,s){return n.__proto__=s,n},zT(e,t)}function gf(e,t,r){return t=kq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kq(e){var t=Ume(e,"string");return fu(t)=="symbol"?t:t+""}function Ume(e,t){if(fu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var la=32,y7=(function(e){function t(){return Bme(this,t),$me(this,t,arguments)}return qme(t,e),Wme(t,[{key:"renderIcon",value:function(n){var s=this.props.inactiveColor,i=la/2,o=la/6,l=la/3,d=n.inactive?s:n.color;if(n.type==="plainline")return G.createElement("line",{strokeWidth:4,fill:"none",stroke:d,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:i,x2:la,y2:i,className:"recharts-legend-icon"});if(n.type==="line")return G.createElement("path",{strokeWidth:4,fill:"none",stroke:d,d:"M0,".concat(i,"h").concat(l,` 1051 A`).concat(o,",").concat(o,",0,1,1,").concat(2*l,",").concat(i,` 1052 H`).concat(la,"M").concat(2*l,",").concat(i,` 1053 A`).concat(o,",").concat(o,",0,1,1,").concat(l,",").concat(i),className:"recharts-legend-icon"});if(n.type==="rect")return G.createElement("path",{stroke:"none",fill:d,d:"M0,".concat(la/8,"h").concat(la,"v").concat(la*3/4,"h").concat(-la,"z"),className:"recharts-legend-icon"});if(G.isValidElement(n.legendIcon)){var u=Ime({},n);return delete u.legendIcon,G.cloneElement(n.legendIcon,u)}return G.createElement(x7,{fill:d,cx:i,cy:i,size:la,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,s=this.props,i=s.payload,o=s.iconSize,l=s.layout,d=s.formatter,u=s.inactiveColor,g={x:0,y:0,width:la,height:la},f={display:l==="horizontal"?"inline-block":"block",marginRight:10},m={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(y,S){var b=y.formatter||d,v=st(gf(gf({"recharts-legend-item":!0},"legend-item-".concat(S),!0),"inactive",y.inactive));if(y.type==="none")return null;var j=Qe(y.value)?null:y.value;fi(!Qe(y.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var k=y.inactive?u:y.color;return G.createElement("li",AT({className:v,style:f,key:"legend-item-".concat(S)},a5(n.props,y,S)),G.createElement(vT,{width:o,height:o,viewBox:g,style:m},n.renderIcon(y)),G.createElement("span",{className:"recharts-legend-item-text",style:{color:k}},b?b(j,y,S):j))})}},{key:"render",value:function(){var n=this.props,s=n.payload,i=n.layout,o=n.align;if(!s||!s.length)return null;var l={padding:0,margin:0,textAlign:i==="horizontal"?o:"left"};return G.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])})(E.PureComponent);gf(y7,"displayName","Legend");gf(y7,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var ij,H9;function Gme(){if(H9)return ij;H9=1;var e=Fy();function t(){this.__data__=new e,this.size=0}return ij=t,ij}var oj,q9;function Vme(){if(q9)return oj;q9=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return oj=e,oj}var lj,U9;function Xme(){if(U9)return lj;U9=1;function e(t){return this.__data__.get(t)}return lj=e,lj}var cj,G9;function Kme(){if(G9)return cj;G9=1;function e(t){return this.__data__.has(t)}return cj=e,cj}var dj,V9;function Qme(){if(V9)return dj;V9=1;var e=Fy(),t=l7(),r=c7(),n=200;function s(i,o){var l=this.__data__;if(l instanceof e){var d=l.__data__;if(!t||d.length<n-1)return d.push([i,o]),this.size=++l.size,this;l=this.__data__=new r(d)}return l.set(i,o),this.size=l.size,this}return dj=s,dj}var uj,X9;function Pq(){if(X9)return uj;X9=1;var e=Fy(),t=Gme(),r=Vme(),n=Xme(),s=Kme(),i=Qme();function o(l){var d=this.__data__=new e(l);this.size=d.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=s,o.prototype.set=i,uj=o,uj}var pj,K9;function Yme(){if(K9)return pj;K9=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return pj=t,pj}var gj,Q9;function Zme(){if(Q9)return gj;Q9=1;function e(t){return this.__data__.has(t)}return gj=e,gj}var fj,Y9;function Tq(){if(Y9)return fj;Y9=1;var e=c7(),t=Yme(),r=Zme();function n(s){var i=-1,o=s==null?0:s.length;for(this.__data__=new e;++i<o;)this.add(s[i])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,fj=n,fj}var hj,Z9;function Aq(){if(Z9)return hj;Z9=1;function e(t,r){for(var n=-1,s=t==null?0:t.length;++n<s;)if(r(t[n],n,t))return!0;return!1}return hj=e,hj}var mj,J9;function zq(){if(J9)return mj;J9=1;function e(t,r){return t.has(r)}return mj=e,mj}var xj,eN;function Cq(){if(eN)return xj;eN=1;var e=Tq(),t=Aq(),r=zq(),n=1,s=2;function i(o,l,d,u,g,f){var m=d&n,y=o.length,S=l.length;if(y!=S&&!(m&&S>y))return!1;var b=f.get(o),v=f.get(l);if(b&&v)return b==l&&v==o;var j=-1,k=!0,P=d&s?new e:void 0;for(f.set(o,l),f.set(l,o);++j<y;){var O=o[j],T=l[j];if(u)var C=m?u(T,O,j,l,o,f):u(O,T,j,o,l,f);if(C!==void 0){if(C)continue;k=!1;break}if(P){if(!t(l,function(A,N){if(!r(P,N)&&(O===A||g(O,A,d,u,f)))return P.push(N)})){k=!1;break}}else if(!(O===T||g(O,T,d,u,f))){k=!1;break}}return f.delete(o),f.delete(l),k}return xj=i,xj}var yj,tN;function Jme(){if(tN)return yj;tN=1;var e=zs(),t=e.Uint8Array;return yj=t,yj}var bj,rN;function exe(){if(rN)return bj;rN=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(s,i){n[++r]=[i,s]}),n}return bj=e,bj}var vj,nN;function b7(){if(nN)return vj;nN=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(s){n[++r]=s}),n}return vj=e,vj}var Sj,aN;function txe(){if(aN)return Sj;aN=1;var e=lh(),t=Jme(),r=o7(),n=Cq(),s=exe(),i=b7(),o=1,l=2,d="[object Boolean]",u="[object Date]",g="[object Error]",f="[object Map]",m="[object Number]",y="[object RegExp]",S="[object Set]",b="[object String]",v="[object Symbol]",j="[object ArrayBuffer]",k="[object DataView]",P=e?e.prototype:void 0,O=P?P.valueOf:void 0;function T(C,A,N,M,B,R,_){switch(N){case k:if(C.byteLength!=A.byteLength||C.byteOffset!=A.byteOffset)return!1;C=C.buffer,A=A.buffer;case j:return!(C.byteLength!=A.byteLength||!R(new t(C),new t(A)));case d:case u:case m:return r(+C,+A);case g:return C.name==A.name&&C.message==A.message;case y:case b:return C==A+"";case f:var W=s;case S:var V=M&o;if(W||(W=i),C.size!=A.size&&!V)return!1;var F=_.get(C);if(F)return F==A;M|=l,_.set(C,A);var I=n(W(C),W(A),M,B,R,_);return _.delete(C),I;case v:if(O)return O.call(C)==O.call(A)}return!1}return Sj=T,Sj}var jj,sN;function Eq(){if(sN)return jj;sN=1;function e(t,r){for(var n=-1,s=r.length,i=t.length;++n<s;)t[i+n]=r[n];return t}return jj=e,jj}var wj,iN;function rxe(){if(iN)return wj;iN=1;var e=Eq(),t=An();function r(n,s,i){var o=s(n);return t(n)?o:e(o,i(n))}return wj=r,wj}var kj,oN;function nxe(){if(oN)return kj;oN=1;function e(t,r){for(var n=-1,s=t==null?0:t.length,i=0,o=[];++n<s;){var l=t[n];r(l,n,t)&&(o[i++]=l)}return o}return kj=e,kj}var Pj,lN;function axe(){if(lN)return Pj;lN=1;function e(){return[]}return Pj=e,Pj}var Tj,cN;function sxe(){if(cN)return Tj;cN=1;var e=nxe(),t=axe(),r=Object.prototype,n=r.propertyIsEnumerable,s=Object.getOwnPropertySymbols,i=s?function(o){return o==null?[]:(o=Object(o),e(s(o),function(l){return n.call(o,l)}))}:t;return Tj=i,Tj}var Aj,dN;function ixe(){if(dN)return Aj;dN=1;function e(t,r){for(var n=-1,s=Array(t);++n<t;)s[n]=r(n);return s}return Aj=e,Aj}var zj,uN;function oxe(){if(uN)return zj;uN=1;var e=Ai(),t=zi(),r="[object Arguments]";function n(s){return t(s)&&e(s)==r}return zj=n,zj}var Cj,pN;function v7(){if(pN)return Cj;pN=1;var e=oxe(),t=zi(),r=Object.prototype,n=r.hasOwnProperty,s=r.propertyIsEnumerable,i=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!s.call(o,"callee")};return Cj=i,Cj}var yg={exports:{}},Ej,gN;function lxe(){if(gN)return Ej;gN=1;function e(){return!1}return Ej=e,Ej}yg.exports;var fN;function Oq(){return fN||(fN=1,(function(e,t){var r=zs(),n=lxe(),s=t&&!t.nodeType&&t,i=s&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===s,l=o?r.Buffer:void 0,d=l?l.isBuffer:void 0,u=d||n;e.exports=u})(yg,yg.exports)),yg.exports}var Oj,hN;function S7(){if(hN)return Oj;hN=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,s){var i=typeof n;return s=s??e,!!s&&(i=="number"||i!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<s}return Oj=r,Oj}var Mj,mN;function j7(){if(mN)return Mj;mN=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Mj=t,Mj}var Nj,xN;function cxe(){if(xN)return Nj;xN=1;var e=Ai(),t=j7(),r=zi(),n="[object Arguments]",s="[object Array]",i="[object Boolean]",o="[object Date]",l="[object Error]",d="[object Function]",u="[object Map]",g="[object Number]",f="[object Object]",m="[object RegExp]",y="[object Set]",S="[object String]",b="[object WeakMap]",v="[object ArrayBuffer]",j="[object DataView]",k="[object Float32Array]",P="[object Float64Array]",O="[object Int8Array]",T="[object Int16Array]",C="[object Int32Array]",A="[object Uint8Array]",N="[object Uint8ClampedArray]",M="[object Uint16Array]",B="[object Uint32Array]",R={};R[k]=R[P]=R[O]=R[T]=R[C]=R[A]=R[N]=R[M]=R[B]=!0,R[n]=R[s]=R[v]=R[i]=R[j]=R[o]=R[l]=R[d]=R[u]=R[g]=R[f]=R[m]=R[y]=R[S]=R[b]=!1;function _(W){return r(W)&&t(W.length)&&!!R[e(W)]}return Nj=_,Nj}var Rj,yN;function Mq(){if(yN)return Rj;yN=1;function e(t){return function(r){return t(r)}}return Rj=e,Rj}var bg={exports:{}};bg.exports;var bN;function dxe(){return bN||(bN=1,(function(e,t){var r=ZH(),n=t&&!t.nodeType&&t,s=n&&!0&&e&&!e.nodeType&&e,i=s&&s.exports===n,o=i&&r.process,l=(function(){try{var d=s&&s.require&&s.require("util").types;return d||o&&o.binding&&o.binding("util")}catch{}})();e.exports=l})(bg,bg.exports)),bg.exports}var Dj,vN;function Nq(){if(vN)return Dj;vN=1;var e=cxe(),t=Mq(),r=dxe(),n=r&&r.isTypedArray,s=n?t(n):e;return Dj=s,Dj}var _j,SN;function uxe(){if(SN)return _j;SN=1;var e=ixe(),t=v7(),r=An(),n=Oq(),s=S7(),i=Nq(),o=Object.prototype,l=o.hasOwnProperty;function d(u,g){var f=r(u),m=!f&&t(u),y=!f&&!m&&n(u),S=!f&&!m&&!y&&i(u),b=f||m||y||S,v=b?e(u.length,String):[],j=v.length;for(var k in u)(g||l.call(u,k))&&!(b&&(k=="length"||y&&(k=="offset"||k=="parent")||S&&(k=="buffer"||k=="byteLength"||k=="byteOffset")||s(k,j)))&&v.push(k);return v}return _j=d,_j}var Ij,jN;function pxe(){if(jN)return Ij;jN=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,s=typeof n=="function"&&n.prototype||e;return r===s}return Ij=t,Ij}var Bj,wN;function Rq(){if(wN)return Bj;wN=1;function e(t,r){return function(n){return t(r(n))}}return Bj=e,Bj}var Lj,kN;function gxe(){if(kN)return Lj;kN=1;var e=Rq(),t=e(Object.keys,Object);return Lj=t,Lj}var Wj,PN;function fxe(){if(PN)return Wj;PN=1;var e=pxe(),t=gxe(),r=Object.prototype,n=r.hasOwnProperty;function s(i){if(!e(i))return t(i);var o=[];for(var l in Object(i))n.call(i,l)&&l!="constructor"&&o.push(l);return o}return Wj=s,Wj}var $j,TN;function uh(){if(TN)return $j;TN=1;var e=i7(),t=j7();function r(n){return n!=null&&t(n.length)&&!e(n)}return $j=r,$j}var Fj,AN;function Ky(){if(AN)return Fj;AN=1;var e=uxe(),t=fxe(),r=uh();function n(s){return r(s)?e(s):t(s)}return Fj=n,Fj}var Hj,zN;
vendor: 2,273 bytes, line 1053
1053function hxe(){if(zN)return Hj;zN=1;var e=rxe(),t=sxe(),r=Ky();function n(s){return e(s,r,t)}return Hj=n,Hj}var qj,CN;function mxe(){if(CN)return qj;CN=1;var e=hxe(),t=1,r=Object.prototype,n=r.hasOwnProperty;function s(i,o,l,d,u,g){var f=l&t,m=e(i),y=m.length,S=e(o),b=S.length;if(y!=b&&!f)return!1;for(var v=y;v--;){var j=m[v];if(!(f?j in o:n.call(o,j)))return!1}var k=g.get(i),P=g.get(o);if(k&&P)return k==o&&P==i;var O=!0;g.set(i,o),g.set(o,i);for(var T=f;++v<y;){j=m[v];var C=i[j],A=o[j];if(d)var N=f?d(A,C,j,o,i,g):d(C,A,j,i,o,g);if(!(N===void 0?C===A||u(C,A,l,d,g):N)){O=!1;break}T||(T=j=="constructor")}if(O&&!T){var M=i.constructor,B=o.constructor;M!=B&&"constructor"in i&&"constructor"in o&&!(typeof M=="function"&&M instanceof M&&typeof B=="function"&&B instanceof B)&&(O=!1)}return g.delete(i),g.delete(o),O}return qj=s,qj}var Uj,EN;function xxe(){if(EN)return Uj;EN=1;var e=Pc(),t=zs(),r=e(t,"DataView");return Uj=r,Uj}var Gj,ON;function yxe(){if(ON)return Gj;ON=1;var e=Pc(),t=zs(),r=e(t,"Promise");return Gj=r,Gj}var Vj,MN;function Dq(){if(MN)return Vj;MN=1;var e=Pc(),t=zs(),r=e(t,"Set");return Vj=r,Vj}var Xj,NN;function bxe(){if(NN)return Xj;NN=1;var e=Pc(),t=zs(),r=e(t,"WeakMap");return Xj=r,Xj}var Kj,RN;function vxe(){if(RN)return Kj;RN=1;var e=xxe(),t=l7(),r=yxe(),n=Dq(),s=bxe(),i=Ai(),o=JH(),l="[object Map]",d="[object Object]",u="[object Promise]",g="[object Set]",f="[object WeakMap]",m="[object DataView]",y=o(e),S=o(t),b=o(r),v=o(n),j=o(s),k=i;return(e&&k(new e(new ArrayBuffer(1)))!=m||t&&k(new t)!=l||r&&k(r.resolve())!=u||n&&k(new n)!=g||s&&k(new s)!=f)&&(k=function(P){var O=i(P),T=O==d?P.constructor:void 0,C=T?o(T):"";if(C)switch(C){case y:return m;case S:return l;case b:return u;case v:return g;case j:return f}return O}),Kj=k,Kj}var Qj,DN;function Sxe(){if(DN)return Qj;DN=1;var e=Pq(),t=Cq(),r=txe(),n=mxe(),s=vxe(),i=An(),o=Oq(),l=Nq(),d=1,u="[object Arguments]",g="[object Array]",f="[object Object]",m=Object.prototype,y=m.hasOwnProperty;function S(b,v,j,k,P,O){var T=i(b),C=i(v),A=T?g:s(b),N=C?g:s(v);A=A==u?f:A,N=N==u?f:N;var M=A==f,B=N==f,R=A==N;if(R&&o(b)){if(!o(v))return!1;T=!0,M=!1}if(R&&!M)return O||(O=new e),T||l(b)?t(b,v,j,k,P,O):r(b,v,A,j,k,P,O);if(!(j&d)){var _=M&&y.call(b,"__wrapped__"),W=B&&y.call(v,"__wrapped__");
vendor: 44,056 bytes, lines 1053-1060
1053if(_||W){var V=_?b.value():b,F=W?v.value():v;return O||(O=new e),P(V,F,j,k,O)}}return R?(O||(O=new e),n(b,v,j,k,P,O)):!1}return Qj=S,Qj}var Yj,_N;function w7(){if(_N)return Yj;_N=1;var e=Sxe(),t=zi();function r(n,s,i,o,l){return n===s?!0:n==null||s==null||!t(n)&&!t(s)?n!==n&&s!==s:e(n,s,i,o,r,l)}return Yj=r,Yj}var Zj,IN;function jxe(){if(IN)return Zj;IN=1;var e=Pq(),t=w7(),r=1,n=2;function s(i,o,l,d){var u=l.length,g=u,f=!d;if(i==null)return!g;for(i=Object(i);u--;){var m=l[u];if(f&&m[2]?m[1]!==i[m[0]]:!(m[0]in i))return!1}for(;++u<g;){m=l[u];var y=m[0],S=i[y],b=m[1];if(f&&m[2]){if(S===void 0&&!(y in i))return!1}else{var v=new e;if(d)var j=d(S,b,y,i,o,v);if(!(j===void 0?t(b,S,r|n,d,v):j))return!1}}return!0}return Zj=s,Zj}var Jj,BN;function _q(){if(BN)return Jj;BN=1;var e=qo();function t(r){return r===r&&!e(r)}return Jj=t,Jj}var ew,LN;function wxe(){if(LN)return ew;LN=1;var e=_q(),t=Ky();function r(n){for(var s=t(n),i=s.length;i--;){var o=s[i],l=n[o];s[i]=[o,l,e(l)]}return s}return ew=r,ew}var tw,WN;function Iq(){if(WN)return tw;WN=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return tw=e,tw}var rw,$N;function kxe(){if($N)return rw;$N=1;var e=jxe(),t=wxe(),r=Iq();function n(s){var i=t(s);return i.length==1&&i[0][2]?r(i[0][0],i[0][1]):function(o){return o===s||e(o,s,i)}}return rw=n,rw}var nw,FN;function Pxe(){if(FN)return nw;FN=1;function e(t,r){return t!=null&&r in Object(t)}return nw=e,nw}var aw,HN;function Txe(){if(HN)return aw;HN=1;var e=rq(),t=v7(),r=An(),n=S7(),s=j7(),i=qy();function o(l,d,u){d=e(d,l);for(var g=-1,f=d.length,m=!1;++g<f;){var y=i(d[g]);if(!(m=l!=null&&u(l,y)))break;l=l[y]}return m||++g!=f?m:(f=l==null?0:l.length,!!f&&s(f)&&n(y,f)&&(r(l)||t(l)))}return aw=o,aw}var sw,qN;function Axe(){if(qN)return sw;qN=1;var e=Pxe(),t=Txe();function r(n,s){return n!=null&&t(n,s,e)}return sw=r,sw}var iw,UN;function zxe(){if(UN)return iw;UN=1;var e=w7(),t=nq(),r=Axe(),n=s7(),s=_q(),i=Iq(),o=qy(),l=1,d=2;function u(g,f){return n(g)&&s(f)?i(o(g),f):function(m){var y=t(m,g);return y===void 0&&y===f?r(m,g):e(f,y,l|d)}}return iw=u,iw}var ow,GN;function Gu(){if(GN)return ow;GN=1;function e(t){return t}return ow=e,ow}var lw,VN;function Cxe(){if(VN)return lw;VN=1;function e(t){return function(r){return r?.[t]}}return lw=e,lw}var cw,XN;function Exe(){if(XN)return cw;XN=1;var e=u7();function t(r){return function(n){return e(n,r)}}return cw=t,cw}var dw,KN;function Oxe(){if(KN)return dw;KN=1;var e=Cxe(),t=Exe(),r=s7(),n=qy();function s(i){return r(i)?e(n(i)):t(i)}return dw=s,dw}var uw,QN;function Uo(){if(QN)return uw;QN=1;var e=kxe(),t=zxe(),r=Gu(),n=An(),s=Oxe();function i(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):s(o)}return uw=i,uw}var pw,YN;function Bq(){if(YN)return pw;YN=1;function e(t,r,n,s){for(var i=t.length,o=n+(s?1:-1);s?o--:++o<i;)if(r(t[o],o,t))return o;return-1}return pw=e,pw}var gw,ZN;function Mxe(){if(ZN)return gw;ZN=1;function e(t){return t!==t}return gw=e,gw}var fw,JN;function Nxe(){if(JN)return fw;JN=1;function e(t,r,n){for(var s=n-1,i=t.length;++s<i;)if(t[s]===r)return s;return-1}return fw=e,fw}var hw,eR;function Rxe(){if(eR)return hw;eR=1;var e=Bq(),t=Mxe(),r=Nxe();function n(s,i,o){return i===i?r(s,i,o):e(s,t,o)}return hw=n,hw}var mw,tR;function Dxe(){if(tR)return mw;tR=1;var e=Rxe();function t(r,n){var s=r==null?0:r.length;return!!s&&e(r,n,0)>-1}return mw=t,mw}var xw,rR;function _xe(){if(rR)return xw;rR=1;function e(t,r,n){for(var s=-1,i=t==null?0:t.length;++s<i;)if(n(r,t[s]))return!0;return!1}return xw=e,xw}var yw,nR;function Ixe(){if(nR)return yw;nR=1;function e(){}return yw=e,yw}var bw,aR;function Bxe(){if(aR)return bw;aR=1;var e=Dq(),t=Ixe(),r=b7(),n=1/0,s=e&&1/r(new e([,-0]))[1]==n?function(i){return new e(i)}:t;return bw=s,bw}var vw,sR;function Lxe(){if(sR)return vw;sR=1;var e=Tq(),t=Dxe(),r=_xe(),n=zq(),s=Bxe(),i=b7(),o=200;function l(d,u,g){var f=-1,m=t,y=d.length,S=!0,b=[],v=b;if(g)S=!1,m=r;else if(y>=o){var j=u?null:s(d);if(j)return i(j);S=!1,m=n,v=new e}else v=u?[]:b;e:for(;++f<y;){var k=d[f],P=u?u(k):k;if(k=g||k!==0?k:0,S&&P===P){for(var O=v.length;O--;)if(v[O]===P)continue e;u&&v.push(P),b.push(k)}else m(v,P,g)||(v!==b&&v.push(P),b.push(k))}return b}return vw=l,vw}var Sw,iR;function Wxe(){if(iR)return Sw;iR=1;var e=Uo(),t=Lxe();function r(n,s){return n&&n.length?t(n,e(s,2)):[]}return Sw=r,Sw}var $xe=Wxe();const oR=jt($xe);function Lq(e,t,r){return t===!0?oR(e,r):Qe(t)?oR(e,t):e}function hu(e){"@babel/helpers - typeof";return hu=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},hu(e)}var Fxe=["ref"];function lR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Zs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lR(Object(r),!0).forEach(function(n){Qy(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Hxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$q(n.key),n)}}function qxe(e,t,r){return t&&cR(e.prototype,t),r&&cR(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Uxe(e,t,r){return t=u5(t),Gxe(e,Wq()?Reflect.construct(t,r||[],u5(e).constructor):t.apply(e,r))}function Gxe(e,t){if(t&&(hu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vxe(e)}function Vxe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Wq=function(){return!!e})()}function u5(e){return u5=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},u5(e)}function Xxe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&CT(e,t)}function CT(e,t){return CT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,s){return n.__proto__=s,n},CT(e,t)}function Qy(e,t,r){return t=$q(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $q(e){var t=Kxe(e,"string");return hu(t)=="symbol"?t:t+""}function Kxe(e,t){if(hu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Qxe(e,t){if(e==null)return{};var r=Yxe(e,t),n,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)n=i[s],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Yxe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Zxe(e){return e.value}function Jxe(e,t){if(G.isValidElement(e))return G.cloneElement(e,t);if(typeof e=="function")return G.createElement(e,t);t.ref;var r=Qxe(t,Fxe);return G.createElement(y7,r)}var dR=1,Vd=(function(e){function t(){var r;Hxe(this,t);for(var n=arguments.length,s=new Array(n),i=0;i<n;i++)s[i]=arguments[i];return r=Uxe(this,t,[].concat(s)),Qy(r,"lastBoundingBox",{width:-1,height:-1}),r}return Xxe(t,e),qxe(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,s=this.getBBox();s?(Math.abs(s.width-this.lastBoundingBox.width)>dR||Math.abs(s.height-this.lastBoundingBox.height)>dR)&&(this.lastBoundingBox.width=s.width,this.lastBoundingBox.height=s.height,n&&n(s)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Zs({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var s=this.props,i=s.layout,o=s.align,l=s.verticalAlign,d=s.margin,u=s.chartWidth,g=s.chartHeight,f,m;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&i==="vertical"){var y=this.getBBoxSnapshot();f={left:((u||0)-y.width)/2}}else f=o==="right"?{right:d&&d.right||0}:{left:d&&d.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(l==="middle"){var S=this.getBBoxSnapshot();m={top:((g||0)-S.height)/2}}else m=l==="bottom"?{bottom:d&&d.bottom||0}:{top:d&&d.top||0};return Zs(Zs({},f),m)}},{key:"render",value:function(){var n=this,s=this.props,i=s.content,o=s.width,l=s.height,d=s.wrapperStyle,u=s.payloadUniqBy,g=s.payload,f=Zs(Zs({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(d)),d);return G.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(y){n.wrapperNode=y}},Jxe(i,Zs(Zs({},this.props),{},{payload:Lq(g,u,Zxe)})))}}],[{key:"getWithHeight",value:function(n,s){var i=Zs(Zs({},this.defaultProps),n.props),o=i.layout;return o==="vertical"&&ye(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||s}:null}}])})(E.PureComponent);Qy(Vd,"displayName","Legend");Qy(Vd,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var jw,uR;function e0e(){if(uR)return jw;uR=1;var e=lh(),t=v7(),r=An(),n=e?e.isConcatSpreadable:void 0;function s(i){return r(i)||t(i)||!!(n&&i&&i[n])}return jw=s,jw}var ww,pR;function Fq(){if(pR)return ww;pR=1;var e=Eq(),t=e0e();function r(n,s,i,o,l){var d=-1,u=n.length;for(i||(i=t),l||(l=[]);++d<u;){var g=n[d];s>0&&i(g)?s>1?r(g,s-1,i,o,l):e(l,g):o||(l[l.length]=g)}return l}return ww=r,ww}var kw,gR;function t0e(){if(gR)return kw;gR=1;function e(t){return function(r,n,s){for(var i=-1,o=Object(r),l=s(r),d=l.length;d--;){var u=l[t?d:++i];if(n(o[u],u,o)===!1)break}return r}}return kw=e,kw}var Pw,fR;function r0e(){if(fR)return Pw;fR=1;var e=t0e(),t=e();return Pw=t,Pw}var Tw,hR;function Hq(){if(hR)return Tw;hR=1;var e=r0e(),t=Ky();function r(n,s){return n&&e(n,s,t)}return Tw=r,Tw}var Aw,mR;function n0e(){if(mR)return Aw;mR=1;var e=uh();function t(r,n){return function(s,i){if(s==null)return s;if(!e(s))return r(s,i);for(var o=s.length,l=n?o:-1,d=Object(s);(n?l--:++l<o)&&i(d[l],l,d)!==!1;);return s}}return Aw=t,Aw}var zw,xR;function k7(){if(xR)return zw;xR=1;var e=Hq(),t=n0e(),r=t(e);return zw=r,zw}var Cw,yR;function qq(){if(yR)return Cw;yR=1;var e=k7(),t=uh();function r(n,s){var i=-1,o=t(n)?Array(n.length):[];return e(n,function(l,d,u){o[++i]=s(l,d,u)}),o}return Cw=r,Cw}var Ew,bR;function a0e(){if(bR)return Ew;bR=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Ew=e,Ew}var Ow,vR;function s0e(){if(vR)return Ow;vR=1;var e=qu();function t(r,n){if(r!==n){var s=r!==void 0,i=r===null,o=r===r,l=e(r),d=n!==void 0,u=n===null,g=n===n,f=e(n);if(!u&&!f&&!l&&r>n||l&&d&&g&&!u&&!f||i&&d&&g||!s&&g||!o)return 1;if(!i&&!l&&!f&&r<n||f&&s&&o&&!i&&!l||u&&s&&o||!d&&o||!g)return-1}return 0}return Ow=t,Ow}var Mw,SR;function i0e(){if(SR)return Mw;SR=1;var e=s0e();function t(r,n,s){for(var i=-1,o=r.criteria,l=n.criteria,d=o.length,u=s.length;++i<d;){var g=e(o[i],l[i]);if(g){if(i>=u)return g;var f=s[i];return g*(f=="desc"?-1:1)}}return r.index-n.index}return Mw=t,Mw}var Nw,jR;function o0e(){if(jR)return Nw;jR=1;var e=d7(),t=u7(),r=Uo(),n=qq(),s=a0e(),i=Mq(),o=i0e(),l=Gu(),d=An();function u(g,f,m){f.length?f=e(f,function(b){return d(b)?function(v){return t(v,b.length===1?b[0]:b)}:b}):f=[l];var y=-1;f=e(f,i(r));var S=n(g,function(b,v,j){var k=e(f,function(P){return P(b)});return{criteria:k,index:++y,value:b}});return s(S,function(b,v){return o(b,v,m)})}return Nw=u,Nw}var Rw,wR;function l0e(){if(wR)return Rw;wR=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return Rw=e,Rw}var Dw,kR;function c0e(){if(kR)return Dw;kR=1;var e=l0e(),t=Math.max;function r(n,s,i){return s=t(s===void 0?n.length-1:s,0),function(){for(var o=arguments,l=-1,d=t(o.length-s,0),u=Array(d);++l<d;)u[l]=o[s+l];l=-1;for(var g=Array(s+1);++l<s;)g[l]=o[l];return g[s]=i(u),e(n,this,g)}}return Dw=r,Dw}var _w,PR;function d0e(){if(PR)return _w;PR=1;function e(t){return function(){return t}}return _w=e,_w}var Iw,TR;function Uq(){if(TR)return Iw;TR=1;var e=Pc(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return Iw=t,Iw}var Bw,AR;function u0e(){if(AR)return Bw;AR=1;var e=d0e(),t=Uq(),r=Gu(),n=t?function(s,i){return t(s,"toString",{configurable:!0,enumerable:!1,value:e(i),writable:!0})}:r;return Bw=n,Bw}var Lw,zR;function p0e(){if(zR)return Lw;zR=1;var e=800,t=16,r=Date.now;function n(s){var i=0,o=0;return function(){var l=r(),d=t-(l-o);if(o=l,d>0){if(++i>=e)return arguments[0]}else i=0;return s.apply(void 0,arguments)}}return Lw=n,Lw}var Ww,CR;function g0e(){if(CR)return Ww;CR=1;var e=u0e(),t=p0e(),r=t(e);return Ww=r,Ww}var $w,ER;function f0e(){if(ER)return $w;ER=1;var e=Gu(),t=c0e(),r=g0e();function n(s,i){return r(t(s,i,e),s+"")}return $w=n,$w}var Fw,OR;function Yy(){if(OR)return Fw;OR=1;var e=o7(),t=uh(),r=S7(),n=qo();function s(i,o,l){if(!n(l))return!1;var d=typeof o;return(d=="number"?t(l)&&r(o,l.length):d=="string"&&o in l)?e(l[o],i):!1}return Fw=s,Fw}var Hw,MR;function h0e(){if(MR)return Hw;MR=1;var e=Fq(),t=o0e(),r=f0e(),n=Yy(),s=r(function(i,o){if(i==null)return[];var l=o.length;return l>1&&n(i,o[0],o[1])?o=[]:l>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(i,e(o,1),[])});return Hw=s,Hw}var m0e=h0e();const P7=jt(m0e);function ff(e){"@babel/helpers - typeof";return ff=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},ff(e)}function ET(){return ET=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ET.apply(this,arguments)}function x0e(e,t){return S0e(e)||v0e(e,t)||b0e(e,t)||y0e()}function y0e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1054In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b0e(e,t){if(e){if(typeof e=="string")return NR(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return NR(e,t)}}function NR(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function v0e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,s,i,o,l=[],d=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(d=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);d=!0);}catch(g){u=!0,s=g}finally{try{if(!d&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw s}}return l}}function S0e(e){if(Array.isArray(e))return e}function RR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function qw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?RR(Object(r),!0).forEach(function(n){j0e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):RR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function j0e(e,t,r){return t=w0e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w0e(e){var t=k0e(e,"string");return ff(t)=="symbol"?t:t+""}function k0e(e,t){if(ff(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ff(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function P0e(e){return Array.isArray(e)&&mr(e[0])&&mr(e[1])?e.join(" ~ "):e}var T0e=function(t){var r=t.separator,n=r===void 0?" : ":r,s=t.contentStyle,i=s===void 0?{}:s,o=t.itemStyle,l=o===void 0?{}:o,d=t.labelStyle,u=d===void 0?{}:d,g=t.payload,f=t.formatter,m=t.itemSorter,y=t.wrapperClassName,S=t.labelClassName,b=t.label,v=t.labelFormatter,j=t.accessibilityLayer,k=j===void 0?!1:j,P=function(){if(g&&g.length){var _={padding:0,margin:0},W=(m?P7(g,m):g).map(function(V,F){if(V.type==="none")return null;var I=qw({display:"block",paddingTop:4,paddingBottom:4,color:V.color||"#000"},l),U=V.formatter||f||P0e,q=V.value,Z=V.name,le=q,H=Z;if(U&&le!=null&&H!=null){var K=U(q,Z,V,F,g);if(Array.isArray(K)){var Q=x0e(K,2);le=Q[0],H=Q[1]}else le=K}return G.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(F),style:I},mr(H)?G.createElement("span",{className:"recharts-tooltip-item-name"},H):null,mr(H)?G.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,G.createElement("span",{className:"recharts-tooltip-item-value"},le),G.createElement("span",{className:"recharts-tooltip-item-unit"},V.unit||""))});return G.createElement("ul",{className:"recharts-tooltip-item-list",style:_},W)}return null},O=qw({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),T=qw({margin:0},u),C=!et(b),A=C?b:"",N=st("recharts-default-tooltip",y),M=st("recharts-tooltip-label",S);C&&v&&g!==void 0&&g!==null&&(A=v(b,g));var B=k?{role:"status","aria-live":"assertive"}:{};return G.createElement("div",ET({className:N,style:O},B),G.createElement("p",{className:M,style:T},G.isValidElement(A)?A:"".concat(A)),P())};function hf(e){"@babel/helpers - typeof";return hf=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},hf(e)}function dx(e,t,r){return t=A0e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A0e(e){var t=z0e(e,"string");return hf(t)=="symbol"?t:t+""}function z0e(e,t){if(hf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var eg="recharts-tooltip-wrapper",C0e={visibility:"hidden"};function E0e(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return st(eg,dx(dx(dx(dx({},"".concat(eg,"-right"),ye(r)&&t&&ye(t.x)&&r>=t.x),"".concat(eg,"-left"),ye(r)&&t&&ye(t.x)&&r<t.x),"".concat(eg,"-bottom"),ye(n)&&t&&ye(t.y)&&n>=t.y),"".concat(eg,"-top"),ye(n)&&t&&ye(t.y)&&n<t.y))}function DR(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,s=e.offsetTopLeft,i=e.position,o=e.reverseDirection,l=e.tooltipDimension,d=e.viewBox,u=e.viewBoxDimension;if(i&&ye(i[n]))return i[n];var g=r[n]-l-s,f=r[n]+s;if(t[n])return o[n]?g:f;if(o[n]){var m=g,y=d[n];return m<y?Math.max(f,d[n]):Math.max(g,d[n])}var S=f+l,b=d[n]+u;return S>b?Math.max(g,d[n]):Math.max(f,d[n])}function O0e(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function M0e(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,s=e.position,i=e.reverseDirection,o=e.tooltipBox,l=e.useTranslate3d,d=e.viewBox,u,g,f;return o.height>0&&o.width>0&&r?(g=DR({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:s,reverseDirection:i,tooltipDimension:o.width,viewBox:d,viewBoxDimension:d.width}),f=DR({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:s,reverseDirection:i,tooltipDimension:o.height,viewBox:d,viewBoxDimension:d.height}),u=O0e({translateX:g,translateY:f,useTranslate3d:l})):u=C0e,{cssProperties:u,cssClasses:E0e({translateX:g,translateY:f,coordinate:r})}}function mu(e){"@babel/helpers - typeof";return mu=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},mu(e)}function _R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function IR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_R(Object(r),!0).forEach(function(n){MT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_R(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function N0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R0e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Vq(n.key),n)}}function D0e(e,t,r){return t&&R0e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _0e(e,t,r){return t=p5(t),I0e(e,Gq()?Reflect.construct(t,r||[],p5(e).constructor):t.apply(e,r))}function I0e(e,t){if(t&&(mu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B0e(e)}function B0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Gq=function(){return!!e})()}function p5(e){return p5=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},p5(e)}function L0e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&OT(e,t)}function OT(e,t){return OT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,s){return n.__proto__=s,n},OT(e,t)}function MT(e,t,r){return t=Vq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vq(e){var t=W0e(e,"string");return mu(t)=="symbol"?t:t+""}function W0e(e,t){if(mu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var BR=1,$0e=(function(e){function t(){var r;N0e(this,t);for(var n=arguments.length,s=new Array(n),i=0;i<n;i++)s[i]=arguments[i];return r=_0e(this,t,[].concat(s)),MT(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),MT(r,"handleKeyDown",function(o){if(o.key==="Escape"){var l,d,u,g;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(l=(d=r.props.coordinate)===null||d===void 0?void 0:d.x)!==null&&l!==void 0?l:0,y:(u=(g=r.props.coordinate)===null||g===void 0?void 0:g.y)!==null&&u!==void 0?u:0}})}}),r}return L0e(t,e),D0e(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>BR||Math.abs(n.height-this.state.lastBoundingBox.height)>BR)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,s;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((s=this.props.coordinate)===null||s===void 0?void 0:s.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,s=this.props,i=s.active,o=s.allowEscapeViewBox,l=s.animationDuration,d=s.animationEasing,u=s.children,g=s.coordinate,f=s.hasPayload,m=s.isAnimationActive,y=s.offset,S=s.position,b=s.reverseDirection,v=s.useTranslate3d,j=s.viewBox,k=s.wrapperStyle,P=M0e({allowEscapeViewBox:o,coordinate:g,offsetTopLeft:y,position:S,reverseDirection:b,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:j}),O=P.cssClasses,T=P.cssProperties,C=IR(IR({transition:m&&i?"transform ".concat(l,"ms ").concat(d):void 0},T),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&f?"visible":"hidden",position:"absolute",top:0,left:0},k);return G.createElement("div",{tabIndex:-1,className:O,style:C,ref:function(N){n.wrapperNode=N}},u)}}])})(E.PureComponent),F0e=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Vu={isSsr:F0e()};function xu(e){"@babel/helpers - typeof";return xu=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},xu(e)}function LR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function WR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?LR(Object(r),!0).forEach(function(n){T7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):LR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function H0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q0e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Kq(n.key),n)}}function U0e(e,t,r){return t&&q0e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function G0e(e,t,r){return t=g5(t),V0e(e,Xq()?Reflect.construct(t,r||[],g5(e).constructor):t.apply(e,r))}function V0e(e,t){if(t&&(xu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return X0e(e)}function X0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Xq=function(){return!!e})()}function g5(e){return g5=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},g5(e)}function K0e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&NT(e,t)}function NT(e,t){return NT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,s){return n.__proto__=s,n},NT(e,t)}function T7(e,t,r){return t=Kq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kq(e){var t=Q0e(e,"string");return xu(t)=="symbol"?t:t+""}function Q0e(e,t){if(xu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Y0e(e){return e.dataKey}function Z0e(e,t){return G.isValidElement(e)?G.cloneElement(e,t):typeof e=="function"?G.createElement(e,t):G.createElement(T0e,t)}var gs=(function(e){function t(){return H0e(this,t),G0e(this,t,arguments)}return K0e(t,e),U0e(t,[{key:"render",value:function(){var n=this,s=this.props,i=s.active,o=s.allowEscapeViewBox,l=s.animationDuration,d=s.animationEasing,u=s.content,g=s.coordinate,f=s.filterNull,m=s.isAnimationActive,y=s.offset,S=s.payload,b=s.payloadUniqBy,v=s.position,j=s.reverseDirection,k=s.useTranslate3d,P=s.viewBox,O=s.wrapperStyle,T=S??[];f&&T.length&&(T=Lq(S.filter(function(A){return A.value!=null&&(A.hide!==!0||n.props.includeHidden)}),b,Y0e));var C=T.length>0;return G.createElement($0e,{allowEscapeViewBox:o,animationDuration:l,animationEasing:d,isAnimationActive:m,active:i,coordinate:g,hasPayload:C,offset:y,position:v,reverseDirection:j,useTranslate3d:k,viewBox:P,wrapperStyle:O},Z0e(u,WR(WR({},this.props),{},{payload:T})))}}])})(E.PureComponent);T7(gs,"displayName","Tooltip");T7(gs,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Vu.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Uw,$R;function J0e(){if($R)return Uw;$R=1;var e=zs(),t=function(){return e.Date.now()};return Uw=t,Uw}var Gw,FR;function e5e(){if(FR)return Gw;FR=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Gw=t,Gw}var Vw,HR;function t5e(){if(HR)return Vw;HR=1;var e=e5e(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Vw=r,Vw}var Xw,qR;function Qq(){if(qR)return Xw;qR=1;var e=t5e(),t=qo(),r=qu(),n=NaN,s=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,l=parseInt;function d(u){if(typeof u=="number")return u;if(r(u))return n;if(t(u)){var g=typeof u.valueOf=="function"?u.valueOf():u;u=t(g)?g+"":g}if(typeof u!="string")return u===0?u:+u;u=e(u);var f=i.test(u);return f||o.test(u)?l(u.slice(2),f?2:8):s.test(u)?n:+u}return Xw=d,Xw}var Kw,UR;function r5e(){if(UR)return Kw;UR=1;var e=qo(),t=J0e(),r=Qq(),n="Expected a function",s=Math.max,i=Math.min;function o(l,d,u){var g,f,m,y,S,b,v=0,j=!1,k=!1,P=!0;if(typeof l!="function")throw new TypeError(n);d=r(d)||0,e(u)&&(j=!!u.leading,k="maxWait"in u,m=k?s(r(u.maxWait)||0,d):m,P="trailing"in u?!!u.trailing:P);function O(W){var V=g,F=f;return g=f=void 0,v=W,y=l.apply(F,V),y}function T(W){return v=W,S=setTimeout(N,d),j?O(W):y}function C(W){var V=W-b,F=W-v,I=d-V;return k?i(I,m-F):I}function A(W){var V=W-b,F=W-v;return b===void 0||V>=d||V<0||k&&F>=m}function N(){var W=t();if(A(W))return M(W);S=setTimeout(N,C(W))}function M(W){return S=void 0,P&&g?O(W):(g=f=void 0,y)}function B(){S!==void 0&&clearTimeout(S),v=0,g=b=f=S=void 0}function R(){return S===void 0?y:M(t())}function _(){var W=t(),V=A(W);if(g=arguments,f=this,b=W,V){if(S===void 0)return T(b);if(k)return clearTimeout(S),S=setTimeout(N,d),O(b)}return S===void 0&&(S=setTimeout(N,d)),y}return _.cancel=B,_.flush=R,_}return Kw=o,Kw}var Qw,GR;function n5e(){if(GR)return Qw;GR=1;var e=r5e(),t=qo(),r="Expected a function";function n(s,i,o){var l=!0,d=!0;if(typeof s!="function")throw new TypeError(r);return t(o)&&(l="leading"in o?!!o.leading:l,d="trailing"in o?!!o.trailing:d),e(s,i,{leading:l,maxWait:i,trailing:d})}return Qw=n,Qw}var a5e=n5e();const Yq=jt(a5e);function mf(e){"@babel/helpers - typeof";return mf=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},mf(e)}function VR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function ux(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VR(Object(r),!0).forEach(function(n){s5e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function s5e(e,t,r){return t=i5e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i5e(e){var t=o5e(e,"string");return mf(t)=="symbol"?t:t+""}function o5e(e,t){if(mf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function l5e(e,t){return p5e(e)||u5e(e,t)||d5e(e,t)||c5e()}function c5e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1055In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d5e(e,t){if(e){if(typeof e=="string")return XR(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return XR(e,t)}}function XR(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u5e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,s,i,o,l=[],d=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(d=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);d=!0);}catch(g){u=!0,s=g}finally{try{if(!d&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw s}}return l}}function p5e(e){if(Array.isArray(e))return e}var g5e=E.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,s=n===void 0?{width:-1,height:-1}:n,i=e.width,o=i===void 0?"100%":i,l=e.height,d=l===void 0?"100%":l,u=e.minWidth,g=u===void 0?0:u,f=e.minHeight,m=e.maxHeight,y=e.children,S=e.debounce,b=S===void 0?0:S,v=e.id,j=e.className,k=e.onResize,P=e.style,O=P===void 0?{}:P,T=E.useRef(null),C=E.useRef();C.current=k,E.useImperativeHandle(t,function(){return Object.defineProperty(T.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),T.current},configurable:!0})});var A=E.useState({containerWidth:s.width,containerHeight:s.height}),N=l5e(A,2),M=N[0],B=N[1],R=E.useCallback(function(W,V){B(function(F){var I=Math.round(W),U=Math.round(V);return F.containerWidth===I&&F.containerHeight===U?F:{containerWidth:I,containerHeight:U}})},[]);E.useEffect(function(){var W=function(Z){var le,H=Z[0].contentRect,K=H.width,Q=H.height;R(K,Q),(le=C.current)===null||le===void 0||le.call(C,K,Q)};b>0&&(W=Yq(W,b,{trailing:!0,leading:!1}));var V=new ResizeObserver(W),F=T.current.getBoundingClientRect(),I=F.width,U=F.height;return R(I,U),V.observe(T.current),function(){V.disconnect()}},[R,b]);var _=E.useMemo(function(){var W=M.containerWidth,V=M.containerHeight;if(W<0||V<0)return null;fi(Wl(o)||Wl(d),`The width(%s) and height(%s) are both fixed numbers, 1056 maybe you don't need to use a ResponsiveContainer.`,o,d),fi(!r||r>0,"The aspect(%s) must be greater than zero.",r);var F=Wl(o)?W:o,I=Wl(d)?V:d;r&&r>0&&(F?I=F/r:I&&(F=I*r),m&&I>m&&(I=m)),fi(F>0||I>0,`The width(%s) and height(%s) of chart should be greater than 0, 1057 please check the style of container, or the props width(%s) and height(%s), 1058 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 1059 height and width.`,F,I,o,d,g,f,r);var U=!Array.isArray(y)&&gi(y.type).endsWith("Chart");return G.Children.map(y,function(q){return G.isValidElement(q)?E.cloneElement(q,ux({width:F,height:I},U?{style:ux({height:"100%",width:"100%",maxHeight:I,maxWidth:F},q.props.style)}:{})):q})},[r,y,d,m,f,g,M,o]);return G.createElement("div",{id:v?"".concat(v):void 0,className:st("recharts-responsive-container",j),style:ux(ux({},O),{},{width:o,height:d,minWidth:g,minHeight:f,maxHeight:m}),ref:T},_)}),Zq=function(t){return null};Zq.displayName="Cell";function xf(e){"@babel/helpers - typeof";return xf=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},xf(e)}function KR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function RT(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?KR(Object(r),!0).forEach(function(n){f5e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function f5e(e,t,r){return t=h5e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h5e(e){var t=m5e(e,"string");return xf(t)=="symbol"?t:t+""}function m5e(e,t){if(xf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wd={widthCache:{},cacheCount:0},x5e=2e3,y5e={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},QR="recharts_measurement_span";function b5e(e){var t=RT({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var _g=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Vu.isSsr)return{width:0,height:0};var n=b5e(r),s=JSON.stringify({text:t,copyStyle:n});if(wd.widthCache[s])return wd.widthCache[s];try{var i=document.getElementById(QR);i||(i=document.createElement("span"),i.setAttribute("id",QR),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=RT(RT({},y5e),n);Object.assign(i.style,o),i.textContent="".concat(t);var l=i.getBoundingClientRect(),d={width:l.width,height:l.height};return wd.widthCache[s]=d,++wd.cacheCount>x5e&&(wd.cacheCount=0,wd.widthCache={}),d}catch{return{width:0,height:0}}},v5e=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function yf(e){"@babel/helpers - typeof";return yf=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},yf(e)}function f5(e,t){return k5e(e)||w5e(e,t)||j5e(e,t)||S5e()}function S5e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1060In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j5e(e,t){if(e){if(typeof e=="string")return YR(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return YR(e,t)}}function YR(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w5e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,s,i,o,l=[],d=!0,u=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;d=!1}else for(;!(d=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);d=!0);}catch(g){u=!0,s=g}finally{try{if(!d&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw s}}return l}}function k5e(e){if(Array.isArray(e))return e}function P5e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,A5e(n.key),n)}}function T5e(e,t,r){return t&&ZR(e.prototype,t),r&&ZR(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function A5e(e){var t=z5e(e,"string");return yf(t)=="symbol"?t:t+""}function z5e(e,t){if(yf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var JR=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,eD=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,C5e=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,E5e=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Jq={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},O5e=Object.keys(Jq),_d="NaN";function M5e(e,t){return e*Jq[t]}var px=(function(){function e(t,r){P5e(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!C5e.test(r)&&(this.num=NaN,this.unit=""),O5e.includes(r)&&(this.num=M5e(t,r),this.unit="px")}return T5e(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,s=(n=E5e.exec(r))!==null&&n!==void 0?n:[],i=f5(s,3),o=i[1],l=i[2];return new e(parseFloat(o),l??"")}}])})();function eU(e){if(e.includes(_d))return _d;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=JR.exec(t))!==null&&r!==void 0?r:[],s=f5(n,4),i=s[1],o=s[2],l=s[3],d=px.parse(i??""),u=px.parse(l??""),g=o==="*"?d.multiply(u):d.divide(u);if(g.isNaN())return _d;t=t.replace(JR,g.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,m=(f=eD.exec(t))!==null&&f!==void 0?f:[],y=f5(m,4),S=y[1],b=y[2],v=y[3],j=px.parse(S??""),k=px.parse(v??""),P=b==="+"?j.add(k):j.subtract(k);if(P.isNaN())return _d;t=t.replace(eD,P.toString())}return t}var tD=/\(([^()]*)\)/;function N5e(e){for(var t=e;t.includes("(");){var r=tD.exec(t),n=f5(r,2),s=n[1];t=t.replace(tD,eU(s))}return t}function R5e(e){var t=e.replace(/\s+/g,"");return t=N5e(t),t=eU(t),t}function D5e(e){try{return R5e(e)}catch{return _d}}function Yw(e){var t=D5e(e.slice(5,-1));return t===_d?"":t}var _5e=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],I
10605e=["dx","dy","angle","className","breakAll"];function DT(){return DT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},DT.apply(this,arguments)}function rD(e,t){if(e==null)return{};var r=B5e(e,t),n,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)n=i[s],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function B5e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function nD(e,t){return F5e(e)||$5e(e,t)||W5e(e,t)||L5e()}function L5e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1061In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W5e(e,t){if(e){if(typeof e=="string")return aD(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return aD(e,t)}}function aD(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $5e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,s,i,o,l=[],d=!0,u=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;d=!1}else for(;!(d=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);d=!0);}catch(g){u=!0,s=g}finally{try{if(!d&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw s}}return l}}function F5e(e){if(Array.isArray(e))return e}var tU=/[ \f\n\r\t\v\u2028\u2029]+/,rU=function(t){var r=t.children,n=t.breakAll,s=t.style;try{var i=[];et(r)||(n?i=r.toString().split(""):i=r.toString().split(tU));var o=i.map(function(d){return{word:d,width:_g(d,s).width}}),l=n?0:_g(" ",s).width;return{wordsWithComputedWidth:o,spaceWidth:l}}catch{return null}},H5e=function(t,r,n,s,i){var o=t.maxLines,l=t.children,d=t.style,u=t.breakAll,g=ye(o),f=l,m=function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return F.reduce(function(I,U){var q=U.word,Z=U.width,le=I[I.length-1];if(le&&(s==null||i||le.width+Z+n<Number(s)))le.words.push(q),le.width+=Z+n;else{var H={words:[q],width:Z};I.push(H)}return I},[])},y=m(r),S=function(F){return F.reduce(function(I,U){return I.width>U.width?I:U})};if(!g)return y;for(var b="â¦",v=function(F){var I=f.slice(0,F),U=rU({breakAll:u,style:d,children:I+b}).wordsWithComputedWidth,q=m(U),Z=q.length>o||S(q).width>Number(s);return[Z,q]},j=0,k=f.length-1,P=0,O;j<=k&&P<=f.length-1;){var T=Math.floor((j+k)/2),C=T-1,A=v(C),N=nD(A,2),M=N[0],B=N[1],R=v(T),_=nD(R,1),W=_[0];if(!M&&!W&&(j=T+1),M&&W&&(k=T-1),!M&&W){O=B;break}P++}return O||y},sD=function(t){var r=et(t)?[]:t.toString().split(tU);return[{words:r}]},q5e=function(t){var r=t.width,n=t.scaleToFit,s=t.children,i=t.style,o=t.breakAll,l=t.maxLines;if((r||n)&&!Vu.isSsr){var d,u,g=rU({breakAll:o,children:s,style:i});if(g){var f=g.wordsWithComputedWidth,m=g.spaceWidth;d=f,u=m}else return sD(s);return H5e({breakAll:o,children:s,maxLines:l,style:i},d,u,r,n)}return sD(s)},iD="#808080",h5=function(t){var r=t.x,n=r===void 0?0:r,s=t.y,i=s===void 0?0:s,o=t.lineHeight,l=o===void 0?"1em":o,d=t.capHeight,u=d===void 0?"0.71em":d,g=t.scaleToFit,f=g===void 0?!1:g,m=t.textAnchor,y=m===void 0?"start":m,S=t.verticalAnchor,b=S===void 0?"end":S,v=t.fill,j=v===void 0?iD:v,k=rD(t,_5e),P=E.useMemo(function(){return q5e({breakAll:k.breakAll,children:k.children,maxLines:k.maxLines,scaleToFit:f,style:k.style,width:k.width})},[k.breakAll,k.children,k.maxLines,f,k.style,k.width]),O=k.dx,T=k.dy,C=k.angle,A=k.className,N=k.breakAll,M=rD(k,I5e);if(!mr(n)||!mr(i))return null;var B=n+(ye(O)?O:0),R=i+(ye(T)?T:0),_;switch(b){case"start":_=Yw("calc(".concat(u,")"));break;case"middle":_=Yw("calc(".concat((P.length-1)/2," * -").concat(l," + (").concat(u," / 2))"));break;default:_=Yw("calc(".concat(P.length-1," * -").concat(l,")"));break}var W=[];if(f){var V=P[0].width,F=k.width;W.push("scale(".concat((ye(F)?F/V:1)/V,")"))}return C&&W.push("rotate(".concat(C,", ").concat(B,", ").concat(R,")")),W.length&&(M.transform=W.join(" ")),G.createElement("text",DT({},at(M,!0),{x:B,y:R,className:st("recharts-text",A),textAnchor:y,fill:j.includes("url")?iD:j}),P.map(function(I,U){var q=I.words.join(N?"":" ");return G.createElement("tspan",{x:B,dy:U===0?_:l,key:"".concat(q,"-").concat(U)},q)}))};function Co(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function U5e(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function A7(e){let t,r,n;e.length!==2?(t=Co,r=(l,d)=>Co(e(l),d),n=(l,d)=>e(l)-d):(t=e===Co||e===U5e?e:G5e,r=e,n=e);function s(l,d,u=0,g=l.length){if(u<g){if(t(d,d)!==0)return g;do{const f=u+g>>>1;r(l[f],d)<0?u=f+1:g=f}while(u<g)}return u}function i(l,d,u=0,g=l.length){if(u<g){if(t(d,d)!==0)return g;do{const f=u+g>>>1;r(l[f],d)<=0?u=f+1:g=f}while(u<g)}return u}function o(l,d,u=0,g=l.length){const f=s(l,d,u,g-1);return f>u&&n(l[f-1],d)>-n(l[f],d)?f-1:f}return{left:s,center:o,right:i}}function G5e(){return 0}function nU(e){return e===null?NaN:+e}function*V5e(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const X5e=A7(Co),ph=X5e.right;A7(nU).center;class oD extends Map{constructor(t,r=Y5e){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,s]of t)this.set(n,s)}get(t){return super.get(lD(this,t))}has(t){return super.has(lD(this,t))}set(t,r){return super.set(K5e(this,t),r)}delete(t){return super.delete(Q5e(this,t))}}function lD({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function K5e({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function Q5e({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function Y5e(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Z5e(e=Co){if(e===Co)return aU;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function aU(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const J5e=Math.sqrt(50),eye=Math.sqrt(10),tye=Math.sqrt(2);function m5(e,t,r){const n=(t-e)/Math.max(0,r),s=Math.floor(Math.log10(n)),i=n/Math.pow(10,s),o=i>=J5e?10:i>=eye?5:i>=tye?2:1;let l,d,u;return s<0?(u=Math.pow(10,-s)/o,l=Math.round(e*u),d=Math.round(t*u),l/u<e&&++l,d/u>t&&--d,u=-u):(u=Math.pow(10,s)*o,l=Math.round(e/u),d=Math.round(t/u),l*u<e&&++l,d*u>t&&--d),d<l&&.5<=r&&r<2?m5(e,t,r*2):[l,d,u]}function _T(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[s,i,o]=n?m5(t,e,r):m5(e,t,r);if(!(i>=s))return[];const l=i-s+1,d=new Array(l);if(n)if(o<0)for(let u=0;u<l;++u)d[u]=(i-u)/-o;else for(let u=0;u<l;++u)d[u]=(i-u)*o;else if(o<0)for(let u=0;u<l;++u)d[u]=(s+u)/-o;else for(let u=0;u<l;++u)d[u]=(s+u)*o;return d}function IT(e,t,r){return t=+t,e=+e,r=+r,m5(e,t,r)[2]}function BT(e,t,r){t=+t,e=+e,r=+r;const n=t<e,s=n?IT(t,e,r):IT(e,t,r);return(n?-1:1)*(s<0?1/-s:s)}function cD(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function dD(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function sU(e,t,r=0,n=1/0,s){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(s=s===void 0?aU:Z5e(s);n>r;){if(n-r>600){const d=n-r+1,u=t-r+1,g=Math.log(d),f=.5*Math.exp(2*g/3),m=.5*Math.sqrt(g*f*(d-f)/d)*(u-d/2<0?-1:1),y=Math.max(r,Math.floor(t-u*f/d+m)),S=Math.min(n,Math.floor(t+(d-u)*f/d+m));sU(e,t,y,S,s)}const i=e[t];let o=r,l=n;for(tg(e,r,t),s(e[n],i)>0&&tg(e,r,n);o<l;){for(tg(e,o,l),++o,--l;s(e[o],i)<0;)++o;for(;s(e[l],i)>0;)--l}s(e[r],i)===0?tg(e,r,l):(++l,tg(e,l,n)),l<=t&&(r=l+1),t<=l&&(n=l-1)}return e}function tg(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function rye(e,t,r){if(e=Float64Array.from(V5e(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return dD(e);if(t>=1)return cD(e);var n,s=(n-1)*t,i=Math.floor(s),o=cD(sU(e,i).subarray(0,i+1)),l=dD(e.subarray(i+1));return o+(l-o)*(s-i)}}function nye(e,t,r=nU){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,s=(n-1)*t,i=Math.floor(s),o=+r(e[i],i,e),l=+r(e[i+1],i+1,e);return o+(l-o)*(s-i)}}function aye(e,t,r){e=+e,t=+t,r=(s=arguments.length)<2?(t=e,e=0,1):s<3?1:+r;for(var n=-1,s=Math.max(0,Math.ceil((t-e)/r))|0,i=new Array(s);++n<s;)i[n]=e+n*r;return i}function Ta(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Ci(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}
vendor: 10,013 bytes, line 1061
1061const LT=Symbol("implicit");function z7(){var e=new oD,t=[],r=[],n=LT;function s(i){let o=e.get(i);if(o===void 0){if(n!==LT)return n;e.set(i,o=t.push(i)-1)}return r[o%r.length]}return s.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new oD;for(const o of i)e.has(o)||e.set(o,t.push(o)-1);return s},s.range=function(i){return arguments.length?(r=Array.from(i),s):r.slice()},s.unknown=function(i){return arguments.length?(n=i,s):n},s.copy=function(){return z7(t,r).unknown(n)},Ta.apply(s,arguments),s}function bf(){var e=z7().unknown(void 0),t=e.domain,r=e.range,n=0,s=1,i,o,l=!1,d=0,u=0,g=.5;delete e.unknown;function f(){var m=t().length,y=s<n,S=y?s:n,b=y?n:s;i=(b-S)/Math.max(1,m-d+u*2),l&&(i=Math.floor(i)),S+=(b-S-i*(m-d))*g,o=i*(1-d),l&&(S=Math.round(S),o=Math.round(o));var v=aye(m).map(function(j){return S+i*j});return r(y?v.reverse():v)}return e.domain=function(m){return arguments.length?(t(m),f()):t()},e.range=function(m){return arguments.length?([n,s]=m,n=+n,s=+s,f()):[n,s]},e.rangeRound=function(m){return[n,s]=m,n=+n,s=+s,l=!0,f()},e.bandwidth=function(){return o},e.step=function(){return i},e.round=function(m){return arguments.length?(l=!!m,f()):l},e.padding=function(m){return arguments.length?(d=Math.min(1,u=+m),f()):d},e.paddingInner=function(m){return arguments.length?(d=Math.min(1,m),f()):d},e.paddingOuter=function(m){return arguments.length?(u=+m,f()):u},e.align=function(m){return arguments.length?(g=Math.max(0,Math.min(1,m)),f()):g},e.copy=function(){return bf(t(),[n,s]).round(l).paddingInner(d).paddingOuter(u).align(g)},Ta.apply(f(),arguments)}function iU(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return iU(t())},e}function Ig(){return iU(bf.apply(null,arguments).paddingInner(1))}function C7(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function oU(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function gh(){}var vf=.7,x5=1/vf,Xd="\\s*([+-]?\\d+)\\s*",Sf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",bs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",sye=/^#([0-9a-f]{3,8})$/,iye=new RegExp(`^rgb\\(${Xd},${Xd},${Xd}\\)$`),oye=new RegExp(`^rgb\\(${bs},${bs},${bs}\\)$`),lye=new RegExp(`^rgba\\(${Xd},${Xd},${Xd},${Sf}\\)$`),cye=new RegExp(`^rgba\\(${bs},${bs},${bs},${Sf}\\)$`),dye=new RegExp(`^hsl\\(${Sf},${bs},${bs}\\)$`),uye=new RegExp(`^hsla\\(${Sf},${bs},${bs},${Sf}\\)$`),uD={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};C7(gh,jf,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:pD,formatHex:pD,formatHex8:pye,formatHsl:gye,formatRgb:gD,toString:gD});function pD(){return this.rgb().formatHex()}function pye(){return this.rgb().formatHex8()}function gye(){return lU(this).formatHsl()}function gD(){return this.rgb().formatRgb()}function jf(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=sye.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?fD(t):r===3?new wn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?gx(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?gx(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=iye.exec(e))?new wn(t[1],t[2],t[3],1):(t=oye.exec(e))?new wn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=lye.exec(e))?gx(t[1],t[2],t[3],t[4]):(t=cye.exec(e))?gx(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=dye.exec(e))?xD(t[1],t[2]/100,t[3]/100,1):(t=uye.exec(e))?xD(t[1],t[2]/100,t[3]/100,t[4]):uD.hasOwnProperty(e)?fD(uD[e]):e==="transparent"?new wn(NaN,NaN,NaN,0):null}function fD(e){return new wn(e>>16&255,e>>8&255,e&255,1)}function gx(e,t,r,n){return n<=0&&(e=t=r=NaN),new wn(e,t,r,n)}function fye(e){return e instanceof gh||(e=jf(e)),e?(e=e.rgb(),new wn(e.r,e.g,e.b,e.opacity)):new wn}function WT(e,t,r,n){return arguments.length===1?fye(e):new wn(e,t,r,n??1)}function wn(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}C7(wn,WT,oU(gh,{brighter(e){return e=e==null?x5:Math.pow(x5,e),new wn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?vf:Math.pow(vf,e),new wn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new wn(Kl(this.r),Kl(this.g),Kl(this.b),y5(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:hD,formatHex:hD,formatHex8:hye,formatRgb:mD,toString:mD}));function hD(){return`#${$l(this.r)}${$l(this.g)}${$l(this.b)}`}function hye(){return`#${$l(this.r)}${$l(this.g)}${$l(this.b)}${$l((isNaN(this.opacity)?1:this.opacity)*255)}`}function mD(){const e=y5(this.opacity);return`${e===1?"rgb(":"rgba("}${Kl(this.r)}, ${Kl(this.g)}, ${Kl(this.b)}${e===1?")":`, ${e})`}`}function y5(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Kl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function $l(e){return e=Kl(e),(e<16?"0":"")+e.toString(16)}function xD(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ia(e,t,r,n)}function lU(e){if(e instanceof Ia)return new Ia(e.h,e.s,e.l,e.opacity);if(e instanceof gh||(e=jf(e)),!e)return new Ia;if(e instanceof Ia)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,s=Math.min(t,r,n),i=Math.max(t,r,n),o=NaN,l=i-s,d=(i+s)/2;return l?(t===i?o=(r-n)/l+(r<n)*6:r===i?o=(n-t)/l+2:o=(t-r)/l+4,l/=d<.5?i+s:2-i-s,o*=60):l=d>0&&d<1?0:o,new Ia(o,l,d,e.opacity)}function mye(e,t,r,n){return arguments.length===1?lU(e):new Ia(e,t,r,n??1)}function Ia(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}C7(Ia,mye,oU(gh,{brighter(e){return e=e==null?x5:Math.pow(x5,e),new Ia(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?vf:Math.pow(vf,e),new Ia(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,s=2*r-n;return new wn(Zw(e>=240?e-240:e+120,s,n),Zw(e,s,n),Zw(e<120?e+240:e-120,s,n),this.opacity)},clamp(){return new Ia(yD(this.h),fx(this.s),fx(this.l),y5(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=y5(this.opacity);return`${e===1?"hsl(":"hsla("}${yD(this.h)}, ${fx(this.s)*100}%, ${fx(this.l)*100}%${e===1?")":`, ${e})`}`}}));function yD(e){return e=(e||0)%360,e<0?e+360:e}function fx(e){return Math.max(0,Math.min(1,e||0))}function Zw(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const E7=e=>()=>e;function xye(e,t){return function(r){return e+r*t}}function yye(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function bye(e){return(e=+e)==1?cU:function(t,r){return r-t?yye(t,r,e):E7(isNaN(t)?r:t)}}function cU(e,t){var r=t-e;return r?xye(e,r):E7(isNaN(e)?t:e)}const bD=(function e(t){var r=bye(t);function n(s,i){var o=r((s=WT(s)).r,(i=WT(i)).r),l=r(s.g,i.g),d=r(s.b,i.b),u=cU(s.opacity,i.opacity);return function(g){return s.r=o(g),s.g=l(g),s.b=d(g),s.opacity=u(g),s+""}}return n.gamma=e,n})(1);function vye(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),s;return function(i){for(s=0;s<r;++s)n[s]=e[s]*(1-i)+t[s]*i;return n}}function Sye(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function jye(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,s=new Array(n),i=new Array(r),o;for(o=0;o<n;++o)s[o]=Xu(e[o],t[o]);for(;o<r;
vendor: 5,216 bytes, line 1061
1061++o)i[o]=t[o];return function(l){for(o=0;o<n;++o)i[o]=s[o](l);return i}}function wye(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function b5(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function kye(e,t){var r={},n={},s;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(s in t)s in e?r[s]=Xu(e[s],t[s]):n[s]=t[s];return function(i){for(s in r)n[s]=r[s](i);return n}}var $T=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Jw=new RegExp($T.source,"g");function Pye(e){return function(){return e}}function Tye(e){return function(t){return e(t)+""}}function Aye(e,t){var r=$T.lastIndex=Jw.lastIndex=0,n,s,i,o=-1,l=[],d=[];for(e=e+"",t=t+"";(n=$T.exec(e))&&(s=Jw.exec(t));)(i=s.index)>r&&(i=t.slice(r,i),l[o]?l[o]+=i:l[++o]=i),(n=n[0])===(s=s[0])?l[o]?l[o]+=s:l[++o]=s:(l[++o]=null,d.push({i:o,x:b5(n,s)})),r=Jw.lastIndex;return r<t.length&&(i=t.slice(r),l[o]?l[o]+=i:l[++o]=i),l.length<2?d[0]?Tye(d[0].x):Pye(t):(t=d.length,function(u){for(var g=0,f;g<t;++g)l[(f=d[g]).i]=f.x(u);return l.join("")})}function Xu(e,t){var r=typeof t,n;return t==null||r==="boolean"?E7(t):(r==="number"?b5:r==="string"?(n=jf(t))?(t=n,bD):Aye:t instanceof jf?bD:t instanceof Date?wye:Sye(t)?vye:Array.isArray(t)?jye:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?kye:b5)(e,t)}function O7(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function zye(e,t){t===void 0&&(t=e,e=Xu);for(var r=0,n=t.length-1,s=t[0],i=new Array(n<0?0:n);r<n;)i[r]=e(s,s=t[++r]);return function(o){var l=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return i[l](o-l)}}function Cye(e){return function(){return e}}function v5(e){return+e}var vD=[0,1];function nn(e){return e}function FT(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:Cye(isNaN(t)?NaN:.5)}function Eye(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function Oye(e,t,r){var n=e[0],s=e[1],i=t[0],o=t[1];return s<n?(n=FT(s,n),i=r(o,i)):(n=FT(n,s),i=r(i,o)),function(l){return i(n(l))}}function Mye(e,t,r){var n=Math.min(e.length,t.length)-1,s=new Array(n),i=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)s[o]=FT(e[o],e[o+1]),i[o]=r(t[o],t[o+1]);return function(l){var d=ph(e,l,1,n)-1;return i[d](s[d](l))}}function fh(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Zy(){var e=vD,t=vD,r=Xu,n,s,i,o=nn,l,d,u;function g(){var m=Math.min(e.length,t.length);return o!==nn&&(o=Eye(e[0],e[m-1])),l=m>2?Mye:Oye,d=u=null,f}function f(m){return m==null||isNaN(m=+m)?i:(d||(d=l(e.map(n),t,r)))(n(o(m)))}return f.invert=function(m){return o(s((u||(u=l(t,e.map(n),b5)))(m)))},f.domain=function(m){return arguments.length?(e=Array.from(m,v5),g()):e.slice()},f.range=function(m){return arguments.length?(t=Array.from(m),g()):t.slice()},f.rangeRound=function(m){return t=Array.from(m),r=O7,g()},f.clamp=function(m){return arguments.length?(o=m?!0:nn,g()):o!==nn},f.interpolate=function(m){return arguments.length?(r=m,g()):r},f.unknown=function(m){return arguments.length?(i=m,f):i},function(m,y){return n=m,s=y,g()}}function M7(){return Zy()(nn,nn)}function Nye(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function S5(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function yu(e){return e=S5(Math.abs(e)),e?e[1]:NaN}function Rye(e,t){return function(r,n){for(var s=r.length,i=[],o=0,l=e[0],d=0;s>0&&l>0&&(d+l+1>n&&(l=Math.max(1,n-d)),i.push(r.substring(s-=l,s+l)),!((d+=l+1)>n));)l=e[o=(o+1)%e.length];return i.reverse().join(t)}}function Dye(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var _ye=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function wf(e){if(!(t=_ye.exec(e)))throw new Error("invalid format: "+e);var t;return new N7({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}wf.prototype=N7.prototype;function N7(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}N7.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Iye(e){e:for(var t=e.length,r=1,n=-1,s;r<t;++r)switch(e[r]){case".":n=s=r;break;case"0":n===0&&(n=r),s=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(s+1):e}var dU;function Bye(e,t){var r=S5(e,t);if(!r)return e+"";var n=r[0],s=r[1],i=s-(dU=Math.max(-8,Math.min(8,Math.floor(s/3)))*3)+1,o=n.length;return i===o?n:i>o?n+new Array(i-o+1).join("0"):i>
vendor: 5,906 bytes, line 1061
10610?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+S5(e,Math.max(0,t+i-1))[0]}function SD(e,t){var r=S5(e,t);if(!r)return e+"";var n=r[0],s=r[1];return s<0?"0."+new Array(-s).join("0")+n:n.length>s+1?n.slice(0,s+1)+"."+n.slice(s+1):n+new Array(s-n.length+2).join("0")}const jD={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Nye,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>SD(e*100,t),r:SD,s:Bye,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function wD(e){return e}var kD=Array.prototype.map,PD=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Lye(e){var t=e.grouping===void 0||e.thousands===void 0?wD:Rye(kD.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",s=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?wD:Dye(kD.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"â":e.minus+"",d=e.nan===void 0?"NaN":e.nan+"";function u(f){f=wf(f);var m=f.fill,y=f.align,S=f.sign,b=f.symbol,v=f.zero,j=f.width,k=f.comma,P=f.precision,O=f.trim,T=f.type;T==="n"?(k=!0,T="g"):jD[T]||(P===void 0&&(P=12),O=!0,T="g"),(v||m==="0"&&y==="=")&&(v=!0,m="0",y="=");var C=b==="$"?r:b==="#"&&/[boxX]/.test(T)?"0"+T.toLowerCase():"",A=b==="$"?n:/[%p]/.test(T)?o:"",N=jD[T],M=/[defgprs%]/.test(T);P=P===void 0?6:/[gprs]/.test(T)?Math.max(1,Math.min(21,P)):Math.max(0,Math.min(20,P));function B(R){var _=C,W=A,V,F,I;if(T==="c")W=N(R)+W,R="";else{R=+R;var U=R<0||1/R<0;if(R=isNaN(R)?d:N(Math.abs(R),P),O&&(R=Iye(R)),U&&+R==0&&S!=="+"&&(U=!1),_=(U?S==="("?S:l:S==="-"||S==="("?"":S)+_,W=(T==="s"?PD[8+dU/3]:"")+W+(U&&S==="("?")":""),M){for(V=-1,F=R.length;++V<F;)if(I=R.charCodeAt(V),48>I||I>57){W=(I===46?s+R.slice(V+1):R.slice(V))+W,R=R.slice(0,V);break}}}k&&!v&&(R=t(R,1/0));var q=_.length+R.length+W.length,Z=q<j?new Array(j-q+1).join(m):"";switch(k&&v&&(R=t(Z+R,Z.length?j-W.length:1/0),Z=""),y){case"<":R=_+R+W+Z;break;case"=":R=_+Z+R+W;break;case"^":R=Z.slice(0,q=Z.length>>1)+_+R+W+Z.slice(q);break;default:R=Z+_+R+W;break}return i(R)}return B.toString=function(){return f+""},B}function g(f,m){var y=u((f=wf(f),f.type="f",f)),S=Math.max(-8,Math.min(8,Math.floor(yu(m)/3)))*3,b=Math.pow(10,-S),v=PD[8+S/3];return function(j){return y(b*j)+v}}return{format:u,formatPrefix:g}}var hx,R7,uU;Wye({thousands:",",grouping:[3],currency:["$",""]});function Wye(e){return hx=Lye(e),R7=hx.format,uU=hx.formatPrefix,hx}function $ye(e){return Math.max(0,-yu(Math.abs(e)))}function Fye(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(yu(t)/3)))*3-yu(Math.abs(e)))}function Hye(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,yu(t)-yu(e))+1}function pU(e,t,r,n){var s=BT(e,t,r),i;switch(n=wf(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=Fye(s,o))&&(n.precision=i),uU(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=Hye(s,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=$ye(s))&&(n.precision=i-(n.type==="%")*2);break}}return R7(n)}function Go(e){var t=e.domain;return e.ticks=function(r){var n=t();return _T(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var s=t();return pU(s[0],s[s.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),s=0,i=n.length-1,o=n[s],l=n[i],d,u,g=10;for(l<o&&(u=o,o=l,l=u,u=s,s=i,i=u);g-- >0;){if(u=IT(o,l,r),u===d)return n[s]=o,n[i]=l,t(n);if(u>0)o=Math.floor(o/u)*u,l=Math.ceil(l/u)*u;else if(u<0)o=Math.ceil(o*u)/u,l=Math.floor(l*u)/u;else break;d=u}return e},e}function j5(){var e=M7();return e.copy=function(){return fh(e,j5())},Ta.apply(e,arguments),Go(e)}function gU(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,v5),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return gU(e).unknown(t)},e=arguments.length?Array.from(e,v5):[0,1],Go(r)}function fU(e,t){e=e.slice();var r=0,n=e.length-1,s=e[r],i=e[n],o;return i<s&&(o=r,r=n,n=o,o=s,s=i,i=o),e[r]=t.floor(s),e[n]=t.ceil(i),e}function TD(e){return Math.log(e)}function AD(e){return Math.exp(e)}function qye(e){return-Math.log(-e)}function Uye(e){return-Math.exp(-e)}function Gye(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Vye(e){return e===10?Gye:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Xye(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function zD(e){return(t,r)=>-e(-t,r)}function D7(e){const t=e(TD,AD),r=t.domain;let n=10,s,i;function o(){return s=Xye(n),i=Vye(n),r()[0]<0?(s=zD(s),i=zD(i),e(qye,Uye)):e(TD,AD),t}return t.base=function(l){return arguments.length?(n=+l,o()):n},t.domain=function(l){return arguments.length?(r(l),o()):r()},t.ticks=l=>{const d=r();let u=d[0],g=d[d.length-1];const f=g<u;f&&([u,g]=[g,u]);let m=s(u),y=s(g),S,b;const v=l==null?10:+l;let j=[];if(!(n%1)&&y-m<v){if(m=Math.floor(m),y=Math.ceil(y),u>0){for(;m<=y;++m)for(S=1;S<n;++S)if(b=m<0?S/i(-m):S*i(m),!(b<u)){if(b>g)break;j.push(b)}}else for(;m<=y;++m)for(S=n-1;S>=1;--S)if(b=m>0?S/i(-m):S*i(m),!(b<u)){if(b>g)break;j.push(b)}j.length*2<v&&(j=_T(u,g,v))}else j=_T(m,y,Math.min(y-m,v)).map(i);return f?j.reverse():j},t.tickFormat=(l,d)=>{if(l==null&&(l=10),d==null&&(d=n===10?"s":","),typeof d!="function"&&(!(n%1)&&(d=wf(d)).precision==null&&(d.trim=!0),d=R7(d)),l===1/0)return d;const u=Math.max(1,n*l/t.ticks().length);return g=>{let f=g/i(Math.round(s(g)));return f*n<n-.5&&(f*=n),f<=u?d(g):""}},t.nice=()=>r(fU(r(),{floor:l=>i(Math.floor(s(l))),ceil:l=>i(Math.ceil(s(l)))})),t}function hU(){const e=D7(Zy()).domain([1,10]);return e.copy=()=>fh(e,hU()).base(e.base()),Ta.apply(e,arguments),e}
1061function CD(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function ED(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function _7(e){var t=1,r=e(CD(t),ED(t));return r.constant=function(n){return arguments.length?e(CD(t=+n),ED(t)):t},Go(r)}function mU(){var e=_7(Zy());return e.copy=function(){return fh(e,mU()).constant(e.constant())},Ta.apply(e,arguments)}function OD(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Kye(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Qye(e){return e<0?-e*e:e*e}function I7(e){var t=e(nn,nn),r=1;function n(){return r===1?e(nn,nn):r===.5?e(Kye,Qye):e(OD(r),OD(1/r))}return t.exponent=function(s){return arguments.length?(r=+s,n()):r},Go(t)}function B7(){var e=I7(Zy());return e.copy=function(){return fh(e,B7()).exponent(e.exponent())},Ta.apply(e,arguments),e}function Yye(){return B7.apply(null,arguments).exponent(.5)}function MD(e){return Math.sign(e)*e*e}function Zye(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function xU(){var e=M7(),t=[0,1],r=!1,n;function s(i){var o=Zye(e(i));return isNaN(o)?n:r?Math.round(o):o}return s.invert=function(i){return e.invert(MD(i))},s.domain=function(i){return arguments.length?(e.domain(i),s):e.domain()},s.range=function(i){return arguments.length?(e.range((t=Array.from(i,v5)).map(MD)),s):t.slice()},s.rangeRound=function(i){return s.range(i).round(!0)},s.round=function(i){return arguments.length?(r=!!i,s):r},s.clamp=function(i){return arguments.length?(e.clamp(i),s):e.clamp()},s.unknown=function(i){return arguments.length?(n=i,s):n},s.copy=function(){return xU(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Ta.apply(s,arguments),Go(s)}function yU(){var e=[],t=[],r=[],n;function s(){var o=0,l=Math.max(1,t.length);for(r=new Array(l-1);++o<l;)r[o-1]=nye(e,o/l);return i}function i(o){return o==null||isNaN(o=+o)?n:t[ph(r,o)]}return i.invertExtent=function(o){var l=t.indexOf(o);return l<0?[NaN,NaN]:[l>0?r[l-1]:e[0],l<r.length?r[l]:e[e.length-1]]},i.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let l of o)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(Co),s()},i.range=function(o){return arguments.length?(t=Array.from(o),s()):t.slice()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.quantiles=function(){return r.slice()},i.copy=function(){return yU().domain(e).range(t).unknown(n)},Ta.apply(i,arguments)}function bU(){var e=0,t=1,r=1,n=[.5],s=[0,1],i;function o(d){return d!=null&&d<=d?s[ph(n,d,0,r)]:i}function l(){var d=-1;for(n=new Array(r);++d<r;)n[d]=((d+1)*t-(d-r)*e)/(r+1);return o}return o.domain=function(d){return arguments.length?([e,t]=d,e=+e,t=+t,l()):[e,t]},o.range=function(d){return arguments.length?(r=(s=Array.from(d)).length-1,l()):s.slice()},o.invertExtent=function(d){var u=s.indexOf(d);return u<0?[NaN,NaN]:u<1?[e,n[0]]:u>=r?[n[r-1],t]:[n[u-1],n[u]]},o.unknown=function(d){return arguments.length&&(i=d),o},o.thresholds=function(){return n.slice()},o.copy=function(){return bU().domain([e,t]).range(s).unknown(i)},Ta.apply(Go(o),arguments)}function vU(){var e=[.5],t=[0,1],r,n=1;function s(i){return i!=null&&i<=i?t[ph(e,i,0,n)]:r}return s.domain=function(i){return arguments.length?(e=Array.from(i),n=Math.min(e.length,t.length-1),s):e.slice()},s.range=function(i){return arguments.length?(t=Array.from(i),n=Math.min(e.length,t.length-1),s):t.slice()},s.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},s.unknown=function(i){return arguments.length?(r=i,s):r},s.copy=function(){return vU().domain(e).range(t).unknown(r)},Ta.apply(s,arguments)}const ek=new Date,tk=new Date;function br(e,t,r,n){function s(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return s.floor=i=>(e(i=new Date(+i)),i),s.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),s.round=i=>{const o=s(i),l=s.ceil(i);return i-o<l-i?o:l},s.offset=(i,o)=>(t(i=new Date(+i),o==null?1:Math.floor(o)),i),s.range=(i,o,l)=>{const d=[];if(i=s.ceil(i),l=l==null?1:Math.floor(l),!(i<o)||!(l>0))return d;let u;do d.push(u=new Date(+i)),t(i,l),e(i);while(u<i&&i<o);return d},s.filter=i=>br(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!i(o););else for(;--l>=0;)for(;t(o,1),!i(o););}),r&&(s.count=(i,o)=>(ek.setTime(+i),tk.setTime(+o),e(ek),e(tk),Math.floor(r(ek,tk))),s.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?s.filter(n?o=>n(o)%i===0:o=>s.count(0,o)%i===0):s)),s}const w5=br(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);w5.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?br(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>
vendor: 4,162 bytes, line 1061
1061(r-t)/e):w5);w5.range;const ii=1e3,ga=ii*60,oi=ga*60,bi=oi*24,L7=bi*7,ND=bi*30,rk=bi*365,Fl=br(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ii)},(e,t)=>(t-e)/ii,e=>e.getUTCSeconds());Fl.range;const W7=br(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ii)},(e,t)=>{e.setTime(+e+t*ga)},(e,t)=>(t-e)/ga,e=>e.getMinutes());W7.range;const $7=br(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ga)},(e,t)=>(t-e)/ga,e=>e.getUTCMinutes());$7.range;const F7=br(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ii-e.getMinutes()*ga)},(e,t)=>{e.setTime(+e+t*oi)},(e,t)=>(t-e)/oi,e=>e.getHours());F7.range;const H7=br(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*oi)},(e,t)=>(t-e)/oi,e=>e.getUTCHours());H7.range;const hh=br(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ga)/bi,e=>e.getDate()-1);hh.range;const Jy=br(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/bi,e=>e.getUTCDate()-1);Jy.range;const SU=br(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/bi,e=>Math.floor(e/bi));SU.range;function Tc(e){return br(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*ga)/L7)}const eb=Tc(0),k5=Tc(1),Jye=Tc(2),ebe=Tc(3),bu=Tc(4),tbe=Tc(5),rbe=Tc(6);eb.range;k5.range;Jye.range;ebe.range;bu.range;tbe.range;rbe.range;function Ac(e){return br(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/L7)}const tb=Ac(0),P5=Ac(1),nbe=Ac(2),abe=Ac(3),vu=Ac(4),sbe=Ac(5),ibe=Ac(6);tb.range;P5.range;nbe.range;abe.range;vu.range;sbe.range;ibe.range;const q7=br(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());q7.range;const U7=br(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());U7.range;const vi=br(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());vi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:br(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});vi.range;const Si=br(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Si.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:br(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Si.range;function jU(e,t,r,n,s,i){const o=[[Fl,1,ii],[Fl,5,5*ii],[Fl,15,15*ii],[Fl,30,30*ii],[i,1,ga],[i,5,5*ga],[i,15,15*ga],[i,30,30*ga],[s,1,oi],[s,3,3*oi],[s,6,6*oi],[s,12,12*oi],[n,1,bi],[n,2,2*bi],[r,1,L7],[t,1,ND],[t,3,3*ND],[e,1,rk]];function l(u,g,f){const m=g<u;m&&([u,g]=[g,u]);const y=f&&typeof f.range=="function"?f:d(u,g,f),S=y?y.range(u,+g+1):[];return m?S.reverse():S}function d(u,g,f){const m=Math.abs(g-u)/f,y=A7(([,,v])=>v).right(o,m);if(y===o.length)return e.every(BT(u/rk,g/rk,f));if(y===0)return w5.every(Math.max(BT(u,g,f),1));const[S,b]=o[m/o[y-1][2]<o[y][2]/m?y-1:y];return S.every(b)}return[l,d]}const[obe,lbe]=jU(Si,U7,tb,SU,H7,$7),[cbe,dbe]=jU(vi,q7,eb,hh,F7,W7);function nk(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function ak(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function rg(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function ube(e){var t=e.dateTime,r=e.date,n=e.time,s=e.periods,i=e.days,o=e.shortDays,l=e.months,d=e.shortMonths,u=ng(s),g=ag(s),f=ng(i),m=ag(i),y=ng(o),S=ag(o),b=ng(l),v=ag(l),j=ng(d),k=ag(
vendor: 6,121 bytes, line 1061
1061d),P={a:U,A:q,b:Z,B:le,c:null,d:LD,e:LD,f:Rbe,g:qbe,G:Gbe,H:Obe,I:Mbe,j:Nbe,L:wU,m:Dbe,M:_be,p:H,q:K,Q:FD,s:HD,S:Ibe,u:Bbe,U:Lbe,V:Wbe,w:$be,W:Fbe,x:null,X:null,y:Hbe,Y:Ube,Z:Vbe,"%":$D},O={a:Q,A:re,b:ue,B:xe,c:null,d:WD,e:WD,f:Ybe,g:o1e,G:c1e,H:Xbe,I:Kbe,j:Qbe,L:PU,m:Zbe,M:Jbe,p:Se,q:ze,Q:FD,s:HD,S:e1e,u:t1e,U:r1e,V:n1e,w:a1e,W:s1e,x:null,X:null,y:i1e,Y:l1e,Z:d1e,"%":$D},T={a:B,A:R,b:_,B:W,c:V,d:ID,e:ID,f:Abe,g:_D,G:DD,H:BD,I:BD,j:wbe,L:Tbe,m:jbe,M:kbe,p:M,q:Sbe,Q:Cbe,s:Ebe,S:Pbe,u:mbe,U:xbe,V:ybe,w:hbe,W:bbe,x:F,X:I,y:_D,Y:DD,Z:vbe,"%":zbe};P.x=C(r,P),P.X=C(n,P),P.c=C(t,P),O.x=C(r,O),O.X=C(n,O),O.c=C(t,O);function C(fe,Oe){return function(Ne){var ge=[],it=-1,He=0,zt=fe.length,Tt,Wt,cn;for(Ne instanceof Date||(Ne=new Date(+Ne));++it<zt;)fe.charCodeAt(it)===37&&(ge.push(fe.slice(He,it)),(Wt=RD[Tt=fe.charAt(++it)])!=null?Tt=fe.charAt(++it):Wt=Tt==="e"?" ":"0",(cn=Oe[Tt])&&(Tt=cn(Ne,Wt)),ge.push(Tt),He=it+1);return ge.push(fe.slice(He,it)),ge.join("")}}function A(fe,Oe){return function(Ne){var ge=rg(1900,void 0,1),it=N(ge,fe,Ne+="",0),He,zt;if(it!=Ne.length)return null;if("Q"in ge)return new Date(ge.Q);if("s"in ge)return new Date(ge.s*1e3+("L"in ge?ge.L:0));if(Oe&&!("Z"in ge)&&(ge.Z=0),"p"in ge&&(ge.H=ge.H%12+ge.p*12),ge.m===void 0&&(ge.m="q"in ge?ge.q:0),"V"in ge){if(ge.V<1||ge.V>53)return null;"w"in ge||(ge.w=1),"Z"in ge?(He=ak(rg(ge.y,0,1)),zt=He.getUTCDay(),He=zt>4||zt===0?P5.ceil(He):P5(He),He=Jy.offset(He,(ge.V-1)*7),ge.y=He.getUTCFullYear(),ge.m=He.getUTCMonth(),ge.d=He.getUTCDate()+(ge.w+6)%7):(He=nk(rg(ge.y,0,1)),zt=He.getDay(),He=zt>4||zt===0?k5.ceil(He):k5(He),He=hh.offset(He,(ge.V-1)*7),ge.y=He.getFullYear(),ge.m=He.getMonth(),ge.d=He.getDate()+(ge.w+6)%7)}else("W"in ge||"U"in ge)&&("w"in ge||(ge.w="u"in ge?ge.u%7:"W"in ge?1:0),zt="Z"in ge?ak(rg(ge.y,0,1)).getUTCDay():nk(rg(ge.y,0,1)).getDay(),ge.m=0,ge.d="W"in ge?(ge.w+6)%7+ge.W*7-(zt+5)%7:ge.w+ge.U*7-(zt+6)%7);return"Z"in ge?(ge.H+=ge.Z/100|0,ge.M+=ge.Z%100,ak(ge)):nk(ge)}}function N(fe,Oe,Ne,ge){for(var it=0,He=Oe.length,zt=Ne.length,Tt,Wt;it<He;){if(ge>=zt)return-1;if(Tt=Oe.charCodeAt(it++),Tt===37){if(Tt=Oe.charAt(it++),Wt=T[Tt in RD?Oe.charAt(it++):Tt],!Wt||(ge=Wt(fe,Ne,ge))<0)return-1}else if(Tt!=Ne.charCodeAt(ge++))return-1}return ge}function M(fe,Oe,Ne){var ge=u.exec(Oe.slice(Ne));return ge?(fe.p=g.get(ge[0].toLowerCase()),Ne+ge[0].length):-1}function B(fe,Oe,Ne){var ge=y.exec(Oe.slice(Ne));return ge?(fe.w=S.get(ge[0].toLowerCase()),Ne+ge[0].length):-1}function R(fe,Oe,Ne){var ge=f.exec(Oe.slice(Ne));return ge?(fe.w=m.get(ge[0].toLowerCase()),Ne+ge[0].length):-1}function _(fe,Oe,Ne){var ge=j.exec(Oe.slice(Ne));return ge?(fe.m=k.get(ge[0].toLowerCase()),Ne+ge[0].length):-1}function W(fe,Oe,Ne){var ge=b.exec(Oe.slice(Ne));return ge?(fe.m=v.get(ge[0].toLowerCase()),Ne+ge[0].length):-1}function V(fe,Oe,Ne){return N(fe,t,Oe,Ne)}function F(fe,Oe,Ne){return N(fe,r,Oe,Ne)}function I(fe,Oe,Ne){return N(fe,n,Oe,Ne)}function U(fe){return o[fe.getDay()]}function q(fe){return i[fe.getDay()]}function Z(fe){return d[fe.getMonth()]}function le(fe){return l[fe.getMonth()]}function H(fe){return s[+(fe.getHours()>=12)]}function K(fe){return 1+~~(fe.getMonth()/3)}function Q(fe){return o[fe.getUTCDay()]}function re(fe){return i[fe.getUTCDay()]}function ue(fe){return d[fe.getUTCMonth()]}function xe(fe){return l[fe.getUTCMonth()]}function Se(fe){return s[+(fe.getUTCHours()>=12)]}function ze(fe){return 1+~~(fe.getUTCMonth()/3)}return{format:function(fe){var Oe=C(fe+="",P);return Oe.toString=function(){return fe},Oe},parse:function(fe){var Oe=A(fe+="",!1);return Oe.toString=function(){return fe},Oe},utcFormat:function(fe){var Oe=C(fe+="",O);return Oe.toString=function(){return fe},Oe},utcParse:function(fe){var Oe=A(fe+="",!0);return Oe.toString=function(){return fe},Oe}}}var RD={"-":"",_:" ",0:"0"},Ar=/^\s*\d+/,pbe=/^%/,gbe=/[\\^$*+?|[\]().{}]/g;function dt(e,t,r){var n=e<0?"-":"",s=(n?-e:e)+"",i=s.length;return n+(i<r?new Array(r-i+1).join(t)+s:s)}function fbe(e){return e.replace(gbe,"\\$&")}function ng(e){return new RegExp("^(?:"+e.map(fbe).join("|")+")","i")}function ag(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function hbe(e,t,r){var n=Ar.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function mbe(e,t,r){var n=Ar.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function xbe(e,t,r){var n=Ar.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function ybe(e,t,r){var n=Ar.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function bbe(e,t,r){var n=Ar.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function DD(e,t,r){var n=Ar.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function _D(e,t,r){var n=Ar.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function vbe(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function Sbe(e,t,r){var n=Ar.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function jbe(e,t,r){var n=Ar.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function ID(e,t,r){var n=Ar.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function wbe(e,t,r){var n=Ar.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function BD(e,t,r){var n=Ar.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function kbe(e,t,r){var n=Ar.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function Pbe(e,t,r){var n=Ar.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function Tbe(e,t,r){var n=Ar.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function Abe(e,t,r){var n=Ar.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function zbe(e,t,r){var n=pbe.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function Cbe(e,t,r){var n=Ar.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function Ebe(e,t,r){var n=Ar.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function LD(e,t){return dt(e.getDate(),t,2)}function Obe(e,t){return dt(e.getHours(),t,2)}function Mbe(e,t){return dt(e.getHours()%12||12,t,2)}
1061function Nbe(e,t){return dt(1+hh.count(vi(e),e),t,3)}function wU(e,t){return dt(e.getMilliseconds(),t,3)}function Rbe(e,t){return wU(e,t)+"000"}function Dbe(e,t){return dt(e.getMonth()+1,t,2)}function _be(e,t){return dt(e.getMinutes(),t,2)}function Ibe(e,t){return dt(e.getSeconds(),t,2)}function Bbe(e){var t=e.getDay();return t===0?7:t}function Lbe(e,t){return dt(eb.count(vi(e)-1,e),t,2)}function kU(e){var t=e.getDay();return t>=4||t===0?bu(e):bu.ceil(e)}function Wbe(e,t){return e=kU(e),dt(bu.count(vi(e),e)+(vi(e).getDay()===4),t,2)}function $be(e){return e.getDay()}function Fbe(e,t){return dt(k5.count(vi(e)-1,e),t,2)}function Hbe(e,t){return dt(e.getFullYear()%100,t,2)}function qbe(e,t){return e=kU(e),dt(e.getFullYear()%100,t,2)}function Ube(e,t){return dt(e.getFullYear()%1e4,t,4)}function Gbe(e,t){var r=e.getDay();return e=r>=4||r===0?bu(e):bu.ceil(e),dt(e.getFullYear()%1e4,t,4)}function Vbe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+dt(t/60|0,"0",2)+dt(t%60,"0",2)}function WD(e,t){return dt(e.getUTCDate(),t,2)}function Xbe(e,t){return dt(e.getUTCHours(),t,2)}function Kbe(e,t){return dt(e.getUTCHours()%12||12,t,2)}function Qbe(e,t){return dt(1+Jy.count(Si(e),e),t,3)}function PU(e,t){return dt(e.getUTCMilliseconds(),t,3)}function Ybe(e,t){return PU(e,t)+"000"}function Zbe(e,t){return dt(e.getUTCMonth()+1,t,2)}function Jbe(e,t){return dt(e.getUTCMinutes(),t,2)}function e1e(e,t){return dt(e.getUTCSeconds(),t,2)}function t1e(e){var t=e.getUTCDay();return t===0?7:t}function r1e(e,t){return dt(tb.count(Si(e)-1,e),t,2)}function TU(e){var t=e.getUTCDay();return t>=4||t===0?vu(e):vu.ceil(e)}function n1e(e,t){return e=TU(e),dt(vu.count(Si(e),e)+(Si(e).getUTCDay()===4),t,2)}function a1e(e){return e.getUTCDay()}function s1e(e,t){return dt(P5.count(Si(e)-1,e),t,2)}function i1e(e,t){return dt(e.getUTCFullYear()%100,t,2)}function o1e(e,t){return e=TU(e),dt(e.getUTCFullYear()%100,t,2)}function l1e(e,t){return dt(e.getUTCFullYear()%1e4,t,4)}function c1e(e,t){var r=e.getUTCDay();return e=r>=4||r===0?vu(e):vu.ceil(e),dt(e.getUTCFullYear()%1e4,t,4)}function d1e(){return"+0000"}function $D(){return"%"}function FD(e){return+e}function HD(e){return Math.floor(+e/1e3)}var kd,AU,zU;u1e({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function u1e(e){return kd=ube(e),AU=kd.format,kd.parse,zU=kd.utcFormat,kd.utcParse,kd}function p1e(e){return new Date(e)}function g1e(e){return e instanceof Date?+e:+new Date(+e)}function G7(e,t,r,n,s,i,o,l,d,u){var g=M7(),f=g.invert,m=g.domain,y=u(".%L"),S=u(":%S"),b=u("%I:%M"),v=u("%I %p"),j=u("%a %d"),k=u("%b %d"),P=u("%B"),O=u("%Y");function T(C){return(d(C)<C?y:l(C)<C?S:o(C)<C?b:i(C)<C?v:n(C)<C?s(C)<C?j:k:r(C)<C?P:O)(C)}return g.invert=function(C){return new Date(f(C))},g.domain=function(C){return arguments.length?m(Array.from(C,g1e)):m().map(p1e)},g.ticks=function(C){var A=m();return e(A[0],A[A.length-1],C??10)},g.tickFormat=function(C,A){return A==null?T:u(A)},g.nice=function(C){var A=m();return(!C||typeof C.range!="function")&&(C=t(A[0],A[A.length-1],C??10)),C?m(fU(A,C)):g},g.copy=function(){return fh(g,G7(e,t,r,n,s,i,o,l,d,u))},g}function f1e(){return Ta.apply(G7(cbe,dbe,vi,q7,eb,hh,F7,W7,Fl,AU).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function h1e(){return Ta.apply(G7(obe,lbe,Si,U7,tb,Jy,H7,$7,Fl,zU).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function rb(){var e=0,t=1,r,n,s,i,o=nn,l=!1,d;function u(f){return f==null||isNaN(f=+f)?d:o(s===0?.5:(f=(i(f)-r)*s,l?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,r=i(e=+e),n=i(t=+t),s=r===n?0:1/(n-r),u):[e,t]},u.clamp=function(f){return arguments.length?(l=!!f,u):l},u.interpolator=function(f){return arguments.length?(o=f,u):o};function g(f){return function(m){var y,S;return arguments.length?([y,S]=m,o=f(y,S),u):[o(0),o(1)]}}return u.range=g(Xu),u.rangeRound=g(O7),u.unknown=function(f){return arguments.length?(d=f,u):d},function(f){return i=f,r=f(e),n=f(t),s=r===n?0:1/(n-r),u}}function Vo(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function CU(){var e=Go(rb()(nn));return e.copy=function(){return Vo(e,CU())},Ci.apply(e,arguments)}function EU(){var e=D7(rb()).domain([1,10]);return e.copy=function(){return Vo(e,EU()).base(e.base())},Ci.apply(e,arguments)}function OU(){var e=_7(rb());return e.copy=function(){return Vo(e,OU()).constant(e.constant())},Ci.apply(e,arguments)}function V7(){var e=I7(rb());return e.copy=function(){return Vo(e,V7()).exponent(e.exponent())},Ci.apply(e,arguments)}function m1e(){return V7.apply(null,arguments).exponent(.5)}function MU(){var e=[],t=nn;function r(n){if(n!=null&&!isNaN(n=+n))return t((ph(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let s of n)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(Co),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,s)=>t(s/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(s,i)=>rye(e,i/n))},r.copy=function(){return MU(t).domain(e)},Ci.apply(r,arguments)}function nb(){var e=0,t=.5,r=1,n=1,s,i,o,l,d,u=nn,g,f=!1,m;function y(b){return isNaN(b=+b)?m:(b=.5+((b=+g(b))-i)*(n*b<n*i?l:d),u(f?Math.max(0,Math.min(1,b)):b))}y.domain=function(b){return arguments.length?([e,t,r]=b,s=g(e=+e),i=g(t=+t),o=g(r=+r),l=s===i?0:.5/(i-s),d=i===o?0:.5/(o-i),n=i<s?-1:1,y):[e,t,r]},y.clamp=function(b){return arguments.length?(f=!!b,y):f},y.interpolator=function(b){return arguments.length?(u=b,y):u};function S(b){return function(v){var j,k,P;return arguments.length?([j,k,P]=v,u=zye(b,[j,k,P]),y):[u(0),u(.5),u(1)]}}return y.range=S(Xu),y.rangeRound=S(O7),y.unknown=function(b){return arguments.length?(m=b,y):m},function(b){return g=b,s=b(e),i=b(t),o=b(r),l=s===i?0:.5/(i-s),d=i===o?0:.5/(o-i),n=i<s?-1:1,y}}function NU(){var e=Go(nb()(nn));return e.copy=function(){return Vo(e,NU())},Ci.apply(e,arguments)}function RU(){var e=D7(nb()).domain([.1,1,10]);return e.copy=function(){return Vo(e,RU()).base(e.base())},Ci.apply(e,arguments)}function DU(){var e=_7(nb());return e.copy=function(){return Vo(e,DU()).constant(e.constant())},Ci.apply(e,arguments)}function X7(){var e=I7(nb());return e.copy=function(){return Vo(e,X7()).exponent(e.exponent())},Ci.apply(e,arguments)}function x1e(){return X7.apply(null,arguments).exponent(.5)}const qD=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:bf,scaleDiverging:NU,scaleDivergingLog:RU,scaleDivergingPow:X7,scaleDivergingSqrt:x1e,scaleDivergingSymlog:DU,scaleIdentity:gU,scaleImplicit:LT,scaleLinear:j5,scaleLog:hU,scaleOrdinal:z7,scalePoint:Ig,scalePow:B7,scaleQuantile:yU,scaleQuantize:bU,scaleRadial:xU,scaleSequential:CU,scaleSequentialLog:EU,scaleSequentialPow:V7,scaleSequentialQuantile:MU,scaleSequentialSqrt:m1e,scaleSequentialSymlog:OU,scaleSqrt:Yye,scaleSymlog:mU,scaleThreshold:vU,scaleTime:f1e,scaleUtc:h1e,tickFormat:pU},Symbol.toStringTag,{value:"Module"}));var sk,UD;function _U(){if(UD)return sk;UD=1;var e=qu();function t(r,n,s){for(var i=-1,o=r.length;++i<o;){var l=r[i],d=n(l);if(d!=null&&(u===void 0?d===d&&!e(d):s(d,u)))var u=d,g=l}return g}return sk=t,sk}var ik,GD;function y1e(){if(GD)return ik;GD=1;function e(t,r){return t>r}return ik=e,ik}var ok,VD;
vendor: 66,020 bytes, lines 1061-1087
1061function b1e(){if(VD)return ok;VD=1;var e=_U(),t=y1e(),r=Gu();function n(s){return s&&s.length?e(s,r,t):void 0}return ok=n,ok}var v1e=b1e();const ab=jt(v1e);var lk,XD;function S1e(){if(XD)return lk;XD=1;function e(t,r){return t<r}return lk=e,lk}var ck,KD;function j1e(){if(KD)return ck;KD=1;var e=_U(),t=S1e(),r=Gu();function n(s){return s&&s.length?e(s,r,t):void 0}return ck=n,ck}var w1e=j1e();const sb=jt(w1e);var dk,QD;function k1e(){if(QD)return dk;QD=1;var e=d7(),t=Uo(),r=qq(),n=An();function s(i,o){var l=n(i)?e:r;return l(i,t(o,3))}return dk=s,dk}var uk,YD;function P1e(){if(YD)return uk;YD=1;var e=Fq(),t=k1e();function r(n,s){return e(t(n,s),1)}return uk=r,uk}var T1e=P1e();const A1e=jt(T1e);var pk,ZD;function z1e(){if(ZD)return pk;ZD=1;var e=w7();function t(r,n){return e(r,n)}return pk=t,pk}var C1e=z1e();const ib=jt(C1e);var Ku=1e9,E1e={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Q7,Dt=!0,va="[DecimalError] ",Ql=va+"Invalid argument: ",K7=va+"Exponent out of range: ",Qu=Math.floor,Cl=Math.pow,O1e=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Fn,kr=1e7,Mt=7,IU=9007199254740991,T5=Qu(IU/Mt),ke={};ke.absoluteValue=ke.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};ke.comparedTo=ke.cmp=function(e){var t,r,n,s,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(n=i.d.length,s=e.d.length,t=0,r=n<s?n:s;t<r;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return n===s?0:n>s^i.s<0?1:-1};ke.decimalPlaces=ke.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Mt;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};ke.dividedBy=ke.div=function(e){return hi(this,new this.constructor(e))};ke.dividedToIntegerBy=ke.idiv=function(e){var t=this,r=t.constructor;return Pt(hi(t,new r(e),0,1),r.precision)};ke.equals=ke.eq=function(e){return!this.cmp(e)};ke.exponent=function(){return dr(this)};ke.greaterThan=ke.gt=function(e){return this.cmp(e)>0};ke.greaterThanOrEqualTo=ke.gte=function(e){return this.cmp(e)>=0};ke.isInteger=ke.isint=function(){return this.e>this.d.length-2};ke.isNegative=ke.isneg=function(){return this.s<0};ke.isPositive=ke.ispos=function(){return this.s>0};ke.isZero=function(){return this.s===0};ke.lessThan=ke.lt=function(e){return this.cmp(e)<0};ke.lessThanOrEqualTo=ke.lte=function(e){return this.cmp(e)<1};ke.logarithm=ke.log=function(e){var t,r=this,n=r.constructor,s=n.precision,i=s+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Fn))throw Error(va+"NaN");if(r.s<1)throw Error(va+(r.s?"NaN":"-Infinity"));return r.eq(Fn)?new n(0):(Dt=!1,t=hi(kf(r,i),kf(e,i),i),Dt=!0,Pt(t,s))};ke.minus=ke.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?WU(t,e):BU(t,(e.s=-e.s,e))};ke.modulo=ke.mod=function(e){var t,r=this,n=r.constructor,s=n.precision;if(e=new n(e),!e.s)throw Error(va+"NaN");return r.s?(Dt=!1,t=hi(r,e,0,1).times(e),Dt=!0,r.minus(t)):Pt(new n(r),s)};ke.naturalExponential=ke.exp=function(){return LU(this)};ke.naturalLogarithm=ke.ln=function(){return kf(this)};ke.negated=ke.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ke.plus=ke.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?BU(t,e):WU(t,(e.s=-e.s,e))};ke.precision=ke.sd=function(e){var t,r,n,s=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Ql+e);if(t=dr(s)+1,n=s.d.length-1,r=n*Mt+1,n=s.d[n],n){for(;n%10==0;n/=10)r--;for(n=s.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};ke.squareRoot=ke.sqrt=function(){var e,t,r,n,s,i,o,l=this,d=l.constructor;if(l.s<1){if(!l.s)return new d(0);throw Error(va+"NaN")}for(e=dr(l),Dt=!1,s=Math.sqrt(+l),s==0||s==1/0?(t=xs(l.d),(t.length+e)%2==0&&(t+="0"),s=Math.sqrt(t),e=Qu((e+1)/2)-(e<0||e%2),s==1/0?t="5e"+e:(t=s.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new d(t)):n=new d(s.toString()),r=d.precision,s=o=r+3;;)if(i=n,n=i.plus(hi(l,i,o+2)).times(.5),xs(i.d).slice(0,o)===(t=xs(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),s==o&&t=="4999"){if(Pt(i,r+1,0),i.times(i).eq(l)){n=i;break}}else if(t!="9999")break;o+=4}return Dt=!0,Pt(n,r)};ke.times=ke.mul=function(e){var t,r,n,s,i,o,l,d,u,g=this,f=g.constructor,m=g.d,y=(e=new f(e)).d;if(!g.s||!e.s)return new f(0);for(e.s*=g.s,r=g.e+e.e,d=m.length,u=y.length,d<u&&(i=m,m=y,y=i,o=d,d=u,u=o),i=[],o=d+u,n=o;n--;)i.push(0);for(n=u;--n>=0;){for(t=0,s=d+n;s>n;)l=i[s]+y[n]*m[s-n-1]+t,i[s--]=l%kr|0,t=l/kr|0;i[s]=(i[s]+t)%kr|0}for(;!i[--o];)i.pop();return t?++r:i.shift(),e.d=i,e.e=r,Dt?Pt(e,f.precision):e};ke.toDecimalPlaces=ke.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(ks(e,0,Ku),t===void 0?t=n.rounding:ks(t,0,8),Pt(r,e+dr(r)+1,t))};ke.toExponential=function(e,t){var r,n=this,s=n.constructor;return e===void 0?r=cc(n,!0):(ks(e,0,Ku),t===void 0?t=s.rounding:ks(t,0,8),n=Pt(new s(n),e+1,t),r=cc(n,!0,e+1)),r};ke.toFixed=function(e,t){var r,n,s=this,i=s.constructor;return e===void 0?cc(s):(ks(e,0,Ku),t===void 0?t=i.rounding:ks(t,0,8),n=Pt(new i(s),e+dr(s)+1,t),r=cc(n.abs(),!1,e+dr(n)+1),s.isneg()&&!s.isZero()?"-"+r:r)};ke.toInteger=ke.toint=function(){var e=this,t=e.constructor;return Pt(new t(e),dr(e)+1,t.rounding)};ke.toNumber=function(){return+this};ke.toPower=ke.pow=function(e){var t,r,n,s,i,o,l=this,d=l.constructor,u=12,g=+(e=new d(e));if(!e.s)return new d(Fn);if(l=new d(l),!l.s){if(e.s<1)throw Error(va+"Infinity");return l}if(l.eq(Fn))return l;if(n=d.precision,e.eq(Fn))return Pt(l,n);if(t=e.e,r=e.d.length-1,o=t>=r,i=l.s,o){if((r=g<0?-g:g)<=IU){for(s=new d(Fn),t=Math.ceil(n/Mt+4),Dt=!1;r%2&&(s=s.times(l),e_(s.d,t)),r=Qu(r/2),r!==0;)l=l.times(l),e_(l.d,t);return Dt=!0,e.s<0?new d(Fn).div(s):Pt(s,n)}}else if(i<0)throw Error(va+"NaN");return i=i<0&&e.d[Math.max(t,r)]&1?-1:1,l.s=1,Dt=!1,s=e.times(kf(l,n+u)),Dt=!0,s=LU(s),s.s=i,s};ke.toPrecision=function(e,t){var r,n,s=this,i=s.constructor;return e===void 0?(r=dr(s),n=cc(s,r<=i.toExpNeg||r>=i.toExpPos)):(ks(e,1,Ku),t===void 0?t=i.rounding:ks(t,0,8),s=Pt(new i(s),e,t),r=dr(s),n=cc(s,e<=r||r<=i.toExpNeg,e)),n};ke.toSignificantDigits=ke.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(ks(e,1,Ku),t===void 0?t=n.rounding:ks(t,0,8)),Pt(new n(r),e,t)};ke.toString=ke.valueOf=ke.val=ke.toJSON=ke[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=dr(e),r=e.constructor;return cc(e,t<=r.toExpNeg||t>=r.toExpPos)};function BU(e,t){var r,n,s,i,o,l,d,u,g=e.constructor,f=g.precision;if(!e.s||!t.s)return t.s||(t=new g(e)),Dt?Pt(t,f):t;if(d=e.d,u=t.d,o=e.e,s=t.e,d=d.slice(),i=o-s,i){for(i<0?(n=d,i=-i,l=u.length):(n=u,s=o,l=d.length),o=Math.ceil(f/Mt),l=o>l?o+1:l+1,i>l&&(i=l,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for(l=d.length,i=u.length,l-i<0&&(i=l,n=u,u=d,d=n),r=0;i;)r=(d[--i]=d[i]+u[i]+r)/kr|0,d[i]%=kr;for(r&&(d.unshift(r),++s),l=d.length;d[--l]==0;)d.pop();return t.d=d,t.e=s,Dt?Pt(t,f):t}function ks(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Ql+e)}function xs(e){var t,r,n,s=e.length-1,i="",o=e[0];if(s>0){for(i+=o,t=1;t<s;t++)n=e[t]+"",r=Mt-n.length,r&&(i+=ho(r)),i+=n;o=e[t],n=o+"",r=Mt-n.length,r&&(i+=ho(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return i+o}var hi=(function(){function e(n,s){var i,o=0,l=n.length;for(n=n.slice();l--;)i=n[l]*s+o,n[l]=i%kr|0,o=i/kr|0;return o&&n.unshift(o),n}function t(n,s,i,o){var l,d;if(i!=o)d=i>o?1:-1;else for(l=d=0;l<i;l++)if(n[l]!=s[l]){d=n[l]>s[l]?1:-1;break}return d}function r(n,s,i){for(var o=0;i--;)n[i]-=o,o=n[i]<s[i]?1:0,n[i]=o*kr+n[i]-s[i];for(;!n[0]&&n.length>1;)n.shift()}return function(n,s,i,o){var l,d,u,g,f,m,y,S,b,v,j,k,P,O,T,C,A,N,M=n.constructor,B=n.s==s.s?1:-1,R=n.d,_=s.d;if(!n.s)return new M(n);if(!s.s)throw Error(va+"Division by zero");for(d=n.e-s.e,A=_.length,T=R.length,y=new M(B),S=y.d=[],u=0;_[u]==(R[u]||0);)++u;if(_[u]>(R[u]||0)&&--d,i==null?k=i=M.precision:o?k=i+(dr(n)-dr(s))+1:k=i,k<0)return new M(0);if(k=k/Mt+2|0,u=0,A==1)for(g=0,_=_[0],k++;(u<T||g)&&k--;u++)P=g*kr+(R[u]||0),S[u]=P/_|0,g=P%_|0;else{for(g=kr/(_[0]+1)|0,g>1&&(_=e(_,g),R=e(R,g),A=_.length,T=R.length),O=A,b=R.slice(0,A),v=b.length;v<A;)b[v++]=0;N=_.slice(),N.unshift(0),C=_[0],_[1]>=kr/2&&++C;do g=0,l=t(_,b,A,v),l<0?(j=b[0],A!=v&&(j=j*kr+(b[1]||0)),g=j/C|0,g>1?(g>=kr&&(g=kr-1),f=e(_,g),m=f.length,v=b.length,l=t(f,b,m,v),l==1&&(g--,r(f,A<m?N:_,m))):(g==0&&(l=g=1),f=_.slice()),m=f.length,m<v&&f.unshift(0),r(b,f,v),l==-1&&(v=b.length,l=t(_,b,A,v),l<1&&(g++,r(b,A<v?N:_,v))),v=b.length):l===0&&(g++,b=[0]),S[u++]=g,l&&b[0]?b[v++]=R[O]||0:(b=[R[O]],v=1);while((O++<T||b[0]!==void 0)&&k--)}return S[0]||S.shift(),y.e=d,Pt(y,o?i+dr(y)+1:i)}})();function LU(e,t){var r,n,s,i,o,l,d=0,u=0,g=e.constructor,f=g.precision;if(dr(e)>16)throw Error(K7+dr(e));if(!e.s)return new g(Fn);for(Dt=!1,l=f,o=new g(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log(Cl(2,u))/Math.LN10*2+5|0,l+=n,r=s=i=new g(Fn),g.precision=l;;){if(s=Pt(s.times(e),l),r=r.times(++d),o=i.plus(hi(s,r,l)),xs(o.d).slice(0,l)===xs(i.d).slice(0,l)){for(;u--;)i=Pt(i.times(i),l);return g.precision=f,t==null?(Dt=!0,Pt(i,f)):i}i=o}}function dr(e){for(var t=e.e*Mt,r=e.d[0];r>=10;r/=10)t++;return t}function gk(e,t,r){if(t>e.LN10.sd())throw Dt=!0,r&&(e.precision=r),Error(va+"LN10 precision limit exceeded");return Pt(new e(e.LN10),t)}function ho(e){for(var t="";e--;)t+="0";return t}function kf(e,t){var r,n,s,i,o,l,d,u,g,f=1,m=10,y=e,S=y.d,b=y.constructor,v=b.precision;if(y.s<1)throw Error(va+(y.s?"NaN":"-Infinity"));if(y.eq(Fn))return new b(0);if(t==null?(Dt=!1,u=v):u=t,y.eq(10))return t==null&&(Dt=!0),gk(b,u);if(u+=m,b.precision=u,r=xs(S),n=r.charAt(0),i=dr(y),Math.abs(i)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)y=y.times(e),r=xs(y.d),n=r.charAt(0),f++;i=dr(y),n>1?(y=new b("0."+r),i++):y=new b(n+"."+r.slice(1))}else return d=gk(b,u+2,v).times(i+""),y=kf(new b(n+"."+r.slice(1)),u-m).plus(d),b.precision=v,t==null?(Dt=!0,Pt(y,v)):y;for(l=o=y=hi(y.minus(Fn),y.plus(Fn),u),g=Pt(y.times(y),u),s=3;;){if(o=Pt(o.times(g),u),d=l.plus(hi(o,new b(s),u)),xs(d.d).slice(0,u)===xs(l.d).slice(0,u))return l=l.times(2),i!==0&&(l=l.plus(gk(b,u+2,v).times(i+""))),l=hi(l,new b(f),u),b.precision=v,t==null?(Dt=!0,Pt(l,v)):l;l=d,s+=2}}function JD(e,t){var r,n,s;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(s=t.length;t.charCodeAt(s-1)===48;)--s;if(t=t.slice(n,s),t){if(s-=n,r=r-n-1,e.e=Qu(r/Mt),e.d=[],n=(r+1)%Mt,r<0&&(n+=Mt),n<s){for(n&&e.d.push(+t.slice(0,n)),s-=Mt;n<s;)e.d.push(+t.slice(n,n+=Mt));t=t.slice(n),n=Mt-t.length}else n-=s;for(;n--;)t+="0";if(e.d.push(+t),Dt&&(e.e>T5||e.e<-T5))throw Error(K7+r)}else e.s=0,e.e=0,e.d=[0];return e}function Pt(e,t,r){var n,s,i,o,l,d,u,g,f=e.d;for(o=1,i=f[0];i>=10;i/=10)o++;if(n=t-o,n<0)n+=Mt,s=t,u=f[g=0];else{if(g=Math.ceil((n+1)/Mt),i=f.length,g>=i)return e;for(u=i=f[g],o=1;i>=10;i/=10)o++;n%=Mt,s=n-Mt+o}if(r!==void 0&&(i=Cl(10,o-s-1),l=u/i%10|0,d=t<0||f[g+1]!==void 0||u%i,d=r<4?(l||d)&&(r==0||r==(e.s<0?3:2)):l>5||l==5&&(r==4||d||r==6&&(n>0?s>0?u/Cl(10,o-s):0:f[g-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return d?(i=dr(e),f.length=1,t=t-i-1,f[0]=Cl(10,(Mt-t%Mt)%Mt),e.e=Qu(-t/Mt)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=g,i=1,g--):(f.length=g+1,i=Cl(10,Mt-n),f[g]=s>0?(u/Cl(10,o-s)%Cl(10,s)|0)*i:0),d)for(;;)if(g==0){(f[0]+=i)==kr&&(f[0]=1,++e.e);break}else{if(f[g]+=i,f[g]!=kr)break;f[g--]=0,i=1}for(n=f.length;f[--n]===0;)f.pop();if(Dt&&(e.e>T5||e.e<-T5))throw Error(K7+dr(e));return e}function WU(e,t){var r,n,s,i,o,l,d,u,g,f,m=e.constructor,y=m.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new m(e),Dt?Pt(t,y):t;if(d=e.d,f=t.d,n=t.e,u=e.e,d=d.slice(),o=u-n,o){for(g=o<0,g?(r=d,o=-o,l=f.length):(r=f,n=u,l=d.length),s=Math.max(Math.ceil(y/Mt),l)+2,o>s&&(o=s,r.length=1),r.reverse(),s=o;s--;)r.push(0);r.reverse()}else{for(s=d.length,l=f.length,g=s<l,g&&(l=s),s=0;s<l;s++)if(d[s]!=f[s]){g=d[s]<f[s];break}o=0}for(g&&(r=d,d=f,f=r,t.s=-t.s),l=d.length,s=f.length-l;s>0;--s)d[l++]=0;for(s=f.length;s>o;){if(d[--s]<f[s]){for(i=s;i&&d[--i]===0;)d[i]=kr-1;--d[i],d[s]+=kr}d[s]-=f[s]}for(;d[--l]===0;)d.pop();for(;d[0]===0;d.shift())--n;return d[0]?(t.d=d,t.e=n,Dt?Pt(t,y):t):new m(0)}function cc(e,t,r){var n,s=dr(e),i=xs(e.d),o=i.length;return t?(r&&(n=r-o)>0?i=i.charAt(0)+"."+i.slice(1)+ho(n):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(s<0?"e":"e+")+s):s<0?(i="0."+ho(-s-1)+i,r&&(n=r-o)>0&&(i+=ho(n))):s>=o?(i+=ho(s+1-o),r&&(n=r-s-1)>0&&(i=i+"."+ho(n))):((n=s+1)<o&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-o)>0&&(s+1===o&&(i+="."),i+=ho(n))),e.s<0?"-"+i:i}function e_(e,t){if(e.length>t)return e.length=t,!0}function $U(e){var t,r,n;function s(i){var o=this;if(!(o instanceof s))return new s(i);if(o.constructor=s,i instanceof s){o.s=i.s,o.e=i.e,o.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(Ql+i);if(i>0)o.s=1;else if(i<0)i=-i,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(i===~~i&&i<1e7){o.e=0,o.d=[i];return}return JD(o,i.toString())}else if(typeof i!="string")throw Error(Ql+i);if(i.charCodeAt(0)===45?(i=i.slice(1),o.s=-1):o.s=1,O1e.test(i))JD(o,i);else throw Error(Ql+i)}if(s.prototype=ke,s.ROUND_UP=0,s.ROUND_DOWN=1,s.ROUND_CEIL=2,s.ROUND_FLOOR=3,s.ROUND_HALF_UP=4,s.ROUND_HALF_DOWN=5,s.ROUND_HALF_EVEN=6,s.ROUND_HALF_CEIL=7,s.ROUND_HALF_FLOOR=8,s.clone=$U,s.config=s.set=M1e,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return s.config(e),s}function M1e(e){if(!e||typeof e!="object")throw Error(va+"Object expected");var t,r,n,s=["precision",1,Ku,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<s.length;t+=3)if((n=e[r=s[t]])!==void 0)if(Qu(n)===n&&n>=s[t+1]&&n<=s[t+2])this[r]=n;else throw Error(Ql+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Ql+r+": "+n);return this}var Q7=$U(E1e);Fn=new Q7(1);const St=Q7;function N1e(e){return I1e(e)||_1e(e)||D1e(e)||R1e()}function R1e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1062In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D1e(e,t){if(e){if(typeof e=="string")return HT(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return HT(e,t)}}function _1e(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function I1e(e){if(Array.isArray(e))return HT(e)}function HT(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var B1e=function(t){return t},FU={},HU=function(t){return t===FU},t_=function(t){return function r(){return arguments.length===0||arguments.length===1&&HU(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},L1e=function e(t,r){return t===1?r:t_(function(){for(var n=arguments.length,s=new Array(n),i=0;i<n;i++)s[i]=arguments[i];var o=s.filter(function(l){return l!==FU}).length;return o>=t?r.apply(void 0,s):e(t-o,t_(function(){for(var l=arguments.length,d=new Array(l),u=0;u<l;u++)d[u]=arguments[u];var g=s.map(function(f){return HU(f)?d.shift():f});return r.apply(void 0,N1e(g).concat(d))}))})},ob=function(t){return L1e(t.length,t)},qT=function(t,r){for(var n=[],s=t;s<r;++s)n[s-t]=s;return n},W1e=ob(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),$1e=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return B1e;var s=r.reverse(),i=s[0],o=s.slice(1);return function(){return o.reduce(function(l,d){return d(l)},i.apply(void 0,arguments))}},UT=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},qU=function(t){var r=null,n=null;return function(){for(var s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];return r&&i.every(function(l,d){return l===r[d]})||(r=i,n=t.apply(void 0,i)),n}};function F1e(e){var t;return e===0?t=1:t=Math.floor(new St(e).abs().log(10).toNumber())+1,t}function H1e(e,t,r){for(var n=new St(e),s=0,i=[];n.lt(t)&&s<1e5;)i.push(n.toNumber()),n=n.add(r),s++;return i}var q1e=ob(function(e,t,r){var n=+e,s=+t;return n+r*(s-n)}),U1e=ob(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),G1e=ob(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const lb={rangeStep:H1e,getDigitCount:F1e,interpolateNumber:q1e,uninterpolateNumber:U1e,uninterpolateTruncation:G1e};function GT(e){return K1e(e)||X1e(e)||UU(e)||V1e()}function V1e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1063In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function X1e(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function K1e(e){if(Array.isArray(e))return VT(e)}function Pf(e,t){return Z1e(e)||Y1e(e,t)||UU(e,t)||Q1e()}function Q1e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1064In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UU(e,t){if(e){if(typeof e=="string")return VT(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return VT(e,t)}}function VT(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Y1e(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,s=!1,i=void 0;try{for(var o=e[Symbol.iterator](),l;!(n=(l=o.next()).done)&&(r.push(l.value),!(t&&r.length===t));n=!0);}catch(d){s=!0,i=d}finally{try{!n&&o.return!=null&&o.return()}finally{if(s)throw i}}return r}}function Z1e(e){if(Array.isArray(e))return e}function GU(e){var t=Pf(e,2),r=t[0],n=t[1],s=r,i=n;return r>n&&(s=n,i=r),[s,i]}function VU(e,t,r){if(e.lte(0))return new St(0);var n=lb.getDigitCount(e.toNumber()),s=new St(10).pow(n),i=e.div(s),o=n!==1?.05:.1,l=new St(Math.ceil(i.div(o).toNumber())).add(r).mul(o),d=l.mul(s);return t?d:new St(Math.ceil(d))}function J1e(e,t,r){var n=1,s=new St(e);if(!s.isint()&&r){var i=Math.abs(e);i<1?(n=new St(10).pow(lb.getDigitCount(e)-1),s=new St(Math.floor(s.div(n).toNumber())).mul(n)):i>1&&(s=new St(Math.floor(e)))}else e===0?s=new St(Math.floor((t-1)/2)):r||(s=new St(Math.floor(e)));var o=Math.floor((t-1)/2),l=$1e(W1e(function(d){return s.add(new St(d-o).mul(n)).toNumber()}),qT);return l(0,t)}function XU(e,t,r,n){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new St(0),tickMin:new St(0),tickMax:new St(0)};var i=VU(new St(t).sub(e).div(r-1),n,s),o;e<=0&&t>=0?o=new St(0):(o=new St(e).add(t).div(2),o=o.sub(new St(o).mod(i)));var l=Math.ceil(o.sub(e).div(i).toNumber()),d=Math.ceil(new St(t).sub(o).div(i).toNumber()),u=l+d+1;return u>r?XU(e,t,r,n,s+1):(u<r&&(d=t>0?d+(r-u):d,l=t>0?l:l+(r-u)),{step:i,tickMin:o.sub(new St(l).mul(i)),tickMax:o.add(new St(d).mul(i))})}function e2e(e){var t=Pf(e,2),r=t[0],n=t[1],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(s,2),l=GU([r,n]),d=Pf(l,2),u=d[0],g=d[1];if(u===-1/0||g===1/0){var f=g===1/0?[u].concat(GT(qT(0,s-1).map(function(){return 1/0}))):[].concat(GT(qT(0,s-1).map(function(){return-1/0})),[g]);return r>n?UT(f):f}if(u===g)return J1e(u,s,i);var m=XU(u,g,o,i),y=m.step,S=m.tickMin,b=m.tickMax,v=lb.rangeStep(S,b.add(new St(.1).mul(y)),y);return r>n?UT(v):v}function t2e(e,t){var r=Pf(e,2),n=r[0],s=r[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=GU([n,s]),l=Pf(o,2),d=l[0],u=l[1];if(d===-1/0||u===1/0)return[n,s];if(d===u)return[d];var g=Math.max(t,2),f=VU(new St(u).sub(d).div(g-1),i,0),m=[].concat(GT(lb.rangeStep(new St(d),new St(u).sub(new St(.99).mul(f)),f)),[u]);return n>s?UT(m):m}var r2e=qU(e2e),n2e=qU(t2e),a2e="Invariant failed";function dc(e,t){throw new Error(a2e)}var s2e=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Su(e){"@babel/helpers - typeof";return Su=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},Su(e)}function A5(){return A5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},A5.apply(this,arguments)}function i2e(e,t){return d2e(e)||c2e(e,t)||l2e(e,t)||o2e()}function o2e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1065In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l2e(e,t){if(e){if(typeof e=="string")return r_(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return r_(e,t)}}function r_(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c2e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,s,i,o,l=[],d=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(d=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);d=!0);}catch(g){u=!0,s=g}finally{try{if(!d&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw s}}return l}}function d2e(e){if(Array.isArray(e))return e}function u2e(e,t){if(e==null)return{};var r=p2e(e,t),n,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)n=i[s],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function p2e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function g2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f2e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,YU(n.key),n)}}function h2e(e,t,r){return t&&f2e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function m2e(e,t,r){return t=z5(t),x2e(e,KU()?Reflect.construct(t,r||[],z5(e).constructor):t.apply(e,r))}function x2e(e,t){if(t&&(Su(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y2e(e)}function y2e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(KU=function(){return!!e})()}function z5(e){return z5=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},z5(e)}function b2e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&XT(e,t)}function XT(e,t){return XT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,s){return n.__proto__=s,n},XT(e,t)}function QU(e,t,r){return t=YU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YU(e){var t=v2e(e,"string");return Su(t)=="symbol"?t:t+""}function v2e(e,t){if(Su(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Su(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var mh=(function(e){function t(){return g2e(this,t),m2e(this,t,arguments)}return b2e(t,e),h2e(t,[{key:"render",value:function(){var n=this.props,s=n.offset,i=n.layout,o=n.width,l=n.dataKey,d=n.data,u=n.dataPointFormatter,g=n.xAxis,f=n.yAxis,m=u2e(n,s2e),y=at(m,!1);this.props.direction==="x"&&g.type!=="number"&&dc();var S=d.map(function(b){var v=u(b,l),j=v.x,k=v.y,P=v.value,O=v.errorVal;if(!O)return null;var T=[],C,A;if(Array.isArray(O)){var N=i2e(O,2);C=N[0],A=N[1]}else C=A=O;if(i==="vertical"){var M=g.scale,B=k+s,R=B+o,_=B-o,W=M(P-C),V=M(P+A);T.push({x1:V,y1:R,x2:V,y2:_}),T.push({x1:W,y1:B,x2:V,y2:B}),T.push({x1:W,y1:R,x2:W,y2:_})}else if(i==="horizontal"){var F=f.scale,I=j+s,U=I-o,q=I+o,Z=F(P-C),le=F(P+A);T.push({x1:U,y1:le,x2:q,y2:le}),T.push({x1:I,y1:Z,x2:I,y2:le}),T.push({x1:U,y1:Z,x2:q,y2:Z})}return G.createElement(Kt,A5({className:"recharts-errorBar",key:"bar-".concat(T.map(function(H){return"".concat(H.x1,"-").concat(H.x2,"-").concat(H.y1,"-").concat(H.y2)}))},y),T.map(function(H){return G.createElement("line",A5({},H,{key:"line-".concat(H.x1,"-").concat(H.x2,"-").concat(H.y1,"-").concat(H.y2)}))}))});return G.createElement(Kt,{className:"recharts-errorBars"},S)}}])})(G.Component);QU(mh,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});QU(mh,"displayName","ErrorBar");function Tf(e){"@babel/helpers - typeof";return Tf=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},Tf(e)}function n_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function vl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?n_(Object(r),!0).forEach(function(n){S2e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function S2e(e,t,r){return t=j2e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j2e(e){var t=w2e(e,"string");return Tf(t)=="symbol"?t:t+""}function w2e(e,t){if(Tf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ZU=function(t){var r=t.children,n=t.formattedGraphicalItems,s=t.legendWidth,i=t.legendContent,o=Bn(r,Vd);if(!o)return null;var l=Vd.defaultProps,d=l!==void 0?vl(vl({},l),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:i==="children"?u=(n||[]).reduce(function(g,f){var m=f.item,y=f.props,S=y.sectors||y.data||[];return g.concat(S.map(function(b){return{type:o.props.iconType||m.props.legendType,value:b.name,color:b.fill,payload:b}}))},[]):u=(n||[]).map(function(g){var f=g.item,m=f.type.defaultProps,y=m!==void 0?vl(vl({},m),f.props):{},S=y.dataKey,b=y.name,v=y.legendType,j=y.hide;return{inactive:j,dataKey:S,type:d.iconType||v||"square",color:Y7(f),value:b||S,payload:y}}),vl(vl(vl({},d),Vd.getWithHeight(o,s)),{},{payload:u,item:o})};function Af(e){"@babel/helpers - typeof";return Af=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},Af(e)}function a_(e){return A2e(e)||T2e(e)||P2e(e)||k2e()}function k2e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1066In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function P2e(e,t){if(e){if(typeof e=="string")return KT(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return KT(e,t)}}function T2e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function A2e(e){if(Array.isArray(e))return KT(e)}function KT(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function qt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?s_(Object(r),!0).forEach(function(n){Kd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kd(e,t,r){return t=z2e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z2e(e){var t=C2e(e,"string");return Af(t)=="symbol"?t:t+""}function C2e(e,t){if(Af(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Af(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gn(e,t,r){return et(e)||et(t)?r:mr(t)?ma(e,t,r):Qe(t)?t(e):r}function Bg(e,t,r,n){var s=A1e(e,function(l){return Gn(l,t)});if(r==="number"){var i=s.filter(function(l){return ye(l)||parseFloat(l)});return i.length?[sb(i),ab(i)]:[1/0,-1/0]}var o=n?s.filter(function(l){return!et(l)}):s;return o.map(function(l){return mr(l)||l instanceof Date?l:""})}var E2e=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],s=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,l=(r=n?.length)!==null&&r!==void 0?r:0;if(l<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var d=i.range,u=0;u<l;u++){var g=u>0?s[u-1].coordinate:s[l-1].coordinate,f=s[u].coordinate,m=u>=l-1?s[0].coordinate:s[u+1].coordinate,y=void 0;if(La(f-g)!==La(m-f)){var S=[];if(La(m-f)===La(d[1]-d[0])){y=m;var b=f+d[1]-d[0];S[0]=Math.min(b,(b+g)/2),S[1]=Math.max(b,(b+g)/2)}else{y=g;var v=m+d[1]-d[0];S[0]=Math.min(f,(v+f)/2),S[1]=Math.max(f,(v+f)/2)}var j=[Math.min(f,(y+f)/2),Math.max(f,(y+f)/2)];if(t>j[0]&&t<=j[1]||t>=S[0]&&t<=S[1]){o=s[u].index;break}}else{var k=Math.min(g,m),P=Math.max(g,m);if(t>(k+f)/2&&t<=(P+f)/2){o=s[u].index;break}}}else for(var O=0;O<l;O++)if(O===0&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O>0&&O<l-1&&t>(n[O].coordinate+n[O-1].coordinate)/2&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O===l-1&&t>(n[O].coordinate+n[O-1].coordinate)/2){o=n[O].index;break}return o},Y7=function(t){var r,n=t,s=n.type.displayName,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?qt(qt({},t.type.defaultProps),t.props):t.props,o=i.stroke,l=i.fill,d;switch(s){case"Line":d=o;break;case"Area":case"Radar":d=o&&o!=="none"?o:l;break;default:d=l;break}return d},O2e=function(t){var r=t.barSize,n=t.totalSize,s=t.stackGroups,i=s===void 0?{}:s;if(!i)return{};for(var o={},l=Object.keys(i),d=0,u=l.length;d<u;d++)for(var g=i[l[d]].stackGroups,f=Object.keys(g),m=0,y=f.length;m<y;m++){var S=g[f[m]],b=S.items,v=S.cateAxisId,j=b.filter(function(A){return gi(A.type).indexOf("Bar")>=0});if(j&&j.length){var k=j[0].type.defaultProps,P=k!==void 0?qt(qt({},k),j[0].props):j[0].props,O=P.barSize,T=P[v];o[T]||(o[T]=[]);var C=et(O)?r:O;o[T].push({item:j[0],stackList:j.slice(1),barSize:et(C)?void 0:lc(C,n,0)})}}return o},M2e=function(t){var r=t.barGap,n=t.barCategoryGap,s=t.bandSize,i=t.sizeList,o=i===void 0?[]:i,l=t.maxBarSize,d=o.length;if(d<1)return null;var u=lc(r,s,0,!0),g,f=[];if(o[0].barSize===+o[0].barSize){var m=!1,y=s/d,S=o.reduce(function(O,T){return O+T.barSize||0},0);S+=(d-1)*u,S>=s&&(S-=(d-1)*u,u=0),S>=s&&y>0&&(m=!0,y*=.9,S=d*y);var b=(s-S)/2>>0,v={offset:b-u,size:0};g=o.reduce(function(O,T){var C={item:T.item,position:{offset:v.offset+v.size+u,size:m?y:T.barSize}},A=[].concat(a_(O),[C]);return v=A[A.length-1].position,T.stackList&&T.stackList.length&&T.stackList.forEach(function(N){A.push({item:N,position:v})}),A},f)}else{var j=lc(n,s,0,!0);s-2*j-(d-1)*u<=0&&(u=0);var k=(s-2*j-(d-1)*u)/d;k>1&&(k>>=0);var P=l===+l?Math.min(k,l):k;g=o.reduce(function(O,T,C){var A=[].concat(a_(O),[{item:T.item,position:{offset:j+(k+u)*C+(k-P)/2,size:P}}]);return T.stackList&&T.stackList.length&&T.stackList.forEach(function(N){A.push({item:N,position:A[A.length-1].position})}),A},f)}return g},N2e=function(t,r,n,s){var i=n.children,o=n.width,l=n.margin,d=o-(l.left||0)-(l.right||0),u=ZU({children:i,legendWidth:d});if(u){var g=s||{},f=g.width,m=g.height,y=u.align,S=u.verticalAlign,b=u.layout;if((b==="vertical"||b==="horizontal"&&S==="middle")&&y!=="center"&&ye(t[y]))return qt(qt({},t),{},Kd({},y,t[y]+(f||0)));if((b==="horizontal"||b==="vertical"&&y==="center")&&S!=="middle"&&ye(t[S]))return qt(qt({},t),{},Kd({},S,t[S]+(m||0)))}return t},R2e=function(t,r,n){return et(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},JU=function(t,r,n,s,i){var o=r.props.children,l=xa(o,mh).filter(function(u){return R2e(s,i,u.props.direction)});if(l&&l.length){var d=l.map(function(u){return u.props.dataKey});return t.reduce(function(u,g){var f=Gn(g,n);if(et(f))return u;var m=Array.isArray(f)?[sb(f),ab(f)]:[f,f],y=d.reduce(function(S,b){var v=Gn(g,b,0),j=m[0]-Math.abs(Array.isArray(v)?v[0]:v),k=m[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(j,S[0]),Math.max(k,S[1])]},[1/0,-1/0]);return[Math.min(y[0],u[0]),Math.max(y[1],u[1])]},[1/0,-1/0])}return null},D2e=function(t,r,n,s,i){var o=r.map(function(l){return JU(t,l,n,i,s)}).filter(function(l){return!et(l)});return o&&o.length?o.reduce(function(l,d){return[Math.min(l[0],d[0]),Math.max(l[1],d[1])]},[1/0,-1/0]):null},eG=function(t,r,n,s,i){var o=r.map(function(d){var u=d.props.dataKey;return n==="number"&&u&&JU(t,d,u,s)||Bg(t,u,n,i)});if(n==="number")return o.reduce(function(d,u){return[Math.min(d[0],u[0]),Math.max(d[1],u[1])]},[1/0,-1/0]);var l={};return o.reduce(function(d,u){for(var g=0,f=u.length;g<f;g++)l[u[g]]||(l[u[g]]=!0,d.push(u[g]));return d},[])},tG=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},rG=function(t,r,n,s){if(s)return t.map(function(d){return d.coordinate});var i,o,l=t.map(function(d){return d.coordinate===r&&(i=!0),d.coordinate===n&&(o=!0),d.coordinate});return i||l.push(r),o||l.push(n),l},li=function(t,r,n){if(!t)return null;var s=t.scale,i=t.duplicateDomain,o=t.type,l=t.range,d=t.realScaleType==="scaleBand"?s.bandwidth()/2:2,u=(r||n)&&o==="category"&&s.bandwidth?s.bandwidth()/d:0;if(u=t.axisType==="angleAxis"&&l?.length>=2?La(l[0]-l[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var g=(t.ticks||t.niceTicks).map(function(f){var m=i?i.indexOf(f):f;return{coordinate:s(m)+u,value:f,offset:u}});return g.filter(function(f){return!ch(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,m){return{coordinate:s(f)+u,value:f,index:m,offset:u}}):s.ticks&&!n?s.ticks(t.tickCount).map(function(f){return{coordinate:s(f)+u,value:f,offset:u}}):s.domain().map(function(f,m){return{coordinate:s(f)+u,value:i?i[f]:f,index:m,offset:u}})},fk=new WeakMap,mx=function(t,r){if(typeof r!="function")return t;fk.has(t)||fk.set(t,new WeakMap);var n=fk.get(t);if(n.has(r))return n.get(r);var s=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,s),s},_2e=function(t,r,n){var s=t.scale,i=t.type,o=t.layout,l=t.axisType;if(s==="auto")return o==="radial"&&l==="radiusAxis"?{scale:bf(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:j5(),realScaleType:"linear"}:i==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Ig(),realScaleType:"point"}:i==="category"?{scale:bf(),realScaleType:"band"}:{scale:j5(),realScaleType:"linear"};if(oc(s)){var d="scale".concat(Uy(s));return{scale:(qD[d]||Ig)(),realScaleType:qD[d]?d:"point"}}return Qe(s)?{scale:s}:{scale:Ig(),realScaleType:"point"}},i_=1e-4,I2e=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,s=t.range(),i=Math.min(s[0],s[1])-i_,o=Math.max(s[0],s[1])+i_,l=t(r[0]),d=t(r[n-1]);(l<i||l>o||d<i||d>o)&&t.domain([r[0],r[n-1]])}},B2e=function(t,r){if(!t)return null;for(var n=0,s=t.length;n<s;n++)if(t[n].item===r)return t[n].position;return null},L2e=function(t,r){if(!r||r.length!==2||!ye(r[0])||!ye(r[1]))return t;var n=Math.min(r[0],r[1]),s=Math.max(r[0],r[1]),i=[t[0],t[1]];return(!ye(t[0])||t[0]<n)&&(i[0]=n),(!ye(t[1])||t[1]>s)&&(i[1]=s),i[0]>s&&(i[0]=s),i[1]<n&&(i[1]=n),i},W2e=function(t){var r=t.length;if(!(r<=0))for(var n=0,s=t[0].length;n<s;++n)for(var i=0,o=0,l=0;l<r;++l){var d=ch(t[l][n][1])?t[l][n][0]:t[l][n][1];d>=0?(t[l][n][0]=i,t[l][n][1]=i+d,i=t[l][n][1]):(t[l][n][0]=o,t[l][n][1]=o+d,o=t[l][n][1])}},$2e=function(t){var r=t.length;if(!(r<=0))for(var n=0,s=t[0].length;n<s;++n)for(var i=0,o=0;o<r;++o){var l=ch(t[o][n][1])?t[o][n][0]:t[o][n][1];l>=0?(t[o][n][0]=i,t[o][n][1]=i+l,i=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},F2e={sign:W2e,expand:kme,none:gu,silhouette:Pme,wiggle:Tme,positive:$2e},H2e=function(t,r,n){var s=r.map(function(l){return l.props.dataKey}),i=F2e[n],o=wme().keys(s).value(function(l,d){return+Gn(l,d,0)}).order(PT).offset(i);return o(t)},q2e=function(t,r,n,s,i,o){if(!t)return null;var l=o?r.reverse():r,d={},u=l.reduce(function(f,m){var y,S=(y=m.type)!==null&&y!==void 0&&y.defaultProps?qt(qt({},m.type.defaultProps),m.props):m.props,b=S.stackId,v=S.hide;if(v)return f;var j=S[n],k=f[j]||{hasStack:!1,stackGroups:{}};if(mr(b)){var P=k.stackGroups[b]||{numericAxisId:n,cateAxisId:s,items:[]};P.items.push(m),k.hasStack=!0,k.stackGroups[b]=P}else k.stackGroups[dh("_stackId_")]={numericAxisId:n,cateAxisId:s,items:[m]};return qt(qt({},f),{},Kd({},j,k))},d),g={};return Object.keys(u).reduce(function(f,m){var y=u[m];if(y.hasStack){var S={};y.stackGroups=Object.keys(y.stackGroups).reduce(function(b,v){var j=y.stackGroups[v];return qt(qt({},b),{},Kd({},v,{numericAxisId:n,cateAxisId:s,items:j.items,stackedData:H2e(t,j.items,i)}))},S)}return qt(qt({},f),{},Kd({},m,y))},g)},U2e=function(t,r){var n=r.realScaleType,s=r.type,i=r.tickCount,o=r.originalDomain,l=r.allowDecimals,d=n||r.scale;if(d!=="auto"&&d!=="linear")return null;if(i&&s==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var g=r2e(u,i,l);return t.domain([sb(g),ab(g)]),{niceTicks:g}}if(i&&s==="number"){var f=t.domain(),m=n2e(f,i,l);return{niceTicks:m}}return null};function o_(e){var t=e.axis,r=e.ticks,n=e.bandSize,s=e.entry,i=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!et(s[t.dataKey])){var l=r5(r,"value",s[t.dataKey]);if(l)return l.coordinate+n/2}return r[i]?r[i].coordinate+n/2:null}var d=Gn(s,et(o)?t.dataKey:o);return et(d)?null:t.scale(d)}var l_=function(t){var r=t.axis,n=t.ticks,s=t.offset,i=t.bandSize,o=t.entry,l=t.index;if(r.type==="category")return n[l]?n[l].coordinate+s:null;var d=Gn(o,r.dataKey,r.domain[l]);return et(d)?null:r.scale(d)-i/2+s},G2e=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var s=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return s<=0&&i>=0?0:i<0?i:s}return n[0]},V2e=function(t,r){var n,s=(n=t.type)!==null&&n!==void 0&&n.defaultProps?qt(qt({},t.type.defaultProps),t.props):t.props,i=s.stackId;if(mr(i)){var o=r[i];if(o){var l=o.items.indexOf(t);return l>=0?o.stackedData[l]:null}}return null},X2e=function(t){return t.reduce(function(r,n){return[sb(n.concat([r[0]]).filter(ye)),ab(n.concat([r[1]]).filter(ye))]},[1/0,-1/0])},nG=function(t,r,n){return Object.keys(t).reduce(function(s,i){var o=t[i],l=o.stackedData,d=l.reduce(function(u,g){var f=X2e(g.slice(r,n+1));return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(d[0],s[0]),Math.max(d[1],s[1])]},[1/0,-1/0]).map(function(s){return s===1/0||s===-1/0?0:s})},c_=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,d_=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,QT=function(t,r,n){if(Qe(t))return t(r,n);if(!Array.isArray(t))return r;var s=[];if(ye(t[0]))s[0]=n?t[0]:Math.min(t[0],r[0]);else if(c_.test(t[0])){var i=+c_.exec(t[0])[1];s[0]=r[0]-i}else Qe(t[0])?s[0]=t[0](r[0]):s[0]=r[0];if(ye(t[1]))s[1]=n?t[1]:Math.max(t[1],r[1]);else if(d_.test(t[1])){var o=+d_.exec(t[1])[1];s[1]=r[1]+o}else Qe(t[1])?s[1]=t[1](r[1]):s[1]=r[1];return s},C5=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var s=t.scale.bandwidth();if(!n||s>0)return s}if(t&&r&&r.length>=2){for(var i=P7(r,function(f){return f.coordinate}),o=1/0,l=1,d=i.length;l<d;l++){var u=i[l],g=i[l-1];o=Math.min((u.coordinate||0)-(g.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},u_=function(t,r,n){return!t||!t.length||ib(t,ma(n,"type.defaultProps.domain"))?r:t},aG=function(t,r){var n=t.type.defaultProps?qt(qt({},t.type.defaultProps),t.props):t.props,s=n.dataKey,i=n.name,o=n.unit,l=n.formatter,d=n.tooltipType,u=n.chartType,g=n.hide;return qt(qt({},at(t,!1)),{},{dataKey:s,unit:o,formatter:l,name:i||s,color:Y7(t),value:Gn(r,s),type:d,payload:r,chartType:u,hide:g})};function zf(e){"@babel/helpers - typeof";return zf=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},zf(e)}function p_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function g_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?p_(Object(r),!0).forEach(function(n){K2e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K2e(e,t,r){return t=Q2e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q2e(e){var t=Y2e(e,"string");return zf(t)=="symbol"?t:t+""}function Y2e(e,t){if(zf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var E5=Math.PI/180,Z2e=function(t){return t*180/Math.PI},Lr=function(t,r,n,s){return{x:t+Math.cos(-E5*s)*n,y:r+Math.sin(-E5*s)*n}},J2e=function(t,r){var n=t.x,s=t.y,i=r.x,o=r.y;return Math.sqrt(Math.pow(n-i,2)+Math.pow(s-o,2))},eve=function(t,r){var n=t.x,s=t.y,i=r.cx,o=r.cy,l=J2e({x:n,y:s},{x:i,y:o});if(l<=0)return{radius:l};var d=(n-i)/l,u=Math.acos(d);return s>o&&(u=2*Math.PI-u),{radius:l,angle:Z2e(u),angleInRadian:u}},tve=function(t){var r=t.startAngle,n=t.endAngle,s=Math.floor(r/360),i=Math.floor(n/360),o=Math.min(s,i);return{startAngle:r-o*360,endAngle:n-o*360}},rve=function(t,r){var n=r.startAngle,s=r.endAngle,i=Math.floor(n/360),o=Math.floor(s/360),l=Math.min(i,o);return t+l*360},f_=function(t,r){var n=t.x,s=t.y,i=eve({x:n,y:s},r),o=i.radius,l=i.angle,d=r.innerRadius,u=r.outerRadius;if(o<d||o>u)return!1;if(o===0)return!0;var g=tve(r),f=g.startAngle,m=g.endAngle,y=l,S;if(f<=m){for(;y>m;)y-=360;for(;y<f;)y+=360;S=y>=f&&y<=m}else{for(;y>f;)y-=360;for(;y<m;)y+=360;S=y>=m&&y<=f}return S?g_(g_({},r),{},{radius:o,angle:rve(y,r)}):null};function Cf(e){"@babel/helpers - typeof";return Cf=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},Cf(e)}var nve=["offset"];function ave(e){return lve(e)||ove(e)||ive(e)||sve()}function sve(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1067In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ive(e,t){if(e){if(typeof e=="string")return YT(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return YT(e,t)}}function ove(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lve(e){if(Array.isArray(e))return YT(e)}function YT(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function cve(e,t){if(e==null)return{};var r=dve(e,t),n,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)n=i[s],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function dve(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function h_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function hr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?h_(Object(r),!0).forEach(function(n){uve(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uve(e,t,r){return t=pve(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pve(e){var t=gve(e,"string");return Cf(t)=="symbol"?t:t+""}function gve(e,t){if(Cf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ef(){return Ef=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ef.apply(this,arguments)}var fve=function(t){var r=t.value,n=t.formatter,s=et(t.children)?r:t.children;return Qe(n)?n(s):s},hve=function(t,r){var n=La(r-t),s=Math.min(Math.abs(r-t),360);return n*s},mve=function(t,r,n){var s=t.position,i=t.viewBox,o=t.offset,l=t.className,d=i,u=d.cx,g=d.cy,f=d.innerRadius,m=d.outerRadius,y=d.startAngle,S=d.endAngle,b=d.clockWise,v=(f+m)/2,j=hve(y,S),k=j>=0?1:-1,P,O;s==="insideStart"?(P=y+k*o,O=b):s==="insideEnd"?(P=S-k*o,O=!b):s==="end"&&(P=S+k*o,O=b),O=j<=0?O:!O;var T=Lr(u,g,v,P),C=Lr(u,g,v,P+(O?1:-1)*359),A="M".concat(T.x,",").concat(T.y,` 1068 A`).concat(v,",").concat(v,",0,1,").concat(O?0:1,`, 1069 `).concat(C.x,",").concat(C.y),N=et(t.id)?dh("recharts-radial-line-"):t.id;return G.createElement("text",Ef({},n,{dominantBaseline:"central",className:st("recharts-radial-bar-label",l)}),G.createElement("defs",null,G.createElement("path",{id:N,d:A})),G.createElement("textPath",{xlinkHref:"#".concat(N)},r))},xve=function(t){var r=t.viewBox,n=t.offset,s=t.position,i=r,o=i.cx,l=i.cy,d=i.innerRadius,u=i.outerRadius,g=i.startAngle,f=i.endAngle,m=(g+f)/2;if(s==="outside"){var y=Lr(o,l,u+n,m),S=y.x,b=y.y;return{x:S,y:b,textAnchor:S>=o?"start":"end",verticalAnchor:"middle"}}if(s==="center")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(s==="centerTop")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"start"};if(s==="centerBottom")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"end"};var v=(d+u)/2,j=Lr(o,l,v,m),k=j.x,P=j.y;return{x:k,y:P,textAnchor:"middle",verticalAnchor:"middle"}},yve=function(t){var r=t.viewBox,n=t.parentViewBox,s=t.offset,i=t.position,o=r,l=o.x,d=o.y,u=o.width,g=o.height,f=g>=0?1:-1,m=f*s,y=f>0?"end":"start",S=f>0?"start":"end",b=u>=0?1:-1,v=b*s,j=b>0?"end":"start",k=b>0?"start":"end";if(i==="top"){var P={x:l+u/2,y:d-f*s,textAnchor:"middle",verticalAnchor:y};return hr(hr({},P),n?{height:Math.max(d-n.y,0),width:u}:{})}if(i==="bottom"){var O={x:l+u/2,y:d+g+m,textAnchor:"middle",verticalAnchor:S};return hr(hr({},O),n?{height:Math.max(n.y+n.height-(d+g),0),width:u}:{})}if(i==="left"){var T={x:l-v,y:d+g/2,textAnchor:j,verticalAnchor:"middle"};return hr(hr({},T),n?{width:Math.max(T.x-n.x,0),height:g}:{})}if(i==="right"){var C={x:l+u+v,y:d+g/2,textAnchor:k,verticalAnchor:"middle"};return hr(hr({},C),n?{width:Math.max(n.x+n.width-C.x,0),height:g}:{})}var A=n?{width:u,height:g}:{};return i==="insideLeft"?hr({x:l+v,y:d+g/2,textAnchor:k,verticalAnchor:"middle"},A):i==="insideRight"?hr({x:l+u-v,y:d+g/2,textAnchor:j,verticalAnchor:"middle"},A):i==="insideTop"?hr({x:l+u/2,y:d+m,textAnchor:"middle",verticalAnchor:S},A):i==="insideBottom"?hr({x:l+u/2,y:d+g-m,textAnchor:"middle",verticalAnchor:y},A):i==="insideTopLeft"?hr({x:l+v,y:d+m,textAnchor:k,verticalAnchor:S},A):i==="insideTopRight"?hr({x:l+u-v,y:d+m,textAnchor:j,verticalAnchor:S},A):i==="insideBottomLeft"?hr({x:l+v,y:d+g-m,textAnchor:k,verticalAnchor:y},A):i==="insideBottomRight"?hr({x:l+u-v,y:d+g-m,textAnchor:j,verticalAnchor:y},A):Uu(i)&&(ye(i.x)||Wl(i.x))&&(ye(i.y)||Wl(i.y))?hr({x:l+lc(i.x,u),y:d+lc(i.y,g),textAnchor:"end",verticalAnchor:"end"},A):hr({x:l+u/2,y:d+g/2,textAnchor:"middle",verticalAnchor:"middle"},A)},bve=function(t){return"cx"in t&&ye(t.cx)};function Xr(e){var t=e.offset,r=t===void 0?5:t,n=cve(e,nve),s=hr({offset:r},n),i=s.viewBox,o=s.position,l=s.value,d=s.children,u=s.content,g=s.className,f=g===void 0?"":g,m=s.textBreakAll;if(!i||et(l)&&et(d)&&!E.isValidElement(u)&&!Qe(u))return null;if(E.isValidElement(u))return E.cloneElement(u,s);var y;if(Qe(u)){if(y=E.createElement(u,s),E.isValidElement(y))return y}else y=fve(s);var S=bve(i),b=at(s,!0);if(S&&(o==="insideStart"||o==="insideEnd"||o==="end"))return mve(s,y,b);var v=S?xve(s):yve(s);return G.createElement(h5,Ef({className:st("recharts-label",f)},b,v,{breakAll:m}),y)}Xr.displayName="Label";var sG=function(t){var r=t.cx,n=t.cy,s=t.angle,i=t.startAngle,o=t.endAngle,l=t.r,d=t.radius,u=t.innerRadius,g=t.outerRadius,f=t.x,m=t.y,y=t.top,S=t.left,b=t.width,v=t.height,j=t.clockWise,k=t.labelViewBox;if(k)return k;if(ye(b)&&ye(v)){if(ye(f)&&ye(m))return{x:f,y:m,width:b,height:v};if(ye(y)&&ye(S))return{x:y,y:S,width:b,height:v}}return ye(f)&&ye(m)?{x:f,y:m,width:0,height:0}:ye(r)&&ye(n)?{cx:r,cy:n,startAngle:i||s||0,endAngle:o||s||0,innerRadius:u||0,outerRadius:g||d||l||0,clockWise:j}:t.viewBox?t.viewBox:{}},vve=function(t,r){return t?t===!0?G.createElement(Xr,{key:"label-implicit",viewBox:r}):mr(t)?G.createElement(Xr,{key:"label-implicit",viewBox:r,value:t}):E.isValidElement(t)?t.type===Xr?E.cloneElement(t,{key:"label-implicit",viewBox:r}):G.createElement(Xr,{key:"label-implicit",content:t,viewBox:r}):Qe(t)?G.createElement(Xr,{key:"label-implicit",content:t,viewBox:r}):Uu(t)?G.createElement(Xr,Ef({viewBox:r},t,{key:"label-implicit"})):null:null},Sve=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var s=t.children,i=sG(t),o=xa(s,Xr).map(function(d,u){return E.cloneElement(d,{viewBox:r||i,key:"label-".concat(u)})});if(!n)return o;var l=vve(t.label,r||i);return[l].concat(ave(o))};Xr.parseViewBox=sG;Xr.renderCallByParent=Sve;var hk,m_;function jve(){if(m_)return hk;m_=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return hk=e,hk}var wve=jve();const kve=jt(wve);function Of(e){"@babel/helpers - typeof";return Of=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},Of(e)}var Pve=["valueAccessor"],Tve=["data","dataKey","clockWise","id","textBreakAll"];function Ave(e){return Ove(e)||Eve(e)||Cve(e)||zve()}function zve(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1070In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cve(e,t){if(e){if(typeof e=="string")return ZT(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ZT(e,t)}}function Eve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ove(e){if(Array.isArray(e))return ZT(e)}function ZT(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function O5(){return O5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},O5.apply(this,arguments)}function x_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function y_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?x_(Object(r),!0).forEach(function(n){Mve(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Mve(e,t,r){return t=Nve(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nve(e){var t=Rve(e,"string");return Of(t)=="symbol"?t:t+""}function Rve(e,t){if(Of(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Of(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function b_(e,t){if(e==null)return{};var r=Dve(e,t),n,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)n=i[s],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Dve(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var _ve=function(t){return Array.isArray(t.value)?kve(t.value):t.value};function Eo(e){var t=e.valueAccessor,r=t===void 0?_ve:t,n=b_(e,Pve),s=n.data,i=n.dataKey,o=n.clockWise,l=n.id,d=n.textBreakAll,u=b_(n,Tve);return!s||!s.length?null:G.createElement(Kt,{className:"recharts-label-list"},s.map(function(g,f){var m=et(i)?r(g,f):Gn(g&&g.payload,i),y=et(l)?{}:{id:"".concat(l,"-").concat(f)};return G.createElement(Xr,O5({},at(g,!0),u,y,{parentViewBox:g.parentViewBox,value:m,textBreakAll:d,viewBox:Xr.parseViewBox(et(o)?g:y_(y_({},g),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}Eo.displayName="LabelList";function Ive(e,t){return e?e===!0?G.createElement(Eo,{key:"labelList-implicit",data:t}):G.isValidElement(e)||Qe(e)?G.createElement(Eo,{key:"labelList-implicit",data:t,content:e}):Uu(e)?G.createElement(Eo,O5({data:t},e,{key:"labelList-implicit"})):null:null}function Bve(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,s=xa(n,Eo).map(function(o,l){return E.cloneElement(o,{data:t,key:"labelList-".concat(l)})});if(!r)return s;var i=Ive(e.label,t);return[i].concat(Ave(s))}Eo.renderCallByParent=Bve;function Mf(e){"@babel/helpers - typeof";return Mf=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},Mf(e)}function JT(){return JT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},JT.apply(this,arguments)}function v_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function S_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?v_(Object(r),!0).forEach(function(n){Lve(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lve(e,t,r){return t=Wve(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wve(e){var t=$ve(e,"string");return Mf(t)=="symbol"?t:t+""}function $ve(e,t){if(Mf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Fve=function(t,r){var n=La(r-t),s=Math.min(Math.abs(r-t),359.999);return n*s},xx=function(t){var r=t.cx,n=t.cy,s=t.radius,i=t.angle,o=t.sign,l=t.isExternal,d=t.cornerRadius,u=t.cornerIsExternal,g=d*(l?1:-1)+s,f=Math.asin(d/g)/E5,m=u?i:i+o*f,y=Lr(r,n,g,m),S=Lr(r,n,s,m),b=u?i-o*f:i,v=Lr(r,n,g*Math.cos(f*E5),b);return{center:y,circleTangency:S,lineTangency:v,theta:f}},iG=function(t){var r=t.cx,n=t.cy,s=t.innerRadius,i=t.outerRadius,o=t.startAngle,l=t.endAngle,d=Fve(o,l),u=o+d,g=Lr(r,n,i,o),f=Lr(r,n,i,u),m="M ".concat(g.x,",").concat(g.y,` 1071 A `).concat(i,",").concat(i,`,0, 1072 `).concat(+(Math.abs(d)>180),",").concat(+(o>u),`, 1073 `).concat(f.x,",").concat(f.y,` 1074 `);if(s>0){var y=Lr(r,n,s,o),S=Lr(r,n,s,u);m+="L ".concat(S.x,",").concat(S.y,` 1075 A `).concat(s,",").concat(s,`,0, 1076 `).concat(+(Math.abs(d)>180),",").concat(+(o<=u),`, 1077 `).concat(y.x,",").concat(y.y," Z")}else m+="L ".concat(r,",").concat(n," Z");return m},Hve=function(t){var r=t.cx,n=t.cy,s=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,l=t.forceCornerRadius,d=t.cornerIsExternal,u=t.startAngle,g=t.endAngle,f=La(g-u),m=xx({cx:r,cy:n,radius:i,angle:u,sign:f,cornerRadius:o,cornerIsExternal:d}),y=m.circleTangency,S=m.lineTangency,b=m.theta,v=xx({cx:r,cy:n,radius:i,angle:g,sign:-f,cornerRadius:o,cornerIsExternal:d}),j=v.circleTangency,k=v.lineTangency,P=v.theta,O=d?Math.abs(u-g):Math.abs(u-g)-b-P;if(O<0)return l?"M ".concat(S.x,",").concat(S.y,` 1078 a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 1079 a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 1080 `):iG({cx:r,cy:n,innerRadius:s,outerRadius:i,startAngle:u,endAngle:g});var T="M ".concat(S.x,",").concat(S.y,` 1081 A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(y.x,",").concat(y.y,` 1082 A`).concat(i,",").concat(i,",0,").concat(+(O>180),",").concat(+(f<0),",").concat(j.x,",").concat(j.y,` 1083 A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(k.x,",").concat(k.y,` 1084 `);if(s>0){var C=xx({cx:r,cy:n,radius:s,angle:u,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:d}),A=C.circleTangency,N=C.lineTangency,M=C.theta,B=xx({cx:r,cy:n,radius:s,angle:g,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:d}),R=B.circleTangency,_=B.lineTangency,W=B.theta,V=d?Math.abs(u-g):Math.abs(u-g)-M-W;if(V<0&&o===0)return"".concat(T,"L").concat(r,",").concat(n,"Z");T+="L".concat(_.x,",").concat(_.y,` 1085 A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(R.x,",").concat(R.y,` 1086 A`).concat(s,",").concat(s,",0,").concat(+(V>180),",").concat(+(f>0),",").concat(A.x,",").concat(A.y,` 1087 A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(N.x,",").concat(N.y,"Z")}else T+="L".concat(r,",").concat(n,"Z");return T},qve={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},oG=function(t){var r=S_(S_({},qve),t),n=r.cx,s=r.cy,i=r.innerRadius,o=r.outerRadius,l=r.cornerRadius,d=r.forceCornerRadius,u=r.cornerIsExternal,g=r.startAngle,f=r.endAngle,m=r.className;if(o<i||g===f)return null;var y=st("recharts-sector",m),S=o-i,b=lc(l,S,0,!0),v;return b>0&&Math.abs(g-f)<360?v=Hve({cx:n,cy:s,innerRadius:i,outerRadius:o,cornerRadius:Math.min(b,S/2),forceCornerRadius:d,cornerIsExternal:u,startAngle:g,endAngle:f}):v=iG({cx:n,cy:s,innerRadius:i,outerRadius:o,startAngle:g,endAngle:f}),G.createElement("path",JT({},at(r,!0),{className:y,d:v,role:"img"}))};function Nf(e){"@babel/helpers - typeof";return Nf=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},Nf(e)}function e4(){return e4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e4.apply(this,arguments)}function j_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function w_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?j_(Object(r),!0).forEach(function(n){Uve(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Uve(e,t,r){return t=Gve(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gve(e){var t=Vve(e,"string");return Nf(t)=="symbol"?t:t+""}function Vve(e,t){if(Nf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var k_={curveBasisClosed:pme,curveBasisOpen:gme,curveBasis:ume,curveBumpX:Yhe,curveBumpY:Zhe,curveLinearClosed:fme,curveLinear:Vy,curveMonotoneX:hme,curveMonotoneY:mme,curveNatural:xme,curveStep:yme,curveStepAfter:vme,curveStepBefore:bme},yx=function(t){return t.x===+t.x&&t.y===+t.y},sg=function(t){return t.x},ig=function(t){return t.y},Xve=function(t,r){if(Qe(t))return t;var n="curve".concat(Uy(t));return(n==="curveMonotone"||n==="curveBump")&&r?k_["".concat(n).concat(r==="vertical"?"Y":"X")]:k_[n]||Vy},Kve=function(t){var r=t.type,n=r===void 0?"linear":r,s=t.points,i=s===void 0?[]:s,o=t.baseLine,l=t.layout,d=t.connectNulls,u=d===void 0?!1:d,g=Xve(n,l),f=u?i.filter(function(b){return yx(b)}):i,m;if(Array.isArray(o)){var y=u?o.filter(function(b){return yx(b)}):o,S=f.map(function(b,v){return w_(w_({},b),{},{base:y[v]})});return l==="vertical"?m=cx().y(ig).x1(sg).x0(function(b){return b.base.x}):m=cx().x(sg).y1(ig).y0(function(b){return b.base.y}),m.defined(yx).curve(g),m(S)}return l==="vertical"&&ye(o)?m=cx().y(ig).x1(sg).x0(o):ye(o)?m=cx().x(sg).y1(ig).y0(o):m=uq().x(sg).y(ig),m.defined(yx).curve(g),m(f)},t4=function(t){var r=t.className,n=t.points,s=t.path,i=t.pathRef;if((!n||!n.length)&&!s)return null;var o=n&&n.length?Kve(t):s;return E.createElement("path",e4({},at(t,!1),n5(t),{className:st("recharts-curve",r),d:o,ref:i}))},mk={exports:{}},xk,P_;function Qve(){if(P_)return xk;P_=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return xk=e,xk}var yk,T_;function Yve(){if(T_)return yk;T_=1;var e=Qve();function t(){}function r(){}return r.resetWarningCache=t,yk=function(){function n(o,l,d,u,g,f){if(f!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}n.isRequired=n;function s(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:s,element:n,elementType:n,instanceOf:s,node:n,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},yk}var A_;function Zve(){return A_||(A_=1,mk.exports=Yve()()),mk.exports}var Jve=Zve();const gt=jt(Jve);var eSe=Object.getOwnPropertyNames,tSe=Object.getOwnPropertySymbols,rSe=Object.prototype.hasOwnProperty;function z_(e,t){return function(n,s,i){return e(n,s,i)&&t(n,s,i)}}function bx(e){return function(r,n,s){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,s);var i=s.cache,o=i.get(r),l=i.get(n);if(o&&l)return o===n&&l===r;i.set(r,n),i.set(n,r);var d=e(r,n,s);return i.delete(r),i.delete(n),d}}function nSe(e){return e?.[Symbol.toStringTag]}function C_(e){return eSe(e).concat(tSe(e))}var aSe=Object.hasOwn||(function(e,t){return rSe.call(e,t)});function zc(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var sSe="__v",iSe="__o",oSe="_owner",E_=Object.getOwnPropertyDescriptor,O_=Object.keys;function lSe(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function cSe(e,t){return zc(e.getTime(),t.getTime())}function dSe(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function uSe(e,t){return e===t}function M_(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var s=new Array(n),i=e.entries(),o,l,d=0;(o=i.next())&&!o.done;){for(var u=t.entries(),g=!1,f=0;(l=u.next())&&!l.done;){if(s[f]){f++;continue}var m=o.value,y=l.value;if(r.equals(m[0],y[0],d,f,e,t,r)&&r.equals(m[1],y[1],m[0],y[0],e,t,r)){g=s[f]=!0;break}f++}if(!g)return!1;d++}return!0}var pSe=zc;function gSe(e,t,r){var n=O_(e),s=n.length;if(O_(t).length!==s)return!1;for(;s-- >0;)if(!lG(e,t,r,n[s]))return!1;return!0}function og(e,t,r){var n=C_(e),s=n.length;if(C_(t).length!==s)return!1;for(var i,o,l;s-- >0;
1087)if(i=n[s],!lG(e,t,r,i)||(o=E_(e,i),l=E_(t,i),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function fSe(e,t){return zc(e.valueOf(),t.valueOf())}function hSe(e,t){return e.source===t.source&&e.flags===t.flags}function N_(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var s=new Array(n),i=e.values(),o,l;(o=i.next())&&!o.done;){for(var d=t.values(),u=!1,g=0;(l=d.next())&&!l.done;){if(!s[g]&&r.equals(o.value,l.value,o.value,l.value,e,t,r)){u=s[g]=!0;break}g++}if(!u)return!1}return!0}function mSe(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function xSe(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function lG(e,t,r,n){return(n===oSe||n===iSe||n===sSe)&&(e.$$typeof||t.$$typeof)?!0:aSe(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var ySe="[object Arguments]",bSe="[object Boolean]",vSe="[object Date]",SSe="[object Error]",jSe="[object Map]",wSe="[object Number]",kSe="[object Object]",PSe="[object RegExp]",TSe="[object Set]",ASe="[object String]",zSe="[object URL]",CSe=Array.isArray,R_=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,D_=Object.assign,ESe=Object.prototype.toString.call.bind(Object.prototype.toString);function OSe(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,s=e.areFunctionsEqual,i=e.areMapsEqual,o=e.areNumbersEqual,l=e.areObjectsEqual,d=e.arePrimitiveWrappersEqual,u=e.areRegExpsEqual,g=e.areSetsEqual,f=e.areTypedArraysEqual,m=e.areUrlsEqual,y=e.unknownTagComparators;return function(b,v,j){if(b===v)return!0;if(b==null||v==null)return!1;var k=typeof b;if(k!==typeof v)return!1;if(k!=="object")return k==="number"?o(b,v,j):k==="function"?s(b,v,j):!1;var P=b.constructor;if(P!==v.constructor)return!1;if(P===Object)return l(b,v,j);if(CSe(b))return t(b,v,j);if(R_!=null&&R_(b))return f(b,v,j);if(P===Date)return r(b,v,j);if(P===RegExp)return u(b,v,j);if(P===Map)return i(b,v,j);if(P===Set)return g(b,v,j);var O=ESe(b);if(O===vSe)return r(b,v,j);if(O===PSe)return u(b,v,j);if(O===jSe)return i(b,v,j);if(O===TSe)return g(b,v,j);if(O===kSe)return typeof b.then!="function"&&typeof v.then!="function"&&l(b,v,j);if(O===zSe)return m(b,v,j);if(O===SSe)return n(b,v,j);if(O===ySe)return l(b,v,j);if(O===bSe||O===wSe||O===ASe)return d(b,v,j);if(y){var T=y[O];if(!T){var C=nSe(b);C&&(T=y[C])}if(T)return T(b,v,j)}return!1}}function MSe(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,s={areArraysEqual:n?og:lSe,areDatesEqual:cSe,areErrorsEqual:dSe,areFunctionsEqual:uSe,areMapsEqual:n?z_(M_,og):M_,areNumbersEqual:pSe,areObjectsEqual:n?og:gSe,arePrimitiveWrappersEqual:fSe,areRegExpsEqual:hSe,areSetsEqual:n?z_(N_,og):N_,areTypedArraysEqual:n?og:mSe,areUrlsEqual:xSe,unknownTagComparators:void 0};if(r&&(s=D_({},s,r(s))),t){var i=bx(s.areArraysEqual),o=bx(s.areMapsEqual),l=bx(s.areObjectsEqual),d=bx(s.areSetsEqual);s=D_({},s,{areArraysEqual:i,areMapsEqual:o,areObjectsEqual:l,areSetsEqual:d})}return s}function NSe(e){return function(t,r,n,s,i,o,l){return e(t,r,l)}}function RSe(e){var t=e.circular,r=e.comparator,n=e.createState,s=e.equals,i=e.strict;if(n)return function(d,u){var g=n(),f=g.cache,m=f===void 0?t?new WeakMap:void 0:f,y=g.meta;return r(d,u,{cache:m,equals:s,meta:y,strict:i})};if(t)return function(d,u){return r(d,u,{cache:new WeakMap,equals:s,meta:void 0,strict:i})};var o={cache:void 0,equals:s,meta:void 0,strict:i};return function(d,u){return r(d,u,o)}}var DSe=Xo();Xo({strict:!0});Xo({circular:!0});Xo({circular:!0,strict:!0});Xo({createInternalComparator:function(){return zc}});Xo({strict:!0,createInternalComparator:function(){return zc}});Xo({circular:!0,createInternalComparator:function(){return zc}});Xo({circular:!0,createInternalComparator:function(){return zc},strict:!0});function Xo(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,s=e.createState,i=e.strict,o=i===void 0?!1:i,l=MSe(e),d=OSe(l),u=n?n(d):NSe(d);return RSe({circular:r,comparator:d,createState:s,equals:u,strict:o})}function _Se(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function __(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function s(i){r<0&&(r=i),i-r>t?(e(i),r=-1):_Se(s)};requestAnimationFrame(n)}function r4(e){"@babel/helpers - typeof";return r4=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},r4(e)}function ISe(e){return $Se(e)||WSe(e)||LSe(e)||BSe()}
vendor: 159,921 bytes, lines 1087-1110
1087function BSe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1088In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LSe(e,t){if(e){if(typeof e=="string")return I_(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return I_(e,t)}}function I_(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function WSe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $Se(e){if(Array.isArray(e))return e}function FSe(){var e={},t=function(){return null},r=!1,n=function s(i){if(!r){if(Array.isArray(i)){if(!i.length)return;var o=i,l=ISe(o),d=l[0],u=l.slice(1);if(typeof d=="number"){__(s.bind(null,u),d);return}s(d),__(s.bind(null,u));return}r4(i)==="object"&&(e=i,t(e)),typeof i=="function"&&i()}};return{stop:function(){r=!0},start:function(i){r=!1,n(i)},subscribe:function(i){return t=i,function(){t=function(){return null}}}}}function Rf(e){"@babel/helpers - typeof";return Rf=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},Rf(e)}function B_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function L_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?B_(Object(r),!0).forEach(function(n){cG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cG(e,t,r){return t=HSe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HSe(e){var t=qSe(e,"string");return Rf(t)==="symbol"?t:String(t)}function qSe(e,t){if(Rf(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rf(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var USe=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,s){return n.filter(function(i){return s.includes(i)})})},GSe=function(t){return t},VSe=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Lg=function(t,r){return Object.keys(r).reduce(function(n,s){return L_(L_({},n),{},cG({},s,t(s,r[s])))},{})},W_=function(t,r,n){return t.map(function(s){return"".concat(VSe(s)," ").concat(r,"ms ").concat(n)}).join(",")};function XSe(e,t){return YSe(e)||QSe(e,t)||dG(e,t)||KSe()}function KSe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1089In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QSe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,s,i,o,l=[],d=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(d=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);d=!0);}catch(g){u=!0,s=g}finally{try{if(!d&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw s}}return l}}function YSe(e){if(Array.isArray(e))return e}function ZSe(e){return tje(e)||eje(e)||dG(e)||JSe()}function JSe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1090In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dG(e,t){if(e){if(typeof e=="string")return n4(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n4(e,t)}}function eje(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tje(e){if(Array.isArray(e))return n4(e)}function n4(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var M5=1e-4,uG=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},pG=function(t,r){return t.map(function(n,s){return n*Math.pow(r,s)}).reduce(function(n,s){return n+s})},$_=function(t,r){return function(n){var s=uG(t,r);return pG(s,n)}},rje=function(t,r){return function(n){var s=uG(t,r),i=[].concat(ZSe(s.map(function(o,l){return o*l}).slice(1)),[0]);return pG(i,n)}},F_=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var s=r[0],i=r[1],o=r[2],l=r[3];if(r.length===1)switch(r[0]){case"linear":s=0,i=0,o=1,l=1;break;case"ease":s=.25,i=.1,o=.25,l=1;break;case"ease-in":s=.42,i=0,o=1,l=1;break;case"ease-out":s=.42,i=0,o=.58,l=1;break;case"ease-in-out":s=0,i=0,o=.58,l=1;break;default:{var d=r[0].split("(");if(d[0]==="cubic-bezier"&&d[1].split(")")[0].split(",").length===4){var u=d[1].split(")")[0].split(",").map(function(v){return parseFloat(v)}),g=XSe(u,4);s=g[0],i=g[1],o=g[2],l=g[3]}}}var f=$_(s,o),m=$_(i,l),y=rje(s,o),S=function(j){return j>1?1:j<0?0:j},b=function(j){for(var k=j>1?1:j,P=k,O=0;O<8;++O){var T=f(P)-k,C=y(P);if(Math.abs(T-k)<M5||C<M5)return m(P);P=S(P-T/C)}return m(P)};return b.isStepper=!1,b},nje=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,s=t.damping,i=s===void 0?8:s,o=t.dt,l=o===void 0?17:o,d=function(g,f,m){var y=-(g-f)*n,S=m*i,b=m+(y-S)*l/1e3,v=m*l/1e3+g;return Math.abs(v-f)<M5&&Math.abs(b)<M5?[f,0]:[v,b]};return d.isStepper=!0,d.dt=l,d},aje=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var s=r[0];if(typeof s=="string")switch(s){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return F_(s);case"spring":return nje();default:if(s.split("(")[0]==="cubic-bezier")return F_(s)}return typeof s=="function"?s:null};function Df(e){"@babel/helpers - typeof";return Df=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},Df(e)}function H_(e){return oje(e)||ije(e)||gG(e)||sje()}function sje(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1091In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ije(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oje(e){if(Array.isArray(e))return s4(e)}function q_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Rr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?q_(Object(r),!0).forEach(function(n){a4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function a4(e,t,r){return t=lje(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lje(e){var t=cje(e,"string");return Df(t)==="symbol"?t:String(t)}function cje(e,t){if(Df(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Df(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dje(e,t){return gje(e)||pje(e,t)||gG(e,t)||uje()}function uje(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1092In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gG(e,t){if(e){if(typeof e=="string")return s4(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s4(e,t)}}function s4(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function pje(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,s,i,o,l=[],d=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(d=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);d=!0);}catch(g){u=!0,s=g}finally{try{if(!d&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw s}}return l}}function gje(e){if(Array.isArray(e))return e}var N5=function(t,r,n){return t+(r-t)*n},i4=function(t){var r=t.from,n=t.to;return r!==n},fje=function e(t,r,n){var s=Lg(function(i,o){if(i4(o)){var l=t(o.from,o.to,o.velocity),d=dje(l,2),u=d[0],g=d[1];return Rr(Rr({},o),{},{from:u,velocity:g})}return o},r);return n<1?Lg(function(i,o){return i4(o)?Rr(Rr({},o),{},{velocity:N5(o.velocity,s[i].velocity,n),from:N5(o.from,s[i].from,n)}):o},r):e(t,s,n-1)};const hje=(function(e,t,r,n,s){var i=USe(e,t),o=i.reduce(function(v,j){return Rr(Rr({},v),{},a4({},j,[e[j],t[j]]))},{}),l=i.reduce(function(v,j){return Rr(Rr({},v),{},a4({},j,{from:e[j],velocity:0,to:t[j]}))},{}),d=-1,u,g,f=function(){return null},m=function(){return Lg(function(j,k){return k.from},l)},y=function(){return!Object.values(l).filter(i4).length},S=function(j){u||(u=j);var k=j-u,P=k/r.dt;l=fje(r,l,P),s(Rr(Rr(Rr({},e),t),m())),u=j,y()||(d=requestAnimationFrame(f))},b=function(j){g||(g=j);var k=(j-g)/n,P=Lg(function(T,C){return N5.apply(void 0,H_(C).concat([r(k)]))},o);if(s(Rr(Rr(Rr({},e),t),P)),k<1)d=requestAnimationFrame(f);else{var O=Lg(function(T,C){return N5.apply(void 0,H_(C).concat([r(1)]))},o);s(Rr(Rr(Rr({},e),t),O))}};return f=r.isStepper?S:b,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(d)}}});function ju(e){"@babel/helpers - typeof";return ju=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},ju(e)}var mje=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function xje(e,t){if(e==null)return{};var r=yje(e,t),n,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)n=i[s],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yje(e,t){if(e==null)return{};var r={},n=Object.keys(e),s,i;for(i=0;i<n.length;i++)s=n[i],!(t.indexOf(s)>=0)&&(r[s]=e[s]);return r}function bk(e){return jje(e)||Sje(e)||vje(e)||bje()}function bje(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1093In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vje(e,t){if(e){if(typeof e=="string")return o4(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o4(e,t)}}function Sje(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jje(e){if(Array.isArray(e))return o4(e)}function o4(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function U_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Ma(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?U_(Object(r),!0).forEach(function(n){vg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vg(e,t,r){return t=fG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kje(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fG(n.key),n)}}function Pje(e,t,r){return t&&kje(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fG(e){var t=Tje(e,"string");return ju(t)==="symbol"?t:String(t)}function Tje(e,t){if(ju(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ju(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Aje(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l4(e,t)}function l4(e,t){return l4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,s){return n.__proto__=s,n},l4(e,t)}function zje(e){var t=Cje();return function(){var n=R5(e),s;if(t){var i=R5(this).constructor;s=Reflect.construct(n,arguments,i)}else s=n.apply(this,arguments);return c4(this,s)}}function c4(e,t){if(t&&(ju(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d4(e)}function d4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cje(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function R5(e){return R5=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},R5(e)}var ji=(function(e){Aje(r,e);var t=zje(r);function r(n,s){var i;wje(this,r),i=t.call(this,n,s);var o=i.props,l=o.isActive,d=o.attributeName,u=o.from,g=o.to,f=o.steps,m=o.children,y=o.duration;if(i.handleStyleChange=i.handleStyleChange.bind(d4(i)),i.changeStyle=i.changeStyle.bind(d4(i)),!l||y<=0)return i.state={style:{}},typeof m=="function"&&(i.state={style:g}),c4(i);if(f&&f.length)i.state={style:f[0].style};else if(u){if(typeof m=="function")return i.state={style:u},c4(i);i.state={style:d?vg({},d,u):u}}else i.state={style:{}};return i}return Pje(r,[{key:"componentDidMount",value:function(){var s=this.props,i=s.isActive,o=s.canBegin;this.mounted=!0,!(!i||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(s){var i=this.props,o=i.isActive,l=i.canBegin,d=i.attributeName,u=i.shouldReAnimate,g=i.to,f=i.from,m=this.state.style;if(l){if(!o){var y={style:d?vg({},d,g):g};this.state&&m&&(d&&m[d]!==g||!d&&m!==g)&&this.setState(y);return}if(!(DSe(s.to,g)&&s.canBegin&&s.isActive)){var S=!s.canBegin||!s.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var b=S||u?f:s.to;if(this.state&&m){var v={style:d?vg({},d,b):b};(d&&m[d]!==b||!d&&m!==b)&&this.setState(v)}this.runAnimation(Ma(Ma({},this.props),{},{from:b,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var s=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),s&&s()}},{key:"handleStyleChange",value:function(s){this.changeStyle(s)}},{key:"changeStyle",value:function(s){this.mounted&&this.setState({style:s})}},{key:"runJSAnimation",value:function(s){var i=this,o=s.from,l=s.to,d=s.duration,u=s.easing,g=s.begin,f=s.onAnimationEnd,m=s.onAnimationStart,y=hje(o,l,aje(u),d,this.changeStyle),S=function(){i.stopJSAnimation=y()};this.manager.start([m,g,S,d,f])}},{key:"runStepAnimation",value:function(s){var i=this,o=s.steps,l=s.begin,d=s.onAnimationStart,u=o[0],g=u.style,f=u.duration,m=f===void 0?0:f,y=function(b,v,j){if(j===0)return b;var k=v.duration,P=v.easing,O=P===void 0?"ease":P,T=v.style,C=v.properties,A=v.onAnimationEnd,N=j>0?o[j-1]:v,M=C||Object.keys(T);if(typeof O=="function"||O==="spring")return[].concat(bk(b),[i.runJSAnimation.bind(i,{from:N.style,to:T,duration:k,easing:O}),k]);var B=W_(M,k,O),R=Ma(Ma(Ma({},N.style),T),{},{transition:B});return[].concat(bk(b),[R,k,A]).filter(GSe)};return this.manager.start([d].concat(bk(o.reduce(y,[g,Math.max(m,l)])),[s.onAnimationEnd]))}},{key:"runAnimation",value:function(s){this.manager||(this.manager=FSe());var i=s.begin,o=s.duration,l=s.attributeName,d=s.to,u=s.easing,g=s.onAnimationStart,f=s.onAnimationEnd,m=s.steps,y=s.children,S=this.manager;if(this.unSubscribe=S.subscribe(this.handleStyleChange),typeof u=="function"||typeof y=="function"||u==="spring"){this.runJSAnimation(s);return}if(m.length>1){this.runStepAnimation(s);return}var b=l?vg({},l,d):d,v=W_(Object.keys(b),o,u);S.start([g,i,Ma(Ma({},b),{},{transition:v}),o,f])}},{key:"render",value:function(){var s=this.props,i=s.children;s.begin;var o=s.duration;s.attributeName,s.easing;var l=s.isActive;s.steps,s.from,s.to,s.canBegin,s.onAnimationEnd,s.shouldReAnimate,s.onAnimationReStart;var d=xje(s,mje),u=E.Children.count(i),g=this.state.style;if(typeof i=="function")return i(g);if(!l||u===0||o<=0)return i;var f=function(y){var S=y.props,b=S.style,v=b===void 0?{}:b,j=S.className,k=E.cloneElement(y,Ma(Ma({},d),{},{style:Ma(Ma({},v),g),className:j}));return k};return u===1?f(E.Children.only(i)):G.createElement("div",null,E.Children.map(i,function(m){return f(m)}))}}]),r})(E.PureComponent);ji.displayName="Animate";ji.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};ji.propTypes={from:gt.oneOfType([gt.object,gt.string]),to:gt.oneOfType([gt.object,gt.string]),attributeName:gt.string,duration:gt.number,begin:gt.number,easing:gt.oneOfType([gt.string,gt.func]),steps:gt.arrayOf(gt.shape({duration:gt.number.isRequired,style:gt.object.isRequired,easing:gt.oneOfType([gt.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),gt.func]),properties:gt.arrayOf("string"),onAnimationEnd:gt.func})),children:gt.oneOfType([gt.node,gt.func]),isActive:gt.bool,canBegin:gt.bool,onAnimationEnd:gt.func,shouldReAnimate:gt.bool,onAnimationStart:gt.func,onAnimationReStart:gt.func};function _f(e){"@babel/helpers - typeof";return _f=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},_f(e)}function D5(){return D5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},D5.apply(this,arguments)}function Eje(e,t){return Rje(e)||Nje(e,t)||Mje(e,t)||Oje()}function Oje(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1094In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mje(e,t){if(e){if(typeof e=="string")return G_(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return G_(e,t)}}function G_(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Nje(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,s,i,o,l=[],d=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(d=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);d=!0);}catch(g){u=!0,s=g}finally{try{if(!d&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw s}}return l}}function Rje(e){if(Array.isArray(e))return e}function V_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function X_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?V_(Object(r),!0).forEach(function(n){Dje(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Dje(e,t,r){return t=_je(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _je(e){var t=Ije(e,"string");return _f(t)=="symbol"?t:t+""}function Ije(e,t){if(_f(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_f(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var K_=function(t,r,n,s,i){var o=Math.min(Math.abs(n)/2,Math.abs(s)/2),l=s>=0?1:-1,d=n>=0?1:-1,u=s>=0&&n>=0||s<0&&n<0?1:0,g;if(o>0&&i instanceof Array){for(var f=[0,0,0,0],m=0,y=4;m<y;m++)f[m]=i[m]>o?o:i[m];g="M".concat(t,",").concat(r+l*f[0]),f[0]>0&&(g+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(u,",").concat(t+d*f[0],",").concat(r)),g+="L ".concat(t+n-d*f[1],",").concat(r),f[1]>0&&(g+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(u,`, 1095 `).concat(t+n,",").concat(r+l*f[1])),g+="L ".concat(t+n,",").concat(r+s-l*f[2]),f[2]>0&&(g+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(u,`, 1096 `).concat(t+n-d*f[2],",").concat(r+s)),g+="L ".concat(t+d*f[3],",").concat(r+s),f[3]>0&&(g+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(u,`, 1097 `).concat(t,",").concat(r+s-l*f[3])),g+="Z"}else if(o>0&&i===+i&&i>0){var S=Math.min(o,i);g="M ".concat(t,",").concat(r+l*S,` 1098 A `).concat(S,",").concat(S,",0,0,").concat(u,",").concat(t+d*S,",").concat(r,` 1099 L `).concat(t+n-d*S,",").concat(r,` 1100 A `).concat(S,",").concat(S,",0,0,").concat(u,",").concat(t+n,",").concat(r+l*S,` 1101 L `).concat(t+n,",").concat(r+s-l*S,` 1102 A `).concat(S,",").concat(S,",0,0,").concat(u,",").concat(t+n-d*S,",").concat(r+s,` 1103 L `).concat(t+d*S,",").concat(r+s,` 1104 A `).concat(S,",").concat(S,",0,0,").concat(u,",").concat(t,",").concat(r+s-l*S," Z")}else g="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(s," h ").concat(-n," Z");return g},Bje=function(t,r){if(!t||!r)return!1;var n=t.x,s=t.y,i=r.x,o=r.y,l=r.width,d=r.height;if(Math.abs(l)>0&&Math.abs(d)>0){var u=Math.min(i,i+l),g=Math.max(i,i+l),f=Math.min(o,o+d),m=Math.max(o,o+d);return n>=u&&n<=g&&s>=f&&s<=m}return!1},Lje={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Z7=function(t){var r=X_(X_({},Lje),t),n=E.useRef(),s=E.useState(-1),i=Eje(s,2),o=i[0],l=i[1];E.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&l(O)}catch{}},[]);var d=r.x,u=r.y,g=r.width,f=r.height,m=r.radius,y=r.className,S=r.animationEasing,b=r.animationDuration,v=r.animationBegin,j=r.isAnimationActive,k=r.isUpdateAnimationActive;if(d!==+d||u!==+u||g!==+g||f!==+f||g===0||f===0)return null;var P=st("recharts-rectangle",y);return k?G.createElement(ji,{canBegin:o>0,from:{width:g,height:f,x:d,y:u},to:{width:g,height:f,x:d,y:u},duration:b,animationEasing:S,isActive:k},function(O){var T=O.width,C=O.height,A=O.x,N=O.y;return G.createElement(ji,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:b,isActive:j,easing:S},G.createElement("path",D5({},at(r,!0),{className:P,d:K_(A,N,T,C,m),ref:n})))}):G.createElement("path",D5({},at(r,!0),{className:P,d:K_(d,u,g,f,m)}))};function u4(){return u4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u4.apply(this,arguments)}var J7=function(t){var r=t.cx,n=t.cy,s=t.r,i=t.className,o=st("recharts-dot",i);return r===+r&&n===+n&&s===+s?E.createElement("circle",u4({},at(t,!1),n5(t),{className:o,cx:r,cy:n,r:s})):null};function If(e){"@babel/helpers - typeof";return If=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},If(e)}var Wje=["x","y","top","left","width","height","className"];function p4(){return p4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p4.apply(this,arguments)}function Q_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function $je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Q_(Object(r),!0).forEach(function(n){Fje(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fje(e,t,r){return t=Hje(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hje(e){var t=qje(e,"string");return If(t)=="symbol"?t:t+""}function qje(e,t){if(If(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(If(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Uje(e,t){if(e==null)return{};var r=Gje(e,t),n,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)n=i[s],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Gje(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Vje=function(t,r,n,s,i,o){return"M".concat(t,",").concat(i,"v").concat(s,"M").concat(o,",").concat(r,"h").concat(n)},Xje=function(t){var r=t.x,n=r===void 0?0:r,s=t.y,i=s===void 0?0:s,o=t.top,l=o===void 0?0:o,d=t.left,u=d===void 0?0:d,g=t.width,f=g===void 0?0:g,m=t.height,y=m===void 0?0:m,S=t.className,b=Uje(t,Wje),v=$je({x:n,y:i,top:l,left:u,width:f,height:y},b);return!ye(n)||!ye(i)||!ye(f)||!ye(y)||!ye(l)||!ye(u)?null:G.createElement("path",p4({},at(v,!0),{className:st("recharts-cross",S),d:Vje(n,i,f,y,l,u)}))},vk,Y_;function Kje(){if(Y_)return vk;Y_=1;var e=Rq(),t=e(Object.getPrototypeOf,Object);return vk=t,vk}var Sk,Z_;function Qje(){if(Z_)return Sk;Z_=1;var e=Ai(),t=Kje(),r=zi(),n="[object Object]",s=Function.prototype,i=Object.prototype,o=s.toString,l=i.hasOwnProperty,d=o.call(Object);function u(g){if(!r(g)||e(g)!=n)return!1;var f=t(g);if(f===null)return!0;var m=l.call(f,"constructor")&&f.constructor;return typeof m=="function"&&m instanceof m&&o.call(m)==d}return Sk=u,Sk}var Yje=Qje();const Zje=jt(Yje);var jk,J_;function Jje(){if(J_)return jk;J_=1;var e=Ai(),t=zi(),r="[object Boolean]";function n(s){return s===!0||s===!1||t(s)&&e(s)==r}return jk=n,jk}var ewe=Jje();const twe=jt(ewe);function Bf(e){"@babel/helpers - typeof";return Bf=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},Bf(e)}function _5(){return _5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_5.apply(this,arguments)}function rwe(e,t){return iwe(e)||swe(e,t)||awe(e,t)||nwe()}function nwe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1105In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function awe(e,t){if(e){if(typeof e=="string")return eI(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eI(e,t)}}function eI(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function swe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,s,i,o,l=[],d=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(d=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);d=!0);}catch(g){u=!0,s=g}finally{try{if(!d&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw s}}return l}}function iwe(e){if(Array.isArray(e))return e}function tI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function rI(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tI(Object(r),!0).forEach(function(n){owe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function owe(e,t,r){return t=lwe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lwe(e){var t=cwe(e,"string");return Bf(t)=="symbol"?t:t+""}function cwe(e,t){if(Bf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nI=function(t,r,n,s,i){var o=n-s,l;return l="M ".concat(t,",").concat(r),l+="L ".concat(t+n,",").concat(r),l+="L ".concat(t+n-o/2,",").concat(r+i),l+="L ".concat(t+n-o/2-s,",").concat(r+i),l+="L ".concat(t,",").concat(r," Z"),l},dwe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},uwe=function(t){var r=rI(rI({},dwe),t),n=E.useRef(),s=E.useState(-1),i=rwe(s,2),o=i[0],l=i[1];E.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var P=n.current.getTotalLength();P&&l(P)}catch{}},[]);var d=r.x,u=r.y,g=r.upperWidth,f=r.lowerWidth,m=r.height,y=r.className,S=r.animationEasing,b=r.animationDuration,v=r.animationBegin,j=r.isUpdateAnimationActive;if(d!==+d||u!==+u||g!==+g||f!==+f||m!==+m||g===0&&f===0||m===0)return null;var k=st("recharts-trapezoid",y);return j?G.createElement(ji,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:m,x:d,y:u},to:{upperWidth:g,lowerWidth:f,height:m,x:d,y:u},duration:b,animationEasing:S,isActive:j},function(P){var O=P.upperWidth,T=P.lowerWidth,C=P.height,A=P.x,N=P.y;return G.createElement(ji,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:b,easing:S},G.createElement("path",_5({},at(r,!0),{className:k,d:nI(A,N,O,T,C),ref:n})))}):G.createElement("g",null,G.createElement("path",_5({},at(r,!0),{className:k,d:nI(d,u,g,f,m)})))},pwe=["option","shapeType","propTransformer","activeClassName","isActive"];function Lf(e){"@babel/helpers - typeof";return Lf=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},Lf(e)}function gwe(e,t){if(e==null)return{};var r=fwe(e,t),n,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)n=i[s],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function fwe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function aI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function I5(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aI(Object(r),!0).forEach(function(n){hwe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hwe(e,t,r){return t=mwe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mwe(e){var t=xwe(e,"string");return Lf(t)=="symbol"?t:t+""}function xwe(e,t){if(Lf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Lf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ywe(e,t){return I5(I5({},t),e)}function bwe(e,t){return e==="symbols"}function sI(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return G.createElement(Z7,r);case"trapezoid":return G.createElement(uwe,r);case"sector":return G.createElement(oG,r);case"symbols":if(bwe(t))return G.createElement(x7,r);break;default:return null}}function vwe(e){return E.isValidElement(e)?e.props:e}function Swe(e){var t=e.option,r=e.shapeType,n=e.propTransformer,s=n===void 0?ywe:n,i=e.activeClassName,o=i===void 0?"recharts-active-shape":i,l=e.isActive,d=gwe(e,pwe),u;if(E.isValidElement(t))u=E.cloneElement(t,I5(I5({},d),vwe(t)));else if(Qe(t))u=t(d);else if(Zje(t)&&!twe(t)){var g=s(t,d);u=G.createElement(sI,{shapeType:r,elementProps:g})}else{var f=d;u=G.createElement(sI,{shapeType:r,elementProps:f})}return l?G.createElement(Kt,{className:o},u):u}function cb(e,t){return t!=null&&"trapezoids"in e.props}function db(e,t){return t!=null&&"sectors"in e.props}function Wf(e,t){return t!=null&&"points"in e.props}function jwe(e,t){var r,n,s=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,i=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return s&&i}function wwe(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function kwe(e,t){var r=e.x===t.x,n=e.y===t.y,s=e.z===t.z;return r&&n&&s}function Pwe(e,t){var r;return cb(e,t)?r=jwe:db(e,t)?r=wwe:Wf(e,t)&&(r=kwe),r}function Twe(e,t){var r;return cb(e,t)?r="trapezoids":db(e,t)?r="sectors":Wf(e,t)&&(r="points"),r}function Awe(e,t){if(cb(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(db(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return Wf(e,t)?t.payload:{}}function zwe(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,s=Twe(r,t),i=Awe(r,t),o=n.filter(function(d,u){var g=ib(i,d),f=r.props[s].filter(function(S){var b=Pwe(r,t);return b(S,t)}),m=r.props[s].indexOf(f[f.length-1]),y=u===m;return g&&y}),l=n.indexOf(o[o.length-1]);return l}var wk,iI;function Cwe(){if(iI)return wk;iI=1;var e=Math.ceil,t=Math.max;function r(n,s,i,o){for(var l=-1,d=t(e((s-n)/(i||1)),0),u=Array(d);d--;)u[o?d:++l]=n,n+=i;return u}return wk=r,wk}var kk,oI;function hG(){if(oI)return kk;oI=1;var e=Qq(),t=1/0,r=17976931348623157e292;function n(s){if(!s)return s===0?s:0;if(s=e(s),s===t||s===-t){var i=s<0?-1:1;return i*r}return s===s?s:0}return kk=n,kk}var Pk,lI;function Ewe(){if(lI)return Pk;lI=1;var e=Cwe(),t=Yy(),r=hG();function n(s){return function(i,o,l){return l&&typeof l!="number"&&t(i,o,l)&&(o=l=void 0),i=r(i),o===void 0?(o=i,i=0):o=r(o),l=l===void 0?i<o?1:-1:r(l),e(i,o,l,s)}}return Pk=n,Pk}var Tk,cI;function Owe(){if(cI)return Tk;cI=1;var e=Ewe(),t=e();return Tk=t,Tk}var Mwe=Owe();const B5=jt(Mwe);function $f(e){"@babel/helpers - typeof";return $f=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},$f(e)}function dI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function uI(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dI(Object(r),!0).forEach(function(n){mG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mG(e,t,r){return t=Nwe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nwe(e){var t=Rwe(e,"string");return $f(t)=="symbol"?t:t+""}function Rwe(e,t){if($f(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($f(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Dwe=["Webkit","Moz","O","ms"],_we=function(t,r){var n=t.replace(/(\w)/,function(i){return i.toUpperCase()}),s=Dwe.reduce(function(i,o){return uI(uI({},i),{},mG({},o+n,r))},{});return s[t]=r,s};function wu(e){"@babel/helpers - typeof";return wu=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},wu(e)}function L5(){return L5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},L5.apply(this,arguments)}function pI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Ak(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pI(Object(r),!0).forEach(function(n){In(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Iwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gI(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yG(n.key),n)}}function Bwe(e,t,r){return t&&gI(e.prototype,t),r&&gI(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lwe(e,t,r){return t=W5(t),Wwe(e,xG()?Reflect.construct(t,r||[],W5(e).constructor):t.apply(e,r))}function Wwe(e,t){if(t&&(wu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $we(e)}function $we(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xG=function(){return!!e})()}function W5(e){return W5=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},W5(e)}function Fwe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g4(e,t)}function g4(e,t){return g4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,s){return n.__proto__=s,n},g4(e,t)}function In(e,t,r){return t=yG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yG(e){var t=Hwe(e,"string");return wu(t)=="symbol"?t:t+""}function Hwe(e,t){if(wu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var qwe=function(t){var r=t.data,n=t.startIndex,s=t.endIndex,i=t.x,o=t.width,l=t.travellerWidth;if(!r||!r.length)return{};var d=r.length,u=Ig().domain(B5(0,d)).range([i,i+o-l]),g=u.domain().map(function(f){return u(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(s),scale:u,scaleValues:g}},fI=function(t){return t.changedTouches&&!!t.changedTouches.length},ku=(function(e){function t(r){var n;return Iwe(this,t),n=Lwe(this,t,[r]),In(n,"handleDrag",function(s){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(s):n.state.isSlideMoving&&n.handleSlideDrag(s)}),In(n,"handleTouchMove",function(s){s.changedTouches!=null&&s.changedTouches.length>0&&n.handleDrag(s.changedTouches[0])}),In(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var s=n.props,i=s.endIndex,o=s.onDragEnd,l=s.startIndex;o?.({endIndex:i,startIndex:l})}),n.detachDragEndListener()}),In(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),In(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),In(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),In(n,"handleSlideDragStart",function(s){var i=fI(s)?s.changedTouches[0]:s;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:i.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return Fwe(t,e),Bwe(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var s=n.startX,i=n.endX,o=this.state.scaleValues,l=this.props,d=l.gap,u=l.data,g=u.length-1,f=Math.min(s,i),m=Math.max(s,i),y=t.getIndexInRange(o,f),S=t.getIndexInRange(o,m);return{startIndex:y-y%d,endIndex:S===g?g:S-S%d}}},{key:"getTextOfTick",value:function(n){var s=this.props,i=s.data,o=s.tickFormatter,l=s.dataKey,d=Gn(i[n],l,n);return Qe(o)?o(d,n):d}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var s=this.state,i=s.slideMoveStartX,o=s.startX,l=s.endX,d=this.props,u=d.x,g=d.width,f=d.travellerWidth,m=d.startIndex,y=d.endIndex,S=d.onChange,b=n.pageX-i;b>0?b=Math.min(b,u+g-f-l,u+g-f-o):b<0&&(b=Math.max(b,u-o,u-l));var v=this.getIndex({startX:o+b,endX:l+b});(v.startIndex!==m||v.endIndex!==y)&&S&&S(v),this.setState({startX:o+b,endX:l+b,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,s){var i=fI(s)?s.changedTouches[0]:s;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:i.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var s=this.state,i=s.brushMoveStartX,o=s.movingTravellerId,l=s.endX,d=s.startX,u=this.state[o],g=this.props,f=g.x,m=g.width,y=g.travellerWidth,S=g.onChange,b=g.gap,v=g.data,j={startX:this.state.startX,endX:this.state.endX},k=n.pageX-i;k>0?k=Math.min(k,f+m-y-u):k<0&&(k=Math.max(k,f-u)),j[o]=u+k;var P=this.getIndex(j),O=P.startIndex,T=P.endIndex,C=function(){var N=v.length-1;return o==="startX"&&(l>d?O%b===0:T%b===0)||l<d&&T===N||o==="endX"&&(l>d?T%b===0:O%b===0)||l>d&&T===N};this.setState(In(In({},o,u+k),"brushMoveStartX",n.pageX),function(){S&&C()&&S(P)})}},{key:"handleTravellerMoveKeyboard",value:function(n,s){var i=this,o=this.state,l=o.scaleValues,d=o.startX,u=o.endX,g=this.state[s],f=l.indexOf(g);if(f!==-1){var m=f+n;if(!(m===-1||m>=l.length)){var y=l[m];s==="startX"&&y>=u||s==="endX"&&y<=d||this.setState(In({},s,y),function(){i.props.onChange(i.getIndex({startX:i.state.startX,endX:i.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,s=n.x,i=n.y,o=n.width,l=n.height,d=n.fill,u=n.stroke;return G.createElement("rect",{stroke:u,fill:d,x:s,y:i,width:o,height:l})}},{key:"renderPanorama",value:function(){var n=this.props,s=n.x,i=n.y,o=n.width,l=n.height,d=n.data,u=n.children,g=n.padding,f=E.Children.only(u);return f?G.cloneElement(f,{x:s,y:i,width:o,height:l,margin:g,compact:!0,data:d}):null}},{key:"renderTravellerLayer",value:function(n,s){var i,o,l=this,d=this.props,u=d.y,g=d.travellerWidth,f=d.height,m=d.traveller,y=d.ariaLabel,S=d.data,b=d.startIndex,v=d.endIndex,j=Math.max(n,this.props.x),k=Ak(Ak({},at(this.props,!1)),{},{x:j,y:u,width:g,height:f}),P=y||"Min value: ".concat((i=S[b])===null||i===void 0?void 0:i.name,", Max value: ").concat((o=S[v])===null||o===void 0?void 0:o.name);return G.createElement(Kt,{tabIndex:0,role:"slider","aria-label":P,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[s],onTouchStart:this.travellerDragStartHandlers[s],onKeyDown:function(T){["ArrowLeft","ArrowRight"].includes(T.key)&&(T.preventDefault(),T.stopPropagation(),l.handleTravellerMoveKeyboard(T.key==="ArrowRight"?1:-1,s))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(m,k))}},{key:"renderSlide",value:function(n,s){var i=this.props,o=i.y,l=i.height,d=i.stroke,u=i.travellerWidth,g=Math.min(n,s)+u,f=Math.max(Math.abs(s-n)-u,0);return G.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:d,fillOpacity:.2,x:g,y:o,width:f,height:l})}},{key:"renderText",value:function(){var n=this.props,s=n.startIndex,i=n.endIndex,o=n.y,l=n.height,d=n.travellerWidth,u=n.stroke,g=this.state,f=g.startX,m=g.endX,y=5,S={pointerEvents:"none",fill:u};return G.createElement(Kt,{className:"recharts-brush-texts"},G.createElement(h5,L5({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,m)-y,y:o+l/2},S),this.getTextOfTick(s)),G.createElement(h5,L5({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,m)+d+y,y:o+l/2},S),this.getTextOfTick(i)))}},{key:"render",value:function(){var n=this.props,s=n.data,i=n.className,o=n.children,l=n.x,d=n.y,u=n.width,g=n.height,f=n.alwaysShowText,m=this.state,y=m.startX,S=m.endX,b=m.isTextActive,v=m.isSlideMoving,j=m.isTravellerMoving,k=m.isTravellerFocused;if(!s||!s.length||!ye(l)||!ye(d)||!ye(u)||!ye(g)||u<=0||g<=0)return null;var P=st("recharts-brush",i),O=G.Children.count(o)===1,T=_we("userSelect","none");return G.createElement(Kt,{className:P,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:T},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(y,S),this.renderTravellerLayer(y,"startX"),this.renderTravellerLayer(S,"endX"),(b||v||j||k||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var s=n.x,i=n.y,o=n.width,l=n.height,d=n.stroke,u=Math.floor(i+l/2)-1;return G.createElement(G.Fragment,null,G.createElement("rect",{x:s,y:i,width:o,height:l,fill:d,stroke:"none"}),G.createElement("line",{x1:s+1,y1:u,x2:s+o-1,y2:u,fill:"none",stroke:"#fff"}),G.createElement("line",{x1:s+1,y1:u+2,x2:s+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,s){var i;return G.isValidElement(n)?i=G.cloneElement(n,s):Qe(n)?i=n(s):i=t.renderDefaultTraveller(s),i}},{key:"getDerivedStateFromProps",value:function(n,s){var i=n.data,o=n.width,l=n.x,d=n.travellerWidth,u=n.updateId,g=n.startIndex,f=n.endIndex;if(i!==s.prevData||u!==s.prevUpdateId)return Ak({prevData:i,prevTravellerWidth:d,prevUpdateId:u,prevX:l,prevWidth:o},i&&i.length?qwe({data:i,width:o,x:l,travellerWidth:d,startIndex:g,endIndex:f}):{scale:null,scaleValues:null});if(s.scale&&(o!==s.prevWidth||l!==s.prevX||d!==s.prevTravellerWidth)){s.scale.range([l,l+o-d]);var m=s.scale.domain().map(function(y){return s.scale(y)});return{prevData:i,prevTravellerWidth:d,prevUpdateId:u,prevX:l,prevWidth:o,startX:s.scale(n.startIndex),endX:s.scale(n.endIndex),scaleValues:m}}return null}},{key:"getIndexInRange",value:function(n,s){for(var i=n.length,o=0,l=i-1;l-o>1;){var d=Math.floor((o+l)/2);n[d]>s?l=d:o=d}return s>=n[l]?l:o}}])})(E.PureComponent);In(ku,"displayName","Brush");In(ku,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var zk,hI;function Uwe(){if(hI)return zk;hI=1;var e=k7();function t(r,n){var s;return e(r,function(i,o,l){return s=n(i,o,l),!s}),!!s}return zk=t,zk}var Ck,mI;function Gwe(){if(mI)return Ck;mI=1;var e=Aq(),t=Uo(),r=Uwe(),n=An(),s=Yy();function i(o,l,d){var u=n(o)?e:r;return d&&s(o,l,d)&&(l=void 0),u(o,t(l,3))}return Ck=i,Ck}var Vwe=Gwe();const Xwe=jt(Vwe);var vs=function(t,r){var n=t.alwaysShow,s=t.ifOverflow;return n&&(s="extendDomain"),s===r},Ek,xI;function Kwe(){if(xI)return Ek;xI=1;var e=Uq();function t(r,n,s){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:s,writable:!0}):r[n]=s}return Ek=t,Ek}var Ok,yI;function Qwe(){if(yI)return Ok;yI=1;var e=Kwe(),t=Hq(),r=Uo();function n(s,i){var o={};return i=r(i,3),t(s,function(l,d,u){e(o,d,i(l,d,u))}),o}return Ok=n,Ok}var Ywe=Qwe();const Zwe=jt(Ywe);var Mk,bI;function Jwe(){if(bI)return Mk;bI=1;function e(t,r){for(var n=-1,s=t==null?0:t.length;++n<s;)if(!r(t[n],n,t))return!1;return!0}return Mk=e,Mk}var Nk,vI;function eke(){if(vI)return Nk;vI=1;var e=k7();function t(r,n){var s=!0;return e(r,function(i,o,l){return s=!!n(i,o,l),s}),s}return Nk=t,Nk}var Rk,SI;function tke(){if(SI)return Rk;SI=1;var e=Jwe(),t=eke(),r=Uo(),n=An(),s=Yy();function i(o,l,d){var u=n(o)?e:t;return d&&s(o,l,d)&&(l=void 0),u(o,r(l,3))}return Rk=i,Rk}var rke=tke();const bG=jt(rke);var nke=["x","y"];function Ff(e){"@babel/helpers - typeof";return Ff=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},Ff(e)}function f4(){return f4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f4.apply(this,arguments)}function jI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function lg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jI(Object(r),!0).forEach(function(n){ake(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ake(e,t,r){return t=ske(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ske(e){var t=ike(e,"string");return Ff(t)=="symbol"?t:t+""}function ike(e,t){if(Ff(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ff(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oke(e,t){if(e==null)return{};var r=lke(e,t),n,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)n=i[s],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lke(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function cke(e,t){var r=e.x,n=e.y,s=oke(e,nke),i="".concat(r),o=parseInt(i,10),l="".concat(n),d=parseInt(l,10),u="".concat(t.height||s.height),g=parseInt(u,10),f="".concat(t.width||s.width),m=parseInt(f,10);return lg(lg(lg(lg(lg({},t),s),o?{x:o}:{}),d?{y:d}:{}),{},{height:g,width:m,name:t.name,radius:t.radius})}function wI(e){return G.createElement(Swe,f4({shapeType:"rectangle",propTransformer:cke,activeClassName:"recharts-active-bar"},e))}var dke=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,s){if(typeof t=="number")return t;var i=ye(n)||yhe(n);return i?t(n,s):(i||dc(),r)}},uke=["value","background"],vG;function Pu(e){"@babel/helpers - typeof";return Pu=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},Pu(e)}function pke(e,t){if(e==null)return{};var r=gke(e,t),n,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)n=i[s],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gke(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function $5(){return $5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$5.apply(this,arguments)}function kI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function ir(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kI(Object(r),!0).forEach(function(n){jo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PI(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jG(n.key),n)}}function hke(e,t,r){return t&&PI(e.prototype,t),r&&PI(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function mke(e,t,r){return t=F5(t),xke(e,SG()?Reflect.construct(t,r||[],F5(e).constructor):t.apply(e,r))}function xke(e,t){if(t&&(Pu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yke(e)}function yke(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(SG=function(){return!!e})()}function F5(e){return F5=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},F5(e)}function bke(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h4(e,t)}function h4(e,t){return h4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,s){return n.__proto__=s,n},h4(e,t)}function jo(e,t,r){return t=jG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jG(e){var t=vke(e,"string");return Pu(t)=="symbol"?t:t+""}function vke(e,t){if(Pu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var xh=(function(e){function t(){var r;fke(this,t);for(var n=arguments.length,s=new Array(n),i=0;i<n;i++)s[i]=arguments[i];return r=mke(this,t,[].concat(s)),jo(r,"state",{isAnimationFinished:!1}),jo(r,"id",dh("recharts-bar-")),jo(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),jo(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return bke(t,e),hke(t,[{key:"renderRectanglesStatically",value:function(n){var s=this,i=this.props,o=i.shape,l=i.dataKey,d=i.activeIndex,u=i.activeBar,g=at(this.props,!1);return n&&n.map(function(f,m){var y=m===d,S=y?u:o,b=ir(ir(ir({},g),f),{},{isActive:y,option:S,index:m,dataKey:l,onAnimationStart:s.handleAnimationStart,onAnimationEnd:s.handleAnimationEnd});return G.createElement(Kt,$5({className:"recharts-bar-rectangle"},a5(s.props,f,m),{key:"rectangle-".concat(f?.x,"-").concat(f?.y,"-").concat(f?.value,"-").concat(m)}),G.createElement(wI,b))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,s=this.props,i=s.data,o=s.layout,l=s.isAnimationActive,d=s.animationBegin,u=s.animationDuration,g=s.animationEasing,f=s.animationId,m=this.state.prevData;return G.createElement(ji,{begin:d,duration:u,isActive:l,easing:g,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(y){var S=y.t,b=i.map(function(v,j){var k=m&&m[j];if(k){var P=Da(k.x,v.x),O=Da(k.y,v.y),T=Da(k.width,v.width),C=Da(k.height,v.height);return ir(ir({},v),{},{x:P(S),y:O(S),width:T(S),height:C(S)})}if(o==="horizontal"){var A=Da(0,v.height),N=A(S);return ir(ir({},v),{},{y:v.y+v.height-N,height:N})}var M=Da(0,v.width),B=M(S);return ir(ir({},v),{},{width:B})});return G.createElement(Kt,null,n.renderRectanglesStatically(b))})}},{key:"renderRectangles",value:function(){var n=this.props,s=n.data,i=n.isAnimationActive,o=this.state.prevData;return i&&s&&s.length&&(!o||!ib(o,s))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(s)}},{key:"renderBackground",value:function(){var n=this,s=this.props,i=s.data,o=s.dataKey,l=s.activeIndex,d=at(this.props.background,!1);return i.map(function(u,g){u.value;var f=u.background,m=pke(u,uke);if(!f)return null;var y=ir(ir(ir(ir(ir({},m),{},{fill:"#eee"},f),d),a5(n.props,u,g)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:g,className:"recharts-bar-background-rectangle"});return G.createElement(wI,$5({key:"background-bar-".concat(g),option:n.props.background,isActive:g===l},y))})}},{key:"renderErrorBar",value:function(n,s){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.data,l=i.xAxis,d=i.yAxis,u=i.layout,g=i.children,f=xa(g,mh);if(!f)return null;var m=u==="vertical"?o[0].height/2:o[0].width/2,y=function(v,j){var k=Array.isArray(v.value)?v.value[1]:v.value;return{x:v.x,y:v.y,value:k,errorVal:Gn(v,j)}},S={clipPath:n?"url(#clipPath-".concat(s,")"):null};return G.createElement(Kt,S,f.map(function(b){return G.cloneElement(b,{key:"error-bar-".concat(s,"-").concat(b.props.dataKey),data:o,xAxis:l,yAxis:d,layout:u,offset:m,dataPointFormatter:y})}))}},{key:"render",value:function(){var n=this.props,s=n.hide,i=n.data,o=n.className,l=n.xAxis,d=n.yAxis,u=n.left,g=n.top,f=n.width,m=n.height,y=n.isAnimationActive,S=n.background,b=n.id;if(s||!i||!i.length)return null;var v=this.state.isAnimationFinished,j=st("recharts-bar",o),k=l&&l.allowDataOverflow,P=d&&d.allowDataOverflow,O=k||P,T=et(b)?this.id:b;return G.createElement(Kt,{className:j},k||P?G.createElement("defs",null,G.createElement("clipPath",{id:"clipPath-".concat(T)},G.createElement("rect",{x:k?u:u-f/2,y:P?g:g-m/2,width:k?f:f*2,height:P?m:m*2}))):null,G.createElement(Kt,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(T,")"):null},S?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,T),(!y||v)&&Eo.renderCallByParent(this.props,i))}}],[{key:"getDerivedStateFromProps",value:function(n,s){return n.animationId!==s.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:s.curData}:n.data!==s.curData?{curData:n.data}:null}}])})(E.PureComponent);vG=xh;jo(xh,"displayName","Bar");jo(xh,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Vu.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});jo(xh,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,s=e.bandSize,i=e.xAxis,o=e.yAxis,l=e.xAxisTicks,d=e.yAxisTicks,u=e.stackedData,g=e.dataStartIndex,f=e.displayedData,m=e.offset,y=B2e(n,r);if(!y)return null;var S=t.layout,b=r.type.defaultProps,v=b!==void 0?ir(ir({},b),r.props):r.props,j=v.dataKey,k=v.children,P=v.minPointSize,O=S==="horizontal"?o:i,T=u?O.scale.domain():null,C=G2e({numericAxis:O}),A=xa(k,Zq),N=f.map(function(M,B){var R,_,W,V,F,I;u?R=L2e(u[g+B],T):(R=Gn(M,j),Array.isArray(R)||(R=[C,R]));var U=dke(P,vG.defaultProps.minPointSize)(R[1],B);if(S==="horizontal"){var q,Z=[o.scale(R[0]),o.scale(R[1])],le=Z[0],H=Z[1];_=l_({axis:i,ticks:l,bandSize:s,offset:y.offset,entry:M,index:B}),W=(q=H??le)!==null&&q!==void 0?q:void 0,V=y.size;var K=le-H;if(F=Number.isNaN(K)?0:K,I={x:_,y:o.y,width:V,height:o.height},Math.abs(U)>0&&Math.abs(F)<Math.abs(U)){var Q=La(F||U)*(Math.abs(U)-Math.abs(F));W-=Q,F+=Q}}else{var re=[i.scale(R[0]),i.scale(R[1])],ue=re[0],xe=re[1];if(_=ue,W=l_({axis:o,ticks:d,bandSize:s,offset:y.offset,entry:M,index:B}),V=xe-ue,F=y.size,I={x:i.x,y:W,width:i.width,height:F},Math.abs(U)>0&&Math.abs(V)<Math.abs(U)){var Se=La(V||U)*(Math.abs(U)-Math.abs(V));V+=Se}}return ir(ir(ir({},M),{},{x:_,y:W,width:V,height:F,value:u?R:R[1],payload:M,background:I},A&&A[B]&&A[B].props),{},{tooltipPayload:[aG(r,M)],tooltipPosition:{x:_+V/2,y:W+F/2}})});return ir({data:N,layout:S},m)});function Hf(e){"@babel/helpers - typeof";return Hf=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},Hf(e)}function Ske(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TI(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wG(n.key),n)}}function jke(e,t,r){return t&&TI(e.prototype,t),r&&TI(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function AI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Na(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?AI(Object(r),!0).forEach(function(n){ub(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):AI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ub(e,t,r){return t=wG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wG(e){var t=wke(e,"string");return Hf(t)=="symbol"?t:t+""}function wke(e,t){if(Hf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kke=function(t,r,n,s,i){var o=t.width,l=t.height,d=t.layout,u=t.children,g=Object.keys(r),f={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:l-n.bottom,bottomMirror:l-n.bottom},m=!!Bn(u,xh);return g.reduce(function(y,S){var b=r[S],v=b.orientation,j=b.domain,k=b.padding,P=k===void 0?{}:k,O=b.mirror,T=b.reversed,C="".concat(v).concat(O?"Mirror":""),A,N,M,B,R;if(b.type==="number"&&(b.padding==="gap"||b.padding==="no-gap")){var _=j[1]-j[0],W=1/0,V=b.categoricalDomain.sort(She);if(V.forEach(function(re,ue){ue>0&&(W=Math.min((re||0)-(V[ue-1]||0),W))}),Number.isFinite(W)){var F=W/_,I=b.layout==="vertical"?n.height:n.width;if(b.padding==="gap"&&(A=F*I/2),b.padding==="no-gap"){var U=lc(t.barCategoryGap,F*I),q=F*I/2;A=q-U-(q-U)/I*U}}}s==="xAxis"?N=[n.left+(P.left||0)+(A||0),n.left+n.width-(P.right||0)-(A||0)]:s==="yAxis"?N=d==="horizontal"?[n.top+n.height-(P.bottom||0),n.top+(P.top||0)]:[n.top+(P.top||0)+(A||0),n.top+n.height-(P.bottom||0)-(A||0)]:N=b.range,T&&(N=[N[1],N[0]]);var Z=_2e(b,i,m),le=Z.scale,H=Z.realScaleType;le.domain(j).range(N),I2e(le);var K=U2e(le,Na(Na({},b),{},{realScaleType:H}));s==="xAxis"?(R=v==="top"&&!O||v==="bottom"&&O,M=n.left,B=f[C]-R*b.height):s==="yAxis"&&(R=v==="left"&&!O||v==="right"&&O,M=f[C]-R*b.width,B=n.top);var Q=Na(Na(Na({},b),K),{},{realScaleType:H,x:M,y:B,scale:le,width:s==="xAxis"?n.width:b.width,height:s==="yAxis"?n.height:b.height});return Q.bandSize=C5(Q,K),!b.hide&&s==="xAxis"?f[C]+=(R?-1:1)*Q.height:b.hide||(f[C]+=(R?-1:1)*Q.width),Na(Na({},y),{},ub({},S,Q))},{})},kG=function(t,r){var n=t.x,s=t.y,i=r.x,o=r.y;return{x:Math.min(n,i),y:Math.min(s,o),width:Math.abs(i-n),height:Math.abs(o-s)}},Pke=function(t){var r=t.x1,n=t.y1,s=t.x2,i=t.y2;return kG({x:r,y:n},{x:s,y:i})},PG=(function(){function e(t){Ske(this,e),this.scale=t}return jke(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=n.bandAware,i=n.position;if(r!==void 0){if(i)switch(i){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(r)+l}default:return this.scale(r)}if(s){var d=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+d}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),s=n[0],i=n[n.length-1];return s<=i?r>=s&&r<=i:r>=i&&r<=s}}],[{key:"create",value:function(r){return new e(r)}}])})();ub(PG,"EPS",1e-4);var e3=function(t){var r=Object.keys(t).reduce(function(n,s){return Na(Na({},n),{},ub({},s,PG.create(t[s])))},{});return Na(Na({},r),{},{apply:function(s){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.bandAware,l=i.position;return Zwe(s,function(d,u){return r[u].apply(d,{bandAware:o,position:l})})},isInRange:function(s){return bG(s,function(i,o){return r[o].isInRange(i)})}})};function Tke(e){return(e%180+180)%180}var Ake=function(t){var r=t.width,n=t.height,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=Tke(s),o=i*Math.PI/180,l=Math.atan(n/r),d=o>l&&o<Math.PI-l?n/Math.sin(o):r/Math.cos(o);return Math.abs(d)},Dk,zI;function zke(){if(zI)return Dk;zI=1;var e=Uo(),t=uh(),r=Ky();function n(s){return function(i,o,l){var d=Object(i);if(!t(i)){var u=e(o,3);i=r(i),o=function(f){return u(d[f],f,d)}}var g=s(i,o,l);return g>-1?d[u?i[g]:g]:void 0}}return Dk=n,Dk}var _k,CI;function Cke(){if(CI)return _k;CI=1;var e=hG();function t(r){var n=e(r),s=n%1;return n===n?s?n-s:n:0}return _k=t,_k}var Ik,EI;function Eke(){if(EI)return Ik;EI=1;var e=Bq(),t=Uo(),r=Cke(),n=Math.max;function s(i,o,l){var d=i==null?0:i.length;if(!d)return-1;var u=l==null?0:r(l);return u<0&&(u=n(d+u,0)),e(i,t(o,3),u)}return Ik=s,Ik}var Bk,OI;function Oke(){if(OI)return Bk;OI=1;var e=zke(),t=Eke(),r=e(t);return Bk=r,Bk}var Mke=Oke();const Nke=jt(Mke);var Rke=eq();const Dke=jt(Rke);var _ke=Dke(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),t3=E.createContext(void 0),r3=E.createContext(void 0),TG=E.createContext(void 0),AG=E.createContext({}),zG=E.createContext(void 0),CG=E.createContext(0),EG=E.createContext(0),MI=function(t){var r=t.state,n=r.xAxisMap,s=r.yAxisMap,i=r.offset,o=t.clipPathId,l=t.children,d=t.width,u=t.height,g=_ke(i);return G.createElement(t3.Provider,{value:n},G.createElement(r3.Provider,{value:s},G.createElement(AG.Provider,{value:i},G.createElement(TG.Provider,{value:g},G.createElement(zG.Provider,{value:o},G.createElement(CG.Provider,{value:u},G.createElement(EG.Provider,{value:d},l)))))))},Ike=function(){return E.useContext(zG)},OG=function(t){var r=E.useContext(t3);r==null&&dc();var n=r[t];return n==null&&dc(),n},Bke=function(){var t=E.useContext(t3);return xo(t)},Lke=function(){var t=E.useContext(r3),r=Nke(t,function(n){return bG(n.domain,Number.isFinite)});return r||xo(t)},MG=function(t){var r=E.useContext(r3);r==null&&dc();var n=r[t];return n==null&&dc(),n},Wke=function(){var t=E.useContext(TG);return t},$ke=function(){return E.useContext(AG)},n3=function(){return E.useContext(EG)},a3=function(){return E.useContext(CG)};function Tu(e){"@babel/helpers - typeof";return Tu=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},Tu(e)}function Fke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hke(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,RG(n.key),n)}}function qke(e,t,r){return t&&Hke(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Uke(e,t,r){return t=H5(t),Gke(e,NG()?Reflect.construct(t,r||[],H5(e).constructor):t.apply(e,r))}function Gke(e,t){if(t&&(Tu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vke(e)}function Vke(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(NG=function(){return!!e})()}function H5(e){return H5=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},H5(e)}function Xke(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m4(e,t)}function m4(e,t){return m4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,s){return n.__proto__=s,n},m4(e,t)}function NI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function RI(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?NI(Object(r),!0).forEach(function(n){s3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function s3(e,t,r){return t=RG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RG(e){var t=Kke(e,"string");return Tu(t)=="symbol"?t:t+""}function Kke(e,t){if(Tu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Qke(e,t){return ePe(e)||Jke(e,t)||Zke(e,t)||Yke()}function Yke(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1106In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zke(e,t){if(e){if(typeof e=="string")return DI(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return DI(e,t)}}function DI(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Jke(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,s,i,o,l=[],d=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(d=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);d=!0);}catch(g){u=!0,s=g}finally{try{if(!d&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw s}}return l}}function ePe(e){if(Array.isArray(e))return e}function x4(){return x4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},x4.apply(this,arguments)}var tPe=function(t,r){var n;return G.isValidElement(t)?n=G.cloneElement(t,r):Qe(t)?n=t(r):n=G.createElement("line",x4({},r,{className:"recharts-reference-line-line"})),n},rPe=function(t,r,n,s,i,o,l,d,u){var g=i.x,f=i.y,m=i.width,y=i.height;if(n){var S=u.y,b=t.y.apply(S,{position:o});if(vs(u,"discard")&&!t.y.isInRange(b))return null;var v=[{x:g+m,y:b},{x:g,y:b}];return d==="left"?v.reverse():v}if(r){var j=u.x,k=t.x.apply(j,{position:o});if(vs(u,"discard")&&!t.x.isInRange(k))return null;var P=[{x:k,y:f+y},{x:k,y:f}];return l==="top"?P.reverse():P}if(s){var O=u.segment,T=O.map(function(C){return t.apply(C,{position:o})});return vs(u,"discard")&&Xwe(T,function(C){return!t.isInRange(C)})?null:T}return null};function nPe(e){var t=e.x,r=e.y,n=e.segment,s=e.xAxisId,i=e.yAxisId,o=e.shape,l=e.className,d=e.alwaysShow,u=Ike(),g=OG(s),f=MG(i),m=Wke();if(!u||!m)return null;fi(d===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var y=e3({x:g.scale,y:f.scale}),S=mr(t),b=mr(r),v=n&&n.length===2,j=rPe(y,S,b,v,m,e.position,g.orientation,f.orientation,e);if(!j)return null;var k=Qke(j,2),P=k[0],O=P.x,T=P.y,C=k[1],A=C.x,N=C.y,M=vs(e,"hidden")?"url(#".concat(u,")"):void 0,B=RI(RI({clipPath:M},at(e,!0)),{},{x1:O,y1:T,x2:A,y2:N});return G.createElement(Kt,{className:st("recharts-reference-line",l)},tPe(o,B),Xr.renderCallByParent(e,Pke({x1:O,y1:T,x2:A,y2:N})))}var i3=(function(e){function t(){return Fke(this,t),Uke(this,t,arguments)}return Xke(t,e),qke(t,[{key:"render",value:function(){return G.createElement(nPe,this.props)}}])})(G.Component);s3(i3,"displayName","ReferenceLine");s3(i3,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function y4(){return y4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},y4.apply(this,arguments)}function Au(e){"@babel/helpers - typeof";return Au=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},Au(e)}function _I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function II(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_I(Object(r),!0).forEach(function(n){pb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_I(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sPe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_G(n.key),n)}}function iPe(e,t,r){return t&&sPe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function oPe(e,t,r){return t=q5(t),lPe(e,DG()?Reflect.construct(t,r||[],q5(e).constructor):t.apply(e,r))}function lPe(e,t){if(t&&(Au(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cPe(e)}function cPe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function DG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(DG=function(){return!!e})()}function q5(e){return q5=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},q5(e)}function dPe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b4(e,t)}function b4(e,t){return b4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,s){return n.__proto__=s,n},b4(e,t)}function pb(e,t,r){return t=_G(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _G(e){var t=uPe(e,"string");return Au(t)=="symbol"?t:t+""}function uPe(e,t){if(Au(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Au(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var pPe=function(t){var r=t.x,n=t.y,s=t.xAxis,i=t.yAxis,o=e3({x:s.scale,y:i.scale}),l=o.apply({x:r,y:n},{bandAware:!0});return vs(t,"discard")&&!o.isInRange(l)?null:l},gb=(function(e){function t(){return aPe(this,t),oPe(this,t,arguments)}return dPe(t,e),iPe(t,[{key:"render",value:function(){var n=this.props,s=n.x,i=n.y,o=n.r,l=n.alwaysShow,d=n.clipPathId,u=mr(s),g=mr(i);if(fi(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!g)return null;var f=pPe(this.props);if(!f)return null;var m=f.x,y=f.y,S=this.props,b=S.shape,v=S.className,j=vs(this.props,"hidden")?"url(#".concat(d,")"):void 0,k=II(II({clipPath:j},at(this.props,!0)),{},{cx:m,cy:y});return G.createElement(Kt,{className:st("recharts-reference-dot",v)},t.renderDot(b,k),Xr.renderCallByParent(this.props,{x:m-o,y:y-o,width:2*o,height:2*o}))}}])})(G.Component);pb(gb,"displayName","ReferenceDot");pb(gb,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});pb(gb,"renderDot",function(e,t){var r;return G.isValidElement(e)?r=G.cloneElement(e,t):Qe(e)?r=e(t):r=G.createElement(J7,y4({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function v4(){return v4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},v4.apply(this,arguments)}function zu(e){"@babel/helpers - typeof";return zu=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},zu(e)}function BI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function LI(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BI(Object(r),!0).forEach(function(n){fb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fPe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,BG(n.key),n)}}function hPe(e,t,r){return t&&fPe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function mPe(e,t,r){return t=U5(t),xPe(e,IG()?Reflect.construct(t,r||[],U5(e).constructor):t.apply(e,r))}function xPe(e,t){if(t&&(zu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yPe(e)}function yPe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(IG=function(){return!!e})()}function U5(e){return U5=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},U5(e)}function bPe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S4(e,t)}function S4(e,t){return S4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,s){return n.__proto__=s,n},S4(e,t)}function fb(e,t,r){return t=BG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BG(e){var t=vPe(e,"string");return zu(t)=="symbol"?t:t+""}function vPe(e,t){if(zu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var SPe=function(t,r,n,s,i){var o=i.x1,l=i.x2,d=i.y1,u=i.y2,g=i.xAxis,f=i.yAxis;if(!g||!f)return null;var m=e3({x:g.scale,y:f.scale}),y={x:t?m.x.apply(o,{position:"start"}):m.x.rangeMin,y:n?m.y.apply(d,{position:"start"}):m.y.rangeMin},S={x:r?m.x.apply(l,{position:"end"}):m.x.rangeMax,y:s?m.y.apply(u,{position:"end"}):m.y.rangeMax};return vs(i,"discard")&&(!m.isInRange(y)||!m.isInRange(S))?null:kG(y,S)},hb=(function(e){function t(){return gPe(this,t),mPe(this,t,arguments)}return bPe(t,e),hPe(t,[{key:"render",value:function(){var n=this.props,s=n.x1,i=n.x2,o=n.y1,l=n.y2,d=n.className,u=n.alwaysShow,g=n.clipPathId;fi(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=mr(s),m=mr(i),y=mr(o),S=mr(l),b=this.props.shape;if(!f&&!m&&!y&&!S&&!b)return null;var v=SPe(f,m,y,S,this.props);if(!v&&!b)return null;var j=vs(this.props,"hidden")?"url(#".concat(g,")"):void 0;return G.createElement(Kt,{className:st("recharts-reference-area",d)},t.renderRect(b,LI(LI({clipPath:j},at(this.props,!0)),v)),Xr.renderCallByParent(this.props,v))}}])})(G.Component);fb(hb,"displayName","ReferenceArea");fb(hb,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});fb(hb,"renderRect",function(e,t){var r;return G.isValidElement(e)?r=G.cloneElement(e,t):Qe(e)?r=e(t):r=G.createElement(Z7,v4({},t,{className:"recharts-reference-area-rect"})),r});function LG(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],s=0;s<e.length;s+=t)n.push(e[s]);return n}function jPe(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return Ake(n,r)}function wPe(e,t,r){var n=r==="width",s=e.x,i=e.y,o=e.width,l=e.height;return t===1?{start:n?s:i,end:n?s+o:i+l}:{start:n?s+o:i+l,end:n?s:i}}function G5(e,t,r,n,s){if(e*t<e*n||e*t>e*s)return!1;var i=r();return e*(t-e*i/2-n)>=0&&e*(t+e*i/2-s)<=0}function kPe(e,t){return LG(e,t+1)}function PPe(e,t,r,n,s){for(var i=(n||[]).slice(),o=t.start,l=t.end,d=0,u=1,g=o,f=function(){var S=n?.[d];if(S===void 0)return{v:LG(n,u)};var b=d,v,j=function(){return v===void 0&&(v=r(S,b)),v},k=S.coordinate,P=d===0||G5(e,k,j,g,l);P||(d=0,g=o,u+=1),P&&(g=k+e*(j()/2+s),d+=u)},m;u<=i.length;)if(m=f(),m)return m.v;return[]}function qf(e){"@babel/helpers - typeof";return qf=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},qf(e)}function WI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Gr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?WI(Object(r),!0).forEach(function(n){TPe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TPe(e,t,r){return t=APe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function APe(e){var t=zPe(e,"string");return qf(t)=="symbol"?t:t+""}function zPe(e,t){if(qf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function CPe(e,t,r,n,s){for(var i=(n||[]).slice(),o=i.length,l=t.start,d=t.end,u=function(m){var y=i[m],S,b=function(){return S===void 0&&(S=r(y,m)),S};if(m===o-1){var v=e*(y.coordinate+e*b()/2-d);i[m]=y=Gr(Gr({},y),{},{tickCoord:v>0?y.coordinate-v*e:y.coordinate})}else i[m]=y=Gr(Gr({},y),{},{tickCoord:y.coordinate});var j=G5(e,y.tickCoord,b,l,d);j&&(d=y.tickCoord-e*(b()/2+s),i[m]=Gr(Gr({},y),{},{isShow:!0}))},g=o-1;g>=0;g--)u(g);return i}function EPe(e,t,r,n,s,i){var o=(n||[]).slice(),l=o.length,d=t.start,u=t.end;if(i){var g=n[l-1],f=r(g,l-1),m=e*(g.coordinate+e*f/2-u);o[l-1]=g=Gr(Gr({},g),{},{tickCoord:m>0?g.coordinate-m*e:g.coordinate});var y=G5(e,g.tickCoord,function(){return f},d,u);y&&(u=g.tickCoord-e*(f/2+s),o[l-1]=Gr(Gr({},g),{},{isShow:!0}))}for(var S=i?l-1:l,b=function(k){var P=o[k],O,T=function(){return O===void 0&&(O=r(P,k)),O};if(k===0){var C=e*(P.coordinate-e*T()/2-d);o[k]=P=Gr(Gr({},P),{},{tickCoord:C<0?P.coordinate-C*e:P.coordinate})}else o[k]=P=Gr(Gr({},P),{},{tickCoord:P.coordinate});var A=G5(e,P.tickCoord,T,d,u);A&&(d=P.tickCoord+e*(T()/2+s),o[k]=Gr(Gr({},P),{},{isShow:!0}))},v=0;v<S;v++)b(v);return o}function o3(e,t,r){var n=e.tick,s=e.ticks,i=e.viewBox,o=e.minTickGap,l=e.orientation,d=e.interval,u=e.tickFormatter,g=e.unit,f=e.angle;if(!s||!s.length||!n)return[];if(ye(d)||Vu.isSsr)return kPe(s,typeof d=="number"&&ye(d)?d:0);var m=[],y=l==="top"||l==="bottom"?"width":"height",S=g&&y==="width"?_g(g,{fontSize:t,letterSpacing:r}):{width:0,height:0},b=function(P,O){var T=Qe(u)?u(P.value,O):P.value;return y==="width"?jPe(_g(T,{fontSize:t,letterSpacing:r}),S,f):_g(T,{fontSize:t,letterSpacing:r})[y]},v=s.length>=2?La(s[1].coordinate-s[0].coordinate):1,j=wPe(i,v,y);return d==="equidistantPreserveStart"?PPe(v,j,b,s,o):(d==="preserveStart"||d==="preserveStartEnd"?m=EPe(v,j,b,s,o,d==="preserveStartEnd"):m=CPe(v,j,b,s,o),m.filter(function(k){return k.isShow}))}var OPe=["viewBox"],MPe=["viewBox"],NPe=["ticks"];function Cu(e){"@babel/helpers - typeof";return Cu=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},Cu(e)}function Id(){return Id=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Id.apply(this,arguments)}function $I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function fr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$I(Object(r),!0).forEach(function(n){l3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$I(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lk(e,t){if(e==null)return{};var r=RPe(e,t),n,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)n=i[s],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function RPe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function DPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FI(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$G(n.key),n)}}function _Pe(e,t,r){return t&&FI(e.prototype,t),r&&FI(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function IPe(e,t,r){return t=V5(t),BPe(e,WG()?Reflect.construct(t,r||[],V5(e).constructor):t.apply(e,r))}function BPe(e,t){if(t&&(Cu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return LPe(e)}function LPe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WG=function(){return!!e})()}function V5(e){return V5=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},V5(e)}function WPe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&j4(e,t)}function j4(e,t){return j4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,s){return n.__proto__=s,n},j4(e,t)}function l3(e,t,r){return t=$G(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $G(e){var t=$Pe(e,"string");return Cu(t)=="symbol"?t:t+""}function $Pe(e,t){if(Cu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Yu=(function(e){function t(r){var n;return DPe(this,t),n=IPe(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return WPe(t,e),_Pe(t,[{key:"shouldComponentUpdate",value:function(n,s){var i=n.viewBox,o=Lk(n,OPe),l=this.props,d=l.viewBox,u=Lk(l,MPe);return!Gd(i,d)||!Gd(o,u)||!Gd(s,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var s=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];s&&this.setState({fontSize:window.getComputedStyle(s).fontSize,letterSpacing:window.getComputedStyle(s).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var s=this.props,i=s.x,o=s.y,l=s.width,d=s.height,u=s.orientation,g=s.tickSize,f=s.mirror,m=s.tickMargin,y,S,b,v,j,k,P=f?-1:1,O=n.tickSize||g,T=ye(n.tickCoord)?n.tickCoord:n.coordinate;switch(u){case"top":y=S=n.coordinate,v=o+ +!f*d,b=v-P*O,k=b-P*m,j=T;break;case"left":b=v=n.coordinate,S=i+ +!f*l,y=S-P*O,j=y-P*m,k=T;break;case"right":b=v=n.coordinate,S=i+ +f*l,y=S+P*O,j=y+P*m,k=T;break;default:y=S=n.coordinate,v=o+ +f*d,b=v+P*O,k=b+P*m,j=T;break}return{line:{x1:y,y1:b,x2:S,y2:v},tick:{x:j,y:k}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,s=n.orientation,i=n.mirror,o;switch(s){case"left":o=i?"start":"end";break;case"right":o=i?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,s=n.orientation,i=n.mirror,o="end";switch(s){case"left":case"right":o="middle";break;case"top":o=i?"start":"end";break;default:o=i?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,s=n.x,i=n.y,o=n.width,l=n.height,d=n.orientation,u=n.mirror,g=n.axisLine,f=fr(fr(fr({},at(this.props,!1)),at(g,!1)),{},{fill:"none"});if(d==="top"||d==="bottom"){var m=+(d==="top"&&!u||d==="bottom"&&u);f=fr(fr({},f),{},{x1:s,y1:i+m*l,x2:s+o,y2:i+m*l})}else{var y=+(d==="left"&&!u||d==="right"&&u);f=fr(fr({},f),{},{x1:s+y*o,y1:i,x2:s+y*o,y2:i+l})}return G.createElement("line",Id({},f,{className:st("recharts-cartesian-axis-line",ma(g,"className"))}))}},{key:"renderTicks",value:function(n,s,i){var o=this,l=this.props,d=l.tickLine,u=l.stroke,g=l.tick,f=l.tickFormatter,m=l.unit,y=o3(fr(fr({},this.props),{},{ticks:n}),s,i),S=this.getTickTextAnchor(),b=this.getTickVerticalAnchor(),v=at(this.props,!1),j=at(g,!1),k=fr(fr({},v),{},{fill:"none"},at(d,!1)),P=y.map(function(O,T){var C=o.getTickLineCoord(O),A=C.line,N=C.tick,M=fr(fr(fr(fr({textAnchor:S,verticalAnchor:b},v),{},{stroke:"none",fill:u},j),N),{},{index:T,payload:O,visibleTicksCount:y.length,tickFormatter:f});return G.createElement(Kt,Id({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},a5(o.props,O,T)),d&&G.createElement("line",Id({},k,A,{className:st("recharts-cartesian-axis-tick-line",ma(d,"className"))})),g&&t.renderTickItem(g,M,"".concat(Qe(f)?f(O.value,T):O.value).concat(m||"")))});return G.createElement("g",{className:"recharts-cartesian-axis-ticks"},P)}},{key:"render",value:function(){var n=this,s=this.props,i=s.axisLine,o=s.width,l=s.height,d=s.ticksGenerator,u=s.className,g=s.hide;if(g)return null;var f=this.props,m=f.ticks,y=Lk(f,NPe),S=m;return Qe(d)&&(S=m&&m.length>0?d(this.props):d(y)),o<=0||l<=0||!S||!S.length?null:G.createElement(Kt,{className:st("recharts-cartesian-axis",u),ref:function(v){n.layerReference=v}},i&&this.renderAxisLine(),this.renderTicks(S,this.state.fontSize,this.state.letterSpacing),Xr.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,s,i){var o,l=st(s.className,"recharts-cartesian-axis-tick-value");return G.isValidElement(n)?o=G.cloneElement(n,fr(fr({},s),{},{className:l})):Qe(n)?o=n(fr(fr({},s),{},{className:l})):o=G.createElement(h5,Id({},s,{className:"recharts-cartesian-axis-tick-value"}),i),o}}])})(E.Component);l3(Yu,"displayName","CartesianAxis");l3(Yu,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var FPe=["x1","y1","x2","y2","key"],HPe=["offset"];function uc(e){"@babel/helpers - typeof";return uc=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},uc(e)}function HI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Kr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?HI(Object(r),!0).forEach(function(n){qPe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):HI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qPe(e,t,r){return t=UPe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UPe(e){var t=GPe(e,"string");return uc(t)=="symbol"?t:t+""}function GPe(e,t){if(uc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(uc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hl(){return Hl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hl.apply(this,arguments)}function qI(e,t){if(e==null)return{};var r=VPe(e,t),n,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)n=i[s],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function VPe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var XPe=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,s=t.x,i=t.y,o=t.width,l=t.height,d=t.ry;return G.createElement("rect",{x:s,y:i,ry:d,width:o,height:l,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function FG(e,t){var r;if(G.isValidElement(e))r=G.cloneElement(e,t);else if(Qe(e))r=e(t);else{var n=t.x1,s=t.y1,i=t.x2,o=t.y2,l=t.key,d=qI(t,FPe),u=at(d,!1);u.offset;var g=qI(u,HPe);r=G.createElement("line",Hl({},g,{x1:n,y1:s,x2:i,y2:o,fill:"none",key:l}))}return r}function KPe(e){var t=e.x,r=e.width,n=e.horizontal,s=n===void 0?!0:n,i=e.horizontalPoints;if(!s||!i||!i.length)return null;var o=i.map(function(l,d){var u=Kr(Kr({},e),{},{x1:t,y1:l,x2:t+r,y2:l,key:"line-".concat(d),index:d});return FG(s,u)});return G.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function QPe(e){var t=e.y,r=e.height,n=e.vertical,s=n===void 0?!0:n,i=e.verticalPoints;if(!s||!i||!i.length)return null;var o=i.map(function(l,d){var u=Kr(Kr({},e),{},{x1:l,y1:t,x2:l,y2:t+r,key:"line-".concat(d),index:d});return FG(s,u)});return G.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function YPe(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,s=e.y,i=e.width,o=e.height,l=e.horizontalPoints,d=e.horizontal,u=d===void 0?!0:d;if(!u||!t||!t.length)return null;var g=l.map(function(m){return Math.round(m+s-s)}).sort(function(m,y){return m-y});s!==g[0]&&g.unshift(0);var f=g.map(function(m,y){var S=!g[y+1],b=S?s+o-m:g[y+1]-m;if(b<=0)return null;var v=y%t.length;return G.createElement("rect",{key:"react-".concat(y),y:m,x:n,height:b,width:i,stroke:"none",fill:t[v],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return G.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function ZPe(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,s=e.fillOpacity,i=e.x,o=e.y,l=e.width,d=e.height,u=e.verticalPoints;if(!r||!n||!n.length)return null;var g=u.map(function(m){return Math.round(m+i-i)}).sort(function(m,y){return m-y});i!==g[0]&&g.unshift(0);var f=g.map(function(m,y){var S=!g[y+1],b=S?i+l-m:g[y+1]-m;if(b<=0)return null;var v=y%n.length;return G.createElement("rect",{key:"react-".concat(y),x:m,y:o,width:b,height:d,stroke:"none",fill:n[v],fillOpacity:s,className:"recharts-cartesian-grid-bg"})});return G.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var JPe=function(t,r){var n=t.xAxis,s=t.width,i=t.height,o=t.offset;return rG(o3(Kr(Kr(Kr({},Yu.defaultProps),n),{},{ticks:li(n,!0),viewBox:{x:0,y:0,width:s,height:i}})),o.left,o.left+o.width,r)},eTe=function(t,r){var n=t.yAxis,s=t.width,i=t.height,o=t.offset;return rG(o3(Kr(Kr(Kr({},Yu.defaultProps),n),{},{ticks:li(n,!0),viewBox:{x:0,y:0,width:s,height:i}})),o.top,o.top+o.height,r)},Pd={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function HG(e){var t,r,n,s,i,o,l=n3(),d=a3(),u=$ke(),g=Kr(Kr({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Pd.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Pd.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Pd.horizontal,horizontalFill:(s=e.horizontalFill)!==null&&s!==void 0?s:Pd.horizontalFill,vertical:(i=e.vertical)!==null&&i!==void 0?i:Pd.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Pd.verticalFill,x:ye(e.x)?e.x:u.left,y:ye(e.y)?e.y:u.top,width:ye(e.width)?e.width:u.width,height:ye(e.height)?e.height:u.height}),f=g.x,m=g.y,y=g.width,S=g.height,b=g.syncWithTicks,v=g.horizontalValues,j=g.verticalValues,k=Bke(),P=Lke();if(!ye(y)||y<=0||!ye(S)||S<=0||!ye(f)||f!==+f||!ye(m)||m!==+m)return null;var O=g.verticalCoordinatesGenerator||JPe,T=g.horizontalCoordinatesGenerator||eTe,C=g.horizontalPoints,A=g.verticalPoints;if((!C||!C.length)&&Qe(T)){var N=v&&v.length,M=T({yAxis:P?Kr(Kr({},P),{},{ticks:N?v:P.ticks}):void 0,width:l,height:d,offset:u},N?!0:b);fi(Array.isArray(M),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(uc(M),"]")),Array.isArray(M)&&(C=M)}if((!A||!A.length)&&Qe(O)){var B=j&&j.length,R=O({xAxis:k?Kr(Kr({},k),{},{ticks:B?j:k.ticks}):void 0,width:l,height:d,offset:u},B?!0:b);fi(Array.isArray(R),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(uc(R),"]")),Array.isArray(R)&&(A=R)}return G.createElement("g",{className:"recharts-cartesian-grid"},G.createElement(XPe,{fill:g.fill,fillOpacity:g.fillOpacity,x:g.x,y:g.y,width:g.width,height:g.height,ry:g.ry}),G.createElement(KPe,Hl({},g,{offset:u,horizontalPoints:C,xAxis:k,yAxis:P})),G.createElement(QPe,Hl({},g,{offset:u,verticalPoints:A,xAxis:k,yAxis:P})),G.createElement(YPe,Hl({},g,{horizontalPoints:C})),G.createElement(ZPe,Hl({},g,{verticalPoints:A})))}HG.displayName="CartesianGrid";var tTe=["type","layout","connectNulls","ref"],rTe=["key"];function Eu(e){"@babel/helpers - typeof";return Eu=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},Eu(e)}function UI(e,t){if(e==null)return{};var r=nTe(e,t),n,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)n=i[s],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function nTe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Wg(){return Wg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wg.apply(this,arguments)}function GI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function _n(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GI(Object(r),!0).forEach(function(n){Ra(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Td(e){return oTe(e)||iTe(e)||sTe(e)||aTe()}function aTe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1107In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sTe(e,t){if(e){if(typeof e=="string")return w4(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return w4(e,t)}}function iTe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oTe(e){if(Array.isArray(e))return w4(e)}function w4(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function lTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VI(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,UG(n.key),n)}}function cTe(e,t,r){return t&&VI(e.prototype,t),r&&VI(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function dTe(e,t,r){return t=X5(t),uTe(e,qG()?Reflect.construct(t,r||[],X5(e).constructor):t.apply(e,r))}function uTe(e,t){if(t&&(Eu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pTe(e)}function pTe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qG=function(){return!!e})()}function X5(e){return X5=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},X5(e)}function gTe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k4(e,t)}function k4(e,t){return k4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,s){return n.__proto__=s,n},k4(e,t)}function Ra(e,t,r){return t=UG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UG(e){var t=fTe(e,"string");return Eu(t)=="symbol"?t:t+""}function fTe(e,t){if(Eu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Eu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var yh=(function(e){function t(){var r;lTe(this,t);for(var n=arguments.length,s=new Array(n),i=0;i<n;i++)s[i]=arguments[i];return r=dTe(this,t,[].concat(s)),Ra(r,"state",{isAnimationFinished:!0,totalLength:0}),Ra(r,"generateSimpleStrokeDasharray",function(o,l){return"".concat(l,"px ").concat(o-l,"px")}),Ra(r,"getStrokeDasharray",function(o,l,d){var u=d.reduce(function(j,k){return j+k});if(!u)return r.generateSimpleStrokeDasharray(l,o);for(var g=Math.floor(o/u),f=o%u,m=l-o,y=[],S=0,b=0;S<d.length;b+=d[S],++S)if(b+d[S]>f){y=[].concat(Td(d.slice(0,S)),[f-b]);break}var v=y.length%2===0?[0,m]:[m];return[].concat(Td(t.repeat(d,g)),Td(y),v).map(function(j){return"".concat(j,"px")}).join(", ")}),Ra(r,"id",dh("recharts-line-")),Ra(r,"pathRef",function(o){r.mainCurve=o}),Ra(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Ra(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return gTe(t,e),cTe(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,s){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.points,l=i.xAxis,d=i.yAxis,u=i.layout,g=i.children,f=xa(g,mh);if(!f)return null;var m=function(b,v){return{x:b.x,y:b.y,value:b.value,errorVal:Gn(b.payload,v)}},y={clipPath:n?"url(#clipPath-".concat(s,")"):null};return G.createElement(Kt,y,f.map(function(S){return G.cloneElement(S,{key:"bar-".concat(S.props.dataKey),data:o,xAxis:l,yAxis:d,layout:u,dataPointFormatter:m})}))}},{key:"renderDots",value:function(n,s,i){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var l=this.props,d=l.dot,u=l.points,g=l.dataKey,f=at(this.props,!1),m=at(d,!0),y=u.map(function(b,v){var j=_n(_n(_n({key:"dot-".concat(v),r:3},f),m),{},{index:v,cx:b.x,cy:b.y,value:b.value,dataKey:g,payload:b.payload,points:u});return t.renderDotItem(d,j)}),S={clipPath:n?"url(#clipPath-".concat(s?"":"dots-").concat(i,")"):null};return G.createElement(Kt,Wg({className:"recharts-line-dots",key:"dots"},S),y)}},{key:"renderCurveStatically",value:function(n,s,i,o){var l=this.props,d=l.type,u=l.layout,g=l.connectNulls;l.ref;var f=UI(l,tTe),m=_n(_n(_n({},at(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:s?"url(#clipPath-".concat(i,")"):null,points:n},o),{},{type:d,layout:u,connectNulls:g});return G.createElement(t4,Wg({},m,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,s){var i=this,o=this.props,l=o.points,d=o.strokeDasharray,u=o.isAnimationActive,g=o.animationBegin,f=o.animationDuration,m=o.animationEasing,y=o.animationId,S=o.animateNewValues,b=o.width,v=o.height,j=this.state,k=j.prevPoints,P=j.totalLength;return G.createElement(ji,{begin:g,duration:f,isActive:u,easing:m,from:{t:0},to:{t:1},key:"line-".concat(y),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(O){var T=O.t;if(k){var C=k.length/l.length,A=l.map(function(_,W){var V=Math.floor(W*C);if(k[V]){var F=k[V],I=Da(F.x,_.x),U=Da(F.y,_.y);return _n(_n({},_),{},{x:I(T),y:U(T)})}if(S){var q=Da(b*2,_.x),Z=Da(v/2,_.y);return _n(_n({},_),{},{x:q(T),y:Z(T)})}return _n(_n({},_),{},{x:_.x,y:_.y})});return i.renderCurveStatically(A,n,s)}var N=Da(0,P),M=N(T),B;if(d){var R="".concat(d).split(/[,\s]+/gim).map(function(_){return parseFloat(_)});B=i.getStrokeDasharray(M,P,R)}else B=i.generateSimpleStrokeDasharray(P,M);return i.renderCurveStatically(l,n,s,{strokeDasharray:B})})}},{key:"renderCurve",value:function(n,s){var i=this.props,o=i.points,l=i.isAnimationActive,d=this.state,u=d.prevPoints,g=d.totalLength;return l&&o&&o.length&&(!u&&g>0||!ib(u,o))?this.renderCurveWithAnimation(n,s):this.renderCurveStatically(o,n,s)}},{key:"render",value:function(){var n,s=this.props,i=s.hide,o=s.dot,l=s.points,d=s.className,u=s.xAxis,g=s.yAxis,f=s.top,m=s.left,y=s.width,S=s.height,b=s.isAnimationActive,v=s.id;if(i||!l||!l.length)return null;var j=this.state.isAnimationFinished,k=l.length===1,P=st("recharts-line",d),O=u&&u.allowDataOverflow,T=g&&g.allowDataOverflow,C=O||T,A=et(v)?this.id:v,N=(n=at(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},M=N.r,B=M===void 0?3:M,R=N.strokeWidth,_=R===void 0?2:R,W=Ehe(o)?o:{},V=W.clipDot,F=V===void 0?!0:V,I=B*2+_;return G.createElement(Kt,{className:P},O||T?G.createElement("defs",null,G.createElement("clipPath",{id:"clipPath-".concat(A)},G.createElement("rect",{x:O?m:m-y/2,y:T?f:f-S/2,width:O?y:y*2,height:T?S:S*2})),!F&&G.createElement("clipPath",{id:"clipPath-dots-".concat(A)},G.createElement("rect",{x:m-I/2,y:f-I/2,width:y+I,height:S+I}))):null,!k&&this.renderCurve(C,A),this.renderErrorBar(C,A),(k||o)&&this.renderDots(C,F,A),(!b||j)&&Eo.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(n,s){return n.animationId!==s.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:s.curPoints}:n.points!==s.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,s){for(var i=n.length%2!==0?[].concat(Td(n),[0]):n,o=[],l=0;l<s;++l)o=[].concat(Td(o),Td(i));return o}},{key:"renderDotItem",value:function(n,s){var i;if(G.isValidElement(n))i=G.cloneElement(n,s);else if(Qe(n))i=n(s);else{var o=s.key,l=UI(s,rTe),d=st("recharts-line-dot",typeof n!="boolean"?n.className:"");i=G.createElement(J7,Wg({key:o},l,{className:d}))}return i}}])})(E.PureComponent);Ra(yh,"displayName","Line");Ra(yh,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Vu.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Ra(yh,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,s=e.xAxisTicks,i=e.yAxisTicks,o=e.dataKey,l=e.bandSize,d=e.displayedData,u=e.offset,g=t.layout,f=d.map(function(m,y){var S=Gn(m,o);return g==="horizontal"?{x:o_({axis:r,ticks:s,bandSize:l,entry:m,index:y}),y:et(S)?null:n.scale(S),value:S,payload:m}:{x:et(S)?null:r.scale(S),y:o_({axis:n,ticks:i,bandSize:l,entry:m,index:y}),value:S,payload:m}});return _n({points:f,layout:g},u)});function Ou(e){"@babel/helpers - typeof";return Ou=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},Ou(e)}function hTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mTe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,XG(n.key),n)}}function xTe(e,t,r){return t&&mTe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function yTe(e,t,r){return t=K5(t),bTe(e,GG()?Reflect.construct(t,r||[],K5(e).constructor):t.apply(e,r))}function bTe(e,t){if(t&&(Ou(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vTe(e)}function vTe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function GG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(GG=function(){return!!e})()}function K5(e){return K5=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},K5(e)}function STe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&P4(e,t)}function P4(e,t){return P4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,s){return n.__proto__=s,n},P4(e,t)}function VG(e,t,r){return t=XG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XG(e){var t=jTe(e,"string");return Ou(t)=="symbol"?t:t+""}function jTe(e,t){if(Ou(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ou(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function T4(){return T4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},T4.apply(this,arguments)}function wTe(e){var t=e.xAxisId,r=n3(),n=a3(),s=OG(t);return s==null?null:E.createElement(Yu,T4({},s,{className:st("recharts-".concat(s.axisType," ").concat(s.axisType),s.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return li(o,!0)}}))}var mb=(function(e){function t(){return hTe(this,t),yTe(this,t,arguments)}return STe(t,e),xTe(t,[{key:"render",value:function(){return E.createElement(wTe,this.props)}}])})(E.Component);VG(mb,"displayName","XAxis");VG(mb,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function Mu(e){"@babel/helpers - typeof";return Mu=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},Mu(e)}function kTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PTe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,YG(n.key),n)}}function TTe(e,t,r){return t&&PTe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ATe(e,t,r){return t=Q5(t),zTe(e,KG()?Reflect.construct(t,r||[],Q5(e).constructor):t.apply(e,r))}function zTe(e,t){if(t&&(Mu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return CTe(e)}function CTe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(KG=function(){return!!e})()}function Q5(e){return Q5=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Q5(e)}function ETe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&A4(e,t)}function A4(e,t){return A4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,s){return n.__proto__=s,n},A4(e,t)}function QG(e,t,r){return t=YG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YG(e){var t=OTe(e,"string");return Mu(t)=="symbol"?t:t+""}function OTe(e,t){if(Mu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function z4(){return z4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},z4.apply(this,arguments)}var MTe=function(t){var r=t.yAxisId,n=n3(),s=a3(),i=MG(r);return i==null?null:E.createElement(Yu,z4({},i,{className:st("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:s},ticksGenerator:function(l){return li(l,!0)}}))},xb=(function(e){function t(){return kTe(this,t),ATe(this,t,arguments)}return ETe(t,e),TTe(t,[{key:"render",value:function(){return E.createElement(MTe,this.props)}}])})(E.Component);QG(xb,"displayName","YAxis");QG(xb,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function XI(e){return _Te(e)||DTe(e)||RTe(e)||NTe()}function NTe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1108In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RTe(e,t){if(e){if(typeof e=="string")return C4(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return C4(e,t)}}function DTe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _Te(e){if(Array.isArray(e))return C4(e)}function C4(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var E4=function(t,r,n,s,i){var o=xa(t,i3),l=xa(t,gb),d=[].concat(XI(o),XI(l)),u=xa(t,hb),g="".concat(s,"Id"),f=s[0],m=r;if(d.length&&(m=d.reduce(function(b,v){if(v.props[g]===n&&vs(v.props,"extendDomain")&&ye(v.props[f])){var j=v.props[f];return[Math.min(b[0],j),Math.max(b[1],j)]}return b},m)),u.length){var y="".concat(f,"1"),S="".concat(f,"2");m=u.reduce(function(b,v){if(v.props[g]===n&&vs(v.props,"extendDomain")&&ye(v.props[y])&&ye(v.props[S])){var j=v.props[y],k=v.props[S];return[Math.min(b[0],j,k),Math.max(b[1],j,k)]}return b},m)}return i&&i.length&&(m=i.reduce(function(b,v){return ye(v)?[Math.min(b[0],v),Math.max(b[1],v)]:b},m)),m},Wk={exports:{}},KI;function ITe(){return KI||(KI=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function s(d,u,g){this.fn=d,this.context=u,this.once=g||!1}function i(d,u,g,f,m){if(typeof g!="function")throw new TypeError("The listener must be a function");var y=new s(g,f||d,m),S=r?r+u:u;return d._events[S]?d._events[S].fn?d._events[S]=[d._events[S],y]:d._events[S].push(y):(d._events[S]=y,d._eventsCount++),d}function o(d,u){--d._eventsCount===0?d._events=new n:delete d._events[u]}function l(){this._events=new n,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],g,f;if(this._eventsCount===0)return u;for(f in g=this._events)t.call(g,f)&&u.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(g)):u},l.prototype.listeners=function(u){var g=r?r+u:u,f=this._events[g];if(!f)return[];if(f.fn)return[f.fn];for(var m=0,y=f.length,S=new Array(y);m<y;m++)S[m]=f[m].fn;return S},l.prototype.listenerCount=function(u){var g=r?r+u:u,f=this._events[g];return f?f.fn?1:f.length:0},l.prototype.emit=function(u,g,f,m,y,S){var b=r?r+u:u;if(!this._events[b])return!1;var v=this._events[b],j=arguments.length,k,P;if(v.fn){switch(v.once&&this.removeListener(u,v.fn,void 0,!0),j){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,g),!0;case 3:return v.fn.call(v.context,g,f),!0;case 4:return v.fn.call(v.context,g,f,m),!0;case 5:return v.fn.call(v.context,g,f,m,y),!0;case 6:return v.fn.call(v.context,g,f,m,y,S),!0}for(P=1,k=new Array(j-1);P<j;P++)k[P-1]=arguments[P];v.fn.apply(v.context,k)}else{var O=v.length,T;for(P=0;P<O;P++)switch(v[P].once&&this.removeListener(u,v[P].fn,void 0,!0),j){case 1:v[P].fn.call(v[P].context);break;case 2:v[P].fn.call(v[P].context,g);break;case 3:v[P].fn.call(v[P].context,g,f);break;case 4:v[P].fn.call(v[P].context,g,f,m);break;default:if(!k)for(T=1,k=new Array(j-1);T<j;T++)k[T-1]=arguments[T];v[P].fn.apply(v[P].context,k)}}return!0},l.prototype.on=function(u,g,f){return i(this,u,g,f,!1)},l.prototype.once=function(u,g,f){return i(this,u,g,f,!0)},l.prototype.removeListener=function(u,g,f,m){var y=r?r+u:u;if(!this._events[y])return this;if(!g)return o(this,y),this;var S=this._events[y];if(S.fn)S.fn===g&&(!m||S.once)&&(!f||S.context===f)&&o(this,y);else{for(var b=0,v=[],j=S.length;b<j;b++)(S[b].fn!==g||m&&!S[b].once||f&&S[b].context!==f)&&v.push(S[b]);v.length?this._events[y]=v.length===1?v[0]:v:o(this,y)}return this},l.prototype.removeAllListeners=function(u){var g;return u?(g=r?r+u:u,this._events[g]&&o(this,g)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,e.exports=l})(Wk)),Wk.exports}var BTe=ITe();const LTe=jt(BTe);var $k=new LTe,Fk="recharts.syncMouseEvents";function Uf(e){"@babel/helpers - typeof";return Uf=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},Uf(e)}function WTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $Te(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ZG(n.key),n)}}function FTe(e,t,r){return t&&$Te(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hk(e,t,r){return t=ZG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZG(e){var t=HTe(e,"string");return Uf(t)=="symbol"?t:t+""}function HTe(e,t){if(Uf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Uf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var qTe=(function(){function e(){WTe(this,e),Hk(this,"activeIndex",0),Hk(this,"coordinateList",[]),Hk(this,"layout","horizontal")}return FTe(e,[{key:"setDetails",value:function(r){var n,s=r.coordinateList,i=s===void 0?null:s,o=r.container,l=o===void 0?null:o,d=r.layout,u=d===void 0?null:d,g=r.offset,f=g===void 0?null:g,m=r.mouseHandlerCallback,y=m===void 0?null:m;this.coordinateList=(n=i??this.coordinateList)!==null&&n!==void 0?n:[],this.container=l??this.container,this.layout=u??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=y??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var s=this.container.getBoundingClientRect(),i=s.x,o=s.y,l=s.height,d=this.coordinateList[this.activeIndex].coordinate,u=((r=window)===null||r===void 0?void 0:r.scrollX)||0,g=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=i+d+u,m=o+this.offset.top+l/2+g;this.mouseHandlerCallback({pageX:f,pageY:m})}}}])})();function UTe(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e?.[0],s=e?.[1];if(n&&s&&ye(n)&&ye(s))return!0}return!1}function GTe(e,t,r,n){var s=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-s:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-s,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function JG(e){var t=e.cx,r=e.cy,n=e.radius,s=e.startAngle,i=e.endAngle,o=Lr(t,r,n,s),l=Lr(t,r,n,i);return{points:[o,l],cx:t,cy:r,radius:n,startAngle:s,endAngle:i}}function VTe(e,t,r){var n,s,i,o;if(e==="horizontal")n=t.x,i=n,s=r.top,o=r.top+r.height;else if(e==="vertical")s=t.y,o=s,n=r.left,i=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var l=t.cx,d=t.cy,u=t.innerRadius,g=t.outerRadius,f=t.angle,m=Lr(l,d,u,f),y=Lr(l,d,g,f);n=m.x,s=m.y,i=y.x,o=y.y}else return JG(t);return[{x:n,y:s},{x:i,y:o}]}function Gf(e){"@babel/helpers - typeof";return Gf=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},Gf(e)}function QI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function vx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?QI(Object(r),!0).forEach(function(n){XTe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XTe(e,t,r){return t=KTe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KTe(e){var t=QTe(e,"string");return Gf(t)=="symbol"?t:t+""}function QTe(e,t){if(Gf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function YTe(e){var t,r,n=e.element,s=e.tooltipEventType,i=e.isActive,o=e.activeCoordinate,l=e.activePayload,d=e.offset,u=e.activeTooltipIndex,g=e.tooltipAxisBandSize,f=e.layout,m=e.chartName,y=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!y||!i||!o||m!=="ScatterChart"&&s!=="axis")return null;var S,b=t4;if(m==="ScatterChart")S=o,b=Xje;else if(m==="BarChart")S=GTe(f,o,d,g),b=Z7;else if(f==="radial"){var v=JG(o),j=v.cx,k=v.cy,P=v.radius,O=v.startAngle,T=v.endAngle;S={cx:j,cy:k,startAngle:O,endAngle:T,innerRadius:P,outerRadius:P},b=oG}else S={points:VTe(f,o,d)},b=t4;var C=vx(vx(vx(vx({stroke:"#ccc",pointerEvents:"none"},d),S),at(y,!1)),{},{payload:l,payloadIndex:u,className:st("recharts-tooltip-cursor",y.className)});return E.isValidElement(y)?E.cloneElement(y,C):E.createElement(b,C)}var ZTe=["item"],JTe=["children","className","width","height","style","compact","title","desc"];function Nu(e){"@babel/helpers - typeof";return Nu=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},Nu(e)}function Bd(){return Bd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bd.apply(this,arguments)}function YI(e,t){return r4e(e)||t4e(e,t)||tV(e,t)||e4e()}function e4e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1109In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t4e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,s,i,o,l=[],d=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(d=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);d=!0);}catch(g){u=!0,s=g}finally{try{if(!d&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw s}}return l}}function r4e(e){if(Array.isArray(e))return e}function ZI(e,t){if(e==null)return{};var r=n4e(e,t),n,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)n=i[s],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function n4e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function a4e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s4e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,rV(n.key),n)}}function i4e(e,t,r){return t&&s4e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function o4e(e,t,r){return t=Y5(t),l4e(e,eV()?Reflect.construct(t,r||[],Y5(e).constructor):t.apply(e,r))}function l4e(e,t){if(t&&(Nu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return c4e(e)}function c4e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(eV=function(){return!!e})()}function Y5(e){return Y5=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Y5(e)}function d4e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O4(e,t)}function O4(e,t){return O4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,s){return n.__proto__=s,n},O4(e,t)}function Ru(e){return g4e(e)||p4e(e)||tV(e)||u4e()}function u4e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1110In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tV(e,t){if(e){if(typeof e=="string")return M4(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return M4(e,t)}}function p4e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function g4e(e){if(Array.isArray(e))return M4(e)}function M4(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function JI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function ce(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?JI(Object(r),!0).forEach(function(n){We(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):JI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function We(e,t,r){return t=rV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rV(e){var t=f4e(e,"string");return Nu(t)=="symbol"?t:t+""}function f4e(e,t){if(Nu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var h4e={xAxis:["bottom","top"],yAxis:["left","right"]},m4e={width:"100%",height:"100%"},nV={x:0,y:0};function Sx(e){return e}var x4e=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},y4e=function(t,r,n,s){var i=r.find(function(g){return g&&g.index===n});if(i){if(t==="horizontal")return{x:i.coordinate,y:s.y};if(t==="vertical")return{x:s.x,y:i.coordinate};if(t==="centric"){var o=i.coordinate,l=s.radius;return ce(ce(ce({},s),Lr(s.cx,s.cy,l,o)),{},{angle:o,radius:l})}var d=i.coordinate,u=s.angle;return ce(ce(ce({},s),Lr(s.cx,s.cy,d,u)),{},{angle:u,radius:d})}return nV},yb=function(t,r){var n=r.graphicalItems,s=r.dataStartIndex,i=r.dataEndIndex,o=(n??[]).reduce(function(l,d){var u=d.props.data;return u&&u.length?[].concat(Ru(l),Ru(u)):l},[]);return o.length>0?o:t&&t.length&&ye(s)&&ye(i)?t.slice(s,i+1):[]};function aV(e){return e==="number"?[0,"auto"]:void 0}var N4=function(t,r,n,s){var i=t.graphicalItems,o=t.tooltipAxis,l=yb(r,t);return n<0||!i||!i.length||n>=l.length?null:i.reduce(function(d,u){var g,f=(g=u.props.data)!==null&&g!==void 0?g:r;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var m;if(o.dataKey&&!o.allowDuplicatedCategory){var y=f===void 0?l:f;m=r5(y,o.dataKey,s)}else m=f&&f[n]||l[n];return m?[].concat(Ru(d),[aG(u,m)]):d},[])},eB=function(t,r,n,s){var i=s||{x:t.chartX,y:t.chartY},o=x4e(i,n),l=t.orderedTooltipTicks,d=t.tooltipAxis,u=t.tooltipTicks,g=E2e(o,l,u,d);if(g>=0&&u){var f=u[g]&&u[g].value,m=N4(t,r,g,f),y=y4e(n,l,g,i);return{activeTooltipIndex:g,activeLabel:f,activePayload:m,activeCoordinate:y}}return null},b4e=function(t,r){var n=r.axes,s=r.graphicalItems,i=r.axisType,o=r.axisIdKey,l=r.stackGroups,d=r.dataStartIndex,u=r.dataEndIndex,g=t.layout,f=t.children,m=t.stackOffset,y=tG(g,i);return n.reduce(function(S,b){var v,j=b.type.defaultProps!==void 0?ce(ce({},b.type.defaultProps),b.props):b.props,k=j.type,P=j.dataKey,O=j.allowDataOverflow,T=j.allowDuplicatedCategory,C=j.scale,A=j.ticks,N=j.includeHidden,M=j[o];if(S[M])return S;var B=yb(t.data,{graphicalItems:s.filter(function(K){var Q,re=o in K.props?K.props[o]:(Q=K.type.defaultProps)===null||Q===void 0?void 0:Q[o];return re===M}),dataStartIndex:d,dataEndIndex:u}),R=B.length,_,W,V;UTe(j.domain,O,k)&&(_=QT(j.domain,null,O),y&&(k==="number"||C!=="auto")&&(V=Bg(B,P,"category")));var F=aV(k);if(!_||_.length===0){var I,U=(I=j.domain)!==null&&I!==void 0?I:F;if(P){if(_=Bg(B,P,k),k==="category"&&y){var q=vhe(_);T&&q?(W=_,_=B5(0,R)):T||(_=u_(U,_,b).reduce(function(K,Q){return K.indexOf(Q)>=0?K:[].concat(Ru(K),[Q])},[]))}else if(k==="category")T?_=_.filter(function(K){return K!==""&&!et(K)}):_=u_(U,_,b).reduce(function(K,Q){return K.indexOf(Q)>=0||Q===""||et(Q)?K:[].concat(Ru(K),[Q])},[]);else if(k==="number"){var Z=D2e(B,s.filter(function(K){var Q,re,ue=o in K.props?K.props[o]:(Q=K.type.defaultProps)===null||Q===void 0?void 0:Q[o],xe="hide"in K.props?K.props.hide:(re=K.type.defaultProps)===null||re===void 0?void 0:re.hide;return ue===M&&(N||!xe)}),P,i,g);Z&&(_=Z)}y&&(k==="number"||C!=="auto")&&(V=Bg(B,P,"category"))}else y?_=B5(0,R):l&&l[M]&&l[M].hasStack&&k==="number"?_=m==="expand"?[0,1]:nG(l[M].stackGroups,d,u):_=eG(B,s.filter(function(K){var Q=o in K.props?K.props[o]:K.type.defaultProps[o],re="hide"in K.props?K.props.hide:K.type.defaultProps.hide;return Q===M&&(N||!re)}),k,g,!0);if(k==="number")_=E4(f,_,M,i,A),U&&(_=QT(U,_,O));else if(k==="category"&&U){var le=U,H=_.every(function(K){return le.indexOf(K)>=0});H&&(_=le)}}return ce(ce({},S),{},We({},M,ce(ce({},j),{},{axisType:i,domain:_,categoricalDomain:V,duplicateDomain:W,originalDomain:(v=j.domain)!==null&&v!==void 0?v:F,isCategorical:y,layout:g})))},{})},v4e=function(t,r){var n=r.graphicalItems,s=r.Axis,i=r.axisType,o=r.axisIdKey,l=r.stackGroups,d=r.dataStartIndex,u=r.dataEndIndex,g=t.layout,f=t.children,m=yb(t.data,{graphicalItems:n,dataStartIndex:d,dataEndIndex:u}),y=m.length,S=tG(g,i),b=-1;return n.reduce(function(v,j){var k=j.type.defaultProps!==void 0?ce(ce({},j.type.defaultProps),j.props):j.props,P=k[o],O=aV("number");if(!v[P]){b++;var T;return S?T=B5(0,y):l&&l[P]&&l[P].hasStack?(T=nG(l[P].stackGroups,d,u),T=E4(f,T,P,i)):(T=QT(O,eG(m,n.filter(function(C){var A,N,M=o in C.props?C.props[o]:(A=C.type.defaultProps)===null||A===void 0?void 0:A[o],B="hide"in C.props?C.props.hide:(N=C.type.defaultProps)===null||N===void 0?void 0:N.hide;return M===P&&!B}),"number",g),s.defaultProps.allowDataOverflow),T=E4(f,T,P,i)),ce(ce({},v),{},We({},P,ce(ce({axisType:i},s.defaultProps),{},{hide:!0,orientation:ma(h4e,"".concat(i,".").concat(b%2),null),domain:T,originalDomain:O,isCategorical:S,layout:g})))}return v},{})},S4e=function(t,r){var n=r.axisType,s=n===void 0?"xAxis":n,i=r.AxisComp,o=r.graphicalItems,l=r.stackGroups,d=r.dataStartIndex,u=r.dataEndIndex,g=t.children,f="".concat(s,"Id"),m=xa(g,i),y={};return m&&m.length?y=b4e(t,{axes:m,graphicalItems:o,axisType:s,axisIdKey:f,stackGroups:l,dataStartIndex:d,dataEndIndex:u}):o&&o.length&&(y=v4e(t,{Axis:i,graphicalItems:o,axisType:s,axisIdKey:f,stackGroups:l,dataStartIndex:d,dataEndIndex:u})),y},j4e=function(t){var r=xo(t),n=li(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:P7(n,function(s){return s.coordinate}),tooltipAxis:r,tooltipAxisBandSize:C5(r,n)}},tB=function(t){var r=t.children,n=t.defaultShowTooltip,s=Bn(r,ku),i=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),s&&s.props&&(s.props.startIndex>=0&&(i=s.props.startIndex),s.props.endIndex>=0&&(o=s.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},w4e=function(t){return!t||!t.length?!1:t.some(function(r){var n=gi(r&&r.type);return n&&n.indexOf("Bar")>=0})},rB=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},k4e=function(t,r){var n=t.props,s=t.graphicalItems,i=t.xAxisMap,o=i===void 0?{}:i,l=t.yAxisMap,d=l===void 0?{}:l,u=n.width,g=n.height,f=n.children,m=n.margin||{},y=Bn(f,ku),S=Bn(f,Vd),b=Object.keys(d).reduce(function(T,C){var A=d[C],N=A.orientation;return!A.mirror&&!A.hide?ce(ce({},T),{},We({},N,T[N]+A.width)):T},{left:m.left||0,right:m.right||0}),v=Object.keys(o).reduce(function(T,C){var A=o[C],N=A.orientation;return!A.mirror&&!A.hide?ce(ce({},T),{},We({},N,ma(T,"".concat(N))+A.height)):T},{top:m.top||0,bottom:m.bottom||0}),j=ce(ce({},v),b),k=j.bottom;y&&(j.bottom+=y.props.height||ku.defaultProps.height),S&&r&&(j=N2e(j,s,n,r));var P=u-j.left-j.right,O=g-j.top-j.bottom;return ce(ce({brushBottom:k},j),{},{width:Math.max(P,0),height:Math.max(O,0)})},P4e=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},T4e=function(t){var r=t.chartName,n=t.GraphicalChild,s=t.defaultTooltipEventType,i=s===void 0?"axis":s,o=t.validateTooltipEventTypes,l=o===void 0?["axis"]:o,d=t.axisComponents,u=t.legendContent,g=t.formatAxisMap,f=t.defaultProps,m=function(j,k){var P=k.graphicalItems,O=k.stackGroups,T=k.offset,C=k.updateId,A=k.dataStartIndex,N=k.dataEndIndex,M=j.barSize,B=j.layout,R=j.barGap,_=j.barCategoryGap,W=j.maxBarSize,V=rB(B),F=V.numericAxisName,I=V.cateAxisName,U=w4e(P),q=[];return P.forEach(function(Z,le){var H=yb(j.data,{graphicalItems:[Z],dataStartIndex:A,dataEndIndex:N}),K=Z.type.defaultProps!==void 0?ce(ce({},Z.type.defaultProps),Z.props):Z.props,Q=K.dataKey,re=K.maxBarSize,ue=K["".concat(F,"Id")],xe=K["".concat(I,"Id")],Se={},ze=d.reduce(function(zn,_t){var Vn=k["".concat(_t.axisType,"Map")],vr=K["".concat(_t.axisType,"Id")];Vn&&Vn[vr]||_t.axisType==="zAxis"||dc();var Cc=Vn[vr];return ce(ce({},zn),{},We(We({},_t.axisType,Cc),"".concat(_t.axisType,"Ticks"),li(Cc)))},Se),fe=ze[I],Oe=ze["".concat(I,"Ticks")],Ne=O&&O[ue]&&O[ue].hasStack&&V2e(Z,O[ue].stackGroups),ge=gi(Z.type).indexOf("Bar")>=0,it=C5(fe,Oe),He=[],zt=U&&O2e({barSize:M,stackGroups:O,totalSize:P4e(ze,I)});if(ge){var Tt,Wt,cn=et(re)?W:re,tr=(Tt=(Wt=C5(fe,Oe,!0))!==null&&Wt!==void 0?Wt:cn)!==null&&Tt!==void 0?Tt:0;He=M2e({barGap:R,barCategoryGap:_,bandSize:tr!==it?tr:it,sizeList:zt[xe],maxBarSize:cn}),tr!==it&&(He=He.map(function(zn){return ce(ce({},zn),{},{position:ce(ce({},zn.position),{},{offset:zn.position.offset-tr/2})})}))}var Ka=Z&&Z.type&&Z.type.getComposedData;Ka&&q.push({props:ce(ce({},Ka(ce(ce({},ze),{},{displayedData:H,props:j,dataKey:Q,item:Z,bandSize:it,barPosition:He,offset:T,stackedData:Ne,layout:B,dataStartIndex:A,dataEndIndex:N}))),{},We(We(We({key:Z.key||"item-".concat(le)},F,ze[F]),I,ze[I]),"animationId",C)),childIndex:Nhe(Z,j.children),item:Z})}),q},y=function(j,k){var P=j.props,O=j.dataStartIndex,T=j.dataEndIndex,C=j.updateId;if(!P9({props:P}))return null;var A=P.children,N=P.layout,M=P.stackOffset,B=P.data,R=P.reverseStackOrder,_=rB(N),W=_.numericAxisName,V=_.cateAxisName,F=xa(A,n),I=q2e(B,F,"".concat(W,"Id"),"".concat(V,"Id"),M,R),U=d.reduce(function(K,Q){var re="".concat(Q.axisType,"Map");return ce(ce({},K),{},We({},re,S4e(P,ce(ce({},Q),{},{graphicalItems:F,stackGroups:Q.axisType===W&&I,dataStartIndex:O,dataEndIndex:T}))))},{}),q=k4e(ce(ce({},U),{},{props:P,graphicalItems:F}),k?.legendBBox);Object.keys(U).forEach(function(K){U[K]=g(P,U[K],q,K.replace("Map",""),r)});var Z=U["".concat(V,"Map")],le=j4e(Z),H=m(P,ce(ce({},U),{},{dataStartIndex:O,dataEndIndex:T,updateId:C,graphicalItems:F,stackGroups:I,offset:q}));return ce(ce({formattedGraphicalItems:H,graphicalItems:F,offset:q,stackGroups:I},le),U)},S=(function(v){function j(k){var P,O,T;return a4e(this,j),T=o4e(this,j,[k]),We(T,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),We(T,"accessibilityManager",new qTe),We(T,"handleLegendBBoxUpdate",function(C){if(C){var A=T.state,N=A.dataStartIndex,M=A.dataEndIndex,B=A.updateId;T.setState(ce({legendBBox:C},y({props:T.props,dataStartIndex:N,dataEndIndex:M,updateId:B},ce(ce({},T.state),{},{legendBBox:C}))))}}),We(T,"handleReceiveSyncEvent",function(C,A,N){if(T.props.syncId===C){if(N===T.eventEmitterSymbol&&typeof T.props.syncMethod!="function")return;T.applySyncEvent(A)}}),We(T,"handleBrushChange",function(C){var A=C.startIndex,N=C.endIndex;if(A!==T.state.dataStartIndex||N!==T.state.dataEndIndex){var M=T.state.updateId;T.setState(function(){return ce({dataStartIndex:A,dataEndIndex:N},y({props:T.props,dataStartIndex:A,dataEndIndex:N,updateId:M},T.state))}),T.triggerSyncEvent({dataStartIndex:A,dataEndIndex:N})}}),We(T,"handleMouseEnter",function(C){var A=T.getMouseInfo(C);if(A){var N=ce(ce({},A),{},{isTooltipActive:!0});T.setState(N),T.triggerSyncEvent(N);var M=T.props.onMouseEnter;Qe(M)&&M(N,C)}}),We(T,"triggeredAfterMouseMove",function(C){var A=T.getMouseInfo(C),N=A?ce(ce({},A),{},{isTooltipActive:!0}):{isTooltipActive:!1};T.setState(N),T.triggerSyncEvent(N);var M=T.props.onMouseMove;Qe(M)&&M(N,C)}),We(T,"handleItemMouseEnter",function(C){T.setState(function(){return{isTooltipActive:!0,activeItem:C,activePayload:C.tooltipPayload,activeCoordinate:C.tooltipPosition||{x:C.cx,y:C.cy}}})}),We(T,"handleItemMouseLeave",function(){T.setState(function(){return{isTooltipActive:!1}})}),We(T,"handleMouseMove",function(C){C.persist(),T.throttleTriggeredAfterMouseMove(C)}),We(T,"handleMouseLeave",function(C){T.throttleTriggeredAfterMouseMove.cancel();var A={isTooltipActive:!1};T.setState(A),T.triggerSyncEvent(A);var N=T.props.onMouseLeave;Qe(N)&&N(A,C)}),We(T,"handleOuterEvent",function(C){var A=Mhe(C),N=ma(T.props,"".concat(A));if(A&&Qe(N)){var M,B;/.*touch.*/i.test(A)?B=T.getMouseInfo(C.changedTouches[0]):B=T.getMouseInfo(C),N((M=B)!==null&&M!==void 0?M:{},C)}}),We(T,"handleClick",function(C){var A=T.getMouseInfo(C);if(A){var N=ce(ce({},A),{},{isTooltipActive:!0});T.setState(N),T.triggerSyncEvent(N);var M=T.props.onClick;Qe(M)&&M(N,C)}}),We(T,"handleMouseDown",function(C){var A=T.props.onMouseDown;if(Qe(A)){var N=T.getMouseInfo(C);A(N,C)}}),We(T,"handleMouseUp",function(C){var A=T.props.onMouseUp;if(Qe(A)){var N=T.getMouseInfo(C);A(N,C)}}),We(T,"handleTouchMove",function(C){C.changedTouches!=null&&C.changedTouches.length>0&&T.throttleTriggeredAfterMouseMove(C.changedTouches[0])}),We(T,"handleTouchStart",function(C){C.changedTouches!=null&&C.changedTouches.length>0&&T.handleMouseDown(C.changedTouches[0])}),We(T,"handleTouchEnd",function(C){C.changedTouches!=null&&C.changedTouches.length>0&&T.handleMouseUp(C.changedTouches[0])}),We(T,"handleDoubleClick",function(C){var A=T.props.onDoubleClick;if(Qe(A)){var N=T.getMouseInfo(C);A(N,C)}}),We(T,"handleContextMenu",function(C){var A=T.props.onContextMenu;if(Qe(A)){var N=T.getMouseInfo(C);A(N,C)}}),We(T,"triggerSyncEvent",function(C){T.props.syncId!==void 0&&$k.emit(Fk,T.props.syncId,C,T.eventEmitterSymbol)}),We(T,"applySyncEvent",function(C){var A=T.props,N=A.layout,M=A.syncMethod,B=T.state.updateId,R=C.dataStartIndex,_=C.dataEndIndex;if(C.dataStartIndex!==void 0||C.dataEndIndex!==void 0)T.setState(ce({dataStartIndex:R,dataEndIndex:_},y({props:T.props,dataStartIndex:R,dataEndIndex:_,updateId:B},T.state)));else if(C.activeTooltipIndex!==void 0){var W=C.chartX,V=C.chartY,F=C.activeTooltipIndex,I=T.state,U=I.offset,q=I.tooltipTicks;if(!U)return;if(typeof M=="function")F=M(q,C);else if(M==="value"){F=-1;for(var Z=0;Z<q.length;Z++)if(q[Z].value===C.activeLabel){F=Z;break}}var le=ce(ce({},U),{},{x:U.left,y:U.top}),H=Math.min(W,le.x+le.width),K=Math.min(V,le.y+le.height),Q=q[F]&&q[F].value,re=N4(T.state,T.props.data,F),ue=q[F]?{x:N==="horizontal"?q[F].coordinate:H,y:N==="horizontal"?K:q[F].coordinate}:nV;T.setState(ce(ce({},C),{},{activeLabel:Q,activeCoordinate:ue,activePayload:re,activeTooltipIndex:F}))}else T.setState(C)}),We(T,"renderCursor",function(C){var A,N=T.state,M=N.isTooltipActive,B=N.activeCoordinate,R=N.activePayload,_=N.offset,W=N.activeTooltipIndex,V=N.tooltipAxisBandSize,F=T.getTooltipEventType(),I=(A=C.props.active)!==null&&A!==void 0?A:M,U=T.props.layout,q=C.key||"_recharts-cursor";return G.createElement(YTe,{key:q,activeCoordinate:B,activePayload:R,activeTooltipIndex:W,chartName:r,element:C,isActive:I,layout:U,offset:_,tooltipAxisBandSize:V,tooltipEventType:F})}),We(T,"renderPolarAxis",function(C,A,N){var M=ma(C,"type.axisType"),B=ma(T.state,"".concat(M,"Map")),R=C.type.defaultProps,_=R!==void 0?ce(ce({},R),C.props):C.props,W=B&&B[_["".concat(M,"Id")]];return E.cloneElement(C,ce(ce({},W),{},{className:st(M,W.className),key:C.key||"".concat(A,"-").concat(N),ticks:li(W,!0)}))}),We(T,"renderPolarGrid",function(C){var A=C.props,N=A.radialLines,M=A.polarAngles,B=A.polarRadius,R=T.state,_=R.radiusAxisMap,W=R.angleAxisMap,V=xo(_),F=xo(W),I=F.cx,U=F.cy,q=F.innerRadius,Z=F.outerRadius;return E.cloneElement(C,{polarAngles:Array.isArray(M)?M:li(F,!0).map(function(le){return le.coordinate}),polarRadius:Array.isArray(B)?B:li(V,!0).map(function(le){return le.coordinate}),cx:I,cy:U,innerRadius:q,outerRadius:Z,key:C.key||"polar-grid",radialLines:N})}),We(T,"renderLegend",function(){var C=T.state.formattedGraphicalItems,A=T.props,N=A.children,M=A.width,B=A.height,R=T.props.margin||{},_=M-(R.left||0)-(R.right||0),W=ZU({children:N,formattedGraphicalItems:C,legendWidth:_,legendContent:u});if(!W)return null;var V=W.item,F=ZI(W,ZTe);return E.cloneElement(V,ce(ce({},F),{},{chartWidth:M,chartHeight:B,margin:R,onBBoxUpdate:T.handleLegendBBoxUpdate}))}),We(T,"renderTooltip",function(){var C,A=T.props,N=A.children,M=A.accessibilityLayer,B=Bn(N,gs);if(!B)return null;var R=T.state,_=R.isTooltipActive,W=R.activeCoordinate,V=R.activePayload,F=R.activeLabel,I=R.offset,U=(C=B.props.active)!==null&&C!==void 0?C:_;return E.cloneElement(B,{viewBox:ce(ce({},I),{},{x:I.left,y:I.top}),active:U,label:F,payload:U?V:[],coordinate:W,accessibilityLayer:M})}),We(T,"renderBrush",function(C){var A=T.props,N=A.margin,M=A.data,B=T.state,R=B.offset,_=B.dataStartIndex,W=B.dataEndIndex,V=B.updateId;return E.cloneElement(C,{key:C.key||"_recharts-brush",onChange:mx(T.handleBrushChange,C.props.onChange),data:M,x:ye(C.props.x)?C.props.x:R.left,y:ye(C.props.y)?C.props.y:R.top+R.height+R.brushBottom-(N.bottom||0),width:ye(C.props.width)?C.props.width:R.width,startIndex:_,endIndex:W,updateId:"brush-".concat(V)})}),We(T,"renderReferenceElement",function(C,A,N){if(!C)return null;var M=T,B=M.clipPathId,R=T.state,_=R.xAxisMap,W=R.yAxisMap,V=R.offset,F=C.type.defaultProps||{},I=C.props,U=I.xAxisId,q=U===void 0?F.xAxisId:U,Z=I.yAxisId,le=Z===void 0?F.yAxisId:Z;return E.cloneElement(C,{key:C.key||"".concat(A,"-").concat(N),xAxis:_[q],yAxis:W[le],viewBox:{x:V.left,y:V.top,width:V.width,height:V.height},clipPathId:B})}),We(T,"renderActivePoints",function(C){var A=C.item,N=C.activePoint,M=C.basePoint,B=C.childIndex,R=C.isRange,_=[],W=A.props.key,V=A.item.type.defaultProps!==void 0?ce(ce({},A.item.type.defaultProps),A.item.props):A.item.props,F=V.activeDot,I=V.dataKey,U=ce(ce({index:B,dataKey:I,cx:N.x,cy:N.y,r:4,fill:Y7(A.item),strokeWidth:2,stroke:"#fff",payload:N.payload,value:N.value},at(F,!1)),n5(F));return _.push(j.renderActiveDot(F,U,"".concat(W,"-activePoint-").concat(B))),M?_.push(j.renderActiveDot(F,ce(ce({},U),{},{cx:M.x,cy:M.y}),"".concat(W,"-basePoint-").concat(B))):R&&_.push(null),_}),We(T,"renderGraphicChild",function(C,A,N){var M=T.filterFormatItem(C,A,N);if(!M)return null;var B=T.getTooltipEventType(),R=T.state,_=R.isTooltipActive,W=R.tooltipAxis,V=R.activeTooltipIndex,F=R.activeLabel,I=T.props.children,U=Bn(I,gs),q=M.props,Z=q.points,le=q.isRange,H=q.baseLine,K=M.item.type.defaultProps!==void 0?ce(ce({},M.item.type.defaultProps),M.item.props):M.item.props,Q=K.activeDot,re=K.hide,ue=K.activeBar,xe=K.activeShape,Se=!!(!re&&_&&U&&(Q||ue||xe)),ze={};B!=="axis"&&U&&U.props.trigger==="click"?ze={onClick:mx(T.handleItemMouseEnter,C.props.onClick)}:B!=="axis"&&(ze={onMouseLeave:mx(T.handleItemMouseLeave,C.props.onMouseLeave),onMouseEnter:mx(T.handleItemMouseEnter,C.props.onMouseEnter)});var fe=E.cloneElement(C,ce(ce({},M.props),ze));function Oe(_t){return typeof W.dataKey=="function"?W.dataKey(_t.payload):null}if(Se)if(V>=0){var Ne,ge;if(W.dataKey&&!W.allowDuplicatedCategory){var it=typeof W.dataKey=="function"?Oe:"payload.".concat(W.dataKey.toString());Ne=r5(Z,it,F),ge=le&&H&&r5(H,it,F)}else Ne=Z?.[V],ge=le&&H&&H[V];if(xe||ue){var He=C.props.activeIndex!==void 0?C.props.activeIndex:V;return[E.cloneElement(C,ce(ce(ce({},M.props),ze),{},{activeIndex:He})),null,null]}if(!et(Ne))return[fe].concat(Ru(T.renderActivePoints({item:M,activePoint:Ne,basePoint:ge,childIndex:V,isRange:le})))}else{var zt,Tt=(zt=T.getItemByXY(T.state.activeCoordinate))!==null&&zt!==void 0?zt:{graphicalItem:fe},Wt=Tt.graphicalItem,cn=Wt.item,tr=cn===void 0?C:cn,Ka=Wt.childIndex,zn=ce(ce(ce({},M.props),ze),{},{activeIndex:Ka});return[E.cloneElement(tr,zn),null,null]}return le?[fe,null,null]:[fe,null]}),We(T,"renderCustomized",function(C,A,N){return E.cloneElement(C,ce(ce({key:"recharts-customized-".concat(N)},T.props),T.state))}),We(T,"renderMap",{CartesianGrid:{handler:Sx,once:!0},ReferenceArea:{handler:T.renderReferenceElement},ReferenceLine:{handler:Sx},ReferenceDot:{handler:T.renderReferenceElement},XAxis:{handler:Sx},YAxis:{handler:Sx},Brush:{handler:T.renderBrush,once:!0},Bar:{handler:T.renderGraphicChild},Line:{handler:T.renderGraphicChild},Area:{handler:T.renderGraphicChild},Radar:{handler:T.renderGraphicChild},RadialBar:{handler:T.renderGraphicChild},Scatter:{handler:T.renderGraphicChild},Pie:{handler:T.renderGraphicChild},Funnel:{handler:T.renderGraphicChild},Tooltip:{handler:T.renderCursor,once:!0},PolarGrid:{handler:T.renderPolarGrid,once:!0},PolarAngleAxis:{handler:T.renderPolarAxis},PolarRadiusAxis:{handler:T.renderPolarAxis},Customized:{handler:T.renderCustomized}}),T.clipPathId="".concat((P=k.id)!==null&&P!==void 0?P:dh("recharts"),"-clip"),T.throttleTriggeredAfterMouseMove=Yq(T.triggeredAfterMouseMove,(O=k.throttleDelay)!==null&&O!==void 0?O:1e3/60),T.state={},T}return d4e(j,v),i4e(j,[{key:"componentDidMount",value:function(){var P,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(P=this.props.margin.left)!==null&&P!==void 0?P:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var P=this.props,O=P.children,T=P.data,C=P.height,A=P.layout,N=Bn(O,gs);if(N){var M=N.props.defaultIndex;if(!(typeof M!="number"||M<0||M>this.state.tooltipTicks.length-1)){var B=this.state.tooltipTicks[M]&&this.state.tooltipTicks[M].value,R=N4(this.state,T,M,B),_=this.state.tooltipTicks[M].coordinate,W=(this.state.offset.top+C)/2,V=A==="horizontal",F=V?{x:_,y:W}:{y:_,x:W},I=this.state.formattedGraphicalItems.find(function(q){var Z=q.item;return Z.type.name==="Scatter"});I&&(F=ce(ce({},F),I.props.points[M].tooltipPosition),R=I.props.points[M].tooltipPayload);var U={activeTooltipIndex:M,isTooltipActive:!0,activeLabel:B,activePayload:R,activeCoordinate:F};this.setState(U),this.renderCursor(N),this.accessibilityManager.setIndex(M)}}}},{key:"getSnapshotBeforeUpdate",value:function(P,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==P.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==P.margin){var T,C;this.accessibilityManager.setDetails({offset:{left:(T=this.props.margin.left)!==null&&T!==void 0?T:0,top:(C=this.props.margin.top)!==null&&C!==void 0?C:0}})}return null}},{key:"componentDidUpdate",value:function(P){yT([Bn(P.children,gs)],[Bn(this.props.children,gs)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var P=Bn(this.props.children,gs);if(P&&typeof P.props.shared=="boolean"){var O=P.props.shared?"axis":"item";return l.indexOf(O)>=0?O:i}return i}},{key:"getMouseInfo",value:function(P){if(!this.container)return null;var O=this.container,T=O.getBoundingClientRect(),C=v5e(T),A={chartX:Math.round(P.pageX-C.left),chartY:Math.round(P.pageY-C.top)},N=T.width/O.offsetWidth||1,M=this.inRange(A.chartX,A.chartY,N);if(!M)return null;var B=this.state,R=B.xAxisMap,_=B.yAxisMap,W=this.getTooltipEventType(),V=eB(this.state,this.props.data,this.props.layout,M);if(W!=="axis"&&R&&_){var F=xo(R).scale,I=xo(_).scale,U=F&&F.invert?F.invert(A.chartX):null,q=I&&I.invert?I.invert(A.chartY):null;return ce(ce({},A),{},{xValue:U,yValue:q},V)}return V?ce(ce({},A),V):null}},{key:"inRange",value:function(P,O){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,C=this.props.layout,A=P/T,N=O/T;if(C==="horizontal"||C==="vertical"){var M=this.state.offset,B=A>=M.left&&A<=M.left+M.width&&N>=M.top&&N<=M.top+M.height;return B?{x:A,y:N}:null}var R=this.state,_=R.angleAxisMap,W=R.radiusAxisMap;if(_&&W){var V=xo(_);return f_({x:A,y:N},V)}return null}},{key:"parseEventsOfWrapper",value:function(){var P=this.props.children,O=this.getTooltipEventType(),T=Bn(P,gs),C={};T&&O==="axis"&&(T.props.trigger==="click"?C={onClick:this.handleClick}:C={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var A=n5(this.props,this.handleOuterEvent);return ce(ce({},A),C)}},{key:"addListener",value:function(){$k.on(Fk,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){$k.removeListener(Fk,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(P,O,T){for(var C=this.state.formattedGraphicalItems,A=0,N=C.length;A<N;A++){var M=C[A];if(M.item===P||M.props.key===P.key||O===gi(M.item.type)&&T===M.childIndex)return M}return null}},{key:"renderClipPath",value:function(){var P=this.clipPathId,O=this.state.offset,T=O.left,C=O.top,A=O.height,N=O.width;return G.createElement("defs",null,G.createElement("clipPath",{id:P},G.createElement("rect",{x:T,y:C,height:A,width:N})))}},{key:"getXScales",value:function(){var P=this.state.xAxisMap;return P?Object.entries(P).reduce(function(O,T){var C=YI(T,2),A=C[0],N=C[1];return ce(ce({},O),{},We({},A,N.scale))},{}):null}},{key:"getYScales",value:function(){var P=this.state.yAxisMap;return P?Object.entries(P).reduce(function(O,T){var C=YI(T,2),A=C[0],N=C[1];return ce(ce({},O),{},We({},A,N.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(P){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[P])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(P){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[P])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(P){var O=this.state,T=O.formattedGraphicalItems,C=O.activeItem;if(T&&T.length)for(var A=0,N=T.length;A<N;A++){var M=T[A],B=M.props,R=M.item,_=R.type.defaultProps!==void 0?ce(ce({},R.type.defaultProps),R.props):R.props,W=gi(R.type);if(W==="Bar"){var V=(B.data||[]).find(function(q){return Bje(P,q)});if(V)return{graphicalItem:M,payload:V}
1110}else if(W==="RadialBar"){var F=(B.data||[]).find(function(q){return f_(P,q)});if(F)return{graphicalItem:M,payload:F}}else if(cb(M,C)||db(M,C)||Wf(M,C)){var I=zwe({graphicalItem:M,activeTooltipItem:C,itemData:_.data}),U=_.activeIndex===void 0?I:_.activeIndex;return{graphicalItem:ce(ce({},M),{},{childIndex:U}),payload:Wf(M,C)?_.data[I]:M.props.data[I]}}}return null}},{key:"render",value:function(){var P=this;if(!P9(this))return null;var O=this.props,T=O.children,C=O.className,A=O.width,N=O.height,M=O.style,B=O.compact,R=O.title,_=O.desc,W=ZI(O,JTe),V=at(W,!1);if(B)return G.createElement(MI,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},G.createElement(vT,Bd({},V,{width:A,height:N,title:R,desc:_}),this.renderClipPath(),A9(T,this.renderMap)));if(this.props.accessibilityLayer){var F,I;V.tabIndex=(F=this.props.tabIndex)!==null&&F!==void 0?F:0,V.role=(I=this.props.role)!==null&&I!==void 0?I:"application",V.onKeyDown=function(q){P.accessibilityManager.keyboardEvent(q)},V.onFocus=function(){P.accessibilityManager.focus()}}var U=this.parseEventsOfWrapper();return G.createElement(MI,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},G.createElement("div",Bd({className:st("recharts-wrapper",C),style:ce({position:"relative",cursor:"default",width:A,height:N},M)},U,{ref:function(Z){P.container=Z}}),G.createElement(vT,Bd({},V,{width:A,height:N,title:R,desc:_,style:m4e}),this.renderClipPath(),A9(T,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(E.Component);We(S,"displayName",r),We(S,"defaultProps",ce({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),We(S,"getDerivedStateFromProps",function(v,j){var k=v.dataKey,P=v.data,O=v.children,T=v.width,C=v.height,A=v.layout,N=v.stackOffset,M=v.margin,B=j.dataStartIndex,R=j.dataEndIndex;if(j.updateId===void 0){var _=tB(v);return ce(ce(ce({},_),{},{updateId:0},y(ce(ce({props:v},_),{},{updateId:0}),j)),{},{prevDataKey:k,prevData:P,prevWidth:T,prevHeight:C,prevLayout:A,prevStackOffset:N,prevMargin:M,prevChildren:O})}if(k!==j.prevDataKey||P!==j.prevData||T!==j.prevWidth||C!==j.prevHeight||A!==j.prevLayout||N!==j.prevStackOffset||!Gd(M,j.prevMargin)){var W=tB(v),V={chartX:j.chartX,chartY:j.chartY,isTooltipActive:j.isTooltipActive},F=ce(ce({},eB(j,P,A)),{},{updateId:j.updateId+1}),I=ce(ce(ce({},W),V),F);return ce(ce(ce({},I),y(ce({props:v},I),j)),{},{prevDataKey:k,prevData:P,prevWidth:T,prevHeight:C,prevLayout:A,prevStackOffset:N,prevMargin:M,prevChildren:O})}if(!yT(O,j.prevChildren)){var U,q,Z,le,H=Bn(O,ku),K=H&&(U=(q=H.props)===null||q===void 0?void 0:q.startIndex)!==null&&U!==void 0?U:B,Q=H&&(Z=(le=H.props)===null||le===void 0?void 0:le.endIndex)!==null&&Z!==void 0?Z:R,re=K!==B||Q!==R,ue=!et(P),xe=ue&&!re?j.updateId:j.updateId+1;return ce(ce({updateId:xe},y(ce(ce({props:v},j),{},{updateId:xe,dataStartIndex:K,dataEndIndex:Q}),j)),{},{prevChildren:O,dataStartIndex:K,dataEndIndex:Q})}return null}),We(S,"renderActiveDot",function(v,j,k){var P;return E.isValidElement(v)?P=E.cloneElement(v,j):Qe(v)?P=v(j):P=G.createElement(J7,j),G.createElement(Kt,{className:"recharts-active-dot",key:k},P)});var b=E.forwardRef(function(j,k){return G.createElement(S,Bd({},j,{ref:k}))});return b.displayName=S.displayName,b},A4e=T4e({chartName:"LineChart",GraphicalChild:yh,axisComponents:[{axisType:"xAxis",AxisComp:mb},{axisType:"yAxis",AxisComp:xb}],formatAxisMap:kke});function nB(e){return e>=1e3?`$${e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`:e>=1?`$${e.toFixed(4)}`:e>=1e-4?`$${e.toFixed(6)}`:`$${e.toExponential(2)}`}function jx(e){return e?e>=1e9?`$${(e/1e9).toFixed(2)}B`:e>=1e6?`$${(e/1e6).toFixed(2)}M`:e>=1e3?`$${(e/1e3).toFixed(2)}K`:`$${e.toFixed(2)}`:"â"}function wx(e){return`${e>=0?"+":""}${e.toFixed(2)}%`}function z4e({data:e,isUp:t}){if(!e||e.length<2)return a.jsx("span",{"data-loc":"client/src/pages/PricePage.tsx:30",style:{color:"rgba(255,255,255,0.2)",fontSize:"0.7rem"},children:"â"});const r=64,n=24,s=Math.min(...e),o=Math.max(...e)-s||1,l=e.map((d,u)=>{const g=u/(e.length-1)*r,f=n-(d-s)/o*(n-2)-1;return`${g.toFixed(1)},${f.toFixed(1)}`}).join(" ");return a.jsx("svg",{"data-loc":"client/src/pages/PricePage.tsx:40",width:r,height:n,viewBox:`0 0 ${r} ${n}`,children:a.jsx("polyline",{"data-loc":"client/src/pages/PricePage.tsx:41",points:l,fill:"none",stroke:t?"#4ade80":"#f87171",strokeWidth:"1.5",strokeLinejoin:"round",strokeLinecap:"round"})})}function C4e(){Ie({title:"Tezos Token Prices â Live XTZ Price & Ecosystem Tokens | XTZ.News",description:"Live Tezos token prices, XTZ price chart, 24h/7d changes, market cap, and volume. Track QUIPU, kUSD, UUSD, VNXAU, and all Tezos ecosystem tokens.",keywords:"Tezos token prices, XTZ price, Tezos DeFi tokens, QUIPU price, kUSD price, Tezos market cap",canonical:"https://xtz.news/prices",jsonLd:ka({title:"Tezos Token Prices",description:"Live Tezos token prices and market data.",url:"https://xtz.news/prices",breadcrumbs:[{name:"Home",url:"https://xtz.news"}
1110,{name:"Prices",url:"https://xtz.news/prices"}]})});const{data:e=[],isLoading:t}=ee.prices.tezosTokens.useQuery(void 0,{refetchInterval:9e4,staleTime:6e4}),[r,n]=E.useState("marketCap"),[s,i]=E.useState("desc"),[o,l]=E.useState(""),[d,u]=E.useState("all"),[g,f]=E.useState("all"),[m,y]=E.useState(()=>{try{const T=localStorage.getItem("xtz_watchlist");return T?new Set(JSON.parse(T)):new Set}catch{return new Set}}),S=T=>{y(C=>{const A=new Set(C);return A.has(T)?A.delete(T):A.add(T),localStorage.setItem("xtz_watchlist",JSON.stringify(Array.from(A))),A})},b=e.find(T=>T.id==="tezos"),v=E.useMemo(()=>{const T=b?.sparkline??[];if(!T.length)return[];const C=Date.now(),A=10080*60*1e3/T.length;return T.map((N,M)=>({time:new Date(C-(T.length-1-M)*A).toLocaleDateString("en-GB",{month:"short",day:"numeric"}),price:+N.toFixed(6)}))},[b]),j=E.useMemo(()=>{let T=[...e];if(g==="watchlist"&&(T=T.filter(C=>m.has(C.id))),o.trim()){const C=o.toLowerCase();T=T.filter(A=>A.symbol.toLowerCase().includes(C)||A.name.toLowerCase().includes(C))}return d==="up"&&(T=T.filter(C=>C.change24h>=0)),d==="down"&&(T=T.filter(C=>C.change24h<0)),T.sort((C,A)=>{let N,M;switch(r){case"name":return s==="asc"?C.symbol.localeCompare(A.symbol):A.symbol.localeCompare(C.symbol);case"price":N=C.price,M=A.price;break;case"change24h":N=C.change24h,M=A.change24h;break;case"change7d":N=C.change7d??0,M=A.change7d??0;break;case"marketCap":N=C.marketCap??0,M=A.marketCap??0;break;case"volume24h":N=C.volume24h??0,M=A.volume24h??0;break;default:N=0,M=0}return s==="asc"?N-M:M-N})},[e,r,s,o,d,g,m]),k=T=>{r===T?P(s==="asc"?"desc":"asc"):(n(T),i("desc"))},P=i,O=({label:T,k:C})=>a.jsx("th",{"data-loc":"client/src/pages/PricePage.tsx:138",onClick:()=>k(C),style:{padding:"0.75rem 1rem",textAlign:C==="name"?"left":"right",fontSize:"0.65rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:r===C?"#2c7df7":"rgba(255,255,255,0.4)",cursor:"pointer",whiteSpace:"nowrap",userSelect:"none"},children:a.jsxs("span",{"data-loc":"client/src/pages/PricePage.tsx:142",style:{display:"inline-flex",alignItems:"center",gap:"0.25rem"},children:[T,a.jsx(fy,{"data-loc":"client/src/pages/PricePage.tsx:144",size:10,style:{opacity:r===C?1:.4}})]})});return a.jsxs("div",{"data-loc":"client/src/pages/PricePage.tsx:150",style:{background:"#000",minHeight:"100vh"},children:[a.jsx("div",{"data-loc":"client/src/pages/PricePage.tsx:152",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",borderBottom:"1px solid rgba(44,125,247,0.2)",padding:"3rem 0 2.5rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/PricePage.tsx:153",className:"container",children:[a.jsxs("div",{"data-loc":"client/src/pages/PricePage.tsx:154",style:{display:"flex",alignItems:"center",gap:"1rem",marginBottom:"0.5rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/PricePage.tsx:155",style:{width:"4px",height:"48px",background:"#2c7df7",borderRadius:"2px",flexShrink:0}}),a.jsxs("div",{"data-loc":"client/src/pages/PricePage.tsx:156",children:[a.jsx("h1",{"data-loc":"client/src/pages/PricePage.tsx:157",style:{fontSize:"clamp(2rem, 5vw, 3rem)",fontWeight:900,color:"#fff",textTransform:"uppercase",letterSpacing:"0.04em",margin:0},children:"Tezos Prices"}),a.jsx("p",{"data-loc":"client/src/pages/PricePage.tsx:160",style:{fontSize:"0.85rem",color:"rgba(255,255,255,0.4)",margin:"0.4rem 0 0"},children:"Live prices for XTZ and all Tezos ecosystem tokens · Updated every 90 seconds"})]})]}),b&&a.jsxs("div",{"data-loc":"client/src/pages/PricePage.tsx:168",style:{display:"flex",flexWrap:"wrap",gap:"1.5rem",marginTop:"2rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/PricePage.tsx:169",children:[a.jsx("p",{"data-loc":"client/src/pages/PricePage.tsx:170",style:{fontSize:"0.65rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.4)",margin:"0 0 0.25rem"},children:"XTZ Price"}),a.jsxs("div",{"data-loc":"client/src/pages/PricePage.tsx:171",style:{display:"flex",alignItems:"center",gap:"0.75rem"},children:[a.jsx("img",{"data-loc":"client/src/pages/PricePage.tsx:172",src:b.image,alt:"XTZ",style:{width:"32px",height:"32px",borderRadius:"50%"}}),a.jsx("span",{"data-loc":"client/src/pages/PricePage.tsx:173",style:{fontSize:"2.5rem",fontWeight:900,color:"#fff",fontVariantNumeric:"tabular-nums"},children:nB(b.price)}),a.jsxs("span",{"data-loc":"client/src/pages/PricePage.tsx:174",style:{fontSize:"1rem",fontWeight:700,color:b.change24h>=0?"#4ade80":"#f87171",display:"flex",alignItems:"center",gap:"0.25rem"},children:[b.change24h>=0?a.jsx(cr,{"data-loc":"client/src/pages/PricePage.tsx:175",size:16}):a.jsx(Ha,{"data-loc":"client/src/pages/PricePage.tsx:175",size:16}),wx(b.change24h)]})]})]}),a.jsx("div",{"data-loc":"client/src/pages/PricePage.tsx:180",style:{display:"flex",gap:"2rem",alignItems:"flex-end"},children:[{label:"Market Cap",value:jx(b.marketCap)},{label:"24h Volume",value:jx(b.volume24h)},{label:"7d Change",value:wx(b.change7d??0),color:(b.change7d??0)>=0?"#4ade80":"#f87171"}].map(T=>a.jsxs("div",{"data-loc":"client/src/pages/PricePage.tsx:186",children:[a.jsx("p",{"data-loc":"client/src/pages/PricePage.tsx:187",style:{fontSize:"0.65rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.4)",margin:"0 0 0.25rem"},children:T.label}),a.jsx("p",{"data-loc":"client/src/pages/PricePage.tsx:188",style:{fontSize:"1.1rem",fontWeight:700,color:T.color??"#fff",margin:0},children:T.value})]},T.label))})]})]})}),a.jsxs("div",{"data-loc":"client/src/pages/PricePage.tsx:197",className:"container",style:{padding:"2.5rem 1.25rem 4rem"},children:[a.jsx(Ly,{"data-loc":"client/src/pages/PricePage.tsx:198",context:"prices"}),v.length>0&&a.jsxs("div",{"data-loc":"client/src/pages/PricePage.tsx:201",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"8px",padding:"1.5rem",marginBottom:"2rem"},children:[a.jsx("h2",{"data-loc":"client/src/pages/PricePage.tsx:202",style:{fontSize:"0.9rem",fontWeight:700,color:"rgba(255,255,255,0.6)",textTransform:"uppercase",letterSpacing:"0.08em",margin:"0 0 1.25rem"},children:"XTZ / USD â 7 Day Price Chart"}),a.jsx(g5e,{"data-loc":"client/src/pages/PricePage.tsx:205",width:"100%",height:220,children:a.jsxs(A4e,{"data-loc":"client/src/pages/PricePage.tsx:206",data:v,margin:{top:5,right:10,left:0,bottom:5},children:[a.jsx(HG,{"data-loc":"client/src/pages/PricePage.tsx:207",strokeDasharray:"3 3",stroke:"rgba(255,255,255,0.05)"}),a.jsx(mb,{"data-loc":"client/src/pages/PricePage.tsx:208",dataKey:"time",tick:{fill:"rgba(255,255,255,0.3)",fontSize:11}
1110,tickLine:!1,axisLine:!1,interval:"preserveStartEnd"}),a.jsx(xb,{"data-loc":"client/src/pages/PricePage.tsx:209",tick:{fill:"rgba(255,255,255,0.3)",fontSize:11},tickLine:!1,axisLine:!1,tickFormatter:T=>`$${T.toFixed(3)}`,width:65,domain:["auto","auto"]}),a.jsx(gs,{"data-loc":"client/src/pages/PricePage.tsx:210",contentStyle:{background:"#05152e",border:"1px solid rgba(44,125,247,0.3)",borderRadius:"4px",color:"#fff",fontSize:"0.8rem"},formatter:T=>[`$${Number(T).toFixed(6)}`,"XTZ"]}),a.jsx(yh,{"data-loc":"client/src/pages/PricePage.tsx:214",type:"monotone",dataKey:"price",stroke:"#2c7df7",strokeWidth:2,dot:!1,activeDot:{r:4,fill:"#2c7df7"}})]})})]}),a.jsxs("div",{"data-loc":"client/src/pages/PricePage.tsx:221",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"8px",overflow:"hidden"},children:[a.jsx("div",{"data-loc":"client/src/pages/PricePage.tsx:223",style:{display:"flex",borderBottom:"1px solid rgba(255,255,255,0.08)"},children:["all","watchlist"].map(T=>a.jsxs("button",{"data-loc":"client/src/pages/PricePage.tsx:225",onClick:()=>f(T),style:{padding:"0.875rem 1.5rem",background:"none",border:"none",borderBottom:g===T?"2px solid #2c7df7":"2px solid transparent",color:g===T?"#fff":"rgba(255,255,255,0.4)",fontSize:"0.8rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",cursor:"pointer",display:"flex",alignItems:"center",gap:"0.4rem",transition:"all 0.2s"},children:[T==="watchlist"&&a.jsx(o0,{"data-loc":"client/src/pages/PricePage.tsx:227",size:13,style:{fill:g==="watchlist"?"#facc15":"none",stroke:g==="watchlist"?"#facc15":"currentColor"}}),T==="all"?"All Tokens":`Watchlist (${m.size})`]},T))}),a.jsxs("div",{"data-loc":"client/src/pages/PricePage.tsx:233",style:{padding:"1rem 1.25rem",borderBottom:"1px solid rgba(255,255,255,0.08)",display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.75rem"},children:[a.jsx("h2",{"data-loc":"client/src/pages/PricePage.tsx:234",style:{fontSize:"0.9rem",fontWeight:700,color:"rgba(255,255,255,0.6)",textTransform:"uppercase",letterSpacing:"0.08em",margin:0,flex:1,minWidth:"200px"},children:g==="watchlist"?"My Watchlist":"All Tezos Ecosystem Tokens"}),a.jsxs("div",{"data-loc":"client/src/pages/PricePage.tsx:238",style:{position:"relative"},children:[a.jsxs("svg",{"data-loc":"client/src/pages/PricePage.tsx:239",width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"rgba(255,255,255,0.4)",strokeWidth:"2",style:{position:"absolute",left:"0.6rem",top:"50%",transform:"translateY(-50%)",pointerEvents:"none"},children:[a.jsx("circle",{"data-loc":"client/src/pages/PricePage.tsx:240",cx:"11",cy:"11",r:"8"}),a.jsx("path",{"data-loc":"client/src/pages/PricePage.tsx:240",d:"m21 21-4.35-4.35"})]}),a.jsx("input",{"data-loc":"client/src/pages/PricePage.tsx:242",type:"text",value:o,onChange:T=>l(T.target.value),placeholder:"Search tokens...",style:{padding:"0.45rem 0.875rem 0.45rem 2rem",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"3px",color:"#fff",fontSize:"0.78rem",outline:"none",width:"180px",fontFamily:"inherit"},onFocus:T=>T.currentTarget.style.borderColor="#2c7df7",onBlur:T=>T.currentTarget.style.borderColor="rgba(255,255,255,0.12)"})]}),a.jsx("div",{"data-loc":"client/src/pages/PricePage.tsx:253",style:{display:"flex",gap:"0.35rem"},children:["all","up","down"].map(T=>a.jsx("button",{"data-loc":"client/src/pages/PricePage.tsx:255",onClick:()=>u(T),style:{padding:"0.4rem 0.75rem",fontSize:"0.7rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.06em",background:d===T?"#2c7df7":"rgba(255,255,255,0.06)",border:d===T?"1px solid #2c7df7":"1px solid rgba(255,255,255,0.12)",borderRadius:"3px",color:d===T?"#fff":T==="up"?"#4ade80":T==="down"?"#f87171":"rgba(255,255,255,0.6)",cursor:"pointer",transition:"all 0.2s"},children:T==="all"?"All":T==="up"?"â² Gainers":"â¼ Losers"},T))}),a.jsxs("span",{"data-loc":"client/src/pages/PricePage.tsx:262",style:{fontSize:"0.7rem",color:"rgba(255,255,255,0.3)"},children:[j.length," tokens"]})]}),t?a.jsx("div",{"data-loc":"client/src/pages/PricePage.tsx:266",style:{padding:"2rem",display:"flex",flexDirection:"column",gap:"0.75rem"},children:Array.from({length:8}).map((T,C)=>a.jsx("div",{"data-loc":"client/src/pages/PricePage.tsx:267",className:"skeleton",style:{height:"48px",borderRadius:"4px"}},C))}):a.jsx("div",{"data-loc":"client/src/pages/PricePage.tsx:270",style:{overflowX:"auto"},children:a.jsxs("table",{"data-loc":"client/src/pages/PricePage.tsx:271",style:{width:"100%",borderCollapse:"collapse"},children:[a.jsx("thead",{"data-loc":"client/src/pages/PricePage.tsx:272",children:a.jsxs("tr",{"data-loc":"client/src/pages/PricePage.tsx:273",style:{borderBottom:"1px solid rgba(255,255,255,0.08)"},children:[a.jsx("th",{"data-loc":"client/src/pages/PricePage.tsx:274",style:{padding:"0.75rem 0.5rem",width:"32px"}}),a.jsx("th",{"data-loc":"client/src/pages/PricePage.tsx:275",style:{padding:"0.75rem 1rem",textAlign:"left",fontSize:"0.65rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.4)",width:"32px"},children:"#"}),a.jsx(O,{"data-loc":"client/src/pages/PricePage.tsx:276",label:"Token",k:"name"}),a.jsx(O,{"data-loc":"client/src/pages/PricePage.tsx:277",label:"Price",k:"price"}),a.jsx(O,{"data-loc":"client/src/pages/PricePage.tsx:278",label:"24h %",k:"change24h"}),a.jsx(O,{"data-loc":"client/src/pages/PricePage.tsx:279",label:"7d %",k:"change7d"}),a.jsx("th",{"data-loc":"client/src/pages/PricePage.tsx:280",style:{padding:"0.75rem 1rem",textAlign:"center",fontSize:"0.65rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.4)"},children:"7d Chart"}),a.jsx(O,{"data-loc":"client/src/pages/PricePage.tsx:281",label:"Market Cap",k:"marketCap"}),a.jsx(O,{"data-loc":"client/src/pages/PricePage.tsx:282",label:"24h Volume",k:"volume24h"}),a.jsx("th",{"data-loc":"client/src/pages/PricePage.tsx:283",style:{padding:"0.75rem 1rem",textAlign:"center",fontSize:"0.65rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.4)"},children:"Trade"})]})}),a.jsx("tbody",{"data-loc":"client/src/pages/PricePage.tsx:286",children:j.map((T,C)=>{const A=T.change24h>=0,N=T.change7d??0,M=N>=0,B=T.sparkline??[],R=T.dexUrl??`https://www.coingecko.com/en/coins/${T.id}`;return a.jsxs("tr",{"data-loc":"client/src/pages/PricePage.tsx:295",style:{borderBottom:"1px solid rgba(255,255,255,0.05)",transition:"background 0.15s"},onMouseEnter:_=>_.currentTarget.style.background="rgba(44,125,247,0.05)",onMouseLeave:_=>_.currentTarget.style.background="transparent",children:[a.jsx("td",{"data-loc":"client/src/pages/PricePage.tsx:302",style:{padding:"0.875rem 0.5rem",textAlign:"center"},children:a.jsx("button",{"data-loc":"client/src/pages/PricePage.tsx:303",onClick:_=>{_.stopPropagation(),S(T.id)},style:{background:"none",border:"none",cursor:"pointer",padding:"2px",display:"flex",alignItems:"center",justifyContent:"center"}
1110,"aria-label":m.has(T.id)?"Remove from watchlist":"Add to watchlist",children:a.jsx(o0,{"data-loc":"client/src/pages/PricePage.tsx:308",size:14,style:{fill:m.has(T.id)?"#facc15":"none",stroke:m.has(T.id)?"#facc15":"rgba(255,255,255,0.3)",transition:"all 0.2s"}})})}),a.jsx("td",{"data-loc":"client/src/pages/PricePage.tsx:312",style:{padding:"0.875rem 1rem",fontSize:"0.8rem",color:"rgba(255,255,255,0.3)",textAlign:"center"},children:C+1}),a.jsx("td",{"data-loc":"client/src/pages/PricePage.tsx:315",style:{padding:"0.875rem 1rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/PricePage.tsx:316",style:{display:"flex",alignItems:"center",gap:"0.75rem"},children:[T.image&&a.jsx("img",{"data-loc":"client/src/pages/PricePage.tsx:317",src:T.image,alt:T.symbol,style:{width:"28px",height:"28px",borderRadius:"50%",flexShrink:0},onError:_=>_.currentTarget.style.display="none"}),a.jsxs("div",{"data-loc":"client/src/pages/PricePage.tsx:318",children:[a.jsx("p",{"data-loc":"client/src/pages/PricePage.tsx:319",style:{fontSize:"0.85rem",fontWeight:700,color:"#fff",margin:0},children:T.symbol}),a.jsx("p",{"data-loc":"client/src/pages/PricePage.tsx:320",style:{fontSize:"0.7rem",color:"rgba(255,255,255,0.4)",margin:0},children:T.name})]})]})}),a.jsx("td",{"data-loc":"client/src/pages/PricePage.tsx:326",style:{padding:"0.875rem 1rem",textAlign:"right",fontSize:"0.85rem",fontWeight:600,color:"#fff",fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap"},children:nB(T.price)}),a.jsx("td",{"data-loc":"client/src/pages/PricePage.tsx:331",style:{padding:"0.875rem 1rem",textAlign:"right"},children:a.jsxs("span",{"data-loc":"client/src/pages/PricePage.tsx:332",style:{fontSize:"0.82rem",fontWeight:600,color:A?"#4ade80":"#f87171",display:"inline-flex",alignItems:"center",gap:"0.2rem"},children:[A?a.jsx(cr,{"data-loc":"client/src/pages/PricePage.tsx:333",size:12}):a.jsx(Ha,{"data-loc":"client/src/pages/PricePage.tsx:333",size:12}),wx(T.change24h)]})}),a.jsx("td",{"data-loc":"client/src/pages/PricePage.tsx:339",style:{padding:"0.875rem 1rem",textAlign:"right"},children:a.jsx("span",{"data-loc":"client/src/pages/PricePage.tsx:340",style:{fontSize:"0.82rem",fontWeight:600,color:M?"#4ade80":"#f87171"},children:wx(N)})}),a.jsx("td",{"data-loc":"client/src/pages/PricePage.tsx:346",style:{padding:"0.875rem 1rem",textAlign:"center"},children:a.jsx(z4e,{"data-loc":"client/src/pages/PricePage.tsx:347",data:B,isUp:A})}),a.jsx("td",{"data-loc":"client/src/pages/PricePage.tsx:351",style:{padding:"0.875rem 1rem",textAlign:"right",fontSize:"0.82rem",color:"rgba(255,255,255,0.7)",fontVariantNumeric:"tabular-nums"},children:jx(T.marketCap)}),a.jsx("td",{"data-loc":"client/src/pages/PricePage.tsx:356",style:{padding:"0.875rem 1rem",textAlign:"right",fontSize:"0.82rem",color:"rgba(255,255,255,0.7)",fontVariantNumeric:"tabular-nums"},children:jx(T.volume24h)}),a.jsx("td",{"data-loc":"client/src/pages/PricePage.tsx:361",style:{padding:"0.875rem 1rem",textAlign:"center"},children:a.jsxs("a",{"data-loc":"client/src/pages/PricePage.tsx:362",href:R,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",padding:"0.3rem 0.75rem",background:"rgba(44,125,247,0.15)",border:"1px solid rgba(44,125,247,0.3)",borderRadius:"3px",color:"#2c7df7",fontSize:"0.7rem",fontWeight:700,textDecoration:"none",transition:"all 0.2s"},onMouseEnter:_=>{_.currentTarget.style.background="#2c7df7",_.currentTarget.style.color="#fff"},onMouseLeave:_=>{_.currentTarget.style.background="rgba(44,125,247,0.15)",_.currentTarget.style.color="#2c7df7"},children:["Trade ",a.jsx(ve,{"data-loc":"client/src/pages/PricePage.tsx:370",size:10})]})})]},T.id)})})]})})]})]})]})}const io={width:"100%",padding:"0.8rem 1rem",background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"4px",color:"#fff",fontSize:"0.9rem",outline:"none",fontFamily:"inherit",transition:"border-color 0.2s",boxSizing:"border-box"},sV=["DeFi","NFTs","Gaming","Dev Tools","Wallets","Stablecoins","Layer 2","Block Explorer","DAOs","Governance","Digital Identity","Baking Tools","Core Development","Foundation","Community","Community Services","Privacy","Payments","Security Tokens","RWA","Web3 Infrastru
1110cture","Other"],E4e=()=>{const e=new URLSearchParams(window.location.search).get("category");return e&&sV.includes(e)?e:""};function oo({children:e,required:t}){return a.jsxs("label",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:28",style:{display:"block",fontSize:"0.68rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.45)",marginBottom:"0.5rem"},children:[e," ",t&&a.jsx("span",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:29",style:{color:"#2c7df7"},children:"*"})]})}function O4e(){const[e,t]=E.useState({projectName:"",category:E4e(),website:"",twitter:"",github:"",description:"",contactName:"",contactEmail:"",agreedToTerms:!1}),[r,n]=E.useState(!1),[s,i]=E.useState(""),[o,l]=E.useState(!1),d=async u=>{if(u.preventDefault(),i(""),!e.projectName.trim())return i("Project name is required.");if(!e.category)return i("Please select a category.");if(!e.website.trim())return i("Website URL is required.");if(!e.description.trim())return i("Project description is required.");if(!e.contactEmail.trim())return i("Contact email is required.");if(!e.agreedToTerms)return i("You must agree to the terms.");l(!0);try{await fetch("/api/trpc/system.notifyOwner",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({json:{title:`New Project Submission: ${e.projectName}`,content:` 1111**Project:** ${e.projectName} 1112**Category:** ${e.category} 1113**Website:** ${e.website} 1114**Twitter:** ${e.twitter||"N/A"} 1115**GitHub:** ${e.github||"N/A"} 1116**Description:** ${e.description} 1117**Contact:** ${e.contactName} (${e.contactEmail}) 1118 `.trim()}})}),n(!0)}catch{i("Something went wrong. Please email us directly at [email protected]")}finally{l(!1)}};return r?a.jsx("div",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:91",style:{background:"#000",minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsxs("div",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:92",style:{textAlign:"center",maxWidth:"480px",padding:"2rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:93",style:{width:"80px",height:"80px",borderRadius:"50%",background:"rgba(74,222,128,0.1)",border:"2px solid rgba(74,222,128,0.4)",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 1.5rem"},children:a.jsx(ja,{"data-loc":"client/src/pages/SubmitProjectPage.tsx:94",size:36,style:{color:"#4ade80"}})}),a.jsx("h1",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:96",style:{fontSize:"2rem",fontWeight:900,color:"#fff",margin:"0 0 0.75rem"},children:"Project Submitted!"}),a.jsx("p",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:97",style:{fontSize:"0.95rem",color:"rgba(255,255,255,0.6)",lineHeight:1.7,margin:"0 0 2rem"},children:"Thank you for submitting your project to XTZ.News. Our team will review it and get back to you within 3â5 business days."}),a.jsxs("div",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:100",style:{display:"flex",gap:"0.75rem",justifyContent:"center"},children:[a.jsx($,{"data-loc":"client/src/pages/SubmitProjectPage.tsx:101",href:"/projects",style:{display:"inline-flex",alignItems:"center",gap:"0.5rem",padding:"0.75rem 1.5rem",background:"#2c7df7",borderRadius:"4px",color:"#fff",textDecoration:"none",fontSize:"0.82rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em"},children:"View Projects"}),a.jsx($,{"data-loc":"client/src/pages/SubmitProjectPage.tsx:104",href:"/",style:{display:"inline-flex",alignItems:"center",gap:"0.5rem",padding:"0.75rem 1.5rem",background:"rgba(255,255,255,0.07)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"4px",color:"rgba(255,255,255,0.7)",textDecoration:"none",fontSize:"0.82rem",fontWeight:700},children:"Back to Home"})]})]})}):a.jsxs("div",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:114",style:{background:"#000",minHeight:"100vh"},children:[a.jsxs("div",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:116",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",borderBottom:"1px solid rgba(44,125,247,0.2)",padding:"4rem 0 3rem",position:"relative",overflow:"hidden"},children:[a.jsx("div",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:117",style:{position:"absolute",inset:0,opacity:.04,backgroundImage:"repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(44,125,247,0.8) 40px, rgba(44,125,247,0.8) 41px)",pointerEvents:"none"}}),a.jsxs("div",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:118",className:"container",style:{position:"relative"},children:[a.jsxs("nav",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:119",style:{display:"flex",alignItems:"center",gap:"0.35rem",marginBottom:"1.5rem",fontSize:"0.78rem",fontWeight:600},children:[a.jsx($,{"data-loc":"client/src/pages/SubmitProjectPage.tsx:120",href:"/",style:{color:"rgba(255,255,255,0.5)",display:"flex",alignItems:"center",textDecoration:"none"},children:a.jsx(Qt,{"data-loc":"client/src/pages/SubmitProjectPage.tsx:120",size:13})}),a.jsx(Le,{"data-loc":"client/src/pages/SubmitProjectPage.tsx:121",size:11,style:{color:"rgba(255,255,255,0.3)"}}),a.jsx($,{"data-loc":"client/src/pages/SubmitProjectPage.tsx:122",href:"/projects",style:{color:"#2c7df7",textDecoration:"none",fontWeight:700},children:"Projects"}),a.jsx(Le,{"data-loc":"client/src/pages/SubmitProjectPage.tsx:123",size:11,style:{color:"rgba(255,255,255,0.3)"}}),a.jsx("span",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:124",style:{color:"rgba(255,255,255,0.85)"},children:"Submit Project"})]}),a.jsxs("div",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:126",style:{display:"flex",alignItems:"center",gap:"1rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:127",style:{width:"4px",height:"52px",background:"#2c7df7",borderRadius:"2px",flexShrink:0}}),a.jsxs("div",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:128",children:[a.jsx("h1",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:129",style:{fontSize:"clamp(2.5rem, 6vw, 4rem)",fontWeight:900,color:"#fff",textTransform:"uppercase",letterSpacing:"0.04em",margin:0,lineHeight:1},children:"Submit Project"}),a.jsx("p",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:130",style:{fontSize:"0.9rem",color:"rgba(255,255,255,0.45)",margin:"0.4rem 0 0"},children:"Get your Tezos project featured on XTZ.News"})]})]})]})]}),a.jsx("div",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:136",className:"container",style:{padding:"3rem 1.25rem 5rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:137",style:{display:"grid",gridTemplateColumns:"1fr min(340px, 100%)",gap:"2.5rem",alignItems:"start"},children:[a.jsxs("form",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:139",onSubmit:d,children:[a.jsxs("div",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:141",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"8px",padding:"2rem",marginBottom:"1.25rem"},children:[a.jsx("h2",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:142",style:{fontSize:"0.75rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",color:"#2c7df7",margin:"0 0 1.5rem",paddingBottom:"0.75rem",borderBottom:"1px solid rgba(255,255,255,0.07)"},children:"Project Information"}),a.jsxs("div",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:144",style:{marginBottom:"1.25rem"},children:[a.jsx(oo,{"data-loc":"client/src/pages/SubmitProjectPage.tsx:145",required:!0,children:"Project Name"}),a.jsx("input",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:146",type:"text",value:e.projectName,onChange:u=>t({...e,projectName:u.target.value}),placeholder:"e.g. QuipuSwap",style:io,onFocus:u=>u.currentTarget.style.borderColor="#2c7df7",onBlur:u=>u.currentTarget.style.borderColor="rgba(255,255,255,0.12)"})]}),a.jsxs("div",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:151",style:{marginBottom:"1.25rem"},children:[a.jsx(oo,{"data-loc":"client/src/pages/SubmitProjectPage.tsx:152",required:!0,children:"Category"}),a.jsxs("select",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:153",value:e.category,onChange:u=>t({...e,category:u.target.value}),style:{...io,cursor:"pointer"},onFocus:u=>u.currentTarget.style.borderColor="#2c7df7",onBlur:u=>u.currentTarget.style.borderColor="rgba(255,255,255,0.12)",children:[a.jsx("option",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:158",value:"",children:"Select a category..."}),sV.map(u=>a.jsx("option",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:159",value:u,children:u},u))]})]}),a.jsxs("div",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:163",style:{marginBottom:"1.25rem"},children:[a.jsx(oo,{"data-loc":"client/src/pages/SubmitProjectPage.tsx:164",required:!0,children:"Website URL"}),a.jsxs("div",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:165",style:{position:"relative"},children:[a.jsx(ba,{"data-loc":"client/src/pages/SubmitProjectPage.tsx:166",size:14,style:{position:"absolute",left:"0.875rem",top:"50%",transform:"translateY(-50%)",color:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),a.jsx("input",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:167",type:"url",value:e.website,onChange:u=>t({...e,website:u.target.value}),placeholder:"https://yourproject.com",style:{...io,paddingLeft:"2.5rem"},onFocus:u=>u.currentTarget.style.borderColor="#2c7df7",onBlur:u=>u.currentTarget.style.borderColor="rgba(255,255,255,0.12)"})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:173",style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"1rem",marginBottom:"1.25rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:174",children:[a.jsx(oo,{"data-loc":"client/src/pages/SubmitProjectPage.tsx:175",children:"Twitter / X"}),a.jsxs("div",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:176",style:{position:"relative"},children:[a.jsx(vc,{"data-loc":"client/src/pages/SubmitProjectPage.tsx:177",size:14,style:{position:"absolute",left:"0.875rem",top:"50%",transform:"translateY(-50%)",color:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),a.jsx("input",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:178",type:"text",value:e.twitter,onChange:u=>t({...e,twitter:u.target.value}),placeholder:"@yourproject",style:{...io,paddingLeft:"2.5rem"},onFocus:u=>u.currentTarget.style.borderColor="#2c7df7",onBlur:u=>u.currentTarget.style.borderColor="rgba(255,255,255,0.12)"})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:183",children:[a.jsx(oo,{"data-loc":"client/src/pages/SubmitProjectPage.tsx:184",children:"GitHub"}),a.jsxs("div",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:185",style:{position:"relative"},children:[a.jsx(VW,{"data-loc":"client/src/pages/SubmitProjectPage.tsx:186",size:14,style:{position:"absolute",left:"0.875rem",top:"50%",transform:"translateY(-50%)",color:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),a.jsx("input",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:187",type:"text",value:e.github,onChange:u=>t({...e,github:u.target.value}),placeholder:"github.com/yourproject",style:{...io,paddingLeft:"2.5rem"},onFocus:u=>u.currentTarget.style.borderColor="#2c7df7",onBlur:u=>u.currentTarget.style.borderColor="rgba(255,255,255,0.12)"})]})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:194",children:[a.jsx(oo,{"data-loc":"client/src/pages/SubmitProjectPage.tsx:195",required:!0,children:"Project Description"}),a.jsx("textarea",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:196",value:e.description,onChange:u=>t({...e,description:u.target.value}),placeholder:"Describe your project in 2-3 sentences. What does it do? How does it use Tezos?",rows:4,style:{...io,resize:"vertical",minHeight:"100px",lineHeight:1.6},onFocus:u=>u.currentTarget.style.borderColor="#2c7df7",onBlur:u=>u.currentTarget.style.borderColor="rgba(255,255,255,0.12)"})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:204",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"8px",padding:"2rem",marginBottom:"1.25rem"},children:[a.jsx("h2",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:205",style:{fontSize:"0.75rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",color:"#2c7df7",margin:"0 0 1.5rem",paddingBottom:"0.75rem",borderBottom:"1px solid rgba(255,255,255,0.07)"},children:"Your Contact Details"}),a.jsxs("div",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:206",style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:207",children:[a.jsx(oo,{"data-loc":"client/src/pages/SubmitProjectPage.tsx:208",children:"Your Name"}),a.jsx("input",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:209",type:"text",value:e.contactName,onChange:u=>t({...e,contactName:u.target.value}),placeholder:"John Doe",style:io,onFocus:u=>u.currentTarget.style.borderColor="#2c7df7",onBlur:u=>u.currentTarget.style.borderColor="rgba(255,255,255,0.12)"})]}),a.jsxs("div",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:213",children:[a.jsx(oo,{"data-loc":"client/src/pages/SubmitProjectPage.tsx:214",required:!0,children:"Contact Email"}),a.jsx("input",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:215",type:"email",value:e.contactEmail,onChange:u=>t({...e,contactEmail:u.target.value}),placeholder:"[email protected]",style:io,onFocus:u=>u.currentTarget.style.borderColor="#2c7df7",onBlur:u=>u.currentTarget.style.borderColor="rgba(255,255,255,0.12)"})]})]})]}),a.jsx("div",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:223",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"8px",padding:"1.5rem",marginBottom:"1.25rem"},children:a.jsxs("label",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:224",style:{display:"flex",alignItems:"flex-start",ga
1118p:"0.875rem",cursor:"pointer"},children:[a.jsx("div",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:225",onClick:()=>t({...e,agreedToTerms:!e.agreedToTerms}),style:{width:"20px",height:"20px",borderRadius:"3px",flexShrink:0,border:e.agreedToTerms?"2px solid #2c7df7":"2px solid rgba(255,255,255,0.2)",background:e.agreedToTerms?"#2c7df7":"transparent",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s",marginTop:"2px"},children:e.agreedToTerms&&a.jsx("svg",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:227",width:"11",height:"9",viewBox:"0 0 11 9",fill:"none",children:a.jsx("path",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:227",d:"M1 4.5L4 7.5L10 1.5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),a.jsxs("span",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:229",style:{fontSize:"0.83rem",color:"rgba(255,255,255,0.65)",lineHeight:1.65},children:["I confirm this project is actively building on the Tezos ecosystem and all information provided is accurate. I agree to XTZ.News ",a.jsx("span",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:230",style:{color:"#2c7df7"},children:"terms and conditions"}),"."]})]})}),s&&a.jsxs("div",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:236",style:{display:"flex",alignItems:"center",gap:"0.75rem",padding:"0.875rem 1rem",background:"rgba(248,113,113,0.07)",border:"1px solid rgba(248,113,113,0.2)",borderRadius:"4px",marginBottom:"1.25rem"},children:[a.jsx(hy,{"data-loc":"client/src/pages/SubmitProjectPage.tsx:237",size:16,style:{color:"#f87171",flexShrink:0}}),a.jsx("p",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:238",style:{fontSize:"0.85rem",color:"#f87171",margin:0},children:s})]}),a.jsx("button",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:242",type:"submit",disabled:o,style:{width:"100%",padding:"1rem",background:o?"rgba(44,125,247,0.5)":"#2c7df7",border:"none",borderRadius:"4px",color:"#fff",fontSize:"0.9rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",cursor:o?"not-allowed":"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:"0.625rem",transition:"background 0.2s"},onMouseEnter:u=>{o||(u.currentTarget.style.background="#1a6ae0")},onMouseLeave:u=>{o||(u.currentTarget.style.background="#2c7df7")},children:o?a.jsxs(a.Fragment,{children:[a.jsx(Va,{"data-loc":"client/src/pages/SubmitProjectPage.tsx:247",size:18,style:{animation:"spin 0.8s linear infinite"}})," Submitting..."]}):a.jsxs(a.Fragment,{children:[a.jsx(wa,{"data-loc":"client/src/pages/SubmitProjectPage.tsx:247",size:16})," Submit Project"]})}),a.jsx("style",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:249",children:"@keyframes spin { to { transform: rotate(360deg); } }"})]}),a.jsxs("div",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:253",style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:254",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"8px",padding:"1.5rem"},children:[a.jsx("h3",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:255",style:{fontSize:"0.75rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"#2c7df7",margin:"0 0 1rem"},children:"Listing Criteria"}),a.jsx("ul",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:256",style:{margin:0,padding:"0 0 0 1.1rem",display:"flex",flexDirection:"column",gap:"0.6rem"},children:["Project must be live on Tezos mainnet or testnet","Must have a working website","Original project â no clones or forks without significant changes","Active development or maintenance","No scam, rug-pull, or fraudulent projects","Review within 3â5 business days"].map((u,g)=>a.jsx("li",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:258",style:{fontSize:"0.82rem",color:"rgba(255,255,255,0.6)",lineHeight:1.5},children:u},g))})]}),a.jsxs("div",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:262",style:{background:"rgba(44,125,247,0.06)",border:"1px solid rgba(44,125,247,0.2)",borderRadius:"8px",padding:"1.5rem"},children:[a.jsx("h3",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:263",style:{fontSize:"0.75rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"#2c7df7",margin:"0 0 0.75rem"},children:"Already Listed?"}),a.jsx("p",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:264",style:{fontSize:"0.82rem",color:"rgba(255,255,255,0.6)",margin:"0 0 0.75rem",lineHeight:1.6},children:"Want to update your project's information or logo? Contact us directly."}),a.jsx("a",{"data-loc":"client/src/pages/SubmitProjectPage.tsx:267",href:"mailto:[email protected]",style:{fontSize:"0.85rem",color:"#2c7df7",textDecoration:"none",fontWeight:700},children:"[email protected]"})]})]})]})})]})}
1118function M4e(){const e=As(),r=new URLSearchParams(e).get("token")||"",[n,s]=E.useState(!1),[i,o]=E.useState(""),l=ee.newsletter.unsubscribe.useMutation({onSuccess:d=>{o(d.email),s(!0)}});return E.useEffect(()=>{r&&!n&&!l.isPending&&l.mutate({token:r})},[r]),a.jsx("div",{"data-loc":"client/src/pages/UnsubscribePage.tsx:28",style:{background:"#000",minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",padding:"2rem"},children:a.jsx("div",{"data-loc":"client/src/pages/UnsubscribePage.tsx:29",style:{maxWidth:"480px",width:"100%",textAlign:"center"},children:r?l.isPending?a.jsxs(a.Fragment,{children:[a.jsx(DP,{"data-loc":"client/src/pages/UnsubscribePage.tsx:39",size:40,style:{color:"#2c7df7",margin:"0 auto 1rem",animation:"spin 1s linear infinite"}}),a.jsx("h1",{"data-loc":"client/src/pages/UnsubscribePage.tsx:40",style:{fontSize:"1.5rem",fontWeight:900,color:"#fff",margin:0},children:"Unsubscribingâ¦"})]}):l.isError?a.jsxs(a.Fragment,{children:[a.jsx(ru,{"data-loc":"client/src/pages/UnsubscribePage.tsx:44",size:48,style:{color:"#ef4444",margin:"0 auto 1rem"}}),a.jsx("h1",{"data-loc":"client/src/pages/UnsubscribePage.tsx:45",style:{fontSize:"1.5rem",fontWeight:900,color:"#fff",margin:"0 0 0.5rem"},children:"Link Expired"}),a.jsx("p",{"data-loc":"client/src/pages/UnsubscribePage.tsx:46",style:{color:"rgba(255,255,255,0.5)",marginBottom:"1.5rem"},children:"This unsubscribe link is invalid or has already been used."}),a.jsx($,{"data-loc":"client/src/pages/UnsubscribePage.tsx:47",href:"/",style:{color:"#2c7df7",textDecoration:"none",fontWeight:700},children:"â Back to XTZ.News"})]}):a.jsxs(a.Fragment,{children:[a.jsx(ja,{"data-loc":"client/src/pages/UnsubscribePage.tsx:51",size:48,style:{color:"#22c55e",margin:"0 auto 1rem"}}),a.jsx("h1",{"data-loc":"client/src/pages/UnsubscribePage.tsx:52",style:{fontSize:"1.5rem",fontWeight:900,color:"#fff",margin:"0 0 0.5rem"},children:"Unsubscribed"}),a.jsxs("p",{"data-loc":"client/src/pages/UnsubscribePage.tsx:53",style:{color:"rgba(255,255,255,0.55)",marginBottom:"0.5rem"},children:[a.jsx("strong",{"data-loc":"client/src/pages/UnsubscribePage.tsx:54",style:{color:"#fff"},children:i})," has been removed from the XTZ.News newsletter."]}),a.jsxs("p",{"data-loc":"client/src/pages/UnsubscribePage.tsx:56",style:{color:"rgba(255,255,255,0.35)",fontSize:"0.85rem",marginBottom:"1.5rem"},children:["Changed your mind?"," ",a.jsx($,{"data-loc":"client/src/pages/UnsubscribePage.tsx:58",href:`/manage-subscriptions?token=${r}`,style:{color:"#2c7df7",textDecoration:"none"},children:"Re-subscribe or manage preferences"})]}),a.jsx($,{"data-loc":"client/src/pages/UnsubscribePage.tsx:62",href:"/",style:{color:"#2c7df7",textDecoration:"none",fontWeight:700},children:"â Back to XTZ.News"})]}):a.jsxs(a.Fragment,{children:[a.jsx(ru,{"data-loc":"client/src/pages/UnsubscribePage.tsx:32",size:48,style:{color:"#ef4444",margin:"0 auto 1rem"}}),a.jsx("h1",{"data-loc":"client/src/pages/UnsubscribePage.tsx:33",style:{fontSize:"1.5rem",fontWeight:900,color:"#fff",margin:"0 0 0.5rem"},children:"Invalid Link"}),a.jsx("p",{"data-loc":"client/src/pages/UnsubscribePage.tsx:34",style:{color:"rgba(255,255,255,0.5)",marginBottom:"1.5rem"},children:"This unsubscribe link is missing a token. Please use the link from your email."}),a.jsx($,{"data-loc":"client/src/pages/UnsubscribePage.tsx:35",href:"/",style:{color:"#2c7df7",textDecoration:"none",fontWeight:700},children:"â Back to XTZ.News"})]})})})}function N4e(){const e=As(),r=new URLSearchParams(e).get("token")||"",[n,s]=E.useState(!1),[i,o]=E.useState(!1),[l,d]=E.useState("active"),[u,g]=E.useState(!1),{data:f,isLoading:m,error:y}=ee.newsletter.getPreferences.useQuery({token:r},{enabled:!!r});E.useEffect(()=>{f&&(s(f.govAlerts??!1),o(f.eventsOnly??!1),d(f.status))},[f]);const S=ee.newsletter.updatePreferences.useMutation({onSuccess:()=>{g(!0),Ee.success("Preferences saved!"),setTimeout(()=>g(!1),3e3)},onError:v=>{Ee.error(v.message||"Failed to save preferences.")}}),b=()=>{S.mutate({token:r,govAlerts:n,eventsOnly:i,status:l})};return r?a.jsx("div",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:59",style:{background:"#000",minHeight:"100vh",padding:"4rem 1rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:60",style:{maxWidth:"520px",margin:"0 auto"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:62",style:{textAlign:"center",marginBottom:"2rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:63",style:{width:"52px",height:"52px",background:"rgba(44,125,247,0.2)",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 1rem"},children:a.jsx(di,{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:64",size:24,style:{color:"#2c7df7"}})}),a.jsx("h1",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:66",style:{fontSize:"1.8rem",fontWeight:900,color:"#fff",margin:"0 0 0.4rem"},children:"Manage Subscriptions"}),a.jsx("p",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:67",style:{color:"rgba(255,255,255,0.45)",fontSize:"0.9rem",margin:0},children:"Choose what you'd like to receive from XTZ.News"})]}),m?a.jsx("div",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:73",style:{textAlign:"center",padding:"3rem"},children:a.jsx(DP,{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:74",size:32,style:{color:"#2c7df7",margin:"0 auto",animation:"spin 1s linear infinite"}})}):y?a.jsxs("div",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:77",style:{textAlign:"center",padding:"2rem",background:"#05152e",borderRadius:"10px",border:"1px solid rgba(239,68,68,0.3)"},children:[a.jsx(ru,{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:78",size:32,style:{color:"#ef4444",margin:"0 auto 0.75rem"}}),a.jsx("p",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:79",style:{color:"rgba(255,255,255,0.6)",margin:0}
1118,children:"This link is invalid or has expired. Please use the link from your most recent email."})]}):f?a.jsxs("div",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:82",style:{background:"#05152e",border:"1px solid rgba(44,125,247,0.2)",borderRadius:"12px",overflow:"hidden"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:84",style:{padding:"1.25rem 1.5rem",borderBottom:"1px solid rgba(255,255,255,0.07)",display:"flex",alignItems:"center",gap:"0.75rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:85",style:{width:"36px",height:"36px",background:"rgba(44,125,247,0.15)",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:a.jsx(di,{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:86",size:16,style:{color:"#2c7df7"}})}),a.jsxs("div",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:88",children:[a.jsx("div",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:89",style:{fontSize:"0.72rem",fontWeight:700,color:"rgba(255,255,255,0.4)",textTransform:"uppercase",letterSpacing:"0.06em",marginBottom:"0.2rem"},children:"Subscribed email"}),a.jsx("div",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:90",style:{fontWeight:700,color:"#fff",fontSize:"0.9rem"},children:f.email})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:95",style:{padding:"1.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:96",style:{marginBottom:"1rem"},children:[a.jsx("h3",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:97",style:{fontSize:"0.78rem",fontWeight:800,color:"rgba(255,255,255,0.4)",textTransform:"uppercase",letterSpacing:"0.08em",margin:"0 0 0.75rem"},children:"Email Preferences"}),a.jsx("div",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:100",style:{marginBottom:"0.75rem"},children:a.jsxs("label",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:101",style:{display:"flex",alignItems:"flex-start",gap:"0.75rem",cursor:"pointer",padding:"0.9rem 1rem",background:l==="active"?"rgba(34,197,94,0.06)":"rgba(255,255,255,0.03)",border:`1px solid ${l==="active"?"rgba(34,197,94,0.2)":"rgba(255,255,255,0.08)"}`,borderRadius:"8px",transition:"all 0.15s"},children:[a.jsx("div",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:102",onClick:()=>d(v=>v==="active"?"unsubscribed":"active"),style:{width:"20px",height:"20px",borderRadius:"4px",flexShrink:0,marginTop:"1px",border:`2px solid ${l==="active"?"#22c55e":"rgba(255,255,255,0.2)"}`,background:l==="active"?"#22c55e":"transparent",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.15s",cursor:"pointer"},children:l==="active"&&a.jsx("svg",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:106",width:"11",height:"9",viewBox:"0 0 11 9",fill:"none",children:a.jsx("path",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:107",d:"M1 4.5L4 7.5L10 1",stroke:"#fff",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),a.jsxs("div",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:111",children:[a.jsxs("div",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:112",style:{display:"flex",alignItems:"center",gap:"0.4rem",marginBottom:"0.2rem"},children:[a.jsx(iA,{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:113",size:14,style:{color:l==="active"?"#22c55e":"rgba(255,255,255,0.4)"}}),a.jsx("span",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:114",style:{fontWeight:700,color:l==="active"?"#fff":"rgba(255,255,255,0.5)",fontSize:"0.88rem"},children:"Monthly Digest"})]}),a.jsx("p",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:116",style:{fontSize:"0.75rem",color:"rgba(255,255,255,0.4)",margin:0,lineHeight:1.5},children:"Top Tezos stories from the previous calendar month, delivered on the first of each month."})]})]})}),a.jsx("div",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:124",style:{marginBottom:"0.75rem"},children:a.jsxs("label",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:125",style:{display:"flex",alignItems:"flex-start",ga
1118p:"0.75rem",cursor:"pointer",padding:"0.9rem 1rem",background:i?"rgba(153,246,228,0.06)":"rgba(255,255,255,0.03)",border:`1px solid ${i?"rgba(153,246,228,0.25)":"rgba(255,255,255,0.08)"}`,borderRadius:"8px",transition:"all 0.15s"},children:[a.jsx("input",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:126",type:"checkbox",checked:i,onChange:v=>o(v.target.checked),"aria-label":"Receive the events-only monthly digest",style:{width:"20px",height:"20px",accentColor:"#2dd4bf",cursor:"pointer",flexShrink:0,marginTop:"1px"}}),a.jsxs("div",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:133",children:[a.jsxs("div",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:134",style:{display:"flex",alignItems:"center",gap:"0.4rem",marginBottom:"0.2rem"},children:[a.jsx(Fa,{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:135",size:14,style:{color:i?"#99f6e4":"rgba(255,255,255,0.4)"}}),a.jsx("span",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:136",style:{fontWeight:700,color:i?"#fff":"rgba(255,255,255,0.5)",fontSize:"0.88rem"},children:"Events-only Monthly Digest"})]}),a.jsx("p",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:138",style:{fontSize:"0.75rem",color:"rgba(255,255,255,0.4)",margin:0,lineHeight:1.5},children:"Receive the same monthly send with verified past and upcoming Tezos events, without the news-story list. No edition is sent if there are no confirmed event listings."})]})]})}),a.jsx("div",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:146",children:a.jsxs("label",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:147",style:{display:"flex",alignItems:"flex-start",gap:"0.75rem",cursor:"pointer",padding:"0.9rem 1rem",background:n?"rgba(44,125,247,0.06)":"rgba(255,255,255,0.03)",border:`1px solid ${n?"rgba(44,125,247,0.2)":"rgba(255,255,255,0.08)"}`,borderRadius:"8px",transition:"all 0.15s"},children:[a.jsx("div",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:148",onClick:()=>s(v=>!v),style:{width:"20px",height:"20px",borderRadius:"4px",flexShrink:0,marginTop:"1px",border:`2px solid ${n?"#2c7df7":"rgba(255,255,255,0.2)"}`,background:n?"#2c7df7":"transparent",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.15s",cursor:"pointer"},children:n&&a.jsx("svg",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:152",width:"11",height:"9",viewBox:"0 0 11 9",fill:"none",children:a.jsx("path",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:153",d:"M1 4.5L4 7.5L10 1",stroke:"#fff",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),a.jsxs("div",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:157",children:[a.jsxs("div",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:158",style:{display:"flex",alignItems:"center",gap:"0.4rem",marginBottom:"0.2rem"},children:[a.jsx(l0,{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:159",size:14,style:{color:n?"#2c7df7":"rgba(255,255,255,0.4)"}}),a.jsx("span",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:160",style:{fontWeight:700,color:n?"#fff":"rgba(255,255,255,0.5)",fontSize:"0.88rem"},children:"Governance Alerts"}),a.jsx("span",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:161",style:{fontSize:"0.6rem",fontWeight:700,padding:"1px 5px",borderRadius:"3px",background:"rgba(44,125,247,0.15)",color:"#2c7df7",textTransform:"uppercase",letterSpacing:"0.06em"},children:"New"})]}),a.jsx("p",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:163",style:{fontSize:"0.75rem",color:"rgba(255,255,255,0.4)",margin:0,lineHeight:1.5},children:"Get notified when a new Tezos protocol upgrade proposal enters the voting phase."})]})]})})]}),a.jsx("button",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:172",onClick:b,disabled:S.isPending,style:{width:"100%",padding:"0.85rem",background:u?"#22c55e":"#2c7df7",border:"none",borderRadius:"8px",color:"#fff",fontWeight:700,fontSize:"0.9rem",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:"0.5rem",transition:"background 0.2s",fontFamily:"inherit"},onMouseEnter:v=>{u||(v.currentTarget.style.background="#1a6ae0")},onMouseLeave:v=>{u||(v.currentTarget.style.background="#2c7df7")},children:S.isPending?a.jsxs(a.Fragment,{children:[a.jsx(DP,{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:180",size:16,style:{animation:"spin 1s linear infinite"}})," Savingâ¦"]}):u?a.jsxs(a.Fragment,{children:[a.jsx(ja,{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:182",size:16})," Saved!"]}):a.jsxs(a.Fragment,{children:[a.jsx(nh,{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:184",size:16})," Save Preferences"]})}),a.jsx("div",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:189",style:{textAlign:"center",marginTop:"1rem"},children:a.jsx("button",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:190",onClick:()=>{d("unsubscribed"),setTimeout(b,0)},style:{background:"none",border:"none",cursor:"pointer",color:"rgba(255,255,255,0.3)",fontSize:"0.78rem",textDecoration:"underline",fontFamily:"inherit"},onMouseEnter:v=>v.currentTarget.style.color="rgba(239,68,68,0.7)",onMouseLeave:v=>v.currentTarget.style.color="rgba(255,255,255,0.3)",children:"Unsubscribe from all emails"})})]})]}):null,a.jsx("div",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:203",style:{textAlign:"center",marginTop:"1.5rem"},children:a.jsx($,{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:204",href:"/",style:{color:"rgba(255,255,255,0.4)",textDecoration:"none",fontSize:"0.82rem"},children:"â Back to XTZ.News"})})]})}):a.jsx("div",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:47",style:{background:"#000",minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",padding:"2rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:48",style:{textAlign:"center"},children:[a.jsx(ru,{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:49",size:48,style:{color:"#ef4444",margin:"0 auto 1rem"}}),a.jsx("h1",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:50",style:{fontSize:"1.5rem",fontWeight:900,color:"#fff",margin:"0 0 0.5rem"},children:"Invalid Link"}),a.jsx("p",{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:51",style:{color:"rgba(255,255,255,0.5)",marginBottom:"1.5rem"},children:"Please use the link from your email to manage your subscriptions."}),a.jsx($,{"data-loc":"client/src/pages/ManageSubscriptionsPage.tsx:52",href:"/",style:{color:"#2c7df7",textDecoration:"none",fontWeight:700},children:"â Back to XTZ.News"})]})})}function kx(e,t=2){return e>=1e6?`${(e/1e6).toFixed(2)}M ê©`:e>=1e3?`${(e/1e3).toFixed(1)}K ê©`:`${e.toFixed(t)} ê©`}function R4e(e){return e>=1e9?`$${(e/1e9).toFixed(2)}B`:e>=1e6?`$${(e/1e6).toFixed(2)}
1118M`:`$${e.toLocaleString("en-US",{maximumFractionDigits:2})}`}function qk(e){const t=Math.floor((Date.now()-new Date(e).getTime())/1e3);return t<60?`${t}s ago`:t<3600?`${Math.floor(t/60)}m ago`:t<86400?`${Math.floor(t/3600)}h ago`:`${Math.floor(t/86400)}d ago`}function cg(e,t=8){return e?`${e.slice(0,t)}...${e.slice(-4)}`:""}function D4e(){const{data:e=[],isLoading:t}=ee.explorer.upgradeHistory.useQuery(void 0,{staleTime:36e5}),[r,n]=E.useState(""),[s,i]=E.useState("epoch"),[o,l]=E.useState("desc"),d={"Athens A":"#8b5cf6",Babylon:"#ec4899",Carthage:"#f97316",Delphi:"#06b6d4",Edo:"#10b981",Florence:"#f59e0b",Granada:"#22c55e",Hangzhou:"#2c7df7",Ithaca:"#8b5cf6",Jakarta:"#ec4899",Kathmandu:"#f97316",Lima:"#06b6d4",Mumbai:"#10b981",Nairobi:"#f59e0b",Oxford:"#22c55e",Paris:"#2c7df7",Quebec:"#8b5cf6",Rio:"#ec4899",Seoul:"#f97316",Tallinn:"#06b6d4"},u=E.useMemo(()=>{let f=[...e];if(r.trim()){const m=r.toLowerCase();f=f.filter(y=>(y.name||"").toLowerCase().includes(m)||y.proposalHash.toLowerCase().includes(m)||String(y.epoch).includes(m))}return f.sort((m,y)=>{const S=s==="epoch"?m.epoch:s==="upvotes"?m.upvotes:m.activationLevel??0,b=s==="epoch"?y.epoch:s==="upvotes"?y.upvotes:y.activationLevel??0;return o==="desc"?b-S:S-b}),f},[e,r,s,o]);function g(f){s===f?l(m=>m==="desc"?"asc":"desc"):(i(f),l("desc"))}return a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:73",style:{marginBottom:"1.75rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:74",style:{display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:"0.75rem",marginBottom:"0.75rem"},children:[a.jsxs("h2",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:75",style:{fontSize:"0.82rem",fontWeight:800,color:"rgba(255,255,255,0.5)",textTransform:"uppercase",letterSpacing:"0.08em",margin:0,display:"flex",alignItems:"center",gap:"0.4rem"},children:[a.jsx(ko,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:76",size:13,style:{color:"#f59e0b"}})," Protocol Upgrade History",a.jsxs("span",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:77",style:{fontWeight:400,color:"rgba(255,255,255,0.25)",textTransform:"none",letterSpacing:0,fontSize:"0.7rem"},children:["â ",e.length," upgrades"]})]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:80",style:{position:"relative"},children:[a.jsx(ft,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:81",size:12,style:{position:"absolute",left:"0.6rem",top:"50%",transform:"translateY(-50%)",color:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),a.jsx("input",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:82",value:r,onChange:f=>n(f.target.value),placeholder:"Search protocol or hashâ¦",style:{padding:"0.45rem 0.75rem 0.45rem 2rem",background:"#05152e",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"5px",color:"#fff",fontSize:"0.78rem",outline:"none",fontFamily:"inherit",width:"220px",transition:"border-color 0.15s"},onFocus:f=>f.currentTarget.style.borderColor="#2c7df7",onBlur:f=>f.currentTarget.style.borderColor="rgba(255,255,255,0.1)"})]})]}),t?a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:92",style:{display:"flex",flexDirection:"column",gap:"0.5rem"},children:Array.from({length:5}).map((f,m)=>a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:94",className:"skeleton",style:{height:"44px",borderRadius:"6px"}},m))}):a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:98",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"8px",overflow:"hidden"},children:a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:99",style:{overflowX:"auto"},children:a.jsxs("table",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:100",style:{width:"100%",borderCollapse:"collapse",fontSize:"0.78rem"},children:[a.jsx("thead",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:101",children:a.jsxs("tr",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:102",style:{borderBottom:"1px solid rgba(255,255,255,0.08)"},children:[a.jsx("th",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:103",style:{padding:"0.6rem 1rem",textAlign:"left",fontWeight:700,color:"rgba(255,255,255,0.35)",fontSize:"0.62rem",textTransform:"uppercase",letterSpacing:"0.07em"},children:"Protocol"}),a.jsx("th",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:104",style:{padding:"0.6rem 1rem",textAlign:"left",fontWeight:700,color:"rgba(255,255,255,0.35)",fontSize:"0.62rem",textTransform:"uppercase",letterSpacing:"0.07em"},children:"Proposal Hash"}),["level","epoch","upvotes"].map(f=>a.jsx("th",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:106",onClick:()=>g(f),style:{padding:"0.6rem 1rem",textAlign:"left",fontWeight:700,fontSize:"0.62rem",textTransform:"uppercase",letterSpacing:"0.07em",curs
1118or:"pointer",whiteSpace:"nowrap",color:s===f?"#2c7df7":"rgba(255,255,255,0.35)",userSelect:"none"},children:a.jsxs("span",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:108",style:{display:"inline-flex",alignItems:"center",gap:"0.2rem"},children:[f==="level"?"Activation Level":f.charAt(0).toUpperCase()+f.slice(1),s===f?o==="desc"?a.jsx(yi,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:110",size:10}):a.jsx(Jf,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:110",size:10}):a.jsx(fy,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:110",size:9,style:{opacity:.4}})]})},f)),a.jsx("th",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:114",style:{padding:"0.6rem 1rem"}})]})}),a.jsx("tbody",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:117",children:u.length===0?a.jsx("tr",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:119",children:a.jsx("td",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:119",colSpan:6,style:{padding:"2rem",textAlign:"center",color:"rgba(255,255,255,0.3)"},children:"No upgrades match your search."})}):u.map((f,m)=>{const y=d[f.name]??"#2c7df7",S=m===0&&o==="desc"&&s==="epoch";return a.jsxs("tr",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:125",style:{borderBottom:m<u.length-1?"1px solid rgba(255,255,255,0.04)":"none",transition:"background 0.15s",background:S?"rgba(44,125,247,0.04)":"transparent"},onMouseEnter:b=>b.currentTarget.style.background=S?"rgba(44,125,247,0.08)":"rgba(255,255,255,0.02)",onMouseLeave:b=>b.currentTarget.style.background=S?"rgba(44,125,247,0.04)":"transparent",children:[a.jsx("td",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:128",style:{padding:"0.6rem 1rem",whiteSpace:"nowrap"},children:f.name?a.jsxs("span",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:130",style:{display:"inline-flex",alignItems:"center",gap:"0.4rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:131",style:{width:"8px",height:"8px",borderRadius:"50%",background:y,flexShrink:0}}),a.jsx("span",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:132",style:{fontWeight:800,color:"#fff"},children:f.name}),S&&a.jsx("span",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:134",style:{fontSize:"0.58rem",fontWeight:800,padding:"1px 6px",borderRadius:"3px",background:"rgba(34,197,94,0.15)",color:"#22c55e",textTransform:"uppercase",letterSpacing:"0.08em",border:"1px solid rgba(34,197,94,0.3)"},children:"Active"})]}):a.jsxs("span",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:138",style:{color:"rgba(255,255,255,0.35)",fontFamily:"monospace",fontSize:"0.72rem"},children:[f.proposalHash.slice(0,12),"â¦"]})}),a.jsx("td",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:141",style:{padding:"0.6rem 1rem"},children:a.jsxs("span",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:142",style:{fontFamily:"monospace",fontSize:"0.7rem",color:"rgba(255,255,255,0.4)"},children:[f.proposalHash.slice(0,16),"â¦"]})}),a.jsx("td",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:144",style:{padding:"0.6rem 1rem",color:"rgba(255,255,255,0.6)",fontWeight:600},children:f.activationLevel?f.activationLevel.toLocaleString():"â"}),a.jsxs("td",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:147",style:{padding:"0.6rem 1rem",color:"rgba(255,255,255,0.4)"},children:["#",f.epoch]}),a.jsx("td",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:148",style:{padding:"0.6rem 1rem",color:"rgba(255,255,255,0.6)"},children:f.upvotes}),a.jsx("td",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:149",style:{padding:"0.6rem 1rem"},children:a.jsxs("a",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:150",href:`https://tzkt.io/protocols/${f.proposalHash}`,target:"_blank",rel:"nofollow noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.25rem",fontSize:"0.68rem",color:"rgba(255,255,255,0.3)",textDecoration:"none"},onMouseEnter:b=>b.currentTarget.style.color="rgba(255,255,255,0.7)",onMouseLeave:b=>b.currentTarget.style.color="rgba(255,255,255,0.3)",children:[a.jsx(ve,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:154",size:10})," TzKT"]})})]},f.epoch)})})]})})})]})}function _4e(){Ie({title:"Tezos Blockchain Explorer | XTZ.News â Blocks, Transactions & Addresses",description:"Explore the Tezos blockchain live. Search blocks, transactions, addresses, bakers, and token transfers on the XTZ.News Tezos explorer.",keywords:"Tezos explorer, Tezos blockchain explorer, XTZ explorer, Tezos blocks, Tezos transactions, Tezos address lookup",canonical:"https://xtz.news/explorer",jsonLd:[ka({title:"Tezos Blockchain Explorer",description:"Explore the Tezos blockchain live. Search blocks, transactions, addresses, bakers, and token transfers.",url:"https://xtz.news/explorer",breadcrumbs:[{name:"Home",url:"https://xtz.news"},{name:"Explorer",url:"https://xtz.news/explorer"}]}),Pa([{question:"What is a Tezos block explorer?",answer:"A Tezos block explorer is a tool that lets you view and search all public data on the Tezos blockchain, including blocks, transactions, wallet addresses, smart contracts, and token transfers. The XTZ.News Explorer shows live Tezos data including the current block height, XTZ price, active bakers, and recent transactions."},{question:"How do I look up a Tezos transaction?",answer:"To look up a Tezos transaction, paste the operation hash (starting with 'o') into the XTZ.News Explorer search bar. You can also search by block level (a number), block hash (starting with 'B'), or wallet address (starting with tz1, tz2, tz3, or KT1)."},{question:"What is a Tezos block?",answer:"A Tezos block is a batch of validated transactions added to the Tezos blockchain approximately every 6 seconds. Each block has a unique hash, level (block number), timestamp, and contains all operations (transactions, delegations, originations) included by the baker who created it."}
1118,{question:"What is a Tezos baker?",answer:"A Tezos baker is a node operator who validates transactions and creates new blocks on the Tezos blockchain. Bakers must hold or have delegated to them a minimum amount of XTZ (baking power). In return, they earn baking rewards that are shared with their delegators. There are currently over 300 active bakers on Tezos."},{question:"What is a Tezos cycle?",answer:"A Tezos cycle is a fixed period of 14,400 blocks (approximately 2.8 days at 6 seconds per block). Cycles are used to calculate baking rights, distribute rewards, and govern the Tezos protocol voting process. Staking rewards are distributed at the end of each cycle."},{question:"How do I search for a Tezos address?",answer:"Enter any Tezos address (tz1, tz2, tz3 for user accounts, or KT1 for smart contracts) in the XTZ.News Explorer search bar. You'll see the account balance, transaction history, delegation status, and for bakers, their staking balance and number of delegators."}])]});const[,e]=Sa(),[t,r]=E.useState(""),[n,s]=E.useState(!0),[i,o]=E.useState("dashboard"),[l,d]=E.useState("all"),[u,g]=E.useState(!1),f=E.useRef(null),{data:m,isLoading:y}=ee.explorer.governance.useQuery(void 0,{staleTime:5*6e4,enabled:i==="governance"}),{data:S,refetch:b}=ee.explorer.networkStats.useQuery(void 0,{staleTime:3e4,refetchInterval:n?3e4:!1}),{data:v=[],refetch:j}=ee.explorer.latestBlocks.useQuery({limit:10},{staleTime:15e3,refetchInterval:n?15e3:!1}),{data:k=[],refetch:P}=ee.explorer.latestTransactions.useQuery({limit:10},{staleTime:15e3,refetchInterval:n?15e3:!1}),{data:O=[]}=ee.explorer.tokenTransfers.useQuery({limit:8},{staleTime:3e4,refetchInterval:n?3e4:!1}),T=async A=>{A.preventDefault();const N=t.trim();if(N){if(/^\d+$/.test(N)){e(`/explorer/block/${N}`);return}if(N.startsWith("B")&&N.length>30){e(`/explorer/block/${N}`);return}if(N.startsWith("o")&&N.length>30){e(`/explorer/tx/${N}`);return}if(/^(tz1|tz2|tz3|KT1)/.test(N)){e(`/explorer/address/${N}`);return}alert("Unknown search query. Try a block level, tx hash, or address.")}},C=S?[{label:"Block Height",value:S.level.toLocaleString(),icon:a.jsx(pg,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:230",size:18}),color:"#2c7df7"},{label:"Cycle",value:S.cycle.toLocaleString(),icon:a.jsx(Fd,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:231",size:18}),color:"#8b5cf6"},{label:"XTZ Price",value:`$${S.xtzUsd.toFixed(4)}`,sub:`${S.priceChange24h>=0?"+":""}${S.priceChange24h.toFixed(2)}% 24h`,subColor:S.priceChange24h>=0?"#22c55e":"#ef4444",icon:S.priceChange24h>=0?a.jsx(cr,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:232",size:18}):a.jsx(Ha,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:232",size:18}),color:S.priceChange24h>=0?"#22c55e":"#ef4444"},{label:"Market Cap",value:R4e(S.marketCap),icon:a.jsx(cr,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:233",size:18}),color:"#f59e0b"},{label:"Total Supply",value:kx(S.totalSupply,0),icon:a.jsx(ko,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:234",size:18}),color:"#06b6d4"},{label:"Circulating",value:kx(S.circulatingSupply,0),icon:a.jsx(ko,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:235",size:18}),color:"#10b981"},{label:"Active Bakers",value:S.totalBakers.toLocaleString(),icon:a.jsx(ec,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:236",size:18}),color:"#f97316"},{label:"Delegators",value:S.totalDelegators.toLocaleString(),icon:a.jsx(su,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:237",size:18}),color:"#ec4899"}]:[];return a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:241",style:{background:"#000",minHeight:"100vh"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:243",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",borderBottom:"1px solid rgba(44,125,247,0.2)",padding:"3rem 0 2.5rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:244",className:"container",children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:245",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginBottom:"1rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:246",style:{width:"8px",height:"8px",borderRadius:"50%",background:"#22c55e",animation:"pulse 2s infinite"}}),a.jsx("span",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:247",style:{fontSize:"0.7rem",fontWeight:700,color:"rgba(255,255,255,0.5)",textTransform:"uppercase",letterSpacing:"0.1em"},children:"Live · Tezos Mainnet"}),a.jsxs("button",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:248",onClick:()=>{b(),j(),P()},style:{marginLeft:"auto",background:"transparent",border:"1px solid rgba(255,255,255,0.15)",borderRadius:"4px",padding:"0.3rem 0.75rem",color:"rgba(255,255,255,0.5)",fontSize:"0.7rem",cursor:"pointer",display:"flex",alignItems:"center",gap:"0.3rem"},children:[a.jsx(Fd,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:249",size:11})," Refresh"]})]}),a.jsx("h1",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:252",style:{fontSize:"clamp(1.8rem, 4vw, 2.8rem)",fontWeight:900,color:"#fff",margin:"0 0 0.5rem",lineHeight:1.1},children:"Tezos Explorer"}),a.jsx("p",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:255",style:{fontSize:"0.9rem",color:"rgba(255,255,255,0.5)",margin:"0 0 2rem"},children:"Search blocks, transactions, addresses, and bakers on the Tezos blockchain"}),a.jsxs("form",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:259",onSubmit:T,style:{display:"flex",gap:"0",maxWidth:"680px"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:260",style:{flex:1,position:"relative"},children:[a.jsx(ft,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:261",size:16,style:{position:"absolute",left:"1rem",top:"50%",transform:"translateY(-50%)",color:"rgba(255,255,255,0.4)",pointerEvents:"none"}}),a.jsx("input",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:262",ref:f,value:t,onChange:A=>r(A.target.value),placeholder:"Block level, tx hash (o...), address (tz1/KT1), baker...",style:{width:"100%",padding:"0.875rem 1rem 0.875rem 2.75rem",background:"rgba(255,255,255,0.07)",border:"1px solid rgba(255,255,255,0.15)",borderRight:"none",borderRadius:"4px 0 0 4px",color:"#fff",fontSize:"0.9rem",outline:"none",fontFamily:"inherit"},onFocus:A=>A.currentTarget.style.borderColor="#2c7df7",onBlur:A=>A.currentTarget.style.borderColor="rgba(255,255,255,0.15)"})]}),a.jsx("button",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:272",type:"submit",style:{padding:"0 1.5rem",background:"#2c7df7",border:"none",borderRadius:"0 4px 4px 0",color:"#fff",fontWeight:700,fontSize:"0.85rem",cursor:"pointer",whiteSpace:"nowrap"},children:"Search"})]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:277",style:{display:"flex",flexWrap:"wrap",gap:"0.75rem",marginTop:"1.5rem",marginBottom:"0.5rem"},children:[a.jsx("iframe",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:278",src:"https://tezos.systems/widgets/combo.html?theme=abyss&accent=2c7df7",width:"500",height:"140",frameBorder:0,scrolling:"no",title:"Tezos network stats",style:{borderRadius:"8px",border:"none",display:"block"}}),a.jsx("iframe",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:279",src:"https://tezos.systems/widgets/block-height.html?theme=abyss&accent=2c7df7",width:"260",height:"140",frameBorder:0,scrolling:"no",title:"Block height",style:{borderRadius:"8px",border:"none",display:"block"}}),a.jsx("iframe",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:280",src:"https://tezos.systems/widgets/staking-ratio.html?theme=abyss&accent=2c7df7",width:"260",height:"140",frameBorder:0,scrolling:"no",title:"Staking ratio",style:{borderRadius:"8px",border:"none",display:"block"}})]}),a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:283",style:{display:"flex",flexWrap:"wrap",gap:"0.5rem",marginTop:"1rem"},children:[{label:"Latest Blocks",href:"/explorer"},{label:"Baker Leaderboard",href:"/explorer/bakers"},{label:"Token Transfers",href:"/explorer"}].map(A=>a.jsx($,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:289",href:A.href,style:{fontSize:"0.72rem",fontWeight:600,color:"rgba(255,255,255,0.45)",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"20px",padding:"0.25rem 0.75rem",textDecoration:"none",transition:"all 0.2s"},onMouseEnter:N=>{N.currentTarget.style.color="#fff",N.currentTarget.style.borderColor="rgba(44,125,247,0.4)"},onMouseLeave:N=>{N.currentTarget.style.color="rgba(255,255,255,0.45)",N.currentTarget.style.borderColor="rgba(255,255,255,0.1)"},children:A.label},A.href))}),a.jsx(Ly,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:296",context:"explorer"})]})}),a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:301",style:{background:"#05152e",borderBottom:"1px solid rgba(255,255,255,0.07)"},children:a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:302",className:"container",style:{display:"flex",gap:0},children:[{id:"dashboard",label:"Dashboard",icon:a.jsx(pg,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:304",size:13})},{id:"governance",label:"Governance",icon:a.jsx(l0,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:305",size:13})}].map(A=>a.jsxs("button",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:307",onClick:()=>o(A.id),style:{padding:"0.7rem 1.25rem",background:"transparent",border:"none",borderBottom:`2px solid ${i===A.id?"#2c7df7":"transparent"}`,color:i===A.id?"#2c7df7":"rgba(255,255,255,0.45)",fontWeight:i===A.id?700:500,fontSize:"0.82rem",cursor:"pointer",display:"flex",alignItems:"center",gap:"0.4rem",transition:"color 0.15s, border-color 0.15s"},children:[A.icon," ",A.label]},A.id))})}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:315",className:"container",style:{padding:"2rem 1.25rem"},children:[i==="governance"&&a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:319",children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:321",style:{display:"flex",flexWrap:"wrap",gap:"0.75rem",marginBottom:"1.5rem"},children:[a.jsx("iframe",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:322",src:"https://tezos.systems/widgets/governance.html?theme=abyss&accent=2c7df7",width:"360",height:"180",frameBorder:0,scrolling:"no",title:"Tezos governance",style:{borderRadius:"8px",border:"none",display:"block"}}),a.jsx("iframe",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:323",src:"https://tezos.systems/widgets/protocol.html?theme=abyss&accent=2c7df7",width:"360",height:"180",frameBorder:0,scrolling:"no",title:"Tezos protocol",style:{borderRadius:"8px",border:"none",display:"block"}}),a.jsx("iframe",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:324",src:"https://tezos.systems/widgets/baker-count.html?theme=abyss&accent=2c7df7",width:"260",height:"180",frameBorder:0,scrolling:"no",title:"Active bakers",style:{borderRadius:"8px",border:"none",display:"block"}})]}),y?a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:327",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(200px, 1fr))",gap:"0.75rem",marginBottom:"2rem"},children:Array.from({length:4}).map((A,N)=>a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:329",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"8px",padding:"1.25rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:330",className:"skeleton",style:{height:"10px",width:"60%",marginBottom:"8px"}}),a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:331",className:"skeleton",style:{height:"22px",width:"80%"}}
1118)]},N))}):m?a.jsxs(a.Fragment,{children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:338",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(200px, 1fr))",gap:"0.75rem",marginBottom:"1.75rem"},children:[{label:"Epoch",value:`#${m.epoch.index}`,sub:m.epoch.status.replace(/_/g," "),color:"#2c7df7"},{label:"Current Period",value:m.currentPeriod?.kind?.replace(/_/g," ")??"â",sub:m.currentPeriod?.status??"",color:m.currentPeriod?.status==="active"?"#22c55e":"#f59e0b"},{label:"Total Bakers",value:(m.currentPeriod?.totalBakers??0).toLocaleString(),sub:"eligible to vote",color:"#f97316"},{label:"Epoch Ends",value:m.epoch.endTime?new Date(m.epoch.endTime).toLocaleDateString():"â",sub:m.epoch.endTime?`${Math.max(0,Math.ceil((new Date(m.epoch.endTime).getTime()-Date.now())/864e5))} days left`:"",color:"#8b5cf6"}].map(A=>a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:345",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"8px",padding:"1rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:346",style:{fontSize:"0.62rem",fontWeight:700,color:"rgba(255,255,255,0.35)",textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:"0.4rem"},children:A.label}),a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:347",style:{fontSize:"1.15rem",fontWeight:900,color:A.color,textTransform:"capitalize"},children:A.value}),A.sub&&a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:348",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.35)",marginTop:"0.2rem",textTransform:"capitalize"},children:A.sub})]},A.label))}),m.proposals.length>0&&a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:355",style:{marginBottom:"1.75rem"},children:[a.jsxs("h2",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:356",style:{fontSize:"0.82rem",fontWeight:800,color:"rgba(255,255,255,0.5)",textTransform:"uppercase",letterSpacing:"0.08em",margin:"0 0 0.75rem",display:"flex",alignItems:"center",gap:"0.4rem"},children:[a.jsx(l0,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:357",size:13,style:{color:"#2c7df7"}})," Active Proposals"]}),a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:359",style:{display:"flex",flexDirection:"column",gap:"0.6rem"},children:m.proposals.map(A=>a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:361",style:{background:"#05152e",border:"1px solid rgba(44,125,247,0.2)",borderRadius:"8px",padding:"1rem 1.25rem",display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:"0.75rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:362",children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:363",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginBottom:"0.3rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:364",style:{fontSize:"0.65rem",fontWeight:800,padding:"2px 8px",borderRadius:"3px",background:A.status==="active"?"rgba(34,197,94,0.15)":"rgba(255,255,255,0.06)",color:A.status==="active"?"#22c55e":"rgba(255,255,255,0.4)",textTransform:"uppercase"},children:A.status}),A.initiator&&a.jsxs("span",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:365",style:{fontSize:"0.7rem",color:"rgba(255,255,255,0.4)"},children:["by ",A.initiator]})]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:367",style:{display:"flex",alignItems:"center",gap:"0.5rem",flexWrap:"wrap"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:368",style:{fontFamily:"monospace",fontSize:"0.78rem",color:"#2c7df7",wordBreak:"break-all"},children:A.hash}),a.jsxs("a",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:369",href:`https://research-development.nomadic-labs.com/tezos-protocol-${A.hash.slice(0,8).toLowerCase()}.html`,target:"_blank",rel:"nofollow noopener noreferrer",title:"View proposal documentation",style:{display:"inline-flex",alignItems:"center",gap:"0.25rem",fontSize:"0.68rem",color:"rgba(44,125,247,0.7)",textDecoration:"none",whiteSpace:"nowrap",flexShrink:0},onMouseEnter:N=>N.currentTarget.style.color="#2c7df7",onMouseLeave:N=>N.currentTarget.style.color="rgba(44,125,247,0.7)",children:[a.jsx(ve,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:377",size:10})," Docs"]}),a.jsxs("a",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:379",href:`https://tzkt.io/protocols/${A.hash}`,target:"_blank",rel:"nofollow noopener noreferrer",title:"View on TzKT",style:{display:"inline-flex",alignItems:"center",gap:"0.25rem",fontSize:"0.68rem",color:"rgba(255,255,255,0.3)",textDecoration:"none",whiteSpace:"nowrap",flexShrink:0},onMouseEnter:N=>N.currentTarget.style.color="rgba(255,255,255,0.6)",onMouseLeave:N=>N.currentTarget.style.color="rgba(255,255,255,0.3)",children:[a.jsx(ve,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:387",size:10})," TzKT"]})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:391",style:{textAlign:"right"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:392",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.4)",marginBottom:"0.2rem"},children:"Upvotes"}),a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:393",style:{fontSize:"1.1rem",fontWeight:900,color:"#fff"},children:A.upvotes}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:394",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.3)"},children:[kx(A.votingPower)," voting power"]})]})]},A.hash))})]}
1118),m.ballotPeriod&&a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:404",style:{marginBottom:"1.75rem"},children:[a.jsxs("h2",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:405",style:{fontSize:"0.82rem",fontWeight:800,color:"rgba(255,255,255,0.5)",textTransform:"uppercase",letterSpacing:"0.08em",margin:"0 0 0.75rem",display:"flex",alignItems:"center",gap:"0.4rem"},children:[a.jsx(cr,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:406",size:13,style:{color:"#22c55e"}})," ",m.ballotPeriod.kind.charAt(0).toUpperCase()+m.ballotPeriod.kind.slice(1)," Vote Results"]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:408",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"8px",padding:"1.25rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:410",style:{marginBottom:"1.25rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:411",style:{display:"flex",justifyContent:"space-between",marginBottom:"0.4rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:412",style:{display:"flex",alignItems:"center",gap:"0.4rem",position:"relative"},children:[a.jsx("span",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:413",style:{fontSize:"0.72rem",fontWeight:700,color:"rgba(255,255,255,0.5)"},children:"Baker Participation"}),a.jsx("button",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:414",onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),style:{background:"none",border:"none",cursor:"pointer",color:"rgba(255,255,255,0.3)",padding:0,display:"flex",alignItems:"center"},children:a.jsx(su,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:418",size:11})}),u&&a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:421",style:{position:"absolute",top:"calc(100% + 6px)",left:0,background:"#0d2a5e",border:"1px solid rgba(44,125,247,0.3)",borderRadius:"8px",padding:"0.75rem 1rem",width:"260px",zIndex:50,boxShadow:"0 8px 24px rgba(0,0,0,0.5)",fontSize:"0.72rem",color:"rgba(255,255,255,0.7)",lineHeight:1.6,pointerEvents:"none"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:422",style:{fontWeight:800,color:"#fff",marginBottom:"0.3rem"},children:"How the quorum works"}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:423",children:["The ",a.jsx("strong",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:423",style:{color:"#2c7df7"},children:"quorum"})," is the minimum percentage of total voting power that must cast a ballot for the vote to be valid. It is dynamically adjusted each period based on recent participation."]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:424",style:{marginTop:"0.4rem"},children:["Current quorum: ",a.jsxs("strong",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:424",style:{color:"#f59e0b"},children:[m.ballotPeriod?.ballotsQuorum??"?","%"]}),". Supermajority (Yay threshold): ",a.jsxs("strong",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:424",style:{color:"#22c55e"},children:[m.ballotPeriod?.supermajority??"?","%"]}),"."]})]})]}),a.jsxs("span",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:428",style:{fontSize:"0.82rem",fontWeight:900,color:m.ballotPeriod.participationPct!=null&&m.ballotPeriod.participationPct>=(m.ballotPeriod.ballotsQuorum??50)?"#22c55e":"#f59e0b"},children:[m.ballotPeriod.participationPct??"â","%",m.ballotPeriod.ballotsQuorum&&a.jsxs("span",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:430",style:{fontSize:"0.65rem",fontWeight:500,color:"rgba(255,255,255,0.35)",marginLeft:"0.35rem"},children:["quorum: ",m.ballotPeriod.ballotsQuorum,"%"]})]})]}),a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:433",style:{height:"8px",background:"rgba(255,255,255,0.08)",borderRadius:"4px",overflow:"hidden"},children:a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:434",style:{height:"100%",width:`${Math.min(100,m.ballotPeriod.participationPct??0)}%`,background:"#2c7df7",borderRadius:"4px",transition:"width 0.5s"}})}
1118),m.ballotPeriod.ballotsQuorum&&a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:437",style:{position:"relative",height:"4px"},children:a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:438",style:{position:"absolute",left:`${m.ballotPeriod.ballotsQuorum}%`,top:"-8px",width:"2px",height:"16px",background:"rgba(255,255,255,0.3)"}})})]}),a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:443",style:{display:"grid",gridTemplateColumns:"1fr 1fr 1fr",gap:"0.75rem"},children:[{label:"Yay",count:m.ballotPeriod.yayBallots,color:"#22c55e"},{label:"Nay",count:m.ballotPeriod.nayBallots,color:"#ef4444"},{label:"Pass",count:m.ballotPeriod.passBallots,color:"#f59e0b"}].map(A=>{const N=m.ballotPeriod.yayBallots+m.ballotPeriod.nayBallots+m.ballotPeriod.passBallots,M=N>0?Math.round(A.count/N*100):0;return a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:452",style:{textAlign:"center"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:453",style:{fontSize:"0.62rem",fontWeight:700,color:"rgba(255,255,255,0.35)",textTransform:"uppercase",marginBottom:"0.3rem"},children:A.label}),a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:454",style:{fontSize:"1.3rem",fontWeight:900,color:A.color},children:A.count}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:455",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.3)"},children:[M,"%"]}),a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:456",style:{height:"4px",background:"rgba(255,255,255,0.08)",borderRadius:"2px",marginTop:"0.3rem",overflow:"hidden"},children:a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:457",style:{height:"100%",width:`${M}%`,background:A.color,borderRadius:"2px"}})})]},A.label)})}),m.ballotPeriod.supermajority&&a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:464",style:{marginTop:"0.75rem",fontSize:"0.68rem",color:"rgba(255,255,255,0.3)"},children:["Supermajority required: ",m.ballotPeriod.supermajority,"% · Yay share of cast votes: ",m.ballotPeriod.yayPct??"â","%",m.ballotPeriod.yayPct!=null&&m.ballotPeriod.yayPct>=m.ballotPeriod.supermajority?a.jsx("span",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:467",style:{color:"#22c55e",marginLeft:"0.4rem",fontWeight:700},children:"â Passed"}):a.jsx("span",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:468",style:{color:"#ef4444",marginLeft:"0.4rem",fontWeight:700},children:"â Not reached"})]})]})]}),m.topVoters.length>0&&a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:477",style:{marginBottom:"1.75rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:478",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"0.75rem",flexWrap:"wrap",gap:"0.5rem"},children:[a.jsxs("h2",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:479",style:{fontSize:"0.82rem",fontWeight:800,color:"rgba(255,255,255,0.5)",textTransform:"uppercase",letterSpacing:"0.08em",margin:0,display:"flex",alignItems:"center",gap:"0.4rem"},children:[a.jsx(ec,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:480",size:13,style:{color:"#f97316"}})," Baker Votes"]}),a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:483",style:{display:"flex",gap:"0.35rem"},children:["all","yay","nay","pass"].map(A=>a.jsx("button",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:485",onClick:()=>d(A),style:{padding:"0.3rem 0.7rem",background:l===A?A==="yay"?"rgba(34,197,94,0.2)":A==="nay"?"rgba(239,68,68,0.2)":A==="pass"?"rgba(245,158,11,0.2)":"rgba(44,125,247,0.2)":"rgba(255,255,255,0.05)",border:`1px solid ${l===A?A==="yay"?"rgba(34,197,94,0.5)":A==="nay"?"rgba(239,68,68,0.5)":A==="pass"?"rgba(245,158,11,0.5)":"rgba(44,125,247,0.5)":"rgba(255,255,255,0.1)"}`,borderRadius:"4px",color:l===A?A==="yay"?"#22c55e":A==="nay"?"#ef4444":A==="pass"?"#f59e0b":"#2c7df7":"rgba(255,255,255,0.4)",fontSize:"0.72rem",fontWeight:600,cursor:"pointer",textTransform:"capitalize"},children:A==="all"?"All":A.charAt(0).toUpperCase()+A.slice(1)},A))})]}),a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:492",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"8px",overflow:"hidden"},children:a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:493",style:{overflowX:"auto"},children:a.jsxs("table",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:494",style:{width:"100%",borderCollapse:"collapse",fontSize:"0.78rem"},children:[a.jsx("thead",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:495",children:a.jsx("tr",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:496",style:{borderBottom:"1px solid rgba(255,255,255,0.07)"},children:["Baker","Vote","Voting Power","% of Cast"].map(A=>a.jsx("th",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:498",style:{padding:"0.6rem 1rem",textAlign:"left",fontWeight:700,color:"rgba(255,255,255,0.35)",fontSize:"0.62rem",textTransform:"uppercase",letterSpacing:"0.07em",whiteSpace:"nowrap"},children:A},A))})}),a.jsx("tbody",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:502",children:m.topVoters.filter(A=>l==="all"||A.vote===l).map((A,N)=>a.jsxs("tr",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:504",style:{borderBottom:N<m.topVoters.length-1?"1px solid rgba(255,255,255,0.04)":"none"},children:[a.jsx("td",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:505",style:{padding:"0.55rem 1rem"},children:a.jsx($,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:506",href:`/explorer/address/${A.address}`,style:{color:"#fff",textDecoration:"none",fontWeight:600},children:A.baker})}),a.jsx("td",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:508",style:{padding:"0.55rem 1rem"},children:a.jsx("span",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:509",style:{fontSize:"0.7rem",fontWeight:700,padding:"2px 8px",borderRadius:"3px",background:A.vote==="yay"?"rgba(34,197,94,0.15)":A.vote==="nay"?"rgba(239,68,68,0.15)":"rgba(245,158,11,0.15)",color:A.vote==="yay"?"#22c55e":A.vote==="nay"?"#ef4444":"#f59e0b",textTransform:"uppercase"},children:A.vote})}),a.jsx("td",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:511",style:{padding:"0.55rem 1rem",color:"rgba(255,255,255,0.6)",fontWeight:600,whiteSpace:"nowrap"},children:kx(A.votingPower)}
1118),a.jsx("td",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:512",style:{padding:"0.55rem 1rem"},children:(()=>{const M=m.topVoters.reduce((R,_)=>R+_.votingPower,0),B=M>0?(A.votingPower/M*100).toFixed(1):"0";return a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:517",style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:518",style:{width:"60px",height:"4px",background:"rgba(255,255,255,0.08)",borderRadius:"2px",overflow:"hidden"},children:a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:519",style:{height:"100%",width:`${B}%`,background:A.vote==="yay"?"#22c55e":A.vote==="nay"?"#ef4444":"#f59e0b",borderRadius:"2px"}})}),a.jsxs("span",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:521",style:{fontSize:"0.7rem",color:"rgba(255,255,255,0.4)"},children:[B,"%"]})]})})()})]},A.address+N))})]})})})]}),a.jsx(D4e,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:536"}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:539",style:{marginTop:"1.75rem"},children:[a.jsxs("h2",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:540",style:{fontSize:"0.82rem",fontWeight:800,color:"rgba(255,255,255,0.5)",textTransform:"uppercase",letterSpacing:"0.08em",margin:"0 0 0.75rem",display:"flex",alignItems:"center",gap:"0.4rem"},children:[a.jsx(Fd,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:541",size:13,style:{color:"#8b5cf6"}})," Recent Epochs"]}),a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:543",style:{display:"flex",flexDirection:"column",gap:"0.5rem"},children:m.epochHistory.map(A=>a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:545",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"6px",padding:"0.75rem 1.25rem",display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:"0.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:546",style:{display:"flex",alignItems:"center",gap:"0.75rem"},children:[a.jsxs("span",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:547",style:{fontSize:"0.78rem",fontWeight:700,color:"rgba(255,255,255,0.5)"},children:["Epoch #",A.index]}),a.jsx("span",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:548",style:{fontSize:"0.65rem",fontWeight:700,padding:"2px 7px",borderRadius:"3px",background:A.status==="voting"?"rgba(44,125,247,0.15)":A.status==="no_proposals"?"rgba(255,255,255,0.06)":"rgba(34,197,94,0.1)",color:A.status==="voting"?"#2c7df7":A.status==="no_proposals"?"rgba(255,255,255,0.3)":"#22c55e",textTransform:"capitalize"},children:A.status.replace(/_/g," ")}),A.proposals.map(N=>a.jsxs("span",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:550",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.4)",fontFamily:"monospace"},children:[N.hash.slice(0,12),"â¦"]},N.hash))]}),a.jsx("span",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:553",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.25)"},children:A.startTime?new Date(A.startTime).toLocaleDateString():""})]},A.index))})]})]}):a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:560",style:{padding:"3rem",textAlign:"center",color:"rgba(255,255,255,0.3)"},children:"Failed to load governance data."})]}),i==="dashboard"&&a.jsxs(a.Fragment,{children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:568",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(180px, 1fr))",gap:"0.75rem",marginBottom:"2rem"},children:[C.map(A=>a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:570",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"6px",padding:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:571",style:{display:"flex",alignItems:"center",gap:"0.4rem",marginBottom:"0.5rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:572",style:{color:A.color},children:A.icon}),a.jsx("span",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:573",style:{fontSize:"0.65rem",fontWeight:700,color:"rgba(255,255,255,0.4)",textTransform:"uppercase",letterSpacing:"0.08em"},children:A.label})]}),a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:575",style:{fontSize:"1.2rem",fontWeight:900,color:"#fff",lineHeight:1},children:A.value}),A.sub&&a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:576",style:{fontSize:"0.72rem",fontWeight:700,color:A.subColor,marginTop:"0.25rem"},children:A.sub})]},A.label)),!S&&Array.from({length:8}).map((A,N)=>a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:580",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"6px",padding:"1rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:581",className:"skeleton",style:{height:"10px",width:"80px",marginBottom:"10px"}}),a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:582",className:"skeleton",style:{height:"20px",width:"100px"}})]},N))]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:588",style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"1.5rem",marginBottom:"2rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:590",children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:591",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"0.75rem"},children:a.jsxs("h2",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:592",style:{fontSize:"0.85rem",fontWeight:800,color:"#fff",textTransform:"uppercase",letterSpacing:"0.08em",margin:0,display:"flex",alignItems:"center",gap:"0.4rem"},children:[a.jsx(pg,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:593",size:14,style:{color:"#2c7df7"}})," Latest Blocks"]})}),a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:596",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"6px",overflow:"hidden"},children:v.length===0?Array.from({length:8}).map((A,N)=>a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:599",style:{padding:"0.75rem 1rem",borderBottom:"1px solid rgba(255,255,255,0.05)"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:600",className:"skeleton",style:{height:"12px",width:"60%",marginBottom:"6px"}}),a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:601",className:"skeleton",style:{height:"10px",width:"40%"}})]},N)):v.map((A,N)=>a.jsx($,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:605",href:`/explorer/block/${A.level}`,style:{display:"block",padding:"0.7rem 1rem",borderBottom:N<v.length-1?"1px solid rgba(255,255,255,0.05)":"none",textDecoration:"none",transition:"background 0.15s"},onMouseEnter:M=>M.currentTarget.style.background="rgba(44,125,247,0.06)",onMouseLeave:M=>M.currentTarget.style.background="transparent",children:a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:608",style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:609",style:{display:"flex",alignItems:"center",gap:"0.6rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:610",style:{width:"32px",height:"32px",background:"rgba(44,125,247,0.15)",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:a.jsx(pg,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:611",size:13,style:{color:"#2c7df7"}})}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:613",children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:614",style:{fontSize:"0.82rem",fontWeight:700,color:"#2c7df7"}
1118,children:A.level.toLocaleString()}),a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:615",style:{fontSize:"0.68rem",color:"rgba(255,255,255,0.4)"},children:A.baker})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:618",style:{textAlign:"right"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:619",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.6)"},children:[A.transactions," txs"]}),a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:620",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.35)"},children:qk(A.timestamp)})]})]})},A.level))})]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:629",children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:630",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"0.75rem"},children:a.jsxs("h2",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:631",style:{fontSize:"0.85rem",fontWeight:800,color:"#fff",textTransform:"uppercase",letterSpacing:"0.08em",margin:0,display:"flex",alignItems:"center",gap:"0.4rem"},children:[a.jsx(Kg,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:632",size:14,style:{color:"#8b5cf6"}})," Latest Transactions"]})}),a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:635",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"6px",overflow:"hidden"},children:k.length===0?Array.from({length:8}).map((A,N)=>a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:638",style:{padding:"0.75rem 1rem",borderBottom:"1px solid rgba(255,255,255,0.05)"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:639",className:"skeleton",style:{height:"12px",width:"70%",marginBottom:"6px"}}),a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:640",className:"skeleton",style:{height:"10px",width:"50%"}})]},N)):k.map((A,N)=>a.jsx($,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:644",href:`/explorer/tx/${A.hash}`,style:{display:"block",padding:"0.7rem 1rem",borderBottom:N<k.length-1?"1px solid rgba(255,255,255,0.05)":"none",textDecoration:"none",transition:"background 0.15s"},onMouseEnter:M=>M.currentTarget.style.background="rgba(139,92,246,0.06)",onMouseLeave:M=>M.currentTarget.style.background="transparent",children:a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:647",style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:648",style:{display:"flex",alignItems:"center",gap:"0.6rem",minWidth:0},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:649",style:{width:"32px",height:"32px",background:"rgba(139,92,246,0.15)",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:a.jsx(Kg,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:650",size:13,style:{color:"#8b5cf6"}})}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:652",style:{minWidth:0},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:653",style:{fontSize:"0.75rem",fontWeight:700,color:"#8b5cf6",fontFamily:"monospace"},children:cg(A.hash)}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:654",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.4)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:[A.sender||cg(A.senderAddress)," â ",A.target||cg(A.targetAddress)]})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:659",style:{textAlign:"right",flexShrink:0,marginLeft:"0.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:660",style:{fontSize:"0.72rem",fontWeight:700,color:"#fff"},children:[A.amount.toFixed(2)," ê©"]}),a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:661",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.35)"},children:qk(A.timestamp)})]})]})},A.hash+N))})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:671",style:{marginBottom:"2rem"},children:[a.jsxs("h2",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:672",style:{fontSize:"0.85rem",fontWeight:800,color:"#fff",textTransform:"uppercase",letterSpacing:"0.08em",margin:"0 0 0.75rem",display:"flex",alignItems:"center",gap:"0.4rem"},children:[a.jsx(ko,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:673",size:14,style:{color:"#f59e0b"}})," Recent Token Transfers"]}),a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:675",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"6px",overflow:"hidden"},children:a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:676",style:{overflowX:"auto"},children:a.jsxs("table",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:677",style:{width:"100%",borderCollapse:"collapse",fontSize:"0.78rem"},children:[a.jsx("thead",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:678",children:a.jsx("tr",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:679",style:{borderBottom:"1px solid rgba(255,255,255,0.08)"},children:["Token","From","To","Amount","Time"].map(A=>a.jsx("th",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:681",style:{padding:"0.6rem 1rem",textAlign:"left",fontWeight:700,color:"rgba(255,255,255,0.4)",fontSize:"0.65rem",textTransform:"uppercase",letterSpacing:"0.08em"},children:A},A))})}),a.jsx("tbody",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:685",children:O.length===0?Array.from({length:5}).map((A,N)=>a.jsx("tr",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:688",children:a.jsx("td",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:688",colSpan:5,style:{padding:"0.75rem 1rem"},children:a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:688",className:"skeleton",style:{height:"12px",width:"100%"}})})},N)):O.map((A,N)=>a.jsxs("tr",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:691",style:{borderBottom:N<O.length-1?"1px solid rgba(255,255,255,0.04)":"none",transition:"background 0.15s"},onMouseEnter:M=>M.currentTarget.style.background="rgba(245,158,11,0.04)",onMouseLeave:M=>M.currentTarget.style.background="transparent",children:[a.jsx("td",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:694",style:{padding:"0.6rem 1rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:695",
1118style:{display:"flex",alignItems:"center",gap:"0.4rem"},children:[A.token.thumbnail&&a.jsx("img",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:696",src:A.token.thumbnail.replace("ipfs://","https://ipfs.io/ipfs/"),alt:"",style:{width:"18px",height:"18px",borderRadius:"50%",objectFit:"cover"},onError:M=>{M.currentTarget.style.display="none"}}),a.jsx("span",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:697",style:{fontWeight:700,color:"#f59e0b"},children:A.token.symbol})]})}),a.jsx("td",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:700",style:{padding:"0.6rem 1rem"},children:a.jsx($,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:701",href:`/explorer/address/${A.fromAddress||""}`,style:{color:"#2c7df7",textDecoration:"none",fontFamily:"monospace",fontSize:"0.72rem"},children:A.from==="mint"?a.jsx("span",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:702",style:{color:"#22c55e"},children:"mint"}):cg(A.fromAddress||A.from)})}),a.jsx("td",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:705",style:{padding:"0.6rem 1rem"},children:a.jsx($,{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:706",href:`/explorer/address/${A.toAddress||""}`,style:{color:"#2c7df7",textDecoration:"none",fontFamily:"monospace",fontSize:"0.72rem"},children:A.to==="burn"?a.jsx("span",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:707",style:{color:"#ef4444"},children:"burn"}):cg(A.toAddress||A.to)})}),a.jsx("td",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:710",style:{padding:"0.6rem 1rem",color:"#fff",fontWeight:600},children:(parseInt(A.amount)/Math.pow(10,A.token.decimals)).toLocaleString(void 0,{maximumFractionDigits:4})}),a.jsx("td",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:713",style:{padding:"0.6rem 1rem",color:"rgba(255,255,255,0.4)",fontSize:"0.7rem"},children:qk(A.timestamp)})]},A.id))})]})})})]}),a.jsx("div",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:725",style:{textAlign:"center",padding:"1rem 0"},children:a.jsxs("p",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:726",style:{fontSize:"0.7rem",color:"rgba(255,255,255,0.25)"},children:["Data powered by"," ",a.jsx("a",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:728",href:"https://tzkt.io",target:"_blank",rel:"nofollow noopener noreferrer",style:{color:"rgba(255,255,255,0.4)"},children:"TzKT"})," ","·"," ",a.jsx("a",{"data-loc":"client/src/pages/explorer/ExplorerPage.tsx:730",href:"https://coingecko.com",target:"_blank",rel:"nofollow noopener noreferrer",style:{color:"rgba(255,255,255,0.4)"},children:"CoinGecko"})]})})]})]})]})}function aB(e){return`${e.toFixed(4)} ê©`}function I4e(e){const t=Math.floor((Date.now()-new Date(e).getTime())/1e3);return t<60?`${t}s ago`:t<3600?`${Math.floor(t/60)}m ago`:new Date(e).toLocaleString()}function Px(e,t=10){return e?`${e.slice(0,t)}...${e.slice(-6)}`:""}function B4e(){const{id:e}=Ua(),t=e?.startsWith("B");Ie({title:`Block ${e} | Tezos Explorer â XTZ.News`,description:`Tezos block ${e} details â baker, transactions, fees, rewards, and operations.`,canonical:`https://xtz.news/explorer/block/${e}`});const{data:r,isLoading:n,error:s}=t?ee.explorer.blockByHash.useQuery({hash:e||""},{enabled:!!e}):ee.explorer.blockByLevel.useQuery({level:parseInt(e||"0")},{enabled:!!e&&!isNaN(parseInt(e||""))});if(n)return a.jsxs("div",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:30",className:"container py-12",children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:31",className:"skeleton",style:{height:"24px",width:"300px",marginBottom:"16px"}}),a.jsx("div",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:32",className:"skeleton",style:{height:"200px",borderRadius:"8px",marginBottom:"16px"}}),a.jsx("div",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:33",className:"skeleton",style:{height:"300px",borderRadius:"8px"}})]});if(s||!r)return a.jsxs("div",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:38",className:"container py-12 text-center",children:[a.jsx("h1",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:39",style:{color:"#fff",fontWeight:900,fontSize:"1.5rem",marginBottom:"0.5rem"},children:"Block Not Found"}),a.jsxs("p",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:40",style:{color:"rgba(255,255,255,0.5)",marginBottom:"1.5rem"},children:["Block ",e," could not be found on the Tezos blockchain."]}),a.jsx($,{"data-loc":"client/src/pages/explorer/BlockPage.tsx:41",href:"/explorer",style:{color:"#2c7df7",textDecoration:"none",fontWeight:700},children:"â Back to Explorer"})]});
1118const i=[{label:"Block Level",value:r.level.toLocaleString(),mono:!1},{label:"Hash",value:r.hash,mono:!0,truncate:!0},{label:"Timestamp",value:`${new Date(r.timestamp).toLocaleString()} (${I4e(r.timestamp)})`,mono:!1},{label:"Baker",value:r.baker,mono:!1,link:`/explorer/address/${r.bakerAddress}`},{label:"Cycle",value:r.cycle.toLocaleString(),mono:!1},{label:"Protocol",value:`v${r.proto}`,mono:!1},{label:"Transactions",value:r.transactions.toLocaleString(),mono:!1},{label:"Fees",value:aB(r.fees),mono:!1},{label:"Reward",value:aB(r.reward),mono:!1},{label:"Attestations",value:`${r.validations.toLocaleString()} / 7,000`,mono:!1}];return a.jsxs("div",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:59",style:{background:"#000",minHeight:"100vh"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:61",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",borderBottom:"1px solid rgba(44,125,247,0.2)",padding:"2rem 0"},children:a.jsxs("div",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:62",className:"container",children:[a.jsxs("nav",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:63",style:{display:"flex",alignItems:"center",gap:"0.35rem",marginBottom:"1rem",fontSize:"0.75rem",color:"rgba(255,255,255,0.4)"},children:[a.jsx($,{"data-loc":"client/src/pages/explorer/BlockPage.tsx:64",href:"/",style:{color:"rgba(255,255,255,0.4)",textDecoration:"none"},children:a.jsx(Qt,{"data-loc":"client/src/pages/explorer/BlockPage.tsx:64",size:12})}),a.jsx(Le,{"data-loc":"client/src/pages/explorer/BlockPage.tsx:65",size:10}),a.jsx($,{"data-loc":"client/src/pages/explorer/BlockPage.tsx:66",href:"/explorer",style:{color:"rgba(255,255,255,0.4)",textDecoration:"none"},children:"Explorer"}),a.jsx(Le,{"data-loc":"client/src/pages/explorer/BlockPage.tsx:67",size:10}),a.jsxs("span",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:68",style:{color:"#fff"},children:["Block ",r.level.toLocaleString()]})]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:70",style:{display:"flex",alignItems:"center",gap:"0.75rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:71",style:{width:"40px",height:"40px",background:"rgba(44,125,247,0.2)",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsx(pg,{"data-loc":"client/src/pages/explorer/BlockPage.tsx:72",size:20,style:{color:"#2c7df7"}})}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:74",children:[a.jsxs("h1",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:75",style:{fontSize:"1.5rem",fontWeight:900,color:"#fff",margin:0},children:["Block #",r.level.toLocaleString()]}),a.jsx("p",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:76",style:{fontSize:"0.75rem",color:"rgba(255,255,255,0.4)",margin:0,fontFamily:"monospace"},children:Px(r.hash,16)})]})]})]})}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:82",className:"container",style:{padding:"2rem 1.25rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:84",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"8px",overflow:"hidden",marginBottom:"2rem"},children:i.map((o,l)=>a.jsxs("div",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:86",style:{display:"flex",padding:"0.75rem 1.25rem",borderBottom:l<i.length-1?"1px solid rgba(255,255,255,0.05)":"none",flexWrap:"wrap",gap:"0.5rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:87",style:{width:"160px",flexShrink:0,fontSize:"0.78rem",fontWeight:700,color:"rgba(255,255,255,0.45)",textTransform:"uppercase",letterSpacing:"0.06em"},children:o.label}),a.jsx("div",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:88",style:{flex:1,fontSize:"0.85rem",color:"#fff",fontFamily:o.mono?"monospace":"inherit",wordBreak:"break-all"},children:o.link?a.jsx($,{"data-loc":"client/src/pages/explorer/BlockPage.tsx:90",href:o.link,style:{color:"#2c7df7",textDecoration:"none"},children:o.value}):o.value})]},o.label))}),r.operations&&r.operations.length>0&&a.jsxs("div",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:99",children:[a.jsxs("h2",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:100",style:{fontSize:"0.85rem",fontWeight:800,color:"#fff",textTransform:"uppercase",letterSpacing:"0.08em",margin:"0 0 0.75rem",display:"flex",alignItems:"center",gap:"0.4rem"},children:[a.jsx(Kg,{"data-loc":"client/src/pages/explorer/BlockPage.tsx:101",size:14,style:{color:"#8b5cf6"}})," Transactions (",r.operations.length,")"]}),a.jsx("div",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:103",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"8px",overflow:"hidden"},children:a.jsx("div",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:104",style:{overflowX:"auto"},children:a.jsxs("table",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:105",style:{width:"100%",borderCollapse:"collapse",fontSize:"0.78rem"},children:[a.jsx("thead",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:106",children:a.jsx("tr",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:107",style:{borderBottom:"1px solid rgba(255,255,255,0.08)"},children:["Hash","From","To","Amount","Fee","Status"].map(o=>a.jsx("th",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:109",style:{padding:"0.6rem 1rem",textAlign:"left",fontWeight:700,color:"rgba(255,255,255,0.4)",fontSize:"0.65rem",textTransform:"uppercase",letterSpacing:"0.08em"},children:o},o))})}),a.jsx("tbody",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:113",children:r.operations.map((o,l)=>a.jsxs("tr",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:115",style:{borderBottom:l<r.operations.length-1?"1px solid rgba(255,255,255,0.04)":"none"},children:[a.jsx("td",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:116",style:{padding:"0.6rem 1rem"},children:a.jsx($,{"data-loc":"client/src/pages/explorer/BlockPage.tsx:117",href:`/explorer/tx/${o.hash}`,style:{color:"#8b5cf6",textDecoration:"none",fontFamily:"monospace",fontSize:"0.72rem"},children:Px(o.hash)})}),a.jsx("td",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:119",style:{padding:"0.6rem 1rem"},children:a.jsx($,{"data-loc":"client/src/pages/explorer/BlockPage.tsx:120",href:`/explorer/address/${o.senderAddress}`,style:{color:"#2c7df7",textDecoration:"none",fontFamily:"monospace",fontSize:"0.72rem"},children:o.sender||Px(o.senderAddress)})}),a.jsx("td",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:122",style:{padding:"0.6rem 1rem"},children:a.jsx($,{"data-loc":"client/src/pages/explorer/BlockPage.tsx:123",href:`/explorer/address/${o.targetAddress}`,style:{color:"#2c7df7",textDecoration:"none",fontFamily:"monospace",fontSize:"0.72rem"},children:o.target||Px(o.targetAddress)})}),a.jsxs("td",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:125",style:{padding:"0.6rem 1rem",color:"#fff",fontWeight:600},children:[o.amount.toFixed(4)," ê©"]}),a.jsxs("td",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:126",style:{padding:"0.6rem 1rem",color:"rgba(255,255,255,0.5)"},children:[o.fee.toFixed(6)," ê©"]}),a.jsx("td",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:127",style:{padding:"0.6rem 1rem"},children:a.jsx("span",{"data-loc":"client/src/pages/explorer/BlockPage.tsx:128",style:{fontSize:"0.65rem",fontWeight:700,padding:"2px 6px",borderRadius:"3px",background:o.status==="applied"?"rgba(34,197,94,0.15)":"rgba(239,68,68,0.15)",color:o.status==="applied"?"#22c55e":"#ef4444"},children:o.status})})]},o.hash+l))})]})})})]})]})]})}function L4e(e,t=10){return e?`${e.slice(0,t)}...${e.slice(-6)}`:""}function W4e(){const{hash:e}=Ua();Ie({title:`Transaction ${e?.slice(0,12)}... | Tezos Explorer â XTZ.News`,description:`Tezos transaction ${e} details â sender, receiver, amount, fee, and status.`,canonical:`https://xtz.news/explorer/tx/${e}`});const{data:t,isLoading:r,error:n}=ee.explorer.transactionByHash.useQuery({hash:e||""},{enabled:!!e});if(r)return a.jsxs("div",{"data-loc":"client/src/pages/explorer/TxPage.tsx:23",className:"container py-12",children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/TxPage.tsx:24",className:"skeleton",style:{height:"24px",width:"300px",marginBottom:"16
1118px"}}),a.jsx("div",{"data-loc":"client/src/pages/explorer/TxPage.tsx:25",className:"skeleton",style:{height:"300px",borderRadius:"8px"}})]});if(n||!t)return a.jsxs("div",{"data-loc":"client/src/pages/explorer/TxPage.tsx:30",className:"container py-12 text-center",children:[a.jsx("h1",{"data-loc":"client/src/pages/explorer/TxPage.tsx:31",style:{color:"#fff",fontWeight:900,fontSize:"1.5rem",marginBottom:"0.5rem"},children:"Transaction Not Found"}),a.jsx("p",{"data-loc":"client/src/pages/explorer/TxPage.tsx:32",style:{color:"rgba(255,255,255,0.5)",marginBottom:"1.5rem"},children:"This transaction could not be found on the Tezos blockchain."}),a.jsx($,{"data-loc":"client/src/pages/explorer/TxPage.tsx:33",href:"/explorer",style:{color:"#2c7df7",textDecoration:"none",fontWeight:700},children:"â Back to Explorer"})]});const s=[{label:"Hash",value:t.hash,mono:!0},{label:"Type",value:t.type,mono:!1},{label:"Status",value:t.status,mono:!1,isStatus:!0},{label:"Timestamp",value:new Date(t.timestamp).toLocaleString(),mono:!1},{label:"Block",value:`#${t.block.toLocaleString()}`,mono:!1,link:`/explorer/block/${t.block}`},{label:"From",value:t.sender||t.senderAddress,mono:!0,link:`/explorer/address/${t.senderAddress}`},{label:"To",value:t.target||t.targetAddress,mono:!0,link:`/explorer/address/${t.targetAddress}`},{label:"Amount",value:`${t.amount.toFixed(6)} ê©`,mono:!1},{label:"Fee",value:`${t.fee.toFixed(6)} ê©`,mono:!1},{label:"Gas Used",value:t.gasUsed.toLocaleString(),mono:!1},{label:"Storage Used",value:`${t.storageUsed} bytes`,mono:!1}];return a.jsxs("div",{"data-loc":"client/src/pages/explorer/TxPage.tsx:52",style:{background:"#000",minHeight:"100vh"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/TxPage.tsx:53",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",borderBottom:"1px solid rgba(44,125,247,0.2)",padding:"2rem 0"},children:a.jsxs("div",{"data-loc":"client/src/pages/explorer/TxPage.tsx:54",className:"container",children:[a.jsxs("nav",{"data-loc":"client/src/pages/explorer/TxPage.tsx:55",style:{display:"flex",alignItems:"center",gap:"0.35rem",marginBottom:"1rem",fontSize:"0.75rem",color:"rgba(255,255,255,0.4)"},children:[a.jsx($,{"data-loc":"client/src/pages/explorer/TxPage.tsx:56",href:"/",style:{color:"rgba(255,255,255,0.4)",textDecoration:"none"},children:a.jsx(Qt,{"data-loc":"client/src/pages/explorer/TxPage.tsx:56",size:12})}),a.jsx(Le,{"data-loc":"client/src/pages/explorer/TxPage.tsx:57",size:10}),a.jsx($,{"data-loc":"client/src/pages/explorer/TxPage.tsx:58",href:"/explorer",style:{color:"rgba(255,255,255,0.4)",textDecoration:"none"},children:"Explorer"}),a.jsx(Le,{"data-loc":"client/src/pages/explorer/TxPage.tsx:59",size:10}),a.jsx("span",{"data-loc":"client/src/pages/explorer/TxPage.tsx:60",style:{color:"#fff"},children:"Transaction"})]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/TxPage.tsx:62",style:{display:"flex",alignItems:"center",gap:"0.75rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/TxPage.tsx:63",style:{width:"40px",height:"40px",background:"rgba(139,92,246,0.2)",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsx(Kg,{"data-loc":"client/src/pages/explorer/TxPage.tsx:64",size:20,style:{color:"#8b5cf6"}})}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/TxPage.tsx:66",children:[a.jsx("h1",{"data-loc":"client/src/pages/explorer/TxPage.tsx:67",style:{fontSize:"1.3rem",fontWeight:900,color:"#fff",margin:0},children:"Transaction"}),a.jsx("p",{"data-loc":"client/src/pages/explorer/TxPage.tsx:68",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.4)",margin:0,fontFamily:"monospace"},children:L4e(e||"",20)})]}),t.status==="applied"?a.jsx(ja,{"data-loc":"client/src/pages/explorer/TxPage.tsx:71",size:20,style:{color:"#22c55e",marginLeft:"auto"}}):a.jsx(ru,{"data-loc":"client/src/pages/explorer/TxPage.tsx:73",size:20,style:{color:"#ef4444",marginLeft:"auto"}})]})]})}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/TxPage.tsx:79",className:"container",style:{padding:"2rem 1.25rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/TxPage.tsx:80",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"8px",overflow:"hidden",marginBottom:"2rem"},children:s.map((i,o)=>a.jsxs("div",{"data-loc":"client/src/pages/explorer/TxPage.tsx:82",style:{display:"flex",padding:"0.75rem 1.25rem",borderBottom:o<s.length-1?"1px solid rgba(255,255,255,0.05)":"none",flexWrap:"wrap",gap:"0.5rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/TxPage.tsx:83",style:{width:"160px",flexShrink:0,fontSize:"0.78rem",fontWeight:700,color:"rgba(255,255,255,0.45)",textTransform:"uppercase",letterSpacing:"0.06em"},children:i.label}),a.jsx("div",{"data-loc":"client/src/pages/explorer/TxPage.tsx:84",style:{flex:1,fontSize:"0.85rem",color:"#fff",fontFamily:i.mono?"monospace":"inherit",wordBreak:"break-all"},children:i.isStatus?a.jsx("span",{"data-loc":"client/src/pages/explorer/TxPage.tsx:86",style:{fontSize:"0.75rem",fontWeight:700,padding:"3px 8px",borderRadius:"3px",background:i.value==="applied"?"rgba(34,197,94,0.15)":"rgba(239,68,68,0.15)",color:i.value==="applied"?"#22c55e":"#ef4444"},children:i.value}):i.link?a.jsx($,{"data-loc":"client/src/pages/explorer/TxPage.tsx:90",href:i.link,style:{color:"#2c7df7",textDecoration:"none"},children:i.value}):i.value})]},i.label))}),t.parameters&&a.jsxs("div",{"data-loc":"client/src/pages/explorer/TxPage.tsx:98",children:[a.jsx("h2",{"data-loc":"client/src/pages/explorer/TxPage.tsx:99",style:{fontSize:"0.85rem",fontWeight:800,color:"#fff",textTransform:"uppercase",letterSpacing:"0.08em",margin:"0 0 0.75rem"},children:"Contract Parameters"}),a.jsx("div",{"data-loc":"client/src/pages/explorer/TxPage.tsx:100",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"8px",padding:"1rem"},children:a.jsx("pre",{"data-loc":"client/src/pages/explorer/TxPage.tsx:101",style:{fontSize:"0.75rem",color:"rgba(255,255,255,0.7)",margin:0,overflow:"auto",maxHeight:"300px"},children:JSON.stringify(t.parameters,null,2)})})]})]})]})}function Tx(e,t=10){return e?`${e.slice(0,t)}...${e.slice(-6)}`:""}function Uk(e){if(!e)return"â";const t=Math.floor((Date.now()-new Date(e).getTime())/1e3);return t<60?`${t}s ago`:t<3600?`${Math.floor(t/60)}m ago`:t<86400?`${Math.floor(t/3600)}h ago`:new Date(e).toLocaleDateString()}function Ax(e){return e>=1e6?`${(e/1e6).toFixed(2)}M ê©`:e>=1e3?`${(e/1e3).toFixed(1)}K ê©`:`${e.toFixed(2)} ê©`}function $4e({address:e}){const[t,r]=E.useState(50),{data:n=[],isLoading:s}=ee.explorer.delegationHistory.useQuery({address:e,cycles:t},{staleTime:5*6e4});if(s)return a.jsx("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:33",style:{padding:"2rem",display:"flex",flexDirection:"column",gap:"0.75rem"},children:Array.from({length:4}).map((y,S)=>a.jsx("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:35",className:"skeleton",style:{height:"14px",width:`${70+S*8}%`}},S))});if(n.length===0)return a.jsx("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:43",style:{padding:"3rem",textAlign:"center",color:"rgba(255,255,255,0.3)",fontSize:"0.85rem"},children:"No delegation history available for this address."});const i=n[0],o=n[n.length-1],l=o.delegatorsCount-i.delegatorsCount,d=o.totalDelegated-i.totalDelegated,u=l>0?"growing":l<0?"shrinking":"stable",g=Math.max(...n.map(y=>y.delegatorsCount),1),f=Math.min(...n.map(y=>y.delegatorsCount)),m=Math.max(...n.map(y=>y.totalDelegated),1);return a.jsxs("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:62",style:{padding:"1.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:64",style:{display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:"0.75rem",marginBottom:"1.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:65",style:{display:"flex",alignItems:"center",gap:"0.75rem",flexWrap:"wrap"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:67",style:{display:"flex",alignItems:"center",gap:"0.4rem",padding:"0.3rem 0.75rem",background:u==="growing"?"rgba(34,197,94,0.12)":u==="shrinking"?"rgba(239,68,68,0.12)":"rgba(255,255,255,0.06)",border:`1px solid ${u==="growing"?"rgba(34,197,94,0.3)":u==="shrinking"?"rgba(239,68,68,0.3)":"rgba(255,255,255,0.1)"}`,borderRadius:"20px"},children:[u==="growing"?a.jsx(cr,{"data-loc":"client/src/pages/explorer/AddressPage.tsx:68",size:13,style:{color:"#22c55e"}}):u==="shrinking"?a.jsx(Ha,{"data-loc":"client/src/pages/explorer/AddressPage.tsx:68",size:13,style:{color:"#ef4444"}}):a.jsx(su,{"data-loc":"client/src/pages/explorer/AddressPage.tsx:68",size:13,style:{color:"rgba(255,255,255,0.4)"}}),a.jsx("span",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:69",style:{fontSize:"0.72rem",fontWeight:700,color:u==="growing"?"#22c55e":u==="shrinking"?"#ef4444":"rgba(255,255,255,0.5)"},children:u==="growing"?`+${l} delegators`:u==="shrinking"?`${l} delegators`:"Stable"}),a.jsxs("span",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:72",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.3)"},children:["over ",n.length," cycles"]})]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:75",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.4)"},children:["Delegated: ",a.jsxs("span",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:76",style:{fontWeight:700,color:d>=0?"#22c55e":"#ef4444"},children:[d>=0?"+":"",Ax(d)]})]})]}),a.jsx("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:82",style:{display:"flex",gap:"0.35rem"},children:[20,50,100].map(y=>a.jsxs("button",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:84",onClick:()=>r(y),style:{padding:"0.3rem 0.7rem",background:t===y?"rgba(44,125,247,0.2)":"rgba(255,255,255,0.05)",border:`1px solid ${t===y?"rgba(44,125,247,0.5)":"rgba(255,255,255,0.1)"}`,borderRadius:"4px",color:t===y?"#2c7df7":"rgba(255,255,255,0.5)",fontSize:"0.72rem",fontWeight:600,cursor:"pointer"},children:[y," cycles"]},y))})]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:93",style:{marginBottom:"2rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:94",style:{fontSize:"0.72rem",fontWeight:800,color:"rgba(255,255,255,0.5)",textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:"0.75rem",display:"flex",alignItems:"center",gap:"0.4rem"},children:[a.jsx(su,{"data-loc":"client/src/pages/explorer/AddressPage.tsx:95",size:12})," Delegator Count",a.jsxs("span",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:96",style:{fontWeight:400,color:"rgba(255,255,255,0.25)",textTransform:"none",letterSpacing:0}
1118,children:["â current: ",o.delegatorsCount.toLocaleString()]})]}),a.jsx("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:99",style:{display:"flex",alignItems:"flex-end",gap:"2px",height:"100px",background:"rgba(255,255,255,0.02)",borderRadius:"6px",padding:"8px 8px 0"},children:n.map((y,S)=>{const b=g>f?Math.max(4,(y.delegatorsCount-f)/(g-f)*100):50,v=S===n.length-1;return a.jsx("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:106",style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",gap:"2px"},title:`Cycle ${y.cycle}: ${y.delegatorsCount} delegators`,children:a.jsx("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:107",style:{width:"100%",height:`${b}%`,background:v?"#2c7df7":"rgba(44,125,247,0.5)",borderRadius:"2px 2px 0 0",minHeight:"3px",transition:"height 0.3s"}})},y.cycle)})}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:113",style:{display:"flex",justifyContent:"space-between",marginTop:"4px"},children:[a.jsx("span",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:114",style:{fontSize:"0.55rem",color:"rgba(255,255,255,0.2)"},children:i.cycle}),a.jsx("span",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:115",style:{fontSize:"0.55rem",color:"rgba(255,255,255,0.2)"},children:n[Math.floor(n.length/2)]?.cycle}),a.jsx("span",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:116",style:{fontSize:"0.55rem",color:"rgba(255,255,255,0.2)"},children:o.cycle})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:121",style:{marginBottom:"2rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:122",style:{fontSize:"0.72rem",fontWeight:800,color:"rgba(255,255,255,0.5)",textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:"0.75rem",display:"flex",alignItems:"center",gap:"0.4rem"},children:[a.jsx(cr,{"data-loc":"client/src/pages/explorer/AddressPage.tsx:123",size:12})," Total Delegated Balance",a.jsxs("span",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:124",style:{fontWeight:400,color:"rgba(255,255,255,0.25)",textTransform:"none",letterSpacing:0},children:["â current: ",Ax(o.totalDelegated)]})]}),a.jsx("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:127",style:{background:"rgba(255,255,255,0.02)",borderRadius:"6px",padding:"8px",overflow:"hidden"},children:a.jsxs("svg",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:128",width:"100%",height:"80",viewBox:`0 0 ${n.length*10} 80`,preserveAspectRatio:"none",children:[a.jsx("defs",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:129",children:a.jsxs("linearGradient",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:130",id:"balGrad",x1:"0",y1:"0",x2:"0",y2:"1",children:[a.jsx("stop",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:131",offset:"0%",stopColor:"#f97316",stopOpacity:"0.4"}),a.jsx("stop",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:132",offset:"100%",stopColor:"#f97316",stopOpacity:"0"})]})}),a.jsx("path",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:136",d:["M 0 80",...n.map((y,S)=>{const b=S*10+5,v=80-Math.max(2,y.totalDelegated/m*76);return`L ${b} ${v}`}),`L ${(n.length-1)*10+5} 80`,"Z"].join(" "),fill:"url(#balGrad)"}),a.jsx("polyline",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:150",points:n.map((y,S)=>{const b=S*10+5,v=80-Math.max(2,y.totalDelegated/m*76);return`${b},${v}`}).join(" "),fill:"none",stroke:"#f97316",strokeWidth:"1.5",strokeLinejoin:"round"})]})}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:163",style:{display:"flex",justifyContent:"space-between",marginTop:"4px"},children:[a.jsx("span",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:164",style:{fontSize:"0.55rem",color:"rgba(255,255,255,0.2)"},children:i.cycle}),a.jsx("span",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:165",style:{fontSize:"0.55rem",color:"rgba(255,255,255,0.2)"},children:o.cycle})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:170",children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:171",style:{fontSize:"0.72rem",fontWeight:800,color:"rgba(255,255,255,0.5)",textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:"0.75rem"},children:"Cycle Data"}),a.jsx("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:172",style:{overflowX:"auto"},children:a.jsxs("table",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:173",style:{width:"100%",borderCollapse:"collapse",fontSize:"0.78rem"},children:[a.jsx("thead",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:174",children:a.jsx("tr",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:175",style:{borderBottom:"1px solid rgba(255,255,255,0.07)"},children:["Cycle","Delegators","Stakers","Delegated Balance","Staked Balance"].map(y=>a.jsx("th",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:177",style:{padding:"0.5rem 0.75rem",textAlign:"left",fontWeight:700,color:"rgba(255,255,255,0.35)",fontSize:"0.62rem",textTransform:"uppercase",letterSpacing:"0.07em",whiteSpace:"nowrap"},children:y},y))})}),a.jsx("tbody",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:181",children:[...n].reverse().map((y,S)=>{const b=n[n.length-2-S],v=b?y.delegatorsCount-b.delegatorsCount:0;return a.jsxs("tr",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:186",style:{borderBottom:S<n.length-1?"1px solid rgba(255,255,255,0.04)":"none"},children:[a.jsx("td",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:187",style:{padding:"0.5rem 0.75rem",color:"rgba(255,255,255,0.5)",fontWeight:600},children:y.cycle}),a.jsxs("td",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:188",style:{padding:"0.5rem 0.75rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:189",style:{fontWeight:700,color:"#2c7df7"}
1118,children:y.delegatorsCount.toLocaleString()}),v!==0&&a.jsx("span",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:191",style:{fontSize:"0.65rem",marginLeft:"0.35rem",color:v>0?"#22c55e":"#ef4444"},children:v>0?`+${v}`:v})]}),a.jsx("td",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:196",style:{padding:"0.5rem 0.75rem",color:"rgba(255,255,255,0.6)"},children:y.stakersCount}),a.jsx("td",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:197",style:{padding:"0.5rem 0.75rem",color:"#f97316",fontWeight:600,whiteSpace:"nowrap"},children:Ax(y.externalDelegatedBalance)}),a.jsx("td",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:198",style:{padding:"0.5rem 0.75rem",color:"#8b5cf6",fontWeight:600,whiteSpace:"nowrap"},children:y.externalStakedBalance>0?Ax(y.externalStakedBalance):"â"})]},y.cycle)})})]})})]})]})}function F4e(){const{address:e}=Ua(),[t,r]=E.useState("overview");Ie({title:`Address ${e?.slice(0,12)}... | Tezos Explorer â XTZ.News`,description:`Tezos address ${e} â balance, transactions, delegation history, and activity.`,canonical:`https://xtz.news/explorer/address/${e}`});const{data:n,isLoading:s,error:i}=ee.explorer.accountByAddress.useQuery({address:e||""},{enabled:!!e}),o=()=>{navigator.clipboard.writeText(e||""),Ee.success("Address copied!")};if(s)return a.jsxs("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:232",className:"container py-12",children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:233",className:"skeleton",style:{height:"24px",width:"300px",marginBottom:"16px"}}),a.jsx("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:234",className:"skeleton",style:{height:"200px",borderRadius:"8px",marginBottom:"16px"}}),a.jsx("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:235",className:"skeleton",style:{height:"300px",borderRadius:"8px"}})]});if(i||!n)return a.jsxs("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:240",className:"container py-12 text-center",children:[a.jsx("h1",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:241",style:{color:"#fff",fontWeight:900,fontSize:"1.5rem",marginBottom:"0.5rem"},children:"Address Not Found"}),a.jsx($,{"data-loc":"client/src/pages/explorer/AddressPage.tsx:242",href:"/explorer",style:{color:"#2c7df7",textDecoration:"none",fontWeight:700},children:"â Back to Explorer"})]});const l=n.type==="delegate",d=[{id:"overview",label:"Overview"},{id:"transactions",label:`Transactions (${n.numTransactions.toLocaleString()})`},...l?[{id:"delegation",label:"Delegation History"}]:[]],u=[{label:"Address",value:n.address,mono:!0,copy:!0},...n.alias?[{label:"Alias",value:n.alias,mono:!1}]:[],{label:"Type",value:n.type,mono:!1},{label:"Balance",value:`${n.balance.toFixed(6)} ê©`,mono:!1},...n.stakedBalance>0?[{label:"Staked",value:`${n.stakedBalance.toFixed(6)} ê©`,mono:!1}]:[],...n.delegate?[{label:"Delegated To",value:n.delegate,mono:!1,link:`/explorer/address/${n.delegateAddress}`}]:[],{label:"Transactions",value:n.numTransactions.toLocaleString(),mono:!1},...l?[{label:"Delegators",value:n.numDelegators.toLocaleString(),mono:!1},{label:"Staking Balance",value:`${n.stakingBalance.toFixed(2)} ê©`,mono:!1}]:[],{label:"First Activity",value:Uk(n.firstActivity),mono:!1},{label:"Last Activity",value:Uk(n.lastActivity),mono:!1}];return a.jsxs("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:271",style:{background:"#000",minHeight:"100vh"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:273",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",borderBottom:"1px solid rgba(44,125,247,0.2)",padding:"2rem 0"},children:a.jsxs("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:274",className:"container",children:[a.jsxs("nav",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:275",style:{display:"flex",alignItems:"center",gap:"0.35rem",marginBottom:"1rem",fontSize:"0.75rem",color:"rgba(255,255,255,0.4)"},children:[a.jsx($,{"data-loc":"client/src/pages/explorer/AddressPage.tsx:276",href:"/",style:{color:"rgba(255,255,255,0.4)",textDecoration:"none"},children:a.jsx(Qt,{"data-loc":"client/src/pages/explorer/AddressPage.tsx:276",size:12})}),a.jsx(Le,{"data-loc":"client/src/pages/explorer/AddressPage.tsx:277",size:10}),a.jsx($,{"data-loc":"client/src/pages/explorer/AddressPage.tsx:278",href:"/explorer",style:{color:"rgba(255,255,255,0.4)",textDecoration:"none"},children:"Explorer"}),a.jsx(Le,{"data-loc":"client/src/pages/explorer/AddressPage.tsx:279",size:10}),a.jsx("span",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:280",style:{color:"#fff"},children:"Address"})]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:282",style:{display:"flex",alignItems:"center",gap:"0.75rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:283",style:{width:"40px",height:"40px",background:l?"rgba(249,115,22,0.2)":"rgba(44,125,247,0.2)",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center"},children:l?a.jsx(ec,{"data-loc":"client/src/pages/explorer/AddressPage.tsx:284",size:20,style:{color:"#f97316"}}
1118):a.jsx(xne,{"data-loc":"client/src/pages/explorer/AddressPage.tsx:284",size:20,style:{color:"#2c7df7"}})}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:286",children:[a.jsx("h1",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:287",style:{fontSize:"1.3rem",fontWeight:900,color:"#fff",margin:0},children:n.alias||(l?"Baker":"Account")}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:290",style:{display:"flex",alignItems:"center",gap:"0.4rem"},children:[a.jsx("p",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:291",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.4)",margin:0,fontFamily:"monospace"},children:Tx(n.address,16)}),a.jsx("button",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:292",onClick:o,style:{background:"transparent",border:"none",cursor:"pointer",padding:"2px",color:"rgba(255,255,255,0.3)",display:"flex",alignItems:"center"},children:a.jsx(an,{"data-loc":"client/src/pages/explorer/AddressPage.tsx:293",size:11})})]})]}),l&&a.jsx("span",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:298",style:{marginLeft:"auto",fontSize:"0.65rem",fontWeight:700,padding:"3px 8px",borderRadius:"3px",background:"rgba(249,115,22,0.15)",color:"#f97316",textTransform:"uppercase",letterSpacing:"0.08em"},children:"Baker"})]})]})}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:304",className:"container",style:{padding:"2rem 1.25rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:306",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(180px, 1fr))",gap:"0.75rem",marginBottom:"1.5rem"},children:[{label:"Balance",value:`${n.balance.toFixed(2)} ê©`,color:"#2c7df7"},{label:"Staked",value:`${n.stakedBalance.toFixed(2)} ê©`,color:"#8b5cf6"},{label:"Transactions",value:n.numTransactions.toLocaleString(),color:"#f59e0b"},...l?[{label:"Delegators",value:n.numDelegators.toLocaleString(),color:"#f97316"}]:[]].map(g=>a.jsxs("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:313",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"6px",padding:"1rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:314",style:{fontSize:"0.65rem",fontWeight:700,color:"rgba(255,255,255,0.4)",textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:"0.4rem"},children:g.label}),a.jsx("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:315",style:{fontSize:"1.2rem",fontWeight:900,color:g.color},children:g.value})]},g.label))}),a.jsx("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:321",style:{display:"flex",gap:"0",borderBottom:"1px solid rgba(255,255,255,0.08)",marginBottom:"0"},children:d.map(g=>a.jsx("button",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:323",onClick:()=>r(g.id),style:{padding:"0.65rem 1.25rem",background:"transparent",border:"none",borderBottom:`2px solid ${t===g.id?"#2c7df7":"transparent"}`,color:t===g.id?"#2c7df7":"rgba(255,255,255,0.45)",fontWeight:t===g.id?700:500,fontSize:"0.82rem",cursor:"pointer",transition:"color 0.15s, border-color 0.15s",whiteSpace:"nowrap"},children:g.label},g.id))}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:345",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderTop:"none",borderRadius:"0 0 8px 8px",overflow:"hidden",marginBottom:"1.5rem"},children:[t==="overview"&&a.jsx("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:349",children:u.map((g,f)=>a.jsxs("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:351",style:{display:"flex",padding:"0.75rem 1.25rem",borderBottom:f<u.length-1?"1px solid rgba(255,255,255,0.05)":"none",flexWrap:"wrap",gap:"0.5rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:352",style:{width:"160px",flexShrink:0,fontSize:"0.78rem",fontWeight:700,color:"rgba(255,255,255,0.45)",textTransform:"uppercase",letterSpacing:"0.06em"},children:g.label}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:353",style:{flex:1,fontSize:"0.85rem",color:"#fff",fontFamily:g.mono?"monospace":"inherit",wordBreak:"break-all",display:"flex",alignItems:"center",gap:"0.4rem"},children:[g.link?a.jsx($,{"data-loc":"client/src/pages/explorer/AddressPage.tsx:355",href:g.link,style:{color:"#2c7df7",textDecoration:"none"},children:g.value}):g.value,g.copy&&a.jsx("button",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:358",onClick:o,style:{background:"transparent",border:"none",cursor:"pointer",padding:"2px",color:"rgba(255,255,255,0.3)",display:"flex",alignItems:"center"},children:a.jsx(an,{"data-loc":"client/src/pages/explorer/AddressPage.tsx:359",size:12})})]})]},g.label))}),t==="transactions"&&a.jsx("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:370",children:!n.transactions||n.transactions.length===0?a.jsx("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:372",style:{padding:"3rem",textAlign:"center",color:"rgba(255,255,255,0.3)",fontSize:"0.85rem"}
1118,children:"No recent transactions found."}):a.jsx("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:374",style:{overflowX:"auto"},children:a.jsxs("table",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:375",style:{width:"100%",borderCollapse:"collapse",fontSize:"0.78rem"},children:[a.jsx("thead",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:376",children:a.jsx("tr",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:377",style:{borderBottom:"1px solid rgba(255,255,255,0.08)"},children:["Hash","From","To","Amount","Status","Time"].map(g=>a.jsx("th",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:379",style:{padding:"0.6rem 1rem",textAlign:"left",fontWeight:700,color:"rgba(255,255,255,0.4)",fontSize:"0.65rem",textTransform:"uppercase",letterSpacing:"0.08em"},children:g},g))})}),a.jsx("tbody",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:383",children:n.transactions.map((g,f)=>a.jsxs("tr",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:385",style:{borderBottom:f<n.transactions.length-1?"1px solid rgba(255,255,255,0.04)":"none"},children:[a.jsx("td",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:386",style:{padding:"0.6rem 1rem"},children:a.jsx($,{"data-loc":"client/src/pages/explorer/AddressPage.tsx:387",href:`/explorer/tx/${g.hash}`,style:{color:"#8b5cf6",textDecoration:"none",fontFamily:"monospace",fontSize:"0.72rem"},children:Tx(g.hash)})}),a.jsx("td",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:389",style:{padding:"0.6rem 1rem"},children:a.jsx($,{"data-loc":"client/src/pages/explorer/AddressPage.tsx:390",href:`/explorer/address/${g.senderAddress}`,style:{color:g.senderAddress===e?"#fff":"#2c7df7",textDecoration:"none",fontFamily:"monospace",fontSize:"0.72rem",fontWeight:g.senderAddress===e?700:400},children:g.sender||Tx(g.senderAddress)})}),a.jsx("td",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:392",style:{padding:"0.6rem 1rem"},children:a.jsx($,{"data-loc":"client/src/pages/explorer/AddressPage.tsx:393",href:`/explorer/address/${g.targetAddress}`,style:{color:g.targetAddress===e?"#fff":"#2c7df7",textDecoration:"none",fontFamily:"monospace",fontSize:"0.72rem",fontWeight:g.targetAddress===e?700:400},children:g.target||Tx(g.targetAddress)})}),a.jsxs("td",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:395",style:{padding:"0.6rem 1rem",color:g.senderAddress===e?"#ef4444":"#22c55e",fontWeight:700},children:[g.senderAddress===e?"-":"+",g.amount.toFixed(4)," ê©"]}),a.jsx("td",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:398",style:{padding:"0.6rem 1rem"},children:a.jsx("span",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:399",style:{fontSize:"0.65rem",fontWeight:700,padding:"2px 6px",borderRadius:"3px",background:g.status==="applied"?"rgba(34,197,94,0.15)":"rgba(239,68,68,0.15)",color:g.status==="applied"?"#22c55e":"#ef4444"},children:g.status})}),a.jsx("td",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:401",style:{padding:"0.6rem 1rem",color:"rgba(255,255,255,0.4)",fontSize:"0.7rem"},children:Uk(g.timestamp)})]},g.hash+f))})]})})}),t==="delegation"&&l&&a.jsx($4e,{"data-loc":"client/src/pages/explorer/AddressPage.tsx:413",address:n.address})]}),l&&a.jsxs("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:419",style:{padding:"1rem 1.25rem",background:"rgba(249,115,22,0.06)",border:"1px solid rgba(249,115,22,0.2)",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:"0.75rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:420",style:{fontSize:"0.82rem",color:"rgba(255,255,255,0.6)"},children:["Want to delegate your XTZ to ",a.jsx("strong",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:421",style:{color:"#fff"},children:n.alias||"this baker"}),"?"]}),a.jsx("a",{"data-loc":"client/src/pages/explorer/AddressPage.tsx:423",href:`https://app.templewallet.com/delegating?baker=${n.address}`,target:"_blank",rel:"nofollow noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",padding:"0.55rem 1.1rem",background:"linear-gradient(135deg, #f97316, #ea580c)",borderRadius:"6px",color:"#fff",fontWeight:700,fontSize:"0.8rem",textDecoration:"none"},children:"Delegate via Temple Wallet"})]})]})]})}const zx=10,Ad=4,qr=["#2c7df7","#22c55e","#f59e0b","#ec4899"];function Qd(e){return e>=1e6?`${(e/1e6).toFixed(2)}M ê©`:e>=1e3?`${(e/1e3).toFixed(1)}K ê©`:`${e.toFixed(2)} ê©`}function bh(e){return`https://app.templewallet.com/delegating?baker=${e}`}function c3({apy:e}){if(e===null)return a.jsx("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:32",style:{color:"rgba(255,255,255,0.25)"},children:"â"});const t=e>=8?"#22c55e":e>=5?"#f59e0b":"#ef4444";return a.jsxs("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:35",style:{display:"inline-flex",alignItems:"center",padding:"0.2rem 0.5rem",borderRadius:"20px",background:`${t}18`,border:`1px solid ${t}40`,color:t,fontWeight:800,fontSize:"0.78rem"},children:[e.toFixed(2),"%"]})}function H4e({address:e}){const[t,r]=E.useState(!1);return a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:45",style:{position:"relative",display:"inline-block"},children:[a.jsxs("a",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:46",href:bh(e),target:"_blank",rel:"nofollow noopener noreferrer",onClick:n=>n.stopPropagation(),onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),onFocus:()=>r(!0),onBlur:()=>r(!1),style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",padding:"0.35rem 0.75rem",background:"rgba(249,115,22,0.15)",border:"1px solid rgba(249,115,22,0.35)",borderRadius:"4px",color:"#f97316",fontWeight:700,fontSize:"0.7rem",textDecoration:"none",whiteSpace:"nowrap",transition:"background 0.15s, border-color 0.15s"},onMouseOver:n=>{n.currentTarget.style.background="rgba(249,115,22,0.25)",n.currentTarget.style.borderColor="rgba(249,115,22,0.6)"},onMouseOut:n=>{n.currentTarget.style.background="rgba(249,115,22,0.15)",n.currentTarget.style.borderColor="rgba(249,115,22,0.35)"},children:["Delegate ",a.jsx(ve,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:55",size:10})]}),t&&a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:58",style:{position:"absolute",bottom:"calc(100% + 8px)",right:0,background:"#1a2f52",border:"1px solid rgba(44,125,247,0.3)",borderRadius:"6px",padding:"0.6rem 0.85rem",width:"210px",zIndex:50,boxShadow:"0 8px 24px rgba(0,0,0,0.5)",pointerEvents:"none"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:59",style:{position:"absolute",bottom:"-5px",right:"18px",width:"9px",height:"9px",background:"#1a2f52",border:"1px solid rgba(44,125,247,0.3)",borderTop:"none",borderLeft:"none",transform:"rotate(45deg)"}}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:60",style:{display:"flex",alignItems:"flex-start",ga
1118p:"0.5rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:61",style:{fontSize:"1rem",flexShrink:0},children:"ðï¸"}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:62",children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:63",style:{fontWeight:800,color:"#fff",fontSize:"0.75rem",marginBottom:"0.2rem"},children:"Opens Temple Wallet"}),a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:64",style:{fontSize:"0.7rem",color:"rgba(255,255,255,0.55)",lineHeight:1.5},children:"Pre-filled with this baker's address so you can delegate in one click."})]})]})]})]})}function q4e({address:e,onClose:t}){const{data:r,isLoading:n}=ee.explorer.bakerDetail.useQuery({address:e});E.useEffect(()=>{const i=o=>{o.key==="Escape"&&t()};return window.addEventListener("keydown",i),()=>window.removeEventListener("keydown",i)},[t]),E.useEffect(()=>(document.body.style.overflow="hidden",()=>{document.body.style.overflow=""}),[]);const s=r?Math.max(...r.cycles.map(i=>i.apy??0),1):1;return a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:84",style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.75)",zIndex:1e3,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.5rem"},onClick:i=>{i.target===i.currentTarget&&t()},children:a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:86",style:{background:"#05152e",border:"1px solid rgba(44,125,247,0.25)",borderRadius:"12px",width:"100%",maxWidth:"680px",maxHeight:"95vh",overflow:"auto",boxShadow:"0 24px 60px rgba(0,0,0,0.7)"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:87",style:{padding:"1.25rem 1.5rem",borderBottom:"1px solid rgba(255,255,255,0.07)",display:"flex",alignItems:"center",justifyContent:"space-between",position:"sticky",top:0,background:"#05152e",zIndex:1},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:88",style:{display:"flex",alignItems:"center",gap:"0.75rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:89",style:{width:"36px",height:"36px",background:"rgba(249,115,22,0.2)",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsx(ec,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:90",size:18,style:{color:"#f97316"}})}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:92",children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:93",style:{fontWeight:900,color:"#fff",fontSize:"1rem"},children:n?"Loadingâ¦":r?.alias||"Unknown Baker"}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:94",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.35)",fontFamily:"monospace"},children:[e.slice(0,20),"â¦"]})]})]}),a.jsx("button",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:97",onClick:t,style:{background:"rgba(255,255,255,0.07)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"6px",padding:"0.4rem",cursor:"pointer",color:"rgba(255,255,255,0.5)",display:"flex"},children:a.jsx(xr,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:98",size:16})})]}),a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:101",style:{padding:"1.5rem"},children:n?a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:103",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(120px, 1fr))",gap:"0.75rem"},children:Array.from({length:6}).map((i,o)=>a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:104",style:{background:"rgba(255,255,255,0.04)",borderRadius:"8px",padding:"1rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:104",className:"skeleton",style:{height:"10px",width:"60%",marginBottom:"8px"}}),a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:104",className:"skeleton",style:{height:"20px",width:"80%"}})]},o))}):r?a.jsxs(a.Fragment,{children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:108",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(120px, 1fr))",gap:"0.5rem",marginBottom:"1.25rem"},children:[{label:"Avg APY (10 cycles)",value:r.avgApy!=null?`${r.avgApy}%`:"â",color:r.avgApy!=null?r.avgApy>=8?"#22c55e":r.avgApy>=5?"#f59e0b":"#ef4444":"rgba(255,255,255,0.4)"},{label:"Avg Uptime",value:r.avgUptime!=null?`${r.avgUptime}%`:"â",color:r.avgUptime!=null?r.avgUptime>=99?"#22c55e":"#f59e0b":"rgba(255,255,255,0.4)"},{label:"Fee Rate",value:r.feeRate!=null?`${r.feeRate}%`:"â",color:r.feeRate!=null?r.feeRate<=5?"#22c55e":r.feeRate<=15?"#f59e0b":"#ef4444":"rgba(255,255,255,0.4)"},{label:"Staking Balance",value:Qd(r.stakingBalance),color:"#f97316"}
1118,{label:"Delegators",value:r.numDelegators.toLocaleString(),color:"#2c7df7"},{label:"Active Since",value:r.activeSince?new Date(r.activeSince).getFullYear().toString():"â",color:"rgba(255,255,255,0.7)"}].map(i=>a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:117",style:{background:"rgba(255,255,255,0.04)",border:"1px solid rgba(255,255,255,0.06)",borderRadius:"8px",padding:"0.9rem 1rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:118",style:{fontSize:"0.62rem",fontWeight:700,color:"rgba(255,255,255,0.35)",textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:"0.4rem"},children:i.label}),a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:119",style:{fontSize:"1.1rem",fontWeight:900,color:i.color},children:i.value})]},i.label))}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:124",style:{marginBottom:"1.5rem"},children:[a.jsx("h3",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:125",style:{fontSize:"0.75rem",fontWeight:800,color:"rgba(255,255,255,0.5)",textTransform:"uppercase",letterSpacing:"0.08em",margin:"0 0 0.75rem"},children:"Live Baker Report"}),a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:126",style:{position:"relative",overflow:"hidden",borderRadius:"8px"},children:a.jsx("iframe",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:127",src:`https://tezos.systems/widgets/baker-card.html?theme=abyss&baker=${e}&accent=2c7df7`,width:"100%",height:"220",frameBorder:0,scrolling:"no",title:"Baker Card",style:{display:"block",border:"none",borderRadius:"8px",minHeight:"180px"}})})]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:138",style:{marginBottom:"1.5rem"},children:[a.jsx("h3",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:139",style:{fontSize:"0.75rem",fontWeight:800,color:"rgba(255,255,255,0.5)",textTransform:"uppercase",letterSpacing:"0.08em",margin:"0 0 0.75rem"},children:"APY History â Last 10 Cycles"}),a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:140",style:{display:"flex",alignItems:"flex-end",gap:"6px",height:"80px"},children:r.cycles.slice().reverse().map(i=>{const o=i.apy!=null?Math.max(4,i.apy/s*100):4,l=i.apy!=null?i.apy>=8?"#22c55e":i.apy>=5?"#f59e0b":"#ef4444":"rgba(255,255,255,0.1)";return a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:145",style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",gap:"4px"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:146",style:{fontSize:"0.55rem",color:"rgba(255,255,255,0.35)"},children:i.apy!=null?`${i.apy}%`:"â"}),a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:147",style:{width:"100%",height:`${o}%`,background:l,borderRadius:"3px 3px 0 0",minHeight:"4px",opacity:.85}}),a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:148",style:{fontSize:"0.5rem",color:"rgba(255,255,255,0.2)"},children:i.cycle})]},i.cycle)})})]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:154",style:{overflowX:"auto",marginBottom:"1.5rem"},children:[a.jsx("h3",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:155",style:{fontSize:"0.75rem",fontWeight:800,color:"rgba(255,255,255,0.5)",textTransform:"uppercase",letterSpacing:"0.08em",margin:"0 0 0.75rem"},children:"Cycle Breakdown"}),a.jsxs("table",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:156",style:{width:"100%",borderCollapse:"collapse",fontSize:"0.78rem"},children:[a.jsx("thead",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:157",children:a.jsx("tr",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:157",style:{borderBottom:"1px solid rgba(255,255,255,0.07)"},children:["Cycle","APY","Uptime","Rewards","Blocks","Missed"].map(i=>a.jsx("th",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:159",style:{padding:"0.5rem 0.75rem",textAlign:"left",fontWeight:700,color:"rgba(255,255,255,0.35)",fontSize:"0.62rem",textTransform:"uppercase",letterSpacing:"0.07em",whiteSpace:"nowrap"},children:i},i))})}),a.jsx("tbody",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:162",children:r.cycles.map((i,o)=>a.jsxs("tr",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:164",style:{borderBottom:o<r.cycles.length-1?"1px solid rgba(255,255,255,0.04)":"none"},children:[a.jsx("td",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:165",style:{padding:"0.5rem 0.75rem",color:"rgba(255,255,255,0.5)",fontWeight:600},children:i.cycle}),a.jsx("td",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:166",style:{padding:"0.5rem 0.75rem"},children:a.jsx(c3,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:166",apy:i.apy})}),a.jsx("td",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:167",style:{padding:"0.5rem 0.75rem",color:i.uptime!=null?i.uptime>=99?"#22c55e":"#f59e0b":"rgba(255,255,255,0.3)",fontWeight:700},children:i.uptime!=null?`${i.uptime}%`:"â"}),a.jsx("td",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:168",style:{padding:"0.5rem 0.75rem",color:"#f97316",fontWeight:600,whiteSpace:"nowrap"},children:Qd(i.rewards)}),a.jsxs("td",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:169",style:{padding:"0.5rem 0.75rem",color:"rgba(255,255,255,0.6)"}
1118,children:[i.blocks,"/",i.expectedBlocks]}),a.jsx("td",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:170",style:{padding:"0.5rem 0.75rem",color:i.missedBlocks>0?"#ef4444":"rgba(255,255,255,0.3)"},children:i.missedBlocks>0?i.missedBlocks:"â"})]},i.cycle))})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:176",style:{display:"flex",gap:"0.75rem",flexWrap:"wrap"},children:[a.jsxs("a",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:177",href:bh(e),target:"_blank",rel:"nofollow noopener noreferrer",style:{flex:1,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"0.5rem",padding:"0.75rem 1.25rem",background:"linear-gradient(135deg, #f97316, #ea580c)",borderRadius:"6px",color:"#fff",fontWeight:700,fontSize:"0.85rem",textDecoration:"none",transition:"transform 0.15s"},onMouseEnter:i=>i.currentTarget.style.transform="translateY(-1px)",onMouseLeave:i=>i.currentTarget.style.transform="translateY(0)",children:[a.jsx(ve,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:181",size:14})," Delegate to this Baker"]}),a.jsxs($,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:183",href:`/explorer/address/${e}`,onClick:t,style:{flex:1,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"0.5rem",padding:"0.75rem 1.25rem",background:"rgba(44,125,247,0.1)",border:"1px solid rgba(44,125,247,0.3)",borderRadius:"6px",color:"#2c7df7",fontWeight:700,fontSize:"0.85rem",textDecoration:"none"},children:["View Full Address ",a.jsx(Le,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:185",size:14})]})]})]}):a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:189",style:{padding:"2rem",textAlign:"center",color:"rgba(255,255,255,0.3)"},children:"Failed to load baker data."})})]})})}function U4e({addresses:e,allBakers:t,onClose:r}){const n=[ee.explorer.bakerDetail.useQuery({address:e[0]??""},{enabled:!!e[0]}),ee.explorer.bakerDetail.useQuery({address:e[1]??""},{enabled:!!e[1]}),ee.explorer.bakerDetail.useQuery({address:e[2]??""},{enabled:!!e[2]}),ee.explorer.bakerDetail.useQuery({address:e[3]??""},{enabled:!!e[3]})];E.useEffect(()=>{const d=u=>{u.key==="Escape"&&r()};return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[r]),E.useEffect(()=>(document.body.style.overflow="hidden",()=>{document.body.style.overflow=""}),[]);const s=e.map((d,u)=>({addr:d,data:n[u].data,loading:n[u].isLoading})),i=s.some(d=>d.loading),o=Array.from(new Set(s.flatMap(d=>(d.data?.cycles??[]).map(u=>u.cycle)))).sort((d,u)=>u-d).slice(0,10),l=Math.max(...s.flatMap(d=>(d.data?.cycles??[]).map(u=>u.apy??0)),1);return a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:227",style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.8)",zIndex:1e3,display:"flex",alignItems:"center",justifyContent:"center",padding:"1rem"},onClick:d=>{d.target===d.currentTarget&&r()},children:a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:229",style:{background:"#05152e",border:"1px solid rgba(44,125,247,0.25)",borderRadius:"12px",width:"100%",maxWidth:"900px",maxHeight:"92vh",overflow:"auto",boxShadow:"0 24px 60px rgba(0,0,0,0.7)"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:231",style:{padding:"1.25rem 1.5rem",borderBottom:"1px solid rgba(255,255,255,0.07)",display:"flex",alignItems:"center",justifyContent:"space-between",position:"sticky",top:0,background:"#05152e",zIndex:1},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:232",style:{display:"flex",alignItems:"center",gap:"0.75rem"},children:[a.jsx(cA,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:233",size:20,style:{color:"#2c7df7"}}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:234",children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:235",style:{fontWeight:900,color:"#fff",fontSize:"1rem"},children:"Compare Bakers"}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:236",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.4)"},children:[e.length," bakers selected"]})]})]}),a.jsx("button",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:239",onClick:r,style:{background:"rgba(255,255,255,0.07)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"6px",padding:"0.4rem",cursor:"pointer",color:"rgba(255,255,255,0.5)",display:"flex"},children:a.jsx(xr,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:240",size:16})})]}),a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:244",style:{padding:"1.5rem"},children:i?a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:246",style:{textAlign:"center",padding:"3rem",color:"rgba(255,255,255,0.4)"},children:"Loading baker dataâ¦"}):a.jsxs(a.Fragment,{children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:250",style:{display:"flex",gap:"0.75rem",flexWrap:"wrap",marginBottom:"1.5rem"},children:s.map((d,u)=>a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:252",style:{display:"flex",alignItems:"center",gap:"0.5rem",padding:"0.4rem 0.9rem",background:`${qr[u]}18`,border:`1px solid ${qr[u]}50`,borderRadius:"20px"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:253",style:{width:"10px",height:"10px",borderRadius:"50%",background:qr[u],flexShrink:0}}),a.jsx("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:254",style:{fontWeight:700,color:"#fff",fontSize:"0.82rem"},children:d.data?.alias||"Unknown Baker"}),a.jsxs("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:255",style:{fontSize:"0.62rem",color:"rgba(255,255,255,0.35)",fontFamily:"monospace"},children:[d.addr.slice(0,8),"â¦"]})]},d.addr))}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:261",style:{marginBottom:"2rem"},children:[a.jsx("h3",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:262",style:{fontSize:"0.75rem",fontWeight:800,color:"rgba(255,255,255,0.5)",textTransform:"uppercase",letterSpacing:"0.08em",margin:"0 0 0.75rem"},children:"Key Stats"}),a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:263",style:{overflowX:"auto"},children:a.jsxs("table",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:264",style:{width:"100%",borderCollapse:"collapse",fontSize:"0.82rem"},children:[a.jsx("thead",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:265",children:a.jsxs("tr",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:266",style:{borderBottom:"1px solid rgba(255,255,255,0.08)"},children:[a.jsx("th",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:267",style:{padding:"0.6rem 0.75rem",textAlign:"left",fontWeight:700,color:"rgba(255,255,255,0.35)",fontSize:"0.62rem",textTransform:"uppercase",letterSpacing:"0.07em"},children:"Metric"}),s.map((d,u)=>a.jsx("th",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:269",style:{padding:"0.6rem 0.75rem",textAlign:"left",fontWeight:700,color:qr[u],fontSize:"0.75rem"},children:d.data?.alias||"Unknown"},d.addr))]})}),a.jsx("tbody",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:275",children:[{label:"Avg APY (10 cycles)",get:d=>d?.avgApy!=null?`${d.avgApy}%`:"â",highlight:d=>d?.avgApy!=null?d.avgApy>=8?"#22c55e":d.avgApy>=5?"#f59e0b":"#ef4444":"rgba(255,255,255,0.4)"},{label:"Avg Uptime",get:d=>d?.avgUptime!=null?`${d.avgUptime}%`:"â",highlight:d=>d?.avgUptime!=null?d.avgUptime>=99?"#22c55e":"#f59e0b":"rgba(255,255,255,0.4)"},{label:"Fee Rate",get:d=>d?.feeRate!=null?`${d.feeRate}%`:"â",highlight:d=>d?.feeRate!=null?d.feeRate<=5?"#22c55e":d.feeRate<=15?"#f59e0b":"#ef4444":"rgba(255,255,255,0.4)"},{label:"Staking Balance",get:d=>d?Qd(d.stakingBalance):"â",highlight:()=>"#f97316"},{label:"Delegators",get:d=>
1118d?d.numDelegators.toLocaleString():"â",highlight:()=>"rgba(255,255,255,0.7)"},{label:"Active Since",get:d=>d?.activeSince?new Date(d.activeSince).getFullYear().toString():"â",highlight:()=>"rgba(255,255,255,0.6)"}].map((d,u)=>a.jsxs("tr",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:284",style:{borderBottom:u<5?"1px solid rgba(255,255,255,0.04)":"none"},children:[a.jsx("td",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:285",style:{padding:"0.6rem 0.75rem",color:"rgba(255,255,255,0.45)",fontSize:"0.78rem",fontWeight:600},children:d.label}),s.map((g,f)=>a.jsx("td",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:287",style:{padding:"0.6rem 0.75rem",fontWeight:800,color:d.highlight(g.data),fontSize:"0.85rem"},children:d.get(g.data)},g.addr))]},d.label))})]})})]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:299",style:{marginBottom:"2rem"},children:[a.jsx("h3",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:300",style:{fontSize:"0.75rem",fontWeight:800,color:"rgba(255,255,255,0.5)",textTransform:"uppercase",letterSpacing:"0.08em",margin:"0 0 0.75rem"},children:"APY History â Last 10 Cycles (side-by-side)"}),a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:304",style:{display:"flex",gap:"1rem",flexWrap:"wrap",marginBottom:"0.75rem"},children:s.map((d,u)=>a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:306",style:{display:"flex",alignItems:"center",gap:"0.4rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:307",style:{width:"12px",height:"12px",borderRadius:"2px",background:qr[u]}}),a.jsx("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:308",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.6)",fontWeight:600},children:d.data?.alias||"Unknown"})]},d.addr))}),a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:313",style:{display:"flex",alignItems:"flex-end",gap:"4px",height:"120px"},children:o.map(d=>a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:315",style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",gap:"2px"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:317",style:{display:"flex",alignItems:"flex-end",gap:"2px",width:"100%",height:"95px"},children:s.map((u,g)=>{const m=(u.data?.cycles??[]).find(S=>S.cycle===d)?.apy??null,y=m!=null?Math.max(3,m/l*100):3;return a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:323",title:m!=null?`${u.data?.alias||"Baker"}: ${m}%`:"No data",style:{flex:1,height:`${y}%`,background:m!=null?qr[g]:"rgba(255,255,255,0.06)",borderRadius:"2px 2px 0 0",minHeight:"3px",opacity:m!=null?.85:.4,transition:"opacity 0.15s"},onMouseEnter:S=>S.currentTarget.style.opacity="1",onMouseLeave:S=>S.currentTarget.style.opacity=m!=null?"0.85":"0.4"},g)})}),a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:331",style:{fontSize:"0.5rem",color:"rgba(255,255,255,0.2)",whiteSpace:"nowrap"},children:d})]},d))})]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:338",style:{marginBottom:"1.5rem"},children:[a.jsx("h3",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:339",style:{fontSize:"0.75rem",fontWeight:800,color:"rgba(255,255,255,0.5)",textTransform:"uppercase",letterSpacing:"0.08em",margin:"0 0 0.75rem"},children:"APY Per Cycle"}),a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:340",style:{overflowX:"auto"},children:a.jsxs("table",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:341",style:{width:"100%",borderCollapse:"collapse",fontSize:"0.78rem"},children:[a.jsx("thead",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:342",children:a.jsxs("tr",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:343",style:{borderBottom:"1px solid rgba(255,255,255,0.08)"},children:[a.jsx("th",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:344",style:{padding:"0.5rem 0.75rem",textAlign:"left",fontWeight:700,color:"rgba(255,255,255,0.35)",fontSize:"0.62rem",textTransform:"uppercase"},children:"Cycle"}),s.map((d,u)=>a.jsx("th",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:346",style:{padding:"0.5rem 0.75rem",textAlign:"left",fontWeight:700,color:qr[u],fontSize:"0.72rem"},children:d.data?.alias||"Unknown"},d.addr))]})}),a.jsx("tbody",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:352",children:o.map((d,u)=>a.jsxs("tr",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:354",style:{borderBottom:u<o.length-1?"1px solid rgba(255,255,255,0.04)":"none"},children:[a.jsx("td",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:355",style:{padding:"0.5rem 0.75rem",color:"rgba(255,255,255,0.45)",fontWeight:600},children:d}),s.map((g,f)=>{const m=(g.data?.cycles??[]).find(y=>y.cycle===d);return a.jsx("td",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:358",style:{padding:"0.5rem 0.75rem"},children:a.jsx(c3,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:358",apy:m?.apy??null})},g.addr)})]},d))})]})})]}),a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:368",style:{display:"flex",gap:"0.6rem",flexWrap:"wrap"},children:s.map((d,u)=>a.jsxs("a",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:370",href:bh(d.addr),target:"_blank",rel:"nofollow noopener noreferrer",style:{flex:1,minWidth:"160px",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"0.4rem",padding:"0.65rem 1rem",background:`${qr[u]}20`,border:`1px solid ${qr[u]}50`,borderRadius:"6px",color:qr[u],fontWeight:700,fontSize:"0.78rem",textDecoration:"none",transition:"background 0.15s"},onMouseEnter:g=>g.currentTarget.style.background=`${qr[u]}35`,onMouseLeave:g=>g.currentTarget.style.background=`${qr[u]}20`,children:[a.jsx(ve,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:374",size:12})," Delegate to ",d.data?.alias||"Baker"]},d.addr))})]})})]})})}function G4e({bakers:e}){const[t,r]=E.useState("1000"),[n,s]=E.useState(!1),[i,o]=E.useState(null),[l,d]=E.useState(!1),[u,g]=E.useState(""),f=parseFloat(t)||0,m=e.filter(k=>k.apy!=null).sort((k,P)=>(P.apy??0)-(k.apy??0)),y=i?m.find(k=>k.address===i):null,S=y?[y,...m.filter(k=>k.address!==i).slice(0,2)]:m.slice(0,3),b=u.trim()?m.filter(k=>(k.alias||"").toLowerCase().includes(u.toLowerCase())||k.address.toLowerCase().includes(u.toLowerCase())):m,v=y||m[0],j=()=>
1118{if(!v||f===0)return;const k=v.apy,P=(f*(Math.pow(1+k/100/12,12)-1)).toFixed(2),O=(f*(Math.pow(1+k/100/12,1)-1)).toFixed(2),T=(f*k/100/365).toFixed(2),C=`XTZ Staking Projections (${v.alias||v.address.slice(0,12)}) 1119Amount: ${f.toLocaleString()} XTZ | APY: ${k.toFixed(2)}% 1120Daily: +${T} XTZ | Monthly: +${O} XTZ | Annual: +${P} XTZ 112112-month compound total: +${P} XTZ 1122Source: https://xtz.news/explorer/bakers`;navigator.clipboard.writeText(C).then(()=>{d(!0),setTimeout(()=>d(!1),2500)})};return n?a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:450",style:{marginBottom:"1.25rem",background:"#05152e",border:"1px solid rgba(44,125,247,0.2)",borderRadius:"10px",overflow:"hidden"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:452",style:{padding:"0.9rem 1.25rem",borderBottom:"1px solid rgba(255,255,255,0.06)",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:453",style:{display:"flex",alignItems:"center",gap:"0.6rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:454",style:{fontSize:"1rem"},children:"ð§"}),a.jsx("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:455",style:{fontWeight:800,color:"#fff",fontSize:"0.88rem"},children:"Staking Calculator"}),a.jsx("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:456",style:{fontSize:"0.68rem",color:"rgba(255,255,255,0.3)"},children:"Estimated annual earnings based on 30-day APY"})]}),a.jsx("button",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:458",onClick:()=>s(!1),style:{background:"none",border:"none",cursor:"pointer",color:"rgba(255,255,255,0.35)",display:"flex"},children:a.jsx(xr,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:459",size:15})})]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:463",style:{padding:"1rem 1.25rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:465",style:{display:"flex",alignItems:"center",gap:"0.75rem",marginBottom:"1rem",flexWrap:"wrap"},children:[a.jsx("label",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:466",style:{fontSize:"0.78rem",fontWeight:700,color:"rgba(255,255,255,0.6)",whiteSpace:"nowrap"},children:"Your XTZ amount:"}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:467",style:{position:"relative",display:"flex",alignItems:"center"},children:[a.jsx("input",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:468",type:"number",min:"0",value:t,onChange:k=>r(k.target.value),style:{padding:"0.5rem 2.5rem 0.5rem 0.75rem",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(44,125,247,0.3)",borderRadius:"6px",color:"#fff",fontSize:"0.9rem",fontWeight:700,outline:"none",width:"140px",fontFamily:"inherit"},onFocus:k=>k.currentTarget.style.borderColor="#2c7df7",onBlur:k=>k.currentTarget.style.borderColor="rgba(44,125,247,0.3)"}),a.jsx("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:476",style:{position:"absolute",right:"0.6rem",color:"rgba(255,255,255,0.4)",fontSize:"0.82rem",fontWeight:700,pointerEvents:"none"},children:"É"})]}),a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:479",style:{display:"flex",gap:"0.35rem"},children:[100,1e3,5e3,1e4].map(k=>a.jsx("button",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:481",onClick:()=>r(String(k)),style:{padding:"0.35rem 0.65rem",background:parseFloat(t)===k?"rgba(44,125,247,0.25)":"rgba(255,255,255,0.05)",border:`1px solid ${parseFloat(t)===k?"rgba(44,125,247,0.5)":"rgba(255,255,255,0.1)"}`,borderRadius:"4px",color:parseFloat(t)===k?"#2c7df7":"rgba(255,255,255,0.5)",fontSize:"0.72rem",fontWeight:600,cursor:"pointer"},children:k.toLocaleString()},k))})]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:490",style:{marginBottom:"1rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:491",style:{fontSize:"0.72rem",fontWeight:700,color:"rgba(255,255,255,0.5)",marginBottom:"0.5rem"},children:"Choose a baker to calculate with:"}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:492",style:{display:"flex",gap:"0.5rem",flexWrap:"wrap",alignItems:"center"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:494",style:{position:"relative",flex:"1 1 200px"},children:[a.jsx(ft,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:495",size:12,style:{position:"absolute",left:"0.6rem",top:"50%",transform:"translateY(-50%)",color:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),a.jsx("input",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:496",value:u,onChange:k=>
1122g(k.target.value),placeholder:"Search baker name or addressâ¦",style:{width:"100%",padding:"0.45rem 0.75rem 0.45rem 2rem",background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"5px",color:"#fff",fontSize:"0.78rem",outline:"none",fontFamily:"inherit",transition:"border-color 0.15s"},onFocus:k=>k.currentTarget.style.borderColor="#2c7df7",onBlur:k=>k.currentTarget.style.borderColor="rgba(255,255,255,0.1)"})]}),a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:503",style:{display:"flex",gap:"0.35rem"},children:[{label:"â Best APY",baker:m[0]},{label:"ð¥ Most Delegators",baker:[...m].sort((k,P)=>P.numDelegators-k.numDelegators)[0]},{label:"ð¢ Most Space",baker:[...m].filter(k=>k.availableSpace!=null).sort((k,P)=>(P.availableSpace??0)-(k.availableSpace??0))[0]}].filter(k=>k.baker).map(k=>a.jsx("button",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:509",onClick:()=>{o(k.baker.address),g("")},style:{padding:"0.35rem 0.65rem",background:i===k.baker.address?"rgba(44,125,247,0.25)":"rgba(255,255,255,0.05)",border:`1px solid ${i===k.baker.address?"rgba(44,125,247,0.5)":"rgba(255,255,255,0.1)"}`,borderRadius:"4px",color:i===k.baker.address?"#2c7df7":"rgba(255,255,255,0.5)",fontSize:"0.68rem",fontWeight:600,cursor:"pointer",whiteSpace:"nowrap"},children:k.label},k.label))})]}),(u||!i)&&a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:519",style:{marginTop:"0.5rem",maxHeight:"180px",overflowY:"auto",background:"rgba(0,0,0,0.4)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"6px"},children:[b.slice(0,30).map((k,P)=>{const O=i===k.address,T=k.apy,C=f>0?(f*(Math.pow(1+T/100/12,12)-1)).toFixed(2):null;return a.jsxs("button",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:525",onClick:()=>{o(k.address),g("")},style:{width:"100%",display:"flex",alignItems:"center",gap:"0.75rem",padding:"0.6rem 0.875rem",background:O?"rgba(44,125,247,0.15)":"transparent",border:"none",borderBottom:P<b.length-1?"1px solid rgba(255,255,255,0.04)":"none",cursor:"pointer",textAlign:"left",transition:"background 0.1s"},onMouseEnter:A=>{O||(A.currentTarget.style.background="rgba(255,255,255,0.04)")},onMouseLeave:A=>{O||(A.currentTarget.style.background="transparent")},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:529",style:{flex:1,minWidth:0},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:530",style:{fontSize:"0.8rem",fontWeight:700,color:O?"#5a9fff":"#fff",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:[P===0&&!u&&a.jsx("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:531",style:{marginRight:"0.3rem"},children:"â"}),k.alias||"Unknown Baker"]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:533",style:{fontSize:"0.62rem",color:"rgba(255,255,255,0.3)",fontFamily:"monospace"},children:[k.address.slice(0,16),"â¦"]})]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:535",style:{textAlign:"right",flexShrink:0},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:536",style:{fontSize:"0.78rem",fontWeight:800,color:"#22c55e"},children:[T.toFixed(2),"%"]}),C&&f>0&&a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:537",style:{fontSize:"0.62rem",color:"#f97316",fontWeight:600},children:["+",C," ê©/yr"]})]})]},k.address)}),b.length===0&&a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:542",style:{padding:"1rem",textAlign:"center",color:"rgba(255,255,255,0.3)",fontSize:"0.78rem"},children:"No bakers found"})]})]}),v&&f>0&&(()=>{const k=v.apy,P=f*(Math.pow(1+k/100/12,12)-1),O=f*(Math.pow(1+k/100/12,1)-1),T=f*k/100/365;return a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:554",style:{background:"rgba(44,125,247,0.08)",border:"1px solid rgba(44,125,247,0.25)",borderRadius:"10px",padding:"1.1rem 1.25rem",marginBottom:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:555",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"0.875rem",flexWrap:"wrap",gap:"0.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:556",children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:557",style:{fontSize:"1rem",fontWeight:900,color:"#fff"},children:v.alias||"Unknown Baker"}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:558",style:{fontSize:"0.68rem",color:"rgba(255,255,255,0.35)",fontFamily:"monospace"},children:[v.address.slice(0,20),"â¦"]})]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:560",style:{display:"flex",gap:"0.5rem"},children:[a.jsxs("button",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:561",onClick:j,style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",padding:"0.35rem 0.85rem",background:l?"rgba(34,197,94,0.2)":"rgba(255,255,255,0.08)",border:`1px solid ${l?"rgba(34,197,94,0.4)":"rgba(255,255,255,0.15)"}`,borderRadius:"20px",color:l?"#22c55e":"rgba(255,255,255,0.6)",fontWeight:700,fontSize:"0.7rem",cursor:"pointer",transition:"all 0.2s"},children:[a.jsx(an,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:563",size:11})," ",l?"Copied!":"Copy results"]}),a.jsxs("a",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:565",href:bh(v.address),target:"_blank",rel:"nofollow noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",padding:"0.35rem 0.85rem",background:"rgba(249,115,22,0.15)",border:"1px solid rgba(249,115,22,0.35)",borderRadius:"20px",color:"#f97316",fontWeight:700,fontSize:"0.7rem",textDecoration:"none"},children:[a.jsx(ve,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:56
11227",size:11})," Delegate"]})]})]}),a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:571",style:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:"0.75rem"},children:[{label:"APY",value:`${k.toFixed(2)}%`,color:"#22c55e"},{label:"Daily",value:`+${T<.01?"<0.01":T.toFixed(2)} ê©`,color:"#f97316"},{label:"Monthly",value:`+${O.toFixed(2)} ê©`,color:"#f97316"},{label:"Annual (compound)",value:`+${P.toFixed(2)} ê©`,color:"#f97316"}].map(C=>a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:578",style:{textAlign:"center"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:579",style:{fontSize:"0.58rem",color:"rgba(255,255,255,0.35)",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.06em",marginBottom:"0.25rem"},children:C.label}),a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:580",style:{fontSize:"0.9rem",fontWeight:900,color:C.color},children:C.value})]},C.label))}),v.numDelegators>0&&a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:585",style:{marginTop:"0.75rem",display:"flex",gap:"1rem",flexWrap:"wrap"},children:[a.jsxs("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:586",style:{fontSize:"0.68rem",color:"rgba(255,255,255,0.35)"},children:["ð¥ ",v.numDelegators.toLocaleString()," delegators"]}),v.availableSpace!=null&&a.jsxs("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:588",style:{fontSize:"0.68rem",color:v.availableSpace>1e6?"#22c55e":"#f59e0b"},children:["ð¢ ",v.availableSpace>1e6?`${(v.availableSpace/1e6).toFixed(1)}M`:`${(v.availableSpace/1e3).toFixed(0)}K`," ê© space available"]}),v.availableSpace===null&&a.jsx("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:592",style:{fontSize:"0.68rem",color:"rgba(255,255,255,0.25)"},children:"Delegation only (no staking limit)"})]})]})})(),S.length>0&&f>0&&a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:600",style:{marginTop:"1.25rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:601",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"0.75rem",flexWrap:"wrap",gap:"0.5rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:602",style:{fontSize:"0.72rem",fontWeight:800,color:"rgba(255,255,255,0.5)",textTransform:"uppercase",letterSpacing:"0.08em",display:"flex",alignItems:"center",gap:"0.4rem"},children:"ð 12-Month Projected Cumulative Returns"}),a.jsxs("button",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:606",onClick:()=>{const k=S[0],P=(f*(Math.pow(1+k.apy/100/12,12)-1)).toFixed(2),O=`ð Staking ${f.toLocaleString()} XTZ with ${k.alias||"top baker"} (${k.apy.toFixed(2)}% APY) would earn me +${P} XTZ in 12 months! Check the XTZ.News Staking Calculator:`;window.open(`https://twitter.com/intent/tweet?text=${encodeURIComponent(O)}&url=${encodeURIComponent("https://xtz.news/explorer/bakers")}`,"_blank")},style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",padding:"0.35rem 0.85rem",background:"rgba(29,161,242,0.15)",border:"1px solid rgba(29,161,242,0.35)",borderRadius:"20px",color:"#1DA1F2",fontWeight:700,fontSize:"0.7rem",cursor:"pointer",transition:"background 0.15s"},onMouseEnter:k=>k.currentTarget.style.background="rgba(29,161,242,0.25)",onMouseLeave:k=>k.currentTarget.style.background="rgba(29,161,242,0.15)",children:[a.jsx("svg",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:617",width:"12",height:"12",viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:617",d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.744l7.73-8.835L1.254 2.25H8.08l4.253 5.622zm-1.161 17.52h1.833L7.084 4.126H5.117z"})}),"Share on X"]})]}),a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:622",style:{display:"flex",gap:"1rem",flexWrap:"wrap",marginBottom:"0.6rem"},children:S.map((k,P)=>a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:624",style:{display:"flex",alignItems:"center",gap:"0.35rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:625",style:{width:"10px",height:"10px",borderRadius:"2px",background:["#2c7df7","#22c55e","#f59e0b"][P]}}),a.jsxs("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:626",style:{fontSize:"0.68rem",color:"rgba(255,255,255,0.55)"},children:[k.alias||"Unknown"," (",k.apy.toFixed(1),"%)"]})]},k.address))}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:631",style:{background:"rgba(255,255,255,0.02)",borderRadius:"8px",padding:"1rem 0.75rem 0.5rem",overflow:"hidden"},children:[a.jsxs("svg",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:632",width:"100%",height:"120",viewBox:"0 0 600 120",preserveAspectRatio:"none",children:[S.map((k,P)=>{const O=k.apy,T=["#2c7df7","#22c55e","#f59e0b"],C=O/100/12,A=Array.from({length:12},(R,_)=>f*(Math.pow(1+C,_+1)-1)),N=f*(Math.pow(1+S[0].apy/100/12,12)-1),M=600/12/3-2,B=P*(M+1);return A.map((R,_)=>{const W=_*50+B+4,V=N>0?Math.max(3,R/N*95):3,F=110-V;return a.jsx("rect",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:650",x:W,y:F,width:M,height:V,fill:T[P],opacity:.8,rx:1,style:{transition:"height 0.3s, y 0.3s"},children:a.jsxs("title",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:653",children:[k.alias||"Baker",": +",R.toFixed(2)," ê© after month ",_+1]})},`${P}-${_}`)})}),Array.from({length:12},(k,P)=>a.jsxs("text",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:660",x:P*(600/12)+600/24,y:118,textAnchor:"middle",fontSize:"9",fill:"rgba(255,255,255,0.25)",children:["M",P+1]},P))]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:666",
1122style:{display:"flex",justifyContent:"space-between",marginTop:"0.25rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:667",style:{fontSize:"0.6rem",color:"rgba(255,255,255,0.2)"},children:"Month 1"}),a.jsxs("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:668",style:{fontSize:"0.6rem",color:"rgba(255,255,255,0.4)",fontWeight:700},children:["Top baker after 12 months: +",(f*(Math.pow(1+S[0].apy/100/12,12)-1)).toFixed(2)," ê©"]}),a.jsx("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:671",style:{fontSize:"0.6rem",color:"rgba(255,255,255,0.2)"},children:"Month 12"})]})]})]}),a.jsx("p",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:676",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.2)",margin:"0.75rem 0 0"},children:"Estimates based on 30-day APY with monthly compounding. Actual rewards vary by cycle. Not financial advice."})]})]}):a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:437",style:{marginBottom:"1rem",display:"flex",justifyContent:"flex-end"},children:a.jsx("button",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:438",onClick:()=>s(!0),style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",padding:"0.45rem 1rem",background:"rgba(44,125,247,0.1)",border:"1px solid rgba(44,125,247,0.25)",borderRadius:"6px",color:"#2c7df7",fontWeight:700,fontSize:"0.78rem",cursor:"pointer",transition:"background 0.15s"},onMouseEnter:k=>k.currentTarget.style.background="rgba(44,125,247,0.18)",onMouseLeave:k=>k.currentTarget.style.background="rgba(44,125,247,0.1)",children:"ð§ Staking Calculator"})})}function V4e({onInspect:e,onCompare:t}){const{data:r,isLoading:n}=ee.explorer.bestBaker.useQuery(void 0,{staleTime:3e5}),[s,i]=E.useState(!1);if(n)return a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:691",style:{marginBottom:"1.5rem",padding:"1.25rem 1.5rem",background:"#05152e",border:"1px solid rgba(44,125,247,0.15)",borderRadius:"10px"},children:a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:692",style:{display:"flex",alignItems:"center",gap:"0.75rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:693",className:"skeleton",style:{width:"36px",height:"36px",borderRadius:"8px",flexShrink:0}}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:694",style:{flex:1},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:695",className:"skeleton",style:{height:"12px",width:"200px",marginBottom:"8px"}}),a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:696",className:"skeleton",style:{height:"20px",width:"300px"}})]})]})});if(!r)return null;const o=r.activeSince?new Date().getFullYear()-new Date(r.activeSince).getFullYear():null;return a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:708",style:{marginBottom:"1.5rem",padding:"1.25rem 1.5rem",background:"linear-gradient(135deg, rgba(44,125,247,0.1) 0%, rgba(16,185,129,0.06) 100%)",border:"1px solid rgba(44,125,247,0.3)",borderRadius:"10px",position:"relative",overflow:"hidden"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:710",style:{position:"absolute",top:"-20px",right:"-20px",width:"120px",height:"120px",background:"radial-gradient(circle, rgba(44,125,247,0.15) 0%, transparent 70%)",pointerEvents:"none"}}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:712",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",flexWrap:"wrap",gap:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:713",style:{display:"flex",alignItems:"flex-start",gap:"1rem",flex:1,minWidth:"260px"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:715",style:{width:"40px",height:"40px",background:"rgba(44,125,247,0.2)",borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,fontSize:"1.2rem"},children:"â"}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:718",children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:719",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginBottom:"0.3rem",flexWrap:"wrap"},children:[a.jsx("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:720",style:{fontSize:"0.62rem",fontWeight:800,color:"#2c7df7",textTransform:"uppercase",letterSpacing:"0.1em",background:"rgba(44,125,247,0.15)",border:"1px solid rgba(44,125,247,0.3)",borderRadius:"20px",padding:"0.15rem 0.6rem"},children:"Best for Small Delegators"}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:721",style:{position:"relative",display:"inline-flex",alignItems:"center"},children:[a.jsx("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:722",style:{fontSize:"0.62rem",color:"rgba(255,255,255,0.3)"},children:"Auto-selected by APY + uptime + fee score"}),a.jsx("button",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:723",onClick:()=>i(l=>!l),style:{background:"none",border:"none",cursor:"pointer",color:"rgba(255,255,255,0.35)",padding:"0 0.25rem",display:"flex",alignItems:"center"}
1122,title:"How is this calculated?",children:a.jsx(i0,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:727",size:11})}),s&&a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:730",style:{position:"absolute",top:"calc(100% + 6px)",left:0,background:"#0d2a5e",border:"1px solid rgba(44,125,247,0.3)",borderRadius:"8px",padding:"0.85rem 1rem",width:"280px",zIndex:50,boxShadow:"0 8px 24px rgba(0,0,0,0.5)",fontSize:"0.72rem",color:"rgba(255,255,255,0.7)",lineHeight:1.6},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:731",style:{fontWeight:800,color:"#fff",marginBottom:"0.4rem",fontSize:"0.78rem"},children:"Recommendation Formula"}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:732",children:["Candidates: active bakers with ",a.jsx("strong",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:732",style:{color:"#f59e0b"},children:"5â500 delegators"})]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:733",style:{marginTop:"0.4rem"},children:["Score = ",a.jsx("strong",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:733",style:{color:"#22c55e"},children:"APY à 0.5"})," + ",a.jsx("strong",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:733",style:{color:"#2c7df7"},children:"(uptime â 99%) à 3"})," + ",a.jsx("strong",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:733",style:{color:"#f97316"},children:"fee score à 0.2"})]}),a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:734",style:{marginTop:"0.4rem",color:"rgba(255,255,255,0.45)",fontSize:"0.68rem"},children:"Fee score = max(0, 100 â fee% à 5). APY and uptime averaged over last 5 cycles."}),a.jsx("button",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:735",onClick:()=>i(!1),style:{marginTop:"0.6rem",background:"none",border:"none",cursor:"pointer",color:"rgba(255,255,255,0.4)",fontSize:"0.68rem",padding:0},children:"Dismiss"})]})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:740",style:{fontSize:"1.15rem",fontWeight:900,color:"#fff",marginBottom:"0.5rem"},children:[r.alias||"Unknown Baker",o!=null&&o>=2&&a.jsxs("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:743",style:{fontSize:"0.7rem",fontWeight:600,color:"rgba(255,255,255,0.35)",marginLeft:"0.5rem"},children:["· ",o,"y track record"]})]}),a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:747",style:{display:"flex",gap:"0.5rem",flexWrap:"wrap"},children:[{label:"Avg APY",value:`${r.avgApy}%`,color:"#22c55e"},{label:"Uptime",value:`${r.avgUptime}%`,color:"#2c7df7"},{label:"Fee",value:`${r.feeRate}%`,color:r.feeRate<=5?"#22c55e":r.feeRate<=15?"#f59e0b":"#ef4444"},{label:"Delegators",value:r.numDelegators.toLocaleString(),color:"rgba(255,255,255,0.6)"}].map(l=>a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:754",style:{display:"flex",alignItems:"center",gap:"0.3rem",padding:"0.25rem 0.65rem",background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"20px"},children:[a.jsx("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:755",style:{fontSize:"0.62rem",color:"rgba(255,255,255,0.35)",fontWeight:600},children:l.label}),a.jsx("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:756",style:{fontSize:"0.78rem",fontWeight:800,color:l.color},children:l.value})]},l.label))})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:764",style:{display:"flex",gap:"0.5rem",alignItems:"center",flexShrink:0,flexWrap:"wrap"},children:[a.jsxs("button",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:765",onClick:()=>e(r.address),style:{padding:"0.5rem 1rem",background:"rgba(44,125,247,0.15)",border:"1px solid rgba(44,125,247,0.35)",borderRadius:"6px",color:"#2c7df7",fontWeight:700,fontSize:"0.78rem",cursor:"pointer",display:"flex",alignItems:"center",gap:"0.35rem",transition:"background 0.15s"},onMouseEnter:l=>l.currentTarget.style.background="rgba(44,125,247,0.25)",onMouseLeave:l=>l.currentTarget.style.background="rgba(44,125,247,0.15)",children:[a.jsx(i0,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:770",size:13})," View Details"]}
1122),a.jsxs("button",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:772",onClick:()=>t(r.address),style:{padding:"0.5rem 1rem",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"6px",color:"rgba(255,255,255,0.7)",fontWeight:700,fontSize:"0.78rem",cursor:"pointer",display:"flex",alignItems:"center",gap:"0.35rem",transition:"background 0.15s"},onMouseEnter:l=>l.currentTarget.style.background="rgba(255,255,255,0.1)",onMouseLeave:l=>l.currentTarget.style.background="rgba(255,255,255,0.06)",children:[a.jsx(cA,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:777",size:13})," Compare"]}),a.jsxs("a",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:779",href:bh(r.address),target:"_blank",rel:"nofollow noopener noreferrer",style:{padding:"0.5rem 1.1rem",background:"linear-gradient(135deg, #f97316, #ea580c)",border:"none",borderRadius:"6px",color:"#fff",fontWeight:700,fontSize:"0.78rem",textDecoration:"none",display:"flex",alignItems:"center",gap:"0.35rem",boxShadow:"0 4px 12px rgba(249,115,22,0.3)",transition:"transform 0.15s"},onMouseEnter:l=>l.currentTarget.style.transform="translateY(-1px)",onMouseLeave:l=>l.currentTarget.style.transform="translateY(0)",children:[a.jsx(ve,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:786",size:13})," Delegate Now"]})]})]})]})}function zd({label:e,field:t,current:r,dir:n,onSort:s}){const i=r===t;return a.jsx("th",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:798",onClick:()=>s(t),style:{padding:"0.75rem 1rem",textAlign:"left",fontWeight:700,fontSize:"0.65rem",textTransform:"uppercase",letterSpacing:"0.08em",color:i?"#2c7df7":"rgba(255,255,255,0.4)",cursor:"pointer",whiteSpace:"nowrap",userSelect:"none",transition:"color 0.15s"},onMouseEnter:o=>{i||(o.currentTarget.style.color="rgba(255,255,255,0.7)")},onMouseLeave:o=>{i||(o.currentTarget.style.color="rgba(255,255,255,0.4)")},children:a.jsxs("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:802",style:{display:"inline-flex",alignItems:"center",gap:"0.25rem"},children:[e,i?n==="desc"?a.jsx(yi,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:804",size:11}):a.jsx(Jf,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:804",size:11}):a.jsx(fy,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:804",size:10,style:{opacity:.4}})]})})}function X4e({page:e,totalPages:t,onChange:r}){if(t<=1)return null;const n=[];if(t<=7)for(let o=1;o<=t;o++)n.push(o);else{n.push(1),e>3&&n.push("â¦");for(let o=Math.max(2,e-1);o<=Math.min(t-1,e+1);o++)n.push(o);e<t-2&&n.push("â¦"),n.push(t)}const s={minWidth:"32px",height:"32px",display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",border:"1px solid rgba(255,255,255,0.1)",background:"transparent",color:"rgba(255,255,255,0.5)",fontSize:"0.8rem",fontWeight:600,cursor:"pointer",transition:"all 0.15s",padding:"0 0.4rem"},i={...s,background:"#2c7df7",borderColor:"#2c7df7",color:"#fff"};return a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:825",style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"0.3rem",marginTop:"1.25rem",flexWrap:"wrap"},children:[a.jsx("button",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:826",disabled:e===1,onClick:()=>r(e-1),style:{...s,opacity:e===1?.3:1},children:a.jsx(Pn,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:826",size:14})}),n.map((o,l)=>o==="â¦"?a.jsx("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:828",style:{color:"rgba(255,255,255,0.3)",padding:"0 0.25rem"},children:"â¦"},`e${l}`):a.jsx("button",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:829",onClick:()=>r(o),style:o===e?i:s,onMouseEnter:d=>{o!==e&&(d.currentTarget.style.borderColor="rgba(44,125,247,0.5)")},onMouseLeave:d=>{o!==e&&(d.currentTarget.style.borderColor="rgba(255,255,255,0.1)")},children:o},o)),a.jsx("button",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:833",disabled:e===t,onClick:()=>r(e+1),style:{...s,opacity:e===t?.3:1},children:a.jsx(Le,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:833",size:14})})]})}function K4e(){Ie({title:"Tezos Baker Leaderboard | XTZ.News â Top Tezos Validators",description:"Compare Tezos bakers side-by-side. Real APY data, uptime, fee rates. Find the best baker to delegate your XTZ to.",keywords:"Tezos bakers, Tezos validators, Tezos staking APY, XTZ delegation, compare bakers",canonical:"https://xtz.news/explorer/bakers"});const{data:e=[],isLoading:t}=ee.explorer.bakers.useQuery({limit:50}),[r,n]=E.useState("apy"),[s,i]=E.useState("desc"),[o,l]=E.useState(""),[d,u]=E.useState(""),[g,f]=E.useState(1),[m,y]=E.useState(null),[S,b]=E.useState([]),[v,j]=E.useState(!1);function k(M,B){B.stopPropagation(),b(R=>R.includes(M)?R.filter(_=>_!==M):R.length>=Ad?R:[...R,M])}function P(M){r===M?i(B=>B==="desc"?"asc":"desc"):(n(M),i("desc")),f(1)}function O(M){M(),f(1)}const T=E.useMemo(()=>{let M=[...e];if(o.trim()){const B=o.toLowerCase();M=M.filter(R=>(R.alias||"").toLowerCase().includes(B)||R.address.toLowerCase().includes(B))}
1122return d!==""&&!isNaN(Number(d))&&(M=M.filter(B=>B.numDelegators>=Number(d))),M.sort((B,R)=>{if(r==="apy"){if(B.apy==null&&R.apy==null)return 0;if(B.apy==null)return 1;if(R.apy==null)return-1}const _=r==="availableSpace"?-1:0,W=B[r]??_,V=R[r]??_;return s==="desc"?V-W:W-V}),M},[e,r,s,o,d]),C=Math.max(1,Math.ceil(T.length/zx)),A=Math.min(g,C),N=T.slice((A-1)*zx,A*zx);return a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:904",style:{background:"#000",minHeight:"100vh"},children:[m&&a.jsx(q4e,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:906",address:m,onClose:()=>y(null)}),v&&S.length>=2&&a.jsx(U4e,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:908",addresses:S,allBakers:e,onClose:()=>j(!1)}),S.length>0&&a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:913",style:{position:"fixed",bottom:"1.5rem",left:"50%",transform:"translateX(-50%)",zIndex:100,background:"#0d2a5e",border:"1px solid rgba(44,125,247,0.4)",borderRadius:"12px",padding:"0.75rem 1.25rem",display:"flex",alignItems:"center",gap:"0.75rem",boxShadow:"0 8px 32px rgba(0,0,0,0.6)",backdropFilter:"blur(8px)",flexWrap:"wrap",maxWidth:"calc(100vw - 2rem)"},children:[a.jsx(cA,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:914",size:16,style:{color:"#2c7df7",flexShrink:0}}),a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:915",style:{display:"flex",gap:"0.4rem",flexWrap:"wrap"},children:S.map((M,B)=>{const R=e.find(_=>_.address===M);return a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:919",style:{display:"flex",alignItems:"center",gap:"0.3rem",padding:"0.25rem 0.6rem",background:`${qr[B]}20`,border:`1px solid ${qr[B]}50`,borderRadius:"20px"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:920",style:{width:"8px",height:"8px",borderRadius:"50%",background:qr[B]}}),a.jsx("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:921",style:{fontSize:"0.72rem",fontWeight:700,color:"#fff"},children:R?.alias||M.slice(0,8)+"â¦"}),a.jsx("button",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:922",onClick:_=>k(M,_),style:{background:"none",border:"none",cursor:"pointer",color:"rgba(255,255,255,0.4)",padding:"0",display:"flex",lineHeight:1},children:a.jsx(xr,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:923",size:11})})]},M)})}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:929",style:{display:"flex",gap:"0.5rem",marginLeft:"auto"},children:[S.length>=2&&a.jsxs("button",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:931",onClick:()=>j(!0),style:{padding:"0.45rem 1rem",background:"#2c7df7",border:"none",borderRadius:"6px",color:"#fff",fontWeight:700,fontSize:"0.78rem",cursor:"pointer",whiteSpace:"nowrap",transition:"background 0.15s"},onMouseEnter:M=>M.currentTarget.style.background="#1a6de0",onMouseLeave:M=>M.currentTarget.style.background="#2c7df7",children:["Compare ",S.length," Bakers"]}),S.length<Ad&&a.jsxs("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:939",style:{fontSize:"0.68rem",color:"rgba(255,255,255,0.35)",alignSelf:"center",whiteSpace:"nowrap"},children:["+",Ad-S.length," more"]}),a.jsx("button",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:943",onClick:()=>b([]),style:{background:"rgba(255,255,255,0.07)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"6px",padding:"0.4rem 0.6rem",cursor:"pointer",color:"rgba(255,255,255,0.4)",display:"flex",fontSize:"0.7rem"},children:"Clear"})]})]}),a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:951",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",borderBottom:"1px solid rgba(44,125,247,0.2)",padding:"2rem 0"},children:a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:952",className:"container",children:[a.jsxs("nav",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:953",style:{display:"flex",alignItems:"center",gap:"0.35rem",marginBottom:"1rem",fontSize:"0.75rem",color:"rgba(255,255,255,0.4)"},children:[a.jsx($,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:954",href:"/",style:{color:"rgba(255,255,255,0.4)",textDecoration:"none"},children:a.jsx(Qt,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:954",size:12})}),a.jsx(Le,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:955",size:10}),a.jsx($,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:956",href:"/explorer",style:{color:"rgba(255,255,255,0.4)",textDecoration:"none"},children:"Explorer"}),a.jsx(Le,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:957",size:10}),a.jsx("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:958",style:{color:"#fff"},children:"Bakers"})]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:960",style:{display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:961",style:{display:"flex",alignItems:"center",gap:"0.75rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:962",style:{width:"40px",height:"40px",background:"rgba(249,115,22,0.2)",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsx(ec,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:963",size:20,style:{color:"#f97316"}}
1122)}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:965",children:[a.jsx("h1",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:966",style:{fontSize:"1.8rem",fontWeight:900,color:"#fff",margin:0},children:"Baker Leaderboard"}),a.jsx("p",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:967",style:{fontSize:"0.8rem",color:"rgba(255,255,255,0.4)",margin:0},children:"Real APY · Sort & filter · Click row to inspect · Tick to compare"})]})]}),a.jsxs("a",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:970",href:"/how-to-stake-on-tezos",style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",padding:"0.6rem 1.25rem",background:"linear-gradient(135deg, #f97316, #ea580c)",borderRadius:"6px",color:"#fff",fontWeight:700,fontSize:"0.82rem",textDecoration:"none",boxShadow:"0 4px 14px rgba(249,115,22,0.35)",transition:"transform 0.15s"},onMouseEnter:M=>{M.currentTarget.style.transform="translateY(-1px)"},onMouseLeave:M=>{M.currentTarget.style.transform="translateY(0)"},children:[a.jsx(cr,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:974",size:14})," How to Delegate XTZ"]})]})]})}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:980",className:"container",style:{padding:"2rem 1.25rem",paddingBottom:S.length>0?"6rem":"2rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:982",style:{marginBottom:"1.75rem",padding:"1.5rem",background:"linear-gradient(135deg, rgba(249,115,22,0.12) 0%, rgba(234,88,12,0.06) 100%)",border:"1px solid rgba(249,115,22,0.3)",borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:983",style:{display:"flex",alignItems:"flex-start",gap:"1rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:984",style:{width:"44px",height:"44px",background:"rgba(249,115,22,0.2)",borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:a.jsx(cr,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:985",size:22,style:{color:"#f97316"}})}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:987",children:[a.jsx("h2",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:988",style:{fontSize:"1rem",fontWeight:900,color:"#fff",margin:"0 0 0.3rem"},children:"Earn up to ~9% APY by Delegating Your XTZ"}),a.jsxs("p",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:989",style:{fontSize:"0.82rem",color:"rgba(255,255,255,0.6)",margin:0,lineHeight:1.6,maxWidth:"520px"},children:[a.jsx("strong",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:990",style:{color:"#fff"},children:"Tick the checkbox"})," on up to 4 bakers to compare their APY history side-by-side. Click any row to inspect details. Then ",a.jsx("strong",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:990",style:{color:"#f97316"},children:"Delegate"})," in one click via Temple Wallet."]})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:994",style:{display:"flex",gap:"0.6rem",flexShrink:0},children:[a.jsxs("a",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:995",href:"/how-to-stake-on-tezos",style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",padding:"0.65rem 1.25rem",background:"linear-gradient(135deg, #f97316, #ea580c)",borderRadius:"6px",color:"#fff",fontWeight:700,fontSize:"0.82rem",textDecoration:"none",boxShadow:"0 4px 14px rgba(249,115,22,0.3)",transition:"transform 0.15s"},onMouseEnter:M=>M.currentTarget.style.transform="translateY(-1px)",onMouseLeave:M=>M.currentTarget.style.transform="translateY(0)",children:["Delegation Guide ",a.jsx(_e,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:999",size:13})]}),a.jsxs("a",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1001",href:"https://templewallet.com",target:"_blank",rel:"nofollow noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",padding:"0.65rem 1.25rem",background:"rgba(255,255,255,0.07)",border:"1px solid rgba(255,255,255,0.15)",borderRadius:"6px",color:"rgba(255,255,255,0.8)",fontWeight:600,fontSize:"0.82rem",textDecoration:"none",transition:"border-color 0.15s"},onMouseEnter:M=>M.currentTarget.style.borderColor="rgba(249,115,22,0.5)",onMouseLeave:M=>M.currentTarget.style.borderColor="rgba(255,255,255,0.15)",children:[a.jsx(ve,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1005",size:13})," Get Temple Wallet"]})]})]}),a.jsx(V4e,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1011",onInspect:M=>y(M),onCompare:M=>{b(B=>B.includes(M)?B:B.length<Ad?[...B,M]:B)}}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1019",style:{display:"flex",flexWrap:"wrap",gap:"0.75rem",marginBottom:"1rem",alignItems:"center"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1020",style:{position:"relative",flex:"1 1 220px",minWidth:"180px"},children:[a.jsx(ft,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1021",size:13,style:{position:"absolute",left:"0.75rem",top:"50%",transform:"translateY(-50%)",color:"rgba(255,255,255,0.35)",pointerEvents:"none"}}),a.jsx("input",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1022",value:o,onChange:M=>O(()=>l(M.target.value)),placeholder:"Search by baker name or addressâ¦",style:{width:"100%",padding:"0.55rem 0.75rem 0.55rem 2.2rem",background:"#05152e",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"5px",color:"#fff",fontSize:"0.8rem",outline:"none",fontFamily:"inherit",transition:"border-color 0.15s"},onFocus:M=>M.currentTarget.style.borderColor="#2c7df7",onBlur:M=>M.currentTarget.style.borderColor="rgba(255,255,255,0.12)"})]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1029",style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1030",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.4)",whiteSpace:"nowrap"},children:"Min delegators:"}),a.jsx("input",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1031",type:"number",min:0,value:d,onChange:M=>O(()=>u(M.target.value===""?"":Number(M.target.value))),placeholder:"Any",style:{width:"70px",padding:"0.55rem 0.6rem",background:"#05152e",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"5px",color:"#fff",fontSize:"0.8rem",outline:"none",fontFamily:"inherit",transition:"border-color 0.15s"},onFocus:M=>M.currentTarget.style.borderColor="#2c7df7",onBlur:M=>M.currentTarget.style.borderColor="rgba(255,255,255,0.12)"})]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1038",style:{display:"flex",gap:"0.4rem",flexWrap:"wrap"},children:[[{label:"Highest APY",key:"apy",dir:"desc"},{label:"Most Delegators",key:"numDelegators",dir:"desc"},{label:"Largest Baker",key:"stakingBalance",dir:"desc"},{label:"Most Space",key:"availableSpace",dir:"desc"}].map(M=>{const B=r===M.key&&s===M.dir;return a.jsx("button",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1047",onClick:()=>{n(M.key),i(M.dir),f(1)},style:{padding:"0.4rem 0.8rem",background:B?"rgba(44,125,247,0.2)":"rgba(255,255,255,0.05)",border:`1px solid ${B?"rgba(44,125,247,0.5)":"rgba(255,255,255,0.1)"}`,borderRadius:"20px",color:B?"#2c7df7":"rgba(255,255,255,0.5)",fontSize:"0.72rem",fontWeight:600,cursor:"pointer",transition:"all 0.15s",whiteSpace:"nowrap"},children:M.label},M.label)}),(o||d!=="")&&a.jsx("button",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1054",onClick:()=>O(()=>{l(""),u("")}),style:{padding:"0.4rem 0.8rem",background:"rgba(239,68,68,0.1)",border:"1px solid rgba(239,68,68,0.3)",borderRadius:"20px",color:"#ef4444",fontSize:"0.72rem",fontWeight:600,cursor:"pointer"},children:"Clear filters"})]}),a.jsxs("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1060",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.3)",marginLeft:"auto"},children:[T.length," baker",T.length!==1?"s":"",C>1&&` · page ${A}/${C}`]})]}),a.jsx(G4e,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1067",bakers:e}),a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1070",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"8px",overflow:"hidden"},children:a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1071",style:{overflowX:"auto"},children:a.jsxs("table",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1072",style:{width:"100%",borderCollapse:"collapse",fontSize:"0.82rem"},children:[a.jsx("thead",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1073",children:a.jsxs("tr",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1074",style:{borderBottom:"1px solid rgba(255,255,255,0.08)"},children:[a.jsx("th",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1076",style:{padding:"0.75rem 0.5rem 0.75rem 1rem",width:"36px"},children:a.jsx("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1077",style:{fontSize:"0.55rem",fontWeight:700,color:"rgba(255,255,255,0.25)",textTransform:"uppercase",letterSpacing:"0.06em"},children:"CMP"})}),a.jsx(zd,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1079",label:"Rank",field:"rank",current:r,dir:s,onSort:P}),a.jsx("th",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1080",style:{padding:"0.75rem 1rem",textAlign:"left",fontWeight:700,color:"rgba(255,255,255,0.4)",fontSize:"0.65rem",textTransform:"uppercase",letterSpacing:"0.08em"},children:"Baker"}),a.jsx(zd,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1081",label:"Staking Balance",field:"stakingBalance",current:r,dir:s,onSort:P}),a.jsx(zd,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1082",label:"Own Balance",field:"ownBalance",current:r,dir:s,onSort:P}),a.jsx(zd,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1083",label:"Delegators",field:"numDelegators",current:r,dir:s,onSort:P}),a.jsx(zd,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1084",label:"APY (30d)",field:"apy",current:r,dir:s,onSort:P}),a.jsx(zd,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1085",label:"Available Space",field:"availableSpace",current:r,dir:s,onSort:P}),a.jsx("th",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1086",style:{padding:"0.75rem 1rem"}})]})}),a.jsx("tbody",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1089",children:t?Array.from({length:zx}
1122).map((M,B)=>a.jsx("tr",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1092",style:{borderBottom:"1px solid rgba(255,255,255,0.04)"},children:a.jsx("td",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1093",colSpan:9,style:{padding:"0.75rem 1rem"},children:a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1093",className:"skeleton",style:{height:"14px",width:"100%"}})})},B)):N.length===0?a.jsx("tr",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1097",children:a.jsx("td",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1097",colSpan:9,style:{padding:"3rem",textAlign:"center",color:"rgba(255,255,255,0.3)",fontSize:"0.85rem"},children:"No bakers match your filters."})}):N.map((M,B)=>{const R=S.includes(M.address),_=S.indexOf(M.address),W=R?qr[_]:null,V=!R&&S.length>=Ad;return a.jsxs("tr",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1104",style:{borderBottom:B<N.length-1?"1px solid rgba(255,255,255,0.04)":"none",transition:"background 0.15s",cursor:"pointer",background:R?`${W}08`:"transparent"},onMouseEnter:F=>{R||(F.currentTarget.style.background="rgba(249,115,22,0.04)")},onMouseLeave:F=>{F.currentTarget.style.background=R?`${W}08`:"transparent"},onClick:()=>y(M.address),children:[a.jsx("td",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1110",style:{padding:"0.75rem 0.5rem 0.75rem 1rem"},onClick:F=>F.stopPropagation(),children:a.jsx("button",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1111",onClick:F=>k(M.address,F),disabled:V,title:V?`Max ${Ad} bakers`:R?"Remove from compare":"Add to compare",style:{width:"20px",height:"20px",borderRadius:"4px",cursor:V?"not-allowed":"pointer",border:`2px solid ${R?W:"rgba(255,255,255,0.2)"}`,background:R?`${W}30`:"transparent",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.15s",opacity:V?.3:1},children:R&&a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1122",style:{width:"10px",height:"10px",borderRadius:"2px",background:W}})})}),a.jsx("td",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1125",style:{padding:"0.75rem 1rem",whiteSpace:"nowrap"},children:a.jsxs("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1126",style:{fontSize:"0.85rem",fontWeight:900,color:M.rank<=3?"#f59e0b":"rgba(255,255,255,0.4)"},children:[M.rank<=3?"ð":""," #",M.rank]})}),a.jsxs("td",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1130",style:{padding:"0.75rem 1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1131",style:{fontWeight:700,color:R?W:"#fff",display:"flex",alignItems:"center",gap:"0.4rem"},children:[R&&a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1132",style:{width:"8px",height:"8px",borderRadius:"50%",background:W,flexShrink:0}}),M.alias||"Unknown Baker",a.jsx(i0,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1134",size:11,style:{color:"rgba(44,125,247,0.5)",flexShrink:0}})]}),a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1136",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.35)",fontFamily:"monospace"},children:[M.address.slice(0,12),"..."]})]}),a.jsx("td",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1138",style:{padding:"0.75rem 1rem",fontWeight:700,color:"#f97316",whiteSpace:"nowrap"},children:Qd(M.stakingBalance)}),a.jsx("td",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1139",style:{padding:"0.75rem 1rem",color:"rgba(255,255,255,0.7)",whiteSpace:"nowrap"},children:Qd(M.ownBalance)}),a.jsx("td",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1140",style:{padding:"0.75rem 1rem",color:"rgba(255,255,255,0.7)"},children:M.numDelegators.toLocaleString()}),a.jsx("td",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1141",style:{padding:"0.75rem 1rem"},children:a.jsx(c3,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1141",apy:M.apy})}),a.jsx("td",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1142",style:{padding:"0.75rem 1rem",whiteSpace:"nowrap"},children:M.availableSpace===null?a.jsx("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1144",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.3)",fontStyle:"italic"},children:"Delegation only"}):M.availableSpace===0?a.jsx("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:114
11226",style:{fontSize:"0.72rem",color:"#ef4444",fontWeight:700},children:"Full"}):a.jsx("span",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1148",style:{fontWeight:700,color:M.availableSpace>1e6?"#22c55e":M.availableSpace>1e5?"#f59e0b":"#ef4444"},children:Qd(M.availableSpace)})}),a.jsx("td",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1153",style:{padding:"0.75rem 1rem"},onClick:F=>F.stopPropagation(),children:a.jsx(H4e,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1154",address:M.address})})]},M.address)})})]})})}),!t&&a.jsx(X4e,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1165",page:A,totalPages:C,onChange:M=>{f(M),window.scrollTo({top:0,behavior:"smooth"})}}),!t&&a.jsx("p",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1169",style:{fontSize:"0.7rem",color:"rgba(255,255,255,0.25)",textAlign:"center",marginTop:"0.75rem"},children:"APY calculated from the last completed cycle's actual rewards ÷ baking power à 365. Tick checkboxes to compare up to 4 bakers. Past performance does not guarantee future returns."}),a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1175",style:{marginTop:"1.5rem",display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(220px, 1fr))",gap:"1rem"},children:[{icon:"ð",title:"Non-custodial",body:"Your XTZ never leaves your wallet. Bakers cannot spend your funds."},{icon:"ð¸",title:"Up to ~9% APY",body:"Rewards are paid every cycle (~1 day). No minimum amount required."},{icon:"ð",title:"No lock-up",body:"Undelegate at any time. Rewards stop at the end of the current cycle."}].map(M=>a.jsxs("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1181",style:{padding:"1.1rem 1.25rem",background:"rgba(44,125,247,0.05)",border:"1px solid rgba(44,125,247,0.12)",borderRadius:"8px"},children:[a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1182",style:{fontSize:"1.4rem",marginBottom:"0.4rem"},children:M.icon}),a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1183",style:{fontWeight:800,color:"#fff",fontSize:"0.85rem",marginBottom:"0.3rem"},children:M.title}),a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1184",style:{fontSize:"0.78rem",color:"rgba(255,255,255,0.5)",lineHeight:1.6},children:M.body})]},M.title))}),a.jsx("div",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1189",style:{marginTop:"1.25rem",textAlign:"center"},children:a.jsxs("a",{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1190",href:"/how-to-stake-on-tezos",style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",color:"#2c7df7",fontWeight:700,fontSize:"0.82rem",textDecoration:"none"},children:["Read the full Tezos staking & delegation guide ",a.jsx(_e,{"data-loc":"client/src/pages/explorer/BakersPage.tsx:1191",size:13})]})})]})]})}const Q4e=e=>`https://app.templewallet.com/delegating?baker=${e}`;function Y4e(){Ie({title:"Tezos Staking Calculator â Find the Best Baker | XTZ.News",description:"Compare Tezos bakers by APY, fee, and available space. Calculate your staking rewards in XTZ and USD. Find the best baker for your XTZ.",keywords:"Tezos staking, XTZ staking calculator, Tezos baker, Tezos delegation, XTZ APY, Tezos rewards",canonical:"https://xtz.news/staking",jsonLd:[ln({name:"Tezos Staking Calculator",description:"Compare Tezos bakers by APY, fee, and available space. Calculate your staking rewards.",url:"https://xtz.news/staking"}),Pa([{question:"What is Tezos staking?",answer:"Tezos staking (also called delegation) lets you earn rewards by delegating your XTZ to a baker. Bakers validate transactions and share a portion of their rewards with delegators. You keep full control of your XTZ â it never leaves your wallet."},{question:"What APY can I earn staking Tezos?",answer:"Tezos staking APY typically ranges from 5% to 10% annually, depending on the baker you choose. The XTZ.News Staking Calculator shows real-time APY for all active bakers based on their last completed cycle rewards."},{question:"How do I choose the best Tezos baker?",answer:"Look for a baker with high APY (above 8% is excellent), low fee rate (under 10%), high uptime (above 99%), and available staking space. The XTZ.News Best Baker recommendation automatically scores all bakers and highlights the top choice for small delegators."},{question:"Is Tezos staking safe?",answer:"Yes. When you delegate XTZ, your tokens never leave your wallet. You simply assign your baking rights to a baker. There is no lock-up period â you can undelegate at any time. The baker
1122cannot access or spend your XTZ."},{question:"How long does it take to start earning Tezos staking rewards?",answer:"After delegating, it takes approximately 2-3 cycles (around 5-7 days) before you start receiving rewards. Each Tezos cycle is approximately 2.8 days long (14,400 blocks at 6 seconds per block)."},{question:"What is the minimum amount to stake Tezos?",answer:"There is no minimum amount to delegate XTZ. You can delegate any amount, even 1 XTZ. However, some bakers may have a minimum delegation requirement. The XTZ.News Staking Calculator works for any amount."}])]});const{data:e=[],isLoading:t}=ee.explorer.bakers.useQuery({limit:50}),{data:r}=ee.explorer.networkStats.useQuery(),[n,s]=E.useState("1000"),[i,o]=E.useState(null),[l,d]=E.useState(""),[u,g]=E.useState(!1),[f,m]=E.useState(!1),[y,S]=E.useState("xtz"),[b,v]=E.useState("apy"),j=r?.xtzUsd??0,k=parseFloat(n)||0,P=R=>y==="usd"&&j>0?`$${(R*j).toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})}`:`${R<.01?"<0.01":R.toFixed(2)} ê©`,O=E.useMemo(()=>e.filter(R=>R.apy!=null).sort((R,_)=>(_.apy??0)-(R.apy??0)),[e]),T=E.useMemo(()=>{const R=[...O];return b==="fee"?R.filter(_=>_.feeRate!=null).sort((_,W)=>(_.feeRate??100)-(W.feeRate??100)):b==="delegators"?R.sort((_,W)=>W.numDelegators-_.numDelegators):R},[O,b]),C=i?O.find(R=>R.address===i):null,A=C||O[0],N=E.useMemo(()=>l.trim()?O.filter(R=>(R.alias||"").toLowerCase().includes(l.toLowerCase())||R.address.toLowerCase().includes(l.toLowerCase())):O,[O,l]),M=E.useMemo(()=>C?[C,...O.filter(R=>R.address!==i).slice(0,2)]:O.slice(0,3),[C,O,i]),B=()=>{if(!A||k===0)return;const R=A.apy,_=k*(Math.pow(1+R/100/12,12)-1),W=k*(Math.pow(1+R/100/12,1)-1),V=k*R/100/365,F=`XTZ Staking Projections (${A.alias||A.address.slice(0,12)}) 1123Amount: ${k.toLocaleString()} XTZ | APY: ${R.toFixed(2)}% 1124Daily: +${V.toFixed(3)} XTZ (${j>0?"$"+(V*j).toFixed(2):"n/a"}) | Monthly: +${W.toFixed(2)} XTZ | Annual: +${_.toFixed(2)} XTZ 1125Source: https://xtz.news/staking`;navigator.clipboard.writeText(F).then(()=>{g(!0),setTimeout(()=>g(!1),2500)})};return a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:104",style:{background:"#000",minHeight:"100vh"},children:[a.jsx("div",{"data-loc":"client/src/pages/StakingPage.tsx:106",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",borderBottom:"1px solid rgba(44,125,247,0.2)",padding:"2.5rem 0 2rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:107",className:"container",children:[a.jsxs("nav",{"data-loc":"client/src/pages/StakingPage.tsx:109",style:{display:"flex",alignItems:"center",gap:"0.35rem",marginBottom:"1.25rem",fontSize:"0.75rem",fontWeight:600},children:[a.jsx($,{"data-loc":"client/src/pages/StakingPage.tsx:110",href:"/",style:{color:"rgba(255,255,255,0.5)",display:"flex",alignItems:"center",textDecoration:"none"},children:a.jsx(Qt,{"data-loc":"client/src/pages/StakingPage.tsx:110",size:12})}),a.jsx(Le,{"data-loc":"client/src/pages/StakingPage.tsx:111",size:10,style:{color:"rgba(255,255,255,0.3)"}}),a.jsx("span",{"data-loc":"client/src/pages/StakingPage.tsx:112",style:{color:"rgba(255,255,255,0.7)"},children:"Staking Calculator"})]}),a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:115",style:{display:"flex",flexWrap:"wrap",gap:"0.75rem",marginBottom:"1.5rem"},children:[a.jsx("iframe",{"data-loc":"client/src/pages/StakingPage.tsx:116",src:"https://tezos.systems/widgets/staking-ratio.html?theme=abyss&accent=2c7df7",width:"260",height:"140",frameBorder:0,scrolling:"no",title:"Staking ratio",style:{borderRadius:"8px",border:"none",display:"block"}}),a.jsx("iframe",{"data-loc":"client/src/pages/StakingPage.tsx:117",src:"https://tezos.systems/widgets/baker-count.html?theme=abyss&accent=2c7df7",width:"260",height:"140",frameBorder:0,scrolling:"no",title:"Active bakers",style:{borderRadius:"8px",border:"none",display:"block"}}),a.jsx("iframe",{"data-loc":"client/src/pages/StakingPage.tsx:118",src:"https://tezos.systems/widgets/price.html?theme=abyss&accent=2c7df7",width:"260",height:"140",frameBorder:0,scrolling:"no",title:"XTZ price",style:{borderRadius:"8px",border:"none",display:"block"}})]}),a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:120",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",flexWrap:"wrap",gap:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:121",children:[a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:122",style:{display:"flex",alignItems:"center",gap:"0.75rem",marginBottom:"0.5rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/StakingPage.tsx:123",style:{width:"42px",height:"42px",background:"rgba(249,115,22,0.2)",border:"1px solid rgba(249,115,22,0.4)",borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"1.3rem"},children:"ð§"}),a.jsx("h1",{"data-loc":"client/src/pages/StakingPage.tsx:124",style:{fontSize:"clamp(1.5rem, 3vw, 2.2rem)",fontWeight:900,color:"#fff",margin:0,letterSpacing:"-0.02em"},children:"XTZ Staking Calculator"})]}),a.jsx("p",{"data-loc":"client/src/pages/StakingPage.tsx:126",style:{color:"rgba(255,255,255,0.5)",fontSize:"0.9rem",margin:0},children:"Calculate your projected earnings from delegating or staking Tezos. Real APY from on-chain data."})]}),a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:130",style:{display:"flex",gap:"0.75rem",flexWrap:"wrap"},children:[a.jsx($,{"data-loc":"client/src/pages/StakingPage.tsx:131",href:"/explorer/bakers",style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",padding:"0.55rem 1.1rem",background:"rgba(255,255,255,0.07)",border:"1px solid rgba(255,255,255,0.15)",borderRadius:"6px",color:"rgba(255,255,255,0.7)",textDecoration:"none",fontSize:"0.8rem",fontWeight:700},children:"Baker Leaderboard â"}),a.jsxs("a",{"data-loc":"client/src/pages/StakingPage.tsx:134",href:"https://templewallet.com",target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",padding:"0.55rem 1.1rem",background:"rgba(249,115,22,0.15)",border:"1px solid rgba(249,115,22,0.35)",borderRadius:"6px",color:"#f97316",textDecoration:"none",fontSize:"0.8rem",fontWeight:700},children:[a.jsx(ve,{"data-loc":"client/src/pages/StakingPage.tsx:135",size:13})," Get Temple Wallet"]})]})]})]})}),a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:142",className:"container",style:{padding:"2.5rem 1.25rem 4rem"},children:[a.jsx(Ly,{"data-loc":"client/src/pages/StakingPage.tsx:143",context:"staking"}),a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:144",style:{display:"grid",gridTemplateColumns:"minmax(0,1fr) 300px",gap:"2.5rem",alignItems:"start"},children:[a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:147",children:[a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:149",style:{background:"#05152e",border:"1px solid rgba(44,125,247,0.2)",borderRadius:"12px",padding:"1.5rem",marginBottom:"1.5rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/StakingPage.tsx:150",style:{fontSize:"0.72rem",fontWeight:800,color:"rgba(255,255,255,0.5)",textTransform:"uppercase",letterSpacing:"0.1em",marginBottom:"1rem"},children:"Your XTZ Amount"}),j>0&&a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:153",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginBottom:"0.875rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/StakingPage.tsx:154",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.4)"},children:"Show earnings in:"}),a.jsx("div",{"data-loc":"client/src/pages/StakingPage.tsx:155",style:{display:"flex",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"20px",padding:"2px"},children:["xtz","usd"].map(R=>a.jsx("button",{"data-loc":"client/src/pages/StakingPage.tsx:157",onClick:()=>S(R),style:{padding:"0.25rem 0.875rem",background:y===R?"#2c7df7":"transparent",border:"none",borderRadius:"18px",color:y===R?"#fff":"rgba(255,255,255,0.45)",fontSize:"0.72rem",fontWeight:700,cursor:"pointer",transition:"all 0.15s"},children:R==="xtz"?"ê© XTZ":`$ USD (1 XTZ = $${j.toFixed(3)})`},R))})]}),a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:165",style:{display:"flex",alignItems:"center",gap:"0.75rem",flexWrap:"wrap"},children:[a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:166",style:{position:"relative",display:"flex",alignItems:"center"},children:[a.jsx("input",{"data-loc":"client/src/pages/StakingPage.tsx:167",type:"number",min:"0",value:n,onChange:R=>s(R.target.value),style:{padding:"0.75rem 3rem 0.75rem 1rem",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(44,125,247,0.3)",borderRadius:"8px",color:"#fff",fontSize:"1.3rem",fontWeight:900,outline:"none",width:"180px",fontFamily:"inherit",transition:"border-color 0.15s"},onFocus:R=>R.currentTarget.style.borderColor="#2c7df7",onBlur:R=>R.currentTarget.style.borderColor="rgba(44,125,247,0.3)"}),a.jsx("span",{"data-loc":"client/src/pages/StakingPage.tsx:171",style:{position:"absolute",right:"0.875rem",color:"rgba(255,255,255,0.4)",fontSize:"1rem",fontWeight:700,pointerEvents:"none"},children:"ê©"})]}),a.jsx("div",{"data-loc":"client/src/pages/StakingPage.tsx:173",style:{display:"flex",gap:"0.4rem",flexWrap:"wrap"},children:[100,500,1e3,5e3,1e4,5e4].map(R=>a.jsx("button",{"data-loc":"client/src/pages/StakingPage.tsx:175",onClick:()=>s(String(R)),style:{padding:"0.45rem 0.875rem",background:parseFloat(n)===R?"rgba(44,125,247,0.25)":"rgba(255,255,255,0.05)",border:`1px solid ${parseFloat(n)===R?"rgba(44,125,247,0.5)":"rgba(255,255,255,0.1)"}`,borderRadius:"6px",color:parseFloat(n)===R?"#2c7df7":"rgba(255,255,255,0.5)",fontSize:"0.78rem",fontWeight:700,cursor:"pointer"}
1125,children:R.toLocaleString()},R))})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:185",style:{background:"#05152e",border:"1px solid rgba(44,125,247,0.2)",borderRadius:"12px",padding:"1.5rem",marginBottom:"1.5rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/StakingPage.tsx:186",style:{fontSize:"0.72rem",fontWeight:800,color:"rgba(255,255,255,0.5)",textTransform:"uppercase",letterSpacing:"0.1em",marginBottom:"1rem"},children:"Choose Your Baker"}),a.jsx("div",{"data-loc":"client/src/pages/StakingPage.tsx:189",style:{display:"flex",gap:"0.4rem",flexWrap:"wrap",marginBottom:"0.875rem"},children:[{label:"â Best APY",baker:O[0]},{label:"ð¥ Most Delegators",baker:[...O].sort((R,_)=>_.numDelegators-R.numDelegators)[0]},{label:"ð¢ Most Space",baker:[...O].filter(R=>R.availableSpace!=null).sort((R,_)=>(_.availableSpace??0)-(R.availableSpace??0))[0]}].filter(R=>R.baker).map(R=>a.jsx("button",{"data-loc":"client/src/pages/StakingPage.tsx:195",onClick:()=>{o(R.baker.address),d(""),m(!1)},style:{padding:"0.4rem 0.875rem",background:i===R.baker.address?"rgba(44,125,247,0.25)":"rgba(255,255,255,0.05)",border:`1px solid ${i===R.baker.address?"rgba(44,125,247,0.5)":"rgba(255,255,255,0.1)"}`,borderRadius:"20px",color:i===R.baker.address?"#2c7df7":"rgba(255,255,255,0.5)",fontSize:"0.72rem",fontWeight:700,cursor:"pointer",whiteSpace:"nowrap"},children:R.label},R.label))}),a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:203",style:{position:"relative"},children:[a.jsx(ft,{"data-loc":"client/src/pages/StakingPage.tsx:204",size:14,style:{position:"absolute",left:"0.75rem",top:"50%",transform:"translateY(-50%)",color:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),a.jsx("input",{"data-loc":"client/src/pages/StakingPage.tsx:205",value:l,onChange:R=>{d(R.target.value),m(!0)},onFocus:()=>m(!0),placeholder:"Search baker by name or addressâ¦",style:{width:"100%",padding:"0.6rem 0.875rem 0.6rem 2.25rem",background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"8px",color:"#fff",fontSize:"0.85rem",outline:"none",fontFamily:"inherit",transition:"border-color 0.15s"},onBlur:R=>{setTimeout(()=>m(!1),200)},onKeyDown:R=>{R.key==="Escape"&&m(!1)}}),l&&a.jsx("button",{"data-loc":"client/src/pages/StakingPage.tsx:211",onClick:()=>{d(""),m(!1)},style:{position:"absolute",right:"0.75rem",top:"50%",transform:"translateY(-50%)",background:"none",border:"none",cursor:"pointer",color:"rgba(255,255,255,0.3)",display:"flex"},children:a.jsx(xr,{"data-loc":"client/src/pages/StakingPage.tsx:211",size:14})})]}),f&&a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:216",style:{marginTop:"0.4rem",maxHeight:"240px",overflowY:"auto",background:"rgba(5,21,46,0.98)",border:"1px solid rgba(44,125,247,0.2)",borderRadius:"8px",boxShadow:"0 8px 24px rgba(0,0,0,0.5)"},children:[N.slice(0,40).map((R,_)=>{const W=i===R.address,V=R.apy,F=k>0?(k*(Math.pow(1+V/100/12,12)-1)).toFixed(2):null;return a.jsxs("button",{"data-loc":"client/src/pages/StakingPage.tsx:222",onMouseDown:()=>{o(R.address),d(""),m(!1)},style:{width:"100%",display:"flex",alignItems:"center",gap:"0.875rem",padding:"0.7rem 1rem",background:W?"rgba(44,125,247,0.15)":"transparent",border:"none",borderBottom:_<N.length-1?"1px solid rgba(255,255,255,0.04)":"none",cursor:"pointer",textAlign:"left"},children:[a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:224",style:{flex:1,minWidth:0},children:[a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:225",style:{fontSize:"0.85rem",fontWeight:700,color:W?"#5a9fff":"#fff",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:[_===0&&!l&&a.jsx("span",{"data-loc":"client/src/pages/StakingPage.tsx:226",style:{marginRight:"0.3rem"},children:"â"}),R.alias||"Unknown Baker"]}),a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:228",style:{fontSize:"0.62rem",color:"rgba(255,255,255,0.3)",fontFamily:"monospace"},children:[R.address.slice(0,20),"â¦"]})]}),a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:230",style:{textAlign:"right",flexShrink:0},children:[a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:231",style:{fontSize:"0.85rem",fontWeight:800,color:"#22c55e"},children:[V.toFixed(2),"%"]}),F&&k>0&&a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:232",style:{fontSize:"0.65rem",color:"#f97316",fontWeight:600},children:["+",F," ê©/yr"]})]})]},R.address)}),N.length===0&&a.jsx("div",{"data-loc":"client/src/pages/StakingPage.tsx:237",style:{padding:"1.25rem",textAlign:"center",color:"rgba(255,255,255,0.3)",fontSize:"0.82rem"},children:"No bakers found"})]})]}),A&&k>0&&(()=>{const R=A.apy,_=k*(Math.pow(1+R/100/12,12)-1),W=k*(Math.pow(1+R/100/12,1)-1),V=k*R/100/365;return a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:249",style:{background:"linear-gradient(135deg, rgba(44,125,247,0.12) 0%, rgba(44,125,247,0.04) 100%)",border:"1px solid rgba(44,125,247,0.3)",borderRadius:"12px",padding:"1.5rem",marginBottom:"1.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:250",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",marginBottom:"1.25rem",flexWrap:"wrap",gap:"0.75rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:251",children:[a.jsx("div",{"data-loc":"client/src/pages/StakingPage.tsx:252",style:{fontSize:"1.2rem",fontWeight:900,color:"#fff",marginBottom:"0.2rem"},children:A.alias||"Unknown Baker"}),a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:253",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.3)",fontFamily:"monospace"},children:[A.address.slice(0,24),"â¦"]})]}),a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:255",style:{display:"flex",gap:"0.5rem"},children:[a.jsxs("button",{"data-loc":"client/src/pages/StakingPage.tsx:256",onClick:B,style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",padding:"0.5rem 1rem",background:u?"rgba(34,197,94,0.2)":"rgba(255,255,255,0.08)",border:`1px solid ${u?"rgba(34,197,94,0.4)":"rgba(255,255,255,0.15)"}`,borderRadius:"6px",color:u?"#22c55e":"rgba(255,255,255,0.7)",fontWeight:700,fontSize:"0.78rem",cursor:"pointer",transition:"all 0.2s"},children:[a.jsx(an,{"data-loc":"client/src/pages/StakingPage.tsx:258",size:13})," ",u?"Copied!":"Copy Results"]}),a.jsxs("a",{"data-loc":"client/src/pages/StakingPage.tsx:260",href:Q4e(A.address),target:"_blank",rel:"nofollow noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",padding:"0.5rem 1rem",background:"rgba(249,115,22,0.15)",border:"1px solid rgba(249,115,22,0.35)",borderRadius:"6px",color:"#f97316",fontWeight:700,fontSize:"0.78rem",textDecoration:"none"},children:[a.jsx(ve,{"data-loc":"client/src/pages/StakingPage.tsx:262",size:13})," Delegate Now"]})]})]}),a.jsx("div",{"data-loc":"client/src/pages/StakingPage.tsx:268",style:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:"1rem",marginBottom:"1rem"},children:[{label:"APY",value:`${R.toFixed(2)}%`,color:"#22c55e",big:!0},{label:"Daily",value:`+${P(V)}`,color:"#f97316",big:!1},{label:"Monthly",value:`+${P(W)}`,color:"#f97316",big:!1},{label:"Annual (compound)",value:`+${P(_)}`,color:"#f97316",big:!1}].map(F=>
1125a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:275",style:{textAlign:"center",background:"rgba(255,255,255,0.04)",borderRadius:"8px",padding:"0.875rem 0.5rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/StakingPage.tsx:276",style:{fontSize:"0.6rem",color:"rgba(255,255,255,0.35)",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:"0.4rem"},children:F.label}),a.jsx("div",{"data-loc":"client/src/pages/StakingPage.tsx:277",style:{fontSize:F.big?"1.4rem":"0.95rem",fontWeight:900,color:F.color},children:F.value})]},F.label))}),a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:283",style:{display:"flex",gap:"1.25rem",flexWrap:"wrap",paddingTop:"0.875rem",borderTop:"1px solid rgba(255,255,255,0.07)"},children:[a.jsxs("span",{"data-loc":"client/src/pages/StakingPage.tsx:284",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.4)"},children:["ð¥ ",A.numDelegators.toLocaleString()," delegators"]}),a.jsxs("span",{"data-loc":"client/src/pages/StakingPage.tsx:285",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.4)"},children:["ð° ",A.stakingBalance.toLocaleString(void 0,{maximumFractionDigits:0})," ê© staking balance"]}),A.availableSpace!=null?a.jsxs("span",{"data-loc":"client/src/pages/StakingPage.tsx:287",style:{fontSize:"0.72rem",color:A.availableSpace>1e6?"#22c55e":"#f59e0b"},children:["ð¢ ",A.availableSpace>1e6?`${(A.availableSpace/1e6).toFixed(1)}M`:`${(A.availableSpace/1e3).toFixed(0)}K`," ê© space available"]}):a.jsx("span",{"data-loc":"client/src/pages/StakingPage.tsx:291",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.3)"},children:"Delegation only"})]})]})})(),M.length>0&&k>0&&a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:300",style:{background:"#05152e",border:"1px solid rgba(44,125,247,0.2)",borderRadius:"12px",padding:"1.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:301",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"1rem",flexWrap:"wrap",gap:"0.5rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/StakingPage.tsx:302",style:{fontSize:"0.72rem",fontWeight:800,color:"rgba(255,255,255,0.5)",textTransform:"uppercase",letterSpacing:"0.1em"},children:"ð 12-Month Cumulative Returns"}),a.jsxs("button",{"data-loc":"client/src/pages/StakingPage.tsx:303",onClick:()=>{const R=M[0],_=(k*(Math.pow(1+R.apy/100/12,12)-1)).toFixed(2),W=`ð Staking ${k.toLocaleString()} XTZ with ${R.alias||"top baker"} (${R.apy.toFixed(2)}% APY) = +${_} XTZ in 12 months! Check the XTZ.News Staking Calculator:`;window.open(`https://twitter.com/intent/tweet?text=${encodeURIComponent(W)}&url=${encodeURIComponent("https://xtz.news/staking")}`,"_blank")},style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",padding:"0.35rem 0.85rem",background:"rgba(29,161,242,0.15)",border:"1px solid rgba(29,161,242,0.35)",borderRadius:"20px",color:"#1DA1F2",fontWeight:700,fontSize:"0.7rem",cursor:"pointer"},children:[a.jsx("svg",{"data-loc":"client/src/pages/StakingPage.tsx:309",width:"12",height:"12",viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{"data-loc":"client/src/pages/StakingPage.tsx:309",d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.744l7.73-8.835L1.254 2.25H8.08l4.253 5.622zm-1.161 17.52h1.833L7.084 4.126H5.117z"})}),"Share on X"]})]}),a.jsx("div",{"data-loc":"client/src/pages/StakingPage.tsx:314",style:{display:"flex",gap:"1rem",flexWrap:"wrap",marginBottom:"0.75rem"},children:M.slice(0,3).map((R,_)=>a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:316",style:{display:"flex",alignItems:"center",gap:"0.4rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/StakingPage.tsx:317",style:{width:"10px",height:"10px",borderRadius:"2px",background:["#2c7df7","#22c55e","#f59e0b"][_]}}),a.jsxs("span",{"data-loc":"client/src/pages/StakingPage.tsx:318",style:{fontSize:"0.7rem",color:"rgba(255,255,255,0.55)"},children:[R.alias||"Unknown"," (",R.apy.toFixed(1),"%)"]})]},R.address))}),a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:322",style:{background:"rgba(255,255,255,0.02)",borderRadius:"8px",padding:"1rem 0.75rem 0.5rem"},children:[a.jsxs("svg",{"data-loc":"client/src/pages/StakingPage.tsx:323",width:"100%",height:"140",viewBox:"0 0 600 140",preserveAspectRatio:"none",children:[M.slice(0,3).map((R,_)=>{const W=R.apy,V=["#2c7df7","#22c55e","#f59e0b"],F=W/100/12,I=Array.from({length:12},(le,H)=>k*(Math.pow(1+F,H+1)-1)),U=k*(Math.pow(1+M[0].apy/100/12,12)-1),q=600/12/3-2,Z=_*(q+1);return I.map((le,H)=>{const K=H*50+Z+4,Q=U>0?Math.max(3,le/U*110):3,re=125-Q;return a.jsx("rect",{"data-loc":"client/src/pages/StakingPage.tsx:337",x:K,y:re,width:q,height:Q,fill:V[_],opacity:.85,rx:1,children:a.jsxs("title",{"data-loc":"client/src/pages/StakingPage.tsx:338",children:[R.alias||"Baker",": +",le.toFixed(2)," ê© after month ",H+1]})},`${_}-${H}`)})}),Array.from({length:12},(R,_)=>a.jsxs("text",{"data-loc":"client/src/pages/StakingPage.tsx:344",x:_*(600/12)+600/24,y:138,textAnchor:"middle",fontSize:"9",fill:"rgba(255,255,255,0.25)",children:["M",_+1]},_))]}),a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:347",style:{display:"flex",justifyContent:"space-between",marginTop:"0.25rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/StakingPage.tsx:348",style:{fontSize:"0.62rem",color:"rgba(255,255,255,0.2)"},children:"Month 1"}),a.jsxs("span",{"data-loc":"client/src/pages/StakingPage.tsx:349",style:{fontSize:"0.62rem",color:"rgba(255,255,255,0.45)",fontWeight:700},children:["After 12 months: +",(k*(Math.pow(1+M[0].apy/100/12,12)-1)).toFixed(2)," ê©"]}),a.jsx("span",{"data-loc":"client/src/pages/StakingPage.tsx:352",style:{fontSize:"0.62rem",color:"rgba(255,255,255,0.2)"},children:"Month 12"})]})]}),a.jsx("p",{"data-loc":"client/src/pages/StakingPage.tsx:355",style:{fontSize:"0.62rem",color:"rgba(255,255,255,0.2)",margin:"0.75rem 0 0"},children:"Estimates based on 30-day APY with monthly compounding. Actual rewards vary. Not financial advice."})]}),A&&k>0&&(()=>{const R=A.apy,_=5,W=_*12,V=R/100/12,F=Array.from({length:W+1},(ue,xe)=>
1125k*Math.pow(1+V,xe));Array.from({length:W+1},()=>k);const I=F[W],U=k,q=I-U,Z=ue=>q>0?110-(ue-U)/q*100:110,le=F.map((ue,xe)=>`${xe===0?"M":"L"} ${xe/W*580+10} ${Z(ue)}`).join(" "),H="M 10 110 L 590 110",K=F[W],Q=k,re=K-Q;return a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:381",style:{background:"#05152e",border:"1px solid rgba(44,125,247,0.2)",borderRadius:"12px",padding:"1.5rem",marginTop:"1.5rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/StakingPage.tsx:382",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"1rem",flexWrap:"wrap",gap:"0.5rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:383",children:[a.jsx("div",{"data-loc":"client/src/pages/StakingPage.tsx:384",style:{fontSize:"0.72rem",fontWeight:800,color:"rgba(255,255,255,0.5)",textTransform:"uppercase",letterSpacing:"0.1em"},children:"ð Staking vs Holding â 5 Year Projection"}),a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:385",style:{fontSize:"0.78rem",color:"rgba(255,255,255,0.4)",marginTop:"0.2rem"},children:["Staking earns ",a.jsxs("span",{"data-loc":"client/src/pages/StakingPage.tsx:385",style:{color:"#22c55e",fontWeight:700},children:["+",P(re)]})," more than holding over 5 years"]})]})}),a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:389",style:{display:"flex",gap:"1.25rem",marginBottom:"0.75rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:390",style:{display:"flex",alignItems:"center",gap:"0.4rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/StakingPage.tsx:391",style:{width:"20px",height:"3px",background:"#2c7df7",borderRadius:"2px"}}),a.jsxs("span",{"data-loc":"client/src/pages/StakingPage.tsx:392",style:{fontSize:"0.7rem",color:"rgba(255,255,255,0.55)"},children:["Staking (",R.toFixed(1),"% APY)"]})]}),a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:394",style:{display:"flex",alignItems:"center",gap:"0.4rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/StakingPage.tsx:395",style:{width:"20px",height:"3px",background:"rgba(255,255,255,0.2)",borderRadius:"2px",borderTop:"2px dashed rgba(255,255,255,0.2)"}}),a.jsx("span",{"data-loc":"client/src/pages/StakingPage.tsx:396",style:{fontSize:"0.7rem",color:"rgba(255,255,255,0.35)"},children:"Holding (0% growth)"})]})]}),a.jsx("div",{"data-loc":"client/src/pages/StakingPage.tsx:399",style:{background:"rgba(255,255,255,0.02)",borderRadius:"8px",padding:"1rem 0.5rem 0.5rem",overflow:"hidden"},children:a.jsxs("svg",{"data-loc":"client/src/pages/StakingPage.tsx:400",width:"100%",height:"130",viewBox:"0 0 600 130",preserveAspectRatio:"none",children:[a.jsx("path",{"data-loc":"client/src/pages/StakingPage.tsx:402",d:`${le} L 590 110 L 10 110 Z`,fill:"rgba(44,125,247,0.08)"}),a.jsx("path",{"data-loc":"client/src/pages/StakingPage.tsx:404",d:H,stroke:"rgba(255,255,255,0.2)",strokeWidth:"1.5",strokeDasharray:"6,4",fill:"none"}),a.jsx("path",{"data-loc":"client/src/pages/StakingPage.tsx:406",d:le,stroke:"#2c7df7",strokeWidth:"2.5",fill:"none"}),Array.from({length:_+1},(ue,xe)=>a.jsxs("text",{"data-loc":"client/src/pages/StakingPage.tsx:409",x:xe/_*580+10,y:128,textAnchor:"middle",fontSize:"9",fill:"rgba(255,255,255,0.25)",children:["Y",xe]},xe)),a.jsx("text",{"data-loc":"client/src/pages/StakingPage.tsx:412",x:590,y:Z(K)-6,textAnchor:"end",fontSize:"9",fill:"#2c7df7",fontWeight:"bold",children:P(K)}),a.jsx("text",{"data-loc":"client/src/pages/StakingPage.tsx:413",x:590,y:118,textAnchor:"end",fontSize:"9",fill:"rgba(255,255,255,0.3)",children:P(Q)})]})}),a.jsx("p",{"data-loc":"client/src/pages/StakingPage.tsx:416",style:{fontSize:"0.62rem",color:"rgba(255,255,255,0.2)",margin:"0.5rem 0 0"},children:"Assumes constant APY. Actual returns vary. Not financial advice."})]})})()]}),a.jsx("div",{"data-loc":"client/src/pages/StakingPage.tsx:423",style:{position:"sticky",top:"80px"},children:a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:424",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"10px",overflow:"hidden"},children:[a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:425",style:{padding:"0.875rem 1rem",borderBottom:"1px solid rgba(255,255,255,0.07)"},children:[a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:426",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginBottom:"0.625rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/StakingPage.tsx:427",style:{width:"3px",height:"16px",background:"#2c7df7",borderRadius:"2px"}}),a.jsx("span",{"data-loc":"client/src/pages/StakingPage.tsx:428",style:{fontSize:"0.7rem",fontWeight:800,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.6)"},children:"Baker Rankings"})]}),a.jsx("div",{"data-loc":"client/src/pages/StakingPage.tsx:431",style:{display:"flex",gap:"0.3rem"},children:["apy","fee","delegators"].map(R=>a.jsx("button",{"data-loc":"client/src/pages/StakingPage.tsx:433",onClick:()=>v(R),style:{padding:"0.2rem 0.6rem",background:b===R?"rgba(44,125,247,0.25)":"rgba(255,255,255,0.05)",border:`1px solid ${b===R?"rgba(44,125,247,0.5)":"rgba(255,255,255,0.08)"}`,borderRadius:"12px",color:b===R?"#2c7df7":"rgba(255,255,255,0.4)",fontSize:"0.62rem",fontWeight:700,cursor:"pointer",textTransform:"capitalize"},children:R==="apy"?"â APY":R==="fee"?"ð° Lowest Fee":"ð¥ Delegators"},R))})]}),t?a.jsx("div",{"data-loc":"client/src/pages/StakingPage.tsx:441",style:{padding:"1.5rem",textAlign:"center",color:"rgba(255,255,255,0.3)",fontSize:"0.82rem"},children:"Loadingâ¦"}):T.slice(0,10).map((R,_)=>{const W=i===R.address,V=R.apy,F=k>0?k*(Math.pow(1+V/100/12,12)-1):null,I=b==="fee"&&R.feeRate!=null?`${R.feeRate.toFixed(1)}
1125% fee`:b==="delegators"?`${R.numDelegators.toLocaleString()} delegators`:`${V.toFixed(2)}% APY`,U=b==="fee"?"#f59e0b":b==="delegators"?"#2c7df7":"#22c55e";return a.jsxs("button",{"data-loc":"client/src/pages/StakingPage.tsx:454",onClick:()=>o(R.address),style:{width:"100%",display:"flex",alignItems:"center",gap:"0.75rem",padding:"0.75rem 1rem",background:W?"rgba(44,125,247,0.12)":"transparent",border:"none",borderBottom:_<9?"1px solid rgba(255,255,255,0.04)":"none",cursor:"pointer",textAlign:"left",transition:"background 0.12s"},onMouseEnter:q=>{W||(q.currentTarget.style.background="rgba(255,255,255,0.04)")},onMouseLeave:q=>{W||(q.currentTarget.style.background="transparent")},children:[a.jsx("div",{"data-loc":"client/src/pages/StakingPage.tsx:458",style:{width:"22px",height:"22px",borderRadius:"50%",background:W?"#2c7df7":"rgba(255,255,255,0.08)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"0.6rem",fontWeight:800,color:W?"#fff":"rgba(255,255,255,0.4)",flexShrink:0},children:_+1}),a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:461",style:{flex:1,minWidth:0},children:[a.jsx("div",{"data-loc":"client/src/pages/StakingPage.tsx:462",style:{fontSize:"0.78rem",fontWeight:700,color:W?"#5a9fff":"#fff",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:R.alias||"Unknown Baker"}),F!=null&&k>0&&a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:463",style:{fontSize:"0.62rem",color:"#f97316",fontWeight:600},children:["+",P(F),"/yr"]})]}),a.jsx("div",{"data-loc":"client/src/pages/StakingPage.tsx:465",style:{fontSize:"0.78rem",fontWeight:800,color:U,flexShrink:0},children:I})]},R.address)}),a.jsx("div",{"data-loc":"client/src/pages/StakingPage.tsx:470",style:{padding:"0.75rem 1rem",borderTop:"1px solid rgba(255,255,255,0.06)"},children:a.jsx($,{"data-loc":"client/src/pages/StakingPage.tsx:471",href:"/explorer/bakers",style:{fontSize:"0.72rem",fontWeight:700,color:"#2c7df7",textDecoration:"none",display:"flex",alignItems:"center",gap:"0.3rem"},children:"View full leaderboard â"})})]})})]})]}),a.jsx("div",{"data-loc":"client/src/pages/StakingPage.tsx:481",className:"container",style:{padding:"3rem 1.25rem 4rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:482",style:{maxWidth:"800px",margin:"0 auto"},children:[a.jsxs("h2",{"data-loc":"client/src/pages/StakingPage.tsx:483",style:{fontSize:"1.3rem",fontWeight:900,color:"#fff",marginBottom:"1.5rem",display:"flex",alignItems:"center",gap:"0.5rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/StakingPage.tsx:484",style:{color:"#2c7df7"},children:"?"})," Frequently Asked Questions"]}),a.jsx(Z4e,{"data-loc":"client/src/pages/StakingPage.tsx:486",faqs:[{q:"What is Tezos staking?",a:"Tezos staking (also called delegation) lets you earn rewards by delegating your XTZ to a baker. Bakers validate transactions and share a portion of their rewards with delegators. You keep full control of your XTZ â it never leaves your wallet."},{q:"What APY can I earn staking Tezos?",a:"Tezos staking APY typically ranges from 5% to 10% annually, depending on the baker you choose. The XTZ.News Staking Calculator shows real-time APY for all active bakers based on their last completed cycle rewards."},{q:"How do I choose the best Tezos baker?",a:"Look for a baker with high APY (above 8% is excellent), low fee rate (under 10%), high uptime (above 99%), and available staking space. The XTZ.News Best Baker recommendation automatically scores all bakers and highlights the top choice for small delegators."},{q:"Is Tezos staking safe?",a:"Yes. When you delegate XTZ, your tokens never leave your wallet. You simply assign your baking rights to a baker. There is no lock-up period â you can undelegate at any time. The baker cannot access or spend your XTZ."},{q:"How long does it take to start earning Tezos staking rewards?",a:"After delegating, it takes approximately 2-3 cycles (around 5-7 days) before you start receiving rewards. Each Tezos cycle is approximately 2.8 days long (14,400 blocks at 6 seconds per block)."},{q:"What is the minimum amount to stake Tezos?",a:"There is no minimum amount to delegate XTZ. You can delegate any amount, even 1 XTZ. However, some bakers may have a minimum delegation requirement. The XTZ.News Staking Calculator works for any amount."}]})]})})]})}function Z4e({faqs:e}){const[t,r]=E.useState(null);return a.jsx("div",{"data-loc":"client/src/pages/StakingPage.tsx:503",style:{display:"flex",flexDirection:"column",gap:"0.5rem"},children:e.map((n,s)=>a.jsxs("div",{"data-loc":"client/src/pages/StakingPage.tsx:505",style:{background:"#05152e",border:`1px solid ${t===s?"rgba(44,125,247,0.4)":"rgba(255,255,255,0.07)"}`,borderRadius:"8px",overflow:"hidden",transition:"border-color 0.2s"},children:[a.jsxs("button",{"data-loc":"client/src/pages/StakingPage.tsx:506",onClick:()=>r(t===s?null:s),style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"1rem",padding:"1rem 1.25rem",background:"none",border:"none",cursor:"pointer",textAlign:"left"},children:[a.jsx("span",{"data-loc":"client/src/pages/StakingPage.tsx:509",style:{fontSize:"0.92rem",fontWeight:700,color:t===s?"#2c7df7":"#fff",lineHeight:1.4},children:n.q}),a.jsx(yi,{"data-loc":"client/src/pages/StakingPage.tsx:510",size:16,style:{color:t===s?"#2c7df7":"rgba(255,255,255,0.4)",flexShrink:0,transform:t===s?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s"}})]}),t===s&&a.jsx("div",{"data-loc":"client/src/pages/StakingPage.tsx:513",style:{padding:"0 1.25rem 1rem",fontSize:"0.88rem",color:"rgba(255,255,255,0.65)",lineHeight:1.7},children:n.a})]},s))})}const Qx=[{id:"all",label:"All coverage",description:"Every published art story"},{id:"recaps",label:"Weekly recaps",description:"Official Art on Tezos round-ups"},{id:"exhibitions",label:"Exhibitions",description:"Shows, institutions and installations"},{id:"releases",label:"Artist releases",description:"Works, projects and collecting updates"}
1125],J4e=new Set(Qx.map(e=>e.id));function sB(e){const t=new URLSearchParams(e).get("type");return t&&J4e.has(t)?t:"all"}function iV(e){const t=`${e.title} ${e.excerpt??""}`.toLowerCase(),r=e.categories?.map(s=>s.slug.toLowerCase())??[],n=e.tags?.map(s=>s.slug.toLowerCase())??[];return/\b(art on tezos\s+(?:weekly|friday)?\s*recap|art recap|weekly recap)\b/.test(t)?"recaps":r.includes("exhibition")||n.includes("exhibitions")||/\b(exhibition|museum|gallery|installation|biennale|art basel|art salon|show)\b/.test(t)?"exhibitions":"releases"}function iB(e,t){return t==="all"?e:e.filter(r=>iV(r)===t)}function eAe(e){return e==="recaps"?Fa:e==="exhibitions"?GW:e==="releases"?rh:one}function tAe({posts:e,isLoading:t}){const r=As(),[,n]=Sa(),[s,i]=E.useState(()=>sB(r));E.useEffect(()=>{i(sB(r))},[r]);const o=E.useMemo(()=>[...e].sort((f,m)=>new Date(m.publishedAt??0).getTime()-new Date(f.publishedAt??0).getTime()),[e]),l=E.useMemo(()=>iB(o,s),[o,s]),d=E.useMemo(()=>Object.fromEntries(Qx.map(f=>[f.id,iB(o,f.id).length])),[o]),u=f=>{i(f),n(f==="all"?"/art":`/art?type=${f}`)},g=Qx.find(f=>f.id===s)?.label??"All coverage";return a.jsx("section",{"data-loc":"client/src/components/ArtArchiveFilters.tsx:87",id:"art-news-archive",style:{padding:"3rem 0",background:"#000"},"aria-labelledby":"art-news-archive-title",children:a.jsxs("div",{"data-loc":"client/src/components/ArtArchiveFilters.tsx:88",className:"container",children:[a.jsxs("div",{"data-loc":"client/src/components/ArtArchiveFilters.tsx:89",style:{display:"flex",alignItems:"end",justifyContent:"space-between",gap:"1rem",flexWrap:"wrap",marginBottom:"1.1rem"},children:[a.jsxs("div",{"data-loc":"client/src/components/ArtArchiveFilters.tsx:90",style:{display:"flex",alignItems:"center",gap:"0.75rem"},children:[a.jsx("div",{"data-loc":"client/src/components/ArtArchiveFilters.tsx:91",style:{width:"4px",height:"28px",background:"#2c7df7",borderRadius:"2px"}}),a.jsxs("div",{"data-loc":"client/src/components/ArtArchiveFilters.tsx:92",children:[a.jsx("p",{"data-loc":"client/src/components/ArtArchiveFilters.tsx:93",style:{margin:0,fontSize:"0.65rem",fontWeight:800,textTransform:"uppercase",letterSpacing:"0.12em",color:"#2c7df7"},children:"Browse by story type"}),a.jsx("h2",{"data-loc":"client/src/components/ArtArchiveFilters.tsx:94",id:"art-news-archive-title",style:{margin:"0.15rem 0 0",fontSize:"1.25rem",fontWeight:900,color:"#fff"},children:"Art on Tezos news archive"})]})]}),a.jsx($,{"data-loc":"client/src/components/ArtArchiveFilters.tsx:97",href:"/art-on-tezos",style:{color:"#8abaff",fontSize:"0.78rem",fontWeight:800,textDecoration:"none"},children:"Open the Art on Tezos hub â"})]}),a.jsx("p",{"data-loc":"client/src/components/ArtArchiveFilters.tsx:99",style:{margin:"0 0 1.15rem",maxWidth:"680px",color:"rgba(255,255,255,0.56)",fontSize:"0.84rem",lineHeight:1.55},children:"Use a clear story type to move between weekly round-ups, exhibitions, and artist or project releases without losing the wider Tezos art archive."}),a.jsx("div",{"data-loc":"client/src/components/ArtArchiveFilters.tsx:101",role:"group","aria-label":"Filter Art on Tezos archive",style:{display:"flex",flexWrap:"wrap",gap:"0.55rem",marginBottom:"1.25rem"},children:Qx.map(f=>{const m=eAe(f.id),y=s===f.id;return a.jsxs("button",{"data-loc":"client/src/components/ArtArchiveFilters.tsx:106",type:"button",onClick:()=>u(f.id),"aria-pressed":y,title:f.description,style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",minHeight:"40px",padding:"0.5rem 0.8rem",borderRadius:"999px",cursor:"pointer",border:y?"1px solid #2c7df7":"1px solid rgba(255,255,255,0.16)",background:y?"rgba(44,125,247,0.18)":"rgba(255,255,255,0.025)",color:y?"#9bc1ff":"rgba(255,255,255,0.7)",fontSize:"0.74rem",fontWeight:800},children:[a.jsx(m,{"data-loc":"client/src/components/ArtArchiveFilters.tsx:114",size:14,"aria-hidden":"true"})," ",f.label," ",a.jsx("span",{"data-loc":"client/src/components/ArtArchiveFilters.tsx:114","aria-label":`${d[f.id]} articles`,style:{color:y?"#fff":"rgba(255,255,255,0.42)"},children:d[f.id]})]},f.id)})}),a.jsxs("p",{"data-loc":"client/src/components/ArtArchiveFilters.tsx:120","aria-live":"polite",style:{margin:"0 0 1rem",color:"rgba(255,255,255,0.44)",fontSize:"0.76rem"},children:[l.length," ",g.toLowerCase()," article",l.length===1?"":"s"," shown"]}),t?a.jsxs("div",{"data-loc":"client/src/components/ArtArchiveFilters.tsx:123","aria-label":"Loading Art on Tezos archive",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))",gap:"1rem"},children:[a.jsx("div",{"data-loc":"client/src/components/ArtArchiveFilters.tsx:124",className:"skeleton",style:{height:"260px",borderRadius:"8px"}}),a.jsx("div",{"data-loc":"client/src/components/ArtArchiveFilters.tsx:125",className:"skeleton",style:{height:"260px",borderRadius:"8px"}}),a.jsx("div",{"data-loc":"client/src/components/ArtArchiveFilters.tsx:126",className:"skeleton",style:{height:"260px",borderRadius:"8px"}})]}):l.length?a.jsx("div",{"data-loc":"client/src/components/ArtArchiveFilters.tsx:129",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))",gap:"1rem"},children:l.map(f=>a.jsx(ms,{"data-loc":"client/src/components/ArtArchiveFilters.tsx:130",post:f,variant:"default"},f.id))}):a.jsxs("div",{"data-loc":"client/src/components/ArtArchiveFilters.tsx:133",style:{padding:"2rem",border:"1px dashed rgba(255,255,255,0.2)",borderRadius:"8px",background:"rgba(5,21,46,0.56)",color:"rgba(255,255,255,0.62)"},children:[a.jsxs("strong",{"data-loc":"client/src/components/ArtArchiveFilters.tsx:134",style:{display:"block",color:"#fff",marginBottom:"0.35rem"},children:["No ",g.toLowerCase()," articles are published yet."]}),"Try another story type or return to all coverage."]})]})})}const rAe=[{name:"objkt.com",description:"The leading Tezos NFT marketplace â discover, collect, and trade digital art",url:"https://objkt.com",color:"#2c7df7",icon:"ð¼ï¸"},{name:"Teia",description:"Community-run Tezos art platform, successor to Hic et Nunc",url:"https://teia.art",color:"#7c3aed",icon:"ð¿"},{name:"Art on Tezos",description:"Official Tezos Foundation art initiative â exhibitions, events, and artist support",url:"https://artontezos.com",color:"#059669",icon:"ð¨"},{name:"fxhash",description:"Generative art platform built on Tezos â algorithmic and code-based art",url:"https://www.fxhash.xyz",color:"#d97706",icon:"â¡"},{name:"HEK Basel",description:"House of Electronic Arts â Tezos Foundation partner for digital art exhibitions",url:"https://hek.ch",color:"#dc2626",icon:"ðï¸"},{name:"Tezos Commons",description:"Community hub for Tezos news, art events, and ecosystem updates",url:"https://tezoscommons.org",color:"#0891b2",icon:"ð"}],nAe=[{title:"404_LAND",subtitle:"Virtual Exhibition",venue:"HEK Basel à Tezos Foundation",dates:"June 12 â August 9, 2026",description:"A virtual group exhibition where error becomes both metaphor and framework. Six artists explore what happens when identity, memory, and meaning break down online.",url:"/404-land-hek-tezos-digital-art-exhibition",badge:"LIVE",badgeColor:"#22c55e",artists:["Gabriel Massan","dmstfctn","Varvara & Mar","Hind Al Saad","Kat Zhang","Alida Sun"]},{title:"Quayola: En plein air",subtitle:"Outdoor Installation",venue:"HEK Basel",dates:"June 15â21, 2026",description:"An outdoor installation by artist Quayola presented during Art Basel week, in partnership with the Tezos Foundation. A new objkt.one release launches June 17.",url:"/art-on-tezos-friday-recap-may-29-2026",badge:"ART BASEL",badgeColor:"#f97316",artists:["Quayola"]},{title:"Teia Cycles",subtitle:"Group Exhibition",venue:"NFC Summit, Lisbon",dates:"June 4â6, 2026",description:"20 selected artists presented by Teia Community and Art on Tezos during the NFC Summit at Unicorn Factory Lisboa.",url:"/art-on-tezos-friday-recap-may-29-2026",badge:"NFC SUMMIT",badgeColor:"#2c7df7",artists:["20 selected artists"]}];function aAe(){Ie({title:"Art on Tezos | XTZ.News â Digital Art, NFTs & Exhibitions",description:"Explore the Tezos digital art ecosystem â weekly recaps, NFT exhibitions, featured artists, and links to objkt.com, Teia, fxhash, and HEK Basel.",keywords:"Tezos art, Tezos NFT, objkt, Teia, fxhash, digital art Tezos, Tezos exhibitions, Art on Tezos",canonical:"https://xtz.news/art",jsonLd:ka({title:"Art on Tezos | XTZ.News",description:"Explore the Tezos digital art ecosystem â weekly recaps, NFT exhibitions, featured artists, and links to objkt.com, Teia, fxhash, and HEK Basel.",url:"https://xtz.news/art",breadcrumbs:[{name:"Home",url:"https://xtz.news"},{name:"Art",url:"https://xtz.news/art"}]})});const{data:e,isLoading:t}=ee.posts.byCategory.useQuery({slug:"art",limit:100,offset:0},{staleTime:5*6e4}),{data:r,isLoading:n}=ee.posts.byCategory.useQuery({slug:"exhibition",limit:100,offset:0},{staleTime:5*6e4}),s=E.useMemo(()=>Array.from(new Map([...e?.posts??[],...r?.posts??[]].map(b=>[b.id,b])).values()),[e,r]),{data:i}=ee.tools.featuredArtist.useQuery(void 0,{staleTime:60*6e4}),{data:o=[]}=ee.tools.trendingCollections.useQuery({limit:6},{staleTime:10*6e4}),[l,d]=E.useState(24),[u,g]=E.useState(0),[f,m]=E.useState(""),{data:y=[]}=ee.tools.newDrops.useQuery({limit:12,hours:l},{staleTime:5*6e4,refetchInterval:10*6e4}),S=y.filter(b=>{if(u>0&&(!b.price||b.price<u))return!1;if(f.trim()){const v=f.toLowerCase();return b.creators.some(j=>j.toLowerCase().includes(v))||(b.collectionName||"").toLowerCase().includes(v)}return!0}).slice(0,6);return a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:149",style:{background:"#000",minHeight:"100vh"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:152",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 40%, #1a0a3e 100%)",borderBottom:"1px solid rgba(255,255,255,0.08)",padding:"4rem 0 3rem",position:"relative",overflow:"hidden"},children:[a.jsx("div",{"data-loc":"client/src/pages/ArtPage.tsx:160",style:{position:"absolute",inset:0,opacity:.04,backgroundImage:"radial-gradient(circle at 20% 50%, #7c3aed 0%, transparent 50%), radial-gradient(circle at 80% 50%, #2c7df7 0%, transparent 50%)",pointerEvents:"none"}}),a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:165",className:"container",style:{position:"relative"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:166",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginBottom:"1rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/ArtPage.tsx:167",style:{fontSize:"0.65rem",fontWeight:800,textTransform:"uppercase",letterSpacing:"0.15em",color:"#7c3aed"},children:"Tezos Ecosystem"}),a.jsx("span",{"data-loc":"client/src/pages/ArtPage.tsx:170",style:{color:"rgba(255,255,255,0.2)",fontSize:"0.7rem"},children:"â"}),a.jsx("span",{"data-loc":"client/src/pages/ArtPage.tsx:171",style:{fontSize:"0.65rem",fontWeight:700,color:"rgba(255,255,255,0.4)",textTransform:"uppercase",letterSpacing:"0.1em"},children:"Digital Art & NFTs"})]}),a.jsx("h1",{"data-loc":"client/src/pages/ArtPage.tsx:175",style:{fontSize:"clamp(2.5rem, 6vw, 4rem)",fontWeight:900,color:"#fff",margin:"0 0 1rem",lineHeight:1.1,letterSpacing:"-0.02em"},children:"Art on Tezos"}),a.jsx("p",{"data-loc":"client/src/pages/ArtPage.tsx:181",style:{fontSize:"1.1rem",color:"rgba(255,255,255,0.6)",maxWidth:"600px",margin:"0 0 2rem",lineHeight:1.6},children:"Discover the Tezos digital art ecosystem â weekly recaps, live exhibitions, community events, and the platforms powering the next generation of digital creativity."}),a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:188",style:{display:"flex",flexWrap:"wrap",gap:"0.75rem"},children:[a.jsxs("a",{"data-loc":"client/src/pages/ArtPage.tsx:189",href:"https://objkt.com",target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",padding:"0.6rem 1.25rem",background:"rgba(44,125,247,0.15)",border:"1px solid rgba(44,125,247,0.4)",borderRadius:"4px",color:"#2c7df7",textDecoration:"none",fontSize:"0.82rem",fontWeight:700,transition:"all 0.2s"},onMouseEnter:b=>{b.currentTarget.style.background="rgba(44,125,247,0.25)"},onMouseLeave:b=>{b.currentTarget.style.background="rgba(44,125,247,0.15)"},children:["Explore objkt.com ",a.jsx(ve,{"data-loc":"client/src/pages/ArtPage.tsx:193",size:12})]}),a.jsxs("a",{"data-loc":"client/src/pages/ArtPage.tsx:195",href:"https://teia.art",target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",padding:"0.6rem 1.25rem",background:"rgba(124,58,237,0.15)",border:"1px solid rgba(124,58,237,0.4)",borderRadius:"4px",color:"#a78bfa",textDecoration:"none",fontSize:"0.82rem",fontWeight:700,transition:"all 0.2s"},onMouseEnter:b=>{b.currentTarget.style.background="rgba(124,58,237,0.25)"},onMouseLeave:b=>{b.currentTarget.style.background="rgba(124,58,237,0.15)"},children:["Explore Teia ",a.jsx(ve,{"data-loc":"client/src/pages/ArtPage.tsx:199",size:12})]}),a.jsxs($,{"data-loc":"client/src/pages/ArtPage.tsx:201",href:"/art-on-tezos-friday-recap-may-29-2026",style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",padding:"0.6rem 1.25rem",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.15)",borderRadius:"4px",color:"rgba(255,255,255,0.7)",textDecoration:"none",fontSize:"0.82rem",fontWeight:700},children:["Latest Art Recap ",a.jsx(_e,{"data-loc":"client/src/pages/ArtPage.tsx:203",size:12})]})]})]})]}),a.jsx("section",{"data-loc":"client/src/pages/ArtPage.tsx:210",style:{padding:"3rem 0",background:"#05152e",borderBottom:"1px solid rgba(255,255,255,0.06)"},children:a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:211",className:"container",children:[a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:212",style:{display:"flex",alignItems:"center",gap:"0.75rem",marginBottom:"1.75rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/ArtPage.tsx:213",style:{width:"4px",height:"28px",background:"#7c3aed",borderRadius:"2px"}}),a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:214",children:[a.jsx("p",{"data-loc":"client/src/pages/ArtPage.tsx:215",style:{margin:0,fontSize:"0.65rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",color:"#7c3aed",marginBottom:"2px"},children:"Now & Upcoming"}),a.jsx("h2",{"data-loc":"client/src/pages/ArtPage.tsx:216",style:{margin:0,fontSize:"1.1rem",fontWeight:800,color:"#fff"},children:"Featured Exhibitions"})]})]}),a.jsx("div",{"data-loc":"client/src/pages/ArtPage.tsx:219",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(280px, 1fr))",gap:"1.25rem"},children:nAe.map(b=>a.jsx($,{"data-loc":"client/src/pages/ArtPage.tsx:221",href:b.url,style:{textDecoration:"none"},children:a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:222",style:{background:"#000",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"8px",padding:"1.5rem",height:"100%",display:"flex",flexDirection:"column",gap:"0.75rem",transition:"transform 0.2s, border-color 0.2s, box-shadow 0.2s"},onMouseEnter:v=>{const j=v.currentTarget;j.style.transform="translateY(-3px)",j.style.borderColor="rgba(124,58,237,0.4)",j.style.boxShadow="0 8px 24px rgba(0,0,0,0.4)"},onMouseLeave:v=>{const j=v.currentTarget;j.style.transform="translateY(0)",j.style.borderColor="rgba(255,255,255,0.07)",j.style.boxShadow="none"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:229",style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[a.jsx("span",{"data-loc":"client/src/pages/ArtPage.tsx:230",style:{fontSize:"0.6rem",fontWeight:800,textTransform:"uppercase",letterSpacing:"0.1em",color:b.badgeColor,background:`${b.badgeColor}20`,padding:"2px 8px",borderRadius:"2px",border:`1px solid ${b.badgeColor}40`},children:b.badge}),a.jsx("span",{"data-loc":"client/src/pages/ArtPage.tsx:233",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.35)",fontWeight:600},children:b.dates})]}),a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:235",children:[a.jsx("h3",{"data-loc":"client/src/pages/ArtPage.tsx:236",style:{margin:"0 0 2px",fontSize:"1.1rem",fontWeight:900,color:"#fff"},children:b.title}),a.jsxs("p",{"data-loc":"client/src/pages/ArtPage.tsx:237",style:{margin:0,fontSize:"0.72rem",fontWeight:700,color:"rgba(255,255,255,0.4)",textTransform:"uppercase",letterSpacing:"0.06em"},children:[b.subtitle," · ",b.venue]})]
1125}),a.jsx("p",{"data-loc":"client/src/pages/ArtPage.tsx:239",style:{margin:0,fontSize:"0.82rem",color:"rgba(255,255,255,0.6)",lineHeight:1.5,flex:1},children:b.description}),a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:240",style:{display:"flex",flexWrap:"wrap",gap:"0.3rem"},children:[b.artists.slice(0,3).map(v=>a.jsx("span",{"data-loc":"client/src/pages/ArtPage.tsx:242",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.4)",background:"rgba(255,255,255,0.05)",padding:"2px 7px",borderRadius:"2px"},children:v},v)),b.artists.length>3&&a.jsxs("span",{"data-loc":"client/src/pages/ArtPage.tsx:244",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.3)",padding:"2px 4px"},children:["+",b.artists.length-3," more"]})]})]})},b.title))})]})}),o.length>0&&a.jsx("section",{"data-loc":"client/src/pages/ArtPage.tsx:255",style:{padding:"2rem 0",background:"#05152e",borderBottom:"1px solid rgba(255,255,255,0.06)"},children:a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:256",className:"container",children:[a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:257",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"1.25rem",flexWrap:"wrap",gap:"0.75rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:258",style:{display:"flex",alignItems:"center",gap:"0.75rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/ArtPage.tsx:259",style:{width:"4px",height:"28px",background:"#f97316",borderRadius:"2px"}}),a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:260",children:[a.jsx("p",{"data-loc":"client/src/pages/ArtPage.tsx:261",style:{margin:0,fontSize:"0.65rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",color:"#f97316",marginBottom:"2px"},children:"24h Volume"}),a.jsx("h2",{"data-loc":"client/src/pages/ArtPage.tsx:262",style:{margin:0,fontSize:"1.1rem",fontWeight:800,color:"#fff"},children:"Trending Collections"})]})]}),a.jsxs("a",{"data-loc":"client/src/pages/ArtPage.tsx:265",href:"https://objkt.com/explore/collections",target:"_blank",rel:"noopener noreferrer",style:{fontSize:"0.7rem",fontWeight:700,color:"#f97316",textDecoration:"none",display:"flex",alignItems:"center",gap:"0.3rem"},children:["View all on objkt ",a.jsx(ve,{"data-loc":"client/src/pages/ArtPage.tsx:267",size:11})]})]}),a.jsx("div",{"data-loc":"client/src/pages/ArtPage.tsx:270",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(180px, 1fr))",gap:"0.875rem"},children:o.map((b,v)=>a.jsx("a",{"data-loc":"client/src/pages/ArtPage.tsx:272",href:b.objktUrl,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none"},children:a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:273",style:{background:"#000",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"8px",padding:"1rem",display:"flex",flexDirection:"column",gap:"0.5rem",transition:"border-color 0.2s, transform 0.2s",position:"relative",overflow:"hidden"},onMouseEnter:j=>{const k=j.currentTarget;k.style.borderColor="rgba(249,115,22,0.4)",k.style.transform="translateY(-2px)";const P=k.querySelector(".col-desc");P&&(P.style.opacity="1")},onMouseLeave:j=>{const k=j.currentTarget;k.style.borderColor="rgba(255,255,255,0.07)",k.style.transform="translateY(0)";const P=k.querySelector(".col-desc");P&&(P.style.opacity="0")},children:[a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:288",style:{display:"flex",alignItems:"center",gap:"0.6rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/ArtPage.tsx:289",style:{fontSize:"1.1rem",fontWeight:900,color:v<3?"#f97316":"rgba(255,255,255,0.2)",flexShrink:0,width:"1.2rem"},children:v+1}),b.logo?a.jsx("img",{"data-loc":"client/src/pages/ArtPage.tsx:291",src:b.logo,alt:b.name,style:{width:"32px",height:"32px",borderRadius:"50%",objectFit:"cover",flexShrink:0},onError:j=>{j.currentTarget.style.display="none"}}):a.jsx("div",{"data-loc":"client/src/pages/ArtPage.tsx:294",style:{width:"32px",height:"32px",borderRadius:"50%",background:"rgba(249,115,22,0.2)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"0.9rem",flexShrink:0},children:"ð¨"}),a.jsx("span",{"data-loc":"client/src/pages/ArtPage.tsx:296",style:{fontSize:"0.82rem",fontWeight:700,color:"#fff",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:b.name})]}),a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:298",style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:299",children:[a.jsx("p",{"data-loc":"client/src/pages/ArtPage.tsx:300",style:{margin:0,fontSize:"0.6rem",color:"rgba(255,255,255,0.35)",fontWeight:600},children:"24h Vol"}),a.jsxs("p",{"data-loc":"client/src/pages/ArtPage.tsx:301",style:{margin:0,fontSize:"0.88rem",fontWeight:800,color:"#f97316"},children:[b.volume24h.toFixed(0)," ê©"]})]}),b.floorPrice&&a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:304",style:{textAlign:"right"},children:[a.jsx("p",{"data-loc":"client/src/pages/ArtPage.tsx:305",style:{margin:0,fontSize:"0.6rem",color:"rgba(255,255,255,0.35)",fontWeight:600},children:"Floor"}),a.jsxs("p",{"data-loc":"client/src/pages/ArtPage.tsx:306",style:{margin:0,fontSize:"0.82rem",fontWeight:700,color:"rgba(255,255,255,0.7)"},children:[b.floorPrice.toFixed(1)," ê©"]})]})]}),b.description&&a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:312",className:"col-desc",style:{position:"absolute",inset:0,background:"rgba(5,21,46,0.95)",padding:"0.875rem",display:"flex",flexDirection:"column",justifyContent:"center",opacity:0,transition:"opacity 0.2s ease",borderRadius:"8px"},children:[a.jsx("p",{"data-loc":"client/src/pages/ArtPage.tsx:320",style:{margin:"0 0 0.5rem",fontSize:"0.78rem",fontWeight:800,color:"#fff"},children:b.name}),a.jsx("p",{"data-loc":"client/src/pages/ArtPage.tsx:321",style:{margin:0,fontSize:"0.72rem",color:"rgba(255,255,255,0.65)",lineHeight:1.4,display:"-webkit-box",WebkitLineClamp:4,WebkitBoxOrient:"vertical",overflow:"hidden"},children:b.description}),a.jsxs("p",{"data-loc":"client/src/pages/ArtPage.tsx:322",style:{margin:"0.5rem 0 0",fontSize:"0.62rem",fontWeight:700,color:"#f97316"},children:[b.items," items · ",b.owners," owners"]})]})]})},b.contract))})]})}),S.length>0&&a.jsx("section",{"data-loc":"client/src/pages/ArtPage.tsx:335",style:{padding:"2.5rem 0",background:"#000",borderBottom:"1px solid rgba(255,255,255,0.06)"},children:a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:336",className:"container",children:[a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:337",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"1.5rem",flexWrap:"wrap",gap:"0.75rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:338",style:{display:"flex",alignItems:"center",gap:"0.75rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/ArtPage.tsx:339",style:{width:"4px",height:"28px",background:"#22c55e",borderRadius:"2px"}}),a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:340",children:[a.jsx("p",{"data-loc":"client/src/pages/ArtPage.tsx:341",style:{margin:0,fontSize:"0.65rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",color:"#22c55e",marginBottom:"2px"},children:"Last 24 Hours"}),a.jsx("h2",{"data-loc":"client/src/pages/ArtPage.tsx:342",style:{margin:0,fontSize:"1.1rem",fontWeight:800,color:"#fff"},children:"New Drops"})]}),a.jsx("div",{"data-loc":"client/src/pages/ArtPage.tsx:344",style:{width:"8px",height:"8px",borderRadius:"50%",background:"#22c55e",animation:"pulse 2s infinite"}})]}),a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:346",style:{display:"flex",gap:"0.5rem",flexWrap:"wrap",alignItems:"center"},children:[a.jsx("div",{"data-loc":"client/src/pages/ArtPage.tsx:348",style:{display:"flex",gap:"0.3rem"},children:[6,24,48].map(b=>a.jsxs("button",{"data-loc":"client/src/pages/ArtPage.tsx:350",onClick:()=>d(b),style:{padding:"0.25rem 0.6rem",borderRadius:"3px",fontSize:"0.62rem",fontWeight:700,cursor:"pointer",border:l===b?"1px solid #22c55e":"1px solid rgba(255,255,255,0.12)",background:l===b?"rgba(34,197,94,0.15)":"transparent",color:l===b?"#22c55e":"rgba(255,255,255,0.4)",transition:"all 0.15s"},children:[b,"h"]},b))}),a.jsxs("select",{"data-loc":"client/src/pages/ArtPage.tsx:357",value:u,onChange:b=>g(Number(b.target.value)),style:{background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"3px",color:"rgba(255,255,255,0.6)",padding:"0.25rem 0.4rem",fontSize:"0.62rem",cursor:"pointer"},children:[a.jsx("option",{"data-loc":"client/src/pages/ArtPage.tsx:359",value:0,children:"Any price"}),a.jsx("option",{"data-loc":"client/src/pages/ArtPage.tsx:360",value:1,children:"1+ ê©"}),a.jsx("option",{"data-loc":"client/src/pages/ArtPage.tsx:361",value:5,children:"5+ ê©"}),a.jsx("option",{"data-loc":"client/src/pages/ArtPage.tsx:362",value:10,children:"10+ ê©"})]}),a.jsx("input",{"data-loc":"client/src/pages/ArtPage.tsx:365",type:"text",value:f,onChange:b=>m(b.target.value),placeholder:"Filter by artist...",style:{background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"3px",color:"#fff",padding:"0.25rem 0.5rem",fontSize:"0.62rem",outline:"none",width:"110px",fontFamily:"inherit"},onFocus:b=>b.currentTarget.style.borderColor="#22c55e",onBlur:b=>b.currentTarget.style.borderColor="rgba(255,255,255,0.12)"}),a.jsxs("a",{"data-loc":"client/src/pages/ArtPage.tsx:370",href:"https://objkt.com/explore/tokens",target:"_blank",rel:"noopener noreferrer",style:{fontSize:"0.7rem",fontWeight:700,color:"#22c55e",textDecoration:"none",display:"flex",alignItems:"center",gap:"0.3rem"},children:["View all ",a.jsx(ve,{"data-loc":"client/src/pages/ArtPage.tsx:372",size:11})]})]})]}),a.jsx("div",{"data-loc":"client/src/pages/ArtPage.tsx:376",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(200px, 1fr))",gap:"1rem"},children:S.map((b,v)=>a.jsx("a",{"data-loc":"client/src/pages/ArtPage.tsx:378",href:b.objktUrl,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none"},children:a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:379",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"8px",overflow:"hidden",transition:"transform 0.2s, border-color 0.2s, box-shadow 0.2s"},onMouseEnter:j=>{const k=j.currentTarget;k.style.transform="translateY(-3px)",k.style.borderColor="rgba(34,197,94,0.4)",k.style.boxShadow="0 8px 24px rgba(0,0,0,0.4)"},onMouseLeave:j=>{const k=j.currentTarget;k.style.transform="translateY(0)",k.style.borderColor="rgba(255,255,255,0.07)",k.style.boxShadow="none"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:383",style:{aspectRatio:"1",background:"#000",overflow:"hidden",position:"relative"},children:[b.thumbnailUri?a.jsx("img",{"data-loc":"client/src/pages/ArtPage.tsx:385",src:b.thumbnailUri,alt:b.name,loading:"lazy",style:{width:"100%",height:"100%",objectFit:"cover"},onError:j=>{j.currentTarget.style.display="none"}}):a.jsx("div",{"data-loc":"client/src/pages/ArtPage.tsx:389",style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"2rem",opacity:.2},children:"ð¨"}),a.jsx("div",{"data-loc":"client/src/pages/ArtPage.tsx:392",style:{position:"absolute",top:"0.4rem",left:"0.4rem",background:"rgba(34,197,94,0.9)",color:"#fff",fontSize:"0.55rem",fontWeight:900,textTransform:"uppercase",letterSpacing:"0.1em",padding:"2px 6px",borderRadius:"2px"},children:"NEW"}),b.price&&a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:395",style:{position:"absolute",bottom:"0.4rem",right:"0.4rem",background:"rgba(0,0,0,0.85)",color:"#22c55e",fontSize:"0.7rem",fontWeight:800,padding:"2px 7px",borderRadius:"3px"},children:[b.price.toFixed(1)," ê©"]})]}),a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:401",style:{padding:"0.75rem"},children:[a.jsx("h3",{"data-loc":"client/src/pages/ArtPage.tsx:402",style:{margin:"0 0 0.2rem",fontSize:"0.82rem",fontWeight:700,color:"#fff",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:b.name}),b.creators.length>0&&a.jsxs("p",{"data-loc":"client/src/pages/ArtPage.tsx:404",style:{margin:"0 0 0.2rem",fontSize:"0.65rem",color:"#22c55e",fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}
1125,children:["by ",b.creators.join(", ")]}),b.collectionName&&a.jsx("p",{"data-loc":"client/src/pages/ArtPage.tsx:407",style:{margin:0,fontSize:"0.62rem",color:"rgba(255,255,255,0.35)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:b.collectionName}),a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:409",style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:"0.4rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/ArtPage.tsx:410",style:{fontSize:"0.6rem",color:"rgba(255,255,255,0.3)"},children:b.supply>1?`Ed. ${b.supply}`:"1/1"}),a.jsx("span",{"data-loc":"client/src/pages/ArtPage.tsx:411",style:{fontSize:"0.6rem",color:"rgba(255,255,255,0.25)"},children:new Date(b.timestamp).toLocaleTimeString("en-GB",{hour:"2-digit",minute:"2-digit"})})]})]})]})},v))})]})}),i&&a.jsx("section",{"data-loc":"client/src/pages/ArtPage.tsx:424",style:{padding:"3rem 0",background:"#000",borderBottom:"1px solid rgba(255,255,255,0.06)"},children:a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:425",className:"container",children:[a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:426",style:{display:"flex",alignItems:"center",gap:"0.75rem",marginBottom:"1.75rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/ArtPage.tsx:427",style:{width:"4px",height:"28px",background:"#f97316",borderRadius:"2px"}}),a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:428",children:[a.jsx("p",{"data-loc":"client/src/pages/ArtPage.tsx:429",style:{margin:0,fontSize:"0.65rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",color:"#f97316",marginBottom:"2px"},children:"Weekly Spotlight"}),a.jsx("h2",{"data-loc":"client/src/pages/ArtPage.tsx:430",style:{margin:0,fontSize:"1.1rem",fontWeight:800,color:"#fff"},children:"Featured Artist"})]}),a.jsx("span",{"data-loc":"client/src/pages/ArtPage.tsx:432",style:{marginLeft:"auto",fontSize:"0.6rem",fontWeight:700,color:"rgba(255,255,255,0.3)",textTransform:"uppercase",letterSpacing:"0.1em"},children:"Rotates weekly"})]}),a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:435",style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"2rem",alignItems:"start"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:437",style:{background:"#05152e",border:"1px solid rgba(249,115,22,0.2)",borderRadius:"8px",padding:"2rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:438",style:{display:"flex",alignItems:"flex-start",gap:"1rem",marginBottom:"1.25rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/ArtPage.tsx:439",style:{width:"64px",height:"64px",borderRadius:"50%",background:"linear-gradient(135deg, #f97316, #7c3aed)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,fontSize:"1.5rem",overflow:"hidden",border:"2px solid rgba(249,115,22,0.4)"},children:i.logo?a.jsx("img",{"data-loc":"client/src/pages/ArtPage.tsx:441",src:i.logo,alt:i.alias,style:{width:"100%",height:"100%",objectFit:"cover"},onError:b=>{b.currentTarget.style.display="none"}}):a.jsx("span",{"data-loc":"client/src/pages/ArtPage.tsx:443",style:{fontSize:"1.5rem"},children:"ð¨"})}),a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:446",style:{flex:1,minWidth:0},children:[a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:447",
1125style:{display:"flex",alignItems:"center",gap:"0.5rem",flexWrap:"wrap"},children:[a.jsx("h3",{"data-loc":"client/src/pages/ArtPage.tsx:448",style:{margin:0,fontSize:"1.25rem",fontWeight:900,color:"#fff"},children:i.alias}),a.jsx(o0,{"data-loc":"client/src/pages/ArtPage.tsx:449",size:14,style:{color:"#f97316"}})]}),a.jsx("p",{"data-loc":"client/src/pages/ArtPage.tsx:451",style:{margin:"2px 0 0",fontSize:"0.72rem",fontWeight:700,color:"#f97316",textTransform:"uppercase",letterSpacing:"0.06em"},children:i.note})]})]}),i.description&&a.jsx("p",{"data-loc":"client/src/pages/ArtPage.tsx:456",style:{margin:"0 0 1.25rem",fontSize:"0.88rem",color:"rgba(255,255,255,0.65)",lineHeight:1.6},children:i.description}),a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:461",style:{display:"flex",flexWrap:"wrap",gap:"0.5rem"},children:[a.jsxs("a",{"data-loc":"client/src/pages/ArtPage.tsx:462",href:i.objktUrl,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",padding:"0.5rem 1rem",background:"rgba(249,115,22,0.15)",border:"1px solid rgba(249,115,22,0.4)",borderRadius:"4px",color:"#f97316",textDecoration:"none",fontSize:"0.78rem",fontWeight:700,transition:"all 0.2s"},onMouseEnter:b=>{b.currentTarget.style.background="rgba(249,115,22,0.25)"},onMouseLeave:b=>{b.currentTarget.style.background="rgba(249,115,22,0.15)"},children:["View on objkt ",a.jsx(ve,{"data-loc":"client/src/pages/ArtPage.tsx:466",size:11})]}),i.twitter&&a.jsxs("a",{"data-loc":"client/src/pages/ArtPage.tsx:469",href:i.twitter,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",padding:"0.5rem 1rem",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"4px",color:"rgba(255,255,255,0.6)",textDecoration:"none",fontSize:"0.78rem",fontWeight:700,transition:"all 0.2s"},onMouseEnter:b=>{b.currentTarget.style.background="rgba(255,255,255,0.1)"},onMouseLeave:b=>{b.currentTarget.style.background="rgba(255,255,255,0.06)"},children:[a.jsx(vc,{"data-loc":"client/src/pages/ArtPage.tsx:473",size:12})," Twitter"]}),i.website&&a.jsxs("a",{"data-loc":"client/src/pages/ArtPage.tsx:477",href:i.website,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",padding:"0.5rem 1rem",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"4px",color:"rgba(255,255,255,0.6)",textDecoration:"none",fontSize:"0.78rem",fontWeight:700,transition:"all 0.2s"},onMouseEnter:b=>{b.currentTarget.style.background="rgba(255,255,255,0.1)"},onMouseLeave:b=>{b.currentTarget.style.background="rgba(255,255,255,0.06)"},children:[a.jsx(ba,{"data-loc":"client/src/pages/ArtPage.tsx:481",size:12})," Website"]})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:488",children:[a.jsx("p",{"data-loc":"client/src/pages/ArtPage.tsx:489",style:{margin:"0 0 1rem",fontSize:"0.72rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.4)"},children:"Recent Works"}),i.recentWorks.length>0?a.jsx("div",{"data-loc":"client/src/pages/ArtPage.tsx:491",style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"0.75rem"},children:i.recentWorks.slice(0,6).map((b,v)=>a.jsx("a",{"data-loc":"client/src/pages/ArtPage.tsx:493",href:`https://objkt.com/explore/tokens?creator=${i.address}`,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none",display:"block"},children:a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:495",style:{aspectRatio:"1",background:"#05152e",borderRadius:"6px",overflow:"hidden",border:"1px solid rgba(255,255,255,0.07)",transition:"border-color 0.2s",position:"relative"},onMouseEnter:j=>{const k=j.currentTarget;k.style.borderColor="rgba(249,115,22,0.4)";const P=k.querySelector(".artwork-overlay");P&&(P.style.opacity="1")},onMouseLeave:j=>{const k=j.currentTarget;k.style.borderColor="rgba(255,255,255,0.07)";const P=k.querySelector(".artwork-overlay");P&&(P.style.opacity="0")},children:[b.thumbnailUri?a.jsx("img",{"data-loc":"client/src/pages/ArtPage.tsx:510",src:b.thumbnailUri,alt:b.name||"Artwork",loading:"lazy",style:{width:"100%",height:"100%",objectFit:"cover"},onError:j=>{j.currentTarget.style.display="none"}}):a.jsx("div",{"data-loc":"client/src/pages/ArtPage.tsx:514",style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"1.5rem",opacity:.3},children:"ð¨"}),b.name&&a.jsx("div",{"data-loc":"client/src/pages/ArtPage.tsx:518",className:"artwork-overlay",style:{position:"absolute",inset:0,background:"linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%)",display:"flex",alignItems:"flex-end",padding:"0.5rem",opacity:0,transition:"opacity 0.2s ease"},children:a.jsx("p",{"data-loc":"client/src/pages/ArtPage.tsx:524",style:{margin:0,fontSize:"0.62rem",fontWeight:700,color:"#fff",lineHeight:1.3,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:b.name})})]})},v))}):a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:532",style:{background:"#05152e",borderRadius:"8px",padding:"2rem",textAlign:"center"},children:[a.jsx("p",{"data-loc":"client/src/pages/ArtPage.tsx:533",style:{color:"rgba(255,255,255,0.3)",fontSize:"0.85rem"},children:"No recent works found on objkt"}),a.jsx("a",{"data-loc":"client/src/pages/ArtPage.tsx:534",href:i.objktUrl,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-block",marginTop:"0.75rem",color:"#f97316",fontSize:"0.8rem",fontWeight:700,textDecoration:"none"},children:"View profile on objkt â"})]})]})]})]})}),a.jsx(tAe,{"data-loc":"client/src/pages/ArtPage.tsx:546",posts:s,isLoading:t||n}),a.jsx("section",{"data-loc":"client/src/pages/ArtPage.tsx:549",style:{padding:"2.5rem 0",background:"linear-gradient(90deg, #05152e 0%, #0d1f3c 50%, #05152e 100%)",borderTop:"1px solid rgba(44,125,247,0.15)",borderBottom:"1px solid rgba(44,125,247,0.15)"},children:a.jsx("div",{"data-loc":"client/src/pages/ArtPage.tsx:550",className:"container",children:a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:551",style:{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between",gap:"1.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:552",style:{flex:"1 1 300px"},children:[a.jsx("p",{"data-loc":"client/src/pages/ArtPage.tsx:553",style:{margin:"0 0 0.3rem",fontSize:"0.65rem",fontWeight:800,textTransform:"uppercase",letterSpacing:"0.12em",color:"#2c7df7"},children:"For Artists"}),a.jsx("h2",{"data-loc":"client/src/pages/ArtPage.tsx:554",style:{margin:"0 0 0.5rem",fontSize:"clamp(1.2rem, 3vw, 1.75rem)",fontWeight:900,color:"#fff",lineHeight:1.2},children:"Get your artwork featured on XTZ.News"}),a.jsx("p",{"data-loc":"client/src/pages/ArtPage.tsx:555",style:{margin:0,fontSize:"0.85rem",color:"rgba(255,255,255,0.55)",lineHeight:1.5},children:"Submit your Tezos artwork, exhibition, or collection for coverage. We reach 1,000+ Tezos collectors and enthusiasts every week."})]}),a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:557",style:{display:"flex",gap:"0.75rem",flexWrap:"wrap",flexShrink:0},children:[a.jsxs($,{"data-loc":"client/src/pages/ArtPage.tsx:558",href:"/submit-article",style:{display:"inline-flex",alignItems:"center",gap:"0.5rem",padding:"0.875rem 1.75rem",background:"#2c7df7",border:"none",borderRadius:"4px",color:"#fff",textDecoration:"none",fontSize:"0.85rem",fontWeight:700,transition:"background 0.2s"},onMouseEnter:b=>{b.currentTarget.style.background="#1a6ae0"},onMouseLeave:b=>{b.currentTarget.style.background="#2c7df7"},children:["Submit Your Artwork ",a.jsx(_e,{"data-loc":"client/src/pages/ArtPage.tsx:562",size:14})]}),a.jsxs("a",{"data-loc":"client/src/pages/ArtPage.tsx:564",href:"https://objkt.com",target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.5rem",padding:"0.875rem 1.75rem",background:"transparent",border:"2px s
1125olid rgba(44,125,247,0.4)",borderRadius:"4px",color:"#2c7df7",textDecoration:"none",fontSize:"0.85rem",fontWeight:700,transition:"all 0.2s"},onMouseEnter:b=>{b.currentTarget.style.borderColor="#2c7df7",b.currentTarget.style.background="rgba(44,125,247,0.1)"},onMouseLeave:b=>{b.currentTarget.style.borderColor="rgba(44,125,247,0.4)",b.currentTarget.style.background="transparent"},children:["Mint on objkt ",a.jsx(ve,{"data-loc":"client/src/pages/ArtPage.tsx:568",size:13})]})]})]})})}),a.jsx("section",{"data-loc":"client/src/pages/ArtPage.tsx:576",style:{padding:"3rem 0",background:"#05152e",borderTop:"1px solid rgba(255,255,255,0.06)"},children:a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:577",className:"container",children:[a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:578",style:{display:"flex",alignItems:"center",gap:"0.75rem",marginBottom:"1.75rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/ArtPage.tsx:579",style:{width:"4px",height:"28px",background:"#059669",borderRadius:"2px"}}),a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:580",children:[a.jsx("p",{"data-loc":"client/src/pages/ArtPage.tsx:581",style:{margin:0,fontSize:"0.65rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",color:"#059669",marginBottom:"2px"},children:"Explore"}),a.jsx("h2",{"data-loc":"client/src/pages/ArtPage.tsx:582",style:{margin:0,fontSize:"1.1rem",fontWeight:800,color:"#fff"},children:"Tezos Art Ecosystem"})]})]}),a.jsx("div",{"data-loc":"client/src/pages/ArtPage.tsx:585",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(260px, 1fr))",gap:"1rem"},children:rAe.map(b=>a.jsx("a",{"data-loc":"client/src/pages/ArtPage.tsx:587",href:b.url,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none",display:"block"},children:a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:589",style:{background:"#000",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"8px",padding:"1.25rem",display:"flex",gap:"1rem",alignItems:"flex-start",transition:"transform 0.2s, border-color 0.2s"},onMouseEnter:v=>{const j=v.currentTarget;j.style.transform="translateY(-2px)",j.style.borderColor=`${b.color}40`},onMouseLeave:v=>{const j=v.currentTarget;j.style.transform="translateY(0)",j.style.borderColor="rgba(255,255,255,0.07)"},children:[a.jsx("span",{"data-loc":"client/src/pages/ArtPage.tsx:596",style:{fontSize:"1.5rem",flexShrink:0,lineHeight:1},children:b.icon}),a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:597",style:{flex:1,minWidth:0},children:[a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:598",style:{display:"flex",alignItems:"center",gap:"0.4rem",marginBottom:"0.3rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/ArtPage.tsx:599",style:{fontSize:"0.88rem",fontWeight:800,color:"#fff"},children:b.name}),a.jsx(ve,{"data-loc":"client/src/pages/ArtPage.tsx:600",size:11,style:{color:"rgba(255,255,255,0.3)",flexShrink:0}})]}),a.jsx("p",{"data-loc":"client/src/pages/ArtPage.tsx:602",style:{margin:0,fontSize:"0.78rem",color:"rgba(255,255,255,0.5)",lineHeight:1.4},children:b.description})]})]})},b.name))})]})}),a.jsx("section",{"data-loc":"client/src/pages/ArtPage.tsx:612",style:{padding:"3rem 0",background:"linear-gradient(135deg, #1a0a3e 0%, #05152e 100%)",borderTop:"1px solid rgba(124,58,237,0.2)"},children:a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:613",className:"container",style:{textAlign:"center"},children:[a.jsx("p",{"data-loc":"client/src/pages/ArtPage.tsx:614",style:{margin:"0 0 0.5rem",fontSize:"0.65rem",fontWeight:800,textTransform:"uppercase",letterSpacing:"0.15em",color:"#7c3aed"},children:"Editorial archive"}),a.jsx("h2",{"data-loc":"client/src/pages/ArtPage.tsx:615",style:{margin:"0 0 0.75rem",fontSize:"clamp(1.5rem, 4vw, 2.5rem)",fontWeight:900,color:"#fff"},children:"Art on Tezos Recaps"}),a.jsx("p",{"data-loc":"client/src/pages/ArtPage.tsx:616",style:{margin:"0 0 2rem",fontSize:"0.95rem",color:"rgba(255,255,255,0.55)",maxWidth:"500px",marginLeft:"auto",marginRight:"auto",lineHeight:1.6},children:"Explore published coverage of Tezos art events, releases, exhibitions and community highlights. New official recaps are added after editorial review."}),a.jsxs("div",{"data-loc":"client/src/pages/ArtPage.tsx:619",style:{display:"flex",justifyContent:"center",gap:"1rem",flexWrap:"wrap"},children:[a.jsxs($,{"data-loc":"client/src/pages/ArtPage.tsx:620",href:"/category/art",style:{display:"inline-flex",alignItems:"center",gap:"0.5rem",padding:"0.875rem 2rem",background:"#7c3aed",border:"none",borderRadius:"4px",color:"#fff",textDecoration:"none",fontSize:"0.85rem",fontWeight:700,transition:"background 0.2s"},onMouseEnter:b=>{b.currentTarget.style.background="#6d28d9"},onMouseLeave:b=>{b.currentTarget.style.background="#7c3aed"},children:["Read All Recaps ",a.jsx(_e,{"data-loc":"client/src/pages/ArtPage.tsx:624",size:14})]}),a.jsx($,{"data-loc":"client/src/pages/ArtPage.tsx:626",href:"/art?type=recaps",style:{display:"inline-flex",alignItems:"center",gap:"0.5rem",padding:"0.875rem 2rem",background:"transparent",border:"2px s
1125olid rgba(124,58,237,0.5)",borderRadius:"4px",color:"#a78bfa",textDecoration:"none",fontSize:"0.85rem",fontWeight:700,transition:"all 0.2s"},onMouseEnter:b=>{b.currentTarget.style.borderColor="#7c3aed",b.currentTarget.style.background="rgba(124,58,237,0.1)"},onMouseLeave:b=>{b.currentTarget.style.borderColor="rgba(124,58,237,0.5)",b.currentTarget.style.background="transparent"},children:"Browse recap archive"})]})]})})]})}function zr({items:e}){return a.jsxs("nav",{"data-loc":"client/src/components/ToolBreadcrumb.tsx:21","aria-label":"Breadcrumb",style:{display:"flex",alignItems:"center",gap:"0.35rem",marginBottom:"1rem",fontSize:"0.75rem",fontWeight:600,flexWrap:"wrap"},children:[a.jsx($,{"data-loc":"client/src/components/ToolBreadcrumb.tsx:33",href:"/","aria-label":"Home",style:{color:"rgba(255,255,255,0.5)",display:"flex",alignItems:"center",textDecoration:"none"},children:a.jsx(Qt,{"data-loc":"client/src/components/ToolBreadcrumb.tsx:38",size:12})}),e.map((t,r)=>a.jsxs("span",{"data-loc":"client/src/components/ToolBreadcrumb.tsx:41",style:{display:"flex",alignItems:"center",gap:"0.35rem"},children:[a.jsx(Le,{"data-loc":"client/src/components/ToolBreadcrumb.tsx:42",size:10,style:{color:"rgba(255,255,255,0.3)"}}),t.href?a.jsx($,{"data-loc":"client/src/components/ToolBreadcrumb.tsx:44",href:t.href,style:{color:"rgba(255,255,255,0.5)",textDecoration:"none"},children:t.label}):a.jsx("span",{"data-loc":"client/src/components/ToolBreadcrumb.tsx:51",style:{color:"rgba(255,255,255,0.7)"},children:t.label})]},r))]})}const sAe=[{href:"/tools/wallet",icon:"ð",title:"Wallet Inspector",description:"Enter any Tezos address to see XTZ balance, FA2 tokens, NFT count, delegation status, staking rewards, and recent transactions.",badge:"Read-only",badgeColor:"#22c55e",tags:["Balance","Tokens","Delegation","Transactions"]},{href:"/tools/whale-watcher",icon:"ð",title:"Whale Watcher",description:"Live feed of large XTZ transfers on the Tezos network. Set your own threshold and watch big moves happen in real time.",badge:"Live",badgeColor:"#2c7df7",tags:["Live Feed","Large Transfers","On-Chain"]},{href:"/tools/nft-gallery",icon:"ð¼ï¸",title:"NFT Gallery",description:"Enter any Tezos wallet address to view a beautiful visual gallery of all their NFTs â with links to objkt.com.",badge:"Read-only",badgeColor:"#22c55e",tags:["NFTs","FA2","objkt","Gallery"]},{href:"/tools/rewards",icon:"ð°",title:"Reward Calculator",description:"Enter any address to see a full history of delegation or baking rewards cycle by cycle, with APY trends and totals.",badge:"Read-only",badgeColor:"#22c55e",tags:["Rewards","APY","Delegation","Baking"]},{href:"/tools/portfolio",icon:"ð",title:"Portfolio Tracker",description:"Track up to 5 Tezos wallets at once. See combined XTZ balance, total USD value, token holdings, NFT count, and delegation status per wallet.",badge:"Multi-wallet",badgeColor:"#8b5cf6",tags:["Portfolio","Multi-wallet","USD Value","Tokens"]},{href:"/tools/address-book",icon:"ð",title:"Address Book",description:"Save and label your frequently-used Tezos addresses. Stored locally in your browser â no account needed. One-click access to Inspect, NFTs, and Rewards.",badge:"Local",badgeColor:"#f59e0b",tags:["Saved Addresses","Labels","Local Storage"]},{href:"/tools/token-price",icon:"ð",title:"Token Price History",description:"View trade history and price chart for any FA2 token on Tezos. Powered by objkt.com data â see high, low, average, and volume.",badge:"Read-only",badgeColor:"#22c55e",tags:["FA2 Tokens","Price Chart","Trade History","objkt"]},{href:"/tools/airdrop",icon:"ð",title:"Airdrop Checker",description:"Check if your address holds tokens from 10 major Tezos protocols â QuipuSwap, Youves, Kolibri, Tezos Domains, objkt.com, and more.",badge:"Read-only",badgeColor:"#22c55e",tags:["Airdrops","Token Eligibility","DeFi","NFTs"]},{href:"/tools/batch-lookup",icon:"ð",title:"Batch Address Lookup",description:"Paste up to 100 Tezos addresses and get XTZ balance, staking, delegation, and activity for each. Export results to CSV.",badge:"Export CSV",badgeColor:"#f97316",tags:["Batch","CSV Export","DAOs","Events"]},{href:"/tools/tns",icon:"ð",title:"TNS Lookup",description:"Resolve .tez domains to addresses, or enter a Tezos address to find all .tez names it owns. Shows expiry dates and all domains by the same owner.",badge:"Read-only",badgeColor:"#22c55e",tags:[".tez Domains","Reverse Lookup","Tezos Domains"]},{href:"/tools/live-ops",icon:"â¡",title:"Live Operations Monitor",description:"Real-time feed of Tezos on-chain operations: transactions, delegations, contract originations, and token transfers. Filter by type and minimum amount.",badge:"Live",badgeColor:"#2c7df7",tags:["Live Feed","Transactions","Delegations","Tokens"]},{href:"/tools/contract",icon:"ð",title:"Smart Contract Inspector",description:"Inspect any Tezos KT1 contract â view live storage with interactive JSON viewer, all entrypoints with parameter schemas, recent callers, and similar contracts.",badge:"Read-only",badgeColor:"#22c55e",tags:["Smart Contracts","Storage","Entrypoints","DeFi"]},{href:"/tools/defi",icon:"ð¦",title:"DeFi Dashboard",description:"Live Tezos DeFi overview: chain TVL, 90-day chart, protocol rankings with 24h/7d changes, and category breakdown (DEX, Synthetics, CDP, Lending). Powered by DeFiLlama.",badge:"Live",badgeColor:"#2c7df7",tags:["DeFi","TVL","Protocols","DeFiLlama"]},{href:"/tools/auctions",icon:"ð¨",title:"Live Auction Tracker",description:"Track all active Tezos NFT auctions from objkt.com â English and Dutch auctions with live countdown timers, current bids, thumbnail previews, and filters.",badge:"Live",badgeColor:"#2c7df7",tags:["NFT Auctions","English Auction","Dutch Auction","objkt"]},{href:"/tools/top-collectors",icon:"ð",title:"Top Collectors & Sellers",description:"Leaderboard of the most active Tezos NFT collectors and highest-earning artists ranked by spend/sales volume on objkt.com.",badge:"Live",badgeColor:"#fbbf24",tags:["Collectors","Artists","Leaderboard","objkt"]},{href:"/tools/collection-stats",icon:"ð",title:"Collection Stats",description:"Enter any Tezos NFT collection contract to see floor price, 24h volume, total volume, items, owners, and recent sales.",badge:"Read-only",badgeColor:"#22c55e",tags:["Collection","Floor Price","Volume","objkt"]}];
1125function iAe(){return Ie({title:"XTZ.News Tools â Free Tezos Blockchain Tools",description:"Free on-chain tools for the Tezos community: Wallet Inspector, Whale Watcher, NFT Gallery, Staking Calculator, DeFi Dashboard, Smart Contract Inspector, and more.",keywords:"Tezos tools, XTZ tools, Tezos blockchain tools, Tezos wallet inspector, Tezos DeFi, Tezos NFT, Tezos staking",canonical:"https://xtz.news/tools",jsonLd:ln({name:"XTZ.News Tools",description:"Free on-chain tools for the Tezos community: Wallet Inspector, Whale Watcher, NFT Gallery, Staking Calculator, DeFi Dashboard, Smart Contract Inspector, and more.",url:"https://xtz.news/tools"})}),a.jsxs("div",{"data-loc":"client/src/pages/tools/ToolsPage.tsx:164",style:{background:"#000",minHeight:"100vh"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/ToolsPage.tsx:166",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",borderBottom:"1px solid rgba(44,125,247,0.2)",padding:"2.5rem 0 2rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/tools/ToolsPage.tsx:167",className:"container",children:[a.jsx(zr,{"data-loc":"client/src/pages/tools/ToolsPage.tsx:168",items:[{label:"XTZ Tools"}]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/ToolsPage.tsx:169",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",flexWrap:"wrap",gap:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/ToolsPage.tsx:170",children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/ToolsPage.tsx:171",style:{display:"flex",alignItems:"center",gap:"0.75rem",marginBottom:"0.5rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/ToolsPage.tsx:172",style:{width:"42px",height:"42px",background:"rgba(44,125,247,0.2)",border:"1px solid rgba(44,125,247,0.4)",borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"1.3rem"},children:"ð ï¸"}),a.jsx("h1",{"data-loc":"client/src/pages/tools/ToolsPage.tsx:173",style:{fontSize:"clamp(1.5rem, 3vw, 2.2rem)",fontWeight:900,color:"#fff",margin:0,letterSpacing:"-0.02em"},children:"XTZ.News Tools"})]}),a.jsx("p",{"data-loc":"client/src/pages/tools/ToolsPage.tsx:175",style:{color:"rgba(255,255,255,0.5)",fontSize:"0.9rem",margin:0,maxWidth:"600px"},children:"Free on-chain tools for the Tezos community. No wallet connection required â just enter any address and explore. Built on the public TzKT API."})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/ToolsPage.tsx:179",style:{display:"flex",alignItems:"center",gap:"0.5rem",padding:"0.5rem 0.875rem",background:"rgba(44,125,247,0.08)",border:"1px solid rgba(44,125,247,0.2)",borderRadius:"6px"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/ToolsPage.tsx:180",style:{width:"6px",height:"6px",borderRadius:"50%",background:"#22c55e",animation:"pulse 2s infinite"}}),a.jsx("span",{"data-loc":"client/src/pages/tools/ToolsPage.tsx:181",style:{fontSize:"0.75rem",fontWeight:700,color:"rgba(255,255,255,0.6)"},children:"Powered by TzKT API · Free · No login"})]})]})]})}),a.jsxs("div",{"data-loc":"client/src/pages/tools/ToolsPage.tsx:188",className:"container",style:{padding:"2.5rem 1.25rem 4rem"},children:[a.jsxs("section",{"data-loc":"client/src/pages/tools/ToolsPage.tsx:189","aria-labelledby":"tz5-guide-feature-title",style:{display:"grid",gridTemplateColumns:"auto minmax(0, 1fr) auto",alignItems:"center",gap:"1.15rem",padding:"1.25rem",marginBottom:"1.4rem",border:"1px solid rgba(167,139,250,0.42)",borderRadius:"12px",background:"radial-gradient(circle at 88% 14%, rgba(139,92,246,0.24), transparent 34%), linear-gradient(110deg, rgba(24,34,83,0.9), rgba(7,23,53,0.94))"},className:"tz5-tools-feature",children:[a.jsx("span",{"data-loc":"client/src/pages/tools/ToolsPage.tsx:190","aria-hidden":"true",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"48px",height:"48px",borderRadius:"12px",background:"rgba(167,139,250,0.16)",border:"1px solid rgba(196,181,253,0.24)",color:"#d8caff"},children:a.jsx(Un,{"data-loc":"client/src/pages/tools/ToolsPage.tsx:190",size:23})}),a.jsxs("div",{"data-loc":"client/src/pages/tools/ToolsPage.tsx:191",children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/ToolsPage.tsx:192",style:{display:"flex",alignItems:"center",gap:"0.42rem",marginBottom:"0.38rem",color:"#c4b5fd",fontSize:"0.65rem",fontWeight:800,letterSpacing:"0.1em",textTransform:"uppercase"},children:[a.jsx(eh,{"data-loc":"client/src/pages/tools/ToolsPage.tsx:192",size:13,"aria-hidden":"true"})," New reader guide"]}),a.jsx("h2",{"data-loc":"client/src/pages/tools/ToolsPage.tsx:193",id:"tz5-guide-feature-title",style:{margin:0,color:"#fff",fontSize:"1.12rem",fontWeight:900,letterSpacing:"-0.015em"},children:"tz5 wallet guide"}),a.jsx("p",{"data-loc":"client/src/pages/tools/ToolsPage.tsx:194",style:{margin:"0.35rem 0 0",color:"rgba(255,255,255,0.68)",fontSize:"0.84rem",lineHeight:1.55},children:"Understand Tezosâ testnet-stage post-quantum account type, what it means today, and how to approach future testing safely."}),a.jsx($,{"data-loc":"client/src/pages/tools/ToolsPage.tsx:195",href:"/post-quantum",style:{display:"inline-flex",marginTop:"0.6rem",color:"#cfc3ff",fontSize:"0.71rem",fontWeight:800,textDecoration:"none"},children:"Explore the post-quantum hub â"})]}),a.jsxs($,{"data-loc":"client/src/pages/tools/ToolsPage.tsx:197",href:"/guides/tz5-wallet","aria-label":"Read the tz5 wallet guide",style:{display:"inline-flex",alignItems:"center",gap:"0.45rem",whiteSpace:"nowrap",color:"#fff",background:"#6654d9",padding:"0.7rem 0.9rem",borderRadius:"6px",textDecoration:"none",fontSize:"0.73rem",fontWeight:800,letterSpacing:"0.04em",textTransform:"uppercase"},children:["Read guide ",a.jsx(_e,{"data-loc":"client/src/pages/tools/ToolsPage.tsx:197",size:15,"aria-hidden":"true"})]})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/ToolsPage.tsx:199",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(300px, 1fr))",gap:"1.5rem"},children:sAe.map(e=>a.jsx($,{"data-loc":"client/src/pages/tools/ToolsPage.tsx:201",href:e.href,style:{textDecoration:"none",display:"block"},children:a.jsxs("div",{"data-loc":"client/src/pages/tools/ToolsPage.tsx:202",style:{background:"#05152e",border:"1px solid rgba(44,125,247,0.15)",borderRadius:"12px",padding:"1.5rem",height:"100%",display:"flex",flexDirection:"column",transition:"transform 0.2s, border-color 0.2s, box-shadow 0.2s",cursor:"pointer"},onMouseEnter:t=>{const r=t.currentTarget;r.style.transform="translateY(-4px)",r.style.borderColor="rgba(44,125,247,0.4)",r.style.boxShadow="0 12px 32px rgba(0,0,0,0.4)"},onMouseLeave:t=>{const r=t.currentTarget;r.style.transform="translateY(0)",r.style.borderColor="rgba(44,125,247,0.15)",r.style.boxShadow="none"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/ToolsPage.tsx:218",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",marginBottom:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/ToolsPage.tsx:219",style:{display:"flex",alignItems:"center",gap:"0.75rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/ToolsPage.tsx:220",style:{width:"44px",height:"44px",background:"rgba(44,125,247,0.12)",borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"1.4rem",flexShrink:0},children:e.icon}),a.jsxs("div",{"data-loc":"client/src/pages/tools/ToolsPage.tsx:223",children:[a.jsx("h2",{"data-loc":"client/src/pages/tools/ToolsPage.tsx:224",style:{fontSize:"1rem",fontWeight:800,color:"#fff",margin:"0 0 0.2rem",letterSpacing:"-0.01em"},children:e.title}),a.jsx("span",{"data-loc":"client/src/pages/tools/ToolsPage.tsx:225",style:{fontSize:"0.62rem",fontWeight:700,padding:"2px 7px",borderRadius:"10px",background:`${e.badgeColor}22`,color:e.badgeColor,border:`1px solid ${e.badgeColor}44`},children:e.badge})]})]}),a.jsx(ve,{"data-loc":"client/src/pages/tools/ToolsPage.tsx:230",size:14,style:{color:"rgba(255,255,255,0.2)",flexShrink:0,marginTop:"2px"}})]}),a.jsx("p",{"data-loc":"client/src/pages/tools/ToolsPage.tsx:234",style:{fontSize:"0.83rem",color:"rgba(255,255,255,0.55)",lineHeight:1.6,margin:"0 0 1rem",flex:1},children:e.description}),a.jsx("div",{"data-loc":"client/src/pages/tools/ToolsPage.tsx:239",style:{display:"flex",flexWrap:"wrap",gap:"0.35rem"},children:e.tags.map(t=>a.jsx("span",{"data-loc":"client/src/pages/tools/ToolsPage.tsx:241",style:{fontSize:"0.62rem",fontWeight:600,padding:"2px 8px",borderRadius:"10px",background:"rgba(255,255,255,0.06)",color:"rgba(255,255,255,0.4)",border:"1px solid rgba(255,255,255,0.08)"},children:t},t))})]})},e.href))}),a.jsxs("div",{"data-loc":"client/src/pages/tools/ToolsPage.tsx:252",style:{marginTop:"3rem",padding:"1.5rem",background:"rgba(44,125,247,0.04)",border:"1px dashed rgba(44,125,247,0.2)",borderRadius:"10px"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/ToolsPage.tsx:253",style:{fontSize:"0.72rem",fontWeight:800,color:"rgba(255,255,255,0.3)",textTransform:"uppercase",letterSpacing:"0.1em",marginBottom:"0.75rem"},children:"Coming Soon"}),a.jsx("div",{"data-loc":"client/src/pages/tools/ToolsPage.tsx:254",style:{display:"flex",flexWrap:"wrap",gap:"0.75rem"},children:["Token Explorer","Tezos Wallet Connect (Beacon)","Multi-sig Transaction Builder"].map(e=>a.jsx("span",{"data-loc":"client/src/pages/tools/ToolsPage.tsx:256",style:{fontSize:"0.78rem",padding:"0.35rem 0.875rem",background:"rgba(255,255,255,0.04)",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"20px",color:"rgba(255,255,255,0.35)"},children:e},e))})]})]})]})}function Sl(e){return e>=1e6?`${(e/1e6).toFixed(2)}M ê©`:e>=1e3?`${(e/1e3).toFixed(2)}K ê©`:`${e.toFixed(4)} ê©`}function Gk(e){if(!e)return"â";const t=new Date(e),r=Math.floor((Date.now()-t.getTime())/1e3);return r<60?`${r}s ago`:r<3600?`${Math.floor(r/60)}m ago`:r<86400?`${Math.floor(r/3600)}h ago`:t.toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"})}function oAe(e,t){const r=parseFloat(e)/Math.pow(10,t);return r>=1e6?`${(r/1e6).toFixed(2)}M`:r>=1e3?`${(r/1e3).toFixed(2)}K`:r.toFixed(t>0?2:0)}const lAe=[{label:"Coinbase Baker",address:"tz1irJKkXS2DBWkU1NnmFQx1c1L7pbGg4yhk"},{label:"Tezos Foundation",address:"tz3bTdwZinP8U1JmSweNzVKhmwafqWmFWRfk"}];function cAe(){Ie({title:"Tezos Wallet Inspector â Check Any XTZ Address | XTZ.News",description:"Inspect any Tezos wallet address: view XTZ balance, FA2 tokens, NFT count, delegation status, staking rewards, and recent transactions. Free, no login required.",keywords:"Tezos wallet inspector, XTZ wallet checker, Tezos address lookup, Tezos balance checker, tz1 address",canonical:"https://xtz.news/tools/wallet",jsonLd:[ln({name:"Tezos Wallet Inspector",description:"Inspect any Tezos wallet address: view XTZ balance, FA2 tokens, NFT count, delegation status, staking rewards, and recent transactions. Free, no login required.",url:"https://xtz.news/tools/wallet"}),Pa([{question:"How do I check a Tezos wallet balance?",answer:"Enter any Tezos address (tz1, tz2, tz3, or KT1) in the XTZ.News Wallet Inspector. It instantly shows the XTZ balance, staked XTZ, FA2 token holdings, NFT count, delegation status, and recent transactions. No login or wallet connection required."},{question:"What information can I see about a Tezos address?",answer:"The Tezos Wallet Inspector shows: XTZ balance, staked and unstaked balances, all FA2 fungible tokens, NFT count (with link to NFT Gallery), delegation status and baker, number of transactions, first and last activity dates, and the last 10 transactions."},{question:"Can I check any Tezos address without connecting my wallet?",answer:"Yes. The XTZ.News Wallet Inspector is completely read-only and requires no wallet connection. Simply paste any Tezos address (tz1, tz2, tz3, or KT1) and click Inspect to view all public on-chain data."},{question:"What is a tz1 address on Tezos?",answer:"A tz1 address is a standard Tezos account address derived from an E
1125d25519 public key. Most Tezos wallets (Temple, Kukai, Ledger) use tz1 addresses. There are also tz2 (secp256k1) and tz3 (P-256) addresses, and KT1 addresses for smart contracts."}])]});const[e,t]=E.useState(""),[r,n]=E.useState(""),{data:s,isLoading:i,error:o}=ee.tools.walletInspect.useQuery({address:r},{enabled:!!r,staleTime:6e4}),l=u=>{const g=(u||e).trim();g&&(n(g),u||t(g))},d=(u,g)=>{navigator.clipboard.writeText(u),Ee.success(`${g} copied!`)};return a.jsxs("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:74",style:{background:"#000",minHeight:"100vh"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:76",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",borderBottom:"1px solid rgba(44,125,247,0.2)",padding:"2rem 0"},children:a.jsxs("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:77",className:"container",children:[a.jsx(zr,{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:78",items:[{label:"Tools",href:"/tools"},{label:"Wallet Inspector"}]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:79",style:{display:"flex",alignItems:"center",gap:"0.75rem",marginBottom:"1rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:80",style:{width:"40px",height:"40px",background:"rgba(44,125,247,0.2)",border:"1px solid rgba(44,125,247,0.4)",borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"1.2rem"},children:"ð"}),a.jsxs("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:81",children:[a.jsx("h1",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:82",style:{fontSize:"1.6rem",fontWeight:900,color:"#fff",margin:0},children:"Wallet Inspector"}),a.jsx("p",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:83",style:{color:"rgba(255,255,255,0.45)",fontSize:"0.82rem",margin:0},children:"Enter any Tezos address to inspect balance, tokens, NFTs, delegation, and transactions"})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:88",style:{display:"flex",gap:"0.5rem",flexWrap:"wrap"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:89",style:{position:"relative",flex:"1 1 400px"},children:[a.jsx(ft,{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:90",size:15,style:{position:"absolute",left:"0.875rem",top:"50%",transform:"translateY(-50%)",color:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),a.jsx("input",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:91",value:e,onChange:u=>t(u.target.value),onKeyDown:u=>u.key==="Enter"&&l(),placeholder:"Enter tz1, tz2, tz3, or KT1 addressâ¦",style:{width:"100%",padding:"0.75rem 1rem 0.75rem 2.5rem",background:"rgba(255,255,255,0.07)",border:"1px solid rgba(44,125,247,0.3)",borderRadius:"8px",color:"#fff",fontSize:"0.9rem",outline:"none",fontFamily:"inherit",transition:"border-color 0.15s"},onFocus:u=>u.currentTarget.style.borderColor="#2c7df7",onBlur:u=>u.currentTarget.style.borderColor="rgba(44,125,247,0.3)"})]}),a.jsx("button",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:101",onClick:()=>l(),style:{padding:"0.75rem 1.5rem",background:"#2c7df7",border:"none",borderRadius:"8px",color:"#fff",fontWeight:700,fontSize:"0.9rem",cursor:"pointer",transition:"background 0.15s",fontFamily:"inherit"},onMouseEnter:u=>u.currentTarget.style.background="#1a6ae0",onMouseLeave:u=>u.currentTarget.style.background="#2c7df7",children:"Inspect"})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:110",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginTop:"0.75rem",flexWrap:"wrap"},children:[a.jsx("span",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:111",style:{fontSize:"0.7rem",color:"rgba(255,255,255,0.3)"},children:"Try:"}),lAe.map(u=>a.jsx("button",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:113",onClick:()=>{t(u.address),l(u.address)},style:{padding:"0.2rem 0.7rem",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"12px",color:"rgba(255,255,255,0.5)",fontSize:"0.7rem",fontWeight:600,cursor:"pointer"},children:u.label},u.address))]})]})}),a.jsxs("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:122",className:"container",style:{padding:"2rem 1.25rem 4rem"},children:[i&&a.jsx("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:125",style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[200,300,150,250].map((u,g)=>a.jsx("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:127",className:"skeleton",style:{height:"80px",borderRadius:"8px"}},g))}),!i&&r&&(s===null||o)&&a.jsxs("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:134",style:{textAlign:"center",padding:"3rem",background:"#05152e",borderRadius:"10px",border:"1px solid rgba(239,68,68,0.2)"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:135",style:{fontSize:"2rem",marginBottom:"0.75rem"},children:"ð"}),a.jsx("h2",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:136",style:{color:"#fff",fontWeight:800,marginBottom:"0.5rem"},children:"Address Not Found"}),a.jsxs("p",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:137",style:{color:"rgba(255,255,255,0.4)",fontSize:"0.85rem"},children:[a.jsx("code",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:138",style:{background:"rgba(255,255,255,0.08)",padding:"2px 6px",borderRadius:"4px",fontSize:"0.8rem"},children:r})," doesn't exist or has no activity on Tezos."]})]}),!i&&s&&a.jsxs("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:145",style:{display:"flex",flexDirection:"column",gap:"1.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:148",style:{background:"#05152e",border:"1px solid rgba(44,125,247,0.2)",borderRadius:"12px",padding:"1.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:149",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",flexWrap:"wrap",gap:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:150",children:[s.alias&&a.jsx("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:151",style:{fontSize:"1.3rem",fontWeight:900,color:"#fff",marginBottom:"0.25rem"},children:s.alias}),a.jsxs("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:152",style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[a.jsx("code",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:153",style:{fontSize:"0.8rem",color:"rgba(255,255,255,0.5)",fontFamily:"monospace"},children:s.address}),a.jsx("button",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:154",onClick:()=>d(s.address,"Address"),style:{background:"none",border:"none",cursor:"pointer",color:"rgba(255,255,255,0.3)",display:"flex",padding:"2px"},children:a.jsx(an,{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:155",size:12})}),a.jsx("a",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:157",href:`https://tzkt.io/${s.address}`,target:"_blank",rel:"noopener noreferrer",style:{color:"rgba(255,255,255,0.3)",display:"flex"},children:a.jsx(ve,{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:158",size:12})})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:161",style:{display:"flex",gap:"0.5rem",marginTop:"0.5rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:162",style:{fontSize:"0.65rem",fontWeight:700,padding:"2px 8px",borderRadius:"10px",background:"rgba(44,125,247,0.15)",color:"#2c7df7",border:"1px solid rgba(44,125,247,0.3)",textTransform:"capitalize"},children:s.isBaker?"ð¦ Baker":s.type}),s.delegatedTo&&a.jsx("span",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:166",style:{fontSize:"0.65rem",fontWeight:700,padding:"2px 8px",borderRadius:"10px",background:"rgba(34,197,94,0.1)",color:"#22c55e",border:"1px solid rgba(34,197,94,0.2)"},children:"â Delegating"})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:172",style:{textAlign:"right"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:173",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.35)",textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:"0.25rem"},children:"XTZ Balance"}),a.jsx("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:174",style:{fontSize:"1.8rem",fontWeight:900,color:"#fff"},children:Sl(s.balance)}),s.stakedBalance>0&&a.jsxs("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:176",style:{fontSize:"0.75rem",color:"#f97316",marginTop:"0.2rem"},children:["+ ",Sl(s.stakedBalance)," staked"]})]})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:182",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(140px, 1fr))",gap:"0.75rem",marginTop:"1.25rem",paddingTop:"1.25rem",borderTop:"1px solid rgba(255,255,255,0.07)"},children:[{label:"Transactions",value:s.numTransactions.toLocaleStr
1125ing(),icon:"âï¸"},{label:"FA2 Tokens",value:s.fungibleTokens.length.toString(),icon:"ðª"},{label:"NFTs",value:s.nftCount.toString(),icon:"ð¼ï¸"},...s.isBaker?[{label:"Delegators",value:s.numDelegators.toLocaleString(),icon:"ð¥"}]:[],...s.delegatedTo?[{label:"Delegated To",value:s.delegatedTo.slice(0,12)+"â¦",icon:"ð"}]:[],{label:"First Active",value:Gk(s.firstActivity),icon:"ð
"},{label:"Last Active",value:Gk(s.lastActivity),icon:"â±ï¸"}].map(u=>a.jsxs("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:192",style:{background:"rgba(255,255,255,0.03)",borderRadius:"8px",padding:"0.75rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:193",style:{fontSize:"0.6rem",color:"rgba(255,255,255,0.35)",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.07em",marginBottom:"0.3rem"},children:[u.icon," ",u.label]}),a.jsx("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:194",style:{fontSize:"0.88rem",fontWeight:700,color:"#fff"},children:u.value})]},u.label))})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:201",style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"1.5rem"},children:[s.fungibleTokens.length>0&&a.jsxs("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:205",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"12px",overflow:"hidden"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:206",style:{padding:"1rem 1.25rem",borderBottom:"1px solid rgba(255,255,255,0.06)",display:"flex",alignItems:"center",gap:"0.5rem"},children:[a.jsx(Are,{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:207",size:14,style:{color:"#f97316"}}),a.jsx("span",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:208",style:{fontWeight:800,color:"#fff",fontSize:"0.88rem"},children:"FA2 Tokens"}),a.jsxs("span",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:209",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.3)",marginLeft:"auto"},children:[s.fungibleTokens.length," tokens"]})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:211",style:{maxHeight:"300px",overflowY:"auto"},children:s.fungibleTokens.map((u,g)=>a.jsxs("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:213",style:{display:"flex",alignItems:"center",gap:"0.75rem",padding:"0.75rem 1.25rem",borderBottom:g<s.fungibleTokens.length-1?"1px solid rgba(255,255,255,0.04)":"none"},children:[u.thumbnailUri?a.jsx("img",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:215",src:u.thumbnailUri,alt:"",style:{width:"28px",height:"28px",borderRadius:"6px",objectFit:"cover",flexShrink:0},onError:f=>{f.currentTarget.style.display="none"}}):a.jsx("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:217",style:{width:"28px",height:"28px",borderRadius:"6px",background:"rgba(249,115,22,0.15)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"0.7rem",flexShrink:0},children:"ðª"}),a.jsxs("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:219",style:{flex:1,minWidth:0},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:220",style:{fontSize:"0.82rem",fontWeight:700,color:"#fff",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:u.name}),u.symbol&&a.jsx("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:221",style:{fontSize:"0.62rem",color:"rgba(255,255,255,0.35)"},children:u.symbol})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:223",style:{fontSize:"0.82rem",fontWeight:700,color:"#f97316",flexShrink:0},children:oAe(u.balance,u.decimals)})]},g))})]}),s.recentTxs.length>0&&a.jsxs("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:234",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"12px",overflow:"hidden"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:235",style:{padding:"1rem 1.25rem",borderBottom:"1px solid rgba(255,255,255,0.06)",display:"flex",alignItems:"center",gap:"0.5rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:236",style:{fontWeight:800,color:"#fff",fontSize:"0.88rem"},children:"Recent Transactions"}),a.jsxs("a",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:237",href:`https://tzkt.io/${s.address}/operations`,target:"_blank",rel:"noopener noreferrer",style:{marginLeft:"auto",color:"#2c7df7",fontSize:"0.7rem",fontWeight:700,textDecoration:"none",display:"flex",alignItems:"center",gap:"0.2rem"},children:["View all ",a.jsx(ve,{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:238",size:10})]})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:241",style:{maxHeight:"300px",overflowY:"auto"},children:s.recentTxs.map((u,g)=>a.jsxs("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:243",style:{display:"flex",alignItems:"center",gap:"0.75rem",padding:"0.75rem 1.25rem",borderBottom:g<s.recentTxs.length-1?"1px solid rgba(255,255,255,0.04)":"none"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:244",style:{width:"28px",height:"28px",borderRadius:"50%",background:u.type==="in"?"rgba(34,197,94,0.15)":"rgba(239,68,68,0.15)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:u.type==="in"?a.jsx(hre,{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:245",size:13,style:{color:"#22c55e"}}):a.jsx(tu,{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:245",size:13,style:{color:"#ef4444"}})}),a.jsxs("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:247",style:{flex:1,minWidth:0},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:248",style:{fontSize:"0.78rem",fontWeight:700,color:u.type==="in"?"#22c55e":"#ef4444"},children:[u.type==="in"?"+":"-",Sl(u.amount)]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:251",style:{fontSize:"0.62rem",color:"rgba(255,255,255,0.3)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:[u.type==="in"?"from":"to"," ",u.counterparty.slice(0,20),u.counterparty.length>20?"â¦":""]})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:255",style:{fontSize:"0.62rem",color:"rgba(255,255,255,0.25)",flexShrink:0},children:Gk(u.timestamp)})]},g))})]})]}),s.rewardCycles.length>0&&a.jsxs("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:265",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"12px",overflow:"hidden"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:266",style:{padding:"1rem 1.25rem",borderBottom:"1px solid rgba(255,255,255,0.06)",display:"flex",alignItems:"center",gap:"0.5rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:267",style:{fontWeight:800,color:"#fff",fontSize:"0.88rem"},children:"Delegation Rewards"}),a.jsxs("span",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:268",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.3)",marginLeft:"auto"},children:["Total: ",a.jsx("span",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:269",style:{color:"#22c55e",fontWeight:700},children:Sl(s.totalDelegationRewards)})]})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:272",style:{overflowX:"auto"},children:a.jsxs("table",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:273",style:{width:"100%",borderCollapse:"collapse",fontSize:"0.78rem"},children:[a.jsx("thead",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:274",children:a.jsx("tr",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:275",style:{borderBottom:"1px solid rgba(255,255,255,0.06)"},children:["Cycle","Balance","Expected Rewards","Extra Rewards"].map(u=>a.jsx("th",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:277",style:{padding:"0.6rem 1rem",textAlign:"left",fontWeight:700,color:"rgba(255,255,255,0.35)",fontSize:"0.62rem",textTransform:"uppercase",letterSpacing:"0.07em"},children:u},u))})}),a.jsx("tbody",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:281",children:s.rewardCycles.map((u,g)=>a.jsxs("tr",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:283",style:{borderBottom:g<s.rewardCycles.length-1?"1px solid rgba(255,255,255,0.04)":"none"},children:[a.jsx("td",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:284",style:{padding:"0.6rem 1rem",color:"rgba(255,255,255,0.5)",fontWeight:600},children:u.cycle}),a.jsx("td",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:285",style:{padding:"0.6rem 1rem",color:"#fff",fontWeight:600},children:Sl(u.balance)}),a.jsxs("td",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:286",style:{padding:"0.6rem 1rem",color:"#22c55e",fontWeight:700},children:["+",Sl(u.expectedRewards)]}),a.jsx("td",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:287",style:{padding:"0.6rem 1rem",color:"#f97316"},children:u.extraRewards>0?`+${Sl(u.extraRewards)}`:"â"})]},u.cycle))})]})})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:297",style:{display:"flex",gap:"0.75rem",flexWrap:"wrap"},children:[a.jsxs("a",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:298",href:`https://tzkt.io/${s.address}`,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",padding:"0.5rem 1rem",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"6px",color:"rgba(255,255,255,0.7)",textDecoration:"none",fontSize:"0.78rem",fontWeight:700},children:[a.jsx(ve,{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:299",size:12})," View on TzKT"]}),a.jsx($,{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:301",href:`/explorer/address/${s.address}`,style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",padding:"0.5rem 1rem",background:"rgba(44,125,247,0.1)",border:"1px solid rgba(44,125,247,0.25)",borderRadius:"6px",color:"#2c7df7",textDecoration:"none",fontSize:"0.78rem",fontWeight:700},children:"View in XTZ Explorer â"}),s.nftCount>0&&a.jsx($,{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:305",href:`/tools/nft-gallery?address=${s.address}`,style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",padding:"0.5rem 1rem",background:"rgba(139,92,246,0.1)",border:"1px solid rgba(139,92,246,0.25)",borderRadius:"6px",color:"#8b5cf6",textDecoration:"none",fontSize:"0.78rem",fontWeight:700},children:"ð¼ï¸ View NFT Gallery â"})]})]}),!r&&!i&&a.jsxs("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:315",style:{textAlign:"center",padding:"4rem 2rem",color:"rgba(255,255,255,0.3)"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:316",style:{fontSize:"3rem",marginBottom:"1rem"},children:"ð"}),a.jsx("p",{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:317",style:{fontSize:"0.9rem"},children:"Enter a Tezos address above to inspect it"})]}),a.jsx(Ly,{"data-loc":"client/src/pages/tools/WalletInspectorPage.tsx:320",context:"wallet"})]})]})}const Vk=48,dAe=[{label:"objkt.com",address:"tz1UBZUkXpKGhYsP5KtzDNqyPKP6Uq7x2ioN"},{label:"fxhash collector",address:"tz1WnfXMgaNpkMWCW2UgrExNaXiQpsWy6Cpe"}];function Xk(e){return e.displayUri||e.thumbnailUri||e.artifactUri||null}function oB(e,t){if(!t)return!1;if(e&&(e.startsWith("image/")||e==="image")||t.startsWith("data:image"))return!0;const r=t.toLowerCase();return r.endsWith(".jpg")||r.endsWith(".jpeg")||r.endsWith(".png")||r.endsWith(".gif")||r.endsWith(".webp")||r.endsWith(".svg")}function uAe(){Ie({title:"Tezos NFT Gallery â View Any Wallet's NFTs | XTZ.News",description:"View all Tezos NFTs held by any wallet address. Beautiful visual gallery with links to objkt.com. Free, no login required.",keywords:"Tezos NFT gallery, XTZ NFT viewer, Tezos NFT collection, objkt NFT, Tezos FA2 tokens",canonical:"https://xtz.news/tools/nft-gallery",jsonLd:[ln({name:"Tezos NFT Gallery",description:"View all Tezos NFTs held by any wallet address. Beautiful visual gallery with links to objkt.com. Free, no login required.",url:"https://xtz.news/tools/nft-gallery"}),Pa([{question:"How do I view Tezos NFTs in a wallet?",answer:"Enter any Tezos wallet address (tz1, tz2, tz3) in the XTZ.News NFT Gallery. It automatically fetches and displays all FA2 NFTs held by that address in a visual grid, with links to each NFT on objkt.com. No wallet connection or login required."},{question:"What NFT marketplaces are on Tezos?",answer:"The main Tezos NFT marketplaces are objkt.com (the largest, covering all FA2 NFTs), Teia (community-run, formerly Hic et Nunc), fxhash (generative art platform), and Versum (curated digital art). All Tezos NFTs use the FA2 token standard and can be viewed in the XTZ.News NFT Gallery."},{question:"What is an FA2 NFT on Tezos?",answer:"FA2 is the Tezos token standard (TZIP-12) that supports both fungible and non-fungible tokens. Most Tezos NFTs are FA2 tokens stored on smart contracts. Unlike Ethereum ERC-721, FA2 supports multiple token types in a single contract, making it more gas-efficient."},{question:"How do I buy Tezos NFTs?",answer:"To buy Tezos NFTs, you need a Tezos wallet (Temple Wallet or Kukai), some XTZ for the purchase and gas fees, and an account on objkt.com or another Tezos marketplace. Gas fees on Tezos are typically under $0.01, making NFT trading very affordable compared to Ethereum."},{question:"What is objkt.com?",answer:"objkt.com is the largest Tezos NFT marketplace, supporting all FA2 token contracts. It offers buying, selling, and collecting Tezos NFTs with very low fees. The XTZ.News NFT Gallery links directly to each NFT on objkt.com for easy purchasing."}])]});
1125const e=As(),r=new URLSearchParams(e).get("address")||"",[n,s]=E.useState(r),[i,o]=E.useState(r),[l,d]=E.useState(0),[u,g]=E.useState(null),{data:f,isLoading:m}=ee.tools.nftGallery.useQuery({address:i,limit:Vk,offset:l*Vk},{enabled:!!i,staleTime:6e4}),y=f?.nfts||[],S=f?.total||0,b=Math.max(1,Math.ceil(S/Vk)),v=j=>{const k=(j||n).trim();k&&(o(k),d(0),j||s(k))};return a.jsxs("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:72",style:{background:"#000",minHeight:"100vh"},children:[u&&a.jsx("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:75",style:{position:"fixed",inset:0,zIndex:1e3,background:"rgba(0,0,0,0.92)",display:"flex",alignItems:"center",justifyContent:"center",padding:"1rem"},onClick:()=>g(null),children:a.jsxs("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:77",style:{maxWidth:"600px",width:"100%",background:"#05152e",borderRadius:"12px",overflow:"hidden",border:"1px solid rgba(44,125,247,0.2)"},onClick:j=>j.stopPropagation(),children:[a.jsx("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:80",style:{background:"#000",maxHeight:"400px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},children:oB(u.mimeType,Xk(u))?a.jsx("img",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:82",src:Xk(u),alt:u.name,style:{maxWidth:"100%",maxHeight:"400px",objectFit:"contain"}}):a.jsxs("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:84",style:{padding:"3rem",textAlign:"center",color:"rgba(255,255,255,0.3)"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:85",style:{fontSize:"3rem",marginBottom:"0.5rem"},children:"ð¨"}),a.jsx("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:86",style:{fontSize:"0.8rem"},children:u.mimeType||"Media"})]})}),a.jsxs("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:91",style:{padding:"1.25rem"},children:[a.jsx("h2",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:92",style:{fontSize:"1.1rem",fontWeight:900,color:"#fff",margin:"0 0 0.4rem"},children:u.name}),u.contractAlias&&a.jsx("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:93",style:{fontSize:"0.72rem",color:"#2c7df7",fontWeight:700,marginBottom:"0.5rem"},children:u.contractAlias}),u.description&&a.jsx("p",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:94",style:{fontSize:"0.8rem",color:"rgba(255,255,255,0.5)",margin:"0 0 1rem",lineHeight:1.5,maxHeight:"80px",overflow:"hidden"},children:u.description}),a.jsxs("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:95",style:{display:"flex",gap:"0.75rem",flexWrap:"wrap"},children:[u.objktUrl&&a.jsxs("a",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:97",href:u.objktUrl,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",padding:"0.5rem 1rem",background:"rgba(44,125,247,0.15)",border:"1px solid rgba(44,125,247,0.3)",borderRadius:"6px",color:"#2c7df7",textDecoration:"none",fontSize:"0.78rem",fontWeight:700},children:[a.jsx(ve,{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:98",size:12})," View on objkt.com"]}),a.jsx("button",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:101",onClick:()=>g(null),style:{padding:"0.5rem 1rem",background:"rgba(255,255,255,0.07)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"6px",color:"rgba(255,255,255,0.6)",fontSize:"0.78rem",fontWeight:700,cursor:"pointer"},children:"Close"})]})]})]})}),a.jsx("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:111",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",borderBottom:"1px solid rgba(44,125,247,0.2)",padding:"2rem 0"},children:a.jsxs("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:112",className:"container",children:[a.jsx(zr,{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:113",items:[{label:"Tools",href:"/tools"},{label:"NFT Gallery"}]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:114",style:{display:"flex",alignItems:"center",gap:"0.75rem",marginBottom:"1rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:115",style:{width:"40px",height:"40px",background:"rgba(139,92,246,0.2)",border:"1px solid rgba(139,92,246,0.4)",borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"1.2rem"},children:"ð¼ï¸"}),a.jsxs("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:116",children:[a.jsx("h1",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:117",style:{fontSize:"1.6rem",fontWeight:900,color:"#fff",margin:0},children:"NFT Gallery"}),a.jsx("p",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:118",style:{color:"rgba(255,255,255,0.45)",fontSize:"0.82rem",margin:0},children:"View all Tezos NFTs held by any address â click to inspect, link to objkt.com"})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:121",style:{display:"flex",gap:"0.5rem",flexWrap:"wrap"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:122",style:{position:"relative",flex:"1 1 400px"},children:[a.jsx(ft,{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:123",size:15,style:{position:"absolute",left:"0.875rem",top:"50%",transform:"translateY(-50%)",color:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),a.jsx("input",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:124",value:n,onChange:j=>s(j.target.value),onKeyDown:j=>j.key==="Enter"&&v(),placeholder:"Enter Tezos addressâ¦",style:{width:"100%",padding:"0.75rem 1rem 0.75rem 2.5rem",background:"rgba(255,255,255,0.07)",border:"1px solid rgba(44,125,247,0.3)",borderRadius:"8px",color:"#fff",fontSize:"0.9rem",outline:"none",fontFamily:"inherit"},onFocus:j=>j.currentTarget.style.borderColor="#2c7df7",onBlur:j=>j.currentTarget.style.borderColor="rgba(44,125,247,0.3)"})]}),a.jsx("button",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:130",onClick:()=>v(),style:{padding:"0.75rem 1.5rem",background:"#8b5cf6",border:"none",borderRadius:"8px",color:"#fff",fontWeight:700,fontSize:"0.9rem",cursor:"pointer",fontFamily:"inherit"},children:"View Gallery"})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:134",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginTop:"0.75rem",flexWrap:"wrap"},children:[a.jsx("span",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:135",style:{fontSize:"0.7rem",color:"rgba(255,255,255,0.3)"},children:"Try:"}),dAe.map(j=>a.jsx("button",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:137",onClick:()=>{s(j.address),v(j.address)},style:{padding:"0.2rem 0.7rem",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"12px",color:"rgba(255,255,255,0.5)",fontSize:"0.7rem",fontWeight:600,cursor:"pointer"},children:j.label},j.address))]})]})}),a.jsxs("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:146",className:"container",style:{padding:"2rem 1.25rem 4rem"},children:[m&&a.jsx("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:149",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(160px, 1fr))",gap:"1rem"},children:Array.from({length:12}).map((j,k)=>a.jsx("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:151",className:"skeleton",style:{aspectRatio:"1",borderRadius:"8px"}},k))}),!m&&i&&y.length===0&&a.jsxs("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:158",style:{textAlign:"center",padding:"3rem",background:"#05152e",borderRadius:"10px",border:"1px solid rgba(255,255,255,0.07)"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:159",style:{fontSize:"2.5rem",marginBottom:"0.75rem"},children:"ð¼ï¸"}),a.jsx("h2",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:160",style:{color:"#fff",fontWeight:800,marginBottom:"0.5rem"},children:"No NFTs Found"}),a.jsx("p",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:161",style:{color:"rgba(255,255,255,0.4)",fontSize:"0.85rem"},children:"This address doesn't hold any Tezos NFTs, or they may not have on-chain metadata."})]}),!m&&y.length>0&&a.jsxs(a.Fragment,{children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:169",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"1.25rem",flexWrap:"wrap",gap:"0.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:170",style:{fontSize:"0.82rem",color:"rgba(255,255,255,0.5)"},children:["Showing ",a.jsx("strong",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:171",style:{color:"#fff"},children:y.length})," NFTs for ",a.jsxs("code",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:171",style:{fontSize:"0.75rem",background:"rgba(255,255,255,0.08)",padding:"1px 5px",borderRadius:"3px"},children:[i.slice(0,16),"â¦"]})]}),b>1&&a.jsxs("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:174",style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[a.jsx("button",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:175",onClick:()=>d(j=>Math.max(0,j-1)),disabled:l===0,style:{padding:"0.3rem 0.6rem",background:"rgba(255,255,255,0.07)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"4px",color:l===0?"rgba(255,255,255,0.2)":"#fff",cursor:l===0?"default":"pointer",display:"flex"},children:a.jsx(Pn,{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:177",size:14})}),a.jsxs("span",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:179",style:{fontSize:"0.75rem",color:"rgba(255,255,255,0.5)"},children:["Page ",l+1," of ",b]}),a.jsx("button",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:180",onClick:()=>d(j=>Math.min(b-1,j+1)),disabled:l>=b-1,style:{padding:"0.3rem 0.6rem",background:"rgba(255,255,255,0.07)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"4px",color:l>=b-1?"rgba(255,255,255,0.2)":"#fff",cursor:l>=b-1?"default":"pointer",display:"flex"},children:a.jsx(Le,{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:182",size:14})})]})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:189",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(160px, 1fr))",gap:"0.875rem"},children:y.map((j,k)=>{const P=Xk(j),O=P&&oB(j.mimeType,P);return a.jsxs("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:194",onClick:()=>g(j),style:{background:"#05152e",borderRadius:"8px",overflow:"hidden",border:"1px solid rgba(255,255,255,0.07)",cursor:"pointer",transition:"transform 0.15s, border-color 0.15s"},onMouseEnter:T=>{T.currentTarget.style.transform="scale(1.03)",T.currentTarget.style.borderColor="rgba(139,92,246,0.4)"},onMouseLeave:T=>{T.currentTarget.style.transform="scale(1)",T.currentTarget.style.borderColor="rgba(255,255,255,0.07)"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:198",style:{aspectRatio:"1",background:"#0d2a5e",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center"},children:O?a.jsx("img",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:200",src:P,alt:j.name,style:{width:"100%",height:"100%",objectFit:"cover"},onError:T=>{T.currentTarget.style.display="none"}}):a.jsx("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:203",style:{fontSize:"2rem",color:"rgba(255,255,255,0.2)"},children:"ð¨"})}),a.jsxs("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:207",style:{padding:"0.5rem 0.6rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:208",style:{fontSize:"0.72rem",fontWeight:700,color:"#fff",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:j.name}),j.contractAlias&&a.jsx("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:209",style:{fontSize:"0.58rem",color:"rgba(255,255,255,0.35)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:j.contractAlias})]})]},k)})})]}),!i&&!m&&a.jsxs("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:220",style:{textAlign:"center",padding:"4rem 2rem",color:"rgba(255,255,255,0.3)"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:221",style:{fontSize:"3rem",marginBottom:"1rem"},children:"ð¼ï¸"}),a.jsx("p",{"data-loc":"client/src/pages/tools/NftGalleryPage.tsx:222",style:{fontSize:"0.9rem"},children:"Enter a Tezos address above to view their NFT collection"})]})]})]})}function lB(e){return e>=1e6?`${(e/1e6).toFixed(2)}M ê©`:e>=1e3?`${(e/1e3).toFixed(1)}K ê©`:`${e.toFixed(2)} ê©`}function pAe(e){const t=Math.floor((Date.now()-new Date(e).getTime())/1e3);return t<60?`${t}s ago`:t<3600?`${Math.floor(t/60)}m ago`:`${Math.floor(t/3600)}h ago`}function gAe(e){return e>=1e6?{label:"ð³ Mega Whale",color:"#ef4444"}:e>=1e5?{label:"ð Whale",color:"#f97316"}:e>=1e4?{label:"ð¦ Shark",color:"#f59e0b"}:{label:"ð Fish",color:"#2c7df7"}}const fAe=[{label:"10K+",value:1e4},{label:"50K+",value:5e4},{label:"100K+",value:1e5},{label:"500K+",value:5e5},{label:"1M+",value:1e6}];function hAe(){Ie({title:"Tezos Whale Watcher â Live Large XTZ Transfers | XTZ.News",description:"Watch large XTZ transfers on the Tezos network in real time. Filter by minimum amount (10Kâ1M+ XTZ). Auto-refreshes every 15 seconds.",keywords:"Tezos whale watcher, large XTZ transfers, Tezos on-chain activity, XTZ
1125whale tracker",canonical:"https://xtz.news/tools/whale-watcher",jsonLd:ln({name:"Tezos Whale Watcher",description:"Watch large XTZ transfers on the Tezos network in real time. Filter by minimum amount (10Kâ1M+ XTZ). Auto-refreshes every 15 seconds.",url:"https://xtz.news/tools/whale-watcher"})});const[e,t]=E.useState(1e4),[r,n]=E.useState(!0),[s,i]=E.useState(Date.now()),[o,l]=E.useState(new Set),d=E.useRef(new Set),[u,g]=E.useState(0),{data:f=[],isLoading:m,refetch:y}=ee.tools.whaleTxs.useQuery({minXtz:e,limit:30},{staleTime:15e3});E.useEffect(()=>{if(!r)return;const j=setInterval(()=>{y(),i(Date.now()),g(k=>k+1)},15e3);return()=>clearInterval(j)},[r,y]);const[S,b]=E.useState(15);E.useEffect(()=>{if(!r)return;const j=setInterval(()=>{b(k=>k<=1?15:k-1)},1e3);return()=>clearInterval(j)},[r,s]),E.useEffect(()=>{if(!f.length)return;const j=new Set(f.map(P=>P.hash)),k=new Set;j.forEach(P=>{const O=P;!d.current.has(O)&&d.current.size>0&&k.add(O)}),k.size>0&&(l(k),setTimeout(()=>l(new Set),3e3)),d.current=j},[f]);const v=()=>{y(),i(Date.now()),b(15)};return a.jsxs("div",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:104",style:{background:"#000",minHeight:"100vh"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:106",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",borderBottom:"1px solid rgba(44,125,247,0.2)",padding:"2rem 0"},children:a.jsxs("div",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:107",className:"container",children:[a.jsx(zr,{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:108",items:[{label:"Tools",href:"/tools"},{label:"Whale Watcher"}]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:109",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",flexWrap:"wrap",gap:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:110",style:{display:"flex",alignItems:"center",gap:"0.75rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:111",style:{width:"40px",height:"40px",background:"rgba(44,125,247,0.2)",border:"1px solid rgba(44,125,247,0.4)",borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"1.2rem"},children:"ð"}),a.jsxs("div",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:112",children:[a.jsx("h1",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:113",style:{fontSize:"1.6rem",fontWeight:900,color:"#fff",margin:0},children:"Whale Watcher"}),a.jsx("p",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:114",style:{color:"rgba(255,255,255,0.45)",fontSize:"0.82rem",margin:0},children:"Live feed of large XTZ transfers on the Tezos network"})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:117",style:{display:"flex",alignItems:"center",gap:"0.75rem",flexWrap:"wrap"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:119",style:{display:"flex",alignItems:"center",gap:"0.4rem",padding:"0.4rem 0.875rem",background:r?"rgba(34,197,94,0.1)":"rgba(255,255,255,0.06)",border:`1px solid ${r?"rgba(34,197,94,0.3)":"rgba(255,255,255,0.1)"}`,borderRadius:"20px"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:120",style:{width:"6px",height:"6px",borderRadius:"50%",background:r?"#22c55e":"rgba(255,255,255,0.3)",animation:r?"pulse 2s infinite":"none"}}),a.jsx("span",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:121",style:{fontSize:"0.72rem",fontWeight:700,color:r?"#22c55e":"rgba(255,255,255,0.4)"},children:r?`LIVE · ${S}s`:"PAUSED"})]}),a.jsx("button",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:126",onClick:()=>n(j=>!j),style:{padding:"0.4rem 0.875rem",background:"rgba(255,255,255,0.07)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"6px",color:"rgba(255,255,255,0.6)",fontSize:"0.72rem",fontWeight:700,cursor:"pointer"},children:r?"⸠Pause":"â¶ Resume"}),a.jsxs("button",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:131",onClick:v,style:{display:"flex",alignItems:"center",gap:"0.35rem",padding:"0.4rem 0.875rem",background:"rgba(44,125,247,0.1)",border:"1px solid rgba(44,125,247,0.25)",borderRadius:"6px",color:"#2c7df7",fontSize:"0.72rem",fontWeight:700,cursor:"pointer"},children:[a.jsx(Fd,{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:133",size:12})," Refresh"]})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:139",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginTop:"1rem",flexWrap:"wrap"},children:[a.jsx("span",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:140",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.4)",fontWeight:700}
1125,children:"Min size:"}),fAe.map(j=>a.jsx("button",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:142",onClick:()=>{t(j.value),b(15)},style:{padding:"0.3rem 0.875rem",background:e===j.value?"rgba(44,125,247,0.25)":"rgba(255,255,255,0.05)",border:`1px solid ${e===j.value?"rgba(44,125,247,0.5)":"rgba(255,255,255,0.1)"}`,borderRadius:"20px",color:e===j.value?"#2c7df7":"rgba(255,255,255,0.5)",fontSize:"0.72rem",fontWeight:700,cursor:"pointer"},children:j.label},j.value))]})]})}),a.jsxs("div",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:151",className:"container",style:{padding:"1.5rem 1.25rem 4rem"},children:[m&&a.jsx("div",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:154",style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:Array.from({length:8}).map((j,k)=>a.jsx("div",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:156",className:"skeleton",style:{height:"64px",borderRadius:"8px"}},k))}),!m&&a.jsxs("div",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:163",style:{display:"flex",flexDirection:"column",gap:"0.5rem"},children:[f.length===0&&a.jsxs("div",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:165",style:{textAlign:"center",padding:"3rem",color:"rgba(255,255,255,0.3)",background:"#05152e",borderRadius:"10px",border:"1px solid rgba(255,255,255,0.07)"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:166",style:{fontSize:"2rem",marginBottom:"0.5rem"},children:"ð"}),a.jsxs("p",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:167",children:["No transactions above ",lB(e)," found recently. Try a lower threshold."]})]}),f.map((j,k)=>{const P=gAe(j.amount),O=o.has(j.hash);return a.jsxs("div",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:174",style:{display:"flex",alignItems:"center",gap:"1rem",padding:"0.875rem 1.25rem",background:O?"rgba(34,197,94,0.08)":"#05152e",border:`1px solid ${O?"rgba(34,197,94,0.3)":"rgba(255,255,255,0.06)"}`,borderRadius:"8px",transition:"background 0.5s, border-color 0.5s",flexWrap:"wrap"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:176",style:{fontSize:"1.1rem",flexShrink:0},children:P.label.split(" ")[0]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:178",style:{minWidth:"120px"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:179",style:{fontSize:"1rem",fontWeight:900,color:P.color},children:lB(j.amount)}),a.jsx("div",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:180",style:{fontSize:"0.62rem",color:"rgba(255,255,255,0.3)"},children:P.label.split(" ").slice(1).join(" ")})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:183",style:{flex:1,minWidth:"200px"},children:a.jsxs("div",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:184",style:{display:"flex",alignItems:"center",gap:"0.5rem",flexWrap:"wrap"},children:[a.jsx($,{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:185",href:`/explorer/address/${j.senderAddress}`,style:{fontSize:"0.78rem",fontWeight:700,color:"#2c7df7",textDecoration:"none",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"160px"},children:j.sender||j.senderAddress.slice(0,14)+"â¦"}),a.jsx(tu,{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:188",size:12,style:{color:"rgba(255,255,255,0.3)",flexShrink:0}}),a.jsx($,{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:189",href:`/explorer/address/${j.targetAddress}`,style:{fontSize:"0.78rem",fontWeight:700,color:"#5a9fff",textDecoration:"none",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"160px"},children:j.target||j.targetAddress.slice(0,14)+"â¦"})]})}),a.jsxs("div",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:195",style:{display:"flex",alignItems:"center",gap:"0.75rem",flexShrink:0},children:[a.jsx("span",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:196",style:{fontSize:"0.7rem",color:"rgba(255,255,255,0.3)"},children:pAe(j.timestamp)}),a.jsx("a",{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:197",href:`https://tzkt.io/${j.hash}`,target:"_blank",rel:"noopener noreferrer",style:{color:"rgba(255,255,255,0.3)",display:"flex"},children:a.jsx(ve,{"data-loc":"client/src/pages/tools/WhaleWatcherPage.tsx:198",size:12})})]})]},j.hash)})]})]})]})}function Js(e){return e>=1e6?`${(e/1e6).toFixed(2)}M ê©`:e>=1e3?`${(e/1e3).toFixed(2)}K ê©`:`${e.toFixed(4)} ê©`}const mAe=[{label:"Coinbase Baker",address:"tz1irJKkXS2DBWkU1NnmFQx1c1L7pbGg4yhk"},{label:"TF Baker 1",address:"tz3cqThj23fe5UWiHMWMGRSiSYGEMdFhGmPM"}];function xAe(){Ie({title:"Tezos Reward Calculator â Baking & Delegation History | XTZ.News",description:"View baking or delegation reward history for any Tezos address. See APY per cycle, past bakers, total rewards earned, and delegation history.",keywords:"Tezos reward calculator, XTZ staking rewards, Tezos delegation rewards, Tezos baking APY, XTZ yield",canonical:"https://xtz.news/tools/rewards",jsonLd:[ln({name:"Tezos Reward Calculator",description:"View baking or delegation reward history for any Tezos address. See APY per cycle, past bakers, total rewards earned, and delegation history.",url:"https://xtz.news/tools/rewards"}),Pa([{question:"How do Tezos baking rewards work?",answer:"Tezos baking rewards are earned by bakers (validators) for creating blocks and attesting to other blocks. Rewards are calculated based on the baker's baking power (their own XTZ plus delegated XTZ). At the end of each cycle (~2.8 days), bakers receive block rewards and attestation rewards, which they share with their delegators after deducting their fee."},{question:"How are Tezos delegation rewards calculated?",answer:"Delegation rewards are calculated as: (delegator balance / total baker staking balance) à baker total rewards à (1 - baker fee). The XTZ.News Reward Calculator fetches actual rewards data from TzKT for each cycle, giving you precise historical rewards rather than estimates."},{question:"How often are Tezos staking rewards paid?",answer:"Tezos staking rewards are distributed once per cycle, which is a
1125pproximately every 2.8 days (14,400 blocks at 6 seconds per block). However, it takes 2-3 cycles after you delegate before you start receiving rewards. Most bakers pay rewards automatically at the end of each cycle."},{question:"What is the difference between Tezos baking and delegation?",answer:"Baking means running a Tezos node and actively participating in block creation and attestation. Delegation means assigning your XTZ's baking rights to a baker without moving your tokens. Bakers earn full rewards but need technical setup; delegators earn a share of rewards passively with no technical requirements."},{question:"How do I check my Tezos staking rewards history?",answer:"Enter your Tezos address in the XTZ.News Reward Calculator. For baker addresses, it shows APY, total rewards, blocks baked, and missed blocks per cycle. For delegator addresses, it shows your delegation history including which bakers you've used, how long you delegated to each, and estimated rewards earned."}])]});const[e,t]=E.useState(""),[r,n]=E.useState(""),[s,i]=E.useState(30),[o,l]=E.useState("from"),[d,u]=E.useState("desc"),g=v=>{o===v?u(j=>j==="desc"?"asc":"desc"):(l(v),u("desc"))},{data:f,isLoading:m,error:y}=ee.tools.rewardHistory.useQuery({address:r,cycles:s},{enabled:!!r,staleTime:6e4}),S=v=>{const j=(v||e).trim();j&&(n(j),v||t(j))},b=f?.type==="baker"?{totalRewards:f.cycles.reduce((v,j)=>v+j.totalRewards,0),avgApy:f.cycles.filter(v=>v.apy!=null).reduce((v,j)=>v+(j.apy??0),0)/Math.max(1,f.cycles.filter(v=>v.apy!=null).length),totalBlocks:f.cycles.reduce((v,j)=>v+j.blocks,0),totalMissed:f.cycles.reduce((v,j)=>v+j.missedBlocks,0)}:null;return a.jsxs("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:76",style:{background:"#000",minHeight:"100vh"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:78",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",borderBottom:"1px solid rgba(44,125,247,0.2)",padding:"2rem 0"},children:a.jsxs("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:79",className:"container",children:[a.jsx(zr,{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:80",items:[{label:"Tools",href:"/tools"},{label:"Reward Calculator"}]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:81",style:{display:"flex",alignItems:"center",gap:"0.75rem",marginBottom:"1rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:82",style:{width:"40px",height:"40px",background:"rgba(34,197,94,0.2)",border:"1px solid rgba(34,197,94,0.4)",borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"1.2rem"},children:"ð°"}),a.jsxs("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:83",children:[a.jsx("h1",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:84",style:{fontSize:"1.6rem",fontWeight:900,color:"#fff",margin:0},children:"Reward Calculator"}),a.jsx("p",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:85",style:{color:"rgba(255,255,255,0.45)",fontSize:"0.82rem",margin:0},children:"View baking or delegation reward history for any Tezos address"})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:88",style:{display:"flex",gap:"0.5rem",flexWrap:"wrap"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:89",style:{position:"relative",flex:"1 1 400px"},children:[a.jsx(ft,{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:90",size:15,style:{position:"absolute",left:"0.875rem",top:"50%",transform:"translateY(-50%)",color:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),a.jsx("input",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:91",value:e,onChange:v=>t(v.target.value),onKeyDown:v=>v.key==="Enter"&&S(),placeholder:"Enter baker or delegator addressâ¦",style:{width:"100%",padding:"0.75rem 1rem 0.75rem 2.5rem",background:"rgba(255,255,255,0.07)",border:"1px solid rgba(44,125,247,0.3)",borderRadius:"8px",color:"#fff",fontSize:"0.9rem",outline:"none",fontFamily:"inherit"},onFocus:v=>v.currentTarget.style.borderColor="#2c7df7",onBlur:v=>v.currentTarget.style.borderColor="rgba(44,125,247,0.3)"})]}),a.jsx("button",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:97",onClick:()=>S(),style:{padding:"0.75rem 1.5rem",background:"#22c55e",border:"none",borderRadius:"8px",color:"#fff",fontWeight:700,fontSize:"0.9rem",cursor:"pointer",fontFamily:"inherit"},children:"View Rewards"})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:101",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginTop:"0.75rem",flexWrap:"wrap"},children:[a.jsx("span",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:102",style:{fontSize:"0.7rem",color:"rgba(255,255,255,0.3)"},children:"Try:"}),mAe.map(v=>a.jsx("button",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:104",onClick:()=>{t(v.address),S(v.address)},style:{padding:"0.2rem 0.7rem",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"12px",color:"rgba(255,255,255,0.5)",fontSize:"0.7rem",fontWeight:600,cursor:"pointer"},children:v.label},v.address))]})]})}),a.jsxs("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:113",className:"container",style:{padding:"2rem 1.25rem 4rem"},children:[m&&a.jsx("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:115",style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:Array.from({length:5}).map((v,j)=>a.jsx("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:116",className:"skeleton",style:{height:"56px",borderRadius:"8px"}},j))}),!m&&r&&(f===null||y)&&a.jsxs("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:121",style:{textAlign:"center",padding:"3rem",background:"#05152e",borderRadius:"10px",border:"1px solid rgba(239,68,68,0.2)"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:122",style:{fontSize:"2rem",marginBottom:"0.75rem"},children:"ð°"}),a.jsx("h2",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:123",style:{color:"#fff",fontWeight:800,marginBottom:"0.5rem"},children:"No Reward Data"}),a.jsx("p",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:124",style:{color:"rgba(255,255,255,0.4)",fontSize:"0.85rem"},children:"This address has no baking or delegation reward history, or it doesn't exist."})]}),!m&&f&&a.jsxs("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:129",style:{display:"flex",flexDirection:"column",gap:"1.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:131",style:{background:"#05152e",border:"1px solid rgba(44,125,247,0.2)",borderRadius:"12px",padding:"1.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:132",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",flexWrap:"wrap",gap:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:133",children:[f.alias&&a.jsx("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:134",style:{fontSize:"1.2rem",fontWeight:900,color:"#fff",marginBottom:"0.25rem"},children:f.alias}
1125),a.jsx("code",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:135",style:{fontSize:"0.78rem",color:"rgba(255,255,255,0.4)",fontFamily:"monospace"},children:f.address}),a.jsx("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:136",style:{marginTop:"0.5rem"},children:a.jsx("span",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:137",style:{fontSize:"0.65rem",fontWeight:700,padding:"2px 8px",borderRadius:"10px",background:f.type==="baker"?"rgba(249,115,22,0.15)":"rgba(44,125,247,0.15)",color:f.type==="baker"?"#f97316":"#2c7df7",border:`1px solid ${f.type==="baker"?"rgba(249,115,22,0.3)":"rgba(44,125,247,0.3)"}`},children:f.type==="baker"?"ð¦ Baker":"ð¤ Delegator"})})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:142",style:{textAlign:"right"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:143",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.35)",textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:"0.25rem"},children:"Balance"}),a.jsx("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:144",style:{fontSize:"1.5rem",fontWeight:900,color:"#fff"},children:Js(f.balance)})]})]}),f.type==="baker"&&b&&a.jsx("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:150",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(140px, 1fr))",gap:"0.75rem",marginTop:"1.25rem",paddingTop:"1.25rem",borderTop:"1px solid rgba(255,255,255,0.07)"},children:[{label:"Avg APY",value:`${b.avgApy.toFixed(2)}%`,color:"#22c55e",icon:"ð"},{label:"Total Rewards",value:Js(b.totalRewards),color:"#f97316",icon:"ð°"},{label:"Blocks Baked",value:b.totalBlocks.toLocaleString(),color:"#2c7df7",icon:"ð§±"},{label:"Missed Blocks",value:b.totalMissed.toLocaleString(),color:b.totalMissed>0?"#ef4444":"#22c55e",icon:"â ï¸"},{label:"Cycles Tracked",value:f.cycles.length.toString(),color:"rgba(255,255,255,0.6)",icon:"ð"}].map(v=>a.jsxs("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:158",style:{background:"rgba(255,255,255,0.03)",borderRadius:"8px",padding:"0.75rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:159",style:{fontSize:"0.6rem",color:"rgba(255,255,255,0.35)",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.07em",marginBottom:"0.3rem"},children:[v.icon," ",v.label]}),a.jsx("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:160",style:{fontSize:"0.95rem",fontWeight:800,color:v.color},children:v.value})]},v.label))}),f.type==="delegator"&&f.delegatedTo&&a.jsxs("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:168",style:{marginTop:"1rem",paddingTop:"1rem",borderTop:"1px solid rgba(255,255,255,0.07)",display:"flex",gap:"1rem",flexWrap:"wrap"},children:[a.jsxs("span",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:169",style:{fontSize:"0.78rem",color:"rgba(255,255,255,0.5)"},children:["Delegated to: ",a.jsx($,{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:170",href:`/tools/rewards?address=${f.delegatedToAddress}`,style:{color:"#2c7df7",textDecoration:"none",fontWeight:700},children:f.delegatedTo})]}),f.stakedBalance>0&&a.jsxs("span",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:173",style:{fontSize:"0.78rem",color:"rgba(255,255,255,0.5)"},children:["Staked: ",a.jsx("span",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:174",style:{color:"#f97316",fontWeight:700},children:Js(f.stakedBalance)})]})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:182",style:{display:"flex",alignItems:"center",gap:"0.75rem",flexWrap:"wrap"},children:[a.jsx("span",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:183",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.4)",fontWeight:700},children:"Show cycles:"}),[10,20,30,50].map(v=>a.jsx("button",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:185",onClick:()=>i(v),style:{padding:"0.3rem 0.7rem",background:s===v?"rgba(44,125,247,0.2)":"rgba(255,255,255,0.05)",border:`1px solid ${s===v?"rgba(44,125,247,0.5)":"rgba(255,255,255,0.1)"}`,borderRadius:"4px",color:s===v?"#2c7df7":"rgba(255,255,255,0.5)",fontSize:"0.72rem",fontWeight:600,cursor:"pointer"},children:v},v))]}),f.type==="baker"&&f.cycles.length>0&&a.jsxs("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:194",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"12px",overflow:"hidden"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:195",style:{padding:"1rem 1.25rem",borderBottom:"1px solid rgba(255,255,255,0.06)",display:"flex",alignItems:"center",gap:"0.5rem"},children:[a.jsx(xre,{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:196",size:14,style:{color:"#f97316"}}
1125),a.jsx("span",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:197",style:{fontWeight:800,color:"#fff",fontSize:"0.88rem"},children:"Baking Rewards by Cycle"})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:200",style:{padding:"0.75rem 1.25rem",borderBottom:"1px solid rgba(255,255,255,0.05)"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:201",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.3)",marginBottom:"0.4rem"},children:"APY trend"}),a.jsx("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:202",style:{display:"flex",alignItems:"flex-end",gap:"2px",height:"40px"},children:[...f.cycles].reverse().map((v,j)=>{const k=Math.max(...f.cycles.map(O=>O.apy??0),1),P=v.apy!=null?Math.max(4,v.apy/k*100):4;return a.jsx("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:207",style:{flex:1,height:`${P}%`,background:v.apy!=null?"#22c55e":"rgba(255,255,255,0.1)",borderRadius:"2px 2px 0 0",minHeight:"3px",transition:"height 0.3s"},title:`Cycle ${v.cycle}: ${v.apy?.toFixed(2)??"n/a"}% APY`},v.cycle)})})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:212",style:{overflowX:"auto"},children:a.jsxs("table",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:213",style:{width:"100%",borderCollapse:"collapse",fontSize:"0.78rem"},children:[a.jsx("thead",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:214",children:a.jsx("tr",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:215",style:{borderBottom:"1px solid rgba(255,255,255,0.06)"},children:["Cycle","APY","Total Rewards","Baking Power","Blocks","Missed"].map(v=>a.jsx("th",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:217",style:{padding:"0.6rem 1rem",textAlign:"left",fontWeight:700,color:"rgba(255,255,255,0.35)",fontSize:"0.62rem",textTransform:"uppercase",letterSpacing:"0.07em",whiteSpace:"nowrap"},children:v},v))})}),a.jsx("tbody",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:221",children:f.cycles.map((v,j)=>a.jsxs("tr",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:223",style:{borderBottom:j<f.cycles.length-1?"1px solid rgba(255,255,255,0.04)":"none"},children:[a.jsx("td",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:224",style:{padding:"0.6rem 1rem",color:"rgba(255,255,255,0.5)",fontWeight:600},children:v.cycle}),a.jsx("td",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:225",style:{padding:"0.6rem 1rem"},children:v.apy!=null?a.jsxs("span",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:227",style:{fontWeight:800,color:v.apy>=8?"#22c55e":v.apy>=5?"#f59e0b":"#ef4444"},children:[v.apy.toFixed(2),"%"]}):a.jsx("span",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:228",style:{color:"rgba(255,255,255,0.2)"},children:"â"})}),a.jsxs("td",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:230",style:{padding:"0.6rem 1rem",color:"#22c55e",fontWeight:700},children:["+",Js(v.totalRewards)]}),a.jsx("td",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:231",style:{padding:"0.6rem 1rem",color:"rgba(255,255,255,0.5)"},children:Js(v.bakingPower)}),a.jsx("td",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:232",style:{padding:"0.6rem 1rem",color:"#2c7df7",fontWeight:600},children:v.blocks}),a.jsx("td",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:233",style:{padding:"0.6rem 1rem",color:v.missedBlocks>0?"#ef4444":"rgba(255,255,255,0.2)"},children:v.missedBlocks>0?v.missedBlocks:"â"})]},v.cycle))})]})})]}),f.type==="delegator"&&f.delegationPeriods?.length>0&&(()=>{const v=[...f.delegationPeriods].sort((k,P)=>{const O=d==="desc"?-1:1;if(o==="baker")return O*(k.baker||"").localeCompare(P.baker||"");if(o==="from")return O*(new Date(k.from).getTime()-new Date(P.from).getTime());if(o==="duration"){const T=(k.to?new Date(k.to):new Date).getTime()-new Date(k.from).getTime(),C=(P.to?new Date(P.to):new Date).getTime()-new Date(P.from).getTime();return O*(T-C)}return o==="rewards"?O*((k.totalRewards??0)-(P.totalRewards??0)):o==="apy"?O*((k.avgApy??-1)-(P.avgApy??-1)):0}),j=({label:k,field:P})=>a.jsx("th",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:258",onClick:()=>g(P),style:{padding:"0.6rem 1rem",textAlign:"left",fontWeight:700,color:o===P?"#2c7df7":"rgba(255,255,255,0.35)",fontSize:"0.62rem",textTransform:"uppercase",letterSpacing:"0.07em",whiteSpace:"nowrap",cursor:"pointer",userSelect:"none"},children:a.jsxs("span",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:260",style:{display:"inline-flex",alignItems:"center",gap:"0.2rem"},children:[k,o===P?d==="desc"?a.jsx(yi,{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:262",size:10}):a.jsx(Jf,{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:262",size:10}):null]})});return a.jsxs("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:267",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"12px",overflow:"hidden"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:268",style:{padding:"1rem 1.25rem",borderBottom:"1px solid rgba(255,255,255,0.06)",display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:"0.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:269",style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:270",style:{fontWeight:800,color:"#fff",fontSize:"0.88rem"},children:"ð¦ Delegation History"}),a.jsxs("span",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:271",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.3)"},children:[v.length," baker",v.length!==1?"s":""]}),a.jsx("span",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:272",style:{fontSize:"0.6rem",color:"rgba(255,255,255,0.2)"},children:"· Click column headers to sort"})]}),f.totalDelegatorRewards>0&&a.jsxs("span",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:275",style:{fontSize:"0.78rem",color:"rgba(255,255,255,0.5)"},children:["Total rewards: ",a.jsx("span",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:276",style:{color:"#22c55e",fontWeight:700},children:Js(f.totalDelegatorRewards)})]})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:280",style:{overflowX:"auto"},children:a.jsxs("table",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:281",style:{width:"100%",borderCollapse:"collapse",fontSize:"0.78rem"},children:[a.jsx("thead",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:282",children:a.jsxs("tr",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:283",style:{borderBottom:"1px solid rgba(255,255,255,0.06)"},children:[a.jsx(j,{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:284",label:"Baker",field:"baker"}),a.jsx(j,{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:285",label:"From",field:"from"}),a.jsx("th",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:286",style:{padding:"0.6rem 1rem",textAlign:"left",fontWeight:700,color:"rgba(255,255,255,0.35)",fontSize:"0.62rem",textTransform:"uppercase",letterSpacing:"0.07em",whiteSpace:"nowrap"},children:"To"}),a.jsx(j,{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:287",label:"Duration",field:"duration"}),a.jsx(j,{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:288",label:"Rewards Earned",field:"rewards"}),a.jsx(j,{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:289",label:"Avg APY",f
1125ield:"apy"})]})}),a.jsx("tbody",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:292",children:v.map((k,P)=>{const O=new Date(k.from),T=k.to?new Date(k.to):new Date,C=Math.floor((T.getTime()-O.getTime())/(1e3*60*60*24)),A=!k.to;return a.jsxs("tr",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:299",style:{borderBottom:P<f.delegationPeriods.length-1?"1px solid rgba(255,255,255,0.04)":"none",background:A?"rgba(34,197,94,0.05)":"transparent"},children:[a.jsx("td",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:300",style:{padding:"0.75rem 1rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:301",style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[A&&a.jsx("span",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:302",style:{fontSize:"0.55rem",fontWeight:800,padding:"1px 5px",borderRadius:"8px",background:"rgba(34,197,94,0.2)",color:"#22c55e",border:"1px solid rgba(34,197,94,0.3)",whiteSpace:"nowrap"},children:"CURRENT"}),a.jsx($,{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:303",href:`/explorer/address/${k.bakerAddress}`,style:{fontWeight:700,color:A?"#22c55e":"#2c7df7",textDecoration:"none",fontSize:"0.82rem"},children:k.bakerAlias||k.baker})]})}),a.jsx("td",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:308",style:{padding:"0.75rem 1rem",color:"rgba(255,255,255,0.5)",whiteSpace:"nowrap"},children:O.toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"})}),a.jsx("td",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:309",style:{padding:"0.75rem 1rem",color:"rgba(255,255,255,0.5)",whiteSpace:"nowrap"},children:k.to?new Date(k.to).toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"}):a.jsx("span",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:309",style:{color:"#22c55e",fontWeight:700},children:"Present"})}),a.jsx("td",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:310",style:{padding:"0.75rem 1rem",color:"rgba(255,255,255,0.6)",whiteSpace:"nowrap"},children:C>=365?`${Math.floor(C/365)}y ${Math.floor(C%365/30)}m`:C>=30?`${Math.floor(C/30)}m ${C%30}d`:`${C}d`}),a.jsx("td",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:313",style:{padding:"0.75rem 1rem",color:k.totalRewards>0?"#22c55e":"rgba(255,255,255,0.25)",fontWeight:k.totalRewards>0?700:400},children:k.totalRewards>0?`+${Js(k.totalRewards)}`:"â"}),a.jsx("td",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:316",style:{padding:"0.75rem 1rem"},children:k.avgApy!=null?a.jsxs("span",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:318",style:{fontWeight:800,color:k.avgApy>=8?"#22c55e":k.avgApy>=5?"#f59e0b":"#ef4444"},children:[k.avgApy.toFixed(2),"%"]}):a.jsx("span",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:319",style:{color:"rgba(255,255,255,0.2)"},children:"â"})})]},P)})})]})})]})})(),f.type==="delegator"&&f.rewardCycles?.length>0&&a.jsxs("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:333",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"12px",overflow:"hidden"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:334",style:{padding:"1rem 1.25rem",borderBottom:"1px solid rgba(255,255,255,0.06)"},children:a.jsx("span",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:335",style:{fontWeight:800,color:"#fff",fontSize:"0.88rem"},children:"ð° Recent Reward Cycles"})}),a.jsx("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:337",style:{overflowX:"auto"},children:a.jsxs("table",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:338",style:{width:"100%",borderCollapse:"collapse",fontSize:"0.78rem"},children:[a.jsx("thead",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:339",children:a.jsx("tr",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:340",style:{borderBottom:"1px solid rgba(255,255,255,0.06)"},children:["Cycle","Baker","Delegated Balance","Rewards"].map(v=>a.jsx("th",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:342",style:{padding:"0.6rem 1rem",textAlign:"left",fontWeight:700,color:"rgba(255,255,255,0.35)",fontSize:"0.62rem",textTransform:"uppercase",letterSpacing:"0.07em",whiteSpace:"nowrap"},children:v},v))})}),a.jsx("tbody",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:346",children:f.rewardCycles.map((v,j)=>a.jsxs("tr",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:348",style:{borderBottom:j<f.rewardCycles.length-1?"1px solid rgba(255,255,255,0.04)":"none"},children:[a.jsx("td",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:349",style:{padding:"0.6rem 1rem",color:"rgba(255,255,255,0.5)",fontWeight:600},children:v.cycle}),a.jsx("td",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:350",style:{padding:"0.6rem 1rem"},children:a.jsx($,{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:351",href:`/explorer/address/${v.bakerAddress}`,style:{color:"#2c7df7",textDecoration:"none",fontWeight:700,fontSize:"0.78rem"},children:v.baker})}),a.jsx("td",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:353",style:{padding:"0.6rem 1rem",color:"rgba(255,255,255,0.6)"},children:Js(v.delegatedBalance)}),a.jsx("td",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:354",style:{padding:"0.6rem 1rem",color:v.rewards>0?"#22c55e":"rgba(255,255,255,0.25)",fontWeight:v.rewards>0?700:400},children:v.rewards>0?`+${Js(v.rewards)}`:"â"})]},v.cycle))})]})})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:366",style:{display:"flex",gap:"0.75rem",flexWrap:"wrap"},children:[a.jsxs("a",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:367",href:`https://tzkt.io/${f.address}/rewards`,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",padding:"0.5rem 1rem",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"6px",color:"rgba(255,255,255,0.7)",textDecoration:"none",fontSize:"0.78rem",fontWeight:700},children:[a.jsx(ve,{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:368",size:12})," View on TzKT"]}),a.jsx($,{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:370",href:"/staking",style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",padding:"0.5rem 1rem",background:"rgba(249,115,22,0.1)",border:"1px solid rgba(249,115,22,0.25)",borderRadius:"6px",color:"#f97316",textDecoration:"none",fontSize:"0.78rem",fontWeight:700},children:"ð§ Staking Calculator â"})]})]}),!r&&!m&&a.jsxs("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:379",style:{textAlign:"center",padding:"4rem 2rem",color:"rgba(255,255,255,0.3)"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:380",style:{fontSize:"3rem",marginBottom:"1rem"},children:"ð°"}),a.jsx("p",{"data-loc":"client/src/pages/tools/RewardCalculatorPage.tsx:381",style:{fontSize:"0.9rem"},children:"Enter a baker or delegator address above to view reward history"})]})]})]})}function dg(e){return e>=1e6?`${(e/1e6).toFixed(2)}M ê©`:e>=1e3?`${(e/1e3).toFixed(2)}K ê©`:`${e.toFixed(4)} ê©`}function Cx(e){return e>=1e6?`$${(e/1e6).toFixed(2)}M`:e>=1e3?`$${(e/1e3).toFixed(2)}K`:`$${e.toFixed(2)}`}const vn=["#2c7df7","#22c55e","#f97316","#8b5cf6","#f59e0b"];function yAe(){Ie({title:"Tezos Portfolio Tracker â Multi-Wallet Dashboard | XTZ.News",description:"Track up to 5 Tezos wallets at once. See combined XTZ balance, total USD value, token holdings, NFT count, and delegation status. Share with a link.",keywords:"Tezos portfolio tracker,
1125XTZ portfolio, multi-wallet Tezos, Tezos wallet dashboard",canonical:"https://xtz.news/tools/portfolio",jsonLd:ln({name:"Tezos Portfolio Tracker",description:"Track up to 5 Tezos wallets at once. See combined XTZ balance, total USD value, token holdings, NFT count, and delegation status. Share with a link.",url:"https://xtz.news/tools/portfolio"})});const e=As(),t=E.useMemo(()=>{const C=new URLSearchParams(e),A=[];for(let N=1;N<=5;N++){const M=C.get(`w${N}`);M&&A.push(M)}return A.length>0?A:["",""]},[]),[r,n]=E.useState(t),[s,i]=E.useState(()=>{const C=t.filter(Boolean);return C.length>0?C:[]}),{data:o,isLoading:l}=ee.tools.portfolioTrack.useQuery({addresses:s.filter(Boolean)},{enabled:s.filter(Boolean).length>0,staleTime:6e4}),d=()=>{const C=r.map(A=>A.trim()).filter(Boolean);C.length&&i(C)},u=()=>{r.length<5&&n(C=>[...C,""])},g=C=>{n(A=>A.filter((N,M)=>M!==C))},f=(C,A)=>{n(N=>N.map((M,B)=>B===C?A:M))},m=C=>{navigator.clipboard.writeText(C),Ee.success("Copied!")},y=()=>{const C=s.filter(Boolean);if(!C.length)return;const A=new URLSearchParams;
1125C.forEach((M,B)=>A.set(`w${B+1}`,M));const N=`${window.location.origin}/tools/portfolio?${A.toString()}`;navigator.clipboard.writeText(N),Ee.success("Portfolio link copied to clipboard!")},S=()=>{if(!v.length)return;const C="Address,Alias,XTZ Balance,Staked XTZ,USD Value,Tokens,NFTs,Delegated To",A=v.map(_=>`"${_.address}","${_.alias||""}","${_.balance.toFixed(6)}","${_.stakedBalance.toFixed(6)}","${k>0?((_.balance+_.stakedBalance)*k).toFixed(2):""}","${_.fungibleTokens.length}","${_.nftCount}","${_.delegatedTo||""}"`),N=[C,...A].join(` 1126`),M=new Blob([N],{type:"text/csv"}),B=URL.createObjectURL(M),R=document.createElement("a");R.href=B,R.download=`xtz_portfolio_${new Date().toISOString().slice(0,10)}.csv`,R.click(),URL.revokeObjectURL(B),Ee.success("CSV downloaded!")},b=C=>{const A=s.filter(M=>M!==C),N=r.filter(M=>M.trim()!==C);i(A),n(N.length>0?N:[""])},v=o?.wallets||[],j=o?.totals,k=o?.xtzUsd??0,P=o?.aggregatedTokens||[],O=v.reduce((C,A)=>C+A.balance+A.stakedBalance,0),T=v.map((C,A)=>({label:C.alias||C.address.slice(0,10)+"â¦",value:C.balance+C.stakedBalance,pct:O>0?(C.balance+C.stakedBalance)/O*100:0,color:vn[A%vn.length]}));return a.jsxs("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:133",style:{background:"#000",minHeight:"100vh"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:135",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",borderBottom:"1px solid rgba(44,125,247,0.2)",padding:"2rem 0"},children:a.jsxs("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:136",className:"container",children:[a.jsx(zr,{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:137",items:[{label:"Tools",href:"/tools"},{label:"Portfolio Tracker"}]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:138",style:{display:"flex",alignItems:"center",gap:"0.75rem",marginBottom:"1.25rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:139",style:{width:"40px",height:"40px",background:"rgba(139,92,246,0.2)",border:"1px solid rgba(139,92,246,0.4)",borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"1.2rem"},children:"ð"}),a.jsxs("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:140",children:[a.jsx("h1",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:141",style:{fontSize:"1.6rem",fontWeight:900,color:"#fff",margin:0},children:"Portfolio Tracker"}),a.jsx("p",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:142",style:{color:"rgba(255,255,255,0.45)",fontSize:"0.82rem",margin:0},children:"Track up to 5 Tezos wallets â combined XTZ, tokens, NFTs, and USD value"})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:147",style:{display:"flex",flexDirection:"column",gap:"0.5rem",maxWidth:"700px"},children:[r.map((C,A)=>a.jsxs("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:149",style:{display:"flex",gap:"0.5rem",alignItems:"center"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:150",style:{width:"20px",height:"20px",borderRadius:"50%",background:vn[A%vn.length],display:"flex",alignItems:"center",justifyContent:"center",fontSize:"0.6rem",fontWeight:900,color:"#fff",flexShrink:0},children:A+1}),a.jsx("input",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:153",value:C,onChange:N=>f(A,N.target.value),onKeyDown:N=>N.key==="Enter"&&d(),placeholder:`Wallet ${A+1} address (tz1â¦)`,style:{flex:1,padding:"0.6rem 0.875rem",background:"rgba(255,255,255,0.07)",border:"1px solid rgba(44,125,247,0.25)",borderRadius:"6px",color:"#fff",fontSize:"0.85rem",outline:"none",fontFamily:"inherit",transition:"border-color 0.15s"},onFocus:N=>N.currentTarget.style.borderColor="#2c7df7",onBlur:N=>N.currentTarget.style.borderColor="rgba(44,125,247,0.25)"}),r.length>1&&a.jsx("button",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:163",onClick:()=>g(A),style:{background:"none",border:"none",cursor:"pointer",color:"rgba(255,255,255,0.3)",display:"flex",padding:"4px"},children:a.jsx(xr,{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:164",size:14})})]},A)),a.jsxs("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:170",style:{display:"flex",gap:"0.5rem",marginTop:"0.25rem"},children:[r.length<5&&a.jsxs("button",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:172",onClick:u,style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",padding:"0.45rem 0.875rem",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"6px",color:"rgba(255,255,255,0.5)",fontSize:"0.75rem",fontWeight:700,cursor:"pointer"},children:[a.jsx(au,{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:173",size:12})," Add Wallet"]}),a.jsx("button",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:176",onClick:d,style:{padding:"0.45rem 1.5rem",background:"#8b5cf6",border:"none",borderRadius:"6px",color:"#fff",fontWeight:700,fontSize:"0.85rem",cursor:"pointer",fontFamily:"inherit"},children:"Track Portfolio"})]})]})]})}),a.jsxs("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:184",className:"container",style:{padding:"2rem 1.25rem 4rem"},children:[l&&a.jsx("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:187",style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[300,200,150].map((C,A)=>a.jsx("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:188",className:"skeleton",style:{height:"80px",borderRadius:"8px"}},A))}),!l&&v.length>0&&j&&a.jsxs("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:194",style:{display:"flex",flexDirection:"column",gap:"1.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:197",style:{display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:"0.75rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:198",style:{fontSize:"0.75rem",color:"rgba(255,255,255,0.4)"},children:["Tracking ",a.jsx("strong",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:199",style:{color:"#fff"},children:v.length})," wallet",v.length!==1?"s":""]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:201",style:{display:"flex",gap:"0.5rem"},children:[a.jsxs("button",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:202",onClick:y,style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",padding:"0.45rem 1rem",background:"rgba(44,125,247,0.1)",border:"1px solid rgba(44,125,247,0.25)",borderRadius:"6px",color:"#2c7df7",fontWeight:700,fontSize:"0.78rem",cursor:"pointer",transition:"background 0.15s"},onMouseEnter:C=>C.currentTarget.style.background="rgba(44,125,247,0.2)",onMouseLeave:C=>C.currentTarget.style.background="rgba(44,125,247,0.1)",children:[a.jsx(bc,{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:206",size:13})," Share Portfolio Link"]}),a.jsxs("button",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:208",onClick:S,style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",padding:"0.45rem 1rem",background:"rgba(34,197,94,0.1)",border:"1px solid rgba(34,197,94,0.25)",borderRadius:"6px",color:"#22c55e",fontWeight:700,fontSize:"0.78rem",cursor:"pointer"},children:[a.jsx(my,{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:210",size:13})," Export CSV"]})]})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:216",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(180px, 1fr))",gap:"1rem"},children:[{label:"Total XTZ",value:dg(j.xtz),sub:k>0?Cx(j.xtz*k):null,color:"#2c7df7",icon:"ð"},{label:"Staked XTZ",value:dg(j.staked),sub:k>0?Cx(j.staked*k):null,color:"#f97316",icon:"ð"},{label:"Total USD Value",value:k>0?Cx(j.usd):"â",sub:k>0?`@ $${k.toFixed(3)}/XTZ`:null,color:"#22c55e",icon:"ðµ"}
1126,{label:"Total NFTs",value:j.nfts.toLocaleString(),sub:null,color:"#8b5cf6",icon:"ð¼ï¸"},{label:"Wallets Tracked",value:v.length.toString(),sub:null,color:"rgba(255,255,255,0.6)",icon:"ð"}].map(C=>a.jsxs("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:224",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"10px",padding:"1.1rem 1.25rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:225",style:{fontSize:"0.6rem",color:"rgba(255,255,255,0.35)",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:"0.4rem"},children:[C.icon," ",C.label]}),a.jsx("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:226",style:{fontSize:"1.2rem",fontWeight:900,color:C.color},children:C.value}),C.sub&&a.jsx("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:227",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.3)",marginTop:"0.2rem"},children:C.sub})]},C.label))}),a.jsxs("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:233",style:{display:"grid",gridTemplateColumns:"1fr 2fr",gap:"1.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:235",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"10px",padding:"1.25rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:236",style:{fontSize:"0.72rem",fontWeight:800,color:"rgba(255,255,255,0.5)",textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:"1rem"},children:"XTZ Distribution"}),a.jsx("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:238",style:{display:"flex",flexDirection:"column",gap:"0.6rem"},children:T.map((C,A)=>a.jsxs("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:240",children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:241",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"0.2rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:242",style:{fontSize:"0.72rem",fontWeight:700,color:C.color},children:C.label}),a.jsxs("span",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:243",style:{fontSize:"0.7rem",color:"rgba(255,255,255,0.5)"},children:[C.pct.toFixed(1),"%"]})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:245",style:{height:"8px",background:"rgba(255,255,255,0.06)",borderRadius:"4px",overflow:"hidden"},children:a.jsx("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:246",style:{height:"100%",width:`${C.pct}%`,background:C.color,borderRadius:"4px",transition:"width 0.5s ease"}})}),a.jsx("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:248",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.3)",marginTop:"0.15rem"},children:dg(C.value)})]},A))})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:255",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"10px",overflow:"hidden"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:256",style:{padding:"1rem 1.25rem",borderBottom:"1px solid rgba(255,255,255,0.06)"},children:a.jsx("span",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:257",style:{fontWeight:800,color:"#fff",fontSize:"0.88rem"},children:"Wallet Breakdown"})}),a.jsx("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:259",style:{overflowX:"auto"},children:a.jsxs("table",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:260",style:{width:"100%",borderCollapse:"collapse",fontSize:"0.78rem"},children:[a.jsx("thead",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:261",children:a.jsx("tr",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:262",style:{borderBottom:"1px solid rgba(255,255,255,0.06)"},children:["Wallet","XTZ Balance","Staked","USD Value","Tokens","NFTs","Delegation"].map(C=>a.jsx("th",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:264",style:{padding:"0.6rem 1rem",textAlign:"left",fontWeight:700,color:"rgba(255,255,255,0.35)",fontSize:"0.62rem",textTransform:"uppercase",letterSpacing:"0.07em",whiteSpace:"nowrap"},children:C},C))})}),a.jsx("tbody",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:268",children:v.map((C,A)=>a.jsxs("tr",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:270",style:{borderBottom:A<v.length-1?"1px solid rgba(255,255,255,0.04)":"none"},children:[a.jsx("td",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:271",style:{padding:"0.75rem 1rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:272",style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:273",style:{width:"8px",height:"8px",borderRadius:"50%",background:vn[A%vn.length],flexShrink:0}}),a.jsxs("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:274",children:[C.alias&&a.jsx("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:275",style:{fontSize:"0.82rem",fontWeight:700,color:"#fff"},children:C.alias}),a.jsxs("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:276",style:{display:"flex",alignItems:"center",gap:"0.3rem"},children:[a.jsxs("code",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:277",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.4)"},children:[C.address.slice(0,10),"â¦"]}),a.jsx("button",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:278",onClick:()=>m(C.address),style:{background:"none",border:"none",cursor:"pointer",color:"rgba(255,255,255,0.2)",display:"flex",padding:"1px"},children:a.jsx(an,{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:278",size:10})}),a.jsx("button",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:279",onClick:()=>b(C.address),title:"Remove this wallet",style:{background:"none",border:"none",cursor:"pointer",color:"rgba(239,68,68,0.4)",display:"flex",padding:"1px",transition:"color 0.15s"},onMouseEnter:N=>N.currentTarget.style.color="#ef4444",onMouseLeave:N=>N.currentTarget.style.color="rgba(239,68,68,0.4)",children:a.jsx(xr,{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:284",size:10})})]})]})]})}),a.jsx("td",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:290",style:{padding:"0.75rem 1rem",fontWeight:700,color:vn[A%vn.length]},children:dg(C.balance)}),a.jsx("td",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:291",style:{padding:"0.75rem 1rem",color:C.stakedBalance>0?"#f97316":"rgba(255,255,255,0.2)"},children:C.stakedBalance>0?dg(C.stakedBalance):"â"}),a.jsx("td",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:292",style:{padding:"0.75rem 1rem",color:"#22c55e",fontWeight:600},children:k>0?Cx((C.balance+C.stakedBalance)*k):"â"}),a.jsx("td",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:293",style:{padding:"0.75rem 1rem",color:"rgba(255,255,255,0.6)"},children:C.fungibleTokens.length}),a.jsx("td",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:294",style:{padding:"0.75rem 1rem",color:"rgba(255,255,255,0.6)"},children:C.nftCount>0?a.jsxs($,{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:296",href:`/tools/nft-gallery?address=${C.address}`,style:{color:"#8b5cf6",textDecoration:"none",fontWeight:700},children:[C.nftCount," â"]}):"0"}),a.jsx("td",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:299",style:{padding:"0.75rem 1rem"},children:C.delegatedTo?a.jsxs("span",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:301",style:{fontSize:"0.72rem",color:"#22c55e",fontWeight:600},children:["â ",C.delegatedTo.slice(0,14),C.delegatedTo.length>14?"â¦":""]}):a.jsx("span",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:303",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.2)"},children:"Not delegating"})})]},C.address))})]})})]})]}),P.length>0&&a.jsxs("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:316",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"10px",overflow:"hidden"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:317",style:{padding:"1rem 1.25rem",borderBottom:"1px solid rgba(255,255,255,0.06)"},children:[a.jsx("span",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:318",style:{fontWeight:800,color:"#fff",fontSize:"0.88rem"},children:"ðª Combined Token Holdings"}),a.jsx("span",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:319",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.3)",marginLeft:"0.5rem"},children:"across all wallets"})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:321",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(220px, 1fr))",gap:"0",padding:"0"},children:P.map((C,A)=>a.jsxs("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:323",style:{display:"flex",alignItems:"center",gap:"0.75rem",padding:"0.875rem 1.25rem",borderBottom:"1px solid rgba(255,255,255,0.04)",borderRight:"1px solid rgba(255,255,255,0.04)"},children:[C.thumbnailUri?a.jsx("img",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:325",src:C.thumbnailUri,alt:"",style:{width:"28px",height:"28px",borderRadius:"6px",objectFit:"cover",flexShrink:0},onError:N=>{N.currentTarget.style.display="none"}}):a.jsx("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:327",style:{width:"28px",height:"28px",borderRadius:"6px",background:"rgba(249,115,22,0.15)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"0.7rem",flexShrink:0},children:"ðª"}),a.jsxs("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:329",style:{flex:1,minWidth:0},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:330",style:{fontSize:"0.8rem",fontWeight:700,color:"#fff",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:C.name}),C.symbol&&a.jsx("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:331",style:{fontSize:"0.6rem",color:"rgba(255,255,255,0.35)"},children:C.symbol}),C.wallets.length>1&&a.jsxs("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:332",style:{fontSize:"0.58rem",color:"rgba(255,255,255,0.25)"},children:[C.wallets.length," wallets"]})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:334",style:{fontSize:"0.85rem",fontWeight:800,color:"#f97316",flexShrink:0},children:C.totalBalance>=1e6?`${(C.totalBalance/1e6).toFixed(2)}M`:C.totalBalance>=1e3?`${(C.totalBalance/1e3).toFixed(2)}K`:C.totalBalance.toFixed(2)})]},A))})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:344",style:{display:"flex",gap:"0.75rem",flexWrap:"wrap"},children:v.map((C,A)=>a.jsxs("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:346",style:{display:"flex",gap:"0.4rem"},children:[a.jsxs($,{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:347",href:`/tools/wallet?address=${C.address}`,style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",padding:"0.4rem 0.875rem",background:`${vn[A%vn.length]}22`,border:`1px solid ${vn[A%vn.length]}44`,borderRadius:"6px",color:vn[A%vn.length],textDecoration:"none",fontSize:"0.72rem",fontWeight:700},children:["ð Inspect W",A+1]}),C.nftCount>0&&a.jsx($,{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:351",href:`/tools/nft-gallery?address=${C.address}`,style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",padding:"0.4rem 0.875rem",background:"rgba(139,92,246,0.1)",border:"1px solid rgba(139,92,246,0.25)",borderRadius:"6px",color:"#8b5cf6",textDecoration:"none",fontSize:"0.72rem",fontWeight:700},children:"ð¼ï¸ NFTs"})]},C.address))})]}
1126),!s.filter(Boolean).length&&!l&&a.jsxs("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:363",style:{textAlign:"center",padding:"4rem 2rem",color:"rgba(255,255,255,0.3)"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:364",style:{fontSize:"3rem",marginBottom:"1rem"},children:"ð"}),a.jsx("p",{"data-loc":"client/src/pages/tools/PortfolioTrackerPage.tsx:365",style:{fontSize:"0.9rem"},children:"Enter up to 5 Tezos addresses above to track your combined portfolio"})]})]})]})}const oV="xtz_address_book";function bAe(){try{const e=localStorage.getItem(oV);return e?JSON.parse(e):[]}catch{return[]}}function vAe(e){try{localStorage.setItem(oV,JSON.stringify(e))}catch{}}function SAe(){const[e,t]=E.useState(()=>bAe());E.useEffect(()=>{vAe(e)},[e]);const r=E.useCallback((o,l)=>{const d=o.trim(),u=l.trim()||d.slice(0,12)+"â¦";t(g=>g.some(f=>f.address===d)?g.map(f=>f.address===d?{...f,label:u}:f):[...g,{address:d,label:u,addedAt:Date.now()}])},[]),n=E.useCallback(o=>{t(l=>l.filter(d=>d.address!==o))},[]),s=E.useCallback((o,l)=>{t(d=>d.map(u=>u.address===o?{...u,label:l.trim()}:u))},[]),i=E.useCallback(o=>e.some(l=>l.address===o),[e]);return{entries:e,addEntry:r,removeEntry:n,updateLabel:s,hasEntry:i}}function jAe(){Ie({title:"Tezos Address Book â Save & Label Wallets | XTZ.News",description:"Save and label your frequently-used Tezos addresses. Stored locally in your browser â no account needed. One-click access to wallet tools.",keywords:"Tezos address book, save Tezos addresses, XTZ wallet labels, Tezos wallet manager",canonical:"https://xtz.news/tools/address-book",jsonLd:ln({name:"Tezos Address Book",description:"Save and label your frequently-used Tezos addresses. Stored locally in your browser â no account needed. One-click access to wallet tools.",url:"https://xtz.news/tools/address-book"})});const{entries:e,addEntry:t,removeEntry:r,updateLabel:n}=SAe(),[s,i]=E.useState(""),[o,l]=E.useState(""),[d,u]=E.useState(null),[g,f]=E.useState(""),[m,y]=E.useState(""),S=()=>{const P=s.trim();if(!P){y("Please enter an address.");return}if(!P.startsWith("tz")&&!P.startsWith("KT")){y("Must be a valid Tezos address (tz1/tz2/tz3/KT1).");return}t(P,o),i(""),l(""),y(""),Ee.success(`${o||P.slice(0,12)+"â¦"} saved to address book!`)},b=(P,O)=>{u(P),f(O)},v=P=>{g.trim()&&(n(P,g),Ee.success("Label updated!")),u(null)},j=(P,O)=>{r(P),Ee.success(`${O} removed from address book.`)},k=P=>{navigator.clipboard.writeText(P),Ee.success("Address copied!")};return a.jsxs("div",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:60",style:{background:"#000",minHeight:"100vh"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:62",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",borderBottom:"1px solid rgba(44,125,247,0.2)",padding:"2rem 0"},children:a.jsxs("div",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:63",className:"container",children:[a.jsx(zr,{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:64",items:[{label:"Tools",href:"/tools"},{label:"Address Book"}]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:65",style:{display:"flex",alignItems:"center",gap:"0.75rem",marginBottom:"1rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:66",style:{width:"40px",height:"40px",background:"rgba(44,125,247,0.2)",border:"1px solid rgba(44,125,247,0.4)",borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"1.2rem"},children:"ð"}),a.jsxs("div",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:67",children:[a.jsx("h1",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:68",style:{fontSize:"1.6rem",fontWeight:900,color:"#fff",margin:0},children:"Address Book"}),a.jsx("p",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:69",style:{color:"rgba(255,255,255,0.45)",fontSize:"0.82rem",margin:0},children:"Save and label your frequently-used Tezos addresses â stored locally in your browser"})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:74",style:{background:"rgba(255,255,255,0.04)",border:"1px solid rgba(44,125,247,0.2)",borderRadius:"10px",padding:"1.25rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:75",style:{fontSize:"0.72rem",fontWeight:800,color:"rgba(255,255,255,0.5)",textTransform:"uppercase",letterSpacing:"0.1em",marginBottom:"0.875rem"},children:"Add Address"}),a.jsxs("div",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:76",style:{display:"flex",gap:"0.5rem",flexWrap:"wrap"},children:[a.jsx("input",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:77",value:s,onChange:P=>{i(P.target.value),y("")},onKeyDown:P=>P.key==="Enter"&&S(),placeholder:"tz1⦠or KT1⦠address",style:{flex:"2
11261 260px",padding:"0.6rem 0.875rem",background:"rgba(255,255,255,0.07)",border:`1px solid ${m?"rgba(239,68,68,0.5)":"rgba(44,125,247,0.25)"}`,borderRadius:"6px",color:"#fff",fontSize:"0.85rem",outline:"none",fontFamily:"monospace",transition:"border-color 0.15s"},onFocus:P=>P.currentTarget.style.borderColor="#2c7df7",onBlur:P=>P.currentTarget.style.borderColor=m?"rgba(239,68,68,0.5)":"rgba(44,125,247,0.25)"}),a.jsx("input",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:83",value:o,onChange:P=>l(P.target.value),onKeyDown:P=>P.key==="Enter"&&S(),placeholder:"Label (e.g. My Wallet, Trading)",style:{flex:"1 1 180px",padding:"0.6rem 0.875rem",background:"rgba(255,255,255,0.07)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"6px",color:"#fff",fontSize:"0.85rem",outline:"none",fontFamily:"inherit",transition:"border-color 0.15s"},onFocus:P=>P.currentTarget.style.borderColor="#2c7df7",onBlur:P=>P.currentTarget.style.borderColor="rgba(255,255,255,0.12)"}),a.jsxs("button",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:89",onClick:S,style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",padding:"0.6rem 1.25rem",background:"#2c7df7",border:"none",borderRadius:"6px",color:"#fff",fontWeight:700,fontSize:"0.85rem",cursor:"pointer",fontFamily:"inherit",whiteSpace:"nowrap"},children:[a.jsx(au,{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:91",size:14})," Save Address"]})]}),m&&a.jsx("div",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:94",style:{fontSize:"0.72rem",color:"#ef4444",marginTop:"0.4rem"},children:m})]})]})}),a.jsx("div",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:99",className:"container",style:{padding:"2rem 1.25rem 4rem"},children:e.length===0?a.jsxs("div",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:101",style:{textAlign:"center",padding:"4rem 2rem",color:"rgba(255,255,255,0.3)"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:102",style:{fontSize:"3rem",marginBottom:"1rem"},children:"ð"}),a.jsx("p",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:103",style:{fontSize:"0.9rem"},children:"No saved addresses yet. Add your first address above."}),a.jsx("p",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:104",style:{fontSize:"0.78rem",marginTop:"0.5rem",color:"rgba(255,255,255,0.2)"},children:"Addresses are saved in your browser's local storage â no account needed."})]}):a.jsxs("div",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:107",style:{display:"flex",flexDirection:"column",gap:"0.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:108",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"0.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:109",style:{fontSize:"0.75rem",color:"rgba(255,255,255,0.4)"},children:[a.jsx("strong",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:110",style:{color:"#fff"},children:e.length})," saved address",e.length!==1?"es":""]}),a.jsx("div",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:112",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.2)"},children:"Stored locally in your browser"})]}),e.map(P=>a.jsxs("div",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:116",style:{display:"flex",alignItems:"center",gap:"0.75rem",padding:"0.875rem 1.25rem",background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"8px",flexWrap:"wrap"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:118",style:{flex:"1 1 200px",minWidth:0},children:[d===P.address?a.jsxs("div",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:120",style:{display:"flex",alignItems:"center",gap:"0.4rem"},children:[a.jsx("input",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:121",value:g,onChange:O=>f(O.target.value),onKeyDown:O=>
1126{O.key==="Enter"&&v(P.address),O.key==="Escape"&&u(null)},autoFocus:!0,style:{padding:"0.3rem 0.6rem",background:"rgba(255,255,255,0.08)",border:"1px solid #2c7df7",borderRadius:"4px",color:"#fff",fontSize:"0.85rem",outline:"none",fontFamily:"inherit",width:"160px"}}),a.jsx("button",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:125",onClick:()=>v(P.address),style:{background:"none",border:"none",cursor:"pointer",color:"#22c55e",display:"flex"},children:a.jsx(yc,{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:125",size:14})}),a.jsx("button",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:126",onClick:()=>u(null),style:{background:"none",border:"none",cursor:"pointer",color:"rgba(255,255,255,0.3)",display:"flex"},children:a.jsx(xr,{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:126",size:14})})]}):a.jsxs("div",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:129",style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:130",style:{fontWeight:700,color:"#fff",fontSize:"0.9rem"},children:P.label}),a.jsx("button",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:131",onClick:()=>b(P.address,P.label),style:{background:"none",border:"none",cursor:"pointer",color:"rgba(255,255,255,0.25)",display:"flex",padding:"1px"},children:a.jsx(Yre,{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:132",size:11})})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:136",style:{display:"flex",alignItems:"center",gap:"0.35rem",marginTop:"0.2rem"},children:[a.jsx("code",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:137",style:{fontSize:"0.7rem",color:"rgba(255,255,255,0.35)",fontFamily:"monospace"},children:P.address}),a.jsx("button",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:138",onClick:()=>k(P.address),style:{background:"none",border:"none",cursor:"pointer",color:"rgba(255,255,255,0.2)",display:"flex",padding:"1px"},children:a.jsx(an,{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:139",size:10})})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:145",style:{display:"flex",gap:"0.4rem",flexShrink:0,flexWrap:"wrap"},children:[a.jsx($,{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:146",href:`/tools/wallet?address=${P.address}`,style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",padding:"0.35rem 0.75rem",background:"rgba(44,125,247,0.1)",border:"1px solid rgba(44,125,247,0.25)",borderRadius:"5px",color:"#2c7df7",textDecoration:"none",fontSize:"0.7rem",fontWeight:700},children:"ð Inspect"}),a.jsx($,{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:150",href:`/tools/nft-gallery?address=${P.address}`,style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",padding:"0.35rem 0.75rem",background:"rgba(139,92,246,0.1)",border:"1px solid rgba(139,92,246,0.25)",borderRadius:"5px",color:"#8b5cf6",textDecoration:"none",fontSize:"0.7rem",fontWeight:700},children:"ð¼ï¸ NFTs"}),a.jsx($,{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:154",href:`/tools/rewards?address=${P.address}`,style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",padding:"0.35rem 0.75rem",background:"rgba(34,197,94,0.1)",border:"1px solid rgba(34,197,94,0.25)",borderRadius:"5px",color:"#22c55e",textDecoration:"none",fontSize:"0.7rem",fontWeight:700},children:"ð° Rewards"}),a.jsx($,{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:158",href:`/explorer/address/${P.address}`,style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",padding:"0.35rem 0.75rem",background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"5px",color:"rgba(255,255,255,0.5)",textDecoration:"none",fontSize:"0.7rem",fontWeight:700},children:"Explorer"}),a.jsxs("button",{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:162",onClick:()=>j(P.address,P.label),style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",padding:"0.35rem 0.75rem",background:"rgba(239,68,68,0.08)",border:"1px solid rgba(239,68,68,0.2)",borderRadius:"5px",color:"rgba(239,68,68,0.6)",fontSize:"0.7rem",fontWeight:700,cursor:"pointer",transition:"all 0.15s"},onMouseEnter:O=>{O.currentTarget.style.background="rgba(239,68,68,0.15)",O.currentTarget.style.color="#ef4444"},onMouseLeave:O=>{O.currentTarget.style.background="rgba(239,68,68,0.08)",O.currentTarget.style.color="rgba(239,68,68,0.6)"},children:[a.jsx(pA,{"data-loc":"client/src/pages/tools/AddressBookPage.tsx:166",size:11})," Remove"]})]})]},P.address))]})})]})}function jl(e){return e>=1e6?`${(e/1e6).toFixed(2)}M ê©`:e>=1e3?`${(e/1e3).toFixed(2)}K ê©`:`${e.toFixed(4)} ê©`}function Kk(e){const t=Math.floor((Date.now()-new Date(e).getTime())/1e3);return t<60?`${t}s ago`:t<3600?`${Math.floor(t/60)}m ago`:t<86400?`${Math.floor(t/3600)}h ago`:new Date(e).toLocaleDateString("en-GB",{day:"numeric",month:"short"})}const wAe=[{label:"QUIPU",contract:"KT193D4vozYnhGJQVtw7CoxxqphqUEEwK6Vb",tokenId:"0"},{label:"UUSD",contract:"KT1XRPEPXbZK25r3Htzp2o1x7xdMMmfocKNW",tokenId:"0"},{label:"kUSD",contract:"KT1K9gCRgaLRFKTErYt1wVxA3Frb9FjasjTV",tokenId:"0"},{label:"VNXAU",contract:"KT1TgmD7kXQzofpuc9VbTRMdZCS2e7kSCdeB",tokenId:"0"},{label:"tzBTC",contract:"KT1PWx2mnDueood7fEmfbBDKx1D9BAnnXitn",tokenId:"0"}];function kAe(){Ie({title:"Tezos Token Price History â FA2 Trade Charts | XTZ.News",description:"View trade history and price charts for any Tezos FA2 token. See high, low, average price, and volume. Powered by objkt.com data.",keywords:"Tezos token price, FA2 token history, Tezos token chart, QUIPU price, kUSD price, Tezos DeFi tokens",canonical:"https://xtz.news/tools/token-price",jsonLd:ln({name:"Tezos Token Price History",description:"View trade history and price charts for any Tezos FA2 token. See high, low, average price, and volume. Powered by objkt.com data.",url:"https://xtz.news/tools/token-price"})});const[e,t]=E.useState(""),[r,n]=E.useState("0"),[s,i]=E.useState(""),[o,l]=E.useState("0"),{data:d,isLoading:u,error:g}=ee.tools.tokenPriceHistory.useQuery({contract:s,tokenId:o},{enabled:!!s,staleTime:6e4}),f=(P,O)=>{const T=(P||e).trim();T&&(i(T),l(O??r),P||t(T))},m=E.useMemo(()=>d?.trades?.length?[...d.trades].reverse():[],[d]),y=m.length>0?Math.max(...m.map(P=>P.priceXtz)):1,S=m.length>0?Math.min(...m.map(P=>P.priceXtz)):0,b=y-S||1,v=m[0]?.priceXtz??0,j=m[m.length-1]?.priceXtz??0,k=v>0?(j-v)/v*100:0;return a.jsxs("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:71",style:{background:"#000",minHeight:"100vh"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:73",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",borderBottom:"1px solid rgba(44,125,247,0.2)",padding:"2rem 0"},children:a.jsxs("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:74",className:"container",children:[a.jsx(zr,{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:75",items:[{label:"Tools",href:"/tools"},{label:"Token Price History"}]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:76",style:{display:"flex",alignItems:"center",gap:"0.75rem",marginBottom:"1rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:77",style:{width:"40px",height:"40px",background:"rgba(249,115,22,0.2)",border:"1px solid rgba(249,115,22,0.4)",borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"1.2rem"},children:"ð"}),a.jsxs("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:78",children:[a.jsx("h1",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:79",style:{fontSize:"1.6rem",fontWeight:900,color:"#fff",margin:0},children:"Token Price History"}),a.jsx("p",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:80",style:{color:"rgba(255,255,255,0.45)",fontSize:"0.82rem",margin:0},children:"View trade history and price chart for any FA2 token on Tezos"})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:85",style:{display:"flex",gap:"0.5rem",flexWrap:"wrap"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:86",style:{position:"relative",flex:"2
11261 300px"},children:[a.jsx(ft,{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:87",size:14,style:{position:"absolute",left:"0.75rem",top:"50%",transform:"translateY(-50%)",color:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),a.jsx("input",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:88",value:e,onChange:P=>t(P.target.value),onKeyDown:P=>P.key==="Enter"&&f(),placeholder:"FA2 contract address (KT1â¦)",style:{width:"100%",padding:"0.7rem 1rem 0.7rem 2.5rem",background:"rgba(255,255,255,0.07)",border:"1px solid rgba(44,125,247,0.3)",borderRadius:"8px",color:"#fff",fontSize:"0.88rem",outline:"none",fontFamily:"monospace",transition:"border-color 0.15s"},onFocus:P=>P.currentTarget.style.borderColor="#2c7df7",onBlur:P=>P.currentTarget.style.borderColor="rgba(44,125,247,0.3)"})]}),a.jsx("input",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:94",value:r,onChange:P=>n(P.target.value),onKeyDown:P=>P.key==="Enter"&&f(),placeholder:"Token ID (0)",style:{flex:"0 0 100px",padding:"0.7rem 0.875rem",background:"rgba(255,255,255,0.07)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"8px",color:"#fff",fontSize:"0.88rem",outline:"none",fontFamily:"monospace"}}),a.jsx("button",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:97",onClick:()=>f(),style:{padding:"0.7rem 1.5rem",background:"#f97316",border:"none",borderRadius:"8px",color:"#fff",fontWeight:700,fontSize:"0.88rem",cursor:"pointer",fontFamily:"inherit"},children:"View Chart"})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:104",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginTop:"0.75rem",flexWrap:"wrap"},children:[a.jsx("span",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:105",style:{fontSize:"0.7rem",color:"rgba(255,255,255,0.3)"},children:"Popular:"}),wAe.map(P=>a.jsx("button",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:107",onClick:()=>{t(P.contract),n(P.tokenId),f(P.contract,P.tokenId)},style:{padding:"0.2rem 0.7rem",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"12px",color:"rgba(255,255,255,0.5)",fontSize:"0.7rem",fontWeight:600,cursor:"pointer"},children:P.label},P.contract))]})]})}),a.jsxs("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:116",className:"container",style:{padding:"2rem 1.25rem 4rem"},children:[u&&a.jsxs("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:118",style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:119",className:"skeleton",style:{height:"300px",borderRadius:"10px"}}),a.jsx("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:120",className:"skeleton",style:{height:"200px",borderRadius:"10px"}})]}),!u&&s&&(!d||g)&&a.jsxs("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:125",style:{textAlign:"center",padding:"3rem",background:"#05152e",borderRadius:"10px",border:"1px solid rgba(239,68,68,0.2)"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:126",style:{fontSize:"2rem",marginBottom:"0.75rem"},children:"ð"}),a.jsx("h2",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:127",style:{color:"#fff",fontWeight:800,marginBottom:"0.5rem"},children:"No Trade Data Found"}),a.jsx("p",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:128",style:{color:"rgba(255,255,255,0.4)",fontSize:"0.85rem"},children:"No sales found for this token on objkt.com. Try a different contract or token ID."})]}),!u&&d&&a.jsxs("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:133",style:{display:"flex",flexDirection:"column",gap:"1.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:135",style:{background:"#05152e",border:"1px solid rgba(44,125,247,0.2)",borderRadius:"12px",padding:"1.25rem 1.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:136",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",flexWrap:"wrap",gap:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:137",children:[a.jsx("h2",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:138",style:{fontSize:"1.3rem",fontWeight:900,color:"#fff",margin:"0 0 0.25rem"},children:d.name||"Unknown Token"}),a.jsxs("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:139",style:{display:"flex",gap:"0.5rem",flexWrap:"wrap",alignItems:"center"},children:[a.jsxs("code",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:140",style:{fontSize:"0.7rem",color:"rgba(255,255,255,0.35)",fontFamily:"monospace"},children:[s.slice(0,20),"â¦"]}),d.objktUrl&&a.jsxs("a",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:142",href:d.objktUrl,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.25rem",fontSize:"0.7rem",color:"#2c7df7",textDecoration:"none",fontWeight:700},children:[a.jsx(ve,{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:143",size:10})," objkt.com"]})]})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:148",style:{textAlign:"right"},children:j>0&&a.jsxs(a.Fragment,{children:[a.jsx("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:151",style:{fontSize:"1.5rem",fontWeight:900,color:"#fff"},children:jl(j)}),a.jsxs("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:152",style:{display:"flex",alignItems:"center",gap:"0.3rem",justifyContent:"flex-end"},children:[k>=0?a.jsx(cr,{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:153",size:12,style:{color:"#22c55e"}}):a.jsx(Ha,{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:153",size:12,style:{color:"#ef4444"}}),a.jsxs("span",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:154",style:{fontSize:"0.78rem",fontWeight:700,color:k>=0?"#22c55e":"#ef4444"},children:[k>=0?"+":"",k.toFixed(1),"% over ",d.trades.length," trades"]})]})]})})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:164",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(130px, 1fr))",gap:"0.75rem",marginTop:"1rem",paddingTop:"1rem",borderTop:"1px solid rgba(255,255,255,0.07)"},children:[{label:"Total Trades",value:d.trades.length.toLocaleStr
1126ing(),color:"#2c7df7"},{label:"Total Volume",value:jl(d.totalVolume),color:"#f97316"},{label:"Highest Sale",value:jl(d.highPrice),color:"#22c55e"},{label:"Lowest Sale",value:jl(d.lowPrice),color:"#f59e0b"},{label:"Avg Price",value:jl(d.avgPrice),color:"rgba(255,255,255,0.7)"}].map(P=>a.jsxs("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:172",style:{background:"rgba(255,255,255,0.03)",borderRadius:"6px",padding:"0.6rem 0.75rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:173",style:{fontSize:"0.58rem",color:"rgba(255,255,255,0.3)",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.07em",marginBottom:"0.25rem"},children:P.label}),a.jsx("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:174",style:{fontSize:"0.88rem",fontWeight:800,color:P.color},children:P.value})]},P.label))})]}),m.length>1&&a.jsxs("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:182",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"12px",padding:"1.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:183",style:{fontSize:"0.72rem",fontWeight:800,color:"rgba(255,255,255,0.5)",textTransform:"uppercase",letterSpacing:"0.1em",marginBottom:"1rem"},children:["Price History (last ",m.length," trades)"]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:186",style:{background:"rgba(255,255,255,0.02)",borderRadius:"8px",padding:"1rem 0.5rem 0.5rem",overflow:"hidden"},children:[a.jsxs("svg",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:187",width:"100%",height:"160",viewBox:"0 0 600 160",preserveAspectRatio:"none",children:[a.jsx("defs",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:188",children:a.jsxs("linearGradient",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:189",id:"priceGrad",x1:"0",y1:"0",x2:"0",y2:"1",children:[a.jsx("stop",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:190",offset:"0%",stopColor:"#f97316",stopOpacity:"0.3"}),a.jsx("stop",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:191",offset:"100%",stopColor:"#f97316",stopOpacity:"0"})]})}),a.jsx("path",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:195",d:["M 0 150",...m.map((P,O)=>{const T=O/(m.length-1)*590+5,C=140-(P.priceXtz-S)/b*130;return`L ${T} ${C}`}),"L 595 150 Z"].join(" "),fill:"url(#priceGrad)"}),a.jsx("polyline",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:208",points:m.map((P,O)=>{const T=O/(m.length-1)*590+5,C=140-(P.priceXtz-S)/b*130;return`${T},${C}`}).join(" "),fill:"none",stroke:"#f97316",strokeWidth:"2",strokeLinejoin:"round"}),m.length<=50&&m.map((P,O)=>{const T=O/(m.length-1)*590+5,C=140-(P.priceXtz-S)/b*130;return a.jsx("circle",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:223",cx:T,cy:C,r:"3",fill:"#f97316",opacity:"0.8",children:a.jsxs("title",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:223",children:[jl(P.priceXtz)," â ",Kk(P.timestamp)]})},O)})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:226",style:{display:"flex",justifyContent:"space-between",marginTop:"0.25rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:227",style:{fontSize:"0.62rem",color:"rgba(255,255,255,0.2)"},children:Kk(m[0]?.timestamp)}),a.jsx("span",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:228",style:{fontSize:"0.62rem",color:"rgba(255,255,255,0.2)"},children:"Latest"})]})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:235",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"12px",overflow:"hidden"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:236",style:{padding:"1rem 1.25rem",borderBottom:"1px solid rgba(255,255,255,0.06)"},children:a.jsx("span",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:237",style:{fontWeight:800,color:"#fff",fontSize:"0.88rem"},children:"Recent Trades"})}),a.jsx("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:239",style:{overflowX:"auto"},children:a.jsxs("table",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:240",style:{width:"100%",borderCollapse:"collapse",fontSize:"0.78rem"},children:[a.jsx("thead",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:241",children:a.jsx("tr",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:242",style:{borderBottom:"1px solid rgba(255,255,255,0.06)"},children:["Time","Price","Amount","Buyer","Seller"].map(P=>a.jsx("th",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:244",style:{padding:"0.6rem 1rem",textAlign:"left",fontWeight:700,color:"rgba(255,255,255,0.35)",fontSize:"0.62rem",textTransform:"uppercase",letterSpacing:"0.07em",whiteSpace:"nowrap"},children:P},P))})}),a.jsx("tbody",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:248",children:d.trades.slice(0,50).map((P,O)=>a.jsxs("tr",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:250",style:{borderBottom:O<Math.min(d.trades.length,50)-1?"1px solid rgba(255,255,255,0.04)":"none"},children:[a.jsx("td",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:251",style:{padding:"0.6rem 1rem",color:"rgba(255,255,255,0.4)",whiteSpace:"nowrap"}
1126,children:Kk(P.timestamp)}),a.jsx("td",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:252",style:{padding:"0.6rem 1rem",fontWeight:700,color:"#f97316"},children:jl(P.priceXtz)}),a.jsx("td",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:253",style:{padding:"0.6rem 1rem",color:"rgba(255,255,255,0.6)"},children:P.amount}),a.jsx("td",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:254",style:{padding:"0.6rem 1rem"},children:P.buyer?a.jsxs($,{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:256",href:`/explorer/address/${P.buyer}`,style:{color:"#2c7df7",textDecoration:"none",fontFamily:"monospace",fontSize:"0.72rem"},children:[P.buyer.slice(0,10),"â¦"]}):a.jsx("span",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:259",style:{color:"rgba(255,255,255,0.2)"},children:"â"})}),a.jsx("td",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:261",style:{padding:"0.6rem 1rem"},children:P.seller?a.jsxs($,{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:263",href:`/explorer/address/${P.seller}`,style:{color:"rgba(255,255,255,0.4)",textDecoration:"none",fontFamily:"monospace",fontSize:"0.72rem"},children:[P.seller.slice(0,10),"â¦"]}):a.jsx("span",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:266",style:{color:"rgba(255,255,255,0.2)"},children:"â"})})]},O))})]})})]})]}),!s&&!u&&a.jsxs("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:278",style:{textAlign:"center",padding:"4rem 2rem",color:"rgba(255,255,255,0.3)"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:279",style:{fontSize:"3rem",marginBottom:"1rem"},children:"ð"}),a.jsx("p",{"data-loc":"client/src/pages/tools/TokenPriceHistoryPage.tsx:280",style:{fontSize:"0.9rem"},children:"Enter a FA2 contract address above or select a popular token"})]})]})]})}function PAe(e){return e>=1e6?`${(e/1e6).toFixed(2)}M ê©`:e>=1e3?`${(e/1e3).toFixed(2)}K ê©`:`${e.toFixed(4)} ê©`}const Qk=[{label:"Coinbase Baker",address:"tz1irJKkXS2DBWkU1NnmFQx1c1L7pbGg4yhk"},{label:"Try your wallet",address:""}];function TAe(){Ie({title:"Tezos Airdrop Checker â Token Eligibility | XTZ.News",description:"Check if your Tezos address holds tokens from 10 major protocols: QuipuSwap, Youves, Kolibri, Tezos Domains, objkt.com, and more.",keywords:"Tezos airdrop checker, XTZ token eligibility, QuipuSwap QUIPU, Youves YOU, Tezos DeFi tokens",canonical:"https://xtz.news/tools/airdrop",jsonLd:ln({name:"Tezos Airdrop Checker",description:"Check if your Tezos address holds tokens from 10 major protocols: QuipuSwap, Youves, Kolibri, Tezos Domains, objkt.com, and more.",url:"https://xtz.news/tools/airdrop"})});const[e,t]=E.useState(""),[r,n]=E.useState(""),{data:s,isLoading:i}=ee.tools.airdropCheck.useQuery({address:r},{enabled:!!r,staleTime:12e4}),o=u=>{const g=(u||e).trim();g&&(n(g),u||t(g))},l=s?.checks.filter(u=>u.eligible)||[],d=s?.checks.filter(u=>!u.eligible)||[];return a.jsxs("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:47",style:{background:"#000",minHeight:"100vh"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:49",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",borderBottom:"1px solid rgba(44,125,247,0.2)",padding:"2rem 0"},children:a.jsxs("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:50",className:"container",children:[a.jsx(zr,{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:51",items:[{label:"Tools",href:"/tools"},{label:"Airdrop Checker"}]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:52",style:{display:"flex",alignItems:"center",gap:"0.75rem",marginBottom:"1rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:53",style:{width:"40px",height:"40px",background:"rgba(34,197,94,0.2)",border:"1px solid rgba(34,197,94,0.4)",borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"1.2rem"},children:"ð"}),a.jsxs("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:54",children:[a.jsx("h1",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:55",style:{fontSize:"1.6rem",fontWeight:900,color:"#fff",margin:0},children:"Airdrop Checker"}),a.jsx("p",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:56",style:{color:"rgba(255,255,255,0.45)",fontSize:"0.82rem",margin:0},children:"Check if your Tezos address holds tokens from 10 major Tezos protocols"})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:59",style:{display:"flex",gap:"0.5rem",flexWrap:"wrap"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:60",style:{position:"relative",flex:"1 1 400px"},children:[a.jsx(ft,{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:61",size:14,style:{position:"absolute",left:"0.875rem",top:"50%",transform:"translateY(-50%)",color:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),a.jsx("input",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:62",value:e,onCh
1126ange:u=>t(u.target.value),onKeyDown:u=>u.key==="Enter"&&o(),placeholder:"Enter your Tezos address (tz1â¦)",style:{width:"100%",padding:"0.75rem 1rem 0.75rem 2.5rem",background:"rgba(255,255,255,0.07)",border:"1px solid rgba(44,125,247,0.3)",borderRadius:"8px",color:"#fff",fontSize:"0.9rem",outline:"none",fontFamily:"inherit"},onFocus:u=>u.currentTarget.style.borderColor="#2c7df7",onBlur:u=>u.currentTarget.style.borderColor="rgba(44,125,247,0.3)"})]}),a.jsx("button",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:68",onClick:()=>o(),style:{padding:"0.75rem 1.5rem",background:"#22c55e",border:"none",borderRadius:"8px",color:"#fff",fontWeight:700,fontSize:"0.9rem",cursor:"pointer",fontFamily:"inherit"},children:"Check Eligibility"})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:73",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginTop:"0.75rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:74",style:{fontSize:"0.7rem",color:"rgba(255,255,255,0.3)"},children:"Try:"}),a.jsx("button",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:75",onClick:()=>{t(Qk[0].address),o(Qk[0].address)},style:{padding:"0.2rem 0.7rem",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"12px",color:"rgba(255,255,255,0.5)",fontSize:"0.7rem",fontWeight:600,cursor:"pointer"},children:Qk[0].label})]})]})}),a.jsxs("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:83",className:"container",style:{padding:"2rem 1.25rem 4rem"},children:[i&&a.jsx("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:85",style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:Array.from({length:6}).map((u,g)=>a.jsx("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:86",className:"skeleton",style:{height:"64px",borderRadius:"8px"}},g))}),!i&&s&&a.jsxs("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:91",style:{display:"flex",flexDirection:"column",gap:"1.5rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:93",style:{background:"#05152e",border:`1px solid ${s.eligibleCount>0?"rgba(34,197,94,0.3)":"rgba(255,255,255,0.07)"}`,borderRadius:"12px",padding:"1.5rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:94",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",flexWrap:"wrap",gap:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:95",children:[s.alias&&a.jsx("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:96",style:{fontSize:"1.2rem",fontWeight:900,color:"#fff",marginBottom:"0.25rem"},children:s.alias}),a.jsx("code",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:97",style:{fontSize:"0.75rem",color:"rgba(255,255,255,0.4)",fontFamily:"monospace"},children:s.address}),a.jsxs("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:98",style:{display:"flex",gap:"0.5rem",marginTop:"0.5rem",flexWrap:"wrap"},children:[a.jsxs("span",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:99",style:{fontSize:"0.65rem",fontWeight:700,padding:"2px 8px",borderRadius:"10px",background:"rgba(44,125,247,0.15)",color:"#2c7df7",border:"1px solid rgba(44,125,247,0.3)"},children:[PAe(s.xtzBalance)," XTZ"]}),s.isOldAccount&&a.jsx("span",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:103",style:{fontSize:"0.65rem",fontWeight:700,padding:"2px 8px",borderRadius:"10px",background:"rgba(249,115,22,0.15)",color:"#f97316",border:"1px solid rgba(249,115,22,0.3)"},children:"ðï¸ OG Account (pre-2023)"})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:109",style:{textAlign:"right"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:110",style:{fontSize:"2.5rem",fontWeight:900,color:s.eligibleCount>0?"#22c55e":"rgba(255,255,255,0.3)"},children:[s.eligibleCount,"/",s.checks.length]}),a.jsx("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:113",style:{fontSize:"0.75rem",color:"rgba(255,255,255,0.4)"},children:"protocols found"})]})]})}),l.length>0&&a.jsxs("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:120",style:{background:"#05152e",border:"1px solid rgba(34,197,94,0.2)",borderRadius:"12px",overflow:"hidden"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:121",style:{padding:"1rem 1.25rem",borderBottom:"1px solid rgba(34,197,94,0.15)",display:"flex",alignItems:"center",gap:"0.5rem"},children:[a.jsx(ja,{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:122",size:14,style:{color:"#22c55e"}}),a.jsxs("span",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:123",style:{fontWeight:800,color:"#22c55e",fontSize:"0.88rem"},children:["Tokens Found (",l.length,")"]})]}),l.map((u,g)=>a.jsxs("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:126",style:{display:"flex",alignItems:"center",gap:"1rem",padding:"0.875rem 1.25rem",borderBottom:g<l.length-1?"1px solid rgba(255,255,255,0.04)":"none",flexWrap:"wrap"},children:[u.thumbnailUri?a.jsx("img",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:128",src:u.thumbnailUri,alt:"",style:{width:"32px",height:"32px",borderRadius:"6px",objectFit:"cover",flexShrink:0},onError:f=>{f.currentTarget.style.display="none"}}):a.jsx("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:130",style:{width:"32px",height:"32px",borderRadius:"6px",background:"rgba(34,197,94,0.15)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"1rem",flexShrink:0},children:"â"}),a.jsxs("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:132",style:{flex:1,minWidth:0},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:133",style:{fontWeight:700,color:"#fff",fontSize:"0.88rem"},children:u.name}),a.jsx("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:134",style:{fontSize:"0.7rem",color:"rgba(255,255,255,0.4)"},children:u.description})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:136",style:{textAlign:"right",flexShrink:0},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:137",style:{fontWeight:800,color:"#22c55e",fontSize:"0.95rem"},children:[u.balance>=1e3?`${(u.balance/1e3).toFixed(1)}K`:u.balance.toFixed(u.balance<1?4:2)," ",u.symbol]}),a.jsxs("a",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:140",href:u.url,target:"_blank",rel:"noopener noreferrer",style:{fontSize:"0.65rem",color:"#2c7df7",textDecoration:"none",display:"inline-flex",alignItems:"center",gap:"0.2rem"},children:["Visit ",a.jsx(ve,{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:141",size:9})]})]})]},u.contract))]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:150",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"12px",overflow:"hidden"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:151",style:{padding:"1rem 1.25rem",borderBottom:"1px solid rgba(255,255,255,0.06)",display:"flex",alignItems:"center",gap:"0.5rem"},children:[a.jsx(ru,{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:152",size:14,style:{color:"rgba(255,255,255,0.3)"}}),a.jsxs("span",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:153",style:{fontWeight:800,color:"rgba(255,255,255,0.5)",fontSize:"0.88rem"},children:["Not Found (",d.length,")"]})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:155",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(220px, 1fr))",gap:"0"},children:d.map((u,g)=>a.jsxs("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:157",style:{display:"flex",alignItems:"center",gap:"0.75rem",padding:"0.75rem 1.25rem",borderBottom:"1px solid rgba(255,255,255,0.04)",borderRight:"1px solid rgba(255,255,255,0.04)",opacity:.5},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:158",style:{width:"28px",height:"28px",borderRadius:"6px",background:"rgba(255,255,255,0.05)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"0.8rem",flexShrink:0},children:"â"}),a.jsxs("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:159",style:{flex:1,minWidth:0},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:160",style:{fontSize:"0.78rem",fontWeight:600,color:"rgba(255,255,255,0.5)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:u.name}),a.jsx("a",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:161",href:u.url,target:"_blank",rel:"noopener noreferrer",style:{fontSize:"0.62rem",color:"rgba(44,125,247,0.6)",textDecoration:"none"},children:"Get tokens â"})]})]},u.contract))})]}),a.jsx("p",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:171",style:{fontSize:"0.7rem",color:"rgba(255,255,255,0.2)",textAlign:"center"},children:"This tool checks current token balances only. Past eligibility for completed airdrops cannot be verified retroactively. Data from TzKT API."})]}),!r&&!i&&a.jsxs("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:178",style:{textAlign:"center",padding:"4rem 2rem",color:"rgba(255,255,255,0.3)"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:179",style:{fontSize:"3rem",marginBottom:"1rem"},children:"ð"}),a.jsx("p",{"data-loc":"client/src/pages/tools/AirdropCheckerPage.tsx:180",style:{fontSize:"0.9rem"},children:"Enter your Tezos address above to check which protocol tokens you hold"})]})]})]})}function ug(e){return e>=1e6?`${(e/1e6).toFixed(2)}M`:e>=1e3?`${(e/1e3).toFixed(2)}K`:e.toFixed(4)}function AAe(){Ie({title:"Tezos Batch Address Lookup â Check 100 Wallets at Once | XTZ.News",description:"Paste up to 100 Tezos addresses and get XTZ balance, staking, delegation, and activity for each. Export to CSV. Perfect for DAOs and event organisers.",keywords:"Tezos batch lookup, XTZ bulk address check, Tezos DAO tools, Tezos airdrop distribution",canonical:"https://xtz.news/tools/batch-lookup",jsonLd:ln({name:"Tezos Batch Address Lookup",description:"Paste up to 100 Tezos addresses and get XTZ balance, staking, delegation, and activity for each. Export to CSV. Perfect for DAOs and event organisers.",url:"https://xtz.news/tools/batch-lookup"})});const[e,t]=E.useState(""),[r,n]=E.useState([]),[s,i]=E.useState("balance"),[o,l]=E.useState("desc"),[d,u]=E.useState(""),{data:g=[],isLoading:f}=ee.tools.batchAddressLookup.useQuery({addresses:r},{enabled:r.length>0,staleTime:6e4}),m=()=>{const T=e.split(/[\n,\s]+/).map(C=>C.trim()).filter(C=>C.startsWith("tz")||C.startsWith("KT"));if(!T.length){Ee.error("No valid Tezos addresses found.");return}if(T.length>100){Ee.error("Maximum 100 addresses at once.");return}n(T)}
1126,y=T=>{s===T?l(C=>C==="desc"?"asc":"desc"):(i(T),l("desc"))},S=E.useMemo(()=>[...g.filter(C=>!d||C.address.includes(d)||(C.alias||"").toLowerCase().includes(d.toLowerCase()))].sort((C,A)=>{const N=o==="desc"?-1:1;return s==="balance"?N*(C.balance-A.balance):s==="staked"?N*(C.stakedBalance-A.stakedBalance):s==="txs"?N*(C.numTransactions-A.numTransactions):0}),[g,s,o,d]),b=g.reduce((T,C)=>T+C.balance,0),v=g.reduce((T,C)=>T+C.stakedBalance,0),j=g.filter(T=>T.found).length,k=()=>{const T="Address,Alias,Balance (XTZ),Staked (XTZ),Delegated To,Type,Transactions,First Active,Last Active",C=g.map(R=>`"${R.address}","${R.alias||""}","${R.balance.toFixed(6)}","${R.stakedBalance.toFixed(6)}","${R.delegatedTo||""}","${R.type}","${R.numTransactions}","${R.firstActivity||""}","${R.lastActivity||""}"`),A=[T,...C].join(` 1127`),N=new Blob([A],{type:"text/csv"}),M=URL.createObjectURL(N),B=document.createElement("a");B.href=M,B.download=`tezos_batch_lookup_${new Date().toISOString().slice(0,10)}.csv`,B.click(),URL.revokeObjectURL(M),Ee.success("CSV downloaded!")},P=()=>{const T=g.map(C=>`${C.address}: ${ug(C.balance)}
1127 XTZ${C.alias?` (${C.alias})`:""}`);navigator.clipboard.writeText(T.join(` 1128`)),Ee.success("Summary copied!")},O=({label:T,field:C})=>a.jsxs("th",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:90",onClick:()=>y(C),style:{padding:"0.6rem 1rem",textAlign:"left",fontWeight:700,color:s===C?"#2c7df7":"rgba(255,255,255,0.35)",fontSize:"0.62rem",textTransform:"uppercase",letterSpacing:"0.07em",whiteSpace:"nowrap",cursor:"pointer",userSelect:"none"},children:[T," ",s===C?o==="desc"?"â":"â":""]});return a.jsxs("div",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:96",style:{background:"#000",minHeight:"100vh"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:98",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",borderBottom:"1px solid rgba(44,125,247,0.2)",padding:"2rem 0"},children:a.jsxs("div",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:99",className:"container",children:[a.jsx(zr,{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:100",items:[{label:"Tools",href:"/tools"},{label:"Batch Address Lookup"}]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:101",style:{display:"flex",alignItems:"center",gap:"0.75rem",marginBottom:"1.25rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:102",style:{width:"40px",height:"40px",background:"rgba(249,115,22,0.2)",border:"1px solid rgba(249,115,22,0.4)",borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"1.2rem"},children:"ð"}),a.jsxs("div",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:103",children:[a.jsx("h1",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:104",style:{fontSize:"1.6rem",fontWeight:900,color:"#fff",margin:0},children:"Batch Address Lookup"}),a.jsx("p",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:105",style:{color:"rgba(255,255,255,0.45)",fontSize:"0.82rem",margin:0},children:"Paste up to 100 Tezos addresses â get XTZ balance, delegation, and activity for each. Export to CSV."})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:110",style:{display:"flex",gap:"0.75rem",flexWrap:"wrap"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:111",style:{flex:1,minWidth:"300px"},children:[a.jsx("textarea",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:112",value:e,onChange:T=>t(T.target.value),placeholder:`Paste addresses here â one per line, or comma/space separated: 1129tz1abc... 1130tz1def... 1131KT1xyz...`,rows:5,style:{width:"100%",padding:"0.75rem 1rem",background:"rgba(255,255,255,0.07)",border:"1px solid rgba(44,125,247,0.3)",borderRadius:"8px",color:"#fff",fontSize:"0.82rem",outline:"none",fontFamily:"monospace",resize:"vertical",transition:"border-color 0.15s"},onFocus:T=>T.currentTarget.style.borderColor="#2c7df7",onBlur:T=>T.currentTarget.style.borderColor="rgba(44,125,247,0.3)"}),a.jsxs("div",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:118",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.25)",marginTop:"0.3rem"},children:[e.split(/[\n,\s]+/).filter(T=>T.startsWith("tz")||T.startsWith("KT")).length," valid addresses detected"]})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:122",style:{display:"flex",flexDirection:"column",gap:"0.5rem",justifyContent:"flex-start"},children:[a.jsx("button",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:123",onClick:m,style:{padding:"0.75rem 1.5rem",background:"#f97316",border:"none",borderRadius:"8px",color:"#fff",fontWeight:700,fontSize:"0.9rem",cursor:"pointer",fontFamily:"inherit",whiteSpace:"nowrap"},children:"Lookup All"}),g.length>0&&a.jsxs(a.Fragment,{children:[a.jsxs("button",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:129",onClick:k,style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",padding:"0.6rem 1rem",background:"rgba(34,197,94,0.1)",border:"1px solid rgba(34,197,94,0.3)",borderRadius:"8px",color:"#22c55e",fontWeight:700,fontSize:"0.8rem",cursor:"pointer"},children:[a.jsx(my,{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:131",size:13})," Export CSV"]}),a.jsxs("button",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:133",onClick:P,style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",padding:"0.6rem 1rem",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"8px",color:"rgba(255,255,255,0.6)",fontWeight:700,fontSize:"0.8rem",cursor:"pointer"},children:[a.jsx(an,{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:135",size:13})," Copy Summary"]})]})]})]})]})}),a.jsxs("div",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:144",className:"container",style:{padding:"2rem 1.25rem 4rem"},children:[f&&a.jsx("div",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:146",style:{display:"flex",flexDirection:"column",gap:"0.5rem"},children:Array.from({length:5}).map((T,C)=>a.jsx("div",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:147",className:"skeleton",style:{height:"48px",borderRadius:"6px"}},C))}),!f&&g.length>0&&a.jsxs("div",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:152",style:{display:"flex",flexDirection:"column",gap:"1.5rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:154",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(160px, 1fr))",gap:"0.75rem"},children:[{label:"Addresses Found",value:`${j}/${r.length}`,color:"#2c7df7"},{label:"Total XTZ",value:`${ug(b)} ê©`,color:"#fff"},{label:"Total Staked",value:`${ug(v)} ê©`,color:"#f97316"},{label:"Delegating",value:`${g.filter(T=>T.delegatedTo).length}`,color:"#22c55e"}].map(T=>a.jsxs("div",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:161",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"8px",padding:"0.875rem 1rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:162",style:{fontSize:"0.58rem",color:"rgba(255,255,255,0.35)",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.07em",marginBottom:"0.3rem"},children:T.label}),a.jsx("div",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:163",style:{fontSize:"1rem",fontWeight:800,color:T.color},children:T.value})]},T.label))}),a.jsxs("div",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:169",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"10px",overflow:"hidden"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:170",style:{padding:"0.875rem 1.25rem",borderBottom:"1px solid rgba(255,255,255,0.06)",display:"flex",alignItems:"center",gap:"0.75rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:171",style:{position:"relative",flex:1,maxWidth:"300px"},children:[a.jsx(ft,{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:172",size:12,style:{position:"absolute",left:"0.6rem",top:"50%",transform:"translateY(-50%)",color:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),a.jsx("input",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:173",value:d,onChange:T=>u(T.target.value),placeholder:"Filter by address or aliasâ¦",style:{width:"100%",padding:"0.4rem 0.75rem 0.4rem 2rem",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"5px",color:"#fff",fontSize:"0.78rem",outline:"none",fontFamily:"inherit"}})]}),a.jsxs("span",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:177",style:{fontSize:"0.7rem",color:"rgba(255,255,255,0.3)",marginLeft:"auto"},children:[S.length," results"]})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:179",style:{overflowX:"auto"},children:a.jsxs("table",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:180",style:{width:"100%",borderCollapse:"collapse",fontSize:"0.78rem"},children:[a.jsx("thead",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:181",children:a.jsxs("tr",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:182",style:{borderBottom:"1px solid rgba(255,255,255,0.06)"},children:[a.jsx("th",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:183",style:{padding:"0.6rem 1rem",textAlign:"left",fontWeight:700,color:"rgba(255,255,255,0.35)",fontSize:"0.62rem",textTransform:"uppercase",letterSpacing:"0.07em",whiteSpace:"nowrap"},children:"#"}),a.jsx("th",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:184",style:{padding:"0.6rem 1rem",textAlign:"left",fontWeight:700,color:"rgba(255,255,255,0.35)",fontSize:"0.62rem",textTransform:"uppercase",letterSpacing:"0.07em",whiteSpace:"nowrap"},children:"Address"}),a.jsx(O,{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:185",label:"Balance (XTZ)",field:"balance"}),a.jsx(O,{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:186",label:"Staked",field:"staked"}),a.jsx("th",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:187",style:{padding:"0.6rem 1rem",textAlign:"left",fontWeight:700,color:"rgba(255,255,255,0.35)",fontSize:"0.62rem",textTransform:"uppercase",letterSpacing:"0.07em",whiteSpace:"nowrap"},children:"Delegation"}),a.jsx(O,{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:188",label:"Txs",field:"txs"}),a.jsx("th",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:189",style:{padding:"0.6rem 1rem",textAlign:"left",fontWeight:700,color:"rgba(255,255,255,0.35)",fontSize:"0.62rem",textTransform:"uppercase",letterSpacing:"0.07em",whiteSpace:"nowrap"},children:"Status"})]})}),a.jsx("tbody",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:192",children:S.map((T,C)=>a.jsxs("tr",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:194",style:{borderBottom:C<S.length-1?"1px solid rgba(255,255,255,0.04)":"none",background:T.found?"transparent":"rgba(239,68,68,0.04)"},children:[a.jsx("td",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:195",style:{padding:"0.6rem 1rem",color:"rgba(255,255,255,0.25)",fontSize:"0.65rem"},children:C+1}),a.jsx("td",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:196",style:{padding:"0.6rem 1rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:197",children:[T.alias&&a.jsx("div",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:198",style:{fontWeight:700,color:"#fff",fontSize:"0.82rem"},children:T.alias}),a.jsxs($,{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:199",href:`/tools/wallet?address=${T.address}`,style:{fontFamily:"monospace",fontSize:"0.7rem",color:"#2c7df7",textDecoration:"none"},children:[T.address.slice(0,14),"â¦"]})]})}),a.jsx("td",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:204",style:{padding:"0.6rem 1rem",fontWeight:700,color:T.found?"#fff":"rgba(255,255,255,0.2)"},children:T.found?`${ug(T.balance)} ê©`:"â"}),a.jsx("td",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:207",style:{padding:"0.6rem 1rem",color:T.stakedBalance>0?"#f97316":"rgba(255,255,255,0.2)"},children:T.stakedBalance>0?`${ug(T.stakedBalance)} ê©`:"â"}),a.jsx("td",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:210",style:{padding:"0.6rem 1rem",color:T.delegatedTo?"#22c55e":"rgba(255,255,255,0.2)",fontSize:"0.72rem",maxWidth:"140px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:T.delegatedTo||"â"}),a.jsx("td",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:213",style:{padding:"0.6rem 1rem",color:"rgba(255,255,255,0.5)"}
1131,children:T.found?T.numTransactions.toLocaleString():"â"}),a.jsx("td",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:216",style:{padding:"0.6rem 1rem"},children:T.found?a.jsx("span",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:218",style:{fontSize:"0.62rem",fontWeight:700,padding:"1px 6px",borderRadius:"8px",background:"rgba(34,197,94,0.15)",color:"#22c55e",border:"1px solid rgba(34,197,94,0.25)"},children:"Found"}):a.jsx("span",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:220",style:{fontSize:"0.62rem",fontWeight:700,padding:"1px 6px",borderRadius:"8px",background:"rgba(239,68,68,0.1)",color:"#ef4444",border:"1px solid rgba(239,68,68,0.2)"},children:"Not found"})})]},T.address))})]})})]})]}),!r.length&&!f&&a.jsxs("div",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:233",style:{textAlign:"center",padding:"4rem 2rem",color:"rgba(255,255,255,0.3)"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:234",style:{fontSize:"3rem",marginBottom:"1rem"},children:"ð"}),a.jsx("p",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:235",style:{fontSize:"0.9rem"},children:"Paste up to 100 Tezos addresses above and click Lookup All"}),a.jsx("p",{"data-loc":"client/src/pages/tools/BatchAddressLookupPage.tsx:236",style:{fontSize:"0.78rem",marginTop:"0.5rem",color:"rgba(255,255,255,0.2)"},children:"Useful for event organisers, DAOs, and airdrop distributors"})]})]})]})}function cB(e){return e>=1e6?`${(e/1e6).toFixed(2)}M ê©`:e>=1e3?`${(e/1e3).toFixed(2)}K ê©`:`${e.toFixed(4)} ê©`}function Yk(e){return e?Math.floor((new Date(e).getTime()-Date.now())/(1e3*60*60*24)):null}const zAe=[{label:"coinbase.tez",q:"coinbase.tez"},{label:"tezos.tez",q:"tezos.tez"}];function CAe(){Ie({title:"Tezos Name Service Lookup â .tez Domain Resolver | XTZ.News",description:"Resolve .tez domains to Tezos addresses, or find all .tez names owned by an address. Shows expiry dates and all domains by the same owner.",keywords:"Tezos domains, .tez domain lookup, TNS resolver, Tezos name service, tz1 address lookup",canonical:"https://xtz.news/tools/tns",jsonLd:ln({name:"Tezos Name Service Lookup",description:"Resolve .tez domains to Tezos addresses, or find all .tez names owned by an address. Shows expiry dates and all domains by the same owner.",url:"https://xtz.news/tools/tns"})});const[e,t]=E.useState(""),[r,n]=E.useState(""),{data:s,isLoading:i}=ee.tools.tnsLookup.useQuery({query:r},{enabled:!!r,staleTime:12e4}),o=d=>{const u=(d||e).trim();u&&(n(u),d||t(u))},l=d=>{navigator.clipboard.writeText(d),Ee.success("Copied!")};return a.jsxs("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:55",style:{background:"#000",minHeight:"100vh"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:57",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",borderBottom:"1px solid rgba(44,125,247,0.2)",padding:"2rem 0"},children:a.jsxs("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:58",className:"container",children:[a.jsx(zr,{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:59",items:[{label:"Tools",href:"/tools"},{label:"TNS Lookup"}]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:60",style:{display:"flex",alignItems:"center",gap:"0.75rem",marginBottom:"1rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:61",style:{width:"40px",height:"40px",background:"rgba(44,125,247,0.2)",border:"1px solid rgba(44,125,247,0.4)",borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"1.2rem"},children:"ð"}),a.jsxs("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:62",children:[a.jsx("h1",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:63",style:{fontSize:"1.6rem",fontWeight:900,color:"#fff",margin:0},children:"Tezos Name Service Lookup"}),a.jsx("p",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:64",style:{color:"rgba(255,255,255,0.45)",fontSize:"0.82rem",margin:0},children:"Resolve .tez domains to addresses, or find all .tez names owned by an address"})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:67",style:{display:"flex",gap:"0.5rem",flexWrap:"wrap"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:68",style:{position:"relative",flex:"1 1 400px"},children:[a.jsx(ft,{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:69",size:14,style:{position:"absolute",left:"0.875rem",top:"50%",transform:"translateY(-50%)",color:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),a.jsx("input",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:70",value:e,onCh
1131ange:d=>t(d.target.value),onKeyDown:d=>d.key==="Enter"&&o(),placeholder:"Enter a .tez domain or tz1/tz2/tz3 addressâ¦",style:{width:"100%",padding:"0.75rem 1rem 0.75rem 2.5rem",background:"rgba(255,255,255,0.07)",border:"1px solid rgba(44,125,247,0.3)",borderRadius:"8px",color:"#fff",fontSize:"0.9rem",outline:"none",fontFamily:"inherit"},onFocus:d=>d.currentTarget.style.borderColor="#2c7df7",onBlur:d=>d.currentTarget.style.borderColor="rgba(44,125,247,0.3)"})]}),a.jsx("button",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:76",onClick:()=>o(),style:{padding:"0.75rem 1.5rem",background:"#2c7df7",border:"none",borderRadius:"8px",color:"#fff",fontWeight:700,fontSize:"0.9rem",cursor:"pointer",fontFamily:"inherit"},children:"Lookup"})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:80",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginTop:"0.75rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:81",style:{fontSize:"0.7rem",color:"rgba(255,255,255,0.3)"},children:"Try:"}),zAe.map(d=>a.jsx("button",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:83",onClick:()=>{t(d.q),o(d.q)},style:{padding:"0.2rem 0.7rem",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"12px",color:"rgba(255,255,255,0.5)",fontSize:"0.7rem",fontWeight:600,cursor:"pointer"},children:d.label},d.q))]})]})}),a.jsxs("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:92",className:"container",style:{padding:"2rem 1.25rem 4rem"},children:[i&&a.jsxs("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:94",style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:95",className:"skeleton",style:{height:"120px",borderRadius:"10px"}}),a.jsx("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:96",className:"skeleton",style:{height:"200px",borderRadius:"10px"}})]}),!i&&s&&!s.found&&a.jsxs("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:101",style:{textAlign:"center",padding:"3rem",background:"#05152e",borderRadius:"10px",border:"1px solid rgba(255,255,255,0.07)"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:102",style:{fontSize:"2rem",marginBottom:"0.75rem"},children:"ð"}),a.jsx("h2",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:103",style:{color:"#fff",fontWeight:800,marginBottom:"0.5rem"},children:"Not Found"}),a.jsxs("p",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:104",style:{color:"rgba(255,255,255,0.4)",fontSize:"0.85rem"},children:[a.jsx("code",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:105",style:{background:"rgba(255,255,255,0.08)",padding:"2px 6px",borderRadius:"4px"},children:s.query})," â no .tez domain or address found."]})]}),!i&&s?.type==="domain"&&s.found&&a.jsxs("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:112",style:{display:"flex",flexDirection:"column",gap:"1.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:113",style:{background:"#05152e",border:"1px solid rgba(44,125,247,0.3)",borderRadius:"12px",padding:"1.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:114",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",flexWrap:"wrap",gap:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:115",children:[a.jsx("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:116",style:{fontSize:"1.8rem",fontWeight:900,color:"#2c7df7",marginBottom:"0.5rem"},children:s.name}),a.jsxs("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:117",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginBottom:"0.5rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:118",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.4)"},children:"Resolves to:"}),a.jsx("code",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:119",style:{fontSize:"0.78rem",color:"#fff",fontFamily:"monospace"},children:s.address}),a.jsx("button",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:120",onClick:()=>l(s.address),style:{background:"none",border:"none",cursor:"pointer",color:"rgba(255,255,255,0.3)",display:"flex"},children:a.jsx(an,{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:120",size:11})})]}),s.accountBalance!=null&&a.jsxs("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:123",style:{fontSize:"0.82rem",color:"rgba(255,255,255,0.5)"},children:["Balance: ",a.jsx("span",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:124",style:{color:"#fff",fontWeight:700},children:cB(s.accountBalance)})]})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:128",style:{textAlign:"right"},children:s.expiresAt&&(()=>{const d=Yk(s.expiresAt),u=d!==null&&d<0,g=d!==null&&d<30&&d>=0;return a.jsxs("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:134",children:[a.jsx("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:135",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.35)",textTransform:"uppercase",letterSpacing:"0.07em",marginBottom:"0.2rem"},children:u?"Expired":"Expires"}),a.jsx("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:138",style:{fontSize:"0.88rem",fontWeight:700,color:u?"#ef4444":g?"#f59e0b":"#22c55e"},children:new Date(s.expiresAt).toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"})}),d!==null&&!u&&a.jsxs("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:142",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.3)"},children:[d," days left"]})]})})()})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:150",style:{display:"flex",gap:"0.75rem",marginTop:"1rem",flexWrap:"wrap"},children:[a.jsx($,{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:151",href:`/tools/wallet?address=${s.address}`,style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",padding:"0.45rem 0.875rem",background:"rgba(44,125,247,0.1)",border:"1px solid rgba(44,125,247,0.25)",borderRadius:"6px",color:"#2c7df7",textDecoration:"none",fontSize:"0.75rem",fontWeight:700},children:"ð Inspect Wallet"}),a.jsx($,{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:155",href:`/explorer/address/${s.address}`,style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",padding:"0.45rem 0.875rem",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"6px",color:"rgba(255,255,255,0.6)",textDecoration:"none",fontSize:"0.75rem",fontWeight:700},children:"Explorer â"}),a.jsxs("a",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:159",href:`https://tezos.domains/name/${s.name}`,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",padding:"0.45rem 0.875rem",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"6px",color:"rgba(255,255,255,0.6)",textDecoration:"none",fontSize:"0.75rem",fontWeight:700},children:[a.jsx(ve,{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:161",size:11})," tezos.domains"]})]})]}),s.ownedDomains?.length>1&&a.jsxs("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:168",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"10px",overflow:"hidden"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:169",style:{padding:"0.875rem 1.25rem",borderBottom:"1px solid rgba(255,255,255,0.06)"},children:a.jsxs("span",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:170",style:{fontWeight:800,color:"#fff",fontSize:"0.88rem"},children:["Other domains by same owner (",s.ownedDomains.length,")"]})}),a.jsx("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:172",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(200px, 1fr))",gap:"0"},children:s.ownedDomains.map((d,u)=>{const g=Yk(d.expiresAtUtc);return a.jsxs("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:176",style:{padding:"0.75rem 1.25rem",borderBottom:"1px solid rgba(255,255,255,0.04)",borderRight:"1px solid rgba(255,255,255,0.04)"},children:[a.jsx("button",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:177",onClick:()=>{t(d.name),o(d.name)},style:{background:"none",border:"none",cursor:"pointer",color:"#2c7df7",fontWeight:700,fontSize:"0.82rem",padding:0,textAlign:"left"},children:d.name}),g!==null&&a.jsx("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:182",style:{fontSize:"0.6rem",color:g<30?"#f59e0b":"rgba(255,255,255,0.25)",marginTop:"0.15rem"},children:g<0?"Expired":`${g}d left`})]},d.name)})})]})]}),!i&&s?.type==="address"&&s.found&&a.jsxs("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:197",style:{display:"flex",flexDirection:"column",gap:"1.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:198",style:{background:"#05152e",border:"1px solid rgba(44,125,247,0.2)",borderRadius:"12px",padding:"1.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:199",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginBottom:"0.75rem"},children:[a.jsx("code",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:200",style:{fontSize:"0.82rem",color:"rgba(255,255,255,0.5)",fontFamily:"monospace"},children:s.address}),a.jsx("button",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:201",onClick:()=>l(s.address),style:{background:"none",border:"none",cursor:"pointer",color:"rgba(255,255,255,0.3)",display:"flex"},children:a.jsx(an,{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:201",size:11})})]}),s.accountAlias&&a.jsx("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:203",style:{fontSize:"1.1rem",fontWeight:800,color:"#fff",marginBottom:"0.5rem"},children:s.accountAlias}),s.accountBalance!=null&&a.jsxs("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:205",style:{fontSize:"0.82rem",color:"rgba(255,255,255,0.5)"},children:["Balance: ",a.jsx("span",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:206",style:{color:"#fff",fontWeight:700},children:cB(s.accountBalance)})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:209",style:{display:"flex",gap:"0.75rem",marginTop:"1rem",flexWrap:"wrap"},children:a.jsx($,{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:210",href:`/tools/wallet?address=${s.address}`,style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",padding:"0.45rem 0.875rem",background:"rgba(44,125,247,0.1)",border:"1px solid rgba(44,125,247,0.25)",borderRadius:"6px",color:"#2c7df7",textDecoration:"none",fontSize:"0.75rem",fontWeight:700},children:"ð Inspect Wallet"})})]}),s.domains?.length>0?a.jsxs("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:218",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"10px",overflow:"hidden"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:219",style:{padding:"0.875rem 1.25rem",borderBottom:"1px solid rgba(255,255,255,0.06)"},children:a.jsxs("span",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:220",style:{fontWeight:800,color:"#fff",fontSize:"0.88rem"},children:["ð .tez Domains (",s.domains.length,")"]})}),s.domains.map((d,u)=>{const g=Yk(d.expiresAtUtc);return a.jsxs("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:225",style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0.875rem 1.25rem",borderBottom:u<s.domains.length-1?"1px solid rgba(255,255,255,0.04)":"none",flexWrap:"wrap",gap:"0.5rem"},children:[a.jsx("button",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:226",onClick:()=>{t(d.name),o(d.name)},style:{background:"none",border:"none",cursor:"pointer",color:"#2c7df7",fontWeight:800,fontSize:"1rem",padding:0},children:d.name}),a.jsxs("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:230",style:{display:"flex",gap:"0.75rem",alignItems:"center"},children:[g!==null&&a.jsx("span",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:232",style:{fontSize:"0.7rem",color:g<0?"#ef4444":g<30?"#f59e0b":"#22c55e",fontWeight:600},children:g<0?"Expired":`${g}d left`}),a.jsx("a",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:236",href:`https://tezos.domains/name/${d.name}`,target:"_blank",rel:"noopener noreferrer",style:{color:"rgba(255,255,255,0.3)",display:"flex"},children:a.jsx(ve,{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:237",size:12})})]})]},d.name)})]}):a.jsx("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:245",style:{textAlign:"center",padding:"2rem",background:"#05152e",borderRadius:"10px",border:"1px solid rgba(255,255,255,0.07)",color:"rgba(255,255,255,0.4)",fontSize:"0.85rem"},children:"No .tez domains found for this address."})]}),!r&&!i&&a.jsxs("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:253",style:{textAlign:"center",padding:"4rem 2rem",color:"rgba(255,255,255,0.3)"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:254",style:{fontSize:"3rem",marginBottom:"1rem"},children:"ð"}),a.jsx("p",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:255",style:{fontSize:"0.9rem"},children:"Enter a .tez domain or Tezos address above"}),a.jsx("p",{"data-loc":"client/src/pages/tools/TnsLookupPage.tsx:256",style:{fontSize:"0.78rem",marginTop:"0.5rem",color:"rgba(255,255,255,0.2)"},children:"Powered by the Tezos Domains API"})]})]})]})}function EAe(e){return e>=1e6?`${(e/1e6).toFixed(2)}M ê©`:e>=1e3?`${(e/1e3).toFixed(1)}K ê©`:`${e.toFixed(2)} ê©`}function OAe(e){const t=Math.floor((Date.now()-new Date(e).getTime())/1e3);return t<60?`${t}s ago`:t<3600?`${Math.floor(t/60)}m ago`:`${Math.floor(t/3600)}h ago`}const Ex={transaction:"#2c7df7",delegation:"#22c55e",origination:"#8b5cf6",transfer:"#f97316"},dB={transaction:"âï¸",delegation:"ð",origination:"ðï¸",transfer:"ðª"};function MAe(){Ie({title:"Tezos Live Operations Monitor â Real-Time On-Chain Activity | XTZ.News",description:"Real-time feed of Tezos on-chain operations: transactions, delegations, originations, and token transfers. Filter by type and minimum XTZ amount.",keywords:"Tezos live transactions, XTZ on-chain activity, Tezos blockchain monitor, Tezos operations feed",canonical:"https://xtz.news/tools/live-ops",jsonLd:ln({name:"Tezos Live Operations Monitor",description:"Real-time feed of Tezos on-chain operations: transactions, delegations, originations, and token transfers. Filter by type and minimum XTZ amount.",url:"https://xtz.news/tools/live-ops"})});const[e,t]=E.useState(["transaction","delegation"]),[r,n]=E.useState(0),[s,i]=E.useState(!0),[o,l]=E.useState(8),[d,u]=E.useState(new Set),g=E.useRef(new Set),{data:f=[],isLoading:m,refetch:y}=ee.tools.liveOps.useQuery({types:e,minAmount:r,limit:40},{staleTime:5e3});E.useEffect(()=>{if(!s)return;const b=setInterval(()=>{y(),l(8)},8e3);return()=>clearInterval(b)}
1131,[s,y,e,r]),E.useEffect(()=>{if(!s)return;const b=setInterval(()=>l(v=>v<=1?8:v-1),1e3);return()=>clearInterval(b)},[s]),E.useEffect(()=>{if(!f.length)return;const b=new Set(f.map(j=>j.hash||j.timestamp)),v=new Set;b.forEach(j=>{const k=j;!g.current.has(k)&&g.current.size>0&&v.add(k)}),v.size>0&&(u(v),setTimeout(()=>u(new Set),2500)),g.current=b},[f]);const S=b=>{t(v=>v.includes(b)?v.filter(j=>j!==b):[...v,b])};return a.jsxs("div",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:93",style:{background:"#000",minHeight:"100vh"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:95",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",borderBottom:"1px solid rgba(44,125,247,0.2)",padding:"2rem 0"},children:a.jsxs("div",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:96",className:"container",children:[a.jsx(zr,{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:97",items:[{label:"Tools",href:"/tools"},{label:"Live Operations"}]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:98",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",flexWrap:"wrap",gap:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:99",style:{display:"flex",alignItems:"center",gap:"0.75rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:100",style:{width:"40px",height:"40px",background:"rgba(34,197,94,0.2)",border:"1px solid rgba(34,197,94,0.4)",borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"1.2rem"},children:"â¡"}),a.jsxs("div",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:101",children:[a.jsx("h1",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:102",style:{fontSize:"1.6rem",fontWeight:900,color:"#fff",margin:0},children:"Live Operations Monitor"}),a.jsx("p",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:103",style:{color:"rgba(255,255,255,0.45)",fontSize:"0.82rem",margin:0},children:"Real-time feed of Tezos on-chain operations â transactions, delegations, originations, token transfers"})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:106",style:{display:"flex",alignItems:"center",gap:"0.75rem",flexWrap:"wrap"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:107",style:{display:"flex",alignItems:"center",gap:"0.4rem",padding:"0.4rem 0.875rem",background:s?"rgba(34,197,94,0.1)":"rgba(255,255,255,0.06)",border:`1px solid ${s?"rgba(34,197,94,0.3)":"rgba(255,255,255,0.1)"}`,borderRadius:"20px"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:108",style:{width:"6px",height:"6px",borderRadius:"50%",background:s?"#22c55e":"rgba(255,255,255,0.3)",animation:s?"pulse 2s infinite":"none"}}),a.jsx("span",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:109",style:{fontSize:"0.72rem",fontWeight:700,color:s?"#22c55e":"rgba(255,255,255,0.4)"},children:s?`LIVE · ${o}s`:"PAUSED"})]}),a.jsx("button",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:113",onClick:()=>i(b=>!b),style:{padding:"0.4rem 0.875rem",background:"rgba(255,255,255,0.07)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"6px",color:"rgba(255,255,255,0.6)",fontSize:"0.72rem",fontWeight:700,cursor:"pointer"},children:s?"⸠Pause":"â¶ Resume"}),a.jsxs("button",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:117",onClick:()=>{y(),l(8)},style:{display:"flex",alignItems:"center",gap:"0.35rem",padding:"0.4rem 0.875rem",background:"rgba(44,125,247,0.1)",border:"1px solid rgba(44,125,247,0.25)",borderRadius:"6px",color:"#2c7df7",fontSize:"0.72rem",fontWeight:700,cursor:"pointer"},children:[a.jsx(Fd,{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:119",size:12})," Refresh"]})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:125",style:{display:"flex",alignItems:"center",gap:"0.75rem",marginTop:"1rem",flexWrap:"wrap"},children:[a.jsx("span",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:126",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.4)",fontWeight:700},children:"Show:"}),["transaction","delegation","origination","transfer"].map(b=>a.jsxs("button",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:128",onClick:()=>S(b),style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",padding:"0.3rem 0.875rem",background:e.includes(b)?`${Ex[b]}22`:"rgba(255,255,255,0.05)",border:`1px solid ${e.includes(b)?Ex[b]+"55":"rgba(255,255,255,0.1)"}`,borderRadius:"20px",color:e.includes(b)?Ex[b]:"rgba(255,255,255,0.4)",fontSize:"0.72rem",fontWeight:700,cursor:"pointer"},children:[dB[b]," ",b.charAt(0).toUpperCase()+b.slice(1),"s"]},b)),a.jsxs("div",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:133",style:{display:"flex",alignItems:"center",gap:"0.4rem",marginLeft:"0.5rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:134",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.4)"},children:"Min XTZ:"}),a.jsx("select",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:135",value:r,onChange:b=>n(Number(b.target.value)),style:{padding:"0.25rem 0.5rem",background:"rgba(255,255,255,0.07)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"4px",color:"#fff",fontSize:"0.72rem",cursor:"pointer"},children:[0,100,1e3,1e4,1e5].map(b=>a.jsx("option",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:138",value:b,style:{background:"#05152e"}
1131,children:b===0?"Any":`${b.toLocaleString()} ê©`},b))})]})]})]})}),a.jsxs("div",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:146",className:"container",style:{padding:"1.5rem 1.25rem 4rem"},children:[m&&a.jsx("div",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:148",style:{display:"flex",flexDirection:"column",gap:"0.5rem"},children:Array.from({length:8}).map((b,v)=>a.jsx("div",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:149",className:"skeleton",style:{height:"56px",borderRadius:"6px"}},v))}),!m&&f.length===0&&a.jsxs("div",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:154",style:{textAlign:"center",padding:"3rem",background:"#05152e",borderRadius:"10px",border:"1px solid rgba(255,255,255,0.07)",color:"rgba(255,255,255,0.3)"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:155",style:{fontSize:"2rem",marginBottom:"0.5rem"},children:"â¡"}),a.jsx("p",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:156",children:"No operations found for the selected filters. Try enabling more operation types."})]}),!m&&f.length>0&&a.jsx("div",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:161",style:{display:"flex",flexDirection:"column",gap:"0.4rem"},children:f.map((b,v)=>{const j=d.has(b.hash||b.timestamp),k=Ex[b.type]||"#2c7df7";return a.jsxs("div",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:166",style:{display:"flex",alignItems:"center",gap:"0.875rem",padding:"0.75rem 1.25rem",background:j?`${k}11`:"#05152e",border:`1px solid ${j?k+"44":"rgba(255,255,255,0.06)"}`,borderRadius:"7px",transition:"background 0.5s, border-color 0.5s",flexWrap:"wrap"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:168",style:{display:"flex",alignItems:"center",gap:"0.3rem",flexShrink:0},children:[a.jsx("span",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:169",style:{fontSize:"0.9rem"},children:dB[b.type]}),a.jsx("span",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:170",style:{fontSize:"0.6rem",fontWeight:800,padding:"1px 6px",borderRadius:"8px",background:`${k}22`,color:k,border:`1px solid ${k}44`,textTransform:"uppercase",letterSpacing:"0.05em",whiteSpace:"nowrap"},children:b.type})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:176",style:{flex:1,minWidth:"200px",display:"flex",alignItems:"center",gap:"0.4rem",flexWrap:"wrap"},children:[b.senderAddress?a.jsx($,{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:178",href:`/explorer/address/${b.senderAddress}`,style:{fontSize:"0.78rem",fontWeight:700,color:"#2c7df7",textDecoration:"none",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"150px"},children:b.sender||b.senderAddress.slice(0,12)+"â¦"}):a.jsx("span",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:181",style:{fontSize:"0.78rem",color:"rgba(255,255,255,0.3)"},children:"â"}),a.jsx(tu,{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:182",size:11,style:{color:"rgba(255,255,255,0.25)",flexShrink:0}}),b.targetAddress?a.jsx($,{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:184",href:`/explorer/address/${b.targetAddress}`,style:{fontSize:"0.78rem",fontWeight:700,color:"#5a9fff",textDecoration:"none",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"150px"},children:b.target||b.targetAddress.slice(0,12)+"â¦"}):a.jsx("span",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:187",style:{fontSize:"0.78rem",color:"rgba(255,255,255,0.4)"},children:b.target||"â"})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:191",style:{flexShrink:0,textAlign:"right"},children:b.type==="transfer"&&b.tokenName?a.jsxs("div",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:193",style:{fontSize:"0.78rem",fontWeight:700,color:"#f97316"},children:[b.tokenAmount," ",b.tokenName.slice(0,12)]}):b.amount>0?a.jsx("div",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:197",style:{fontSize:"0.82rem",fontWeight:800,color:k},children:EAe(b.amount)}):null}),a.jsxs("div",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:202",style:{display:"flex",alignItems:"center",gap:"0.5rem",flexShrink:0},children:[a.jsx("span",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:203",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.25)"},children:OAe(b.timestamp)}),b.hash&&a.jsx("a",{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:205",href:`https://tzkt.io/${b.hash}`,target:"_blank",rel:"noopener noreferrer",style:{color:"rgba(255,255,255,0.25)",display:"flex"},children:a.jsx(ve,{"data-loc":"client/src/pages/tools/LiveOpsMonitorPage.tsx:206",size:11})})]})]},`${b.hash}-${v}`)})})]})]})}function Zk(e){return e>=1e6?`${(e/1e6).toFixed(2)}M ê©`:e>=1e3?`${(e/1e3).toFixed(2)}K ê©`:`${e.toFixed(4)} ê©`}function Ox(e){if(!e)return"â";const t=Math.floor((Date.now()-new Date(e).getTime())/1e3);return t<60?`${t}s ago`:t<3600?`${Math.floor(t/60)}m ago`:t<86400?`${Math.floor(t/3600)}h ago`:new Date(e).toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"})}const NAe=[{label:"QUIPU Token",address:"KT193D4vozYnhGJQVtw7CoxxqphqUEEwK6Vb"},{label:"QuipuSwap DEX",address:"KT1X3zxdTzPB9DgVzA3ad6dgZe9JEamoaeRy"},{label:"Tezos Domains",address:"KT1GBzLqjsp13K9JcKm65YZWTJsuuWMt4k7k"},{label:"kUSD",address:"KT1K9gCRgaLRFKTErYt1wVxA3Frb9FjasjTV"}];function Z5({data:e,depth:t=0}){const[r,n]=E.useState(t>1);if(e==null)return a.jsx("span",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:32",style:{color:"rgba(255,255,255,0.3)"},children:"null"});if(typeof e=="boolean")return a.jsx("span",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:33",style:{color:"#f97316"},children:String(e)});if(typeof e=="number")return a.jsx("span",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:34",style:{color:"#22c55e"},children:e});if(typeof e=="string")return e.startsWith("tz")||e.startsWith("KT")?a.jsx($,{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:38",href:`/explorer/address/${e}`,style:{color:"#2c7df7",textDecoration:"none",fontFamily:"monospace",fontSize:"0.78rem"},children:e.length>20?`${e.slice(0,10)}â¦${e.slice(-6)}`:e}):a.jsxs("span",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:42",style:{color:"#f59e0b"},children:['"',e.length>60?e.slice(0,60)+"â¦":e,'"']});if(Array.isArray(e))return e.length===0?a.jsx("span",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:45",style:{color:"rgba(255,255,255,0.3)"},children:"[]"}):a.jsxs("span",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:47",children:[a.jsx("button",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:48",onClick:()=>n(s=>!s),style:{background:"none",border:"none",cursor:"pointer",color:"rgba(255,255,255,0.4)",fontSize:"0.72rem",padding:"0 2px"},children:r?"â¶":"â¼"}),r?a.jsxs("span",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:51",style:{color:"rgba(255,255,255,0.3)",fontSize:"0.72rem"},children:["[",e.length," items]"]}):a.jsx("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:52",style:{paddingLeft:"1rem"},children:e.map((s,i)=>a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:54",style:{marginBottom:"2px"},children:[a.jsxs("span",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:55",style:{color:"rgba(255,255,255,0.2)",fontSize:"0.65rem"},children:[i,": "]}),a.jsx(Z5,{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:56",data:s,depth:t+1})]},i))})]});if(typeof e=="object"){const s=Object.keys(e);return s.length===0?a.jsx("span",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:66",style:{color:"rgba(255,255,255,0.3)"},children:"{}"}):a.jsxs("span",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:68",children:[a.jsx("button",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:69",onClick:()=>n(i=>!i),style:{background:"none",border:"none",cursor:"pointer",color:"rgba(255,255,255,0.4)",fontSize:"0.72rem",padding:"0 2px"},children:r?"â¶":"â¼"}),r?a.jsxs("span",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:72",style:{color:"rgba(255,255,255,0.3)",fontSize:"0.72rem"},children:["{","â¦","}"," (",s.length," keys)"]}):a.jsx("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:73",style:{paddingLeft:"1rem"},children:s.map(i=>a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:75",style:{marginBottom:"2px"},children:[a.jsx("span",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:76",style:{color:"#8b5cf6",fontSize:"0.78rem"},children:i}),a.jsx("span",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:77",style:{color:"rgba(255,255,255,0.3)",fontSize:"0.78rem"},children:": "}),a.jsx(Z5,{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:78",data:e[i],depth:t+1})]},i))})]})}return a.jsx("span",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:86",style:{color:"rgba(255,255,255,0.5)"},children:String(e)})}function RAe(){Ie({title:"Tezos Smart Contract Inspector â Storage & Entrypoints | XTZ.News",description:"Inspect any Tezos KT1 smart contract: view live storage, entrypoints with parameter schemas, recent callers, and similar contracts.",keywords:"Tezos smart contract inspector, KT1 contract viewer, Tezos contract storage, Tezos entrypoints, Tezos DeFi contracts",canonical:"https://xtz.news/tools/contract",jsonLd:ln({name:"Tezos Smart Contract Inspector",description:"Inspect any Tezos KT1 smart contract: view live storage, entrypoints with parameter schemas, recent callers, and similar contracts.",url:"https://xtz.news/tools/contract"})});const[e,t]=E.useState(""),[r,n]=E.useState(""),[s,i]=E.useState("overview"),{data:o,isLoading:l,error:d}=ee.tools.contractInspect.useQuery({address:r},{enabled:!!r,staleTime:6e4}),u=m=>{const y=(m||e).trim();
1131y&&(n(y),i("overview"),m||t(y))},g=m=>{navigator.clipboard.writeText(m),Ee.success("Copied!")},f=o?[{id:"overview",label:"Overview"},{id:"storage",label:"Storage"},{id:"entrypoints",label:`Entrypoints (${o.entrypoints.length})`},{id:"calls",label:`Recent Calls (${o.recentCalls.length})`},...o.similarContracts.length>0?[{id:"similar",label:`Similar (${o.similarContracts.length})`}]:[]]:[];return a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:129",style:{background:"#000",minHeight:"100vh"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:131",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",borderBottom:"1px solid rgba(44,125,247,0.2)",padding:"2rem 0"},children:a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:132",className:"container",children:[a.jsx(zr,{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:133",items:[{label:"Tools",href:"/tools"},{label:"Smart Contract Inspector"}]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:134",style:{display:"flex",alignItems:"center",gap:"0.75rem",marginBottom:"1rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:135",style:{width:"40px",height:"40px",background:"rgba(139,92,246,0.2)",border:"1px solid rgba(139,92,246,0.4)",borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"1.2rem"},children:"ð"}),a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:136",children:[a.jsx("h1",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:137",style:{fontSize:"1.6rem",fontWeight:900,color:"#fff",margin:0},children:"Smart Contract Inspector"}),a.jsx("p",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:138",style:{color:"rgba(255,255,255,0.45)",fontSize:"0.82rem",margin:0},children:"Inspect any Tezos smart contract â storage, entrypoints, recent calls, and similar contracts"})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:141",style:{display:"flex",gap:"0.5rem",flexWrap:"wrap"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:142",style:{position:"relative",flex:"1 1 400px"},children:[a.jsx(ft,{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:143",size:14,style:{position:"absolute",left:"0.875rem",top:"50%",transform:"translateY(-50%)",color:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),a.jsx("input",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:144",value:e,onChange:m=>t(m.target.value),onKeyDown:m=>m.key==="Enter"&&u(),placeholder:"Enter KT1 contract addressâ¦",style:{width:"100%",padding:"0.75rem 1rem 0.75rem 2.5rem",background:"rgba(255,255,255,0.07)",border:"1px solid rgba(44,125,247,0.3)",borderRadius:"8px",color:"#fff",fontSize:"0.9rem",outline:"none",fontFamily:"monospace"},onFocus:m=>m.currentTarget.style.borderColor="#2c7df7",onBlur:m=>m.currentTarget.style.borderColor="rgba(44,125,247,0.3)"})]}),a.jsx("button",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:150",onClick:()=>u(),style:{padding:"0.75rem 1.5rem",background:"#8b5cf6",border:"none",borderRadius:"8px",color:"#fff",fontWeight:700,fontSize:"0.9rem",cursor:"pointer",fontFamily:"inherit"},children:"Inspect"})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:154",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginTop:"0.75rem",flexWrap:"wrap"},children:[a.jsx("span",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:155",style:{fontSize:"0.7rem",color:"rgba(255,255,255,0.3)"},children:"Try:"}),NAe.map(m=>a.jsx("button",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:157",onClick:()=>{t(m.address),u(m.address)},style:{padding:"0.2rem 0.7rem",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"12px",color:"rgba(255,255,255,0.5)",fontSize:"0.7rem",fontWeight:600,cursor:"pointer"},children:m.label},m.address))]})]})}),a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:166",className:"container",style:{padding:"2rem 1.25rem 4rem"},children:[l&&a.jsx("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:168",style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[200,300,150].map((m,y)=>a.jsx("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:169",className:"skeleton",style:{height:"80px",borderRadius:"8px"}},y))}),!l&&r&&(o===null||d)&&a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:174",style:{textAlign:"center",padding:"3rem",background:"#05152e",borderRadius:"10px",border:"1px solid rgba(239,68,68,0.2)"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:175",style:{fontSize:"2rem",marginBottom:"0.75rem"},children:"ð"}),a.jsx("h2",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:176",style:{color:"#fff",fontWeight:800,marginBottom:"0.5rem"},children:"Contract Not Found"}),a.jsxs("p",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:177",style:{color:"rgba(255,255,255,0.4)",fontSize:"0.85rem"},children:[a.jsx("code",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:178",style:{background:"rgba(255,255,255,0.08)",padding:"2px 6px",borderRadius:"4px"},children:r})," is not a smart contract or doesn't exist."]})]}),!l&&o&&a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:184",style:{display:"flex",flexDirection:"column",gap:"1.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:186",style:{background:"#05152e",border:"1px solid rgba(139,92,246,0.3)",borderRadius:"12px",padding:"1.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:187",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",flexWrap:"wrap",gap:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:188",children:[o.alias&&a.jsx("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:189",style:{fontSize:"1.3rem",fontWeight:900,color:"#fff",marginBottom:"0.25rem"},children:o.alias}),a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:190",style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[a.jsx("code",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:191",style:{fontSize:"0.78rem",color:"rgba(255,255,255,0.45)",fontFamily:"monospace"},children:o.address}),a.jsx("button",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:192",onClick:()=>g(o.address),style:{background:"none",border:"none",cursor:"pointer",color:"rgba(255,255,255,0.3)",display:"flex"},children:a.jsx(an,{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:192",size:11})}),a.jsx("a",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:193",href:`https://tzkt.io/${o.address}`,target:"_blank",rel:"noopener noreferrer",style:{color:"rgba(255,255,255,0.3)",display:"flex"},children:a.jsx(ve,{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:193",size:11})})]}),o.creator&&a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:196",style:{fontSize:"0.75rem",color:"rgba(255,255,255,0.4)",marginTop:"0.35rem"},children:["Created by: ",a.jsx($,{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:197",href:`/explorer/address/${o.creatorAddress}`,style:{color:"#2c7df7",textDecoration:"none",fontWeight:600},children:o.creator})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:201",style:{textAlign:"right"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:202",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.35)",textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:"0.25rem"},children:"Balance"}),a.jsx("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:203",style:{fontSize:"1.5rem",fontWeight:900,color:"#fff"},children:Zk(o.balance)})]})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:208",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(140px, 1fr))",gap:"0.75rem",marginTop:"1.25rem",paddingTop:"1.25rem",borderTop:"1px solid rgba(255,255,255,0.07)"},children:[{label:"Total Calls",value:o.numTransactions.toLocaleStr
1131ing(),icon:"ð"},{label:"Entrypoints",value:o.entrypoints.length.toString(),icon:"ð"},{label:"First Active",value:Ox(o.firstActivity),icon:"ð
"},{label:"Last Active",value:Ox(o.lastActivity),icon:"â±ï¸"},{label:"Type Hash",value:o.typeHash?.toString()||"â",icon:"#"}].map(m=>a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:216",style:{background:"rgba(255,255,255,0.03)",borderRadius:"8px",padding:"0.75rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:217",style:{fontSize:"0.6rem",color:"rgba(255,255,255,0.35)",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.07em",marginBottom:"0.3rem"},children:[m.icon," ",m.label]}),a.jsx("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:218",style:{fontSize:"0.85rem",fontWeight:700,color:"#fff"},children:m.value})]},m.label))})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:225",style:{display:"flex",gap:"0.25rem",borderBottom:"1px solid rgba(255,255,255,0.07)",paddingBottom:"0"},children:f.map(m=>a.jsx("button",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:227",onClick:()=>i(m.id),style:{padding:"0.6rem 1rem",background:"none",border:"none",borderBottom:`2px solid ${s===m.id?"#8b5cf6":"transparent"}`,color:s===m.id?"#8b5cf6":"rgba(255,255,255,0.4)",fontWeight:700,fontSize:"0.78rem",cursor:"pointer",transition:"all 0.15s",whiteSpace:"nowrap"},children:m.label},m.id))}),s==="overview"&&a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:236",style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"1.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:238",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"10px",overflow:"hidden"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:239",style:{padding:"0.875rem 1.25rem",borderBottom:"1px solid rgba(255,255,255,0.06)",display:"flex",alignItems:"center",gap:"0.5rem"},children:[a.jsx(ko,{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:240",size:13,style:{color:"#8b5cf6"}}),a.jsx("span",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:241",style:{fontWeight:800,color:"#fff",fontSize:"0.85rem"},children:"Entrypoints"})]}),o.entrypoints.slice(0,8).map((m,y)=>a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:244",style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0.6rem 1.25rem",borderBottom:y<Math.min(o.entrypoints.length,8)-1?"1px solid rgba(255,255,255,0.04)":"none"},children:[a.jsx("code",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:245",style:{fontSize:"0.8rem",color:"#8b5cf6",fontFamily:"monospace",fontWeight:700},children:m.name}),m.callCount>0&&a.jsxs("span",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:247",style:{fontSize:"0.65rem",fontWeight:700,padding:"1px 6px",borderRadius:"8px",background:"rgba(139,92,246,0.15)",color:"#8b5cf6"},children:[m.callCount," recent"]})]},m.name))]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:256",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"10px",overflow:"hidden"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:257",style:{padding:"0.875rem 1.25rem",borderBottom:"1px solid rgba(255,255,255,0.06)",display:"flex",alignItems:"center",gap:"0.5rem"},children:[a.jsx(FW,{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:258",size:13,style:{color:"#2c7df7"}}),a.jsx("span",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:259",style:{fontWeight:800,color:"#fff",fontSize:"0.85rem"},children:"Recent Callers"})]}),o.recentCalls.slice(0,8).map((m,y)=>a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:262",style:{display:"flex",alignItems:"center",gap:"0.75rem",padding:"0.6rem 1.25rem",borderBottom:y<7?"1px solid rgba(255,255,255,0.04)":"none"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:263",style:{flex:1,minWidth:0},children:[a.jsx($,{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:264",href:`/explorer/address/${m.senderAddress}`,style:{fontSize:"0.78rem",fontWeight:700,color:"#2c7df7",textDecoration:"none",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"block"},children:m.sender||m.senderAddress.slice(0,14)+"â¦"}),a.jsx("code",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:267",style:{fontSize:"0.62rem",color:"#8b5cf6"},children:m.entrypoint})]}),a.jsx("span",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:269",style:{fontSize:"0.62rem",color:"rgba(255,255,255,0.25)",flexShrink:0},children:Ox(m.timestamp)})]},y))]})]}),s==="storage"&&a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:278",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"10px",overflow:"hidden"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:279",style:{padding:"0.875rem 1.25rem",borderBottom:"1px solid rgba(255,255,255,0.06)",display:"flex",alignItems:"center",gap:"0.5rem"},children:[a.jsx(HW,{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:280",size:13,style:{color:"#f97316"}}
1131),a.jsx("span",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:281",style:{fontWeight:800,color:"#fff",fontSize:"0.85rem"},children:"Current Storage"}),a.jsx("span",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:282",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.3)",marginLeft:"auto"},children:"Click â¶/â¼ to expand/collapse"})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:284",style:{padding:"1.25rem",fontFamily:"monospace",fontSize:"0.78rem",lineHeight:1.7,overflowX:"auto"},children:o.storage?a.jsx(Z5,{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:285",data:o.storage,depth:0}):a.jsx("span",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:285",style:{color:"rgba(255,255,255,0.3)"},children:"No storage data available"})})]}),s==="entrypoints"&&a.jsx("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:292",style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:o.entrypoints.map(m=>a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:294",style:{background:"#05152e",border:"1px solid rgba(139,92,246,0.2)",borderRadius:"10px",overflow:"hidden"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:295",style:{padding:"0.875rem 1.25rem",borderBottom:m.parameterSchema?"1px solid rgba(255,255,255,0.06)":"none",display:"flex",alignItems:"center",gap:"0.75rem"},children:[a.jsx("code",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:296",style:{fontSize:"0.9rem",fontWeight:800,color:"#8b5cf6",fontFamily:"monospace"},children:m.name}),m.callCount>0&&a.jsxs("span",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:298",style:{fontSize:"0.65rem",fontWeight:700,padding:"2px 7px",borderRadius:"8px",background:"rgba(139,92,246,0.15)",color:"#8b5cf6",border:"1px solid rgba(139,92,246,0.25)"},children:[m.callCount," recent calls"]})]}),m.parameterSchema&&a.jsx("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:304",style:{padding:"0.875rem 1.25rem",fontFamily:"monospace",fontSize:"0.75rem",lineHeight:1.6,overflowX:"auto"},children:a.jsx(Z5,{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:305",data:m.parameterSchema,depth:0})})]},m.name))}),s==="calls"&&a.jsx("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:315",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"10px",overflow:"hidden"},children:a.jsx("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:316",style:{overflowX:"auto"},children:a.jsxs("table",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:317",style:{width:"100%",borderCollapse:"collapse",fontSize:"0.78rem"},children:[a.jsx("thead",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:318",children:a.jsx("tr",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:319",style:{borderBottom:"1px solid rgba(255,255,255,0.06)"},children:["Time","Caller","Entrypoint","Amount","Hash"].map(m=>a.jsx("th",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:321",style:{padding:"0.6rem 1rem",textAlign:"left",fontWeight:700,color:"rgba(255,255,255,0.35)",fontSize:"0.62rem",textTransform:"uppercase",letterSpacing:"0.07em",whiteSpace:"nowrap"},children:m},m))})}),a.jsx("tbody",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:325",children:o.recentCalls.map((m,y)=>a.jsxs("tr",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:327",style:{borderBottom:y<o.recentCalls.length-1?"1px solid rgba(255,255,255,0.04)":"none"},children:[a.jsx("td",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:328",style:{padding:"0.6rem 1rem",color:"rgba(255,255,255,0.4)",whiteSpace:"nowrap"},children:Ox(m.timestamp)}),a.jsx("td",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:329",style:{padding:"0.6rem 1rem"},children:a.jsx($,{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:330",href:`/explorer/address/${m.senderAddress}`,style:{color:"#2c7df7",textDecoration:"none",fontWeight:600,fontSize:"0.75rem"},children:m.sender||m.senderAddress.slice(0,12)+"â¦"})}),a.jsx("td",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:334",style:{padding:"0.6rem 1rem"},children:a.jsx("code",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:335",style:{fontSize:"0.75rem",color:"#8b5cf6",fontFamily:"monospace"},children:m.entrypoint})}),a.jsx("td",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:337",style:{padding:"0.6rem 1rem",color:m.amount>0?"#f97316":"rgba(255,255,255,0.2)"},children:m.amount>0?Zk(m.amount):"â"}),a.jsx("td",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:340",style:{padding:"0.6rem 1rem"},children:a.jsxs("a",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:341",href:`https://tzkt.io/${m.hash}`,target:"_blank",rel:"noopener noreferrer",style:{color:"rgba(255,255,255,0.3)",display:"inline-flex",alignItems:"center",gap:"0.2rem",fontSize:"0.7rem"},children:[m.hash.slice(0,10),"⦠",a.jsx(ve,{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:342",size:9})]})})]},y))})]})})}),s==="similar"&&o.similarContracts.length>0&&a.jsx("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:355",style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:o.similarContracts.map(m=>a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:357",style:{display:"flex",alignItems:"center",gap:"1rem",padding:"1rem 1.25rem",background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"8px",flexWrap:"wrap"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:358",style:{flex:1,minWidth:0},children:[m.alias&&a.jsx("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:359",style:{fontWeight:700,color:"#fff",marginBottom:"0.2rem"},children:m.alias}),a.jsx("button",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:360",onClick:()=>{t(m.address),u(m.address)},style:{background:"none",border:"none",cursor:"pointer",color:"#2c7df7",fontFamily:"monospace",fontSize:"0.75rem",padding:0,textAlign:"left"},children:m.address})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:365",style:{display:"flex",gap:"1rem",flexShrink:0},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:366",style:{textAlign:"right"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:367",style:{fontSize:"0.6rem",color:"rgba(255,255,255,0.3)",textTransform:"uppercase"},children:"Balance"}),a.jsx("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:368",style:{fontWeight:700,color:"#fff",fontSize:"0.85rem"},children:Zk(m.balance)})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:370",style:{textAlign:"right"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:371",style:{fontSize:"0.6rem",color:"rgba(255,255,255,0.3)",textTransform:"uppercase"},children:"Calls"}),a.jsx("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:372",style:{fontWeight:700,color:"#2c7df7",fontSize:"0.85rem"}
1131,children:m.numTransactions.toLocaleString()})]})]})]},m.address))})]}),!r&&!l&&a.jsxs("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:383",style:{textAlign:"center",padding:"4rem 2rem",color:"rgba(255,255,255,0.3)"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:384",style:{fontSize:"3rem",marginBottom:"1rem"},children:"ð"}),a.jsx("p",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:385",style:{fontSize:"0.9rem"},children:"Enter a KT1 contract address above to inspect it"}),a.jsx("p",{"data-loc":"client/src/pages/tools/SmartContractInspectorPage.tsx:386",style:{fontSize:"0.78rem",marginTop:"0.5rem",color:"rgba(255,255,255,0.2)"},children:"View storage, entrypoints, recent calls, and similar contracts"})]})]})]})}function lo(e){return e>=1e9?`$${(e/1e9).toFixed(2)}B`:e>=1e6?`$${(e/1e6).toFixed(2)}M`:e>=1e3?`$${(e/1e3).toFixed(1)}K`:`$${e.toFixed(2)}`}const uB={Dexs:"#2c7df7",Synthetics:"#8b5cf6",CDP:"#f97316",Lending:"#22c55e",Yield:"#f59e0b",Liquid_Staking:"#06b6d4","Liquid Staking":"#06b6d4",Other:"rgba(255,255,255,0.3)"};function wl(e){return uB[e]||uB.Other}function DAe(){Ie({title:"Tezos DeFi Dashboard â Live TVL & Protocol Rankings | XTZ.News",description:"Live Tezos DeFi overview: chain TVL, 90-day chart, protocol rankings with 24h/7d changes, and category breakdown. Powered by DeFiLlama.",keywords:"Tezos DeFi, Tezos TVL, Youves, QuipuSwap, Kolibri, Tezos DeFi protocols, XTZ DeFi dashboard",canonical:"https://xtz.news/tools/defi",jsonLd:[ln({name:"Tezos DeFi Dashboard",description:"Live Tezos DeFi overview: chain TVL, 90-day chart, protocol rankings with 24h/7d changes, and category breakdown. Powered by DeFiLlama.",url:"https://xtz.news/tools/defi"}),Pa([{question:"What is Tezos DeFi TVL?",answer:"Tezos DeFi TVL (Total Value Locked) is the total value of cryptocurrency locked in Tezos decentralised finance protocols. As of 2025, the Tezos chain TVL is approximately $27 million USD. The XTZ.News DeFi Dashboard shows live TVL data updated every 5 minutes, sourced from DeFiLlama."},{question:"What are the top Tezos DeFi protocols?",answer:"The top Tezos DeFi protocols by TVL include Youves (synthetic assets and stablecoins), Sirius DEX (decentralised exchange), Kolibri (CDP and kUSD stablecoin), QuipuSwap (AMM DEX), and ctez (synthetic tez). The XTZ.News DeFi Dashboard ranks all active protocols by TVL with 24h and 7d change data."},{question:"How does Tezos DeFi compare to other blockchains?",answer:"Tezos DeFi has a TVL of approximately $27 million USD, making it a smaller but active ecosystem. Tezos offers very low transaction fees (typically under $0.01), fast finality, and a self-amending governance model that allows protocol upgrades without hard forks, making it attractive for DeFi builders."},{question:"What is Youves on Tezos?",answer:"Youves is the largest Tezos DeFi protocol by TVL, offering synthetic assets and stablecoins on Tezos. Users can mint uUSD (a USD-pegged stablecoin), uBTC (synthetic Bitcoin), and uXTZ by locking XTZ as collateral. Youves also has a governance token called YOU."},{question:"What is QuipuSwap on Tezos?",answer:"QuipuSwap is the leading decentralised exchange (DEX) on Tezos, using an automated market maker (AMM) model similar to Uniswap. Users can swap FA2 tokens, provide liquidity, and earn fees. QuipuSwap has a governance token called QUIPU."}])]});const{data:e,isLoading:t}=ee.tools.defiDashboard.useQuery(void 0,{staleTime:5*6e4}),[r,n]=E.useState("All"),[s,i]=E.useState(""),[o,l]=E.useState("tvl"),[d,u]=E.useState("desc"),g=P=>{o===P?u(O=>O==="desc"?"asc":"desc"):(l(P),u("desc"))},f=E.useMemo(()=>e?.protocols?["All",...Array.from(new Set(e.protocols.map(O=>O.category).filter(Boolean))).sort()]:[],[e?.protocols]),m=E.useMemo(()=>{if(!e?.protocols)return[];let P=[...e.protocols];if(r!=="All"&&(P=P.filter(O=>O.category===r)),s.trim()){const O=s.toLowerCase();P=P.filter(T=>T.name.toLowerCase().includes(O)||(T.description||"").toLowerCase().includes(O))}return P.sort((O,T)=>{const C=d==="desc"?-1:1;return o==="tvl"?C*(O.tvl-T.tvl):o==="change1d"?C*((O.change1d??-999)-(T.change1d??-999)):o==="change7d"?C*((O.change7d??-999)-(T.change7d??-999)):o==="name"?C*O.name.localeCompare(T.name):0}),P},[e?.protocols,r,s,o,d]),y=e?.tvlHistory||[],S=y.length>0?Math.max(...y.map(P=>P.tvl)):1,b=y.length>0?Math.min(...y.map(P=>P.tvl)):0,v=S-b||1,j=E.useMemo(()=>y.length<2?"":y.map((P,O)=>{const T=O/(y.length-1)*580+10,C=90-(P.tvl-b)/v*80;return`${O===0?"M":"L"} ${T} ${C}`}).join(" "),[y,b,v]),k=j?`${j} L 590 90 L 10 90 Z`:"";return a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:110",style:{background:"#000",minHeight:"100vh"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:112",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",borderBottom:"1px solid rgba(44,125,247,0.2)",padding:"2rem 0"},children:a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:113",className:"container",children:[a.jsx(zr,{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:114",items:[{label:"Tools",href:"/tools"},{label:"DeFi Dashboard"}]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:115",style:{display:"flex",alignItems:"center",gap:"0.75rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:116",style:{width:"40px",height:"40px",background:"rgba(44,125,247,0.2)",border:"1px solid rgba(44,125,247,0.4)",borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"1.2rem"},children:"ð¦"}),a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:117",children:[a.jsx("h1",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:118",style:{fontSize:"1.6rem",fontWeight:900,color:"#fff",margin:0},children:"Tezos DeFi Dashboard"}),a.jsx("p",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:119",style:{color:"rgba(255,255,255,0.45)",fontSize:"0.82rem",margin:0},children:"Live TVL, protocol rankings, and category breakdown â powered by DeFiLlama"})]})]})]})}),a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:125",className:"container",style:{padding:"2rem 1.25rem 4rem"},children:[t&&a.jsx("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:127",style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[200,300,150].map((P,O)=>a.jsx("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:128",className:"skeleton",style:{height:"80px",borderRadius:"8px"}},O))}),!t&&e&&a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:133",style:{display:"flex",flexDirection:"column",gap:"1.5rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:135",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(180px, 1fr))",gap:"1rem"},children:[{label:"Tezos Chain TVL",value:lo(e.chainTvl),change:e.chainTvlChange1d,sub:`7d: ${e.chainTvlChange7d>=0?"+":""}${e.chainTvlChange7d.toFixed(1)}%`,color:"#2c7df7",icon:"âï¸"},{label:"DeFi TVL (excl. CEX)",value:lo(e.totalDeFiTvl),change:null,sub:`${e.protocols.length} protocols`,color:"#8b5cf6",icon:"ð¦"},{label:"XTZ Price",value:e.xtzPrice>0?`$${e.xtzPrice.toFixed(4)}`:"â",change:null,sub:"Live from TzKT",color:"#22c55e",icon:"ê©"},{label:"30d TVL Change",value:`${e.chainTvlChange30d>=0?"+":""}${e.chainTvlChange30d.toFixed(1)}%`,change:e.chainTvlChange30d,sub:"vs 30 days ago",color:e.chainTvlChange30d>=0?"#22c55e":"#ef4444",icon:"ð
"}].map(P=>a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:170",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"10px",padding:"1.1rem 1.25rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:171",style:{fontSize:"0.6rem",color:"rgba(255,255,255,0.35)",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:"0.4rem"},children:[P.icon," ",P.label]}),a.jsx("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:172",style:{fontSize:"1.25rem",fontWeight:900,color:P.color},children:P.value}),a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:173",style:{display:"flex",alignItems:"center",gap:"0.3rem",marginTop:"0.2rem"},children:[P.change!==null&&a.jsxs(a.Fragment,{children:[P.change>=0?a.jsx(cr,{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:176",size:11,style:{color:"#22c55e"}}):a.jsx(Ha,{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:176",size:11,style:{color:"#ef4444"}}),a.jsxs("span",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:177",style:{fontSize:"0.65rem",fontWeight:700,color:P.change>=0?"#22c55e":"#ef4444"},children:[P.change>=0?"+":"",P.change.toFixed(2),"% 24h"]})]}),P.sub&&a.jsxs("span",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:182",style:{fontSize:"0.62rem",color:"rgba(255,255,255,0.3)"},children:[P.change!==null?"· ":"",P.sub]})]})]},P.label))}),a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:189",style:{display:"grid",gridTemplateColumns:"2fr 1fr",gap:"1.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:191",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"10px",padding:"1.25rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:192",style:{fontSize:"0.72rem",fontWeight:800,color:"rgba(255,255,255,0.5)",textTransform:"uppercase",letterSpacing:"0.1em",marginBottom:"1rem"},children:"Tezos Chain TVL â 90 Days"}),a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:195",style:{background:"rgba(255,255,255,0.02)",borderRadius:"8px",padding:"0.75rem 0.5rem 0.25rem",overflow:"hidden"},children:[a.jsxs("svg",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:196",width:"100%",height:"100",viewBox:"0 0 600 100",preserveAspectRatio:"none",children:[a.jsx("defs",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:197",children:a.jsxs("linearGradient",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:198",id:"tvlGrad",x1:"0",y1:"0",x2:"0",y2:"1",children:[a.jsx("stop",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:199",offset:"0%",stopColor:"#2c7df7",stopOpacity:"0.3"}),a.jsx("stop",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:200",offset:"100%",stopColor:"#2c7df7",stopOpacity:"0"})]})}),k&&a.jsx("path",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:203",d:k,fill:"url(#tvlGrad)"}),j&&a.jsx("path",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:204",d:j,stroke:"#2c7df7",strokeWidth:"2",fill:"none",strokeLinejoin:"round"})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:206",style:{display:"flex",justifyContent:"space-between",marginTop:"0.25rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:207",style:{fontSize:"0.6rem",color:"rgba(255,255,255,0.2)"},children:"90 days ago"}),a.jsxs("span",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:208",style:{fontSize:"0.6rem",color:"rgba(255,255,255,0.2)"},children:["Today: ",lo(e.chainTvl)]})]})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:211",style:{display:"flex",gap:"1.5rem",marginTop:"0.75rem"},children:[{label:"Min (90d)",value:lo(b)},{label:"Max (90d)",value:lo(S)},{label:"Current",value:lo(e.chainTvl)}].map(P=>a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:217",children:[a.jsx("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:218",style:{fontSize:"0.58rem",color:"rgba(255,255,255,0.3)",textTransform:"uppercase",letterSpacing:"0.07em"},children:P.label}),a.jsx("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:219",style:{fontSize:"0.82rem",fontWeight:700,color:"#fff"},children:P.value})]},P.label))})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:226",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"10px",padding:"1.25rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:227",style:{fontSize:"0.72rem",fontWeight:800,color:"rgba(255,255,255,0.5)",textTransform:"uppercase",letterSpacing:"0.1em",marginBottom:"1rem"},children:"By Category"}),a.jsx("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:230",style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:e.categories.map(P=>{const O=e.totalDeFiTvl>0?P.tvl/e.totalDeFiTvl*100:0,T=wl(P.name);return a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:235",children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:236",style:{display:"flex",justifyContent:"space-between",marginBottom:"0.2rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:237",style:{fontSize:"0.72rem",fontWeight:700,color:T},children:P.name}),a.jsx("span",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:238",style:{fontSize:"0.7rem",color:"rgba(255,255,255,0.5)"},children:lo(P.tvl)})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:240",style:{height:"6px",background:"rgba(255,255,255,0.06)",borderRadius:"3px",overflow:"hidden"},children:a.jsx("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:241",style:{height:"100%",width:`${O}%`,background:T,borderRadius:"3px",transition:"width 0.5s ease"}})}),a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:243",style:{fontSize:"0.6rem",color:"rgba(255,255,255,0.25)",marginTop:"0.1rem"},children:[O.toFixed(1),"%"]})]},P.name)}
1131)})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:252",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"10px",overflow:"hidden"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:253",style:{padding:"1rem 1.25rem",borderBottom:"1px solid rgba(255,255,255,0.06)"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:254",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"0.875rem",flexWrap:"wrap",gap:"0.5rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:255",style:{fontWeight:800,color:"#fff",fontSize:"0.88rem"},children:"Tezos DeFi Protocols"}),a.jsxs("a",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:256",href:"https://defillama.com/chain/Tezos",target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",fontSize:"0.7rem",color:"#2c7df7",textDecoration:"none",fontWeight:700},children:["View on DeFiLlama ",a.jsx(ve,{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:258",size:10})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:262",style:{display:"flex",gap:"0.5rem",flexWrap:"wrap",alignItems:"center"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:264",style:{position:"relative",flex:"1 1 200px"},children:[a.jsx(ft,{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:265",size:12,style:{position:"absolute",left:"0.6rem",top:"50%",transform:"translateY(-50%)",color:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),a.jsx("input",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:266",value:s,onChange:P=>i(P.target.value),placeholder:"Search protocolsâ¦",style:{width:"100%",padding:"0.4rem 0.75rem 0.4rem 2rem",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"5px",color:"#fff",fontSize:"0.78rem",outline:"none",fontFamily:"inherit"}})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:271",style:{display:"flex",gap:"0.3rem",flexWrap:"wrap"},children:f.map(P=>a.jsx("button",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:273",onClick:()=>n(P),style:{padding:"0.25rem 0.7rem",background:r===P?`${wl(P==="All"?"Dexs":P)}22`:"rgba(255,255,255,0.05)",border:`1px solid ${r===P?wl(P==="All"?"Dexs":P)+"55":"rgba(255,255,255,0.1)"}`,borderRadius:"12px",color:r===P?P==="All"?"#2c7df7":wl(P):"rgba(255,255,255,0.4)",fontSize:"0.65rem",fontWeight:700,cursor:"pointer",whiteSpace:"nowrap"},children:P},P))}),a.jsxs("span",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:280",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.3)",marginLeft:"auto",whiteSpace:"nowrap"},children:[m.length," protocol",m.length!==1?"s":""]})]})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:285",style:{overflowX:"auto"},children:a.jsxs("table",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:286",style:{width:"100%",borderCollapse:"collapse",fontSize:"0.78rem"},children:[a.jsx("thead",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:287",children:a.jsxs("tr",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:288",style:{borderBottom:"1px solid rgba(255,255,255,0.06)"},children:[a.jsx("th",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:289",style:{padding:"0.6rem 1rem",textAlign:"left",fontWeight:700,color:"rgba(255,255,255,0.35)",fontSize:"0.62rem",textTransform:"uppercase",letterSpacing:"0.07em",whiteSpace:"nowrap"},children:"#"}),["name","category","tvl","change1d","change7d"].map(P=>{const O={name:"Protocol",category:"Category",tvl:"TVL",change1d:"24h Change",change7d:"7d Change"},T=P==="category",C=!T&&o===P,A=!T;return a.jsx("th",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:296",onClick:A?()=>g(P):void 0,style:{padding:"0.6rem 1rem",textAlign:"left",fontWeight:700,color:C?"#2c7df7":"rgba(255,255,255,0.35)",fontSize:"0.62rem",textTransform:"uppercase",letterSpacing:"0.07em",whiteSpace:"nowrap",cursor:A?"pointer":"default",userSelect:"none"},children:a.jsxs("span",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:299",style:{display:"inline-flex",alignItems:"center",gap:"0.2rem"},children:[O[P],C?d==="desc"?a.jsx(yi,{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:301",size:10}):a.jsx(Jf,{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:301",size:10}):null]})},P)})]})}),a.jsxs("tbody",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:308",children:[m.length===0&&a.jsx("tr",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:310",children:a.jsx("td",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:310",colSpan:6,style:{padding:"2rem",textAlign:"center",color:"rgba(255,255,255,0.3)",fontSize:"0.85rem"},children:"No protocols match your filters."})}),m.map((P,O)=>a.jsxs("tr",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:313",style:{borderBottom:O<e.protocols.length-1?"1px solid rgba(255,255,255,0.04)":"none",cursor:"pointer"},onClick:()=>window.location.href=`/tools/defi/${P.slug}`,children:[a.jsx("td",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:315",style:{padding:"0.75rem 1rem",color:"rgba(255,255,255,0.3)",fontSize:"0.72rem"},children:O+1}),a.jsx("td",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:316",style:{padding:"0.75rem 1rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:317",style:{display:"flex",alignItems:"center",gap:"0.6rem"},children:[P.logo&&a.jsx("img",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:319",src:P.logo,alt:"",style:{width:"22px",height:"22px",borderRadius:"50%",objectFit:"cover",flexShrink:0},onError:T=>{T.currentTarget.style.display="none"}}),a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:322",children:[a.jsx("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:323",style:{fontWeight:700,color:"#2c7df7",fontSize:"0.85rem",textDecoration:"underline",textDecorationColor:"rgba(44,125,247,0.3)"},children:P.name}),P.description&&a.jsx("div",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:325",style:{fontSize:"0.62rem",color:"rgba(255,255,255,0.3)",maxWidth:"200px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:P.description})]})]})}),a.jsx("td",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:332",style:{padding:"0.75rem 1rem"},children:a.jsx("span",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:333",style:{fontSize:"0.65rem",fontWeight:700,padding:"2px 7px",borderRadius:"8px",background:`${wl(P.category)}22`,color:wl(P.category),border:`1px solid ${wl(P.category)}44`,whiteSpace:"nowrap"},children:P.category})}),a.jsx("td",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:337",style:{padding:"0.75rem 1rem",fontWeight:800,color:"#fff",whiteSpace:"nowrap"},children:lo(P.tvl)}),a.jsx("td",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:338",style:{padding:"0.75rem 1rem",whiteSpace:"nowrap"},children:P.change1d!=null?a.jsxs("span",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:340",style:{fontWeight:700,color:P.change1d>
1131=0?"#22c55e":"#ef4444",display:"inline-flex",alignItems:"center",gap:"0.2rem"},children:[P.change1d>=0?a.jsx(cr,{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:341",size:11}):a.jsx(Ha,{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:341",size:11}),P.change1d>=0?"+":"",P.change1d.toFixed(2),"%"]}):a.jsx("span",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:344",style:{color:"rgba(255,255,255,0.2)"},children:"â"})}),a.jsx("td",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:346",style:{padding:"0.75rem 1rem",whiteSpace:"nowrap"},children:P.change7d!=null?a.jsxs("span",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:348",style:{fontWeight:700,color:P.change7d>=0?"#22c55e":"#ef4444"},children:[P.change7d>=0?"+":"",P.change7d.toFixed(2),"%"]}):a.jsx("span",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:351",style:{color:"rgba(255,255,255,0.2)"},children:"â"})})]},P.slug))]})]})})]}),a.jsxs("p",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:361",style:{fontSize:"0.7rem",color:"rgba(255,255,255,0.2)",textAlign:"center"},children:["Data from ",a.jsx("a",{"data-loc":"client/src/pages/tools/DefiDashboardPage.tsx:362",href:"https://defillama.com",target:"_blank",rel:"noopener noreferrer",style:{color:"#2c7df7",textDecoration:"none"},children:"DeFiLlama"})," and TzKT. Updated every 5 minutes. CEX and bridge protocols excluded from DeFi TVL."]})]})]})]})}function co(e){return e>=1e9?`$${(e/1e9).toFixed(2)}B`:e>=1e6?`$${(e/1e6).toFixed(2)}M`:e>=1e3?`$${(e/1e3).toFixed(1)}K`:`$${e.toFixed(2)}`}const pB={Dexs:"#2c7df7",Synthetics:"#8b5cf6",CDP:"#f97316",Lending:"#22c55e",Yield:"#f59e0b","Liquid Staking":"#06b6d4",Other:"rgba(255,255,255,0.4)"};function _Ae(){const{slug:e}=Ua(),{data:t,isLoading:r}=ee.tools.defiProtocol.useQuery({slug:e||""},{enabled:!!e,staleTime:5*6e4});Ie({title:t?`${t.name} â Tezos DeFi Protocol | XTZ.News`:"Tezos DeFi Protocol | XTZ.News",description:t?.description?.slice(0,155)||`View TVL, token price, and smart contract details for ${e||""} on Tezos.`,keywords:t?`${t.name}, Tezos DeFi, ${t.symbol||""}, TVL, Tezos protocol`:"Tezos DeFi protocol",canonical:`https://xtz.news/tools/defi/${e||""}`,ogImage:t?.logo||void 0});const n=t?.tvlHistory||[],s=n.length>0?Math.max(...n.map(g=>g.tvl)):1,i=n.length>0?Math.min(...n.map(g=>g.tvl)):0,o=s-i||1,l=E.useMemo(()=>n.length<2?"":n.map((g,f)=>{const m=f/(n.length-1)*580+10,y=110-(g.tvl-i)/o*100;return`${f===0?"M":"L"} ${m} ${y}`}).join(" "),[n,i,o]),d=l?`${l} L 590 110 L 10 110 Z`:"",u=t?.category?pB[t.category]||pB.Other:"#2c7df7";return a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:60",style:{background:"#000",minHeight:"100vh"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:62",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",borderBottom:"1px solid rgba(44,125,247,0.2)",padding:"2rem 0"},children:a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:63",className:"container",children:[a.jsx(zr,{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:64",items:[{label:"Tools",href:"/tools"},{label:"DeFi Dashboard",href:"/tools/defi"},{label:t?.name||e||""}]}),r?a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:67",style:{display:"flex",alignItems:"center",gap:"1rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:68",className:"skeleton",style:{width:"48px",height:"48px",borderRadius:"10px"}}),a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:69",children:[a.jsx("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:70",className:"skeleton",style:{width:"200px",height:"28px",marginBottom:"8px"}}),a.jsx("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:71",className:"skeleton",style:{width:"120px",height:"16px"}})]})]}):t?a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:75",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",flexWrap:"wrap",gap:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:76",style:{display:"flex",alignItems:"center",gap:"1rem"},children:[t.logo?a.jsx("img",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:78",src:t.logo,alt:t.name,style:{width:"48px",height:"48px",borderRadius:"10px",objectFit:"cover"},onError:g=>{g.currentTarget.style.display="none"}}):a.jsx("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:81",style:{width:"48px",height:"48px",background:`${u}22`,border:`1px solid ${u}44`,borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"1.5rem"},children:"ð¦"}),a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:83",children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:84",style:{display:"flex",alignItems:"center",gap:"0.75rem",flexWrap:"wrap"},children:[a.jsx("h1",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:85",style:{fontSize:"1.6rem",fontWeight:900,color:"#fff",margin:0},children:t.name}),t.symbol&&a.jsx("span",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:86",style:{fontSize:"0.78rem",fontWeight:700,padding:"2px 8px",borderRadius:"8px",background:`${u}22`,color:u,border:`1px solid ${u}44`},children:t.symbol}),t.category&&a.jsx("span",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:87",style:{fontSize:"0.65rem",fontWeight:700,padding:"2px 8px",borderRadius:"8px",background:"rgba(255,255,255,0.08)",color:"rgba(255,255,255,0.5)"},children:t.category})]}),t.description&&a.jsx("p",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:90",style:{color:"rgba(255,255,255,0.5)",fontSize:"0.82rem",margin:"0.35rem 0 0",maxWidth:"600px"},children:t.description}),a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:93",style:{display:"flex",gap:"0.5rem",marginTop:"0.75rem",flexWrap:"wrap"},children:[t.url&&a.jsxs("a",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:95",href:t.url,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",padding:"0.3rem 0.75rem",background:"rgba(255,255,255,0.07)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"6px",color:"rgba(255,255,255,0.6)",textDecoration:"none",fontSize:"0.72rem",fontWeight:700},children:[a.jsx(ve,{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:97",size:11})," Website"]}),t.twitter&&a.jsxs("a",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:101",href:`https://twitter.com/${t.twitter}`,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",padding:"0.3rem 0.75rem",background:"rgba(44,125,247,0.1)",border:"1px solid rgba(44,125,247,0.25)",borderRadius:"6px",color:"#2c7df7",textDecoration:"none",fontSize:"0.72rem",fontWeight:700},children:[a.jsx(vc,{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:103",size:11})," @",t.twitter]}),t.github&&Array.isArray(t.github)&&t.github[0]&&a.jsxs("a",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:107",href:`https://github.com/${t.github[0]}`,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",padding:"0.3rem 0.75rem",background:"rgba(255,255,255,0.07)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"6px",color:"rgba(255,255,255,0.6)",textDecoration:"none",fontSize:"0.72rem",fontWeight:700},children:[a.jsx(VW,{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:109",size:11})," GitHub"]}),t.audits>0&&a.jsxs("span",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:113",style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",padding:"0.3rem 0.75rem",background:"rgba(34,197,94,0.1)",border:"1px solid rgba(34,197,94,0.25)",borderRadius:"6px",color:"#22c55e",fontSize:"0.72rem",fontWeight:700},children:[a.jsx(ec,{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:114",size:11})," ",t.audits," Audit",t.audits>1?"s":""]}),a.jsxs("a",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:117",href:`https://defillama.com/protocol/${e}`,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",padding:"0.3rem 0.75rem",background:"rgba(255,255,255,0.07)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"6px",color:"rgba(255,255,255,0.5)",textDecoration:"none",fontSize:"0.72rem",fontWeight:700},children:[a.jsx(ve,{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:119",size:11})," DeFiLlama"]})]})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:125",style:{textAlign:"right"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:126",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.35)",textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:"0.25rem"},children:"TVL"}),a.jsx("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:127",style:{fontSize:"2rem",fontWeight:900,color:"#fff"},children:co(t.currentTvl)}),a.jsx("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:128",style:{display:"flex",gap:"0.75rem",justifyContent:"flex-end",marginTop:"0.25rem"},children:[{label:"24h",v:t.tvlChange1d},{label:"7d",v:t.tvlChange7d},{label:"30d",v:t.tvlChange30d}].map(g=>a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:134",style:{display:"flex",alignItems:"center",gap:"0.2rem"},children:[g.v>=0?a.jsx(cr,{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:135",size:10,style:{color:"#22c55e"}}):a.jsx(Ha,{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:135",size:10,style:{color:"#ef4444"}}),a.jsxs("span",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:136",style:{fontSize:"0.65rem",fontWeight:700,color:g.v>=0?"#22c55e":"#ef4444"},children:[g.v>=0?"+":"",g.v.toFixed(1),"% ",g.label]})]},g.label))})]})]}):null]})}),a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:148",className:"container",style:{padding:"2rem 1.25rem 4rem"},children:[r&&a.jsx("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:150",style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[300,200,150].map((g,f)=>a.jsx("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:151",className:"skeleton",style:{height:"80px",borderRadius:"8px"}},f))}),!r&&!t&&a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:156",style:{textAlign:"center",padding:"3rem",background:"#05152e",borderRadius:"10px",border:"1px solid rgba(239,68,68,0.2)"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:157",style:{fontSize:"2rem",marginBottom:"0.75rem"},children:"ð¦"}),a.jsx("h2",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:158",style:{color:"#fff",fontWeight:800,marginBottom:"0.5rem"},children:"Protocol Not Found"}),a.jsxs("p",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:159",style:{color:"rgba(255,255,255,0.4)",fontSize:"0.85rem"},children:["Protocol ",a.jsx("code",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:159",children:e})," not found on DeFiLlama."]}),a.jsxs($,{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:160",href:"/tools/defi",style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",marginTop:"1rem",color:"#2c7df7",textDecoration:"none",fontWeight:700,fontSize:"0.85rem"},children:[a.jsx(ya,{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:161",size:14})," Back to DeFi Dashboard"]})]}),!r&&t&&a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:167",style:{display:"flex",flexDirection:"column",gap:"1.5rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:169",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(160px, 1fr))",gap:"1rem"},children:[{label:"Current TVL",value:co(t.currentTvl),color:"#fff",icon:"ð°"},{label:"All-Time High TVL",value:co(t.maxTvl),color:"#f59e0b",icon:"ð"},...t.tokenPrice?[{label:`${t.symbol||"Token"} Price`,value:`$${t.tokenPrice.toFixed(4)}`,color:u,icon:"ðª"}]:[],...t.tokenMarketCap?[{label:"Market Cap",value:co(t.tokenMarketCap),color:"rgba(255,255,255,0.7)",icon:"ð"}]:[],{label:"Chains",value:t.chains.length.toString(),color:"#2c7df7",icon:"âï¸"},...t.audits>0?[{label:"Security Audits",value:t.audits.toString(),color:"#22c55e",icon:"ð¡ï¸"}]:[]].map(g=>a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:178",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"8px",padding:"0.875rem 1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:179",style:{fontSize:"0.58rem",color:"rgba(255,255,255,0.35)",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.07em",marginBottom:"0.3rem"},children:[g.icon," ",g.label]}),a.jsx("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:180",style:{fontSize:"1rem",fontWeight:800,color:g.color},children:g.value})]},g.label))}),n.length>1&&a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:187",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"10px",padding:"1.25rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:188",style:{fontSize:"0.72rem",fontWeight:800,color:"rgba(255,255,255,0.5)",textTransform:"uppercase",letterSpacing:"0.1em",marginBottom:"1rem"},children:"TVL History â 90 Days"}),a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:191",style:{background:"rgba(255,255,255,0.02)",borderRadius:"8px",padding:"0.75rem 0.5rem 0.25rem",overflow:"hidden"},children:[a.jsxs("svg",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:192",width:"100%",height:"120",viewBox:"0 0 600 120",preserveAspectRatio:"none",children:[a.jsx("defs",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:193",children:a.jsxs("linearGradient",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:194",id:"protGrad",x1:"0",y1:"0",x2:"0",y2:"1",children:[a.jsx("stop",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:195",offset:"0%",stopColor:u,stopOpacity:"0.3"}),a.jsx("stop",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:196",offset:"100%",stopColor:u,stopOpacity:"0"})]})}),d&&a.jsx("path",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:199",d,fill:"url(#protGrad)"}),l&&a.jsx("path",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:200",d:l,stroke:u,strokeWidth:"2",fill:"none",strokeLinejoin:"round"}),n.length>0&&(()=>{const g=n[n.length-1],f=590,m=110-(g.tvl-i)/o*100;return a.jsx("circle",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:206",cx:f,cy:m,r:"4",fill:u})})()]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:209",style:{display:"flex",justifyContent:"space-between",marginTop:"0.25rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:210",style:{fontSize:"0.6rem",color:"rgba(255,255,255,0.2)"},children:new Date(n[0]?.date*1e3).toLocaleDateString("en-GB",{day:"numeric",month:"short"})}),a.jsxs("span",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:213",style:{fontSize:"0.6rem",color:"rgba(255,255,255,0.2)"},children:["Today: ",co(t.currentTvl)]})]})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:217",style:{display:"flex",gap:"1.5rem",marginTop:"0.75rem"},children:[{label:"Min (90d)",value:co(i)},{label:"Max (90d)",value:co(s)},{label:"Avg (90d)",value:co(n.reduce((g,f)=>g+f.tvl,0)/n.length)}].map(g=>a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:223",children:[a.jsx("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:224",style:{fontSize:"0.58rem",color:"rgba(255,255,255,0.3)",textTransform:"uppercase",letterSpacing:"0.07em"},children:g.label}),a.jsx("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:225",style:{fontSize:"0.82rem",fontWeight:700,color:"#fff"},children:g.value})]},g.label))})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:233",style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"1.5rem"},children:[t.contractAddresses.length>0&&a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:236",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"10p
1131x",overflow:"hidden"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:237",style:{padding:"0.875rem 1.25rem",borderBottom:"1px solid rgba(255,255,255,0.06)"},children:a.jsx("span",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:238",style:{fontWeight:800,color:"#fff",fontSize:"0.85rem"},children:"ð Smart Contracts"})}),t.contractAddresses.map((g,f)=>a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:241",style:{padding:"0.875rem 1.25rem",borderBottom:f<t.contractAddresses.length-1?"1px solid rgba(255,255,255,0.04)":"none"},children:[a.jsx("code",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:242",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.5)",fontFamily:"monospace",display:"block",marginBottom:"0.4rem"},children:g}),a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:243",style:{display:"flex",gap:"0.5rem"},children:[a.jsx($,{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:244",href:`/tools/contract?address=${g}`,style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",padding:"0.25rem 0.6rem",background:"rgba(139,92,246,0.1)",border:"1px solid rgba(139,92,246,0.25)",borderRadius:"5px",color:"#8b5cf6",textDecoration:"none",fontSize:"0.65rem",fontWeight:700},children:"ð Inspect Contract"}),a.jsx($,{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:248",href:`/explorer/address/${g}`,style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",padding:"0.25rem 0.6rem",background:"rgba(44,125,247,0.1)",border:"1px solid rgba(44,125,247,0.25)",borderRadius:"5px",color:"#2c7df7",textDecoration:"none",fontSize:"0.65rem",fontWeight:700},children:"Explorer â"})]})]},g))]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:259",style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[t.auditLinks.length>0&&a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:261",style:{background:"#05152e",border:"1px solid rgba(34,197,94,0.15)",borderRadius:"10px",overflow:"hidden"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:262",style:{padding:"0.875rem 1.25rem",borderBottom:"1px solid rgba(255,255,255,0.06)"},children:a.jsx("span",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:263",style:{fontWeight:800,color:"#22c55e",fontSize:"0.85rem"},children:"ð¡ï¸ Security Audits"})}),t.auditLinks.map((g,f)=>a.jsx("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:266",style:{padding:"0.75rem 1.25rem",borderBottom:f<t.auditLinks.length-1?"1px solid rgba(255,255,255,0.04)":"none"},children:a.jsxs("a",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:267",href:g,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",color:"#22c55e",textDecoration:"none",fontSize:"0.75rem",fontWeight:600},children:[a.jsx(ve,{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:269",size:11})," Audit Report ",f+1]})},f))]}),t.stablecoins.length>0&&a.jsxs("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:277",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"10px",padding:"1rem 1.25rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:278",style:{fontSize:"0.72rem",fontWeight:800,color:"rgba(255,255,255,0.5)",textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:"0.75rem"},children:"ðµ Stablecoins"}),a.jsx("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:279",style:{display:"flex",flexWrap:"wrap",gap:"0.4rem"},children:t.stablecoins.map(g=>a.jsx("span",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:281",style:{fontSize:"0.72rem",fontWeight:700,padding:"3px 9px",borderRadius:"10px",background:"rgba(34,197,94,0.1)",color:"#22c55e",border:"1px solid rgba(34,197,94,0.2)"},children:g},g))})]})]})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:292",children:a.jsxs($,{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:293",href:"/tools/defi",style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",padding:"0.5rem 1rem",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"6px",color:"rgba(255,255,255,0.5)",textDecoration:"none",fontSize:"0.78rem",fontWeight:700},children:[a.jsx(ya,{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:294",size:13})," Back to DeFi Dashboard"]})}),a.jsxs("p",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:299",style:{fontSize:"0.7rem",color:"rgba(255,255,255,0.2)",textAlign:"center"},children:["Data from ",a.jsx("a",{"data-loc":"client/src/pages/tools/DefiProtocolPage.tsx:300",href:"https://defillama.com",target:"_blank",rel:"noopener noreferrer",style:{color:"#2c7df7",textDecoration:"none"},children:"DeFiLlama"})," and CoinGecko. Updated every 5 minutes."]})]})]})]})}function IAe(e){const[t,r]=E.useState("");return E.useEffect(()=>{if(!e){r("No end time");return}const n=()=>{const i=new Date(e).getTime()-Date.now();if(i<=0){r("Ended");return}const o=Math.floor(i/864e5),l=Math.floor(i%864e5/36e5),d=Math.floor(i%36e5/6e4),u=Math.floor(i%6e4/1e3);o>0?r(`${o}d ${l}h ${d}m`):l>0?r(`${l}h ${d}m ${u}s`):r(`${d}m ${u}s`)};n();const s=setInterval(n,1e3);return()=>clearInterval(s)},[e]),t}function BAe({auction:e}){const t=IAe(e.endTime),r=e.endTime&&new Date(e.endTime).getTime()-Date.now()<36e5,n=e.endTime&&new Date(e.endTime).getTime()<Date.now();return a.jsx("a",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:37",href:e.objktUrl,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none",display:"block"},children:a.jsxs("div",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:38",style:{background:"#05152e",border:`1px solid ${r&&!n?"rgba(249,115,22,0.4)":"rgba(255,255,255,0.07)"}`,borderRadius:"8px",overflow:"hidden",transition:"transform 0.2s, border-color 0.2s, box-shadow 0.2s"},onMouseEnter:s=>{const i=s.currentTarget;i.style.transform="translateY(-3px)",i.style.boxShadow="0 8px 24px rgba(0,0,0,0.4)"},onMouseLeave:s=>{const i=s.currentTarget;i.style.transform="translateY(0)",i.style.boxShadow="none"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:47",style:{aspectRatio:"16/9",background:"#000",overflow:"hidden",position:"relative"},children:[e.thumbnailUri?a.jsx("img",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:49",src:e.thumbnailUri,alt:e.tokenName,loading:"lazy",style:{width:"100%",height:"100%",objectFit:"cover"},onError:s=>{s.currentTarget.style.display="none"}}):a.jsx("div",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:53",style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"2rem",opacity:.2},children:"ð¼ï¸"}),a.jsxs("div",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:56",style:{position:"absolute",top:"0.5rem",left:"0.5rem",display:"flex",gap:"0.3rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:57",style:{fontSize:"0.6rem",fontWeight:800,textTransform:"uppercase",letterSpacing:"0.1em",padding:"2px 7px",borderRadius:"2px",background:e.type==="english"?"rgba(44,125,247,0.9)":"rgba(124,58,237,0.9)",color:"#fff"},children:e.type==="english"?"ð¨ English":"ð Dutch"}),r&&!n&&a.jsx("span",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:66",style:{fontSize:"0.6rem",fontWeight:800,textTransform:"uppercase",letterSpacing:"0.1em",padding:"2px 7px",borderRadius:"2px",background:"rgba(249,115,22,0.9)",color:"#fff"},children:"â¡ Ending Soon"})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:72",style:{position:"absolute",bottom:"0.5rem",right:"0.5rem",background:"rgba(0,0,0,0.8)",borderRadius:"3px",padding:"3px 8px",display:"flex",alignItems:"center",gap:"0.3rem"},children:[a.jsx(oA,{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:73",size:11,style:{color:r&&!n?"#f97316":"rgba(255,255,255,0.6)"}}),a.jsx("span",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:74",style:{fontSize:"0.7rem",fontWeight:700,color:r&&!n?"#f97316":"rgba(255,255,255,0.8)",fontVariantNumeric:"tabular-nums"},children:t})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:81",style:{padding:"0.875rem"},children:[a.jsx("h3",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:82",style:{margin:"0 0 0.25rem",fontSize:"0.88rem",fontWeight:700,color:"#fff",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.tokenName}),e.collectionName&&a.jsx("p",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:86",style:{margin:"0 0 0.75rem",fontSize:"0.65rem",color:"rgba(255,255,255,0.4)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.collectionName}),a.jsxs("div",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:91",style:{display:"flex",justifyContent:"space-between",alignItems:"flex-end"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:92",children:[a.jsx("p",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:93",style:{margin:"0 0 1px",fontSize:"0.6rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"rgba(255,255,255,0.35)"},children:e.type==="english"?e.currentBid?"Current Bid":"Reserve":"Current Price"}),a.jsxs("p",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:96",style:{margin:0,fontSize:"1rem",fontWeight:900,color:"#fff"},children:[(e.currentBid??e.reserve??0).toFixed(2)," ",a.jsx("span",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:97",style:{fontSize:"0.7rem",color:"rgba(255,255,255,0.5)"},children:"ê©"})]})]}),e.seller&&a.jsxs("p",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:101",style:{margin:0,fontSize:"0.65rem",color:"rgba(255,255,255,0.35)",textAlign:"right"},children:["by ",e.seller]})]}),e.topBidder&&a.jsxs("p",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:108",style:{margin:"0.4rem 0 0",fontSize:"0.65rem",color:"#2c7df7"},children:["Top bidder: ",e.topBidder]})]})]})})}function LAe(){const[e,t]=E.useState("all"),[r,n]=E.useState(0),[s,i]=E.useState(""),[o,l]=E.useState(0);Ie({title:"Live Tezos Auction Tracker | XTZ.News â Active NFT Auctions",description:"Track all active Tezos NFT auctions in real time â English and Dutch auctions from objkt.com with live countdown timers, current bids, and thumbnail previews.",keywords:"Tezos NFT auction, objkt auction, Tezos English auction, Tezos Dutch auction, live NFT auction",canonical:"https://xtz.news/tools/auctions"});const{data:d=[],isLoading:u,refetch:g}=ee.tools.liveAuctions.useQuery({type:e,limit:40},{staleTime:3e4,refetchInterval:6e4}),f=d.filter(v=>{const j=(v.currentBid??v.reserve??0)>=r;if(!s.trim())return j;const k=s.toLowerCase();return j&&((v.tokenName||"").toLowerCase().includes(k)||(v.collectionName||"").toLowerCase().includes(k)||(v.seller||"").toLowerCase().includes(k))}),m=E.useCallback(()=>
1131{l(v=>v+1),g()},[g]),y=d.filter(v=>v.type==="english").length,S=d.filter(v=>v.type==="dutch").length,b=d.filter(v=>v.endTime&&new Date(v.endTime).getTime()-Date.now()<36e5).length;return a.jsxs("div",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:157",style:{background:"#000",minHeight:"100vh"},children:[a.jsx(zr,{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:158",items:[{label:"Live Auction Tracker"}]}),a.jsx("div",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:161",style:{background:"#05152e",borderBottom:"1px solid rgba(255,255,255,0.08)",padding:"2rem 0 1.5rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:162",className:"container",children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:163",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",flexWrap:"wrap",gap:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:164",children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:165",style:{display:"flex",alignItems:"center",gap:"0.6rem",marginBottom:"0.5rem"},children:[a.jsx(iE,{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:166",size:20,style:{color:"#2c7df7"}}),a.jsx("h1",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:167",style:{margin:0,fontSize:"1.75rem",fontWeight:900,color:"#fff"},children:"Live Auction Tracker"}),a.jsx("div",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:168",style:{width:"8px",height:"8px",borderRadius:"50%",background:"#22c55e",animation:"pulse 2s infinite"}})]}),a.jsx("p",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:170",style:{margin:0,fontSize:"0.85rem",color:"rgba(255,255,255,0.5)"},children:"All active Tezos NFT auctions from objkt.com â auto-refreshes every 60 seconds"})]}),a.jsxs("button",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:174",onClick:m,style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",padding:"0.6rem 1.25rem",background:"rgba(44,125,247,0.15)",border:"1px solid rgba(44,125,247,0.4)",borderRadius:"4px",color:"#2c7df7",cursor:"pointer",fontSize:"0.8rem",fontWeight:700,transition:"all 0.2s"},children:[a.jsx(Fd,{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:175",size:14})," Refresh"]})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:180",style:{display:"flex",flexWrap:"wrap",gap:"1.25rem",marginTop:"1.5rem"},children:[{label:"Total Active",value:d.length,color:"#2c7df7"},{label:"English Auctions",value:y,color:"#2c7df7",icon:a.jsx(iE,{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:183",size:13})},{label:"Dutch Auctions",value:S,color:"#7c3aed",icon:a.jsx(Ha,{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:184",size:13})},{label:"Ending < 1hr",value:b,color:"#f97316"}].map(({label:v,value:j,color:k,icon:P})=>a.jsxs("div",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:187",style:{background:"rgba(255,255,255,0.04)",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"6px",padding:"0.75rem 1.25rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:188",style:{display:"flex",alignItems:"center",gap:"0.3rem",marginBottom:"0.2rem"},children:[P&&a.jsx("span",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:189",style:{color:k},children:P}),a.jsx("span",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:190",style:{fontSize:"0.6rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.4)"},children:v})]}),a.jsx("span",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:192",style:{fontSize:"1.5rem",fontWeight:900,color:k},children:j})]},v))})]})}),a.jsx("div",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:200",style:{background:"#05152e",borderBottom:"1px solid rgba(255,255,255,0.06)",padding:"0.75rem 0"},children:a.jsxs("div",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:201",className:"container",style:{display:"flex",flexWrap:"wrap",gap:"0.75rem",alignItems:"center"},children:[a.jsx(UW,{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:202",size:14,style:{color:"rgba(255,255,255,0.4)"}}),a.jsx("input",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:204",type:"text",value:s,onChange:v=>i(v.target.value),placeholder:"Search by artwork, collection, or artist...",style:{flex:"1 1 200px",minWidth:"160px",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"4px",padding:"0.4rem 0.75rem",color:"#fff",fontSize:"0.8rem",outline:"none",fontFamily:"inherit"},onFocus:v=>v.currentTarget.style.borderColor="#2c7df7",onBlur:v=>v.currentTarget.style.borderColor="rgba(255,255,255,0.12)"}),a.jsx("div",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:213",style:{display:"flex",gap:"0.4rem"},children:["all","english","dutch"].map(v=>a.jsx("button",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:215",onClick:()=>t(v),style:{padding:"0.35rem 0.875rem",borderRadius:"4px",fontSize:"0.72rem",fontWeight:700,textTransform:"capitalize",cursor:"pointer",border:e===v?"1px solid #2c7df7":"1px solid rgba(255,255,255,0.12)",background:e===v?"#2c7df7":"transparent",color:e===v?"#fff":"rgba(255,255,255,0.5)",transition:"all 0.15s"},children:v==="all"?"All Types":v==="english"?"ð¨ English":"ð Dutch"},v))}),a.jsxs("div",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:221",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginLeft:"auto"},children:[a.jsx("span",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:222",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.4)",fontWeight:600},children:"Min price:"}),a.jsxs("select",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:223",value:r,onChange:v=>n(Number(v.target.value)),style:{background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"4px",color:"#fff",padding:"0.35rem 0.5rem",fontSize:"0.75rem",cursor:"pointer"},children:[a.jsx("option",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:225",value:0,children:"Any"}),a.jsx("option",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:226",value:1,children:"1+ ê©"}),a.jsx("option",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:227",value:5,children:"5+ ê©"}),a.jsx("option",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:228",value:10,children:"10+ ê©"}),a.jsx("option",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:229",value:50,children:"50+ ê©"}),a.jsx("option",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:230",value:100,children:"100+ ê©"})]})]}),a.jsxs("span",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:233",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.3)",fontWeight:600},children:[f.length," auctions"]})]})}),a.jsx("div",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:238",className:"container",style:{padding:"2rem 1.25rem"},children:u?a.jsx("div",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:240",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(260px, 1fr))",gap:"1rem"},children:Array.from({length:12}).map((v,j)=>a.jsx("div",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:242",className:"skeleton",style:{height:"280px",borderRadius:"8px"}},j))}):f.length>0?a.jsx("div",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:246",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(260px, 1fr))",gap:"1rem"},children:f.map(v=>a.jsx(BAe,{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:248",auction:v},`${v.type}-${v.id}`))}):a.jsxs("div",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:252",style:{textAlign:"center",padding:"4rem 0"},children:[a.jsx("p",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:253",style:{color:"rgba(255,255,255,0.4)",fontSize:"0.9rem"}
1131,children:"No active auctions found matching your filters."}),a.jsxs("a",{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:254",href:"https://objkt.com/explore/auctions",target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",marginTop:"1rem",color:"#2c7df7",fontSize:"0.85rem",fontWeight:700,textDecoration:"none"},children:["Browse auctions on objkt.com ",a.jsx(ve,{"data-loc":"client/src/pages/tools/LiveAuctionTrackerPage.tsx:256",size:13})]})]})})]})}function WAe({collector:e,onClose:t}){const{data:r=[],isLoading:n}=ee.tools.collectorProfile.useQuery({address:e.address,limit:8},{staleTime:3e5});E.useEffect(()=>{const i=o=>{o.key==="Escape"&&t()};return window.addEventListener("keydown",i),()=>window.removeEventListener("keydown",i)},[t]);const s=R4(e.rank);return a.jsx("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:22",style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.8)",zIndex:1e3,display:"flex",alignItems:"center",justifyContent:"center",padding:"1rem"},onClick:t,children:a.jsxs("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:24",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"12px",width:"100%",maxWidth:"600px",maxHeight:"85vh",overflow:"hidden",display:"flex",flexDirection:"column"},onClick:i=>i.stopPropagation(),children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:27",style:{padding:"1.5rem",borderBottom:"1px solid rgba(255,255,255,0.08)",display:"flex",alignItems:"center",gap:"1rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:28",style:{width:"52px",height:"52px",borderRadius:"50%",background:`${s}20`,border:`2px solid ${s}60`,overflow:"hidden",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"},children:e.logo?a.jsx("img",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:30",src:e.logo,alt:e.alias||"",style:{width:"100%",height:"100%",objectFit:"cover"},onError:i=>{i.currentTarget.style.display="none"}}):a.jsx("span",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:32",style:{fontSize:"1.2rem"},children:"ð¨"})}),a.jsxs("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:34",style:{flex:1,minWidth:0},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:35",style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[a.jsx("h2",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:36",style:{margin:0,fontSize:"1.1rem",fontWeight:900,color:"#fff"},children:e.alias||`${e.address.slice(0,8)}...${e.address.slice(-4)}`}),a.jsx("span",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:39",style:{fontSize:"0.75rem"},children:D4(e.rank)||`#${e.rank}`})]}),a.jsxs("p",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:41",style:{margin:"2px 0 0",fontSize:"0.72rem",color:s,fontWeight:700},children:[Sg(e.volume)," ê© total spend"]})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:45",style:{display:"flex",gap:"0.5rem",alignItems:"center"},children:[e.twitter&&a.jsx("a",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:47",href:e.twitter,target:"_blank",rel:"noopener noreferrer",style:{color:"rgba(255,255,255,0.4)",transition:"color 0.15s"},onMouseEnter:i=>{i.currentTarget.style.color="#1DA1F2"},onMouseLeave:i=>{i.currentTarget.style.color="rgba(255,255,255,0.4)"},children:a.jsx(vc,{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:50",size:16})}),a.jsxs("a",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:53",href:e.objktUrl,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",padding:"0.4rem 0.875rem",background:"rgba(251,191,36,0.15)",border:"1px solid rgba(251,191,36,0.4)",borderRadius:"4px",color:"#fbbf24",textDecoration:"none",fontSize:"0.72rem",fontWeight:700},children:["objkt ",a.jsx(ve,{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:55",size:11})]}),a.jsx("button",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:57",onClick:t,style:{background:"none",border:"none",cursor:"pointer",color:"rgba(255,255,255,0.4)",padding:"0.2rem",display:"flex",alignItems:"center",transition:"color 0.15s"},onMouseEnter:i=>{i.currentTarget.style.color="#fff"},onMouseLeave:i=>{i.currentTarget.style.color="rgba(255,255,255,0.4)"},children:a.jsx(xr,{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:60",size:18})})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:66",style:{padding:"1.25rem",overflowY:"auto",flex:1},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:67",style:{display:"flex",alignItems:"center",gap:"0.5rem",marginBottom:"1rem"},children:[a.jsx(ine,{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:68",size:14,style:{color:"rgba(255,255,255,0.4)"}}),a.jsx("span",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:69",style:{fontSize:"0.72rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.4)"},children:"Recent Purchases"})]}),n?a.jsx("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:72",style:{display:"flex",flexDirection:"column",gap:"0.5rem"},children:Array.from({length:4}).map((i,o)=>a.jsx("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:73",className:"skeleton",style:{height:"60px",borderRadius:"6px"}},o))}):r.length>0?a.jsx("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:76",style:{display:"flex",flexDirection:"column",gap:"0.5rem"},children:r.map((i,o)=>a.jsx("a",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:78",href:i.objktUrl,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none"},children:a.jsxs("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:79",style:{display:"flex",alignItems:"center",gap:"0.75rem",padding:"0.6rem 0.75rem",background:"rgba(255,255,255,0.03)",borderRadius:"6px",border:"1px solid rgba(255,255,255,0.06)",transition:"background 0.15s"},onMouseEnter:l=>{l.currentTarget.style.background="rgba(255,255,255,0.06)"},onMouseLeave:l=>{l.currentTarget.style.background="rgba(255,255,255,0.03)"},children:[i.thumbnailUri?a.jsx("img",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:83",src:i.thumbnailUri,alt:i.tokenName,style:{width:"40px",height:"40px",borderRadius:"4px",objectFit:"cover",flexShrink:0},onError:l=>{l.currentTarget.style.display="none"}}):a.jsx("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:86",style:{width:"40px",height:"40px",borderRadius:"4px",background:"rgba(255,255,255,0.05)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:"ð¼ï¸"}),a.jsxs("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:88",style:{flex:1,minWidth:0},children:[a.jsx("p",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:89",style:{margin:0,fontSize:"0.82rem",fontWeight:700,color:"#fff",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:i.tokenName}),i.collectionName&&a.jsx("p",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:90",style:{margin:"1px 0 0",fontSize:"0.65rem",color:"rgba(255,255,255,0.4)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:i.collectionName})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:92",style:{textAlign:"right",flexShrink:0},children:[a.jsxs("p",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:93",style:{margin:0,fontSize:"0.88rem",fontWeight:800,color:"#fbbf24"},children:[i.price.toFixed(1)," ê©"]}),a.jsxs("p",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:94",style:{margin:"1px 0 0",fontSize:"0.6rem",color:"rgba(255,255,255,0.3)",display:"flex",alignItems:"center",gap:"0.2rem",justifyContent:"flex-end"},children:[a.jsx(oA,{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:95",size:9})," ",new Date(i.timestamp).toLocaleDateString("en-GB",{day:"numeric",month:"short"})]})]})]})},o))}):a.jsx("p",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:103",style:{color:"rgba(255,255,255,0.3)",fontSize:"0.82rem",textAlign:"center",padding:"2rem 0"},children:"No recent purchases found."})]})]})})}function Sg(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:e.toFixed(0)}function R4(e){return e===1?"#fbbf24":e===2?"#94a3b8":e===3?"#cd7c2f":"rgba(255,255,255,0.2)"}
1131function D4(e){return e===1?"ð¥":e===2?"ð¥":e===3?"ð¥":null}function $Ae(){const[e,t]=E.useState("30"),[r,n]=E.useState("collectors"),[s,i]=E.useState(null),[o,l]=E.useState("volume_total"),[d,u]=E.useState(50);Ie({title:"Top Tezos NFT Collectors, Sellers & Collections | XTZ.News",description:"Leaderboard of the top 1,000 Tezos NFT collectors, artists, and collections ranked by volume. Filter by 7d, 30d, or All Time. USD equivalents included.",keywords:"Tezos NFT collectors, Tezos NFT sellers, Tezos collections, objkt leaderboard, Tezos art",canonical:"https://xtz.news/tools/top-collectors"});const[g,f]=E.useState(!1),[m,y]=E.useState(""),{data:S,isLoading:b}=ee.tools.topCollectors.useQuery({period:e,limit:1e3},{staleTime:5*6e4,refetchInterval:10*6e4}),{data:v,isLoading:j}=ee.tools.topSellers.useQuery({period:e,limit:1e3},{staleTime:5*6e4,refetchInterval:10*6e4}),{data:k,isLoading:P}=ee.tools.topCollections.useQuery({sortBy:o,limit:1e3},{staleTime:5*6e4,refetchInterval:10*6e4}),O=r==="collectors"?S:r==="sellers"?v:k,T=O?.xtzUsd||0,C=O?.results||[],A=m.trim()?C.filter(R=>{const _=m.toLowerCase();return r==="collections"?(R.name||"").toLowerCase().includes(_)||R.contract.toLowerCase().includes(_):(R.alias||"").toLowerCase().includes(_)||R.address.toLowerCase().includes(_)}):C,N=r==="collectors"?b:r==="sellers"?j:P,M=A.slice(0,d),B=C.reduce((R,_)=>R+(_.volume||_.volumeTotal||0),0);return a.jsxs("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:178",style:{background:"#000",minHeight:"100vh"},children:[s&&a.jsx(WAe,{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:180",collector:s,onClose:()=>i(null)}),a.jsx(zr,{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:182",items:[{label:"Top Collectors"}]}),a.jsx("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:185",style:{background:"linear-gradient(135deg, #05152e 0%, #1a0a3e 100%)",borderBottom:"1px solid rgba(255,255,255,0.08)",padding:"2rem 0 1.5rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:186",className:"container",children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:187",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",flexWrap:"wrap",gap:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:188",children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:189",style:{display:"flex",alignItems:"center",gap:"0.6rem",marginBottom:"0.75rem"},children:[a.jsx(fne,{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:190",size:20,style:{color:"#fbbf24"}}),a.jsxs("h1",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:191",style:{margin:0,fontSize:"1.75rem",fontWeight:900,color:"#fff"},children:["Top ",r==="collectors"?"Collectors":"Sellers"]})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:194",style:{display:"flex",gap:"0.4rem",marginBottom:"0.5rem"},children:[a.jsx("button",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:195",onClick:()=>n("collectors"),style:{padding:"0.4rem 1rem",borderRadius:"4px",fontSize:"0.78rem",fontWeight:700,cursor:"pointer",border:r==="collectors"?"1px solid #fbbf24":"1px solid rgba(255,255,255,0.15)",background:r==="collectors"?"rgba(251,191,36,0.15)":"transparent",color:r==="collectors"?"#fbbf24":"rgba(255,255,255,0.5)",transition:"all 0.15s"},children:"ð Collectors"}),a.jsx("button",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:199",onClick:()=>{n("sellers"),u(50)},style:{padding:"0.4rem 1rem",borderRadius:"4px",fontSize:"0.78rem",fontWeight:700,cursor:"pointer",border:r==="sellers"?"1px solid #a78bfa":"1px solid rgba(255,255,255,0.15)",background:r==="sellers"?"rgba(167,139,250,0.15)":"transparent",color:r==="sellers"?"#a78bfa":"rgba(255,255,255,0.5)",transition:"all 0.15s"},children:"ð¨ Artists / Sellers"}),a.jsx("button",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:203",onClick:()=>{n("collections"),u(50)},style:{padding:"0.4rem 1rem",borderRadius:"4px",fontSize:"0.78rem",fontWeight:700,cursor:"pointer",border:r==="collections"?"1px solid #22c55e":"1px solid rgba(255,255,255,0.15)",background:r==="collections"?"rgba(34,197,94,0.15)":"transparent",color:r==="collections"?"#22c55e":"rgba(255,255,255,0.5)",transition:"all 0.15s"},children:"ð¼ï¸ Collections"})]}),a.jsx("p",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:208",style:{margin:0,fontSize:"0.82rem",color:"rgba(255,255,255,0.5)"},children:r==="collectors"?"Most active Tezos NFT collectors ranked by spend volume on objkt.com":r==="sellers"?"Highest-earning Tezos artists ranked by sales volume on objkt.com":"Top Tezos NFT collections ranked by all-time volume, 24h volume, items, or owners"}),r==="collections"&&a.jsx("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:212",style:{display:"flex",gap:"0.4rem",marginTop:"0.5rem",flexWrap:"wrap"},children:[["volume_total","All-Time Vol"],["volume_24h","24h Vol"],["items","Items"],["owners","Owners"]].map(([R,_])=>a.jsx("button",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:214",onClick:()=>{l(R),u(50)},style:{padding:"0.3rem 0.75rem",borderRadius:"3px",fontSize:"0.7rem",fontWeight:700,cursor:"pointer",border:o===R?"1px solid #22c55e":"1px solid rgba(255,255,255,0.12)",background:o===R?"rgba(34,197,94,0.15)":"transparent",color:o===R?"#22c55e":"rgba(255,255,255,0.4)",transition:"all 0.15s"},children:_},R))})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:223",style:{display:"flex",gap:"0.5rem",flexWrap:"wrap",alignItems:"center"},children:[a.jsx("input",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:225",type:"text",value:m,onChange:R=>y(R.target.value),placeholder:"Search by name or address...",style:{flex:"1 1 200px",minWidth:"160px",padding:"0.45rem 0.75rem",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"4px",color:"#fff",fontSize:"0.8rem",outline:"none",fontFamily:"inherit"},onFocus:R=>R.currentTarget.style.borderColor="#fbbf24",onBlur:R=>R.currentTarget.style.borderColor="rgba(255,255,255,0.12)"}),T>0&&a.jsx("button",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:232",onClick:()=>f(!g),style:{padding:"0.45rem 0.875rem",borderRadius:"4px",fontSize:"0.72rem",fontWeight:700,cursor:"pointer",border:g?"1px solid #22c55e":"1px solid rgba(255,255,255,0.15)",background:g?"rgba(34,197,94,0.15)":"transparent",color:g?"#22c55e":"rgba(255,255,255,0.5)",transition:"all 0.15s"},children:g?"$ USD":"ê© XTZ"})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:239",style:{display:"flex",gap:"0.4rem"},children:[["7","7d"],["30","30d"],["all","All Time"]].map(([R,_])=>a.jsx("button",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:241",onClick:()=>t(R),style:{padding:"0.5rem 1rem",borderRadius:"4px",fontSize:"0.75rem",fontWeight:700,cursor:"pointer",border:e===R?"1px solid #fbbf24":"1px solid rgba(255,255,255,0.15)",background:e===R?"rgba(251,191,36,0.15)":"transparent",color:e===R?"#fbbf24":"rgba(255,255,255,0.5)",transition:"all 0.15s"},children:_},R))})]}),C.length>0&&a.jsx("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:251",style:{display:"flex",flexWrap:"wrap",gap:"1.25rem",marginTop:"1.5rem"},children:[{label:`${r==="collectors"?"Collectors":"Artists"}
1131 ranked`,value:C.length.toLocaleString()},{label:`Total volume (${e==="all"?"all time":e+"d"})`,value:`${Sg(B)} ê©`},{label:`Top ${r==="collectors"?"collector":"artist"}`,value:C[0]?.alias||`${C[0]?.address?.slice(0,8)}...`},{label:r==="collectors"?"Top spend":"Top earnings",value:g&&C[0]?.volumeUsd?`$${(C[0].volumeUsd/1e3).toFixed(1)}K`:`${Sg(C[0]?.volume||0)} ê©`},...T>0?[{label:"XTZ Price",value:`$${T.toFixed(3)}`}]:[]].map(({label:R,value:_})=>a.jsxs("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:259",style:{background:"rgba(255,255,255,0.04)",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"6px",padding:"0.75rem 1.25rem"},children:[a.jsx("p",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:260",style:{margin:"0 0 0.2rem",fontSize:"0.6rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.4)"},children:R}),a.jsx("p",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:261",style:{margin:0,fontSize:"1rem",fontWeight:900,color:"#fff"},children:_})]},R))})]})}),a.jsxs("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:270",className:"container",style:{padding:"2rem 1.25rem"},children:[N?a.jsx("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:272",style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:Array.from({length:10}).map((R,_)=>a.jsx("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:274",className:"skeleton",style:{height:"72px",borderRadius:"8px"}},_))}):C.length>0?a.jsx("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:278",style:{display:"flex",flexDirection:"column",gap:"0.5rem"},children:r==="collections"?M.map(R=>{const _=R4(R.rank),W=D4(R.rank),V=o==="volume_24h"?R.volume24h:R.volumeTotal,F=o==="volume_24h"?R.volume24hUsd:R.volumeTotalUsd,I=C[0]?o==="volume_24h"?C[0].volume24h:C[0].volumeTotal:1,U=I>0?V/I*100:0;return a.jsx("a",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:288",href:R.objktUrl,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none"},children:a.jsxs("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:289",style:{background:"#05152e",border:`1px solid ${R.rank<=3?`${_}30`:"rgba(255,255,255,0.07)"}`,borderRadius:"8px",padding:"0.875rem 1.25rem",display:"flex",alignItems:"center",gap:"1rem",transition:"transform 0.15s, border-color 0.15s",position:"relative",overflow:"hidden"},onMouseEnter:q=>{const Z=q.currentTarget;Z.style.transform="translateX(4px)",Z.style.borderColor=`${_}60`},onMouseLeave:q=>{const Z=q.currentTarget;Z.style.transform="translateX(0)",Z.style.borderColor=R.rank<=3?`${_}30`:"rgba(255,255,255,0.07)"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:292",style:{position:"absolute",left:0,top:0,bottom:0,width:`${U}%`,background:`${_}08`,pointerEvents:"none"}}),a.jsx("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:293",style:{width:"2.5rem",flexShrink:0,textAlign:"center"},children:W?a.jsx("span",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:294",style:{fontSize:"1.3rem"},children:W}):a.jsx("span",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:294",style:{fontSize:"1rem",fontWeight:900,color:_},children:R.rank})}),a.jsx("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:296",style:{width:"40px",height:"40px",borderRadius:"6px",background:`${_}20`,border:`2px solid ${_}40`,overflow:"hidden",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"},children:R.logo?a.jsx("img",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:297",src:R.logo,alt:R.name,style:{width:"100%",height:"100%",objectFit:"cover"},onError:q=>{q.currentTarget.style.display="none"}}):a.jsx("span",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:297",style:{fontSize:"1rem"},children:"ð¼ï¸"})}),a.jsxs("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:299",style:{flex:1,minWidth:0},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:300",style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:301",style:{fontSize:"0.92rem",fontWeight:800,color:"#fff",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:R.name}),R.collectionType&&a.jsx("span",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:302",style:{fontSize:"0.58rem",fontWeight:700,padding:"1px 6px",borderRadius:"2px",background:"rgba(34,197,94,0.15)",color:"#22c55e",flexShrink:0},children:R.collectionType})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:304",style:{display:"flex",gap:"0.75rem",marginTop:"2px"},children:[a.jsxs("span",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:305",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.35)"}
1131,children:[R.items?.toLocaleString()," items"]}),a.jsxs("span",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:306",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.35)"},children:[R.owners?.toLocaleString()," owners"]}),R.floorPrice&&a.jsxs("span",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:307",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.35)"},children:["Floor: ",R.floorPrice.toFixed(2)," ê©"]})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:310",style:{textAlign:"right",flexShrink:0},children:[a.jsxs("p",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:311",style:{margin:0,fontSize:"1rem",fontWeight:900,color:_},children:[Sg(V)," ",a.jsx("span",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:312",style:{fontSize:"0.7rem",fontWeight:600},children:"ê©"})]}),F&&a.jsxs("p",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:315",style:{margin:"1px 0 0",fontSize:"0.72rem",fontWeight:700,color:"rgba(34,197,94,0.8)"},children:["$",F>=1e6?(F/1e6).toFixed(1)+"M":F>=1e3?(F/1e3).toFixed(1)+"K":F.toFixed(0)]}),a.jsx("p",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:319",style:{margin:"1px 0 0",fontSize:"0.58rem",color:"rgba(255,255,255,0.25)",fontWeight:600},children:o==="volume_24h"?"24h vol":o==="items"?"items":o==="owners"?"owners":"total vol"})]}),a.jsx(ve,{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:323",size:12,style:{color:"rgba(255,255,255,0.2)",flexShrink:0}})]})},R.contract)}):M.map(R=>{const _=R4(R.rank),W=D4(R.rank),V=C.length>0&&C[0].volume>0?R.volume/C[0].volume*100:0;return a.jsx("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:335",onClick:()=>i(R),style:{cursor:"pointer"},children:a.jsxs("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:337",style:{background:"#05152e",border:`1px solid ${R.rank<=3?`${_}30`:"rgba(255,255,255,0.07)"}`,borderRadius:"8px",padding:"0.875rem 1.25rem",display:"flex",alignItems:"center",gap:"1rem",transition:"transform 0.15s, border-color 0.15s, box-shadow 0.15s",position:"relative",overflow:"hidden"},onMouseEnter:F=>{const I=F.currentTarget;I.style.transform="translateX(4px)",I.style.borderColor=`${_}60`,I.style.boxShadow="0 4px 16px rgba(0,0,0,0.3)"},onMouseLeave:F=>{const I=F.currentTarget;I.style.transform="translateX(0)",I.style.borderColor=R.rank<=3?`${_}30`:"rgba(255,255,255,0.07)",I.style.boxShadow="none"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:348",style:{position:"absolute",left:0,top:0,bottom:0,width:`${V}%`,background:`${_}08`,pointerEvents:"none"}}),a.jsx("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:351",style:{width:"2.5rem",flexShrink:0,textAlign:"center"},children:W?a.jsx("span",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:353",style:{fontSize:"1.3rem"},children:W}):a.jsx("span",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:355",style:{fontSize:"1rem",fontWeight:900,color:_},children:R.rank})}),a.jsx("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:360",style:{width:"40px",height:"40px",borderRadius:"50%",background:`${_}20`,border:`2px solid ${_}40`,overflow:"hidden",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"},children:R.logo?a.jsx("img",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:362",src:R.logo,alt:R.alias||"",style:{width:"100%",height:"100%",objectFit:"cover"},onError:F=>{F.currentTarget.style.display="none"}}):a.jsx("span",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:365",style:{fontSize:"1rem"},children:"ð¨"})}),a.jsxs("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:370",style:{flex:1,minWidth:0},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:371",style:{display:"flex",alignItems:"center",gap:"0.5rem",flexWrap:"wrap"},children:[a.jsx("a",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:372",href:R.objktUrl,target:"_blank",rel:"noopener noreferrer",onClick:F=>F.stopPropagation(),style:{fontSize:"0.92rem",fontWeight:800,color:"#fff",textDecoration:"none",transition:"color 0.15s"},onMouseEnter:F=>{F.currentTarget.style.color=_},onMouseLeave:F=>{F.currentTarget.style.color="#fff"},children:R.alias||`${R.address.slice(0,8)}...${R.address.slice(-4)}`}),R.twitter&&a.jsx("a",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:379",href:R.twitter,target:"_blank",rel:"noopener noreferrer",onClick:F=>F.stopPropagation(),style:{color:"rgba(255,255,255,0.3)",transition:"color 0.15s"},onMouseEnter:F=>{F.currentTarget.style.color="#1DA1F2"},onMouseLeave:F=>{F.currentTarget.style.color="rgba(255,255,255,0.3)"},children:a.jsx(vc,{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:383",size:12})}),R.website&&a.jsx("a",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:387",href:R.website,target:"_blank",rel:"noopener noreferrer",onClick:F=>F.stopPropagation(),style:{color:"rgba(255,255,255,0.3)",transition:"color 0.15s"},onMouseEnter:F=>{F.currentTarget.style.color="#fff"},onMouseLeave:F=>{F.currentTarget.style.color="rgba(255,255,255,0.3)"},children:a.jsx(ba,{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:391",size:12})})]}),R.description&&a.jsx("p",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:396",style:{margin:"1px 0 0",fontSize:"0.72rem",color:"rgba(255,255,255,0.4)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:R.description})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:403",style:{textAlign:"right",flexShrink:0},children:[a.jsxs("p",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:404",style:{margin:0,fontSize:"1rem",fontWeight:900,color:_},children:[Sg(R.volume)," ",a.jsx("span",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:405",style:{fontSize:"0.7rem",fontWeight:600},children:"ê©"})]}),R.volumeUsd&&a.jsxs("p",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:408",style:{margin:"1px 0 0",fontSize:"0.72rem",fontWeight:700,color:"rgba(34,197,94,0.8)"},children:["$",R.volumeUsd>=1e6?(R.volumeUsd/1e6).toFixed(1)+"M":R.volumeUsd>=1e3?(R.volumeUsd/1e3).toFixed(1)+"K":R.volumeUsd.toFixed(0)]}),a.jsxs("p",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:412",style:{margin:"1px 0 0",fontSize:"0.58rem",color:"rgba(255,255,255,0.25)",fontWeight:600},children:[e==="all"?"all time":`${e}d`," ",r==="collectors"?"spend":"earned"]})]}),a.jsx(ve,{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:417",size:12,style:{color:"rgba(255,255,255,0.2)",flexShrink:0}})]})},R.address)})}):a.jsx("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:424",style:{textAlign:"center",padding:"4rem 0"},children:a.jsx("p",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:425",style:{color:"rgba(255,255,255,0.4)"},children:"No data available."})}),A.length>d&&a.jsx("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:431",style:{textAlign:"center",marginTop:"1.5rem"},children:a.jsxs("button",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:432",onClick:()=>u(R=>R+50),style:{padding:"0.75rem 2rem",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.15)",borderRadius:"4px",color:"rgba(255,255,255,0.7)",fontSize:"0.82rem",fontWeight:700,cursor:"pointer",transition:"all 0.2s"},onMouseEnter:R=>{R.currentTarget.style.background="rgba(255,255,255,0.1)",R.currentTarget.style.color="#fff"},onMouseLeave:R=>{R.currentTarget.style.background="rgba(255,255,255,0.06)",R.currentTarget.style.color="rgba(255,255,255,0.7)"},children:["Load More (",A.length-d," remaining)"]})}),A.length>0&&A.length<=d&&A.length>50&&a.jsx("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:441",style:{textAlign:"center",marginTop:"1rem"},children:a.jsxs("p",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:442",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.25)"}
1131,children:["Showing all ",A.length.toLocaleString()," results"]})}),a.jsx("div",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:446",style:{marginTop:"2rem",padding:"1rem 1.25rem",background:"rgba(255,255,255,0.03)",borderRadius:"6px",border:"1px solid rgba(255,255,255,0.06)"},children:a.jsxs("p",{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:447",style:{margin:0,fontSize:"0.72rem",color:"rgba(255,255,255,0.3)",lineHeight:1.5},children:[a.jsx(cr,{"data-loc":"client/src/pages/tools/TopCollectorsPage.tsx:448",size:11,style:{display:"inline",marginRight:"0.3rem",verticalAlign:"middle"}}),"Rankings based on total spend volume on objkt.com for the selected period. Data from the objkt.com public API. Updated every 10 minutes."]})})]})]})}const FAe=[{name:"hic et nunc",contract:"KT1RJ6PbjHpwc3M5rw5s2Nbmefwbuwbdxton"},{name:"fxhash v1",contract:"KT1KEa8z6vWXDJrVqtMrAeDVzsvxoV85NxAp"},{name:"objkt.com Open",contract:"KT1Aq4wWmVanpQhq4TTfjZXB5AjFpx15iQMM"},{name:"Teia",contract:"KT1RJ6PbjHpwc3M5rw5s2Nbmefwbuwbdxton"}];function gB(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:e.toFixed(1)}function HAe(e){const t=Date.now()-new Date(e).getTime(),r=Math.floor(t/6e4);if(r<60)return`${r}m ago`;const n=Math.floor(r/60);return n<24?`${n}h ago`:`${Math.floor(n/24)}d ago`}function qAe(){const[e,t]=E.useState(""),[r,n]=E.useState("");Ie({title:"Tezos Collection Stats | XTZ.News â Floor Price, Volume & Sales",description:"Enter any Tezos NFT collection contract address to see floor price, 24h volume, total volume, items, owners, and recent sales. Powered by objkt.com.",keywords:"Tezos NFT collection stats, objkt collection, floor price, NFT volume, Tezos collection analytics",canonical:"https://xtz.news/tools/collection-stats"});const{data:s,isLoading:i,error:o}=ee.tools.collectionStats.useQuery({contract:r},{enabled:r.length>10,staleTime:5*6e4}),l=()=>{const d=e.trim();d.length>10&&n(d)};return a.jsxs("div",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:51",style:{background:"#000",minHeight:"100vh"},children:[a.jsx(zr,{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:52",items:[{label:"Collection Stats"}]}),a.jsx("div",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:55",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",borderBottom:"1px solid rgba(255,255,255,0.08)",padding:"2rem 0 1.5rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:56",className:"container",children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:57",style:{display:"flex",alignItems:"center",gap:"0.6rem",marginBottom:"0.5rem"},children:[a.jsx($x,{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:58",size:20,style:{color:"#2c7df7"}}),a.jsx("h1",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:59",style:{margin:0,fontSize:"1.75rem",fontWeight:900,color:"#fff"},children:"Collection Stats"})]}),a.jsx("p",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:61",style:{margin:"0 0 1.5rem",fontSize:"0.85rem",color:"rgba(255,255,255,0.5)"},children:"Enter any Tezos NFT collection contract address to see floor price, volume, and recent sales"}),a.jsxs("div",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:66",style:{display:"flex",gap:"0.5rem",flexWrap:"wrap"},children:[a.jsx("input",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:67",type:"text",value:e,onChange:d=>t(d.target.value),onKeyDown:d=>{d.key==="Enter"&&l()},placeholder:"KT1... collection contract address",style:{flex:"1 1 300px",padding:"0.75rem 1rem",background:"rgba(255,255,255,0.08)",border:"1px solid rgba(255,255,255,0.15)",borderRadius:"4px",color:"#fff",fontSize:"0.88rem",outline:"none",fontFamily:"inherit"},onFocus:d=>d.currentTarget.style.borderColor="#2c7df7",onBlur:d=>d.currentTarget.style.borderColor="rgba(255,255,255,0.15)"}),a.jsxs("button",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:77",onClick:l,style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",padding:"0.75rem 1.5rem",background:"#2c7df7",border:"none",borderRadius:"4px",color:"#fff",fontSize:"0.85rem",fontWeight:700,cursor:"pointer",transition:"background 0.2s"},onMouseEnter:d=>{d.currentTarget.style.background="#1a6ae0"},onMouseLeave:d=>{d.currentTarget.style.background="#2c7df7"},children:[a.jsx(ft,{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:81",size:14})," Lookup"]})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:86",style:{display:"flex",flexWrap:"wrap",gap:"0.4rem",marginTop:"0.75rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:87",style:{fontSize:"0.65rem",color:"rgba(255,255,255,0.3)",fontWeight:600,alignSelf:"center"}
1131,children:"Quick:"}),FAe.map(d=>a.jsx("button",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:89",onClick:()=>{t(d.contract),n(d.contract)},style:{padding:"0.25rem 0.75rem",background:"rgba(44,125,247,0.1)",border:"1px solid rgba(44,125,247,0.3)",borderRadius:"3px",color:"#2c7df7",fontSize:"0.7rem",fontWeight:600,cursor:"pointer",transition:"all 0.15s"},onMouseEnter:u=>{u.currentTarget.style.background="rgba(44,125,247,0.2)"},onMouseLeave:u=>{u.currentTarget.style.background="rgba(44,125,247,0.1)"},children:d.name},d.contract))]})]})}),a.jsxs("div",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:101",className:"container",style:{padding:"2rem 1.25rem"},children:[i&&a.jsxs("div",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:103",style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:104",className:"skeleton",style:{height:"120px",borderRadius:"8px"}}),a.jsx("div",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:105",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(160px, 1fr))",gap:"1rem"},children:Array.from({length:6}).map((d,u)=>a.jsx("div",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:106",className:"skeleton",style:{height:"80px",borderRadius:"6px"}},u))})]}),!i&&r&&!s&&a.jsx("div",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:112",style:{textAlign:"center",padding:"3rem 0"},children:a.jsx("p",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:113",style:{color:"rgba(255,255,255,0.4)",fontSize:"0.9rem"},children:"Collection not found. Make sure the contract address is correct."})}),s&&a.jsxs("div",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:118",children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:120",style:{background:"#05152e",border:"1px solid rgba(44,125,247,0.2)",borderRadius:"12px",padding:"1.5rem",marginBottom:"1.5rem",display:"flex",gap:"1.25rem",alignItems:"flex-start",flexWrap:"wrap"},children:[s.logo?a.jsx("img",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:122",src:s.logo,alt:s.name||"",style:{width:"72px",height:"72px",borderRadius:"10px",objectFit:"cover",flexShrink:0,border:"1px solid rgba(255,255,255,0.1)"},onError:d=>{d.currentTarget.style.display="none"}}):a.jsx("div",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:125",style:{width:"72px",height:"72px",borderRadius:"10px",background:"rgba(44,125,247,0.15)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"2rem",flexShrink:0},children:"ð¼ï¸"}),a.jsxs("div",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:127",style:{flex:1,minWidth:0},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:128",style:{display:"flex",alignItems:"center",gap:"0.75rem",flexWrap:"wrap",marginBottom:"0.4rem"},children:[a.jsx("h2",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:129",style:{margin:0,fontSize:"1.3rem",fontWeight:900,color:"#fff"},children:s.name||"Unnamed Collection"}),s.collectionType&&a.jsx("span",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:131",style:{fontSize:"0.62rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",padding:"2px 8px",borderRadius:"3px",background:"rgba(44,125,247,0.15)",color:"#2c7df7",border:"1px solid rgba(44,125,247,0.3)"},children:s.collectionType})]}),s.description&&a.jsx("p",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:137",style:{margin:"0 0 0.75rem",fontSize:"0.82rem",color:"rgba(255,255,255,0.55)",lineHeight:1.5},children:s.description}),a.jsxs("div",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:139",style:{display:"flex",gap:"0.5rem",flexWrap:"wrap",alignItems:"center"},children:[s.creator&&a.jsxs("span",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:141",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.4)"},children:["by ",a.jsx("span",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:141",style:{color:"#2c7df7",fontWeight:700},children:s.creator})]}),s.twitter&&a.jsx("a",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:144",href:s.twitter.startsWith("http")?s.twitter:`https://twitter.com/${s.twitter}`,target:"_blank",rel:"noopener noreferrer",style:{color:"rgba(255,255,255,0.3)",transition:"color 0.15s"},onMouseEnter:d=>{d.currentTarget.style.color="#1DA1F2"},onMouseLeave:d=>{d.currentTarget.style.color="rgba(255,255,255,0.3)"},children:a.jsx(vc,{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:148",size:14})}),s.website&&a.jsx("a",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:152",href:s.website,target:"_blank",rel:"noopener noreferrer",style:{color:"rgba(255,255,255,0.3)",transition:"color 0.15s"},onMouseEnter:d=>{d.currentTarget.style.color="#fff"},onMouseLeave:d=>{d.currentTarget.style.color="rgba(255,255,255,0.3)"},children:a.jsx(ba,{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:156",size:14})}),a.jsxs("a",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:159",href:s.objktUrl,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",padding:"0.3rem 0.75rem",background:"rgba(44,125,247,0.15)",border:"1px solid rgba(44,125,247,0.4)",borderRadius:"4px",color:"#2c7df7",textDecoration:"none",fontSize:"0.7rem",fontWeight:700},children:["View on objkt ",a.jsx(ve,{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:161",size:11})]})]})]})]}),a.jsx("div",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:168",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(150px, 1fr))",gap:"0.875rem",marginBottom:"1.5rem"},children:[{icon:a.jsx(cr,{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:170",size:16}),label:"Floor Price",value:s.floorPrice?`${s.floorPrice.toFixed(2)} ê©`:"â",color:"#22c55e"},{icon:a.jsx($x,{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:171",size:16}),label:"24h Volume",value:`${gB(s.volume24h)} ê©`,color:"#2c7df7"},{icon:a.jsx($x,{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:172",size:16}),label:"Total Volume",value:`${gB(s.volumeTotal)} ê©`,color:"#a78bfa"},{icon:a.jsx(Xre,{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:173",size:16}
1131),label:"Items",value:s.items?.toLocaleString()||"â",color:"#f97316"},{icon:a.jsx(su,{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:174",size:16}),label:"Owners",value:s.owners?.toLocaleString()||"â",color:"#fbbf24"}].map(({icon:d,label:u,value:g,color:f})=>a.jsxs("div",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:176",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"8px",padding:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:177",style:{display:"flex",alignItems:"center",gap:"0.4rem",marginBottom:"0.4rem",color:f},children:[d,a.jsx("span",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:179",style:{fontSize:"0.62rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.4)"},children:u})]}),a.jsx("p",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:181",style:{margin:0,fontSize:"1.1rem",fontWeight:900,color:"#fff"},children:g})]},u))}),s.recentSales.length>0&&a.jsxs("div",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:188",children:[a.jsx("h3",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:189",style:{margin:"0 0 1rem",fontSize:"0.88rem",fontWeight:800,color:"rgba(255,255,255,0.5)",textTransform:"uppercase",letterSpacing:"0.08em"},children:"Recent Sales"}),a.jsx("div",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:190",style:{display:"flex",flexDirection:"column",gap:"0.4rem"},children:s.recentSales.map((d,u)=>a.jsxs("div",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:192",style:{display:"flex",alignItems:"center",gap:"0.75rem",padding:"0.6rem 0.875rem",background:"#05152e",borderRadius:"6px",border:"1px solid rgba(255,255,255,0.06)"},children:[d.thumbnailUri?a.jsx("img",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:194",src:d.thumbnailUri,alt:d.tokenName,style:{width:"36px",height:"36px",borderRadius:"4px",objectFit:"cover",flexShrink:0},onError:g=>{g.currentTarget.style.display="none"}}):a.jsx("div",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:197",style:{width:"36px",height:"36px",borderRadius:"4px",background:"rgba(255,255,255,0.05)",flexShrink:0}}),a.jsxs("div",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:199",style:{flex:1,minWidth:0},children:[a.jsx("p",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:200",style:{margin:0,fontSize:"0.82rem",fontWeight:700,color:"#fff",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:d.tokenName}),d.seller&&a.jsxs("p",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:201",style:{margin:"1px 0 0",fontSize:"0.62rem",color:"rgba(255,255,255,0.35)"},children:["by ",d.seller]})]}),a.jsxs("div",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:203",style:{textAlign:"right",flexShrink:0},children:[a.jsxs("p",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:204",style:{margin:0,fontSize:"0.88rem",fontWeight:800,color:"#22c55e"},children:[d.price.toFixed(1)," ê©"]}),a.jsx("p",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:205",style:{margin:"1px 0 0",fontSize:"0.6rem",color:"rgba(255,255,255,0.3)"},children:HAe(d.timestamp)})]})]},u))})]})]}),!r&&a.jsxs("div",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:216",style:{textAlign:"center",padding:"4rem 0"},children:[a.jsx("div",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:217",style:{fontSize:"3rem",marginBottom:"1rem"},children:"ð¼ï¸"}),a.jsx("p",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:218",style:{color:"rgba(255,255,255,0.4)",fontSize:"0.9rem",marginBottom:"0.5rem"},children:"Enter a Tezos collection contract address above"}),a.jsx("p",{"data-loc":"client/src/pages/tools/CollectionStatsPage.tsx:219",style:{color:"rgba(255,255,255,0.25)",fontSize:"0.78rem"},children:"Or click one of the quick-select collections to get started"})]})]})]})}function UAe({locale:e,source:t,translations:r}){const n=hs[e];return a.jsx("main",{"data-loc":"client/src/components/TranslationRecovery.tsx:18",style:{background:"#000",minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",padding:"1.5rem"},children:a.jsxs("section",{"data-loc":"client/src/components/TranslationRecovery.tsx:19","aria-labelledby":"translation-unavailable-title",style:{width:"min(100%, 620px)",padding:"2rem",background:"#05152e",border:"1px solid rgba(44,125,247,0.25)",borderRadius:"12px",textAlign:"center"},children:[a.jsx(ba,{"data-loc":"client/src/components/TranslationRecovery.tsx:20",size:28,"aria-hidden":"true",style:{color:"#5a9fff",marginBottom:"0.85rem"}}),a.jsx("p",{"data-loc":"client/src/components/TranslationRecovery.tsx:21",style:{margin:"0 0 0.45rem",fontSize:"0.68rem",color:"#5a9fff",fontWeight:800,letterSpacing:"0.1em",textTransform:"uppercase"},children:"Translation status"}),a.jsxs("h1",{"data-loc":"client/src/components/TranslationRecovery.tsx:22",id:"translation-unavailable-title",style:{color:"#fff",margin:"0 0 0.8rem",fontSize:"clamp(1.35rem, 4vw, 2rem)"},children:["Not yet available in ",n]}),a.jsxs("p",{"data-loc":"client/src/components/TranslationRecovery.tsx:23",style:{color:"rgba(255,255,255,0.62)",lineHeight:1.6,margin:"0 auto 1.25rem",maxWidth:"510px"},children:[a.jsx("strong",{"data-loc":"client/src/components/TranslationRecovery.tsx:24",style:{color:"#fff"},children:t.title})," is available in English. Choose the original story or one of the languages that is already published."]}),a.jsxs($,{"data-loc":"client/src/components/TranslationRecovery.tsx:26",href:`/${t.slug}`,style:{display:"inline-flex",alignItems:"center",gap:"0.45rem",padding:"0.7rem 1rem",background:"#2c7df7",borderRadius:"5px",color:"#fff",fontWeight:800,fontSize:"0.82rem",textDecoration:"none",marginBottom:"1.15rem"},children:[a.jsx(ya,{"data-loc":"client/src/components/TranslationRecovery.tsx:27",size:15,"aria-hidden":"true"})," Read the English original"]}),a.jsxs("div",{"data-loc":"client/src/components/TranslationRecovery.tsx:29",style:{paddingTop:"1rem",borderTop:"1px solid rgba(255,255,255,0.08)",textAlign:"left"},children:[a.jsx(mA,{"data-loc":"client/src/components/TranslationRecovery.tsx:30",currentLocale:e,translations:r,label:"Available in"}),a.jsxs($,{"data-loc":"client/src/components/TranslationRecovery.tsx:31",href:`/${e}`,style:{display:"inline-block",marginTop:"1rem",color:"#8cbcff",fontSize:"0.78rem",fontWeight:700,textDecoration:"none"},children:["Browse the ",n," edition â"]})]})]})})}function GAe(){const[e]=Sa(),t=s$(e),r=Vae(e),n=Sy(t),{data:s,isLoading:i}=ee.translations.byLocaleSlug.useQuery({locale:t,slug:r},{enabled:n}),{data:o}=ee.translations.contextBySlug.useQuery({slug:r},{enabled:n&&!!r}),l=kne.includes(t),d=hs[t]??t,u=YW[t]??t;return E.useEffect(()=>{s&&n&&p0(t)},[t,s,n]),Ie({title:s?.metaTitle??s?.title??`${u} â XTZ.News`,description:s?.metaDescription??s?.excerpt??`Tezos news in ${u}`,canonical:s?`https://xtz.news/${t}/${s.slug}`:void 0,ogType:"article"}),n?i?a.jsx("div",{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:61",style:{background:"#000",minHeight:"100vh"},children:a.jsxs("div",{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:62",className:"container",style:{padding:"3rem 1.25rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:63",className:"skeleton",style:{height:"2rem",width:"60%",marginBottom:"1rem"}}),a.jsx("div",{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:64",className:"skeleton",style:{height:"1rem",width:"40%",marginBottom:"2rem"}}),Array.from({length:8}).map((g,f)=>a.jsx("div",{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:66",className:"skeleton",style:{height:"1rem",width:`${80+Math.random()*20}%`,marginBottom:"0.75rem"}},f))]})}):!s&&o?a.jsx(UAe,{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:74",locale:t,source:o.source,translations:o.translations}):s?a.jsxs("div",{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:92",style:{background:"#000",minHeight:"100vh"},dir:l?"rtl":"ltr",lang:t,children:[a.jsx("div",{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:98",style:{background:"rgba(44,125,247,0.1)",borderBottom:"1px solid rgba(44,125,247,0.2)",padding:"0.5rem 0"},children:a.jsxs("div",{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:103",className:"container",style:{display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:"0.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:104",style:{display:"flex",alignItems:"center",gap:"0.5rem",fontSize:"0.75rem",color:"rgba(255,255,255,0.6)"},children:[a.jsx(ba,{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:105",size:12}),a.jsxs("span",{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:106",children:[_o[t]," Reading in ",d," (",u,")"]}),a.jsx("span",{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:107",style:{color:"rgba(255,255,255,0.3)"},children:"·"}),a.jsx("span",{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:108",style:{fontSize:"0.65rem",background:"rgba(255,255,255,0.1)",padding:"0.1rem 0.4rem",borderRadius:"3px"},children:"AI Translated"})]}),a.jsxs($,{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:112",href:`/${r}`,style:{fontSize:"0.72rem",color:"#2c7df7",textDecoration:"none",display:"flex",alignItems:"center",gap:"0.3rem"},children:[a.jsx(ya,{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:116",size:11})," Read in English"]})]})}),a.jsxs("div",{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:122",className:"container",style:{padding:"2.5rem 1.25rem",maxWidth:"760px",margin:"0 auto"},children:[a.jsx("h1",{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:124",style:{fontSize:"clamp(1.6rem, 4vw, 2.4rem)",fontWeight:900,color:"#fff",lineHeight:1.2,marginBottom:"1rem",letterSpacing:"-0.02em",textAlign:l?"right":"left"},children:s.title}),a.jsxs("div",{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:137",style:{display:"flex",alignItems:"center",gap:"0.75rem",marginBottom:"2rem",flexWrap:"wrap"},children:[a.jsxs("div",{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:138",style:{display:"flex",alignItems:"center",gap:"0.3rem",fontSize:"0.75rem",color:"rgba(255,255,255,0.4)"},children:[a.jsx(kre,{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:139",size:11}),a.jsx("span",{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:140",children:new Date(s.translatedAt).toLocaleDateString(t==="zh"?"zh-CN":t==="ko"?"ko-KR":t==="ja"?"ja-JP":t==="ar"?"ar-SA":"en-GB",{year:"numeric",month:"long",day:"numeric"})})]}),a.jsxs("span",{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:142",style:{fontSize:"0.65rem",background:"rgba(44,125,247,0.15)",border:"1px solid rgba(44,125,247,0.3)",color:"#2c7df7",padding:"0.15rem 0.5rem",borderRadius:"3px",fontWeight:700},children:[_o[t]," ",d]})]}),a.jsx(i$,{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:148",takeaways:s.keyTakeaways}),a.jsx(a$,{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:149",html:s.content,className:"post-content",style:{textAlign:l?"right":"left"}}),a.jsxs("div",{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:156",style:{marginTop:"3rem",paddingTop:"1.5rem",borderTop:"1px solid rgba(255,255,255,0.07)",display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:166",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.3)"},children:["ð¤ This article was automatically translated by AI. For the original English version, please"," ",a.jsx($,{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:168",href:`/${r}`,style:{color:"#2c7df7",textDecoration:"none"},children:"click here"}),"."]}),a.jsx(mA,{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:170",currentLocale:t,translations:o?.translations??[],label:"Also available in"})]})]})]}):a.jsx("div",{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:79",style:{background:"#000",minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsxs("div",{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:80",style:{textAlign:"center"},children:[a.jsx("h1",{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:81",style:{color:"#fff",marginBottom:"1rem"},children:"Article not found"}),a.jsxs("p",{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:82",style:{color:"rgba(255,255,255,0.5)",marginBottom:"1.5rem"},children:["This article is not yet available in ",d,"."]}),a.jsx($,{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:85",href:"/",style:{color:"#2c7df7",textDecoration:"none"},children:"â Back to XTZ.News (English)"})]})}):a.jsx("div",{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:50",style:{background:"#000",minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsxs("div",{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:51",style:{textAlign:"center",color:"rgba(255,255,255,0.5)"},children:[a.jsxs("p",{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:52",children:["Invalid language code: ",t]}),a.jsx($,{"data-loc":"client/src/pages/TranslatedArticlePage.tsx:53",href:"/",style:{color:"#2c7df7"},children:"â Back to XTZ.News"})]})})}function VAe(){const[e]=Sa(),t=s$(e),r=Sy(t),{data:n,isLoading:s}=ee.translations.latestByLocale.useQuery({locale:t,limit:24},{enabled:r}),i=hs[t]??t,o=YW[t]??t,l=_o[t]??"ð";return E.useEffect(()=>{r&&p0(t)},[t,r]),Ie({title:`${l} Tezos News in ${o} (${i}) â XTZ.News`,description:`Latest Tezos blockchain news translated into ${o}. XTZ price, DeFi, NFTs, protocol upgrades and ecosystem developments.`,canonical:`https://xtz.news/${t}`}),r?a.jsxs("div",{"data-loc":"client/src/pages/LocaleArchivePage.tsx:47",style:{background:"#000",minHeight:"100vh"},children:[a.jsx("div",{"data-loc":"client/src/pages/LocaleArchivePage.tsx:49",style:{background:"linear-gradient(135deg, #05152e 0%, #0d2a5e 100%)",borderBottom:"1px solid rgba(44,125,247,0.2)",padding:"3rem 0 2.5rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/LocaleArchivePage.tsx:54",className:"container",children:[a.jsxs("div",{"data-loc":"client/src/pages/LocaleArchivePage.tsx:55",style:{display:"flex",alignItems:"center",gap:"0.75rem",marginBottom:"1rem"},children:[a.jsx(ba,{"data-loc":"client/src/pages/LocaleArchivePage.tsx:56",size:16,style:{color:"#2c7df7"}}),a.jsx("span",{"data-loc":"client/src/pages/LocaleArchivePage.tsx:57",style:{fontSize:"0.72rem",fontWeight:700,color:"rgba(255,255,255,0.5)",textTransform:"uppercase",letterSpacing:"0.1em"},children:"International Edition"})]}),a.jsxs("h1",{"data-loc":"client/src/pages/LocaleArchivePage.tsx:61",style:{fontSize:"clamp(1.8rem, 4vw, 2.8rem)",fontWeight:900,color:"#fff",margin:"0 0 0.5rem",lineHeight:1.1},children:[l," XTZ.News â ",i]}),a.jsxs("p",{"data-loc":"client/src/pages/LocaleArchivePage.tsx:64",style:{fontSize:"0.9rem",color:"rgba(255,255,255,0.5)",margin:"0 0 1.5rem"},children:["Tezos blockchain news in ",o," · AI-translated from English"]}),a.jsxs("div",{"data-loc":"client/src/pages/LocaleArchivePage.tsx:68",style:{display:"flex",flexWrap:"wrap",gap:"0.4rem"},children:[a.jsx($,{"data-loc":"client/src/pages/LocaleArchivePage.tsx:69",href:"/",style:{fontSize:"0.7rem",fontWeight:700,color:"rgba(255,255,255,0.5)",background:"rgba(255,255,255,0.07)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"20px",padding:"0.25rem 0.75rem",textDecoration:"none"},children:"ð¬ð§ English"}),c0.map(d=>a.jsxs($,{"data-loc":"client/src/pages/LocaleArchivePage.tsx:73",href:`/${d}`,style:{fontSize:"0.7rem",fontWeight:d===t?800:600,color:d===t?"#2c7df7":"rgba(255,255,255,0.45)",background:d===t?"rgba(44,125,247,0.15)":"rgba(255,255,255,0.06)",border:`1px solid ${d===t?"rgba(44,125,247,0.4)":"rgba(255,255,255,0.1)"}`,borderRadius:"20px",padding:"0.25rem 0.75rem",textDecoration:"none"},children:[_o[d]," ",hs[d]]},d))]})]})}),a.jsx("div",{"data-loc":"client/src/pages/LocaleArchivePage.tsx:95",className:"container",style:{padding:"2.5rem 1.25rem"},children:s?a.jsx("div",{"data-loc":"client/src/pages/LocaleArchivePage.tsx:97",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(280px, 1fr))",gap:"1
1131.5rem"},children:Array.from({length:12}).map((d,u)=>a.jsxs("div",{"data-loc":"client/src/pages/LocaleArchivePage.tsx:99",style:{background:"#05152e",borderRadius:"8px",padding:"1.25rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/LocaleArchivePage.tsx:100",className:"skeleton",style:{height:"140px",marginBottom:"1rem",borderRadius:"6px"}}),a.jsx("div",{"data-loc":"client/src/pages/LocaleArchivePage.tsx:101",className:"skeleton",style:{height:"1rem",width:"80%",marginBottom:"0.5rem"}}),a.jsx("div",{"data-loc":"client/src/pages/LocaleArchivePage.tsx:102",className:"skeleton",style:{height:"0.8rem",width:"60%"}})]},u))}):n?.length?a.jsxs(a.Fragment,{children:[a.jsxs("div",{"data-loc":"client/src/pages/LocaleArchivePage.tsx:119",style:{marginBottom:"1.5rem",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[a.jsxs("h2",{"data-loc":"client/src/pages/LocaleArchivePage.tsx:120",style:{color:"#fff",fontSize:"1.1rem",fontWeight:800,margin:0},children:["Latest Articles â ",i]}),a.jsxs("span",{"data-loc":"client/src/pages/LocaleArchivePage.tsx:123",style:{fontSize:"0.72rem",color:"rgba(255,255,255,0.35)"},children:[n.length," articles"]})]}),a.jsx("div",{"data-loc":"client/src/pages/LocaleArchivePage.tsx:127",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(280px, 1fr))",gap:"1.5rem"},children:n.map(d=>a.jsx($,{"data-loc":"client/src/pages/LocaleArchivePage.tsx:129",href:`/${t}/${d.slug}`,style:{textDecoration:"none",display:"block"},children:a.jsx("div",{"data-loc":"client/src/pages/LocaleArchivePage.tsx:134",style:{background:"#05152e",border:"1px solid rgba(255,255,255,0.07)",borderRadius:"8px",overflow:"hidden",transition:"border-color 0.2s, transform 0.2s",cursor:"pointer"},onMouseEnter:u=>{u.currentTarget.style.borderColor="rgba(44,125,247,0.4)",u.currentTarget.style.transform="translateY(-2px)"},onMouseLeave:u=>{u.currentTarget.style.borderColor="rgba(255,255,255,0.07)",u.currentTarget.style.transform="translateY(0)"},children:a.jsxs("div",{"data-loc":"client/src/pages/LocaleArchivePage.tsx:152",style:{padding:"1.25rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/LocaleArchivePage.tsx:153",style:{display:"flex",alignItems:"center",gap:"0.4rem",marginBottom:"0.6rem"},children:[a.jsxs("span",{"data-loc":"client/src/pages/LocaleArchivePage.tsx:154",style:{fontSize:"0.6rem",fontWeight:700,color:"#2c7df7",textTransform:"uppercase",letterSpacing:"0.08em"},children:[l," ",i]}),a.jsx("span",{"data-loc":"client/src/pages/LocaleArchivePage.tsx:157",style:{fontSize:"0.6rem",color:"rgba(255,255,255,0.25)"},children:"·"}),a.jsx("span",{"data-loc":"client/src/pages/LocaleArchivePage.tsx:158",style:{fontSize:"0.6rem",color:"rgba(255,255,255,0.3)"},children:new Date(d.translatedAt).toLocaleDateString("en-GB",{month:"short",day:"numeric"})})]}),a.jsx("h3",{"data-loc":"client/src/pages/LocaleArchivePage.tsx:162",style:{fontSize:"0.95rem",fontWeight:700,color:"#fff",lineHeight:1.4,margin:"0 0 0.5rem",display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden"},children:d.title}),d.excerpt&&a.jsx("p",{"data-loc":"client/src/pages/LocaleArchivePage.tsx:176",style:{fontSize:"0.8rem",color:"rgba(255,255,255,0.4)",lineHeight:1.5,margin:0,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:d.excerpt})]})})},d.id))})]}):a.jsxs("div",{"data-loc":"client/src/pages/LocaleArchivePage.tsx:107",style:{textAlign:"center",padding:"4rem 0"},children:[a.jsx("div",{"data-loc":"client/src/pages/LocaleArchivePage.tsx:108",style:{fontSize:"3rem",marginBottom:"1rem"},children:l}),a.jsx("h2",{"data-loc":"client/src/pages/LocaleArchivePage.tsx:109",style:{color:"#fff",marginBottom:"0.75rem"},children:"Coming Soon"}),a.jsxs("p",{"data-loc":"client/src/pages/LocaleArchivePage.tsx:110",style:{color:"rgba(255,255,255,0.4)",maxWidth:"400px",margin:"0 auto 1.5rem"},children:["We're working on translating XTZ.News articles into ",i,". Check back soon!"]}),a.jsx($,{"data-loc":"client/src/pages/LocaleArchivePage.tsx:113",href:"/",style:{color:"#2c7df7",textDecoration:"none",fontWeight:700},children:"â Read in English"})]})})]}):a.jsx("div",{"data-loc":"client/src/pages/LocaleArchivePage.tsx:37",style:{background:"#000",minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsxs("div",{"data-loc":"client/src/pages/LocaleArchivePage.tsx:38",style:{textAlign:"center",color:"rgba(255,255,255,0.5)"},children:[a.jsxs("p",{"data-loc":"client/src/pages/LocaleArchivePage.tsx:39",children:["Invalid language: ",t]}),a.jsx($,{"data-loc":"client/src/pages/LocaleArchivePage.tsx:40",href:"/",style:{color:"#2c7df7"},children:"â Back to XTZ.News"})]})})}function pc({title:e,intro:t,children:r}){return a.jsx("main",{"data-loc":"client/src/components/ReaderAuthShell.tsx:7",style:{minHeight:"calc(100vh - 240px)",background:"radial-gradient(circle at 80% -10%, rgba(44,125,247,0.22), transparent 38%), #020914",padding:"4rem 1rem"},children:a.jsxs("section",{"data-loc":"client/src/components/ReaderAuthShell.tsx:8",style:{width:"100%",maxWidth:"460px",margin:"0 auto",padding:"1.6rem",borderRadius:"14px",border:"1px solid rgba(97,151,240,0.28)",background:"rgba(5,21,46,0.94)",boxShadow:"0 18px 48px rgba(0,0,0,0.32)"},children:[a.jsxs($,{"data-loc":"client/src/components/ReaderAuthShell.tsx:9",href:"/",style:{display:"inline-flex",gap:"0.35rem",alignItems:"center",color:"#9cc2ff",textDecoration:"none",fontSize:"0.75rem",fontWeight:800},children:[a.jsx(ya,{"data-loc":"client/src/components/ReaderAuthShell.tsx:9",size:14})," Back to news"]}),a.jsxs("div",{"data-loc":"client/src/components/ReaderAuthShell.tsx:10",style:{display:"flex",gap:"0.75rem",alignItems:"flex-start",marginTop:"1.35rem"},children:[a.jsx("div",{"data-loc":"client/src/components/ReaderAuthShell.tsx:11",style:{width:"38px",height:"38px",flexShrink:0,borderRadius:"10px",display:"grid",placeItems:"center",color:"#a7c9ff",background:"rgba(44,125,247,0.16)"},children:a.jsx(Un,{"data-loc":"client/src/components/ReaderAuthShell.tsx:11",size:20})}),a.jsxs("div",{"data-loc":"client/src/components/ReaderAuthShell.tsx:12",children:[a.jsx("h1",{"data-loc":"client/src/components/ReaderAuthShell.tsx:13",style:{margin:0,color:"#fff",fontSize:"1.45rem",letterSpacing:"-0.02em"},children:e}),a.jsx("p",{"data-loc":"client/src/components/ReaderAuthShell.tsx:14",style:{margin:"0.4rem 0 0",color:"rgba(255,255,255,0.62)",lineHeight:1.55,fontSize:"0.86rem"},children:t})]})]}),a.jsx("div",{"data-loc":"client/src/components/ReaderAuthShell.tsx:17",style:{marginTop:"1.45rem"},children:r})]})})}function XAe(){const[,e]=Sa(),t=As(),r=fA(new URLSearchParams(t).get("returnTo")),[n,s]=E.useState(""),[i,o]=E.useState(""),[l,d]=E.useState(""),u=ee.useUtils(),g=ee.customAuth.login.useMutation({onSuccess:async()=>
1131{await u.auth.me.invalidate(),e(r)},onError:f=>d(f.message)});return a.jsxs(pc,{"data-loc":"client/src/pages/Login.tsx:23",title:"Sign in to XTZ.News",intro:"Keep the Tezos categories you follow and make your For You feed your own.",children:[a.jsxs("form",{"data-loc":"client/src/pages/Login.tsx:24",onSubmit:f=>{f.preventDefault(),d(""),g.mutate({email:n,password:i})},style:{display:"grid",gap:"0.85rem"},children:[a.jsxs("label",{"data-loc":"client/src/pages/Login.tsx:25",style:{display:"grid",gap:"0.35rem",color:"rgba(255,255,255,0.76)",fontSize:"0.78rem",fontWeight:700},children:["Email",a.jsx("input",{"data-loc":"client/src/pages/Login.tsx:25",autoComplete:"email",type:"email",required:!0,value:n,onChange:f=>s(f.target.value),style:ci})]}),a.jsxs("label",{"data-loc":"client/src/pages/Login.tsx:26",style:{display:"grid",gap:"0.35rem",color:"rgba(255,255,255,0.76)",fontSize:"0.78rem",fontWeight:700},children:["Password",a.jsx("input",{"data-loc":"client/src/pages/Login.tsx:26",autoComplete:"current-password",type:"password",required:!0,value:i,onChange:f=>o(f.target.value),style:ci})]}),l&&a.jsx("p",{"data-loc":"client/src/pages/Login.tsx:27",role:"alert",style:d3,children:l}),a.jsx("button",{"data-loc":"client/src/pages/Login.tsx:28",type:"submit",disabled:g.isPending,style:bb,children:g.isPending?"Signing inâ¦":"Sign in"})]}),a.jsxs("p",{"data-loc":"client/src/pages/Login.tsx:30",style:Du,children:[a.jsx($,{"data-loc":"client/src/pages/Login.tsx:30",href:"/forgot-password",style:Lo,children:"Forgot password?"}),a.jsx("span",{"data-loc":"client/src/pages/Login.tsx:30",children:"·"}),a.jsx($,{"data-loc":"client/src/pages/Login.tsx:30",href:`/register?returnTo=${encodeURIComponent(r)}`,style:Lo,children:"Create account"})]})]})}const ci={width:"100%",boxSizing:"border-box",padding:"0.72rem 0.78rem",background:"rgba(255,255,255,0.055)",border:"1px solid rgba(255,255,255,0.16)",borderRadius:"7px",color:"#fff",outline:"none"},bb={padding:"0.78rem 1rem",border:"none",borderRadius:"7px",background:"#2c7df7",color:"#fff",fontWeight:900,cursor:"pointer",fontSize:"0.86rem"},d3={margin:0,padding:"0.62rem 0.72rem",borderRadius:"6px",border:"1px solid rgba(248,113,113,0.5)",background:"rgba(127,29,29,0.22)",color:"#fecaca",fontSize:"0.78rem",lineHeight:1.45},Du={display:"flex",justifyContent:"center",gap:"0.5rem",margin:"1rem 0 0",color:"rgba(255,255,255,0.45)",fontSize:"0.77rem"},Lo={color:"#9cc2ff",fontWeight:700,textDecoration:"none"},KAe=[["At least 8 characters",e=>e.length>=8],["One uppercase letter",e=>/[A-Z]/.test(e)],["One lowercase letter",e=>/[a-z]/.test(e)],["One number",e=>/\d/.test(e)]];function QAe(){const e=As(),t=fA(new URLSearchParams(e).get("returnTo")),[r,n]=E.useState(""),[s,i]=E.useState(""),[o,l]=E.useState(""),[d,u]=E.useState(""),[g,f]=E.useState(""),[m,y]=E.useState(!1),S=ee.customAuth.register.useMutation({onSuccess:()=>y(!0),onError:b=>f(b.message)});return m?a.jsxs(pc,{"data-loc":"client/src/pages/Register.tsx:26",title:"Check your email",intro:"We sent a verification link to activate your reader account.",children:[a.jsx("p",{"data-loc":"client/src/pages/Register.tsx:26",style:{color:"rgba(255,255,255,0.7)",lineHeight:1.6,fontSize:"0.86rem"},children:"Once verified, return here to sign in and follow the Tezos topics you care about."}),a.jsx("p",{"data-loc":"client/src/pages/Register.tsx:26",style:Du,children:a.jsx($,{"data-loc":"client/src/pages/Register.tsx:26",href:"/login",style:Lo,children:"Go to sign in"})})]}):a.jsxs(pc,{"data-loc":"client/src/pages/Register.tsx:27",title:"Create your reader account",intro:"Follow topics and get a compact Tezos news feed shaped by your choices.",children:[a.jsxs("form",{"data-loc":"client/src/pages/Register.tsx:28",onSubmit:b=>{if(b.preventDefault(),f(""),o!==d)return f("Passwords do not match.");S.mutate({name:r,email:s,password:o,origin:window.location.origin})},style:{display:"grid",gap:"0.82rem"},children:[a.jsxs("label",{"data-loc":"client/src/pages/Register.tsx:29",style:Mx,children:["Name",a.jsx("input",{"data-loc":"client/src/pages/Register.tsx:29",autoComplete:"name",required:!0,minLength:2,value:r,onChange:b=>n(b.target.value),style:ci})]}),a.jsxs("label",{"data-loc":"client/src/pages/Register.tsx:30",style:Mx,children:["Email",a.jsx("input",{"data-loc":"client/src/pages/Register.tsx:30",autoComplete:"email",type:"email",required:!0,value:s,onChange:b=>i(b.target.value),style:ci})]}),a.jsxs("label",{"data-loc":"client/src/pages/Register.tsx:31",style:Mx,children:["Password",a.jsx("input",{"data-loc":"client/src/pages/Register.tsx:31",autoComplete:"new-password",type:"password",required:!0,value:o,onChange:b=>l(b.target.value),style:ci})]}),a.jsx("div",{"data-loc":"client/src/pages/Register.tsx:32",style:{display:"grid",gap:"0.22rem",color:"rgba(255,255,255,0.52)",fontSize:"0.7rem"},children:KAe.map(([b,v])=>a.jsxs("span",{"data-loc":"client/src/pages/Register.tsx:32",style:{color:v(o)?"#5fe4b1":"rgba(255,255,255,0.44)"},children:[v(o)?"â":"â"," ",b]},b))}),a.jsxs("label",{"data-loc":"client/src/pages/Register.tsx:33",style:Mx,children:["Confirm password",a.jsx("input",{"data-loc":"client/src/pages/Register.tsx:33",autoComplete:"new-password",type:"password",required:!0,value:d,onChange:b=>u(b.target.value),style:ci})]}),g&&a.jsx("p",{"data-loc":"client/src/pages/Register.tsx:34",role:"alert",style:d3,children:g}),a.jsx("button",{"data-loc":"client/src/pages/Register.tsx:35",type:"submit",disabled:S.isPending,style:bb,children:S.isPending?"Creating accountâ¦":"Create account"})]}),a.jsxs("p",{"data-loc":"client/src/pages/Register.tsx:37",style:Du,children:["Already registered? ",a.jsx($,{"data-loc":"client/src/pages/Register.tsx:37",href:`/login?returnTo=${encodeURIComponent(t)}`,style:Lo,children:"Sign in"})]})]})}const Mx={display:"grid",gap:"0.35rem",color:"rgba(255,255,255,0.76)",fontSize:"0.78rem",fontWeight:700};function YAe(){const[e,t]=E.useState(""),[r,n]=E.useState(!1),s=ee.customAuth.requestPasswordReset.useMutation({onSuccess:()=>n(!0)});return a.jsx(pc,{"data-loc":"client/src/pages/ForgotPassword.tsx:11",title:"Reset your password",intro:"Enter your email and, if an eligible reader account exists, we will send a reset link.",children:r?a.jsxs(a.Fragment,{children:[a.jsx("p",{"data-loc":"client/src/pages/ForgotPassword.tsx:12",style:{color:"rgba(255,255,255,0.7)",lineHeight:1.6},children:"If an eligible account exists, an email is on its way."}),a.jsx("p",{"data-loc":"client/src/pages/ForgotPassword.tsx:12",style:Du,children:a.jsx($,{"data-loc":"client/src/pages/ForgotPassword.tsx:12",href:"/login",style:Lo,children:"Back to sign in"})})]}):a.jsxs("form",{"data-loc":"client/src/pages/ForgotPassword.tsx:12",onSubmit:i=>{i.preventDefault(),s.mutate({email:e,origin:window.location.origin})},style:{display:"grid",gap:"0.9rem"},children:[a.jsxs("label",{"data-loc":"client/src/pages/ForgotPassword.tsx:12",style:{display:"grid",gap:"0.35rem",color:"rgba(255,255,255,0.76)",fontSize:"0.78rem",fontWeight:700},children:["Email",a.jsx("input",{"data-loc":"client/src/pages/ForgotPassword.tsx:12",autoComplete:"email",type:"email",required:!0,value:e,onCh
1131ange:i=>t(i.target.value),style:ci})]}),a.jsx("button",{"data-loc":"client/src/pages/ForgotPassword.tsx:12",type:"submit",disabled:s.isPending,style:bb,children:s.isPending?"Sendingâ¦":"Send reset link"})]})})}function ZAe(){const[,e]=Sa(),t=As(),r=E.useMemo(()=>new URLSearchParams(t).get("token")||"",[t]),[n,s]=E.useState(""),[i,o]=E.useState(""),[l,d]=E.useState(""),u=ee.customAuth.resetPassword.useMutation({onSuccess:()=>e("/login"),onError:g=>d(g.message)});return r?a.jsx(pc,{"data-loc":"client/src/pages/ResetPassword.tsx:16",title:"Choose a new password",intro:"Use at least 8 characters with uppercase, lowercase and a number.",children:a.jsxs("form",{"data-loc":"client/src/pages/ResetPassword.tsx:16",onSubmit:g=>{if(g.preventDefault(),d(""),n!==i)return d("Passwords do not match.");u.mutate({token:r,password:n})},style:{display:"grid",gap:"0.85rem"},children:[a.jsxs("label",{"data-loc":"client/src/pages/ResetPassword.tsx:16",style:fB,children:["New password",a.jsx("input",{"data-loc":"client/src/pages/ResetPassword.tsx:16",autoComplete:"new-password",type:"password",required:!0,value:n,onChange:g=>s(g.target.value),style:ci})]}),a.jsxs("label",{"data-loc":"client/src/pages/ResetPassword.tsx:16",style:fB,children:["Confirm password",a.jsx("input",{"data-loc":"client/src/pages/ResetPassword.tsx:16",autoComplete:"new-password",type:"password",required:!0,value:i,onChange:g=>o(g.target.value),style:ci})]}),l&&a.jsx("p",{"data-loc":"client/src/pages/ResetPassword.tsx:16",role:"alert",style:d3,children:l}),a.jsx("button",{"data-loc":"client/src/pages/ResetPassword.tsx:16",type:"submit",disabled:u.isPending,style:bb,children:u.isPending?"Savingâ¦":"Save new password"})]})}):a.jsx(pc,{"data-loc":"client/src/pages/ResetPassword.tsx:15",title:"Invalid reset link",intro:"This password-reset link is missing its token.",children:a.jsx("p",{"data-loc":"client/src/pages/ResetPassword.tsx:15",style:Du,children:a.jsx($,{"data-loc":"client/src/pages/ResetPassword.tsx:15",href:"/forgot-password",style:Lo,children:"Request a new reset link"})})})}const fB={display:"grid",gap:"0.35rem",color:"rgba(255,255,255,0.76)",fontSize:"0.78rem",fontWeight:700};function JAe(){const e=As(),t=E.useMemo(()=>new URLSearchParams(e).get("token")||"",[e]),r=ee.customAuth.verifyEmail.useMutation();E.useEffect(()=>{t&&!r.isPending&&!r.isSuccess&&r.mutate({token:t})},[t,r]);const n=t?r.isSuccess?"Email verified":r.isError?"Unable to verify email":"Verifying your email":"Invalid verification link",s=t?r.isSuccess?"Your reader account is ready. Sign in to follow Tezos topics.":r.isError?r.error.message:"Please wait while we activate your reader account.":"This link is missing its verification token.";return a.jsx(pc,{"data-loc":"client/src/pages/VerifyEmail.tsx:14",title:n,intro:s,children:a.jsx("p",{"data-loc":"client/src/pages/VerifyEmail.tsx:14",style:Du,children:r.isSuccess?a.jsx($,{"data-loc":"client/src/pages/VerifyEmail.tsx:14",href:"/login",style:Lo,children:"Sign in"}):a.jsx($,{"data-loc":"client/src/pages/VerifyEmail.tsx:14",href:"/register",style:Lo,children:"Create a reader account"})})})}const e7e=[{label:"Octez documentation â Accounts and addresses",href:"https://octez.tezos.com/docs/active/accounts.html"},{label:"Tezos Spotlight â Ushuaia is Live",href:"https://spotlight.tezos.com/ushuaia-is-live/"},{label:"Tezos Docs â Installing and funding a wallet",href:"https://docs.tezos.com/developing/wallet-setup"}],t7e=[["1","Wait for the official network name","Use an announcement from Tezos rather than a link shared in a private message or an unfamiliar chat."],["2","Check the walletâs own release notes","A wallet should explicitly state that it supports tz5 on that exact testing network."],["3","Start with a clean test account","Use only test tez from the named faucet. It has no Mainnet value."],["4","Keep your keys where they belong","Never enter a recovery phrase or private key into a tool just because it mentions tz5 or post-quantum security."]],r7e=[{prefix:"tz1",scheme:"Ed25519",detail:"The familiar default account family in Tezos tooling.",research:!1}
1131,{prefix:"tz2",scheme:"Secp256k1",detail:"An alternative user-account signing scheme.",research:!1},{prefix:"tz3",scheme:"P-256",detail:"An alternative user-account signing scheme.",research:!1},{prefix:"tz4",scheme:"BLS12-381",detail:"An aggregatable-signature account type for specialised use.",research:!1},{prefix:"tz5",scheme:"ML-DSA-44",detail:"The post-quantum account type being evaluated on enabled test networks.",research:!0}];function n7e(){return Ie({title:"tz5 Wallet Guide: Tezos Post-Quantum Accounts Explained | XTZ.News",description:"A plain-English guide to tz5, Tezosâ testnet-stage post-quantum account type: what it is, what it is not, and how to approach future testing safely.",keywords:"tz5 wallet, Tezos post-quantum, ML-DSA-44, Tezos testnet, Tezos wallet guide",canonical:"https://xtz.news/guides/tz5-wallet",jsonLd:[Pa([{question:"What is a tz5 address?",answer:"A tz5 address identifies a Tezos account that uses the ML-DSA-44 signature scheme. It is part of Tezos post-quantum testing work."},{question:"Can I use tz5 for ordinary Mainnet funds?",answer:"No. The tz5 account feature is disabled by default on Tezos Mainnet. It is intended for testnet evaluation while compatible tools and protocol changes are tested."},{question:"Do I need to create a tz5 wallet now?",answer:"No. Ordinary holders do not need to take action. Wait for a public test network and a walletâs own support guidance before attempting any testnet activity."}])]}),a.jsxs("main",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:55",className:"tz5-guide",id:"main-content",children:[a.jsx("section",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:56",className:"tz5-guide-hero",children:a.jsxs("div",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:57",className:"container tz5-guide-shell",children:[a.jsxs("nav",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:58","aria-label":"Breadcrumb",className:"tz5-guide-breadcrumb",children:[a.jsx($,{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:59",href:"/","aria-label":"XTZ.News home",children:a.jsx(Qt,{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:59",size:13})}),a.jsx(Le,{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:60",size:13,"aria-hidden":"true"}),a.jsx("span",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:61",children:"Guides"}),a.jsx(Le,{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:62",size:13,"aria-hidden":"true"}),a.jsx("span",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:63","aria-current":"page",children:"tz5 wallet guide"})]}),a.jsxs("div",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:65",className:"tz5-guide-hero-grid",children:[a.jsxs("div",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:66",children:[a.jsxs("p",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:67",className:"tz5-guide-eyebrow",children:[a.jsx(Fu,{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:67",size:13,"aria-hidden":"true"})," Plain-English guide"]}),a.jsxs("h1",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:68",children:["Understand ",a.jsx("code",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:68",children:"tz5"})," in five minutes."]}),a.jsx("p",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:69",className:"tz5-guide-lede",children:"A practical guide to Tezosâ post-quantum account researchâwhat the address prefix means, what has not changed, and how to approach any future testing safely."}),a.jsxs($,{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:70",href:"/tezos-post-quantum-previewnet-why-now",className:"tz5-guide-hero-link",children:["Read the post-quantum report ",a.jsx(_e,{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:70",size:16,"aria-hidden":"true"})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:72",className:"tz5-guide-hero-signal","aria-label":"tz5 at a glance",children:[a.jsx("span",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:73",className:"tz5-guide-signal-label",children:"Current focus"}),a.jsx("strong",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:74",children:"Testnet research"}),a.jsx("span",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:75",children:"Not a new Mainnet wallet product"})]})]})]})}),a.jsxs("div",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:81",className:"container tz5-guide-shell tz5-guide-content",children:[a.jsxs("section",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:82","aria-label":"Important tz5 status",className:"tz5-guide-status",children:[a.jsx(eh,{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:83","aria-hidden":"true",size:22}),a.jsxs("div",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:84",children:[a.jsx("strong",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:85",children:"Current status: testing work, not an ordinary Mainnet wallet feature."}),a.jsxs("p",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:86",children:["The ",a.jsx("code",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:86",children:"tz5"})," account feature is disabled by default on Tezos Mainnet. Do not move real funds in expectation of using ",a.jsx("code",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:86",children:"tz5"})," today."]})]})]}),a.jsxs("section",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:90","aria-labelledby":"tz5-at-a-glance",className:"tz5-guide-glance-section",children:[a.jsxs("div",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:91",className:"tz5-guide-section-intro",children:[a.jsx("p",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:92",className:"tz5-guide-kicker",children:"Start here"}),a.jsx("h2",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:93",id:"tz5-at-a-glance",children:"The short version"})]}),a.jsxs("div",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:95",className:"tz5-guide-glance-grid",children:[a.jsxs("article",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:96",className:"tz5-guide-glance-card",children:[a.jsx("span",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:97",className:"tz5-guide-icon tz5-guide-icon--blue",children:a.jsx(th,{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:97",size:19,"aria-hidden":"true"})}),a.jsx("h3",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:98",children:"It is an address type"}),a.jsxs("p",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:99",children:[a.jsx("code",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:99",children:"tz5"})," identifies a Tezos account family using ML-DSA-44 signatures. It is not an app or a replacement wallet download."]})]}),a.jsxs("article",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:101",className:"tz5-guide-glance-card",children:[a.jsx("span",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:102",className:"tz5-guide-icon tz5-guide-icon--violet",children:a.jsx(une,{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:102",size:19,"aria-hidden":"true"})}),a.jsx("h3",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:103",children:"It is being tested"}),a.jsx("p",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:104",children:"The work lets wallets and technical tooling be evaluated ahead of any wider protocol decision."})]}),a.jsxs("article",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:106",className:"tz5-guide-glance-card",children:[a.jsx("span",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:107",className:"tz5-guide-icon tz5-guide-icon--gold",children:a.jsx(Un,{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:107",size:19,"aria-hidden":"true"})}),a.jsx("h3",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:108",children:"You do not need to act"}),a.jsx("p",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:109",children:"Continue using your existing Tezos wallet normally. No migration is expected from ordinary Mainnet holders today."})]})]})]}),a.jsxs("section",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:114",id:"address-family-map","aria-labelledby":"tz5-family-map-title",className:"tz5-guide-timeline-section",children:[a.jsxs("div",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:115",className:"tz5-guide-timeline-heading",children:[a.jsxs("div",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:116",children:[a.jsx("p",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:117",className:"tz5-guide-kicker",children:"Address-family map"}),a.jsxs("h2",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:118",id:"tz5-family-map-title",children:["From ",a.jsx("code",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:118",children:"tz1"})," to ",a.jsx("code",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:118",children:"tz5"}),", at a glance"]})]}),a.jsxs("p",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:120",children:["The prefixes identify different cryptographic account families, not wallet versions that users upgrade through. ",a.jsx("code",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:120",children:"tz5"})," is shown last because it is the newer post-quantum research addition."]})]}),a.jsx("ol",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:122",className:"tz5-guide-timeline","aria-label":"Tezos user account prefix comparison",children:r7e.map((e,t)=>a.jsxs("li",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:123",className:e.research?"tz5-guide-timeline-item tz5-guide-timeline-item--research":"tz5-guide-timeline-item",children:[a.jsx("span",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:124",className:"tz5-guide-timeline-line","aria-hidden":"true"}),a.jsx("div",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:125",className:"tz5-guide-timeline-dot","aria-hidden":"true",children:t+1}),a.jsxs("article",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:126",children:[a.jsxs("div",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:127",className:"tz5-guide-timeline-card-header",children:[a.jsx("code",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:127",children:e.prefix}),e.research&&a.jsx("span",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:127",children:"Testnet stage"})]}),a.jsx("h3",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:128",children:e.scheme}),a.jsx("p",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:129",children:e.detail})]})]},e.prefix))}),a.jsxs("p",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:133",className:"tz5-guide-timeline-note",children:[a.jsx(Un,{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:133",size:15,"aria-hidden":"true"})," ",a.jsx("strong",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:133",children:"What has not changed:"})," ordinary Mainnet holders do not need to create or move to a ",a.jsx("code",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:133",children:"tz5"})," account today."]})]}),a.jsxs("div",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:136",className:"tz5-guide-layout",children:[a.jsxs("article",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:137",className:"tz5-guide-article",children:[a.jsxs("section",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:138",id:"what-is-tz5","aria-labelledby":"tz5-meaning",children:[a.jsx("p",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:139",className:"tz5-guide-kicker",children:"01 â Decode the prefix"}),a.jsxs("h2",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:140",id:"tz5-meaning",children:["What does ",a.jsx("code",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:140",children:"tz5"})," actually mean?"]}),a.jsxs("p",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:141",className:"tz5-guide-lead-copy",children:["Think of ",a.jsx("code",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:141",children:"tz5"})," as a label for a different kind of Tezos accountânot as a new wallet you should install. It is part of research that explores how accounts could remain secure in a future with more capable quantum computers."]}),a.jsxs("div",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:142",className:"tz5-guide-prefix-grid","aria-label":"Address prefix comparison",children:[a.jsxs("div",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:143",className:"tz5-guide-prefix-card",children:[a.jsx("span",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:143",children:"Familiar account prefix"}),a.jsx("strong",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:143",children:a.jsx("code",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:143",children:"tz1"})}),a.jsx("p",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:143",children:"The account style many Tezos users already recognise."})]}),a.jsx("div",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:144",className:"tz5-guide-prefix-arrow","aria-hidden":"true",children:a.jsx(_e,{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:144",size:20})}),a.jsxs("div",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:145",className:"tz5-guide-prefix-card tz5-guide-prefix-card--featured",children:[a.jsx("span",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:145",children:"Post-quantum test account prefix"}),a.jsx("strong",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:145",children:a.jsx("code",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:145",children:"tz5"})}),a.jsx("p",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:145",children:"An ML-DSA-44 account type being evaluated through testnet work."})]})]}),a.jsx("p",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:147",children:"It does not mean todayâs Tezos accounts are broken. The point of early testing is to give wallets, custodians and infrastru
1131cture teams time to learn before any broader change is needed."})]}),a.jsxs("section",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:150",id:"what-to-do","aria-labelledby":"tz5-today",children:[a.jsx("p",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:151",className:"tz5-guide-kicker",children:"02 â What this means today"}),a.jsx("h2",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:152",id:"tz5-today",children:"One clear action: stay with your normal wallet."}),a.jsxs("div",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:153",className:"tz5-guide-do-grid",children:[a.jsxs("section",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:154",className:"tz5-guide-do-card tz5-guide-do-card--yes","aria-label":"What to do",children:[a.jsx(Ga,{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:155",size:20,"aria-hidden":"true"}),a.jsxs("div",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:155",children:[a.jsx("h3",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:155",children:"Do"}),a.jsx("p",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:155",children:"Keep using your existing wallet and follow confirmed Tezos announcements for future public testing details."})]})]}),a.jsxs("section",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:157",className:"tz5-guide-do-card tz5-guide-do-card--no","aria-label":"What not to do",children:[a.jsx(hy,{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:158",size:20,"aria-hidden":"true"}),a.jsxs("div",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:158",children:[a.jsx("h3",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:158",children:"Do not"}),a.jsxs("p",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:158",children:["Send real funds to an address or network merely because it mentions ",a.jsx("code",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:158",children:"tz5"}),", quantum security, or a new wallet tool."]})]})]})]})]}),a.jsxs("section",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:163",id:"future-testing","aria-labelledby":"tz5-later",children:[a.jsx("p",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:164",className:"tz5-guide-kicker",children:"03 â When testing is announced"}),a.jsx("h2",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:165",id:"tz5-later",children:"A safer way to approach future testing"}),a.jsx("p",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:166",className:"tz5-guide-lead-copy",children:"If Tezos publishes a public test network and a wallet separately documents support for that exact network, use this simple checklist."}),a.jsx("ol",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:167",className:"tz5-guide-steps",children:t7e.map(([e,t,r])=>a.jsxs("li",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:168",children:[a.jsx("span",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:168",children:e}),a.jsxs("div",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:168",children:[a.jsx("h3",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:168",children:t}),a.jsx("p",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:168",children:r})]})]},e))})]}),a.jsxs("section",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:172",id:"quick-answers","aria-labelledby":"tz5-answers",children:[a.jsx("p",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:173",className:"tz5-guide-kicker",children:"04 â Quick answers"}),a.jsx("h2",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:174",id:"tz5-answers",children:"Common questions"}),a.jsxs("div",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:175",className:"tz5-guide-answers",children:[a.jsxs("details",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:176",open:!0,children:[a.jsxs("summary",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:176",children:["Do I need to create a ",a.jsx("code",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:176",children:"tz5"})," wallet now?"]}),a.jsx("p",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:176",children:"No. There is no ordinary Mainnet migration for holders to complete today. Wait for a named public testing network and an explicit wallet-support announcement."})]}),a.jsxs("details",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:177",children:[a.jsxs("summary",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:177",children:["Does ",a.jsx("code",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:177",children:"tz5"})," mean existing Tezos wallets are unsafe?"]}),a.jsx("p",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:177",children:"No. The research is preparation for a long-term cryptographic transition, not a warning that todayâs accounts have been compromised."})]}),a.jsxs("details",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:178",children:[a.jsxs("summary",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:178",children:["What should I do if someone sends me a ",a.jsx("code",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:178",children:"tz5"})," link?"]}),a.jsx("p",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:178",children:"Do not enter recovery words or private keys. Check the information against official Tezos and your walletâs own published resources first."})]})]})]})]}),a.jsxs("aside",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:183","aria-label":"tz5 guide navigation and sources",className:"tz5-guide-aside",children:[a.jsxs("section",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:184",className:"tz5-guide-aside-card",children:[a.jsx("p",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:185",className:"tz5-guide-aside-label",children:"In this guide"}),a.jsxs("a",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:186",href:"#what-is-tz5",children:["What ",a.jsx("code",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:186",children:"tz5"})," means"]}),a.jsx("a",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:187",href:"#what-to-do",children:"What to do today"}),a.jsx("a",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:188",href:"#future-testing",children:"Future testing checklist"}),a.jsx("a",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:189",href:"#quick-answers",children:"Qu
1131ick answers"})]}),a.jsxs("section",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:191",className:"tz5-guide-aside-card tz5-guide-aside-card--secure",children:[a.jsx(yy,{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:192","aria-hidden":"true",size:20}),a.jsx("h2",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:193",children:"Keep control"}),a.jsx("p",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:194",children:"A recovery phrase and a private key should stay private. A legitimate guide or helper does not need either one."})]}),a.jsxs("section",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:196","aria-labelledby":"tz5-sources",className:"tz5-guide-aside-card tz5-guide-sources",children:[a.jsxs("div",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:197",className:"tz5-guide-sources-title",children:[a.jsx(Pi,{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:197","aria-hidden":"true",size:17}),a.jsx("h2",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:197",id:"tz5-sources",children:"Official reading"})]}),e7e.map(e=>a.jsxs("a",{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:198",href:e.href,target:"_blank",rel:"noopener noreferrer",children:[a.jsx(ve,{"data-loc":"client/src/pages/Tz5WalletGuidePage.tsx:198",size:13,"aria-hidden":"true"}),e.label]},e.href))]})]})]})]})]})}const hB=[{prefix:"tz1",title:"Ed25519 user account",kind:"User account",status:"Established",summary:"The familiar Tezos account family many wallet users recognise.",detail:"tz1 addresses are hashes of Ed25519 public keys. Octez uses this as its default key scheme when generating key pairs.",searchTerms:["ed25519","eddsa","wallet","implicit account","user account"]},{prefix:"tz2",title:"Secp256k1 user account",kind:"User account",status:"Established",summary:"A Tezos account family using the Secp256k1 signing scheme.",detail:"tz2 addresses are hashes of Secp256k1 public keys and use ECDSA signatures.",searchTerms:["secp256k1","ecdsa","wallet","implicit account","user account"]},{prefix:"tz3",title:"P-256 user account",kind:"User account",status:"Established",summary:"A Tezos account family using the P-256 signing scheme.",detail:"tz3 addresses are hashes of P-256 public keys and use ECDSA signatures.",searchTerms:["p-256","secp256r1","ecdsa","hsm","wallet","implicit account"]},{prefix:"tz4",title:"BLS user account",kind:"User account",status:"Established",summary:"A Tezos account family using BLS12-381 signatures, including specialised consensus use.",detail:"BLS signatures can be aggregated, helping reduce signature overhead in certain protocol operations.",searchTerms:["bls","bls12-381","aggregation","baker","consensus","multisig"]},{prefix:"tz5",title:"ML-DSA-44 post-quantum account",kind:"User account",status:"Testnet stage",summary:"A Tezos account family being evaluated for post-quantum security research.",detail:"tz5 addresses use ML-DSA-44. The feature is disabled by default on Tezos Mainnet and is intended for enabled testing networks.",searchTerms:["ml-dsa-44","post quantum","quantum","testnet","wallet","research"]},{prefix:"KT1",title:"Originated smart contract",kind:"Smart contract",status:"Established",summary:"The address prefix for a programmable Tezos smart contract.",detail:"KT1 accounts hold Michelson code, mutable storage, tez, and tickets. They are created through an origination operation.",searchTerms:["contract","michelson","originated account","dapp","storage"]},{prefix:"sr1",title:"Smart Rollup address",kind:"Smart Rollup",status:"Established",summary:"The address prefix for a Tezos Smart Rollup.",detail:"Smart Rollups have their own address and commitment tree; they are not user accounts that hold tez.",searchTerms:["smart rollup","rollup","commitments","layer 2","etherlink"]}];function a7e(e){const t=e.trim().toLowerCase();return t?hB.filter(r=>[r.prefix,r.title,r.kind,r.status,r.summary,r.detail,...r.searchTerms].join(" ").toLowerCase().includes(t)):hB}function s7e(){const[e,t]=E.useState(""),r=E.useMemo(()=>a7e(e),[e]);return Ie({title:"Tezos Address Prefix Glossary: tz1, tz5, KT1 & sr1 | XTZ.News",description:"Search and understand common Tezos address prefixes, including tz1âtz5 user accounts, KT1 smart contracts, and sr1 Smart Rollups.",keywords:"Tezos prefix glossary, tz1, tz2, tz3, tz4, tz5, KT1, sr1, Tezos addresses",canonical:"https://xtz.news/glossary/tezos-prefixes"}),a.jsxs("main",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:19",className:"pq-page pq-glossary",id:"main-content",children:[a.jsx("section",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:20",className:"pq-hero",children:a.jsxs("div",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:21",className:"container pq-shell",children:[a.jsxs("nav",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:22","aria-label":"Breadcrumb",className:"pq-breadcrumb",children:[a.jsx($,{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:22",href:"/","aria-label":"XTZ.News home",children:a.jsx(Qt,{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:22",size:13})}),a.jsx(Le,{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:22",size:13,"aria-hidden":"true"}),a.jsx($,{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:22",href:"/post-quantum",children:"Post-quantum"}),a.jsx(Le,{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:22",size:13,"aria-hidden":"true"}),a.jsx("span",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:22","aria-current":"page",children:"Prefix glossary"})]}),a.jsxs("div",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:23",className:"pq-hero__grid",children:[a.jsxs("div",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:24",children:[a.jsxs("p",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:25",className:"pq-eyebrow",children:[a.jsx(i0,{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:25",size:14,"aria-hidden":"true"})," Searchable reference"]}),a.jsx("h1",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:26",children:"Tezos address prefixes, explained."}),a.jsxs("p",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:27",children:["Search the compact reference for the account, contract, and rollup prefixes you see in Tezos tools. Each entry separates established address families from the current testnet-stage ",a.jsx("code",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:27",children:"tz5"})," research work."]})]}),a.jsxs("div",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:29",className:"pq-hero__callout",children:[a.jsx("strong",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:29",children:"Start with the prefix"}),a.jsx("span",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:29",children:"An address prefix is a useful clueânot a reason to share keys, recovery words, or funds."})]})]})]})}),a.jsx("section",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:34",className:"pq-glossary__content",children:a.jsxs("div",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:35",className:"container pq-shell",children:[a.jsxs("div",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:36",className:"pq-search-panel",children:[a.jsx("label",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:37",htmlFor:"prefix-search",children:"Search terms, prefixes, or account types"}),a.jsxs("div",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:38",className:"pq-search-field",children:[a.jsx(ft,{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:38",size:19,"aria-hidden":"true"}),a.jsx("input",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:38",id:"prefix-search",type:"search",value:e,onCh
1131ange:n=>t(n.target.value),placeholder:"Try tz5, contract, BLS, wallet, or rollup"}),a.jsxs("span",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:38","aria-live":"polite",children:[r.length," ",r.length===1?"match":"matches"]})]}),e&&a.jsxs("button",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:39",type:"button",onClick:()=>t(""),className:"pq-clear-search",children:[a.jsx(Ore,{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:39",size:15,"aria-hidden":"true"})," Clear search"]})]}),a.jsxs("section",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:42","aria-labelledby":"prefix-results-title",children:[a.jsxs("div",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:43",className:"pq-section-title",children:[a.jsxs("div",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:43",children:[a.jsx("p",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:43",children:"Reference entries"}),a.jsx("h2",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:43",id:"prefix-results-title",children:"Find the prefix. Understand the context."})]}),a.jsxs("span",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:43",children:[r.length," shown"]})]}),r.length?a.jsx("div",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:44",className:"pq-glossary-grid",children:r.map(n=>a.jsxs("article",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:44",id:n.prefix.toLowerCase(),className:n.status==="Testnet stage"?"pq-prefix-card pq-prefix-card--research":"pq-prefix-card",children:[a.jsxs("div",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:45",className:"pq-prefix-card__head",children:[a.jsx("code",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:45",children:n.prefix}),a.jsx("span",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:45",children:n.status})]}),a.jsx("p",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:46",className:"pq-prefix-card__type",children:n.kind}),a.jsx("h3",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:47",children:n.title}),a.jsx("p",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:48",children:n.summary}),a.jsx("div",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:49",className:"pq-prefix-card__detail",children:n.detail})]},n.prefix))}):a.jsxs("div",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:50",className:"pq-empty",children:[a.jsx(ft,{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:50",size:22,"aria-hidden":"true"}),a.jsxs("h2",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:50",children:["No prefix matches â",e,"â"]}),a.jsxs("p",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:50",children:["Try a short prefix such as ",a.jsx("code",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:50",children:"KT1"}),", or a term such as âwalletâ, âcontractâ, or ârollupâ."]}),a.jsx("button",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:50",type:"button",onClick:()=>t(""),children:"Show all prefixes"})]})]}),a.jsxs("section",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:53",className:"pq-safety-strip","aria-labelledby":"prefix-safety-title",children:[a.jsx(vy,{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:53",size:22,"aria-hidden":"true"}),a.jsxs("div",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:53",children:[a.jsx("h2",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:53",id:"prefix-safety-title",children:"Address prefixes help you identify technologyânot verify trust."}),a.jsx("p",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:53",children:"Always check a wallet or network announcement against its official publisher. No legitimate guide needs your recovery phrase or private key."})]}),a.jsxs($,{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:53",href:"/guides/tz5-wallet",children:["Read the tz5 safety guide ",a.jsx(_e,{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:53",size:16,"aria-hidden":"true"})]})]}),a.jsxs("p",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:54",className:"pq-source-line",children:["Prefix definitions are based on ",a.jsxs("a",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:54",href:"https://octez.tezos.com/docs/active/accounts.html",target:"_blank",rel:"noopener noreferrer",children:["Octez accounts documentation ",a.jsx(ve,{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:54",size:12,"aria-hidden":"true"})]})," and ",a.jsxs("a",{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:54",href:"https://docs.tezos.com/architecture/accounts",target:"_blank",rel:"noopener noreferrer",children:["Tezos account architecture ",a.jsx(ve,{"data-loc":"client/src/pages/TezosPrefixGlossaryPage.tsx:54",size:12,"aria-hidden":"true"})]}),"."]})]})})]})}function i7e(e){return e?new Date(e).toLocaleDateString("en-GB",{day:"numeric",month:"long",year:"numeric"}):""}
1131const o7e=[{icon:th,title:"tz5 wallet guide",text:"A plain-English explanation of tz5, what ordinary holders should do today, and how to approach future public testing safely.",href:"/guides/tz5-wallet",label:"Read the guide"},{icon:eh,title:"Quantumnet: experimental testnet",text:"Read XTZ.News reporting on Tezosâ live public testnet for evaluating post-quantum accounts, baking rights, consensus and data availability.",href:"/quantumnet-live-tezos-experimental-post-quantum-testnet",label:"Read the Quantumnet story"},{icon:ft,title:"Tezos prefix glossary",text:"Search tz1âtz5, KT1 and sr1 to understand the address families and account types you encounter.",href:"/glossary/tezos-prefixes",label:"Search the glossary"},{icon:Pi,title:"Official post-quantum explainer",text:"Read the Tezos Spotlight overview of the planned post-quantum previewnet and its technical context.",href:"https://spotlight.tezos.com/why-post-quantum-why-now/",label:"Open official source",external:!0}],l7e=[{key:"ml-dsa-44",icon:th,step:"01",area:"Account signatures",term:"ML-DSA-44",plainEnglish:"A post-quantum digital-signature algorithm: it helps prove that an authorised account approved a transaction.",quantumnetRole:"Quantumnet uses it for tz5 accounts instead of the elliptic-curve signatures used by current account types.",readerNote:"For readers: it is research-stage account technology, not a request to move funds or replace a wallet today.",sourceLabel:"NIST FIPS 204",sourceHref:"https://csrc.nist.gov/pubs/fips/204/final"},{key:"xmss",icon:Nre,step:"02",area:"Consensus attestations",term:"XMSS",plainEnglish:"A hash-based digital-signature scheme designed around cryptographic hash functions rather than the usual elliptic-curve approach.",quantumnetRole:"Quantumnet uses XMSS signatures for consensus attestations in place of the BLS signature approach used on Tezos mainnet.",readerNote:"For readers: this is validator and protocol plumbing, not a new public address format.",sourceLabel:"RFC 8391",sourceHref:"https://www.rfc-editor.org/rfc/rfc8391"},{key:"stark-aggregation",icon:rh,step:"03",area:"Batch proof layer",term:"STARK aggregation",plainEnglish:"A compact cryptographic proof for checking a batch of work together, rather than handling every attestation as a separate full-sized record.",quantumnetRole:"The testnet pairs XMSS attestations with a post-quantum STARK aggregation system developed by the LeanEthereum project.",readerNote:"For readers: it is part of the experiment to keep consensus data workable at network scale.",sourceLabel:"Tezos Spotlight",sourceHref:"https://spotlight.tezos.com/introducing-quantumnet/"},{key:"zoda",icon:HW,step:"04",area:"Data availability",term:"ZODA",plainEnglish:"A data-availability design based on two-dimensional tensor codes: it is being evaluated as a way for network participants to check that required data is available.",quantumnetRole:"Quantumnet evaluates ZODA instead of the KZG commitments and proofs currently used by Tezosâ Data Availability Layer.",readerNote:"For readers: it concerns how network data is verified and shared, not ownership of an asset.",sourceLabel:"Tezos Spotlight",sourceHref:"https://spotlight.tezos.com/introducing-quantumnet/"}];function c7e(){const{data:e,isLoading:t}=ee.posts.byTag.useQuery({slug:"post-quantum",limit:12,offset:0},{staleTime:3e5}),r=e?.posts??[];return Ie({title:"Tezos Post-Quantum Hub: tz5 Guides, News & Resources | XTZ.News",description:"A practical hub for Tezos post-quantum research: the tz5 wallet guide, address-prefix glossary, relevant news, and official technical resources.",keywords:"Tezos post-quantum, tz5, ML-DSA-44, Tezos quantum, Tezos previewnet, Tezos wallet guide",canonical:"https://xtz.news/post-quantum"}),a.jsxs("main",{"data-loc":"client/src/pages/PostQuantumPage.tsx:83",className:"pq-page pq-hub",id:"main-content",children:[a.jsx("section",{"data-loc":"client/src/pages/PostQuantumPage.tsx:84",className:"pq-hero pq-hub__hero",children:a.jsxs("div",{"data-loc":"client/src/pages/PostQuantumPage.tsx:85",className:"container pq-shell",children:[a.jsxs("nav",{"data-loc":"client/src/pages/PostQuantumPage.tsx:86","aria-label":"Breadcrumb",className:"pq-breadcrumb",children:[a.jsx($,{"data-loc":"client/src/pages/PostQuantumPage.tsx:86",href:"/","aria-label":"XTZ.News home",children:a.jsx(Qt,{"data-loc":"client/src/pages/PostQuantumPage.tsx:86",size:13})}),a.jsx(Le,{"data-loc":"client/src/pages/PostQuantumPage.tsx:86",size:13,"aria-hidden":"true"}),a.jsx("span",{"data-loc":"client/src/pages/PostQuantumPage.tsx:86","aria-current":"page",children:"Post-quantum hub"})]}),a.jsxs("div",{"data-loc":"client/src/pages/PostQuantumPage.tsx:87",className:"pq-hero__grid",children:[a.jsxs("div",{"data-loc":"client/src/pages/PostQuantumPage.tsx:88",children:[a.jsxs("p",{"data-loc":"client/src/pages/PostQuantumPage.tsx:89",className:"pq-eyebrow",children:[a.jsx(eh,{"data-loc":"client/src/pages/PostQuantumPage.tsx:89",size:14,"aria-hidden":"true"})," Tezos research hub"]}),a.jsx("h1",{"data-loc":"client/src/pages/PostQuantumPage.tsx:90",children:"Post-quantum Tezos, without the noise."}),a.jsxs("p",{"data-loc":"client/src/pages/PostQuantumPage.tsx:91",children:["One place for the latest XTZ.News reporting, a clear ",a.jsx("code",{"data-loc":"client/src/pages/PostQuantumPage.tsx:91",children:"tz5"})," guide, a searchable address-prefix reference, and the official material behind the conversation."]}),a.jsxs("div",{"data-loc":"client/src/pages/PostQuantumPage.tsx:92",className:"pq-hero__actions",children:[a.jsxs($,{"data-loc":"client/src/pages/PostQuantumPage.tsx:92",href:"/guides/tz5-wallet",children:["Start with the tz5 guide ",a.jsx(_e,{"data-loc":"client/src/pages/PostQuantumPage.tsx:92",size:16,"aria-hidden":"true"})]}),a.jsx($,{"data-loc":"client/src/pages/PostQuantumPage.tsx:92",href:"/glossary/tezos-prefixes",children:"Search address prefixes"})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/PostQuantumPage.tsx:94",className:"pq-hub__status",children:[a.jsx("span",{"data-loc":"client/src/pages/PostQuantumPage.tsx:94",children:"Reader status"}),a.jsx("strong",{"data-loc":"client/src/pages/PostQuantumPage.tsx:94",children:"Experimental research"}),a.jsxs("p",{"data-loc":"client/src/pages/PostQuantumPage.tsx:94",children:[a.jsx("code",{"data-loc":"client/src/pages/PostQuantumPage.tsx:94",children:"tz5"})," is not an ordinary Mainnet wallet migration. Follow named official announcements before participating in any public testing."]})]})]})]})}),a.jsx("section",{"data-loc":"client/src/pages/PostQuantumPage.tsx:99",className:"pq-hub__content",children:a.jsxs("div",{"data-loc":"client/src/pages/PostQuantumPage.tsx:100",className:"container pq-shell",children:[a.jsxs("section",{"data-loc":"client/src/pages/PostQuantumPage.tsx:101","aria-labelledby":"pq-start-title",children:[a.jsx("div",{"data-loc":"client/src/pages/PostQuantumPage.tsx:101",className:"pq-section-title",children:a.jsxs("div",{"data-loc":"client/src/pages/PostQuantumPage.tsx:101",children:[a.jsx("p",{"data-loc":"client/src/pages/PostQuantumPage.tsx:101",children:"Featured resources"}),a.jsx("h2",{"data-loc":"client/src/pages/PostQuantumPage.tsx:101",id:"pq-start-title",children:"Start with what you need."})]})}),a.jsx("div",{"data-loc":"client/src/pages/PostQuantumPage.tsx:101",className:"pq-resource-grid",children:o7e.map(({icon:n,title:s,text:i,href:o,label:l,external:d})=>a.jsxs("article",{"data-loc":"client/src/pages/PostQuantumPage.tsx:101",className:"pq-resource-card",children:[a.jsx("span",{"data-loc":"client/src/pages/PostQuantumPage.tsx:101",children:a.jsx(n,{"data-loc":"client/src/pages/PostQuantumPage.tsx:101",size:20,"aria-hidden":"true"})}),a.jsx("h3",{"data-loc":"client/src/pages/PostQuantumPage.tsx:101",children:s}),a.jsx("p",{"data-loc":"client/src/pages/PostQuantumPage.tsx:101",children:i}),d?a.jsxs("a",{"data-loc":"client/src/pages/PostQuantumPage.tsx:101",href:o,target:"_blank",rel:"noopener noreferrer",children:[l," ",a.jsx(ve,{"data-loc":"client/src/pages/PostQuantumPage.tsx:101",size:15,"aria-hidden":"true"})]}):a.jsxs($,{"data-loc":"client/src/pages/PostQuantumPage.tsx:101",href:o,children:[l," ",a.jsx(_e,{"data-loc":"client/src/pages/PostQuantumPage.tsx:101",size:15,"aria-hidden":"true"})]})]},s))})]}),a.jsxs("section",{"data-loc":"client/src/pages/PostQuantumPage.tsx:103",className:"pq-visual-glossary","aria-labelledby":"pq-glossary-title",children:[a.jsxs("div",{"data-loc":"client/src/pages/PostQuantumPage.tsx:104",className:"pq-section-title",children:[a.jsxs("div",{"data-loc":"client/src/pages/PostQuantumPage.tsx:104",children:[a.jsx("p",{"data-loc":"client/src/pages/PostQuantumPage.tsx:104",children:"Visual glossary"}),a.jsx("h2",{"data-loc":"client/src/pages/PostQuantumPage.tsx:104",id:"pq-glossary-title",children:"Four terms behind Quantumnet."})]}),a.jsx("p",{"data-loc":"client/src/pages/PostQuantumPage.tsx:104",className:"pq-visual-glossary__intro",children:"A quick map of what each component does in the experimental testnetânot a guide to moving funds or changing wallets."})]}),a.jsx("div",{"data-loc":"client/src/pages/PostQuantumPage.tsx:105",className:"pq-visual-glossary-grid",children:l7e.map(({key:n,icon:s,step:i,area:o,term:l,plainEnglish:d,quantumnetRole:u,readerNote:g,sourceLabel:f,sourceHref:m})=>a.jsxs("article",{"data-loc":"client/src/pages/PostQuantumPage.tsx:105",id:`pq-glossary-${n}`,className:"pq-visual-glossary-card",children:[a.jsxs("div",{"data-loc":"client/src/pages/PostQuantumPage.tsx:106",className:"pq-visual-glossary-card__top",children:[a.jsx("span",{"data-loc":"client/src/pages/PostQuantumPage.tsx:106",className:"pq-visual-glossary-card__step","aria-hidden":"true",children:i}),a.jsx("span",{"data-loc":"client/src/pages/PostQuantumPage.tsx:106",className:"pq-visual-glossary-card__glyph",children:a.jsx(s,{"data-loc":"client/src/pages/PostQuantumPage.tsx:106",size:22,"aria-hidden":"true"})}),a.jsx("span",{"data-loc":"client/src/pages/PostQuantumPage.tsx:106",className:"pq-visual-glossary-card__area",children:o})]}),a.jsx("h3",{"data-loc":"client/src/pages/PostQuantumPage.tsx:107",children:l}),a.jsxs("p",{"data-loc":"client/src/pages/PostQuantumPage.tsx:108",className:"pq-visual-glossary-card__plain",children:[a.jsx("strong",{"data-loc":"client/src/pages/PostQuantumPage.tsx:108",children:"Plain English:"})," ",d]}),a.jsxs("p",{"data-loc":"client/src/pages/PostQuantumPage.tsx:109",className:"pq-visual-glossary-card__role",children:[a.jsx("strong",{"data-loc":"client/src/pages/PostQuantumPage.tsx:109",children:"In Quantumnet:"})," ",u]}),a.jsx("p",{"data-loc":"client/src/pages/PostQuantumPage.tsx:110",className:"pq-visual-glossary-card__note",children:g}),a.jsxs("a",{"data-loc":"client/src/pages/PostQuantumPage.tsx:111",href:m,target:"_blank",rel:"noopener noreferrer",children:["Source: ",f," ",a.jsx(ve,{"data-loc":"client/src/pages/PostQuantumPage.tsx:111",size:13,"aria-hidden":"true"})]})]},n))})]}),a.jsxs("section",{"data-loc":"client/src/pages/PostQuantumPage.tsx:115",className:"pq-hub__news","aria-labelledby":"pq-news-title",children:[a.jsxs("div",{"data-loc":"client/src/pages/PostQuantumPage.tsx:115",className:"pq-section-title",children:[a.jsxs("div",{"data-loc":"client/src/pages/PostQuantumPage.tsx:115",children:[a.jsx("p",{"data-loc":"client/src/pages/PostQuantumPage.tsx:115",children:"XTZ.News coverage"}),a.jsx("h2",{"data-loc":"client/src/pages/PostQuantumPage.tsx:115",id:"pq-news-title",children:"Post-quantum reporting and context"})]}),a.jsxs($,{"data-loc":"client/src/pages/PostQuantumPage.tsx:115",href:"/tag/post-quantum",children:["View the topic archive ",a.jsx(_e,{"data-loc":"client/src/pages/PostQuantumPage.tsx:115",size:15,"aria-hidden":"true"})]})]}),t?a.jsxs("div",{"data-loc":"client/src/pages/PostQuantumPage.tsx:115",className:"pq-article-grid","aria-label":"Loading post-quantum articles",children:[a.jsx("div",{"data-loc":"client/src/pages/PostQuantumPage.tsx:115",className:"skeleton pq-card-skeleton"}),a.jsx("div",{"data-loc":"client/src/pages/PostQuantumPage.tsx:115",className:"skeleton pq-card-skeleton"})]}):r.length?a.jsx("div",{"data-loc":"client/src/pages/PostQuantumPage.tsx:115",className:"pq-article-grid",children:r.map(n=>a.jsxs($,{"data-loc":"client/src/pages/PostQuantumPage.tsx:115",href:`/${n.slug}`,className:"pq-article-card",children:[a.jsx("div",{"data-loc":"client/src/pages/PostQuantumPage.tsx:115",className:"pq-article-card__image",children:n.featuredImageUrl?a.jsx("img",{"data-loc":"client/src/pages/PostQuantumPage.tsx:115",src:Je(n.featuredImageUrl),alt:n.featuredImageAlt||n.title}):a.jsx("div",{"data-loc":"client/src/pages/PostQuantumPage.tsx:115","aria-hidden":"true"})}),a.jsxs("div",{"data-loc":"client/src/pages/PostQuantumPage.tsx:115",className:"pq-article-card__body",children:[a.jsx("span",{"data-loc":"client/src/pages/PostQuantumPage.tsx:115",children:i7e(n.publishedAt)}),a.jsx("h3",{"data-loc":"client/src/pages/PostQuantumPage.tsx:115",children:n.title}),a.jsx("p",{"data-loc":"client/src/pages/PostQuantumPage.tsx:115",children:n.excerpt}),a.jsxs("b",{"data-loc":"client/src/pages/PostQuantumPage.tsx:115",children:["Read article ",a.jsx(_e,{"data-loc":"client/src/pages/PostQuantumPage.tsx:115",size:15,"aria-hidden":"true"})]})]})]},n.id))}):a.jsxs("div",{"data-loc":"client/src/pages/PostQuantumPage.tsx:115",className:"pq-empty",children:[a.jsx(XW,{"data-loc":"client/src/pages/PostQuantumPage.tsx:115",size:22,"aria-hidden":"true"}),a.jsx("h2",{"data-loc":"client/src/pages/PostQuantumPage.tsx:115",children:"More coverage is on the way"}),a.jsx("p",{"data-loc":"client/src/pages/PostQuantumPage.tsx:115",children:"Use the guide and official reading links while XTZ.News continues to follow public post-quantum updates."})]})]}),a.jsxs("section",{"data-loc":"client/src/pages/PostQuantumPage.tsx:117",className:"pq-hub__principle","aria-label":"Post-quantum reader principle",children:[a.jsx(Un,{"data-loc":"client/src/pages/PostQuantumPage.tsx:117",size:24,"aria-hidden":"true"}),a.jsxs("div",{"data-loc":"client/src/pages/PostQuantumPage.tsx:117",children:[a.jsx("strong",{"data-loc":"client/src/pages/PostQuantumPage.tsx:117",children:"Keep the distinction clear."}),a.jsx("p",{"data-loc":"client/src/pages/PostQuantumPage.tsx:117",children:"Research, test networks and address formats are not instructions to move real funds. Check official publisher and wallet guidance before taking action."})]})]})]})})]})}const d7e=[{icon:Pi,title:"What is Etherlink?",text:"Official background on Etherlink as a Tezos execution layer, its EVM and Michelson interfaces, and where to begin.",href:"https://docs.etherlink.com/"},{icon:nne,title:"Bridge XTZ between layers",text:"Read the current official bridge instructions, including deposit and withdrawal timing context, before moving assets.",href:"https://docs.etherlink.com/evm/bridging/bridging-tezos/"},{icon:rh,title:"Explore Etherlink",text:"Use the official Etherlink explorer to inspect public addresses, transactions, tokens, and network activity.",href:"https://explorer.etherlink.com/"}],mB=[{question:"What is Etherlink?",answer:"Etherlink is a non-cu
1131stodial execution layer for Tezos powered by Tezos Smart Rollup technology. Its official documentation describes EVM and Michelson interfaces for the same blockchain."},{question:"Can I bridge XTZ between Tezos and Etherlink?",answer:"The official Etherlink bridge supports transfers between Tezos layer 1 and Etherlink EVM. Read the current official bridge instructions and timing information before initiating a transfer."},{question:"Is Etherlink a separate token?",answer:"Etherlink uses XTZ as its native coin. Its documentation also describes WXTZ, an ERC-20-compatible wrapped representation for use in relevant EVM applications."}];function u7e(e){return e?new Date(e).toLocaleDateString("en-GB",{day:"numeric",month:"long",year:"numeric"}):""}function p7e(){const{data:e,isLoading:t}=ee.posts.byTag.useQuery({slug:"etherlink",limit:12,offset:0},{staleTime:3e5}),r=e?.posts??[];return Ie({title:"Etherlink Hub: Tezos EVM News, Bridge & Resources | XTZ.News",description:"A source-led Etherlink hub for Tezos readers: XTZ.News coverage, EVM and Michelson context, bridge documentation, and official network resources.",keywords:"Etherlink Tezos, Etherlink EVM, Etherlink bridge, bridge XTZ to Etherlink, Etherlink explorer, Tezos EVM",canonical:"https://xtz.news/etherlink",jsonLd:[ka({title:"Etherlink Hub",description:"Source-led Etherlink news, bridge context, and official Tezos ecosystem resources.",url:"https://xtz.news/etherlink",breadcrumbs:[{name:"Home",url:"https://xtz.news"},{name:"Etherlink Hub",url:"https://xtz.news/etherlink"}]}),Pa(mB)]}),a.jsxs("main",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:61",id:"main-content",style:{background:"#000",minHeight:"100vh",color:"#fff"},children:[a.jsx("section",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:62",style:{background:"radial-gradient(circle at 85% 5%, rgba(44,125,247,0.36), transparent 34%), linear-gradient(135deg, #05152e 0%, #0a214a 55%, #071631 100%)",borderBottom:"1px solid rgba(96,165,250,0.25)",padding:"3.5rem 0 3rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:63",className:"container",style:{maxWidth:"1100px"},children:[a.jsxs("nav",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:64","aria-label":"Breadcrumb",style:{display:"flex",alignItems:"center",gap:"0.35rem",color:"rgba(255,255,255,0.55)",fontSize:"0.76rem",marginBottom:"1.35rem"},children:[a.jsx($,{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:65",href:"/","aria-label":"XTZ.News home",style:{color:"inherit"},children:"Home"}),a.jsx(Le,{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:65",size:13,"aria-hidden":"true"}),a.jsx("span",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:65","aria-current":"page",children:"Etherlink hub"})]}),a.jsxs("div",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:67",style:{display:"grid",gridTemplateColumns:"minmax(0,1.55fr) minmax(230px,0.6fr)",gap:"2rem",alignItems:"end"},className:"etherlink-hero-grid",children:[a.jsxs("div",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:68",children:[a.jsxs("p",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:69",style:{margin:0,color:"#86b9ff",fontSize:"0.7rem",fontWeight:900,letterSpacing:"0.14em",textTransform:"uppercase",display:"flex",alignItems:"center",gap:"0.45rem"},children:[a.jsx(rh,{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:69",size:15,"aria-hidden":"true"})," Tezos execution layer"]}),a.jsx("h1",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:70",style:{fontSize:"clamp(2.25rem, 5vw, 4.4rem)",lineHeight:.98,letterSpacing:"-0.055em",maxWidth:"12ch",margin:"0.75rem 0 1rem",fontWeight:950},children:"Etherlink, explained for Tezos readers."}),a.jsx("p",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:71",style:{maxWidth:"65ch",color:"rgba(255,255,255,0.72)",lineHeight:1.7,fontSize:"1rem",margin:0},children:"Follow Etherlink news and technical context, then move into the official documentation for bridging, public network data, and getting started."}),a.jsxs("div",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:72",style:{display:"flex",gap:"0.7rem",flexWrap:"wrap",marginTop:"1.4rem"},children:[a.jsxs("a",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:73",href:"#etherlink-coverage",style:{background:"#2c7df7",color:"#fff",borderRadius:"8px",padding:"0.75rem 1rem",textDecoration:"none",fontWeight:800,fontSize:"0.82rem",display:"inline-flex",alignItems:"center",gap:"0.4rem"},children:["Read XTZ.News coverage ",a.jsx(_e,{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:73",size:15,"aria-hidden":"true"})]}),a.jsxs($,{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:74",href:"/etherlink/bridge",style:{border:"1px solid rgba(125,211,252,0.42)",color:"#c8edff",borderRadius:"8px",padding:"0.75rem 1rem",textDecoration:"none",fontWeight:800,fontSize:"0.82rem",display:"inline-flex",alignItems:"center",gap:"0.4rem"},children:[a.jsx(a0,{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:74",size:14,"aria-hidden":"true"})," Bridge explainer"]}),a.jsxs("a",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:75",href:"https://docs.etherlink.com/",target:"_blank",rel:"noopener noreferrer",style:{border:"1px solid rgba(255,255,255,0.23)",color:"#fff",borderRadius:"8px",padding:"0.75rem 1rem",textDecoration:"none",fontWeight:800,fontSize:"0.82rem",display:"inline-flex",alignItems:"center",gap:"0.4rem"},children:["Official docs ",a.jsx(ve,{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:75",size:14,"aria-hidden":"true"})]})]})]}),a.jsxs("aside",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:78","aria-label":"Etherlink reader note",style:{borderLeft:"1px solid rgba(147,197,253,0.35)",paddingLeft:"1.15rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:79",style:{display:"block",color:"#86b9ff",fontSize:"0.64rem",fontWeight:900,letterSpacing:"0.13em",textTransform:"uppercase"},children:"Read first"}),a.jsx("strong",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:80",style:{display:"block",fontSize:"1.05rem",marginTop:"0.35rem"},children:"Use current official bridge guidance."}),a.jsx("p",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:81",style:{color:"rgba(255,255,255,0.62)",fontSize:"0.82rem",lineHeight:1.55,margin:"0.45rem 0 0"},children:"Bridge paths and timing can differ. Check the official instructions before acting."})]})]})]})}),a.jsxs("div",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:87",className:"container",style:{maxWidth:"1100px",padding:"3rem 1.25rem 4.5rem"},children:[a.jsxs("section",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:88","aria-labelledby":"etherlink-start-title",children:[a.jsx("p",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:89",style:{margin:0,color:"#68a4ff",fontSize:"0.68rem",fontWeight:900,letterSpacing:"0.13em",textTransform:"uppercase"},children:"Start with trusted sources"}),a.jsx("h2",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:90",id:"etherlink-start-title",style:{fontSize:"clamp(1.45rem, 3vw, 2.1rem)",margin:"0.4rem 0 1.2rem",letterSpacing:"-0.03em"},children:"A clearer path through Etherlink."}),a.jsx("div",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:91",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(230px, 1fr))",gap:"0.9rem"},children:d7e.map(({icon:n,title:s,text:i,href:o})=>a.jsxs("article",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:92",style:{padding:"1.2rem",borderRadius:"12px",border:"1px solid rgba(96,165,250,0.2)",background:"linear-gradient(135deg, rgba(7,22,49,0.92), rgba(8,32,72,0.68))"},children:[a.jsx(n,{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:93",size:20,"aria-hidden":"true",style:{color:"#68a4ff"}}),a.jsx("h3",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:94",style:{margin:"0.75rem 0 0.4rem",fontSize:"1.02rem"},children:s}),a.jsx("p",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:95",style:{margin:0,color:"rgba(255,255,255,0.62)",fontSize:"0.83rem",lineHeight:1.55},children:i}),a.jsxs("a",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:96",href:o,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",gap:"0.35rem",alignItems:"center",color:"#8abaff",fontWeight:800,fontSize:"0.76rem",textDecoration:"none",marginTop:"0.9rem"},children:["Open official source ",a.jsx(ve,{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:96",size:13,"aria-hidden":"true"})]})]},s))})]}),a.jsxs("section",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:101","aria-labelledby":"etherlink-bridge-guide-title",style:{marginTop:"3.5rem",padding:"1.25rem",borderRadius:"13px",border:"1px solid rgba(125,211,252,0.25)",background:"linear-gradient(115deg, rgba(7,42,75,0.82), rgba(5,21,46,0.94))",display:"grid",gridTemplateColumns:"auto minmax(0,1fr) auto",gap:"1rem",alignItems:"center"},className:"etherlink-bridge-guide-promo",children:[a.jsx("span",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:102","aria-hidden":"true",style:{display:"grid",placeItems:"center",width:"46px",height:"46px",borderRadius:"10px",background:"rgba(125,211,252,0.14)",color:"#7dd3fc"},children:a.jsx(a0,{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:102",size:23})}),a.jsxs("div",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:103",children:[a.jsx("p",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:103",style:{margin:0,color:"#7dd3fc",fontSize:"0.64rem",fontWeight:900,letterSpacing:"0.12em",textTransform:"uppercase"},children:"Practical guide"}),a.jsx("h2",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:103",id:"etherlink-bridge-guide-title",style:{margin:"0.25rem 0",fontSize:"1.2rem"},children:"Understand the Etherlink bridge before you use it."}),a.jsx("p",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:103",style:{margin:0,color:"rgba(255,255,255,0.65)",lineHeight:1.5,fontSize:"0.84rem"},children:"A clear explanation of deposits, withdrawals, timing context, and the official route to check before a transfer."})]}),a.jsxs($,{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:104",href:"/etherlink/bridge",style:{background:"#7dd3fc",color:"#061a39",padding:"0.7rem 0.85rem",borderRadius:"7px",fontSize:"0.76rem",fontWeight:900,textDecoration:"none",whiteSpace:"nowrap"},children:["Read explainer ",a.jsx(_e,{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:104",size:14,"aria-hidden":"true"})]})]}),a.jsxs("section",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:107",id:"etherlink-coverage","aria-labelledby":"etherlink-coverage-title",style:{marginTop:"3.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:108",style:{display:"flex",justifyContent:"space-between",gap:"1rem",alignItems:"end",flexWrap:"wrap",marginBottom:"1.15rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:109",children:[a.jsx("p",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:109",style:{margin:0,color:"#68a4ff",fontSize:"0.68rem",fontWeight:900,letterSpacing:"0.13em",textTransform:"uppercase"},children:"XTZ.News coverage"}),a.jsx("h2",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:109",id:"etherlink-coverage-title",style:{margin:"0.35rem 0 0",fontSize:"clamp(1.45rem, 3vw, 2.1rem)",letterSpacing:"-0.03em"},children:"Etherlink news and analysis"})]}),a.jsxs($,{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:110",href:"/tag/etherlink",style:{color:"#8abaff",fontWeight:800,fontSize:"0.8rem",textDecoration:"none",display:"inline-flex",gap:"0.35rem",alignItems:"center"},children:["View the Etherlink archive ",a.jsx(_e,{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:110",size:14,"aria-hidden":"true"})]})]}),t?a.jsxs("div",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:112",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(240px, 1fr))",gap:"0.9rem"},"aria-label":"Loading Etherlink coverage",children:[a.jsx("div",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:112",className:"skeleton",style:{height:"270px"}}),a.jsx("div",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:112",className:"skeleton",style:{height:"270px"}})]}):r.length?a.jsx("div",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:112",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(240px, 1fr))",gap:"0.9rem"},children:r.map(n=>a.jsxs($,{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:112",href:`/${n.slug}`,style:{textDecoration:"none",color:"inherit",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"12px",overflow:"hidden",background:"#061a39"},children:[a.jsx("div",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:112",style:{aspectRatio:"16 / 8",background:"#09234e"},children:n.featuredImageUrl&&a.jsx("img",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:112",src:Je(n.featuredImageUrl),alt:n.featuredImageAlt||n.title,style:{width:"100%",height:"100%",objectFit:"cover"}})}),a.jsxs("div",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:112",style:{padding:"1rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:112",style:{color:"rgba(255,255,255,0.45)",fontSize:"0.7rem"},children:u7e(n.publishedAt)}),a.jsx("h3",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:112",style:{margin:"0.45rem 0",fontSize:"1rem",lineHeight:1.28},children:n.title}),a.jsx("p",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:112",style:{color:"rgba(255,255,255,0.56)",margin:0,fontSize:"0.8rem",lineHeight:1.5},children:n.excerpt}),a.jsxs("b",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:112",style:{display:"inline-flex",marginTop:"0.8rem",color:"#8abaff",fontSize:"0.76rem",alignItems:"center",gap:"0.3rem"},children:["Read article ",a.jsx(_e,{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:112",size:13,"aria-hidden":"true"})]})]})]},n.id))}):a.jsx("div",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:112",style:{padding:"1.5rem",borderRadius:"10px",border:"1px solid rgba(255,255,255,0.1)",color:"rgba(255,255,255,0.65)",background:"#061a39"},children:"Etherlink coverage is being added to the XTZ.News archive. Use the official reading links above for current network guidance."})]}),a.jsxs("section",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:115","aria-labelledby":"etherlink-faq-title",style:{marginTop:"3.5rem",maxWidth:"800px"},children:[a.jsx("p",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:116",style:{margin:0,color:"#68a4ff",fontSize:"0.68rem",fontWeight:900,letterSpacing:"0.13em",textTransform:"uppercase"}
1131,children:"Quick answers"}),a.jsx("h2",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:117",id:"etherlink-faq-title",style:{margin:"0.35rem 0 1rem",fontSize:"clamp(1.45rem, 3vw, 2.1rem)",letterSpacing:"-0.03em"},children:"Etherlink questions, answered carefully"}),mB.map(n=>a.jsxs("details",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:118",style:{borderTop:"1px solid rgba(255,255,255,0.13)",padding:"0.85rem 0"},children:[a.jsx("summary",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:118",style:{cursor:"pointer",fontWeight:800,color:"#fff",fontSize:"0.95rem"},children:n.question}),a.jsx("p",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:118",style:{color:"rgba(255,255,255,0.62)",lineHeight:1.6,margin:"0.7rem 1.4rem 0 0",fontSize:"0.88rem"},children:n.answer})]},n.question))]}),a.jsxs("section",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:121","aria-label":"Etherlink safety note",style:{display:"flex",gap:"0.85rem",alignItems:"flex-start",marginTop:"3rem",padding:"1.1rem",borderRadius:"12px",border:"1px solid rgba(96,165,250,0.22)",background:"rgba(16,45,92,0.5)"},children:[a.jsx(Un,{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:121",size:22,style:{color:"#86b9ff",flexShrink:0},"aria-hidden":"true"}),a.jsxs("div",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:121",children:[a.jsx("strong",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:121",children:"Keep the purpose clear."}),a.jsx("p",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:121",style:{color:"rgba(255,255,255,0.62)",margin:"0.35rem 0 0",lineHeight:1.55,fontSize:"0.85rem"},children:"This hub is for ecosystem context and official-source discovery. It does not replace current wallet, bridge, or transaction guidance from the relevant provider."})]})]})]}),a.jsx("style",{"data-loc":"client/src/pages/EtherlinkHubPage.tsx:123",children:"@media (max-width: 700px) { .etherlink-bridge-guide-promo { grid-template-columns: auto minmax(0,1fr) !important; } .etherlink-bridge-guide-promo > a { grid-column: 1 / -1; justify-self: start; } }"})]})}const xB=[{question:"What does bridging XTZ to Etherlink mean?",answer:"The official Etherlink documentation calls a transfer from Tezos layer 1 to Etherlink EVM a deposit. It moves XTZ into the Etherlink EVM context so it can be used there."},{question:"How long does an Etherlink bridge transfer take?",answer:"Official documentation says deposits from Tezos layer 1 are available on Etherlink immediately. Standard withdrawals back to Tezos layer 1 are normally available after 15 days; the optional fast-withdrawal path has a fee and may be available within approximately one minute."},{question:"Which bridge should I use?",answer:"Use the current official Etherlink bridge and verify the website address, selected network, asset, destination, and displayed timing before confirming any transaction."}],g7e="https://bridge.etherlink.com/tezos",yB="https://docs.etherlink.com/evm/bridging/bridging-tezos/",f7e=[{number:"01",title:"Identify the direction",body:"A Tezos layer 1 â Etherlink EVM transfer is a deposit. An Etherlink EVM â Tezos layer 1 transfer is a withdrawal.",icon:a0},{number:"02",title:"Open the official bridge",body:"Start from the official Etherlink bridge or its documentationân
1131ot from an unsolicited link or an unfamiliar lookalike site.",icon:sA},{number:"03",title:"Check the route before you sign",body:"Confirm the selected source network, destination network, asset, amount, wallet addresses, and the timing shown by the official interface.",icon:Ga},{number:"04",title:"Keep the reference",body:"Save the transaction reference and use the official bridge explorer or your wallet activity to follow the public status.",icon:rh}];function h7e(){return Ie({title:"How to Bridge XTZ to Etherlink: Timing & Safety Guide | XTZ.News",description:"A plain-English Etherlink bridge explainer: deposits, withdrawals, timing context, and the official resources to review before moving XTZ between Tezos and Etherlink.",keywords:"bridge XTZ to Etherlink, Etherlink bridge, Tezos to Etherlink, Etherlink withdrawal, Etherlink deposit",canonical:"https://xtz.news/etherlink/bridge",jsonLd:[ka({title:"How to Bridge XTZ to Etherlink",description:"A source-grounded guide to Etherlink bridge directions, timing context, and official resources.",url:"https://xtz.news/etherlink/bridge",breadcrumbs:[{name:"Home",url:"https://xtz.news"},{name:"Etherlink Hub",url:"https://xtz.news/etherlink"},{name:"Bridge XTZ",url:"https://xtz.news/etherlink/bridge"}]}),Pa(xB)]}),a.jsxs("main",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:53",id:"main-content",style:{minHeight:"100vh",background:"#000",color:"#fff"},children:[a.jsx("section",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:54",style:{background:"radial-gradient(circle at 88% 0%, rgba(56,189,248,0.25), transparent 34%), linear-gradient(135deg, #061a39 0%, #071631 58%, #020817 100%)",borderBottom:"1px solid rgba(125,211,252,0.22)",padding:"3.35rem 0 3rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:55",className:"container",style:{maxWidth:"1080px"},children:[a.jsxs("nav",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:56","aria-label":"Breadcrumb",style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.35rem",color:"rgba(255,255,255,0.55)",fontSize:"0.76rem",marginBottom:"1.25rem"},children:[a.jsx($,{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:57",href:"/",style:{color:"inherit"},children:"Home"}),a.jsx(Le,{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:57",size:13,"aria-hidden":"true"}),a.jsx($,{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:57",href:"/etherlink",style:{color:"inherit"},children:"Etherlink Hub"}),a.jsx(Le,{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:57",size:13,"aria-hidden":"true"}),a.jsx("span",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:57","aria-current":"page",children:"Bridge explainer"})]}),a.jsxs("div",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:59",className:"bridge-hero-grid",style:{display:"grid",gridTemplateColumns:"minmax(0,1.45fr) minmax(240px,0.62fr)",alignItems:"end",gap:"2.25rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:60",children:[a.jsxs("p",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:61",style:{margin:0,color:"#7dd3fc",fontSize:"0.68rem",fontWeight:900,letterSpacing:"0.14em",textTransform:"uppercase",display:"flex",alignItems:"center",gap:"0.42rem"},children:[a.jsx(a0,{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:61",size:15,"aria-hidden":"true"})," Etherlink bridge explainer"]}),a.jsx("h1",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:62",style:{margin:"0.75rem 0 1rem",maxWidth:"12ch",fontSize:"clamp(2.2rem, 5vw, 4.4rem)",lineHeight:.98,letterSpacing:"-0.06em",fontWeight:950},children:"Bridge XTZ with the timing in mind."}),a.jsx("p",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:63",style:{margin:0,maxWidth:"65ch",color:"rgba(255,255,255,0.74)",lineHeight:1.7,fontSize:"1.02rem"},children:"A practical reading guide for understanding the direction, the official route, and the different timing expectations when moving XTZ between Tezos layer 1 and Etherlink EVM."}),a.jsxs("div",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:64",style:{display:"flex",flexWrap:"wrap",gap:"0.7rem",marginTop:"1.45rem"},children:[a.jsxs("a",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:65",href:g7e,target:"_blank",rel:"noopener noreferrer",style:{background:"#2c7df7",color:"#fff",padding:"0.78rem 1rem",borderRadius:"8px",fontWeight:850,fontSize:"0.82rem",textDecoration:"none",display:"inline-flex",alignItems:"center",gap:"0.4rem"},children:["Open official bridge ",a.jsx(ve,{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:65",size:14,"aria-hidden":"true"})]}),a.jsxs("a",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:66",href:yB,target:"_blank",rel:"noopener noreferrer",style:{border:"1px solid rgba(255,255,255,0.24)",color:"#fff",padding:"0.78rem 1rem",borderRadius:"8px",fontWeight:850,fontSize:"0.82rem",textDecoration:"none",display:"inline-flex",alignItems:"center",gap:"0.4rem"},children:["Read official instructions ",a.jsx(ve,{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:66",size:14,"aria-hidden":"true"})]})]})]}),a.jsxs("aside",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:69","aria-label":"Important bridge timing",style:{padding:"1.1rem",background:"rgba(3,15,35,0.64)",border:"1px solid rgba(125,211,252,0.28)",borderRadius:"13px"},children:[a.jsx($W,{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:70",size:21,style:{color:"#7dd3fc"},"aria-hidden":"true"}),a.jsx("p",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:71",style:{margin:"0.65rem 0 0.25rem",color:"#9edcff",textTransform:"uppercase",letterSpacing:"0.12em",fontWeight:900,fontSize:"0.64rem"},children:"The key difference"}),a.jsx("strong",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:72",style:{display:"block",fontSize:"1.04rem",lineHeight:1.3},children:"Deposits and withdrawals do not follow the same timing path."}),a.jsx("p",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:73",style:{margin:"0.55rem 0 0",color:"rgba(255,255,255,0.62)",fontSize:"0.82rem",lineHeight:1.55},children:"Review the official bridgeâs current timing before you confirm a transfer."})]})]})]})}),a.jsxs("div",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:79",className:"container",style:{maxWidth:"1080px",padding:"3rem 1.25rem 4.5rem"},children:[a.jsxs("section",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:80","aria-labelledby":"bridge-directions-title",children:[a.jsx("p",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:81",style:{margin:0,color:"#7dd3fc",fontSize:"0.68rem",fontWeight:900,letterSpacing:"0.13em",textTransform:"uppercase"},children:"The route at a glance"}),a.jsx("h2",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:82",id:"bridge-directions-title",style:{margin:"0.4rem 0 1rem",fontSize:"clamp(1.45rem, 3vw, 2.1rem)",letterSpacing:"-0.035em"},children:"Two directions. Different expectations."}),a.jsxs("div",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:83",className:"bridge-direction-grid",style:{display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",gap:"0.9rem"},children:[a.jsxs("article",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:84",style:{padding:"1.35rem",borderRadius:"12px",border:"1px solid rgba(74,222,128,0.26)",background:"linear-gradient(135deg, rgba(4,58,45,
11310.62), rgba(5,21,46,0.9))"},children:[a.jsx("span",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:85",style:{display:"inline-flex",padding:"0.25rem 0.48rem",borderRadius:"999px",background:"rgba(74,222,128,0.15)",color:"#86efac",fontSize:"0.64rem",fontWeight:900,letterSpacing:"0.1em",textTransform:"uppercase"},children:"Deposit"}),a.jsx("h3",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:86",style:{margin:"0.7rem 0 0.35rem",fontSize:"1.15rem"},children:"Tezos layer 1 â Etherlink EVM"}),a.jsx("p",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:87",style:{margin:0,color:"rgba(255,255,255,0.66)",lineHeight:1.6,fontSize:"0.88rem"},children:"Official documentation states that XTZ deposited from Tezos layer 1 is available for use on Etherlink immediately. Check the official interface for the selected asset and network before confirming."})]}),a.jsxs("article",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:89",style:{padding:"1.35rem",borderRadius:"12px",border:"1px solid rgba(251,191,36,0.3)",background:"linear-gradient(135deg, rgba(81,49,8,0.6), rgba(5,21,46,0.9))"},children:[a.jsx("span",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:90",style:{display:"inline-flex",padding:"0.25rem 0.48rem",borderRadius:"999px",background:"rgba(251,191,36,0.15)",color:"#fde68a",fontSize:"0.64rem",fontWeight:900,letterSpacing:"0.1em",textTransform:"uppercase"},children:"Withdrawal"}),a.jsx("h3",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:91",style:{margin:"0.7rem 0 0.35rem",fontSize:"1.15rem"},children:"Etherlink EVM â Tezos layer 1"}),a.jsx("p",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:92",style:{margin:0,color:"rgba(255,255,255,0.66)",lineHeight:1.6,fontSize:"0.88rem"},children:"Standard withdrawals are normally available after 15 days. The official bridge may offer a faster route for a fee; compare the displayed terms and timing before proceeding."})]})]})]}),a.jsxs("section",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:97","aria-labelledby":"bridge-steps-title",style:{marginTop:"3.5rem"},children:[a.jsx("p",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:98",style:{margin:0,color:"#7dd3fc",fontSize:"0.68rem",fontWeight:900,letterSpacing:"0.13em",textTransform:"uppercase"},children:"Before you confirm"}),a.jsx("h2",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:99",id:"bridge-steps-title",style:{margin:"0.4rem 0 1.15rem",fontSize:"clamp(1.45rem, 3vw, 2.1rem)",letterSpacing:"-0.035em"},children:"A safer bridge-reading sequence."}),a.jsx("div",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:100",className:"bridge-steps-grid",style:{display:"grid",gridTemplateColumns:"repeat(4, minmax(0, 1fr))",gap:"0.75rem"},children:f7e.map(({number:e,title:t,body:r,icon:n})=>a.jsxs("article",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:101",style:{padding:"1rem",borderRadius:"12px",border:"1px solid rgba(255,255,255,0.11)",background:"#061a39"},children:[a.jsxs("div",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:102",style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"0.5rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:102",style:{color:"#7dd3fc",fontSize:"0.7rem",fontWeight:900,letterSpacing:"0.1em"},children:e}),a.jsx(n,{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:102",size:18,color:"#7dd3fc","aria-hidden":"true"})]}),a.jsx("h3",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:103",style:{margin:"0.75rem 0 0.38rem",fontSize:"0.98rem",lineHeight:1.25},children:t}),a.jsx("p",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:104",style:{margin:0,color:"rgba(255,255,255,0.6)",fontSize:"0.8rem",lineHeight:1.55},children:r})]},e))})]}),a.jsxs("section",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:109","aria-labelledby":"bridge-timing-title",style:{marginTop:"3.5rem",display:"grid",gridTemplateColumns:"minmax(0,1.2fr) minmax(260px,0.7fr)",gap:"1.4rem",alignItems:"start"},className:"bridge-timing-grid",children:[a.jsxs("div",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:110",children:[a.jsx("p",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:111",style:{margin:0,color:"#7dd3fc",fontSize:"0.68rem",fontWeight:900,letterSpacing:"0.13em",textTransform:"uppercase"},children:"Why the return route takes longer"}),a.jsx("h2",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:112",id:"bridge-timing-title",style:{margin:"0.4rem 0 0.75rem",fontSize:"clamp(1.45rem, 3vw, 2.1rem)",letterSpacing:"-0.035em"},children:"Withdrawal timing is part of the design, not a stuck transaction."}),a.jsx("p",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:113",style:{margin:0,color:"rgba(255,255,255,0.68)",lineHeight:1.7},children:"The official documentation explains that Etherlinkâs standard return path waits for the Smart Rollup refutation period before the corresponding commitment is cemented on Tezos layer
11311. That is why a standard withdrawal can have a materially longer wait than a deposit.[1]"}),a.jsx("p",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:114",style:{margin:"0.8rem 0 0",color:"rgba(255,255,255,0.68)",lineHeight:1.7},children:"If the bridge offers a fast withdrawal, it is a separate option with a fee. Treat the timing and fee shown in the official interface as the source of truth for that specific transfer.[1]"})]}),a.jsxs("aside",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:116",style:{padding:"1.15rem",borderRadius:"12px",border:"1px solid rgba(251,191,36,0.3)",background:"rgba(75,45,5,0.33)"},children:[a.jsx(pne,{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:116",size:22,color:"#fde68a","aria-hidden":"true"}),a.jsx("strong",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:116",style:{display:"block",marginTop:"0.65rem",fontSize:"1rem"},children:"Do not treat a standard withdrawal as instant liquidity."}),a.jsx("p",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:116",style:{color:"rgba(255,255,255,0.64)",fontSize:"0.83rem",lineHeight:1.55,margin:"0.55rem 0 0"},children:"Read the direction and displayed timing before confirming. Do not use a route whose timing does not match your needs."})]})]}),a.jsxs("section",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:119","aria-labelledby":"bridge-faq-title",style:{maxWidth:"820px",marginTop:"3.5rem"},children:[a.jsx("p",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:120",style:{margin:0,color:"#7dd3fc",fontSize:"0.68rem",fontWeight:900,letterSpacing:"0.13em",textTransform:"uppercase"},children:"Quick answers"}),a.jsx("h2",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:121",id:"bridge-faq-title",style:{margin:"0.4rem 0 0.85rem",fontSize:"clamp(1.45rem, 3vw, 2.1rem)",letterSpacing:"-0.035em"},children:"Common Etherlink bridge questions"}),xB.map(e=>a.jsxs("details",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:122",style:{padding:"0.9rem 0",borderTop:"1px solid rgba(255,255,255,0.13)"},children:[a.jsx("summary",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:122",style:{cursor:"pointer",fontWeight:800,fontSize:"0.95rem"},children:e.question}),a.jsx("p",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:122",style:{color:"rgba(255,255,255,0.64)",lineHeight:1.6,fontSize:"0.86rem",margin:"0.7rem 1.4rem 0 0"},children:e.answer})]},e.question))]}),a.jsxs("section",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:125","aria-label":"Bridge guide next steps",style:{marginTop:"3.25rem",padding:"1.2rem",borderRadius:"12px",background:"linear-gradient(135deg, rgba(44,125,247,0.18), rgba(5,21,46,0.9))",border:"1px solid rgba(96,165,250,0.28)",display:"flex",alignItems:"flex-start",gap:"0.8rem"},children:[a.jsx(vy,{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:125",size:22,color:"#8ac0ff","aria-hidden":"true"}),a.jsxs("div",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:125",children:[a.jsx("strong",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:125",children:"Use the guide to understand the routeânot as a substitute for the bridge interface."}),a.jsx("p",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:125",style:{margin:"0.35rem 0 0.75rem",color:"rgba(255,255,255,0.66)",lineHeight:1.55,fontSize:"0.84rem"},children:"Before making a transfer, verify the current official bridge URL and the direction, asset, destination, fee, and timing shown there."}),a.jsxs($,{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:125",href:"/etherlink",style:{color:"#8ac0ff",textDecoration:"none",fontWeight:850,fontSize:"0.8rem",display:"inline-flex",alignItems:"center",gap:"0.35rem"},children:["Back to the Etherlink hub ",a.jsx(_e,{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:125",size:14,"aria-hidden":"true"})]})]})]}),a.jsxs("p",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:127",style:{margin:"2rem 0 0",color:"rgba(255,255,255,0.42)",fontSize:"0.73rem",lineHeight:1.55},children:["[1] ",a.jsx("a",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:127",href:yB,target:"_blank",rel:"noopener noreferrer",style:{color:"#8ac0ff"}
1131,children:"Bridging XTZ between Tezos layer 1 and Etherlink EVM â official Etherlink documentation"}),"."]})]}),a.jsx("style",{"data-loc":"client/src/pages/EtherlinkBridgeGuidePage.tsx:129",children:"@media (max-width: 700px) { .bridge-hero-grid, .bridge-timing-grid, .bridge-direction-grid { grid-template-columns: 1fr !important; } .bridge-steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }"})]})}const bB=[{question:"What is a Tezos wallet?",answer:"A Tezos wallet is an application that maintains your account and signs Tezos transactions on your behalf. Wallets allow dApp interaction without exposing the account private key."},{question:"Which Tezos wallet should I use?",answer:"Wallet choice depends on your needs and preferred form factor. Consult the current official Tezos wallet documentation and each wallet providerâs own information before installing or using a wallet."},{question:"What is the difference between tz1 and KT1?",answer:"Tezos user accounts can use prefixes such as tz1, tz2, tz3, or tz4. KT1 identifies a smart contract. Use the XTZ.News prefix glossary for a plain-English reference."},{question:"Do I need a tz5 wallet today?",answer:"No. The XTZ.News tz5 guide covers testnet-stage post-quantum research. It is not an ordinary Mainnet wallet migration or a reason to move real funds."}],m7e=[{number:"01",title:"Choose the form factor",body:"Start with the official Tezos wallet guide to compare the currently documented browser, mobile, desktop, identity-linked, and hardware options.",icon:Yg,href:"https://docs.tezos.com/developing/wallet-setup",external:!0},{number:"02",title:"Create and protect access",body:"Follow your selected walletâs own setup instructions. Keep recovery information and private keys private; a legitimate helper should not need them.",icon:th,href:"https://docs.tezos.com/developing/wallet-setup",external:!0},{number:"03",title:"Recognise the address",body:"Learn the common Tezos prefixes before copying or sharing an address. User accounts and smart contracts are not the same thing.",icon:Pi,href:"/glossary/tezos-prefixes",external:!1},{number:"04",title:"Use read-only tools first",body:"Explore public wallet and chain information without connecting a wallet, then decide what you want to do next.",icon:lA,href:"/tools/wallet",external:!1}],x7e=[{title:"Tezos Wallet Inspector",copy:"Look up public balances, tokens, delegation, and activity without connecting a wallet.",href:"/tools/wallet",icon:lA},{title:"Tezos address-prefix glossary",copy:"Understand `tz1`â`tz5`, `KT1`, and `sr1` before you act on an address.",href:"/glossary/tezos-prefixes",icon:Pi},{title:"Tezos staking guide",copy:"Learn how delegation and baker rewards work before exploring staking options.",href:"/staking",icon:Un},{title:"tz5 wallet guide",copy:"Learn about the separate testnet-stage post-quantum account research without treating it as a Mainnet migration.",href:"/guides/tz5-wallet",icon:th}],y7e=[{name:"Temple",type:"Browser extension and mobile app",note:"A Tezos wallet option listed in the official setup guide.",href:"https://templewallet.com/"},{name:"Umami",type:"Desktop application",note:"A Windows, macOS, and Linux option listed in the official setup guide.",href:"https://umamiwallet.com/"},{name:"Kukai",type:"Identity-linked application",note:"An account option that can use linked identity methods, listed in official Tezos documentation.",href:"https://wallet.kukai.app/"},{name:"Trust Wallet",type:"Mobile app and browser extension",note:"A Tezos-compatible option listed in the official setup guide.",href:"https://trustwallet.com/tezos-wallet"},{name:"AirGap",type:"Standalone and mobile apps",note:"A Tezos wallet option listed in the official setup guide.",href:"https://airgap.it/"},{name:"Ledger",type:"Hardware wallet",note:"A hardware-wallet option listed in the official setup guide.",href:"https://www.ledger.com/"},{name:"MetaMask",type:"Browser extension on Mainnet",note:"Official documentation describes Tezos support through the MetaMask browser extension and Tezos Snap flow on Mainnet.",href:"https://metamask.tezos.com/"}];
1131function b7e(){return Ie({title:"Tezos Wallet Starter Guide: First Steps for New Users | XTZ.News",description:"A clear Tezos wallet starter hub for new users: official wallet setup guidance, address prefixes, read-only tools, staking context, and safe next steps.",keywords:"Tezos wallet, Tezos wallet guide, Tezos wallet setup, tz1 wallet, Tezos address, Tezos wallet beginner guide",canonical:"https://xtz.news/wallets",jsonLd:[ka({title:"Tezos Wallet Starter Guide",description:"A plain-English start page for Tezos wallets, account prefixes, and safe next steps.",url:"https://xtz.news/wallets",breadcrumbs:[{name:"Home",url:"https://xtz.news"},{name:"Tezos Wallet Starter",url:"https://xtz.news/wallets"}]}),Pa(bB)]}),a.jsxs("main",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:55",id:"main-content",style:{minHeight:"100vh",background:"#000",color:"#fff"},children:[a.jsx("section",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:56",style:{background:"radial-gradient(circle at 84% 12%, rgba(34,197,94,0.21), transparent 30%), radial-gradient(circle at 16% 0%, rgba(44,125,247,0.3), transparent 37%), linear-gradient(135deg, #05152e, #071b3c 58%, #030a18)",borderBottom:"1px solid rgba(96,165,250,0.2)",padding:"3.35rem 0 3rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:57",className:"container",style:{maxWidth:"1080px"},children:[a.jsxs("nav",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:58","aria-label":"Breadcrumb",style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.35rem",color:"rgba(255,255,255,0.55)",fontSize:"0.76rem",marginBottom:"1.25rem"},children:[a.jsx($,{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:58",href:"/",style:{color:"inherit"},children:"Home"}),a.jsx(Le,{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:58",size:13,"aria-hidden":"true"}),a.jsx("span",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:58","aria-current":"page",children:"Tezos wallet starter"})]}),a.jsxs("div",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:59",className:"wallet-starter-hero-grid",style:{display:"grid",gridTemplateColumns:"minmax(0,1.45fr) minmax(240px,0.62fr)",gap:"2.2rem",alignItems:"end"},children:[a.jsxs("div",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:60",children:[a.jsxs("p",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:61",style:{margin:0,color:"#86efac",fontSize:"0.68rem",fontWeight:900,letterSpacing:"0.14em",textTransform:"uppercase",display:"flex",alignItems:"center",gap:"0.42rem"},children:[a.jsx(Yg,{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:61",size:15,"aria-hidden":"true"})," New to Tezos"]}),a.jsx("h1",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:62",style:{margin:"0.75rem 0 1rem",maxWidth:"13ch",fontSize:"clamp(2.2rem, 5vw, 4.4rem)",lineHeight:.98,letterSpacing:"-0.06em",fontWeight:950},children:"Start with your Tezos wallet, not the noise."}),a.jsx("p",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:63",style:{margin:0,maxWidth:"64ch",color:"rgba(255,255,255,0.74)",lineHeight:1.7,fontSize:"1.02rem"},children:"A calm first-stop for understanding what a wallet does, how Tezos addresses work, and which official and read-only resources can help before you take the next step."}),a.jsxs("div",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:64",style:{display:"flex",gap:"0.7rem",flexWrap:"wrap",marginTop:"1.45rem"},children:[a.jsxs("a",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:64",href:"https://docs.tezos.com/developing/wallet-setup",target:"_blank",rel:"noopener noreferrer",style:{background:"#2c7df7",color:"#fff",padding:"0.78rem 1rem",borderRadius:"8px",fontWeight:850,fontSize:"0.82rem",textDecoration:"none",display:"inline-flex",alignItems:"center",gap:"0.4rem"},children:["Read official wallet setup ",a.jsx(ve,{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:64",size:14,"aria-hidden":"true"})]}),a.jsxs($,{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:64",href:"/tools/wallet",style:{border:"1px solid rgba(255,255,255,0.24)",color:"#fff",padding:"0.78rem 1rem",borderRadius:"8px",fontWeight:850,fontSize:"0.82rem",textDecoration:"none",display:"inline-flex",alignItems:"center",gap:"0.4rem"},children:["Open Wallet Inspector ",a.jsx(_e,{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:64",size:14,"aria-hidden":"true"})]})]})]}),a.jsxs("aside",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:66","aria-label":"Wallet starter promise",style:{padding:"1.1rem",background:"rgba(3,15,35,0.62)",border:"1px solid rgba(134,239,172,0.28)",borderRadius:"13px"},children:[a.jsx(Un,{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:66",size:22,color:"#86efac","aria-hidden":"true"}),a.jsx("p",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:66",style:{margin:"0.65rem 0 0.25rem",color:"#86efac",textTransform:"uppercase",letterSpacing:"0.12em",fontWeight:900,fontSize:"0.64rem"},children:"Start small"}),a.jsx("strong",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:66",style:{display:"block",fontSize:"1.04rem",lineHeight:1.3},children:"Understand the public information before you connect or sign."}),a.jsx("p",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:66",style:{margin:"0.55rem 0 0",color:"rgba(255,255,255,0.62)",fontSize:"0.82rem",lineHeight:1.55},children:"This hub is educational. It does not ask for a recovery phrase, private key, or wallet connection."})]})]})]})}),a.jsxs("div",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:71",className:"container",style:{maxWidth:"1080px",padding:"3rem 1.25rem 4.5rem"},children:[a.jsxs("section",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:72","aria-labelledby":"wallet-starter-steps-title",children:[a.jsx("p",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:73",style:{margin:0,color:"#86efac",fontSize:"0.68rem",fontWeight:900,letterSpacing:"0.13em",textTransform:"uppercase"},children:"Your first route"}),a.jsx("h2",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:74",id:"wallet-starter-steps-title",style:{margin:"0.4rem 0 1.15rem",fontSize:"clamp(1.45rem, 3vw, 2.1rem)",letterSpacing:"-0.035em"},children:"Four useful steps, in the right order."}),a.jsx("div",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:75",className:"wallet-starter-steps-grid",style:{display:"grid",gridTemplateColumns:"repeat(4, minmax(0, 1fr))",gap:"0.75rem"},children:m7e.map(({number:e,title:t,body:r,icon:n,href:s,external:i})=>a.jsxs("article",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:76",style:{padding:"1rem",borderRadius:"12px",border:"1px solid rgba(255,255,255,0.11)",background:"#061a39"},children:[a.jsxs("div",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:76",style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[a.jsx("span",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:76",style:{color:"#86efac",fontSize:"0.7rem",fontWeight:900,letterSpacing:"0.1em"},children:e}),a.jsx(n,{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:76",size:18,color:"#86efac","aria-hidden":"true"})]}),a.jsx("h3",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:76",style:{margin:"0.75rem 0 0.4rem",fontSize:"0.98rem",lineHeight:1.25},children:t}),a.jsx("p",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:76",style:{margin:0,color:"rgba(255,255,255,0.61)",fontSize:"0.8rem",lineHeight:1.55},children:r}),i?a.jsxs("a",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:76",href:s,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",marginTop:"0.8rem",color:"#86efac",textDecoration:"none",fontSize:"0.75rem",fontWeight:850},children:["Official guide ",a.jsx(ve,{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:76",size:13,"aria-hidden":"true"})]}):a.jsxs($,{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:76",href:s,style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",marginTop:"0.8rem",color:"#86efac",textDecoration:"none",fontSize:"0.75rem",fontWeight:850},children:["Explore ",a.jsx(_e,{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:76",size:13,"aria-hidden":"true"})]})]},e))})]}),a.jsxs("section",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:80","aria-labelledby":"wallet-options-title",style:{marginTop:"3.5rem"},children:[a.jsx("p",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:81",style:{margin:0,color:"#86efac",fontSize:"0.68rem",fontWeight:900,letterSpacing:"0.13em",textTransform:"uppercase"},children:"Officially listed options"}),a.jsx("h2",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:82",id:"wallet-options-title",style:{margin:"0.4rem 0 0.55rem",fontSize:"clamp(1.45rem, 3vw, 2.1rem)",letterSpacing:"-0.035em"},children:"Choose the wallet shape that fits your starting point."}),a.jsx("p",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:83",style:{margin:"0 0 1.15rem",maxWidth:"72ch",color:"rgba(255,255,255,0.66)",lineHeight:1.65,fontSize:"0.9rem"},children:"These providers are listed in the current official Tezos wallet-setup documentation. XTZ.News does not rank or endorse them; check the providerâs current information and the official setup guide before installing or connecting any wallet."}),a.jsx("div",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:84",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(220px, 1fr))",gap:"0.75rem"},children:y7e.map(e=>a.jsxs("article",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:85",style:{padding:"1rem",borderRadius:"12px",border:"1px solid rgba(134,239,172,0.18)",background:"linear-gradient(135deg, rgba(6,37,50,0.86), rgba(6,26,57,0.95))"},children:[a.jsx(Yg,{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:85",size:19,color:"#86efac","aria-hidden":"true"}),a.jsx("h3",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:85",style:{margin:"0.72rem 0 0.24rem",fontSize:"1rem"},children:e.name}),a.jsx("p",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:85",style:{margin:0,color:"#b7f7c9",fontSize:"0.72rem",fontWeight:800},children:e.type}),a.jsx("p",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:85",style:{margin:"0.55rem 0 0",color:"rgba(255,255,255,0.6)",fontSize:"0.8rem",lineHeight:1.5},children:e.note}),a.jsxs("a",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:85",href:e.href,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",color:"#86efac",textDecoration:"none",fontSize:"0.75rem",fontWeight:850,marginTop:"0.8rem"},children:["Visit provider ",a.jsx(ve,{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:85",size:13,"aria-hidden":"true"})]})]},e.name))})]}),a.jsxs("section",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:89","aria-labelledby":"wallet-prefix-title",style:{marginTop:"3.5rem",display:"grid",gridTemplateColumns:"minmax(0,1.1fr) minmax(280px,0.7fr)",gap:"1.4rem",alignItems:"start"},className:"wallet-prefix-grid",children:[a.jsxs("div",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:90",children:[a.jsx("p",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:90",style:{margin:0,color:"#86efac",fontSize:"0.68rem",fontWeight:900,letterSpacing:"0.13em",textTransform:"uppercase"},children:"Know the label"}),a.jsx("h2",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:90",id:"wallet-prefix-title",style:{margin:"0.4rem 0 0.75rem",fontSize:"clamp(1.45rem, 3vw, 2.1rem)",letterSpacing:"-0.035em"},children:"A prefix helps you recognise what you are looking at."}),a.jsx("p",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:90",style:{margin:0,color:"rgba(255,255,255,0.68)",lineHeight:1.7},children:"Official Tezos documentation explains that user accounts can start with `tz1`, `tz2`, `tz3`, or `tz4`; smart contracts start with `KT1`; and Smart Rollups start with `sr1`.[1] A prefix is context, not permission to send fundsâalways confirm the full destination through the tool or service you are using."}),a.jsxs($,{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:90",href:"/glossary/tezos-prefixes",style:{color:"#86efac",fontWeight:850,textDecoration:"none",display:"inline-flex",gap:"0.35rem",alignItems:"center",marginTop:"0.85rem",fontSize:"0.82rem"},children:["Read the prefix glossary ",a.jsx(_e,{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:90",size:14,"aria-hidden":"true"})]})]}),a.jsxs("aside",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:90",style:{padding:"1.15rem",borderRadius:"12px",border:"1px solid rgba(96,165,250,0.28)",background:"rgba(10,39,79,0.62)"},children:[a.jsx(Pi,{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:90",size:22,color:"#8ac0ff","aria-hidden":"true"}),a.jsx("strong",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:90",style:{display:"block",marginTop:"0.65rem",fontSize:"1rem"},children:"Treat `tz5` separately."}),a.jsx("p",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:90",style:{color:"rgba(255,255,255,0.64)",fontSize:"0.83rem",lineHeight:1.55,margin:"0.5rem 0 0.75rem"},children:"The `tz5` prefix is discussed in XTZ.Newsâ testnet-stage post-quantum research guide. It is not an ordinary Mainnet onboarding requirement."}),a.jsx($,{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:90",href:"/guides/tz5-wallet",style:{color:"#8ac0ff",fontSize:"0.78rem",fontWeight:850,textDecoration:"none"},children:"Read the tz5 guide â"})]})]}),a.jsxs("section",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:92","aria-labelledby":"wallet-next-title",style:{marginTop:"3.5rem"},children:[a.jsx("p",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:92",style:{margin:0,color:"#86efac",fontSize:"0.68rem",fontWeight:900,letterSpacing:"0.13em",textTransform:"uppercase"},children:"Build confidence gradually"}),a.jsx("h2",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:92",id:"wallet-next-title",style:{margin:"0.4rem 0 1.15rem",fontSize:"clamp(1.45rem, 3vw, 2.1rem)",letterSpacing:"-0.035em"},children:"Choose the guide that matches your next question."}),a.jsx("div",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:92",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(220px, 1fr))",gap:"0.8rem"},children:x7e.map(({title:e,copy:t,href:r,icon:n})=>a.jsxs($,{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:92",href:r,style:{textDecoration:"none",color:"inherit",padding:"1.1rem",borderRadius:"12px",border:"1px solid rgba(96,165,250,0.2)",background:"linear-gradient(135deg, rgba(6,26,57,0.94), rgba(8,32,72,0.65))"},children:[a.jsx(n,{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:92",size:20,color:"#8ac0ff","aria-hidden":"true"}),a.jsx("h3",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:92",style:{margin:"0.72rem 0 0.35rem",fontSize:"1rem"},children:e}),a.jsx("p",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:92",style:{margin:0,color:"rgba(255,255,255,0.61)",fontSize:"0.82rem",lineHeight:1.55},children:t}),a.jsxs("span",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:92",style:{display:"inline-flex",gap:"0.3rem",alignItems:"center",color:"#8ac0ff",fontSize:"0.75rem",fontWeight:850,marginTop:"0.8rem"},children:["Open guide ",a.jsx(_e,{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:92",size:13,"aria-hidden":"true"})]})]},e))})]}),a.jsxs("section",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:94","aria-labelledby":"wallet-faq-title",style:{maxWidth:"820px",marginTop:"3.5rem"},children:[a.jsx("p",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:94",style:{margin:0,color:"#86efac",fontSize:"0.68rem",fontWeight:900,letterSpacing:"0.13em",textTransform:"uppercase"}
1131,children:"Quick answers"}),a.jsx("h2",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:94",id:"wallet-faq-title",style:{margin:"0.4rem 0 0.85rem",fontSize:"clamp(1.45rem, 3vw, 2.1rem)",letterSpacing:"-0.035em"},children:"New-user wallet questions"}),bB.map(e=>a.jsxs("details",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:94",style:{padding:"0.9rem 0",borderTop:"1px solid rgba(255,255,255,0.13)"},children:[a.jsx("summary",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:94",style:{cursor:"pointer",fontWeight:800,fontSize:"0.95rem"},children:e.question}),a.jsx("p",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:94",style:{color:"rgba(255,255,255,0.64)",lineHeight:1.6,fontSize:"0.86rem",margin:"0.7rem 1.4rem 0 0"},children:e.answer})]},e.question))]}),a.jsxs("section",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:96","aria-label":"Wallet safety note",style:{marginTop:"3.25rem",padding:"1.2rem",borderRadius:"12px",background:"linear-gradient(135deg, rgba(34,197,94,0.11), rgba(5,21,46,0.9))",border:"1px solid rgba(134,239,172,0.25)",display:"flex",alignItems:"flex-start",gap:"0.8rem"},children:[a.jsx(Ga,{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:96",size:22,color:"#86efac","aria-hidden":"true"}),a.jsxs("div",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:96",children:[a.jsx("strong",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:96",children:"Learn with public information first."}),a.jsx("p",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:96",style:{margin:"0.35rem 0 0",color:"rgba(255,255,255,0.66)",lineHeight:1.55,fontSize:"0.84rem"},children:"XTZ.News tools and guides can help you understand public addresses and terminology. Keep private keys and recovery details private, and use the providerâs current instructions for any wallet action."})]})]}),a.jsxs("p",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:97",style:{margin:"2rem 0 0",color:"rgba(255,255,255,0.42)",fontSize:"0.73rem",lineHeight:1.55},children:["[1] ",a.jsx("a",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:97",href:"https://docs.tezos.com/architecture/accounts",target:"_blank",rel:"noopener noreferrer",style:{color:"#8ac0ff"},children:"Accounts and addresses â official Tezos documentation"}),". [2] ",a.jsx("a",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:97",href:"https://docs.tezos.com/developing/wallet-setup",target:"_blank",rel:"noopener noreferrer",style:{color:"#8ac0ff"},children:"Installing and funding a wallet â official Tezos documentation"}),"."]})]}),a.jsx("style",{"data-loc":"client/src/pages/TezosWalletStarterPage.tsx:99",children:"@media (max-width: 700px) { .wallet-starter-hero-grid, .wallet-prefix-grid { grid-template-columns: 1fr !important; } .wallet-starter-steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }"})]})}const vB=[{question:"What is the difference between Tezos delegation and staking?",answer:"Delegation keeps your tez liquid and lets a baker use its associated baking power. Staking locks tez with a baker, increases the bakerâs baking power more fully, and brings slashing exposure. Review the current official staking information before acting."},{question:"Do I have to run a baker to delegate or stake?",answer:"No. The official Tezos documentation describes delegation and staking with a baker as options for people who do not want to run a baking node themselves."},{question:"How do I start staking tez?",answer:"The official Tezos staking application provides the current workflow. If you are not already delegated, the official guidance says you first delegate to a baker that accepts external stakers and then choose the staking action."},{question:"Can staking rewards or conditions change?",answer:"Yes. Baker capacity, fees, protocol conditions, the staking interface, and reward treatment can change. Treat public figures and historical rewards as context, and check current official information before making a decision."}],v7e=[{label:"Delegation",color:"#8ac0ff",icon:Sc,summary:"Assigns a baker to your account while your tez stays liquid.",items:["Tez stays unlocked","Baker distributes delegation rewards","No slashing exposure for delegated tez","A common first step before staking"]},{label:"Staking",color:"#86efac",icon:yy,summary:"Locks a selected amount with your baker as part of its stake.",items:["Tez is locked while staked","Protocol rewards go directly to the staker","Staked tez has slashing exposure","Available only through a baker that accepts external stake"]}],S7e=[{number:"01",title:"Learn the difference",body:"Decide whether you are reading about delegation, staking, or both. They are related, but their liquidity and risk characteristics are not the same.",icon:sA},{number:"02",title:"Use a current official route",body:"Start from the official staking site and your walletâs current documentation. Avoid unknown pages that ask for a recovery phrase or private key.",icon:vy},{number:"03",title:"Review baker information",body:"Use public information to understand whether a baker accepts delegation or external stake and to review its current terms before taking an action.",icon:Sc},{number:"04",title:"Understand the lock before staking",body:"Staking is not the same as delegation. Read the current interface and official explanations before locking tez or confirming an operation.",icon:yy}],Jk=[{id:"accepts-delegation",title:"Accepts delegation",description:"Confirm the baker
1131currently accepts new delegators in the official staking interface."},{id:"accepts-stake",title:"Accepts external stake",description:"If you are considering staking, check that the baker explicitly accepts external stakers."},{id:"capacity",title:"Has current capacity",description:"Review the current available capacity or free-space information shown by the official interface."},{id:"fees",title:"Shows clear current terms",description:"Read the displayed fee and reward information rather than relying on older posts or screenshots."},{id:"activity",title:"Review public activity context",description:"Use public explorer information as context, while recognising that it does not predict future operation."},{id:"communication",title:"Check official communication",description:"Review the bakerâs current published information and contact route before confirming any transaction."}];function j7e(){const[e,t]=E.useState({}),r=Jk.filter(i=>e[i.id]).length,n=i=>t(o=>({...o,[i]:!o[i]})),s=()=>t({});return a.jsxs("section",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:40","aria-labelledby":"baker-checklist-title",style:{marginTop:"3.5rem",padding:"1.25rem",borderRadius:"12px",border:"1px solid rgba(134,239,172,0.28)",background:"linear-gradient(135deg, rgba(4,43,40,0.72), rgba(6,26,57,0.94))"},children:[a.jsxs("div",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:41",className:"baker-checklist-heading",style:{display:"flex",justifyContent:"space-between",gap:"1rem",alignItems:"flex-start",marginBottom:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:41",children:[a.jsx("p",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:41",style:{margin:0,color:"#86efac",fontSize:"0.68rem",fontWeight:900,letterSpacing:"0.13em",textTransform:"uppercase"},children:"Interactive baker checklist"}),a.jsx("h2",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:41",id:"baker-checklist-title",style:{margin:"0.38rem 0 0.42rem",fontSize:"clamp(1.35rem, 3vw, 1.9rem)",letterSpacing:"-0.035em"},children:"Compare information, not promises."}),a.jsx("p",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:41",style:{margin:0,maxWidth:"68ch",color:"rgba(255,255,255,0.66)",lineHeight:1.6,fontSize:"0.86rem"},children:"Use this private on-page checklist when reviewing a baker. It does not score, rank, recommend, or validate any baker. Check current information in the official staking interface before you act."})]}),a.jsxs("div",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:41","aria-live":"polite",style:{minWidth:"100px",padding:"0.55rem 0.7rem",border:"1px solid rgba(134,239,172,0.28)",borderRadius:"8px",color:"#d5ffe2",fontSize:"0.74rem",fontWeight:850,textAlign:"center"},children:[r," / ",Jk.length,a.jsx("br",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:41"}),a.jsx("span",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:41",style:{color:"rgba(255,255,255,0.56)",fontWeight:700},children:"reviewed"})]})]}),a.jsxs("fieldset",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:42",style:{border:0,margin:0,padding:0},children:[a.jsx("legend",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:42",className:"sr-only",children:"Baker review criteria"}),a.jsx("div",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:42",className:"baker-checklist-grid",style:{display:"grid",gridTemplateColumns:"repeat(2,minmax(0,1fr))",gap:"0.7rem"},children:Jk.map(i=>a.jsxs("label",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:42",style:{display:"flex",gap:"0.72rem",alignItems:"flex-start",minHeight:"78px",padding:"0.88rem",borderRadius:"10px",cursor:"pointer",border:e[i.id]?"1px solid rgba(134,239,172,0.58)":"1px solid rgba(255,255,255,0.12)",background:e[i.id]?"rgba(31,103,77,0.22)":"rgba(3,16,36,0.46)"},children:[a.jsx("input",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:42",type:"checkbox",checked:!!e[i.id],onChange:()=>n(i.id),style:{width:"18px",height:"18px",accentColor:"#86efac",marginTop:"0.05rem",flexShrink:0}}),a.jsxs("span",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:42",children:[a.jsx("strong",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:42",style:{display:"block",fontSize:"0.88rem",lineHeight:1.3},children:i.title}),a.jsx("span",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:42",style:{display:"block",marginTop:"0.28rem",color:"rgba(255,255,255,0.59)",fontSize:"0.77rem",lineHeight:1.45},children:i.description})]})]},i.id))})]}),a.jsxs("div",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:43",style:{display:"flex",alignItems:"center",gap:"0.9rem",flexWrap:"wrap",marginTop:"1rem"},children:[a.jsx("button",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:43",type:"button",onClick:s,disabled:!r,style:{border:"1px solid rgba(255,255,255,0.24)",borderRadius:"6px",padding:"0.52rem 0.72rem",background:"transparent",color:r?"#fff":"rgba(255,255,255,0.36)",fontFamily:"inherit",fontSize:"0.74rem",fontWeight:800,cursor:r?"pointer":"not-allowed"},children:"Clear checklist"}),a.jsxs("a",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:43",href:"https://stake.tezos.com/",target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",color:"#86efac",textDecoration:"none",fontSize:"0.78rem",fontWeight:850},children:["Check current official information ",a.jsx(ve,{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:43",size:13,"aria-hidden":"true"})]})]})]})}
1131function w7e(){return Ie({title:"Tezos Staking Starter Guide: Delegation Explained | XTZ.News",description:"A beginner-friendly Tezos staking starter hub explaining delegation, staking, bakers, liquidity, and the official route to check before you act.",keywords:"Tezos staking, Tezos delegation, stake tez, Tezos baker, Tezos staking guide, XTZ delegation",canonical:"https://xtz.news/staking/start",jsonLd:[ka({title:"Tezos Staking Starter Guide",description:"A plain-English guide to Tezos delegation, staking, bakers, and safe next steps.",url:"https://xtz.news/staking/start",breadcrumbs:[{name:"Home",url:"https://xtz.news"},{name:"Tezos Staking Starter",url:"https://xtz.news/staking/start"}]}),Pa(vB)]}),a.jsxs("main",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:58",id:"main-content",style:{minHeight:"100vh",background:"#000",color:"#fff"},children:[a.jsx("section",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:59",style:{padding:"3.35rem 0 3rem",background:"radial-gradient(circle at 83% 10%, rgba(34,197,94,0.24), transparent 30%), radial-gradient(circle at 13% 0%, rgba(45,212,191,0.2), transparent 35%), linear-gradient(135deg, #052a2c, #061a39 59%, #030a18)",borderBottom:"1px solid rgba(134,239,172,0.22)"},children:a.jsxs("div",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:59",className:"container",style:{maxWidth:"1080px"},children:[a.jsxs("nav",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:59","aria-label":"Breadcrumb",style:{display:"flex",alignItems:"center",gap:"0.35rem",flexWrap:"wrap",color:"rgba(255,255,255,0.55)",fontSize:"0.76rem",marginBottom:"1.25rem"},children:[a.jsx($,{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:59",href:"/",style:{color:"inherit"},children:"Home"}),a.jsx(Le,{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:59",size:13,"aria-hidden":"true"}),a.jsx($,{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:59",href:"/staking",style:{color:"inherit"},children:"Tezos staking"}),a.jsx(Le,{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:59",size:13,"aria-hidden":"true"}),a.jsx("span",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:59","aria-current":"page",children:"Starter guide"})]}),a.jsxs("div",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:59",className:"staking-starter-hero-grid",style:{display:"grid",gridTemplateColumns:"minmax(0,1.45fr) minmax(240px,0.62fr)",gap:"2.2rem",alignItems:"end"},children:[a.jsxs("div",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:59",children:[a.jsxs("p",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:59",style:{margin:0,color:"#86efac",fontSize:"0.68rem",fontWeight:900,letterSpacing:"0.14em",textTransform:"uppercase",display:"flex",alignItems:"center",gap:"0.42rem"},children:[a.jsx(KW,{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:59",size:15,"aria-hidden":"true"})," Tezos staking starter"]}),a.jsx("h1",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:59",style:{margin:"0.75rem 0 1rem",maxWidth:"12ch",fontSize:"clamp(2.2rem, 5vw, 4.4rem)",fontWeight:950,lineHeight:.98,letterSpacing:"-0.06em"},children:"Understand delegation before you stake."}),a.jsx("p",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:59",style:{margin:0,maxWidth:"65ch",color:"rgba(255,255,255,0.74)",lineHeight:1.7,fontSize:"1.02rem"},children:"A calm guide to the two ways individuals can participate with a Tezos bakerâwhat stays liquid, what is locked, and which official information to check before you confirm anything."}),a.jsxs("div",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:59",style:{display:"flex",flexWrap:"wrap",gap:"0.7rem",marginTop:"1.45rem"},children:[a.jsxs("a",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:59",href:"https://stake.tezos.com/",target:"_blank",rel:"noopener noreferrer",style:{background:"#86efac",color:"#052a2c",padding:"0.78rem 1rem",borderRadius:"8px",fontWeight:900,fontSize:"0.82rem",textDecoration:"none",display:"inline-flex",alignItems:"center",gap:"0.4rem"},children:["Open official staking app ",a.jsx(ve,{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:59",size:14,"aria-hidden":"true"})]}),a.jsxs($,{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:59",href:"/tools/rewards",style:{border:"1px solid rgba(255,255,255,0.24)",color:"#fff",padding:"0.78rem 1rem",borderRadius:"8px",fontWeight:850,fontSize:"0.82rem",textDecoration:"none",display:"inline-flex",alignItems:"center",gap:"0.4rem"},children:["Explore reward history ",a.jsx(_e,{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:59",size:14,"aria-hidden":"true"})]})]})]}),a.jsxs("aside",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:59","aria-label":"Staking starter note",style:{padding:"1.1rem",background:"rgba(3,15,35,0.62)",border:"1px solid rgba(134,239,172,0.28)",borderRadius:"13px"},children:[a.jsx(vy,{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:59",size:22,color:"#86efac","aria-hidden":"true"}),a.jsx("p",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:59",style:{margin:"0.65rem 0 0.25rem",color:"#86efac",textTransform:"uppercase",letterSpacing:"0.12em",fontWeight:900,fontSize:"0.64rem"},children:"Read before you act"}),a.jsx("strong",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:59",style:{display:"block",fontSize:"1.04rem",lineHeight:1.3},children:"Staking and delegation are not interchangeable."}),a.jsx("p",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:59",style:{margin:"0.55rem 0 0",color:"rgba(255,255,255,0.62)",fontSize:"0.82rem",lineHeight:1.55},children:"Use the current official app and baker information for any live action. This page is educational, not personal advice."})]})]})]})}),a.jsxs("div",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:60",className:"container",style:{maxWidth:"1080px",padding:"3rem 1.25rem 4.5rem"},children:[a.jsxs("section",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:61","aria-labelledby":"staking-compare-title",children:[a.jsx("p",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:61",style:{margin:0,color:"#86efac",fontSize:"0.68rem",fontWeight:900,letterSpacing:"0.13em",textTransform:"uppercase"},children:"The essential comparison"}),a.jsx("h2",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:61",id:"staking-compare-title",style:{margin:"0.4rem 0 1.15rem",fontSize:"clamp(1.45rem, 3vw, 2.1rem)",letterSpacing:"-0.035em"},children:"Two ways to participate. Different trade-offs."}),a.jsx("div",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:61",className:"staking-comparison-grid",style:{display:"grid",gridTemplateColumns:"repeat(2, minmax(0,1fr))",gap:"0.9rem"},children:v7e.map(({label:e,color:t,icon:r,summary:n,items:s})=>a.jsxs("article",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:61",style:{padding:"1.3rem",borderRadius:"12px",border:`1px solid ${t}44`,background:"linear-gradient(135deg, rgba(6,39,52,0.82), rgba(6,26,57,0.95))"},children:[a.jsx(r,{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:61",size:22,color:t,"aria-hidden":"true"}),a.jsx("h3",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:61",style:{margin:"0.72rem 0 0.35rem",fontSize:"1.2rem"},children:e}),a.jsx("p",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:61",style:{margin:0,color:"rgba(255,255,255,0.67)",lineHeight:1.6,fontSize:"0.88rem"},children:n}),a.jsx("ul",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:61",style:{paddingLeft:"1.15rem",margin:"0.85rem 0 0",color:"rgba(255,255,255,0.67)",fontSize:"0.82rem",lineHeight:1.75},children:s.map(i=>a.jsx("li",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:61",children:i},i))})]},e))})]}),a.jsxs("section",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:62","aria-labelledby":"staking-steps-title",style:{marginTop:"3.5rem"},children:[a.jsx("p",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:62",style:{margin:0,color:"#86efac",fontSize:"0.68rem",fontWeight:900,letterSpacing:"0.13em",textTransform:"uppercase"},children:"A new-user route"}),a.jsx("h2",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:62",id:"staking-steps-title",style:{margin:"0.4rem 0 1.15rem",fontSize:"clamp(1.45rem, 3vw, 2.1rem)",letterSpacing:"-0.035em"},children:"Four checks before you use the staking interface."}),a.jsx("div",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:62",className:"staking-starter-steps-grid",style:{display:"grid",gridTemplateColumns:"repeat(4,minmax(0,1fr))",gap:"0.75rem"},children:S7e.map(({number:e,title:t,body:r,icon:n})=>a.jsxs("article",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:62",style:{padding:"1rem",borderRadius:"12px",border:"1px solid rgba(255,255,255,0.11)",background:"#061a39"},children:[a.jsxs("div",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:62",style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[a.jsx("span",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:62",style:{color:"#86efac",fontSize:"0.7rem",fontWeight:900},children:e}),a.jsx(n,{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:62",size:18,color:"#86efac","aria-hidden":"true"})]}),a.jsx("h3",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:62",style:{margin:"0.72rem 0 0.35rem",fontSize:"0.98rem"},children:t}),a.jsx("p",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:62",style:{margin:0,color:"rgba(255,255,255,0.61)",fontSize:"0.8rem",lineHeight:1.55},children:r})]},e))})]}),a.jsx(j7e,{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:63"}),a.jsxs("section",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:64","aria-labelledby":"staking-explore-title",style:{marginTop:"3.5rem",padding:"1.2rem",borderRadius:"12px",border:"1px solid rgba(96,165,250,0.26)",background:"linear-gradient(135deg, rgba(8,32,72,0.75), rgba(5,21,46,0.95))"},children:[a.jsx("p",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:64",style:{margin:0,color:"#8ac0ff",fontSize:"0.68rem",fontWeight:900,letterSpacing:"0.13em",textTransform:"uppercase"},children:"Use public context"}),a.jsx("h2",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:64",id:"staking-explore-title",style:{margin:"0.42rem 0 0.55rem",fontSize:"1.35rem"},children:"Understand a baker and your public account information first."}),a.jsx("p",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:64",style:{margin:0,color:"rgba(255,255,255,0.66)",lineHeight:1.6,fontSize:"0.88rem"},children:"The XTZ.News explorer and rewards history tools help readers inspect public information. They are a separate learning route from the official staking app and do not connect a wallet."}),a.jsxs("div",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:64",style:{display:"flex",flexWrap:"wrap",gap:"1rem",marginTop:"0.85rem"},children:[a.jsx($,{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:64",href:"/explorer/bakers",style:{color:"#8ac0ff",fontWeight:850,textDecoration:"none",fontSize:"0.8rem"},children:"Browse bakers â"}),a.jsx($,{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:64",href:"/tools/rewards",style:{color:"#8ac0ff",fontWeight:850,textDecoration:"none",fontSize:"0.8rem"}
1131,children:"Review reward history â"}),a.jsx($,{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:64",href:"/staking",style:{color:"#8ac0ff",fontWeight:850,textDecoration:"none",fontSize:"0.8rem"},children:"Open staking tools â"})]})]}),a.jsxs("section",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:65","aria-labelledby":"staking-faq-title",style:{maxWidth:"820px",marginTop:"3.5rem"},children:[a.jsx("p",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:65",style:{margin:0,color:"#86efac",fontSize:"0.68rem",fontWeight:900,letterSpacing:"0.13em",textTransform:"uppercase"},children:"Quick answers"}),a.jsx("h2",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:65",id:"staking-faq-title",style:{margin:"0.4rem 0 0.85rem",fontSize:"clamp(1.45rem, 3vw, 2.1rem)",letterSpacing:"-0.035em"},children:"Beginner staking questions"}),vB.map(e=>a.jsxs("details",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:65",style:{padding:"0.9rem 0",borderTop:"1px solid rgba(255,255,255,0.13)"},children:[a.jsx("summary",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:65",style:{cursor:"pointer",fontWeight:800,fontSize:"0.95rem"},children:e.question}),a.jsx("p",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:65",style:{color:"rgba(255,255,255,0.64)",lineHeight:1.6,fontSize:"0.86rem",margin:"0.7rem 1.4rem 0 0"},children:e.answer})]},e.question))]}),a.jsxs("p",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:66",style:{margin:"2rem 0 0",color:"rgba(255,255,255,0.42)",fontSize:"0.73rem",lineHeight:1.55},children:["[1] ",a.jsx("a",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:66",href:"https://tezos.com/stake-tez",target:"_blank",rel:"noopener noreferrer",style:{color:"#8ac0ff"},children:"Stake your tez â Tezos"}),". [2] ",a.jsx("a",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:66",href:"https://docs.tezos.com/architecture/bakers",target:"_blank",rel:"noopener noreferrer",style:{color:"#8ac0ff"},children:"Bakers â Tezos documentation"}),"."]})]}),a.jsx("style",{"data-loc":"client/src/pages/TezosStakingStarterPage.tsx:67",children:"@media (max-width: 700px) { .staking-starter-hero-grid, .staking-comparison-grid, .baker-checklist-grid { grid-template-columns: 1fr !important; } .staking-starter-steps-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; } .baker-checklist-heading { flex-direction: column; } }"})]})}const kl={width:"100%",boxSizing:"border-box",borderRadius:"6px",border:"1px solid rgba(255,255,255,0.16)",background:"rgba(3, 8, 20, 0.72)",color:"#fff",font:"inherit",fontSize:"0.86rem",padding:"0.7rem 0.78rem"},SB={submitterName:"",submitterEmail:"",submitterType:"artist",projectName:"",projectType:"exhibition",websiteUrl:"",description:"",agreedToReview:!1},jB={reviewNote:"Every submission is reviewed by the XTZ.News editorial team. Submission does not guarantee a listing or coverage, and nothing is published automatically.",consent:"I confirm that the information is accurate and that I may submit it for editorial review."};function Pl({htmlFor:e,children:t}){return a.jsx("label",{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:45",htmlFor:e,style:{display:"block",marginBottom:"0.38rem",color:"rgba(255,255,255,0.72)",fontSize:"0.7rem",fontWeight:800,letterSpacing:"0.05em",textTransform:"uppercase"},children:t})}function k7e(){const[e,t]=E.useState(SB),[r,n]=E.useState(""),s=ee.artProjectSubmissions.create.useMutation({onSuccess:()=>{n("Thank you. Your project has been sent for editorial review."),t(SB)},onError:()=>n("We could not send your submission just now. Please try again later or contact [email protected].")}),i=(l,d)=>t(u=>({...u,[l]:d})),o=l=>{if(l.preventDefault(),n(""),!e.agreedToReview){n("Please confirm the submission statement before sending your project.");return}s.mutate({...e,agreedToReview:!0})};return a.jsxs("form",{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:72",onSubmit:o,"aria-describedby":"art-submission-review-note",style:{padding:"1.25rem",borderRadius:"10px",border:"1px solid rgba(249,168,212,0.28)",background:"rgba(8, 12, 31, 0.86)"},children:[a.jsxs("div",{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:73",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(180px, 1fr))",gap:"0.9rem"},children:[a.jsxs("div",{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:74",children:[a.jsx(Pl,{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:74",htmlFor:"art-submitter-name",children:"Your name"}),a.jsx("input",{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:74",id:"art-submitter-name",name:"submitterName",value:e.submitterName,onChange:l=>i("submitterName",l.target.value),required:!0,minLength:2,maxLength:255,style:kl,autoComplete:"name"})]}),a.jsxs("div",{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:75",children:[a.jsx(Pl,{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:75",htmlFor:"art-submitter-email",children:"Email"}),a.jsx("input",{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:75",id:"art-submitter-email",name:"submitterEmail",type:"email",value:e.submitterEmail,onChange:l=>i("submitterEmail",l.target.value),required:!0,maxLength:320,style:kl,autoComplete:"email"})]}),a.jsxs("div",{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:76",children:[a.jsx(Pl,{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:76",htmlFor:"art-submitter-type",children:"I am submitting as"}),a.jsxs("select",{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:76",id:"art-submitter-type",name:"submitterType",value:e.submitterType,onCh
1131ange:l=>i("submitterType",l.target.value),style:kl,children:[a.jsx("option",{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:76",value:"artist",children:"Artist"}),a.jsx("option",{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:76",value:"gallery",children:"Gallery"}),a.jsx("option",{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:76",value:"collective",children:"Collective"}),a.jsx("option",{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:76",value:"other",children:"Other"})]})]}),a.jsxs("div",{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:77",children:[a.jsx(Pl,{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:77",htmlFor:"art-project-type",children:"Collection group"}),a.jsxs("select",{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:77",id:"art-project-type",name:"projectType",value:e.projectType,onChange:l=>i("projectType",l.target.value),style:kl,children:[a.jsx("option",{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:77",value:"exhibition",children:"Exhibition"}),a.jsx("option",{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:77",value:"marketplace",children:"Marketplace"}),a.jsx("option",{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:77",value:"creator_tool",children:"Creator tool"}),a.jsx("option",{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:77",value:"other",children:"Other art project"})]})]})]}),a.jsxs("div",{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:79",style:{display:"grid",gridTemplateColumns:"minmax(0, 0.7fr) minmax(0, 1.3fr)",gap:"0.9rem",marginTop:"0.9rem"},className:"art-submission-project-row",children:[a.jsxs("div",{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:80",children:[a.jsx(Pl,{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:80",htmlFor:"art-project-name",children:"Project name"}),a.jsx("input",{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:80",id:"art-project-name",name:"projectName",value:e.projectName,onChange:l=>i("projectName",l.target.value),required:!0,minLength:2,maxLength:500,style:kl})]}),a.jsxs("div",{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:81",children:[a.jsx(Pl,{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:81",htmlFor:"art-project-url",children:"Project website"}),a.jsx("input",{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:81",id:"art-project-url",name:"websiteUrl",type:"url",value:e.websiteUrl,onChange:l=>i("websiteUrl",l.target.value),required:!0,maxLength:2e3,placeholder:"https://",style:kl})]})]}),a.jsxs("div",{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:83",style:{marginTop:"0.9rem"},children:[a.jsx(Pl,{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:83",htmlFor:"art-project-description",children:"What should readers know?"}),a.jsx("textarea",{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:83",id:"art-project-description",name:"description",value:e.description,onChange:l=>i("description",l.target.value),required:!0,minLength:40,maxLength:1600,rows:4,placeholder:"Share a concise description, the Tezos connection, and a useful official link.",style:{...kl,resize:"vertical",lineHeight:1.55}}),a.jsxs("p",{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:83",style:{margin:"0.35rem 0 0",color:"rgba(255,255,255,0.44)",fontSize:"0.68rem"},children:[e.description.length,"/1600 characters · minimum 40"]})]}),a.jsxs("label",{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:84",style:{display:"flex",alignItems:"flex-start",gap:"0.65rem",marginTop:"1rem",color:"rgba(255,255,255,0.7)",fontSize:"0.78rem",lineHeight:1.5,cursor:"pointer"},children:[a.jsx("input",{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:84",type:"checkbox",name:"agreedToReview",checked:e.agreedToReview,onChange:l=>i("agreedToReview",l.target.checked),style:{marginTop:"0.15rem",width:"16px",height:"16px",accentColor:"#f9a8d4"}}),jB.consent]}),a.jsx("p",{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:85",id:"art-submission-review-note",style:{margin:"0.85rem 0",color:"rgba(255,255,255,0.5)",fontSize:"0.72rem",lineHeight:1.5},children:jB.reviewNote}),r&&a.jsxs("p",{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:86",role:"status",style:{display:"flex",alignItems:"center",gap:"0.45rem",margin:"0 0 0.85rem",color:r.startsWith("Thank")?"#86efac":"#fca5a5",fontSize:"0.78rem",fontWeight:700},children:[a.jsx(Ga,{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:86",size:15,"aria-hidden":"true"}),r]}),a.jsx("button",{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:87",type:"submit",disabled:s.isPending,style:{display:"inline-flex",minHeight:"42px",alignItems:"center",justifyContent:"center",gap:"0.45rem",border:0,borderRadius:"6px",padding:"0.72rem 1rem",color:"#201126",background:s.isPending?"rgba(249,168,212,0.55)":"#f9a8d4",fontSize:"0.78rem",fontWeight:900,cursor:s.isPending?"wait":"pointer"},children:s.isPending?a.jsxs(a.Fragment,{children:[a.jsx(Va,{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:87",size:15,"aria-hidden":"true",className:"animate-spin"})," Sending"]}):a.jsxs(a.Fragment,{children:[a.jsx(wa,{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:87",size:15,"aria-hidden":"true"})," Send for editorial review"]})}),a.jsx("style",{"data-loc":"client/src/components/ArtOnTezosSubmissionForm.tsx:88",children:"@media (max-width: 560px) { .art-submission-project-row { grid-template-columns: 1fr !important; } }"})]})}function Nx(e){return e.replace(/\\/g,"\\\\").replace(/;/g,"\\;").replace(/,/g,"\\,").replace(/\r?\n/g,"\\n")}function eP(e){return new Date(e).toISOString().replace(/[-:]/g,"").replace(/\.\d{3}/,"")}function P7e(e){const t=eP(new Date().toISOString()),r=`${e.description??""} 1132 1133Source: ${e.sourceUrl}`.trim();return["BEGIN:VCALENDAR","VERSION:2.0","PRODID:-//XTZ.News//Tezos Events//EN","CALSCALE:GREGORIAN","METHOD:PUBLISH","BEGIN:VEVENT",`UID:xtz-news-${Nx(e.id)}@xtz.news`,`DTSTAMP:${t}`,`DTSTART:${eP(e.startAt)}`,`DTEND:${eP(e.endAt??e.startAt)}`,`SUMMARY:${Nx(e.title)}`,e.location?`LOCATION:${Nx(e.location)}`:"",r?`DESCRIPTION:${Nx(r)}`:"",`URL:${e.sourceUrl}
1133`,"END:VEVENT","END:VCALENDAR",""].filter(Boolean).join(`\r 1134`)}function lV(e){return`data:text/calendar;charset=utf-8,${encodeURIComponent(P7e(e))}`}const wB={all:"All dates",upcoming:"Upcoming",current:"On now",past:"Past"};function tP(e,t=new Date){const r=Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()),n=new Date(`${e.startDate}T00:00:00Z`).getTime(),s=new Date(`${e.endDate}T23:59:59Z`).getTime();return r<n?"upcoming":r>s?"past":"current"}function kB(e){return new Date(`${e}T00:00:00Z`).toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric",timeZone:"UTC"})}function T7e(e){return`${e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")||"tezos-event"}.ics`}function A7e({entries:e}){const[t,r]=E.useState("all"),[n,s]=E.useState(()=>e.find(d=>tP(d)!=="past")?.id??null),[i,o]=E.useState(null),l=E.useMemo(()=>e.filter(d=>t==="all"||tP(d)===t),[e,t]);return a.jsxs("section",{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:42",id:"art-timeline",style:{padding:"3.25rem 0",background:"#0a0b17",borderTop:"1px solid rgba(255,255,255,0.08)",borderBottom:"1px solid rgba(255,255,255,0.08)"},children:[a.jsxs("div",{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:43",className:"container",children:[a.jsxs("div",{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:44",style:{display:"flex",alignItems:"end",justifyContent:"space-between",flexWrap:"wrap",gap:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:45",children:[a.jsxs("p",{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:45",style:{display:"flex",gap:"0.4rem",alignItems:"center",margin:0,color:"#f6c453",fontSize:"0.65rem",fontWeight:900,letterSpacing:"0.1em",textTransform:"uppercase"},children:[a.jsx(Fa,{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:45",size:14,"aria-hidden":"true"})," Exhibition timeline"]}),a.jsx("h2",{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:45",style:{margin:"0.35rem 0 0",color:"#fff",fontSize:"1.55rem"},children:"Tezos digital-art dates"})]}),a.jsx("p",{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:46",style:{margin:0,maxWidth:"430px",color:"rgba(255,255,255,0.55)",fontSize:"0.75rem",lineHeight:1.5},children:"Hover or focus a date for a quick preview, then open the original listing before arranging a visit or relying on availability."})]}),a.jsx("div",{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:48",role:"group","aria-label":"Filter exhibitions by timing",style:{display:"flex",flexWrap:"wrap",gap:"0.5rem",margin:"1.35rem 0"},children:Object.keys(wB).map(d=>a.jsx("button",{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:48",type:"button",onClick:()=>r(d),"aria-pressed":t===d,style:{minHeight:"38px",padding:"0.5rem 0.75rem",borderRadius:"999px",border:t===d?"1px solid #f6c453":"1px solid rgba(255,255,255,0.18)",background:t===d?"rgba(246,196,83,0.14)":"transparent",color:t===d?"#f6c453":"rgba(255,255,255,0.72)",fontSize:"0.75rem",fontWeight:800,cursor:"pointer"},children:wB[d]},d))}),a.jsx("ol",{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:49",style:{listStyle:"none",padding:0,margin:0,borderLeft:"2px solid rgba(246,196,83,0.45)",marginLeft:"0.5rem"},children:l.map(d=>{const u=tP(d),g=n===d.id,f=i===d.id,m=`${kB(d.startDate)}${d.endDate!==d.startDate?` â ${kB(d.endDate)}`:""}`,y=lV({id:d.id,title:d.title,startAt:d.calendarStartAt??`${d.startDate}T00:00:00.000Z`,endAt:d.calendarEndAt??`${d.endDate}T23:59:59.000Z`,location:d.location,description:d.description,sourceUrl:d.sourceUrl});return a.jsxs("li",{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:55",onMouseEnter:()=>o(d.id),onMouseLeave:()=>o(null),style:{position:"relative",padding:"0 0 1.1rem 1.35rem"},children:[a.jsx("span",{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:56","aria-hidden":"true",style:{position:"absolute",top:"1rem",left:"-7px",width:"12px",height:"12px",borderRadius:"50%",background:u==="upcoming"?"#f6c453":u==="current"?"#5eead4":"#64748b",boxShadow:u==="current"?"0 0 0 4px rgba(94,234,212,0.12)":"none"}}),a.jsxs("article",{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:57",style:{border:"1px solid rgba(255,255,255,0.1)",borderRadius:"10px",background:"#060b17",overflow:"hidden"},children:[a.jsxs("button",{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:58",type:"button",onFocus:()=>o(d.id),onBlur:()=>o(null),onClick:()=>s(S=>S===d.id?null:d.id),"aria-expanded":g,"aria-controls":`timeline-${d.id}`,style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"1rem",padding:"1rem",border:0,color:"#fff",background:"transparent",textAlign:"left",cursor:"pointer"},children:[a.jsxs("span",{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:58",children:[a.jsxs("span",{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:58",style:{display:"block",marginBottom:"0.28rem",color:u==="upcoming"?"#f6c453":u==="current"?"#5eead4":"rgba(255,255,255,0.47)",fontSize:"0.66rem",fontWeight:900,letterSpacing:"0.09em",textTransform:"uppercase"},children:[u==="current"?"On now":u," · ",m]}
1134),a.jsx("strong",{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:58",style:{fontSize:"1rem"},children:d.title})]}),a.jsx(yi,{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:58",size:18,"aria-hidden":"true",style:{transform:g?"rotate(180deg)":"rotate(0)",transition:"transform 180ms cubic-bezier(0.23, 1, 0.32, 1)",flexShrink:0}})]}),g&&a.jsxs("div",{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:59",id:`timeline-${d.id}`,style:{padding:"0 1rem 1rem"},children:[a.jsx("p",{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:59",style:{margin:"0 0 0.45rem",color:"rgba(255,255,255,0.68)",fontSize:"0.83rem",lineHeight:1.55},children:d.description}),a.jsx("p",{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:59",style:{margin:"0 0 0.7rem",color:"rgba(255,255,255,0.48)",fontSize:"0.75rem"},children:d.location}),a.jsxs("div",{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:59",style:{display:"flex",flexWrap:"wrap",gap:"0.75rem"},children:[a.jsxs("a",{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:59",href:d.sourceUrl,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",color:"#f6c453",fontSize:"0.75rem",fontWeight:800},children:[d.sourceLabel," ",a.jsx(ve,{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:59",size:13})]}),u==="upcoming"&&a.jsxs("a",{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:59",href:y,download:T7e(d.title),style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",color:"#5eead4",fontSize:"0.75rem",fontWeight:800},children:[a.jsx(au,{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:59",size:13})," Add to calendar"]})]})]})]}),f&&a.jsxs("aside",{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:61",role:"status","aria-label":`${d.title} quick preview`,style:{marginTop:"0.5rem",border:"1px solid rgba(246,196,83,0.3)",borderRadius:"8px",padding:"0.8rem 1rem",background:"rgba(246,196,83,0.08)",color:"#fff",animation:"artTimelinePreview 180ms cubic-bezier(0.23, 1, 0.32, 1) both"},children:[a.jsxs("strong",{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:61",style:{display:"block",fontSize:"0.8rem"},children:["Quick preview · ",d.title]}),a.jsxs("span",{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:61",style:{display:"block",marginTop:"0.3rem",color:"rgba(255,255,255,0.68)",fontSize:"0.74rem",lineHeight:1.45},children:[a.jsx(by,{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:61",size:12,style:{display:"inline",verticalAlign:"-1px",marginRight:"0.25rem"}}),d.location," · ",m]}),a.jsxs("a",{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:61",href:d.sourceUrl,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.3rem",marginTop:"0.5rem",color:"#f6c453",fontSize:"0.72rem",fontWeight:800},children:["View event details ",a.jsx(ve,{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:61",size:12})]})]})]},d.id)})}),l.length===0&&a.jsx("p",{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:64",style:{margin:"1rem 0 0",color:"rgba(255,255,255,0.55)"},children:"No confirmed events match this view."})]}),a.jsx("style",{"data-loc":"client/src/components/ArtExhibitionTimeline.tsx:66",children:'@keyframes artTimelinePreview { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } } @media (prefers-reduced-motion: reduce) { [aria-label$="quick preview"] { animation: none !important; } }'})]})}const z7e=[{name:"Jonas Lund",initials:"JL",role:"Artist",context:"Presented a MoMI commission with Yoshi Sodeoka in the Responsive Signals programme.",searchQuery:"Jonas Lund",sourceUrl:"https://movingimage.org/event/responsive-signals/",accent:"#8b5cf6"},{name:"Yoshi Sodeoka",initials:"YS",role:"Artist",context:"Presented the MoMI commission Terms of Agreement ð³ with Jonas Lund.",searchQuery:"Yoshi Sodeoka",sourceUrl:"https://movingimage.org/event/responsive-signals/",accent:"#2dd4bf"},{name:"Kat Zhang",initials:"KZ",role:"Artist · The Poet Engineer",context:"Presented interactive works exploring gesture, coding and machine memory at MoMI.",searchQuery:"Kat Zhang",sourceUrl:"https://movingimage.org/event/responsive-signals/",accent:"#f59e0b"},{name:"Micol",initials:"M",role:"Curator",context:"Co-curated Stories We Tell Online and the objkt.one works highlighted in the September recap.",searchQuery:"Stories We Tell Online",sourceUrl:"https://x.com/tezos/status/2103485035299156358",accent:"#f472b6"}];function C7e(e){return e?new Date(e).toLocaleDateString("en-GB",{day:"numeric",month:"long",year:"numeric"}):""}function E7e(){const{data:e,isLoading:t}=ee.posts.byCategory.useQuery({slug:"art",limit:100,offset:0},{staleTime:3e5}),r=E.useMemo(()=>(e?.posts??[]).find(n=>iV(n)==="recaps"),[e]);return a.jsxs("section",{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:62",id:"art-this-week",style:{padding:"3.15rem 0",background:"linear-gradient(135deg, #080b
11341b 0%, #171035 56%, #082a31 100%)",borderTop:"1px solid rgba(249,168,212,0.18)",borderBottom:"1px solid rgba(45,212,191,0.18)"},"aria-labelledby":"art-this-week-title",children:[a.jsxs("div",{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:63",className:"container",children:[a.jsxs("div",{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:64",style:{display:"flex",alignItems:"end",justifyContent:"space-between",gap:"1rem",flexWrap:"wrap",marginBottom:"1.25rem"},children:[a.jsxs("div",{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:65",children:[a.jsxs("p",{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:66",style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",margin:0,color:"#5eead4",fontSize:"0.66rem",fontWeight:900,letterSpacing:"0.12em",textTransform:"uppercase"},children:[a.jsx(Fa,{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:66",size:14,"aria-hidden":"true"})," Curated weekly update"]}),a.jsx("h2",{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:67",id:"art-this-week-title",style:{margin:"0.4rem 0 0",color:"#fff",fontSize:"clamp(1.6rem, 3vw, 2.1rem)",lineHeight:1.1},children:"Art on Tezos this week"})]}),a.jsxs($,{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:69",href:"/art?type=recaps",style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",color:"#5eead4",fontSize:"0.78rem",fontWeight:800,textDecoration:"none"},children:["Browse recap archive ",a.jsx(_e,{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:69",size:14})]})]}),a.jsx("p",{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:71",style:{maxWidth:"760px",margin:"0 0 1.35rem",color:"rgba(255,255,255,0.66)",fontSize:"0.9rem",lineHeight:1.6},children:"The latest published Art on Tezos recap is surfaced here automatically. It is an editorial round-up, not a live calendar; check the linked organiser before acting on any dated event, release or call."}),t?a.jsx("div",{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:74",className:"skeleton","aria-label":"Loading latest Art on Tezos recap",style:{height:"260px",borderRadius:"12px"}}):r?a.jsxs($,{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:76",href:`/${r.slug}`,style:{display:"grid",gridTemplateColumns:"minmax(0, 0.86fr) minmax(0, 1.14fr)",overflow:"hidden",borderRadius:"12px",border:"1px solid rgba(45,212,191,0.28)",background:"rgba(4,8,22,0.75)",color:"inherit",textDecoration:"none"},className:"art-weekly-recap-card",children:[a.jsx("div",{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:77",style:{minHeight:"240px",background:"#071a35"},children:r.featuredImageUrl?a.jsx("img",{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:77",src:Je(r.featuredImageUrl),alt:r.featuredImageAlt||r.title,style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}}):a.jsx("div",{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:77",style:{minHeight:"240px",height:"100%",display:"grid",placeItems:"center",background:"radial-gradient(circle, #12405c, #11102b)"},children:a.jsx(Do,{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:77",size:44,color:"#5eead4","aria-hidden":"true"})})}),a.jsxs("div",{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:78",style:{padding:"1.4rem clamp(1.25rem, 3vw, 2.1rem)",display:"flex",flexDirection:"column",justifyContent:"center"},children:[a.jsx("p",{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:79",style:{margin:0,color:"#5eead4",fontSize:"0.64rem",fontWeight:900,letterSpacing:"0.1em",textTransform:"uppercase"},children:"Latest official-recap coverage"}),a.jsx("h3",{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:80",style:{margin:"0.55rem 0",color:"#fff",fontSize:"clamp(1.35rem, 2.5vw, 1.85rem)",lineHeight:1.14},children:r.title}),a.jsx("p",{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:81",style:{margin:"0 0 0.9rem",color:"rgba(255,255,255,0.62)",fontSize:"0.86rem",lineHeight:1.58},children:r.excerpt}),a.jsx("span",{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:82",style:{color:"rgba(255,255,255,0.46)",fontSize:"0.72rem",fontWeight:700},children:C7e(r.publishedAt)}),a.jsxs("b",{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:83",style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",marginTop:"1rem",color:"#5eead4",fontSize:"0.78rem"},children:["Read this recap ",a.jsx(_e,{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:83",size:14})]})]})]}):a.jsx("div",{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:87",style:{padding:"1.5rem",border:"1px dashed rgba(255,255,255,0.23)",borderRadius:"10px",color:"rgba(255,255,255,0.65)"},children:"The next published Art on Tezos recap will appear here. Browse the existing archive in the meantime."}),a.jsxs("div",{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:90",style:{display:"flex",alignItems:"end",justifyContent:"space-between",gap:"1rem",flexWrap:"wrap",marginTop:"2.5rem",marginBottom:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:91",children:[a.jsxs("p",{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:92",style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",margin:0,color:"#f9a8d4",fontSize:"0.65rem",fontWeight:900,letterSpacing:"0.1em",textTransform:"uppercase"},children:[a.jsx(Sc,{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:92",size:14,"aria-hidden":"true"})," Contributor profiles"]}),a.jsx("h3",{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:93",style:{margin:"0.35rem 0 0",color:"#fff",fontSize:"1.3rem"},children:"People in the current coverage"})]}),a.jsx("span",{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:95",style:{color:"rgba(255,255,255,0.45)",fontSize:"0.74rem"},children:"Source-linked context, not an endorsement"})]}),a.jsx("div",{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:97",className:"art-contributor-grid",style:{display:"grid",gridTemplateColumns:"repeat(4, minmax(0, 1fr))",gap:"0.85rem"},children:z7e.map(n=>a.jsxs("article",{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:99",style:{display:"flex",flexDirection:"column",minHeight:"230px",padding:"1rem",background:"rgba(5,7,20,0.58)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:"10px"},children:[a.jsxs("div",{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:100",style:{display:"flex",alignItems:"center",gap:"0.7rem"},children:[a.jsx("span",{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:101","aria-hidden":"true",style:{display:"grid",placeItems:"center",width:"42px",height:"42px",borderRadius:"50%",color:"#06101e",background:n.accent,fontWeight:950,fontSize:"0.78rem",letterSpacing:"0.02em"},children:n.initials}),a.jsxs("div",{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:102",children:[a.jsx("h4",{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:102",style:{margin:0,color:"#fff",fontSize:"0.96rem"},children:n.name}),a.jsx("p",{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:102",style:{margin:"0.15rem 0 0",color:n.accent,fontSize:"0.65rem",fontWeight:800,letterSpacing:"0.06em",textTransform:"uppercase"},children:n.role})]})]}),a.jsx("p",{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:104",style:{margin:"0.9rem 0",color:"rgba(255,255,255,0.6)",fontSize:"0.76rem",lineHeight:1.55},children:n.context}),a.jsxs("div",{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:105",style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"0.5rem",marginTop:"auto"},children:[a.jsxs($,{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:106",href:`/search?q=${encodeURIComponent(n.searchQuery)}`,style:{color:"#fff",fontSize:"0.72rem",fontWeight:800,textDecoration:"none"},children:["Find coverage ",a.jsx(_e,{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:106",size:12,style:{display:"inline",verticalAlign:"-2px"}})]}),a.jsx("a",{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:107",href:n.sourceUrl,target:"_blank",rel:"noopener noreferrer","aria-label":`Open source context for ${n.name}`,style:{display:"inline-flex",color:"rgba(255,255,255,0.58)",padding:"0.25rem"},children:a.jsx(ve,{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:107",size:14})})]})]},n.name))})]}),a.jsx("style",{"data-loc":"client/src/components/ArtOnTezosWeeklyModule.tsx:113",children:"@media (max-width: 760px) { .art-weekly-recap-card { grid-template-columns: 1fr !important; } .art-weekly-recap-card > div:first-child { min-height: 200px !important; } .art-contributor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } } @media (max-width: 420px) { .art-contributor-grid { grid-template-columns: 1fr !important; } }"})]})}const O7e=[{question:"What is the Art on Tezos collection hub?",answer:"It is an XTZ.News reading and discovery page that groups published Tezos art projects, relevant editorial coverage, and practical ecosystem paths in one place."},{question:"Does XTZ.News endorse the listed art projects or collections?",answer:"No. The hub is an editorial discovery surface. Readers should review each projectâs official information and make their own decisions before collecting, supporting, or using any service."},{question:"Where can I find more Tezos art coverage?",answer:"Use the Art on Tezos news collection, the XTZ.News project directory, and the linked category archives to follow new published coverage."}],PB=[{value:"all",label:"All art projects"},{value:"exhibition",label:"Exhibitions"},{value:"marketplace",label:"Marketplaces"},{value:"creator_tool",label:"Creator tools"}],cV={"hek-tezos-digital-art":"exhibition",objkt:"marketplace",teia:"marketplace",fxhash:"marketplace",editart:"creator_tool",infiniteink:"creator_tool"},M7e=["objkt","teia","fxhash","editart","infiniteink"],N7e=new Set(["editart","infiniteink","hek-tezos-digital-art"]),R7e={exhibition:"Exhibition",marketplace:"Marketplace",creator_tool:"Creator tool",other:"Art project"},D7e=[{id:"art-on-tezos-berlin",title:"Art on Tezos: Berlin",startDate:"2025-11-06",endD
1134ate:"2025-11-09",location:"Berlin, Germany",description:"A three-day programme of exhibitions, performances, screenings, and gatherings across five locations.",sourceLabel:"Open official event page",sourceUrl:"https://tezos.com/events/art-on-tezos-berlin"},{id:"bar-codex",title:"Bar CodeX at macBAR",startDate:"2026-03-06",endDate:"2026-07-12",location:"Musée dâArt Contemporain de Lyon, France",description:"Wen New Atelierâs institutional exhibition at macBAR, presented with Art on Tezos support.",sourceLabel:"Read Tezos Spotlight",sourceUrl:"https://spotlight.tezos.com/bar-codex-at-macbar/"},{id:"404-land",title:"404_LAND, HEK à Tezos",startDate:"2026-06-12",endDate:"2026-08-09",location:"Online via HEK",description:"The first virtual exhibition within the 2026 HEK Basel and Tezos Foundation art programme.",sourceLabel:"Read partnership context",sourceUrl:"https://spotlight.tezos.com/inside-the-hek-tezos-foundation-partnership/"},{id:"terms-of-agreement",title:"Terms of Agreement ð³",startDate:"2026-08-06",endDate:"2026-10-25",location:"Museum of the Moving Image, New York",description:"A Jonas Lund and Yoshi Sodeoka commission on the Schlosser Media Wall within the MoMI à Tezos programme.",sourceLabel:"Open official museum listing",sourceUrl:"https://movingimage.org/event/terms-of-agreement/"},{id:"responsive-signals",title:"Responsive Signals",startDate:"2026-09-22",endDate:"2026-09-22",calendarStartAt:"2026-09-22T22:00:00.000Z",calendarEndAt:"2026-09-23T01:00:00.000Z",location:"Museum of the Moving Image, New York",description:"Artist talks, demonstrations, and interactive installations during Armory Week with MoMI and Art on Tezos.",sourceLabel:"Open official programme",sourceUrl:"https://movingimage.org/series/open-worlds-2026/"}];function _4(e){return cV[e.slug]||"other"}function _7e(e,t){return t==="all"?e:e.filter(r=>_4(r)===t)}function I7e(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()));t.setUTCDate(t.getUTCDate()+4-(t.getUTCDay()||7));const r=new Date(Date.UTC(t.getUTCFullYear(),0,1));return Math.ceil(((t.getTime()-r.getTime())/864e5+1)/7)}function B7e(e,t=new Date){const r=M7e.map(n=>e.find(s=>s.slug===n)).filter(n=>!!n);return r.length?r[(I7e(t)-1)%r.length]:void 0}function L7e(e){return e?new Date(e).toLocaleDateString("en-GB",{day:"numeric",month:"long",year:"numeric"}):""}function TB({group:e}){const t=e==="exhibition"?GW:e==="marketplace"?cne:e==="creator_tool"?vne:Do;return a.jsx("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:49",style:{display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",background:"linear-gradient(135deg, #261444, #10384e)"},children:a.jsx(t,{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:49",size:32,color:"#f9a8d4","aria-hidden":"true"})})}function W7e(){const[e,t]=E.useState("all"),{data:r=[],isLoading:n}=ee.projects.all.useQuery({category:"all"},{staleTime:3e5}),{data:s,isLoading:i}=ee.posts.byCategory.useQuery({slug:"art",limit:12,offset:0},{staleTime:3e5}),{data:o}=ee.posts.byCategory.useQuery({slug:"nfts",limit:12,offset:0},{staleTime:3e5}),l=E.useMemo(()=>r.filter(f=>{const m=`${f.title??""} ${f.category??""} ${f.excerpt??""}`.toLowerCase();return!!cV[f.slug]||f.category==="NFTs"||/(art|artist|collect|nft|objkt|teia|gallery|mint)/.test(m)}).slice(0,18),[r]),d=E.useMemo(()=>_7e(l,e),[e,l]),u=E.useMemo(()=>B7e(l),[l]),g=E.useMemo(()=>Array.from(new Map([...s?.posts??[],...o?.posts??[]].map(f=>[f.id,f])).values()).slice(0,12),[s,o]);return Ie({title:"Art on Tezos Hub: Projects, Artists and News | XTZ.News",description:"Explore Tezos art projects, creator-led coverage, collecting context, exhibitions, and digital-art resources from XTZ.News.",keywords:"Art on Tezos, Tezos art, Tezos NFT projects, objkt, Tezos artists, digital art, Tezos collecting",canonical:"https://xtz.news/art-on-tezos",jsonLd:[ka({title:"Art on Tezos Hub | XTZ.News",description:"Projects, coverage and discovery paths for Tezos digital art.",url:"https://xtz.news/art-on-tezos",breadcrumbs:[{name:"Home",url:"https://xtz.news"},{name:"Art on Tezos",url:"https://xtz.news/art-on-tezos"}]}),Pa(O7e)]}),a.jsxs("main",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:63",style:{minHeight:"100vh",background:"#05040c"},children:[a.jsxs("section",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:64",style:{position:"relative",overflow:"hidden",padding:"4.3rem 0 3.4rem",background:"radial-gradient(circle at 10% 10%, rgba(236,72,153,0.3), transparent 28%), radial-gradient(circle at 86% 22%, rgba(45,212,191,0.24), transparent 30%), linear-gradient(135deg, #100d2b, #071f32 60%, #170d2b)"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:64",className:"container",style:{position:"relative"},children:[a.jsxs("nav",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:64","aria-label":"Breadcrumb",style:{display:"flex",alignItems:"center",gap:"0.35rem",color:"rgba(255,255,255,0.58)",fontSize:"0.74rem",marginBottom:"1.25rem"},children:[a.jsx($,{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:64",href:"/","aria-label":"XTZ.News home",style:{color:"#fff"},children:a.jsx(Qt,{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:64",size:14})}),a.jsx(Le,{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:64",size:13}),a.jsx("span",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:64","aria-current":"page",children:"Art on Tezos"})]}),a.jsxs("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:64",className:"art-hub-hero",style:{display:"grid",gridTemplateColumns:"minmax(0,1.15fr) minmax(290px,0.85fr)",gap:"2rem",alignItems:"end"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:64",children:[a.jsxs("p",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:64",style:{display:"flex",alignItems:"center",gap:"0.45rem",margin:"0 0 0.75rem",color:"#f9a8d4",fontSize:"0.7rem",fontWeight:900,letterSpacing:"0.12em",textTransform:"uppercase"},children:[a.jsx(Do,{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:64",size:15,"aria-hidden":"true"})," XTZ.News collection"]}),a.jsx("h1",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:64",style:{margin:"0 0 1rem",color:"#fff",fontSize:"clamp(2.2rem, 5vw, 4.2rem)",letterSpacing:"-0.04em",lineHeight:1.02,fontWeight:950},children:"Art on Tezos"}),a.jsx("p",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:64",style:{margin:0,color:"rgba(255,255,255,0.76)",fontSize:"clamp(1rem, 2vw, 1.2rem)",lineHeight:1.65,maxWidth:"690px"},children:"A focused route through Tezos art projects, published XTZ.News coverage, exhibitions, and collecting context. Filter the collection by route, then share a project with the editorial team for review."}),a.jsxs("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:64",style:{display:"flex",flexWrap:"wrap",gap:"0.65rem",marginTop:"1.5rem"},children:[a.jsxs("a",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:64",href:"#art-projects",style:{color:"#171022",background:"#f9a8d4",padding:"0.65rem 0.95rem",borderRadius:"6px",textDecoration:"none",fontWeight:900,fontSize:"0.8rem"},children:["Browse projects ",a.jsx(_e,{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:64",size:14,style:{display:"inline",verticalAlign:"-2px"}})]}),a.jsx("a",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:64",href:"#art-timeline",style:{color:"rgba(255,255,255,0.9)",border:"1px solid rgba(255,255,255,0.25)",padding:"0.65rem 0.95rem",borderRadius:"6px",textDecoration:"none",fontWeight:800,fontSize:"0.8rem"},children:"Explore timeline"})]})]}),a.jsx("aside",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:64","aria-label":"This weekâs curated Art on Tezos profile",style:{minHeight:"230px",border:"1px solid rgba(249,168,212,0.4)",borderRadius:"12px",overflow:"hidden",background:"rgba(5,7,20,0.52)"},children:u?a.jsxs($,{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:64",href:`/projects/${u.slug}`,style:{display:"grid",gridTemplateColumns:"120px 1fr",minHeight:"230px",color:"inherit",textDecoration:"none"},children:[a.jsx("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:64",children:u.featuredImageUrl?a.jsx("img",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:64",src:Je(u.featuredImageUrl),alt:u.featuredImageAlt||u.title,style:{width:"100%",height:"100%",objectFit:"cover"}}):a.jsx(TB,{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:64",group:_4(u)})}),a.jsxs("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:64",style:{padding:"1.25rem"},children:[a.jsx("p",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:64",style:{margin:0,color:"#f9a8d4",fontSize:"0.62rem",fontWeight:900,letterSpacing:"0.1em",textTransform:"uppercase"},children:"This weekâs curated profile"}),a.jsx("h2",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:64",style:{margin:"0.6rem 0",color:"#fff",fontSize:"1.35rem",lineHeight:1.15},children:u.title}),a.jsx("p",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:64",style:{margin:0,color:"rgba(255,255,255,0.65)",fontSize:"0.78rem",lineHeight:1.55},children:u.excerpt}),a.jsxs("span",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:64",style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",marginTop:"1rem",color:"#fff",fontSize:"0.75rem",fontWeight:900},children:["View profile ",a.jsx(_e,{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:64",size:14})]})]})]}):a.jsxs("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:64",style:{padding:"1.25rem"},children:[a.jsx("p",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:64",style:{margin:0,color:"#f9a8d4",fontSize:"0.62rem",fontWeight:900,letterSpacing:"0.1em",textTransform:"uppercase"},children:"This weekâs curated profile"}),a.jsx("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:64",className:"skeleton",style:{height:"26px",marginTop:"1rem"}}),a.jsx("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:64",className:"skeleton",style:{height:"52px",marginTop:"0.75rem"}})]})})]})]}),a.jsx("style",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:64",children:"@media (max-width: 720px) { .art-hub-hero { grid-template-columns: 1fr !important; } }"})]}),a.jsx(E7e,{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:65"}),a.jsx("section",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:66",style:{padding:"2.4rem 0",borderBottom:"1px solid rgba(255,255,255,0.08)",background:"#0a0b17"},children:a.jsxs("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:66",className:"container",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(210px, 1fr))",gap:"1rem"},children:[a.jsx($,{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:66",href:"/art",style:{textDecoration:"none"},children:a.jsxs("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:66",style:{height:"100%",padding:"1.15rem",borderRadius:"10px",border:"1px solid rgba(249,168,212,0.25)",background:"rgba(249,168,212,0.05)"},children:[a.jsx(Ire,{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:66",size:19,color:"#f9a8d4","aria-hidden":"true"}),a.jsx("h2",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:66",style:{margin:"0.75rem 0 0.35rem",fontSize:"1rem",color:"#fff"},children:"Art & Culture archive"}),a.jsx("p",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:66",style:{margin:0,color:"rgba(255,255,255,0.6)",fontSize:"0.8rem",lineHeight:1.55},children:"Explore the wider XTZ.News art archive and creator context."})]})}),a.jsx($,{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:66",href:"/projects",style:{textDecoration:"none"},children:a.jsxs("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:66",style:{height:"100%",padding:"1.15rem",borderRadius:"10px",border:"1px solid rgba(45,212,191,0.25)",background:"rgba(45,212,191,0.05)"},children:[a.jsx(Mre,{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:66",size:19,color:"#5eead4","aria-hidden":"true"}),a.jsx("h2",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:66",style:{margin:"0.75rem 0 0.35rem",fontSize:"1rem",color:"#fff"},children:"Project directory"}),a.jsx("p",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:66",style:{margin:0,color:"rgba(255,255,255,0.6)",fontSize:"0.8rem",lineHeight:1.55},children:"Find published ecosystem profiles, including art and NFT projects."})]})}),a.jsx($,{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:66",href:"/events",style:{textDecoration:"none"},children:a.jsxs("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:66",style:{height:"100%",padding:"1.15rem",borderRadius:"10px",border:"1px solid rgba(246,196,83,0.25)",background:"rgba(246,196,83,0.05)"},children:[a.jsx(Fu,{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:66",size:19,color:"#f6c453","aria-hidden":"true"}),a.jsx("h2",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:66",style:{margin:"0.75rem 0 0.35rem",fontSize:"1rem",color:"#fff"},children:"Tezos events"}),a.jsx("p",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:66",style:{margin:0,color:"rgba(255,255,255,0.6)",fontSize:"0.8rem",lineHeight:1.55},children:"See editorially published event listings with source links and calendar downloads."}),a.jsxs("span",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:66",style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",marginTop:"0.65rem",color:"#f6c453",fontSize:"0.72rem",fontWeight:800},children:["Open event calendar ",a.jsx(ve,{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:66",size:12})]})]})})]})}),a.jsx("section",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:67",id:"art-projects",style:{padding:"3.25rem 0"},children:a.jsxs("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:67",className:"container",children:[a.jsxs("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:67",style:{display:"flex",alignItems:"end",justifyContent:"space-between",gap:"1rem",flexWrap:"wrap",marginBottom:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:67",children:[a.jsx("p",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:67",style:{margin:0,color:"#f9a8d4",fontSize:"0.65rem",fontWeight:900,letterSpacing:"0.1em",textTransform:"uppercase"},children:"Curated collection"}),a.jsx("h2",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:67",style:{margin:"0.3rem 0 0",fontSize:"1.55rem",color:"#fff"},children:"Published Art on Tezos projects"})]}),a.jsxs($,{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:67",href:"/projects",style:{color:"#f9a8d4",fontSize:"0.78rem",fontWeight:800,textDecoration:"none"},children:["Open all projects ",a.jsx(_e,{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:67",size:14,style:{display:"inline",verticalAlign:"-2px"}})]})]}),a.jsx("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:67",role:"group","aria-label":"Filter Art on Tezos projects",style:{display:"flex",flexWrap:"wrap",gap:"0.5rem",margin:"1.1rem 0 1.4rem"},children:PB.map(f=>a.jsx("button",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:67",type:"button",onClick:()=>t(f.value),"aria-pressed":e===f.value,style:{minHeight:"38px",padding:"0.5rem 0.75rem",borderRadius:"999px",border:e===f.value?"1px solid #f9a8d4":"1px solid rgba(255,255,255,0.18)",background:e===f.value?"rgba(249,168,212,0.16)":"transparent",color:e===f.value?"#f9a8d4":"rgba(255,255,255,0.72)",fontSize:"0.75rem",fontWeight:800,cursor:"pointer"},children:f.label},f.value))}),a.jsxs("p",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:67","aria-live":"polite",style:{margin:"0 0 1rem",color:"rgba(255,255,255,0.5)",fontSize:"0.75rem"},children:[d.length," project",d.length===1?"":"s"," shown",e==="all"?"":` in ${PB.find(f=>f.value===e)?.label.toLowerCase()}`]}),n?a.jsxs("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:67",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(220px, 1fr))",gap:"1rem"},children:[a.jsx("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:67",className:"skeleton",style:{height:"200px"}}),a.jsx("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:67",className:"skeleton",style:{height:"200px"}})]}):d.length?a.jsx("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:67",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(220px, 1fr))",gap:"1rem"},children:d.map(f=>{const m=_4(f);return a.jsx($,{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:67",href:`/projects/${f.slug}`,style:{textDecoration:"none"},children:a.jsxs("article",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:67",style:{height:"100%",overflow:"hidden",borderRadius:"10px",border:"1px solid rgba(255,255,255,0.1)",background:"#0c1222"},children:[a.jsx("div",{"da
1134ta-loc":"client/src/pages/ArtOnTezosPage.tsx:67",style:{height:"130px",overflow:"hidden"},children:f.featuredImageUrl?a.jsx("img",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:67",src:Je(f.featuredImageUrl),alt:f.featuredImageAlt||f.title,style:{width:"100%",height:"100%",objectFit:"cover"}}):a.jsx(TB,{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:67",group:m})}),a.jsxs("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:67",style:{padding:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:67",style:{display:"flex",gap:"0.45rem",alignItems:"center",flexWrap:"wrap"},children:[a.jsx("p",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:67",style:{margin:0,color:"#f9a8d4",fontSize:"0.62rem",fontWeight:900,letterSpacing:"0.09em",textTransform:"uppercase"},children:R7e[m]}),N7e.has(f.slug)&&a.jsx("span",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:67",style:{color:"#5eead4",fontSize:"0.58rem",fontWeight:900,letterSpacing:"0.07em",textTransform:"uppercase"},children:"Curated profile"})]}),a.jsx("h3",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:67",style:{margin:"0.35rem 0",color:"#fff",fontSize:"1rem"},children:f.title}),a.jsx("p",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:67",style:{margin:0,color:"rgba(255,255,255,0.58)",fontSize:"0.78rem",lineHeight:1.5,display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden"},children:f.excerpt})]})]})},f.id)})}):a.jsx("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:67",style:{padding:"2rem",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"10px",color:"rgba(255,255,255,0.6)"},children:"No published profiles currently match this collection group. Try another filter or explore the full project directory."})]})}),a.jsx(A7e,{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:68",entries:D7e}),a.jsx("section",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:69",id:"art-coverage",style:{padding:"3.25rem 0",background:"#05040c"},children:a.jsxs("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:69",className:"container",children:[a.jsxs("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:69",style:{display:"flex",alignItems:"end",justifyContent:"space-between",gap:"1rem",flexWrap:"wrap",marginBottom:"1.4rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:69",children:[a.jsx("p",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:69",style:{margin:0,color:"#5eead4",fontSize:"0.65rem",fontWeight:900,letterSpacing:"0.1em",textTransform:"uppercase"},children:"XTZ.News coverage"}),a.jsx("h2",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:69",style:{margin:"0.3rem 0 0",fontSize:"1.55rem",color:"#fff"},children:"Stories for art and collecting readers"})]}),a.jsxs($,{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:69",href:"/category/art",style:{color:"#5eead4",fontSize:"0.78rem",fontWeight:800,textDecoration:"none"},children:["View Art archive ",a.jsx(_e,{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:69",size:14,style:{display:"inline",verticalAlign:"-2px"}})]})]}),i?a.jsx("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:69",className:"skeleton",style:{height:"240px"}}):g.length?a.jsx("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:69",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(250px, 1fr))",gap:"1rem"},children:g.map(f=>a.jsx($,{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:69",href:`/${f.slug}`,style:{textDecoration:"none"},children:a.jsxs("article",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:69",style:{height:"100%",borderRadius:"10px",overflow:"hidden",border:"1px solid rgba(255,255,255,0.1)",background:"#060b17"},children:[a.jsx("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:69",style:{aspectRatio:"16 / 9",background:"#13223a"},children:f.featuredImageUrl&&a.jsx("img",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:69",src:Je(f.featuredImageUrl),alt:f.featuredImageAlt||f.title,style:{width:"100%",height:"100%",objectFit:"cover"}})}),a.jsxs("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:69",style:{padding:"1rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:69",style:{color:"rgba(255,255,255,0.42)",fontSize:"0.68rem",fontWeight:700},children:L7e(f.publishedAt)}),a.jsx("h3",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:69",style:{margin:"0.45rem 0",color:"#fff",fontSize:"1rem",lineHeight:1.32},children:f.title}),a.jsx("p",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:69",style:{margin:0,color:"rgba(255,255,255,0.57)",fontSize:"0.78rem",lineHeight:1.55,display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden"},children:f.excerpt}),a.jsxs("b",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:69",style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",marginTop:"0.8rem",color:"#5eead4",fontSize:"0.74rem"},children:["Read article ",a.jsx(_e,{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:69",size:14})]})]})]})},f.id))}):a.jsxs("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:69",style:{padding:"2rem",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"10px",color:"rgba(255,255,255,0.6)"},children:[a.jsx(XW,{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:69",size:22,"aria-hidden":"true"}),a.jsx("p",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:69",children:"Art coverage will be grouped here as XTZ.News publishes it."})]})]})}),a.jsxs("section",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:70",id:"art-submission",style:{padding:"3.25rem 0",borderTop:"1px solid rgba(255,255,255,0.08)",background:"linear-gradient(135deg, #100d2b, #071f32)"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:70",className:"container art-submission-layout",style:{display:"grid",gridTemplateColumns:"minmax(0, 0.78fr) minmax(0, 1.22fr)",alignItems:"start",ga
1134p:"1.5rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:70",children:[a.jsxs("p",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:70",style:{display:"flex",alignItems:"center",gap:"0.4rem",margin:"0 0 0.6rem",color:"#f9a8d4",fontSize:"0.66rem",fontWeight:900,letterSpacing:"0.1em",textTransform:"uppercase"},children:[a.jsx(wa,{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:70",size:14,"aria-hidden":"true"})," Editorial submissions"]}),a.jsx("h2",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:70",style:{margin:"0 0 0.75rem",color:"#fff",fontSize:"clamp(1.6rem, 3vw, 2.25rem)",lineHeight:1.1},children:"Share an art project for review."}),a.jsx("p",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:70",style:{margin:0,color:"rgba(255,255,255,0.68)",fontSize:"0.9rem",lineHeight:1.65},children:"Artists, galleries, and collectives can send an official project link and a concise description directly to the XTZ.News editorial team. Please use a project-owned website where possible."}),a.jsx("p",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:70",style:{margin:"1rem 0 0",color:"rgba(255,255,255,0.48)",fontSize:"0.76rem",lineHeight:1.55},children:"The editorial team checks submissions before deciding whether a profile belongs in the collection. This is a discovery and review channel, not a paid placement request."})]}),a.jsx(k7e,{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:70"})]}),a.jsx("style",{"data-loc":"client/src/pages/ArtOnTezosPage.tsx:70",children:"@media (max-width: 720px) { .art-submission-layout { grid-template-columns: 1fr !important; } }"})]})]})}const $7e=[{value:"community",label:"Community gathering"},{value:"conference",label:"Conference"},{value:"meetup",label:"Meetup"},{value:"workshop",label:"Workshop"},{value:"exhibition",label:"Exhibition"},{value:"online",label:"Online event"},{value:"other",label:"Other"}],AB={submitterName:"",submitterEmail:"",eventTitle:"",eventType:"community",sourceUrl:"",startAt:"",endAt:"",location:"",timezone:"",description:"",agreedToReview:!1},as={width:"100%",boxSizing:"border-box",borderRadius:"6px",border:"1px solid rgba(255,255,255,0.16)",background:"rgba(3, 8, 20, 0.72)",color:"#fff",font:"inherit",fontSize:"0.86rem",padding:"0.7rem 0.78rem"};function ss({htmlFor:e,children:t}){return a.jsx("label",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:39",htmlFor:e,style:{display:"block",marginBottom:"0.38rem",color:"rgba(255,255,255,0.72)",fontSize:"0.7rem",fontWeight:800,letterSpacing:"0.05em",textTransform:"uppercase"},children:t})}const zB={reviewNote:"Every event submission is reviewed by the XTZ.News editorial team. Submission does not guarantee inclusion, and nothing is published automatically.",consent:"I confirm that the details are accurate and that I may submit this event for editorial review."};function F7e(){const[e,t]=E.useState(AB),[r,n]=E.useState(""),s=ee.tezosEventCandidates.create.useMutation({onSuccess:()=>{n("Thank you. Your event has been sent for editorial review."),t(AB)},onError:d=>n(d.message||"We could not send your event just now. Please try again later.")}),i=(d,u)=>t(g=>({...g,[d]:u})),o=d=>d?new Date(d).toISOString():void 0,l=d=>{if(d.preventDefault(),n(""),!e.agreedToReview){n("Please confirm the review statement before sending your event.");return}const u=o(e.startAt),g=o(e.endAt);if(!u||g&&new Date(g).getTime()<new Date(u).getTime()){n("Please provide a valid start time and an end time that follows it.");return}s.mutate({submitterName:e.submitterName,submitterEmail:e.submitterEmail,eventTitle:e.eventTitle,eventType:e.eventType,sourceUrl:e.sourceUrl,startAt:u,...g?{endAt:g}:{},location:e.location,...e.timezone.trim()?{timezone:e.timezone.trim()}:{},description:e.description,agreedToReview:!0})};return a.jsxs("form",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:65",onSubmit:l,"aria-describedby":"event-submission-review-note",className:"rounded-xl border border-amber-300/25 bg-[#07101f] p-5",children:[a.jsxs("div",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:66",className:"grid gap-3 sm:grid-cols-2",children:[a.jsxs("div",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:66",children:[a.jsx(ss,{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:66",htmlFor:"event-submitter-name",children:"Your name"}),a.jsx("input",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:66",id:"event-submitter-name",value:e.submitterName,onChange:d=>i("submitterName",d.target.value),minLength:2,maxLength:255,required:!0,autoComplete:"name",style:as})]}),a.jsxs("div",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:66",children:[a.jsx(ss,{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:66",htmlFor:"event-submitter-email",children:"Email"}),a.jsx("input",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:66",id:"event-submitter-email",type:"email",value:e.submitterEmail,onChange:d=>i("submitterEmail",d.target.value),maxLength:320,required:!0,autoComplete:"email",style:as})]})]}),a.jsxs("div",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:67",className:"mt-3 grid gap-3 sm:grid-cols-[minmax(0,1fr)_190px]",children:[a.jsxs("div",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:67",children:[a.jsx(ss,{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:67",htmlFor:"event-submission-title",children:"Event title"}),a.jsx("input",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:67",id:"event-submission-title",value:e.eventTitle,onChange:d=>i("eventTitle",d.target.value),minLength:2,maxLength:500,required:!0,style:as})]}),a.jsxs("div",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:67",children:[a.jsx(ss,{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:67",htmlFor:"event-submission-type",children:"Event type"}),a.jsx("select",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:67",id:"event-submission-type",value:e.eventType,onCh
1134ange:d=>i("eventType",d.target.value),style:as,children:$7e.map(d=>a.jsx("option",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:67",value:d.value,children:d.label},d.value))})]})]}),a.jsxs("div",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:68",className:"mt-3",children:[a.jsx(ss,{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:68",htmlFor:"event-submission-source",children:"Official event link"}),a.jsx("input",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:68",id:"event-submission-source",type:"url",value:e.sourceUrl,onChange:d=>i("sourceUrl",d.target.value),placeholder:"https://",maxLength:2e3,required:!0,style:as}),a.jsx("p",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:68",className:"mt-1 text-xs text-white/45",children:"Use an organiser, venue, or official community listing where available."})]}),a.jsxs("div",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:69",className:"mt-3 grid gap-3 sm:grid-cols-2",children:[a.jsxs("div",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:69",children:[a.jsx(ss,{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:69",htmlFor:"event-submission-start",children:"Starts"}),a.jsx("input",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:69",id:"event-submission-start",type:"datetime-local",value:e.startAt,onChange:d=>i("startAt",d.target.value),required:!0,style:as})]}),a.jsxs("div",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:69",children:[a.jsxs(ss,{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:69",htmlFor:"event-submission-end",children:["Ends ",a.jsx("span",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:69",className:"normal-case",children:"(optional)"})]}),a.jsx("input",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:69",id:"event-submission-end",type:"datetime-local",value:e.endAt,onChange:d=>i("endAt",d.target.value),style:as})]})]}),a.jsxs("div",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:70",className:"mt-3 grid gap-3 sm:grid-cols-[minmax(0,1fr)_190px]",children:[a.jsxs("div",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:70",children:[a.jsx(ss,{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:70",htmlFor:"event-submission-location",children:"Location"}),a.jsx("input",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:70",id:"event-submission-location",value:e.location,onChange:d=>i("location",d.target.value),placeholder:"City, country or Online",minLength:2,maxLength:500,required:!0,style:as})]}),a.jsxs("div",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:70",children:[a.jsxs(ss,{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:70",htmlFor:"event-submission-timezone",children:["Time zone ",a.jsx("span",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:70",className:"normal-case",children:"(optional)"})]}),a.jsx("input",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:70",id:"event-submission-timezone",value:e.timezone,onChange:d=>i("timezone",d.target.value),placeholder:"Europe/London",maxLength:64,style:as})]})]}),a.jsxs("div",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:71",className:"mt-3",children:[a.jsx(ss,{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:71",htmlFor:"event-submission-description",children:"Event description"}),a.jsx("textarea",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:71",id:"event-submission-description",value:e.description,onChange:d=>i("description",d.target.value),minLength:40,maxLength:1600,rows:4,required:!0,placeholder:"Explain the Tezos connection, intended audience, and the useful details readers should know.",style:{...as,resize:"vertical",lineHeight:1.55}}),a.jsxs("p",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:71",className:"mt-1 text-xs text-white/45",children:[e.description.length,"/1600 characters · minimum 40"]})]}),a.jsxs("label",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:72",className:"mt-4 flex cursor-pointer items-start gap-2.5 text-sm leading-5 text-white/70",children:[a.jsx("input",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:72",type:"checkbox",checked:e.agreedToReview,onChange:d=>i("agreedToReview",d.target.checked),className:"mt-0.5 h-4 w-4 accent-amber-300"}),zB.consent]}),a.jsx("p",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:73",id:"event-submission-review-note",className:"mt-3 text-xs leading-5 text-white/50",children:zB.reviewNote}),r&&a.jsxs("p",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:74",role:"status",className:`mt-3 flex items-center gap-2 text-sm font-bold ${r.startsWith("Thank")?"text-emerald-300":"text-rose-200"}`,children:[a.jsx(Ga,{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:74",size:16,"aria-hidden":"true"}),r]}),a.jsx("button",{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:75",type:"submit",disabled:s.isPending,className:"mt-4 inline-flex min-h-11 items-center gap-2 rounded bg-amber-300 px-4 text-sm font-black text-[#1d1603] hover:bg-amber-200 disabled:cursor-wait disabled:opacity-60",children:s.isPending?a.jsxs(a.Fragment,{children:[a.jsx(Va,{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:75",className:"animate-spin",size:16})," Sending"]}):a.jsxs(a.Fragment,{children:[a.jsx(wa,{"data-loc":"client/src/components/TezosEventSubmissionForm.tsx:75",size:16})," Send for editorial review"]})})]})}function H7e(){return a.jsx("aside",{"data-loc":"client/src/components/EventCalendarSubscription.tsx:9","aria-labelledby":"
1134calendar-subscription-title",className:"rounded-xl border border-sky-300/25 bg-sky-300/[0.06] p-4",children:a.jsxs("div",{"data-loc":"client/src/components/EventCalendarSubscription.tsx:10",className:"flex flex-wrap items-start justify-between gap-4",children:[a.jsxs("div",{"data-loc":"client/src/components/EventCalendarSubscription.tsx:11",className:"flex min-w-0 gap-3",children:[a.jsx("div",{"data-loc":"client/src/components/EventCalendarSubscription.tsx:12","aria-hidden":"true",className:"grid h-9 w-9 shrink-0 place-items-center rounded-lg bg-sky-300/15 text-sky-200",children:a.jsx(uA,{"data-loc":"client/src/components/EventCalendarSubscription.tsx:12",size:18})}),a.jsxs("div",{"data-loc":"client/src/components/EventCalendarSubscription.tsx:13",children:[a.jsx("p",{"data-loc":"client/src/components/EventCalendarSubscription.tsx:14",className:"m-0 text-[0.63rem] font-black uppercase tracking-[0.14em] text-sky-200",children:"Stay in sync"}),a.jsx("h2",{"data-loc":"client/src/components/EventCalendarSubscription.tsx:15",id:"calendar-subscription-title",className:"mt-1 text-base font-black text-white",children:"Subscribe to upcoming Tezos events"}),a.jsx("p",{"data-loc":"client/src/components/EventCalendarSubscription.tsx:16",className:"mt-1.5 max-w-2xl text-sm leading-6 text-white/65",children:"Add the XTZ.News calendar to a personal calendar. It refreshes with future events once they have passed editorial review."})]})]}),a.jsxs("div",{"data-loc":"client/src/components/EventCalendarSubscription.tsx:19",className:"flex flex-wrap gap-2",children:[a.jsxs("a",{"data-loc":"client/src/components/EventCalendarSubscription.tsx:20",href:"webcal://xtz.news/events.ics",className:"inline-flex min-h-10 items-center gap-2 rounded bg-sky-300 px-3 text-sm font-black text-[#061428] transition-transform duration-150 hover:bg-sky-200 active:scale-[0.97]",children:[a.jsx(wre,{"data-loc":"client/src/components/EventCalendarSubscription.tsx:20",size:16})," Subscribe"]}),a.jsxs("a",{"data-loc":"client/src/components/EventCalendarSubscription.tsx:21",href:"https://xtz.news/events.ics",target:"_blank",rel:"noopener noreferrer",className:"inline-flex min-h-10 items-center gap-2 rounded border border-white/20 px-3 text-sm font-bold text-white/80 hover:bg-white/5",children:[a.jsx(ve,{"data-loc":"client/src/components/EventCalendarSubscription.tsx:21",size:15})," Open .ics feed"]})]})]})})}const I4=[{value:"all",label:"All event records"},{value:"current",label:"Current & upcoming"},{value:"upcoming",label:"Future scheduled"},{value:"past",label:"Past events"}];function q7e(){if(typeof window>"u")return"all";const e=new URLSearchParams(window.location.search).get("when");return I4.some(t=>t.value===e)?e:"all"}function Rx(e){if(typeof window>"u")return"";const t=new URLSearchParams(window.location.search).get(e)||"";return e==="from"||e==="to"?/^\d{4}-\d{2}-\d{2}$/.test(t)?t:"":t}function U7e(e,t){const r=new Date(e),n=new Intl.DateTimeFormat("en-GB",{dateStyle:"medium",timeStyle:"short",...t?{timeZone:t}:{}}).format(r);if(!t)return n;const s=new Intl.DateTimeFormat("en-GB",{timeZone:t,timeZoneName:"short"}).formatToParts(r).find(i=>i.type==="timeZoneName")?.value;return s?`${n} ${s}`:n}function G7e(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")||"tezos-event"}function V7e(){const{data:e=[],isLoading:t}=ee.tezosEventCandidates.published.useQuery(),[r,n]=E.useState("all"),[s,i]=E.useState("all"),[o,l]=E.useState(q7e),[d,u]=E.useState(()=>Rx("from")),[g,f]=E.useState(()=>Rx("to")),[m,y]=E.useState(()=>Rx("speaker")||"all"),[S,b]=E.useState(()=>Rx("topic")||"all");Ie({title:"Tezos Events | XTZ.News",description:"Editor-reviewed Tezos events, with past and future date controls, source links and calendar downloads from XTZ.News.",canonical:"https://xtz.news/events",jsonLd:[ka({title:"Tezos Events | XTZ.News",description:"Editor-reviewed Tezos events with primary source links.",url:"https://xtz.news/events",breadcrumbs:[{name:"Home",url:"https://xtz.news"},{name:"Events",url:"https://xtz.news/events"}]})]}),E.useEffect(()=>{const _=new URLSearchParams;o!=="all"&&_.set("when",o),d&&_.set("from",d),g&&_.set("to",g),m!=="all"&&_.set("speaker",m),S!=="all"&&_.set("topic",S);const W=_.toString();window.history.replaceState({},"",`${window.location.pathname}${W?`?${W}`:""}`)},[o,d,g,m,S]);const v=E.useMemo(()=>dae(e),[e]),j=E.useMemo(()=>uae(e),[e]),k=E.useMemo(()=>pae(e),[e]),P=E.useMemo(()=>gae(e),[e]),O=E.useMemo(()=>fae(e,r,s,m,S),[e,r,s,m,S]),T=E.useMemo(()=>ev(O,{scope:o,from:d||void 0,to:g||void 0}),[O,o,d,g]),C=E.useMemo(()=>ev(T,{scope:"current"}),[T]),A=E.useMemo(()=>ev(T,{scope:"past"}),[T]),N=()=>{n("all"),i("all"),y("all"),b("all"),l("all"),u(""),f("")},M=r!=="all"||s!=="all"||m!=="all"||S!=="all"||o!=="all"||!!d||!!g,B=({event:_})=>a.jsxs("article",{"data-loc":"client/src/pages/EventsPage.tsx:83",className:"rounded-xl border border-white/10 bg-white/[0.03] p-5",children:[_.imageUrl&&a.jsxs("figure",{"data-loc":"client/src/pages/EventsPage.tsx:84",className:"mb-4 overflow-hidden rounded-lg border border-white/10 bg-black/20",children:[a.jsx("a",{"data-loc":"client/src/pages/EventsPage.tsx:85",href:_.sourceUrl,target:"_blank",rel:"noopener noreferrer","aria-label":`Open the official source for ${_.title}`,className:"block overflow-hidden bg-[#071121]",children:a.jsx("img",{"data-loc":"client/src/pages/EventsPage.tsx:86",src:Je(_.imageUrl),alt:_.imageAlt||`${_.title} event visual`,loading:"lazy",className:"block aspect-[16/9] w-full object-cover transition-transform duration-200 hover:scale-[1.02]"})}),_.imageCredit&&a.jsxs("figcaption",{"data-loc":"client/src/pages/EventsPage.tsx:88",className:"border-t border-white/10 px-3 py-2 text-[0.68rem] leading-5 text-white/45",children:["Image: ",_.imageCredit]})]}),a.jsxs("div",{"data-loc":"client/src/pages/EventsPage.tsx:90",className:"flex flex-wrap gap-2",children:[a.jsxs("p",{"data-loc":"client/src/pages/EventsPage.tsx:91",className:"flex items-center gap-2 text-xs font-bold uppercase tracking-wide text-amber-300",children:[a.jsx(F
1134a,{"data-loc":"client/src/pages/EventsPage.tsx:91",size:15})," ",U7e(_.startAt,_.timezone)]}),_.eventType&&a.jsx("span",{"data-loc":"client/src/pages/EventsPage.tsx:92",className:"rounded-full border border-amber-300/30 px-2 py-0.5 text-[0.65rem] font-black uppercase tracking-wide text-amber-200",children:Jg[_.eventType]||_.eventType})]}),a.jsx("h3",{"data-loc":"client/src/pages/EventsPage.tsx:94",className:"mt-3 text-xl font-black",children:_.title}),_.location&&a.jsxs("p",{"data-loc":"client/src/pages/EventsPage.tsx:95",className:"mt-2 flex items-center gap-2 text-sm text-white/60",children:[a.jsx(by,{"data-loc":"client/src/pages/EventsPage.tsx:95",size:15})," ",_.location]}),_.description&&a.jsx("p",{"data-loc":"client/src/pages/EventsPage.tsx:96",className:"mt-3 text-sm leading-6 text-white/70",children:_.description}),((_.speakers?.length??0)>0||(_.topics?.length??0)>0)&&a.jsxs("div",{"data-loc":"client/src/pages/EventsPage.tsx:97",className:"mt-4 space-y-2",children:[_.speakers?.length?a.jsxs("div",{"data-loc":"client/src/pages/EventsPage.tsx:97",className:"flex flex-wrap items-center gap-1.5",children:[a.jsx("span",{"data-loc":"client/src/pages/EventsPage.tsx:97",className:"mr-1 text-[0.62rem] font-black uppercase tracking-[0.12em] text-white/40",children:"Speakers"}),_.speakers.map(W=>a.jsx("button",{"data-loc":"client/src/pages/EventsPage.tsx:97",type:"button",onClick:()=>y(W),className:"rounded-full border border-sky-300/25 bg-sky-300/[0.07] px-2 py-1 text-xs font-bold text-sky-100 hover:bg-sky-300/15",children:W},W))]}):null,_.topics?.length?a.jsxs("div",{"data-loc":"client/src/pages/EventsPage.tsx:97",className:"flex flex-wrap items-center gap-1.5",children:[a.jsx("span",{"data-loc":"client/src/pages/EventsPage.tsx:97",className:"mr-1 text-[0.62rem] font-black uppercase tracking-[0.12em] text-white/40",children:"Topics"}),_.topics.map(W=>a.jsx("button",{"data-loc":"client/src/pages/EventsPage.tsx:97",type:"button",onClick:()=>b(W),className:"rounded-full border border-amber-300/25 bg-amber-300/[0.07] px-2 py-1 text-xs font-bold text-amber-100 hover:bg-amber-300/15",children:W},W))]}):null]}),a.jsxs("div",{"data-loc":"client/src/pages/EventsPage.tsx:98",className:"mt-5 flex flex-wrap gap-3",children:[a.jsxs("a",{"data-loc":"client/src/pages/EventsPage.tsx:99",href:_.sourceUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex min-h-10 items-center gap-2 rounded border border-sky-300/35 px-3 text-sm font-bold text-sky-200 hover:bg-sky-300/10",children:["Source listing ",a.jsx(ve,{"data-loc":"client/src/pages/EventsPage.tsx:99",size:14})]}),a.jsxs("a",{"data-loc":"client/src/pages/EventsPage.tsx:100",href:lV({id:String(_.id),title:_.title,startAt:_.startAt.toISOString(),endAt:_.endAt?.toISOString(),location:_.location??void 0,description:_.description??void 0,sourceUrl:_.sourceUrl}),download:`${G7e(_.title)}.ics`,className:"inline-flex min-h-10 items-center gap-2 rounded bg-amber-300 px-3 text-sm font-black text-[#1d1603] hover:bg-amber-200",children:[a.jsx(au,{"data-loc":"client/src/pages/EventsPage.tsx:100",size:15})," Add to calendar"]})]})]}),R=({title:_,description:W,events:V,historical:F=!1})=>V.length?a.jsxs("section",{"data-loc":"client/src/pages/EventsPage.tsx:107","aria-labelledby":`${F?"past":"current"}-events-heading`,children:[a.jsxs("div",{"data-loc":"client/src/pages/EventsPage.tsx:108",className:"mb-4",children:[F&&a.jsx("p",{"data-loc":"client/src/pages/EventsPage.tsx:109",className:"text-xs font-black uppercase tracking-[0.14em] text-white/45",children:"Editorial record"}),a.jsx("h2",{"data-loc":"client/src/pages/EventsPage.tsx:110",id:`${F?"past":"current"}-events-heading`,className:"mt-1 text-2xl font-black",children:_}),W&&a.jsx("p",{"data-loc":"client/src/pages/EventsPage.tsx:111",className:"mt-2 max-w-2xl text-sm leading-6 text-white/55",children:W})]}),a.jsx("div",{"data-loc":"client/src/pages/EventsPage.tsx:113",className:"grid gap-4 md:grid-cols-2",children:V.map(I=>a.jsx(B,{"data-loc":"client/src/pages/EventsPage.tsx:113",event:I},I.id))})]}):null;return a.jsxs("main",{"data-loc":"client/src/pages/EventsPage.tsx:117",className:"min-h-screen bg-[#05040c] text-white",children:[a.jsx("section",{"data-loc":"client/src/pages/EventsPage.tsx:118",className:"border-b border-white/10 bg-[linear-gradient(135deg,#101037,#071f32)] py-16",children:a.jsxs("div",{"data-loc":"client/src/pages/EventsPage.tsx:118",className:"container",children:[a.jsx("p",{"data-loc":"client/src/pages/EventsPage.tsx:118",className:"text-xs font-black uppercase tracking-[0.16em] text-amber-300",children:"XTZ.News calendar"}),a.jsx("h1",{"data-loc":"client/src/pages/EventsPage.tsx:118",className:"mt-3 text-4xl font-black tracking-tight sm:text-5xl",children:"Tezos events"}),a.jsx("p",{"data-loc":"client/src/pages/EventsPage.tsx:118",className:"mt-4 max-w-2xl text-white/70 leading-7",children:"A reader-facing list of events selected and published by the XTZ.News editorial team. Search current, future and past listings, then check the organiserâs own page before making plans."}),a.jsxs("a",{"data-loc":"client/src/pages/EventsPage.tsx:118",href:"#submit-event",className:"mt-6 inline-flex min-h-10 items-center gap-2 rounded border border-amber-300/35 px-4 text-sm font-bold text-amber-200 hover:bg-amber-300/10",children:[a.jsx(wa,{"data-loc":"client/src/pages/EventsPage.tsx:118",size:15})," Submit an event"]})]})}),a.jsx("section",{"data-loc":"client/src/pages/EventsPage.tsx:119",className:"container py-10",children:t?a.jsx("div",{"data-loc":"client/src/pages/EventsPage.tsx:120",className:"space-y-4",children:Array.from({length:3}).map((_,W)=>a.jsx("div",{"data-loc":"client/src/pages/EventsPage.tsx:120",className:"skeleton h-40 rounded-xl"},W))}):a.jsxs(a.Fragment,{children:[a.jsx(H7e,{"data-loc":"client/src/pages/EventsPage.tsx:121"}),a.jsxs("div",{"data-loc":"client/src/pages/EventsPage.tsx:122",className:"mb-5 mt-5 grid gap-3 rounded-xl border border-white/10 bg-white/[0.03] p-4 lg:grid-cols-[minmax(0,1fr)_minmax(0,1fr)_minmax(0,1fr)_auto]",children:[a.jsxs("label",{"data-loc":"client/src/pages/EventsPage.tsx:123",className:"text-xs font-bold uppercase tracking-wide text-white/55",children:["Show",a.jsx("select",{"data-loc":"client/src/pages/EventsPage.tsx:123",value:o,onChange:_=>l(_.target.value),className:"mt-1 block min-h-10 w-full rounded border border-white/15 bg-[#09152d] px-3 text-sm normal-case tracking-normal text-white",children:I4.map(_=>a.jsx("option",{"data-loc":"client/src/pages/EventsPage.tsx:123",value:_.value,children:_.label},_.value))})]}),a.jsxs("label",{"data-loc":"client/src/pages/EventsPage.tsx:124",className:"text-xs font-bold uppercase tracking-wide text-white/55",children:["Location",a.jsxs("select",{"data-loc":"client/src/pages/EventsPage.tsx:124",value:r,onChange:_=>n(_.target.value),className:"mt-1 block min-h-10 w-full rounded border border-white/15 bg-[#09152d] px-3 text-sm normal-case tracking-normal text-white",children:[a.jsx("option",{"data-loc":"client/src/pages/EventsPage.tsx:124",value:"all",children:"All locations"}),v.map(_=>a.jsx("option",{"data-loc":"client/src/pages/EventsPage.tsx:124",value:_,children:_},_))]})]}),a.jsxs("label",{"data-loc":"client/src/pages/EventsPage.tsx:125",className:"text-xs font-bold uppercase tracking-wide text-white/55",children:["Event type",a.jsxs("select",{"data-loc":"client/src/pages/EventsPage.tsx:125",value:s,onChange:_=>i(_.target.value),className:"mt-1 block min-h-10 w-full rounded border border-white/15 bg-[#09152d] px-3 text-sm normal-case tracking-normal text-white",children:[a.jsx("option",{"data-loc":"client/src/pages/EventsPage.tsx:125",value:"all",children:"All event types"}),j.map(_=>a.jsx("option",{"data-loc":"client/src/pages/EventsPage.tsx:125",value:_,children:Jg[_]||_},_))]})]}),a.jsx("button",{"data-loc":"client/src/pages/EventsPage.tsx:126",type:"button",onClick:N,disabled:!M,className:"self-end min-h-10 rounded border border-white/15 px-3 text-sm font-bold text-white/70 hover:bg-white/5 disabled:opacity-40",children:"Clear filters"})]}),(k.length>0||P.length>0)&&a.jsxs("div",{"data-loc":"client/src/pages/EventsPage.tsx:128",className:"mb-5 grid gap-3 rounded-xl border border-white/10 bg-white/[0.02] p-4 sm:grid-cols-2",children:[a.jsxs("label",{"data-loc":"client/src/pages/EventsPage.tsx:128",className:"text-xs font-bold uppercase tracking-wide text-white/55",children:["Speaker",a.jsxs("select",{"data-loc":"client/src/pages/EventsPage.tsx:128",value:m,onChange:_=>y(_.target.value),className:"mt-1 block min-h-10 w-full rounded border border-white/15 bg-[#09152d] px-3 text-sm normal-case tracking-normal text-white",children:[a.jsx("option",{"data-loc":"client/src/pages/EventsPage.tsx:128",value:"all",children:"All speakers"}),k.map(_=>a.jsx("option",{"data-loc":"client/src/pages/EventsPage.tsx:128",value:_,children:_},_))]})]}),a.jsxs("label",{"data-loc":"client/src/pages/EventsPage.tsx:128",className:"text-xs font-bold uppercase tracking-wide text-white/55",children:["Topic",a.jsxs("select",{"data-loc":"client/src/pages/EventsPage.tsx:128",value:S,onChange:_=>b(_.target.value),className:"mt-1 block min-h-10 w-full rounded border border-white/15 bg-[#09152d] px-3 text-sm normal-case tracking-normal text-white",children:[a.jsx("option",{"data-loc":"client/src/pages/EventsPage.tsx:128",value:"all",children:"All topics"}),P.map(_=>a.jsx("option",{"data-loc":"client/src/pages/EventsPage.tsx:128",value:_,children:_},_))]})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/EventsPage.tsx:129",className:"mb-5 grid gap-3 rounded-xl border border-white/10 bg-white/[0.02] p-4 sm:grid-cols-2",children:[a.jsxs("label",{"data-loc":"client/src/pages/EventsPage.tsx:129",className:"text-xs font-bold uppercase tracking-wide text-white/55",children:["Starts on or after",a.jsx("input",{"data-loc":"client/src/pages/EventsPage.tsx:129",type:"date",value:d,onChange:_=>u(_.target.value),className:"mt-1 block min-h-10 w-full rounded border border-white/15 bg-[#09152d] px-3 text-sm normal-case tracking-normal text-white"})]}),a.jsxs("label",{"data-loc":"client/src/pages/EventsPage.tsx:129",className:"text-xs font-bold uppercase tracking-wide text-white/55",children:["Starts on or before",a.jsx("input",{"data-loc":"client/src/pages/EventsPage.tsx:129",type:"date",value:g,min:d||void 0,onChange:_=>f(_.target.value),className:"mt-1 block min-h-10 w-full rounded border border-white/15 bg-[#09152d] px-3 text-sm normal-case tracking-normal text-white"})]})]}),a.jsxs("p",{"data-loc":"client/src/pages/EventsPage.tsx:130","aria-live":"polite",className:"mb-5 flex items-center gap-2 text-sm text-white/55",children:[a.jsx(UW,{"data-loc":"client/src/pages/EventsPage.tsx:130",size:15})," ",T.length," event",T.length===1?"":"s"," shown"]}),T.length?a.jsx("div",{"data-loc":"client/src/pages/EventsPage.tsx:131",className:"space-y-10",children:o==="all"?a.jsxs(a.Fragment,{children:[a.jsx(R,{"data-loc":"client/src/pages/EventsPage.tsx:132",title:"Current & upcoming",events:C}),a.jsx(R,{"data-loc":"client/src/pages/EventsPage.tsx:132",historical:!0,title:"Past events",description:"Verified listings remain available as an editorial record. Re-check source pages for any later updates.",events:A})]}):a.jsx(R,{"data-loc":"client/src/pages/EventsPage.tsx:132",title:I4.find(_=>_.value===o)?.label||"Events",historical:o==="past",description:o==="past"?"Verified listings from the editor-reviewed event ar
1134chive.":void 0,events:T})}):a.jsxs("div",{"data-loc":"client/src/pages/EventsPage.tsx:133",className:"rounded-xl border border-white/10 bg-white/[0.03] p-10 text-center",children:[a.jsx(Fa,{"data-loc":"client/src/pages/EventsPage.tsx:133",className:"mx-auto mb-3 text-amber-300"}),a.jsx("h2",{"data-loc":"client/src/pages/EventsPage.tsx:133",className:"text-xl font-black",children:"No editor-published events match these filters"}),a.jsx("p",{"data-loc":"client/src/pages/EventsPage.tsx:133",className:"mx-auto mt-3 max-w-lg text-sm leading-6 text-white/60",children:"Try another date range, location or event type, or return later as the editorial team publishes reviewed events."}),a.jsx("button",{"data-loc":"client/src/pages/EventsPage.tsx:133",type:"button",onClick:N,className:"mt-5 text-sm font-bold text-amber-200 hover:underline",children:"Reset filters"})]})]})}),a.jsx("section",{"data-loc":"client/src/pages/EventsPage.tsx:136",id:"submit-event",className:"border-t border-white/10 bg-[linear-gradient(135deg,#101037,#071f32)] py-14",children:a.jsxs("div",{"data-loc":"client/src/pages/EventsPage.tsx:136",className:"container grid gap-8 lg:grid-cols-[0.78fr_1.22fr]",children:[a.jsxs("div",{"data-loc":"client/src/pages/EventsPage.tsx:136",children:[a.jsx("p",{"data-loc":"client/src/pages/EventsPage.tsx:136",className:"text-xs font-black uppercase tracking-[0.16em] text-amber-300",children:"Editorial submissions"}),a.jsx("h2",{"data-loc":"client/src/pages/EventsPage.tsx:136",className:"mt-3 text-3xl font-black",children:"Share a Tezos event for review."}),a.jsx("p",{"data-loc":"client/src/pages/EventsPage.tsx:136",className:"mt-4 max-w-md leading-7 text-white/70",children:"Organisers and community members can submit an official event listing. XTZ.News checks the information before deciding whether it belongs on this calendar."}),a.jsx("p",{"data-loc":"client/src/pages/EventsPage.tsx:136",className:"mt-4 text-sm leading-6 text-white/50",children:"Submitting an event is free, does not guarantee inclusion, and never publishes the event automatically."}),a.jsx($,{"data-loc":"client/src/pages/EventsPage.tsx:136",href:"/art-on-tezos",className:"mt-6 inline-flex text-sm font-bold text-pink-300 hover:underline",children:"Browse the Art on Tezos timeline"})]}),a.jsx(F7e,{"data-loc":"client/src/pages/EventsPage.tsx:136"})]})})]})}const rP={pending:"Pending",reviewed:"Reviewed",published:"Published",rejected:"Rejected"},X7e={pending:"text-amber-300 bg-amber-300/10",reviewed:"text-sky-300 bg-sky-300/10",published:"text-emerald-300 bg-emerald-300/10",rejected:"text-rose-300 bg-rose-300/10"};function K7e(){const{user:e,loading:t}=Wr(),r=ee.useUtils(),{data:n=[],isLoading:s,isError:i}=ee.tezosEventCandidates.list.useQuery(void 0,{enabled:e?.role==="admin"}),[o,l]=E.useState("pending"),[d,u]=E.useState(""),[g,f]=E.useState({}),[m,y]=E.useState([]),[S,b]=E.useState(""),v=ee.tezosEventCandidates.updateStatus.useMutation({onSuccess:async()=>{await Promise.all([r.tezosEventCandidates.list.invalidate(),r.tezosEventCandidates.published.invalidate()]),Ee.success("Event candidate updated")},onError:()=>Ee.error("The event candidate could not be updated.")}),j=ee.tezosEventCandidates.bulkUpdateStatus.useMutation({onSuccess:async M=>{await Promise.all([r.tezosEventCandidates.list.invalidate(),r.tezosEventCandidates.published.invalidate()]),y([]),b(""),Ee.success(`${M.updated} event candidate${M.updated===1?"":"s"} updated`)},onError:()=>Ee.error("The selected candidates could not be updated.")}),k=E.useMemo(()=>n.filter(M=>(o==="all"||M.status===o)&&`${M.title} ${M.location??""} ${M.sourceKey} ${M.eventType??""}`.toLowerCase().includes(d.trim().toLowerCase())),[n,o,d]),P=k.map(M=>M.id),O=P.length>0&&P.every(M=>m.includes(M)),T=n.filter(M=>M.status==="pending").length,C=(M,B)=>v.mutate({id:M,status:B,notes:g[M]?.trim()||void 0}),A=()=>y(M=>O?M.filter(B=>!P.includes(B)):Array.from(new Set([...M,...P]))),N=M=>{if(!m.length)return;const B=M==="published"?"publish selected candidates to the public Tezos Events page":M==="rejected"?"reject selected candidates":"mark selected candidates as reviewed";(M==="published"||M==="rejected")&&!window.confirm(`Are you sure you want to ${B}?`)||j.mutate({ids:m,status:M,...S.trim()?{notes:S.trim()}:{}})};return t?a.jsx("div",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:36",className:"container py-16",children:a.jsx("div",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:36",className:"skeleton h-8 w-56"})}):!e||e.role!=="admin"?a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:37",className:"container py-16 text-center",children:[a.jsx("h1",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:37",className:"text-2xl font-black text-white",children:"Access denied"}),a.jsx("p",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:37",className:"mt-3 text-white/55",children:"This reviewed event queue is available to XTZ.News administrators only."}),a.jsx($,{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:37",href:"/admin",className:"mt-6 inline-flex text-sm font-bold text-sky-300 hover:underline",children:"Back to dashboard"})]}):a.jsxs("main",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",children:[a.jsx("header",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"border-b border-white/10 py-8",style:{background:"var(--xtz-navy)"},children:a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"container flex items-center gap-3",children:[a.jsx($,{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",href:"/admin","aria-label":"Back to dashboard",className:"rounded text-white/50 hover:text-white focus-visible:ring-2 focus-visible:ring-sky-300",children:a.jsx(Pn,{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",size:18})}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"min-w-0 flex-1",children:[a.jsx("p",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"text-xs font-black uppercase tracking-[0.14em] text-amber-300",children:"Event editorial queue"}),a.jsx("h1",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"mt-1 text-xl font-black text-white",children:"Tezos event candidates"})]}),a.jsxs("span",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"rounded-full bg-amber-300/15 px-2.5 py-1 text-xs font-black text-amber-300",children:[T," pending"]})]})}),a.jsxs("section",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"container py-6",children:[a.jsx("div",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"mb-5 rounded-lg border border-amber-300/25 bg-amber-300/5 p-4 text-sm leading-6 text-white/70",children:"Cloud and community submissions remain pending until an editor acts. Publishing exposes a candidate in the public Tezos Events section; it does not change the original source listing."}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"grid gap-3 md:grid-cols-[1fr_auto]",children:[a.jsxs("label",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"relative",children:[a.jsx("span",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"sr-only",children:"Search event candidates"}),a.jsx(ft,{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"absolute left-3 top-1/2 -translate-y-1/2 text-white/45",size:16}),a.jsx("input",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",value:d,onChange:M=>u(M.target.value),placeholder:"Search title, type, source, or location",className:"min-h-10 w-full rounded border border-white/15 bg-white/5 pl-9 pr-3 text-sm text-white placeholder:text-white/35"})]}),a.jsxs("label",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"text-xs text-white/55",children:["Status",a.jsxs("select",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",value:o,onChange:M=>l(M.target.value),className:"mt-1 block min-h-10 w-full rounded border border-white/15 bg-[#09152d] px-3 text-sm text-white",children:[a.jsx("option",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",value:"all",children:"All statuses"}
1134),Object.keys(rP).map(M=>a.jsx("option",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",value:M,children:rP[M]},M))]})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"mt-4 rounded-lg border border-white/10 bg-white/[0.02] p-4",children:[a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"flex flex-wrap items-center justify-between gap-3",children:[a.jsxs("label",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"flex cursor-pointer items-center gap-2 text-sm text-white/65",children:[a.jsx("input",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",type:"checkbox",checked:O,onChange:A,className:"h-4 w-4 accent-amber-300"})," Select visible (",m.length,")"]}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"flex flex-wrap gap-2",children:[a.jsx("button",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",type:"button",disabled:!m.length||j.isPending,onClick:()=>N("reviewed"),className:"min-h-9 rounded border border-sky-300/30 px-3 text-xs font-bold text-sky-300 disabled:opacity-40",children:"Mark reviewed"}),a.jsx("button",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",type:"button",disabled:!m.length||j.isPending,onClick:()=>N("published"),className:"min-h-9 rounded border border-emerald-300/30 px-3 text-xs font-bold text-emerald-300 disabled:opacity-40",children:"Publish selected"}),a.jsx("button",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",type:"button",disabled:!m.length||j.isPending,onClick:()=>N("rejected"),className:"min-h-9 rounded border border-rose-300/30 px-3 text-xs font-bold text-rose-300 disabled:opacity-40",children:"Reject selected"})]})]}),a.jsxs("label",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"mt-3 block text-xs font-bold text-white/55",children:["Bulk editorial note ",a.jsx("input",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",value:S,onChange:M=>b(M.target.value),maxLength:2e3,placeholder:"Optional note saved against every selected candidate",className:"mt-1 block min-h-10 w-full rounded border border-white/15 bg-black/20 px-3 text-sm font-normal text-white placeholder:text-white/30"})]})]}),s?a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"mt-5 space-y-3",children:[a.jsx("div",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"skeleton h-44 rounded"}),a.jsx("div",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"skeleton h-44 rounded"})]}):i?a.jsx("div",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"mt-5 rounded-lg border border-rose-300/30 p-6 text-rose-200",children:"The review queue could not be loaded. Refresh the page and try again."}):k.length?a.jsx("div",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"mt-5 space-y-4",children:k.map(M=>a.jsx("article",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"rounded-lg border border-white/10 bg-white/[0.03] p-5",children:a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"flex flex-col gap-3 sm:flex-row",children:[a.jsx("input",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38","aria-label":`Select ${M.title}`,type:"checkbox",checked:m.includes(M.id),onChange:()=>y(B=>B.includes(M.id)?B.filter(R=>R!==M.id):[...B,M.id]),className:"h-4 w-4 self-start accent-amber-300 sm:mt-1"}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"flex min-w-0 flex-1 flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"min-w-0 flex-1",children:[a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"flex flex-wrap items-center gap-2",children:[a.jsx("span",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:`rounded px-2 py-0.5 text-[0.65rem] font-black uppercase tracking-wider ${X7e[M.status]}`,children:rP[M.status]}),a.jsx("span",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"text-xs text-white/40",children:new Date(M.startAt).toLocaleStr
1134ing("en-GB",{dateStyle:"medium",timeStyle:"short"})}),a.jsx("span",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"text-xs text-amber-200/75",children:Jg[M.eventType]||M.eventType}),a.jsx("span",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"text-xs text-white/45",children:M.sourceKey})]}),a.jsx("h2",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"mt-2 text-lg font-black text-white",children:M.title}),M.location&&a.jsx("p",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"mt-1 text-sm text-white/55",children:M.location}),M.submitterName&&a.jsxs("p",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"mt-2 text-sm text-white/60",children:["Submitted by ",M.submitterName,M.submitterEmail&&a.jsxs(a.Fragment,{children:[" · ",a.jsx("a",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",href:`mailto:${M.submitterEmail}`,className:"text-sky-300 hover:underline",children:M.submitterEmail})]})]}),M.description&&a.jsx("p",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"mt-3 text-sm leading-6 text-white/70",children:M.description}),a.jsxs("a",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",href:M.sourceUrl,target:"_blank",rel:"noopener noreferrer",className:"mt-3 inline-flex items-center gap-1 text-sm font-bold text-sky-300 hover:underline",children:["Open source listing ",a.jsx(ve,{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",size:14})]}),a.jsxs("label",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"mt-4 block text-xs font-bold text-white/55",children:["Internal note",a.jsx("textarea",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",value:g[M.id]??M.adminNotes??"",onChange:B=>f(R=>({...R,[M.id]:B.target.value})),maxLength:2e3,rows:2,placeholder:"Optional note saved with status action",className:"mt-1 block w-full rounded border border-white/15 bg-black/20 p-2 text-sm text-white placeholder:text-white/30"})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"flex flex-wrap gap-2 sm:shrink-0",children:[a.jsxs("button",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",type:"button",disabled:v.isPending,onClick:()=>C(M.id,"reviewed"),className:"inline-flex min-h-9 items-center gap-1 rounded border border-sky-300/30 px-3 text-xs font-bold text-sky-300 disabled:opacity-40",children:[a.jsx(Fa,{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",size:14})," Review"]}),a.jsxs("button",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",type:"button",disabled:v.isPending,onClick:()=>C(M.id,"published"),className:"inline-flex min-h-9 items-center gap-1 rounded border border-emerald-300/30 px-3 text-xs font-bold text-emerald-300 disabled:opacity-40",children:[a.jsx(yc,{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",size:14})," Publish"]}),a.jsxs("button",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",type:"button",disabled:v.isPending,onClick:()=>C(M.id,"rejected"),className:"inline-flex min-h-9 items-center gap-1 rounded border border-rose-300/30 px-3 text-xs font-bold text-rose-300 disabled:opacity-40",children:[a.jsx(xr,{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",size:14})," Reject"]})]})]})]})},M.id))}):a.jsx("div",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"mt-5 rounded-lg border border-white/10 p-10 text-center text-white/60",children:"No event candidates match this view."}),(v.isPending||j.isPending)&&a.jsxs("p",{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",role:"status",className:"fixed bottom-5 right-5 rounded border border-white/15 bg-[#0b1830] px-4 py-3 text-sm text-white shadow-xl",children:[a.jsx(Va,{"data-loc":"client/src/pages/admin/AdminTezosEventCandidates.tsx:38",className:"mr-2 inline animate-spin",size:15}),"Updating event queueâ¦"]})]})]})}function Q7e(){const{slug:e}=Ua(),t=xA(e),{data:r=[],isLoading:n}=ee.posts.byAuthor.useQuery({authorSlug:t?.slug||"unknown",limit:12},{enabled:!!t});
1134return Ie({title:t?`${t.name} | XTZ.News`:"Editorial Team | XTZ.News",description:t?.description||"Meet the writers contributing source-led Tezos coverage to XTZ.News.",canonical:t?`https://xtz.news/authors/${t.slug}`:"https://xtz.news/authors",ogType:"profile",ogImage:t?.imageUrl?Je(t.imageUrl):void 0,jsonLd:t?{"@context":"https://schema.org","@type":"Person",name:t.name,url:`https://xtz.news/authors/${t.slug}`,jobTitle:t.jobTitle,description:t.description,homeLocation:{"@type":"Place",name:t.location},...t.imageUrl?{image:Je(t.imageUrl)}:{},...t.websiteUrl?{sameAs:[t.websiteUrl]}:{},worksFor:{"@type":"Organization",name:"XTZ.News",url:"https://xtz.news"}}:void 0}),t?a.jsxs("main",{"data-loc":"client/src/pages/AuthorProfilePage.tsx:47",children:[a.jsx("section",{"data-loc":"client/src/pages/AuthorProfilePage.tsx:48",style:{background:"linear-gradient(145deg, #071d40, #030e1f 72%)",borderBottom:"1px solid rgba(44,125,247,0.22)"},children:a.jsxs("div",{"data-loc":"client/src/pages/AuthorProfilePage.tsx:49",className:"container",style:{padding:"2rem 1.25rem 3.5rem",maxWidth:"960px"},children:[a.jsxs($,{"data-loc":"client/src/pages/AuthorProfilePage.tsx:50",href:"/",style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",color:"rgba(255,255,255,0.62)",fontSize:"0.76rem",fontWeight:700,textDecoration:"none"},children:[a.jsx(ya,{"data-loc":"client/src/pages/AuthorProfilePage.tsx:50",size:14})," Back to XTZ.News"]}),a.jsxs("div",{"data-loc":"client/src/pages/AuthorProfilePage.tsx:51",style:{display:"grid",gridTemplateColumns:"minmax(0, 170px) minmax(0, 1fr)",gap:"2rem",alignItems:"center",marginTop:"2rem"},className:"author-profile-grid",children:[a.jsx("div",{"data-loc":"client/src/pages/AuthorProfilePage.tsx:52","aria-hidden":"true",style:{width:"170px",height:"170px",borderRadius:"50%",overflow:"hidden",border:"4px solid rgba(44,125,247,0.55)",boxShadow:"0 16px 40px rgba(0,0,0,0.3)",background:"linear-gradient(135deg, #2c7df7, #0d2a5e)",display:"grid",placeItems:"center",fontSize:"3rem",fontWeight:900,color:"#fff"},children:t.imageUrl?a.jsx("img",{"data-loc":"client/src/pages/AuthorProfilePage.tsx:53",src:Je(t.imageUrl),alt:"",style:{width:"100%",height:"100%",objectFit:"cover"}}):t.initials}),a.jsxs("div",{"data-loc":"client/src/pages/AuthorProfilePage.tsx:55",children:[a.jsx("p",{"data-loc":"client/src/pages/AuthorProfilePage.tsx:56",style:{color:"#5a9fff",fontSize:"0.7rem",fontWeight:900,letterSpacing:"0.13em",textTransform:"uppercase",margin:"0 0 0.55rem"},children:"XTZ.News editorial"}),a.jsx("h1",{"data-loc":"client/src/pages/AuthorProfilePage.tsx:57",style:{color:"#fff",fontSize:"clamp(2rem, 5vw, 3.5rem)",margin:0,letterSpacing:"-0.035em"},children:t.name}),a.jsxs("div",{"data-loc":"client/src/pages/AuthorProfilePage.tsx:58",style:{display:"flex",flexWrap:"wrap",gap:"0.85rem",marginTop:"0.85rem",color:"rgba(255,255,255,0.65)",fontSize:"0.82rem"},children:[a.jsxs("span",{"data-loc":"client/src/pages/AuthorProfilePage.tsx:59",style:{display:"inline-flex",alignItems:"center",gap:"0.35rem"},children:[a.jsx(Qre,{"data-loc":"client/src/pages/AuthorProfilePage.tsx:59",size:14,color:"#5a9fff"})," ",t.jobTitle]}),a.jsxs("span",{"data-loc":"client/src/pages/AuthorProfilePage.tsx:60",style:{display:"inline-flex",alignItems:"center",gap:"0.35rem"},children:[a.jsx(by,{"data-loc":"client/src/pages/AuthorProfilePage.tsx:60",size:14,color:"#5a9fff"})," Based in ",t.location]})]}),a.jsx("p",{"data-loc":"client/src/pages/AuthorProfilePage.tsx:62",style:{color:"rgba(255,255,255,0.76)",lineHeight:1.75,maxWidth:"690px",fontSize:"1rem",margin:"1.25rem 0 0"},children:t.description}),t.websiteUrl&&a.jsxs("a",{"data-loc":"client/src/pages/AuthorProfilePage.tsx:63",href:t.websiteUrl,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:"0.45rem",color:"#fff",background:"#2c7df7",padding:"0.7rem 1rem",borderRadius:"5px",fontSize:"0.78rem",fontWeight:800,textDecoration:"none",marginTop:"1.25rem"},children:["Visit personal website ",a.jsx(ve,{"data-loc":"client/src/pages/AuthorProfilePage.tsx:63",size:14})]}),a.jsx($,{"data-loc":"client/src/pages/AuthorProfilePage.tsx:64",href:"/newsroom/editorial-policy",style:{display:"inline-flex",alignItems:"center",marginLeft:t.websiteUrl?"0.65rem":0,marginTop:"1.25rem",color:"#8cbcff",fontSize:"0.78rem",fontWeight:800,textDecoration:"none"},children:"Read editorial policy â"})]})]})]})}),a.jsxs("section",{"data-loc":"client/src/pages/AuthorProfilePage.tsx:69",className:"container",style:{padding:"2.5rem 1.25rem 4rem",maxWidth:"960px"},children:[a.jsx("h2",{"data-loc":"client/src/pages/AuthorProfilePage.tsx:70",style:{color:"#fff",margin:0,fontSize:"1.25rem"},children:"Editorial focus"}),a.jsx("p",{"data-loc":"client/src/pages/AuthorProfilePage.tsx:71",style:{color:"rgba(255,255,255,0.6)",maxWidth:"720px",lineHeight:1.7},children:"XTZ.News author pages identify the named contributors behind articles and link readers to their declared public profiles. Article bylines are updated as stories are assigned to the editorial team."}),a.jsxs("div",{"data-loc":"client/src/pages/AuthorProfilePage.tsx:72",style:{marginTop:"2.25rem",paddingTop:"1.6rem",borderTop:"1px solid rgba(255,255,255,0.08)"},children:[a.jsxs("h2",{"data-loc":"client/src/pages/AuthorProfilePage.tsx:73",style:{color:"#fff",margin:0,fontSize:"1.25rem"},children:["Latest from ",t.name]}),n?a.jsx("p",{"data-loc":"client/src/pages/AuthorProfilePage.tsx:74",style:{color:"rgba(255,255,255,0.52)"},children:"Loading articlesâ¦"}):r.length?a.jsx("div",{"data-loc":"client/src/pages/AuthorProfilePage.tsx:75",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(240px, 1fr))",gap:"1rem",marginTop:"1rem"},children:r.map(s=>a.jsxs($,{"data-loc":"client/src/pages/AuthorProfilePage.tsx:76",href:`/${s.slug}`,style:{display:"block",border:"1px solid rgba(44,125,247,0.24)",borderRadius:"8px",padding:"1rem",textDecoration:"none",background:"rgba(5,21,46,0.75)"},children:[a.jsx("p",{"data-loc":"client/src/pages/AuthorProfilePage.tsx:77",style:{color:"#5a9fff",fontSize:"0.64rem",fontWeight:900,letterSpacing:"0.1em",textTransform:"uppercase",margin:0},children:s.categories?.[0]?.name||"Tezos News"}),a.jsx("h3",{"data-loc":"client/src/pages/AuthorProfilePage.tsx:78",style:{color:"#fff",fontSize:"0.95rem",lineHeight:1.4,margin:"0.45rem 0 0"},children:s.title})]},s.id))}):a.jsx("p",{"data-loc":"client/src/pages/AuthorProfilePage.tsx:81",style:{color:"rgba(255,255,255,0.52)",lineHeight:1.6},children:"Published stories assigned to this byline will appear here."})]})]}),a.jsx("style",{"data-loc":"client/src/pages/AuthorProfilePage.tsx:84",children:"@media (max-width: 560px) { .author-profile-grid { grid-template-columns: 1fr !important; gap: 1.25rem !important; } }"})]}):a.jsxs("main",{"data-loc":"client/src/pages/AuthorProfilePage.tsx:38",className:"container",style:{padding:"5rem 1.25rem",maxWidth:"760px"},children:[a.jsx("p",{"data-loc":"client/src/pages/AuthorProfilePage.tsx:39",style:{color:"#5a9fff",fontSize:"0.72rem",fontWeight:800,letterSpacing:"0.12em",textTransform:"uppercase"},children:"XTZ.News Editorial"}),a.jsx("h1",{"data-loc":"client/src/pages/AuthorProfilePage.tsx:40",style:{color:"#fff",marginTop:"0.75rem"},children:"Author profile not found"}),a.jsx($,{"data-loc":"client/src/pages/AuthorProfilePage.tsx:41",href:"/",style:{color:"#5a9fff",fontWeight:700},children:"Return to XTZ.News"})]})}const CB={reporterName:"",reporterEmail:"",articleUrl:"",articleTitle:"",correctionDetail:"",sourceUrl:"",agreedToReview:!1},Cd={width:"100%",boxSizing:"border-box",borderRadius:"6px",border:"1px solid rgba(255,255,255,0.16)",background:"rgba(3, 8, 20, 0.72)",color:"#fff",font:"inherit",fontSize:"0.86rem",padding:"0.7rem 0.78rem"};function Ed({htmlFor:e,children:t}){return a.jsx("label",{"data-loc":"client/src/components/CorrectionReportForm.tsx:8",htmlFor:e,style:{display:"block",marginBottom:"0.38rem",color:"rgba(255,255,255,0.72)",fontSize:"0.7rem",fontWeight:800,letterSpacing:"0.05em",textTransform:"uppercase"},children:t})}function Y7e(){const[e,t]=E.useState(CB),[r,n]=E.useState(""),s=ee.correctionReports.create.useMutation({onSuccess:()=>
1134{n("Thank you. Your report has been sent to the editorial team for review."),t(CB)},onError:l=>n(l.message||"We could not send your report just now. Please try again later.")}),i=(l,d)=>t(u=>({...u,[l]:d})),o=l=>{if(l.preventDefault(),n(""),!e.agreedToReview){n("Please confirm the review statement before sending your report.");return}s.mutate({reporterName:e.reporterName,reporterEmail:e.reporterEmail,articleUrl:e.articleUrl,...e.articleTitle.trim()?{articleTitle:e.articleTitle.trim()}:{},correctionDetail:e.correctionDetail,...e.sourceUrl.trim()?{sourceUrl:e.sourceUrl.trim()}:{},agreedToReview:!0})};return a.jsxs("form",{"data-loc":"client/src/components/CorrectionReportForm.tsx:19",onSubmit:o,"aria-describedby":"correction-report-review-note",style:{marginTop:"1.1rem",padding:"1rem",background:"#05152e",border:"1px solid rgba(44,125,247,0.28)",borderRadius:"8px"},children:[a.jsx("h3",{"data-loc":"client/src/components/CorrectionReportForm.tsx:20",style:{color:"#fff",margin:0,fontSize:"0.98rem"},children:"Report a correction"}),a.jsx("p",{"data-loc":"client/src/components/CorrectionReportForm.tsx:20",style:{color:"rgba(255,255,255,0.55)",margin:"0.45rem 0 0",fontSize:"0.78rem",lineHeight:1.55},children:"Reports are private, reviewed by an editor, and do not change an article automatically."}),a.jsxs("div",{"data-loc":"client/src/components/CorrectionReportForm.tsx:21",style:{display:"grid",gap:"0.75rem",gridTemplateColumns:"repeat(auto-fit, minmax(200px, 1fr))",marginTop:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/components/CorrectionReportForm.tsx:21",children:[a.jsx(Ed,{"data-loc":"client/src/components/CorrectionReportForm.tsx:21",htmlFor:"correction-reporter-name",children:"Your name"}),a.jsx("input",{"data-loc":"client/src/components/CorrectionReportForm.tsx:21",id:"correction-reporter-name",value:e.reporterName,onChange:l=>i("reporterName",l.target.value),minLength:2,maxLength:255,required:!0,autoComplete:"name",style:Cd})]}),a.jsxs("div",{"data-loc":"client/src/components/CorrectionReportForm.tsx:21",children:[a.jsx(Ed,{"data-loc":"client/src/components/CorrectionReportForm.tsx:21",htmlFor:"correction-reporter-email",children:"Email"}),a.jsx("input",{"data-loc":"client/src/components/CorrectionReportForm.tsx:21",id:"correction-reporter-email",type:"email",value:e.reporterEmail,onChange:l=>i("reporterEmail",l.target.value),maxLength:320,required:!0,autoComplete:"email",style:Cd})]})]}),a.jsxs("div",{"data-loc":"client/src/components/CorrectionReportForm.tsx:22",style:{marginTop:"0.75rem"},children:[a.jsx(Ed,{"data-loc":"client/src/components/CorrectionReportForm.tsx:22",htmlFor:"correction-article-url",children:"Article URL"}),a.jsx("input",{"data-loc":"client/src/components/CorrectionReportForm.tsx:22",id:"correction-article-url",type:"url",value:e.articleUrl,onChange:l=>i("articleUrl",l.target.value),placeholder:"https://xtz.news/article-slug",maxLength:2e3,required:!0,style:Cd})]}),a.jsxs("div",{"data-loc":"client/src/components/CorrectionReportForm.tsx:23",style:{marginTop:"0.75rem"},children:[a.jsxs(Ed,{"data-loc":"client/src/components/CorrectionReportForm.tsx:23",htmlFor:"correction-article-title",children:["Article title ",a.jsx("span",{"data-loc":"client/src/components/CorrectionReportForm.tsx:23",style:{textTransform:"none",fontWeight:400},children:"(optional)"})]}),a.jsx("input",{"data-loc":"client/src/components/CorrectionReportForm.tsx:23",id:"correction-article-title",value:e.articleTitle,onChange:l=>i("articleTitle",l.target.value),maxLength:500,style:Cd})]}),a.jsxs("div",{"data-loc":"client/src/components/CorrectionReportForm.tsx:24",style:{marginTop:"0.75rem"},children:[a.jsx(Ed,{"data-loc":"client/src/components/CorrectionReportForm.tsx:24",htmlFor:"correction-detail",children:"What should be corrected?"}),a.jsx("textarea",{"data-loc":"client/src/components/CorrectionReportForm.tsx:24",id:"correction-detail",value:e.correctionDetail,onChange:l=>i("correctionDetail",l.target.value),minLength:20,maxLength:4e3,rows:5,required:!0,placeholder:"Identify the detail, why it needs correction, and the preferred wording or factual clarification.",style:{...Cd,resize:"vertical",lineHeight:1.55}}),a.jsxs("p",{"data-loc":"client/src/components/CorrectionReportForm.tsx:24",style:{color:"rgba(255,255,255,0.42)",margin:"0.3rem 0 0",fontSize:"0.68rem"},children:[e.correctionDetail.length,"/4000 characters · minimum 20"]})]}),a.jsxs("div",{"data-loc":"client/src/components/CorrectionReportForm.tsx:25",style:{marginTop:"0.75rem"},children:[a.jsxs(Ed,{"data-loc":"client/src/components/CorrectionReportForm.tsx:25",htmlFor:"correction-source",children:["Supporting source ",a.jsx("span",{"data-loc":"client/src/components/CorrectionReportForm.tsx:25",style:{textTransform:"none",fontWeight:400},children:"(optional)"})]}),a.jsx("input",{"data-loc":"client/src/components/CorrectionReportForm.tsx:25",id:"correction-source",type:"url",value:e.sourceUrl,onChange:l=>i("sourceUrl",l.target.value),placeholder:"https://official-source.example",maxLength:2e3,style:Cd})]}),a.jsxs("label",{"data-loc":"client/src/components/CorrectionReportForm.tsx:26",style:{display:"flex",gap:"0.55rem",alignItems:"flex-start",cursor:"pointer",color:"rgba(255,255,255,0.72)",marginTop:"1rem",fontSize:"0.78rem",lineHeight:1.5},children:[a.jsx("input",{"data-loc":"client/src/components/CorrectionReportForm.tsx:26",type:"checkbox",checked:e.agreedToReview,onChange:l=>i("agreedToReview",l.target.checked),style:{marginTop:"0.2rem",accentColor:"#5a9fff"}}),"I confirm this is a good-faith correction report and may be reviewed by the XTZ.News editorial team."]}),a.jsx("p",{"data-loc":"client/src/components/CorrectionReportForm.tsx:27",id:"correction-report-review-note",style:{color:"rgba(255,255,255,0.44)",margin:"0.7rem 0 0",fontSize:"0.72rem",lineHeight:1.5},children:"A notification is sent to the XTZ.News editorial mailbox at [email protected]. Your contact details remain private."}),r&&a.jsxs("p",{"data-loc":"client/src/components/CorrectionReportForm.tsx:28",role:"status",style:{color:r.startsWith("Thank")?"#7ff0bd":"#fecaca",margin:"0.75rem 0 0",fontSize:"0.78rem",fontWeight:700,display:"flex",gap:"0.4rem",alignItems:"center"},children:[a.jsx(Ga,{"data-loc":"client/src/components/CorrectionReportForm.tsx:28",size:15}),r]}),a.jsx("button",{"data-loc":"client/src/components/CorrectionReportForm.tsx:29",type:"submit",disabled:s.isPending,style:{display:"inline-flex",alignItems:"center",gap:"0.45rem",marginTop:"1rem",border:0,borderRadius:"4px",color:"#fff",background:"#2c7df7",padding:"0.7rem 0.9rem",cursor:s.isPending?"wait":"pointer",fontWeight:800,fontSize:"0.76rem"},children:s.isPending?a.jsxs(a.Fragment,{children:[a.jsx(Va,{"data-loc":"client/src/components/CorrectionReportForm.tsx:29",className:"animate-spin",size:15})," Sending"]}):a.jsxs(a.Fragment,{children:[a.jsx(wa,{"data-loc":"client/src/components/CorrectionReportForm.tsx:29",size:15})," Send correction report"]})})]})}const Z7e="14 September 2026";function Dx({icon:e,title:t,children:r}
1134){return a.jsxs("section",{"data-loc":"client/src/pages/NewsroomEditorialPolicyPage.tsx:9",style:{padding:"1.5rem 0",borderTop:"1px solid rgba(255,255,255,0.08)"},children:[a.jsxs("h2",{"data-loc":"client/src/pages/NewsroomEditorialPolicyPage.tsx:10",style:{color:"#fff",margin:0,display:"flex",gap:"0.6rem",alignItems:"center",fontSize:"1.1rem"},children:[a.jsx("span",{"data-loc":"client/src/pages/NewsroomEditorialPolicyPage.tsx:10",style:{color:"#5a9fff"},children:e}),t]}),a.jsx("div",{"data-loc":"client/src/pages/NewsroomEditorialPolicyPage.tsx:11",style:{color:"rgba(255,255,255,0.64)",maxWidth:"800px",lineHeight:1.75,fontSize:"0.92rem",marginTop:"0.75rem"},children:r})]})}function J7e(){return Ie({title:"Newsroom Editorial Policy | XTZ.News",description:"Read how XTZ.News approaches source-led Tezos reporting, corrections, author attribution, and transparent first-party promotions.",canonical:"https://xtz.news/newsroom/editorial-policy",keywords:"XTZ.News editorial policy, Tezos news sources, Tezos newsroom corrections",jsonLd:ka({title:"Newsroom Editorial Policy | XTZ.News",description:"XTZ.News editorial policy for source-led Tezos reporting and transparent promotion labels.",url:"https://xtz.news/newsroom/editorial-policy",breadcrumbs:[{name:"Home",url:"https://xtz.news"},{name:"Newsroom Editorial Policy",url:"https://xtz.news/newsroom/editorial-policy"}]})}),a.jsxs("main",{"data-loc":"client/src/pages/NewsroomEditorialPolicyPage.tsx:24",children:[a.jsx("header",{"data-loc":"client/src/pages/NewsroomEditorialPolicyPage.tsx:25",style:{background:"linear-gradient(145deg, #071d40, #030e1f 72%)",borderBottom:"1px solid rgba(44,125,247,0.25)"},children:a.jsxs("div",{"data-loc":"client/src/pages/NewsroomEditorialPolicyPage.tsx:26",className:"container",style:{maxWidth:"980px",padding:"2rem 1.25rem 3rem"},children:[a.jsxs($,{"data-loc":"client/src/pages/NewsroomEditorialPolicyPage.tsx:27",href:"/",style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",color:"rgba(255,255,255,0.62)",fontSize:"0.76rem",fontWeight:700,textDecoration:"none"},children:[a.jsx(ya,{"data-loc":"client/src/pages/NewsroomEditorialPolicyPage.tsx:27",size:14})," Back to XTZ.News"]}),a.jsx("p",{"data-loc":"client/src/pages/NewsroomEditorialPolicyPage.tsx:28",style:{color:"#5a9fff",fontSize:"0.68rem",letterSpacing:"0.13em",fontWeight:900,textTransform:"uppercase",margin:"2.2rem 0 0.55rem"},children:"Newsroom"}),a.jsx("h1",{"data-loc":"client/src/pages/NewsroomEditorialPolicyPage.tsx:29",style:{color:"#fff",margin:0,fontSize:"clamp(2rem, 5vw, 3.5rem)",letterSpacing:"-0.035em"},children:"Editorial policy"}),a.jsx("p",{"data-loc":"client/src/pages/NewsroomEditorialPolicyPage.tsx:30",style:{color:"rgba(255,255,255,0.68)",maxWidth:"720px",lineHeight:1.7,margin:"1rem 0 0"},children:"This page explains how XTZ.News presents source-led Tezos coverage, distinguishes editorial work from our own promotions, and handles updates and corrections."}),a.jsxs("p",{"data-loc":"client/src/pages/NewsroomEditorialPolicyPage.tsx:31",style:{color:"rgba(255,255,255,0.42)",fontSize:"0.76rem",margin:"1.15rem 0 0"},children:["Last updated ",Z7e]})]})}),a.jsxs("div",{"data-loc":"client/src/pages/NewsroomEditorialPolicyPage.tsx:34",className:"container",style:{maxWidth:"980px",padding:"2.5rem 1.25rem 4rem"},children:[a.jsx(Dx,{"data-loc":"client/src/pages/NewsroomEditorialPolicyPage.tsx:35",icon:a.jsx(dA,{"data-loc":"client/src/pages/NewsroomEditorialPolicyPage.tsx:35",size:18}),title:"Editorial purpose",children:a.jsx("p",{"data-loc":"client/src/pages/NewsroomEditorialPolicyPage.tsx:35",style:{margin:0},children:"XTZ.News covers Tezos protocol activity, ecosystem projects, digital art, research, events, and practical reader resources. We aim to provide clear context and link readers to relevant primary or official material whenever it is available."})}),a.jsx(Dx,{"data-loc":"client/src/pages/NewsroomEditorialPolicyPage.tsx:36",icon:a.jsx(Ere,{"data-loc":"client/src/pages/NewsroomEditorialPolicyPage.tsx:36",size:18}),title:"Sources, context, and attribution",children:a.jsx("p",{"data-loc":"client/src/pages/Ne
1134wsroomEditorialPolicyPage.tsx:36",style:{margin:0},children:"Articles identify their source material through links, in-story context, or both. We distinguish reported information from commentary and do not present a campaign, project, service, or collection as an endorsement. Dates, availability, and other time-sensitive details can change after publication."})}),a.jsx(Dx,{"data-loc":"client/src/pages/NewsroomEditorialPolicyPage.tsx:37",icon:a.jsx(Ga,{"data-loc":"client/src/pages/NewsroomEditorialPolicyPage.tsx:37",size:18}),title:"Authors and article updates",children:a.jsx("p",{"data-loc":"client/src/pages/NewsroomEditorialPolicyPage.tsx:37",style:{margin:0},children:"Named contributors have public XTZ.News profile pages that identify their declared role and location. Article pages display the original publication date and a Last updated date when stored content is changed. Byline assignments identify editorial responsibility; they do not change the underlying source record."})}),a.jsxs(Dx,{"data-loc":"client/src/pages/NewsroomEditorialPolicyPage.tsx:38",icon:a.jsx(Ure,{"data-loc":"client/src/pages/NewsroomEditorialPolicyPage.tsx:38",size:18}),title:"Corrections and transparent promotion",children:[a.jsx("p",{"data-loc":"client/src/pages/NewsroomEditorialPolicyPage.tsx:38",style:{margin:0},children:"If you believe an article needs a factual correction, use the private form below with the article URL, the detail in question, and a relevant source. We may update an article when warranted and retain its visible update date. Placements labelled âFrom our networkâ are first-party promotions for businesses or apps managed by the XTZ.News owner. They are separate from editorial coverage and are not third-party advertising placements."}),a.jsx(Y7e,{"data-loc":"client/src/pages/NewsroomEditorialPolicyPage.tsx:38"})]}),a.jsxs("div",{"data-loc":"client/src/pages/NewsroomEditorialPolicyPage.tsx:39",style:{marginTop:"1.5rem",padding:"1rem 1.15rem",background:"rgba(44,125,247,0.08)",border:"1px solid rgba(44,125,247,0.24)",borderRadius:"8px",color:"rgba(255,255,255,0.68)",fontSize:"0.84rem",lineHeight:1.6},children:["For general editorial contact or source material, use ",a.jsx("a",{"data-loc":"client/src/pages/NewsroomEditorialPolicyPage.tsx:39",href:"mailto:[email protected]",style:{color:"#5a9fff",fontWeight:700},children:"[email protected]"}),"."]})]})]})}const e3e=()=>({id:`placeholder-${Date.now()}`,title:"Your next app",description:"A reserved space for another owner-managed business or app.",url:"",ctaLabel:"Reserved",active:!0,placeholder:!0}),t3e=()=>({id:`promotion-${Date.now()}`,title:"",description:"",url:"",ctaLabel:"Explore",active:!0,placeholder:!1});function r3e(){const{user:e,loading:t}=Wr(),r=ee.useUtils(),{data:n=[]}=ee.settings.getFirstPartyPromotions.useQuery(),{data:s}=ee.settings.getFirstPartyBannerCampaign.useQuery(),{data:i}=ee.referralAnalytics.summary.useQuery(void 0,{enabled:e?.role==="admin"}),[o,l]=E.useState([]),[d,u]=E.useState(!0),[g,f]=E.useState("");E.useEffect(()=>{n&&l(n)},[n]),E.useEffect(()=>{s&&(u(s.active),f(s.endAt?s.endAt.slice(0,16):""))},[s]);const m=ee.settings.setFirstPartyPromotions.useMutation({onSuccess:async()=>{await r.settings.getFirstPartyPromotions.invalidate(),Ee.success("Promotion rotation saved.")},onError:v=>Ee.error(v.message)}),y=ee.settings.setFirstPartyBannerCampaign.useMutation({onSuccess:async()=>{await r.settings.getFirstPartyBannerCampaign.invalidate(),Ee.success("Banner campaign settings saved.")},onError:v=>Ee.error(v.message)});if(t)return a.jsx("div",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:17",className:"container",style:{padding:"5rem 1.25rem"},children:a.jsx("div",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:17",className:"skeleton h-8 w-48"})});if(!e||e.role!=="admin")return a.jsx("div",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:17",className:"container",style:{padding:"5rem 1.25rem"},children:a.jsx("h1",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:17",style:{color:"#fff"},children:"Admin access required"})});const S=(v,j)=>l(k=>k.map(P=>P.id===v?{...P,...j}:P)),b={width:"100%",padding:".68rem .75rem",boxSizing:"border-box",background:"rgba(255,255,255,.06)",border:"1px solid rgba(255,255,255,.15)",borderRadius:"5px",color:"#fff",fontFamily:"inherit",fontSize:".82rem"};return a.jsxs("main",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",style:{background:"#000",minHeight:"100vh"},children:[a.jsx("header",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",style:{background:"#05152e",borderBottom:"1px solid rgba(255,255,255,.1)"},children:a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",className:"container",style:{padding:"1.5rem 1.25rem"},children:[a.jsxs($,{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",href:"/admin",style:{display:"inline-flex",gap:".4rem",alignItems:"center",color:"rgba(255,255,255,.55)",textDecoration:"none",fontSize:".76rem"},children:[a.jsx(ya,{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",size:14})," Back to Dashboard"]}),a.jsx("h1",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",style:{margin:".8rem 0 0",color:"#fff",fontSize:"1.5rem"},children:"First-party promotion rotation"}),a.jsx("p",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",style:{color:"rgba(255,255,255,.52)",margin:".4rem 0 0",fontSize:".84rem"},children:"Manage up to eight owner-run businesses or apps. The homepage rotates visible placements every eight seconds."})]})}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",className:"container",style:{maxWidth:"880px",padding:"2rem 1.25rem 4rem"},children:[a.jsxs("aside",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19","aria-label":"Hero banner preparation guidance",style:{background:"rgba(251,191,36,.08)",border:"1px solid rgba(251,191,36,.3)",borderRadius:"7px",padding:".9rem 1rem",marginBottom:"1.1rem",color:"rgba(255,255,255,.72)",fontSize:".8rem",lineHeight:1.55},children:[a.jsx("strong",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",style:{display:"block",color:"#fbbf24",marginBottom:".2rem"},children:"Hero banner campaign control"}),"The supplied banner uses the first-party media relay and automatically hides once its campaign end date passes. Leave the date blank to keep it visible until manually disabled."]}),a.jsxs("section",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19","aria-label":"Referral copy engagement",style:{background:"rgba(44,125,247,.08)",border:"1px solid rgba(44,125,247,.28)",borderRadius:"8px",padding:"1rem",marginBottom:"1.1rem"},children:[a.jsx("h2",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",style:{margin:0,color:"#fff",fontSize:".98rem"},children:"Referral code engagement"}),a.jsx("p",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",style:{color:"rgba(255,255,255,.58)",fontSize:".76rem",lineHeight:1.5,margin:".35rem 0 .75rem"},children:"Aggregate successful copies of XTZ2026 only. No visitor, IP, session, or browser data is stored."}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",style:{display:"flex",gap:"1.5rem",flexWrap:"wrap"},children:[a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",children:[a.jsx("strong",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",style:{color:"#63f7b1",display:"block",fontSize:"1.35rem"},children:i?.totalCopies??"â"}),a.jsx("span",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",style:{color:"rgba(255,255,255,.56)",fontSize:".68rem",fontWeight:800,textTransform:"uppercase"},children:"All-time copies"})]}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",children:[a.jsx("strong",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",style:{color:"#b9d3ff",display:"block",fontSize:"1.35rem"},children:i?.last30DaysCopies??"â"}),a.jsx("span",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",style:{color:"rgba(255,255,255,.56)",fontSize:".68rem",fontWeight:800,textTransform:"uppercase"},children:"Last 30 days"})]})]})]}),a.jsxs("section",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",style:{background:"#05152e",border:"1px solid rgba(99,247,177,.22)",borderRadius:"8px",padding:"1rem",marginBottom:"1.1rem"},children:[a.jsx("h2",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",style:{margin:0,color:"#fff",fontSize:".98rem"},children:"Image banner campaign"}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",style:{display:"grid",gap:".75rem",gridTemplateColumns:"repeat(auto-fit,minmax(200px,1fr))",marginTop:".85rem",alignItems:"end"},children:[a.jsxs("label",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",style:{color:"rgba(255,255,255,.65)",fontSize:".68rem",fontWeight:800},children:["CAMPAIGN END (UTC, OPTIONAL)",a.jsx("input",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",type:"datetime-local",value:g,onChange:v=>f(v.target.value),style:{...b,marginTop:".3rem"}})]}),a.jsxs("label",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",style:{display:"inline-flex",gap:".5rem",alignItems:"center",color:"rgba(255,255,255,.7)",fontSize:".78rem",paddingBottom:".45rem"},children:[a.jsx("input",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",type:"checkbox",checked:d,onChange:v=>u(v.target.checked)})," Banner visible"]}),a.jsx("button",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",onClick:()=>y.mutate({active:d,endAt:g?new Date(g).toISOString():null}),disabled:y.isPending,style:{border:0,borderRadius:"4px",background:"#63f7b1",color:"#062013",padding:".65rem .75rem",cursor:"pointer",fontWeight:900,fontSize:".74rem"},children:y.isPending?"Savingâ¦":"Save banner campaign"})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",style:{display:"flex",gap:".65rem",flexWrap:"wrap",marginBottom:"1rem"},children:[a.jsxs("button",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",onClick:()=>l(v=>[...v,t3e()]),disabled:o.length>=8,style:{border:0,borderRadius:"4px",background:"#2c7df7",color:"#fff",padding:".62rem .75rem",cursor:"pointer",fontWeight:900,fontSize:".74rem",display:"inline-flex",alignItems:"center",gap:".35rem"},children:[a.jsx(au,{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",size:15}),"Add live app"]}),a.jsxs("button",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",onClick:()=>l(v=>[...v,e3e()]),disabled:o.length>=8,style:{border:"1px solid rgba(251,191,36,.45)",borderRadius:"4px",background:"rgba(251,191,36,.08)",color:"#fbbf24",padding:".62rem .75rem",cursor:"pointer",fontWeight:900,fontSize:".74rem",display:"inline-flex",alignItems:"center",gap:".35rem"},children:[a.jsx(au,{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",size:15}),"Add placeholder"]}),a.jsxs("button",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",onClick:()=>m.mutate(o),disabled:m.isPending||!o.length,style:{marginLeft:"auto",border:0,borderRadius:"4px",background:"#63f7b1",color:"#062013",padding:".62rem .8rem",cursor:"pointer",fontWeight:900,fontSize:".74rem",display:"inline-flex",alignItems:"center",gap:".35rem"},children:[a.jsx(nh,{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",size:15}),m.isPending?"Savingâ¦":"Save rotation"]})]}),o.map((v,j)=>a.jsxs("section",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",style:{background:"#05152e",border:`1px solid ${v.placeholder?"rgba(251,191,36,.32)":"rgba(255,255,255,.1)"}`,padding:"1rem",borderRadius:"8px",marginTop:".8rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",style:{display:"flex",justifyContent:"space-between",gap:".75rem",alignItems:"center",flexWrap:"wrap"},children:[a.jsxs("strong",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",style:{color:"#fff",fontSize:".9rem"},children:[v.placeholder?"Placeholder":"Live owner placement"," ",j+1]}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",style:{display:"flex",gap:".45rem"},children:[a.jsxs("button",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",onClick:()=>S(v.id,{active:!v.active}),style:{border:"1px solid rgba(99,247,177,.38)",borderRadius:"4px",background:v.active?"rgba(99,247,177,.1)":"rgba(255,255,255,.04)",color:v.active?"#63f7b1":"rgba(255,255,255,.55)",padding:".42rem .55rem",cursor:"pointer",fontSize:".7rem",fontWeight:800,display:"inline-flex",gap:".3rem",alignItems:"center"},children:[v.active?a.jsx($u,{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",size:14}):a.jsx(qW,{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",size:14}),v.active?"Visible":"Hidden"]}),a.jsx("button",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",onClick:()=>l(k=>k.filter(P=>P.id!==v.id)),"aria-label":`Remove ${v.title||"promotion"}`,style:{border:"1px solid rgba(248,113,113,.35)",borderRadius:"4px",background:"rgba(248,113,113,.08)",color:"#fca5a5",padding:".42rem .55rem",cursor:"pointer"},children:a.jsx(pA,{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",size:14})})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",style:{display:"grid",gap:".7rem",gridTemplateColumns:"repeat(auto-fit,minmax(220px,1fr))",marginTop:".85rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",children:[a.jsx("label",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",style:{color:"rgba(255,255,255,.65)",fontSize:".68rem",fontWeight:800},children:"TITLE"}),a.jsx("input",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",value:v.title,onChange:k=>S(v.id,{title:k.target.value}),maxLength:100,style:{...b,marginTop:".3rem"}})]}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",children:[a.jsx("label",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",style:{color:"rgba(255,255,255,.65)",fontSize:".68rem",fontWeight:800},children:"BUTTON LABEL"}),a.jsx("input",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",value:v.ctaLabel,onChange:k=>S(v.id,{ctaLabel:k.target.value}),maxLength:40,style:{...b,marginTop:".3rem"}})]})]}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",style:{marginTop:".7rem"},children:[a.jsx("label",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",style:{color:"rgba(255,255,255,.65)",fontSize:".68rem",fontWeight:800},children:"DESCRIPTION"}),a.jsx("textarea",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",value:v.description,onChange:k=>S(v.id,{description:k.target.value}),maxLength:280,rows:2,style:{...b,marginTop:".3rem"}})]}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",style:{marginTop:".7rem"},children:[a.jsxs("label",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",style:{color:"rgba(255,255,255,.65)",fontSize:".68rem",fontWeight:800},children:["DESTINATION URL ",v.placeholder&&"(optional for placeholder)"]}),a.jsx("input",{"data-loc":"client/src/pages/admin/AdminFirstPartyPromotion.tsx:19",value:v.url,onChange:k=>S(v.id,{url:k.target.value}),placeholder:"https://⦠or /internal-route",style:{...b,marginTop:".3rem"}})]})]},v.id))]})]})}function n3e(){const{user:e,loading:t}=Wr(),r=ee.useUtils(),{data:n=[],isLoading:s}=ee.correctionReports.list.useQuery(void 0,{enabled:e?.role==="admin"}),[i,o]=E.useState(""),[l,d]=E.useState("pending"),[u,g]=E.useState([]),[f,m]=E.useState(""),[y,S]=E.useState({}),b=E.useMemo(()=>n.filter(C=>(l==="all"||C.status===l)&&`${C.articleTitle||""} ${C.articleUrl} ${C.reporterName} ${C.correctionDetail}`.toLowerCase().includes(i.toLowerCase())),[n,l,i]),v=()=>
1134r.correctionReports.list.invalidate(),j=ee.correctionReports.updateStatus.useMutation({onSuccess:v,onError:C=>Ee.error(C.message)}),k=ee.correctionReports.bulkUpdateStatus.useMutation({onSuccess:async C=>{await v(),g([]),Ee.success(`${C.updated} report${C.updated===1?"":"s"} updated.`)},onError:C=>Ee.error(C.message)});if(t||s)return a.jsx("div",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:17",className:"container",style:{padding:"5rem 1.25rem"},children:a.jsx("div",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:17",className:"skeleton h-8 w-48"})});if(!e||e.role!=="admin")return a.jsx("div",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:18",className:"container",style:{padding:"5rem 1.25rem"},children:a.jsx("h1",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:18",style:{color:"#fff"},children:"Admin access required"})});const P=()=>g(C=>b.every(A=>C.includes(A.id))?C.filter(A=>!b.some(N=>N.id===A)):Array.from(new Set([...C,...b.map(A=>A.id)]))),O=C=>{u.length&&(C!=="reviewed"&&!window.confirm(`Update ${u.length} report(s) to ${C}? This does not modify any article.`)||k.mutate({ids:u,status:C,...f.trim()?{notes:f.trim()}:{}}))},T=C=>({padding:"0.2rem 0.45rem",borderRadius:"999px",background:C==="resolved"?"rgba(74,222,128,.12)":C==="rejected"?"rgba(248,113,113,.12)":"rgba(90,159,255,.12)",color:C==="resolved"?"#86efac":C==="rejected"?"#fca5a5":"#9fc8ff",border:"1px solid rgba(255,255,255,.12)",fontSize:"0.65rem",fontWeight:800,textTransform:"uppercase"});return a.jsxs("main",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:22",style:{background:"#000",minHeight:"100vh"},children:[a.jsx("header",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:22",style:{background:"#05152e",borderBottom:"1px solid rgba(255,255,255,.1)"},children:a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:22",className:"container",style:{padding:"1.45rem 1.25rem"},children:[a.jsxs($,{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:22",href:"/admin",style:{color:"rgba(255,255,255,.55)",fontSize:"0.75rem",textDecoration:"none",display:"inline-flex",alignItems:"center",gap:"0.35rem"},children:[a.jsx(ya,{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:22",size:14})," Back to Dashboard"]}),a.jsx("h1",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:22",style:{color:"#fff",margin:"0.65rem 0 0",fontSize:"1.45rem"},children:"Correction reports"}),a.jsx("p",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:22",style:{color:"rgba(255,255,255,.52)",margin:"0.35rem 0 0",fontSize:"0.8rem"},children:"Private reports only. Updating a queue status never changes an article automatically."})]})}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:22",className:"container",style:{padding:"1.5rem 1.25rem 4rem",maxWidth:"1080px"},children:[a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:23",style:{display:"flex",gap:"0.65rem",flexWrap:"wrap",marginBottom:"1rem"},children:[a.jsxs("label",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:23",style:{flex:"1 1 260px",display:"flex",alignItems:"center",gap:"0.45rem",border:"1px solid rgba(255,255,255,.14)",borderRadius:"5px",padding:"0 .7rem",background:"#05152e"},children:[a.jsx(ft,{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:23",size:15,color:"#9fc8ff"}),a.jsx("input",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:23",value:i,onChange:C=>o(C.target.value),placeholder:"Search report details",style:{background:"transparent",border:0,outline:0,color:"#fff",width:"100%",padding:".65rem 0",font:"inherit",fontSize:".8rem"}})]}),a.jsxs("select",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:23",value:l,onChange:C=>d(C.target.value),style:{background:"#05152e",border:"1px solid rgba(255,255,255,.14)",borderRadius:"5px",color:"#fff",padding:".65rem",fontSize:".78rem"},children:[a.jsx("option",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:23",value:"all",children:"All statuses"}),a.jsx("option",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:23",value:"pending",children:"Pending"}),a.jsx("option",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:23",value:"reviewed",children:"Reviewed"}),a.jsx("option",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:23",value:"resolved",children:"Resolved"}),a.jsx("option",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:23",value:"rejected",children:"Rejected"})]})]}),a.jsx("section",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:24",style:{border:"1px solid rgba(255,255,255,.1)",background:"#05152e",borderRadius:"8px",padding:"1rem",marginBottom:"1rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:24",style:{display:"flex",gap:".6rem",alignItems:"center",flexWrap:"wrap"},children:[a.jsxs("button",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:24",onClick:P,style:{border:"1px solid rgba(90,159,255,.35)",color:"#9fc8ff",background:"rgba(90,159,255,.08)",borderRadius:"4px",padding:".5rem .65rem",cursor:"pointer",fontWeight:800,fontSize:".72rem",display:"inline-flex",gap:".35rem",alignItems:"center"},children:[a.jsx(QW,{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:24",size:14}),b.every(C=>u.includes(C.id))&&b.length?"Clear visible":"Select visible"]}),a.jsxs("span",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:24",style:{color:"rgba(255,255,255,.55)",fontSize:".75rem"},children:[u.length," selected"]}),a.jsx("textarea",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:24",value:f,onChange:C=>m(C.target.value),placeholder:"Internal batch note (optional)",rows:1,style:{flex:"1 1 220px",background:"rgba(0,0,0,.2)",border:"1px solid rgba(255,255,255,.12)",borderRadius:"4px",color:"#fff",padding:".5rem",font:"inherit",fontSize:".75rem"}}),a.jsx("button",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:24",onClick:()=>O("reviewed"),disabled:!u.length||k.isPending,style:{border:0,borderRadius:"4px",padding:".52rem .65rem",cursor:"pointer",color:"#071d40",background:"#9fc8ff",fontWeight:900,fontSize:".7rem"},children:"Mark reviewed"}),a.jsx("button",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:24",onClick:()=>O("resolved"),disabled:!u.length||k.isPending,style:{border:0,borderRadius:"4px",padding:".52rem .65rem",cursor:"pointer",color:"#062013",background:"#86efac",fontWeight:900,fontSize:".7rem"},children:"Resolve"}),a.jsx("button",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:24",onClick:()=>O("rejected"),disabled:!u.length||k.isPending,style:{border:0,borderRadius:"4px",padding:".52rem .65rem",cursor:"pointer",color:"#3d0b0b",background:"#fca5a5",fontWeight:900,fontSize:".7rem"},children:"Reject"})]})}),b.length===0?a.jsx("p",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:25",style:{color:"rgba(255,255,255,.5)",padding:"2rem 0"},children:"No correction reports match this view."}):a.jsx("div",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:25",style:{display:"grid",gap:".85rem"},children:b.map(C=>a.jsxs("article",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:25",style:{background:"#05152e",border:"1px solid rgba(255,255,255,.1)",borderRadius:"8px",padding:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:25",style:{display:"flex",alignItems:"flex-start",ga
1134p:".6rem",justifyContent:"space-between",flexWrap:"wrap"},children:[a.jsxs("label",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:25",style:{display:"inline-flex",gap:".45rem",alignItems:"center",color:"rgba(255,255,255,.55)",fontSize:".7rem"},children:[a.jsx("input",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:25",type:"checkbox",checked:u.includes(C.id),onChange:()=>g(A=>A.includes(C.id)?A.filter(N=>N!==C.id):[...A,C.id])}),"Select"]}),a.jsx("span",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:25",style:T(C.status),children:C.status})]}),a.jsx("h2",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:25",style:{color:"#fff",margin:".6rem 0 .25rem",fontSize:"1rem"},children:C.articleTitle||"Untitled article reference"}),a.jsxs("a",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:25",href:C.articleUrl,target:"_blank",rel:"noopener noreferrer",style:{color:"#9fc8ff",fontSize:".73rem",wordBreak:"break-word"},children:[C.articleUrl," ",a.jsx(ve,{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:25",size:12,style:{display:"inline"}})]}),a.jsx("p",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:25",style:{color:"rgba(255,255,255,.72)",lineHeight:1.55,margin:".75rem 0",whiteSpace:"pre-wrap",fontSize:".82rem"},children:C.correctionDetail}),C.sourceUrl&&a.jsx("p",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:25",style:{margin:0,fontSize:".74rem"},children:a.jsxs("a",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:25",href:C.sourceUrl,target:"_blank",rel:"noopener noreferrer",style:{color:"#9fc8ff"},children:["Suggested source ",a.jsx(ve,{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:25",size:12,style:{display:"inline"}})]})}),a.jsxs("p",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:25",style:{color:"rgba(255,255,255,.46)",margin:".7rem 0",fontSize:".72rem"},children:["Reporter: ",C.reporterName," · ",C.reporterEmail," · ",new Date(C.createdAt).toLocaleString()]}),a.jsx("textarea",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:25",value:y[C.id]??C.adminNotes??"",onChange:A=>S(N=>({...N,[C.id]:A.target.value})),placeholder:"Internal editorial note",rows:2,style:{width:"100%",boxSizing:"border-box",background:"rgba(0,0,0,.2)",border:"1px solid rgba(255,255,255,.12)",borderRadius:"4px",color:"#fff",padding:".55rem",font:"inherit",fontSize:".76rem"}}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:25",style:{display:"flex",gap:".45rem",flexWrap:"wrap",marginTop:".7rem"},children:[a.jsx("button",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:25",onClick:()=>j.mutate({id:C.id,status:"reviewed",notes:y[C.id]??C.adminNotes??void 0}),style:{border:0,background:"#9fc8ff",color:"#071d40",padding:".45rem .6rem",borderRadius:"4px",fontWeight:900,fontSize:".7rem",cursor:"pointer"},children:"Reviewed"}),a.jsx("button",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:25",onClick:()=>{window.confirm("Resolve this report? This does not alter the article.")&&j.mutate({id:C.id,status:"resolved",notes:y[C.id]??C.adminNotes??void 0})},style:{border:0,background:"#86efac",color:"#062013",padding:".45rem .6rem",borderRadius:"4px",fontWeight:900,fontSize:".7rem",cursor:"pointer"},children:"Resolve"}),a.jsx("button",{"data-loc":"client/src/pages/admin/AdminCorrectionReports.tsx:25",onClick:()=>{window.confirm("Reject this report?")&&j.mutate({id:C.id,status:"rejected",notes:y[C.id]??C.adminNotes??void 0})},style:{border:0,background:"#fca5a5",color:"#3d0b0b",padding:".45rem .6rem",borderRadius:"4px",fontWeight:900,fontSize:".7rem",cursor:"pointer"},children:"Reject"})]})]},C.id))})]})]})}const a3e=e=>({padding:".2rem .45rem",borderRadius:"999px",background:e==="replied"?"rgba(74,222,128,.12)":e==="closed"?"rgba(248,113,113,.12)":"rgba(90,159,255,.12)",color:e==="replied"?"#86efac":e==="closed"?"#fca5a5":"#9fc8ff",border:"1px solid rgba(255,255,255,.12)",fontSize:".65rem",fontWeight:800,textTransform:"uppercase"});function s3e(){const{user:e,loading:t}=Wr(),r=ee.useUtils(),{data:n=[],isLoading:s}=ee.advertiserEnquiries.list.useQuery(void 0,{enabled:e?.role==="admin"}),[i,o]=E.useState(""),[l,d]=E.useState("pending"),[u,g]=E.useState([]),[f,m]=E.useState(""),[y,S]=E.useState({}),b=E.useMemo(()=>n.filter(T=>(l==="all"||T.status===l)&&`${T.companyName} ${T.contactName} ${T.contactEmail} ${T.campaignBrief}`.toLowerCase().includes(i.toLowerCase())),[n,l,i]),v=()=>
1134r.advertiserEnquiries.list.invalidate(),j=ee.advertiserEnquiries.updateStatus.useMutation({onSuccess:v,onError:T=>Ee.error(T.message)}),k=ee.advertiserEnquiries.bulkUpdateStatus.useMutation({onSuccess:async T=>{await v(),g([]),Ee.success(`${T.updated} enquir${T.updated===1?"y":"ies"} updated.`)},onError:T=>Ee.error(T.message)});if(t||s)return a.jsx("div",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:19",className:"container",style:{padding:"5rem 1.25rem"},children:a.jsx("div",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:19",className:"skeleton h-8 w-48"})});if(!e||e.role!=="admin")return a.jsx("div",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:20",className:"container",style:{padding:"5rem 1.25rem"},children:a.jsx("h1",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:20",style:{color:"#fff"},children:"Admin access required"})});const P=()=>g(T=>b.every(C=>T.includes(C.id))?T.filter(C=>!b.some(A=>A.id===C)):Array.from(new Set([...T,...b.map(C=>C.id)]))),O=T=>{u.length&&(T!=="reviewed"&&!window.confirm(`Update ${u.length} advertising enquir${u.length===1?"y":"ies"} to ${T}?`)||k.mutate({ids:u,status:T,...f.trim()?{notes:f.trim()}:{}}))};return a.jsxs("main",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:23",style:{background:"#000",minHeight:"100vh"},children:[a.jsx("header",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:23",style:{background:"#05152e",borderBottom:"1px solid rgba(255,255,255,.1)"},children:a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:23",className:"container",style:{padding:"1.45rem 1.25rem"},children:[a.jsxs($,{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:23",href:"/admin",style:{color:"rgba(255,255,255,.55)",fontSize:".75rem",textDecoration:"none",display:"inline-flex",alignItems:"center",gap:".35rem"},children:[a.jsx(ya,{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:23",size:14})," Back to Dashboard"]}),a.jsx("h1",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:23",style:{color:"#fff",margin:".65rem 0 0",fontSize:"1.45rem"},children:"Advertising enquiries"}),a.jsx("p",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:23",style:{color:"rgba(255,255,255,.52)",margin:".35rem 0 0",fontSize:".8rem"},children:"Private contact details are for editorial and partnership follow-up only. Updating status never creates a campaign."})]})}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:23",className:"container",style:{padding:"1.5rem 1.25rem 4rem",maxWidth:"1080px"},children:[a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:24",style:{display:"flex",gap:".65rem",flexWrap:"wrap",marginBottom:"1rem"},children:[a.jsxs("label",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:24",style:{flex:"1 1 260px",display:"flex",alignItems:"center",gap:".45rem",border:"1px solid rgba(255,255,255,.14)",borderRadius:"5px",padding:"0 .7rem",background:"#05152e"},children:[a.jsx(ft,{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:24",size:15,color:"#9fc8ff"}),a.jsx("input",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:24",value:i,onChange:T=>o(T.target.value),placeholder:"Search enquiries",style:{background:"transparent",border:0,outline:0,color:"#fff",width:"100%",padding:".65rem 0",font:"inherit",fontSize:".8rem"}})]}),a.jsxs("select",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:24",value:l,onChange:T=>d(T.target.value),style:{background:"#05152e",border:"1px solid rgba(255,255,255,.14)",borderRadius:"5px",color:"#fff",padding:".65rem",fontSize:".78rem"},children:[a.jsx("option",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:24",value:"all",children:"All statuses"}),a.jsx("option",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:24",value:"pending",children:"Pending"}),a.jsx("option",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:24",value:"reviewed",children:"Reviewed"}),a.jsx("option",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:24",value:"replied",children:"Replied"}),a.jsx("option",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:24",value:"closed",children:"Closed"})]})]}),a.jsx("section",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:25",style:{border:"1px solid rgba(255,255,255,.1)",background:"#05152e",borderRadius:"8px",padding:"1rem",marginBottom:"1rem"},children:a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:25",style:{display:"flex",gap:".6rem",alignItems:"center",flexWrap:"wrap"},children:[a.jsxs("button",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:25",onClick:P,style:Tl("rgba(90,159,255,.08)","#9fc8ff"),children:[a.jsx(QW,{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:25",size:14}),b.every(T=>u.includes(T.id))&&b.length?"Clear visible":"Select visible"]}),a.jsxs("span",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:25",style:{color:"rgba(255,255,255,.55)",fontSize:".75rem"},children:[u.length," selected"]}),a.jsx("textarea",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:25",value:f,onChange:T=>m(T.target.value),placeholder:"Internal batch note (optional)",rows:1,style:{flex:"1 1 220px",background:"rgba(0,0,0,.2)",border:"1px solid rgba(255,255,255,.12)",borderRadius:"4px",color:"#fff",padding:".5rem",font:"inherit",fontSize:".75rem"}}),a.jsx("button",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:25",onClick:()=>O("reviewed"),disabled:!u.length||k.isPending,style:Tl("#9fc8ff","#071d40"),children:"Mark reviewed"}),a.jsx("button",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:25",onClick:()=>O("replied"),disabled:!u.length||k.isPending,style:Tl("#86efac","#062013"),children:"Mark replied"}),a.jsx("button",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:25",onClick:()=>O("closed"),disabled:!u.length||k.isPending,style:Tl("#fca5a5","#3d0b0b"),children:"Close"})]})}),b.length===0?a.jsx("p",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:26",style:{color:"rgba(255,255,255,.5)",padding:"2rem 0"},children:"No advertising enquiries match this view."}):a.jsx("div",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:26",style:{display:"grid",gap:".85rem"},children:b.map(T=>a.jsxs("article",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:26",style:{background:"#05152e",border:"1px solid rgba(255,255,255,.1)",borderRadius:"8px",padding:"1rem"},children:[a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:26",style:{display:"flex",alignItems:"flex-start",ga
1134p:".6rem",justifyContent:"space-between",flexWrap:"wrap"},children:[a.jsxs("label",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:26",style:{display:"inline-flex",gap:".45rem",alignItems:"center",color:"rgba(255,255,255,.55)",fontSize:".7rem"},children:[a.jsx("input",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:26",type:"checkbox",checked:u.includes(T.id),onChange:()=>g(C=>C.includes(T.id)?C.filter(A=>A!==T.id):[...C,T.id])}),"Select"]}),a.jsx("span",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:26",style:a3e(T.status),children:T.status})]}),a.jsx("h2",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:26",style:{color:"#fff",margin:".6rem 0 .25rem",fontSize:"1rem"},children:T.companyName}),a.jsxs("p",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:26",style:{color:"#9fc8ff",fontSize:".74rem",margin:0},children:[T.contactName," · ",T.contactEmail]}),T.websiteUrl&&a.jsxs("a",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:26",href:T.websiteUrl,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-block",marginTop:".35rem",color:"#9fc8ff",fontSize:".74rem",wordBreak:"break-word"},children:[T.websiteUrl," ",a.jsx(ve,{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:26",size:12,style:{display:"inline"}})]}),a.jsx("p",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:26",style:{color:"#63f7b1",margin:".65rem 0 0",fontSize:".72rem",fontWeight:800,textTransform:"uppercase"},children:T.placementInterest.replace(/_/g," ")}),a.jsx("p",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:26",style:{color:"rgba(255,255,255,.72)",lineHeight:1.55,margin:".5rem 0",whiteSpace:"pre-wrap",fontSize:".82rem"},children:T.campaignBrief}),a.jsxs("p",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:26",style:{color:"rgba(255,255,255,.46)",margin:".7rem 0",fontSize:".72rem"},children:["Submitted ",new Date(T.createdAt).toLocaleString()]}),a.jsx("textarea",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:26",value:y[T.id]??T.adminNotes??"",onChange:C=>S(A=>({...A,[T.id]:C.target.value})),placeholder:"Internal partnership note",rows:2,style:{width:"100%",boxSizing:"border-box",background:"rgba(0,0,0,.2)",border:"1px solid rgba(255,255,255,.12)",borderRadius:"4px",color:"#fff",padding:".55rem",font:"inherit",fontSize:".76rem"}}),a.jsxs("div",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:26",style:{display:"flex",gap:".45rem",flexWrap:"wrap",marginTop:".7rem"},children:[a.jsx("button",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:26",onClick:()=>j.mutate({id:T.id,status:"reviewed",notes:y[T.id]??T.adminNotes??void 0}),style:Tl("#9fc8ff","#071d40"),children:"Reviewed"}),a.jsx("button",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:26",onClick:()=>j.mutate({id:T.id,status:"replied",notes:y[T.id]??T.adminNotes??void 0}),style:Tl("#86efac","#062013"),children:"Replied"}),a.jsx("button",{"data-loc":"client/src/pages/admin/AdminAdvertiserEnquiries.tsx:26",onClick:()=>{window.confirm("Close this enquiry?")&&j.mutate({id:T.id,status:"closed",notes:y[T.id]??T.adminNotes??void 0})},style:Tl("#fca5a5","#3d0b0b"),children:"Close"})]})]},T.id))})]})]})}function Tl(e,t){return{border:0,borderRadius:"4px",padding:".52rem .65rem",cursor:"pointer",color:t,background:e,fontWeight:900,fontSize:".7rem",display:"inline-flex",gap:".35rem",alignItems:"center"}}function i3e(){return a.jsxs(cre,{"data-loc":"client/src/App.tsx:91",children:[a.jsx(be,{"data-loc":"client/src/App.tsx:93",path:"/",component:Aae}),a.jsx(be,{"data-loc":"client/src/App.tsx:94",path:"/search",component:cie}),a.jsx(be,{"data-loc":"client/src/App.tsx:95",path:"/login",component:XAe}),a.jsx(be,{"data-loc":"client/src/App.tsx:96",path:"/register",component:QAe}),a.jsx(be,{"data-loc":"client/src/App.tsx:97",path:"/forgot-password",component:YAe}),a.jsx(be,{"data-loc":"client/src/App.tsx:98",path:"/reset-password",component:ZAe}),a.jsx(be,{"data-loc":"client/src/App.tsx:99",path:"/verify-email",component:JAe}),a.jsx(be,{"data-loc":"client/src/App.tsx:100",path:"/categories",component:Ose}),a.jsx(be,{"data-loc":"client/src/App.tsx:101",path:"/category/:slug",component:Cse}),a.jsx(be,{"data-loc":"client/src/App.tsx:102",path:"/tag/:slug",component:Ese}),a.jsx(be,{"data-loc":"client/src/App.tsx:103",path:"/community-services",component:Bse}),a.jsx(be,{"data-loc":"client/src/App.tsx:104",path:"/onchain-community-archives",component:Use}),a.jsx(be,{"data-loc":"client/src/App.tsx:105",path:"/projects",component:OE}),a.jsx(be,{"data-loc":"client/src/App.tsx:106",path:"/projects/:slug",component:ME}),a.jsx(be,{"data-loc":"client/src/App.tsx:107",path:"/tezos-projects",component:OE}),a.jsx(be,{"data-loc":"client/src/App.tsx:108",path:"/project/:slug",component:ME}),a.jsx(be,{"data-loc":"client/src/App.tsx:109",path:"/timeline",component:Gse}),a.jsx(be,{"data-loc":"client/src/App.tsx:110",path:"/events",component:V7e}),a.jsx(be,{"data-loc":"client/src/App.tsx:111",path:"/authors/:slug",component:Q7e}),a.jsx(be,{"data-loc":"client/src/App.tsx:112",path:"/newsroom/editorial-policy",component:J7e}),a.jsx(be,{"data-loc":"client/src/App.tsx:114",path:"/submit-article",component:Vse}),a.jsx(be,{"data-loc":"client/src/App.tsx:115",path:"/contact",component:Xse}),a.jsx(be,{"data-loc":"client/src/App.tsx:116",path:"/advertise",component:Zse}),a.jsx(be,{"data-loc":"client/src/App.tsx:117",path:"/support",component:iie}),a.jsx(be,{"data-loc":"client/src/App.tsx:118",path:"/disclaimer",component:lie}),a.jsx(be,{"data-loc":"client/src/App.tsx:121",path:"/admin",component:die}),a.jsx(be,{"data-loc":"client/src/App.tsx:122",path:"/admin/posts",component:pie}),a.jsx(be,{"data-loc":"client/src/App.tsx:123",path:"/admin/posts/new",component:yfe}),a.jsx(be,{"data-loc":"client/src/App.tsx:124",path:"/admin/posts/:id",component:gie}),a.jsx(be,{"data-loc":"client/src/App.tsx:125",path:"/admin/categories",component:bfe}),a.jsx(be,{"data-loc":"client/src/App.tsx:126",path:"/admin/projects",component:vfe}),a.jsx(be,{"data-loc":"client/src/App.tsx:127",path:"/admin/submissions",component:wfe}),a.jsx(be,{"data-loc":"client/src/App.tsx:128",path:"/admin/art-project-submissions",component:Tfe}),a.jsx(be,{"data-loc":"client/src/App.tsx:129",path:"/admin/tezos-event-candidates",component:K7e}),a.jsx(be,{"data-loc":"client/src/App.tsx:130",path:"/admin/subscribers",component:Afe}),a.jsx(be,{"data-loc":"client/src/App.tsx:131",path:"/admin/settings",component:zfe}),a.jsx(be,{"data-loc":"client/src/App.tsx:132",path:"/admin/first-party-promotion",component:r3e}),a.jsx(be,{"data-loc":"client/src/App.tsx:133",path:"/admin/correction-reports",component:n3e}),a.jsx(be,{"data-loc":"client/src/App.tsx:134",path:"/admin/advertiser-enquiries",component:s3e}),a.jsx(be,{"data-loc":"client/src/App.tsx:135",path:"/prices",component:C4e}),a.jsx(be,{"data-loc":"client/src/App.tsx:136",path:"/submit-project",component:O4e}),a.jsx(be,{"data-loc":"client/src/App.tsx:137",path:"/unsubscribe",component:M4e}),a.jsx(be,{"data-loc":"client/src/App.tsx:138",path:"/manage-subscriptions",component:N4e}),a.jsx(be,{"data-loc":"client/src/App.tsx:139",path:"/guides/tz5-wallet",component:n7e}),a.jsx(be,{"data-loc":"client/src/App.tsx:140",path:"/glossary/tezos-prefixes",component:s7e}),a.jsx(be,{"data-loc":"client/src/App.tsx:141",path:"/post-quantum",component:c7e}),a.jsx(be,{"data-loc":"client/src/App.tsx:142",path:"/etherlink/bridge",component:h7e}),a.jsx(be,{"data-loc":"client/src/App.tsx:143",path:"/etherlink",component:p7e}),a.jsx(be,{"data-loc":"client/src/App.tsx:144",path:"/wallets",component:b7e}),a.jsx(be,{"data-loc":"client/src/App.tsx:145",path:"/staking/start",component:w7e}),a.jsx(be,{"data-loc":"client/src/App.tsx:146",path:"/art-on-tezos",component:W7e}),a.jsx(be,{"data-loc":"client/src/App.tsx:149",path:"/explorer",component:_4e}),a.jsx(be,{"data-loc":"client/src/App.tsx:150",path:"/explorer/bakers",component:K4e}),a.jsx(be,{"data-loc":"client/src/App.tsx:151",path:"/staking",component:Y4e}),a.jsx(be,{"data-loc":"client/src/App.tsx:152",path:"/art",component:aAe}),a.jsx(be,{"data-loc":"client/src/App.tsx:153",path:"/tools",component:iAe}),a.jsx(be,{"data-loc":"client/src/App.tsx:154",path:"/tools/wallet",component:cAe}),a.jsx(be,{"data-loc":"client/src/App.tsx:155",path:"/tools/nft-gallery",component:uAe}),a.jsx(be,{"data-loc":"client/src/App.tsx:156",path:"/tools/whale-watcher",component:hAe}),a.jsx(be,{"data-loc":"client/src/App.tsx:157",path:"/tools/rewards",component:xAe}),a.jsx(be,{"data-loc":"client/src/App.tsx:158",path:"/tools/portfolio",component:yAe}),a.jsx(be,{"data-loc":"client/src/App.tsx:159",path:"/tools/address-book",component:jAe}),a.jsx(be,{"data-loc":"client/src/App.tsx:160",path:"/tools/token-price",component:kAe}),a.jsx(be,{"data-loc":"client/src/App.tsx:161",path:"/tools/airdrop",component:TAe}),a.jsx(be,{"data-loc":"client/src/App.tsx:162",path:"/tools/batch-lookup",component:AAe}),a.jsx(be,{"data-loc":"client/src/App.tsx:163",path:"/tools/tns",component:CAe}),a.jsx(be,{"data-loc":"client/src/App.tsx:164",path:"/tools/live-ops",component:MAe}),a.jsx(be,{"data-loc":"client/src/App.tsx:165",path:"/tools/contract",component:RAe}),a.jsx(be,{"data-loc":"client/src/App.tsx:166",path:"/tools/defi",component:DAe}),a.jsx(be,{"data-loc":"client/src/App.tsx:167",path:"/tools/defi/:slug",component:_Ae}),a.jsx(be,{"data-loc":"client/src/App.tsx:168",path:"/tools/auctions",component:LAe}),a.jsx(be,{"data-loc":"client/src/App.tsx:169",path:"/tools/top-collectors",component:$Ae}),a.jsx(be,{"data-loc":"client/src/App.tsx:170",path:"/tools/collection-stats",component:qAe}),a.jsx(be,{"data-loc":"client/src/App.tsx:171",path:"/explorer/block/:id",component:B4e}),a.jsx(be,{"data-loc":"client/src/App.tsx:172",path:"/explorer/tx/:hash",component:W4e}),a.jsx(be,{"data-loc":"client/src/App.tsx:173",path:"/explorer/address/:address",component:F4e}),["zh","ko","ja","de","es","fr","pt","ru","ar","tr"].map(e=>a.jsx(be,{"data-loc":"client/src/App.tsx:177",path:`/${e}`,component:VAe},e)),["zh","ko","ja","de","es","fr","pt","ru","ar","tr"].map(e=>a.jsx(be,{"data-loc":"client/src/App.tsx:180",path:`/${e}/:slug+`,component:GAe},`${e}-article`)),a.jsx(be,{"data-loc":"client/src/App.tsx:184",path:"/:slug",component:Tse}),a.jsx(be,{"data-loc":"client/src/App.tsx:186",component:Cfe})]})}function o3e(){return a.jsx(Sne,{"data-loc":"client/src/App.tsx:193",children:a.jsx(wne,{"data-loc":"client/src/App.tsx:194",defaultTheme:"dark",children:a.jsxs($te,{"data-loc":"client/src/App.tsx:195",children:[a.jsx(YZ,{"data-loc":"client/src/App.tsx:196"}),a.jsx($ne,{"data-loc":"client/src/App.tsx:197",children:a.jsx(i3e,{"data-loc":"client/src/App.tsx:198"})})]})})})}const J5=new KK,dV=e=>{!(e instanceof Yd)||typeof window>"u"||!(e.message===RY)||(window.location.href=gA())};J5.getQueryCache().subscribe(e=>{if(e.type==="updated"&&e.action.type==="error"){const t=e.query.state.error;dV(t),console.error("[API Query Error]",t)}});J5.getMutationCache().subscribe(e=>{if(e.type==="updated"&&e.action.type==="error"){const t=e.mutation.state.error;dV(t),console.error("[API Mutation Error]",t)}});const l3e=ee.createClient({links:[oY({url:"/api/trpc",transformer:ki,fetch(e,t){return globalThis.fetch(e,{...t??{},credentials:"include"})}})]});WY.createRoot(document.getElementById("root")).render(a.jsx(ee.Provider,{"data-loc":"client/src/main.tsx:56",client:l3e,queryClient:J5,children:a.jsx(tQ,{"data-loc":"client/src/main.tsx:57",client:J5,children:a.jsx(o3e,{"data-loc":"client/src/main.tsx:58"})})}));export{c3e as a,Rm as c,jt as g,Wd as p};
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.